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