@marimo-team/islands 0.25.3-dev197 → 0.25.3-dev198
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/{ConnectedDataExplorerComponent-BRuwLOIx.js → ConnectedDataExplorerComponent-BsWiIPFk.js} +4 -4
- package/dist/{ErrorBoundary-jQVF8yMb.js → ErrorBoundary-D1Z3KAf_.js} +2 -2
- package/dist/{abnfDiagram-VCTEODGH-LlJTOOU_.js → abnfDiagram-VCTEODGH-I2x4Yu25.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-9PQtGLLZ.js → architectureDiagram-5GKGNRK7-1bSQMKzK.js} +1 -1
- package/dist/{arrays-DA6KkLfq.js → arrays-DoQ-AILx.js} +7 -21
- package/dist/{capabilities-CvWU-ey_.js → capabilities-C2QUNRXi.js} +1 -1
- package/dist/{chat-ui-Bl2euMBD.js → chat-ui-BAyHM_GD.js} +524 -524
- package/dist/{chunk-IMKFNOWR-DcXv-BD5.js → chunk-IMKFNOWR-fsCGAJ9G.js} +1 -1
- package/dist/{chunk-SHT3W25Y-VwnELN23.js → chunk-SHT3W25Y-D2STW4hj.js} +1 -1
- package/dist/{chunk-SVP7TREG-DgQpI5Zi.js → chunk-SVP7TREG-CiY7cQG-.js} +1 -1
- package/dist/{chunk-TICWLB2K-CTg6VTJT.js → chunk-TICWLB2K-C_t5RBp9.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-UzmcFrnW.js → classDiagram-ZZMXUADV-B2JvZAP4.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DhjiI6IQ.js → classDiagram-v2-VYDZK3BY-L8VsZG5A.js} +2 -2
- package/dist/{code-visibility-CjZo_SV8.js → code-visibility-CInEQd1e.js} +19 -19
- package/dist/{common-CFLvScF3.js → common-W5HfVJPN.js} +4362 -4362
- package/dist/{cynefinDiagram-5FMLGOSQ-O4ShIbJX.js → cynefinDiagram-5FMLGOSQ-DdllC264.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-dtHhhcPu.js → dagre-GXQ25YYZ-BaWHw4_f.js} +1 -1
- package/dist/{data-grid-overlay-editor-CzW3mY6m.js → data-grid-overlay-editor-BQCaV0fI.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-ppPYVZ6W.js → diagram-S7CK7UJ4-pFt-tUDe.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CMZDf--k.js → diagram-UQ7AKVKN-DqGJiBp4.js} +1 -1
- package/dist/{diagram-VX7I27RA-CFvJdx-C.js → diagram-VX7I27RA-Dr-yzMjf.js} +1 -1
- package/dist/{diagram-Z3DM3KII-Dt6_uFbv.js → diagram-Z3DM3KII-8xzJzv-w.js} +1 -1
- package/dist/{dropdown-menu-CeaOsjWZ.js → dropdown-menu-NlnsmNA6.js} +2 -2
- package/dist/{ebnfDiagram-PWID7BFC-DpRFrKK-.js → ebnfDiagram-PWID7BFC-Br04Wy-E.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-CqAU4b0u.js → erDiagram-RLTQ6QDP-D5-XVgvv.js} +1 -1
- package/dist/{error-entries-CYGwr5-O.js → error-entries-BacCWMWj.js} +4678 -5028
- package/dist/{feedback-button-GR_8U4Vo.js → feedback-button-DLXUcQ7l.js} +113 -113
- package/dist/{flowDiagram-HODETNUW-i8-Gw8HO.js → flowDiagram-HODETNUW-CVl2kREF.js} +2 -2
- package/dist/{formats-BtoHHy42.js → formats-BCYthwyc.js} +1 -1
- package/dist/{glide-data-editor-Dfdxc22H.js → glide-data-editor-D5YaHPKx.js} +5 -5
- package/dist/{globals-CxjzBEbP.js → globals-DjX1uxzy.js} +2 -2
- package/dist/{html-to-image-Cy5UDpQJ.js → html-to-image-DAmgSo5P.js} +624 -573
- package/dist/{infoDiagram-27XIBGKW-DpfOKdLL.js → infoDiagram-27XIBGKW-BJ4vNcZE.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-Dg7mrMG7.js → ishikawaDiagram-5VMMS53U-B_Jy1Dsm.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-QB6e3Jrj.js → kanban-definition-UXKFOSKX-C6MkS9vw.js} +1 -1
- package/dist/main.js +1117 -1117
- package/dist/{mermaid-CeWG4Egr.js → mermaid-Bh918qrq.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-BTz3uTGe.js → mindmap-definition-YA3MSWOX-BP3ZTuir.js} +1 -1
- package/dist/{number-overlay-editor-CwHYeI4e.js → number-overlay-editor-3C_K6w_0.js} +1 -1
- package/dist/{once-DWGO2mQ2.js → once-NnpX_HnX.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-3ZIEa3mB.js → pegDiagram-XKGWAZYB-nNGOQtnt.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BJAlk046.js → pieDiagram-E7YTZNPT-CpRz5BZz.js} +1 -1
- package/dist/{process-output-q9MTAIMX.js → process-output-DweUmAmV.js} +3 -3
- package/dist/{railroadDiagram-O6MQD6OU-Dn3bsSRa.js → railroadDiagram-O6MQD6OU-BqOEN4I0.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-wcOmQQCL.js → requirementDiagram-BXWQKSXE-CEfg6vu9.js} +1 -1
- package/dist/{reveal-component-C5bOqXlB.js → reveal-component-JjJRTT9d.js} +17 -17
- package/dist/{sequenceDiagram-WJ2MYXX4-DSh_qxoF.js → sequenceDiagram-WJ2MYXX4-IOmpQcOi.js} +1 -1
- package/dist/{spec-C7Fos-If.js → spec-Dkp64vVQ.js} +1 -1
- package/dist/{stateDiagram-D77RDMKH-DH_H8NMH.js → stateDiagram-D77RDMKH-tgU-EY9_.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-D_JM7MEK.js → stateDiagram-v2-MP3YSRHH-BofhG6q1.js} +2 -2
- package/dist/{swimlanes-42K2YHIH-CfoTJO-9.js → swimlanes-42K2YHIH-DW4vWDBd.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-Z_QhvK0G.js → swimlanesDiagram-VR7AAH4N-BJcrqUJr.js} +2 -2
- package/dist/{swiper-component-D2geL1Ku.js → swiper-component-BVfnhbnt.js} +1 -1
- package/dist/{timeline-definition-24CTP7MA-BFtdScaL.js → timeline-definition-24CTP7MA-D_QU3NGs.js} +1 -1
- package/dist/{toDate-CQAFSwos.js → toDate-BNDEXbfV.js} +30 -30
- package/dist/{useAsyncData-BeyZyjso.js → useAsyncData-ASDni9vH.js} +1 -1
- package/dist/{useDeepCompareMemoize-DOQgae0W.js → useDeepCompareMemoize-B1Ogyf53.js} +1 -1
- package/dist/{useIframeCapabilities-DNvaj9wM.js → useIframeCapabilities-6a_yDNXp.js} +1 -1
- package/dist/{useLifecycle-n2lnCFS8.js → useLifecycle-Bfpa2m7k.js} +1 -1
- package/dist/{useTheme-CY777LXN.js → useTheme-5TwyOh3B.js} +66 -66
- package/dist/{vega-component-0nQzA-I8.js → vega-component-BHS9UOtC.js} +19 -19
- package/dist/{vennDiagram-4TSXK5OY-BXY8IGCA.js → vennDiagram-4TSXK5OY-YFYsNIAh.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-D0tFe6eC.js → wardleyDiagram-VM6X3IG4-i_n8mAWC.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-Dx8wFM-y.js → xychartDiagram-S5SC5T6Z-BYGN95wW.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/document.tsx +13 -4
- package/src/__mocks__/notebook.ts +1 -2
- package/src/components/datasources/datasources.tsx +1 -1
- package/src/components/dependency-graph/custom-node.tsx +1 -1
- package/src/components/dependency-graph/minimap-content.tsx +12 -14
- package/src/components/editor/actions/useSetCodeVisibility.ts +1 -1
- package/src/components/editor/actions/useSetOutputsExpanded.ts +1 -1
- package/src/components/editor/alerts/stdin-blocking-alert.tsx +1 -1
- package/src/components/editor/cell/code/cell-editor.tsx +1 -1
- package/src/components/editor/cell/useSplitCell.tsx +8 -5
- package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/session-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/variable-panel.tsx +1 -5
- package/src/components/editor/chrome/wrapper/minimap-state.ts +1 -1
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +1 -1
- package/src/components/editor/columns/cell-column.tsx +1 -1
- package/src/components/editor/columns/sortable-column.tsx +1 -1
- package/src/components/editor/links/__tests__/cell-link.test.tsx +1 -1
- package/src/components/editor/links/cell-link-list.tsx +1 -1
- package/src/components/editor/links/cell-link.tsx +1 -1
- package/src/components/editor/navigation/__tests__/navigation.test.ts +20 -6
- package/src/components/editor/navigation/__tests__/selection.test.ts +1 -2
- package/src/components/editor/navigation/clipboard.ts +5 -3
- package/src/components/editor/renderers/cell-array.tsx +7 -12
- package/src/components/editor/renderers/slides-layout/slides-layout.tsx +1 -1
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +4 -4
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +1 -1
- package/src/components/editor/stdin-blocking-alert.tsx +1 -1
- package/src/components/slides/__tests__/minimap-actions.test.tsx +13 -4
- package/src/components/slides/__tests__/minimap.test.ts +38 -19
- package/src/components/slides/minimap.tsx +11 -10
- package/src/components/sort/SortableCellsProvider.tsx +2 -21
- package/src/components/tracing/tracing.tsx +1 -1
- package/src/core/ai/__tests__/staged-cells.test.ts +1 -1
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +8 -12
- package/src/core/ai/context/providers/cell-output.ts +2 -2
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +34 -66
- package/src/core/ai/tools/edit-notebook-tool.ts +12 -10
- package/src/core/cells/__tests__/actions.test.ts +64 -25
- package/src/core/cells/__tests__/arrange.test.ts +156 -4
- package/src/core/cells/__tests__/cells.test.ts +12 -290
- package/src/core/cells/__tests__/document.test.ts +2 -46
- package/src/core/cells/__tests__/harness.ts +28 -4
- package/src/core/cells/__tests__/layout.test.ts +42 -54
- package/src/core/cells/__tests__/session.test.ts +0 -2
- package/src/core/cells/__tests__/utils.test.ts +9 -107
- package/src/core/cells/actions.ts +112 -26
- package/src/core/cells/add-missing-import.ts +1 -1
- package/src/core/cells/arrange.ts +206 -13
- package/src/core/cells/cells.ts +28 -256
- package/src/core/cells/document.ts +18 -122
- package/src/core/cells/layout.ts +79 -10
- package/src/core/cells/pending-delete-service.ts +1 -1
- package/src/core/cells/utils.ts +4 -4
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +6 -7
- package/src/core/codemirror/copilot/getCodes.ts +2 -2
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -2
- package/src/core/codemirror/lsp/utils.ts +1 -1
- package/src/core/documentation/doc-lookup.ts +1 -1
- package/src/core/edit-app.tsx +2 -5
- package/src/core/errors/error-entries.ts +1 -1
- package/src/core/islands/__tests__/bootstrap.test.ts +2 -6
- package/src/core/islands/components/web-components.tsx +1 -1
- package/src/core/notebook/document/__tests__/codemirror.test.ts +8 -0
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +1 -1
- package/src/stories/cell.stories.tsx +1 -2
- package/src/stories/layout/vertical/one-column.stories.tsx +1 -2
- package/src/stories/runtime-story.tsx +2 -3
- package/src/utils/__tests__/id-tree.test.ts +0 -617
- package/src/utils/id-tree.tsx +0 -609
|
@@ -5,17 +5,17 @@ import { t as l } from "./compiler-runtime-CldRdSsv.js";
|
|
|
5
5
|
import { n as u, t as d } from "./copy-icon-De584pZ4.js";
|
|
6
6
|
import { a as f, c as p, l as m, s as h, t as g } from "./chunk-YOKDWASO-DKplTrBY.js";
|
|
7
7
|
import { c as _, l as v, m as y, s as b, t as x, u as ee } from "./tooltip-s4zZxwKe.js";
|
|
8
|
-
import { $
|
|
9
|
-
import { D as
|
|
10
|
-
import { J as
|
|
11
|
-
import { m as
|
|
12
|
-
import { t as
|
|
13
|
-
import { $ as
|
|
14
|
-
import { F as
|
|
15
|
-
import { G as
|
|
16
|
-
import { t as
|
|
8
|
+
import { $ as te, $t as ne, B as re, Bt as ie, E as ae, Ft as oe, It as se, Lt as ce, Ot as le, Pt as ue, Rt as de, T as fe, a as pe, d as me, j as he, nt as ge, q as _e, z as ve } from "./error-entries-BacCWMWj.js";
|
|
9
|
+
import { D as ye, M as be, k as xe } from "./select-2KOiReNY.js";
|
|
10
|
+
import { J as Se, pt as Ce } from "./dropdown-menu-NlnsmNA6.js";
|
|
11
|
+
import { m as we, y as Te } from "./toDate-BNDEXbfV.js";
|
|
12
|
+
import { t as Ee } from "./jsx-runtime-3BD1kT0s.js";
|
|
13
|
+
import { $ as De, Ct as S, Dt as Oe, Et as C, Ot as ke, Q as Ae, Tt as w, Y as je, _t as Me, bt as Ne, dt as Pe, ft as Fe, gt as Ie, ht as Le, kt as T, mt as Re, tt as ze, vt as Be, wt as Ve, yt as He } from "./use-restore-focus-BgDTd2tc.js";
|
|
14
|
+
import { C as Ue, F as We, M as E, N as Ge, O as Ke, R as qe, b as Je, l as Ye, n as Xe } from "./useTheme-5TwyOh3B.js";
|
|
15
|
+
import { G as Ze } from "./dist-BmS-ZGjl.js";
|
|
16
|
+
import { t as Qe } from "./useAsyncData-ASDni9vH.js";
|
|
17
17
|
//#region ../node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js
|
|
18
|
-
var
|
|
18
|
+
var $e = /* @__PURE__ */ t(((e) => {
|
|
19
19
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
|
|
20
20
|
var t;
|
|
21
21
|
(function(e) {
|
|
@@ -25,7 +25,7 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
25
25
|
return e.type === t.Tag || e.type === t.Script || e.type === t.Style;
|
|
26
26
|
}
|
|
27
27
|
e.isTag = n, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype;
|
|
28
|
-
})),
|
|
28
|
+
})), et = /* @__PURE__ */ t(((e) => {
|
|
29
29
|
var t = e && e.__extends || (function() {
|
|
30
30
|
var e = function(t, n) {
|
|
31
31
|
return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
@@ -49,7 +49,7 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
49
49
|
}, n.apply(this, arguments);
|
|
50
50
|
};
|
|
51
51
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.cloneNode = e.hasChildren = e.isDocument = e.isDirective = e.isComment = e.isText = e.isCDATA = e.isTag = e.Element = e.Document = e.CDATA = e.NodeWithChildren = e.ProcessingInstruction = e.Comment = e.Text = e.DataNode = e.Node = void 0;
|
|
52
|
-
var r =
|
|
52
|
+
var r = $e(), i = function() {
|
|
53
53
|
function e() {
|
|
54
54
|
this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
|
|
55
55
|
}
|
|
@@ -308,7 +308,7 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
308
308
|
}), n = 1; n < t.length; n++) t[n].prev = t[n - 1], t[n - 1].next = t[n];
|
|
309
309
|
return t;
|
|
310
310
|
}
|
|
311
|
-
})),
|
|
311
|
+
})), tt = /* @__PURE__ */ t(((e) => {
|
|
312
312
|
var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
313
313
|
r === void 0 && (r = n);
|
|
314
314
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
@@ -324,8 +324,8 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
324
324
|
for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && t(n, e, r);
|
|
325
325
|
};
|
|
326
326
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
|
|
327
|
-
var r =
|
|
328
|
-
n(
|
|
327
|
+
var r = $e(), i = et();
|
|
328
|
+
n(et(), e);
|
|
329
329
|
var a = {
|
|
330
330
|
withStartIndices: !1,
|
|
331
331
|
withEndIndices: !1,
|
|
@@ -382,13 +382,13 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
382
382
|
}, e;
|
|
383
383
|
}();
|
|
384
384
|
e.DomHandler = o, e.default = o;
|
|
385
|
-
})),
|
|
385
|
+
})), nt = /* @__PURE__ */ t(((e) => {
|
|
386
386
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = e.CARRIAGE_RETURN_PLACEHOLDER = e.CARRIAGE_RETURN_REGEX = e.CARRIAGE_RETURN = e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES = void 0, e.CASE_SENSITIVE_TAG_NAMES = /* @__PURE__ */ "animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath".split("."), e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES.reduce(function(e, t) {
|
|
387
387
|
return e[t.toLowerCase()] = t, e;
|
|
388
388
|
}, {}), e.CARRIAGE_RETURN = "\r", e.CARRIAGE_RETURN_REGEX = new RegExp(e.CARRIAGE_RETURN, "g"), e.CARRIAGE_RETURN_PLACEHOLDER = `__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now().toString()}__`, e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER, "g");
|
|
389
|
-
})),
|
|
389
|
+
})), rt = /* @__PURE__ */ t(((e) => {
|
|
390
390
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatAttributes = i, e.hasOpenTag = o, e.escapeSpecialCharacters = s, e.revertEscapedCharacters = c, e.formatDOM = l;
|
|
391
|
-
var t =
|
|
391
|
+
var t = tt(), n = nt();
|
|
392
392
|
function r(e) {
|
|
393
393
|
return n.CASE_SENSITIVE_TAG_NAMES_MAP[e];
|
|
394
394
|
}
|
|
@@ -436,9 +436,9 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
436
436
|
}
|
|
437
437
|
return r && (s = new t.ProcessingInstruction(r.substring(0, r.indexOf(" ")).toLowerCase(), r), s.next = o[0] ?? null, s.parent = n, o.unshift(s), o[1] && (o[1].prev = o[0])), o;
|
|
438
438
|
}
|
|
439
|
-
})),
|
|
439
|
+
})), it = /* @__PURE__ */ t(((e) => {
|
|
440
440
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = h;
|
|
441
|
-
var t =
|
|
441
|
+
var t = rt(), n = "html", r = "head", i = "body", a = /<([a-zA-Z]+[0-9]?)/, o = function(e, t) {
|
|
442
442
|
throw Error("This browser does not support `document.implementation.createHTMLDocument`");
|
|
443
443
|
}, s = function(e, t) {
|
|
444
444
|
throw Error("This browser does not support `DOMParser.prototype.parseFromString`");
|
|
@@ -497,19 +497,19 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
497
497
|
return f?.childNodes ?? m();
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
})),
|
|
500
|
+
})), at = /* @__PURE__ */ t(((e) => {
|
|
501
501
|
var t = e && e.__importDefault || function(e) {
|
|
502
502
|
return e && e.__esModule ? e : { default: e };
|
|
503
503
|
};
|
|
504
504
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = a;
|
|
505
|
-
var n = t(
|
|
505
|
+
var n = t(it()), r = rt(), i = /<(![a-zA-Z\s]+)>/;
|
|
506
506
|
function a(e) {
|
|
507
507
|
if (typeof e != "string") throw TypeError("First argument must be a string");
|
|
508
508
|
if (!e) return [];
|
|
509
509
|
var t = i.exec(e), a = t ? t[1] : void 0;
|
|
510
510
|
return (0, r.formatDOM)((0, n.default)(e), null, a);
|
|
511
511
|
}
|
|
512
|
-
})),
|
|
512
|
+
})), ot = /* @__PURE__ */ t(((e) => {
|
|
513
513
|
e.SAME = 0, e.CAMELCASE = 1, e.possibleStandardNames = {
|
|
514
514
|
accept: 0,
|
|
515
515
|
acceptCharset: 1,
|
|
@@ -995,7 +995,7 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
995
995
|
z: 0,
|
|
996
996
|
zoomAndPan: 1
|
|
997
997
|
};
|
|
998
|
-
})),
|
|
998
|
+
})), st = /* @__PURE__ */ t(((e) => {
|
|
999
999
|
var t = 0, n = 1, r = 2, i = 3, a = 4, o = 5, s = 6;
|
|
1000
1000
|
function c(e) {
|
|
1001
1001
|
return u.hasOwnProperty(e) ? u[e] : null;
|
|
@@ -1114,12 +1114,12 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
1114
1114
|
].forEach((e) => {
|
|
1115
1115
|
u[e] = new l(e, n, !1, e.toLowerCase(), null, !0, !0);
|
|
1116
1116
|
});
|
|
1117
|
-
var { CAMELCASE: m, SAME: h, possibleStandardNames: g } =
|
|
1117
|
+
var { CAMELCASE: m, SAME: h, possibleStandardNames: g } = ot(), _ = RegExp.prototype.test.bind(/* @__PURE__ */ RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")), v = Object.keys(g).reduce((e, t) => {
|
|
1118
1118
|
let n = g[t];
|
|
1119
1119
|
return n === h ? e[t] = t : n === m ? e[t.toLowerCase()] = t : e[t] = n, e;
|
|
1120
1120
|
}, {});
|
|
1121
1121
|
e.BOOLEAN = i, e.BOOLEANISH_STRING = r, e.NUMERIC = o, e.OVERLOADED_BOOLEAN = a, e.POSITIVE_NUMERIC = s, e.RESERVED = t, e.STRING = n, e.getPropertyInfo = c, e.isCustomAttribute = _, e.possibleStandardNames = v;
|
|
1122
|
-
})),
|
|
1122
|
+
})), ct = /* @__PURE__ */ t(((e) => {
|
|
1123
1123
|
var t = e && e.__importDefault || function(e) {
|
|
1124
1124
|
return e && e.__esModule ? e : { default: e };
|
|
1125
1125
|
};
|
|
@@ -1166,9 +1166,9 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
1166
1166
|
}, e.returnFirstArg = function(e) {
|
|
1167
1167
|
return e;
|
|
1168
1168
|
};
|
|
1169
|
-
})),
|
|
1169
|
+
})), lt = /* @__PURE__ */ t(((e) => {
|
|
1170
1170
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = o;
|
|
1171
|
-
var t =
|
|
1171
|
+
var t = st(), n = ct(), r = ["checked", "value"], i = [
|
|
1172
1172
|
"input",
|
|
1173
1173
|
"select",
|
|
1174
1174
|
"textarea"
|
|
@@ -1203,12 +1203,12 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
1203
1203
|
function s(e) {
|
|
1204
1204
|
return t.possibleStandardNames[e];
|
|
1205
1205
|
}
|
|
1206
|
-
})),
|
|
1206
|
+
})), ut = /* @__PURE__ */ t(((e) => {
|
|
1207
1207
|
var t = e && e.__importDefault || function(e) {
|
|
1208
1208
|
return e && e.__esModule ? e : { default: e };
|
|
1209
1209
|
};
|
|
1210
1210
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = o;
|
|
1211
|
-
var n = c(), r = t(
|
|
1211
|
+
var n = c(), r = t(lt()), i = ct(), a = {
|
|
1212
1212
|
cloneElement: n.cloneElement,
|
|
1213
1213
|
createElement: n.createElement,
|
|
1214
1214
|
isValidElement: n.isValidElement
|
|
@@ -1250,16 +1250,16 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
1250
1250
|
function s(e) {
|
|
1251
1251
|
return i.PRESERVE_CUSTOM_ATTRIBUTES && e.type === "tag" && (0, i.isCustomComponent)(e.name, e.attribs);
|
|
1252
1252
|
}
|
|
1253
|
-
})),
|
|
1253
|
+
})), dt = /* @__PURE__ */ t(((e) => {
|
|
1254
1254
|
var t = e && e.__importDefault || function(e) {
|
|
1255
1255
|
return e && e.__esModule ? e : { default: e };
|
|
1256
1256
|
};
|
|
1257
1257
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.htmlToDOM = e.domToReact = e.attributesToProps = e.Text = e.ProcessingInstruction = e.Element = e.Comment = void 0, e.default = o;
|
|
1258
|
-
var n = t(
|
|
1259
|
-
e.htmlToDOM = n.default, e.attributesToProps = t(
|
|
1260
|
-
var r = t(
|
|
1258
|
+
var n = t(at());
|
|
1259
|
+
e.htmlToDOM = n.default, e.attributesToProps = t(lt()).default;
|
|
1260
|
+
var r = t(ut());
|
|
1261
1261
|
e.domToReact = r.default;
|
|
1262
|
-
var i =
|
|
1262
|
+
var i = tt();
|
|
1263
1263
|
Object.defineProperty(e, "Comment", {
|
|
1264
1264
|
enumerable: !0,
|
|
1265
1265
|
get: function() {
|
|
@@ -1286,7 +1286,7 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
1286
1286
|
if (typeof e != "string") throw TypeError("First argument must be a string");
|
|
1287
1287
|
return e ? (0, r.default)((0, n.default)(e, t?.htmlparser2 ?? a), t) : [];
|
|
1288
1288
|
}
|
|
1289
|
-
})),
|
|
1289
|
+
})), D = /* @__PURE__ */ e(c(), 1), O = l(), k = /* @__PURE__ */ e(dt(), 1), ft = k.default.default || k.default, pt = y("between-horizontal-start", [
|
|
1290
1290
|
["rect", {
|
|
1291
1291
|
width: "13",
|
|
1292
1292
|
height: "7",
|
|
@@ -1307,10 +1307,10 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
1307
1307
|
rx: "1",
|
|
1308
1308
|
key: "1q5fc1"
|
|
1309
1309
|
}]
|
|
1310
|
-
]),
|
|
1310
|
+
]), mt = y("loader-circle", [["path", {
|
|
1311
1311
|
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
1312
1312
|
key: "13zald"
|
|
1313
|
-
}]]),
|
|
1313
|
+
}]]), ht = y("trash-2", [
|
|
1314
1314
|
["path", {
|
|
1315
1315
|
d: "M10 11v6",
|
|
1316
1316
|
key: "nco0om"
|
|
@@ -1331,61 +1331,61 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
1331
1331
|
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
|
|
1332
1332
|
key: "e791ji"
|
|
1333
1333
|
}]
|
|
1334
|
-
]),
|
|
1334
|
+
]), gt = y("wrench", [["path", {
|
|
1335
1335
|
d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",
|
|
1336
1336
|
key: "1ngwbx"
|
|
1337
|
-
}]]),
|
|
1337
|
+
}]]), A = Ee(), _t = Object.defineProperty, j = (e, t) => _t(e, "name", {
|
|
1338
1338
|
value: t,
|
|
1339
1339
|
configurable: !0
|
|
1340
|
-
}),
|
|
1340
|
+
}), vt = "Collapsible", [yt, bt] = ke(vt), [xt, St] = yt(vt), Ct = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
1341
1341
|
let { __scopeCollapsible: n, open: r, defaultOpen: i, disabled: a, onOpenChange: o, ...s } = e, [c, l] = w({
|
|
1342
1342
|
prop: r,
|
|
1343
1343
|
defaultProp: i ?? !1,
|
|
1344
1344
|
onChange: o,
|
|
1345
|
-
caller:
|
|
1345
|
+
caller: vt
|
|
1346
1346
|
});
|
|
1347
|
-
return /* @__PURE__ */ (0,
|
|
1347
|
+
return /* @__PURE__ */ (0, A.jsx)(xt, {
|
|
1348
1348
|
scope: n,
|
|
1349
1349
|
disabled: a,
|
|
1350
1350
|
contentId: S(),
|
|
1351
1351
|
open: c,
|
|
1352
|
-
onOpenToggle:
|
|
1353
|
-
children: /* @__PURE__ */ (0,
|
|
1354
|
-
"data-state":
|
|
1352
|
+
onOpenToggle: D.useCallback(() => l((e) => !e), [l]),
|
|
1353
|
+
children: /* @__PURE__ */ (0, A.jsx)(T.div, {
|
|
1354
|
+
"data-state": M(c),
|
|
1355
1355
|
"data-disabled": a ? "" : void 0,
|
|
1356
1356
|
...s,
|
|
1357
1357
|
ref: t
|
|
1358
1358
|
})
|
|
1359
1359
|
});
|
|
1360
|
-
}, "Collapsible")),
|
|
1361
|
-
let { __scopeCollapsible: n, ...r } = e, i =
|
|
1362
|
-
return /* @__PURE__ */ (0,
|
|
1360
|
+
}, "Collapsible")), wt = "CollapsibleTrigger", Tt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
1361
|
+
let { __scopeCollapsible: n, ...r } = e, i = St(wt, n);
|
|
1362
|
+
return /* @__PURE__ */ (0, A.jsx)(T.button, {
|
|
1363
1363
|
type: "button",
|
|
1364
1364
|
"aria-controls": i.open ? i.contentId : void 0,
|
|
1365
1365
|
"aria-expanded": i.open || !1,
|
|
1366
|
-
"data-state":
|
|
1366
|
+
"data-state": M(i.open),
|
|
1367
1367
|
"data-disabled": i.disabled ? "" : void 0,
|
|
1368
1368
|
disabled: i.disabled,
|
|
1369
1369
|
...r,
|
|
1370
1370
|
ref: t,
|
|
1371
1371
|
onClick: C(e.onClick, i.onOpenToggle)
|
|
1372
1372
|
});
|
|
1373
|
-
}, "CollapsibleTrigger")),
|
|
1374
|
-
let { forceMount: n, ...r } = e, i =
|
|
1375
|
-
return /* @__PURE__ */ (0,
|
|
1373
|
+
}, "CollapsibleTrigger")), Et = "CollapsibleContent", Dt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
1374
|
+
let { forceMount: n, ...r } = e, i = St(Et, e.__scopeCollapsible);
|
|
1375
|
+
return /* @__PURE__ */ (0, A.jsx)(Ve, {
|
|
1376
1376
|
present: n || i.open,
|
|
1377
|
-
children: ({ present: e }) => /* @__PURE__ */ (0,
|
|
1377
|
+
children: ({ present: e }) => /* @__PURE__ */ (0, A.jsx)(Ot, {
|
|
1378
1378
|
...r,
|
|
1379
1379
|
ref: t,
|
|
1380
1380
|
present: e
|
|
1381
1381
|
})
|
|
1382
1382
|
});
|
|
1383
|
-
}, "CollapsibleContent")),
|
|
1384
|
-
let { __scopeCollapsible: n, present: r, children: a, ...o } = e, s =
|
|
1385
|
-
return
|
|
1383
|
+
}, "CollapsibleContent")), Ot = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ j(function(e, t) {
|
|
1384
|
+
let { __scopeCollapsible: n, present: r, children: a, ...o } = e, s = St(Et, n), [c, l] = D.useState(r), u = D.useRef(null), d = i(t, u), f = D.useRef(0), p = f.current, m = D.useRef(0), h = m.current, g = s.open || c, _ = D.useRef(g), v = D.useRef(void 0);
|
|
1385
|
+
return D.useEffect(() => {
|
|
1386
1386
|
let e = requestAnimationFrame(() => _.current = !1);
|
|
1387
1387
|
return () => cancelAnimationFrame(e);
|
|
1388
|
-
}, []),
|
|
1388
|
+
}, []), Oe(() => {
|
|
1389
1389
|
let e = u.current;
|
|
1390
1390
|
if (e) {
|
|
1391
1391
|
v.current = v.current || {
|
|
@@ -1395,8 +1395,8 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
1395
1395
|
let t = e.getBoundingClientRect();
|
|
1396
1396
|
f.current = t.height, m.current = t.width, _.current || (e.style.transitionDuration = v.current.transitionDuration, e.style.animationName = v.current.animationName), l(r);
|
|
1397
1397
|
}
|
|
1398
|
-
}, [s.open, r]), /* @__PURE__ */ (0,
|
|
1399
|
-
"data-state":
|
|
1398
|
+
}, [s.open, r]), /* @__PURE__ */ (0, A.jsx)(T.div, {
|
|
1399
|
+
"data-state": M(s.open),
|
|
1400
1400
|
"data-disabled": s.disabled ? "" : void 0,
|
|
1401
1401
|
id: s.contentId,
|
|
1402
1402
|
hidden: !g,
|
|
@@ -1410,94 +1410,94 @@ var et = /* @__PURE__ */ t(((e) => {
|
|
|
1410
1410
|
children: g && a
|
|
1411
1411
|
});
|
|
1412
1412
|
}, "CollapsibleContentImpl"));
|
|
1413
|
-
function
|
|
1413
|
+
function M(e) {
|
|
1414
1414
|
return e ? "open" : "closed";
|
|
1415
1415
|
}
|
|
1416
|
-
M
|
|
1416
|
+
j(M, "getState");
|
|
1417
1417
|
//#endregion
|
|
1418
1418
|
//#region ../node_modules/.pnpm/@radix-ui+react-accordion@1.3.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+rea_abc4d855e45dd0aac37149041714f617/node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
1419
|
-
var
|
|
1419
|
+
var kt = Object.defineProperty, N = (e, t) => kt(e, "name", {
|
|
1420
1420
|
value: t,
|
|
1421
1421
|
configurable: !0
|
|
1422
|
-
}),
|
|
1422
|
+
}), At = {
|
|
1423
1423
|
Single: "single",
|
|
1424
1424
|
Multiple: "multiple"
|
|
1425
|
-
},
|
|
1425
|
+
}, P = {
|
|
1426
1426
|
Vertical: "vertical",
|
|
1427
1427
|
Horizontal: "horizontal"
|
|
1428
|
-
},
|
|
1428
|
+
}, jt = {
|
|
1429
1429
|
LTR: "ltr",
|
|
1430
1430
|
RTL: "rtl"
|
|
1431
|
-
},
|
|
1431
|
+
}, F = "Accordion", Mt = [
|
|
1432
1432
|
"Home",
|
|
1433
1433
|
"End",
|
|
1434
1434
|
"ArrowDown",
|
|
1435
1435
|
"ArrowUp",
|
|
1436
1436
|
"ArrowLeft",
|
|
1437
1437
|
"ArrowRight"
|
|
1438
|
-
], [
|
|
1438
|
+
], [Nt, { useGetCollection: Pt, createCollectionScope: Ft }] = xe(F), [I, It] = ke(F, [Ft, bt]), L = bt(), Lt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ N(function(e, t) {
|
|
1439
1439
|
let { type: n, ...r } = e, i = r, a = r;
|
|
1440
|
-
return /* @__PURE__ */ (0,
|
|
1440
|
+
return /* @__PURE__ */ (0, A.jsx)(Nt.Provider, {
|
|
1441
1441
|
scope: e.__scopeAccordion,
|
|
1442
|
-
children: n ===
|
|
1442
|
+
children: n === At.Multiple ? /* @__PURE__ */ (0, A.jsx)(Ut, {
|
|
1443
1443
|
...a,
|
|
1444
1444
|
ref: t
|
|
1445
|
-
}) : /* @__PURE__ */ (0,
|
|
1445
|
+
}) : /* @__PURE__ */ (0, A.jsx)(Ht, {
|
|
1446
1446
|
...i,
|
|
1447
1447
|
ref: t
|
|
1448
1448
|
})
|
|
1449
1449
|
});
|
|
1450
|
-
}, "Accordion")), [
|
|
1451
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */
|
|
1450
|
+
}, "Accordion")), [Rt, zt] = I(F), [Bt, Vt] = I(F, { collapsible: !1 }), Ht = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ N(function(e, t) {
|
|
1451
|
+
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ N(() => {}, "onValueChange"), collapsible: a = !1, ...o } = e, [s, c] = w({
|
|
1452
1452
|
prop: n,
|
|
1453
1453
|
defaultProp: r ?? "",
|
|
1454
1454
|
onChange: i,
|
|
1455
|
-
caller:
|
|
1455
|
+
caller: F
|
|
1456
1456
|
});
|
|
1457
|
-
return /* @__PURE__ */ (0,
|
|
1457
|
+
return /* @__PURE__ */ (0, A.jsx)(Rt, {
|
|
1458
1458
|
scope: e.__scopeAccordion,
|
|
1459
|
-
value:
|
|
1459
|
+
value: D.useMemo(() => s ? [s] : [], [s]),
|
|
1460
1460
|
onItemOpen: c,
|
|
1461
|
-
onItemClose:
|
|
1462
|
-
children: /* @__PURE__ */ (0,
|
|
1461
|
+
onItemClose: D.useCallback(() => a && c(""), [a, c]),
|
|
1462
|
+
children: /* @__PURE__ */ (0, A.jsx)(Bt, {
|
|
1463
1463
|
scope: e.__scopeAccordion,
|
|
1464
1464
|
collapsible: a,
|
|
1465
|
-
children: /* @__PURE__ */ (0,
|
|
1465
|
+
children: /* @__PURE__ */ (0, A.jsx)(Gt, {
|
|
1466
1466
|
...o,
|
|
1467
1467
|
ref: t
|
|
1468
1468
|
})
|
|
1469
1469
|
})
|
|
1470
1470
|
});
|
|
1471
|
-
}, "AccordionImplSingle")),
|
|
1472
|
-
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */
|
|
1471
|
+
}, "AccordionImplSingle")), Ut = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ N(function(e, t) {
|
|
1472
|
+
let { value: n, defaultValue: r, onValueChange: i = /* @__PURE__ */ N(() => {}, "onValueChange"), ...a } = e, [o, s] = w({
|
|
1473
1473
|
prop: n,
|
|
1474
1474
|
defaultProp: r ?? [],
|
|
1475
1475
|
onChange: i,
|
|
1476
|
-
caller:
|
|
1477
|
-
}), c =
|
|
1478
|
-
return /* @__PURE__ */ (0,
|
|
1476
|
+
caller: F
|
|
1477
|
+
}), c = D.useCallback((e) => s((t = []) => [...t, e]), [s]), l = D.useCallback((e) => s((t = []) => t.filter((t) => t !== e)), [s]);
|
|
1478
|
+
return /* @__PURE__ */ (0, A.jsx)(Rt, {
|
|
1479
1479
|
scope: e.__scopeAccordion,
|
|
1480
1480
|
value: o,
|
|
1481
1481
|
onItemOpen: c,
|
|
1482
1482
|
onItemClose: l,
|
|
1483
|
-
children: /* @__PURE__ */ (0,
|
|
1483
|
+
children: /* @__PURE__ */ (0, A.jsx)(Bt, {
|
|
1484
1484
|
scope: e.__scopeAccordion,
|
|
1485
1485
|
collapsible: !0,
|
|
1486
|
-
children: /* @__PURE__ */ (0,
|
|
1486
|
+
children: /* @__PURE__ */ (0, A.jsx)(Gt, {
|
|
1487
1487
|
...a,
|
|
1488
1488
|
ref: t
|
|
1489
1489
|
})
|
|
1490
1490
|
})
|
|
1491
1491
|
});
|
|
1492
|
-
}, "AccordionImplMultiple")), [
|
|
1493
|
-
let { __scopeAccordion: n, disabled: r, dir: a, orientation: o =
|
|
1494
|
-
if (!
|
|
1492
|
+
}, "AccordionImplMultiple")), [Wt, R] = I(F), Gt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ N(function(e, t) {
|
|
1493
|
+
let { __scopeAccordion: n, disabled: r, dir: a, orientation: o = P.Vertical, ...s } = e, c = D.useRef(null), l = i(c, t), u = Pt(n), d = ye(a) === jt.LTR, f = C(e.onKeyDown, (e) => {
|
|
1494
|
+
if (!Mt.includes(e.key)) return;
|
|
1495
1495
|
let t = u(), n = e.target, r = t.filter(([, e]) => !e.element.disabled), i = r.findIndex(([, e]) => e.element === n), a = r.size;
|
|
1496
1496
|
if (i === -1) return;
|
|
1497
1497
|
e.preventDefault();
|
|
1498
|
-
let s = i, c = a - 1, l = /* @__PURE__ */
|
|
1498
|
+
let s = i, c = a - 1, l = /* @__PURE__ */ N(() => {
|
|
1499
1499
|
s = i + 1, s > c && (s = 0);
|
|
1500
|
-
}, "moveNext"), f = /* @__PURE__ */
|
|
1500
|
+
}, "moveNext"), f = /* @__PURE__ */ N(() => {
|
|
1501
1501
|
s = i - 1, s < 0 && (s = c);
|
|
1502
1502
|
}, "movePrev");
|
|
1503
1503
|
switch (e.key) {
|
|
@@ -1508,27 +1508,27 @@ var At = Object.defineProperty, P = (e, t) => At(e, "name", {
|
|
|
1508
1508
|
s = c;
|
|
1509
1509
|
break;
|
|
1510
1510
|
case "ArrowRight":
|
|
1511
|
-
o ===
|
|
1511
|
+
o === P.Horizontal && (d ? l() : f());
|
|
1512
1512
|
break;
|
|
1513
1513
|
case "ArrowDown":
|
|
1514
|
-
o ===
|
|
1514
|
+
o === P.Vertical && l();
|
|
1515
1515
|
break;
|
|
1516
1516
|
case "ArrowLeft":
|
|
1517
|
-
o ===
|
|
1517
|
+
o === P.Horizontal && (d ? f() : l());
|
|
1518
1518
|
break;
|
|
1519
|
-
case "ArrowUp": o ===
|
|
1519
|
+
case "ArrowUp": o === P.Vertical && f();
|
|
1520
1520
|
}
|
|
1521
1521
|
let p = s % a;
|
|
1522
1522
|
r.at(p)?.element.focus();
|
|
1523
1523
|
});
|
|
1524
|
-
return /* @__PURE__ */ (0,
|
|
1524
|
+
return /* @__PURE__ */ (0, A.jsx)(Wt, {
|
|
1525
1525
|
scope: n,
|
|
1526
1526
|
disabled: r,
|
|
1527
1527
|
direction: a,
|
|
1528
1528
|
orientation: o,
|
|
1529
|
-
children: /* @__PURE__ */ (0,
|
|
1529
|
+
children: /* @__PURE__ */ (0, A.jsx)(Nt.Slot, {
|
|
1530
1530
|
scope: n,
|
|
1531
|
-
children: /* @__PURE__ */ (0,
|
|
1531
|
+
children: /* @__PURE__ */ (0, A.jsx)(T.div, {
|
|
1532
1532
|
...s,
|
|
1533
1533
|
"data-orientation": o,
|
|
1534
1534
|
ref: l,
|
|
@@ -1536,16 +1536,16 @@ var At = Object.defineProperty, P = (e, t) => At(e, "name", {
|
|
|
1536
1536
|
})
|
|
1537
1537
|
})
|
|
1538
1538
|
});
|
|
1539
|
-
}, "AccordionImpl")),
|
|
1540
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a = R(
|
|
1541
|
-
return /* @__PURE__ */ (0,
|
|
1539
|
+
}, "AccordionImpl")), Kt = "AccordionItem", [qt, z] = I(Kt), Jt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ N(function(e, t) {
|
|
1540
|
+
let { __scopeAccordion: n, value: r, ...i } = e, a = R(Kt, n), o = zt(Kt, n), s = L(n), c = S(), l = r && o.value.includes(r) || !1, u = a.disabled || e.disabled;
|
|
1541
|
+
return /* @__PURE__ */ (0, A.jsx)(qt, {
|
|
1542
1542
|
scope: n,
|
|
1543
1543
|
open: l,
|
|
1544
1544
|
disabled: u,
|
|
1545
1545
|
triggerId: c,
|
|
1546
|
-
children: /* @__PURE__ */ (0,
|
|
1546
|
+
children: /* @__PURE__ */ (0, A.jsx)(Ct, {
|
|
1547
1547
|
"data-orientation": a.orientation,
|
|
1548
|
-
"data-state":
|
|
1548
|
+
"data-state": tn(l),
|
|
1549
1549
|
...s,
|
|
1550
1550
|
...i,
|
|
1551
1551
|
ref: t,
|
|
@@ -1556,20 +1556,20 @@ var At = Object.defineProperty, P = (e, t) => At(e, "name", {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
})
|
|
1558
1558
|
});
|
|
1559
|
-
}, "AccordionItem")),
|
|
1560
|
-
let { __scopeAccordion: n, ...r } = e, i = R(
|
|
1561
|
-
return /* @__PURE__ */ (0,
|
|
1559
|
+
}, "AccordionItem")), Yt = "AccordionHeader", Xt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ N(function(e, t) {
|
|
1560
|
+
let { __scopeAccordion: n, ...r } = e, i = R(F, n), a = z(Yt, n);
|
|
1561
|
+
return /* @__PURE__ */ (0, A.jsx)(T.h3, {
|
|
1562
1562
|
"data-orientation": i.orientation,
|
|
1563
|
-
"data-state":
|
|
1563
|
+
"data-state": tn(a.open),
|
|
1564
1564
|
"data-disabled": a.disabled ? "" : void 0,
|
|
1565
1565
|
...r,
|
|
1566
1566
|
ref: t
|
|
1567
1567
|
});
|
|
1568
|
-
}, "AccordionHeader")),
|
|
1569
|
-
let { __scopeAccordion: n, ...r } = e, i = R(
|
|
1570
|
-
return /* @__PURE__ */ (0,
|
|
1568
|
+
}, "AccordionHeader")), Zt = "AccordionTrigger", Qt = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ N(function(e, t) {
|
|
1569
|
+
let { __scopeAccordion: n, ...r } = e, i = R(F, n), a = z(Zt, n), o = Vt(Zt, n), s = L(n);
|
|
1570
|
+
return /* @__PURE__ */ (0, A.jsx)(Nt.ItemSlot, {
|
|
1571
1571
|
scope: n,
|
|
1572
|
-
children: /* @__PURE__ */ (0,
|
|
1572
|
+
children: /* @__PURE__ */ (0, A.jsx)(Tt, {
|
|
1573
1573
|
"aria-disabled": a.open && !o.collapsible || void 0,
|
|
1574
1574
|
"data-orientation": i.orientation,
|
|
1575
1575
|
id: a.triggerId,
|
|
@@ -1578,9 +1578,9 @@ var At = Object.defineProperty, P = (e, t) => At(e, "name", {
|
|
|
1578
1578
|
ref: t
|
|
1579
1579
|
})
|
|
1580
1580
|
});
|
|
1581
|
-
}, "AccordionTrigger")),
|
|
1582
|
-
let { __scopeAccordion: n, ...r } = e, i = R(
|
|
1583
|
-
return /* @__PURE__ */ (0,
|
|
1581
|
+
}, "AccordionTrigger")), $t = "AccordionContent", en = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ N(function(e, t) {
|
|
1582
|
+
let { __scopeAccordion: n, ...r } = e, i = R(F, n), a = z($t, n), o = L(n);
|
|
1583
|
+
return /* @__PURE__ */ (0, A.jsx)(Dt, {
|
|
1584
1584
|
role: "region",
|
|
1585
1585
|
"aria-labelledby": a.triggerId,
|
|
1586
1586
|
"data-orientation": i.orientation,
|
|
@@ -1594,25 +1594,25 @@ var At = Object.defineProperty, P = (e, t) => At(e, "name", {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
});
|
|
1596
1596
|
}, "AccordionContent"));
|
|
1597
|
-
function
|
|
1597
|
+
function tn(e) {
|
|
1598
1598
|
return e ? "open" : "closed";
|
|
1599
1599
|
}
|
|
1600
|
-
|
|
1600
|
+
N(tn, "getState");
|
|
1601
1601
|
//#endregion
|
|
1602
1602
|
//#region ../node_modules/.pnpm/@radix-ui+react-popover@1.3.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_e30c1a3361e595871e7a1c2e1a74b81d/node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
1603
|
-
var
|
|
1603
|
+
var nn = Object.defineProperty, B = (e, t) => nn(e, "name", {
|
|
1604
1604
|
value: t,
|
|
1605
1605
|
configurable: !0
|
|
1606
|
-
}),
|
|
1607
|
-
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s =
|
|
1606
|
+
}), rn = "Popover", [an, on] = ke(rn, [ee]), V = ee(), [sn, H] = an(rn), cn = /* @__PURE__ */ B((e) => {
|
|
1607
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = V(t), c = D.useRef(null), [l, u] = D.useState(!1), [d, f] = D.useState(0), [p, m] = D.useState(0), [h, g] = w({
|
|
1608
1608
|
prop: r,
|
|
1609
1609
|
defaultProp: i ?? !1,
|
|
1610
1610
|
onChange: a,
|
|
1611
|
-
caller:
|
|
1611
|
+
caller: rn
|
|
1612
1612
|
});
|
|
1613
|
-
return /* @__PURE__ */ (0,
|
|
1613
|
+
return /* @__PURE__ */ (0, A.jsx)(b, {
|
|
1614
1614
|
...s,
|
|
1615
|
-
children: /* @__PURE__ */ (0,
|
|
1615
|
+
children: /* @__PURE__ */ (0, A.jsx)(sn, {
|
|
1616
1616
|
scope: t,
|
|
1617
1617
|
contentId: S(),
|
|
1618
1618
|
titleId: S(),
|
|
@@ -1624,73 +1624,73 @@ var an = Object.defineProperty, B = (e, t) => an(e, "name", {
|
|
|
1624
1624
|
triggerRef: c,
|
|
1625
1625
|
open: h,
|
|
1626
1626
|
onOpenChange: g,
|
|
1627
|
-
onOpenToggle:
|
|
1627
|
+
onOpenToggle: D.useCallback(() => g((e) => !e), [g]),
|
|
1628
1628
|
hasCustomAnchor: l,
|
|
1629
|
-
onCustomAnchorAdd:
|
|
1630
|
-
onCustomAnchorRemove:
|
|
1629
|
+
onCustomAnchorAdd: D.useCallback(() => u(!0), []),
|
|
1630
|
+
onCustomAnchorRemove: D.useCallback(() => u(!1), []),
|
|
1631
1631
|
modal: o,
|
|
1632
1632
|
children: n
|
|
1633
1633
|
})
|
|
1634
1634
|
});
|
|
1635
|
-
}, "Popover"),
|
|
1636
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
1637
|
-
return
|
|
1635
|
+
}, "Popover"), ln = "PopoverAnchor", un = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
1636
|
+
let { __scopePopover: n, ...r } = e, i = H(ln, n), a = V(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
1637
|
+
return D.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ (0, A.jsx)(_, {
|
|
1638
1638
|
...a,
|
|
1639
1639
|
...r,
|
|
1640
1640
|
ref: t
|
|
1641
1641
|
});
|
|
1642
|
-
}, "PopoverAnchor")),
|
|
1643
|
-
let { __scopePopover: n, ...r } = e, a =
|
|
1642
|
+
}, "PopoverAnchor")), dn = "PopoverTrigger", fn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
1643
|
+
let { __scopePopover: n, ...r } = e, a = H(dn, n), o = V(n), s = i(t, a.triggerRef), c = /* @__PURE__ */ (0, A.jsx)(T.button, {
|
|
1644
1644
|
type: "button",
|
|
1645
1645
|
"aria-haspopup": "dialog",
|
|
1646
1646
|
"aria-expanded": a.open,
|
|
1647
1647
|
"aria-controls": a.open ? a.contentId : void 0,
|
|
1648
|
-
"data-state":
|
|
1648
|
+
"data-state": wn(a.open),
|
|
1649
1649
|
...r,
|
|
1650
1650
|
ref: s,
|
|
1651
1651
|
onClick: C(e.onClick, a.onOpenToggle)
|
|
1652
1652
|
});
|
|
1653
|
-
return a.hasCustomAnchor ? c : /* @__PURE__ */ (0,
|
|
1653
|
+
return a.hasCustomAnchor ? c : /* @__PURE__ */ (0, A.jsx)(_, {
|
|
1654
1654
|
asChild: !0,
|
|
1655
1655
|
...o,
|
|
1656
1656
|
children: c
|
|
1657
1657
|
});
|
|
1658
|
-
}, "PopoverTrigger")),
|
|
1659
|
-
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a =
|
|
1660
|
-
return /* @__PURE__ */ (0,
|
|
1658
|
+
}, "PopoverTrigger")), pn = "PopoverPortal", [mn, hn] = an(pn, { forceMount: void 0 }), gn = /* @__PURE__ */ B((e) => {
|
|
1659
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = H(pn, t);
|
|
1660
|
+
return /* @__PURE__ */ (0, A.jsx)(mn, {
|
|
1661
1661
|
scope: t,
|
|
1662
1662
|
forceMount: n,
|
|
1663
|
-
children: /* @__PURE__ */ (0,
|
|
1663
|
+
children: /* @__PURE__ */ (0, A.jsx)(Ve, {
|
|
1664
1664
|
present: n || a.open,
|
|
1665
|
-
children: /* @__PURE__ */ (0,
|
|
1665
|
+
children: /* @__PURE__ */ (0, A.jsx)(Le, {
|
|
1666
1666
|
asChild: !0,
|
|
1667
1667
|
container: i,
|
|
1668
1668
|
children: r
|
|
1669
1669
|
})
|
|
1670
1670
|
})
|
|
1671
1671
|
});
|
|
1672
|
-
}, "PopoverPortal"),
|
|
1673
|
-
let n =
|
|
1674
|
-
return /* @__PURE__ */ (0,
|
|
1672
|
+
}, "PopoverPortal"), U = "PopoverContent", _n = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
1673
|
+
let n = hn(U, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = H(U, e.__scopePopover);
|
|
1674
|
+
return /* @__PURE__ */ (0, A.jsx)(Ve, {
|
|
1675
1675
|
present: r || a.open,
|
|
1676
|
-
children: a.modal ? /* @__PURE__ */ (0,
|
|
1676
|
+
children: a.modal ? /* @__PURE__ */ (0, A.jsx)(yn, {
|
|
1677
1677
|
...i,
|
|
1678
1678
|
ref: t
|
|
1679
|
-
}) : /* @__PURE__ */ (0,
|
|
1679
|
+
}) : /* @__PURE__ */ (0, A.jsx)(bn, {
|
|
1680
1680
|
...i,
|
|
1681
1681
|
ref: t
|
|
1682
1682
|
})
|
|
1683
1683
|
});
|
|
1684
|
-
}, "PopoverContent")),
|
|
1685
|
-
let n = U
|
|
1686
|
-
return
|
|
1684
|
+
}, "PopoverContent")), vn = s("PopoverContent.RemoveScroll"), yn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
1685
|
+
let n = H(U, e.__scopePopover), r = D.useRef(null), a = i(t, r), o = D.useRef(!1), { nodes: s, registry: c } = He();
|
|
1686
|
+
return D.useEffect(() => {
|
|
1687
1687
|
let e = r.current;
|
|
1688
|
-
if (e) return
|
|
1689
|
-
}, []), /* @__PURE__ */ (0,
|
|
1690
|
-
as:
|
|
1688
|
+
if (e) return Pe(e);
|
|
1689
|
+
}, []), /* @__PURE__ */ (0, A.jsx)(Fe, {
|
|
1690
|
+
as: vn,
|
|
1691
1691
|
allowPinchZoom: !0,
|
|
1692
|
-
shards:
|
|
1693
|
-
children: /* @__PURE__ */ (0,
|
|
1692
|
+
shards: D.useMemo(() => [r, ...s.map((e) => ({ current: e }))], [r, s]),
|
|
1693
|
+
children: /* @__PURE__ */ (0, A.jsx)(xn, {
|
|
1694
1694
|
...e,
|
|
1695
1695
|
ref: a,
|
|
1696
1696
|
branchNodes: s,
|
|
@@ -1707,9 +1707,9 @@ var an = Object.defineProperty, B = (e, t) => an(e, "name", {
|
|
|
1707
1707
|
onFocusOutside: C(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
1708
1708
|
})
|
|
1709
1709
|
});
|
|
1710
|
-
}, "PopoverContentModal")),
|
|
1711
|
-
let n = U
|
|
1712
|
-
return /* @__PURE__ */ (0,
|
|
1710
|
+
}, "PopoverContentModal")), bn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
1711
|
+
let n = H(U, e.__scopePopover), r = D.useRef(!1), i = D.useRef(!1);
|
|
1712
|
+
return /* @__PURE__ */ (0, A.jsx)(xn, {
|
|
1713
1713
|
...e,
|
|
1714
1714
|
ref: t,
|
|
1715
1715
|
trapFocus: !1,
|
|
@@ -1723,18 +1723,18 @@ var an = Object.defineProperty, B = (e, t) => an(e, "name", {
|
|
|
1723
1723
|
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
1724
1724
|
}
|
|
1725
1725
|
});
|
|
1726
|
-
}, "PopoverContentNonModal")),
|
|
1727
|
-
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: a, onCloseAutoFocus: o, disableOutsidePointerEvents: s, onEscapeKeyDown: c, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, "aria-describedby": f, branchNodes: p, branchRegistry: m, ...h } = e, g = U
|
|
1728
|
-
return
|
|
1726
|
+
}, "PopoverContentNonModal")), xn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
1727
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: a, onCloseAutoFocus: o, disableOutsidePointerEvents: s, onEscapeKeyDown: c, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, "aria-describedby": f, branchNodes: p, branchRegistry: m, ...h } = e, g = H(U, n), _ = V(n), [y, b] = D.useState(null), x = i(t, b);
|
|
1728
|
+
return Be(y), Re(), /* @__PURE__ */ (0, A.jsx)(Me, {
|
|
1729
1729
|
registry: m,
|
|
1730
|
-
children: /* @__PURE__ */ (0,
|
|
1730
|
+
children: /* @__PURE__ */ (0, A.jsx)(Ie, {
|
|
1731
1731
|
asChild: !0,
|
|
1732
1732
|
loop: !0,
|
|
1733
1733
|
trapped: r,
|
|
1734
1734
|
branches: p,
|
|
1735
1735
|
onMountAutoFocus: a,
|
|
1736
1736
|
onUnmountAutoFocus: o,
|
|
1737
|
-
children: /* @__PURE__ */ (0,
|
|
1737
|
+
children: /* @__PURE__ */ (0, A.jsx)(Ne, {
|
|
1738
1738
|
asChild: !0,
|
|
1739
1739
|
disableOutsidePointerEvents: s,
|
|
1740
1740
|
onInteractOutside: d,
|
|
@@ -1743,12 +1743,12 @@ var an = Object.defineProperty, B = (e, t) => an(e, "name", {
|
|
|
1743
1743
|
onFocusOutside: u,
|
|
1744
1744
|
onDismiss: () => g.onOpenChange(!1),
|
|
1745
1745
|
deferPointerDownOutside: !0,
|
|
1746
|
-
children: /* @__PURE__ */ (0,
|
|
1747
|
-
"data-state":
|
|
1746
|
+
children: /* @__PURE__ */ (0, A.jsx)(v, {
|
|
1747
|
+
"data-state": wn(g.open),
|
|
1748
1748
|
role: "dialog",
|
|
1749
1749
|
id: g.contentId,
|
|
1750
1750
|
"aria-labelledby": g.titlePresent ? g.titleId : void 0,
|
|
1751
|
-
"aria-describedby": g.descriptionPresent ?
|
|
1751
|
+
"aria-describedby": g.descriptionPresent ? Tn(f, g.descriptionId) : f,
|
|
1752
1752
|
..._,
|
|
1753
1753
|
...h,
|
|
1754
1754
|
ref: x,
|
|
@@ -1764,31 +1764,31 @@ var an = Object.defineProperty, B = (e, t) => an(e, "name", {
|
|
|
1764
1764
|
})
|
|
1765
1765
|
})
|
|
1766
1766
|
});
|
|
1767
|
-
}, "PopoverContentImpl")),
|
|
1768
|
-
let { __scopePopover: n, ...r } = e, i =
|
|
1769
|
-
return /* @__PURE__ */ (0,
|
|
1767
|
+
}, "PopoverContentImpl")), Sn = "PopoverClose", Cn = /* @__PURE__ */ D.forwardRef(/* @__PURE__ */ B(function(e, t) {
|
|
1768
|
+
let { __scopePopover: n, ...r } = e, i = H(Sn, n);
|
|
1769
|
+
return /* @__PURE__ */ (0, A.jsx)(T.button, {
|
|
1770
1770
|
type: "button",
|
|
1771
1771
|
...r,
|
|
1772
1772
|
ref: t,
|
|
1773
1773
|
onClick: C(e.onClick, () => i.onOpenChange(!1))
|
|
1774
1774
|
});
|
|
1775
1775
|
}, "PopoverClose"));
|
|
1776
|
-
function
|
|
1776
|
+
function wn(e) {
|
|
1777
1777
|
return e ? "open" : "closed";
|
|
1778
1778
|
}
|
|
1779
|
-
B(
|
|
1780
|
-
function
|
|
1779
|
+
B(wn, "getState");
|
|
1780
|
+
function Tn(...e) {
|
|
1781
1781
|
let t = /* @__PURE__ */ new Set();
|
|
1782
1782
|
for (let n of e) if (typeof n == "string") for (let e of String(n).trim().split(/\s+/)) e && t.add(e);
|
|
1783
1783
|
return t.size > 0 ? Array.from(t).join(" ") : void 0;
|
|
1784
1784
|
}
|
|
1785
|
-
B(
|
|
1785
|
+
B(Tn, "concatAriaDescribedby");
|
|
1786
1786
|
//#endregion
|
|
1787
1787
|
//#region src/components/ui/query-param-preserving-link.tsx
|
|
1788
|
-
var
|
|
1789
|
-
let t = (0,
|
|
1788
|
+
var En = (e) => {
|
|
1789
|
+
let t = (0, O.c)(16), n, r, i;
|
|
1790
1790
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({href: r, children: n, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
1791
|
-
let a = (0,
|
|
1791
|
+
let a = (0, D.useRef)(null), o;
|
|
1792
1792
|
t[4] === r ? o = t[5] : (o = () => {
|
|
1793
1793
|
let e = new URL(globalThis.location.href);
|
|
1794
1794
|
e.hash = r, globalThis.history.pushState({}, "", e.toString()), globalThis.dispatchEvent(new HashChangeEvent("hashchange"));
|
|
@@ -1802,12 +1802,12 @@ var Dn = (e) => {
|
|
|
1802
1802
|
t[6] === s ? c = t[7] : (c = { onPress: () => {
|
|
1803
1803
|
s();
|
|
1804
1804
|
} }, t[6] = s, t[7] = c);
|
|
1805
|
-
let { pressProps: l } =
|
|
1805
|
+
let { pressProps: l } = Ce(c), u;
|
|
1806
1806
|
t[8] === s ? u = t[9] : (u = (e) => {
|
|
1807
1807
|
e.preventDefault(), s();
|
|
1808
1808
|
}, t[8] = s, t[9] = u);
|
|
1809
1809
|
let d = u, f;
|
|
1810
|
-
return t[10] !== n || t[11] !== d || t[12] !== r || t[13] !== l || t[14] !== i ? (f = /* @__PURE__ */ (0,
|
|
1810
|
+
return t[10] !== n || t[11] !== d || t[12] !== r || t[13] !== l || t[14] !== i ? (f = /* @__PURE__ */ (0, A.jsx)("a", {
|
|
1811
1811
|
ref: a,
|
|
1812
1812
|
href: r,
|
|
1813
1813
|
...l,
|
|
@@ -1815,18 +1815,18 @@ var Dn = (e) => {
|
|
|
1815
1815
|
...i,
|
|
1816
1816
|
children: n
|
|
1817
1817
|
}), t[10] = n, t[11] = d, t[12] = r, t[13] = l, t[14] = i, t[15] = f) : f = t[15], f;
|
|
1818
|
-
},
|
|
1819
|
-
let n = (0,
|
|
1818
|
+
}, Dn = cn, On = fn, kn = Ae(gn), An = Cn, jn = De(_n), Mn = D.forwardRef((e, t) => {
|
|
1819
|
+
let n = (0, O.c)(22), i, a, o, s, c, l;
|
|
1820
1820
|
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4], c = n[5], l = n[6]) : ({className: i, align: o, sideOffset: s, portal: c, scrollable: l, ...a} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s, n[5] = c, n[6] = l);
|
|
1821
1821
|
let u = o === void 0 ? "center" : o, d = s === void 0 ? 4 : s, f = c === void 0 || c, p = l !== void 0 && l, m = p && "overflow-auto", h;
|
|
1822
1822
|
n[7] !== i || n[8] !== m ? (h = r("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", i, m), n[7] = i, n[8] = m, n[9] = h) : h = n[9];
|
|
1823
|
-
let g = p ? `calc(var(--radix-popover-content-available-height) - ${
|
|
1823
|
+
let g = p ? `calc(var(--radix-popover-content-available-height) - ${je}px)` : void 0, _;
|
|
1824
1824
|
n[10] !== a.style || n[11] !== g ? (_ = {
|
|
1825
1825
|
...a.style,
|
|
1826
1826
|
maxHeight: g
|
|
1827
1827
|
}, n[10] = a.style, n[11] = g, n[12] = _) : _ = n[12];
|
|
1828
1828
|
let v;
|
|
1829
|
-
n[13] !== u || n[14] !== a || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0,
|
|
1829
|
+
n[13] !== u || n[14] !== a || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0, A.jsx)(ze, { children: /* @__PURE__ */ (0, A.jsx)(jn, {
|
|
1830
1830
|
ref: t,
|
|
1831
1831
|
align: u,
|
|
1832
1832
|
sideOffset: d,
|
|
@@ -1837,165 +1837,165 @@ var Dn = (e) => {
|
|
|
1837
1837
|
let y = v;
|
|
1838
1838
|
if (f) {
|
|
1839
1839
|
let e;
|
|
1840
|
-
return n[20] === y ? e = n[21] : (e = /* @__PURE__ */ (0,
|
|
1840
|
+
return n[20] === y ? e = n[21] : (e = /* @__PURE__ */ (0, A.jsx)(kn, { children: y }), n[20] = y, n[21] = e), e;
|
|
1841
1841
|
}
|
|
1842
1842
|
return y;
|
|
1843
1843
|
});
|
|
1844
|
-
|
|
1844
|
+
Mn.displayName = _n.displayName;
|
|
1845
1845
|
//#endregion
|
|
1846
1846
|
//#region src/core/documentation/doc-lookup.ts
|
|
1847
|
-
async function
|
|
1848
|
-
let t = me().
|
|
1847
|
+
async function Nn(e) {
|
|
1848
|
+
let t = me().at(0);
|
|
1849
1849
|
if (t) try {
|
|
1850
|
-
let n = await
|
|
1850
|
+
let n = await te.request({
|
|
1851
1851
|
document: e,
|
|
1852
1852
|
cellId: t
|
|
1853
1853
|
});
|
|
1854
1854
|
if (!n || n.options.length === 0) return;
|
|
1855
1855
|
let r = e.split(".").pop() ?? e, i = n.options[0], a = n.options.find((e) => e.name === r) ?? i;
|
|
1856
|
-
a?.completion_info &&
|
|
1856
|
+
a?.completion_info && Je.set(ge, { documentation: a.completion_info });
|
|
1857
1857
|
} catch (t) {
|
|
1858
1858
|
n.debug(`Doc lookup failed for "${e}"`, t);
|
|
1859
1859
|
}
|
|
1860
1860
|
}
|
|
1861
1861
|
//#endregion
|
|
1862
1862
|
//#region src/core/documentation/DocHoverTarget.tsx
|
|
1863
|
-
var
|
|
1864
|
-
let t = (0,
|
|
1863
|
+
var Pn = (e) => {
|
|
1864
|
+
let t = (0, O.c)(8), { qualifiedName: n, children: r } = e, i;
|
|
1865
1865
|
t[0] === n ? i = t[1] : (i = () => {
|
|
1866
|
-
|
|
1866
|
+
Nn(n);
|
|
1867
1867
|
}, t[0] = n, t[1] = i);
|
|
1868
|
-
let a =
|
|
1868
|
+
let a = Se(i, 100), o;
|
|
1869
1869
|
t[2] === a ? o = t[3] : (o = () => a.cancel(), t[2] = a, t[3] = o);
|
|
1870
1870
|
let s;
|
|
1871
|
-
return t[4] !== r || t[5] !== a || t[6] !== o ? (s = /* @__PURE__ */ (0,
|
|
1871
|
+
return t[4] !== r || t[5] !== a || t[6] !== o ? (s = /* @__PURE__ */ (0, A.jsx)("span", {
|
|
1872
1872
|
onMouseEnter: a,
|
|
1873
1873
|
onMouseLeave: o,
|
|
1874
1874
|
children: r
|
|
1875
1875
|
}), t[4] = r, t[5] = a, t[6] = o, t[7] = s) : s = t[7], s;
|
|
1876
|
-
},
|
|
1876
|
+
}, Fn = We(!1);
|
|
1877
1877
|
//#endregion
|
|
1878
1878
|
//#region src/core/static/export-context.ts
|
|
1879
|
-
function
|
|
1879
|
+
function In(e) {
|
|
1880
1880
|
if (typeof e != "object" || !e) return !1;
|
|
1881
1881
|
let t = e;
|
|
1882
1882
|
return !(t.trusted !== !0 || t.notebookCode !== void 0 && typeof t.notebookCode != "string");
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function Ln() {
|
|
1885
1885
|
let e = window?.__MARIMO_EXPORT_CONTEXT__;
|
|
1886
|
-
return
|
|
1886
|
+
return In(e) ? e : void 0;
|
|
1887
1887
|
}
|
|
1888
|
-
function
|
|
1889
|
-
return
|
|
1888
|
+
function Rn() {
|
|
1889
|
+
return Ln()?.trusted === !0;
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1892
|
-
if (
|
|
1891
|
+
function zn() {
|
|
1892
|
+
if (Je.get(Fn) || Rn() || Je.get(Ye)) return !0;
|
|
1893
1893
|
try {
|
|
1894
|
-
if (
|
|
1894
|
+
if (we() === "read") return !0;
|
|
1895
1895
|
} catch {}
|
|
1896
1896
|
return !1;
|
|
1897
1897
|
}
|
|
1898
1898
|
//#endregion
|
|
1899
1899
|
//#region src/plugins/core/sanitize.ts
|
|
1900
|
-
var
|
|
1901
|
-
let t = e(
|
|
1902
|
-
if (t || n ||
|
|
1900
|
+
var Bn = We((e) => {
|
|
1901
|
+
let t = e(Fn), n = e(Ye);
|
|
1902
|
+
if (t || n || Rn()) return !1;
|
|
1903
1903
|
let r = !0;
|
|
1904
1904
|
try {
|
|
1905
|
-
r =
|
|
1905
|
+
r = we() === "read";
|
|
1906
1906
|
} catch {
|
|
1907
1907
|
return !0;
|
|
1908
1908
|
}
|
|
1909
1909
|
return !r;
|
|
1910
1910
|
});
|
|
1911
|
-
function
|
|
1912
|
-
return E(
|
|
1911
|
+
function Vn() {
|
|
1912
|
+
return E(Bn);
|
|
1913
1913
|
}
|
|
1914
1914
|
//#endregion
|
|
1915
1915
|
//#region src/plugins/core/RenderHTML.tsx
|
|
1916
|
-
var
|
|
1917
|
-
if (e instanceof
|
|
1918
|
-
},
|
|
1919
|
-
if (t instanceof
|
|
1920
|
-
if ((0,
|
|
1916
|
+
var Hn = [], Un = (e) => {
|
|
1917
|
+
if (e instanceof k.Element && !/^[A-Za-z][\w-]*$/.test(e.name)) return D.createElement(D.Fragment);
|
|
1918
|
+
}, Wn = (e, t) => {
|
|
1919
|
+
if (t instanceof k.Element && t.name === "body") {
|
|
1920
|
+
if ((0, D.isValidElement)(e) && "props" in e) {
|
|
1921
1921
|
let t = e.props.children;
|
|
1922
|
-
return /* @__PURE__ */ (0,
|
|
1922
|
+
return /* @__PURE__ */ (0, A.jsx)(A.Fragment, { children: t });
|
|
1923
1923
|
}
|
|
1924
1924
|
return;
|
|
1925
1925
|
}
|
|
1926
|
-
},
|
|
1927
|
-
if (t instanceof
|
|
1928
|
-
if ((0,
|
|
1926
|
+
}, Gn = (e, t) => {
|
|
1927
|
+
if (t instanceof k.Element && t.name === "html") {
|
|
1928
|
+
if ((0, D.isValidElement)(e) && "props" in e) {
|
|
1929
1929
|
let t = e.props.children;
|
|
1930
|
-
return /* @__PURE__ */ (0,
|
|
1930
|
+
return /* @__PURE__ */ (0, A.jsx)(A.Fragment, { children: t });
|
|
1931
1931
|
}
|
|
1932
1932
|
return;
|
|
1933
1933
|
}
|
|
1934
|
-
},
|
|
1935
|
-
if (e instanceof
|
|
1934
|
+
}, Kn = (e) => {
|
|
1935
|
+
if (e instanceof k.Element && e.attribs && e.name === "iframe") {
|
|
1936
1936
|
let t = document.createElement("iframe");
|
|
1937
1937
|
return Object.entries(e.attribs).forEach(([e, n]) => {
|
|
1938
1938
|
e.startsWith("\"") && e.endsWith("\"") && (e = e.slice(1, -1)), t.setAttribute(e, n);
|
|
1939
|
-
}), /* @__PURE__ */ (0,
|
|
1939
|
+
}), /* @__PURE__ */ (0, A.jsx)("div", { dangerouslySetInnerHTML: { __html: t.outerHTML } });
|
|
1940
1940
|
}
|
|
1941
|
-
},
|
|
1942
|
-
if (e instanceof
|
|
1941
|
+
}, qn = (e) => {
|
|
1942
|
+
if (e instanceof k.Element && e.name === "script") {
|
|
1943
1943
|
let t = e.attribs.src;
|
|
1944
1944
|
if (!t) return;
|
|
1945
|
-
if (!
|
|
1945
|
+
if (!zn()) return n.warn(`[RenderHTML] refusing <script src> in untrusted context: ${t}`), /* @__PURE__ */ (0, A.jsx)(A.Fragment, {});
|
|
1946
1946
|
if (![...document.querySelectorAll("script[src]")].some((e) => e.getAttribute("src") === t)) {
|
|
1947
1947
|
let e = document.createElement("script");
|
|
1948
1948
|
e.src = t, document.head.append(e);
|
|
1949
1949
|
}
|
|
1950
|
-
return /* @__PURE__ */ (0,
|
|
1950
|
+
return /* @__PURE__ */ (0, A.jsx)(A.Fragment, {});
|
|
1951
1951
|
}
|
|
1952
|
-
},
|
|
1953
|
-
if (t instanceof
|
|
1952
|
+
}, Jn = (e, t) => {
|
|
1953
|
+
if (t instanceof k.Element && t.name === "a") {
|
|
1954
1954
|
let n = t.attribs.href;
|
|
1955
1955
|
if (n?.startsWith("#") && !n.startsWith("#code/")) {
|
|
1956
1956
|
let r = null;
|
|
1957
|
-
return (0,
|
|
1957
|
+
return (0, D.isValidElement)(e) && "props" in e && (r = e.props.children), /* @__PURE__ */ (0, A.jsx)(En, {
|
|
1958
1958
|
href: n,
|
|
1959
1959
|
...t.attribs,
|
|
1960
1960
|
children: r
|
|
1961
1961
|
});
|
|
1962
1962
|
}
|
|
1963
1963
|
}
|
|
1964
|
+
}, Yn = (e, t, n) => {
|
|
1965
|
+
if (t instanceof k.Element && t.name === "div" && t.attribs?.class?.includes("codehilite")) return /* @__PURE__ */ (0, A.jsx)(er, { children: e }, n);
|
|
1964
1966
|
}, Xn = (e, t, n) => {
|
|
1965
|
-
if (t instanceof
|
|
1966
|
-
}, Zn = (e, t, n) => {
|
|
1967
|
-
if (!(t instanceof A.Element) || t.name !== "img") return;
|
|
1967
|
+
if (!(t instanceof k.Element) || t.name !== "img") return;
|
|
1968
1968
|
let r = t.attribs?.src;
|
|
1969
|
-
if (!(!r || !(0,
|
|
1970
|
-
},
|
|
1971
|
-
if (!(t instanceof
|
|
1969
|
+
if (!(!r || !(0, D.isValidElement)(e)) && !/^data:/i.test(r)) return (0, D.cloneElement)(e, { key: `${r}-${n}` });
|
|
1970
|
+
}, Zn = (e, t, n) => {
|
|
1971
|
+
if (!(t instanceof k.Element) || t.name !== "input" || t.attribs?.type !== "checkbox" || !(0, D.isValidElement)(e)) return;
|
|
1972
1972
|
let r = "checked" in t.attribs;
|
|
1973
|
-
return (0,
|
|
1974
|
-
},
|
|
1975
|
-
if (t instanceof
|
|
1973
|
+
return (0, D.cloneElement)(e, { key: `checkbox-${n}-${r}` });
|
|
1974
|
+
}, Qn = (e, t) => {
|
|
1975
|
+
if (t instanceof k.Element && t.attribs?.["data-marimo-doc"]) {
|
|
1976
1976
|
let n = t.attribs["data-marimo-doc"];
|
|
1977
|
-
return /* @__PURE__ */ (0,
|
|
1977
|
+
return /* @__PURE__ */ (0, A.jsx)(Pn, {
|
|
1978
1978
|
qualifiedName: n,
|
|
1979
1979
|
children: e
|
|
1980
1980
|
});
|
|
1981
1981
|
}
|
|
1982
|
-
},
|
|
1983
|
-
if (t instanceof
|
|
1982
|
+
}, $n = (e, t) => {
|
|
1983
|
+
if (t instanceof k.Element && t.attribs?.["data-tooltip"]) {
|
|
1984
1984
|
if ((t.name?.toLowerCase() ?? "").startsWith("marimo-")) return;
|
|
1985
1985
|
let n = t.attribs["data-tooltip"].replace(/^[\r\n]+|[\r\n]+$/g, "");
|
|
1986
|
-
return /* @__PURE__ */ (0,
|
|
1987
|
-
content: n.includes("\n") ? /* @__PURE__ */ (0,
|
|
1986
|
+
return /* @__PURE__ */ (0, A.jsx)(x, {
|
|
1987
|
+
content: n.includes("\n") ? /* @__PURE__ */ (0, A.jsx)("span", {
|
|
1988
1988
|
className: "whitespace-pre-wrap",
|
|
1989
|
-
children: n.split(/\r?\n/).map((e, t) => /* @__PURE__ */ (0,
|
|
1989
|
+
children: n.split(/\r?\n/).map((e, t) => /* @__PURE__ */ (0, A.jsxs)(D.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, A.jsx)("br", {}), e] }, t))
|
|
1990
1990
|
}) : n,
|
|
1991
1991
|
children: e
|
|
1992
1992
|
});
|
|
1993
1993
|
}
|
|
1994
|
-
},
|
|
1995
|
-
let t = (0,
|
|
1996
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0,
|
|
1994
|
+
}, er = (e) => {
|
|
1995
|
+
let t = (0, O.c)(3), { children: n } = e, r = (0, D.useRef)(null), i;
|
|
1996
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ (0, A.jsx)("div", {
|
|
1997
1997
|
className: "absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
1998
|
-
children: /* @__PURE__ */ (0,
|
|
1998
|
+
children: /* @__PURE__ */ (0, A.jsx)(d, {
|
|
1999
1999
|
tooltip: !1,
|
|
2000
2000
|
className: "p-1",
|
|
2001
2001
|
value: () => {
|
|
@@ -2005,46 +2005,46 @@ var Un = [], Wn = (e) => {
|
|
|
2005
2005
|
})
|
|
2006
2006
|
}), t[0] = i) : i = t[0];
|
|
2007
2007
|
let a;
|
|
2008
|
-
return t[1] === n ? a = t[2] : (a = /* @__PURE__ */ (0,
|
|
2008
|
+
return t[1] === n ? a = t[2] : (a = /* @__PURE__ */ (0, A.jsxs)("div", {
|
|
2009
2009
|
className: "relative group codehilite-wrapper",
|
|
2010
2010
|
ref: r,
|
|
2011
2011
|
children: [n, i]
|
|
2012
2012
|
}), t[1] = n, t[2] = a), a;
|
|
2013
|
-
},
|
|
2013
|
+
}, tr = ({ html: e, additionalReplacements: t = Hn, alwaysSanitizeHtml: n = !0 }) => /* @__PURE__ */ (0, A.jsx)(nr, {
|
|
2014
2014
|
html: e,
|
|
2015
2015
|
alwaysSanitizeHtml: n,
|
|
2016
2016
|
additionalReplacements: t
|
|
2017
|
-
}),
|
|
2018
|
-
let t = (0,
|
|
2017
|
+
}), nr = (e) => {
|
|
2018
|
+
let t = (0, O.c)(5), { html: n, additionalReplacements: r, alwaysSanitizeHtml: i } = e, a = r === void 0 ? Hn : r, o = Vn(), s;
|
|
2019
2019
|
bb0: {
|
|
2020
2020
|
if (i || o) {
|
|
2021
2021
|
let e;
|
|
2022
|
-
t[0] === n ? e = t[1] : (e =
|
|
2022
|
+
t[0] === n ? e = t[1] : (e = ne(n), t[0] = n, t[1] = e), s = e;
|
|
2023
2023
|
break bb0;
|
|
2024
2024
|
}
|
|
2025
2025
|
s = n;
|
|
2026
2026
|
}
|
|
2027
2027
|
let c = s, l;
|
|
2028
|
-
return t[2] !== a || t[3] !== c ? (l =
|
|
2028
|
+
return t[2] !== a || t[3] !== c ? (l = rr({
|
|
2029
2029
|
html: c,
|
|
2030
2030
|
additionalReplacements: a
|
|
2031
2031
|
}), t[2] = a, t[3] = c, t[4] = l) : l = t[4], l;
|
|
2032
2032
|
};
|
|
2033
|
-
function
|
|
2033
|
+
function rr({ html: e, additionalReplacements: t = Hn }) {
|
|
2034
2034
|
let n = [
|
|
2035
|
-
|
|
2035
|
+
Un,
|
|
2036
|
+
Kn,
|
|
2036
2037
|
qn,
|
|
2037
|
-
Jn,
|
|
2038
2038
|
...t
|
|
2039
2039
|
], r = [
|
|
2040
|
-
Xn,
|
|
2041
2040
|
Yn,
|
|
2041
|
+
Jn,
|
|
2042
|
+
Qn,
|
|
2042
2043
|
$n,
|
|
2043
|
-
|
|
2044
|
-
Gn
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
return pt(e, {
|
|
2044
|
+
Wn,
|
|
2045
|
+
Gn
|
|
2046
|
+
], i = [Xn, Zn];
|
|
2047
|
+
return ft(e, {
|
|
2048
2048
|
replace: (e, t) => {
|
|
2049
2049
|
for (let r of n) {
|
|
2050
2050
|
let n = r(e, t);
|
|
@@ -2071,115 +2071,115 @@ function ir({ html: e, additionalReplacements: t = Un }) {
|
|
|
2071
2071
|
}
|
|
2072
2072
|
//#endregion
|
|
2073
2073
|
//#region src/utils/json/base64.ts
|
|
2074
|
-
function
|
|
2074
|
+
function ir(e, t) {
|
|
2075
2075
|
return `data:${t};base64,${e}`;
|
|
2076
2076
|
}
|
|
2077
|
-
function
|
|
2077
|
+
function ar(e) {
|
|
2078
2078
|
return e.startsWith("data:") && e.includes(";base64,");
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function or(e) {
|
|
2081
2081
|
return e.split(",")[1];
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function sr(e) {
|
|
2084
2084
|
let t = globalThis.atob(e), n = t.length, r = new Uint8Array(n);
|
|
2085
2085
|
for (let e = 0; e < n; e++) r[e] = t.charCodeAt(e);
|
|
2086
2086
|
return r;
|
|
2087
2087
|
}
|
|
2088
|
-
var
|
|
2089
|
-
function
|
|
2090
|
-
let t =
|
|
2088
|
+
var cr = Uint8Array.fromBase64 ?? sr;
|
|
2089
|
+
function lr(e) {
|
|
2090
|
+
let t = cr(e);
|
|
2091
2091
|
return new DataView(t.buffer);
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function ur(e) {
|
|
2094
2094
|
let t = "", n = e.length;
|
|
2095
2095
|
for (let r = 0; r < n; r++) t += String.fromCharCode(e[r]);
|
|
2096
2096
|
return globalThis.btoa(t);
|
|
2097
2097
|
}
|
|
2098
|
-
var
|
|
2099
|
-
function
|
|
2100
|
-
return
|
|
2098
|
+
var dr = "toBase64" in Uint8Array.prototype ? (e) => e.toBase64() : ur;
|
|
2099
|
+
function fr(e) {
|
|
2100
|
+
return dr(new Uint8Array(e.buffer, e.byteOffset, e.byteLength));
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2103
|
-
return (e.buffers ?? []).map(
|
|
2102
|
+
function pr(e) {
|
|
2103
|
+
return (e.buffers ?? []).map(lr);
|
|
2104
2104
|
}
|
|
2105
2105
|
//#endregion
|
|
2106
2106
|
//#region ../node_modules/.pnpm/@radix-ui+react-icons@1.3.2_react@19.3.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js
|
|
2107
|
-
function
|
|
2107
|
+
function W(e, t) {
|
|
2108
2108
|
if (e == null) return {};
|
|
2109
2109
|
var n = {}, r = Object.keys(e), i, a;
|
|
2110
2110
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
2111
2111
|
return n;
|
|
2112
2112
|
}
|
|
2113
|
-
var
|
|
2114
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2115
|
-
return (0,
|
|
2113
|
+
var mr = ["color"], hr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2114
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, mr);
|
|
2115
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2116
2116
|
width: "15",
|
|
2117
2117
|
height: "15",
|
|
2118
2118
|
viewBox: "0 0 15 15",
|
|
2119
2119
|
fill: "none",
|
|
2120
2120
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2121
|
-
}, i, { ref: t }), (0,
|
|
2121
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2122
2122
|
d: "M0.25 1C0.25 0.585786 0.585786 0.25 1 0.25H14C14.4142 0.25 14.75 0.585786 14.75 1V14C14.75 14.4142 14.4142 14.75 14 14.75H1C0.585786 14.75 0.25 14.4142 0.25 14V1ZM1.75 1.75V13.25H13.25V1.75H1.75Z",
|
|
2123
2123
|
fill: r,
|
|
2124
2124
|
fillRule: "evenodd",
|
|
2125
2125
|
clipRule: "evenodd"
|
|
2126
|
-
}), (0,
|
|
2126
|
+
}), (0, D.createElement)("rect", {
|
|
2127
2127
|
x: "7",
|
|
2128
2128
|
y: "5",
|
|
2129
2129
|
width: "1",
|
|
2130
2130
|
height: "1",
|
|
2131
2131
|
rx: ".5",
|
|
2132
2132
|
fill: r
|
|
2133
|
-
}), (0,
|
|
2133
|
+
}), (0, D.createElement)("rect", {
|
|
2134
2134
|
x: "7",
|
|
2135
2135
|
y: "3",
|
|
2136
2136
|
width: "1",
|
|
2137
2137
|
height: "1",
|
|
2138
2138
|
rx: ".5",
|
|
2139
2139
|
fill: r
|
|
2140
|
-
}), (0,
|
|
2140
|
+
}), (0, D.createElement)("rect", {
|
|
2141
2141
|
x: "7",
|
|
2142
2142
|
y: "7",
|
|
2143
2143
|
width: "1",
|
|
2144
2144
|
height: "1",
|
|
2145
2145
|
rx: ".5",
|
|
2146
2146
|
fill: r
|
|
2147
|
-
}), (0,
|
|
2147
|
+
}), (0, D.createElement)("rect", {
|
|
2148
2148
|
x: "5",
|
|
2149
2149
|
y: "7",
|
|
2150
2150
|
width: "1",
|
|
2151
2151
|
height: "1",
|
|
2152
2152
|
rx: ".5",
|
|
2153
2153
|
fill: r
|
|
2154
|
-
}), (0,
|
|
2154
|
+
}), (0, D.createElement)("rect", {
|
|
2155
2155
|
x: "3",
|
|
2156
2156
|
y: "7",
|
|
2157
2157
|
width: "1",
|
|
2158
2158
|
height: "1",
|
|
2159
2159
|
rx: ".5",
|
|
2160
2160
|
fill: r
|
|
2161
|
-
}), (0,
|
|
2161
|
+
}), (0, D.createElement)("rect", {
|
|
2162
2162
|
x: "9",
|
|
2163
2163
|
y: "7",
|
|
2164
2164
|
width: "1",
|
|
2165
2165
|
height: "1",
|
|
2166
2166
|
rx: ".5",
|
|
2167
2167
|
fill: r
|
|
2168
|
-
}), (0,
|
|
2168
|
+
}), (0, D.createElement)("rect", {
|
|
2169
2169
|
x: "11",
|
|
2170
2170
|
y: "7",
|
|
2171
2171
|
width: "1",
|
|
2172
2172
|
height: "1",
|
|
2173
2173
|
rx: ".5",
|
|
2174
2174
|
fill: r
|
|
2175
|
-
}), (0,
|
|
2175
|
+
}), (0, D.createElement)("rect", {
|
|
2176
2176
|
x: "7",
|
|
2177
2177
|
y: "9",
|
|
2178
2178
|
width: "1",
|
|
2179
2179
|
height: "1",
|
|
2180
2180
|
rx: ".5",
|
|
2181
2181
|
fill: r
|
|
2182
|
-
}), (0,
|
|
2182
|
+
}), (0, D.createElement)("rect", {
|
|
2183
2183
|
x: "7",
|
|
2184
2184
|
y: "11",
|
|
2185
2185
|
width: "1",
|
|
@@ -2187,126 +2187,126 @@ var hr = ["color"], gr = /*#__PURE__*/ (0, O.forwardRef)(function(e, t) {
|
|
|
2187
2187
|
rx: ".5",
|
|
2188
2188
|
fill: r
|
|
2189
2189
|
}));
|
|
2190
|
-
}),
|
|
2191
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2192
|
-
return (0,
|
|
2190
|
+
}), gr = ["color"], _r = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2191
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, gr);
|
|
2192
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2193
2193
|
width: "15",
|
|
2194
2194
|
height: "15",
|
|
2195
2195
|
viewBox: "0 0 15 15",
|
|
2196
2196
|
fill: "none",
|
|
2197
2197
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2198
|
-
}, i, { ref: t }), (0,
|
|
2198
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2199
2199
|
d: "M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",
|
|
2200
2200
|
fill: r,
|
|
2201
2201
|
fillRule: "evenodd",
|
|
2202
2202
|
clipRule: "evenodd"
|
|
2203
2203
|
}));
|
|
2204
|
-
}),
|
|
2205
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2206
|
-
return (0,
|
|
2204
|
+
}), vr = ["color"], yr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2205
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, vr);
|
|
2206
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2207
2207
|
width: "15",
|
|
2208
2208
|
height: "15",
|
|
2209
2209
|
viewBox: "0 0 15 15",
|
|
2210
2210
|
fill: "none",
|
|
2211
2211
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2212
|
-
}, i, { ref: t }), (0,
|
|
2212
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2213
2213
|
d: "M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",
|
|
2214
2214
|
fill: r,
|
|
2215
2215
|
fillRule: "evenodd",
|
|
2216
2216
|
clipRule: "evenodd"
|
|
2217
2217
|
}));
|
|
2218
|
-
}),
|
|
2219
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2220
|
-
return (0,
|
|
2218
|
+
}), br = ["color"], xr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2219
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, br);
|
|
2220
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2221
2221
|
width: "15",
|
|
2222
2222
|
height: "15",
|
|
2223
2223
|
viewBox: "0 0 15 15",
|
|
2224
2224
|
fill: "none",
|
|
2225
2225
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2226
|
-
}, i, { ref: t }), (0,
|
|
2226
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2227
2227
|
d: "M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",
|
|
2228
2228
|
fill: r,
|
|
2229
2229
|
fillRule: "evenodd",
|
|
2230
2230
|
clipRule: "evenodd"
|
|
2231
2231
|
}));
|
|
2232
|
-
}),
|
|
2233
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2234
|
-
return (0,
|
|
2232
|
+
}), Sr = ["color"], Cr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2233
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, Sr);
|
|
2234
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2235
2235
|
width: "15",
|
|
2236
2236
|
height: "15",
|
|
2237
2237
|
viewBox: "0 0 15 15",
|
|
2238
2238
|
fill: "none",
|
|
2239
2239
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2240
|
-
}, i, { ref: t }), (0,
|
|
2240
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2241
2241
|
d: "M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",
|
|
2242
2242
|
fill: r,
|
|
2243
2243
|
fillRule: "evenodd",
|
|
2244
2244
|
clipRule: "evenodd"
|
|
2245
2245
|
}));
|
|
2246
|
-
}),
|
|
2247
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2248
|
-
return (0,
|
|
2246
|
+
}), wr = ["color"], Tr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2247
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, wr);
|
|
2248
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2249
2249
|
width: "15",
|
|
2250
2250
|
height: "15",
|
|
2251
2251
|
viewBox: "0 0 15 15",
|
|
2252
2252
|
fill: "none",
|
|
2253
2253
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2254
|
-
}, i, { ref: t }), (0,
|
|
2254
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2255
2255
|
d: "M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",
|
|
2256
2256
|
fill: r
|
|
2257
2257
|
}));
|
|
2258
|
-
}),
|
|
2259
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2260
|
-
return (0,
|
|
2258
|
+
}), Er = ["color"], Dr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2259
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, Er);
|
|
2260
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2261
2261
|
width: "15",
|
|
2262
2262
|
height: "15",
|
|
2263
2263
|
viewBox: "0 0 15 15",
|
|
2264
2264
|
fill: "none",
|
|
2265
2265
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2266
|
-
}, i, { ref: t }), (0,
|
|
2266
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2267
2267
|
d: "M2.05005 13.5C2.05005 13.7485 2.25152 13.95 2.50005 13.95C2.74858 13.95 2.95005 13.7485 2.95005 13.5L2.95005 1.49995C2.95005 1.25142 2.74858 1.04995 2.50005 1.04995C2.25152 1.04995 2.05005 1.25142 2.05005 1.49995L2.05005 13.5ZM8.4317 11.0681C8.60743 11.2439 8.89236 11.2439 9.06809 11.0681C9.24383 10.8924 9.24383 10.6075 9.06809 10.4317L6.58629 7.94993L14.5 7.94993C14.7485 7.94993 14.95 7.74846 14.95 7.49993C14.95 7.2514 14.7485 7.04993 14.5 7.04993L6.58629 7.04993L9.06809 4.56813C9.24383 4.39239 9.24383 4.10746 9.06809 3.93173C8.89236 3.75599 8.60743 3.75599 8.4317 3.93173L5.1817 7.18173C5.00596 7.35746 5.00596 7.64239 5.1817 7.81812L8.4317 11.0681Z",
|
|
2268
2268
|
fill: r,
|
|
2269
2269
|
fillRule: "evenodd",
|
|
2270
2270
|
clipRule: "evenodd"
|
|
2271
2271
|
}));
|
|
2272
|
-
}),
|
|
2273
|
-
var n = e.color, r = n === void 0 ? "currentColor" : n, i =
|
|
2274
|
-
return (0,
|
|
2272
|
+
}), Or = ["color"], kr = /*#__PURE__*/ (0, D.forwardRef)(function(e, t) {
|
|
2273
|
+
var n = e.color, r = n === void 0 ? "currentColor" : n, i = W(e, Or);
|
|
2274
|
+
return (0, D.createElement)("svg", Object.assign({
|
|
2275
2275
|
width: "15",
|
|
2276
2276
|
height: "15",
|
|
2277
2277
|
viewBox: "0 0 15 15",
|
|
2278
2278
|
fill: "none",
|
|
2279
2279
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2280
|
-
}, i, { ref: t }), (0,
|
|
2280
|
+
}, i, { ref: t }), (0, D.createElement)("path", {
|
|
2281
2281
|
d: "M12.95 1.50005C12.95 1.25152 12.7485 1.05005 12.5 1.05005C12.2514 1.05005 12.05 1.25152 12.05 1.50005L12.05 13.5C12.05 13.7486 12.2514 13.95 12.5 13.95C12.7485 13.95 12.95 13.7486 12.95 13.5L12.95 1.50005ZM6.5683 3.93188C6.39257 3.75614 6.10764 3.75614 5.93191 3.93188C5.75617 4.10761 5.75617 4.39254 5.93191 4.56827L8.41371 7.05007L0.499984 7.05007C0.251456 7.05007 0.0499847 7.25155 0.0499847 7.50007C0.0499846 7.7486 0.251457 7.95007 0.499984 7.95007L8.41371 7.95007L5.93191 10.4319C5.75617 10.6076 5.75617 10.8925 5.93191 11.0683C6.10764 11.244 6.39257 11.244 6.56831 11.0683L9.8183 7.81827C9.99404 7.64254 9.99404 7.35761 9.8183 7.18188L6.5683 3.93188Z",
|
|
2282
2282
|
fill: r,
|
|
2283
2283
|
fillRule: "evenodd",
|
|
2284
2284
|
clipRule: "evenodd"
|
|
2285
2285
|
}));
|
|
2286
|
-
}),
|
|
2287
|
-
let n = (0,
|
|
2286
|
+
}), Ar = Lt, jr = D.forwardRef((e, t) => {
|
|
2287
|
+
let n = (0, O.c)(9), i, a;
|
|
2288
2288
|
n[0] === e ? (i = n[1], a = n[2]) : ({className: i, ...a} = e, n[0] = e, n[1] = i, n[2] = a);
|
|
2289
2289
|
let o;
|
|
2290
2290
|
n[3] === i ? o = n[4] : (o = r("border-b", i), n[3] = i, n[4] = o);
|
|
2291
2291
|
let s;
|
|
2292
|
-
return n[5] !== a || n[6] !== t || n[7] !== o ? (s = /* @__PURE__ */ (0,
|
|
2292
|
+
return n[5] !== a || n[6] !== t || n[7] !== o ? (s = /* @__PURE__ */ (0, A.jsx)(Jt, {
|
|
2293
2293
|
ref: t,
|
|
2294
2294
|
className: o,
|
|
2295
2295
|
...a
|
|
2296
2296
|
}), n[5] = a, n[6] = t, n[7] = o, n[8] = s) : s = n[8], s;
|
|
2297
2297
|
});
|
|
2298
|
-
|
|
2299
|
-
var
|
|
2300
|
-
let n = (0,
|
|
2298
|
+
jr.displayName = "AccordionItem";
|
|
2299
|
+
var Mr = D.forwardRef((e, t) => {
|
|
2300
|
+
let n = (0, O.c)(12), i, a, o;
|
|
2301
2301
|
n[0] === e ? (i = n[1], a = n[2], o = n[3]) : ({className: a, children: i, ...o} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o);
|
|
2302
2302
|
let s;
|
|
2303
2303
|
n[4] === a ? s = n[5] : (s = r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180 text-start", a), n[4] = a, n[5] = s);
|
|
2304
2304
|
let c;
|
|
2305
|
-
n[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0,
|
|
2305
|
+
n[6] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, A.jsx)(be, { className: "h-4 w-4 transition-transform duration-200" }), n[6] = c) : c = n[6];
|
|
2306
2306
|
let l;
|
|
2307
|
-
return n[7] !== i || n[8] !== o || n[9] !== t || n[10] !== s ? (l = /* @__PURE__ */ (0,
|
|
2307
|
+
return n[7] !== i || n[8] !== o || n[9] !== t || n[10] !== s ? (l = /* @__PURE__ */ (0, A.jsx)(Xt, {
|
|
2308
2308
|
className: "flex",
|
|
2309
|
-
children: /* @__PURE__ */ (0,
|
|
2309
|
+
children: /* @__PURE__ */ (0, A.jsxs)(Qt, {
|
|
2310
2310
|
ref: t,
|
|
2311
2311
|
className: s,
|
|
2312
2312
|
...o,
|
|
@@ -2314,31 +2314,74 @@ var Nr = O.forwardRef((e, t) => {
|
|
|
2314
2314
|
})
|
|
2315
2315
|
}), n[7] = i, n[8] = o, n[9] = t, n[10] = s, n[11] = l) : l = n[11], l;
|
|
2316
2316
|
});
|
|
2317
|
-
|
|
2318
|
-
var
|
|
2319
|
-
let n = (0,
|
|
2317
|
+
Mr.displayName = Qt.displayName;
|
|
2318
|
+
var Nr = D.forwardRef((e, t) => {
|
|
2319
|
+
let n = (0, O.c)(17), i, a, o, s;
|
|
2320
2320
|
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({className: a, children: i, wrapperClassName: s, ...o} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
|
|
2321
2321
|
let c;
|
|
2322
2322
|
n[5] === a ? c = n[6] : (c = r("overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down", a), n[5] = a, n[6] = c);
|
|
2323
2323
|
let l;
|
|
2324
2324
|
n[7] === s ? l = n[8] : (l = r("pb-4 pt-0", s), n[7] = s, n[8] = l);
|
|
2325
2325
|
let u;
|
|
2326
|
-
n[9] !== i || n[10] !== l ? (u = /* @__PURE__ */ (0,
|
|
2326
|
+
n[9] !== i || n[10] !== l ? (u = /* @__PURE__ */ (0, A.jsx)("div", {
|
|
2327
2327
|
className: l,
|
|
2328
2328
|
children: i
|
|
2329
2329
|
}), n[9] = i, n[10] = l, n[11] = u) : u = n[11];
|
|
2330
2330
|
let d;
|
|
2331
|
-
return n[12] !== o || n[13] !== t || n[14] !== c || n[15] !== u ? (d = /* @__PURE__ */ (0,
|
|
2331
|
+
return n[12] !== o || n[13] !== t || n[14] !== c || n[15] !== u ? (d = /* @__PURE__ */ (0, A.jsx)(en, {
|
|
2332
2332
|
ref: t,
|
|
2333
2333
|
className: c,
|
|
2334
2334
|
...o,
|
|
2335
2335
|
children: u
|
|
2336
2336
|
}), n[12] = o, n[13] = t, n[14] = c, n[15] = u, n[16] = d) : d = n[16], d;
|
|
2337
2337
|
});
|
|
2338
|
-
|
|
2338
|
+
Nr.displayName = en.displayName;
|
|
2339
|
+
//#endregion
|
|
2340
|
+
//#region ../node_modules/.pnpm/typescript-memoize@1.1.1/node_modules/typescript-memoize/dist/es2015/memoize-decorator.js
|
|
2341
|
+
var Pr = /* @__PURE__ */ e(oe(), 1);
|
|
2342
|
+
function Fr(e) {
|
|
2343
|
+
let t, n, r;
|
|
2344
|
+
return typeof e == "object" ? (t = e.hashFunction, n = e.expiring, r = e.tags) : t = e, (e, i, a) => {
|
|
2345
|
+
if (a.value != null) a.value = Lr(a.value, t, n, r);
|
|
2346
|
+
else if (a.get != null) a.get = Lr(a.get, t, n, r);
|
|
2347
|
+
else throw "Only put a Memoize() decorator on a method or get accessor.";
|
|
2348
|
+
};
|
|
2349
|
+
}
|
|
2350
|
+
var Ir = /* @__PURE__ */ new Map();
|
|
2351
|
+
function Lr(e, t, n = 0, r) {
|
|
2352
|
+
let i = Symbol("__memoized_map__");
|
|
2353
|
+
return function(...a) {
|
|
2354
|
+
let o;
|
|
2355
|
+
this.hasOwnProperty(i) || Object.defineProperty(this, i, {
|
|
2356
|
+
configurable: !1,
|
|
2357
|
+
enumerable: !1,
|
|
2358
|
+
writable: !1,
|
|
2359
|
+
value: /* @__PURE__ */ new Map()
|
|
2360
|
+
});
|
|
2361
|
+
let s = this[i];
|
|
2362
|
+
if (Array.isArray(r)) for (let e of r) Ir.has(e) ? Ir.get(e).push(s) : Ir.set(e, [s]);
|
|
2363
|
+
if (t || a.length > 0 || n > 0) {
|
|
2364
|
+
let r;
|
|
2365
|
+
r = t === !0 ? a.map((e) => e.toString()).join("!") : t ? t.apply(this, a) : a[0];
|
|
2366
|
+
let i = `${r}__timestamp`, c = !1;
|
|
2367
|
+
if (n > 0) {
|
|
2368
|
+
if (!s.has(i)) c = !0;
|
|
2369
|
+
else {
|
|
2370
|
+
let e = s.get(i);
|
|
2371
|
+
c = Date.now() - e > n;
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
s.has(r) && !c ? o = s.get(r) : (o = e.apply(this, a), s.set(r, o), n > 0 && s.set(i, Date.now()));
|
|
2375
|
+
} else {
|
|
2376
|
+
let t = this;
|
|
2377
|
+
s.has(t) ? o = s.get(t) : (o = e.apply(this, a), s.set(t, o));
|
|
2378
|
+
}
|
|
2379
|
+
return o;
|
|
2380
|
+
};
|
|
2381
|
+
}
|
|
2339
2382
|
//#endregion
|
|
2340
2383
|
//#region src/utils/multi-map.ts
|
|
2341
|
-
var
|
|
2384
|
+
var Rr = class {
|
|
2342
2385
|
map = /* @__PURE__ */ new Map();
|
|
2343
2386
|
get(e) {
|
|
2344
2387
|
return this.map.get(e) ?? [];
|
|
@@ -2380,12 +2423,20 @@ var Fr = /* @__PURE__ */ e(be(), 1), Ir = class {
|
|
|
2380
2423
|
}
|
|
2381
2424
|
};
|
|
2382
2425
|
//#endregion
|
|
2426
|
+
//#region \0@oxc-project+runtime@0.147.0/helpers/esm/decorate.js
|
|
2427
|
+
function zr(e, t, n, r) {
|
|
2428
|
+
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
2429
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
2430
|
+
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
2431
|
+
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
2432
|
+
}
|
|
2433
|
+
//#endregion
|
|
2383
2434
|
//#region src/core/ai/context/registry.ts
|
|
2384
|
-
function
|
|
2435
|
+
function Br(e) {
|
|
2385
2436
|
let t = e.indexOf("://");
|
|
2386
2437
|
if (t !== -1) return e.slice(0, t);
|
|
2387
2438
|
}
|
|
2388
|
-
var
|
|
2439
|
+
var Vr = class {
|
|
2389
2440
|
async getAttachments(e) {
|
|
2390
2441
|
return [];
|
|
2391
2442
|
}
|
|
@@ -2407,7 +2458,7 @@ var Rr = class {
|
|
|
2407
2458
|
section: t?.section || this.title
|
|
2408
2459
|
};
|
|
2409
2460
|
}
|
|
2410
|
-
},
|
|
2461
|
+
}, Hr = class {
|
|
2411
2462
|
providers = /* @__PURE__ */ new Set();
|
|
2412
2463
|
register(e) {
|
|
2413
2464
|
return this.providers.add(e), this;
|
|
@@ -2425,14 +2476,14 @@ var Rr = class {
|
|
|
2425
2476
|
return [...this.providers].flatMap((t) => t.parseContextIds(e));
|
|
2426
2477
|
}
|
|
2427
2478
|
findProviderForUri(e) {
|
|
2428
|
-
let t =
|
|
2479
|
+
let t = Br(e);
|
|
2429
2480
|
if (t) return [...this.providers].find((n) => n.contextType === t && n.getItems().some((t) => t.uri === e));
|
|
2430
2481
|
}
|
|
2431
2482
|
resolveItems(e) {
|
|
2432
2483
|
if (e.length === 0) return [];
|
|
2433
|
-
let t = new
|
|
2484
|
+
let t = new Rr();
|
|
2434
2485
|
for (let n of e) {
|
|
2435
|
-
let e =
|
|
2486
|
+
let e = Br(n);
|
|
2436
2487
|
e && t.add(e, n);
|
|
2437
2488
|
}
|
|
2438
2489
|
let n = /* @__PURE__ */ new Map();
|
|
@@ -2463,7 +2514,7 @@ var Rr = class {
|
|
|
2463
2514
|
async getAttachmentsForContext(e) {
|
|
2464
2515
|
let t = this.resolveItems(e);
|
|
2465
2516
|
if (t.length === 0) return [];
|
|
2466
|
-
let r = new
|
|
2517
|
+
let r = new Rr();
|
|
2467
2518
|
for (let e of t) {
|
|
2468
2519
|
let t = this.findProviderForUri(e.uri);
|
|
2469
2520
|
t && r.add(t, e);
|
|
@@ -2478,30 +2529,30 @@ var Rr = class {
|
|
|
2478
2529
|
return (await Promise.all(i)).flat();
|
|
2479
2530
|
}
|
|
2480
2531
|
};
|
|
2481
|
-
|
|
2532
|
+
zr([Fr()], Hr.prototype, "getAllItems", null);
|
|
2482
2533
|
//#endregion
|
|
2483
2534
|
//#region src/core/ai/context/utils.ts
|
|
2484
|
-
function
|
|
2535
|
+
function Ur(e) {
|
|
2485
2536
|
return e.replaceAll("<", "<").replaceAll(">", ">");
|
|
2486
2537
|
}
|
|
2487
|
-
function
|
|
2538
|
+
function Wr(e) {
|
|
2488
2539
|
let { type: t, data: n, details: r } = e, i = `<${t}`;
|
|
2489
2540
|
for (let [e, t] of Object.entries(n)) if (t !== void 0) {
|
|
2490
|
-
let n =
|
|
2541
|
+
let n = Ur(typeof t == "object" && t ? JSON.stringify(t) : String(t));
|
|
2491
2542
|
i += ` ${e}="${n}"`;
|
|
2492
2543
|
}
|
|
2493
|
-
return i += ">", r && (i +=
|
|
2544
|
+
return i += ">", r && (i += Ur(r)), i += `</${t}>`, i;
|
|
2494
2545
|
}
|
|
2495
2546
|
//#endregion
|
|
2496
2547
|
//#region src/core/ai/context/providers/common.ts
|
|
2497
|
-
var
|
|
2548
|
+
var Gr = {
|
|
2498
2549
|
LOCAL_TABLE: 7,
|
|
2499
2550
|
REMOTE_TABLE: 5,
|
|
2500
2551
|
HIGH: 4,
|
|
2501
2552
|
MEDIUM: 3,
|
|
2502
2553
|
CELL_OUTPUT: 2,
|
|
2503
2554
|
LOW: 2
|
|
2504
|
-
},
|
|
2555
|
+
}, Kr = {
|
|
2505
2556
|
ERROR: {
|
|
2506
2557
|
name: "Error",
|
|
2507
2558
|
rank: 1
|
|
@@ -2526,19 +2577,19 @@ var Hr = {
|
|
|
2526
2577
|
name: "File",
|
|
2527
2578
|
rank: 6
|
|
2528
2579
|
}
|
|
2529
|
-
},
|
|
2580
|
+
}, qr = "datasource", Jr = class extends Vr {
|
|
2530
2581
|
title = "Datasource";
|
|
2531
2582
|
mentionPrefix = "@";
|
|
2532
|
-
contextType =
|
|
2583
|
+
contextType = qr;
|
|
2533
2584
|
connectionsMap;
|
|
2534
2585
|
dataframes;
|
|
2535
2586
|
constructor(e, t) {
|
|
2536
|
-
super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) =>
|
|
2587
|
+
super(), this.connectionsMap = e, this.dataframes = [...t.values()].filter((e) => de(e) === "dataframe");
|
|
2537
2588
|
}
|
|
2538
2589
|
getItems() {
|
|
2539
2590
|
return [...this.connectionsMap.values()].map((e) => {
|
|
2540
2591
|
let t = "Database schema.", n = { connection: e };
|
|
2541
|
-
return
|
|
2592
|
+
return ie.has(e.name) && (n.tables = this.dataframes, t = "Database schema and the dataframes that can be queried"), e.databases.length === 0 && (n.tables?.length ?? 0) === 0 ? null : {
|
|
2542
2593
|
uri: this.asURI(e.name),
|
|
2543
2594
|
name: e.name,
|
|
2544
2595
|
description: t,
|
|
@@ -2549,10 +2600,10 @@ var Hr = {
|
|
|
2549
2600
|
}
|
|
2550
2601
|
formatContext(e) {
|
|
2551
2602
|
let t = e.data, { name: n, display_name: r, source: i, ...a } = t.connection, o = a;
|
|
2552
|
-
return
|
|
2603
|
+
return ie.has(n) || (o = {
|
|
2553
2604
|
...a,
|
|
2554
2605
|
engine_name: n
|
|
2555
|
-
}),
|
|
2606
|
+
}), Wr({
|
|
2556
2607
|
type: this.contextType,
|
|
2557
2608
|
data: {
|
|
2558
2609
|
connection: o,
|
|
@@ -2562,96 +2613,96 @@ var Hr = {
|
|
|
2562
2613
|
}
|
|
2563
2614
|
formatCompletion(e) {
|
|
2564
2615
|
let t = e.data, n = t.connection, r = t.tables, i = n.name;
|
|
2565
|
-
return
|
|
2616
|
+
return ie.has(n.name) && (i = "In-Memory"), {
|
|
2566
2617
|
label: `@${i}`,
|
|
2567
2618
|
displayLabel: i,
|
|
2568
|
-
detail:
|
|
2569
|
-
boost:
|
|
2619
|
+
detail: ue(n.dialect),
|
|
2620
|
+
boost: Gr.MEDIUM,
|
|
2570
2621
|
type: this.contextType,
|
|
2571
|
-
section:
|
|
2622
|
+
section: Kr.DATA_SOURCES,
|
|
2572
2623
|
info: () => {
|
|
2573
2624
|
let e = document.createElement("div");
|
|
2574
|
-
return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0,
|
|
2625
|
+
return e.classList.add("mo-cm-tooltip", "docs-documentation"), (0, Pr.createRoot)(e).render(le(n, r)), e;
|
|
2575
2626
|
}
|
|
2576
2627
|
};
|
|
2577
2628
|
}
|
|
2578
2629
|
};
|
|
2579
|
-
function
|
|
2580
|
-
let n = t.get(
|
|
2630
|
+
function Yr(e, t) {
|
|
2631
|
+
let n = t.get(pe(e))?.code;
|
|
2581
2632
|
if (!n || n.trim() === "") return null;
|
|
2582
|
-
let [r, i, a] =
|
|
2583
|
-
return o ? `@${
|
|
2633
|
+
let [r, i, a] = ve.sql.transformIn(n), o = t.get(ce).connectionsMap.get(a.engine);
|
|
2634
|
+
return o ? `@${qr}://${o.name}` : null;
|
|
2584
2635
|
}
|
|
2585
|
-
function
|
|
2586
|
-
let n =
|
|
2636
|
+
function Xr(e, t) {
|
|
2637
|
+
let n = Yr(e, t);
|
|
2587
2638
|
if (!n) return null;
|
|
2588
|
-
let r = t.get(
|
|
2639
|
+
let r = t.get(ce).connectionsMap, i = new Jr(r, t.get(se)), a = n.slice(1), o = i.getItems().find((e) => e.uri === a);
|
|
2589
2640
|
return o ? i.formatContext(o) : null;
|
|
2590
2641
|
}
|
|
2591
2642
|
//#endregion
|
|
2592
2643
|
//#region src/core/notebook/document/select.ts
|
|
2593
|
-
function
|
|
2594
|
-
return
|
|
2644
|
+
function Zr(e, t, n) {
|
|
2645
|
+
return Ke(e, (e) => e?.cells.get(t)?.[n], Ue);
|
|
2595
2646
|
}
|
|
2596
2647
|
//#endregion
|
|
2597
2648
|
//#region src/core/notebook/document/hooks.tsx
|
|
2598
|
-
var
|
|
2599
|
-
function
|
|
2600
|
-
let e = (0,
|
|
2649
|
+
var Qr = (0, D.createContext)(null);
|
|
2650
|
+
function $r() {
|
|
2651
|
+
let e = (0, D.useContext)(Qr);
|
|
2601
2652
|
if (e === null) throw Error("Document hooks require a DocumentProvider");
|
|
2602
2653
|
return e;
|
|
2603
2654
|
}
|
|
2604
|
-
function
|
|
2605
|
-
let n = (0,
|
|
2606
|
-
return n[0] !== r || n[1] !== t || n[2] !== e ? (i =
|
|
2655
|
+
function ei(e, t) {
|
|
2656
|
+
let n = (0, O.c)(4), { documentAtom: r } = $r(), i;
|
|
2657
|
+
return n[0] !== r || n[1] !== t || n[2] !== e ? (i = Zr(r, e, t), n[0] = r, n[1] = t, n[2] = e, n[3] = i) : i = n[3], E(i);
|
|
2607
2658
|
}
|
|
2608
|
-
function
|
|
2609
|
-
return
|
|
2659
|
+
function ti(e) {
|
|
2660
|
+
return ei(e, "config");
|
|
2610
2661
|
}
|
|
2611
|
-
function
|
|
2612
|
-
return
|
|
2662
|
+
function ni() {
|
|
2663
|
+
return Ge($r().editAtom);
|
|
2613
2664
|
}
|
|
2614
2665
|
//#endregion
|
|
2615
2666
|
//#region src/core/cells/outputs.ts
|
|
2616
|
-
var
|
|
2617
|
-
function
|
|
2618
|
-
let t = (0,
|
|
2619
|
-
t[0] !== e || t[1] !== i ? (a = () =>
|
|
2620
|
-
let [o, s] = (0,
|
|
2667
|
+
var ri = {}, ii = {};
|
|
2668
|
+
function ai(e) {
|
|
2669
|
+
let t = (0, O.c)(14), { mode: n } = E(Te), r = ni(), i = ti(e)?.expand_output ?? !1, a;
|
|
2670
|
+
t[0] !== e || t[1] !== i ? (a = () => ri[e] ?? i, t[0] = e, t[1] = i, t[2] = a) : a = t[2];
|
|
2671
|
+
let [o, s] = (0, D.useState)(a), c, l;
|
|
2621
2672
|
t[3] !== e || t[4] !== o ? (c = () => {
|
|
2622
|
-
|
|
2623
|
-
}, l = [e, o], t[3] = e, t[4] = o, t[5] = c, t[6] = l) : (c = t[5], l = t[6]), (0,
|
|
2673
|
+
ri[e] = o;
|
|
2674
|
+
}, l = [e, o], t[3] = e, t[4] = o, t[5] = c, t[6] = l) : (c = t[5], l = t[6]), (0, D.useEffect)(c, l);
|
|
2624
2675
|
let u = n === "edit", d = u ? i : o, f;
|
|
2625
2676
|
t[7] !== e || t[8] !== r || t[9] !== u ? (f = (t) => {
|
|
2626
2677
|
s(t), !(!u || e === "__scratch__") && r((n) => n.updateConfig(e, { expand_output: t }));
|
|
2627
2678
|
}, t[7] = e, t[8] = r, t[9] = u, t[10] = f) : f = t[10];
|
|
2628
|
-
let p =
|
|
2679
|
+
let p = qe(f), m;
|
|
2629
2680
|
return t[11] !== d || t[12] !== p ? (m = [d, p], t[11] = d, t[12] = p, t[13] = m) : m = t[13], m;
|
|
2630
2681
|
}
|
|
2631
|
-
function
|
|
2632
|
-
let t = (0,
|
|
2682
|
+
function oi(e) {
|
|
2683
|
+
let t = (0, O.c)(6), [n, r] = (0, D.useState)(ii[e] ?? !1), i, a;
|
|
2633
2684
|
t[0] !== e || t[1] !== n ? (i = () => {
|
|
2634
|
-
|
|
2635
|
-
}, a = [e, n], t[0] = e, t[1] = n, t[2] = i, t[3] = a) : (i = t[2], a = t[3]), (0,
|
|
2685
|
+
ii[e] = n;
|
|
2686
|
+
}, a = [e, n], t[0] = e, t[1] = n, t[2] = i, t[3] = a) : (i = t[2], a = t[3]), (0, D.useEffect)(i, a);
|
|
2636
2687
|
let o;
|
|
2637
2688
|
return t[4] === n ? o = t[5] : (o = [n, r], t[4] = n, t[5] = o), o;
|
|
2638
2689
|
}
|
|
2639
|
-
function
|
|
2690
|
+
function si(e) {
|
|
2640
2691
|
return e == null || e.data == null || e.data === "";
|
|
2641
2692
|
}
|
|
2642
2693
|
//#endregion
|
|
2643
2694
|
//#region src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx
|
|
2644
|
-
var
|
|
2645
|
-
function
|
|
2695
|
+
var ci = (0, D.lazy)(() => import("./any-language-editor-BVFHDDQ3.js")), li = [Ze.lineWrapping];
|
|
2696
|
+
function ui(e, t) {
|
|
2646
2697
|
return e ? e === "python" ? {
|
|
2647
2698
|
language: e,
|
|
2648
2699
|
code: t
|
|
2649
2700
|
} : e === "sql" ? {
|
|
2650
2701
|
language: "python",
|
|
2651
|
-
code:
|
|
2702
|
+
code: re.fromQuery(t)
|
|
2652
2703
|
} : e === "markdown" ? {
|
|
2653
2704
|
language: "python",
|
|
2654
|
-
code:
|
|
2705
|
+
code: _e.fromMarkdown(t)
|
|
2655
2706
|
} : e === "shell" || e === "bash" ? {
|
|
2656
2707
|
language: "python",
|
|
2657
2708
|
code: `import subprocess\nsubprocess.run("${t}")`
|
|
@@ -2663,11 +2714,11 @@ function si(e, t) {
|
|
|
2663
2714
|
code: t
|
|
2664
2715
|
};
|
|
2665
2716
|
}
|
|
2666
|
-
var
|
|
2667
|
-
let t = (0,
|
|
2717
|
+
var di = (e) => {
|
|
2718
|
+
let t = (0, O.c)(9), { code: n, language: r } = e, { createCell: i } = ae(), a = fe(), s = E(Ye), c;
|
|
2668
2719
|
t[0] !== s || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (c = () => {
|
|
2669
|
-
let e =
|
|
2670
|
-
r === "sql" &&
|
|
2720
|
+
let e = ui(r, n);
|
|
2721
|
+
r === "sql" && he({
|
|
2671
2722
|
autoInstantiate: s,
|
|
2672
2723
|
createCell: i,
|
|
2673
2724
|
fromCellId: a
|
|
@@ -2677,108 +2728,108 @@ var ci = (e) => {
|
|
|
2677
2728
|
});
|
|
2678
2729
|
}, t[0] = s, t[1] = n, t[2] = i, t[3] = r, t[4] = a, t[5] = c) : c = t[5];
|
|
2679
2730
|
let l = c, u;
|
|
2680
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0,
|
|
2731
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0, A.jsx)(pt, { className: "ml-2 h-4 w-4" }), t[6] = u) : u = t[6];
|
|
2681
2732
|
let d;
|
|
2682
|
-
return t[7] === l ? d = t[8] : (d = /* @__PURE__ */ (0,
|
|
2733
|
+
return t[7] === l ? d = t[8] : (d = /* @__PURE__ */ (0, A.jsxs)(o, {
|
|
2683
2734
|
size: "xs",
|
|
2684
2735
|
variant: "outline",
|
|
2685
2736
|
onClick: l,
|
|
2686
2737
|
children: ["Add to Notebook", u]
|
|
2687
2738
|
}), t[7] = l, t[8] = d), d;
|
|
2688
|
-
},
|
|
2689
|
-
let t = (0,
|
|
2739
|
+
}, fi = (e) => {
|
|
2740
|
+
let t = (0, O.c)(17), { code: n, language: r } = e, { theme: i } = Xe(), [a, o] = (0, D.useState)(n);
|
|
2690
2741
|
a !== n && o(n);
|
|
2691
2742
|
let s;
|
|
2692
2743
|
t[0] === a ? s = t[1] : (s = async () => {
|
|
2693
2744
|
await u(a);
|
|
2694
2745
|
}, t[0] = a, t[1] = s);
|
|
2695
2746
|
let c = s, l = i === "dark" ? "dark" : "light", d;
|
|
2696
|
-
t[2] !== r || t[3] !== l || t[4] !== a ? (d = /* @__PURE__ */ (0,
|
|
2747
|
+
t[2] !== r || t[3] !== l || t[4] !== a ? (d = /* @__PURE__ */ (0, A.jsx)(D.Suspense, { children: /* @__PURE__ */ (0, A.jsx)(ci, {
|
|
2697
2748
|
theme: l,
|
|
2698
2749
|
language: r,
|
|
2699
2750
|
hideUnsupportedLanguageErrors: !0,
|
|
2700
2751
|
className: "cm border rounded overflow-hidden",
|
|
2701
|
-
extensions:
|
|
2752
|
+
extensions: li,
|
|
2702
2753
|
value: a,
|
|
2703
2754
|
onChange: o
|
|
2704
2755
|
}) }), t[2] = r, t[3] = l, t[4] = a, t[5] = d) : d = t[5];
|
|
2705
2756
|
let f;
|
|
2706
|
-
t[6] === c ? f = t[7] : (f = /* @__PURE__ */ (0,
|
|
2757
|
+
t[6] === c ? f = t[7] : (f = /* @__PURE__ */ (0, A.jsx)(pi, {
|
|
2707
2758
|
size: "xs",
|
|
2708
2759
|
variant: "outline",
|
|
2709
2760
|
onClick: c,
|
|
2710
2761
|
children: "Copy"
|
|
2711
2762
|
}), t[6] = c, t[7] = f);
|
|
2712
2763
|
let p;
|
|
2713
|
-
t[8] !== r || t[9] !== a ? (p = /* @__PURE__ */ (0,
|
|
2764
|
+
t[8] !== r || t[9] !== a ? (p = /* @__PURE__ */ (0, A.jsx)(di, {
|
|
2714
2765
|
code: a,
|
|
2715
2766
|
language: r
|
|
2716
2767
|
}), t[8] = r, t[9] = a, t[10] = p) : p = t[10];
|
|
2717
2768
|
let m;
|
|
2718
|
-
t[11] !== f || t[12] !== p ? (m = /* @__PURE__ */ (0,
|
|
2769
|
+
t[11] !== f || t[12] !== p ? (m = /* @__PURE__ */ (0, A.jsxs)("div", {
|
|
2719
2770
|
className: "flex justify-end mt-2 space-x-2",
|
|
2720
2771
|
children: [f, p]
|
|
2721
2772
|
}), t[11] = f, t[12] = p, t[13] = m) : m = t[13];
|
|
2722
2773
|
let h;
|
|
2723
|
-
return t[14] !== d || t[15] !== m ? (h = /* @__PURE__ */ (0,
|
|
2774
|
+
return t[14] !== d || t[15] !== m ? (h = /* @__PURE__ */ (0, A.jsxs)("div", {
|
|
2724
2775
|
className: "relative",
|
|
2725
2776
|
children: [d, m]
|
|
2726
2777
|
}), t[14] = d, t[15] = m, t[16] = h) : h = t[16], h;
|
|
2727
|
-
},
|
|
2728
|
-
let t = (0,
|
|
2778
|
+
}, pi = (e) => {
|
|
2779
|
+
let t = (0, O.c)(9), n, r;
|
|
2729
2780
|
t[0] === e ? (n = t[1], r = t[2]) : ({onClick: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
2730
|
-
let [i, a] = (0,
|
|
2781
|
+
let [i, a] = (0, D.useState)(!1), s;
|
|
2731
2782
|
t[3] === n ? s = t[4] : (s = (e) => {
|
|
2732
2783
|
n?.(e), a(!0), setTimeout(() => a(!1), 1e3);
|
|
2733
2784
|
}, t[3] = n, t[4] = s);
|
|
2734
2785
|
let c = i ? "Copied" : "Copy", l;
|
|
2735
|
-
return t[5] !== r || t[6] !== s || t[7] !== c ? (l = /* @__PURE__ */ (0,
|
|
2786
|
+
return t[5] !== r || t[6] !== s || t[7] !== c ? (l = /* @__PURE__ */ (0, A.jsx)(o, {
|
|
2736
2787
|
...r,
|
|
2737
2788
|
onClick: s,
|
|
2738
2789
|
children: c
|
|
2739
2790
|
}), t[5] = r, t[6] = s, t[7] = c, t[8] = l) : l = t[8], l;
|
|
2740
|
-
},
|
|
2791
|
+
}, mi = {
|
|
2741
2792
|
...p,
|
|
2742
2793
|
attributes: {
|
|
2743
2794
|
...p.attributes,
|
|
2744
2795
|
"*": [...p.attributes?.["*"] ?? [], "className"]
|
|
2745
2796
|
}
|
|
2746
|
-
},
|
|
2797
|
+
}, hi = Object.values({
|
|
2747
2798
|
...g,
|
|
2748
|
-
sanitize: [h,
|
|
2749
|
-
}),
|
|
2799
|
+
sanitize: [h, mi]
|
|
2800
|
+
}), gi = { code: ({ children: e, className: t }) => {
|
|
2750
2801
|
let n = t?.replace("language-", "");
|
|
2751
2802
|
if (n && typeof e == "string") {
|
|
2752
2803
|
let t = e.trim();
|
|
2753
|
-
return /* @__PURE__ */ (0,
|
|
2804
|
+
return /* @__PURE__ */ (0, A.jsxs)("div", { children: [/* @__PURE__ */ (0, A.jsx)("div", {
|
|
2754
2805
|
className: "text-xs text-muted-foreground pl-1",
|
|
2755
2806
|
children: n
|
|
2756
|
-
}), /* @__PURE__ */ (0,
|
|
2807
|
+
}), /* @__PURE__ */ (0, A.jsx)(fi, {
|
|
2757
2808
|
code: t,
|
|
2758
2809
|
language: n
|
|
2759
2810
|
})] });
|
|
2760
2811
|
}
|
|
2761
|
-
return /* @__PURE__ */ (0,
|
|
2812
|
+
return /* @__PURE__ */ (0, A.jsx)("code", {
|
|
2762
2813
|
className: t,
|
|
2763
2814
|
children: e
|
|
2764
2815
|
});
|
|
2765
|
-
} },
|
|
2766
|
-
let { data: e } =
|
|
2816
|
+
} }, _i, vi = () => {
|
|
2817
|
+
let { data: e } = Qe(async () => _i || (_i = { math: (await import("./dist-Lm-D-Vr6.js")).math }, _i), []);
|
|
2767
2818
|
return e;
|
|
2768
|
-
},
|
|
2769
|
-
let t = (0,
|
|
2770
|
-
return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0,
|
|
2771
|
-
components:
|
|
2819
|
+
}, yi = (0, D.memo)((e) => {
|
|
2820
|
+
let t = (0, O.c)(3), { content: n } = e, r = vi(), i;
|
|
2821
|
+
return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0, A.jsx)(f, {
|
|
2822
|
+
components: gi,
|
|
2772
2823
|
plugins: r,
|
|
2773
|
-
rehypePlugins:
|
|
2824
|
+
rehypePlugins: hi,
|
|
2774
2825
|
className: "mo-markdown-renderer",
|
|
2775
2826
|
children: n
|
|
2776
2827
|
}), t[0] = n, t[1] = r, t[2] = i) : i = t[2], i;
|
|
2777
2828
|
});
|
|
2778
|
-
|
|
2829
|
+
yi.displayName = "MarkdownRenderer";
|
|
2779
2830
|
//#endregion
|
|
2780
2831
|
//#region src/components/icons/spinner.tsx
|
|
2781
|
-
var
|
|
2832
|
+
var bi = a("animate-spin", {
|
|
2782
2833
|
variants: {
|
|
2783
2834
|
centered: { true: "m-auto" },
|
|
2784
2835
|
size: {
|
|
@@ -2789,67 +2840,67 @@ var _i = a("animate-spin", {
|
|
|
2789
2840
|
}
|
|
2790
2841
|
},
|
|
2791
2842
|
defaultVariants: { size: "medium" }
|
|
2792
|
-
}),
|
|
2793
|
-
let n = (0,
|
|
2843
|
+
}), xi = D.forwardRef((e, t) => {
|
|
2844
|
+
let n = (0, O.c)(13), i, a, o, s;
|
|
2794
2845
|
if (n[0] !== e) {
|
|
2795
2846
|
let { className: t, children: r, centered: c, size: l, ...u } = e;
|
|
2796
2847
|
a = t, i = c, s = l, o = u, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s;
|
|
2797
2848
|
} else i = n[1], a = n[2], o = n[3], s = n[4];
|
|
2798
2849
|
let c;
|
|
2799
|
-
n[5] !== i || n[6] !== a || n[7] !== s ? (c = r(
|
|
2850
|
+
n[5] !== i || n[6] !== a || n[7] !== s ? (c = r(bi({
|
|
2800
2851
|
centered: i,
|
|
2801
2852
|
size: s
|
|
2802
2853
|
}), a), n[5] = i, n[6] = a, n[7] = s, n[8] = c) : c = n[8];
|
|
2803
2854
|
let l;
|
|
2804
|
-
return n[9] !== o || n[10] !== t || n[11] !== c ? (l = /* @__PURE__ */ (0,
|
|
2855
|
+
return n[9] !== o || n[10] !== t || n[11] !== c ? (l = /* @__PURE__ */ (0, A.jsx)(mt, {
|
|
2805
2856
|
ref: t,
|
|
2806
2857
|
className: c,
|
|
2807
2858
|
strokeWidth: 1.5,
|
|
2808
2859
|
...o
|
|
2809
2860
|
}), n[9] = o, n[10] = t, n[11] = c, n[12] = l) : l = n[12], l;
|
|
2810
2861
|
});
|
|
2811
|
-
|
|
2862
|
+
xi.displayName = "Spinner";
|
|
2812
2863
|
//#endregion
|
|
2813
2864
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/util.js
|
|
2814
|
-
function
|
|
2865
|
+
function Si(e, t) {
|
|
2815
2866
|
if (e.match(/^[a-z]+:\/\//i)) return e;
|
|
2816
2867
|
if (e.match(/^\/\//)) return window.location.protocol + e;
|
|
2817
2868
|
if (e.match(/^[a-z]+:/i)) return e;
|
|
2818
2869
|
let n = document.implementation.createHTMLDocument(), r = n.createElement("base"), i = n.createElement("a");
|
|
2819
2870
|
return n.head.appendChild(r), n.body.appendChild(i), t && (r.href = t), i.href = e, i.href;
|
|
2820
2871
|
}
|
|
2821
|
-
var
|
|
2872
|
+
var Ci = (() => {
|
|
2822
2873
|
let e = 0, t = () => `0000${(Math.random() * 36 ** 4 << 0).toString(36)}`.slice(-4);
|
|
2823
2874
|
return () => (e += 1, `u${t()}${e}`);
|
|
2824
2875
|
})();
|
|
2825
|
-
function
|
|
2876
|
+
function G(e) {
|
|
2826
2877
|
let t = [];
|
|
2827
2878
|
for (let n = 0, r = e.length; n < r; n++) t.push(e[n]);
|
|
2828
2879
|
return t;
|
|
2829
2880
|
}
|
|
2830
|
-
var
|
|
2831
|
-
function
|
|
2832
|
-
return
|
|
2881
|
+
var K = null;
|
|
2882
|
+
function wi(e = {}) {
|
|
2883
|
+
return K || (e.includeStyleProperties ? (K = e.includeStyleProperties, K) : (K = G(window.getComputedStyle(document.documentElement)), K));
|
|
2833
2884
|
}
|
|
2834
|
-
function
|
|
2885
|
+
function q(e, t) {
|
|
2835
2886
|
let n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
|
|
2836
2887
|
return n ? parseFloat(n.replace("px", "")) : 0;
|
|
2837
2888
|
}
|
|
2838
|
-
function
|
|
2839
|
-
let t =
|
|
2889
|
+
function Ti(e) {
|
|
2890
|
+
let t = q(e, "border-left-width"), n = q(e, "border-right-width");
|
|
2840
2891
|
return e.clientWidth + t + n;
|
|
2841
2892
|
}
|
|
2842
|
-
function
|
|
2843
|
-
let t =
|
|
2893
|
+
function Ei(e) {
|
|
2894
|
+
let t = q(e, "border-top-width"), n = q(e, "border-bottom-width");
|
|
2844
2895
|
return e.clientHeight + t + n;
|
|
2845
2896
|
}
|
|
2846
|
-
function
|
|
2897
|
+
function Di(e, t = {}) {
|
|
2847
2898
|
return {
|
|
2848
|
-
width: t.width ||
|
|
2849
|
-
height: t.height ||
|
|
2899
|
+
width: t.width || Ti(e),
|
|
2900
|
+
height: t.height || Ei(e)
|
|
2850
2901
|
};
|
|
2851
2902
|
}
|
|
2852
|
-
function
|
|
2903
|
+
function Oi() {
|
|
2853
2904
|
let e, t;
|
|
2854
2905
|
try {
|
|
2855
2906
|
t = process;
|
|
@@ -2857,11 +2908,11 @@ function Ti() {
|
|
|
2857
2908
|
let n = t && t.env ? t.env.devicePixelRatio : null;
|
|
2858
2909
|
return n && (e = parseInt(n, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
|
|
2859
2910
|
}
|
|
2860
|
-
var
|
|
2861
|
-
function
|
|
2862
|
-
(e.width >
|
|
2911
|
+
var J = 16384;
|
|
2912
|
+
function ki(e) {
|
|
2913
|
+
(e.width > J || e.height > J) && (e.width > J && e.height > J ? e.width > e.height ? (e.height *= J / e.width, e.width = J) : (e.width *= J / e.height, e.height = J) : e.width > J ? (e.height *= J / e.width, e.width = J) : (e.width *= J / e.height, e.height = J));
|
|
2863
2914
|
}
|
|
2864
|
-
function
|
|
2915
|
+
function Y(e) {
|
|
2865
2916
|
return new Promise((t, n) => {
|
|
2866
2917
|
let r = new Image();
|
|
2867
2918
|
r.onload = () => {
|
|
@@ -2871,80 +2922,80 @@ function X(e) {
|
|
|
2871
2922
|
}, r.onerror = n, r.crossOrigin = "anonymous", r.decoding = "async", r.src = e;
|
|
2872
2923
|
});
|
|
2873
2924
|
}
|
|
2874
|
-
async function
|
|
2925
|
+
async function Ai(e) {
|
|
2875
2926
|
return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((e) => `data:image/svg+xml;charset=utf-8,${e}`);
|
|
2876
2927
|
}
|
|
2877
|
-
async function
|
|
2928
|
+
async function ji(e, t, n) {
|
|
2878
2929
|
let r = "http://www.w3.org/2000/svg", i = document.createElementNS(r, "svg"), a = document.createElementNS(r, "foreignObject");
|
|
2879
|
-
return i.setAttribute("width", `${t}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${t} ${n}`), a.setAttribute("width", "100%"), a.setAttribute("height", "100%"), a.setAttribute("x", "0"), a.setAttribute("y", "0"), a.setAttribute("externalResourcesRequired", "true"), i.appendChild(a), a.appendChild(e),
|
|
2930
|
+
return i.setAttribute("width", `${t}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${t} ${n}`), a.setAttribute("width", "100%"), a.setAttribute("height", "100%"), a.setAttribute("x", "0"), a.setAttribute("y", "0"), a.setAttribute("externalResourcesRequired", "true"), i.appendChild(a), a.appendChild(e), Ai(i);
|
|
2880
2931
|
}
|
|
2881
|
-
var
|
|
2932
|
+
var X = (e, t) => {
|
|
2882
2933
|
if (e instanceof t) return !0;
|
|
2883
2934
|
let n = Object.getPrototypeOf(e);
|
|
2884
|
-
return n === null ? !1 : n.constructor.name === t.name ||
|
|
2935
|
+
return n === null ? !1 : n.constructor.name === t.name || X(n, t);
|
|
2885
2936
|
};
|
|
2886
2937
|
//#endregion
|
|
2887
2938
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/clone-pseudos.js
|
|
2888
|
-
function
|
|
2939
|
+
function Mi(e) {
|
|
2889
2940
|
let t = e.getPropertyValue("content");
|
|
2890
2941
|
return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
|
|
2891
2942
|
}
|
|
2892
|
-
function
|
|
2893
|
-
return
|
|
2943
|
+
function Ni(e, t) {
|
|
2944
|
+
return wi(t).map((t) => `${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t) ? " !important" : ""};`).join(" ");
|
|
2894
2945
|
}
|
|
2895
|
-
function
|
|
2896
|
-
let i = `.${e}:${t}`, a = n.cssText ?
|
|
2946
|
+
function Pi(e, t, n, r) {
|
|
2947
|
+
let i = `.${e}:${t}`, a = n.cssText ? Mi(n) : Ni(n, r);
|
|
2897
2948
|
return document.createTextNode(`${i}{${a}}`);
|
|
2898
2949
|
}
|
|
2899
|
-
function
|
|
2950
|
+
function Fi(e, t, n, r) {
|
|
2900
2951
|
let i = window.getComputedStyle(e, n), a = i.getPropertyValue("content");
|
|
2901
2952
|
if (a === "" || a === "none") return;
|
|
2902
|
-
let o =
|
|
2953
|
+
let o = Ci();
|
|
2903
2954
|
try {
|
|
2904
2955
|
t.className = `${t.className} ${o}`;
|
|
2905
2956
|
} catch {
|
|
2906
2957
|
return;
|
|
2907
2958
|
}
|
|
2908
2959
|
let s = document.createElement("style");
|
|
2909
|
-
s.appendChild(
|
|
2960
|
+
s.appendChild(Pi(o, n, i, r)), t.appendChild(s);
|
|
2910
2961
|
}
|
|
2911
|
-
function
|
|
2912
|
-
|
|
2962
|
+
function Ii(e, t, n) {
|
|
2963
|
+
Fi(e, t, ":before", n), Fi(e, t, ":after", n);
|
|
2913
2964
|
}
|
|
2914
2965
|
//#endregion
|
|
2915
2966
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/mimes.js
|
|
2916
|
-
var
|
|
2917
|
-
woff:
|
|
2918
|
-
woff2:
|
|
2967
|
+
var Li = "application/font-woff", Ri = "image/jpeg", zi = {
|
|
2968
|
+
woff: Li,
|
|
2969
|
+
woff2: Li,
|
|
2919
2970
|
ttf: "application/font-truetype",
|
|
2920
2971
|
eot: "application/vnd.ms-fontobject",
|
|
2921
2972
|
png: "image/png",
|
|
2922
|
-
jpg:
|
|
2923
|
-
jpeg:
|
|
2973
|
+
jpg: Ri,
|
|
2974
|
+
jpeg: Ri,
|
|
2924
2975
|
gif: "image/gif",
|
|
2925
2976
|
tiff: "image/tiff",
|
|
2926
2977
|
svg: "image/svg+xml",
|
|
2927
2978
|
webp: "image/webp"
|
|
2928
2979
|
};
|
|
2929
|
-
function
|
|
2980
|
+
function Bi(e) {
|
|
2930
2981
|
let t = /\.([^./]*?)$/g.exec(e);
|
|
2931
2982
|
return t ? t[1] : "";
|
|
2932
2983
|
}
|
|
2933
|
-
function
|
|
2934
|
-
return
|
|
2984
|
+
function Vi(e) {
|
|
2985
|
+
return zi[Bi(e).toLowerCase()] || "";
|
|
2935
2986
|
}
|
|
2936
2987
|
//#endregion
|
|
2937
2988
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/dataurl.js
|
|
2938
|
-
function
|
|
2989
|
+
function Hi(e) {
|
|
2939
2990
|
return e.split(/,/)[1];
|
|
2940
2991
|
}
|
|
2941
|
-
function
|
|
2992
|
+
function Ui(e) {
|
|
2942
2993
|
return e.search(/^(data:)/) !== -1;
|
|
2943
2994
|
}
|
|
2944
|
-
function
|
|
2995
|
+
function Wi(e, t) {
|
|
2945
2996
|
return `data:${t};base64,${e}`;
|
|
2946
2997
|
}
|
|
2947
|
-
async function
|
|
2998
|
+
async function Gi(e, t, n) {
|
|
2948
2999
|
let r = await fetch(e, t);
|
|
2949
3000
|
if (r.status === 404) throw Error(`Resource "${r.url}" not found`);
|
|
2950
3001
|
let i = await r.blob();
|
|
@@ -2962,83 +3013,83 @@ async function Hi(e, t, n) {
|
|
|
2962
3013
|
}, a.readAsDataURL(i);
|
|
2963
3014
|
});
|
|
2964
3015
|
}
|
|
2965
|
-
var
|
|
2966
|
-
function
|
|
3016
|
+
var Z = {};
|
|
3017
|
+
function Ki(e, t, n) {
|
|
2967
3018
|
let r = e.replace(/\?.*/, "");
|
|
2968
3019
|
return n && (r = e), /ttf|otf|eot|woff2?/i.test(r) && (r = r.replace(/.*\//, "")), t ? `[${t}]${r}` : r;
|
|
2969
3020
|
}
|
|
2970
|
-
async function
|
|
2971
|
-
let r =
|
|
2972
|
-
if (
|
|
3021
|
+
async function qi(e, t, n) {
|
|
3022
|
+
let r = Ki(e, t, n.includeQueryParams);
|
|
3023
|
+
if (Z[r] != null) return Z[r];
|
|
2973
3024
|
n.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
|
|
2974
3025
|
let i;
|
|
2975
3026
|
try {
|
|
2976
|
-
i =
|
|
3027
|
+
i = Wi(await Gi(e, n.fetchRequestInit, ({ res: e, result: n }) => (t ||= e.headers.get("Content-Type") || "", Hi(n))), t);
|
|
2977
3028
|
} catch (t) {
|
|
2978
3029
|
i = n.imagePlaceholder || "";
|
|
2979
3030
|
let r = `Failed to fetch resource: ${e}`;
|
|
2980
3031
|
t && (r = typeof t == "string" ? t : t.message), r && console.warn(r);
|
|
2981
3032
|
}
|
|
2982
|
-
return
|
|
3033
|
+
return Z[r] = i, i;
|
|
2983
3034
|
}
|
|
2984
3035
|
//#endregion
|
|
2985
3036
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/clone-node.js
|
|
2986
|
-
async function
|
|
3037
|
+
async function Ji(e) {
|
|
2987
3038
|
let t = e.toDataURL();
|
|
2988
|
-
return t === "data:," ? e.cloneNode(!1) :
|
|
3039
|
+
return t === "data:," ? e.cloneNode(!1) : Y(t);
|
|
2989
3040
|
}
|
|
2990
|
-
async function
|
|
3041
|
+
async function Yi(e, t) {
|
|
2991
3042
|
if (e.currentSrc) {
|
|
2992
3043
|
let t = document.createElement("canvas"), n = t.getContext("2d");
|
|
2993
|
-
return t.width = e.clientWidth, t.height = e.clientHeight, n?.drawImage(e, 0, 0, t.width, t.height),
|
|
3044
|
+
return t.width = e.clientWidth, t.height = e.clientHeight, n?.drawImage(e, 0, 0, t.width, t.height), Y(t.toDataURL());
|
|
2994
3045
|
}
|
|
2995
3046
|
let n = e.poster;
|
|
2996
|
-
return
|
|
3047
|
+
return Y(await qi(n, Vi(n), t));
|
|
2997
3048
|
}
|
|
2998
|
-
async function
|
|
3049
|
+
async function Xi(e, t) {
|
|
2999
3050
|
try {
|
|
3000
3051
|
if (e?.contentDocument?.body) return await Q(e.contentDocument.body, t, !0);
|
|
3001
3052
|
} catch {}
|
|
3002
3053
|
return e.cloneNode(!1);
|
|
3003
3054
|
}
|
|
3004
|
-
async function
|
|
3005
|
-
return
|
|
3055
|
+
async function Zi(e, t) {
|
|
3056
|
+
return X(e, HTMLCanvasElement) ? Ji(e) : X(e, HTMLVideoElement) ? Yi(e, t) : X(e, HTMLIFrameElement) ? Xi(e, t) : e.cloneNode($i(e));
|
|
3006
3057
|
}
|
|
3007
|
-
var
|
|
3008
|
-
async function
|
|
3009
|
-
if (
|
|
3058
|
+
var Qi = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", $i = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
|
|
3059
|
+
async function ea(e, t, n) {
|
|
3060
|
+
if ($i(t)) return t;
|
|
3010
3061
|
let r = [];
|
|
3011
|
-
if (
|
|
3012
|
-
else if (
|
|
3013
|
-
e.contentDocument?.body && (r =
|
|
3062
|
+
if (Qi(e) && e.assignedNodes) r = G(e.assignedNodes());
|
|
3063
|
+
else if (X(e, HTMLIFrameElement)) try {
|
|
3064
|
+
e.contentDocument?.body && (r = G(e.contentDocument.body.childNodes));
|
|
3014
3065
|
} catch {}
|
|
3015
|
-
else r =
|
|
3016
|
-
return r.length === 0 ||
|
|
3066
|
+
else r = G((e.shadowRoot ?? e).childNodes);
|
|
3067
|
+
return r.length === 0 || X(e, HTMLVideoElement) || await r.reduce((e, r) => e.then(() => Q(r, n)).then((e) => {
|
|
3017
3068
|
e && t.appendChild(e);
|
|
3018
3069
|
}), Promise.resolve()), t;
|
|
3019
3070
|
}
|
|
3020
|
-
function
|
|
3071
|
+
function ta(e, t, n) {
|
|
3021
3072
|
let r = t.style;
|
|
3022
3073
|
if (!r) return;
|
|
3023
3074
|
let i = window.getComputedStyle(e);
|
|
3024
|
-
i.cssText ? (r.cssText = i.cssText, r.transformOrigin = i.transformOrigin) :
|
|
3075
|
+
i.cssText ? (r.cssText = i.cssText, r.transformOrigin = i.transformOrigin) : wi(n).forEach((n) => {
|
|
3025
3076
|
let a = i.getPropertyValue(n);
|
|
3026
|
-
n === "font-size" && a.endsWith("px") && (a = `${Math.floor(parseFloat(a.substring(0, a.length - 2))) - .1}px`),
|
|
3077
|
+
n === "font-size" && a.endsWith("px") && (a = `${Math.floor(parseFloat(a.substring(0, a.length - 2))) - .1}px`), X(e, HTMLIFrameElement) && n === "display" && a === "inline" && (a = "block"), n === "d" && t.getAttribute("d") && (a = `path(${t.getAttribute("d")})`), r.setProperty(n, a, i.getPropertyPriority(n));
|
|
3027
3078
|
});
|
|
3028
3079
|
}
|
|
3029
|
-
function
|
|
3030
|
-
|
|
3080
|
+
function na(e, t) {
|
|
3081
|
+
X(e, HTMLTextAreaElement) && (t.innerHTML = e.value), X(e, HTMLInputElement) && t.setAttribute("value", e.value);
|
|
3031
3082
|
}
|
|
3032
|
-
function
|
|
3033
|
-
if (
|
|
3083
|
+
function ra(e, t) {
|
|
3084
|
+
if (X(e, HTMLSelectElement)) {
|
|
3034
3085
|
let n = t, r = Array.from(n.children).find((t) => e.value === t.getAttribute("value"));
|
|
3035
3086
|
r && r.setAttribute("selected", "");
|
|
3036
3087
|
}
|
|
3037
3088
|
}
|
|
3038
|
-
function
|
|
3039
|
-
return
|
|
3089
|
+
function ia(e, t, n) {
|
|
3090
|
+
return X(t, Element) && (ta(e, t, n), Ii(e, t, n), na(e, t), ra(e, t)), t;
|
|
3040
3091
|
}
|
|
3041
|
-
async function
|
|
3092
|
+
async function aa(e, t) {
|
|
3042
3093
|
let n = e.querySelectorAll ? e.querySelectorAll("use") : [];
|
|
3043
3094
|
if (n.length === 0) return e;
|
|
3044
3095
|
let r = {};
|
|
@@ -3061,60 +3112,60 @@ async function ra(e, t) {
|
|
|
3061
3112
|
return e;
|
|
3062
3113
|
}
|
|
3063
3114
|
async function Q(e, t, n) {
|
|
3064
|
-
return !n && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((e) =>
|
|
3115
|
+
return !n && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((e) => Zi(e, t)).then((n) => ea(e, n, t)).then((n) => ia(e, n, t)).then((e) => aa(e, t));
|
|
3065
3116
|
}
|
|
3066
3117
|
//#endregion
|
|
3067
3118
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/embed-resources.js
|
|
3068
|
-
var
|
|
3069
|
-
function
|
|
3119
|
+
var oa = /url\((['"]?)([^'"]+?)\1\)/g, sa = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, ca = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
|
|
3120
|
+
function la(e) {
|
|
3070
3121
|
let t = e.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1");
|
|
3071
3122
|
return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`, "g");
|
|
3072
3123
|
}
|
|
3073
|
-
function
|
|
3124
|
+
function ua(e) {
|
|
3074
3125
|
let t = [];
|
|
3075
|
-
return e.replace(
|
|
3126
|
+
return e.replace(oa, (e, n, r) => (t.push(r), e)), t.filter((e) => !Ui(e));
|
|
3076
3127
|
}
|
|
3077
|
-
async function
|
|
3128
|
+
async function da(e, t, n, r, i) {
|
|
3078
3129
|
try {
|
|
3079
|
-
let a = n ?
|
|
3080
|
-
return s = i ?
|
|
3130
|
+
let a = n ? Si(t, n) : t, o = Vi(t), s;
|
|
3131
|
+
return s = i ? Wi(await i(a), o) : await qi(a, o, r), e.replace(la(t), `$1${s}$3`);
|
|
3081
3132
|
} catch {}
|
|
3082
3133
|
return e;
|
|
3083
3134
|
}
|
|
3084
|
-
function
|
|
3085
|
-
return t ? e.replace(
|
|
3135
|
+
function fa(e, { preferredFontFormat: t }) {
|
|
3136
|
+
return t ? e.replace(ca, (e) => {
|
|
3086
3137
|
for (;;) {
|
|
3087
|
-
let [n, , r] =
|
|
3138
|
+
let [n, , r] = sa.exec(e) || [];
|
|
3088
3139
|
if (!r) return "";
|
|
3089
3140
|
if (r === t) return `src: ${n};`;
|
|
3090
3141
|
}
|
|
3091
3142
|
}) : e;
|
|
3092
3143
|
}
|
|
3093
|
-
function
|
|
3094
|
-
return e.search(
|
|
3144
|
+
function pa(e) {
|
|
3145
|
+
return e.search(oa) !== -1;
|
|
3095
3146
|
}
|
|
3096
|
-
async function
|
|
3097
|
-
if (!
|
|
3098
|
-
let r =
|
|
3099
|
-
return
|
|
3147
|
+
async function ma(e, t, n) {
|
|
3148
|
+
if (!pa(e)) return e;
|
|
3149
|
+
let r = fa(e, n);
|
|
3150
|
+
return ua(r).reduce((e, r) => e.then((e) => da(e, r, t, n)), Promise.resolve(r));
|
|
3100
3151
|
}
|
|
3101
3152
|
//#endregion
|
|
3102
3153
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/embed-images.js
|
|
3103
3154
|
async function $(e, t, n) {
|
|
3104
3155
|
let r = t.style?.getPropertyValue(e);
|
|
3105
3156
|
if (r) {
|
|
3106
|
-
let i = await
|
|
3157
|
+
let i = await ma(r, null, n);
|
|
3107
3158
|
return t.style.setProperty(e, i, t.style.getPropertyPriority(e)), !0;
|
|
3108
3159
|
}
|
|
3109
3160
|
return !1;
|
|
3110
3161
|
}
|
|
3111
|
-
async function
|
|
3162
|
+
async function ha(e, t) {
|
|
3112
3163
|
await $("background", e, t) || await $("background-image", e, t), await $("mask", e, t) || await $("-webkit-mask", e, t) || await $("mask-image", e, t) || await $("-webkit-mask-image", e, t);
|
|
3113
3164
|
}
|
|
3114
|
-
async function
|
|
3115
|
-
let n =
|
|
3116
|
-
if (!(n && !
|
|
3117
|
-
let r = n ? e.src : e.href.baseVal, i = await
|
|
3165
|
+
async function ga(e, t) {
|
|
3166
|
+
let n = X(e, HTMLImageElement);
|
|
3167
|
+
if (!(n && !Ui(e.src)) && !(X(e, SVGImageElement) && !Ui(e.href.baseVal))) return;
|
|
3168
|
+
let r = n ? e.src : e.href.baseVal, i = await qi(r, Vi(r), t);
|
|
3118
3169
|
await new Promise((r, a) => {
|
|
3119
3170
|
e.onload = r, e.onerror = t.onImageErrorHandler ? (...e) => {
|
|
3120
3171
|
try {
|
|
@@ -3127,16 +3178,16 @@ async function ma(e, t) {
|
|
|
3127
3178
|
o.decode &&= r, o.loading === "lazy" && (o.loading = "eager"), n ? (e.srcset = "", e.src = i) : e.href.baseVal = i;
|
|
3128
3179
|
});
|
|
3129
3180
|
}
|
|
3130
|
-
async function
|
|
3131
|
-
let n =
|
|
3181
|
+
async function _a(e, t) {
|
|
3182
|
+
let n = G(e.childNodes).map((e) => va(e, t));
|
|
3132
3183
|
await Promise.all(n).then(() => e);
|
|
3133
3184
|
}
|
|
3134
|
-
async function
|
|
3135
|
-
|
|
3185
|
+
async function va(e, t) {
|
|
3186
|
+
X(e, Element) && (await ha(e, t), await ga(e, t), await _a(e, t));
|
|
3136
3187
|
}
|
|
3137
3188
|
//#endregion
|
|
3138
3189
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/apply-style.js
|
|
3139
|
-
function
|
|
3190
|
+
function ya(e, t) {
|
|
3140
3191
|
let { style: n } = e;
|
|
3141
3192
|
t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.width && (n.width = `${t.width}px`), t.height && (n.height = `${t.height}px`);
|
|
3142
3193
|
let r = t.style;
|
|
@@ -3146,22 +3197,22 @@ function _a(e, t) {
|
|
|
3146
3197
|
}
|
|
3147
3198
|
//#endregion
|
|
3148
3199
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/embed-webfonts.js
|
|
3149
|
-
var
|
|
3150
|
-
async function
|
|
3151
|
-
let t =
|
|
3200
|
+
var ba = {};
|
|
3201
|
+
async function xa(e) {
|
|
3202
|
+
let t = ba[e];
|
|
3152
3203
|
return t ?? (t = {
|
|
3153
3204
|
url: e,
|
|
3154
3205
|
cssText: await (await fetch(e)).text()
|
|
3155
|
-
},
|
|
3206
|
+
}, ba[e] = t, t);
|
|
3156
3207
|
}
|
|
3157
|
-
async function
|
|
3208
|
+
async function Sa(e, t) {
|
|
3158
3209
|
let n = e.cssText, r = /url\(["']?([^"')]+)["']?\)/g, i = (n.match(/url\([^)]+\)/g) || []).map(async (i) => {
|
|
3159
3210
|
let a = i.replace(r, "$1");
|
|
3160
|
-
return a.startsWith("https://") || (a = new URL(a, e.url).href),
|
|
3211
|
+
return a.startsWith("https://") || (a = new URL(a, e.url).href), Gi(a, t.fetchRequestInit, ({ result: e }) => (n = n.replace(i, `url(${e})`), [i, e]));
|
|
3161
3212
|
});
|
|
3162
3213
|
return Promise.all(i).then(() => n);
|
|
3163
3214
|
}
|
|
3164
|
-
function
|
|
3215
|
+
function Ca(e) {
|
|
3165
3216
|
if (e == null) return [];
|
|
3166
3217
|
let t = [], n = e.replace(/(\/\*[\s\S]*?\*\/)/gi, ""), r = /* @__PURE__ */ RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})", "gi");
|
|
3167
3218
|
for (;;) {
|
|
@@ -3181,13 +3232,13 @@ function xa(e) {
|
|
|
3181
3232
|
}
|
|
3182
3233
|
return t;
|
|
3183
3234
|
}
|
|
3184
|
-
async function
|
|
3235
|
+
async function wa(e, t) {
|
|
3185
3236
|
let n = [], r = [];
|
|
3186
3237
|
return e.forEach((n) => {
|
|
3187
3238
|
if ("cssRules" in n) try {
|
|
3188
|
-
|
|
3239
|
+
G(n.cssRules || []).forEach((e, i) => {
|
|
3189
3240
|
if (e.type === CSSRule.IMPORT_RULE) {
|
|
3190
|
-
let a = i + 1, o = e.href, s =
|
|
3241
|
+
let a = i + 1, o = e.href, s = xa(o).then((e) => Sa(e, t)).then((e) => Ca(e).forEach((e) => {
|
|
3191
3242
|
try {
|
|
3192
3243
|
n.insertRule(e, e.startsWith("@import") ? a += 1 : n.cssRules.length);
|
|
3193
3244
|
} catch (t) {
|
|
@@ -3204,7 +3255,7 @@ async function Sa(e, t) {
|
|
|
3204
3255
|
});
|
|
3205
3256
|
} catch (i) {
|
|
3206
3257
|
let a = e.find((e) => e.href == null) || document.styleSheets[0];
|
|
3207
|
-
n.href != null && r.push(
|
|
3258
|
+
n.href != null && r.push(xa(n.href).then((e) => Sa(e, t)).then((e) => Ca(e).forEach((e) => {
|
|
3208
3259
|
a.insertRule(e, a.cssRules.length);
|
|
3209
3260
|
})).catch((e) => {
|
|
3210
3261
|
console.error("Error loading remote stylesheet", e);
|
|
@@ -3212,7 +3263,7 @@ async function Sa(e, t) {
|
|
|
3212
3263
|
}
|
|
3213
3264
|
}), Promise.all(r).then(() => (e.forEach((e) => {
|
|
3214
3265
|
if ("cssRules" in e) try {
|
|
3215
|
-
|
|
3266
|
+
G(e.cssRules || []).forEach((e) => {
|
|
3216
3267
|
n.push(e);
|
|
3217
3268
|
});
|
|
3218
3269
|
} catch (t) {
|
|
@@ -3220,37 +3271,37 @@ async function Sa(e, t) {
|
|
|
3220
3271
|
}
|
|
3221
3272
|
}), n));
|
|
3222
3273
|
}
|
|
3223
|
-
function
|
|
3224
|
-
return e.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) =>
|
|
3274
|
+
function Ta(e) {
|
|
3275
|
+
return e.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) => pa(e.style.getPropertyValue("src")));
|
|
3225
3276
|
}
|
|
3226
|
-
async function
|
|
3277
|
+
async function Ea(e, t) {
|
|
3227
3278
|
if (e.ownerDocument == null) throw Error("Provided element is not within a Document");
|
|
3228
|
-
return
|
|
3279
|
+
return Ta(await wa(G(e.ownerDocument.styleSheets), t));
|
|
3229
3280
|
}
|
|
3230
|
-
function
|
|
3281
|
+
function Da(e) {
|
|
3231
3282
|
return (e || "").trim().replace(/["']/g, "");
|
|
3232
3283
|
}
|
|
3233
|
-
function
|
|
3284
|
+
function Oa(e) {
|
|
3234
3285
|
let t = /* @__PURE__ */ new Set();
|
|
3235
3286
|
function n(e) {
|
|
3236
3287
|
let r = e.style.fontFamily || getComputedStyle(e).fontFamily;
|
|
3237
3288
|
r && r.split(",").forEach((e) => {
|
|
3238
|
-
t.add(
|
|
3289
|
+
t.add(Da(e));
|
|
3239
3290
|
}), Array.from(e.children).forEach((e) => {
|
|
3240
3291
|
e instanceof HTMLElement && n(e);
|
|
3241
3292
|
});
|
|
3242
3293
|
}
|
|
3243
3294
|
return n(e), t;
|
|
3244
3295
|
}
|
|
3245
|
-
async function
|
|
3246
|
-
let n = await
|
|
3247
|
-
return (await Promise.all(n.filter((e) => r.has(
|
|
3296
|
+
async function ka(e, t) {
|
|
3297
|
+
let n = await Ea(e, t), r = Oa(e);
|
|
3298
|
+
return (await Promise.all(n.filter((e) => r.has(Da(e.style.fontFamily))).map((e) => {
|
|
3248
3299
|
let n = e.parentStyleSheet ? e.parentStyleSheet.href : null;
|
|
3249
|
-
return
|
|
3300
|
+
return ma(e.cssText, n, t);
|
|
3250
3301
|
}))).join("\n");
|
|
3251
3302
|
}
|
|
3252
|
-
async function
|
|
3253
|
-
let n = t.fontEmbedCSS == null ? t.skipFonts ? null : await
|
|
3303
|
+
async function Aa(e, t) {
|
|
3304
|
+
let n = t.fontEmbedCSS == null ? t.skipFonts ? null : await ka(e, t) : t.fontEmbedCSS, r = t.extraStyleContent == null ? n : (n || "").concat(t.extraStyleContent);
|
|
3254
3305
|
if (r) {
|
|
3255
3306
|
let t = document.createElement("style"), n = document.createTextNode(r);
|
|
3256
3307
|
t.appendChild(n), e.firstChild ? e.insertBefore(t, e.firstChild) : e.appendChild(t);
|
|
@@ -3258,18 +3309,18 @@ async function Oa(e, t) {
|
|
|
3258
3309
|
}
|
|
3259
3310
|
//#endregion
|
|
3260
3311
|
//#region ../node_modules/.pnpm/html-to-image@1.11.13_patch_hash=405d43fd603ed64fdfdd4e3572f22a2b0eab5c8bd36a0dbd88f28ab1f311893f/node_modules/html-to-image/es/index.js
|
|
3261
|
-
async function
|
|
3262
|
-
let { width: n, height: r } =
|
|
3263
|
-
return await
|
|
3312
|
+
async function ja(e, t = {}) {
|
|
3313
|
+
let { width: n, height: r } = Di(e, t), i = await Q(e, t, !0);
|
|
3314
|
+
return await Aa(i, t), await va(i, t), ya(i, t), await ji(i, n, r);
|
|
3264
3315
|
}
|
|
3265
|
-
async function
|
|
3266
|
-
let { width: n, height: r } =
|
|
3267
|
-
return a.width = c * s, a.height = l * s, t.skipAutoScale ||
|
|
3316
|
+
async function Ma(e, t = {}) {
|
|
3317
|
+
let { width: n, height: r } = Di(e, t), i = await Y(await ja(e, t)), a = document.createElement("canvas"), o = a.getContext("2d"), s = t.pixelRatio || Oi(), c = t.canvasWidth || n, l = t.canvasHeight || r;
|
|
3318
|
+
return a.width = c * s, a.height = l * s, t.skipAutoScale || ki(a), a.style.width = `${c}`, a.style.height = `${l}`, t.backgroundColor && (o.fillStyle = t.backgroundColor, o.fillRect(0, 0, a.width, a.height)), o.drawImage(i, 0, 0, a.width, a.height), a;
|
|
3268
3319
|
}
|
|
3269
|
-
async function
|
|
3270
|
-
return (await
|
|
3320
|
+
async function Na(e, t = {}) {
|
|
3321
|
+
return (await Ma(e, t)).toDataURL();
|
|
3271
3322
|
}
|
|
3272
|
-
var
|
|
3323
|
+
var Pa = {
|
|
3273
3324
|
filter: (e) => {
|
|
3274
3325
|
try {
|
|
3275
3326
|
if ("classList" in e) {
|
|
@@ -3287,11 +3338,11 @@ var Ma = {
|
|
|
3287
3338
|
},
|
|
3288
3339
|
includeStyleProperties: /* @__PURE__ */ "width.height.min-width.min-height.max-width.max-height.box-sizing.aspect-ratio.display.position.top.left.bottom.right.z-index.float.clear.flex.flex-direction.flex-wrap.flex-grow.flex-shrink.flex-basis.align-items.align-self.justify-content.gap.order.grid-template-columns.grid-template-rows.grid-column.grid-row.row-gap.column-gap.margin.margin-top.margin-right.margin-bottom.margin-left.padding.padding-top.padding-right.padding-bottom.padding-left.font.font-family.font-size.font-weight.font-style.line-height.letter-spacing.word-spacing.text-align.text-decoration.text-transform.text-indent.text-shadow.white-space.text-wrap.word-break.text-overflow.vertical-align.color.background.background-color.background-image.background-size.background-position.background-repeat.background-clip.border.border-width.border-style.border-color.border-top.border-right.border-bottom.border-left.border-radius.outline.box-shadow.text-shadow.opacity.filter.backdrop-filter.mix-blend-mode.transform.clip-path.overflow.overflow-x.overflow-y.visibility.fill.stroke.stroke-width.object-fit.object-position.list-style.list-style-type.border-collapse.border-spacing.content.cursor".split(".")
|
|
3289
3340
|
};
|
|
3290
|
-
async function
|
|
3291
|
-
return
|
|
3292
|
-
...
|
|
3341
|
+
async function Fa(e, t) {
|
|
3342
|
+
return Na(e, {
|
|
3343
|
+
...Pa,
|
|
3293
3344
|
...t
|
|
3294
3345
|
});
|
|
3295
3346
|
}
|
|
3296
3347
|
//#endregion
|
|
3297
|
-
export {
|
|
3348
|
+
export { ft as $, lr as A, Dn as B, yr as C, Dr as D, Tr as E, pr as F, Cn as G, Mn as H, tr as I, Jt as J, Lt as K, Ln as L, fr as M, or as N, kr as O, ar as P, mt as Q, Rn as R, _r as S, Cr as T, On as U, An as V, un as W, gt as X, Qt as Y, ht as Z, Ar as _, si as a, Mr as b, ni as c, Yr as d, k as et, Gr as f, Hr as g, Vr as h, ci as i, cr as j, ir as k, Jr as l, Wr as m, xi as n, oi as o, Kr as p, en as q, yi as r, ai as s, Fa as t, Xr as u, Nr as v, xr as w, hr as x, jr as y, Fn as z };
|