@speakeasy-api/moonshine 1.30.2 → 1.30.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AppLayout/context.d.ts +10 -0
- package/dist/{createCustomLucideIcon-CeS8vJaK.mjs → createCustomLucideIcon-BfEKFi2R.mjs} +2 -2
- package/dist/{createCustomLucideIcon-CeS8vJaK.mjs.map → createCustomLucideIcon-BfEKFi2R.mjs.map} +1 -1
- package/dist/{gems-BsGhJQLd.mjs → gems-CExFErfU.mjs} +2 -2
- package/dist/{gems-BsGhJQLd.mjs.map → gems-CExFErfU.mjs.map} +1 -1
- package/dist/{go-Del7mhve.mjs → go-DtjnPffv.mjs} +2 -2
- package/dist/{go-Del7mhve.mjs.map → go-DtjnPffv.mjs.map} +1 -1
- package/dist/hooks/useSidebarInteractionLock.d.ts +24 -0
- package/dist/{index-lTRUb-lg.mjs → index-DI35fZKr.mjs} +756 -729
- package/dist/index-DI35fZKr.mjs.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/{maven-3ippmMz-.mjs → maven-l3dNFtH6.mjs} +2 -2
- package/dist/{maven-3ippmMz-.mjs.map → maven-l3dNFtH6.mjs.map} +1 -1
- package/dist/moonshine.es.js +18 -17
- package/dist/{npm-2gKy5qXZ.mjs → npm-CB2mVHW3.mjs} +2 -2
- package/dist/{npm-2gKy5qXZ.mjs.map → npm-CB2mVHW3.mjs.map} +1 -1
- package/dist/{nuget-yMo4sIVQ.mjs → nuget-Cul3OYjg.mjs} +2 -2
- package/dist/{nuget-yMo4sIVQ.mjs.map → nuget-Cul3OYjg.mjs.map} +1 -1
- package/dist/{packagist-CoGeSpyD.mjs → packagist-BtyEm0EZ.mjs} +2 -2
- package/dist/{packagist-CoGeSpyD.mjs.map → packagist-BtyEm0EZ.mjs.map} +1 -1
- package/dist/{pypi-Dw7oEVCQ.mjs → pypi-DbOLuPtJ.mjs} +2 -2
- package/dist/{pypi-Dw7oEVCQ.mjs.map → pypi-DbOLuPtJ.mjs.map} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/utilities.d.ts +1 -1
- package/dist/index-lTRUb-lg.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u, Fragment as Se, jsxs as tA } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import CA, { isValidElement as Ze, useState as MA, useLayoutEffect as Zn, Suspense as DL, lazy as Nh, useEffect as
|
|
3
|
+
import CA, { isValidElement as Ze, useState as MA, useLayoutEffect as Zn, Suspense as DL, lazy as Nh, useEffect as LA, useMemo as HA, Children as it, cloneElement as dl, createContext as $e, useContext as te, createElement as wo, forwardRef as At, useId as Xr, useCallback as oe, Component as M0, useRef as NA, useInsertionEffect as hl, Fragment as $i, memo as v0, useReducer as pL } from "react";
|
|
4
4
|
import k0 from "lucide-react/dynamicIconImports";
|
|
5
5
|
import * as wl from "react-dom";
|
|
6
6
|
import N0, { unstable_batchedUpdates as vg, createPortal as mL } from "react-dom";
|
|
@@ -353,21 +353,21 @@ function Fh(A, ...e) {
|
|
|
353
353
|
const dt = (A) => {
|
|
354
354
|
const e = (t) => t[A] || [];
|
|
355
355
|
return e.isThemeGetter = !0, e;
|
|
356
|
-
}, K0 = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Y0 = /^\((?:(\w[\w-]*):)?(.+)\)$/i, B4 = /^\d+\/\d+$/, Q4 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, u4 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, E4 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, C4 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, I4 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ri = (A) => B4.test(A), ue = (A) => !!A && !Number.isNaN(Number(A)),
|
|
356
|
+
}, K0 = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Y0 = /^\((?:(\w[\w-]*):)?(.+)\)$/i, B4 = /^\d+\/\d+$/, Q4 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, u4 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, E4 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, C4 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, I4 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ri = (A) => B4.test(A), ue = (A) => !!A && !Number.isNaN(Number(A)), fr = (A) => !!A && Number.isInteger(Number(A)), Rh = (A) => A.endsWith("%") && ue(A.slice(0, -1)), Ho = (A) => Q4.test(A), d4 = () => !0, h4 = (A) => (
|
|
357
357
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
358
358
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
359
359
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
360
360
|
u4.test(A) && !E4.test(A)
|
|
361
|
-
), VE = () => !1, w4 = (A) => C4.test(A), f4 = (A) => I4.test(A), D4 = (A) => !SA(A) && !GA(A), p4 = (A) => As(A, J0, VE), SA = (A) => K0.test(A),
|
|
361
|
+
), VE = () => !1, w4 = (A) => C4.test(A), f4 = (A) => I4.test(A), D4 = (A) => !SA(A) && !GA(A), p4 = (A) => As(A, J0, VE), SA = (A) => K0.test(A), Dr = (A) => As(A, q0, h4), OB = (A) => As(A, L4, ue), m4 = (A) => As(A, T0, VE), y4 = (A) => As(A, O0, f4), M4 = (A) => As(A, VE, w4), GA = (A) => Y0.test(A), kg = (A) => es(A, q0), v4 = (A) => es(A, P4), k4 = (A) => es(A, T0), N4 = (A) => es(A, J0), x4 = (A) => es(A, O0), b4 = (A) => es(A, S4, !0), As = (A, e, t) => {
|
|
362
362
|
const n = K0.exec(A);
|
|
363
363
|
return n ? n[1] ? e(n[1]) : t(n[2]) : !1;
|
|
364
364
|
}, es = (A, e, t = !1) => {
|
|
365
365
|
const n = Y0.exec(A);
|
|
366
366
|
return n ? n[1] ? e(n[1]) : t : !1;
|
|
367
367
|
}, T0 = (A) => A === "position", F4 = /* @__PURE__ */ new Set(["image", "url"]), O0 = (A) => F4.has(A), R4 = /* @__PURE__ */ new Set(["length", "size", "percentage"]), J0 = (A) => R4.has(A), q0 = (A) => A === "length", L4 = (A) => A === "number", P4 = (A) => A === "family-name", S4 = (A) => A === "shadow", Lh = () => {
|
|
368
|
-
const A = dt("color"), e = dt("font"), t = dt("text"), n = dt("font-weight"), o = dt("tracking"), r = dt("leading"), i = dt("breakpoint"), s = dt("container"), a = dt("spacing"), g = dt("radius"), c = dt("shadow"), l = dt("inset-shadow"), Q = dt("drop-shadow"), B = dt("blur"), E = dt("perspective"), C = dt("aspect"), h = dt("ease"), I = dt("animate"), f = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], p = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], k = () => ["auto", "hidden", "clip", "visible", "scroll"], v = () => ["auto", "contain", "none"], D = () => [GA, SA, a], x = () => [ri, "full", "auto", ...D()], N = () => [
|
|
369
|
-
span: ["full",
|
|
370
|
-
}, GA, SA], L = () => [
|
|
368
|
+
const A = dt("color"), e = dt("font"), t = dt("text"), n = dt("font-weight"), o = dt("tracking"), r = dt("leading"), i = dt("breakpoint"), s = dt("container"), a = dt("spacing"), g = dt("radius"), c = dt("shadow"), l = dt("inset-shadow"), Q = dt("drop-shadow"), B = dt("blur"), E = dt("perspective"), C = dt("aspect"), h = dt("ease"), I = dt("animate"), f = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], p = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], k = () => ["auto", "hidden", "clip", "visible", "scroll"], v = () => ["auto", "contain", "none"], D = () => [GA, SA, a], x = () => [ri, "full", "auto", ...D()], N = () => [fr, "none", "subgrid", GA, SA], Y = () => ["auto", {
|
|
369
|
+
span: ["full", fr, GA, SA]
|
|
370
|
+
}, GA, SA], L = () => [fr, "auto", GA, SA], R = () => ["auto", "min", "max", "fr", GA, SA], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], O = () => ["start", "end", "center", "stretch"], K = () => ["auto", ...D()], H = () => [ri, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...D()], W = () => [A, GA, SA], z = () => [Rh, Dr], X = () => [
|
|
371
371
|
// Deprecated since Tailwind CSS v4.0.0
|
|
372
372
|
"",
|
|
373
373
|
"none",
|
|
@@ -375,7 +375,7 @@ const dt = (A) => {
|
|
|
375
375
|
g,
|
|
376
376
|
GA,
|
|
377
377
|
SA
|
|
378
|
-
], q = () => ["", ue, kg,
|
|
378
|
+
], q = () => ["", ue, kg, Dr], b = () => ["solid", "dashed", "dotted", "double"], j = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => [
|
|
379
379
|
// Deprecated since Tailwind CSS v4.0.0
|
|
380
380
|
"",
|
|
381
381
|
"none",
|
|
@@ -627,7 +627,7 @@ const dt = (A) => {
|
|
|
627
627
|
* @see https://tailwindcss.com/docs/z-index
|
|
628
628
|
*/
|
|
629
629
|
z: [{
|
|
630
|
-
z: [
|
|
630
|
+
z: [fr, "auto", GA, SA]
|
|
631
631
|
}],
|
|
632
632
|
// ------------------------
|
|
633
633
|
// --- Flexbox and Grid ---
|
|
@@ -679,7 +679,7 @@ const dt = (A) => {
|
|
|
679
679
|
* @see https://tailwindcss.com/docs/order
|
|
680
680
|
*/
|
|
681
681
|
order: [{
|
|
682
|
-
order: [
|
|
682
|
+
order: [fr, "first", "last", "none", GA, SA]
|
|
683
683
|
}],
|
|
684
684
|
/**
|
|
685
685
|
* Grid Template Columns
|
|
@@ -1070,7 +1070,7 @@ const dt = (A) => {
|
|
|
1070
1070
|
* @see https://tailwindcss.com/docs/font-size
|
|
1071
1071
|
*/
|
|
1072
1072
|
"font-size": [{
|
|
1073
|
-
text: ["base", t, kg,
|
|
1073
|
+
text: ["base", t, kg, Dr]
|
|
1074
1074
|
}],
|
|
1075
1075
|
/**
|
|
1076
1076
|
* Font Smoothing
|
|
@@ -1218,7 +1218,7 @@ const dt = (A) => {
|
|
|
1218
1218
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1219
1219
|
*/
|
|
1220
1220
|
"text-decoration-thickness": [{
|
|
1221
|
-
decoration: [ue, "from-font", "auto", GA,
|
|
1221
|
+
decoration: [ue, "from-font", "auto", GA, Dr]
|
|
1222
1222
|
}],
|
|
1223
1223
|
/**
|
|
1224
1224
|
* Text Decoration Color
|
|
@@ -1348,9 +1348,9 @@ const dt = (A) => {
|
|
|
1348
1348
|
bg: ["none", {
|
|
1349
1349
|
linear: [{
|
|
1350
1350
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1351
|
-
},
|
|
1351
|
+
}, fr, GA, SA],
|
|
1352
1352
|
radial: ["", GA, SA],
|
|
1353
|
-
conic: [
|
|
1353
|
+
conic: [fr, GA, SA]
|
|
1354
1354
|
}, x4, y4]
|
|
1355
1355
|
}],
|
|
1356
1356
|
/**
|
|
@@ -1700,7 +1700,7 @@ const dt = (A) => {
|
|
|
1700
1700
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1701
1701
|
*/
|
|
1702
1702
|
"outline-w": [{
|
|
1703
|
-
outline: ["", ue, kg,
|
|
1703
|
+
outline: ["", ue, kg, Dr]
|
|
1704
1704
|
}],
|
|
1705
1705
|
/**
|
|
1706
1706
|
* Outline Color
|
|
@@ -1775,7 +1775,7 @@ const dt = (A) => {
|
|
|
1775
1775
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1776
1776
|
*/
|
|
1777
1777
|
"ring-offset-w": [{
|
|
1778
|
-
"ring-offset": [ue,
|
|
1778
|
+
"ring-offset": [ue, Dr]
|
|
1779
1779
|
}],
|
|
1780
1780
|
/**
|
|
1781
1781
|
* Ring Offset Color
|
|
@@ -2508,7 +2508,7 @@ const dt = (A) => {
|
|
|
2508
2508
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2509
2509
|
*/
|
|
2510
2510
|
"stroke-w": [{
|
|
2511
|
-
stroke: [ue, kg,
|
|
2511
|
+
stroke: [ue, kg, Dr, OB]
|
|
2512
2512
|
}],
|
|
2513
2513
|
/**
|
|
2514
2514
|
* Stroke
|
|
@@ -3138,13 +3138,13 @@ const Z4 = {
|
|
|
3138
3138
|
}
|
|
3139
3139
|
return t;
|
|
3140
3140
|
}, Eu = {
|
|
3141
|
-
npm: () => import("./npm-
|
|
3142
|
-
pypi: () => import("./pypi-
|
|
3143
|
-
nuget: () => import("./nuget-
|
|
3144
|
-
go: () => import("./go-
|
|
3145
|
-
gems: () => import("./gems-
|
|
3146
|
-
maven: () => import("./maven-
|
|
3147
|
-
packagist: () => import("./packagist-
|
|
3141
|
+
npm: () => import("./npm-CB2mVHW3.mjs"),
|
|
3142
|
+
pypi: () => import("./pypi-DbOLuPtJ.mjs"),
|
|
3143
|
+
nuget: () => import("./nuget-Cul3OYjg.mjs"),
|
|
3144
|
+
go: () => import("./go-DtjnPffv.mjs"),
|
|
3145
|
+
gems: () => import("./gems-CExFErfU.mjs"),
|
|
3146
|
+
maven: () => import("./maven-l3dNFtH6.mjs"),
|
|
3147
|
+
packagist: () => import("./packagist-BtyEm0EZ.mjs")
|
|
3148
3148
|
};
|
|
3149
3149
|
function $4() {
|
|
3150
3150
|
return /* @__PURE__ */ u("div", {});
|
|
@@ -3181,7 +3181,7 @@ const nP = "_svg_1oetj_1", oP = "_text_1oetj_5", rP = "_circleBase_1oetj_12", iP
|
|
|
3181
3181
|
// ms
|
|
3182
3182
|
delay: 0
|
|
3183
3183
|
// ms
|
|
3184
|
-
}, fs = 5, Z0 = 10,
|
|
3184
|
+
}, fs = 5, Z0 = 10, vr = 100, Cu = vr / 2 - Z0 / 2, Iu = 2 * Math.PI * Cu, Uh = 360 / 100, Fg = Iu / 100, ic = 0, Kh = 1 - ic, Yh = {
|
|
3185
3185
|
small: 40,
|
|
3186
3186
|
medium: 50,
|
|
3187
3187
|
large: 60,
|
|
@@ -3205,7 +3205,7 @@ function cP({
|
|
|
3205
3205
|
const [a, g] = MA(
|
|
3206
3206
|
r ? 0 : A
|
|
3207
3207
|
), c = a;
|
|
3208
|
-
|
|
3208
|
+
LA(() => {
|
|
3209
3209
|
if (r) {
|
|
3210
3210
|
const f = Math.max(1, Math.floor(A / 20)), p = setInterval(() => {
|
|
3211
3211
|
g((k) => k >= A ? (clearInterval(p), A) : Math.min(k + f, A));
|
|
@@ -3231,7 +3231,7 @@ function cP({
|
|
|
3231
3231
|
"svg",
|
|
3232
3232
|
{
|
|
3233
3233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3234
|
-
viewBox: `0 0 ${
|
|
3234
|
+
viewBox: `0 0 ${vr} ${vr}`,
|
|
3235
3235
|
shapeRendering: "crispEdges",
|
|
3236
3236
|
width: Yh[e],
|
|
3237
3237
|
height: Yh[e],
|
|
@@ -3246,8 +3246,8 @@ function cP({
|
|
|
3246
3246
|
/* @__PURE__ */ u(
|
|
3247
3247
|
"circle",
|
|
3248
3248
|
{
|
|
3249
|
-
cx:
|
|
3250
|
-
cy:
|
|
3249
|
+
cx: vr / 2,
|
|
3250
|
+
cy: vr / 2,
|
|
3251
3251
|
r: Cu,
|
|
3252
3252
|
style: {
|
|
3253
3253
|
"--track-colour": n,
|
|
@@ -3261,8 +3261,8 @@ function cP({
|
|
|
3261
3261
|
/* @__PURE__ */ u(
|
|
3262
3262
|
"circle",
|
|
3263
3263
|
{
|
|
3264
|
-
cx:
|
|
3265
|
-
cy:
|
|
3264
|
+
cx: vr / 2,
|
|
3265
|
+
cy: vr / 2,
|
|
3266
3266
|
r: Cu,
|
|
3267
3267
|
style: {
|
|
3268
3268
|
"--progress-colour": l,
|
|
@@ -3824,22 +3824,22 @@ var xs = {}, ty = { exports: {} };
|
|
|
3824
3824
|
function M() {
|
|
3825
3825
|
if (!y) {
|
|
3826
3826
|
let OA = function(pe, RA, Oe) {
|
|
3827
|
-
if (RA =
|
|
3827
|
+
if (RA = xA.createShader(RA), xA.shaderSource(RA, Oe), xA.compileShader(RA), Oe = xA.getShaderInfoLog(RA), 0 < (Oe || "").length)
|
|
3828
3828
|
throw Oe;
|
|
3829
|
-
|
|
3829
|
+
xA.attachShader(pe, RA);
|
|
3830
3830
|
};
|
|
3831
3831
|
var iA = document.createElement("canvas"), pA = { alpha: 1, depth: 0, stencil: 0, antialias: 0, premultipliedAlpha: 1, preserveDrawingBuffer: 0, powerPreference: "high-performance", failIfMajorPerformanceCaveat: 0, enableExtensionsByDefault: 1, explicitSwapControl: 1, renderViaOffscreenBackBuffer: 1 };
|
|
3832
|
-
let
|
|
3832
|
+
let xA;
|
|
3833
3833
|
if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
|
|
3834
|
-
if (
|
|
3834
|
+
if (xA = iA.getContext("webgl", pA), G = 1, !xA)
|
|
3835
3835
|
return console.log("No WebGL support. Image mesh will not be drawn."), !1;
|
|
3836
|
-
} else if (
|
|
3836
|
+
} else if (xA = iA.getContext("webgl2", pA))
|
|
3837
3837
|
G = 2;
|
|
3838
|
-
else if (
|
|
3838
|
+
else if (xA = iA.getContext("webgl", pA))
|
|
3839
3839
|
G = 1;
|
|
3840
3840
|
else
|
|
3841
3841
|
return console.log("No WebGL support. Image mesh will not be drawn."), !1;
|
|
3842
|
-
if (
|
|
3842
|
+
if (xA = new Proxy(xA, { get(pe, RA) {
|
|
3843
3843
|
if (pe.isContextLost()) {
|
|
3844
3844
|
if (uA || (console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ", RA), uA = !0), typeof pe[RA] == "function")
|
|
3845
3845
|
return function() {
|
|
@@ -3853,7 +3853,7 @@ var xs = {}, ty = { exports: {} };
|
|
|
3853
3853
|
uA || (console.error("Cannot render the mesh because the GL Context was lost. Tried to set property " + RA), uA = !0);
|
|
3854
3854
|
else
|
|
3855
3855
|
return pe[RA] = Oe, !0;
|
|
3856
|
-
} }), T = Math.min(
|
|
3856
|
+
} }), T = Math.min(xA.getParameter(xA.MAX_RENDERBUFFER_SIZE), xA.getParameter(xA.MAX_TEXTURE_SIZE)), iA = xA.createProgram(), OA(iA, xA.VERTEX_SHADER, `attribute vec2 vertex;
|
|
3857
3857
|
attribute vec2 uv;
|
|
3858
3858
|
uniform vec4 mat;
|
|
3859
3859
|
uniform vec2 translate;
|
|
@@ -3861,14 +3861,14 @@ var xs = {}, ty = { exports: {} };
|
|
|
3861
3861
|
void main() {
|
|
3862
3862
|
st = uv;
|
|
3863
3863
|
gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);
|
|
3864
|
-
}`), OA(iA,
|
|
3864
|
+
}`), OA(iA, xA.FRAGMENT_SHADER, `precision highp float;
|
|
3865
3865
|
uniform sampler2D image;
|
|
3866
3866
|
varying vec2 st;
|
|
3867
3867
|
void main() {
|
|
3868
3868
|
gl_FragColor = texture2D(image, st);
|
|
3869
|
-
}`),
|
|
3869
|
+
}`), xA.bindAttribLocation(iA, 0, "vertex"), xA.bindAttribLocation(iA, 1, "uv"), xA.linkProgram(iA), pA = xA.getProgramInfoLog(iA), 0 < (pA || "").trim().length)
|
|
3870
3870
|
throw pA;
|
|
3871
|
-
Z =
|
|
3871
|
+
Z = xA.getUniformLocation(iA, "mat"), oA = xA.getUniformLocation(iA, "translate"), xA.useProgram(iA), xA.bindBuffer(xA.ARRAY_BUFFER, xA.createBuffer()), xA.enableVertexAttribArray(0), xA.enableVertexAttribArray(1), xA.bindBuffer(xA.ELEMENT_ARRAY_BUFFER, xA.createBuffer()), xA.uniform1i(xA.getUniformLocation(iA, "image"), 0), xA.pixelStorei(xA.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0), y = xA;
|
|
3872
3872
|
}
|
|
3873
3873
|
return !0;
|
|
3874
3874
|
}
|
|
@@ -3884,26 +3884,26 @@ var xs = {}, ty = { exports: {} };
|
|
|
3884
3884
|
return pA ? (y.bindTexture(y.TEXTURE_2D, pA), y.texImage2D(y.TEXTURE_2D, 0, y.RGBA, y.RGBA, y.UNSIGNED_BYTE, iA), y.texParameteri(y.TEXTURE_2D, y.TEXTURE_WRAP_S, y.CLAMP_TO_EDGE), y.texParameteri(y.TEXTURE_2D, y.TEXTURE_WRAP_T, y.CLAMP_TO_EDGE), y.texParameteri(y.TEXTURE_2D, y.TEXTURE_MAG_FILTER, y.LINEAR), G == 2 ? (y.texParameteri(y.TEXTURE_2D, y.TEXTURE_MIN_FILTER, y.LINEAR_MIPMAP_LINEAR), y.generateMipmap(y.TEXTURE_2D)) : y.texParameteri(y.TEXTURE_2D, y.TEXTURE_MIN_FILTER, y.LINEAR), pA) : null;
|
|
3885
3885
|
};
|
|
3886
3886
|
const BA = new I(8), mA = new I(8), FA = new I(10), XA = new I(10);
|
|
3887
|
-
this.Qa = function(iA, pA, OA,
|
|
3887
|
+
this.Qa = function(iA, pA, OA, xA, pe) {
|
|
3888
3888
|
if (M()) {
|
|
3889
3889
|
var RA = BA.push(iA), Oe = mA.push(pA);
|
|
3890
3890
|
if (y.canvas) {
|
|
3891
|
-
(y.canvas.width != RA || y.canvas.height != Oe) && (y.canvas.width = RA, y.canvas.height = Oe), y.viewport(0, Oe - pA, iA, pA), y.disable(y.SCISSOR_TEST), y.clearColor(0, 0, 0, 0), y.clear(y.COLOR_BUFFER_BIT), y.enable(y.SCISSOR_TEST), OA.sort((de, Vn) => Vn.Ba - de.Ba), RA = FA.push(
|
|
3891
|
+
(y.canvas.width != RA || y.canvas.height != Oe) && (y.canvas.width = RA, y.canvas.height = Oe), y.viewport(0, Oe - pA, iA, pA), y.disable(y.SCISSOR_TEST), y.clearColor(0, 0, 0, 0), y.clear(y.COLOR_BUFFER_BIT), y.enable(y.SCISSOR_TEST), OA.sort((de, Vn) => Vn.Ba - de.Ba), RA = FA.push(xA), QA != RA && (y.bufferData(y.ARRAY_BUFFER, 8 * RA, y.DYNAMIC_DRAW), QA = RA), RA = 0;
|
|
3892
3892
|
for (var mt of OA)
|
|
3893
3893
|
y.bufferSubData(y.ARRAY_BUFFER, RA, mt.ia), RA += 4 * mt.ia.length;
|
|
3894
|
-
console.assert(RA == 4 *
|
|
3894
|
+
console.assert(RA == 4 * xA);
|
|
3895
3895
|
for (var Wn of OA)
|
|
3896
3896
|
y.bufferSubData(y.ARRAY_BUFFER, RA, Wn.Ea), RA += 4 * Wn.Ea.length;
|
|
3897
|
-
console.assert(RA == 8 *
|
|
3898
|
-
for (var
|
|
3899
|
-
y.bufferSubData(y.ELEMENT_ARRAY_BUFFER, mt,
|
|
3900
|
-
console.assert(mt == 2 * pe),
|
|
3897
|
+
console.assert(RA == 8 * xA), RA = XA.push(pe), lA != RA && (y.bufferData(y.ELEMENT_ARRAY_BUFFER, 2 * RA, y.DYNAMIC_DRAW), lA = RA), mt = 0;
|
|
3898
|
+
for (var dr of OA)
|
|
3899
|
+
y.bufferSubData(y.ELEMENT_ARRAY_BUFFER, mt, dr.indices), mt += 2 * dr.indices.length;
|
|
3900
|
+
console.assert(mt == 2 * pe), dr = 0, Wn = !0, RA = mt = 0;
|
|
3901
3901
|
for (const de of OA) {
|
|
3902
|
-
de.image.da !=
|
|
3902
|
+
de.image.da != dr && (y.bindTexture(y.TEXTURE_2D, de.image.ca || null), dr = de.image.da), de.hb ? (y.scissor(de.na, Oe - de.oa - de.va, de.sb, de.va), Wn = !0) : Wn && (y.scissor(0, Oe - pA, iA, pA), Wn = !1), OA = 2 / iA;
|
|
3903
3903
|
const Vn = -2 / pA;
|
|
3904
|
-
y.uniform4f(Z, de.N[0] * OA * de.X, de.N[1] * Vn * de.Y, de.N[2] * OA * de.X, de.N[3] * Vn * de.Y), y.uniform2f(oA, de.N[4] * OA * de.X + OA * (de.na - de.fb * de.X) - 1, de.N[5] * Vn * de.Y + Vn * (de.oa - de.gb * de.Y) + 1), y.vertexAttribPointer(0, 2, y.FLOAT, !1, 0, RA), y.vertexAttribPointer(1, 2, y.FLOAT, !1, 0, RA + 4 *
|
|
3904
|
+
y.uniform4f(Z, de.N[0] * OA * de.X, de.N[1] * Vn * de.Y, de.N[2] * OA * de.X, de.N[3] * Vn * de.Y), y.uniform2f(oA, de.N[4] * OA * de.X + OA * (de.na - de.fb * de.X) - 1, de.N[5] * Vn * de.Y + Vn * (de.oa - de.gb * de.Y) + 1), y.vertexAttribPointer(0, 2, y.FLOAT, !1, 0, RA), y.vertexAttribPointer(1, 2, y.FLOAT, !1, 0, RA + 4 * xA), y.drawElements(y.TRIANGLES, de.indices.length, y.UNSIGNED_SHORT, mt), RA += 4 * de.ia.length, mt += 2 * de.indices.length;
|
|
3905
3905
|
}
|
|
3906
|
-
console.assert(RA == 4 *
|
|
3906
|
+
console.assert(RA == 4 * xA), console.assert(mt == 2 * pe);
|
|
3907
3907
|
}
|
|
3908
3908
|
}
|
|
3909
3909
|
}, this.canvas = function() {
|
|
@@ -3993,7 +3993,7 @@ var xs = {}, ty = { exports: {} };
|
|
|
3993
3993
|
this.F.bezierCurveTo(IA, kA, Qe, he, ie, Ee);
|
|
3994
3994
|
}, close: function() {
|
|
3995
3995
|
this.F.closePath();
|
|
3996
|
-
} }),
|
|
3996
|
+
} }), xA = oA.extend("CanvasRenderPaint", { color: function(IA) {
|
|
3997
3997
|
this.ma = y(IA);
|
|
3998
3998
|
}, thickness: function(IA) {
|
|
3999
3999
|
this.Ja = IA;
|
|
@@ -4056,7 +4056,7 @@ var xs = {}, ty = { exports: {} };
|
|
|
4056
4056
|
} });
|
|
4057
4057
|
const pe = /* @__PURE__ */ new Set();
|
|
4058
4058
|
let RA = null, Oe = [], mt = 0, Wn = 0;
|
|
4059
|
-
var
|
|
4059
|
+
var dr = B.CanvasRenderer = QA.extend("Renderer", { __construct: function(IA) {
|
|
4060
4060
|
this.__parent.__construct.call(this), this.D = [1, 0, 0, 1, 0, 0], this.o = IA.getContext("2d"), this.ja = IA, this.u = [];
|
|
4061
4061
|
}, save: function() {
|
|
4062
4062
|
this.D.push(...this.D.slice(this.D.length - 6)), this.u.push(this.o.save.bind(this.o));
|
|
@@ -4093,15 +4093,15 @@ var xs = {}, ty = { exports: {} };
|
|
|
4093
4093
|
const hs = Ct - ke, ws = Cn - Rn;
|
|
4094
4094
|
if (console.assert(hs <= Math.min(mh, kA)), console.assert(ws <= Math.min(yh, It)), !(0 >= hs || 0 >= ws)) {
|
|
4095
4095
|
Ct = hs < mh || ws < yh, kA = Cn = 1;
|
|
4096
|
-
var
|
|
4097
|
-
It = k.eb(),
|
|
4096
|
+
var hr = Math.ceil(hs * Cn), wr = Math.ceil(ws * kA);
|
|
4097
|
+
It = k.eb(), hr > It && (Cn *= It / hr, hr = It), wr > It && (kA *= It / wr, wr = It), RA || (RA = new B.DynamicRectanizer(It), RA.reset(512, 512)), It = RA.addRect(hr, wr), 0 > It && (G(), pe.add(this), It = RA.addRect(hr, wr), console.assert(0 <= It));
|
|
4098
4098
|
var Mh = It & 65535, vh = It >> 16;
|
|
4099
|
-
Oe.push({ N: this.D.slice(this.D.length - 6), image: IA, na: Mh, oa: vh, fb: ke, gb: Rn, sb:
|
|
4099
|
+
Oe.push({ N: this.D.slice(this.D.length - 6), image: IA, na: Mh, oa: vh, fb: ke, gb: Rn, sb: hr, va: wr, X: Cn, Y: kA, ia: new Float32Array(ie), Ea: new Float32Array(Ee), indices: new Uint16Array(Me), hb: Ct, Ba: IA.da << 1 | (Ct ? 1 : 0) }), mt += ie.length, Wn += Me.length;
|
|
4100
4100
|
var oi = this.o, fL = M(Qe);
|
|
4101
4101
|
this.u.push(function() {
|
|
4102
4102
|
oi.save(), oi.resetTransform(), oi.globalCompositeOperation = fL, oi.globalAlpha = he;
|
|
4103
4103
|
const kh = k.canvas();
|
|
4104
|
-
kh && oi.drawImage(kh, Mh, vh,
|
|
4104
|
+
kh && oi.drawImage(kh, Mh, vh, hr, wr, ke, Rn, hs, ws), oi.restore();
|
|
4105
4105
|
});
|
|
4106
4106
|
}
|
|
4107
4107
|
}, _clipPath: function(IA) {
|
|
@@ -4113,7 +4113,7 @@ var xs = {}, ty = { exports: {} };
|
|
|
4113
4113
|
this.transform(1, 0, 0, 1, IA, kA);
|
|
4114
4114
|
} });
|
|
4115
4115
|
B.makeRenderer = function(IA) {
|
|
4116
|
-
const kA = new
|
|
4116
|
+
const kA = new dr(IA), Qe = kA.o;
|
|
4117
4117
|
return new Proxy(kA, { get(he, ie) {
|
|
4118
4118
|
if (typeof he[ie] == "function")
|
|
4119
4119
|
return function(...Ee) {
|
|
@@ -4136,7 +4136,7 @@ var xs = {}, ty = { exports: {} };
|
|
|
4136
4136
|
}, B.decodeImage = function(IA, kA) {
|
|
4137
4137
|
new pA({ R: kA }).decode(IA);
|
|
4138
4138
|
}, B.renderFactory = { makeRenderPaint: function() {
|
|
4139
|
-
return new
|
|
4139
|
+
return new xA();
|
|
4140
4140
|
}, makeRenderPath: function() {
|
|
4141
4141
|
return new OA();
|
|
4142
4142
|
}, makeRenderImage: function() {
|
|
@@ -4511,8 +4511,8 @@ var xs = {}, ty = { exports: {} };
|
|
|
4511
4511
|
Fn(XA);
|
|
4512
4512
|
else
|
|
4513
4513
|
for (var OA = QA ? 1 : 2; OA < y.length; OA++) {
|
|
4514
|
-
var
|
|
4515
|
-
y[OA].v !== null && y[OA].v(
|
|
4514
|
+
var xA = OA === 1 ? iA : mA[OA - 2];
|
|
4515
|
+
y[OA].v !== null && y[OA].v(xA);
|
|
4516
4516
|
}
|
|
4517
4517
|
return iA = uA ? y[0].fromWireType(pA) : void 0, iA;
|
|
4518
4518
|
};
|
|
@@ -4745,8 +4745,8 @@ var xs = {}, ty = { exports: {} };
|
|
|
4745
4745
|
function OA(pe) {
|
|
4746
4746
|
return 0 > pe ? -1 : 0 < pe ? 1 : 0;
|
|
4747
4747
|
}
|
|
4748
|
-
var
|
|
4749
|
-
return (
|
|
4748
|
+
var xA;
|
|
4749
|
+
return (xA = OA(iA.getFullYear() - pA.getFullYear())) === 0 && (xA = OA(iA.getMonth() - pA.getMonth())) === 0 && (xA = OA(iA.getDate() - pA.getDate())), xA;
|
|
4750
4750
|
}
|
|
4751
4751
|
function lA(iA) {
|
|
4752
4752
|
switch (iA.getDay()) {
|
|
@@ -4769,9 +4769,9 @@ var xs = {}, ty = { exports: {} };
|
|
|
4769
4769
|
function uA(iA) {
|
|
4770
4770
|
var pA = iA.J;
|
|
4771
4771
|
for (iA = new Date(new Date(iA.K + 1900, 0, 1).getTime()); 0 < pA; ) {
|
|
4772
|
-
var OA = iA.getMonth(),
|
|
4773
|
-
if (pA >
|
|
4774
|
-
pA -=
|
|
4772
|
+
var OA = iA.getMonth(), xA = (mg(iA.getFullYear()) ? dh : hh)[OA];
|
|
4773
|
+
if (pA > xA - iA.getDate())
|
|
4774
|
+
pA -= xA - iA.getDate() + 1, iA.setDate(1), 11 > OA ? iA.setMonth(OA + 1) : (iA.setMonth(0), iA.setFullYear(iA.getFullYear() + 1));
|
|
4775
4775
|
else {
|
|
4776
4776
|
iA.setDate(iA.getDate() + pA);
|
|
4777
4777
|
break;
|
|
@@ -4913,9 +4913,9 @@ var xs = {}, ty = { exports: {} };
|
|
|
4913
4913
|
var lA = {};
|
|
4914
4914
|
return Z.forEach((uA, BA) => {
|
|
4915
4915
|
var mA = QA[BA], FA = uA.Wa, XA = uA.Xa, iA = QA[BA + Z.length], pA = uA.kb, OA = uA.mb;
|
|
4916
|
-
lA[uA.Sa] = { read: (
|
|
4916
|
+
lA[uA.Sa] = { read: (xA) => mA.fromWireType(FA(XA, xA)), write: (xA, pe) => {
|
|
4917
4917
|
var RA = [];
|
|
4918
|
-
pA(OA,
|
|
4918
|
+
pA(OA, xA, iA.toWireType(RA, pe)), Fn(RA);
|
|
4919
4919
|
} };
|
|
4920
4920
|
}), [{ name: y.name, fromWireType: function(uA) {
|
|
4921
4921
|
var BA = {}, mA;
|
|
@@ -4957,9 +4957,9 @@ var xs = {}, ty = { exports: {} };
|
|
|
4957
4957
|
uo(`Cannot construct ${mA} due to unbound types`, [T]);
|
|
4958
4958
|
}), nn([M, y, G], T ? [T] : [], function(pA) {
|
|
4959
4959
|
if (pA = pA[0], T)
|
|
4960
|
-
var OA = pA.h,
|
|
4960
|
+
var OA = pA.h, xA = OA.B;
|
|
4961
4961
|
else
|
|
4962
|
-
|
|
4962
|
+
xA = Go.prototype;
|
|
4963
4963
|
pA = d(iA, function() {
|
|
4964
4964
|
if (Object.getPrototypeOf(this) !== pe)
|
|
4965
4965
|
throw new V("Use 'new' to construct " + mA);
|
|
@@ -4970,12 +4970,12 @@ var xs = {}, ty = { exports: {} };
|
|
|
4970
4970
|
throw new V(`Tried to invoke ctor of ${mA} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(RA.I).toString()}) parameters instead!`);
|
|
4971
4971
|
return mt.apply(this, arguments);
|
|
4972
4972
|
});
|
|
4973
|
-
var pe = Object.create(
|
|
4973
|
+
var pe = Object.create(xA, { constructor: { value: pA } });
|
|
4974
4974
|
pA.prototype = pe;
|
|
4975
4975
|
var RA = new AL(mA, pA, pe, XA, OA, oA, lA, BA);
|
|
4976
|
-
RA.l && (RA.l.T === void 0 && (RA.l.T = []), RA.l.T.push(RA)), OA = new Qo(mA, RA, !0, !1),
|
|
4976
|
+
RA.l && (RA.l.T === void 0 && (RA.l.T = []), RA.l.T.push(RA)), OA = new Qo(mA, RA, !0, !1), xA = new Qo(mA + "*", RA, !1, !1);
|
|
4977
4977
|
var Oe = new Qo(mA + " const*", RA, !1, !0);
|
|
4978
|
-
return gt[M] = { pointerType:
|
|
4978
|
+
return gt[M] = { pointerType: xA, Ka: Oe }, ah(iA, pA), [OA, xA, Oe];
|
|
4979
4979
|
});
|
|
4980
4980
|
}, _embind_register_class_class_function: function(M, y, G, T, Z, oA, QA) {
|
|
4981
4981
|
var lA = wg(G, T);
|
|
@@ -5059,10 +5059,10 @@ var xs = {}, ty = { exports: {} };
|
|
|
5059
5059
|
}, enumerable: !0 };
|
|
5060
5060
|
if (uA) {
|
|
5061
5061
|
uA = Nt(lA, uA);
|
|
5062
|
-
var
|
|
5062
|
+
var xA = iA[1];
|
|
5063
5063
|
OA.set = function(pe) {
|
|
5064
5064
|
var RA = lh(this, mA, FA + " setter"), Oe = [];
|
|
5065
|
-
uA(BA, RA,
|
|
5065
|
+
uA(BA, RA, xA.toWireType(Oe, pe)), Fn(Oe);
|
|
5066
5066
|
};
|
|
5067
5067
|
}
|
|
5068
5068
|
return Object.defineProperty(mA.h.B, y, OA), [];
|
|
@@ -8758,9 +8758,9 @@ const MP = await import("./speakeasy-logo-ByBTXLWb.mjs"), vP = or("relative", {
|
|
|
8758
8758
|
"isHovered",
|
|
8759
8759
|
l?.viewModelInstance
|
|
8760
8760
|
);
|
|
8761
|
-
return
|
|
8761
|
+
return LA(() => {
|
|
8762
8762
|
c(a === "dark" ? "loop-dark" : "loop-light");
|
|
8763
|
-
}, [a]),
|
|
8763
|
+
}, [a]), LA(() => () => {
|
|
8764
8764
|
l?.cleanup();
|
|
8765
8765
|
}, [l]), /* @__PURE__ */ tA(
|
|
8766
8766
|
"div",
|
|
@@ -9077,7 +9077,7 @@ function Ae(A) {
|
|
|
9077
9077
|
A(t) && e(t);
|
|
9078
9078
|
};
|
|
9079
9079
|
}
|
|
9080
|
-
function
|
|
9080
|
+
function PA(A) {
|
|
9081
9081
|
return (e) => oy(e, A);
|
|
9082
9082
|
}
|
|
9083
9083
|
function jn(A) {
|
|
@@ -9301,7 +9301,7 @@ function tC(A, e, t) {
|
|
|
9301
9301
|
}
|
|
9302
9302
|
return { ref: n, callbackRef: o };
|
|
9303
9303
|
}
|
|
9304
|
-
function
|
|
9304
|
+
function _r(A, e, t) {
|
|
9305
9305
|
return tC(A, e, t).callbackRef;
|
|
9306
9306
|
}
|
|
9307
9307
|
function YP(A, e, t, n, o, r, i, s, a) {
|
|
@@ -9400,13 +9400,13 @@ const Vt = xe(
|
|
|
9400
9400
|
return YA(
|
|
9401
9401
|
dA(
|
|
9402
9402
|
A,
|
|
9403
|
-
|
|
9403
|
+
PA(({ scrollTop: h }) => h)
|
|
9404
9404
|
),
|
|
9405
9405
|
e
|
|
9406
9406
|
), YA(
|
|
9407
9407
|
dA(
|
|
9408
9408
|
A,
|
|
9409
|
-
|
|
9409
|
+
PA(({ scrollHeight: h }) => h)
|
|
9410
9410
|
),
|
|
9411
9411
|
i
|
|
9412
9412
|
), YA(e, o), {
|
|
@@ -9482,8 +9482,8 @@ function hu(A, e, t) {
|
|
|
9482
9482
|
let s = [];
|
|
9483
9483
|
return n > e && (s = s.concat(hu(r, e, t))), n >= e && n <= t && s.push({ k: n, v: o }), n <= t && (s = s.concat(hu(i, e, t))), s;
|
|
9484
9484
|
}
|
|
9485
|
-
function
|
|
9486
|
-
return Le(A) ? [] : [...
|
|
9485
|
+
function Fr(A) {
|
|
9486
|
+
return Le(A) ? [] : [...Fr(A.l), { k: A.k, v: A.v }, ...Fr(A.r)];
|
|
9487
9487
|
}
|
|
9488
9488
|
function By(A) {
|
|
9489
9489
|
return Le(A.r) ? [A.k, A.v] : By(A.r);
|
|
@@ -9725,7 +9725,7 @@ function vl(A) {
|
|
|
9725
9725
|
return !Le(A.groupOffsetTree);
|
|
9726
9726
|
}
|
|
9727
9727
|
function $P(A) {
|
|
9728
|
-
return
|
|
9728
|
+
return Fr(A).map(({ k: e, v: t }, n, o) => {
|
|
9729
9729
|
const r = o[n + 1], i = r ? r.k - 1 : 1 / 0;
|
|
9730
9730
|
return { startIndex: e, endIndex: i, size: t };
|
|
9731
9731
|
});
|
|
@@ -9746,7 +9746,7 @@ const AS = {
|
|
|
9746
9746
|
prev: [],
|
|
9747
9747
|
current: []
|
|
9748
9748
|
}),
|
|
9749
|
-
|
|
9749
|
+
PA(({ prev: v }) => v)
|
|
9750
9750
|
),
|
|
9751
9751
|
[]
|
|
9752
9752
|
);
|
|
@@ -9755,7 +9755,7 @@ const AS = {
|
|
|
9755
9755
|
a,
|
|
9756
9756
|
Ae((v) => v.length > 0),
|
|
9757
9757
|
ce(C, B),
|
|
9758
|
-
|
|
9758
|
+
PA(([v, D, x]) => {
|
|
9759
9759
|
const N = v.reduce((Y, L, R) => an(Y, L, sa(L, D.offsetTree, x) || R), bi());
|
|
9760
9760
|
return {
|
|
9761
9761
|
...D,
|
|
@@ -9770,7 +9770,7 @@ const AS = {
|
|
|
9770
9770
|
n,
|
|
9771
9771
|
ce(C),
|
|
9772
9772
|
Ae(([v, { lastIndex: D }]) => v < D),
|
|
9773
|
-
|
|
9773
|
+
PA(([v, { lastIndex: D, lastSize: x }]) => [
|
|
9774
9774
|
{
|
|
9775
9775
|
startIndex: v,
|
|
9776
9776
|
endIndex: D,
|
|
@@ -9783,7 +9783,7 @@ const AS = {
|
|
|
9783
9783
|
const I = Jt(
|
|
9784
9784
|
dA(
|
|
9785
9785
|
g,
|
|
9786
|
-
|
|
9786
|
+
PA((v) => v === void 0)
|
|
9787
9787
|
),
|
|
9788
9788
|
!0
|
|
9789
9789
|
);
|
|
@@ -9791,7 +9791,7 @@ const AS = {
|
|
|
9791
9791
|
dA(
|
|
9792
9792
|
c,
|
|
9793
9793
|
Ae((v) => v !== void 0 && Le(Ft(C).sizeTree)),
|
|
9794
|
-
|
|
9794
|
+
PA((v) => [{ startIndex: 0, endIndex: 0, size: v }])
|
|
9795
9795
|
),
|
|
9796
9796
|
t
|
|
9797
9797
|
);
|
|
@@ -9806,7 +9806,7 @@ const AS = {
|
|
|
9806
9806
|
}),
|
|
9807
9807
|
{ changed: !1, sizes: E }
|
|
9808
9808
|
),
|
|
9809
|
-
|
|
9809
|
+
PA((v) => v.changed)
|
|
9810
9810
|
)
|
|
9811
9811
|
);
|
|
9812
9812
|
Ne(
|
|
@@ -9816,7 +9816,7 @@ const AS = {
|
|
|
9816
9816
|
(v, D) => ({ diff: v.prev - D, prev: D }),
|
|
9817
9817
|
{ diff: 0, prev: 0 }
|
|
9818
9818
|
),
|
|
9819
|
-
|
|
9819
|
+
PA((v) => v.diff)
|
|
9820
9820
|
),
|
|
9821
9821
|
(v) => {
|
|
9822
9822
|
const { groupIndices: D } = Ft(C);
|
|
@@ -9839,7 +9839,7 @@ const AS = {
|
|
|
9839
9839
|
dA(
|
|
9840
9840
|
r,
|
|
9841
9841
|
ce(C),
|
|
9842
|
-
|
|
9842
|
+
PA(([v, D]) => {
|
|
9843
9843
|
const x = D.groupIndices.length > 0, N = [], Y = D.lastSize;
|
|
9844
9844
|
if (x) {
|
|
9845
9845
|
const L = ia(D.sizeTree, 0);
|
|
@@ -9856,7 +9856,7 @@ const AS = {
|
|
|
9856
9856
|
size: Y
|
|
9857
9857
|
}), U++, R += W + 1;
|
|
9858
9858
|
}
|
|
9859
|
-
const O =
|
|
9859
|
+
const O = Fr(D.sizeTree);
|
|
9860
9860
|
return R !== v && O.shift(), O.reduce(
|
|
9861
9861
|
(H, { k: W, v: z }) => {
|
|
9862
9862
|
let X = H.ranges;
|
|
@@ -9880,7 +9880,7 @@ const AS = {
|
|
|
9880
9880
|
}
|
|
9881
9881
|
).ranges;
|
|
9882
9882
|
}
|
|
9883
|
-
return
|
|
9883
|
+
return Fr(D.sizeTree).reduce(
|
|
9884
9884
|
(L, { k: R, v: U }) => ({
|
|
9885
9885
|
ranges: [...L.ranges, { startIndex: L.prevIndex, endIndex: R + v - 1, size: L.prevSize }],
|
|
9886
9886
|
prevIndex: R + v,
|
|
@@ -9900,7 +9900,7 @@ const AS = {
|
|
|
9900
9900
|
dA(
|
|
9901
9901
|
i,
|
|
9902
9902
|
ce(C, B),
|
|
9903
|
-
|
|
9903
|
+
PA(([v, { offsetTree: D }, x]) => {
|
|
9904
9904
|
const N = -v;
|
|
9905
9905
|
return sa(N, D, x);
|
|
9906
9906
|
})
|
|
@@ -9910,7 +9910,7 @@ const AS = {
|
|
|
9910
9910
|
dA(
|
|
9911
9911
|
i,
|
|
9912
9912
|
ce(C, B),
|
|
9913
|
-
|
|
9913
|
+
PA(([v, D, x]) => {
|
|
9914
9914
|
if (D.groupIndices.length > 0) {
|
|
9915
9915
|
if (Le(D.sizeTree))
|
|
9916
9916
|
return D;
|
|
@@ -9922,7 +9922,7 @@ const AS = {
|
|
|
9922
9922
|
const H = L[U + 1] - O - 1;
|
|
9923
9923
|
U++, R += H + 1;
|
|
9924
9924
|
}
|
|
9925
|
-
if (Y =
|
|
9925
|
+
if (Y = Fr(D.sizeTree).reduce((H, { k: W, v: z }) => an(H, Math.max(0, W + v), z), Y), R !== -v) {
|
|
9926
9926
|
const H = ia(D.sizeTree, O);
|
|
9927
9927
|
Y = an(Y, 0, H);
|
|
9928
9928
|
const W = Un(D.sizeTree, -v + 1)[1];
|
|
@@ -9934,7 +9934,7 @@ const AS = {
|
|
|
9934
9934
|
...fu(D.offsetTree, 0, Y, x)
|
|
9935
9935
|
};
|
|
9936
9936
|
} else {
|
|
9937
|
-
const Y =
|
|
9937
|
+
const Y = Fr(D.sizeTree).reduce((L, { k: R, v: U }) => an(L, Math.max(0, R + v), U), bi());
|
|
9938
9938
|
return {
|
|
9939
9939
|
...D,
|
|
9940
9940
|
sizeTree: Y,
|
|
@@ -9998,7 +9998,7 @@ const Ua = xe(
|
|
|
9998
9998
|
B,
|
|
9999
9999
|
ce(A, r, e, C, a, g, Q),
|
|
10000
10000
|
ce(n, c, l),
|
|
10001
|
-
|
|
10001
|
+
PA(
|
|
10002
10002
|
([
|
|
10003
10003
|
[k, v, D, x, N, Y, L, R],
|
|
10004
10004
|
U,
|
|
@@ -10069,7 +10069,7 @@ const aa = "up", Ys = "down", nS = "none", oS = {
|
|
|
10069
10069
|
YA(
|
|
10070
10070
|
dA(
|
|
10071
10071
|
Dt($A(e), $A(l)),
|
|
10072
|
-
|
|
10072
|
+
PA(([f, p]) => f <= p),
|
|
10073
10073
|
qe()
|
|
10074
10074
|
),
|
|
10075
10075
|
s
|
|
@@ -10131,14 +10131,14 @@ const aa = "up", Ys = "down", nS = "none", oS = {
|
|
|
10131
10131
|
{ scrollHeight: 0, jump: 0, scrollTop: 0, changed: !1 }
|
|
10132
10132
|
),
|
|
10133
10133
|
Ae((f) => f.changed),
|
|
10134
|
-
|
|
10134
|
+
PA((f) => f.jump)
|
|
10135
10135
|
),
|
|
10136
10136
|
0
|
|
10137
10137
|
);
|
|
10138
10138
|
YA(
|
|
10139
10139
|
dA(
|
|
10140
10140
|
E,
|
|
10141
|
-
|
|
10141
|
+
PA((f) => f.atBottom)
|
|
10142
10142
|
),
|
|
10143
10143
|
i
|
|
10144
10144
|
), YA(dA(i, qo(50)), a);
|
|
@@ -10146,13 +10146,13 @@ const aa = "up", Ys = "down", nS = "none", oS = {
|
|
|
10146
10146
|
YA(
|
|
10147
10147
|
dA(
|
|
10148
10148
|
A,
|
|
10149
|
-
|
|
10149
|
+
PA(({ scrollTop: f }) => f),
|
|
10150
10150
|
qe(),
|
|
10151
10151
|
$n(
|
|
10152
10152
|
(f, p) => Ft(B) ? { direction: f.direction, prevScrollTop: p } : { direction: p < f.prevScrollTop ? aa : Ys, prevScrollTop: p },
|
|
10153
10153
|
{ direction: Ys, prevScrollTop: 0 }
|
|
10154
10154
|
),
|
|
10155
|
-
|
|
10155
|
+
PA((f) => f.direction)
|
|
10156
10156
|
),
|
|
10157
10157
|
h
|
|
10158
10158
|
), YA(dA(A, qo(50), jn(nS)), h);
|
|
@@ -10172,7 +10172,7 @@ const aa = "up", Ys = "down", nS = "none", oS = {
|
|
|
10172
10172
|
ce(Q),
|
|
10173
10173
|
Ae(([f, p]) => !!p),
|
|
10174
10174
|
$n(([f, p], [k]) => [p, k], [0, 0]),
|
|
10175
|
-
|
|
10175
|
+
PA(([f, p]) => p - f)
|
|
10176
10176
|
),
|
|
10177
10177
|
I
|
|
10178
10178
|
), {
|
|
@@ -10281,7 +10281,7 @@ const iS = (A, e) => typeof A == "function" ? jh(A(e)) : e && jh(A), sS = xe(
|
|
|
10281
10281
|
dA(
|
|
10282
10282
|
Dt(dA($A(A), Hi(1)), s),
|
|
10283
10283
|
ce($A(c), t, r, g),
|
|
10284
|
-
|
|
10284
|
+
PA(([[C, h], I, f, p, k]) => {
|
|
10285
10285
|
let v = h && p, D = "auto";
|
|
10286
10286
|
return v && (D = iS(I, f || k), v = v && !!D), { totalCount: C, shouldFollow: v, followOutputBehavior: D };
|
|
10287
10287
|
}),
|
|
@@ -10331,26 +10331,26 @@ function aS(A) {
|
|
|
10331
10331
|
);
|
|
10332
10332
|
}
|
|
10333
10333
|
const wy = xe(([{ totalCount: A, groupIndices: e, sizes: t }, { scrollTop: n, headerHeight: o }]) => {
|
|
10334
|
-
const r = we(), i = we(), s = gn(dA(r,
|
|
10334
|
+
const r = we(), i = we(), s = gn(dA(r, PA(aS)));
|
|
10335
10335
|
return YA(
|
|
10336
10336
|
dA(
|
|
10337
10337
|
s,
|
|
10338
|
-
|
|
10338
|
+
PA((a) => a.totalCount)
|
|
10339
10339
|
),
|
|
10340
10340
|
A
|
|
10341
10341
|
), YA(
|
|
10342
10342
|
dA(
|
|
10343
10343
|
s,
|
|
10344
|
-
|
|
10344
|
+
PA((a) => a.groupIndices)
|
|
10345
10345
|
),
|
|
10346
10346
|
e
|
|
10347
10347
|
), YA(
|
|
10348
10348
|
dA(
|
|
10349
10349
|
Dt(n, t, o),
|
|
10350
10350
|
Ae(([a, g]) => vl(g)),
|
|
10351
|
-
|
|
10351
|
+
PA(([a, g, c]) => Un(g.groupOffsetTree, Math.max(a - c, 0), "v")[0]),
|
|
10352
10352
|
qe(),
|
|
10353
|
-
|
|
10353
|
+
PA((a) => [a])
|
|
10354
10354
|
),
|
|
10355
10355
|
i
|
|
10356
10356
|
), { groupCounts: r, topItemsIndexes: i };
|
|
@@ -10383,7 +10383,7 @@ const sC = xe(
|
|
|
10383
10383
|
$A(t),
|
|
10384
10384
|
$A(s)
|
|
10385
10385
|
),
|
|
10386
|
-
|
|
10386
|
+
PA(
|
|
10387
10387
|
([
|
|
10388
10388
|
c,
|
|
10389
10389
|
l,
|
|
@@ -10506,7 +10506,7 @@ function Dy(A, e, t, n, o, r) {
|
|
|
10506
10506
|
}));
|
|
10507
10507
|
return ac(g, [], s, o, t, n);
|
|
10508
10508
|
}
|
|
10509
|
-
const
|
|
10509
|
+
const Zr = xe(
|
|
10510
10510
|
([
|
|
10511
10511
|
{ sizes: A, totalCount: e, data: t, firstItemIndex: n, gap: o },
|
|
10512
10512
|
r,
|
|
@@ -10538,7 +10538,7 @@ const _r = xe(
|
|
|
10538
10538
|
const L = Y && Y.length !== N;
|
|
10539
10539
|
return D && !x && !L;
|
|
10540
10540
|
}),
|
|
10541
|
-
|
|
10541
|
+
PA(
|
|
10542
10542
|
([
|
|
10543
10543
|
,
|
|
10544
10544
|
,
|
|
@@ -10610,25 +10610,25 @@ const _r = xe(
|
|
|
10610
10610
|
dA(
|
|
10611
10611
|
t,
|
|
10612
10612
|
Ae(AC),
|
|
10613
|
-
|
|
10613
|
+
PA((D) => D?.length)
|
|
10614
10614
|
),
|
|
10615
10615
|
e
|
|
10616
10616
|
), YA(
|
|
10617
10617
|
dA(
|
|
10618
10618
|
f,
|
|
10619
|
-
|
|
10619
|
+
PA((D) => D.topListHeight)
|
|
10620
10620
|
),
|
|
10621
10621
|
l
|
|
10622
10622
|
), YA(l, a), YA(
|
|
10623
10623
|
dA(
|
|
10624
10624
|
f,
|
|
10625
|
-
|
|
10625
|
+
PA((D) => [D.top, D.bottom])
|
|
10626
10626
|
),
|
|
10627
10627
|
s
|
|
10628
10628
|
), YA(
|
|
10629
10629
|
dA(
|
|
10630
10630
|
f,
|
|
10631
|
-
|
|
10631
|
+
PA((D) => D.items)
|
|
10632
10632
|
),
|
|
10633
10633
|
I
|
|
10634
10634
|
);
|
|
@@ -10638,23 +10638,23 @@ const _r = xe(
|
|
|
10638
10638
|
Ae(({ items: D }) => D.length > 0),
|
|
10639
10639
|
ce(e, t),
|
|
10640
10640
|
Ae(([{ items: D }, x]) => D[D.length - 1].originalIndex === x - 1),
|
|
10641
|
-
|
|
10641
|
+
PA(([, D, x]) => [D - 1, x]),
|
|
10642
10642
|
qe(ga),
|
|
10643
|
-
|
|
10643
|
+
PA(([D]) => D)
|
|
10644
10644
|
)
|
|
10645
10645
|
), k = gn(
|
|
10646
10646
|
dA(
|
|
10647
10647
|
f,
|
|
10648
10648
|
qo(200),
|
|
10649
10649
|
Ae(({ items: D, topItems: x }) => D.length > 0 && D[0].originalIndex === x.length),
|
|
10650
|
-
|
|
10650
|
+
PA(({ items: D }) => D[0].index),
|
|
10651
10651
|
qe()
|
|
10652
10652
|
)
|
|
10653
10653
|
), v = gn(
|
|
10654
10654
|
dA(
|
|
10655
10655
|
f,
|
|
10656
10656
|
Ae(({ items: D }) => D.length > 0),
|
|
10657
|
-
|
|
10657
|
+
PA(({ items: D }) => {
|
|
10658
10658
|
let x = 0, N = D.length - 1;
|
|
10659
10659
|
for (; D[x].type === "group" && x < N; )
|
|
10660
10660
|
x++;
|
|
@@ -10688,11 +10688,11 @@ const _r = xe(
|
|
|
10688
10688
|
ce(r),
|
|
10689
10689
|
Ae(([, a]) => a !== 0),
|
|
10690
10690
|
ce(o, A, e, n, t),
|
|
10691
|
-
|
|
10691
|
+
PA(([[, a], g, c, l, Q, B = []]) => Dy(a, g, c, l, Q, B))
|
|
10692
10692
|
),
|
|
10693
10693
|
i
|
|
10694
10694
|
), {}),
|
|
10695
|
-
We(go, Ya,
|
|
10695
|
+
We(go, Ya, Zr, sr),
|
|
10696
10696
|
{ singleton: !0 }
|
|
10697
10697
|
), py = xe(
|
|
10698
10698
|
([{ scrollVelocity: A }]) => {
|
|
@@ -10702,7 +10702,7 @@ const _r = xe(
|
|
|
10702
10702
|
A,
|
|
10703
10703
|
ce(n, e, t),
|
|
10704
10704
|
Ae(([o, r]) => !!r),
|
|
10705
|
-
|
|
10705
|
+
PA(([o, r, i, s]) => {
|
|
10706
10706
|
const { exit: a, enter: g } = r;
|
|
10707
10707
|
if (i) {
|
|
10708
10708
|
if (a(o, s))
|
|
@@ -10727,22 +10727,22 @@ const _r = xe(
|
|
|
10727
10727
|
dA(
|
|
10728
10728
|
e,
|
|
10729
10729
|
Ae((t) => t > 0),
|
|
10730
|
-
|
|
10730
|
+
PA((t) => Array.from({ length: t }).map((n, o) => o))
|
|
10731
10731
|
),
|
|
10732
10732
|
A
|
|
10733
10733
|
), { topItemCount: e };
|
|
10734
|
-
}, We(
|
|
10734
|
+
}, We(Zr)), my = xe(
|
|
10735
10735
|
([{ footerHeight: A, headerHeight: e, fixedHeaderHeight: t, fixedFooterHeight: n }, { listState: o }]) => {
|
|
10736
10736
|
const r = we(), i = Jt(
|
|
10737
10737
|
dA(
|
|
10738
10738
|
Dt(A, n, e, t, o),
|
|
10739
|
-
|
|
10739
|
+
PA(([s, a, g, c, l]) => s + a + g + c + l.offsetBottom + l.bottom)
|
|
10740
10740
|
),
|
|
10741
10741
|
0
|
|
10742
10742
|
);
|
|
10743
10743
|
return YA($A(i), r), { totalListHeight: i, totalListHeightChanged: r };
|
|
10744
10744
|
},
|
|
10745
|
-
We(Vt,
|
|
10745
|
+
We(Vt, Zr),
|
|
10746
10746
|
{ singleton: !0 }
|
|
10747
10747
|
);
|
|
10748
10748
|
function yy(A) {
|
|
@@ -10773,7 +10773,7 @@ const BS = yy(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10773
10773
|
Ae(([I]) => I !== 0),
|
|
10774
10774
|
ce(e, i, n, r, B, E),
|
|
10775
10775
|
Ae(([, I, f, p, , , k]) => !k && !p && I !== 0 && f === aa),
|
|
10776
|
-
|
|
10776
|
+
PA(([[I], , , , , f]) => (f("Upward scrolling compensation", { amount: I }, cn.DEBUG), I))
|
|
10777
10777
|
)
|
|
10778
10778
|
);
|
|
10779
10779
|
function h(I) {
|
|
@@ -10785,21 +10785,21 @@ const BS = yy(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10785
10785
|
dA(
|
|
10786
10786
|
Dt(Jt(o, !1), t, E),
|
|
10787
10787
|
Ae(([I, f, p]) => !I && !p && f !== 0),
|
|
10788
|
-
|
|
10788
|
+
PA(([I, f]) => f),
|
|
10789
10789
|
qo(1)
|
|
10790
10790
|
),
|
|
10791
10791
|
h
|
|
10792
10792
|
), YA(
|
|
10793
10793
|
dA(
|
|
10794
10794
|
c,
|
|
10795
|
-
|
|
10795
|
+
PA((I) => ({ top: -I }))
|
|
10796
10796
|
),
|
|
10797
10797
|
A
|
|
10798
10798
|
), Ne(
|
|
10799
10799
|
dA(
|
|
10800
10800
|
g,
|
|
10801
10801
|
ce(l, Q),
|
|
10802
|
-
|
|
10802
|
+
PA(([I, { lastSize: f, groupIndices: p, sizeTree: k }, v]) => {
|
|
10803
10803
|
function D(x) {
|
|
10804
10804
|
return x * (f + v);
|
|
10805
10805
|
}
|
|
@@ -10827,7 +10827,7 @@ const BS = yy(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10827
10827
|
}
|
|
10828
10828
|
), { deviation: t };
|
|
10829
10829
|
},
|
|
10830
|
-
We(Vt, Ka,
|
|
10830
|
+
We(Vt, Ka, Zr, go, ir, nC)
|
|
10831
10831
|
), uS = xe(
|
|
10832
10832
|
([{ didMount: A }, { scrollTo: e }, { listState: t }]) => {
|
|
10833
10833
|
const n = yA(0);
|
|
@@ -10836,7 +10836,7 @@ const BS = yy(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10836
10836
|
A,
|
|
10837
10837
|
ce(n),
|
|
10838
10838
|
Ae(([, o]) => o !== 0),
|
|
10839
|
-
|
|
10839
|
+
PA(([, o]) => ({ top: o }))
|
|
10840
10840
|
),
|
|
10841
10841
|
(o) => {
|
|
10842
10842
|
so(
|
|
@@ -10856,7 +10856,7 @@ const BS = yy(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10856
10856
|
initialScrollTop: n
|
|
10857
10857
|
};
|
|
10858
10858
|
},
|
|
10859
|
-
We(sr, Vt,
|
|
10859
|
+
We(sr, Vt, Zr),
|
|
10860
10860
|
{ singleton: !0 }
|
|
10861
10861
|
), ES = xe(
|
|
10862
10862
|
([{ viewportHeight: A }, { totalListHeight: e }]) => {
|
|
@@ -10864,7 +10864,7 @@ const BS = yy(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10864
10864
|
dA(
|
|
10865
10865
|
Dt(t, A, e),
|
|
10866
10866
|
Ae(([o]) => o),
|
|
10867
|
-
|
|
10867
|
+
PA(([, o, r]) => Math.max(0, o - r)),
|
|
10868
10868
|
qo(0),
|
|
10869
10869
|
qe()
|
|
10870
10870
|
),
|
|
@@ -10879,7 +10879,7 @@ const BS = yy(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10879
10879
|
return YA(
|
|
10880
10880
|
dA(
|
|
10881
10881
|
Dt(t, n),
|
|
10882
|
-
|
|
10882
|
+
PA(([{ viewportHeight: s, scrollTop: a, scrollHeight: g }, { offsetTop: c }]) => ({
|
|
10883
10883
|
scrollTop: Math.max(0, a - c),
|
|
10884
10884
|
scrollHeight: g,
|
|
10885
10885
|
viewportHeight: s
|
|
@@ -10890,7 +10890,7 @@ const BS = yy(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10890
10890
|
dA(
|
|
10891
10891
|
A,
|
|
10892
10892
|
ce(n),
|
|
10893
|
-
|
|
10893
|
+
PA(([s, { offsetTop: a }]) => ({
|
|
10894
10894
|
...s,
|
|
10895
10895
|
top: s.top + a
|
|
10896
10896
|
}))
|
|
@@ -10924,7 +10924,7 @@ const BS = yy(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10924
10924
|
c,
|
|
10925
10925
|
ce(A, o, e, r, i, s, n),
|
|
10926
10926
|
ce(t),
|
|
10927
|
-
|
|
10927
|
+
PA(([[l, Q, B, E, C, h, I, f], p]) => {
|
|
10928
10928
|
const { done: k, behavior: v, align: D, calculateViewLocation: x = CS, ...N } = l, Y = Iy(l, Q, E - 1), L = sa(Y, Q.offsetTree, p) + C + h, R = L + Un(Q.sizeTree, Y)[1], U = f + h, O = f + B - I, K = x({
|
|
10929
10929
|
itemTop: L,
|
|
10930
10930
|
itemBottom: R,
|
|
@@ -10950,7 +10950,7 @@ const BS = yy(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10950
10950
|
scrollIntoView: c
|
|
10951
10951
|
};
|
|
10952
10952
|
},
|
|
10953
|
-
We(go, Vt, Ua,
|
|
10953
|
+
We(go, Vt, Ua, Zr, ir),
|
|
10954
10954
|
{ singleton: !0 }
|
|
10955
10955
|
), dS = xe(
|
|
10956
10956
|
([
|
|
@@ -10970,13 +10970,13 @@ const BS = yy(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
10970
10970
|
const k = $P(E.sizeTree);
|
|
10971
10971
|
h && I !== null && f !== null && (C = I.scrollTop - f.offsetTop), C -= p, B({ ranges: k, scrollTop: C });
|
|
10972
10972
|
}
|
|
10973
|
-
), YA(dA(c, Ae(AC),
|
|
10973
|
+
), YA(dA(c, Ae(AC), PA(hS)), o), YA(
|
|
10974
10974
|
dA(
|
|
10975
10975
|
r,
|
|
10976
10976
|
ce(c),
|
|
10977
10977
|
Ae(([, B]) => B !== void 0),
|
|
10978
10978
|
qe(),
|
|
10979
|
-
|
|
10979
|
+
PA(([, B]) => B.ranges)
|
|
10980
10980
|
),
|
|
10981
10981
|
e
|
|
10982
10982
|
), {
|
|
@@ -11054,7 +11054,7 @@ const wS = xe(
|
|
|
11054
11054
|
]) => (YA(k.rangeChanged, Y.scrollSeekRangeChanged), YA(
|
|
11055
11055
|
dA(
|
|
11056
11056
|
Y.windowViewportRect,
|
|
11057
|
-
|
|
11057
|
+
PA((L) => L.visibleHeight)
|
|
11058
11058
|
),
|
|
11059
11059
|
C.viewportHeight
|
|
11060
11060
|
), {
|
|
@@ -11094,7 +11094,7 @@ const wS = xe(
|
|
|
11094
11094
|
Vt,
|
|
11095
11095
|
dS,
|
|
11096
11096
|
sS,
|
|
11097
|
-
|
|
11097
|
+
Zr,
|
|
11098
11098
|
Ua,
|
|
11099
11099
|
QS,
|
|
11100
11100
|
lS,
|
|
@@ -11152,7 +11152,7 @@ const DS = /* @__PURE__ */ xe(() => {
|
|
|
11152
11152
|
const A = yA((a) => `Item ${a}`), e = yA(null), t = yA((a) => `Group ${a}`), n = yA({}), o = yA(xy), r = yA("div"), i = yA(ns), s = (a, g = null) => Jt(
|
|
11153
11153
|
dA(
|
|
11154
11154
|
n,
|
|
11155
|
-
|
|
11155
|
+
PA((c) => c[a]),
|
|
11156
11156
|
qe()
|
|
11157
11157
|
),
|
|
11158
11158
|
g
|
|
@@ -11283,14 +11283,14 @@ function xS(A, e) {
|
|
|
11283
11283
|
return { item: typeof A == "string" ? void 0 : e };
|
|
11284
11284
|
}
|
|
11285
11285
|
const bS = /* @__PURE__ */ CA.memo(function() {
|
|
11286
|
-
const e = ne("HeaderComponent"), t = mn("headerHeight"), n = ne("HeaderFooterTag"), o =
|
|
11286
|
+
const e = ne("HeaderComponent"), t = mn("headerHeight"), n = ne("HeaderFooterTag"), o = _r(
|
|
11287
11287
|
CA.useMemo(() => (i) => t(Vo(i, "height")), [t]),
|
|
11288
11288
|
!0,
|
|
11289
11289
|
ne("skipAnimationFrameInResizeObserver")
|
|
11290
11290
|
), r = ne("context");
|
|
11291
11291
|
return e ? /* @__PURE__ */ u(n, { ref: o, children: /* @__PURE__ */ u(e, { ...Tt(e, r) }) }) : null;
|
|
11292
11292
|
}), FS = /* @__PURE__ */ CA.memo(function() {
|
|
11293
|
-
const e = ne("FooterComponent"), t = mn("footerHeight"), n = ne("HeaderFooterTag"), o =
|
|
11293
|
+
const e = ne("FooterComponent"), t = mn("footerHeight"), n = ne("HeaderFooterTag"), o = _r(
|
|
11294
11294
|
CA.useMemo(() => (i) => t(Vo(i, "height")), [t]),
|
|
11295
11295
|
!0,
|
|
11296
11296
|
ne("skipAnimationFrameInResizeObserver")
|
|
@@ -11349,7 +11349,7 @@ const RS = ({ children: A }) => {
|
|
|
11349
11349
|
const e = CA.useContext(ky), t = mn("viewportHeight"), n = mn("fixedItemHeight"), o = ne("alignToBottom"), r = ne("horizontalDirection"), i = CA.useMemo(
|
|
11350
11350
|
() => oy(t, (a) => Vo(a, r ? "width" : "height")),
|
|
11351
11351
|
[t, r]
|
|
11352
|
-
), s =
|
|
11352
|
+
), s = _r(i, !0, ne("skipAnimationFrameInResizeObserver"));
|
|
11353
11353
|
return CA.useEffect(() => {
|
|
11354
11354
|
e && (t(e.viewportHeight), n(e.itemHeight));
|
|
11355
11355
|
}, [e, t, n]), /* @__PURE__ */ u("div", { style: kl(o), ref: s, "data-viewport-type": "element", children: A });
|
|
@@ -11526,7 +11526,7 @@ const OS = /* @__PURE__ */ xe(
|
|
|
11526
11526
|
), YA(
|
|
11527
11527
|
dA(
|
|
11528
11528
|
Y,
|
|
11529
|
-
|
|
11529
|
+
PA(({ height: AA }) => AA)
|
|
11530
11530
|
),
|
|
11531
11531
|
r
|
|
11532
11532
|
), YA(
|
|
@@ -11537,7 +11537,7 @@ const OS = /* @__PURE__ */ xe(
|
|
|
11537
11537
|
$A(H, (AA, gA) => AA && AA.column === gA.column && AA.row === gA.row),
|
|
11538
11538
|
$A(o)
|
|
11539
11539
|
),
|
|
11540
|
-
|
|
11540
|
+
PA(([AA, gA, cA, wA]) => ({
|
|
11541
11541
|
viewport: AA,
|
|
11542
11542
|
item: gA,
|
|
11543
11543
|
gap: cA,
|
|
@@ -11560,7 +11560,7 @@ const OS = /* @__PURE__ */ xe(
|
|
|
11560
11560
|
$A(q)
|
|
11561
11561
|
),
|
|
11562
11562
|
Ae(([, , , , , , , AA]) => !AA),
|
|
11563
|
-
|
|
11563
|
+
PA(
|
|
11564
11564
|
([
|
|
11565
11565
|
AA,
|
|
11566
11566
|
[gA, cA],
|
|
@@ -11593,14 +11593,14 @@ const OS = /* @__PURE__ */ xe(
|
|
|
11593
11593
|
dA(
|
|
11594
11594
|
K,
|
|
11595
11595
|
Ae((AA) => AA !== null),
|
|
11596
|
-
|
|
11596
|
+
PA((AA) => AA.length)
|
|
11597
11597
|
),
|
|
11598
11598
|
D
|
|
11599
11599
|
), YA(
|
|
11600
11600
|
dA(
|
|
11601
11601
|
Dt(Y, L, N, H),
|
|
11602
11602
|
Ae(([AA, gA, { items: cA }]) => cA.length > 0 && gA.height !== 0 && AA.height !== 0),
|
|
11603
|
-
|
|
11603
|
+
PA(([AA, gA, { items: cA }, wA]) => {
|
|
11604
11604
|
const { top: EA, bottom: DA } = iw(AA, wA, gA, cA);
|
|
11605
11605
|
return [EA, DA];
|
|
11606
11606
|
}),
|
|
@@ -11613,7 +11613,7 @@ const OS = /* @__PURE__ */ xe(
|
|
|
11613
11613
|
dA(
|
|
11614
11614
|
o,
|
|
11615
11615
|
ce(F),
|
|
11616
|
-
|
|
11616
|
+
PA(([AA, gA]) => gA || AA !== 0)
|
|
11617
11617
|
),
|
|
11618
11618
|
F
|
|
11619
11619
|
);
|
|
@@ -11623,7 +11623,7 @@ const OS = /* @__PURE__ */ xe(
|
|
|
11623
11623
|
Ae(({ items: AA }) => AA.length > 0),
|
|
11624
11624
|
ce(D, F),
|
|
11625
11625
|
Ae(([{ items: AA }, gA, cA]) => cA && AA[AA.length - 1].index === gA - 1),
|
|
11626
|
-
|
|
11626
|
+
PA(([, AA]) => AA - 1),
|
|
11627
11627
|
qe()
|
|
11628
11628
|
)
|
|
11629
11629
|
), rA = gn(
|
|
@@ -11639,7 +11639,7 @@ const OS = /* @__PURE__ */ xe(
|
|
|
11639
11639
|
$A(N),
|
|
11640
11640
|
ce(X),
|
|
11641
11641
|
Ae(([{ items: AA }, gA]) => AA.length > 0 && !gA),
|
|
11642
|
-
|
|
11642
|
+
PA(([{ items: AA }]) => ({
|
|
11643
11643
|
startIndex: AA[0].index,
|
|
11644
11644
|
endIndex: AA[AA.length - 1].index
|
|
11645
11645
|
})),
|
|
@@ -11651,7 +11651,7 @@ const OS = /* @__PURE__ */ xe(
|
|
|
11651
11651
|
dA(
|
|
11652
11652
|
R,
|
|
11653
11653
|
ce(Y, L, D, H),
|
|
11654
|
-
|
|
11654
|
+
PA(([AA, gA, cA, wA, EA]) => {
|
|
11655
11655
|
const DA = hy(AA), { align: UA, behavior: qA, offset: De } = DA;
|
|
11656
11656
|
let Ce = DA.index;
|
|
11657
11657
|
Ce === "LAST" && (Ce = wA - 1), Ce = Ts(0, Ce, zB(wA - 1, Ce));
|
|
@@ -11664,14 +11664,14 @@ const OS = /* @__PURE__ */ xe(
|
|
|
11664
11664
|
const nA = Jt(
|
|
11665
11665
|
dA(
|
|
11666
11666
|
N,
|
|
11667
|
-
|
|
11667
|
+
PA((AA) => AA.offsetBottom + AA.bottom)
|
|
11668
11668
|
),
|
|
11669
11669
|
0
|
|
11670
11670
|
);
|
|
11671
11671
|
return YA(
|
|
11672
11672
|
dA(
|
|
11673
11673
|
h,
|
|
11674
|
-
|
|
11674
|
+
PA((AA) => ({ width: AA.visibleWidth, height: AA.visibleHeight }))
|
|
11675
11675
|
),
|
|
11676
11676
|
Y
|
|
11677
11677
|
), {
|
|
@@ -11736,7 +11736,7 @@ const JS = /* @__PURE__ */ xe(() => {
|
|
|
11736
11736
|
const A = yA((l) => `Item ${l}`), e = yA({}), t = yA(null), n = yA("virtuoso-grid-item"), o = yA("virtuoso-grid-list"), r = yA(xy), i = yA("div"), s = yA(ns), a = (l, Q = null) => Jt(
|
|
11737
11737
|
dA(
|
|
11738
11738
|
e,
|
|
11739
|
-
|
|
11739
|
+
PA((B) => B[l]),
|
|
11740
11740
|
qe()
|
|
11741
11741
|
),
|
|
11742
11742
|
Q
|
|
@@ -11760,7 +11760,7 @@ const JS = /* @__PURE__ */ xe(() => {
|
|
|
11760
11760
|
ScrollSeekPlaceholder: a("ScrollSeekPlaceholder", "div")
|
|
11761
11761
|
};
|
|
11762
11762
|
}), qS = /* @__PURE__ */ xe(([A, e]) => ({ ...A, ...e }), We(OS, JS)), WS = /* @__PURE__ */ CA.memo(function() {
|
|
11763
|
-
const e = ze("gridState"), t = ze("listClassName"), n = ze("itemClassName"), o = ze("itemContent"), r = ze("computeItemKey"), i = ze("isSeeking"), s = yn("scrollHeight"), a = ze("ItemComponent"), g = ze("ListComponent"), c = ze("ScrollSeekPlaceholder"), l = ze("context"), Q = yn("itemDimensions"), B = yn("gap"), E = ze("log"), C = ze("stateRestoreInProgress"), h = yn("reportReadyState"), I =
|
|
11763
|
+
const e = ze("gridState"), t = ze("listClassName"), n = ze("itemClassName"), o = ze("itemContent"), r = ze("computeItemKey"), i = ze("isSeeking"), s = yn("scrollHeight"), a = ze("ItemComponent"), g = ze("ListComponent"), c = ze("ScrollSeekPlaceholder"), l = ze("context"), Q = yn("itemDimensions"), B = yn("gap"), E = ze("log"), C = ze("stateRestoreInProgress"), h = yn("reportReadyState"), I = _r(
|
|
11764
11764
|
CA.useMemo(
|
|
11765
11765
|
() => (f) => {
|
|
11766
11766
|
const p = f.parentElement.parentElement.scrollHeight;
|
|
@@ -11815,21 +11815,21 @@ const JS = /* @__PURE__ */ xe(() => {
|
|
|
11815
11815
|
}
|
|
11816
11816
|
);
|
|
11817
11817
|
}), VS = CA.memo(function() {
|
|
11818
|
-
const e = ze("HeaderComponent"), t = yn("headerHeight"), n = ze("headerFooterTag"), o =
|
|
11818
|
+
const e = ze("HeaderComponent"), t = yn("headerHeight"), n = ze("headerFooterTag"), o = _r(
|
|
11819
11819
|
CA.useMemo(() => (i) => t(Vo(i, "height")), [t]),
|
|
11820
11820
|
!0,
|
|
11821
11821
|
!1
|
|
11822
11822
|
), r = ze("context");
|
|
11823
11823
|
return e ? /* @__PURE__ */ u(n, { ref: o, children: /* @__PURE__ */ u(e, { ...Tt(e, r) }) }) : null;
|
|
11824
11824
|
}), zS = CA.memo(function() {
|
|
11825
|
-
const e = ze("FooterComponent"), t = yn("footerHeight"), n = ze("headerFooterTag"), o =
|
|
11825
|
+
const e = ze("FooterComponent"), t = yn("footerHeight"), n = ze("headerFooterTag"), o = _r(
|
|
11826
11826
|
CA.useMemo(() => (i) => t(Vo(i, "height")), [t]),
|
|
11827
11827
|
!0,
|
|
11828
11828
|
!1
|
|
11829
11829
|
), r = ze("context");
|
|
11830
11830
|
return e ? /* @__PURE__ */ u(n, { ref: o, children: /* @__PURE__ */ u(e, { ...Tt(e, r) }) }) : null;
|
|
11831
11831
|
}), jS = ({ children: A }) => {
|
|
11832
|
-
const e = CA.useContext(Ny), t = yn("itemDimensions"), n = yn("viewportDimensions"), o =
|
|
11832
|
+
const e = CA.useContext(Ny), t = yn("itemDimensions"), n = yn("viewportDimensions"), o = _r(
|
|
11833
11833
|
CA.useMemo(
|
|
11834
11834
|
() => (r) => {
|
|
11835
11835
|
n(r.getBoundingClientRect());
|
|
@@ -11918,7 +11918,7 @@ function gw(A) {
|
|
|
11918
11918
|
function aG(A, e, t) {
|
|
11919
11919
|
return A = t && t.length > 0 ? `${A + " " + t.join(" ")}` : A, pu(A, e, gw(A), gw(e), 0, 0, {});
|
|
11920
11920
|
}
|
|
11921
|
-
function
|
|
11921
|
+
function bA(A, e, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
11922
11922
|
return function(o) {
|
|
11923
11923
|
if (A?.(o), t === !1 || !o.defaultPrevented)
|
|
11924
11924
|
return e?.(o);
|
|
@@ -12106,9 +12106,9 @@ var CG = "DismissableLayer", mu = "dismissableLayer.update", IG = "dismissableLa
|
|
|
12106
12106
|
pointerEvents: p ? k ? "auto" : "none" : void 0,
|
|
12107
12107
|
...A.style
|
|
12108
12108
|
},
|
|
12109
|
-
onFocusCapture:
|
|
12110
|
-
onBlurCapture:
|
|
12111
|
-
onPointerDownCapture:
|
|
12109
|
+
onFocusCapture: bA(A.onFocusCapture, D.onFocusCapture),
|
|
12110
|
+
onBlurCapture: bA(A.onBlurCapture, D.onBlurCapture),
|
|
12111
|
+
onPointerDownCapture: bA(
|
|
12112
12112
|
A.onPointerDownCapture,
|
|
12113
12113
|
v.onPointerDownCapture
|
|
12114
12114
|
)
|
|
@@ -12952,7 +12952,7 @@ var _y = "DialogTrigger", Zy = m.forwardRef(
|
|
|
12952
12952
|
"data-state": wC(o.open),
|
|
12953
12953
|
...n,
|
|
12954
12954
|
ref: r,
|
|
12955
|
-
onClick:
|
|
12955
|
+
onClick: bA(A.onClick, o.onOpenToggle)
|
|
12956
12956
|
}
|
|
12957
12957
|
);
|
|
12958
12958
|
}
|
|
@@ -12989,16 +12989,16 @@ var fH = m.forwardRef(
|
|
|
12989
12989
|
) })
|
|
12990
12990
|
);
|
|
12991
12991
|
}
|
|
12992
|
-
),
|
|
12992
|
+
), Or = "DialogContent", Fl = m.forwardRef(
|
|
12993
12993
|
(A, e) => {
|
|
12994
|
-
const t = $y(
|
|
12994
|
+
const t = $y(Or, A.__scopeDialog), { forceMount: n = t.forceMount, ...o } = A, r = On(Or, A.__scopeDialog);
|
|
12995
12995
|
return /* @__PURE__ */ u(xn, { present: n || r.open, children: r.modal ? /* @__PURE__ */ u(DH, { ...o, ref: e }) : /* @__PURE__ */ u(pH, { ...o, ref: e }) });
|
|
12996
12996
|
}
|
|
12997
12997
|
);
|
|
12998
|
-
Fl.displayName =
|
|
12998
|
+
Fl.displayName = Or;
|
|
12999
12999
|
var DH = m.forwardRef(
|
|
13000
13000
|
(A, e) => {
|
|
13001
|
-
const t = On(
|
|
13001
|
+
const t = On(Or, A.__scopeDialog), n = m.useRef(null), o = me(e, t.contentRef, n);
|
|
13002
13002
|
return m.useEffect(() => {
|
|
13003
13003
|
const r = n.current;
|
|
13004
13004
|
if (r) return bl(r);
|
|
@@ -13009,14 +13009,14 @@ var DH = m.forwardRef(
|
|
|
13009
13009
|
ref: o,
|
|
13010
13010
|
trapFocus: t.open,
|
|
13011
13011
|
disableOutsidePointerEvents: !0,
|
|
13012
|
-
onCloseAutoFocus:
|
|
13012
|
+
onCloseAutoFocus: bA(A.onCloseAutoFocus, (r) => {
|
|
13013
13013
|
r.preventDefault(), t.triggerRef.current?.focus();
|
|
13014
13014
|
}),
|
|
13015
|
-
onPointerDownOutside:
|
|
13015
|
+
onPointerDownOutside: bA(A.onPointerDownOutside, (r) => {
|
|
13016
13016
|
const i = r.detail.originalEvent, s = i.button === 0 && i.ctrlKey === !0;
|
|
13017
13017
|
(i.button === 2 || s) && r.preventDefault();
|
|
13018
13018
|
}),
|
|
13019
|
-
onFocusOutside:
|
|
13019
|
+
onFocusOutside: bA(
|
|
13020
13020
|
A.onFocusOutside,
|
|
13021
13021
|
(r) => r.preventDefault()
|
|
13022
13022
|
)
|
|
@@ -13025,7 +13025,7 @@ var DH = m.forwardRef(
|
|
|
13025
13025
|
}
|
|
13026
13026
|
), pH = m.forwardRef(
|
|
13027
13027
|
(A, e) => {
|
|
13028
|
-
const t = On(
|
|
13028
|
+
const t = On(Or, A.__scopeDialog), n = m.useRef(!1), o = m.useRef(!1);
|
|
13029
13029
|
return /* @__PURE__ */ u(
|
|
13030
13030
|
AM,
|
|
13031
13031
|
{
|
|
@@ -13046,7 +13046,7 @@ var DH = m.forwardRef(
|
|
|
13046
13046
|
}
|
|
13047
13047
|
), AM = m.forwardRef(
|
|
13048
13048
|
(A, e) => {
|
|
13049
|
-
const { __scopeDialog: t, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: r, ...i } = A, s = On(
|
|
13049
|
+
const { __scopeDialog: t, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: r, ...i } = A, s = On(Or, t), a = m.useRef(null), g = me(e, a);
|
|
13050
13050
|
return Nl(), /* @__PURE__ */ tA(Se, { children: [
|
|
13051
13051
|
/* @__PURE__ */ u(
|
|
13052
13052
|
Ta,
|
|
@@ -13100,7 +13100,7 @@ var tM = "DialogClose", hC = m.forwardRef(
|
|
|
13100
13100
|
type: "button",
|
|
13101
13101
|
...n,
|
|
13102
13102
|
ref: e,
|
|
13103
|
-
onClick:
|
|
13103
|
+
onClick: bA(A.onClick, () => o.onOpenChange(!1))
|
|
13104
13104
|
}
|
|
13105
13105
|
);
|
|
13106
13106
|
}
|
|
@@ -13110,7 +13110,7 @@ function wC(A) {
|
|
|
13110
13110
|
return A ? "open" : "closed";
|
|
13111
13111
|
}
|
|
13112
13112
|
var nM = "DialogTitleWarning", [xrA, oM] = gG(nM, {
|
|
13113
|
-
contentName:
|
|
13113
|
+
contentName: Or,
|
|
13114
13114
|
titleName: CC,
|
|
13115
13115
|
docsSlug: "dialog"
|
|
13116
13116
|
}), mH = ({ titleId: A }) => {
|
|
@@ -13133,12 +13133,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
13133
13133
|
var J, F;
|
|
13134
13134
|
return { search: "", value: (F = (J = A.value) != null ? J : A.defaultValue) != null ? F : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
13135
13135
|
}), n = Ci(() => /* @__PURE__ */ new Set()), o = Ci(() => /* @__PURE__ */ new Map()), r = Ci(() => /* @__PURE__ */ new Map()), i = Ci(() => /* @__PURE__ */ new Set()), s = EM(A), { label: a, children: g, value: c, onValueChange: l, filter: Q, shouldFilter: B, loop: E, disablePointerSelection: C = !1, vimBindings: h = !0, ...I } = A, f = ut(), p = ut(), k = ut(), v = m.useRef(null), D = KH();
|
|
13136
|
-
|
|
13136
|
+
Jr(() => {
|
|
13137
13137
|
if (c !== void 0) {
|
|
13138
13138
|
let J = c.trim();
|
|
13139
13139
|
t.current.value = J, x.emit();
|
|
13140
13140
|
}
|
|
13141
|
-
}, [c]),
|
|
13141
|
+
}, [c]), Jr(() => {
|
|
13142
13142
|
D(6, O);
|
|
13143
13143
|
}, []);
|
|
13144
13144
|
let x = m.useMemo(() => ({ subscribe: (J) => (i.current.add(J), () => i.current.delete(J)), snapshot: () => t.current, setState: (J, F, sA) => {
|
|
@@ -13306,7 +13306,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
13306
13306
|
}), xH = m.forwardRef((A, e) => {
|
|
13307
13307
|
var t, n;
|
|
13308
13308
|
let o = ut(), r = m.useRef(null), i = m.useContext(QM), s = Ja(), a = EM(A), g = (n = (t = a.current) == null ? void 0 : t.forceMount) != null ? n : i?.forceMount;
|
|
13309
|
-
|
|
13309
|
+
Jr(() => {
|
|
13310
13310
|
if (!g) return s.item(o, i?.id);
|
|
13311
13311
|
}, [g]);
|
|
13312
13312
|
let c = CM(o, r, [A.value, A.children, r], A.keywords), l = pC(), Q = zo((D) => D.value && D.value === c.current), B = zo((D) => g || s.filter() === !1 ? !0 : D.search ? D.filtered.items.get(o) > 0 : !0);
|
|
@@ -13326,7 +13326,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
13326
13326
|
return m.createElement(ee.div, { ref: yo(r, e), ...v, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!h, "aria-selected": !!Q, "data-disabled": !!h, "data-selected": !!Q, onPointerMove: h || s.getDisablePointerSelection() ? void 0 : C, onClick: h ? void 0 : E }, A.children);
|
|
13327
13327
|
}), bH = m.forwardRef((A, e) => {
|
|
13328
13328
|
let { heading: t, children: n, forceMount: o, ...r } = A, i = ut(), s = m.useRef(null), a = m.useRef(null), g = ut(), c = Ja(), l = zo((B) => o || c.filter() === !1 ? !0 : B.search ? B.filtered.groups.has(i) : !0);
|
|
13329
|
-
|
|
13329
|
+
Jr(() => c.group(i), []), CM(i, s, [A.value, A.heading, a]);
|
|
13330
13330
|
let Q = m.useMemo(() => ({ id: i, forceMount: o }), [o]);
|
|
13331
13331
|
return m.createElement(ee.div, { ref: yo(s, e), ...r, "cmdk-group": "", role: "presentation", hidden: l ? void 0 : !0 }, t && m.createElement("div", { ref: a, "cmdk-group-heading": "", "aria-hidden": !0, id: g }, t), Rl(A, (B) => m.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? g : void 0 }, m.createElement(QM.Provider, { value: Q }, B))));
|
|
13332
13332
|
}), FH = m.forwardRef((A, e) => {
|
|
@@ -13377,11 +13377,11 @@ function UH(A, e) {
|
|
|
13377
13377
|
}
|
|
13378
13378
|
function EM(A) {
|
|
13379
13379
|
let e = m.useRef(A);
|
|
13380
|
-
return
|
|
13380
|
+
return Jr(() => {
|
|
13381
13381
|
e.current = A;
|
|
13382
13382
|
}), e;
|
|
13383
13383
|
}
|
|
13384
|
-
var
|
|
13384
|
+
var Jr = typeof window > "u" ? m.useEffect : m.useLayoutEffect;
|
|
13385
13385
|
function Ci(A) {
|
|
13386
13386
|
let e = m.useRef();
|
|
13387
13387
|
return e.current === void 0 && (e.current = A()), e;
|
|
@@ -13392,7 +13392,7 @@ function zo(A) {
|
|
|
13392
13392
|
}
|
|
13393
13393
|
function CM(A, e, t, n = []) {
|
|
13394
13394
|
let o = m.useRef(), r = Ja();
|
|
13395
|
-
return
|
|
13395
|
+
return Jr(() => {
|
|
13396
13396
|
var i;
|
|
13397
13397
|
let s = (() => {
|
|
13398
13398
|
var g;
|
|
@@ -13406,7 +13406,7 @@ function CM(A, e, t, n = []) {
|
|
|
13406
13406
|
}
|
|
13407
13407
|
var KH = () => {
|
|
13408
13408
|
let [A, e] = m.useState(), t = Ci(() => /* @__PURE__ */ new Map());
|
|
13409
|
-
return
|
|
13409
|
+
return Jr(() => {
|
|
13410
13410
|
t.current.forEach((n) => n()), t.current = /* @__PURE__ */ new Map();
|
|
13411
13411
|
}, [A]), (n, o) => {
|
|
13412
13412
|
t.current.set(n, o), e({});
|
|
@@ -13513,7 +13513,7 @@ const qH = Object.assign(rM, {
|
|
|
13513
13513
|
Footer: wM,
|
|
13514
13514
|
Title: fM,
|
|
13515
13515
|
Description: DM
|
|
13516
|
-
}),
|
|
13516
|
+
}), $r = m.forwardRef(({ className: A, ...e }, t) => /* @__PURE__ */ u(
|
|
13517
13517
|
An,
|
|
13518
13518
|
{
|
|
13519
13519
|
ref: t,
|
|
@@ -13524,7 +13524,7 @@ const qH = Object.assign(rM, {
|
|
|
13524
13524
|
...e
|
|
13525
13525
|
}
|
|
13526
13526
|
));
|
|
13527
|
-
|
|
13527
|
+
$r.displayName = An.displayName;
|
|
13528
13528
|
const yC = m.forwardRef(({ ...A }, e) => /* @__PURE__ */ tA("div", { className: "flex items-center gap-2 border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
13529
13529
|
/* @__PURE__ */ u(_A, { name: "search" }),
|
|
13530
13530
|
/* @__PURE__ */ u(
|
|
@@ -13569,7 +13569,7 @@ const vC = m.forwardRef(({ className: A, ...e }, t) => /* @__PURE__ */ u(
|
|
|
13569
13569
|
}
|
|
13570
13570
|
));
|
|
13571
13571
|
vC.displayName = An.Group.displayName;
|
|
13572
|
-
const brA = ({ children: A, ...e }) => /* @__PURE__ */ u(qH, { ...e, children: /* @__PURE__ */ u(Fl, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ u(
|
|
13572
|
+
const brA = ({ children: A, ...e }) => /* @__PURE__ */ u(qH, { ...e, children: /* @__PURE__ */ u(Fl, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ u($r, { className: "[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: A }) }) }), WH = m.forwardRef(({ className: A, ...e }, t) => /* @__PURE__ */ u(
|
|
13573
13573
|
An.Separator,
|
|
13574
13574
|
{
|
|
13575
13575
|
ref: t,
|
|
@@ -14369,7 +14369,7 @@ function kM(A) {
|
|
|
14369
14369
|
function uU(A, e, t) {
|
|
14370
14370
|
return e === void 0 && (e = !1), !t || e && t !== ln(A) ? !1 : e;
|
|
14371
14371
|
}
|
|
14372
|
-
function
|
|
14372
|
+
function qr(A, e, t, n) {
|
|
14373
14373
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
14374
14374
|
const o = A.getBoundingClientRect(), r = RC(A);
|
|
14375
14375
|
let i = Ao(1);
|
|
@@ -14393,7 +14393,7 @@ function Jr(A, e, t, n) {
|
|
|
14393
14393
|
}
|
|
14394
14394
|
function LC(A, e) {
|
|
14395
14395
|
const t = Sl(A).scrollLeft;
|
|
14396
|
-
return e ? e.left + t :
|
|
14396
|
+
return e ? e.left + t : qr(lo(A)).left + t;
|
|
14397
14397
|
}
|
|
14398
14398
|
function NM(A, e, t) {
|
|
14399
14399
|
t === void 0 && (t = !1);
|
|
@@ -14422,7 +14422,7 @@ function EU(A) {
|
|
|
14422
14422
|
}, g = Ao(1);
|
|
14423
14423
|
const c = Ao(0), l = ao(n);
|
|
14424
14424
|
if ((l || !l && !r) && ((ss(n) !== "body" || qa(i)) && (a = Sl(n)), ao(n))) {
|
|
14425
|
-
const B =
|
|
14425
|
+
const B = qr(n);
|
|
14426
14426
|
g = Ri(n), c.x = B.x + n.clientLeft, c.y = B.y + n.clientTop;
|
|
14427
14427
|
}
|
|
14428
14428
|
const Q = i && !l && !r ? NM(i, a, !0) : Ao(0);
|
|
@@ -14463,7 +14463,7 @@ function dU(A, e) {
|
|
|
14463
14463
|
};
|
|
14464
14464
|
}
|
|
14465
14465
|
function hU(A, e) {
|
|
14466
|
-
const t =
|
|
14466
|
+
const t = qr(A, !0, e === "fixed"), n = t.top + A.clientTop, o = t.left + A.clientLeft, r = ao(A) ? Ri(A) : Ao(1), i = A.clientWidth * r.x, s = A.clientHeight * r.y, a = o * r.x, g = n * r.y;
|
|
14467
14467
|
return {
|
|
14468
14468
|
width: i,
|
|
14469
14469
|
height: s,
|
|
@@ -14536,7 +14536,7 @@ function DU(A) {
|
|
|
14536
14536
|
};
|
|
14537
14537
|
}
|
|
14538
14538
|
function pU(A, e, t) {
|
|
14539
|
-
const n = ao(e), o = lo(e), r = t === "fixed", i =
|
|
14539
|
+
const n = ao(e), o = lo(e), r = t === "fixed", i = qr(A, !0, r, e);
|
|
14540
14540
|
let s = {
|
|
14541
14541
|
scrollLeft: 0,
|
|
14542
14542
|
scrollTop: 0
|
|
@@ -14544,7 +14544,7 @@ function pU(A, e, t) {
|
|
|
14544
14544
|
const a = Ao(0);
|
|
14545
14545
|
if (n || !n && !r)
|
|
14546
14546
|
if ((ss(e) !== "body" || qa(o)) && (s = Sl(e)), n) {
|
|
14547
|
-
const Q =
|
|
14547
|
+
const Q = qr(e, !0, r, e);
|
|
14548
14548
|
a.x = Q.x + e.clientLeft, a.y = Q.y + e.clientTop;
|
|
14549
14549
|
} else o && (a.x = LC(o));
|
|
14550
14550
|
const g = o && !n && !r ? NM(o, s) : Ao(0), c = i.left + s.scrollLeft - a.x - g.x, l = i.top + s.scrollTop - a.y - g.y;
|
|
@@ -14683,10 +14683,10 @@ function kU(A, e, t, n) {
|
|
|
14683
14683
|
(p = B) == null || p.observe(e);
|
|
14684
14684
|
})), t();
|
|
14685
14685
|
}), g && !a && B.observe(g), B.observe(e));
|
|
14686
|
-
let E, C = a ?
|
|
14686
|
+
let E, C = a ? qr(A) : null;
|
|
14687
14687
|
a && h();
|
|
14688
14688
|
function h() {
|
|
14689
|
-
const I =
|
|
14689
|
+
const I = qr(A);
|
|
14690
14690
|
C && !FM(C, I) && t(), C = I, E = requestAnimationFrame(h);
|
|
14691
14691
|
}
|
|
14692
14692
|
return t(), () => {
|
|
@@ -14709,7 +14709,7 @@ const NU = sU, xU = aU, bU = oU, FU = cU, RU = rU, Nw = nU, LU = gU, PU = (A, e,
|
|
|
14709
14709
|
platform: r
|
|
14710
14710
|
});
|
|
14711
14711
|
};
|
|
14712
|
-
var lc = typeof document < "u" ? Zn :
|
|
14712
|
+
var lc = typeof document < "u" ? Zn : LA;
|
|
14713
14713
|
function Sc(A, e) {
|
|
14714
14714
|
if (A === e)
|
|
14715
14715
|
return !0;
|
|
@@ -15184,7 +15184,7 @@ var jM = "PopoverTrigger", XM = m.forwardRef(
|
|
|
15184
15184
|
"data-state": e1(o.open),
|
|
15185
15185
|
...n,
|
|
15186
15186
|
ref: i,
|
|
15187
|
-
onClick:
|
|
15187
|
+
onClick: bA(A.onClick, o.onOpenToggle)
|
|
15188
15188
|
}
|
|
15189
15189
|
);
|
|
15190
15190
|
return o.hasCustomAnchor ? s : /* @__PURE__ */ u(Va, { asChild: !0, ...r, children: s });
|
|
@@ -15218,10 +15218,10 @@ var t2 = m.forwardRef(
|
|
|
15218
15218
|
ref: o,
|
|
15219
15219
|
trapFocus: t.open,
|
|
15220
15220
|
disableOutsidePointerEvents: !0,
|
|
15221
|
-
onCloseAutoFocus:
|
|
15221
|
+
onCloseAutoFocus: bA(A.onCloseAutoFocus, (i) => {
|
|
15222
15222
|
i.preventDefault(), r.current || t.triggerRef.current?.focus();
|
|
15223
15223
|
}),
|
|
15224
|
-
onPointerDownOutside:
|
|
15224
|
+
onPointerDownOutside: bA(
|
|
15225
15225
|
A.onPointerDownOutside,
|
|
15226
15226
|
(i) => {
|
|
15227
15227
|
const s = i.detail.originalEvent, a = s.button === 0 && s.ctrlKey === !0, g = s.button === 2 || a;
|
|
@@ -15229,7 +15229,7 @@ var t2 = m.forwardRef(
|
|
|
15229
15229
|
},
|
|
15230
15230
|
{ checkForDefaultPrevented: !1 }
|
|
15231
15231
|
),
|
|
15232
|
-
onFocusOutside:
|
|
15232
|
+
onFocusOutside: bA(
|
|
15233
15233
|
A.onFocusOutside,
|
|
15234
15234
|
(i) => i.preventDefault(),
|
|
15235
15235
|
{ checkForDefaultPrevented: !1 }
|
|
@@ -15323,7 +15323,7 @@ var t2 = m.forwardRef(
|
|
|
15323
15323
|
type: "button",
|
|
15324
15324
|
...n,
|
|
15325
15325
|
ref: e,
|
|
15326
|
-
onClick:
|
|
15326
|
+
onClick: bA(A.onClick, () => o.onOpenChange(!1))
|
|
15327
15327
|
}
|
|
15328
15328
|
);
|
|
15329
15329
|
}
|
|
@@ -15413,7 +15413,7 @@ function PrA({
|
|
|
15413
15413
|
]
|
|
15414
15414
|
}
|
|
15415
15415
|
) }),
|
|
15416
|
-
/* @__PURE__ */ u(Ul, { className: "w-[200px] p-0", children: /* @__PURE__ */ tA(
|
|
15416
|
+
/* @__PURE__ */ u(Ul, { className: "w-[200px] p-0", children: /* @__PURE__ */ tA($r, { shouldFilter: !1, children: [
|
|
15417
15417
|
c && /* @__PURE__ */ u(
|
|
15418
15418
|
yC,
|
|
15419
15419
|
{
|
|
@@ -15709,7 +15709,7 @@ const OC = [
|
|
|
15709
15709
|
"skew",
|
|
15710
15710
|
"skewX",
|
|
15711
15711
|
"skewY"
|
|
15712
|
-
],
|
|
15712
|
+
], Ai = new Set(ja), eo = (A) => A * 1e3, fo = (A) => A / 1e3, H2 = {
|
|
15713
15713
|
type: "spring",
|
|
15714
15714
|
stiffness: 500,
|
|
15715
15715
|
damping: 25,
|
|
@@ -15726,7 +15726,7 @@ const OC = [
|
|
|
15726
15726
|
type: "keyframes",
|
|
15727
15727
|
ease: [0.25, 0.1, 0.35, 1],
|
|
15728
15728
|
duration: 0.3
|
|
15729
|
-
}, T2 = (A, { keyframes: e }) => e.length > 2 ? K2 :
|
|
15729
|
+
}, T2 = (A, { keyframes: e }) => e.length > 2 ? K2 : Ai.has(A) ? A.startsWith("scale") ? U2(e[1]) : H2 : Y2;
|
|
15730
15730
|
function qC(A, e) {
|
|
15731
15731
|
return A ? A[e] || A.default || A : void 0;
|
|
15732
15732
|
}
|
|
@@ -15924,11 +15924,11 @@ Yi.translateY = Yi.y;
|
|
|
15924
15924
|
const w1 = (A) => (e) => e.test(A), aK = {
|
|
15925
15925
|
test: (A) => A === "auto",
|
|
15926
15926
|
parse: (A) => A
|
|
15927
|
-
}, f1 = [gs, WA, to, Yo, nK, tK, aK], Kw = (A) => f1.find(w1(A)),
|
|
15927
|
+
}, f1 = [gs, WA, to, Yo, nK, tK, aK], Kw = (A) => f1.find(w1(A)), Hr = /* @__PURE__ */ new Set();
|
|
15928
15928
|
let Fu = !1, Ru = !1;
|
|
15929
15929
|
function D1() {
|
|
15930
15930
|
if (Ru) {
|
|
15931
|
-
const A = Array.from(
|
|
15931
|
+
const A = Array.from(Hr).filter((n) => n.needsMeasurement), e = new Set(A.map((n) => n.element)), t = /* @__PURE__ */ new Map();
|
|
15932
15932
|
e.forEach((n) => {
|
|
15933
15933
|
const o = sK(n);
|
|
15934
15934
|
o.length && (t.set(n, o), n.render());
|
|
@@ -15943,10 +15943,10 @@ function D1() {
|
|
|
15943
15943
|
n.suspendedScrollY !== void 0 && window.scrollTo(0, n.suspendedScrollY);
|
|
15944
15944
|
});
|
|
15945
15945
|
}
|
|
15946
|
-
Ru = !1, Fu = !1,
|
|
15946
|
+
Ru = !1, Fu = !1, Hr.forEach((A) => A.complete()), Hr.clear();
|
|
15947
15947
|
}
|
|
15948
15948
|
function p1() {
|
|
15949
|
-
|
|
15949
|
+
Hr.forEach((A) => {
|
|
15950
15950
|
A.readKeyframes(), A.needsMeasurement && (Ru = !0);
|
|
15951
15951
|
});
|
|
15952
15952
|
}
|
|
@@ -15958,7 +15958,7 @@ let jC = class {
|
|
|
15958
15958
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = o, this.element = r, this.isAsync = i;
|
|
15959
15959
|
}
|
|
15960
15960
|
scheduleResolve() {
|
|
15961
|
-
this.isScheduled = !0, this.isAsync ? (
|
|
15961
|
+
this.isScheduled = !0, this.isAsync ? (Hr.add(this), Fu || (Fu = !0, be.read(p1), be.resolveKeyframes(D1))) : (this.readKeyframes(), this.complete());
|
|
15962
15962
|
}
|
|
15963
15963
|
readKeyframes() {
|
|
15964
15964
|
const { unresolvedKeyframes: e, name: t, element: n, motionValue: o } = this;
|
|
@@ -15985,10 +15985,10 @@ let jC = class {
|
|
|
15985
15985
|
measureEndState() {
|
|
15986
15986
|
}
|
|
15987
15987
|
complete() {
|
|
15988
|
-
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe),
|
|
15988
|
+
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), Hr.delete(this);
|
|
15989
15989
|
}
|
|
15990
15990
|
cancel() {
|
|
15991
|
-
this.isComplete || (this.isScheduled = !1,
|
|
15991
|
+
this.isComplete || (this.isScheduled = !1, Hr.delete(this));
|
|
15992
15992
|
}
|
|
15993
15993
|
resume() {
|
|
15994
15994
|
this.isComplete || this.scheduleResolve();
|
|
@@ -16011,7 +16011,7 @@ const lK = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
16011
16011
|
}, BK = (A) => $o(0, 255, A), aQ = {
|
|
16012
16012
|
...gs,
|
|
16013
16013
|
transform: (A) => Math.round(BK(A))
|
|
16014
|
-
},
|
|
16014
|
+
}, Rr = {
|
|
16015
16015
|
test: /* @__PURE__ */ _C("rgb", "red"),
|
|
16016
16016
|
parse: /* @__PURE__ */ m1("red", "green", "blue"),
|
|
16017
16017
|
transform: ({ red: A, green: e, blue: t, alpha: n = 1 }) => "rgba(" + aQ.transform(A) + ", " + aQ.transform(e) + ", " + aQ.transform(t) + ", " + Os(Qa.transform(n)) + ")"
|
|
@@ -16028,15 +16028,15 @@ function QK(A) {
|
|
|
16028
16028
|
const Lu = {
|
|
16029
16029
|
test: /* @__PURE__ */ _C("#"),
|
|
16030
16030
|
parse: QK,
|
|
16031
|
-
transform:
|
|
16031
|
+
transform: Rr.transform
|
|
16032
16032
|
}, hi = {
|
|
16033
16033
|
test: /* @__PURE__ */ _C("hsl", "hue"),
|
|
16034
16034
|
parse: /* @__PURE__ */ m1("hue", "saturation", "lightness"),
|
|
16035
16035
|
transform: ({ hue: A, saturation: e, lightness: t, alpha: n = 1 }) => "hsla(" + Math.round(A) + ", " + to.transform(Os(e)) + ", " + to.transform(Os(t)) + ", " + Os(Qa.transform(n)) + ")"
|
|
16036
16036
|
}, xt = {
|
|
16037
|
-
test: (A) =>
|
|
16038
|
-
parse: (A) =>
|
|
16039
|
-
transform: (A) => typeof A == "string" ? A : A.hasOwnProperty("red") ?
|
|
16037
|
+
test: (A) => Rr.test(A) || Lu.test(A) || hi.test(A),
|
|
16038
|
+
parse: (A) => Rr.test(A) ? Rr.parse(A) : hi.test(A) ? hi.parse(A) : Lu.parse(A),
|
|
16039
|
+
transform: (A) => typeof A == "string" ? A : A.hasOwnProperty("red") ? Rr.transform(A) : hi.transform(A)
|
|
16040
16040
|
}, uK = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
16041
16041
|
function EK(A) {
|
|
16042
16042
|
var e, t;
|
|
@@ -16554,7 +16554,7 @@ function Gc(A, e) {
|
|
|
16554
16554
|
const lQ = (A, e, t) => {
|
|
16555
16555
|
const n = A * A, o = t * (e * e - n) + n;
|
|
16556
16556
|
return o < 0 ? 0 : Math.sqrt(o);
|
|
16557
|
-
}, zK = [Lu,
|
|
16557
|
+
}, zK = [Lu, Rr, hi], jK = (A) => zK.find((e) => e.test(A));
|
|
16558
16558
|
function jw(A) {
|
|
16559
16559
|
const e = jK(A);
|
|
16560
16560
|
if (as(!!e, `'${A}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
@@ -16567,7 +16567,7 @@ const Xw = (A, e) => {
|
|
|
16567
16567
|
if (!t || !n)
|
|
16568
16568
|
return Gc(A, e);
|
|
16569
16569
|
const o = { ...t };
|
|
16570
|
-
return (r) => (o.red = lQ(t.red, n.red, r), o.green = lQ(t.green, n.green, r), o.blue = lQ(t.blue, n.blue, r), o.alpha = Xe(t.alpha, n.alpha, r),
|
|
16570
|
+
return (r) => (o.red = lQ(t.red, n.red, r), o.green = lQ(t.green, n.green, r), o.blue = lQ(t.blue, n.blue, r), o.alpha = Xe(t.alpha, n.alpha, r), Rr.transform(o));
|
|
16571
16571
|
}, Gu = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
16572
16572
|
function XK(A, e) {
|
|
16573
16573
|
return Gu.has(A) ? (t) => t <= 0 ? A : e : (t) => t >= 1 ? e : A;
|
|
@@ -17456,7 +17456,7 @@ function O1(A, e, { delay: t = 0, transitionOverride: n, type: o } = {}) {
|
|
|
17456
17456
|
f !== null && (E.startTime = f, C = !0);
|
|
17457
17457
|
}
|
|
17458
17458
|
}
|
|
17459
|
-
Uu(A, l), Q.start(rI(l, Q, B, A.shouldReduceMotion &&
|
|
17459
|
+
Uu(A, l), Q.start(rI(l, Q, B, A.shouldReduceMotion && Ai.has(l) ? { type: !1 } : E, A, C));
|
|
17460
17460
|
const h = Q.animation;
|
|
17461
17461
|
h && g.push(h);
|
|
17462
17462
|
}
|
|
@@ -17617,7 +17617,7 @@ function YY(A) {
|
|
|
17617
17617
|
function TY(A, e) {
|
|
17618
17618
|
return typeof e == "string" ? e !== A : Array.isArray(e) ? !r1(e, A) : !1;
|
|
17619
17619
|
}
|
|
17620
|
-
function
|
|
17620
|
+
function pr(A = !1) {
|
|
17621
17621
|
return {
|
|
17622
17622
|
isActive: A,
|
|
17623
17623
|
protectedKeys: {},
|
|
@@ -17627,13 +17627,13 @@ function Dr(A = !1) {
|
|
|
17627
17627
|
}
|
|
17628
17628
|
function ef() {
|
|
17629
17629
|
return {
|
|
17630
|
-
animate:
|
|
17631
|
-
whileInView:
|
|
17632
|
-
whileHover:
|
|
17633
|
-
whileTap:
|
|
17634
|
-
whileDrag:
|
|
17635
|
-
whileFocus:
|
|
17636
|
-
exit:
|
|
17630
|
+
animate: pr(!0),
|
|
17631
|
+
whileInView: pr(),
|
|
17632
|
+
whileHover: pr(),
|
|
17633
|
+
whileTap: pr(),
|
|
17634
|
+
whileDrag: pr(),
|
|
17635
|
+
whileFocus: pr(),
|
|
17636
|
+
exit: pr()
|
|
17637
17637
|
};
|
|
17638
17638
|
}
|
|
17639
17639
|
let cr = class {
|
|
@@ -17938,7 +17938,7 @@ function uQ(A) {
|
|
|
17938
17938
|
function Tu({ scale: A, scaleX: e, scaleY: t }) {
|
|
17939
17939
|
return !uQ(A) || !uQ(e) || !uQ(t);
|
|
17940
17940
|
}
|
|
17941
|
-
function
|
|
17941
|
+
function kr(A) {
|
|
17942
17942
|
return Tu(A) || Av(A) || A.z || A.rotate || A.rotateX || A.rotateY || A.skewX || A.skewY;
|
|
17943
17943
|
}
|
|
17944
17944
|
function Av(A) {
|
|
@@ -17973,7 +17973,7 @@ function lT(A, e, t, n = !1) {
|
|
|
17973
17973
|
a && a.props.style && a.props.style.display === "contents" || (n && r.options.layoutScroll && r.scroll && r !== r.root && pi(A, {
|
|
17974
17974
|
x: -r.scroll.offset.x,
|
|
17975
17975
|
y: -r.scroll.offset.y
|
|
17976
|
-
}), i && (e.x *= i.x.scale, e.y *= i.y.scale, ev(A, i)), n &&
|
|
17976
|
+
}), i && (e.x *= i.x.scale, e.y *= i.y.scale, ev(A, i)), n && kr(r.latestValues) && pi(A, r.latestValues));
|
|
17977
17977
|
}
|
|
17978
17978
|
e.x < hf && e.x > df && (e.x = 1), e.y < hf && e.y > df && (e.y = 1);
|
|
17979
17979
|
}
|
|
@@ -18278,9 +18278,9 @@ function dT() {
|
|
|
18278
18278
|
const A = te(ql);
|
|
18279
18279
|
if (A === null)
|
|
18280
18280
|
return [!0, null];
|
|
18281
|
-
const { isPresent: e, onExitComplete: t, register: n } = A, o =
|
|
18282
|
-
|
|
18283
|
-
const r =
|
|
18281
|
+
const { isPresent: e, onExitComplete: t, register: n } = A, o = Xr();
|
|
18282
|
+
LA(() => n(o), []);
|
|
18283
|
+
const r = oe(() => t && t(o), [o, t]);
|
|
18284
18284
|
return !e && t ? [!1, r] : [!0];
|
|
18285
18285
|
}
|
|
18286
18286
|
const cI = $e({}), ov = $e({}), Qc = {
|
|
@@ -18554,7 +18554,7 @@ function GT(A, e, t) {
|
|
|
18554
18554
|
const n = Rt(A) ? A : Ea(A);
|
|
18555
18555
|
return n.start(rI("", n, e, t)), n.animation;
|
|
18556
18556
|
}
|
|
18557
|
-
const
|
|
18557
|
+
const Nr = {
|
|
18558
18558
|
type: "projectionFrame",
|
|
18559
18559
|
totalNodes: 0,
|
|
18560
18560
|
resolvedTargetDeltas: 0,
|
|
@@ -18585,7 +18585,7 @@ function lv({ attachResizeListener: A, defaultParent: e, measureScroll: t, check
|
|
|
18585
18585
|
this.id = UT++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
18586
18586
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
18587
18587
|
}, this.updateProjection = () => {
|
|
18588
|
-
this.projectionUpdateScheduled = !1, Fs && (
|
|
18588
|
+
this.projectionUpdateScheduled = !1, Fs && (Nr.totalNodes = Nr.resolvedTargetDeltas = Nr.recalculatedProjection = 0), this.nodes.forEach(TT), this.nodes.forEach(VT), this.nodes.forEach(zT), this.nodes.forEach(OT), Fs && window.MotionDebug.record(Nr);
|
|
18589
18589
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = i, this.root = s ? s.root || s : this, this.path = s ? [...s.path, s] : [], this.parent = s, this.depth = s ? s.depth + 1 : 0;
|
|
18590
18590
|
for (let a = 0; a < this.path.length; a++)
|
|
18591
18591
|
this.path[a].shouldResetTransform = !0;
|
|
@@ -18736,7 +18736,7 @@ function lv({ attachResizeListener: A, defaultParent: e, measureScroll: t, check
|
|
|
18736
18736
|
if (!o)
|
|
18737
18737
|
return;
|
|
18738
18738
|
const i = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, s = this.projectionDelta && !av(this.projectionDelta), a = this.getTransformTemplate(), g = a ? a(this.latestValues, "") : void 0, c = g !== this.prevTransformTemplateValue;
|
|
18739
|
-
i && (s ||
|
|
18739
|
+
i && (s || kr(this.latestValues) || c) && (o(this.instance, g), this.shouldResetTransform = !1, this.scheduleRender());
|
|
18740
18740
|
}
|
|
18741
18741
|
measure(i = !0) {
|
|
18742
18742
|
const s = this.measurePageBox();
|
|
@@ -18780,22 +18780,22 @@ function lv({ attachResizeListener: A, defaultParent: e, measureScroll: t, check
|
|
|
18780
18780
|
!s && c.options.layoutScroll && c.scroll && c !== c.root && pi(a, {
|
|
18781
18781
|
x: -c.scroll.offset.x,
|
|
18782
18782
|
y: -c.scroll.offset.y
|
|
18783
|
-
}),
|
|
18783
|
+
}), kr(c.latestValues) && pi(a, c.latestValues);
|
|
18784
18784
|
}
|
|
18785
|
-
return
|
|
18785
|
+
return kr(this.latestValues) && pi(a, this.latestValues), a;
|
|
18786
18786
|
}
|
|
18787
18787
|
removeTransform(i) {
|
|
18788
18788
|
const s = nt();
|
|
18789
18789
|
In(s, i);
|
|
18790
18790
|
for (let a = 0; a < this.path.length; a++) {
|
|
18791
18791
|
const g = this.path[a];
|
|
18792
|
-
if (!g.instance || !
|
|
18792
|
+
if (!g.instance || !kr(g.latestValues))
|
|
18793
18793
|
continue;
|
|
18794
18794
|
Tu(g.latestValues) && g.updateSnapshot();
|
|
18795
18795
|
const c = nt(), l = g.measurePageBox();
|
|
18796
18796
|
In(c, l), xf(s, g.latestValues, g.snapshot ? g.snapshot.layoutBox : void 0, c);
|
|
18797
18797
|
}
|
|
18798
|
-
return
|
|
18798
|
+
return kr(this.latestValues) && xf(s, this.latestValues), s;
|
|
18799
18799
|
}
|
|
18800
18800
|
setTargetDelta(i) {
|
|
18801
18801
|
this.targetDelta = i, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -18832,7 +18832,7 @@ function lv({ attachResizeListener: A, defaultParent: e, measureScroll: t, check
|
|
|
18832
18832
|
const B = this.getClosestProjectingParent();
|
|
18833
18833
|
B && !!B.resumingFrom == !!this.resumingFrom && !B.options.layoutScroll && B.target && this.animationProgress !== 1 ? (this.relativeParent = B, this.forceRelativeParentToResolveTarget(), this.relativeTarget = nt(), this.relativeTargetOrigin = nt(), qs(this.relativeTargetOrigin, this.target, B.target), In(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
18834
18834
|
}
|
|
18835
|
-
Fs &&
|
|
18835
|
+
Fs && Nr.resolvedTargetDeltas++;
|
|
18836
18836
|
}
|
|
18837
18837
|
}
|
|
18838
18838
|
}
|
|
@@ -18860,7 +18860,7 @@ function lv({ attachResizeListener: A, defaultParent: e, measureScroll: t, check
|
|
|
18860
18860
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
18861
18861
|
return;
|
|
18862
18862
|
}
|
|
18863
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (vf(this.prevProjectionDelta.x, this.projectionDelta.x), vf(this.prevProjectionDelta.y, this.projectionDelta.y)), Js(this.projectionDelta, this.layoutCorrected, E, this.latestValues), (this.treeScale.x !== Q || this.treeScale.y !== B || !Pf(this.projectionDelta.x, this.prevProjectionDelta.x) || !Pf(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", E)), Fs &&
|
|
18863
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (vf(this.prevProjectionDelta.x, this.projectionDelta.x), vf(this.prevProjectionDelta.y, this.projectionDelta.y)), Js(this.projectionDelta, this.layoutCorrected, E, this.latestValues), (this.treeScale.x !== Q || this.treeScale.y !== B || !Pf(this.projectionDelta.x, this.prevProjectionDelta.x) || !Pf(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", E)), Fs && Nr.recalculatedProjection++;
|
|
18864
18864
|
}
|
|
18865
18865
|
hide() {
|
|
18866
18866
|
this.isVisible = !1;
|
|
@@ -18991,7 +18991,7 @@ function lv({ attachResizeListener: A, defaultParent: e, measureScroll: t, check
|
|
|
18991
18991
|
const l = this.getLead();
|
|
18992
18992
|
if (!this.projectionDelta || !this.layout || !l.target) {
|
|
18993
18993
|
const C = {};
|
|
18994
|
-
return this.options.layoutId && (C.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, C.pointerEvents = uc(i?.pointerEvents) || ""), this.hasProjected && !
|
|
18994
|
+
return this.options.layoutId && (C.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, C.pointerEvents = uc(i?.pointerEvents) || ""), this.hasProjected && !kr(this.latestValues) && (C.transform = c ? c({}, "") : "none", this.hasProjected = !1), C;
|
|
18995
18995
|
}
|
|
18996
18996
|
const Q = l.animationValues || l.latestValues;
|
|
18997
18997
|
this.applyTransformsToTarget(), g.transform = FT(this.projectionDeltaWithTransform, this.treeScale, Q), c && (g.transform = c(Q, g.transform));
|
|
@@ -19070,7 +19070,7 @@ function YT(A) {
|
|
|
19070
19070
|
A.options.transition = void 0;
|
|
19071
19071
|
}
|
|
19072
19072
|
function TT(A) {
|
|
19073
|
-
Fs &&
|
|
19073
|
+
Fs && Nr.totalNodes++, A.parent && (A.isProjecting() || (A.isProjectionDirty = A.parent.isProjectionDirty), A.isSharedProjectionDirty || (A.isSharedProjectionDirty = !!(A.isProjectionDirty || A.parent.isProjectionDirty || A.parent.isSharedProjectionDirty)), A.isTransformDirty || (A.isTransformDirty = A.parent.isTransformDirty));
|
|
19074
19074
|
}
|
|
19075
19075
|
function OT(A) {
|
|
19076
19076
|
A.isProjectionDirty = A.isSharedProjectionDirty = A.isTransformDirty = !1;
|
|
@@ -19354,10 +19354,10 @@ const uO = {
|
|
|
19354
19354
|
transformPagePoint: (A) => A,
|
|
19355
19355
|
isStatic: !1,
|
|
19356
19356
|
reducedMotion: "never"
|
|
19357
|
-
}), Wl = $e({}), BI = typeof window < "u", Ev = BI ? Zn :
|
|
19357
|
+
}), Wl = $e({}), BI = typeof window < "u", Ev = BI ? Zn : LA, Cv = $e({ strict: !1 });
|
|
19358
19358
|
function CO(A, e, t, n, o) {
|
|
19359
19359
|
var r, i;
|
|
19360
|
-
const { visualElement: s } = te(Wl), a = te(Cv), g = te(ql), c = te(Ca).reducedMotion, l =
|
|
19360
|
+
const { visualElement: s } = te(Wl), a = te(Cv), g = te(ql), c = te(Ca).reducedMotion, l = NA();
|
|
19361
19361
|
n = n || a.renderer, !l.current && n && (l.current = n(A, {
|
|
19362
19362
|
visualState: e,
|
|
19363
19363
|
parent: s,
|
|
@@ -19368,14 +19368,14 @@ function CO(A, e, t, n, o) {
|
|
|
19368
19368
|
}));
|
|
19369
19369
|
const Q = l.current, B = te(ov);
|
|
19370
19370
|
Q && !Q.projection && o && (Q.type === "html" || Q.type === "svg") && IO(l.current, t, o, B);
|
|
19371
|
-
const E =
|
|
19371
|
+
const E = NA(!1);
|
|
19372
19372
|
hl(() => {
|
|
19373
19373
|
Q && E.current && Q.update(t, g);
|
|
19374
19374
|
});
|
|
19375
|
-
const C = t[Y1], h =
|
|
19375
|
+
const C = t[Y1], h = NA(!!C && !(!((r = window.MotionHandoffIsComplete) === null || r === void 0) && r.call(window, C)) && ((i = window.MotionHasOptimisedAnimation) === null || i === void 0 ? void 0 : i.call(window, C)));
|
|
19376
19376
|
return Ev(() => {
|
|
19377
19377
|
Q && (E.current = !0, window.MotionIsMounted = !0, Q.updateFeatures(), lI.render(Q.render), h.current && Q.animationState && Q.animationState.animateChanges());
|
|
19378
|
-
}),
|
|
19378
|
+
}), LA(() => {
|
|
19379
19379
|
Q && (!h.current && Q.animationState && Q.animationState.animateChanges(), h.current && (queueMicrotask(() => {
|
|
19380
19380
|
var I;
|
|
19381
19381
|
(I = window.MotionHandoffMarkAsComplete) === null || I === void 0 || I.call(window, C);
|
|
@@ -19407,7 +19407,7 @@ function Iv(A) {
|
|
|
19407
19407
|
return A.options.allowProjection !== !1 ? A.projection : Iv(A.parent);
|
|
19408
19408
|
}
|
|
19409
19409
|
function dO(A, e, t) {
|
|
19410
|
-
return
|
|
19410
|
+
return oe(
|
|
19411
19411
|
(n) => {
|
|
19412
19412
|
n && A.mount && A.mount(n), e && (n ? e.mount(n) : e.unmount()), t && (typeof t == "function" ? t(n) : wi(t) && (t.current = n));
|
|
19413
19413
|
},
|
|
@@ -19597,7 +19597,7 @@ function fv(A, e, t, n) {
|
|
|
19597
19597
|
A.setAttribute(wv.has(o) ? o : gI(o), e.attrs[o]);
|
|
19598
19598
|
}
|
|
19599
19599
|
function Dv(A, { layout: e, layoutId: t }) {
|
|
19600
|
-
return
|
|
19600
|
+
return Ai.has(A) || A.startsWith("origin") || (e || t !== void 0) && (!!Tc[A] || A === "opacity");
|
|
19601
19601
|
}
|
|
19602
19602
|
function uI(A, e, t) {
|
|
19603
19603
|
var n;
|
|
@@ -19616,7 +19616,7 @@ function pv(A, e, t) {
|
|
|
19616
19616
|
return n;
|
|
19617
19617
|
}
|
|
19618
19618
|
function zl(A) {
|
|
19619
|
-
const e =
|
|
19619
|
+
const e = NA(null);
|
|
19620
19620
|
return e.current === null && (e.current = A()), e.current;
|
|
19621
19621
|
}
|
|
19622
19622
|
function kO({ scrapeMotionValuesFromProps: A, createRenderState: e, onMount: t }, n, o, r) {
|
|
@@ -19699,7 +19699,7 @@ function CI(A, e, t) {
|
|
|
19699
19699
|
let i = !1, s = !1;
|
|
19700
19700
|
for (const a in e) {
|
|
19701
19701
|
const g = e[a];
|
|
19702
|
-
if (
|
|
19702
|
+
if (Ai.has(a)) {
|
|
19703
19703
|
i = !0;
|
|
19704
19704
|
continue;
|
|
19705
19705
|
} else if (d1(a)) {
|
|
@@ -19965,7 +19965,7 @@ let _O = class {
|
|
|
19965
19965
|
}
|
|
19966
19966
|
bindToMotionValue(e, t) {
|
|
19967
19967
|
this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)();
|
|
19968
|
-
const n =
|
|
19968
|
+
const n = Ai.has(e), o = t.on("change", (s) => {
|
|
19969
19969
|
this.latestValues[e] = s, this.props.onUpdate && be.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0);
|
|
19970
19970
|
}), r = t.on("renderRequest", this.scheduleRender);
|
|
19971
19971
|
let i;
|
|
@@ -20138,7 +20138,7 @@ let $O = class extends bv {
|
|
|
20138
20138
|
super(...arguments), this.type = "html", this.renderInstance = hv;
|
|
20139
20139
|
}
|
|
20140
20140
|
readValueFromInstance(e, t) {
|
|
20141
|
-
if (
|
|
20141
|
+
if (Ai.has(t)) {
|
|
20142
20142
|
const n = $C(t);
|
|
20143
20143
|
return n && n.default || 0;
|
|
20144
20144
|
} else {
|
|
@@ -20170,7 +20170,7 @@ let $O = class extends bv {
|
|
|
20170
20170
|
return e[t];
|
|
20171
20171
|
}
|
|
20172
20172
|
readValueFromInstance(e, t) {
|
|
20173
|
-
if (
|
|
20173
|
+
if (Ai.has(t)) {
|
|
20174
20174
|
const n = $C(t);
|
|
20175
20175
|
return n && n.default || 0;
|
|
20176
20176
|
}
|
|
@@ -20216,7 +20216,7 @@ let nJ = class extends m.Component {
|
|
|
20216
20216
|
}
|
|
20217
20217
|
};
|
|
20218
20218
|
function oJ({ children: A, isPresent: e }) {
|
|
20219
|
-
const t =
|
|
20219
|
+
const t = Xr(), n = NA(null), o = NA({
|
|
20220
20220
|
width: 0,
|
|
20221
20221
|
height: 0,
|
|
20222
20222
|
top: 0,
|
|
@@ -20242,7 +20242,7 @@ function oJ({ children: A, isPresent: e }) {
|
|
|
20242
20242
|
}, [e]), u(nJ, { isPresent: e, childRef: n, sizeRef: o, children: m.cloneElement(A, { ref: n }) });
|
|
20243
20243
|
}
|
|
20244
20244
|
const rJ = ({ children: A, initial: e, isPresent: t, onExitComplete: n, custom: o, presenceAffectsLayout: r, mode: i }) => {
|
|
20245
|
-
const s = zl(iJ), a =
|
|
20245
|
+
const s = zl(iJ), a = Xr(), g = oe((l) => {
|
|
20246
20246
|
s.set(l, !0);
|
|
20247
20247
|
for (const Q of s.values())
|
|
20248
20248
|
if (!Q)
|
|
@@ -20282,7 +20282,7 @@ function Xf(A) {
|
|
|
20282
20282
|
}
|
|
20283
20283
|
const $t = ({ children: A, exitBeforeEnter: e, custom: t, initial: n = !0, onExitComplete: o, presenceAffectsLayout: r = !0, mode: i = "sync" }) => {
|
|
20284
20284
|
xo(!e, "Replace exitBeforeEnter with mode='wait'");
|
|
20285
|
-
const s = HA(() => Xf(A), [A]), a = s.map(Jg), g =
|
|
20285
|
+
const s = HA(() => Xf(A), [A]), a = s.map(Jg), g = NA(!0), c = NA(s), l = zl(() => /* @__PURE__ */ new Map()), [Q, B] = MA(s), [E, C] = MA(s);
|
|
20286
20286
|
Ev(() => {
|
|
20287
20287
|
g.current = !1, c.current = s;
|
|
20288
20288
|
for (let f = 0; f < E.length; f++) {
|
|
@@ -20351,7 +20351,7 @@ function cJ(A, e, { root: t, margin: n, amount: o = "some" } = {}) {
|
|
|
20351
20351
|
}
|
|
20352
20352
|
function lJ(A, { root: e, margin: t, amount: n, once: o = !1 } = {}) {
|
|
20353
20353
|
const [r, i] = MA(!1);
|
|
20354
|
-
return
|
|
20354
|
+
return LA(() => {
|
|
20355
20355
|
if (!A.current || o && r)
|
|
20356
20356
|
return;
|
|
20357
20357
|
const s = () => (i(!0), o ? void 0 : () => i(!1)), a = {
|
|
@@ -20379,17 +20379,17 @@ const _f = {
|
|
|
20379
20379
|
ease: [0.215, 0.61, 0.355, 1],
|
|
20380
20380
|
duration: 0.2
|
|
20381
20381
|
}, QJ = (A, e) => {
|
|
20382
|
-
const t =
|
|
20383
|
-
return
|
|
20382
|
+
const t = NA();
|
|
20383
|
+
return LA(() => () => {
|
|
20384
20384
|
t.current && clearTimeout(t.current);
|
|
20385
|
-
}, []),
|
|
20385
|
+
}, []), oe(() => {
|
|
20386
20386
|
t.current && clearTimeout(t.current), t.current = setTimeout(A, e);
|
|
20387
20387
|
}, [A, e]);
|
|
20388
20388
|
};
|
|
20389
20389
|
function liA({ items: A, renderItem: e, className: t }) {
|
|
20390
20390
|
const [n, o] = MA(
|
|
20391
20391
|
A.find((N) => N.active)?.href ?? null
|
|
20392
|
-
), [r, i] = MA(null), [s, a] = MA(0), [g, c] = MA(null), [l, Q] = MA(null), B =
|
|
20392
|
+
), [r, i] = MA(null), [s, a] = MA(0), [g, c] = MA(null), [l, Q] = MA(null), B = NA(/* @__PURE__ */ new Map()), E = NA(null), C = NA(!1), h = NA(!1);
|
|
20393
20393
|
Zn(() => {
|
|
20394
20394
|
const N = A.find((Y) => Y.active)?.href ?? A[0]?.href;
|
|
20395
20395
|
o(N);
|
|
@@ -20435,19 +20435,19 @@ function liA({ items: A, renderItem: e, className: t }) {
|
|
|
20435
20435
|
N && a(N.offsetWidth);
|
|
20436
20436
|
}
|
|
20437
20437
|
}, 100);
|
|
20438
|
-
|
|
20439
|
-
const f =
|
|
20438
|
+
LA(() => (window.addEventListener("resize", I), () => window.removeEventListener("resize", I)), [I]);
|
|
20439
|
+
const f = oe((N) => {
|
|
20440
20440
|
o(N);
|
|
20441
|
-
}, []), p =
|
|
20441
|
+
}, []), p = oe(() => {
|
|
20442
20442
|
C.current = !0;
|
|
20443
|
-
}, []), k =
|
|
20443
|
+
}, []), k = oe(() => {
|
|
20444
20444
|
C.current = !1, E.current = null, i(null);
|
|
20445
|
-
}, []), v =
|
|
20445
|
+
}, []), v = oe(
|
|
20446
20446
|
(N) => {
|
|
20447
20447
|
N !== null && (E.current = r), i(N);
|
|
20448
20448
|
},
|
|
20449
20449
|
[r]
|
|
20450
|
-
), D = E.current !== null && C.current, x =
|
|
20450
|
+
), D = E.current !== null && C.current, x = oe(
|
|
20451
20451
|
(N) => ({
|
|
20452
20452
|
onClick: () => f(N),
|
|
20453
20453
|
onMouseEnter: () => v(N),
|
|
@@ -20985,7 +20985,7 @@ class GJ extends Za {
|
|
|
20985
20985
|
}
|
|
20986
20986
|
class HJ extends Za {
|
|
20987
20987
|
constructor(e, t, n, o, r) {
|
|
20988
|
-
super(e, t, n, null), this._match = new
|
|
20988
|
+
super(e, t, n, null), this._match = new Wr(o, this.id), this.captures = r, this._cachedCompiledPatterns = null;
|
|
20989
20989
|
}
|
|
20990
20990
|
dispose() {
|
|
20991
20991
|
this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
|
|
@@ -21028,7 +21028,7 @@ class rD extends Za {
|
|
|
21028
21028
|
}
|
|
21029
21029
|
class ju extends Za {
|
|
21030
21030
|
constructor(e, t, n, o, r, i, s, a, g, c) {
|
|
21031
|
-
super(e, t, n, o), this._begin = new
|
|
21031
|
+
super(e, t, n, o), this._begin = new Wr(r, this.id), this.beginCaptures = i, this._end = new Wr(s || "", -1), this.endHasBackReferences = this._end.hasBackReferences, this.endCaptures = a, this.applyEndPatternLast = g || !1, this.patterns = c.patterns, this.hasMissingPatterns = c.hasMissingPatterns, this._cachedCompiledPatterns = null;
|
|
21032
21032
|
}
|
|
21033
21033
|
dispose() {
|
|
21034
21034
|
this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null);
|
|
@@ -21062,7 +21062,7 @@ class ju extends Za {
|
|
|
21062
21062
|
}
|
|
21063
21063
|
class Wc extends Za {
|
|
21064
21064
|
constructor(e, t, n, o, r, i, s, a, g) {
|
|
21065
|
-
super(e, t, n, o), this._begin = new
|
|
21065
|
+
super(e, t, n, o), this._begin = new Wr(r, this.id), this.beginCaptures = i, this.whileCaptures = a, this._while = new Wr(s, -2), this.whileHasBackReferences = this._while.hasBackReferences, this.patterns = g.patterns, this.hasMissingPatterns = g.hasMissingPatterns, this._cachedCompiledPatterns = null, this._cachedCompiledWhilePatterns = null;
|
|
21066
21066
|
}
|
|
21067
21067
|
dispose() {
|
|
21068
21068
|
this._cachedCompiledPatterns && (this._cachedCompiledPatterns.dispose(), this._cachedCompiledPatterns = null), this._cachedCompiledWhilePatterns && (this._cachedCompiledWhilePatterns.dispose(), this._cachedCompiledWhilePatterns = null);
|
|
@@ -21171,7 +21171,7 @@ class ht {
|
|
|
21171
21171
|
return { patterns: o, hasMissingPatterns: (e ? e.length : 0) !== o.length };
|
|
21172
21172
|
}
|
|
21173
21173
|
}
|
|
21174
|
-
class
|
|
21174
|
+
class Wr {
|
|
21175
21175
|
constructor(e, t) {
|
|
21176
21176
|
if (e) {
|
|
21177
21177
|
const n = e.length;
|
|
@@ -21185,7 +21185,7 @@ class qr {
|
|
|
21185
21185
|
this.hasAnchor ? this._anchorCache = this._buildAnchorCache() : this._anchorCache = null, this.ruleId = t, this.hasBackReferences = SJ.test(this.source);
|
|
21186
21186
|
}
|
|
21187
21187
|
clone() {
|
|
21188
|
-
return new
|
|
21188
|
+
return new Wr(this.source, this.ruleId);
|
|
21189
21189
|
}
|
|
21190
21190
|
setSource(e) {
|
|
21191
21191
|
this.source !== e && (this.source = e, this.hasAnchor && (this._anchorCache = this._buildAnchorCache()));
|
|
@@ -21346,21 +21346,21 @@ class Vc {
|
|
|
21346
21346
|
return n ? new sD(n.fontStyle, n.foreground, n.background) : null;
|
|
21347
21347
|
}
|
|
21348
21348
|
}
|
|
21349
|
-
class
|
|
21349
|
+
class Ur {
|
|
21350
21350
|
constructor(e, t) {
|
|
21351
21351
|
this.parent = e, this.scopeName = t;
|
|
21352
21352
|
}
|
|
21353
21353
|
static push(e, t) {
|
|
21354
|
-
for (const n of t) e = new
|
|
21354
|
+
for (const n of t) e = new Ur(e, n);
|
|
21355
21355
|
return e;
|
|
21356
21356
|
}
|
|
21357
21357
|
static from(...e) {
|
|
21358
21358
|
let t = null;
|
|
21359
|
-
for (let n = 0; n < e.length; n++) t = new
|
|
21359
|
+
for (let n = 0; n < e.length; n++) t = new Ur(t, e[n]);
|
|
21360
21360
|
return t;
|
|
21361
21361
|
}
|
|
21362
21362
|
push(e) {
|
|
21363
|
-
return new
|
|
21363
|
+
return new Ur(this, e);
|
|
21364
21364
|
}
|
|
21365
21365
|
getSegments() {
|
|
21366
21366
|
let e = this;
|
|
@@ -21765,14 +21765,14 @@ class Ut {
|
|
|
21765
21765
|
}
|
|
21766
21766
|
static fromExtension(e, t) {
|
|
21767
21767
|
let n = e, o = e?.scopePath ?? null;
|
|
21768
|
-
for (const r of t) o =
|
|
21768
|
+
for (const r of t) o = Ur.push(o, r.scopeNames), n = new Ut(n, o, r.encodedTokenAttributes);
|
|
21769
21769
|
return n;
|
|
21770
21770
|
}
|
|
21771
21771
|
static createRoot(e, t) {
|
|
21772
|
-
return new Ut(null, new
|
|
21772
|
+
return new Ut(null, new Ur(null, e), t);
|
|
21773
21773
|
}
|
|
21774
21774
|
static createRootAndLookUpScopeName(e, t, n) {
|
|
21775
|
-
const o = n.getMetadataForScope(e), r = new
|
|
21775
|
+
const o = n.getMetadataForScope(e), r = new Ur(null, e), i = n.themeProvider.themeMatch(r), s = Ut.mergeAttributes(t, o, i);
|
|
21776
21776
|
return new Ut(null, r, s);
|
|
21777
21777
|
}
|
|
21778
21778
|
get scopeName() {
|
|
@@ -23488,7 +23488,7 @@ const fI = ({ merge: A, ...e }) => {
|
|
|
23488
23488
|
return u("span", { ...a, children: i });
|
|
23489
23489
|
}
|
|
23490
23490
|
}, O3 = (A) => {
|
|
23491
|
-
const e =
|
|
23491
|
+
const e = NA(null), t = A._ref || e;
|
|
23492
23492
|
return u(Xl, { merge: A, _ref: t });
|
|
23493
23493
|
};
|
|
23494
23494
|
function J3(A, e) {
|
|
@@ -24221,8 +24221,8 @@ function v5({
|
|
|
24221
24221
|
showLineNumbers: c = !1,
|
|
24222
24222
|
customHandlers: l = []
|
|
24223
24223
|
}) {
|
|
24224
|
-
const [Q, B] = MA(!1), [E, C] = MA(0), h =
|
|
24225
|
-
|
|
24224
|
+
const [Q, B] = MA(!1), [E, C] = MA(0), h = NA(null);
|
|
24225
|
+
LA(() => {
|
|
24226
24226
|
const N = () => {
|
|
24227
24227
|
if (h.current) {
|
|
24228
24228
|
const L = h.current.getBoundingClientRect().width;
|
|
@@ -24235,12 +24235,12 @@ function v5({
|
|
|
24235
24235
|
}, []);
|
|
24236
24236
|
const [I, f] = MA(void 0), p = A.split(`
|
|
24237
24237
|
`).length > 1, { theme: k } = $E(), v = HA(() => [...E8(c, !0), ...l], [c, l]);
|
|
24238
|
-
|
|
24238
|
+
LA(() => {
|
|
24239
24239
|
t && u8(A, t).then((N) => {
|
|
24240
24240
|
f(N);
|
|
24241
24241
|
});
|
|
24242
24242
|
}, [A, t]);
|
|
24243
|
-
const D =
|
|
24243
|
+
const D = oe(() => {
|
|
24244
24244
|
B(!0), navigator.clipboard.writeText(I?.code ?? A), setTimeout(() => {
|
|
24245
24245
|
B(!1), i?.();
|
|
24246
24246
|
}, 1e3);
|
|
@@ -24420,10 +24420,10 @@ var L5 = m.forwardRef((A, e) => {
|
|
|
24420
24420
|
...l,
|
|
24421
24421
|
ref: B,
|
|
24422
24422
|
style: { outline: "none", ...A.style },
|
|
24423
|
-
onMouseDown:
|
|
24423
|
+
onMouseDown: bA(A.onMouseDown, () => {
|
|
24424
24424
|
v.current = !0;
|
|
24425
24425
|
}),
|
|
24426
|
-
onFocus:
|
|
24426
|
+
onFocus: bA(A.onFocus, (N) => {
|
|
24427
24427
|
const Y = !v.current;
|
|
24428
24428
|
if (N.target === N.currentTarget && Y && !I) {
|
|
24429
24429
|
const L = new CustomEvent(vQ, N5);
|
|
@@ -24436,7 +24436,7 @@ var L5 = m.forwardRef((A, e) => {
|
|
|
24436
24436
|
}
|
|
24437
24437
|
v.current = !1;
|
|
24438
24438
|
}),
|
|
24439
|
-
onBlur:
|
|
24439
|
+
onBlur: bA(A.onBlur, () => f(!1))
|
|
24440
24440
|
}
|
|
24441
24441
|
)
|
|
24442
24442
|
}
|
|
@@ -24467,11 +24467,11 @@ var L5 = m.forwardRef((A, e) => {
|
|
|
24467
24467
|
"data-orientation": g.orientation,
|
|
24468
24468
|
...i,
|
|
24469
24469
|
ref: e,
|
|
24470
|
-
onMouseDown:
|
|
24470
|
+
onMouseDown: bA(A.onMouseDown, (E) => {
|
|
24471
24471
|
n ? g.onItemFocus(a) : E.preventDefault();
|
|
24472
24472
|
}),
|
|
24473
|
-
onFocus:
|
|
24474
|
-
onKeyDown:
|
|
24473
|
+
onFocus: bA(A.onFocus, () => g.onItemFocus(a)),
|
|
24474
|
+
onKeyDown: bA(A.onKeyDown, (E) => {
|
|
24475
24475
|
if (E.key === "Tab" && E.shiftKey) {
|
|
24476
24476
|
g.onItemShiftTab();
|
|
24477
24477
|
return;
|
|
@@ -24530,11 +24530,11 @@ var U5 = d8, K5 = w8, oE = ["Enter", " "], Y5 = ["ArrowDown", "PageUp", "Home"],
|
|
|
24530
24530
|
}, J5 = {
|
|
24531
24531
|
ltr: ["ArrowLeft"],
|
|
24532
24532
|
rtl: ["ArrowRight"]
|
|
24533
|
-
}, $a = "Menu", [fa, q5, W5] = pI($a), [
|
|
24533
|
+
}, $a = "Menu", [fa, q5, W5] = pI($a), [ei, p8] = co($a, [
|
|
24534
24534
|
W5,
|
|
24535
24535
|
ar,
|
|
24536
24536
|
I8
|
|
24537
|
-
]), Ag = ar(), m8 = I8(), [y8, Br] =
|
|
24537
|
+
]), Ag = ar(), m8 = I8(), [y8, Br] = ei($a), [V5, eg] = ei($a), M8 = (A) => {
|
|
24538
24538
|
const { __scopeMenu: e, open: t = !1, children: n, dir: o, onOpenChange: r, modal: i = !0 } = A, s = Ag(e), [a, g] = m.useState(null), c = m.useRef(!1), l = Qn(r), Q = mI(o);
|
|
24539
24539
|
return m.useEffect(() => {
|
|
24540
24540
|
const B = () => {
|
|
@@ -24573,14 +24573,14 @@ var z5 = "MenuAnchor", yI = m.forwardRef(
|
|
|
24573
24573
|
}
|
|
24574
24574
|
);
|
|
24575
24575
|
yI.displayName = z5;
|
|
24576
|
-
var MI = "MenuPortal", [j5, v8] =
|
|
24576
|
+
var MI = "MenuPortal", [j5, v8] = ei(MI, {
|
|
24577
24577
|
forceMount: void 0
|
|
24578
24578
|
}), k8 = (A) => {
|
|
24579
24579
|
const { __scopeMenu: e, forceMount: t, children: n, container: o } = A, r = Br(MI, e);
|
|
24580
24580
|
return /* @__PURE__ */ u(j5, { scope: e, forceMount: t, children: /* @__PURE__ */ u(xn, { present: t || r.open, children: /* @__PURE__ */ u(rs, { asChild: !0, container: o, children: n }) }) });
|
|
24581
24581
|
};
|
|
24582
24582
|
k8.displayName = MI;
|
|
24583
|
-
var vn = "MenuContent", [X5, vI] =
|
|
24583
|
+
var vn = "MenuContent", [X5, vI] = ei(vn), N8 = m.forwardRef(
|
|
24584
24584
|
(A, e) => {
|
|
24585
24585
|
const t = v8(vn, A.__scopeMenu), { forceMount: n = t.forceMount, ...o } = A, r = Br(vn, A.__scopeMenu), i = eg(vn, A.__scopeMenu);
|
|
24586
24586
|
return /* @__PURE__ */ u(fa.Provider, { scope: A.__scopeMenu, children: /* @__PURE__ */ u(xn, { present: n || r.open, children: /* @__PURE__ */ u(fa.Slot, { scope: A.__scopeMenu, children: i.modal ? /* @__PURE__ */ u(_5, { ...o, ref: e }) : /* @__PURE__ */ u(Z5, { ...o, ref: e }) }) }) });
|
|
@@ -24599,7 +24599,7 @@ var vn = "MenuContent", [X5, vI] = Ai(vn), N8 = m.forwardRef(
|
|
|
24599
24599
|
trapFocus: t.open,
|
|
24600
24600
|
disableOutsidePointerEvents: t.open,
|
|
24601
24601
|
disableOutsideScroll: !0,
|
|
24602
|
-
onFocusOutside:
|
|
24602
|
+
onFocusOutside: bA(
|
|
24603
24603
|
A.onFocusOutside,
|
|
24604
24604
|
(r) => r.preventDefault(),
|
|
24605
24605
|
{ checkForDefaultPrevented: !1 }
|
|
@@ -24678,7 +24678,7 @@ var vn = "MenuContent", [X5, vI] = Ai(vn), N8 = m.forwardRef(
|
|
|
24678
24678
|
{
|
|
24679
24679
|
asChild: !0,
|
|
24680
24680
|
trapped: o,
|
|
24681
|
-
onMountAutoFocus:
|
|
24681
|
+
onMountAutoFocus: bA(r, (q) => {
|
|
24682
24682
|
q.preventDefault(), x.current?.focus({ preventScroll: !0 });
|
|
24683
24683
|
}),
|
|
24684
24684
|
onUnmountAutoFocus: i,
|
|
@@ -24702,7 +24702,7 @@ var vn = "MenuContent", [X5, vI] = Ai(vn), N8 = m.forwardRef(
|
|
|
24702
24702
|
loop: n,
|
|
24703
24703
|
currentTabStopId: v,
|
|
24704
24704
|
onCurrentTabStopIdChange: D,
|
|
24705
|
-
onEntryFocus:
|
|
24705
|
+
onEntryFocus: bA(a, (q) => {
|
|
24706
24706
|
I.isUsingKeyboardRef.current || q.preventDefault();
|
|
24707
24707
|
}),
|
|
24708
24708
|
preventScrollOnEntryFocus: !0,
|
|
@@ -24718,7 +24718,7 @@ var vn = "MenuContent", [X5, vI] = Ai(vn), N8 = m.forwardRef(
|
|
|
24718
24718
|
...C,
|
|
24719
24719
|
ref: N,
|
|
24720
24720
|
style: { outline: "none", ...C.style },
|
|
24721
|
-
onKeyDown:
|
|
24721
|
+
onKeyDown: bA(C.onKeyDown, (q) => {
|
|
24722
24722
|
const j = q.target.closest("[data-radix-menu-content]") === q.currentTarget, J = q.ctrlKey || q.altKey || q.metaKey, F = q.key.length === 1;
|
|
24723
24723
|
j && (q.key === "Tab" && q.preventDefault(), !J && F && z(q.key));
|
|
24724
24724
|
const sA = x.current;
|
|
@@ -24727,10 +24727,10 @@ var vn = "MenuContent", [X5, vI] = Ai(vn), N8 = m.forwardRef(
|
|
|
24727
24727
|
const eA = k().filter((nA) => !nA.disabled).map((nA) => nA.ref.current);
|
|
24728
24728
|
D8.includes(q.key) && eA.reverse(), a6(eA);
|
|
24729
24729
|
}),
|
|
24730
|
-
onBlur:
|
|
24730
|
+
onBlur: bA(A.onBlur, (q) => {
|
|
24731
24731
|
q.currentTarget.contains(q.target) || (window.clearTimeout(Y.current), L.current = "");
|
|
24732
24732
|
}),
|
|
24733
|
-
onPointerMove:
|
|
24733
|
+
onPointerMove: bA(
|
|
24734
24734
|
A.onPointerMove,
|
|
24735
24735
|
Da((q) => {
|
|
24736
24736
|
const b = q.target, j = K.current !== q.clientX;
|
|
@@ -24782,14 +24782,14 @@ var Xc = "MenuItem", yD = "menu.itemSelect", Zl = m.forwardRef(
|
|
|
24782
24782
|
...o,
|
|
24783
24783
|
ref: a,
|
|
24784
24784
|
disabled: t,
|
|
24785
|
-
onClick:
|
|
24785
|
+
onClick: bA(A.onClick, c),
|
|
24786
24786
|
onPointerDown: (l) => {
|
|
24787
24787
|
A.onPointerDown?.(l), g.current = !0;
|
|
24788
24788
|
},
|
|
24789
|
-
onPointerUp:
|
|
24789
|
+
onPointerUp: bA(A.onPointerUp, (l) => {
|
|
24790
24790
|
g.current || l.currentTarget?.click();
|
|
24791
24791
|
}),
|
|
24792
|
-
onKeyDown:
|
|
24792
|
+
onKeyDown: bA(A.onKeyDown, (l) => {
|
|
24793
24793
|
const Q = s.searchRef.current !== "";
|
|
24794
24794
|
t || Q && l.key === " " || oE.includes(l.key) && (l.currentTarget.click(), l.preventDefault());
|
|
24795
24795
|
})
|
|
@@ -24819,18 +24819,18 @@ var b8 = m.forwardRef(
|
|
|
24819
24819
|
"data-disabled": n ? "" : void 0,
|
|
24820
24820
|
...r,
|
|
24821
24821
|
ref: g,
|
|
24822
|
-
onPointerMove:
|
|
24822
|
+
onPointerMove: bA(
|
|
24823
24823
|
A.onPointerMove,
|
|
24824
24824
|
Da((E) => {
|
|
24825
24825
|
n ? i.onItemLeave(E) : (i.onItemEnter(E), E.defaultPrevented || E.currentTarget.focus({ preventScroll: !0 }));
|
|
24826
24826
|
})
|
|
24827
24827
|
),
|
|
24828
|
-
onPointerLeave:
|
|
24828
|
+
onPointerLeave: bA(
|
|
24829
24829
|
A.onPointerLeave,
|
|
24830
24830
|
Da((E) => i.onItemLeave(E))
|
|
24831
24831
|
),
|
|
24832
|
-
onFocus:
|
|
24833
|
-
onBlur:
|
|
24832
|
+
onFocus: bA(A.onFocus, () => l(!0)),
|
|
24833
|
+
onBlur: bA(A.onBlur, () => l(!1))
|
|
24834
24834
|
}
|
|
24835
24835
|
) })
|
|
24836
24836
|
}
|
|
@@ -24847,7 +24847,7 @@ var b8 = m.forwardRef(
|
|
|
24847
24847
|
...o,
|
|
24848
24848
|
ref: e,
|
|
24849
24849
|
"data-state": FI(t),
|
|
24850
|
-
onSelect:
|
|
24850
|
+
onSelect: bA(
|
|
24851
24851
|
o.onSelect,
|
|
24852
24852
|
() => n?.(_c(t) ? !0 : !t),
|
|
24853
24853
|
{ checkForDefaultPrevented: !1 }
|
|
@@ -24857,7 +24857,7 @@ var b8 = m.forwardRef(
|
|
|
24857
24857
|
}
|
|
24858
24858
|
);
|
|
24859
24859
|
F8.displayName = e6;
|
|
24860
|
-
var R8 = "MenuRadioGroup", [t6, n6] =
|
|
24860
|
+
var R8 = "MenuRadioGroup", [t6, n6] = ei(
|
|
24861
24861
|
R8,
|
|
24862
24862
|
{ value: void 0, onValueChange: () => {
|
|
24863
24863
|
} }
|
|
@@ -24879,7 +24879,7 @@ var P8 = "MenuRadioItem", S8 = m.forwardRef(
|
|
|
24879
24879
|
...n,
|
|
24880
24880
|
ref: e,
|
|
24881
24881
|
"data-state": FI(r),
|
|
24882
|
-
onSelect:
|
|
24882
|
+
onSelect: bA(
|
|
24883
24883
|
n.onSelect,
|
|
24884
24884
|
() => o.onValueChange?.(t),
|
|
24885
24885
|
{ checkForDefaultPrevented: !1 }
|
|
@@ -24889,7 +24889,7 @@ var P8 = "MenuRadioItem", S8 = m.forwardRef(
|
|
|
24889
24889
|
}
|
|
24890
24890
|
);
|
|
24891
24891
|
S8.displayName = P8;
|
|
24892
|
-
var xI = "MenuItemIndicator", [G8, o6] =
|
|
24892
|
+
var xI = "MenuItemIndicator", [G8, o6] = ei(
|
|
24893
24893
|
xI,
|
|
24894
24894
|
{ checked: !1 }
|
|
24895
24895
|
), H8 = m.forwardRef(
|
|
@@ -24934,7 +24934,7 @@ var i6 = "MenuArrow", K8 = m.forwardRef(
|
|
|
24934
24934
|
}
|
|
24935
24935
|
);
|
|
24936
24936
|
K8.displayName = i6;
|
|
24937
|
-
var bI = "MenuSub", [s6, Y8] =
|
|
24937
|
+
var bI = "MenuSub", [s6, Y8] = ei(bI), T8 = (A) => {
|
|
24938
24938
|
const { __scopeMenu: e, children: t, open: n = !1, onOpenChange: o } = A, r = Br(bI, e), i = Ag(e), [s, a] = m.useState(null), [g, c] = m.useState(null), l = Qn(o);
|
|
24939
24939
|
return m.useEffect(() => (r.open === !1 && l(!1), () => l(!1)), [r.open, l]), /* @__PURE__ */ u(Wa, { ...i, children: /* @__PURE__ */ u(
|
|
24940
24940
|
y8,
|
|
@@ -24982,7 +24982,7 @@ var Ls = "MenuSubTrigger", O8 = m.forwardRef(
|
|
|
24982
24982
|
onClick: (l) => {
|
|
24983
24983
|
A.onClick?.(l), !(A.disabled || l.defaultPrevented) && (l.currentTarget.focus(), t.open || t.onOpenChange(!0));
|
|
24984
24984
|
},
|
|
24985
|
-
onPointerMove:
|
|
24985
|
+
onPointerMove: bA(
|
|
24986
24986
|
A.onPointerMove,
|
|
24987
24987
|
Da((l) => {
|
|
24988
24988
|
r.onItemEnter(l), !l.defaultPrevented && !A.disabled && !t.open && !i.current && (r.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
@@ -24990,7 +24990,7 @@ var Ls = "MenuSubTrigger", O8 = m.forwardRef(
|
|
|
24990
24990
|
}, 100));
|
|
24991
24991
|
})
|
|
24992
24992
|
),
|
|
24993
|
-
onPointerLeave:
|
|
24993
|
+
onPointerLeave: bA(
|
|
24994
24994
|
A.onPointerLeave,
|
|
24995
24995
|
Da((l) => {
|
|
24996
24996
|
c();
|
|
@@ -25018,7 +25018,7 @@ var Ls = "MenuSubTrigger", O8 = m.forwardRef(
|
|
|
25018
25018
|
}
|
|
25019
25019
|
})
|
|
25020
25020
|
),
|
|
25021
|
-
onKeyDown:
|
|
25021
|
+
onKeyDown: bA(A.onKeyDown, (l) => {
|
|
25022
25022
|
const Q = r.searchRef.current !== "";
|
|
25023
25023
|
A.disabled || Q && l.key === " " || O5[n.dir].includes(l.key) && (t.onOpenChange(!0), t.content?.focus(), l.preventDefault());
|
|
25024
25024
|
})
|
|
@@ -25046,13 +25046,13 @@ var J8 = "MenuSubContent", q8 = m.forwardRef(
|
|
|
25046
25046
|
i.isUsingKeyboardRef.current && a.current?.focus(), c.preventDefault();
|
|
25047
25047
|
},
|
|
25048
25048
|
onCloseAutoFocus: (c) => c.preventDefault(),
|
|
25049
|
-
onFocusOutside:
|
|
25049
|
+
onFocusOutside: bA(A.onFocusOutside, (c) => {
|
|
25050
25050
|
c.target !== s.trigger && r.onOpenChange(!1);
|
|
25051
25051
|
}),
|
|
25052
|
-
onEscapeKeyDown:
|
|
25052
|
+
onEscapeKeyDown: bA(A.onEscapeKeyDown, (c) => {
|
|
25053
25053
|
i.onClose(), c.preventDefault();
|
|
25054
25054
|
}),
|
|
25055
|
-
onKeyDown:
|
|
25055
|
+
onKeyDown: bA(A.onKeyDown, (c) => {
|
|
25056
25056
|
const l = c.currentTarget.contains(c.target), Q = J5[i.dir].includes(c.key);
|
|
25057
25057
|
l && Q && (r.onOpenChange(!1), s.trigger?.focus(), c.preventDefault());
|
|
25058
25058
|
})
|
|
@@ -25153,10 +25153,10 @@ var j8 = "DropdownMenuTrigger", X8 = m.forwardRef(
|
|
|
25153
25153
|
disabled: n,
|
|
25154
25154
|
...o,
|
|
25155
25155
|
ref: yo(e, r.triggerRef),
|
|
25156
|
-
onPointerDown:
|
|
25156
|
+
onPointerDown: bA(A.onPointerDown, (s) => {
|
|
25157
25157
|
!n && s.button === 0 && s.ctrlKey === !1 && (r.onOpenToggle(), r.open || s.preventDefault());
|
|
25158
25158
|
}),
|
|
25159
|
-
onKeyDown:
|
|
25159
|
+
onKeyDown: bA(A.onKeyDown, (s) => {
|
|
25160
25160
|
n || (["Enter", " "].includes(s.key) && r.onOpenToggle(), s.key === "ArrowDown" && r.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(s.key) && s.preventDefault());
|
|
25161
25161
|
})
|
|
25162
25162
|
}
|
|
@@ -25180,10 +25180,10 @@ var Z8 = "DropdownMenuContent", $8 = m.forwardRef(
|
|
|
25180
25180
|
...r,
|
|
25181
25181
|
...n,
|
|
25182
25182
|
ref: e,
|
|
25183
|
-
onCloseAutoFocus:
|
|
25183
|
+
onCloseAutoFocus: bA(A.onCloseAutoFocus, (s) => {
|
|
25184
25184
|
i.current || o.triggerRef.current?.focus(), i.current = !1, s.preventDefault();
|
|
25185
25185
|
}),
|
|
25186
|
-
onInteractOutside:
|
|
25186
|
+
onInteractOutside: bA(A.onInteractOutside, (s) => {
|
|
25187
25187
|
const a = s.detail.originalEvent, g = a.button === 0 && a.ctrlKey === !0, c = a.button === 2 || g;
|
|
25188
25188
|
(!o.modal || c) && (i.current = !0);
|
|
25189
25189
|
}),
|
|
@@ -25481,19 +25481,19 @@ function diA({
|
|
|
25481
25481
|
isDisabled: Q = !1,
|
|
25482
25482
|
maxAttachments: B = 1
|
|
25483
25483
|
}) {
|
|
25484
|
-
const [E, C] = MA(!1), h =
|
|
25484
|
+
const [E, C] = MA(!1), h = NA(null), I = HA(() => c || h, [c]), f = NA(null), p = HA(() => {
|
|
25485
25485
|
const N = n?.split(`
|
|
25486
25486
|
`).length ?? 0;
|
|
25487
25487
|
if (N === 0)
|
|
25488
25488
|
return 0;
|
|
25489
25489
|
const Y = N * 20;
|
|
25490
25490
|
return Y > s ? `${s}px` : `${Y}px`;
|
|
25491
|
-
}, [n, s]), k =
|
|
25491
|
+
}, [n, s]), k = oe(
|
|
25492
25492
|
(N) => {
|
|
25493
25493
|
N.preventDefault(), N.stopPropagation(), C(!0);
|
|
25494
25494
|
},
|
|
25495
25495
|
[]
|
|
25496
|
-
), v =
|
|
25496
|
+
), v = oe(
|
|
25497
25497
|
async (N) => {
|
|
25498
25498
|
const Y = await Promise.all(
|
|
25499
25499
|
N.map(async (L) => ({
|
|
@@ -25507,12 +25507,12 @@ function diA({
|
|
|
25507
25507
|
r?.(Y);
|
|
25508
25508
|
},
|
|
25509
25509
|
[r]
|
|
25510
|
-
), D =
|
|
25510
|
+
), D = oe(
|
|
25511
25511
|
async (N) => {
|
|
25512
25512
|
N.preventDefault(), N.stopPropagation(), C(!1), v(Array.from(N.dataTransfer.files));
|
|
25513
25513
|
},
|
|
25514
25514
|
[v]
|
|
25515
|
-
), x =
|
|
25515
|
+
), x = oe(
|
|
25516
25516
|
(N) => {
|
|
25517
25517
|
N.preventDefault(), N.stopPropagation(), C(!1);
|
|
25518
25518
|
},
|
|
@@ -25645,7 +25645,7 @@ function diA({
|
|
|
25645
25645
|
}
|
|
25646
25646
|
function r7({ attachment: A }) {
|
|
25647
25647
|
const [e, t] = MA(null);
|
|
25648
|
-
|
|
25648
|
+
LA(() => {
|
|
25649
25649
|
async function o() {
|
|
25650
25650
|
if (!A.type.startsWith("image/"))
|
|
25651
25651
|
return;
|
|
@@ -25917,7 +25917,7 @@ function c7({
|
|
|
25917
25917
|
]
|
|
25918
25918
|
}
|
|
25919
25919
|
) }),
|
|
25920
|
-
/* @__PURE__ */ u(Ul, { className: "w-fit p-0", align: "start", sideOffset: 10, children: /* @__PURE__ */ tA(
|
|
25920
|
+
/* @__PURE__ */ u(Ul, { className: "w-fit p-0", align: "start", sideOffset: 10, children: /* @__PURE__ */ tA($r, { shouldFilter: !1, onKeyDown: v, children: [
|
|
25921
25921
|
n && /* @__PURE__ */ u(
|
|
25922
25922
|
yC,
|
|
25923
25923
|
{
|
|
@@ -25955,7 +25955,7 @@ function l7({
|
|
|
25955
25955
|
A && setTimeout(() => {
|
|
25956
25956
|
a.current?.focus();
|
|
25957
25957
|
}, 300);
|
|
25958
|
-
}, [A]),
|
|
25958
|
+
}, [A]), LA(() => {
|
|
25959
25959
|
I();
|
|
25960
25960
|
}, [l]);
|
|
25961
25961
|
const I = () => {
|
|
@@ -25964,13 +25964,13 @@ function l7({
|
|
|
25964
25964
|
E(!0);
|
|
25965
25965
|
const k = await o(l, r);
|
|
25966
25966
|
E(!1), k.success || h(k.error ?? "Unknown error");
|
|
25967
|
-
}, p =
|
|
25967
|
+
}, p = oe(
|
|
25968
25968
|
(k) => {
|
|
25969
25969
|
i(k.target.value), c(!k.target.validity.valid);
|
|
25970
25970
|
},
|
|
25971
25971
|
[i, c]
|
|
25972
25972
|
);
|
|
25973
|
-
return /* @__PURE__ */ tA(
|
|
25973
|
+
return /* @__PURE__ */ tA($r, { className: "relative", children: [
|
|
25974
25974
|
/* @__PURE__ */ tA("div", { className: "flex h-full w-full flex-row items-center", children: [
|
|
25975
25975
|
/* @__PURE__ */ u("div", { className: "flex w-1/3 flex-col items-center justify-center gap-4 px-8 text-center", children: /* @__PURE__ */ tA("div", { className: "flex flex-col items-center justify-center gap-4", children: [
|
|
25976
25976
|
/* @__PURE__ */ u(AB, { name: l.label, size: "2xl", showInitial: !0 }),
|
|
@@ -26133,10 +26133,10 @@ function vD({
|
|
|
26133
26133
|
onSelectRecent: r,
|
|
26134
26134
|
filterOrgFunc: i
|
|
26135
26135
|
}) {
|
|
26136
|
-
const s =
|
|
26137
|
-
return
|
|
26136
|
+
const s = NA(null), [a, g] = MA(""), c = NA(null), [l, Q] = MA(A);
|
|
26137
|
+
return LA(() => {
|
|
26138
26138
|
Q(A.filter((B) => i(B, a)));
|
|
26139
|
-
}, [a, i, A]),
|
|
26139
|
+
}, [a, i, A]), LA(() => {
|
|
26140
26140
|
if (t && s.current) {
|
|
26141
26141
|
const B = A.findIndex((E) => E.slug === t.slug);
|
|
26142
26142
|
setTimeout(() => {
|
|
@@ -26227,16 +26227,16 @@ function u7({
|
|
|
26227
26227
|
enableCreate: o = !0,
|
|
26228
26228
|
filterWorkspaceFunc: r
|
|
26229
26229
|
}) {
|
|
26230
|
-
const i =
|
|
26230
|
+
const i = NA(null), [s, a] = MA(""), g = NA(null), [c, l] = MA(
|
|
26231
26231
|
A?.workspaces || []
|
|
26232
26232
|
);
|
|
26233
|
-
return
|
|
26233
|
+
return LA(() => {
|
|
26234
26234
|
l(
|
|
26235
26235
|
A?.workspaces.filter(
|
|
26236
26236
|
(Q) => r(Q, s)
|
|
26237
26237
|
)
|
|
26238
26238
|
);
|
|
26239
|
-
}, [s, A?.workspaces, r]),
|
|
26239
|
+
}, [s, A?.workspaces, r]), LA(() => {
|
|
26240
26240
|
if (e && i.current) {
|
|
26241
26241
|
const Q = A?.workspaces.findIndex(
|
|
26242
26242
|
(B) => B.slug === e.slug
|
|
@@ -26296,10 +26296,10 @@ function E7({
|
|
|
26296
26296
|
selectedWorkspace: o,
|
|
26297
26297
|
handleCreateViewOpen: r
|
|
26298
26298
|
}) {
|
|
26299
|
-
const [i, s] = MA(""), a =
|
|
26299
|
+
const [i, s] = MA(""), a = NA(null), [g, c] = MA(
|
|
26300
26300
|
A
|
|
26301
26301
|
);
|
|
26302
|
-
return
|
|
26302
|
+
return LA(() => {
|
|
26303
26303
|
c(
|
|
26304
26304
|
A.filter(
|
|
26305
26305
|
(l) => l.workspaces.some((Q) => Q.slug.includes(i))
|
|
@@ -26345,10 +26345,10 @@ function E7({
|
|
|
26345
26345
|
] });
|
|
26346
26346
|
}
|
|
26347
26347
|
function C7({ onSubmit: A }) {
|
|
26348
|
-
const [e, t] = MA(""), n =
|
|
26349
|
-
return
|
|
26348
|
+
const [e, t] = MA(""), n = NA(null);
|
|
26349
|
+
return LA(() => {
|
|
26350
26350
|
n.current && n.current.focus();
|
|
26351
|
-
}, []), /* @__PURE__ */ tA(
|
|
26351
|
+
}, []), /* @__PURE__ */ tA($r, { className: "relative", children: [
|
|
26352
26352
|
/* @__PURE__ */ tA("div", { className: "flex h-full w-full flex-row items-center", children: [
|
|
26353
26353
|
/* @__PURE__ */ u("div", { className: "flex w-1/3 flex-col items-center justify-center gap-4 px-8 text-center", children: /* @__PURE__ */ tA("div", { className: "flex flex-col items-center justify-center gap-4", children: [
|
|
26354
26354
|
/* @__PURE__ */ u(
|
|
@@ -26585,7 +26585,7 @@ function d7({
|
|
|
26585
26585
|
/* @__PURE__ */ u(Ue, { muted: !0, children: "Select or create the workspace you want to use for this project." })
|
|
26586
26586
|
] })
|
|
26587
26587
|
] }) }) }),
|
|
26588
|
-
/* @__PURE__ */ u("div", { className: "w-full flex-2/3", children: /* @__PURE__ */ u(
|
|
26588
|
+
/* @__PURE__ */ u("div", { className: "w-full flex-2/3", children: /* @__PURE__ */ u($r, { shouldFilter: !1, children: B ? /* @__PURE__ */ tA("div", { className: "flex w-full flex-grow flex-row", children: [
|
|
26589
26589
|
/* @__PURE__ */ u(
|
|
26590
26590
|
vD,
|
|
26591
26591
|
{
|
|
@@ -26860,7 +26860,7 @@ function D7({
|
|
|
26860
26860
|
const [o, r] = MA(
|
|
26861
26861
|
e || A[0].props.id
|
|
26862
26862
|
);
|
|
26863
|
-
|
|
26863
|
+
LA(() => {
|
|
26864
26864
|
r(e || A[0].props.id);
|
|
26865
26865
|
}, [e]);
|
|
26866
26866
|
const i = CA.Children.toArray(A).filter(
|
|
@@ -27011,20 +27011,20 @@ var iE = "TooltipTrigger", bk = m.forwardRef(
|
|
|
27011
27011
|
"data-state": o.stateAttribute,
|
|
27012
27012
|
...n,
|
|
27013
27013
|
ref: a,
|
|
27014
|
-
onPointerMove:
|
|
27014
|
+
onPointerMove: bA(A.onPointerMove, (Q) => {
|
|
27015
27015
|
Q.pointerType !== "touch" && !c.current && !r.isPointerInTransitRef.current && (o.onTriggerEnter(), c.current = !0);
|
|
27016
27016
|
}),
|
|
27017
|
-
onPointerLeave:
|
|
27017
|
+
onPointerLeave: bA(A.onPointerLeave, () => {
|
|
27018
27018
|
o.onTriggerLeave(), c.current = !1;
|
|
27019
27019
|
}),
|
|
27020
|
-
onPointerDown:
|
|
27020
|
+
onPointerDown: bA(A.onPointerDown, () => {
|
|
27021
27021
|
g.current = !0, document.addEventListener("pointerup", l, { once: !0 });
|
|
27022
27022
|
}),
|
|
27023
|
-
onFocus:
|
|
27023
|
+
onFocus: bA(A.onFocus, () => {
|
|
27024
27024
|
g.current || o.onOpen();
|
|
27025
27025
|
}),
|
|
27026
|
-
onBlur:
|
|
27027
|
-
onClick:
|
|
27026
|
+
onBlur: bA(A.onBlur, o.onClose),
|
|
27027
|
+
onClick: bA(A.onClick, o.onClose)
|
|
27028
27028
|
}
|
|
27029
27029
|
) });
|
|
27030
27030
|
}
|
|
@@ -27606,7 +27606,7 @@ function o9({
|
|
|
27606
27606
|
}) {
|
|
27607
27607
|
const [n, o] = MA(
|
|
27608
27608
|
t ?? /* @__PURE__ */ new Set()
|
|
27609
|
-
), r =
|
|
27609
|
+
), r = oe(
|
|
27610
27610
|
(i) => {
|
|
27611
27611
|
o((s) => {
|
|
27612
27612
|
const a = new Set(s);
|
|
@@ -27650,7 +27650,7 @@ const kD = At(
|
|
|
27650
27650
|
) })
|
|
27651
27651
|
);
|
|
27652
27652
|
function r9(A) {
|
|
27653
|
-
const { depth: e } = YI(), t = e + 1, n =
|
|
27653
|
+
const { depth: e } = YI(), t = e + 1, n = NA(null), o = NA(null);
|
|
27654
27654
|
let r = A.columns;
|
|
27655
27655
|
!Vi(A) && A.renderExpandedContent && (r = [Uk(), ...r]);
|
|
27656
27656
|
const i = HA(
|
|
@@ -27844,7 +27844,7 @@ function a9({
|
|
|
27844
27844
|
}, c = HA(
|
|
27845
27845
|
() => o(A),
|
|
27846
27846
|
[o, A]
|
|
27847
|
-
), l =
|
|
27847
|
+
), l = oe(() => c ? /* @__PURE__ */ u(oB, { children: /* @__PURE__ */ tA(rB, { delayDuration: 0, children: [
|
|
27848
27848
|
/* @__PURE__ */ u(iB, { asChild: !0, children: /* @__PURE__ */ u("div", { className: "flex w-full justify-end", children: /* @__PURE__ */ u(
|
|
27849
27849
|
Mo,
|
|
27850
27850
|
{
|
|
@@ -28038,12 +28038,12 @@ function piA({
|
|
|
28038
28038
|
className: s,
|
|
28039
28039
|
...a
|
|
28040
28040
|
}) {
|
|
28041
|
-
const [g, c] = MA(!1), l =
|
|
28041
|
+
const [g, c] = MA(!1), l = oe(
|
|
28042
28042
|
(C) => {
|
|
28043
28043
|
a.onFocus && a.onFocus(C), c(!0);
|
|
28044
28044
|
},
|
|
28045
28045
|
[a.onFocus]
|
|
28046
|
-
), Q =
|
|
28046
|
+
), Q = oe(
|
|
28047
28047
|
(C) => {
|
|
28048
28048
|
a.onBlur && a.onBlur(C), c(!1);
|
|
28049
28049
|
},
|
|
@@ -28352,7 +28352,7 @@ function miA({
|
|
|
28352
28352
|
className: r
|
|
28353
28353
|
}) {
|
|
28354
28354
|
const [i, s] = MA(null);
|
|
28355
|
-
return
|
|
28355
|
+
return LA(() => {
|
|
28356
28356
|
D9.includes(e) && f9(/* @__PURE__ */ Object.assign({ "../../assets/icons/external/github.svg": () => import("./github-kgjMtfE7.mjs"), "../../assets/icons/external/maven.svg": () => import("./maven-W_nkSDNW.mjs"), "../../assets/icons/external/npm.svg": () => import("./npm-BWTcVvFH.mjs"), "../../assets/icons/external/nuget.svg": () => import("./nuget-CV5HU1JR.mjs"), "../../assets/icons/external/packagist.svg": () => import("./packagist-D01fn9N_.mjs"), "../../assets/icons/external/pypi.svg": () => import("./pypi-DLh6kIJe.mjs"), "../../assets/icons/external/rubygems.svg": () => import("./rubygems-DeiNjcDV.mjs"), "../../assets/icons/external/terraform.svg": () => import("./terraform-C4aktQ0o.mjs") }), `../../assets/icons/external/${e}.svg`, 6).then(
|
|
28357
28357
|
(a) => s(a.default)
|
|
28358
28358
|
);
|
|
@@ -28588,15 +28588,15 @@ var nN = "SelectTrigger", oN = m.forwardRef(
|
|
|
28588
28588
|
"data-placeholder": vN(i.value) ? "" : void 0,
|
|
28589
28589
|
...o,
|
|
28590
28590
|
ref: a,
|
|
28591
|
-
onClick:
|
|
28591
|
+
onClick: bA(o.onClick, (C) => {
|
|
28592
28592
|
C.currentTarget.focus(), c.current !== "mouse" && E(C);
|
|
28593
28593
|
}),
|
|
28594
|
-
onPointerDown:
|
|
28594
|
+
onPointerDown: bA(o.onPointerDown, (C) => {
|
|
28595
28595
|
c.current = C.pointerType;
|
|
28596
28596
|
const h = C.target;
|
|
28597
28597
|
h.hasPointerCapture(C.pointerId) && h.releasePointerCapture(C.pointerId), C.button === 0 && C.ctrlKey === !1 && C.pointerType === "mouse" && (E(C), C.preventDefault());
|
|
28598
28598
|
}),
|
|
28599
|
-
onKeyDown:
|
|
28599
|
+
onKeyDown: bA(o.onKeyDown, (C) => {
|
|
28600
28600
|
const h = l.current !== "";
|
|
28601
28601
|
!(C.ctrlKey || C.altKey || C.metaKey) && C.key.length === 1 && Q(C.key), !(h && C.key === " ") && v9.includes(C.key) && (E(), C.preventDefault());
|
|
28602
28602
|
})
|
|
@@ -28631,9 +28631,9 @@ var R9 = "SelectIcon", sN = m.forwardRef(
|
|
|
28631
28631
|
sN.displayName = R9;
|
|
28632
28632
|
var L9 = "SelectPortal", aN = (A) => /* @__PURE__ */ u(rs, { asChild: !0, ...A });
|
|
28633
28633
|
aN.displayName = L9;
|
|
28634
|
-
var
|
|
28634
|
+
var Vr = "SelectContent", gN = m.forwardRef(
|
|
28635
28635
|
(A, e) => {
|
|
28636
|
-
const t = Qr(
|
|
28636
|
+
const t = Qr(Vr, A.__scopeSelect), [n, o] = m.useState();
|
|
28637
28637
|
if (Wt(() => {
|
|
28638
28638
|
o(new DocumentFragment());
|
|
28639
28639
|
}, []), !t.open) {
|
|
@@ -28646,8 +28646,8 @@ var Wr = "SelectContent", gN = m.forwardRef(
|
|
|
28646
28646
|
return /* @__PURE__ */ u(lN, { ...A, ref: e });
|
|
28647
28647
|
}
|
|
28648
28648
|
);
|
|
28649
|
-
gN.displayName =
|
|
28650
|
-
var Ln = 10, [cN, ur] = ls(
|
|
28649
|
+
gN.displayName = Vr;
|
|
28650
|
+
var Ln = 10, [cN, ur] = ls(Vr), P9 = "SelectContentImpl", lN = m.forwardRef(
|
|
28651
28651
|
(A, e) => {
|
|
28652
28652
|
const {
|
|
28653
28653
|
__scopeSelect: t,
|
|
@@ -28669,7 +28669,7 @@ var Ln = 10, [cN, ur] = ls(Wr), P9 = "SelectContentImpl", lN = m.forwardRef(
|
|
|
28669
28669
|
avoidCollisions: h,
|
|
28670
28670
|
//
|
|
28671
28671
|
...I
|
|
28672
|
-
} = A, f = Qr(
|
|
28672
|
+
} = A, f = Qr(Vr, t), [p, k] = m.useState(null), [v, D] = m.useState(null), x = me(e, (nA) => k(nA)), [N, Y] = m.useState(null), [L, R] = m.useState(
|
|
28673
28673
|
null
|
|
28674
28674
|
), U = gB(t), [O, K] = m.useState(!1), H = m.useRef(!1);
|
|
28675
28675
|
m.useEffect(() => {
|
|
@@ -28762,7 +28762,7 @@ var Ln = 10, [cN, ur] = ls(Wr), P9 = "SelectContentImpl", lN = m.forwardRef(
|
|
|
28762
28762
|
onMountAutoFocus: (nA) => {
|
|
28763
28763
|
nA.preventDefault();
|
|
28764
28764
|
},
|
|
28765
|
-
onUnmountAutoFocus:
|
|
28765
|
+
onUnmountAutoFocus: bA(o, (nA) => {
|
|
28766
28766
|
f.trigger?.focus({ preventScroll: !0 }), nA.preventDefault();
|
|
28767
28767
|
}),
|
|
28768
28768
|
children: /* @__PURE__ */ u(
|
|
@@ -28794,7 +28794,7 @@ var Ln = 10, [cN, ur] = ls(Wr), P9 = "SelectContentImpl", lN = m.forwardRef(
|
|
|
28794
28794
|
outline: "none",
|
|
28795
28795
|
...I.style
|
|
28796
28796
|
},
|
|
28797
|
-
onKeyDown:
|
|
28797
|
+
onKeyDown: bA(I.onKeyDown, (nA) => {
|
|
28798
28798
|
const AA = nA.ctrlKey || nA.altKey || nA.metaKey;
|
|
28799
28799
|
if (nA.key === "Tab" && nA.preventDefault(), !AA && nA.key.length === 1 && j(nA.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(nA.key)) {
|
|
28800
28800
|
let cA = U().filter((wA) => !wA.disabled).map((wA) => wA.ref.current);
|
|
@@ -28817,7 +28817,7 @@ var Ln = 10, [cN, ur] = ls(Wr), P9 = "SelectContentImpl", lN = m.forwardRef(
|
|
|
28817
28817
|
);
|
|
28818
28818
|
lN.displayName = P9;
|
|
28819
28819
|
var S9 = "SelectItemAlignedPosition", BN = m.forwardRef((A, e) => {
|
|
28820
|
-
const { __scopeSelect: t, onPlaced: n, ...o } = A, r = Qr(
|
|
28820
|
+
const { __scopeSelect: t, onPlaced: n, ...o } = A, r = Qr(Vr, t), i = ur(Vr, t), [s, a] = m.useState(null), [g, c] = m.useState(null), l = me(e, (x) => c(x)), Q = gB(t), B = m.useRef(!1), E = m.useRef(!0), { viewport: C, selectedItem: h, selectedItemText: I, focusSelectedItem: f } = i, p = m.useCallback(() => {
|
|
28821
28821
|
if (r.trigger && r.valueNode && s && g && C && h && I) {
|
|
28822
28822
|
const x = r.trigger.getBoundingClientRect(), N = g.getBoundingClientRect(), Y = r.valueNode.getBoundingClientRect(), L = I.getBoundingClientRect();
|
|
28823
28823
|
if (r.dir !== "rtl") {
|
|
@@ -28950,7 +28950,7 @@ var G9 = "SelectPopperPosition", sE = m.forwardRef((A, e) => {
|
|
|
28950
28950
|
);
|
|
28951
28951
|
});
|
|
28952
28952
|
sE.displayName = G9;
|
|
28953
|
-
var [H9, JI] = ls(
|
|
28953
|
+
var [H9, JI] = ls(Vr, {}), aE = "SelectViewport", QN = m.forwardRef(
|
|
28954
28954
|
(A, e) => {
|
|
28955
28955
|
const { __scopeSelect: t, nonce: n, ...o } = A, r = ur(aE, t), i = JI(aE, t), s = me(e, r.onViewportChange), a = m.useRef(0);
|
|
28956
28956
|
return /* @__PURE__ */ tA(Se, { children: [
|
|
@@ -28983,7 +28983,7 @@ var [H9, JI] = ls(Wr, {}), aE = "SelectViewport", QN = m.forwardRef(
|
|
|
28983
28983
|
overflow: "hidden auto",
|
|
28984
28984
|
...o.style
|
|
28985
28985
|
},
|
|
28986
|
-
onScroll:
|
|
28986
|
+
onScroll: bA(o.onScroll, (g) => {
|
|
28987
28987
|
const c = g.currentTarget, { contentWrapper: l, shouldExpandOnScrollRef: Q } = i;
|
|
28988
28988
|
if (Q?.current && l) {
|
|
28989
28989
|
const B = Math.abs(a.current - c.scrollTop);
|
|
@@ -29066,24 +29066,24 @@ var Zc = "SelectItem", [Y9, dN] = ls(Zc), hN = m.forwardRef(
|
|
|
29066
29066
|
tabIndex: o ? void 0 : -1,
|
|
29067
29067
|
...i,
|
|
29068
29068
|
ref: E,
|
|
29069
|
-
onFocus:
|
|
29070
|
-
onBlur:
|
|
29071
|
-
onClick:
|
|
29069
|
+
onFocus: bA(i.onFocus, () => B(!0)),
|
|
29070
|
+
onBlur: bA(i.onBlur, () => B(!1)),
|
|
29071
|
+
onClick: bA(i.onClick, () => {
|
|
29072
29072
|
h.current !== "mouse" && I();
|
|
29073
29073
|
}),
|
|
29074
|
-
onPointerUp:
|
|
29074
|
+
onPointerUp: bA(i.onPointerUp, () => {
|
|
29075
29075
|
h.current === "mouse" && I();
|
|
29076
29076
|
}),
|
|
29077
|
-
onPointerDown:
|
|
29077
|
+
onPointerDown: bA(i.onPointerDown, (f) => {
|
|
29078
29078
|
h.current = f.pointerType;
|
|
29079
29079
|
}),
|
|
29080
|
-
onPointerMove:
|
|
29080
|
+
onPointerMove: bA(i.onPointerMove, (f) => {
|
|
29081
29081
|
h.current = f.pointerType, o ? a.onItemLeave?.() : h.current === "mouse" && f.currentTarget.focus({ preventScroll: !0 });
|
|
29082
29082
|
}),
|
|
29083
|
-
onPointerLeave:
|
|
29083
|
+
onPointerLeave: bA(i.onPointerLeave, (f) => {
|
|
29084
29084
|
f.currentTarget === document.activeElement && a.onItemLeave?.();
|
|
29085
29085
|
}),
|
|
29086
|
-
onKeyDown:
|
|
29086
|
+
onKeyDown: bA(i.onKeyDown, (f) => {
|
|
29087
29087
|
a.searchRef?.current !== "" && f.key === " " || (k9.includes(f.key) && I(), f.key === " " && f.preventDefault());
|
|
29088
29088
|
})
|
|
29089
29089
|
}
|
|
@@ -29181,13 +29181,13 @@ var yN = m.forwardRef((A, e) => {
|
|
|
29181
29181
|
...o,
|
|
29182
29182
|
ref: e,
|
|
29183
29183
|
style: { flexShrink: 0, ...o.style },
|
|
29184
|
-
onPointerDown:
|
|
29184
|
+
onPointerDown: bA(o.onPointerDown, () => {
|
|
29185
29185
|
i.current === null && (i.current = window.setInterval(n, 50));
|
|
29186
29186
|
}),
|
|
29187
|
-
onPointerMove:
|
|
29187
|
+
onPointerMove: bA(o.onPointerMove, () => {
|
|
29188
29188
|
r.onItemLeave?.(), i.current === null && (i.current = window.setInterval(n, 50));
|
|
29189
29189
|
}),
|
|
29190
|
-
onPointerLeave:
|
|
29190
|
+
onPointerLeave: bA(o.onPointerLeave, () => {
|
|
29191
29191
|
a();
|
|
29192
29192
|
})
|
|
29193
29193
|
}
|
|
@@ -29364,12 +29364,12 @@ function NiA({
|
|
|
29364
29364
|
tooltips: o = !0,
|
|
29365
29365
|
className: r
|
|
29366
29366
|
}) {
|
|
29367
|
-
const [i, s] = MA(null), [a, g] = MA(null), [c, l] = MA(!1), [Q, B] = MA(!1), E =
|
|
29367
|
+
const [i, s] = MA(null), [a, g] = MA(null), [c, l] = MA(!1), [Q, B] = MA(!1), E = NA(!1), C = pl(), h = XE(
|
|
29368
29368
|
C,
|
|
29369
29369
|
t,
|
|
29370
29370
|
"medium"
|
|
29371
|
-
), I = 0.6, f = YC[h] * 4, p = f * I, k = A.slice(0, e), v = A.slice(e), D = Math.max(0, A.length - e), x =
|
|
29372
|
-
|
|
29371
|
+
), I = 0.6, f = YC[h] * 4, p = f * I, k = A.slice(0, e), v = A.slice(e), D = Math.max(0, A.length - e), x = NA(null), N = NA(null), [Y, L] = MA(0);
|
|
29372
|
+
LA(() => {
|
|
29373
29373
|
if (N.current) {
|
|
29374
29374
|
const X = () => {
|
|
29375
29375
|
N.current?.offsetWidth && L(N.current.offsetWidth);
|
|
@@ -29378,7 +29378,7 @@ function NiA({
|
|
|
29378
29378
|
const q = new ResizeObserver(X);
|
|
29379
29379
|
return q.observe(N.current), () => q.disconnect();
|
|
29380
29380
|
}
|
|
29381
|
-
}, [i, k]),
|
|
29381
|
+
}, [i, k]), LA(() => {
|
|
29382
29382
|
i !== null ? (l(!0), g(i)) : l(!1);
|
|
29383
29383
|
}, [i]);
|
|
29384
29384
|
const R = (X, q) => X * p + f / 2 - q / 2, U = () => {
|
|
@@ -29585,7 +29585,7 @@ var qI = "Switch", [nq, xiA] = co(qI), [oq, rq] = nq(qI), ON = m.forwardRef(
|
|
|
29585
29585
|
value: a,
|
|
29586
29586
|
...l,
|
|
29587
29587
|
ref: E,
|
|
29588
|
-
onClick:
|
|
29588
|
+
onClick: bA(A.onClick, (p) => {
|
|
29589
29589
|
f((k) => !k), h && (C.current = p.isPropagationStopped(), C.current || p.stopPropagation());
|
|
29590
29590
|
})
|
|
29591
29591
|
}
|
|
@@ -29758,8 +29758,11 @@ const biA = Object.assign(zN, {
|
|
|
29758
29758
|
hoverExpandsSidebar: !0,
|
|
29759
29759
|
_expandedByHover: !1,
|
|
29760
29760
|
_setExpandedByHover: () => {
|
|
29761
|
-
}
|
|
29762
|
-
|
|
29761
|
+
},
|
|
29762
|
+
lockSidebarInteraction: () => () => {
|
|
29763
|
+
},
|
|
29764
|
+
isSidebarInteractionLocked: !1
|
|
29765
|
+
}), Er = () => {
|
|
29763
29766
|
const A = te(XN);
|
|
29764
29767
|
if (!A)
|
|
29765
29768
|
throw new Error("useAppLayout must be used within an AppLayoutProvider");
|
|
@@ -29840,25 +29843,25 @@ function FiA({
|
|
|
29840
29843
|
);
|
|
29841
29844
|
}
|
|
29842
29845
|
function Qq() {
|
|
29843
|
-
const { keybinds: A, collapsed: e, setCollapsed: t } =
|
|
29846
|
+
const { keybinds: A, collapsed: e, setCollapsed: t } = Er(), n = oe(
|
|
29844
29847
|
(o) => {
|
|
29845
29848
|
(o.metaKey || o.ctrlKey) && o.key.toLowerCase() === A.toggle.key.toLowerCase() && (o.preventDefault(), t(!e));
|
|
29846
29849
|
},
|
|
29847
29850
|
[A, e, t]
|
|
29848
29851
|
);
|
|
29849
|
-
|
|
29852
|
+
LA(() => (document.addEventListener("keydown", n), () => {
|
|
29850
29853
|
document.removeEventListener("keydown", n);
|
|
29851
29854
|
}), [n]);
|
|
29852
29855
|
}
|
|
29853
29856
|
const uq = () => {
|
|
29854
29857
|
const [A, e] = MA(!1);
|
|
29855
|
-
return
|
|
29858
|
+
return LA(() => (e(!0), () => e(!1)), []), A;
|
|
29856
29859
|
}, WI = $e({});
|
|
29857
29860
|
function VI(A) {
|
|
29858
|
-
const e =
|
|
29861
|
+
const e = NA(null);
|
|
29859
29862
|
return e.current === null && (e.current = A()), e.current;
|
|
29860
29863
|
}
|
|
29861
|
-
const zI = typeof window < "u", _N = zI ? Zn :
|
|
29864
|
+
const zI = typeof window < "u", _N = zI ? Zn : LA, lB = /* @__PURE__ */ $e(null), jI = $e({
|
|
29862
29865
|
transformPagePoint: (A) => A,
|
|
29863
29866
|
isStatic: !1,
|
|
29864
29867
|
reducedMotion: "never"
|
|
@@ -29882,7 +29885,7 @@ class Eq extends m.Component {
|
|
|
29882
29885
|
}
|
|
29883
29886
|
}
|
|
29884
29887
|
function Cq({ children: A, isPresent: e, anchorX: t }) {
|
|
29885
|
-
const n =
|
|
29888
|
+
const n = Xr(), o = NA(null), r = NA({
|
|
29886
29889
|
width: 0,
|
|
29887
29890
|
height: 0,
|
|
29888
29891
|
top: 0,
|
|
@@ -29910,7 +29913,7 @@ function Cq({ children: A, isPresent: e, anchorX: t }) {
|
|
|
29910
29913
|
}, [e]), u(Eq, { isPresent: e, childRef: o, sizeRef: r, children: m.cloneElement(A, { ref: o }) });
|
|
29911
29914
|
}
|
|
29912
29915
|
const Iq = ({ children: A, initial: e, isPresent: t, onExitComplete: n, custom: o, presenceAffectsLayout: r, mode: i, anchorX: s }) => {
|
|
29913
|
-
const a = VI(dq), g =
|
|
29916
|
+
const a = VI(dq), g = Xr(), c = oe((Q) => {
|
|
29914
29917
|
a.set(Q, !0);
|
|
29915
29918
|
for (const B of a.values())
|
|
29916
29919
|
if (!B)
|
|
@@ -29945,12 +29948,12 @@ function ZN(A = !0) {
|
|
|
29945
29948
|
const e = te(lB);
|
|
29946
29949
|
if (e === null)
|
|
29947
29950
|
return [!0, null];
|
|
29948
|
-
const { isPresent: t, onExitComplete: n, register: o } = e, r =
|
|
29949
|
-
|
|
29951
|
+
const { isPresent: t, onExitComplete: n, register: o } = e, r = Xr();
|
|
29952
|
+
LA(() => {
|
|
29950
29953
|
if (A)
|
|
29951
29954
|
return o(r);
|
|
29952
29955
|
}, [A]);
|
|
29953
|
-
const i =
|
|
29956
|
+
const i = oe(() => A && n && n(r), [r, n, A]);
|
|
29954
29957
|
return !t && n ? [!1, i] : [!0];
|
|
29955
29958
|
}
|
|
29956
29959
|
const jg = (A) => A.key || "";
|
|
@@ -29961,7 +29964,7 @@ function GD(A) {
|
|
|
29961
29964
|
}), e;
|
|
29962
29965
|
}
|
|
29963
29966
|
const hq = ({ children: A, custom: e, initial: t = !0, onExitComplete: n, presenceAffectsLayout: o = !0, mode: r = "sync", propagate: i = !1, anchorX: s = "left" }) => {
|
|
29964
|
-
const [a, g] = ZN(i), c = HA(() => GD(A), [A]), l = i && !a ? [] : c.map(jg), Q =
|
|
29967
|
+
const [a, g] = ZN(i), c = HA(() => GD(A), [A]), l = i && !a ? [] : c.map(jg), Q = NA(!0), B = NA(c), E = VI(() => /* @__PURE__ */ new Map()), [C, h] = MA(c), [I, f] = MA(c);
|
|
29965
29968
|
_N(() => {
|
|
29966
29969
|
Q.current = !1, B.current = c;
|
|
29967
29970
|
for (let v = 0; v < I.length; v++) {
|
|
@@ -30224,7 +30227,7 @@ function yi(A) {
|
|
|
30224
30227
|
return A && typeof A == "object" && Object.prototype.hasOwnProperty.call(A, "current");
|
|
30225
30228
|
}
|
|
30226
30229
|
function bq(A, e, t) {
|
|
30227
|
-
return
|
|
30230
|
+
return oe(
|
|
30228
30231
|
(n) => {
|
|
30229
30232
|
n && A.onMount && A.onMount(n), e && (n ? e.mount(n) : e.unmount()), t && (typeof t == "function" ? t(n) : yi(t) && (t.current = n));
|
|
30230
30233
|
},
|
|
@@ -30238,7 +30241,7 @@ function bq(A, e, t) {
|
|
|
30238
30241
|
}
|
|
30239
30242
|
const { schedule: ZI, cancel: RiA } = /* @__PURE__ */ $N(queueMicrotask, !1), $I = (A) => A.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Fq = "framerAppearId", nx = "data-" + $I(Fq), ox = $e({});
|
|
30240
30243
|
function Rq(A, e, t, n, o) {
|
|
30241
|
-
const { visualElement: r } = te(QB), i = te(Ax), s = te(lB), a = te(jI).reducedMotion, g =
|
|
30244
|
+
const { visualElement: r } = te(QB), i = te(Ax), s = te(lB), a = te(jI).reducedMotion, g = NA(null);
|
|
30242
30245
|
n = n || i.renderer, !g.current && n && (g.current = n(A, {
|
|
30243
30246
|
visualState: e,
|
|
30244
30247
|
parent: r,
|
|
@@ -30249,14 +30252,14 @@ function Rq(A, e, t, n, o) {
|
|
|
30249
30252
|
}));
|
|
30250
30253
|
const c = g.current, l = te(ox);
|
|
30251
30254
|
c && !c.projection && o && (c.type === "html" || c.type === "svg") && Lq(g.current, t, o, l);
|
|
30252
|
-
const Q =
|
|
30255
|
+
const Q = NA(!1);
|
|
30253
30256
|
hl(() => {
|
|
30254
30257
|
c && Q.current && c.update(t, s);
|
|
30255
30258
|
});
|
|
30256
|
-
const B = t[nx], E =
|
|
30259
|
+
const B = t[nx], E = NA(!!B && !window.MotionHandoffIsComplete?.(B) && window.MotionHasOptimisedAnimation?.(B));
|
|
30257
30260
|
return _N(() => {
|
|
30258
30261
|
c && (Q.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), ZI.render(c.render), E.current && c.animationState && c.animationState.animateChanges());
|
|
30259
|
-
}),
|
|
30262
|
+
}), LA(() => {
|
|
30260
30263
|
c && (!E.current && c.animationState && c.animationState.animateChanges(), E.current && (queueMicrotask(() => {
|
|
30261
30264
|
window.MotionHandoffMarkAsComplete?.(B);
|
|
30262
30265
|
}), E.current = !1));
|
|
@@ -31256,7 +31259,7 @@ const NW = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
31256
31259
|
}, xW = (A) => bo(0, 255, A), xQ = {
|
|
31257
31260
|
...us,
|
|
31258
31261
|
transform: (A) => Math.round(xW(A))
|
|
31259
|
-
},
|
|
31262
|
+
}, Lr = {
|
|
31260
31263
|
test: /* @__PURE__ */ wd("rgb", "red"),
|
|
31261
31264
|
parse: /* @__PURE__ */ Fx("red", "green", "blue"),
|
|
31262
31265
|
transform: ({ red: A, green: e, blue: t, alpha: n = 1 }) => "rgba(" + xQ.transform(A) + ", " + xQ.transform(e) + ", " + xQ.transform(t) + ", " + Vs(ya.transform(n)) + ")"
|
|
@@ -31273,15 +31276,15 @@ function bW(A) {
|
|
|
31273
31276
|
const EE = {
|
|
31274
31277
|
test: /* @__PURE__ */ wd("#"),
|
|
31275
31278
|
parse: bW,
|
|
31276
|
-
transform:
|
|
31279
|
+
transform: Lr.transform
|
|
31277
31280
|
}, Mi = {
|
|
31278
31281
|
test: /* @__PURE__ */ wd("hsl", "hue"),
|
|
31279
31282
|
parse: /* @__PURE__ */ Fx("hue", "saturation", "lightness"),
|
|
31280
31283
|
transform: ({ hue: A, saturation: e, lightness: t, alpha: n = 1 }) => "hsla(" + Math.round(A) + ", " + oo.transform(Vs(e)) + ", " + oo.transform(Vs(t)) + ", " + Vs(ya.transform(n)) + ")"
|
|
31281
31284
|
}, bt = {
|
|
31282
|
-
test: (A) =>
|
|
31283
|
-
parse: (A) =>
|
|
31284
|
-
transform: (A) => typeof A == "string" ? A : A.hasOwnProperty("red") ?
|
|
31285
|
+
test: (A) => Lr.test(A) || EE.test(A) || Mi.test(A),
|
|
31286
|
+
parse: (A) => Lr.test(A) ? Lr.parse(A) : Mi.test(A) ? Mi.parse(A) : EE.parse(A),
|
|
31287
|
+
transform: (A) => typeof A == "string" ? A : A.hasOwnProperty("red") ? Lr.transform(A) : Mi.transform(A)
|
|
31285
31288
|
}, FW = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
31286
31289
|
function RW(A) {
|
|
31287
31290
|
return isNaN(A) && typeof A == "string" && (A.match(hd)?.length || 0) + (A.match(FW)?.length || 0) > 0;
|
|
@@ -31372,8 +31375,8 @@ function JW(A, e, t) {
|
|
|
31372
31375
|
for (const r of e)
|
|
31373
31376
|
A[r] = Hx(t, o);
|
|
31374
31377
|
}
|
|
31375
|
-
const
|
|
31376
|
-
const e =
|
|
31378
|
+
const Pr = (A) => A * 180 / Math.PI, IE = (A) => {
|
|
31379
|
+
const e = Pr(Math.atan2(A[1], A[0]));
|
|
31377
31380
|
return dE(e);
|
|
31378
31381
|
}, qW = {
|
|
31379
31382
|
x: 4,
|
|
@@ -31385,8 +31388,8 @@ const Lr = (A) => A * 180 / Math.PI, IE = (A) => {
|
|
|
31385
31388
|
scale: (A) => (Math.abs(A[0]) + Math.abs(A[3])) / 2,
|
|
31386
31389
|
rotate: IE,
|
|
31387
31390
|
rotateZ: IE,
|
|
31388
|
-
skewX: (A) =>
|
|
31389
|
-
skewY: (A) =>
|
|
31391
|
+
skewX: (A) => Pr(Math.atan(A[1])),
|
|
31392
|
+
skewY: (A) => Pr(Math.atan(A[2])),
|
|
31390
31393
|
skew: (A) => (Math.abs(A[1]) + Math.abs(A[2])) / 2
|
|
31391
31394
|
}, dE = (A) => (A = A % 360, A < 0 && (A += 360), A), XD = IE, _D = (A) => Math.sqrt(A[0] * A[0] + A[1] * A[1]), ZD = (A) => Math.sqrt(A[4] * A[4] + A[5] * A[5]), WW = {
|
|
31392
31395
|
x: 12,
|
|
@@ -31398,12 +31401,12 @@ const Lr = (A) => A * 180 / Math.PI, IE = (A) => {
|
|
|
31398
31401
|
scaleX: _D,
|
|
31399
31402
|
scaleY: ZD,
|
|
31400
31403
|
scale: (A) => (_D(A) + ZD(A)) / 2,
|
|
31401
|
-
rotateX: (A) => dE(
|
|
31402
|
-
rotateY: (A) => dE(
|
|
31404
|
+
rotateX: (A) => dE(Pr(Math.atan2(A[6], A[5]))),
|
|
31405
|
+
rotateY: (A) => dE(Pr(Math.atan2(-A[2], A[0]))),
|
|
31403
31406
|
rotateZ: XD,
|
|
31404
31407
|
rotate: XD,
|
|
31405
|
-
skewX: (A) =>
|
|
31406
|
-
skewY: (A) =>
|
|
31408
|
+
skewX: (A) => Pr(Math.atan(A[4])),
|
|
31409
|
+
skewY: (A) => Pr(Math.atan(A[1])),
|
|
31407
31410
|
skew: (A) => (Math.abs(A[1]) + Math.abs(A[4])) / 2
|
|
31408
31411
|
};
|
|
31409
31412
|
function $D(A) {
|
|
@@ -31454,11 +31457,11 @@ const ji = {
|
|
|
31454
31457
|
};
|
|
31455
31458
|
ji.translateX = ji.x;
|
|
31456
31459
|
ji.translateY = ji.y;
|
|
31457
|
-
const
|
|
31460
|
+
const Kr = /* @__PURE__ */ new Set();
|
|
31458
31461
|
let wE = !1, fE = !1;
|
|
31459
31462
|
function Ux() {
|
|
31460
31463
|
if (fE) {
|
|
31461
|
-
const A = Array.from(
|
|
31464
|
+
const A = Array.from(Kr).filter((n) => n.needsMeasurement), e = new Set(A.map((n) => n.element)), t = /* @__PURE__ */ new Map();
|
|
31462
31465
|
e.forEach((n) => {
|
|
31463
31466
|
const o = _W(n);
|
|
31464
31467
|
o.length && (t.set(n, o), n.render());
|
|
@@ -31472,10 +31475,10 @@ function Ux() {
|
|
|
31472
31475
|
n.suspendedScrollY !== void 0 && window.scrollTo(0, n.suspendedScrollY);
|
|
31473
31476
|
});
|
|
31474
31477
|
}
|
|
31475
|
-
fE = !1, wE = !1,
|
|
31478
|
+
fE = !1, wE = !1, Kr.forEach((A) => A.complete()), Kr.clear();
|
|
31476
31479
|
}
|
|
31477
31480
|
function Kx() {
|
|
31478
|
-
|
|
31481
|
+
Kr.forEach((A) => {
|
|
31479
31482
|
A.readKeyframes(), A.needsMeasurement && (fE = !0);
|
|
31480
31483
|
});
|
|
31481
31484
|
}
|
|
@@ -31487,7 +31490,7 @@ class fd {
|
|
|
31487
31490
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = o, this.element = r, this.isAsync = i;
|
|
31488
31491
|
}
|
|
31489
31492
|
scheduleResolve() {
|
|
31490
|
-
this.isScheduled = !0, this.isAsync ? (
|
|
31493
|
+
this.isScheduled = !0, this.isAsync ? (Kr.add(this), wE || (wE = !0, Ke.read(Kx), Ke.resolveKeyframes(Ux))) : (this.readKeyframes(), this.complete());
|
|
31491
31494
|
}
|
|
31492
31495
|
readKeyframes() {
|
|
31493
31496
|
const { unresolvedKeyframes: e, name: t, element: n, motionValue: o } = this;
|
|
@@ -31514,10 +31517,10 @@ class fd {
|
|
|
31514
31517
|
measureEndState() {
|
|
31515
31518
|
}
|
|
31516
31519
|
complete() {
|
|
31517
|
-
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe),
|
|
31520
|
+
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), Kr.delete(this);
|
|
31518
31521
|
}
|
|
31519
31522
|
cancel() {
|
|
31520
|
-
this.isComplete || (this.isScheduled = !1,
|
|
31523
|
+
this.isComplete || (this.isScheduled = !1, Kr.delete(this));
|
|
31521
31524
|
}
|
|
31522
31525
|
resume() {
|
|
31523
31526
|
this.isComplete || this.scheduleResolve();
|
|
@@ -31740,7 +31743,7 @@ function tl(A, e) {
|
|
|
31740
31743
|
const FQ = (A, e, t) => {
|
|
31741
31744
|
const n = A * A, o = t * (e * e - n) + n;
|
|
31742
31745
|
return o < 0 ? 0 : Math.sqrt(o);
|
|
31743
|
-
}, aV = [EE,
|
|
31746
|
+
}, aV = [EE, Lr, Mi], gV = (A) => aV.find((e) => e.test(A));
|
|
31744
31747
|
function np(A) {
|
|
31745
31748
|
const e = gV(A);
|
|
31746
31749
|
if (Bs(!!e, `'${A}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
@@ -31753,7 +31756,7 @@ const op = (A, e) => {
|
|
|
31753
31756
|
if (!t || !n)
|
|
31754
31757
|
return tl(A, e);
|
|
31755
31758
|
const o = { ...t };
|
|
31756
|
-
return (r) => (o.red = FQ(t.red, n.red, r), o.green = FQ(t.green, n.green, r), o.blue = FQ(t.blue, n.blue, r), o.alpha = _e(t.alpha, n.alpha, r),
|
|
31759
|
+
return (r) => (o.red = FQ(t.red, n.red, r), o.green = FQ(t.green, n.green, r), o.blue = FQ(t.blue, n.blue, r), o.alpha = _e(t.alpha, n.alpha, r), Lr.transform(o));
|
|
31757
31760
|
}, cV = (A, e) => (t) => e(A(t)), sg = (...A) => A.reduce(cV), DE = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
31758
31761
|
function lV(A, e) {
|
|
31759
31762
|
return DE.has(A) ? (t) => t <= 0 ? A : e : (t) => t >= 1 ? e : A;
|
|
@@ -32679,7 +32682,7 @@ function tz(A) {
|
|
|
32679
32682
|
function nz(A, e) {
|
|
32680
32683
|
return typeof e == "string" ? e !== A : Array.isArray(e) ? !$x(e, A) : !1;
|
|
32681
32684
|
}
|
|
32682
|
-
function
|
|
32685
|
+
function mr(A = !1) {
|
|
32683
32686
|
return {
|
|
32684
32687
|
isActive: A,
|
|
32685
32688
|
protectedKeys: {},
|
|
@@ -32689,23 +32692,23 @@ function pr(A = !1) {
|
|
|
32689
32692
|
}
|
|
32690
32693
|
function cp() {
|
|
32691
32694
|
return {
|
|
32692
|
-
animate:
|
|
32693
|
-
whileInView:
|
|
32694
|
-
whileHover:
|
|
32695
|
-
whileTap:
|
|
32696
|
-
whileDrag:
|
|
32697
|
-
whileFocus:
|
|
32698
|
-
exit:
|
|
32695
|
+
animate: mr(!0),
|
|
32696
|
+
whileInView: mr(),
|
|
32697
|
+
whileHover: mr(),
|
|
32698
|
+
whileTap: mr(),
|
|
32699
|
+
whileDrag: mr(),
|
|
32700
|
+
whileFocus: mr(),
|
|
32701
|
+
exit: mr()
|
|
32699
32702
|
};
|
|
32700
32703
|
}
|
|
32701
|
-
class
|
|
32704
|
+
class Cr {
|
|
32702
32705
|
constructor(e) {
|
|
32703
32706
|
this.isMounted = !1, this.node = e;
|
|
32704
32707
|
}
|
|
32705
32708
|
update() {
|
|
32706
32709
|
}
|
|
32707
32710
|
}
|
|
32708
|
-
class oz extends
|
|
32711
|
+
class oz extends Cr {
|
|
32709
32712
|
/**
|
|
32710
32713
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
32711
32714
|
* to the underlying animation library. We only want to load that if we load this,
|
|
@@ -32733,7 +32736,7 @@ class oz extends Er {
|
|
|
32733
32736
|
}
|
|
32734
32737
|
}
|
|
32735
32738
|
let rz = 0;
|
|
32736
|
-
class iz extends
|
|
32739
|
+
class iz extends Cr {
|
|
32737
32740
|
constructor() {
|
|
32738
32741
|
super(...arguments), this.id = rz++;
|
|
32739
32742
|
}
|
|
@@ -32858,7 +32861,7 @@ function LQ(A) {
|
|
|
32858
32861
|
function yE({ scale: A, scaleX: e, scaleY: t }) {
|
|
32859
32862
|
return !LQ(A) || !LQ(e) || !LQ(t);
|
|
32860
32863
|
}
|
|
32861
|
-
function
|
|
32864
|
+
function xr(A) {
|
|
32862
32865
|
return yE(A) || rb(A) || A.z || A.rotate || A.rotateX || A.rotateY || A.skewX || A.skewY;
|
|
32863
32866
|
}
|
|
32864
32867
|
function rb(A) {
|
|
@@ -32893,7 +32896,7 @@ function dz(A, e, t, n = !1) {
|
|
|
32893
32896
|
a && a.props.style && a.props.style.display === "contents" || (n && r.options.layoutScroll && r.scroll && r !== r.root && Ni(A, {
|
|
32894
32897
|
x: -r.scroll.offset.x,
|
|
32895
32898
|
y: -r.scroll.offset.y
|
|
32896
|
-
}), i && (e.x *= i.x.scale, e.y *= i.y.scale, ib(A, i)), n &&
|
|
32899
|
+
}), i && (e.x *= i.x.scale, e.y *= i.y.scale, ib(A, i)), n && xr(r.latestValues) && Ni(A, r.latestValues));
|
|
32897
32900
|
}
|
|
32898
32901
|
e.x < hp && e.x > dp && (e.x = 1), e.y < hp && e.y > dp && (e.y = 1);
|
|
32899
32902
|
}
|
|
@@ -33268,7 +33271,7 @@ function bz(A, e = 10) {
|
|
|
33268
33271
|
let t = null;
|
|
33269
33272
|
return Math.abs(A.y) > e ? t = "y" : Math.abs(A.x) > e && (t = "x"), t;
|
|
33270
33273
|
}
|
|
33271
|
-
class Fz extends
|
|
33274
|
+
class Fz extends Cr {
|
|
33272
33275
|
constructor(e) {
|
|
33273
33276
|
super(e), this.removeGroupControls = kn, this.removeListeners = kn, this.controls = new xz(e);
|
|
33274
33277
|
}
|
|
@@ -33283,7 +33286,7 @@ class Fz extends Er {
|
|
|
33283
33286
|
const vp = (A) => (e, t) => {
|
|
33284
33287
|
A && Ke.postRender(() => A(e, t));
|
|
33285
33288
|
};
|
|
33286
|
-
class Rz extends
|
|
33289
|
+
class Rz extends Cr {
|
|
33287
33290
|
constructor() {
|
|
33288
33291
|
super(...arguments), this.removePointerDownListener = kn;
|
|
33289
33292
|
}
|
|
@@ -33755,7 +33758,7 @@ function Ib({ attachResizeListener: A, defaultParent: e, measureScroll: t, check
|
|
|
33755
33758
|
if (!o)
|
|
33756
33759
|
return;
|
|
33757
33760
|
const i = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, s = this.projectionDelta && !ub(this.projectionDelta), a = this.getTransformTemplate(), g = a ? a(this.latestValues, "") : void 0, c = g !== this.prevTransformTemplateValue;
|
|
33758
|
-
i && (s ||
|
|
33761
|
+
i && (s || xr(this.latestValues) || c) && (o(this.instance, g), this.shouldResetTransform = !1, this.scheduleRender());
|
|
33759
33762
|
}
|
|
33760
33763
|
measure(i = !0) {
|
|
33761
33764
|
const s = this.measurePageBox();
|
|
@@ -33797,22 +33800,22 @@ function Ib({ attachResizeListener: A, defaultParent: e, measureScroll: t, check
|
|
|
33797
33800
|
!s && c.options.layoutScroll && c.scroll && c !== c.root && Ni(a, {
|
|
33798
33801
|
x: -c.scroll.offset.x,
|
|
33799
33802
|
y: -c.scroll.offset.y
|
|
33800
|
-
}),
|
|
33803
|
+
}), xr(c.latestValues) && Ni(a, c.latestValues);
|
|
33801
33804
|
}
|
|
33802
|
-
return
|
|
33805
|
+
return xr(this.latestValues) && Ni(a, this.latestValues), a;
|
|
33803
33806
|
}
|
|
33804
33807
|
removeTransform(i) {
|
|
33805
33808
|
const s = ot();
|
|
33806
33809
|
dn(s, i);
|
|
33807
33810
|
for (let a = 0; a < this.path.length; a++) {
|
|
33808
33811
|
const g = this.path[a];
|
|
33809
|
-
if (!g.instance || !
|
|
33812
|
+
if (!g.instance || !xr(g.latestValues))
|
|
33810
33813
|
continue;
|
|
33811
33814
|
yE(g.latestValues) && g.updateSnapshot();
|
|
33812
33815
|
const c = ot(), l = g.measurePageBox();
|
|
33813
33816
|
dn(c, l), Sp(s, g.latestValues, g.snapshot ? g.snapshot.layoutBox : void 0, c);
|
|
33814
33817
|
}
|
|
33815
|
-
return
|
|
33818
|
+
return xr(this.latestValues) && Sp(s, this.latestValues), s;
|
|
33816
33819
|
}
|
|
33817
33820
|
setTargetDelta(i) {
|
|
33818
33821
|
this.targetDelta = i, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -34001,7 +34004,7 @@ function Ib({ attachResizeListener: A, defaultParent: e, measureScroll: t, check
|
|
|
34001
34004
|
const g = this.getLead();
|
|
34002
34005
|
if (!this.projectionDelta || !this.layout || !g.target) {
|
|
34003
34006
|
const B = {};
|
|
34004
|
-
return this.options.layoutId && (B.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, B.pointerEvents = wc(i?.pointerEvents) || ""), this.hasProjected && !
|
|
34007
|
+
return this.options.layoutId && (B.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, B.pointerEvents = wc(i?.pointerEvents) || ""), this.hasProjected && !xr(this.latestValues) && (B.transform = a ? a({}, "") : "none", this.hasProjected = !1), B;
|
|
34005
34008
|
}
|
|
34006
34009
|
const c = g.animationValues || g.latestValues;
|
|
34007
34010
|
this.applyTransformsToTarget(), s.transform = _z(this.projectionDeltaWithTransform, this.treeScale, c), a && (s.transform = a(c, s.transform));
|
|
@@ -34214,7 +34217,7 @@ function _p(A, e, t) {
|
|
|
34214
34217
|
const o = "onHover" + t, r = n[o];
|
|
34215
34218
|
r && Ke.postRender(() => r(e, ag(e)));
|
|
34216
34219
|
}
|
|
34217
|
-
class wj extends
|
|
34220
|
+
class wj extends Cr {
|
|
34218
34221
|
mount() {
|
|
34219
34222
|
const { current: e } = this.node;
|
|
34220
34223
|
e && (this.unmount = hj(e, (t, n) => (_p(this.node, n, "Start"), (o) => _p(this.node, o, "End"))));
|
|
@@ -34222,7 +34225,7 @@ class wj extends Er {
|
|
|
34222
34225
|
unmount() {
|
|
34223
34226
|
}
|
|
34224
34227
|
}
|
|
34225
|
-
class fj extends
|
|
34228
|
+
class fj extends Cr {
|
|
34226
34229
|
constructor() {
|
|
34227
34230
|
super(...arguments), this.isActive = !1;
|
|
34228
34231
|
}
|
|
@@ -34308,7 +34311,7 @@ function Am(A, e, t) {
|
|
|
34308
34311
|
const o = "onTap" + (t === "End" ? "" : t), r = n[o];
|
|
34309
34312
|
r && Ke.postRender(() => r(e, ag(e)));
|
|
34310
34313
|
}
|
|
34311
|
-
class Mj extends
|
|
34314
|
+
class Mj extends Cr {
|
|
34312
34315
|
mount() {
|
|
34313
34316
|
const { current: e } = this.node;
|
|
34314
34317
|
e && (this.unmount = yj(e, (t, n) => (Am(this.node, n, "Start"), (o, { success: r }) => Am(this.node, o, r ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
@@ -34338,7 +34341,7 @@ const bj = {
|
|
|
34338
34341
|
some: 0,
|
|
34339
34342
|
all: 1
|
|
34340
34343
|
};
|
|
34341
|
-
class Fj extends
|
|
34344
|
+
class Fj extends Cr {
|
|
34342
34345
|
constructor() {
|
|
34343
34346
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
34344
34347
|
}
|
|
@@ -34717,7 +34720,7 @@ function Vj({
|
|
|
34717
34720
|
onThemeSwitch: e,
|
|
34718
34721
|
orientation: t = "horizontal"
|
|
34719
34722
|
}) {
|
|
34720
|
-
const n = uq(), { theme: o, setTheme: r } = $E(), i =
|
|
34723
|
+
const n = uq(), { theme: o, setTheme: r } = $E(), i = Xr(), s = HA(() => 100 * $g.findIndex((Q) => Q.key === o), [o]), a = t === "vertical", g = 2.125, c = a ? {
|
|
34721
34724
|
width: `${g}rem`,
|
|
34722
34725
|
height: `calc(${g}rem * ${$g.length} + 2px)`
|
|
34723
34726
|
} : {
|
|
@@ -34798,7 +34801,7 @@ function Vj({
|
|
|
34798
34801
|
] }) : /* @__PURE__ */ u("div", { style: c });
|
|
34799
34802
|
}
|
|
34800
34803
|
const mb = ({ children: A, className: e }) => {
|
|
34801
|
-
const { collapsed: t } =
|
|
34804
|
+
const { collapsed: t } = Er(), n = it.toArray(A).reduce(
|
|
34802
34805
|
(a, g) => {
|
|
34803
34806
|
if (!Ze(g)) return a;
|
|
34804
34807
|
switch (g.type.displayName) {
|
|
@@ -34880,38 +34883,45 @@ const Mb = ({
|
|
|
34880
34883
|
setCollapsed: r,
|
|
34881
34884
|
hoverExpandsSidebar: i,
|
|
34882
34885
|
_expandedByHover: s,
|
|
34883
|
-
_setExpandedByHover: a
|
|
34884
|
-
|
|
34885
|
-
|
|
34886
|
-
|
|
34887
|
-
|
|
34888
|
-
|
|
34889
|
-
|
|
34890
|
-
|
|
34891
|
-
|
|
34886
|
+
_setExpandedByHover: a,
|
|
34887
|
+
isSidebarInteractionLocked: g
|
|
34888
|
+
} = Er(), [c, l] = K4(it.toArray(A), (C) => Ze(C) ? C.type.displayName === "AppLayout.Nav" : !1), Q = NA(null), B = NA(null), E = NA(s);
|
|
34889
|
+
return LA(() => {
|
|
34890
|
+
E.current = s;
|
|
34891
|
+
}, [s]), LA(() => {
|
|
34892
|
+
const C = Q.current;
|
|
34893
|
+
if (!C || !i) return;
|
|
34894
|
+
const h = (f) => {
|
|
34895
|
+
const p = C.querySelector(
|
|
34892
34896
|
"[data-theme-switcher]"
|
|
34893
34897
|
);
|
|
34894
|
-
let
|
|
34895
|
-
if (
|
|
34896
|
-
const
|
|
34897
|
-
|
|
34898
|
+
let k = !1;
|
|
34899
|
+
if (p) {
|
|
34900
|
+
const v = p.getBoundingClientRect(), D = 4;
|
|
34901
|
+
k = f.clientX >= v.left - D && f.clientX <= v.right + D && f.clientY >= v.top - D && f.clientY <= v.bottom + D;
|
|
34898
34902
|
}
|
|
34899
|
-
|
|
34900
|
-
r(!1), a(!0),
|
|
34903
|
+
k || o && (B.current && clearTimeout(B.current), B.current = setTimeout(() => {
|
|
34904
|
+
r(!1), a(!0), B.current = null;
|
|
34901
34905
|
}, n));
|
|
34902
|
-
},
|
|
34903
|
-
|
|
34906
|
+
}, I = () => {
|
|
34907
|
+
B.current && (clearTimeout(B.current), B.current = null), !g && E.current && (r(!0), a(!1));
|
|
34904
34908
|
};
|
|
34905
|
-
return
|
|
34906
|
-
|
|
34909
|
+
return C.addEventListener("mouseenter", h), C.addEventListener("mouseleave", I), () => {
|
|
34910
|
+
B.current && (clearTimeout(B.current), B.current = null), C.removeEventListener("mouseenter", h), C.removeEventListener("mouseleave", I);
|
|
34907
34911
|
};
|
|
34908
|
-
}, [
|
|
34912
|
+
}, [
|
|
34913
|
+
i,
|
|
34914
|
+
o,
|
|
34915
|
+
r,
|
|
34916
|
+
a,
|
|
34917
|
+
g
|
|
34918
|
+
]), /* @__PURE__ */ tA(
|
|
34909
34919
|
zA.div,
|
|
34910
34920
|
{
|
|
34911
34921
|
initial: !1,
|
|
34912
34922
|
layout: "position",
|
|
34913
34923
|
className: $("mt-4 flex w-fit flex-col items-start", e),
|
|
34914
|
-
ref:
|
|
34924
|
+
ref: Q,
|
|
34915
34925
|
transition: { duration: 0.25, type: "spring", bounce: 0 },
|
|
34916
34926
|
children: [
|
|
34917
34927
|
/* @__PURE__ */ tA("div", { className: "flex flex-col gap-4 px-2", children: [
|
|
@@ -34923,16 +34933,16 @@ const Mb = ({
|
|
|
34923
34933
|
onClick: t
|
|
34924
34934
|
}
|
|
34925
34935
|
),
|
|
34926
|
-
|
|
34936
|
+
c
|
|
34927
34937
|
] }),
|
|
34928
|
-
|
|
34938
|
+
l
|
|
34929
34939
|
]
|
|
34930
34940
|
}
|
|
34931
34941
|
);
|
|
34932
34942
|
};
|
|
34933
34943
|
Mb.displayName = "AppLayout.Sidebar";
|
|
34934
34944
|
const vb = ({ className: A }) => {
|
|
34935
|
-
const { collapsed: e } =
|
|
34945
|
+
const { collapsed: e } = Er();
|
|
34936
34946
|
return /* @__PURE__ */ u(zA.div, { "data-theme-switcher": !0, className: $("mt-auto mb-6", A), children: /* @__PURE__ */ u(Vj, { orientation: e ? "vertical" : "horizontal" }) });
|
|
34937
34947
|
};
|
|
34938
34948
|
vb.displayName = "AppLayout.ThemeSwitcher";
|
|
@@ -34992,7 +35002,7 @@ xb.displayName = "AppLayout.HeaderDivider";
|
|
|
34992
35002
|
const bb = ({
|
|
34993
35003
|
className: A
|
|
34994
35004
|
}) => {
|
|
34995
|
-
const { collapsed: e, setCollapsed: t, keybinds: n, _setExpandedByHover: o } =
|
|
35005
|
+
const { collapsed: e, setCollapsed: t, keybinds: n, _setExpandedByHover: o } = Er();
|
|
34996
35006
|
return Qq(), /* @__PURE__ */ u("div", { className: $("flex items-center gap-2", A), children: /* @__PURE__ */ u(oB, { children: /* @__PURE__ */ tA(rB, { delayDuration: 800, disableHoverableContent: !0, children: [
|
|
34997
35007
|
/* @__PURE__ */ u(iB, { asChild: !0, children: /* @__PURE__ */ u(
|
|
34998
35008
|
"button",
|
|
@@ -35051,7 +35061,7 @@ const Pb = CA.forwardRef(
|
|
|
35051
35061
|
children: s,
|
|
35052
35062
|
...a
|
|
35053
35063
|
}, g) => {
|
|
35054
|
-
const { collapsed: c } =
|
|
35064
|
+
const { collapsed: c } = Er();
|
|
35055
35065
|
if (n)
|
|
35056
35066
|
return n({ title: e, icon: t, active: r });
|
|
35057
35067
|
const l = A ? Nn : "a", Q = /* @__PURE__ */ u(_A, { name: t, className: "size-6", strokeWidth: 1.3 }), B = c ? null : /* @__PURE__ */ u(
|
|
@@ -35110,7 +35120,7 @@ const Sb = ({
|
|
|
35110
35120
|
name: t,
|
|
35111
35121
|
...n
|
|
35112
35122
|
}) => {
|
|
35113
|
-
const { collapsed: o } =
|
|
35123
|
+
const { collapsed: o } = Er();
|
|
35114
35124
|
return /* @__PURE__ */ tA("div", { className: $("mb-4 flex flex-col", e), ...n, children: [
|
|
35115
35125
|
!o && /* @__PURE__ */ u("div", { className: "text-codeline-sm uppercase", children: t }),
|
|
35116
35126
|
A
|
|
@@ -35141,10 +35151,17 @@ const jj = {
|
|
|
35141
35151
|
keybinds: t,
|
|
35142
35152
|
hoverExpandsSidebar: n = !0
|
|
35143
35153
|
}) => {
|
|
35144
|
-
const o = t ?? jj, [r, i] = MA(e), [s, a] = MA(!1);
|
|
35145
|
-
|
|
35154
|
+
const o = t ?? jj, [r, i] = MA(e), [s, a] = MA(!1), g = NA(/* @__PURE__ */ new Set()), [c, l] = MA(!1);
|
|
35155
|
+
LA(() => {
|
|
35146
35156
|
i(e), a(!1);
|
|
35147
|
-
}, [e])
|
|
35157
|
+
}, [e]);
|
|
35158
|
+
const Q = oe(() => {
|
|
35159
|
+
const B = Symbol("sidebar-interaction-lock");
|
|
35160
|
+
return g.current.add(B), l(!0), () => {
|
|
35161
|
+
g.current.delete(B), l(g.current.size > 0);
|
|
35162
|
+
};
|
|
35163
|
+
}, []);
|
|
35164
|
+
return /* @__PURE__ */ u(
|
|
35148
35165
|
XN.Provider,
|
|
35149
35166
|
{
|
|
35150
35167
|
value: {
|
|
@@ -35153,12 +35170,21 @@ const jj = {
|
|
|
35153
35170
|
keybinds: o,
|
|
35154
35171
|
hoverExpandsSidebar: n,
|
|
35155
35172
|
_expandedByHover: s,
|
|
35156
|
-
_setExpandedByHover: a
|
|
35173
|
+
_setExpandedByHover: a,
|
|
35174
|
+
lockSidebarInteraction: Q,
|
|
35175
|
+
isSidebarInteractionLocked: c
|
|
35157
35176
|
},
|
|
35158
35177
|
children: A
|
|
35159
35178
|
}
|
|
35160
35179
|
);
|
|
35161
|
-
}
|
|
35180
|
+
};
|
|
35181
|
+
function SiA(A) {
|
|
35182
|
+
const { lockSidebarInteraction: e } = Er(), t = NA(null);
|
|
35183
|
+
LA(() => (A ? t.current = e() : t.current && (t.current(), t.current = null), () => {
|
|
35184
|
+
t.current && (t.current(), t.current = null);
|
|
35185
|
+
}), [A, e]);
|
|
35186
|
+
}
|
|
35187
|
+
const IB = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
35162
35188
|
function Es(A) {
|
|
35163
35189
|
const e = Object.prototype.toString.call(A);
|
|
35164
35190
|
return e === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
@@ -35186,34 +35212,34 @@ function Gb(A) {
|
|
|
35186
35212
|
function Cs(A) {
|
|
35187
35213
|
return A ? Es(A) ? A.document : vd(A) ? kd(A) ? A : gg(A) || Gb(A) ? A.ownerDocument : document : document : document;
|
|
35188
35214
|
}
|
|
35189
|
-
const Fo = IB ? Zn :
|
|
35215
|
+
const Fo = IB ? Zn : LA;
|
|
35190
35216
|
function dB(A) {
|
|
35191
|
-
const e =
|
|
35217
|
+
const e = NA(A);
|
|
35192
35218
|
return Fo(() => {
|
|
35193
35219
|
e.current = A;
|
|
35194
|
-
}),
|
|
35220
|
+
}), oe(function() {
|
|
35195
35221
|
for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
|
|
35196
35222
|
n[o] = arguments[o];
|
|
35197
35223
|
return e.current == null ? void 0 : e.current(...n);
|
|
35198
35224
|
}, []);
|
|
35199
35225
|
}
|
|
35200
35226
|
function Xj() {
|
|
35201
|
-
const A =
|
|
35227
|
+
const A = NA(null), e = oe((n, o) => {
|
|
35202
35228
|
A.current = setInterval(n, o);
|
|
35203
|
-
}, []), t =
|
|
35229
|
+
}, []), t = oe(() => {
|
|
35204
35230
|
A.current !== null && (clearInterval(A.current), A.current = null);
|
|
35205
35231
|
}, []);
|
|
35206
35232
|
return [e, t];
|
|
35207
35233
|
}
|
|
35208
35234
|
function Ra(A, e) {
|
|
35209
35235
|
e === void 0 && (e = [A]);
|
|
35210
|
-
const t =
|
|
35236
|
+
const t = NA(A);
|
|
35211
35237
|
return Fo(() => {
|
|
35212
35238
|
t.current !== A && (t.current = A);
|
|
35213
35239
|
}, e), t;
|
|
35214
35240
|
}
|
|
35215
35241
|
function cg(A, e) {
|
|
35216
|
-
const t =
|
|
35242
|
+
const t = NA();
|
|
35217
35243
|
return HA(
|
|
35218
35244
|
() => {
|
|
35219
35245
|
const n = A(t.current);
|
|
@@ -35224,7 +35250,7 @@ function cg(A, e) {
|
|
|
35224
35250
|
);
|
|
35225
35251
|
}
|
|
35226
35252
|
function il(A) {
|
|
35227
|
-
const e = dB(A), t =
|
|
35253
|
+
const e = dB(A), t = NA(null), n = oe(
|
|
35228
35254
|
(o) => {
|
|
35229
35255
|
o !== t.current && e?.(o, t.current), t.current = o;
|
|
35230
35256
|
},
|
|
@@ -35234,8 +35260,8 @@ function il(A) {
|
|
|
35234
35260
|
return [t, n];
|
|
35235
35261
|
}
|
|
35236
35262
|
function sl(A) {
|
|
35237
|
-
const e =
|
|
35238
|
-
return
|
|
35263
|
+
const e = NA();
|
|
35264
|
+
return LA(() => {
|
|
35239
35265
|
e.current = A;
|
|
35240
35266
|
}, [A]), e.current;
|
|
35241
35267
|
}
|
|
@@ -35398,7 +35424,7 @@ function tX(A) {
|
|
|
35398
35424
|
function nX() {
|
|
35399
35425
|
const [A, e] = MA("");
|
|
35400
35426
|
return {
|
|
35401
|
-
announce:
|
|
35427
|
+
announce: oe((n) => {
|
|
35402
35428
|
n != null && e(n);
|
|
35403
35429
|
}, []),
|
|
35404
35430
|
announcement: A
|
|
@@ -35407,15 +35433,15 @@ function nX() {
|
|
|
35407
35433
|
const Ub = /* @__PURE__ */ $e(null);
|
|
35408
35434
|
function xd(A) {
|
|
35409
35435
|
const e = te(Ub);
|
|
35410
|
-
|
|
35436
|
+
LA(() => {
|
|
35411
35437
|
if (!e)
|
|
35412
35438
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
35413
35439
|
return e(A);
|
|
35414
35440
|
}, [A, e]);
|
|
35415
35441
|
}
|
|
35416
35442
|
function oX() {
|
|
35417
|
-
const [A] = MA(() => /* @__PURE__ */ new Set()), e =
|
|
35418
|
-
return [
|
|
35443
|
+
const [A] = MA(() => /* @__PURE__ */ new Set()), e = oe((n) => (A.add(n), () => A.delete(n)), [A]);
|
|
35444
|
+
return [oe((n) => {
|
|
35419
35445
|
let {
|
|
35420
35446
|
type: o,
|
|
35421
35447
|
event: r
|
|
@@ -35471,7 +35497,7 @@ function sX(A) {
|
|
|
35471
35497
|
announce: r,
|
|
35472
35498
|
announcement: i
|
|
35473
35499
|
} = nX(), s = hB("DndLiveRegion"), [a, g] = MA(!1);
|
|
35474
|
-
if (
|
|
35500
|
+
if (LA(() => {
|
|
35475
35501
|
g(!0);
|
|
35476
35502
|
}, []), xd(HA(() => ({
|
|
35477
35503
|
onDragStart(l) {
|
|
@@ -36364,10 +36390,10 @@ function LX(A) {
|
|
|
36364
36390
|
const B = SX({
|
|
36365
36391
|
delta: l,
|
|
36366
36392
|
disabled: !r
|
|
36367
|
-
}), [E, C] = Xj(), h =
|
|
36393
|
+
}), [E, C] = Xj(), h = NA({
|
|
36368
36394
|
x: 0,
|
|
36369
36395
|
y: 0
|
|
36370
|
-
}), I =
|
|
36396
|
+
}), I = NA({
|
|
36371
36397
|
x: 0,
|
|
36372
36398
|
y: 0
|
|
36373
36399
|
}), f = HA(() => {
|
|
@@ -36382,14 +36408,14 @@ function LX(A) {
|
|
|
36382
36408
|
case $s.DraggableRect:
|
|
36383
36409
|
return o;
|
|
36384
36410
|
}
|
|
36385
|
-
}, [t, o, a]), p =
|
|
36411
|
+
}, [t, o, a]), p = NA(null), k = oe(() => {
|
|
36386
36412
|
const D = p.current;
|
|
36387
36413
|
if (!D)
|
|
36388
36414
|
return;
|
|
36389
36415
|
const x = h.current.x * I.current.x, N = h.current.y * I.current.y;
|
|
36390
36416
|
D.scrollBy(x, N);
|
|
36391
36417
|
}, []), v = HA(() => s === ll.TreeOrder ? [...g].reverse() : g, [s, g]);
|
|
36392
|
-
|
|
36418
|
+
LA(
|
|
36393
36419
|
() => {
|
|
36394
36420
|
if (!r || !g.length || !f) {
|
|
36395
36421
|
C();
|
|
@@ -36513,9 +36539,9 @@ function UX(A, e) {
|
|
|
36513
36539
|
frequency: s,
|
|
36514
36540
|
measure: a,
|
|
36515
36541
|
strategy: g
|
|
36516
|
-
} = o, c =
|
|
36542
|
+
} = o, c = NA(A), l = h(), Q = Ra(l), B = oe(function(I) {
|
|
36517
36543
|
I === void 0 && (I = []), !Q.current && i((f) => f === null ? I : f.concat(I.filter((p) => !f.includes(p))));
|
|
36518
|
-
}, [Q]), E =
|
|
36544
|
+
}, [Q]), E = NA(null), C = cg((I) => {
|
|
36519
36545
|
if (l && !t)
|
|
36520
36546
|
return sm;
|
|
36521
36547
|
if (!I || I === sm || c.current !== A || r != null) {
|
|
@@ -36534,21 +36560,21 @@ function UX(A, e) {
|
|
|
36534
36560
|
}
|
|
36535
36561
|
return I;
|
|
36536
36562
|
}, [A, r, t, l, a]);
|
|
36537
|
-
return
|
|
36563
|
+
return LA(() => {
|
|
36538
36564
|
c.current = A;
|
|
36539
|
-
}, [A]),
|
|
36565
|
+
}, [A]), LA(
|
|
36540
36566
|
() => {
|
|
36541
36567
|
l || B();
|
|
36542
36568
|
},
|
|
36543
36569
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
36544
36570
|
[t, l]
|
|
36545
|
-
),
|
|
36571
|
+
), LA(
|
|
36546
36572
|
() => {
|
|
36547
36573
|
r && r.length > 0 && i(null);
|
|
36548
36574
|
},
|
|
36549
36575
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
36550
36576
|
[JSON.stringify(r)]
|
|
36551
|
-
),
|
|
36577
|
+
), LA(
|
|
36552
36578
|
() => {
|
|
36553
36579
|
l || typeof s != "number" || E.current !== null || (E.current = setTimeout(() => {
|
|
36554
36580
|
B(), E.current = null;
|
|
@@ -36591,7 +36617,7 @@ function YX(A) {
|
|
|
36591
36617
|
} = window;
|
|
36592
36618
|
return new r(n);
|
|
36593
36619
|
}, [n, t]);
|
|
36594
|
-
return
|
|
36620
|
+
return LA(() => () => o?.disconnect(), [o]), o;
|
|
36595
36621
|
}
|
|
36596
36622
|
function wB(A) {
|
|
36597
36623
|
let {
|
|
@@ -36610,7 +36636,7 @@ function wB(A) {
|
|
|
36610
36636
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
36611
36637
|
[t]
|
|
36612
36638
|
);
|
|
36613
|
-
return
|
|
36639
|
+
return LA(() => () => o?.disconnect(), [o]), o;
|
|
36614
36640
|
}
|
|
36615
36641
|
function TX(A) {
|
|
36616
36642
|
return new Fd(lg(A), A);
|
|
@@ -36660,17 +36686,17 @@ function OX(A) {
|
|
|
36660
36686
|
}
|
|
36661
36687
|
const gm = [];
|
|
36662
36688
|
function JX(A) {
|
|
36663
|
-
const e =
|
|
36664
|
-
return
|
|
36689
|
+
const e = NA(A), t = cg((n) => A ? n && n !== gm && A && e.current && A.parentNode === e.current.parentNode ? n : bd(A) : gm, [A]);
|
|
36690
|
+
return LA(() => {
|
|
36665
36691
|
e.current = A;
|
|
36666
36692
|
}, [A]), t;
|
|
36667
36693
|
}
|
|
36668
36694
|
function qX(A) {
|
|
36669
|
-
const [e, t] = MA(null), n =
|
|
36695
|
+
const [e, t] = MA(null), n = NA(A), o = oe((r) => {
|
|
36670
36696
|
const i = OQ(r.target);
|
|
36671
36697
|
i && t((s) => s ? (s.set(i, xE(i)), new Map(s)) : null);
|
|
36672
36698
|
}, []);
|
|
36673
|
-
return
|
|
36699
|
+
return LA(() => {
|
|
36674
36700
|
const r = n.current;
|
|
36675
36701
|
if (A !== r) {
|
|
36676
36702
|
i(r);
|
|
@@ -36695,20 +36721,20 @@ function qX(A) {
|
|
|
36695
36721
|
}
|
|
36696
36722
|
function cm(A, e) {
|
|
36697
36723
|
e === void 0 && (e = []);
|
|
36698
|
-
const t =
|
|
36699
|
-
return
|
|
36724
|
+
const t = NA(null);
|
|
36725
|
+
return LA(
|
|
36700
36726
|
() => {
|
|
36701
36727
|
t.current = null;
|
|
36702
36728
|
},
|
|
36703
36729
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
36704
36730
|
e
|
|
36705
|
-
),
|
|
36731
|
+
), LA(() => {
|
|
36706
36732
|
const n = A !== Tn;
|
|
36707
36733
|
n && !t.current && (t.current = A), !n && t.current && (t.current = null);
|
|
36708
36734
|
}, [A]), t.current ? al(A, t.current) : Tn;
|
|
36709
36735
|
}
|
|
36710
36736
|
function WX(A) {
|
|
36711
|
-
|
|
36737
|
+
LA(
|
|
36712
36738
|
() => {
|
|
36713
36739
|
if (!IB)
|
|
36714
36740
|
return;
|
|
@@ -36773,7 +36799,7 @@ function jX(A) {
|
|
|
36773
36799
|
let {
|
|
36774
36800
|
measure: e
|
|
36775
36801
|
} = A;
|
|
36776
|
-
const [t, n] = MA(null), o =
|
|
36802
|
+
const [t, n] = MA(null), o = oe((g) => {
|
|
36777
36803
|
for (const {
|
|
36778
36804
|
target: c
|
|
36779
36805
|
} of g)
|
|
@@ -36790,7 +36816,7 @@ function jX(A) {
|
|
|
36790
36816
|
}
|
|
36791
36817
|
}, [e]), r = wB({
|
|
36792
36818
|
callback: o
|
|
36793
|
-
}), i =
|
|
36819
|
+
}), i = oe((g) => {
|
|
36794
36820
|
const c = $b(g);
|
|
36795
36821
|
r?.disconnect(), c && r?.observe(c), n(c ? e(c) : null);
|
|
36796
36822
|
}, [e, r]), [s, a] = il(i);
|
|
@@ -37000,7 +37026,7 @@ function e_(A) {
|
|
|
37000
37026
|
activatorEvent: n,
|
|
37001
37027
|
draggableNodes: o
|
|
37002
37028
|
} = te(Bg), r = sl(n), i = sl(t?.id);
|
|
37003
|
-
return
|
|
37029
|
+
return LA(() => {
|
|
37004
37030
|
if (!e && !n && r && i != null) {
|
|
37005
37031
|
if (!Nd(r) || document.activeElement === r.target)
|
|
37006
37032
|
return;
|
|
@@ -37064,7 +37090,7 @@ function n_(A) {
|
|
|
37064
37090
|
initialRect: n,
|
|
37065
37091
|
config: o = !0
|
|
37066
37092
|
} = A;
|
|
37067
|
-
const r =
|
|
37093
|
+
const r = NA(!1), {
|
|
37068
37094
|
x: i,
|
|
37069
37095
|
y: s
|
|
37070
37096
|
} = typeof o == "boolean" ? {
|
|
@@ -37122,7 +37148,7 @@ const o_ = /* @__PURE__ */ v0(function(e) {
|
|
|
37122
37148
|
droppable: {
|
|
37123
37149
|
containers: L
|
|
37124
37150
|
}
|
|
37125
|
-
} = h, R = x != null ? N.get(x) : null, U =
|
|
37151
|
+
} = h, R = x != null ? N.get(x) : null, U = NA({
|
|
37126
37152
|
initial: null,
|
|
37127
37153
|
translated: null
|
|
37128
37154
|
}), O = HA(() => {
|
|
@@ -37133,7 +37159,7 @@ const o_ = /* @__PURE__ */ v0(function(e) {
|
|
|
37133
37159
|
data: (ve = R?.data) != null ? ve : _X,
|
|
37134
37160
|
rect: U
|
|
37135
37161
|
} : null;
|
|
37136
|
-
}, [x, R]), K =
|
|
37162
|
+
}, [x, R]), K = NA(null), [H, W] = MA(null), [z, X] = MA(null), q = Ra(E, Object.values(E)), b = hB("DndDescribedBy", i), j = HA(() => L.getEnabled(), [L]), J = t_(Q), {
|
|
37137
37163
|
droppableRects: F,
|
|
37138
37164
|
measureDroppableContainers: sA,
|
|
37139
37165
|
measuringScheduled: rA
|
|
@@ -37148,7 +37174,7 @@ const o_ = /* @__PURE__ */ v0(function(e) {
|
|
|
37148
37174
|
initialRect: gA,
|
|
37149
37175
|
measure: J.draggable.measure
|
|
37150
37176
|
});
|
|
37151
|
-
const cA = am(eA, J.draggable.measure, gA), wA = am(eA ? eA.parentElement : null), EA =
|
|
37177
|
+
const cA = am(eA, J.draggable.measure, gA), wA = am(eA ? eA.parentElement : null), EA = NA({
|
|
37152
37178
|
activatorEvent: null,
|
|
37153
37179
|
active: null,
|
|
37154
37180
|
activeNode: eA,
|
|
@@ -37187,7 +37213,7 @@ const o_ = /* @__PURE__ */ v0(function(e) {
|
|
|
37187
37213
|
droppableRects: F,
|
|
37188
37214
|
droppableContainers: j,
|
|
37189
37215
|
pointerCoordinates: st
|
|
37190
|
-
}) : null, aA = cX(_, "id"), [fA, KA] = MA(null), vA = Ce ? Et : Li(Et, w), ZA = QX(vA, (r = fA?.rect) != null ? r : null, cA), TA =
|
|
37216
|
+
}) : null, aA = cX(_, "id"), [fA, KA] = MA(null), vA = Ce ? Et : Li(Et, w), ZA = QX(vA, (r = fA?.rect) != null ? r : null, cA), TA = NA(null), le = oe(
|
|
37191
37217
|
(ve, Ge) => {
|
|
37192
37218
|
let {
|
|
37193
37219
|
sensor: Te,
|
|
@@ -37312,7 +37338,7 @@ const o_ = /* @__PURE__ */ v0(function(e) {
|
|
|
37312
37338
|
},
|
|
37313
37339
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
37314
37340
|
[N]
|
|
37315
|
-
), Ie =
|
|
37341
|
+
), Ie = oe((ve, Ge) => (Te, at) => {
|
|
37316
37342
|
const Je = Te.nativeEvent, jA = N.get(at);
|
|
37317
37343
|
if (
|
|
37318
37344
|
// Another sensor is already instantiating
|
|
@@ -37330,7 +37356,7 @@ const o_ = /* @__PURE__ */ v0(function(e) {
|
|
|
37330
37356
|
}, [N, le]), Fe = HX(c, Ie);
|
|
37331
37357
|
WX(c), Fo(() => {
|
|
37332
37358
|
cA && k === Oo.Initializing && v(Oo.Initialized);
|
|
37333
|
-
}, [cA, k]),
|
|
37359
|
+
}, [cA, k]), LA(
|
|
37334
37360
|
() => {
|
|
37335
37361
|
const {
|
|
37336
37362
|
onDragMove: ve
|
|
@@ -37361,7 +37387,7 @@ const o_ = /* @__PURE__ */ v0(function(e) {
|
|
|
37361
37387
|
},
|
|
37362
37388
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
37363
37389
|
[S.x, S.y]
|
|
37364
|
-
),
|
|
37390
|
+
), LA(
|
|
37365
37391
|
() => {
|
|
37366
37392
|
const {
|
|
37367
37393
|
active: ve,
|
|
@@ -37554,16 +37580,16 @@ function c_(A) {
|
|
|
37554
37580
|
dispatch: s,
|
|
37555
37581
|
over: a,
|
|
37556
37582
|
measureDroppableContainers: g
|
|
37557
|
-
} = te(Bg), c =
|
|
37583
|
+
} = te(Bg), c = NA({
|
|
37558
37584
|
disabled: t
|
|
37559
|
-
}), l =
|
|
37585
|
+
}), l = NA(!1), Q = NA(null), B = NA(null), {
|
|
37560
37586
|
disabled: E,
|
|
37561
37587
|
updateMeasurementsFor: C,
|
|
37562
37588
|
timeout: h
|
|
37563
37589
|
} = {
|
|
37564
37590
|
...g_,
|
|
37565
37591
|
...o
|
|
37566
|
-
}, I = Ra(C ?? n), f =
|
|
37592
|
+
}, I = Ra(C ?? n), f = oe(
|
|
37567
37593
|
() => {
|
|
37568
37594
|
if (!l.current) {
|
|
37569
37595
|
l.current = !0;
|
|
@@ -37578,12 +37604,12 @@ function c_(A) {
|
|
|
37578
37604
|
), p = wB({
|
|
37579
37605
|
callback: f,
|
|
37580
37606
|
disabled: E || !i
|
|
37581
|
-
}), k =
|
|
37607
|
+
}), k = oe((N, Y) => {
|
|
37582
37608
|
p && (Y && (p.unobserve(Y), l.current = !1), N && p.observe(N));
|
|
37583
37609
|
}, [p]), [v, D] = il(k), x = Ra(e);
|
|
37584
|
-
return
|
|
37610
|
+
return LA(() => {
|
|
37585
37611
|
!p || !v.current || (p.disconnect(), l.current = !1, p.observe(v.current));
|
|
37586
|
-
}, [v, p]),
|
|
37612
|
+
}, [v, p]), LA(
|
|
37587
37613
|
() => (s({
|
|
37588
37614
|
type: Qt.RegisterDroppable,
|
|
37589
37615
|
element: {
|
|
@@ -37601,7 +37627,7 @@ function c_(A) {
|
|
|
37601
37627
|
})),
|
|
37602
37628
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
37603
37629
|
[n]
|
|
37604
|
-
),
|
|
37630
|
+
), LA(() => {
|
|
37605
37631
|
t !== c.current.disabled && (s({
|
|
37606
37632
|
type: Qt.SetDroppableDisabled,
|
|
37607
37633
|
id: n,
|
|
@@ -38025,11 +38051,11 @@ const k_ = ({
|
|
|
38025
38051
|
className: "text-body-muted hover:text-foreground active:text-foreground h-full cursor-move",
|
|
38026
38052
|
children: /* @__PURE__ */ u(_A, { name: "grip-vertical", className: "h-4 w-4" })
|
|
38027
38053
|
}
|
|
38028
|
-
),
|
|
38054
|
+
), GiA = Object.assign(oF, {
|
|
38029
38055
|
Item: iF,
|
|
38030
38056
|
Separator: Pd
|
|
38031
38057
|
});
|
|
38032
|
-
function
|
|
38058
|
+
function HiA({
|
|
38033
38059
|
children: A,
|
|
38034
38060
|
color: e = "green",
|
|
38035
38061
|
muted: t = !1,
|
|
@@ -38038,8 +38064,8 @@ function GiA({
|
|
|
38038
38064
|
animationTrigger: r = "inView",
|
|
38039
38065
|
animationDuration: i = 1
|
|
38040
38066
|
}) {
|
|
38041
|
-
const s = HA(() => A.split(""), [A]), [a, g] = MA(0), c =
|
|
38042
|
-
|
|
38067
|
+
const s = HA(() => A.split(""), [A]), [a, g] = MA(0), c = NA(null), l = lJ(c, { once: r === "inView" });
|
|
38068
|
+
LA(() => {
|
|
38043
38069
|
if (!n) {
|
|
38044
38070
|
g(s.length);
|
|
38045
38071
|
return;
|
|
@@ -38103,8 +38129,8 @@ const um = {
|
|
|
38103
38129
|
purple: "hsl(0, 0%, 100%)",
|
|
38104
38130
|
orange: "hsl(0, 0%, 20%)",
|
|
38105
38131
|
emerald: "hsl(0, 0%, 20%)"
|
|
38106
|
-
},
|
|
38107
|
-
function
|
|
38132
|
+
}, UiA = p_;
|
|
38133
|
+
function KiA({
|
|
38108
38134
|
children: A,
|
|
38109
38135
|
id: e,
|
|
38110
38136
|
onDragEnd: t,
|
|
@@ -38151,7 +38177,7 @@ function UiA({
|
|
|
38151
38177
|
}
|
|
38152
38178
|
);
|
|
38153
38179
|
}
|
|
38154
|
-
function
|
|
38180
|
+
function YiA({
|
|
38155
38181
|
children: A,
|
|
38156
38182
|
id: e,
|
|
38157
38183
|
data: t,
|
|
@@ -38166,11 +38192,11 @@ function KiA({
|
|
|
38166
38192
|
const {
|
|
38167
38193
|
createElement: _i,
|
|
38168
38194
|
createContext: N_,
|
|
38169
|
-
createRef:
|
|
38195
|
+
createRef: TiA,
|
|
38170
38196
|
forwardRef: sF,
|
|
38171
38197
|
useCallback: Xt,
|
|
38172
38198
|
useContext: aF,
|
|
38173
|
-
useEffect:
|
|
38199
|
+
useEffect: Yr,
|
|
38174
38200
|
useImperativeHandle: gF,
|
|
38175
38201
|
useLayoutEffect: x_,
|
|
38176
38202
|
useMemo: b_,
|
|
@@ -38178,7 +38204,7 @@ const {
|
|
|
38178
38204
|
useState: Pi
|
|
38179
38205
|
} = m, dm = m[`useId${Math.random()}`.slice(0, 5)], F_ = x_, DB = N_(null);
|
|
38180
38206
|
DB.displayName = "PanelGroupContext";
|
|
38181
|
-
const
|
|
38207
|
+
const Tr = F_, R_ = typeof dm == "function" ? dm : () => null;
|
|
38182
38208
|
let L_ = 0;
|
|
38183
38209
|
function Sd(A = null) {
|
|
38184
38210
|
const e = R_(), t = Zt(A || e || null);
|
|
@@ -38235,7 +38261,7 @@ function cF({
|
|
|
38235
38261
|
});
|
|
38236
38262
|
Zt({
|
|
38237
38263
|
didLogMissingDefaultSizeWarning: !1
|
|
38238
|
-
}),
|
|
38264
|
+
}), Tr(() => {
|
|
38239
38265
|
const {
|
|
38240
38266
|
callbacks: K,
|
|
38241
38267
|
constraints: H
|
|
@@ -38243,7 +38269,7 @@ function cF({
|
|
|
38243
38269
|
...H
|
|
38244
38270
|
};
|
|
38245
38271
|
U.current.id = R, U.current.idIsFromProps = i !== void 0, U.current.order = Q, K.onCollapse = g, K.onExpand = c, K.onResize = l, H.collapsedSize = t, H.collapsible = n, H.defaultSize = o, H.maxSize = s, H.minSize = a, (W.collapsedSize !== H.collapsedSize || W.collapsible !== H.collapsible || W.maxSize !== H.maxSize || W.minSize !== H.minSize) && x(U.current, W);
|
|
38246
|
-
}),
|
|
38272
|
+
}), Tr(() => {
|
|
38247
38273
|
const K = U.current;
|
|
38248
38274
|
return N(K), () => {
|
|
38249
38275
|
L(K);
|
|
@@ -38295,7 +38321,7 @@ const pB = sF((A, e) => _i(cF, {
|
|
|
38295
38321
|
}));
|
|
38296
38322
|
cF.displayName = "Panel";
|
|
38297
38323
|
pB.displayName = "forwardRef(Panel)";
|
|
38298
|
-
let RE = null,
|
|
38324
|
+
let RE = null, Sr = null;
|
|
38299
38325
|
function P_(A, e) {
|
|
38300
38326
|
if (e) {
|
|
38301
38327
|
const t = (e & EF) !== 0, n = (e & CF) !== 0, o = (e & IF) !== 0, r = (e & dF) !== 0;
|
|
@@ -38318,11 +38344,11 @@ function P_(A, e) {
|
|
|
38318
38344
|
}
|
|
38319
38345
|
}
|
|
38320
38346
|
function S_() {
|
|
38321
|
-
|
|
38347
|
+
Sr !== null && (document.head.removeChild(Sr), RE = null, Sr = null);
|
|
38322
38348
|
}
|
|
38323
38349
|
function WQ(A, e) {
|
|
38324
38350
|
const t = P_(A, e);
|
|
38325
|
-
RE !== t && (RE = t,
|
|
38351
|
+
RE !== t && (RE = t, Sr === null && (Sr = document.createElement("style"), document.head.appendChild(Sr)), Sr.innerHTML = `*{cursor: ${t}!important;}`);
|
|
38326
38352
|
}
|
|
38327
38353
|
function lF(A) {
|
|
38328
38354
|
return A.type === "keydown";
|
|
@@ -38574,14 +38600,14 @@ function se(A, e) {
|
|
|
38574
38600
|
throw console.error(e), Error(e);
|
|
38575
38601
|
}
|
|
38576
38602
|
const Ud = 10;
|
|
38577
|
-
function
|
|
38603
|
+
function zr(A, e, t = Ud) {
|
|
38578
38604
|
return A.toFixed(t) === e.toFixed(t) ? 0 : A > e ? 1 : -1;
|
|
38579
38605
|
}
|
|
38580
38606
|
function Co(A, e, t = Ud) {
|
|
38581
|
-
return
|
|
38607
|
+
return zr(A, e, t) === 0;
|
|
38582
38608
|
}
|
|
38583
38609
|
function rn(A, e, t) {
|
|
38584
|
-
return
|
|
38610
|
+
return zr(A, e, t) === 0;
|
|
38585
38611
|
}
|
|
38586
38612
|
function W_(A, e, t) {
|
|
38587
38613
|
if (A.length !== e.length)
|
|
@@ -38606,10 +38632,10 @@ function xi({
|
|
|
38606
38632
|
maxSize: i = 100,
|
|
38607
38633
|
minSize: s = 0
|
|
38608
38634
|
} = n;
|
|
38609
|
-
if (
|
|
38635
|
+
if (zr(t, s) < 0)
|
|
38610
38636
|
if (r) {
|
|
38611
38637
|
const a = (o + s) / 2;
|
|
38612
|
-
|
|
38638
|
+
zr(t, a) < 0 ? t = o : t = s;
|
|
38613
38639
|
} else
|
|
38614
38640
|
t = s;
|
|
38615
38641
|
return t = Math.min(i, t), t = parseFloat(t.toFixed(Ud)), t;
|
|
@@ -38640,7 +38666,7 @@ function Hs({
|
|
|
38640
38666
|
const h = e[l];
|
|
38641
38667
|
if (se(h != null, `Previous layout not found for panel index ${l}`), rn(h, B)) {
|
|
38642
38668
|
const I = C - h;
|
|
38643
|
-
|
|
38669
|
+
zr(I, Math.abs(A)) > 0 && (A = A < 0 ? 0 - I : I);
|
|
38644
38670
|
}
|
|
38645
38671
|
}
|
|
38646
38672
|
}
|
|
@@ -38656,7 +38682,7 @@ function Hs({
|
|
|
38656
38682
|
const h = e[l];
|
|
38657
38683
|
if (se(h != null, `Previous layout not found for panel index ${l}`), rn(h, C)) {
|
|
38658
38684
|
const I = h - B;
|
|
38659
|
-
|
|
38685
|
+
zr(I, Math.abs(A)) > 0 && (A = A < 0 ? 0 - I : I);
|
|
38660
38686
|
}
|
|
38661
38687
|
}
|
|
38662
38688
|
}
|
|
@@ -38785,7 +38811,7 @@ function j_({
|
|
|
38785
38811
|
}) {
|
|
38786
38812
|
Zt({
|
|
38787
38813
|
didWarnAboutMissingResizeHandle: !1
|
|
38788
|
-
}),
|
|
38814
|
+
}), Tr(() => {
|
|
38789
38815
|
if (!r)
|
|
38790
38816
|
return;
|
|
38791
38817
|
const s = Sa(t, r);
|
|
@@ -38809,7 +38835,7 @@ function j_({
|
|
|
38809
38835
|
a.removeAttribute("aria-controls"), a.removeAttribute("aria-valuemax"), a.removeAttribute("aria-valuemin"), a.removeAttribute("aria-valuenow");
|
|
38810
38836
|
});
|
|
38811
38837
|
};
|
|
38812
|
-
}, [t, n, o, r]),
|
|
38838
|
+
}, [t, n, o, r]), Yr(() => {
|
|
38813
38839
|
if (!r)
|
|
38814
38840
|
return;
|
|
38815
38841
|
const s = e.current;
|
|
@@ -39163,7 +39189,7 @@ function MF({
|
|
|
39163
39189
|
});
|
|
39164
39190
|
pm(rA, nA) || (I(nA), x.current.layout = nA, sA && sA(nA), Qi(eA, nA, p.current));
|
|
39165
39191
|
}
|
|
39166
|
-
}), []),
|
|
39192
|
+
}), []), Tr(() => {
|
|
39167
39193
|
D.current.autoSaveId = A, D.current.direction = n, D.current.dragState = E, D.current.id = Q, D.current.onLayout = i, D.current.storage = a;
|
|
39168
39194
|
}), j_({
|
|
39169
39195
|
committedValuesRef: D,
|
|
@@ -39173,7 +39199,7 @@ function MF({
|
|
|
39173
39199
|
panelDataArray: x.current.panelDataArray,
|
|
39174
39200
|
setLayout: I,
|
|
39175
39201
|
panelGroupElement: B.current
|
|
39176
|
-
}),
|
|
39202
|
+
}), Yr(() => {
|
|
39177
39203
|
const {
|
|
39178
39204
|
panelDataArray: F
|
|
39179
39205
|
} = x.current;
|
|
@@ -39185,7 +39211,7 @@ function MF({
|
|
|
39185
39211
|
const rA = [...F], eA = new Map(k.current);
|
|
39186
39212
|
sA(A, rA, eA, h, a);
|
|
39187
39213
|
}
|
|
39188
|
-
}, [A, h, a]),
|
|
39214
|
+
}, [A, h, a]), Yr(() => {
|
|
39189
39215
|
});
|
|
39190
39216
|
const N = Xt((F) => {
|
|
39191
39217
|
const {
|
|
@@ -39199,7 +39225,7 @@ function MF({
|
|
|
39199
39225
|
collapsedSize: AA = 0,
|
|
39200
39226
|
panelSize: gA,
|
|
39201
39227
|
pivotIndices: cA
|
|
39202
|
-
} =
|
|
39228
|
+
} = yr(eA, F, rA);
|
|
39203
39229
|
if (se(gA != null, `Panel size not found for panel "${F.id}"`), !Co(gA, AA)) {
|
|
39204
39230
|
k.current.set(F.id, gA);
|
|
39205
39231
|
const EA = Ii(eA, F) === eA.length - 1 ? gA - AA : AA - gA, DA = Hs({
|
|
@@ -39226,7 +39252,7 @@ function MF({
|
|
|
39226
39252
|
panelSize: cA = 0,
|
|
39227
39253
|
minSize: wA = 0,
|
|
39228
39254
|
pivotIndices: EA
|
|
39229
|
-
} =
|
|
39255
|
+
} = yr(nA, F, eA), DA = sA ?? wA;
|
|
39230
39256
|
if (Co(cA, gA)) {
|
|
39231
39257
|
const UA = k.current.get(F.id), qA = UA != null && UA >= DA ? UA : DA, Ce = Ii(nA, F) === nA.length - 1 ? cA - qA : qA - cA, ae = Hs({
|
|
39232
39258
|
delta: Ce,
|
|
@@ -39245,7 +39271,7 @@ function MF({
|
|
|
39245
39271
|
panelDataArray: rA
|
|
39246
39272
|
} = x.current, {
|
|
39247
39273
|
panelSize: eA
|
|
39248
|
-
} =
|
|
39274
|
+
} = yr(rA, F, sA);
|
|
39249
39275
|
return se(eA != null, `Panel size not found for panel "${F.id}"`), eA;
|
|
39250
39276
|
}, []), R = Xt((F, sA) => {
|
|
39251
39277
|
const {
|
|
@@ -39266,7 +39292,7 @@ function MF({
|
|
|
39266
39292
|
collapsedSize: eA = 0,
|
|
39267
39293
|
collapsible: nA,
|
|
39268
39294
|
panelSize: AA
|
|
39269
|
-
} =
|
|
39295
|
+
} = yr(rA, F, sA);
|
|
39270
39296
|
return se(AA != null, `Panel size not found for panel "${F.id}"`), nA === !0 && Co(AA, eA);
|
|
39271
39297
|
}, []), O = Xt((F) => {
|
|
39272
39298
|
const {
|
|
@@ -39276,8 +39302,8 @@ function MF({
|
|
|
39276
39302
|
collapsedSize: eA = 0,
|
|
39277
39303
|
collapsible: nA,
|
|
39278
39304
|
panelSize: AA
|
|
39279
|
-
} =
|
|
39280
|
-
return se(AA != null, `Panel size not found for panel "${F.id}"`), !nA ||
|
|
39305
|
+
} = yr(rA, F, sA);
|
|
39306
|
+
return se(AA != null, `Panel size not found for panel "${F.id}"`), !nA || zr(AA, eA) > 0;
|
|
39281
39307
|
}, []), K = Xt((F) => {
|
|
39282
39308
|
const {
|
|
39283
39309
|
panelDataArray: sA
|
|
@@ -39287,7 +39313,7 @@ function MF({
|
|
|
39287
39313
|
return nA == null && AA == null ? 0 : nA == null ? -1 : AA == null ? 1 : nA - AA;
|
|
39288
39314
|
}), x.current.panelDataArrayChanged = !0, f();
|
|
39289
39315
|
}, [f]);
|
|
39290
|
-
|
|
39316
|
+
Tr(() => {
|
|
39291
39317
|
if (x.current.panelDataArrayChanged) {
|
|
39292
39318
|
x.current.panelDataArrayChanged = !1;
|
|
39293
39319
|
const {
|
|
@@ -39312,7 +39338,7 @@ function MF({
|
|
|
39312
39338
|
});
|
|
39313
39339
|
pm(eA, gA) || (I(gA), x.current.layout = gA, sA && sA(gA), Qi(nA, gA, p.current));
|
|
39314
39340
|
}
|
|
39315
|
-
}),
|
|
39341
|
+
}), Tr(() => {
|
|
39316
39342
|
const F = x.current;
|
|
39317
39343
|
return () => {
|
|
39318
39344
|
F.layout = [];
|
|
@@ -39360,7 +39386,7 @@ function MF({
|
|
|
39360
39386
|
} = x.current, AA = nA.map((UA) => UA.constraints), {
|
|
39361
39387
|
panelSize: gA,
|
|
39362
39388
|
pivotIndices: cA
|
|
39363
|
-
} =
|
|
39389
|
+
} = yr(nA, F, eA);
|
|
39364
39390
|
se(gA != null, `Panel size not found for panel "${F.id}"`);
|
|
39365
39391
|
const EA = Ii(nA, F) === nA.length - 1 ? gA - sA : sA - gA, DA = Hs({
|
|
39366
39392
|
delta: EA,
|
|
@@ -39385,7 +39411,7 @@ function MF({
|
|
|
39385
39411
|
minSize: EA = 0
|
|
39386
39412
|
} = F.constraints, {
|
|
39387
39413
|
panelSize: DA
|
|
39388
|
-
} =
|
|
39414
|
+
} = yr(eA, F, rA);
|
|
39389
39415
|
DA != null && (AA && cA && Co(DA, nA) ? Co(nA, gA) || W(F, gA) : DA < EA ? W(F, EA) : DA > wA && W(F, wA));
|
|
39390
39416
|
}, [W]), X = Xt((F, sA) => {
|
|
39391
39417
|
const {
|
|
@@ -39463,7 +39489,7 @@ Kd.displayName = "forwardRef(PanelGroup)";
|
|
|
39463
39489
|
function Ii(A, e) {
|
|
39464
39490
|
return A.findIndex((t) => t === e || t.id === e.id);
|
|
39465
39491
|
}
|
|
39466
|
-
function
|
|
39492
|
+
function yr(A, e, t) {
|
|
39467
39493
|
const n = Ii(A, e), r = n === A.length - 1 ? [n - 1, n] : [n, n + 1], i = t[n];
|
|
39468
39494
|
return {
|
|
39469
39495
|
...e.constraints,
|
|
@@ -39477,7 +39503,7 @@ function oZ({
|
|
|
39477
39503
|
resizeHandler: t,
|
|
39478
39504
|
panelGroupElement: n
|
|
39479
39505
|
}) {
|
|
39480
|
-
|
|
39506
|
+
Yr(() => {
|
|
39481
39507
|
if (A || t == null || n == null)
|
|
39482
39508
|
return;
|
|
39483
39509
|
const o = MB(e, n);
|
|
@@ -39530,7 +39556,7 @@ function vB({
|
|
|
39530
39556
|
const E = Zt(null), C = Zt({
|
|
39531
39557
|
onDragging: i
|
|
39532
39558
|
});
|
|
39533
|
-
|
|
39559
|
+
Yr(() => {
|
|
39534
39560
|
C.current.onDragging = i;
|
|
39535
39561
|
});
|
|
39536
39562
|
const h = aF(DB);
|
|
@@ -39546,9 +39572,9 @@ function vB({
|
|
|
39546
39572
|
} = h, x = Sd(o), [N, Y] = Pi("inactive"), [L, R] = Pi(!1), [U, O] = Pi(null), K = Zt({
|
|
39547
39573
|
state: N
|
|
39548
39574
|
});
|
|
39549
|
-
|
|
39575
|
+
Tr(() => {
|
|
39550
39576
|
K.current.state = N;
|
|
39551
|
-
}),
|
|
39577
|
+
}), Yr(() => {
|
|
39552
39578
|
if (t)
|
|
39553
39579
|
O(null);
|
|
39554
39580
|
else {
|
|
@@ -39557,7 +39583,7 @@ function vB({
|
|
|
39557
39583
|
}
|
|
39558
39584
|
}, [t, x, p]);
|
|
39559
39585
|
const H = (Q = n?.coarse) !== null && Q !== void 0 ? Q : 15, W = (B = n?.fine) !== null && B !== void 0 ? B : 5;
|
|
39560
|
-
return
|
|
39586
|
+
return Yr(() => {
|
|
39561
39587
|
if (t || U == null)
|
|
39562
39588
|
return;
|
|
39563
39589
|
const X = E.current;
|
|
@@ -39683,7 +39709,7 @@ const iZ = ({
|
|
|
39683
39709
|
)
|
|
39684
39710
|
}
|
|
39685
39711
|
);
|
|
39686
|
-
},
|
|
39712
|
+
}, OiA = Object.assign(rZ, {
|
|
39687
39713
|
Pane: kF,
|
|
39688
39714
|
ResizeHandle: vF
|
|
39689
39715
|
}), sZ = {
|
|
@@ -39716,7 +39742,7 @@ const iZ = ({
|
|
|
39716
39742
|
showLanguageSelector: g = !0,
|
|
39717
39743
|
wordWrap: c = !0
|
|
39718
39744
|
}) => {
|
|
39719
|
-
const l =
|
|
39745
|
+
const l = NA(null), Q = it.toArray(A).filter((U) => {
|
|
39720
39746
|
if (!Ze(U)) return !1;
|
|
39721
39747
|
const O = U.type, K = O.displayName === "CodePlayground.Header" || O.displayName === "CodePlayground.Footer" || O.displayName === "CodePlayground.Code";
|
|
39722
39748
|
return K || console.warn(
|
|
@@ -39756,23 +39782,23 @@ const iZ = ({
|
|
|
39756
39782
|
(U) => Ze(U) && U.type.displayName === "CodePlayground.Footer"
|
|
39757
39783
|
),
|
|
39758
39784
|
[Q]
|
|
39759
|
-
), x =
|
|
39785
|
+
), x = oe(
|
|
39760
39786
|
async (U, O) => {
|
|
39761
39787
|
const K = await u8(U, O);
|
|
39762
39788
|
C(K);
|
|
39763
39789
|
},
|
|
39764
39790
|
[]
|
|
39765
|
-
), [N, Y] = MA(!1), L =
|
|
39791
|
+
), [N, Y] = MA(!1), L = oe(() => {
|
|
39766
39792
|
Y(!0), navigator.clipboard.writeText(h.code ?? ""), setTimeout(() => {
|
|
39767
39793
|
Y(!1);
|
|
39768
39794
|
}, 1e3);
|
|
39769
39795
|
}, [h.code]);
|
|
39770
|
-
|
|
39796
|
+
LA(() => {
|
|
39771
39797
|
h.code && x(h.code, n);
|
|
39772
|
-
}, [h, n]),
|
|
39798
|
+
}, [h, n]), LA(() => {
|
|
39773
39799
|
h.code && x(h.code, n);
|
|
39774
39800
|
}, [h, n]);
|
|
39775
|
-
const R =
|
|
39801
|
+
const R = oe(
|
|
39776
39802
|
(U) => {
|
|
39777
39803
|
r?.(U);
|
|
39778
39804
|
},
|
|
@@ -39874,7 +39900,7 @@ const bF = ({
|
|
|
39874
39900
|
}
|
|
39875
39901
|
);
|
|
39876
39902
|
bF.displayName = "CodePlayground.Footer";
|
|
39877
|
-
const
|
|
39903
|
+
const JiA = Object.assign(NF, {
|
|
39878
39904
|
Header: xF,
|
|
39879
39905
|
Footer: bF,
|
|
39880
39906
|
/**
|
|
@@ -40082,7 +40108,7 @@ const GF = ({
|
|
|
40082
40108
|
GF.displayName = "CodeEditor.CustomTabElement";
|
|
40083
40109
|
const HF = ({ children: A, className: e, ...t }) => /* @__PURE__ */ u("div", { className: $("h-full w-full", e), ...t, children: A });
|
|
40084
40110
|
HF.displayName = "CodeEditor.Empty";
|
|
40085
|
-
const
|
|
40111
|
+
const qiA = Object.assign(FF, {
|
|
40086
40112
|
Pane: RF,
|
|
40087
40113
|
CommandBar: SF,
|
|
40088
40114
|
Empty: HF,
|
|
@@ -40092,7 +40118,7 @@ const JiA = Object.assign(FF, {
|
|
|
40092
40118
|
}), UF = $e(
|
|
40093
40119
|
void 0
|
|
40094
40120
|
);
|
|
40095
|
-
function
|
|
40121
|
+
function WiA({
|
|
40096
40122
|
children: A
|
|
40097
40123
|
}) {
|
|
40098
40124
|
const [e, t] = MA([]), [n, o] = MA(0), [r, i] = MA(!1), [s, a] = MA("forward"), g = (E) => {
|
|
@@ -40146,7 +40172,7 @@ function KF() {
|
|
|
40146
40172
|
return A;
|
|
40147
40173
|
}
|
|
40148
40174
|
const cZ = zA(Ro), zQ = 0.15;
|
|
40149
|
-
function
|
|
40175
|
+
function ViA({ renderTitle: A }) {
|
|
40150
40176
|
const {
|
|
40151
40177
|
screens: e,
|
|
40152
40178
|
currentIndex: t,
|
|
@@ -40171,7 +40197,7 @@ function WiA({ renderTitle: A }) {
|
|
|
40171
40197
|
width: "100%"
|
|
40172
40198
|
})
|
|
40173
40199
|
};
|
|
40174
|
-
if (
|
|
40200
|
+
if (LA(() => {
|
|
40175
40201
|
const c = (l) => {
|
|
40176
40202
|
l.key === "Escape" && o();
|
|
40177
40203
|
};
|
|
@@ -40263,7 +40289,7 @@ const kB = m.forwardRef(
|
|
|
40263
40289
|
)
|
|
40264
40290
|
);
|
|
40265
40291
|
kB.displayName = "IconButton";
|
|
40266
|
-
const
|
|
40292
|
+
const ziA = ({ closable: A = !1, className: e }) => {
|
|
40267
40293
|
const { screens: t, currentIndex: n, isOpen: o, close: r } = KF(), i = t[n];
|
|
40268
40294
|
return !o || !i ? null : /* @__PURE__ */ u(BC, { open: o, onOpenChange: A ? r : void 0, children: /* @__PURE__ */ tA(uC, { children: [
|
|
40269
40295
|
/* @__PURE__ */ u(EC, { className: "bg-surface-secondary fixed h-screen w-screen opacity-85" }),
|
|
@@ -40412,7 +40438,7 @@ function BZ({
|
|
|
40412
40438
|
}) {
|
|
40413
40439
|
const n = it.toArray(A), r = n.filter(
|
|
40414
40440
|
(l) => Ze(l) && l.type === LE
|
|
40415
|
-
).length, i =
|
|
40441
|
+
).length, i = NA(null), [s, a] = MA(null);
|
|
40416
40442
|
let g = 0;
|
|
40417
40443
|
const c = n.map((l) => {
|
|
40418
40444
|
if (Ze(l) && l.type === LE) {
|
|
@@ -40451,7 +40477,7 @@ function BZ({
|
|
|
40451
40477
|
/* @__PURE__ */ u("ol", { className: "space-y-6", children: c })
|
|
40452
40478
|
] }) });
|
|
40453
40479
|
}
|
|
40454
|
-
const
|
|
40480
|
+
const jiA = Object.assign(BZ, {
|
|
40455
40481
|
Item: LE,
|
|
40456
40482
|
Content: YF,
|
|
40457
40483
|
Title: TF,
|
|
@@ -40505,8 +40531,8 @@ function QZ({
|
|
|
40505
40531
|
const { model: t, onModelChange: n, availableModels: o } = A, [r, i] = MA(!1), s = o.find((l) => l.value === t) || {
|
|
40506
40532
|
label: "Unknown",
|
|
40507
40533
|
value: ""
|
|
40508
|
-
}, a =
|
|
40509
|
-
return
|
|
40534
|
+
}, a = NA(s.label), [g, c] = MA(null);
|
|
40535
|
+
return LA(() => {
|
|
40510
40536
|
if (s.label !== a.current) {
|
|
40511
40537
|
const l = a.current;
|
|
40512
40538
|
a.current = s.label, c(l), requestAnimationFrame(() => {
|
|
@@ -40575,7 +40601,7 @@ function QZ({
|
|
|
40575
40601
|
)
|
|
40576
40602
|
] });
|
|
40577
40603
|
}
|
|
40578
|
-
const
|
|
40604
|
+
const Gr = (A, e, t, n) => {
|
|
40579
40605
|
const o = e?.[t];
|
|
40580
40606
|
if (typeof o == "function")
|
|
40581
40607
|
return wo(o, n);
|
|
@@ -40633,13 +40659,13 @@ function uZ({
|
|
|
40633
40659
|
onModelChange: r,
|
|
40634
40660
|
availableModels: i,
|
|
40635
40661
|
initialInput: s
|
|
40636
|
-
} = Td(), [a, g] = MA(s || ""), [c, l] = MA(!1), Q =
|
|
40662
|
+
} = Td(), [a, g] = MA(s || ""), [c, l] = MA(!1), Q = NA(null), B = () => {
|
|
40637
40663
|
const h = Q.current;
|
|
40638
40664
|
h && (h.style.height = "auto", h.style.height = `${h.scrollHeight}px`);
|
|
40639
40665
|
};
|
|
40640
|
-
|
|
40666
|
+
LA(() => {
|
|
40641
40667
|
B();
|
|
40642
|
-
}, [a]),
|
|
40668
|
+
}, [a]), LA(() => {
|
|
40643
40669
|
s && g(s);
|
|
40644
40670
|
}, []);
|
|
40645
40671
|
const E = (h) => {
|
|
@@ -40677,7 +40703,7 @@ function uZ({
|
|
|
40677
40703
|
),
|
|
40678
40704
|
/* @__PURE__ */ tA("div", { className: "flex items-center justify-between p-3 pt-2", children: [
|
|
40679
40705
|
/* @__PURE__ */ tA("div", { className: "flex items-center gap-2", children: [
|
|
40680
|
-
i && o && r &&
|
|
40706
|
+
i && o && r && Gr(
|
|
40681
40707
|
Nm,
|
|
40682
40708
|
e,
|
|
40683
40709
|
"modelSelector",
|
|
@@ -40689,7 +40715,7 @@ function uZ({
|
|
|
40689
40715
|
),
|
|
40690
40716
|
e?.additionalActions
|
|
40691
40717
|
] }),
|
|
40692
|
-
|
|
40718
|
+
Gr(Nm, e, "submitButton", {
|
|
40693
40719
|
disabled: !a.trim() || n,
|
|
40694
40720
|
type: "submit"
|
|
40695
40721
|
})
|
|
@@ -40956,13 +40982,13 @@ en.prototype.property = "";
|
|
|
40956
40982
|
en.prototype.spaceSeparated = !1;
|
|
40957
40983
|
en.prototype.space = void 0;
|
|
40958
40984
|
let mZ = 0;
|
|
40959
|
-
const
|
|
40985
|
+
const re = ni(), lt = ni(), WF = ni(), hA = ni(), He = ni(), Gi = ni(), on = ni();
|
|
40960
40986
|
function ni() {
|
|
40961
40987
|
return 2 ** ++mZ;
|
|
40962
40988
|
}
|
|
40963
40989
|
const SE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
40964
40990
|
__proto__: null,
|
|
40965
|
-
boolean:
|
|
40991
|
+
boolean: re,
|
|
40966
40992
|
booleanish: lt,
|
|
40967
40993
|
commaOrSpaceSeparated: on,
|
|
40968
40994
|
commaSeparated: Gi,
|
|
@@ -41091,38 +41117,38 @@ const yZ = Is({
|
|
|
41091
41117
|
accessKey: He,
|
|
41092
41118
|
action: null,
|
|
41093
41119
|
allow: null,
|
|
41094
|
-
allowFullScreen:
|
|
41095
|
-
allowPaymentRequest:
|
|
41096
|
-
allowUserMedia:
|
|
41120
|
+
allowFullScreen: re,
|
|
41121
|
+
allowPaymentRequest: re,
|
|
41122
|
+
allowUserMedia: re,
|
|
41097
41123
|
alt: null,
|
|
41098
41124
|
as: null,
|
|
41099
|
-
async:
|
|
41125
|
+
async: re,
|
|
41100
41126
|
autoCapitalize: null,
|
|
41101
41127
|
autoComplete: He,
|
|
41102
|
-
autoFocus:
|
|
41103
|
-
autoPlay:
|
|
41128
|
+
autoFocus: re,
|
|
41129
|
+
autoPlay: re,
|
|
41104
41130
|
blocking: He,
|
|
41105
41131
|
capture: null,
|
|
41106
41132
|
charSet: null,
|
|
41107
|
-
checked:
|
|
41133
|
+
checked: re,
|
|
41108
41134
|
cite: null,
|
|
41109
41135
|
className: He,
|
|
41110
41136
|
cols: hA,
|
|
41111
41137
|
colSpan: null,
|
|
41112
41138
|
content: null,
|
|
41113
41139
|
contentEditable: lt,
|
|
41114
|
-
controls:
|
|
41140
|
+
controls: re,
|
|
41115
41141
|
controlsList: He,
|
|
41116
41142
|
coords: hA | Gi,
|
|
41117
41143
|
crossOrigin: null,
|
|
41118
41144
|
data: null,
|
|
41119
41145
|
dateTime: null,
|
|
41120
41146
|
decoding: null,
|
|
41121
|
-
default:
|
|
41122
|
-
defer:
|
|
41147
|
+
default: re,
|
|
41148
|
+
defer: re,
|
|
41123
41149
|
dir: null,
|
|
41124
41150
|
dirName: null,
|
|
41125
|
-
disabled:
|
|
41151
|
+
disabled: re,
|
|
41126
41152
|
download: WF,
|
|
41127
41153
|
draggable: lt,
|
|
41128
41154
|
encType: null,
|
|
@@ -41132,11 +41158,11 @@ const yZ = Is({
|
|
|
41132
41158
|
formAction: null,
|
|
41133
41159
|
formEncType: null,
|
|
41134
41160
|
formMethod: null,
|
|
41135
|
-
formNoValidate:
|
|
41161
|
+
formNoValidate: re,
|
|
41136
41162
|
formTarget: null,
|
|
41137
41163
|
headers: He,
|
|
41138
41164
|
height: hA,
|
|
41139
|
-
hidden:
|
|
41165
|
+
hidden: re,
|
|
41140
41166
|
high: hA,
|
|
41141
41167
|
href: null,
|
|
41142
41168
|
hrefLang: null,
|
|
@@ -41145,15 +41171,15 @@ const yZ = Is({
|
|
|
41145
41171
|
id: null,
|
|
41146
41172
|
imageSizes: null,
|
|
41147
41173
|
imageSrcSet: null,
|
|
41148
|
-
inert:
|
|
41174
|
+
inert: re,
|
|
41149
41175
|
inputMode: null,
|
|
41150
41176
|
integrity: null,
|
|
41151
41177
|
is: null,
|
|
41152
|
-
isMap:
|
|
41178
|
+
isMap: re,
|
|
41153
41179
|
itemId: null,
|
|
41154
41180
|
itemProp: He,
|
|
41155
41181
|
itemRef: He,
|
|
41156
|
-
itemScope:
|
|
41182
|
+
itemScope: re,
|
|
41157
41183
|
itemType: He,
|
|
41158
41184
|
kind: null,
|
|
41159
41185
|
label: null,
|
|
@@ -41161,7 +41187,7 @@ const yZ = Is({
|
|
|
41161
41187
|
language: null,
|
|
41162
41188
|
list: null,
|
|
41163
41189
|
loading: null,
|
|
41164
|
-
loop:
|
|
41190
|
+
loop: re,
|
|
41165
41191
|
low: hA,
|
|
41166
41192
|
manifest: null,
|
|
41167
41193
|
max: null,
|
|
@@ -41170,12 +41196,12 @@ const yZ = Is({
|
|
|
41170
41196
|
method: null,
|
|
41171
41197
|
min: null,
|
|
41172
41198
|
minLength: hA,
|
|
41173
|
-
multiple:
|
|
41174
|
-
muted:
|
|
41199
|
+
multiple: re,
|
|
41200
|
+
muted: re,
|
|
41175
41201
|
name: null,
|
|
41176
41202
|
nonce: null,
|
|
41177
|
-
noModule:
|
|
41178
|
-
noValidate:
|
|
41203
|
+
noModule: re,
|
|
41204
|
+
noValidate: re,
|
|
41179
41205
|
onAbort: null,
|
|
41180
41206
|
onAfterPrint: null,
|
|
41181
41207
|
onAuxClick: null,
|
|
@@ -41264,31 +41290,31 @@ const yZ = Is({
|
|
|
41264
41290
|
onVolumeChange: null,
|
|
41265
41291
|
onWaiting: null,
|
|
41266
41292
|
onWheel: null,
|
|
41267
|
-
open:
|
|
41293
|
+
open: re,
|
|
41268
41294
|
optimum: hA,
|
|
41269
41295
|
pattern: null,
|
|
41270
41296
|
ping: He,
|
|
41271
41297
|
placeholder: null,
|
|
41272
|
-
playsInline:
|
|
41298
|
+
playsInline: re,
|
|
41273
41299
|
popover: null,
|
|
41274
41300
|
popoverTarget: null,
|
|
41275
41301
|
popoverTargetAction: null,
|
|
41276
41302
|
poster: null,
|
|
41277
41303
|
preload: null,
|
|
41278
|
-
readOnly:
|
|
41304
|
+
readOnly: re,
|
|
41279
41305
|
referrerPolicy: null,
|
|
41280
41306
|
rel: He,
|
|
41281
|
-
required:
|
|
41282
|
-
reversed:
|
|
41307
|
+
required: re,
|
|
41308
|
+
reversed: re,
|
|
41283
41309
|
rows: hA,
|
|
41284
41310
|
rowSpan: hA,
|
|
41285
41311
|
sandbox: He,
|
|
41286
41312
|
scope: null,
|
|
41287
|
-
scoped:
|
|
41288
|
-
seamless:
|
|
41289
|
-
selected:
|
|
41290
|
-
shadowRootClonable:
|
|
41291
|
-
shadowRootDelegatesFocus:
|
|
41313
|
+
scoped: re,
|
|
41314
|
+
seamless: re,
|
|
41315
|
+
selected: re,
|
|
41316
|
+
shadowRootClonable: re,
|
|
41317
|
+
shadowRootDelegatesFocus: re,
|
|
41292
41318
|
shadowRootMode: null,
|
|
41293
41319
|
shape: null,
|
|
41294
41320
|
size: hA,
|
|
@@ -41308,7 +41334,7 @@ const yZ = Is({
|
|
|
41308
41334
|
title: null,
|
|
41309
41335
|
translate: null,
|
|
41310
41336
|
type: null,
|
|
41311
|
-
typeMustMatch:
|
|
41337
|
+
typeMustMatch: re,
|
|
41312
41338
|
useMap: null,
|
|
41313
41339
|
value: lt,
|
|
41314
41340
|
width: hA,
|
|
@@ -41354,9 +41380,9 @@ const yZ = Is({
|
|
|
41354
41380
|
// `<object>`
|
|
41355
41381
|
color: null,
|
|
41356
41382
|
// `<font>` and `<hr>`. Use CSS instead
|
|
41357
|
-
compact:
|
|
41383
|
+
compact: re,
|
|
41358
41384
|
// Lists. Use CSS to reduce space between items instead
|
|
41359
|
-
declare:
|
|
41385
|
+
declare: re,
|
|
41360
41386
|
// `<object>`
|
|
41361
41387
|
event: null,
|
|
41362
41388
|
// `<script>`
|
|
@@ -41380,13 +41406,13 @@ const yZ = Is({
|
|
|
41380
41406
|
// `<body>`
|
|
41381
41407
|
marginWidth: hA,
|
|
41382
41408
|
// `<body>`
|
|
41383
|
-
noResize:
|
|
41409
|
+
noResize: re,
|
|
41384
41410
|
// `<frame>`
|
|
41385
|
-
noHref:
|
|
41411
|
+
noHref: re,
|
|
41386
41412
|
// `<area>`. Use no href instead of an explicit `nohref`
|
|
41387
|
-
noShade:
|
|
41413
|
+
noShade: re,
|
|
41388
41414
|
// `<hr>`. Use background-color and height instead of borders
|
|
41389
|
-
noWrap:
|
|
41415
|
+
noWrap: re,
|
|
41390
41416
|
// `<td>` and `<th>`
|
|
41391
41417
|
object: null,
|
|
41392
41418
|
// `<applet>`
|
|
@@ -41426,8 +41452,8 @@ const yZ = Is({
|
|
|
41426
41452
|
allowTransparency: null,
|
|
41427
41453
|
autoCorrect: null,
|
|
41428
41454
|
autoSave: null,
|
|
41429
|
-
disablePictureInPicture:
|
|
41430
|
-
disableRemotePlayback:
|
|
41455
|
+
disablePictureInPicture: re,
|
|
41456
|
+
disableRemotePlayback: re,
|
|
41431
41457
|
prefix: null,
|
|
41432
41458
|
property: null,
|
|
41433
41459
|
results: hA,
|
|
@@ -41662,7 +41688,7 @@ const yZ = Is({
|
|
|
41662
41688
|
dur: null,
|
|
41663
41689
|
divisor: hA,
|
|
41664
41690
|
dominantBaseline: null,
|
|
41665
|
-
download:
|
|
41691
|
+
download: re,
|
|
41666
41692
|
dx: null,
|
|
41667
41693
|
dy: null,
|
|
41668
41694
|
edgeMode: null,
|
|
@@ -42070,7 +42096,7 @@ function LZ(A) {
|
|
|
42070
42096
|
return A.join(" ").trim();
|
|
42071
42097
|
}
|
|
42072
42098
|
var qd = {}, Lm = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, PZ = /\n/g, SZ = /^\s*/, GZ = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, HZ = /^:\s*/, UZ = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, KZ = /^[;\s]*/, YZ = /^\s+|\s+$/g, TZ = `
|
|
42073
|
-
`, Pm = "/", Sm = "*",
|
|
42099
|
+
`, Pm = "/", Sm = "*", br = "", OZ = "comment", JZ = "declaration", qZ = function(A, e) {
|
|
42074
42100
|
if (typeof A != "string")
|
|
42075
42101
|
throw new TypeError("First argument must be a string");
|
|
42076
42102
|
if (!A) return [];
|
|
@@ -42117,9 +42143,9 @@ var qd = {}, Lm = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, PZ = /\n/g, SZ = /^\s*/, GZ
|
|
|
42117
42143
|
function l() {
|
|
42118
42144
|
var E = r();
|
|
42119
42145
|
if (!(Pm != A.charAt(0) || Sm != A.charAt(1))) {
|
|
42120
|
-
for (var C = 2;
|
|
42146
|
+
for (var C = 2; br != A.charAt(C) && (Sm != A.charAt(C) || Pm != A.charAt(C + 1)); )
|
|
42121
42147
|
++C;
|
|
42122
|
-
if (C += 2,
|
|
42148
|
+
if (C += 2, br === A.charAt(C - 1))
|
|
42123
42149
|
return s("End of comment missing");
|
|
42124
42150
|
var h = A.slice(2, C - 2);
|
|
42125
42151
|
return n += 2, o(h), A = A.slice(C), n += 2, E({
|
|
@@ -42134,8 +42160,8 @@ var qd = {}, Lm = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, PZ = /\n/g, SZ = /^\s*/, GZ
|
|
|
42134
42160
|
if (l(), !a(HZ)) return s("property missing ':'");
|
|
42135
42161
|
var h = a(UZ), I = E({
|
|
42136
42162
|
type: JZ,
|
|
42137
|
-
property: Gm(C[0].replace(Lm,
|
|
42138
|
-
value: h ? Gm(h[0].replace(Lm,
|
|
42163
|
+
property: Gm(C[0].replace(Lm, br)),
|
|
42164
|
+
value: h ? Gm(h[0].replace(Lm, br)) : br
|
|
42139
42165
|
});
|
|
42140
42166
|
return a(KZ), I;
|
|
42141
42167
|
}
|
|
@@ -42150,7 +42176,7 @@ var qd = {}, Lm = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, PZ = /\n/g, SZ = /^\s*/, GZ
|
|
|
42150
42176
|
return g(), B();
|
|
42151
42177
|
};
|
|
42152
42178
|
function Gm(A) {
|
|
42153
|
-
return A ? A.replace(YZ,
|
|
42179
|
+
return A ? A.replace(YZ, br) : br;
|
|
42154
42180
|
}
|
|
42155
42181
|
var WZ = oa && oa.__importDefault || function(A) {
|
|
42156
42182
|
return A && A.__esModule ? A : { default: A };
|
|
@@ -42714,7 +42740,7 @@ function sR(A, e) {
|
|
|
42714
42740
|
function Hn(A) {
|
|
42715
42741
|
return A.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
42716
42742
|
}
|
|
42717
|
-
const Ot =
|
|
42743
|
+
const Ot = Ir(/[A-Za-z]/), Pt = Ir(/[\dA-Za-z]/), R$ = Ir(/[#-'*+\--9=?A-Z^-~]/);
|
|
42718
42744
|
function ul(A) {
|
|
42719
42745
|
return (
|
|
42720
42746
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -42722,7 +42748,7 @@ function ul(A) {
|
|
|
42722
42748
|
A !== null && (A < 32 || A === 127)
|
|
42723
42749
|
);
|
|
42724
42750
|
}
|
|
42725
|
-
const UE =
|
|
42751
|
+
const UE = Ir(/\d/), L$ = Ir(/[\dA-Fa-f]/), P$ = Ir(/[!-/:-@[-`{-~]/);
|
|
42726
42752
|
function JA(A) {
|
|
42727
42753
|
return A !== null && A < -2;
|
|
42728
42754
|
}
|
|
@@ -42732,8 +42758,8 @@ function Pe(A) {
|
|
|
42732
42758
|
function Be(A) {
|
|
42733
42759
|
return A === -2 || A === -1 || A === 32;
|
|
42734
42760
|
}
|
|
42735
|
-
const xB =
|
|
42736
|
-
function
|
|
42761
|
+
const xB = Ir(/\p{P}|\p{S}/u), jr = Ir(/\s/);
|
|
42762
|
+
function Ir(A) {
|
|
42737
42763
|
return e;
|
|
42738
42764
|
function e(t) {
|
|
42739
42765
|
return t !== null && t > -1 && A.test(String.fromCharCode(t));
|
|
@@ -42922,7 +42948,7 @@ function K$(A, e, t) {
|
|
|
42922
42948
|
return fe(A, A.attempt(this.parser.constructs.document, e, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
42923
42949
|
}
|
|
42924
42950
|
function Zi(A) {
|
|
42925
|
-
if (A === null || Pe(A) ||
|
|
42951
|
+
if (A === null || Pe(A) || jr(A))
|
|
42926
42952
|
return 1;
|
|
42927
42953
|
if (xB(A))
|
|
42928
42954
|
return 2;
|
|
@@ -47787,7 +47813,7 @@ function EnA(A) {
|
|
|
47787
47813
|
}
|
|
47788
47814
|
function kR(A, e) {
|
|
47789
47815
|
const t = A.input.charCodeAt(A.index - 1);
|
|
47790
|
-
return (A.index === 0 ||
|
|
47816
|
+
return (A.index === 0 || jr(t) || xB(t)) && // If it’s an email, the previous character should not be a slash.
|
|
47791
47817
|
(!e || t !== 47);
|
|
47792
47818
|
}
|
|
47793
47819
|
NR.peek = mnA;
|
|
@@ -48826,9 +48852,9 @@ function xoA() {
|
|
|
48826
48852
|
text: Bo
|
|
48827
48853
|
};
|
|
48828
48854
|
}
|
|
48829
|
-
let
|
|
48830
|
-
for (;
|
|
48831
|
-
Bo[
|
|
48855
|
+
let Mr = 48;
|
|
48856
|
+
for (; Mr < 123; )
|
|
48857
|
+
Bo[Mr] = Lo, Mr++, Mr === 58 ? Mr = 65 : Mr === 91 && (Mr = 97);
|
|
48832
48858
|
Bo[43] = Lo;
|
|
48833
48859
|
Bo[45] = Lo;
|
|
48834
48860
|
Bo[46] = Lo;
|
|
@@ -48888,7 +48914,7 @@ function RoA(A, e, t) {
|
|
|
48888
48914
|
return l === 47 ? (A.consume(l), r ? g : (r = !0, a)) : t(l);
|
|
48889
48915
|
}
|
|
48890
48916
|
function g(l) {
|
|
48891
|
-
return l === null || ul(l) || Pe(l) ||
|
|
48917
|
+
return l === null || ul(l) || Pe(l) || jr(l) || xB(l) ? t(l) : A.attempt(OR, A.attempt(JR, c), t)(l);
|
|
48892
48918
|
}
|
|
48893
48919
|
function c(l) {
|
|
48894
48920
|
return A.exit("literalAutolinkHttp"), A.exit("literalAutolink"), e(l);
|
|
@@ -48908,7 +48934,7 @@ function PoA(A, e, t) {
|
|
|
48908
48934
|
let n, o, r;
|
|
48909
48935
|
return i;
|
|
48910
48936
|
function i(g) {
|
|
48911
|
-
return g === 46 || g === 95 ? A.check(qR, a, s)(g) : g === null || Pe(g) ||
|
|
48937
|
+
return g === 46 || g === 95 ? A.check(qR, a, s)(g) : g === null || Pe(g) || jr(g) || g !== 45 && xB(g) ? a(g) : (r = !0, A.consume(g), i);
|
|
48912
48938
|
}
|
|
48913
48939
|
function s(g) {
|
|
48914
48940
|
return g === 95 ? n = !0 : (o = n, n = void 0), A.consume(g), i;
|
|
@@ -48921,7 +48947,7 @@ function SoA(A, e) {
|
|
|
48921
48947
|
let t = 0, n = 0;
|
|
48922
48948
|
return o;
|
|
48923
48949
|
function o(i) {
|
|
48924
|
-
return i === 40 ? (t++, A.consume(i), o) : i === 41 && n < t ? r(i) : i === 33 || i === 34 || i === 38 || i === 39 || i === 41 || i === 42 || i === 44 || i === 46 || i === 58 || i === 59 || i === 60 || i === 63 || i === 93 || i === 95 || i === 126 ? A.check(qR, e, r)(i) : i === null || Pe(i) ||
|
|
48950
|
+
return i === 40 ? (t++, A.consume(i), o) : i === 41 && n < t ? r(i) : i === 33 || i === 34 || i === 38 || i === 39 || i === 41 || i === 42 || i === 44 || i === 46 || i === 58 || i === 59 || i === 60 || i === 63 || i === 93 || i === 95 || i === 126 ? A.check(qR, e, r)(i) : i === null || Pe(i) || jr(i) ? e(i) : (A.consume(i), o);
|
|
48925
48951
|
}
|
|
48926
48952
|
function r(i) {
|
|
48927
48953
|
return i === 41 && n++, A.consume(i), o;
|
|
@@ -48933,11 +48959,11 @@ function GoA(A, e, t) {
|
|
|
48933
48959
|
return s === 33 || s === 34 || s === 39 || s === 41 || s === 42 || s === 44 || s === 46 || s === 58 || s === 59 || s === 63 || s === 95 || s === 126 ? (A.consume(s), n) : s === 38 ? (A.consume(s), r) : s === 93 ? (A.consume(s), o) : (
|
|
48934
48960
|
// `<` is an end.
|
|
48935
48961
|
s === 60 || // So is whitespace.
|
|
48936
|
-
s === null || Pe(s) ||
|
|
48962
|
+
s === null || Pe(s) || jr(s) ? e(s) : t(s)
|
|
48937
48963
|
);
|
|
48938
48964
|
}
|
|
48939
48965
|
function o(s) {
|
|
48940
|
-
return s === null || s === 40 || s === 91 || Pe(s) ||
|
|
48966
|
+
return s === null || s === 40 || s === 91 || Pe(s) || jr(s) ? e(s) : n(s);
|
|
48941
48967
|
}
|
|
48942
48968
|
function r(s) {
|
|
48943
48969
|
return Ot(s) ? i(s) : t(s);
|
|
@@ -49535,7 +49561,7 @@ function arA({
|
|
|
49535
49561
|
);
|
|
49536
49562
|
}
|
|
49537
49563
|
const _R = "Tool call error", ZR = "User rejected tool call";
|
|
49538
|
-
function
|
|
49564
|
+
function XiA({
|
|
49539
49565
|
executeToolCall: A,
|
|
49540
49566
|
requiresApproval: e
|
|
49541
49567
|
}) {
|
|
@@ -49588,9 +49614,9 @@ function grA({
|
|
|
49588
49614
|
components: t
|
|
49589
49615
|
}) {
|
|
49590
49616
|
const { state: n, toolCallId: o, args: r, result: i } = A, [s, a] = MA(!1), { toolCallApproval: g } = Td(), c = o === g?.pendingToolCall?.toolCallId;
|
|
49591
|
-
|
|
49617
|
+
LA(() => {
|
|
49592
49618
|
c && a(!0);
|
|
49593
|
-
}, [c]),
|
|
49619
|
+
}, [c]), LA(() => {
|
|
49594
49620
|
a(n !== "result");
|
|
49595
49621
|
}, [n]);
|
|
49596
49622
|
const l = (B) => typeof B == "string" ? B : typeof B == "object" && B !== null ? JSON.stringify(B, null, 2) : String(B), Q = HA(() => c ? "pending" : n === "call" ? "in-progress" : n === "result" ? l(i).includes(_R) || l(i).includes(ZR) ? "error" : "success" : "pending", [n, c, i]);
|
|
@@ -49611,10 +49637,10 @@ function grA({
|
|
|
49611
49637
|
"border-b": s
|
|
49612
49638
|
}),
|
|
49613
49639
|
children: [
|
|
49614
|
-
/* @__PURE__ */ u("div", { className: "relative flex h-6 w-6 items-center justify-center", children:
|
|
49640
|
+
/* @__PURE__ */ u("div", { className: "relative flex h-6 w-6 items-center justify-center", children: Gr(rc, t, "statusIndicator", {
|
|
49615
49641
|
status: Q
|
|
49616
49642
|
}) }),
|
|
49617
|
-
|
|
49643
|
+
Gr(rc, t, "toolName", {
|
|
49618
49644
|
...A,
|
|
49619
49645
|
confirmMessage: g?.pendingToolCall?.confirmMessage
|
|
49620
49646
|
}),
|
|
@@ -49703,7 +49729,7 @@ function grA({
|
|
|
49703
49729
|
expanded: { y: 0, opacity: 1 },
|
|
49704
49730
|
collapsed: { y: -10, opacity: 0 }
|
|
49705
49731
|
},
|
|
49706
|
-
children:
|
|
49732
|
+
children: Gr(rc, t, "input", {
|
|
49707
49733
|
...A,
|
|
49708
49734
|
args: JSON.stringify(
|
|
49709
49735
|
r,
|
|
@@ -49720,7 +49746,7 @@ function grA({
|
|
|
49720
49746
|
expanded: { y: 0, opacity: 1 },
|
|
49721
49747
|
collapsed: { y: -10, opacity: 0 }
|
|
49722
49748
|
},
|
|
49723
|
-
children:
|
|
49749
|
+
children: Gr(rc, t, "result", {
|
|
49724
49750
|
...A,
|
|
49725
49751
|
result: l(i)
|
|
49726
49752
|
})
|
|
@@ -49922,7 +49948,7 @@ function BrA({
|
|
|
49922
49948
|
components: t
|
|
49923
49949
|
}) {
|
|
49924
49950
|
return /* @__PURE__ */ u("li", { role: "listitem", className: $("px-4 py-3", e), children: /* @__PURE__ */ tA("div", { className: "flex items-start gap-2", children: [
|
|
49925
|
-
/* @__PURE__ */ u("div", { className: "flex-shrink-0", children:
|
|
49951
|
+
/* @__PURE__ */ u("div", { className: "flex-shrink-0", children: Gr(
|
|
49926
49952
|
lrA,
|
|
49927
49953
|
t?.avatar,
|
|
49928
49954
|
A.role,
|
|
@@ -49971,8 +49997,8 @@ function QrA({
|
|
|
49971
49997
|
components: A,
|
|
49972
49998
|
className: e
|
|
49973
49999
|
}) {
|
|
49974
|
-
const { messages: t } = Td(), n =
|
|
49975
|
-
return
|
|
50000
|
+
const { messages: t } = Td(), n = NA(null);
|
|
50001
|
+
return LA(() => {
|
|
49976
50002
|
n.current?.scrollIntoView({ behavior: "smooth" });
|
|
49977
50003
|
}, [t]), /* @__PURE__ */ tA("ul", { role: "log", className: $("h-full overflow-y-auto", e), children: [
|
|
49978
50004
|
t.map((o) => /* @__PURE__ */ u(
|
|
@@ -49986,7 +50012,7 @@ function QrA({
|
|
|
49986
50012
|
/* @__PURE__ */ u("div", { ref: n })
|
|
49987
50013
|
] });
|
|
49988
50014
|
}
|
|
49989
|
-
function
|
|
50015
|
+
function _iA({
|
|
49990
50016
|
messages: A,
|
|
49991
50017
|
isLoading: e,
|
|
49992
50018
|
onSendMessage: t,
|
|
@@ -50018,7 +50044,7 @@ function XiA({
|
|
|
50018
50044
|
}
|
|
50019
50045
|
);
|
|
50020
50046
|
}
|
|
50021
|
-
const
|
|
50047
|
+
const ZiA = {
|
|
50022
50048
|
// TODO: This component is not yet reusable, it's only for use on the SDK Overview page right now
|
|
50023
50049
|
// TODO: needs light mode tweaks too.
|
|
50024
50050
|
CLIWizard: e9
|
|
@@ -50063,58 +50089,59 @@ export {
|
|
|
50063
50089
|
LrA as a7,
|
|
50064
50090
|
NiA as a8,
|
|
50065
50091
|
qk as a9,
|
|
50066
|
-
|
|
50067
|
-
|
|
50068
|
-
|
|
50069
|
-
|
|
50070
|
-
|
|
50071
|
-
|
|
50072
|
-
|
|
50073
|
-
|
|
50074
|
-
|
|
50075
|
-
|
|
50076
|
-
|
|
50077
|
-
|
|
50078
|
-
|
|
50079
|
-
|
|
50080
|
-
|
|
50081
|
-
|
|
50082
|
-
|
|
50083
|
-
|
|
50084
|
-
|
|
50085
|
-
|
|
50086
|
-
|
|
50087
|
-
|
|
50088
|
-
|
|
50089
|
-
|
|
50090
|
-
|
|
50092
|
+
brA as aA,
|
|
50093
|
+
X6 as aB,
|
|
50094
|
+
A7 as aC,
|
|
50095
|
+
wk as aD,
|
|
50096
|
+
fk as aE,
|
|
50097
|
+
t7 as aF,
|
|
50098
|
+
CiA as aG,
|
|
50099
|
+
QiA as aH,
|
|
50100
|
+
_6 as aI,
|
|
50101
|
+
uiA as aJ,
|
|
50102
|
+
EiA as aK,
|
|
50103
|
+
Z6 as aL,
|
|
50104
|
+
$6 as aM,
|
|
50105
|
+
e7 as aN,
|
|
50106
|
+
Dk as aO,
|
|
50107
|
+
n7 as aP,
|
|
50108
|
+
ViA as aQ,
|
|
50109
|
+
WiA as aR,
|
|
50110
|
+
KF as aS,
|
|
50111
|
+
ziA as aT,
|
|
50112
|
+
Vj as aU,
|
|
50113
|
+
jiA as aV,
|
|
50114
|
+
_iA as aW,
|
|
50115
|
+
BrA as aX,
|
|
50116
|
+
uZ as aY,
|
|
50117
|
+
XiA as aZ,
|
|
50091
50118
|
qH as aa,
|
|
50092
50119
|
aq as ab,
|
|
50093
50120
|
biA as ac,
|
|
50094
50121
|
bn as ad,
|
|
50095
50122
|
PiA as ae,
|
|
50096
|
-
|
|
50123
|
+
Er as af,
|
|
50097
50124
|
SiA as ag,
|
|
50098
|
-
|
|
50099
|
-
|
|
50100
|
-
|
|
50101
|
-
|
|
50102
|
-
|
|
50125
|
+
GiA as ah,
|
|
50126
|
+
$c as ai,
|
|
50127
|
+
FiA as aj,
|
|
50128
|
+
HiA as ak,
|
|
50129
|
+
v_ as al,
|
|
50103
50130
|
UiA as am,
|
|
50104
50131
|
KiA as an,
|
|
50105
|
-
|
|
50132
|
+
YiA as ao,
|
|
50106
50133
|
OiA as ap,
|
|
50107
50134
|
JiA as aq,
|
|
50108
|
-
|
|
50109
|
-
|
|
50110
|
-
|
|
50111
|
-
|
|
50112
|
-
|
|
50113
|
-
|
|
50114
|
-
|
|
50115
|
-
|
|
50116
|
-
|
|
50117
|
-
|
|
50135
|
+
qiA as ar,
|
|
50136
|
+
$r as as,
|
|
50137
|
+
vC as at,
|
|
50138
|
+
Mn as au,
|
|
50139
|
+
pM as av,
|
|
50140
|
+
yC as aw,
|
|
50141
|
+
MC as ax,
|
|
50142
|
+
WH as ay,
|
|
50143
|
+
VH as az,
|
|
50144
|
+
ZiA as b,
|
|
50118
50145
|
$ as c,
|
|
50119
50146
|
ZE as d,
|
|
50120
50147
|
CP as e,
|
|
@@ -50140,4 +50167,4 @@ export {
|
|
|
50140
50167
|
KL as y,
|
|
50141
50168
|
hrA as z
|
|
50142
50169
|
};
|
|
50143
|
-
//# sourceMappingURL=index-
|
|
50170
|
+
//# sourceMappingURL=index-DI35fZKr.mjs.map
|