react-semaphor 0.1.338 → 0.1.339
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/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +58 -57
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +3 -3
- package/dist/chunks/{braces-Q86XHDaD.js → braces-Ccvdip75.js} +1 -1
- package/dist/chunks/{braces-BLa_lORs.js → braces-DDHkbW1c.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-Cocogo9H.js → calendar-preferences-dialog-2IbYrrP1.js} +3 -3
- package/dist/chunks/{calendar-preferences-dialog-Bm7ji3k9.js → calendar-preferences-dialog-8-KE5sVX.js} +1 -1
- package/dist/chunks/catalog-field-grounding-DoEBOXQd.js +100 -0
- package/dist/chunks/catalog-field-grounding-Du6mKDcF.js +1 -0
- package/dist/chunks/{chevrons-up-down-BBTZ5pAY.js → chevrons-up-down-B9fTSds9.js} +1 -1
- package/dist/chunks/{chevrons-up-down-CYuWasy_.js → chevrons-up-down-pV0i9ptS.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BtqtLx1-.js → dashboard-briefing-launcher-CcqDPVke.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DF4CoaRn.js → dashboard-briefing-launcher-DtxDRAiu.js} +4 -4
- package/dist/chunks/{dashboard-controls-B5U-VUxs.js → dashboard-controls-Bi98DhYD.js} +6 -6
- package/dist/chunks/{dashboard-controls-0VMAeMoa.js → dashboard-controls-By7aKmDj.js} +1 -1
- package/dist/chunks/{dashboard-json-CqbLOfnr.js → dashboard-json-BOyLuhS6.js} +1 -1
- package/dist/chunks/{dashboard-json-Hmc0Ri5z.js → dashboard-json-CGxIsTEP.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-D4VVu-QQ.js → edit-dashboard-visual-Ba8LenNc.js} +6 -6
- package/dist/chunks/{edit-dashboard-visual-C0EDM0QB.js → edit-dashboard-visual-BuXlHmJH.js} +1 -1
- package/dist/chunks/{index-DE0vIuYG.js → index-DT9osgRT.js} +2 -2
- package/dist/chunks/{index-DzyUhzV3.js → index-DVPvpd8u.js} +5 -5
- package/dist/chunks/{palette-DalASD28.js → palette-BMXS-AcI.js} +1 -1
- package/dist/chunks/{palette-B9AbDw0n.js → palette-DKecBucs.js} +1 -1
- package/dist/chunks/{resource-management-panel-C4YydU9I.js → resource-management-panel-98Hy6SYB.js} +3 -3
- package/dist/chunks/{resource-management-panel-P9iNqBM1.js → resource-management-panel-ByR-FD3h.js} +1 -1
- package/dist/chunks/{switch-BAYfpAEb.js → switch-CP7SmEIZ.js} +1 -1
- package/dist/chunks/{switch-CyRoZr5T.js → switch-DYRgERrC.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-P1LMwQ89.js → use-create-flow-overlay-state-D5uvjbwY.js} +3 -3
- package/dist/chunks/{use-create-flow-overlay-state-CbhjxI3W.js → use-create-flow-overlay-state-uNxArZdj.js} +1 -1
- package/dist/chunks/{use-visual-utils-lB-3Zk0b.js → use-visual-utils-BLh9mKic.js} +2 -2
- package/dist/chunks/{use-visual-utils-CV6_-y4p.js → use-visual-utils-CpaqIHoc.js} +1 -1
- package/dist/chunks/{validators-BOqiGymD.js → validators-CPEQojnV.js} +325 -250
- package/dist/chunks/validators-CfP-49k9.js +1 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +3 -3
- package/dist/dashboard-authoring/index.js +424 -561
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +1 -1
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +313 -308
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +74 -48
- package/dist/types/dashboard-authoring.d.ts +26 -52
- package/dist/types/dashboard.d.ts +1 -2
- package/dist/types/data-app-builder.d.ts +23 -13
- package/dist/types/data-app-sdk.d.ts +33 -46
- package/dist/types/main.d.ts +29 -50
- package/dist/types/shared.d.ts +1 -2
- package/dist/types/surfboard.d.ts +1 -2
- package/dist/types/types.d.ts +1 -2
- package/package.json +1 -1
- package/dist/chunks/catalog-field-grounding-DmT7aGUA.js +0 -191
- package/dist/chunks/catalog-field-grounding-VgVzDd25.js +0 -1
- package/dist/chunks/validators-BtFXY3S_.js +0 -2
|
@@ -19,7 +19,7 @@ import * as ee from "react";
|
|
|
19
19
|
import le, { createContext as Dr, useContext as zn, useState as X, useMemo as J, useEffect as xe, useCallback as ce, useRef as Fe, forwardRef as Ri, isValidElement as Eg, createElement as Ho, useLayoutEffect as Zs, useImperativeHandle as UY, memo as Ml, Component as WY, Suspense as hl, cloneElement as U5, Fragment as vw, useId as Oc, useSyncExternalStore as eN, useTransition as xme, useReducer as wme, Children as Cme, startTransition as qY, lazy as xw } from "react";
|
|
20
20
|
import * as oR from "react-dom";
|
|
21
21
|
import ww, { flushSync as mu, createPortal as um, unstable_batchedUpdates as oC } from "react-dom";
|
|
22
|
-
import { bB as gu, bC as Cw, bD as iR, E as Dn, bE as p2, bF as YY, u as te, bG as Sme, bl as nr, b5 as Ha, bH as u6, bI as Nme, bJ as kme, bK as _me, aH as Ime, bL as Eme, r as Os, a as Q, c as at, bM as Ou, bN as Al, bO as un, bP as mo, bQ as W5, bR as Xs, bS as q5, bT as Hn, bU as m2, bV as g2, bW as GY, bX as KY, bY as ZY, bZ as XY, b_ as Y5, b$ as G5, c0 as QY, c1 as JY, c2 as eG, c3 as Tme, aC as K5, c4 as b2, c5 as Z5, c6 as ba, c7 as tG, c8 as Rl, c9 as Sc, e as hr, B as ke, f as br, Z as wo, _ as Ir, $ as Er, a1 as Ur, a9 as nG, ca as X5, az as Zu, cb as Sw, aF as y2, aG as pi, cc as ao, cd as Dme, X as hn, g as va, W as ss, aE as pf, ce as YN, P as tr, b as sr, d as lr, aO as Mme, cf as Ame, aP as Rme, cg as Nw, L as mt, a2 as Yt, aK as Co, ch as Q5, a3 as Xt, a4 as Qt, a5 as nn, a6 as Jt, a7 as rt, R as aR, S as Pme, ci as Fme, cj as rG, ck as Ome, cl as GN, cm as sR, cn as zb, co as Bb, cp as d6, cq as Lme, cr as oG, cs as iG, ct as $me, cu as zme, cv as Bme, cw as Vme, aX as Nc, aL as kw, bt as J5, G as ft, aQ as dr, aA as aG, cx as lR, bk as sG, br as ls, bs as pl, cy as jme, cz as Hme, H as So, cA as lG, cB as KN, cC as cG, cD as uG, aI as v2, cE as x2, cF as eO, cG as tO, bv as Xu, cH as dG, bu as Qu, cI as Ume, cJ as nO, bw as rO, cK as Wme, bg as iT, aR as cs, cL as Vh, cM as Dp, y as qme, Y as rs, cN as fG, cO as Yme, aW as dm, cP as Gme, cQ as Li, bf as Qo, bd as Kme, be as Zme, J as ib, cR as oO, cS as hG, cT as pG, cU as mG, cV as ZN, a0 as ho, cW as Xme, b6 as gG, cX as bG, cY as Qme, cZ as Jme, c_ as ege, T as Ju, K as ed, M as Ti, O as tf, N as Lu, bz as Bd, bA as bu, c$ as fv, d0 as tN, d1 as nN, d2 as hv, d3 as xh, d4 as wh, d5 as al, d6 as rN, d7 as oN, d8 as pv, d9 as cR, da as uR, db as dR, dc as yG, n as kl, m as mf, dd as tge, de as M0, df as nge, dg as vG, dh as aT, di as sT, dj as rge, dk as oge, dl as ige, dm as age, dn as sge, dp as lge, aN as cge, dq as uge, dr as dge, ds as xG, dt as wG, C as w2, aY as CG, du as fge, dv as hge, b4 as SG, dw as pge, aD as mge, dx as gge, dy as NG, b7 as kG, dz as bge, ba as Vd, dA as Zv, bb as iO, dB as _G, dC as jy, bj as f6, dD as IG, dE as yge, dF as vge, dG as xge, dH as EG, dI as h6, dJ as TG, dK as Id, dL as DG, dM as MG, dN as aO, a8 as kc, dO as wge, dP as Cge, bn as C2, aJ as mv, aT as sO, Q as lO, A as Sge, dQ as Nge, dR as kge, V as AG, dS as _ge, dT as p6, dU as m6, dV as RG, dW as Ige, dX as Ege, dY as Tge, dZ as Dge, d_ as Mge, d$ as Age, e0 as Rge, e1 as Pge, e2 as Fge, w as fR, q as PG, p as FG, l as Oge, k as g6, e3 as hR, e4 as Lge, e5 as $ge, e6 as zge, e7 as Bge, e8 as Vge, e9 as nf, ea as cO, eb as oc, bx as jge, ec as Hge, ed as OG, ee as Uge, an as uO, ef as dO, ai as S2, aj as Wge, al as LG, eg as qge, am as lT, eh as Yge, ei as Gge, ej as Kge, a$ as Zge, b0 as Xge, at as Qge, ab as $G, ek as jl, ae as Jge, ag as zG, af as cT, as as BG, ao as VG, au as pR, ax as b6, aw as ebe, ah as jG, el as mR, em as jd, en as HG, eo as iC, ep as tbe, eq as fO, er as gR, es as hO, et as pO, aB as nbe, bm as UG, bo as _w, b8 as rbe, eu as obe, ev as ibe, ew as Xv, aU as abe, ex as sbe, U as mO, ey as lbe, bp as WG, bq as qG, ez as YG, eA as cbe, eB as ube, eC as dbe, eD as fbe, eE as GG } from "./switch-
|
|
22
|
+
import { bB as gu, bC as Cw, bD as iR, E as Dn, bE as p2, bF as YY, u as te, bG as Sme, bl as nr, b5 as Ha, bH as u6, bI as Nme, bJ as kme, bK as _me, aH as Ime, bL as Eme, r as Os, a as Q, c as at, bM as Ou, bN as Al, bO as un, bP as mo, bQ as W5, bR as Xs, bS as q5, bT as Hn, bU as m2, bV as g2, bW as GY, bX as KY, bY as ZY, bZ as XY, b_ as Y5, b$ as G5, c0 as QY, c1 as JY, c2 as eG, c3 as Tme, aC as K5, c4 as b2, c5 as Z5, c6 as ba, c7 as tG, c8 as Rl, c9 as Sc, e as hr, B as ke, f as br, Z as wo, _ as Ir, $ as Er, a1 as Ur, a9 as nG, ca as X5, az as Zu, cb as Sw, aF as y2, aG as pi, cc as ao, cd as Dme, X as hn, g as va, W as ss, aE as pf, ce as YN, P as tr, b as sr, d as lr, aO as Mme, cf as Ame, aP as Rme, cg as Nw, L as mt, a2 as Yt, aK as Co, ch as Q5, a3 as Xt, a4 as Qt, a5 as nn, a6 as Jt, a7 as rt, R as aR, S as Pme, ci as Fme, cj as rG, ck as Ome, cl as GN, cm as sR, cn as zb, co as Bb, cp as d6, cq as Lme, cr as oG, cs as iG, ct as $me, cu as zme, cv as Bme, cw as Vme, aX as Nc, aL as kw, bt as J5, G as ft, aQ as dr, aA as aG, cx as lR, bk as sG, br as ls, bs as pl, cy as jme, cz as Hme, H as So, cA as lG, cB as KN, cC as cG, cD as uG, aI as v2, cE as x2, cF as eO, cG as tO, bv as Xu, cH as dG, bu as Qu, cI as Ume, cJ as nO, bw as rO, cK as Wme, bg as iT, aR as cs, cL as Vh, cM as Dp, y as qme, Y as rs, cN as fG, cO as Yme, aW as dm, cP as Gme, cQ as Li, bf as Qo, bd as Kme, be as Zme, J as ib, cR as oO, cS as hG, cT as pG, cU as mG, cV as ZN, a0 as ho, cW as Xme, b6 as gG, cX as bG, cY as Qme, cZ as Jme, c_ as ege, T as Ju, K as ed, M as Ti, O as tf, N as Lu, bz as Bd, bA as bu, c$ as fv, d0 as tN, d1 as nN, d2 as hv, d3 as xh, d4 as wh, d5 as al, d6 as rN, d7 as oN, d8 as pv, d9 as cR, da as uR, db as dR, dc as yG, n as kl, m as mf, dd as tge, de as M0, df as nge, dg as vG, dh as aT, di as sT, dj as rge, dk as oge, dl as ige, dm as age, dn as sge, dp as lge, aN as cge, dq as uge, dr as dge, ds as xG, dt as wG, C as w2, aY as CG, du as fge, dv as hge, b4 as SG, dw as pge, aD as mge, dx as gge, dy as NG, b7 as kG, dz as bge, ba as Vd, dA as Zv, bb as iO, dB as _G, dC as jy, bj as f6, dD as IG, dE as yge, dF as vge, dG as xge, dH as EG, dI as h6, dJ as TG, dK as Id, dL as DG, dM as MG, dN as aO, a8 as kc, dO as wge, dP as Cge, bn as C2, aJ as mv, aT as sO, Q as lO, A as Sge, dQ as Nge, dR as kge, V as AG, dS as _ge, dT as p6, dU as m6, dV as RG, dW as Ige, dX as Ege, dY as Tge, dZ as Dge, d_ as Mge, d$ as Age, e0 as Rge, e1 as Pge, e2 as Fge, w as fR, q as PG, p as FG, l as Oge, k as g6, e3 as hR, e4 as Lge, e5 as $ge, e6 as zge, e7 as Bge, e8 as Vge, e9 as nf, ea as cO, eb as oc, bx as jge, ec as Hge, ed as OG, ee as Uge, an as uO, ef as dO, ai as S2, aj as Wge, al as LG, eg as qge, am as lT, eh as Yge, ei as Gge, ej as Kge, a$ as Zge, b0 as Xge, at as Qge, ab as $G, ek as jl, ae as Jge, ag as zG, af as cT, as as BG, ao as VG, au as pR, ax as b6, aw as ebe, ah as jG, el as mR, em as jd, en as HG, eo as iC, ep as tbe, eq as fO, er as gR, es as hO, et as pO, aB as nbe, bm as UG, bo as _w, b8 as rbe, eu as obe, ev as ibe, ew as Xv, aU as abe, ex as sbe, U as mO, ey as lbe, bp as WG, bq as qG, ez as YG, eA as cbe, eB as ube, eC as dbe, eD as fbe, eE as GG } from "./switch-CP7SmEIZ.js";
|
|
23
23
|
import { j as hbe } from "./index-CuHybtft.js";
|
|
24
24
|
import { c as Iw, d as pbe, A as mbe, r as KG } from "./index-CJdxSyQq.js";
|
|
25
25
|
import * as gbe from "react-dom/client";
|
|
@@ -143015,10 +143015,10 @@ function JSt() {
|
|
|
143015
143015
|
}
|
|
143016
143016
|
);
|
|
143017
143017
|
}
|
|
143018
|
-
const eNt = xw(() => import("./dashboard-controls-
|
|
143019
|
-
() => import("./edit-dashboard-visual-
|
|
143020
|
-
), nNt = xw(() => import("./dashboard-json-
|
|
143021
|
-
() => import("./resource-management-panel-
|
|
143018
|
+
const eNt = xw(() => import("./dashboard-controls-Bi98DhYD.js")), tNt = xw(
|
|
143019
|
+
() => import("./edit-dashboard-visual-Ba8LenNc.js")
|
|
143020
|
+
), nNt = xw(() => import("./dashboard-json-CGxIsTEP.js")), rNt = xw(
|
|
143021
|
+
() => import("./resource-management-panel-98Hy6SYB.js").then(
|
|
143022
143022
|
(e) => ({ default: e.ResourceManagementPanel })
|
|
143023
143023
|
)
|
|
143024
143024
|
);
|
package/dist/chunks/{resource-management-panel-C4YydU9I.js → resource-management-panel-98Hy6SYB.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n, Fragment as oe } from "react/jsx-runtime";
|
|
2
|
-
import { c as He, u as se, G as Ge, a as Z, B as O, f as te, N as be, V as $e, L as ie, a2 as de, X as ke, Z as We, _ as Xe, $ as Ye, a1 as Ze, az as Je } from "./switch-
|
|
2
|
+
import { c as He, u as se, G as Ge, a as Z, B as O, f as te, N as be, V as $e, L as ie, a2 as de, X as ke, Z as We, _ as Xe, $ as Ye, a1 as Ze, az as Je } from "./switch-CP7SmEIZ.js";
|
|
3
3
|
import Qe, { useState as b, useEffect as ee, useRef as qe } from "react";
|
|
4
|
-
import { ah as ue, aL as et, aM as tt, aI as ce, aN as nt, aO as at, aP as st, aQ as it, aR as Y, aS as ot, aT as rt, aU as lt, aV as xe, az as he, aW as dt, aX as ct, aY as Ne, aZ as we, a_ as ut, J as ye, A as Ce, a$ as ve, b0 as Se, b1 as Ee, b2 as Ve, b3 as Le, b4 as Ae, b5 as Oe, b6 as Te, b7 as Re, b8 as ht, b9 as pe, ba as pt, y as ae, u as mt, bb as Ue, c as Ie, d as ze, e as Me, f as Pe, g as Fe, bc as ft, o as je, bd as gt, be as De, bf as xt } from "./index-
|
|
4
|
+
import { ah as ue, aL as et, aM as tt, aI as ce, aN as nt, aO as at, aP as st, aQ as it, aR as Y, aS as ot, aT as rt, aU as lt, aV as xe, az as he, aW as dt, aX as ct, aY as Ne, aZ as we, a_ as ut, J as ye, A as Ce, a$ as ve, b0 as Se, b1 as Ee, b2 as Ve, b3 as Le, b4 as Ae, b5 as Oe, b6 as Te, b7 as Re, b8 as ht, b9 as pe, ba as pt, y as ae, u as mt, bb as Ue, c as Ie, d as ze, e as Me, f as Pe, g as Fe, bc as ft, o as je, bd as gt, be as De, bf as xt } from "./index-DVPvpd8u.js";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
|
-
import { u as Be } from "./use-visual-utils-
|
|
6
|
+
import { u as Be } from "./use-visual-utils-BLh9mKic.js";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.453.0 - ISC
|
|
9
9
|
*
|
package/dist/chunks/{resource-management-panel-P9iNqBM1.js → resource-management-panel-ByR-FD3h.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("./switch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("./switch-DYRgERrC.js"),x=require("react"),t=require("./index-DT9osgRT.js");require("./index-BxM99sFL.js");const oe=require("./use-visual-utils-CpaqIHoc.js");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -6,7 +6,7 @@ import * as Tn from "react-dom";
|
|
|
6
6
|
import sf from "react-dom";
|
|
7
7
|
import { S as lf, b as ua, c as $s, d as cf, e as df, r as uf } from "./index-CJdxSyQq.js";
|
|
8
8
|
import "react-dom/client";
|
|
9
|
-
import { b as fi } from "./catalog-field-grounding-
|
|
9
|
+
import { b as fi } from "./catalog-field-grounding-DoEBOXQd.js";
|
|
10
10
|
import { createFrameLayouts as ff } from "../layouts/index.js";
|
|
11
11
|
import { t as Us, c as Mo, f as js, h as Cr, i as pf } from "./index-DFOb_6HB.js";
|
|
12
12
|
import { a as fa, C as zs } from "./common-types-4bjoIgvm.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const x=require("react/jsx-runtime"),ie=require("react"),_i=require("./index-BxM99sFL.js"),gl=require("react-dom"),dt=require("./index-DRlMUglg.js");require("react-dom/client");const Oi=require("./catalog-field-grounding-VgVzDd25.js"),gp=require("../layouts/index.cjs"),we=require("./index-D7KJindZ.js"),xn=require("./common-types-C73-Ud1-.js");function yl(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const f=yl(ie),Bn=yl(gl),Xa=e=>{let r;const t=new Set,n=(c,d)=>{const u=typeof c=="function"?c(r):c;if(!Object.is(u,r)){const p=r;r=d??(typeof u!="object"||u===null)?u:Object.assign({},r,u),t.forEach(h=>h(r,p))}},o=()=>r,s={setState:n,getState:o,getInitialState:()=>l,subscribe:c=>(t.add(c),()=>t.delete(c))},l=r=e(n,o,s);return s},yp=e=>e?Xa(e):Xa,bp=e=>e;function vp(e,r=bp){const t=ie.useSyncExternalStore(e.subscribe,ie.useCallback(()=>r(e.getState()),[e,r]),ie.useCallback(()=>r(e.getInitialState()),[e,r]));return ie.useDebugValue(t),t}const Za=e=>{const r=yp(e),t=n=>vp(r,n);return Object.assign(t,r),t},_t=e=>e?Za(e):Za;var bl=Symbol.for("immer-nothing"),Qa=Symbol.for("immer-draftable"),Q=Symbol.for("immer-state"),Cp=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ye(e,...r){if(process.env.NODE_ENV!=="production"){const t=Cp[e],n=typeof t=="function"?t.apply(null,r):t;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ar=Object.getPrototypeOf;function Qt(e){return!!e&&!!e[Q]}function Ze(e){var r;return e?vl(e)||Array.isArray(e)||!!e[Qa]||!!((r=e.constructor)!=null&&r[Qa])||Br(e)||jn(e):!1}var Sp=Object.prototype.constructor.toString(),Ja=new WeakMap;function vl(e){if(!e||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);if(r===null||r===Object.prototype)return!0;const t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;if(t===Object)return!0;if(typeof t!="function")return!1;let n=Ja.get(t);return n===void 0&&(n=Function.toString.call(t),Ja.set(t,n)),n===Sp}function Dr(e,r,t=!0){$n(e)===0?(t?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{r(o,e[o],e)}):e.forEach((n,o)=>r(o,n,e))}function $n(e){const r=e[Q];return r?r.type_:Array.isArray(e)?1:Br(e)?2:jn(e)?3:0}function ei(e,r){return $n(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Cl(e,r,t){const n=$n(e);n===2?e.set(r,t):n===3?e.add(t):e[r]=t}function xp(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function Br(e){return e instanceof Map}function jn(e){return e instanceof Set}function de(e){return e.copy_||e.base_}function ti(e,r){if(Br(e))return new Map(e);if(jn(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const t=vl(e);if(r===!0||r==="class_only"&&!t){const n=Object.getOwnPropertyDescriptors(e);delete n[Q];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Ar(e),n)}else{const n=Ar(e);if(n!==null&&t)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function Mi(e,r=!1){return Un(e)||Qt(e)||!Ze(e)||($n(e)>1&&Object.defineProperties(e,{set:tn,add:tn,clear:tn,delete:tn}),Object.freeze(e),r&&Object.values(e).forEach(t=>Mi(t,!0))),e}function wp(){ye(2)}var tn={value:wp};function Un(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var ri={};function Tt(e){const r=ri[e];return r||ye(0,e),r}function Ip(e,r){ri[e]||(ri[e]=r)}var Rr;function wn(){return Rr}function Ep(e,r){return{drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function es(e,r){r&&(Tt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function ni(e){oi(e),e.drafts_.forEach(Tp),e.drafts_=null}function oi(e){e===Rr&&(Rr=e.parent_)}function ts(e){return Rr=Ep(Rr,e)}function Tp(e){const r=e[Q];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function rs(e,r){r.unfinalizedDrafts_=r.drafts_.length;const t=r.drafts_[0];return e!==void 0&&e!==t?(t[Q].modified_&&(ni(r),ye(4)),Ze(e)&&(e=In(r,e),r.parent_||En(r,e)),r.patches_&&Tt("Patches").generateReplacementPatches_(t[Q].base_,e,r.patches_,r.inversePatches_)):e=In(r,t,[]),ni(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),e!==bl?e:void 0}function In(e,r,t){if(Un(r))return r;const n=e.immer_.shouldUseStrictIteration(),o=r[Q];if(!o)return Dr(r,(i,a)=>ns(e,o,r,i,a,t),n),r;if(o.scope_!==e)return r;if(!o.modified_)return En(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const i=o.copy_;let a=i,s=!1;o.type_===3&&(a=new Set(i),i.clear(),s=!0),Dr(a,(l,c)=>ns(e,o,i,l,c,t,s),n),En(e,i,!1),t&&e.patches_&&Tt("Patches").generatePatches_(o,t,e.patches_,e.inversePatches_)}return o.copy_}function ns(e,r,t,n,o,i,a){if(o==null||typeof o!="object"&&!a)return;const s=Un(o);if(!(s&&!a)){if(process.env.NODE_ENV!=="production"&&o===t&&ye(5),Qt(o)){const l=i&&r&&r.type_!==3&&!ei(r.assigned_,n)?i.concat(n):void 0,c=In(e,o,l);if(Cl(t,n,c),Qt(c))e.canAutoFreeze_=!1;else return}else a&&t.add(o);if(Ze(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||r&&r.base_&&r.base_[n]===o&&s)return;In(e,o),(!r||!r.scope_.parent_)&&typeof n!="symbol"&&(Br(t)?t.has(n):Object.prototype.propertyIsEnumerable.call(t,n))&&En(e,o)}}}function En(e,r,t=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Mi(r,t)}function Fp(e,r){const t=Array.isArray(e),n={type_:t?1:0,scope_:r?r.scope_:wn(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Ni;t&&(o=[n],i=Pr);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}var Ni={get(e,r){if(r===Q)return e;const t=de(e);if(!ei(t,r))return Ap(e,t,r);const n=t[r];return e.finalized_||!Ze(n)?n:n===Eo(e.base_,r)?(To(e),e.copy_[r]=_r(n,e)):n},has(e,r){return r in de(e)},ownKeys(e){return Reflect.ownKeys(de(e))},set(e,r,t){const n=Sl(de(e),r);if(n!=null&&n.set)return n.set.call(e.draft_,t),!0;if(!e.modified_){const o=Eo(de(e),r),i=o==null?void 0:o[Q];if(i&&i.base_===t)return e.copy_[r]=t,e.assigned_[r]=!1,!0;if(xp(t,o)&&(t!==void 0||ei(e.base_,r)))return!0;To(e),Ye(e)}return e.copy_[r]===t&&(t!==void 0||r in e.copy_)||Number.isNaN(t)&&Number.isNaN(e.copy_[r])||(e.copy_[r]=t,e.assigned_[r]=!0),!0},deleteProperty(e,r){return Eo(e.base_,r)!==void 0||r in e.base_?(e.assigned_[r]=!1,To(e),Ye(e)):delete e.assigned_[r],e.copy_&&delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const t=de(e),n=Reflect.getOwnPropertyDescriptor(t,r);return n&&{writable:!0,configurable:e.type_!==1||r!=="length",enumerable:n.enumerable,value:t[r]}},defineProperty(){ye(11)},getPrototypeOf(e){return Ar(e.base_)},setPrototypeOf(){ye(12)}},Pr={};Dr(Ni,(e,r)=>{Pr[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Pr.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&ye(13),Pr.set.call(this,e,r,void 0)};Pr.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&ye(14),Ni.set.call(this,e[0],r,t,e[0])};function Eo(e,r){const t=e[Q];return(t?de(t):e)[r]}function Ap(e,r,t){var o;const n=Sl(r,t);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function Sl(e,r){if(!(r in e))return;let t=Ar(e);for(;t;){const n=Object.getOwnPropertyDescriptor(t,r);if(n)return n;t=Ar(t)}}function Ye(e){e.modified_||(e.modified_=!0,e.parent_&&Ye(e.parent_))}function To(e){e.copy_||(e.copy_=ti(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Dp=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(r,t,n)=>{if(typeof r=="function"&&typeof t!="function"){const i=t;t=r;const a=this;return function(l=i,...c){return a.produce(l,d=>t.call(this,d,...c))}}typeof t!="function"&&ye(6),n!==void 0&&typeof n!="function"&&ye(7);let o;if(Ze(r)){const i=ts(this),a=_r(r,void 0);let s=!0;try{o=t(a),s=!1}finally{s?ni(i):oi(i)}return es(i,n),rs(o,i)}else if(!r||typeof r!="object"){if(o=t(r),o===void 0&&(o=r),o===bl&&(o=void 0),this.autoFreeze_&&Mi(o,!0),n){const i=[],a=[];Tt("Patches").generateReplacementPatches_(r,o,i,a),n(i,a)}return o}else ye(1,r)},this.produceWithPatches=(r,t)=>{if(typeof r=="function")return(a,...s)=>this.produceWithPatches(a,l=>r(l,...s));let n,o;return[this.produce(r,t,(a,s)=>{n=a,o=s}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ze(e)||ye(8),Qt(e)&&(e=Rp(e));const r=ts(this),t=_r(e,void 0);return t[Q].isManual_=!0,oi(r),t}finishDraft(e,r){const t=e&&e[Q];(!t||!t.isManual_)&&ye(9);const{scope_:n}=t;return es(n,r),rs(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,r){let t;for(t=r.length-1;t>=0;t--){const o=r[t];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}t>-1&&(r=r.slice(t+1));const n=Tt("Patches").applyPatches_;return Qt(e)?n(e,r):this.produce(e,o=>n(o,r))}};function _r(e,r){const t=Br(e)?Tt("MapSet").proxyMap_(e,r):jn(e)?Tt("MapSet").proxySet_(e,r):Fp(e,r);return(r?r.scope_:wn()).drafts_.push(t),t}function Rp(e){return Qt(e)||ye(10,e),xl(e)}function xl(e){if(!Ze(e)||Un(e))return e;const r=e[Q];let t,n=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,t=ti(e,r.scope_.immer_.useStrictShallowCopy_),n=r.scope_.immer_.shouldUseStrictIteration()}else t=ti(e,!0);return Dr(t,(o,i)=>{Cl(t,o,xl(i))},n),r&&(r.finalized_=!1),t}function Pp(){class e extends Map{constructor(l,c){super(),this[Q]={type_:2,parent_:c,scope_:c?c.scope_:wn(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:l,draft_:this,isManual_:!1,revoked_:!1}}get size(){return de(this[Q]).size}has(l){return de(this[Q]).has(l)}set(l,c){const d=this[Q];return a(d),(!de(d).has(l)||de(d).get(l)!==c)&&(t(d),Ye(d),d.assigned_.set(l,!0),d.copy_.set(l,c),d.assigned_.set(l,!0)),this}delete(l){if(!this.has(l))return!1;const c=this[Q];return a(c),t(c),Ye(c),c.base_.has(l)?c.assigned_.set(l,!1):c.assigned_.delete(l),c.copy_.delete(l),!0}clear(){const l=this[Q];a(l),de(l).size&&(t(l),Ye(l),l.assigned_=new Map,Dr(l.base_,c=>{l.assigned_.set(c,!1)}),l.copy_.clear())}forEach(l,c){const d=this[Q];de(d).forEach((u,p,h)=>{l.call(c,this.get(p),p,this)})}get(l){const c=this[Q];a(c);const d=de(c).get(l);if(c.finalized_||!Ze(d)||d!==c.base_.get(l))return d;const u=_r(d,c);return t(c),c.copy_.set(l,u),u}keys(){return de(this[Q]).keys()}values(){const l=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const c=l.next();return c.done?c:{done:!1,value:this.get(c.value)}}}}entries(){const l=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const c=l.next();if(c.done)return c;const d=this.get(c.value);return{done:!1,value:[c.value,d]}}}}[Symbol.iterator](){return this.entries()}}function r(s,l){return new e(s,l)}function t(s){s.copy_||(s.assigned_=new Map,s.copy_=new Map(s.base_))}class n extends Set{constructor(l,c){super(),this[Q]={type_:3,parent_:c,scope_:c?c.scope_:wn(),modified_:!1,finalized_:!1,copy_:void 0,base_:l,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return de(this[Q]).size}has(l){const c=this[Q];return a(c),c.copy_?!!(c.copy_.has(l)||c.drafts_.has(l)&&c.copy_.has(c.drafts_.get(l))):c.base_.has(l)}add(l){const c=this[Q];return a(c),this.has(l)||(i(c),Ye(c),c.copy_.add(l)),this}delete(l){if(!this.has(l))return!1;const c=this[Q];return a(c),i(c),Ye(c),c.copy_.delete(l)||(c.drafts_.has(l)?c.copy_.delete(c.drafts_.get(l)):!1)}clear(){const l=this[Q];a(l),de(l).size&&(i(l),Ye(l),l.copy_.clear())}values(){const l=this[Q];return a(l),i(l),l.copy_.values()}entries(){const l=this[Q];return a(l),i(l),l.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(l,c){const d=this.values();let u=d.next();for(;!u.done;)l.call(c,u.value,u.value,this),u=d.next()}}function o(s,l){return new n(s,l)}function i(s){s.copy_||(s.copy_=new Set,s.base_.forEach(l=>{if(Ze(l)){const c=_r(l,s);s.drafts_.set(l,c),s.copy_.add(c)}else s.copy_.add(l)}))}function a(s){s.revoked_&&ye(3,JSON.stringify(de(s)))}Ip("MapSet",{proxyMap_:r,proxySet_:o})}var _p=new Dp,Op=_p.produce;const Mp=e=>(r,t,n)=>(n.setState=(o,i,...a)=>{const s=typeof o=="function"?Op(o):o;return r(s,i,...a)},e(n.setState,t,n)),zn=Mp;var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Np(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function n(){return this instanceof n?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t}var kp=function e(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var n,o,i;if(Array.isArray(r)){if(n=r.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!e(r[o],t[o]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(i=Object.keys(r),n=i.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return!1;for(o=n;o--!==0;){var a=i[o];if(!(a==="_owner"&&r.$$typeof)&&!e(r[a],t[a]))return!1}return!0}return r!==r&&t!==t};const ii=qn(kp),xt=new Map;function Lp(e,r){return xt.has(e)||xt.set(e,new Set),xt.get(e).add(r),()=>{var t;(t=xt.get(e))==null||t.delete(r)}}function ki(e){const r=xt.get(e);r&&r.forEach(t=>{try{t()}catch(n){console.error(`Error in store event callback for '${e}':`,n)}})}function Vp(e){e?xt.delete(e):xt.clear()}const et={subscribe:Lp,emit:ki,clear:Vp},Bp=()=>ki("dashboard:load"),$p=()=>ki("dashboard:unload"),os={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Or=new Map,rn=e=>{const r=Or.get(e);return r?Object.fromEntries(Object.entries(r.stores).map(([t,n])=>[t,n.getState()])):{}},jp=(e,r,t)=>{if(e===void 0)return{type:"untracked",connection:r.connect(t)};const n=Or.get(t.name);if(n)return{type:"tracked",store:e,...n};const o={connection:r.connect(t),stores:{}};return Or.set(t.name,o),{type:"tracked",store:e,...o}},Up=(e,r)=>{if(r===void 0)return;const t=Or.get(e);t&&(delete t.stores[r],Object.keys(t.stores).length===0&&Or.delete(e))},zp=e=>{var r,t;if(!e)return;const n=e.split(`
|
|
1
|
+
"use strict";const x=require("react/jsx-runtime"),ie=require("react"),_i=require("./index-BxM99sFL.js"),gl=require("react-dom"),dt=require("./index-DRlMUglg.js");require("react-dom/client");const Oi=require("./catalog-field-grounding-Du6mKDcF.js"),gp=require("../layouts/index.cjs"),we=require("./index-D7KJindZ.js"),xn=require("./common-types-C73-Ud1-.js");function yl(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const f=yl(ie),Bn=yl(gl),Xa=e=>{let r;const t=new Set,n=(c,d)=>{const u=typeof c=="function"?c(r):c;if(!Object.is(u,r)){const p=r;r=d??(typeof u!="object"||u===null)?u:Object.assign({},r,u),t.forEach(h=>h(r,p))}},o=()=>r,s={setState:n,getState:o,getInitialState:()=>l,subscribe:c=>(t.add(c),()=>t.delete(c))},l=r=e(n,o,s);return s},yp=e=>e?Xa(e):Xa,bp=e=>e;function vp(e,r=bp){const t=ie.useSyncExternalStore(e.subscribe,ie.useCallback(()=>r(e.getState()),[e,r]),ie.useCallback(()=>r(e.getInitialState()),[e,r]));return ie.useDebugValue(t),t}const Za=e=>{const r=yp(e),t=n=>vp(r,n);return Object.assign(t,r),t},_t=e=>e?Za(e):Za;var bl=Symbol.for("immer-nothing"),Qa=Symbol.for("immer-draftable"),Q=Symbol.for("immer-state"),Cp=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ye(e,...r){if(process.env.NODE_ENV!=="production"){const t=Cp[e],n=typeof t=="function"?t.apply(null,r):t;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ar=Object.getPrototypeOf;function Qt(e){return!!e&&!!e[Q]}function Ze(e){var r;return e?vl(e)||Array.isArray(e)||!!e[Qa]||!!((r=e.constructor)!=null&&r[Qa])||Br(e)||jn(e):!1}var Sp=Object.prototype.constructor.toString(),Ja=new WeakMap;function vl(e){if(!e||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);if(r===null||r===Object.prototype)return!0;const t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;if(t===Object)return!0;if(typeof t!="function")return!1;let n=Ja.get(t);return n===void 0&&(n=Function.toString.call(t),Ja.set(t,n)),n===Sp}function Dr(e,r,t=!0){$n(e)===0?(t?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{r(o,e[o],e)}):e.forEach((n,o)=>r(o,n,e))}function $n(e){const r=e[Q];return r?r.type_:Array.isArray(e)?1:Br(e)?2:jn(e)?3:0}function ei(e,r){return $n(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Cl(e,r,t){const n=$n(e);n===2?e.set(r,t):n===3?e.add(t):e[r]=t}function xp(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function Br(e){return e instanceof Map}function jn(e){return e instanceof Set}function de(e){return e.copy_||e.base_}function ti(e,r){if(Br(e))return new Map(e);if(jn(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const t=vl(e);if(r===!0||r==="class_only"&&!t){const n=Object.getOwnPropertyDescriptors(e);delete n[Q];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Ar(e),n)}else{const n=Ar(e);if(n!==null&&t)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function Mi(e,r=!1){return Un(e)||Qt(e)||!Ze(e)||($n(e)>1&&Object.defineProperties(e,{set:tn,add:tn,clear:tn,delete:tn}),Object.freeze(e),r&&Object.values(e).forEach(t=>Mi(t,!0))),e}function wp(){ye(2)}var tn={value:wp};function Un(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var ri={};function Tt(e){const r=ri[e];return r||ye(0,e),r}function Ip(e,r){ri[e]||(ri[e]=r)}var Rr;function wn(){return Rr}function Ep(e,r){return{drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function es(e,r){r&&(Tt("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function ni(e){oi(e),e.drafts_.forEach(Tp),e.drafts_=null}function oi(e){e===Rr&&(Rr=e.parent_)}function ts(e){return Rr=Ep(Rr,e)}function Tp(e){const r=e[Q];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function rs(e,r){r.unfinalizedDrafts_=r.drafts_.length;const t=r.drafts_[0];return e!==void 0&&e!==t?(t[Q].modified_&&(ni(r),ye(4)),Ze(e)&&(e=In(r,e),r.parent_||En(r,e)),r.patches_&&Tt("Patches").generateReplacementPatches_(t[Q].base_,e,r.patches_,r.inversePatches_)):e=In(r,t,[]),ni(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),e!==bl?e:void 0}function In(e,r,t){if(Un(r))return r;const n=e.immer_.shouldUseStrictIteration(),o=r[Q];if(!o)return Dr(r,(i,a)=>ns(e,o,r,i,a,t),n),r;if(o.scope_!==e)return r;if(!o.modified_)return En(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const i=o.copy_;let a=i,s=!1;o.type_===3&&(a=new Set(i),i.clear(),s=!0),Dr(a,(l,c)=>ns(e,o,i,l,c,t,s),n),En(e,i,!1),t&&e.patches_&&Tt("Patches").generatePatches_(o,t,e.patches_,e.inversePatches_)}return o.copy_}function ns(e,r,t,n,o,i,a){if(o==null||typeof o!="object"&&!a)return;const s=Un(o);if(!(s&&!a)){if(process.env.NODE_ENV!=="production"&&o===t&&ye(5),Qt(o)){const l=i&&r&&r.type_!==3&&!ei(r.assigned_,n)?i.concat(n):void 0,c=In(e,o,l);if(Cl(t,n,c),Qt(c))e.canAutoFreeze_=!1;else return}else a&&t.add(o);if(Ze(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||r&&r.base_&&r.base_[n]===o&&s)return;In(e,o),(!r||!r.scope_.parent_)&&typeof n!="symbol"&&(Br(t)?t.has(n):Object.prototype.propertyIsEnumerable.call(t,n))&&En(e,o)}}}function En(e,r,t=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Mi(r,t)}function Fp(e,r){const t=Array.isArray(e),n={type_:t?1:0,scope_:r?r.scope_:wn(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Ni;t&&(o=[n],i=Pr);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}var Ni={get(e,r){if(r===Q)return e;const t=de(e);if(!ei(t,r))return Ap(e,t,r);const n=t[r];return e.finalized_||!Ze(n)?n:n===Eo(e.base_,r)?(To(e),e.copy_[r]=_r(n,e)):n},has(e,r){return r in de(e)},ownKeys(e){return Reflect.ownKeys(de(e))},set(e,r,t){const n=Sl(de(e),r);if(n!=null&&n.set)return n.set.call(e.draft_,t),!0;if(!e.modified_){const o=Eo(de(e),r),i=o==null?void 0:o[Q];if(i&&i.base_===t)return e.copy_[r]=t,e.assigned_[r]=!1,!0;if(xp(t,o)&&(t!==void 0||ei(e.base_,r)))return!0;To(e),Ye(e)}return e.copy_[r]===t&&(t!==void 0||r in e.copy_)||Number.isNaN(t)&&Number.isNaN(e.copy_[r])||(e.copy_[r]=t,e.assigned_[r]=!0),!0},deleteProperty(e,r){return Eo(e.base_,r)!==void 0||r in e.base_?(e.assigned_[r]=!1,To(e),Ye(e)):delete e.assigned_[r],e.copy_&&delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const t=de(e),n=Reflect.getOwnPropertyDescriptor(t,r);return n&&{writable:!0,configurable:e.type_!==1||r!=="length",enumerable:n.enumerable,value:t[r]}},defineProperty(){ye(11)},getPrototypeOf(e){return Ar(e.base_)},setPrototypeOf(){ye(12)}},Pr={};Dr(Ni,(e,r)=>{Pr[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Pr.deleteProperty=function(e,r){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(r))&&ye(13),Pr.set.call(this,e,r,void 0)};Pr.set=function(e,r,t){return process.env.NODE_ENV!=="production"&&r!=="length"&&isNaN(parseInt(r))&&ye(14),Ni.set.call(this,e[0],r,t,e[0])};function Eo(e,r){const t=e[Q];return(t?de(t):e)[r]}function Ap(e,r,t){var o;const n=Sl(r,t);return n?"value"in n?n.value:(o=n.get)==null?void 0:o.call(e.draft_):void 0}function Sl(e,r){if(!(r in e))return;let t=Ar(e);for(;t;){const n=Object.getOwnPropertyDescriptor(t,r);if(n)return n;t=Ar(t)}}function Ye(e){e.modified_||(e.modified_=!0,e.parent_&&Ye(e.parent_))}function To(e){e.copy_||(e.copy_=ti(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Dp=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(r,t,n)=>{if(typeof r=="function"&&typeof t!="function"){const i=t;t=r;const a=this;return function(l=i,...c){return a.produce(l,d=>t.call(this,d,...c))}}typeof t!="function"&&ye(6),n!==void 0&&typeof n!="function"&&ye(7);let o;if(Ze(r)){const i=ts(this),a=_r(r,void 0);let s=!0;try{o=t(a),s=!1}finally{s?ni(i):oi(i)}return es(i,n),rs(o,i)}else if(!r||typeof r!="object"){if(o=t(r),o===void 0&&(o=r),o===bl&&(o=void 0),this.autoFreeze_&&Mi(o,!0),n){const i=[],a=[];Tt("Patches").generateReplacementPatches_(r,o,i,a),n(i,a)}return o}else ye(1,r)},this.produceWithPatches=(r,t)=>{if(typeof r=="function")return(a,...s)=>this.produceWithPatches(a,l=>r(l,...s));let n,o;return[this.produce(r,t,(a,s)=>{n=a,o=s}),n,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ze(e)||ye(8),Qt(e)&&(e=Rp(e));const r=ts(this),t=_r(e,void 0);return t[Q].isManual_=!0,oi(r),t}finishDraft(e,r){const t=e&&e[Q];(!t||!t.isManual_)&&ye(9);const{scope_:n}=t;return es(n,r),rs(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,r){let t;for(t=r.length-1;t>=0;t--){const o=r[t];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}t>-1&&(r=r.slice(t+1));const n=Tt("Patches").applyPatches_;return Qt(e)?n(e,r):this.produce(e,o=>n(o,r))}};function _r(e,r){const t=Br(e)?Tt("MapSet").proxyMap_(e,r):jn(e)?Tt("MapSet").proxySet_(e,r):Fp(e,r);return(r?r.scope_:wn()).drafts_.push(t),t}function Rp(e){return Qt(e)||ye(10,e),xl(e)}function xl(e){if(!Ze(e)||Un(e))return e;const r=e[Q];let t,n=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,t=ti(e,r.scope_.immer_.useStrictShallowCopy_),n=r.scope_.immer_.shouldUseStrictIteration()}else t=ti(e,!0);return Dr(t,(o,i)=>{Cl(t,o,xl(i))},n),r&&(r.finalized_=!1),t}function Pp(){class e extends Map{constructor(l,c){super(),this[Q]={type_:2,parent_:c,scope_:c?c.scope_:wn(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:l,draft_:this,isManual_:!1,revoked_:!1}}get size(){return de(this[Q]).size}has(l){return de(this[Q]).has(l)}set(l,c){const d=this[Q];return a(d),(!de(d).has(l)||de(d).get(l)!==c)&&(t(d),Ye(d),d.assigned_.set(l,!0),d.copy_.set(l,c),d.assigned_.set(l,!0)),this}delete(l){if(!this.has(l))return!1;const c=this[Q];return a(c),t(c),Ye(c),c.base_.has(l)?c.assigned_.set(l,!1):c.assigned_.delete(l),c.copy_.delete(l),!0}clear(){const l=this[Q];a(l),de(l).size&&(t(l),Ye(l),l.assigned_=new Map,Dr(l.base_,c=>{l.assigned_.set(c,!1)}),l.copy_.clear())}forEach(l,c){const d=this[Q];de(d).forEach((u,p,h)=>{l.call(c,this.get(p),p,this)})}get(l){const c=this[Q];a(c);const d=de(c).get(l);if(c.finalized_||!Ze(d)||d!==c.base_.get(l))return d;const u=_r(d,c);return t(c),c.copy_.set(l,u),u}keys(){return de(this[Q]).keys()}values(){const l=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const c=l.next();return c.done?c:{done:!1,value:this.get(c.value)}}}}entries(){const l=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const c=l.next();if(c.done)return c;const d=this.get(c.value);return{done:!1,value:[c.value,d]}}}}[Symbol.iterator](){return this.entries()}}function r(s,l){return new e(s,l)}function t(s){s.copy_||(s.assigned_=new Map,s.copy_=new Map(s.base_))}class n extends Set{constructor(l,c){super(),this[Q]={type_:3,parent_:c,scope_:c?c.scope_:wn(),modified_:!1,finalized_:!1,copy_:void 0,base_:l,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return de(this[Q]).size}has(l){const c=this[Q];return a(c),c.copy_?!!(c.copy_.has(l)||c.drafts_.has(l)&&c.copy_.has(c.drafts_.get(l))):c.base_.has(l)}add(l){const c=this[Q];return a(c),this.has(l)||(i(c),Ye(c),c.copy_.add(l)),this}delete(l){if(!this.has(l))return!1;const c=this[Q];return a(c),i(c),Ye(c),c.copy_.delete(l)||(c.drafts_.has(l)?c.copy_.delete(c.drafts_.get(l)):!1)}clear(){const l=this[Q];a(l),de(l).size&&(i(l),Ye(l),l.copy_.clear())}values(){const l=this[Q];return a(l),i(l),l.copy_.values()}entries(){const l=this[Q];return a(l),i(l),l.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(l,c){const d=this.values();let u=d.next();for(;!u.done;)l.call(c,u.value,u.value,this),u=d.next()}}function o(s,l){return new n(s,l)}function i(s){s.copy_||(s.copy_=new Set,s.base_.forEach(l=>{if(Ze(l)){const c=_r(l,s);s.drafts_.set(l,c),s.copy_.add(c)}else s.copy_.add(l)}))}function a(s){s.revoked_&&ye(3,JSON.stringify(de(s)))}Ip("MapSet",{proxyMap_:r,proxySet_:o})}var _p=new Dp,Op=_p.produce;const Mp=e=>(r,t,n)=>(n.setState=(o,i,...a)=>{const s=typeof o=="function"?Op(o):o;return r(s,i,...a)},e(n.setState,t,n)),zn=Mp;var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Np(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function n(){return this instanceof n?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t}var kp=function e(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var n,o,i;if(Array.isArray(r)){if(n=r.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!e(r[o],t[o]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(i=Object.keys(r),n=i.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return!1;for(o=n;o--!==0;){var a=i[o];if(!(a==="_owner"&&r.$$typeof)&&!e(r[a],t[a]))return!1}return!0}return r!==r&&t!==t};const ii=qn(kp),xt=new Map;function Lp(e,r){return xt.has(e)||xt.set(e,new Set),xt.get(e).add(r),()=>{var t;(t=xt.get(e))==null||t.delete(r)}}function ki(e){const r=xt.get(e);r&&r.forEach(t=>{try{t()}catch(n){console.error(`Error in store event callback for '${e}':`,n)}})}function Vp(e){e?xt.delete(e):xt.clear()}const et={subscribe:Lp,emit:ki,clear:Vp},Bp=()=>ki("dashboard:load"),$p=()=>ki("dashboard:unload"),os={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Or=new Map,rn=e=>{const r=Or.get(e);return r?Object.fromEntries(Object.entries(r.stores).map(([t,n])=>[t,n.getState()])):{}},jp=(e,r,t)=>{if(e===void 0)return{type:"untracked",connection:r.connect(t)};const n=Or.get(t.name);if(n)return{type:"tracked",store:e,...n};const o={connection:r.connect(t),stores:{}};return Or.set(t.name,o),{type:"tracked",store:e,...o}},Up=(e,r)=>{if(r===void 0)return;const t=Or.get(e);t&&(delete t.stores[r],Object.keys(t.stores).length===0&&Or.delete(e))},zp=e=>{var r,t;if(!e)return;const n=e.split(`
|
|
2
2
|
`),o=n.findIndex(a=>a.includes("api.setState"));if(o<0)return;const i=((r=n[o+1])==null?void 0:r.trim())||"";return(t=/.+ (.+) .+/.exec(i))==null?void 0:t[1]},qp=(e,r={})=>(t,n,o)=>{const{enabled:i,anonymousActionType:a,store:s,...l}=r;let c;try{c=(i??(os?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return e(t,n,o);const{connection:d,...u}=jp(s,c,l);let p=!0;o.setState=(m,b,S)=>{const g=t(m,b);if(!p)return g;const y=S===void 0?{type:a||zp(new Error().stack)||"anonymous"}:typeof S=="string"?{type:S}:S;return s===void 0?(d==null||d.send(y,n()),g):(d==null||d.send({...y,type:`${s}/${y.type}`},{...rn(l.name),[s]:o.getState()}),g)},o.devtools={cleanup:()=>{d&&typeof d.unsubscribe=="function"&&d.unsubscribe(),Up(l.name,s)}};const h=(...m)=>{const b=p;p=!1,t(...m),p=b},v=e(o.setState,n,o);if(u.type==="untracked"?d==null||d.init(v):(u.stores[u.store]=o,d==null||d.init(Object.fromEntries(Object.entries(u.stores).map(([m,b])=>[m,m===u.store?v:b.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let m=!1;const b=o.dispatch;o.dispatch=(...S)=>{(os?"production":void 0)!=="production"&&S[0].type==="__setState"&&!m&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),m=!0),b(...S)}}return d.subscribe(m=>{var b;switch(m.type){case"ACTION":if(typeof m.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Fo(m.payload,S=>{if(S.type==="__setState"){if(s===void 0){h(S.state);return}Object.keys(S.state).length!==1&&console.error(`
|
|
3
3
|
[zustand devtools middleware] Unsupported __setState action format.
|
|
4
4
|
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as te, G as L, H as ne, u as oe, Z as ft, _ as ht, $ as gt, a as ie, a1 as bt, a9 as yt, B as V, e as xt, X as Ke, E as Pe, f as Ye, S as Ge, aa as vt, ab as Ct, ac as se, ad as Ae, ae as ze, af as be, ag as ye, ah as kt, ai as Me, aj as Nt, ak as St, al as le, am as Dt, an as Oe, g as Be, ao as Xe, ap as Je, aq as Ze, L as P, a2 as We, a3 as xe, a4 as ve, a5 as Ce, a6 as ke, a7 as Ne, ar as et, as as wt, at as It, au as Re, av as Et, aw as Qe, ax as Tt, ay as Se } from "./switch-
|
|
1
|
+
import { c as te, G as L, H as ne, u as oe, Z as ft, _ as ht, $ as gt, a as ie, a1 as bt, a9 as yt, B as V, e as xt, X as Ke, E as Pe, f as Ye, S as Ge, aa as vt, ab as Ct, ac as se, ad as Ae, ae as ze, af as be, ag as ye, ah as kt, ai as Me, aj as Nt, ak as St, al as le, am as Dt, an as Oe, g as Be, ao as Xe, ap as Je, aq as Ze, L as P, a2 as We, a3 as xe, a4 as ve, a5 as Ce, a6 as ke, a7 as Ne, ar as et, as as wt, at as It, au as Re, av as Et, aw as Qe, ax as Tt, ay as Se } from "./switch-CP7SmEIZ.js";
|
|
2
2
|
import { useEffect as de, useMemo as z, useState as Q, useRef as De, useCallback as O, Fragment as Vt } from "react";
|
|
3
|
-
import { al as _t, am as tt, an as qt, ao as Ft, ap as Lt, aq as At, ar as zt, y as Mt, as as Ot, ae as ue, at, ag as rt, au as st, av as Bt, p as R, aw as Rt, ax as Qt, ay as je, az as jt, aA as Ut, aB as lt, aC as nt, aD as Ht, aE as $t, aF as Kt, aG as Pt, aH as Yt, aI as Gt, aJ as Xt, aK as Jt } from "./index-
|
|
3
|
+
import { al as _t, am as tt, an as qt, ao as Ft, ap as Lt, aq as At, ar as zt, y as Mt, as as Ot, ae as ue, at, ag as rt, au as st, av as Bt, p as R, aw as Rt, ax as Qt, ay as je, az as jt, aA as Ut, aB as lt, aC as nt, aD as Ht, aE as $t, aF as Kt, aG as Pt, aH as Yt, aI as Gt, aJ as Xt, aK as Jt } from "./index-DVPvpd8u.js";
|
|
4
4
|
import { jsx as t, jsxs as d, Fragment as $ } from "react/jsx-runtime";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
|
-
import { u as we } from "./use-visual-utils-
|
|
6
|
+
import { u as we } from "./use-visual-utils-BLh9mKic.js";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.453.0 - ISC
|
|
9
9
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("./switch-
|
|
1
|
+
"use strict";const s=require("./switch-DYRgERrC.js"),v=require("react"),p=require("./index-DT9osgRT.js"),e=require("react/jsx-runtime");require("./index-BxM99sFL.js");const re=require("./use-visual-utils-CpaqIHoc.js");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ad as X, u as Y, ae as Z, af as ee, ag as te, ah as re, ai as se, aj as ae, p as V, ak as oe } from "./index-
|
|
2
|
-
import { H as ne, E as ie, u as b, G as H, I as ce } from "./switch-
|
|
1
|
+
import { ad as X, u as Y, ae as Z, af as ee, ag as te, ah as re, ai as se, aj as ae, p as V, ak as oe } from "./index-DVPvpd8u.js";
|
|
2
|
+
import { H as ne, E as ie, u as b, G as H, I as ce } from "./switch-CP7SmEIZ.js";
|
|
3
3
|
import { useState as z, useEffect as de, useCallback as A } from "react";
|
|
4
4
|
function le(e) {
|
|
5
5
|
const [a, s] = z(null), [r, t] = z(null), o = X();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("./index-
|
|
1
|
+
"use strict";const u=require("./index-DT9osgRT.js"),f=require("./switch-DYRgERrC.js"),S=require("react");function K(e){const[a,s]=S.useState(null),[r,t]=S.useState(null),o=u.useEnsureReactGlobals();return S.useEffect(()=>{if(!e||e.trim()===""){s(null),t(null);return}if(!o)return;(async()=>{try{if(!e.startsWith("http://")&&!e.startsWith("https://"))throw new Error(`Invalid URL format: ${e}`);try{new URL(e)}catch{throw new Error(`Invalid URL: ${e}`)}const i=`${e.endsWith("/")?e:`${e}/`}index.js`;try{if(!(await fetch(i,{method:"HEAD"})).ok)throw new Error(`Module not found at ${i}`)}catch{}const m=await import(i);if(typeof m.useChartStore!="function")throw new Error("useChartStore is not a function");s(()=>m.useChartStore),t(null)}catch(n){const i=n instanceof Error?n.message:"Unknown error";console.error("Failed to load remote chart store:",i),t(i),s(null)}})()},[e,o]),a}function X(e,a){if(e.length===0)return"";const s=e.find(r=>{var t,o;return((t=r.customCardPreferences)==null?void 0:t.visualType)==="multiple"||!!((o=r.customCardPreferences)!=null&&o.dataInputCardIds)});if(s)return s.id;if(a){const r=e.find(t=>t.id===a);if(r){const t=r.tabTitle;if(t=="All__Header")return e[0].id;if(t&&t.endsWith("__Header")){const l=t.split("__")[0],n=e.find(i=>i.tabTitle===l);return n?n.id:e[0].id}return a}}return e[0].id}const A=new Set;function Y(e){return A.add(e),()=>{A.delete(e)}}function z(){A.forEach(e=>{e()})}const Z=e=>{if(!e||!("detailTableBackup"in e))return e;const{detailTableBackup:a,...s}=e;return s};async function B(e,a,s,r){if(!a||!s)throw new Error("Missing auth token or visual ID");const t=["resource-by-id","visual",s],o=r.getQueryData(t);if(o)return console.log("Using cached visual data for:",s),{data:o,fromCache:!0};console.log("Fetching visual data from network for:",s);const l=u.ue.loading("Loading visual...",{position:"top-center"});try{const n=await fetch(`${e}/management/v1/visuals/${s}`,{headers:{Authorization:`Bearer ${a}`}});if(!n.ok)throw new Error("Failed to load visual");const i=await n.json();return r.setQueryData(t,i),u.ue.dismiss(l),{data:i,fromCache:!1}}catch(n){throw u.ue.dismiss(l),n}}function H(e){if(typeof e=="string")return JSON.parse(e);if(typeof e=="object")return e;throw new Error("Invalid frame object format")}function ee(e,a){var o,l;const s=(e==null?void 0:e.frameObject)??((o=e==null?void 0:e.visual)==null?void 0:o.frameObject);if(!s)return!1;const r=H(s);if(!(r!=null&&r.cards)||r.cards.length===0)return!1;const t=(l=r.cards)==null?void 0:l.find(n=>n.id===r.activeCardId);return t?(u.setupEditorWithCard({...a,frame:r,card:t,visualId:(e==null?void 0:e.id)||r.visualId}),!0):!1}function te(){const e=f.useEditorStore(r=>{var t;return((t=r.card.customCardPreferences)==null?void 0:t.url)||""}),a=K(e);return{getUpdatedFrame:S.useCallback(()=>{var b;z();const{frame:r,card:t,isDevMode:o,isShowingVisual:l,selectedSchemaName:n,selectedDatamodelId:i,selectedDatabaseName:m,selectedTableName:p,selectedConnectionId:y}=f.useEditorStore.getState(),I=t.sql,U=(b=a==null?void 0:a.getState())==null?void 0:b.settings,V=f.buildSavedEditorCard(t,{isDevMode:o,cardSql:I,isShowingVisual:l,selectedSchemaName:n,selectedDatamodelId:i,selectedDatabaseName:m,selectedTableName:p,selectedConnectionId:y,remoteChartSettings:U,stripConfig:Z}),g=r.cards.map(E=>E.id===t.id?V:E);return{...r,cards:g,activeCardId:X(g,r.activeCardId)}},[a])}}function re(){const{authToken:e,tokenProps:a}=u.useSemaphorContext(),s=u.useQueryClient(),r=u.useAddFrameWithFreshSemanticExecutionPayload(),t=u.useSelectedVisual(),{selectVisual:o}=u.useManagementActions(),{setFrame:l,setCard:n,setIsDevMode:i,initializeModeDrafts:m,setActiveTabCardId:p,updateDataSource:y,setQueryResultColumns:I,setSelectedConnectionId:U,setSelectedDatabaseName:V,setSelectedSchemaName:g,setSelectedTableName:b,setSelectedDatamodelId:E,setFilterValues:P,setInlineFilterValuesMap:M,setApplyFilters:k,clearEditorContext:L}=f.useEditorActions(),{setIsDashboardEditing:v,setIsVisualEditing:T,setSelectedFrameId:j,clearSelectedFrameId:N,setIsDashboardPanelOpen:R}=f.useDashboardActions(),w=f.useDashboardStore(c=>c.selectedSheetId),W=f.useDashboardStore(c=>c.selectedFrameId),$=f.useDashboardStore(c=>c.dashboard),_=f.useDashboardStore(c=>c.filterValues),x=f.useDashboardStore(c=>c.inlineFilterValuesMap),F=u.useVisualById((t==null?void 0:t.id)||"",{enabled:!!(t!=null&&t.id)&&!!(e!=null&&e.accessToken)}),Q=S.useCallback(async c=>{try{o(c),N(),L();const{data:h,fromCache:D}=await B(a.apiServiceUrl,(e==null?void 0:e.accessToken)||"",c.id,s);if(!ee(h,{setFrame:l,setCard:n,setIsDevMode:i,initializeModeDrafts:m,setActiveTabCardId:p,updateDataSource:y,setQueryResultColumns:I,setSelectedConnectionId:U,setSelectedDatabaseName:V,setSelectedSchemaName:g,setSelectedTableName:b,setSelectedDatamodelId:E,setFilterValues:P,setInlineFilterValuesMap:M,setApplyFilters:k,setIsDashboardEditing:v,setIsVisualEditing:T,dashboard:$,selectedSheetId:w,selectedFrameId:W,filterValues:_,inlineFilterValuesMap:x}))throw new Error("Failed to setup editor with visual data");return{success:!0,fromCache:D}}catch(h){return console.error("Error editing visual:",h),{success:!1,error:"Failed to load visual for editing"}}},[e==null?void 0:e.accessToken,a.apiServiceUrl,s,o,l,n,v,T,i,m,p,y,I,U,V,g,b,E,P,M,k,L,N,$,w,W,_,x]),G=S.useCallback(async c=>{var D;const h=d=>(u.ue.error(d),{success:!1,error:d});try{if(o(c),!w)return h("No sheet selected. Please select a sheet first.");const{data:d,fromCache:J}=await B(a.apiServiceUrl,(e==null?void 0:e.accessToken)||"",c.id,s),O=(d==null?void 0:d.frameObject)??((D=d==null?void 0:d.visual)==null?void 0:D.frameObject);if(!O)return h("Visual has no frame data");const C=H(O);if(!(C!=null&&C.cards)||C.cards.length===0)return h("Visual frame is malformed");const q={...u.cloneLinkedFrameWithSourceMapping(C),visualId:c.id};return await r(w,q,"end"),v(!0),j(q.id),R(!1),{success:!0,fromCache:J}}catch(d){return console.error("Error adding visual:",d),h(d instanceof Error?d.message:"Failed to add visual to dashboard")}},[e==null?void 0:e.accessToken,a.apiServiceUrl,s,o,w,v,j,R,r]);return{visual:F.data,isLoading:F.isLoading,isError:F.isError,error:F.error,handleEditLibraryVisual:Q,handleAddLibraryVisual:G,getUpdatedFrame:te().getUpdatedFrame,refetch:F.refetch}}exports.flushPendingEditorDrafts=z;exports.registerPendingEditorDraftFlusher=Y;exports.useVisualUtils=re;
|