@a2simcode/dui 0.0.13 → 0.0.15
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/dui.es.js +482 -476
- package/dist/dui.umd.js +1 -1
- package/package.json +1 -1
package/dist/dui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as bt, ref as he, onMounted as gt, nextTick as Ye, onUnmounted as Xr, defineComponent as Ee, shallowRef as $t, watch as De, h as $e, computed as ce, openBlock as te, createElementBlock as ue, mergeProps as Wt, createVNode as me, unref as J, withModifiers as We, normalizeClass as vt, createBlock as Ie, createCommentVNode as Me, toDisplayString as yt, renderSlot as Ae, resolveComponent as ze, createElementVNode as fe, withCtx as Se, Fragment as Le, renderList as Dt, resolveDynamicComponent as It, normalizeStyle as Pe, getCurrentScope as il, effectScope as rl, provide as Xt, useSlots as fc, createPropsRestProxy as hc, toRef as Oe, useAttrs as gc, Teleport as pc, getCurrentInstance as Bn, reactive as gi, onScopeDispose as Bo, onBeforeMount as mc, onBeforeUnmount as qr, isMemoSame as vc, createTextVNode as En, isRef as Kr, toRefs as yc, customRef as bc, toValue as
|
|
1
|
+
import { inject as bt, ref as he, onMounted as gt, nextTick as Ye, onUnmounted as Xr, defineComponent as Ee, shallowRef as $t, watch as De, h as $e, computed as ce, openBlock as te, createElementBlock as ue, mergeProps as Wt, createVNode as me, unref as J, withModifiers as We, normalizeClass as vt, createBlock as Ie, createCommentVNode as Me, toDisplayString as yt, renderSlot as Ae, resolveComponent as ze, createElementVNode as fe, withCtx as Se, Fragment as Le, renderList as Dt, resolveDynamicComponent as It, normalizeStyle as Pe, getCurrentScope as il, effectScope as rl, provide as Xt, useSlots as fc, createPropsRestProxy as hc, toRef as Oe, useAttrs as gc, Teleport as pc, getCurrentInstance as Bn, reactive as gi, onScopeDispose as Bo, onBeforeMount as mc, onBeforeUnmount as qr, isMemoSame as vc, createTextVNode as En, isRef as Kr, toRefs as yc, customRef as bc, toValue as ke, markRaw as Lo, readonly as _c, withDirectives as pi, vShow as mi, normalizeProps as sl, guardReactiveProps as wc } from "vue";
|
|
2
2
|
const Ln = (t, e) => (t.install = (n) => {
|
|
3
3
|
n.component(t.name, t), e && e.forEach((o) => {
|
|
4
4
|
n.component(o.name, o);
|
|
@@ -41,7 +41,7 @@ const Ln = (t, e) => (t.install = (n) => {
|
|
|
41
41
|
o && delete o[e];
|
|
42
42
|
} else
|
|
43
43
|
delete n[t];
|
|
44
|
-
},
|
|
44
|
+
}, Ts = (t, e) => Ec(t, e, Zr), Ge = (t, e) => Cc(t, e, Zr), Dc = (t, e) => {
|
|
45
45
|
Sc(t, e, Zr);
|
|
46
46
|
}, al = (t, e, n, o, i, r) => {
|
|
47
47
|
const s = e.id, a = e.level, {
|
|
@@ -85,7 +85,7 @@ const Ln = (t, e) => (t.install = (n) => {
|
|
|
85
85
|
// typex: lx1 > lx2 ? 'bottom' : 'top',
|
|
86
86
|
lallx: re + le
|
|
87
87
|
};
|
|
88
|
-
}, x = (X, ee, se) => X >= se[0].x && X <= se[1].x && ee >= se[0].y && ee <= se[3].y,
|
|
88
|
+
}, x = (X, ee, se) => X >= se[0].x && X <= se[1].x && ee >= se[0].y && ee <= se[3].y, k = () => {
|
|
89
89
|
if (i) {
|
|
90
90
|
Ge("dragClick", {
|
|
91
91
|
id: s
|
|
@@ -129,7 +129,7 @@ const Ln = (t, e) => (t.install = (n) => {
|
|
|
129
129
|
},
|
|
130
130
|
// 广播点击事件
|
|
131
131
|
dragClick({ id: X, isAgain: ee }) {
|
|
132
|
-
console.log("dragClick", X, s), X !== s ? $.value = !1 : (ee && ($.value = !1),
|
|
132
|
+
console.log("dragClick", X, s), X !== s ? $.value = !1 : (ee && ($.value = !1), k());
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
V[`dragGetChildDistance_${s}`] = ({
|
|
@@ -224,11 +224,11 @@ const Ln = (t, e) => (t.install = (n) => {
|
|
|
224
224
|
}, Q = {};
|
|
225
225
|
return gt(() => {
|
|
226
226
|
(!i || n !== "container") && Object.keys(V).forEach((X) => {
|
|
227
|
-
Q[X] =
|
|
227
|
+
Q[X] = Ts(X, V[X]);
|
|
228
228
|
}), n === "container" && Object.keys(K).forEach((X) => {
|
|
229
|
-
Q[X] =
|
|
229
|
+
Q[X] = Ts(X, K[X]);
|
|
230
230
|
}), e.isNewAdd && Ye(() => {
|
|
231
|
-
|
|
231
|
+
k(), delete e.isNewAdd;
|
|
232
232
|
});
|
|
233
233
|
}), Xr(() => {
|
|
234
234
|
Object.keys(Q).forEach((X) => {
|
|
@@ -237,7 +237,7 @@ const Ln = (t, e) => (t.install = (n) => {
|
|
|
237
237
|
}), {
|
|
238
238
|
onMouseenter: M,
|
|
239
239
|
onMouseleave: z,
|
|
240
|
-
activeComponent:
|
|
240
|
+
activeComponent: k,
|
|
241
241
|
handleComponentClick: L,
|
|
242
242
|
deleteComponentByClick: O,
|
|
243
243
|
copyComponent: S,
|
|
@@ -374,19 +374,19 @@ const Ln = (t, e) => (t.install = (n) => {
|
|
|
374
374
|
body: "",
|
|
375
375
|
hidden: !1
|
|
376
376
|
});
|
|
377
|
-
function
|
|
377
|
+
function kc(t, e) {
|
|
378
378
|
const n = {};
|
|
379
379
|
!t.hFlip != !e.hFlip && (n.hFlip = !0), !t.vFlip != !e.vFlip && (n.vFlip = !0);
|
|
380
380
|
const o = ((t.rotate || 0) + (e.rotate || 0)) % 4;
|
|
381
381
|
return o && (n.rotate = o), n;
|
|
382
382
|
}
|
|
383
383
|
function Is(t, e) {
|
|
384
|
-
const n =
|
|
384
|
+
const n = kc(t, e);
|
|
385
385
|
for (const o in Er)
|
|
386
386
|
o in vi ? o in t && !(o in n) && (n[o] = vi[o]) : o in e ? n[o] = e[o] : o in t && (n[o] = t[o]);
|
|
387
387
|
return n;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Tc(t, e) {
|
|
390
390
|
const n = t.icons, o = t.aliases || /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null);
|
|
391
391
|
function r(s) {
|
|
392
392
|
if (n[s])
|
|
@@ -418,7 +418,7 @@ function dl(t, e) {
|
|
|
418
418
|
t.not_found instanceof Array && t.not_found.forEach((i) => {
|
|
419
419
|
e(i, null), n.push(i);
|
|
420
420
|
});
|
|
421
|
-
const o =
|
|
421
|
+
const o = Tc(t);
|
|
422
422
|
for (const i in o) {
|
|
423
423
|
const r = o[i];
|
|
424
424
|
r && (e(i, Ic(t, i, r)), n.push(i));
|
|
@@ -1546,7 +1546,7 @@ const Sd = {
|
|
|
1546
1546
|
}), null, 16, ["height", "width", "style"])
|
|
1547
1547
|
], 16));
|
|
1548
1548
|
}
|
|
1549
|
-
}), Dd = ["disabled"], Nd = { key: 2 },
|
|
1549
|
+
}), Dd = ["disabled"], Nd = { key: 2 }, kd = /* @__PURE__ */ Ee({
|
|
1550
1550
|
name: "JButton",
|
|
1551
1551
|
__name: "button",
|
|
1552
1552
|
props: {
|
|
@@ -1636,7 +1636,7 @@ const Sd = {
|
|
|
1636
1636
|
Ae(f.$slots, "iconAfter")
|
|
1637
1637
|
], 10, Dd));
|
|
1638
1638
|
}
|
|
1639
|
-
}), Cn = Nc(
|
|
1639
|
+
}), Cn = Nc(kd), Td = { class: "d-drag-btns-pname" }, Id = {
|
|
1640
1640
|
key: 0,
|
|
1641
1641
|
class: "d-drag-mask"
|
|
1642
1642
|
}, ts = /* @__PURE__ */ Ee({
|
|
@@ -1700,7 +1700,7 @@ const Sd = {
|
|
|
1700
1700
|
size: "small",
|
|
1701
1701
|
label: t.componentData.name
|
|
1702
1702
|
}, null, 8, ["label"]),
|
|
1703
|
-
fe("div",
|
|
1703
|
+
fe("div", Td, [
|
|
1704
1704
|
(te(!0), ue(Le, null, Dt(J(l)(t.componentData.containerId), (A) => (te(), ue("div", {
|
|
1705
1705
|
key: A.id
|
|
1706
1706
|
}, [
|
|
@@ -2139,7 +2139,7 @@ function Nr(t, e = !1) {
|
|
|
2139
2139
|
}
|
|
2140
2140
|
};
|
|
2141
2141
|
}
|
|
2142
|
-
function
|
|
2142
|
+
function kr(t) {
|
|
2143
2143
|
return Nr(t);
|
|
2144
2144
|
}
|
|
2145
2145
|
function Gd(t) {
|
|
@@ -2306,10 +2306,10 @@ function js(t, e, n) {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
return n != null && t.push({ name: e, value: n }), t;
|
|
2308
2308
|
}
|
|
2309
|
-
var
|
|
2309
|
+
var Tr = "http://www.w3.org/1999/xhtml";
|
|
2310
2310
|
const Us = {
|
|
2311
2311
|
svg: "http://www.w3.org/2000/svg",
|
|
2312
|
-
xhtml:
|
|
2312
|
+
xhtml: Tr,
|
|
2313
2313
|
xlink: "http://www.w3.org/1999/xlink",
|
|
2314
2314
|
xml: "http://www.w3.org/XML/1998/namespace",
|
|
2315
2315
|
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
@@ -2321,7 +2321,7 @@ function Li(t) {
|
|
|
2321
2321
|
function qd(t) {
|
|
2322
2322
|
return function() {
|
|
2323
2323
|
var e = this.ownerDocument, n = this.namespaceURI;
|
|
2324
|
-
return n ===
|
|
2324
|
+
return n === Tr && e.documentElement.namespaceURI === Tr ? e.createElement(t) : e.createElementNS(n, t);
|
|
2325
2325
|
};
|
|
2326
2326
|
}
|
|
2327
2327
|
function Kd(t) {
|
|
@@ -2329,7 +2329,7 @@ function Kd(t) {
|
|
|
2329
2329
|
return this.ownerDocument.createElementNS(t.space, t.local);
|
|
2330
2330
|
};
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2332
|
+
function kl(t) {
|
|
2333
2333
|
var e = Li(t);
|
|
2334
2334
|
return (e.local ? Kd : qd)(e);
|
|
2335
2335
|
}
|
|
@@ -2353,7 +2353,7 @@ function Qd(t) {
|
|
|
2353
2353
|
function ef() {
|
|
2354
2354
|
return [];
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function Tl(t) {
|
|
2357
2357
|
return t == null ? ef : function() {
|
|
2358
2358
|
return this.querySelectorAll(t);
|
|
2359
2359
|
};
|
|
@@ -2364,7 +2364,7 @@ function tf(t) {
|
|
|
2364
2364
|
};
|
|
2365
2365
|
}
|
|
2366
2366
|
function nf(t) {
|
|
2367
|
-
typeof t == "function" ? t = tf(t) : t =
|
|
2367
|
+
typeof t == "function" ? t = tf(t) : t = Tl(t);
|
|
2368
2368
|
for (var e = this._groups, n = e.length, o = [], i = [], r = 0; r < n; ++r)
|
|
2369
2369
|
for (var s = e[r], a = s.length, c, l = 0; l < a; ++l)
|
|
2370
2370
|
(c = s[l]) && (o.push(t.call(c, c.__data__, l, s)), i.push(c));
|
|
@@ -2521,7 +2521,7 @@ function Df() {
|
|
|
2521
2521
|
function Nf() {
|
|
2522
2522
|
return Array.from(this);
|
|
2523
2523
|
}
|
|
2524
|
-
function
|
|
2524
|
+
function kf() {
|
|
2525
2525
|
for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
|
|
2526
2526
|
for (var o = t[e], i = 0, r = o.length; i < r; ++i) {
|
|
2527
2527
|
var s = o[i];
|
|
@@ -2530,7 +2530,7 @@ function Tf() {
|
|
|
2530
2530
|
}
|
|
2531
2531
|
return null;
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function Tf() {
|
|
2534
2534
|
let t = 0;
|
|
2535
2535
|
for (const e of this)
|
|
2536
2536
|
++t;
|
|
@@ -2731,7 +2731,7 @@ function lh() {
|
|
|
2731
2731
|
return this.each(ah);
|
|
2732
2732
|
}
|
|
2733
2733
|
function uh(t) {
|
|
2734
|
-
var e = typeof t == "function" ? t :
|
|
2734
|
+
var e = typeof t == "function" ? t : kl(t);
|
|
2735
2735
|
return this.select(function() {
|
|
2736
2736
|
return this.appendChild(e.apply(this, arguments));
|
|
2737
2737
|
});
|
|
@@ -2740,7 +2740,7 @@ function ch() {
|
|
|
2740
2740
|
return null;
|
|
2741
2741
|
}
|
|
2742
2742
|
function dh(t, e) {
|
|
2743
|
-
var n = typeof t == "function" ? t :
|
|
2743
|
+
var n = typeof t == "function" ? t : kl(t), o = e == null ? ch : typeof e == "function" ? e : ns(e);
|
|
2744
2744
|
return this.select(function() {
|
|
2745
2745
|
return this.insertBefore(n.apply(this, arguments), o.apply(this, arguments) || null);
|
|
2746
2746
|
});
|
|
@@ -2865,8 +2865,8 @@ ht.prototype = bo.prototype = {
|
|
|
2865
2865
|
sort: Cf,
|
|
2866
2866
|
call: Df,
|
|
2867
2867
|
nodes: Nf,
|
|
2868
|
-
node:
|
|
2869
|
-
size:
|
|
2868
|
+
node: kf,
|
|
2869
|
+
size: Tf,
|
|
2870
2870
|
empty: If,
|
|
2871
2871
|
each: Mf,
|
|
2872
2872
|
attr: Hf,
|
|
@@ -2889,14 +2889,14 @@ ht.prototype = bo.prototype = {
|
|
|
2889
2889
|
function Et(t) {
|
|
2890
2890
|
return typeof t == "string" ? new ht([[document.querySelector(t)]], [document.documentElement]) : new ht([[t]], Bl);
|
|
2891
2891
|
}
|
|
2892
|
-
function
|
|
2892
|
+
function kh(t) {
|
|
2893
2893
|
let e;
|
|
2894
2894
|
for (; e = t.sourceEvent; )
|
|
2895
2895
|
t = e;
|
|
2896
2896
|
return t;
|
|
2897
2897
|
}
|
|
2898
|
-
function
|
|
2899
|
-
if (t =
|
|
2898
|
+
function kt(t, e) {
|
|
2899
|
+
if (t = kh(t), e === void 0 && (e = t.currentTarget), e) {
|
|
2900
2900
|
var n = e.ownerSVGElement || e;
|
|
2901
2901
|
if (n.createSVGPoint) {
|
|
2902
2902
|
var o = n.createSVGPoint();
|
|
@@ -2909,7 +2909,7 @@ function Tt(t, e) {
|
|
|
2909
2909
|
}
|
|
2910
2910
|
return [t.pageX, t.pageY];
|
|
2911
2911
|
}
|
|
2912
|
-
const
|
|
2912
|
+
const Th = { passive: !1 }, lo = { capture: !0, passive: !1 };
|
|
2913
2913
|
function tr(t) {
|
|
2914
2914
|
t.stopImmediatePropagation();
|
|
2915
2915
|
}
|
|
@@ -2972,7 +2972,7 @@ function Ah() {
|
|
|
2972
2972
|
function Ph() {
|
|
2973
2973
|
var t = Ih, e = Mh, n = $h, o = Ah, i = {}, r = Bi("start", "drag", "end"), s = 0, a, c, l, u, d = 0;
|
|
2974
2974
|
function f(w) {
|
|
2975
|
-
w.on("mousedown.drag", h).filter(o).on("touchstart.drag", v).on("touchmove.drag", S,
|
|
2975
|
+
w.on("mousedown.drag", h).filter(o).on("touchstart.drag", v).on("touchmove.drag", S, Th).on("touchend.drag touchcancel.drag", _).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
2976
2976
|
}
|
|
2977
2977
|
function h(w, A) {
|
|
2978
2978
|
if (!(u || !t.call(this, w, A))) {
|
|
@@ -3010,7 +3010,7 @@ function Ph() {
|
|
|
3010
3010
|
(U = i[A[F].identifier]) && (tr(w), U("end", w, A[F]));
|
|
3011
3011
|
}
|
|
3012
3012
|
function g(w, A, $, F, U, Y) {
|
|
3013
|
-
var C = r.copy(), I =
|
|
3013
|
+
var C = r.copy(), I = kt(Y || $, A), E, H, b;
|
|
3014
3014
|
if ((b = n.call(w, new Ir("beforestart", {
|
|
3015
3015
|
sourceEvent: $,
|
|
3016
3016
|
target: f,
|
|
@@ -3022,7 +3022,7 @@ function Ph() {
|
|
|
3022
3022
|
dy: 0,
|
|
3023
3023
|
dispatch: C
|
|
3024
3024
|
}), F)) != null)
|
|
3025
|
-
return E = b.x - I[0] || 0, H = b.y - I[1] || 0, function D(y, x,
|
|
3025
|
+
return E = b.x - I[0] || 0, H = b.y - I[1] || 0, function D(y, x, k) {
|
|
3026
3026
|
var O = I, R;
|
|
3027
3027
|
switch (y) {
|
|
3028
3028
|
case "start":
|
|
@@ -3031,7 +3031,7 @@ function Ph() {
|
|
|
3031
3031
|
case "end":
|
|
3032
3032
|
delete i[U], --s;
|
|
3033
3033
|
case "drag":
|
|
3034
|
-
I =
|
|
3034
|
+
I = kt(k || x, A), R = s;
|
|
3035
3035
|
break;
|
|
3036
3036
|
}
|
|
3037
3037
|
C.call(
|
|
@@ -3079,7 +3079,7 @@ function Vl(t, e) {
|
|
|
3079
3079
|
}
|
|
3080
3080
|
function _o() {
|
|
3081
3081
|
}
|
|
3082
|
-
var uo = 0.7, bi = 1 / uo,
|
|
3082
|
+
var uo = 0.7, bi = 1 / uo, kn = "\\s*([+-]?\\d+)\\s*", co = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", At = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", zh = /^#([0-9a-f]{3,8})$/, Oh = new RegExp(`^rgb\\(${kn},${kn},${kn}\\)$`), Rh = new RegExp(`^rgb\\(${At},${At},${At}\\)$`), Hh = new RegExp(`^rgba\\(${kn},${kn},${kn},${co}\\)$`), Bh = new RegExp(`^rgba\\(${At},${At},${At},${co}\\)$`), Lh = new RegExp(`^hsl\\(${co},${At},${At}\\)$`), Fh = new RegExp(`^hsla\\(${co},${At},${At},${co}\\)$`), Xs = {
|
|
3083
3083
|
aliceblue: 15792383,
|
|
3084
3084
|
antiquewhite: 16444375,
|
|
3085
3085
|
aqua: 65535,
|
|
@@ -3433,7 +3433,7 @@ function Qh(t, e) {
|
|
|
3433
3433
|
return n.setTime(t * (1 - o) + e * o), n;
|
|
3434
3434
|
};
|
|
3435
3435
|
}
|
|
3436
|
-
function
|
|
3436
|
+
function Tt(t, e) {
|
|
3437
3437
|
return t = +t, e = +e, function(n) {
|
|
3438
3438
|
return t * (1 - n) + e * n;
|
|
3439
3439
|
};
|
|
@@ -3463,7 +3463,7 @@ function ng(t) {
|
|
|
3463
3463
|
function Yl(t, e) {
|
|
3464
3464
|
var n = $r.lastIndex = or.lastIndex = 0, o, i, r, s = -1, a = [], c = [];
|
|
3465
3465
|
for (t = t + "", e = e + ""; (o = $r.exec(t)) && (i = or.exec(e)); )
|
|
3466
|
-
(r = i.index) > n && (r = e.slice(n, r), a[s] ? a[s] += r : a[++s] = r), (o = o[0]) === (i = i[0]) ? a[s] ? a[s] += i : a[++s] = i : (a[++s] = null, c.push({ i: s, x:
|
|
3466
|
+
(r = i.index) > n && (r = e.slice(n, r), a[s] ? a[s] += r : a[++s] = r), (o = o[0]) === (i = i[0]) ? a[s] ? a[s] += i : a[++s] = i : (a[++s] = null, c.push({ i: s, x: Tt(o, i) })), n = or.lastIndex;
|
|
3467
3467
|
return n < e.length && (r = e.slice(n), a[s] ? a[s] += r : a[++s] = r), a.length < 2 ? c[0] ? ng(c[0].x) : tg(e) : (e = c.length, function(l) {
|
|
3468
3468
|
for (var u = 0, d; u < e; ++u)
|
|
3469
3469
|
a[(d = c[u]).i] = d.x(l);
|
|
@@ -3472,7 +3472,7 @@ function Yl(t, e) {
|
|
|
3472
3472
|
}
|
|
3473
3473
|
function Jn(t, e) {
|
|
3474
3474
|
var n = typeof e, o;
|
|
3475
|
-
return e == null || n === "boolean" ? rs(e) : (n === "number" ?
|
|
3475
|
+
return e == null || n === "boolean" ? rs(e) : (n === "number" ? Tt : n === "string" ? (o = mn(e)) ? (e = o, wi) : Yl : e instanceof mn ? wi : e instanceof Date ? Qh : Zh(e) ? Kh : Array.isArray(e) ? Jh : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? eg : Tt)(t, e);
|
|
3476
3476
|
}
|
|
3477
3477
|
var na = 180 / Math.PI, Ar = {
|
|
3478
3478
|
translateX: 0,
|
|
@@ -3493,13 +3493,13 @@ function jl(t, e, n, o, i, r) {
|
|
|
3493
3493
|
scaleY: a
|
|
3494
3494
|
};
|
|
3495
3495
|
}
|
|
3496
|
-
var
|
|
3496
|
+
var ko;
|
|
3497
3497
|
function og(t) {
|
|
3498
3498
|
const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + "");
|
|
3499
3499
|
return e.isIdentity ? Ar : jl(e.a, e.b, e.c, e.d, e.e, e.f);
|
|
3500
3500
|
}
|
|
3501
3501
|
function ig(t) {
|
|
3502
|
-
return t == null || (
|
|
3502
|
+
return t == null || (ko || (ko = document.createElementNS("http://www.w3.org/2000/svg", "g")), ko.setAttribute("transform", t), !(t = ko.transform.baseVal.consolidate())) ? Ar : (t = t.matrix, jl(t.a, t.b, t.c, t.d, t.e, t.f));
|
|
3503
3503
|
}
|
|
3504
3504
|
function Ul(t, e, n, o) {
|
|
3505
3505
|
function i(l) {
|
|
@@ -3508,19 +3508,19 @@ function Ul(t, e, n, o) {
|
|
|
3508
3508
|
function r(l, u, d, f, h, m) {
|
|
3509
3509
|
if (l !== d || u !== f) {
|
|
3510
3510
|
var p = h.push("translate(", null, e, null, n);
|
|
3511
|
-
m.push({ i: p - 4, x:
|
|
3511
|
+
m.push({ i: p - 4, x: Tt(l, d) }, { i: p - 2, x: Tt(u, f) });
|
|
3512
3512
|
} else (d || f) && h.push("translate(" + d + e + f + n);
|
|
3513
3513
|
}
|
|
3514
3514
|
function s(l, u, d, f) {
|
|
3515
|
-
l !== u ? (l - u > 180 ? u += 360 : u - l > 180 && (l += 360), f.push({ i: d.push(i(d) + "rotate(", null, o) - 2, x:
|
|
3515
|
+
l !== u ? (l - u > 180 ? u += 360 : u - l > 180 && (l += 360), f.push({ i: d.push(i(d) + "rotate(", null, o) - 2, x: Tt(l, u) })) : u && d.push(i(d) + "rotate(" + u + o);
|
|
3516
3516
|
}
|
|
3517
3517
|
function a(l, u, d, f) {
|
|
3518
|
-
l !== u ? f.push({ i: d.push(i(d) + "skewX(", null, o) - 2, x:
|
|
3518
|
+
l !== u ? f.push({ i: d.push(i(d) + "skewX(", null, o) - 2, x: Tt(l, u) }) : u && d.push(i(d) + "skewX(" + u + o);
|
|
3519
3519
|
}
|
|
3520
3520
|
function c(l, u, d, f, h, m) {
|
|
3521
3521
|
if (l !== d || u !== f) {
|
|
3522
3522
|
var p = h.push(i(h) + "scale(", null, ",", null, ")");
|
|
3523
|
-
m.push({ i: p - 4, x:
|
|
3523
|
+
m.push({ i: p - 4, x: Tt(l, d) }, { i: p - 2, x: Tt(u, f) });
|
|
3524
3524
|
} else (d !== 1 || f !== 1) && h.push(i(h) + "scale(" + d + "," + f + ")");
|
|
3525
3525
|
}
|
|
3526
3526
|
return function(l, u) {
|
|
@@ -3784,7 +3784,7 @@ function ls(t, e, n) {
|
|
|
3784
3784
|
}
|
|
3785
3785
|
function Jl(t, e) {
|
|
3786
3786
|
var n;
|
|
3787
|
-
return (typeof e == "number" ?
|
|
3787
|
+
return (typeof e == "number" ? Tt : e instanceof mn ? wi : (n = mn(e)) ? (e = n, wi) : Yl)(t, e);
|
|
3788
3788
|
}
|
|
3789
3789
|
function wg(t) {
|
|
3790
3790
|
return function() {
|
|
@@ -3828,12 +3828,12 @@ function Ng(t, e) {
|
|
|
3828
3828
|
var n = Li(t), o = n === "transform" ? sg : Jl;
|
|
3829
3829
|
return this.attrTween(t, typeof e == "function" ? (n.local ? Dg : Sg)(n, o, ls(this, "attr." + t, e)) : e == null ? (n.local ? xg : wg)(n) : (n.local ? Cg : Eg)(n, o, e));
|
|
3830
3830
|
}
|
|
3831
|
-
function
|
|
3831
|
+
function kg(t, e) {
|
|
3832
3832
|
return function(n) {
|
|
3833
3833
|
this.setAttribute(t, e.call(this, n));
|
|
3834
3834
|
};
|
|
3835
3835
|
}
|
|
3836
|
-
function
|
|
3836
|
+
function Tg(t, e) {
|
|
3837
3837
|
return function(n) {
|
|
3838
3838
|
this.setAttributeNS(t.space, t.local, e.call(this, n));
|
|
3839
3839
|
};
|
|
@@ -3842,7 +3842,7 @@ function Ig(t, e) {
|
|
|
3842
3842
|
var n, o;
|
|
3843
3843
|
function i() {
|
|
3844
3844
|
var r = e.apply(this, arguments);
|
|
3845
|
-
return r !== o && (n = (o = r) &&
|
|
3845
|
+
return r !== o && (n = (o = r) && Tg(t, r)), n;
|
|
3846
3846
|
}
|
|
3847
3847
|
return i._value = e, i;
|
|
3848
3848
|
}
|
|
@@ -3850,7 +3850,7 @@ function Mg(t, e) {
|
|
|
3850
3850
|
var n, o;
|
|
3851
3851
|
function i() {
|
|
3852
3852
|
var r = e.apply(this, arguments);
|
|
3853
|
-
return r !== o && (n = (o = r) &&
|
|
3853
|
+
return r !== o && (n = (o = r) && kg(t, r)), n;
|
|
3854
3854
|
}
|
|
3855
3855
|
return i._value = e, i;
|
|
3856
3856
|
}
|
|
@@ -3973,7 +3973,7 @@ function Kg(t) {
|
|
|
3973
3973
|
}
|
|
3974
3974
|
function Zg(t) {
|
|
3975
3975
|
var e = this._name, n = this._id;
|
|
3976
|
-
typeof t != "function" && (t =
|
|
3976
|
+
typeof t != "function" && (t = Tl(t));
|
|
3977
3977
|
for (var o = this._groups, i = o.length, r = [], s = [], a = 0; a < i; ++a)
|
|
3978
3978
|
for (var c = o[a], l = c.length, u, d = 0; d < l; ++d)
|
|
3979
3979
|
if (u = c[d]) {
|
|
@@ -4176,7 +4176,7 @@ function _p(t) {
|
|
|
4176
4176
|
}
|
|
4177
4177
|
bo.prototype.interrupt = vg;
|
|
4178
4178
|
bo.prototype.transition = _p;
|
|
4179
|
-
const
|
|
4179
|
+
const To = (t) => () => t;
|
|
4180
4180
|
function wp(t, {
|
|
4181
4181
|
sourceEvent: e,
|
|
4182
4182
|
target: n,
|
|
@@ -4267,19 +4267,19 @@ function Np() {
|
|
|
4267
4267
|
b.property("__zoom", la).on("wheel.zoom", U, { passive: !1 }).on("mousedown.zoom", Y).on("dblclick.zoom", C).filter(i).on("touchstart.zoom", I).on("touchmove.zoom", E).on("touchend.zoom touchcancel.zoom", H).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
4268
4268
|
}
|
|
4269
4269
|
S.transform = function(b, D, y, x) {
|
|
4270
|
-
var
|
|
4271
|
-
|
|
4270
|
+
var k = b.selection ? b.selection() : b;
|
|
4271
|
+
k.property("__zoom", la), b !== k ? A(b, D, y, x) : k.interrupt().each(function() {
|
|
4272
4272
|
$(this, arguments).event(x).start().zoom(null, typeof D == "function" ? D.apply(this, arguments) : D).end();
|
|
4273
4273
|
});
|
|
4274
4274
|
}, S.scaleBy = function(b, D, y, x) {
|
|
4275
4275
|
S.scaleTo(b, function() {
|
|
4276
|
-
var
|
|
4277
|
-
return
|
|
4276
|
+
var k = this.__zoom.k, O = typeof D == "function" ? D.apply(this, arguments) : D;
|
|
4277
|
+
return k * O;
|
|
4278
4278
|
}, y, x);
|
|
4279
4279
|
}, S.scaleTo = function(b, D, y, x) {
|
|
4280
4280
|
S.transform(b, function() {
|
|
4281
|
-
var
|
|
4282
|
-
return n(g(_(O, z), R, M),
|
|
4281
|
+
var k = e.apply(this, arguments), O = this.__zoom, R = y == null ? w(k) : typeof y == "function" ? y.apply(this, arguments) : y, M = O.invert(R), z = typeof D == "function" ? D.apply(this, arguments) : D;
|
|
4282
|
+
return n(g(_(O, z), R, M), k, s);
|
|
4283
4283
|
}, y, x);
|
|
4284
4284
|
}, S.translateBy = function(b, D, y, x) {
|
|
4285
4285
|
S.transform(b, function() {
|
|
@@ -4288,21 +4288,21 @@ function Np() {
|
|
|
4288
4288
|
typeof y == "function" ? y.apply(this, arguments) : y
|
|
4289
4289
|
), e.apply(this, arguments), s);
|
|
4290
4290
|
}, null, x);
|
|
4291
|
-
}, S.translateTo = function(b, D, y, x,
|
|
4291
|
+
}, S.translateTo = function(b, D, y, x, k) {
|
|
4292
4292
|
S.transform(b, function() {
|
|
4293
4293
|
var O = e.apply(this, arguments), R = this.__zoom, M = x == null ? w(O) : typeof x == "function" ? x.apply(this, arguments) : x;
|
|
4294
4294
|
return n(zn.translate(M[0], M[1]).scale(R.k).translate(
|
|
4295
4295
|
typeof D == "function" ? -D.apply(this, arguments) : -D,
|
|
4296
4296
|
typeof y == "function" ? -y.apply(this, arguments) : -y
|
|
4297
4297
|
), O, s);
|
|
4298
|
-
}, x,
|
|
4298
|
+
}, x, k);
|
|
4299
4299
|
};
|
|
4300
4300
|
function _(b, D) {
|
|
4301
4301
|
return D = Math.max(r[0], Math.min(r[1], D)), D === b.k ? b : new Yt(D, b.x, b.y);
|
|
4302
4302
|
}
|
|
4303
4303
|
function g(b, D, y) {
|
|
4304
|
-
var x = D[0] - y[0] * b.k,
|
|
4305
|
-
return x === b.x &&
|
|
4304
|
+
var x = D[0] - y[0] * b.k, k = D[1] - y[1] * b.k;
|
|
4305
|
+
return x === b.x && k === b.y ? b : new Yt(b.k, x, k);
|
|
4306
4306
|
}
|
|
4307
4307
|
function w(b) {
|
|
4308
4308
|
return [(+b[0][0] + +b[1][0]) / 2, (+b[0][1] + +b[1][1]) / 2];
|
|
@@ -4313,7 +4313,7 @@ function Np() {
|
|
|
4313
4313
|
}).on("interrupt.zoom end.zoom", function() {
|
|
4314
4314
|
$(this, arguments).event(x).end();
|
|
4315
4315
|
}).tween("zoom", function() {
|
|
4316
|
-
var
|
|
4316
|
+
var k = this, O = arguments, R = $(k, O).event(x), M = e.apply(k, O), z = y == null ? w(M) : typeof y == "function" ? y.apply(k, O) : y, L = Math.max(M[1][0] - M[0][0], M[1][1] - M[0][1]), V = k.__zoom, K = typeof D == "function" ? D.apply(k, O) : D, Q = c(V.invert(z).concat(L / V.k), K.invert(z).concat(L / K.k));
|
|
4317
4317
|
return function(X) {
|
|
4318
4318
|
if (X === 1)
|
|
4319
4319
|
X = K;
|
|
@@ -4362,15 +4362,15 @@ function Np() {
|
|
|
4362
4362
|
function U(b, ...D) {
|
|
4363
4363
|
if (!t.apply(this, arguments))
|
|
4364
4364
|
return;
|
|
4365
|
-
var y = $(this, D).event(b), x = this.__zoom,
|
|
4365
|
+
var y = $(this, D).event(b), x = this.__zoom, k = Math.max(r[0], Math.min(r[1], x.k * Math.pow(2, o.apply(this, arguments)))), O = kt(b);
|
|
4366
4366
|
if (y.wheel)
|
|
4367
4367
|
(y.mouse[0][0] !== O[0] || y.mouse[0][1] !== O[1]) && (y.mouse[1] = x.invert(y.mouse[0] = O)), clearTimeout(y.wheel);
|
|
4368
4368
|
else {
|
|
4369
|
-
if (x.k ===
|
|
4369
|
+
if (x.k === k)
|
|
4370
4370
|
return;
|
|
4371
4371
|
y.mouse = [O, x.invert(O)], qo(this), y.start();
|
|
4372
4372
|
}
|
|
4373
|
-
Wn(b), y.wheel = setTimeout(R, m), y.zoom("mouse", n(g(_(x,
|
|
4373
|
+
Wn(b), y.wheel = setTimeout(R, m), y.zoom("mouse", n(g(_(x, k), y.mouse[0], y.mouse[1]), y.extent, s));
|
|
4374
4374
|
function R() {
|
|
4375
4375
|
y.wheel = null, y.end();
|
|
4376
4376
|
}
|
|
@@ -4378,40 +4378,40 @@ function Np() {
|
|
|
4378
4378
|
function Y(b, ...D) {
|
|
4379
4379
|
if (f || !t.apply(this, arguments))
|
|
4380
4380
|
return;
|
|
4381
|
-
var y = b.currentTarget, x = $(this, D, !0).event(b),
|
|
4381
|
+
var y = b.currentTarget, x = $(this, D, !0).event(b), k = Et(b.view).on("mousemove.zoom", z, !0).on("mouseup.zoom", L, !0), O = kt(b, y), R = b.clientX, M = b.clientY;
|
|
4382
4382
|
Ll(b.view), ir(b), x.mouse = [O, this.__zoom.invert(O)], qo(this), x.start();
|
|
4383
4383
|
function z(V) {
|
|
4384
4384
|
if (Wn(V), !x.moved) {
|
|
4385
4385
|
var K = V.clientX - R, Q = V.clientY - M;
|
|
4386
4386
|
x.moved = K * K + Q * Q > p;
|
|
4387
4387
|
}
|
|
4388
|
-
x.event(V).zoom("mouse", n(g(x.that.__zoom, x.mouse[0] =
|
|
4388
|
+
x.event(V).zoom("mouse", n(g(x.that.__zoom, x.mouse[0] = kt(V, y), x.mouse[1]), x.extent, s));
|
|
4389
4389
|
}
|
|
4390
4390
|
function L(V) {
|
|
4391
|
-
|
|
4391
|
+
k.on("mousemove.zoom mouseup.zoom", null), Fl(V.view, x.moved), Wn(V), x.event(V).end();
|
|
4392
4392
|
}
|
|
4393
4393
|
}
|
|
4394
4394
|
function C(b, ...D) {
|
|
4395
4395
|
if (t.apply(this, arguments)) {
|
|
4396
|
-
var y = this.__zoom, x =
|
|
4396
|
+
var y = this.__zoom, x = kt(b.changedTouches ? b.changedTouches[0] : b, this), k = y.invert(x), O = y.k * (b.shiftKey ? 0.5 : 2), R = n(g(_(y, O), x, k), e.apply(this, D), s);
|
|
4397
4397
|
Wn(b), a > 0 ? Et(this).transition().duration(a).call(A, R, x, b) : Et(this).call(S.transform, R, x, b);
|
|
4398
4398
|
}
|
|
4399
4399
|
}
|
|
4400
4400
|
function I(b, ...D) {
|
|
4401
4401
|
if (t.apply(this, arguments)) {
|
|
4402
|
-
var y = b.touches, x = y.length,
|
|
4402
|
+
var y = b.touches, x = y.length, k = $(this, D, b.changedTouches.length === x).event(b), O, R, M, z;
|
|
4403
4403
|
for (ir(b), R = 0; R < x; ++R)
|
|
4404
|
-
M = y[R], z =
|
|
4405
|
-
u && (u = clearTimeout(u)), O && (
|
|
4404
|
+
M = y[R], z = kt(M, this), z = [z, this.__zoom.invert(z), M.identifier], k.touch0 ? !k.touch1 && k.touch0[2] !== z[2] && (k.touch1 = z, k.taps = 0) : (k.touch0 = z, O = !0, k.taps = 1 + !!u);
|
|
4405
|
+
u && (u = clearTimeout(u)), O && (k.taps < 2 && (d = z[0], u = setTimeout(function() {
|
|
4406
4406
|
u = null;
|
|
4407
|
-
}, h)), qo(this),
|
|
4407
|
+
}, h)), qo(this), k.start());
|
|
4408
4408
|
}
|
|
4409
4409
|
}
|
|
4410
4410
|
function E(b, ...D) {
|
|
4411
4411
|
if (this.__zooming) {
|
|
4412
|
-
var y = $(this, D).event(b), x = b.changedTouches,
|
|
4413
|
-
for (Wn(b), O = 0; O <
|
|
4414
|
-
R = x[O], M =
|
|
4412
|
+
var y = $(this, D).event(b), x = b.changedTouches, k = x.length, O, R, M, z;
|
|
4413
|
+
for (Wn(b), O = 0; O < k; ++O)
|
|
4414
|
+
R = x[O], M = kt(R, this), y.touch0 && y.touch0[2] === R.identifier ? y.touch0[0] = M : y.touch1 && y.touch1[2] === R.identifier && (y.touch1[0] = M);
|
|
4415
4415
|
if (R = y.that.__zoom, y.touch1) {
|
|
4416
4416
|
var L = y.touch0[0], V = y.touch0[1], K = y.touch1[0], Q = y.touch1[1], X = (X = K[0] - L[0]) * X + (X = K[1] - L[1]) * X, ee = (ee = Q[0] - V[0]) * ee + (ee = Q[1] - V[1]) * ee;
|
|
4417
4417
|
R = _(R, Math.sqrt(X / ee)), M = [(L[0] + K[0]) / 2, (L[1] + K[1]) / 2], z = [(V[0] + Q[0]) / 2, (V[1] + Q[1]) / 2];
|
|
@@ -4424,27 +4424,27 @@ function Np() {
|
|
|
4424
4424
|
}
|
|
4425
4425
|
function H(b, ...D) {
|
|
4426
4426
|
if (this.__zooming) {
|
|
4427
|
-
var y = $(this, D).event(b), x = b.changedTouches,
|
|
4427
|
+
var y = $(this, D).event(b), x = b.changedTouches, k = x.length, O, R;
|
|
4428
4428
|
for (ir(b), f && clearTimeout(f), f = setTimeout(function() {
|
|
4429
4429
|
f = null;
|
|
4430
|
-
}, h), O = 0; O <
|
|
4430
|
+
}, h), O = 0; O < k; ++O)
|
|
4431
4431
|
R = x[O], y.touch0 && y.touch0[2] === R.identifier ? delete y.touch0 : y.touch1 && y.touch1[2] === R.identifier && delete y.touch1;
|
|
4432
4432
|
if (y.touch1 && !y.touch0 && (y.touch0 = y.touch1, delete y.touch1), y.touch0)
|
|
4433
4433
|
y.touch0[1] = this.__zoom.invert(y.touch0[0]);
|
|
4434
|
-
else if (y.end(), y.taps === 2 && (R =
|
|
4434
|
+
else if (y.end(), y.taps === 2 && (R = kt(R, this), Math.hypot(d[0] - R[0], d[1] - R[1]) < v)) {
|
|
4435
4435
|
var M = Et(this).on("dblclick.zoom");
|
|
4436
4436
|
M && M.apply(this, arguments);
|
|
4437
4437
|
}
|
|
4438
4438
|
}
|
|
4439
4439
|
}
|
|
4440
4440
|
return S.wheelDelta = function(b) {
|
|
4441
|
-
return arguments.length ? (o = typeof b == "function" ? b :
|
|
4441
|
+
return arguments.length ? (o = typeof b == "function" ? b : To(+b), S) : o;
|
|
4442
4442
|
}, S.filter = function(b) {
|
|
4443
|
-
return arguments.length ? (t = typeof b == "function" ? b :
|
|
4443
|
+
return arguments.length ? (t = typeof b == "function" ? b : To(!!b), S) : t;
|
|
4444
4444
|
}, S.touchable = function(b) {
|
|
4445
|
-
return arguments.length ? (i = typeof b == "function" ? b :
|
|
4445
|
+
return arguments.length ? (i = typeof b == "function" ? b : To(!!b), S) : i;
|
|
4446
4446
|
}, S.extent = function(b) {
|
|
4447
|
-
return arguments.length ? (e = typeof b == "function" ? b :
|
|
4447
|
+
return arguments.length ? (e = typeof b == "function" ? b : To([[+b[0][0], +b[0][1]], [+b[1][0], +b[1][1]]]), S) : e;
|
|
4448
4448
|
}, S.scaleExtent = function(b) {
|
|
4449
4449
|
return arguments.length ? (r[0] = +b[0], r[1] = +b[1], S) : [r[0], r[1]];
|
|
4450
4450
|
}, S.translateExtent = function(b) {
|
|
@@ -4465,11 +4465,11 @@ function Np() {
|
|
|
4465
4465
|
}, S;
|
|
4466
4466
|
}
|
|
4467
4467
|
var pe = /* @__PURE__ */ ((t) => (t.Left = "left", t.Top = "top", t.Right = "right", t.Bottom = "bottom", t))(pe || {}), us = /* @__PURE__ */ ((t) => (t.Partial = "partial", t.Full = "full", t))(us || {}), dn = /* @__PURE__ */ ((t) => (t.Bezier = "default", t.SimpleBezier = "simple-bezier", t.Straight = "straight", t.Step = "step", t.SmoothStep = "smoothstep", t))(dn || {}), Kt = /* @__PURE__ */ ((t) => (t.Strict = "strict", t.Loose = "loose", t))(Kt || {}), Ft = /* @__PURE__ */ ((t) => (t.Arrow = "arrow", t.ArrowClosed = "arrowclosed", t))(Ft || {}), Qn = /* @__PURE__ */ ((t) => (t.Free = "free", t.Vertical = "vertical", t.Horizontal = "horizontal", t))(Qn || {}), tu = /* @__PURE__ */ ((t) => (t.TopLeft = "top-left", t.TopCenter = "top-center", t.TopRight = "top-right", t.BottomLeft = "bottom-left", t.BottomCenter = "bottom-center", t.BottomRight = "bottom-right", t))(tu || {});
|
|
4468
|
-
const
|
|
4468
|
+
const kp = ["INPUT", "SELECT", "TEXTAREA"], Tp = typeof document < "u" ? document : null;
|
|
4469
4469
|
function Rr(t) {
|
|
4470
4470
|
var e, n;
|
|
4471
4471
|
const o = ((n = (e = t.composedPath) == null ? void 0 : e.call(t)) == null ? void 0 : n[0]) || t.target, i = typeof o?.hasAttribute == "function" ? o.hasAttribute("contenteditable") : !1, r = typeof o?.closest == "function" ? o.closest(".nokey") : null;
|
|
4472
|
-
return
|
|
4472
|
+
return kp.includes(o?.nodeName) || i || !!r;
|
|
4473
4473
|
}
|
|
4474
4474
|
function Ip(t) {
|
|
4475
4475
|
return t.ctrlKey || t.metaKey || t.shiftKey || t.altKey;
|
|
@@ -4501,12 +4501,12 @@ function $p(t, e) {
|
|
|
4501
4501
|
return e.includes(t) ? "code" : "key";
|
|
4502
4502
|
}
|
|
4503
4503
|
function eo(t, e) {
|
|
4504
|
-
const n = ce(() =>
|
|
4504
|
+
const n = ce(() => ke(e?.target) ?? Tp), o = $t(ke(t) === !0);
|
|
4505
4505
|
let i = !1;
|
|
4506
4506
|
const r = /* @__PURE__ */ new Set();
|
|
4507
|
-
let s = c(
|
|
4507
|
+
let s = c(ke(t));
|
|
4508
4508
|
De(
|
|
4509
|
-
() =>
|
|
4509
|
+
() => ke(t),
|
|
4510
4510
|
(l, u) => {
|
|
4511
4511
|
typeof u == "boolean" && typeof l != "boolean" && a(), s = c(l);
|
|
4512
4512
|
},
|
|
@@ -4517,7 +4517,7 @@ function eo(t, e) {
|
|
|
4517
4517
|
(...l) => s(...l),
|
|
4518
4518
|
(l) => {
|
|
4519
4519
|
var u, d;
|
|
4520
|
-
const f =
|
|
4520
|
+
const f = ke(e?.actInsideInputWithModifier) ?? !0, h = ke(e?.preventDefault) ?? !1;
|
|
4521
4521
|
if (i = Ip(l), (!i || i && !f) && Rr(l))
|
|
4522
4522
|
return;
|
|
4523
4523
|
const p = ((d = (u = l.composedPath) == null ? void 0 : u.call(l)) == null ? void 0 : d[0]) || l.target, v = p?.nodeName === "BUTTON" || p?.nodeName === "A";
|
|
@@ -4527,7 +4527,7 @@ function eo(t, e) {
|
|
|
4527
4527
|
), Ys(
|
|
4528
4528
|
(...l) => s(...l),
|
|
4529
4529
|
(l) => {
|
|
4530
|
-
const u =
|
|
4530
|
+
const u = ke(e?.actInsideInputWithModifier) ?? !0;
|
|
4531
4531
|
if (o.value) {
|
|
4532
4532
|
if ((!i || i && !u) && Rr(l))
|
|
4533
4533
|
return;
|
|
@@ -4537,14 +4537,14 @@ function eo(t, e) {
|
|
|
4537
4537
|
{ eventName: "keyup", target: n }
|
|
4538
4538
|
);
|
|
4539
4539
|
function a() {
|
|
4540
|
-
i = !1, r.clear(), o.value =
|
|
4540
|
+
i = !1, r.clear(), o.value = ke(t) === !0;
|
|
4541
4541
|
}
|
|
4542
4542
|
function c(l) {
|
|
4543
4543
|
return l === null ? (a(), () => !1) : typeof l == "boolean" ? (a(), o.value = l, () => !1) : Array.isArray(l) || typeof l == "string" ? Mp(l, r) : l;
|
|
4544
4544
|
}
|
|
4545
4545
|
return o;
|
|
4546
4546
|
}
|
|
4547
|
-
const nu = "vue-flow__node-desc", ou = "vue-flow__edge-desc", Ap = "vue-flow__aria-live", iu = ["Enter", " ", "Escape"],
|
|
4547
|
+
const nu = "vue-flow__node-desc", ou = "vue-flow__edge-desc", Ap = "vue-flow__aria-live", iu = ["Enter", " ", "Escape"], Tn = {
|
|
4548
4548
|
ArrowUp: { x: 0, y: -1 },
|
|
4549
4549
|
ArrowDown: { x: 0, y: 1 },
|
|
4550
4550
|
ArrowLeft: { x: -1, y: 0 },
|
|
@@ -5501,26 +5501,26 @@ function wu(t) {
|
|
|
5501
5501
|
updateNodePositions: g,
|
|
5502
5502
|
emits: w
|
|
5503
5503
|
} = Re(), { onStart: A, onDrag: $, onStop: F, onClick: U, el: Y, disabled: C, id: I, selectable: E, dragHandle: H } = t, b = $t(!1);
|
|
5504
|
-
let D = [], y, x = null,
|
|
5504
|
+
let D = [], y, x = null, k = { x: void 0, y: void 0 }, O = { x: 0, y: 0 }, R = null, M = !1, z = !1, L = 0, V = !1;
|
|
5505
5505
|
const K = dm(), Q = ({ x: re, y: le }) => {
|
|
5506
|
-
|
|
5506
|
+
k = { x: re, y: le };
|
|
5507
5507
|
let P = !1;
|
|
5508
|
-
if (D = D.map((
|
|
5509
|
-
const B = { x: re -
|
|
5510
|
-
|
|
5508
|
+
if (D = D.map((T) => {
|
|
5509
|
+
const B = { x: re - T.distance.x, y: le - T.distance.y }, { computedPosition: j } = cs(
|
|
5510
|
+
T,
|
|
5511
5511
|
n.value ? Wi(B, o.value) : B,
|
|
5512
5512
|
w.error,
|
|
5513
5513
|
s.value,
|
|
5514
|
-
|
|
5514
|
+
T.parentNode ? h(T.parentNode) : void 0
|
|
5515
5515
|
);
|
|
5516
|
-
return P = P ||
|
|
5516
|
+
return P = P || T.position.x !== j.x || T.position.y !== j.y, T.position = j, T;
|
|
5517
5517
|
}), z = z || P, !!P && (g(D, !0, !0), b.value = !0, R)) {
|
|
5518
|
-
const [
|
|
5518
|
+
const [T, B] = sr({
|
|
5519
5519
|
id: I,
|
|
5520
5520
|
dragItems: D,
|
|
5521
5521
|
findNode: h
|
|
5522
5522
|
});
|
|
5523
|
-
$({ event: R, node:
|
|
5523
|
+
$({ event: R, node: T, nodes: B });
|
|
5524
5524
|
}
|
|
5525
5525
|
}, X = () => {
|
|
5526
5526
|
if (!x)
|
|
@@ -5528,8 +5528,8 @@ function wu(t) {
|
|
|
5528
5528
|
const [re, le] = gu(O, x, u.value);
|
|
5529
5529
|
if (re !== 0 || le !== 0) {
|
|
5530
5530
|
const P = {
|
|
5531
|
-
x: (
|
|
5532
|
-
y: (
|
|
5531
|
+
x: (k.x ?? 0) - re / c.value.zoom,
|
|
5532
|
+
y: (k.y ?? 0) - le / c.value.zoom
|
|
5533
5533
|
};
|
|
5534
5534
|
f({ x: re, y: le }) && Q(P);
|
|
5535
5535
|
}
|
|
@@ -5537,7 +5537,7 @@ function wu(t) {
|
|
|
5537
5537
|
}, ee = (re, le) => {
|
|
5538
5538
|
M = !0;
|
|
5539
5539
|
const P = h(I);
|
|
5540
|
-
!v.value && !m.value && P && (P.selected || S()), P &&
|
|
5540
|
+
!v.value && !m.value && P && (P.selected || S()), P && ke(E) && v.value && Br(
|
|
5541
5541
|
P,
|
|
5542
5542
|
m.value,
|
|
5543
5543
|
_,
|
|
@@ -5546,8 +5546,8 @@ function wu(t) {
|
|
|
5546
5546
|
!1,
|
|
5547
5547
|
le
|
|
5548
5548
|
);
|
|
5549
|
-
const
|
|
5550
|
-
if (
|
|
5549
|
+
const T = K(re.sourceEvent);
|
|
5550
|
+
if (k = T, D = Wp(r.value, d.value, T, I), D.length) {
|
|
5551
5551
|
const [B, j] = sr({
|
|
5552
5552
|
id: I,
|
|
5553
5553
|
dragItems: D,
|
|
@@ -5557,38 +5557,38 @@ function wu(t) {
|
|
|
5557
5557
|
}
|
|
5558
5558
|
}, se = (re, le) => {
|
|
5559
5559
|
var P;
|
|
5560
|
-
re.sourceEvent.type === "touchmove" && re.sourceEvent.touches.length > 1 || (z = !1, a.value === 0 && ee(re, le),
|
|
5560
|
+
re.sourceEvent.type === "touchmove" && re.sourceEvent.touches.length > 1 || (z = !1, a.value === 0 && ee(re, le), k = K(re.sourceEvent), x = ((P = e.value) == null ? void 0 : P.getBoundingClientRect()) || null, O = Mt(re.sourceEvent, x));
|
|
5561
5561
|
}, ie = (re, le) => {
|
|
5562
5562
|
const P = K(re.sourceEvent);
|
|
5563
5563
|
if (!V && M && l.value && (V = !0, X()), !M) {
|
|
5564
|
-
const
|
|
5565
|
-
Math.sqrt(
|
|
5564
|
+
const T = P.xSnapped - (k.x ?? 0), B = P.ySnapped - (k.y ?? 0);
|
|
5565
|
+
Math.sqrt(T * T + B * B) > a.value && ee(re, le);
|
|
5566
5566
|
}
|
|
5567
|
-
(
|
|
5567
|
+
(k.x !== P.xSnapped || k.y !== P.ySnapped) && D.length && M && (R = re.sourceEvent, O = Mt(re.sourceEvent, x), Q(P));
|
|
5568
5568
|
}, ge = (re) => {
|
|
5569
5569
|
let le = !1;
|
|
5570
5570
|
if (!M && !b.value && !m.value) {
|
|
5571
|
-
const P = re.sourceEvent,
|
|
5571
|
+
const P = re.sourceEvent, T = K(P), B = T.xSnapped - (k.x ?? 0), j = T.ySnapped - (k.y ?? 0), N = Math.sqrt(B * B + j * j);
|
|
5572
5572
|
N !== 0 && N <= a.value && (U?.(P), le = !0);
|
|
5573
5573
|
}
|
|
5574
5574
|
if (D.length && !le) {
|
|
5575
5575
|
z && (g(D, !1, !1), z = !1);
|
|
5576
|
-
const [P,
|
|
5576
|
+
const [P, T] = sr({
|
|
5577
5577
|
id: I,
|
|
5578
5578
|
dragItems: D,
|
|
5579
5579
|
findNode: h
|
|
5580
5580
|
});
|
|
5581
|
-
F({ event: re.sourceEvent, node: P, nodes:
|
|
5581
|
+
F({ event: re.sourceEvent, node: P, nodes: T });
|
|
5582
5582
|
}
|
|
5583
|
-
D = [], b.value = !1, V = !1, M = !1,
|
|
5583
|
+
D = [], b.value = !1, V = !1, M = !1, k = { x: void 0, y: void 0 }, cancelAnimationFrame(L);
|
|
5584
5584
|
};
|
|
5585
|
-
return De([() =>
|
|
5585
|
+
return De([() => ke(C), Y], ([re, le], P, T) => {
|
|
5586
5586
|
if (le) {
|
|
5587
5587
|
const B = Et(le);
|
|
5588
5588
|
re || (y = Ph().on("start", (j) => se(j, le)).on("drag", (j) => ie(j, le)).on("end", (j) => ge(j)).filter((j) => {
|
|
5589
|
-
const N = j.target, W =
|
|
5589
|
+
const N = j.target, W = ke(H);
|
|
5590
5590
|
return !j.button && (!i.value || !ba(N, `.${i.value}`, le) && (!W || ba(N, W, le)));
|
|
5591
|
-
}), B.call(y)),
|
|
5591
|
+
}), B.call(y)), T(() => {
|
|
5592
5592
|
B.on(".drag", null), y && (y.on("start", null), y.on("drag", null), y.on("end", null));
|
|
5593
5593
|
});
|
|
5594
5594
|
}
|
|
@@ -5690,7 +5690,7 @@ function xu({
|
|
|
5690
5690
|
let I = null, E = !1, H = null;
|
|
5691
5691
|
function b(y) {
|
|
5692
5692
|
var x;
|
|
5693
|
-
const
|
|
5693
|
+
const k = ke(n) === "target", O = ds(y), R = ca(y.target), M = y.currentTarget;
|
|
5694
5694
|
if (M && (O && y.button === 0 || !O)) {
|
|
5695
5695
|
let z = function(oe) {
|
|
5696
5696
|
P = Mt(oe, ge), Q = tm(
|
|
@@ -5698,15 +5698,15 @@ function xu({
|
|
|
5698
5698
|
u.value,
|
|
5699
5699
|
C.value,
|
|
5700
5700
|
j
|
|
5701
|
-
),
|
|
5701
|
+
), T || (B(), T = !0);
|
|
5702
5702
|
const ne = xa(
|
|
5703
5703
|
oe,
|
|
5704
5704
|
{
|
|
5705
5705
|
handle: Q,
|
|
5706
5706
|
connectionMode: l.value,
|
|
5707
|
-
fromNodeId:
|
|
5708
|
-
fromHandleId:
|
|
5709
|
-
fromType:
|
|
5707
|
+
fromNodeId: ke(e),
|
|
5708
|
+
fromHandleId: ke(t),
|
|
5709
|
+
fromType: k ? "target" : "source",
|
|
5710
5710
|
isValidConnection: K,
|
|
5711
5711
|
doc: R,
|
|
5712
5712
|
lib: "vue",
|
|
@@ -5745,19 +5745,19 @@ function xu({
|
|
|
5745
5745
|
return ar(le);
|
|
5746
5746
|
I && I.source !== I.target && H && (ar(le), le = H, H.classList.add("connecting", "vue-flow__handle-connecting"), H.classList.toggle("valid", !!E), H.classList.toggle("vue-flow__handle-valid", !!E));
|
|
5747
5747
|
}, L = function(oe) {
|
|
5748
|
-
"touches" in oe && oe.touches.length > 0 || ((Q || H) && I && E && (r ? r(oe, I) : A.connect(I)), A.connectEnd(oe), i && s?.(oe), ar(le), cancelAnimationFrame(X), w(oe),
|
|
5748
|
+
"touches" in oe && oe.touches.length > 0 || ((Q || H) && I && E && (r ? r(oe, I) : A.connect(I)), A.connectEnd(oe), i && s?.(oe), ar(le), cancelAnimationFrame(X), w(oe), T = !1, E = !1, I = null, H = null, R.removeEventListener("mousemove", z), R.removeEventListener("mouseup", L), R.removeEventListener("touchmove", z), R.removeEventListener("touchend", L));
|
|
5749
5749
|
};
|
|
5750
|
-
const V = v(
|
|
5751
|
-
let K =
|
|
5752
|
-
!K && V && (K = (
|
|
5750
|
+
const V = v(ke(e));
|
|
5751
|
+
let K = ke(o) || Y.value || Mo;
|
|
5752
|
+
!K && V && (K = (k ? V.isValidSourcePos : V.isValidTargetPos) || Mo);
|
|
5753
5753
|
let Q, X = 0;
|
|
5754
|
-
const { x: ee, y: se } = Mt(y), ie = mu(
|
|
5754
|
+
const { x: ee, y: se } = Mt(y), ie = mu(ke(i), M), ge = (x = c.value) == null ? void 0 : x.getBoundingClientRect();
|
|
5755
5755
|
if (!ge || !ie)
|
|
5756
5756
|
return;
|
|
5757
|
-
const re = vu(
|
|
5757
|
+
const re = vu(ke(e), ie, ke(t), C.value, l.value);
|
|
5758
5758
|
if (!re)
|
|
5759
5759
|
return;
|
|
5760
|
-
let le, P = Mt(y, ge),
|
|
5760
|
+
let le, P = Mt(y, ge), T = !1;
|
|
5761
5761
|
const B = () => {
|
|
5762
5762
|
if (!m.value)
|
|
5763
5763
|
return;
|
|
@@ -5765,10 +5765,10 @@ function xu({
|
|
|
5765
5765
|
S({ x: oe, y: ne }), X = requestAnimationFrame(B);
|
|
5766
5766
|
}, j = {
|
|
5767
5767
|
...re,
|
|
5768
|
-
nodeId:
|
|
5768
|
+
nodeId: ke(e),
|
|
5769
5769
|
type: ie,
|
|
5770
5770
|
position: re.position
|
|
5771
|
-
}, N = C.value.get(
|
|
5771
|
+
}, N = C.value.get(ke(e)), G = {
|
|
5772
5772
|
inProgress: !0,
|
|
5773
5773
|
isValid: null,
|
|
5774
5774
|
from: On(N, j, pe.Left, !0),
|
|
@@ -5782,8 +5782,8 @@ function xu({
|
|
|
5782
5782
|
};
|
|
5783
5783
|
_(
|
|
5784
5784
|
{
|
|
5785
|
-
nodeId:
|
|
5786
|
-
id:
|
|
5785
|
+
nodeId: ke(e),
|
|
5786
|
+
id: ke(t),
|
|
5787
5787
|
type: ie,
|
|
5788
5788
|
position: M?.getAttribute("data-handlepos") || pe.Top,
|
|
5789
5789
|
...P
|
|
@@ -5792,22 +5792,22 @@ function xu({
|
|
|
5792
5792
|
x: ee - ge.left,
|
|
5793
5793
|
y: se - ge.top
|
|
5794
5794
|
}
|
|
5795
|
-
), A.connectStart({ event: y, nodeId:
|
|
5795
|
+
), A.connectStart({ event: y, nodeId: ke(e), handleId: ke(t), handleType: ie });
|
|
5796
5796
|
let q = G;
|
|
5797
5797
|
R.addEventListener("mousemove", z), R.addEventListener("mouseup", L), R.addEventListener("touchmove", z), R.addEventListener("touchend", L);
|
|
5798
5798
|
}
|
|
5799
5799
|
}
|
|
5800
5800
|
function D(y) {
|
|
5801
|
-
var x,
|
|
5801
|
+
var x, k;
|
|
5802
5802
|
if (!d.value)
|
|
5803
5803
|
return;
|
|
5804
|
-
const O =
|
|
5804
|
+
const O = ke(n) === "target";
|
|
5805
5805
|
if (!f.value) {
|
|
5806
|
-
A.clickConnectStart({ event: y, nodeId:
|
|
5806
|
+
A.clickConnectStart({ event: y, nodeId: ke(e), handleId: ke(t) }), _(
|
|
5807
5807
|
{
|
|
5808
|
-
nodeId:
|
|
5809
|
-
type:
|
|
5810
|
-
id:
|
|
5808
|
+
nodeId: ke(e),
|
|
5809
|
+
type: ke(n),
|
|
5810
|
+
id: ke(t),
|
|
5811
5811
|
position: pe.Top,
|
|
5812
5812
|
...Mt(y)
|
|
5813
5813
|
},
|
|
@@ -5816,17 +5816,17 @@ function xu({
|
|
|
5816
5816
|
);
|
|
5817
5817
|
return;
|
|
5818
5818
|
}
|
|
5819
|
-
let R =
|
|
5820
|
-
const M = v(
|
|
5819
|
+
let R = ke(o) || Y.value || Mo;
|
|
5820
|
+
const M = v(ke(e));
|
|
5821
5821
|
if (!R && M && (R = (O ? M.isValidSourcePos : M.isValidTargetPos) || Mo), M && (typeof M.connectable > "u" ? h.value : M.connectable) === !1)
|
|
5822
5822
|
return;
|
|
5823
5823
|
const z = ca(y.target), L = xa(
|
|
5824
5824
|
y,
|
|
5825
5825
|
{
|
|
5826
5826
|
handle: {
|
|
5827
|
-
nodeId:
|
|
5828
|
-
id:
|
|
5829
|
-
type:
|
|
5827
|
+
nodeId: ke(e),
|
|
5828
|
+
id: ke(t),
|
|
5829
|
+
type: ke(n),
|
|
5830
5830
|
position: pe.Top,
|
|
5831
5831
|
...Mt(y)
|
|
5832
5832
|
},
|
|
@@ -5844,7 +5844,7 @@ function xu({
|
|
|
5844
5844
|
U.value,
|
|
5845
5845
|
v,
|
|
5846
5846
|
C.value
|
|
5847
|
-
), V = ((x = L.connection) == null ? void 0 : x.source) === ((
|
|
5847
|
+
), V = ((x = L.connection) == null ? void 0 : x.source) === ((k = L.connection) == null ? void 0 : k.target);
|
|
5848
5848
|
L.isValid && L.connection && !V && A.connect(L.connection), A.clickConnectEnd(y), w(y, !0);
|
|
5849
5849
|
}
|
|
5850
5850
|
return {
|
|
@@ -6434,11 +6434,11 @@ const xm = [
|
|
|
6434
6434
|
];
|
|
6435
6435
|
function Em(t, e, n) {
|
|
6436
6436
|
const o = vm(t), i = (P) => {
|
|
6437
|
-
const
|
|
6438
|
-
t.hooks.updateNodeInternals.trigger(
|
|
6439
|
-
}, r = (P) => Rp(P, t.nodes, t.edges), s = (P) => Op(P, t.nodes, t.edges), a = (P) => fu(P, t.edges), c = ({ id: P, type:
|
|
6437
|
+
const T = P ?? [];
|
|
6438
|
+
t.hooks.updateNodeInternals.trigger(T);
|
|
6439
|
+
}, r = (P) => Rp(P, t.nodes, t.edges), s = (P) => Op(P, t.nodes, t.edges), a = (P) => fu(P, t.edges), c = ({ id: P, type: T, nodeId: B }) => {
|
|
6440
6440
|
var j;
|
|
6441
|
-
const N = P ? `-${
|
|
6441
|
+
const N = P ? `-${T}-${P}` : `-${T}`;
|
|
6442
6442
|
return Array.from(((j = t.connectionLookup.get(`${B}${N}`)) == null ? void 0 : j.values()) ?? []);
|
|
6443
6443
|
}, l = (P) => {
|
|
6444
6444
|
if (P)
|
|
@@ -6446,7 +6446,7 @@ function Em(t, e, n) {
|
|
|
6446
6446
|
}, u = (P) => {
|
|
6447
6447
|
if (P)
|
|
6448
6448
|
return n.value.get(P);
|
|
6449
|
-
}, d = (P,
|
|
6449
|
+
}, d = (P, T, B) => {
|
|
6450
6450
|
var j, N;
|
|
6451
6451
|
const W = [];
|
|
6452
6452
|
for (const G of P) {
|
|
@@ -6456,7 +6456,7 @@ function Em(t, e, n) {
|
|
|
6456
6456
|
dragging: B,
|
|
6457
6457
|
from: G.from
|
|
6458
6458
|
};
|
|
6459
|
-
if (
|
|
6459
|
+
if (T && (q.position = G.position, G.parentNode)) {
|
|
6460
6460
|
const oe = l(G.parentNode);
|
|
6461
6461
|
q.position = {
|
|
6462
6462
|
x: q.position.x - (((j = oe?.computedPosition) == null ? void 0 : j.x) ?? 0),
|
|
@@ -6469,10 +6469,10 @@ function Em(t, e, n) {
|
|
|
6469
6469
|
}, f = (P) => {
|
|
6470
6470
|
if (!t.vueFlowRef)
|
|
6471
6471
|
return;
|
|
6472
|
-
const
|
|
6473
|
-
if (!
|
|
6472
|
+
const T = t.vueFlowRef.querySelector(".vue-flow__transformationpane");
|
|
6473
|
+
if (!T)
|
|
6474
6474
|
return;
|
|
6475
|
-
const B = window.getComputedStyle(
|
|
6475
|
+
const B = window.getComputedStyle(T), { m22: j } = new window.DOMMatrixReadOnly(B.transform), N = [];
|
|
6476
6476
|
for (const W of P) {
|
|
6477
6477
|
const G = W, q = l(G.id);
|
|
6478
6478
|
if (q) {
|
|
@@ -6490,32 +6490,32 @@ function Em(t, e, n) {
|
|
|
6490
6490
|
!t.fitViewOnInitDone && t.fitViewOnInit && o.value.fitView().then(() => {
|
|
6491
6491
|
t.fitViewOnInitDone = !0;
|
|
6492
6492
|
}), N.length && t.hooks.nodesChange.trigger(N);
|
|
6493
|
-
}, h = (P,
|
|
6493
|
+
}, h = (P, T) => {
|
|
6494
6494
|
const B = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set();
|
|
6495
6495
|
for (const G of P)
|
|
6496
6496
|
pn(G) ? B.add(G.id) : an(G) && j.add(G.id);
|
|
6497
6497
|
const N = nn(e.value, B, !0), W = nn(n.value, j);
|
|
6498
6498
|
if (t.multiSelectionActive) {
|
|
6499
6499
|
for (const G of B)
|
|
6500
|
-
N.push(tn(G,
|
|
6500
|
+
N.push(tn(G, T));
|
|
6501
6501
|
for (const G of j)
|
|
6502
|
-
W.push(tn(G,
|
|
6502
|
+
W.push(tn(G, T));
|
|
6503
6503
|
}
|
|
6504
6504
|
N.length && t.hooks.nodesChange.trigger(N), W.length && t.hooks.edgesChange.trigger(W);
|
|
6505
6505
|
}, m = (P) => {
|
|
6506
6506
|
if (t.multiSelectionActive) {
|
|
6507
|
-
const
|
|
6508
|
-
t.hooks.nodesChange.trigger(
|
|
6507
|
+
const T = P.map((B) => tn(B.id, !0));
|
|
6508
|
+
t.hooks.nodesChange.trigger(T);
|
|
6509
6509
|
return;
|
|
6510
6510
|
}
|
|
6511
|
-
t.hooks.nodesChange.trigger(nn(e.value, new Set(P.map((
|
|
6511
|
+
t.hooks.nodesChange.trigger(nn(e.value, new Set(P.map((T) => T.id)), !0)), t.hooks.edgesChange.trigger(nn(n.value));
|
|
6512
6512
|
}, p = (P) => {
|
|
6513
6513
|
if (t.multiSelectionActive) {
|
|
6514
|
-
const
|
|
6515
|
-
t.hooks.edgesChange.trigger(
|
|
6514
|
+
const T = P.map((B) => tn(B.id, !0));
|
|
6515
|
+
t.hooks.edgesChange.trigger(T);
|
|
6516
6516
|
return;
|
|
6517
6517
|
}
|
|
6518
|
-
t.hooks.edgesChange.trigger(nn(n.value, new Set(P.map((
|
|
6518
|
+
t.hooks.edgesChange.trigger(nn(n.value, new Set(P.map((T) => T.id)))), t.hooks.nodesChange.trigger(nn(e.value, /* @__PURE__ */ new Set(), !0));
|
|
6519
6519
|
}, v = (P) => {
|
|
6520
6520
|
h(P, !0);
|
|
6521
6521
|
}, S = (P) => {
|
|
@@ -6527,39 +6527,39 @@ function Em(t, e, n) {
|
|
|
6527
6527
|
}, g = (P) => {
|
|
6528
6528
|
if (!P || !P.length)
|
|
6529
6529
|
return h([], !1);
|
|
6530
|
-
const
|
|
6530
|
+
const T = P.reduce(
|
|
6531
6531
|
(B, j) => {
|
|
6532
6532
|
const N = tn(j.id, !1);
|
|
6533
6533
|
return pn(j) ? B.nodes.push(N) : B.edges.push(N), B;
|
|
6534
6534
|
},
|
|
6535
6535
|
{ nodes: [], edges: [] }
|
|
6536
6536
|
);
|
|
6537
|
-
|
|
6537
|
+
T.nodes.length && t.hooks.nodesChange.trigger(T.nodes), T.edges.length && t.hooks.edgesChange.trigger(T.edges);
|
|
6538
6538
|
}, w = (P) => {
|
|
6539
|
-
var
|
|
6540
|
-
(
|
|
6539
|
+
var T;
|
|
6540
|
+
(T = t.d3Zoom) == null || T.scaleExtent([P, t.maxZoom]), t.minZoom = P;
|
|
6541
6541
|
}, A = (P) => {
|
|
6542
|
-
var
|
|
6543
|
-
(
|
|
6542
|
+
var T;
|
|
6543
|
+
(T = t.d3Zoom) == null || T.scaleExtent([t.minZoom, P]), t.maxZoom = P;
|
|
6544
6544
|
}, $ = (P) => {
|
|
6545
|
-
var
|
|
6546
|
-
(
|
|
6545
|
+
var T;
|
|
6546
|
+
(T = t.d3Zoom) == null || T.translateExtent(P), t.translateExtent = P;
|
|
6547
6547
|
}, F = (P) => {
|
|
6548
6548
|
t.nodeExtent = P, i();
|
|
6549
6549
|
}, U = (P) => {
|
|
6550
|
-
var
|
|
6551
|
-
(
|
|
6550
|
+
var T;
|
|
6551
|
+
(T = t.d3Zoom) == null || T.clickDistance(P);
|
|
6552
6552
|
}, Y = (P) => {
|
|
6553
6553
|
t.nodesDraggable = P, t.nodesConnectable = P, t.elementsSelectable = P;
|
|
6554
6554
|
}, C = (P) => {
|
|
6555
|
-
const
|
|
6556
|
-
!t.initialized && !
|
|
6555
|
+
const T = P instanceof Function ? P(t.nodes) : P;
|
|
6556
|
+
!t.initialized && !T.length || (t.nodes = Ca(T, l, t.hooks.error.trigger));
|
|
6557
6557
|
}, I = (P) => {
|
|
6558
|
-
const
|
|
6559
|
-
if (!t.initialized && !
|
|
6558
|
+
const T = P instanceof Function ? P(t.edges) : P;
|
|
6559
|
+
if (!t.initialized && !T.length)
|
|
6560
6560
|
return;
|
|
6561
6561
|
const B = ur(
|
|
6562
|
-
|
|
6562
|
+
T,
|
|
6563
6563
|
t.isValidConnection,
|
|
6564
6564
|
l,
|
|
6565
6565
|
u,
|
|
@@ -6570,20 +6570,20 @@ function Em(t, e, n) {
|
|
|
6570
6570
|
);
|
|
6571
6571
|
lr(t.connectionLookup, n.value, B), t.edges = B;
|
|
6572
6572
|
}, E = (P) => {
|
|
6573
|
-
const
|
|
6574
|
-
!t.initialized && !
|
|
6573
|
+
const T = P instanceof Function ? P([...t.nodes, ...t.edges]) : P;
|
|
6574
|
+
!t.initialized && !T.length || (C(T.filter(pn)), I(T.filter(an)));
|
|
6575
6575
|
}, H = (P) => {
|
|
6576
|
-
let
|
|
6577
|
-
|
|
6578
|
-
const B = Ca(
|
|
6576
|
+
let T = P instanceof Function ? P(t.nodes) : P;
|
|
6577
|
+
T = Array.isArray(T) ? T : [T];
|
|
6578
|
+
const B = Ca(T, l, t.hooks.error.trigger), j = [];
|
|
6579
6579
|
for (const N of B)
|
|
6580
6580
|
j.push(pa(N));
|
|
6581
6581
|
j.length && t.hooks.nodesChange.trigger(j);
|
|
6582
6582
|
}, b = (P) => {
|
|
6583
|
-
let
|
|
6584
|
-
|
|
6583
|
+
let T = P instanceof Function ? P(t.edges) : P;
|
|
6584
|
+
T = Array.isArray(T) ? T : [T];
|
|
6585
6585
|
const B = ur(
|
|
6586
|
-
|
|
6586
|
+
T,
|
|
6587
6587
|
t.isValidConnection,
|
|
6588
6588
|
l,
|
|
6589
6589
|
u,
|
|
@@ -6595,7 +6595,7 @@ function Em(t, e, n) {
|
|
|
6595
6595
|
for (const N of B)
|
|
6596
6596
|
j.push(pa(N));
|
|
6597
6597
|
j.length && t.hooks.edgesChange.trigger(j);
|
|
6598
|
-
}, D = (P,
|
|
6598
|
+
}, D = (P, T = !0, B = !1) => {
|
|
6599
6599
|
const j = P instanceof Function ? P(t.nodes) : P, N = Array.isArray(j) ? j : [j], W = [], G = [];
|
|
6600
6600
|
function q(ne) {
|
|
6601
6601
|
const ye = a(ne);
|
|
@@ -6609,18 +6609,18 @@ function Em(t, e, n) {
|
|
|
6609
6609
|
if (ye.length) {
|
|
6610
6610
|
for (const _e of ye)
|
|
6611
6611
|
W.push(ma(_e.id));
|
|
6612
|
-
|
|
6612
|
+
T && q(ye);
|
|
6613
6613
|
for (const _e of ye)
|
|
6614
6614
|
oe(_e.id);
|
|
6615
6615
|
}
|
|
6616
6616
|
}
|
|
6617
6617
|
for (const ne of N) {
|
|
6618
6618
|
const ye = typeof ne == "string" ? l(ne) : ne;
|
|
6619
|
-
ye && (qe(ye.deletable) && !ye.deletable || (W.push(ma(ye.id)),
|
|
6619
|
+
ye && (qe(ye.deletable) && !ye.deletable || (W.push(ma(ye.id)), T && q([ye]), B && oe(ye.id)));
|
|
6620
6620
|
}
|
|
6621
6621
|
G.length && t.hooks.edgesChange.trigger(G), W.length && t.hooks.nodesChange.trigger(W);
|
|
6622
6622
|
}, y = (P) => {
|
|
6623
|
-
const
|
|
6623
|
+
const T = P instanceof Function ? P(t.edges) : P, B = Array.isArray(T) ? T : [T], j = [];
|
|
6624
6624
|
for (const N of B) {
|
|
6625
6625
|
const W = typeof N == "string" ? u(N) : N;
|
|
6626
6626
|
W && (qe(W.deletable) && !W.deletable || j.push(
|
|
@@ -6634,11 +6634,11 @@ function Em(t, e, n) {
|
|
|
6634
6634
|
));
|
|
6635
6635
|
}
|
|
6636
6636
|
t.hooks.edgesChange.trigger(j);
|
|
6637
|
-
}, x = (P,
|
|
6637
|
+
}, x = (P, T, B = !0) => {
|
|
6638
6638
|
const j = u(P.id);
|
|
6639
6639
|
if (!j)
|
|
6640
6640
|
return !1;
|
|
6641
|
-
const N = t.edges.indexOf(j), W = sm(P,
|
|
6641
|
+
const N = t.edges.indexOf(j), W = sm(P, T, j, B, t.hooks.error.trigger);
|
|
6642
6642
|
if (W) {
|
|
6643
6643
|
const [G] = ur(
|
|
6644
6644
|
[W],
|
|
@@ -6653,37 +6653,37 @@ function Em(t, e, n) {
|
|
|
6653
6653
|
return t.edges = t.edges.map((q, oe) => oe === N ? G : q), lr(t.connectionLookup, n.value, [G]), G;
|
|
6654
6654
|
}
|
|
6655
6655
|
return !1;
|
|
6656
|
-
},
|
|
6656
|
+
}, k = (P, T, B = { replace: !1 }) => {
|
|
6657
6657
|
const j = u(P);
|
|
6658
6658
|
if (!j)
|
|
6659
6659
|
return;
|
|
6660
|
-
const N = typeof
|
|
6660
|
+
const N = typeof T == "function" ? T(j) : T;
|
|
6661
6661
|
j.data = B.replace ? N : { ...j.data, ...N };
|
|
6662
6662
|
}, O = (P) => ga(P, t.nodes), R = (P) => {
|
|
6663
|
-
const
|
|
6664
|
-
return lr(t.connectionLookup, n.value,
|
|
6665
|
-
}, M = (P,
|
|
6663
|
+
const T = ga(P, t.edges);
|
|
6664
|
+
return lr(t.connectionLookup, n.value, T), T;
|
|
6665
|
+
}, M = (P, T, B = { replace: !1 }) => {
|
|
6666
6666
|
const j = l(P);
|
|
6667
6667
|
if (!j)
|
|
6668
6668
|
return;
|
|
6669
|
-
const N = typeof
|
|
6669
|
+
const N = typeof T == "function" ? T(j) : T;
|
|
6670
6670
|
B.replace ? t.nodes.splice(t.nodes.indexOf(j), 1, N) : Object.assign(j, N);
|
|
6671
|
-
}, z = (P,
|
|
6671
|
+
}, z = (P, T, B = { replace: !1 }) => {
|
|
6672
6672
|
const j = l(P);
|
|
6673
6673
|
if (!j)
|
|
6674
6674
|
return;
|
|
6675
|
-
const N = typeof
|
|
6675
|
+
const N = typeof T == "function" ? T(j) : T;
|
|
6676
6676
|
j.data = B.replace ? N : { ...j.data, ...N };
|
|
6677
|
-
}, L = (P,
|
|
6678
|
-
B ? t.connectionClickStartHandle = P : t.connectionStartHandle = P, t.connectionEndHandle = null, t.connectionStatus = null,
|
|
6679
|
-
}, V = (P,
|
|
6680
|
-
t.connectionStartHandle && (t.connectionPosition = P, t.connectionEndHandle =
|
|
6681
|
-
}, K = (P,
|
|
6682
|
-
t.connectionPosition = { x: Number.NaN, y: Number.NaN }, t.connectionEndHandle = null, t.connectionStatus = null,
|
|
6677
|
+
}, L = (P, T, B = !1) => {
|
|
6678
|
+
B ? t.connectionClickStartHandle = P : t.connectionStartHandle = P, t.connectionEndHandle = null, t.connectionStatus = null, T && (t.connectionPosition = T);
|
|
6679
|
+
}, V = (P, T = null, B = null) => {
|
|
6680
|
+
t.connectionStartHandle && (t.connectionPosition = P, t.connectionEndHandle = T, t.connectionStatus = B);
|
|
6681
|
+
}, K = (P, T) => {
|
|
6682
|
+
t.connectionPosition = { x: Number.NaN, y: Number.NaN }, t.connectionEndHandle = null, t.connectionStatus = null, T ? t.connectionClickStartHandle = null : t.connectionStartHandle = null;
|
|
6683
6683
|
}, Q = (P) => {
|
|
6684
|
-
const
|
|
6685
|
-
return !
|
|
6686
|
-
}, X = (P,
|
|
6684
|
+
const T = Pp(P), B = T ? null : Un(P) ? P : l(P.id);
|
|
6685
|
+
return !T && !B ? [null, null, T] : [T ? P : Si(B), B, T];
|
|
6686
|
+
}, X = (P, T = !0, B = t.nodes) => {
|
|
6687
6687
|
const [j, N, W] = Q(P);
|
|
6688
6688
|
if (!j)
|
|
6689
6689
|
return [];
|
|
@@ -6692,26 +6692,26 @@ function Em(t, e, n) {
|
|
|
6692
6692
|
if (!W && (q.id === N.id || !q.computedPosition))
|
|
6693
6693
|
continue;
|
|
6694
6694
|
const oe = Si(q), ne = Di(oe, j);
|
|
6695
|
-
(
|
|
6695
|
+
(T && ne > 0 || ne >= oe.width * oe.height || ne >= Number(j.width) * Number(j.height)) && G.push(q);
|
|
6696
6696
|
}
|
|
6697
6697
|
return G;
|
|
6698
|
-
}, ee = (P,
|
|
6698
|
+
}, ee = (P, T, B = !0) => {
|
|
6699
6699
|
const [j] = Q(P);
|
|
6700
6700
|
if (!j)
|
|
6701
6701
|
return !1;
|
|
6702
|
-
const N = Di(j,
|
|
6702
|
+
const N = Di(j, T);
|
|
6703
6703
|
return B && N > 0 || N >= Number(j.width) * Number(j.height);
|
|
6704
6704
|
}, se = (P) => {
|
|
6705
|
-
const { viewport:
|
|
6705
|
+
const { viewport: T, dimensions: B, d3Zoom: j, d3Selection: N, translateExtent: W } = t;
|
|
6706
6706
|
if (!j || !N || !P.x && !P.y)
|
|
6707
6707
|
return !1;
|
|
6708
|
-
const G = zn.translate(
|
|
6708
|
+
const G = zn.translate(T.x + P.x, T.y + P.y).scale(T.zoom), q = [
|
|
6709
6709
|
[0, 0],
|
|
6710
6710
|
[B.width, B.height]
|
|
6711
6711
|
], oe = j.constrain()(G, q, W), ne = t.viewport.x !== oe.x || t.viewport.y !== oe.y || t.viewport.zoom !== oe.k;
|
|
6712
6712
|
return j.transform(N, oe), ne;
|
|
6713
6713
|
}, ie = (P) => {
|
|
6714
|
-
const
|
|
6714
|
+
const T = P instanceof Function ? P(t) : P, B = [
|
|
6715
6715
|
"d3Zoom",
|
|
6716
6716
|
"d3Selection",
|
|
6717
6717
|
"d3ZoomHandler",
|
|
@@ -6720,17 +6720,17 @@ function Em(t, e, n) {
|
|
|
6720
6720
|
"dimensions",
|
|
6721
6721
|
"hooks"
|
|
6722
6722
|
];
|
|
6723
|
-
qe(
|
|
6724
|
-
const j =
|
|
6725
|
-
j && (
|
|
6723
|
+
qe(T.defaultEdgeOptions) && (t.defaultEdgeOptions = T.defaultEdgeOptions);
|
|
6724
|
+
const j = T.modelValue || T.nodes || T.edges ? [] : void 0;
|
|
6725
|
+
j && (T.modelValue && j.push(...T.modelValue), T.nodes && j.push(...T.nodes), T.edges && j.push(...T.edges), E(j));
|
|
6726
6726
|
const N = () => {
|
|
6727
|
-
qe(
|
|
6727
|
+
qe(T.maxZoom) && A(T.maxZoom), qe(T.minZoom) && w(T.minZoom), qe(T.translateExtent) && $(T.translateExtent);
|
|
6728
6728
|
};
|
|
6729
|
-
for (const W of Object.keys(
|
|
6730
|
-
const G = W, q =
|
|
6729
|
+
for (const W of Object.keys(T)) {
|
|
6730
|
+
const G = W, q = T[G];
|
|
6731
6731
|
![...xm, ...B].includes(G) && qe(q) && (t[G] = q);
|
|
6732
6732
|
}
|
|
6733
|
-
|
|
6733
|
+
kr(() => t.d3Zoom).not.toBeNull().then(N), t.initialized || (t.initialized = !0);
|
|
6734
6734
|
};
|
|
6735
6735
|
return {
|
|
6736
6736
|
updateNodePositions: d,
|
|
@@ -6745,7 +6745,7 @@ function Em(t, e, n) {
|
|
|
6745
6745
|
findNode: l,
|
|
6746
6746
|
findEdge: u,
|
|
6747
6747
|
updateEdge: x,
|
|
6748
|
-
updateEdgeData:
|
|
6748
|
+
updateEdgeData: k,
|
|
6749
6749
|
updateNode: M,
|
|
6750
6750
|
updateNodeData: z,
|
|
6751
6751
|
applyEdgeChanges: R,
|
|
@@ -6776,18 +6776,18 @@ function Em(t, e, n) {
|
|
|
6776
6776
|
fitView: (P) => o.value.fitView(P),
|
|
6777
6777
|
zoomIn: (P) => o.value.zoomIn(P),
|
|
6778
6778
|
zoomOut: (P) => o.value.zoomOut(P),
|
|
6779
|
-
zoomTo: (P,
|
|
6780
|
-
setViewport: (P,
|
|
6781
|
-
setTransform: (P,
|
|
6779
|
+
zoomTo: (P, T) => o.value.zoomTo(P, T),
|
|
6780
|
+
setViewport: (P, T) => o.value.setViewport(P, T),
|
|
6781
|
+
setTransform: (P, T) => o.value.setTransform(P, T),
|
|
6782
6782
|
getViewport: () => o.value.getViewport(),
|
|
6783
6783
|
getTransform: () => o.value.getTransform(),
|
|
6784
|
-
setCenter: (P,
|
|
6785
|
-
fitBounds: (P,
|
|
6784
|
+
setCenter: (P, T, B) => o.value.setCenter(P, T, B),
|
|
6785
|
+
fitBounds: (P, T) => o.value.fitBounds(P, T),
|
|
6786
6786
|
project: (P) => o.value.project(P),
|
|
6787
6787
|
screenToFlowCoordinate: (P) => o.value.screenToFlowCoordinate(P),
|
|
6788
6788
|
flowToScreenCoordinate: (P) => o.value.flowToScreenCoordinate(P),
|
|
6789
6789
|
toObject: () => {
|
|
6790
|
-
const P = [],
|
|
6790
|
+
const P = [], T = [];
|
|
6791
6791
|
for (const B of t.nodes) {
|
|
6792
6792
|
const {
|
|
6793
6793
|
computedPosition: j,
|
|
@@ -6804,45 +6804,45 @@ function Em(t, e, n) {
|
|
|
6804
6804
|
}
|
|
6805
6805
|
for (const B of t.edges) {
|
|
6806
6806
|
const { selected: j, sourceNode: N, targetNode: W, events: G, ...q } = B;
|
|
6807
|
-
|
|
6807
|
+
T.push(q);
|
|
6808
6808
|
}
|
|
6809
6809
|
return JSON.parse(
|
|
6810
6810
|
JSON.stringify({
|
|
6811
6811
|
nodes: P,
|
|
6812
|
-
edges:
|
|
6812
|
+
edges: T,
|
|
6813
6813
|
position: [t.viewport.x, t.viewport.y],
|
|
6814
6814
|
zoom: t.viewport.zoom,
|
|
6815
6815
|
viewport: t.viewport
|
|
6816
6816
|
})
|
|
6817
6817
|
);
|
|
6818
6818
|
},
|
|
6819
|
-
fromObject: (P) => new Promise((
|
|
6819
|
+
fromObject: (P) => new Promise((T) => {
|
|
6820
6820
|
const { nodes: B, edges: j, position: N, zoom: W, viewport: G } = P;
|
|
6821
6821
|
B && C(B), j && I(j);
|
|
6822
6822
|
const [q, oe] = G?.x && G?.y ? [G.x, G.y] : N ?? [null, null];
|
|
6823
6823
|
if (q && oe) {
|
|
6824
6824
|
const ne = G?.zoom || W || t.viewport.zoom;
|
|
6825
|
-
return
|
|
6825
|
+
return kr(() => o.value.viewportInitialized).toBe(!0).then(() => {
|
|
6826
6826
|
o.value.setViewport({
|
|
6827
6827
|
x: q,
|
|
6828
6828
|
y: oe,
|
|
6829
6829
|
zoom: ne
|
|
6830
6830
|
}).then(() => {
|
|
6831
|
-
|
|
6831
|
+
T(!0);
|
|
6832
6832
|
});
|
|
6833
6833
|
});
|
|
6834
6834
|
} else
|
|
6835
|
-
|
|
6835
|
+
T(!0);
|
|
6836
6836
|
}),
|
|
6837
6837
|
updateNodeInternals: i,
|
|
6838
6838
|
viewportHelper: o,
|
|
6839
6839
|
$reset: () => {
|
|
6840
6840
|
const P = Su();
|
|
6841
6841
|
if (t.edges = [], t.nodes = [], t.d3Zoom && t.d3Selection) {
|
|
6842
|
-
const
|
|
6842
|
+
const T = zn.translate(P.defaultViewport.x ?? 0, P.defaultViewport.y ?? 0).scale(yn(P.defaultViewport.zoom ?? 1, P.minZoom, P.maxZoom)), B = t.viewportRef.getBoundingClientRect(), j = [
|
|
6843
6843
|
[0, 0],
|
|
6844
6844
|
[B.width, B.height]
|
|
6845
|
-
], N = t.d3Zoom.constrain()(
|
|
6845
|
+
], N = t.d3Zoom.constrain()(T, j, P.translateExtent);
|
|
6846
6846
|
t.d3Zoom.transform(t.d3Selection, N);
|
|
6847
6847
|
}
|
|
6848
6848
|
ie(P);
|
|
@@ -6907,7 +6907,7 @@ const Cm = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], Sm = {
|
|
|
6907
6907
|
const H = l.value.querySelector(".vue-flow__transformationpane");
|
|
6908
6908
|
if (!p.value || !S.value || !H || !t.id)
|
|
6909
6909
|
return;
|
|
6910
|
-
const b = p.value.getBoundingClientRect(), D = S.value.getBoundingClientRect(), y = window.getComputedStyle(H), { m22: x } = new window.DOMMatrixReadOnly(y.transform),
|
|
6910
|
+
const b = p.value.getBoundingClientRect(), D = S.value.getBoundingClientRect(), y = window.getComputedStyle(H), { m22: x } = new window.DOMMatrixReadOnly(y.transform), k = {
|
|
6911
6911
|
id: t.id,
|
|
6912
6912
|
position: t.position,
|
|
6913
6913
|
x: (D.left - b.left) / x,
|
|
@@ -6916,7 +6916,7 @@ const Cm = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], Sm = {
|
|
|
6916
6916
|
nodeId: h,
|
|
6917
6917
|
...Gi(S.value)
|
|
6918
6918
|
};
|
|
6919
|
-
m.handleBounds[o.value] = [...m.handleBounds[o.value] ?? [],
|
|
6919
|
+
m.handleBounds[o.value] = [...m.handleBounds[o.value] ?? [], k];
|
|
6920
6920
|
});
|
|
6921
6921
|
function Y(I) {
|
|
6922
6922
|
const E = ds(I);
|
|
@@ -7009,7 +7009,7 @@ const Nm = Ui, Xi = function({
|
|
|
7009
7009
|
Xi.props = ["sourcePosition", "label", "isValidSourcePos", "connectable", "data"];
|
|
7010
7010
|
Xi.inheritAttrs = !1;
|
|
7011
7011
|
Xi.compatConfig = { MODE: 3 };
|
|
7012
|
-
const
|
|
7012
|
+
const km = Xi, Tm = ["transform"], Im = ["width", "height", "x", "y", "rx", "ry"], Mm = ["y"], $m = {
|
|
7013
7013
|
name: "EdgeText",
|
|
7014
7014
|
compatConfig: { MODE: 3 }
|
|
7015
7015
|
}, Am = /* @__PURE__ */ Ee({
|
|
@@ -7062,7 +7062,7 @@ const Tm = Xi, km = ["transform"], Im = ["width", "height", "x", "y", "rx", "ry"
|
|
|
7062
7062
|
], 64))
|
|
7063
7063
|
])
|
|
7064
7064
|
], 16, Mm)
|
|
7065
|
-
], 8,
|
|
7065
|
+
], 8, Tm));
|
|
7066
7066
|
}
|
|
7067
7067
|
}), Pm = ["id", "d", "marker-end", "marker-start"], zm = ["d", "stroke-width"], Om = {
|
|
7068
7068
|
name: "BaseEdge",
|
|
@@ -7152,7 +7152,7 @@ function Nu({
|
|
|
7152
7152
|
function Ao(t, e) {
|
|
7153
7153
|
return t >= 0 ? 0.5 * t : e * 25 * Math.sqrt(-t);
|
|
7154
7154
|
}
|
|
7155
|
-
function
|
|
7155
|
+
function ka({ pos: t, x1: e, y1: n, x2: o, y2: i, c: r }) {
|
|
7156
7156
|
let s, a;
|
|
7157
7157
|
switch (t) {
|
|
7158
7158
|
case pe.Left:
|
|
@@ -7179,14 +7179,14 @@ function fs(t) {
|
|
|
7179
7179
|
targetY: r,
|
|
7180
7180
|
targetPosition: s = pe.Top,
|
|
7181
7181
|
curvature: a = 0.25
|
|
7182
|
-
} = t, [c, l] =
|
|
7182
|
+
} = t, [c, l] = ka({
|
|
7183
7183
|
pos: o,
|
|
7184
7184
|
x1: e,
|
|
7185
7185
|
y1: n,
|
|
7186
7186
|
x2: i,
|
|
7187
7187
|
y2: r,
|
|
7188
7188
|
c: a
|
|
7189
|
-
}), [u, d] =
|
|
7189
|
+
}), [u, d] = ka({
|
|
7190
7190
|
pos: s,
|
|
7191
7191
|
x1: i,
|
|
7192
7192
|
y1: r,
|
|
@@ -7211,7 +7211,7 @@ function fs(t) {
|
|
|
7211
7211
|
p
|
|
7212
7212
|
];
|
|
7213
7213
|
}
|
|
7214
|
-
function
|
|
7214
|
+
function Ta({ pos: t, x1: e, y1: n, x2: o, y2: i }) {
|
|
7215
7215
|
let r, s;
|
|
7216
7216
|
switch (t) {
|
|
7217
7217
|
case pe.Left:
|
|
@@ -7225,7 +7225,7 @@ function ka({ pos: t, x1: e, y1: n, x2: o, y2: i }) {
|
|
|
7225
7225
|
}
|
|
7226
7226
|
return [r, s];
|
|
7227
7227
|
}
|
|
7228
|
-
function
|
|
7228
|
+
function ku(t) {
|
|
7229
7229
|
const {
|
|
7230
7230
|
sourceX: e,
|
|
7231
7231
|
sourceY: n,
|
|
@@ -7233,13 +7233,13 @@ function Tu(t) {
|
|
|
7233
7233
|
targetX: i,
|
|
7234
7234
|
targetY: r,
|
|
7235
7235
|
targetPosition: s = pe.Top
|
|
7236
|
-
} = t, [a, c] =
|
|
7236
|
+
} = t, [a, c] = Ta({
|
|
7237
7237
|
pos: o,
|
|
7238
7238
|
x1: e,
|
|
7239
7239
|
y1: n,
|
|
7240
7240
|
x2: i,
|
|
7241
7241
|
y2: r
|
|
7242
|
-
}), [l, u] =
|
|
7242
|
+
}), [l, u] = Ta({
|
|
7243
7243
|
pos: s,
|
|
7244
7244
|
x1: i,
|
|
7245
7245
|
y1: r,
|
|
@@ -7446,7 +7446,7 @@ const Fm = Ee({
|
|
|
7446
7446
|
});
|
|
7447
7447
|
};
|
|
7448
7448
|
}
|
|
7449
|
-
}),
|
|
7449
|
+
}), Tu = Gm, Wm = Ee({
|
|
7450
7450
|
name: "StepEdge",
|
|
7451
7451
|
props: [
|
|
7452
7452
|
"sourcePosition",
|
|
@@ -7466,7 +7466,7 @@ const Fm = Ee({
|
|
|
7466
7466
|
"interactionWidth"
|
|
7467
7467
|
],
|
|
7468
7468
|
setup(t, { attrs: e }) {
|
|
7469
|
-
return () => $e(
|
|
7469
|
+
return () => $e(Tu, { ...t, ...e, borderRadius: 0 });
|
|
7470
7470
|
}
|
|
7471
7471
|
}), Ym = Wm, jm = Ee({
|
|
7472
7472
|
name: "BezierEdge",
|
|
@@ -7527,7 +7527,7 @@ const Fm = Ee({
|
|
|
7527
7527
|
compatConfig: { MODE: 3 },
|
|
7528
7528
|
setup(t, { attrs: e }) {
|
|
7529
7529
|
return () => {
|
|
7530
|
-
const [n, o, i] =
|
|
7530
|
+
const [n, o, i] = ku({
|
|
7531
7531
|
...t,
|
|
7532
7532
|
sourcePosition: t.sourcePosition ?? pe.Bottom,
|
|
7533
7533
|
targetPosition: t.targetPosition ?? pe.Top
|
|
@@ -7542,14 +7542,14 @@ const Fm = Ee({
|
|
|
7542
7542
|
};
|
|
7543
7543
|
}
|
|
7544
7544
|
}), qm = Xm, Km = {
|
|
7545
|
-
input:
|
|
7545
|
+
input: km,
|
|
7546
7546
|
default: Dm,
|
|
7547
7547
|
output: Nm
|
|
7548
7548
|
}, Zm = {
|
|
7549
7549
|
default: Um,
|
|
7550
7550
|
straight: Vm,
|
|
7551
7551
|
step: Ym,
|
|
7552
|
-
smoothstep:
|
|
7552
|
+
smoothstep: Tu,
|
|
7553
7553
|
simplebezier: qm
|
|
7554
7554
|
};
|
|
7555
7555
|
function Jm(t, e, n) {
|
|
@@ -7798,10 +7798,10 @@ const ev = {
|
|
|
7798
7798
|
e.selectionContextMenu({ event: m, nodes: o.value });
|
|
7799
7799
|
}
|
|
7800
7800
|
function h(m) {
|
|
7801
|
-
r.value ||
|
|
7801
|
+
r.value || Tn[m.key] && (m.preventDefault(), a(
|
|
7802
7802
|
{
|
|
7803
|
-
x:
|
|
7804
|
-
y:
|
|
7803
|
+
x: Tn[m.key].x,
|
|
7804
|
+
y: Tn[m.key].y
|
|
7805
7805
|
},
|
|
7806
7806
|
m.shiftKey
|
|
7807
7807
|
));
|
|
@@ -7871,7 +7871,7 @@ const sv = {
|
|
|
7871
7871
|
}), De(x, (K) => {
|
|
7872
7872
|
S.value = K;
|
|
7873
7873
|
});
|
|
7874
|
-
function
|
|
7874
|
+
function k(K, Q) {
|
|
7875
7875
|
return (X) => {
|
|
7876
7876
|
X.target === Q && K?.(X);
|
|
7877
7877
|
};
|
|
@@ -7924,12 +7924,12 @@ const sv = {
|
|
|
7924
7924
|
}, re = Y.value, le = C.value;
|
|
7925
7925
|
Y.value = new Set(
|
|
7926
7926
|
du(n.value, ge, o.value, m.value === us.Partial, !0).map(
|
|
7927
|
-
(
|
|
7927
|
+
(T) => T.id
|
|
7928
7928
|
)
|
|
7929
7929
|
), C.value = /* @__PURE__ */ new Set();
|
|
7930
7930
|
const P = ((Q = A.value) == null ? void 0 : Q.selectable) ?? !0;
|
|
7931
|
-
for (const
|
|
7932
|
-
const B = w.value.get(
|
|
7931
|
+
for (const T of Y.value) {
|
|
7932
|
+
const B = w.value.get(T);
|
|
7933
7933
|
if (B)
|
|
7934
7934
|
for (const { edgeId: j } of B.values()) {
|
|
7935
7935
|
const N = _.value.get(j);
|
|
@@ -7937,12 +7937,12 @@ const sv = {
|
|
|
7937
7937
|
}
|
|
7938
7938
|
}
|
|
7939
7939
|
if (!Da(re, Y.value)) {
|
|
7940
|
-
const
|
|
7941
|
-
i.nodesChange(
|
|
7940
|
+
const T = nn(g.value, Y.value, !0);
|
|
7941
|
+
i.nodesChange(T);
|
|
7942
7942
|
}
|
|
7943
7943
|
if (!Da(le, C.value)) {
|
|
7944
|
-
const
|
|
7945
|
-
i.edgesChange(
|
|
7944
|
+
const T = nn(_.value, C.value);
|
|
7945
|
+
i.edgesChange(T);
|
|
7946
7946
|
}
|
|
7947
7947
|
a.value = ge, r.value = !0, l.value = !1;
|
|
7948
7948
|
}
|
|
@@ -7954,9 +7954,9 @@ const sv = {
|
|
|
7954
7954
|
ref_key: "container",
|
|
7955
7955
|
ref: U,
|
|
7956
7956
|
class: vt(["vue-flow__pane vue-flow__container", { selection: K.isSelecting }]),
|
|
7957
|
-
onClick: Q[0] || (Q[0] = (X) => E.value ? void 0 :
|
|
7958
|
-
onContextmenu: Q[1] || (Q[1] = (X) =>
|
|
7959
|
-
onWheelPassive: Q[2] || (Q[2] = (X) =>
|
|
7957
|
+
onClick: Q[0] || (Q[0] = (X) => E.value ? void 0 : k(O, U.value)(X)),
|
|
7958
|
+
onContextmenu: Q[1] || (Q[1] = (X) => k(R, U.value)(X)),
|
|
7959
|
+
onWheelPassive: Q[2] || (Q[2] = (X) => k(M, U.value)(X)),
|
|
7960
7960
|
onPointerenter: Q[3] || (Q[3] = (X) => E.value ? void 0 : J(i).paneMouseEnter(X)),
|
|
7961
7961
|
onPointerdown: Q[4] || (Q[4] = (X) => E.value ? z(X) : J(i).paneMouseMove(X)),
|
|
7962
7962
|
onPointermove: Q[5] || (Q[5] = (X) => E.value ? L(X) : J(i).paneMouseMove(X)),
|
|
@@ -8027,9 +8027,9 @@ const sv = {
|
|
|
8027
8027
|
y: 0,
|
|
8028
8028
|
zoom: 0
|
|
8029
8029
|
};
|
|
8030
|
-
const
|
|
8031
|
-
() => (!O.value || O.value && s.value === !0) && (
|
|
8032
|
-
), z = Oe(() =>
|
|
8030
|
+
const k = eo(a), O = eo(s), R = eo(r), M = Oe(
|
|
8031
|
+
() => (!O.value || O.value && s.value === !0) && (k.value || d.value)
|
|
8032
|
+
), z = Oe(() => k.value || c.value), L = Oe(() => s.value === !0 && M.value !== !0), V = Oe(
|
|
8033
8033
|
() => O.value && s.value !== !0 || w.value || L.value
|
|
8034
8034
|
), K = Oe(() => g.value !== null);
|
|
8035
8035
|
gt(() => {
|
|
@@ -8037,10 +8037,10 @@ const sv = {
|
|
|
8037
8037
|
wo("Viewport element is missing");
|
|
8038
8038
|
return;
|
|
8039
8039
|
}
|
|
8040
|
-
const ie = C.value, ge = ie.getBoundingClientRect(), re = Np().clickDistance(I.value).scaleExtent([e.value, n.value]).translateExtent(i.value), le = Et(ie).call(re), P = le.on("wheel.zoom"),
|
|
8040
|
+
const ie = C.value, ge = ie.getBoundingClientRect(), re = Np().clickDistance(I.value).scaleExtent([e.value, n.value]).translateExtent(i.value), le = Et(ie).call(re), P = le.on("wheel.zoom"), T = zn.translate(o.value.x ?? 0, o.value.y ?? 0).scale(yn(o.value.zoom ?? 1, e.value, n.value)), B = [
|
|
8041
8041
|
[0, 0],
|
|
8042
8042
|
[ge.width, ge.height]
|
|
8043
|
-
], j = re.constrain()(
|
|
8043
|
+
], j = re.constrain()(T, B, i.value);
|
|
8044
8044
|
re.transform(le, j), re.wheelDelta(fa), $.value = re, F.value = le, U.value = P, Y.value = { x: j.x, y: j.y, zoom: j.k }, re.on("start", (N) => {
|
|
8045
8045
|
var W;
|
|
8046
8046
|
if (!N.sourceEvent)
|
|
@@ -8067,7 +8067,7 @@ const sv = {
|
|
|
8067
8067
|
if (!M.value && (N.type === "mousedown" || N.type === "touchstart") || L.value && Array.isArray(d.value) && d.value.includes(0) && oe === 0 || Array.isArray(d.value) && !d.value.includes(oe) && (N.type === "mousedown" || N.type === "touchstart"))
|
|
8068
8068
|
return !1;
|
|
8069
8069
|
const ye = Array.isArray(d.value) && d.value.includes(oe) || s.value === !0 && Array.isArray(d.value) && !d.value.includes(0) || !oe || oe <= 1;
|
|
8070
|
-
return (!N.ctrlKey ||
|
|
8070
|
+
return (!N.ctrlKey || k.value || ne) && ye;
|
|
8071
8071
|
}), De(
|
|
8072
8072
|
[w, M],
|
|
8073
8073
|
() => {
|
|
@@ -8091,8 +8091,8 @@ const sv = {
|
|
|
8091
8091
|
return !1;
|
|
8092
8092
|
N.preventDefault(), N.stopImmediatePropagation();
|
|
8093
8093
|
const oe = le.property("__zoom").k || 1, ne = Ni();
|
|
8094
|
-
if (!
|
|
8095
|
-
const pt =
|
|
8094
|
+
if (!k.value && N.ctrlKey && h.value && ne) {
|
|
8095
|
+
const pt = kt(N), He = fa(N), Rt = oe * 2 ** He;
|
|
8096
8096
|
re.scaleTo(le, Rt, pt, N);
|
|
8097
8097
|
return;
|
|
8098
8098
|
}
|
|
@@ -8254,14 +8254,14 @@ const $a = hs, _v = Ee({
|
|
|
8254
8254
|
() => typeof g.value.selectable > "u" ? p.value : g.value.selectable
|
|
8255
8255
|
), D = Oe(() => typeof g.value.updatable > "u" ? v.value : g.value.updatable), y = Oe(() => typeof g.value.focusable > "u" ? S.value : g.value.focusable);
|
|
8256
8256
|
Xt(am, t.id), Xt(lm, H);
|
|
8257
|
-
const x = ce(() => g.value.class instanceof Function ? g.value.class(g.value) : g.value.class),
|
|
8258
|
-
const
|
|
8257
|
+
const x = ce(() => g.value.class instanceof Function ? g.value.class(g.value) : g.value.class), k = ce(() => g.value.style instanceof Function ? g.value.style(g.value) : g.value.style), O = ce(() => {
|
|
8258
|
+
const T = g.value.type || "default", B = $?.[`edge-${T}`];
|
|
8259
8259
|
if (B)
|
|
8260
8260
|
return B;
|
|
8261
|
-
let j = g.value.template ?? c.value[
|
|
8261
|
+
let j = g.value.template ?? c.value[T];
|
|
8262
8262
|
if (typeof j == "string" && F) {
|
|
8263
8263
|
const N = Object.keys(F.appContext.components);
|
|
8264
|
-
N && N.includes(
|
|
8264
|
+
N && N.includes(T) && (j = ze(T, !1));
|
|
8265
8265
|
}
|
|
8266
8266
|
return j && typeof j != "string" ? j : (r.error(new Je(Ze.EDGE_TYPE_MISSING, j)), !1);
|
|
8267
8267
|
}), { handlePointerDown: R } = xu({
|
|
@@ -8274,21 +8274,21 @@ const $a = hs, _v = Ee({
|
|
|
8274
8274
|
onEdgeUpdateEnd: V
|
|
8275
8275
|
});
|
|
8276
8276
|
return () => {
|
|
8277
|
-
const
|
|
8278
|
-
if (!
|
|
8277
|
+
const T = d(g.value.source), B = d(g.value.target), j = "pathOptions" in g.value ? g.value.pathOptions : {};
|
|
8278
|
+
if (!T && !B)
|
|
8279
8279
|
return r.error(new Je(Ze.EDGE_SOURCE_TARGET_MISSING, g.value.id, g.value.source, g.value.target)), null;
|
|
8280
|
-
if (!
|
|
8280
|
+
if (!T)
|
|
8281
8281
|
return r.error(new Je(Ze.EDGE_SOURCE_MISSING, g.value.id, g.value.source)), null;
|
|
8282
8282
|
if (!B)
|
|
8283
8283
|
return r.error(new Je(Ze.EDGE_TARGET_MISSING, g.value.id, g.value.target)), null;
|
|
8284
|
-
if (!g.value || g.value.hidden ||
|
|
8284
|
+
if (!g.value || g.value.hidden || T.hidden || B.hidden)
|
|
8285
8285
|
return null;
|
|
8286
8286
|
let N;
|
|
8287
|
-
o.value === Kt.Strict ? N =
|
|
8287
|
+
o.value === Kt.Strict ? N = T.handleBounds.source : N = [...T.handleBounds.source || [], ...T.handleBounds.target || []];
|
|
8288
8288
|
const W = _a(N, g.value.sourceHandle);
|
|
8289
8289
|
let G;
|
|
8290
8290
|
o.value === Kt.Strict ? G = B.handleBounds.target : G = [...B.handleBounds.target || [], ...B.handleBounds.source || []];
|
|
8291
|
-
const q = _a(G, g.value.targetHandle), oe = W?.position || pe.Bottom, ne = q?.position || pe.Top, { x: ye, y: _e } = On(
|
|
8291
|
+
const q = _a(G, g.value.targetHandle), oe = W?.position || pe.Bottom, ne = q?.position || pe.Top, { x: ye, y: _e } = On(T, W, oe), { x: je, y: Ue } = On(B, q, ne);
|
|
8292
8292
|
return g.value.sourceX = ye, g.value.sourceY = _e, g.value.targetX = je, g.value.targetY = Ue, $e(
|
|
8293
8293
|
"g",
|
|
8294
8294
|
{
|
|
@@ -8324,7 +8324,7 @@ const $a = hs, _v = Ee({
|
|
|
8324
8324
|
[
|
|
8325
8325
|
Y.value ? null : $e(O.value === !1 ? c.value.default : O.value, {
|
|
8326
8326
|
id: t.id,
|
|
8327
|
-
sourceNode:
|
|
8327
|
+
sourceNode: T,
|
|
8328
8328
|
targetNode: B,
|
|
8329
8329
|
source: g.value.source,
|
|
8330
8330
|
target: g.value.target,
|
|
@@ -8340,7 +8340,7 @@ const $a = hs, _v = Ee({
|
|
|
8340
8340
|
labelBgBorderRadius: g.value.labelBgBorderRadius,
|
|
8341
8341
|
data: g.value.data,
|
|
8342
8342
|
events: { ...g.value.events, ...A },
|
|
8343
|
-
style:
|
|
8343
|
+
style: k.value,
|
|
8344
8344
|
markerStart: `url('#${po(g.value.markerStart, e)}')`,
|
|
8345
8345
|
markerEnd: `url('#${po(g.value.markerEnd, e)}')`,
|
|
8346
8346
|
sourcePosition: oe,
|
|
@@ -8401,44 +8401,44 @@ const $a = hs, _v = Ee({
|
|
|
8401
8401
|
function z() {
|
|
8402
8402
|
U.value = !1;
|
|
8403
8403
|
}
|
|
8404
|
-
function L(
|
|
8405
|
-
w.update({ event:
|
|
8404
|
+
function L(T, B) {
|
|
8405
|
+
w.update({ event: T, edge: g.value, connection: B });
|
|
8406
8406
|
}
|
|
8407
|
-
function V(
|
|
8408
|
-
w.updateEnd({ event:
|
|
8407
|
+
function V(T) {
|
|
8408
|
+
w.updateEnd({ event: T, edge: g.value }), Y.value = !1;
|
|
8409
8409
|
}
|
|
8410
|
-
function K(
|
|
8411
|
-
|
|
8410
|
+
function K(T, B) {
|
|
8411
|
+
T.button === 0 && (Y.value = !0, C.value = B ? g.value.target : g.value.source, I.value = (B ? g.value.targetHandle : g.value.sourceHandle) ?? null, E.value = B ? "target" : "source", w.updateStart({ event: T, edge: g.value }), R(T));
|
|
8412
8412
|
}
|
|
8413
|
-
function Q(
|
|
8413
|
+
function Q(T) {
|
|
8414
8414
|
var B;
|
|
8415
|
-
const j = { event:
|
|
8415
|
+
const j = { event: T, edge: g.value };
|
|
8416
8416
|
b.value && (s.value = !1, g.value.selected && h.value ? (l([g.value]), (B = H.value) == null || B.blur()) : n([g.value])), w.click(j);
|
|
8417
8417
|
}
|
|
8418
|
-
function X(
|
|
8419
|
-
w.contextMenu({ event:
|
|
8418
|
+
function X(T) {
|
|
8419
|
+
w.contextMenu({ event: T, edge: g.value });
|
|
8420
8420
|
}
|
|
8421
|
-
function ee(
|
|
8422
|
-
w.doubleClick({ event:
|
|
8421
|
+
function ee(T) {
|
|
8422
|
+
w.doubleClick({ event: T, edge: g.value });
|
|
8423
8423
|
}
|
|
8424
|
-
function se(
|
|
8425
|
-
w.mouseEnter({ event:
|
|
8424
|
+
function se(T) {
|
|
8425
|
+
w.mouseEnter({ event: T, edge: g.value });
|
|
8426
8426
|
}
|
|
8427
|
-
function ie(
|
|
8428
|
-
w.mouseMove({ event:
|
|
8427
|
+
function ie(T) {
|
|
8428
|
+
w.mouseMove({ event: T, edge: g.value });
|
|
8429
8429
|
}
|
|
8430
|
-
function ge(
|
|
8431
|
-
w.mouseLeave({ event:
|
|
8430
|
+
function ge(T) {
|
|
8431
|
+
w.mouseLeave({ event: T, edge: g.value });
|
|
8432
8432
|
}
|
|
8433
|
-
function re(
|
|
8434
|
-
K(
|
|
8433
|
+
function re(T) {
|
|
8434
|
+
K(T, !0);
|
|
8435
8435
|
}
|
|
8436
|
-
function le(
|
|
8437
|
-
K(
|
|
8436
|
+
function le(T) {
|
|
8437
|
+
K(T, !1);
|
|
8438
8438
|
}
|
|
8439
|
-
function P(
|
|
8439
|
+
function P(T) {
|
|
8440
8440
|
var B;
|
|
8441
|
-
!m.value && iu.includes(
|
|
8441
|
+
!m.value && iu.includes(T.key) && b.value && (T.key === "Escape" ? ((B = H.value) == null || B.blur(), l([u(t.id)])) : n([u(t.id)]));
|
|
8442
8442
|
}
|
|
8443
8443
|
}
|
|
8444
8444
|
}), wv = _v, xv = Ee({
|
|
@@ -8479,22 +8479,22 @@ const $a = hs, _v = Ee({
|
|
|
8479
8479
|
const A = o.value.id, $ = o.value.type, F = h.value.handleBounds;
|
|
8480
8480
|
let U = F?.[$] ?? [];
|
|
8481
8481
|
if (n.value === Kt.Loose) {
|
|
8482
|
-
const
|
|
8483
|
-
U = [...U, ...
|
|
8482
|
+
const k = F?.[$ === "source" ? "target" : "source"] ?? [];
|
|
8483
|
+
U = [...U, ...k];
|
|
8484
8484
|
}
|
|
8485
8485
|
if (!U)
|
|
8486
8486
|
return null;
|
|
8487
|
-
const Y = (A ? U.find((
|
|
8487
|
+
const Y = (A ? U.find((k) => k.id === A) : U[0]) ?? null, C = Y?.position ?? pe.Top, { x: I, y: E } = On(h.value, Y, C);
|
|
8488
8488
|
let H = null;
|
|
8489
8489
|
m.value && (n.value === Kt.Strict ? H = ((_ = m.value.handleBounds[$ === "source" ? "target" : "source"]) == null ? void 0 : _.find(
|
|
8490
|
-
(
|
|
8490
|
+
(k) => {
|
|
8491
8491
|
var O;
|
|
8492
|
-
return
|
|
8492
|
+
return k.id === ((O = i.value) == null ? void 0 : O.id);
|
|
8493
8493
|
}
|
|
8494
8494
|
)) || null : H = ((g = [...m.value.handleBounds.source ?? [], ...m.value.handleBounds.target ?? []]) == null ? void 0 : g.find(
|
|
8495
|
-
(
|
|
8495
|
+
(k) => {
|
|
8496
8496
|
var O;
|
|
8497
|
-
return
|
|
8497
|
+
return k.id === ((O = i.value) == null ? void 0 : O.id);
|
|
8498
8498
|
}
|
|
8499
8499
|
)) || null);
|
|
8500
8500
|
const b = ((w = i.value) == null ? void 0 : w.position) ?? (C ? Hr[C] : null);
|
|
@@ -8513,7 +8513,7 @@ const $a = hs, _v = Ee({
|
|
|
8513
8513
|
return D === dn.Bezier ? [y] = fs(x) : D === dn.Step ? [y] = Lr({
|
|
8514
8514
|
...x,
|
|
8515
8515
|
borderRadius: 0
|
|
8516
|
-
}) : D === dn.SmoothStep ? [y] = Lr(x) : D === dn.SimpleBezier ? [y] =
|
|
8516
|
+
}) : D === dn.SmoothStep ? [y] = Lr(x) : D === dn.SimpleBezier ? [y] = ku(x) : y = `M${I},${E} ${p.value.x},${p.value.y}`, $e(
|
|
8517
8517
|
"svg",
|
|
8518
8518
|
{ class: "vue-flow__edges vue-flow__connectionline vue-flow__container" },
|
|
8519
8519
|
$e(
|
|
@@ -8601,11 +8601,11 @@ const $a = hs, _v = Ee({
|
|
|
8601
8601
|
}), Nv = {
|
|
8602
8602
|
class: "vue-flow__marker vue-flow__container",
|
|
8603
8603
|
"aria-hidden": "true"
|
|
8604
|
-
},
|
|
8604
|
+
}, kv = {
|
|
8605
8605
|
name: "MarkerDefinitions",
|
|
8606
8606
|
compatConfig: { MODE: 3 }
|
|
8607
|
-
},
|
|
8608
|
-
...
|
|
8607
|
+
}, Tv = /* @__PURE__ */ Ee({
|
|
8608
|
+
...kv,
|
|
8609
8609
|
setup(t) {
|
|
8610
8610
|
const { id: e, edges: n, connectionLineOptions: o, defaultMarkerColor: i } = Re(), r = ce(() => {
|
|
8611
8611
|
const s = /* @__PURE__ */ new Set(), a = [], c = (l) => {
|
|
@@ -8645,7 +8645,7 @@ const $a = hs, _v = Ee({
|
|
|
8645
8645
|
setup(t) {
|
|
8646
8646
|
const { findNode: e, getEdges: n, elevateEdgesOnSelect: o } = Re();
|
|
8647
8647
|
return (i, r) => (te(), ue(Le, null, [
|
|
8648
|
-
me(
|
|
8648
|
+
me(Tv),
|
|
8649
8649
|
(te(!0), ue(Le, null, Dt(J(n), (s) => (te(), ue("svg", {
|
|
8650
8650
|
key: s.id,
|
|
8651
8651
|
class: "vue-flow__edges vue-flow__container",
|
|
@@ -8689,7 +8689,7 @@ const $a = hs, _v = Ee({
|
|
|
8689
8689
|
hooks: F
|
|
8690
8690
|
} = Re(), U = he(null);
|
|
8691
8691
|
Xt(_u, U), Xt(bu, t.id);
|
|
8692
|
-
const Y = bt(Yi), C = Bn(), I = Cu(), { node: E, parentNode: H } = Eu(t.id), { emit: b, on: D } = gm(E, s), y = Oe(() => typeof E.draggable > "u" ? g.value : E.draggable), x = Oe(() => typeof E.selectable > "u" ? w.value : E.selectable),
|
|
8692
|
+
const Y = bt(Yi), C = Bn(), I = Cu(), { node: E, parentNode: H } = Eu(t.id), { emit: b, on: D } = gm(E, s), y = Oe(() => typeof E.draggable > "u" ? g.value : E.draggable), x = Oe(() => typeof E.selectable > "u" ? w.value : E.selectable), k = Oe(() => typeof E.connectable > "u" ? A.value : E.connectable), O = Oe(() => typeof E.focusable > "u" ? $.value : E.focusable), R = ce(
|
|
8693
8693
|
() => x.value || y.value || F.value.nodeClick.hasListeners() || F.value.nodeDoubleClick.hasListeners() || F.value.nodeMouseEnter.hasListeners() || F.value.nodeMouseMove.hasListeners() || F.value.nodeMouseLeave.hasListeners()
|
|
8694
8694
|
), M = Oe(() => !!E.dimensions.width && !!E.dimensions.height), z = ce(() => {
|
|
8695
8695
|
const B = E.type || "default", j = Y?.[`node-${B}`];
|
|
@@ -8779,7 +8779,7 @@ const $a = hs, _v = Ee({
|
|
|
8779
8779
|
{ flush: "post", immediate: !0 }
|
|
8780
8780
|
), De([() => E.extent, f], ([B, j], [N, W]) => {
|
|
8781
8781
|
(B !== N || j !== W) && X();
|
|
8782
|
-
}), E.extent === "parent" || typeof E.extent == "object" && "range" in E.extent && E.extent.range === "parent" ?
|
|
8782
|
+
}), E.extent === "parent" || typeof E.extent == "object" && "range" in E.extent && E.extent.range === "parent" ? kr(() => M).toBe(!0).then(X) : X(), () => E.hidden ? null : $e(
|
|
8783
8783
|
"div",
|
|
8784
8784
|
{
|
|
8785
8785
|
ref: U,
|
|
@@ -8816,7 +8816,7 @@ const $a = hs, _v = Ee({
|
|
|
8816
8816
|
onContextmenu: re,
|
|
8817
8817
|
onClick: P,
|
|
8818
8818
|
onDblclick: le,
|
|
8819
|
-
onKeydown:
|
|
8819
|
+
onKeydown: T
|
|
8820
8820
|
},
|
|
8821
8821
|
[
|
|
8822
8822
|
$e(z.value === !1 ? d.value.default : z.value, {
|
|
@@ -8827,7 +8827,7 @@ const $a = hs, _v = Ee({
|
|
|
8827
8827
|
selected: E.selected,
|
|
8828
8828
|
resizing: E.resizing,
|
|
8829
8829
|
dragging: L.value,
|
|
8830
|
-
connectable:
|
|
8830
|
+
connectable: k.value,
|
|
8831
8831
|
position: E.computedPosition,
|
|
8832
8832
|
dimensions: E.dimensions,
|
|
8833
8833
|
isValidTargetPos: E.isValidTargetPos,
|
|
@@ -8882,7 +8882,7 @@ const $a = hs, _v = Ee({
|
|
|
8882
8882
|
U.value
|
|
8883
8883
|
), b.click({ event: B, node: E });
|
|
8884
8884
|
}
|
|
8885
|
-
function
|
|
8885
|
+
function T(B) {
|
|
8886
8886
|
if (!(Rr(B) || m.value))
|
|
8887
8887
|
if (iu.includes(B.key) && x.value) {
|
|
8888
8888
|
const j = B.key === "Escape";
|
|
@@ -8895,10 +8895,10 @@ const $a = hs, _v = Ee({
|
|
|
8895
8895
|
j,
|
|
8896
8896
|
U.value
|
|
8897
8897
|
);
|
|
8898
|
-
} else y.value && E.selected &&
|
|
8898
|
+
} else y.value && E.selected && Tn[B.key] && (B.preventDefault(), p.value = `Moved selected node ${B.key.replace("Arrow", "").toLowerCase()}. New position, x: ${~~E.position.x}, y: ${~~E.position.y}`, I(
|
|
8899
8899
|
{
|
|
8900
|
-
x:
|
|
8901
|
-
y:
|
|
8900
|
+
x: Tn[B.key].x,
|
|
8901
|
+
y: Tn[B.key].y
|
|
8902
8902
|
},
|
|
8903
8903
|
B.shiftKey
|
|
8904
8904
|
));
|
|
@@ -9252,11 +9252,11 @@ const Ey = { render: xy }, Cy = {
|
|
|
9252
9252
|
function Ny(t, e) {
|
|
9253
9253
|
return te(), ue("svg", Cy, Dy);
|
|
9254
9254
|
}
|
|
9255
|
-
const
|
|
9255
|
+
const ky = { render: Ny }, Ty = {
|
|
9256
9256
|
name: "Controls",
|
|
9257
9257
|
compatConfig: { MODE: 3 }
|
|
9258
9258
|
}, Iy = /* @__PURE__ */ Ee({
|
|
9259
|
-
...
|
|
9259
|
+
...Ty,
|
|
9260
9260
|
props: {
|
|
9261
9261
|
showZoom: { type: Boolean, default: !0 },
|
|
9262
9262
|
showFitView: { type: Boolean, default: !0 },
|
|
@@ -9347,7 +9347,7 @@ const Ty = { render: Ny }, ky = {
|
|
|
9347
9347
|
}, {
|
|
9348
9348
|
default: Se(() => [
|
|
9349
9349
|
f.value ? Ae(g.$slots, "icon-unlock", { key: 0 }, () => [
|
|
9350
|
-
(te(), Ie(It(J(
|
|
9350
|
+
(te(), Ie(It(J(ky))))
|
|
9351
9351
|
]) : Me("", !0),
|
|
9352
9352
|
f.value ? Me("", !0) : Ae(g.$slots, "icon-lock", { key: 1 }, () => [
|
|
9353
9353
|
(te(), Ie(It(J(Ey))))
|
|
@@ -9483,7 +9483,7 @@ const Ty = { render: Ny }, ky = {
|
|
|
9483
9483
|
}), H.preventDefault(), U.value?.handleOpen();
|
|
9484
9484
|
};
|
|
9485
9485
|
return (H, b) => {
|
|
9486
|
-
const D = ze("el-popover"), y = ze("el-tooltip"), x = ze("el-dropdown-item"),
|
|
9486
|
+
const D = ze("el-popover"), y = ze("el-tooltip"), x = ze("el-dropdown-item"), k = ze("el-dropdown-menu"), O = ze("el-dropdown");
|
|
9487
9487
|
return te(), ue("div", {
|
|
9488
9488
|
class: "d-flow-step",
|
|
9489
9489
|
onContextmenu: We(E, ["stop"])
|
|
@@ -9628,7 +9628,7 @@ const Ty = { render: Ny }, ky = {
|
|
|
9628
9628
|
placement: "bottom-start"
|
|
9629
9629
|
}, {
|
|
9630
9630
|
dropdown: Se(() => [
|
|
9631
|
-
me(
|
|
9631
|
+
me(k, null, {
|
|
9632
9632
|
default: Se(() => [
|
|
9633
9633
|
t.data.type != "start" ? (te(), Ie(x, {
|
|
9634
9634
|
key: 0,
|
|
@@ -11408,24 +11408,24 @@ class be {
|
|
|
11408
11408
|
const St = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
|
|
11409
11409
|
class ft {
|
|
11410
11410
|
}
|
|
11411
|
-
function
|
|
11411
|
+
function ki(t, e) {
|
|
11412
11412
|
t.touches.length > 1 || (t.cancelable && t.preventDefault(), Z.simulateMouseEvent(t.changedTouches[0], e));
|
|
11413
11413
|
}
|
|
11414
11414
|
function $u(t, e) {
|
|
11415
11415
|
t.cancelable && t.preventDefault(), Z.simulateMouseEvent(t, e);
|
|
11416
11416
|
}
|
|
11417
|
-
function
|
|
11418
|
-
ft.touchHandled || (ft.touchHandled = !0,
|
|
11417
|
+
function Ti(t) {
|
|
11418
|
+
ft.touchHandled || (ft.touchHandled = !0, ki(t, "mousedown"));
|
|
11419
11419
|
}
|
|
11420
11420
|
function Ii(t) {
|
|
11421
|
-
ft.touchHandled &&
|
|
11421
|
+
ft.touchHandled && ki(t, "mousemove");
|
|
11422
11422
|
}
|
|
11423
11423
|
function Mi(t) {
|
|
11424
11424
|
if (!ft.touchHandled)
|
|
11425
11425
|
return;
|
|
11426
11426
|
ft.pointerLeaveTimeout && (window.clearTimeout(ft.pointerLeaveTimeout), delete ft.pointerLeaveTimeout);
|
|
11427
11427
|
const e = !!be.dragElement;
|
|
11428
|
-
|
|
11428
|
+
ki(t, "mouseup"), e || ki(t, "click"), ft.touchHandled = !1;
|
|
11429
11429
|
}
|
|
11430
11430
|
function $i(t) {
|
|
11431
11431
|
t.pointerType !== "mouse" && t.target.releasePointerCapture(t.pointerId);
|
|
@@ -11450,11 +11450,11 @@ class qi {
|
|
|
11450
11450
|
} catch (e) {
|
|
11451
11451
|
this.option.element = void 0, console.error("Query for resizeable handle failed, falling back", e);
|
|
11452
11452
|
}
|
|
11453
|
-
return this.el || (this.el = document.createElement("div"), this.host.appendChild(this.el)), this.el.classList.add("ui-resizable-handle"), this.el.classList.add(`${qi.prefix}${this.dir}`), this.el.style.zIndex = "100", this.el.style.userSelect = "none", this.el.addEventListener("mousedown", this._mouseDown), St && (this.el.addEventListener("touchstart",
|
|
11453
|
+
return this.el || (this.el = document.createElement("div"), this.host.appendChild(this.el)), this.el.classList.add("ui-resizable-handle"), this.el.classList.add(`${qi.prefix}${this.dir}`), this.el.style.zIndex = "100", this.el.style.userSelect = "none", this.el.addEventListener("mousedown", this._mouseDown), St && (this.el.addEventListener("touchstart", Ti), this.el.addEventListener("pointerdown", $i)), this;
|
|
11454
11454
|
}
|
|
11455
11455
|
/** call this when resize handle needs to be removed and cleaned up */
|
|
11456
11456
|
destroy() {
|
|
11457
|
-
return this.moving && this._mouseUp(this.mouseDownEvent), this.el.removeEventListener("mousedown", this._mouseDown), St && (this.el.removeEventListener("touchstart",
|
|
11457
|
+
return this.moving && this._mouseUp(this.mouseDownEvent), this.el.removeEventListener("mousedown", this._mouseDown), St && (this.el.removeEventListener("touchstart", Ti), this.el.removeEventListener("pointerdown", $i)), this.option.element || this.host.removeChild(this.el), delete this.el, delete this.host, this;
|
|
11458
11458
|
}
|
|
11459
11459
|
/** @internal called on mouse down on us: capture move on the entire document (mouse might not stay on us) until we release the mouse */
|
|
11460
11460
|
_mouseDown(e) {
|
|
@@ -11705,12 +11705,12 @@ class vo extends gs {
|
|
|
11705
11705
|
}
|
|
11706
11706
|
enable() {
|
|
11707
11707
|
this.disabled !== !1 && (super.enable(), this.dragEls.forEach((e) => {
|
|
11708
|
-
e.addEventListener("mousedown", this._mouseDown), St && (e.addEventListener("touchstart",
|
|
11708
|
+
e.addEventListener("mousedown", this._mouseDown), St && (e.addEventListener("touchstart", Ti), e.addEventListener("pointerdown", $i));
|
|
11709
11709
|
}), this.el.classList.remove("ui-draggable-disabled"));
|
|
11710
11710
|
}
|
|
11711
11711
|
disable(e = !1) {
|
|
11712
11712
|
this.disabled !== !0 && (super.disable(), this.dragEls.forEach((n) => {
|
|
11713
|
-
n.removeEventListener("mousedown", this._mouseDown), St && (n.removeEventListener("touchstart",
|
|
11713
|
+
n.removeEventListener("mousedown", this._mouseDown), St && (n.removeEventListener("touchstart", Ti), n.removeEventListener("pointerdown", $i));
|
|
11714
11714
|
}), e || this.el.classList.add("ui-draggable-disabled"));
|
|
11715
11715
|
}
|
|
11716
11716
|
destroy() {
|
|
@@ -13872,7 +13872,7 @@ const Qy = { class: "d-layout" }, e0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13872
13872
|
}), X;
|
|
13873
13873
|
}, y = (K) => {
|
|
13874
13874
|
h.value = K;
|
|
13875
|
-
}, x = (K) => o.isPt ? o0(K) : K,
|
|
13875
|
+
}, x = (K) => o.isPt ? o0(K) : K, k = () => {
|
|
13876
13876
|
f.value = !0, i("focus", {
|
|
13877
13877
|
index: o.index,
|
|
13878
13878
|
width: x(a.value),
|
|
@@ -13895,12 +13895,12 @@ const Qy = { class: "d-layout" }, e0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13895
13895
|
}, M = (K, Q) => {
|
|
13896
13896
|
if (o.disabled || o.readonly) return;
|
|
13897
13897
|
let X, ee, se, ie, ge, re;
|
|
13898
|
-
m.value = !0,
|
|
13898
|
+
m.value = !0, k();
|
|
13899
13899
|
let le = K.clientX, P = K.clientY;
|
|
13900
|
-
document.onmousemove = (
|
|
13900
|
+
document.onmousemove = (T) => {
|
|
13901
13901
|
f.value = !0, Q === "right" ? (X = !0, ee = !1) : Q === "left" ? (X = !0, se = !0, ge = !0, ee = !1) : Q === "top" ? (X = !1, ee = !0, ie = !0, re = !0) : Q === "bottom" ? (X = !1, ee = !0) : Q === "bottom-right" ? (X = !0, ee = !0) : Q === "bottom-left" ? (X = !0, ee = !0, se = !0, ge = !0) : Q === "top-right" ? (X = !0, ee = !0, ie = !0, re = !0) : Q === "top-left" && (X = !0, ee = !0, se = !0, ge = !0, ie = !0, re = !0);
|
|
13902
|
-
const B =
|
|
13903
|
-
if (le =
|
|
13902
|
+
const B = T.clientX - le, j = T.clientY - P;
|
|
13903
|
+
if (le = T.clientX, P = T.clientY, X) {
|
|
13904
13904
|
let N = B * o.step;
|
|
13905
13905
|
ge && (N = -N), se && (l.value = it(l.value - N)), a.value = it(a.value + N);
|
|
13906
13906
|
}
|
|
@@ -13927,7 +13927,7 @@ const Qy = { class: "d-layout" }, e0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13927
13927
|
}));
|
|
13928
13928
|
}, V = (K) => {
|
|
13929
13929
|
if (o.disabled || o.readonly) return;
|
|
13930
|
-
p.value = !0,
|
|
13930
|
+
p.value = !0, k();
|
|
13931
13931
|
let Q = K.clientX, X = K.clientY;
|
|
13932
13932
|
document.onmousemove = (ee) => {
|
|
13933
13933
|
const se = ee.clientX - Q, ie = ee.clientY - X;
|
|
@@ -14105,7 +14105,7 @@ const Qy = { class: "d-layout" }, e0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
14105
14105
|
});
|
|
14106
14106
|
}, d0 = (t) => {
|
|
14107
14107
|
const e = {}, n = {};
|
|
14108
|
-
return
|
|
14108
|
+
return t.forEach((o) => {
|
|
14109
14109
|
e[o.containerId] = e[o.containerId] || [];
|
|
14110
14110
|
const i = {
|
|
14111
14111
|
id: o.id,
|
|
@@ -14132,21 +14132,27 @@ const Qy = { class: "d-layout" }, e0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
14132
14132
|
i.config[r] = o.config[r];
|
|
14133
14133
|
}), o.type === "pkey" && (i.config.isPkey = !0), e[o.containerId].push(i), n[o.id] = i;
|
|
14134
14134
|
}), Object.keys(e).forEach((o) => {
|
|
14135
|
-
|
|
14136
|
-
|
|
14135
|
+
const i = n[o];
|
|
14136
|
+
if (i) {
|
|
14137
|
+
const r = e[o];
|
|
14137
14138
|
if (["j-tabs", "j-collapse"].includes(i.type || "") && i.config?.groups) {
|
|
14138
|
-
const s =
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
|
|
14139
|
+
const s = {};
|
|
14140
|
+
r.forEach((c) => {
|
|
14141
|
+
if (c.slot !== void 0 && c.slot !== null) {
|
|
14142
|
+
const l = c.slot.toString();
|
|
14143
|
+
s[l] || (s[l] = []), delete c.slot, s[l].push(c);
|
|
14144
|
+
}
|
|
14145
|
+
});
|
|
14146
|
+
const a = i.config.groups.map((c) => {
|
|
14147
|
+
const l = c._i, u = s[l] || [];
|
|
14148
|
+
return {
|
|
14149
|
+
config: { label: c.label },
|
|
14150
|
+
// Tab 页的名称
|
|
14151
|
+
children: u
|
|
14152
|
+
// 属于该 Tab 页的子组件
|
|
14153
|
+
};
|
|
14154
|
+
});
|
|
14155
|
+
i.children = a, delete i.config.groups;
|
|
14150
14156
|
} else
|
|
14151
14157
|
i.children = r;
|
|
14152
14158
|
}
|
|
@@ -14225,12 +14231,12 @@ function p0() {
|
|
|
14225
14231
|
var x = String(b);
|
|
14226
14232
|
return !x || x.length >= D ? b : "" + Array(D + 1 - x.length).join(y) + b;
|
|
14227
14233
|
}, w = { s: g, z: function(b) {
|
|
14228
|
-
var D = -b.utcOffset(), y = Math.abs(D), x = Math.floor(y / 60),
|
|
14229
|
-
return (D <= 0 ? "+" : "-") + g(x, 2, "0") + ":" + g(
|
|
14234
|
+
var D = -b.utcOffset(), y = Math.abs(D), x = Math.floor(y / 60), k = y % 60;
|
|
14235
|
+
return (D <= 0 ? "+" : "-") + g(x, 2, "0") + ":" + g(k, 2, "0");
|
|
14230
14236
|
}, m: function b(D, y) {
|
|
14231
14237
|
if (D.date() < y.date()) return -b(y, D);
|
|
14232
|
-
var x = 12 * (y.year() - D.year()) + (y.month() - D.month()),
|
|
14233
|
-
return +(-(x + (y -
|
|
14238
|
+
var x = 12 * (y.year() - D.year()) + (y.month() - D.month()), k = D.clone().add(x, d), O = y - k < 0, R = D.clone().add(x + (O ? -1 : 1), d);
|
|
14239
|
+
return +(-(x + (y - k) / (O ? k - R : R - k)) || 0);
|
|
14234
14240
|
}, a: function(b) {
|
|
14235
14241
|
return b < 0 ? Math.ceil(b) || 0 : Math.floor(b);
|
|
14236
14242
|
}, p: function(b) {
|
|
@@ -14242,18 +14248,18 @@ function p0() {
|
|
|
14242
14248
|
var F = "$isDayjsObject", U = function(b) {
|
|
14243
14249
|
return b instanceof E || !(!b || !b[F]);
|
|
14244
14250
|
}, Y = function b(D, y, x) {
|
|
14245
|
-
var
|
|
14251
|
+
var k;
|
|
14246
14252
|
if (!D) return A;
|
|
14247
14253
|
if (typeof D == "string") {
|
|
14248
14254
|
var O = D.toLowerCase();
|
|
14249
|
-
$[O] && (
|
|
14255
|
+
$[O] && (k = O), y && ($[O] = y, k = O);
|
|
14250
14256
|
var R = D.split("-");
|
|
14251
|
-
if (!
|
|
14257
|
+
if (!k && R.length > 1) return b(R[0]);
|
|
14252
14258
|
} else {
|
|
14253
14259
|
var M = D.name;
|
|
14254
|
-
$[M] = D,
|
|
14260
|
+
$[M] = D, k = M;
|
|
14255
14261
|
}
|
|
14256
|
-
return !x &&
|
|
14262
|
+
return !x && k && (A = k), k || !x && A;
|
|
14257
14263
|
}, C = function(b, D) {
|
|
14258
14264
|
if (U(b)) return b.clone();
|
|
14259
14265
|
var y = typeof D == "object" ? D : {};
|
|
@@ -14269,18 +14275,18 @@ function p0() {
|
|
|
14269
14275
|
var D = b.prototype;
|
|
14270
14276
|
return D.parse = function(y) {
|
|
14271
14277
|
this.$d = (function(x) {
|
|
14272
|
-
var
|
|
14273
|
-
if (
|
|
14274
|
-
if (I.u(
|
|
14275
|
-
if (
|
|
14276
|
-
if (typeof
|
|
14277
|
-
var R =
|
|
14278
|
+
var k = x.date, O = x.utc;
|
|
14279
|
+
if (k === null) return /* @__PURE__ */ new Date(NaN);
|
|
14280
|
+
if (I.u(k)) return /* @__PURE__ */ new Date();
|
|
14281
|
+
if (k instanceof Date) return new Date(k);
|
|
14282
|
+
if (typeof k == "string" && !/Z$/i.test(k)) {
|
|
14283
|
+
var R = k.match(v);
|
|
14278
14284
|
if (R) {
|
|
14279
14285
|
var M = R[2] - 1 || 0, z = (R[7] || "0").substring(0, 3);
|
|
14280
14286
|
return O ? new Date(Date.UTC(R[1], M, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, z)) : new Date(R[1], M, R[3] || 1, R[4] || 0, R[5] || 0, R[6] || 0, z);
|
|
14281
14287
|
}
|
|
14282
14288
|
}
|
|
14283
|
-
return new Date(
|
|
14289
|
+
return new Date(k);
|
|
14284
14290
|
})(y), this.init();
|
|
14285
14291
|
}, D.init = function() {
|
|
14286
14292
|
var y = this.$d;
|
|
@@ -14290,24 +14296,24 @@ function p0() {
|
|
|
14290
14296
|
}, D.isValid = function() {
|
|
14291
14297
|
return this.$d.toString() !== p;
|
|
14292
14298
|
}, D.isSame = function(y, x) {
|
|
14293
|
-
var
|
|
14294
|
-
return this.startOf(x) <=
|
|
14299
|
+
var k = C(y);
|
|
14300
|
+
return this.startOf(x) <= k && k <= this.endOf(x);
|
|
14295
14301
|
}, D.isAfter = function(y, x) {
|
|
14296
14302
|
return C(y) < this.startOf(x);
|
|
14297
14303
|
}, D.isBefore = function(y, x) {
|
|
14298
14304
|
return this.endOf(x) < C(y);
|
|
14299
|
-
}, D.$g = function(y, x,
|
|
14300
|
-
return I.u(y) ? this[x] : this.set(
|
|
14305
|
+
}, D.$g = function(y, x, k) {
|
|
14306
|
+
return I.u(y) ? this[x] : this.set(k, y);
|
|
14301
14307
|
}, D.unix = function() {
|
|
14302
14308
|
return Math.floor(this.valueOf() / 1e3);
|
|
14303
14309
|
}, D.valueOf = function() {
|
|
14304
14310
|
return this.$d.getTime();
|
|
14305
14311
|
}, D.startOf = function(y, x) {
|
|
14306
|
-
var
|
|
14307
|
-
var ge = I.w(
|
|
14312
|
+
var k = this, O = !!I.u(x) || x, R = I.p(y), M = function(se, ie) {
|
|
14313
|
+
var ge = I.w(k.$u ? Date.UTC(k.$y, ie, se) : new Date(k.$y, ie, se), k);
|
|
14308
14314
|
return O ? ge : ge.endOf(l);
|
|
14309
14315
|
}, z = function(se, ie) {
|
|
14310
|
-
return I.w(
|
|
14316
|
+
return I.w(k.toDate()[se].apply(k.toDate("s"), (O ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), k);
|
|
14311
14317
|
}, L = this.$W, V = this.$M, K = this.$D, Q = "set" + (this.$u ? "UTC" : "");
|
|
14312
14318
|
switch (R) {
|
|
14313
14319
|
case h:
|
|
@@ -14332,7 +14338,7 @@ function p0() {
|
|
|
14332
14338
|
}, D.endOf = function(y) {
|
|
14333
14339
|
return this.startOf(y, !1);
|
|
14334
14340
|
}, D.$set = function(y, x) {
|
|
14335
|
-
var
|
|
14341
|
+
var k, O = I.p(y), R = "set" + (this.$u ? "UTC" : ""), M = (k = {}, k[l] = R + "Date", k[m] = R + "Date", k[d] = R + "Month", k[h] = R + "FullYear", k[c] = R + "Hours", k[a] = R + "Minutes", k[s] = R + "Seconds", k[r] = R + "Milliseconds", k)[O], z = O === l ? this.$D + (x - this.$W) : x;
|
|
14336
14342
|
if (O === d || O === h) {
|
|
14337
14343
|
var L = this.clone().set(m, 1);
|
|
14338
14344
|
L.$d[M](z), L.init(), this.$d = L.set(m, Math.min(this.$D, L.daysInMonth())).$d;
|
|
@@ -14343,7 +14349,7 @@ function p0() {
|
|
|
14343
14349
|
}, D.get = function(y) {
|
|
14344
14350
|
return this[I.p(y)]();
|
|
14345
14351
|
}, D.add = function(y, x) {
|
|
14346
|
-
var
|
|
14352
|
+
var k, O = this;
|
|
14347
14353
|
y = Number(y);
|
|
14348
14354
|
var R = I.p(x), M = function(V) {
|
|
14349
14355
|
var K = C(O);
|
|
@@ -14353,14 +14359,14 @@ function p0() {
|
|
|
14353
14359
|
if (R === h) return this.set(h, this.$y + y);
|
|
14354
14360
|
if (R === l) return M(1);
|
|
14355
14361
|
if (R === u) return M(7);
|
|
14356
|
-
var z = (
|
|
14362
|
+
var z = (k = {}, k[a] = o, k[c] = i, k[s] = n, k)[R] || 1, L = this.$d.getTime() + y * z;
|
|
14357
14363
|
return I.w(L, this);
|
|
14358
14364
|
}, D.subtract = function(y, x) {
|
|
14359
14365
|
return this.add(-1 * y, x);
|
|
14360
14366
|
}, D.format = function(y) {
|
|
14361
|
-
var x = this,
|
|
14362
|
-
if (!this.isValid()) return
|
|
14363
|
-
var O = y || "YYYY-MM-DDTHH:mm:ssZ", R = I.z(this), M = this.$H, z = this.$m, L = this.$M, V =
|
|
14367
|
+
var x = this, k = this.$locale();
|
|
14368
|
+
if (!this.isValid()) return k.invalidDate || p;
|
|
14369
|
+
var O = y || "YYYY-MM-DDTHH:mm:ssZ", R = I.z(this), M = this.$H, z = this.$m, L = this.$M, V = k.weekdays, K = k.months, Q = k.meridiem, X = function(ie, ge, re, le) {
|
|
14364
14370
|
return ie && (ie[ge] || ie(x, O)) || re[ge].slice(0, le);
|
|
14365
14371
|
}, ee = function(ie) {
|
|
14366
14372
|
return I.s(M % 12 || 12, ie, "0");
|
|
@@ -14380,7 +14386,7 @@ function p0() {
|
|
|
14380
14386
|
case "MM":
|
|
14381
14387
|
return I.s(L + 1, 2, "0");
|
|
14382
14388
|
case "MMM":
|
|
14383
|
-
return X(
|
|
14389
|
+
return X(k.monthsShort, L, K, 3);
|
|
14384
14390
|
case "MMMM":
|
|
14385
14391
|
return X(K, L);
|
|
14386
14392
|
case "D":
|
|
@@ -14390,9 +14396,9 @@ function p0() {
|
|
|
14390
14396
|
case "d":
|
|
14391
14397
|
return String(x.$W);
|
|
14392
14398
|
case "dd":
|
|
14393
|
-
return X(
|
|
14399
|
+
return X(k.weekdaysMin, x.$W, V, 2);
|
|
14394
14400
|
case "ddd":
|
|
14395
|
-
return X(
|
|
14401
|
+
return X(k.weekdaysShort, x.$W, V, 3);
|
|
14396
14402
|
case "dddd":
|
|
14397
14403
|
return V[x.$W];
|
|
14398
14404
|
case "H":
|
|
@@ -14425,7 +14431,7 @@ function p0() {
|
|
|
14425
14431
|
}));
|
|
14426
14432
|
}, D.utcOffset = function() {
|
|
14427
14433
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
14428
|
-
}, D.diff = function(y, x,
|
|
14434
|
+
}, D.diff = function(y, x, k) {
|
|
14429
14435
|
var O, R = this, M = I.p(x), z = C(y), L = (z.utcOffset() - this.utcOffset()) * o, V = this - z, K = function() {
|
|
14430
14436
|
return I.m(R, z);
|
|
14431
14437
|
};
|
|
@@ -14457,15 +14463,15 @@ function p0() {
|
|
|
14457
14463
|
default:
|
|
14458
14464
|
O = V;
|
|
14459
14465
|
}
|
|
14460
|
-
return
|
|
14466
|
+
return k ? O : I.a(O);
|
|
14461
14467
|
}, D.daysInMonth = function() {
|
|
14462
14468
|
return this.endOf(d).$D;
|
|
14463
14469
|
}, D.$locale = function() {
|
|
14464
14470
|
return $[this.$L];
|
|
14465
14471
|
}, D.locale = function(y, x) {
|
|
14466
14472
|
if (!y) return this.$L;
|
|
14467
|
-
var
|
|
14468
|
-
return O && (
|
|
14473
|
+
var k = this.clone(), O = Y(y, x, !0);
|
|
14474
|
+
return O && (k.$L = O), k;
|
|
14469
14475
|
}, D.clone = function() {
|
|
14470
14476
|
return I.w(this.$d, this);
|
|
14471
14477
|
}, D.toDate = function() {
|
|
@@ -15102,8 +15108,8 @@ function Ou() {
|
|
|
15102
15108
|
var _ = v + S, g = p[_];
|
|
15103
15109
|
p[_] = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360;
|
|
15104
15110
|
}
|
|
15105
|
-
var w = this._hash.words, A = p[v + 0], $ = p[v + 1], F = p[v + 2], U = p[v + 3], Y = p[v + 4], C = p[v + 5], I = p[v + 6], E = p[v + 7], H = p[v + 8], b = p[v + 9], D = p[v + 10], y = p[v + 11], x = p[v + 12],
|
|
15106
|
-
M = d(M, z, L, V, A, 7, l[0]), V = d(V, M, z, L, $, 12, l[1]), L = d(L, V, M, z, F, 17, l[2]), z = d(z, L, V, M, U, 22, l[3]), M = d(M, z, L, V, Y, 7, l[4]), V = d(V, M, z, L, C, 12, l[5]), L = d(L, V, M, z, I, 17, l[6]), z = d(z, L, V, M, E, 22, l[7]), M = d(M, z, L, V, H, 7, l[8]), V = d(V, M, z, L, b, 12, l[9]), L = d(L, V, M, z, D, 17, l[10]), z = d(z, L, V, M, y, 22, l[11]), M = d(M, z, L, V, x, 7, l[12]), V = d(V, M, z, L,
|
|
15111
|
+
var w = this._hash.words, A = p[v + 0], $ = p[v + 1], F = p[v + 2], U = p[v + 3], Y = p[v + 4], C = p[v + 5], I = p[v + 6], E = p[v + 7], H = p[v + 8], b = p[v + 9], D = p[v + 10], y = p[v + 11], x = p[v + 12], k = p[v + 13], O = p[v + 14], R = p[v + 15], M = w[0], z = w[1], L = w[2], V = w[3];
|
|
15112
|
+
M = d(M, z, L, V, A, 7, l[0]), V = d(V, M, z, L, $, 12, l[1]), L = d(L, V, M, z, F, 17, l[2]), z = d(z, L, V, M, U, 22, l[3]), M = d(M, z, L, V, Y, 7, l[4]), V = d(V, M, z, L, C, 12, l[5]), L = d(L, V, M, z, I, 17, l[6]), z = d(z, L, V, M, E, 22, l[7]), M = d(M, z, L, V, H, 7, l[8]), V = d(V, M, z, L, b, 12, l[9]), L = d(L, V, M, z, D, 17, l[10]), z = d(z, L, V, M, y, 22, l[11]), M = d(M, z, L, V, x, 7, l[12]), V = d(V, M, z, L, k, 12, l[13]), L = d(L, V, M, z, O, 17, l[14]), z = d(z, L, V, M, R, 22, l[15]), M = f(M, z, L, V, $, 5, l[16]), V = f(V, M, z, L, I, 9, l[17]), L = f(L, V, M, z, y, 14, l[18]), z = f(z, L, V, M, A, 20, l[19]), M = f(M, z, L, V, C, 5, l[20]), V = f(V, M, z, L, D, 9, l[21]), L = f(L, V, M, z, R, 14, l[22]), z = f(z, L, V, M, Y, 20, l[23]), M = f(M, z, L, V, b, 5, l[24]), V = f(V, M, z, L, O, 9, l[25]), L = f(L, V, M, z, U, 14, l[26]), z = f(z, L, V, M, H, 20, l[27]), M = f(M, z, L, V, k, 5, l[28]), V = f(V, M, z, L, F, 9, l[29]), L = f(L, V, M, z, E, 14, l[30]), z = f(z, L, V, M, x, 20, l[31]), M = h(M, z, L, V, C, 4, l[32]), V = h(V, M, z, L, H, 11, l[33]), L = h(L, V, M, z, y, 16, l[34]), z = h(z, L, V, M, O, 23, l[35]), M = h(M, z, L, V, $, 4, l[36]), V = h(V, M, z, L, Y, 11, l[37]), L = h(L, V, M, z, E, 16, l[38]), z = h(z, L, V, M, D, 23, l[39]), M = h(M, z, L, V, k, 4, l[40]), V = h(V, M, z, L, A, 11, l[41]), L = h(L, V, M, z, U, 16, l[42]), z = h(z, L, V, M, I, 23, l[43]), M = h(M, z, L, V, b, 4, l[44]), V = h(V, M, z, L, x, 11, l[45]), L = h(L, V, M, z, R, 16, l[46]), z = h(z, L, V, M, F, 23, l[47]), M = m(M, z, L, V, A, 6, l[48]), V = m(V, M, z, L, E, 10, l[49]), L = m(L, V, M, z, O, 15, l[50]), z = m(z, L, V, M, C, 21, l[51]), M = m(M, z, L, V, x, 6, l[52]), V = m(V, M, z, L, U, 10, l[53]), L = m(L, V, M, z, D, 15, l[54]), z = m(z, L, V, M, $, 21, l[55]), M = m(M, z, L, V, H, 6, l[56]), V = m(V, M, z, L, R, 10, l[57]), L = m(L, V, M, z, I, 15, l[58]), z = m(z, L, V, M, k, 21, l[59]), M = m(M, z, L, V, Y, 6, l[60]), V = m(V, M, z, L, y, 10, l[61]), L = m(L, V, M, z, F, 15, l[62]), z = m(z, L, V, M, b, 21, l[63]), w[0] = w[0] + M | 0, w[1] = w[1] + z | 0, w[2] = w[2] + L | 0, w[3] = w[3] + V | 0;
|
|
15107
15113
|
},
|
|
15108
15114
|
_doFinalize: function() {
|
|
15109
15115
|
var p = this._data, v = p.words, S = this._nDataBytes * 8, _ = p.sigBytes * 8;
|
|
@@ -15327,12 +15333,12 @@ function Ru() {
|
|
|
15327
15333
|
});
|
|
15328
15334
|
})(ti)), ti.exports;
|
|
15329
15335
|
}
|
|
15330
|
-
var ii = { exports: {} },
|
|
15336
|
+
var ii = { exports: {} }, k0 = ii.exports, Va;
|
|
15331
15337
|
function Hu() {
|
|
15332
15338
|
return Va || (Va = 1, (function(t, e) {
|
|
15333
15339
|
(function(n, o, i) {
|
|
15334
15340
|
t.exports = o(_t(), Ru());
|
|
15335
|
-
})(
|
|
15341
|
+
})(k0, function(n) {
|
|
15336
15342
|
n.lib.Cipher || (function(o) {
|
|
15337
15343
|
var i = n, r = i.lib, s = r.Base, a = r.WordArray, c = r.BufferedBlockAlgorithm, l = i.enc;
|
|
15338
15344
|
l.Utf8;
|
|
@@ -15865,12 +15871,12 @@ function Hu() {
|
|
|
15865
15871
|
});
|
|
15866
15872
|
})(ii)), ii.exports;
|
|
15867
15873
|
}
|
|
15868
|
-
var
|
|
15874
|
+
var T0 = Zo.exports, Ga;
|
|
15869
15875
|
function I0() {
|
|
15870
15876
|
return Ga || (Ga = 1, (function(t, e) {
|
|
15871
15877
|
(function(n, o, i) {
|
|
15872
15878
|
t.exports = o(_t(), zu(), Ou(), Ru(), Hu());
|
|
15873
|
-
})(
|
|
15879
|
+
})(T0, function(n) {
|
|
15874
15880
|
return (function() {
|
|
15875
15881
|
var o = n, i = o.lib, r = i.BlockCipher, s = o.algo, a = [], c = [], l = [], u = [], d = [], f = [], h = [], m = [], p = [], v = [];
|
|
15876
15882
|
(function() {
|
|
@@ -15912,11 +15918,11 @@ function I0() {
|
|
|
15912
15918
|
},
|
|
15913
15919
|
_doCryptBlock: function(g, w, A, $, F, U, Y, C) {
|
|
15914
15920
|
for (var I = this._nRounds, E = g[w] ^ A[0], H = g[w + 1] ^ A[1], b = g[w + 2] ^ A[2], D = g[w + 3] ^ A[3], y = 4, x = 1; x < I; x++) {
|
|
15915
|
-
var
|
|
15916
|
-
E =
|
|
15921
|
+
var k = $[E >>> 24] ^ F[H >>> 16 & 255] ^ U[b >>> 8 & 255] ^ Y[D & 255] ^ A[y++], O = $[H >>> 24] ^ F[b >>> 16 & 255] ^ U[D >>> 8 & 255] ^ Y[E & 255] ^ A[y++], R = $[b >>> 24] ^ F[D >>> 16 & 255] ^ U[E >>> 8 & 255] ^ Y[H & 255] ^ A[y++], M = $[D >>> 24] ^ F[E >>> 16 & 255] ^ U[H >>> 8 & 255] ^ Y[b & 255] ^ A[y++];
|
|
15922
|
+
E = k, H = O, b = R, D = M;
|
|
15917
15923
|
}
|
|
15918
|
-
var
|
|
15919
|
-
g[w] =
|
|
15924
|
+
var k = (C[E >>> 24] << 24 | C[H >>> 16 & 255] << 16 | C[b >>> 8 & 255] << 8 | C[D & 255]) ^ A[y++], O = (C[H >>> 24] << 24 | C[b >>> 16 & 255] << 16 | C[D >>> 8 & 255] << 8 | C[E & 255]) ^ A[y++], R = (C[b >>> 24] << 24 | C[D >>> 16 & 255] << 16 | C[E >>> 8 & 255] << 8 | C[H & 255]) ^ A[y++], M = (C[D >>> 24] << 24 | C[E >>> 16 & 255] << 16 | C[H >>> 8 & 255] << 8 | C[b & 255]) ^ A[y++];
|
|
15925
|
+
g[w] = k, g[w + 1] = O, g[w + 2] = R, g[w + 3] = M;
|
|
15920
15926
|
},
|
|
15921
15927
|
keySize: 256 / 32
|
|
15922
15928
|
});
|
|
@@ -15985,8 +15991,8 @@ function L0() {
|
|
|
15985
15991
|
var Y = d[U - 15], C = (Y << 25 | Y >>> 7) ^ (Y << 14 | Y >>> 18) ^ Y >>> 3, I = d[U - 2], E = (I << 15 | I >>> 17) ^ (I << 13 | I >>> 19) ^ I >>> 10;
|
|
15986
15992
|
d[U] = C + d[U - 7] + E + d[U - 16];
|
|
15987
15993
|
}
|
|
15988
|
-
var H = w & A ^ ~w & $, b = v & S ^ v & _ ^ S & _, D = (v << 30 | v >>> 2) ^ (v << 19 | v >>> 13) ^ (v << 10 | v >>> 22), y = (w << 26 | w >>> 6) ^ (w << 21 | w >>> 11) ^ (w << 7 | w >>> 25), x = F + y + H + u[U] + d[U],
|
|
15989
|
-
F = $, $ = A, A = w, w = g + x | 0, g = _, _ = S, S = v, v = x +
|
|
15994
|
+
var H = w & A ^ ~w & $, b = v & S ^ v & _ ^ S & _, D = (v << 30 | v >>> 2) ^ (v << 19 | v >>> 13) ^ (v << 10 | v >>> 22), y = (w << 26 | w >>> 6) ^ (w << 21 | w >>> 11) ^ (w << 7 | w >>> 25), x = F + y + H + u[U] + d[U], k = D + b;
|
|
15995
|
+
F = $, $ = A, A = w, w = g + x | 0, g = _, _ = S, S = v, v = x + k | 0;
|
|
15990
15996
|
}
|
|
15991
15997
|
p[0] = p[0] + v | 0, p[1] = p[1] + S | 0, p[2] = p[2] + _ | 0, p[3] = p[3] + g | 0, p[4] = p[4] + w | 0, p[5] = p[5] + A | 0, p[6] = p[6] + $ | 0, p[7] = p[7] + F | 0;
|
|
15992
15998
|
},
|
|
@@ -16346,7 +16352,7 @@ function W0() {
|
|
|
16346
16352
|
]);
|
|
16347
16353
|
},
|
|
16348
16354
|
_doProcessBlock: function(m, p) {
|
|
16349
|
-
for (var v = this._hash.words, S = v[0], _ = v[1], g = v[2], w = v[3], A = v[4], $ = v[5], F = v[6], U = v[7], Y = S.high, C = S.low, I = _.high, E = _.low, H = g.high, b = g.low, D = w.high, y = w.low, x = A.high,
|
|
16355
|
+
for (var v = this._hash.words, S = v[0], _ = v[1], g = v[2], w = v[3], A = v[4], $ = v[5], F = v[6], U = v[7], Y = S.high, C = S.low, I = _.high, E = _.low, H = g.high, b = g.low, D = w.high, y = w.low, x = A.high, k = A.low, O = $.high, R = $.low, M = F.high, z = F.low, L = U.high, V = U.low, K = Y, Q = C, X = I, ee = E, se = H, ie = b, ge = D, re = y, le = x, P = k, T = O, B = R, j = M, N = z, W = L, G = V, q = 0; q < 80; q++) {
|
|
16350
16356
|
var oe, ne, ye = f[q];
|
|
16351
16357
|
if (q < 16)
|
|
16352
16358
|
ne = ye.high = m[p + q * 2] | 0, oe = ye.low = m[p + q * 2 + 1] | 0;
|
|
@@ -16354,10 +16360,10 @@ function W0() {
|
|
|
16354
16360
|
var _e = f[q - 15], je = _e.high, Ue = _e.low, pt = (je >>> 1 | Ue << 31) ^ (je >>> 8 | Ue << 24) ^ je >>> 7, He = (Ue >>> 1 | je << 31) ^ (Ue >>> 8 | je << 24) ^ (Ue >>> 7 | je << 25), Rt = f[q - 2], Ht = Rt.high, Bt = Rt.low, Zi = (Ht >>> 19 | Bt << 13) ^ (Ht << 3 | Bt >>> 29) ^ Ht >>> 6, _s = (Bt >>> 19 | Ht << 13) ^ (Bt << 3 | Ht >>> 29) ^ (Bt >>> 6 | Ht << 26), ws = f[q - 7], tc = ws.high, nc = ws.low, xs = f[q - 16], oc = xs.high, Es = xs.low;
|
|
16355
16361
|
oe = He + nc, ne = pt + tc + (oe >>> 0 < He >>> 0 ? 1 : 0), oe = oe + _s, ne = ne + Zi + (oe >>> 0 < _s >>> 0 ? 1 : 0), oe = oe + Es, ne = ne + oc + (oe >>> 0 < Es >>> 0 ? 1 : 0), ye.high = ne, ye.low = oe;
|
|
16356
16362
|
}
|
|
16357
|
-
var ic = le &
|
|
16358
|
-
W = j, G = N, j =
|
|
16363
|
+
var ic = le & T ^ ~le & j, Cs = P & B ^ ~P & N, rc = K & X ^ K & se ^ X & se, sc = Q & ee ^ Q & ie ^ ee & ie, ac = (K >>> 28 | Q << 4) ^ (K << 30 | Q >>> 2) ^ (K << 25 | Q >>> 7), Ss = (Q >>> 28 | K << 4) ^ (Q << 30 | K >>> 2) ^ (Q << 25 | K >>> 7), lc = (le >>> 14 | P << 18) ^ (le >>> 18 | P << 14) ^ (le << 23 | P >>> 9), uc = (P >>> 14 | le << 18) ^ (P >>> 18 | le << 14) ^ (P << 23 | le >>> 9), Ds = d[q], cc = Ds.high, Ns = Ds.low, lt = G + uc, Qt = W + lc + (lt >>> 0 < G >>> 0 ? 1 : 0), lt = lt + Cs, Qt = Qt + ic + (lt >>> 0 < Cs >>> 0 ? 1 : 0), lt = lt + Ns, Qt = Qt + cc + (lt >>> 0 < Ns >>> 0 ? 1 : 0), lt = lt + oe, Qt = Qt + ne + (lt >>> 0 < oe >>> 0 ? 1 : 0), ks = Ss + sc, dc = ac + rc + (ks >>> 0 < Ss >>> 0 ? 1 : 0);
|
|
16364
|
+
W = j, G = N, j = T, N = B, T = le, B = P, P = re + lt | 0, le = ge + Qt + (P >>> 0 < re >>> 0 ? 1 : 0) | 0, ge = se, re = ie, se = X, ie = ee, X = K, ee = Q, Q = lt + ks | 0, K = Qt + dc + (Q >>> 0 < lt >>> 0 ? 1 : 0) | 0;
|
|
16359
16365
|
}
|
|
16360
|
-
C = S.low = C + Q, S.high = Y + K + (C >>> 0 < Q >>> 0 ? 1 : 0), E = _.low = E + ee, _.high = I + X + (E >>> 0 < ee >>> 0 ? 1 : 0), b = g.low = b + ie, g.high = H + se + (b >>> 0 < ie >>> 0 ? 1 : 0), y = w.low = y + re, w.high = D + ge + (y >>> 0 < re >>> 0 ? 1 : 0),
|
|
16366
|
+
C = S.low = C + Q, S.high = Y + K + (C >>> 0 < Q >>> 0 ? 1 : 0), E = _.low = E + ee, _.high = I + X + (E >>> 0 < ee >>> 0 ? 1 : 0), b = g.low = b + ie, g.high = H + se + (b >>> 0 < ie >>> 0 ? 1 : 0), y = w.low = y + re, w.high = D + ge + (y >>> 0 < re >>> 0 ? 1 : 0), k = A.low = k + P, A.high = x + le + (k >>> 0 < P >>> 0 ? 1 : 0), R = $.low = R + B, $.high = O + T + (R >>> 0 < B >>> 0 ? 1 : 0), z = F.low = z + N, F.high = M + j + (z >>> 0 < N >>> 0 ? 1 : 0), V = U.low = V + G, U.high = L + W + (V >>> 0 < G >>> 0 ? 1 : 0);
|
|
16361
16367
|
},
|
|
16362
16368
|
_doFinalize: function() {
|
|
16363
16369
|
var m = this._data, p = m.words, v = this._nDataBytes * 8, S = m.sigBytes * 8;
|
|
@@ -16466,7 +16472,7 @@ var Jt = Ut(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Eo = Ut(/E
|
|
|
16466
16472
|
capture: !1,
|
|
16467
16473
|
passive: !1
|
|
16468
16474
|
};
|
|
16469
|
-
function
|
|
16475
|
+
function Te(t, e, n) {
|
|
16470
16476
|
t.addEventListener(e, n, !Jt && Lu);
|
|
16471
16477
|
}
|
|
16472
16478
|
function Ne(t, e, n) {
|
|
@@ -16985,7 +16991,7 @@ function xe(t, e) {
|
|
|
16985
16991
|
qu(e);
|
|
16986
16992
|
for (var i in this)
|
|
16987
16993
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
16988
|
-
this.nativeDraggable = e.forceFallback ? !1 : rb, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ?
|
|
16994
|
+
this.nativeDraggable = e.forceFallback ? !1 : rb, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? Te(t, "pointerdown", this._onTapStart) : (Te(t, "mousedown", this._onTapStart), Te(t, "touchstart", this._onTapStart)), this.nativeDraggable && (Te(t, "dragover", this), Te(t, "dragenter", this)), zi.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Zt(this, eb());
|
|
16989
16995
|
}
|
|
16990
16996
|
xe.prototype = /** @lends Sortable.prototype */
|
|
16991
16997
|
{
|
|
@@ -17056,14 +17062,14 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
17056
17062
|
}), ct(ae, s.chosenClass, !0);
|
|
17057
17063
|
}, s.ignore.split(",").forEach(function(u) {
|
|
17058
17064
|
Vu(ae, u.trim(), yr);
|
|
17059
|
-
}),
|
|
17065
|
+
}), Te(a, "dragover", un), Te(a, "mousemove", un), Te(a, "touchmove", un), s.supportPointer ? (Te(a, "pointerup", i._onDrop), !this.nativeDraggable && Te(a, "pointercancel", i._onDrop)) : (Te(a, "mouseup", i._onDrop), Te(a, "touchend", i._onDrop), Te(a, "touchcancel", i._onDrop)), Ka && this.nativeDraggable && (this.options.touchStartThreshold = 4, ae.draggable = !0), rt("delayStart", this, {
|
|
17060
17066
|
evt: e
|
|
17061
17067
|
}), s.delay && (!s.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Eo || Jt))) {
|
|
17062
17068
|
if (xe.eventCanceled) {
|
|
17063
17069
|
this._onDrop();
|
|
17064
17070
|
return;
|
|
17065
17071
|
}
|
|
17066
|
-
s.supportPointer ? (
|
|
17072
|
+
s.supportPointer ? (Te(a, "pointerup", i._disableDelayedDrag), Te(a, "pointercancel", i._disableDelayedDrag)) : (Te(a, "mouseup", i._disableDelayedDrag), Te(a, "touchend", i._disableDelayedDrag), Te(a, "touchcancel", i._disableDelayedDrag)), Te(a, "mousemove", i._delayedDragTouchMoveHandler), Te(a, "touchmove", i._delayedDragTouchMoveHandler), s.supportPointer && Te(a, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(c, s.delay);
|
|
17067
17073
|
} else
|
|
17068
17074
|
c();
|
|
17069
17075
|
}
|
|
@@ -17080,7 +17086,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
17080
17086
|
Ne(e, "mouseup", this._disableDelayedDrag), Ne(e, "touchend", this._disableDelayedDrag), Ne(e, "touchcancel", this._disableDelayedDrag), Ne(e, "pointerup", this._disableDelayedDrag), Ne(e, "pointercancel", this._disableDelayedDrag), Ne(e, "mousemove", this._delayedDragTouchMoveHandler), Ne(e, "touchmove", this._delayedDragTouchMoveHandler), Ne(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
17081
17087
|
},
|
|
17082
17088
|
_triggerDragStart: function(e, n) {
|
|
17083
|
-
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ?
|
|
17089
|
+
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? Te(document, "pointermove", this._onTouchMove) : n ? Te(document, "touchmove", this._onTouchMove) : Te(document, "mousemove", this._onTouchMove) : (Te(ae, "dragend", this), Te(Be, "dragstart", this._onDragStart));
|
|
17084
17090
|
try {
|
|
17085
17091
|
document.selection ? fi(function() {
|
|
17086
17092
|
document.selection.empty();
|
|
@@ -17092,7 +17098,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
17092
17098
|
if (Sn = !1, Be && ae) {
|
|
17093
17099
|
rt("dragStarted", this, {
|
|
17094
17100
|
evt: n
|
|
17095
|
-
}), this.nativeDraggable &&
|
|
17101
|
+
}), this.nativeDraggable && Te(document, "dragover", lb);
|
|
17096
17102
|
var o = this.options;
|
|
17097
17103
|
!e && ct(ae, o.dragClass, !1), ct(ae, o.ghostClass, !0), xe.active = this, e && this._appendGhost(), ot({
|
|
17098
17104
|
sortable: this,
|
|
@@ -17171,14 +17177,14 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
17171
17177
|
sortable: o,
|
|
17172
17178
|
name: "clone"
|
|
17173
17179
|
}));
|
|
17174
|
-
}), !n && ct(ae, r.dragClass, !0), n ? (Pi = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (Ne(document, "mouseup", o._onDrop), Ne(document, "touchend", o._onDrop), Ne(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(o, i, ae)),
|
|
17180
|
+
}), !n && ct(ae, r.dragClass, !0), n ? (Pi = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (Ne(document, "mouseup", o._onDrop), Ne(document, "touchend", o._onDrop), Ne(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(o, i, ae)), Te(document, "drop", o), we(ae, "transform", "translateZ(0)")), Sn = !0, o._dragStartId = fi(o._dragStarted.bind(o, n, e)), Te(document, "selectstart", o), Xn = !0, window.getSelection().removeAllRanges(), to && we(document.body, "user-select", "none");
|
|
17175
17181
|
},
|
|
17176
17182
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
17177
17183
|
_onDragOver: function(e) {
|
|
17178
17184
|
var n = this.el, o = e.target, i, r, s, a = this.options, c = a.group, l = xe.active, u = zo === c, d = a.sort, f = et || l, h, m = this, p = !1;
|
|
17179
17185
|
if (Wr) return;
|
|
17180
|
-
function v(
|
|
17181
|
-
rt(
|
|
17186
|
+
function v(k, O) {
|
|
17187
|
+
rt(k, m, zt({
|
|
17182
17188
|
evt: e,
|
|
17183
17189
|
isOwner: u,
|
|
17184
17190
|
axis: h ? "vertical" : "horizontal",
|
|
@@ -17198,12 +17204,12 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
17198
17204
|
function S() {
|
|
17199
17205
|
v("dragOverAnimationCapture"), m.captureAnimationState(), m !== f && f.captureAnimationState();
|
|
17200
17206
|
}
|
|
17201
|
-
function _(
|
|
17207
|
+
function _(k) {
|
|
17202
17208
|
return v("dragOverCompleted", {
|
|
17203
|
-
insertion:
|
|
17204
|
-
}),
|
|
17209
|
+
insertion: k
|
|
17210
|
+
}), k && (u ? l._hideClone() : l._showClone(m), m !== f && (ct(ae, et ? et.options.ghostClass : l.options.ghostClass, !1), ct(ae, a.ghostClass, !0)), et !== m && m !== xe.active ? et = m : m === xe.active && et && (et = null), f === m && (m._ignoreWhileAnimating = o), m.animateAll(function() {
|
|
17205
17211
|
v("dragOverAnimationComplete"), m._ignoreWhileAnimating = null;
|
|
17206
|
-
}), m !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (o === ae && !ae.animated || o === n && !o.animated) && (xn = null), !a.dragoverBubble && !e.rootEl && o !== document && (ae.parentNode[st]._isOutsideThisEl(e.target), !
|
|
17212
|
+
}), m !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (o === ae && !ae.animated || o === n && !o.animated) && (xn = null), !a.dragoverBubble && !e.rootEl && o !== document && (ae.parentNode[st]._isOutsideThisEl(e.target), !k && un(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), p = !0;
|
|
17207
17213
|
}
|
|
17208
17214
|
function g() {
|
|
17209
17215
|
dt = mt(ae), on = mt(ae, a.draggable), ot({
|
|
@@ -17479,11 +17485,11 @@ function fi(t) {
|
|
|
17479
17485
|
function Yr(t) {
|
|
17480
17486
|
return clearTimeout(t);
|
|
17481
17487
|
}
|
|
17482
|
-
Ki &&
|
|
17488
|
+
Ki && Te(document, "touchmove", function(t) {
|
|
17483
17489
|
(xe.active || Sn) && t.cancelable && t.preventDefault();
|
|
17484
17490
|
});
|
|
17485
17491
|
xe.utils = {
|
|
17486
|
-
on:
|
|
17492
|
+
on: Te,
|
|
17487
17493
|
off: Ne,
|
|
17488
17494
|
css: we,
|
|
17489
17495
|
find: Vu,
|
|
@@ -17534,7 +17540,7 @@ function vb() {
|
|
|
17534
17540
|
return t.prototype = {
|
|
17535
17541
|
dragStarted: function(n) {
|
|
17536
17542
|
var o = n.originalEvent;
|
|
17537
|
-
this.sortable.nativeDraggable ?
|
|
17543
|
+
this.sortable.nativeDraggable ? Te(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? Te(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? Te(document, "touchmove", this._handleFallbackAutoScroll) : Te(document, "mousemove", this._handleFallbackAutoScroll);
|
|
17538
17544
|
},
|
|
17539
17545
|
dragOverCompleted: function(n) {
|
|
17540
17546
|
var o = n.originalEvent;
|
|
@@ -17650,20 +17656,20 @@ const yb = (t, e, n, o, i, r, s, a) => {
|
|
|
17650
17656
|
const c = he(), l = gi({}), u = ce(() => {
|
|
17651
17657
|
const y = [];
|
|
17652
17658
|
return Object.keys(l).forEach((x) => {
|
|
17653
|
-
const
|
|
17654
|
-
|
|
17659
|
+
const k = l[x];
|
|
17660
|
+
k.dragType === "component" && k.type !== "pkey" && y.push(k);
|
|
17655
17661
|
}), y;
|
|
17656
17662
|
}), d = (y = [], x) => {
|
|
17657
|
-
const
|
|
17658
|
-
typeof
|
|
17663
|
+
const k = e?.value?.init;
|
|
17664
|
+
typeof k == "function" && k(y, x);
|
|
17659
17665
|
}, f = (y) => i ? i(y, {
|
|
17660
17666
|
componentDic: l,
|
|
17661
17667
|
components: u.value,
|
|
17662
17668
|
configData: c.value.config
|
|
17663
17669
|
}) : {}, h = (y, x) => {
|
|
17664
17670
|
if (c.value?.id === y) return;
|
|
17665
|
-
const
|
|
17666
|
-
if (
|
|
17671
|
+
const k = l[y] || x;
|
|
17672
|
+
if (k ? c.value = k : y === n.id ? c.value = n : c.value = null, c.value) {
|
|
17667
17673
|
const O = r[c.value.type];
|
|
17668
17674
|
O ? (d(O, c.value.config), f(c.value.type)) : d([]);
|
|
17669
17675
|
} else
|
|
@@ -17676,31 +17682,31 @@ const yb = (t, e, n, o, i, r, s, a) => {
|
|
|
17676
17682
|
if (y === n.id)
|
|
17677
17683
|
x.push({ id: y, name: n.name });
|
|
17678
17684
|
else {
|
|
17679
|
-
const
|
|
17680
|
-
if (
|
|
17681
|
-
x.push({ id: y, name:
|
|
17682
|
-
const O = v(
|
|
17685
|
+
const k = l[y];
|
|
17686
|
+
if (k) {
|
|
17687
|
+
x.push({ id: y, name: k.name });
|
|
17688
|
+
const O = v(k.containerId);
|
|
17683
17689
|
x.push(...O);
|
|
17684
17690
|
}
|
|
17685
17691
|
}
|
|
17686
17692
|
return x;
|
|
17687
17693
|
}, S = (y, x) => {
|
|
17688
|
-
const
|
|
17689
|
-
if (
|
|
17694
|
+
const k = l[x];
|
|
17695
|
+
if (k === void 0)
|
|
17690
17696
|
return !1;
|
|
17691
|
-
const O =
|
|
17697
|
+
const O = k.containerId;
|
|
17692
17698
|
return y === O ? !0 : O === n.id ? !1 : S(y, O);
|
|
17693
|
-
}, _ = (y) => o ? o(y) || {} : {}, g = (y, x,
|
|
17699
|
+
}, _ = (y) => o ? o(y) || {} : {}, g = (y, x, k, O) => {
|
|
17694
17700
|
if (a) {
|
|
17695
17701
|
const R = p(y);
|
|
17696
17702
|
return a(
|
|
17697
|
-
|
|
17698
|
-
{ container: R, groupId: x, configData:
|
|
17703
|
+
k.componentType,
|
|
17704
|
+
{ container: R, groupId: x, configData: k },
|
|
17699
17705
|
O
|
|
17700
17706
|
);
|
|
17701
17707
|
}
|
|
17702
17708
|
return !1;
|
|
17703
|
-
}, w = ({ name: y, type: x, dragType:
|
|
17709
|
+
}, w = ({ name: y, type: x, dragType: k, isInput: O, componentName: R, runtimeType: M }, z, L, V, K = !1) => {
|
|
17704
17710
|
const Q = _(x);
|
|
17705
17711
|
if (Q.id = Mn(), Q.span = 24, Q.componentType = x, A(z, Q.componentType))
|
|
17706
17712
|
return;
|
|
@@ -17711,7 +17717,7 @@ const yb = (t, e, n, o, i, r, s, a) => {
|
|
|
17711
17717
|
type: x,
|
|
17712
17718
|
runtimeType: M,
|
|
17713
17719
|
componentName: R || "",
|
|
17714
|
-
dragType:
|
|
17720
|
+
dragType: k || "component",
|
|
17715
17721
|
containerId: z,
|
|
17716
17722
|
isInput: !!O,
|
|
17717
17723
|
level: l[z] ? l[z].level + 1 : 1,
|
|
@@ -17733,17 +17739,17 @@ const yb = (t, e, n, o, i, r, s, a) => {
|
|
|
17733
17739
|
"qrcode",
|
|
17734
17740
|
"barcode",
|
|
17735
17741
|
"tableLayout"
|
|
17736
|
-
].includes(x)), $ = (y, x,
|
|
17742
|
+
].includes(x)), $ = (y, x, k = !1) => {
|
|
17737
17743
|
let O = null;
|
|
17738
17744
|
const R = p(y).children, M = R?.findIndex((z) => z.id === x) || 0;
|
|
17739
|
-
if (
|
|
17745
|
+
if (k && R && R.length > 1) {
|
|
17740
17746
|
let z = M + 1;
|
|
17741
17747
|
M > 0 && (z = M - 1), O = R[z];
|
|
17742
17748
|
}
|
|
17743
17749
|
return R?.splice(M, 1), O?.id;
|
|
17744
|
-
}, F = (y, x,
|
|
17750
|
+
}, F = (y, x, k, O) => {
|
|
17745
17751
|
const R = p(x).children, M = y.containerId !== x;
|
|
17746
|
-
y.containerId = x, y.groupId = O, R?.splice(
|
|
17752
|
+
y.containerId = x, y.groupId = O, R?.splice(k, 0, y), g(
|
|
17747
17753
|
x,
|
|
17748
17754
|
O,
|
|
17749
17755
|
y.config,
|
|
@@ -17751,30 +17757,30 @@ const yb = (t, e, n, o, i, r, s, a) => {
|
|
|
17751
17757
|
) && (H(), h(y.id));
|
|
17752
17758
|
}, U = (y) => {
|
|
17753
17759
|
let x = "";
|
|
17754
|
-
const
|
|
17755
|
-
return
|
|
17760
|
+
const k = p(y);
|
|
17761
|
+
return k && (k.children && k.children.length > 0 && k.children.forEach((O) => {
|
|
17756
17762
|
U(O.id);
|
|
17757
|
-
}), x = $(
|
|
17763
|
+
}), x = $(k.containerId, y, !0) || "", delete l[y]), c.value && c.value.id === y && (c.value = null, e.value.init([])), x;
|
|
17758
17764
|
}, Y = (y, x = []) => {
|
|
17759
|
-
const
|
|
17760
|
-
if (
|
|
17765
|
+
const k = p(y);
|
|
17766
|
+
if (k && k.children && k.children.length > 0) {
|
|
17761
17767
|
const O = [];
|
|
17762
|
-
|
|
17768
|
+
k.children.forEach((R) => {
|
|
17763
17769
|
R.groupId && x.includes(R.groupId) && O.push(R.id);
|
|
17764
17770
|
}), O.forEach((R) => {
|
|
17765
17771
|
U(R), delete l[R];
|
|
17766
17772
|
});
|
|
17767
17773
|
}
|
|
17768
17774
|
}, C = (y, x) => {
|
|
17769
|
-
const
|
|
17770
|
-
|
|
17775
|
+
const k = p(y);
|
|
17776
|
+
k && (k.children && k.children.length > 0 && k.children.forEach((O) => {
|
|
17771
17777
|
O.groupId === x && U(O.id);
|
|
17772
17778
|
}), delete l[y]);
|
|
17773
17779
|
}, I = (y) => {
|
|
17774
17780
|
const x = xr(p(y));
|
|
17775
17781
|
x.id = Mn(), x.config.id = x.id, l[x.id] = x;
|
|
17776
|
-
const
|
|
17777
|
-
|
|
17782
|
+
const k = p(x.containerId).children, O = k?.findIndex((R) => R.id === y) || 0;
|
|
17783
|
+
k?.splice(O + 1, 0, x);
|
|
17778
17784
|
}, E = () => {
|
|
17779
17785
|
n.children = [], xc(l), c.value && (Ge("dragClick", {
|
|
17780
17786
|
id: ""
|
|
@@ -17784,7 +17790,7 @@ const yb = (t, e, n, o, i, r, s, a) => {
|
|
|
17784
17790
|
id: ""
|
|
17785
17791
|
}), c.value = null, e.value.init([]));
|
|
17786
17792
|
}, b = (y) => {
|
|
17787
|
-
const x = c.value,
|
|
17793
|
+
const x = c.value, k = p(x.containerId).children, O = k?.findIndex((R) => R.id === x.id) || 0;
|
|
17788
17794
|
U(x.id), Ye(() => {
|
|
17789
17795
|
const R = s[y], M = _(y);
|
|
17790
17796
|
M.id = x.id, M.span = x.config.span, M.componentType = y, M.table = x.config.table, M.field = x.config.field, x.config.isSubTable && (M.isSubTable = x.config.isSubTable);
|
|
@@ -17802,7 +17808,7 @@ const yb = (t, e, n, o, i, r, s, a) => {
|
|
|
17802
17808
|
config: M,
|
|
17803
17809
|
isNewAdd: !0
|
|
17804
17810
|
};
|
|
17805
|
-
l[z.id] = z,
|
|
17811
|
+
l[z.id] = z, k?.splice(O, 0, z);
|
|
17806
17812
|
});
|
|
17807
17813
|
}, D = (y) => {
|
|
17808
17814
|
Ge("dragAddByClick", y);
|
|
@@ -18028,7 +18034,7 @@ function Cb(t, e, n, o, i, r) {
|
|
|
18028
18034
|
"component-data": t.componentData
|
|
18029
18035
|
}), null, 16, ["global-config", "component-data"])) : (te(), Ie(It(t.componentData?.componentName), sl(Wt({ key: 2 }, t.componentData?.config)), null, 16));
|
|
18030
18036
|
}
|
|
18031
|
-
const ec = /* @__PURE__ */ Eb(xb, [["render", Cb]]), Sb = { class: "d-form-design j-block" }, Db = { class: "d-form-design-left" }, Nb = { class: "d-form-design-component-list" },
|
|
18037
|
+
const ec = /* @__PURE__ */ Eb(xb, [["render", Cb]]), Sb = { class: "d-form-design j-block" }, Db = { class: "d-form-design-left" }, Nb = { class: "d-form-design-component-list" }, kb = { class: "j-component-tool" }, Tb = { class: "j-component-tool-name" }, Ib = { class: "d-form-design-center" }, Mb = { class: "d-form-design-toolbar" }, $b = { class: "d-form-design-container" }, Ab = {
|
|
18032
18038
|
key: 0,
|
|
18033
18039
|
class: "d-form-design-empty"
|
|
18034
18040
|
}, Pb = { class: "d-form-design-right" }, zb = { class: "d-form-design-panel-title" }, Ob = { style: { margin: "0", "font-size": "14px" } }, Rb = { class: "d-form-design-panel" }, Hb = /* @__PURE__ */ Ee({
|
|
@@ -18438,7 +18444,7 @@ const ec = /* @__PURE__ */ Eb(xb, [["render", Cb]]), Sb = { class: "d-form-desig
|
|
|
18438
18444
|
}, x = () => {
|
|
18439
18445
|
const N = dr(s.config, s.children || []), W = {}, G = {};
|
|
18440
18446
|
return O(N.components, W, G);
|
|
18441
|
-
},
|
|
18447
|
+
}, k = (N) => {
|
|
18442
18448
|
const { isInput: W, bindTable: G } = h[N] || {};
|
|
18443
18449
|
if (!W && G)
|
|
18444
18450
|
return !0;
|
|
@@ -18451,7 +18457,7 @@ const ec = /* @__PURE__ */ Eb(xb, [["render", Cb]]), Sb = { class: "d-form-desig
|
|
|
18451
18457
|
if (Fo(q.config.table))
|
|
18452
18458
|
return r && r(`请【${q.config.label}】绑定数据表!`), !1;
|
|
18453
18459
|
if (!q.config.isSubTable) {
|
|
18454
|
-
if (G[q.config.table] &&
|
|
18460
|
+
if (G[q.config.table] && k(G[q.config.table].type))
|
|
18455
18461
|
return r && r(
|
|
18456
18462
|
`【${q.config.label}】和【${G[q.config.table].config.label}】重复绑定【${q.config.table}】表!`
|
|
18457
18463
|
), !1;
|
|
@@ -18579,13 +18585,13 @@ const ec = /* @__PURE__ */ Eb(xb, [["render", Cb]]), Sb = { class: "d-form-desig
|
|
|
18579
18585
|
config: Bt
|
|
18580
18586
|
}, {
|
|
18581
18587
|
default: Se(() => [
|
|
18582
|
-
fe("div",
|
|
18588
|
+
fe("div", kb, [
|
|
18583
18589
|
me(G, {
|
|
18584
18590
|
class: "j-component-tool-icon",
|
|
18585
18591
|
icon: Bt.icon,
|
|
18586
18592
|
size: 14
|
|
18587
18593
|
}, null, 8, ["icon"]),
|
|
18588
|
-
fe("div",
|
|
18594
|
+
fe("div", Tb, yt(J(o)(Bt.name)), 1)
|
|
18589
18595
|
])
|
|
18590
18596
|
]),
|
|
18591
18597
|
_: 2
|