@synnaxlabs/pluto 0.42.0 → 0.42.4
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/{Center-CNcAEDgS.js → Center-D0JeI7Ta.js} +2 -2
- package/dist/{Center-Map6aflE.cjs → Center-DuI3XH-Q.cjs} +1 -1
- package/dist/{ContextMenu-fLU0wr9S.js → ContextMenu-BiNr7Gxv.js} +3 -3
- package/dist/{ContextMenu-DmRPxhnI.cjs → ContextMenu-HpMLd1Ht.cjs} +1 -1
- package/dist/{DateTime-CP3OmEGY.cjs → DateTime-BsjSfOY-.cjs} +1 -1
- package/dist/{DateTime-CWAcEwXO.js → DateTime-r6hocEmI.js} +2 -2
- package/dist/{Divider-BTLn5ucU.js → Divider-DqEkzRIY.js} +1 -1
- package/dist/{Divider-Dvb6dsgX.cjs → Divider-Dut8qPee.cjs} +2 -2
- package/dist/{Dropdown-CaGzfZRa.cjs → Dropdown-BSSe1E1e.cjs} +1 -1
- package/dist/{Dropdown-nw8kRSbl.js → Dropdown-BrFL1eSc.js} +38 -38
- package/dist/{Haul-B8zGWk0I.cjs → Haul-C6i2oI7z.cjs} +1 -1
- package/dist/{Haul-Cnuzk7Z-.js → Haul-CEFSvdy9.js} +1 -1
- package/dist/{Item-FmwC-twg.js → Item-C5SQraZM.js} +6 -6
- package/dist/{Item-BzrQqxRC.cjs → Item-DSBs9VLu.cjs} +1 -1
- package/dist/{Keyboard-BfvjkBgh.cjs → Keyboard-Ca7TAAHK.cjs} +1 -1
- package/dist/{Keyboard-Cevv7vrQ.js → Keyboard-Duo41pJL.js} +2 -2
- package/dist/{Link-DI7BZ5dL.cjs → Link-B9ZGvoBU.cjs} +1 -1
- package/dist/{Link-Dljdu4e9.js → Link-C9GeoB0w.js} +1 -1
- package/dist/{Pack-to0DG2iP.js → Pack-BozAEHBp.js} +2 -2
- package/dist/{Pack-lJqoOmHx.cjs → Pack-DeZUUdJM.cjs} +1 -1
- package/dist/{Provider-C_B463cg.js → Provider-B86QO9NT.js} +5 -5
- package/dist/{Provider-BlM1x1cF.cjs → Provider-Cw0mSr2D.cjs} +1 -1
- package/dist/{Space-C2oZDkE1.js → Space-CyTH97CN.js} +1 -1
- package/dist/{Space-DfcVsxz8.cjs → Space-DvalhzRj.cjs} +1 -1
- package/dist/{Text-BiYpGaEZ.js → Text-8ps3Uw4T.js} +3 -3
- package/dist/{Text-CWiPrDI1.js → Text-BR4FW9Hy.js} +12 -12
- package/dist/{Text-BjHlLKsp.cjs → Text-C8GBHl-F.cjs} +1 -1
- package/dist/{Text-ZJqK1cI3.cjs → Text-CMTkSEWx.cjs} +2 -2
- package/dist/{Text-DrIBbnml.cjs → Text-DkA06TeT.cjs} +1 -1
- package/dist/{Text-BXADoWYY.js → Text-sH_NOelc.js} +41 -41
- package/dist/{Toggle-CeUVv58o.js → Toggle-BRuUrO2N.js} +29 -29
- package/dist/{Toggle-CfwYy9fe.cjs → Toggle-C0lZDyeo.cjs} +1 -1
- package/dist/{Video-BZ1XTEez.js → Video-DWStbcmD.js} +1 -1
- package/dist/{Video-C7YoF37-.cjs → Video-DgjuFLiE.cjs} +1 -1
- package/dist/{WithIcon-DG7VJxsE.cjs → WithIcon-BgS5shNZ.cjs} +1 -1
- package/dist/{WithIcon-pBZ7H9Lq.js → WithIcon-BhR6nwRh.js} +3 -3
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/{css-hg3QdDDt.cjs → css-9iEiTRNL.cjs} +8 -8
- package/dist/{css-B7c7_G5h.js → css-Cnb9DQMD.js} +612 -611
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/deep-BNa3STCp.cjs +1 -0
- package/dist/deep-P35D0Sz7.js +112 -0
- package/dist/{dimensions-DcjW7X3n.js → dimensions-B6qmnzv3.js} +1 -1
- package/dist/{dimensions-Cz-q0Mok.cjs → dimensions-By-vgVks.cjs} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{eraser-BOx6Xhwn.cjs → eraser-BkqFgBRY.cjs} +2 -2
- package/dist/{eraser-Bsb4kKS3.js → eraser-CK8SwEJa.js} +8 -8
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +7 -7
- package/dist/{external-CEfSeJMr.js → external-B1YsdhS4.js} +9 -9
- package/dist/{external-DeCeUbqe.js → external-B7NxSklQ.js} +6 -6
- package/dist/{external-CLTPcWrI.cjs → external-B8uaUKhb.cjs} +1 -1
- package/dist/{external-DDD_nc3x.js → external-BA_VOnV-.js} +41 -41
- package/dist/{external-Ck1rVwUu.js → external-BDkqwq72.js} +17 -17
- package/dist/{external-BdVuZd3H.cjs → external-BGBgNbe2.cjs} +1 -1
- package/dist/{external-1KJXZcr9.js → external-BOMdfX8_.js} +2 -2
- package/dist/{external-hgzjVlDR.js → external-Bl8q9UBF.js} +11 -11
- package/dist/{external-DgSaeiBz.js → external-BnK4UIFe.js} +3 -3
- package/dist/{external-Cfj1plcw.cjs → external-BwUa_5Vs.cjs} +1 -1
- package/dist/{external-DCcp3sQD.js → external-C0X4mXVG.js} +4 -4
- package/dist/{external-qwaFowDe.js → external-C7yPkamb.js} +5 -5
- package/dist/{external-Cni9ftkW.cjs → external-CTc1n-JC.cjs} +1 -1
- package/dist/{external-DCfs7IFi.cjs → external-CUgPP-JD.cjs} +1 -1
- package/dist/{external-C75Z9Zbn.cjs → external-CzTBFiv_.cjs} +1 -1
- package/dist/{external-BiBhgCdz.cjs → external-DGJ8YAe-.cjs} +1 -1
- package/dist/{external-DhfASB4W.cjs → external-DQwznOyH.cjs} +1 -1
- package/dist/{external-DNT-gmZx.cjs → external-DiLZ1dEk.cjs} +1 -1
- package/dist/{external-bkwgRzLc.js → external-DissGp_3.js} +7 -7
- package/dist/{external-BHHC7TQ_.cjs → external-DmryCcwg.cjs} +1 -1
- package/dist/{external-pUEPQrp_.cjs → external-Dq8-cbf3.cjs} +1 -1
- package/dist/{external-sUHGRdqd.js → external-_8qdWaAg.js} +2 -2
- package/dist/{external-CRNR1bD0.js → external-bSUra-q7.js} +4 -4
- package/dist/{external-BLEs2AYM.cjs → external-zbKPQ9ls.cjs} +2 -2
- package/dist/{font-Crn-D_ua.js → font-CjYcjBiv.js} +2 -2
- package/dist/{font-BFTKtIQk.cjs → font-XlUAG1-r.cjs} +1 -1
- package/dist/{fontString-DjnDxFrE.js → fontString-BN1kd1AP.js} +1 -1
- package/dist/{fontString-DQLaRHQV.cjs → fontString-Ddza50DF.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/{hooks-CTKCi-OE.cjs → hooks-B5aLaWzS.cjs} +1 -1
- package/dist/{hooks-CM9HWxYc.js → hooks-DjznxGgm.js} +3 -3
- package/dist/index.cjs +5 -5
- package/dist/index.js +513 -513
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/{provider-XPRFhwnl.cjs → provider-aWtsGnV8.cjs} +24 -24
- package/dist/{provider-BDFfcHVT.js → provider-r5Ly36FI.js} +1569 -1566
- package/dist/src/color/Provider.d.ts +5 -1
- package/dist/src/color/Provider.d.ts.map +1 -1
- package/dist/src/status/aether/aggregator.d.ts +2 -2
- package/dist/src/status/aether/types.d.ts +2 -2
- package/dist/src/table/cells/Cells.d.ts +6 -2
- package/dist/src/table/cells/Cells.d.ts.map +1 -1
- package/dist/src/telem/aether/static.d.ts +6 -2
- package/dist/src/telem/aether/static.d.ts.map +1 -1
- package/dist/src/telem/aether/transformers.d.ts +12 -6
- package/dist/src/telem/aether/transformers.d.ts.map +1 -1
- package/dist/src/telem/control/aether/chip.d.ts +2 -2
- package/dist/src/telem/control/aether/indicator.d.ts +12 -4
- package/dist/src/telem/control/aether/indicator.d.ts.map +1 -1
- package/dist/src/telem/control/aether/legend.d.ts +10 -2
- package/dist/src/telem/control/aether/legend.d.ts.map +1 -1
- package/dist/src/telem/control/aether/state.d.ts +5 -1
- package/dist/src/telem/control/aether/state.d.ts.map +1 -1
- package/dist/src/theming/aether/provider.d.ts +660 -132
- package/dist/src/theming/aether/provider.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +478 -126
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/vis/axis/axis.d.ts +10 -2
- package/dist/src/vis/axis/axis.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/types.d.ts +9 -3
- package/dist/src/vis/diagram/aether/types.d.ts.map +1 -1
- package/dist/src/vis/line/aether/line.d.ts +5 -1
- package/dist/src/vis/line/aether/line.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/XAxis.d.ts +20 -4
- package/dist/src/vis/lineplot/aether/XAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/YAxis.d.ts +20 -4
- package/dist/src/vis/lineplot/aether/YAxis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/axis.d.ts +10 -2
- package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts +40 -8
- package/dist/src/vis/lineplot/tooltip/aether/tooltip.d.ts.map +1 -1
- package/dist/src/vis/log/aether/Log.d.ts +15 -3
- package/dist/src/vis/log/aether/Log.d.ts.map +1 -1
- package/dist/src/vis/measure/aether/measure.d.ts +40 -8
- package/dist/src/vis/measure/aether/measure.d.ts.map +1 -1
- package/dist/src/vis/rule/aether/aether.d.ts +10 -2
- package/dist/src/vis/rule/aether/aether.d.ts.map +1 -1
- package/dist/src/vis/value/aether/value.d.ts +15 -3
- package/dist/src/vis/value/aether/value.d.ts.map +1 -1
- package/dist/src/vis/value/use.d.ts +5 -1
- package/dist/src/vis/value/use.d.ts.map +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/dist/units-CX_coN92.cjs +1 -0
- package/dist/{units-a8CggrTe.js → units-Ct3Xl5nK.js} +1 -1
- package/dist/{useClickOutside-CPAEkvf8.cjs → useClickOutside-CSff8yb-.cjs} +1 -1
- package/dist/{useClickOutside-CKMnqdvH.js → useClickOutside-DDCP7Fh-.js} +24 -24
- package/dist/{useDebouncedCallback-Cyd6pZ59.js → useDebouncedCallback-BG4I7mbT.js} +1 -1
- package/dist/{useDebouncedCallback-DsKlBI86.cjs → useDebouncedCallback-DnwYZzjR.cjs} +1 -1
- package/dist/{useMemoCompare-B930TM0g.js → useMemoCompare-BViQehyd.js} +2 -2
- package/dist/{useMemoCompare-DprA41gC.cjs → useMemoCompare-C2X7Mzx8.cjs} +1 -1
- package/dist/{useVirtualCursorDragWebKit-Cvp93Pya.cjs → useVirtualCursorDragWebKit-DDmXE4RW.cjs} +1 -1
- package/dist/{useVirtualCursorDragWebKit-BrSOJpYY.js → useVirtualCursorDragWebKit-DTU2tUmp.js} +3 -3
- package/dist/value-CkzEjG7v.cjs +57 -0
- package/dist/{value-BdZLWVof.js → value-DIoBc3VU.js} +637 -634
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +7 -7
- package/dist/deep-B1etRzze.cjs +0 -1
- package/dist/deep-BytImVW-.js +0 -102
- package/dist/units-CKKNRQlP.cjs +0 -1
- package/dist/value-B7u8K1CW.cjs +0 -57
package/dist/index.js
CHANGED
|
@@ -3,69 +3,69 @@ var _g = (e, t, n) => t in e ? Cg(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ct = (e, t, n) => _g(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { j as r } from "./jsx-runtime-C5mzlN2N.js";
|
|
5
5
|
import ao, { useState as xe, useEffect as q, useRef as te, useCallback as D, Children as Eg, createElement as _n, isValidElement as Mg, createContext as dt, use as En, useMemo as be, memo as Te, useLayoutEffect as Ks, useImperativeHandle as kg, useId as Us, createRef as Lg, Fragment as Wo, useContext as uo, forwardRef as Rc, cloneElement as Pg } from "react";
|
|
6
|
-
import { y as de, T as Ae, d as rt, f as Dc, u as Vc, M as fo, c as Ng, E as Yo, g as ci, h as Tg, t as Ig } from "./Divider-
|
|
7
|
-
import { K as ve, g as Le, C as m, $ as H, a1 as Ag, a3 as ns,
|
|
8
|
-
import { a7 as SC,
|
|
9
|
-
import { H as Hg, B as Zg, A as Wg } from "./external-
|
|
10
|
-
import { e as PC } from "./external-
|
|
6
|
+
import { y as de, T as Ae, d as rt, f as Dc, u as Vc, M as fo, c as Ng, E as Yo, g as ci, h as Tg, t as Ig } from "./Divider-DqEkzRIY.js";
|
|
7
|
+
import { K as ve, g as Le, C as m, $ as H, a1 as Ag, a3 as ns, z as $g, A as ho, a5 as Bg, S as Go, v as wt, J as ne, L as zg, U as zt, R as Og, D as Q, G as Rg, F as ai, _ as Wn, b as xr, Q as Yn, a6 as Dg, m as Gn, O as ui, H as Vg, d as Fg } from "./css-Cnb9DQMD.js";
|
|
8
|
+
import { a7 as SC, I as CC, X as _C, Y as EC, N as MC, n as kC } from "./css-Cnb9DQMD.js";
|
|
9
|
+
import { H as Hg, B as Zg, A as Wg } from "./external-C7yPkamb.js";
|
|
10
|
+
import { e as PC } from "./external-C7yPkamb.js";
|
|
11
11
|
import { c as Fc, C as Yg, e as Gg, l as qs, w as Xg, d as Kg } from "./state-CjGemC7S.js";
|
|
12
12
|
import { g as TC } from "./state-CjGemC7S.js";
|
|
13
13
|
import { G as AC } from "./Stack-D50qN0Vu.js";
|
|
14
|
-
import { p as Xo, B as Ug, I as Ze, N as He } from "./external-
|
|
15
|
-
import { e as
|
|
16
|
-
import { C as qg, S as re } from "./Space-
|
|
17
|
-
import { l as Qg, c as Hc, h as vs, d as Ss, v as Cs, a as Zc, P as Jg, s as e2, q as os } from "./hooks-
|
|
18
|
-
import { g as t2 } from "./useVirtualCursorDragWebKit-
|
|
19
|
-
import { d as n2, e as yr, f as Ct, C as ft, c as $e, g as o2, h as rn, i as Qs, j as r2, P as s2, k as l2, u as Mn } from "./Provider-
|
|
20
|
-
import { m as RC, l as DC } from "./Provider-
|
|
21
|
-
import { e as FC } from "./external-
|
|
22
|
-
import { r as Wc, a as Js, b as i2, T as sn, t as c2, u as kn } from "./external-
|
|
23
|
-
import { I as ZC, e as WC } from "./external-
|
|
24
|
-
import { L as a2 } from "./external-
|
|
25
|
-
import { e as GC } from "./external-
|
|
26
|
-
import { W as Yc, D as u2 } from "./WithIcon-
|
|
27
|
-
import { a as KC } from "./WithIcon-
|
|
28
|
-
import { A as
|
|
29
|
-
import { e as qC } from "./external-
|
|
30
|
-
import { A as el } from "./external-
|
|
31
|
-
import { a as JC, e as e_ } from "./external-
|
|
32
|
-
import { C as Gc, D as Xc, b as d2, f as f2, u as h2, w as p2, I as We, B as Dt, c as po, a as Kc } from "./Toggle-
|
|
33
|
-
import { i as n_ } from "./Toggle-
|
|
34
|
-
import { T as _t } from "./Text-
|
|
35
|
-
import { V as g2, G as m2,
|
|
36
|
-
import { V as qc, A as Qc, T as Vt, m as Jc, n as jr, o as S2, H as C2, c as rs, C as _2, L as E2, S as M2, g as k2, u as ea, s as ta } from "./Text-
|
|
37
|
-
import { p as r_ } from "./Text-
|
|
38
|
-
import { Z as L2, P as di, J as Gt, K as P2, M as N2, N as T2, T as I2, O as A2, Q as $2, S as
|
|
39
|
-
import { C as l_ } from "./value-
|
|
40
|
-
import { a as fa, f as Ve, c as sl, b as Et, u as Ft, F as ha, P as Dm } from "./Haul-
|
|
41
|
-
import { H as c_ } from "./Haul-
|
|
42
|
-
import { a as qe, u as pa, b as ga } from "./useMemoCompare-
|
|
43
|
-
import { c as u_ } from "./useMemoCompare-
|
|
44
|
-
import { d as xi } from "./dimensions-
|
|
45
|
-
import { u as ll } from "./font-
|
|
46
|
-
import { u as il, a as Vm, b as cl, f as Fm } from "./Dropdown-
|
|
47
|
-
import { c as f_, D as h_, M as p_ } from "./Dropdown-
|
|
48
|
-
import {
|
|
14
|
+
import { p as Xo, B as Ug, I as Ze, N as He } from "./external-BDkqwq72.js";
|
|
15
|
+
import { e as BC, s as zC } from "./external-BDkqwq72.js";
|
|
16
|
+
import { C as qg, S as re } from "./Space-CyTH97CN.js";
|
|
17
|
+
import { l as Qg, c as Hc, h as vs, d as Ss, v as Cs, a as Zc, P as Jg, s as e2, q as os } from "./hooks-DjznxGgm.js";
|
|
18
|
+
import { g as t2 } from "./useVirtualCursorDragWebKit-DTU2tUmp.js";
|
|
19
|
+
import { d as n2, e as yr, f as Ct, C as ft, c as $e, g as o2, h as rn, i as Qs, j as r2, P as s2, k as l2, u as Mn } from "./Provider-B86QO9NT.js";
|
|
20
|
+
import { m as RC, l as DC } from "./Provider-B86QO9NT.js";
|
|
21
|
+
import { e as FC } from "./external-C0X4mXVG.js";
|
|
22
|
+
import { r as Wc, a as Js, b as i2, T as sn, t as c2, u as kn } from "./external-BA_VOnV-.js";
|
|
23
|
+
import { I as ZC, e as WC } from "./external-BA_VOnV-.js";
|
|
24
|
+
import { L as a2 } from "./external-B7NxSklQ.js";
|
|
25
|
+
import { e as GC } from "./external-B7NxSklQ.js";
|
|
26
|
+
import { W as Yc, D as u2 } from "./WithIcon-BhR6nwRh.js";
|
|
27
|
+
import { a as KC } from "./WithIcon-BhR6nwRh.js";
|
|
28
|
+
import { A as Be, o as xn } from "./toArray-B7nD2CTw.js";
|
|
29
|
+
import { e as qC } from "./external-BOMdfX8_.js";
|
|
30
|
+
import { A as el } from "./external-B1YsdhS4.js";
|
|
31
|
+
import { a as JC, e as e_ } from "./external-B1YsdhS4.js";
|
|
32
|
+
import { C as Gc, D as Xc, b as d2, f as f2, u as h2, w as p2, I as We, B as Dt, c as po, a as Kc } from "./Toggle-BRuUrO2N.js";
|
|
33
|
+
import { i as n_ } from "./Toggle-BRuUrO2N.js";
|
|
34
|
+
import { T as _t } from "./Text-sH_NOelc.js";
|
|
35
|
+
import { V as g2, G as m2, w as x2, n as Uc, x as y2, s as j2, C as w2, H as b2, Q as v2 } from "./provider-r5Ly36FI.js";
|
|
36
|
+
import { V as qc, A as Qc, T as Vt, m as Jc, n as jr, o as S2, H as C2, c as rs, C as _2, L as E2, S as M2, g as k2, u as ea, s as ta } from "./Text-BR4FW9Hy.js";
|
|
37
|
+
import { p as r_ } from "./Text-BR4FW9Hy.js";
|
|
38
|
+
import { Z as L2, P as di, J as Gt, K as P2, M as N2, N as T2, T as I2, O as A2, Q as $2, S as B2, U as z2, V as O2, W as R2, _ as D2, l as V2, L as F2, $ as Mo, a0 as H2, a1 as Z2, a2 as W2, X as Y2, Y as G2, a3 as X2, a4 as K2, a5 as U2, a6 as q2, b as Q2, B as J2, a7 as em, a8 as tm, a9 as nm, aa as om, ab as rm, ac as sm, ad as lm, ae as im, af as fi, ag as hi, ah as cm, ai as am, aj as um, ak as dm, al as na, am as oa, an as ra, ao as sa, v as fm, ap as hm, aq as pm, ar as la, as as wr, at as gm, au as br, av as mm, aw as ia, ax as ca, ay as aa, az as ua, aA as Ln, aB as vr, aC as da, aD as xm, aE as ym, aF as pi, aG as tl, aH as nl, aI as jm, aJ as wm, aK as bt, aL as vt, aM as Ko, aN as Xn, aO as _s, aP as bm, aQ as vm, aR as Sm, aS as gi, aT as Cm, aU as mi, aV as _m, aW as Em, aX as Mm, aY as km, aZ as Lm, a_ as Pm, a$ as ol, b0 as Nm, b1 as Uo, b2 as go, b3 as rl, b4 as Tm, b5 as Im, b6 as Am, b7 as $m, b8 as Bm, b9 as zm, ba as Om, bb as Rm } from "./value-DIoBc3VU.js";
|
|
39
|
+
import { C as l_ } from "./value-DIoBc3VU.js";
|
|
40
|
+
import { a as fa, f as Ve, c as sl, b as Et, u as Ft, F as ha, P as Dm } from "./Haul-CEFSvdy9.js";
|
|
41
|
+
import { H as c_ } from "./Haul-CEFSvdy9.js";
|
|
42
|
+
import { a as qe, u as pa, b as ga } from "./useMemoCompare-BViQehyd.js";
|
|
43
|
+
import { c as u_ } from "./useMemoCompare-BViQehyd.js";
|
|
44
|
+
import { d as xi } from "./dimensions-B6qmnzv3.js";
|
|
45
|
+
import { u as ll } from "./font-CjYcjBiv.js";
|
|
46
|
+
import { u as il, a as Vm, b as cl, f as Fm } from "./Dropdown-BrFL1eSc.js";
|
|
47
|
+
import { c as f_, D as h_, M as p_ } from "./Dropdown-BrFL1eSc.js";
|
|
48
|
+
import { x as Fe } from "./deep-P35D0Sz7.js";
|
|
49
49
|
import { z as me } from "zod";
|
|
50
|
-
import { u as mo, S as Sr, P as Hm, G as Zm } from "./external-
|
|
51
|
-
import { e as m_ } from "./external-
|
|
52
|
-
import { P as Cr } from "./Pack-
|
|
53
|
-
import { u as Wm, b as Ym, a as al, C as ul } from "./ContextMenu-
|
|
54
|
-
import { T as Gm } from "./Text-
|
|
55
|
-
import { u as Xm } from "./external-
|
|
56
|
-
import { e as y_ } from "./external-
|
|
57
|
-
import "./Item-
|
|
50
|
+
import { u as mo, S as Sr, P as Hm, G as Zm } from "./external-Bl8q9UBF.js";
|
|
51
|
+
import { e as m_ } from "./external-Bl8q9UBF.js";
|
|
52
|
+
import { P as Cr } from "./Pack-BozAEHBp.js";
|
|
53
|
+
import { u as Wm, b as Ym, a as al, C as ul } from "./ContextMenu-BiNr7Gxv.js";
|
|
54
|
+
import { T as Gm } from "./Text-8ps3Uw4T.js";
|
|
55
|
+
import { u as Xm } from "./external-bSUra-q7.js";
|
|
56
|
+
import { e as y_ } from "./external-bSUra-q7.js";
|
|
57
|
+
import "./Item-C5SQraZM.js";
|
|
58
58
|
import { createPortal as ma } from "react-dom";
|
|
59
|
-
import { S as xa, F as ya } from "./external-
|
|
60
|
-
import { e as w_, c as b_, f as v_, p as S_ } from "./external-
|
|
61
|
-
import { c as __, u as E_ } from "./units-
|
|
62
|
-
import { u as k_ } from "./useClickOutside-
|
|
63
|
-
import { u as ja } from "./useDebouncedCallback-
|
|
64
|
-
import { e as P_ } from "./external-
|
|
65
|
-
import { E as Km, e as Um, P as qm, p as Qm } from "./eraser-
|
|
66
|
-
import { D as Es } from "./DateTime-
|
|
67
|
-
import { e as T_ } from "./external-
|
|
68
|
-
import { V as A_ } from "./Video-
|
|
59
|
+
import { S as xa, F as ya } from "./external-DissGp_3.js";
|
|
60
|
+
import { e as w_, c as b_, f as v_, p as S_ } from "./external-DissGp_3.js";
|
|
61
|
+
import { c as __, u as E_ } from "./units-Ct3Xl5nK.js";
|
|
62
|
+
import { u as k_ } from "./useClickOutside-DDCP7Fh-.js";
|
|
63
|
+
import { u as ja } from "./useDebouncedCallback-BG4I7mbT.js";
|
|
64
|
+
import { e as P_ } from "./external-_8qdWaAg.js";
|
|
65
|
+
import { E as Km, e as Um, P as qm, p as Qm } from "./eraser-CK8SwEJa.js";
|
|
66
|
+
import { D as Es } from "./DateTime-r6hocEmI.js";
|
|
67
|
+
import { e as T_ } from "./external-BnK4UIFe.js";
|
|
68
|
+
import { V as A_ } from "./Video-DWStbcmD.js";
|
|
69
69
|
const PS = (e, t, n = 150) => {
|
|
70
70
|
const [o, s] = xe(e);
|
|
71
71
|
return q(() => {
|
|
@@ -370,7 +370,7 @@ const PS = (e, t, n = 150) => {
|
|
|
370
370
|
}, IS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
371
371
|
__proto__: null,
|
|
372
372
|
Accordion: a3
|
|
373
|
-
}, Symbol.toStringTag, { value: "Module" })), h3 = (e, t) =>
|
|
373
|
+
}, Symbol.toStringTag, { value: "Module" })), h3 = (e, t) => Be(e).map((o) => typeof o == "string" ? o.split(t).map((s) => ({ label: s })) : o).flat(), va = ({
|
|
374
374
|
segments: e,
|
|
375
375
|
shade: t,
|
|
376
376
|
level: n,
|
|
@@ -550,7 +550,7 @@ const PS = (e, t, n = 150) => {
|
|
|
550
550
|
align: "center",
|
|
551
551
|
justify: "end",
|
|
552
552
|
className: m(m.BE("notification", "actions")),
|
|
553
|
-
children:
|
|
553
|
+
children: Be(c).map((h) => /* @__PURE__ */ r.jsx(g3, { action: h }, h.key))
|
|
554
554
|
}
|
|
555
555
|
)
|
|
556
556
|
]
|
|
@@ -586,7 +586,7 @@ const PS = (e, t, n = 150) => {
|
|
|
586
586
|
}, x3 = ({ aetherKey: e, children: t }) => {
|
|
587
587
|
const { erase: n } = pl({ aetherKey: e }), o = il(n);
|
|
588
588
|
return /* @__PURE__ */ r.jsx("div", { ref: o, className: m(m.inheritDims()), children: t });
|
|
589
|
-
},
|
|
589
|
+
}, BS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
590
590
|
__proto__: null,
|
|
591
591
|
Eraser: x3,
|
|
592
592
|
use: pl
|
|
@@ -635,7 +635,7 @@ const PS = (e, t, n = 150) => {
|
|
|
635
635
|
children: g
|
|
636
636
|
}
|
|
637
637
|
);
|
|
638
|
-
},
|
|
638
|
+
}, zS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
639
639
|
__proto__: null,
|
|
640
640
|
Bar: Ug,
|
|
641
641
|
Drawer: j3,
|
|
@@ -683,7 +683,7 @@ const PS = (e, t, n = 150) => {
|
|
|
683
683
|
variant: ji[u.status],
|
|
684
684
|
message: u.message ?? u.status.toUpperCase()
|
|
685
685
|
}), u.status === "connected" && !u.clientServerCompatible) {
|
|
686
|
-
const d = u.nodeVersion == null ||
|
|
686
|
+
const d = u.nodeVersion == null || Bg.semVerOlder(u.nodeVersion, u.clientVersion), f = b3(
|
|
687
687
|
d,
|
|
688
688
|
u.clientVersion,
|
|
689
689
|
u.nodeVersion
|
|
@@ -903,10 +903,10 @@ const P3 = function e(t, n, o) {
|
|
|
903
903
|
else {
|
|
904
904
|
var C = Math.sqrt(x), y = (h * h - u * u + o * x) / (2 * u * n * C), v = (h * h - u * u - o * x) / (2 * h * n * C), P = Math.log(Math.sqrt(y * y + 1) - y), T = Math.log(Math.sqrt(v * v + 1) - v);
|
|
905
905
|
w = (T - P) / t, j = function(L) {
|
|
906
|
-
var O = L * w, $ = bi(P),
|
|
906
|
+
var O = L * w, $ = bi(P), B = u / (n * C) * ($ * L3(t * O + P) - k3(P));
|
|
907
907
|
return [
|
|
908
|
-
c +
|
|
909
|
-
a +
|
|
908
|
+
c + B * p,
|
|
909
|
+
a + B * g,
|
|
910
910
|
u * $ / bi(t * O + P)
|
|
911
911
|
];
|
|
912
912
|
};
|
|
@@ -925,8 +925,8 @@ const P3 = function e(t, n, o) {
|
|
|
925
925
|
Top: I2,
|
|
926
926
|
axisStateZ: A2,
|
|
927
927
|
newCanvas: $2,
|
|
928
|
-
newTickFactory:
|
|
929
|
-
tickFactoryProps:
|
|
928
|
+
newTickFactory: B2,
|
|
929
|
+
tickFactoryProps: z2,
|
|
930
930
|
tickType: O2
|
|
931
931
|
}, Symbol.toStringTag, { value: "Module" })), N3 = { region: H.ZERO, dpr: 1, os: Go.getOS() }, T3 = {
|
|
932
932
|
gl: null,
|
|
@@ -1067,7 +1067,7 @@ const P3 = function e(t, n, o) {
|
|
|
1067
1067
|
([c], [a]) => Fe.equal(c, a),
|
|
1068
1068
|
[e]
|
|
1069
1069
|
), q(() => () => o(s), []), { gridArea: Le.swap(ve.direction(e.loc)) === "x" ? `axis-start-${s} / plot-start / axis-end-${s} / plot-end` : `plot-start / axis-start-${s} / plot-end / axis-end-${s}` };
|
|
1070
|
-
},
|
|
1070
|
+
}, Ba = ({
|
|
1071
1071
|
aetherKey: e,
|
|
1072
1072
|
style: t,
|
|
1073
1073
|
resizeDebounce: n = 0,
|
|
@@ -1089,49 +1089,49 @@ const P3 = function e(t, n, o) {
|
|
|
1089
1089
|
...f
|
|
1090
1090
|
}
|
|
1091
1091
|
}), x = D(
|
|
1092
|
-
(
|
|
1093
|
-
c && g((k) => ({ ...k, container:
|
|
1092
|
+
(z) => {
|
|
1093
|
+
c && g((k) => ({ ...k, container: z }));
|
|
1094
1094
|
},
|
|
1095
1095
|
[g, c]
|
|
1096
1096
|
), j = xo(x, { debounce: n });
|
|
1097
|
-
q(() => g((
|
|
1097
|
+
q(() => g((z) => ({ ...z, ...f })), [f]);
|
|
1098
1098
|
const w = te(/* @__PURE__ */ new Map()), C = D(
|
|
1099
|
-
(
|
|
1099
|
+
(z) => (w.current.set(z, null), () => w.current.delete(z)),
|
|
1100
1100
|
[w]
|
|
1101
1101
|
), y = D(
|
|
1102
|
-
(
|
|
1103
|
-
const { mode: k, box: b, stage: E } =
|
|
1104
|
-
(k === "pan" && E !== "start" || k === "zoom" || k === "zoomReset" && E === "start") && g((_) => ({ ..._, viewport: b })), w.current.forEach((_, M) => M(
|
|
1102
|
+
(z) => {
|
|
1103
|
+
const { mode: k, box: b, stage: E } = z;
|
|
1104
|
+
(k === "pan" && E !== "start" || k === "zoom" || k === "zoomReset" && E === "start") && g((_) => ({ ..._, viewport: b })), w.current.forEach((_, M) => M(z));
|
|
1105
1105
|
},
|
|
1106
1106
|
[g]
|
|
1107
1107
|
), v = D(
|
|
1108
|
-
(
|
|
1108
|
+
(z) => {
|
|
1109
1109
|
g((k) => ({
|
|
1110
1110
|
...k,
|
|
1111
|
-
grid: { ...k.grid, [
|
|
1111
|
+
grid: { ...k.grid, [z.key]: z }
|
|
1112
1112
|
}));
|
|
1113
1113
|
},
|
|
1114
1114
|
[g]
|
|
1115
1115
|
), P = D(
|
|
1116
|
-
(
|
|
1117
|
-
const { [
|
|
1116
|
+
(z) => g((k) => {
|
|
1117
|
+
const { [z]: b, ...E } = k.grid;
|
|
1118
1118
|
return { ...k, grid: E };
|
|
1119
1119
|
}),
|
|
1120
1120
|
[g]
|
|
1121
1121
|
), T = D(
|
|
1122
|
-
(
|
|
1123
|
-
d((k) => [...k.filter(({ key: b }) => b !==
|
|
1122
|
+
(z) => {
|
|
1123
|
+
d((k) => [...k.filter(({ key: b }) => b !== z.key), z]);
|
|
1124
1124
|
},
|
|
1125
1125
|
[d]
|
|
1126
1126
|
), L = D(
|
|
1127
|
-
(
|
|
1127
|
+
(z) => d((k) => k.filter(({ key: b }) => b !== z)),
|
|
1128
1128
|
[T]
|
|
1129
1129
|
), O = be(() => A3(p), [p]), $ = D(
|
|
1130
|
-
(
|
|
1131
|
-
g((k) => ({ ...k, hold:
|
|
1130
|
+
(z) => {
|
|
1131
|
+
g((k) => ({ ...k, hold: z })), i == null || i(z);
|
|
1132
1132
|
},
|
|
1133
1133
|
[g, i]
|
|
1134
|
-
),
|
|
1134
|
+
), B = `line-plot-${e}`, F = be(
|
|
1135
1135
|
() => ({
|
|
1136
1136
|
lines: u,
|
|
1137
1137
|
setGridEntry: v,
|
|
@@ -1141,10 +1141,10 @@ const P3 = function e(t, n, o) {
|
|
|
1141
1141
|
setViewport: y,
|
|
1142
1142
|
addViewportHandler: C,
|
|
1143
1143
|
setHold: $,
|
|
1144
|
-
id:
|
|
1144
|
+
id: B
|
|
1145
1145
|
}),
|
|
1146
1146
|
[
|
|
1147
|
-
|
|
1147
|
+
B,
|
|
1148
1148
|
u,
|
|
1149
1149
|
v,
|
|
1150
1150
|
P,
|
|
@@ -1158,7 +1158,7 @@ const P3 = function e(t, n, o) {
|
|
|
1158
1158
|
return /* @__PURE__ */ r.jsx(
|
|
1159
1159
|
"div",
|
|
1160
1160
|
{
|
|
1161
|
-
id:
|
|
1161
|
+
id: B,
|
|
1162
1162
|
className: m.B("line-plot"),
|
|
1163
1163
|
style: { ...t, ...O },
|
|
1164
1164
|
ref: j,
|
|
@@ -1192,7 +1192,7 @@ const P3 = function e(t, n, o) {
|
|
|
1192
1192
|
style: L,
|
|
1193
1193
|
...O
|
|
1194
1194
|
}) => {
|
|
1195
|
-
const $ = ((a == null ? void 0 : a.length) ?? 0) > 0,
|
|
1195
|
+
const $ = ((a == null ? void 0 : a.length) ?? 0) > 0, B = rn(l), F = qe({
|
|
1196
1196
|
location: c,
|
|
1197
1197
|
showGrid: g,
|
|
1198
1198
|
type: x,
|
|
@@ -1203,8 +1203,8 @@ const P3 = function e(t, n, o) {
|
|
|
1203
1203
|
tickSpacing: C,
|
|
1204
1204
|
autoBounds: y,
|
|
1205
1205
|
autoBoundUpdateInterval: P
|
|
1206
|
-
}), [{ path:
|
|
1207
|
-
aetherKey:
|
|
1206
|
+
}), [{ path: z }, { size: k, labelSize: b, ...E }, _] = $e({
|
|
1207
|
+
aetherKey: B,
|
|
1208
1208
|
type: n,
|
|
1209
1209
|
schema: W2,
|
|
1210
1210
|
initialState: F
|
|
@@ -1214,7 +1214,7 @@ const P3 = function e(t, n, o) {
|
|
|
1214
1214
|
E.bounds != null && (R && (j == null ? void 0 : j.lower) !== E.bounds.lower || V && (j == null ? void 0 : j.upper) !== E.bounds.upper) && (T == null || T(E.bounds));
|
|
1215
1215
|
}, [E.autoBounds, E.bounds]);
|
|
1216
1216
|
const M = yo(
|
|
1217
|
-
{ loc: c, key: `${n}-${
|
|
1217
|
+
{ loc: c, key: `${n}-${B}`, size: k + b, order: 1 },
|
|
1218
1218
|
`${e.toUpperCase()}Axis`
|
|
1219
1219
|
), A = ll(u).toString(), I = te(0);
|
|
1220
1220
|
return q(() => {
|
|
@@ -1249,11 +1249,11 @@ const P3 = function e(t, n, o) {
|
|
|
1249
1249
|
)
|
|
1250
1250
|
}
|
|
1251
1251
|
),
|
|
1252
|
-
/* @__PURE__ */ r.jsx(ft, { path:
|
|
1252
|
+
/* @__PURE__ */ r.jsx(ft, { path: z, children: i })
|
|
1253
1253
|
] });
|
|
1254
1254
|
};
|
|
1255
1255
|
return s.displayName = `${e.toUpperCase()}Axis`, s;
|
|
1256
|
-
},
|
|
1256
|
+
}, za = ml("x"), Oa = ml("y"), Ra = ne.xy.extend({
|
|
1257
1257
|
root: ve.corner,
|
|
1258
1258
|
units: me.object({
|
|
1259
1259
|
x: me.enum(["px", "decimal"]),
|
|
@@ -1262,11 +1262,11 @@ const P3 = function e(t, n, o) {
|
|
|
1262
1262
|
}), $3 = Ra.partial({
|
|
1263
1263
|
root: !0,
|
|
1264
1264
|
units: !0
|
|
1265
|
-
}),
|
|
1265
|
+
}), B3 = (e) => {
|
|
1266
1266
|
var n, o, s, l;
|
|
1267
1267
|
const t = {};
|
|
1268
1268
|
return t[((n = e.root) == null ? void 0 : n.x) ?? "left"] = ((o = e == null ? void 0 : e.units) == null ? void 0 : o.x) === "px" ? `${e.x}px` : `${e.x * 100}%`, t[((s = e.root) == null ? void 0 : s.y) ?? "top"] = ((l = e == null ? void 0 : e.units) == null ? void 0 : l.y) === "px" ? `${e.y}px` : `${e.y * 100}%`, t;
|
|
1269
|
-
},
|
|
1269
|
+
}, z3 = (e, t) => {
|
|
1270
1270
|
var l, i, c, a, u, d;
|
|
1271
1271
|
const n = { x: e.x, y: e.y };
|
|
1272
1272
|
if (t.current == null) return n;
|
|
@@ -1301,7 +1301,7 @@ const P3 = function e(t, n, o) {
|
|
|
1301
1301
|
onChange: n,
|
|
1302
1302
|
initial: l
|
|
1303
1303
|
}), u = te(c), d = rt(s === !1), f = te(null);
|
|
1304
|
-
c !== null && (o = { ...o, ...
|
|
1304
|
+
c !== null && (o = { ...o, ...B3(c) });
|
|
1305
1305
|
const h = D((g) => {
|
|
1306
1306
|
var P;
|
|
1307
1307
|
if (((P = f.current) == null ? void 0 : P.parentElement) == null) return u.current;
|
|
@@ -1317,7 +1317,7 @@ const P3 = function e(t, n, o) {
|
|
|
1317
1317
|
return Da(v, f);
|
|
1318
1318
|
}, []), p = mo({
|
|
1319
1319
|
onStart: D(() => {
|
|
1320
|
-
u.current =
|
|
1320
|
+
u.current = z3(u.current, f);
|
|
1321
1321
|
}, []),
|
|
1322
1322
|
onMove: D((g) => {
|
|
1323
1323
|
if (d.current) return;
|
|
@@ -1558,7 +1558,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1558
1558
|
});
|
|
1559
1559
|
return D(
|
|
1560
1560
|
async () => await new Promise((o) => {
|
|
1561
|
-
const s =
|
|
1561
|
+
const s = zg.create();
|
|
1562
1562
|
e.current.set(s, o), n((l) => ({ ...l, request: s }));
|
|
1563
1563
|
}),
|
|
1564
1564
|
[]
|
|
@@ -1813,12 +1813,12 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1813
1813
|
{ key: "large", label: "L" },
|
|
1814
1814
|
{ key: "medium", label: "M" },
|
|
1815
1815
|
{ key: "small", label: "S" }
|
|
1816
|
-
], Xa = (e) => /* @__PURE__ */ r.jsx(ht, { ...e, data: G3, entryRenderKey: "label" }), X3 = /* @__PURE__ */ new Set([
|
|
1817
|
-
(e) => e !==
|
|
1816
|
+
], Xa = (e) => /* @__PURE__ */ r.jsx(ht, { ...e, data: G3, entryRenderKey: "label" }), X3 = /* @__PURE__ */ new Set([zt.UUID, zt.JSON]), Ka = zt.ALL.filter(
|
|
1817
|
+
(e) => e !== zt.UNKNOWN
|
|
1818
1818
|
).map((e) => ({
|
|
1819
1819
|
key: e.toString(),
|
|
1820
1820
|
name: X3.has(e) ? e.toString().toUpperCase() : ho.capitalize(e.toString())
|
|
1821
|
-
})), K3 = Ka.filter((e) => !new
|
|
1821
|
+
})), K3 = Ka.filter((e) => !new zt(e.key).isVariable), U3 = [
|
|
1822
1822
|
{ key: "name", name: "Name" }
|
|
1823
1823
|
], q3 = ({
|
|
1824
1824
|
hideVariableDensity: e = !1,
|
|
@@ -1884,12 +1884,12 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1884
1884
|
actions: C,
|
|
1885
1885
|
...y
|
|
1886
1886
|
}) => {
|
|
1887
|
-
const { visible: v, open: P, close: T, toggle: L } = cl(), [O, $] = xe(null),
|
|
1887
|
+
const { visible: v, open: P, close: T, toggle: L } = cl(), [O, $] = xe(null), B = i != null;
|
|
1888
1888
|
Ct(async () => {
|
|
1889
1889
|
if (ta(t)) return $(null);
|
|
1890
1890
|
if ((O == null ? void 0 : O.key) === t) return;
|
|
1891
1891
|
let E = null;
|
|
1892
|
-
if (
|
|
1892
|
+
if (B)
|
|
1893
1893
|
try {
|
|
1894
1894
|
[E] = await i.retrieve([t]);
|
|
1895
1895
|
} finally {
|
|
@@ -1903,10 +1903,10 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1903
1903
|
Array.isArray(E) || ($(E == null ? null : _.entries[0]), T(), e(E, _));
|
|
1904
1904
|
},
|
|
1905
1905
|
[e, l]
|
|
1906
|
-
),
|
|
1907
|
-
() =>
|
|
1908
|
-
[
|
|
1909
|
-
), k = /* @__PURE__ */ r.jsx(
|
|
1906
|
+
), z = be(
|
|
1907
|
+
() => B ? xa : ya,
|
|
1908
|
+
[B]
|
|
1909
|
+
), k = /* @__PURE__ */ r.jsx(z, { searcher: i, filter: w, children: ({ onChange: E }) => /* @__PURE__ */ r.jsx(
|
|
1910
1910
|
t5,
|
|
1911
1911
|
{
|
|
1912
1912
|
...s,
|
|
@@ -2104,14 +2104,14 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2104
2104
|
actions: y,
|
|
2105
2105
|
...v
|
|
2106
2106
|
}) => {
|
|
2107
|
-
const { visible: P, open: T, close: L } = cl(), [O, $] = xe([]), [
|
|
2107
|
+
const { visible: P, open: T, close: L } = cl(), [O, $] = xe([]), [B, F] = xe(!1), z = c != null;
|
|
2108
2108
|
Ct(async () => {
|
|
2109
2109
|
F(!0), ta(t) && $([]);
|
|
2110
|
-
const M = O.map((R) => R.key), A =
|
|
2110
|
+
const M = O.map((R) => R.key), A = Be(t);
|
|
2111
2111
|
if (ai.unorderedPrimitiveArrays(M, A) === ai.EQUAL)
|
|
2112
2112
|
return;
|
|
2113
2113
|
let I = [];
|
|
2114
|
-
if (
|
|
2114
|
+
if (z)
|
|
2115
2115
|
try {
|
|
2116
2116
|
I = await c.retrieve(A);
|
|
2117
2117
|
} finally {
|
|
@@ -2119,15 +2119,15 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2119
2119
|
}
|
|
2120
2120
|
else o != null && (I = o.filter((R) => A.includes(R.key)));
|
|
2121
2121
|
$(I);
|
|
2122
|
-
}, [c,
|
|
2122
|
+
}, [c, z, t, o]);
|
|
2123
2123
|
const k = D(
|
|
2124
2124
|
(M, A) => {
|
|
2125
|
-
M != null && ($(A.entries), e(
|
|
2125
|
+
M != null && ($(A.entries), e(Be(M), A));
|
|
2126
2126
|
},
|
|
2127
2127
|
[e]
|
|
2128
2128
|
), b = be(
|
|
2129
|
-
() =>
|
|
2130
|
-
[
|
|
2129
|
+
() => z ? xa : ya,
|
|
2130
|
+
[z]
|
|
2131
2131
|
);
|
|
2132
2132
|
let E, _;
|
|
2133
2133
|
if (C === "connected")
|
|
@@ -2139,7 +2139,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2139
2139
|
selectedKeys: t,
|
|
2140
2140
|
className: n,
|
|
2141
2141
|
onChange: M,
|
|
2142
|
-
loading:
|
|
2142
|
+
loading: B,
|
|
2143
2143
|
selected: O,
|
|
2144
2144
|
onFocus: T,
|
|
2145
2145
|
entryRenderKey: l,
|
|
@@ -2153,7 +2153,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2153
2153
|
}
|
|
2154
2154
|
) });
|
|
2155
2155
|
else {
|
|
2156
|
-
const M =
|
|
2156
|
+
const M = Be(t);
|
|
2157
2157
|
_ = /* @__PURE__ */ r.jsxs(re, { x: !0, align: "center", grow: !0, style: x, size: "small", children: [
|
|
2158
2158
|
M.map((A) => {
|
|
2159
2159
|
const I = O.find((R) => R.key === A);
|
|
@@ -2161,7 +2161,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2161
2161
|
key: A,
|
|
2162
2162
|
entryKey: A,
|
|
2163
2163
|
entryRenderKey: l,
|
|
2164
|
-
loading:
|
|
2164
|
+
loading: B,
|
|
2165
2165
|
entry: I,
|
|
2166
2166
|
onClose: () => {
|
|
2167
2167
|
const R = M.filter((V) => V !== A);
|
|
@@ -2269,7 +2269,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2269
2269
|
align: "center",
|
|
2270
2270
|
grow: !0,
|
|
2271
2271
|
size: "small",
|
|
2272
|
-
children:
|
|
2272
|
+
children: Be(e).map((L) => {
|
|
2273
2273
|
const O = n.find(($) => $.key === L);
|
|
2274
2274
|
return c({
|
|
2275
2275
|
key: L,
|
|
@@ -2375,43 +2375,43 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2375
2375
|
const O = {
|
|
2376
2376
|
...Cl[l],
|
|
2377
2377
|
...t
|
|
2378
|
-
}, $ = vs(O),
|
|
2378
|
+
}, $ = vs(O), B = h5(O);
|
|
2379
2379
|
return [
|
|
2380
2380
|
O,
|
|
2381
2381
|
$,
|
|
2382
|
-
|
|
2383
|
-
vs(
|
|
2382
|
+
B,
|
|
2383
|
+
vs(B)
|
|
2384
2384
|
];
|
|
2385
2385
|
},
|
|
2386
2386
|
Hc,
|
|
2387
2387
|
[t]
|
|
2388
2388
|
), y = D(
|
|
2389
|
-
({ box: O, triggers: $, stage:
|
|
2389
|
+
({ box: O, triggers: $, stage: B, cursor: F }) => {
|
|
2390
2390
|
if (p.current == null) return;
|
|
2391
|
-
const
|
|
2392
|
-
if (
|
|
2393
|
-
if (
|
|
2394
|
-
c(H.ZERO), e == null || e({ box: d.current, mode:
|
|
2391
|
+
const z = Ss(x, $), k = H.construct(p.current);
|
|
2392
|
+
if (z == null) return;
|
|
2393
|
+
if (z === "cancel") {
|
|
2394
|
+
c(H.ZERO), e == null || e({ box: d.current, mode: z, stage: B, cursor: F });
|
|
2395
2395
|
return;
|
|
2396
2396
|
}
|
|
2397
|
-
if (
|
|
2398
|
-
return c(H.ZERO), e == null || e({ box: H.DECIMAL, mode:
|
|
2397
|
+
if (z === "zoomReset")
|
|
2398
|
+
return c(H.ZERO), e == null || e({ box: H.DECIMAL, mode: z, stage: B, cursor: F }), f(H.DECIMAL);
|
|
2399
2399
|
const b = u5(O);
|
|
2400
|
-
if (
|
|
2400
|
+
if (B === "end") {
|
|
2401
2401
|
if (b) {
|
|
2402
|
-
|
|
2402
|
+
z === "zoom" && c(H.ZERO), e == null || e({ box: d.current, mode: "click", stage: B, cursor: F });
|
|
2403
2403
|
return;
|
|
2404
2404
|
}
|
|
2405
2405
|
return f((_) => {
|
|
2406
|
-
if (
|
|
2406
|
+
if (z === "pan") {
|
|
2407
2407
|
const A = Ci(O, _, k);
|
|
2408
|
-
return A === null || H.equals(A, _) ? _ : (e == null || e({ box: A, mode:
|
|
2408
|
+
return A === null || H.equals(A, _) ? _ : (e == null || e({ box: A, mode: z, stage: B, cursor: F }), A);
|
|
2409
2409
|
}
|
|
2410
2410
|
const M = v(O, _, k);
|
|
2411
|
-
return M === null ? _ : (e == null || e({ box: M, mode:
|
|
2411
|
+
return M === null ? _ : (e == null || e({ box: M, mode: z, stage: B, cursor: F }), z === "zoom" ? (c(H.ZERO), M) : H.truncate(_, Vn(_)));
|
|
2412
2412
|
});
|
|
2413
2413
|
}
|
|
2414
|
-
if (eu.includes(
|
|
2414
|
+
if (eu.includes(z))
|
|
2415
2415
|
return b ? void 0 : c(
|
|
2416
2416
|
wt.XY.scale(k).clamp(k).translate({ x: -H.left(k), y: -H.top(k) }).box(_i(g, O, k))
|
|
2417
2417
|
);
|
|
@@ -2419,7 +2419,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2419
2419
|
return;
|
|
2420
2420
|
h.current = F;
|
|
2421
2421
|
const E = Ci(O, d.current, k);
|
|
2422
|
-
e == null || e({ box: E, mode:
|
|
2422
|
+
e == null || e({ box: E, mode: z, stage: B, cursor: F });
|
|
2423
2423
|
},
|
|
2424
2424
|
[
|
|
2425
2425
|
c,
|
|
@@ -2448,8 +2448,8 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2448
2448
|
[e]
|
|
2449
2449
|
);
|
|
2450
2450
|
const v = D(
|
|
2451
|
-
(O, $,
|
|
2452
|
-
const F = ks($,
|
|
2451
|
+
(O, $, B) => {
|
|
2452
|
+
const F = ks($, B).box(_i(g, O, B));
|
|
2453
2453
|
return H.truncate(F, Vn(F));
|
|
2454
2454
|
},
|
|
2455
2455
|
[o]
|
|
@@ -2457,19 +2457,19 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2457
2457
|
q(() => {
|
|
2458
2458
|
const O = ($) => {
|
|
2459
2459
|
if (p.current == null) return;
|
|
2460
|
-
let
|
|
2461
|
-
$.deltaY < 0 ?
|
|
2462
|
-
const F = H.construct(p.current),
|
|
2463
|
-
if (Array.from(p.current.children).push(p.current), !H.contains(F,
|
|
2460
|
+
let B = 1;
|
|
2461
|
+
$.deltaY < 0 ? B -= 0.035 : B += 0.035;
|
|
2462
|
+
const F = H.construct(p.current), z = ne.construct($);
|
|
2463
|
+
if (Array.from(p.current.children).push(p.current), !H.contains(F, z) || p.current !== $.target && Fm($.target, (A) => A === p.current) == null)
|
|
2464
2464
|
return;
|
|
2465
2465
|
const E = ks(d.current, H.construct(p.current)).pos(ne.construct($));
|
|
2466
2466
|
let M = wt.XY.magnify({
|
|
2467
|
-
x: P.current.held ? 1 :
|
|
2468
|
-
y: T.current.held ? 1 :
|
|
2467
|
+
x: P.current.held ? 1 : B,
|
|
2468
|
+
y: T.current.held ? 1 : B
|
|
2469
2469
|
}).box(d.current);
|
|
2470
2470
|
M = H.translate(M, {
|
|
2471
|
-
x: P.current.held ? 0 : E.x * (1 -
|
|
2472
|
-
y: T.current.held ? 0 : E.y * (1 -
|
|
2471
|
+
x: P.current.held ? 0 : E.x * (1 - B),
|
|
2472
|
+
y: T.current.held ? 0 : E.y * (1 - B)
|
|
2473
2473
|
}), f(M), e == null || e({
|
|
2474
2474
|
stage: "end",
|
|
2475
2475
|
box: M,
|
|
@@ -2487,8 +2487,8 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2487
2487
|
const L = D(
|
|
2488
2488
|
({ triggers: O, stage: $ }) => {
|
|
2489
2489
|
if ($ === "end") return u(l);
|
|
2490
|
-
const
|
|
2491
|
-
|
|
2490
|
+
const B = Ss(w, O);
|
|
2491
|
+
B != null && u(B);
|
|
2492
2492
|
},
|
|
2493
2493
|
[w, l, e]
|
|
2494
2494
|
);
|
|
@@ -2585,11 +2585,11 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2585
2585
|
Floating: jl,
|
|
2586
2586
|
Legend: Va,
|
|
2587
2587
|
Line: bl,
|
|
2588
|
-
LinePlot:
|
|
2588
|
+
LinePlot: Ba,
|
|
2589
2589
|
Title: Fa,
|
|
2590
2590
|
Tooltip: D3,
|
|
2591
2591
|
Viewport: ru,
|
|
2592
|
-
XAxis:
|
|
2592
|
+
XAxis: za,
|
|
2593
2593
|
YAxis: Oa,
|
|
2594
2594
|
axisFactory: ml,
|
|
2595
2595
|
selectViewportEl: j5,
|
|
@@ -2746,9 +2746,9 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2746
2746
|
lineDash: u
|
|
2747
2747
|
},
|
|
2748
2748
|
onAetherChange: D(
|
|
2749
|
-
({ position:
|
|
2749
|
+
({ position: z }) => {
|
|
2750
2750
|
var k;
|
|
2751
|
-
|
|
2751
|
+
z != null && ((k = j.current) == null || k.call(j, z));
|
|
2752
2752
|
},
|
|
2753
2753
|
[j]
|
|
2754
2754
|
)
|
|
@@ -2756,8 +2756,8 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2756
2756
|
w !== y.current && (y.current = w);
|
|
2757
2757
|
const { id: v } = ut("Rule"), P = document.getElementById(v), T = P == null ? void 0 : P.querySelector(".pluto-line-plot__viewport"), L = te(w);
|
|
2758
2758
|
q(() => {
|
|
2759
|
-
C((
|
|
2760
|
-
...
|
|
2759
|
+
C((z) => ({
|
|
2760
|
+
...z,
|
|
2761
2761
|
position: n,
|
|
2762
2762
|
color: c,
|
|
2763
2763
|
lineWidth: a,
|
|
@@ -2766,20 +2766,20 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2766
2766
|
}, [n, c, a, u]);
|
|
2767
2767
|
const O = mo({
|
|
2768
2768
|
onStart: D(() => {
|
|
2769
|
-
f == null || f(), C((
|
|
2769
|
+
f == null || f(), C((z) => ({ ...z, dragging: !0 })), L.current = y.current;
|
|
2770
2770
|
}, []),
|
|
2771
|
-
onMove: (
|
|
2771
|
+
onMove: (z) => {
|
|
2772
2772
|
C((k) => ({
|
|
2773
2773
|
...k,
|
|
2774
|
-
pixelPosition: (L.current ?? 0) + H.signedHeight(
|
|
2774
|
+
pixelPosition: (L.current ?? 0) + H.signedHeight(z)
|
|
2775
2775
|
}));
|
|
2776
2776
|
},
|
|
2777
2777
|
onEnd: D(() => {
|
|
2778
|
-
C((
|
|
2778
|
+
C((z) => ({ ...z, dragging: !1 })), L.current = w;
|
|
2779
2779
|
}, [])
|
|
2780
2780
|
}), $ = te(null);
|
|
2781
2781
|
if (n == null || w == null) return null;
|
|
2782
|
-
const
|
|
2782
|
+
const B = Q.pickByContrast(c, Q.BLACK, Q.WHITE), F = /* @__PURE__ */ r.jsxs(
|
|
2783
2783
|
"div",
|
|
2784
2784
|
{
|
|
2785
2785
|
ref: $,
|
|
@@ -2818,7 +2818,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2818
2818
|
level: "small",
|
|
2819
2819
|
value: g,
|
|
2820
2820
|
onChange: x,
|
|
2821
|
-
color:
|
|
2821
|
+
color: B
|
|
2822
2822
|
}
|
|
2823
2823
|
),
|
|
2824
2824
|
/* @__PURE__ */ r.jsx(u2, { y: !0, style: { borderColor: Q.cssString(c) } }),
|
|
@@ -2827,19 +2827,19 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2827
2827
|
Yo,
|
|
2828
2828
|
{
|
|
2829
2829
|
value: n.toFixed(2),
|
|
2830
|
-
onChange: (
|
|
2831
|
-
const k = Number(
|
|
2830
|
+
onChange: (z) => {
|
|
2831
|
+
const k = Number(z);
|
|
2832
2832
|
isFinite(k) && (s == null || s(k));
|
|
2833
2833
|
},
|
|
2834
2834
|
level: "small",
|
|
2835
|
-
color:
|
|
2835
|
+
color: B
|
|
2836
2836
|
}
|
|
2837
2837
|
),
|
|
2838
2838
|
/* @__PURE__ */ r.jsx(
|
|
2839
2839
|
fo,
|
|
2840
2840
|
{
|
|
2841
2841
|
level: "small",
|
|
2842
|
-
color:
|
|
2842
|
+
color: B,
|
|
2843
2843
|
value: i,
|
|
2844
2844
|
onChange: l
|
|
2845
2845
|
}
|
|
@@ -2881,9 +2881,9 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2881
2881
|
children: T,
|
|
2882
2882
|
...L
|
|
2883
2883
|
}) => {
|
|
2884
|
-
var
|
|
2885
|
-
const O = t.filter(({ location: k }) => ve.isY(k)), $ = te(null),
|
|
2886
|
-
return (
|
|
2884
|
+
var z;
|
|
2885
|
+
const O = t.filter(({ location: k }) => ve.isY(k)), $ = te(null), B = ci(e.length), F = ci(L.hold);
|
|
2886
|
+
return (B === 0 && e.length !== 0 || F === !0 && L.hold === !1) && ((z = $.current) == null || z.reset()), /* @__PURE__ */ r.jsxs(Ba, { ...L, children: [
|
|
2887
2887
|
O.map((k, b) => {
|
|
2888
2888
|
const E = e.filter((A) => A.axes.x === k.key), _ = t.filter(({ location: A }) => ve.isX(A)), M = p == null ? void 0 : p.filter(
|
|
2889
2889
|
(A) => [..._.map(({ key: I }) => I), k.key].includes(A.axis)
|
|
@@ -2957,7 +2957,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2957
2957
|
)
|
|
2958
2958
|
}), g = o == null ? void 0 : o.filter((j) => j.axis === u), x = Et();
|
|
2959
2959
|
return /* @__PURE__ */ r.jsxs(
|
|
2960
|
-
|
|
2960
|
+
za,
|
|
2961
2961
|
{
|
|
2962
2962
|
...f,
|
|
2963
2963
|
...p,
|
|
@@ -3106,8 +3106,8 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3106
3106
|
if (e == null) return de.Channel;
|
|
3107
3107
|
if (j2.isCalculated(e)) return de.Calculation;
|
|
3108
3108
|
if (e.isIndex) return de.Index;
|
|
3109
|
-
const t = new
|
|
3110
|
-
return t.isInteger ? de.Binary : t.isFloat ? de.Decimal : t.equals(
|
|
3109
|
+
const t = new zt(e.dataType);
|
|
3110
|
+
return t.isInteger ? de.Binary : t.isFloat ? de.Decimal : t.equals(zt.STRING) ? de.String : t.equals(zt.JSON) ? de.JSON : de.Channel;
|
|
3111
3111
|
}, L5 = ({
|
|
3112
3112
|
key: e,
|
|
3113
3113
|
...t
|
|
@@ -3135,13 +3135,13 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3135
3135
|
...x
|
|
3136
3136
|
} = Ft({
|
|
3137
3137
|
type: "Channel.SelectMultiple",
|
|
3138
|
-
canDrop: D((v) => qo(v,
|
|
3138
|
+
canDrop: D((v) => qo(v, Be(o)), [o]),
|
|
3139
3139
|
onDrop: D(
|
|
3140
3140
|
({ items: v }) => {
|
|
3141
3141
|
const P = Ve(at, v);
|
|
3142
3142
|
if (P.length === 0) return [];
|
|
3143
3143
|
const T = xr.unique([
|
|
3144
|
-
...
|
|
3144
|
+
...Be(o),
|
|
3145
3145
|
...P.map((L) => L.key)
|
|
3146
3146
|
]);
|
|
3147
3147
|
return t(T, {
|
|
@@ -3155,7 +3155,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3155
3155
|
}), j = Et(), w = D(
|
|
3156
3156
|
({ dropped: v }) => {
|
|
3157
3157
|
t(
|
|
3158
|
-
|
|
3158
|
+
Be(o).filter((P) => !v.some((T) => T.key === P)),
|
|
3159
3159
|
{
|
|
3160
3160
|
clickedIndex: null,
|
|
3161
3161
|
clicked: null,
|
|
@@ -3174,7 +3174,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3174
3174
|
return /* @__PURE__ */ r.jsx(
|
|
3175
3175
|
Nn,
|
|
3176
3176
|
{
|
|
3177
|
-
className: m(n, m.dropRegion(qo(j,
|
|
3177
|
+
className: m(n, m.dropRegion(qo(j, Be(o)))),
|
|
3178
3178
|
value: o,
|
|
3179
3179
|
onTagDragStart: C,
|
|
3180
3180
|
onTagDragEnd: g,
|
|
@@ -3326,21 +3326,21 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3326
3326
|
}, pu = (e, t) => ({
|
|
3327
3327
|
add: (n, o) => {
|
|
3328
3328
|
const s = Yn(e.get(t).value);
|
|
3329
|
-
s.splice(o, 0, ...
|
|
3329
|
+
s.splice(o, 0, ...Be(n)), e.set(t, s, { validateChildren: !1 });
|
|
3330
3330
|
},
|
|
3331
3331
|
push: (n, o) => {
|
|
3332
3332
|
const s = Yn(e.get(t).value);
|
|
3333
|
-
s.push(...
|
|
3333
|
+
s.push(...Be(n)), o != null && s.sort(o), e.set(t, s, { validateChildren: !1 });
|
|
3334
3334
|
},
|
|
3335
3335
|
remove: (n) => {
|
|
3336
|
-
const o = e.get(t).value, s = new Set(
|
|
3336
|
+
const o = e.get(t).value, s = new Set(Be(n));
|
|
3337
3337
|
e.set(
|
|
3338
3338
|
t,
|
|
3339
3339
|
o.filter((l, i) => !s.has(i))
|
|
3340
3340
|
);
|
|
3341
3341
|
},
|
|
3342
3342
|
keepOnly: (n) => {
|
|
3343
|
-
const o = e.get(t).value, s = new Set(
|
|
3343
|
+
const o = e.get(t).value, s = new Set(Be(n));
|
|
3344
3344
|
e.set(
|
|
3345
3345
|
t,
|
|
3346
3346
|
o.filter((l, i) => s.has(i))
|
|
@@ -3555,12 +3555,12 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3555
3555
|
}
|
|
3556
3556
|
(Z = a.current) == null || Z.call(a, { values: i.current.state, path: k, prev: _, valid: V });
|
|
3557
3557
|
}, "Failed to validate form");
|
|
3558
|
-
}, []),
|
|
3558
|
+
}, []), B = D(
|
|
3559
3559
|
(k) => Fe.has(i.current.state, k),
|
|
3560
3560
|
[]
|
|
3561
3561
|
), F = D((k, b) => {
|
|
3562
3562
|
i.current.statuses.set(k, b), x(k), v(k);
|
|
3563
|
-
}, []),
|
|
3563
|
+
}, []), z = D(() => {
|
|
3564
3564
|
const { statuses: k } = i.current;
|
|
3565
3565
|
k.clear(), k.forEach((b, E) => v(E));
|
|
3566
3566
|
}, []);
|
|
@@ -3580,10 +3580,10 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3580
3580
|
validate: L,
|
|
3581
3581
|
validateAsync: O,
|
|
3582
3582
|
value: () => i.current.state,
|
|
3583
|
-
has:
|
|
3583
|
+
has: B,
|
|
3584
3584
|
remove: C,
|
|
3585
3585
|
setStatus: F,
|
|
3586
|
-
clearStatuses:
|
|
3586
|
+
clearStatuses: z,
|
|
3587
3587
|
reset: y,
|
|
3588
3588
|
setCurrentStateAsInitialValues: h
|
|
3589
3589
|
}),
|
|
@@ -3593,21 +3593,21 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3593
3593
|
g,
|
|
3594
3594
|
L,
|
|
3595
3595
|
O,
|
|
3596
|
-
|
|
3596
|
+
B,
|
|
3597
3597
|
C,
|
|
3598
3598
|
F,
|
|
3599
|
-
|
|
3599
|
+
z,
|
|
3600
3600
|
y,
|
|
3601
3601
|
o,
|
|
3602
3602
|
h
|
|
3603
3603
|
]
|
|
3604
3604
|
);
|
|
3605
|
-
},
|
|
3605
|
+
}, B5 = ({
|
|
3606
3606
|
children: e,
|
|
3607
3607
|
...t
|
|
3608
|
-
}) => /* @__PURE__ */ r.jsx(gu, { value: t, children: e }),
|
|
3608
|
+
}) => /* @__PURE__ */ r.jsx(gu, { value: t, children: e }), z5 = po(_t), _e = ({
|
|
3609
3609
|
path: e,
|
|
3610
|
-
children: t =
|
|
3610
|
+
children: t = z5,
|
|
3611
3611
|
label: n,
|
|
3612
3612
|
padHelpText: o = !0,
|
|
3613
3613
|
visible: s = !0,
|
|
@@ -3723,7 +3723,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3723
3723
|
}, QS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3724
3724
|
__proto__: null,
|
|
3725
3725
|
Field: _e,
|
|
3726
|
-
Form:
|
|
3726
|
+
Form: B5,
|
|
3727
3727
|
NumericField: Qe,
|
|
3728
3728
|
SwitchField: Nr,
|
|
3729
3729
|
TextField: El,
|
|
@@ -3850,13 +3850,13 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3850
3850
|
...a
|
|
3851
3851
|
} = Ft({
|
|
3852
3852
|
type: "Label.SelectMultiple",
|
|
3853
|
-
canDrop: D((h) => Qo(h,
|
|
3853
|
+
canDrop: D((h) => Qo(h, Be(n)), [n]),
|
|
3854
3854
|
onDrop: D(
|
|
3855
3855
|
({ items: h }) => {
|
|
3856
3856
|
const p = Ve(yn, h);
|
|
3857
3857
|
if (p.length === 0) return [];
|
|
3858
3858
|
const g = xr.unique([
|
|
3859
|
-
...
|
|
3859
|
+
...Be(n),
|
|
3860
3860
|
...p.map((x) => x.key)
|
|
3861
3861
|
]);
|
|
3862
3862
|
return e(g, { clickedIndex: null, clicked: null, entries: [] }), p;
|
|
@@ -3866,7 +3866,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3866
3866
|
}), u = Et(), d = D(
|
|
3867
3867
|
({ dropped: h }) => {
|
|
3868
3868
|
e(
|
|
3869
|
-
|
|
3869
|
+
Be(n).filter((p) => !h.some((g) => g.key === p)),
|
|
3870
3870
|
{ clickedIndex: null, clicked: null, entries: [] }
|
|
3871
3871
|
);
|
|
3872
3872
|
},
|
|
@@ -3878,7 +3878,7 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3878
3878
|
return /* @__PURE__ */ r.jsx(
|
|
3879
3879
|
Nn,
|
|
3880
3880
|
{
|
|
3881
|
-
className: m(t, m.dropRegion(Qo(u,
|
|
3881
|
+
className: m(t, m.dropRegion(Qo(u, Be(n)))),
|
|
3882
3882
|
value: n,
|
|
3883
3883
|
onTagDragStart: f,
|
|
3884
3884
|
onTagDragEnd: c,
|
|
@@ -4179,7 +4179,7 @@ const lx = ({ node: e }) => {
|
|
|
4179
4179
|
activeTab: i,
|
|
4180
4180
|
addTooltip: p
|
|
4181
4181
|
}, T = D(
|
|
4182
|
-
([
|
|
4182
|
+
([B]) => n(y, B),
|
|
4183
4183
|
[n]
|
|
4184
4184
|
), { props: L } = fl({
|
|
4185
4185
|
direction: j,
|
|
@@ -4238,13 +4238,13 @@ const sr = "pluto-mosaic-tab-drop", Pl = "pluto-mosaic-tab-create", ix = (e, t,
|
|
|
4238
4238
|
({ items: $ }) => ix(f, $, g),
|
|
4239
4239
|
[f, g]
|
|
4240
4240
|
), j = D(
|
|
4241
|
-
({ items: $, event:
|
|
4242
|
-
if (
|
|
4243
|
-
const F = ax(
|
|
4241
|
+
({ items: $, event: B }) => {
|
|
4242
|
+
if (B == null) return [];
|
|
4243
|
+
const F = ax(B);
|
|
4244
4244
|
p(null);
|
|
4245
|
-
const
|
|
4246
|
-
if (
|
|
4247
|
-
return c == null || c(d, b,
|
|
4245
|
+
const z = Ve(ha, $).length > 0, { percents: k } = Pi(B), b = f.length === 0 ? "center" : Ni(k);
|
|
4246
|
+
if (z)
|
|
4247
|
+
return c == null || c(d, b, B), $;
|
|
4248
4248
|
const E = Ve(sr, $);
|
|
4249
4249
|
if (E.length > 0) {
|
|
4250
4250
|
const M = E.map(({ key: A }) => A)[0];
|
|
@@ -4261,9 +4261,9 @@ const sr = "pluto-mosaic-tab-drop", Pl = "pluto-mosaic-tab-create", ix = (e, t,
|
|
|
4261
4261
|
), w = D(
|
|
4262
4262
|
({ event: $ }) => {
|
|
4263
4263
|
if ($ == null) return;
|
|
4264
|
-
const { percents:
|
|
4265
|
-
let
|
|
4266
|
-
F || (
|
|
4264
|
+
const { percents: B, inSelector: F } = Pi($);
|
|
4265
|
+
let z = null;
|
|
4266
|
+
F || (z = f.length === 0 ? "center" : Ni(B)), p(z);
|
|
4267
4267
|
},
|
|
4268
4268
|
[f.length]
|
|
4269
4269
|
), { startDrag: C, ...y } = Ft({
|
|
@@ -4272,9 +4272,9 @@ const sr = "pluto-mosaic-tab-drop", Pl = "pluto-mosaic-tab-create", ix = (e, t,
|
|
|
4272
4272
|
onDrop: j,
|
|
4273
4273
|
onDragOver: w
|
|
4274
4274
|
}), v = x(Et()), P = D(() => p(null), []), T = D(
|
|
4275
|
-
($, { tabKey:
|
|
4275
|
+
($, { tabKey: B }) => {
|
|
4276
4276
|
C([
|
|
4277
|
-
{ key:
|
|
4277
|
+
{ key: B, type: sr, elementID: $.currentTarget.id }
|
|
4278
4278
|
]);
|
|
4279
4279
|
},
|
|
4280
4280
|
[C]
|
|
@@ -4858,13 +4858,13 @@ const wx = ({ children: e, ...t }) => {
|
|
|
4858
4858
|
...a
|
|
4859
4859
|
} = Ft({
|
|
4860
4860
|
type: "Ranger.SelectMultiple",
|
|
4861
|
-
canDrop: D((h) => lr(h,
|
|
4861
|
+
canDrop: D((h) => lr(h, Be(n)), [n]),
|
|
4862
4862
|
onDrop: D(
|
|
4863
4863
|
({ items: h }) => {
|
|
4864
4864
|
const p = Ve(to, h);
|
|
4865
4865
|
if (p.length === 0) return [];
|
|
4866
4866
|
const g = xr.unique([
|
|
4867
|
-
...
|
|
4867
|
+
...Be(n),
|
|
4868
4868
|
...p.map((x) => x.key)
|
|
4869
4869
|
]);
|
|
4870
4870
|
return e(g, {
|
|
@@ -4878,7 +4878,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
4878
4878
|
}), u = Et(), d = D(
|
|
4879
4879
|
({ dropped: h }) => {
|
|
4880
4880
|
e(
|
|
4881
|
-
|
|
4881
|
+
Be(n).filter((p) => !h.some((g) => g.key === p)),
|
|
4882
4882
|
{
|
|
4883
4883
|
clickedIndex: null,
|
|
4884
4884
|
clicked: null,
|
|
@@ -4894,7 +4894,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
4894
4894
|
return /* @__PURE__ */ r.jsx(
|
|
4895
4895
|
Nn,
|
|
4896
4896
|
{
|
|
4897
|
-
className: m(t, m.dropRegion(lr(u,
|
|
4897
|
+
className: m(t, m.dropRegion(lr(u, Be(n)))),
|
|
4898
4898
|
value: n,
|
|
4899
4899
|
onTagDragStart: f,
|
|
4900
4900
|
onTagDragEnd: c,
|
|
@@ -4907,7 +4907,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
4907
4907
|
...o
|
|
4908
4908
|
}
|
|
4909
4909
|
);
|
|
4910
|
-
},
|
|
4910
|
+
}, Bu = ({
|
|
4911
4911
|
value: e,
|
|
4912
4912
|
onChange: t
|
|
4913
4913
|
}) => {
|
|
@@ -4946,7 +4946,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
4946
4946
|
data: o,
|
|
4947
4947
|
...s
|
|
4948
4948
|
}) => {
|
|
4949
|
-
const { dragging: l, ...i } =
|
|
4949
|
+
const { dragging: l, ...i } = Bu({ value: t, onChange: e });
|
|
4950
4950
|
return /* @__PURE__ */ r.jsx(
|
|
4951
4951
|
Mt,
|
|
4952
4952
|
{
|
|
@@ -4966,7 +4966,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
4966
4966
|
onChange: n,
|
|
4967
4967
|
...o
|
|
4968
4968
|
}) => {
|
|
4969
|
-
const { dragging: s, ...l } =
|
|
4969
|
+
const { dragging: s, ...l } = Bu({ value: t, onChange: n });
|
|
4970
4970
|
return /* @__PURE__ */ r.jsx(
|
|
4971
4971
|
Mt,
|
|
4972
4972
|
{
|
|
@@ -5109,7 +5109,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
5109
5109
|
}, hC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5110
5110
|
__proto__: null,
|
|
5111
5111
|
Steps: $x
|
|
5112
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5112
|
+
}, Symbol.toStringTag, { value: "Module" })), Bx = ({
|
|
5113
5113
|
children: e,
|
|
5114
5114
|
className: t,
|
|
5115
5115
|
visible: n,
|
|
@@ -5140,7 +5140,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
5140
5140
|
),
|
|
5141
5141
|
/* @__PURE__ */ r.jsx("table", { className: m(m.B("table"), t), ...o, children: /* @__PURE__ */ r.jsx("tbody", { children: /* @__PURE__ */ r.jsx(ft, { path: s, children: e }) }) })
|
|
5142
5142
|
] });
|
|
5143
|
-
},
|
|
5143
|
+
}, zx = ({
|
|
5144
5144
|
children: e,
|
|
5145
5145
|
className: t,
|
|
5146
5146
|
size: n,
|
|
@@ -5176,7 +5176,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
5176
5176
|
className: m(m.BE("table", "cell"), m.selected(o), n),
|
|
5177
5177
|
children: t
|
|
5178
5178
|
}
|
|
5179
|
-
),
|
|
5179
|
+
), zu = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", Ox = (e) => zu[e], Ou = ({
|
|
5180
5180
|
value: e,
|
|
5181
5181
|
selected: t = !1,
|
|
5182
5182
|
index: n,
|
|
@@ -5209,7 +5209,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
5209
5209
|
onClick: () => i(n),
|
|
5210
5210
|
onContextMenu: () => i(n),
|
|
5211
5211
|
children: [
|
|
5212
|
-
/* @__PURE__ */ r.jsx(Ae, { level: "p", shade: 11, style: { width: "100%", textAlign: "center" }, children: l === "x" ?
|
|
5212
|
+
/* @__PURE__ */ r.jsx(Ae, { level: "p", shade: 11, style: { width: "100%", textAlign: "center" }, children: l === "x" ? zu[n] : n + 1 }),
|
|
5213
5213
|
/* @__PURE__ */ r.jsx(
|
|
5214
5214
|
"button",
|
|
5215
5215
|
{
|
|
@@ -5252,8 +5252,8 @@ const wx = ({ children: e, ...t }) => {
|
|
|
5252
5252
|
__proto__: null,
|
|
5253
5253
|
Cell: Tl,
|
|
5254
5254
|
ColumnIndicators: Rx,
|
|
5255
|
-
Row:
|
|
5256
|
-
Table:
|
|
5255
|
+
Row: zx,
|
|
5256
|
+
Table: Bx,
|
|
5257
5257
|
getCellColumn: Ox
|
|
5258
5258
|
}, Symbol.toStringTag, { value: "Module" })), Dx = [
|
|
5259
5259
|
{ key: "standard", name: "Standard" },
|
|
@@ -5705,8 +5705,8 @@ const wx = ({ children: e, ...t }) => {
|
|
|
5705
5705
|
bottom: Lo("bottom"),
|
|
5706
5706
|
left: Lo("left"),
|
|
5707
5707
|
right: Lo("right")
|
|
5708
|
-
}, o4 = 4, r4 = 0.25, Ir = (e) =>
|
|
5709
|
-
s4(
|
|
5708
|
+
}, o4 = 4, r4 = 0.25, Ir = (e) => Bs(
|
|
5709
|
+
s4(Bs(e))
|
|
5710
5710
|
), s4 = (e) => {
|
|
5711
5711
|
const t = [...e], n = e.findIndex((o, s) => {
|
|
5712
5712
|
const l = Math.abs(o.length);
|
|
@@ -5728,7 +5728,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
5728
5728
|
return !1;
|
|
5729
5729
|
});
|
|
5730
5730
|
return n !== -1 && t.splice(n, 1), t;
|
|
5731
|
-
},
|
|
5731
|
+
}, Bs = (e) => {
|
|
5732
5732
|
const t = [...e];
|
|
5733
5733
|
return e.findIndex((o, s) => {
|
|
5734
5734
|
const l = t[s - 1];
|
|
@@ -5759,7 +5759,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
5759
5759
|
direction: t[s - 1].direction,
|
|
5760
5760
|
length: t[s - 1].length + t[s].length
|
|
5761
5761
|
}, t.splice(s, 1), !0;
|
|
5762
|
-
}) !== -1 ?
|
|
5762
|
+
}) !== -1 ? Bs(t) : t;
|
|
5763
5763
|
}, hn = (e) => Ir(l4(e)), l4 = ({
|
|
5764
5764
|
sourceBox: e,
|
|
5765
5765
|
targetBox: t,
|
|
@@ -5855,14 +5855,14 @@ const wx = ({ children: e, ...t }) => {
|
|
|
5855
5855
|
return n ? a4(e, s) : e.findIndex(s);
|
|
5856
5856
|
}, d4 = ({ delta: e, segments: t }) => Ir(Fu(e, t, !1)), f4 = ({ delta: e, segments: t }) => Ir(Fu(e, t, !0)), Fu = (e, t, n) => {
|
|
5857
5857
|
let o = [...t];
|
|
5858
|
-
return e.x !== 0 && (o =
|
|
5859
|
-
},
|
|
5858
|
+
return e.x !== 0 && (o = zi("x", e, o, n)), e.y !== 0 && (o = zi("y", e, o, n)), o;
|
|
5859
|
+
}, Bi = (e, t, n) => {
|
|
5860
5860
|
if (t.direction !== e) return !1;
|
|
5861
5861
|
const o = { ...t, length: t.length - n[e] }, s = $t(t), l = $t(o), i = Math.abs(o.length), c = Math.abs(t.length);
|
|
5862
5862
|
return (i > c || i > Ke) && s === l;
|
|
5863
|
-
},
|
|
5863
|
+
}, zi = (e, t, n, o) => {
|
|
5864
5864
|
const s = Le.swap(e), l = o ? n.length - 1 : 0, i = n[l];
|
|
5865
|
-
if (
|
|
5865
|
+
if (Bi(e, i, t)) {
|
|
5866
5866
|
const f = n[n.length - 1];
|
|
5867
5867
|
return f.direction === e && Math.abs(i.length) < Ke ? (n[n.length - 1] = {
|
|
5868
5868
|
...f,
|
|
@@ -5872,7 +5872,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
5872
5872
|
const c = o ? 0 : n.length - 1, u = u4(n, (f) => f.direction === e, o, l);
|
|
5873
5873
|
if (u === c) {
|
|
5874
5874
|
const f = n[c];
|
|
5875
|
-
return
|
|
5875
|
+
return Bi(e, f, t) ? (n[c] = {
|
|
5876
5876
|
...f,
|
|
5877
5877
|
length: f.length - t[e]
|
|
5878
5878
|
}, n) : (i.direction === e && Math.abs(i.length) > f.length ? n[l] = { ...i, length: i.length - t[e] } : n[c] = {
|
|
@@ -5980,7 +5980,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
5980
5980
|
position: { ...t.position },
|
|
5981
5981
|
selected: t.selected,
|
|
5982
5982
|
data: {}
|
|
5983
|
-
})),
|
|
5983
|
+
})), Bl = (e) => e.map(({ segments: t, color: n, variant: o, ...s }) => ({
|
|
5984
5984
|
...s,
|
|
5985
5985
|
id: s.key,
|
|
5986
5986
|
data: { segments: t, color: n, variant: o }
|
|
@@ -6000,7 +6000,7 @@ const wx = ({ children: e, ...t }) => {
|
|
|
6000
6000
|
}), Gu = (e) => ({
|
|
6001
6001
|
position: ne.construct(e),
|
|
6002
6002
|
zoom: e.zoom
|
|
6003
|
-
}), Xu = (e, t) => Zu(t($l(e))), Do = (e, t, n) => Wu(t(
|
|
6003
|
+
}), Xu = (e, t) => Zu(t($l(e))), Do = (e, t, n) => Wu(t(Bl(e)), n), m4 = (e, t = "x") => {
|
|
6004
6004
|
if (e.length === 0) return [];
|
|
6005
6005
|
const n = ve.construct(t), o = ve.swap(n);
|
|
6006
6006
|
return e.sort((s, l) => H.loc(s.box, n) - H.loc(l.box, n)), e.forEach((s, l) => {
|
|
@@ -6083,10 +6083,10 @@ function Oi(e, t, n) {
|
|
|
6083
6083
|
}
|
|
6084
6084
|
return n != null && e.push({ name: t, value: n }), e;
|
|
6085
6085
|
}
|
|
6086
|
-
var
|
|
6086
|
+
var zs = "http://www.w3.org/1999/xhtml";
|
|
6087
6087
|
const Ri = {
|
|
6088
6088
|
svg: "http://www.w3.org/2000/svg",
|
|
6089
|
-
xhtml:
|
|
6089
|
+
xhtml: zs,
|
|
6090
6090
|
xlink: "http://www.w3.org/1999/xlink",
|
|
6091
6091
|
xml: "http://www.w3.org/XML/1998/namespace",
|
|
6092
6092
|
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
@@ -6098,7 +6098,7 @@ function $r(e) {
|
|
|
6098
6098
|
function w4(e) {
|
|
6099
6099
|
return function() {
|
|
6100
6100
|
var t = this.ownerDocument, n = this.namespaceURI;
|
|
6101
|
-
return n ===
|
|
6101
|
+
return n === zs && t.documentElement.namespaceURI === zs ? t.createElement(e) : t.createElementNS(n, e);
|
|
6102
6102
|
};
|
|
6103
6103
|
}
|
|
6104
6104
|
function b4(e) {
|
|
@@ -6112,13 +6112,13 @@ function Ku(e) {
|
|
|
6112
6112
|
}
|
|
6113
6113
|
function v4() {
|
|
6114
6114
|
}
|
|
6115
|
-
function
|
|
6115
|
+
function zl(e) {
|
|
6116
6116
|
return e == null ? v4 : function() {
|
|
6117
6117
|
return this.querySelector(e);
|
|
6118
6118
|
};
|
|
6119
6119
|
}
|
|
6120
6120
|
function S4(e) {
|
|
6121
|
-
typeof e != "function" && (e =
|
|
6121
|
+
typeof e != "function" && (e = zl(e));
|
|
6122
6122
|
for (var t = this._groups, n = t.length, o = new Array(n), s = 0; s < n; ++s)
|
|
6123
6123
|
for (var l = t[s], i = l.length, c = o[s] = new Array(i), a, u, d = 0; d < i; ++d)
|
|
6124
6124
|
(a = l[d]) && (u = e.call(a, a.__data__, d, l)) && ("__data__" in a && (u.__data__ = a.__data__), c[d] = u);
|
|
@@ -6181,7 +6181,7 @@ function A4(e) {
|
|
|
6181
6181
|
function $4(e) {
|
|
6182
6182
|
return this.selectAll(e == null ? I4 : A4(typeof e == "function" ? e : Qu(e)));
|
|
6183
6183
|
}
|
|
6184
|
-
function
|
|
6184
|
+
function B4(e) {
|
|
6185
6185
|
typeof e != "function" && (e = qu(e));
|
|
6186
6186
|
for (var t = this._groups, n = t.length, o = new Array(n), s = 0; s < n; ++s)
|
|
6187
6187
|
for (var l = t[s], i = l.length, c = o[s] = [], a, u = 0; u < i; ++u)
|
|
@@ -6191,7 +6191,7 @@ function z4(e) {
|
|
|
6191
6191
|
function Ju(e) {
|
|
6192
6192
|
return new Array(e.length);
|
|
6193
6193
|
}
|
|
6194
|
-
function
|
|
6194
|
+
function z4() {
|
|
6195
6195
|
return new et(this._enter || this._groups.map(Ju), this._parents);
|
|
6196
6196
|
}
|
|
6197
6197
|
function ir(e, t) {
|
|
@@ -6509,17 +6509,17 @@ function Ay() {
|
|
|
6509
6509
|
return null;
|
|
6510
6510
|
}
|
|
6511
6511
|
function $y(e, t) {
|
|
6512
|
-
var n = typeof e == "function" ? e : Ku(e), o = t == null ? Ay : typeof t == "function" ? t :
|
|
6512
|
+
var n = typeof e == "function" ? e : Ku(e), o = t == null ? Ay : typeof t == "function" ? t : zl(t);
|
|
6513
6513
|
return this.select(function() {
|
|
6514
6514
|
return this.insertBefore(n.apply(this, arguments), o.apply(this, arguments) || null);
|
|
6515
6515
|
});
|
|
6516
6516
|
}
|
|
6517
|
-
function
|
|
6517
|
+
function By() {
|
|
6518
6518
|
var e = this.parentNode;
|
|
6519
6519
|
e && e.removeChild(this);
|
|
6520
6520
|
}
|
|
6521
|
-
function
|
|
6522
|
-
return this.each(
|
|
6521
|
+
function zy() {
|
|
6522
|
+
return this.each(By);
|
|
6523
6523
|
}
|
|
6524
6524
|
function Oy() {
|
|
6525
6525
|
var e = this.cloneNode(!1), t = this.parentNode;
|
|
@@ -6622,9 +6622,9 @@ et.prototype = jo.prototype = {
|
|
|
6622
6622
|
selectAll: M4,
|
|
6623
6623
|
selectChild: N4,
|
|
6624
6624
|
selectChildren: $4,
|
|
6625
|
-
filter:
|
|
6625
|
+
filter: B4,
|
|
6626
6626
|
data: F4,
|
|
6627
|
-
enter:
|
|
6627
|
+
enter: z4,
|
|
6628
6628
|
exit: Z4,
|
|
6629
6629
|
join: W4,
|
|
6630
6630
|
merge: Y4,
|
|
@@ -6647,7 +6647,7 @@ et.prototype = jo.prototype = {
|
|
|
6647
6647
|
lower: Ty,
|
|
6648
6648
|
append: Iy,
|
|
6649
6649
|
insert: $y,
|
|
6650
|
-
remove:
|
|
6650
|
+
remove: zy,
|
|
6651
6651
|
clone: Dy,
|
|
6652
6652
|
datum: Vy,
|
|
6653
6653
|
on: Yy,
|
|
@@ -6759,9 +6759,9 @@ function ad() {
|
|
|
6759
6759
|
}
|
|
6760
6760
|
function j(v, P) {
|
|
6761
6761
|
if (e.call(this, v, P)) {
|
|
6762
|
-
var T = v.changedTouches, L = t.call(this, v, P), O = T.length, $,
|
|
6762
|
+
var T = v.changedTouches, L = t.call(this, v, P), O = T.length, $, B;
|
|
6763
6763
|
for ($ = 0; $ < O; ++$)
|
|
6764
|
-
(
|
|
6764
|
+
(B = y(this, L, v, P, T[$].identifier, T[$])) && (ds(v), B("start", v, T[$]));
|
|
6765
6765
|
}
|
|
6766
6766
|
}
|
|
6767
6767
|
function w(v) {
|
|
@@ -6777,7 +6777,7 @@ function ad() {
|
|
|
6777
6777
|
(O = s[P[L].identifier]) && (ds(v), O("end", v, P[L]));
|
|
6778
6778
|
}
|
|
6779
6779
|
function y(v, P, T, L, O, $) {
|
|
6780
|
-
var
|
|
6780
|
+
var B = l.copy(), F = ot($ || T, P), z, k, b;
|
|
6781
6781
|
if ((b = n.call(v, new Os("beforestart", {
|
|
6782
6782
|
sourceEvent: T,
|
|
6783
6783
|
target: h,
|
|
@@ -6787,9 +6787,9 @@ function ad() {
|
|
|
6787
6787
|
y: F[1],
|
|
6788
6788
|
dx: 0,
|
|
6789
6789
|
dy: 0,
|
|
6790
|
-
dispatch:
|
|
6790
|
+
dispatch: B
|
|
6791
6791
|
}), L)) != null)
|
|
6792
|
-
return
|
|
6792
|
+
return z = b.x - F[0] || 0, k = b.y - F[1] || 0, function E(_, M, A) {
|
|
6793
6793
|
var I = F, R;
|
|
6794
6794
|
switch (_) {
|
|
6795
6795
|
case "start":
|
|
@@ -6802,7 +6802,7 @@ function ad() {
|
|
|
6802
6802
|
F = ot(A || M, P), R = i;
|
|
6803
6803
|
break;
|
|
6804
6804
|
}
|
|
6805
|
-
|
|
6805
|
+
B.call(
|
|
6806
6806
|
_,
|
|
6807
6807
|
v,
|
|
6808
6808
|
new Os(_, {
|
|
@@ -6811,11 +6811,11 @@ function ad() {
|
|
|
6811
6811
|
target: h,
|
|
6812
6812
|
identifier: O,
|
|
6813
6813
|
active: R,
|
|
6814
|
-
x: F[0] +
|
|
6814
|
+
x: F[0] + z,
|
|
6815
6815
|
y: F[1] + k,
|
|
6816
6816
|
dx: F[0] - I[0],
|
|
6817
6817
|
dy: F[1] - I[1],
|
|
6818
|
-
dispatch:
|
|
6818
|
+
dispatch: B
|
|
6819
6819
|
}),
|
|
6820
6820
|
L
|
|
6821
6821
|
);
|
|
@@ -6836,11 +6836,11 @@ function ad() {
|
|
|
6836
6836
|
return arguments.length ? (f = (v = +v) * v, h) : Math.sqrt(f);
|
|
6837
6837
|
}, h;
|
|
6838
6838
|
}
|
|
6839
|
-
var wn = 0, Hn = 0, Rn = 0, ud = 1e3, cr, Zn, ar = 0, tn = 0,
|
|
6839
|
+
var wn = 0, Hn = 0, Rn = 0, ud = 1e3, cr, Zn, ar = 0, tn = 0, Br = 0, oo = typeof performance == "object" && performance.now ? performance : Date, dd = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
6840
6840
|
setTimeout(e, 17);
|
|
6841
6841
|
};
|
|
6842
6842
|
function Rl() {
|
|
6843
|
-
return tn || (dd(r6), tn = oo.now() +
|
|
6843
|
+
return tn || (dd(r6), tn = oo.now() + Br);
|
|
6844
6844
|
}
|
|
6845
6845
|
function r6() {
|
|
6846
6846
|
tn = 0;
|
|
@@ -6869,7 +6869,7 @@ function s6() {
|
|
|
6869
6869
|
--wn;
|
|
6870
6870
|
}
|
|
6871
6871
|
function Di() {
|
|
6872
|
-
tn = (ar = oo.now()) +
|
|
6872
|
+
tn = (ar = oo.now()) + Br, wn = Hn = 0;
|
|
6873
6873
|
try {
|
|
6874
6874
|
s6();
|
|
6875
6875
|
} finally {
|
|
@@ -6878,7 +6878,7 @@ function Di() {
|
|
|
6878
6878
|
}
|
|
6879
6879
|
function l6() {
|
|
6880
6880
|
var e = oo.now(), t = e - ar;
|
|
6881
|
-
t > ud && (
|
|
6881
|
+
t > ud && (Br -= t, ar = e);
|
|
6882
6882
|
}
|
|
6883
6883
|
function i6() {
|
|
6884
6884
|
for (var e, t = cr, n, o = 1 / 0; t; )
|
|
@@ -6889,7 +6889,7 @@ function Rs(e) {
|
|
|
6889
6889
|
if (!wn) {
|
|
6890
6890
|
Hn && (Hn = clearTimeout(Hn));
|
|
6891
6891
|
var t = e - tn;
|
|
6892
|
-
t > 24 ? (e < 1 / 0 && (Hn = setTimeout(Di, e - oo.now() -
|
|
6892
|
+
t > 24 ? (e < 1 / 0 && (Hn = setTimeout(Di, e - oo.now() - Br)), Rn && (Rn = clearInterval(Rn))) : (Rn || (ar = oo.now(), Rn = setInterval(l6, ud)), wn = 1, dd(Di));
|
|
6893
6893
|
}
|
|
6894
6894
|
}
|
|
6895
6895
|
function Vi(e, t, n) {
|
|
@@ -6899,7 +6899,7 @@ function Vi(e, t, n) {
|
|
|
6899
6899
|
}, t, n), o;
|
|
6900
6900
|
}
|
|
6901
6901
|
var c6 = Ar("start", "end", "cancel", "interrupt"), a6 = [], hd = 0, Fi = 1, Ds = 2, Fo = 3, Hi = 4, Vs = 5, Ho = 6;
|
|
6902
|
-
function
|
|
6902
|
+
function zr(e, t, n, o, s, l) {
|
|
6903
6903
|
var i = e.__transition;
|
|
6904
6904
|
if (!i) e.__transition = {};
|
|
6905
6905
|
else if (n in i) return;
|
|
@@ -7162,11 +7162,11 @@ function $6(e, t) {
|
|
|
7162
7162
|
gt(this, e).ease = n;
|
|
7163
7163
|
};
|
|
7164
7164
|
}
|
|
7165
|
-
function
|
|
7165
|
+
function B6(e) {
|
|
7166
7166
|
if (typeof e != "function") throw new Error();
|
|
7167
7167
|
return this.each($6(this._id, e));
|
|
7168
7168
|
}
|
|
7169
|
-
function
|
|
7169
|
+
function z6(e) {
|
|
7170
7170
|
typeof e != "function" && (e = qu(e));
|
|
7171
7171
|
for (var t = this._groups, n = t.length, o = new Array(n), s = 0; s < n; ++s)
|
|
7172
7172
|
for (var l = t[s], i = l.length, c = o[s] = [], a, u = 0; u < i; ++u)
|
|
@@ -7211,10 +7211,10 @@ function H6() {
|
|
|
7211
7211
|
}
|
|
7212
7212
|
function Z6(e) {
|
|
7213
7213
|
var t = this._name, n = this._id;
|
|
7214
|
-
typeof e != "function" && (e =
|
|
7214
|
+
typeof e != "function" && (e = zl(e));
|
|
7215
7215
|
for (var o = this._groups, s = o.length, l = new Array(s), i = 0; i < s; ++i)
|
|
7216
7216
|
for (var c = o[i], a = c.length, u = l[i] = new Array(a), d, f, h = 0; h < a; ++h)
|
|
7217
|
-
(d = c[h]) && (f = e.call(d, d.__data__, h, c)) && ("__data__" in d && (f.__data__ = d.__data__), u[h] = f,
|
|
7217
|
+
(d = c[h]) && (f = e.call(d, d.__data__, h, c)) && ("__data__" in d && (f.__data__ = d.__data__), u[h] = f, zr(u[h], t, n, h, u, it(d, n)));
|
|
7218
7218
|
return new St(l, this._parents, t, n);
|
|
7219
7219
|
}
|
|
7220
7220
|
function W6(e) {
|
|
@@ -7224,7 +7224,7 @@ function W6(e) {
|
|
|
7224
7224
|
for (var a = o[c], u = a.length, d, f = 0; f < u; ++f)
|
|
7225
7225
|
if (d = a[f]) {
|
|
7226
7226
|
for (var h = e.call(d, d.__data__, f, a), p, g = it(d, n), x = 0, j = h.length; x < j; ++x)
|
|
7227
|
-
(p = h[x]) &&
|
|
7227
|
+
(p = h[x]) && zr(p, t, n, x, h, g);
|
|
7228
7228
|
l.push(h), i.push(d);
|
|
7229
7229
|
}
|
|
7230
7230
|
return new St(l, i, t, n);
|
|
@@ -7329,7 +7329,7 @@ function c9() {
|
|
|
7329
7329
|
for (var i = o[l], c = i.length, a, u = 0; u < c; ++u)
|
|
7330
7330
|
if (a = i[u]) {
|
|
7331
7331
|
var d = it(a, t);
|
|
7332
|
-
|
|
7332
|
+
zr(a, e, n, u, i, {
|
|
7333
7333
|
time: d.time + d.delay + d.duration,
|
|
7334
7334
|
delay: 0,
|
|
7335
7335
|
duration: d.duration,
|
|
@@ -7364,7 +7364,7 @@ St.prototype = {
|
|
|
7364
7364
|
selectAll: W6,
|
|
7365
7365
|
selectChild: xt.selectChild,
|
|
7366
7366
|
selectChildren: xt.selectChildren,
|
|
7367
|
-
filter:
|
|
7367
|
+
filter: z6,
|
|
7368
7368
|
merge: O6,
|
|
7369
7369
|
selection: G6,
|
|
7370
7370
|
transition: c9,
|
|
@@ -7386,7 +7386,7 @@ St.prototype = {
|
|
|
7386
7386
|
delay: L6,
|
|
7387
7387
|
duration: T6,
|
|
7388
7388
|
ease: A6,
|
|
7389
|
-
easeVarying:
|
|
7389
|
+
easeVarying: B6,
|
|
7390
7390
|
end: a9,
|
|
7391
7391
|
[Symbol.iterator]: xt[Symbol.iterator]
|
|
7392
7392
|
};
|
|
@@ -7411,7 +7411,7 @@ function p9(e) {
|
|
|
7411
7411
|
e instanceof St ? (t = e._id, e = e._name) : (t = md(), (n = f9).time = Rl(), e = e == null ? null : e + "");
|
|
7412
7412
|
for (var o = this._groups, s = o.length, l = 0; l < s; ++l)
|
|
7413
7413
|
for (var i = o[l], c = i.length, a, u = 0; u < c; ++u)
|
|
7414
|
-
(a = i[u]) &&
|
|
7414
|
+
(a = i[u]) && zr(a, e, t, u, i, n || h9(a, t));
|
|
7415
7415
|
return new St(o, this._parents, e, t);
|
|
7416
7416
|
}
|
|
7417
7417
|
jo.prototype.interrupt = d6;
|
|
@@ -7508,7 +7508,7 @@ function w9(e, t, n) {
|
|
|
7508
7508
|
function yd() {
|
|
7509
7509
|
var e = m9, t = x9, n = w9, o = y9, s = j9, l = [0, 1 / 0], i = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], c = 250, a = P3, u = Ar("start", "zoom", "end"), d, f, h, p = 500, g = 150, x = 0, j = 10;
|
|
7510
7510
|
function w(b) {
|
|
7511
|
-
b.property("__zoom", Zi).on("wheel.zoom", O, { passive: !1 }).on("mousedown.zoom", $).on("dblclick.zoom",
|
|
7511
|
+
b.property("__zoom", Zi).on("wheel.zoom", O, { passive: !1 }).on("mousedown.zoom", $).on("dblclick.zoom", B).filter(s).on("touchstart.zoom", F).on("touchmove.zoom", z).on("touchend.zoom touchcancel.zoom", k).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
7512
7512
|
}
|
|
7513
7513
|
w.transform = function(b, E, _, M) {
|
|
7514
7514
|
var A = b.selection ? b.selection() : b;
|
|
@@ -7631,7 +7631,7 @@ function yd() {
|
|
|
7631
7631
|
A.on("mousemove.zoom mouseup.zoom", null), cd(oe.view, M.moved), Dn(oe), M.event(oe).end();
|
|
7632
7632
|
}
|
|
7633
7633
|
}
|
|
7634
|
-
function
|
|
7634
|
+
function B(b, ...E) {
|
|
7635
7635
|
if (e.apply(this, arguments)) {
|
|
7636
7636
|
var _ = this.__zoom, M = ot(b.changedTouches ? b.changedTouches[0] : b, this), A = _.invert(M), I = _.k * (b.shiftKey ? 0.5 : 2), R = n(y(C(_, I), M, A), t.apply(this, E), i);
|
|
7637
7637
|
Dn(b), c > 0 ? Je(this).transition().duration(c).call(P, R, M, b) : Je(this).call(w.transform, R, M, b);
|
|
@@ -7647,7 +7647,7 @@ function yd() {
|
|
|
7647
7647
|
}, p)), Zo(this), A.start());
|
|
7648
7648
|
}
|
|
7649
7649
|
}
|
|
7650
|
-
function
|
|
7650
|
+
function z(b, ...E) {
|
|
7651
7651
|
if (this.__zooming) {
|
|
7652
7652
|
var _ = T(this, E).event(b), M = b.changedTouches, A = M.length, I, R, V, Z;
|
|
7653
7653
|
for (Dn(b), I = 0; I < A; ++I)
|
|
@@ -8141,13 +8141,13 @@ function N9({ sourceNode: e, targetNode: t, width: n, height: o, transform: s })
|
|
|
8141
8141
|
};
|
|
8142
8142
|
return so(i, Dr(l)) > 0;
|
|
8143
8143
|
}
|
|
8144
|
-
const
|
|
8144
|
+
const Bd = ({ source: e, sourceHandle: t, target: n, targetHandle: o }) => `xy-edge__${e}${t || ""}-${n}${o || ""}`, T9 = (e, t) => t.some((n) => n.source === e.source && n.target === e.target && (n.sourceHandle === e.sourceHandle || !n.sourceHandle && !e.sourceHandle) && (n.targetHandle === e.targetHandle || !n.targetHandle && !e.targetHandle)), zd = (e, t) => {
|
|
8145
8145
|
if (!e.source || !e.target)
|
|
8146
8146
|
return hr("006", Ye.error006()), t;
|
|
8147
8147
|
let n;
|
|
8148
8148
|
return vd(e) ? n = { ...e } : n = {
|
|
8149
8149
|
...e,
|
|
8150
|
-
id:
|
|
8150
|
+
id: Bd(e)
|
|
8151
8151
|
}, T9(n, t) ? t : (n.sourceHandle === null && delete n.sourceHandle, n.targetHandle === null && delete n.targetHandle, t.concat(n));
|
|
8152
8152
|
}, I9 = (e, t, n, o = { shouldReplaceId: !0 }) => {
|
|
8153
8153
|
const { id: s, ...l } = e;
|
|
@@ -8157,7 +8157,7 @@ const zd = ({ source: e, sourceHandle: t, target: n, targetHandle: o }) => `xy-e
|
|
|
8157
8157
|
return hr("007", Ye.error007(s)), n;
|
|
8158
8158
|
const c = {
|
|
8159
8159
|
...l,
|
|
8160
|
-
id: o.shouldReplaceId ?
|
|
8160
|
+
id: o.shouldReplaceId ? Bd(t) : s,
|
|
8161
8161
|
source: t.source,
|
|
8162
8162
|
target: t.target,
|
|
8163
8163
|
sourceHandle: t.sourceHandle,
|
|
@@ -8216,8 +8216,8 @@ function $9({ source: e, sourcePosition: t = U.Bottom, target: n, targetPosition
|
|
|
8216
8216
|
const k = f === "x" ? "y" : "x", b = i[f] === c[k], E = a[k] > u[k], _ = a[k] < u[k];
|
|
8217
8217
|
(i[f] === 1 && (!b && E || b && _) || i[f] !== 1 && (!b && _ || b && E)) && (p = f === "x" ? L : O);
|
|
8218
8218
|
}
|
|
8219
|
-
const $ = { x: a.x + j.x, y: a.y + j.y },
|
|
8220
|
-
F >=
|
|
8219
|
+
const $ = { x: a.x + j.x, y: a.y + j.y }, B = { x: u.x + w.x, y: u.y + w.y }, F = Math.max(Math.abs($.x - p[0].x), Math.abs(B.x - p[0].x)), z = Math.max(Math.abs($.y - p[0].y), Math.abs(B.y - p[0].y));
|
|
8220
|
+
F >= z ? (g = ($.x + B.x) / 2, x = p[0].y) : (g = p[0].x, x = ($.y + B.y) / 2);
|
|
8221
8221
|
}
|
|
8222
8222
|
return [[
|
|
8223
8223
|
e,
|
|
@@ -8227,7 +8227,7 @@ function $9({ source: e, sourcePosition: t = U.Bottom, target: n, targetPosition
|
|
|
8227
8227
|
n
|
|
8228
8228
|
], g, x, v, P];
|
|
8229
8229
|
}
|
|
8230
|
-
function
|
|
8230
|
+
function B9(e, t, n, o) {
|
|
8231
8231
|
const s = Math.min(Qi(e, t) / 2, Qi(t, n) / 2, o), { x: l, y: i } = t;
|
|
8232
8232
|
if (e.x === l && l === n.x || e.y === i && i === n.y)
|
|
8233
8233
|
return `L${l} ${i}`;
|
|
@@ -8249,14 +8249,14 @@ function Hs({ sourceX: e, sourceY: t, sourcePosition: n = U.Bottom, targetX: o,
|
|
|
8249
8249
|
});
|
|
8250
8250
|
return [d.reduce((j, w, C) => {
|
|
8251
8251
|
let y = "";
|
|
8252
|
-
return C > 0 && C < d.length - 1 ? y =
|
|
8252
|
+
return C > 0 && C < d.length - 1 ? y = B9(d[C - 1], w, d[C + 1], i) : y = `${C === 0 ? "M" : "L"}${w.x} ${w.y}`, j += y, j;
|
|
8253
8253
|
}, ""), f, h, p, g];
|
|
8254
8254
|
}
|
|
8255
8255
|
function Ji(e) {
|
|
8256
8256
|
var t;
|
|
8257
8257
|
return e && !!(e.internals.handleBounds || (t = e.handles) != null && t.length) && !!(e.measured.width || e.width || e.initialWidth);
|
|
8258
8258
|
}
|
|
8259
|
-
function
|
|
8259
|
+
function z9(e) {
|
|
8260
8260
|
var f;
|
|
8261
8261
|
const { sourceNode: t, targetNode: n } = e;
|
|
8262
8262
|
if (!Ji(t) || !Ji(n))
|
|
@@ -8614,9 +8614,9 @@ function Y9({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
8614
8614
|
let l = { x: null, y: null }, i = 0, c = /* @__PURE__ */ new Map(), a = !1, u = { x: 0, y: 0 }, d = null, f = !1, h = null, p = !1;
|
|
8615
8615
|
function g({ noDragClassName: j, handleSelector: w, domNode: C, isSelectable: y, nodeId: v, nodeClickDistance: P = 0 }) {
|
|
8616
8616
|
h = Je(C);
|
|
8617
|
-
function T({ x:
|
|
8617
|
+
function T({ x: B, y: F }, z) {
|
|
8618
8618
|
const { nodeLookup: k, nodeExtent: b, snapGrid: E, snapToGrid: _, nodeOrigin: M, onNodeDrag: A, onSelectionDrag: I, onError: R, updateNodePositions: V } = t();
|
|
8619
|
-
l = { x:
|
|
8619
|
+
l = { x: B, y: F };
|
|
8620
8620
|
let Z = !1, ee = { x: 0, y: 0, x2: 0, y2: 0 };
|
|
8621
8621
|
if (c.size > 1 && b) {
|
|
8622
8622
|
const oe = bo(c);
|
|
@@ -8625,7 +8625,7 @@ function Y9({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
8625
8625
|
for (const [oe, se] of c) {
|
|
8626
8626
|
if (!k.has(oe))
|
|
8627
8627
|
continue;
|
|
8628
|
-
let le = { x:
|
|
8628
|
+
let le = { x: B - se.distance.x, y: F - se.distance.y };
|
|
8629
8629
|
_ && (le = Vr(le, E));
|
|
8630
8630
|
let J = [
|
|
8631
8631
|
[b[0][0], b[0][1]],
|
|
@@ -8648,69 +8648,69 @@ function Y9({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
8648
8648
|
});
|
|
8649
8649
|
Z = Z || se.position.x !== ae.x || se.position.y !== ae.y, se.position = ae, se.internals.positionAbsolute = ye;
|
|
8650
8650
|
}
|
|
8651
|
-
if (Z && (V(c, !0),
|
|
8651
|
+
if (Z && (V(c, !0), z && (o || A || !v && I))) {
|
|
8652
8652
|
const [oe, se] = hs({
|
|
8653
8653
|
nodeId: v,
|
|
8654
8654
|
dragItems: c,
|
|
8655
8655
|
nodeLookup: k
|
|
8656
8656
|
});
|
|
8657
|
-
o == null || o(
|
|
8657
|
+
o == null || o(z, c, oe, se), A == null || A(z, oe, se), v || I == null || I(z, se);
|
|
8658
8658
|
}
|
|
8659
8659
|
}
|
|
8660
8660
|
async function L() {
|
|
8661
8661
|
if (!d)
|
|
8662
8662
|
return;
|
|
8663
|
-
const { transform:
|
|
8663
|
+
const { transform: B, panBy: F, autoPanSpeed: z, autoPanOnNodeDrag: k } = t();
|
|
8664
8664
|
if (!k) {
|
|
8665
8665
|
a = !1, cancelAnimationFrame(i);
|
|
8666
8666
|
return;
|
|
8667
8667
|
}
|
|
8668
|
-
const [b, E] = Ed(u, d,
|
|
8669
|
-
(b !== 0 || E !== 0) && (l.x = (l.x ?? 0) - b /
|
|
8668
|
+
const [b, E] = Ed(u, d, z);
|
|
8669
|
+
(b !== 0 || E !== 0) && (l.x = (l.x ?? 0) - b / B[2], l.y = (l.y ?? 0) - E / B[2], await F({ x: b, y: E }) && T(l, null)), i = requestAnimationFrame(L);
|
|
8670
8670
|
}
|
|
8671
|
-
function O(
|
|
8671
|
+
function O(B) {
|
|
8672
8672
|
var Z;
|
|
8673
|
-
const { nodeLookup: F, multiSelectionActive:
|
|
8674
|
-
f = !0, (!M || !y) && !
|
|
8675
|
-
const V = Un(
|
|
8673
|
+
const { nodeLookup: F, multiSelectionActive: z, nodesDraggable: k, transform: b, snapGrid: E, snapToGrid: _, selectNodesOnDrag: M, onNodeDragStart: A, onSelectionDragStart: I, unselectNodesAndEdges: R } = t();
|
|
8674
|
+
f = !0, (!M || !y) && !z && v && ((Z = F.get(v)) != null && Z.selected || R()), y && M && v && (e == null || e(v));
|
|
8675
|
+
const V = Un(B.sourceEvent, { transform: b, snapGrid: E, snapToGrid: _, containerBounds: d });
|
|
8676
8676
|
if (l = V, c = W9(F, k, V, v), c.size > 0 && (n || A || !v && I)) {
|
|
8677
8677
|
const [ee, oe] = hs({
|
|
8678
8678
|
nodeId: v,
|
|
8679
8679
|
dragItems: c,
|
|
8680
8680
|
nodeLookup: F
|
|
8681
8681
|
});
|
|
8682
|
-
n == null || n(
|
|
8682
|
+
n == null || n(B.sourceEvent, c, ee, oe), A == null || A(B.sourceEvent, ee, oe), v || I == null || I(B.sourceEvent, oe);
|
|
8683
8683
|
}
|
|
8684
8684
|
}
|
|
8685
|
-
const $ = ad().clickDistance(P).on("start", (
|
|
8686
|
-
const { domNode: F, nodeDragThreshold:
|
|
8687
|
-
d = (F == null ? void 0 : F.getBoundingClientRect()) || null, p = !1,
|
|
8688
|
-
}).on("drag", (
|
|
8689
|
-
const { autoPanOnNodeDrag: F, transform:
|
|
8690
|
-
if ((
|
|
8685
|
+
const $ = ad().clickDistance(P).on("start", (B) => {
|
|
8686
|
+
const { domNode: F, nodeDragThreshold: z, transform: k, snapGrid: b, snapToGrid: E } = t();
|
|
8687
|
+
d = (F == null ? void 0 : F.getBoundingClientRect()) || null, p = !1, z === 0 && O(B), l = Un(B.sourceEvent, { transform: k, snapGrid: b, snapToGrid: E, containerBounds: d }), u = jt(B.sourceEvent, d);
|
|
8688
|
+
}).on("drag", (B) => {
|
|
8689
|
+
const { autoPanOnNodeDrag: F, transform: z, snapGrid: k, snapToGrid: b, nodeDragThreshold: E, nodeLookup: _ } = t(), M = Un(B.sourceEvent, { transform: z, snapGrid: k, snapToGrid: b, containerBounds: d });
|
|
8690
|
+
if ((B.sourceEvent.type === "touchmove" && B.sourceEvent.touches.length > 1 || // if user deletes a node while dragging, we need to abort the drag to prevent errors
|
|
8691
8691
|
v && !_.has(v)) && (p = !0), !p) {
|
|
8692
8692
|
if (!a && F && f && (a = !0, L()), !f) {
|
|
8693
8693
|
const A = M.xSnapped - (l.x ?? 0), I = M.ySnapped - (l.y ?? 0);
|
|
8694
|
-
Math.sqrt(A * A + I * I) > E && O(
|
|
8694
|
+
Math.sqrt(A * A + I * I) > E && O(B);
|
|
8695
8695
|
}
|
|
8696
|
-
(l.x !== M.xSnapped || l.y !== M.ySnapped) && c && f && (u = jt(
|
|
8696
|
+
(l.x !== M.xSnapped || l.y !== M.ySnapped) && c && f && (u = jt(B.sourceEvent, d), T(M, B.sourceEvent));
|
|
8697
8697
|
}
|
|
8698
|
-
}).on("end", (
|
|
8698
|
+
}).on("end", (B) => {
|
|
8699
8699
|
if (!(!f || p) && (a = !1, f = !1, cancelAnimationFrame(i), c.size > 0)) {
|
|
8700
|
-
const { nodeLookup: F, updateNodePositions:
|
|
8701
|
-
if (
|
|
8700
|
+
const { nodeLookup: F, updateNodePositions: z, onNodeDragStop: k, onSelectionDragStop: b } = t();
|
|
8701
|
+
if (z(c, !1), s || k || !v && b) {
|
|
8702
8702
|
const [E, _] = hs({
|
|
8703
8703
|
nodeId: v,
|
|
8704
8704
|
dragItems: c,
|
|
8705
8705
|
nodeLookup: F,
|
|
8706
8706
|
dragging: !1
|
|
8707
8707
|
});
|
|
8708
|
-
s == null || s(
|
|
8708
|
+
s == null || s(B.sourceEvent, c, E, _), k == null || k(B.sourceEvent, E, _), v || b == null || b(B.sourceEvent, _);
|
|
8709
8709
|
}
|
|
8710
8710
|
}
|
|
8711
|
-
}).filter((
|
|
8712
|
-
const F =
|
|
8713
|
-
return !
|
|
8711
|
+
}).filter((B) => {
|
|
8712
|
+
const F = B.target;
|
|
8713
|
+
return !B.button && (!j || !oc(F, `.${j}`, C)) && (!w || oc(F, w, C));
|
|
8714
8714
|
});
|
|
8715
8715
|
h.call($);
|
|
8716
8716
|
}
|
|
@@ -8774,7 +8774,7 @@ const Zd = () => !0;
|
|
|
8774
8774
|
function q9(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: s, edgeUpdaterType: l, isTarget: i, domNode: c, nodeLookup: a, lib: u, autoPanOnConnect: d, flowId: f, panBy: h, cancelConnection: p, onConnectStart: g, onConnect: x, onConnectEnd: j, isValidConnection: w = Zd, onReconnectEnd: C, updateConnection: y, getTransform: v, getFromHandle: P, autoPanSpeed: T }) {
|
|
8775
8775
|
const L = Pd(e.target);
|
|
8776
8776
|
let O = 0, $;
|
|
8777
|
-
const { x:
|
|
8777
|
+
const { x: B, y: F } = jt(e), z = L == null ? void 0 : L.elementFromPoint(B, F), k = Hd(l, z), b = c == null ? void 0 : c.getBoundingClientRect();
|
|
8778
8778
|
if (!b || !k)
|
|
8779
8779
|
return;
|
|
8780
8780
|
const E = Fd(s, k, o, a, t);
|
|
@@ -9036,16 +9036,16 @@ function l7({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: o, translat
|
|
|
9036
9036
|
], s);
|
|
9037
9037
|
const g = p.on("wheel.zoom"), x = p.on("dblclick.zoom");
|
|
9038
9038
|
h.wheelDelta(Gd);
|
|
9039
|
-
function j(
|
|
9039
|
+
function j(z, k) {
|
|
9040
9040
|
return p ? new Promise((b) => {
|
|
9041
|
-
h == null || h.transform(gs(p, k == null ? void 0 : k.duration, () => b(!0)),
|
|
9041
|
+
h == null || h.transform(gs(p, k == null ? void 0 : k.duration, () => b(!0)), z);
|
|
9042
9042
|
}) : Promise.resolve(!1);
|
|
9043
9043
|
}
|
|
9044
|
-
function w({ noWheelClassName:
|
|
9044
|
+
function w({ noWheelClassName: z, noPanClassName: k, onPaneContextMenu: b, userSelectionActive: E, panOnScroll: _, panOnDrag: M, panOnScrollMode: A, panOnScrollSpeed: I, preventScrolling: R, zoomOnPinch: V, zoomOnScroll: Z, zoomOnDoubleClick: ee, zoomActivationKeyPressed: oe, lib: se, onTransformChange: le }) {
|
|
9045
9045
|
E && !d.isZoomingOrPanning && C();
|
|
9046
9046
|
const ae = _ && !oe && !E ? e7({
|
|
9047
9047
|
zoomPanValues: d,
|
|
9048
|
-
noWheelClassName:
|
|
9048
|
+
noWheelClassName: z,
|
|
9049
9049
|
d3Selection: p,
|
|
9050
9050
|
d3Zoom: h,
|
|
9051
9051
|
panOnScrollMode: A,
|
|
@@ -9055,7 +9055,7 @@ function l7({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: o, translat
|
|
|
9055
9055
|
onPanZoom: i,
|
|
9056
9056
|
onPanZoomEnd: a
|
|
9057
9057
|
}) : t7({
|
|
9058
|
-
noWheelClassName:
|
|
9058
|
+
noWheelClassName: z,
|
|
9059
9059
|
preventScrolling: R,
|
|
9060
9060
|
d3ZoomHandler: g
|
|
9061
9061
|
});
|
|
@@ -9093,7 +9093,7 @@ function l7({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: o, translat
|
|
|
9093
9093
|
zoomOnPinch: V,
|
|
9094
9094
|
userSelectionActive: E,
|
|
9095
9095
|
noPanClassName: k,
|
|
9096
|
-
noWheelClassName:
|
|
9096
|
+
noWheelClassName: z,
|
|
9097
9097
|
lib: se
|
|
9098
9098
|
});
|
|
9099
9099
|
h.filter(ye), ee ? p.on("dblclick.zoom", x) : p.on("dblclick.zoom", null);
|
|
@@ -9101,42 +9101,42 @@ function l7({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: o, translat
|
|
|
9101
9101
|
function C() {
|
|
9102
9102
|
h.on("zoom", null);
|
|
9103
9103
|
}
|
|
9104
|
-
async function y(
|
|
9105
|
-
const E = ps(
|
|
9104
|
+
async function y(z, k, b) {
|
|
9105
|
+
const E = ps(z), _ = h == null ? void 0 : h.constrain()(E, k, b);
|
|
9106
9106
|
return _ && await j(_), new Promise((M) => M(_));
|
|
9107
9107
|
}
|
|
9108
|
-
async function v(
|
|
9109
|
-
const b = ps(
|
|
9108
|
+
async function v(z, k) {
|
|
9109
|
+
const b = ps(z);
|
|
9110
9110
|
return await j(b, k), new Promise((E) => E(b));
|
|
9111
9111
|
}
|
|
9112
|
-
function P(
|
|
9112
|
+
function P(z) {
|
|
9113
9113
|
if (p) {
|
|
9114
|
-
const k = ps(
|
|
9115
|
-
(b.k !==
|
|
9114
|
+
const k = ps(z), b = p.property("__zoom");
|
|
9115
|
+
(b.k !== z.zoom || b.x !== z.x || b.y !== z.y) && (h == null || h.transform(p, k, null, { sync: !0 }));
|
|
9116
9116
|
}
|
|
9117
9117
|
}
|
|
9118
9118
|
function T() {
|
|
9119
|
-
const
|
|
9120
|
-
return { x:
|
|
9119
|
+
const z = p ? xd(p.node()) : { x: 0, y: 0, k: 1 };
|
|
9120
|
+
return { x: z.x, y: z.y, zoom: z.k };
|
|
9121
9121
|
}
|
|
9122
|
-
function L(
|
|
9122
|
+
function L(z, k) {
|
|
9123
9123
|
return p ? new Promise((b) => {
|
|
9124
|
-
h == null || h.scaleTo(gs(p, k == null ? void 0 : k.duration, () => b(!0)),
|
|
9124
|
+
h == null || h.scaleTo(gs(p, k == null ? void 0 : k.duration, () => b(!0)), z);
|
|
9125
9125
|
}) : Promise.resolve(!1);
|
|
9126
9126
|
}
|
|
9127
|
-
function O(
|
|
9127
|
+
function O(z, k) {
|
|
9128
9128
|
return p ? new Promise((b) => {
|
|
9129
|
-
h == null || h.scaleBy(gs(p, k == null ? void 0 : k.duration, () => b(!0)),
|
|
9129
|
+
h == null || h.scaleBy(gs(p, k == null ? void 0 : k.duration, () => b(!0)), z);
|
|
9130
9130
|
}) : Promise.resolve(!1);
|
|
9131
9131
|
}
|
|
9132
|
-
function $(
|
|
9133
|
-
h == null || h.scaleExtent(
|
|
9132
|
+
function $(z) {
|
|
9133
|
+
h == null || h.scaleExtent(z);
|
|
9134
9134
|
}
|
|
9135
|
-
function z
|
|
9136
|
-
h == null || h.translateExtent(
|
|
9135
|
+
function B(z) {
|
|
9136
|
+
h == null || h.translateExtent(z);
|
|
9137
9137
|
}
|
|
9138
|
-
function F(
|
|
9139
|
-
const k = !st(
|
|
9138
|
+
function F(z) {
|
|
9139
|
+
const k = !st(z) || z < 0 ? 0 : z;
|
|
9140
9140
|
h == null || h.clickDistance(k);
|
|
9141
9141
|
}
|
|
9142
9142
|
return {
|
|
@@ -9148,7 +9148,7 @@ function l7({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: o, translat
|
|
|
9148
9148
|
scaleTo: L,
|
|
9149
9149
|
scaleBy: O,
|
|
9150
9150
|
setScaleExtent: $,
|
|
9151
|
-
setTranslateExtent:
|
|
9151
|
+
setTranslateExtent: B,
|
|
9152
9152
|
syncViewport: P,
|
|
9153
9153
|
setClickDistance: F
|
|
9154
9154
|
};
|
|
@@ -9186,33 +9186,33 @@ function a7(e, t, n, o, s, l, i, c) {
|
|
|
9186
9186
|
let { affectsX: a, affectsY: u } = t;
|
|
9187
9187
|
const { isHorizontal: d, isVertical: f } = t, h = d && f, { xSnapped: p, ySnapped: g } = n, { minWidth: x, maxWidth: j, minHeight: w, maxHeight: C } = o, { x: y, y: v, width: P, height: T, aspectRatio: L } = e;
|
|
9188
9188
|
let O = Math.floor(d ? p - e.pointerX : 0), $ = Math.floor(f ? g - e.pointerY : 0);
|
|
9189
|
-
const
|
|
9190
|
-
let b = Io(
|
|
9189
|
+
const B = P + (a ? -O : O), F = T + (u ? -$ : $), z = -l[0] * P, k = -l[1] * T;
|
|
9190
|
+
let b = Io(B, x, j), E = Io(F, w, C);
|
|
9191
9191
|
if (i) {
|
|
9192
9192
|
let A = 0, I = 0;
|
|
9193
|
-
a && O < 0 ? A = Nt(y + O +
|
|
9193
|
+
a && O < 0 ? A = Nt(y + O + z, i[0][0]) : !a && O > 0 && (A = Tt(y + B + z, i[1][0])), u && $ < 0 ? I = Nt(v + $ + k, i[0][1]) : !u && $ > 0 && (I = Tt(v + F + k, i[1][1])), b = Math.max(b, A), E = Math.max(E, I);
|
|
9194
9194
|
}
|
|
9195
9195
|
if (c) {
|
|
9196
9196
|
let A = 0, I = 0;
|
|
9197
|
-
a && O > 0 ? A = Tt(y + O, c[0][0]) : !a && O < 0 && (A = Nt(y +
|
|
9197
|
+
a && O > 0 ? A = Tt(y + O, c[0][0]) : !a && O < 0 && (A = Nt(y + B, c[1][0])), u && $ > 0 ? I = Tt(v + $, c[0][1]) : !u && $ < 0 && (I = Nt(v + F, c[1][1])), b = Math.max(b, A), E = Math.max(E, I);
|
|
9198
9198
|
}
|
|
9199
9199
|
if (s) {
|
|
9200
9200
|
if (d) {
|
|
9201
|
-
const A = Io(
|
|
9201
|
+
const A = Io(B / L, w, C) * L;
|
|
9202
9202
|
if (b = Math.max(b, A), i) {
|
|
9203
9203
|
let I = 0;
|
|
9204
|
-
!a && !u || a && !u && h ? I = Tt(v + k +
|
|
9204
|
+
!a && !u || a && !u && h ? I = Tt(v + k + B / L, i[1][1]) * L : I = Nt(v + k + (a ? O : -O) / L, i[0][1]) * L, b = Math.max(b, I);
|
|
9205
9205
|
}
|
|
9206
9206
|
if (c) {
|
|
9207
9207
|
let I = 0;
|
|
9208
|
-
!a && !u || a && !u && h ? I = Nt(v +
|
|
9208
|
+
!a && !u || a && !u && h ? I = Nt(v + B / L, c[1][1]) * L : I = Tt(v + (a ? O : -O) / L, c[0][1]) * L, b = Math.max(b, I);
|
|
9209
9209
|
}
|
|
9210
9210
|
}
|
|
9211
9211
|
if (f) {
|
|
9212
9212
|
const A = Io(F * L, x, j) / L;
|
|
9213
9213
|
if (E = Math.max(E, A), i) {
|
|
9214
9214
|
let I = 0;
|
|
9215
|
-
!a && !u || u && !a && h ? I = Tt(y + F * L +
|
|
9215
|
+
!a && !u || u && !a && h ? I = Tt(y + F * L + z, i[1][0]) / L : I = Nt(y + (u ? $ : -$) * L + z, i[0][0]) / L, E = Math.max(E, I);
|
|
9216
9216
|
}
|
|
9217
9217
|
if (c) {
|
|
9218
9218
|
let I = 0;
|
|
@@ -9220,7 +9220,7 @@ function a7(e, t, n, o, s, l, i, c) {
|
|
|
9220
9220
|
}
|
|
9221
9221
|
}
|
|
9222
9222
|
}
|
|
9223
|
-
$ = $ + ($ < 0 ? E : -E), O = O + (O < 0 ? b : -b), s && (h ?
|
|
9223
|
+
$ = $ + ($ < 0 ? E : -E), O = O + (O < 0 ? b : -b), s && (h ? B > F * L ? $ = (rc(a, u) ? -O : O) / L : O = (rc(a, u) ? -$ : $) * L : d ? ($ = O / L, u = a) : (O = $ * L, a = u));
|
|
9224
9224
|
const _ = a ? y + O : y, M = u ? v + $ : v;
|
|
9225
9225
|
return {
|
|
9226
9226
|
width: P + (a ? -O : O),
|
|
@@ -9255,13 +9255,13 @@ function h7({ domNode: e, nodeId: t, getStoreItems: n, onChange: o, onEnd: s })
|
|
|
9255
9255
|
const w = c7(a);
|
|
9256
9256
|
let C, y = null, v = [], P, T, L;
|
|
9257
9257
|
const O = ad().on("start", ($) => {
|
|
9258
|
-
const { nodeLookup:
|
|
9259
|
-
if (C =
|
|
9258
|
+
const { nodeLookup: B, transform: F, snapGrid: z, snapToGrid: k, nodeOrigin: b, paneDomNode: E } = n();
|
|
9259
|
+
if (C = B.get(t), !C)
|
|
9260
9260
|
return;
|
|
9261
9261
|
y = (E == null ? void 0 : E.getBoundingClientRect()) ?? null;
|
|
9262
9262
|
const { xSnapped: _, ySnapped: M } = Un($.sourceEvent, {
|
|
9263
9263
|
transform: F,
|
|
9264
|
-
snapGrid:
|
|
9264
|
+
snapGrid: z,
|
|
9265
9265
|
snapToGrid: k,
|
|
9266
9266
|
containerBounds: y
|
|
9267
9267
|
});
|
|
@@ -9275,8 +9275,8 @@ function h7({ domNode: e, nodeId: t, getStoreItems: n, onChange: o, onEnd: s })
|
|
|
9275
9275
|
pointerX: _,
|
|
9276
9276
|
pointerY: M,
|
|
9277
9277
|
aspectRatio: x.width / x.height
|
|
9278
|
-
}, P = void 0, C.parentId && (C.extent === "parent" || C.expandParent) && (P =
|
|
9279
|
-
for (const [A, I] of
|
|
9278
|
+
}, P = void 0, C.parentId && (C.extent === "parent" || C.expandParent) && (P = B.get(C.parentId), T = P && C.extent === "parent" ? d7(P) : void 0), v = [], L = void 0;
|
|
9279
|
+
for (const [A, I] of B)
|
|
9280
9280
|
if (I.parentId === t && (v.push({
|
|
9281
9281
|
id: A,
|
|
9282
9282
|
position: { ...I.position },
|
|
@@ -9290,10 +9290,10 @@ function h7({ domNode: e, nodeId: t, getStoreItems: n, onChange: o, onEnd: s })
|
|
|
9290
9290
|
}
|
|
9291
9291
|
f == null || f($, { ...x });
|
|
9292
9292
|
}).on("drag", ($) => {
|
|
9293
|
-
const { transform:
|
|
9294
|
-
transform:
|
|
9293
|
+
const { transform: B, snapGrid: F, snapToGrid: z, nodeOrigin: k } = n(), b = Un($.sourceEvent, {
|
|
9294
|
+
transform: B,
|
|
9295
9295
|
snapGrid: F,
|
|
9296
|
-
snapToGrid:
|
|
9296
|
+
snapToGrid: z,
|
|
9297
9297
|
containerBounds: y
|
|
9298
9298
|
}), E = [];
|
|
9299
9299
|
if (!C)
|
|
@@ -9611,7 +9611,7 @@ const fc = (e, t) => {
|
|
|
9611
9611
|
const n = v7(e), o = (s, l = t) => Ud(n, s, l);
|
|
9612
9612
|
return Object.assign(o, n), o;
|
|
9613
9613
|
}, E7 = (e, t) => e ? fc(e, t) : fc;
|
|
9614
|
-
function
|
|
9614
|
+
function ze(e, t) {
|
|
9615
9615
|
if (Object.is(e, t))
|
|
9616
9616
|
return !0;
|
|
9617
9617
|
if (typeof e != "object" || e === null || typeof t != "object" || t === null)
|
|
@@ -9688,12 +9688,12 @@ const $7 = (e) => {
|
|
|
9688
9688
|
for (const [, o] of e.edgeLookup)
|
|
9689
9689
|
o.selected && n.push(o);
|
|
9690
9690
|
return { selectedNodes: t, selectedEdges: n };
|
|
9691
|
-
},
|
|
9692
|
-
function
|
|
9693
|
-
return
|
|
9691
|
+
}, Bo = (e) => e.id;
|
|
9692
|
+
function B7(e, t) {
|
|
9693
|
+
return ze(e.selectedNodes.map(Bo), t.selectedNodes.map(Bo)) && ze(e.selectedEdges.map(Bo), t.selectedEdges.map(Bo));
|
|
9694
9694
|
}
|
|
9695
|
-
function
|
|
9696
|
-
const t = Ie(), { selectedNodes: n, selectedEdges: o } = Ce($7,
|
|
9695
|
+
function z7({ onSelectionChange: e }) {
|
|
9696
|
+
const t = Ie(), { selectedNodes: n, selectedEdges: o } = Ce($7, B7);
|
|
9697
9697
|
return q(() => {
|
|
9698
9698
|
const s = { nodes: n, edges: o };
|
|
9699
9699
|
e == null || e(s), t.getState().onSelectionChangeHandlers.forEach((l) => l(s));
|
|
@@ -9702,7 +9702,7 @@ function B7({ onSelectionChange: e }) {
|
|
|
9702
9702
|
const O7 = (e) => !!e.onSelectionChangeHandlers;
|
|
9703
9703
|
function R7({ onSelectionChange: e }) {
|
|
9704
9704
|
const t = Ce(O7);
|
|
9705
|
-
return e || t ? r.jsx(
|
|
9705
|
+
return e || t ? r.jsx(z7, { onSelectionChange: e }) : null;
|
|
9706
9706
|
}
|
|
9707
9707
|
const ef = [0, 0], D7 = { x: 0, y: 0, zoom: 1 }, V7 = [
|
|
9708
9708
|
"nodes",
|
|
@@ -9786,7 +9786,7 @@ const ef = [0, 0], D7 = { x: 0, y: 0, zoom: 1 }, V7 = [
|
|
|
9786
9786
|
paneClickDistance: 0
|
|
9787
9787
|
};
|
|
9788
9788
|
function H7(e) {
|
|
9789
|
-
const { setNodes: t, setEdges: n, setMinZoom: o, setMaxZoom: s, setTranslateExtent: l, setNodeExtent: i, reset: c, setDefaultNodesAndEdges: a, setPaneClickDistance: u } = Ce(F7,
|
|
9789
|
+
const { setNodes: t, setEdges: n, setMinZoom: o, setMaxZoom: s, setTranslateExtent: l, setNodeExtent: i, reset: c, setDefaultNodesAndEdges: a, setPaneClickDistance: u } = Ce(F7, ze), d = Ie();
|
|
9790
9790
|
q(() => (a(e.defaultNodes, e.defaultEdges), () => {
|
|
9791
9791
|
f.current = gc, c();
|
|
9792
9792
|
}), []);
|
|
@@ -10256,9 +10256,9 @@ const Wr = {
|
|
|
10256
10256
|
lib: e.lib
|
|
10257
10257
|
});
|
|
10258
10258
|
function r8({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: o = !1, panOnScrollSpeed: s = 0.5, panOnScrollMode: l = qt.Free, zoomOnDoubleClick: i = !0, panOnDrag: c = !0, defaultViewport: a, translateExtent: u, minZoom: d, maxZoom: f, zoomActivationKeyCode: h, preventScrolling: p = !0, children: g, noWheelClassName: x, noPanClassName: j, onViewportChange: w, isControlledViewport: C, paneClickDistance: y }) {
|
|
10259
|
-
const v = Ie(), P = te(null), { userSelectionActive: T, lib: L } = Ce(o8,
|
|
10259
|
+
const v = Ie(), P = te(null), { userSelectionActive: T, lib: L } = Ce(o8, ze), O = io(h), $ = te();
|
|
10260
10260
|
n8(P);
|
|
10261
|
-
const
|
|
10261
|
+
const B = D((F) => {
|
|
10262
10262
|
w == null || w({ x: F[0], y: F[1], zoom: F[2] }), C || v.setState({ transform: F });
|
|
10263
10263
|
}, [w, C]);
|
|
10264
10264
|
return q(() => {
|
|
@@ -10284,10 +10284,10 @@ function r8({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, p
|
|
|
10284
10284
|
M == null || M(b, E), _ == null || _(E);
|
|
10285
10285
|
}
|
|
10286
10286
|
});
|
|
10287
|
-
const { x: F, y:
|
|
10287
|
+
const { x: F, y: z, zoom: k } = $.current.getViewport();
|
|
10288
10288
|
return v.setState({
|
|
10289
10289
|
panZoom: $.current,
|
|
10290
|
-
transform: [F,
|
|
10290
|
+
transform: [F, z, k],
|
|
10291
10291
|
domNode: P.current.closest(".react-flow")
|
|
10292
10292
|
}), () => {
|
|
10293
10293
|
var b;
|
|
@@ -10311,7 +10311,7 @@ function r8({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, p
|
|
|
10311
10311
|
userSelectionActive: T,
|
|
10312
10312
|
noWheelClassName: x,
|
|
10313
10313
|
lib: L,
|
|
10314
|
-
onTransformChange:
|
|
10314
|
+
onTransformChange: B
|
|
10315
10315
|
});
|
|
10316
10316
|
}, [
|
|
10317
10317
|
e,
|
|
@@ -10328,7 +10328,7 @@ function r8({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, p
|
|
|
10328
10328
|
T,
|
|
10329
10329
|
x,
|
|
10330
10330
|
L,
|
|
10331
|
-
|
|
10331
|
+
B
|
|
10332
10332
|
]), r.jsx("div", { className: "react-flow__renderer", ref: P, style: Wr, children: g });
|
|
10333
10333
|
}
|
|
10334
10334
|
const s8 = (e) => ({
|
|
@@ -10336,7 +10336,7 @@ const s8 = (e) => ({
|
|
|
10336
10336
|
userSelectionRect: e.userSelectionRect
|
|
10337
10337
|
});
|
|
10338
10338
|
function l8() {
|
|
10339
|
-
const { userSelectionActive: e, userSelectionRect: t } = Ce(s8,
|
|
10339
|
+
const { userSelectionActive: e, userSelectionRect: t } = Ce(s8, ze);
|
|
10340
10340
|
return e && t ? r.jsx("div", { className: "react-flow__selection react-flow__container", style: {
|
|
10341
10341
|
width: t.width,
|
|
10342
10342
|
height: t.height,
|
|
@@ -10352,7 +10352,7 @@ const ws = (e, t) => (n) => {
|
|
|
10352
10352
|
dragging: e.paneDragging
|
|
10353
10353
|
});
|
|
10354
10354
|
function c8({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = bn.Full, panOnDrag: o, selectionOnDrag: s, onSelectionStart: l, onSelectionEnd: i, onPaneClick: c, onPaneContextMenu: a, onPaneScroll: u, onPaneMouseEnter: d, onPaneMouseMove: f, onPaneMouseLeave: h, children: p }) {
|
|
10355
|
-
const g = Ie(), { userSelectionActive: x, elementsSelectable: j, dragging: w, connectionInProgress: C } = Ce(i8,
|
|
10355
|
+
const g = Ie(), { userSelectionActive: x, elementsSelectable: j, dragging: w, connectionInProgress: C } = Ce(i8, ze), y = j && (e || x), v = te(null), P = te(), T = te(/* @__PURE__ */ new Set()), L = te(/* @__PURE__ */ new Set()), O = te(!1), $ = te(!1), B = (M) => {
|
|
10356
10356
|
if (O.current || C) {
|
|
10357
10357
|
O.current = !1;
|
|
10358
10358
|
return;
|
|
@@ -10364,7 +10364,7 @@ function c8({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = bn.Full
|
|
|
10364
10364
|
return;
|
|
10365
10365
|
}
|
|
10366
10366
|
a == null || a(M);
|
|
10367
|
-
},
|
|
10367
|
+
}, z = u ? (M) => u(M) : void 0, k = (M) => {
|
|
10368
10368
|
var Z, ee;
|
|
10369
10369
|
const { resetSelectedElements: A, domNode: I } = g.getState();
|
|
10370
10370
|
if (P.current = I == null ? void 0 : I.getBoundingClientRect(), !j || !e || M.button !== 0 || M.target !== v.current || !P.current)
|
|
@@ -10423,13 +10423,13 @@ function c8({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = bn.Full
|
|
|
10423
10423
|
return;
|
|
10424
10424
|
(R = (I = M.target) == null ? void 0 : I.releasePointerCapture) == null || R.call(I, M.pointerId);
|
|
10425
10425
|
const { userSelectionRect: A } = g.getState();
|
|
10426
|
-
!x && A && M.target === v.current && (
|
|
10426
|
+
!x && A && M.target === v.current && (B == null || B(M)), g.setState({
|
|
10427
10427
|
userSelectionActive: !1,
|
|
10428
10428
|
userSelectionRect: null,
|
|
10429
10429
|
nodesSelectionActive: T.current.size > 0
|
|
10430
10430
|
}), i == null || i(M), (t || s) && (O.current = !1), $.current = !1;
|
|
10431
10431
|
}, _ = o === !0 || Array.isArray(o) && o.includes(0);
|
|
10432
|
-
return r.jsxs("div", { className: Re(["react-flow__pane", { draggable: _, dragging: w, selection: e }]), onClick: y ? void 0 : ws(
|
|
10432
|
+
return r.jsxs("div", { className: Re(["react-flow__pane", { draggable: _, dragging: w, selection: e }]), onClick: y ? void 0 : ws(B, v), onContextMenu: ws(F, v), onWheel: ws(z, v), onPointerEnter: y ? void 0 : d, onPointerDown: y ? k : f, onPointerMove: y ? b : f, onPointerUp: y ? E : void 0, onPointerLeave: h, ref: v, style: Wr, children: [p, r.jsx(l8, {})] });
|
|
10433
10433
|
}
|
|
10434
10434
|
function Gs({ id: e, store: t, unselect: n = !1, nodeRef: o }) {
|
|
10435
10435
|
const { addSelectedNodes: s, unselectNodesAndEdges: l, multiSelectionActive: i, nodeLookup: c, onError: a } = t.getState(), u = c.get(e);
|
|
@@ -10525,16 +10525,16 @@ const af = () => uo(Kl), d8 = (e) => ({
|
|
|
10525
10525
|
};
|
|
10526
10526
|
function h8({ type: e = "source", position: t = U.Top, isValidConnection: n, isConnectable: o = !0, isConnectableStart: s = !0, isConnectableEnd: l = !0, id: i, onConnect: c, children: a, className: u, onMouseDown: d, onTouchStart: f, ...h }, p) {
|
|
10527
10527
|
var E, _;
|
|
10528
|
-
const g = i || null, x = e === "target", j = Ie(), w = af(), { connectOnClick: C, noPanClassName: y, rfId: v } = Ce(d8,
|
|
10528
|
+
const g = i || null, x = e === "target", j = Ie(), w = af(), { connectOnClick: C, noPanClassName: y, rfId: v } = Ce(d8, ze), { connectingFrom: P, connectingTo: T, clickConnecting: L, isPossibleEndHandle: O, connectionInProcess: $, clickConnectionInProcess: B, valid: F } = Ce(f8(w, g, e), ze);
|
|
10529
10529
|
w || (_ = (E = j.getState()).onError) == null || _.call(E, "010", Ye.error010());
|
|
10530
|
-
const
|
|
10530
|
+
const z = (M) => {
|
|
10531
10531
|
const { defaultEdgeOptions: A, onConnect: I, hasDefaultEdges: R } = j.getState(), V = {
|
|
10532
10532
|
...A,
|
|
10533
10533
|
...M
|
|
10534
10534
|
};
|
|
10535
10535
|
if (R) {
|
|
10536
10536
|
const { edges: Z, setEdges: ee } = j.getState();
|
|
10537
|
-
ee(
|
|
10537
|
+
ee(zd(V, Z));
|
|
10538
10538
|
}
|
|
10539
10539
|
I == null || I(V), c == null || c(V);
|
|
10540
10540
|
}, k = (M) => {
|
|
@@ -10559,7 +10559,7 @@ function h8({ type: e = "source", position: t = U.Top, isValidConnection: n, isC
|
|
|
10559
10559
|
onConnectStart: I.onConnectStart,
|
|
10560
10560
|
onConnectEnd: I.onConnectEnd,
|
|
10561
10561
|
updateConnection: I.updateConnection,
|
|
10562
|
-
onConnect:
|
|
10562
|
+
onConnect: z,
|
|
10563
10563
|
isValidConnection: n || I.isValidConnection,
|
|
10564
10564
|
getTransform: () => j.getState().transform,
|
|
10565
10565
|
getFromHandle: () => j.getState().connection.fromHandle,
|
|
@@ -10591,7 +10591,7 @@ function h8({ type: e = "source", position: t = U.Top, isValidConnection: n, isC
|
|
|
10591
10591
|
lib: ee,
|
|
10592
10592
|
nodeLookup: se
|
|
10593
10593
|
});
|
|
10594
|
-
Pe && ye &&
|
|
10594
|
+
Pe && ye && z(ye);
|
|
10595
10595
|
const ge = structuredClone(le);
|
|
10596
10596
|
delete ge.inProgress, ge.toPosition = ge.toHandle ? ge.toHandle.position : null, I == null || I(M, ge), j.setState({ connectionClickStartHandle: null });
|
|
10597
10597
|
};
|
|
@@ -10615,7 +10615,7 @@ function h8({ type: e = "source", position: t = U.Top, isValidConnection: n, isC
|
|
|
10615
10615
|
* shows where you can start a connection from
|
|
10616
10616
|
* and where you can end it while connecting
|
|
10617
10617
|
*/
|
|
10618
|
-
connectionindicator: o && (!$ || O) && ($ ||
|
|
10618
|
+
connectionindicator: o && (!$ || O) && ($ || B ? l : s)
|
|
10619
10619
|
}
|
|
10620
10620
|
]), onMouseDown: k, onTouchStart: k, onClick: C ? b : void 0, ref: p, ...h, children: a });
|
|
10621
10621
|
}
|
|
@@ -10665,7 +10665,7 @@ const j8 = (e) => {
|
|
|
10665
10665
|
};
|
|
10666
10666
|
};
|
|
10667
10667
|
function w8({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y: n }) {
|
|
10668
|
-
const o = Ie(), { width: s, height: l, transformString: i, userSelectionActive: c } = Ce(j8,
|
|
10668
|
+
const o = Ie(), { width: s, height: l, transformString: i, userSelectionActive: c } = Ce(j8, ze), a = cf(), u = te(null);
|
|
10669
10669
|
if (q(() => {
|
|
10670
10670
|
var h;
|
|
10671
10671
|
n || (h = u.current) == null || h.focus({
|
|
@@ -10692,14 +10692,14 @@ function w8({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y:
|
|
|
10692
10692
|
} }) });
|
|
10693
10693
|
}
|
|
10694
10694
|
const Ec = typeof window < "u" ? window : void 0, b8 = (e) => ({ nodesSelectionActive: e.nodesSelectionActive, userSelectionActive: e.userSelectionActive });
|
|
10695
|
-
function uf({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: o, onPaneMouseLeave: s, onPaneContextMenu: l, onPaneScroll: i, paneClickDistance: c, deleteKeyCode: a, selectionKeyCode: u, selectionOnDrag: d, selectionMode: f, onSelectionStart: h, onSelectionEnd: p, multiSelectionKeyCode: g, panActivationKeyCode: x, zoomActivationKeyCode: j, elementsSelectable: w, zoomOnScroll: C, zoomOnPinch: y, panOnScroll: v, panOnScrollSpeed: P, panOnScrollMode: T, zoomOnDoubleClick: L, panOnDrag: O, defaultViewport: $, translateExtent:
|
|
10695
|
+
function uf({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: o, onPaneMouseLeave: s, onPaneContextMenu: l, onPaneScroll: i, paneClickDistance: c, deleteKeyCode: a, selectionKeyCode: u, selectionOnDrag: d, selectionMode: f, onSelectionStart: h, onSelectionEnd: p, multiSelectionKeyCode: g, panActivationKeyCode: x, zoomActivationKeyCode: j, elementsSelectable: w, zoomOnScroll: C, zoomOnPinch: y, panOnScroll: v, panOnScrollSpeed: P, panOnScrollMode: T, zoomOnDoubleClick: L, panOnDrag: O, defaultViewport: $, translateExtent: B, minZoom: F, maxZoom: z, preventScrolling: k, onSelectionContextMenu: b, noWheelClassName: E, noPanClassName: _, disableKeyboardA11y: M, onViewportChange: A, isControlledViewport: I }) {
|
|
10696
10696
|
const { nodesSelectionActive: R, userSelectionActive: V } = Ce(b8), Z = io(u, { target: Ec }), ee = io(x, { target: Ec }), oe = ee || O, se = ee || v, le = d && oe !== !0, J = Z || V || le;
|
|
10697
|
-
return t8({ deleteKeyCode: a, multiSelectionKeyCode: g }), r.jsx(r8, { onPaneContextMenu: l, elementsSelectable: w, zoomOnScroll: C, zoomOnPinch: y, panOnScroll: se, panOnScrollSpeed: P, panOnScrollMode: T, zoomOnDoubleClick: L, panOnDrag: !Z && oe, defaultViewport: $, translateExtent:
|
|
10697
|
+
return t8({ deleteKeyCode: a, multiSelectionKeyCode: g }), r.jsx(r8, { onPaneContextMenu: l, elementsSelectable: w, zoomOnScroll: C, zoomOnPinch: y, panOnScroll: se, panOnScrollSpeed: P, panOnScrollMode: T, zoomOnDoubleClick: L, panOnDrag: !Z && oe, defaultViewport: $, translateExtent: B, minZoom: F, maxZoom: z, zoomActivationKeyCode: j, preventScrolling: k, noWheelClassName: E, noPanClassName: _, onViewportChange: A, isControlledViewport: I, paneClickDistance: c, children: r.jsxs(c8, { onSelectionStart: h, onSelectionEnd: p, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: o, onPaneMouseLeave: s, onPaneContextMenu: l, onPaneScroll: i, panOnDrag: oe, isSelecting: !!J, selectionMode: f, selectionKeyPressed: Z, selectionOnDrag: le, children: [e, R && r.jsx(w8, { onSelectionContextMenu: b, noPanClassName: _, disableKeyboardA11y: M })] }) });
|
|
10698
10698
|
}
|
|
10699
10699
|
uf.displayName = "FlowRenderer";
|
|
10700
10700
|
const v8 = Te(uf), S8 = (e) => (t) => e ? Sd(t.nodeLookup, { x: 0, y: 0, width: t.width, height: t.height }, t.transform, !0).map((n) => n.id) : Array.from(t.nodeLookup.keys());
|
|
10701
10701
|
function C8(e) {
|
|
10702
|
-
return Ce(D(S8(e), [e]),
|
|
10702
|
+
return Ce(D(S8(e), [e]), ze);
|
|
10703
10703
|
}
|
|
10704
10704
|
const _8 = (e) => e.updateNodeInternals;
|
|
10705
10705
|
function E8() {
|
|
@@ -10739,10 +10739,10 @@ function k8({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
|
|
|
10739
10739
|
internals: ae.internals,
|
|
10740
10740
|
isParent: ye
|
|
10741
10741
|
};
|
|
10742
|
-
},
|
|
10742
|
+
}, ze);
|
|
10743
10743
|
let T = y.type || "default", L = (j == null ? void 0 : j[T]) || _c[T];
|
|
10744
10744
|
L === void 0 && (C == null || C("003", Ye.error003(T)), T = "default", L = _c.default);
|
|
10745
|
-
const O = !!(y.draggable || c && typeof y.draggable > "u"), $ = !!(y.selectable || a && typeof y.selectable > "u"),
|
|
10745
|
+
const O = !!(y.draggable || c && typeof y.draggable > "u"), $ = !!(y.selectable || a && typeof y.selectable > "u"), B = !!(y.connectable || u && typeof y.connectable > "u"), F = !!(y.focusable || d && typeof y.focusable > "u"), z = Ie(), k = kd(y), b = M8({ node: y, nodeType: T, hasDimensions: k, resizeObserver: f }), E = lf({
|
|
10746
10746
|
nodeRef: b,
|
|
10747
10747
|
disabled: y.hidden || !O,
|
|
10748
10748
|
noDragClassName: h,
|
|
@@ -10754,10 +10754,10 @@ function k8({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
|
|
|
10754
10754
|
if (y.hidden)
|
|
10755
10755
|
return null;
|
|
10756
10756
|
const M = Lt(y), A = y8(y), I = $ || O || t || n || o || s, R = n ? (J) => n(J, { ...v.userNode }) : void 0, V = o ? (J) => o(J, { ...v.userNode }) : void 0, Z = s ? (J) => s(J, { ...v.userNode }) : void 0, ee = l ? (J) => l(J, { ...v.userNode }) : void 0, oe = i ? (J) => i(J, { ...v.userNode }) : void 0, se = (J) => {
|
|
10757
|
-
const { selectNodesOnDrag: ae, nodeDragThreshold: ye } =
|
|
10757
|
+
const { selectNodesOnDrag: ae, nodeDragThreshold: ye } = z.getState();
|
|
10758
10758
|
$ && (!ae || !O || ye > 0) && Gs({
|
|
10759
10759
|
id: e,
|
|
10760
|
-
store:
|
|
10760
|
+
store: z,
|
|
10761
10761
|
nodeRef: b
|
|
10762
10762
|
}), t && t(J, { ...v.userNode });
|
|
10763
10763
|
}, le = (J) => {
|
|
@@ -10766,11 +10766,11 @@ function k8({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
|
|
|
10766
10766
|
const ae = J.key === "Escape";
|
|
10767
10767
|
Gs({
|
|
10768
10768
|
id: e,
|
|
10769
|
-
store:
|
|
10769
|
+
store: z,
|
|
10770
10770
|
unselect: ae,
|
|
10771
10771
|
nodeRef: b
|
|
10772
10772
|
});
|
|
10773
|
-
} else O && y.selected && Object.prototype.hasOwnProperty.call(mr, J.key) && (J.preventDefault(),
|
|
10773
|
+
} else O && y.selected && Object.prototype.hasOwnProperty.call(mr, J.key) && (J.preventDefault(), z.setState({
|
|
10774
10774
|
ariaLiveMessage: `Moved selected node ${J.key.replace("Arrow", "").toLowerCase()}. New position, x: ${~~v.positionAbsolute.x}, y: ${~~v.positionAbsolute.y}`
|
|
10775
10775
|
}), _({
|
|
10776
10776
|
direction: mr[J.key],
|
|
@@ -10799,7 +10799,7 @@ function k8({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
|
|
|
10799
10799
|
visibility: k ? "visible" : "hidden",
|
|
10800
10800
|
...y.style,
|
|
10801
10801
|
...A
|
|
10802
|
-
}, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: R, onMouseMove: V, onMouseLeave: Z, onContextMenu: ee, onClick: se, onDoubleClick: oe, onKeyDown: F ? le : void 0, tabIndex: F ? 0 : void 0, role: F ? "button" : void 0, "aria-describedby": g ? void 0 : `${Qd}-${x}`, "aria-label": y.ariaLabel, children: r.jsx(u8, { value: e, children: r.jsx(L, { id: e, data: y.data, type: T, positionAbsoluteX: v.positionAbsolute.x, positionAbsoluteY: v.positionAbsolute.y, selected: y.selected ?? !1, selectable: $, draggable: O, deletable: y.deletable ?? !0, isConnectable:
|
|
10802
|
+
}, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: R, onMouseMove: V, onMouseLeave: Z, onContextMenu: ee, onClick: se, onDoubleClick: oe, onKeyDown: F ? le : void 0, tabIndex: F ? 0 : void 0, role: F ? "button" : void 0, "aria-describedby": g ? void 0 : `${Qd}-${x}`, "aria-label": y.ariaLabel, children: r.jsx(u8, { value: e, children: r.jsx(L, { id: e, data: y.data, type: T, positionAbsoluteX: v.positionAbsolute.x, positionAbsoluteY: v.positionAbsolute.y, selected: y.selected ?? !1, selectable: $, draggable: O, deletable: y.deletable ?? !0, isConnectable: B, sourcePosition: y.sourcePosition, targetPosition: y.targetPosition, dragging: E, dragHandle: y.dragHandle, zIndex: v.z, parentId: y.parentId, ...M }) }) });
|
|
10803
10803
|
}
|
|
10804
10804
|
const L8 = (e) => ({
|
|
10805
10805
|
nodesDraggable: e.nodesDraggable,
|
|
@@ -10809,7 +10809,7 @@ const L8 = (e) => ({
|
|
|
10809
10809
|
onError: e.onError
|
|
10810
10810
|
});
|
|
10811
10811
|
function df(e) {
|
|
10812
|
-
const { nodesDraggable: t, nodesConnectable: n, nodesFocusable: o, elementsSelectable: s, onError: l } = Ce(L8,
|
|
10812
|
+
const { nodesDraggable: t, nodesConnectable: n, nodesFocusable: o, elementsSelectable: s, onError: l } = Ce(L8, ze), i = C8(e.onlyRenderVisibleElements), c = E8();
|
|
10813
10813
|
return r.jsx("div", { className: "react-flow__nodes", style: Wr, children: i.map((a) => (
|
|
10814
10814
|
/*
|
|
10815
10815
|
* The split of responsibilities between NodeRenderer and
|
|
@@ -10858,7 +10858,7 @@ function N8(e) {
|
|
|
10858
10858
|
}) && o.push(s.id);
|
|
10859
10859
|
}
|
|
10860
10860
|
return o;
|
|
10861
|
-
}, [e]),
|
|
10861
|
+
}, [e]), ze);
|
|
10862
10862
|
}
|
|
10863
10863
|
const T8 = ({ color: e = "none", strokeWidth: t = 1 }) => r.jsx("polyline", { style: {
|
|
10864
10864
|
stroke: e,
|
|
@@ -10891,7 +10891,7 @@ const $8 = ({ id: e, type: t, color: n, width: o = 12.5, height: s = 12.5, marke
|
|
|
10891
10891
|
return s.length ? r.jsx("svg", { className: "react-flow__marker", children: r.jsx("defs", { children: s.map((l) => r.jsx($8, { id: l.id, type: l.type, color: l.color, width: l.width, height: l.height, markerUnits: l.markerUnits, strokeWidth: l.strokeWidth, orient: l.orient }, l.id)) }) }) : null;
|
|
10892
10892
|
};
|
|
10893
10893
|
ff.displayName = "MarkerDefinitions";
|
|
10894
|
-
var
|
|
10894
|
+
var B8 = Te(ff);
|
|
10895
10895
|
function hf({ x: e, y: t, label: n, labelStyle: o, labelShowBg: s = !0, labelBgStyle: l, labelBgPadding: i = [2, 4], labelBgBorderRadius: c = 2, children: a, className: u, ...d }) {
|
|
10896
10896
|
const [f, h] = xe({ x: 1, y: 0, width: 0, height: 0 }), p = Re(["react-flow__edge-textwrapper", u]), g = te(null);
|
|
10897
10897
|
return q(() => {
|
|
@@ -10907,9 +10907,9 @@ function hf({ x: e, y: t, label: n, labelStyle: o, labelShowBg: s = !0, labelBgS
|
|
|
10907
10907
|
}, [n]), n ? r.jsxs("g", { transform: `translate(${e - f.width / 2} ${t - f.height / 2})`, className: p, visibility: f.width ? "visible" : "hidden", ...d, children: [s && r.jsx("rect", { width: f.width + 2 * i[0], x: -i[0], y: -i[1], height: f.height + 2 * i[1], className: "react-flow__edge-textbg", style: l, rx: c, ry: c }), r.jsx("text", { className: "react-flow__edge-text", y: f.height / 2, dy: "0.3em", ref: g, style: o, children: n }), a] }) : null;
|
|
10908
10908
|
}
|
|
10909
10909
|
hf.displayName = "EdgeText";
|
|
10910
|
-
const
|
|
10910
|
+
const z8 = Te(hf);
|
|
10911
10911
|
function lt({ path: e, labelX: t, labelY: n, label: o, labelStyle: s, labelShowBg: l, labelBgStyle: i, labelBgPadding: c, labelBgBorderRadius: a, interactionWidth: u = 20, ...d }) {
|
|
10912
|
-
return r.jsxs(r.Fragment, { children: [r.jsx("path", { ...d, d: e, fill: "none", className: Re(["react-flow__edge-path", d.className]) }), u && r.jsx("path", { d: e, fill: "none", strokeOpacity: 0, strokeWidth: u, className: "react-flow__edge-interaction" }), o && st(t) && st(n) ? r.jsx(
|
|
10912
|
+
return r.jsxs(r.Fragment, { children: [r.jsx("path", { ...d, d: e, fill: "none", className: Re(["react-flow__edge-path", d.className]) }), u && r.jsx("path", { d: e, fill: "none", strokeOpacity: 0, strokeWidth: u, className: "react-flow__edge-interaction" }), o && st(t) && st(n) ? r.jsx(z8, { x: t, y: n, label: o, labelStyle: s, labelShowBg: l, labelBgStyle: i, labelBgPadding: c, labelBgBorderRadius: a }) : null] });
|
|
10913
10913
|
}
|
|
10914
10914
|
function kc({ pos: e, x1: t, y1: n, x2: o, y2: s }) {
|
|
10915
10915
|
return e === U.Left || e === U.Right ? [0.5 * (t + o), n] : [t, 0.5 * (n + s)];
|
|
@@ -11039,7 +11039,7 @@ function Z8({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: o, sourc
|
|
|
11039
11039
|
const g = Ie(), x = (v, P) => {
|
|
11040
11040
|
if (v.button !== 0)
|
|
11041
11041
|
return;
|
|
11042
|
-
const { autoPanOnConnect: T, domNode: L, isValidConnection: O, connectionMode: $, connectionRadius:
|
|
11042
|
+
const { autoPanOnConnect: T, domNode: L, isValidConnection: O, connectionMode: $, connectionRadius: B, lib: F, onConnectStart: z, onConnectEnd: k, cancelConnection: b, nodeLookup: E, rfId: _, panBy: M, updateConnection: A } = g.getState(), I = P.type === "target";
|
|
11043
11043
|
h(!0), d == null || d(v, n, P.type);
|
|
11044
11044
|
const R = (Z, ee) => {
|
|
11045
11045
|
h(!1), f == null || f(Z, n, P.type, ee);
|
|
@@ -11047,7 +11047,7 @@ function Z8({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: o, sourc
|
|
|
11047
11047
|
Ys.onPointerDown(v.nativeEvent, {
|
|
11048
11048
|
autoPanOnConnect: T,
|
|
11049
11049
|
connectionMode: $,
|
|
11050
|
-
connectionRadius:
|
|
11050
|
+
connectionRadius: B,
|
|
11051
11051
|
domNode: L,
|
|
11052
11052
|
handleId: P.id,
|
|
11053
11053
|
nodeId: P.nodeId,
|
|
@@ -11060,7 +11060,7 @@ function Z8({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: o, sourc
|
|
|
11060
11060
|
panBy: M,
|
|
11061
11061
|
isValidConnection: O,
|
|
11062
11062
|
onConnect: V,
|
|
11063
|
-
onConnectStart:
|
|
11063
|
+
onConnectStart: z,
|
|
11064
11064
|
onConnectEnd: k,
|
|
11065
11065
|
onReconnectEnd: R,
|
|
11066
11066
|
updateConnection: A,
|
|
@@ -11076,14 +11076,14 @@ function W8({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
11076
11076
|
y = v ? { ...v, ...y } : y;
|
|
11077
11077
|
let P = y.type || "default", T = (x == null ? void 0 : x[P]) || Lc[P];
|
|
11078
11078
|
T === void 0 && (w == null || w("011", Ye.error011(P)), P = "default", T = Lc.default);
|
|
11079
|
-
const L = !!(y.focusable || t && typeof y.focusable > "u"), O = typeof f < "u" && (y.reconnectable || n && typeof y.reconnectable > "u"), $ = !!(y.selectable || o && typeof y.selectable > "u"),
|
|
11079
|
+
const L = !!(y.focusable || t && typeof y.focusable > "u"), O = typeof f < "u" && (y.reconnectable || n && typeof y.reconnectable > "u"), $ = !!(y.selectable || o && typeof y.selectable > "u"), B = te(null), [F, z] = xe(!1), [k, b] = xe(!1), E = Ie(), { zIndex: _, sourceX: M, sourceY: A, targetX: I, targetY: R, sourcePosition: V, targetPosition: Z } = Ce(D((Y) => {
|
|
11080
11080
|
const fe = Y.nodeLookup.get(y.source), he = Y.nodeLookup.get(y.target);
|
|
11081
11081
|
if (!fe || !he)
|
|
11082
11082
|
return {
|
|
11083
11083
|
zIndex: y.zIndex,
|
|
11084
11084
|
...Pc
|
|
11085
11085
|
};
|
|
11086
|
-
const Ne =
|
|
11086
|
+
const Ne = z9({
|
|
11087
11087
|
id: e,
|
|
11088
11088
|
sourceNode: fe,
|
|
11089
11089
|
targetNode: he,
|
|
@@ -11102,13 +11102,13 @@ function W8({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
11102
11102
|
}),
|
|
11103
11103
|
...Ne || Pc
|
|
11104
11104
|
};
|
|
11105
|
-
}, [y.source, y.target, y.sourceHandle, y.targetHandle, y.selected, y.zIndex]),
|
|
11105
|
+
}, [y.source, y.target, y.sourceHandle, y.targetHandle, y.selected, y.zIndex]), ze), ee = be(() => y.markerStart ? `url('#${Zs(y.markerStart, g)}')` : void 0, [y.markerStart, g]), oe = be(() => y.markerEnd ? `url('#${Zs(y.markerEnd, g)}')` : void 0, [y.markerEnd, g]);
|
|
11106
11106
|
if (y.hidden || M === null || A === null || I === null || R === null)
|
|
11107
11107
|
return null;
|
|
11108
11108
|
const se = (Y) => {
|
|
11109
11109
|
var De;
|
|
11110
11110
|
const { addSelectedEdges: fe, unselectNodesAndEdges: he, multiSelectionActive: Ne } = E.getState();
|
|
11111
|
-
$ && (E.setState({ nodesSelectionActive: !1 }), y.selected && Ne ? (he({ nodes: [], edges: [y] }), (De =
|
|
11111
|
+
$ && (E.setState({ nodesSelectionActive: !1 }), y.selected && Ne ? (he({ nodes: [], edges: [y] }), (De = B.current) == null || De.blur()) : fe([e])), s && s(Y, y);
|
|
11112
11112
|
}, le = l ? (Y) => {
|
|
11113
11113
|
l(Y, { ...y });
|
|
11114
11114
|
} : void 0, J = i ? (Y) => {
|
|
@@ -11123,7 +11123,7 @@ function W8({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
11123
11123
|
var fe;
|
|
11124
11124
|
if (!C && jd.includes(Y.key) && $) {
|
|
11125
11125
|
const { unselectNodesAndEdges: he, addSelectedEdges: Ne } = E.getState();
|
|
11126
|
-
Y.key === "Escape" ? ((fe =
|
|
11126
|
+
Y.key === "Escape" ? ((fe = B.current) == null || fe.blur(), he({ edges: [y] })) : Ne([e]);
|
|
11127
11127
|
}
|
|
11128
11128
|
};
|
|
11129
11129
|
return r.jsx("svg", { style: { zIndex: _ }, children: r.jsxs("g", { className: Re([
|
|
@@ -11138,7 +11138,7 @@ function W8({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
11138
11138
|
updating: F,
|
|
11139
11139
|
selectable: $
|
|
11140
11140
|
}
|
|
11141
|
-
]), onClick: se, onDoubleClick: le, onContextMenu: J, onMouseEnter: ae, onMouseMove: ye, onMouseLeave: Pe, onKeyDown: L ? ge : void 0, tabIndex: L ? 0 : void 0, role: L ? "button" : "img", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": y.ariaLabel === null ? void 0 : y.ariaLabel || `Edge from ${y.source} to ${y.target}`, "aria-describedby": L ? `${Jd}-${g}` : void 0, ref:
|
|
11141
|
+
]), onClick: se, onDoubleClick: le, onContextMenu: J, onMouseEnter: ae, onMouseMove: ye, onMouseLeave: Pe, onKeyDown: L ? ge : void 0, tabIndex: L ? 0 : void 0, role: L ? "button" : "img", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": y.ariaLabel === null ? void 0 : y.ariaLabel || `Edge from ${y.source} to ${y.target}`, "aria-describedby": L ? `${Jd}-${g}` : void 0, ref: B, children: [!k && r.jsx(T, { id: e, source: y.source, target: y.target, type: y.type, selected: y.selected, animated: y.animated, selectable: $, deletable: y.deletable ?? !0, label: y.label, labelStyle: y.labelStyle, labelShowBg: y.labelShowBg, labelBgStyle: y.labelBgStyle, labelBgPadding: y.labelBgPadding, labelBgBorderRadius: y.labelBgBorderRadius, sourceX: M, sourceY: A, targetX: I, targetY: R, sourcePosition: V, targetPosition: Z, data: y.data, style: y.style, sourceHandleId: y.sourceHandle, targetHandleId: y.targetHandle, markerStart: ee, markerEnd: oe, pathOptions: "pathOptions" in y ? y.pathOptions : void 0, interactionWidth: y.interactionWidth }), O && r.jsx(Z8, { edge: y, isReconnectable: O, reconnectRadius: d, onReconnect: f, onReconnectStart: h, onReconnectEnd: p, sourceX: M, sourceY: A, targetX: I, targetY: R, sourcePosition: V, targetPosition: Z, setUpdateHover: z, setReconnecting: b })] }) });
|
|
11142
11142
|
}
|
|
11143
11143
|
const Y8 = (e) => ({
|
|
11144
11144
|
edgesFocusable: e.edgesFocusable,
|
|
@@ -11148,8 +11148,8 @@ const Y8 = (e) => ({
|
|
|
11148
11148
|
onError: e.onError
|
|
11149
11149
|
});
|
|
11150
11150
|
function Ef({ defaultMarkerColor: e, onlyRenderVisibleElements: t, rfId: n, edgeTypes: o, noPanClassName: s, onReconnect: l, onEdgeContextMenu: i, onEdgeMouseEnter: c, onEdgeMouseMove: a, onEdgeMouseLeave: u, onEdgeClick: d, reconnectRadius: f, onEdgeDoubleClick: h, onReconnectStart: p, onReconnectEnd: g, disableKeyboardA11y: x }) {
|
|
11151
|
-
const { edgesFocusable: j, edgesReconnectable: w, elementsSelectable: C, onError: y } = Ce(Y8,
|
|
11152
|
-
return r.jsxs("div", { className: "react-flow__edges", children: [r.jsx(
|
|
11151
|
+
const { edgesFocusable: j, edgesReconnectable: w, elementsSelectable: C, onError: y } = Ce(Y8, ze), v = N8(t);
|
|
11152
|
+
return r.jsxs("div", { className: "react-flow__edges", children: [r.jsx(B8, { defaultColor: e, rfId: n }), v.map((P) => r.jsx(W8, { id: P, edgesFocusable: j, edgesReconnectable: w, elementsSelectable: C, noPanClassName: s, onReconnect: l, onContextMenu: i, onMouseEnter: c, onMouseMove: a, onMouseLeave: u, onClick: d, reconnectRadius: f, onDoubleClick: h, onReconnectStart: p, onReconnectEnd: g, rfId: n, onError: y, edgeTypes: o, disableKeyboardA11y: x }, P))] });
|
|
11153
11153
|
}
|
|
11154
11154
|
Ef.displayName = "EdgeRenderer";
|
|
11155
11155
|
const G8 = Te(Ef), X8 = (e) => `translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;
|
|
@@ -11181,7 +11181,7 @@ function ej(e) {
|
|
|
11181
11181
|
}
|
|
11182
11182
|
function tj(e) {
|
|
11183
11183
|
const t = ej();
|
|
11184
|
-
return Ce(t,
|
|
11184
|
+
return Ce(t, ze);
|
|
11185
11185
|
}
|
|
11186
11186
|
const nj = (e) => ({
|
|
11187
11187
|
nodesConnectable: e.nodesConnectable,
|
|
@@ -11191,7 +11191,7 @@ const nj = (e) => ({
|
|
|
11191
11191
|
height: e.height
|
|
11192
11192
|
});
|
|
11193
11193
|
function oj({ containerStyle: e, style: t, type: n, component: o }) {
|
|
11194
|
-
const { nodesConnectable: s, width: l, height: i, isValid: c, inProgress: a } = Ce(nj,
|
|
11194
|
+
const { nodesConnectable: s, width: l, height: i, isValid: c, inProgress: a } = Ce(nj, ze);
|
|
11195
11195
|
return !(l && s && a) ? null : r.jsx("svg", { style: e, width: l, height: i, className: "react-flow__connectionline react-flow__container", children: r.jsx("g", { className: Re(["react-flow__connection", bd(c)]), children: r.jsx(Mf, { style: t, type: n, CustomComponent: o, isValid: c }) }) });
|
|
11196
11196
|
}
|
|
11197
11197
|
const Mf = ({ style: e, type: t = At.Bezier, CustomComponent: n, isValid: o }) => {
|
|
@@ -11257,8 +11257,8 @@ function sj() {
|
|
|
11257
11257
|
}
|
|
11258
11258
|
}, []);
|
|
11259
11259
|
}
|
|
11260
|
-
function kf({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: o, onEdgeClick: s, onNodeDoubleClick: l, onEdgeDoubleClick: i, onNodeMouseEnter: c, onNodeMouseMove: a, onNodeMouseLeave: u, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: h, onSelectionEnd: p, connectionLineType: g, connectionLineStyle: x, connectionLineComponent: j, connectionLineContainerStyle: w, selectionKeyCode: C, selectionOnDrag: y, selectionMode: v, multiSelectionKeyCode: P, panActivationKeyCode: T, zoomActivationKeyCode: L, deleteKeyCode: O, onlyRenderVisibleElements: $, elementsSelectable:
|
|
11261
|
-
return Ic(e), Ic(t), sj(), U8(n), Q8(On), r.jsx(v8, { onPaneClick: oe, onPaneMouseEnter: se, onPaneMouseMove: le, onPaneMouseLeave: J, onPaneContextMenu: ye, onPaneScroll: ae, paneClickDistance: Pe, deleteKeyCode: O, selectionKeyCode: C, selectionOnDrag: y, selectionMode: v, onSelectionStart: h, onSelectionEnd: p, multiSelectionKeyCode: P, panActivationKeyCode: T, zoomActivationKeyCode: L, elementsSelectable:
|
|
11260
|
+
function kf({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: o, onEdgeClick: s, onNodeDoubleClick: l, onEdgeDoubleClick: i, onNodeMouseEnter: c, onNodeMouseMove: a, onNodeMouseLeave: u, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: h, onSelectionEnd: p, connectionLineType: g, connectionLineStyle: x, connectionLineComponent: j, connectionLineContainerStyle: w, selectionKeyCode: C, selectionOnDrag: y, selectionMode: v, multiSelectionKeyCode: P, panActivationKeyCode: T, zoomActivationKeyCode: L, deleteKeyCode: O, onlyRenderVisibleElements: $, elementsSelectable: B, defaultViewport: F, translateExtent: z, minZoom: k, maxZoom: b, preventScrolling: E, defaultMarkerColor: _, zoomOnScroll: M, zoomOnPinch: A, panOnScroll: I, panOnScrollSpeed: R, panOnScrollMode: V, zoomOnDoubleClick: Z, panOnDrag: ee, onPaneClick: oe, onPaneMouseEnter: se, onPaneMouseMove: le, onPaneMouseLeave: J, onPaneScroll: ae, onPaneContextMenu: ye, paneClickDistance: Pe, nodeClickDistance: ge, onEdgeContextMenu: Y, onEdgeMouseEnter: fe, onEdgeMouseMove: he, onEdgeMouseLeave: Ne, reconnectRadius: De, onReconnect: dn, onReconnectStart: Ur, onReconnectEnd: qr, noDragClassName: An, noWheelClassName: Qr, noPanClassName: $n, disableKeyboardA11y: Bn, nodeExtent: Jr, rfId: zn, viewport: On, onViewportChange: _o }) {
|
|
11261
|
+
return Ic(e), Ic(t), sj(), U8(n), Q8(On), r.jsx(v8, { onPaneClick: oe, onPaneMouseEnter: se, onPaneMouseMove: le, onPaneMouseLeave: J, onPaneContextMenu: ye, onPaneScroll: ae, paneClickDistance: Pe, deleteKeyCode: O, selectionKeyCode: C, selectionOnDrag: y, selectionMode: v, onSelectionStart: h, onSelectionEnd: p, multiSelectionKeyCode: P, panActivationKeyCode: T, zoomActivationKeyCode: L, elementsSelectable: B, zoomOnScroll: M, zoomOnPinch: A, zoomOnDoubleClick: Z, panOnScroll: I, panOnScrollSpeed: R, panOnScrollMode: V, panOnDrag: ee, defaultViewport: F, translateExtent: z, minZoom: k, maxZoom: b, onSelectionContextMenu: f, preventScrolling: E, noDragClassName: An, noWheelClassName: Qr, noPanClassName: $n, disableKeyboardA11y: Bn, onViewportChange: _o, isControlledViewport: !!On, children: r.jsxs(K8, { children: [r.jsx(G8, { edgeTypes: t, onEdgeClick: s, onEdgeDoubleClick: i, onReconnect: dn, onReconnectStart: Ur, onReconnectEnd: qr, onlyRenderVisibleElements: $, onEdgeContextMenu: Y, onEdgeMouseEnter: fe, onEdgeMouseMove: he, onEdgeMouseLeave: Ne, reconnectRadius: De, defaultMarkerColor: _, noPanClassName: $n, disableKeyboardA11y: Bn, rfId: zn }), r.jsx(oj, { style: x, type: g, component: j, containerStyle: w }), r.jsx("div", { className: "react-flow__edgelabel-renderer" }), r.jsx(P8, { nodeTypes: e, onNodeClick: o, onNodeDoubleClick: l, onNodeMouseEnter: c, onNodeMouseMove: a, onNodeMouseLeave: u, onNodeContextMenu: d, nodeClickDistance: ge, onlyRenderVisibleElements: $, noPanClassName: $n, noDragClassName: An, disableKeyboardA11y: Bn, nodeExtent: Jr, rfId: zn }), r.jsx("div", { className: "react-flow__viewport-portal" })] }) });
|
|
11262
11262
|
}
|
|
11263
11263
|
kf.displayName = "GraphView";
|
|
11264
11264
|
const lj = Te(kf), Ac = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, width: s, height: l, fitView: i, nodeOrigin: c, nodeExtent: a } = {}) => {
|
|
@@ -11520,11 +11520,11 @@ const aj = {
|
|
|
11520
11520
|
position: "relative",
|
|
11521
11521
|
zIndex: 0
|
|
11522
11522
|
};
|
|
11523
|
-
function uj({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, className: s, nodeTypes: l, edgeTypes: i, onNodeClick: c, onEdgeClick: a, onInit: u, onMove: d, onMoveStart: f, onMoveEnd: h, onConnect: p, onConnectStart: g, onConnectEnd: x, onClickConnectStart: j, onClickConnectEnd: w, onNodeMouseEnter: C, onNodeMouseMove: y, onNodeMouseLeave: v, onNodeContextMenu: P, onNodeDoubleClick: T, onNodeDragStart: L, onNodeDrag: O, onNodeDragStop: $, onNodesDelete:
|
|
11523
|
+
function uj({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, className: s, nodeTypes: l, edgeTypes: i, onNodeClick: c, onEdgeClick: a, onInit: u, onMove: d, onMoveStart: f, onMoveEnd: h, onConnect: p, onConnectStart: g, onConnectEnd: x, onClickConnectStart: j, onClickConnectEnd: w, onNodeMouseEnter: C, onNodeMouseMove: y, onNodeMouseLeave: v, onNodeContextMenu: P, onNodeDoubleClick: T, onNodeDragStart: L, onNodeDrag: O, onNodeDragStop: $, onNodesDelete: B, onEdgesDelete: F, onDelete: z, onSelectionChange: k, onSelectionDragStart: b, onSelectionDrag: E, onSelectionDragStop: _, onSelectionContextMenu: M, onSelectionStart: A, onSelectionEnd: I, onBeforeDelete: R, connectionMode: V, connectionLineType: Z = At.Bezier, connectionLineStyle: ee, connectionLineComponent: oe, connectionLineContainerStyle: se, deleteKeyCode: le = "Backspace", selectionKeyCode: J = "Shift", selectionOnDrag: ae = !1, selectionMode: ye = bn.Full, panActivationKeyCode: Pe = "Space", multiSelectionKeyCode: ge = gr() ? "Meta" : "Control", zoomActivationKeyCode: Y = gr() ? "Meta" : "Control", snapToGrid: fe, snapGrid: he, onlyRenderVisibleElements: Ne = !1, selectNodesOnDrag: De, nodesDraggable: dn, nodesConnectable: Ur, nodesFocusable: qr, nodeOrigin: An = ef, edgesFocusable: Qr, edgesReconnectable: $n, elementsSelectable: Bn = !0, defaultViewport: Jr = D7, minZoom: zn = 0.5, maxZoom: On = 2, translateExtent: _o = ro, preventScrolling: S0 = !0, nodeExtent: es, defaultMarkerColor: C0 = "#b1b1b7", zoomOnScroll: _0 = !0, zoomOnPinch: E0 = !0, panOnScroll: M0 = !1, panOnScrollSpeed: k0 = 0.5, panOnScrollMode: L0 = qt.Free, zoomOnDoubleClick: P0 = !0, panOnDrag: N0 = !0, onPaneClick: T0, onPaneMouseEnter: I0, onPaneMouseMove: A0, onPaneMouseLeave: $0, onPaneScroll: B0, onPaneContextMenu: z0, paneClickDistance: ni = 0, nodeClickDistance: O0 = 0, children: R0, onReconnect: D0, onReconnectStart: V0, onReconnectEnd: F0, onEdgeContextMenu: H0, onEdgeDoubleClick: Z0, onEdgeMouseEnter: W0, onEdgeMouseMove: Y0, onEdgeMouseLeave: G0, reconnectRadius: X0 = 10, onNodesChange: K0, onEdgesChange: U0, noDragClassName: q0 = "nodrag", noWheelClassName: Q0 = "nowheel", noPanClassName: oi = "nopan", fitView: ri, fitViewOptions: J0, connectOnClick: eg, attributionPosition: tg, proOptions: ng, defaultEdgeOptions: og, elevateNodesOnSelect: rg, elevateEdgesOnSelect: sg, disableKeyboardA11y: si = !1, autoPanOnConnect: lg, autoPanOnNodeDrag: ig, autoPanSpeed: cg, connectionRadius: ag, isValidConnection: ug, onError: dg, style: fg, id: li, nodeDragThreshold: hg, viewport: pg, onViewportChange: gg, width: mg, height: xg, colorMode: yg = "light", debug: jg, onScroll: Eo, ...wg }, bg) {
|
|
11524
11524
|
const ts = li || "1", vg = Z7(yg), Sg = D((ii) => {
|
|
11525
11525
|
ii.currentTarget.scrollTo({ top: 0, left: 0, behavior: "instant" }), Eo == null || Eo(ii);
|
|
11526
11526
|
}, [Eo]);
|
|
11527
|
-
return r.jsx("div", { "data-testid": "rf__wrapper", ...wg, onScroll: Sg, style: { ...fg, ...aj }, ref: bg, className: Re(["react-flow", s, vg]), id: li, children: r.jsxs(cj, { nodes: e, edges: t, width: mg, height: xg, fitView: ri, nodeOrigin: An, nodeExtent: es, children: [r.jsx(lj, { onInit: u, onNodeClick: c, onEdgeClick: a, onNodeMouseEnter: C, onNodeMouseMove: y, onNodeMouseLeave: v, onNodeContextMenu: P, onNodeDoubleClick: T, nodeTypes: l, edgeTypes: i, connectionLineType: Z, connectionLineStyle: ee, connectionLineComponent: oe, connectionLineContainerStyle: se, selectionKeyCode: J, selectionOnDrag: ae, selectionMode: ye, deleteKeyCode: le, multiSelectionKeyCode: ge, panActivationKeyCode: Pe, zoomActivationKeyCode: Y, onlyRenderVisibleElements: Ne, defaultViewport: Jr, translateExtent: _o, minZoom:
|
|
11527
|
+
return r.jsx("div", { "data-testid": "rf__wrapper", ...wg, onScroll: Sg, style: { ...fg, ...aj }, ref: bg, className: Re(["react-flow", s, vg]), id: li, children: r.jsxs(cj, { nodes: e, edges: t, width: mg, height: xg, fitView: ri, nodeOrigin: An, nodeExtent: es, children: [r.jsx(lj, { onInit: u, onNodeClick: c, onEdgeClick: a, onNodeMouseEnter: C, onNodeMouseMove: y, onNodeMouseLeave: v, onNodeContextMenu: P, onNodeDoubleClick: T, nodeTypes: l, edgeTypes: i, connectionLineType: Z, connectionLineStyle: ee, connectionLineComponent: oe, connectionLineContainerStyle: se, selectionKeyCode: J, selectionOnDrag: ae, selectionMode: ye, deleteKeyCode: le, multiSelectionKeyCode: ge, panActivationKeyCode: Pe, zoomActivationKeyCode: Y, onlyRenderVisibleElements: Ne, defaultViewport: Jr, translateExtent: _o, minZoom: zn, maxZoom: On, preventScrolling: S0, zoomOnScroll: _0, zoomOnPinch: E0, zoomOnDoubleClick: P0, panOnScroll: M0, panOnScrollSpeed: k0, panOnScrollMode: L0, panOnDrag: N0, onPaneClick: T0, onPaneMouseEnter: I0, onPaneMouseMove: A0, onPaneMouseLeave: $0, onPaneScroll: B0, onPaneContextMenu: z0, paneClickDistance: ni, nodeClickDistance: O0, onSelectionContextMenu: M, onSelectionStart: A, onSelectionEnd: I, onReconnect: D0, onReconnectStart: V0, onReconnectEnd: F0, onEdgeContextMenu: H0, onEdgeDoubleClick: Z0, onEdgeMouseEnter: W0, onEdgeMouseMove: Y0, onEdgeMouseLeave: G0, reconnectRadius: X0, defaultMarkerColor: C0, noDragClassName: q0, noWheelClassName: Q0, noPanClassName: oi, rfId: ts, disableKeyboardA11y: si, nodeExtent: es, viewport: pg, onViewportChange: gg }), r.jsx(H7, { nodes: e, edges: t, defaultNodes: n, defaultEdges: o, onConnect: p, onConnectStart: g, onConnectEnd: x, onClickConnectStart: j, onClickConnectEnd: w, nodesDraggable: dn, nodesConnectable: Ur, nodesFocusable: qr, edgesFocusable: Qr, edgesReconnectable: $n, elementsSelectable: Bn, elevateNodesOnSelect: rg, elevateEdgesOnSelect: sg, minZoom: zn, maxZoom: On, nodeExtent: es, onNodesChange: K0, onEdgesChange: U0, snapToGrid: fe, snapGrid: he, connectionMode: V, translateExtent: _o, connectOnClick: eg, defaultEdgeOptions: og, fitView: ri, fitViewOptions: J0, onNodesDelete: B, onEdgesDelete: F, onDelete: z, onNodeDragStart: L, onNodeDrag: O, onNodeDragStop: $, onSelectionDrag: E, onSelectionDragStart: b, onSelectionDragStop: _, onMove: d, onMoveStart: f, onMoveEnd: h, noPanClassName: oi, nodeOrigin: An, rfId: ts, autoPanOnConnect: lg, autoPanOnNodeDrag: ig, autoPanSpeed: cg, onError: dg, connectionRadius: ag, isValidConnection: ug, selectNodesOnDrag: De, nodeDragThreshold: hg, onBeforeDelete: R, paneClickDistance: ni, debug: jg }), r.jsx(R7, { onSelectionChange: k }), R0, r.jsx(A7, { proOptions: ng, position: tg }), r.jsx(T7, { rfId: ts, disableKeyboardA11y: si })] }) });
|
|
11528
11528
|
}
|
|
11529
11529
|
var dj = rf(uj);
|
|
11530
11530
|
function fj() {
|
|
@@ -11577,7 +11577,7 @@ function Pf({
|
|
|
11577
11577
|
className: u,
|
|
11578
11578
|
patternClassName: d
|
|
11579
11579
|
}) {
|
|
11580
|
-
const f = te(null), { transform: h, patternId: p } = Ce(xj,
|
|
11580
|
+
const f = te(null), { transform: h, patternId: p } = Ce(xj, ze), g = o || mj[t], x = t === Ot.Dots, j = t === Ot.Cross, w = Array.isArray(n) ? n : [n, n], C = [w[0] * h[2] || 1, w[1] * h[2] || 1], y = g * h[2], v = Array.isArray(l) ? l : [l, l], P = j ? [y, y] : C, T = [
|
|
11581
11581
|
v[0] * h[2] || 1 + P[0] / 2,
|
|
11582
11582
|
v[1] * h[2] || 1 + P[1] / 2
|
|
11583
11583
|
], L = `${p}${e || ""}`;
|
|
@@ -11605,7 +11605,7 @@ function vj() {
|
|
|
11605
11605
|
function Sj() {
|
|
11606
11606
|
return r.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 25 32", children: r.jsx("path", { d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z" }) });
|
|
11607
11607
|
}
|
|
11608
|
-
function
|
|
11608
|
+
function zo({ children: e, className: t, ...n }) {
|
|
11609
11609
|
return r.jsx("button", { type: "button", className: Re(["react-flow__controls-button", t]), ...n, children: e });
|
|
11610
11610
|
}
|
|
11611
11611
|
const Cj = (e) => ({
|
|
@@ -11614,7 +11614,7 @@ const Cj = (e) => ({
|
|
|
11614
11614
|
maxZoomReached: e.transform[2] >= e.maxZoom
|
|
11615
11615
|
});
|
|
11616
11616
|
function Nf({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive: o = !0, fitViewOptions: s, onZoomIn: l, onZoomOut: i, onFitView: c, onInteractiveChange: a, className: u, children: d, position: f = "bottom-left", orientation: h = "vertical", "aria-label": p = "React Flow controls" }) {
|
|
11617
|
-
const g = Ie(), { isInteractive: x, minZoomReached: j, maxZoomReached: w } = Ce(Cj,
|
|
11617
|
+
const g = Ie(), { isInteractive: x, minZoomReached: j, maxZoomReached: w } = Ce(Cj, ze), { zoomIn: C, zoomOut: y, fitView: v } = ln(), P = () => {
|
|
11618
11618
|
C(), l == null || l();
|
|
11619
11619
|
}, T = () => {
|
|
11620
11620
|
y(), i == null || i();
|
|
@@ -11627,7 +11627,7 @@ function Nf({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive:
|
|
|
11627
11627
|
elementsSelectable: !x
|
|
11628
11628
|
}), a == null || a(!x);
|
|
11629
11629
|
}, $ = h === "horizontal" ? "horizontal" : "vertical";
|
|
11630
|
-
return r.jsxs(Zr, { className: Re(["react-flow__controls", $, u]), position: f, style: e, "data-testid": "rf__controls", "aria-label": p, children: [t && r.jsxs(r.Fragment, { children: [r.jsx(
|
|
11630
|
+
return r.jsxs(Zr, { className: Re(["react-flow__controls", $, u]), position: f, style: e, "data-testid": "rf__controls", "aria-label": p, children: [t && r.jsxs(r.Fragment, { children: [r.jsx(zo, { onClick: P, className: "react-flow__controls-zoomin", title: "zoom in", "aria-label": "zoom in", disabled: w, children: r.jsx(jj, {}) }), r.jsx(zo, { onClick: T, className: "react-flow__controls-zoomout", title: "zoom out", "aria-label": "zoom out", disabled: j, children: r.jsx(wj, {}) })] }), n && r.jsx(zo, { className: "react-flow__controls-fitview", onClick: L, title: "fit view", "aria-label": "fit view", children: r.jsx(bj, {}) }), o && r.jsx(zo, { className: "react-flow__controls-interactive", onClick: O, title: "toggle interactivity", "aria-label": "toggle interactivity", children: x ? r.jsx(Sj, {}) : r.jsx(vj, {}) }), d] });
|
|
11631
11631
|
}
|
|
11632
11632
|
Nf.displayName = "Controls";
|
|
11633
11633
|
Te(Nf);
|
|
@@ -11653,7 +11653,7 @@ function kj({
|
|
|
11653
11653
|
nodeComponent: l = Ej,
|
|
11654
11654
|
onClick: i
|
|
11655
11655
|
}) {
|
|
11656
|
-
const c = Ce(Mj,
|
|
11656
|
+
const c = Ce(Mj, ze), a = bs(t), u = bs(e), d = bs(n), f = typeof window > "u" || window.chrome ? "crispEdges" : "geometricPrecision";
|
|
11657
11657
|
return r.jsx(r.Fragment, { children: c.map((h) => (
|
|
11658
11658
|
/*
|
|
11659
11659
|
* The split of responsibilities between MiniMapNodes and
|
|
@@ -11675,7 +11675,7 @@ function Lj({ id: e, nodeColorFunc: t, nodeStrokeColorFunc: n, nodeClassNameFunc
|
|
|
11675
11675
|
width: y,
|
|
11676
11676
|
height: v
|
|
11677
11677
|
};
|
|
11678
|
-
},
|
|
11678
|
+
}, ze);
|
|
11679
11679
|
return !u || u.hidden || !kd(u) ? null : r.jsx(c, { x: d, y: f, width: h, height: p, style: u.style, selected: !!u.selected, className: o(u), color: t(u), borderRadius: s, strokeColor: n(u), strokeWidth: l, shapeRendering: i, onClick: a, id: u.id });
|
|
11680
11680
|
}
|
|
11681
11681
|
const Pj = Te(Lj);
|
|
@@ -11696,7 +11696,7 @@ const Tj = 200, Ij = 150, Aj = (e) => !e.hidden, $j = (e) => {
|
|
|
11696
11696
|
flowWidth: e.width,
|
|
11697
11697
|
flowHeight: e.height
|
|
11698
11698
|
};
|
|
11699
|
-
},
|
|
11699
|
+
}, Bj = "react-flow__minimap-desc";
|
|
11700
11700
|
function Tf({
|
|
11701
11701
|
style: e,
|
|
11702
11702
|
className: t,
|
|
@@ -11724,30 +11724,30 @@ function Tf({
|
|
|
11724
11724
|
zoomStep: y = 10,
|
|
11725
11725
|
offsetScale: v = 5
|
|
11726
11726
|
}) {
|
|
11727
|
-
const P = Ie(), T = te(null), { boundingRect: L, viewBB: O, rfId: $, panZoom:
|
|
11727
|
+
const P = Ie(), T = te(null), { boundingRect: L, viewBB: O, rfId: $, panZoom: B, translateExtent: F, flowWidth: z, flowHeight: k } = Ce($j, ze), b = (e == null ? void 0 : e.width) ?? Tj, E = (e == null ? void 0 : e.height) ?? Ij, _ = L.width / b, M = L.height / E, A = Math.max(_, M), I = A * b, R = A * E, V = v * A, Z = L.x - (I - L.width) / 2 - V, ee = L.y - (R - L.height) / 2 - V, oe = I + V * 2, se = R + V * 2, le = `${Bj}-${$}`, J = te(0), ae = te();
|
|
11728
11728
|
J.current = A, q(() => {
|
|
11729
|
-
if (T.current &&
|
|
11729
|
+
if (T.current && B)
|
|
11730
11730
|
return ae.current = Q9({
|
|
11731
11731
|
domNode: T.current,
|
|
11732
|
-
panZoom:
|
|
11732
|
+
panZoom: B,
|
|
11733
11733
|
getTransform: () => P.getState().transform,
|
|
11734
11734
|
getViewScale: () => J.current
|
|
11735
11735
|
}), () => {
|
|
11736
11736
|
var ge;
|
|
11737
11737
|
(ge = ae.current) == null || ge.destroy();
|
|
11738
11738
|
};
|
|
11739
|
-
}, [
|
|
11739
|
+
}, [B]), q(() => {
|
|
11740
11740
|
var ge;
|
|
11741
11741
|
(ge = ae.current) == null || ge.update({
|
|
11742
11742
|
translateExtent: F,
|
|
11743
|
-
width:
|
|
11743
|
+
width: z,
|
|
11744
11744
|
height: k,
|
|
11745
11745
|
inversePan: C,
|
|
11746
11746
|
pannable: x,
|
|
11747
11747
|
zoomStep: y,
|
|
11748
11748
|
zoomable: j
|
|
11749
11749
|
});
|
|
11750
|
-
}, [x, j, C, y, F,
|
|
11750
|
+
}, [x, j, C, y, F, z, k]);
|
|
11751
11751
|
const ye = p ? (ge) => {
|
|
11752
11752
|
var he;
|
|
11753
11753
|
const [Y, fe] = ((he = ae.current) == null ? void 0 : he.pointer(ge)) || [0, 0];
|
|
@@ -11770,7 +11770,7 @@ function Tf({
|
|
|
11770
11770
|
}
|
|
11771
11771
|
Tf.displayName = "MiniMap";
|
|
11772
11772
|
Te(Tf);
|
|
11773
|
-
function
|
|
11773
|
+
function zj({ nodeId: e, position: t, variant: n = qn.Handle, className: o, style: s = {}, children: l, color: i, minWidth: c = 10, minHeight: a = 10, maxWidth: u = Number.MAX_VALUE, maxHeight: d = Number.MAX_VALUE, keepAspectRatio: f = !1, shouldResize: h, onResizeStart: p, onResize: g, onResizeEnd: x }) {
|
|
11774
11774
|
const j = af(), w = typeof e == "string" ? e : j, C = Ie(), y = te(null), v = n === qn.Line ? "right" : "bottom-right", P = t ?? v, T = te(null);
|
|
11775
11775
|
q(() => {
|
|
11776
11776
|
if (!(!y.current || !w))
|
|
@@ -11778,32 +11778,32 @@ function Bj({ nodeId: e, position: t, variant: n = qn.Handle, className: o, styl
|
|
|
11778
11778
|
domNode: y.current,
|
|
11779
11779
|
nodeId: w,
|
|
11780
11780
|
getStoreItems: () => {
|
|
11781
|
-
const { nodeLookup:
|
|
11781
|
+
const { nodeLookup: B, transform: F, snapGrid: z, snapToGrid: k, nodeOrigin: b, domNode: E } = C.getState();
|
|
11782
11782
|
return {
|
|
11783
|
-
nodeLookup:
|
|
11783
|
+
nodeLookup: B,
|
|
11784
11784
|
transform: F,
|
|
11785
|
-
snapGrid:
|
|
11785
|
+
snapGrid: z,
|
|
11786
11786
|
snapToGrid: k,
|
|
11787
11787
|
nodeOrigin: b,
|
|
11788
11788
|
paneDomNode: E
|
|
11789
11789
|
};
|
|
11790
11790
|
},
|
|
11791
|
-
onChange: (
|
|
11792
|
-
const { triggerNodeChanges:
|
|
11791
|
+
onChange: (B, F) => {
|
|
11792
|
+
const { triggerNodeChanges: z, nodeLookup: k, parentLookup: b, nodeOrigin: E } = C.getState(), _ = [], M = { x: B.x, y: B.y }, A = k.get(w);
|
|
11793
11793
|
if (A && A.expandParent && A.parentId) {
|
|
11794
|
-
const I = A.origin ?? E, R =
|
|
11794
|
+
const I = A.origin ?? E, R = B.width ?? A.measured.width ?? 0, V = B.height ?? A.measured.height ?? 0, Z = {
|
|
11795
11795
|
id: A.id,
|
|
11796
11796
|
parentId: A.parentId,
|
|
11797
11797
|
rect: {
|
|
11798
11798
|
width: R,
|
|
11799
11799
|
height: V,
|
|
11800
11800
|
...Ld({
|
|
11801
|
-
x:
|
|
11802
|
-
y:
|
|
11801
|
+
x: B.x ?? A.position.x,
|
|
11802
|
+
y: B.y ?? A.position.y
|
|
11803
11803
|
}, { width: R, height: V }, A.parentId, k, I)
|
|
11804
11804
|
}
|
|
11805
11805
|
}, ee = Xl([Z], k, b, E);
|
|
11806
|
-
_.push(...ee), M.x =
|
|
11806
|
+
_.push(...ee), M.x = B.x ? Math.max(I[0] * R, B.x) : void 0, M.y = B.y ? Math.max(I[1] * V, B.y) : void 0;
|
|
11807
11807
|
}
|
|
11808
11808
|
if (M.x !== void 0 && M.y !== void 0) {
|
|
11809
11809
|
const I = {
|
|
@@ -11813,15 +11813,15 @@ function Bj({ nodeId: e, position: t, variant: n = qn.Handle, className: o, styl
|
|
|
11813
11813
|
};
|
|
11814
11814
|
_.push(I);
|
|
11815
11815
|
}
|
|
11816
|
-
if (
|
|
11816
|
+
if (B.width !== void 0 && B.height !== void 0) {
|
|
11817
11817
|
const I = {
|
|
11818
11818
|
id: w,
|
|
11819
11819
|
type: "dimensions",
|
|
11820
11820
|
resizing: !0,
|
|
11821
11821
|
setAttributes: !0,
|
|
11822
11822
|
dimensions: {
|
|
11823
|
-
width:
|
|
11824
|
-
height:
|
|
11823
|
+
width: B.width,
|
|
11824
|
+
height: B.height
|
|
11825
11825
|
}
|
|
11826
11826
|
};
|
|
11827
11827
|
_.push(I);
|
|
@@ -11833,19 +11833,19 @@ function Bj({ nodeId: e, position: t, variant: n = qn.Handle, className: o, styl
|
|
|
11833
11833
|
};
|
|
11834
11834
|
_.push(R);
|
|
11835
11835
|
}
|
|
11836
|
-
|
|
11836
|
+
z(_);
|
|
11837
11837
|
},
|
|
11838
|
-
onEnd: ({ width:
|
|
11839
|
-
const
|
|
11838
|
+
onEnd: ({ width: B, height: F }) => {
|
|
11839
|
+
const z = {
|
|
11840
11840
|
id: w,
|
|
11841
11841
|
type: "dimensions",
|
|
11842
11842
|
resizing: !1,
|
|
11843
11843
|
dimensions: {
|
|
11844
|
-
width:
|
|
11844
|
+
width: B,
|
|
11845
11845
|
height: F
|
|
11846
11846
|
}
|
|
11847
11847
|
};
|
|
11848
|
-
C.getState().triggerNodeChanges([
|
|
11848
|
+
C.getState().triggerNodeChanges([z]);
|
|
11849
11849
|
}
|
|
11850
11850
|
})), T.current.update({
|
|
11851
11851
|
controlPosition: P,
|
|
@@ -11861,8 +11861,8 @@ function Bj({ nodeId: e, position: t, variant: n = qn.Handle, className: o, styl
|
|
|
11861
11861
|
onResizeEnd: x,
|
|
11862
11862
|
shouldResize: h
|
|
11863
11863
|
}), () => {
|
|
11864
|
-
var
|
|
11865
|
-
(
|
|
11864
|
+
var B;
|
|
11865
|
+
(B = T.current) == null || B.destroy();
|
|
11866
11866
|
};
|
|
11867
11867
|
}, [
|
|
11868
11868
|
P,
|
|
@@ -11879,7 +11879,7 @@ function Bj({ nodeId: e, position: t, variant: n = qn.Handle, className: o, styl
|
|
|
11879
11879
|
const L = P.split("-"), O = n === qn.Line ? "borderColor" : "backgroundColor", $ = i ? { ...s, [O]: i } : s;
|
|
11880
11880
|
return r.jsx("div", { className: Re(["react-flow__resize-control", "nodrag", ...L, n, o]), ref: y, style: $, children: l });
|
|
11881
11881
|
}
|
|
11882
|
-
Te(
|
|
11882
|
+
Te(zj);
|
|
11883
11883
|
const Oj = (e, t) => e.map((n, o) => ne.translate(n, t[o])), If = ({ points: e, color: t, ...n }) => /* @__PURE__ */ r.jsx(
|
|
11884
11884
|
lt,
|
|
11885
11885
|
{
|
|
@@ -12029,7 +12029,7 @@ const Oj = (e, t) => e.map((n, o) => ne.translate(n, t[o])), If = ({ points: e,
|
|
|
12029
12029
|
hydraulic: Yj,
|
|
12030
12030
|
pneumatic: Gj,
|
|
12031
12031
|
data: Xj
|
|
12032
|
-
}, $f = If,
|
|
12032
|
+
}, $f = If, Bf = [
|
|
12033
12033
|
{ key: "pipe", name: "Pipe" },
|
|
12034
12034
|
{ key: "electric", name: "Electric Signal" },
|
|
12035
12035
|
{ key: "secondary", name: "Secondary" },
|
|
@@ -12041,7 +12041,7 @@ const Oj = (e, t) => e.map((n, o) => ne.translate(n, t[o])), If = ({ points: e,
|
|
|
12041
12041
|
kr,
|
|
12042
12042
|
{
|
|
12043
12043
|
columns: [{ key: "name", name: "Type" }],
|
|
12044
|
-
data:
|
|
12044
|
+
data: Bf,
|
|
12045
12045
|
style: { width: 200 },
|
|
12046
12046
|
entryRenderKey: "name",
|
|
12047
12047
|
...e
|
|
@@ -12058,7 +12058,7 @@ const Oj = (e, t) => e.map((n, o) => ne.translate(n, t[o])), If = ({ points: e,
|
|
|
12058
12058
|
Wn.scale(H.dims(H.construct(n)), 1 / e.getZoom())
|
|
12059
12059
|
);
|
|
12060
12060
|
}, Uj = (e, t) => Gr.fromFlow(e, t);
|
|
12061
|
-
class
|
|
12061
|
+
class zf {
|
|
12062
12062
|
constructor(t, n) {
|
|
12063
12063
|
ct(this, "node_", null);
|
|
12064
12064
|
ct(this, "position");
|
|
@@ -12089,7 +12089,7 @@ class Gr {
|
|
|
12089
12089
|
if (f == null)
|
|
12090
12090
|
throw new Error("[schematic] - cannot find handle orientation");
|
|
12091
12091
|
const h = ve.construct(f[0]);
|
|
12092
|
-
return new
|
|
12092
|
+
return new zf(d, h);
|
|
12093
12093
|
});
|
|
12094
12094
|
return new Gr(t, o, c);
|
|
12095
12095
|
}
|
|
@@ -12197,31 +12197,31 @@ const qj = ({
|
|
|
12197
12197
|
targetBox: Xe(y, n)
|
|
12198
12198
|
})), g.current = p), $(b), P(b));
|
|
12199
12199
|
}
|
|
12200
|
-
const
|
|
12200
|
+
const B = te(null), F = mo({
|
|
12201
12201
|
onStart: D((b, E, _) => {
|
|
12202
|
-
|
|
12202
|
+
B.current = {
|
|
12203
12203
|
index: Number(_.currentTarget.id.split("-")[1]),
|
|
12204
12204
|
segments: [...T.current]
|
|
12205
12205
|
};
|
|
12206
12206
|
}, []),
|
|
12207
12207
|
onMove: D((b) => {
|
|
12208
|
-
if (
|
|
12208
|
+
if (B.current == null) return;
|
|
12209
12209
|
const E = i4({
|
|
12210
|
-
segments:
|
|
12211
|
-
index:
|
|
12210
|
+
segments: B.current.segments,
|
|
12211
|
+
index: B.current.index,
|
|
12212
12212
|
magnitude: H.dim(
|
|
12213
12213
|
b,
|
|
12214
|
-
Le.swap(
|
|
12214
|
+
Le.swap(B.current.segments[B.current.index].direction),
|
|
12215
12215
|
!0
|
|
12216
12216
|
) / y.getZoom()
|
|
12217
12217
|
});
|
|
12218
12218
|
P(E);
|
|
12219
12219
|
}, []),
|
|
12220
12220
|
onEnd: D(() => a(T.current), [a])
|
|
12221
|
-
}),
|
|
12221
|
+
}), z = Vu(p, v, y.getZoom(), !0), k = Af[f];
|
|
12222
12222
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
12223
|
-
/* @__PURE__ */ r.jsx(k, { points:
|
|
12224
|
-
d && Jj(
|
|
12223
|
+
/* @__PURE__ */ r.jsx(k, { points: z, color: u }),
|
|
12224
|
+
d && Jj(z).map((b, E) => {
|
|
12225
12225
|
const _ = v[E].direction, M = Le.swap(_), A = {
|
|
12226
12226
|
[Le.dimension(_)]: "18px",
|
|
12227
12227
|
[Le.dimension(M)]: "4px"
|
|
@@ -12377,7 +12377,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12377
12377
|
onChange: L,
|
|
12378
12378
|
onEnd: L
|
|
12379
12379
|
});
|
|
12380
|
-
const [O, $] = xe(() => () => null),
|
|
12380
|
+
const [O, $] = xe(() => () => null), B = D(
|
|
12381
12381
|
(Y) => $(() => Y),
|
|
12382
12382
|
[]
|
|
12383
12383
|
), F = be(
|
|
@@ -12391,7 +12391,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12391
12391
|
}) => O({ symbolKey: Y, position: { x: fe, y: he }, selected: Ne, draggable: De })
|
|
12392
12392
|
}),
|
|
12393
12393
|
[O]
|
|
12394
|
-
),
|
|
12394
|
+
), z = te(s), k = be(() => (z.current = s, Bl(s)), [s]), b = te(o), E = be(() => (b.current = o, $l(o)), [o]), _ = D(
|
|
12395
12395
|
(Y) => t(
|
|
12396
12396
|
Xu(b.current, (fe) => nf(Y, fe)),
|
|
12397
12397
|
Y
|
|
@@ -12400,7 +12400,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12400
12400
|
), M = D(
|
|
12401
12401
|
(Y) => n(
|
|
12402
12402
|
Do(
|
|
12403
|
-
|
|
12403
|
+
z.current,
|
|
12404
12404
|
(fe) => of(Y, fe),
|
|
12405
12405
|
v
|
|
12406
12406
|
)
|
|
@@ -12409,7 +12409,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12409
12409
|
), A = D(
|
|
12410
12410
|
(Y, fe) => n(
|
|
12411
12411
|
Do(
|
|
12412
|
-
|
|
12412
|
+
z.current,
|
|
12413
12413
|
(he) => I9(Y, fe, he),
|
|
12414
12414
|
v
|
|
12415
12415
|
)
|
|
@@ -12417,13 +12417,13 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12417
12417
|
[]
|
|
12418
12418
|
), I = D(
|
|
12419
12419
|
(Y) => n(
|
|
12420
|
-
Do(
|
|
12420
|
+
Do(z.current, (fe) => zd(Y, fe), v)
|
|
12421
12421
|
),
|
|
12422
12422
|
[n, v]
|
|
12423
12423
|
), R = D(
|
|
12424
12424
|
(Y, fe) => {
|
|
12425
|
-
const he = [...
|
|
12426
|
-
Ne !== -1 && (he[Ne] = { ...he[Ne], segments: fe },
|
|
12425
|
+
const he = [...z.current], Ne = he.findIndex((De) => De.key === Y);
|
|
12426
|
+
Ne !== -1 && (he[Ne] = { ...he[Ne], segments: fe }, z.current = he, n(he));
|
|
12427
12427
|
},
|
|
12428
12428
|
[n]
|
|
12429
12429
|
), V = i ? nw : ow, Z = rt(R), ee = be(
|
|
@@ -12469,11 +12469,11 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12469
12469
|
visible: h,
|
|
12470
12470
|
editable: i,
|
|
12471
12471
|
onEditableChange: l,
|
|
12472
|
-
registerNodeRenderer:
|
|
12472
|
+
registerNodeRenderer: B,
|
|
12473
12473
|
fitViewOnResize: d,
|
|
12474
12474
|
setFitViewOnResize: f
|
|
12475
12475
|
}),
|
|
12476
|
-
[i, h, l,
|
|
12476
|
+
[i, h, l, B, d]
|
|
12477
12477
|
);
|
|
12478
12478
|
return /* @__PURE__ */ r.jsx(Of, { value: ge, children: /* @__PURE__ */ r.jsx(ft, { path: x, children: h && /* @__PURE__ */ r.jsx(
|
|
12479
12479
|
dj,
|
|
@@ -12562,11 +12562,11 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12562
12562
|
DefaultPath: $f,
|
|
12563
12563
|
Diagram: dw,
|
|
12564
12564
|
FitViewControl: uw,
|
|
12565
|
-
HandleLayout:
|
|
12565
|
+
HandleLayout: zf,
|
|
12566
12566
|
NodeLayout: Gr,
|
|
12567
12567
|
NodeRenderer: Rf,
|
|
12568
12568
|
PATHS: Af,
|
|
12569
|
-
PATH_TYPES:
|
|
12569
|
+
PATH_TYPES: Bf,
|
|
12570
12570
|
SelectPathType: Kj,
|
|
12571
12571
|
ToggleEditControl: aw,
|
|
12572
12572
|
alignNodes: m4,
|
|
@@ -12581,7 +12581,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12581
12581
|
selectNodeBox: Xe,
|
|
12582
12582
|
selectNodeLayout: Uj,
|
|
12583
12583
|
translateEdgesBackward: Wu,
|
|
12584
|
-
translateEdgesForward:
|
|
12584
|
+
translateEdgesForward: Bl,
|
|
12585
12585
|
translateNodesBackward: Zu,
|
|
12586
12586
|
translateNodesForward: $l,
|
|
12587
12587
|
translateViewportBackward: Gu,
|
|
@@ -12676,7 +12676,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12676
12676
|
}) => {
|
|
12677
12677
|
const { outer: s } = e, l = (i) => () => o({ ...e, ...i });
|
|
12678
12678
|
return t ? /* @__PURE__ */ r.jsx(
|
|
12679
|
-
|
|
12679
|
+
Bc,
|
|
12680
12680
|
{
|
|
12681
12681
|
className: m.B("orientation-control"),
|
|
12682
12682
|
value: e,
|
|
@@ -12690,12 +12690,12 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12690
12690
|
justify: "center",
|
|
12691
12691
|
size: "tiny",
|
|
12692
12692
|
children: [
|
|
12693
|
-
/* @__PURE__ */ r.jsx(
|
|
12693
|
+
/* @__PURE__ */ r.jsx(Bt, { selected: s === "top", onClick: l({ outer: "top" }) }),
|
|
12694
12694
|
/* @__PURE__ */ r.jsxs(re, { x: !0, align: "center", justify: "center", size: "tiny", children: [
|
|
12695
|
-
/* @__PURE__ */ r.jsx(
|
|
12696
|
-
/* @__PURE__ */ r.jsx(
|
|
12695
|
+
/* @__PURE__ */ r.jsx(Bt, { selected: s === "left", onClick: l({ outer: "left" }) }),
|
|
12696
|
+
/* @__PURE__ */ r.jsx(Bc, { hideInner: n, value: e, onChange: o }),
|
|
12697
12697
|
/* @__PURE__ */ r.jsx(
|
|
12698
|
-
|
|
12698
|
+
Bt,
|
|
12699
12699
|
{
|
|
12700
12700
|
selected: s === "right",
|
|
12701
12701
|
onClick: l({ outer: "right" })
|
|
@@ -12703,7 +12703,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12703
12703
|
)
|
|
12704
12704
|
] }),
|
|
12705
12705
|
/* @__PURE__ */ r.jsx(
|
|
12706
|
-
|
|
12706
|
+
Bt,
|
|
12707
12707
|
{
|
|
12708
12708
|
selected: s === "bottom",
|
|
12709
12709
|
onClick: l({ outer: "bottom" })
|
|
@@ -12712,7 +12712,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12712
12712
|
]
|
|
12713
12713
|
}
|
|
12714
12714
|
);
|
|
12715
|
-
},
|
|
12715
|
+
}, Bc = ({
|
|
12716
12716
|
value: e,
|
|
12717
12717
|
onChange: t,
|
|
12718
12718
|
className: n,
|
|
@@ -12732,7 +12732,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12732
12732
|
...s,
|
|
12733
12733
|
children: [
|
|
12734
12734
|
/* @__PURE__ */ r.jsx(
|
|
12735
|
-
|
|
12735
|
+
Bt,
|
|
12736
12736
|
{
|
|
12737
12737
|
style: c,
|
|
12738
12738
|
disabled: o,
|
|
@@ -12743,7 +12743,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12743
12743
|
),
|
|
12744
12744
|
/* @__PURE__ */ r.jsxs(re, { x: !0, align: "center", justify: "center", children: [
|
|
12745
12745
|
/* @__PURE__ */ r.jsx(
|
|
12746
|
-
|
|
12746
|
+
Bt,
|
|
12747
12747
|
{
|
|
12748
12748
|
style: c,
|
|
12749
12749
|
disabled: o,
|
|
@@ -12752,7 +12752,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12752
12752
|
}
|
|
12753
12753
|
),
|
|
12754
12754
|
/* @__PURE__ */ r.jsx(
|
|
12755
|
-
|
|
12755
|
+
Bt,
|
|
12756
12756
|
{
|
|
12757
12757
|
style: c,
|
|
12758
12758
|
disabled: o,
|
|
@@ -12762,7 +12762,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12762
12762
|
)
|
|
12763
12763
|
] }),
|
|
12764
12764
|
/* @__PURE__ */ r.jsx(
|
|
12765
|
-
|
|
12765
|
+
Bt,
|
|
12766
12766
|
{
|
|
12767
12767
|
style: c,
|
|
12768
12768
|
disabled: o,
|
|
@@ -12774,7 +12774,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12774
12774
|
]
|
|
12775
12775
|
}
|
|
12776
12776
|
);
|
|
12777
|
-
},
|
|
12777
|
+
}, Bt = ({ selected: e, className: t, ...n }) => /* @__PURE__ */ r.jsx(
|
|
12778
12778
|
We,
|
|
12779
12779
|
{
|
|
12780
12780
|
variant: "text",
|
|
@@ -12992,7 +12992,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
12992
12992
|
[e]
|
|
12993
12993
|
), n = kn({ tabs: ql, content: t });
|
|
12994
12994
|
return /* @__PURE__ */ r.jsx(sn, { ...n });
|
|
12995
|
-
}, It = { y: 2, x: 0.25 }, Qn = { lower: 0, upper: 2e3 },
|
|
12995
|
+
}, It = { y: 2, x: 0.25 }, Qn = { lower: 0, upper: 2e3 }, zc = { lower: 0, upper: 51 }, Vf = ({
|
|
12996
12996
|
includeBorderRadius: e = !1,
|
|
12997
12997
|
includeStrokeWidth: t = !1
|
|
12998
12998
|
}) => /* @__PURE__ */ r.jsxs(Ge, { x: !0, align: "stretch", children: [
|
|
@@ -13013,7 +13013,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
13013
13013
|
He,
|
|
13014
13014
|
{
|
|
13015
13015
|
dragScale: It,
|
|
13016
|
-
bounds:
|
|
13016
|
+
bounds: zc,
|
|
13017
13017
|
endContent: "%",
|
|
13018
13018
|
...n
|
|
13019
13019
|
}
|
|
@@ -13032,7 +13032,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
13032
13032
|
He,
|
|
13033
13033
|
{
|
|
13034
13034
|
dragScale: It,
|
|
13035
|
-
bounds:
|
|
13035
|
+
bounds: zc,
|
|
13036
13036
|
endContent: "%",
|
|
13037
13037
|
...n
|
|
13038
13038
|
}
|
|
@@ -14870,7 +14870,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
14870
14870
|
] })
|
|
14871
14871
|
}
|
|
14872
14872
|
);
|
|
14873
|
-
},
|
|
14873
|
+
}, Bw = 20, zw = (e, t, n = 0, o = 4) => {
|
|
14874
14874
|
const s = 2 * Math.PI / e, l = n * Math.PI / 180, i = t / (2 * Math.sin(Math.PI / e)), c = i + o / 2;
|
|
14875
14875
|
return Array.from({ length: e }).map((a, u) => {
|
|
14876
14876
|
const d = s * u + l - Math.PI / 2;
|
|
@@ -14900,7 +14900,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
14900
14900
|
...a
|
|
14901
14901
|
}) => {
|
|
14902
14902
|
const u = Mn(), d = be(() => 2 * ((c ?? 2) + 1), [c]), f = be(
|
|
14903
|
-
() =>
|
|
14903
|
+
() => zw(e, t, n, d),
|
|
14904
14904
|
[e, t, n, d]
|
|
14905
14905
|
), h = be(
|
|
14906
14906
|
() => Ow(f, t, i ?? 0),
|
|
@@ -16097,7 +16097,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
16097
16097
|
]
|
|
16098
16098
|
}
|
|
16099
16099
|
)
|
|
16100
|
-
] }),
|
|
16100
|
+
] }), Bh = ({
|
|
16101
16101
|
height: e = 86,
|
|
16102
16102
|
orientation: t = "left",
|
|
16103
16103
|
color: n,
|
|
@@ -16127,7 +16127,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
16127
16127
|
]
|
|
16128
16128
|
}
|
|
16129
16129
|
)
|
|
16130
|
-
] }),
|
|
16130
|
+
] }), zh = ({
|
|
16131
16131
|
height: e = 86,
|
|
16132
16132
|
className: t,
|
|
16133
16133
|
orientation: n = "left",
|
|
@@ -18393,8 +18393,8 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
18393
18393
|
] }), Gw = ({ aetherKey: e, source: t, sink: n }) => {
|
|
18394
18394
|
const o = qe({ source: t, sink: n }), [, { value: s }, l] = $e({
|
|
18395
18395
|
aetherKey: e,
|
|
18396
|
-
type:
|
|
18397
|
-
schema:
|
|
18396
|
+
type: zm.TYPE,
|
|
18397
|
+
schema: Bm,
|
|
18398
18398
|
initialState: {
|
|
18399
18399
|
trigger: 0,
|
|
18400
18400
|
value: 0,
|
|
@@ -18603,13 +18603,13 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
18603
18603
|
);
|
|
18604
18604
|
};
|
|
18605
18605
|
return t.displayName = e.displayName, t;
|
|
18606
|
-
}, k1 = Me(Zf), L1 = Me(Wf), P1 = Me(Yf), N1 = Me(Hf), T1 = Me(qf), I1 = Me(rh), A1 = Me(d1), $1 = Me(f1),
|
|
18606
|
+
}, k1 = Me(Zf), L1 = Me(Wf), P1 = Me(Yf), N1 = Me(Hf), T1 = Me(qf), I1 = Me(rh), A1 = Me(d1), $1 = Me(f1), B1 = Me(Eh), z1 = Me(Mh), O1 = Me(kh), R1 = Me(Ph), D1 = Me(Ah), V1 = Me($h), F1 = Me(Bh), H1 = Me(zh), Z1 = Me(Oh), W1 = Me(Rh), Y1 = Me(_h), G1 = Me(h1), X1 = Me(p1), K1 = Me(g1), U1 = Me(m1), q1 = Me(x1), Q1 = Me(y1), J1 = Me(th), ep = Me(nh), tp = Me(Qf), np = Me(Jf), op = Me(eh), rp = ue(gh), sp = ue(mh), lp = ue(Th), ip = ue(
|
|
18607
18607
|
Ih
|
|
18608
18608
|
), cp = ue(sh), ap = ue(ih), up = ue(ch), dp = ue(dh), fp = ue(Xf), hp = ue(Kf), pp = ue(Uf), gp = ue(xh), mp = Me(bh), xp = ue(Vh), yp = ue(uh), jp = ue(Fh), wp = ue(Hh), bp = ue(Zh), vp = ue(lh), Sp = ue(Xh), Cp = ue(Kh), _p = ue(Lh), Ep = ue(Uh), Mp = ue(
|
|
18609
18609
|
qh
|
|
18610
18610
|
), kp = ue(Qh), Lp = ue(Jh), Pp = ue(e1), Np = ue(t1), Tp = ue(n1), Ip = ue(
|
|
18611
18611
|
o1
|
|
18612
|
-
), Ap = ue(r1), $p = ue(s1),
|
|
18612
|
+
), Ap = ue(r1), $p = ue(s1), Bp = ue(l1), zp = ue(i1), Op = ue(c1), Rp = ue(a1), Dp = ue(
|
|
18613
18613
|
u1
|
|
18614
18614
|
), Vp = ue(j1), Fp = ue(b1), Hp = ue(
|
|
18615
18615
|
w1
|
|
@@ -19255,7 +19255,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
19255
19255
|
Form: mw,
|
|
19256
19256
|
defaultProps: (e) => ({
|
|
19257
19257
|
numSides: 6,
|
|
19258
|
-
sideLength:
|
|
19258
|
+
sideLength: Bw,
|
|
19259
19259
|
cornerRounding: 0,
|
|
19260
19260
|
rotation: 0,
|
|
19261
19261
|
color: e.colors.gray.l11,
|
|
@@ -19492,7 +19492,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
19492
19492
|
}),
|
|
19493
19493
|
Preview: dh,
|
|
19494
19494
|
zIndex: X
|
|
19495
|
-
},
|
|
19495
|
+
}, Bb = {
|
|
19496
19496
|
name: "Flow Straightener",
|
|
19497
19497
|
key: "flowStraightener",
|
|
19498
19498
|
Form: pe,
|
|
@@ -19504,7 +19504,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
19504
19504
|
}),
|
|
19505
19505
|
Preview: Hh,
|
|
19506
19506
|
zIndex: X
|
|
19507
|
-
},
|
|
19507
|
+
}, zb = {
|
|
19508
19508
|
name: "Heater Element",
|
|
19509
19509
|
key: "heaterElement",
|
|
19510
19510
|
Form: pe,
|
|
@@ -19609,7 +19609,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
19609
19609
|
}, Wb = {
|
|
19610
19610
|
name: "Vacuum Pump",
|
|
19611
19611
|
key: "vacuumPump",
|
|
19612
|
-
Symbol:
|
|
19612
|
+
Symbol: B1,
|
|
19613
19613
|
Form: Ee,
|
|
19614
19614
|
defaultProps: (e) => ({
|
|
19615
19615
|
color: e.colors.gray.l11,
|
|
@@ -19633,7 +19633,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
19633
19633
|
}, Gb = {
|
|
19634
19634
|
name: "Cavity Pump",
|
|
19635
19635
|
key: "cavityPump",
|
|
19636
|
-
Symbol:
|
|
19636
|
+
Symbol: z1,
|
|
19637
19637
|
Form: Ee,
|
|
19638
19638
|
defaultProps: (e) => ({
|
|
19639
19639
|
color: e.colors.gray.l11,
|
|
@@ -19739,7 +19739,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
19739
19739
|
...W("Flat Blade Agitator"),
|
|
19740
19740
|
...ke
|
|
19741
19741
|
}),
|
|
19742
|
-
Preview:
|
|
19742
|
+
Preview: Bh,
|
|
19743
19743
|
zIndex: X
|
|
19744
19744
|
}, nv = {
|
|
19745
19745
|
name: "Paddle Agitator",
|
|
@@ -19751,7 +19751,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
19751
19751
|
...W("Paddle Agitator"),
|
|
19752
19752
|
...ke
|
|
19753
19753
|
}),
|
|
19754
|
-
Preview:
|
|
19754
|
+
Preview: zh,
|
|
19755
19755
|
zIndex: X
|
|
19756
19756
|
}, ov = {
|
|
19757
19757
|
name: "Cross Beam Agitator",
|
|
@@ -19991,7 +19991,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
19991
19991
|
name: "Flowmeter Float Sensor",
|
|
19992
19992
|
key: "flowmeterFloatSensor",
|
|
19993
19993
|
Form: pe,
|
|
19994
|
-
Symbol:
|
|
19994
|
+
Symbol: Bp,
|
|
19995
19995
|
defaultProps: (e) => ({
|
|
19996
19996
|
color: e.colors.gray.l11,
|
|
19997
19997
|
...W("Float Sensor Flowmeter"),
|
|
@@ -20003,7 +20003,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
20003
20003
|
name: "Flowmeter Orifice",
|
|
20004
20004
|
key: "flowmeterOrifice",
|
|
20005
20005
|
Form: pe,
|
|
20006
|
-
Symbol:
|
|
20006
|
+
Symbol: zp,
|
|
20007
20007
|
defaultProps: (e) => ({
|
|
20008
20008
|
color: e.colors.gray.l11,
|
|
20009
20009
|
...W("Orifice Flowmeter"),
|
|
@@ -20155,7 +20155,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
20155
20155
|
}),
|
|
20156
20156
|
Preview: b1,
|
|
20157
20157
|
zIndex: X
|
|
20158
|
-
},
|
|
20158
|
+
}, Bv = {
|
|
20159
20159
|
name: "Flame Arrestor (Detonation-Proof)",
|
|
20160
20160
|
key: "flameArrestorDetonation",
|
|
20161
20161
|
Form: pe,
|
|
@@ -20167,7 +20167,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
20167
20167
|
}),
|
|
20168
20168
|
Preview: w1,
|
|
20169
20169
|
zIndex: X
|
|
20170
|
-
},
|
|
20170
|
+
}, zv = {
|
|
20171
20171
|
name: "Flame Arrestor (Fire Resistant)",
|
|
20172
20172
|
key: "flameArrestorFireRes",
|
|
20173
20173
|
Form: pe,
|
|
@@ -20296,8 +20296,8 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
20296
20296
|
isoCap: Nb,
|
|
20297
20297
|
filter: $b,
|
|
20298
20298
|
isoFilter: Ab,
|
|
20299
|
-
flowStraightener:
|
|
20300
|
-
heaterElement:
|
|
20299
|
+
flowStraightener: Bb,
|
|
20300
|
+
heaterElement: zb,
|
|
20301
20301
|
orifice: Db,
|
|
20302
20302
|
orificePlate: Ib,
|
|
20303
20303
|
agitator: Jb,
|
|
@@ -20327,8 +20327,8 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
20327
20327
|
heatExchangerStraightTube: Ev,
|
|
20328
20328
|
flameArrestor: Av,
|
|
20329
20329
|
flameArrestorExplosion: $v,
|
|
20330
|
-
flameArrestorDetonation:
|
|
20331
|
-
flameArrestorFireRes:
|
|
20330
|
+
flameArrestorDetonation: Bv,
|
|
20331
|
+
flameArrestorFireRes: zv,
|
|
20332
20332
|
flameArrestorFireResDetonation: Ov,
|
|
20333
20333
|
thruster: Rv,
|
|
20334
20334
|
nozzle: Dv,
|
|
@@ -20350,7 +20350,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
20350
20350
|
Button: h0,
|
|
20351
20351
|
ButtonPreview: p0,
|
|
20352
20352
|
Cap: ap,
|
|
20353
|
-
CavityPump:
|
|
20353
|
+
CavityPump: z1,
|
|
20354
20354
|
CentrifugalCompressor: Q1,
|
|
20355
20355
|
CheckValve: fp,
|
|
20356
20356
|
CheckValveWithArrow: pp,
|
|
@@ -20375,10 +20375,10 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
20375
20375
|
FlowStraightener: wp,
|
|
20376
20376
|
FlowmeterCoriolis: Lp,
|
|
20377
20377
|
FlowmeterElectromagnetic: Mp,
|
|
20378
|
-
FlowmeterFloatSensor:
|
|
20378
|
+
FlowmeterFloatSensor: Bp,
|
|
20379
20379
|
FlowmeterGeneral: Ep,
|
|
20380
20380
|
FlowmeterNozzle: Pp,
|
|
20381
|
-
FlowmeterOrifice:
|
|
20381
|
+
FlowmeterOrifice: zp,
|
|
20382
20382
|
FlowmeterPositiveDisplacement: Ip,
|
|
20383
20383
|
FlowmeterPulse: $p,
|
|
20384
20384
|
FlowmeterRingPiston: Tp,
|
|
@@ -20434,7 +20434,7 @@ const sw = ["Backspace", "Delete"], lw = ({
|
|
|
20434
20434
|
Thruster: Yp,
|
|
20435
20435
|
Triangle: Kw,
|
|
20436
20436
|
TurboCompressor: X1,
|
|
20437
|
-
VacuumPump:
|
|
20437
|
+
VacuumPump: B1,
|
|
20438
20438
|
Value: d0,
|
|
20439
20439
|
ValuePreview: f0,
|
|
20440
20440
|
Valve: L1,
|
|
@@ -20456,20 +20456,20 @@ export {
|
|
|
20456
20456
|
US as Channel,
|
|
20457
20457
|
m_ as Color,
|
|
20458
20458
|
aC as Control,
|
|
20459
|
-
|
|
20459
|
+
zt as DataType,
|
|
20460
20460
|
SC as Density,
|
|
20461
20461
|
JS as Device,
|
|
20462
20462
|
xC as Diagram,
|
|
20463
20463
|
f_ as Dialog,
|
|
20464
20464
|
KC as Divider,
|
|
20465
20465
|
h_ as Dropdown,
|
|
20466
|
-
|
|
20466
|
+
BS as Eraser,
|
|
20467
20467
|
QS as Form,
|
|
20468
20468
|
AC as Generic,
|
|
20469
20469
|
c_ as Haul,
|
|
20470
20470
|
PC as Header,
|
|
20471
20471
|
ZC as Icon,
|
|
20472
|
-
|
|
20472
|
+
BC as Input,
|
|
20473
20473
|
tC as Label,
|
|
20474
20474
|
VS as Legend,
|
|
20475
20475
|
FS as Line,
|
|
@@ -20481,7 +20481,7 @@ export {
|
|
|
20481
20481
|
p_ as Modal,
|
|
20482
20482
|
oC as Mosaic,
|
|
20483
20483
|
CC as MultiSeries,
|
|
20484
|
-
|
|
20484
|
+
zS as Nav,
|
|
20485
20485
|
rC as Note,
|
|
20486
20486
|
sC as OS,
|
|
20487
20487
|
qS as Observe,
|
|
@@ -20531,7 +20531,7 @@ export {
|
|
|
20531
20531
|
Xo as preventDefault,
|
|
20532
20532
|
S_ as proxyMemo,
|
|
20533
20533
|
TC as state,
|
|
20534
|
-
|
|
20534
|
+
zC as stopPropagation,
|
|
20535
20535
|
l_ as telem,
|
|
20536
20536
|
E_ as unitProperty,
|
|
20537
20537
|
Ct as useAsyncEffect,
|