@plusrouter/ui 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/components.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e, Fragment as
|
|
2
|
-
import { w as
|
|
3
|
-
import { M as
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
6
|
-
import
|
|
7
|
-
import { Globe as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as He } from "react/jsx-runtime";
|
|
2
|
+
import { w as ct, u as rt, B as W, I as nt, R as Ne, a as Je, r as Et, b as qe, L as dt, c as ht, d as Ht, P as Dt, e as Ot, E as Ut, C as zt, f as Xt, g as Gt, S as Yt, h as jt, i as Wt, j as Vt, k as Kt, l as Jt, m as Zt, n as Qt, o as ea, p as ta, q as aa, s as na, t as $t, T as ra, v as sa } from "./SideNavigation-uaK5wkfX.js";
|
|
3
|
+
import { M as rs, x as ss, y as is, z as os, A as ls, D as cs, F as ds, G as hs, H as ps, J as us, K as ms, N as gs, O as fs, Q as bs, U as vs, V as ys, W as _s, X as Ns, Y as Ms, Z as ws, _ as ks } from "./SideNavigation-uaK5wkfX.js";
|
|
4
|
+
import Ct, { useId as Ke, useState as Ie, useEffect as Be, useContext as ia, createContext as oa, useMemo as Qe, Fragment as la, useRef as Pe, forwardRef as De } from "react";
|
|
5
|
+
import * as Me from "@radix-ui/react-alert-dialog";
|
|
6
|
+
import oe from "clsx";
|
|
7
|
+
import { Globe as ca } from "lucide-react";
|
|
8
|
+
const Le = { ...rt, ...ct };
|
|
9
|
+
function Ar({
|
|
10
10
|
languageControl: t
|
|
11
11
|
} = {}) {
|
|
12
12
|
return /* @__PURE__ */ a("div", { className: "customer-incumbent", style: { display: "contents" }, children: [
|
|
@@ -14,11 +14,11 @@ function Tr({
|
|
|
14
14
|
/* @__PURE__ */ e("link", { rel: "stylesheet", href: "/issued-key-modal.css" }),
|
|
15
15
|
`
|
|
16
16
|
`,
|
|
17
|
-
/* @__PURE__ */ a("aside", { className: `${
|
|
17
|
+
/* @__PURE__ */ a("aside", { className: `${Le.sidebar}`, children: [
|
|
18
18
|
/* @__PURE__ */ a("div", { className: "sidebar-account", children: [
|
|
19
19
|
/* @__PURE__ */ a("div", { className: "account-top", children: [
|
|
20
|
-
/* @__PURE__ */ e(
|
|
21
|
-
/* @__PURE__ */ e(
|
|
20
|
+
/* @__PURE__ */ e(W, { id: "account-name", "data-topup": !0, children: "Your account" }),
|
|
21
|
+
/* @__PURE__ */ e(W, { "data-support": "notifications", "aria-label": "Notifications", children: /* @__PURE__ */ e(
|
|
22
22
|
"svg",
|
|
23
23
|
{
|
|
24
24
|
viewBox: "0 0 20 20",
|
|
@@ -38,7 +38,7 @@ function Tr({
|
|
|
38
38
|
/* @__PURE__ */ e("small", { children: "Balance unavailable" })
|
|
39
39
|
] }),
|
|
40
40
|
/* @__PURE__ */ e(
|
|
41
|
-
|
|
41
|
+
W,
|
|
42
42
|
{
|
|
43
43
|
className: "topup-icon",
|
|
44
44
|
"data-topup": !0,
|
|
@@ -49,7 +49,7 @@ function Tr({
|
|
|
49
49
|
] })
|
|
50
50
|
] }),
|
|
51
51
|
/* @__PURE__ */ a("nav", { "aria-label": "Dashboard", children: [
|
|
52
|
-
/* @__PURE__ */ a(
|
|
52
|
+
/* @__PURE__ */ a(W, { "data-page": "access", children: [
|
|
53
53
|
/* @__PURE__ */ e(
|
|
54
54
|
"svg",
|
|
55
55
|
{
|
|
@@ -65,7 +65,7 @@ function Tr({
|
|
|
65
65
|
),
|
|
66
66
|
/* @__PURE__ */ e("span", { children: "API keys" })
|
|
67
67
|
] }),
|
|
68
|
-
/* @__PURE__ */ a(
|
|
68
|
+
/* @__PURE__ */ a(W, { "data-page": "logs", children: [
|
|
69
69
|
/* @__PURE__ */ e(
|
|
70
70
|
"svg",
|
|
71
71
|
{
|
|
@@ -81,7 +81,7 @@ function Tr({
|
|
|
81
81
|
),
|
|
82
82
|
/* @__PURE__ */ e("span", { children: "LLM logs" })
|
|
83
83
|
] }),
|
|
84
|
-
/* @__PURE__ */ a(
|
|
84
|
+
/* @__PURE__ */ a(W, { "data-page": "plans", children: [
|
|
85
85
|
/* @__PURE__ */ e(
|
|
86
86
|
"svg",
|
|
87
87
|
{
|
|
@@ -101,9 +101,9 @@ function Tr({
|
|
|
101
101
|
/* @__PURE__ */ a("div", { className: "sidebar-bottom", children: [
|
|
102
102
|
/* @__PURE__ */ a("div", { id: "identity-session", hidden: !0, children: [
|
|
103
103
|
/* @__PURE__ */ e("span", { id: "identity-status", role: "status", "aria-live": "polite" }),
|
|
104
|
-
/* @__PURE__ */ e(
|
|
104
|
+
/* @__PURE__ */ e(W, { id: "telegram-link", type: "button", hidden: !0, children: "Connect Telegram" }),
|
|
105
105
|
/* @__PURE__ */ e("span", { id: "telegram-link-status", role: "status" }),
|
|
106
|
-
/* @__PURE__ */ e(
|
|
106
|
+
/* @__PURE__ */ e(W, { id: "identity-logout", type: "button", children: "Sign out" })
|
|
107
107
|
] }),
|
|
108
108
|
/* @__PURE__ */ a(
|
|
109
109
|
"a",
|
|
@@ -157,9 +157,9 @@ function Tr({
|
|
|
157
157
|
/* @__PURE__ */ a("section", { "data-panel": "access", children: [
|
|
158
158
|
/* @__PURE__ */ a("div", { className: "section-heading", children: [
|
|
159
159
|
/* @__PURE__ */ e("h2", { children: "Your API key" }),
|
|
160
|
-
/* @__PURE__ */ e(
|
|
160
|
+
/* @__PURE__ */ e(W, { id: "hero-key", className: `${Le.primary}`, children: "Generate API key" })
|
|
161
161
|
] }),
|
|
162
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
162
|
+
/* @__PURE__ */ a("div", { className: `${Le.panel} key-panel`, children: [
|
|
163
163
|
/* @__PURE__ */ a("div", { className: "key-row key-labels", children: [
|
|
164
164
|
/* @__PURE__ */ e("span", { children: "Name" }),
|
|
165
165
|
/* @__PURE__ */ e("span", { children: "Key" }),
|
|
@@ -173,7 +173,7 @@ function Tr({
|
|
|
173
173
|
] }),
|
|
174
174
|
/* @__PURE__ */ e("code", { id: "profile-key", children: "No key connected" }),
|
|
175
175
|
/* @__PURE__ */ e("span", { id: "key-status", children: "Not connected" }),
|
|
176
|
-
/* @__PURE__ */ e(
|
|
176
|
+
/* @__PURE__ */ e(W, { id: "rotate-key", hidden: !0, children: "Rotate key" })
|
|
177
177
|
] }),
|
|
178
178
|
/* @__PURE__ */ e("div", { className: "key-note", id: "key-note", children: "Generate a key to get started, or connect an existing key below." })
|
|
179
179
|
] }),
|
|
@@ -181,7 +181,7 @@ function Tr({
|
|
|
181
181
|
`,
|
|
182
182
|
/* @__PURE__ */ a("div", { id: "new-key-mount", children: [
|
|
183
183
|
/* @__PURE__ */ e(
|
|
184
|
-
|
|
184
|
+
W,
|
|
185
185
|
{
|
|
186
186
|
id: "new-key",
|
|
187
187
|
className: "text-button",
|
|
@@ -194,10 +194,10 @@ function Tr({
|
|
|
194
194
|
/* @__PURE__ */ e("h2", { children: "Create your API key" }),
|
|
195
195
|
/* @__PURE__ */ e("p", { children: "We’ll show your key once. Save it before closing the window." }),
|
|
196
196
|
/* @__PURE__ */ e(
|
|
197
|
-
|
|
197
|
+
W,
|
|
198
198
|
{
|
|
199
199
|
id: "create-anonymous-key",
|
|
200
|
-
className: `${
|
|
200
|
+
className: `${Le.primary}`,
|
|
201
201
|
children: "Generate key"
|
|
202
202
|
}
|
|
203
203
|
),
|
|
@@ -210,7 +210,7 @@ function Tr({
|
|
|
210
210
|
/* @__PURE__ */ e("h2", { children: "Already have a key?" }),
|
|
211
211
|
/* @__PURE__ */ e("form", { id: "account-form", children: /* @__PURE__ */ a("div", { className: "entry", children: [
|
|
212
212
|
/* @__PURE__ */ e(
|
|
213
|
-
|
|
213
|
+
nt,
|
|
214
214
|
{
|
|
215
215
|
id: "api-key",
|
|
216
216
|
name: "api_key",
|
|
@@ -224,14 +224,14 @@ function Tr({
|
|
|
224
224
|
"aria-label": "API key"
|
|
225
225
|
}
|
|
226
226
|
),
|
|
227
|
-
/* @__PURE__ */ e(
|
|
227
|
+
/* @__PURE__ */ e(W, { type: "submit", children: "Connect key" })
|
|
228
228
|
] }) }),
|
|
229
229
|
/* @__PURE__ */ e("p", { id: "account-status", role: "status", "aria-live": "polite" })
|
|
230
230
|
] }),
|
|
231
231
|
`
|
|
232
232
|
`,
|
|
233
233
|
/* @__PURE__ */ e("div", { className: "section-heading", children: /* @__PURE__ */ e("h2", { children: "Connection settings" }) }),
|
|
234
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
234
|
+
/* @__PURE__ */ a("div", { className: `${Le.panel} settings-list`, children: [
|
|
235
235
|
/* @__PURE__ */ a("div", { className: "setting-row", children: [
|
|
236
236
|
/* @__PURE__ */ a("div", { children: [
|
|
237
237
|
/* @__PURE__ */ e("h3", { children: "Base URL" }),
|
|
@@ -239,7 +239,7 @@ function Tr({
|
|
|
239
239
|
] }),
|
|
240
240
|
/* @__PURE__ */ a("div", { className: "copy-inline", children: [
|
|
241
241
|
/* @__PURE__ */ e("code", { children: "https://router.plus/v1" }),
|
|
242
|
-
/* @__PURE__ */ e(
|
|
242
|
+
/* @__PURE__ */ e(W, { id: "copy-endpoint", "aria-label": "Copy base URL", children: "Copy" })
|
|
243
243
|
] })
|
|
244
244
|
] }),
|
|
245
245
|
/* @__PURE__ */ a("div", { className: "setting-row", children: [
|
|
@@ -275,7 +275,7 @@ function Tr({
|
|
|
275
275
|
/* @__PURE__ */ e("h2", { children: "Recent requests" }),
|
|
276
276
|
/* @__PURE__ */ e("span", { children: "Request activity" })
|
|
277
277
|
] }),
|
|
278
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
278
|
+
/* @__PURE__ */ a("div", { className: `${Le.panel} log-panel`, children: [
|
|
279
279
|
/* @__PURE__ */ a("div", { className: "log-head", children: [
|
|
280
280
|
/* @__PURE__ */ e("span", { children: "Time" }),
|
|
281
281
|
/* @__PURE__ */ e("span", { children: "Model" }),
|
|
@@ -283,7 +283,7 @@ function Tr({
|
|
|
283
283
|
/* @__PURE__ */ e("span", { children: "Duration" }),
|
|
284
284
|
/* @__PURE__ */ e("span", { children: "Status" })
|
|
285
285
|
] }),
|
|
286
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
286
|
+
/* @__PURE__ */ a("div", { className: `${Le["empty-state"]}`, children: [
|
|
287
287
|
/* @__PURE__ */ e("h3", { children: "Request logs aren’t available yet" }),
|
|
288
288
|
/* @__PURE__ */ e("p", { children: "Your account’s request history will appear here when logging is connected." }),
|
|
289
289
|
/* @__PURE__ */ e("a", { href: "/docs", children: "View API documentation ↗" })
|
|
@@ -295,9 +295,9 @@ function Tr({
|
|
|
295
295
|
/* @__PURE__ */ a("section", { "data-panel": "plans", hidden: !0, children: [
|
|
296
296
|
/* @__PURE__ */ a("div", { className: "section-heading", children: [
|
|
297
297
|
/* @__PURE__ */ e("h2", { children: "Your access" }),
|
|
298
|
-
/* @__PURE__ */ e(
|
|
298
|
+
/* @__PURE__ */ e(W, { "data-topup": !0, children: "Manage subscription" })
|
|
299
299
|
] }),
|
|
300
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
300
|
+
/* @__PURE__ */ e("div", { className: `${Le.panel} settings-list`, children: /* @__PURE__ */ a("div", { className: "setting-row", children: [
|
|
301
301
|
/* @__PURE__ */ a("div", { children: [
|
|
302
302
|
/* @__PURE__ */ e("h3", { id: "current-plan", children: "No account connected" }),
|
|
303
303
|
/* @__PURE__ */ e("p", { id: "current-expiry", children: "Connect your key to view your access." })
|
|
@@ -308,7 +308,7 @@ function Tr({
|
|
|
308
308
|
/* @__PURE__ */ e("h2", { children: "Choose a plan" }),
|
|
309
309
|
/* @__PURE__ */ e("span", { children: "No payment fee" })
|
|
310
310
|
] }),
|
|
311
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
311
|
+
/* @__PURE__ */ e("div", { className: `${Le.panel}`, id: "plans-list", children: /* @__PURE__ */ e("p", { className: "loading-note", children: "Loading plans…" }) }),
|
|
312
312
|
/* @__PURE__ */ e("p", { id: "plans-status", role: "status" }),
|
|
313
313
|
/* @__PURE__ */ a("section", { id: "catalog", "aria-label": "Available models", children: [
|
|
314
314
|
/* @__PURE__ */ e("div", { className: "section-heading", children: /* @__PURE__ */ e("h2", { children: "Included models" }) }),
|
|
@@ -316,9 +316,9 @@ function Tr({
|
|
|
316
316
|
/* @__PURE__ */ e("ul", { id: "catalog-items" })
|
|
317
317
|
] }),
|
|
318
318
|
/* @__PURE__ */ e("div", { className: "section-heading", children: /* @__PURE__ */ e("h2", { children: "Latest payment" }) }),
|
|
319
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
319
|
+
/* @__PURE__ */ a("div", { className: `${Le.panel} payment-summary`, children: [
|
|
320
320
|
/* @__PURE__ */ e("span", { id: "latest-payment", children: "Connect your account to view payments." }),
|
|
321
|
-
/* @__PURE__ */ e(
|
|
321
|
+
/* @__PURE__ */ e(W, { "data-topup": !0, children: "View invoice" })
|
|
322
322
|
] })
|
|
323
323
|
] }),
|
|
324
324
|
`
|
|
@@ -337,7 +337,7 @@ function Tr({
|
|
|
337
337
|
"aria-labelledby": "topup-title",
|
|
338
338
|
children: [
|
|
339
339
|
/* @__PURE__ */ a("header", { className: "drawer-header", children: [
|
|
340
|
-
/* @__PURE__ */ e(
|
|
340
|
+
/* @__PURE__ */ e(W, { id: "close-topup", "aria-label": "Close top up", children: "×" }),
|
|
341
341
|
/* @__PURE__ */ e("span", { children: "Finance / Add funds" })
|
|
342
342
|
] }),
|
|
343
343
|
/* @__PURE__ */ a("div", { className: "drawer-body", children: [
|
|
@@ -353,7 +353,7 @@ function Tr({
|
|
|
353
353
|
/* @__PURE__ */ a("div", { className: "balance-amount", children: [
|
|
354
354
|
/* @__PURE__ */ e("span", { children: "$" }),
|
|
355
355
|
/* @__PURE__ */ e(
|
|
356
|
-
|
|
356
|
+
nt,
|
|
357
357
|
{
|
|
358
358
|
id: "preview-amount",
|
|
359
359
|
type: "number",
|
|
@@ -381,7 +381,7 @@ function Tr({
|
|
|
381
381
|
}
|
|
382
382
|
),
|
|
383
383
|
/* @__PURE__ */ a("div", { className: "balance-preview-footer", children: [
|
|
384
|
-
/* @__PURE__ */ a(
|
|
384
|
+
/* @__PURE__ */ a(W, { id: "preview-connect", className: `${Le.primary}`, children: [
|
|
385
385
|
"Connect API key ",
|
|
386
386
|
/* @__PURE__ */ e("span", { children: "→" })
|
|
387
387
|
] }),
|
|
@@ -406,7 +406,7 @@ function Tr({
|
|
|
406
406
|
`
|
|
407
407
|
`,
|
|
408
408
|
/* @__PURE__ */ e(
|
|
409
|
-
|
|
409
|
+
W,
|
|
410
410
|
{
|
|
411
411
|
id: "refresh",
|
|
412
412
|
className: "text-button",
|
|
@@ -417,7 +417,7 @@ function Tr({
|
|
|
417
417
|
`
|
|
418
418
|
`,
|
|
419
419
|
/* @__PURE__ */ e(
|
|
420
|
-
|
|
420
|
+
W,
|
|
421
421
|
{
|
|
422
422
|
id: "logout",
|
|
423
423
|
className: "text-button",
|
|
@@ -477,10 +477,10 @@ function Tr({
|
|
|
477
477
|
}
|
|
478
478
|
),
|
|
479
479
|
/* @__PURE__ */ e(
|
|
480
|
-
|
|
480
|
+
W,
|
|
481
481
|
{
|
|
482
482
|
id: "pay",
|
|
483
|
-
className: `${
|
|
483
|
+
className: `${Le.primary}`,
|
|
484
484
|
type: "submit",
|
|
485
485
|
children: "Create invoice"
|
|
486
486
|
}
|
|
@@ -500,7 +500,7 @@ function Tr({
|
|
|
500
500
|
/* @__PURE__ */ a("section", { id: "invoice", hidden: !0, "aria-label": "Payment invoice", children: [
|
|
501
501
|
`
|
|
502
502
|
`,
|
|
503
|
-
/* @__PURE__ */ e(
|
|
503
|
+
/* @__PURE__ */ e(W, { id: "invoice-back", children: "← Payment methods" }),
|
|
504
504
|
/* @__PURE__ */ e("h2", { children: "Pay by QR code" }),
|
|
505
505
|
/* @__PURE__ */ e("p", { children: "Send the exact amount in one transaction." }),
|
|
506
506
|
/* @__PURE__ */ e("p", { id: "invoice-countdown" }),
|
|
@@ -513,12 +513,12 @@ function Tr({
|
|
|
513
513
|
] }),
|
|
514
514
|
/* @__PURE__ */ a("div", { className: "payment-copy", children: [
|
|
515
515
|
/* @__PURE__ */ e("span", { children: "Wallet address" }),
|
|
516
|
-
/* @__PURE__ */ e(
|
|
516
|
+
/* @__PURE__ */ e(W, { id: "copy-wallet", children: "Copy" }),
|
|
517
517
|
/* @__PURE__ */ e("code", { id: "payment-wallet" })
|
|
518
518
|
] }),
|
|
519
519
|
/* @__PURE__ */ a("div", { className: "payment-copy", children: [
|
|
520
520
|
/* @__PURE__ */ e("span", { children: "Amount to pay" }),
|
|
521
|
-
/* @__PURE__ */ e(
|
|
521
|
+
/* @__PURE__ */ e(W, { id: "copy-payment", children: "Copy" }),
|
|
522
522
|
/* @__PURE__ */ e("code", { id: "payment-amount" })
|
|
523
523
|
] }),
|
|
524
524
|
/* @__PURE__ */ e("p", { id: "payment-copy-status", role: "status" }),
|
|
@@ -544,7 +544,7 @@ function Tr({
|
|
|
544
544
|
`
|
|
545
545
|
`,
|
|
546
546
|
/* @__PURE__ */ a(
|
|
547
|
-
|
|
547
|
+
W,
|
|
548
548
|
{
|
|
549
549
|
id: "support-launcher",
|
|
550
550
|
className: "support-launcher",
|
|
@@ -581,7 +581,7 @@ function Tr({
|
|
|
581
581
|
children: [
|
|
582
582
|
/* @__PURE__ */ a("div", { className: "support-sidebar", children: [
|
|
583
583
|
/* @__PURE__ */ a("div", { className: "support-tools", children: [
|
|
584
|
-
/* @__PURE__ */ e(
|
|
584
|
+
/* @__PURE__ */ e(W, { id: "close-support", "aria-label": "Close support", children: "×" }),
|
|
585
585
|
/* @__PURE__ */ e("span", { className: "window-handle" })
|
|
586
586
|
] }),
|
|
587
587
|
/* @__PURE__ */ e("h2", { id: "support-title", children: "Support" }),
|
|
@@ -592,13 +592,13 @@ function Tr({
|
|
|
592
592
|
role: "group",
|
|
593
593
|
"aria-label": "Support inbox",
|
|
594
594
|
children: [
|
|
595
|
-
/* @__PURE__ */ e(
|
|
596
|
-
/* @__PURE__ */ e(
|
|
595
|
+
/* @__PURE__ */ e(W, { "data-inbox": "active", "aria-pressed": "true", children: "Active" }),
|
|
596
|
+
/* @__PURE__ */ e(W, { "data-inbox": "archive", "aria-pressed": "false", children: "Archive" })
|
|
597
597
|
]
|
|
598
598
|
}
|
|
599
599
|
),
|
|
600
600
|
/* @__PURE__ */ a(
|
|
601
|
-
|
|
601
|
+
W,
|
|
602
602
|
{
|
|
603
603
|
className: "notification-row",
|
|
604
604
|
"data-inbox": "notifications",
|
|
@@ -621,7 +621,7 @@ function Tr({
|
|
|
621
621
|
}
|
|
622
622
|
),
|
|
623
623
|
/* @__PURE__ */ e("p", { id: "support-list-status", children: "Ticket history is not connected." }),
|
|
624
|
-
/* @__PURE__ */ a(
|
|
624
|
+
/* @__PURE__ */ a(W, { id: "new-ticket", children: [
|
|
625
625
|
"New ticket ",
|
|
626
626
|
/* @__PURE__ */ e("span", { children: "+" })
|
|
627
627
|
] })
|
|
@@ -643,14 +643,14 @@ function Tr({
|
|
|
643
643
|
) }),
|
|
644
644
|
/* @__PURE__ */ e("h3", { children: "How can we help?" }),
|
|
645
645
|
/* @__PURE__ */ e("p", { children: "Support messages are not connected yet. You can prepare your request here." }),
|
|
646
|
-
/* @__PURE__ */ e(
|
|
646
|
+
/* @__PURE__ */ e(W, { id: "compose-ticket", children: "Write a request" })
|
|
647
647
|
] }),
|
|
648
648
|
/* @__PURE__ */ a("form", { id: "ticket-form", hidden: !0, children: [
|
|
649
649
|
/* @__PURE__ */ e("h3", { children: "New request" }),
|
|
650
650
|
/* @__PURE__ */ a("label", { children: [
|
|
651
651
|
"Subject",
|
|
652
652
|
/* @__PURE__ */ e(
|
|
653
|
-
|
|
653
|
+
nt,
|
|
654
654
|
{
|
|
655
655
|
id: "ticket-subject",
|
|
656
656
|
required: !0,
|
|
@@ -673,7 +673,7 @@ function Tr({
|
|
|
673
673
|
)
|
|
674
674
|
] }),
|
|
675
675
|
/* @__PURE__ */ e("p", { children: "Sending tickets is not available yet." }),
|
|
676
|
-
/* @__PURE__ */ e(
|
|
676
|
+
/* @__PURE__ */ e(W, { type: "submit", children: "Copy request" }),
|
|
677
677
|
/* @__PURE__ */ e("p", { id: "ticket-status", role: "status" })
|
|
678
678
|
] })
|
|
679
679
|
] })
|
|
@@ -684,15 +684,15 @@ function Tr({
|
|
|
684
684
|
`
|
|
685
685
|
] });
|
|
686
686
|
}
|
|
687
|
-
const
|
|
687
|
+
const l = { ...rt, ...ct }, pt = [
|
|
688
688
|
["agents", "Agents", "terminal"],
|
|
689
689
|
["sessions", "Sessions", "screen"],
|
|
690
690
|
["library", "Library", "library"],
|
|
691
691
|
["connection", "Connection", "key"],
|
|
692
692
|
["balance", "Balance", "wallet"],
|
|
693
693
|
["usage", "Usage", "chart"]
|
|
694
|
-
],
|
|
695
|
-
function
|
|
694
|
+
], At = oa(null), da = ["Overview", "Requests", "Sessions", "Context"];
|
|
695
|
+
function ha({
|
|
696
696
|
children: t,
|
|
697
697
|
onClick: n,
|
|
698
698
|
primary: r = !1,
|
|
@@ -702,7 +702,7 @@ function Na({
|
|
|
702
702
|
"button",
|
|
703
703
|
{
|
|
704
704
|
type: "button",
|
|
705
|
-
className: `${
|
|
705
|
+
className: `${l.text}${r ? " primary" : ""}`,
|
|
706
706
|
onClick: n,
|
|
707
707
|
disabled: !n,
|
|
708
708
|
"aria-label": o,
|
|
@@ -710,81 +710,81 @@ function Na({
|
|
|
710
710
|
}
|
|
711
711
|
);
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function Ge({
|
|
714
714
|
status: t,
|
|
715
715
|
error: n,
|
|
716
716
|
onRetry: r,
|
|
717
717
|
loading: o,
|
|
718
|
-
empty:
|
|
718
|
+
empty: c
|
|
719
719
|
}) {
|
|
720
|
-
return t === "error" ? /* @__PURE__ */ a("div", { className: `${
|
|
720
|
+
return t === "error" ? /* @__PURE__ */ a("div", { className: `${l["empty-state"]}`, role: "alert", children: [
|
|
721
721
|
/* @__PURE__ */ e("span", { children: n || "Unable to load this information." }),
|
|
722
|
-
r && /* @__PURE__ */ e(
|
|
723
|
-
] }) : /* @__PURE__ */ e("div", { className: `${
|
|
722
|
+
r && /* @__PURE__ */ e(ha, { onClick: r, children: "Try again" })
|
|
723
|
+
] }) : /* @__PURE__ */ e("div", { className: `${l["empty-state"]}`, role: "status", children: t === "loading" ? o : c });
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Lr({
|
|
726
726
|
page: t,
|
|
727
727
|
theme: n,
|
|
728
728
|
children: r,
|
|
729
729
|
onNavigate: o,
|
|
730
|
-
onRefresh:
|
|
731
|
-
refreshing:
|
|
730
|
+
onRefresh: c,
|
|
731
|
+
refreshing: s = !1,
|
|
732
732
|
usageSection: d = "Overview",
|
|
733
|
-
usageSections: h =
|
|
734
|
-
onUsageSectionChange:
|
|
735
|
-
notice:
|
|
736
|
-
headerActions:
|
|
737
|
-
sidebarFooter:
|
|
738
|
-
beforeContent:
|
|
733
|
+
usageSections: h = da,
|
|
734
|
+
onUsageSectionChange: u,
|
|
735
|
+
notice: $,
|
|
736
|
+
headerActions: R,
|
|
737
|
+
sidebarFooter: M,
|
|
738
|
+
beforeContent: L
|
|
739
739
|
}) {
|
|
740
|
-
const [
|
|
740
|
+
const [g, _] = Ie(
|
|
741
741
|
() => typeof matchMedia < "u" && matchMedia(
|
|
742
742
|
"(max-width: 760px), (pointer: coarse) and (max-width: 1024px)"
|
|
743
743
|
).matches
|
|
744
744
|
);
|
|
745
|
-
|
|
745
|
+
Be(() => {
|
|
746
746
|
const T = matchMedia(
|
|
747
747
|
"(max-width: 760px), (pointer: coarse) and (max-width: 1024px)"
|
|
748
|
-
),
|
|
749
|
-
return T.addEventListener("change",
|
|
748
|
+
), v = () => _(T.matches);
|
|
749
|
+
return T.addEventListener("change", v), () => T.removeEventListener("change", v);
|
|
750
750
|
}, []);
|
|
751
|
-
const
|
|
752
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
751
|
+
const m = t === "settings" ? "Settings" : pt.find(([T]) => T === t)[1], f = ["agents", "sessions", "library"].includes(t) ? "Work" : ["usage", "balance"].includes(t) ? "Insights" : "Models", S = t === "connection" ? "providers" : t, i = /* @__PURE__ */ a("div", { className: `${l.brand}`, children: [
|
|
752
|
+
/* @__PURE__ */ e("span", { className: `${l.logo}`, "aria-hidden": "true", children: /* @__PURE__ */ e("img", { src: Et, width: "22", height: "22", alt: "" }) }),
|
|
753
753
|
/* @__PURE__ */ e("span", { children: "RouterPlus" })
|
|
754
|
-
] }),
|
|
754
|
+
] }), y = /* @__PURE__ */ a(
|
|
755
755
|
"button",
|
|
756
756
|
{
|
|
757
757
|
type: "button",
|
|
758
758
|
id: "prefs",
|
|
759
|
-
className: `${
|
|
759
|
+
className: `${l.icon}${t === "settings" ? " on" : ""}`,
|
|
760
760
|
"aria-label": "Settings",
|
|
761
761
|
onClick: () => o?.("settings"),
|
|
762
762
|
children: [
|
|
763
|
-
/* @__PURE__ */ e(
|
|
764
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
763
|
+
/* @__PURE__ */ e(Ne, { name: "settings" }),
|
|
764
|
+
/* @__PURE__ */ e("span", { className: `${l["side-l"]}`, children: "Settings" })
|
|
765
765
|
]
|
|
766
766
|
}
|
|
767
|
-
),
|
|
767
|
+
), C = /* @__PURE__ */ a(
|
|
768
768
|
"div",
|
|
769
769
|
{
|
|
770
|
-
className:
|
|
771
|
-
id:
|
|
770
|
+
className: g ? l.segs : l["nav-sub"],
|
|
771
|
+
id: g ? "usageTab" : void 0,
|
|
772
772
|
ref: (T) => {
|
|
773
|
-
if (!T || !
|
|
774
|
-
const
|
|
775
|
-
const H = T.querySelector("button.on"),
|
|
776
|
-
H &&
|
|
773
|
+
if (!T || !g) return;
|
|
774
|
+
const v = () => {
|
|
775
|
+
const H = T.querySelector("button.on"), re = T.querySelector(".thumb");
|
|
776
|
+
H && re && (re.style.width = H.offsetWidth + "px", re.style.transform = `translateX(${H.offsetLeft}px)`);
|
|
777
777
|
};
|
|
778
|
-
|
|
778
|
+
v(), document.fonts.ready.then(v);
|
|
779
779
|
},
|
|
780
780
|
role: "group",
|
|
781
781
|
"aria-label": "Usage section",
|
|
782
782
|
children: [
|
|
783
|
-
|
|
784
|
-
!
|
|
783
|
+
g && /* @__PURE__ */ e("span", { className: `${l.thumb}` }),
|
|
784
|
+
!g && /* @__PURE__ */ e(
|
|
785
785
|
"span",
|
|
786
786
|
{
|
|
787
|
-
className: `${
|
|
787
|
+
className: `${l["nav-hl"]} ${l.still}`,
|
|
788
788
|
style: {
|
|
789
789
|
transform: `translateY(${h.indexOf(d) * 27}px)`
|
|
790
790
|
}
|
|
@@ -793,10 +793,10 @@ function Pr({
|
|
|
793
793
|
h.map((T) => /* @__PURE__ */ e(
|
|
794
794
|
"button",
|
|
795
795
|
{
|
|
796
|
-
className:
|
|
796
|
+
className: g ? `opt${d === T ? l.on : ""}` : `nav-s${d === T ? l.cur : ""}`,
|
|
797
797
|
type: "button",
|
|
798
798
|
"aria-pressed": d === T,
|
|
799
|
-
onClick: () =>
|
|
799
|
+
onClick: () => u?.(T),
|
|
800
800
|
children: /* @__PURE__ */ e("span", { children: T })
|
|
801
801
|
},
|
|
802
802
|
T
|
|
@@ -808,124 +808,124 @@ function Pr({
|
|
|
808
808
|
"div",
|
|
809
809
|
{
|
|
810
810
|
"data-theme": n,
|
|
811
|
-
className: `mp-ui ${
|
|
811
|
+
className: `mp-ui ${l["mp-ui"]} ${l.window} ${l.web}${g ? "" : " side-nav"}`,
|
|
812
812
|
children: [
|
|
813
|
-
!
|
|
814
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
815
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
813
|
+
!g && /* @__PURE__ */ a("aside", { className: `${l.sidebar}`, id: "side", children: [
|
|
814
|
+
/* @__PURE__ */ e("div", { className: `${l["side-top"]}`, children: i }),
|
|
815
|
+
/* @__PURE__ */ e("div", { className: `${l["side-scroll"]}`, children: /* @__PURE__ */ e(
|
|
816
816
|
"nav",
|
|
817
817
|
{
|
|
818
|
-
className: `${
|
|
818
|
+
className: `${l.seg}`,
|
|
819
819
|
id: "nav",
|
|
820
820
|
"aria-label": "Main navigation",
|
|
821
|
-
children:
|
|
821
|
+
children: pt.map(([T, v, H]) => /* @__PURE__ */ a(Ct.Fragment, { children: [
|
|
822
822
|
/* @__PURE__ */ a(
|
|
823
823
|
"button",
|
|
824
824
|
{
|
|
825
825
|
type: "button",
|
|
826
826
|
"data-view": T === "connection" ? "providers" : T,
|
|
827
|
-
className: t === T ?
|
|
827
|
+
className: t === T ? l.on : "",
|
|
828
828
|
"aria-current": t === T ? "page" : void 0,
|
|
829
829
|
onClick: () => o?.(T),
|
|
830
830
|
children: [
|
|
831
|
-
/* @__PURE__ */ e(
|
|
832
|
-
/* @__PURE__ */ e("span", { children:
|
|
831
|
+
/* @__PURE__ */ e(Ne, { name: H }),
|
|
832
|
+
/* @__PURE__ */ e("span", { children: v })
|
|
833
833
|
]
|
|
834
834
|
}
|
|
835
835
|
),
|
|
836
|
-
T === "usage" && t === "usage" &&
|
|
836
|
+
T === "usage" && t === "usage" && C
|
|
837
837
|
] }, T))
|
|
838
838
|
}
|
|
839
839
|
) }),
|
|
840
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
841
|
-
|
|
842
|
-
|
|
840
|
+
/* @__PURE__ */ a("div", { className: `${l["side-foot"]}`, children: [
|
|
841
|
+
y,
|
|
842
|
+
M
|
|
843
843
|
] })
|
|
844
844
|
] }),
|
|
845
|
-
/* @__PURE__ */ a("header", { className: `${
|
|
846
|
-
|
|
847
|
-
/* @__PURE__ */ e("h1", { className: `${
|
|
848
|
-
!
|
|
845
|
+
/* @__PURE__ */ a("header", { className: `${l.top}`, children: [
|
|
846
|
+
g && i,
|
|
847
|
+
/* @__PURE__ */ e("h1", { className: `${l["sr-only"]}`, children: m }),
|
|
848
|
+
!g && /* @__PURE__ */ a("div", { className: `${l.crumb}`, "aria-hidden": "true", children: [
|
|
849
849
|
/* @__PURE__ */ e("span", { children: f }),
|
|
850
850
|
/* @__PURE__ */ e("i", { children: "/" }),
|
|
851
|
-
t === "usage" ? /* @__PURE__ */ a(
|
|
851
|
+
t === "usage" ? /* @__PURE__ */ a(He, { children: [
|
|
852
852
|
/* @__PURE__ */ e("span", { children: "Usage" }),
|
|
853
853
|
/* @__PURE__ */ e("i", { children: "/" }),
|
|
854
854
|
/* @__PURE__ */ e("b", { children: d })
|
|
855
|
-
] }) : /* @__PURE__ */ e("b", { children:
|
|
855
|
+
] }) : /* @__PURE__ */ e("b", { children: m })
|
|
856
856
|
] }),
|
|
857
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
857
|
+
/* @__PURE__ */ a("div", { className: `${l.actions}`, children: [
|
|
858
858
|
/* @__PURE__ */ e(
|
|
859
859
|
"button",
|
|
860
860
|
{
|
|
861
861
|
type: "button",
|
|
862
|
-
className: `${
|
|
862
|
+
className: `${l.icon}`,
|
|
863
863
|
id: "sync",
|
|
864
864
|
"aria-label": "Refresh",
|
|
865
|
-
disabled:
|
|
866
|
-
onClick:
|
|
867
|
-
children: /* @__PURE__ */ e(
|
|
865
|
+
disabled: s,
|
|
866
|
+
onClick: c,
|
|
867
|
+
children: /* @__PURE__ */ e(Ne, { name: "refresh" })
|
|
868
868
|
}
|
|
869
869
|
),
|
|
870
|
-
|
|
871
|
-
|
|
870
|
+
R,
|
|
871
|
+
g && y
|
|
872
872
|
] })
|
|
873
873
|
] }),
|
|
874
|
-
/* @__PURE__ */ a("main", { className: `${
|
|
875
|
-
|
|
876
|
-
/* @__PURE__ */ e(
|
|
874
|
+
/* @__PURE__ */ a("main", { className: `${l.view}`, id: `view-${S}`, children: [
|
|
875
|
+
L,
|
|
876
|
+
/* @__PURE__ */ e(At.Provider, { value: t === "usage" && g ? C : null, children: r })
|
|
877
877
|
] }),
|
|
878
|
-
|
|
878
|
+
$ && /* @__PURE__ */ e("footer", { className: `${l["mp-notice"]}`, children: $ })
|
|
879
879
|
]
|
|
880
880
|
}
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function Sr({
|
|
884
884
|
groups: t,
|
|
885
885
|
query: n,
|
|
886
886
|
onQueryChange: r,
|
|
887
887
|
onSelect: o,
|
|
888
|
-
onImport:
|
|
889
|
-
onCustomProvider:
|
|
888
|
+
onImport: c,
|
|
889
|
+
onCustomProvider: s,
|
|
890
890
|
onPlugins: d,
|
|
891
891
|
hasProviders: h = !1,
|
|
892
|
-
status:
|
|
893
|
-
error:
|
|
894
|
-
onRetry:
|
|
892
|
+
status: u = "ready",
|
|
893
|
+
error: $,
|
|
894
|
+
onRetry: R
|
|
895
895
|
}) {
|
|
896
|
-
const
|
|
897
|
-
...
|
|
898
|
-
providers:
|
|
899
|
-
(
|
|
900
|
-
(f) => `${
|
|
896
|
+
const M = Ke(), L = n.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean), g = t.map((_) => ({
|
|
897
|
+
..._,
|
|
898
|
+
providers: _.providers.filter(
|
|
899
|
+
(m) => L.every(
|
|
900
|
+
(f) => `${m.name} ${m.detail ?? ""} ${_.title} ${_.hint ?? ""}`.toLocaleLowerCase().includes(f)
|
|
901
901
|
)
|
|
902
902
|
)
|
|
903
|
-
})).filter((
|
|
904
|
-
return /* @__PURE__ */ a(
|
|
905
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
903
|
+
})).filter((_) => _.providers.length);
|
|
904
|
+
return /* @__PURE__ */ a(He, { children: [
|
|
905
|
+
/* @__PURE__ */ e("div", { className: `${l["after-list"]} ${l.away}`, children: /* @__PURE__ */ e("button", { className: `${l.text}`, children: "+ Add provider" }) }),
|
|
906
906
|
/* @__PURE__ */ a(
|
|
907
907
|
"section",
|
|
908
908
|
{
|
|
909
|
-
className: `${
|
|
909
|
+
className: `${l.sheet}`,
|
|
910
910
|
id: "addSheet",
|
|
911
911
|
"aria-label": "Providers",
|
|
912
|
-
"aria-busy":
|
|
912
|
+
"aria-busy": u === "loading",
|
|
913
913
|
children: [
|
|
914
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
915
|
-
/* @__PURE__ */ e("label", { className: `${
|
|
916
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
914
|
+
/* @__PURE__ */ a("div", { className: `${l["row-head"]}`, children: [
|
|
915
|
+
/* @__PURE__ */ e("label", { className: `${l.label}`, htmlFor: M, children: h ? "Add a provider" : "Add your first provider" }),
|
|
916
|
+
/* @__PURE__ */ e("span", { className: `${l.grow}` }),
|
|
917
917
|
/* @__PURE__ */ e(
|
|
918
918
|
"input",
|
|
919
919
|
{
|
|
920
|
-
className: `${
|
|
921
|
-
id:
|
|
920
|
+
className: `${l.find}`,
|
|
921
|
+
id: M,
|
|
922
922
|
type: "text",
|
|
923
923
|
"aria-label": "Find a vendor",
|
|
924
924
|
placeholder: "Find a vendor…",
|
|
925
925
|
value: n,
|
|
926
|
-
onChange: (
|
|
927
|
-
onKeyDown: (
|
|
928
|
-
|
|
926
|
+
onChange: (_) => r(_.target.value),
|
|
927
|
+
onKeyDown: (_) => {
|
|
928
|
+
_.key === "Escape" && r("");
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
),
|
|
@@ -933,78 +933,78 @@ function qr({
|
|
|
933
933
|
"button",
|
|
934
934
|
{
|
|
935
935
|
type: "button",
|
|
936
|
-
className: `${
|
|
937
|
-
onClick:
|
|
936
|
+
className: `${l.text}`,
|
|
937
|
+
onClick: c,
|
|
938
938
|
children: "Import…"
|
|
939
939
|
}
|
|
940
940
|
)
|
|
941
941
|
] }),
|
|
942
|
-
|
|
943
|
-
|
|
942
|
+
u !== "ready" ? /* @__PURE__ */ e(
|
|
943
|
+
Ge,
|
|
944
944
|
{
|
|
945
|
-
status:
|
|
946
|
-
error:
|
|
947
|
-
onRetry:
|
|
945
|
+
status: u,
|
|
946
|
+
error: $,
|
|
947
|
+
onRetry: R,
|
|
948
948
|
loading: "Loading providers…"
|
|
949
949
|
}
|
|
950
950
|
) : /* @__PURE__ */ a("div", { className: "tiles", children: [
|
|
951
|
-
|
|
952
|
-
|
|
951
|
+
g.length === 0 && /* @__PURE__ */ e(
|
|
952
|
+
Ge,
|
|
953
953
|
{
|
|
954
954
|
loading: "",
|
|
955
955
|
empty: n.trim() ? `No providers match “${n.trim()}”. Try another name or add a custom provider.` : "No providers available."
|
|
956
956
|
}
|
|
957
957
|
),
|
|
958
|
-
|
|
959
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
960
|
-
/* @__PURE__ */ e("b", { children:
|
|
961
|
-
|
|
958
|
+
g.map((_) => /* @__PURE__ */ a(Ct.Fragment, { children: [
|
|
959
|
+
/* @__PURE__ */ a("div", { className: `${l.kind}`, children: [
|
|
960
|
+
/* @__PURE__ */ e("b", { children: _.title }),
|
|
961
|
+
_.hint && /* @__PURE__ */ e("span", { children: _.hint })
|
|
962
962
|
] }),
|
|
963
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
964
|
-
|
|
963
|
+
/* @__PURE__ */ a("div", { className: `${l.grid}`, children: [
|
|
964
|
+
_.providers.map((m) => /* @__PURE__ */ a(
|
|
965
965
|
"button",
|
|
966
966
|
{
|
|
967
967
|
type: "button",
|
|
968
|
-
className: `${
|
|
969
|
-
disabled:
|
|
970
|
-
onClick: () => o?.(
|
|
971
|
-
title:
|
|
968
|
+
className: `${l.tile}`,
|
|
969
|
+
disabled: m.disabled,
|
|
970
|
+
onClick: () => o?.(m),
|
|
971
|
+
title: m.detail || m.name,
|
|
972
972
|
children: [
|
|
973
|
-
/* @__PURE__ */ e(
|
|
974
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
973
|
+
/* @__PURE__ */ e(Je, { name: m.icon }),
|
|
974
|
+
/* @__PURE__ */ e("span", { className: `${l.nm}`, children: /* @__PURE__ */ e("span", { className: `${l.n}`, children: m.name }) })
|
|
975
975
|
]
|
|
976
976
|
},
|
|
977
|
-
|
|
977
|
+
m.id
|
|
978
978
|
)),
|
|
979
|
-
|
|
979
|
+
_.id === "subscriptions" && !n.trim() && /* @__PURE__ */ a(
|
|
980
980
|
"button",
|
|
981
981
|
{
|
|
982
982
|
type: "button",
|
|
983
|
-
className: `${
|
|
983
|
+
className: `${l.tile} ${l["more-plugins"]}`,
|
|
984
984
|
onClick: d,
|
|
985
985
|
children: [
|
|
986
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
987
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
988
|
-
/* @__PURE__ */ e(
|
|
986
|
+
/* @__PURE__ */ e("span", { className: `${l.puzzle}`, children: /* @__PURE__ */ e(Ne, { name: "plugin" }) }),
|
|
987
|
+
/* @__PURE__ */ e("span", { className: `${l.nm}`, children: /* @__PURE__ */ e("span", { className: `${l.n}`, children: "More in Plugins" }) }),
|
|
988
|
+
/* @__PURE__ */ e(Ne, { name: "chevron" })
|
|
989
989
|
]
|
|
990
990
|
}
|
|
991
991
|
)
|
|
992
992
|
] })
|
|
993
|
-
] },
|
|
994
|
-
!n.trim() && /* @__PURE__ */ a("div", { className: `${
|
|
993
|
+
] }, _.id)),
|
|
994
|
+
!n.trim() && /* @__PURE__ */ a("div", { className: `${l["custom-foot"]}`, children: [
|
|
995
995
|
/* @__PURE__ */ a(
|
|
996
996
|
"button",
|
|
997
997
|
{
|
|
998
998
|
type: "button",
|
|
999
|
-
className: `${
|
|
1000
|
-
onClick:
|
|
999
|
+
className: `${l.custom}`,
|
|
1000
|
+
onClick: s,
|
|
1001
1001
|
children: [
|
|
1002
|
-
/* @__PURE__ */ e(
|
|
1002
|
+
/* @__PURE__ */ e(Ne, { name: "plus" }),
|
|
1003
1003
|
/* @__PURE__ */ e("span", { children: "Custom provider" })
|
|
1004
1004
|
]
|
|
1005
1005
|
}
|
|
1006
1006
|
),
|
|
1007
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1007
|
+
/* @__PURE__ */ e("span", { className: `${l.hint}`, children: "any OpenAI or Anthropic compatible URL" })
|
|
1008
1008
|
] })
|
|
1009
1009
|
] })
|
|
1010
1010
|
]
|
|
@@ -1012,45 +1012,45 @@ function qr({
|
|
|
1012
1012
|
)
|
|
1013
1013
|
] });
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function Br({
|
|
1016
1016
|
agents: t,
|
|
1017
1017
|
endpoint: n,
|
|
1018
1018
|
onCopyEndpoint: r,
|
|
1019
1019
|
onOpenConnection: o,
|
|
1020
|
-
onToggle:
|
|
1021
|
-
onMappingChange:
|
|
1020
|
+
onToggle: c,
|
|
1021
|
+
onMappingChange: s,
|
|
1022
1022
|
showGuide: d = !0,
|
|
1023
1023
|
onDismissGuide: h,
|
|
1024
|
-
connectionReady:
|
|
1025
|
-
onSaveProfile:
|
|
1026
|
-
profileLabel:
|
|
1027
|
-
onManage:
|
|
1028
|
-
onInstall:
|
|
1029
|
-
installCount:
|
|
1030
|
-
status:
|
|
1031
|
-
error:
|
|
1024
|
+
connectionReady: u = !1,
|
|
1025
|
+
onSaveProfile: $,
|
|
1026
|
+
profileLabel: R = "none yet · save the setup to switch back in one click",
|
|
1027
|
+
onManage: M,
|
|
1028
|
+
onInstall: L,
|
|
1029
|
+
installCount: g,
|
|
1030
|
+
status: _ = "ready",
|
|
1031
|
+
error: m,
|
|
1032
1032
|
onRetry: f
|
|
1033
1033
|
}) {
|
|
1034
|
-
const
|
|
1035
|
-
return /* @__PURE__ */ a(
|
|
1036
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
1034
|
+
const S = Number(u) + Number(t.some((i) => i.state === "connected"));
|
|
1035
|
+
return /* @__PURE__ */ a(He, { children: [
|
|
1036
|
+
/* @__PURE__ */ a("div", { className: `${l["row-head"]}`, children: [
|
|
1037
1037
|
/* @__PURE__ */ a(
|
|
1038
1038
|
"button",
|
|
1039
1039
|
{
|
|
1040
|
-
className: `${
|
|
1040
|
+
className: `${l.fold}`,
|
|
1041
1041
|
type: "button",
|
|
1042
1042
|
"aria-expanded": !1,
|
|
1043
1043
|
children: [
|
|
1044
|
-
/* @__PURE__ */ e(
|
|
1045
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1044
|
+
/* @__PURE__ */ e(Ne, { name: "chevron" }),
|
|
1045
|
+
/* @__PURE__ */ e("span", { className: `${l.label}`, children: "Connect" })
|
|
1046
1046
|
]
|
|
1047
1047
|
}
|
|
1048
1048
|
),
|
|
1049
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1049
|
+
/* @__PURE__ */ e("span", { className: `${l.grow}` }),
|
|
1050
1050
|
n && /* @__PURE__ */ a(
|
|
1051
1051
|
"span",
|
|
1052
1052
|
{
|
|
1053
|
-
className: `${
|
|
1053
|
+
className: `${l.note} ${l.brief}`,
|
|
1054
1054
|
id: "connectNote",
|
|
1055
1055
|
children: [
|
|
1056
1056
|
/* @__PURE__ */ e("code", { children: n }),
|
|
@@ -1058,100 +1058,100 @@ function Ir({
|
|
|
1058
1058
|
"button",
|
|
1059
1059
|
{
|
|
1060
1060
|
type: "button",
|
|
1061
|
-
className: `${
|
|
1061
|
+
className: `${l.copy}`,
|
|
1062
1062
|
"aria-label": "Copy endpoint",
|
|
1063
1063
|
onClick: r,
|
|
1064
|
-
children: /* @__PURE__ */ e(
|
|
1064
|
+
children: /* @__PURE__ */ e(Ne, { name: "copy" })
|
|
1065
1065
|
}
|
|
1066
1066
|
)
|
|
1067
1067
|
]
|
|
1068
1068
|
}
|
|
1069
1069
|
)
|
|
1070
1070
|
] }),
|
|
1071
|
-
/* @__PURE__ */ a("section", { className: `${
|
|
1072
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1073
|
-
/* @__PURE__ */ e("div", { id: "profiles", className: `${
|
|
1071
|
+
/* @__PURE__ */ a("section", { className: `${l.profiles}`, children: [
|
|
1072
|
+
/* @__PURE__ */ e("span", { className: `${l.label}`, children: "Profiles" }),
|
|
1073
|
+
/* @__PURE__ */ e("div", { id: "profiles", className: `${l.chips}`, children: /* @__PURE__ */ e("span", { className: `${l.hint}`, children: R }) }),
|
|
1074
1074
|
/* @__PURE__ */ e(
|
|
1075
1075
|
"button",
|
|
1076
1076
|
{
|
|
1077
1077
|
type: "button",
|
|
1078
1078
|
id: "save",
|
|
1079
|
-
className: `${
|
|
1080
|
-
onClick:
|
|
1079
|
+
className: `${l.text}`,
|
|
1080
|
+
onClick: $,
|
|
1081
1081
|
children: "+ Save current"
|
|
1082
1082
|
}
|
|
1083
1083
|
)
|
|
1084
1084
|
] }),
|
|
1085
|
-
|
|
1086
|
-
|
|
1085
|
+
_ !== "ready" ? /* @__PURE__ */ e(
|
|
1086
|
+
Ge,
|
|
1087
1087
|
{
|
|
1088
|
-
status:
|
|
1089
|
-
error:
|
|
1088
|
+
status: _,
|
|
1089
|
+
error: m,
|
|
1090
1090
|
onRetry: f,
|
|
1091
1091
|
loading: "Loading agents…"
|
|
1092
1092
|
}
|
|
1093
|
-
) : /* @__PURE__ */ a(
|
|
1094
|
-
d && /* @__PURE__ */ e("div", { className: `${
|
|
1093
|
+
) : /* @__PURE__ */ a(He, { children: [
|
|
1094
|
+
d && /* @__PURE__ */ e("div", { className: `${l["ag-lead"]} ${l.guiding}`, children: /* @__PURE__ */ a(
|
|
1095
1095
|
"section",
|
|
1096
1096
|
{
|
|
1097
|
-
className: `${
|
|
1097
|
+
className: `${l.guide}`,
|
|
1098
1098
|
"aria-label": "Get started",
|
|
1099
1099
|
children: [
|
|
1100
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
1101
|
-
/* @__PURE__ */ e("b", { className: `${
|
|
1102
|
-
/* @__PURE__ */ a("span", { className: `${
|
|
1103
|
-
|
|
1100
|
+
/* @__PURE__ */ a("div", { className: `${l["guide-head"]}`, children: [
|
|
1101
|
+
/* @__PURE__ */ e("b", { className: `${l["guide-h"]}`, children: "Get started" }),
|
|
1102
|
+
/* @__PURE__ */ a("span", { className: `${l["guide-n"]}`, children: [
|
|
1103
|
+
S,
|
|
1104
1104
|
" of 2 done"
|
|
1105
1105
|
] }),
|
|
1106
1106
|
/* @__PURE__ */ e(
|
|
1107
1107
|
"button",
|
|
1108
1108
|
{
|
|
1109
1109
|
type: "button",
|
|
1110
|
-
className: `${
|
|
1110
|
+
className: `${l["guide-x"]}`,
|
|
1111
1111
|
"aria-label": "Dismiss setup guide",
|
|
1112
1112
|
onClick: h,
|
|
1113
|
-
children: /* @__PURE__ */ e(
|
|
1113
|
+
children: /* @__PURE__ */ e(Ne, { name: "close" })
|
|
1114
1114
|
}
|
|
1115
1115
|
)
|
|
1116
1116
|
] }),
|
|
1117
|
-
/* @__PURE__ */ a("ol", { className: `${
|
|
1118
|
-
/* @__PURE__ */ a("li", { className: `${
|
|
1119
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1120
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
1121
|
-
/* @__PURE__ */ e("b", { className: `${
|
|
1122
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1123
|
-
!
|
|
1117
|
+
/* @__PURE__ */ a("ol", { className: `${l["guide-steps"]}`, children: [
|
|
1118
|
+
/* @__PURE__ */ a("li", { className: `${l["guide-step"]}`, children: [
|
|
1119
|
+
/* @__PURE__ */ e("span", { className: `${l["guide-tick"]}`, children: "1" }),
|
|
1120
|
+
/* @__PURE__ */ a("div", { className: `${l["guide-body"]}`, children: [
|
|
1121
|
+
/* @__PURE__ */ e("b", { className: `${l["guide-title"]}`, children: "Connect RouterPlus" }),
|
|
1122
|
+
/* @__PURE__ */ e("span", { className: `${l["guide-say"]}`, children: u ? "RouterPlus connection is ready" : "Save your RouterPlus API key on the Connection page" }),
|
|
1123
|
+
!u && /* @__PURE__ */ e(
|
|
1124
1124
|
"button",
|
|
1125
1125
|
{
|
|
1126
1126
|
type: "button",
|
|
1127
|
-
className: `${
|
|
1127
|
+
className: `${l.text} ${l.primary} guide-go`,
|
|
1128
1128
|
onClick: o,
|
|
1129
1129
|
children: "Open Connection"
|
|
1130
1130
|
}
|
|
1131
1131
|
)
|
|
1132
1132
|
] })
|
|
1133
1133
|
] }),
|
|
1134
|
-
/* @__PURE__ */ a("li", { className: `${
|
|
1135
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1136
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
1137
|
-
/* @__PURE__ */ e("b", { className: `${
|
|
1138
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1139
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
1134
|
+
/* @__PURE__ */ a("li", { className: `${l["guide-step"]}`, children: [
|
|
1135
|
+
/* @__PURE__ */ e("span", { className: `${l["guide-tick"]}`, children: "2" }),
|
|
1136
|
+
/* @__PURE__ */ a("div", { className: `${l["guide-body"]}`, children: [
|
|
1137
|
+
/* @__PURE__ */ e("b", { className: `${l["guide-title"]}`, children: "Connect an agent" }),
|
|
1138
|
+
/* @__PURE__ */ e("span", { className: `${l["guide-say"]}`, children: "RouterPlus found these agents. Choose one to connect it:" }),
|
|
1139
|
+
/* @__PURE__ */ e("div", { className: `${l["guide-agents"]}`, children: t.filter((i) => i.state !== "missing").map((i) => /* @__PURE__ */ a(
|
|
1140
1140
|
"button",
|
|
1141
1141
|
{
|
|
1142
1142
|
type: "button",
|
|
1143
|
-
className: `${
|
|
1144
|
-
disabled: !
|
|
1145
|
-
onClick: () =>
|
|
1146
|
-
|
|
1147
|
-
|
|
1143
|
+
className: `${l["guide-agent"]}`,
|
|
1144
|
+
disabled: !c || !u && i.state === "needs-connection" || i.pending,
|
|
1145
|
+
onClick: () => c?.(
|
|
1146
|
+
i.id,
|
|
1147
|
+
i.state !== "connected"
|
|
1148
1148
|
),
|
|
1149
1149
|
children: [
|
|
1150
|
-
/* @__PURE__ */ e(
|
|
1151
|
-
/* @__PURE__ */ e("span", { children:
|
|
1150
|
+
/* @__PURE__ */ e(Je, { name: i.icon }),
|
|
1151
|
+
/* @__PURE__ */ e("span", { children: i.name })
|
|
1152
1152
|
]
|
|
1153
1153
|
},
|
|
1154
|
-
|
|
1154
|
+
i.id
|
|
1155
1155
|
)) })
|
|
1156
1156
|
] })
|
|
1157
1157
|
] })
|
|
@@ -1160,177 +1160,177 @@ function Ir({
|
|
|
1160
1160
|
}
|
|
1161
1161
|
) }),
|
|
1162
1162
|
t.length === 0 && /* @__PURE__ */ e(
|
|
1163
|
-
|
|
1163
|
+
Ge,
|
|
1164
1164
|
{
|
|
1165
1165
|
loading: "",
|
|
1166
1166
|
empty: "No agents found. Install an agent to configure its models."
|
|
1167
1167
|
}
|
|
1168
1168
|
),
|
|
1169
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
1170
|
-
t.map((
|
|
1169
|
+
/* @__PURE__ */ a("div", { className: `${l.list} ${l.extras}`, id: "agents", children: [
|
|
1170
|
+
t.map((i) => /* @__PURE__ */ a(
|
|
1171
1171
|
"article",
|
|
1172
1172
|
{
|
|
1173
|
-
className: `${
|
|
1174
|
-
"aria-label":
|
|
1175
|
-
"aria-busy":
|
|
1173
|
+
className: `${l.row} ${l.agent}${i.state === "missing" ? " gone" : " conn"}${i.state === "disconnected" ? " unplugged" : ""}`,
|
|
1174
|
+
"aria-label": i.name,
|
|
1175
|
+
"aria-busy": i.pending,
|
|
1176
1176
|
children: [
|
|
1177
1177
|
/* @__PURE__ */ e(
|
|
1178
1178
|
"button",
|
|
1179
1179
|
{
|
|
1180
1180
|
type: "button",
|
|
1181
|
-
className: `${
|
|
1182
|
-
"aria-label": `Arrange ${
|
|
1183
|
-
children: /* @__PURE__ */ e(
|
|
1181
|
+
className: `${l["ag-handle"]}`,
|
|
1182
|
+
"aria-label": `Arrange ${i.name}`,
|
|
1183
|
+
children: /* @__PURE__ */ e(Je, { name: i.icon })
|
|
1184
1184
|
}
|
|
1185
1185
|
),
|
|
1186
1186
|
/* @__PURE__ */ a(
|
|
1187
1187
|
"div",
|
|
1188
1188
|
{
|
|
1189
|
-
className: `${
|
|
1189
|
+
className: `${l.who}${i.state === "missing" ? "" : " with-models"}`,
|
|
1190
1190
|
children: [
|
|
1191
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
1192
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1193
|
-
|
|
1191
|
+
/* @__PURE__ */ e("div", { className: `${l.name}`, children: i.name }),
|
|
1192
|
+
/* @__PURE__ */ e("span", { className: `${l["ag-cli"]}`, children: i.state === "missing" ? /* @__PURE__ */ e("span", { className: `${l["ag-missing"]}`, children: "CLI not found" }) : i.version && /* @__PURE__ */ e("span", { className: `${l["ag-ver"]}`, children: i.version }) }),
|
|
1193
|
+
i.state !== "missing" && /* @__PURE__ */ a(
|
|
1194
1194
|
"div",
|
|
1195
1195
|
{
|
|
1196
|
-
className: `${
|
|
1196
|
+
className: `${l["ag-st"]}${i.state === "connected" ? " on" : ""}`,
|
|
1197
1197
|
children: [
|
|
1198
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1199
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1198
|
+
/* @__PURE__ */ e("span", { className: `${l["ag-dot"]}` }),
|
|
1199
|
+
/* @__PURE__ */ e("span", { className: `${l["ag-st-t"]}`, children: i.pending ? "Applying changes…" : i.state === "needs-connection" ? "Save your API key on the Connection page first" : i.state === "connected" ? "Connected" : "Not connected" })
|
|
1200
1200
|
]
|
|
1201
1201
|
}
|
|
1202
1202
|
)
|
|
1203
1203
|
]
|
|
1204
1204
|
}
|
|
1205
1205
|
),
|
|
1206
|
-
|
|
1206
|
+
i.state === "needs-connection" && /* @__PURE__ */ e(
|
|
1207
1207
|
"button",
|
|
1208
1208
|
{
|
|
1209
1209
|
type: "button",
|
|
1210
|
-
className: `${
|
|
1210
|
+
className: `${l["ag-add"]}`,
|
|
1211
1211
|
onClick: o,
|
|
1212
1212
|
children: "Open Connection"
|
|
1213
1213
|
}
|
|
1214
1214
|
),
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
/* @__PURE__ */ e("span", { children:
|
|
1215
|
+
i.detail && /* @__PURE__ */ e("div", { className: `${l["ag-card-description"]}`, children: /* @__PURE__ */ e("span", { className: `${l["ag-st-t"]}`, children: i.detail }) }),
|
|
1216
|
+
i.state === "connected" && i.fields?.map((y) => /* @__PURE__ */ a("label", { className: `${l.field}`, children: [
|
|
1217
|
+
/* @__PURE__ */ e("span", { children: y.label }),
|
|
1218
1218
|
/* @__PURE__ */ e(
|
|
1219
1219
|
"select",
|
|
1220
1220
|
{
|
|
1221
|
-
"aria-label":
|
|
1222
|
-
value:
|
|
1223
|
-
disabled:
|
|
1224
|
-
onChange: (
|
|
1225
|
-
children:
|
|
1221
|
+
"aria-label": y.label,
|
|
1222
|
+
value: y.value,
|
|
1223
|
+
disabled: y.disabled || i.pending || !s,
|
|
1224
|
+
onChange: (C) => s?.(i.id, y.id, C.target.value),
|
|
1225
|
+
children: y.options.map((C) => /* @__PURE__ */ e("option", { value: C.value, children: C.label }, C.value))
|
|
1226
1226
|
}
|
|
1227
1227
|
)
|
|
1228
|
-
] },
|
|
1229
|
-
|
|
1228
|
+
] }, y.id)),
|
|
1229
|
+
i.state !== "missing" && /* @__PURE__ */ e(
|
|
1230
1230
|
"button",
|
|
1231
1231
|
{
|
|
1232
1232
|
type: "button",
|
|
1233
1233
|
role: "switch",
|
|
1234
|
-
className: `${
|
|
1235
|
-
"aria-label": `Connect ${
|
|
1236
|
-
"aria-checked":
|
|
1237
|
-
disabled: !
|
|
1238
|
-
onClick: () =>
|
|
1234
|
+
className: `${l["lib-switch"]} ${l["ag-conn"]}${i.state === "connected" ? " on" : ""}`,
|
|
1235
|
+
"aria-label": `Connect ${i.name}`,
|
|
1236
|
+
"aria-checked": i.state === "connected",
|
|
1237
|
+
disabled: !c || i.state === "needs-connection" || i.pending,
|
|
1238
|
+
onClick: () => c?.(i.id, i.state !== "connected"),
|
|
1239
1239
|
children: /* @__PURE__ */ e("i", {})
|
|
1240
1240
|
}
|
|
1241
1241
|
)
|
|
1242
1242
|
]
|
|
1243
1243
|
},
|
|
1244
|
-
|
|
1244
|
+
i.id
|
|
1245
1245
|
)),
|
|
1246
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
1246
|
+
/* @__PURE__ */ e("div", { className: `${l["ag-manage-bar"]}`, children: /* @__PURE__ */ a(
|
|
1247
1247
|
"button",
|
|
1248
1248
|
{
|
|
1249
|
-
className: `${
|
|
1249
|
+
className: `${l["ag-manage-button"]}`,
|
|
1250
1250
|
type: "button",
|
|
1251
|
-
onClick:
|
|
1251
|
+
onClick: M,
|
|
1252
1252
|
children: [
|
|
1253
|
-
/* @__PURE__ */ e(
|
|
1253
|
+
/* @__PURE__ */ e(Ne, { name: "manage" }),
|
|
1254
1254
|
/* @__PURE__ */ e("span", { children: "Manage" })
|
|
1255
1255
|
]
|
|
1256
1256
|
}
|
|
1257
1257
|
) })
|
|
1258
1258
|
] }),
|
|
1259
|
-
/* @__PURE__ */ e("section", { className: `${
|
|
1259
|
+
/* @__PURE__ */ e("section", { className: `${l["ag-install"]}`, children: /* @__PURE__ */ a(
|
|
1260
1260
|
"button",
|
|
1261
1261
|
{
|
|
1262
1262
|
type: "button",
|
|
1263
|
-
className: `${
|
|
1264
|
-
onClick:
|
|
1263
|
+
className: `${l["ag-install-head"]}`,
|
|
1264
|
+
onClick: L,
|
|
1265
1265
|
children: [
|
|
1266
1266
|
/* @__PURE__ */ a("span", { children: [
|
|
1267
1267
|
"Install another agent",
|
|
1268
|
-
|
|
1268
|
+
g !== void 0 ? ` (${g})` : ""
|
|
1269
1269
|
] }),
|
|
1270
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1270
|
+
/* @__PURE__ */ e("span", { className: `${l.chev}`, children: /* @__PURE__ */ e(Ne, { name: "down" }) })
|
|
1271
1271
|
]
|
|
1272
1272
|
}
|
|
1273
1273
|
) })
|
|
1274
1274
|
] })
|
|
1275
1275
|
] });
|
|
1276
1276
|
}
|
|
1277
|
-
const
|
|
1277
|
+
const ut = [
|
|
1278
1278
|
"Today",
|
|
1279
1279
|
"7 days",
|
|
1280
1280
|
"30 days",
|
|
1281
1281
|
"All",
|
|
1282
1282
|
"Custom"
|
|
1283
1283
|
];
|
|
1284
|
-
function
|
|
1284
|
+
function Rr({
|
|
1285
1285
|
period: t,
|
|
1286
1286
|
onPeriodChange: n,
|
|
1287
1287
|
data: r,
|
|
1288
1288
|
onRefresh: o,
|
|
1289
|
-
refreshInterval:
|
|
1290
|
-
onRefreshIntervalChange:
|
|
1289
|
+
refreshInterval: c = "5 s",
|
|
1290
|
+
onRefreshIntervalChange: s,
|
|
1291
1291
|
customRange: d,
|
|
1292
1292
|
onCustomRangeChange: h,
|
|
1293
|
-
status:
|
|
1294
|
-
error:
|
|
1295
|
-
onRetry:
|
|
1293
|
+
status: u = "ready",
|
|
1294
|
+
error: $,
|
|
1295
|
+
onRetry: R
|
|
1296
1296
|
}) {
|
|
1297
|
-
const
|
|
1297
|
+
const M = ia(At), [L, g] = Ie(!1), [_, m] = Ie(!1), f = u === "ready" ? r : null, S = Math.max(
|
|
1298
1298
|
1,
|
|
1299
|
-
...f?.series.map((
|
|
1299
|
+
...f?.series.map((i) => i.calls) ?? []
|
|
1300
1300
|
);
|
|
1301
|
-
return /* @__PURE__ */ a(
|
|
1302
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
1303
|
-
|
|
1301
|
+
return /* @__PURE__ */ a(He, { children: [
|
|
1302
|
+
/* @__PURE__ */ a("div", { className: `${l["usage-head"]}`, children: [
|
|
1303
|
+
M,
|
|
1304
1304
|
/* @__PURE__ */ a(
|
|
1305
1305
|
"div",
|
|
1306
1306
|
{
|
|
1307
|
-
className: `${
|
|
1307
|
+
className: `${l.segs}`,
|
|
1308
1308
|
id: "period",
|
|
1309
|
-
ref: (
|
|
1310
|
-
if (!
|
|
1311
|
-
const
|
|
1312
|
-
|
|
1313
|
-
|
|
1309
|
+
ref: (i) => {
|
|
1310
|
+
if (!i) return;
|
|
1311
|
+
const y = i.querySelector("button.on"), C = i.querySelector(".thumb");
|
|
1312
|
+
y && C && (C.style.width = y.offsetWidth + "px", C.style.transform = `translateX(${y.offsetLeft}px)`, document.fonts.ready.then(() => {
|
|
1313
|
+
C.style.width = y.offsetWidth + "px", C.style.transform = `translateX(${y.offsetLeft}px)`;
|
|
1314
1314
|
}));
|
|
1315
1315
|
},
|
|
1316
1316
|
role: "group",
|
|
1317
1317
|
"aria-label": "Usage period",
|
|
1318
1318
|
children: [
|
|
1319
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1320
|
-
|
|
1319
|
+
/* @__PURE__ */ e("span", { className: `${l.thumb}` }),
|
|
1320
|
+
ut.map((i) => /* @__PURE__ */ a(
|
|
1321
1321
|
"button",
|
|
1322
1322
|
{
|
|
1323
1323
|
type: "button",
|
|
1324
|
-
className: `${
|
|
1325
|
-
"aria-pressed": t ===
|
|
1324
|
+
className: `${l.opt}${i === "Custom" ? " range-opt" : ""}${t === i ? " on" : ""}`,
|
|
1325
|
+
"aria-pressed": t === i,
|
|
1326
1326
|
disabled: !n,
|
|
1327
|
-
onClick: () => n?.(
|
|
1327
|
+
onClick: () => n?.(i),
|
|
1328
1328
|
children: [
|
|
1329
|
-
|
|
1330
|
-
|
|
1329
|
+
i === "Custom" && /* @__PURE__ */ e(Ne, { name: "calendar" }),
|
|
1330
|
+
i
|
|
1331
1331
|
]
|
|
1332
1332
|
},
|
|
1333
|
-
|
|
1333
|
+
i
|
|
1334
1334
|
))
|
|
1335
1335
|
]
|
|
1336
1336
|
}
|
|
@@ -1339,45 +1339,45 @@ function Er({
|
|
|
1339
1339
|
"button",
|
|
1340
1340
|
{
|
|
1341
1341
|
type: "button",
|
|
1342
|
-
className: `${
|
|
1342
|
+
className: `${l["usage-range-menu"]}`,
|
|
1343
1343
|
"aria-label": "Usage period",
|
|
1344
|
-
"aria-expanded":
|
|
1345
|
-
onClick: () =>
|
|
1344
|
+
"aria-expanded": L,
|
|
1345
|
+
onClick: () => g(!L),
|
|
1346
1346
|
children: [
|
|
1347
1347
|
/* @__PURE__ */ e("span", { children: t }),
|
|
1348
|
-
/* @__PURE__ */ e(
|
|
1348
|
+
/* @__PURE__ */ e(Ne, { name: "down" })
|
|
1349
1349
|
]
|
|
1350
1350
|
}
|
|
1351
1351
|
),
|
|
1352
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1353
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
1352
|
+
/* @__PURE__ */ e("span", { className: `${l.grow}` }),
|
|
1353
|
+
/* @__PURE__ */ a("div", { className: `${l["usage-refresh"]}`, children: [
|
|
1354
1354
|
/* @__PURE__ */ e(
|
|
1355
1355
|
"button",
|
|
1356
1356
|
{
|
|
1357
1357
|
type: "button",
|
|
1358
|
-
className: `${
|
|
1358
|
+
className: `${l.icon}`,
|
|
1359
1359
|
"aria-label": "Refresh usage",
|
|
1360
|
-
disabled: !o ||
|
|
1360
|
+
disabled: !o || u === "loading",
|
|
1361
1361
|
onClick: o,
|
|
1362
|
-
children: /* @__PURE__ */ e(
|
|
1362
|
+
children: /* @__PURE__ */ e(Ne, { name: "refresh" })
|
|
1363
1363
|
}
|
|
1364
1364
|
),
|
|
1365
1365
|
/* @__PURE__ */ a(
|
|
1366
1366
|
"button",
|
|
1367
1367
|
{
|
|
1368
1368
|
type: "button",
|
|
1369
|
-
className: `${
|
|
1369
|
+
className: `${l["sess-pick"]} ${l.live}`,
|
|
1370
1370
|
"aria-label": "Refresh interval",
|
|
1371
|
-
"aria-expanded":
|
|
1372
|
-
onClick: () =>
|
|
1371
|
+
"aria-expanded": _,
|
|
1372
|
+
onClick: () => m(!_),
|
|
1373
1373
|
children: [
|
|
1374
|
-
/* @__PURE__ */ e("span", { children:
|
|
1375
|
-
/* @__PURE__ */ e(
|
|
1374
|
+
/* @__PURE__ */ e("span", { children: c }),
|
|
1375
|
+
/* @__PURE__ */ e(Ne, { name: "down" })
|
|
1376
1376
|
]
|
|
1377
1377
|
}
|
|
1378
1378
|
)
|
|
1379
1379
|
] }),
|
|
1380
|
-
/* @__PURE__ */ a("span", { className: `${
|
|
1380
|
+
/* @__PURE__ */ a("span", { className: `${l["usage-cost"]}`, children: [
|
|
1381
1381
|
/* @__PURE__ */ e("b", { children: f?.cost ?? "—" }),
|
|
1382
1382
|
/* @__PURE__ */ e("span", { children: "effective prices" })
|
|
1383
1383
|
] })
|
|
@@ -1392,8 +1392,8 @@ function Er({
|
|
|
1392
1392
|
value: d?.from ?? "",
|
|
1393
1393
|
max: d?.to || void 0,
|
|
1394
1394
|
disabled: !h,
|
|
1395
|
-
onChange: (
|
|
1396
|
-
from:
|
|
1395
|
+
onChange: (i) => h?.({
|
|
1396
|
+
from: i.target.value,
|
|
1397
1397
|
to: d?.to ?? ""
|
|
1398
1398
|
})
|
|
1399
1399
|
}
|
|
@@ -1408,81 +1408,81 @@ function Er({
|
|
|
1408
1408
|
value: d?.to ?? "",
|
|
1409
1409
|
min: d?.from || void 0,
|
|
1410
1410
|
disabled: !h,
|
|
1411
|
-
onChange: (
|
|
1411
|
+
onChange: (i) => h?.({
|
|
1412
1412
|
from: d?.from ?? "",
|
|
1413
|
-
to:
|
|
1413
|
+
to: i.target.value
|
|
1414
1414
|
})
|
|
1415
1415
|
}
|
|
1416
1416
|
)
|
|
1417
1417
|
] })
|
|
1418
1418
|
] }),
|
|
1419
|
-
|
|
1419
|
+
L && /* @__PURE__ */ e(
|
|
1420
1420
|
"div",
|
|
1421
1421
|
{
|
|
1422
|
-
className: `${
|
|
1422
|
+
className: `${l.pop}`,
|
|
1423
1423
|
role: "menu",
|
|
1424
1424
|
"aria-label": "Usage period",
|
|
1425
|
-
children:
|
|
1425
|
+
children: ut.map((i) => /* @__PURE__ */ a(
|
|
1426
1426
|
"button",
|
|
1427
1427
|
{
|
|
1428
1428
|
role: "menuitem",
|
|
1429
1429
|
onClick: () => {
|
|
1430
|
-
n?.(
|
|
1430
|
+
n?.(i), g(!1);
|
|
1431
1431
|
},
|
|
1432
1432
|
children: [
|
|
1433
|
-
|
|
1434
|
-
|
|
1433
|
+
i === "Custom" && /* @__PURE__ */ e(Ne, { name: "calendar" }),
|
|
1434
|
+
i
|
|
1435
1435
|
]
|
|
1436
1436
|
},
|
|
1437
|
-
|
|
1437
|
+
i
|
|
1438
1438
|
))
|
|
1439
1439
|
}
|
|
1440
1440
|
),
|
|
1441
|
-
|
|
1441
|
+
_ && /* @__PURE__ */ e(
|
|
1442
1442
|
"div",
|
|
1443
1443
|
{
|
|
1444
|
-
className: `${
|
|
1444
|
+
className: `${l.pop}`,
|
|
1445
1445
|
role: "menu",
|
|
1446
1446
|
"aria-label": "Refresh interval",
|
|
1447
|
-
children: ["Off", "5 s", "30 s", "1 min"].map((
|
|
1447
|
+
children: ["Off", "5 s", "30 s", "1 min"].map((i) => /* @__PURE__ */ e(
|
|
1448
1448
|
"button",
|
|
1449
1449
|
{
|
|
1450
1450
|
role: "menuitem",
|
|
1451
1451
|
onClick: () => {
|
|
1452
|
-
|
|
1452
|
+
s?.(i), m(!1);
|
|
1453
1453
|
},
|
|
1454
|
-
children:
|
|
1454
|
+
children: i
|
|
1455
1455
|
},
|
|
1456
|
-
|
|
1456
|
+
i
|
|
1457
1457
|
))
|
|
1458
1458
|
}
|
|
1459
1459
|
),
|
|
1460
|
-
/* @__PURE__ */ e("p", { className: `${
|
|
1461
|
-
|
|
1462
|
-
|
|
1460
|
+
/* @__PURE__ */ e("p", { className: `${l["usage-note"]}`, children: "Gateway calls only; session-log calls are in Requests. Local rejections are excluded from totals." }),
|
|
1461
|
+
u !== "ready" ? /* @__PURE__ */ e(
|
|
1462
|
+
Ge,
|
|
1463
1463
|
{
|
|
1464
|
-
status:
|
|
1465
|
-
error:
|
|
1466
|
-
onRetry:
|
|
1464
|
+
status: u,
|
|
1465
|
+
error: $,
|
|
1466
|
+
onRetry: R,
|
|
1467
1467
|
loading: "Loading usage…"
|
|
1468
1468
|
}
|
|
1469
|
-
) : f ? f.calls === 0 ? /* @__PURE__ */ e("div", { className: `${
|
|
1469
|
+
) : f ? f.calls === 0 ? /* @__PURE__ */ e("div", { className: `${l.stats} ${l.empty}`, children: /* @__PURE__ */ e(
|
|
1470
1470
|
"div",
|
|
1471
1471
|
{
|
|
1472
|
-
className: `${
|
|
1472
|
+
className: `${l.none}`,
|
|
1473
1473
|
role: "status",
|
|
1474
1474
|
children: `No calls ${t === "Today" ? "today" : "in this period"}. Point an agent at a catalog model and use it; every call through the gateway is counted here.`
|
|
1475
1475
|
}
|
|
1476
|
-
) }) : /* @__PURE__ */ a(
|
|
1476
|
+
) }) : /* @__PURE__ */ a(He, { children: [
|
|
1477
1477
|
/* @__PURE__ */ e("dl", { className: "mp-usage-metrics", children: [
|
|
1478
1478
|
["Calls", f.calls],
|
|
1479
1479
|
["Errors", f.errors],
|
|
1480
1480
|
["Input tokens", f.input],
|
|
1481
1481
|
["Output tokens", f.output]
|
|
1482
|
-
].map(([
|
|
1483
|
-
/* @__PURE__ */ e("dt", { children:
|
|
1484
|
-
/* @__PURE__ */ e("dd", { children: typeof
|
|
1485
|
-
] },
|
|
1482
|
+
].map(([i, y]) => /* @__PURE__ */ a("div", { children: [
|
|
1483
|
+
/* @__PURE__ */ e("dt", { children: i }),
|
|
1484
|
+
/* @__PURE__ */ e("dd", { children: typeof y == "number" ? y.toLocaleString("en-US") : y })
|
|
1485
|
+
] }, i)) }),
|
|
1486
1486
|
/* @__PURE__ */ a(
|
|
1487
1487
|
"section",
|
|
1488
1488
|
{
|
|
@@ -1491,7 +1491,7 @@ function Er({
|
|
|
1491
1491
|
children: [
|
|
1492
1492
|
/* @__PURE__ */ e("h2", { children: "Calls" }),
|
|
1493
1493
|
f.series.length === 0 ? /* @__PURE__ */ e(
|
|
1494
|
-
|
|
1494
|
+
Ge,
|
|
1495
1495
|
{
|
|
1496
1496
|
loading: "",
|
|
1497
1497
|
empty: "No time-series breakdown available."
|
|
@@ -1501,25 +1501,25 @@ function Er({
|
|
|
1501
1501
|
{
|
|
1502
1502
|
className: "mp-chart-bars",
|
|
1503
1503
|
role: "img",
|
|
1504
|
-
"aria-label": f.series.map((
|
|
1505
|
-
children: f.series.map((
|
|
1504
|
+
"aria-label": f.series.map((i) => `${i.label}: ${i.calls} calls`).join("; "),
|
|
1505
|
+
children: f.series.map((i, y) => /* @__PURE__ */ a(
|
|
1506
1506
|
"div",
|
|
1507
1507
|
{
|
|
1508
1508
|
className: "mp-chart-column",
|
|
1509
1509
|
children: [
|
|
1510
|
-
/* @__PURE__ */ e("span", { children:
|
|
1510
|
+
/* @__PURE__ */ e("span", { children: i.calls }),
|
|
1511
1511
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1512
1512
|
"i",
|
|
1513
1513
|
{
|
|
1514
1514
|
style: {
|
|
1515
|
-
height: `${Math.max(0,
|
|
1515
|
+
height: `${Math.max(0, i.calls) / S * 100}%`
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
1518
|
) }),
|
|
1519
|
-
/* @__PURE__ */ e("small", { children:
|
|
1519
|
+
/* @__PURE__ */ e("small", { children: i.label })
|
|
1520
1520
|
]
|
|
1521
1521
|
},
|
|
1522
|
-
`${
|
|
1522
|
+
`${i.label}-${y}`
|
|
1523
1523
|
))
|
|
1524
1524
|
}
|
|
1525
1525
|
)
|
|
@@ -1527,7 +1527,7 @@ function Er({
|
|
|
1527
1527
|
}
|
|
1528
1528
|
)
|
|
1529
1529
|
] }) : /* @__PURE__ */ e(
|
|
1530
|
-
|
|
1530
|
+
Ge,
|
|
1531
1531
|
{
|
|
1532
1532
|
loading: "",
|
|
1533
1533
|
empty: "Usage is unavailable. Refresh to try again."
|
|
@@ -1535,58 +1535,58 @@ function Er({
|
|
|
1535
1535
|
)
|
|
1536
1536
|
] });
|
|
1537
1537
|
}
|
|
1538
|
-
const
|
|
1539
|
-
function
|
|
1538
|
+
const it = { ...rt, ...ct };
|
|
1539
|
+
function Tr({
|
|
1540
1540
|
name: t,
|
|
1541
1541
|
icon: n,
|
|
1542
1542
|
detail: r,
|
|
1543
1543
|
className: o = "",
|
|
1544
|
-
type:
|
|
1545
|
-
...
|
|
1544
|
+
type: c = "button",
|
|
1545
|
+
...s
|
|
1546
1546
|
}) {
|
|
1547
1547
|
return /* @__PURE__ */ a(
|
|
1548
1548
|
"button",
|
|
1549
1549
|
{
|
|
1550
|
-
type:
|
|
1551
|
-
className: `${
|
|
1550
|
+
type: c,
|
|
1551
|
+
className: `${it.tile}${o ? ` ${o}` : ""}`,
|
|
1552
1552
|
title: r || t,
|
|
1553
|
-
...
|
|
1553
|
+
...s,
|
|
1554
1554
|
children: [
|
|
1555
|
-
/* @__PURE__ */ e(
|
|
1556
|
-
/* @__PURE__ */ e("span", { className:
|
|
1555
|
+
/* @__PURE__ */ e(Je, { name: n }),
|
|
1556
|
+
/* @__PURE__ */ e("span", { className: it.nm, children: /* @__PURE__ */ e("span", { className: it.n, children: t }) })
|
|
1557
1557
|
]
|
|
1558
1558
|
}
|
|
1559
1559
|
);
|
|
1560
1560
|
}
|
|
1561
|
-
const
|
|
1561
|
+
const mt = {
|
|
1562
1562
|
sm: { box: 32, icon: 20, text: 12 },
|
|
1563
1563
|
md: { box: 48, icon: 32, text: 14 },
|
|
1564
1564
|
lg: { box: 72, icon: 48, text: 16 }
|
|
1565
1565
|
};
|
|
1566
|
-
function
|
|
1566
|
+
function Pr({
|
|
1567
1567
|
name: t,
|
|
1568
1568
|
icon: n,
|
|
1569
1569
|
showIcon: r = !0,
|
|
1570
1570
|
size: o = "md",
|
|
1571
|
-
className:
|
|
1572
|
-
style:
|
|
1571
|
+
className: c = "",
|
|
1572
|
+
style: s,
|
|
1573
1573
|
...d
|
|
1574
1574
|
}) {
|
|
1575
|
-
const h =
|
|
1575
|
+
const h = mt[o] ?? mt.md, u = {
|
|
1576
1576
|
display: "inline-flex",
|
|
1577
1577
|
alignItems: "center",
|
|
1578
1578
|
gap: 10,
|
|
1579
1579
|
maxWidth: "100%",
|
|
1580
1580
|
minWidth: 0,
|
|
1581
1581
|
color: "var(--rp-color-text, inherit)",
|
|
1582
|
-
...
|
|
1583
|
-
},
|
|
1582
|
+
...s
|
|
1583
|
+
}, $ = {
|
|
1584
1584
|
minWidth: 0,
|
|
1585
1585
|
fontSize: h.text,
|
|
1586
1586
|
fontWeight: 600,
|
|
1587
1587
|
lineHeight: 1.4,
|
|
1588
1588
|
overflowWrap: "anywhere"
|
|
1589
|
-
},
|
|
1589
|
+
}, R = {
|
|
1590
1590
|
display: "inline-flex",
|
|
1591
1591
|
alignItems: "center",
|
|
1592
1592
|
justifyContent: "center",
|
|
@@ -1598,73 +1598,73 @@ function Dr({
|
|
|
1598
1598
|
fontSize: h.icon,
|
|
1599
1599
|
lineHeight: 1
|
|
1600
1600
|
};
|
|
1601
|
-
return /* @__PURE__ */ a("span", { className:
|
|
1602
|
-
r ? /* @__PURE__ */ e("span", { style:
|
|
1603
|
-
t ? /* @__PURE__ */ e("span", { style:
|
|
1601
|
+
return /* @__PURE__ */ a("span", { className: c, style: u, ...d, children: [
|
|
1602
|
+
r ? /* @__PURE__ */ e("span", { style: R, "aria-hidden": t ? !0 : void 0, children: /* @__PURE__ */ e(Je, { name: n }) }) : null,
|
|
1603
|
+
t ? /* @__PURE__ */ e("span", { style: $, children: t }) : null
|
|
1604
1604
|
] });
|
|
1605
1605
|
}
|
|
1606
|
-
const
|
|
1607
|
-
billing:
|
|
1608
|
-
inline:
|
|
1609
|
-
body:
|
|
1610
|
-
sheet:
|
|
1611
|
-
header:
|
|
1612
|
-
footer:
|
|
1613
|
-
titleIcon:
|
|
1614
|
-
heading:
|
|
1615
|
-
title:
|
|
1616
|
-
description:
|
|
1617
|
-
bodyWrap:
|
|
1618
|
-
scrollFade:
|
|
1619
|
-
section:
|
|
1620
|
-
fieldLabel:
|
|
1621
|
-
amount:
|
|
1622
|
-
amountCurrency:
|
|
1623
|
-
quickAmounts:
|
|
1624
|
-
quickAmount:
|
|
1625
|
-
quickAmountActive:
|
|
1626
|
-
cashback:
|
|
1627
|
-
cashbackHead:
|
|
1628
|
-
cashbackRate:
|
|
1629
|
-
cashbackHint:
|
|
1630
|
-
track:
|
|
1631
|
-
trackDot:
|
|
1632
|
-
tiers:
|
|
1633
|
-
tier:
|
|
1634
|
-
tierRate:
|
|
1635
|
-
tierMin:
|
|
1636
|
-
tierFirst:
|
|
1637
|
-
tierMid:
|
|
1638
|
-
tierLast:
|
|
1639
|
-
tierCurrent:
|
|
1640
|
-
methodGroups:
|
|
1641
|
-
group:
|
|
1642
|
-
groupHead:
|
|
1643
|
-
groupTitle:
|
|
1644
|
-
groupBody:
|
|
1645
|
-
method:
|
|
1646
|
-
methodIcon:
|
|
1647
|
-
methodText:
|
|
1648
|
-
methodLabel:
|
|
1649
|
-
methodDescription:
|
|
1650
|
-
methodFee:
|
|
1651
|
-
methodCheck:
|
|
1652
|
-
checkIcon:
|
|
1653
|
-
empty:
|
|
1654
|
-
region:
|
|
1655
|
-
regionLabel:
|
|
1656
|
-
regionTrigger:
|
|
1657
|
-
regionValue:
|
|
1658
|
-
regionGlobe:
|
|
1659
|
-
optionGlobe:
|
|
1660
|
-
regionContent:
|
|
1661
|
-
regionHint:
|
|
1662
|
-
pay:
|
|
1663
|
-
payPending:
|
|
1664
|
-
error:
|
|
1665
|
-
payLabel:
|
|
1666
|
-
notice:
|
|
1667
|
-
},
|
|
1606
|
+
const pa = "rp_Billing-module_billing_jVpbPSwf", ua = "rp_Billing-module_inline_Mf5K0TOB", ma = "rp_Billing-module_body_73T3WPhM", ga = "rp_Billing-module_sheet_uq-sE7Kj", fa = "rp_Billing-module_header_6ZibPvV0", ba = "rp_Billing-module_footer_sZ8dMMt3", va = "rp_Billing-module_titleIcon_yvF5gUEf", ya = "rp_Billing-module_heading_hXnE-5Dq", _a = "rp_Billing-module_title_XVWBtjrY", Na = "rp_Billing-module_description_15DMv8fm", Ma = "rp_Billing-module_bodyWrap_73GWDsL6", wa = "rp_Billing-module_scrollFade_Vp55lLY8", ka = "rp_Billing-module_section_CCEnjKJi", xa = "rp_Billing-module_fieldLabel_j4TFB90Z", $a = "rp_Billing-module_amount_huNHfEM9", Ca = "rp_Billing-module_amountCurrency_5BAcrLkG", Aa = "rp_Billing-module_quickAmounts_-zXxHGvq", La = "rp_Billing-module_quickAmount_wZ1vL5t7", Sa = "rp_Billing-module_quickAmountActive_UN-iKg7L", Ba = "rp_Billing-module_cashback_SEKfvhCV", Ra = "rp_Billing-module_cashbackHead_TeiHoLw6", Ta = "rp_Billing-module_cashbackRate_snXI6bxo", Pa = "rp_Billing-module_cashbackHint_8hFT1XBR", Fa = "rp_Billing-module_track_gUZMl3uW", Ia = "rp_Billing-module_trackDot_yY1N2NRt", qa = "rp_Billing-module_tiers_BavMzMhY", Ea = "rp_Billing-module_tier_HO96mY1F", Ha = "rp_Billing-module_tierRate_vgFEdh-O", Da = "rp_Billing-module_tierMin_N22iOx8J", Oa = "rp_Billing-module_tierFirst_6Hc74rSN", Ua = "rp_Billing-module_tierMid_NeSUtEn1", za = "rp_Billing-module_tierLast_lE0S52qZ", Xa = "rp_Billing-module_tierCurrent_GctoON0O", Ga = "rp_Billing-module_methodGroups_zpebVDsx", Ya = "rp_Billing-module_group_pHl7zEfy", ja = "rp_Billing-module_groupHead_P-SY4GHg", Wa = "rp_Billing-module_groupTitle_wdOq-XTd", Va = "rp_Billing-module_groupBody_lrnARuI0", Ka = "rp_Billing-module_method_faV0uTen", Ja = "rp_Billing-module_methodIcon_JUWyNcoC", Za = "rp_Billing-module_methodText_-dgM99xC", Qa = "rp_Billing-module_methodLabel_5TAtp3w3", en = "rp_Billing-module_methodDescription_DFZuV4o0", tn = "rp_Billing-module_methodFee_5X-xX3q5", an = "rp_Billing-module_methodCheck_QhxGxyBe", nn = "rp_Billing-module_checkIcon_5PuJJ6qi", rn = "rp_Billing-module_empty_XLKm1aHR", sn = "rp_Billing-module_region_LaGBn-om", on = "rp_Billing-module_regionLabel_7ufpgJpv", ln = "rp_Billing-module_regionTrigger_V3TL-sZd", cn = "rp_Billing-module_regionValue_RRhFjyaZ", dn = "rp_Billing-module_regionGlobe_oSvgpNSR", hn = "rp_Billing-module_optionGlobe_FVCNGrV9", pn = "rp_Billing-module_regionContent_644AhED-", un = "rp_Billing-module_regionHint_ioA4L3ju", mn = "rp_Billing-module_pay_htbzTpTf", gn = "rp_Billing-module_payPending_rNhFyReW", fn = "rp_Billing-module_error_VTbjGrSy", bn = "rp_Billing-module_payLabel_9cFNb7Af", vn = "rp_Billing-module_notice_uwuIHit3", x = {
|
|
1607
|
+
billing: pa,
|
|
1608
|
+
inline: ua,
|
|
1609
|
+
body: ma,
|
|
1610
|
+
sheet: ga,
|
|
1611
|
+
header: fa,
|
|
1612
|
+
footer: ba,
|
|
1613
|
+
titleIcon: va,
|
|
1614
|
+
heading: ya,
|
|
1615
|
+
title: _a,
|
|
1616
|
+
description: Na,
|
|
1617
|
+
bodyWrap: Ma,
|
|
1618
|
+
scrollFade: wa,
|
|
1619
|
+
section: ka,
|
|
1620
|
+
fieldLabel: xa,
|
|
1621
|
+
amount: $a,
|
|
1622
|
+
amountCurrency: Ca,
|
|
1623
|
+
quickAmounts: Aa,
|
|
1624
|
+
quickAmount: La,
|
|
1625
|
+
quickAmountActive: Sa,
|
|
1626
|
+
cashback: Ba,
|
|
1627
|
+
cashbackHead: Ra,
|
|
1628
|
+
cashbackRate: Ta,
|
|
1629
|
+
cashbackHint: Pa,
|
|
1630
|
+
track: Fa,
|
|
1631
|
+
trackDot: Ia,
|
|
1632
|
+
tiers: qa,
|
|
1633
|
+
tier: Ea,
|
|
1634
|
+
tierRate: Ha,
|
|
1635
|
+
tierMin: Da,
|
|
1636
|
+
tierFirst: Oa,
|
|
1637
|
+
tierMid: Ua,
|
|
1638
|
+
tierLast: za,
|
|
1639
|
+
tierCurrent: Xa,
|
|
1640
|
+
methodGroups: Ga,
|
|
1641
|
+
group: Ya,
|
|
1642
|
+
groupHead: ja,
|
|
1643
|
+
groupTitle: Wa,
|
|
1644
|
+
groupBody: Va,
|
|
1645
|
+
method: Ka,
|
|
1646
|
+
methodIcon: Ja,
|
|
1647
|
+
methodText: Za,
|
|
1648
|
+
methodLabel: Qa,
|
|
1649
|
+
methodDescription: en,
|
|
1650
|
+
methodFee: tn,
|
|
1651
|
+
methodCheck: an,
|
|
1652
|
+
checkIcon: nn,
|
|
1653
|
+
empty: rn,
|
|
1654
|
+
region: sn,
|
|
1655
|
+
regionLabel: on,
|
|
1656
|
+
regionTrigger: ln,
|
|
1657
|
+
regionValue: cn,
|
|
1658
|
+
regionGlobe: dn,
|
|
1659
|
+
optionGlobe: hn,
|
|
1660
|
+
regionContent: pn,
|
|
1661
|
+
regionHint: un,
|
|
1662
|
+
pay: mn,
|
|
1663
|
+
payPending: gn,
|
|
1664
|
+
error: fn,
|
|
1665
|
+
payLabel: bn,
|
|
1666
|
+
notice: vn
|
|
1667
|
+
}, yn = {
|
|
1668
1668
|
title: "Top up",
|
|
1669
1669
|
amount: "Amount",
|
|
1670
1670
|
cashback: "Cashback",
|
|
@@ -1676,14 +1676,14 @@ const wa = "rp_Billing-module_billing_jVpbPSwf", Ma = "rp_Billing-module_inline_
|
|
|
1676
1676
|
pending: "Preparing payment…",
|
|
1677
1677
|
empty: "No payment methods here."
|
|
1678
1678
|
};
|
|
1679
|
-
function
|
|
1679
|
+
function _n(t) {
|
|
1680
1680
|
try {
|
|
1681
1681
|
return new Intl.Locale(t).maximize().region?.toUpperCase();
|
|
1682
1682
|
} catch {
|
|
1683
1683
|
return t.replace("_", "-").split("-")[1]?.toUpperCase();
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function Fr(t) {
|
|
1687
1687
|
const n = t.trim().toUpperCase();
|
|
1688
1688
|
return /^[A-Z]{2}$/.test(n) ? String.fromCodePoint(
|
|
1689
1689
|
...[n.charCodeAt(0), n.charCodeAt(1)].map(
|
|
@@ -1691,7 +1691,7 @@ function Or(t) {
|
|
|
1691
1691
|
)
|
|
1692
1692
|
) : "🌐";
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1694
|
+
function Nn(t, n) {
|
|
1695
1695
|
try {
|
|
1696
1696
|
return new Intl.NumberFormat(t, {
|
|
1697
1697
|
style: "currency",
|
|
@@ -1701,7 +1701,7 @@ function Bn(t, n) {
|
|
|
1701
1701
|
return n;
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function Lt(t, n, r) {
|
|
1705
1705
|
try {
|
|
1706
1706
|
return new Intl.NumberFormat(t, {
|
|
1707
1707
|
style: "currency",
|
|
@@ -1712,7 +1712,7 @@ function Et(t, n, r) {
|
|
|
1712
1712
|
return `${n} ${r.toFixed(2)}`;
|
|
1713
1713
|
}
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function Mn(t, n, r) {
|
|
1716
1716
|
try {
|
|
1717
1717
|
return new Intl.NumberFormat(t, {
|
|
1718
1718
|
style: "currency",
|
|
@@ -1723,203 +1723,203 @@ function Rn(t, n, r) {
|
|
|
1723
1723
|
return `${n} ${Math.round(r)}`;
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1727
|
-
return t.next ? `Add ${
|
|
1726
|
+
function wn(t) {
|
|
1727
|
+
return t.next ? `Add ${Lt(t.locale, t.currency, t.next.min)} for ${t.next.rate}% cashback.` : t.rate > 0 ? `${t.rate}% cashback added to your balance.` : "Cashback starts at the next tier.";
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1730
|
-
const [t, n] =
|
|
1731
|
-
return
|
|
1729
|
+
function kn() {
|
|
1730
|
+
const [t, n] = Ie(null), [r, o] = Ie({ overflowing: !1, atEnd: !0 });
|
|
1731
|
+
return Be(() => {
|
|
1732
1732
|
if (!t) return;
|
|
1733
|
-
const
|
|
1733
|
+
const c = () => {
|
|
1734
1734
|
const h = t.scrollHeight - t.clientHeight > 1;
|
|
1735
1735
|
o({
|
|
1736
1736
|
overflowing: h,
|
|
1737
1737
|
atEnd: t.scrollTop + t.clientHeight >= t.scrollHeight - 1
|
|
1738
1738
|
});
|
|
1739
1739
|
};
|
|
1740
|
-
|
|
1741
|
-
const
|
|
1742
|
-
|
|
1743
|
-
const d = new MutationObserver(
|
|
1740
|
+
c(), t.addEventListener("scroll", c, { passive: !0 });
|
|
1741
|
+
const s = new ResizeObserver(c);
|
|
1742
|
+
s.observe(t);
|
|
1743
|
+
const d = new MutationObserver(c);
|
|
1744
1744
|
return d.observe(t, { childList: !0, subtree: !0 }), () => {
|
|
1745
|
-
t.removeEventListener("scroll",
|
|
1745
|
+
t.removeEventListener("scroll", c), s.disconnect(), d.disconnect();
|
|
1746
1746
|
};
|
|
1747
1747
|
}, [t]), [n, r.overflowing && !r.atEnd];
|
|
1748
1748
|
}
|
|
1749
|
-
const
|
|
1749
|
+
const Ir = ({
|
|
1750
1750
|
locale: t = typeof navigator > "u" ? "en-US" : navigator.language,
|
|
1751
1751
|
countries: n,
|
|
1752
1752
|
cryptoMethods: r = [],
|
|
1753
1753
|
cryptoTitle: o = "Crypto",
|
|
1754
|
-
tiers:
|
|
1755
|
-
defaultCountryCode:
|
|
1754
|
+
tiers: c = [],
|
|
1755
|
+
defaultCountryCode: s,
|
|
1756
1756
|
countryCode: d,
|
|
1757
1757
|
onCountryChange: h,
|
|
1758
|
-
defaultAmount:
|
|
1759
|
-
amount:
|
|
1760
|
-
onAmountChange:
|
|
1761
|
-
quickAmounts:
|
|
1762
|
-
defaultMethodId:
|
|
1763
|
-
methodId:
|
|
1764
|
-
onMethodChange:
|
|
1765
|
-
minAmount:
|
|
1758
|
+
defaultAmount: u = 0,
|
|
1759
|
+
amount: $,
|
|
1760
|
+
onAmountChange: R,
|
|
1761
|
+
quickAmounts: M = [10, 25, 50, 100],
|
|
1762
|
+
defaultMethodId: L,
|
|
1763
|
+
methodId: g,
|
|
1764
|
+
onMethodChange: _,
|
|
1765
|
+
minAmount: m = 0,
|
|
1766
1766
|
maxAmount: f,
|
|
1767
|
-
title:
|
|
1768
|
-
description:
|
|
1769
|
-
copy:
|
|
1770
|
-
formatCashback:
|
|
1767
|
+
title: S,
|
|
1768
|
+
description: i,
|
|
1769
|
+
copy: y,
|
|
1770
|
+
formatCashback: C,
|
|
1771
1771
|
onPay: T,
|
|
1772
|
-
pending:
|
|
1772
|
+
pending: v = !1,
|
|
1773
1773
|
error: H,
|
|
1774
|
-
children:
|
|
1775
|
-
notice:
|
|
1776
|
-
variant:
|
|
1777
|
-
className:
|
|
1774
|
+
children: re,
|
|
1775
|
+
notice: D,
|
|
1776
|
+
variant: ce = "panel",
|
|
1777
|
+
className: Z
|
|
1778
1778
|
}) => {
|
|
1779
|
-
const Q = { ...
|
|
1780
|
-
() =>
|
|
1781
|
-
), [p,
|
|
1782
|
-
|
|
1783
|
-
),
|
|
1784
|
-
(
|
|
1785
|
-
) ?? n.find((
|
|
1786
|
-
const
|
|
1787
|
-
(
|
|
1788
|
-
),
|
|
1789
|
-
return
|
|
1790
|
-
}, [
|
|
1791
|
-
() =>
|
|
1792
|
-
[
|
|
1793
|
-
),
|
|
1794
|
-
const
|
|
1795
|
-
return
|
|
1796
|
-
(
|
|
1797
|
-
)?.id ??
|
|
1798
|
-
}, [
|
|
1799
|
-
() => [...
|
|
1800
|
-
[
|
|
1801
|
-
),
|
|
1802
|
-
(
|
|
1779
|
+
const Q = { ...yn, ...y }, X = Ke(), z = Ke(), ae = Ke(), [ve, ge] = kn(), [q, w] = Ie(
|
|
1780
|
+
() => s ?? _n(t) ?? n[0]?.code ?? ""
|
|
1781
|
+
), [p, k] = Ie(u), [N, F] = Ie(
|
|
1782
|
+
L
|
|
1783
|
+
), A = n.find(
|
|
1784
|
+
(b) => b.code === (d ?? q)
|
|
1785
|
+
) ?? n.find((b) => b.code === s) ?? n[0], U = $ ?? p, I = A?.currency ?? "EUR", J = Nn(t, I), Y = Qe(() => {
|
|
1786
|
+
const b = (A?.groups ?? []).filter(
|
|
1787
|
+
(ee) => ee.methods.length > 0
|
|
1788
|
+
), B = r.length > 0 ? { id: "crypto", title: o, methods: r } : void 0;
|
|
1789
|
+
return B ? [...b, B] : [...b];
|
|
1790
|
+
}, [A, r, o]), he = Qe(
|
|
1791
|
+
() => Y.flatMap((b) => b.methods),
|
|
1792
|
+
[Y]
|
|
1793
|
+
), we = Qe(() => {
|
|
1794
|
+
const b = g ?? N;
|
|
1795
|
+
return he.find(
|
|
1796
|
+
(ee) => ee.id === b && !ee.disabled
|
|
1797
|
+
)?.id ?? he.find((ee) => !ee.disabled)?.id;
|
|
1798
|
+
}, [g, N, he]), ke = he.find((b) => b.id === we), fe = Qe(
|
|
1799
|
+
() => [...c].sort((b, B) => b.min - B.min),
|
|
1800
|
+
[c]
|
|
1801
|
+
), E = fe.reduce(
|
|
1802
|
+
(b, B) => U >= B.min ? B : b,
|
|
1803
1803
|
void 0
|
|
1804
|
-
),
|
|
1805
|
-
amount:
|
|
1806
|
-
rate:
|
|
1807
|
-
next:
|
|
1808
|
-
currency:
|
|
1804
|
+
), G = fe.find((b) => U < b.min), j = E?.rate ?? 0, V = fe[fe.length - 1]?.min || 0, te = Math.max(0, Math.min(U, V)), de = V ? te / V * 100 : 0, P = {
|
|
1805
|
+
amount: U,
|
|
1806
|
+
rate: j,
|
|
1807
|
+
next: G,
|
|
1808
|
+
currency: I,
|
|
1809
1809
|
locale: t
|
|
1810
|
-
},
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1813
|
-
},
|
|
1814
|
-
const
|
|
1815
|
-
if (!
|
|
1816
|
-
d === void 0 &&
|
|
1817
|
-
const
|
|
1818
|
-
...
|
|
1810
|
+
}, K = C?.(P) ?? wn(P), pe = (b) => {
|
|
1811
|
+
const B = Number.isFinite(b) ? Math.max(0, b) : 0;
|
|
1812
|
+
$ === void 0 && k(B), R?.(B);
|
|
1813
|
+
}, ue = (b) => {
|
|
1814
|
+
const B = n.find((O) => O.code === b);
|
|
1815
|
+
if (!B) return;
|
|
1816
|
+
d === void 0 && w(b);
|
|
1817
|
+
const ee = [
|
|
1818
|
+
...B.groups.flatMap((O) => O.methods),
|
|
1819
1819
|
...r
|
|
1820
1820
|
];
|
|
1821
|
-
if (!
|
|
1822
|
-
(
|
|
1821
|
+
if (!ee.some(
|
|
1822
|
+
(O) => O.id === we && !O.disabled
|
|
1823
1823
|
)) {
|
|
1824
|
-
const
|
|
1825
|
-
|
|
1824
|
+
const O = ee.find((le) => !le.disabled);
|
|
1825
|
+
g === void 0 && F(O?.id), O && _?.(O);
|
|
1826
1826
|
}
|
|
1827
|
-
h?.(
|
|
1828
|
-
},
|
|
1829
|
-
const
|
|
1830
|
-
|
|
1831
|
-
},
|
|
1832
|
-
!
|
|
1827
|
+
h?.(B);
|
|
1828
|
+
}, ye = (b) => {
|
|
1829
|
+
const B = he.find((ee) => ee.id === b);
|
|
1830
|
+
B && (g === void 0 && F(b), _?.(B));
|
|
1831
|
+
}, se = !v && Number.isFinite(U) && U > 0 && U >= m && (f === void 0 || U <= f) && !!ke && !!A, ie = () => {
|
|
1832
|
+
!se || !ke || !A || T?.({ amount: U, method: ke, country: A });
|
|
1833
1833
|
};
|
|
1834
1834
|
return /* @__PURE__ */ a(
|
|
1835
1835
|
"section",
|
|
1836
1836
|
{
|
|
1837
|
-
className:
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1837
|
+
className: oe(
|
|
1838
|
+
x.billing,
|
|
1839
|
+
ce === "inline" && x.inline,
|
|
1840
|
+
ce === "sheet" && x.sheet,
|
|
1841
|
+
Z
|
|
1842
1842
|
),
|
|
1843
|
-
"aria-labelledby":
|
|
1843
|
+
"aria-labelledby": X,
|
|
1844
1844
|
children: [
|
|
1845
|
-
/* @__PURE__ */ a("header", { className:
|
|
1846
|
-
/* @__PURE__ */ e("span", { className:
|
|
1847
|
-
/* @__PURE__ */ a("div", { className:
|
|
1848
|
-
/* @__PURE__ */ e("h2", { className:
|
|
1849
|
-
|
|
1845
|
+
/* @__PURE__ */ a("header", { className: x.header, children: [
|
|
1846
|
+
/* @__PURE__ */ e("span", { className: x.titleIcon, "aria-hidden": "true", children: /* @__PURE__ */ e(qe.Wallet, { size: 18 }) }),
|
|
1847
|
+
/* @__PURE__ */ a("div", { className: x.heading, children: [
|
|
1848
|
+
/* @__PURE__ */ e("h2", { className: x.title, id: X, children: S ?? Q.title }),
|
|
1849
|
+
i && /* @__PURE__ */ e("p", { className: x.description, children: i })
|
|
1850
1850
|
] })
|
|
1851
1851
|
] }),
|
|
1852
|
-
/* @__PURE__ */ a("div", { className:
|
|
1853
|
-
/* @__PURE__ */ a("div", { className:
|
|
1854
|
-
/* @__PURE__ */ a("div", { className:
|
|
1855
|
-
/* @__PURE__ */ e(
|
|
1856
|
-
/* @__PURE__ */ a(
|
|
1857
|
-
/* @__PURE__ */ e("span", { className:
|
|
1852
|
+
/* @__PURE__ */ a("div", { className: x.bodyWrap, children: [
|
|
1853
|
+
/* @__PURE__ */ a("div", { className: x.body, ref: ve, children: [
|
|
1854
|
+
/* @__PURE__ */ a("div", { className: x.section, children: [
|
|
1855
|
+
/* @__PURE__ */ e(dt, { className: x.fieldLabel, htmlFor: z, children: Q.amount }),
|
|
1856
|
+
/* @__PURE__ */ a(ht.Root, { className: x.amount, disabled: v, children: [
|
|
1857
|
+
/* @__PURE__ */ e("span", { className: x.amountCurrency, "aria-hidden": "true", children: J }),
|
|
1858
1858
|
/* @__PURE__ */ e(
|
|
1859
|
-
|
|
1859
|
+
ht.Control,
|
|
1860
1860
|
{
|
|
1861
|
-
disabled:
|
|
1862
|
-
id:
|
|
1863
|
-
className:
|
|
1861
|
+
disabled: v,
|
|
1862
|
+
id: z,
|
|
1863
|
+
className: x.amountInput,
|
|
1864
1864
|
type: "number",
|
|
1865
1865
|
inputMode: "decimal",
|
|
1866
|
-
min:
|
|
1866
|
+
min: m,
|
|
1867
1867
|
max: f,
|
|
1868
1868
|
step: "0.01",
|
|
1869
1869
|
placeholder: "0",
|
|
1870
|
-
value:
|
|
1871
|
-
onChange: (
|
|
1872
|
-
const
|
|
1873
|
-
|
|
1870
|
+
value: U === 0 ? "" : U,
|
|
1871
|
+
onChange: (b) => {
|
|
1872
|
+
const B = Number.parseFloat(b.target.value);
|
|
1873
|
+
pe(Number.isFinite(B) ? B : 0);
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
1876
|
)
|
|
1877
1877
|
] }),
|
|
1878
|
-
|
|
1879
|
-
|
|
1878
|
+
M && M.length > 0 && /* @__PURE__ */ e("div", { className: x.quickAmounts, children: M.map((b) => /* @__PURE__ */ a(
|
|
1879
|
+
W,
|
|
1880
1880
|
{
|
|
1881
1881
|
variant: "secondary",
|
|
1882
|
-
textVariant:
|
|
1883
|
-
className:
|
|
1884
|
-
|
|
1885
|
-
|
|
1882
|
+
textVariant: Ht.Button_Link_Extra_Small_1,
|
|
1883
|
+
className: oe(
|
|
1884
|
+
x.quickAmount,
|
|
1885
|
+
U === b && x.quickAmountActive
|
|
1886
1886
|
),
|
|
1887
|
-
"aria-pressed":
|
|
1888
|
-
disabled:
|
|
1889
|
-
onClick: () =>
|
|
1887
|
+
"aria-pressed": U === b,
|
|
1888
|
+
disabled: v,
|
|
1889
|
+
onClick: () => pe(b),
|
|
1890
1890
|
children: [
|
|
1891
1891
|
"+",
|
|
1892
|
-
|
|
1892
|
+
b
|
|
1893
1893
|
]
|
|
1894
1894
|
},
|
|
1895
|
-
|
|
1895
|
+
b
|
|
1896
1896
|
)) })
|
|
1897
1897
|
] }),
|
|
1898
|
-
|
|
1899
|
-
/* @__PURE__ */ a("div", { className:
|
|
1898
|
+
fe.length > 1 && /* @__PURE__ */ a("div", { className: x.cashback, children: [
|
|
1899
|
+
/* @__PURE__ */ a("div", { className: x.cashbackHead, children: [
|
|
1900
1900
|
/* @__PURE__ */ e("span", { children: Q.cashback }),
|
|
1901
|
-
/* @__PURE__ */ a("strong", { className:
|
|
1902
|
-
|
|
1901
|
+
/* @__PURE__ */ a("strong", { className: x.cashbackRate, children: [
|
|
1902
|
+
j,
|
|
1903
1903
|
"%"
|
|
1904
1904
|
] })
|
|
1905
1905
|
] }),
|
|
1906
|
-
/* @__PURE__ */ e("p", { className:
|
|
1907
|
-
/* @__PURE__ */ a("div", { className:
|
|
1906
|
+
/* @__PURE__ */ e("p", { className: x.cashbackHint, children: K }),
|
|
1907
|
+
/* @__PURE__ */ a("div", { className: x.track, children: [
|
|
1908
1908
|
/* @__PURE__ */ e(
|
|
1909
|
-
|
|
1909
|
+
Dt,
|
|
1910
1910
|
{
|
|
1911
|
-
className:
|
|
1912
|
-
value:
|
|
1913
|
-
max:
|
|
1911
|
+
className: x.progress,
|
|
1912
|
+
value: te,
|
|
1913
|
+
max: V || 1,
|
|
1914
1914
|
ariaLabel: Q.cashback
|
|
1915
1915
|
}
|
|
1916
1916
|
),
|
|
1917
1917
|
/* @__PURE__ */ e(
|
|
1918
1918
|
"span",
|
|
1919
1919
|
{
|
|
1920
|
-
className:
|
|
1920
|
+
className: x.trackDot,
|
|
1921
1921
|
style: {
|
|
1922
|
-
left: `calc(8px + (100% - 16px) * ${
|
|
1922
|
+
left: `calc(8px + (100% - 16px) * ${de / 100})`
|
|
1923
1923
|
},
|
|
1924
1924
|
"aria-hidden": "true"
|
|
1925
1925
|
}
|
|
@@ -1928,163 +1928,163 @@ const Ur = ({
|
|
|
1928
1928
|
/* @__PURE__ */ e(
|
|
1929
1929
|
"div",
|
|
1930
1930
|
{
|
|
1931
|
-
className:
|
|
1931
|
+
className: x.tiers,
|
|
1932
1932
|
style: {
|
|
1933
|
-
gridTemplateColumns: `repeat(${
|
|
1933
|
+
gridTemplateColumns: `repeat(${fe.length}, minmax(0, 1fr))`
|
|
1934
1934
|
},
|
|
1935
|
-
children:
|
|
1935
|
+
children: fe.map((b, B) => /* @__PURE__ */ a(
|
|
1936
1936
|
"div",
|
|
1937
1937
|
{
|
|
1938
|
-
className:
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1938
|
+
className: oe(
|
|
1939
|
+
x.tier,
|
|
1940
|
+
B === 0 && x.tierFirst,
|
|
1941
|
+
B > 0 && B < fe.length - 1 && x.tierMid,
|
|
1942
|
+
B === fe.length - 1 && x.tierLast,
|
|
1943
|
+
b === E && x.tierCurrent
|
|
1944
1944
|
),
|
|
1945
1945
|
children: [
|
|
1946
|
-
/* @__PURE__ */ a("span", { className:
|
|
1947
|
-
|
|
1946
|
+
/* @__PURE__ */ a("span", { className: x.tierRate, children: [
|
|
1947
|
+
b.rate,
|
|
1948
1948
|
"%"
|
|
1949
1949
|
] }),
|
|
1950
|
-
/* @__PURE__ */ e("span", { className:
|
|
1950
|
+
/* @__PURE__ */ e("span", { className: x.tierMin, children: Mn(t, I, b.min) })
|
|
1951
1951
|
]
|
|
1952
1952
|
},
|
|
1953
|
-
|
|
1953
|
+
b.min
|
|
1954
1954
|
))
|
|
1955
1955
|
}
|
|
1956
1956
|
)
|
|
1957
1957
|
] }),
|
|
1958
1958
|
/* @__PURE__ */ a(
|
|
1959
|
-
|
|
1959
|
+
Ot,
|
|
1960
1960
|
{
|
|
1961
|
-
disabled:
|
|
1962
|
-
value:
|
|
1963
|
-
onValueChange:
|
|
1961
|
+
disabled: v,
|
|
1962
|
+
value: we ?? "",
|
|
1963
|
+
onValueChange: ye,
|
|
1964
1964
|
"aria-label": Q.methodLabel,
|
|
1965
|
-
className:
|
|
1965
|
+
className: x.methodGroups,
|
|
1966
1966
|
children: [
|
|
1967
|
-
|
|
1968
|
-
|
|
1967
|
+
Y.length === 0 && /* @__PURE__ */ e(Ut, { className: x.empty, title: Q.empty }),
|
|
1968
|
+
Y.map((b) => /* @__PURE__ */ a(
|
|
1969
1969
|
"section",
|
|
1970
1970
|
{
|
|
1971
|
-
className:
|
|
1972
|
-
"aria-labelledby": `${
|
|
1971
|
+
className: x.group,
|
|
1972
|
+
"aria-labelledby": `${X}-${b.id}`,
|
|
1973
1973
|
children: [
|
|
1974
|
-
/* @__PURE__ */ a("div", { className:
|
|
1974
|
+
/* @__PURE__ */ a("div", { className: x.groupHead, children: [
|
|
1975
1975
|
/* @__PURE__ */ e(
|
|
1976
1976
|
"h3",
|
|
1977
1977
|
{
|
|
1978
|
-
className:
|
|
1979
|
-
id: `${
|
|
1980
|
-
children:
|
|
1978
|
+
className: x.groupTitle,
|
|
1979
|
+
id: `${X}-${b.id}`,
|
|
1980
|
+
children: b.title
|
|
1981
1981
|
}
|
|
1982
1982
|
),
|
|
1983
|
-
/* @__PURE__ */ e("span", { children:
|
|
1983
|
+
/* @__PURE__ */ e("span", { children: b.feeLabel ?? Q.fee })
|
|
1984
1984
|
] }),
|
|
1985
|
-
/* @__PURE__ */ e(
|
|
1986
|
-
|
|
1985
|
+
/* @__PURE__ */ e(zt, { variant: "reference", className: x.groupBody, children: b.methods.map((B) => /* @__PURE__ */ a(
|
|
1986
|
+
Xt,
|
|
1987
1987
|
{
|
|
1988
|
-
value:
|
|
1989
|
-
disabled:
|
|
1990
|
-
className:
|
|
1988
|
+
value: B.id,
|
|
1989
|
+
disabled: B.disabled,
|
|
1990
|
+
className: x.method,
|
|
1991
1991
|
children: [
|
|
1992
|
-
/* @__PURE__ */ e("span", { className:
|
|
1993
|
-
/* @__PURE__ */ a("span", { className:
|
|
1994
|
-
/* @__PURE__ */ a("span", { className:
|
|
1995
|
-
|
|
1996
|
-
|
|
1992
|
+
/* @__PURE__ */ e("span", { className: x.methodIcon, "aria-hidden": "true", children: B.icon ?? /* @__PURE__ */ e(qe.Card, { size: 22 }) }),
|
|
1993
|
+
/* @__PURE__ */ a("span", { className: x.methodText, children: [
|
|
1994
|
+
/* @__PURE__ */ a("span", { className: x.methodLabel, children: [
|
|
1995
|
+
B.label,
|
|
1996
|
+
B.badge && /* @__PURE__ */ e(Gt, { children: B.badge })
|
|
1997
1997
|
] }),
|
|
1998
|
-
|
|
1998
|
+
B.description && /* @__PURE__ */ e("span", { className: x.methodDescription, children: B.description })
|
|
1999
1999
|
] }),
|
|
2000
|
-
|
|
2001
|
-
/* @__PURE__ */ e("span", { className:
|
|
2000
|
+
B.fee && /* @__PURE__ */ e("span", { className: x.methodFee, children: B.fee }),
|
|
2001
|
+
/* @__PURE__ */ e("span", { className: x.methodCheck, "aria-hidden": "true", children: /* @__PURE__ */ e(qe.Check, { size: 12, className: x.checkIcon }) })
|
|
2002
2002
|
]
|
|
2003
2003
|
},
|
|
2004
|
-
|
|
2004
|
+
B.id
|
|
2005
2005
|
)) })
|
|
2006
2006
|
]
|
|
2007
2007
|
},
|
|
2008
|
-
|
|
2008
|
+
b.id
|
|
2009
2009
|
))
|
|
2010
2010
|
]
|
|
2011
2011
|
}
|
|
2012
2012
|
),
|
|
2013
|
-
|
|
2013
|
+
re
|
|
2014
2014
|
] }),
|
|
2015
|
-
|
|
2015
|
+
ge && /* @__PURE__ */ e("span", { className: x.scrollFade, "aria-hidden": "true" })
|
|
2016
2016
|
] }),
|
|
2017
|
-
/* @__PURE__ */ a("footer", { className:
|
|
2018
|
-
/* @__PURE__ */ a("div", { className:
|
|
2019
|
-
/* @__PURE__ */ e(
|
|
2017
|
+
/* @__PURE__ */ a("footer", { className: x.footer, children: [
|
|
2018
|
+
/* @__PURE__ */ a("div", { className: x.region, children: [
|
|
2019
|
+
/* @__PURE__ */ e(dt, { className: x.regionLabel, htmlFor: ae, children: Q.region }),
|
|
2020
2020
|
/* @__PURE__ */ a(
|
|
2021
|
-
|
|
2021
|
+
Yt,
|
|
2022
2022
|
{
|
|
2023
|
-
disabled:
|
|
2024
|
-
value:
|
|
2025
|
-
onValueChange:
|
|
2023
|
+
disabled: v || n.length === 0,
|
|
2024
|
+
value: A?.code ?? "",
|
|
2025
|
+
onValueChange: ue,
|
|
2026
2026
|
children: [
|
|
2027
2027
|
/* @__PURE__ */ a(
|
|
2028
|
-
|
|
2028
|
+
jt,
|
|
2029
2029
|
{
|
|
2030
|
-
id:
|
|
2031
|
-
className:
|
|
2030
|
+
id: ae,
|
|
2031
|
+
className: x.regionTrigger,
|
|
2032
2032
|
"aria-label": Q.region,
|
|
2033
2033
|
children: [
|
|
2034
|
-
/* @__PURE__ */ e(
|
|
2035
|
-
/* @__PURE__ */ e(
|
|
2036
|
-
/* @__PURE__ */ e(
|
|
2034
|
+
/* @__PURE__ */ e(qe.Globe, { size: 16, className: x.regionGlobe }),
|
|
2035
|
+
/* @__PURE__ */ e(Wt, { className: x.regionValue }),
|
|
2036
|
+
/* @__PURE__ */ e(Vt, { children: /* @__PURE__ */ e(qe.Down, { size: 16 }) })
|
|
2037
2037
|
]
|
|
2038
2038
|
}
|
|
2039
2039
|
),
|
|
2040
|
-
/* @__PURE__ */ e(
|
|
2041
|
-
|
|
2040
|
+
/* @__PURE__ */ e(Kt, { children: /* @__PURE__ */ e(
|
|
2041
|
+
Jt,
|
|
2042
2042
|
{
|
|
2043
2043
|
position: "popper",
|
|
2044
2044
|
sideOffset: 6,
|
|
2045
2045
|
align: "start",
|
|
2046
|
-
className:
|
|
2047
|
-
children: /* @__PURE__ */ e(
|
|
2048
|
-
/* @__PURE__ */ e(
|
|
2049
|
-
/* @__PURE__ */ e(
|
|
2050
|
-
/* @__PURE__ */ e(
|
|
2051
|
-
] },
|
|
2046
|
+
className: x.regionContent,
|
|
2047
|
+
children: /* @__PURE__ */ e(Zt, { children: /* @__PURE__ */ e(Qt, { children: n.map((b) => /* @__PURE__ */ a(ea, { value: b.code, children: [
|
|
2048
|
+
/* @__PURE__ */ e(qe.Globe, { size: 15, className: x.optionGlobe }),
|
|
2049
|
+
/* @__PURE__ */ e(ta, { children: b.name }),
|
|
2050
|
+
/* @__PURE__ */ e(aa, {})
|
|
2051
|
+
] }, b.code)) }) })
|
|
2052
2052
|
}
|
|
2053
2053
|
) })
|
|
2054
2054
|
]
|
|
2055
2055
|
}
|
|
2056
2056
|
),
|
|
2057
|
-
/* @__PURE__ */ e("p", { className:
|
|
2057
|
+
/* @__PURE__ */ e("p", { className: x.regionHint, children: Q.regionHint })
|
|
2058
2058
|
] }),
|
|
2059
|
-
H && /* @__PURE__ */ a("p", { className:
|
|
2060
|
-
/* @__PURE__ */ e(
|
|
2059
|
+
H && /* @__PURE__ */ a("p", { className: x.error, role: "alert", children: [
|
|
2060
|
+
/* @__PURE__ */ e(qe.Close, { size: 14 }),
|
|
2061
2061
|
H
|
|
2062
2062
|
] }),
|
|
2063
2063
|
/* @__PURE__ */ e(
|
|
2064
|
-
|
|
2064
|
+
W,
|
|
2065
2065
|
{
|
|
2066
2066
|
variant: "primary",
|
|
2067
|
-
className:
|
|
2068
|
-
disabled: !
|
|
2069
|
-
onClick:
|
|
2070
|
-
children:
|
|
2071
|
-
/* @__PURE__ */ e(
|
|
2067
|
+
className: oe(x.pay, v && x.payPending),
|
|
2068
|
+
disabled: !se,
|
|
2069
|
+
onClick: ie,
|
|
2070
|
+
children: v ? /* @__PURE__ */ a(He, { children: [
|
|
2071
|
+
/* @__PURE__ */ e(na, { label: Q.pending }),
|
|
2072
2072
|
/* @__PURE__ */ e("span", { children: Q.pending })
|
|
2073
|
-
] }) : /* @__PURE__ */ a(
|
|
2074
|
-
/* @__PURE__ */ a("span", { className:
|
|
2075
|
-
/* @__PURE__ */ e(
|
|
2073
|
+
] }) : /* @__PURE__ */ a(He, { children: [
|
|
2074
|
+
/* @__PURE__ */ a("span", { className: x.payLabel, children: [
|
|
2075
|
+
/* @__PURE__ */ e(qe.Card, { size: 16 }),
|
|
2076
2076
|
Q.pay
|
|
2077
2077
|
] }),
|
|
2078
|
-
/* @__PURE__ */ e("strong", { children:
|
|
2078
|
+
/* @__PURE__ */ e("strong", { children: Lt(t, I, U) })
|
|
2079
2079
|
] })
|
|
2080
2080
|
}
|
|
2081
2081
|
),
|
|
2082
|
-
|
|
2082
|
+
D && /* @__PURE__ */ e("p", { className: x.notice, children: D })
|
|
2083
2083
|
] })
|
|
2084
2084
|
]
|
|
2085
2085
|
}
|
|
2086
2086
|
);
|
|
2087
|
-
},
|
|
2087
|
+
}, Te = {
|
|
2088
2088
|
"rp-bar-chart": "rp_BarChart-module_rp-bar-chart_G8Uh2qms",
|
|
2089
2089
|
"rp-bar-chart-peak": "rp_BarChart-module_rp-bar-chart-peak_rhpNOWBx",
|
|
2090
2090
|
"rp-bar-chart-bars": "rp_BarChart-module_rp-bar-chart-bars_XQGh3NRE",
|
|
@@ -2093,75 +2093,75 @@ const Ur = ({
|
|
|
2093
2093
|
"rp-bar-chart-segment": "rp_BarChart-module_rp-bar-chart-segment_rUqceCrY",
|
|
2094
2094
|
"rp-bar-chart-segment-inner": "rp_BarChart-module_rp-bar-chart-segment-inner_78F2D8Fq",
|
|
2095
2095
|
"rp-bar-chart-labels": "rp_BarChart-module_rp-bar-chart-labels_ZrSAwFYl"
|
|
2096
|
-
},
|
|
2096
|
+
}, gt = [
|
|
2097
2097
|
"var(--rp-color-accent)",
|
|
2098
2098
|
"var(--rp-color-success)",
|
|
2099
2099
|
"var(--rp-color-warning)",
|
|
2100
2100
|
"var(--rp-color-danger)",
|
|
2101
2101
|
"var(--rp-color-border-strong)",
|
|
2102
2102
|
"var(--rp-color-text-muted)"
|
|
2103
|
-
],
|
|
2103
|
+
], qr = ({
|
|
2104
2104
|
values: t,
|
|
2105
2105
|
labels: n,
|
|
2106
2106
|
stacked: r = !1,
|
|
2107
2107
|
label: o = "Daily token usage"
|
|
2108
2108
|
}) => {
|
|
2109
|
-
const
|
|
2109
|
+
const c = Math.max(1, ...t), s = n ?? t.map((d, h) => String(h + 1));
|
|
2110
2110
|
return /* @__PURE__ */ a(
|
|
2111
2111
|
"div",
|
|
2112
2112
|
{
|
|
2113
|
-
className:
|
|
2114
|
-
|
|
2115
|
-
r &&
|
|
2113
|
+
className: oe(
|
|
2114
|
+
Te["rp-bar-chart"],
|
|
2115
|
+
r && Te["rp-bar-chart--stacked"]
|
|
2116
2116
|
),
|
|
2117
2117
|
children: [
|
|
2118
|
-
/* @__PURE__ */ a("div", { className:
|
|
2119
|
-
|
|
2118
|
+
/* @__PURE__ */ a("div", { className: Te["rp-bar-chart-peak"], children: [
|
|
2119
|
+
c,
|
|
2120
2120
|
"M"
|
|
2121
2121
|
] }),
|
|
2122
2122
|
/* @__PURE__ */ e(
|
|
2123
2123
|
"div",
|
|
2124
2124
|
{
|
|
2125
|
-
className:
|
|
2125
|
+
className: Te["rp-bar-chart-bars"],
|
|
2126
2126
|
role: "img",
|
|
2127
|
-
"aria-label": `${o}: ${t.map((d, h) => `${
|
|
2127
|
+
"aria-label": `${o}: ${t.map((d, h) => `${s[h] ?? h + 1}: ${d}`).join(", ")}`,
|
|
2128
2128
|
children: t.map((d, h) => /* @__PURE__ */ a(
|
|
2129
2129
|
"div",
|
|
2130
2130
|
{
|
|
2131
|
-
className:
|
|
2132
|
-
title: `${
|
|
2131
|
+
className: Te["rp-bar-chart-bar"],
|
|
2132
|
+
title: `${s[h] ?? h + 1}: ${d}`,
|
|
2133
2133
|
children: [
|
|
2134
2134
|
/* @__PURE__ */ e(
|
|
2135
2135
|
"i",
|
|
2136
2136
|
{
|
|
2137
|
-
className:
|
|
2137
|
+
className: Te["rp-bar-chart-segment"],
|
|
2138
2138
|
style: {
|
|
2139
|
-
height: `${d /
|
|
2139
|
+
height: `${d / c * 85 * (r ? 0.25 : 0.15)}%`
|
|
2140
2140
|
}
|
|
2141
2141
|
}
|
|
2142
2142
|
),
|
|
2143
2143
|
/* @__PURE__ */ e(
|
|
2144
2144
|
"i",
|
|
2145
2145
|
{
|
|
2146
|
-
className:
|
|
2147
|
-
|
|
2148
|
-
|
|
2146
|
+
className: oe(
|
|
2147
|
+
Te["rp-bar-chart-segment"],
|
|
2148
|
+
Te["rp-bar-chart-segment-inner"]
|
|
2149
2149
|
),
|
|
2150
2150
|
style: {
|
|
2151
|
-
height: `${d /
|
|
2152
|
-
background: r ?
|
|
2151
|
+
height: `${d / c * 85 * (r ? 0.5 : 0.85)}%`,
|
|
2152
|
+
background: r ? gt[h % gt.length] : void 0
|
|
2153
2153
|
}
|
|
2154
2154
|
}
|
|
2155
2155
|
),
|
|
2156
2156
|
r && /* @__PURE__ */ e(
|
|
2157
2157
|
"i",
|
|
2158
2158
|
{
|
|
2159
|
-
className:
|
|
2160
|
-
|
|
2161
|
-
|
|
2159
|
+
className: oe(
|
|
2160
|
+
Te["rp-bar-chart-segment"],
|
|
2161
|
+
Te["rp-bar-chart-segment-top"]
|
|
2162
2162
|
),
|
|
2163
2163
|
style: {
|
|
2164
|
-
height: `${d /
|
|
2164
|
+
height: `${d / c * 21}%`,
|
|
2165
2165
|
background: "var(--rp-color-success)"
|
|
2166
2166
|
}
|
|
2167
2167
|
}
|
|
@@ -2172,11 +2172,11 @@ const Ur = ({
|
|
|
2172
2172
|
))
|
|
2173
2173
|
}
|
|
2174
2174
|
),
|
|
2175
|
-
/* @__PURE__ */ e("div", { className:
|
|
2175
|
+
/* @__PURE__ */ e("div", { className: Te["rp-bar-chart-labels"], children: s.map((d, h) => /* @__PURE__ */ e("span", { children: d }, `${h}-${d}`)) })
|
|
2176
2176
|
]
|
|
2177
2177
|
}
|
|
2178
2178
|
);
|
|
2179
|
-
},
|
|
2179
|
+
}, Ee = {
|
|
2180
2180
|
"rp-heatmap-scroll": "rp_Heatmap-module_rp-heatmap-scroll_b8EDFy7x",
|
|
2181
2181
|
"rp-heatmap-grid": "rp_Heatmap-module_rp-heatmap-grid_w-Q4clqM",
|
|
2182
2182
|
"rp-heatmap--hours": "rp_Heatmap-module_rp-heatmap--hours_0ejkT-5j",
|
|
@@ -2189,82 +2189,82 @@ const Ur = ({
|
|
|
2189
2189
|
"rp-heatmap-level-2": "rp_Heatmap-module_rp-heatmap-level-2_WdX9AXcf",
|
|
2190
2190
|
"rp-heatmap-level-3": "rp_Heatmap-module_rp-heatmap-level-3_5zBU5sNx",
|
|
2191
2191
|
"rp-heatmap-level-4": "rp_Heatmap-module_rp-heatmap-level-4_aMEF1e1x"
|
|
2192
|
-
},
|
|
2192
|
+
}, ft = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], Er = ({
|
|
2193
2193
|
levels: t,
|
|
2194
2194
|
columnLabels: n = [],
|
|
2195
2195
|
label: r = "Activity heatmap"
|
|
2196
2196
|
}) => {
|
|
2197
|
-
const o = t[0]?.length ?? 0,
|
|
2198
|
-
return /* @__PURE__ */ e("div", { className:
|
|
2197
|
+
const o = t[0]?.length ?? 0, c = o === 24;
|
|
2198
|
+
return /* @__PURE__ */ e("div", { className: Ee["rp-heatmap-scroll"], children: /* @__PURE__ */ e(
|
|
2199
2199
|
"div",
|
|
2200
2200
|
{
|
|
2201
|
-
className:
|
|
2202
|
-
|
|
2203
|
-
|
|
2201
|
+
className: oe(
|
|
2202
|
+
c ? Ee["rp-heatmap-hours"] : Ee["rp-heatmap-grid"],
|
|
2203
|
+
c && Ee["rp-heatmap--hours"]
|
|
2204
2204
|
),
|
|
2205
|
-
style:
|
|
2205
|
+
style: c ? void 0 : { gridTemplateColumns: `auto repeat(${o}, minmax(10px, 1fr))` },
|
|
2206
2206
|
role: "img",
|
|
2207
2207
|
"aria-label": r,
|
|
2208
|
-
children: Array.from({ length: 8 }, (
|
|
2209
|
-
/* @__PURE__ */ e("span", { className:
|
|
2208
|
+
children: Array.from({ length: 8 }, (s, d) => /* @__PURE__ */ a(la, { children: [
|
|
2209
|
+
/* @__PURE__ */ e("span", { className: Ee["rp-heatmap-day"], children: d === 0 ? "" : ft[d - 1] }),
|
|
2210
2210
|
Array.from(
|
|
2211
2211
|
{ length: o },
|
|
2212
|
-
(h,
|
|
2212
|
+
(h, u) => d === 0 ? /* @__PURE__ */ e("span", { className: Ee["rp-heatmap-month"], children: n[u] ?? "" }, u) : /* @__PURE__ */ e(
|
|
2213
2213
|
"i",
|
|
2214
2214
|
{
|
|
2215
|
-
className:
|
|
2216
|
-
|
|
2217
|
-
|
|
2215
|
+
className: oe(
|
|
2216
|
+
Ee["rp-heatmap-cell"],
|
|
2217
|
+
Ee[`rp-heatmap-level-${t[d - 1]?.[u] ?? 0}`]
|
|
2218
2218
|
),
|
|
2219
|
-
title: `${
|
|
2219
|
+
title: `${ft[d - 1]}, ${c ? "hour" : "column"} ${u + 1}`
|
|
2220
2220
|
},
|
|
2221
|
-
|
|
2221
|
+
u
|
|
2222
2222
|
)
|
|
2223
2223
|
)
|
|
2224
2224
|
] }, d))
|
|
2225
2225
|
}
|
|
2226
2226
|
) });
|
|
2227
|
-
},
|
|
2227
|
+
}, Ye = {
|
|
2228
2228
|
"rp-metric-strip": "rp_MetricStrip-module_rp-metric-strip_oAjqn-aO",
|
|
2229
2229
|
"rp-metric-strip--six": "rp_MetricStrip-module_rp-metric-strip--six_THBfnydZ",
|
|
2230
2230
|
"rp-metric-strip-card": "rp_MetricStrip-module_rp-metric-strip-card_63Ke96LL",
|
|
2231
2231
|
"rp-metric-strip-value": "rp_MetricStrip-module_rp-metric-strip-value_uZ3-dhTN",
|
|
2232
2232
|
"rp-metric-strip-label": "rp_MetricStrip-module_rp-metric-strip-label_vPmmuX6U",
|
|
2233
2233
|
"rp-metric-strip-detail": "rp_MetricStrip-module_rp-metric-strip-detail_eX9vbuU3"
|
|
2234
|
-
},
|
|
2235
|
-
const n =
|
|
2236
|
-
|
|
2237
|
-
t.length === 6 &&
|
|
2234
|
+
}, Hr = ({ metrics: t }) => {
|
|
2235
|
+
const n = oe(
|
|
2236
|
+
Ye["rp-metric-strip"],
|
|
2237
|
+
t.length === 6 && Ye["rp-metric-strip--six"]
|
|
2238
2238
|
);
|
|
2239
|
-
return /* @__PURE__ */ e("div", { className: n, children: t.map((r) => /* @__PURE__ */ a("div", { className:
|
|
2240
|
-
/* @__PURE__ */ e("b", { className:
|
|
2241
|
-
/* @__PURE__ */ e("span", { className:
|
|
2242
|
-
r.detail && /* @__PURE__ */ e("small", { className:
|
|
2239
|
+
return /* @__PURE__ */ e("div", { className: n, children: t.map((r) => /* @__PURE__ */ a("div", { className: Ye["rp-metric-strip-card"], children: [
|
|
2240
|
+
/* @__PURE__ */ e("b", { className: Ye["rp-metric-strip-value"], children: r.value }),
|
|
2241
|
+
/* @__PURE__ */ e("span", { className: Ye["rp-metric-strip-label"], children: r.label }),
|
|
2242
|
+
r.detail && /* @__PURE__ */ e("small", { className: Ye["rp-metric-strip-detail"], children: r.detail })
|
|
2243
2243
|
] }, r.label)) });
|
|
2244
|
-
},
|
|
2244
|
+
}, Ve = {
|
|
2245
2245
|
"rp-panel": "rp_Panel-module_rp-panel_phtJNPn-",
|
|
2246
2246
|
"rp-panel-header": "rp_Panel-module_rp-panel-header_btNJsltk",
|
|
2247
2247
|
"rp-panel-title": "rp_Panel-module_rp-panel-title_i0XnBxgm",
|
|
2248
2248
|
"rp-panel-spacer": "rp_Panel-module_rp-panel-spacer_Kv3uqewf",
|
|
2249
2249
|
"rp-panel-footer": "rp_Panel-module_rp-panel-footer_VMolMpS9"
|
|
2250
|
-
},
|
|
2250
|
+
}, Dr = ({
|
|
2251
2251
|
title: t,
|
|
2252
2252
|
actions: n,
|
|
2253
2253
|
children: r,
|
|
2254
2254
|
className: o,
|
|
2255
|
-
footer:
|
|
2255
|
+
footer: c
|
|
2256
2256
|
}) => {
|
|
2257
|
-
const
|
|
2258
|
-
return /* @__PURE__ */ a("section", { className: d, "aria-labelledby":
|
|
2259
|
-
/* @__PURE__ */ a("div", { className:
|
|
2260
|
-
/* @__PURE__ */ e("h2", { className:
|
|
2261
|
-
/* @__PURE__ */ e("span", { className:
|
|
2257
|
+
const s = Ke(), d = oe(Ve["rp-panel"], o);
|
|
2258
|
+
return /* @__PURE__ */ a("section", { className: d, "aria-labelledby": s, children: [
|
|
2259
|
+
/* @__PURE__ */ a("div", { className: Ve["rp-panel-header"], children: [
|
|
2260
|
+
/* @__PURE__ */ e("h2", { className: Ve["rp-panel-title"], id: s, children: t }),
|
|
2261
|
+
/* @__PURE__ */ e("span", { className: Ve["rp-panel-spacer"] }),
|
|
2262
2262
|
n
|
|
2263
2263
|
] }),
|
|
2264
2264
|
r,
|
|
2265
|
-
|
|
2265
|
+
c && /* @__PURE__ */ e("div", { className: Ve["rp-panel-footer"], children: c })
|
|
2266
2266
|
] });
|
|
2267
|
-
},
|
|
2267
|
+
}, Fe = {
|
|
2268
2268
|
"rp-ranking": "rp_Ranking-module_rp-ranking_J6gdvsdH",
|
|
2269
2269
|
"rp-ranking-row": "rp_Ranking-module_rp-ranking-row_gUD73n6g",
|
|
2270
2270
|
"rp-ranking-row-clickable": "rp_Ranking-module_rp-ranking-row-clickable_HfPGjDGs",
|
|
@@ -2274,35 +2274,35 @@ const Ur = ({
|
|
|
2274
2274
|
"rp-ranking-track": "rp_Ranking-module_rp-ranking-track_aXkuRs2Q",
|
|
2275
2275
|
"rp-ranking-value": "rp_Ranking-module_rp-ranking-value_fEjyec2m",
|
|
2276
2276
|
"rp-ranking-cost": "rp_Ranking-module_rp-ranking-cost_xFBMNKql"
|
|
2277
|
-
},
|
|
2277
|
+
}, Or = ({ items: t, onSelect: n }) => /* @__PURE__ */ e(
|
|
2278
2278
|
"div",
|
|
2279
2279
|
{
|
|
2280
|
-
className:
|
|
2280
|
+
className: Fe["rp-ranking"],
|
|
2281
2281
|
style: { "--rp-ranking-label-width": "140px" },
|
|
2282
2282
|
children: t.map((r) => /* @__PURE__ */ a(
|
|
2283
2283
|
"button",
|
|
2284
2284
|
{
|
|
2285
2285
|
type: "button",
|
|
2286
|
-
className:
|
|
2287
|
-
|
|
2288
|
-
n &&
|
|
2286
|
+
className: oe(
|
|
2287
|
+
Fe["rp-ranking-row"],
|
|
2288
|
+
n && Fe["rp-ranking-row-clickable"]
|
|
2289
2289
|
),
|
|
2290
2290
|
onClick: () => n?.(r),
|
|
2291
2291
|
disabled: !n,
|
|
2292
2292
|
children: [
|
|
2293
|
-
/* @__PURE__ */ a("span", { className:
|
|
2294
|
-
r.icon ? /* @__PURE__ */ e("span", { className:
|
|
2295
|
-
/* @__PURE__ */ e("span", { className:
|
|
2293
|
+
/* @__PURE__ */ a("span", { className: Fe["rp-ranking-label"], children: [
|
|
2294
|
+
r.icon ? /* @__PURE__ */ e("span", { className: Fe["rp-ranking-icon"], "aria-hidden": "true", children: r.icon }) : null,
|
|
2295
|
+
/* @__PURE__ */ e("span", { className: Fe["rp-ranking-name"], title: r.name, children: r.name })
|
|
2296
2296
|
] }),
|
|
2297
|
-
/* @__PURE__ */ e("span", { className:
|
|
2298
|
-
/* @__PURE__ */ e("span", { className:
|
|
2299
|
-
/* @__PURE__ */ e("span", { className:
|
|
2297
|
+
/* @__PURE__ */ e("span", { className: Fe["rp-ranking-track"], children: /* @__PURE__ */ e("i", { style: { width: `${Math.max(0, Math.min(100, r.share))}%` } }) }),
|
|
2298
|
+
/* @__PURE__ */ e("span", { className: Fe["rp-ranking-value"], children: r.value }),
|
|
2299
|
+
/* @__PURE__ */ e("span", { className: Fe["rp-ranking-cost"], children: r.cost })
|
|
2300
2300
|
]
|
|
2301
2301
|
},
|
|
2302
2302
|
r.name
|
|
2303
2303
|
))
|
|
2304
2304
|
}
|
|
2305
|
-
),
|
|
2305
|
+
), xe = {
|
|
2306
2306
|
"rp-request-table-scroll": "rp_RequestTable-module_rp-request-table-scroll_iHWzajvC",
|
|
2307
2307
|
"rp-request-table": "rp_RequestTable-module_rp-request-table_jVxKsH-c",
|
|
2308
2308
|
"rp-request-table-caption": "rp_RequestTable-module_rp-request-table-caption_tDVFUwew",
|
|
@@ -2315,7 +2315,7 @@ const Ur = ({
|
|
|
2315
2315
|
"rp-request-table-status": "rp_RequestTable-module_rp-request-table-status_MzQap-jR",
|
|
2316
2316
|
"rp-request-table-status--succeeded": "rp_RequestTable-module_rp-request-table-status--succeeded_XIp7zeex",
|
|
2317
2317
|
"rp-request-table-status--failed": "rp_RequestTable-module_rp-request-table-status--failed_BZ4zoupJ"
|
|
2318
|
-
},
|
|
2318
|
+
}, xn = [
|
|
2319
2319
|
"Time",
|
|
2320
2320
|
"Agent",
|
|
2321
2321
|
"Requested",
|
|
@@ -2324,39 +2324,39 @@ const Ur = ({
|
|
|
2324
2324
|
"Out",
|
|
2325
2325
|
"Cost",
|
|
2326
2326
|
"Status"
|
|
2327
|
-
],
|
|
2327
|
+
], Ur = ({ rows: t }) => /* @__PURE__ */ e(
|
|
2328
2328
|
"div",
|
|
2329
2329
|
{
|
|
2330
|
-
className:
|
|
2330
|
+
className: xe["rp-request-table-scroll"],
|
|
2331
2331
|
tabIndex: 0,
|
|
2332
2332
|
"aria-label": "Scrollable requests",
|
|
2333
|
-
children: /* @__PURE__ */ a("table", { className:
|
|
2334
|
-
/* @__PURE__ */ e("caption", { className:
|
|
2335
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children:
|
|
2333
|
+
children: /* @__PURE__ */ a("table", { className: xe["rp-request-table"], children: [
|
|
2334
|
+
/* @__PURE__ */ e("caption", { className: xe["rp-request-table-caption"], children: "Requests" }),
|
|
2335
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: xn.map((n) => /* @__PURE__ */ e("th", { scope: "col", children: n }, n)) }) }),
|
|
2336
2336
|
/* @__PURE__ */ e("tbody", { children: t.map((n) => /* @__PURE__ */ a("tr", { children: [
|
|
2337
|
-
/* @__PURE__ */ e("td", { className:
|
|
2337
|
+
/* @__PURE__ */ e("td", { className: xe["rp-request-table-time"], children: n.time }),
|
|
2338
2338
|
/* @__PURE__ */ e("td", { children: n.agent }),
|
|
2339
2339
|
/* @__PURE__ */ e("td", { children: n.model }),
|
|
2340
|
-
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ a("span", { className:
|
|
2340
|
+
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ a("span", { className: xe["rp-request-table-provider"], children: [
|
|
2341
2341
|
n.providerIcon ? /* @__PURE__ */ e(
|
|
2342
2342
|
"span",
|
|
2343
2343
|
{
|
|
2344
|
-
className:
|
|
2344
|
+
className: xe["rp-request-table-provider-icon"],
|
|
2345
2345
|
"aria-hidden": "true",
|
|
2346
2346
|
children: n.providerIcon
|
|
2347
2347
|
}
|
|
2348
2348
|
) : null,
|
|
2349
2349
|
n.provider,
|
|
2350
|
-
/* @__PURE__ */ e("span", { className:
|
|
2350
|
+
/* @__PURE__ */ e("span", { className: xe["rp-request-table-account"], children: n.account })
|
|
2351
2351
|
] }) }),
|
|
2352
|
-
/* @__PURE__ */ e("td", { className:
|
|
2353
|
-
/* @__PURE__ */ e("td", { className:
|
|
2352
|
+
/* @__PURE__ */ e("td", { className: xe["rp-request-table-num"], children: n.tokens }),
|
|
2353
|
+
/* @__PURE__ */ e("td", { className: xe["rp-request-table-num"], children: n.output ?? "—" }),
|
|
2354
2354
|
/* @__PURE__ */ e(
|
|
2355
2355
|
"td",
|
|
2356
2356
|
{
|
|
2357
|
-
className:
|
|
2358
|
-
|
|
2359
|
-
|
|
2357
|
+
className: oe(
|
|
2358
|
+
xe["rp-request-table-num"],
|
|
2359
|
+
xe["rp-request-table-cost"]
|
|
2360
2360
|
),
|
|
2361
2361
|
children: n.cost
|
|
2362
2362
|
}
|
|
@@ -2365,9 +2365,9 @@ const Ur = ({
|
|
|
2365
2365
|
/* @__PURE__ */ e(
|
|
2366
2366
|
"span",
|
|
2367
2367
|
{
|
|
2368
|
-
className:
|
|
2369
|
-
|
|
2370
|
-
n.status === "Failed" ?
|
|
2368
|
+
className: oe(
|
|
2369
|
+
xe["rp-request-table-status"],
|
|
2370
|
+
n.status === "Failed" ? xe["rp-request-table-status--failed"] : xe["rp-request-table-status--succeeded"]
|
|
2371
2371
|
),
|
|
2372
2372
|
"aria-hidden": "true",
|
|
2373
2373
|
children: n.status === "Failed" ? "×" : "•"
|
|
@@ -2379,7 +2379,7 @@ const Ur = ({
|
|
|
2379
2379
|
] }, n.id)) })
|
|
2380
2380
|
] })
|
|
2381
2381
|
}
|
|
2382
|
-
),
|
|
2382
|
+
), Ue = {
|
|
2383
2383
|
"rp-session-shape": "rp_SessionShape-module_rp-session-shape_lK5H99s2",
|
|
2384
2384
|
"rp-session-shape-col": "rp_SessionShape-module_rp-session-shape-col_b7cDXHSU",
|
|
2385
2385
|
"rp-session-shape-plot": "rp_SessionShape-module_rp-session-shape-plot_rHVHdFET",
|
|
@@ -2387,43 +2387,43 @@ const Ur = ({
|
|
|
2387
2387
|
"rp-session-shape-bar": "rp_SessionShape-module_rp-session-shape-bar_RundK3ML",
|
|
2388
2388
|
"rp-session-shape-col--peak": "rp_SessionShape-module_rp-session-shape-col--peak_2FbAs9hr",
|
|
2389
2389
|
"rp-session-shape-label": "rp_SessionShape-module_rp-session-shape-label_QhTXuqr6"
|
|
2390
|
-
},
|
|
2390
|
+
}, zr = ({ values: t, labels: n }) => {
|
|
2391
2391
|
const r = Math.max(1, ...t);
|
|
2392
2392
|
return /* @__PURE__ */ e(
|
|
2393
2393
|
"div",
|
|
2394
2394
|
{
|
|
2395
|
-
className:
|
|
2395
|
+
className: Ue["rp-session-shape"],
|
|
2396
2396
|
style: {
|
|
2397
2397
|
gridTemplateColumns: `repeat(${t.length}, minmax(0, 1fr))`
|
|
2398
2398
|
},
|
|
2399
2399
|
role: "img",
|
|
2400
|
-
"aria-label": t.map((o,
|
|
2401
|
-
children: t.map((o,
|
|
2400
|
+
"aria-label": t.map((o, c) => `${n[c]} messages: ${o} sessions`).join(", "),
|
|
2401
|
+
children: t.map((o, c) => /* @__PURE__ */ a(
|
|
2402
2402
|
"div",
|
|
2403
2403
|
{
|
|
2404
|
-
className:
|
|
2405
|
-
|
|
2406
|
-
o === r &&
|
|
2404
|
+
className: oe(
|
|
2405
|
+
Ue["rp-session-shape-col"],
|
|
2406
|
+
o === r && Ue["rp-session-shape-col--peak"]
|
|
2407
2407
|
),
|
|
2408
2408
|
children: [
|
|
2409
|
-
/* @__PURE__ */ a("div", { className:
|
|
2410
|
-
/* @__PURE__ */ e("b", { className:
|
|
2409
|
+
/* @__PURE__ */ a("div", { className: Ue["rp-session-shape-plot"], children: [
|
|
2410
|
+
/* @__PURE__ */ e("b", { className: Ue["rp-session-shape-count"], children: o }),
|
|
2411
2411
|
/* @__PURE__ */ e(
|
|
2412
2412
|
"i",
|
|
2413
2413
|
{
|
|
2414
|
-
className:
|
|
2414
|
+
className: Ue["rp-session-shape-bar"],
|
|
2415
2415
|
style: { height: `${o / r * 110}px` }
|
|
2416
2416
|
}
|
|
2417
2417
|
)
|
|
2418
2418
|
] }),
|
|
2419
|
-
/* @__PURE__ */ e("span", { className:
|
|
2419
|
+
/* @__PURE__ */ e("span", { className: Ue["rp-session-shape-label"], children: n[c] })
|
|
2420
2420
|
]
|
|
2421
2421
|
},
|
|
2422
|
-
|
|
2422
|
+
c
|
|
2423
2423
|
))
|
|
2424
2424
|
}
|
|
2425
2425
|
);
|
|
2426
|
-
},
|
|
2426
|
+
}, Ce = {
|
|
2427
2427
|
"rp-usage-list": "rp_UsageList-module_rp-usage-list_z8RMAIHR",
|
|
2428
2428
|
"rp-usage-list-row": "rp_UsageList-module_rp-usage-list-row_W7kgCICI",
|
|
2429
2429
|
"rp-usage-list-icon": "rp_UsageList-module_rp-usage-list-icon_XI-hUKig",
|
|
@@ -2437,387 +2437,387 @@ const Ur = ({
|
|
|
2437
2437
|
"rp-usage-list-value": "rp_UsageList-module_rp-usage-list-value_ZYLULILo",
|
|
2438
2438
|
"rp-usage-list-breakdown": "rp_UsageList-module_rp-usage-list-breakdown_lqbEDax6",
|
|
2439
2439
|
"rp-usage-list-cost": "rp_UsageList-module_rp-usage-list-cost_wVgLbsTn"
|
|
2440
|
-
},
|
|
2440
|
+
}, Xr = ({ items: t }) => /* @__PURE__ */ e("div", { className: Ce["rp-usage-list"], children: t.map((n) => /* @__PURE__ */ a(
|
|
2441
2441
|
"div",
|
|
2442
2442
|
{
|
|
2443
|
-
className:
|
|
2444
|
-
|
|
2445
|
-
|
|
2443
|
+
className: oe(
|
|
2444
|
+
Ce["rp-usage-list-row"],
|
|
2445
|
+
Ce["rp-usage-list-row--stat"]
|
|
2446
2446
|
),
|
|
2447
2447
|
children: [
|
|
2448
|
-
/* @__PURE__ */ e("span", { className:
|
|
2449
|
-
/* @__PURE__ */ a("div", { className:
|
|
2450
|
-
/* @__PURE__ */ e("div", { className:
|
|
2451
|
-
/* @__PURE__ */ e("div", { className:
|
|
2448
|
+
/* @__PURE__ */ e("span", { className: Ce["rp-usage-list-icon"], "aria-hidden": "true", children: n.icon ?? /* @__PURE__ */ e("span", { className: Ce["rp-usage-list-fallback-icon"] }) }),
|
|
2449
|
+
/* @__PURE__ */ a("div", { className: Ce["rp-usage-list-who"], children: [
|
|
2450
|
+
/* @__PURE__ */ e("div", { className: Ce["rp-usage-list-name"], children: n.name }),
|
|
2451
|
+
/* @__PURE__ */ e("div", { className: Ce["rp-usage-list-sub"], children: n.detail })
|
|
2452
2452
|
] }),
|
|
2453
|
-
/* @__PURE__ */ e("span", { className:
|
|
2454
|
-
/* @__PURE__ */ a("span", { className:
|
|
2455
|
-
/* @__PURE__ */ e("b", { className:
|
|
2456
|
-
/* @__PURE__ */ e("small", { className:
|
|
2453
|
+
/* @__PURE__ */ e("span", { className: Ce["rp-usage-list-share"], children: /* @__PURE__ */ e("i", { style: { width: `${n.share}%` } }) }),
|
|
2454
|
+
/* @__PURE__ */ a("span", { className: Ce["rp-usage-list-num"], children: [
|
|
2455
|
+
/* @__PURE__ */ e("b", { className: Ce["rp-usage-list-value"], children: n.value }),
|
|
2456
|
+
/* @__PURE__ */ e("small", { className: Ce["rp-usage-list-breakdown"], children: n.breakdown })
|
|
2457
2457
|
] }),
|
|
2458
|
-
/* @__PURE__ */ e("span", { className:
|
|
2458
|
+
/* @__PURE__ */ e("span", { className: Ce["rp-usage-list-cost"], children: n.cost })
|
|
2459
2459
|
]
|
|
2460
2460
|
},
|
|
2461
2461
|
n.name
|
|
2462
|
-
)) }),
|
|
2462
|
+
)) }), $n = {
|
|
2463
2463
|
"rp-plus-background-canvas": "rp_BackgroundPlus-module_rp-plus-background-canvas_qV-SHke3"
|
|
2464
2464
|
};
|
|
2465
|
-
function
|
|
2466
|
-
const r =
|
|
2467
|
-
return
|
|
2465
|
+
function St(t, n) {
|
|
2466
|
+
const r = Pe(null), o = Pe(n ?? (t ? 7 : 14));
|
|
2467
|
+
return Be(() => {
|
|
2468
2468
|
o.current = n ?? (t ? 7 : 14);
|
|
2469
|
-
}, [n, t]),
|
|
2470
|
-
const
|
|
2471
|
-
if (!
|
|
2472
|
-
const
|
|
2473
|
-
if (!
|
|
2469
|
+
}, [n, t]), Be(() => {
|
|
2470
|
+
const c = r.current;
|
|
2471
|
+
if (!c || typeof window > "u") return;
|
|
2472
|
+
const s = c.getContext("2d"), d = c.parentElement;
|
|
2473
|
+
if (!s || !d) return;
|
|
2474
2474
|
const h = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
2475
|
-
let
|
|
2476
|
-
const
|
|
2477
|
-
let f = 0,
|
|
2478
|
-
const
|
|
2479
|
-
if (
|
|
2480
|
-
const p = (
|
|
2481
|
-
|
|
2482
|
-
const
|
|
2483
|
-
if (
|
|
2484
|
-
const
|
|
2485
|
-
for (let
|
|
2486
|
-
for (let
|
|
2487
|
-
const
|
|
2488
|
-
|
|
2475
|
+
let u = 0, $ = 0, R = 0, M = !0, L = [], g = null;
|
|
2476
|
+
const _ = window.matchMedia("(hover: hover) and (pointer: fine)"), m = 10;
|
|
2477
|
+
let f = 0, S = 0, i = new Float32Array(0), y = new Float32Array(0), C = 0, T = 0, v = null, H = null;
|
|
2478
|
+
const re = () => {
|
|
2479
|
+
if (v) {
|
|
2480
|
+
const p = (v.targetX - v.x) * 0.22, k = (v.targetY - v.y) * 0.22;
|
|
2481
|
+
v.x += p, v.y += k;
|
|
2482
|
+
const N = Math.hypot(p, k);
|
|
2483
|
+
if (N > 0.02) {
|
|
2484
|
+
const F = v.x / m + 1, A = v.y / m + 1, U = Math.min(N, 12) * 0.065;
|
|
2485
|
+
for (let I = Math.max(1, Math.floor(A - 7)); I < Math.min(S - 1, A + 8); I++)
|
|
2486
|
+
for (let J = Math.max(1, Math.floor(F - 7)); J < Math.min(f - 1, F + 8); J++) {
|
|
2487
|
+
const Y = J - F, he = I - A, we = (Y * p + he * k) / N;
|
|
2488
|
+
y[I * f + J] += we * Math.exp(-(Y * Y + he * he) / 9) * U;
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
|
-
for (let p = 1; p <
|
|
2493
|
-
for (let
|
|
2494
|
-
const
|
|
2495
|
-
|
|
2492
|
+
for (let p = 1; p < S - 1; p++)
|
|
2493
|
+
for (let k = 1; k < f - 1; k++) {
|
|
2494
|
+
const N = p * f + k, F = i[N - 1] + i[N + 1] + i[N - f] + i[N + f] - 4 * i[N], A = Math.min(k, p, f - 1 - k, S - 1 - p);
|
|
2495
|
+
y[N] = (y[N] + F * 0.32) * (A < 8 ? 0.88 : 0.985);
|
|
2496
2496
|
}
|
|
2497
|
-
for (let p = 0; p <
|
|
2498
|
-
},
|
|
2499
|
-
const
|
|
2500
|
-
return (
|
|
2501
|
-
},
|
|
2502
|
-
if (
|
|
2503
|
-
|
|
2497
|
+
for (let p = 0; p < i.length; p++) i[p] += y[p];
|
|
2498
|
+
}, D = (p, k) => {
|
|
2499
|
+
const N = Math.max(0, Math.min(f - 2, p / m + 1)), F = Math.max(0, Math.min(S - 2, k / m + 1)), A = Math.floor(N), U = Math.floor(F), I = N - A, J = F - U, Y = U * f + A;
|
|
2500
|
+
return (i[Y] * (1 - I) + i[Y + 1] * I) * (1 - J) + (i[Y + f] * (1 - I) + i[Y + f + 1] * I) * J;
|
|
2501
|
+
}, ce = (p) => {
|
|
2502
|
+
if (!M || document.hidden) {
|
|
2503
|
+
R = 0;
|
|
2504
2504
|
return;
|
|
2505
2505
|
}
|
|
2506
|
-
if (T += Math.min(50,
|
|
2506
|
+
if (T += Math.min(50, C ? p - C : 0), C = p, h.matches)
|
|
2507
2507
|
T = 0;
|
|
2508
2508
|
else for (; T >= 1e3 / 60; )
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
const
|
|
2512
|
-
for (let
|
|
2513
|
-
for (let
|
|
2514
|
-
let
|
|
2515
|
-
if (
|
|
2516
|
-
const
|
|
2509
|
+
re(), T -= 1e3 / 60;
|
|
2510
|
+
s.clearRect(0, 0, u, $), L = L.filter((A) => p - A.time < 2400);
|
|
2511
|
+
const k = o.current, N = k / 2, F = k * 0.25;
|
|
2512
|
+
for (let A = N, U = 0; A < $; A += k, U++)
|
|
2513
|
+
for (let I = N + U % 2 * k / 2; I < u; I += k) {
|
|
2514
|
+
let J = 0, Y = 0, he = 0;
|
|
2515
|
+
if (g && !h.matches) {
|
|
2516
|
+
const ee = (p - g.time) / 1e3, me = (I - u / 2) / (u * 0.58), O = (A - $ * 0.42) / ($ * 0.7), le = Math.hypot(me, O), _e = 0.22 + 0.98 * Math.exp(-le * le * 2.1), be = Math.max(
|
|
2517
2517
|
0,
|
|
2518
|
-
Math.min(
|
|
2519
|
-
),
|
|
2520
|
-
|
|
2518
|
+
Math.min(ee, 2.4) - Math.min(0.045, le * 0.025)
|
|
2519
|
+
), Re = 1.55 * (1 - Math.exp(-be / 0.12)) * _e;
|
|
2520
|
+
he = me * 210 * Re, Y = -260 * Re * (1 - 0.3 * Math.tanh(O));
|
|
2521
2521
|
}
|
|
2522
2522
|
if (!h.matches)
|
|
2523
|
-
for (const
|
|
2524
|
-
const
|
|
2525
|
-
if (
|
|
2526
|
-
const
|
|
2527
|
-
|
|
2523
|
+
for (const ee of L) {
|
|
2524
|
+
const me = (p - ee.time) / 1e3, O = Math.hypot(I - ee.x, A - ee.y);
|
|
2525
|
+
if (me < 0) continue;
|
|
2526
|
+
const le = O - me * 320;
|
|
2527
|
+
J += Math.sin(le * 0.065) * Math.exp(-le * le / 13e3) * Math.max(0, 1 - me / 2.4) * 11;
|
|
2528
2528
|
}
|
|
2529
|
-
const
|
|
2530
|
-
-Math.pow((
|
|
2531
|
-
) * 0.55,
|
|
2529
|
+
const we = h.matches ? 0 : D(I + m, A) - D(I - m, A), ke = h.matches ? 0 : D(I, A + m) - D(I, A - m), fe = 12 * Math.tanh(we * 0.65), E = 12 * Math.tanh(ke * 0.65), G = Math.pow(Math.max(0, 1 - A / $), 0.6), j = 1 - Math.exp(
|
|
2530
|
+
-Math.pow((I - u / 2) / (u * 0.28), 2) - Math.pow((A - $ * 0.38) / ($ * 0.24), 2)
|
|
2531
|
+
) * 0.55, ne = Math.hypot(fe, E);
|
|
2532
2532
|
if (t) {
|
|
2533
|
-
const
|
|
2534
|
-
let
|
|
2535
|
-
-((
|
|
2536
|
-
) : 0,
|
|
2533
|
+
const ee = Math.abs(D(I, A)) * 0.12 + ne * 0.035 + Math.abs(J) * 0.035;
|
|
2534
|
+
let me = H ? Math.exp(
|
|
2535
|
+
-((I - H.x) ** 2 + (A - H.y) ** 2) / (2 * 24 ** 2)
|
|
2536
|
+
) : 0, O = 0;
|
|
2537
2537
|
if (!h.matches)
|
|
2538
|
-
for (const
|
|
2539
|
-
const
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
Math.exp(-(
|
|
2543
|
-
|
|
2544
|
-
),
|
|
2538
|
+
for (const le of L) {
|
|
2539
|
+
const _e = (p - le.time) / 1e3, be = Math.hypot(I - le.x, A - le.y), Re = 32 + 64 * Math.min(1, _e / 0.3), $e = Math.max(0, 1 - _e / 2.4), Ae = Math.exp(-((be - _e * 320) ** 2) / (2 * 36 ** 2)) * $e;
|
|
2540
|
+
me = Math.max(
|
|
2541
|
+
me,
|
|
2542
|
+
Math.exp(-(be ** 2) / (2 * Re ** 2)) * $e,
|
|
2543
|
+
Ae
|
|
2544
|
+
), O = Math.max(O, Ae);
|
|
2545
2545
|
}
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2546
|
+
s.globalAlpha = Math.min(0.28, 0.1 + ee * 0.12 + O * 0.12) * me, s.fillStyle = "#8a8f98", s.beginPath(), s.arc(
|
|
2547
|
+
I + J * 0.4 + fe * 0.25,
|
|
2548
|
+
A + J + E * 0.25,
|
|
2549
2549
|
1.25,
|
|
2550
2550
|
0,
|
|
2551
2551
|
Math.PI * 2
|
|
2552
|
-
),
|
|
2552
|
+
), s.fill();
|
|
2553
2553
|
continue;
|
|
2554
2554
|
}
|
|
2555
|
-
const
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
),
|
|
2555
|
+
const V = J * 0.055 + Math.tanh((we - ke) * 0.2) * 0.18, te = F + Math.abs(J) * 0.16 + ne * 0.08, de = Math.sin(I * 12.9898 + A * 78.233) * 43758.5453, P = de - Math.floor(de), K = p / 1e3, pe = Math.sin(I * 39.346 + A * 11.135) * 24634.6345, ue = pe - Math.floor(pe), ye = K / (3 + ue * 5) + ue * 17, se = ye - Math.floor(ye), ie = se < 0.32 ? Math.pow(Math.sin(Math.PI * se / 0.32), 2) : 0, b = P < 0.22, B = h.matches || !b ? 1 : 1 - 0.98 * ie;
|
|
2556
|
+
s.save(), s.translate(
|
|
2557
|
+
I + J * 0.4 + fe + he,
|
|
2558
|
+
A + J + E + Y
|
|
2559
|
+
), s.rotate(V), s.globalAlpha = Math.min(
|
|
2560
2560
|
1,
|
|
2561
2561
|
Math.min(
|
|
2562
2562
|
0.95,
|
|
2563
|
-
0.38 +
|
|
2564
|
-
) *
|
|
2565
|
-
),
|
|
2563
|
+
0.38 + P * 0.22 + (b ? 0.32 : 0) + Math.abs(J) * 0.045 + ne * 0.018
|
|
2564
|
+
) * G * j * B
|
|
2565
|
+
), s.strokeStyle = "#f5f8ff", s.lineWidth = F * (b ? 0.357 : 0.3), s.beginPath(), s.moveTo(-te, 0), s.lineTo(te, 0), s.moveTo(0, -te), s.lineTo(0, te), s.stroke(), s.restore();
|
|
2566
2566
|
}
|
|
2567
|
-
|
|
2568
|
-
},
|
|
2569
|
-
cancelAnimationFrame(
|
|
2567
|
+
R = M && !document.hidden && !h.matches ? requestAnimationFrame(ce) : 0;
|
|
2568
|
+
}, Z = () => {
|
|
2569
|
+
cancelAnimationFrame(R), R = 0, C = 0, M && !document.hidden && ce(performance.now());
|
|
2570
2570
|
}, Q = () => {
|
|
2571
|
-
const p =
|
|
2572
|
-
|
|
2573
|
-
const
|
|
2574
|
-
|
|
2571
|
+
const p = c.getBoundingClientRect();
|
|
2572
|
+
u = p.width, $ = p.height, f = Math.ceil(u / m) + 3, S = Math.ceil($ / m) + 3, i = new Float32Array(f * S), y = new Float32Array(f * S), v = null, T = 0;
|
|
2573
|
+
const k = Math.min(devicePixelRatio || 1, 2);
|
|
2574
|
+
c.width = u * k, c.height = $ * k, s.setTransform(k, 0, 0, k, 0, 0), Z();
|
|
2575
2575
|
};
|
|
2576
|
-
let
|
|
2577
|
-
const
|
|
2578
|
-
if (h.matches || !
|
|
2576
|
+
let X = 0;
|
|
2577
|
+
const z = (p) => {
|
|
2578
|
+
if (h.matches || !_.matches || p.pointerType === "touch")
|
|
2579
2579
|
return;
|
|
2580
|
-
if (!t && (performance.now() <
|
|
2581
|
-
|
|
2580
|
+
if (!t && (performance.now() < X || p.target.closest("#hero-download"))) {
|
|
2581
|
+
v = null;
|
|
2582
2582
|
return;
|
|
2583
2583
|
}
|
|
2584
|
-
const
|
|
2585
|
-
H = { x:
|
|
2586
|
-
},
|
|
2587
|
-
|
|
2588
|
-
},
|
|
2584
|
+
const k = c.getBoundingClientRect(), N = p.clientX - k.left, F = p.clientY - k.top;
|
|
2585
|
+
H = { x: N, y: F }, v ? (v.targetX = N, v.targetY = F) : v = { x: t ? N - 8 : N, y: F, targetX: N, targetY: F }, R || Z();
|
|
2586
|
+
}, ae = () => {
|
|
2587
|
+
v = null, H = null;
|
|
2588
|
+
}, ve = (p) => {
|
|
2589
2589
|
if (h.matches || p.button !== 0 || p.target.closest("a,button,input,select"))
|
|
2590
2590
|
return;
|
|
2591
|
-
const
|
|
2591
|
+
const k = c.getBoundingClientRect(), N = p.clientX - k.left, F = p.clientY - k.top;
|
|
2592
2592
|
if (t)
|
|
2593
|
-
|
|
2593
|
+
L.push({ x: N, y: F, time: performance.now() }), L = L.slice(-5);
|
|
2594
2594
|
else {
|
|
2595
|
-
const
|
|
2596
|
-
for (let
|
|
2597
|
-
for (let
|
|
2598
|
-
const
|
|
2599
|
-
|
|
2595
|
+
const A = N / m + 1, U = F / m + 1, I = 3;
|
|
2596
|
+
for (let J = Math.max(1, Math.floor(U - I * 3)); J < Math.min(S - 1, U + I * 3); J++)
|
|
2597
|
+
for (let Y = Math.max(1, Math.floor(A - I * 3)); Y < Math.min(f - 1, A + I * 3); Y++) {
|
|
2598
|
+
const he = ((Y - A) ** 2 + (J - U) ** 2) / I ** 2, we = (1 - he) * Math.exp(-he), ke = J * f + Y;
|
|
2599
|
+
y[ke] = Math.max(
|
|
2600
2600
|
-4,
|
|
2601
|
-
Math.min(4,
|
|
2601
|
+
Math.min(4, y[ke] - we * 2.4)
|
|
2602
2602
|
);
|
|
2603
2603
|
}
|
|
2604
2604
|
}
|
|
2605
|
-
|
|
2606
|
-
},
|
|
2605
|
+
R || Z();
|
|
2606
|
+
}, ge = (p) => {
|
|
2607
2607
|
if (t || h.matches) return;
|
|
2608
|
-
const
|
|
2609
|
-
if (
|
|
2610
|
-
|
|
2608
|
+
const k = p.detail;
|
|
2609
|
+
if (k.cancel) {
|
|
2610
|
+
g = null, X = 0;
|
|
2611
2611
|
return;
|
|
2612
2612
|
}
|
|
2613
|
-
if (
|
|
2614
|
-
|
|
2613
|
+
if (g && k.progress > 0) {
|
|
2614
|
+
g.progress = k.progress;
|
|
2615
2615
|
return;
|
|
2616
2616
|
}
|
|
2617
|
-
if (
|
|
2618
|
-
const
|
|
2619
|
-
if (!
|
|
2620
|
-
const
|
|
2621
|
-
|
|
2622
|
-
x:
|
|
2623
|
-
y:
|
|
2624
|
-
time:
|
|
2617
|
+
if (k.progress > 0) return;
|
|
2618
|
+
const N = d.querySelector("#hero-download");
|
|
2619
|
+
if (!N) return;
|
|
2620
|
+
const F = c.getBoundingClientRect(), A = N.getBoundingClientRect(), U = performance.now();
|
|
2621
|
+
X = U + 3220, g = {
|
|
2622
|
+
x: A.left + A.width / 2 - F.left,
|
|
2623
|
+
y: A.top + A.height / 2 - F.top,
|
|
2624
|
+
time: U,
|
|
2625
2625
|
progress: 0
|
|
2626
|
-
},
|
|
2626
|
+
}, L = [], i.fill(0), y.fill(0), v = null, L = L.slice(-5), R || Z();
|
|
2627
2627
|
};
|
|
2628
|
-
d.addEventListener("hero-scroll-inertia",
|
|
2629
|
-
const
|
|
2630
|
-
|
|
2631
|
-
const
|
|
2632
|
-
|
|
2628
|
+
d.addEventListener("hero-scroll-inertia", ge);
|
|
2629
|
+
const q = new ResizeObserver(Q);
|
|
2630
|
+
q.observe(c);
|
|
2631
|
+
const w = new IntersectionObserver((p) => {
|
|
2632
|
+
M = p.some((k) => k.isIntersecting), Z();
|
|
2633
2633
|
});
|
|
2634
|
-
return
|
|
2635
|
-
cancelAnimationFrame(
|
|
2634
|
+
return w.observe(c), d.addEventListener("pointermove", z), d.addEventListener("pointerleave", ae), d.addEventListener("pointerdown", ve), h.addEventListener("change", Z), document.addEventListener("visibilitychange", Z), Q(), () => {
|
|
2635
|
+
cancelAnimationFrame(R), q.disconnect(), w.disconnect(), d.removeEventListener("hero-scroll-inertia", ge), d.removeEventListener("pointermove", z), d.removeEventListener("pointerleave", ae), d.removeEventListener("pointerdown", ve), h.removeEventListener("change", Z), document.removeEventListener("visibilitychange", Z);
|
|
2636
2636
|
};
|
|
2637
2637
|
}, [t]), r;
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2640
|
-
const r =
|
|
2639
|
+
function Gr({ background: t, cellSize: n }) {
|
|
2640
|
+
const r = St(!1, n);
|
|
2641
2641
|
return /* @__PURE__ */ e(
|
|
2642
2642
|
"canvas",
|
|
2643
2643
|
{
|
|
2644
|
-
className: `${
|
|
2644
|
+
className: `${$n["rp-plus-background-canvas"]} rp-plus-background`,
|
|
2645
2645
|
style: t === void 0 ? void 0 : { background: t },
|
|
2646
2646
|
ref: r,
|
|
2647
2647
|
"aria-hidden": "true"
|
|
2648
2648
|
}
|
|
2649
2649
|
);
|
|
2650
2650
|
}
|
|
2651
|
-
const
|
|
2651
|
+
const bt = {
|
|
2652
2652
|
"rp-plus-field-canvas": "rp_PlusField-module_rp-plus-field-canvas_ZN-2OlaQ",
|
|
2653
2653
|
"rp-plus-field-dots": "rp_PlusField-module_rp-plus-field-dots_e1Khngt7"
|
|
2654
2654
|
};
|
|
2655
|
-
function
|
|
2656
|
-
const n =
|
|
2657
|
-
return
|
|
2655
|
+
function Yr({ dots: t = !1 }) {
|
|
2656
|
+
const n = Pe(null);
|
|
2657
|
+
return Be(() => {
|
|
2658
2658
|
const r = n.current;
|
|
2659
2659
|
if (!r || typeof window > "u") return;
|
|
2660
|
-
const o = r.getContext("2d"),
|
|
2661
|
-
if (!o || !
|
|
2662
|
-
const
|
|
2663
|
-
let d = 0, h = 0,
|
|
2664
|
-
const
|
|
2665
|
-
let
|
|
2666
|
-
const
|
|
2667
|
-
if (
|
|
2668
|
-
const
|
|
2669
|
-
|
|
2670
|
-
const p = Math.hypot(
|
|
2660
|
+
const o = r.getContext("2d"), c = r.parentElement;
|
|
2661
|
+
if (!o || !c) return;
|
|
2662
|
+
const s = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
2663
|
+
let d = 0, h = 0, u = 0, $ = !0, R = [], M = null;
|
|
2664
|
+
const L = window.matchMedia("(hover: hover) and (pointer: fine)"), g = 10;
|
|
2665
|
+
let _ = 0, m = 0, f = new Float32Array(0), S = new Float32Array(0), i = 0, y = 0, C = null, T = null;
|
|
2666
|
+
const v = () => {
|
|
2667
|
+
if (C) {
|
|
2668
|
+
const q = (C.targetX - C.x) * 0.22, w = (C.targetY - C.y) * 0.22;
|
|
2669
|
+
C.x += q, C.y += w;
|
|
2670
|
+
const p = Math.hypot(q, w);
|
|
2671
2671
|
if (p > 0.02) {
|
|
2672
|
-
const
|
|
2673
|
-
for (let
|
|
2674
|
-
for (let
|
|
2675
|
-
const
|
|
2676
|
-
|
|
2672
|
+
const k = C.x / g + 1, N = C.y / g + 1, F = Math.min(p, 12) * 0.065;
|
|
2673
|
+
for (let A = Math.max(1, Math.floor(N - 7)); A < Math.min(m - 1, N + 8); A++)
|
|
2674
|
+
for (let U = Math.max(1, Math.floor(k - 7)); U < Math.min(_ - 1, k + 8); U++) {
|
|
2675
|
+
const I = U - k, J = A - N, Y = (I * q + J * w) / p;
|
|
2676
|
+
S[A * _ + U] += Y * Math.exp(-(I * I + J * J) / 9) * F;
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
2679
|
}
|
|
2680
|
-
for (let
|
|
2681
|
-
for (let
|
|
2682
|
-
const p =
|
|
2683
|
-
|
|
2680
|
+
for (let q = 1; q < m - 1; q++)
|
|
2681
|
+
for (let w = 1; w < _ - 1; w++) {
|
|
2682
|
+
const p = q * _ + w, k = f[p - 1] + f[p + 1] + f[p - _] + f[p + _] - 4 * f[p], N = Math.min(w, q, _ - 1 - w, m - 1 - q);
|
|
2683
|
+
S[p] = (S[p] + k * 0.32) * (N < 8 ? 0.88 : 0.985);
|
|
2684
2684
|
}
|
|
2685
|
-
for (let
|
|
2686
|
-
}, H = (
|
|
2687
|
-
const p = Math.max(0, Math.min(
|
|
2688
|
-
return (f[
|
|
2689
|
-
},
|
|
2690
|
-
if (
|
|
2691
|
-
|
|
2692
|
-
else for (;
|
|
2693
|
-
|
|
2694
|
-
o.clearRect(0, 0, d, h),
|
|
2695
|
-
const
|
|
2696
|
-
for (let p = 7,
|
|
2697
|
-
for (let
|
|
2698
|
-
let
|
|
2699
|
-
if (
|
|
2700
|
-
const
|
|
2685
|
+
for (let q = 0; q < f.length; q++) f[q] += S[q];
|
|
2686
|
+
}, H = (q, w) => {
|
|
2687
|
+
const p = Math.max(0, Math.min(_ - 2, q / g + 1)), k = Math.max(0, Math.min(m - 2, w / g + 1)), N = Math.floor(p), F = Math.floor(k), A = p - N, U = k - F, I = F * _ + N;
|
|
2688
|
+
return (f[I] * (1 - A) + f[I + 1] * A) * (1 - U) + (f[I + _] * (1 - A) + f[I + _ + 1] * A) * U;
|
|
2689
|
+
}, re = (q) => {
|
|
2690
|
+
if (y += Math.min(50, i ? q - i : 0), i = q, s.matches)
|
|
2691
|
+
y = 0;
|
|
2692
|
+
else for (; y >= 1e3 / 60; )
|
|
2693
|
+
v(), y -= 1e3 / 60;
|
|
2694
|
+
o.clearRect(0, 0, d, h), R = R.filter((p) => q - p.time < 2400);
|
|
2695
|
+
const w = t ? 7 : 14;
|
|
2696
|
+
for (let p = 7, k = 0; p < h; p += w, k++)
|
|
2697
|
+
for (let N = 7 + k % 2 * w / 2; N < d; N += w) {
|
|
2698
|
+
let F = 0, A = 0, U = 0;
|
|
2699
|
+
if (M && !s.matches) {
|
|
2700
|
+
const se = (q - M.time) / 1e3, ie = (N - d / 2) / (d * 0.58), b = (p - h * 0.42) / (h * 0.7), B = Math.hypot(ie, b), ee = 0.22 + 0.98 * Math.exp(-B * B * 2.1), me = Math.max(
|
|
2701
2701
|
0,
|
|
2702
|
-
Math.min(
|
|
2703
|
-
),
|
|
2704
|
-
|
|
2702
|
+
Math.min(se, 2.4) - Math.min(0.045, B * 0.025)
|
|
2703
|
+
), O = 1.55 * (1 - Math.exp(-me / 0.12)) * ee;
|
|
2704
|
+
U = ie * 210 * O, A = -260 * O * (1 - 0.3 * Math.tanh(b));
|
|
2705
2705
|
}
|
|
2706
|
-
if (!
|
|
2707
|
-
for (const
|
|
2708
|
-
const
|
|
2709
|
-
if (
|
|
2710
|
-
const
|
|
2711
|
-
|
|
2706
|
+
if (!s.matches)
|
|
2707
|
+
for (const se of R) {
|
|
2708
|
+
const ie = (q - se.time) / 1e3, b = Math.hypot(N - se.x, p - se.y);
|
|
2709
|
+
if (ie < 0) continue;
|
|
2710
|
+
const B = b - ie * 320;
|
|
2711
|
+
F += Math.sin(B * 0.065) * Math.exp(-B * B / 13e3) * Math.max(0, 1 - ie / 2.4) * 11;
|
|
2712
2712
|
}
|
|
2713
|
-
const
|
|
2714
|
-
-Math.pow((
|
|
2715
|
-
) * 0.55,
|
|
2713
|
+
const I = s.matches ? 0 : H(N + g, p) - H(N - g, p), J = s.matches ? 0 : H(N, p + g) - H(N, p - g), Y = 12 * Math.tanh(I * 0.65), he = 12 * Math.tanh(J * 0.65), we = Math.pow(Math.max(0, 1 - p / h), 0.6), ke = 1 - Math.exp(
|
|
2714
|
+
-Math.pow((N - d / 2) / (d * 0.28), 2) - Math.pow((p - h * 0.38) / (h * 0.24), 2)
|
|
2715
|
+
) * 0.55, fe = Math.hypot(Y, he);
|
|
2716
2716
|
if (t) {
|
|
2717
|
-
const
|
|
2718
|
-
let
|
|
2719
|
-
-((
|
|
2720
|
-
) : 0,
|
|
2721
|
-
if (!
|
|
2722
|
-
for (const
|
|
2723
|
-
const
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
Math.exp(-(
|
|
2727
|
-
|
|
2728
|
-
),
|
|
2717
|
+
const se = Math.abs(H(N, p)) * 0.12 + fe * 0.035 + Math.abs(F) * 0.035;
|
|
2718
|
+
let ie = T ? Math.exp(
|
|
2719
|
+
-((N - T.x) ** 2 + (p - T.y) ** 2) / (2 * 24 ** 2)
|
|
2720
|
+
) : 0, b = 0;
|
|
2721
|
+
if (!s.matches)
|
|
2722
|
+
for (const B of R) {
|
|
2723
|
+
const ee = (q - B.time) / 1e3, me = Math.hypot(N - B.x, p - B.y), O = 32 + 64 * Math.min(1, ee / 0.3), le = Math.max(0, 1 - ee / 2.4), _e = Math.exp(-((me - ee * 320) ** 2) / (2 * 36 ** 2)) * le;
|
|
2724
|
+
ie = Math.max(
|
|
2725
|
+
ie,
|
|
2726
|
+
Math.exp(-(me ** 2) / (2 * O ** 2)) * le,
|
|
2727
|
+
_e
|
|
2728
|
+
), b = Math.max(b, _e);
|
|
2729
2729
|
}
|
|
2730
|
-
o.globalAlpha = Math.min(0.28, 0.1 +
|
|
2731
|
-
|
|
2732
|
-
p +
|
|
2730
|
+
o.globalAlpha = Math.min(0.28, 0.1 + se * 0.12 + b * 0.12) * ie, o.fillStyle = "#8a8f98", o.beginPath(), o.arc(
|
|
2731
|
+
N + F * 0.4 + Y * 0.25,
|
|
2732
|
+
p + F + he * 0.25,
|
|
2733
2733
|
1.25,
|
|
2734
2734
|
0,
|
|
2735
2735
|
Math.PI * 2
|
|
2736
2736
|
), o.fill();
|
|
2737
2737
|
continue;
|
|
2738
2738
|
}
|
|
2739
|
-
const
|
|
2739
|
+
const E = F * 0.055 + Math.tanh((I - J) * 0.2) * 0.18, G = 3.5 + Math.abs(F) * 0.16 + fe * 0.08, j = Math.sin(N * 12.9898 + p * 78.233) * 43758.5453, ne = j - Math.floor(j), V = q / 1e3, te = Math.sin(N * 39.346 + p * 11.135) * 24634.6345, de = te - Math.floor(te), P = V / (3 + de * 5) + de * 17, K = P - Math.floor(P), pe = K < 0.32 ? Math.pow(Math.sin(Math.PI * K / 0.32), 2) : 0, ue = ne < 0.22, ye = s.matches || !ue ? 1 : 1 - 0.98 * pe;
|
|
2740
2740
|
o.save(), o.translate(
|
|
2741
|
-
|
|
2742
|
-
p +
|
|
2743
|
-
), o.rotate(
|
|
2741
|
+
N + F * 0.4 + Y + U,
|
|
2742
|
+
p + F + he + A
|
|
2743
|
+
), o.rotate(E), o.globalAlpha = Math.min(
|
|
2744
2744
|
1,
|
|
2745
2745
|
Math.min(
|
|
2746
2746
|
0.95,
|
|
2747
|
-
0.38 +
|
|
2748
|
-
) *
|
|
2749
|
-
), o.strokeStyle = "#f5f8ff", o.lineWidth =
|
|
2747
|
+
0.38 + ne * 0.22 + (ue ? 0.32 : 0) + Math.abs(F) * 0.045 + fe * 0.018
|
|
2748
|
+
) * we * ke * ye
|
|
2749
|
+
), o.strokeStyle = "#f5f8ff", o.lineWidth = ue ? 1.25 : 1.05, o.beginPath(), o.moveTo(-G, 0), o.lineTo(G, 0), o.moveTo(0, -G), o.lineTo(0, G), o.stroke(), o.restore();
|
|
2750
2750
|
}
|
|
2751
|
-
|
|
2752
|
-
},
|
|
2753
|
-
cancelAnimationFrame(
|
|
2754
|
-
},
|
|
2755
|
-
const
|
|
2756
|
-
d =
|
|
2757
|
-
const
|
|
2758
|
-
r.width = d *
|
|
2751
|
+
u = $ && !document.hidden && !s.matches ? requestAnimationFrame(re) : 0;
|
|
2752
|
+
}, D = () => {
|
|
2753
|
+
cancelAnimationFrame(u), i = 0, re(performance.now());
|
|
2754
|
+
}, ce = () => {
|
|
2755
|
+
const q = r.getBoundingClientRect();
|
|
2756
|
+
d = q.width, h = q.height, _ = Math.ceil(d / g) + 3, m = Math.ceil(h / g) + 3, f = new Float32Array(_ * m), S = new Float32Array(_ * m), C = null, y = 0;
|
|
2757
|
+
const w = Math.min(devicePixelRatio || 1, 2);
|
|
2758
|
+
r.width = d * w, r.height = h * w, o.setTransform(w, 0, 0, w, 0, 0), D();
|
|
2759
2759
|
};
|
|
2760
|
-
let
|
|
2761
|
-
const Q = (
|
|
2762
|
-
if (
|
|
2760
|
+
let Z = 0;
|
|
2761
|
+
const Q = (q) => {
|
|
2762
|
+
if (s.matches || !L.matches || q.pointerType === "touch")
|
|
2763
2763
|
return;
|
|
2764
|
-
if (!t && (performance.now() <
|
|
2765
|
-
|
|
2764
|
+
if (!t && (performance.now() < Z || q.target.closest("#hero-download"))) {
|
|
2765
|
+
C = null;
|
|
2766
2766
|
return;
|
|
2767
2767
|
}
|
|
2768
|
-
const
|
|
2769
|
-
T = { x: p, y:
|
|
2770
|
-
},
|
|
2771
|
-
|
|
2772
|
-
},
|
|
2773
|
-
if (
|
|
2774
|
-
const
|
|
2775
|
-
|
|
2776
|
-
x:
|
|
2777
|
-
y:
|
|
2768
|
+
const w = r.getBoundingClientRect(), p = q.clientX - w.left, k = q.clientY - w.top;
|
|
2769
|
+
T = { x: p, y: k }, C ? (C.targetX = p, C.targetY = k) : C = { x: t ? p - 8 : p, y: k, targetX: p, targetY: k }, u || D();
|
|
2770
|
+
}, X = () => {
|
|
2771
|
+
C = null, T = null;
|
|
2772
|
+
}, z = (q) => {
|
|
2773
|
+
if (q.target.closest("a,button,input,select")) return;
|
|
2774
|
+
const w = r.getBoundingClientRect();
|
|
2775
|
+
R.push({
|
|
2776
|
+
x: q.clientX - w.left,
|
|
2777
|
+
y: q.clientY - w.top,
|
|
2778
2778
|
time: performance.now()
|
|
2779
|
-
}),
|
|
2780
|
-
},
|
|
2781
|
-
if (t ||
|
|
2782
|
-
const
|
|
2783
|
-
if (
|
|
2784
|
-
|
|
2779
|
+
}), R = R.slice(-5), u || D();
|
|
2780
|
+
}, ae = (q) => {
|
|
2781
|
+
if (t || s.matches) return;
|
|
2782
|
+
const w = q.detail;
|
|
2783
|
+
if (w.cancel) {
|
|
2784
|
+
M = null, Z = 0;
|
|
2785
2785
|
return;
|
|
2786
2786
|
}
|
|
2787
|
-
if (
|
|
2788
|
-
|
|
2787
|
+
if (M && w.progress > 0) {
|
|
2788
|
+
M.progress = w.progress;
|
|
2789
2789
|
return;
|
|
2790
2790
|
}
|
|
2791
|
-
if (
|
|
2792
|
-
const p =
|
|
2791
|
+
if (w.progress > 0) return;
|
|
2792
|
+
const p = c.querySelector("#hero-download");
|
|
2793
2793
|
if (!p) return;
|
|
2794
|
-
const
|
|
2795
|
-
|
|
2796
|
-
x:
|
|
2797
|
-
y:
|
|
2798
|
-
time:
|
|
2794
|
+
const k = r.getBoundingClientRect(), N = p.getBoundingClientRect(), F = performance.now();
|
|
2795
|
+
Z = F + 3220, M = {
|
|
2796
|
+
x: N.left + N.width / 2 - k.left,
|
|
2797
|
+
y: N.top + N.height / 2 - k.top,
|
|
2798
|
+
time: F,
|
|
2799
2799
|
progress: 0
|
|
2800
|
-
},
|
|
2800
|
+
}, R = [], f.fill(0), S.fill(0), C = null, R = R.slice(-5), u || D();
|
|
2801
2801
|
};
|
|
2802
|
-
|
|
2803
|
-
const
|
|
2804
|
-
|
|
2805
|
-
const
|
|
2806
|
-
|
|
2802
|
+
c.addEventListener("hero-scroll-inertia", ae);
|
|
2803
|
+
const ve = new ResizeObserver(ce);
|
|
2804
|
+
ve.observe(r);
|
|
2805
|
+
const ge = new IntersectionObserver((q) => {
|
|
2806
|
+
$ = q.some((w) => w.isIntersecting), D();
|
|
2807
2807
|
});
|
|
2808
|
-
return
|
|
2809
|
-
cancelAnimationFrame(
|
|
2808
|
+
return ge.observe(r), c.addEventListener("pointermove", Q), c.addEventListener("pointerleave", X), c.addEventListener("pointerdown", z), s.addEventListener("change", D), document.addEventListener("visibilitychange", D), ce(), () => {
|
|
2809
|
+
cancelAnimationFrame(u), ve.disconnect(), ge.disconnect(), c.removeEventListener("hero-scroll-inertia", ae), c.removeEventListener("pointermove", Q), c.removeEventListener("pointerleave", X), c.removeEventListener("pointerdown", z), s.removeEventListener("change", D), document.removeEventListener("visibilitychange", D);
|
|
2810
2810
|
};
|
|
2811
2811
|
}, [t]), /* @__PURE__ */ e(
|
|
2812
2812
|
"canvas",
|
|
2813
2813
|
{
|
|
2814
|
-
className: `${
|
|
2814
|
+
className: `${bt["rp-plus-field-canvas"]} ${t ? `${bt["rp-plus-field-dots"]} rp-download-ripple` : "rp-plus-field"}`,
|
|
2815
2815
|
ref: n,
|
|
2816
2816
|
"aria-hidden": "true"
|
|
2817
2817
|
}
|
|
2818
2818
|
);
|
|
2819
2819
|
}
|
|
2820
|
-
const
|
|
2820
|
+
const ze = {
|
|
2821
2821
|
"rp-line-field-background": "rp_BackgroundLineField-module_rp-line-field-background_iKQMVmpE",
|
|
2822
2822
|
"rp-line-field-canvas": "rp_BackgroundLineField-module_rp-line-field-canvas_NvZpohlj",
|
|
2823
2823
|
"rp-line-field-veil": "rp_BackgroundLineField-module_rp-line-field-veil_sMxIIjHC",
|
|
@@ -2825,176 +2825,176 @@ const Ve = {
|
|
|
2825
2825
|
"rp-line-field-left": "rp_BackgroundLineField-module_rp-line-field-left_NSpgJvyP",
|
|
2826
2826
|
"rp-line-field-right": "rp_BackgroundLineField-module_rp-line-field-right_o4I52Xbf",
|
|
2827
2827
|
"rp-line-field-bottom": "rp_BackgroundLineField-module_rp-line-field-bottom_7BxG7-Fk"
|
|
2828
|
-
},
|
|
2828
|
+
}, vt = 0.07, Cn = 0.66, An = 3.1, Ln = [0.0625, 0.25, 0.375, 0.5], yt = 0.045, Sn = 0.44, Bn = 14, Rn = 4, _t = ["#ebba00", "#a7e66b", "#cd99fd", "#0000ff"], Tn = [
|
|
2829
2829
|
"--rp-color-line-field-tier-1",
|
|
2830
2830
|
"--rp-color-line-field-tier-2",
|
|
2831
2831
|
"--rp-color-line-field-tier-3",
|
|
2832
2832
|
"--rp-color-line-field-tier-4"
|
|
2833
|
-
],
|
|
2833
|
+
], Xe = (t) => {
|
|
2834
2834
|
const n = Math.sin(t * 127.1) * 43758.5453;
|
|
2835
2835
|
return n - Math.floor(n);
|
|
2836
|
-
},
|
|
2837
|
-
angle:
|
|
2838
|
-
width: 0.02 +
|
|
2839
|
-
dashes: 22 +
|
|
2840
|
-
phase:
|
|
2841
|
-
drift: (
|
|
2842
|
-
speed: 0.4 +
|
|
2843
|
-
})),
|
|
2844
|
-
const d = n * o / 2, h = r *
|
|
2845
|
-
for (let
|
|
2846
|
-
const
|
|
2847
|
-
for (let
|
|
2848
|
-
const
|
|
2849
|
-
let
|
|
2850
|
-
for (const
|
|
2851
|
-
const
|
|
2852
|
-
if (
|
|
2853
|
-
const
|
|
2854
|
-
|
|
2836
|
+
}, Pn = Array.from({ length: Bn }, (t, n) => ({
|
|
2837
|
+
angle: Xe(n + 1) * Math.PI * 2,
|
|
2838
|
+
width: 0.02 + Xe(n + 21) * 0.05,
|
|
2839
|
+
dashes: 22 + Xe(n + 41) * 26,
|
|
2840
|
+
phase: Xe(n + 61) * Math.PI * 2,
|
|
2841
|
+
drift: (Xe(n + 81) - 0.5) * 0.09,
|
|
2842
|
+
speed: 0.4 + Xe(n + 101) * 0.7
|
|
2843
|
+
})), Fn = (t) => Math.atan2(Math.sin(t), Math.cos(t)), In = (t) => t < 0.2 ? -1 : t < 0.4 ? 0 : t < 0.6 ? 1 : t < 0.8 ? 2 : 3, qn = (t, n, r, o, c, s) => {
|
|
2844
|
+
const d = n * o / 2, h = r * c / 2, u = n * o * 0.5;
|
|
2845
|
+
for (let $ = 0; $ < r; $++) {
|
|
2846
|
+
const R = ($ + 0.5) * c - h;
|
|
2847
|
+
for (let M = 0; M < n; M++) {
|
|
2848
|
+
const L = (M + 0.5) * o - d, g = Math.hypot(L, R) / u, _ = Math.atan2(R, L);
|
|
2849
|
+
let m = 0;
|
|
2850
|
+
for (const S of Pn) {
|
|
2851
|
+
const i = Fn(_ - S.angle - s * S.drift), y = Math.exp(-(i * i) / (2 * S.width * S.width));
|
|
2852
|
+
if (y < 0.01) continue;
|
|
2853
|
+
const C = 0.5 + 0.5 * Math.sin(g * S.dashes - s * S.speed + S.phase);
|
|
2854
|
+
m = Math.max(m, y * (0.3 + 0.7 * C));
|
|
2855
2855
|
}
|
|
2856
|
-
|
|
2857
|
-
const f = Math.min(1, Math.max(0, (
|
|
2858
|
-
|
|
2856
|
+
m *= 0.7 + 0.6 * Xe(M * 3.17 + $ * 7.31);
|
|
2857
|
+
const f = Math.min(1, Math.max(0, (g - 0.12) / 0.3));
|
|
2858
|
+
m *= f * f * (3 - 2 * f), t[$ * n + M] = Math.min(
|
|
2859
2859
|
1,
|
|
2860
|
-
Math.max(0, (
|
|
2860
|
+
Math.max(0, (m - 0.58) * An + 0.5)
|
|
2861
2861
|
);
|
|
2862
2862
|
}
|
|
2863
2863
|
}
|
|
2864
|
-
},
|
|
2865
|
-
const
|
|
2866
|
-
t.beginPath(), t.moveTo(d +
|
|
2867
|
-
},
|
|
2868
|
-
t.clearRect(0, 0,
|
|
2869
|
-
for (let
|
|
2870
|
-
for (let
|
|
2871
|
-
const
|
|
2872
|
-
if (
|
|
2873
|
-
const
|
|
2874
|
-
let
|
|
2875
|
-
if (
|
|
2876
|
-
const
|
|
2877
|
-
let
|
|
2864
|
+
}, En = (t, n, r, o, c) => {
|
|
2865
|
+
const s = Math.min(c * Sn, (o - r) / 2), d = n - c / 2, h = n + c / 2;
|
|
2866
|
+
t.beginPath(), t.moveTo(d + s, r), t.lineTo(h - s, r), t.quadraticCurveTo(h, r, h, r + s), t.lineTo(h, o - s), t.quadraticCurveTo(h, o, h - s, o), t.lineTo(d + s, o), t.quadraticCurveTo(d, o, d, o - s), t.lineTo(d, r + s), t.quadraticCurveTo(d, r, d + s, r), t.closePath();
|
|
2867
|
+
}, Hn = (t, n, r, o, c, s, d, h, u, $, R) => {
|
|
2868
|
+
t.clearRect(0, 0, $, R);
|
|
2869
|
+
for (let M = 0; M < o; M++)
|
|
2870
|
+
for (let L = 0; L < r; L++) {
|
|
2871
|
+
const g = M * r + L, _ = n[g];
|
|
2872
|
+
if (_ < 0) continue;
|
|
2873
|
+
const m = M > 0 ? n[g - r] : -1, f = M < o - 1 ? n[g + r] : -1;
|
|
2874
|
+
let S = M * s, i = (M + 1) * s;
|
|
2875
|
+
if (m !== _ && (S += yt * 0.5 * s), f !== _ && (i -= yt * 0.5 * s), i <= S) continue;
|
|
2876
|
+
const y = Math.max(1, 2 * Ln[_] * Cn * c);
|
|
2877
|
+
let C = (L + 0.5) * c, T = 1;
|
|
2878
2878
|
if (h) {
|
|
2879
|
-
const
|
|
2880
|
-
if (
|
|
2881
|
-
const
|
|
2882
|
-
|
|
2879
|
+
const v = C - h.x, H = (S + i) / 2 - h.y, re = Math.hypot(v, H) / u;
|
|
2880
|
+
if (re < 1) {
|
|
2881
|
+
const D = (1 - re) ** 2;
|
|
2882
|
+
C += v * 0.06 * D, T = 1 - 0.7 * D;
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
|
-
t.globalAlpha = T, t.fillStyle = d[
|
|
2885
|
+
t.globalAlpha = T, t.fillStyle = d[_ % Rn], En(t, C, S, i, y), t.fill();
|
|
2886
2886
|
}
|
|
2887
2887
|
t.globalAlpha = 1;
|
|
2888
2888
|
};
|
|
2889
|
-
function
|
|
2890
|
-
const t =
|
|
2891
|
-
return
|
|
2889
|
+
function Dn() {
|
|
2890
|
+
const t = Pe(null);
|
|
2891
|
+
return Be(() => {
|
|
2892
2892
|
const n = t.current, r = n?.parentElement;
|
|
2893
2893
|
if (!n || !r || typeof window > "u") return;
|
|
2894
2894
|
const o = n.getContext("2d");
|
|
2895
2895
|
if (!o) return;
|
|
2896
|
-
const
|
|
2897
|
-
let d = 0, h = 0,
|
|
2898
|
-
const
|
|
2899
|
-
const
|
|
2900
|
-
|
|
2896
|
+
const c = window.matchMedia("(prefers-reduced-motion: reduce)"), s = window.matchMedia("(hover: hover) and (pointer: fine)");
|
|
2897
|
+
let d = 0, h = 0, u = 0, $ = 0, R = 0, M = 0, L = 0, g = !0, _ = 0, m = 0, f = new Float32Array(0), S = new Int8Array(0), i = [..._t], y = null;
|
|
2898
|
+
const C = () => {
|
|
2899
|
+
const z = getComputedStyle(r);
|
|
2900
|
+
i = Tn.map((ae, ve) => z.getPropertyValue(ae).trim() || _t[ve]);
|
|
2901
2901
|
}, T = () => {
|
|
2902
|
-
|
|
2903
|
-
for (let
|
|
2904
|
-
|
|
2905
|
-
|
|
2902
|
+
qn(f, u, $, R, M, _);
|
|
2903
|
+
for (let z = 0; z < f.length; z++)
|
|
2904
|
+
S[z] = In(f[z]);
|
|
2905
|
+
Hn(
|
|
2906
2906
|
o,
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
x,
|
|
2910
|
-
C,
|
|
2907
|
+
S,
|
|
2908
|
+
u,
|
|
2911
2909
|
$,
|
|
2912
|
-
|
|
2913
|
-
|
|
2910
|
+
R,
|
|
2911
|
+
M,
|
|
2912
|
+
i,
|
|
2913
|
+
y,
|
|
2914
2914
|
Math.min(d, h) * 0.18,
|
|
2915
2915
|
d,
|
|
2916
2916
|
h
|
|
2917
2917
|
);
|
|
2918
|
-
},
|
|
2919
|
-
|
|
2918
|
+
}, v = (z) => {
|
|
2919
|
+
L = 0, !(!g || document.hidden) && (m && (_ += Math.min(80, z - m) * 28e-5), m = z, T(), c.matches || (L = requestAnimationFrame(v)));
|
|
2920
2920
|
}, H = () => {
|
|
2921
|
-
cancelAnimationFrame(
|
|
2922
|
-
},
|
|
2923
|
-
const
|
|
2924
|
-
d =
|
|
2925
|
-
const
|
|
2926
|
-
n.width = Math.round(d *
|
|
2927
|
-
},
|
|
2928
|
-
if (
|
|
2921
|
+
cancelAnimationFrame(L), L = 0, m = 0, g && !document.hidden && (L = requestAnimationFrame(v));
|
|
2922
|
+
}, re = () => {
|
|
2923
|
+
const z = r.getBoundingClientRect();
|
|
2924
|
+
d = z.width, h = z.height, u = Math.max(1, Math.round(d * vt)), $ = Math.max(1, Math.round(h * vt)), R = d / u, M = h / $, f = new Float32Array(u * $), S = new Int8Array(u * $);
|
|
2925
|
+
const ae = Math.min(window.devicePixelRatio || 1, 2);
|
|
2926
|
+
n.width = Math.round(d * ae), n.height = Math.round(h * ae), o.setTransform(ae, 0, 0, ae, 0, 0), C(), H();
|
|
2927
|
+
}, D = (z) => {
|
|
2928
|
+
if (c.matches || !s.matches || z.pointerType === "touch")
|
|
2929
2929
|
return;
|
|
2930
|
-
const
|
|
2931
|
-
|
|
2932
|
-
x:
|
|
2933
|
-
y:
|
|
2934
|
-
},
|
|
2935
|
-
},
|
|
2936
|
-
|
|
2937
|
-
},
|
|
2938
|
-
|
|
2930
|
+
const ae = r.getBoundingClientRect();
|
|
2931
|
+
y = {
|
|
2932
|
+
x: z.clientX - ae.left,
|
|
2933
|
+
y: z.clientY - ae.top
|
|
2934
|
+
}, L || H();
|
|
2935
|
+
}, ce = () => {
|
|
2936
|
+
y = null, L || H();
|
|
2937
|
+
}, Z = new MutationObserver(() => {
|
|
2938
|
+
C(), L || H();
|
|
2939
2939
|
});
|
|
2940
|
-
|
|
2940
|
+
Z.observe(document.body, {
|
|
2941
2941
|
attributes: !0,
|
|
2942
2942
|
attributeFilter: ["data-theme"],
|
|
2943
2943
|
subtree: !0
|
|
2944
2944
|
});
|
|
2945
|
-
const Q = new ResizeObserver(
|
|
2945
|
+
const Q = new ResizeObserver(re);
|
|
2946
2946
|
Q.observe(r);
|
|
2947
|
-
const
|
|
2948
|
-
|
|
2947
|
+
const X = new IntersectionObserver((z) => {
|
|
2948
|
+
g = z.some((ae) => ae.isIntersecting), H();
|
|
2949
2949
|
});
|
|
2950
|
-
return
|
|
2951
|
-
cancelAnimationFrame(
|
|
2950
|
+
return X.observe(n), window.addEventListener("pointermove", D, { passive: !0 }), window.addEventListener("pointerleave", ce), c.addEventListener("change", H), document.addEventListener("visibilitychange", H), re(), () => {
|
|
2951
|
+
cancelAnimationFrame(L), Q.disconnect(), X.disconnect(), Z.disconnect(), window.removeEventListener("pointermove", D), window.removeEventListener("pointerleave", ce), c.removeEventListener("change", H), document.removeEventListener("visibilitychange", H);
|
|
2952
2952
|
};
|
|
2953
2953
|
}, []), t;
|
|
2954
2954
|
}
|
|
2955
|
-
function
|
|
2956
|
-
const n =
|
|
2955
|
+
function jr({ className: t }) {
|
|
2956
|
+
const n = Dn();
|
|
2957
2957
|
return /* @__PURE__ */ a(
|
|
2958
2958
|
"div",
|
|
2959
2959
|
{
|
|
2960
|
-
className: `${
|
|
2960
|
+
className: `${ze["rp-line-field-background"]}${t ? ` ${t}` : ""}`,
|
|
2961
2961
|
"aria-hidden": "true",
|
|
2962
2962
|
children: [
|
|
2963
2963
|
/* @__PURE__ */ e(
|
|
2964
2964
|
"canvas",
|
|
2965
2965
|
{
|
|
2966
|
-
className:
|
|
2966
|
+
className: ze["rp-line-field-canvas"],
|
|
2967
2967
|
ref: n,
|
|
2968
2968
|
tabIndex: -1
|
|
2969
2969
|
}
|
|
2970
2970
|
),
|
|
2971
|
-
/* @__PURE__ */ e("div", { className:
|
|
2972
|
-
/* @__PURE__ */ e("div", { className:
|
|
2973
|
-
/* @__PURE__ */ e("div", { className:
|
|
2974
|
-
/* @__PURE__ */ e("div", { className:
|
|
2975
|
-
/* @__PURE__ */ e("div", { className:
|
|
2971
|
+
/* @__PURE__ */ e("div", { className: ze["rp-line-field-veil"] }),
|
|
2972
|
+
/* @__PURE__ */ e("div", { className: ze["rp-line-field-top"] }),
|
|
2973
|
+
/* @__PURE__ */ e("div", { className: ze["rp-line-field-left"] }),
|
|
2974
|
+
/* @__PURE__ */ e("div", { className: ze["rp-line-field-right"] }),
|
|
2975
|
+
/* @__PURE__ */ e("div", { className: ze["rp-line-field-bottom"] })
|
|
2976
2976
|
]
|
|
2977
2977
|
}
|
|
2978
2978
|
);
|
|
2979
2979
|
}
|
|
2980
|
-
const
|
|
2980
|
+
const On = {
|
|
2981
2981
|
"rp-dotted-background-canvas": "rp_BackgroundDotted-module_rp-dotted-background-canvas_-HlLHshb"
|
|
2982
2982
|
};
|
|
2983
|
-
function
|
|
2984
|
-
const n =
|
|
2983
|
+
function Un({ background: t }) {
|
|
2984
|
+
const n = St(!0);
|
|
2985
2985
|
return /* @__PURE__ */ e(
|
|
2986
2986
|
"canvas",
|
|
2987
2987
|
{
|
|
2988
|
-
className: `${
|
|
2988
|
+
className: `${On["rp-dotted-background-canvas"]} rp-download-ripple`,
|
|
2989
2989
|
style: t === void 0 ? void 0 : { background: t },
|
|
2990
2990
|
ref: n,
|
|
2991
2991
|
"aria-hidden": "true"
|
|
2992
2992
|
}
|
|
2993
2993
|
);
|
|
2994
2994
|
}
|
|
2995
|
-
const
|
|
2996
|
-
canvas:
|
|
2997
|
-
},
|
|
2995
|
+
const zn = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", Xn = {
|
|
2996
|
+
canvas: zn
|
|
2997
|
+
}, et = [
|
|
2998
2998
|
"#244cf0",
|
|
2999
2999
|
"#3459f1",
|
|
3000
3000
|
"#4869f3",
|
|
@@ -3007,194 +3007,222 @@ const Qn = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", er = {
|
|
|
3007
3007
|
"#d7defc",
|
|
3008
3008
|
"#e9edfe",
|
|
3009
3009
|
"#ffffff"
|
|
3010
|
-
],
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
return
|
|
3015
|
-
|
|
3016
|
-
|
|
3010
|
+
], Gn = Array.from({ length: 1024 }, (t, n) => {
|
|
3011
|
+
const r = n / 1023 * (et.length - 1), o = Math.floor(r), c = r - o, s = et[o], d = et[Math.min(o + 1, et.length - 1)];
|
|
3012
|
+
return "rgb(" + [1, 3, 5].map((h) => {
|
|
3013
|
+
const u = parseInt(s.slice(h, h + 2), 16);
|
|
3014
|
+
return Math.round(
|
|
3015
|
+
u + (parseInt(d.slice(h, h + 2), 16) - u) * c
|
|
3016
|
+
);
|
|
3017
|
+
}).join(",") + ")";
|
|
3018
|
+
}), Yn = 4096, Nt = 24, Mt = 1, ot = 900, jn = 48, je = 48, Wn = 24, Vn = 3;
|
|
3019
|
+
function tt(t, n) {
|
|
3020
|
+
const r = Math.min(1, Math.max(0, (n - t.phaseAt) / 0.9));
|
|
3021
|
+
return t.phaseFrom + (t.phase - t.phaseFrom) * r * r * (3 - 2 * r);
|
|
3017
3022
|
}
|
|
3018
|
-
function
|
|
3019
|
-
const
|
|
3020
|
-
|
|
3023
|
+
function wt(t, n) {
|
|
3024
|
+
const r = (g, _) => {
|
|
3025
|
+
let m = Math.imul(g, 374761393) + Math.imul(_, 668265263);
|
|
3026
|
+
return m = Math.imul(m ^ m >>> 13, 1274126177), ((m ^ m >>> 16) >>> 0) / 4294967296;
|
|
3027
|
+
}, o = Math.floor(t), c = Math.floor(n), s = t - o, d = n - c, h = s * s * (3 - 2 * s), u = d * d * (3 - 2 * d), $ = r(o, c), R = r(o + 1, c), M = r(o, c + 1), L = r(o + 1, c + 1);
|
|
3028
|
+
return $ + (R - $) * h + (M - $) * u + ($ - R - M + L) * h * u;
|
|
3021
3029
|
}
|
|
3022
|
-
function
|
|
3023
|
-
const l = t / 220 + o * 0.12, i = n / 220, d = (rt(l * 0.8, i * 0.8, r * 0.13 + 11.3) - 0.5) * 2.8, h = (rt(l * 0.8 + 37, i * 0.8 + 71, r * 0.11 + 29.7) - 0.5) * 2.8, g = l + d, x = i + h, C = rt(g, x, r * 0.09 + 47.2), $ = rt(g * 2, x * 2, r * 0.17 + 73.8), B = rt(
|
|
3024
|
-
l * 0.65 + 19,
|
|
3025
|
-
i * 0.65 + 43,
|
|
3026
|
-
r * 0.12 + 97.5
|
|
3027
|
-
);
|
|
3028
|
-
return 0.5 + Math.sin((g * 0.62 + x) * 2.2 + C * 5.5 + (B - 0.5) * 5) * 0.35 + ($ - 0.5) * 0.32;
|
|
3029
|
-
}
|
|
3030
|
-
function ei({
|
|
3030
|
+
function Wr({
|
|
3031
3031
|
scene: t,
|
|
3032
|
-
cellSize: n =
|
|
3032
|
+
cellSize: n = Nt,
|
|
3033
3033
|
density: r = 1,
|
|
3034
3034
|
speed: o = 1,
|
|
3035
|
-
step:
|
|
3035
|
+
step: c = 0
|
|
3036
3036
|
}) {
|
|
3037
|
-
const
|
|
3038
|
-
return
|
|
3039
|
-
d.current = t;
|
|
3040
|
-
}, [t]),
|
|
3041
|
-
|
|
3042
|
-
}, [
|
|
3043
|
-
|
|
3044
|
-
}, [o]),
|
|
3045
|
-
|
|
3046
|
-
}, [
|
|
3047
|
-
const
|
|
3048
|
-
if (!
|
|
3049
|
-
const f = matchMedia("(prefers-reduced-motion: reduce)")
|
|
3050
|
-
let
|
|
3051
|
-
const
|
|
3052
|
-
let
|
|
3053
|
-
const
|
|
3054
|
-
|
|
3055
|
-
const R = v * q;
|
|
3056
|
-
p = new Float32Array(R), _ = new Float32Array(R), y = new Float32Array(R), I = new Float32Array(R), L = new Float32Array(R), O = new Float32Array(R);
|
|
3057
|
-
}, Z = (R, D) => {
|
|
3058
|
-
const V = Math.max(0, Math.min(v - 1, R / we)), u = Math.max(0, Math.min(q - 1, D / we)), m = Math.floor(V), k = Math.floor(u), G = Math.min(m + 1, v - 1), U = Math.min(k + 1, q - 1), K = V - m, j = u - k, le = (He) => He[k * v + m] * (1 - K) * (1 - j) + He[k * v + G] * K * (1 - j) + He[U * v + m] * (1 - K) * j + He[U * v + G] * K * j, se = k * v + m, fe = k * v + G, me = U * v + m, Ie = U * v + G, Ee = ((p[fe] - p[se]) * (1 - j) + (p[Ie] - p[me]) * j) / we, Ue = ((_[me] - _[se]) * (1 - K) + (_[Ie] - _[fe]) * K) / we;
|
|
3037
|
+
const s = Pe(null), d = Pe(t), h = Number.isFinite(r) ? Math.min(4, Math.max(0.25, r)) : 1, u = Number.isFinite(n) ? Math.max(4, n) : Nt, $ = Pe(Math.max(4, u / Math.sqrt(h))), R = Pe(o), M = Pe(Number.isFinite(c) ? c : 0), L = Pe(null);
|
|
3038
|
+
return Be(() => {
|
|
3039
|
+
d.current = Number.isFinite(t) ? t : 0;
|
|
3040
|
+
}, [t]), Be(() => {
|
|
3041
|
+
$.current = Math.max(4, u / Math.sqrt(h)), L.current?.();
|
|
3042
|
+
}, [u, h]), Be(() => {
|
|
3043
|
+
R.current = Number.isFinite(o) ? Math.max(0, o) : 1;
|
|
3044
|
+
}, [o]), Be(() => {
|
|
3045
|
+
M.current = Number.isFinite(c) ? c : 0, L.current?.();
|
|
3046
|
+
}, [c]), Be(() => {
|
|
3047
|
+
const g = s.current, _ = g?.getContext("2d");
|
|
3048
|
+
if (!g || !_) return;
|
|
3049
|
+
const m = g.parentElement ?? g, f = matchMedia("(prefers-reduced-motion: reduce)");
|
|
3050
|
+
let S = 0, i = 0, y = 0, C = !1, T = 0, v = 0, H = 0, re = d.current * 7.13, D = M.current * Mt, ce = D, Z = D, Q = ot;
|
|
3051
|
+
const X = [];
|
|
3052
|
+
let z = [], ae = 0, ve = 0, ge = new Float32Array(0);
|
|
3053
|
+
const q = Array.from({ length: 8 }, (E, G) => {
|
|
3054
|
+
const j = G % 4, ne = Math.random(), V = 0.15 + Math.random() * 0.45;
|
|
3059
3055
|
return {
|
|
3060
|
-
x:
|
|
3061
|
-
y:
|
|
3062
|
-
|
|
3056
|
+
x: j === 0 ? -V : j === 1 ? 1 + V : ne,
|
|
3057
|
+
y: j === 2 ? -V : j === 3 ? 1 + V : ne,
|
|
3058
|
+
radius: 0.6 + Math.random() * 0.5,
|
|
3059
|
+
phase: Math.random() * Math.PI * 2
|
|
3063
3060
|
};
|
|
3064
|
-
},
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
};
|
|
3092
|
-
L[G] = Ze(y, p), O[G] = Ze(I, _);
|
|
3061
|
+
}), w = {
|
|
3062
|
+
x: 0,
|
|
3063
|
+
y: 0,
|
|
3064
|
+
down: !1,
|
|
3065
|
+
id: -1,
|
|
3066
|
+
depositedAt: 0,
|
|
3067
|
+
sourceX: 0,
|
|
3068
|
+
sourceY: 0
|
|
3069
|
+
}, p = (E, G) => {
|
|
3070
|
+
if (E < 0 || G < 0 || E > S || G > i) return;
|
|
3071
|
+
z.push({ x: E, y: G, born: v }), z.length > Wn && z.shift();
|
|
3072
|
+
const j = X.find(
|
|
3073
|
+
(V) => Math.hypot(V.x - E, V.y - G) < je * 0.65
|
|
3074
|
+
);
|
|
3075
|
+
if (j) {
|
|
3076
|
+
j.phaseFrom = (tt(j, v) % (Math.PI * 2) + Math.PI * 2) % (Math.PI * 2), j.phase = j.phaseFrom + Math.PI / 2, j.phaseAt = v, j.strength = Math.min(1.8, j.strength + 0.18);
|
|
3077
|
+
return;
|
|
3078
|
+
}
|
|
3079
|
+
if (X.length >= jn) {
|
|
3080
|
+
let V = 0, te = 1, de = 1 / 0;
|
|
3081
|
+
for (let se = 0; se < X.length; se++)
|
|
3082
|
+
for (let ie = se + 1; ie < X.length; ie++) {
|
|
3083
|
+
const b = Math.hypot(
|
|
3084
|
+
X[se].x - X[ie].x,
|
|
3085
|
+
X[se].y - X[ie].y
|
|
3086
|
+
);
|
|
3087
|
+
b < de && (de = b, V = se, te = ie);
|
|
3093
3088
|
}
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
p[m] /= k, _[m] /= k;
|
|
3102
|
-
}
|
|
3089
|
+
const P = X[V], K = X[te], pe = P.strength + K.strength;
|
|
3090
|
+
P.x = (P.x * P.strength + K.x * K.strength) / pe, P.y = (P.y * P.strength + K.y * K.strength) / pe;
|
|
3091
|
+
const ue = tt(P, v), ye = tt(K, v);
|
|
3092
|
+
P.phase = Math.atan2(
|
|
3093
|
+
Math.sin(ue) * P.strength + Math.sin(ye) * K.strength,
|
|
3094
|
+
Math.cos(ue) * P.strength + Math.cos(ye) * K.strength
|
|
3095
|
+
), P.phaseFrom = P.phase, P.phaseAt = v, P.radius = Math.min(240, Math.max(P.radius, K.radius) + de * 0.25), P.strength = Math.min(2.4, pe), P.born = Math.min(P.born, K.born), X.splice(te, 1);
|
|
3103
3096
|
}
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
0,
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
const
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3097
|
+
const ne = Math.random() * Math.PI * 2;
|
|
3098
|
+
X.push({
|
|
3099
|
+
x: E,
|
|
3100
|
+
y: G,
|
|
3101
|
+
radius: 150,
|
|
3102
|
+
phase: ne,
|
|
3103
|
+
phaseFrom: ne,
|
|
3104
|
+
phaseAt: v,
|
|
3105
|
+
currentPhase: ne,
|
|
3106
|
+
strength: 1,
|
|
3107
|
+
born: v
|
|
3108
|
+
});
|
|
3109
|
+
}, k = (E, G, j) => {
|
|
3110
|
+
let ne = 0, V = 0, te = 0;
|
|
3111
|
+
const de = Math.max(S, i, 1);
|
|
3112
|
+
for (const O of q) {
|
|
3113
|
+
const le = E - O.x * S, _e = G - O.y * i, be = Math.hypot(le, _e), Re = be / (de * 0.16) - j * 0.45 + O.phase + re, $e = Math.exp(-be / (de * O.radius)), Ae = Math.sin(Re) * $e;
|
|
3114
|
+
ne += le / Math.max(1, be) * Ae * 75, V += _e / Math.max(1, be) * Ae * 75, te += Ae * 0.45;
|
|
3115
|
+
}
|
|
3116
|
+
let P = 0, K = 0, pe = 0, ue = 0;
|
|
3117
|
+
for (const O of X) {
|
|
3118
|
+
const le = E - O.x, _e = G - O.y, be = Math.hypot(le, _e), Re = Math.max(0, v - O.born), $e = Math.max(
|
|
3119
|
+
0,
|
|
3120
|
+
Math.min(1, (Re * 220 - be + 32) / 64)
|
|
3121
|
+
), Ae = f.matches ? 1 : $e * $e * (3 - 2 * $e), Ze = Math.exp(-(be * be) / (2 * O.radius ** 2)) * O.strength * Ae, st = Math.sin(be / 38 - j * 0.6 + O.currentPhase);
|
|
3122
|
+
P += le / Math.max(24, be) * st * Ze * 85, K += _e / Math.max(24, be) * st * Ze * 85, pe += (0.4 + st * 0.6) * Ze, ue += Ze;
|
|
3123
|
+
}
|
|
3124
|
+
const ye = Math.max(1, ue);
|
|
3125
|
+
ne += P / ye, V += K / ye, te += pe / ye;
|
|
3126
|
+
let se = 0, ie = 0, b = 0;
|
|
3127
|
+
for (const O of z) {
|
|
3128
|
+
const le = E - O.x, _e = G - O.y, be = Math.hypot(le, _e), Re = v - O.born, $e = be - Re * 220;
|
|
3129
|
+
if (Math.abs($e) > 144) continue;
|
|
3130
|
+
const Ae = Math.sin($e / 24) * Math.exp(-($e * $e) / (2 * 48 ** 2)) * Math.exp(-Re / 1.5);
|
|
3131
|
+
se += le / Math.max(24, be) * Ae, ie += _e / Math.max(24, be) * Ae, b += Ae;
|
|
3132
|
+
}
|
|
3133
|
+
ne += Math.tanh(se) * 70, V += Math.tanh(ie) * 70, te += Math.tanh(b) * 0.45;
|
|
3134
|
+
const B = (E + ne) / 200, ee = (G + V) / 200, me = wt(B + 19, ee + 43);
|
|
3135
|
+
return 0.5 + Math.sin(te * 2.4 + (me - 0.5) * 3.5) * 0.36 + (wt(B * 2, ee * 2) - 0.5) * 0.12;
|
|
3136
|
+
}, N = (E) => {
|
|
3137
|
+
y = 0;
|
|
3138
|
+
const G = T ? Math.min(64, E - T) : 16;
|
|
3139
|
+
T = E, f.matches || (v += G / 1e3, H += G / 1e3 * R.current, w.down && v - w.depositedAt >= 0.25 && (p(w.x, w.y), w.depositedAt = v)), z = f.matches ? [] : z.filter((P) => v - P.born < Vn);
|
|
3140
|
+
for (const P of X)
|
|
3141
|
+
P.currentPhase = tt(P, v);
|
|
3142
|
+
re += (d.current * 7.13 - re) * (1 - Math.exp(-G / 500));
|
|
3143
|
+
const j = M.current * Mt;
|
|
3144
|
+
j !== Z && (ce = D, Z = j, Q = 0), Q = Math.min(ot, Q + G);
|
|
3145
|
+
const ne = f.matches ? 1 : Q / ot;
|
|
3146
|
+
D = ce + (Z - ce) * ne * ne * (3 - 2 * ne);
|
|
3147
|
+
const V = $.current, te = Math.max(
|
|
3148
|
+
12,
|
|
3149
|
+
Math.sqrt(S * i / Yn)
|
|
3150
|
+
), de = V < te;
|
|
3151
|
+
if (de) {
|
|
3152
|
+
const P = Math.ceil(S / te) + 1, K = Math.ceil(i / te) + 1;
|
|
3153
|
+
(ae !== P || ve !== K) && (ae = P, ve = K, ge = new Float32Array(P * K));
|
|
3154
|
+
for (let pe = 0; pe < K; pe++)
|
|
3155
|
+
for (let ue = 0; ue < P; ue++)
|
|
3156
|
+
ge[pe * P + ue] = k(
|
|
3157
|
+
ue * te,
|
|
3158
|
+
pe * te,
|
|
3159
|
+
H + D
|
|
3160
|
+
);
|
|
3161
|
+
}
|
|
3162
|
+
for (let P = 0; P < i; P += V)
|
|
3163
|
+
for (let K = 0; K < S; K += V) {
|
|
3164
|
+
const pe = K + Math.min(V, S - K) / 2, ue = P + Math.min(V, i - P) / 2;
|
|
3165
|
+
let ye;
|
|
3166
|
+
if (de) {
|
|
3167
|
+
const se = pe / te, ie = ue / te, b = Math.min(ae - 2, Math.floor(se)), B = Math.min(ve - 2, Math.floor(ie)), ee = se - b, me = ie - B, O = B * ae + b;
|
|
3168
|
+
ye = (ge[O] * (1 - ee) + ge[O + 1] * ee) * (1 - me) + (ge[O + ae] * (1 - ee) + ge[O + ae + 1] * ee) * me;
|
|
3169
|
+
} else ye = k(pe, ue, H + D);
|
|
3170
|
+
_.fillStyle = Gn[Math.max(0, Math.min(1023, Math.round(ye * 1.08 * 1023)))], _.fillRect(K, P, V + 0.6, V + 0.6);
|
|
3171
|
+
}
|
|
3172
|
+
C && !document.hidden && !f.matches && (y = requestAnimationFrame(N));
|
|
3173
|
+
}, F = () => {
|
|
3174
|
+
cancelAnimationFrame(y), T = 0, C && !document.hidden && N(performance.now());
|
|
3137
3175
|
};
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3176
|
+
L.current = F;
|
|
3177
|
+
const A = () => {
|
|
3178
|
+
const E = g.getBoundingClientRect();
|
|
3179
|
+
if (S > 0 && i > 0)
|
|
3180
|
+
for (const j of [...X, ...z])
|
|
3181
|
+
j.x *= E.width / S, j.y *= E.height / i;
|
|
3182
|
+
S = E.width, i = E.height;
|
|
3183
|
+
const G = Math.min(devicePixelRatio || 1, 2);
|
|
3184
|
+
g.width = Math.round(S * G), g.height = Math.round(i * G), _.setTransform(G, 0, 0, G, 0, 0), F();
|
|
3185
|
+
}, U = (E) => E.target instanceof Element && !!E.target.closest(
|
|
3144
3186
|
'a,button,input,textarea,select,[contenteditable],[role="button"],[role="switch"],[role="combobox"],[role="slider"]'
|
|
3145
|
-
),
|
|
3146
|
-
if (f.matches || !
|
|
3187
|
+
), I = (E) => {
|
|
3188
|
+
if (f.matches || !w.down || E.pointerId !== w.id)
|
|
3147
3189
|
return;
|
|
3148
|
-
const
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
)
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
z.y + G * me / se,
|
|
3158
|
-
k * fe * le / se,
|
|
3159
|
-
G * fe * le / se
|
|
3160
|
-
);
|
|
3161
|
-
}
|
|
3162
|
-
Object.assign(z, { x: u, y: m, at: V, active: !0 }), w || pe();
|
|
3163
|
-
}, Ce = (R) => {
|
|
3164
|
-
if (f.matches || Fe(R) || !R.isPrimary || R.button !== 0)
|
|
3190
|
+
const G = g.getBoundingClientRect(), j = E.clientX - G.left, ne = E.clientY - G.top, V = j - w.sourceX, te = ne - w.sourceY, de = Math.hypot(V, te), P = Math.min(64, Math.floor(de / je));
|
|
3191
|
+
for (let K = 1; K <= P; K++)
|
|
3192
|
+
p(
|
|
3193
|
+
w.sourceX + V / de * je * K,
|
|
3194
|
+
w.sourceY + te / de * je * K
|
|
3195
|
+
);
|
|
3196
|
+
P && (w.sourceX += V / de * je * P, w.sourceY += te / de * je * P), w.x = j, w.y = ne, y || F();
|
|
3197
|
+
}, J = (E) => {
|
|
3198
|
+
if (f.matches || U(E) || !E.isPrimary || E.button !== 0)
|
|
3165
3199
|
return;
|
|
3166
|
-
const
|
|
3167
|
-
Object.assign(
|
|
3168
|
-
x:
|
|
3169
|
-
y:
|
|
3170
|
-
|
|
3171
|
-
|
|
3200
|
+
const G = g.getBoundingClientRect(), j = E.clientX - G.left, ne = E.clientY - G.top;
|
|
3201
|
+
Object.assign(w, {
|
|
3202
|
+
x: j,
|
|
3203
|
+
y: ne,
|
|
3204
|
+
sourceX: j,
|
|
3205
|
+
sourceY: ne,
|
|
3206
|
+
id: E.pointerId,
|
|
3172
3207
|
down: !0,
|
|
3173
|
-
|
|
3174
|
-
}),
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
},
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
R.pointerId === z.id && de();
|
|
3185
|
-
}, Ae = () => {
|
|
3186
|
-
z.down || (z.active = !1);
|
|
3187
|
-
}, Le = () => {
|
|
3188
|
-
de(), f.matches && P(), pe();
|
|
3189
|
-
}, qe = new ResizeObserver(xe), Se = new IntersectionObserver((R) => {
|
|
3190
|
-
F = R.some((D) => D.isIntersecting), pe();
|
|
3208
|
+
depositedAt: v
|
|
3209
|
+
}), m.setPointerCapture?.(E.pointerId), p(j, ne), y || F();
|
|
3210
|
+
}, Y = () => {
|
|
3211
|
+
const E = w.id;
|
|
3212
|
+
w.down = !1, w.id = -1, E >= 0 && m.hasPointerCapture?.(E) && m.releasePointerCapture(E);
|
|
3213
|
+
}, he = (E) => {
|
|
3214
|
+
E.pointerId === w.id && Y();
|
|
3215
|
+
}, we = () => {
|
|
3216
|
+
Y(), F();
|
|
3217
|
+
}, ke = new ResizeObserver(A), fe = new IntersectionObserver((E) => {
|
|
3218
|
+
C = E.some((G) => G.isIntersecting), F();
|
|
3191
3219
|
});
|
|
3192
|
-
return
|
|
3193
|
-
|
|
3220
|
+
return ke.observe(g), fe.observe(g), f.addEventListener("change", we), m.addEventListener("pointermove", I), m.addEventListener("pointerdown", J), m.addEventListener("pointercancel", Y), m.addEventListener("lostpointercapture", Y), window.addEventListener("pointerup", he), window.addEventListener("blur", Y), document.addEventListener("visibilitychange", F), A(), () => {
|
|
3221
|
+
L.current = null, Y(), cancelAnimationFrame(y), ke.disconnect(), fe.disconnect(), f.removeEventListener("change", we), m.removeEventListener("pointermove", I), m.removeEventListener("pointerdown", J), m.removeEventListener("pointercancel", Y), m.removeEventListener("lostpointercapture", Y), window.removeEventListener("pointerup", he), window.removeEventListener("blur", Y), document.removeEventListener("visibilitychange", F);
|
|
3194
3222
|
};
|
|
3195
|
-
}, []), /* @__PURE__ */ e("canvas", { ref:
|
|
3223
|
+
}, []), /* @__PURE__ */ e("canvas", { ref: s, className: Xn.canvas, "aria-hidden": "true" });
|
|
3196
3224
|
}
|
|
3197
|
-
const
|
|
3225
|
+
const Kn = [
|
|
3198
3226
|
"A request begins in a local client. The router reads the requested model and finds an available source. The conversation stays in the tool where it started.",
|
|
3199
3227
|
"Different providers speak different protocols. A common interface carries messages across those boundaries while preserving the shape of each tool call.",
|
|
3200
3228
|
"Context follows the request. Earlier messages form the working memory of a conversation. A continuation returns to the source that owns its state.",
|
|
@@ -3223,30 +3251,30 @@ const ar = [
|
|
|
3223
3251
|
"The final token is only one part of completion. A terminal event tells the client that no further output is expected. Structured tools depend on that contract.",
|
|
3224
3252
|
"A shared connection reduces repetitive setup. Each local tool can use the same service while preserving its own interface, workspace, and interaction model.",
|
|
3225
3253
|
"Transparent provenance is a separate capability. Signed and verifiable model requests remain a future feature until a public verification path is available."
|
|
3226
|
-
],
|
|
3254
|
+
], kt = (t) => {
|
|
3227
3255
|
const n = Math.max(0, Math.min(1, t));
|
|
3228
3256
|
return n * n * (3 - 2 * n);
|
|
3229
3257
|
};
|
|
3230
|
-
function
|
|
3258
|
+
function Vr({
|
|
3231
3259
|
onComplete: t,
|
|
3232
3260
|
passages: n
|
|
3233
3261
|
}) {
|
|
3234
|
-
const r = n ??
|
|
3235
|
-
return
|
|
3236
|
-
const
|
|
3237
|
-
if (!
|
|
3262
|
+
const r = n ?? Kn, o = Pe(null);
|
|
3263
|
+
return Be(() => {
|
|
3264
|
+
const c = o.current, s = c?.getContext("2d"), d = matchMedia("(prefers-reduced-motion: reduce)");
|
|
3265
|
+
if (!c || !s || d.matches) {
|
|
3238
3266
|
t();
|
|
3239
3267
|
return;
|
|
3240
3268
|
}
|
|
3241
|
-
let h = 0,
|
|
3242
|
-
const
|
|
3243
|
-
h = innerWidth,
|
|
3244
|
-
const
|
|
3245
|
-
|
|
3269
|
+
let h = 0, u = 0, $ = 0;
|
|
3270
|
+
const R = () => {
|
|
3271
|
+
h = innerWidth, u = innerHeight;
|
|
3272
|
+
const i = Math.min(devicePixelRatio || 1, 2);
|
|
3273
|
+
c.width = h * i, c.height = u * i, s.setTransform(i, 0, 0, i, 0, 0);
|
|
3246
3274
|
};
|
|
3247
|
-
|
|
3248
|
-
const
|
|
3249
|
-
text:
|
|
3275
|
+
R();
|
|
3276
|
+
const M = r.map((i, y) => ({
|
|
3277
|
+
text: i,
|
|
3250
3278
|
order: Math.random(),
|
|
3251
3279
|
x: Math.random() * 0.88 - 0.03,
|
|
3252
3280
|
y: Math.random() * 0.9 - 0.03,
|
|
@@ -3255,32 +3283,32 @@ function ti({
|
|
|
3255
3283
|
size: 9 + Math.random() * 13,
|
|
3256
3284
|
dark: Math.random() > 0.35,
|
|
3257
3285
|
phase: Math.random() * 1e3,
|
|
3258
|
-
index:
|
|
3259
|
-
})).sort((
|
|
3260
|
-
const
|
|
3261
|
-
|
|
3262
|
-
for (const
|
|
3263
|
-
const H =
|
|
3264
|
-
|
|
3265
|
-
let
|
|
3266
|
-
const
|
|
3267
|
-
for (let
|
|
3268
|
-
const
|
|
3269
|
-
if (
|
|
3270
|
-
const
|
|
3271
|
-
|
|
3272
|
-
const p = Math.round((
|
|
3273
|
-
if (
|
|
3274
|
-
|
|
3286
|
+
index: y
|
|
3287
|
+
})).sort((i, y) => i.order - y.order), L = 2500, g = 4e3, _ = performance.now(), m = (i) => {
|
|
3288
|
+
const y = (i - _) * g / L, C = kt((y - 2900) / 850), T = Math.floor(y / 340);
|
|
3289
|
+
s.globalAlpha = 1, s.fillStyle = y < 650 || y >= 1600 ? "#101216" : "#fafafa", s.fillRect(0, 0, h, u);
|
|
3290
|
+
for (const v of M) {
|
|
3291
|
+
const H = v.x * h, re = v.y * u, D = v.width * h, ce = v.height * u, Z = v.size * (y < 650 ? 1.6 : y < 1600 ? 1.15 : 1), Q = Z * 1.04;
|
|
3292
|
+
s.save(), s.globalAlpha = 1 - C, s.fillStyle = v.dark ? "#101216" : "#f4f5f7", s.fillRect(H, re, D, ce), s.beginPath(), s.rect(H, re, D, ce), s.clip(), s.font = Z + "px sans-serif", s.textBaseline = "top";
|
|
3293
|
+
let X = H, z = re - (y * 0.012 + v.phase) % Q;
|
|
3294
|
+
const ae = v.text.split(" ");
|
|
3295
|
+
for (let ve = 0; ve < ae.length; ve++) {
|
|
3296
|
+
const ge = ae[ve], q = s.measureText(ge + " ").width;
|
|
3297
|
+
if (X + q > H + D && (X = H, z += Q), z > re + ce) break;
|
|
3298
|
+
const w = v.index * 53 + ve * 17;
|
|
3299
|
+
s.save();
|
|
3300
|
+
const p = Math.round((z - 7) / 14), k = 7 + Math.round((X - 7) / 14) * 14 + p % 2 * 7, N = 7 + p * 14;
|
|
3301
|
+
if (s.translate(X + (k - X) * C, z + (N - z) * C), s.scale(1 - C * 0.94, 1 - C * 0.94), y < 650 && (w + T) % 4 > 0) {
|
|
3302
|
+
s.restore(), X += q;
|
|
3275
3303
|
continue;
|
|
3276
3304
|
}
|
|
3277
|
-
(
|
|
3305
|
+
(w + T) % 8 < 3 ? (s.fillStyle = ["#245bff", "#aab1bd", "#e8edf7"][(w + T) % 3], s.fillRect(0, 0, s.measureText(ge).width, Q), s.fillStyle = (w + T) % 3 === 0 ? "#fff" : "#101216") : s.fillStyle = v.dark ? "#f5f8ff" : "#101216", s.fillText(y < 650 ? ge.toUpperCase() : ge, 0, 0), s.restore(), X += q;
|
|
3278
3306
|
}
|
|
3279
|
-
|
|
3307
|
+
s.restore();
|
|
3280
3308
|
}
|
|
3281
|
-
if (
|
|
3282
|
-
const
|
|
3283
|
-
for (const [
|
|
3309
|
+
if (C > 0) {
|
|
3310
|
+
const v = document.querySelector(".rp-hero"), H = v?.getBoundingClientRect().height || u, re = s.createLinearGradient(0, 0, 0, H);
|
|
3311
|
+
for (const [D, ce] of [
|
|
3284
3312
|
[0, "#0b205e"],
|
|
3285
3313
|
[0.35, "#214eaf"],
|
|
3286
3314
|
[0.55, "#3564cc"],
|
|
@@ -3288,24 +3316,24 @@ function ti({
|
|
|
3288
3316
|
[0.93, "#edf4ff"],
|
|
3289
3317
|
[1, "#fff"]
|
|
3290
3318
|
])
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
for (let
|
|
3294
|
-
for (let
|
|
3295
|
-
const Q = Math.pow(Math.max(0, 1 -
|
|
3296
|
-
-Math.pow((
|
|
3319
|
+
re.addColorStop(D, ce);
|
|
3320
|
+
s.globalAlpha = C, s.fillStyle = re, s.fillRect(0, 0, h, u);
|
|
3321
|
+
for (let D = 7, ce = 0; D < u; D += 14, ce++)
|
|
3322
|
+
for (let Z = 7 + ce % 2 * 7; Z < h; Z += 14) {
|
|
3323
|
+
const Q = Math.pow(Math.max(0, 1 - D / H), 0.6), X = 1 - Math.exp(
|
|
3324
|
+
-Math.pow((Z - h / 2) / (h * 0.28), 2) - Math.pow((D - H * 0.38) / (H * 0.24), 2)
|
|
3297
3325
|
) * 0.55;
|
|
3298
|
-
|
|
3326
|
+
s.globalAlpha = C * 0.54 * Q * X, s.strokeStyle = "#f5f8ff", s.lineWidth = 1.2, s.beginPath(), s.moveTo(Z - 3.5, D), s.lineTo(Z + 3.5, D), s.moveTo(Z, D - 3.5), s.lineTo(Z, D + 3.5), s.stroke();
|
|
3299
3327
|
}
|
|
3300
3328
|
}
|
|
3301
|
-
|
|
3329
|
+
s.globalAlpha = 1, c.style.opacity = String(1 - kt((y - 3750) / 250)), y < g ? $ = requestAnimationFrame(m) : t();
|
|
3302
3330
|
};
|
|
3303
|
-
|
|
3304
|
-
const f = setTimeout(t,
|
|
3331
|
+
$ = requestAnimationFrame(m);
|
|
3332
|
+
const f = setTimeout(t, L + 300), S = () => {
|
|
3305
3333
|
d.matches && t();
|
|
3306
3334
|
};
|
|
3307
|
-
return addEventListener("resize",
|
|
3308
|
-
cancelAnimationFrame(
|
|
3335
|
+
return addEventListener("resize", R), d.addEventListener("change", S), () => {
|
|
3336
|
+
cancelAnimationFrame($), clearTimeout(f), removeEventListener("resize", R), d.removeEventListener("change", S);
|
|
3309
3337
|
};
|
|
3310
3338
|
}, [t, r]), /* @__PURE__ */ e(
|
|
3311
3339
|
"canvas",
|
|
@@ -3323,11 +3351,11 @@ function ti({
|
|
|
3323
3351
|
}
|
|
3324
3352
|
);
|
|
3325
3353
|
}
|
|
3326
|
-
const
|
|
3354
|
+
const Jn = {
|
|
3327
3355
|
"rp-effect-card": "rp_EffectCard-module_rp-effect-card_hcD4035l",
|
|
3328
3356
|
"rp-effect-content": "rp_EffectCard-module_rp-effect-content_4Oy-i-OP"
|
|
3329
|
-
},
|
|
3330
|
-
function
|
|
3357
|
+
}, lt = { ...rt, ...Jn };
|
|
3358
|
+
function Zn({
|
|
3331
3359
|
className: t = "",
|
|
3332
3360
|
children: n,
|
|
3333
3361
|
contentHTML: r,
|
|
@@ -3336,14 +3364,14 @@ function rr({
|
|
|
3336
3364
|
return /* @__PURE__ */ a(
|
|
3337
3365
|
"div",
|
|
3338
3366
|
{
|
|
3339
|
-
className:
|
|
3367
|
+
className: lt["rp-card"] + " " + lt["rp-effect-card"] + " " + t,
|
|
3340
3368
|
...o,
|
|
3341
3369
|
children: [
|
|
3342
|
-
/* @__PURE__ */ e(
|
|
3370
|
+
/* @__PURE__ */ e(Un, {}),
|
|
3343
3371
|
r === void 0 ? n : /* @__PURE__ */ e(
|
|
3344
3372
|
"div",
|
|
3345
3373
|
{
|
|
3346
|
-
className:
|
|
3374
|
+
className: lt["rp-effect-content"],
|
|
3347
3375
|
dangerouslySetInnerHTML: { __html: r }
|
|
3348
3376
|
}
|
|
3349
3377
|
)
|
|
@@ -3351,39 +3379,39 @@ function rr({
|
|
|
3351
3379
|
}
|
|
3352
3380
|
);
|
|
3353
3381
|
}
|
|
3354
|
-
function
|
|
3382
|
+
function Kr(t = Math.random() * 4294967295) {
|
|
3355
3383
|
let n = t >>> 0;
|
|
3356
3384
|
const r = () => {
|
|
3357
3385
|
n += 1831565813;
|
|
3358
|
-
let
|
|
3359
|
-
return
|
|
3360
|
-
}, o = (
|
|
3386
|
+
let s = Math.imul(n ^ n >>> 15, n | 1);
|
|
3387
|
+
return s ^= s + Math.imul(s ^ s >>> 7, s | 61), ((s ^ s >>> 14) >>> 0) / 4294967296;
|
|
3388
|
+
}, o = (s, d) => s + r() * (d - s), c = Math.floor(r() * 3);
|
|
3361
3389
|
return {
|
|
3362
3390
|
seed: t,
|
|
3363
|
-
family:
|
|
3391
|
+
family: c,
|
|
3364
3392
|
arms: Math.floor(o(3, 8)),
|
|
3365
3393
|
rotation: o(0, Math.PI * 2),
|
|
3366
|
-
curl:
|
|
3394
|
+
curl: c === 0 ? o(9e-3, 0.018) : o(1e-3, 6e-3),
|
|
3367
3395
|
direction: r() < 0.5 ? -1 : 1,
|
|
3368
3396
|
speed: o(500, 640),
|
|
3369
3397
|
width: o(36, 52),
|
|
3370
|
-
lobes:
|
|
3398
|
+
lobes: c === 1 ? o(0.18, 0.28) : o(0.06, 0.14),
|
|
3371
3399
|
decay: o(0.8, 1.1),
|
|
3372
3400
|
strength: o(26, 36),
|
|
3373
3401
|
spacing: o(210, 270),
|
|
3374
3402
|
phase: o(0, Math.PI * 2)
|
|
3375
3403
|
};
|
|
3376
3404
|
}
|
|
3377
|
-
function
|
|
3405
|
+
function Jr(t, n, r, o) {
|
|
3378
3406
|
if (o < 0) return { x: 0, y: 0, energy: 0 };
|
|
3379
|
-
const
|
|
3407
|
+
const c = Math.hypot(n, r), s = Math.atan2(r, n), d = s * t.arms + t.rotation, h = d - c * t.curl * t.direction, u = Math.exp(-o * t.decay) * Math.min(1, o / 0.08), $ = o * t.speed * (1 + t.lobes * Math.sin(d) + 0.035 * Math.sin(s * (t.arms + 3) + t.phase)), R = (c - $) / t.width, M = t.family === 2 ? 0.25 + 0.75 * Math.pow(0.5 + 0.5 * Math.sin(d + t.phase), 2) : 1, L = Math.exp(-R * R) * u * M, g = Math.pow(Math.max(0, Math.cos(h)), 8), _ = Math.exp(-Math.pow((c - $ * 0.6) / 95, 2)) * g * u, m = Math.exp(-c * c / 14e3) * Math.max(0, 1 - o / 0.6), f = L * t.strength + _ * 22 + m * 8, S = _ * 18 * Math.sin(h) * t.direction;
|
|
3380
3408
|
return {
|
|
3381
|
-
x: (n * f - r *
|
|
3382
|
-
y: (r * f + n *
|
|
3383
|
-
energy:
|
|
3409
|
+
x: (n * f - r * S) / Math.max(1, c),
|
|
3410
|
+
y: (r * f + n * S) / Math.max(1, c),
|
|
3411
|
+
energy: L * 0.55 + _ * 0.8 + m * 0.3
|
|
3384
3412
|
};
|
|
3385
3413
|
}
|
|
3386
|
-
const
|
|
3414
|
+
const Oe = {
|
|
3387
3415
|
"rp-alert-dialog__trigger": "rp_AlertDialog-module_rp-alert-dialog__trigger_zDrVBZPv",
|
|
3388
3416
|
"rp-alert-dialog__overlay": "rp_AlertDialog-module_rp-alert-dialog__overlay_aHs-GNOy",
|
|
3389
3417
|
"rp-alert-dialog__content": "rp_AlertDialog-module_rp-alert-dialog__content_2yGt8Pjg",
|
|
@@ -3392,165 +3420,165 @@ const je = {
|
|
|
3392
3420
|
"rp-alert-dialog__action": "rp_AlertDialog-module_rp-alert-dialog__action_1Axjzt0X",
|
|
3393
3421
|
"rp-alert-dialog__cancel": "rp_AlertDialog-module_rp-alert-dialog__cancel_BkaoYoMJ",
|
|
3394
3422
|
"rp-alert-dialog__footer": "rp_AlertDialog-module_rp-alert-dialog__footer_7cTm367U"
|
|
3395
|
-
},
|
|
3396
|
-
|
|
3423
|
+
}, xt = (t) => /* @__PURE__ */ e(Me.Root, { ...t }), Bt = De(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3424
|
+
Me.Trigger,
|
|
3397
3425
|
{
|
|
3398
3426
|
ref: r,
|
|
3399
|
-
className:
|
|
3400
|
-
!n.asChild &&
|
|
3427
|
+
className: oe(
|
|
3428
|
+
!n.asChild && Oe["rp-alert-dialog__trigger"],
|
|
3401
3429
|
t
|
|
3402
3430
|
),
|
|
3403
3431
|
...n
|
|
3404
3432
|
}
|
|
3405
3433
|
));
|
|
3406
|
-
|
|
3407
|
-
const
|
|
3408
|
-
|
|
3434
|
+
Bt.displayName = Me.Trigger.displayName;
|
|
3435
|
+
const Qn = Me.Portal, Rt = De(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3436
|
+
Me.Overlay,
|
|
3409
3437
|
{
|
|
3410
3438
|
ref: r,
|
|
3411
|
-
className:
|
|
3439
|
+
className: oe(Oe["rp-alert-dialog__overlay"], t),
|
|
3412
3440
|
...n
|
|
3413
3441
|
}
|
|
3414
3442
|
));
|
|
3415
|
-
|
|
3416
|
-
const
|
|
3417
|
-
|
|
3443
|
+
Rt.displayName = Me.Overlay.displayName;
|
|
3444
|
+
const Tt = De(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3445
|
+
Me.Content,
|
|
3418
3446
|
{
|
|
3419
3447
|
ref: r,
|
|
3420
|
-
className:
|
|
3448
|
+
className: oe(Oe["rp-alert-dialog__content"], t),
|
|
3421
3449
|
...n
|
|
3422
3450
|
}
|
|
3423
3451
|
));
|
|
3424
|
-
|
|
3425
|
-
const
|
|
3426
|
-
|
|
3452
|
+
Tt.displayName = Me.Content.displayName;
|
|
3453
|
+
const Pt = De(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3454
|
+
Me.Title,
|
|
3427
3455
|
{
|
|
3428
3456
|
ref: r,
|
|
3429
|
-
className:
|
|
3457
|
+
className: oe(Oe["rp-alert-dialog__title"], t),
|
|
3430
3458
|
...n
|
|
3431
3459
|
}
|
|
3432
3460
|
));
|
|
3433
|
-
|
|
3434
|
-
const
|
|
3435
|
-
|
|
3461
|
+
Pt.displayName = Me.Title.displayName;
|
|
3462
|
+
const Ft = De(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3463
|
+
Me.Description,
|
|
3436
3464
|
{
|
|
3437
3465
|
ref: r,
|
|
3438
|
-
className:
|
|
3466
|
+
className: oe(Oe["rp-alert-dialog__description"], t),
|
|
3439
3467
|
...n
|
|
3440
3468
|
}
|
|
3441
3469
|
));
|
|
3442
|
-
|
|
3443
|
-
const
|
|
3444
|
-
|
|
3470
|
+
Ft.displayName = Me.Description.displayName;
|
|
3471
|
+
const It = De(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3472
|
+
Me.Action,
|
|
3445
3473
|
{
|
|
3446
3474
|
ref: r,
|
|
3447
|
-
className:
|
|
3448
|
-
!n.asChild &&
|
|
3475
|
+
className: oe(
|
|
3476
|
+
!n.asChild && Oe["rp-alert-dialog__action"],
|
|
3449
3477
|
t
|
|
3450
3478
|
),
|
|
3451
3479
|
...n
|
|
3452
3480
|
}
|
|
3453
3481
|
));
|
|
3454
|
-
|
|
3455
|
-
const
|
|
3456
|
-
|
|
3482
|
+
It.displayName = Me.Action.displayName;
|
|
3483
|
+
const qt = De(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3484
|
+
Me.Cancel,
|
|
3457
3485
|
{
|
|
3458
3486
|
ref: r,
|
|
3459
|
-
className:
|
|
3460
|
-
!n.asChild &&
|
|
3487
|
+
className: oe(
|
|
3488
|
+
!n.asChild && Oe["rp-alert-dialog__cancel"],
|
|
3461
3489
|
t
|
|
3462
3490
|
),
|
|
3463
3491
|
...n
|
|
3464
3492
|
}
|
|
3465
3493
|
));
|
|
3466
|
-
|
|
3467
|
-
const
|
|
3494
|
+
qt.displayName = Me.Cancel.displayName;
|
|
3495
|
+
const er = De(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3468
3496
|
"div",
|
|
3469
3497
|
{
|
|
3470
3498
|
ref: r,
|
|
3471
|
-
className:
|
|
3499
|
+
className: oe(Oe["rp-alert-dialog__footer"], t),
|
|
3472
3500
|
...n
|
|
3473
3501
|
}
|
|
3474
|
-
)),
|
|
3475
|
-
Root:
|
|
3476
|
-
Trigger:
|
|
3477
|
-
Portal:
|
|
3478
|
-
Overlay:
|
|
3479
|
-
Content:
|
|
3480
|
-
Title:
|
|
3481
|
-
Description:
|
|
3482
|
-
Action:
|
|
3483
|
-
Cancel:
|
|
3484
|
-
Footer:
|
|
3485
|
-
}),
|
|
3486
|
-
card:
|
|
3487
|
-
header:
|
|
3488
|
-
title:
|
|
3489
|
-
description:
|
|
3490
|
-
providers:
|
|
3491
|
-
providerButton:
|
|
3492
|
-
providerIcon:
|
|
3493
|
-
keyForm:
|
|
3494
|
-
divider:
|
|
3495
|
-
keyInputRow:
|
|
3496
|
-
keyInput:
|
|
3497
|
-
footer:
|
|
3498
|
-
},
|
|
3502
|
+
)), Zr = Object.assign(xt, {
|
|
3503
|
+
Root: xt,
|
|
3504
|
+
Trigger: Bt,
|
|
3505
|
+
Portal: Qn,
|
|
3506
|
+
Overlay: Rt,
|
|
3507
|
+
Content: Tt,
|
|
3508
|
+
Title: Pt,
|
|
3509
|
+
Description: Ft,
|
|
3510
|
+
Action: It,
|
|
3511
|
+
Cancel: qt,
|
|
3512
|
+
Footer: er
|
|
3513
|
+
}), tr = "rp_AuthCard-module_card_3af6mRI1", ar = "rp_AuthCard-module_header_WB-cRppT", nr = "rp_AuthCard-module_title_b2lbN-iF", rr = "rp_AuthCard-module_description_zPbJJzv5", sr = "rp_AuthCard-module_providers_Lr2Os9jM", ir = "rp_AuthCard-module_providerButton_ibhdV26C", or = "rp_AuthCard-module_providerIcon_Uj09QL-n", lr = "rp_AuthCard-module_keyForm_0VG0GeLp", cr = "rp_AuthCard-module_divider_r-wmQ2Yq", dr = "rp_AuthCard-module_keyInputRow_n4XX9BYm", hr = "rp_AuthCard-module_keyInput_rzjbrJea", pr = "rp_AuthCard-module_footer_51y8yr80", Se = {
|
|
3514
|
+
card: tr,
|
|
3515
|
+
header: ar,
|
|
3516
|
+
title: nr,
|
|
3517
|
+
description: rr,
|
|
3518
|
+
providers: sr,
|
|
3519
|
+
providerButton: ir,
|
|
3520
|
+
providerIcon: or,
|
|
3521
|
+
keyForm: lr,
|
|
3522
|
+
divider: cr,
|
|
3523
|
+
keyInputRow: dr,
|
|
3524
|
+
keyInput: hr,
|
|
3525
|
+
footer: pr
|
|
3526
|
+
}, Qr = ({
|
|
3499
3527
|
title: t = "Sign in to RouterPlus",
|
|
3500
3528
|
description: n = "Access models and manage your account",
|
|
3501
3529
|
providers: r = [],
|
|
3502
3530
|
apiKeyLabel: o = "Or continue with API key",
|
|
3503
|
-
apiKeyPlaceholder:
|
|
3504
|
-
onApiKeySubmit:
|
|
3531
|
+
apiKeyPlaceholder: c = "Enter your rp_live_... API key",
|
|
3532
|
+
onApiKeySubmit: s,
|
|
3505
3533
|
footer: d,
|
|
3506
3534
|
className: h
|
|
3507
3535
|
}) => {
|
|
3508
|
-
const [
|
|
3509
|
-
|
|
3536
|
+
const [u, $] = Ie(""), R = (M) => {
|
|
3537
|
+
M.preventDefault(), u.trim() && s?.(u.trim());
|
|
3510
3538
|
};
|
|
3511
|
-
return /* @__PURE__ */ a(
|
|
3512
|
-
/* @__PURE__ */ a("div", { className:
|
|
3513
|
-
/* @__PURE__ */ e("h1", { className:
|
|
3514
|
-
n && /* @__PURE__ */ e("p", { className:
|
|
3539
|
+
return /* @__PURE__ */ a(Zn, { className: oe(Se.card, h), children: [
|
|
3540
|
+
/* @__PURE__ */ a("div", { className: Se.header, children: [
|
|
3541
|
+
/* @__PURE__ */ e("h1", { className: Se.title, children: t }),
|
|
3542
|
+
n && /* @__PURE__ */ e("p", { className: Se.description, children: n })
|
|
3515
3543
|
] }),
|
|
3516
|
-
r.length > 0 && /* @__PURE__ */ e("div", { className:
|
|
3517
|
-
|
|
3544
|
+
r.length > 0 && /* @__PURE__ */ e("div", { className: Se.providers, children: r.map((M) => /* @__PURE__ */ a(
|
|
3545
|
+
W,
|
|
3518
3546
|
{
|
|
3519
|
-
className:
|
|
3547
|
+
className: Se.providerButton,
|
|
3520
3548
|
variant: "outline",
|
|
3521
|
-
href:
|
|
3522
|
-
onClick:
|
|
3549
|
+
href: M.href,
|
|
3550
|
+
onClick: M.onClick,
|
|
3523
3551
|
children: [
|
|
3524
|
-
|
|
3525
|
-
/* @__PURE__ */ e("span", { children:
|
|
3552
|
+
M.icon && /* @__PURE__ */ e("span", { className: Se.providerIcon, "aria-hidden": "true", children: M.icon }),
|
|
3553
|
+
/* @__PURE__ */ e("span", { children: M.name })
|
|
3526
3554
|
]
|
|
3527
3555
|
},
|
|
3528
|
-
|
|
3556
|
+
M.id
|
|
3529
3557
|
)) }),
|
|
3530
|
-
|
|
3531
|
-
/* @__PURE__ */ e("div", { className:
|
|
3532
|
-
/* @__PURE__ */ a("div", { className:
|
|
3558
|
+
s && /* @__PURE__ */ a("form", { className: Se.keyForm, onSubmit: R, children: [
|
|
3559
|
+
/* @__PURE__ */ e("div", { className: Se.divider, children: /* @__PURE__ */ e("span", { children: o }) }),
|
|
3560
|
+
/* @__PURE__ */ a("div", { className: Se.keyInputRow, children: [
|
|
3533
3561
|
/* @__PURE__ */ e(
|
|
3534
|
-
|
|
3562
|
+
nt,
|
|
3535
3563
|
{
|
|
3536
3564
|
type: "password",
|
|
3537
|
-
placeholder:
|
|
3538
|
-
value:
|
|
3539
|
-
onChange: (
|
|
3540
|
-
className:
|
|
3565
|
+
placeholder: c,
|
|
3566
|
+
value: u,
|
|
3567
|
+
onChange: (M) => $(M.target.value),
|
|
3568
|
+
className: Se.keyInput
|
|
3541
3569
|
}
|
|
3542
3570
|
),
|
|
3543
|
-
/* @__PURE__ */ e(
|
|
3571
|
+
/* @__PURE__ */ e(W, { variant: "primary", type: "submit", disabled: !u.trim(), children: "Continue" })
|
|
3544
3572
|
] })
|
|
3545
3573
|
] }),
|
|
3546
|
-
d && /* @__PURE__ */ e("div", { className:
|
|
3574
|
+
d && /* @__PURE__ */ e("div", { className: Se.footer, children: d })
|
|
3547
3575
|
] });
|
|
3548
|
-
},
|
|
3549
|
-
footer:
|
|
3550
|
-
nav:
|
|
3551
|
-
link:
|
|
3552
|
-
copyright:
|
|
3553
|
-
},
|
|
3576
|
+
}, ur = "rp_Footer-module_footer_hxH87TcN", mr = "rp_Footer-module_nav_nBjfaMF3", gr = "rp_Footer-module_link_8Rd1iGUN", fr = "rp_Footer-module_copyright_MOU-OKDL", at = {
|
|
3577
|
+
footer: ur,
|
|
3578
|
+
nav: mr,
|
|
3579
|
+
link: gr,
|
|
3580
|
+
copyright: fr
|
|
3581
|
+
}, es = ({
|
|
3554
3582
|
logoHref: t = "/",
|
|
3555
3583
|
links: n = [
|
|
3556
3584
|
{ label: "Sign in", href: "/auth" },
|
|
@@ -3565,146 +3593,146 @@ const sr = Ye(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
|
3565
3593
|
],
|
|
3566
3594
|
copyright: r,
|
|
3567
3595
|
className: o
|
|
3568
|
-
}) => /* @__PURE__ */ a("footer", { className:
|
|
3569
|
-
/* @__PURE__ */ e(
|
|
3570
|
-
/* @__PURE__ */ e("nav", { className:
|
|
3596
|
+
}) => /* @__PURE__ */ a("footer", { className: oe(at.footer, o), children: [
|
|
3597
|
+
/* @__PURE__ */ e($t, { href: t, footer: !0 }),
|
|
3598
|
+
/* @__PURE__ */ e("nav", { className: at.nav, "aria-label": "Footer navigation", children: n.map((c) => /* @__PURE__ */ e(
|
|
3571
3599
|
"a",
|
|
3572
3600
|
{
|
|
3573
|
-
href:
|
|
3574
|
-
target:
|
|
3575
|
-
rel:
|
|
3576
|
-
className:
|
|
3577
|
-
children:
|
|
3601
|
+
href: c.href,
|
|
3602
|
+
target: c.target,
|
|
3603
|
+
rel: c.rel,
|
|
3604
|
+
className: at.link,
|
|
3605
|
+
children: c.label
|
|
3578
3606
|
},
|
|
3579
|
-
|
|
3607
|
+
c.label
|
|
3580
3608
|
)) }),
|
|
3581
|
-
r && /* @__PURE__ */ e("div", { className:
|
|
3582
|
-
] }),
|
|
3583
|
-
header:
|
|
3584
|
-
lead:
|
|
3585
|
-
logo:
|
|
3586
|
-
center:
|
|
3587
|
-
tools:
|
|
3588
|
-
},
|
|
3609
|
+
r && /* @__PURE__ */ e("div", { className: at.copyright, children: r })
|
|
3610
|
+
] }), br = "rp_Header-module_header_Turig8tF", vr = "rp_Header-module_lead_0DaE0r8e", yr = "rp_Header-module_logo_mtMWQXw6", _r = "rp_Header-module_center_q6eURj1J", Nr = "rp_Header-module_tools_H6sckGtR", We = {
|
|
3611
|
+
header: br,
|
|
3612
|
+
lead: vr,
|
|
3613
|
+
logo: yr,
|
|
3614
|
+
center: _r,
|
|
3615
|
+
tools: Nr
|
|
3616
|
+
}, Mr = [
|
|
3589
3617
|
{ value: "en", label: "English" },
|
|
3590
3618
|
{ value: "de", label: "Deutsch" },
|
|
3591
3619
|
{ value: "es", label: "Español" },
|
|
3592
3620
|
{ value: "fr", label: "Français" },
|
|
3593
3621
|
{ value: "ru", label: "Русский" }
|
|
3594
3622
|
];
|
|
3595
|
-
function
|
|
3623
|
+
function ts({
|
|
3596
3624
|
dark: t = !1,
|
|
3597
3625
|
onThemeChange: n,
|
|
3598
3626
|
language: r = "en",
|
|
3599
|
-
languages: o =
|
|
3600
|
-
onLanguageChange:
|
|
3601
|
-
left:
|
|
3627
|
+
languages: o = Mr,
|
|
3628
|
+
onLanguageChange: c,
|
|
3629
|
+
left: s,
|
|
3602
3630
|
afterLogo: d,
|
|
3603
3631
|
center: h,
|
|
3604
|
-
right:
|
|
3605
|
-
action:
|
|
3606
|
-
surface:
|
|
3607
|
-
href:
|
|
3632
|
+
right: u,
|
|
3633
|
+
action: $,
|
|
3634
|
+
surface: R = "hero",
|
|
3635
|
+
href: M = "/en"
|
|
3608
3636
|
}) {
|
|
3609
|
-
const
|
|
3637
|
+
const L = u === void 0 ? $ : u;
|
|
3610
3638
|
return /* @__PURE__ */ a(
|
|
3611
3639
|
"header",
|
|
3612
3640
|
{
|
|
3613
|
-
className:
|
|
3641
|
+
className: We.header,
|
|
3614
3642
|
"data-theme": t ? "dark" : "light",
|
|
3615
|
-
"data-surface":
|
|
3643
|
+
"data-surface": R,
|
|
3616
3644
|
children: [
|
|
3617
|
-
/* @__PURE__ */ a("div", { className:
|
|
3618
|
-
|
|
3619
|
-
/* @__PURE__ */ e(
|
|
3645
|
+
/* @__PURE__ */ a("div", { className: We.lead, children: [
|
|
3646
|
+
s,
|
|
3647
|
+
/* @__PURE__ */ e($t, { className: We.logo, href: M }),
|
|
3620
3648
|
d
|
|
3621
3649
|
] }),
|
|
3622
|
-
h !== void 0 && h !== !1 && /* @__PURE__ */ e("div", { className:
|
|
3623
|
-
/* @__PURE__ */ a("div", { className:
|
|
3624
|
-
/* @__PURE__ */ e(
|
|
3650
|
+
h !== void 0 && h !== !1 && /* @__PURE__ */ e("div", { className: We.center, children: h }),
|
|
3651
|
+
/* @__PURE__ */ a("div", { className: We.tools, children: [
|
|
3652
|
+
/* @__PURE__ */ e(ra, { dark: t, onThemeChange: n }),
|
|
3625
3653
|
/* @__PURE__ */ e(
|
|
3626
|
-
|
|
3654
|
+
sa,
|
|
3627
3655
|
{
|
|
3628
|
-
className:
|
|
3629
|
-
triggerContent: /* @__PURE__ */ e(
|
|
3656
|
+
className: We.language,
|
|
3657
|
+
triggerContent: /* @__PURE__ */ e(ca, { size: 18, "aria-hidden": "true" }),
|
|
3630
3658
|
popupAlign: "end",
|
|
3631
3659
|
popupTheme: t ? "dark" : "light",
|
|
3632
3660
|
options: o,
|
|
3633
3661
|
value: r,
|
|
3634
|
-
onValueChange: (
|
|
3635
|
-
ariaLabel: `Change language: ${o.find((
|
|
3662
|
+
onValueChange: (g) => c?.(g),
|
|
3663
|
+
ariaLabel: `Change language: ${o.find((g) => g.value === r)?.label ?? r}`
|
|
3636
3664
|
}
|
|
3637
3665
|
),
|
|
3638
|
-
|
|
3666
|
+
L === void 0 ? /* @__PURE__ */ e(W, { variant: "primary", href: "/en/auth", children: "API Key" }) : L
|
|
3639
3667
|
] })
|
|
3640
3668
|
]
|
|
3641
3669
|
}
|
|
3642
3670
|
);
|
|
3643
3671
|
}
|
|
3644
3672
|
export {
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3673
|
+
Zr as AlertDialog,
|
|
3674
|
+
It as AlertDialogAction,
|
|
3675
|
+
qt as AlertDialogCancel,
|
|
3676
|
+
Tt as AlertDialogContent,
|
|
3677
|
+
Ft as AlertDialogDescription,
|
|
3678
|
+
er as AlertDialogFooter,
|
|
3679
|
+
Rt as AlertDialogOverlay,
|
|
3680
|
+
Qn as AlertDialogPortal,
|
|
3681
|
+
xt as AlertDialogRoot,
|
|
3682
|
+
Pt as AlertDialogTitle,
|
|
3683
|
+
Bt as AlertDialogTrigger,
|
|
3684
|
+
Qr as AuthCard,
|
|
3685
|
+
Un as BackgroundDotted,
|
|
3686
|
+
jr as BackgroundLineField,
|
|
3687
|
+
Gr as BackgroundPlus,
|
|
3688
|
+
Wr as BackgroundSquare,
|
|
3689
|
+
qr as BarChart,
|
|
3690
|
+
Ir as Billing,
|
|
3691
|
+
Vr as BrandIntro,
|
|
3692
|
+
Ar as CustomerDashboard,
|
|
3693
|
+
Zn as EffectCard,
|
|
3694
|
+
es as Footer,
|
|
3695
|
+
ts as Header,
|
|
3696
|
+
Er as Heatmap,
|
|
3697
|
+
Hr as MetricStrip,
|
|
3698
|
+
rs as MonthlySubscription,
|
|
3699
|
+
Dr as Panel,
|
|
3700
|
+
Yr as PlusField,
|
|
3701
|
+
Tr as Provider,
|
|
3702
|
+
Pr as ProviderLogo,
|
|
3703
|
+
Or as Ranking,
|
|
3704
|
+
Ur as RequestTable,
|
|
3705
|
+
Ne as RouterPlusGlyph,
|
|
3706
|
+
Br as RouterPlusHarnessMapping,
|
|
3707
|
+
Je as RouterPlusIcon,
|
|
3708
|
+
Sr as RouterPlusProviderList,
|
|
3709
|
+
Lr as RouterPlusShell,
|
|
3710
|
+
Rr as RouterPlusUsageSummary,
|
|
3711
|
+
zr as SessionShape,
|
|
3712
|
+
ss as Shop,
|
|
3713
|
+
is as ShopAccountCard,
|
|
3714
|
+
os as ShopCard,
|
|
3715
|
+
ls as SideNavigation,
|
|
3716
|
+
cs as SideNavigationBrand,
|
|
3717
|
+
ds as SideNavigationEmpty,
|
|
3718
|
+
hs as SideNavigationFooter,
|
|
3719
|
+
ps as SideNavigationHeader,
|
|
3720
|
+
us as SideNavigationItem,
|
|
3721
|
+
ms as SideNavigationScroll,
|
|
3722
|
+
gs as SideNavigationSection,
|
|
3723
|
+
fs as SideNavigationStatus,
|
|
3724
|
+
bs as SideNavigationSubItem,
|
|
3725
|
+
vs as SideNavigationSubNav,
|
|
3726
|
+
ys as SideNavigationToggle,
|
|
3727
|
+
_s as Support,
|
|
3728
|
+
Ns as SupportDialog,
|
|
3729
|
+
Xr as UsageList,
|
|
3730
|
+
Fr as flagForRegion,
|
|
3731
|
+
Kr as generateBlast,
|
|
3732
|
+
Ms as glyphs,
|
|
3733
|
+
ws as icons,
|
|
3734
|
+
_n as regionForLocale,
|
|
3735
|
+
Et as routerPlusLogo,
|
|
3736
|
+
Jr as sampleBlast,
|
|
3737
|
+
ks as useThemeTransition
|
|
3710
3738
|
};
|