@versini/sassysaint 8.35.0 → 8.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.DMWKDv8l.js → AboutChangelog.CNFqwQlB.js} +2 -2
- package/dist/chunks/{AboutEntry.DFUYyQsY.js → AboutEntry.B7_RtVXN.js} +6 -6
- package/dist/chunks/{App.DCSCEeDu.js → App.jScnP0cm.js} +353 -352
- package/dist/chunks/{Chart.jZDpolhQ.js → Chart.B-faALB3.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.ChVHToDP.js → ChatBubbleAssistant.Ck5z9TEG.js} +3 -3
- package/dist/chunks/{HistoryEntry.R5DVjOAt.js → HistoryEntry.BjH7O284.js} +2 -2
- package/dist/chunks/{LNWAZHJI.DucKAHzu.js → LNWAZHJI.CtEj9sUN.js} +1 -1
- package/dist/chunks/{ProfileEntry.Im3Gy6i6.js → ProfileEntry.BbGrkpwi.js} +2 -2
- package/dist/chunks/{SettingsEntry.C2uaG7Ju.js → SettingsEntry.DVwYerEI.js} +2 -2
- package/dist/chunks/{UsageEntry.CpZOGYr5.js → UsageEntry.Cmt6ZxGc.js} +3 -3
- package/dist/chunks/{index.DgZtT_J4.js → index.BZodJHHE.js} +1 -1
- package/dist/chunks/{index.JQwwuZH2.js → index.Bx_do3Wo.js} +2 -2
- package/dist/chunks/{index.D9gw5Emx.js → index.CYFcOu3e.js} +1 -1
- package/dist/chunks/{index.C6zTF9ZF.js → index.D7FDOwgn.js} +3 -3
- package/dist/chunks/{index.DOBzYZBm.js → index.DkEyDu78.js} +1 -1
- package/dist/chunks/{index.Bcs1SNB7.js → index.w3iTzmA2.js} +2 -2
- package/dist/chunks/{useMarkdown.BLLzDS29.js → useMarkdown.DB-20DxL.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -1,5 +1,5 @@
|
|
1
1
|
import { jsx as i, jsxs as T, Fragment as ue } from "react/jsx-runtime";
|
2
|
-
import { Subscribable as ho, pendingThenable as ka, resolveEnabled as Ee, shallowEqualObjects as Er, resolveStaleTime as gt, noop as _r, isServer as Sr, isValidTimeout as Ea, focusManager as mo, fetchState as fo, replaceData as _a, notifyManager as _s, timeUntilStale as po, shouldThrowError as go, useQueryClient as yo, I as re, ACTION_SORT as bo, ACTION_SEARCH as vo, ACTION_RESET_PROMPT as Ss, ACTION_TOGGLE_PROMPT as Ts, ue as xe, DEFAULT_ICON_ACTION_SIZE as Te, isTauri as Wt, n as Ve, isProbablyiPhone as Ae, L as xs, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as jt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as wo, LOCAL_STORAGE_REASONING_DISCLOSURE as ko, TOAST_CHAT_SAVED as Eo, PROMPT_CLASSNAME as _o, PROMPT_EDITABLE_AREA_CLASSNAME as So, ERROR_MESSAGE as To, ROLE_INTERNAL as Tr, CLIPBOARD_PROMPT as Ta, isProbablyMobile as Je, INPUT_PLACEHOLDER_TEXT_MOBILE as xa, INPUT_PLACEHOLDER_TEXT_ENTER as Ca, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ia, FOOTER_DISCLAIMERS as Ra, INPUT_BOTTOM_OFFSET_EXTRA as xo, INPUT_BOTTOM_OFFSET_IPHONE as Co, INPUT_BOTTOM_OFFSET as Cs, TOAST_PROVIDER_CHANGED as Io, LOG_OUT as Aa, getMessageContaintWrapperClass as Ro, UI_FOOTER_BUFFER as Is, UI_BUTTON_SCROLL_BUFFER as Ao, Logo as No, UI_DEFAULT_MAIN_HEIGHT as Na, APP_CLASSNAME as Oo, getMainPaddingClass as Oa, r as $o, LOCAL_STORAGE_SORT as Po, LOCAL_STORAGE_SEARCH as Mo } from "./index.
|
2
|
+
import { Subscribable as ho, pendingThenable as ka, resolveEnabled as Ee, shallowEqualObjects as Er, resolveStaleTime as gt, noop as _r, isServer as Sr, isValidTimeout as Ea, focusManager as mo, fetchState as fo, replaceData as _a, notifyManager as _s, timeUntilStale as po, shouldThrowError as go, useQueryClient as yo, I as re, ACTION_SORT as bo, ACTION_SEARCH as vo, ACTION_RESET_PROMPT as Ss, ACTION_TOGGLE_PROMPT as Ts, ue as xe, DEFAULT_ICON_ACTION_SIZE as Te, isTauri as Wt, n as Ve, isProbablyiPhone as Ae, L as xs, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as jt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as wo, LOCAL_STORAGE_REASONING_DISCLOSURE as ko, TOAST_CHAT_SAVED as Eo, PROMPT_CLASSNAME as _o, PROMPT_EDITABLE_AREA_CLASSNAME as So, ERROR_MESSAGE as To, ROLE_INTERNAL as Tr, CLIPBOARD_PROMPT as Ta, isProbablyMobile as Je, INPUT_PLACEHOLDER_TEXT_MOBILE as xa, INPUT_PLACEHOLDER_TEXT_ENTER as Ca, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ia, FOOTER_DISCLAIMERS as Ra, INPUT_BOTTOM_OFFSET_EXTRA as xo, INPUT_BOTTOM_OFFSET_IPHONE as Co, INPUT_BOTTOM_OFFSET as Cs, TOAST_PROVIDER_CHANGED as Io, LOG_OUT as Aa, getMessageContaintWrapperClass as Ro, UI_FOOTER_BUFFER as Is, UI_BUTTON_SCROLL_BUFFER as Ao, Logo as No, UI_DEFAULT_MAIN_HEIGHT as Na, APP_CLASSNAME as Oo, getMainPaddingClass as Oa, r as $o, LOCAL_STORAGE_SORT as Po, LOCAL_STORAGE_SEARCH as Mo } from "./index.Bx_do3Wo.js";
|
3
3
|
import * as Y from "react";
|
4
4
|
import Z, { useEffect as $, useRef as R, useState as z, useCallback as V, useSyncExternalStore as Lo, useMemo as he, useId as Kr, useContext as X, useLayoutEffect as Oe, createContext as Rs, useDebugValue as Bo, forwardRef as As, Suspense as Ns, lazy as it, useReducer as St } from "react";
|
5
5
|
import p from "clsx";
|
@@ -1942,7 +1942,7 @@ const lt = Z.createContext({
|
|
1942
1942
|
)
|
1943
1943
|
}), vc = ({
|
1944
1944
|
buttonClassName: e
|
1945
|
-
}) => p("rounded-none text-sm", e),
|
1945
|
+
}) => p("rounded-none text-sm", e), Wm = ({
|
1946
1946
|
children: e,
|
1947
1947
|
mode: t = "system",
|
1948
1948
|
caption: r,
|
@@ -1981,7 +1981,7 @@ const lt = Z.createContext({
|
|
1981
1981
|
)
|
1982
1982
|
}
|
1983
1983
|
);
|
1984
|
-
},
|
1984
|
+
}, jm = ({
|
1985
1985
|
children: e,
|
1986
1986
|
className: t,
|
1987
1987
|
...r
|
@@ -1994,7 +1994,7 @@ const lt = Z.createContext({
|
|
1994
1994
|
stickyHeader: a.stickyHeader
|
1995
1995
|
});
|
1996
1996
|
return /* @__PURE__ */ i("thead", { className: s, ...r, children: e });
|
1997
|
-
},
|
1997
|
+
}, Gm = ({
|
1998
1998
|
children: e,
|
1999
1999
|
className: t,
|
2000
2000
|
...r
|
@@ -2007,10 +2007,10 @@ const lt = Z.createContext({
|
|
2007
2007
|
stickyFooter: a.stickyFooter
|
2008
2008
|
});
|
2009
2009
|
return /* @__PURE__ */ i("tfoot", { className: s, ...r, children: e });
|
2010
|
-
},
|
2010
|
+
}, Km = ({ children: e, ...t }) => {
|
2011
2011
|
const r = X(lt);
|
2012
2012
|
return r.cellWrapper = rt, /* @__PURE__ */ i("tbody", { ...t, children: e });
|
2013
|
-
},
|
2013
|
+
}, Jm = ({
|
2014
2014
|
children: e,
|
2015
2015
|
className: t,
|
2016
2016
|
...r
|
@@ -2036,7 +2036,7 @@ const lt = Z.createContext({
|
|
2036
2036
|
align: a
|
2037
2037
|
});
|
2038
2038
|
return a ? /* @__PURE__ */ i(o, { className: c, ...s, children: /* @__PURE__ */ i("div", { className: l, children: e }) }) : /* @__PURE__ */ i(o, { className: c, ...s, children: e });
|
2039
|
-
},
|
2039
|
+
}, qm = ({
|
2040
2040
|
align: e,
|
2041
2041
|
children: t,
|
2042
2042
|
buttonClassName: r,
|
@@ -4761,13 +4761,13 @@ const ss = ({
|
|
4761
4761
|
CHANGELOGS: "changelogs",
|
4762
4762
|
PREFERENCES: "preferences",
|
4763
4763
|
USAGE: "usage"
|
4764
|
-
},
|
4764
|
+
}, Ym = () => ct({
|
4765
4765
|
queryKey: [dt.CAPABILITIES],
|
4766
4766
|
queryFn: async () => await ut({
|
4767
4767
|
type: ze.GET_SERVER_CAPABILITIES,
|
4768
4768
|
noAuth: !0
|
4769
4769
|
})
|
4770
|
-
}),
|
4770
|
+
}), Qm = () => ct({
|
4771
4771
|
queryKey: [dt.CHANGELOGS],
|
4772
4772
|
queryFn: async () => await ut({
|
4773
4773
|
type: ze.GET_CHANGELOGS,
|
@@ -4788,7 +4788,7 @@ const ss = ({
|
|
4788
4788
|
type: ze.GET_USER_PREFERENCES,
|
4789
4789
|
getAccessToken: t
|
4790
4790
|
})
|
4791
|
-
}),
|
4791
|
+
}), Xm = ({
|
4792
4792
|
user: e,
|
4793
4793
|
getAccessToken: t
|
4794
4794
|
}) => ct({
|
@@ -4824,7 +4824,7 @@ const ss = ({
|
|
4824
4824
|
type: ze.GET_CHATS,
|
4825
4825
|
getAccessToken: s
|
4826
4826
|
})
|
4827
|
-
}),
|
4827
|
+
}), Zm = ({
|
4828
4828
|
user: e,
|
4829
4829
|
month: t,
|
4830
4830
|
year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
|
@@ -4878,23 +4878,24 @@ const ss = ({
|
|
4878
4878
|
} catch (s) {
|
4879
4879
|
return Promise.reject(s);
|
4880
4880
|
}
|
4881
|
-
}, dd = "z-20", ud = "z-10", hd = "user", qt = "assistant", na = "OpenAI", In = "Anthropic", Rn = "Google", md = "Perplexity", fd = na, pd = "claude-sonnet-4", gd = "claude-3", yd = "gpt-4", bd = "
|
4881
|
+
}, dd = "z-20", ud = "z-10", hd = "user", qt = "assistant", na = "OpenAI", In = "Anthropic", Rn = "Google", md = "Perplexity", fd = na, pd = "claude-sonnet-4", gd = "claude-3", yd = "gpt-4", bd = "gpt-5", vd = "o3", wd = "o4", kd = "gemini", Ed = "sonar", _d = {
|
4882
4882
|
[In]: [
|
4883
4883
|
pd,
|
4884
4884
|
gd
|
4885
4885
|
],
|
4886
4886
|
[na]: [
|
4887
|
-
yd,
|
4888
4887
|
bd,
|
4889
|
-
|
4888
|
+
yd,
|
4889
|
+
vd,
|
4890
|
+
wd
|
4890
4891
|
],
|
4891
|
-
[Rn]: [
|
4892
|
-
[md]: [
|
4892
|
+
[Rn]: [kd],
|
4893
|
+
[md]: [Ed]
|
4893
4894
|
}, An = {
|
4894
4895
|
REASONING: "sassy:advanced:reasoning"
|
4895
|
-
},
|
4896
|
+
}, Sd = "x-callisto-chat-id", ef = (e) => {
|
4896
4897
|
for (const [t, r] of Object.entries(
|
4897
|
-
|
4898
|
+
_d
|
4898
4899
|
))
|
4899
4900
|
if (r.some((a) => e.startsWith(a)))
|
4900
4901
|
return t;
|
@@ -4936,7 +4937,7 @@ const ss = ({
|
|
4936
4937
|
dispatch: () => {
|
4937
4938
|
}
|
4938
4939
|
});
|
4939
|
-
var
|
4940
|
+
var Td = Object.defineProperty, xd = (e, t, r) => t in e ? Td(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ae = (e, t, r) => xd(e, typeof t != "symbol" ? t + "" : t, r);
|
4940
4941
|
/*!
|
4941
4942
|
@versini/auth-common v4.5.0
|
4942
4943
|
© 2025 gizmette.com
|
@@ -4950,14 +4951,14 @@ try {
|
|
4950
4951
|
});
|
4951
4952
|
} catch {
|
4952
4953
|
}
|
4953
|
-
const
|
4954
|
+
const tf = {
|
4954
4955
|
PASSKEY: "passkey"
|
4955
4956
|
}, st = {
|
4956
4957
|
ALG: "RS256",
|
4957
4958
|
SCOPES_KEY: "scopes",
|
4958
4959
|
SCOPE_KEY: "scope",
|
4959
4960
|
ISSUER: "gizmette.com"
|
4960
|
-
},
|
4961
|
+
}, Cd = `-----BEGIN PUBLIC KEY-----
|
4961
4962
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
|
4962
4963
|
w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
|
4963
4964
|
i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
|
@@ -4966,14 +4967,14 @@ l0haqjMk0UoNPPE8iYBWUHQJJE1Dqstj65d6Eh5g64Pao25y4cmYJbKjiblIGEkE
|
|
4966
4967
|
sjqybA9mARAqh9k/eiIopecWSiffNQTwVQVd2I9ZH3BalhEXHlqFgrjz51kFqg81
|
4967
4968
|
awIDAQAB
|
4968
4969
|
-----END PUBLIC KEY-----`, Nt = new TextEncoder(), vt = new TextDecoder();
|
4969
|
-
function
|
4970
|
+
function Id(...e) {
|
4970
4971
|
const t = e.reduce((s, { length: n }) => s + n, 0), r = new Uint8Array(t);
|
4971
4972
|
let a = 0;
|
4972
4973
|
for (const s of e)
|
4973
4974
|
r.set(s, a), a += s.length;
|
4974
4975
|
return r;
|
4975
4976
|
}
|
4976
|
-
function
|
4977
|
+
function Rd(e) {
|
4977
4978
|
if (Uint8Array.fromBase64)
|
4978
4979
|
return Uint8Array.fromBase64(e);
|
4979
4980
|
const t = atob(e), r = new Uint8Array(t.length);
|
@@ -4989,7 +4990,7 @@ function Ht(e) {
|
|
4989
4990
|
let t = e;
|
4990
4991
|
t instanceof Uint8Array && (t = vt.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
|
4991
4992
|
try {
|
4992
|
-
return
|
4993
|
+
return Rd(t);
|
4993
4994
|
} catch {
|
4994
4995
|
throw new TypeError("The input to be decoded is not correctly encoded.");
|
4995
4996
|
}
|
@@ -5052,7 +5053,7 @@ function ht(e, t) {
|
|
5052
5053
|
function pr(e) {
|
5053
5054
|
return parseInt(e.name.slice(4), 10);
|
5054
5055
|
}
|
5055
|
-
function
|
5056
|
+
function Ad(e) {
|
5056
5057
|
switch (e) {
|
5057
5058
|
case "ES256":
|
5058
5059
|
return "P-256";
|
@@ -5064,11 +5065,11 @@ function Rd(e) {
|
|
5064
5065
|
throw new Error("unreachable");
|
5065
5066
|
}
|
5066
5067
|
}
|
5067
|
-
function
|
5068
|
+
function Nd(e, t) {
|
5068
5069
|
if (!e.usages.includes(t))
|
5069
5070
|
throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
|
5070
5071
|
}
|
5071
|
-
function
|
5072
|
+
function Od(e, t, r) {
|
5072
5073
|
switch (t) {
|
5073
5074
|
case "HS256":
|
5074
5075
|
case "HS384":
|
@@ -5111,7 +5112,7 @@ function Nd(e, t, r) {
|
|
5111
5112
|
case "ES512": {
|
5112
5113
|
if (!ht(e.algorithm, "ECDSA"))
|
5113
5114
|
throw Ie("ECDSA");
|
5114
|
-
const a =
|
5115
|
+
const a = Ad(t);
|
5115
5116
|
if (e.algorithm.namedCurve !== a)
|
5116
5117
|
throw Ie(a, "algorithm.namedCurve");
|
5117
5118
|
break;
|
@@ -5119,7 +5120,7 @@ function Nd(e, t, r) {
|
|
5119
5120
|
default:
|
5120
5121
|
throw new TypeError("CryptoKey does not support this operation");
|
5121
5122
|
}
|
5122
|
-
|
5123
|
+
Nd(e, r);
|
5123
5124
|
}
|
5124
5125
|
function $n(e, t, ...r) {
|
5125
5126
|
var a;
|
@@ -5129,7 +5130,7 @@ function $n(e, t, ...r) {
|
|
5129
5130
|
} else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
|
5130
5131
|
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;
|
5131
5132
|
}
|
5132
|
-
const
|
5133
|
+
const $d = (e, ...t) => $n("Key must be ", e, ...t);
|
5133
5134
|
function Pn(e, t, ...r) {
|
5134
5135
|
return $n(`Key for the ${e} algorithm must be `, t, ...r);
|
5135
5136
|
}
|
@@ -5139,7 +5140,7 @@ function Mn(e) {
|
|
5139
5140
|
function Ln(e) {
|
5140
5141
|
return e?.[Symbol.toStringTag] === "KeyObject";
|
5141
5142
|
}
|
5142
|
-
const Bn = (e) => Mn(e) || Ln(e),
|
5143
|
+
const Bn = (e) => Mn(e) || Ln(e), Pd = (...e) => {
|
5143
5144
|
const t = e.filter(Boolean);
|
5144
5145
|
if (t.length === 0 || t.length === 1)
|
5145
5146
|
return !0;
|
@@ -5158,11 +5159,11 @@ const Bn = (e) => Mn(e) || Ln(e), $d = (...e) => {
|
|
5158
5159
|
}
|
5159
5160
|
return !0;
|
5160
5161
|
};
|
5161
|
-
function
|
5162
|
+
function Md(e) {
|
5162
5163
|
return typeof e == "object" && e !== null;
|
5163
5164
|
}
|
5164
5165
|
const Yt = (e) => {
|
5165
|
-
if (!
|
5166
|
+
if (!Md(e) || Object.prototype.toString.call(e) !== "[object Object]")
|
5166
5167
|
return !1;
|
5167
5168
|
if (Object.getPrototypeOf(e) === null)
|
5168
5169
|
return !0;
|
@@ -5170,7 +5171,7 @@ const Yt = (e) => {
|
|
5170
5171
|
for (; Object.getPrototypeOf(t) !== null; )
|
5171
5172
|
t = Object.getPrototypeOf(t);
|
5172
5173
|
return Object.getPrototypeOf(e) === t;
|
5173
|
-
},
|
5174
|
+
}, Ld = (e, t) => {
|
5174
5175
|
if (e.startsWith("RS") || e.startsWith("PS")) {
|
5175
5176
|
const { modulusLength: r } = t.algorithm;
|
5176
5177
|
if (typeof r != "number" || r < 2048)
|
@@ -5183,7 +5184,7 @@ const Yt = (e) => {
|
|
5183
5184
|
return !1;
|
5184
5185
|
const s = e.subarray(a, a + t.length);
|
5185
5186
|
return s.length !== t.length ? !1 : s.every((n, o) => n === t[o]) || Vt(e, t, a + 1);
|
5186
|
-
},
|
5187
|
+
}, Bd = (e) => {
|
5187
5188
|
switch (!0) {
|
5188
5189
|
case Vt(e, [42, 134, 72, 206, 61, 3, 1, 7]):
|
5189
5190
|
return "P-256";
|
@@ -5194,7 +5195,7 @@ const Yt = (e) => {
|
|
5194
5195
|
default:
|
5195
5196
|
return;
|
5196
5197
|
}
|
5197
|
-
},
|
5198
|
+
}, Dd = async (e, t, r, a, s) => {
|
5198
5199
|
let n, o;
|
5199
5200
|
const c = new Uint8Array(atob(r.replace(e, "")).split("").map((l) => l.charCodeAt(0)));
|
5200
5201
|
switch (a) {
|
@@ -5230,7 +5231,7 @@ const Yt = (e) => {
|
|
5230
5231
|
case "ECDH-ES+A128KW":
|
5231
5232
|
case "ECDH-ES+A192KW":
|
5232
5233
|
case "ECDH-ES+A256KW": {
|
5233
|
-
const l =
|
5234
|
+
const l = Bd(c);
|
5234
5235
|
n = l != null && l.startsWith("P-") ? { name: "ECDH", namedCurve: l } : { name: "X25519" }, o = [];
|
5235
5236
|
break;
|
5236
5237
|
}
|
@@ -5242,8 +5243,8 @@ const Yt = (e) => {
|
|
5242
5243
|
throw new Be('Invalid or unsupported "alg" (Algorithm) value');
|
5243
5244
|
}
|
5244
5245
|
return crypto.subtle.importKey(t, c, n, !0, o);
|
5245
|
-
},
|
5246
|
-
function
|
5246
|
+
}, Ud = (e, t, r) => Dd(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
|
5247
|
+
function Hd(e) {
|
5247
5248
|
let t, r;
|
5248
5249
|
switch (e.kty) {
|
5249
5250
|
case "RSA": {
|
@@ -5316,18 +5317,18 @@ function Ud(e) {
|
|
5316
5317
|
}
|
5317
5318
|
return { algorithm: t, keyUsages: r };
|
5318
5319
|
}
|
5319
|
-
const
|
5320
|
+
const Vd = async (e) => {
|
5320
5321
|
if (!e.alg)
|
5321
5322
|
throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
|
5322
|
-
const { algorithm: t, keyUsages: r } =
|
5323
|
+
const { algorithm: t, keyUsages: r } = Hd(e), a = { ...e };
|
5323
5324
|
return delete a.alg, delete a.use, crypto.subtle.importKey("jwk", a, t, e.ext ?? !e.d, e.key_ops ?? r);
|
5324
5325
|
};
|
5325
|
-
async function
|
5326
|
+
async function zd(e, t, r) {
|
5326
5327
|
if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
5327
5328
|
throw new TypeError('"spki" must be SPKI formatted string');
|
5328
|
-
return
|
5329
|
+
return Ud(e, t);
|
5329
5330
|
}
|
5330
|
-
const
|
5331
|
+
const Fd = (e, t, r, a, s) => {
|
5331
5332
|
if (s.crit !== void 0 && a?.crit === void 0)
|
5332
5333
|
throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
|
5333
5334
|
if (!a || a.crit === void 0)
|
@@ -5345,7 +5346,7 @@ const zd = (e, t, r, a, s) => {
|
|
5345
5346
|
throw new e(`Extension Header Parameter "${o}" MUST be integrity protected`);
|
5346
5347
|
}
|
5347
5348
|
return new Set(a.crit);
|
5348
|
-
},
|
5349
|
+
}, Wd = (e, t) => {
|
5349
5350
|
if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
|
5350
5351
|
throw new TypeError(`"${e}" option must be an array of strings`);
|
5351
5352
|
if (t)
|
@@ -5354,13 +5355,13 @@ const zd = (e, t, r, a, s) => {
|
|
5354
5355
|
function da(e) {
|
5355
5356
|
return Yt(e) && typeof e.kty == "string";
|
5356
5357
|
}
|
5357
|
-
function
|
5358
|
+
function jd(e) {
|
5358
5359
|
return e.kty !== "oct" && typeof e.d == "string";
|
5359
5360
|
}
|
5360
|
-
function
|
5361
|
+
function Gd(e) {
|
5361
5362
|
return e.kty !== "oct" && typeof e.d > "u";
|
5362
5363
|
}
|
5363
|
-
function
|
5364
|
+
function Kd(e) {
|
5364
5365
|
return e.kty === "oct" && typeof e.k == "string";
|
5365
5366
|
}
|
5366
5367
|
let De;
|
@@ -5369,9 +5370,9 @@ const ns = async (e, t, r, a = !1) => {
|
|
5369
5370
|
let s = De.get(e);
|
5370
5371
|
if (s != null && s[r])
|
5371
5372
|
return s[r];
|
5372
|
-
const n = await
|
5373
|
+
const n = await Vd({ ...t, alg: r });
|
5373
5374
|
return a && Object.freeze(e), s ? s[r] = n : De.set(e, { [r]: n }), n;
|
5374
|
-
},
|
5375
|
+
}, Jd = (e, t) => {
|
5375
5376
|
var r;
|
5376
5377
|
De || (De = /* @__PURE__ */ new WeakMap());
|
5377
5378
|
let a = De.get(e);
|
@@ -5457,7 +5458,7 @@ const ns = async (e, t, r, a = !1) => {
|
|
5457
5458
|
if (!o)
|
5458
5459
|
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
5459
5460
|
return a ? a[t] = o : De.set(e, { [t]: o }), o;
|
5460
|
-
},
|
5461
|
+
}, qd = async (e, t) => {
|
5461
5462
|
if (e instanceof Uint8Array || Mn(e))
|
5462
5463
|
return e;
|
5463
5464
|
if (Ln(e)) {
|
@@ -5465,7 +5466,7 @@ const ns = async (e, t, r, a = !1) => {
|
|
5465
5466
|
return e.export();
|
5466
5467
|
if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
|
5467
5468
|
try {
|
5468
|
-
return
|
5469
|
+
return Jd(e, t);
|
5469
5470
|
} catch (a) {
|
5470
5471
|
if (a instanceof TypeError)
|
5471
5472
|
throw a;
|
@@ -5520,10 +5521,10 @@ const ns = async (e, t, r, a = !1) => {
|
|
5520
5521
|
throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${n}" when present`);
|
5521
5522
|
}
|
5522
5523
|
return !0;
|
5523
|
-
},
|
5524
|
+
}, Yd = (e, t, r) => {
|
5524
5525
|
if (!(t instanceof Uint8Array)) {
|
5525
5526
|
if (da(t)) {
|
5526
|
-
if (
|
5527
|
+
if (Kd(t) && Vr(e, t, r))
|
5527
5528
|
return;
|
5528
5529
|
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');
|
5529
5530
|
}
|
@@ -5532,17 +5533,17 @@ const ns = async (e, t, r, a = !1) => {
|
|
5532
5533
|
if (t.type !== "secret")
|
5533
5534
|
throw new TypeError(`${tt(t)} instances for symmetric algorithms must be of type "secret"`);
|
5534
5535
|
}
|
5535
|
-
},
|
5536
|
+
}, Qd = (e, t, r) => {
|
5536
5537
|
if (da(t))
|
5537
5538
|
switch (r) {
|
5538
5539
|
case "decrypt":
|
5539
5540
|
case "sign":
|
5540
|
-
if (
|
5541
|
+
if (jd(t) && Vr(e, t, r))
|
5541
5542
|
return;
|
5542
5543
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
5543
5544
|
case "encrypt":
|
5544
5545
|
case "verify":
|
5545
|
-
if (
|
5546
|
+
if (Gd(t) && Vr(e, t, r))
|
5546
5547
|
return;
|
5547
5548
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
5548
5549
|
}
|
@@ -5564,9 +5565,9 @@ const ns = async (e, t, r, a = !1) => {
|
|
5564
5565
|
case "encrypt":
|
5565
5566
|
throw new TypeError(`${tt(t)} instances for asymmetric algorithm encryption must be of type "public"`);
|
5566
5567
|
}
|
5567
|
-
},
|
5568
|
-
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) ?
|
5569
|
-
},
|
5568
|
+
}, Xd = (e, t, r) => {
|
5569
|
+
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) ? Yd(e, t, r) : Qd(e, t, r);
|
5570
|
+
}, Zd = (e, t) => {
|
5570
5571
|
const r = `SHA-${e.slice(-3)}`;
|
5571
5572
|
switch (e) {
|
5572
5573
|
case "HS256":
|
@@ -5591,24 +5592,24 @@ const ns = async (e, t, r, a = !1) => {
|
|
5591
5592
|
default:
|
5592
5593
|
throw new Be(`alg ${e} is not supported either by JOSE or your javascript runtime`);
|
5593
5594
|
}
|
5594
|
-
},
|
5595
|
+
}, eu = async (e, t, r) => {
|
5595
5596
|
if (t instanceof Uint8Array) {
|
5596
5597
|
if (!e.startsWith("HS"))
|
5597
|
-
throw new TypeError(
|
5598
|
+
throw new TypeError($d(t, "CryptoKey", "KeyObject", "JSON Web Key"));
|
5598
5599
|
return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
|
5599
5600
|
}
|
5600
|
-
return
|
5601
|
-
},
|
5602
|
-
const s = await
|
5603
|
-
|
5604
|
-
const n =
|
5601
|
+
return Od(t, e, r), t;
|
5602
|
+
}, tu = async (e, t, r, a) => {
|
5603
|
+
const s = await eu(e, t, "verify");
|
5604
|
+
Ld(e, s);
|
5605
|
+
const n = Zd(e, s.algorithm);
|
5605
5606
|
try {
|
5606
5607
|
return await crypto.subtle.verify(n, s, r, a);
|
5607
5608
|
} catch {
|
5608
5609
|
return !1;
|
5609
5610
|
}
|
5610
5611
|
};
|
5611
|
-
async function
|
5612
|
+
async function ru(e, t, r) {
|
5612
5613
|
if (!Yt(e))
|
5613
5614
|
throw new oe("Flattened JWS must be an object");
|
5614
5615
|
if (e.protected === void 0 && e.header === void 0)
|
@@ -5629,19 +5630,19 @@ async function tu(e, t, r) {
|
|
5629
5630
|
} catch {
|
5630
5631
|
throw new oe("JWS Protected Header is invalid");
|
5631
5632
|
}
|
5632
|
-
if (
|
5633
|
+
if (!Pd(a, e.header))
|
5633
5634
|
throw new oe("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
5634
5635
|
const s = {
|
5635
5636
|
...a,
|
5636
5637
|
...e.header
|
5637
|
-
}, n =
|
5638
|
+
}, n = Fd(oe, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, a, s);
|
5638
5639
|
let o = !0;
|
5639
5640
|
if (n.has("b64") && (o = a.b64, typeof o != "boolean"))
|
5640
5641
|
throw new oe('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
5641
5642
|
const { alg: c } = s;
|
5642
5643
|
if (typeof c != "string" || !c)
|
5643
5644
|
throw new oe('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
5644
|
-
const l = r &&
|
5645
|
+
const l = r && Wd("algorithms", r.algorithms);
|
5645
5646
|
if (l && !l.has(c))
|
5646
5647
|
throw new Nn('"alg" (Algorithm) Header Parameter value not allowed');
|
5647
5648
|
if (o) {
|
@@ -5650,16 +5651,16 @@ async function tu(e, t, r) {
|
|
5650
5651
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
5651
5652
|
throw new oe("JWS Payload must be a string or an Uint8Array instance");
|
5652
5653
|
let d = !1;
|
5653
|
-
typeof t == "function" && (t = await t(a, e), d = !0),
|
5654
|
-
const m =
|
5654
|
+
typeof t == "function" && (t = await t(a, e), d = !0), Xd(c, t, "verify");
|
5655
|
+
const m = Id(Nt.encode(e.protected ?? ""), Nt.encode("."), typeof e.payload == "string" ? Nt.encode(e.payload) : e.payload);
|
5655
5656
|
let u;
|
5656
5657
|
try {
|
5657
5658
|
u = Ht(e.signature);
|
5658
5659
|
} catch {
|
5659
5660
|
throw new oe("Failed to base64url decode the signature");
|
5660
5661
|
}
|
5661
|
-
const h = await
|
5662
|
-
if (!await
|
5662
|
+
const h = await qd(t, c);
|
5663
|
+
if (!await tu(c, h, u, m))
|
5663
5664
|
throw new On();
|
5664
5665
|
let f;
|
5665
5666
|
if (o)
|
@@ -5672,17 +5673,17 @@ async function tu(e, t, r) {
|
|
5672
5673
|
const g = { payload: f };
|
5673
5674
|
return e.protected !== void 0 && (g.protectedHeader = a), e.header !== void 0 && (g.unprotectedHeader = e.header), d ? { ...g, key: h } : g;
|
5674
5675
|
}
|
5675
|
-
async function
|
5676
|
+
async function au(e, t, r) {
|
5676
5677
|
if (e instanceof Uint8Array && (e = vt.decode(e)), typeof e != "string")
|
5677
5678
|
throw new oe("Compact JWS must be a string or Uint8Array");
|
5678
5679
|
const { 0: a, 1: s, 2: n, length: o } = e.split(".");
|
5679
5680
|
if (o !== 3)
|
5680
5681
|
throw new oe("Invalid Compact JWS");
|
5681
|
-
const c = await
|
5682
|
+
const c = await ru({ payload: s, protected: a, signature: n }, t, r), l = { payload: c.payload, protectedHeader: c.protectedHeader };
|
5682
5683
|
return typeof t == "function" ? { ...l, key: c.key } : l;
|
5683
5684
|
}
|
5684
|
-
const
|
5685
|
-
const t =
|
5685
|
+
const su = (e) => Math.floor(e.getTime() / 1e3), Dn = 60, Un = Dn * 60, ua = Un * 24, nu = ua * 7, ou = ua * 365.25, iu = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, os = (e) => {
|
5686
|
+
const t = iu.exec(e);
|
5686
5687
|
if (!t || t[4] && t[1])
|
5687
5688
|
throw new TypeError("Invalid time period format");
|
5688
5689
|
const r = parseFloat(t[2]), a = t[3].toLowerCase();
|
@@ -5717,15 +5718,15 @@ const au = (e) => Math.floor(e.getTime() / 1e3), Dn = 60, Un = Dn * 60, ua = Un
|
|
5717
5718
|
case "week":
|
5718
5719
|
case "weeks":
|
5719
5720
|
case "w":
|
5720
|
-
s = Math.round(r *
|
5721
|
+
s = Math.round(r * nu);
|
5721
5722
|
break;
|
5722
5723
|
default:
|
5723
|
-
s = Math.round(r *
|
5724
|
+
s = Math.round(r * ou);
|
5724
5725
|
break;
|
5725
5726
|
}
|
5726
5727
|
return t[1] === "-" || t[4] === "ago" ? -s : s;
|
5727
|
-
}, is = (e) => e.toLowerCase().replace(/^application\//, ""),
|
5728
|
-
function
|
5728
|
+
}, is = (e) => e.toLowerCase().replace(/^application\//, ""), cu = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
|
5729
|
+
function lu(e, t, r = {}) {
|
5729
5730
|
let a;
|
5730
5731
|
try {
|
5731
5732
|
a = JSON.parse(vt.decode(t));
|
@@ -5745,7 +5746,7 @@ function cu(e, t, r = {}) {
|
|
5745
5746
|
throw new ke('unexpected "iss" claim value', a, "iss", "check_failed");
|
5746
5747
|
if (c && a.sub !== c)
|
5747
5748
|
throw new ke('unexpected "sub" claim value', a, "sub", "check_failed");
|
5748
|
-
if (l && !
|
5749
|
+
if (l && !cu(a.aud, typeof l == "string" ? [l] : l))
|
5749
5750
|
throw new ke('unexpected "aud" claim value', a, "aud", "check_failed");
|
5750
5751
|
let u;
|
5751
5752
|
switch (typeof r.clockTolerance) {
|
@@ -5761,7 +5762,7 @@ function cu(e, t, r = {}) {
|
|
5761
5762
|
default:
|
5762
5763
|
throw new TypeError("Invalid clockTolerance option type");
|
5763
5764
|
}
|
5764
|
-
const { currentDate: h } = r, f =
|
5765
|
+
const { currentDate: h } = r, f = su(h || /* @__PURE__ */ new Date());
|
5765
5766
|
if ((a.iat !== void 0 || d) && typeof a.iat != "number")
|
5766
5767
|
throw new ke('"iat" claim must be a number', a, "iat", "invalid");
|
5767
5768
|
if (a.nbf !== void 0) {
|
@@ -5785,29 +5786,29 @@ function cu(e, t, r = {}) {
|
|
5785
5786
|
}
|
5786
5787
|
return a;
|
5787
5788
|
}
|
5788
|
-
async function
|
5789
|
+
async function du(e, t, r) {
|
5789
5790
|
var a;
|
5790
|
-
const s = await
|
5791
|
+
const s = await au(e, t, r);
|
5791
5792
|
if ((a = s.protectedHeader.crit) != null && a.includes("b64") && s.protectedHeader.b64 === !1)
|
5792
5793
|
throw new la("JWTs MUST NOT use unencoded payload");
|
5793
|
-
const n = { payload:
|
5794
|
+
const n = { payload: lu(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
|
5794
5795
|
return typeof t == "function" ? { ...n, key: s.key } : n;
|
5795
5796
|
}
|
5796
|
-
const
|
5797
|
+
const uu = async (e) => {
|
5797
5798
|
try {
|
5798
|
-
const t = st.ALG, r = await
|
5799
|
-
return await
|
5799
|
+
const t = st.ALG, r = await zd(Cd, t);
|
5800
|
+
return await du(e, r, {
|
5800
5801
|
issuer: st.ISSUER
|
5801
5802
|
});
|
5802
5803
|
} catch {
|
5803
5804
|
return;
|
5804
5805
|
}
|
5805
|
-
},
|
5806
|
+
}, hu = [];
|
5806
5807
|
for (let e = 0; e < 256; ++e)
|
5807
|
-
|
5808
|
+
hu.push((e + 256).toString(16).slice(1));
|
5808
5809
|
typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
5809
5810
|
const Hn = async (e, t) => {
|
5810
|
-
const r = await
|
5811
|
+
const r = await uu(e);
|
5811
5812
|
if (!r || !r.payload)
|
5812
5813
|
return !1;
|
5813
5814
|
let a = [];
|
@@ -5820,8 +5821,8 @@ const Hn = async (e, t) => {
|
|
5820
5821
|
return Array.isArray(t) ? t.every((s) => a.includes(s)) : Object.keys(t).some(
|
5821
5822
|
(s) => t[s].every((n) => a.includes(n))
|
5822
5823
|
);
|
5823
|
-
},
|
5824
|
-
function
|
5824
|
+
}, mu = "av-tooltip", fu = "av-tooltip-arrow", cs = ["mousedown", "touchstart"];
|
5825
|
+
function pu(e, t, r) {
|
5825
5826
|
const a = R(null);
|
5826
5827
|
return $(() => {
|
5827
5828
|
const s = (n) => {
|
@@ -5842,7 +5843,7 @@ function fu(e, t, r) {
|
|
5842
5843
|
};
|
5843
5844
|
}, [e, r, t]), a;
|
5844
5845
|
}
|
5845
|
-
function
|
5846
|
+
function gu(e, t) {
|
5846
5847
|
const [r, a] = z(!1), s = R(null), n = R(null), o = V(() => {
|
5847
5848
|
a((l) => (!l && (!s.current || s.current === -1) && (s.current = window.setInterval(n.current, t)), !0));
|
5848
5849
|
}, [t]), c = V(() => {
|
@@ -5850,42 +5851,42 @@ function pu(e, t) {
|
|
5850
5851
|
}, []);
|
5851
5852
|
return $(() => (n.current = e, r && o(), c), [e, r, o, c]), { start: o, stop: c, active: r };
|
5852
5853
|
}
|
5853
|
-
const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`,
|
5854
|
+
const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, yu = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), ls = ({
|
5854
5855
|
mode: e
|
5855
5856
|
}) => p({
|
5856
5857
|
"bg-surface-darker": e === "dark" || e === "system",
|
5857
5858
|
"bg-surface-light": e === "light" || e === "alt-system",
|
5858
5859
|
"dark:bg-surface-light": e === "system",
|
5859
5860
|
"dark:bg-surface-darker": e === "alt-system"
|
5860
|
-
}),
|
5861
|
+
}), bu = ({
|
5861
5862
|
mode: e
|
5862
5863
|
}) => p({
|
5863
5864
|
"text-copy-light": e === "dark" || e === "system",
|
5864
5865
|
"text-copy-dark": e === "light" || e === "alt-system",
|
5865
5866
|
"dark:text-copy-dark": e === "system",
|
5866
5867
|
"dark:text-copy-light": e === "alt-system"
|
5867
|
-
}),
|
5868
|
+
}), vu = () => p("absolute", "size-2", "transform rotate-45"), wu = ({
|
5868
5869
|
mode: e,
|
5869
5870
|
className: t,
|
5870
5871
|
tooltipClassName: r,
|
5871
5872
|
arrowClassName: a
|
5872
5873
|
}) => {
|
5873
5874
|
const s = p("relative inline-block", t), n = p(
|
5874
|
-
|
5875
|
-
|
5875
|
+
mu,
|
5876
|
+
yu(),
|
5876
5877
|
ls({ mode: e }),
|
5877
|
-
|
5878
|
+
bu({ mode: e }),
|
5878
5879
|
r
|
5879
5880
|
), o = p(
|
5880
|
-
|
5881
|
-
|
5881
|
+
fu,
|
5882
|
+
vu(),
|
5882
5883
|
ls({ mode: e }),
|
5883
5884
|
a
|
5884
5885
|
);
|
5885
5886
|
return { tooltip: n, arrow: o, wrapper: s };
|
5886
|
-
},
|
5887
|
+
}, ku = ({ delay: e = 300 }) => ({
|
5887
5888
|
animation: `av-tooltip-fade-in ${e}ms ease-in-out`
|
5888
|
-
}),
|
5889
|
+
}), Eu = 5e3, $e = ({
|
5889
5890
|
trigger: e,
|
5890
5891
|
label: t,
|
5891
5892
|
placement: r = "top",
|
@@ -5895,16 +5896,16 @@ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gu = (
|
|
5895
5896
|
tooltipClassName: o,
|
5896
5897
|
arrowClassName: c
|
5897
5898
|
}) => {
|
5898
|
-
const l =
|
5899
|
+
const l = pu(() => {
|
5899
5900
|
y.stop(), g(!1);
|
5900
|
-
}), d = R(null), m = R(null), [u, h] = z(!1), [f, g] = z(!1), y =
|
5901
|
+
}), d = R(null), m = R(null), [u, h] = z(!1), [f, g] = z(!1), y = gu(() => {
|
5901
5902
|
g(!1);
|
5902
|
-
},
|
5903
|
+
}, Eu), k = wu({
|
5903
5904
|
mode: a,
|
5904
5905
|
className: n,
|
5905
5906
|
tooltipClassName: o,
|
5906
5907
|
arrowClassName: c
|
5907
|
-
}), b =
|
5908
|
+
}), b = ku({ delay: s }), x = V(async () => {
|
5908
5909
|
if (l.current && d.current && m.current) {
|
5909
5910
|
const {
|
5910
5911
|
x: v,
|
@@ -5992,7 +5993,7 @@ try {
|
|
5992
5993
|
});
|
5993
5994
|
} catch {
|
5994
5995
|
}
|
5995
|
-
const
|
5996
|
+
const _u = ({
|
5996
5997
|
className: e,
|
5997
5998
|
onClick: t
|
5998
5999
|
}) => /* @__PURE__ */ i(
|
@@ -6024,7 +6025,7 @@ function Vn(e, t) {
|
|
6024
6025
|
};
|
6025
6026
|
}, [e, t]);
|
6026
6027
|
}
|
6027
|
-
const
|
6028
|
+
const Su = ({
|
6028
6029
|
className: e
|
6029
6030
|
}) => {
|
6030
6031
|
const { getAccessToken: t } = Ve(), {
|
@@ -6117,7 +6118,7 @@ const _u = ({
|
|
6117
6118
|
)
|
6118
6119
|
}
|
6119
6120
|
);
|
6120
|
-
}, ds = "av-messagebox", $t = "av-panel", us = "av-button", ha = "icon", zn = "button", zr = "link",
|
6121
|
+
}, ds = "av-messagebox", $t = "av-panel", us = "av-button", ha = "icon", zn = "button", zr = "link", Tu = ({
|
6121
6122
|
type: e,
|
6122
6123
|
size: t,
|
6123
6124
|
labelRight: r,
|
@@ -6153,7 +6154,7 @@ const _u = ({
|
|
6153
6154
|
"h-12": t === "large" && n && (r || a)
|
6154
6155
|
});
|
6155
6156
|
}
|
6156
|
-
},
|
6157
|
+
}, xu = ({
|
6157
6158
|
type: e,
|
6158
6159
|
size: t,
|
6159
6160
|
labelRight: r,
|
@@ -6176,7 +6177,7 @@ const _u = ({
|
|
6176
6177
|
[o]: t === "large" && (r || a)
|
6177
6178
|
});
|
6178
6179
|
}
|
6179
|
-
},
|
6180
|
+
}, Cu = ({
|
6180
6181
|
mode: e,
|
6181
6182
|
noBackground: t,
|
6182
6183
|
truncate: r,
|
@@ -6212,7 +6213,7 @@ const _u = ({
|
|
6212
6213
|
return p("not-prose text-copy-lighter", {
|
6213
6214
|
truncate: r
|
6214
6215
|
});
|
6215
|
-
},
|
6216
|
+
}, Iu = ({
|
6216
6217
|
mode: e,
|
6217
6218
|
noBackground: t,
|
6218
6219
|
variant: r
|
@@ -6242,13 +6243,13 @@ const _u = ({
|
|
6242
6243
|
if (r === "selected")
|
6243
6244
|
return "bg-action-selected-dark";
|
6244
6245
|
}
|
6245
|
-
},
|
6246
|
+
}, Ru = ({
|
6246
6247
|
radius: e
|
6247
6248
|
}) => p({
|
6248
6249
|
"rounded-full": e === "large",
|
6249
6250
|
"rounded-md": e === "medium",
|
6250
6251
|
"rounded-xs": e === "small"
|
6251
|
-
}),
|
6252
|
+
}), Au = ({
|
6252
6253
|
mode: e,
|
6253
6254
|
disabled: t,
|
6254
6255
|
variant: r
|
@@ -6286,7 +6287,7 @@ const _u = ({
|
|
6286
6287
|
});
|
6287
6288
|
if (r === "selected")
|
6288
6289
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
6289
|
-
},
|
6290
|
+
}, Nu = ({
|
6290
6291
|
mode: e,
|
6291
6292
|
disabled: t,
|
6292
6293
|
variant: r
|
@@ -6324,7 +6325,7 @@ const _u = ({
|
|
6324
6325
|
});
|
6325
6326
|
if (r === "selected")
|
6326
6327
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
6327
|
-
},
|
6328
|
+
}, Ou = ({
|
6328
6329
|
mode: e,
|
6329
6330
|
noBorder: t,
|
6330
6331
|
variant: r
|
@@ -6354,14 +6355,14 @@ const _u = ({
|
|
6354
6355
|
});
|
6355
6356
|
if (r === "selected")
|
6356
6357
|
return "border border-border-selected-dark";
|
6357
|
-
},
|
6358
|
+
}, $u = ({
|
6358
6359
|
focusMode: e
|
6359
6360
|
}) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
6360
6361
|
"focus:outline-focus-dark": e === "dark",
|
6361
6362
|
"focus:outline-focus-light": e === "light",
|
6362
6363
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
6363
6364
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
6364
|
-
}),
|
6365
|
+
}), Pu = ({
|
6365
6366
|
mode: e,
|
6366
6367
|
raw: t,
|
6367
6368
|
iconClassName: r,
|
@@ -6388,11 +6389,11 @@ const _u = ({
|
|
6388
6389
|
} : a === "selected" && (s = {
|
6389
6390
|
"text-copy-lighter": !0
|
6390
6391
|
}), p(s, r);
|
6391
|
-
},
|
6392
|
+
}, Mu = ({
|
6392
6393
|
animated: e
|
6393
6394
|
}) => p({
|
6394
6395
|
"transition-opacity duration-300 ease-in-out": e
|
6395
|
-
}),
|
6396
|
+
}), Lu = ({
|
6396
6397
|
type: e,
|
6397
6398
|
className: t,
|
6398
6399
|
raw: r,
|
@@ -6412,15 +6413,15 @@ const _u = ({
|
|
6412
6413
|
animated: k
|
6413
6414
|
}) => (h || (h = "primary"), r ? p(us, t) : p(
|
6414
6415
|
us,
|
6415
|
-
|
6416
|
+
Cu({
|
6416
6417
|
mode: a,
|
6417
6418
|
variant: h,
|
6418
6419
|
noBackground: u,
|
6419
6420
|
truncate: f
|
6420
6421
|
}),
|
6421
|
-
|
6422
|
-
|
6423
|
-
|
6422
|
+
Iu({ mode: a, noBackground: u, variant: h }),
|
6423
|
+
Ru({ radius: y }),
|
6424
|
+
Tu({
|
6424
6425
|
type: e,
|
6425
6426
|
size: c,
|
6426
6427
|
labelRight: d,
|
@@ -6428,11 +6429,11 @@ const _u = ({
|
|
6428
6429
|
align: g,
|
6429
6430
|
animated: k
|
6430
6431
|
}),
|
6431
|
-
|
6432
|
-
|
6433
|
-
|
6434
|
-
Ru({ mode: a, variant: h, disabled: n }),
|
6432
|
+
xu({ type: e, size: c, labelRight: d, labelLeft: m }),
|
6433
|
+
Ou({ mode: a, variant: h, noBorder: l }),
|
6434
|
+
$u({ focusMode: s }),
|
6435
6435
|
Au({ mode: a, variant: h, disabled: n }),
|
6436
|
+
Nu({ mode: a, variant: h, disabled: n }),
|
6436
6437
|
{
|
6437
6438
|
"w-full": o,
|
6438
6439
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
@@ -6441,7 +6442,7 @@ const _u = ({
|
|
6441
6442
|
"transition-[width] duration-300 ease-in": k
|
6442
6443
|
}),
|
6443
6444
|
t
|
6444
|
-
)),
|
6445
|
+
)), Bu = (e, t, r) => {
|
6445
6446
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
6446
6447
|
}, Fn = Z.forwardRef((e, t) => {
|
6447
6448
|
const { onClick: r, noInternalClick: a = !1, ...s } = e;
|
@@ -6450,20 +6451,20 @@ const _u = ({
|
|
6450
6451
|
{
|
6451
6452
|
ref: t,
|
6452
6453
|
onClick: (n) => {
|
6453
|
-
|
6454
|
+
Bu(n, a, r);
|
6454
6455
|
},
|
6455
6456
|
...s
|
6456
6457
|
}
|
6457
6458
|
);
|
6458
6459
|
});
|
6459
6460
|
Fn.displayName = "BaseButton";
|
6460
|
-
function
|
6461
|
+
function Du() {
|
6461
6462
|
const e = R(!1);
|
6462
6463
|
return $(() => (e.current = !0, () => {
|
6463
6464
|
e.current = !1;
|
6464
6465
|
}), []), V(() => e.current, []);
|
6465
6466
|
}
|
6466
|
-
function
|
6467
|
+
function Uu(e) {
|
6467
6468
|
return he(() => e.every((t) => t == null) ? () => {
|
6468
6469
|
} : (t) => {
|
6469
6470
|
e.forEach((r) => {
|
@@ -6471,7 +6472,7 @@ function Du(e) {
|
|
6471
6472
|
});
|
6472
6473
|
}, [...e]);
|
6473
6474
|
}
|
6474
|
-
const
|
6475
|
+
const Hu = {
|
6475
6476
|
x: 0,
|
6476
6477
|
y: 0,
|
6477
6478
|
width: 0,
|
@@ -6482,7 +6483,7 @@ const Uu = {
|
|
6482
6483
|
right: 0
|
6483
6484
|
};
|
6484
6485
|
function gr(e) {
|
6485
|
-
const t =
|
6486
|
+
const t = Du(), r = R(0), a = R(null), [s, n] = z(Hu), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
|
6486
6487
|
const l = c[0];
|
6487
6488
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
6488
6489
|
a.current && t() && n(l.contentRect);
|
@@ -6499,14 +6500,14 @@ const Pt = {
|
|
6499
6500
|
// w-8
|
6500
6501
|
large: 48
|
6501
6502
|
// w-12
|
6502
|
-
},
|
6503
|
+
}, Vu = {
|
6503
6504
|
small: 16,
|
6504
6505
|
// px-2 x 2
|
6505
6506
|
medium: 24,
|
6506
6507
|
// px-3 x 2
|
6507
6508
|
large: 32
|
6508
6509
|
// px-4 x 2
|
6509
|
-
},
|
6510
|
+
}, zu = 2, Fu = 300, ma = Z.forwardRef(
|
6510
6511
|
({
|
6511
6512
|
children: e,
|
6512
6513
|
disabled: t = !1,
|
@@ -6530,7 +6531,7 @@ const Pt = {
|
|
6530
6531
|
animated: S = !1,
|
6531
6532
|
...N
|
6532
6533
|
}, C) => {
|
6533
|
-
const v =
|
6534
|
+
const v = Lu({
|
6534
6535
|
type: ha,
|
6535
6536
|
mode: r,
|
6536
6537
|
focusMode: a,
|
@@ -6547,15 +6548,15 @@ const Pt = {
|
|
6547
6548
|
radius: k,
|
6548
6549
|
variant: b,
|
6549
6550
|
animated: S
|
6550
|
-
}), _ =
|
6551
|
+
}), _ = Pu({ mode: r, raw: c, iconClassName: x, variant: b }), E = Mu({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = gr(), [O, W] = gr(), [M, J] = gr(), Q = R(0), L = R(null), P = R(null), q = Uu([C, L]);
|
6551
6552
|
return Oe(() => {
|
6552
|
-
M && M.current && S && (Q.current = J.width +
|
6553
|
+
M && M.current && S && (Q.current = J.width + Vu[u] + (l ? 0 : zu), L.current && !L.current.style.width && (L.current.style.width = `${Pt[u]}px`));
|
6553
6554
|
}, [J, M, u, l, S]), Oe(() => {
|
6554
6555
|
if (L && L.current && S) {
|
6555
6556
|
let D = Pt[u];
|
6556
6557
|
h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Pt[u] && (P.current = setTimeout(() => {
|
6557
6558
|
w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
|
6558
|
-
},
|
6559
|
+
}, Fu * 0.8))), D === Pt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
|
6559
6560
|
}
|
6560
6561
|
}, [
|
6561
6562
|
F,
|
@@ -6632,7 +6633,7 @@ try {
|
|
6632
6633
|
});
|
6633
6634
|
} catch {
|
6634
6635
|
}
|
6635
|
-
const
|
6636
|
+
const Wu = Z.forwardRef(
|
6636
6637
|
({
|
6637
6638
|
children: e,
|
6638
6639
|
mode: t = "system",
|
@@ -6670,8 +6671,8 @@ const Fu = Z.forwardRef(
|
|
6670
6671
|
) });
|
6671
6672
|
}
|
6672
6673
|
);
|
6673
|
-
|
6674
|
-
const
|
6674
|
+
Wu.displayName = "ButtonSort";
|
6675
|
+
const ju = ({
|
6675
6676
|
children: e,
|
6676
6677
|
fill: t,
|
6677
6678
|
viewBox: r,
|
@@ -6714,14 +6715,14 @@ try {
|
|
6714
6715
|
});
|
6715
6716
|
} catch {
|
6716
6717
|
}
|
6717
|
-
const
|
6718
|
+
const Gu = ({
|
6718
6719
|
className: e,
|
6719
6720
|
viewBox: t,
|
6720
6721
|
title: r,
|
6721
6722
|
monotone: a,
|
6722
6723
|
...s
|
6723
6724
|
}) => /* @__PURE__ */ i(
|
6724
|
-
|
6725
|
+
ju,
|
6725
6726
|
{
|
6726
6727
|
defaultViewBox: "0 0 384 512",
|
6727
6728
|
size: "size-5",
|
@@ -6752,7 +6753,7 @@ try {
|
|
6752
6753
|
} catch {
|
6753
6754
|
}
|
6754
6755
|
const Wn = Y.createContext(null);
|
6755
|
-
function
|
6756
|
+
function Ku({
|
6756
6757
|
initialOpen: e = !1,
|
6757
6758
|
open: t,
|
6758
6759
|
onOpenChange: r
|
@@ -6786,14 +6787,14 @@ const Zt = () => {
|
|
6786
6787
|
throw new Error("Modal components must be wrapped in <Modal />");
|
6787
6788
|
return e;
|
6788
6789
|
};
|
6789
|
-
function
|
6790
|
+
function Ju({
|
6790
6791
|
children: e,
|
6791
6792
|
...t
|
6792
6793
|
}) {
|
6793
|
-
const r =
|
6794
|
+
const r = Ku(t);
|
6794
6795
|
return /* @__PURE__ */ i(Wn.Provider, { value: r, children: e });
|
6795
6796
|
}
|
6796
|
-
const
|
6797
|
+
const qu = Y.forwardRef(function(e, t) {
|
6797
6798
|
const { context: r, ...a } = Zt(), s = Jr([a.refs.setFloating, t]);
|
6798
6799
|
if (!r.open)
|
6799
6800
|
return null;
|
@@ -6811,13 +6812,13 @@ const Ju = Y.forwardRef(function(e, t) {
|
|
6811
6812
|
children: o.children
|
6812
6813
|
}
|
6813
6814
|
) }) }) });
|
6814
|
-
}),
|
6815
|
+
}), Yu = Y.forwardRef(function({ children: e, ...t }, r) {
|
6815
6816
|
const { setLabelId: a } = Zt(), s = Kr();
|
6816
6817
|
return Y.useLayoutEffect(() => (a(s), () => a(void 0)), [s, a]), /* @__PURE__ */ i("h1", { ...t, ref: r, id: s, children: e });
|
6817
|
-
}),
|
6818
|
+
}), Qu = Y.forwardRef(function({ children: e, ...t }, r) {
|
6818
6819
|
const { setDescriptionId: a } = Zt(), s = Kr();
|
6819
6820
|
return Y.useLayoutEffect(() => (a(s), () => a(void 0)), [s, a]), /* @__PURE__ */ i("div", { ...t, ref: r, id: s, children: e });
|
6820
|
-
}),
|
6821
|
+
}), Xu = Y.forwardRef(function(e, t) {
|
6821
6822
|
const { setOpen: r } = Zt(), { trigger: a, className: s, ...n } = e, o = Y.useCallback(() => r(!1), [r]);
|
6822
6823
|
return /* @__PURE__ */ i("div", { className: s, children: Y.cloneElement(a, {
|
6823
6824
|
ref: t,
|
@@ -6838,7 +6839,7 @@ try {
|
|
6838
6839
|
});
|
6839
6840
|
} catch {
|
6840
6841
|
}
|
6841
|
-
const Ke = "panel", Mt = "messagebox",
|
6842
|
+
const Ke = "panel", Mt = "messagebox", Zu = ({
|
6842
6843
|
className: e,
|
6843
6844
|
kind: t,
|
6844
6845
|
borderMode: r,
|
@@ -6863,7 +6864,7 @@ const Ke = "panel", Mt = "messagebox", Xu = ({
|
|
6863
6864
|
footer: "flex grow flex-col sm:p-4 p-2",
|
6864
6865
|
header: "sm:p-4 mb-0 p-2",
|
6865
6866
|
close: "sm:p-4 p-2"
|
6866
|
-
}),
|
6867
|
+
}), eh = "slide", ms = "fade", th = ({
|
6867
6868
|
open: e,
|
6868
6869
|
onOpenChange: t,
|
6869
6870
|
title: r,
|
@@ -6873,14 +6874,14 @@ const Ke = "panel", Mt = "messagebox", Xu = ({
|
|
6873
6874
|
kind: o = Ke,
|
6874
6875
|
className: c,
|
6875
6876
|
animation: l = !1,
|
6876
|
-
animationType: d =
|
6877
|
+
animationType: d = eh,
|
6877
6878
|
maxWidth: m = "medium"
|
6878
6879
|
}) => {
|
6879
6880
|
const u = R(""), [h, f] = z(
|
6880
6881
|
l ? d === ms ? { opacity: 0 } : {
|
6881
6882
|
transform: "translateY(-100vh)"
|
6882
6883
|
} : {}
|
6883
|
-
), g =
|
6884
|
+
), g = Zu({
|
6884
6885
|
className: c,
|
6885
6886
|
kind: o,
|
6886
6887
|
borderMode: n,
|
@@ -6905,10 +6906,10 @@ const Ke = "panel", Mt = "messagebox", Xu = ({
|
|
6905
6906
|
}, 100);
|
6906
6907
|
return () => clearTimeout(y);
|
6907
6908
|
}
|
6908
|
-
}, [e, l, d]), /* @__PURE__ */ i(ue, { children: e && /* @__PURE__ */ i(
|
6909
|
+
}, [e, l, d]), /* @__PURE__ */ i(ue, { children: e && /* @__PURE__ */ i(Ju, { open: e, onOpenChange: t, children: /* @__PURE__ */ T(qu, { className: g.main, style: h, children: [
|
6909
6910
|
/* @__PURE__ */ T("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
6910
6911
|
/* @__PURE__ */ i(
|
6911
|
-
|
6912
|
+
Xu,
|
6912
6913
|
{
|
6913
6914
|
className: g.close,
|
6914
6915
|
trigger: /* @__PURE__ */ i(
|
@@ -6918,14 +6919,14 @@ const Ke = "panel", Mt = "messagebox", Xu = ({
|
|
6918
6919
|
focusMode: "light",
|
6919
6920
|
noBorder: !0,
|
6920
6921
|
label: "Close",
|
6921
|
-
children: /* @__PURE__ */ i(
|
6922
|
+
children: /* @__PURE__ */ i(Gu, { monotone: !0 })
|
6922
6923
|
}
|
6923
6924
|
)
|
6924
6925
|
}
|
6925
6926
|
),
|
6926
|
-
/* @__PURE__ */ i(
|
6927
|
+
/* @__PURE__ */ i(Yu, { className: g.header, children: r })
|
6927
6928
|
] }),
|
6928
|
-
/* @__PURE__ */ i(
|
6929
|
+
/* @__PURE__ */ i(Qu, { className: g.content, children: a }),
|
6929
6930
|
s && /* @__PURE__ */ i("div", { className: g.footer, children: s })
|
6930
6931
|
] }) }) });
|
6931
6932
|
};
|
@@ -6951,7 +6952,7 @@ const Ye = ({
|
|
6951
6952
|
noCancelAction: n = !1,
|
6952
6953
|
primaryActionVariant: o = "danger"
|
6953
6954
|
}) => /* @__PURE__ */ i(
|
6954
|
-
|
6955
|
+
th,
|
6955
6956
|
{
|
6956
6957
|
kind: "messagebox",
|
6957
6958
|
open: e,
|
@@ -7198,7 +7199,7 @@ const Ye = ({
|
|
7198
7199
|
), er = As((e, t) => /* @__PURE__ */ i(Vo, { children: /* @__PURE__ */ i(Gn, { ...e, ref: t }) }));
|
7199
7200
|
er.displayName = "Menu";
|
7200
7201
|
Gn.displayName = "MenuComponent";
|
7201
|
-
const
|
7202
|
+
const rh = ({
|
7202
7203
|
children: e,
|
7203
7204
|
fill: t,
|
7204
7205
|
viewBox: r,
|
@@ -7241,14 +7242,14 @@ try {
|
|
7241
7242
|
});
|
7242
7243
|
} catch {
|
7243
7244
|
}
|
7244
|
-
const
|
7245
|
+
const ah = ({
|
7245
7246
|
className: e,
|
7246
7247
|
viewBox: t,
|
7247
7248
|
title: r,
|
7248
7249
|
monotone: a,
|
7249
7250
|
...s
|
7250
7251
|
}) => /* @__PURE__ */ T(
|
7251
|
-
|
7252
|
+
rh,
|
7252
7253
|
{
|
7253
7254
|
defaultViewBox: "0 0 448 512",
|
7254
7255
|
size: "size-5",
|
@@ -7333,7 +7334,7 @@ const Re = Y.forwardRef(
|
|
7333
7334
|
}
|
7334
7335
|
}),
|
7335
7336
|
children: [
|
7336
|
-
o && /* @__PURE__ */ i(
|
7337
|
+
o && /* @__PURE__ */ i(ah, { className: "mr-2", size: "size-4" }),
|
7337
7338
|
r,
|
7338
7339
|
e && /* @__PURE__ */ i("span", { className: d, children: e })
|
7339
7340
|
]
|
@@ -7342,7 +7343,7 @@ const Re = Y.forwardRef(
|
|
7342
7343
|
}
|
7343
7344
|
);
|
7344
7345
|
Re.displayName = "MenuItem";
|
7345
|
-
const
|
7346
|
+
const sh = ({ className: e, ...t }) => {
|
7346
7347
|
const r = p(e, "my-1 border-t border-border-medium");
|
7347
7348
|
return /* @__PURE__ */ i("div", { className: r, ...t });
|
7348
7349
|
}, Kn = ({
|
@@ -7368,12 +7369,12 @@ try {
|
|
7368
7369
|
});
|
7369
7370
|
} catch {
|
7370
7371
|
}
|
7371
|
-
const
|
7372
|
+
const nh = (e) => {
|
7372
7373
|
for (let t = 0; t < e.length; t++)
|
7373
7374
|
if (e[t].enabled)
|
7374
7375
|
return !0;
|
7375
7376
|
return !1;
|
7376
|
-
},
|
7377
|
+
}, oh = ({
|
7377
7378
|
className: e,
|
7378
7379
|
defaultPlacement: t = "top-start"
|
7379
7380
|
}) => {
|
@@ -7392,7 +7393,7 @@ const sh = (e) => {
|
|
7392
7393
|
prompt: g
|
7393
7394
|
}
|
7394
7395
|
});
|
7395
|
-
}, u = d && l && l.tags &&
|
7396
|
+
}, u = d && l && l.tags && nh(l.tags), h = /* @__PURE__ */ T(
|
7396
7397
|
er,
|
7397
7398
|
{
|
7398
7399
|
mode: "dark",
|
@@ -7534,7 +7535,7 @@ const sh = (e) => {
|
|
7534
7535
|
] });
|
7535
7536
|
};
|
7536
7537
|
let yr = null, br = null;
|
7537
|
-
const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = async () => (br || (br = import("./index.
|
7538
|
+
const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = async () => (br || (br = import("./index.Bx_do3Wo.js").then((e) => e.utilities)), br), ih = async () => {
|
7538
7539
|
try {
|
7539
7540
|
await Promise.all([qn(), Yn()]);
|
7540
7541
|
} catch {
|
@@ -7555,7 +7556,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7555
7556
|
}, 100);
|
7556
7557
|
} catch {
|
7557
7558
|
}
|
7558
|
-
}, Xn = (e, t) => Qn(e, "success", t),
|
7559
|
+
}, Xn = (e, t) => Qn(e, "success", t), nf = (e, t) => Qn(e, "error", t), Zn = ({
|
7559
7560
|
className: e
|
7560
7561
|
}) => {
|
7561
7562
|
const { user: t, getAccessToken: r } = Ve(), {
|
@@ -7640,7 +7641,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7640
7641
|
}
|
7641
7642
|
)
|
7642
7643
|
] });
|
7643
|
-
},
|
7644
|
+
}, ch = ({
|
7644
7645
|
className: e
|
7645
7646
|
}) => {
|
7646
7647
|
const {
|
@@ -7668,7 +7669,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7668
7669
|
)
|
7669
7670
|
}
|
7670
7671
|
);
|
7671
|
-
},
|
7672
|
+
}, lh = [".pdf", ".txt"], dh = [
|
7672
7673
|
".js",
|
7673
7674
|
".cjs",
|
7674
7675
|
".mjs",
|
@@ -7683,30 +7684,30 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7683
7684
|
".json",
|
7684
7685
|
".md"
|
7685
7686
|
], vr = [
|
7686
|
-
...
|
7687
|
-
...
|
7688
|
-
], Wr = 400 * 1024,
|
7687
|
+
...lh,
|
7688
|
+
...dh
|
7689
|
+
], Wr = 400 * 1024, uh = "text/plain", hh = () => p(
|
7689
7690
|
"relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
|
7690
|
-
), ps = () => p("bg-surface-darker"),
|
7691
|
+
), ps = () => p("bg-surface-darker"), mh = () => p("text-copy-lighter caret-copy-light"), fh = () => p(
|
7691
7692
|
"has-[.av-prompt-editable:focus]:outline",
|
7692
7693
|
"has-[.av-prompt-editable:focus]:outline-2",
|
7693
7694
|
"has-[.av-prompt-editable:focus]:outline-offset-2",
|
7694
7695
|
"has-[.av-prompt-editable:focus]:outline-focus-light"
|
7695
|
-
),
|
7696
|
+
), ph = () => p(
|
7696
7697
|
"peer",
|
7697
7698
|
"text-base resize-none overflow-hidden w-full text-inherit outline-none",
|
7698
7699
|
"h-6 pr-2 pl-4"
|
7699
|
-
),
|
7700
|
+
), gh = ({ className: e }) => {
|
7700
7701
|
const t = p(
|
7701
7702
|
_o,
|
7702
|
-
uh(),
|
7703
|
-
ps(),
|
7704
7703
|
hh(),
|
7704
|
+
ps(),
|
7705
7705
|
mh(),
|
7706
|
+
fh(),
|
7706
7707
|
e
|
7707
7708
|
), r = p(
|
7708
7709
|
So,
|
7709
|
-
|
7710
|
+
ph(),
|
7710
7711
|
ps()
|
7711
7712
|
);
|
7712
7713
|
return {
|
@@ -7718,15 +7719,15 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7718
7719
|
return "0 Bytes";
|
7719
7720
|
const t = 1024, r = ["Bytes", "KB", "MB", "GB"], a = Math.floor(Math.log(e) / Math.log(t));
|
7720
7721
|
return parseFloat((e / Math.pow(t, a)).toFixed(2)) + " " + r[a];
|
7721
|
-
}, eo = (e) => e.reduce((t, r) => t + r.size, 0),
|
7722
|
+
}, eo = (e) => e.reduce((t, r) => t + r.size, 0), yh = (e) => e.type ? e : new File(
|
7722
7723
|
[e],
|
7723
7724
|
// Use the original file content
|
7724
7725
|
e.name,
|
7725
7726
|
{
|
7726
|
-
type:
|
7727
|
+
type: uh,
|
7727
7728
|
lastModified: e.lastModified
|
7728
7729
|
}
|
7729
|
-
),
|
7730
|
+
), bh = ({
|
7730
7731
|
files: e,
|
7731
7732
|
clearFile: t
|
7732
7733
|
}) => e && e.length > 0 && /* @__PURE__ */ T("div", { className: "px-4 py-2", children: [
|
@@ -7765,9 +7766,9 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7765
7766
|
" ",
|
7766
7767
|
zt(Wr)
|
7767
7768
|
] })
|
7768
|
-
] }), to = 24,
|
7769
|
-
e.current && (e.current.style.height = `${
|
7770
|
-
},
|
7769
|
+
] }), to = 24, vh = 500, ro = 2, wh = 5, kh = to * ro, gs = wh * to, Eh = "ready", _h = "streaming", Sh = "error", Th = "submitted", Lt = (e) => {
|
7770
|
+
e.current && (e.current.style.height = `${kh}px`);
|
7771
|
+
}, xh = () => {
|
7771
7772
|
const { user: e, getAccessToken: t } = Ve(), [r, a] = z(!1), [s, n] = z(null), [o, c] = z(!1), [l, d] = z(!1), {
|
7772
7773
|
dispatch: m,
|
7773
7774
|
state: { reasoning: u, streaming: h, aborted: f, lastResetTimestamp: g, attachments: y }
|
@@ -7781,7 +7782,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7781
7782
|
}), { data: N } = Xt({
|
7782
7783
|
user: e?.username,
|
7783
7784
|
getAccessToken: t
|
7784
|
-
}), C = R(null), v = R(null), _ = R(!1), E = R(0), I = R(null), w = R(null), F = Fi(), O =
|
7785
|
+
}), C = R(null), v = R(null), _ = R(!1), E = R(0), I = R(null), w = R(null), F = Fi(), O = gh({
|
7785
7786
|
className: ""
|
7786
7787
|
}), {
|
7787
7788
|
input: W,
|
@@ -7802,25 +7803,25 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7802
7803
|
}
|
7803
7804
|
}), D = V(
|
7804
7805
|
async (K) => {
|
7805
|
-
K ===
|
7806
|
+
K === Eh && m({
|
7806
7807
|
type: at,
|
7807
7808
|
payload: {
|
7808
7809
|
loading: !1,
|
7809
7810
|
streaming: !1
|
7810
7811
|
}
|
7811
|
-
}), K ===
|
7812
|
+
}), K === Th && m({
|
7812
7813
|
type: at,
|
7813
7814
|
payload: {
|
7814
7815
|
loading: !0,
|
7815
7816
|
streaming: !1
|
7816
7817
|
}
|
7817
|
-
}), K ===
|
7818
|
+
}), K === _h && m({
|
7818
7819
|
type: at,
|
7819
7820
|
payload: {
|
7820
7821
|
loading: !1,
|
7821
7822
|
streaming: !0
|
7822
7823
|
}
|
7823
|
-
}), K ===
|
7824
|
+
}), K === Sh && setTimeout(() => {
|
7824
7825
|
f || (m({
|
7825
7826
|
type: at,
|
7826
7827
|
payload: {
|
@@ -7908,7 +7909,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7908
7909
|
let ie;
|
7909
7910
|
if (s && s.length > 0) {
|
7910
7911
|
const ye = Array.from(s).map(
|
7911
|
-
(B) =>
|
7912
|
+
(B) => yh(B)
|
7912
7913
|
), U = new DataTransfer();
|
7913
7914
|
ye.forEach((B) => U.items.add(B)), ie = U.files;
|
7914
7915
|
}
|
@@ -7916,7 +7917,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7916
7917
|
headers: {
|
7917
7918
|
"Content-Type": "application/json",
|
7918
7919
|
authorization: `Bearer ${ne}`,
|
7919
|
-
[
|
7920
|
+
[Sd]: q
|
7920
7921
|
},
|
7921
7922
|
body: {
|
7922
7923
|
reasoning: u
|
@@ -7937,7 +7938,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7937
7938
|
if (k.prompt !== "") {
|
7938
7939
|
const K = k.prompt.endsWith(":") && !k.prompt.endsWith(": ") ? k.prompt + " " : k.prompt;
|
7939
7940
|
K.indexOf(Ta) !== -1 ? navigator.clipboard.readText().then((ie) => {
|
7940
|
-
M(K.replace(Ta, ie));
|
7941
|
+
M(K.replace(Ta, `"""${ie}"""`));
|
7941
7942
|
}) : M(K), !Ae() && w.current && w.current.focus(), b({
|
7942
7943
|
type: Ss
|
7943
7944
|
});
|
@@ -7949,7 +7950,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7949
7950
|
}
|
7950
7951
|
g > 0 && g !== E.current ? (E.current = g, setTimeout(() => {
|
7951
7952
|
w.current && (!W && Lt(w), w.current.focus());
|
7952
|
-
},
|
7953
|
+
}, vh)) : h === !1 && !W && (Lt(w), !Ae() && w.current && w.current.focus());
|
7953
7954
|
}, [g, h, W]), $(() => {
|
7954
7955
|
k.lastTriggeredTimestamp && setTimeout(() => {
|
7955
7956
|
ge();
|
@@ -8019,13 +8020,13 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8019
8020
|
}
|
8020
8021
|
)
|
8021
8022
|
] }),
|
8022
|
-
/* @__PURE__ */ i(
|
8023
|
+
/* @__PURE__ */ i(bh, { files: s, clearFile: We }),
|
8023
8024
|
/* @__PURE__ */ T("div", { className: "p-2 flex items-center", children: [
|
8024
|
-
/* @__PURE__ */ i(
|
8025
|
-
/* @__PURE__ */ i(
|
8026
|
-
/* @__PURE__ */ i(
|
8025
|
+
/* @__PURE__ */ i(ch, { className: "order-7 ml-auto" }),
|
8026
|
+
/* @__PURE__ */ i(Su, { className: "order-1 mr-4 sm:mr-2" }),
|
8027
|
+
/* @__PURE__ */ i(oh, { className: "order-2 mr-4 sm:mr-2" }),
|
8027
8028
|
/* @__PURE__ */ i(
|
8028
|
-
|
8029
|
+
_u,
|
8029
8030
|
{
|
8030
8031
|
className: "order-3 mr-4 sm:mr-2",
|
8031
8032
|
onClick: Pe
|
@@ -8039,7 +8040,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8039
8040
|
] })
|
8040
8041
|
] }) })
|
8041
8042
|
] });
|
8042
|
-
}, mt = "--sassy-bottom",
|
8043
|
+
}, mt = "--sassy-bottom", Ch = ({ isComponent: e }) => {
|
8043
8044
|
const {
|
8044
8045
|
state: { loading: t, streaming: r, restoring: a }
|
8045
8046
|
} = X(be), {
|
@@ -8131,7 +8132,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8131
8132
|
dd
|
8132
8133
|
),
|
8133
8134
|
children: [
|
8134
|
-
/* @__PURE__ */ i(
|
8135
|
+
/* @__PURE__ */ i(xh, {}),
|
8135
8136
|
/* @__PURE__ */ i("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: c })
|
8136
8137
|
]
|
8137
8138
|
}
|
@@ -8152,14 +8153,14 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8152
8153
|
label: "Google Gemini",
|
8153
8154
|
icon: bi
|
8154
8155
|
}
|
8155
|
-
],
|
8156
|
+
], Ih = ({ className: e }) => {
|
8156
8157
|
const {
|
8157
8158
|
dispatch: t,
|
8158
8159
|
state: { privateChat: r },
|
8159
8160
|
setChatId: a,
|
8160
8161
|
setInitialMessages: s
|
8161
8162
|
} = X(be), { getAccessToken: n, user: o } = Ve(), { status: c } = Xe(), [l, d] = z(!1), m = V(() => {
|
8162
|
-
l || (
|
8163
|
+
l || (ih(), d(!0));
|
8163
8164
|
}, [l]), { isSuccess: u, refetch: h, data: f } = Xt({
|
8164
8165
|
user: o?.username,
|
8165
8166
|
getAccessToken: n
|
@@ -8228,42 +8229,42 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8228
8229
|
trigger: b
|
8229
8230
|
}
|
8230
8231
|
) : /* @__PURE__ */ i("div", { className: e, children: b });
|
8231
|
-
},
|
8232
|
-
() => import("./ProfileEntry.
|
8232
|
+
}, Rh = it(
|
8233
|
+
() => import("./ProfileEntry.BbGrkpwi.js").then((e) => ({
|
8233
8234
|
default: e.Profile
|
8234
8235
|
}))
|
8235
|
-
),
|
8236
|
-
() => import("./SettingsEntry.
|
8236
|
+
), Ah = it(
|
8237
|
+
() => import("./SettingsEntry.DVwYerEI.js").then((e) => ({
|
8237
8238
|
default: e.SettingsPanel
|
8238
8239
|
}))
|
8239
|
-
),
|
8240
|
-
() => import("./HistoryEntry.
|
8240
|
+
), Nh = it(
|
8241
|
+
() => import("./HistoryEntry.BjH7O284.js").then((e) => ({
|
8241
8242
|
default: e.HistoryPanel
|
8242
8243
|
}))
|
8243
|
-
), Nh = it(
|
8244
|
-
() => import("./AboutEntry.DFUYyQsY.js").then((e) => ({ default: e.About }))
|
8245
8244
|
), Oh = it(
|
8246
|
-
() => import("./
|
8247
|
-
), $h = (
|
8245
|
+
() => import("./AboutEntry.B7_RtVXN.js").then((e) => ({ default: e.About }))
|
8246
|
+
), $h = it(
|
8247
|
+
() => import("./UsageEntry.Cmt6ZxGc.js").then((e) => ({ default: e.Usage }))
|
8248
|
+
), Ph = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(Ns, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
|
8248
8249
|
switch (e) {
|
8249
8250
|
case "profile":
|
8250
|
-
return /* @__PURE__ */ i(Ih, { open: t, onOpenChange: r });
|
8251
|
-
case "settings":
|
8252
8251
|
return /* @__PURE__ */ i(Rh, { open: t, onOpenChange: r });
|
8253
|
-
case "
|
8252
|
+
case "settings":
|
8254
8253
|
return /* @__PURE__ */ i(Ah, { open: t, onOpenChange: r });
|
8255
|
-
case "
|
8254
|
+
case "history":
|
8256
8255
|
return /* @__PURE__ */ i(Nh, { open: t, onOpenChange: r });
|
8257
|
-
case "
|
8256
|
+
case "about":
|
8258
8257
|
return /* @__PURE__ */ i(Oh, { open: t, onOpenChange: r });
|
8258
|
+
case "usage":
|
8259
|
+
return /* @__PURE__ */ i($h, { open: t, onOpenChange: r });
|
8259
8260
|
default:
|
8260
8261
|
return null;
|
8261
8262
|
}
|
8262
|
-
})() }) : null,
|
8263
|
+
})() }) : null, Mh = ({
|
8263
8264
|
isComponent: e = !1
|
8264
8265
|
}) => {
|
8265
8266
|
const { logout: t, getAccessToken: r } = Ve(), [a, s] = z(null), [n, o] = z(!1), [c, l] = z(!1), [d, m] = z(!1), u = V(() => {
|
8266
|
-
d || (import("./ProfileEntry.
|
8267
|
+
d || (import("./ProfileEntry.BbGrkpwi.js"), import("./SettingsEntry.DVwYerEI.js"), import("./HistoryEntry.BjH7O284.js"), import("./AboutEntry.B7_RtVXN.js"), import("./UsageEntry.Cmt6ZxGc.js"), m(!0));
|
8267
8268
|
}, [d]), h = V((k) => {
|
8268
8269
|
s(k);
|
8269
8270
|
}, []), f = V(() => {
|
@@ -8313,7 +8314,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8313
8314
|
}
|
8314
8315
|
),
|
8315
8316
|
/* @__PURE__ */ i(
|
8316
|
-
|
8317
|
+
Ph,
|
8317
8318
|
{
|
8318
8319
|
type: a,
|
8319
8320
|
open: a !== null,
|
@@ -8328,7 +8329,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8328
8329
|
rowGap: 0,
|
8329
8330
|
columnGap: 0,
|
8330
8331
|
children: [
|
8331
|
-
/* @__PURE__ */ i(yt, { children: /* @__PURE__ */ i(
|
8332
|
+
/* @__PURE__ */ i(yt, { children: /* @__PURE__ */ i(Ih, { className: " mr-4 sm:mr-2" }) }),
|
8332
8333
|
/* @__PURE__ */ i(yt, { children: Je() && /* @__PURE__ */ T(ue, { children: [
|
8333
8334
|
n && /* @__PURE__ */ i(Jn, { className: "mr-4 sm:mr-2" }),
|
8334
8335
|
/* @__PURE__ */ i(jn, { className: "mr-4 sm:mr-2" }),
|
@@ -8399,7 +8400,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8399
8400
|
}
|
8400
8401
|
),
|
8401
8402
|
!e && /* @__PURE__ */ T(ue, { children: [
|
8402
|
-
/* @__PURE__ */ i(
|
8403
|
+
/* @__PURE__ */ i(sh, {}),
|
8403
8404
|
/* @__PURE__ */ i(
|
8404
8405
|
Re,
|
8405
8406
|
{
|
@@ -8418,7 +8419,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8418
8419
|
}
|
8419
8420
|
) })
|
8420
8421
|
] });
|
8421
|
-
},
|
8422
|
+
}, Lh = ({
|
8422
8423
|
show: e,
|
8423
8424
|
bottom: t,
|
8424
8425
|
onClick: r,
|
@@ -8463,7 +8464,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8463
8464
|
}
|
8464
8465
|
)
|
8465
8466
|
}
|
8466
|
-
) : null, Ft = "av-bubble", ys = "av-button", fa = "icon", ao = "button", jr = "link",
|
8467
|
+
) : null, Ft = "av-bubble", ys = "av-button", fa = "icon", ao = "button", jr = "link", Bh = ({
|
8467
8468
|
type: e,
|
8468
8469
|
size: t,
|
8469
8470
|
labelRight: r,
|
@@ -8499,7 +8500,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8499
8500
|
"h-12": t === "large" && n && (r || a)
|
8500
8501
|
});
|
8501
8502
|
}
|
8502
|
-
},
|
8503
|
+
}, Dh = ({
|
8503
8504
|
type: e,
|
8504
8505
|
size: t,
|
8505
8506
|
labelRight: r,
|
@@ -8522,7 +8523,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8522
8523
|
[o]: t === "large" && (r || a)
|
8523
8524
|
});
|
8524
8525
|
}
|
8525
|
-
},
|
8526
|
+
}, Uh = ({
|
8526
8527
|
mode: e,
|
8527
8528
|
noBackground: t,
|
8528
8529
|
truncate: r,
|
@@ -8558,7 +8559,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8558
8559
|
return p("not-prose text-copy-lighter", {
|
8559
8560
|
truncate: r
|
8560
8561
|
});
|
8561
|
-
},
|
8562
|
+
}, Hh = ({
|
8562
8563
|
mode: e,
|
8563
8564
|
noBackground: t,
|
8564
8565
|
variant: r
|
@@ -8588,13 +8589,13 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8588
8589
|
if (r === "selected")
|
8589
8590
|
return "bg-action-selected-dark";
|
8590
8591
|
}
|
8591
|
-
},
|
8592
|
+
}, Vh = ({
|
8592
8593
|
radius: e
|
8593
8594
|
}) => p({
|
8594
8595
|
"rounded-full": e === "large",
|
8595
8596
|
"rounded-md": e === "medium",
|
8596
8597
|
"rounded-xs": e === "small"
|
8597
|
-
}),
|
8598
|
+
}), zh = ({
|
8598
8599
|
mode: e,
|
8599
8600
|
disabled: t,
|
8600
8601
|
variant: r
|
@@ -8632,7 +8633,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8632
8633
|
});
|
8633
8634
|
if (r === "selected")
|
8634
8635
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
8635
|
-
},
|
8636
|
+
}, Fh = ({
|
8636
8637
|
mode: e,
|
8637
8638
|
disabled: t,
|
8638
8639
|
variant: r
|
@@ -8670,7 +8671,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8670
8671
|
});
|
8671
8672
|
if (r === "selected")
|
8672
8673
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
8673
|
-
},
|
8674
|
+
}, Wh = ({
|
8674
8675
|
mode: e,
|
8675
8676
|
noBorder: t,
|
8676
8677
|
variant: r
|
@@ -8700,14 +8701,14 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8700
8701
|
});
|
8701
8702
|
if (r === "selected")
|
8702
8703
|
return "border border-border-selected-dark";
|
8703
|
-
},
|
8704
|
+
}, jh = ({
|
8704
8705
|
focusMode: e
|
8705
8706
|
}) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
8706
8707
|
"focus:outline-focus-dark": e === "dark",
|
8707
8708
|
"focus:outline-focus-light": e === "light",
|
8708
8709
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
8709
8710
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
8710
|
-
}),
|
8711
|
+
}), Gh = ({
|
8711
8712
|
mode: e,
|
8712
8713
|
raw: t,
|
8713
8714
|
iconClassName: r,
|
@@ -8734,11 +8735,11 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8734
8735
|
} : a === "selected" && (s = {
|
8735
8736
|
"text-copy-lighter": !0
|
8736
8737
|
}), p(s, r);
|
8737
|
-
},
|
8738
|
+
}, Kh = ({
|
8738
8739
|
animated: e
|
8739
8740
|
}) => p({
|
8740
8741
|
"transition-opacity duration-300 ease-in-out": e
|
8741
|
-
}),
|
8742
|
+
}), Jh = ({
|
8742
8743
|
type: e,
|
8743
8744
|
className: t,
|
8744
8745
|
raw: r,
|
@@ -8758,15 +8759,15 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8758
8759
|
animated: k
|
8759
8760
|
}) => (h || (h = "primary"), r ? p(ys, t) : p(
|
8760
8761
|
ys,
|
8761
|
-
|
8762
|
+
Uh({
|
8762
8763
|
mode: a,
|
8763
8764
|
variant: h,
|
8764
8765
|
noBackground: u,
|
8765
8766
|
truncate: f
|
8766
8767
|
}),
|
8767
|
-
|
8768
|
-
|
8769
|
-
|
8768
|
+
Hh({ mode: a, noBackground: u, variant: h }),
|
8769
|
+
Vh({ radius: y }),
|
8770
|
+
Bh({
|
8770
8771
|
type: e,
|
8771
8772
|
size: c,
|
8772
8773
|
labelRight: d,
|
@@ -8774,11 +8775,11 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8774
8775
|
align: g,
|
8775
8776
|
animated: k
|
8776
8777
|
}),
|
8777
|
-
|
8778
|
-
|
8779
|
-
|
8780
|
-
Vh({ mode: a, variant: h, disabled: n }),
|
8778
|
+
Dh({ type: e, size: c, labelRight: d, labelLeft: m }),
|
8779
|
+
Wh({ mode: a, variant: h, noBorder: l }),
|
8780
|
+
jh({ focusMode: s }),
|
8781
8781
|
zh({ mode: a, variant: h, disabled: n }),
|
8782
|
+
Fh({ mode: a, variant: h, disabled: n }),
|
8782
8783
|
{
|
8783
8784
|
"w-full": o,
|
8784
8785
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
@@ -8787,7 +8788,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8787
8788
|
"transition-[width] duration-300 ease-in": k
|
8788
8789
|
}),
|
8789
8790
|
t
|
8790
|
-
)),
|
8791
|
+
)), qh = (e, t, r) => {
|
8791
8792
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
8792
8793
|
}, so = Z.forwardRef((e, t) => {
|
8793
8794
|
const { onClick: r, noInternalClick: a = !1, ...s } = e;
|
@@ -8796,20 +8797,20 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8796
8797
|
{
|
8797
8798
|
ref: t,
|
8798
8799
|
onClick: (n) => {
|
8799
|
-
|
8800
|
+
qh(n, a, r);
|
8800
8801
|
},
|
8801
8802
|
...s
|
8802
8803
|
}
|
8803
8804
|
);
|
8804
8805
|
});
|
8805
8806
|
so.displayName = "BaseButton";
|
8806
|
-
function
|
8807
|
+
function Yh() {
|
8807
8808
|
const e = R(!1);
|
8808
8809
|
return $(() => (e.current = !0, () => {
|
8809
8810
|
e.current = !1;
|
8810
8811
|
}), []), V(() => e.current, []);
|
8811
8812
|
}
|
8812
|
-
function
|
8813
|
+
function Qh(e) {
|
8813
8814
|
return he(() => e.every((t) => t == null) ? () => {
|
8814
8815
|
} : (t) => {
|
8815
8816
|
e.forEach((r) => {
|
@@ -8817,7 +8818,7 @@ function Yh(e) {
|
|
8817
8818
|
});
|
8818
8819
|
}, [...e]);
|
8819
8820
|
}
|
8820
|
-
const
|
8821
|
+
const Xh = {
|
8821
8822
|
x: 0,
|
8822
8823
|
y: 0,
|
8823
8824
|
width: 0,
|
@@ -8828,7 +8829,7 @@ const Qh = {
|
|
8828
8829
|
right: 0
|
8829
8830
|
};
|
8830
8831
|
function wr(e) {
|
8831
|
-
const t =
|
8832
|
+
const t = Yh(), r = R(0), a = R(null), [s, n] = z(Xh), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
|
8832
8833
|
const l = c[0];
|
8833
8834
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
8834
8835
|
a.current && t() && n(l.contentRect);
|
@@ -8845,14 +8846,14 @@ const Dt = {
|
|
8845
8846
|
// w-8
|
8846
8847
|
large: 48
|
8847
8848
|
// w-12
|
8848
|
-
},
|
8849
|
+
}, Zh = {
|
8849
8850
|
small: 16,
|
8850
8851
|
// px-2 x 2
|
8851
8852
|
medium: 24,
|
8852
8853
|
// px-3 x 2
|
8853
8854
|
large: 32
|
8854
8855
|
// px-4 x 2
|
8855
|
-
},
|
8856
|
+
}, em = 2, tm = 300, pa = Z.forwardRef(
|
8856
8857
|
({
|
8857
8858
|
children: e,
|
8858
8859
|
disabled: t = !1,
|
@@ -8876,7 +8877,7 @@ const Dt = {
|
|
8876
8877
|
animated: S = !1,
|
8877
8878
|
...N
|
8878
8879
|
}, C) => {
|
8879
|
-
const v =
|
8880
|
+
const v = Jh({
|
8880
8881
|
type: fa,
|
8881
8882
|
mode: r,
|
8882
8883
|
focusMode: a,
|
@@ -8893,15 +8894,15 @@ const Dt = {
|
|
8893
8894
|
radius: k,
|
8894
8895
|
variant: b,
|
8895
8896
|
animated: S
|
8896
|
-
}), _ =
|
8897
|
+
}), _ = Gh({ mode: r, raw: c, iconClassName: x, variant: b }), E = Kh({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = wr(), [O, W] = wr(), [M, J] = wr(), Q = R(0), L = R(null), P = R(null), q = Qh([C, L]);
|
8897
8898
|
return Oe(() => {
|
8898
|
-
M && M.current && S && (Q.current = J.width +
|
8899
|
+
M && M.current && S && (Q.current = J.width + Zh[u] + (l ? 0 : em), L.current && !L.current.style.width && (L.current.style.width = `${Dt[u]}px`));
|
8899
8900
|
}, [J, M, u, l, S]), Oe(() => {
|
8900
8901
|
if (L && L.current && S) {
|
8901
8902
|
let D = Dt[u];
|
8902
8903
|
h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Dt[u] && (P.current = setTimeout(() => {
|
8903
8904
|
w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
|
8904
|
-
},
|
8905
|
+
}, tm * 0.8))), D === Dt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
|
8905
8906
|
}
|
8906
8907
|
}, [
|
8907
8908
|
F,
|
@@ -8978,7 +8979,7 @@ try {
|
|
8978
8979
|
});
|
8979
8980
|
} catch {
|
8980
8981
|
}
|
8981
|
-
const
|
8982
|
+
const rm = Z.forwardRef(
|
8982
8983
|
({
|
8983
8984
|
children: e,
|
8984
8985
|
mode: t = "system",
|
@@ -9016,7 +9017,7 @@ const tm = Z.forwardRef(
|
|
9016
9017
|
) });
|
9017
9018
|
}
|
9018
9019
|
);
|
9019
|
-
|
9020
|
+
rm.displayName = "ButtonSort";
|
9020
9021
|
const no = ({
|
9021
9022
|
children: e,
|
9022
9023
|
fill: t,
|
@@ -9060,7 +9061,7 @@ try {
|
|
9060
9061
|
});
|
9061
9062
|
} catch {
|
9062
9063
|
}
|
9063
|
-
const
|
9064
|
+
const am = ({
|
9064
9065
|
className: e,
|
9065
9066
|
viewBox: t,
|
9066
9067
|
title: r,
|
@@ -9086,7 +9087,7 @@ const rm = ({
|
|
9086
9087
|
/* @__PURE__ */ i("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" })
|
9087
9088
|
]
|
9088
9089
|
}
|
9089
|
-
),
|
9090
|
+
), sm = ({
|
9090
9091
|
className: e,
|
9091
9092
|
viewBox: t,
|
9092
9093
|
title: r,
|
@@ -9117,20 +9118,20 @@ try {
|
|
9117
9118
|
});
|
9118
9119
|
} catch {
|
9119
9120
|
}
|
9120
|
-
const
|
9121
|
+
const nm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
9121
9122
|
"max-w-xs sm:max-w-md md:max-w-2xl": !t,
|
9122
9123
|
"lg:max-w-3xl": e === "left" && !t
|
9123
|
-
}),
|
9124
|
+
}), om = ({ kind: e }) => p({
|
9124
9125
|
"bg-surface-lighter dark:bg-surface-dark": e === "left",
|
9125
9126
|
"bg-surface-accent": e === "right"
|
9126
|
-
}),
|
9127
|
+
}), im = ({ kind: e }) => p(
|
9127
9128
|
"prose prose-dark dark:prose-lighter",
|
9128
9129
|
"prose-blockquote:my-1",
|
9129
9130
|
"prose-ol:my-1 prose-ul:my-1",
|
9130
9131
|
{
|
9131
9132
|
"text-copy-lighter": e === "right"
|
9132
9133
|
}
|
9133
|
-
),
|
9134
|
+
), cm = ({ kind: e, tail: t }) => {
|
9134
9135
|
if (t)
|
9135
9136
|
return p(
|
9136
9137
|
`${Ft}-${e}-tail`,
|
@@ -9151,7 +9152,7 @@ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9151
9152
|
"rounded-tr-xl": e === "left",
|
9152
9153
|
"rounded-tl-xl": e === "right"
|
9153
9154
|
});
|
9154
|
-
},
|
9155
|
+
}, lm = ({
|
9155
9156
|
kind: e,
|
9156
9157
|
className: t,
|
9157
9158
|
contentClassName: r,
|
@@ -9169,10 +9170,10 @@ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9169
9170
|
), o = p(
|
9170
9171
|
`${Ft}-content`,
|
9171
9172
|
"flex flex-col empty:hidden",
|
9172
|
-
|
9173
|
+
nm({ kind: e, noMaxWidth: a }),
|
9174
|
+
im({ kind: e }),
|
9173
9175
|
om({ kind: e }),
|
9174
|
-
|
9175
|
-
im({ kind: e, tail: s }),
|
9176
|
+
cm({ kind: e, tail: s }),
|
9176
9177
|
r
|
9177
9178
|
), c = "pr-2 pt-1 text-end text-xs text-copy-light", l = p("flex flex-col-reverse sm:flex-row", {
|
9178
9179
|
"ml-2": e === "left" && !s,
|
@@ -9186,7 +9187,7 @@ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9186
9187
|
footer: c,
|
9187
9188
|
copyButton: l
|
9188
9189
|
};
|
9189
|
-
},
|
9190
|
+
}, dm = "FOOTER_EMPTY", oo = ({
|
9190
9191
|
children: e,
|
9191
9192
|
kind: t = "left",
|
9192
9193
|
className: r,
|
@@ -9199,7 +9200,7 @@ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9199
9200
|
noMaxWidth: d = !1,
|
9200
9201
|
tail: m = !1
|
9201
9202
|
}) => {
|
9202
|
-
const [u, h] = z(!1), f =
|
9203
|
+
const [u, h] = z(!1), f = lm({
|
9203
9204
|
kind: t,
|
9204
9205
|
className: r,
|
9205
9206
|
contentClassName: a,
|
@@ -9220,7 +9221,7 @@ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9220
9221
|
/* @__PURE__ */ i("div", { className: f.main, children: e }),
|
9221
9222
|
s && Object.keys(s).map((k, b) => {
|
9222
9223
|
const x = s[k];
|
9223
|
-
return x ===
|
9224
|
+
return x === dm ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ i("p", { className: f.footer, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "invisible", children: " " }) }) }, `${k}-${b}`) : x ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ T("p", { className: f.footer, children: [
|
9224
9225
|
k,
|
9225
9226
|
": ",
|
9226
9227
|
x
|
@@ -9239,7 +9240,7 @@ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9239
9240
|
label: u ? "Copied to clipboard" : "Copy to clipboard",
|
9240
9241
|
onClick: y,
|
9241
9242
|
disabled: u,
|
9242
|
-
children: u ? /* @__PURE__ */ i(
|
9243
|
+
children: u ? /* @__PURE__ */ i(am, { size: "size-3" }) : /* @__PURE__ */ i(sm, { size: "size-3" })
|
9243
9244
|
}
|
9244
9245
|
) })
|
9245
9246
|
] });
|
@@ -9257,7 +9258,7 @@ try {
|
|
9257
9258
|
});
|
9258
9259
|
} catch {
|
9259
9260
|
}
|
9260
|
-
const vs = "av-spinner",
|
9261
|
+
const vs = "av-spinner", um = ({
|
9261
9262
|
spinnerRef: e,
|
9262
9263
|
mode: t = "system",
|
9263
9264
|
type: r = "circle",
|
@@ -9304,7 +9305,7 @@ try {
|
|
9304
9305
|
});
|
9305
9306
|
} catch {
|
9306
9307
|
}
|
9307
|
-
const ws = "av-button", tr = "icon", ga = "button", Gr = "link",
|
9308
|
+
const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
|
9308
9309
|
type: e,
|
9309
9310
|
size: t,
|
9310
9311
|
labelRight: r,
|
@@ -9340,7 +9341,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
|
|
9340
9341
|
"h-12": t === "large" && n && (r || a)
|
9341
9342
|
});
|
9342
9343
|
}
|
9343
|
-
},
|
9344
|
+
}, mm = ({
|
9344
9345
|
type: e,
|
9345
9346
|
size: t,
|
9346
9347
|
labelRight: r,
|
@@ -9363,7 +9364,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
|
|
9363
9364
|
[o]: t === "large" && (r || a)
|
9364
9365
|
});
|
9365
9366
|
}
|
9366
|
-
},
|
9367
|
+
}, fm = ({
|
9367
9368
|
mode: e,
|
9368
9369
|
noBackground: t,
|
9369
9370
|
truncate: r,
|
@@ -9399,7 +9400,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
|
|
9399
9400
|
return p("not-prose text-copy-lighter", {
|
9400
9401
|
truncate: r
|
9401
9402
|
});
|
9402
|
-
},
|
9403
|
+
}, pm = ({
|
9403
9404
|
mode: e,
|
9404
9405
|
noBackground: t,
|
9405
9406
|
variant: r
|
@@ -9429,13 +9430,13 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
|
|
9429
9430
|
if (r === "selected")
|
9430
9431
|
return "bg-action-selected-dark";
|
9431
9432
|
}
|
9432
|
-
},
|
9433
|
+
}, gm = ({
|
9433
9434
|
radius: e
|
9434
9435
|
}) => p({
|
9435
9436
|
"rounded-full": e === "large",
|
9436
9437
|
"rounded-md": e === "medium",
|
9437
9438
|
"rounded-xs": e === "small"
|
9438
|
-
}),
|
9439
|
+
}), ym = ({
|
9439
9440
|
mode: e,
|
9440
9441
|
disabled: t,
|
9441
9442
|
variant: r
|
@@ -9473,7 +9474,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
|
|
9473
9474
|
});
|
9474
9475
|
if (r === "selected")
|
9475
9476
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
9476
|
-
},
|
9477
|
+
}, bm = ({
|
9477
9478
|
mode: e,
|
9478
9479
|
disabled: t,
|
9479
9480
|
variant: r
|
@@ -9511,7 +9512,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
|
|
9511
9512
|
});
|
9512
9513
|
if (r === "selected")
|
9513
9514
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
9514
|
-
},
|
9515
|
+
}, vm = ({
|
9515
9516
|
mode: e,
|
9516
9517
|
noBorder: t,
|
9517
9518
|
variant: r
|
@@ -9541,14 +9542,14 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
|
|
9541
9542
|
});
|
9542
9543
|
if (r === "selected")
|
9543
9544
|
return "border border-border-selected-dark";
|
9544
|
-
},
|
9545
|
+
}, wm = ({
|
9545
9546
|
focusMode: e
|
9546
9547
|
}) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
9547
9548
|
"focus:outline-focus-dark": e === "dark",
|
9548
9549
|
"focus:outline-focus-light": e === "light",
|
9549
9550
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
9550
9551
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
9551
|
-
}),
|
9552
|
+
}), km = ({
|
9552
9553
|
mode: e,
|
9553
9554
|
raw: t,
|
9554
9555
|
iconClassName: r,
|
@@ -9575,7 +9576,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
|
|
9575
9576
|
} : a === "selected" && (s = {
|
9576
9577
|
"text-copy-lighter": !0
|
9577
9578
|
}), p(s, r);
|
9578
|
-
},
|
9579
|
+
}, Em = ({
|
9579
9580
|
animated: e
|
9580
9581
|
}) => p({
|
9581
9582
|
"transition-opacity duration-300 ease-in-out": e
|
@@ -9599,15 +9600,15 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
|
|
9599
9600
|
animated: k
|
9600
9601
|
}) => (h || (h = "primary"), r ? p(ws, t) : p(
|
9601
9602
|
ws,
|
9602
|
-
|
9603
|
+
fm({
|
9603
9604
|
mode: a,
|
9604
9605
|
variant: h,
|
9605
9606
|
noBackground: u,
|
9606
9607
|
truncate: f
|
9607
9608
|
}),
|
9608
|
-
|
9609
|
-
|
9610
|
-
|
9609
|
+
pm({ mode: a, noBackground: u, variant: h }),
|
9610
|
+
gm({ radius: y }),
|
9611
|
+
hm({
|
9611
9612
|
type: e,
|
9612
9613
|
size: c,
|
9613
9614
|
labelRight: d,
|
@@ -9615,11 +9616,11 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
|
|
9615
9616
|
align: g,
|
9616
9617
|
animated: k
|
9617
9618
|
}),
|
9618
|
-
|
9619
|
-
|
9620
|
-
|
9621
|
-
gm({ mode: a, variant: h, disabled: n }),
|
9619
|
+
mm({ type: e, size: c, labelRight: d, labelLeft: m }),
|
9620
|
+
vm({ mode: a, variant: h, noBorder: l }),
|
9621
|
+
wm({ focusMode: s }),
|
9622
9622
|
ym({ mode: a, variant: h, disabled: n }),
|
9623
|
+
bm({ mode: a, variant: h, disabled: n }),
|
9623
9624
|
{
|
9624
9625
|
"w-full": o,
|
9625
9626
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
@@ -9628,7 +9629,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
|
|
9628
9629
|
"transition-[width] duration-300 ease-in": e === tr && k
|
9629
9630
|
}),
|
9630
9631
|
t
|
9631
|
-
)),
|
9632
|
+
)), _m = (e, t, r) => {
|
9632
9633
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
9633
9634
|
}, ya = Z.forwardRef((e, t) => {
|
9634
9635
|
const { onClick: r, noInternalClick: a = !1, ...s } = e;
|
@@ -9637,7 +9638,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
|
|
9637
9638
|
{
|
9638
9639
|
ref: t,
|
9639
9640
|
onClick: (n) => {
|
9640
|
-
|
9641
|
+
_m(n, a, r);
|
9641
9642
|
},
|
9642
9643
|
...s
|
9643
9644
|
}
|
@@ -9687,13 +9688,13 @@ const co = Z.forwardRef(
|
|
9687
9688
|
}
|
9688
9689
|
);
|
9689
9690
|
co.displayName = "Button";
|
9690
|
-
function
|
9691
|
+
function Sm() {
|
9691
9692
|
const e = R(!1);
|
9692
9693
|
return $(() => (e.current = !0, () => {
|
9693
9694
|
e.current = !1;
|
9694
9695
|
}), []), V(() => e.current, []);
|
9695
9696
|
}
|
9696
|
-
function
|
9697
|
+
function Tm(e) {
|
9697
9698
|
return he(() => e.every((t) => t == null) ? () => {
|
9698
9699
|
} : (t) => {
|
9699
9700
|
e.forEach((r) => {
|
@@ -9701,7 +9702,7 @@ function Sm(e) {
|
|
9701
9702
|
});
|
9702
9703
|
}, [...e]);
|
9703
9704
|
}
|
9704
|
-
const
|
9705
|
+
const xm = {
|
9705
9706
|
x: 0,
|
9706
9707
|
y: 0,
|
9707
9708
|
width: 0,
|
@@ -9712,7 +9713,7 @@ const Tm = {
|
|
9712
9713
|
right: 0
|
9713
9714
|
};
|
9714
9715
|
function kr(e) {
|
9715
|
-
const t =
|
9716
|
+
const t = Sm(), r = R(0), a = R(null), [s, n] = z(xm), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
|
9716
9717
|
const l = c[0];
|
9717
9718
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
9718
9719
|
a.current && t() && n(l.contentRect);
|
@@ -9729,14 +9730,14 @@ const Ut = {
|
|
9729
9730
|
// w-8
|
9730
9731
|
large: 48
|
9731
9732
|
// w-12
|
9732
|
-
},
|
9733
|
+
}, Cm = {
|
9733
9734
|
small: 16,
|
9734
9735
|
// px-2 x 2
|
9735
9736
|
medium: 24,
|
9736
9737
|
// px-3 x 2
|
9737
9738
|
large: 32
|
9738
9739
|
// px-4 x 2
|
9739
|
-
},
|
9740
|
+
}, Im = 2, Rm = 300, lo = Z.forwardRef(
|
9740
9741
|
({
|
9741
9742
|
children: e,
|
9742
9743
|
disabled: t = !1,
|
@@ -9777,15 +9778,15 @@ const Ut = {
|
|
9777
9778
|
radius: k,
|
9778
9779
|
variant: b,
|
9779
9780
|
animated: S
|
9780
|
-
}), _ =
|
9781
|
+
}), _ = km({ mode: r, raw: c, iconClassName: x, variant: b }), E = Em({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = kr(), [O, W] = kr(), [M, J] = kr(), Q = R(0), L = R(null), P = R(null), q = Tm([C, L]);
|
9781
9782
|
return Oe(() => {
|
9782
|
-
M && M.current && S && (Q.current = J.width +
|
9783
|
+
M && M.current && S && (Q.current = J.width + Cm[u] + (l ? 0 : Im), L.current && !L.current.style.width && (L.current.style.width = `${Ut[u]}px`));
|
9783
9784
|
}, [J, M, u, l, S]), Oe(() => {
|
9784
9785
|
if (L && L.current && S) {
|
9785
9786
|
let D = Ut[u];
|
9786
9787
|
h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Ut[u] && (P.current = setTimeout(() => {
|
9787
9788
|
w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
|
9788
|
-
},
|
9789
|
+
}, Rm * 0.8))), D === Ut[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
|
9789
9790
|
}
|
9790
9791
|
}, [
|
9791
9792
|
F,
|
@@ -9862,7 +9863,7 @@ try {
|
|
9862
9863
|
});
|
9863
9864
|
} catch {
|
9864
9865
|
}
|
9865
|
-
const
|
9866
|
+
const Am = Z.forwardRef(
|
9866
9867
|
({
|
9867
9868
|
children: e,
|
9868
9869
|
mode: t = "system",
|
@@ -9900,10 +9901,10 @@ const Rm = Z.forwardRef(
|
|
9900
9901
|
) });
|
9901
9902
|
}
|
9902
9903
|
);
|
9903
|
-
|
9904
|
-
const
|
9904
|
+
Am.displayName = "ButtonSort";
|
9905
|
+
const Nm = 200, Om = ({
|
9905
9906
|
string: e,
|
9906
|
-
idealLength: t =
|
9907
|
+
idealLength: t = Nm
|
9907
9908
|
}) => {
|
9908
9909
|
if (e.length <= t)
|
9909
9910
|
return { string: e, isTruncated: !1 };
|
@@ -9914,7 +9915,7 @@ const Am = 200, Nm = ({
|
|
9914
9915
|
string: e.slice(0, t + r),
|
9915
9916
|
isTruncated: !0
|
9916
9917
|
};
|
9917
|
-
},
|
9918
|
+
}, $m = ({
|
9918
9919
|
children: e,
|
9919
9920
|
length: t = 200,
|
9920
9921
|
mode: r = "system",
|
@@ -9923,7 +9924,7 @@ const Am = 200, Nm = ({
|
|
9923
9924
|
const [s, n] = z(!1);
|
9924
9925
|
if (typeof e != "string")
|
9925
9926
|
return e;
|
9926
|
-
const { string: o, isTruncated: c } =
|
9927
|
+
const { string: o, isTruncated: c } = Om({
|
9927
9928
|
string: e,
|
9928
9929
|
idealLength: t
|
9929
9930
|
});
|
@@ -9957,7 +9958,7 @@ try {
|
|
9957
9958
|
});
|
9958
9959
|
} catch {
|
9959
9960
|
}
|
9960
|
-
const
|
9961
|
+
const Pm = ({ content: e }) => /* @__PURE__ */ i(
|
9961
9962
|
oo,
|
9962
9963
|
{
|
9963
9964
|
tail: !0,
|
@@ -9965,14 +9966,14 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
|
|
9965
9966
|
copyToClipboard: e,
|
9966
9967
|
copyToClipboardFocusMode: "light",
|
9967
9968
|
className: "mt-3",
|
9968
|
-
children: /* @__PURE__ */ i(
|
9969
|
+
children: /* @__PURE__ */ i($m, { mode: "light", focusMode: "light", children: e })
|
9969
9970
|
}
|
9970
|
-
), Es = 2,
|
9971
|
+
), Es = 2, Mm = it(
|
9971
9972
|
() => import(
|
9972
9973
|
/* webpackChunkName: "LazyMessageAssistant" */
|
9973
|
-
"./ChatBubbleAssistant.
|
9974
|
+
"./ChatBubbleAssistant.Ck5z9TEG.js"
|
9974
9975
|
)
|
9975
|
-
),
|
9976
|
+
), Lm = Z.memo(
|
9976
9977
|
({
|
9977
9978
|
role: e,
|
9978
9979
|
content: t,
|
@@ -9983,8 +9984,8 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
|
|
9983
9984
|
const {
|
9984
9985
|
state: { restoring: n, streaming: o }
|
9985
9986
|
} = X(be);
|
9986
|
-
return e === hd && t ? /* @__PURE__ */ i(
|
9987
|
-
|
9987
|
+
return e === hd && t ? /* @__PURE__ */ i(Pm, { content: t }) : o && (e === qt || e === Tr) && (!t || t && t.length < Es) ? /* @__PURE__ */ i(oo, { tail: !0, children: /* @__PURE__ */ i(um, { type: "dots" }) }) : (e === qt || e === Tr) && t && t.length >= Es ? /* @__PURE__ */ i(Ns, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
|
9988
|
+
Mm,
|
9988
9989
|
{
|
9989
9990
|
role: e,
|
9990
9991
|
content: t,
|
@@ -9995,7 +9996,7 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
|
|
9995
9996
|
}
|
9996
9997
|
) }) : null;
|
9997
9998
|
}
|
9998
|
-
),
|
9999
|
+
), Bm = () => {
|
9999
10000
|
const { messages: e } = Xe(), t = e ? e.map((r, a) => r.role === qt ? a : -1).filter((r) => r !== -1).pop() : -1;
|
10000
10001
|
return e && e.length > 0 ? /* @__PURE__ */ i("div", { className: "space-y-6 mt-2 @container", children: e?.map((r, a) => {
|
10001
10002
|
let s;
|
@@ -10011,7 +10012,7 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
|
|
10011
10012
|
}), c = o && o.length > 0 ? o.filter(Boolean).join(`
|
10012
10013
|
`) : void 0, l = r.role === qt && a === t;
|
10013
10014
|
return /* @__PURE__ */ i(
|
10014
|
-
|
10015
|
+
Lm,
|
10015
10016
|
{
|
10016
10017
|
role: r.role,
|
10017
10018
|
content: c,
|
@@ -10022,7 +10023,7 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
|
|
10022
10023
|
n
|
10023
10024
|
);
|
10024
10025
|
}) }) : null;
|
10025
|
-
},
|
10026
|
+
}, Dm = () => {
|
10026
10027
|
const { isAuthenticated: e } = Ve(), { ref: t, inViewport: r } = Di(), a = R(null), s = R(null), {
|
10027
10028
|
state: { footerPosition: n, footerHeight: o, footerOffset: c }
|
10028
10029
|
} = X(ca), {
|
@@ -10044,12 +10045,12 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
|
|
10044
10045
|
}, [n, o, c]), /* @__PURE__ */ T(ue, { children: [
|
10045
10046
|
/* @__PURE__ */ T("div", { className: u, ref: a, children: [
|
10046
10047
|
/* @__PURE__ */ i(No, { className: f }),
|
10047
|
-
/* @__PURE__ */ i(
|
10048
|
+
/* @__PURE__ */ i(Bm, {}),
|
10048
10049
|
/* @__PURE__ */ i("div", { ref: t, className: "scroll-marker" }),
|
10049
10050
|
/* @__PURE__ */ i("div", { ref: s, className: "pt-20" })
|
10050
10051
|
] }),
|
10051
10052
|
/* @__PURE__ */ i(
|
10052
|
-
|
10053
|
+
Lh,
|
10053
10054
|
{
|
10054
10055
|
show: !r && n === qe,
|
10055
10056
|
bottom: m.current,
|
@@ -10170,7 +10171,7 @@ function uo({
|
|
10170
10171
|
className: Oa({
|
10171
10172
|
extraClass: "mt-5"
|
10172
10173
|
}),
|
10173
|
-
children: /* @__PURE__ */ i(
|
10174
|
+
children: /* @__PURE__ */ i(Mh, { isComponent: e })
|
10174
10175
|
}
|
10175
10176
|
),
|
10176
10177
|
/* @__PURE__ */ i(
|
@@ -10184,10 +10185,10 @@ function uo({
|
|
10184
10185
|
style: {
|
10185
10186
|
height: s
|
10186
10187
|
},
|
10187
|
-
children: /* @__PURE__ */ i(
|
10188
|
+
children: /* @__PURE__ */ i(Dm, {})
|
10188
10189
|
}
|
10189
10190
|
),
|
10190
|
-
/* @__PURE__ */ i(
|
10191
|
+
/* @__PURE__ */ i(Ch, { isComponent: e })
|
10191
10192
|
]
|
10192
10193
|
}
|
10193
10194
|
)
|
@@ -10199,51 +10200,51 @@ function uo({
|
|
10199
10200
|
);
|
10200
10201
|
}
|
10201
10202
|
uo.displayName = "App";
|
10202
|
-
const
|
10203
|
+
const of = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: uo }, Symbol.toStringTag, { value: "Module" }));
|
10203
10204
|
export {
|
10204
|
-
|
10205
|
-
|
10205
|
+
of as App,
|
10206
|
+
Lh as ButtonScroll,
|
10206
10207
|
Zs as CHAT_SET_PROVIDER,
|
10207
10208
|
at as CHAT_SET_STATUS,
|
10208
10209
|
be as ChatContext,
|
10209
10210
|
Ye as ConfirmationPanel,
|
10210
|
-
|
10211
|
+
Wm as De,
|
10211
10212
|
Gt as E,
|
10212
10213
|
ft as E$1,
|
10213
|
-
|
10214
|
-
|
10215
|
-
|
10214
|
+
Gm as Fe,
|
10215
|
+
Km as Ge,
|
10216
|
+
jm as He,
|
10216
10217
|
oa as HistoryContext,
|
10217
10218
|
ss as LazyToastContainerWrapper,
|
10218
|
-
|
10219
|
+
dm as Me,
|
10219
10220
|
Rn as O,
|
10220
10221
|
oo as Oe,
|
10221
10222
|
wc as Pe,
|
10222
10223
|
ze as SERVICE_TYPES,
|
10223
|
-
|
10224
|
+
qm as Ye,
|
10224
10225
|
bi as a,
|
10225
10226
|
fi as a$1,
|
10226
10227
|
Di as b,
|
10227
10228
|
pn as getDefaultExportFromCjs,
|
10228
10229
|
Fi as i,
|
10229
|
-
|
10230
|
+
ef as k,
|
10230
10231
|
en as mutateCall,
|
10231
10232
|
na as n,
|
10232
|
-
|
10233
|
-
In as o,
|
10233
|
+
tf as nt,
|
10234
10234
|
Si as p,
|
10235
10235
|
di as p$1,
|
10236
|
-
|
10236
|
+
Jm as qe,
|
10237
10237
|
Rc as setNewProvider,
|
10238
|
-
|
10238
|
+
nf as showErrorToast,
|
10239
10239
|
Xn as showSuccessToast,
|
10240
10240
|
$e as st,
|
10241
|
-
|
10241
|
+
In as t,
|
10242
|
+
th as tt,
|
10242
10243
|
Xe as useAiChat,
|
10243
|
-
|
10244
|
+
Qm as useChangelogs,
|
10244
10245
|
Cn as useChatsHistory,
|
10245
|
-
|
10246
|
-
|
10247
|
-
|
10246
|
+
Zm as useChatsUsage,
|
10247
|
+
Ym as useServerCapabilities,
|
10248
|
+
Xm as useUserChatStats,
|
10248
10249
|
Xt as useUserPreferences
|
10249
10250
|
};
|