@marimo-team/islands 0.25.3-dev437 → 0.25.3-dev438
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-CoEU9snz.js → ConnectedDataExplorerComponent-LA5OtjAG.js} +11 -11
- package/dist/{ErrorBoundary-LQpWaaaj.js → ErrorBoundary-Bvtsf3zB.js} +18 -18
- package/dist/{abnfDiagram-VCTEODGH-RbfxpmIE.js → abnfDiagram-VCTEODGH-CBntFgCZ.js} +2 -2
- package/dist/{any-language-editor-Cw4VtZvb.js → any-language-editor-gzDRWdCH.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-DzzNVRo4.js → architectureDiagram-5GKGNRK7-Bz6ouXl-.js} +1 -1
- package/dist/{assertNever-ChGm2jYv.js → assertNever-DOTNJ2Y4.js} +2 -2
- package/dist/{chat-ui-BEMyRpmS.js → chat-ui-ZGXdN6Vr.js} +45 -45
- package/dist/{check-BHRB6N0I.js → check-CApwK1fD.js} +1 -1
- package/dist/{chunk-IMKFNOWR-1Zy6M_oP.js → chunk-IMKFNOWR-DK_M66Dt.js} +1 -1
- package/dist/{chunk-SHT3W25Y-yAttqZEk.js → chunk-SHT3W25Y-C7Cg6zGL.js} +1 -1
- package/dist/{chunk-SVP7TREG-MKJpuJHR.js → chunk-SVP7TREG-K0lWia53.js} +1 -1
- package/dist/{chunk-TICWLB2K-BOC0OebH.js → chunk-TICWLB2K-DiKpryGp.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-BOlD7kH9.js → classDiagram-ZZMXUADV-CXX5eaxi.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-C3p3seuT.js → classDiagram-v2-VYDZK3BY-Bjyy4iKL.js} +2 -2
- package/dist/{code-visibility-Cl2Z5Y2R.js → code-visibility-CmfNaZAX.js} +17 -17
- package/dist/{common-DVxtA3e0.js → common-i_ykKLxU.js} +4881 -4842
- package/dist/{config-EJnOxh0i.js → config-C8TXSDmC.js} +18 -18
- package/dist/{copy-icon-Bv5SAA0w.js → copy-icon-CDvvlY90.js} +2 -2
- package/dist/{createReducer-BJJ0K5Tu.js → createReducer-CXqSak4H.js} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-BKnxm64C.js → cynefinDiagram-5FMLGOSQ-C-MlCYj4.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-COBTexAI.js → dagre-GXQ25YYZ-C6e9vEKZ.js} +1 -1
- package/dist/{data-grid-overlay-editor-FI3lYcm3.js → data-grid-overlay-editor-kj617zpx.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-Dyt3J6ek.js → diagram-S7CK7UJ4-DgXNq_At.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CJCsT4fA.js → diagram-UQ7AKVKN-BG5NExCt.js} +1 -1
- package/dist/{diagram-VX7I27RA-BboxCtbh.js → diagram-VX7I27RA-Da7VYCfC.js} +1 -1
- package/dist/{diagram-Z3DM3KII-DfRWWQ5t.js → diagram-Z3DM3KII-DHk6GaR5.js} +1 -1
- package/dist/{dialog-B8vU2hHC.js → dialog-rgayPemF.js} +20 -20
- package/dist/{dropdown-menu-DzhAnAhr.js → dropdown-menu-B12Nf3Zf.js} +703 -703
- package/dist/{ebnfDiagram-PWID7BFC-DYxwv-nl.js → ebnfDiagram-PWID7BFC-DdSjinXr.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-D9e5WUw7.js → erDiagram-RLTQ6QDP-BgcwfZct.js} +1 -1
- package/dist/{error-banner-BRkKwvku.js → error-banner-DXHIN-63.js} +58 -58
- package/dist/{error-entries-BbxtqUQ4.js → error-entries-DMgIKuK1.js} +380 -380
- package/dist/{feedback-button-1MiN6gfS.js → feedback-button-CGAe5hFZ.js} +7 -7
- package/dist/{flowDiagram-HODETNUW-tt7EepxX.js → flowDiagram-HODETNUW-CVwzkmUF.js} +2 -2
- package/dist/{formats-HRSqKdFt.js → formats-BWuAsLfw.js} +1 -1
- package/dist/{glide-data-editor-Kt7kYQLq.js → glide-data-editor-BiU_hF9A.js} +11 -11
- package/dist/{glide-utils-BzjESEmr.js → glide-utils-D1McS0Pn.js} +2 -2
- package/dist/{globals-BjpSYd8i.js → globals-jz3DTWzC.js} +3 -3
- package/dist/{html-to-image-DuNAF8H5.js → html-to-image-Dopvv40j.js} +774 -774
- package/dist/{infoDiagram-27XIBGKW-CpQH_joy.js → infoDiagram-27XIBGKW-CHkU2P-8.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-d-it4xqm.js → ishikawaDiagram-5VMMS53U-B0k5UyY5.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-DItpqTFY.js → kanban-definition-UXKFOSKX-DwQvOV0x.js} +1 -1
- package/dist/main.js +4913 -4936
- package/dist/{mermaid-BugOVfeH.js → mermaid-Bqy6f_NU.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-D6IpF-_J.js → mindmap-definition-YA3MSWOX-CqvvAm8I.js} +1 -1
- package/dist/{number-overlay-editor-BG707U9t.js → number-overlay-editor-D3OSLsDB.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CXUu3QwE.js → pegDiagram-XKGWAZYB-Befnx4Ry.js} +2 -2
- package/dist/{pencil-DWRFEz2B.js → pencil-BC7pOv9g.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-DoUJF0yj.js → pieDiagram-E7YTZNPT-6rYFbF7p.js} +1 -1
- package/dist/{process-output-Cl97_Reh.js → process-output-BidrKebE.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-BsGDhtLL.js → railroadDiagram-O6MQD6OU-SSniwYC8.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-BHW0qW2Z.js → requirementDiagram-BXWQKSXE-3L_xNfQr.js} +1 -1
- package/dist/{reveal-component-C8L9okWw.js → reveal-component-CnyvRvqy.js} +900 -900
- package/dist/{select-Brvb-RwP.js → select-PQHWLm64.js} +99 -99
- package/dist/{sequenceDiagram-WJ2MYXX4-DpgYJzLl.js → sequenceDiagram-WJ2MYXX4-DvzIRlWu.js} +1 -1
- package/dist/{spec-BWpscSQi.js → spec-6shN7lEe.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-Btf1jiYb.js → stateDiagram-D77RDMKH-VsHup-Ig.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-DN9FyEf3.js → stateDiagram-v2-MP3YSRHH-BwIIR8nk.js} +2 -2
- package/dist/{static-state-BhCfPRoz.js → static-state-CWXd6dYX.js} +9 -9
- package/dist/{swimlanes-42K2YHIH-2l_tR9qL.js → swimlanes-42K2YHIH-DhSDCIWI.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BAkmv8kE.js → swimlanesDiagram-VR7AAH4N-C2WGVm-W.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-AxSxEOhx.js → timeline-definition-24CTP7MA-DhUhNinO.js} +1 -1
- package/dist/{toast-DOWc3HtU.js → toast-BGvv7tKS.js} +153 -153
- package/dist/{tooltip-DsQZP310.js → tooltip-CiJ919pg.js} +62 -62
- package/dist/{use-restore-focus-CTa7IRP6.js → use-restore-focus-BLj45Ibw.js} +75 -75
- package/dist/{useDateFormatter-CRuBYwR6.js → useDateFormatter-C659lkax.js} +2 -2
- package/dist/{useDeepCompareMemoize-B2RNcTmn.js → useDeepCompareMemoize-CDhinwm7.js} +1 -1
- package/dist/{useLifecycle-Bw0JtmoB.js → useLifecycle-mKiMNa4V.js} +1 -1
- package/dist/{vega-component-BV9sYHhU.js → vega-component-CWvQ7wBJ.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-oHztO7MH.js → vennDiagram-4TSXK5OY-exvBF8P5.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-DWeEjZSc.js → wardleyDiagram-VM6X3IG4-BFhJmnXo.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-ESBlsY9i.js → xychartDiagram-S5SC5T6Z-D_xAdG6u.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/controls/Controls.tsx +5 -2
- package/src/components/editor/notebook-cell.tsx +7 -21
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +2 -7
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -4
- package/src/components/slides/minimap.tsx +2 -3
- package/src/components/slides/reveal-component.tsx +2 -3
- package/src/components/slides/slide-cell-view.tsx +5 -12
- package/src/core/cells/__tests__/cell.test.ts +8 -51
- package/src/core/cells/__tests__/utils.test.ts +27 -18
- package/src/core/cells/cell.ts +6 -12
- package/src/core/cells/cells.ts +5 -3
- package/src/core/cells/utils.ts +61 -55
- package/src/core/config/config.ts +4 -0
- package/src/core/executions/__tests__/hooks.test.tsx +48 -2
- package/src/core/executions/__tests__/select.test.ts +0 -17
- package/src/core/executions/hooks.ts +24 -0
- package/src/core/executions/index.ts +2 -0
- package/src/core/executions/select.ts +0 -5
|
@@ -2,26 +2,26 @@ import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
import { g as a, h as o, p as s, r as c, s as l, t as u, u as d } from "./button-qQhINE7z.js";
|
|
3
3
|
import { t as f } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as p } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
-
import { i as m, n as h, t as g } from "./copy-icon-
|
|
5
|
+
import { i as m, n as h, t as g } from "./copy-icon-CDvvlY90.js";
|
|
6
6
|
import { c as _, l as v, o as y, r as b, s as x } from "./chunk-7TTQLYRW-DBSfUUe5.js";
|
|
7
|
-
import { c as S, h as C, i as w, l as T, s as ee, t as te, u as E } from "./tooltip-
|
|
8
|
-
import { a as D, i as ne, o as re, r as O, s as k, t as ie } from "./useLifecycle-
|
|
9
|
-
import { a as ae, c as oe, i as se, n as ce, o as le, r as ue, s as de, t as fe } from "./select-
|
|
10
|
-
import { J as pe, X as me, ht as he } from "./dropdown-menu-
|
|
11
|
-
import { c as ge, l as _e, n as ve } from "./config-
|
|
12
|
-
import { Bt as A, C as j, E as ye, Et as be, F as xe, Ft as Se, Gt as Ce, I as M, Kt as we, Lt as Te, M as Ee, O as De, P as Oe, Pt as ke, Qt as Ae, Rt as je, S as Me, St as Ne, T as Pe, U as Fe, Ut as Ie, Vt as Le, W as Re, Xt as ze, _ as Be, _t as Ve, a as He, dt as Ue, f as We, ft as Ge, gt as Ke, h as qe, ht as Je, jt as Ye, k as Xe, lt as Ze, mt as Qe, nt as $e, o as et, p as tt, pt as nt, qt as rt, rt as it, s as at, tt as ot, ut as st, v as ct, vt as lt, wt as ut, x as dt, yt as ft } from "./error-entries-
|
|
13
|
-
import { n as pt } from "./assertNever-
|
|
7
|
+
import { c as S, h as C, i as w, l as T, s as ee, t as te, u as E } from "./tooltip-CiJ919pg.js";
|
|
8
|
+
import { a as D, i as ne, o as re, r as O, s as k, t as ie } from "./useLifecycle-mKiMNa4V.js";
|
|
9
|
+
import { a as ae, c as oe, i as se, n as ce, o as le, r as ue, s as de, t as fe } from "./select-PQHWLm64.js";
|
|
10
|
+
import { J as pe, X as me, ht as he } from "./dropdown-menu-B12Nf3Zf.js";
|
|
11
|
+
import { c as ge, l as _e, n as ve } from "./config-C8TXSDmC.js";
|
|
12
|
+
import { Bt as A, C as j, E as ye, Et as be, F as xe, Ft as Se, Gt as Ce, I as M, Kt as we, Lt as Te, M as Ee, O as De, P as Oe, Pt as ke, Qt as Ae, Rt as je, S as Me, St as Ne, T as Pe, U as Fe, Ut as Ie, Vt as Le, W as Re, Xt as ze, _ as Be, _t as Ve, a as He, dt as Ue, f as We, ft as Ge, gt as Ke, h as qe, ht as Je, jt as Ye, k as Xe, lt as Ze, mt as Qe, nt as $e, o as et, p as tt, pt as nt, qt as rt, rt as it, s as at, tt as ot, ut as st, v as ct, vt as lt, wt as ut, x as dt, yt as ft } from "./error-entries-DMgIKuK1.js";
|
|
13
|
+
import { n as pt } from "./assertNever-DOTNJ2Y4.js";
|
|
14
14
|
import { t as mt } from "./react-dom-DdqGVp5N.js";
|
|
15
15
|
import { t as ht } from "./jsx-runtime-D8btoEHk.js";
|
|
16
|
-
import { $ as gt,
|
|
17
|
-
import { h as $t } from "./error-banner-
|
|
16
|
+
import { $t as gt, Ft as _t, It as vt, J as yt, Lt as bt, Mt as xt, Nt as St, Rt as Ct, St as N, Tt as wt, Vt as P, Y as Tt, _n as Et, an as Dt, at as Ot, cn as kt, d as At, dn as jt, dt as Mt, en as Nt, et as Pt, fn as Ft, gn as It, in as Lt, it as Rt, jt as zt, l as Bt, lt as Vt, mn as Ht, n as Ut, nn as Wt, o as Gt, on as Kt, pn as qt, rn as Jt, s as F, sn as Yt, u as Xt, x as Zt, y as Qt, zt as I } from "./use-restore-focus-BLj45Ibw.js";
|
|
17
|
+
import { h as $t } from "./error-banner-DXHIN-63.js";
|
|
18
18
|
import { t as en } from "./debounce-DrhhziJv.js";
|
|
19
19
|
import { t as tn } from "./objects-DCmMvZtn.js";
|
|
20
20
|
import { t as nn } from "./invariant-DLmrl-hA.js";
|
|
21
21
|
import { t as rn } from "./useEvent-BoN7U38T.js";
|
|
22
|
-
import { t as an } from "./createReducer-
|
|
22
|
+
import { t as an } from "./createReducer-CXqSak4H.js";
|
|
23
23
|
import { $ as on, At as sn, B as cn, C as ln, Ct as un, Dt as dn, G as fn, Gt as pn, H as mn, I as hn, L as gn, N as _n, Ot as vn, Rt as yn, U as bn, W as xn, a as L, bt as Sn, c as Cn, dt as wn, ft as Tn, h as En, it as Dn, kt as On, mt as kn, o as An, rt as jn, st as Mn, vt as Nn, wt as Pn, x as Fn, xt as In, y as Ln, yt as Rn, z as zn } from "./dist-D92tYjLc.js";
|
|
24
|
-
import { c as Bn, m as Vn, r as Hn } from "./static-state-
|
|
24
|
+
import { c as Bn, m as Vn, r as Hn } from "./static-state-CWXd6dYX.js";
|
|
25
25
|
import { i as Un, o as Wn, r as Gn, s as Kn, t as qn, u as Jn } from "./dist-BsE4gQHj.js";
|
|
26
26
|
import { i as Yn, n as Xn } from "./arrays-DoQ-AILx.js";
|
|
27
27
|
import { n as Zn } from "./once-NnpX_HnX.js";
|
|
@@ -1890,8 +1890,8 @@ var Tr = /* @__PURE__ */ i(((e) => {
|
|
|
1890
1890
|
}]]), B = ht(), xi = Object.defineProperty, Si = (e, t) => xi(e, "name", {
|
|
1891
1891
|
value: t,
|
|
1892
1892
|
configurable: !0
|
|
1893
|
-
}), Ci = "Popover", [wi, Ti] =
|
|
1894
|
-
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = Ei(t), c = R.useRef(null), [l, u] = R.useState(!1), [d, f] = R.useState(0), [p, m] = R.useState(0), [h, g] =
|
|
1893
|
+
}), Ci = "Popover", [wi, Ti] = It(Ci, [E]), Ei = E(), [Di, Oi] = wi(Ci), ki = /* @__PURE__ */ Si((e) => {
|
|
1894
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !1 } = e, s = Ei(t), c = R.useRef(null), [l, u] = R.useState(!1), [d, f] = R.useState(0), [p, m] = R.useState(0), [h, g] = qt({
|
|
1895
1895
|
prop: r,
|
|
1896
1896
|
defaultProp: i ?? !1,
|
|
1897
1897
|
onChange: a,
|
|
@@ -1901,9 +1901,9 @@ var Tr = /* @__PURE__ */ i(((e) => {
|
|
|
1901
1901
|
...s,
|
|
1902
1902
|
children: /* @__PURE__ */ (0, B.jsx)(Di, {
|
|
1903
1903
|
scope: t,
|
|
1904
|
-
contentId:
|
|
1905
|
-
titleId:
|
|
1906
|
-
descriptionId:
|
|
1904
|
+
contentId: jt(),
|
|
1905
|
+
titleId: jt(),
|
|
1906
|
+
descriptionId: jt(),
|
|
1907
1907
|
titlePresent: d > 0,
|
|
1908
1908
|
descriptionPresent: p > 0,
|
|
1909
1909
|
setTitleCount: f,
|
|
@@ -1927,7 +1927,7 @@ var Tr = /* @__PURE__ */ i(((e) => {
|
|
|
1927
1927
|
ref: t
|
|
1928
1928
|
});
|
|
1929
1929
|
}, "PopoverAnchor")), Mi = "PopoverTrigger", Ni = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ Si(function(e, t) {
|
|
1930
|
-
let { __scopePopover: n, ...r } = e, i = Oi(Mi, n), a = Ei(n), o = s(t, i.triggerRef), c = /* @__PURE__ */ (0, B.jsx)(
|
|
1930
|
+
let { __scopePopover: n, ...r } = e, i = Oi(Mi, n), a = Ei(n), o = s(t, i.triggerRef), c = /* @__PURE__ */ (0, B.jsx)(Et.button, {
|
|
1931
1931
|
type: "button",
|
|
1932
1932
|
"aria-haspopup": "dialog",
|
|
1933
1933
|
"aria-expanded": i.open,
|
|
@@ -1947,9 +1947,9 @@ var Tr = /* @__PURE__ */ i(((e) => {
|
|
|
1947
1947
|
return /* @__PURE__ */ (0, B.jsx)(Fi, {
|
|
1948
1948
|
scope: t,
|
|
1949
1949
|
forceMount: n,
|
|
1950
|
-
children: /* @__PURE__ */ (0, B.jsx)(
|
|
1950
|
+
children: /* @__PURE__ */ (0, B.jsx)(Ft, {
|
|
1951
1951
|
present: n || a.open,
|
|
1952
|
-
children: /* @__PURE__ */ (0, B.jsx)(
|
|
1952
|
+
children: /* @__PURE__ */ (0, B.jsx)(Jt, {
|
|
1953
1953
|
asChild: !0,
|
|
1954
1954
|
container: i,
|
|
1955
1955
|
children: r
|
|
@@ -1958,7 +1958,7 @@ var Tr = /* @__PURE__ */ i(((e) => {
|
|
|
1958
1958
|
});
|
|
1959
1959
|
}, "PopoverPortal"), Ri = "PopoverContent", zi = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ Si(function(e, t) {
|
|
1960
1960
|
let n = Ii(Ri, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = Oi(Ri, e.__scopePopover);
|
|
1961
|
-
return /* @__PURE__ */ (0, B.jsx)(
|
|
1961
|
+
return /* @__PURE__ */ (0, B.jsx)(Ft, {
|
|
1962
1962
|
present: r || a.open,
|
|
1963
1963
|
children: a.modal ? /* @__PURE__ */ (0, B.jsx)(Vi, {
|
|
1964
1964
|
...i,
|
|
@@ -1969,11 +1969,11 @@ var Tr = /* @__PURE__ */ i(((e) => {
|
|
|
1969
1969
|
})
|
|
1970
1970
|
});
|
|
1971
1971
|
}, "PopoverContent")), Bi = d("PopoverContent.RemoveScroll"), Vi = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ Si(function(e, t) {
|
|
1972
|
-
let n = Oi(Ri, e.__scopePopover), r = R.useRef(null), i = s(t, r), a = R.useRef(!1), { nodes: o, registry: c } =
|
|
1972
|
+
let n = Oi(Ri, e.__scopePopover), r = R.useRef(null), i = s(t, r), a = R.useRef(!1), { nodes: o, registry: c } = Yt();
|
|
1973
1973
|
return R.useEffect(() => {
|
|
1974
1974
|
let e = r.current;
|
|
1975
|
-
if (e) return
|
|
1976
|
-
}, []), /* @__PURE__ */ (0, B.jsx)(
|
|
1975
|
+
if (e) return gt(e);
|
|
1976
|
+
}, []), /* @__PURE__ */ (0, B.jsx)(Nt, {
|
|
1977
1977
|
as: Bi,
|
|
1978
1978
|
allowPinchZoom: !0,
|
|
1979
1979
|
shards: R.useMemo(() => [r, ...o.map((e) => ({ current: e }))], [r, o]),
|
|
@@ -2012,16 +2012,16 @@ var Tr = /* @__PURE__ */ i(((e) => {
|
|
|
2012
2012
|
});
|
|
2013
2013
|
}, "PopoverContentNonModal")), Ui = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ Si(function(e, t) {
|
|
2014
2014
|
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: c, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, "aria-describedby": f, branchNodes: p, branchRegistry: m, ...h } = e, g = Oi(Ri, n), _ = Ei(n), [v, y] = R.useState(null), b = s(t, y);
|
|
2015
|
-
return
|
|
2015
|
+
return Kt(v), Wt(), /* @__PURE__ */ (0, B.jsx)(Dt, {
|
|
2016
2016
|
registry: m,
|
|
2017
|
-
children: /* @__PURE__ */ (0, B.jsx)(
|
|
2017
|
+
children: /* @__PURE__ */ (0, B.jsx)(Lt, {
|
|
2018
2018
|
asChild: !0,
|
|
2019
2019
|
loop: !0,
|
|
2020
2020
|
trapped: r,
|
|
2021
2021
|
branches: p,
|
|
2022
2022
|
onMountAutoFocus: i,
|
|
2023
2023
|
onUnmountAutoFocus: a,
|
|
2024
|
-
children: /* @__PURE__ */ (0, B.jsx)(
|
|
2024
|
+
children: /* @__PURE__ */ (0, B.jsx)(kt, {
|
|
2025
2025
|
asChild: !0,
|
|
2026
2026
|
disableOutsidePointerEvents: o,
|
|
2027
2027
|
onInteractOutside: d,
|
|
@@ -2053,7 +2053,7 @@ var Tr = /* @__PURE__ */ i(((e) => {
|
|
|
2053
2053
|
});
|
|
2054
2054
|
}, "PopoverContentImpl")), Wi = "PopoverClose", Gi = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ Si(function(e, t) {
|
|
2055
2055
|
let { __scopePopover: n, ...r } = e, i = Oi(Wi, n);
|
|
2056
|
-
return /* @__PURE__ */ (0, B.jsx)(
|
|
2056
|
+
return /* @__PURE__ */ (0, B.jsx)(Et.button, {
|
|
2057
2057
|
type: "button",
|
|
2058
2058
|
...r,
|
|
2059
2059
|
ref: t,
|
|
@@ -2110,7 +2110,7 @@ function Yi(e) {
|
|
|
2110
2110
|
}
|
|
2111
2111
|
async function Xi(e, t) {
|
|
2112
2112
|
if (t.length === 0) return;
|
|
2113
|
-
let n = e.get(
|
|
2113
|
+
let n = e.get(wt);
|
|
2114
2114
|
if (n === null) {
|
|
2115
2115
|
a.warn("No notebook is open to run cells in");
|
|
2116
2116
|
return;
|
|
@@ -2119,7 +2119,7 @@ async function Xi(e, t) {
|
|
|
2119
2119
|
try {
|
|
2120
2120
|
if (await Ce(e), r ??= Ie(e, t), r === null) throw Error("No notebook is shown");
|
|
2121
2121
|
let { notebook_id: i } = await Yi(n);
|
|
2122
|
-
if (e.get(
|
|
2122
|
+
if (e.get(wt) !== n || !Le(e, r) || i !== r.notebook.id) {
|
|
2123
2123
|
we(e, r);
|
|
2124
2124
|
return;
|
|
2125
2125
|
}
|
|
@@ -2861,25 +2861,25 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
2861
2861
|
}
|
|
2862
2862
|
n &= ~d;
|
|
2863
2863
|
}
|
|
2864
|
-
r !== 0 &&
|
|
2864
|
+
r !== 0 && yt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
|
|
2865
2865
|
}
|
|
2866
|
-
function
|
|
2866
|
+
function yt(e, t, n) {
|
|
2867
2867
|
e.pendingLanes |= t, e.suspendedLanes &= ~t;
|
|
2868
2868
|
var r = 31 - nt(t);
|
|
2869
2869
|
e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
|
|
2870
2870
|
}
|
|
2871
|
-
function
|
|
2871
|
+
function bt(e, t) {
|
|
2872
2872
|
var n = e.entangledLanes |= t;
|
|
2873
2873
|
for (e = e.entanglements; n;) {
|
|
2874
2874
|
var r = 31 - nt(n), i = 1 << r;
|
|
2875
2875
|
i & t | e[r] & t && (e[r] |= t), n &= ~i;
|
|
2876
2876
|
}
|
|
2877
2877
|
}
|
|
2878
|
-
function
|
|
2878
|
+
function xt(e, t) {
|
|
2879
2879
|
var n = t & -t;
|
|
2880
|
-
return n = n & 42 ? 1 :
|
|
2880
|
+
return n = n & 42 ? 1 : St(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
|
|
2881
2881
|
}
|
|
2882
|
-
function
|
|
2882
|
+
function St(e) {
|
|
2883
2883
|
switch (e) {
|
|
2884
2884
|
case 2:
|
|
2885
2885
|
e = 1;
|
|
@@ -2917,10 +2917,10 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
2917
2917
|
}
|
|
2918
2918
|
return e;
|
|
2919
2919
|
}
|
|
2920
|
-
function
|
|
2920
|
+
function Ct(e) {
|
|
2921
2921
|
return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
|
|
2922
2922
|
}
|
|
2923
|
-
function
|
|
2923
|
+
function N() {
|
|
2924
2924
|
var e = j.p;
|
|
2925
2925
|
return e === 0 ? (e = window.event, e === void 0 ? 32 : Ch(e.type)) : e;
|
|
2926
2926
|
}
|
|
@@ -2932,17 +2932,17 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
2932
2932
|
j.p = n;
|
|
2933
2933
|
}
|
|
2934
2934
|
}
|
|
2935
|
-
var
|
|
2935
|
+
var P = Math.random().toString(36).slice(2), Tt = "__reactFiber$" + P, Et = "__reactProps$" + P, Dt = "__reactContainer$" + P, Ot = "__reactEvents$" + P, kt = "__reactListeners$" + P, At = "__reactHandles$" + P, jt = "__reactResources$" + P, Mt = "__reactMarker$" + P, Nt = "__reactLoad$" + P;
|
|
2936
2936
|
function Pt(e) {
|
|
2937
|
-
delete e[
|
|
2937
|
+
delete e[Tt], delete e[Et], delete e[kt], delete e[At];
|
|
2938
2938
|
}
|
|
2939
2939
|
function Ft(e) {
|
|
2940
2940
|
var t;
|
|
2941
|
-
if (t = e[
|
|
2941
|
+
if (t = e[Tt]) return t;
|
|
2942
2942
|
for (var n = e.parentNode; n;) {
|
|
2943
|
-
if (t = n[Dt] || n[
|
|
2943
|
+
if (t = n[Dt] || n[Tt]) {
|
|
2944
2944
|
if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = fm(e); e !== null;) {
|
|
2945
|
-
if (n = e[
|
|
2945
|
+
if (n = e[Tt]) return n;
|
|
2946
2946
|
e = fm(e);
|
|
2947
2947
|
}
|
|
2948
2948
|
return t;
|
|
@@ -2952,7 +2952,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
2952
2952
|
return null;
|
|
2953
2953
|
}
|
|
2954
2954
|
function It(e) {
|
|
2955
|
-
if (e = e[
|
|
2955
|
+
if (e = e[Tt] || e[Dt]) {
|
|
2956
2956
|
var t = e.tag;
|
|
2957
2957
|
if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
|
|
2958
2958
|
}
|
|
@@ -3027,7 +3027,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
3027
3027
|
e.setAttribute(t, n);
|
|
3028
3028
|
}
|
|
3029
3029
|
}
|
|
3030
|
-
function
|
|
3030
|
+
function Qt(e, t, n, r) {
|
|
3031
3031
|
if (r === null) e.removeAttribute(n);
|
|
3032
3032
|
else {
|
|
3033
3033
|
switch (typeof r) {
|
|
@@ -3041,7 +3041,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
3041
3041
|
e.setAttributeNS(t, n, r);
|
|
3042
3042
|
}
|
|
3043
3043
|
}
|
|
3044
|
-
function
|
|
3044
|
+
function I(e) {
|
|
3045
3045
|
switch (typeof e) {
|
|
3046
3046
|
case "bigint":
|
|
3047
3047
|
case "boolean":
|
|
@@ -3101,7 +3101,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
3101
3101
|
});
|
|
3102
3102
|
}
|
|
3103
3103
|
function on(e, t, n, r, i, a, o, s) {
|
|
3104
|
-
e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" +
|
|
3104
|
+
e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + I(t)) : e.value !== "" + I(t) && (e.value = "" + I(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : cn(e, I(n)) : o === "number" && e.value == t ? cn(e, I(e.value)) : cn(e, I(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + I(s) : e.removeAttribute("name");
|
|
3105
3105
|
}
|
|
3106
3106
|
function sn(e, t, n, r, i, a, o, s) {
|
|
3107
3107
|
if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (e.type = a), t != null || n != null) {
|
|
@@ -3109,7 +3109,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
3109
3109
|
tn(e);
|
|
3110
3110
|
return;
|
|
3111
3111
|
}
|
|
3112
|
-
n = n == null ? "" : "" +
|
|
3112
|
+
n = n == null ? "" : "" + I(n), t = t == null ? n : "" + I(t), s || t === e.value || (e.value = t), e.defaultValue = t;
|
|
3113
3113
|
}
|
|
3114
3114
|
r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), tn(e);
|
|
3115
3115
|
}
|
|
@@ -3122,7 +3122,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
3122
3122
|
for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0;
|
|
3123
3123
|
for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0);
|
|
3124
3124
|
} else {
|
|
3125
|
-
for (n = "" +
|
|
3125
|
+
for (n = "" + I(n), t = null, i = 0; i < e.length; i++) {
|
|
3126
3126
|
if (e[i].value === n) {
|
|
3127
3127
|
e[i].selected = !0, r && (e[i].defaultSelected = !0);
|
|
3128
3128
|
return;
|
|
@@ -3133,7 +3133,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
3133
3133
|
}
|
|
3134
3134
|
}
|
|
3135
3135
|
function un(e, t, n) {
|
|
3136
|
-
t != null && (t = "" +
|
|
3136
|
+
t != null && (t = "" + I(t), t !== e.value && (e.value = t), n == null) ? e.defaultValue !== t && (e.defaultValue = t) : e.defaultValue = n == null ? "" : "" + I(n);
|
|
3137
3137
|
}
|
|
3138
3138
|
function dn(e, t, n, r) {
|
|
3139
3139
|
if (t == null) {
|
|
@@ -3147,7 +3147,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
3147
3147
|
}
|
|
3148
3148
|
n ??= "", t = n;
|
|
3149
3149
|
}
|
|
3150
|
-
n =
|
|
3150
|
+
n = I(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), tn(e);
|
|
3151
3151
|
}
|
|
3152
3152
|
function fn(e, t) {
|
|
3153
3153
|
if (t) {
|
|
@@ -3987,7 +3987,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
3987
3987
|
}
|
|
3988
3988
|
function ca(e) {
|
|
3989
3989
|
var t = e.stateNode, n = e.type, r = e.memoizedProps;
|
|
3990
|
-
switch (t[
|
|
3990
|
+
switch (t[Tt] = e, t[Et] = r, n) {
|
|
3991
3991
|
case "dialog":
|
|
3992
3992
|
$("cancel", t), $("close", t);
|
|
3993
3993
|
break;
|
|
@@ -4053,7 +4053,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4053
4053
|
}
|
|
4054
4054
|
function da() {
|
|
4055
4055
|
var e = ra;
|
|
4056
|
-
return e !== null && (
|
|
4056
|
+
return e !== null && (dd === null ? dd = e : dd.push.apply(dd, e), ra = null), e;
|
|
4057
4057
|
}
|
|
4058
4058
|
function fa(e) {
|
|
4059
4059
|
ra === null ? ra = [e] : ra.push(e);
|
|
@@ -4246,7 +4246,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4246
4246
|
}
|
|
4247
4247
|
var Ha = A.S;
|
|
4248
4248
|
A.S = function(e, t) {
|
|
4249
|
-
if (
|
|
4249
|
+
if (md = We(), typeof t == "object" && t && typeof t.then == "function" && za(e, t), Na !== null) for (var n = yf; n !== null;) Ma(n, Na), n = n.next;
|
|
4250
4250
|
if (n = e.types, n !== null) {
|
|
4251
4251
|
for (var r = yf; r !== null;) Ma(r, n), r = r.next;
|
|
4252
4252
|
if (La !== 0) {
|
|
@@ -4262,7 +4262,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4262
4262
|
var Ua = Se(null);
|
|
4263
4263
|
function Wa() {
|
|
4264
4264
|
var e = Ua.current;
|
|
4265
|
-
return e === null ?
|
|
4265
|
+
return e === null ? Zu.pooledCache : e;
|
|
4266
4266
|
}
|
|
4267
4267
|
function Ga(e, t) {
|
|
4268
4268
|
t === null ? M(Ua, Ua.current) : M(Ua, t.pool);
|
|
@@ -4285,7 +4285,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4285
4285
|
default:
|
|
4286
4286
|
if (typeof t.status == "string") t.then(bn, bn);
|
|
4287
4287
|
else {
|
|
4288
|
-
if (e =
|
|
4288
|
+
if (e = Zu, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
|
|
4289
4289
|
e = t, e.status = "pending", e.then(function(e) {
|
|
4290
4290
|
if (t.status === "pending") {
|
|
4291
4291
|
var n = t;
|
|
@@ -4558,7 +4558,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4558
4558
|
function go(e, t, n) {
|
|
4559
4559
|
var r = e.updateQueue;
|
|
4560
4560
|
if (r === null) return null;
|
|
4561
|
-
if (r = r.shared,
|
|
4561
|
+
if (r = r.shared, Y & 2) {
|
|
4562
4562
|
var i = r.pending;
|
|
4563
4563
|
return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Di(e), Ei(e, null, n), t;
|
|
4564
4564
|
}
|
|
@@ -4567,7 +4567,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4567
4567
|
function _o(e, t, n) {
|
|
4568
4568
|
if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
|
|
4569
4569
|
var r = t.lanes;
|
|
4570
|
-
r &= e.pendingLanes, n |= r, t.lanes = n,
|
|
4570
|
+
r &= e.pendingLanes, n |= r, t.lanes = n, bt(e, n);
|
|
4571
4571
|
}
|
|
4572
4572
|
}
|
|
4573
4573
|
function vo(e, t) {
|
|
@@ -4620,7 +4620,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4620
4620
|
o = 0, u = l = c = null, s = a;
|
|
4621
4621
|
do {
|
|
4622
4622
|
var f = s.lane & -536870913, p = f !== s.lane;
|
|
4623
|
-
if (p ? (
|
|
4623
|
+
if (p ? (Z & f) === f : (r & f) === f) {
|
|
4624
4624
|
f !== 0 && f === La && (yo = !0), u !== null && (u = u.next = {
|
|
4625
4625
|
lane: 0,
|
|
4626
4626
|
tag: s.tag,
|
|
@@ -4661,7 +4661,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4661
4661
|
p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
|
|
4662
4662
|
}
|
|
4663
4663
|
} while (1);
|
|
4664
|
-
u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0),
|
|
4664
|
+
u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), ad |= o, e.lanes = o, e.memoizedState = d;
|
|
4665
4665
|
}
|
|
4666
4666
|
}
|
|
4667
4667
|
function So(e, t) {
|
|
@@ -4674,13 +4674,13 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4674
4674
|
}
|
|
4675
4675
|
var wo = Se(null), To = Se(0);
|
|
4676
4676
|
function Eo(e, t) {
|
|
4677
|
-
e =
|
|
4677
|
+
e = rd, M(To, e), M(wo, t), rd = e | t.baseLanes;
|
|
4678
4678
|
}
|
|
4679
4679
|
function Do() {
|
|
4680
|
-
M(To,
|
|
4680
|
+
M(To, rd), M(wo, wo.current);
|
|
4681
4681
|
}
|
|
4682
4682
|
function Oo() {
|
|
4683
|
-
|
|
4683
|
+
rd = To.current, Ce(wo), Ce(To);
|
|
4684
4684
|
}
|
|
4685
4685
|
var ko = Se(null), Ao = null;
|
|
4686
4686
|
function jo(e) {
|
|
@@ -4868,7 +4868,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4868
4868
|
var c = s = null, l = null, u = t, d = !1;
|
|
4869
4869
|
do {
|
|
4870
4870
|
var f = u.lane & -536870913;
|
|
4871
|
-
if (f === u.lane ? (Bo & f) === f : (
|
|
4871
|
+
if (f === u.lane ? (Bo & f) === f : (Z & f) === f) {
|
|
4872
4872
|
var p = u.revertLane;
|
|
4873
4873
|
if (p === 0) l !== null && (l = l.next = {
|
|
4874
4874
|
lane: 0,
|
|
@@ -4890,7 +4890,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4890
4890
|
hasEagerState: u.hasEagerState,
|
|
4891
4891
|
eagerState: u.eagerState,
|
|
4892
4892
|
next: null
|
|
4893
|
-
}, l === null ? (c = l = f, s = o) : l = l.next = f, U.lanes |= p,
|
|
4893
|
+
}, l === null ? (c = l = f, s = o) : l = l.next = f, U.lanes |= p, ad |= p;
|
|
4894
4894
|
f = u.action, Wo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
|
|
4895
4895
|
} else p = {
|
|
4896
4896
|
lane: f,
|
|
@@ -4900,7 +4900,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4900
4900
|
hasEagerState: u.hasEagerState,
|
|
4901
4901
|
eagerState: u.eagerState,
|
|
4902
4902
|
next: null
|
|
4903
|
-
}, l === null ? (c = l = p, s = o) : l = l.next = p, U.lanes |= f,
|
|
4903
|
+
}, l === null ? (c = l = p, s = o) : l = l.next = p, U.lanes |= f, ad |= f;
|
|
4904
4904
|
u = u.next;
|
|
4905
4905
|
} while (u !== null && u !== t);
|
|
4906
4906
|
if (l === null ? s = o : l.next = c, !Br(o, e.memoizedState) && (G = !0, d && (n = Ra, n !== null))) throw n;
|
|
@@ -4931,7 +4931,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
4931
4931
|
} else n = t();
|
|
4932
4932
|
var s = !Br((W || a).memoizedState, n);
|
|
4933
4933
|
if (s && (a.memoizedState = n, G = !0), a = a.queue, zs(_s.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Vo !== null && !!(Vo.memoizedState.tag & 1), Ps(e ? 9 : 8, { destroy: void 0 }, gs.bind(null, r, a, n, t), null), e) {
|
|
4934
|
-
if (r.flags |= 2048,
|
|
4934
|
+
if (r.flags |= 2048, Zu === null) throw Error(i(349));
|
|
4935
4935
|
o || Bo & 127 || hs(r, t, n);
|
|
4936
4936
|
}
|
|
4937
4937
|
return n;
|
|
@@ -5055,7 +5055,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5055
5055
|
}
|
|
5056
5056
|
function ks(e, t) {
|
|
5057
5057
|
if (V) {
|
|
5058
|
-
var n =
|
|
5058
|
+
var n = Zu.formState;
|
|
5059
5059
|
if (n !== null) {
|
|
5060
5060
|
a: {
|
|
5061
5061
|
var r = U;
|
|
@@ -5172,7 +5172,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5172
5172
|
ref: t,
|
|
5173
5173
|
nextImpl: e
|
|
5174
5174
|
}), function() {
|
|
5175
|
-
if (
|
|
5175
|
+
if (Y & 2) throw Error(i(440));
|
|
5176
5176
|
return t.impl.apply(void 0, arguments);
|
|
5177
5177
|
};
|
|
5178
5178
|
}
|
|
@@ -5220,10 +5220,10 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5220
5220
|
return n.memoizedState = [r, t], r;
|
|
5221
5221
|
}
|
|
5222
5222
|
function Ys(e, t, n) {
|
|
5223
|
-
return n === void 0 || Bo & 1073741824 && !(
|
|
5223
|
+
return n === void 0 || Bo & 1073741824 && !(Z & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ad(), U.lanes |= e, ad |= e, n);
|
|
5224
5224
|
}
|
|
5225
5225
|
function Xs(e, t, n, r) {
|
|
5226
|
-
return Br(n, t) ? n : wo.current === null ? !(Bo & 106) || Bo & 1073741824 && !(
|
|
5226
|
+
return Br(n, t) ? n : wo.current === null ? !(Bo & 106) || Bo & 1073741824 && !(Z & 261930) ? (G = !0, e.memoizedState = n) : (e = Ad(), U.lanes |= e, ad |= e, t) : (e = Ys(e, n, r), Br(e, t) || (G = !0), e);
|
|
5227
5227
|
}
|
|
5228
5228
|
function Zs(e, t, n, r, i) {
|
|
5229
5229
|
var a = j.p;
|
|
@@ -5339,7 +5339,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5339
5339
|
var a = e.alternate;
|
|
5340
5340
|
if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {
|
|
5341
5341
|
var o = t.lastRenderedState, s = a(o, n);
|
|
5342
|
-
if (i.hasEagerState = !0, i.eagerState = s, Br(s, o)) return Ci(e, t, i, 0),
|
|
5342
|
+
if (i.hasEagerState = !0, i.eagerState = s, Br(s, o)) return Ci(e, t, i, 0), Zu === null && Si(), !1;
|
|
5343
5343
|
} catch {}
|
|
5344
5344
|
if (n = wi(e, t, i, r), n !== null) return Md(n, e, r), fc(n, t, r), !0;
|
|
5345
5345
|
}
|
|
@@ -5370,7 +5370,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5370
5370
|
function fc(e, t, n) {
|
|
5371
5371
|
if (n & 4194048) {
|
|
5372
5372
|
var r = t.lanes;
|
|
5373
|
-
r &= e.pendingLanes, n |= r, t.lanes = n,
|
|
5373
|
+
r &= e.pendingLanes, n |= r, t.lanes = n, bt(e, n);
|
|
5374
5374
|
}
|
|
5375
5375
|
}
|
|
5376
5376
|
var pc = {
|
|
@@ -5473,8 +5473,8 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5473
5473
|
if (n === void 0) throw Error(i(407));
|
|
5474
5474
|
n = n();
|
|
5475
5475
|
} else {
|
|
5476
|
-
if (n = t(),
|
|
5477
|
-
|
|
5476
|
+
if (n = t(), Zu === null) throw Error(i(349));
|
|
5477
|
+
Z & 127 || hs(r, t, n);
|
|
5478
5478
|
}
|
|
5479
5479
|
a.memoizedState = n;
|
|
5480
5480
|
var o = {
|
|
@@ -5484,7 +5484,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5484
5484
|
return a.queue = o, Rs(_s.bind(null, r, o, e), [e]), r.flags |= 2048, Ps(9, { destroy: void 0 }, gs.bind(null, r, o, n, t), null), n;
|
|
5485
5485
|
},
|
|
5486
5486
|
useId: function() {
|
|
5487
|
-
var e = is(), t =
|
|
5487
|
+
var e = is(), t = Zu.identifierPrefix;
|
|
5488
5488
|
if (V) {
|
|
5489
5489
|
var n = Yi, r = Ji;
|
|
5490
5490
|
n = (r & ~(1 << 32 - nt(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Go++, 0 < n && (t += "H" + n.toString(32)), t += "_";
|
|
@@ -5513,7 +5513,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5513
5513
|
useEffectEvent: function(e) {
|
|
5514
5514
|
var t = is(), n = { impl: e };
|
|
5515
5515
|
return t.memoizedState = n, function() {
|
|
5516
|
-
if (
|
|
5516
|
+
if (Y & 2) throw Error(i(440));
|
|
5517
5517
|
return n.impl.apply(void 0, arguments);
|
|
5518
5518
|
};
|
|
5519
5519
|
}
|
|
@@ -5672,7 +5672,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5672
5672
|
}
|
|
5673
5673
|
var o = n.stateNode;
|
|
5674
5674
|
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
|
|
5675
|
-
Ec(t, n, r), typeof i != "function" && (
|
|
5675
|
+
Ec(t, n, r), typeof i != "function" && (_d === null ? _d = /* @__PURE__ */ new Set([this]) : _d.add(this));
|
|
5676
5676
|
var e = r.stack;
|
|
5677
5677
|
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
|
|
5678
5678
|
});
|
|
@@ -5683,7 +5683,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5683
5683
|
switch (n.tag) {
|
|
5684
5684
|
case 31:
|
|
5685
5685
|
case 13:
|
|
5686
|
-
case 19: return Ao === null ? Wd() : n.alternate === null &&
|
|
5686
|
+
case 19: return Ao === null ? Wd() : n.alternate === null && id === 0 && (id = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Xa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), pf(e, r, a)), !1;
|
|
5687
5687
|
case 22: return n.flags |= 65536, r === Xa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
|
|
5688
5688
|
transitions: null,
|
|
5689
5689
|
markerInstances: null,
|
|
@@ -5694,15 +5694,15 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5694
5694
|
}
|
|
5695
5695
|
return pf(e, r, a), Wd(), !1;
|
|
5696
5696
|
}
|
|
5697
|
-
if (V) return t = ko.current, t === null ? (r !== aa && (t = Error(i(423), { cause: r }), fa(Bi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Bi(r, n), a = Dc(e.stateNode, r, a), vo(e, a),
|
|
5697
|
+
if (V) return t = ko.current, t === null ? (r !== aa && (t = Error(i(423), { cause: r }), fa(Bi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Bi(r, n), a = Dc(e.stateNode, r, a), vo(e, a), id !== 4 && (id = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== aa && (e = Error(i(422), { cause: r }), fa(Bi(e, n)))), !1;
|
|
5698
5698
|
var o = Error(i(520), { cause: r });
|
|
5699
|
-
if (o = Bi(o, n),
|
|
5699
|
+
if (o = Bi(o, n), ud === null ? ud = [o] : ud.push(o), id !== 4 && (id = 2), t === null) return !0;
|
|
5700
5700
|
r = Bi(r, n), n = t;
|
|
5701
5701
|
do {
|
|
5702
5702
|
switch (n.tag) {
|
|
5703
5703
|
case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Dc(n.stateNode, r, e), vo(n, e), !1;
|
|
5704
5704
|
case 1:
|
|
5705
|
-
if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (
|
|
5705
|
+
if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (_d === null || !_d.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Oc(a), kc(a, e, n, r), vo(n, a), !1;
|
|
5706
5706
|
break;
|
|
5707
5707
|
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
|
|
5708
5708
|
}
|
|
@@ -5824,7 +5824,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5824
5824
|
else throw Error(i(558));
|
|
5825
5825
|
} else if (G || ba(e, t, n, !1), a = (n & e.childLanes) !== 0, G || a) {
|
|
5826
5826
|
if (wo.current === null) {
|
|
5827
|
-
if (r =
|
|
5827
|
+
if (r = Zu, r !== null && (s = xt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ti(e, s), Md(r, e, s), jc;
|
|
5828
5828
|
Wd();
|
|
5829
5829
|
}
|
|
5830
5830
|
t = Bc(e, t, n);
|
|
@@ -5887,7 +5887,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5887
5887
|
};
|
|
5888
5888
|
}
|
|
5889
5889
|
function Yc(e, t, n) {
|
|
5890
|
-
return e = e === null ? 0 : e.childLanes & ~n, t && (e |=
|
|
5890
|
+
return e = e === null ? 0 : e.childLanes & ~n, t && (e |= cd), e;
|
|
5891
5891
|
}
|
|
5892
5892
|
function Xc(e, t, n) {
|
|
5893
5893
|
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
|
|
@@ -5955,7 +5955,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
5955
5955
|
}
|
|
5956
5956
|
if (G || ba(e, t, c, !1), r = (c & e.childLanes) !== 0, G || r) {
|
|
5957
5957
|
if (wo.current !== null) return $c(e, t, c);
|
|
5958
|
-
if (r =
|
|
5958
|
+
if (r = Zu, r !== null && (a = xt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ti(e, a), Md(r, e, a), jc;
|
|
5959
5959
|
return om(o) || Wd(), $c(e, t, c);
|
|
5960
5960
|
}
|
|
5961
5961
|
return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, na = lm(o.nextSibling), ta = t, V = !0, ra = null, ia = !1, e !== null && ea(t, e), t = Zc(t, a.children), t.flags |= 134221824, t);
|
|
@@ -6040,7 +6040,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6040
6040
|
return ga(t, t.type, r.value), Mc(e, t, r.children, n), t.child;
|
|
6041
6041
|
}
|
|
6042
6042
|
function sl(e, t, n) {
|
|
6043
|
-
if (e !== null && (t.dependencies = e.dependencies),
|
|
6043
|
+
if (e !== null && (t.dependencies = e.dependencies), ad |= t.lanes, (n & t.childLanes) === 0) {
|
|
6044
6044
|
if (e !== null) {
|
|
6045
6045
|
if (ba(e, t, n, !1), (n & t.childLanes) === 0) return null;
|
|
6046
6046
|
} else return null;
|
|
@@ -6185,7 +6185,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6185
6185
|
case 19: return al(e, t, n);
|
|
6186
6186
|
case 31: return Vc(e, t, n);
|
|
6187
6187
|
case 22: return Ic(e, t, n, t.pendingProps);
|
|
6188
|
-
case 24: return Sa(t), r = Ca(ka), e === null ? (a = Wa(), a === null && (a =
|
|
6188
|
+
case 24: return Sa(t), r = Ca(ka), e === null ? (a = Wa(), a === null && (a = Zu, o = Aa(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
|
|
6189
6189
|
parent: r,
|
|
6190
6190
|
cache: a
|
|
6191
6191
|
}, po(t), ga(t, ka, a)) : ((e.lanes & n) !== 0 && (mo(e, t), xo(t, null, null, n), bo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ga(t, ka, r), r !== a.cache && ya(t, [ka], n, !0)) : (a = {
|
|
@@ -6223,7 +6223,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6223
6223
|
}
|
|
6224
6224
|
}
|
|
6225
6225
|
function ml(e, t) {
|
|
6226
|
-
t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ht(), e.lanes |= t,
|
|
6226
|
+
t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ht(), e.lanes |= t, ld |= t);
|
|
6227
6227
|
}
|
|
6228
6228
|
function hl(e, t) {
|
|
6229
6229
|
if (!V) switch (e.tailMode) {
|
|
@@ -6303,7 +6303,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6303
6303
|
default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);
|
|
6304
6304
|
}
|
|
6305
6305
|
}
|
|
6306
|
-
o[
|
|
6306
|
+
o[Tt] = t, o[Et] = r;
|
|
6307
6307
|
a: for (s = t.child; s !== null;) {
|
|
6308
6308
|
if (s.tag === 5 || s.tag === 6) o.appendChild(s.stateNode);
|
|
6309
6309
|
else if (s.tag !== 4 && s.tag !== 27 && s.child !== null) {
|
|
@@ -6343,8 +6343,8 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6343
6343
|
case 27:
|
|
6344
6344
|
case 5: r = a.memoizedProps;
|
|
6345
6345
|
}
|
|
6346
|
-
e[
|
|
6347
|
-
} else e = lp(e).createTextNode(r), e[
|
|
6346
|
+
e[Tt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || $f(e.nodeValue, n)), e || sa(t, !0);
|
|
6347
|
+
} else e = lp(e).createTextNode(r), e[Tt] = t, t.stateNode = e;
|
|
6348
6348
|
}
|
|
6349
6349
|
return gl(t), null;
|
|
6350
6350
|
case 31:
|
|
@@ -6353,7 +6353,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6353
6353
|
if (e === null) {
|
|
6354
6354
|
if (!r) throw Error(i(318));
|
|
6355
6355
|
if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));
|
|
6356
|
-
e[
|
|
6356
|
+
e[Tt] = t;
|
|
6357
6357
|
} else H(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
|
|
6358
6358
|
gl(t), e = !1;
|
|
6359
6359
|
} else n = da(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
|
|
@@ -6367,7 +6367,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6367
6367
|
if (e === null) {
|
|
6368
6368
|
if (!a) throw Error(i(318));
|
|
6369
6369
|
if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));
|
|
6370
|
-
a[
|
|
6370
|
+
a[Tt] = t;
|
|
6371
6371
|
} else H(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
|
|
6372
6372
|
gl(t), a = !1;
|
|
6373
6373
|
} else a = da(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
|
|
@@ -6381,20 +6381,20 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6381
6381
|
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
|
|
6382
6382
|
if (a) hl(r, !1);
|
|
6383
6383
|
else {
|
|
6384
|
-
if (
|
|
6384
|
+
if (id !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
|
|
6385
6385
|
if (o = zo(e), o !== null) {
|
|
6386
6386
|
for (t.flags |= 128, hl(r, !1), e = o.updateQueue, t.updateQueue = e, ml(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Ni(n, e), n = n.sibling;
|
|
6387
6387
|
return Lo(t, Io.current & 1 | 2), V && Xi(t, r.treeForkCount), t.child;
|
|
6388
6388
|
}
|
|
6389
6389
|
e = e.sibling;
|
|
6390
6390
|
}
|
|
6391
|
-
r.tail !== null && We() >
|
|
6391
|
+
r.tail !== null && We() > hd && (t.flags |= 128, a = !0, hl(r, !1), t.lanes = 4194304);
|
|
6392
6392
|
}
|
|
6393
6393
|
} else {
|
|
6394
6394
|
if (!a) {
|
|
6395
6395
|
if (e = zo(o), e !== null) {
|
|
6396
6396
|
if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, ml(t, e), hl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !V) return gl(t), null;
|
|
6397
|
-
} else 2 * We() - r.renderingStartTime >
|
|
6397
|
+
} else 2 * We() - r.renderingStartTime > hd && n !== 536870912 && (t.flags |= 128, a = !0, hl(r, !1), t.lanes = 4194304);
|
|
6398
6398
|
}
|
|
6399
6399
|
r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);
|
|
6400
6400
|
}
|
|
@@ -6662,7 +6662,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6662
6662
|
var t = e.stateNode, n = e.memoizedProps;
|
|
6663
6663
|
try {
|
|
6664
6664
|
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
|
|
6665
|
-
np(t, r, n), t[
|
|
6665
|
+
np(t, r, n), t[Tt] = e, t[Et] = n;
|
|
6666
6666
|
} catch (t) {
|
|
6667
6667
|
ff(e, e.return, t);
|
|
6668
6668
|
}
|
|
@@ -6811,8 +6811,8 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6811
6811
|
e = e.sibling;
|
|
6812
6812
|
}
|
|
6813
6813
|
}
|
|
6814
|
-
var tu = !1,
|
|
6815
|
-
function
|
|
6814
|
+
var tu = !1, nu = !1, ru = !1, iu = !1, au = typeof WeakSet == "function" ? WeakSet : Set, ou = null, su = !1, cu = !1, lu = !1, uu = !1;
|
|
6815
|
+
function du(e, t, n) {
|
|
6816
6816
|
if (e = e.containerInfo, sp = gh, e = Kr(e), qr(e)) {
|
|
6817
6817
|
if ("selectionStart" in e) var r = {
|
|
6818
6818
|
start: e.selectionStart,
|
|
@@ -6855,28 +6855,28 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6855
6855
|
for (cp = {
|
|
6856
6856
|
focusedElem: e,
|
|
6857
6857
|
selectionRange: r
|
|
6858
|
-
}, gh = !1, n = (n & 335544064) === n,
|
|
6859
|
-
if (e =
|
|
6860
|
-
if (e.alternate === null && e.flags & 2) n && Bl(e),
|
|
6858
|
+
}, gh = !1, n = (n & 335544064) === n, ou = t, t = n ? 9270 : 1024; ou !== null;) {
|
|
6859
|
+
if (e = ou, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Jl(r[a]);
|
|
6860
|
+
if (e.alternate === null && e.flags & 2) n && Bl(e), fu(n);
|
|
6861
6861
|
else {
|
|
6862
6862
|
if (e.tag === 22) {
|
|
6863
6863
|
if (r = e.alternate, e.memoizedState !== null) {
|
|
6864
|
-
r !== null && r.memoizedState === null && n && Jl(r),
|
|
6864
|
+
r !== null && r.memoizedState === null && n && Jl(r), fu(n);
|
|
6865
6865
|
continue;
|
|
6866
6866
|
}
|
|
6867
6867
|
if (r !== null && r.memoizedState !== null) {
|
|
6868
|
-
n && Bl(e),
|
|
6868
|
+
n && Bl(e), fu(n);
|
|
6869
6869
|
continue;
|
|
6870
6870
|
}
|
|
6871
6871
|
}
|
|
6872
|
-
r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e,
|
|
6872
|
+
r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, ou = r) : (n && Yl(e), fu(n));
|
|
6873
6873
|
}
|
|
6874
6874
|
}
|
|
6875
6875
|
zl = null;
|
|
6876
6876
|
}
|
|
6877
|
-
function
|
|
6878
|
-
for (;
|
|
6879
|
-
var t =
|
|
6877
|
+
function fu(e) {
|
|
6878
|
+
for (; ou !== null;) {
|
|
6879
|
+
var t = ou, n = e, r = t.alternate, a = t.flags;
|
|
6880
6880
|
switch (t.tag) {
|
|
6881
6881
|
case 0:
|
|
6882
6882
|
case 11:
|
|
@@ -6918,22 +6918,22 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6918
6918
|
default: if (a & 1024) throw Error(i(163));
|
|
6919
6919
|
}
|
|
6920
6920
|
if (r = t.sibling, r !== null) {
|
|
6921
|
-
r.return = t.return,
|
|
6921
|
+
r.return = t.return, ou = r;
|
|
6922
6922
|
break;
|
|
6923
6923
|
}
|
|
6924
|
-
|
|
6924
|
+
ou = t.return;
|
|
6925
6925
|
}
|
|
6926
6926
|
}
|
|
6927
|
-
function
|
|
6927
|
+
function pu(e, t, n) {
|
|
6928
6928
|
var r = n.flags;
|
|
6929
6929
|
switch (n.tag) {
|
|
6930
6930
|
case 0:
|
|
6931
6931
|
case 11:
|
|
6932
6932
|
case 15:
|
|
6933
|
-
|
|
6933
|
+
Mu(e, n), r & 4 && bl(5, n);
|
|
6934
6934
|
break;
|
|
6935
6935
|
case 1:
|
|
6936
|
-
if (
|
|
6936
|
+
if (Mu(e, n), r & 4) {
|
|
6937
6937
|
if (e = n.stateNode, t === null) try {
|
|
6938
6938
|
e.componentDidMount();
|
|
6939
6939
|
} catch (e) {
|
|
@@ -6952,7 +6952,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6952
6952
|
r & 64 && Sl(n), r & 512 && wl(n, n.return);
|
|
6953
6953
|
break;
|
|
6954
6954
|
case 3:
|
|
6955
|
-
if (
|
|
6955
|
+
if (Mu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
|
|
6956
6956
|
if (t = null, n.child !== null) switch (n.child.tag) {
|
|
6957
6957
|
case 27:
|
|
6958
6958
|
case 5:
|
|
@@ -6970,34 +6970,34 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
6970
6970
|
case 27: t === null && r & 4 && Ll(n);
|
|
6971
6971
|
case 26:
|
|
6972
6972
|
case 5:
|
|
6973
|
-
|
|
6973
|
+
Mu(e, n), t === null && r & 4 && jl(n), r & 512 && wl(n, n.return);
|
|
6974
6974
|
break;
|
|
6975
6975
|
case 12:
|
|
6976
|
-
|
|
6976
|
+
Mu(e, n);
|
|
6977
6977
|
break;
|
|
6978
6978
|
case 31:
|
|
6979
|
-
|
|
6979
|
+
Mu(e, n), r & 4 && xu(e, n);
|
|
6980
6980
|
break;
|
|
6981
6981
|
case 13:
|
|
6982
|
-
|
|
6982
|
+
Mu(e, n), r & 4 && Su(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = gf.bind(null, n), cm(e, n))));
|
|
6983
6983
|
break;
|
|
6984
6984
|
case 22:
|
|
6985
6985
|
if (r = n.memoizedState !== null || tu, !r) {
|
|
6986
|
-
var a = t !== null && t.memoizedState !== null ||
|
|
6987
|
-
t = tu, i =
|
|
6986
|
+
var a = t !== null && t.memoizedState !== null || nu;
|
|
6987
|
+
t = tu, i = nu, tu = r, (nu = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Pu(e, n, r)) : Mu(e, n), tu = t, nu = i;
|
|
6988
6988
|
}
|
|
6989
6989
|
break;
|
|
6990
6990
|
case 30:
|
|
6991
|
-
|
|
6991
|
+
Mu(e, n), r & 512 && wl(n, n.return);
|
|
6992
6992
|
break;
|
|
6993
6993
|
case 7: r & 512 && wl(n, n.return);
|
|
6994
|
-
default:
|
|
6994
|
+
default: Mu(e, n);
|
|
6995
6995
|
}
|
|
6996
6996
|
}
|
|
6997
|
-
function pu(e, t) {
|
|
6998
|
-
for (e = e.child; e !== null;) mu(e, t), e = e.sibling;
|
|
6999
|
-
}
|
|
7000
6997
|
function mu(e, t) {
|
|
6998
|
+
for (e = e.child; e !== null;) hu(e, t), e = e.sibling;
|
|
6999
|
+
}
|
|
7000
|
+
function hu(e, t) {
|
|
7001
7001
|
switch (e.tag) {
|
|
7002
7002
|
case 5:
|
|
7003
7003
|
case 26:
|
|
@@ -7013,7 +7013,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7013
7013
|
} catch (t) {
|
|
7014
7014
|
ff(e, e.return, t);
|
|
7015
7015
|
}
|
|
7016
|
-
|
|
7016
|
+
gu(e, t);
|
|
7017
7017
|
break;
|
|
7018
7018
|
case 6:
|
|
7019
7019
|
try {
|
|
@@ -7032,95 +7032,95 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7032
7032
|
break;
|
|
7033
7033
|
case 22:
|
|
7034
7034
|
case 23:
|
|
7035
|
-
e.memoizedState === null &&
|
|
7035
|
+
e.memoizedState === null && mu(e, t);
|
|
7036
7036
|
break;
|
|
7037
|
-
default:
|
|
7037
|
+
default: mu(e, t);
|
|
7038
7038
|
}
|
|
7039
7039
|
}
|
|
7040
|
-
function
|
|
7040
|
+
function gu(e, t) {
|
|
7041
7041
|
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
|
|
7042
7042
|
a: {
|
|
7043
7043
|
var n = e, r = t;
|
|
7044
7044
|
switch (n.tag) {
|
|
7045
7045
|
case 4:
|
|
7046
|
-
|
|
7046
|
+
hu(n, r);
|
|
7047
7047
|
break a;
|
|
7048
7048
|
case 22:
|
|
7049
|
-
n.memoizedState === null &&
|
|
7049
|
+
n.memoizedState === null && gu(n, r);
|
|
7050
7050
|
break a;
|
|
7051
|
-
default:
|
|
7051
|
+
default: gu(n, r);
|
|
7052
7052
|
}
|
|
7053
7053
|
}
|
|
7054
7054
|
e = e.sibling;
|
|
7055
7055
|
}
|
|
7056
7056
|
}
|
|
7057
|
-
function
|
|
7057
|
+
function _u(e) {
|
|
7058
7058
|
var t = e.alternate;
|
|
7059
|
-
t !== null && (e.alternate = null,
|
|
7060
|
-
}
|
|
7061
|
-
var Y = null, _u = !1;
|
|
7062
|
-
function vu(e, t, n) {
|
|
7063
|
-
for (n = n.child; n !== null;) yu(e, t, n), n = n.sibling;
|
|
7059
|
+
t !== null && (e.alternate = null, _u(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Pt(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
|
|
7064
7060
|
}
|
|
7061
|
+
var J = null, vu = !1;
|
|
7065
7062
|
function yu(e, t, n) {
|
|
7063
|
+
for (n = n.child; n !== null;) bu(e, t, n), n = n.sibling;
|
|
7064
|
+
}
|
|
7065
|
+
function bu(e, t, n) {
|
|
7066
7066
|
if (et && typeof et.onCommitFiberUnmount == "function") try {
|
|
7067
7067
|
et.onCommitFiberUnmount($e, n);
|
|
7068
7068
|
} catch {}
|
|
7069
7069
|
switch (n.tag) {
|
|
7070
7070
|
case 26:
|
|
7071
|
-
|
|
7071
|
+
nu || Tl(n, t), yu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !nu && (n = n.stateNode, n.parentNode.removeChild(n));
|
|
7072
7072
|
break;
|
|
7073
7073
|
case 27:
|
|
7074
|
-
|
|
7075
|
-
var r =
|
|
7076
|
-
Sp(n.type) && (
|
|
7074
|
+
nu || Tl(n, t), Ol(n);
|
|
7075
|
+
var r = J, i = vu;
|
|
7076
|
+
Sp(n.type) && (J = n.stateNode, vu = !1), yu(e, t, n), gm(n.stateNode, n.type, n.memoizedProps), J = r, vu = i;
|
|
7077
7077
|
break;
|
|
7078
|
-
case 5:
|
|
7078
|
+
case 5: nu || Tl(n, t), Ol(n);
|
|
7079
7079
|
case 6:
|
|
7080
|
-
if (n.tag === 6 && Ol(n), r =
|
|
7081
|
-
if (
|
|
7082
|
-
(
|
|
7080
|
+
if (n.tag === 6 && Ol(n), r = J, i = vu, J = null, yu(e, t, n), J = r, vu = i, J !== null) {
|
|
7081
|
+
if (vu) try {
|
|
7082
|
+
(J.nodeType === 9 ? J.body : J.nodeName === "HTML" ? J.ownerDocument.body : J).removeChild(n.stateNode), F = !0;
|
|
7083
7083
|
} catch (e) {
|
|
7084
7084
|
ff(n, t, e);
|
|
7085
7085
|
}
|
|
7086
7086
|
else try {
|
|
7087
|
-
|
|
7087
|
+
J.removeChild(n.stateNode), F = !0;
|
|
7088
7088
|
} catch (e) {
|
|
7089
7089
|
ff(n, t, e);
|
|
7090
7090
|
}
|
|
7091
7091
|
}
|
|
7092
7092
|
break;
|
|
7093
7093
|
case 18:
|
|
7094
|
-
|
|
7094
|
+
J !== null && (vu ? (e = J, Cp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Hh(e)) : Cp(J, n.stateNode));
|
|
7095
7095
|
break;
|
|
7096
7096
|
case 4:
|
|
7097
|
-
r =
|
|
7097
|
+
r = J, i = vu, J = n.stateNode.containerInfo, vu = !0, yu(e, t, n), J = r, vu = i;
|
|
7098
7098
|
break;
|
|
7099
7099
|
case 0:
|
|
7100
7100
|
case 11:
|
|
7101
7101
|
case 14:
|
|
7102
7102
|
case 15:
|
|
7103
|
-
xl(2, n, t),
|
|
7103
|
+
xl(2, n, t), nu || xl(4, n, t), yu(e, t, n);
|
|
7104
7104
|
break;
|
|
7105
7105
|
case 1:
|
|
7106
|
-
|
|
7106
|
+
nu || (Tl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Cl(n, t, r)), yu(e, t, n);
|
|
7107
7107
|
break;
|
|
7108
7108
|
case 21:
|
|
7109
|
-
|
|
7109
|
+
yu(e, t, n);
|
|
7110
7110
|
break;
|
|
7111
7111
|
case 22:
|
|
7112
|
-
|
|
7112
|
+
nu = (r = nu) || n.memoizedState !== null, yu(e, t, n), nu = r;
|
|
7113
7113
|
break;
|
|
7114
7114
|
case 30:
|
|
7115
|
-
Tl(n, t),
|
|
7115
|
+
Tl(n, t), yu(e, t, n);
|
|
7116
7116
|
break;
|
|
7117
7117
|
case 7:
|
|
7118
|
-
|
|
7118
|
+
nu || Tl(n, t), yu(e, t, n);
|
|
7119
7119
|
break;
|
|
7120
|
-
default:
|
|
7120
|
+
default: yu(e, t, n);
|
|
7121
7121
|
}
|
|
7122
7122
|
}
|
|
7123
|
-
function
|
|
7123
|
+
function xu(e, t) {
|
|
7124
7124
|
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
|
|
7125
7125
|
e = e.dehydrated;
|
|
7126
7126
|
try {
|
|
@@ -7130,26 +7130,26 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7130
7130
|
}
|
|
7131
7131
|
}
|
|
7132
7132
|
}
|
|
7133
|
-
function
|
|
7133
|
+
function Su(e, t) {
|
|
7134
7134
|
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
|
|
7135
7135
|
Hh(e);
|
|
7136
7136
|
} catch (e) {
|
|
7137
7137
|
ff(t, t.return, e);
|
|
7138
7138
|
}
|
|
7139
7139
|
}
|
|
7140
|
-
function
|
|
7140
|
+
function Cu(e) {
|
|
7141
7141
|
switch (e.tag) {
|
|
7142
7142
|
case 31:
|
|
7143
7143
|
case 13:
|
|
7144
7144
|
case 19:
|
|
7145
7145
|
var t = e.stateNode;
|
|
7146
|
-
return t === null && (t = e.stateNode = new
|
|
7147
|
-
case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new
|
|
7146
|
+
return t === null && (t = e.stateNode = new au()), t;
|
|
7147
|
+
case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new au()), t;
|
|
7148
7148
|
default: throw Error(i(435, e.tag));
|
|
7149
7149
|
}
|
|
7150
7150
|
}
|
|
7151
|
-
function
|
|
7152
|
-
var n =
|
|
7151
|
+
function wu(e, t) {
|
|
7152
|
+
var n = Cu(e);
|
|
7153
7153
|
t.forEach(function(t) {
|
|
7154
7154
|
if (!n.has(t)) {
|
|
7155
7155
|
n.add(t);
|
|
@@ -7158,7 +7158,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7158
7158
|
}
|
|
7159
7159
|
});
|
|
7160
7160
|
}
|
|
7161
|
-
function
|
|
7161
|
+
function Tu(e, t, n) {
|
|
7162
7162
|
var r = t.deletions;
|
|
7163
7163
|
if (r !== null) for (var a = 0; a < r.length; a++) {
|
|
7164
7164
|
var o = r[a], s = e, c = t, l = c;
|
|
@@ -7166,27 +7166,27 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7166
7166
|
switch (l.tag) {
|
|
7167
7167
|
case 27:
|
|
7168
7168
|
if (Sp(l.type)) {
|
|
7169
|
-
|
|
7169
|
+
J = l.stateNode, vu = !1;
|
|
7170
7170
|
break a;
|
|
7171
7171
|
}
|
|
7172
7172
|
break;
|
|
7173
7173
|
case 5:
|
|
7174
|
-
|
|
7174
|
+
J = l.stateNode, vu = !1;
|
|
7175
7175
|
break a;
|
|
7176
7176
|
case 3:
|
|
7177
7177
|
case 4:
|
|
7178
|
-
|
|
7178
|
+
J = l.stateNode.containerInfo, vu = !0;
|
|
7179
7179
|
break a;
|
|
7180
7180
|
}
|
|
7181
7181
|
l = l.return;
|
|
7182
7182
|
}
|
|
7183
|
-
if (
|
|
7184
|
-
|
|
7183
|
+
if (J === null) throw Error(i(160));
|
|
7184
|
+
bu(s, c, o), J = null, vu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
|
|
7185
7185
|
}
|
|
7186
|
-
if (t.subtreeFlags & 13886) for (t = t.child; t !== null;)
|
|
7186
|
+
if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Du(t, e, n), t = t.sibling;
|
|
7187
7187
|
}
|
|
7188
|
-
var
|
|
7189
|
-
function
|
|
7188
|
+
var Eu = null;
|
|
7189
|
+
function Du(e, t, n) {
|
|
7190
7190
|
var r = e.alternate, a = e.flags;
|
|
7191
7191
|
switch (e.tag) {
|
|
7192
7192
|
case 0:
|
|
@@ -7197,13 +7197,13 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7197
7197
|
var s = r[o];
|
|
7198
7198
|
s.ref.impl = s.nextImpl;
|
|
7199
7199
|
}
|
|
7200
|
-
|
|
7200
|
+
Tu(t, e, n), Ou(e), a & 4 && (xl(3, e, e.return), bl(3, e), xl(5, e, e.return));
|
|
7201
7201
|
break;
|
|
7202
7202
|
case 1:
|
|
7203
|
-
|
|
7203
|
+
Tu(t, e, n), Ou(e), a & 512 && (nu || r === null || Tl(r, r.return)), a & 64 && tu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
|
|
7204
7204
|
break;
|
|
7205
7205
|
case 26:
|
|
7206
|
-
if (o =
|
|
7206
|
+
if (o = Eu, Tu(t, e, n), Ou(e), a & 512 && (nu || r === null || Tl(r, r.return)), a & 4) {
|
|
7207
7207
|
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
|
|
7208
7208
|
if (n === null) {
|
|
7209
7209
|
if (e.stateNode === null) {
|
|
@@ -7213,7 +7213,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7213
7213
|
t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;
|
|
7214
7214
|
b: switch (t) {
|
|
7215
7215
|
case "title":
|
|
7216
|
-
r = a.getElementsByTagName("title")[0], (!r || r[Mt] || r[
|
|
7216
|
+
r = a.getElementsByTagName("title")[0], (!r || r[Mt] || r[Tt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), np(r, t, n), r[Tt] = e, zt(r), t = r;
|
|
7217
7217
|
break a;
|
|
7218
7218
|
case "link":
|
|
7219
7219
|
if (o = Gm("link", "href", a).get(t + (n.href || ""))) {
|
|
@@ -7235,20 +7235,20 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7235
7235
|
break;
|
|
7236
7236
|
default: throw Error(i(468, t));
|
|
7237
7237
|
}
|
|
7238
|
-
r[
|
|
7238
|
+
r[Tt] = e, zt(r), t = r;
|
|
7239
7239
|
}
|
|
7240
7240
|
e.stateNode = t;
|
|
7241
7241
|
}
|
|
7242
7242
|
} else tu || Km(o, e.type, e.stateNode);
|
|
7243
7243
|
} else e.stateNode = Bm(o, n, e.memoizedProps);
|
|
7244
|
-
} else a === n ? n === null && e.stateNode !== null && Ml(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null ||
|
|
7244
|
+
} else a === n ? n === null && e.stateNode !== null && Ml(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || nu || t.parentNode.removeChild(t)) : a.count--, n === null ? tu || Km(o, e.type, e.stateNode) : Bm(o, n, e.memoizedProps));
|
|
7245
7245
|
}
|
|
7246
7246
|
break;
|
|
7247
7247
|
case 27:
|
|
7248
|
-
|
|
7248
|
+
Tu(t, e, n), Ou(e), a & 512 && (nu || r === null || Tl(r, r.return)), r !== null && a & 4 && Ml(e, e.memoizedProps, r.memoizedProps);
|
|
7249
7249
|
break;
|
|
7250
7250
|
case 5:
|
|
7251
|
-
if (o =
|
|
7251
|
+
if (o = ru, ru = !1, Tu(t, e, n), ru = o, Ou(e), a & 512 && (nu || r === null || Tl(r, r.return)), e.flags & 32) {
|
|
7252
7252
|
t = e.stateNode;
|
|
7253
7253
|
try {
|
|
7254
7254
|
fn(t, ""), F = !0;
|
|
@@ -7256,10 +7256,10 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7256
7256
|
ff(e, e.return, t);
|
|
7257
7257
|
}
|
|
7258
7258
|
}
|
|
7259
|
-
a & 4 && e.stateNode != null && (t = e.memoizedProps, Ml(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (
|
|
7259
|
+
a & 4 && e.stateNode != null && (t = e.memoizedProps, Ml(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (iu = !0);
|
|
7260
7260
|
break;
|
|
7261
7261
|
case 6:
|
|
7262
|
-
if (
|
|
7262
|
+
if (Tu(t, e, n), Ou(e), a & 4) {
|
|
7263
7263
|
if (e.stateNode === null) throw Error(i(162));
|
|
7264
7264
|
t = e.memoizedProps, n = e.stateNode;
|
|
7265
7265
|
try {
|
|
@@ -7270,42 +7270,42 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7270
7270
|
}
|
|
7271
7271
|
break;
|
|
7272
7272
|
case 3:
|
|
7273
|
-
if (F = !1, Wm = null, o =
|
|
7273
|
+
if (F = !1, Wm = null, o = Eu, Eu = bm(t.containerInfo), Tu(t, e, n), Eu = o, Ou(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
|
|
7274
7274
|
Hh(t.containerInfo);
|
|
7275
7275
|
} catch (t) {
|
|
7276
7276
|
ff(e, e.return, t);
|
|
7277
7277
|
}
|
|
7278
|
-
|
|
7278
|
+
iu && (iu = !1, ku(e)), F = !1;
|
|
7279
7279
|
break;
|
|
7280
7280
|
case 4:
|
|
7281
|
-
a =
|
|
7281
|
+
a = ru, ru = tu, r = Yt(), o = Eu, Eu = bm(e.stateNode.containerInfo), Tu(t, e, n), Ou(e), Eu = o, F && cu && (lu = !0), F = r, ru = a;
|
|
7282
7282
|
break;
|
|
7283
7283
|
case 12:
|
|
7284
|
-
|
|
7284
|
+
Tu(t, e, n), Ou(e);
|
|
7285
7285
|
break;
|
|
7286
7286
|
case 31:
|
|
7287
|
-
|
|
7287
|
+
Tu(t, e, n), Ou(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
|
|
7288
7288
|
break;
|
|
7289
7289
|
case 13:
|
|
7290
|
-
|
|
7290
|
+
Tu(t, e, n), Ou(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (pd = We()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
|
|
7291
7291
|
break;
|
|
7292
7292
|
case 22:
|
|
7293
7293
|
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
|
|
7294
|
-
var c = tu, l =
|
|
7295
|
-
tu = c || o,
|
|
7294
|
+
var c = tu, l = nu, u = ru;
|
|
7295
|
+
tu = c || o, ru = u || o, nu = l || s, Tu(t, e, n), nu = l, ru = u, tu = c, Ou(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || tu || nu || (t = s || nu, n = tu, r = nu, tu = o || tu, nu = t, Nu(e, 2), tu = n, nu = r), !o && ru || mu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, wu(e, n))));
|
|
7296
7296
|
break;
|
|
7297
7297
|
case 19:
|
|
7298
|
-
|
|
7298
|
+
Tu(t, e, n), Ou(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
|
|
7299
7299
|
break;
|
|
7300
7300
|
case 30:
|
|
7301
|
-
a & 512 && (
|
|
7301
|
+
a & 512 && (nu || r === null || Tl(r, r.return)), a = Yt(), o = cu, s = (n & 335544064) === n, c = e.memoizedProps, cu = s && vi(c.default, c.update) !== "none", Tu(t, e, n), Ou(e), s && r !== null && F && (e.flags |= 4), cu = o, F = a;
|
|
7302
7302
|
break;
|
|
7303
7303
|
case 21: break;
|
|
7304
|
-
case 7: a & 512 && (
|
|
7305
|
-
default:
|
|
7304
|
+
case 7: a & 512 && (nu || r === null || Tl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
|
|
7305
|
+
default: Tu(t, e, n), Ou(e);
|
|
7306
7306
|
}
|
|
7307
7307
|
}
|
|
7308
|
-
function
|
|
7308
|
+
function Ou(e) {
|
|
7309
7309
|
var t = e.flags;
|
|
7310
7310
|
if (t & 2) {
|
|
7311
7311
|
try {
|
|
@@ -7350,22 +7350,22 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7350
7350
|
}
|
|
7351
7351
|
t & 4096 && (e.flags &= -4097);
|
|
7352
7352
|
}
|
|
7353
|
-
function
|
|
7353
|
+
function ku(e) {
|
|
7354
7354
|
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
|
|
7355
7355
|
var t = e;
|
|
7356
|
-
|
|
7356
|
+
ku(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, gh = !0, t.reset(), gh = !1), e = e.sibling;
|
|
7357
7357
|
}
|
|
7358
7358
|
}
|
|
7359
|
-
function
|
|
7360
|
-
if (t.subtreeFlags & 9270) for (t = t.child; t !== null;)
|
|
7359
|
+
function Au(e, t) {
|
|
7360
|
+
if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) ju(t, e), t = t.sibling;
|
|
7361
7361
|
else eu(t, !1);
|
|
7362
7362
|
}
|
|
7363
|
-
function
|
|
7363
|
+
function ju(e, t) {
|
|
7364
7364
|
var n = e.alternate;
|
|
7365
7365
|
if (n === null) Kl(e, !1);
|
|
7366
7366
|
else switch (e.tag) {
|
|
7367
7367
|
case 3:
|
|
7368
|
-
if (
|
|
7368
|
+
if (uu = su = !1, Hl(), Au(t, e), !su && !lu) {
|
|
7369
7369
|
if (e = Vl, e !== null) for (var r = 0; r < e.length; r += 3) {
|
|
7370
7370
|
n = e[r];
|
|
7371
7371
|
var i = e[r + 1];
|
|
@@ -7392,33 +7392,33 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7392
7392
|
duration: 0,
|
|
7393
7393
|
fill: "forwards",
|
|
7394
7394
|
pseudoElement: "::view-transition"
|
|
7395
|
-
})),
|
|
7395
|
+
})), uu = !0;
|
|
7396
7396
|
}
|
|
7397
7397
|
Vl = null;
|
|
7398
7398
|
break;
|
|
7399
7399
|
case 5:
|
|
7400
|
-
|
|
7400
|
+
Au(t, e);
|
|
7401
7401
|
break;
|
|
7402
7402
|
case 4:
|
|
7403
|
-
r =
|
|
7403
|
+
r = su, su = !1, Au(t, e), su && (lu = !0), su = r;
|
|
7404
7404
|
break;
|
|
7405
7405
|
case 22:
|
|
7406
|
-
e.memoizedState === null && (n.memoizedState === null ?
|
|
7406
|
+
e.memoizedState === null && (n.memoizedState === null ? Au(t, e) : Kl(e, !1));
|
|
7407
7407
|
break;
|
|
7408
7408
|
case 30:
|
|
7409
|
-
r =
|
|
7409
|
+
r = su, i = Hl(), su = !1, Au(t, e), su && (e.flags |= 4);
|
|
7410
7410
|
var a = e.memoizedProps, o = e.stateNode;
|
|
7411
7411
|
t = gi(a, o), o = gi(n.memoizedProps, o);
|
|
7412
7412
|
var s = vi(a.default, a.update);
|
|
7413
|
-
s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Ul = 0, t = $l(e, n, t, o, s, a, !0), Ul !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (jd(e, e.memoizedProps.onUpdate), Vl = i) : i !== null && (i.push.apply(i, Vl), Vl = i),
|
|
7413
|
+
s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Ul = 0, t = $l(e, n, t, o, s, a, !0), Ul !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (jd(e, e.memoizedProps.onUpdate), Vl = i) : i !== null && (i.push.apply(i, Vl), Vl = i), su = e.flags & 32 ? !0 : r;
|
|
7414
7414
|
break;
|
|
7415
|
-
default:
|
|
7415
|
+
default: Au(t, e);
|
|
7416
7416
|
}
|
|
7417
7417
|
}
|
|
7418
|
-
function ju(e, t) {
|
|
7419
|
-
if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) fu(e, t.alternate, t), t = t.sibling;
|
|
7420
|
-
}
|
|
7421
7418
|
function Mu(e, t) {
|
|
7419
|
+
if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) pu(e, t.alternate, t), t = t.sibling;
|
|
7420
|
+
}
|
|
7421
|
+
function Nu(e, t) {
|
|
7422
7422
|
for (e = e.child; e !== null;) {
|
|
7423
7423
|
var n = e, r = t;
|
|
7424
7424
|
switch (n.tag) {
|
|
@@ -7426,46 +7426,46 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7426
7426
|
case 11:
|
|
7427
7427
|
case 14:
|
|
7428
7428
|
case 15:
|
|
7429
|
-
xl(4, n, n.return),
|
|
7429
|
+
xl(4, n, n.return), Nu(n, r);
|
|
7430
7430
|
break;
|
|
7431
7431
|
case 1:
|
|
7432
7432
|
Tl(n, n.return);
|
|
7433
7433
|
var i = n.stateNode;
|
|
7434
|
-
typeof i.componentWillUnmount == "function" && Cl(n, n.return, i),
|
|
7434
|
+
typeof i.componentWillUnmount == "function" && Cl(n, n.return, i), Nu(n, r);
|
|
7435
7435
|
break;
|
|
7436
7436
|
case 27: r & 2 && gm(n.stateNode, n.type, n.memoizedProps);
|
|
7437
7437
|
case 5:
|
|
7438
|
-
Tl(n, n.return), n.tag !== 5 && n.tag !== 27 || Ol(n),
|
|
7438
|
+
Tl(n, n.return), n.tag !== 5 && n.tag !== 27 || Ol(n), Nu(n, r);
|
|
7439
7439
|
break;
|
|
7440
7440
|
case 6:
|
|
7441
7441
|
Ol(n);
|
|
7442
7442
|
break;
|
|
7443
7443
|
case 26:
|
|
7444
|
-
Tl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null ||
|
|
7444
|
+
Tl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || nu || i.parentNode.removeChild(i), Nu(n, r);
|
|
7445
7445
|
break;
|
|
7446
7446
|
case 22:
|
|
7447
|
-
n.memoizedState === null &&
|
|
7447
|
+
n.memoizedState === null && Nu(n, r);
|
|
7448
7448
|
break;
|
|
7449
7449
|
case 30:
|
|
7450
|
-
Tl(n, n.return),
|
|
7450
|
+
Tl(n, n.return), Nu(n, r);
|
|
7451
7451
|
break;
|
|
7452
7452
|
case 7: Tl(n, n.return);
|
|
7453
|
-
default:
|
|
7453
|
+
default: Nu(n, r);
|
|
7454
7454
|
}
|
|
7455
7455
|
e = e.sibling;
|
|
7456
7456
|
}
|
|
7457
7457
|
}
|
|
7458
|
-
function
|
|
7458
|
+
function Pu(e, t, n) {
|
|
7459
7459
|
for (n = t.subtreeFlags & 8772 ? n : n & -2, t = t.child; t !== null;) {
|
|
7460
7460
|
var r = t.alternate, i = e, a = t, o = a.flags, s = !!(n & 1);
|
|
7461
7461
|
switch (a.tag) {
|
|
7462
7462
|
case 0:
|
|
7463
7463
|
case 11:
|
|
7464
7464
|
case 15:
|
|
7465
|
-
|
|
7465
|
+
Pu(i, a, n), bl(4, a);
|
|
7466
7466
|
break;
|
|
7467
7467
|
case 1:
|
|
7468
|
-
if (
|
|
7468
|
+
if (Pu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
|
|
7469
7469
|
i.componentDidMount();
|
|
7470
7470
|
} catch (e) {
|
|
7471
7471
|
ff(r, r.return, e);
|
|
@@ -7483,48 +7483,48 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7483
7483
|
break;
|
|
7484
7484
|
case 27: n & 2 && Ll(a);
|
|
7485
7485
|
case 5:
|
|
7486
|
-
a.tag !== 5 && a.tag !== 27 || Dl(a),
|
|
7486
|
+
a.tag !== 5 && a.tag !== 27 || Dl(a), Pu(i, a, n), s && r === null && o & 4 && jl(a), wl(a, a.return);
|
|
7487
7487
|
break;
|
|
7488
7488
|
case 6:
|
|
7489
7489
|
Dl(a);
|
|
7490
7490
|
break;
|
|
7491
7491
|
case 26:
|
|
7492
|
-
c = a.stateNode, a.memoizedState !== null || c === null || tu || Km(bm(c.ownerDocument), a.type, c),
|
|
7492
|
+
c = a.stateNode, a.memoizedState !== null || c === null || tu || Km(bm(c.ownerDocument), a.type, c), Pu(i, a, n), s && r === null && o & 4 && jl(a), wl(a, a.return);
|
|
7493
7493
|
break;
|
|
7494
7494
|
case 12:
|
|
7495
|
-
|
|
7495
|
+
Pu(i, a, n);
|
|
7496
7496
|
break;
|
|
7497
7497
|
case 31:
|
|
7498
|
-
|
|
7498
|
+
Pu(i, a, n), s && o & 4 && xu(i, a);
|
|
7499
7499
|
break;
|
|
7500
7500
|
case 13:
|
|
7501
|
-
|
|
7501
|
+
Pu(i, a, n), s && o & 4 && Su(i, a);
|
|
7502
7502
|
break;
|
|
7503
7503
|
case 22:
|
|
7504
|
-
a.memoizedState === null &&
|
|
7504
|
+
a.memoizedState === null && Pu(i, a, n), wl(a, a.return);
|
|
7505
7505
|
break;
|
|
7506
7506
|
case 30:
|
|
7507
|
-
|
|
7507
|
+
Pu(i, a, n), wl(a, a.return);
|
|
7508
7508
|
break;
|
|
7509
7509
|
case 7: wl(a, a.return);
|
|
7510
|
-
default:
|
|
7510
|
+
default: Pu(i, a, n);
|
|
7511
7511
|
}
|
|
7512
7512
|
t = t.sibling;
|
|
7513
7513
|
}
|
|
7514
7514
|
}
|
|
7515
|
-
function
|
|
7515
|
+
function Fu(e, t) {
|
|
7516
7516
|
var n = null;
|
|
7517
7517
|
e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && ja(n));
|
|
7518
7518
|
}
|
|
7519
|
-
function
|
|
7519
|
+
function Iu(e, t) {
|
|
7520
7520
|
e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && ja(e));
|
|
7521
7521
|
}
|
|
7522
|
-
function
|
|
7522
|
+
function Lu(e, t, n, r) {
|
|
7523
7523
|
var i = (n & 335544064) === n;
|
|
7524
|
-
if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;)
|
|
7524
|
+
if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Ru(e, t, n, r), t = t.sibling;
|
|
7525
7525
|
else i && Ql(t);
|
|
7526
7526
|
}
|
|
7527
|
-
function
|
|
7527
|
+
function Ru(e, t, n, r) {
|
|
7528
7528
|
var i = (n & 335544064) === n;
|
|
7529
7529
|
i && t.alternate === null && t.return !== null && t.return.alternate !== null && Zl(t);
|
|
7530
7530
|
var a = t.flags;
|
|
@@ -7532,112 +7532,112 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7532
7532
|
case 0:
|
|
7533
7533
|
case 11:
|
|
7534
7534
|
case 15:
|
|
7535
|
-
|
|
7535
|
+
Lu(e, t, n, r), a & 2048 && bl(9, t);
|
|
7536
7536
|
break;
|
|
7537
7537
|
case 1:
|
|
7538
|
-
|
|
7538
|
+
Lu(e, t, n, r);
|
|
7539
7539
|
break;
|
|
7540
7540
|
case 3:
|
|
7541
|
-
|
|
7541
|
+
Lu(e, t, n, r), i && uu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && ja(a)));
|
|
7542
7542
|
break;
|
|
7543
7543
|
case 12:
|
|
7544
7544
|
if (a & 2048) {
|
|
7545
|
-
|
|
7545
|
+
Lu(e, t, n, r), a = t.stateNode;
|
|
7546
7546
|
try {
|
|
7547
7547
|
var o = t.memoizedProps, s = o.id, c = o.onPostCommit;
|
|
7548
7548
|
typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);
|
|
7549
7549
|
} catch (e) {
|
|
7550
7550
|
ff(t, t.return, e);
|
|
7551
7551
|
}
|
|
7552
|
-
} else
|
|
7552
|
+
} else Lu(e, t, n, r);
|
|
7553
7553
|
break;
|
|
7554
7554
|
case 31:
|
|
7555
|
-
|
|
7555
|
+
Lu(e, t, n, r);
|
|
7556
7556
|
break;
|
|
7557
7557
|
case 13:
|
|
7558
|
-
|
|
7558
|
+
Lu(e, t, n, r);
|
|
7559
7559
|
break;
|
|
7560
7560
|
case 23: break;
|
|
7561
7561
|
case 22:
|
|
7562
|
-
o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Zl(t), o._visibility & 2 ?
|
|
7562
|
+
o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Zl(t), o._visibility & 2 ? Lu(e, t, n, r) : (o._visibility |= 2, zu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Zl(s), o._visibility & 2 ? Lu(e, t, n, r) : Bu(e, t)), a & 2048 && Fu(s, t);
|
|
7563
7563
|
break;
|
|
7564
7564
|
case 24:
|
|
7565
|
-
|
|
7565
|
+
Lu(e, t, n, r), a & 2048 && Iu(t.alternate, t);
|
|
7566
7566
|
break;
|
|
7567
7567
|
case 30:
|
|
7568
|
-
i && (a = t.alternate, a !== null && (q(a.child, !0), q(t.child, !0))),
|
|
7568
|
+
i && (a = t.alternate, a !== null && (q(a.child, !0), q(t.child, !0))), Lu(e, t, n, r);
|
|
7569
7569
|
break;
|
|
7570
|
-
default:
|
|
7570
|
+
default: Lu(e, t, n, r);
|
|
7571
7571
|
}
|
|
7572
7572
|
}
|
|
7573
|
-
function
|
|
7573
|
+
function zu(e, t, n, r, i) {
|
|
7574
7574
|
for (i &&= !!(t.subtreeFlags & 10256) || !1, t = t.child; t !== null;) {
|
|
7575
7575
|
var a = e, o = t, s = n, c = r, l = o.flags;
|
|
7576
7576
|
switch (o.tag) {
|
|
7577
7577
|
case 0:
|
|
7578
7578
|
case 11:
|
|
7579
7579
|
case 15:
|
|
7580
|
-
|
|
7580
|
+
zu(a, o, s, c, i), bl(8, o);
|
|
7581
7581
|
break;
|
|
7582
7582
|
case 23: break;
|
|
7583
7583
|
case 22:
|
|
7584
7584
|
var u = o.stateNode;
|
|
7585
|
-
o.memoizedState === null ? (u._visibility |= 2,
|
|
7585
|
+
o.memoizedState === null ? (u._visibility |= 2, zu(a, o, s, c, i)) : u._visibility & 2 ? zu(a, o, s, c, i) : Bu(a, o), i && l & 2048 && Fu(o.alternate, o);
|
|
7586
7586
|
break;
|
|
7587
7587
|
case 24:
|
|
7588
|
-
|
|
7588
|
+
zu(a, o, s, c, i), i && l & 2048 && Iu(o.alternate, o);
|
|
7589
7589
|
break;
|
|
7590
|
-
default:
|
|
7590
|
+
default: zu(a, o, s, c, i);
|
|
7591
7591
|
}
|
|
7592
7592
|
t = t.sibling;
|
|
7593
7593
|
}
|
|
7594
7594
|
}
|
|
7595
|
-
function
|
|
7595
|
+
function Bu(e, t) {
|
|
7596
7596
|
if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {
|
|
7597
7597
|
var n = e, r = t, i = r.flags;
|
|
7598
7598
|
switch (r.tag) {
|
|
7599
7599
|
case 22:
|
|
7600
|
-
|
|
7600
|
+
Bu(n, r), i & 2048 && Fu(r.alternate, r);
|
|
7601
7601
|
break;
|
|
7602
7602
|
case 24:
|
|
7603
|
-
|
|
7603
|
+
Bu(n, r), i & 2048 && Iu(r.alternate, r);
|
|
7604
7604
|
break;
|
|
7605
|
-
default:
|
|
7605
|
+
default: Bu(n, r);
|
|
7606
7606
|
}
|
|
7607
7607
|
t = t.sibling;
|
|
7608
7608
|
}
|
|
7609
7609
|
}
|
|
7610
|
-
var
|
|
7611
|
-
function Vu(e, t, n) {
|
|
7612
|
-
if (e.subtreeFlags & Bu) for (e = e.child; e !== null;) Hu(e, t, n), e = e.sibling;
|
|
7613
|
-
}
|
|
7610
|
+
var Vu = 8192;
|
|
7614
7611
|
function Hu(e, t, n) {
|
|
7612
|
+
if (e.subtreeFlags & Vu) for (e = e.child; e !== null;) Uu(e, t, n), e = e.sibling;
|
|
7613
|
+
}
|
|
7614
|
+
function Uu(e, t, n) {
|
|
7615
7615
|
switch (e.tag) {
|
|
7616
7616
|
case 26:
|
|
7617
|
-
|
|
7617
|
+
Hu(e, t, n), e.flags & Vu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && Zm(n, e)) : Qm(n, Eu, e.memoizedState, e.memoizedProps));
|
|
7618
7618
|
break;
|
|
7619
7619
|
case 5:
|
|
7620
|
-
|
|
7620
|
+
Hu(e, t, n), e.flags & Vu && (e = e.stateNode, (t & 335544128) === t && Zm(n, e));
|
|
7621
7621
|
break;
|
|
7622
7622
|
case 3:
|
|
7623
7623
|
case 4:
|
|
7624
|
-
var r =
|
|
7625
|
-
|
|
7624
|
+
var r = Eu;
|
|
7625
|
+
Eu = bm(e.stateNode.containerInfo), Hu(e, t, n), Eu = r;
|
|
7626
7626
|
break;
|
|
7627
7627
|
case 22:
|
|
7628
|
-
e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r =
|
|
7628
|
+
e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Vu, Vu = 16777216, Hu(e, t, n), Vu = r) : Hu(e, t, n));
|
|
7629
7629
|
break;
|
|
7630
7630
|
case 30:
|
|
7631
|
-
if ((e.flags &
|
|
7631
|
+
if ((e.flags & Vu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
|
|
7632
7632
|
var i = e.stateNode;
|
|
7633
7633
|
i.paired = null, zl === null && (zl = /* @__PURE__ */ new Map()), zl.set(r, i);
|
|
7634
7634
|
}
|
|
7635
|
-
|
|
7635
|
+
Hu(e, t, n);
|
|
7636
7636
|
break;
|
|
7637
|
-
default:
|
|
7637
|
+
default: Hu(e, t, n);
|
|
7638
7638
|
}
|
|
7639
7639
|
}
|
|
7640
|
-
function
|
|
7640
|
+
function Wu(e) {
|
|
7641
7641
|
var t = e.alternate;
|
|
7642
7642
|
if (t !== null && (e = t.child, e !== null)) {
|
|
7643
7643
|
t.child = null;
|
|
@@ -7646,64 +7646,64 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7646
7646
|
while (e !== null);
|
|
7647
7647
|
}
|
|
7648
7648
|
}
|
|
7649
|
-
function
|
|
7649
|
+
function Gu(e) {
|
|
7650
7650
|
var t = e.deletions;
|
|
7651
7651
|
if (e.flags & 16) {
|
|
7652
7652
|
if (t !== null) for (var n = 0; n < t.length; n++) {
|
|
7653
7653
|
var r = t[n];
|
|
7654
|
-
|
|
7654
|
+
ou = r, Ju(r, e);
|
|
7655
7655
|
}
|
|
7656
|
-
|
|
7656
|
+
Wu(e);
|
|
7657
7657
|
}
|
|
7658
|
-
if (e.subtreeFlags & 10256) for (e = e.child; e !== null;)
|
|
7658
|
+
if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Ku(e), e = e.sibling;
|
|
7659
7659
|
}
|
|
7660
|
-
function
|
|
7660
|
+
function Ku(e) {
|
|
7661
7661
|
switch (e.tag) {
|
|
7662
7662
|
case 0:
|
|
7663
7663
|
case 11:
|
|
7664
7664
|
case 15:
|
|
7665
|
-
|
|
7665
|
+
Gu(e), e.flags & 2048 && xl(9, e, e.return);
|
|
7666
7666
|
break;
|
|
7667
7667
|
case 3:
|
|
7668
|
-
|
|
7668
|
+
Gu(e);
|
|
7669
7669
|
break;
|
|
7670
7670
|
case 12:
|
|
7671
|
-
|
|
7671
|
+
Gu(e);
|
|
7672
7672
|
break;
|
|
7673
7673
|
case 22:
|
|
7674
7674
|
var t = e.stateNode;
|
|
7675
|
-
e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3,
|
|
7675
|
+
e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, qu(e)) : Gu(e);
|
|
7676
7676
|
break;
|
|
7677
|
-
default:
|
|
7677
|
+
default: Gu(e);
|
|
7678
7678
|
}
|
|
7679
7679
|
}
|
|
7680
|
-
function
|
|
7680
|
+
function qu(e) {
|
|
7681
7681
|
var t = e.deletions;
|
|
7682
7682
|
if (e.flags & 16) {
|
|
7683
7683
|
if (t !== null) for (var n = 0; n < t.length; n++) {
|
|
7684
7684
|
var r = t[n];
|
|
7685
|
-
|
|
7685
|
+
ou = r, Ju(r, e);
|
|
7686
7686
|
}
|
|
7687
|
-
|
|
7687
|
+
Wu(e);
|
|
7688
7688
|
}
|
|
7689
7689
|
for (e = e.child; e !== null;) {
|
|
7690
7690
|
switch (t = e, t.tag) {
|
|
7691
7691
|
case 0:
|
|
7692
7692
|
case 11:
|
|
7693
7693
|
case 15:
|
|
7694
|
-
xl(8, t, t.return),
|
|
7694
|
+
xl(8, t, t.return), qu(t);
|
|
7695
7695
|
break;
|
|
7696
7696
|
case 22:
|
|
7697
|
-
n = t.stateNode, n._visibility & 2 && (n._visibility &= -3,
|
|
7697
|
+
n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, qu(t));
|
|
7698
7698
|
break;
|
|
7699
|
-
default:
|
|
7699
|
+
default: qu(t);
|
|
7700
7700
|
}
|
|
7701
7701
|
e = e.sibling;
|
|
7702
7702
|
}
|
|
7703
7703
|
}
|
|
7704
|
-
function
|
|
7705
|
-
for (;
|
|
7706
|
-
var n =
|
|
7704
|
+
function Ju(e, t) {
|
|
7705
|
+
for (; ou !== null;) {
|
|
7706
|
+
var n = ou;
|
|
7707
7707
|
switch (n.tag) {
|
|
7708
7708
|
case 0:
|
|
7709
7709
|
case 11:
|
|
@@ -7719,23 +7719,23 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7719
7719
|
break;
|
|
7720
7720
|
case 24: ja(n.memoizedState.cache);
|
|
7721
7721
|
}
|
|
7722
|
-
if (r = n.child, r !== null) r.return = n,
|
|
7723
|
-
else a: for (n = e;
|
|
7724
|
-
r =
|
|
7722
|
+
if (r = n.child, r !== null) r.return = n, ou = r;
|
|
7723
|
+
else a: for (n = e; ou !== null;) {
|
|
7724
|
+
r = ou;
|
|
7725
7725
|
var i = r.sibling, a = r.return;
|
|
7726
|
-
if (
|
|
7727
|
-
|
|
7726
|
+
if (_u(r), r === n) {
|
|
7727
|
+
ou = null;
|
|
7728
7728
|
break a;
|
|
7729
7729
|
}
|
|
7730
7730
|
if (i !== null) {
|
|
7731
|
-
i.return = a,
|
|
7731
|
+
i.return = a, ou = i;
|
|
7732
7732
|
break a;
|
|
7733
7733
|
}
|
|
7734
|
-
|
|
7734
|
+
ou = a;
|
|
7735
7735
|
}
|
|
7736
7736
|
}
|
|
7737
7737
|
}
|
|
7738
|
-
var
|
|
7738
|
+
var Yu = {
|
|
7739
7739
|
getCacheForType: function(e) {
|
|
7740
7740
|
var t = Ca(ka), n = t.data.get(e);
|
|
7741
7741
|
return n === void 0 && (n = e(), t.data.set(e, n)), n;
|
|
@@ -7743,18 +7743,18 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7743
7743
|
cacheSignal: function() {
|
|
7744
7744
|
return Ca(ka).controller.signal;
|
|
7745
7745
|
}
|
|
7746
|
-
},
|
|
7746
|
+
}, Xu = typeof WeakMap == "function" ? WeakMap : Map, Y = 0, Zu = null, X = null, Z = 0, Qu = 0, $u = null, ed = !1, td = !1, nd = !1, rd = 0, id = 0, ad = 0, od = 0, sd = 0, cd = 0, ld = 0, ud = null, dd = null, fd = !1, pd = 0, md = 0, hd = Infinity, gd = null, _d = null, Q = 0, vd = null, yd = null, bd = 0, xd = 0, Sd = null, Cd = null, wd = null, Td = null, Ed = null, Dd = 0, Od = null;
|
|
7747
7747
|
function kd() {
|
|
7748
|
-
return
|
|
7748
|
+
return Y & 2 && Z !== 0 ? Z & -Z : A.T === null ? N() : Nf();
|
|
7749
7749
|
}
|
|
7750
7750
|
function Ad() {
|
|
7751
|
-
if (
|
|
7752
|
-
if (!(
|
|
7751
|
+
if (cd === 0) {
|
|
7752
|
+
if (!(Z & 536870912) || V) {
|
|
7753
7753
|
var e = st;
|
|
7754
|
-
st <<= 1, !(st & 3932160) && (st = 262144),
|
|
7755
|
-
} else
|
|
7754
|
+
st <<= 1, !(st & 3932160) && (st = 262144), cd = e;
|
|
7755
|
+
} else cd = 536870912;
|
|
7756
7756
|
}
|
|
7757
|
-
return e = ko.current, e !== null && (e.flags |= 32),
|
|
7757
|
+
return e = ko.current, e !== null && (e.flags |= 32), cd;
|
|
7758
7758
|
}
|
|
7759
7759
|
function jd(e, t) {
|
|
7760
7760
|
if (t != null) {
|
|
@@ -7763,14 +7763,14 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7763
7763
|
}
|
|
7764
7764
|
}
|
|
7765
7765
|
function Md(e, t, n) {
|
|
7766
|
-
(e ===
|
|
7766
|
+
(e === Zu && (Qu === 2 || Qu === 9) || e.cancelPendingCommit !== null) && (zd(e, 0), Id(e, Z, cd, !1)), _t(e, n), (!(Y & 2) || e !== Zu) && (e === Zu && (!(Y & 2) && (od |= n), id === 4 && Id(e, Z, cd, !1)), Tf(e));
|
|
7767
7767
|
}
|
|
7768
7768
|
function Nd(e, t, n) {
|
|
7769
|
-
if (
|
|
7769
|
+
if (Y & 6) throw Error(i(327));
|
|
7770
7770
|
var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || dt(e, t), a = r ? qd(e, t) : Gd(e, t, !0), o = r;
|
|
7771
7771
|
do {
|
|
7772
7772
|
if (a === 0) {
|
|
7773
|
-
|
|
7773
|
+
td && !r && Id(e, t, 0, !1);
|
|
7774
7774
|
break;
|
|
7775
7775
|
}
|
|
7776
7776
|
if (n = e.current.alternate, o && !Fd(n)) a = Gd(e, t, !1), o = !1;
|
|
@@ -7782,14 +7782,14 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7782
7782
|
t = s;
|
|
7783
7783
|
a: {
|
|
7784
7784
|
var c = e;
|
|
7785
|
-
a =
|
|
7785
|
+
a = ud;
|
|
7786
7786
|
var l = c.current.memoizedState.isDehydrated;
|
|
7787
7787
|
if (l && (zd(c, s).flags |= 256), s = Gd(c, s, !1), s !== 2 && s !== 6) {
|
|
7788
|
-
if (
|
|
7789
|
-
c.errorRecoveryDisabledLanes |= o,
|
|
7788
|
+
if (nd && !l) {
|
|
7789
|
+
c.errorRecoveryDisabledLanes |= o, od |= o, a = 4;
|
|
7790
7790
|
break a;
|
|
7791
7791
|
}
|
|
7792
|
-
o =
|
|
7792
|
+
o = dd, dd = a, o !== null && (dd === null ? dd = o : dd.push.apply(dd, o));
|
|
7793
7793
|
}
|
|
7794
7794
|
a = s;
|
|
7795
7795
|
}
|
|
@@ -7806,21 +7806,21 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7806
7806
|
case 1: throw Error(i(345));
|
|
7807
7807
|
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
|
|
7808
7808
|
case 6:
|
|
7809
|
-
Id(r, t,
|
|
7809
|
+
Id(r, t, cd, !ed);
|
|
7810
7810
|
break a;
|
|
7811
7811
|
case 2:
|
|
7812
|
-
|
|
7812
|
+
dd = null;
|
|
7813
7813
|
break;
|
|
7814
7814
|
case 3:
|
|
7815
7815
|
case 5: break;
|
|
7816
7816
|
default: throw Error(i(329));
|
|
7817
7817
|
}
|
|
7818
|
-
if ((t & 62914560) === t && (a =
|
|
7819
|
-
if (Id(r, t,
|
|
7820
|
-
bd = t, r.timeoutHandle = gp(Pd.bind(null, r, n,
|
|
7818
|
+
if ((t & 62914560) === t && (a = pd + 300 - We(), 10 < a)) {
|
|
7819
|
+
if (Id(r, t, cd, !ed), ut(r, 0, !0) !== 0) break a;
|
|
7820
|
+
bd = t, r.timeoutHandle = gp(Pd.bind(null, r, n, dd, gd, fd, t, cd, od, ld, ed, o, "Throttled", -0, 0), a);
|
|
7821
7821
|
break a;
|
|
7822
7822
|
}
|
|
7823
|
-
Pd(r, n,
|
|
7823
|
+
Pd(r, n, dd, gd, fd, t, cd, od, ld, ed, o, null, -0, 0);
|
|
7824
7824
|
}
|
|
7825
7825
|
break;
|
|
7826
7826
|
}
|
|
@@ -7839,7 +7839,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7839
7839
|
waitingForImages: !0,
|
|
7840
7840
|
waitingForViewTransition: !1,
|
|
7841
7841
|
unsuspend: bn
|
|
7842
|
-
}, zl = null,
|
|
7842
|
+
}, zl = null, Uu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = nh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? pd - We() : (a & 4194048) === a ? md - We() : 0, m = eh(d, m), m !== null) ? (bd = a, e.cancelPendingCommit = m(ef.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Id(e, a, o, !l)) : ef(e, t, a, n, r, i, o, s, c, l, u, d);
|
|
7843
7843
|
}
|
|
7844
7844
|
function Fd(e) {
|
|
7845
7845
|
for (var t = e;;) {
|
|
@@ -7866,34 +7866,34 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7866
7866
|
return !0;
|
|
7867
7867
|
}
|
|
7868
7868
|
function Id(e, t, n, r) {
|
|
7869
|
-
t = ft(e, t), t &= ~
|
|
7869
|
+
t = ft(e, t), t &= ~sd, t &= ~od, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
|
|
7870
7870
|
for (var i = t; 0 < i;) {
|
|
7871
7871
|
var a = 31 - nt(i), o = 1 << a;
|
|
7872
7872
|
r[a] = -1, i &= ~o;
|
|
7873
7873
|
}
|
|
7874
|
-
n !== 0 &&
|
|
7874
|
+
n !== 0 && yt(e, n, t);
|
|
7875
7875
|
}
|
|
7876
7876
|
function Ld() {
|
|
7877
|
-
return
|
|
7877
|
+
return Y & 6 ? !0 : (Ef(0, !1), !1);
|
|
7878
7878
|
}
|
|
7879
7879
|
function Rd() {
|
|
7880
|
-
if (
|
|
7881
|
-
if (
|
|
7882
|
-
else e =
|
|
7880
|
+
if (X !== null) {
|
|
7881
|
+
if (Qu === 0) var e = X.return;
|
|
7882
|
+
else e = X, ha = ma = null, rs(e), ro = null, io = 0, e = X;
|
|
7883
7883
|
for (; e !== null;) yl(e.alternate, e), e = e.return;
|
|
7884
|
-
|
|
7884
|
+
X = null;
|
|
7885
7885
|
}
|
|
7886
7886
|
}
|
|
7887
7887
|
function zd(e, t) {
|
|
7888
7888
|
var n = e.timeoutHandle;
|
|
7889
|
-
return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), bd = 0, Rd(),
|
|
7889
|
+
return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), bd = 0, Rd(), Zu = e, X = n = Mi(e.current, null), Z = t, Qu = 0, $u = null, ed = !1, td = dt(e, t), nd = !1, ld = cd = sd = od = ad = id = 0, dd = ud = null, fd = !1, rd = ft(e, t), Si(), n;
|
|
7890
7890
|
}
|
|
7891
7891
|
function Bd(e, t) {
|
|
7892
|
-
U = null, A.H = pc, t === qa || t === Ya ? (t = to(),
|
|
7892
|
+
U = null, A.H = pc, t === qa || t === Ya ? (t = to(), Qu = 3) : t === Ja ? (t = to(), Qu = 4) : Qu = t === jc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, $u = t, X === null && (id = 1, Tc(e, Bi(t, e.current)));
|
|
7893
7893
|
}
|
|
7894
7894
|
function Vd() {
|
|
7895
7895
|
var e = ko.current;
|
|
7896
|
-
return e === null ? !0 : (
|
|
7896
|
+
return e === null ? !0 : (Z & 4194048) === Z ? Ao === null : (Z & 62914560) === Z || Z & 536870912 ? e === Ao : !1;
|
|
7897
7897
|
}
|
|
7898
7898
|
function Hd() {
|
|
7899
7899
|
var e = A.H;
|
|
@@ -7901,22 +7901,22 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7901
7901
|
}
|
|
7902
7902
|
function Ud() {
|
|
7903
7903
|
var e = A.A;
|
|
7904
|
-
return A.A =
|
|
7904
|
+
return A.A = Yu, e;
|
|
7905
7905
|
}
|
|
7906
7906
|
function Wd() {
|
|
7907
|
-
|
|
7907
|
+
id = 4, ed || (Z & 4194048) !== Z && ko.current !== null || (td = !0), !(ad & 134217727) && !(od & 134217727) || Zu === null || Id(Zu, Z, cd, !1);
|
|
7908
7908
|
}
|
|
7909
7909
|
function Gd(e, t, n) {
|
|
7910
|
-
var r =
|
|
7911
|
-
|
|
7910
|
+
var r = Y;
|
|
7911
|
+
Y |= 2;
|
|
7912
7912
|
var i = Hd(), a = Ud();
|
|
7913
|
-
(
|
|
7914
|
-
var o =
|
|
7913
|
+
(Zu !== e || Z !== t) && (gd = null, zd(e, t)), t = !1;
|
|
7914
|
+
var o = id;
|
|
7915
7915
|
a: do
|
|
7916
7916
|
try {
|
|
7917
|
-
if (
|
|
7918
|
-
var s =
|
|
7919
|
-
switch (
|
|
7917
|
+
if (Qu !== 0 && X !== null) {
|
|
7918
|
+
var s = X, c = $u;
|
|
7919
|
+
switch (Qu) {
|
|
7920
7920
|
case 8:
|
|
7921
7921
|
Rd(), o = 6;
|
|
7922
7922
|
break a;
|
|
@@ -7925,84 +7925,84 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
7925
7925
|
case 9:
|
|
7926
7926
|
case 6:
|
|
7927
7927
|
ko.current === null && (t = !0);
|
|
7928
|
-
var l =
|
|
7929
|
-
if (
|
|
7928
|
+
var l = Qu;
|
|
7929
|
+
if (Qu = 0, $u = null, Zd(e, s, c, l), n && td) {
|
|
7930
7930
|
o = 0;
|
|
7931
7931
|
break a;
|
|
7932
7932
|
}
|
|
7933
7933
|
break;
|
|
7934
|
-
default: l =
|
|
7934
|
+
default: l = Qu, Qu = 0, $u = null, Zd(e, s, c, l);
|
|
7935
7935
|
}
|
|
7936
7936
|
}
|
|
7937
|
-
Kd(), o =
|
|
7937
|
+
Kd(), o = id;
|
|
7938
7938
|
break;
|
|
7939
7939
|
} catch (t) {
|
|
7940
7940
|
Bd(e, t);
|
|
7941
7941
|
}
|
|
7942
7942
|
while (1);
|
|
7943
|
-
return t && e.shellSuspendCounter++, ha = ma = null,
|
|
7943
|
+
return t && e.shellSuspendCounter++, ha = ma = null, Y = r, A.H = i, A.A = a, X === null && (Zu = null, Z = 0, Si()), o;
|
|
7944
7944
|
}
|
|
7945
7945
|
function Kd() {
|
|
7946
|
-
for (;
|
|
7946
|
+
for (; X !== null;) Yd(X);
|
|
7947
7947
|
}
|
|
7948
7948
|
function qd(e, t) {
|
|
7949
|
-
var n =
|
|
7950
|
-
|
|
7949
|
+
var n = Y;
|
|
7950
|
+
Y |= 2;
|
|
7951
7951
|
var r = Hd(), a = Ud();
|
|
7952
|
-
|
|
7952
|
+
Zu !== e || Z !== t ? (gd = null, hd = We() + 500, zd(e, t)) : td = dt(e, t);
|
|
7953
7953
|
a: do
|
|
7954
7954
|
try {
|
|
7955
|
-
if (
|
|
7956
|
-
t =
|
|
7957
|
-
var o =
|
|
7958
|
-
b: switch (
|
|
7955
|
+
if (Qu !== 0 && X !== null) {
|
|
7956
|
+
t = X;
|
|
7957
|
+
var o = $u;
|
|
7958
|
+
b: switch (Qu) {
|
|
7959
7959
|
case 1:
|
|
7960
|
-
|
|
7960
|
+
Qu = 0, $u = null, Zd(e, t, o, 1);
|
|
7961
7961
|
break;
|
|
7962
7962
|
case 2:
|
|
7963
7963
|
case 9:
|
|
7964
7964
|
if (Za(o)) {
|
|
7965
|
-
|
|
7965
|
+
Qu = 0, $u = null, Xd(t);
|
|
7966
7966
|
break;
|
|
7967
7967
|
}
|
|
7968
7968
|
t = function() {
|
|
7969
|
-
|
|
7969
|
+
Qu !== 2 && Qu !== 9 || Zu !== e || (Qu = 7), Tf(e);
|
|
7970
7970
|
}, o.then(t, t);
|
|
7971
7971
|
break a;
|
|
7972
7972
|
case 3:
|
|
7973
|
-
|
|
7973
|
+
Qu = 7;
|
|
7974
7974
|
break a;
|
|
7975
7975
|
case 4:
|
|
7976
|
-
|
|
7976
|
+
Qu = 5;
|
|
7977
7977
|
break a;
|
|
7978
7978
|
case 7:
|
|
7979
|
-
Za(o) ? (
|
|
7979
|
+
Za(o) ? (Qu = 0, $u = null, Xd(t)) : (Qu = 0, $u = null, Zd(e, t, o, 7));
|
|
7980
7980
|
break;
|
|
7981
7981
|
case 5:
|
|
7982
7982
|
var s = null;
|
|
7983
|
-
switch (
|
|
7984
|
-
case 26: s =
|
|
7983
|
+
switch (X.tag) {
|
|
7984
|
+
case 26: s = X.memoizedState;
|
|
7985
7985
|
case 5:
|
|
7986
7986
|
case 27:
|
|
7987
|
-
var c =
|
|
7987
|
+
var c = X;
|
|
7988
7988
|
if (s ? Ym(s) : c.stateNode.complete) {
|
|
7989
|
-
|
|
7989
|
+
Qu = 0, $u = null;
|
|
7990
7990
|
var l = c.sibling;
|
|
7991
|
-
if (l !== null)
|
|
7991
|
+
if (l !== null) X = l;
|
|
7992
7992
|
else {
|
|
7993
7993
|
var u = c.return;
|
|
7994
|
-
u === null ?
|
|
7994
|
+
u === null ? X = null : (X = u, Qd(u));
|
|
7995
7995
|
}
|
|
7996
7996
|
break b;
|
|
7997
7997
|
}
|
|
7998
7998
|
}
|
|
7999
|
-
|
|
7999
|
+
Qu = 0, $u = null, Zd(e, t, o, 5);
|
|
8000
8000
|
break;
|
|
8001
8001
|
case 6:
|
|
8002
|
-
|
|
8002
|
+
Qu = 0, $u = null, Zd(e, t, o, 6);
|
|
8003
8003
|
break;
|
|
8004
8004
|
case 8:
|
|
8005
|
-
Rd(),
|
|
8005
|
+
Rd(), id = 6;
|
|
8006
8006
|
break a;
|
|
8007
8007
|
default: throw Error(i(462));
|
|
8008
8008
|
}
|
|
@@ -8013,93 +8013,93 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
8013
8013
|
Bd(e, t);
|
|
8014
8014
|
}
|
|
8015
8015
|
while (1);
|
|
8016
|
-
return ha = ma = null, A.H = r, A.A = a,
|
|
8016
|
+
return ha = ma = null, A.H = r, A.A = a, Y = n, X === null ? (Zu = null, Z = 0, Si(), id) : 0;
|
|
8017
8017
|
}
|
|
8018
8018
|
function Jd() {
|
|
8019
|
-
for (;
|
|
8019
|
+
for (; X !== null && !He();) Yd(X);
|
|
8020
8020
|
}
|
|
8021
8021
|
function Yd(e) {
|
|
8022
|
-
var t = ul(e.alternate, e,
|
|
8023
|
-
e.memoizedProps = e.pendingProps, t === null ? Qd(e) :
|
|
8022
|
+
var t = ul(e.alternate, e, rd);
|
|
8023
|
+
e.memoizedProps = e.pendingProps, t === null ? Qd(e) : X = t;
|
|
8024
8024
|
}
|
|
8025
8025
|
function Xd(e) {
|
|
8026
8026
|
var t = e, n = t.alternate;
|
|
8027
8027
|
switch (t.tag) {
|
|
8028
8028
|
case 15:
|
|
8029
8029
|
case 0:
|
|
8030
|
-
t = Wc(n, t, t.pendingProps, t.type, void 0,
|
|
8030
|
+
t = Wc(n, t, t.pendingProps, t.type, void 0, Z);
|
|
8031
8031
|
break;
|
|
8032
8032
|
case 11:
|
|
8033
|
-
t = Wc(n, t, t.pendingProps, t.type.render, t.ref,
|
|
8033
|
+
t = Wc(n, t, t.pendingProps, t.type.render, t.ref, Z);
|
|
8034
8034
|
break;
|
|
8035
8035
|
case 5:
|
|
8036
8036
|
rs(t);
|
|
8037
8037
|
var r = t;
|
|
8038
8038
|
r === ta && (V ? (la(r), r.tag === 5 && r.stateNode != null && (na = r.stateNode)) : (la(r), V = !0));
|
|
8039
|
-
default: yl(n, t), t =
|
|
8039
|
+
default: yl(n, t), t = X = Ni(t, rd), t = ul(n, t, rd);
|
|
8040
8040
|
}
|
|
8041
|
-
e.memoizedProps = e.pendingProps, t === null ? Qd(e) :
|
|
8041
|
+
e.memoizedProps = e.pendingProps, t === null ? Qd(e) : X = t;
|
|
8042
8042
|
}
|
|
8043
8043
|
function Zd(e, t, n, r) {
|
|
8044
8044
|
ha = ma = null, rs(t), ro = null, io = 0;
|
|
8045
8045
|
var i = t.return;
|
|
8046
8046
|
try {
|
|
8047
|
-
if (Ac(e, i, t, n,
|
|
8048
|
-
|
|
8047
|
+
if (Ac(e, i, t, n, Z)) {
|
|
8048
|
+
id = 1, Tc(e, Bi(n, e.current)), X = null;
|
|
8049
8049
|
return;
|
|
8050
8050
|
}
|
|
8051
8051
|
} catch (t) {
|
|
8052
|
-
if (i !== null) throw
|
|
8053
|
-
|
|
8052
|
+
if (i !== null) throw X = i, t;
|
|
8053
|
+
id = 1, Tc(e, Bi(n, e.current)), X = null;
|
|
8054
8054
|
return;
|
|
8055
8055
|
}
|
|
8056
|
-
t.flags & 32768 ? (V || r === 1 ? e = !0 :
|
|
8056
|
+
t.flags & 32768 ? (V || r === 1 ? e = !0 : td || Z & 536870912 ? e = !1 : (ed = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = ko.current, r !== null && r.tag === 13 && (r.flags |= 16384))), $d(t, e)) : Qd(t);
|
|
8057
8057
|
}
|
|
8058
8058
|
function Qd(e) {
|
|
8059
8059
|
var t = e;
|
|
8060
8060
|
do {
|
|
8061
8061
|
if (t.flags & 32768) {
|
|
8062
|
-
$d(t,
|
|
8062
|
+
$d(t, ed);
|
|
8063
8063
|
return;
|
|
8064
8064
|
}
|
|
8065
8065
|
e = t.return;
|
|
8066
|
-
var n = _l(t.alternate, t,
|
|
8066
|
+
var n = _l(t.alternate, t, rd);
|
|
8067
8067
|
if (n !== null) {
|
|
8068
|
-
|
|
8068
|
+
X = n;
|
|
8069
8069
|
return;
|
|
8070
8070
|
}
|
|
8071
8071
|
if (t = t.sibling, t !== null) {
|
|
8072
|
-
|
|
8072
|
+
X = t;
|
|
8073
8073
|
return;
|
|
8074
8074
|
}
|
|
8075
|
-
|
|
8075
|
+
X = t = e;
|
|
8076
8076
|
} while (t !== null);
|
|
8077
|
-
|
|
8077
|
+
id === 0 && (id = 5);
|
|
8078
8078
|
}
|
|
8079
8079
|
function $d(e, t) {
|
|
8080
8080
|
do {
|
|
8081
8081
|
var n = vl(e.alternate, e);
|
|
8082
8082
|
if (n !== null) {
|
|
8083
|
-
n.flags &= 32767,
|
|
8083
|
+
n.flags &= 32767, X = n;
|
|
8084
8084
|
return;
|
|
8085
8085
|
}
|
|
8086
8086
|
if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
|
|
8087
|
-
|
|
8087
|
+
X = e;
|
|
8088
8088
|
return;
|
|
8089
8089
|
}
|
|
8090
|
-
|
|
8090
|
+
X = e = n;
|
|
8091
8091
|
} while (e !== null);
|
|
8092
|
-
|
|
8092
|
+
id = 6, X = null;
|
|
8093
8093
|
}
|
|
8094
8094
|
function ef(e, t, n, r, a, o, s, c, l, u, d, f) {
|
|
8095
8095
|
e.cancelPendingCommit = null;
|
|
8096
8096
|
do
|
|
8097
8097
|
lf();
|
|
8098
|
-
while (
|
|
8099
|
-
if (
|
|
8098
|
+
while (Q !== 0);
|
|
8099
|
+
if (Y & 6) throw Error(i(327));
|
|
8100
8100
|
if (t !== null) {
|
|
8101
8101
|
if (t === e.current) throw Error(i(177));
|
|
8102
|
-
e ===
|
|
8102
|
+
e === Zu && (X = Zu = null, Z = 0), yd = t, vd = e, bd = n, Sd = a, Cd = r, tf(e, t, n, s, c, l, f);
|
|
8103
8103
|
}
|
|
8104
8104
|
}
|
|
8105
8105
|
function tf(e, t, n, r, i, a, o) {
|
|
@@ -8107,36 +8107,36 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
8107
8107
|
if (xd = s, s |= xi, vt(e, n, s, r, i, a), Td = null, (n & 335544064) === n ? (Ed = Pa(e), r = 10262) : (Ed = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, vf(Je, function() {
|
|
8108
8108
|
return uf(), null;
|
|
8109
8109
|
})) : (e.callbackNode = null, e.callbackPriority = 0), Rl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
|
|
8110
|
-
r = A.T, A.T = null, i = j.p, j.p = 2, a =
|
|
8110
|
+
r = A.T, A.T = null, i = j.p, j.p = 2, a = Y, Y |= 4;
|
|
8111
8111
|
try {
|
|
8112
|
-
|
|
8112
|
+
du(e, t, n);
|
|
8113
8113
|
} finally {
|
|
8114
|
-
|
|
8114
|
+
Y = a, j.p = i, A.T = r;
|
|
8115
8115
|
}
|
|
8116
8116
|
}
|
|
8117
|
-
|
|
8117
|
+
Q = 1, Rl ? wd = Mp(o, e.containerInfo, Ed, af, of, rf, sf, uf, nf, null, null) : (af(), of(), sf());
|
|
8118
8118
|
}
|
|
8119
8119
|
function nf(e) {
|
|
8120
|
-
if (
|
|
8120
|
+
if (Q !== 0) {
|
|
8121
8121
|
var t = vd.onRecoverableError;
|
|
8122
8122
|
t(e, { componentStack: null });
|
|
8123
8123
|
}
|
|
8124
8124
|
}
|
|
8125
8125
|
function rf() {
|
|
8126
|
-
|
|
8126
|
+
Q === 3 && (Q = 0, ju(yd, vd), Q = 4);
|
|
8127
8127
|
}
|
|
8128
8128
|
function af() {
|
|
8129
|
-
if (
|
|
8130
|
-
|
|
8129
|
+
if (Q === 1) {
|
|
8130
|
+
Q = 0;
|
|
8131
8131
|
var e = vd, t = yd, n = bd, r = !!(t.flags & 13878);
|
|
8132
8132
|
if (t.subtreeFlags & 13878 || r) {
|
|
8133
8133
|
r = A.T, A.T = null;
|
|
8134
8134
|
var i = j.p;
|
|
8135
8135
|
j.p = 2;
|
|
8136
|
-
var a =
|
|
8137
|
-
|
|
8136
|
+
var a = Y;
|
|
8137
|
+
Y |= 4;
|
|
8138
8138
|
try {
|
|
8139
|
-
|
|
8139
|
+
cu = lu = !1, Du(t, e, n), n = cp;
|
|
8140
8140
|
var o = Kr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
|
|
8141
8141
|
if (o !== s && s && s.ownerDocument && Gr(s.ownerDocument.documentElement, s)) {
|
|
8142
8142
|
if (c !== null && qr(s)) {
|
|
@@ -8167,38 +8167,38 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
8167
8167
|
}
|
|
8168
8168
|
gh = !!sp, cp = sp = null;
|
|
8169
8169
|
} finally {
|
|
8170
|
-
|
|
8170
|
+
Y = a, j.p = i, A.T = r;
|
|
8171
8171
|
}
|
|
8172
8172
|
}
|
|
8173
|
-
e.current = t,
|
|
8173
|
+
e.current = t, Q = 2;
|
|
8174
8174
|
}
|
|
8175
8175
|
}
|
|
8176
8176
|
function of() {
|
|
8177
|
-
if (
|
|
8178
|
-
|
|
8177
|
+
if (Q === 2) {
|
|
8178
|
+
Q = 0;
|
|
8179
8179
|
var e = vd, t = yd, n = !!(t.flags & 8772);
|
|
8180
8180
|
if (t.subtreeFlags & 8772 || n) {
|
|
8181
8181
|
n = A.T, A.T = null;
|
|
8182
8182
|
var r = j.p;
|
|
8183
8183
|
j.p = 2;
|
|
8184
|
-
var i =
|
|
8185
|
-
|
|
8184
|
+
var i = Y;
|
|
8185
|
+
Y |= 4;
|
|
8186
8186
|
try {
|
|
8187
|
-
|
|
8187
|
+
pu(e, t.alternate, t);
|
|
8188
8188
|
} finally {
|
|
8189
|
-
|
|
8189
|
+
Y = i, j.p = r, A.T = n;
|
|
8190
8190
|
}
|
|
8191
8191
|
}
|
|
8192
|
-
|
|
8192
|
+
Q = 3;
|
|
8193
8193
|
}
|
|
8194
8194
|
}
|
|
8195
8195
|
function sf() {
|
|
8196
|
-
if (
|
|
8197
|
-
|
|
8196
|
+
if (Q === 4 || Q === 3) {
|
|
8197
|
+
Q = 0;
|
|
8198
8198
|
var e = wd;
|
|
8199
8199
|
wd = null, Ue();
|
|
8200
8200
|
var t = vd, n = yd, r = bd, i = Cd, a = (r & 335544064) === r ? 10262 : 10256;
|
|
8201
|
-
if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ?
|
|
8201
|
+
if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Q = 5 : (Q = 0, yd = vd = null, cf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (_d = null), Ct(r), n = n.stateNode, et && typeof et.onCommitFiberRoot == "function") try {
|
|
8202
8202
|
et.onCommitFiberRoot($e, n, void 0, (n.current.flags & 128) == 128);
|
|
8203
8203
|
} catch {}
|
|
8204
8204
|
if (i !== null) {
|
|
@@ -8223,16 +8223,16 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
8223
8223
|
return wd !== null && (wd.skipTransition(), wd = null), af(), of(), sf(), uf();
|
|
8224
8224
|
}
|
|
8225
8225
|
function uf() {
|
|
8226
|
-
if (
|
|
8226
|
+
if (Q !== 5) return !1;
|
|
8227
8227
|
var e = vd, t = xd;
|
|
8228
8228
|
xd = 0;
|
|
8229
|
-
var n =
|
|
8229
|
+
var n = Ct(bd), r = A.T, a = j.p;
|
|
8230
8230
|
try {
|
|
8231
8231
|
j.p = 32 > n ? 32 : n, A.T = null, n = Sd, Sd = null;
|
|
8232
8232
|
var o = vd, s = bd;
|
|
8233
|
-
if (
|
|
8234
|
-
var c =
|
|
8235
|
-
if (
|
|
8233
|
+
if (Q = 0, yd = vd = null, bd = 0, Y & 6) throw Error(i(331));
|
|
8234
|
+
var c = Y;
|
|
8235
|
+
if (Y |= 4, Ku(o.current), Ru(o, o.current, s, n), Y = c, Ef(0, !1), et && typeof et.onPostCommitFiberRoot == "function") try {
|
|
8236
8236
|
et.onPostCommitFiberRoot($e, o);
|
|
8237
8237
|
} catch {}
|
|
8238
8238
|
return !0;
|
|
@@ -8252,7 +8252,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
8252
8252
|
}
|
|
8253
8253
|
if (t.tag === 1) {
|
|
8254
8254
|
var r = t.stateNode;
|
|
8255
|
-
if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (
|
|
8255
|
+
if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (_d === null || !_d.has(r))) {
|
|
8256
8256
|
e = Bi(n, e), n = Oc(2), r = go(t, n, 2), r !== null && (kc(n, r, t, e), _t(r, 2), Tf(r));
|
|
8257
8257
|
break;
|
|
8258
8258
|
}
|
|
@@ -8263,15 +8263,15 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
8263
8263
|
function pf(e, t, n) {
|
|
8264
8264
|
var r = e.pingCache;
|
|
8265
8265
|
if (r === null) {
|
|
8266
|
-
r = e.pingCache = new
|
|
8266
|
+
r = e.pingCache = new Xu();
|
|
8267
8267
|
var i = /* @__PURE__ */ new Set();
|
|
8268
8268
|
r.set(t, i);
|
|
8269
8269
|
} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
|
|
8270
|
-
i.has(n) || (
|
|
8270
|
+
i.has(n) || (nd = !0, i.add(n), e = mf.bind(null, e, t, n), t.then(e, e));
|
|
8271
8271
|
}
|
|
8272
8272
|
function mf(e, t, n) {
|
|
8273
8273
|
var r = e.pingCache;
|
|
8274
|
-
r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n,
|
|
8274
|
+
r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, Zu === e && (Z & n) === n && (id === 4 || id === 3 && (Z & 62914560) === Z && 300 > We() - pd ? Y & 2 ? sd |= n : zd(e, 0) : sd |= n, ld === Z && (ld = 0)), Tf(e);
|
|
8275
8275
|
}
|
|
8276
8276
|
function hf(e, t) {
|
|
8277
8277
|
t === 0 && (t = ht()), e = Ti(e, t), e !== null && (_t(e, t), Tf(e));
|
|
@@ -8319,7 +8319,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
8319
8319
|
a = (1 << 31 - nt(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
|
|
8320
8320
|
}
|
|
8321
8321
|
a !== 0 && (n = !0, jf(r, a));
|
|
8322
|
-
} else a =
|
|
8322
|
+
} else a = Z, a = ut(r, r === Zu ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || dt(r, a) || (n = !0, jf(r, a));
|
|
8323
8323
|
}
|
|
8324
8324
|
r = r.next;
|
|
8325
8325
|
}
|
|
@@ -8338,17 +8338,17 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
8338
8338
|
var i = r.next, a = kf(r, t);
|
|
8339
8339
|
a === 0 ? (r.next = null, n === null ? yf = i : n.next = i, i === null && (bf = n)) : (n = r, (e !== 0 || a & 3) && (Sf = !0)), r = i;
|
|
8340
8340
|
}
|
|
8341
|
-
|
|
8341
|
+
Q !== 0 && Q !== 5 || Ef(e, !1), wf !== 0 && (wf = 0);
|
|
8342
8342
|
}
|
|
8343
8343
|
function kf(e, t) {
|
|
8344
8344
|
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
|
|
8345
8345
|
var o = 31 - nt(a), s = 1 << o, c = i[o];
|
|
8346
8346
|
c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = pt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
|
|
8347
8347
|
}
|
|
8348
|
-
if (t =
|
|
8348
|
+
if (t = Zu, n = Z, n = ut(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (Qu === 2 || Qu === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Ve(r), e.callbackNode = null, e.callbackPriority = 0;
|
|
8349
8349
|
if (!(n & 3) || dt(e, n)) {
|
|
8350
8350
|
if (t = n & -n, t === e.callbackPriority) return t;
|
|
8351
|
-
switch (r !== null && Ve(r),
|
|
8351
|
+
switch (r !== null && Ve(r), Ct(n)) {
|
|
8352
8352
|
case 2:
|
|
8353
8353
|
case 8:
|
|
8354
8354
|
n = qe;
|
|
@@ -8366,11 +8366,11 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
8366
8366
|
return r !== null && r !== null && Ve(r), e.callbackPriority = 2, e.callbackNode = null, 2;
|
|
8367
8367
|
}
|
|
8368
8368
|
function Af(e, t) {
|
|
8369
|
-
if (
|
|
8369
|
+
if (Q !== 0 && Q !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
|
|
8370
8370
|
var n = e.callbackNode;
|
|
8371
8371
|
if (lf() && e.callbackNode !== n) return null;
|
|
8372
|
-
var r =
|
|
8373
|
-
return r = ut(e, e ===
|
|
8372
|
+
var r = Z;
|
|
8373
|
+
return r = ut(e, e === Zu ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Nd(e, r, t), kf(e, We()), e.callbackNode != null && e.callbackNode === n ? Af.bind(null, e) : null);
|
|
8374
8374
|
}
|
|
8375
8375
|
function jf(e, t) {
|
|
8376
8376
|
if (lf()) return null;
|
|
@@ -8378,7 +8378,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
8378
8378
|
}
|
|
8379
8379
|
function Mf() {
|
|
8380
8380
|
bp(function() {
|
|
8381
|
-
|
|
8381
|
+
Y & 6 ? Be(Ke, Df) : Of();
|
|
8382
8382
|
});
|
|
8383
8383
|
}
|
|
8384
8384
|
function Nf() {
|
|
@@ -8867,31 +8867,31 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
8867
8867
|
$("beforetoggle", e), $("toggle", e), Xt(e, "popover", r);
|
|
8868
8868
|
break;
|
|
8869
8869
|
case "xlinkActuate":
|
|
8870
|
-
|
|
8870
|
+
Qt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
|
|
8871
8871
|
break;
|
|
8872
8872
|
case "xlinkArcrole":
|
|
8873
|
-
|
|
8873
|
+
Qt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
|
|
8874
8874
|
break;
|
|
8875
8875
|
case "xlinkRole":
|
|
8876
|
-
|
|
8876
|
+
Qt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
|
|
8877
8877
|
break;
|
|
8878
8878
|
case "xlinkShow":
|
|
8879
|
-
|
|
8879
|
+
Qt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
|
|
8880
8880
|
break;
|
|
8881
8881
|
case "xlinkTitle":
|
|
8882
|
-
|
|
8882
|
+
Qt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
|
|
8883
8883
|
break;
|
|
8884
8884
|
case "xlinkType":
|
|
8885
|
-
|
|
8885
|
+
Qt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
|
|
8886
8886
|
break;
|
|
8887
8887
|
case "xmlBase":
|
|
8888
|
-
|
|
8888
|
+
Qt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
|
|
8889
8889
|
break;
|
|
8890
8890
|
case "xmlLang":
|
|
8891
|
-
|
|
8891
|
+
Qt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
|
|
8892
8892
|
break;
|
|
8893
8893
|
case "xmlSpace":
|
|
8894
|
-
|
|
8894
|
+
Qt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
|
|
8895
8895
|
break;
|
|
8896
8896
|
case "is":
|
|
8897
8897
|
Xt(e, "is", r);
|
|
@@ -9282,7 +9282,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
9282
9282
|
return e === 1 && t === "foreignObject" ? 0 : e;
|
|
9283
9283
|
}
|
|
9284
9284
|
function fp(e, t, n, r) {
|
|
9285
|
-
return n = lp(n).createElement(e), n[
|
|
9285
|
+
return n = lp(n).createElement(e), n[Tt] = r, n[Et] = t, np(n, e, t), zt(n), n;
|
|
9286
9286
|
}
|
|
9287
9287
|
function pp(e, t) {
|
|
9288
9288
|
return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;
|
|
@@ -10206,7 +10206,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
10206
10206
|
if (r.has(e)) return r;
|
|
10207
10207
|
for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {
|
|
10208
10208
|
var a = n[i];
|
|
10209
|
-
if (!(a[Mt] || a[
|
|
10209
|
+
if (!(a[Mt] || a[Tt] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
|
|
10210
10210
|
var o = a.getAttribute(t) || "";
|
|
10211
10211
|
o = e + o;
|
|
10212
10212
|
var s = r.get(o);
|
|
@@ -10362,7 +10362,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
10362
10362
|
function hh(e) {
|
|
10363
10363
|
if (e.tag === 13 || e.tag === 31) {
|
|
10364
10364
|
var t = kd();
|
|
10365
|
-
t =
|
|
10365
|
+
t = St(t);
|
|
10366
10366
|
var n = Ti(e, t);
|
|
10367
10367
|
n !== null && Md(n, e, t), ph(e, t);
|
|
10368
10368
|
}
|
|
@@ -10406,7 +10406,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
10406
10406
|
var c = 1 << 31 - nt(o);
|
|
10407
10407
|
s.entanglements[1] |= c, o &= ~c;
|
|
10408
10408
|
}
|
|
10409
|
-
Tf(a), !(
|
|
10409
|
+
Tf(a), !(Y & 6) && (hd = We() + 500, Ef(0, !1));
|
|
10410
10410
|
}
|
|
10411
10411
|
}
|
|
10412
10412
|
break;
|
|
@@ -10718,7 +10718,7 @@ var ta = ea(), na = ea(), V = ea(), ra = ea(), ia = ea(), aa = /* @__PURE__ */ i
|
|
|
10718
10718
|
}
|
|
10719
10719
|
Gh.prototype.unstable_scheduleHydration = function(e) {
|
|
10720
10720
|
if (e) {
|
|
10721
|
-
var t =
|
|
10721
|
+
var t = N();
|
|
10722
10722
|
e = {
|
|
10723
10723
|
blockedOn: null,
|
|
10724
10724
|
target: e,
|
|
@@ -10768,14 +10768,14 @@ function ua(e, t) {
|
|
|
10768
10768
|
return {
|
|
10769
10769
|
dom: n,
|
|
10770
10770
|
mount() {
|
|
10771
|
-
r = (0, la.createRoot)(n), r.render(/* @__PURE__ */ (0, B.jsx)(
|
|
10772
|
-
store:
|
|
10771
|
+
r = (0, la.createRoot)(n), r.render(/* @__PURE__ */ (0, B.jsx)(vt, {
|
|
10772
|
+
store: N,
|
|
10773
10773
|
children: /* @__PURE__ */ (0, B.jsx)(t, { view: e })
|
|
10774
10774
|
}));
|
|
10775
10775
|
},
|
|
10776
10776
|
update() {
|
|
10777
|
-
r?.render(/* @__PURE__ */ (0, B.jsx)(
|
|
10778
|
-
store:
|
|
10777
|
+
r?.render(/* @__PURE__ */ (0, B.jsx)(vt, {
|
|
10778
|
+
store: N,
|
|
10779
10779
|
children: /* @__PURE__ */ (0, B.jsx)(t, { view: e })
|
|
10780
10780
|
}));
|
|
10781
10781
|
},
|
|
@@ -12512,7 +12512,7 @@ var lo = {
|
|
|
12512
12512
|
line_timing: !1
|
|
12513
12513
|
};
|
|
12514
12514
|
function uo(e) {
|
|
12515
|
-
return
|
|
12515
|
+
return Zt()?.experimental?.[e] ?? lo[e];
|
|
12516
12516
|
}
|
|
12517
12517
|
function fo(e, t) {
|
|
12518
12518
|
Re().saveUserConfig({ config: { experimental: { [e]: t } } });
|
|
@@ -12573,7 +12573,7 @@ function vo(e) {
|
|
|
12573
12573
|
}
|
|
12574
12574
|
};
|
|
12575
12575
|
}
|
|
12576
|
-
var yo =
|
|
12576
|
+
var yo = xt(() => Fe), bo = [
|
|
12577
12577
|
{
|
|
12578
12578
|
type: "files",
|
|
12579
12579
|
Icon: ti,
|
|
@@ -12754,16 +12754,16 @@ function So(e) {
|
|
|
12754
12754
|
var Co = vo({
|
|
12755
12755
|
toSerializable: (e) => e,
|
|
12756
12756
|
fromSerializable: (e) => So(e)
|
|
12757
|
-
}), wo =
|
|
12757
|
+
}), wo = zt("marimo:panel-layout", xo, Co, { getOnInit: !0 });
|
|
12758
12758
|
function To(e) {
|
|
12759
|
-
let t =
|
|
12759
|
+
let t = N.get(wo);
|
|
12760
12760
|
return t.sidebar.includes(e) ? "sidebar" : t.developerPanel.includes(e) ? "developer-panel" : null;
|
|
12761
12761
|
}
|
|
12762
|
-
var Eo = "marimo:sidebar", Do = new Oe(
|
|
12763
|
-
selectedPanel:
|
|
12764
|
-
isSidebarOpen:
|
|
12765
|
-
isDeveloperPanelOpen:
|
|
12766
|
-
selectedDeveloperPanelTab:
|
|
12762
|
+
var Eo = "marimo:sidebar", Do = new Oe(Ot({
|
|
12763
|
+
selectedPanel: Vt().optional().transform((e) => e),
|
|
12764
|
+
isSidebarOpen: Tt(),
|
|
12765
|
+
isDeveloperPanelOpen: Tt().optional().default(!1),
|
|
12766
|
+
selectedDeveloperPanelTab: Vt().optional().default("errors").transform((e) => e)
|
|
12767
12767
|
}), Oo);
|
|
12768
12768
|
function Oo() {
|
|
12769
12769
|
return {
|
|
@@ -12820,7 +12820,7 @@ function No() {
|
|
|
12820
12820
|
}
|
|
12821
12821
|
//#endregion
|
|
12822
12822
|
//#region src/core/config/capabilities.ts
|
|
12823
|
-
var Po =
|
|
12823
|
+
var Po = P({
|
|
12824
12824
|
terminal: !1,
|
|
12825
12825
|
pylsp: !1,
|
|
12826
12826
|
basedpyright: !1,
|
|
@@ -12828,11 +12828,11 @@ var Po = N({
|
|
|
12828
12828
|
pyrefly: !1
|
|
12829
12829
|
});
|
|
12830
12830
|
function Fo(e) {
|
|
12831
|
-
return
|
|
12831
|
+
return N.get(Po)?.[e] ?? !1;
|
|
12832
12832
|
}
|
|
12833
12833
|
//#endregion
|
|
12834
12834
|
//#region src/core/documentation/state.ts
|
|
12835
|
-
var Io =
|
|
12835
|
+
var Io = P({ documentation: null }), Lo = cn.mark({ class: "mo-cm-reactive-reference" });
|
|
12836
12836
|
cn.mark({ class: "mo-cm-reactive-reference-hover" });
|
|
12837
12837
|
var Ro = dn.define(), zo = vn.define({
|
|
12838
12838
|
create() {
|
|
@@ -12994,12 +12994,12 @@ function Jo(e) {
|
|
|
12994
12994
|
return /\w/.test(n);
|
|
12995
12995
|
}
|
|
12996
12996
|
var Yo = en(async (e, t) => {
|
|
12997
|
-
if (
|
|
12997
|
+
if (N.get(jo).selectedPanel !== "documentation") return;
|
|
12998
12998
|
let n = await Ko({
|
|
12999
12999
|
view: e,
|
|
13000
13000
|
pos: t
|
|
13001
13001
|
});
|
|
13002
|
-
n !== "cancelled" &&
|
|
13002
|
+
n !== "cancelled" && N.set(Io, { documentation: n?.html ?? null });
|
|
13003
13003
|
}, 300);
|
|
13004
13004
|
mn.updateListener.of((e) => {
|
|
13005
13005
|
if (e.selectionSet && Jo(e.state)) {
|
|
@@ -13091,7 +13091,7 @@ var rs = vn.define({
|
|
|
13091
13091
|
message: i,
|
|
13092
13092
|
limitToType: "tooltip"
|
|
13093
13093
|
});
|
|
13094
|
-
return o &&
|
|
13094
|
+
return o && N.set(Io, { documentation: o.html ?? null }), e.view?.dispatch({ effects: $o.of(o ? ns(o) : null) }), o ? null : Wo.asCompletionResult(e.pos, i);
|
|
13095
13095
|
};
|
|
13096
13096
|
//#endregion
|
|
13097
13097
|
//#region src/core/codemirror/completion/utils.ts
|
|
@@ -13883,7 +13883,7 @@ async function Es(e, t) {
|
|
|
13883
13883
|
}
|
|
13884
13884
|
} else {
|
|
13885
13885
|
e.trim() === "" ? e = t.name : e.endsWith(`.${n}`) || (e = `${e}.${n}`);
|
|
13886
|
-
let r =
|
|
13886
|
+
let r = N.get(xe), a = r ? hs.dirname(r) : null, o = a ? `${a}/public` : "public", s = await Re().sendCreateFileOrFolder({
|
|
13887
13887
|
path: o,
|
|
13888
13888
|
type: "file",
|
|
13889
13889
|
name: e,
|
|
@@ -14106,7 +14106,7 @@ var Ls = (e) => {
|
|
|
14106
14106
|
if (t.at(n - 1) === "{" || n === -1 || t.indexOf("}", n) > n) return null;
|
|
14107
14107
|
let r = e.matchBefore(/\w*$/);
|
|
14108
14108
|
if (!r) return null;
|
|
14109
|
-
let i = js(
|
|
14109
|
+
let i = js(N.get(go), /* @__PURE__ */ new Set(), 99);
|
|
14110
14110
|
return {
|
|
14111
14111
|
from: r.from,
|
|
14112
14112
|
options: i,
|
|
@@ -17720,7 +17720,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
17720
17720
|
(function(e) {
|
|
17721
17721
|
e.method = "callHierarchy/outgoingCalls", e.messageDirection = t.MessageDirection.clientToServer, e.type = new t.ProtocolRequestType(e.method), e.capabilities = t.CM.create("textDocument.callHierarchy", "callHierarchyProvider");
|
|
17722
17722
|
})(i || (e.CallHierarchyOutgoingCallsRequest = i = {}));
|
|
17723
|
-
})),
|
|
17723
|
+
})), nu = /* @__PURE__ */ i(((e) => {
|
|
17724
17724
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.SemanticTokensRefreshRequest = e.SemanticTokensRangeRequest = e.SemanticTokensDeltaRequest = e.SemanticTokensRequest = e.SemanticTokensRegistrationType = e.TokenFormat = void 0;
|
|
17725
17725
|
var t = q(), n;
|
|
17726
17726
|
(function(e) {
|
|
@@ -17746,19 +17746,19 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
17746
17746
|
(function(e) {
|
|
17747
17747
|
e.method = "workspace/semanticTokens/refresh", e.messageDirection = t.MessageDirection.serverToClient, e.type = new t.ProtocolRequestType0(e.method), e.capabilities = t.CM.create("workspace.semanticTokens.refreshSupport", void 0);
|
|
17748
17748
|
})(s || (e.SemanticTokensRefreshRequest = s = {}));
|
|
17749
|
-
})),
|
|
17749
|
+
})), ru = /* @__PURE__ */ i(((e) => {
|
|
17750
17750
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ShowDocumentRequest = void 0;
|
|
17751
17751
|
var t = q(), n;
|
|
17752
17752
|
(function(e) {
|
|
17753
17753
|
e.method = "window/showDocument", e.messageDirection = t.MessageDirection.serverToClient, e.type = new t.ProtocolRequestType(e.method), e.capabilities = t.CM.create("window.showDocument.support", void 0);
|
|
17754
17754
|
})(n || (e.ShowDocumentRequest = n = {}));
|
|
17755
|
-
})),
|
|
17755
|
+
})), iu = /* @__PURE__ */ i(((e) => {
|
|
17756
17756
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.LinkedEditingRangeRequest = void 0;
|
|
17757
17757
|
var t = q(), n;
|
|
17758
17758
|
(function(e) {
|
|
17759
17759
|
e.method = "textDocument/linkedEditingRange", e.messageDirection = t.MessageDirection.clientToServer, e.type = new t.ProtocolRequestType(e.method), e.capabilities = t.CM.create("textDocument.linkedEditingRange", "linkedEditingRangeProvider");
|
|
17760
17760
|
})(n || (e.LinkedEditingRangeRequest = n = {}));
|
|
17761
|
-
})),
|
|
17761
|
+
})), au = /* @__PURE__ */ i(((e) => {
|
|
17762
17762
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.WillDeleteFilesRequest = e.DidDeleteFilesNotification = e.DidRenameFilesNotification = e.WillRenameFilesRequest = e.DidCreateFilesNotification = e.WillCreateFilesRequest = e.FileOperationPatternKind = void 0;
|
|
17763
17763
|
var t = q(), n;
|
|
17764
17764
|
(function(e) {
|
|
@@ -17788,7 +17788,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
17788
17788
|
(function(e) {
|
|
17789
17789
|
e.method = "workspace/willDeleteFiles", e.messageDirection = t.MessageDirection.clientToServer, e.type = new t.ProtocolRequestType(e.method), e.capabilities = t.CM.create("workspace.fileOperations.willDelete", "workspace.fileOperations.willDelete");
|
|
17790
17790
|
})(c || (e.WillDeleteFilesRequest = c = {}));
|
|
17791
|
-
})),
|
|
17791
|
+
})), ou = /* @__PURE__ */ i(((e) => {
|
|
17792
17792
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.MonikerRequest = e.MonikerKind = e.UniquenessLevel = void 0;
|
|
17793
17793
|
var t = q(), n;
|
|
17794
17794
|
(function(e) {
|
|
@@ -17802,7 +17802,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
17802
17802
|
(function(e) {
|
|
17803
17803
|
e.method = "textDocument/moniker", e.messageDirection = t.MessageDirection.clientToServer, e.type = new t.ProtocolRequestType(e.method), e.capabilities = t.CM.create("textDocument.moniker", "monikerProvider");
|
|
17804
17804
|
})(i || (e.MonikerRequest = i = {}));
|
|
17805
|
-
})),
|
|
17805
|
+
})), su = /* @__PURE__ */ i(((e) => {
|
|
17806
17806
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.TypeHierarchySubtypesRequest = e.TypeHierarchySupertypesRequest = e.TypeHierarchyPrepareRequest = void 0;
|
|
17807
17807
|
var t = q(), n;
|
|
17808
17808
|
(function(e) {
|
|
@@ -17816,7 +17816,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
17816
17816
|
(function(e) {
|
|
17817
17817
|
e.method = "typeHierarchy/subtypes", e.messageDirection = t.MessageDirection.clientToServer, e.type = new t.ProtocolRequestType(e.method);
|
|
17818
17818
|
})(i || (e.TypeHierarchySubtypesRequest = i = {}));
|
|
17819
|
-
})),
|
|
17819
|
+
})), cu = /* @__PURE__ */ i(((e) => {
|
|
17820
17820
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.InlineValueRefreshRequest = e.InlineValueRequest = void 0;
|
|
17821
17821
|
var t = q(), n;
|
|
17822
17822
|
(function(e) {
|
|
@@ -17826,7 +17826,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
17826
17826
|
(function(e) {
|
|
17827
17827
|
e.method = "workspace/inlineValue/refresh", e.messageDirection = t.MessageDirection.serverToClient, e.type = new t.ProtocolRequestType0(e.method), e.capabilities = t.CM.create("workspace.inlineValue.refreshSupport", void 0);
|
|
17828
17828
|
})(r || (e.InlineValueRefreshRequest = r = {}));
|
|
17829
|
-
})),
|
|
17829
|
+
})), lu = /* @__PURE__ */ i(((e) => {
|
|
17830
17830
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.InlayHintRefreshRequest = e.InlayHintResolveRequest = e.InlayHintRequest = void 0;
|
|
17831
17831
|
var t = q(), n;
|
|
17832
17832
|
(function(e) {
|
|
@@ -17840,7 +17840,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
17840
17840
|
(function(e) {
|
|
17841
17841
|
e.method = "workspace/inlayHint/refresh", e.messageDirection = t.MessageDirection.serverToClient, e.type = new t.ProtocolRequestType0(e.method), e.capabilities = t.CM.create("workspace.inlayHint.refreshSupport", void 0);
|
|
17842
17842
|
})(i || (e.InlayHintRefreshRequest = i = {}));
|
|
17843
|
-
})),
|
|
17843
|
+
})), uu = /* @__PURE__ */ i(((e, t, n) => {
|
|
17844
17844
|
var r = n && n.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
17845
17845
|
r === void 0 && (r = n);
|
|
17846
17846
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
@@ -17899,7 +17899,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
17899
17899
|
(function(e) {
|
|
17900
17900
|
e.method = "workspace/diagnostic/refresh", e.messageDirection = c.MessageDirection.serverToClient, e.type = new c.ProtocolRequestType0(e.method), e.capabilities = c.CM.create("workspace.diagnostics.refreshSupport", void 0);
|
|
17901
17901
|
})(p || (e.DiagnosticRefreshRequest = p = {}));
|
|
17902
|
-
})),
|
|
17902
|
+
})), du = /* @__PURE__ */ i(((e, n, r) => {
|
|
17903
17903
|
var i = r && r.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
17904
17904
|
r === void 0 && (r = n);
|
|
17905
17905
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
@@ -18051,13 +18051,13 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18051
18051
|
(function(e) {
|
|
18052
18052
|
e.method = "notebookDocument/didClose", e.messageDirection = l.MessageDirection.clientToServer, e.type = new l.ProtocolNotificationType(e.method), e.registrationMethod = m.method;
|
|
18053
18053
|
})(y || (e.DidCloseNotebookDocumentNotification = y = {}));
|
|
18054
|
-
})),
|
|
18054
|
+
})), fu = /* @__PURE__ */ i(((e) => {
|
|
18055
18055
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.InlineCompletionRequest = void 0;
|
|
18056
18056
|
var t = q(), n;
|
|
18057
18057
|
(function(e) {
|
|
18058
18058
|
e.method = "textDocument/inlineCompletion", e.messageDirection = t.MessageDirection.clientToServer, e.type = new t.ProtocolRequestType(e.method), e.capabilities = t.CM.create("textDocument.inlineCompletion", "inlineCompletionProvider");
|
|
18059
18059
|
})(n || (e.InlineCompletionRequest = n = {}));
|
|
18060
|
-
})),
|
|
18060
|
+
})), pu = /* @__PURE__ */ i(((e) => {
|
|
18061
18061
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.TextDocumentContentRefreshRequest = e.TextDocumentContentRequest = void 0;
|
|
18062
18062
|
var t = q(), n;
|
|
18063
18063
|
(function(e) {
|
|
@@ -18067,7 +18067,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18067
18067
|
(function(e) {
|
|
18068
18068
|
e.method = "workspace/textDocumentContent/refresh", e.messageDirection = t.MessageDirection.serverToClient, e.type = new t.ProtocolRequestType(e.method);
|
|
18069
18069
|
})(r || (e.TextDocumentContentRefreshRequest = r = {}));
|
|
18070
|
-
})),
|
|
18070
|
+
})), mu = /* @__PURE__ */ i(((e, n, r) => {
|
|
18071
18071
|
var i = r && r.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
18072
18072
|
r === void 0 && (r = n);
|
|
18073
18073
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
@@ -18207,7 +18207,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18207
18207
|
return y.CallHierarchyPrepareRequest;
|
|
18208
18208
|
}
|
|
18209
18209
|
});
|
|
18210
|
-
var b =
|
|
18210
|
+
var b = nu();
|
|
18211
18211
|
Object.defineProperty(e, "TokenFormat", {
|
|
18212
18212
|
enumerable: !0,
|
|
18213
18213
|
get: function() {
|
|
@@ -18239,21 +18239,21 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18239
18239
|
return b.SemanticTokensRegistrationType;
|
|
18240
18240
|
}
|
|
18241
18241
|
});
|
|
18242
|
-
var x =
|
|
18242
|
+
var x = ru();
|
|
18243
18243
|
Object.defineProperty(e, "ShowDocumentRequest", {
|
|
18244
18244
|
enumerable: !0,
|
|
18245
18245
|
get: function() {
|
|
18246
18246
|
return x.ShowDocumentRequest;
|
|
18247
18247
|
}
|
|
18248
18248
|
});
|
|
18249
|
-
var S =
|
|
18249
|
+
var S = iu();
|
|
18250
18250
|
Object.defineProperty(e, "LinkedEditingRangeRequest", {
|
|
18251
18251
|
enumerable: !0,
|
|
18252
18252
|
get: function() {
|
|
18253
18253
|
return S.LinkedEditingRangeRequest;
|
|
18254
18254
|
}
|
|
18255
18255
|
});
|
|
18256
|
-
var C =
|
|
18256
|
+
var C = au();
|
|
18257
18257
|
Object.defineProperty(e, "FileOperationPatternKind", {
|
|
18258
18258
|
enumerable: !0,
|
|
18259
18259
|
get: function() {
|
|
@@ -18290,7 +18290,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18290
18290
|
return C.WillDeleteFilesRequest;
|
|
18291
18291
|
}
|
|
18292
18292
|
});
|
|
18293
|
-
var w =
|
|
18293
|
+
var w = ou();
|
|
18294
18294
|
Object.defineProperty(e, "UniquenessLevel", {
|
|
18295
18295
|
enumerable: !0,
|
|
18296
18296
|
get: function() {
|
|
@@ -18307,7 +18307,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18307
18307
|
return w.MonikerRequest;
|
|
18308
18308
|
}
|
|
18309
18309
|
});
|
|
18310
|
-
var T =
|
|
18310
|
+
var T = su();
|
|
18311
18311
|
Object.defineProperty(e, "TypeHierarchyPrepareRequest", {
|
|
18312
18312
|
enumerable: !0,
|
|
18313
18313
|
get: function() {
|
|
@@ -18324,7 +18324,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18324
18324
|
return T.TypeHierarchySupertypesRequest;
|
|
18325
18325
|
}
|
|
18326
18326
|
});
|
|
18327
|
-
var ee =
|
|
18327
|
+
var ee = cu();
|
|
18328
18328
|
Object.defineProperty(e, "InlineValueRequest", {
|
|
18329
18329
|
enumerable: !0,
|
|
18330
18330
|
get: function() {
|
|
@@ -18336,7 +18336,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18336
18336
|
return ee.InlineValueRefreshRequest;
|
|
18337
18337
|
}
|
|
18338
18338
|
});
|
|
18339
|
-
var te =
|
|
18339
|
+
var te = lu();
|
|
18340
18340
|
Object.defineProperty(e, "InlayHintRequest", {
|
|
18341
18341
|
enumerable: !0,
|
|
18342
18342
|
get: function() {
|
|
@@ -18353,7 +18353,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18353
18353
|
return te.InlayHintRefreshRequest;
|
|
18354
18354
|
}
|
|
18355
18355
|
});
|
|
18356
|
-
var E =
|
|
18356
|
+
var E = uu();
|
|
18357
18357
|
Object.defineProperty(e, "DiagnosticServerCancellationData", {
|
|
18358
18358
|
enumerable: !0,
|
|
18359
18359
|
get: function() {
|
|
@@ -18380,7 +18380,7 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18380
18380
|
return E.DiagnosticRefreshRequest;
|
|
18381
18381
|
}
|
|
18382
18382
|
});
|
|
18383
|
-
var D =
|
|
18383
|
+
var D = du();
|
|
18384
18384
|
Object.defineProperty(e, "NotebookCellKind", {
|
|
18385
18385
|
enumerable: !0,
|
|
18386
18386
|
get: function() {
|
|
@@ -18432,14 +18432,14 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18432
18432
|
return D.DidCloseNotebookDocumentNotification;
|
|
18433
18433
|
}
|
|
18434
18434
|
});
|
|
18435
|
-
var ne =
|
|
18435
|
+
var ne = fu();
|
|
18436
18436
|
Object.defineProperty(e, "InlineCompletionRequest", {
|
|
18437
18437
|
enumerable: !0,
|
|
18438
18438
|
get: function() {
|
|
18439
18439
|
return ne.InlineCompletionRequest;
|
|
18440
18440
|
}
|
|
18441
18441
|
});
|
|
18442
|
-
var re =
|
|
18442
|
+
var re = pu();
|
|
18443
18443
|
Object.defineProperty(e, "TextDocumentContentRequest", {
|
|
18444
18444
|
enumerable: !0,
|
|
18445
18445
|
get: function() {
|
|
@@ -18770,13 +18770,13 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18770
18770
|
(function(e) {
|
|
18771
18771
|
e.method = "workspace/applyEdit", e.messageDirection = s.MessageDirection.serverToClient, e.type = new s.ProtocolRequestType("workspace/applyEdit"), e.capabilities = s.CM.create("workspace.applyEdit", void 0);
|
|
18772
18772
|
})(dt || (e.ApplyWorkspaceEditRequest = dt = {}));
|
|
18773
|
-
})),
|
|
18773
|
+
})), hu = /* @__PURE__ */ i(((e) => {
|
|
18774
18774
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.createProtocolConnection = n;
|
|
18775
18775
|
var t = lc();
|
|
18776
18776
|
function n(e, n, r, i) {
|
|
18777
18777
|
return t.ConnectionStrategy.is(i) && (i = { connectionStrategy: i }), (0, t.createMessageConnection)(e, n, r, i);
|
|
18778
18778
|
}
|
|
18779
|
-
})),
|
|
18779
|
+
})), gu = (/* @__PURE__ */ i(((e, n, r) => {
|
|
18780
18780
|
var i = r && r.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
18781
18781
|
r === void 0 && (r = n);
|
|
18782
18782
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
@@ -18791,8 +18791,8 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18791
18791
|
})), a = r && r.__exportStar || function(e, t) {
|
|
18792
18792
|
for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && i(t, e, n);
|
|
18793
18793
|
};
|
|
18794
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.LSPErrorCodes = e.createProtocolConnection = void 0, a(lc(), e), a((Wl(), t(uc)), e), a(q(), e), a(
|
|
18795
|
-
var o =
|
|
18794
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.LSPErrorCodes = e.createProtocolConnection = void 0, a(lc(), e), a((Wl(), t(uc)), e), a(q(), e), a(mu(), e);
|
|
18795
|
+
var o = hu();
|
|
18796
18796
|
Object.defineProperty(e, "createProtocolConnection", {
|
|
18797
18797
|
enumerable: !0,
|
|
18798
18798
|
get: function() {
|
|
@@ -18804,30 +18804,30 @@ var Ks = dn.define(), qs = dn.define(), Js = vn.define({
|
|
|
18804
18804
|
e.lspReservedErrorRangeStart = -32899, e.RequestFailed = -32803, e.ServerCancelled = -32802, e.ContentModified = -32801, e.RequestCancelled = -32800, e.lspReservedErrorRangeEnd = -32800;
|
|
18805
18805
|
})(s || (e.LSPErrorCodes = s = {}));
|
|
18806
18806
|
})))();
|
|
18807
|
-
function
|
|
18807
|
+
function _u(e, t) {
|
|
18808
18808
|
if (!(Number.isInteger(t.line) && Number.isInteger(t.character)) || t.line < 0 || t.character < 0) return;
|
|
18809
18809
|
if (t.line >= e.lines) return t.line === e.lines && t.character === 0 ? e.length : void 0;
|
|
18810
18810
|
let n = e.line(t.line + 1);
|
|
18811
18811
|
return Math.min(n.from + t.character, n.to);
|
|
18812
18812
|
}
|
|
18813
|
-
function
|
|
18813
|
+
function J(e, t) {
|
|
18814
18814
|
let n = Number.isFinite(t) ? Math.max(0, Math.min(t, e.length)) : 0, r = e.lineAt(n);
|
|
18815
18815
|
return {
|
|
18816
18816
|
character: n - r.from,
|
|
18817
18817
|
line: r.number - 1
|
|
18818
18818
|
};
|
|
18819
18819
|
}
|
|
18820
|
-
var
|
|
18821
|
-
|
|
18822
|
-
function
|
|
18820
|
+
var vu = new pe.Renderer(), yu = vu.code;
|
|
18821
|
+
vu.code = (e) => e.text.trim() ? yu.call(vu, e) : "";
|
|
18822
|
+
function bu(e) {
|
|
18823
18823
|
return pe(e, {
|
|
18824
18824
|
async: !1,
|
|
18825
18825
|
gfm: !0,
|
|
18826
18826
|
breaks: !0,
|
|
18827
|
-
renderer:
|
|
18827
|
+
renderer: vu
|
|
18828
18828
|
});
|
|
18829
18829
|
}
|
|
18830
|
-
function
|
|
18830
|
+
function xu(e) {
|
|
18831
18831
|
return e.replace(/[&<>"']/g, (e) => ({
|
|
18832
18832
|
"&": "&",
|
|
18833
18833
|
"<": "<",
|
|
@@ -18836,7 +18836,7 @@ function bu(e) {
|
|
|
18836
18836
|
"'": "'"
|
|
18837
18837
|
})[e] ?? e);
|
|
18838
18838
|
}
|
|
18839
|
-
function
|
|
18839
|
+
function Su(e) {
|
|
18840
18840
|
let t = e.trim();
|
|
18841
18841
|
if (t.startsWith("//")) return !1;
|
|
18842
18842
|
try {
|
|
@@ -18846,10 +18846,10 @@ function xu(e) {
|
|
|
18846
18846
|
return !1;
|
|
18847
18847
|
}
|
|
18848
18848
|
}
|
|
18849
|
-
var
|
|
18850
|
-
function
|
|
18849
|
+
var Cu = 5;
|
|
18850
|
+
function wu(e, t) {
|
|
18851
18851
|
let n = e;
|
|
18852
|
-
for (let e = 0; e <
|
|
18852
|
+
for (let e = 0; e < Cu; e++) {
|
|
18853
18853
|
let e = n;
|
|
18854
18854
|
for (let n of t) e = e.replace(n, "");
|
|
18855
18855
|
if (e === n) return {
|
|
@@ -18863,57 +18863,57 @@ function Cu(e, t) {
|
|
|
18863
18863
|
stable: !1
|
|
18864
18864
|
};
|
|
18865
18865
|
}
|
|
18866
|
-
function
|
|
18866
|
+
function Tu(e) {
|
|
18867
18867
|
if (typeof document > "u") {
|
|
18868
|
-
let { html: t, stable: n } =
|
|
18868
|
+
let { html: t, stable: n } = wu(e, [
|
|
18869
18869
|
/<\s*\/?\s*(?:script|style|iframe|object|embed|img)\b[^>]*>/gi,
|
|
18870
18870
|
/\s+on[a-z]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,
|
|
18871
18871
|
/\s+srcdoc\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi
|
|
18872
18872
|
]);
|
|
18873
|
-
return n ? t.replace(/\s+((?:xlink:)?href|src)\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi, (e, t, n) =>
|
|
18873
|
+
return n ? t.replace(/\s+((?:xlink:)?href|src)\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi, (e, t, n) => Su(n[0] === "\"" || n[0] === "'" ? n.slice(1, -1) : n) ? e : ` ${t}=""`) : xu(e);
|
|
18874
18874
|
}
|
|
18875
18875
|
let t = document.createElement("template");
|
|
18876
18876
|
t.innerHTML = e;
|
|
18877
18877
|
for (let e of t.content.querySelectorAll("script, style, iframe, object, embed, img")) e.remove();
|
|
18878
18878
|
for (let e of t.content.querySelectorAll("*")) for (let t of [...e.attributes]) {
|
|
18879
18879
|
let n = t.name.toLowerCase();
|
|
18880
|
-
(n.startsWith("on") || n === "srcdoc" || (n === "href" || n === "src" || n === "xlink:href") && !
|
|
18880
|
+
(n.startsWith("on") || n === "srcdoc" || (n === "href" || n === "src" || n === "xlink:href") && !Su(t.value)) && e.removeAttribute(t.name);
|
|
18881
18881
|
}
|
|
18882
18882
|
return t.innerHTML;
|
|
18883
18883
|
}
|
|
18884
|
-
function
|
|
18885
|
-
return
|
|
18884
|
+
function Eu(e, t = bu) {
|
|
18885
|
+
return Du(e, t, /* @__PURE__ */ new WeakSet());
|
|
18886
18886
|
}
|
|
18887
|
-
function
|
|
18887
|
+
function Du(e, t, n) {
|
|
18888
18888
|
if (!e) return "";
|
|
18889
18889
|
if (typeof e == "object") {
|
|
18890
18890
|
if (n.has(e)) return "";
|
|
18891
18891
|
n.add(e);
|
|
18892
18892
|
}
|
|
18893
|
-
if (
|
|
18893
|
+
if (Fu(e)) {
|
|
18894
18894
|
let n = e.value;
|
|
18895
18895
|
if (typeof n != "string") return "";
|
|
18896
|
-
let r =
|
|
18896
|
+
let r = xu(n);
|
|
18897
18897
|
return e.kind === "markdown" && (r = t(n.trim())), r;
|
|
18898
18898
|
}
|
|
18899
|
-
return Array.isArray(e) ? e.map((e) =>
|
|
18899
|
+
return Array.isArray(e) ? e.map((e) => Du(e, t, n)).filter(Boolean).join("\n\n") : typeof e == "string" ? xu(e) : Lu(e) ? t(`\`\`\`${typeof e.language == "string" ? e.language.replace(/[^\w+-]/g, "") : ""}\n${e.value ?? ""}\n\`\`\``) : "";
|
|
18900
18900
|
}
|
|
18901
|
-
function
|
|
18902
|
-
return e ?
|
|
18901
|
+
function Ou(e) {
|
|
18902
|
+
return e ? Fu(e) ? e.value : Array.isArray(e) ? e.map((e) => Ou(e)).filter(Boolean).join("\n\n") : typeof e == "string" ? e : Lu(e) ? e.value : "" : "";
|
|
18903
18903
|
}
|
|
18904
|
-
function
|
|
18905
|
-
n.allowHTMLContent ? e.innerHTML =
|
|
18904
|
+
function ku(e, t, n) {
|
|
18905
|
+
n.allowHTMLContent ? e.innerHTML = Tu(Eu(t, n.markdownRenderer)) : e.textContent = Ou(t);
|
|
18906
18906
|
}
|
|
18907
|
-
function
|
|
18907
|
+
function Au(e) {
|
|
18908
18908
|
if (e.length === 0) return "";
|
|
18909
18909
|
if (e.length === 1) return e[0] || "";
|
|
18910
18910
|
let t = [...e].sort(), n = t[0] || "", r = t[t.length - 1] || "", i = 0;
|
|
18911
18911
|
for (; i < n.length && n[i] === r[i];) i++;
|
|
18912
18912
|
return n.substring(0, i);
|
|
18913
18913
|
}
|
|
18914
|
-
function
|
|
18914
|
+
function ju(e) {
|
|
18915
18915
|
if (e.length === 0) return;
|
|
18916
|
-
let t =
|
|
18916
|
+
let t = Au(e.map((e) => e.textEdit?.newText ?? e.label));
|
|
18917
18917
|
if (t === "") return;
|
|
18918
18918
|
let n = [];
|
|
18919
18919
|
for (let e = 0; e < t.length; e++) {
|
|
@@ -18926,25 +18926,25 @@ function Au(e) {
|
|
|
18926
18926
|
let r = n.join("|");
|
|
18927
18927
|
return RegExp(`(${r})$`);
|
|
18928
18928
|
}
|
|
18929
|
-
function
|
|
18929
|
+
function Mu(e) {
|
|
18930
18930
|
return e?.range !== void 0;
|
|
18931
18931
|
}
|
|
18932
|
-
function
|
|
18932
|
+
function Nu(e) {
|
|
18933
18933
|
return !Array.isArray(e);
|
|
18934
18934
|
}
|
|
18935
|
-
function
|
|
18935
|
+
function Pu(e) {
|
|
18936
18936
|
return e?.insert !== void 0 && e?.replace !== void 0;
|
|
18937
18937
|
}
|
|
18938
|
-
function
|
|
18938
|
+
function Fu(e) {
|
|
18939
18939
|
return typeof e == "object" && !!e && !Array.isArray(e) && "kind" in e;
|
|
18940
18940
|
}
|
|
18941
|
-
function
|
|
18941
|
+
function Iu(e) {
|
|
18942
18942
|
return typeof e == "string" ? e : e.value;
|
|
18943
18943
|
}
|
|
18944
|
-
function
|
|
18944
|
+
function Lu(e) {
|
|
18945
18945
|
return typeof e == "object" && !!e && "language" in e && "value" in e;
|
|
18946
18946
|
}
|
|
18947
|
-
function
|
|
18947
|
+
function Ru(e, t) {
|
|
18948
18948
|
let n = document.createElement("div");
|
|
18949
18949
|
n.className = "cm-error-message", n.style.cssText = "\n position: absolute;\n padding: 8px;\n background: #fee;\n border: 1px solid #fcc;\n border-radius: 4px;\n color: #c00;\n font-size: 14px;\n z-index: 100;\n max-width: 300px;\n box-shadow: 0 2px 8px rgba(0,0,0,.15);\n", n.textContent = t;
|
|
18950
18950
|
let r = e.coordsAtPos(e.state.selection.main.head);
|
|
@@ -18952,20 +18952,20 @@ function Lu(e, t) {
|
|
|
18952
18952
|
n.style.opacity = "0", n.style.transition = "opacity 0.2s", setTimeout(() => n.remove(), 200);
|
|
18953
18953
|
}, 3e3);
|
|
18954
18954
|
}
|
|
18955
|
-
function
|
|
18956
|
-
return
|
|
18955
|
+
function zu(e) {
|
|
18956
|
+
return Bu(e, /* @__PURE__ */ new WeakSet());
|
|
18957
18957
|
}
|
|
18958
|
-
function
|
|
18958
|
+
function Bu(e, t) {
|
|
18959
18959
|
if (e == null) return !0;
|
|
18960
|
-
if (Array.isArray(e)) return t.has(e) ? !0 : (t.add(e), e.length === 0 || e.every((e) =>
|
|
18961
|
-
if (typeof e == "string") return
|
|
18960
|
+
if (Array.isArray(e)) return t.has(e) ? !0 : (t.add(e), e.length === 0 || e.every((e) => Bu(e, t)));
|
|
18961
|
+
if (typeof e == "string") return Vu(e);
|
|
18962
18962
|
let n = e.value;
|
|
18963
|
-
return typeof n != "string" ||
|
|
18963
|
+
return typeof n != "string" || Vu(n);
|
|
18964
18964
|
}
|
|
18965
|
-
function
|
|
18965
|
+
function Vu(e) {
|
|
18966
18966
|
return e == null ? !0 : typeof e == "string" ? e.trim() === "" || /^[\s\n`]*$/.test(e) : !1;
|
|
18967
18967
|
}
|
|
18968
|
-
function
|
|
18968
|
+
function Hu(e, t) {
|
|
18969
18969
|
let n = [];
|
|
18970
18970
|
return t.iterChanges((t, r, i, a, o) => {
|
|
18971
18971
|
let s = o.toString();
|
|
@@ -18973,7 +18973,7 @@ function Vu(e, t) {
|
|
|
18973
18973
|
n.push({ text: s });
|
|
18974
18974
|
return;
|
|
18975
18975
|
}
|
|
18976
|
-
let c =
|
|
18976
|
+
let c = J(e, t), l = J(e, r);
|
|
18977
18977
|
n.push({
|
|
18978
18978
|
range: {
|
|
18979
18979
|
start: c,
|
|
@@ -18992,22 +18992,22 @@ function Vu(e, t) {
|
|
|
18992
18992
|
}
|
|
18993
18993
|
//#endregion
|
|
18994
18994
|
//#region ../node_modules/.pnpm/@marimo-team+codemirror-languageserver@2.0.1_@codemirror+autocomplete@6.20.3_@codemirro_bee57a85ecc34915859b7c2066696d96/node_modules/@marimo-team/codemirror-languageserver/dist/completion.js
|
|
18995
|
-
var
|
|
18996
|
-
function Uu(e) {
|
|
18997
|
-
return !!(e.deprecated || e.tags?.includes(hu.CompletionItemTag.Deprecated));
|
|
18998
|
-
}
|
|
18995
|
+
var Uu = Object.fromEntries(Object.entries(gu.CompletionItemKind).map(([e, t]) => [t, e]));
|
|
18999
18996
|
function Wu(e) {
|
|
19000
|
-
return e.deprecated
|
|
18997
|
+
return !!(e.deprecated || e.tags?.includes(gu.CompletionItemTag.Deprecated));
|
|
19001
18998
|
}
|
|
19002
18999
|
function Gu(e) {
|
|
19000
|
+
return e.deprecated ? "cm-deprecated" : "";
|
|
19001
|
+
}
|
|
19002
|
+
function Ku(e) {
|
|
19003
19003
|
return "insert" in e;
|
|
19004
19004
|
}
|
|
19005
|
-
function
|
|
19005
|
+
function qu(e, t) {
|
|
19006
19006
|
if (!t) return e;
|
|
19007
19007
|
let n = { ...e };
|
|
19008
19008
|
if (n.commitCharacters ??= t.commitCharacters, n.insertTextFormat ??= t.insertTextFormat, n.insertTextMode ??= t.insertTextMode, n.data === void 0 && (n.data = t.data), n.textEdit == null && t.editRange) {
|
|
19009
19009
|
let e = n.textEditText ?? n.insertText ?? n.label;
|
|
19010
|
-
n.textEdit =
|
|
19010
|
+
n.textEdit = Ku(t.editRange) ? {
|
|
19011
19011
|
newText: e,
|
|
19012
19012
|
insert: t.editRange.insert,
|
|
19013
19013
|
replace: t.editRange.replace
|
|
@@ -19018,13 +19018,13 @@ function Ku(e, t) {
|
|
|
19018
19018
|
}
|
|
19019
19019
|
return n;
|
|
19020
19020
|
}
|
|
19021
|
-
function
|
|
19021
|
+
function Ju(e, t, n, r) {
|
|
19022
19022
|
let { textEdit: i, insertText: a, label: o } = t, s = n, c = r, l = a || o;
|
|
19023
19023
|
if (i) {
|
|
19024
|
-
let t =
|
|
19024
|
+
let t = Mu(i) ? i.range : Pu(i) ? i.replace : void 0;
|
|
19025
19025
|
if (t) {
|
|
19026
19026
|
l = i.newText;
|
|
19027
|
-
let n =
|
|
19027
|
+
let n = _u(e, t.start), r = _u(e, t.end);
|
|
19028
19028
|
n != null && r != null && n <= r && (s = n, c = r);
|
|
19029
19029
|
}
|
|
19030
19030
|
}
|
|
@@ -19034,10 +19034,10 @@ function qu(e, t, n, r) {
|
|
|
19034
19034
|
newText: l
|
|
19035
19035
|
};
|
|
19036
19036
|
}
|
|
19037
|
-
function
|
|
19037
|
+
function Yu(e, t, n, r) {
|
|
19038
19038
|
let i = [];
|
|
19039
19039
|
for (let a of t) {
|
|
19040
|
-
let t =
|
|
19040
|
+
let t = _u(e, a.range.start), o = _u(e, a.range.end);
|
|
19041
19041
|
t == null || o == null || t > o || o > n && t < r || i.push({
|
|
19042
19042
|
from: t,
|
|
19043
19043
|
to: o,
|
|
@@ -19046,15 +19046,15 @@ function Ju(e, t, n, r) {
|
|
|
19046
19046
|
}
|
|
19047
19047
|
return i;
|
|
19048
19048
|
}
|
|
19049
|
-
function
|
|
19049
|
+
function Xu(e, t, n) {
|
|
19050
19050
|
return (r) => r <= e ? r : r - (t - e) + n;
|
|
19051
19051
|
}
|
|
19052
|
-
function
|
|
19053
|
-
let { view: t, originalDoc: n, mainFrom: r, mainTo: i, insertedLength: a, resolveItem: o } = e, s = t.state.doc, c =
|
|
19052
|
+
function Y(e) {
|
|
19053
|
+
let { view: t, originalDoc: n, mainFrom: r, mainTo: i, insertedLength: a, resolveItem: o } = e, s = t.state.doc, c = Xu(r, i, a);
|
|
19054
19054
|
o().then((e) => {
|
|
19055
19055
|
let a = e?.additionalTextEdits;
|
|
19056
19056
|
if (!a?.length || t.state.doc !== s) return;
|
|
19057
|
-
let o =
|
|
19057
|
+
let o = Yu(n, a, r, i).map((e) => ({
|
|
19058
19058
|
...e,
|
|
19059
19059
|
from: c(e.from),
|
|
19060
19060
|
to: c(e.to)
|
|
@@ -19067,30 +19067,30 @@ function X(e) {
|
|
|
19067
19067
|
console.error("Failed to resolve completion item:", e);
|
|
19068
19068
|
});
|
|
19069
19069
|
}
|
|
19070
|
-
var
|
|
19070
|
+
var Zu;
|
|
19071
19071
|
(function(e) {
|
|
19072
19072
|
e.PlainText = 1, e.Snippet = 2;
|
|
19073
|
-
})(
|
|
19074
|
-
var
|
|
19075
|
-
function
|
|
19073
|
+
})(Zu ||= {});
|
|
19074
|
+
var X = /^\$\{(\d+)\|((?:\\.|[^\\}])*)\|\}/, Z = /^\$\{([A-Za-z_][A-Za-z0-9_]*)(?::([^}]*))?\}/, Qu = /^\$[A-Za-z_][A-Za-z0-9_]*/, $u = /^(?:\\.|[^,])*/, ed = /^\{0(?=[:}])/;
|
|
19075
|
+
function td(e, t) {
|
|
19076
19076
|
let n = "", r = 0;
|
|
19077
19077
|
for (; r < e.length;) {
|
|
19078
19078
|
let i = e[r];
|
|
19079
19079
|
if (i === "\\" && r + 1 < e.length) n += e.slice(r, r + 2), r += 2;
|
|
19080
19080
|
else {
|
|
19081
19081
|
if (i === "$") {
|
|
19082
|
-
let i = e.slice(r), a =
|
|
19082
|
+
let i = e.slice(r), a = X.exec(i);
|
|
19083
19083
|
if (a) {
|
|
19084
|
-
let e =
|
|
19084
|
+
let e = $u.exec(a[2] ?? "")?.[0] ?? "";
|
|
19085
19085
|
n += t(a[1] ?? "", e), r += a[0].length;
|
|
19086
19086
|
continue;
|
|
19087
19087
|
}
|
|
19088
|
-
let o =
|
|
19088
|
+
let o = Z.exec(i);
|
|
19089
19089
|
if (o) {
|
|
19090
19090
|
n += o[2] ?? "", r += o[0].length;
|
|
19091
19091
|
continue;
|
|
19092
19092
|
}
|
|
19093
|
-
let s =
|
|
19093
|
+
let s = Qu.exec(i);
|
|
19094
19094
|
if (s) {
|
|
19095
19095
|
r += s[0].length;
|
|
19096
19096
|
continue;
|
|
@@ -19101,20 +19101,20 @@ function ed(e, t) {
|
|
|
19101
19101
|
}
|
|
19102
19102
|
return n;
|
|
19103
19103
|
}
|
|
19104
|
-
function
|
|
19104
|
+
function nd(e) {
|
|
19105
19105
|
let t = 0;
|
|
19106
19106
|
for (let n of e.matchAll(/\$\{?(\d+)/g)) t = Math.max(t, Number(n[1]));
|
|
19107
19107
|
return String(t + 1);
|
|
19108
19108
|
}
|
|
19109
|
-
function
|
|
19110
|
-
let t =
|
|
19109
|
+
function rd(e) {
|
|
19110
|
+
let t = td(e, (e, t) => `\${${e}:${t}}`), n = nd(t), r = "", i = 0;
|
|
19111
19111
|
for (; i < t.length;) {
|
|
19112
19112
|
let e = t[i];
|
|
19113
19113
|
if (e === "\\" && i + 1 < t.length) {
|
|
19114
19114
|
let e = t[i + 1];
|
|
19115
19115
|
e === "$" ? t[i + 2] === "{" ? (r += "$\\{", i += 3) : (r += "$", i += 2) : e === "{" || e === "}" ? (r += `\\${e}`, i += 2) : e === "\\" ? (r += "\\", i += 2) : (r += e, i += 2);
|
|
19116
19116
|
} else if (e === "$") {
|
|
19117
|
-
let a = t.slice(i + 1), o =
|
|
19117
|
+
let a = t.slice(i + 1), o = ed.exec(a), s = /^\d+/.exec(a);
|
|
19118
19118
|
if (o) r += `\${${n}`, i += 1 + o[0].length;
|
|
19119
19119
|
else if (s) {
|
|
19120
19120
|
let e = s[0] === "0" ? n : s[0];
|
|
@@ -19124,8 +19124,8 @@ function nd(e) {
|
|
|
19124
19124
|
}
|
|
19125
19125
|
return r;
|
|
19126
19126
|
}
|
|
19127
|
-
function
|
|
19128
|
-
let t =
|
|
19127
|
+
function id(e) {
|
|
19128
|
+
let t = td(e, (e, t) => t), n = "", r = 0;
|
|
19129
19129
|
for (; r < t.length;) {
|
|
19130
19130
|
let e = t[r];
|
|
19131
19131
|
if (e === "\\" && r + 1 < t.length) n += t[r + 1], r += 2;
|
|
@@ -19140,15 +19140,15 @@ function rd(e) {
|
|
|
19140
19140
|
}
|
|
19141
19141
|
return n;
|
|
19142
19142
|
}
|
|
19143
|
-
function
|
|
19143
|
+
function ad(e, t) {
|
|
19144
19144
|
let { detail: n, labelDetails: r, label: i, kind: a, documentation: o, additionalTextEdits: s, insertTextFormat: c, commitCharacters: l, filterText: u } = e, d = typeof i == "string" ? i : "", f = null, p = () => (f ??= t.resolveItem(e), f), m = {
|
|
19145
19145
|
label: d,
|
|
19146
19146
|
detail: r?.detail || n,
|
|
19147
19147
|
apply(n, r, i, a) {
|
|
19148
|
-
let o = n.state, { from: l, to: u, newText: d } =
|
|
19148
|
+
let o = n.state, { from: l, to: u, newText: d } = Ju(o.doc, e, i, a);
|
|
19149
19149
|
(l > a || u < a) && (l = i, u = a);
|
|
19150
|
-
let f = d, m =
|
|
19151
|
-
!s && t.hasResolveProvider &&
|
|
19150
|
+
let f = d, m = Yu(o.doc, s ?? [], l, u), h = (e) => {
|
|
19151
|
+
!s && t.hasResolveProvider && Y({
|
|
19152
19152
|
view: n,
|
|
19153
19153
|
originalDoc: o.doc,
|
|
19154
19154
|
mainFrom: l,
|
|
@@ -19157,17 +19157,17 @@ function id(e, t) {
|
|
|
19157
19157
|
resolveItem: p
|
|
19158
19158
|
});
|
|
19159
19159
|
};
|
|
19160
|
-
if (c ===
|
|
19160
|
+
if (c === Zu.Snippet && t.useSnippetOnCompletion) {
|
|
19161
19161
|
let e = l, t = u;
|
|
19162
19162
|
if (m.length > 0) {
|
|
19163
19163
|
let r = o.changes(m);
|
|
19164
19164
|
n.dispatch({ changes: r }), e = r.mapPos(e, 1), t = r.mapPos(t, 1);
|
|
19165
19165
|
}
|
|
19166
19166
|
let r = n.state.doc.length;
|
|
19167
|
-
Qn(
|
|
19167
|
+
Qn(rd(f))(n, null, e, t), h(n.state.doc.length - r + (t - e));
|
|
19168
19168
|
return;
|
|
19169
19169
|
}
|
|
19170
|
-
if (c ===
|
|
19170
|
+
if (c === Zu.Snippet && (f = id(f)), m.length === 0) {
|
|
19171
19171
|
n.dispatch(nr(o, f, l, u)), h(f.length);
|
|
19172
19172
|
return;
|
|
19173
19173
|
}
|
|
@@ -19182,12 +19182,12 @@ function id(e, t) {
|
|
|
19182
19182
|
userEvent: "input.complete"
|
|
19183
19183
|
});
|
|
19184
19184
|
},
|
|
19185
|
-
type: a ?
|
|
19185
|
+
type: a ? Uu[a]?.toLowerCase() : void 0
|
|
19186
19186
|
};
|
|
19187
|
-
u != null && u !== d && (m.label = u, m.displayLabel = d), l?.length && (m.commitCharacters = l),
|
|
19187
|
+
u != null && u !== d && (m.label = u, m.displayLabel = d), l?.length && (m.commitCharacters = l), Wu(e) && (m.deprecated = !0);
|
|
19188
19188
|
let h = (e) => {
|
|
19189
19189
|
let n = document.createElement("div");
|
|
19190
|
-
return n.classList.add("documentation"),
|
|
19190
|
+
return n.classList.add("documentation"), ku(n, e, {
|
|
19191
19191
|
allowHTMLContent: t.allowHTMLContent,
|
|
19192
19192
|
markdownRenderer: t.markdownRenderer
|
|
19193
19193
|
}), n;
|
|
@@ -19195,47 +19195,47 @@ function id(e, t) {
|
|
|
19195
19195
|
return t.hasResolveProvider ? m.info = async () => {
|
|
19196
19196
|
try {
|
|
19197
19197
|
let e = (await p())?.documentation || o;
|
|
19198
|
-
return !e ||
|
|
19198
|
+
return !e || zu(e) ? null : h(e);
|
|
19199
19199
|
} catch (e) {
|
|
19200
|
-
return console.error("Failed to resolve completion item:", e), !o ||
|
|
19200
|
+
return console.error("Failed to resolve completion item:", e), !o || zu(o) ? null : h(o);
|
|
19201
19201
|
}
|
|
19202
19202
|
} : o && (m.info = () => h(o)), m;
|
|
19203
19203
|
}
|
|
19204
|
-
function
|
|
19205
|
-
let i = [t ?
|
|
19204
|
+
function od(e, t, n, r = !0) {
|
|
19205
|
+
let i = [t ? sd(t) : cd, n === "python" ? ld : void 0].filter(Boolean), a = [...e];
|
|
19206
19206
|
if (t && r) {
|
|
19207
19207
|
let e = t.toLowerCase();
|
|
19208
|
-
/^\w+$/.test(e) && (a = a.filter(({ label: t, filterText: n }) => (typeof n == "string" ? n :
|
|
19208
|
+
/^\w+$/.test(e) && (a = a.filter(({ label: t, filterText: n }) => (typeof n == "string" ? n : dd(t)).toLowerCase().startsWith(e)));
|
|
19209
19209
|
}
|
|
19210
19210
|
for (let e of i) a.sort(e);
|
|
19211
19211
|
return a;
|
|
19212
19212
|
}
|
|
19213
|
-
function
|
|
19213
|
+
function sd(e) {
|
|
19214
19214
|
return (t, n) => {
|
|
19215
|
-
let r =
|
|
19215
|
+
let r = ud(t).startsWith(e), i = ud(n).startsWith(e);
|
|
19216
19216
|
if (r && !i) return -1;
|
|
19217
19217
|
if (!r && i) return 1;
|
|
19218
|
-
let a = typeof t.sortText == "string" ? t.sortText :
|
|
19218
|
+
let a = typeof t.sortText == "string" ? t.sortText : dd(t.label), o = typeof n.sortText == "string" ? n.sortText : dd(n.label);
|
|
19219
19219
|
return a.localeCompare(o);
|
|
19220
19220
|
};
|
|
19221
19221
|
}
|
|
19222
|
-
function
|
|
19223
|
-
let n = typeof e.sortText == "string" ? e.sortText :
|
|
19222
|
+
function cd(e, t) {
|
|
19223
|
+
let n = typeof e.sortText == "string" ? e.sortText : dd(e.label), r = typeof t.sortText == "string" ? t.sortText : dd(t.label);
|
|
19224
19224
|
return n.localeCompare(r);
|
|
19225
19225
|
}
|
|
19226
|
-
function
|
|
19227
|
-
let n =
|
|
19226
|
+
function ld(e, t) {
|
|
19227
|
+
let n = dd(e.label).endsWith("="), r = dd(t.label).endsWith("=");
|
|
19228
19228
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
19229
19229
|
}
|
|
19230
|
-
function ld(e) {
|
|
19231
|
-
return typeof e.filterText == "string" ? e.filterText : ud(e.label);
|
|
19232
|
-
}
|
|
19233
19230
|
function ud(e) {
|
|
19231
|
+
return typeof e.filterText == "string" ? e.filterText : dd(e.label);
|
|
19232
|
+
}
|
|
19233
|
+
function dd(e) {
|
|
19234
19234
|
return typeof e == "string" ? e : "";
|
|
19235
19235
|
}
|
|
19236
19236
|
//#endregion
|
|
19237
19237
|
//#region ../node_modules/.pnpm/@marimo-team+codemirror-languageserver@2.0.1_@codemirror+autocomplete@6.20.3_@codemirro_bee57a85ecc34915859b7c2066696d96/node_modules/@marimo-team/codemirror-languageserver/dist/config.js
|
|
19238
|
-
function
|
|
19238
|
+
function fd(e) {
|
|
19239
19239
|
let t = new Proxy({}, { get() {
|
|
19240
19240
|
throw Error(e);
|
|
19241
19241
|
} });
|
|
@@ -19243,8 +19243,8 @@ function dd(e) {
|
|
|
19243
19243
|
return e[0] ?? t;
|
|
19244
19244
|
};
|
|
19245
19245
|
}
|
|
19246
|
-
var
|
|
19247
|
-
function
|
|
19246
|
+
var pd = fd("No document URI provided. Pass one to the extension or use documentUri.of()."), md = fd("No language ID provided. Pass one to the extension or use languageId.of().");
|
|
19247
|
+
function hd(e) {
|
|
19248
19248
|
if (e !== e.trim()) return !1;
|
|
19249
19249
|
try {
|
|
19250
19250
|
return !!new URL(e).protocol;
|
|
@@ -19252,17 +19252,17 @@ function md(e) {
|
|
|
19252
19252
|
return !1;
|
|
19253
19253
|
}
|
|
19254
19254
|
}
|
|
19255
|
-
var
|
|
19256
|
-
if (e.length === 0) return fd(e);
|
|
19257
|
-
let t = fd(e);
|
|
19258
|
-
if (!(t && md(t))) throw Error("Document URI must be a non-empty absolute URI");
|
|
19259
|
-
return t;
|
|
19260
|
-
} }), gd = In.define({ combine(e) {
|
|
19255
|
+
var gd = In.define({ combine(e) {
|
|
19261
19256
|
if (e.length === 0) return pd(e);
|
|
19262
19257
|
let t = pd(e);
|
|
19258
|
+
if (!(t && hd(t))) throw Error("Document URI must be a non-empty absolute URI");
|
|
19259
|
+
return t;
|
|
19260
|
+
} }), _d = In.define({ combine(e) {
|
|
19261
|
+
if (e.length === 0) return md(e);
|
|
19262
|
+
let t = md(e);
|
|
19263
19263
|
if (!t.trim()) throw Error("Language ID must be a non-empty string");
|
|
19264
19264
|
return t;
|
|
19265
|
-
} }),
|
|
19265
|
+
} }), Q = {
|
|
19266
19266
|
ParseError: -32700,
|
|
19267
19267
|
InvalidRequest: -32600,
|
|
19268
19268
|
MethodNotFound: -32601,
|
|
@@ -19280,7 +19280,7 @@ function bd(e) {
|
|
|
19280
19280
|
return e.id != null;
|
|
19281
19281
|
}
|
|
19282
19282
|
function xd(e) {
|
|
19283
|
-
return e instanceof Error ? e : new vd(
|
|
19283
|
+
return e instanceof Error ? e : new vd(Q.InternalError, String(e));
|
|
19284
19284
|
}
|
|
19285
19285
|
var Sd = class {
|
|
19286
19286
|
transport;
|
|
@@ -19310,7 +19310,7 @@ var Sd = class {
|
|
|
19310
19310
|
}
|
|
19311
19311
|
request(e, t, n = yd, r) {
|
|
19312
19312
|
if (r?.aborted) return Promise.reject(new DOMException("Request aborted", "AbortError"));
|
|
19313
|
-
if (this.closed) return Promise.reject(new vd(
|
|
19313
|
+
if (this.closed) return Promise.reject(new vd(Q.InternalError, "Client closed"));
|
|
19314
19314
|
if (this.closeError) return Promise.reject(this.closeError);
|
|
19315
19315
|
let i = this.nextId++;
|
|
19316
19316
|
return new Promise((a, o) => {
|
|
@@ -19326,7 +19326,7 @@ var Sd = class {
|
|
|
19326
19326
|
let r = this.pending.get(i);
|
|
19327
19327
|
if (r) {
|
|
19328
19328
|
r.timer = setTimeout(() => {
|
|
19329
|
-
c(new vd(
|
|
19329
|
+
c(new vd(Q.RequestTimeout, `Request "${e}" timed out after ${n}ms`));
|
|
19330
19330
|
}, n);
|
|
19331
19331
|
try {
|
|
19332
19332
|
s = !0, this.transport.send({
|
|
@@ -19357,7 +19357,7 @@ var Sd = class {
|
|
|
19357
19357
|
close() {
|
|
19358
19358
|
if (!this.closed) {
|
|
19359
19359
|
this.closed = !0;
|
|
19360
|
-
for (let e of [...this.pending.keys()]) this.settle(e, (e) => e.reject(new vd(
|
|
19360
|
+
for (let e of [...this.pending.keys()]) this.settle(e, (e) => e.reject(new vd(Q.InternalError, "Client closed")));
|
|
19361
19361
|
this.disconnect(), this.disconnectClose?.(), this.transport.close();
|
|
19362
19362
|
}
|
|
19363
19363
|
}
|
|
@@ -19392,11 +19392,11 @@ var Sd = class {
|
|
|
19392
19392
|
if ("error" in t) {
|
|
19393
19393
|
let n = t.error;
|
|
19394
19394
|
if (typeof n != "object" || !n || typeof n.code != "number" || typeof n.message != "string") {
|
|
19395
|
-
e.reject(new vd(
|
|
19395
|
+
e.reject(new vd(Q.InvalidRequest, "Malformed JSON-RPC error response", n));
|
|
19396
19396
|
return;
|
|
19397
19397
|
}
|
|
19398
19398
|
e.reject(new vd(n.code, n.message, n.data));
|
|
19399
|
-
} else "result" in t ? e.resolve(t.result) : e.reject(new vd(
|
|
19399
|
+
} else "result" in t ? e.resolve(t.result) : e.reject(new vd(Q.InvalidRequest, "Malformed JSON-RPC response: missing result or error"));
|
|
19400
19400
|
});
|
|
19401
19401
|
}
|
|
19402
19402
|
}, Cd = 1e4, wd = "Language server: ", Td = {
|
|
@@ -19594,7 +19594,7 @@ var Sd = class {
|
|
|
19594
19594
|
jsonrpc: "2.0",
|
|
19595
19595
|
id: e.id,
|
|
19596
19596
|
error: {
|
|
19597
|
-
code:
|
|
19597
|
+
code: Q.MethodNotFound,
|
|
19598
19598
|
message: `Method not found: ${e.method}`
|
|
19599
19599
|
}
|
|
19600
19600
|
};
|
|
@@ -19610,7 +19610,7 @@ var Sd = class {
|
|
|
19610
19610
|
jsonrpc: "2.0",
|
|
19611
19611
|
id: e.id,
|
|
19612
19612
|
error: {
|
|
19613
|
-
code:
|
|
19613
|
+
code: Q.InternalError,
|
|
19614
19614
|
message: t instanceof Error ? t.message : String(t)
|
|
19615
19615
|
}
|
|
19616
19616
|
};
|
|
@@ -19878,7 +19878,7 @@ var Gd = class {
|
|
|
19878
19878
|
closeCodeActionMenu;
|
|
19879
19879
|
closeRenamePopup;
|
|
19880
19880
|
constructor(e) {
|
|
19881
|
-
let { client: t, documentUri: n, languageId: r, view: i, featureOptions: a, sendIncrementalChanges: o = !0, allowHTMLContent: s = !1, useSnippetOnCompletion: c = !1, clientSideFiltering: l = !1, onGoToDefinition: u, onShowLocation: d, markdownRenderer: f =
|
|
19881
|
+
let { client: t, documentUri: n, languageId: r, view: i, featureOptions: a, sendIncrementalChanges: o = !0, allowHTMLContent: s = !1, useSnippetOnCompletion: c = !1, clientSideFiltering: l = !1, onGoToDefinition: u, onShowLocation: d, markdownRenderer: f = bu, codeActionsConfig: p } = e;
|
|
19882
19882
|
this.documentVersion = 0, this.pluginId = Ad(), this.client = t, this.documentUri = n, this.languageId = r, this.view = i, this.allowHTMLContent = s, this.useSnippetOnCompletion = c, this.clientSideFiltering = l, this.sendIncrementalChanges = o, this.featureOptions = a, this.onGoToDefinition = u, this.onShowLocation = d, this.markdownRenderer = f, this.codeActionsConfig = p, Ud(i, this), this.disposeListener = t.onNotification(this.processNotification.bind(this)), this.documentReady = this.initialize().catch((e) => {
|
|
19883
19883
|
console.error("Language server initialization failed", e);
|
|
19884
19884
|
});
|
|
@@ -19886,7 +19886,7 @@ var Gd = class {
|
|
|
19886
19886
|
update({ state: e, docChanged: t, startState: { doc: n }, changes: r }) {
|
|
19887
19887
|
if (!t) return;
|
|
19888
19888
|
let i = this.resolveTextDocumentSyncKind();
|
|
19889
|
-
i !==
|
|
19889
|
+
i !== gu.TextDocumentSyncKind.None && (this.sendIncrementalChanges && i === gu.TextDocumentSyncKind.Incremental ? this.trackDocumentChanges(Hu(n, r)) : this.trackDocumentChanges([{ text: e.doc.toString() }]));
|
|
19890
19890
|
}
|
|
19891
19891
|
trackDocumentChanges(e) {
|
|
19892
19892
|
let t = this.sendChanges(e);
|
|
@@ -19917,7 +19917,7 @@ var Gd = class {
|
|
|
19917
19917
|
}
|
|
19918
19918
|
resolveTextDocumentSyncKind() {
|
|
19919
19919
|
let e = this.client.capabilities?.textDocumentSync;
|
|
19920
|
-
return e == null ? this.sendIncrementalChanges ?
|
|
19920
|
+
return e == null ? this.sendIncrementalChanges ? gu.TextDocumentSyncKind.Incremental : gu.TextDocumentSyncKind.Full : typeof e == "number" ? e : e.change ?? gu.TextDocumentSyncKind.None;
|
|
19921
19921
|
}
|
|
19922
19922
|
async sendChanges(e) {
|
|
19923
19923
|
let t = this.documentTextSnapshotted;
|
|
@@ -19933,7 +19933,7 @@ var Gd = class {
|
|
|
19933
19933
|
console.error(e);
|
|
19934
19934
|
}
|
|
19935
19935
|
}
|
|
19936
|
-
async documentDidSave(e =
|
|
19936
|
+
async documentDidSave(e = gu.TextDocumentSaveReason.Manual) {
|
|
19937
19937
|
if (!this.client.ready || (await Promise.all(this.pendingDocumentChanges), this.destroyed || !this.client.ready)) return;
|
|
19938
19938
|
let t = this.client.capabilities?.textDocumentSync, n = typeof t == "object" && t ? t : void 0;
|
|
19939
19939
|
if (n?.willSave) {
|
|
@@ -19989,13 +19989,13 @@ var Gd = class {
|
|
|
19989
19989
|
return null;
|
|
19990
19990
|
}
|
|
19991
19991
|
if (!r) return null;
|
|
19992
|
-
let { contents: i, range: a } = r, o =
|
|
19992
|
+
let { contents: i, range: a } = r, o = _u(e.state.doc, {
|
|
19993
19993
|
line: t,
|
|
19994
19994
|
character: n
|
|
19995
19995
|
}), s;
|
|
19996
|
-
if (a && (o =
|
|
19996
|
+
if (a && (o = _u(e.state.doc, a.start), s = _u(e.state.doc, a.end)), o == null || zu(i)) return null;
|
|
19997
19997
|
let c = document.createElement("div");
|
|
19998
|
-
return c.classList.add("documentation", "cm-lsp-hover-tooltip"),
|
|
19998
|
+
return c.classList.add("documentation", "cm-lsp-hover-tooltip"), ku(c, i, {
|
|
19999
19999
|
allowHTMLContent: this.allowHTMLContent,
|
|
20000
20000
|
markdownRenderer: this.markdownRenderer
|
|
20001
20001
|
}), {
|
|
@@ -20024,14 +20024,14 @@ var Gd = class {
|
|
|
20024
20024
|
return null;
|
|
20025
20025
|
}
|
|
20026
20026
|
if (!a) return null;
|
|
20027
|
-
let o =
|
|
20027
|
+
let o = Nu(a) ? a : {
|
|
20028
20028
|
isIncomplete: !1,
|
|
20029
20029
|
items: a
|
|
20030
20030
|
};
|
|
20031
20031
|
if (!Array.isArray(o.items)) return null;
|
|
20032
|
-
let s = o.items.map((e) =>
|
|
20032
|
+
let s = o.items.map((e) => qu(e, o.itemDefaults)), c = this.clientSideFiltering && !o.isIncomplete, l = ju(s), u = l ? e.matchBefore(l) ?? e.matchBefore(/[a-zA-Z0-9_]+/) : e.matchBefore(/[a-zA-Z0-9_]+/), { pos: d } = e, f = od(s, u?.text, this.languageId, !c);
|
|
20033
20033
|
u && (d = u.from);
|
|
20034
|
-
let p = f.map((e) =>
|
|
20034
|
+
let p = f.map((e) => ad(e, {
|
|
20035
20035
|
allowHTMLContent: this.allowHTMLContent,
|
|
20036
20036
|
useSnippetOnCompletion: this.useSnippetOnCompletion,
|
|
20037
20037
|
hasResolveProvider: this.client.capabilities?.completionProvider?.resolveProvider ?? !1,
|
|
@@ -20074,7 +20074,7 @@ var Gd = class {
|
|
|
20074
20074
|
isExternalDocument: c
|
|
20075
20075
|
};
|
|
20076
20076
|
if (!c) {
|
|
20077
|
-
let t =
|
|
20077
|
+
let t = _u(e.state.doc, s.start), n = _u(e.state.doc, s.end);
|
|
20078
20078
|
if (t == null || n == null || t > n) return;
|
|
20079
20079
|
e.dispatch(e.state.update({ selection: {
|
|
20080
20080
|
anchor: t,
|
|
@@ -20102,13 +20102,13 @@ var Gd = class {
|
|
|
20102
20102
|
return;
|
|
20103
20103
|
}
|
|
20104
20104
|
let t = {
|
|
20105
|
-
[
|
|
20106
|
-
[
|
|
20107
|
-
[
|
|
20108
|
-
[
|
|
20105
|
+
[gu.DiagnosticSeverity.Error]: "error",
|
|
20106
|
+
[gu.DiagnosticSeverity.Warning]: "warning",
|
|
20107
|
+
[gu.DiagnosticSeverity.Information]: "info",
|
|
20108
|
+
[gu.DiagnosticSeverity.Hint]: "hint"
|
|
20109
20109
|
}, n = this.view.state.doc, r = e.diagnostics.filter((e) => {
|
|
20110
20110
|
if (!e || typeof e != "object" || !e.range || typeof e.message != "string" && (typeof e.message != "object" || e.message === null || typeof e.message.value != "string")) return !1;
|
|
20111
|
-
let t =
|
|
20111
|
+
let t = _u(n, e.range.start), r = _u(n, e.range.end);
|
|
20112
20112
|
return t != null && r != null && t <= r;
|
|
20113
20113
|
});
|
|
20114
20114
|
if (e.diagnostics.length > 0 && r.length === 0) return;
|
|
@@ -20120,11 +20120,11 @@ var Gd = class {
|
|
|
20120
20120
|
}
|
|
20121
20121
|
if (this.destroyed || e.version != null && this.lastSeenDiagnosticsVersion != null && e.version < this.lastSeenDiagnosticsVersion || this.view.state.doc !== n) return;
|
|
20122
20122
|
let a = /* @__PURE__ */ new Map(), o = r.map((e, r) => {
|
|
20123
|
-
let { range: o, message: s, severity: c, code: l, source: u, tags: d } = e, f =
|
|
20123
|
+
let { range: o, message: s, severity: c, code: l, source: u, tags: d } = e, f = _u(n, o.start), p = _u(n, o.end);
|
|
20124
20124
|
if (f == null || p == null || f > p) return null;
|
|
20125
20125
|
e.relatedInformation?.forEach((e, t) => {
|
|
20126
20126
|
if (e.location.uri !== this.documentUri) return;
|
|
20127
|
-
let i =
|
|
20127
|
+
let i = _u(n, e.location.range.start), o = _u(n, e.location.range.end);
|
|
20128
20128
|
i != null && o != null && a.set(`${this.pluginId}:${r}:${t}`, {
|
|
20129
20129
|
from: i,
|
|
20130
20130
|
to: o
|
|
@@ -20136,11 +20136,11 @@ var Gd = class {
|
|
|
20136
20136
|
this.applyCodeAction(e);
|
|
20137
20137
|
}
|
|
20138
20138
|
})), h = u || this.languageId, g = l != null && l !== "" ? `${h}(${l})` : h, _ = [this.pluginId];
|
|
20139
|
-
return d?.includes(
|
|
20139
|
+
return d?.includes(gu.DiagnosticTag.Unnecessary) && _.push("cm-lsp-unnecessary"), d?.includes(gu.DiagnosticTag.Deprecated) && _.push("cm-lsp-deprecated"), {
|
|
20140
20140
|
from: f,
|
|
20141
20141
|
to: p,
|
|
20142
|
-
severity: t[c ??
|
|
20143
|
-
message:
|
|
20142
|
+
severity: t[c ?? gu.DiagnosticSeverity.Error] ?? "error",
|
|
20143
|
+
message: Iu(s),
|
|
20144
20144
|
renderMessage: (t) => this.renderDiagnosticMessage(t, e, r),
|
|
20145
20145
|
source: g,
|
|
20146
20146
|
markClass: _.join(" "),
|
|
@@ -20175,9 +20175,9 @@ var Gd = class {
|
|
|
20175
20175
|
let { message: r, code: i, source: a, codeDescription: o, relatedInformation: s } = t, c = document.createElement("div");
|
|
20176
20176
|
c.classList.add("cm-lsp-diagnostic-message");
|
|
20177
20177
|
let l = document.createElement("div");
|
|
20178
|
-
if (
|
|
20178
|
+
if (ku(l, {
|
|
20179
20179
|
kind: "markdown",
|
|
20180
|
-
value:
|
|
20180
|
+
value: Iu(r)
|
|
20181
20181
|
}, {
|
|
20182
20182
|
allowHTMLContent: this.allowHTMLContent,
|
|
20183
20183
|
markdownRenderer: this.markdownRenderer
|
|
@@ -20198,16 +20198,16 @@ var Gd = class {
|
|
|
20198
20198
|
if (s) return null;
|
|
20199
20199
|
let t = e.state.field(Ld, !1)?.get(n);
|
|
20200
20200
|
if (t) return t;
|
|
20201
|
-
let r =
|
|
20201
|
+
let r = _u(e.state.doc, o.start);
|
|
20202
20202
|
return r == null ? null : {
|
|
20203
20203
|
from: r,
|
|
20204
|
-
to:
|
|
20204
|
+
to: _u(e.state.doc, o.end) ?? r
|
|
20205
20205
|
};
|
|
20206
20206
|
}, l = document.createElement("div");
|
|
20207
20207
|
l.className = "cm-diagnostic-related-item";
|
|
20208
20208
|
let u = document.createElement("span");
|
|
20209
20209
|
u.className = "cm-diagnostic-related-message", u.textContent = i, l.appendChild(u);
|
|
20210
|
-
let d = c(), f = d && !s ?
|
|
20210
|
+
let d = c(), f = d && !s ? J(e.state.doc, d.from) : o.start, p = document.createElement("span");
|
|
20211
20211
|
if (p.className = "cm-diagnostic-related-location", p.textContent = ` ${a}:${f.line + 1}:${f.character + 1}`, l.appendChild(p), !s || this.onShowLocation) {
|
|
20212
20212
|
l.classList.add("cm-diagnostic-related-clickable"), l.setAttribute("role", "button"), l.tabIndex = 0;
|
|
20213
20213
|
let t = () => {
|
|
@@ -20264,24 +20264,24 @@ var Gd = class {
|
|
|
20264
20264
|
async requestCodeActionsAtSelection(e) {
|
|
20265
20265
|
let { from: t, to: n } = e.state.selection.main;
|
|
20266
20266
|
return await this.requestCodeActions(e, {
|
|
20267
|
-
start:
|
|
20268
|
-
end:
|
|
20267
|
+
start: J(e.state.doc, t),
|
|
20268
|
+
end: J(e.state.doc, n)
|
|
20269
20269
|
});
|
|
20270
20270
|
}
|
|
20271
20271
|
diagnosticsInRange(e, t) {
|
|
20272
|
-
let n = e.state.doc, r =
|
|
20272
|
+
let n = e.state.doc, r = _u(n, t.start), i = _u(n, t.end);
|
|
20273
20273
|
if (r == null || i == null) return [];
|
|
20274
20274
|
let a = {
|
|
20275
|
-
error:
|
|
20276
|
-
warning:
|
|
20277
|
-
info:
|
|
20278
|
-
hint:
|
|
20275
|
+
error: gu.DiagnosticSeverity.Error,
|
|
20276
|
+
warning: gu.DiagnosticSeverity.Warning,
|
|
20277
|
+
info: gu.DiagnosticSeverity.Information,
|
|
20278
|
+
hint: gu.DiagnosticSeverity.Hint
|
|
20279
20279
|
}, o = [];
|
|
20280
20280
|
return qn(e.state, (e, t, s) => {
|
|
20281
20281
|
if (t > i || s < r) return;
|
|
20282
20282
|
let c = {
|
|
20283
|
-
start:
|
|
20284
|
-
end:
|
|
20283
|
+
start: J(n, t),
|
|
20284
|
+
end: J(n, s)
|
|
20285
20285
|
}, l = e.lspDiagnostic;
|
|
20286
20286
|
l ? o.push({
|
|
20287
20287
|
...l,
|
|
@@ -20296,7 +20296,7 @@ var Gd = class {
|
|
|
20296
20296
|
}
|
|
20297
20297
|
async applyCodeAction(e) {
|
|
20298
20298
|
let t = await this.resolveCodeAction(e);
|
|
20299
|
-
this.destroyed || (jd(t) ? Od("Executing command:", t) : (t.edit && await this.applyWorkspaceEdit(this.view, t.edit), t.command ? Od("Executing command:", t.command) : t.edit ||
|
|
20299
|
+
this.destroyed || (jd(t) ? Od("Executing command:", t) : (t.edit && await this.applyWorkspaceEdit(this.view, t.edit), t.command ? Od("Executing command:", t.command) : t.edit || Ru(this.view, `Code action "${e.title}" has nothing to apply`)));
|
|
20300
20300
|
}
|
|
20301
20301
|
async resolveCodeAction(e) {
|
|
20302
20302
|
if (jd(e) || e.edit || e.command || !this.serverSupportsCodeActionResolve()) return e;
|
|
@@ -20315,7 +20315,7 @@ var Gd = class {
|
|
|
20315
20315
|
async showCodeActionsMenu(e) {
|
|
20316
20316
|
let t = e.state, n = await this.requestCodeActionsAtSelection(e);
|
|
20317
20317
|
if (this.destroyed || e.state.doc !== t.doc || !e.state.selection.main.eq(t.selection.main)) return !1;
|
|
20318
|
-
if (!n || n.length === 0) return
|
|
20318
|
+
if (!n || n.length === 0) return Ru(e, "No code actions available"), !1;
|
|
20319
20319
|
let r = async (e) => {
|
|
20320
20320
|
await this.applyCodeAction(e);
|
|
20321
20321
|
};
|
|
@@ -20365,8 +20365,8 @@ var Gd = class {
|
|
|
20365
20365
|
}
|
|
20366
20366
|
async requestRename(e, { line: t, character: n }) {
|
|
20367
20367
|
if (this.featureOptions.renameEnabled) {
|
|
20368
|
-
if (!this.client.ready)
|
|
20369
|
-
else if (!this.client.hasCapability("textDocument/rename"))
|
|
20368
|
+
if (!this.client.ready) Ru(e, "Language server not ready");
|
|
20369
|
+
else if (!this.client.hasCapability("textDocument/rename")) Ru(e, "Rename not supported by language server");
|
|
20370
20370
|
else try {
|
|
20371
20371
|
let r = await this.client.textDocumentPrepareRename({
|
|
20372
20372
|
textDocument: { uri: this.documentUri },
|
|
@@ -20379,13 +20379,13 @@ var Gd = class {
|
|
|
20379
20379
|
character: n
|
|
20380
20380
|
}));
|
|
20381
20381
|
if (!r) {
|
|
20382
|
-
|
|
20382
|
+
Ru(e, "Cannot rename this symbol");
|
|
20383
20383
|
return;
|
|
20384
20384
|
}
|
|
20385
20385
|
let i;
|
|
20386
20386
|
if ("defaultBehavior" in r) {
|
|
20387
20387
|
if (!r.defaultBehavior) {
|
|
20388
|
-
|
|
20388
|
+
Ru(e, "Cannot rename this symbol");
|
|
20389
20389
|
return;
|
|
20390
20390
|
}
|
|
20391
20391
|
let a = this.prepareRenameFallback(e, {
|
|
@@ -20393,7 +20393,7 @@ var Gd = class {
|
|
|
20393
20393
|
character: n
|
|
20394
20394
|
});
|
|
20395
20395
|
if (!a) {
|
|
20396
|
-
|
|
20396
|
+
Ru(e, "Cannot rename this symbol");
|
|
20397
20397
|
return;
|
|
20398
20398
|
}
|
|
20399
20399
|
i = a;
|
|
@@ -20402,9 +20402,9 @@ var Gd = class {
|
|
|
20402
20402
|
a.className = "cm-rename-popup", a.style.cssText = "position: absolute; padding: 4px; background: white; border: 1px solid #ddd; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 99;";
|
|
20403
20403
|
let o = document.createElement("input");
|
|
20404
20404
|
o.type = "text", o.style.cssText = "width: 200px; padding: 4px; border: 1px solid #ddd;";
|
|
20405
|
-
let s = "range" in i ? i.range : i, c =
|
|
20405
|
+
let s = "range" in i ? i.range : i, c = _u(e.state.doc, s.start);
|
|
20406
20406
|
if (c == null) return;
|
|
20407
|
-
let l =
|
|
20407
|
+
let l = _u(e.state.doc, s.end);
|
|
20408
20408
|
o.value = "placeholder" in i ? i.placeholder : l == null ? "" : e.state.doc.sliceString(c, l);
|
|
20409
20409
|
let u = o.value;
|
|
20410
20410
|
a.appendChild(o);
|
|
@@ -20417,8 +20417,8 @@ var Gd = class {
|
|
|
20417
20417
|
a.remove(), document.removeEventListener("mousedown", f), this.closeRenamePopup === p && (this.closeRenamePopup = void 0);
|
|
20418
20418
|
}, m = async () => {
|
|
20419
20419
|
let r = o.value.trim();
|
|
20420
|
-
if (!r)
|
|
20421
|
-
else if (/[\r\n]/.test(r))
|
|
20420
|
+
if (!r) Ru(e, "New name cannot be empty"), p();
|
|
20421
|
+
else if (/[\r\n]/.test(r)) Ru(e, "New name must be a single line"), p();
|
|
20422
20422
|
else if (r === u) p();
|
|
20423
20423
|
else try {
|
|
20424
20424
|
let i = e.state.doc, a = await this.client.textDocumentRename({
|
|
@@ -20432,7 +20432,7 @@ var Gd = class {
|
|
|
20432
20432
|
if (this.destroyed || e.state.doc !== i) return;
|
|
20433
20433
|
await this.applyRenameEdit(e, a);
|
|
20434
20434
|
} catch (t) {
|
|
20435
|
-
|
|
20435
|
+
Ru(e, `Rename failed: ${t instanceof Error ? t.message : "Unknown error"}`);
|
|
20436
20436
|
} finally {
|
|
20437
20437
|
p();
|
|
20438
20438
|
}
|
|
@@ -20441,7 +20441,7 @@ var Gd = class {
|
|
|
20441
20441
|
e.key === "Enter" ? m() : e.key === "Escape" && p(), e.stopPropagation();
|
|
20442
20442
|
}), this.closeRenamePopup?.(), this.closeRenamePopup = p, document.addEventListener("mousedown", f), document.body.appendChild(a), o.focus(), o.select();
|
|
20443
20443
|
} catch (t) {
|
|
20444
|
-
|
|
20444
|
+
Ru(e, `Rename failed: ${t instanceof Error ? t.message : "Unknown error"}`);
|
|
20445
20445
|
}
|
|
20446
20446
|
}
|
|
20447
20447
|
}
|
|
@@ -20467,7 +20467,7 @@ var Gd = class {
|
|
|
20467
20467
|
a.appendChild(l), s.documentation && a.appendChild(this.createDocumentationElement(s.documentation));
|
|
20468
20468
|
let u = s.parameters?.[c];
|
|
20469
20469
|
u?.documentation && a.appendChild(this.createParameterDocElement(u.documentation));
|
|
20470
|
-
let d =
|
|
20470
|
+
let d = _u(e.state.doc, {
|
|
20471
20471
|
line: t,
|
|
20472
20472
|
character: n
|
|
20473
20473
|
});
|
|
@@ -20482,7 +20482,7 @@ var Gd = class {
|
|
|
20482
20482
|
}
|
|
20483
20483
|
}
|
|
20484
20484
|
async showSignatureHelpTooltip(e, t, n) {
|
|
20485
|
-
let r = ++this.signatureHelpRequestId, i = await this.requestSignatureHelp(e,
|
|
20485
|
+
let r = ++this.signatureHelpRequestId, i = await this.requestSignatureHelp(e, J(e.state.doc, t), n);
|
|
20486
20486
|
this.destroyed || r !== this.signatureHelpRequestId || e.dispatch({ effects: Rd.of(i) });
|
|
20487
20487
|
}
|
|
20488
20488
|
createTooltipContainer() {
|
|
@@ -20527,14 +20527,14 @@ var Gd = class {
|
|
|
20527
20527
|
}
|
|
20528
20528
|
createDocumentationElement(e) {
|
|
20529
20529
|
let t = document.createElement("div");
|
|
20530
|
-
return t.classList.add("cm-signature-docs"), t.style.cssText = "margin-top: 4px; color: #666;",
|
|
20530
|
+
return t.classList.add("cm-signature-docs"), t.style.cssText = "margin-top: 4px; color: #666;", ku(t, e, {
|
|
20531
20531
|
allowHTMLContent: this.allowHTMLContent,
|
|
20532
20532
|
markdownRenderer: this.markdownRenderer
|
|
20533
20533
|
}), t;
|
|
20534
20534
|
}
|
|
20535
20535
|
createParameterDocElement(e) {
|
|
20536
20536
|
let t = document.createElement("div");
|
|
20537
|
-
return t.classList.add("cm-parameter-docs"), t.style.cssText = "margin-top: 4px; font-style: italic; border-top: 1px solid #eee; padding-top: 4px;",
|
|
20537
|
+
return t.classList.add("cm-parameter-docs"), t.style.cssText = "margin-top: 4px; font-style: italic; border-top: 1px solid #eee; padding-top: 4px;", ku(t, e, {
|
|
20538
20538
|
allowHTMLContent: this.allowHTMLContent,
|
|
20539
20539
|
markdownRenderer: this.markdownRenderer
|
|
20540
20540
|
}), t;
|
|
@@ -20566,7 +20566,7 @@ var Gd = class {
|
|
|
20566
20566
|
let n = e.state.doc, r = [];
|
|
20567
20567
|
for (let e of t) {
|
|
20568
20568
|
if (!e || typeof e != "object" || !e.range || typeof e.newText != "string") return !1;
|
|
20569
|
-
let t =
|
|
20569
|
+
let t = _u(n, e.range.start), i = _u(n, e.range.end);
|
|
20570
20570
|
if (t == null || i == null || t > i) return !1;
|
|
20571
20571
|
r.push({
|
|
20572
20572
|
from: t,
|
|
@@ -20578,31 +20578,31 @@ var Gd = class {
|
|
|
20578
20578
|
let i = [...r].sort((e, t) => e.from - t.from || e.to - t.to);
|
|
20579
20579
|
for (let t = 1; t < i.length; t++) {
|
|
20580
20580
|
let n = i[t - 1], r = i[t];
|
|
20581
|
-
if (n && r && (r.from < n.to || r.from === r.to && n.from === n.to && r.from === n.from)) return
|
|
20581
|
+
if (n && r && (r.from < n.to || r.from === r.to && n.from === n.to && r.from === n.from)) return Ru(e, "Workspace edit ranges overlap"), !1;
|
|
20582
20582
|
}
|
|
20583
20583
|
return e.dispatch(e.state.update({ changes: r })), !0;
|
|
20584
20584
|
}
|
|
20585
20585
|
async applyWorkspaceEdit(e, t) {
|
|
20586
|
-
if (!t) return
|
|
20586
|
+
if (!t) return Ru(e, "No edit returned from language server"), !1;
|
|
20587
20587
|
let n = t.changes && typeof t.changes == "object" ? t.changes : {}, r = Array.isArray(t.documentChanges) ? t.documentChanges : [];
|
|
20588
|
-
if (Object.keys(n).length === 0 && r.length === 0) return
|
|
20588
|
+
if (Object.keys(n).length === 0 && r.length === 0) return Ru(e, "No changes to apply"), !1;
|
|
20589
20589
|
if (r.length > 0) {
|
|
20590
20590
|
let t = [];
|
|
20591
20591
|
for (let n of r) {
|
|
20592
|
-
if (typeof n != "object" || !n || !("textDocument" in n)) return
|
|
20593
|
-
if (typeof n.textDocument != "object" || n.textDocument === null) return
|
|
20594
|
-
if (n.textDocument.uri !== this.documentUri) return
|
|
20595
|
-
if (n.textDocument.version != null && n.textDocument.version !== this.documentVersion) return
|
|
20592
|
+
if (typeof n != "object" || !n || !("textDocument" in n)) return Ru(e, "File creation, deletion, or renaming operations not supported yet"), !1;
|
|
20593
|
+
if (typeof n.textDocument != "object" || n.textDocument === null) return Ru(e, "Malformed workspace edit"), !1;
|
|
20594
|
+
if (n.textDocument.uri !== this.documentUri) return Ru(e, "Multi-file edits not supported yet"), !1;
|
|
20595
|
+
if (n.textDocument.version != null && n.textDocument.version !== this.documentVersion) return Ru(e, "Workspace edit is stale because the document changed"), !1;
|
|
20596
20596
|
if (!Array.isArray(n.edits)) return !1;
|
|
20597
20597
|
for (let r of n.edits) {
|
|
20598
|
-
if (typeof r != "object" || !r || !("newText" in r)) return
|
|
20598
|
+
if (typeof r != "object" || !r || !("newText" in r)) return Ru(e, "Snippet edits not supported yet"), !1;
|
|
20599
20599
|
t.push(r);
|
|
20600
20600
|
}
|
|
20601
20601
|
}
|
|
20602
20602
|
return t.length !== 0 && this.applyEdits(e, t);
|
|
20603
20603
|
}
|
|
20604
20604
|
let i = Object.entries(n);
|
|
20605
|
-
if (i.some(([e]) => e !== this.documentUri)) return
|
|
20605
|
+
if (i.some(([e]) => e !== this.documentUri)) return Ru(e, "Multi-file edits not supported yet"), !1;
|
|
20606
20606
|
let a = i[0]?.[1];
|
|
20607
20607
|
return Array.isArray(a) ? this.applyEdits(e, a) : !1;
|
|
20608
20608
|
}
|
|
@@ -20630,8 +20630,8 @@ function Kd(e) {
|
|
|
20630
20630
|
...e
|
|
20631
20631
|
}, i = xn.define((t) => new Gd({
|
|
20632
20632
|
client: n,
|
|
20633
|
-
documentUri: e.documentUri ?? t.state.facet(
|
|
20634
|
-
languageId: e.languageId ?? t.state.facet(
|
|
20633
|
+
documentUri: e.documentUri ?? t.state.facet(gd),
|
|
20634
|
+
languageId: e.languageId ?? t.state.facet(_d),
|
|
20635
20635
|
view: t,
|
|
20636
20636
|
featureOptions: r,
|
|
20637
20637
|
sendIncrementalChanges: e.sendIncrementalChanges,
|
|
@@ -20674,14 +20674,14 @@ function Kd(e) {
|
|
|
20674
20674
|
let t = a(e);
|
|
20675
20675
|
if (!(t && r.renameEnabled)) return !1;
|
|
20676
20676
|
let n = e.state.selection.main.head;
|
|
20677
|
-
return t.requestRename(e,
|
|
20677
|
+
return t.requestRename(e, J(e.state.doc, n)), !0;
|
|
20678
20678
|
}
|
|
20679
20679
|
},
|
|
20680
20680
|
{
|
|
20681
20681
|
key: t.codeActions,
|
|
20682
20682
|
run: (e) => {
|
|
20683
20683
|
let t = a(e);
|
|
20684
|
-
return t && r.codeActionsEnabled ? (t.showCodeActionsMenu(e).catch((t) =>
|
|
20684
|
+
return t && r.codeActionsEnabled ? (t.showCodeActionsMenu(e).catch((t) => Ru(e, `Code actions failed: ${t instanceof Error ? t.message : "Unknown error"}`)), !0) : !1;
|
|
20685
20685
|
}
|
|
20686
20686
|
},
|
|
20687
20687
|
{
|
|
@@ -20690,12 +20690,12 @@ function Kd(e) {
|
|
|
20690
20690
|
let t = a(e);
|
|
20691
20691
|
if (!(t && r.definitionEnabled)) return !1;
|
|
20692
20692
|
let n = e.state.selection.main.head;
|
|
20693
|
-
return t.requestDefinition(e,
|
|
20693
|
+
return t.requestDefinition(e, J(e.state.doc, n)).catch((t) => Ru(e, `Go to definition failed: ${t instanceof Error ? t.message : "Unknown error"}`)), !0;
|
|
20694
20694
|
}
|
|
20695
20695
|
}
|
|
20696
20696
|
])), r.hoverEnabled && o.push(jn((e, t) => {
|
|
20697
20697
|
let n = a(e);
|
|
20698
|
-
return n == null ? null : n.requestHoverTooltip(e,
|
|
20698
|
+
return n == null ? null : n.requestHoverTooltip(e, J(e.state.doc, t));
|
|
20699
20699
|
}, e.hoverConfig)), r.signatureHelpEnabled) {
|
|
20700
20700
|
o.push(zd);
|
|
20701
20701
|
let e = (e) => e.state.field(zd) ? (e.dispatch({ effects: Rd.of(null) }), !0) : !1;
|
|
@@ -20726,12 +20726,12 @@ function Kd(e) {
|
|
|
20726
20726
|
let t = e.completionConfig?.optionClass;
|
|
20727
20727
|
o.push(mn.baseTheme({ ".cm-tooltip-autocomplete li.cm-deprecated .cm-completionLabel": { textDecoration: "line-through" } }), er({
|
|
20728
20728
|
...e.completionConfig,
|
|
20729
|
-
optionClass: (e) => [
|
|
20729
|
+
optionClass: (e) => [Gu(e), t?.(e) ?? ""].filter(Boolean).join(" "),
|
|
20730
20730
|
override: [async (t) => {
|
|
20731
20731
|
let n = t.view ? a(t.view) : null;
|
|
20732
20732
|
if (n == null) return null;
|
|
20733
20733
|
let { state: r, pos: i } = t, o = qd(t, n.client.capabilities?.completionProvider?.triggerCharacters ?? [], e.completionMatchBefore);
|
|
20734
|
-
return o == null ? null : await n.requestCompletion(t,
|
|
20734
|
+
return o == null ? null : await n.requestCompletion(t, J(r.doc, i), o);
|
|
20735
20735
|
}, ...e.completionConfig?.override || []]
|
|
20736
20736
|
}));
|
|
20737
20737
|
}
|
|
@@ -20741,13 +20741,13 @@ function Kd(e) {
|
|
|
20741
20741
|
x: e.clientX,
|
|
20742
20742
|
y: e.clientY
|
|
20743
20743
|
}), r = a(n);
|
|
20744
|
-
t && r && (r.requestDefinition(n,
|
|
20744
|
+
t && r && (r.requestDefinition(n, J(n.state.doc, t)).catch((e) => Ru(n, `Go to definition failed: ${e instanceof Error ? e.message : "Unknown error"}`)), e.preventDefault());
|
|
20745
20745
|
}
|
|
20746
20746
|
} })), o;
|
|
20747
20747
|
}
|
|
20748
20748
|
function qd(e, t, n) {
|
|
20749
|
-
let { state: r, pos: i, explicit: a } = e, o = r.doc.lineAt(i), s =
|
|
20750
|
-
return !a && u && (s =
|
|
20749
|
+
let { state: r, pos: i, explicit: a } = e, o = r.doc.lineAt(i), s = gu.CompletionTriggerKind.Invoked, c, l = o.text[i - o.from - 1] || "", u = t?.includes(l);
|
|
20750
|
+
return !a && u && (s = gu.CompletionTriggerKind.TriggerCharacter, c = l), !a && s === gu.CompletionTriggerKind.Invoked && !e.matchBefore(n || /(\w+|\w+\.|\/|,)$/) ? null : {
|
|
20751
20751
|
triggerKind: s,
|
|
20752
20752
|
triggerCharacter: c
|
|
20753
20753
|
};
|
|
@@ -20795,20 +20795,20 @@ function $d(e) {
|
|
|
20795
20795
|
//#endregion
|
|
20796
20796
|
//#region src/core/codemirror/lsp/utils.ts
|
|
20797
20797
|
function ef(e) {
|
|
20798
|
-
return Zd.is(e) ?
|
|
20798
|
+
return Zd.is(e) ? N.get(at).includes(Zd.parse(e)) : !1;
|
|
20799
20799
|
}
|
|
20800
20800
|
function tf() {
|
|
20801
|
-
return
|
|
20801
|
+
return N.get(M)?.rootUri ?? "file:///";
|
|
20802
20802
|
}
|
|
20803
20803
|
function nf() {
|
|
20804
|
-
let e =
|
|
20804
|
+
let e = N.get(M)?.rootUri;
|
|
20805
20805
|
return e ? [{
|
|
20806
20806
|
uri: e,
|
|
20807
20807
|
name: "marimo"
|
|
20808
20808
|
}] : [];
|
|
20809
20809
|
}
|
|
20810
20810
|
function rf() {
|
|
20811
|
-
return
|
|
20811
|
+
return N.get(M)?.documentUri ?? "file:///__marimo_notebook__.py";
|
|
20812
20812
|
}
|
|
20813
20813
|
//#endregion
|
|
20814
20814
|
//#region src/core/codemirror/lsp/federated-lsp.ts
|
|
@@ -23390,8 +23390,8 @@ var { reducer: Oh, createActions: kh, valueAtom: Ah, useActions: jh } = an(Dh, {
|
|
|
23390
23390
|
columnsPreviews: r
|
|
23391
23391
|
};
|
|
23392
23392
|
}
|
|
23393
|
-
}), Mh =
|
|
23394
|
-
|
|
23393
|
+
}), Mh = P((e) => e(Ah).tables);
|
|
23394
|
+
P(/* @__PURE__ */ new Set()), P(!1);
|
|
23395
23395
|
//#endregion
|
|
23396
23396
|
//#region src/core/datasets/data-source-connections.ts
|
|
23397
23397
|
var Nh = /* @__PURE__ */ new Map([[Ch, {
|
|
@@ -23510,8 +23510,8 @@ var { reducer: Lh, createActions: Rh, valueAtom: zh, useActions: Bh } = an(Ih, {
|
|
|
23510
23510
|
connectionsMap: u
|
|
23511
23511
|
};
|
|
23512
23512
|
}
|
|
23513
|
-
}), Vh =
|
|
23514
|
-
|
|
23513
|
+
}), Vh = P((e) => e(zh).connectionsMap);
|
|
23514
|
+
P((e) => {
|
|
23515
23515
|
let t = new Map(e(Vh));
|
|
23516
23516
|
for (let e of wh) {
|
|
23517
23517
|
let n = t.get(e);
|
|
@@ -23520,14 +23520,14 @@ N((e) => {
|
|
|
23520
23520
|
return Yn([...t.values()], (e) => +!!wh.has(e.name));
|
|
23521
23521
|
});
|
|
23522
23522
|
function Hh(e) {
|
|
23523
|
-
let t =
|
|
23524
|
-
t.connectionsMap.has(e) &&
|
|
23523
|
+
let t = N.get(zh);
|
|
23524
|
+
t.connectionsMap.has(e) && N.set(zh, {
|
|
23525
23525
|
...t,
|
|
23526
23526
|
latestEngineSelected: e
|
|
23527
23527
|
});
|
|
23528
23528
|
}
|
|
23529
|
-
var Uh =
|
|
23530
|
-
let t =
|
|
23529
|
+
var Uh = P((e) => {
|
|
23530
|
+
let t = N.get(Mh), n = e(zh).connectionsMap, r = /* @__PURE__ */ new Map();
|
|
23531
23531
|
for (let e of t) r.set(e.name, e);
|
|
23532
23532
|
for (let e of n.values()) for (let t of e.databases) {
|
|
23533
23533
|
let n = t.name === e.default_database || e.databases.length === 1, i = (o, s) => {
|
|
@@ -23597,17 +23597,17 @@ var qh = new Gh(new W("validate-sql", async (e, t) => {
|
|
|
23597
23597
|
requestId: e,
|
|
23598
23598
|
...t
|
|
23599
23599
|
});
|
|
23600
|
-
}), { maxSize: 3 }), Jh =
|
|
23600
|
+
}), { maxSize: 3 }), Jh = P(/* @__PURE__ */ new Map());
|
|
23601
23601
|
function Yh(e) {
|
|
23602
|
-
let t =
|
|
23603
|
-
n.delete(e),
|
|
23602
|
+
let t = N.get(Jh), n = new Map(t);
|
|
23603
|
+
n.delete(e), N.set(Jh, n);
|
|
23604
23604
|
}
|
|
23605
23605
|
function Xh() {
|
|
23606
|
-
|
|
23606
|
+
N.set(Jh, /* @__PURE__ */ new Map());
|
|
23607
23607
|
}
|
|
23608
23608
|
function Zh({ cellId: e, errorMessage: t, dialect: n }) {
|
|
23609
|
-
let r =
|
|
23610
|
-
i.set(e, a),
|
|
23609
|
+
let r = N.get(Jh), i = new Map(r), a = n === "DuckDB" ? Qh(t) : $h(t);
|
|
23610
|
+
i.set(e, a), N.set(Jh, i);
|
|
23611
23611
|
}
|
|
23612
23612
|
function Qh(e) {
|
|
23613
23613
|
let { errorType: t, errorMessage: n } = $h(e), r = n, i, a = n.indexOf("LINE ");
|
|
@@ -24357,7 +24357,7 @@ function zg(e, t) {
|
|
|
24357
24357
|
}
|
|
24358
24358
|
//#endregion
|
|
24359
24359
|
//#region src/core/codemirror/language/languages/sql/completion-store.ts
|
|
24360
|
-
var Bg =
|
|
24360
|
+
var Bg = P((e) => {
|
|
24361
24361
|
let t = e(Mh), n = new Mg();
|
|
24362
24362
|
for (let e of t) n.addTable([], e);
|
|
24363
24363
|
return n.build();
|
|
@@ -24367,7 +24367,7 @@ var Bg = N((e) => {
|
|
|
24367
24367
|
this.cache = new dr(10, { create: (e) => this.getConnectionSchema(e) });
|
|
24368
24368
|
}
|
|
24369
24369
|
getConnection(e) {
|
|
24370
|
-
return
|
|
24370
|
+
return N.get(Vh).get(e);
|
|
24371
24371
|
}
|
|
24372
24372
|
getConnectionSchema(e) {
|
|
24373
24373
|
let { default_database: t, databases: n, default_schema: r } = e, i = new Mg(), a = n.find((e) => e.name === t || n.length === 1);
|
|
@@ -24411,7 +24411,7 @@ var Bg = N((e) => {
|
|
|
24411
24411
|
getCompletionSource(e) {
|
|
24412
24412
|
let t = this.getConnection(e);
|
|
24413
24413
|
if (!t) return null;
|
|
24414
|
-
let n = () =>
|
|
24414
|
+
let n = () => N.get(Bg), r = this.cache.getOrCreate(t);
|
|
24415
24415
|
return {
|
|
24416
24416
|
dialect: bh(t),
|
|
24417
24417
|
schema: r.shouldAddLocalTables ? {
|
|
@@ -24499,7 +24499,7 @@ var Xg = Zn(async () => {
|
|
|
24499
24499
|
...e.default.keywords,
|
|
24500
24500
|
...t.default.keywords
|
|
24501
24501
|
};
|
|
24502
|
-
}), Zg =
|
|
24502
|
+
}), Zg = zt("marimo:notebook-sql-mode", "default", yo);
|
|
24503
24503
|
function Qg() {
|
|
24504
24504
|
let e = (0, z.c)(3), [t, n] = bt(Zg), r;
|
|
24505
24505
|
return e[0] !== n || e[1] !== t ? (r = {
|
|
@@ -24508,13 +24508,13 @@ function Qg() {
|
|
|
24508
24508
|
}, e[0] = n, e[1] = t, e[2] = r) : r = e[2], r;
|
|
24509
24509
|
}
|
|
24510
24510
|
function $g() {
|
|
24511
|
-
return
|
|
24511
|
+
return N.get(Zg);
|
|
24512
24512
|
}
|
|
24513
24513
|
//#endregion
|
|
24514
24514
|
//#region src/core/codemirror/language/languages/sql/sql.ts
|
|
24515
24515
|
var e_ = _h, t_ = "DuckDB", n_ = new Nn();
|
|
24516
24516
|
function r_() {
|
|
24517
|
-
let { latestEngineSelected: e, connectionsMap: t } =
|
|
24517
|
+
let { latestEngineSelected: e, connectionsMap: t } = N.get(zh);
|
|
24518
24518
|
return e === null ? [...t.values()].reverse().find((e) => !wh.has(e.name) && e.source !== "iceberg")?.name ?? "__marimo_duckdb" : e;
|
|
24519
24519
|
}
|
|
24520
24520
|
var i_ = class {
|
|
@@ -24573,7 +24573,7 @@ var i_ = class {
|
|
|
24573
24573
|
})
|
|
24574
24574
|
];
|
|
24575
24575
|
if (e?.diagnostics?.sql_linter ?? !1) {
|
|
24576
|
-
let e =
|
|
24576
|
+
let e = N.get(Xt), r = new l_({ getParserOptions: (e) => ({ database: g_(e) ?? t_ }) });
|
|
24577
24577
|
n.push(ph({
|
|
24578
24578
|
schema: m_,
|
|
24579
24579
|
enableLinting: !0,
|
|
@@ -24854,7 +24854,7 @@ function S_(e, t) {
|
|
|
24854
24854
|
let n = e.field(ox, !1);
|
|
24855
24855
|
if (!n?.isSupported(t)) return !1;
|
|
24856
24856
|
let [r, , i] = n.transformIn(t);
|
|
24857
|
-
return r === e.doc.toString() &&
|
|
24857
|
+
return r === e.doc.toString() && _t(i, e.field(Js, !1));
|
|
24858
24858
|
}
|
|
24859
24859
|
function C_(e, t, { initialize: n = !1 } = {}) {
|
|
24860
24860
|
let r = e.field(ox, !1), i = r;
|
|
@@ -24866,7 +24866,7 @@ function C_(e, t, { initialize: n = !1 } = {}) {
|
|
|
24866
24866
|
a && o.push(...ix(e, i));
|
|
24867
24867
|
let [n, , r] = i.transformIn(t);
|
|
24868
24868
|
s = n;
|
|
24869
|
-
let c = !
|
|
24869
|
+
let c = !_t(r, e.field(Js, !1));
|
|
24870
24870
|
c && o.push(Ks.of(r)), i.type === "sql" && (a || c) && o.push(d_(r.engine));
|
|
24871
24871
|
}
|
|
24872
24872
|
return {
|
|
@@ -24895,13 +24895,13 @@ function T_(e) {
|
|
|
24895
24895
|
}
|
|
24896
24896
|
//#endregion
|
|
24897
24897
|
//#region src/core/codemirror/copilot/getCodes.ts
|
|
24898
|
-
var E_ =
|
|
24898
|
+
var E_ = P((e) => {
|
|
24899
24899
|
let t = e(qe);
|
|
24900
24900
|
return tn.fromEntries(t.cellIds.map((e) => {
|
|
24901
24901
|
let n = t.cellHandles[e]?.current?.editorViewOrNull;
|
|
24902
24902
|
return [e, n ? w_(n) : t.cellData[e]?.code ?? ""];
|
|
24903
24903
|
}));
|
|
24904
|
-
}), D_ =
|
|
24904
|
+
}), D_ = P((e) => e(qe).cellIds), O_ = P((e) => A_(e(D_), e(go))), k_ = P((e) => ({
|
|
24905
24905
|
cellIds: e(O_),
|
|
24906
24906
|
codes: e(E_)
|
|
24907
24907
|
}));
|
|
@@ -25276,7 +25276,7 @@ var lv = class {
|
|
|
25276
25276
|
} }), a.log("[lsp] Document re-synchronization complete");
|
|
25277
25277
|
}
|
|
25278
25278
|
getNotebookCode() {
|
|
25279
|
-
let { cellIds: e, codes: t } =
|
|
25279
|
+
let { cellIds: e, codes: t } = N.get(k_), n = this.getNotebookEditors();
|
|
25280
25280
|
return {
|
|
25281
25281
|
cellIds: e,
|
|
25282
25282
|
codes: tn.fromEntries(e.map((e) => {
|
|
@@ -25909,7 +25909,7 @@ var xv = Zn((e) => {
|
|
|
25909
25909
|
completionMatchBefore: l,
|
|
25910
25910
|
onGoToDefinition: u,
|
|
25911
25911
|
onShowLocation: u
|
|
25912
|
-
}),
|
|
25912
|
+
}), gd.of(Zd.of(e))];
|
|
25913
25913
|
}
|
|
25914
25914
|
return [er({
|
|
25915
25915
|
...r,
|
|
@@ -26104,18 +26104,18 @@ var Bv = "data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20x
|
|
|
26104
26104
|
alt: n,
|
|
26105
26105
|
className: a
|
|
26106
26106
|
}), t[7] = n, t[8] = a, t[9] = i, t[10] = s) : s = t[10], s;
|
|
26107
|
-
}, Zv = ki, Qv = Ni, $v =
|
|
26107
|
+
}, Zv = ki, Qv = Ni, $v = Gt(Li), ey = Gi, ty = F(zi), ny = R.forwardRef((e, t) => {
|
|
26108
26108
|
let n = (0, z.c)(22), r, i, a, s, c, l;
|
|
26109
26109
|
n[0] === e ? (r = n[1], i = n[2], a = n[3], s = n[4], c = n[5], l = n[6]) : ({className: r, align: a, sideOffset: s, portal: c, scrollable: l, ...i} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = s, n[5] = c, n[6] = l);
|
|
26110
26110
|
let u = a === void 0 ? "center" : a, d = s === void 0 ? 4 : s, f = c === void 0 || c, p = l !== void 0 && l, m = p && "overflow-auto", h;
|
|
26111
26111
|
n[7] !== r || n[8] !== m ? (h = o("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", r, m), n[7] = r, n[8] = m, n[9] = h) : h = n[9];
|
|
26112
|
-
let g = p ? `calc(var(--radix-popover-content-available-height) - ${
|
|
26112
|
+
let g = p ? `calc(var(--radix-popover-content-available-height) - ${Ut}px)` : void 0, _;
|
|
26113
26113
|
n[10] !== i.style || n[11] !== g ? (_ = {
|
|
26114
26114
|
...i.style,
|
|
26115
26115
|
maxHeight: g
|
|
26116
26116
|
}, n[10] = i.style, n[11] = g, n[12] = _) : _ = n[12];
|
|
26117
26117
|
let v;
|
|
26118
|
-
n[13] !== u || n[14] !== i || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0, B.jsx)(
|
|
26118
|
+
n[13] !== u || n[14] !== i || n[15] !== t || n[16] !== d || n[17] !== h || n[18] !== _ ? (v = /* @__PURE__ */ (0, B.jsx)(Bt, { children: /* @__PURE__ */ (0, B.jsx)(ty, {
|
|
26119
26119
|
ref: t,
|
|
26120
26120
|
align: u,
|
|
26121
26121
|
sideOffset: d,
|
|
@@ -26133,7 +26133,7 @@ var Bv = "data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20x
|
|
|
26133
26133
|
ny.displayName = zi.displayName;
|
|
26134
26134
|
//#endregion
|
|
26135
26135
|
//#region src/core/cells/add-missing-import.ts
|
|
26136
|
-
function ry({ moduleName: e, variableName: t, onAddImport: n, appStore: r =
|
|
26136
|
+
function ry({ moduleName: e, variableName: t, onAddImport: n, appStore: r = N }) {
|
|
26137
26137
|
if (t in r.get(go)) return !1;
|
|
26138
26138
|
let { cellData: i, cellIds: a } = r.get(qe), o = RegExp(`import[ \t]+${e}[ \t]+as[ \t]+${t}`, "g");
|
|
26139
26139
|
for (let e of a) if (o.test(i[e].code)) return !1;
|
|
@@ -26170,7 +26170,7 @@ function oy({ moduleName: e, variableName: t, autoInstantiate: n, createCell: r,
|
|
|
26170
26170
|
code: e,
|
|
26171
26171
|
skipIfCodeExists: !0,
|
|
26172
26172
|
focus: !1
|
|
26173
|
-
}) === null ? null : t, n && a !== null && Xi(
|
|
26173
|
+
}) === null ? null : t, n && a !== null && Xi(N, [a]);
|
|
26174
26174
|
}
|
|
26175
26175
|
}), a;
|
|
26176
26176
|
}
|
|
@@ -26180,7 +26180,7 @@ var sy = "marimo:notebook-col-sizes";
|
|
|
26180
26180
|
function cy() {
|
|
26181
26181
|
return { widths: [] };
|
|
26182
26182
|
}
|
|
26183
|
-
var ly = new Ee(sy,
|
|
26183
|
+
var ly = new Ee(sy, Ot({ widths: yt(Mt([Rt(), Pt("contentWidth")]).default("contentWidth")) }), cy);
|
|
26184
26184
|
function uy(e, t) {
|
|
26185
26185
|
let n = ly.get(sy).widths, r = Xn(n, e, t);
|
|
26186
26186
|
ly.set(sy, { widths: r });
|
|
@@ -26188,7 +26188,7 @@ function uy(e, t) {
|
|
|
26188
26188
|
//#endregion
|
|
26189
26189
|
//#region src/core/cells/edit.ts
|
|
26190
26190
|
function dy(e) {
|
|
26191
|
-
let t = e(
|
|
26191
|
+
let t = e(wt);
|
|
26192
26192
|
if (!t) throw Error("The notebook has no document to edit");
|
|
26193
26193
|
return t;
|
|
26194
26194
|
}
|
|
@@ -26233,7 +26233,7 @@ function vy(e, t) {
|
|
|
26233
26233
|
}), n;
|
|
26234
26234
|
}
|
|
26235
26235
|
function yy(e, t) {
|
|
26236
|
-
let n = t.flatMap((e) => e.ids), r = vy(t, (t) => e.cells.get(t)?.config.column ?? null), i = !
|
|
26236
|
+
let n = t.flatMap((e) => e.ids), r = vy(t, (t) => e.cells.get(t)?.config.column ?? null), i = !_t(n, e.order);
|
|
26237
26237
|
return !i && r.length === 0 ? null : (e) => {
|
|
26238
26238
|
i && e.setOrder(n);
|
|
26239
26239
|
for (let [t, n] of r) e.updateConfig(t, { column: n });
|
|
@@ -26262,7 +26262,7 @@ function Cy(e, t, n, r) {
|
|
|
26262
26262
|
let c = gy(i);
|
|
26263
26263
|
return c[i.columns.indexOf(a)].ids = Xn(hy(a), o, s).flat(), Sy(e, t, c), !0;
|
|
26264
26264
|
}
|
|
26265
|
-
var wy =
|
|
26265
|
+
var wy = P(null, (e, t, { cellId: n, before: r, direction: i }) => {
|
|
26266
26266
|
if (i) {
|
|
26267
26267
|
let r = e(lt), a = Ge(r, n), o = r.columns.indexOf(a), s = gy(r), c = i === "left" ? o - 1 : o + 1;
|
|
26268
26268
|
if (c < 0 || c >= s.length) return;
|
|
@@ -26273,7 +26273,7 @@ var wy = N(null, (e, t, { cellId: n, before: r, direction: i }) => {
|
|
|
26273
26273
|
function Ty(e, t, { cellId: n, scroll: r = !0 }, i) {
|
|
26274
26274
|
Cy(e, t, n, (e, t) => i === "top" ? 0 : t.length - 1) && r && py(t, n);
|
|
26275
26275
|
}
|
|
26276
|
-
var Ey =
|
|
26276
|
+
var Ey = P(null, (e, t, n) => Ty(e, t, n, "top")), Dy = P(null, (e, t, n) => Ty(e, t, n, "bottom")), Oy = P(null, (e, t, { cellId: n, overCellId: r }) => {
|
|
26277
26277
|
let i = e(lt), a = Ge(i, n), o = Ge(i, r);
|
|
26278
26278
|
if (a === o) {
|
|
26279
26279
|
Cy(e, t, n, (e, t) => t.indexOf(r));
|
|
@@ -26281,17 +26281,17 @@ var Ey = N(null, (e, t, n) => Ty(e, t, n, "top")), Dy = N(null, (e, t, n) => Ty(
|
|
|
26281
26281
|
}
|
|
26282
26282
|
let s = my(a, n), c = _y(gy(i), new Set(s)), l = c[i.columns.indexOf(o)].ids, u = l.indexOf(r);
|
|
26283
26283
|
l.splice(u, 0, ...s), Sy(e, t, c);
|
|
26284
|
-
}), ky =
|
|
26284
|
+
}), ky = P(null, (e, t, { cellId: n, columnId: r }) => {
|
|
26285
26285
|
let i = e(lt), a = Qe(i, r);
|
|
26286
26286
|
if (a === void 0) return;
|
|
26287
26287
|
let o = my(Ge(i, n), n), s = _y(gy(i), new Set(o));
|
|
26288
26288
|
s[i.columns.indexOf(a)].ids.unshift(...o), Sy(e, t, s);
|
|
26289
|
-
}), Ay =
|
|
26289
|
+
}), Ay = P(null, (e, t, { cellId: n, columnId: r, index: i }) => {
|
|
26290
26290
|
let a = e(lt), o = Qe(a, r);
|
|
26291
26291
|
if (o === void 0) return;
|
|
26292
26292
|
let s = Ge(a, n), c = my(s, n), l = gy(a), u = s.ids.indexOf(n), d = _y(l, new Set(c)), f = d[a.columns.indexOf(o)].ids, p = Math.max(0, Math.min(i, o.ids.length));
|
|
26293
26293
|
s === o && u < p && (p -= c.length), f.splice(Math.max(0, Math.min(p, f.length)), 0, ...c), Sy(e, t, d);
|
|
26294
|
-
}), jy =
|
|
26294
|
+
}), jy = P(null, (e, t, { cellIds: n, targetCellId: r, position: i, previousPlacements: a }) => {
|
|
26295
26295
|
if (n.length === 0) return;
|
|
26296
26296
|
let o = e(lt), s = new Set(n), c = _y(gy(o), s), l = c[o.columns.indexOf(Ge(o, r))].ids, u = l.indexOf(r);
|
|
26297
26297
|
if (u === -1 ? u = l.length : i === "after" && (u += 1), l.splice(u, 0, ...n), Sy(e, t, c), a && a.length === n.length) {
|
|
@@ -26321,7 +26321,7 @@ function My(e, t, n, r) {
|
|
|
26321
26321
|
}
|
|
26322
26322
|
Sy(e, t, a);
|
|
26323
26323
|
}
|
|
26324
|
-
var Ny =
|
|
26324
|
+
var Ny = P(null, (e, t, { columnId: n }) => {
|
|
26325
26325
|
let r = e(lt), i = r.columns.findIndex((e) => e.id === n);
|
|
26326
26326
|
if (i === -1) return;
|
|
26327
26327
|
let a = Ne.create(), o = gy(r);
|
|
@@ -26337,7 +26337,7 @@ var Ny = N(null, (e, t, { columnId: n }) => {
|
|
|
26337
26337
|
config: { column: i + 1 }
|
|
26338
26338
|
}, c === void 0 ? {} : { after: c }), yy(s, o.slice(0, l))?.(e);
|
|
26339
26339
|
}), py(t, a);
|
|
26340
|
-
}), Py =
|
|
26340
|
+
}), Py = P(null, (e, t, { cellId: n }) => {
|
|
26341
26341
|
let r = e(lt), i = Ge(r, n), a = r.columns.indexOf(i), o = i.ids.indexOf(n);
|
|
26342
26342
|
if (a === 0 && o === 0) return;
|
|
26343
26343
|
let s = gy(r), c = ft();
|
|
@@ -26348,21 +26348,21 @@ var Ny = N(null, (e, t, { columnId: n }) => {
|
|
|
26348
26348
|
id: o === 0 ? i.id : c,
|
|
26349
26349
|
ids: i.ids.slice(o)
|
|
26350
26350
|
}), Sy(e, t, s);
|
|
26351
|
-
}), Fy =
|
|
26351
|
+
}), Fy = P(null, (e, t, { columnId: n }) => {
|
|
26352
26352
|
let r = e(lt), i = r.columns.findIndex((e) => e.id === n);
|
|
26353
26353
|
if (i === -1 || r.columns.length <= 1) return;
|
|
26354
26354
|
let a = gy(r), o = i === 0 ? 1 : i - 1;
|
|
26355
26355
|
a[o].ids = i === 0 ? [...a[i].ids, ...a[o].ids] : [...a[o].ids, ...a[i].ids], a.splice(i, 1), Sy(e, t, a);
|
|
26356
|
-
}), Iy =
|
|
26356
|
+
}), Iy = P(null, (e, t) => {
|
|
26357
26357
|
let n = e(lt);
|
|
26358
26358
|
n.columns.length <= 1 || Sy(e, t, [{
|
|
26359
26359
|
id: n.columns[0].id,
|
|
26360
26360
|
ids: n.columns.flatMap((e) => [...e.ids])
|
|
26361
26361
|
}]);
|
|
26362
|
-
}), Ly =
|
|
26362
|
+
}), Ly = P(null, (e, t) => {
|
|
26363
26363
|
let n = e(lt), r = gy(n).filter((e) => e.ids.length > 0);
|
|
26364
26364
|
r.length === n.columns.length || n.columns.length <= 1 || Sy(e, t, r);
|
|
26365
|
-
}), Ry =
|
|
26365
|
+
}), Ry = P(null, (e, t, { column: n, overColumn: r }) => {
|
|
26366
26366
|
if (n === r) return;
|
|
26367
26367
|
let i = gy(e(lt)), a = i.findIndex(({ id: e }) => e === n), o = r === "_left_" ? a - 1 : r === "_right_" ? a + 1 : i.findIndex(({ id: e }) => e === r);
|
|
26368
26368
|
a === -1 || o < 0 || o >= i.length || (Sy(e, t, Xn(i, a, o)), uy(a, o));
|
|
@@ -26373,7 +26373,7 @@ function zy(e, t) {
|
|
|
26373
26373
|
for (let n of e.cells.values()) if (n.code === t) return !0;
|
|
26374
26374
|
return !1;
|
|
26375
26375
|
}
|
|
26376
|
-
var By =
|
|
26376
|
+
var By = P(null, (e, t, n = {}) => {
|
|
26377
26377
|
let { code: r = "", focus: i = !0 } = n, a = fy(e);
|
|
26378
26378
|
if (n.skipIfCodeExists && zy(a, r)) return null;
|
|
26379
26379
|
let o = e(lt), s = {}, c = null, l;
|
|
@@ -26397,9 +26397,9 @@ var By = N(null, (e, t, n = {}) => {
|
|
|
26397
26397
|
config: d
|
|
26398
26398
|
}, s), c !== null && n.before && e.updateConfig(n.before, { column: null });
|
|
26399
26399
|
}), i && ($y(t, l === void 0 ? [] : Ke(o, l)), py(t, u), d.hide_code && t(it, (e) => /* @__PURE__ */ new Set([...e, u]))), u;
|
|
26400
|
-
}), Vy =
|
|
26400
|
+
}), Vy = P(null, (e, t, { cellId: n, code: r }) => {
|
|
26401
26401
|
fy(e).cells.has(n) && t(dy(e).editAtom, (e) => e.setCode(n, r));
|
|
26402
|
-
}), Hy =
|
|
26402
|
+
}), Hy = P(null, (e, t, { cellId: n }) => {
|
|
26403
26403
|
let r = e(qe).cellHandles[n]?.current?.editorView;
|
|
26404
26404
|
if (!r) return null;
|
|
26405
26405
|
let { beforeCursorCode: i, afterCursorCode: a } = T_(r), o = C_(r.state, i);
|
|
@@ -26411,7 +26411,7 @@ var By = N(null, (e, t, n = {}) => {
|
|
|
26411
26411
|
code: a
|
|
26412
26412
|
}, { after: n });
|
|
26413
26413
|
}), Wy(e, t, n), py(t, s), s;
|
|
26414
|
-
}), Uy =
|
|
26414
|
+
}), Uy = P(null, (e, t, { cellId: n, newCellId: r, snapshot: i }) => {
|
|
26415
26415
|
let a = e(qe).cellHandles[n]?.current?.editorView, o = a && C_(a.state, i);
|
|
26416
26416
|
a && o && a.dispatch(o);
|
|
26417
26417
|
let s = fy(e);
|
|
@@ -26431,17 +26431,17 @@ function Gy(e, t) {
|
|
|
26431
26431
|
payload: { cellIds: t }
|
|
26432
26432
|
}));
|
|
26433
26433
|
}
|
|
26434
|
-
var Ky =
|
|
26434
|
+
var Ky = P(null, (e, t, { cellId: n }) => {
|
|
26435
26435
|
Gy({
|
|
26436
26436
|
get: e,
|
|
26437
26437
|
set: t
|
|
26438
26438
|
}, [n]);
|
|
26439
|
-
}), qy =
|
|
26439
|
+
}), qy = P(null, (e, t) => {
|
|
26440
26440
|
Gy({
|
|
26441
26441
|
get: e,
|
|
26442
26442
|
set: t
|
|
26443
26443
|
}, e(qe).cellIds);
|
|
26444
|
-
}), Jy =
|
|
26444
|
+
}), Jy = P(null, (e, t, { cellId: n, before: r, create: i = !0 }) => {
|
|
26445
26445
|
if (n === "__scratch__") return;
|
|
26446
26446
|
let { visible: a } = Ge(e(lt), n), o = a.indexOf(n), s = r ? o - 1 : o + 1;
|
|
26447
26447
|
o === -1 || s < 0 || s >= a.length ? i && t(By, r ? { before: n } : { after: n }) : Yy(e, a[s], r ? "bottom" : "top");
|
|
@@ -26456,13 +26456,13 @@ function Yy(e, t, n) {
|
|
|
26456
26456
|
variableName: void 0
|
|
26457
26457
|
});
|
|
26458
26458
|
}
|
|
26459
|
-
var Xy =
|
|
26459
|
+
var Xy = P(null, (e, t, { cellId: n, where: r }) => {
|
|
26460
26460
|
let { visible: i } = Ge(e(lt), n), a = i.indexOf(n);
|
|
26461
26461
|
a !== -1 && Yy(e, i[$i(a + (r === "before" ? -1 : +(r === "after")), 0, i.length - 1)], r === "after" ? "top" : "bottom");
|
|
26462
|
-
}), Zy =
|
|
26462
|
+
}), Zy = P(null, (e) => {
|
|
26463
26463
|
let t = e(lt).columns[0]?.visible[0];
|
|
26464
26464
|
t !== void 0 && (Yy(e, t, void 0), Pe());
|
|
26465
|
-
}), Qy =
|
|
26465
|
+
}), Qy = P(null, (e) => {
|
|
26466
26466
|
let t = e(lt).columns.at(-1)?.visible.at(-1);
|
|
26467
26467
|
t !== void 0 && (Yy(e, t, void 0), j());
|
|
26468
26468
|
});
|
|
@@ -26473,17 +26473,17 @@ function $y(e, t) {
|
|
|
26473
26473
|
return n;
|
|
26474
26474
|
});
|
|
26475
26475
|
}
|
|
26476
|
-
var eb =
|
|
26476
|
+
var eb = P(null, (e, t, { cellId: n }) => {
|
|
26477
26477
|
ze(e(Te(n))) && (t(st, (e) => /* @__PURE__ */ new Set([...e, n])), py(t, n));
|
|
26478
|
-
}), tb =
|
|
26478
|
+
}), tb = P(null, (e, t, { cellId: n }) => {
|
|
26479
26479
|
$y(t, [n]), py(t, n);
|
|
26480
|
-
}), nb =
|
|
26480
|
+
}), nb = P(null, (e, t) => {
|
|
26481
26481
|
t(st, new Set(e(qe).cellIds.filter((t) => ze(e(Te(t))))));
|
|
26482
|
-
}), rb =
|
|
26482
|
+
}), rb = P(null, (e, t) => {
|
|
26483
26483
|
t(st, /* @__PURE__ */ new Set());
|
|
26484
|
-
}), ib =
|
|
26484
|
+
}), ib = P(null, (e, t, { cellId: n }) => {
|
|
26485
26485
|
$y(t, Ve(e(lt), n));
|
|
26486
|
-
}), ab =
|
|
26486
|
+
}), ab = P(null, (e, t, { code: n } = {}) => {
|
|
26487
26487
|
let { cellIds: r } = e(qe);
|
|
26488
26488
|
if (r.includes("setup")) {
|
|
26489
26489
|
py(t, be);
|
|
@@ -26496,7 +26496,7 @@ var eb = N(null, (e, t, { cellId: n }) => {
|
|
|
26496
26496
|
code: n ?? "",
|
|
26497
26497
|
...i.ids.length > 0 ? { before: i.ids[0] } : { endOf: i.id }
|
|
26498
26498
|
});
|
|
26499
|
-
}), ob =
|
|
26499
|
+
}), ob = P(null, (e, t, { code: n }) => {
|
|
26500
26500
|
let r = fy(e).cells.get(be);
|
|
26501
26501
|
if (r === void 0) {
|
|
26502
26502
|
t(ab, { code: n });
|
|
@@ -26507,7 +26507,7 @@ var eb = N(null, (e, t, { cellId: n }) => {
|
|
|
26507
26507
|
cellId: be,
|
|
26508
26508
|
code: i.trim() ? `${i.trimEnd()}\n\n${n}` : n
|
|
26509
26509
|
});
|
|
26510
|
-
}), sb =
|
|
26510
|
+
}), sb = P(null, (e, t, { cellIds: n }) => {
|
|
26511
26511
|
let r = fy(e), i = e(qe), o = new Set(n);
|
|
26512
26512
|
for (let e of n) r.cells.has(e) || a.warn("Skipping delete for missing cellId", { cellId: e });
|
|
26513
26513
|
let s = r.order, c = s.flatMap((e) => {
|
|
@@ -26549,7 +26549,7 @@ var eb = N(null, (e, t, { cellId: n }) => {
|
|
|
26549
26549
|
}],
|
|
26550
26550
|
scrollKey: g
|
|
26551
26551
|
})), !0;
|
|
26552
|
-
}), cb =
|
|
26552
|
+
}), cb = P(null, (e, t) => {
|
|
26553
26553
|
let n = e(qe).history.at(-1);
|
|
26554
26554
|
if (n === void 0) return;
|
|
26555
26555
|
if (n.type === "move") {
|
|
@@ -26577,7 +26577,7 @@ var eb = N(null, (e, t, { cellId: n }) => {
|
|
|
26577
26577
|
}));
|
|
26578
26578
|
});
|
|
26579
26579
|
function lb() {
|
|
26580
|
-
let { handleCellMessage: e, addLogs: t, reconcileDocument: n, resetCellRuntimes: r, ...i } = dt(), a =
|
|
26580
|
+
let { handleCellMessage: e, addLogs: t, reconcileDocument: n, resetCellRuntimes: r, ...i } = dt(), a = I(By), o = I(Jy), s = I(ab), c = I(ob), l = I(sb), u = I(cb), d = I(Xy), f = I(Zy), p = I(Qy), m = I(eb), h = I(tb), g = I(nb), _ = I(rb), v = I(Ky), y = I(qy), b = I(ib), x = I(wy), S = I(Ay), C = I(jy), w = I(Oy), T = I(ky), ee = I(Ey), te = I(Dy), E = I(Ny), D = I(Py), ne = I(Fy), re = I(Iy), O = I(Ly), k = I(Ry), ie = I(Vy), ae = I(Hy), oe = I(Uy);
|
|
26581
26581
|
return (0, R.useMemo)(() => ({
|
|
26582
26582
|
...i,
|
|
26583
26583
|
setCellCode: ie,
|
|
@@ -26640,11 +26640,11 @@ var { reducer: db, createActions: fb, valueAtom: pb, useActions: mb } = an(ub, {
|
|
|
26640
26640
|
...e,
|
|
26641
26641
|
focusedCellId: null
|
|
26642
26642
|
})
|
|
26643
|
-
}), hb =
|
|
26643
|
+
}), hb = P((e) => e(pb).lastFocusedCellId);
|
|
26644
26644
|
function gb() {
|
|
26645
|
-
return
|
|
26645
|
+
return Ct(hb);
|
|
26646
26646
|
}
|
|
26647
|
-
|
|
26647
|
+
P((e) => {
|
|
26648
26648
|
let t = e(hb);
|
|
26649
26649
|
return !t || t === "__scratch__" ? null : _b(t, e(qe), e(Se), e(je(t)));
|
|
26650
26650
|
});
|
|
@@ -26666,7 +26666,7 @@ function _b(e, t, n, r) {
|
|
|
26666
26666
|
//#endregion
|
|
26667
26667
|
//#region src/components/editor/connections/components.tsx
|
|
26668
26668
|
function vb() {
|
|
26669
|
-
let e = (0, z.c)(4), { createCell: t } = lb(), n = gb(), r =
|
|
26669
|
+
let e = (0, z.c)(4), { createCell: t } = lb(), n = gb(), r = Ct(Qt), i;
|
|
26670
26670
|
return e[0] !== r || e[1] !== t || e[2] !== n ? (i = (e) => {
|
|
26671
26671
|
/\bmo\./.test(e) && iy({
|
|
26672
26672
|
autoInstantiate: r,
|
|
@@ -26694,9 +26694,9 @@ function xb(e, t) {
|
|
|
26694
26694
|
let n = e.hidesWhen;
|
|
26695
26695
|
return n.kind === "dialect" ? n.substrings.some((e) => t.dialects.some((t) => t.includes(e))) : n.protocols.some((e) => t.storageProtocols.has(e)) ? !0 : n.backendTypes.some((e) => t.storageBackendTypes.has(e));
|
|
26696
26696
|
}
|
|
26697
|
-
var Sb =
|
|
26697
|
+
var Sb = P(0), Cb, wb = 0;
|
|
26698
26698
|
function Tb() {
|
|
26699
|
-
let e =
|
|
26699
|
+
let e = N.get(Sb);
|
|
26700
26700
|
return (!Cb || wb !== e) && (wb = e, Cb = Xe().then(() => Kh.request({})).then((e) => e.sources).catch((t) => {
|
|
26701
26701
|
throw wb === e && (Cb = void 0), t;
|
|
26702
26702
|
})), Cb;
|
|
@@ -26752,15 +26752,15 @@ var { reducer: kb, createActions: Ab, valueAtom: jb, useActions: Mb } = an(Ob, {
|
|
|
26752
26752
|
namespaces: r
|
|
26753
26753
|
};
|
|
26754
26754
|
}
|
|
26755
|
-
}), Nb =
|
|
26755
|
+
}), Nb = P((e) => e(jb).namespaces);
|
|
26756
26756
|
//#endregion
|
|
26757
26757
|
//#region src/hooks/useDataSourceDiscovery.ts
|
|
26758
26758
|
function Pb() {
|
|
26759
|
-
let e = (0, z.c)(2), t =
|
|
26759
|
+
let e = (0, z.c)(2), t = Ct(Sb), n;
|
|
26760
26760
|
return e[0] === t ? n = e[1] : (n = [t], e[0] = t, e[1] = n), wr(Tb, n);
|
|
26761
26761
|
}
|
|
26762
26762
|
function Fb(e) {
|
|
26763
|
-
let t = (0, z.c)(6), { data: n } = Pb(), r =
|
|
26763
|
+
let t = (0, z.c)(6), { data: n } = Pb(), r = Ct(Vh), i = Ct(Nb), a;
|
|
26764
26764
|
bb0: {
|
|
26765
26765
|
if (!n) {
|
|
26766
26766
|
let e;
|
|
@@ -26826,7 +26826,7 @@ var Vb = (e) => {
|
|
|
26826
26826
|
addDetectedDataSource: i
|
|
26827
26827
|
}), t[3] = i, t[4] = n, t[5] = r, t[6] = a) : a = t[6], a;
|
|
26828
26828
|
}, Ub = (e) => {
|
|
26829
|
-
let t = (0, z.c)(42), { selectedEngine: n, onChange: r, cellId: i, detectedDataSources: a, addDetectedDataSource: o } = e, s =
|
|
26829
|
+
let t = (0, z.c)(42), { selectedEngine: n, onChange: r, cellId: i, detectedDataSources: a, addDetectedDataSource: o } = e, s = Ct(Vh), c = [], l = [];
|
|
26830
26830
|
for (let [e, t] of s.entries()) wh.has(e) ? c.push(t) : l.push(t);
|
|
26831
26831
|
let u = zb(), d;
|
|
26832
26832
|
t[0] !== s || t[1] !== n ? (d = n && !s.has(n), t[0] = s, t[1] = n, t[2] = d) : d = t[2];
|
|
@@ -27356,7 +27356,7 @@ async function fx(e) {
|
|
|
27356
27356
|
});
|
|
27357
27357
|
if (!n || n.options.length === 0) return;
|
|
27358
27358
|
let r = e.split(".").pop() ?? e, i = n.options[0], a = n.options.find((e) => e.name === r) ?? i;
|
|
27359
|
-
a?.completion_info &&
|
|
27359
|
+
a?.completion_info && N.set(Io, { documentation: a.completion_info });
|
|
27360
27360
|
} catch (t) {
|
|
27361
27361
|
a.debug(`Doc lookup failed for "${e}"`, t);
|
|
27362
27362
|
}
|
|
@@ -27376,7 +27376,7 @@ var px = (e) => {
|
|
|
27376
27376
|
onMouseLeave: o,
|
|
27377
27377
|
children: r
|
|
27378
27378
|
}), t[4] = r, t[5] = a, t[6] = o, t[7] = s) : s = t[7], s;
|
|
27379
|
-
}, mx =
|
|
27379
|
+
}, mx = P(!1);
|
|
27380
27380
|
//#endregion
|
|
27381
27381
|
//#region src/core/static/export-context.ts
|
|
27382
27382
|
function hx(e) {
|
|
@@ -27392,7 +27392,7 @@ function _x() {
|
|
|
27392
27392
|
return gx()?.trusted === !0;
|
|
27393
27393
|
}
|
|
27394
27394
|
function vx() {
|
|
27395
|
-
if (
|
|
27395
|
+
if (N.get(mx) || _x() || N.get(Qt)) return !0;
|
|
27396
27396
|
try {
|
|
27397
27397
|
if (Hn() === "read") return !0;
|
|
27398
27398
|
} catch {}
|
|
@@ -27400,7 +27400,7 @@ function vx() {
|
|
|
27400
27400
|
}
|
|
27401
27401
|
//#endregion
|
|
27402
27402
|
//#region src/plugins/core/sanitize.ts
|
|
27403
|
-
var yx =
|
|
27403
|
+
var yx = P((e) => {
|
|
27404
27404
|
let t = e(mx), n = e(Qt);
|
|
27405
27405
|
if (t || n || _x()) return !1;
|
|
27406
27406
|
let r = !0;
|
|
@@ -27412,7 +27412,7 @@ var yx = N((e) => {
|
|
|
27412
27412
|
return !r;
|
|
27413
27413
|
});
|
|
27414
27414
|
function bx() {
|
|
27415
|
-
return
|
|
27415
|
+
return Ct(yx);
|
|
27416
27416
|
}
|
|
27417
27417
|
//#endregion
|
|
27418
27418
|
//#region src/plugins/core/RenderHTML.tsx
|
|
@@ -28082,7 +28082,7 @@ function TS(e, t) {
|
|
|
28082
28082
|
//#endregion
|
|
28083
28083
|
//#region src/core/notebook/document/select.ts
|
|
28084
28084
|
function ES(e, t, n) {
|
|
28085
|
-
return
|
|
28085
|
+
return St(e, (e) => e?.cells.get(t)?.[n], _t);
|
|
28086
28086
|
}
|
|
28087
28087
|
//#endregion
|
|
28088
28088
|
//#region src/core/notebook/document/hooks.tsx
|
|
@@ -28094,19 +28094,19 @@ function OS() {
|
|
|
28094
28094
|
}
|
|
28095
28095
|
function kS(e, t) {
|
|
28096
28096
|
let n = (0, z.c)(4), { documentAtom: r } = OS(), i;
|
|
28097
|
-
return n[0] !== r || n[1] !== t || n[2] !== e ? (i = ES(r, e, t), n[0] = r, n[1] = t, n[2] = e, n[3] = i) : i = n[3],
|
|
28097
|
+
return n[0] !== r || n[1] !== t || n[2] !== e ? (i = ES(r, e, t), n[0] = r, n[1] = t, n[2] = e, n[3] = i) : i = n[3], Ct(i);
|
|
28098
28098
|
}
|
|
28099
28099
|
function AS(e) {
|
|
28100
28100
|
return kS(e, "config");
|
|
28101
28101
|
}
|
|
28102
28102
|
function jS() {
|
|
28103
|
-
return
|
|
28103
|
+
return I(OS().editAtom);
|
|
28104
28104
|
}
|
|
28105
28105
|
//#endregion
|
|
28106
28106
|
//#region src/core/cells/outputs.ts
|
|
28107
28107
|
var MS = {}, NS = {};
|
|
28108
28108
|
function PS(e) {
|
|
28109
|
-
let t = (0, z.c)(14), { mode: n } =
|
|
28109
|
+
let t = (0, z.c)(14), { mode: n } = Ct(Bn), r = jS(), i = AS(e)?.expand_output ?? !1, a;
|
|
28110
28110
|
t[0] !== e || t[1] !== i ? (a = () => MS[e] ?? i, t[0] = e, t[1] = i, t[2] = a) : a = t[2];
|
|
28111
28111
|
let [o, s] = (0, R.useState)(a), c, l;
|
|
28112
28112
|
t[3] !== e || t[4] !== o ? (c = () => {
|
|
@@ -28132,7 +28132,7 @@ function IS(e) {
|
|
|
28132
28132
|
}
|
|
28133
28133
|
//#endregion
|
|
28134
28134
|
//#region src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx
|
|
28135
|
-
var LS = (0, R.lazy)(() => import("./any-language-editor-
|
|
28135
|
+
var LS = (0, R.lazy)(() => import("./any-language-editor-gzDRWdCH.js")), RS = [mn.lineWrapping], zS = (0, R.createContext)(!0);
|
|
28136
28136
|
function BS(e, t) {
|
|
28137
28137
|
return e ? e === "python" ? {
|
|
28138
28138
|
language: e,
|
|
@@ -28155,7 +28155,7 @@ function BS(e, t) {
|
|
|
28155
28155
|
};
|
|
28156
28156
|
}
|
|
28157
28157
|
var VS = (e) => {
|
|
28158
|
-
let t = (0, z.c)(6), { code: n, language: r } = e, { createCell: i } = lb(), a = gb(), o =
|
|
28158
|
+
let t = (0, z.c)(6), { code: n, language: r } = e, { createCell: i } = lb(), a = gb(), o = Ct(Qt), s;
|
|
28159
28159
|
return t[0] !== o || t[1] !== n || t[2] !== i || t[3] !== r || t[4] !== a ? (s = /* @__PURE__ */ (0, B.jsx)(u, {
|
|
28160
28160
|
size: "xs",
|
|
28161
28161
|
variant: "outline",
|
|
@@ -28173,7 +28173,7 @@ var VS = (e) => {
|
|
|
28173
28173
|
children: "Add to Notebook"
|
|
28174
28174
|
}), t[0] = o, t[1] = n, t[2] = i, t[3] = r, t[4] = a, t[5] = s) : s = t[5], s;
|
|
28175
28175
|
}, HS = (e) => {
|
|
28176
|
-
let t = (0, z.c)(18), { code: n, language: r } = e, { theme: i } =
|
|
28176
|
+
let t = (0, z.c)(18), { code: n, language: r } = e, { theme: i } = At(), a = (0, R.useContext)(zS), [o, s] = (0, R.useState)(n);
|
|
28177
28177
|
o !== n && s(n);
|
|
28178
28178
|
let c;
|
|
28179
28179
|
t[0] === o ? c = t[1] : (c = async () => {
|