@versini/sassysaint 8.23.5 → 8.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{2ZEF3XTO.QoyqlawK.js → 2ZEF3XTO.DJu7CJ2W.js} +1 -1
- package/dist/chunks/{AboutChangelog.BJet2Zen.js → AboutChangelog.DUelVj1c.js} +2 -2
- package/dist/chunks/{App.DI8MhdRY.js → App.BhJH_HV8.js} +451 -450
- package/dist/chunks/{Chart.D5b90yAa.js → Chart.BUCy2gtC.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DciasA9w.js → ChatBubbleAssistant.tSfEZf2h.js} +3 -3
- package/dist/chunks/{index.DOYc3ZZw.js → index.B4vU46wK.js} +3 -3
- package/dist/chunks/{index.COrn3cYt.js → index.BRu2Itnw.js} +2 -2
- package/dist/chunks/{index.CUamyEJm.js → index.BS5L_SFT.js} +2 -2
- package/dist/chunks/{index.Cb11azaC.js → index.BnfmrMQK.js} +1 -1
- package/dist/chunks/{index.CGUc_h1e.js → index.CFd0wY7_.js} +1 -1
- package/dist/chunks/{index.Dgu1j08s.js → index.DWIxwUUa.js} +1 -1
- package/dist/chunks/{useMarkdown.DLSv3SWj.js → useMarkdown.asmjDbE3.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
@@ -4,7 +4,7 @@ var dn = (e) => {
|
|
4
4
|
var pa = (e, t, r) => t.has(e) || dn("Cannot " + r);
|
5
5
|
var P = (e, t, r) => (pa(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ve = (e, t, r) => t.has(e) ? dn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), le = (e, t, r, a) => (pa(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), ue = (e, t, r) => (pa(e, t, "access private method"), r);
|
6
6
|
import { jsx as c, jsxs as A, Fragment as ye } from "react/jsx-runtime";
|
7
|
-
import { Subscribable as $l, pendingThenable as un, resolveEnabled as Ke, shallowEqualObjects as Da, resolveStaleTime as nr, noop as Ma, isServer as Ba, isValidTimeout as fn, focusManager as Ol, fetchState as Ll, replaceData as hn, notifyManager as xs, timeUntilStale as Pl, shouldThrowError as Dl, useQueryClient as Ml, I as oe, ACTION_SORT as Ha, ACTION_SEARCH as Ss, ACTION_RESET_PROMPT as Cs, ACTION_TOGGLE_PROMPT as Is, le as Ie, DEFAULT_ICON_ACTION_SIZE as Xe, n as Oe, isElectron as za, isProbablyiPhone as Ua, L as gr, j as Ye, C as xt, LOCAL_STORAGE_PREFIX as Ct, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Bl, LOCAL_STORAGE_REASONING_DISCLOSURE as Hl, TOAST_CHAT_SAVED as zl, toastOptions as jr, TOAST_PROVIDER_CHANGED as Ns, PROMPT_CLASSNAME as Ul, PROMPT_EDITABLE_AREA_CLASSNAME as Vl, ERROR_MESSAGE as Fl, ROLE_INTERNAL as Va, CLIPBOARD_PROMPT as mn, isProbablyMobile as Ue, INPUT_PLACEHOLDER_TEXT_MOBILE as pn, INPUT_PLACEHOLDER_TEXT_ENTER as gn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as yn, FOOTER_DISCLAIMER as Wl, S as Pe, renderDataAsList as Kr, CARDS as se, pluralize as sr, ABOUT_TITLE as Gl, INFINITE_SCROLL_LIMIT as bn, INFINITE_SCROLL_THRESHOLD as vn, LOCAL_STORAGE_SORT as As, APP_CLASSNAME as Rs, TOAST_CHAT_DELETED as jl, LOCAL_STORAGE_SEARCH as $s, HISTORY_TITLE as Kl, fe as Jl, debounce as ql, l as wn, PROFILE_TITLE as Yl, LOCAL_STORAGE_CHAT_DETAILS as Ql, SETTINGS_TITLE as Xl, APP_NAME as Zl, PROMPTS_DESCRIPTION as ec, getCurrentGeoLocation as tc, USAGE_TITLE as rc, LOG_OUT as _n, getMessageContaintWrapperClass as ac, UI_FOOTER_BUFFER as Os, UI_BUTTON_SCROLL_BUFFER as oc, Logo as nc, UI_DEFAULT_MAIN_HEIGHT as kn, getMainPaddingClass as En, r as sc } from "./index.
|
7
|
+
import { Subscribable as $l, pendingThenable as un, resolveEnabled as Ke, shallowEqualObjects as Da, resolveStaleTime as nr, noop as Ma, isServer as Ba, isValidTimeout as fn, focusManager as Ol, fetchState as Ll, replaceData as hn, notifyManager as xs, timeUntilStale as Pl, shouldThrowError as Dl, useQueryClient as Ml, I as oe, ACTION_SORT as Ha, ACTION_SEARCH as Ss, ACTION_RESET_PROMPT as Cs, ACTION_TOGGLE_PROMPT as Is, le as Ie, DEFAULT_ICON_ACTION_SIZE as Xe, n as Oe, isElectron as za, isProbablyiPhone as Ua, L as gr, j as Ye, C as xt, LOCAL_STORAGE_PREFIX as Ct, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Bl, LOCAL_STORAGE_REASONING_DISCLOSURE as Hl, TOAST_CHAT_SAVED as zl, toastOptions as jr, TOAST_PROVIDER_CHANGED as Ns, PROMPT_CLASSNAME as Ul, PROMPT_EDITABLE_AREA_CLASSNAME as Vl, ERROR_MESSAGE as Fl, ROLE_INTERNAL as Va, CLIPBOARD_PROMPT as mn, isProbablyMobile as Ue, INPUT_PLACEHOLDER_TEXT_MOBILE as pn, INPUT_PLACEHOLDER_TEXT_ENTER as gn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as yn, FOOTER_DISCLAIMER as Wl, S as Pe, renderDataAsList as Kr, CARDS as se, pluralize as sr, ABOUT_TITLE as Gl, INFINITE_SCROLL_LIMIT as bn, INFINITE_SCROLL_THRESHOLD as vn, LOCAL_STORAGE_SORT as As, APP_CLASSNAME as Rs, TOAST_CHAT_DELETED as jl, LOCAL_STORAGE_SEARCH as $s, HISTORY_TITLE as Kl, fe as Jl, debounce as ql, l as wn, PROFILE_TITLE as Yl, LOCAL_STORAGE_CHAT_DETAILS as Ql, SETTINGS_TITLE as Xl, APP_NAME as Zl, PROMPTS_DESCRIPTION as ec, getCurrentGeoLocation as tc, USAGE_TITLE as rc, LOG_OUT as _n, getMessageContaintWrapperClass as ac, UI_FOOTER_BUFFER as Os, UI_BUTTON_SCROLL_BUFFER as oc, Logo as nc, UI_DEFAULT_MAIN_HEIGHT as kn, getMainPaddingClass as En, r as sc } from "./index.BRu2Itnw.js";
|
8
8
|
import * as ae from "react";
|
9
9
|
import W, { useEffect as B, useRef as O, useState as U, useCallback as Q, useSyncExternalStore as Ls, useMemo as Le, useId as ra, useContext as re, useLayoutEffect as _e, isValidElement as aa, cloneElement as Co, createContext as Ps, useDebugValue as ic, forwardRef as Ds, Suspense as Io, lazy as No, Fragment as lc, useReducer as rr } from "react";
|
10
10
|
import b from "clsx";
|
@@ -5280,22 +5280,23 @@ function bh({
|
|
5280
5280
|
}
|
5281
5281
|
);
|
5282
5282
|
}
|
5283
|
-
const vh = "z-20", wh = "z-10", _h = "user", Yr = "assistant", la = "OpenAI", Vo = "Anthropic", Fo = "Google", kh =
|
5283
|
+
const vh = "z-20", wh = "z-10", _h = "user", Yr = "assistant", la = "OpenAI", Vo = "Anthropic", Fo = "Google", kh = "Perplexity", Eh = la, Th = "claude-sonnet-4", xh = "claude-3", Sh = "gpt-4", Ch = "o3", Ih = "o4", Nh = "gemini", Ah = "sonar", Rh = {
|
5284
5284
|
[Vo]: [
|
5285
|
-
|
5286
|
-
|
5285
|
+
Th,
|
5286
|
+
xh
|
5287
5287
|
],
|
5288
5288
|
[la]: [
|
5289
|
-
xh,
|
5290
5289
|
Sh,
|
5291
|
-
Ch
|
5290
|
+
Ch,
|
5291
|
+
Ih
|
5292
5292
|
],
|
5293
|
-
[Fo]: [
|
5293
|
+
[Fo]: [Nh],
|
5294
|
+
[kh]: [Ah]
|
5294
5295
|
}, Ui = {
|
5295
5296
|
REASONING: "sassy:advanced:reasoning"
|
5296
|
-
},
|
5297
|
+
}, $h = "x-callisto-chat-id", Oh = (e) => {
|
5297
5298
|
for (const [t, r] of Object.entries(
|
5298
|
-
|
5299
|
+
Rh
|
5299
5300
|
))
|
5300
5301
|
if (r.some((a) => e.startsWith(a)))
|
5301
5302
|
return t;
|
@@ -5310,7 +5311,7 @@ const vh = "z-20", wh = "z-10", _h = "user", Yr = "assistant", la = "OpenAI", Vo
|
|
5310
5311
|
}
|
5311
5312
|
}), Ne = W.createContext({
|
5312
5313
|
state: {
|
5313
|
-
provider:
|
5314
|
+
provider: Eh,
|
5314
5315
|
privateChat: !1,
|
5315
5316
|
reasoning: !1,
|
5316
5317
|
streaming: !1,
|
@@ -5337,7 +5338,7 @@ const vh = "z-20", wh = "z-10", _h = "user", Yr = "assistant", la = "OpenAI", Vo
|
|
5337
5338
|
dispatch: () => {
|
5338
5339
|
}
|
5339
5340
|
});
|
5340
|
-
var
|
5341
|
+
var Lh = Object.defineProperty, Ph = (e, t, r) => t in e ? Lh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, de = (e, t, r) => Ph(e, typeof t != "symbol" ? t + "" : t, r);
|
5341
5342
|
/*!
|
5342
5343
|
@versini/auth-common v4.3.0
|
5343
5344
|
© 2025 gizmette.com
|
@@ -5351,13 +5352,13 @@ try {
|
|
5351
5352
|
});
|
5352
5353
|
} catch {
|
5353
5354
|
}
|
5354
|
-
const
|
5355
|
+
const Dh = {
|
5355
5356
|
PASSKEY: "passkey"
|
5356
5357
|
}, Qr = {
|
5357
5358
|
ALG: "RS256",
|
5358
5359
|
SCOPES_KEY: "scopes",
|
5359
5360
|
ISSUER: "gizmette.com"
|
5360
|
-
},
|
5361
|
+
}, Mh = `-----BEGIN PUBLIC KEY-----
|
5361
5362
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
|
5362
5363
|
w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
|
5363
5364
|
i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
|
@@ -5366,14 +5367,14 @@ l0haqjMk0UoNPPE8iYBWUHQJJE1Dqstj65d6Eh5g64Pao25y4cmYJbKjiblIGEkE
|
|
5366
5367
|
sjqybA9mARAqh9k/eiIopecWSiffNQTwVQVd2I9ZH3BalhEXHlqFgrjz51kFqg81
|
5367
5368
|
awIDAQAB
|
5368
5369
|
-----END PUBLIC KEY-----`, $r = new TextEncoder(), ur = new TextDecoder();
|
5369
|
-
function
|
5370
|
+
function Bh(...e) {
|
5370
5371
|
const t = e.reduce((o, { length: n }) => o + n, 0), r = new Uint8Array(t);
|
5371
5372
|
let a = 0;
|
5372
5373
|
for (const o of e)
|
5373
5374
|
r.set(o, a), a += o.length;
|
5374
5375
|
return r;
|
5375
5376
|
}
|
5376
|
-
function
|
5377
|
+
function Hh(e) {
|
5377
5378
|
if (Uint8Array.fromBase64)
|
5378
5379
|
return Uint8Array.fromBase64(e);
|
5379
5380
|
const t = atob(e), r = new Uint8Array(t.length);
|
@@ -5389,7 +5390,7 @@ function Vr(e) {
|
|
5389
5390
|
let t = e;
|
5390
5391
|
t instanceof Uint8Array && (t = ur.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
|
5391
5392
|
try {
|
5392
|
-
return
|
5393
|
+
return Hh(t);
|
5393
5394
|
} catch {
|
5394
5395
|
throw new TypeError("The input to be decoded is not correctly encoded.");
|
5395
5396
|
}
|
@@ -5452,7 +5453,7 @@ function tr(e, t) {
|
|
5452
5453
|
function Na(e) {
|
5453
5454
|
return parseInt(e.name.slice(4), 10);
|
5454
5455
|
}
|
5455
|
-
function
|
5456
|
+
function zh(e) {
|
5456
5457
|
switch (e) {
|
5457
5458
|
case "ES256":
|
5458
5459
|
return "P-256";
|
@@ -5464,11 +5465,11 @@ function Bh(e) {
|
|
5464
5465
|
throw new Error("unreachable");
|
5465
5466
|
}
|
5466
5467
|
}
|
5467
|
-
function
|
5468
|
+
function Uh(e, t) {
|
5468
5469
|
if (!e.usages.includes(t))
|
5469
5470
|
throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
|
5470
5471
|
}
|
5471
|
-
function
|
5472
|
+
function Vh(e, t, r) {
|
5472
5473
|
switch (t) {
|
5473
5474
|
case "HS256":
|
5474
5475
|
case "HS384":
|
@@ -5511,7 +5512,7 @@ function zh(e, t, r) {
|
|
5511
5512
|
case "ES512": {
|
5512
5513
|
if (!tr(e.algorithm, "ECDSA"))
|
5513
5514
|
throw at("ECDSA");
|
5514
|
-
const a =
|
5515
|
+
const a = zh(t);
|
5515
5516
|
if (e.algorithm.namedCurve !== a)
|
5516
5517
|
throw at(a, "algorithm.namedCurve");
|
5517
5518
|
break;
|
@@ -5519,7 +5520,7 @@ function zh(e, t, r) {
|
|
5519
5520
|
default:
|
5520
5521
|
throw new TypeError("CryptoKey does not support this operation");
|
5521
5522
|
}
|
5522
|
-
|
5523
|
+
Uh(e, r);
|
5523
5524
|
}
|
5524
5525
|
function Wi(e, t, ...r) {
|
5525
5526
|
var a;
|
@@ -5529,7 +5530,7 @@ function Wi(e, t, ...r) {
|
|
5529
5530
|
} else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
|
5530
5531
|
return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && (a = t.constructor) != null && a.name && (e += ` Received an instance of ${t.constructor.name}`), e;
|
5531
5532
|
}
|
5532
|
-
const
|
5533
|
+
const Fh = (e, ...t) => Wi("Key must be ", e, ...t);
|
5533
5534
|
function Gi(e, t, ...r) {
|
5534
5535
|
return Wi(`Key for the ${e} algorithm must be `, t, ...r);
|
5535
5536
|
}
|
@@ -5539,7 +5540,7 @@ function ji(e) {
|
|
5539
5540
|
function Ki(e) {
|
5540
5541
|
return (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject";
|
5541
5542
|
}
|
5542
|
-
const Ji = (e) => ji(e) || Ki(e),
|
5543
|
+
const Ji = (e) => ji(e) || Ki(e), Wh = (...e) => {
|
5543
5544
|
const t = e.filter(Boolean);
|
5544
5545
|
if (t.length === 0 || t.length === 1)
|
5545
5546
|
return !0;
|
@@ -5558,11 +5559,11 @@ const Ji = (e) => ji(e) || Ki(e), Vh = (...e) => {
|
|
5558
5559
|
}
|
5559
5560
|
return !0;
|
5560
5561
|
};
|
5561
|
-
function
|
5562
|
+
function Gh(e) {
|
5562
5563
|
return typeof e == "object" && e !== null;
|
5563
5564
|
}
|
5564
5565
|
const Xr = (e) => {
|
5565
|
-
if (!
|
5566
|
+
if (!Gh(e) || Object.prototype.toString.call(e) !== "[object Object]")
|
5566
5567
|
return !1;
|
5567
5568
|
if (Object.getPrototypeOf(e) === null)
|
5568
5569
|
return !0;
|
@@ -5570,7 +5571,7 @@ const Xr = (e) => {
|
|
5570
5571
|
for (; Object.getPrototypeOf(t) !== null; )
|
5571
5572
|
t = Object.getPrototypeOf(t);
|
5572
5573
|
return Object.getPrototypeOf(e) === t;
|
5573
|
-
},
|
5574
|
+
}, jh = (e, t) => {
|
5574
5575
|
if (e.startsWith("RS") || e.startsWith("PS")) {
|
5575
5576
|
const { modulusLength: r } = t.algorithm;
|
5576
5577
|
if (typeof r != "number" || r < 2048)
|
@@ -5583,7 +5584,7 @@ const Xr = (e) => {
|
|
5583
5584
|
return !1;
|
5584
5585
|
const o = e.subarray(a, a + t.length);
|
5585
5586
|
return o.length !== t.length ? !1 : o.every((n, s) => n === t[s]) || Fr(e, t, a + 1);
|
5586
|
-
},
|
5587
|
+
}, Kh = (e) => {
|
5587
5588
|
switch (!0) {
|
5588
5589
|
case Fr(e, [42, 134, 72, 206, 61, 3, 1, 7]):
|
5589
5590
|
return "P-256";
|
@@ -5594,7 +5595,7 @@ const Xr = (e) => {
|
|
5594
5595
|
default:
|
5595
5596
|
return;
|
5596
5597
|
}
|
5597
|
-
},
|
5598
|
+
}, Jh = async (e, t, r, a, o) => {
|
5598
5599
|
let n, s;
|
5599
5600
|
const i = new Uint8Array(atob(r.replace(e, "")).split("").map((l) => l.charCodeAt(0)));
|
5600
5601
|
switch (a) {
|
@@ -5630,7 +5631,7 @@ const Xr = (e) => {
|
|
5630
5631
|
case "ECDH-ES+A128KW":
|
5631
5632
|
case "ECDH-ES+A192KW":
|
5632
5633
|
case "ECDH-ES+A256KW": {
|
5633
|
-
const l =
|
5634
|
+
const l = Kh(i);
|
5634
5635
|
n = l != null && l.startsWith("P-") ? { name: "ECDH", namedCurve: l } : { name: "X25519" }, s = [];
|
5635
5636
|
break;
|
5636
5637
|
}
|
@@ -5642,8 +5643,8 @@ const Xr = (e) => {
|
|
5642
5643
|
throw new ft('Invalid or unsupported "alg" (Algorithm) value');
|
5643
5644
|
}
|
5644
5645
|
return crypto.subtle.importKey(t, i, n, !0, s);
|
5645
|
-
},
|
5646
|
-
function
|
5646
|
+
}, qh = (e, t, r) => Jh(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
|
5647
|
+
function Yh(e) {
|
5647
5648
|
let t, r;
|
5648
5649
|
switch (e.kty) {
|
5649
5650
|
case "RSA": {
|
@@ -5716,18 +5717,18 @@ function Jh(e) {
|
|
5716
5717
|
}
|
5717
5718
|
return { algorithm: t, keyUsages: r };
|
5718
5719
|
}
|
5719
|
-
const
|
5720
|
+
const Qh = async (e) => {
|
5720
5721
|
if (!e.alg)
|
5721
5722
|
throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
|
5722
|
-
const { algorithm: t, keyUsages: r } =
|
5723
|
+
const { algorithm: t, keyUsages: r } = Yh(e), a = { ...e };
|
5723
5724
|
return delete a.alg, delete a.use, crypto.subtle.importKey("jwk", a, t, e.ext ?? !e.d, e.key_ops ?? r);
|
5724
5725
|
};
|
5725
|
-
async function
|
5726
|
+
async function Xh(e, t, r) {
|
5726
5727
|
if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
5727
5728
|
throw new TypeError('"spki" must be SPKI formatted string');
|
5728
|
-
return
|
5729
|
+
return qh(e, t);
|
5729
5730
|
}
|
5730
|
-
const
|
5731
|
+
const Zh = (e, t, r, a, o) => {
|
5731
5732
|
if (o.crit !== void 0 && (a == null ? void 0 : a.crit) === void 0)
|
5732
5733
|
throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
|
5733
5734
|
if (!a || a.crit === void 0)
|
@@ -5745,7 +5746,7 @@ const Qh = (e, t, r, a, o) => {
|
|
5745
5746
|
throw new e(`Extension Header Parameter "${s}" MUST be integrity protected`);
|
5746
5747
|
}
|
5747
5748
|
return new Set(a.crit);
|
5748
|
-
},
|
5749
|
+
}, em = (e, t) => {
|
5749
5750
|
if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
|
5750
5751
|
throw new TypeError(`"${e}" option must be an array of strings`);
|
5751
5752
|
if (t)
|
@@ -5754,13 +5755,13 @@ const Qh = (e, t, r, a, o) => {
|
|
5754
5755
|
function Ko(e) {
|
5755
5756
|
return Xr(e) && typeof e.kty == "string";
|
5756
5757
|
}
|
5757
|
-
function
|
5758
|
+
function tm(e) {
|
5758
5759
|
return e.kty !== "oct" && typeof e.d == "string";
|
5759
5760
|
}
|
5760
|
-
function
|
5761
|
+
function rm(e) {
|
5761
5762
|
return e.kty !== "oct" && typeof e.d > "u";
|
5762
5763
|
}
|
5763
|
-
function
|
5764
|
+
function am(e) {
|
5764
5765
|
return e.kty === "oct" && typeof e.k == "string";
|
5765
5766
|
}
|
5766
5767
|
let ht;
|
@@ -5769,9 +5770,9 @@ const Yn = async (e, t, r, a = !1) => {
|
|
5769
5770
|
let o = ht.get(e);
|
5770
5771
|
if (o != null && o[r])
|
5771
5772
|
return o[r];
|
5772
|
-
const n = await
|
5773
|
+
const n = await Qh({ ...t, alg: r });
|
5773
5774
|
return a && Object.freeze(e), o ? o[r] = n : ht.set(e, { [r]: n }), n;
|
5774
|
-
},
|
5775
|
+
}, om = (e, t) => {
|
5775
5776
|
var r;
|
5776
5777
|
ht || (ht = /* @__PURE__ */ new WeakMap());
|
5777
5778
|
let a = ht.get(e);
|
@@ -5857,7 +5858,7 @@ const Yn = async (e, t, r, a = !1) => {
|
|
5857
5858
|
if (!s)
|
5858
5859
|
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
5859
5860
|
return a ? a[t] = s : ht.set(e, { [t]: s }), s;
|
5860
|
-
},
|
5861
|
+
}, nm = async (e, t) => {
|
5861
5862
|
if (e instanceof Uint8Array || ji(e))
|
5862
5863
|
return e;
|
5863
5864
|
if (Ki(e)) {
|
@@ -5865,7 +5866,7 @@ const Yn = async (e, t, r, a = !1) => {
|
|
5865
5866
|
return e.export();
|
5866
5867
|
if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
|
5867
5868
|
try {
|
5868
|
-
return
|
5869
|
+
return om(e, t);
|
5869
5870
|
} catch (a) {
|
5870
5871
|
if (a instanceof TypeError)
|
5871
5872
|
throw a;
|
@@ -5920,10 +5921,10 @@ const Yn = async (e, t, r, a = !1) => {
|
|
5920
5921
|
throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${n}" when present`);
|
5921
5922
|
}
|
5922
5923
|
return !0;
|
5923
|
-
},
|
5924
|
+
}, sm = (e, t, r) => {
|
5924
5925
|
if (!(t instanceof Uint8Array)) {
|
5925
5926
|
if (Ko(t)) {
|
5926
|
-
if (
|
5927
|
+
if (am(t) && bo(e, t, r))
|
5927
5928
|
return;
|
5928
5929
|
throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present');
|
5929
5930
|
}
|
@@ -5932,17 +5933,17 @@ const Yn = async (e, t, r, a = !1) => {
|
|
5932
5933
|
if (t.type !== "secret")
|
5933
5934
|
throw new TypeError(`${Dt(t)} instances for symmetric algorithms must be of type "secret"`);
|
5934
5935
|
}
|
5935
|
-
},
|
5936
|
+
}, im = (e, t, r) => {
|
5936
5937
|
if (Ko(t))
|
5937
5938
|
switch (r) {
|
5938
5939
|
case "decrypt":
|
5939
5940
|
case "sign":
|
5940
|
-
if (
|
5941
|
+
if (tm(t) && bo(e, t, r))
|
5941
5942
|
return;
|
5942
5943
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
5943
5944
|
case "encrypt":
|
5944
5945
|
case "verify":
|
5945
|
-
if (
|
5946
|
+
if (rm(t) && bo(e, t, r))
|
5946
5947
|
return;
|
5947
5948
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
5948
5949
|
}
|
@@ -5964,9 +5965,9 @@ const Yn = async (e, t, r, a = !1) => {
|
|
5964
5965
|
case "encrypt":
|
5965
5966
|
throw new TypeError(`${Dt(t)} instances for asymmetric algorithm encryption must be of type "public"`);
|
5966
5967
|
}
|
5967
|
-
},
|
5968
|
-
e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ?
|
5969
|
-
},
|
5968
|
+
}, lm = (e, t, r) => {
|
5969
|
+
e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ? sm(e, t, r) : im(e, t, r);
|
5970
|
+
}, cm = (e, t) => {
|
5970
5971
|
const r = `SHA-${e.slice(-3)}`;
|
5971
5972
|
switch (e) {
|
5972
5973
|
case "HS256":
|
@@ -5991,24 +5992,24 @@ const Yn = async (e, t, r, a = !1) => {
|
|
5991
5992
|
default:
|
5992
5993
|
throw new ft(`alg ${e} is not supported either by JOSE or your javascript runtime`);
|
5993
5994
|
}
|
5994
|
-
},
|
5995
|
+
}, dm = async (e, t, r) => {
|
5995
5996
|
if (t instanceof Uint8Array) {
|
5996
5997
|
if (!e.startsWith("HS"))
|
5997
|
-
throw new TypeError(
|
5998
|
+
throw new TypeError(Fh(t, "CryptoKey", "KeyObject", "JSON Web Key"));
|
5998
5999
|
return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
|
5999
6000
|
}
|
6000
|
-
return
|
6001
|
-
},
|
6002
|
-
const o = await
|
6003
|
-
|
6004
|
-
const n =
|
6001
|
+
return Vh(t, e, r), t;
|
6002
|
+
}, um = async (e, t, r, a) => {
|
6003
|
+
const o = await dm(e, t, "verify");
|
6004
|
+
jh(e, o);
|
6005
|
+
const n = cm(e, o.algorithm);
|
6005
6006
|
try {
|
6006
6007
|
return await crypto.subtle.verify(n, o, r, a);
|
6007
6008
|
} catch {
|
6008
6009
|
return !1;
|
6009
6010
|
}
|
6010
6011
|
};
|
6011
|
-
async function
|
6012
|
+
async function fm(e, t, r) {
|
6012
6013
|
if (!Xr(e))
|
6013
6014
|
throw new ge("Flattened JWS must be an object");
|
6014
6015
|
if (e.protected === void 0 && e.header === void 0)
|
@@ -6029,19 +6030,19 @@ async function dm(e, t, r) {
|
|
6029
6030
|
} catch {
|
6030
6031
|
throw new ge("JWS Protected Header is invalid");
|
6031
6032
|
}
|
6032
|
-
if (!
|
6033
|
+
if (!Wh(a, e.header))
|
6033
6034
|
throw new ge("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
6034
6035
|
const o = {
|
6035
6036
|
...a,
|
6036
6037
|
...e.header
|
6037
|
-
}, n =
|
6038
|
+
}, n = Zh(ge, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, o);
|
6038
6039
|
let s = !0;
|
6039
6040
|
if (n.has("b64") && (s = a.b64, typeof s != "boolean"))
|
6040
6041
|
throw new ge('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
6041
6042
|
const { alg: i } = o;
|
6042
6043
|
if (typeof i != "string" || !i)
|
6043
6044
|
throw new ge('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
6044
|
-
const l = r &&
|
6045
|
+
const l = r && em("algorithms", r.algorithms);
|
6045
6046
|
if (l && !l.has(i))
|
6046
6047
|
throw new Vi('"alg" (Algorithm) Header Parameter value not allowed');
|
6047
6048
|
if (s) {
|
@@ -6050,16 +6051,16 @@ async function dm(e, t, r) {
|
|
6050
6051
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
6051
6052
|
throw new ge("JWS Payload must be a string or an Uint8Array instance");
|
6052
6053
|
let d = !1;
|
6053
|
-
typeof t == "function" && (t = await t(a, e), d = !0),
|
6054
|
-
const f =
|
6054
|
+
typeof t == "function" && (t = await t(a, e), d = !0), lm(i, t, "verify");
|
6055
|
+
const f = Bh($r.encode(e.protected ?? ""), $r.encode("."), typeof e.payload == "string" ? $r.encode(e.payload) : e.payload);
|
6055
6056
|
let u;
|
6056
6057
|
try {
|
6057
6058
|
u = Vr(e.signature);
|
6058
6059
|
} catch {
|
6059
6060
|
throw new ge("Failed to base64url decode the signature");
|
6060
6061
|
}
|
6061
|
-
const m = await
|
6062
|
-
if (!await
|
6062
|
+
const m = await nm(t, i);
|
6063
|
+
if (!await um(i, m, u, f))
|
6063
6064
|
throw new Fi();
|
6064
6065
|
let h;
|
6065
6066
|
if (s)
|
@@ -6072,17 +6073,17 @@ async function dm(e, t, r) {
|
|
6072
6073
|
const p = { payload: h };
|
6073
6074
|
return e.protected !== void 0 && (p.protectedHeader = a), e.header !== void 0 && (p.unprotectedHeader = e.header), d ? { ...p, key: m } : p;
|
6074
6075
|
}
|
6075
|
-
async function
|
6076
|
+
async function hm(e, t, r) {
|
6076
6077
|
if (e instanceof Uint8Array && (e = ur.decode(e)), typeof e != "string")
|
6077
6078
|
throw new ge("Compact JWS must be a string or Uint8Array");
|
6078
6079
|
const { 0: a, 1: o, 2: n, length: s } = e.split(".");
|
6079
6080
|
if (s !== 3)
|
6080
6081
|
throw new ge("Invalid Compact JWS");
|
6081
|
-
const i = await
|
6082
|
+
const i = await fm({ payload: o, protected: a, signature: n }, t, r), l = { payload: i.payload, protectedHeader: i.protectedHeader };
|
6082
6083
|
return typeof t == "function" ? { ...l, key: i.key } : l;
|
6083
6084
|
}
|
6084
|
-
const
|
6085
|
-
const t =
|
6085
|
+
const mm = (e) => Math.floor(e.getTime() / 1e3), qi = 60, Yi = qi * 60, Jo = Yi * 24, pm = Jo * 7, gm = Jo * 365.25, ym = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, Qn = (e) => {
|
6086
|
+
const t = ym.exec(e);
|
6086
6087
|
if (!t || t[4] && t[1])
|
6087
6088
|
throw new TypeError("Invalid time period format");
|
6088
6089
|
const r = parseFloat(t[2]), a = t[3].toLowerCase();
|
@@ -6117,15 +6118,15 @@ const fm = (e) => Math.floor(e.getTime() / 1e3), qi = 60, Yi = qi * 60, Jo = Yi
|
|
6117
6118
|
case "week":
|
6118
6119
|
case "weeks":
|
6119
6120
|
case "w":
|
6120
|
-
o = Math.round(r *
|
6121
|
+
o = Math.round(r * pm);
|
6121
6122
|
break;
|
6122
6123
|
default:
|
6123
|
-
o = Math.round(r *
|
6124
|
+
o = Math.round(r * gm);
|
6124
6125
|
break;
|
6125
6126
|
}
|
6126
6127
|
return t[1] === "-" || t[4] === "ago" ? -o : o;
|
6127
|
-
}, Xn = (e) => e.toLowerCase().replace(/^application\//, ""),
|
6128
|
-
function
|
6128
|
+
}, Xn = (e) => e.toLowerCase().replace(/^application\//, ""), bm = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
|
6129
|
+
function vm(e, t, r = {}) {
|
6129
6130
|
let a;
|
6130
6131
|
try {
|
6131
6132
|
a = JSON.parse(ur.decode(t));
|
@@ -6145,7 +6146,7 @@ function ym(e, t, r = {}) {
|
|
6145
6146
|
throw new ze('unexpected "iss" claim value', a, "iss", "check_failed");
|
6146
6147
|
if (i && a.sub !== i)
|
6147
6148
|
throw new ze('unexpected "sub" claim value', a, "sub", "check_failed");
|
6148
|
-
if (l && !
|
6149
|
+
if (l && !bm(a.aud, typeof l == "string" ? [l] : l))
|
6149
6150
|
throw new ze('unexpected "aud" claim value', a, "aud", "check_failed");
|
6150
6151
|
let u;
|
6151
6152
|
switch (typeof r.clockTolerance) {
|
@@ -6161,7 +6162,7 @@ function ym(e, t, r = {}) {
|
|
6161
6162
|
default:
|
6162
6163
|
throw new TypeError("Invalid clockTolerance option type");
|
6163
6164
|
}
|
6164
|
-
const { currentDate: m } = r, h =
|
6165
|
+
const { currentDate: m } = r, h = mm(m || /* @__PURE__ */ new Date());
|
6165
6166
|
if ((a.iat !== void 0 || d) && typeof a.iat != "number")
|
6166
6167
|
throw new ze('"iat" claim must be a number', a, "iat", "invalid");
|
6167
6168
|
if (a.nbf !== void 0) {
|
@@ -6185,45 +6186,45 @@ function ym(e, t, r = {}) {
|
|
6185
6186
|
}
|
6186
6187
|
return a;
|
6187
6188
|
}
|
6188
|
-
async function
|
6189
|
+
async function wm(e, t, r) {
|
6189
6190
|
var a;
|
6190
|
-
const o = await
|
6191
|
+
const o = await hm(e, t, r);
|
6191
6192
|
if ((a = o.protectedHeader.crit) != null && a.includes("b64") && o.protectedHeader.b64 === !1)
|
6192
6193
|
throw new jo("JWTs MUST NOT use unencoded payload");
|
6193
|
-
const n = { payload:
|
6194
|
+
const n = { payload: vm(o.protectedHeader, o.payload, r), protectedHeader: o.protectedHeader };
|
6194
6195
|
return typeof t == "function" ? { ...n, key: o.key } : n;
|
6195
6196
|
}
|
6196
|
-
const
|
6197
|
+
const _m = async (e) => {
|
6197
6198
|
try {
|
6198
|
-
const t = Qr.ALG, r = await
|
6199
|
-
return await
|
6199
|
+
const t = Qr.ALG, r = await Xh(Mh, t);
|
6200
|
+
return await wm(e, r, {
|
6200
6201
|
issuer: Qr.ISSUER
|
6201
6202
|
});
|
6202
6203
|
} catch {
|
6203
6204
|
return;
|
6204
6205
|
}
|
6205
|
-
},
|
6206
|
+
}, km = [];
|
6206
6207
|
for (let e = 0; e < 256; ++e)
|
6207
|
-
|
6208
|
+
km.push((e + 256).toString(16).slice(1));
|
6208
6209
|
typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
6209
6210
|
const Qi = async (e, t) => {
|
6210
6211
|
var r;
|
6211
|
-
const a = await
|
6212
|
+
const a = await _m(e);
|
6212
6213
|
if (!a || !Array.isArray((r = a.payload) == null ? void 0 : r[Qr.SCOPES_KEY]))
|
6213
6214
|
return !1;
|
6214
6215
|
const o = a.payload[Qr.SCOPES_KEY];
|
6215
6216
|
return Array.isArray(t) ? t.every((n) => o.includes(n)) : Object.keys(t).some(
|
6216
6217
|
(n) => t[n].every((s) => o.includes(s))
|
6217
6218
|
);
|
6218
|
-
},
|
6219
|
+
}, Em = "av-tooltip", Tm = "av-tooltip-arrow", fr = Math.min, Bt = Math.max, Zr = Math.round, Qe = (e) => ({
|
6219
6220
|
x: e,
|
6220
6221
|
y: e
|
6221
|
-
}),
|
6222
|
+
}), xm = {
|
6222
6223
|
left: "right",
|
6223
6224
|
right: "left",
|
6224
6225
|
bottom: "top",
|
6225
6226
|
top: "bottom"
|
6226
|
-
},
|
6227
|
+
}, Sm = {
|
6227
6228
|
start: "end",
|
6228
6229
|
end: "start"
|
6229
6230
|
};
|
@@ -6251,20 +6252,20 @@ function St(e) {
|
|
6251
6252
|
function Yo(e) {
|
6252
6253
|
return Xi(St(e));
|
6253
6254
|
}
|
6254
|
-
function
|
6255
|
+
function Cm(e, t, r) {
|
6255
6256
|
r === void 0 && (r = !1);
|
6256
6257
|
const a = kr(e), o = Yo(e), n = qo(o);
|
6257
6258
|
let s = o === "x" ? a === (r ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
|
6258
6259
|
return t.reference[n] > t.floating[n] && (s = ea(s)), [s, ea(s)];
|
6259
6260
|
}
|
6260
|
-
function
|
6261
|
+
function Im(e) {
|
6261
6262
|
const t = ea(e);
|
6262
6263
|
return [wo(e), t, wo(t)];
|
6263
6264
|
}
|
6264
6265
|
function wo(e) {
|
6265
|
-
return e.replace(/start|end/g, (t) =>
|
6266
|
+
return e.replace(/start|end/g, (t) => Sm[t]);
|
6266
6267
|
}
|
6267
|
-
function
|
6268
|
+
function Nm(e, t, r) {
|
6268
6269
|
const a = ["left", "right"], o = ["right", "left"], n = ["top", "bottom"], s = ["bottom", "top"];
|
6269
6270
|
switch (e) {
|
6270
6271
|
case "top":
|
@@ -6277,15 +6278,15 @@ function Cm(e, t, r) {
|
|
6277
6278
|
return [];
|
6278
6279
|
}
|
6279
6280
|
}
|
6280
|
-
function
|
6281
|
+
function Am(e, t, r, a) {
|
6281
6282
|
const o = kr(e);
|
6282
|
-
let n =
|
6283
|
+
let n = Nm(At(e), r === "start", a);
|
6283
6284
|
return o && (n = n.map((s) => s + "-" + o), t && (n = n.concat(n.map(wo)))), n;
|
6284
6285
|
}
|
6285
6286
|
function ea(e) {
|
6286
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
6287
|
+
return e.replace(/left|right|bottom|top/g, (t) => xm[t]);
|
6287
6288
|
}
|
6288
|
-
function
|
6289
|
+
function Rm(e) {
|
6289
6290
|
return {
|
6290
6291
|
top: 0,
|
6291
6292
|
right: 0,
|
@@ -6295,7 +6296,7 @@ function Nm(e) {
|
|
6295
6296
|
};
|
6296
6297
|
}
|
6297
6298
|
function Zi(e) {
|
6298
|
-
return typeof e != "number" ?
|
6299
|
+
return typeof e != "number" ? Rm(e) : {
|
6299
6300
|
top: e,
|
6300
6301
|
right: e,
|
6301
6302
|
bottom: e,
|
@@ -6368,7 +6369,7 @@ function Zn(e, t, r) {
|
|
6368
6369
|
}
|
6369
6370
|
return h;
|
6370
6371
|
}
|
6371
|
-
const
|
6372
|
+
const $m = async (e, t, r) => {
|
6372
6373
|
const {
|
6373
6374
|
placement: a = "bottom",
|
6374
6375
|
strategy: o = "absolute",
|
@@ -6474,7 +6475,7 @@ async function el(e, t) {
|
|
6474
6475
|
right: (S.right - y.right + p.right) / _.x
|
6475
6476
|
};
|
6476
6477
|
}
|
6477
|
-
const
|
6478
|
+
const Om = (e) => ({
|
6478
6479
|
name: "arrow",
|
6479
6480
|
options: e,
|
6480
6481
|
async fn(t) {
|
@@ -6511,7 +6512,7 @@ const Rm = (e) => ({
|
|
6511
6512
|
reset: V
|
6512
6513
|
};
|
6513
6514
|
}
|
6514
|
-
}),
|
6515
|
+
}), Lm = function(e) {
|
6515
6516
|
return e === void 0 && (e = {}), {
|
6516
6517
|
name: "flip",
|
6517
6518
|
options: e,
|
@@ -6535,12 +6536,12 @@ const Rm = (e) => ({
|
|
6535
6536
|
} = _r(e, t);
|
6536
6537
|
if ((r = n.arrow) != null && r.alignmentOffset)
|
6537
6538
|
return {};
|
6538
|
-
const v = At(o), w = St(i), _ = At(i) === i, S = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), N = m || (_ || !g ? [ea(i)] :
|
6539
|
-
!m && k && N.push(...
|
6539
|
+
const v = At(o), w = St(i), _ = At(i) === i, S = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), N = m || (_ || !g ? [ea(i)] : Im(i)), k = p !== "none";
|
6540
|
+
!m && k && N.push(...Am(i, g, p, S));
|
6540
6541
|
const C = [i, ...N], T = await el(t, y), I = [];
|
6541
6542
|
let E = ((a = n.flip) == null ? void 0 : a.overflows) || [];
|
6542
6543
|
if (f && I.push(T[v]), u) {
|
6543
|
-
const F =
|
6544
|
+
const F = Cm(o, s, S);
|
6544
6545
|
I.push(T[F[0]], T[F[1]]);
|
6545
6546
|
}
|
6546
6547
|
if (E = [...E, {
|
@@ -6595,7 +6596,7 @@ const Rm = (e) => ({
|
|
6595
6596
|
}
|
6596
6597
|
};
|
6597
6598
|
};
|
6598
|
-
async function
|
6599
|
+
async function Pm(e, t) {
|
6599
6600
|
const {
|
6600
6601
|
placement: r,
|
6601
6602
|
platform: a,
|
@@ -6622,7 +6623,7 @@ async function Om(e, t) {
|
|
6622
6623
|
y: h * f
|
6623
6624
|
};
|
6624
6625
|
}
|
6625
|
-
const
|
6626
|
+
const Dm = function(e) {
|
6626
6627
|
return e === void 0 && (e = 0), {
|
6627
6628
|
name: "offset",
|
6628
6629
|
options: e,
|
@@ -6633,7 +6634,7 @@ const Lm = function(e) {
|
|
6633
6634
|
y: n,
|
6634
6635
|
placement: s,
|
6635
6636
|
middlewareData: i
|
6636
|
-
} = t, l = await
|
6637
|
+
} = t, l = await Pm(t, e);
|
6637
6638
|
return s === ((r = i.offset) == null ? void 0 : r.placement) && (a = i.arrow) != null && a.alignmentOffset ? {} : {
|
6638
6639
|
x: o + l.x,
|
6639
6640
|
y: n + l.y,
|
@@ -6644,7 +6645,7 @@ const Lm = function(e) {
|
|
6644
6645
|
};
|
6645
6646
|
}
|
6646
6647
|
};
|
6647
|
-
},
|
6648
|
+
}, Mm = function(e) {
|
6648
6649
|
return e === void 0 && (e = {}), {
|
6649
6650
|
name: "shift",
|
6650
6651
|
options: e,
|
@@ -6736,7 +6737,7 @@ function Er(e) {
|
|
6736
6737
|
} = Fe(e);
|
6737
6738
|
return /auto|scroll|overlay|hidden|clip/.test(t + a + r) && !["inline", "contents"].includes(o);
|
6738
6739
|
}
|
6739
|
-
function
|
6740
|
+
function Bm(e) {
|
6740
6741
|
return ["table", "td", "th"].includes(Zt(e));
|
6741
6742
|
}
|
6742
6743
|
function da(e) {
|
@@ -6752,7 +6753,7 @@ function Qo(e) {
|
|
6752
6753
|
const t = Xo(), r = Ve(e) ? Fe(e) : e;
|
6753
6754
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((a) => r[a] ? r[a] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((a) => (r.willChange || "").includes(a)) || ["paint", "layout", "strict", "content"].some((a) => (r.contain || "").includes(a));
|
6754
6755
|
}
|
6755
|
-
function
|
6756
|
+
function Hm(e) {
|
6756
6757
|
let t = gt(e);
|
6757
6758
|
for (; Ze(t) && !Kt(t); ) {
|
6758
6759
|
if (Qo(t))
|
@@ -6834,15 +6835,15 @@ function Ht(e) {
|
|
6834
6835
|
y: i
|
6835
6836
|
};
|
6836
6837
|
}
|
6837
|
-
const
|
6838
|
+
const zm = /* @__PURE__ */ Qe(0);
|
6838
6839
|
function sl(e) {
|
6839
6840
|
const t = $e(e);
|
6840
|
-
return !Xo() || !t.visualViewport ?
|
6841
|
+
return !Xo() || !t.visualViewport ? zm : {
|
6841
6842
|
x: t.visualViewport.offsetLeft,
|
6842
6843
|
y: t.visualViewport.offsetTop
|
6843
6844
|
};
|
6844
6845
|
}
|
6845
|
-
function
|
6846
|
+
function Um(e, t, r) {
|
6846
6847
|
return t === void 0 && (t = !1), !r || t && r !== $e(e) ? !1 : t;
|
6847
6848
|
}
|
6848
6849
|
function hr(e, t, r, a) {
|
@@ -6850,7 +6851,7 @@ function hr(e, t, r, a) {
|
|
6850
6851
|
const o = e.getBoundingClientRect(), n = nl(e);
|
6851
6852
|
let s = Qe(1);
|
6852
6853
|
t && (a ? Ve(a) && (s = Ht(a)) : s = Ht(e));
|
6853
|
-
const i =
|
6854
|
+
const i = Um(n, r, a) ? sl(n) : Qe(0);
|
6854
6855
|
let l = (o.left + i.x) / s.x, d = (o.top + i.y) / s.y, f = o.width / s.x, u = o.height / s.y;
|
6855
6856
|
if (n) {
|
6856
6857
|
const m = $e(n), h = a && Ve(a) ? $e(a) : a;
|
@@ -6882,7 +6883,7 @@ function il(e, t, r) {
|
|
6882
6883
|
y: n
|
6883
6884
|
};
|
6884
6885
|
}
|
6885
|
-
function
|
6886
|
+
function Vm(e) {
|
6886
6887
|
let {
|
6887
6888
|
elements: t,
|
6888
6889
|
rect: r,
|
@@ -6909,10 +6910,10 @@ function zm(e) {
|
|
6909
6910
|
y: r.y * d.y - l.scrollTop * d.y + f.y + m.y
|
6910
6911
|
};
|
6911
6912
|
}
|
6912
|
-
function
|
6913
|
+
function Fm(e) {
|
6913
6914
|
return Array.from(e.getClientRects());
|
6914
6915
|
}
|
6915
|
-
function
|
6916
|
+
function Wm(e) {
|
6916
6917
|
const t = it(e), r = ua(e), a = e.ownerDocument.body, o = Bt(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), n = Bt(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
|
6917
6918
|
let s = -r.scrollLeft + Zo(e);
|
6918
6919
|
const i = -r.scrollTop;
|
@@ -6923,7 +6924,7 @@ function Vm(e) {
|
|
6923
6924
|
y: i
|
6924
6925
|
};
|
6925
6926
|
}
|
6926
|
-
function
|
6927
|
+
function Gm(e, t) {
|
6927
6928
|
const r = $e(e), a = it(e), o = r.visualViewport;
|
6928
6929
|
let n = a.clientWidth, s = a.clientHeight, i = 0, l = 0;
|
6929
6930
|
if (o) {
|
@@ -6938,7 +6939,7 @@ function Fm(e, t) {
|
|
6938
6939
|
y: l
|
6939
6940
|
};
|
6940
6941
|
}
|
6941
|
-
function
|
6942
|
+
function jm(e, t) {
|
6942
6943
|
const r = hr(e, !0, t === "fixed"), a = r.top + e.clientTop, o = r.left + e.clientLeft, n = Ze(e) ? Ht(e) : Qe(1), s = e.clientWidth * n.x, i = e.clientHeight * n.y, l = o * n.x, d = a * n.y;
|
6943
6944
|
return {
|
6944
6945
|
width: s,
|
@@ -6950,11 +6951,11 @@ function Wm(e, t) {
|
|
6950
6951
|
function rs(e, t, r) {
|
6951
6952
|
let a;
|
6952
6953
|
if (t === "viewport")
|
6953
|
-
a =
|
6954
|
+
a = Gm(e, r);
|
6954
6955
|
else if (t === "document")
|
6955
|
-
a =
|
6956
|
+
a = Wm(it(e));
|
6956
6957
|
else if (Ve(t))
|
6957
|
-
a =
|
6958
|
+
a = jm(t, r);
|
6958
6959
|
else {
|
6959
6960
|
const o = sl(e);
|
6960
6961
|
a = {
|
@@ -6970,7 +6971,7 @@ function ll(e, t) {
|
|
6970
6971
|
const r = gt(e);
|
6971
6972
|
return r === t || !Ve(r) || Kt(r) ? !1 : Fe(r).position === "fixed" || ll(r, t);
|
6972
6973
|
}
|
6973
|
-
function
|
6974
|
+
function Km(e, t) {
|
6974
6975
|
const r = t.get(e);
|
6975
6976
|
if (r)
|
6976
6977
|
return r;
|
@@ -6983,14 +6984,14 @@ function Gm(e, t) {
|
|
6983
6984
|
}
|
6984
6985
|
return t.set(e, a), a;
|
6985
6986
|
}
|
6986
|
-
function
|
6987
|
+
function Jm(e) {
|
6987
6988
|
let {
|
6988
6989
|
element: t,
|
6989
6990
|
boundary: r,
|
6990
6991
|
rootBoundary: a,
|
6991
6992
|
strategy: o
|
6992
6993
|
} = e;
|
6993
|
-
const n = [...r === "clippingAncestors" ? da(t) ? [] :
|
6994
|
+
const n = [...r === "clippingAncestors" ? da(t) ? [] : Km(t, this._c) : [].concat(r), a], s = n[0], i = n.reduce((l, d) => {
|
6994
6995
|
const f = rs(t, d, o);
|
6995
6996
|
return l.top = Bt(f.top, l.top), l.right = fr(f.right, l.right), l.bottom = fr(f.bottom, l.bottom), l.left = Bt(f.left, l.left), l;
|
6996
6997
|
}, rs(t, s, o));
|
@@ -7001,7 +7002,7 @@ function jm(e) {
|
|
7001
7002
|
y: i.top
|
7002
7003
|
};
|
7003
7004
|
}
|
7004
|
-
function
|
7005
|
+
function qm(e) {
|
7005
7006
|
const {
|
7006
7007
|
width: t,
|
7007
7008
|
height: r
|
@@ -7011,7 +7012,7 @@ function Km(e) {
|
|
7011
7012
|
height: r
|
7012
7013
|
};
|
7013
7014
|
}
|
7014
|
-
function
|
7015
|
+
function Ym(e, t, r) {
|
7015
7016
|
const a = Ze(t), o = it(t), n = r === "fixed", s = hr(e, !0, n, t);
|
7016
7017
|
let i = {
|
7017
7018
|
scrollLeft: 0,
|
@@ -7060,14 +7061,14 @@ function cl(e, t) {
|
|
7060
7061
|
return r;
|
7061
7062
|
}
|
7062
7063
|
let a = as(e, t);
|
7063
|
-
for (; a &&
|
7064
|
+
for (; a && Bm(a) && Aa(a); )
|
7064
7065
|
a = as(a, t);
|
7065
|
-
return a && Kt(a) && Aa(a) && !Qo(a) ? r : a ||
|
7066
|
+
return a && Kt(a) && Aa(a) && !Qo(a) ? r : a || Hm(e) || r;
|
7066
7067
|
}
|
7067
|
-
const
|
7068
|
+
const Qm = async function(e) {
|
7068
7069
|
const t = this.getOffsetParent || cl, r = this.getDimensions, a = await r(e.floating);
|
7069
7070
|
return {
|
7070
|
-
reference:
|
7071
|
+
reference: Ym(e.reference, await t(e.floating), e.strategy),
|
7071
7072
|
floating: {
|
7072
7073
|
x: 0,
|
7073
7074
|
y: 0,
|
@@ -7076,34 +7077,34 @@ const qm = async function(e) {
|
|
7076
7077
|
}
|
7077
7078
|
};
|
7078
7079
|
};
|
7079
|
-
function
|
7080
|
+
function Xm(e) {
|
7080
7081
|
return Fe(e).direction === "rtl";
|
7081
7082
|
}
|
7082
|
-
const
|
7083
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
7083
|
+
const Zm = {
|
7084
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Vm,
|
7084
7085
|
getDocumentElement: it,
|
7085
|
-
getClippingRect:
|
7086
|
+
getClippingRect: Jm,
|
7086
7087
|
getOffsetParent: cl,
|
7087
|
-
getElementRects:
|
7088
|
-
getClientRects:
|
7089
|
-
getDimensions:
|
7088
|
+
getElementRects: Qm,
|
7089
|
+
getClientRects: Fm,
|
7090
|
+
getDimensions: qm,
|
7090
7091
|
getScale: Ht,
|
7091
7092
|
isElement: Ve,
|
7092
|
-
isRTL:
|
7093
|
-
},
|
7093
|
+
isRTL: Xm
|
7094
|
+
}, ep = Dm, tp = Mm, rp = Lm, ap = Om, op = (e, t, r) => {
|
7094
7095
|
const a = /* @__PURE__ */ new Map(), o = {
|
7095
|
-
platform:
|
7096
|
+
platform: Zm,
|
7096
7097
|
...r
|
7097
7098
|
}, n = {
|
7098
7099
|
...o.platform,
|
7099
7100
|
_c: a
|
7100
7101
|
};
|
7101
|
-
return
|
7102
|
+
return $m(e, t, {
|
7102
7103
|
...o,
|
7103
7104
|
platform: n
|
7104
7105
|
});
|
7105
7106
|
}, os = ["mousedown", "touchstart"];
|
7106
|
-
function
|
7107
|
+
function np(e, t, r) {
|
7107
7108
|
const a = O(null);
|
7108
7109
|
return B(() => {
|
7109
7110
|
const o = (n) => {
|
@@ -7124,7 +7125,7 @@ function ap(e, t, r) {
|
|
7124
7125
|
};
|
7125
7126
|
}, [e, r, t]), a;
|
7126
7127
|
}
|
7127
|
-
function
|
7128
|
+
function sp(e, t) {
|
7128
7129
|
const [r, a] = U(!1), o = O(null), n = O(null), s = Q(() => {
|
7129
7130
|
a((l) => (!l && (!o.current || o.current === -1) && (o.current = window.setInterval(n.current, t)), !0));
|
7130
7131
|
}, [t]), i = Q(() => {
|
@@ -7132,42 +7133,42 @@ function op(e, t) {
|
|
7132
7133
|
}, []);
|
7133
7134
|
return B(() => (n.current = e, r && s(), i), [e, r, s, i]), { start: s, stop: i, active: r };
|
7134
7135
|
}
|
7135
|
-
const Or = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`,
|
7136
|
+
const Or = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, ip = () => b("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), ns = ({
|
7136
7137
|
mode: e
|
7137
7138
|
}) => b({
|
7138
7139
|
"bg-surface-darker": e === "dark" || e === "system",
|
7139
7140
|
"bg-surface-light": e === "light" || e === "alt-system",
|
7140
7141
|
"dark:bg-surface-light": e === "system",
|
7141
7142
|
"dark:bg-surface-darker": e === "alt-system"
|
7142
|
-
}),
|
7143
|
+
}), lp = ({
|
7143
7144
|
mode: e
|
7144
7145
|
}) => b({
|
7145
7146
|
"text-copy-light": e === "dark" || e === "system",
|
7146
7147
|
"text-copy-dark": e === "light" || e === "alt-system",
|
7147
7148
|
"dark:text-copy-dark": e === "system",
|
7148
7149
|
"dark:text-copy-light": e === "alt-system"
|
7149
|
-
}),
|
7150
|
+
}), cp = () => b("absolute", "size-2", "transform rotate-45"), dp = ({
|
7150
7151
|
mode: e,
|
7151
7152
|
className: t,
|
7152
7153
|
tooltipClassName: r,
|
7153
7154
|
arrowClassName: a
|
7154
7155
|
}) => {
|
7155
7156
|
const o = b("relative inline-block", t), n = b(
|
7156
|
-
|
7157
|
-
|
7157
|
+
Em,
|
7158
|
+
ip(),
|
7158
7159
|
ns({ mode: e }),
|
7159
|
-
|
7160
|
+
lp({ mode: e }),
|
7160
7161
|
r
|
7161
7162
|
), s = b(
|
7162
|
-
|
7163
|
-
|
7163
|
+
Tm,
|
7164
|
+
cp(),
|
7164
7165
|
ns({ mode: e }),
|
7165
7166
|
a
|
7166
7167
|
);
|
7167
7168
|
return { tooltip: n, arrow: s, wrapper: o };
|
7168
|
-
},
|
7169
|
+
}, up = ({ delay: e = 300 }) => ({
|
7169
7170
|
animation: `av-tooltip-fade-in ${e}ms ease-in-out`
|
7170
|
-
}),
|
7171
|
+
}), fp = 5e3, We = ({
|
7171
7172
|
trigger: e,
|
7172
7173
|
label: t,
|
7173
7174
|
placement: r = "top",
|
@@ -7177,16 +7178,16 @@ const Or = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, np = (
|
|
7177
7178
|
tooltipClassName: s,
|
7178
7179
|
arrowClassName: i
|
7179
7180
|
}) => {
|
7180
|
-
const l =
|
7181
|
+
const l = np(() => {
|
7181
7182
|
g.stop(), p(!1);
|
7182
|
-
}), d = O(null), f = O(null), [u, m] = U(!1), [h, p] = U(!1), g =
|
7183
|
+
}), d = O(null), f = O(null), [u, m] = U(!1), [h, p] = U(!1), g = sp(() => {
|
7183
7184
|
p(!1);
|
7184
|
-
},
|
7185
|
+
}, fp), y = dp({
|
7185
7186
|
mode: a,
|
7186
7187
|
className: n,
|
7187
7188
|
tooltipClassName: s,
|
7188
7189
|
arrowClassName: i
|
7189
|
-
}), v =
|
7190
|
+
}), v = up({ delay: o }), w = Q(async () => {
|
7190
7191
|
var k, C, T, I;
|
7191
7192
|
if (l.current && d.current && f.current) {
|
7192
7193
|
const {
|
@@ -7194,16 +7195,16 @@ const Or = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, np = (
|
|
7194
7195
|
y: D,
|
7195
7196
|
middlewareData: x,
|
7196
7197
|
placement: $
|
7197
|
-
} = await
|
7198
|
+
} = await op(l.current, d.current, {
|
7198
7199
|
placement: r,
|
7199
7200
|
middleware: [
|
7200
|
-
|
7201
|
-
|
7201
|
+
ep(10),
|
7202
|
+
rp({
|
7202
7203
|
crossAxis: r.includes("-"),
|
7203
7204
|
fallbackAxisSideDirection: "start"
|
7204
7205
|
}),
|
7205
|
-
|
7206
|
-
|
7206
|
+
tp({ padding: 5 }),
|
7207
|
+
ap({ element: f.current })
|
7207
7208
|
]
|
7208
7209
|
});
|
7209
7210
|
(k = d == null ? void 0 : d.current) != null && k.style && Object.assign(d.current.style, {
|
@@ -7275,7 +7276,7 @@ try {
|
|
7275
7276
|
});
|
7276
7277
|
} catch {
|
7277
7278
|
}
|
7278
|
-
const
|
7279
|
+
const hp = ({
|
7279
7280
|
className: e,
|
7280
7281
|
onClick: t
|
7281
7282
|
}) => /* @__PURE__ */ c(
|
@@ -7297,7 +7298,7 @@ const up = ({
|
|
7297
7298
|
}
|
7298
7299
|
)
|
7299
7300
|
}
|
7300
|
-
),
|
7301
|
+
), mp = ({
|
7301
7302
|
className: e
|
7302
7303
|
}) => {
|
7303
7304
|
const { getAccessToken: t } = Oe(), {
|
@@ -7389,7 +7390,7 @@ const up = ({
|
|
7389
7390
|
)
|
7390
7391
|
}
|
7391
7392
|
);
|
7392
|
-
}, ss = "av-messagebox", is = "av-panel", ls = "av-button", en = "icon", dl = "button", _o = "link",
|
7393
|
+
}, ss = "av-messagebox", is = "av-panel", ls = "av-button", en = "icon", dl = "button", _o = "link", pp = ({
|
7393
7394
|
type: e,
|
7394
7395
|
size: t,
|
7395
7396
|
labelRight: r,
|
@@ -7425,7 +7426,7 @@ const up = ({
|
|
7425
7426
|
"h-12": t === "large" && n && (r || a)
|
7426
7427
|
});
|
7427
7428
|
}
|
7428
|
-
},
|
7429
|
+
}, gp = ({
|
7429
7430
|
type: e,
|
7430
7431
|
size: t,
|
7431
7432
|
labelRight: r,
|
@@ -7448,7 +7449,7 @@ const up = ({
|
|
7448
7449
|
[s]: t === "large" && (r || a)
|
7449
7450
|
});
|
7450
7451
|
}
|
7451
|
-
},
|
7452
|
+
}, yp = ({
|
7452
7453
|
mode: e,
|
7453
7454
|
noBackground: t,
|
7454
7455
|
truncate: r,
|
@@ -7484,7 +7485,7 @@ const up = ({
|
|
7484
7485
|
return b("not-prose text-copy-lighter", {
|
7485
7486
|
truncate: r
|
7486
7487
|
});
|
7487
|
-
},
|
7488
|
+
}, bp = ({
|
7488
7489
|
mode: e,
|
7489
7490
|
noBackground: t,
|
7490
7491
|
variant: r
|
@@ -7514,13 +7515,13 @@ const up = ({
|
|
7514
7515
|
if (r === "selected")
|
7515
7516
|
return "bg-action-selected-dark";
|
7516
7517
|
}
|
7517
|
-
},
|
7518
|
+
}, vp = ({
|
7518
7519
|
radius: e
|
7519
7520
|
}) => b({
|
7520
7521
|
"rounded-full": e === "large",
|
7521
7522
|
"rounded-md": e === "medium",
|
7522
7523
|
"rounded-xs": e === "small"
|
7523
|
-
}),
|
7524
|
+
}), wp = ({
|
7524
7525
|
mode: e,
|
7525
7526
|
disabled: t,
|
7526
7527
|
variant: r
|
@@ -7550,7 +7551,7 @@ const up = ({
|
|
7550
7551
|
});
|
7551
7552
|
if (r === "selected")
|
7552
7553
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
7553
|
-
},
|
7554
|
+
}, _p = ({
|
7554
7555
|
mode: e,
|
7555
7556
|
disabled: t,
|
7556
7557
|
variant: r
|
@@ -7580,7 +7581,7 @@ const up = ({
|
|
7580
7581
|
});
|
7581
7582
|
if (r === "selected")
|
7582
7583
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
7583
|
-
},
|
7584
|
+
}, kp = ({
|
7584
7585
|
mode: e,
|
7585
7586
|
noBorder: t,
|
7586
7587
|
variant: r
|
@@ -7610,14 +7611,14 @@ const up = ({
|
|
7610
7611
|
});
|
7611
7612
|
if (r === "selected")
|
7612
7613
|
return "border border-border-selected-dark";
|
7613
|
-
},
|
7614
|
+
}, Ep = ({
|
7614
7615
|
focusMode: e
|
7615
7616
|
}) => b("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
7616
7617
|
"focus:outline-focus-dark": e === "dark",
|
7617
7618
|
"focus:outline-focus-light": e === "light",
|
7618
7619
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
7619
7620
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
7620
|
-
}),
|
7621
|
+
}), Tp = ({
|
7621
7622
|
mode: e,
|
7622
7623
|
raw: t,
|
7623
7624
|
iconClassName: r
|
@@ -7629,11 +7630,11 @@ const up = ({
|
|
7629
7630
|
"dark:text-copy-accent-dark": e === "system"
|
7630
7631
|
},
|
7631
7632
|
r
|
7632
|
-
),
|
7633
|
+
), xp = ({
|
7633
7634
|
animated: e
|
7634
7635
|
}) => b({
|
7635
7636
|
"transition-opacity duration-300 ease-in-out": e
|
7636
|
-
}),
|
7637
|
+
}), Sp = ({
|
7637
7638
|
type: e,
|
7638
7639
|
className: t,
|
7639
7640
|
raw: r,
|
@@ -7653,15 +7654,15 @@ const up = ({
|
|
7653
7654
|
animated: y
|
7654
7655
|
}) => (m || (m = "primary"), r ? b(ls, t) : b(
|
7655
7656
|
ls,
|
7656
|
-
|
7657
|
+
yp({
|
7657
7658
|
mode: a,
|
7658
7659
|
variant: m,
|
7659
7660
|
noBackground: u,
|
7660
7661
|
truncate: h
|
7661
7662
|
}),
|
7662
|
-
|
7663
|
-
|
7664
|
-
|
7663
|
+
bp({ mode: a, noBackground: u, variant: m }),
|
7664
|
+
vp({ radius: g }),
|
7665
|
+
pp({
|
7665
7666
|
type: e,
|
7666
7667
|
size: i,
|
7667
7668
|
labelRight: d,
|
@@ -7669,11 +7670,11 @@ const up = ({
|
|
7669
7670
|
align: p,
|
7670
7671
|
animated: y
|
7671
7672
|
}),
|
7672
|
-
|
7673
|
-
|
7674
|
-
|
7675
|
-
|
7676
|
-
|
7673
|
+
gp({ type: e, size: i, labelRight: d, labelLeft: f }),
|
7674
|
+
kp({ mode: a, variant: m, noBorder: l }),
|
7675
|
+
Ep({ focusMode: o }),
|
7676
|
+
wp({ mode: a, variant: m, disabled: n }),
|
7677
|
+
_p({ mode: a, variant: m, disabled: n }),
|
7677
7678
|
{
|
7678
7679
|
"w-full": s,
|
7679
7680
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
@@ -7682,7 +7683,7 @@ const up = ({
|
|
7682
7683
|
"transition-[width] duration-300 ease-in": y
|
7683
7684
|
}),
|
7684
7685
|
t
|
7685
|
-
)),
|
7686
|
+
)), Cp = (e, t, r) => {
|
7686
7687
|
var a;
|
7687
7688
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
7688
7689
|
}, ul = W.forwardRef((e, t) => {
|
@@ -7692,20 +7693,20 @@ const up = ({
|
|
7692
7693
|
{
|
7693
7694
|
ref: t,
|
7694
7695
|
onClick: (n) => {
|
7695
|
-
|
7696
|
+
Cp(n, a, r);
|
7696
7697
|
},
|
7697
7698
|
...o
|
7698
7699
|
}
|
7699
7700
|
);
|
7700
7701
|
});
|
7701
7702
|
ul.displayName = "BaseButton";
|
7702
|
-
function
|
7703
|
+
function Ip() {
|
7703
7704
|
const e = O(!1);
|
7704
7705
|
return B(() => (e.current = !0, () => {
|
7705
7706
|
e.current = !1;
|
7706
7707
|
}), []), Q(() => e.current, []);
|
7707
7708
|
}
|
7708
|
-
function
|
7709
|
+
function Np(e) {
|
7709
7710
|
return Le(() => e.every((t) => t == null) ? () => {
|
7710
7711
|
} : (t) => {
|
7711
7712
|
e.forEach((r) => {
|
@@ -7713,7 +7714,7 @@ function Cp(e) {
|
|
7713
7714
|
});
|
7714
7715
|
}, e);
|
7715
7716
|
}
|
7716
|
-
const
|
7717
|
+
const Ap = {
|
7717
7718
|
x: 0,
|
7718
7719
|
y: 0,
|
7719
7720
|
width: 0,
|
@@ -7724,7 +7725,7 @@ const Ip = {
|
|
7724
7725
|
right: 0
|
7725
7726
|
};
|
7726
7727
|
function Ra(e) {
|
7727
|
-
const t =
|
7728
|
+
const t = Ip(), r = O(0), a = O(null), [o, n] = U(Ap), s = Le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
7728
7729
|
const l = i[0];
|
7729
7730
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
7730
7731
|
a.current && t() && n(l.contentRect);
|
@@ -7741,14 +7742,14 @@ const Lr = {
|
|
7741
7742
|
// w-8
|
7742
7743
|
large: 48
|
7743
7744
|
// w-12
|
7744
|
-
},
|
7745
|
+
}, Rp = {
|
7745
7746
|
small: 8 * 2,
|
7746
7747
|
// px-2 x 2
|
7747
7748
|
medium: 12 * 2,
|
7748
7749
|
// px-3 x 2
|
7749
7750
|
large: 16 * 2
|
7750
7751
|
// px-4 x 2
|
7751
|
-
},
|
7752
|
+
}, $p = 2, Op = 300, tn = W.forwardRef(
|
7752
7753
|
({
|
7753
7754
|
children: e,
|
7754
7755
|
disabled: t = !1,
|
@@ -7772,7 +7773,7 @@ const Lr = {
|
|
7772
7773
|
animated: _ = !1,
|
7773
7774
|
...S
|
7774
7775
|
}, N) => {
|
7775
|
-
const k =
|
7776
|
+
const k = Sp({
|
7776
7777
|
type: en,
|
7777
7778
|
mode: r,
|
7778
7779
|
focusMode: a,
|
@@ -7789,15 +7790,15 @@ const Lr = {
|
|
7789
7790
|
radius: y,
|
7790
7791
|
variant: v,
|
7791
7792
|
animated: _
|
7792
|
-
}), C =
|
7793
|
+
}), C = Tp({ mode: r, raw: i, iconClassName: w }), T = xp({ animated: _ }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, D] = Ra(), [x, $] = Ra(), [M, F] = Ra(), V = O(0), R = O(null), L = O(null), G = Np([N, R]);
|
7793
7794
|
return _e(() => {
|
7794
|
-
M && M.current && _ && (V.current = F.width +
|
7795
|
+
M && M.current && _ && (V.current = F.width + Rp[u] + (l ? 0 : $p), R.current && !R.current.style.width && (R.current.style.width = `${Lr[u]}px`));
|
7795
7796
|
}, [F, M, u, l, _]), _e(() => {
|
7796
7797
|
if (R && R.current && _) {
|
7797
7798
|
let z = Lr[u];
|
7798
7799
|
m && E && D.width > 0 ? z = D.width + V.current : h && x && $.width > 0 && (z = $.width + V.current), L.current && clearTimeout(L.current), z !== parseInt(R.current.style.width || "0", 10) && (E.current && (E.current.style.opacity = "0"), x.current && (x.current.style.opacity = "0"), R.current.style.width = `${z}px`, z > Lr[u] && (L.current = setTimeout(() => {
|
7799
7800
|
E.current && m && (E.current.style.opacity = "1"), x.current && h && (x.current.style.opacity = "1"), L.current = null;
|
7800
|
-
},
|
7801
|
+
}, Op * 0.8))), z === Lr[u] && (E.current && (E.current.style.opacity = "0"), x.current && (x.current.style.opacity = "0"));
|
7801
7802
|
}
|
7802
7803
|
}, [
|
7803
7804
|
D,
|
@@ -7874,7 +7875,7 @@ try {
|
|
7874
7875
|
});
|
7875
7876
|
} catch {
|
7876
7877
|
}
|
7877
|
-
const
|
7878
|
+
const Lp = W.forwardRef(
|
7878
7879
|
({
|
7879
7880
|
children: e,
|
7880
7881
|
mode: t = "system",
|
@@ -7912,8 +7913,8 @@ const $p = W.forwardRef(
|
|
7912
7913
|
) });
|
7913
7914
|
}
|
7914
7915
|
);
|
7915
|
-
|
7916
|
-
const
|
7916
|
+
Lp.displayName = "ButtonSort";
|
7917
|
+
const Pp = ({
|
7917
7918
|
children: e,
|
7918
7919
|
fill: t,
|
7919
7920
|
viewBox: r,
|
@@ -7956,14 +7957,14 @@ try {
|
|
7956
7957
|
});
|
7957
7958
|
} catch {
|
7958
7959
|
}
|
7959
|
-
const
|
7960
|
+
const Dp = ({
|
7960
7961
|
className: e,
|
7961
7962
|
viewBox: t,
|
7962
7963
|
title: r,
|
7963
7964
|
monotone: a,
|
7964
7965
|
...o
|
7965
7966
|
}) => /* @__PURE__ */ c(
|
7966
|
-
|
7967
|
+
Pp,
|
7967
7968
|
{
|
7968
7969
|
defaultViewBox: "0 0 384 512",
|
7969
7970
|
size: "size-5",
|
@@ -7994,7 +7995,7 @@ try {
|
|
7994
7995
|
} catch {
|
7995
7996
|
}
|
7996
7997
|
const fl = ae.createContext(null);
|
7997
|
-
function
|
7998
|
+
function Mp({
|
7998
7999
|
initialOpen: e = !1,
|
7999
8000
|
open: t,
|
8000
8001
|
onOpenChange: r
|
@@ -8028,14 +8029,14 @@ const fa = () => {
|
|
8028
8029
|
throw new Error("Modal components must be wrapped in <Modal />");
|
8029
8030
|
return e;
|
8030
8031
|
};
|
8031
|
-
function
|
8032
|
+
function Bp({
|
8032
8033
|
children: e,
|
8033
8034
|
...t
|
8034
8035
|
}) {
|
8035
|
-
const r =
|
8036
|
+
const r = Mp(t);
|
8036
8037
|
return /* @__PURE__ */ c(fl.Provider, { value: r, children: e });
|
8037
8038
|
}
|
8038
|
-
const
|
8039
|
+
const Hp = ae.forwardRef(function(e, t) {
|
8039
8040
|
const { context: r, ...a } = fa(), o = Ao([a.refs.setFloating, t]);
|
8040
8041
|
if (!r.open)
|
8041
8042
|
return null;
|
@@ -8053,13 +8054,13 @@ const Mp = ae.forwardRef(function(e, t) {
|
|
8053
8054
|
children: s.children
|
8054
8055
|
}
|
8055
8056
|
) }) }) });
|
8056
|
-
}),
|
8057
|
+
}), zp = ae.forwardRef(function({ children: e, ...t }, r) {
|
8057
8058
|
const { setLabelId: a } = fa(), o = ra();
|
8058
8059
|
return ae.useLayoutEffect(() => (a(o), () => a(void 0)), [o, a]), /* @__PURE__ */ c("h1", { ...t, ref: r, id: o, children: e });
|
8059
|
-
}),
|
8060
|
+
}), Up = ae.forwardRef(function({ children: e, ...t }, r) {
|
8060
8061
|
const { setDescriptionId: a } = fa(), o = ra();
|
8061
8062
|
return ae.useLayoutEffect(() => (a(o), () => a(void 0)), [o, a]), /* @__PURE__ */ c("div", { ...t, ref: r, id: o, children: e });
|
8062
|
-
}),
|
8063
|
+
}), Vp = ae.forwardRef(function(e, t) {
|
8063
8064
|
const { setOpen: r } = fa(), { trigger: a, className: o, ...n } = e, s = ae.useCallback(() => r(!1), [r]);
|
8064
8065
|
return /* @__PURE__ */ c("div", { className: o, children: ae.cloneElement(a, {
|
8065
8066
|
ref: t,
|
@@ -8080,7 +8081,7 @@ try {
|
|
8080
8081
|
});
|
8081
8082
|
} catch {
|
8082
8083
|
}
|
8083
|
-
const or = "panel", Pr = "messagebox",
|
8084
|
+
const or = "panel", Pr = "messagebox", Fp = ({
|
8084
8085
|
className: e,
|
8085
8086
|
kind: t,
|
8086
8087
|
borderMode: r,
|
@@ -8102,7 +8103,7 @@ const or = "panel", Pr = "messagebox", Up = ({
|
|
8102
8103
|
footer: "flex grow flex-col sm:p-4 p-2",
|
8103
8104
|
header: "sm:p-4 mb-0 p-2",
|
8104
8105
|
close: "sm:p-4 p-2"
|
8105
|
-
}),
|
8106
|
+
}), Wp = "slide", ds = "fade", er = ({
|
8106
8107
|
open: e,
|
8107
8108
|
onOpenChange: t,
|
8108
8109
|
title: r,
|
@@ -8112,13 +8113,13 @@ const or = "panel", Pr = "messagebox", Up = ({
|
|
8112
8113
|
kind: s = or,
|
8113
8114
|
className: i,
|
8114
8115
|
animation: l = !1,
|
8115
|
-
animationType: d =
|
8116
|
+
animationType: d = Wp
|
8116
8117
|
}) => {
|
8117
8118
|
const f = O(""), [u, m] = U(
|
8118
8119
|
l ? d === ds ? { opacity: 0 } : {
|
8119
8120
|
transform: "translateY(-100vh)"
|
8120
8121
|
} : {}
|
8121
|
-
), h =
|
8122
|
+
), h = Fp({
|
8122
8123
|
className: i,
|
8123
8124
|
kind: s,
|
8124
8125
|
borderMode: n,
|
@@ -8142,10 +8143,10 @@ const or = "panel", Pr = "messagebox", Up = ({
|
|
8142
8143
|
}, 100);
|
8143
8144
|
return () => clearTimeout(p);
|
8144
8145
|
}
|
8145
|
-
}, [e, l, d]), /* @__PURE__ */ c(ye, { children: e && /* @__PURE__ */ c(
|
8146
|
+
}, [e, l, d]), /* @__PURE__ */ c(ye, { children: e && /* @__PURE__ */ c(Bp, { open: e, onOpenChange: t, children: /* @__PURE__ */ A(Hp, { className: h.main, style: u, children: [
|
8146
8147
|
/* @__PURE__ */ A("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
8147
8148
|
/* @__PURE__ */ c(
|
8148
|
-
|
8149
|
+
Vp,
|
8149
8150
|
{
|
8150
8151
|
className: h.close,
|
8151
8152
|
trigger: /* @__PURE__ */ c(
|
@@ -8155,14 +8156,14 @@ const or = "panel", Pr = "messagebox", Up = ({
|
|
8155
8156
|
focusMode: "light",
|
8156
8157
|
noBorder: !0,
|
8157
8158
|
label: "Close",
|
8158
|
-
children: /* @__PURE__ */ c(
|
8159
|
+
children: /* @__PURE__ */ c(Dp, {})
|
8159
8160
|
}
|
8160
8161
|
)
|
8161
8162
|
}
|
8162
8163
|
),
|
8163
|
-
/* @__PURE__ */ c(
|
8164
|
+
/* @__PURE__ */ c(zp, { className: h.header, children: r })
|
8164
8165
|
] }),
|
8165
|
-
/* @__PURE__ */ c(
|
8166
|
+
/* @__PURE__ */ c(Up, { className: h.content, children: a }),
|
8166
8167
|
o && /* @__PURE__ */ c("div", { className: h.footer, children: o })
|
8167
8168
|
] }) }) });
|
8168
8169
|
};
|
@@ -8430,7 +8431,7 @@ const yt = ({
|
|
8430
8431
|
), ha = Ds((e, t) => /* @__PURE__ */ c(dc, { children: /* @__PURE__ */ c(ml, { ...e, ref: t }) }));
|
8431
8432
|
ha.displayName = "Menu";
|
8432
8433
|
ml.displayName = "MenuComponent";
|
8433
|
-
const
|
8434
|
+
const Gp = ({
|
8434
8435
|
children: e,
|
8435
8436
|
fill: t,
|
8436
8437
|
viewBox: r,
|
@@ -8473,14 +8474,14 @@ try {
|
|
8473
8474
|
});
|
8474
8475
|
} catch {
|
8475
8476
|
}
|
8476
|
-
const
|
8477
|
+
const jp = ({
|
8477
8478
|
className: e,
|
8478
8479
|
viewBox: t,
|
8479
8480
|
title: r,
|
8480
8481
|
monotone: a,
|
8481
8482
|
...o
|
8482
8483
|
}) => /* @__PURE__ */ A(
|
8483
|
-
|
8484
|
+
Gp,
|
8484
8485
|
{
|
8485
8486
|
defaultViewBox: "0 0 448 512",
|
8486
8487
|
size: "size-5",
|
@@ -8568,7 +8569,7 @@ const ot = ae.forwardRef(
|
|
8568
8569
|
}
|
8569
8570
|
}),
|
8570
8571
|
children: [
|
8571
|
-
s && /* @__PURE__ */ c(
|
8572
|
+
s && /* @__PURE__ */ c(jp, { className: "mr-2", size: "size-4" }),
|
8572
8573
|
r,
|
8573
8574
|
e && /* @__PURE__ */ c("span", { className: d, children: e })
|
8574
8575
|
]
|
@@ -8577,7 +8578,7 @@ const ot = ae.forwardRef(
|
|
8577
8578
|
}
|
8578
8579
|
);
|
8579
8580
|
ot.displayName = "MenuItem";
|
8580
|
-
const
|
8581
|
+
const Kp = ({ className: e, ...t }) => {
|
8581
8582
|
const r = b(e, "my-1 border-t border-border-medium");
|
8582
8583
|
return /* @__PURE__ */ c("div", { className: r, ...t });
|
8583
8584
|
}, pl = ({
|
@@ -8603,12 +8604,12 @@ try {
|
|
8603
8604
|
});
|
8604
8605
|
} catch {
|
8605
8606
|
}
|
8606
|
-
const
|
8607
|
+
const Jp = (e) => {
|
8607
8608
|
for (let t = 0; t < e.length; t++)
|
8608
8609
|
if (e[t].enabled)
|
8609
8610
|
return !0;
|
8610
8611
|
return !1;
|
8611
|
-
},
|
8612
|
+
}, qp = ({
|
8612
8613
|
className: e,
|
8613
8614
|
defaultPlacement: t = "top-start"
|
8614
8615
|
}) => {
|
@@ -8627,7 +8628,7 @@ const jp = (e) => {
|
|
8627
8628
|
prompt: p
|
8628
8629
|
}
|
8629
8630
|
});
|
8630
|
-
}, u = d && l && l.tags &&
|
8631
|
+
}, u = d && l && l.tags && Jp(l.tags), m = /* @__PURE__ */ A(
|
8631
8632
|
ha,
|
8632
8633
|
{
|
8633
8634
|
mode: "dark",
|
@@ -8843,7 +8844,7 @@ const jp = (e) => {
|
|
8843
8844
|
}
|
8844
8845
|
)
|
8845
8846
|
] });
|
8846
|
-
},
|
8847
|
+
}, Yp = ({
|
8847
8848
|
show: e,
|
8848
8849
|
bottom: t,
|
8849
8850
|
onClick: r,
|
@@ -8888,7 +8889,7 @@ const jp = (e) => {
|
|
8888
8889
|
}
|
8889
8890
|
)
|
8890
8891
|
}
|
8891
|
-
) : null,
|
8892
|
+
) : null, Qp = ({
|
8892
8893
|
className: e
|
8893
8894
|
}) => {
|
8894
8895
|
const {
|
@@ -8932,7 +8933,7 @@ const jp = (e) => {
|
|
8932
8933
|
label: "Google Gemini",
|
8933
8934
|
icon: qs
|
8934
8935
|
}
|
8935
|
-
],
|
8936
|
+
], Xp = ({ className: e }) => {
|
8936
8937
|
var g;
|
8937
8938
|
const {
|
8938
8939
|
dispatch: t,
|
@@ -9000,7 +9001,7 @@ const jp = (e) => {
|
|
9000
9001
|
trigger: p
|
9001
9002
|
}
|
9002
9003
|
) : /* @__PURE__ */ c("div", { className: e, children: p });
|
9003
|
-
},
|
9004
|
+
}, Zp = [".pdf", ".txt"], eg = [
|
9004
9005
|
".js",
|
9005
9006
|
".cjs",
|
9006
9007
|
".mjs",
|
@@ -9015,30 +9016,30 @@ const jp = (e) => {
|
|
9015
9016
|
".json",
|
9016
9017
|
".md"
|
9017
9018
|
], $a = [
|
9018
|
-
...
|
9019
|
-
...
|
9020
|
-
], Eo = 400 * 1024,
|
9019
|
+
...Zp,
|
9020
|
+
...eg
|
9021
|
+
], Eo = 400 * 1024, tg = "text/plain", rg = () => b(
|
9021
9022
|
"relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
|
9022
|
-
), fs = () => b("bg-surface-darker"),
|
9023
|
+
), fs = () => b("bg-surface-darker"), ag = () => b("text-copy-lighter caret-copy-light"), og = () => b(
|
9023
9024
|
"has-[.av-prompt-editable:focus]:outline",
|
9024
9025
|
"has-[.av-prompt-editable:focus]:outline-2",
|
9025
9026
|
"has-[.av-prompt-editable:focus]:outline-offset-2",
|
9026
9027
|
"has-[.av-prompt-editable:focus]:outline-focus-light"
|
9027
|
-
),
|
9028
|
+
), ng = () => b(
|
9028
9029
|
"peer",
|
9029
9030
|
"text-base resize-none overflow-hidden w-full text-inherit outline-none",
|
9030
9031
|
"h-6 pr-2 pl-4"
|
9031
|
-
),
|
9032
|
+
), sg = ({ className: e }) => {
|
9032
9033
|
const t = b(
|
9033
9034
|
Ul,
|
9034
|
-
eg(),
|
9035
|
-
fs(),
|
9036
|
-
tg(),
|
9037
9035
|
rg(),
|
9036
|
+
fs(),
|
9037
|
+
ag(),
|
9038
|
+
og(),
|
9038
9039
|
e
|
9039
9040
|
), r = b(
|
9040
9041
|
Vl,
|
9041
|
-
|
9042
|
+
ng(),
|
9042
9043
|
fs()
|
9043
9044
|
);
|
9044
9045
|
return {
|
@@ -9050,15 +9051,15 @@ const jp = (e) => {
|
|
9050
9051
|
return "0 Bytes";
|
9051
9052
|
const t = 1024, r = ["Bytes", "KB", "MB", "GB"], a = Math.floor(Math.log(e) / Math.log(t));
|
9052
9053
|
return parseFloat((e / Math.pow(t, a)).toFixed(2)) + " " + r[a];
|
9053
|
-
}, bl = (e) => e.reduce((t, r) => t + r.size, 0),
|
9054
|
+
}, bl = (e) => e.reduce((t, r) => t + r.size, 0), ig = (e) => e.type ? e : new File(
|
9054
9055
|
[e],
|
9055
9056
|
// Use the original file content
|
9056
9057
|
e.name,
|
9057
9058
|
{
|
9058
|
-
type:
|
9059
|
+
type: tg,
|
9059
9060
|
lastModified: e.lastModified
|
9060
9061
|
}
|
9061
|
-
),
|
9062
|
+
), lg = ({
|
9062
9063
|
files: e,
|
9063
9064
|
clearFile: t
|
9064
9065
|
}) => e && e.length > 0 && /* @__PURE__ */ A("div", { className: "px-4 py-2", children: [
|
@@ -9097,9 +9098,9 @@ const jp = (e) => {
|
|
9097
9098
|
" ",
|
9098
9099
|
Wr(Eo)
|
9099
9100
|
] })
|
9100
|
-
] }), vl = 24,
|
9101
|
-
e.current && (e.current.style.height = `${
|
9102
|
-
},
|
9101
|
+
] }), vl = 24, cg = 500, wl = 2, dg = 5, ug = vl * wl, hs = dg * vl, fg = "ready", hg = "streaming", mg = "error", pg = "submitted", Mr = (e) => {
|
9102
|
+
e.current && (e.current.style.height = `${ug}px`);
|
9103
|
+
}, gg = () => {
|
9103
9104
|
const { user: e, getAccessToken: t } = Oe(), [r, a] = U(!1), [o, n] = U(null), [s, i] = U(!1), [l, d] = U(!1), {
|
9104
9105
|
dispatch: f,
|
9105
9106
|
state: { reasoning: u, streaming: m, aborted: h, lastResetTimestamp: p, attachments: g }
|
@@ -9112,7 +9113,7 @@ const jp = (e) => {
|
|
9112
9113
|
}), { data: S } = Qt({
|
9113
9114
|
user: e == null ? void 0 : e.username,
|
9114
9115
|
getAccessToken: t
|
9115
|
-
}), N = O(null), k = O(null), C = O(!1), T = O(0), I = O(null), E = O(null), D = lr(), x =
|
9116
|
+
}), N = O(null), k = O(null), C = O(!1), T = O(0), I = O(null), E = O(null), D = lr(), x = sg({
|
9116
9117
|
className: ""
|
9117
9118
|
}), {
|
9118
9119
|
input: $,
|
@@ -9133,25 +9134,25 @@ const jp = (e) => {
|
|
9133
9134
|
}
|
9134
9135
|
}), z = Q(
|
9135
9136
|
async (Y) => {
|
9136
|
-
Y ===
|
9137
|
+
Y === fg && f({
|
9137
9138
|
type: _t,
|
9138
9139
|
payload: {
|
9139
9140
|
loading: !1,
|
9140
9141
|
streaming: !1
|
9141
9142
|
}
|
9142
|
-
}), Y ===
|
9143
|
+
}), Y === pg && f({
|
9143
9144
|
type: _t,
|
9144
9145
|
payload: {
|
9145
9146
|
loading: !0,
|
9146
9147
|
streaming: !1
|
9147
9148
|
}
|
9148
|
-
}), Y ===
|
9149
|
+
}), Y === hg && f({
|
9149
9150
|
type: _t,
|
9150
9151
|
payload: {
|
9151
9152
|
loading: !1,
|
9152
9153
|
streaming: !0
|
9153
9154
|
}
|
9154
|
-
}), Y ===
|
9155
|
+
}), Y === mg && setTimeout(() => {
|
9155
9156
|
h || (f({
|
9156
9157
|
type: _t,
|
9157
9158
|
payload: {
|
@@ -9240,7 +9241,7 @@ const jp = (e) => {
|
|
9240
9241
|
let fe;
|
9241
9242
|
if (o && o.length > 0) {
|
9242
9243
|
const je = Array.from(o).map(
|
9243
|
-
(H) =>
|
9244
|
+
(H) => ig(H)
|
9244
9245
|
), J = new DataTransfer();
|
9245
9246
|
je.forEach((H) => J.items.add(H)), fe = J.files;
|
9246
9247
|
}
|
@@ -9248,7 +9249,7 @@ const jp = (e) => {
|
|
9248
9249
|
headers: {
|
9249
9250
|
"Content-Type": "application/json",
|
9250
9251
|
authorization: `Bearer ${ce}`,
|
9251
|
-
[
|
9252
|
+
[$h]: G
|
9252
9253
|
},
|
9253
9254
|
body: {
|
9254
9255
|
reasoning: u
|
@@ -9281,7 +9282,7 @@ const jp = (e) => {
|
|
9281
9282
|
}
|
9282
9283
|
p > 0 && p !== T.current ? (T.current = p, setTimeout(() => {
|
9283
9284
|
E.current && (!$ && Mr(E), E.current.focus());
|
9284
|
-
},
|
9285
|
+
}, cg)) : m === !1 && !$ && (Mr(E), E.current && E.current.focus());
|
9285
9286
|
}, [p, m, $]), B(() => {
|
9286
9287
|
y.lastTriggeredTimestamp && setTimeout(() => {
|
9287
9288
|
me();
|
@@ -9345,13 +9346,13 @@ const jp = (e) => {
|
|
9345
9346
|
}
|
9346
9347
|
)
|
9347
9348
|
] }),
|
9348
|
-
/* @__PURE__ */ c(
|
9349
|
+
/* @__PURE__ */ c(lg, { files: o, clearFile: et }),
|
9349
9350
|
/* @__PURE__ */ A("div", { className: "p-2 flex items-center", children: [
|
9350
|
-
/* @__PURE__ */ c(
|
9351
|
-
/* @__PURE__ */ c(
|
9352
|
-
/* @__PURE__ */ c(
|
9351
|
+
/* @__PURE__ */ c(Qp, { className: "order-7 ml-auto" }),
|
9352
|
+
/* @__PURE__ */ c(mp, { className: "order-1 mr-4 sm:mr-2" }),
|
9353
|
+
/* @__PURE__ */ c(qp, { className: "order-2 mr-4 sm:mr-2" }),
|
9353
9354
|
/* @__PURE__ */ c(
|
9354
|
-
|
9355
|
+
hp,
|
9355
9356
|
{
|
9356
9357
|
className: "order-3 mr-4 sm:mr-2",
|
9357
9358
|
onClick: Ge
|
@@ -9365,7 +9366,7 @@ const jp = (e) => {
|
|
9365
9366
|
] })
|
9366
9367
|
] }) })
|
9367
9368
|
] });
|
9368
|
-
}, Br = "--sassy-bottom", ms = 16, ps = 76,
|
9369
|
+
}, Br = "--sassy-bottom", ms = 16, ps = 76, yg = ({ isComponent: e }) => {
|
9369
9370
|
const {
|
9370
9371
|
state: { loading: t, streaming: r, restoring: a }
|
9371
9372
|
} = re(Ne), {
|
@@ -9441,17 +9442,17 @@ const jp = (e) => {
|
|
9441
9442
|
vh
|
9442
9443
|
),
|
9443
9444
|
children: [
|
9444
|
-
/* @__PURE__ */ c(
|
9445
|
+
/* @__PURE__ */ c(gg, {}),
|
9445
9446
|
/* @__PURE__ */ c("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Wl })
|
9446
9447
|
]
|
9447
9448
|
}
|
9448
9449
|
);
|
9449
|
-
},
|
9450
|
+
}, bg = No(
|
9450
9451
|
() => import(
|
9451
9452
|
/* webpackChunkName: "LazyAboutChangelog" */
|
9452
|
-
"./AboutChangelog.
|
9453
|
+
"./AboutChangelog.DUelVj1c.js"
|
9453
9454
|
)
|
9454
|
-
),
|
9455
|
+
), vg = () => {
|
9455
9456
|
const e = lr(), t = lr(), { data: r, isSuccess: a } = Pu(), { data: o, isSuccess: n } = Du(), s = (r == null ? void 0 : r.version) || "", i = (r == null ? void 0 : r.models) || [];
|
9456
9457
|
return /* @__PURE__ */ A(ye, { children: [
|
9457
9458
|
/* @__PURE__ */ c(
|
@@ -9460,8 +9461,8 @@ const jp = (e) => {
|
|
9460
9461
|
header: se.ABOUT.TITLE_CLIENT,
|
9461
9462
|
className: "prose-dark dark:prose-lighter mb-4",
|
9462
9463
|
children: Kr(e, {
|
9463
|
-
[se.ABOUT.VERSION]: "8.
|
9464
|
-
[se.ABOUT.BUILD_TIMESTAMP]: "06/
|
9464
|
+
[se.ABOUT.VERSION]: "8.24.0",
|
9465
|
+
[se.ABOUT.BUILD_TIMESTAMP]: "06/21/2025 07:17 PM EDT"
|
9465
9466
|
})
|
9466
9467
|
}
|
9467
9468
|
),
|
@@ -9485,18 +9486,18 @@ const jp = (e) => {
|
|
9485
9486
|
className: b("prose-lighter dark:prose-lighter min-h-[334px]", {
|
9486
9487
|
"mb-5": Ue()
|
9487
9488
|
}),
|
9488
|
-
children: n ? /* @__PURE__ */ c(Io, { fallback: /* @__PURE__ */ c("div", { children: "Loading..." }), children: /* @__PURE__ */ c(
|
9489
|
+
children: n ? /* @__PURE__ */ c(Io, { fallback: /* @__PURE__ */ c("div", { children: "Loading..." }), children: /* @__PURE__ */ c(bg, { content: o.client }) }) : null
|
9489
9490
|
}
|
9490
9491
|
)
|
9491
9492
|
] });
|
9492
|
-
},
|
9493
|
+
}, wg = ({
|
9493
9494
|
open: e,
|
9494
9495
|
onOpenChange: t
|
9495
|
-
}) => /* @__PURE__ */ c(er, { open: e, onOpenChange: t, title: Gl, children: /* @__PURE__ */ c(
|
9496
|
+
}) => /* @__PURE__ */ c(er, { open: e, onOpenChange: t, title: Gl, children: /* @__PURE__ */ c(vg, {}) }), _g = {
|
9496
9497
|
[Vo]: Ks,
|
9497
9498
|
[la]: Ys,
|
9498
9499
|
[Fo]: qs
|
9499
|
-
},
|
9500
|
+
}, kg = ({
|
9500
9501
|
filteredHistory: e,
|
9501
9502
|
dispatch: t,
|
9502
9503
|
onOpenChange: r,
|
@@ -9657,7 +9658,7 @@ const jp = (e) => {
|
|
9657
9658
|
] }) }),
|
9658
9659
|
/* @__PURE__ */ c(Kd, { children: e.slice(0, f).map((I, E) => {
|
9659
9660
|
var M, F;
|
9660
|
-
const D = I.summary || (I.messages.length > 0 ? (M = I.messages[0]) == null ? void 0 : M.content : ""), x = I.model ?
|
9661
|
+
const D = I.summary || (I.messages.length > 0 ? (M = I.messages[0]) == null ? void 0 : M.content : ""), x = I.model ? Oh(I.model) : null, $ = x ? _g[x] : null;
|
9661
9662
|
return ((F = I == null ? void 0 : I.messages) == null ? void 0 : F.length) > 0 ? /* @__PURE__ */ A(lc, { children: [
|
9662
9663
|
E === f - vn && /* @__PURE__ */ c("tr", { ref: s }),
|
9663
9664
|
/* @__PURE__ */ A(ya, { children: [
|
@@ -9763,7 +9764,7 @@ const jp = (e) => {
|
|
9763
9764
|
) }) }) }) })
|
9764
9765
|
] })
|
9765
9766
|
] });
|
9766
|
-
},
|
9767
|
+
}, Eg = ({
|
9767
9768
|
open: e,
|
9768
9769
|
onOpenChange: t
|
9769
9770
|
}) => {
|
@@ -9837,7 +9838,7 @@ const jp = (e) => {
|
|
9837
9838
|
}
|
9838
9839
|
) }),
|
9839
9840
|
/* @__PURE__ */ c("div", { className: "flex flex-col sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ c(
|
9840
|
-
|
9841
|
+
kg,
|
9841
9842
|
{
|
9842
9843
|
mutate: h,
|
9843
9844
|
filteredHistory: n,
|
@@ -9848,7 +9849,7 @@ const jp = (e) => {
|
|
9848
9849
|
]
|
9849
9850
|
}
|
9850
9851
|
);
|
9851
|
-
},
|
9852
|
+
}, Tg = () => {
|
9852
9853
|
const { isAuthenticated: e, user: t, registeringForPasskey: r, authenticationType: a } = Oe(), o = lr(), n = (t == null ? void 0 : t.username) || "";
|
9853
9854
|
return e && n ? /* @__PURE__ */ A(ye, { children: [
|
9854
9855
|
/* @__PURE__ */ c(
|
@@ -9862,7 +9863,7 @@ const jp = (e) => {
|
|
9862
9863
|
})
|
9863
9864
|
}
|
9864
9865
|
),
|
9865
|
-
a !==
|
9866
|
+
a !== Dh.PASSKEY && !za() && /* @__PURE__ */ A(
|
9866
9867
|
Pe,
|
9867
9868
|
{
|
9868
9869
|
className: "prose-dark dark:prose-lighter mt-4",
|
@@ -9886,7 +9887,7 @@ const jp = (e) => {
|
|
9886
9887
|
}
|
9887
9888
|
)
|
9888
9889
|
] }) : null;
|
9889
|
-
},
|
9890
|
+
}, xg = ({
|
9890
9891
|
open: e,
|
9891
9892
|
onOpenChange: t
|
9892
9893
|
}) => /* @__PURE__ */ c(
|
@@ -9896,16 +9897,16 @@ const jp = (e) => {
|
|
9896
9897
|
open: e,
|
9897
9898
|
onOpenChange: t,
|
9898
9899
|
title: Yl,
|
9899
|
-
children: /* @__PURE__ */ c(
|
9900
|
+
children: /* @__PURE__ */ c(Tg, {})
|
9900
9901
|
}
|
9901
|
-
), _l = "av-text-area",
|
9902
|
-
function
|
9902
|
+
), _l = "av-text-area", Sg = "av-text-area-wrapper", Oa = "av-text-area-helper-text", Cg = "av-text-area__control--right", Ig = "av-text-area__control--left";
|
9903
|
+
function Ng() {
|
9903
9904
|
const e = O(!1);
|
9904
9905
|
return B(() => (e.current = !0, () => {
|
9905
9906
|
e.current = !1;
|
9906
9907
|
}), []), Q(() => e.current, []);
|
9907
9908
|
}
|
9908
|
-
function
|
9909
|
+
function Ag(e) {
|
9909
9910
|
return Le(() => e.every((t) => t == null) ? () => {
|
9910
9911
|
} : (t) => {
|
9911
9912
|
e.forEach((r) => {
|
@@ -9913,7 +9914,7 @@ function Ig(e) {
|
|
9913
9914
|
});
|
9914
9915
|
}, e);
|
9915
9916
|
}
|
9916
|
-
const
|
9917
|
+
const Rg = {
|
9917
9918
|
x: 0,
|
9918
9919
|
y: 0,
|
9919
9920
|
width: 0,
|
@@ -9924,7 +9925,7 @@ const Ng = {
|
|
9924
9925
|
right: 0
|
9925
9926
|
};
|
9926
9927
|
function gs(e) {
|
9927
|
-
const t =
|
9928
|
+
const t = Ng(), r = O(0), a = O(null), [o, n] = U(Rg), s = Le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
9928
9929
|
const l = i[0];
|
9929
9930
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
9930
9931
|
a.current && t() && n(l.contentRect);
|
@@ -9934,7 +9935,7 @@ function gs(e) {
|
|
9934
9935
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
9935
9936
|
}), [s, e]), [a, o];
|
9936
9937
|
}
|
9937
|
-
function
|
9938
|
+
function $g({
|
9938
9939
|
value: e,
|
9939
9940
|
defaultValue: t,
|
9940
9941
|
finalValue: r,
|
@@ -9953,7 +9954,7 @@ function Ag({
|
|
9953
9954
|
), s(!0)))();
|
9954
9955
|
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [i, d, !1];
|
9955
9956
|
}
|
9956
|
-
function
|
9957
|
+
function Og(e) {
|
9957
9958
|
const t = ra();
|
9958
9959
|
if (!e)
|
9959
9960
|
return t;
|
@@ -9964,7 +9965,7 @@ function Rg(e) {
|
|
9964
9965
|
return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
|
9965
9966
|
}
|
9966
9967
|
}
|
9967
|
-
const kl = "SET_ANNOUNCEMENT", El = "CLEAR_ANNOUNCEMENT",
|
9968
|
+
const kl = "SET_ANNOUNCEMENT", El = "CLEAR_ANNOUNCEMENT", Lg = {
|
9968
9969
|
alert: null,
|
9969
9970
|
alertdialog: null,
|
9970
9971
|
log: "polite",
|
@@ -9972,7 +9973,7 @@ const kl = "SET_ANNOUNCEMENT", El = "CLEAR_ANNOUNCEMENT", $g = {
|
|
9972
9973
|
progressbar: null,
|
9973
9974
|
status: "polite",
|
9974
9975
|
timer: "assertive"
|
9975
|
-
},
|
9976
|
+
}, Pg = (e, t) => {
|
9976
9977
|
switch (t == null ? void 0 : t.type) {
|
9977
9978
|
case kl:
|
9978
9979
|
return {
|
@@ -9987,7 +9988,7 @@ const kl = "SET_ANNOUNCEMENT", El = "CLEAR_ANNOUNCEMENT", $g = {
|
|
9987
9988
|
default:
|
9988
9989
|
return e;
|
9989
9990
|
}
|
9990
|
-
},
|
9991
|
+
}, Dg = ({
|
9991
9992
|
onAnnouncementClear: e,
|
9992
9993
|
dispatch: t
|
9993
9994
|
}) => {
|
@@ -10005,13 +10006,13 @@ const kl = "SET_ANNOUNCEMENT", El = "CLEAR_ANNOUNCEMENT", $g = {
|
|
10005
10006
|
type: kl,
|
10006
10007
|
payload: e
|
10007
10008
|
}), t && (r.current = setTimeout(
|
10008
|
-
() =>
|
10009
|
+
() => Dg({
|
10009
10010
|
onAnnouncementClear: a,
|
10010
10011
|
dispatch: o
|
10011
10012
|
}),
|
10012
10013
|
t
|
10013
10014
|
));
|
10014
|
-
},
|
10015
|
+
}, Mg = ({
|
10015
10016
|
children: e,
|
10016
10017
|
announcementTimeoutRef: t,
|
10017
10018
|
announcementDelay: r,
|
@@ -10034,7 +10035,7 @@ const kl = "SET_ANNOUNCEMENT", El = "CLEAR_ANNOUNCEMENT", $g = {
|
|
10034
10035
|
dispatch: s
|
10035
10036
|
});
|
10036
10037
|
};
|
10037
|
-
function
|
10038
|
+
function Bg({
|
10038
10039
|
children: e,
|
10039
10040
|
className: t,
|
10040
10041
|
politeness: r,
|
@@ -10045,12 +10046,12 @@ function Dg({
|
|
10045
10046
|
visible: i,
|
10046
10047
|
...l
|
10047
10048
|
}) {
|
10048
|
-
const d = O(null), f = O(null), [u, m] = rr(
|
10049
|
+
const d = O(null), f = O(null), [u, m] = rr(Pg, {
|
10049
10050
|
announcement: null
|
10050
10051
|
});
|
10051
10052
|
let h = r;
|
10052
|
-
typeof h > "u" && (h = a ?
|
10053
|
-
|
10053
|
+
typeof h > "u" && (h = a ? Lg[a] : "assertive"), B(() => {
|
10054
|
+
Mg({
|
10054
10055
|
announcementTimeoutRef: d,
|
10055
10056
|
announcementDelay: o,
|
10056
10057
|
children: e,
|
@@ -10092,19 +10093,19 @@ try {
|
|
10092
10093
|
});
|
10093
10094
|
} catch {
|
10094
10095
|
}
|
10095
|
-
const
|
10096
|
+
const Hg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", zg = ({ mode: e }) => b({
|
10096
10097
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
10097
10098
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
10098
10099
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
10099
10100
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
10100
|
-
}),
|
10101
|
+
}), Ug = ({
|
10101
10102
|
focusMode: e
|
10102
10103
|
}) => b("focus:outline focus:outline-2 focus:outline-offset-2", {
|
10103
10104
|
"focus:outline-focus-dark": e === "dark",
|
10104
10105
|
"focus:outline-focus-light": e === "light",
|
10105
10106
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
10106
10107
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
10107
|
-
}),
|
10108
|
+
}), Vg = ({
|
10108
10109
|
noBorder: e,
|
10109
10110
|
error: t
|
10110
10111
|
}) => b("border-2", {
|
@@ -10112,7 +10113,7 @@ const Mg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10112
10113
|
"focus:border-border-dark": !e && t,
|
10113
10114
|
"border-border-error-dark": !e && t,
|
10114
10115
|
"border-transparent": e
|
10115
|
-
}),
|
10116
|
+
}), Fg = ({
|
10116
10117
|
disabled: e,
|
10117
10118
|
raw: t,
|
10118
10119
|
error: r,
|
@@ -10151,7 +10152,7 @@ const Mg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10151
10152
|
"text-copy-medium dark:text-copy-error-dark": a === "alt-system"
|
10152
10153
|
}
|
10153
10154
|
);
|
10154
|
-
},
|
10155
|
+
}, Wg = ({
|
10155
10156
|
error: e,
|
10156
10157
|
raw: t,
|
10157
10158
|
mode: r,
|
@@ -10178,7 +10179,7 @@ const Mg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10178
10179
|
"text-copy-error-dark dark:text-copy-error-light": r === "system",
|
10179
10180
|
"dark:text-copy-error-dark text-copy-error-light": r === "alt-system"
|
10180
10181
|
});
|
10181
|
-
},
|
10182
|
+
}, Gg = ({
|
10182
10183
|
className: e,
|
10183
10184
|
textAreaClassName: t,
|
10184
10185
|
raw: r,
|
@@ -10192,34 +10193,34 @@ const Mg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10192
10193
|
}) => {
|
10193
10194
|
const f = r ? e : b(
|
10194
10195
|
"relative flex w-full flex-col justify-center",
|
10195
|
-
|
10196
|
+
Sg,
|
10196
10197
|
e
|
10197
10198
|
), u = r ? b(t) : b(
|
10198
10199
|
_l,
|
10199
10200
|
t,
|
10200
|
-
|
10201
|
-
|
10202
|
-
|
10203
|
-
|
10201
|
+
Hg(),
|
10202
|
+
zg({ mode: i }),
|
10203
|
+
Ug({ focusMode: a }),
|
10204
|
+
Vg({
|
10204
10205
|
noBorder: n,
|
10205
10206
|
error: s
|
10206
10207
|
}),
|
10207
10208
|
{
|
10208
10209
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
10209
10210
|
}
|
10210
|
-
), m = r ? void 0 : "sr-only", h =
|
10211
|
+
), m = r ? void 0 : "sr-only", h = Fg({
|
10211
10212
|
disabled: o,
|
10212
10213
|
raw: r,
|
10213
10214
|
error: s,
|
10214
10215
|
mode: i,
|
10215
10216
|
rightElement: d,
|
10216
10217
|
leftElement: l
|
10217
|
-
}), p =
|
10218
|
+
}), p = Wg({
|
10218
10219
|
error: s,
|
10219
10220
|
raw: r,
|
10220
10221
|
mode: i,
|
10221
10222
|
disabled: o
|
10222
|
-
}), g = r ? void 0 : b(
|
10223
|
+
}), g = r ? void 0 : b(Cg, "absolute"), y = r ? void 0 : b(Ig, "absolute");
|
10223
10224
|
return {
|
10224
10225
|
wrapper: f,
|
10225
10226
|
textArea: u,
|
@@ -10229,7 +10230,7 @@ const Mg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10229
10230
|
rightElement: g,
|
10230
10231
|
leftElement: y
|
10231
10232
|
};
|
10232
|
-
},
|
10233
|
+
}, jg = ({
|
10233
10234
|
scrollHeight: e,
|
10234
10235
|
currentHeight: t,
|
10235
10236
|
currentLabelOffset: r = 0,
|
@@ -10271,9 +10272,9 @@ const Mg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10271
10272
|
...N
|
10272
10273
|
}, k) => {
|
10273
10274
|
var C;
|
10274
|
-
const T = O(null), I =
|
10275
|
+
const T = O(null), I = Ag([k, T]), [E, D] = gs(), [x, $] = gs(), M = O(80), F = O(-25), V = O(null), R = O(30), L = O(null), G = Og({ id: e, prefix: `${_l}-` }), [z, me] = U(0), [Se, Ge] = U(0), [et, Me] = U(
|
10275
10276
|
!!(!g && p)
|
10276
|
-
), tt = `${t} error, ${p}`, pe =
|
10277
|
+
), tt = `${t} error, ${p}`, pe = Gg({
|
10277
10278
|
className: n,
|
10278
10279
|
textAreaClassName: s,
|
10279
10280
|
error: a,
|
@@ -10284,7 +10285,7 @@ const Mg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10284
10285
|
mode: i,
|
10285
10286
|
rightElement: !!y,
|
10286
10287
|
leftElement: !!v
|
10287
|
-
}), [Y, ce] =
|
10288
|
+
}), [Y, ce] = $g({
|
10288
10289
|
value: d,
|
10289
10290
|
initialControlledDelay: 20,
|
10290
10291
|
defaultValue: f,
|
@@ -10319,7 +10320,7 @@ const Mg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10319
10320
|
}, [Y, o]), _e(() => {
|
10320
10321
|
var H, K;
|
10321
10322
|
if (!o && T && T.current && Y !== void 0) {
|
10322
|
-
const { labelOffset: q, helperTextOffset: j, scrollHeight: he } =
|
10323
|
+
const { labelOffset: q, helperTextOffset: j, scrollHeight: he } = jg({
|
10323
10324
|
scrollHeight: T.current.scrollHeight,
|
10324
10325
|
currentHeight: M.current,
|
10325
10326
|
currentLabelOffset: F.current,
|
@@ -10408,7 +10409,7 @@ const Mg = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
10408
10409
|
children: y
|
10409
10410
|
}
|
10410
10411
|
),
|
10411
|
-
a && p && /* @__PURE__ */ c(
|
10412
|
+
a && p && /* @__PURE__ */ c(Bg, { politeness: "polite", clearAnnouncementDelay: 500, children: tt })
|
10412
10413
|
] });
|
10413
10414
|
}
|
10414
10415
|
);
|
@@ -10426,7 +10427,7 @@ try {
|
|
10426
10427
|
});
|
10427
10428
|
} catch {
|
10428
10429
|
}
|
10429
|
-
const
|
10430
|
+
const Kg = "av-toggle", Jg = () => b("peer", "h-6", "w-11", "rounded-full"), qg = ({
|
10430
10431
|
focusMode: e
|
10431
10432
|
}) => b(
|
10432
10433
|
"peer-focus:outline",
|
@@ -10438,14 +10439,14 @@ const Gg = "av-toggle", jg = () => b("peer", "h-6", "w-11", "rounded-full"), Kg
|
|
10438
10439
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
10439
10440
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
10440
10441
|
}
|
10441
|
-
),
|
10442
|
+
), Yg = () => b(
|
10442
10443
|
"peer-checked:after:translate-x-full",
|
10443
10444
|
// background color when checked
|
10444
10445
|
"peer-checked:bg-violet-500",
|
10445
10446
|
// knob circle and border color when checked
|
10446
10447
|
"peer-checked:after:bg-white",
|
10447
10448
|
"peer-checked:after:border-white"
|
10448
|
-
),
|
10449
|
+
), Qg = () => b(
|
10449
10450
|
"after:left-[2px]",
|
10450
10451
|
"after:top-[2px]",
|
10451
10452
|
"after:border",
|
@@ -10457,7 +10458,7 @@ const Gg = "av-toggle", jg = () => b("peer", "h-6", "w-11", "rounded-full"), Kg
|
|
10457
10458
|
"after:rounded-full",
|
10458
10459
|
"after:transition-all",
|
10459
10460
|
"after:content-['']"
|
10460
|
-
),
|
10461
|
+
), Xg = ({
|
10461
10462
|
mode: e,
|
10462
10463
|
noBorder: t
|
10463
10464
|
}) => b({
|
@@ -10466,7 +10467,7 @@ const Gg = "av-toggle", jg = () => b("peer", "h-6", "w-11", "rounded-full"), Kg
|
|
10466
10467
|
"border-border-light bg-surface-darker": e === "dark",
|
10467
10468
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
10468
10469
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
10469
|
-
}),
|
10470
|
+
}), Zg = ({
|
10470
10471
|
mode: e,
|
10471
10472
|
labelHidden: t
|
10472
10473
|
}) => t ? "sr-only" : b("ml-2 text-sm", {
|
@@ -10474,11 +10475,11 @@ const Gg = "av-toggle", jg = () => b("peer", "h-6", "w-11", "rounded-full"), Kg
|
|
10474
10475
|
"text-copy-lighter": e === "dark",
|
10475
10476
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
10476
10477
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
10477
|
-
}),
|
10478
|
-
|
10478
|
+
}), e1 = ({ className: e }) => b(
|
10479
|
+
Kg,
|
10479
10480
|
"relative flex cursor-pointer items-center",
|
10480
10481
|
e
|
10481
|
-
),
|
10482
|
+
), t1 = ({
|
10482
10483
|
mode: e,
|
10483
10484
|
focusMode: t,
|
10484
10485
|
labelHidden: r,
|
@@ -10486,15 +10487,15 @@ const Gg = "av-toggle", jg = () => b("peer", "h-6", "w-11", "rounded-full"), Kg
|
|
10486
10487
|
noBorder: o
|
10487
10488
|
}) => ({
|
10488
10489
|
toggle: b(
|
10489
|
-
|
10490
|
-
|
10491
|
-
|
10492
|
-
|
10493
|
-
|
10490
|
+
Jg(),
|
10491
|
+
Xg({ mode: e, noBorder: o }),
|
10492
|
+
qg({ focusMode: t }),
|
10493
|
+
Qg(),
|
10494
|
+
Yg()
|
10494
10495
|
),
|
10495
|
-
label:
|
10496
|
+
label: Zg({ mode: e, labelHidden: r }),
|
10496
10497
|
input: "peer sr-only",
|
10497
|
-
wrapper:
|
10498
|
+
wrapper: e1({ className: a })
|
10498
10499
|
}), Pt = ({
|
10499
10500
|
checked: e = !1,
|
10500
10501
|
onChange: t,
|
@@ -10506,7 +10507,7 @@ const Gg = "av-toggle", jg = () => b("peer", "h-6", "w-11", "rounded-full"), Kg
|
|
10506
10507
|
className: i,
|
10507
10508
|
noBorder: l = !1
|
10508
10509
|
}) => {
|
10509
|
-
const d =
|
10510
|
+
const d = t1({
|
10510
10511
|
mode: n,
|
10511
10512
|
focusMode: s,
|
10512
10513
|
labelHidden: a,
|
@@ -10543,7 +10544,7 @@ try {
|
|
10543
10544
|
});
|
10544
10545
|
} catch {
|
10545
10546
|
}
|
10546
|
-
const
|
10547
|
+
const r1 = ({
|
10547
10548
|
open: e,
|
10548
10549
|
onOpenChange: t
|
10549
10550
|
}) => {
|
@@ -10858,10 +10859,10 @@ const e1 = ({
|
|
10858
10859
|
]
|
10859
10860
|
}
|
10860
10861
|
) : null;
|
10861
|
-
}, wt = [0, 3, 6, 9],
|
10862
|
+
}, wt = [0, 3, 6, 9], a1 = No(() => import(
|
10862
10863
|
/* webpackChunkName: "LazyChart" */
|
10863
|
-
"./Chart.
|
10864
|
-
)),
|
10864
|
+
"./Chart.BUCy2gtC.js"
|
10865
|
+
)), o1 = ({
|
10865
10866
|
open: e,
|
10866
10867
|
onOpenChange: t
|
10867
10868
|
}) => {
|
@@ -10917,7 +10918,7 @@ const e1 = ({
|
|
10917
10918
|
className: "prose-dark dark:prose-lighter mt-4 min-h-[535px]",
|
10918
10919
|
children: l && i && i.tokenUsage && i.tokenUsage.series && i.tokenUsage.series.length ? /* @__PURE__ */ A(Io, { fallback: /* @__PURE__ */ c("div", {}), children: [
|
10919
10920
|
/* @__PURE__ */ c("div", { className: "pt-4" }),
|
10920
|
-
/* @__PURE__ */ c(
|
10921
|
+
/* @__PURE__ */ c(a1, { tokenUsage: i.tokenUsage.series, page: f }),
|
10921
10922
|
/* @__PURE__ */ c(gr, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ A(Ye, { children: [
|
10922
10923
|
/* @__PURE__ */ c(
|
10923
10924
|
xt,
|
@@ -10946,7 +10947,7 @@ const e1 = ({
|
|
10946
10947
|
]
|
10947
10948
|
}
|
10948
10949
|
);
|
10949
|
-
},
|
10950
|
+
}, n1 = ({
|
10950
10951
|
isComponent: e = !1
|
10951
10952
|
}) => {
|
10952
10953
|
const { logout: t, getAccessToken: r } = Oe(), [a, o] = U(!1), [n, s] = U(!1), [i, l] = U(!1), [d, f] = U(!1), [u, m] = U(!1), [h, p] = U(!1), [g, y] = U(!1), v = () => {
|
@@ -10984,11 +10985,11 @@ const e1 = ({
|
|
10984
10985
|
children: /* @__PURE__ */ c("p", { children: "Are you sure you want to log out?" })
|
10985
10986
|
}
|
10986
10987
|
),
|
10987
|
-
a && /* @__PURE__ */ c(
|
10988
|
-
n && /* @__PURE__ */ c(
|
10989
|
-
i && /* @__PURE__ */ c(
|
10990
|
-
d && /* @__PURE__ */ c(
|
10991
|
-
u && /* @__PURE__ */ c(
|
10988
|
+
a && /* @__PURE__ */ c(xg, { open: a, onOpenChange: o }),
|
10989
|
+
n && /* @__PURE__ */ c(r1, { open: n, onOpenChange: s }),
|
10990
|
+
i && /* @__PURE__ */ c(Eg, { open: i, onOpenChange: l }),
|
10991
|
+
d && /* @__PURE__ */ c(wg, { open: d, onOpenChange: f }),
|
10992
|
+
u && /* @__PURE__ */ c(o1, { open: u, onOpenChange: m }),
|
10992
10993
|
/* @__PURE__ */ c("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ A(
|
10993
10994
|
gr,
|
10994
10995
|
{
|
@@ -10997,7 +10998,7 @@ const e1 = ({
|
|
10997
10998
|
rowGap: 0,
|
10998
10999
|
columnGap: 0,
|
10999
11000
|
children: [
|
11000
|
-
/* @__PURE__ */ c(Ye, { children: /* @__PURE__ */ c(
|
11001
|
+
/* @__PURE__ */ c(Ye, { children: /* @__PURE__ */ c(Xp, { className: " mr-4 sm:mr-2" }) }),
|
11001
11002
|
/* @__PURE__ */ c(Ye, { children: Ue() && /* @__PURE__ */ A(ye, { children: [
|
11002
11003
|
h && /* @__PURE__ */ c(gl, { className: "mr-4 sm:mr-2" }),
|
11003
11004
|
/* @__PURE__ */ c(hl, { className: "mr-4 sm:mr-2" }),
|
@@ -11058,7 +11059,7 @@ const e1 = ({
|
|
11058
11059
|
}
|
11059
11060
|
),
|
11060
11061
|
!e && /* @__PURE__ */ A(ye, { children: [
|
11061
|
-
/* @__PURE__ */ c(
|
11062
|
+
/* @__PURE__ */ c(Kp, {}),
|
11062
11063
|
/* @__PURE__ */ c(
|
11063
11064
|
ot,
|
11064
11065
|
{
|
@@ -11077,7 +11078,7 @@ const e1 = ({
|
|
11077
11078
|
}
|
11078
11079
|
) })
|
11079
11080
|
] });
|
11080
|
-
}, Gr = "av-bubble", bs = "av-button", rn = "icon", Tl = "button", xo = "link",
|
11081
|
+
}, Gr = "av-bubble", bs = "av-button", rn = "icon", Tl = "button", xo = "link", s1 = ({
|
11081
11082
|
type: e,
|
11082
11083
|
size: t,
|
11083
11084
|
labelRight: r,
|
@@ -11113,7 +11114,7 @@ const e1 = ({
|
|
11113
11114
|
"h-12": t === "large" && n && (r || a)
|
11114
11115
|
});
|
11115
11116
|
}
|
11116
|
-
},
|
11117
|
+
}, i1 = ({
|
11117
11118
|
type: e,
|
11118
11119
|
size: t,
|
11119
11120
|
labelRight: r,
|
@@ -11136,7 +11137,7 @@ const e1 = ({
|
|
11136
11137
|
[s]: t === "large" && (r || a)
|
11137
11138
|
});
|
11138
11139
|
}
|
11139
|
-
},
|
11140
|
+
}, l1 = ({
|
11140
11141
|
mode: e,
|
11141
11142
|
noBackground: t,
|
11142
11143
|
truncate: r,
|
@@ -11172,7 +11173,7 @@ const e1 = ({
|
|
11172
11173
|
return b("not-prose text-copy-lighter", {
|
11173
11174
|
truncate: r
|
11174
11175
|
});
|
11175
|
-
},
|
11176
|
+
}, c1 = ({
|
11176
11177
|
mode: e,
|
11177
11178
|
noBackground: t,
|
11178
11179
|
variant: r
|
@@ -11202,13 +11203,13 @@ const e1 = ({
|
|
11202
11203
|
if (r === "selected")
|
11203
11204
|
return "bg-action-selected-dark";
|
11204
11205
|
}
|
11205
|
-
},
|
11206
|
+
}, d1 = ({
|
11206
11207
|
radius: e
|
11207
11208
|
}) => b({
|
11208
11209
|
"rounded-full": e === "large",
|
11209
11210
|
"rounded-md": e === "medium",
|
11210
11211
|
"rounded-xs": e === "small"
|
11211
|
-
}),
|
11212
|
+
}), u1 = ({
|
11212
11213
|
mode: e,
|
11213
11214
|
disabled: t,
|
11214
11215
|
variant: r
|
@@ -11238,7 +11239,7 @@ const e1 = ({
|
|
11238
11239
|
});
|
11239
11240
|
if (r === "selected")
|
11240
11241
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
11241
|
-
},
|
11242
|
+
}, f1 = ({
|
11242
11243
|
mode: e,
|
11243
11244
|
disabled: t,
|
11244
11245
|
variant: r
|
@@ -11268,7 +11269,7 @@ const e1 = ({
|
|
11268
11269
|
});
|
11269
11270
|
if (r === "selected")
|
11270
11271
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
11271
|
-
},
|
11272
|
+
}, h1 = ({
|
11272
11273
|
mode: e,
|
11273
11274
|
noBorder: t,
|
11274
11275
|
variant: r
|
@@ -11298,14 +11299,14 @@ const e1 = ({
|
|
11298
11299
|
});
|
11299
11300
|
if (r === "selected")
|
11300
11301
|
return "border border-border-selected-dark";
|
11301
|
-
},
|
11302
|
+
}, m1 = ({
|
11302
11303
|
focusMode: e
|
11303
11304
|
}) => b("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
11304
11305
|
"focus:outline-focus-dark": e === "dark",
|
11305
11306
|
"focus:outline-focus-light": e === "light",
|
11306
11307
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
11307
11308
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
11308
|
-
}),
|
11309
|
+
}), p1 = ({
|
11309
11310
|
mode: e,
|
11310
11311
|
raw: t,
|
11311
11312
|
iconClassName: r
|
@@ -11317,11 +11318,11 @@ const e1 = ({
|
|
11317
11318
|
"dark:text-copy-accent-dark": e === "system"
|
11318
11319
|
},
|
11319
11320
|
r
|
11320
|
-
),
|
11321
|
+
), g1 = ({
|
11321
11322
|
animated: e
|
11322
11323
|
}) => b({
|
11323
11324
|
"transition-opacity duration-300 ease-in-out": e
|
11324
|
-
}),
|
11325
|
+
}), y1 = ({
|
11325
11326
|
type: e,
|
11326
11327
|
className: t,
|
11327
11328
|
raw: r,
|
@@ -11341,15 +11342,15 @@ const e1 = ({
|
|
11341
11342
|
animated: y
|
11342
11343
|
}) => (m || (m = "primary"), r ? b(bs, t) : b(
|
11343
11344
|
bs,
|
11344
|
-
|
11345
|
+
l1({
|
11345
11346
|
mode: a,
|
11346
11347
|
variant: m,
|
11347
11348
|
noBackground: u,
|
11348
11349
|
truncate: h
|
11349
11350
|
}),
|
11350
|
-
|
11351
|
-
|
11352
|
-
|
11351
|
+
c1({ mode: a, noBackground: u, variant: m }),
|
11352
|
+
d1({ radius: g }),
|
11353
|
+
s1({
|
11353
11354
|
type: e,
|
11354
11355
|
size: i,
|
11355
11356
|
labelRight: d,
|
@@ -11357,11 +11358,11 @@ const e1 = ({
|
|
11357
11358
|
align: p,
|
11358
11359
|
animated: y
|
11359
11360
|
}),
|
11360
|
-
|
11361
|
-
|
11362
|
-
|
11363
|
-
|
11364
|
-
|
11361
|
+
i1({ type: e, size: i, labelRight: d, labelLeft: f }),
|
11362
|
+
h1({ mode: a, variant: m, noBorder: l }),
|
11363
|
+
m1({ focusMode: o }),
|
11364
|
+
u1({ mode: a, variant: m, disabled: n }),
|
11365
|
+
f1({ mode: a, variant: m, disabled: n }),
|
11365
11366
|
{
|
11366
11367
|
"w-full": s,
|
11367
11368
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
@@ -11370,7 +11371,7 @@ const e1 = ({
|
|
11370
11371
|
"transition-[width] duration-300 ease-in": y
|
11371
11372
|
}),
|
11372
11373
|
t
|
11373
|
-
)),
|
11374
|
+
)), b1 = (e, t, r) => {
|
11374
11375
|
var a;
|
11375
11376
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
11376
11377
|
}, xl = W.forwardRef((e, t) => {
|
@@ -11380,20 +11381,20 @@ const e1 = ({
|
|
11380
11381
|
{
|
11381
11382
|
ref: t,
|
11382
11383
|
onClick: (n) => {
|
11383
|
-
|
11384
|
+
b1(n, a, r);
|
11384
11385
|
},
|
11385
11386
|
...o
|
11386
11387
|
}
|
11387
11388
|
);
|
11388
11389
|
});
|
11389
11390
|
xl.displayName = "BaseButton";
|
11390
|
-
function
|
11391
|
+
function v1() {
|
11391
11392
|
const e = O(!1);
|
11392
11393
|
return B(() => (e.current = !0, () => {
|
11393
11394
|
e.current = !1;
|
11394
11395
|
}), []), Q(() => e.current, []);
|
11395
11396
|
}
|
11396
|
-
function
|
11397
|
+
function w1(e) {
|
11397
11398
|
return Le(() => e.every((t) => t == null) ? () => {
|
11398
11399
|
} : (t) => {
|
11399
11400
|
e.forEach((r) => {
|
@@ -11401,7 +11402,7 @@ function b1(e) {
|
|
11401
11402
|
});
|
11402
11403
|
}, e);
|
11403
11404
|
}
|
11404
|
-
const
|
11405
|
+
const _1 = {
|
11405
11406
|
x: 0,
|
11406
11407
|
y: 0,
|
11407
11408
|
width: 0,
|
@@ -11412,7 +11413,7 @@ const v1 = {
|
|
11412
11413
|
right: 0
|
11413
11414
|
};
|
11414
11415
|
function La(e) {
|
11415
|
-
const t =
|
11416
|
+
const t = v1(), r = O(0), a = O(null), [o, n] = U(_1), s = Le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
11416
11417
|
const l = i[0];
|
11417
11418
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
11418
11419
|
a.current && t() && n(l.contentRect);
|
@@ -11429,14 +11430,14 @@ const Hr = {
|
|
11429
11430
|
// w-8
|
11430
11431
|
large: 48
|
11431
11432
|
// w-12
|
11432
|
-
},
|
11433
|
+
}, k1 = {
|
11433
11434
|
small: 8 * 2,
|
11434
11435
|
// px-2 x 2
|
11435
11436
|
medium: 12 * 2,
|
11436
11437
|
// px-3 x 2
|
11437
11438
|
large: 16 * 2
|
11438
11439
|
// px-4 x 2
|
11439
|
-
},
|
11440
|
+
}, E1 = 2, T1 = 300, an = W.forwardRef(
|
11440
11441
|
({
|
11441
11442
|
children: e,
|
11442
11443
|
disabled: t = !1,
|
@@ -11460,7 +11461,7 @@ const Hr = {
|
|
11460
11461
|
animated: _ = !1,
|
11461
11462
|
...S
|
11462
11463
|
}, N) => {
|
11463
|
-
const k =
|
11464
|
+
const k = y1({
|
11464
11465
|
type: rn,
|
11465
11466
|
mode: r,
|
11466
11467
|
focusMode: a,
|
@@ -11477,15 +11478,15 @@ const Hr = {
|
|
11477
11478
|
radius: y,
|
11478
11479
|
variant: v,
|
11479
11480
|
animated: _
|
11480
|
-
}), C =
|
11481
|
+
}), C = p1({ mode: r, raw: i, iconClassName: w }), T = g1({ animated: _ }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, D] = La(), [x, $] = La(), [M, F] = La(), V = O(0), R = O(null), L = O(null), G = w1([N, R]);
|
11481
11482
|
return _e(() => {
|
11482
|
-
M && M.current && _ && (V.current = F.width +
|
11483
|
+
M && M.current && _ && (V.current = F.width + k1[u] + (l ? 0 : E1), R.current && !R.current.style.width && (R.current.style.width = `${Hr[u]}px`));
|
11483
11484
|
}, [F, M, u, l, _]), _e(() => {
|
11484
11485
|
if (R && R.current && _) {
|
11485
11486
|
let z = Hr[u];
|
11486
11487
|
m && E && D.width > 0 ? z = D.width + V.current : h && x && $.width > 0 && (z = $.width + V.current), L.current && clearTimeout(L.current), z !== parseInt(R.current.style.width || "0", 10) && (E.current && (E.current.style.opacity = "0"), x.current && (x.current.style.opacity = "0"), R.current.style.width = `${z}px`, z > Hr[u] && (L.current = setTimeout(() => {
|
11487
11488
|
E.current && m && (E.current.style.opacity = "1"), x.current && h && (x.current.style.opacity = "1"), L.current = null;
|
11488
|
-
},
|
11489
|
+
}, T1 * 0.8))), z === Hr[u] && (E.current && (E.current.style.opacity = "0"), x.current && (x.current.style.opacity = "0"));
|
11489
11490
|
}
|
11490
11491
|
}, [
|
11491
11492
|
D,
|
@@ -11562,7 +11563,7 @@ try {
|
|
11562
11563
|
});
|
11563
11564
|
} catch {
|
11564
11565
|
}
|
11565
|
-
const
|
11566
|
+
const x1 = W.forwardRef(
|
11566
11567
|
({
|
11567
11568
|
children: e,
|
11568
11569
|
mode: t = "system",
|
@@ -11600,7 +11601,7 @@ const E1 = W.forwardRef(
|
|
11600
11601
|
) });
|
11601
11602
|
}
|
11602
11603
|
);
|
11603
|
-
|
11604
|
+
x1.displayName = "ButtonSort";
|
11604
11605
|
const Sl = ({
|
11605
11606
|
children: e,
|
11606
11607
|
fill: t,
|
@@ -11644,7 +11645,7 @@ try {
|
|
11644
11645
|
});
|
11645
11646
|
} catch {
|
11646
11647
|
}
|
11647
|
-
const
|
11648
|
+
const S1 = ({
|
11648
11649
|
className: e,
|
11649
11650
|
viewBox: t,
|
11650
11651
|
title: r,
|
@@ -11670,7 +11671,7 @@ const T1 = ({
|
|
11670
11671
|
/* @__PURE__ */ c("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
|
11671
11672
|
]
|
11672
11673
|
}
|
11673
|
-
),
|
11674
|
+
), C1 = ({
|
11674
11675
|
className: e,
|
11675
11676
|
viewBox: t,
|
11676
11677
|
title: r,
|
@@ -11701,20 +11702,20 @@ try {
|
|
11701
11702
|
});
|
11702
11703
|
} catch {
|
11703
11704
|
}
|
11704
|
-
const
|
11705
|
+
const I1 = ({ kind: e, noMaxWidth: t }) => b("px-4 py-2", {
|
11705
11706
|
"max-w-xs sm:max-w-md md:max-w-2xl": !t,
|
11706
11707
|
"lg:max-w-3xl": e === "left" && !t
|
11707
|
-
}),
|
11708
|
+
}), N1 = ({ kind: e }) => b({
|
11708
11709
|
"bg-surface-lighter dark:bg-surface-dark": e === "left",
|
11709
11710
|
"bg-surface-accent": e === "right"
|
11710
|
-
}),
|
11711
|
+
}), A1 = ({ kind: e }) => b(
|
11711
11712
|
"prose prose-dark dark:prose-lighter",
|
11712
11713
|
"prose-blockquote:my-1",
|
11713
11714
|
"prose-ol:my-1 prose-ul:my-1",
|
11714
11715
|
{
|
11715
11716
|
"text-copy-lighter": e === "right"
|
11716
11717
|
}
|
11717
|
-
),
|
11718
|
+
), R1 = ({ kind: e, tail: t }) => {
|
11718
11719
|
if (t)
|
11719
11720
|
return b(
|
11720
11721
|
`${Gr}-${e}-tail`,
|
@@ -11735,7 +11736,7 @@ const S1 = ({ kind: e, noMaxWidth: t }) => b("px-4 py-2", {
|
|
11735
11736
|
"rounded-tr-xl": e === "left",
|
11736
11737
|
"rounded-tl-xl": e === "right"
|
11737
11738
|
});
|
11738
|
-
},
|
11739
|
+
}, $1 = ({
|
11739
11740
|
kind: e,
|
11740
11741
|
className: t,
|
11741
11742
|
contentClassName: r,
|
@@ -11753,10 +11754,10 @@ const S1 = ({ kind: e, noMaxWidth: t }) => b("px-4 py-2", {
|
|
11753
11754
|
), s = b(
|
11754
11755
|
`${Gr}-content`,
|
11755
11756
|
"flex flex-col empty:hidden",
|
11756
|
-
|
11757
|
-
|
11758
|
-
|
11759
|
-
|
11757
|
+
I1({ kind: e, noMaxWidth: a }),
|
11758
|
+
A1({ kind: e }),
|
11759
|
+
N1({ kind: e }),
|
11760
|
+
R1({ kind: e, tail: o }),
|
11760
11761
|
r
|
11761
11762
|
), i = "pr-2 pt-1 text-end text-xs text-copy-light", l = b("flex flex-col-reverse sm:flex-row", {
|
11762
11763
|
"ml-2": e === "left" && !o,
|
@@ -11770,7 +11771,7 @@ const S1 = ({ kind: e, noMaxWidth: t }) => b("px-4 py-2", {
|
|
11770
11771
|
footer: i,
|
11771
11772
|
copyButton: l
|
11772
11773
|
};
|
11773
|
-
},
|
11774
|
+
}, O1 = "FOOTER_EMPTY", Cl = ({
|
11774
11775
|
children: e,
|
11775
11776
|
kind: t = "left",
|
11776
11777
|
className: r,
|
@@ -11783,7 +11784,7 @@ const S1 = ({ kind: e, noMaxWidth: t }) => b("px-4 py-2", {
|
|
11783
11784
|
noMaxWidth: d = !1,
|
11784
11785
|
tail: f = !1
|
11785
11786
|
}) => {
|
11786
|
-
const [u, m] = U(!1), h =
|
11787
|
+
const [u, m] = U(!1), h = $1({
|
11787
11788
|
kind: t,
|
11788
11789
|
className: r,
|
11789
11790
|
contentClassName: a,
|
@@ -11804,7 +11805,7 @@ const S1 = ({ kind: e, noMaxWidth: t }) => b("px-4 py-2", {
|
|
11804
11805
|
/* @__PURE__ */ c("div", { className: h.main, children: e }),
|
11805
11806
|
o && Object.keys(o).map((y, v) => {
|
11806
11807
|
const w = o[y];
|
11807
|
-
return w ===
|
11808
|
+
return w === O1 ? /* @__PURE__ */ c("div", { className: "prose-p:m-0", children: /* @__PURE__ */ c("p", { className: h.footer, "aria-hidden": "true", children: /* @__PURE__ */ c("span", { className: "invisible", children: " " }) }) }, `${y}-${v}`) : w ? /* @__PURE__ */ c("div", { className: "prose-p:m-0", children: /* @__PURE__ */ A("p", { className: h.footer, children: [
|
11808
11809
|
y,
|
11809
11810
|
": ",
|
11810
11811
|
w
|
@@ -11823,7 +11824,7 @@ const S1 = ({ kind: e, noMaxWidth: t }) => b("px-4 py-2", {
|
|
11823
11824
|
label: u ? "Copied to clipboard" : "Copy to clipboard",
|
11824
11825
|
onClick: g,
|
11825
11826
|
disabled: u,
|
11826
|
-
children: u ? /* @__PURE__ */ c(
|
11827
|
+
children: u ? /* @__PURE__ */ c(S1, { size: "size-3" }) : /* @__PURE__ */ c(C1, { size: "size-3" })
|
11827
11828
|
}
|
11828
11829
|
) })
|
11829
11830
|
] });
|
@@ -11841,7 +11842,7 @@ try {
|
|
11841
11842
|
});
|
11842
11843
|
} catch {
|
11843
11844
|
}
|
11844
|
-
const ws = "av-spinner",
|
11845
|
+
const ws = "av-spinner", L1 = ({
|
11845
11846
|
spinnerRef: e,
|
11846
11847
|
mode: t = "system",
|
11847
11848
|
type: r = "circle",
|
@@ -11888,7 +11889,7 @@ try {
|
|
11888
11889
|
});
|
11889
11890
|
} catch {
|
11890
11891
|
}
|
11891
|
-
const _s = "av-button", ma = "icon", on = "button", So = "link",
|
11892
|
+
const _s = "av-button", ma = "icon", on = "button", So = "link", P1 = ({
|
11892
11893
|
type: e,
|
11893
11894
|
size: t,
|
11894
11895
|
labelRight: r,
|
@@ -11924,7 +11925,7 @@ const _s = "av-button", ma = "icon", on = "button", So = "link", O1 = ({
|
|
11924
11925
|
"h-12": t === "large" && n && (r || a)
|
11925
11926
|
});
|
11926
11927
|
}
|
11927
|
-
},
|
11928
|
+
}, D1 = ({
|
11928
11929
|
type: e,
|
11929
11930
|
size: t,
|
11930
11931
|
labelRight: r,
|
@@ -11947,7 +11948,7 @@ const _s = "av-button", ma = "icon", on = "button", So = "link", O1 = ({
|
|
11947
11948
|
[s]: t === "large" && (r || a)
|
11948
11949
|
});
|
11949
11950
|
}
|
11950
|
-
},
|
11951
|
+
}, M1 = ({
|
11951
11952
|
mode: e,
|
11952
11953
|
noBackground: t,
|
11953
11954
|
truncate: r,
|
@@ -11983,7 +11984,7 @@ const _s = "av-button", ma = "icon", on = "button", So = "link", O1 = ({
|
|
11983
11984
|
return b("not-prose text-copy-lighter", {
|
11984
11985
|
truncate: r
|
11985
11986
|
});
|
11986
|
-
},
|
11987
|
+
}, B1 = ({
|
11987
11988
|
mode: e,
|
11988
11989
|
noBackground: t,
|
11989
11990
|
variant: r
|
@@ -12013,13 +12014,13 @@ const _s = "av-button", ma = "icon", on = "button", So = "link", O1 = ({
|
|
12013
12014
|
if (r === "selected")
|
12014
12015
|
return "bg-action-selected-dark";
|
12015
12016
|
}
|
12016
|
-
},
|
12017
|
+
}, H1 = ({
|
12017
12018
|
radius: e
|
12018
12019
|
}) => b({
|
12019
12020
|
"rounded-full": e === "large",
|
12020
12021
|
"rounded-md": e === "medium",
|
12021
12022
|
"rounded-xs": e === "small"
|
12022
|
-
}),
|
12023
|
+
}), z1 = ({
|
12023
12024
|
mode: e,
|
12024
12025
|
disabled: t,
|
12025
12026
|
variant: r
|
@@ -12049,7 +12050,7 @@ const _s = "av-button", ma = "icon", on = "button", So = "link", O1 = ({
|
|
12049
12050
|
});
|
12050
12051
|
if (r === "selected")
|
12051
12052
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
12052
|
-
},
|
12053
|
+
}, U1 = ({
|
12053
12054
|
mode: e,
|
12054
12055
|
disabled: t,
|
12055
12056
|
variant: r
|
@@ -12079,7 +12080,7 @@ const _s = "av-button", ma = "icon", on = "button", So = "link", O1 = ({
|
|
12079
12080
|
});
|
12080
12081
|
if (r === "selected")
|
12081
12082
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
12082
|
-
},
|
12083
|
+
}, V1 = ({
|
12083
12084
|
mode: e,
|
12084
12085
|
noBorder: t,
|
12085
12086
|
variant: r
|
@@ -12109,14 +12110,14 @@ const _s = "av-button", ma = "icon", on = "button", So = "link", O1 = ({
|
|
12109
12110
|
});
|
12110
12111
|
if (r === "selected")
|
12111
12112
|
return "border border-border-selected-dark";
|
12112
|
-
},
|
12113
|
+
}, F1 = ({
|
12113
12114
|
focusMode: e
|
12114
12115
|
}) => b("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
12115
12116
|
"focus:outline-focus-dark": e === "dark",
|
12116
12117
|
"focus:outline-focus-light": e === "light",
|
12117
12118
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
12118
12119
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
12119
|
-
}),
|
12120
|
+
}), W1 = ({
|
12120
12121
|
mode: e,
|
12121
12122
|
raw: t,
|
12122
12123
|
iconClassName: r
|
@@ -12128,7 +12129,7 @@ const _s = "av-button", ma = "icon", on = "button", So = "link", O1 = ({
|
|
12128
12129
|
"dark:text-copy-accent-dark": e === "system"
|
12129
12130
|
},
|
12130
12131
|
r
|
12131
|
-
),
|
12132
|
+
), G1 = ({
|
12132
12133
|
animated: e
|
12133
12134
|
}) => b({
|
12134
12135
|
"transition-opacity duration-300 ease-in-out": e
|
@@ -12152,15 +12153,15 @@ const _s = "av-button", ma = "icon", on = "button", So = "link", O1 = ({
|
|
12152
12153
|
animated: y
|
12153
12154
|
}) => (m || (m = "primary"), r ? b(_s, t) : b(
|
12154
12155
|
_s,
|
12155
|
-
|
12156
|
+
M1({
|
12156
12157
|
mode: a,
|
12157
12158
|
variant: m,
|
12158
12159
|
noBackground: u,
|
12159
12160
|
truncate: h
|
12160
12161
|
}),
|
12161
|
-
|
12162
|
-
|
12163
|
-
|
12162
|
+
B1({ mode: a, noBackground: u, variant: m }),
|
12163
|
+
H1({ radius: g }),
|
12164
|
+
P1({
|
12164
12165
|
type: e,
|
12165
12166
|
size: i,
|
12166
12167
|
labelRight: d,
|
@@ -12168,11 +12169,11 @@ const _s = "av-button", ma = "icon", on = "button", So = "link", O1 = ({
|
|
12168
12169
|
align: p,
|
12169
12170
|
animated: y
|
12170
12171
|
}),
|
12171
|
-
|
12172
|
-
|
12173
|
-
|
12174
|
-
|
12175
|
-
|
12172
|
+
D1({ type: e, size: i, labelRight: d, labelLeft: f }),
|
12173
|
+
V1({ mode: a, variant: m, noBorder: l }),
|
12174
|
+
F1({ focusMode: o }),
|
12175
|
+
z1({ mode: a, variant: m, disabled: n }),
|
12176
|
+
U1({ mode: a, variant: m, disabled: n }),
|
12176
12177
|
{
|
12177
12178
|
"w-full": s,
|
12178
12179
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
@@ -12181,7 +12182,7 @@ const _s = "av-button", ma = "icon", on = "button", So = "link", O1 = ({
|
|
12181
12182
|
"transition-[width] duration-300 ease-in": e === ma && y
|
12182
12183
|
}),
|
12183
12184
|
t
|
12184
|
-
)),
|
12185
|
+
)), j1 = (e, t, r) => {
|
12185
12186
|
var a;
|
12186
12187
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
12187
12188
|
}, nn = W.forwardRef((e, t) => {
|
@@ -12191,7 +12192,7 @@ const _s = "av-button", ma = "icon", on = "button", So = "link", O1 = ({
|
|
12191
12192
|
{
|
12192
12193
|
ref: t,
|
12193
12194
|
onClick: (n) => {
|
12194
|
-
|
12195
|
+
j1(n, a, r);
|
12195
12196
|
},
|
12196
12197
|
...o
|
12197
12198
|
}
|
@@ -12241,13 +12242,13 @@ const Nl = W.forwardRef(
|
|
12241
12242
|
}
|
12242
12243
|
);
|
12243
12244
|
Nl.displayName = "Button";
|
12244
|
-
function
|
12245
|
+
function K1() {
|
12245
12246
|
const e = O(!1);
|
12246
12247
|
return B(() => (e.current = !0, () => {
|
12247
12248
|
e.current = !1;
|
12248
12249
|
}), []), Q(() => e.current, []);
|
12249
12250
|
}
|
12250
|
-
function
|
12251
|
+
function J1(e) {
|
12251
12252
|
return Le(() => e.every((t) => t == null) ? () => {
|
12252
12253
|
} : (t) => {
|
12253
12254
|
e.forEach((r) => {
|
@@ -12255,7 +12256,7 @@ function j1(e) {
|
|
12255
12256
|
});
|
12256
12257
|
}, e);
|
12257
12258
|
}
|
12258
|
-
const
|
12259
|
+
const q1 = {
|
12259
12260
|
x: 0,
|
12260
12261
|
y: 0,
|
12261
12262
|
width: 0,
|
@@ -12266,7 +12267,7 @@ const K1 = {
|
|
12266
12267
|
right: 0
|
12267
12268
|
};
|
12268
12269
|
function Pa(e) {
|
12269
|
-
const t =
|
12270
|
+
const t = K1(), r = O(0), a = O(null), [o, n] = U(q1), s = Le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
12270
12271
|
const l = i[0];
|
12271
12272
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
12272
12273
|
a.current && t() && n(l.contentRect);
|
@@ -12283,14 +12284,14 @@ const zr = {
|
|
12283
12284
|
// w-8
|
12284
12285
|
large: 48
|
12285
12286
|
// w-12
|
12286
|
-
},
|
12287
|
+
}, Y1 = {
|
12287
12288
|
small: 8 * 2,
|
12288
12289
|
// px-2 x 2
|
12289
12290
|
medium: 12 * 2,
|
12290
12291
|
// px-3 x 2
|
12291
12292
|
large: 16 * 2
|
12292
12293
|
// px-4 x 2
|
12293
|
-
},
|
12294
|
+
}, Q1 = 2, X1 = 300, Al = W.forwardRef(
|
12294
12295
|
({
|
12295
12296
|
children: e,
|
12296
12297
|
disabled: t = !1,
|
@@ -12331,15 +12332,15 @@ const zr = {
|
|
12331
12332
|
radius: y,
|
12332
12333
|
variant: v,
|
12333
12334
|
animated: _
|
12334
|
-
}), C =
|
12335
|
+
}), C = W1({ mode: r, raw: i, iconClassName: w }), T = G1({ animated: _ }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, D] = Pa(), [x, $] = Pa(), [M, F] = Pa(), V = O(0), R = O(null), L = O(null), G = J1([N, R]);
|
12335
12336
|
return _e(() => {
|
12336
|
-
M && M.current && _ && (V.current = F.width +
|
12337
|
+
M && M.current && _ && (V.current = F.width + Y1[u] + (l ? 0 : Q1), R.current && !R.current.style.width && (R.current.style.width = `${zr[u]}px`));
|
12337
12338
|
}, [F, M, u, l, _]), _e(() => {
|
12338
12339
|
if (R && R.current && _) {
|
12339
12340
|
let z = zr[u];
|
12340
12341
|
m && E && D.width > 0 ? z = D.width + V.current : h && x && $.width > 0 && (z = $.width + V.current), L.current && clearTimeout(L.current), z !== parseInt(R.current.style.width || "0", 10) && (E.current && (E.current.style.opacity = "0"), x.current && (x.current.style.opacity = "0"), R.current.style.width = `${z}px`, z > zr[u] && (L.current = setTimeout(() => {
|
12341
12342
|
E.current && m && (E.current.style.opacity = "1"), x.current && h && (x.current.style.opacity = "1"), L.current = null;
|
12342
|
-
},
|
12343
|
+
}, X1 * 0.8))), z === zr[u] && (E.current && (E.current.style.opacity = "0"), x.current && (x.current.style.opacity = "0"));
|
12343
12344
|
}
|
12344
12345
|
}, [
|
12345
12346
|
D,
|
@@ -12416,7 +12417,7 @@ try {
|
|
12416
12417
|
});
|
12417
12418
|
} catch {
|
12418
12419
|
}
|
12419
|
-
const
|
12420
|
+
const Z1 = W.forwardRef(
|
12420
12421
|
({
|
12421
12422
|
children: e,
|
12422
12423
|
mode: t = "system",
|
@@ -12454,10 +12455,10 @@ const Q1 = W.forwardRef(
|
|
12454
12455
|
) });
|
12455
12456
|
}
|
12456
12457
|
);
|
12457
|
-
|
12458
|
-
const
|
12458
|
+
Z1.displayName = "ButtonSort";
|
12459
|
+
const ey = 200, ty = ({
|
12459
12460
|
string: e,
|
12460
|
-
idealLength: t =
|
12461
|
+
idealLength: t = ey
|
12461
12462
|
}) => {
|
12462
12463
|
if (e.length <= t)
|
12463
12464
|
return { string: e, isTruncated: !1 };
|
@@ -12468,7 +12469,7 @@ const X1 = 200, Z1 = ({
|
|
12468
12469
|
string: e.slice(0, t + r),
|
12469
12470
|
isTruncated: !0
|
12470
12471
|
};
|
12471
|
-
},
|
12472
|
+
}, ry = ({
|
12472
12473
|
children: e,
|
12473
12474
|
length: t = 200,
|
12474
12475
|
mode: r = "system",
|
@@ -12477,7 +12478,7 @@ const X1 = 200, Z1 = ({
|
|
12477
12478
|
const [o, n] = U(!1);
|
12478
12479
|
if (typeof e != "string")
|
12479
12480
|
return e;
|
12480
|
-
const { string: s, isTruncated: i } =
|
12481
|
+
const { string: s, isTruncated: i } = ty({
|
12481
12482
|
string: e,
|
12482
12483
|
idealLength: t
|
12483
12484
|
});
|
@@ -12511,7 +12512,7 @@ try {
|
|
12511
12512
|
});
|
12512
12513
|
} catch {
|
12513
12514
|
}
|
12514
|
-
const
|
12515
|
+
const ay = ({ content: e }) => /* @__PURE__ */ c(
|
12515
12516
|
Cl,
|
12516
12517
|
{
|
12517
12518
|
tail: !0,
|
@@ -12519,14 +12520,14 @@ const ty = ({ content: e }) => /* @__PURE__ */ c(
|
|
12519
12520
|
copyToClipboard: e,
|
12520
12521
|
copyToClipboardFocusMode: "light",
|
12521
12522
|
className: "mt-3",
|
12522
|
-
children: /* @__PURE__ */ c(
|
12523
|
+
children: /* @__PURE__ */ c(ry, { mode: "light", focusMode: "light", children: e })
|
12523
12524
|
}
|
12524
|
-
), Es = 2,
|
12525
|
+
), Es = 2, oy = No(
|
12525
12526
|
() => import(
|
12526
12527
|
/* webpackChunkName: "LazyMessageAssistant" */
|
12527
|
-
"./ChatBubbleAssistant.
|
12528
|
+
"./ChatBubbleAssistant.tSfEZf2h.js"
|
12528
12529
|
)
|
12529
|
-
),
|
12530
|
+
), ny = W.memo(
|
12530
12531
|
({
|
12531
12532
|
role: e,
|
12532
12533
|
content: t,
|
@@ -12537,8 +12538,8 @@ const ty = ({ content: e }) => /* @__PURE__ */ c(
|
|
12537
12538
|
const {
|
12538
12539
|
state: { restoring: n, streaming: s }
|
12539
12540
|
} = re(Ne);
|
12540
|
-
return e === _h && t ? /* @__PURE__ */ c(
|
12541
|
-
|
12541
|
+
return e === _h && t ? /* @__PURE__ */ c(ay, { content: t }) : s && (e === Yr || e === Va) && (!t || t && t.length < Es) ? /* @__PURE__ */ c(Cl, { tail: !0, children: /* @__PURE__ */ c(L1, { type: "dots" }) }) : (e === Yr || e === Va) && t && t.length >= Es ? /* @__PURE__ */ c(Io, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(
|
12542
|
+
oy,
|
12542
12543
|
{
|
12543
12544
|
role: e,
|
12544
12545
|
content: t,
|
@@ -12549,7 +12550,7 @@ const ty = ({ content: e }) => /* @__PURE__ */ c(
|
|
12549
12550
|
}
|
12550
12551
|
) }) : null;
|
12551
12552
|
}
|
12552
|
-
),
|
12553
|
+
), sy = () => {
|
12553
12554
|
const { messages: e } = $t(), t = e ? e.map((r, a) => r.role === Yr ? a : -1).filter((r) => r !== -1).pop() : -1;
|
12554
12555
|
return e && e.length > 0 ? /* @__PURE__ */ c("div", { className: "space-y-6 mt-2 @container", children: e == null ? void 0 : e.map((r, a) => {
|
12555
12556
|
let o;
|
@@ -12566,7 +12567,7 @@ const ty = ({ content: e }) => /* @__PURE__ */ c(
|
|
12566
12567
|
}), i = s && s.length > 0 ? s.filter(Boolean).join(`
|
12567
12568
|
`) : void 0, l = r.role === Yr && a === t;
|
12568
12569
|
return /* @__PURE__ */ c(
|
12569
|
-
|
12570
|
+
ny,
|
12570
12571
|
{
|
12571
12572
|
role: r.role,
|
12572
12573
|
content: i,
|
@@ -12577,7 +12578,7 @@ const ty = ({ content: e }) => /* @__PURE__ */ c(
|
|
12577
12578
|
n
|
12578
12579
|
);
|
12579
12580
|
}) }) : null;
|
12580
|
-
},
|
12581
|
+
}, iy = () => {
|
12581
12582
|
const { isAuthenticated: e } = Oe(), { ref: t, inViewport: r } = cd(), a = O(null), o = O(null), {
|
12582
12583
|
state: { footerPosition: n, footerHeight: s, footerOffset: i }
|
12583
12584
|
} = re(Go), {
|
@@ -12598,12 +12599,12 @@ const ty = ({ content: e }) => /* @__PURE__ */ c(
|
|
12598
12599
|
}, [n, s, i]), /* @__PURE__ */ A(ye, { children: [
|
12599
12600
|
/* @__PURE__ */ A("div", { className: f, ref: a, children: [
|
12600
12601
|
/* @__PURE__ */ c(nc, {}),
|
12601
|
-
/* @__PURE__ */ c(
|
12602
|
+
/* @__PURE__ */ c(sy, {}),
|
12602
12603
|
/* @__PURE__ */ c("div", { ref: t, className: "scroll-marker" }),
|
12603
12604
|
/* @__PURE__ */ c("div", { ref: o, className: "pt-20" })
|
12604
12605
|
] }),
|
12605
12606
|
/* @__PURE__ */ c(
|
12606
|
-
|
12607
|
+
Yp,
|
12607
12608
|
{
|
12608
12609
|
show: !r && n === ir,
|
12609
12610
|
bottom: d.current,
|
@@ -12725,7 +12726,7 @@ function Rl({
|
|
12725
12726
|
className: En({
|
12726
12727
|
extraClass: "mt-5"
|
12727
12728
|
}),
|
12728
|
-
children: /* @__PURE__ */ c(
|
12729
|
+
children: /* @__PURE__ */ c(n1, { isComponent: e })
|
12729
12730
|
}
|
12730
12731
|
),
|
12731
12732
|
/* @__PURE__ */ c(
|
@@ -12739,10 +12740,10 @@ function Rl({
|
|
12739
12740
|
style: {
|
12740
12741
|
height: o
|
12741
12742
|
},
|
12742
|
-
children: /* @__PURE__ */ c(
|
12743
|
+
children: /* @__PURE__ */ c(iy, {})
|
12743
12744
|
}
|
12744
12745
|
),
|
12745
|
-
/* @__PURE__ */ c(
|
12746
|
+
/* @__PURE__ */ c(yg, { isComponent: e })
|
12746
12747
|
]
|
12747
12748
|
}
|
12748
12749
|
)
|
@@ -12754,13 +12755,13 @@ function Rl({
|
|
12754
12755
|
);
|
12755
12756
|
}
|
12756
12757
|
Rl.displayName = "App";
|
12757
|
-
const
|
12758
|
+
const wy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Rl }, Symbol.toStringTag, { value: "Module" }));
|
12758
12759
|
export {
|
12759
|
-
|
12760
|
-
|
12760
|
+
wy as App,
|
12761
|
+
Yp as ButtonScroll,
|
12761
12762
|
Ne as ChatContext,
|
12762
12763
|
It as E,
|
12763
|
-
|
12764
|
+
O1 as Me,
|
12764
12765
|
Cl as Oe,
|
12765
12766
|
cd as b,
|
12766
12767
|
Ni as getDefaultExportFromCjs
|