x-block-lib 0.5.3 → 0.5.5
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/index.js +798 -796
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7,30 +7,29 @@
|
|
|
7
7
|
License: see project LICENSE
|
|
8
8
|
Touched: 2021
|
|
9
9
|
*/pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var Fe = (e, t, n) =>
|
|
13
|
-
import { getCurrentScope as
|
|
14
|
-
import { d as O, j as l, O as u, M as v, u as I, X as
|
|
15
|
-
import {
|
|
16
|
-
import { openConfirmDlg as nl, openPromptDlg as ol, eventBus as We, messageWarning as sa, useColor as _o, useViewStack as po, useSystem as aa, useGlobalStore as il } from "x-essential-lib";
|
|
10
|
+
var Pr = Object.defineProperty;
|
|
11
|
+
var xr = (e, t, n) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
12
|
+
var Fe = (e, t, n) => xr(e, typeof t != "symbol" ? t + "" : t, n);
|
|
13
|
+
import { getCurrentScope as Ur, onScopeDispose as wr, unref as w, computed as Te, watch as pt, ref as At, getCurrentInstance as ro, onMounted as Wt, defineComponent as Qe, onBeforeUnmount as Wn, resolveComponent as Ae, openBlock as he, createBlock as $e, withCtx as Xe, createVNode as ge, mergeProps as Ai, useModel as ti, toRefs as Vr, reactive as Fr, h as ni, onUnmounted as Yr, nextTick as vi, isRef as an, resolveDirective as Kr, withDirectives as Hr, createElementBlock as mt, normalizeStyle as ot, createElementVNode as He, toDisplayString as lo, withModifiers as rn, Fragment as ea, renderList as $r, withKeys as ta, createCommentVNode as Gt, mergeModels as Wi } from "vue";
|
|
14
|
+
import { d as O, j as l, O as u, M as v, u as I, X as Gr, E as V, B as U, F as ee, i as re, a as Bt, b as co, c as ue, C as na, e as jr, P as oi, N as bi, V as wn, g as Et, f as Wr, h as oa, s as Xr, S as ye, k as Do, l as Yt, m as Ln, n as Mo, o as Zt, p as St, q as Xi, G as Po, r as zr, t as Jr, v as xo, U as Nn, D as kn, w as xt, x as qr, T as uo, y as ia, z as Qr, A as Zr, H as el, I as zi, J as tl } from "./blockly-cc5ny7z2.js";
|
|
15
|
+
import { openConfirmDlg as nl, openPromptDlg as ol, eventBus as We, messageWarning as sa, useColor as _o, useViewStack as po, useSystem as aa, injectDark as il, injectLocale as sl } from "x-essential-lib";
|
|
17
16
|
import { elements as Je, getPropTag as ra } from "x-runtime-lib";
|
|
18
17
|
import { useI18n as En } from "vue-i18n";
|
|
19
|
-
import { useDisplay as
|
|
20
|
-
function al(e) {
|
|
21
|
-
return xr() ? (Ur(e), !0) : !1;
|
|
22
|
-
}
|
|
18
|
+
import { useDisplay as al } from "vuetify";
|
|
23
19
|
function rl(e) {
|
|
20
|
+
return Ur() ? (wr(e), !0) : !1;
|
|
21
|
+
}
|
|
22
|
+
function la(e) {
|
|
24
23
|
return typeof e == "function" ? e() : w(e);
|
|
25
24
|
}
|
|
26
25
|
const ll = typeof window < "u" && typeof document < "u";
|
|
27
26
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
27
|
+
const cl = ll ? window : void 0;
|
|
28
28
|
function Ji(e) {
|
|
29
29
|
var t;
|
|
30
|
-
const n =
|
|
30
|
+
const n = la(e);
|
|
31
31
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
32
32
|
}
|
|
33
|
-
const cl = ll ? window : void 0;
|
|
34
33
|
function ul() {
|
|
35
34
|
const e = At(!1), t = ro();
|
|
36
35
|
return t && Wt(() => {
|
|
@@ -46,22 +45,25 @@ function pl(e, t, n = {}) {
|
|
|
46
45
|
let s;
|
|
47
46
|
const a = _l(() => o && "ResizeObserver" in o), r = () => {
|
|
48
47
|
s && (s.disconnect(), s = void 0);
|
|
49
|
-
}, c = Te(() =>
|
|
48
|
+
}, c = Te(() => {
|
|
49
|
+
const d = la(e);
|
|
50
|
+
return Array.isArray(d) ? d.map((f) => Ji(f)) : [Ji(d)];
|
|
51
|
+
}), _ = pt(
|
|
50
52
|
c,
|
|
51
|
-
(
|
|
53
|
+
(d) => {
|
|
52
54
|
if (r(), a.value && o) {
|
|
53
55
|
s = new ResizeObserver(t);
|
|
54
|
-
for (const f of
|
|
56
|
+
for (const f of d)
|
|
55
57
|
f && s.observe(f, i);
|
|
56
58
|
}
|
|
57
59
|
},
|
|
58
60
|
{ immediate: !0, flush: "post" }
|
|
59
|
-
),
|
|
61
|
+
), p = () => {
|
|
60
62
|
r(), _();
|
|
61
63
|
};
|
|
62
|
-
return
|
|
64
|
+
return rl(p), {
|
|
63
65
|
isSupported: a,
|
|
64
|
-
stop:
|
|
66
|
+
stop: p
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
69
|
O([
|
|
@@ -206,10 +208,10 @@ function ${l.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
|
|
|
206
208
|
`
|
|
207
209
|
)}(${t}, ${n}, ${o})`, u.FUNCTION_CALL];
|
|
208
210
|
};
|
|
209
|
-
function
|
|
211
|
+
function ke(e) {
|
|
210
212
|
return e.length <= 0 && e.push([v.NO_OPTION, ""]), e;
|
|
211
213
|
}
|
|
212
|
-
function
|
|
214
|
+
function Le(e) {
|
|
213
215
|
let t = "";
|
|
214
216
|
if (e.type === "string") {
|
|
215
217
|
let n = "";
|
|
@@ -225,7 +227,7 @@ function Ne(e) {
|
|
|
225
227
|
return I.xml.textToDom(t);
|
|
226
228
|
}
|
|
227
229
|
function Oi(e, t, n) {
|
|
228
|
-
const o = `<xml><block type="parameter_v1"><mutation key="${t}" name="${n}"/></block></xml>`, i = I.xml.textToDom(o), s =
|
|
230
|
+
const o = `<xml><block type="parameter_v1"><mutation key="${t}" name="${n}"/></block></xml>`, i = I.xml.textToDom(o), s = Gr.domToWorkspace(i, e);
|
|
229
231
|
return e.getBlockById(s[0]);
|
|
230
232
|
}
|
|
231
233
|
function Ze(e, t) {
|
|
@@ -353,7 +355,7 @@ U.parameter_v1 = gl;
|
|
|
353
355
|
l.forBlock.parameter_v1 = function(e) {
|
|
354
356
|
return [e.key, u.ATOMIC];
|
|
355
357
|
};
|
|
356
|
-
var
|
|
358
|
+
var ca = typeof global == "object" && global && global.Object === Object && global, Tl = typeof self == "object" && self && self.Object === Object && self, et = ca || Tl || Function("return this")(), vt = et.Symbol, ua = Object.prototype, ml = ua.hasOwnProperty, El = ua.toString, en = vt ? vt.toStringTag : void 0;
|
|
357
359
|
function Al(e) {
|
|
358
360
|
var t = ml.call(e, en), n = e[en];
|
|
359
361
|
try {
|
|
@@ -381,7 +383,7 @@ function vn(e) {
|
|
|
381
383
|
return e != null && (t == "object" || t == "function");
|
|
382
384
|
}
|
|
383
385
|
var Cl = "[object AsyncFunction]", Sl = "[object Function]", Ll = "[object GeneratorFunction]", Nl = "[object Proxy]";
|
|
384
|
-
function
|
|
386
|
+
function _a(e) {
|
|
385
387
|
if (!vn(e))
|
|
386
388
|
return !1;
|
|
387
389
|
var t = An(e);
|
|
@@ -414,7 +416,7 @@ var Dl = /[\\^$.*+?()[\]{}|]/g, Ml = /^\[object .+?Constructor\]$/, Pl = Functio
|
|
|
414
416
|
function Fl(e) {
|
|
415
417
|
if (!vn(e) || kl(e))
|
|
416
418
|
return !1;
|
|
417
|
-
var t =
|
|
419
|
+
var t = _a(e) ? Vl : Ml;
|
|
418
420
|
return t.test(Rt(e));
|
|
419
421
|
}
|
|
420
422
|
function Yl(e, t) {
|
|
@@ -460,7 +462,7 @@ function Wl(e, t) {
|
|
|
460
462
|
var n = typeof e;
|
|
461
463
|
return t = t ?? Gl, !!t && (n == "number" || n != "symbol" && jl.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
462
464
|
}
|
|
463
|
-
function
|
|
465
|
+
function pa(e, t, n) {
|
|
464
466
|
t == "__proto__" && es ? es(e, t, {
|
|
465
467
|
configurable: !0,
|
|
466
468
|
enumerable: !0,
|
|
@@ -472,25 +474,25 @@ function Ii(e, t) {
|
|
|
472
474
|
return e === t || e !== e && t !== t;
|
|
473
475
|
}
|
|
474
476
|
var Xl = Object.prototype, zl = Xl.hasOwnProperty;
|
|
475
|
-
function
|
|
477
|
+
function da(e, t, n) {
|
|
476
478
|
var o = e[t];
|
|
477
|
-
(!(zl.call(e, t) && Ii(o, n)) || n === void 0 && !(t in e)) &&
|
|
479
|
+
(!(zl.call(e, t) && Ii(o, n)) || n === void 0 && !(t in e)) && pa(e, t, n);
|
|
478
480
|
}
|
|
479
481
|
function fo(e, t, n, o) {
|
|
480
482
|
var i = !n;
|
|
481
483
|
n || (n = {});
|
|
482
484
|
for (var s = -1, a = t.length; ++s < a; ) {
|
|
483
485
|
var r = t[s], c = void 0;
|
|
484
|
-
c === void 0 && (c = e[r]), i ?
|
|
486
|
+
c === void 0 && (c = e[r]), i ? pa(n, r, c) : da(n, r, c);
|
|
485
487
|
}
|
|
486
488
|
return n;
|
|
487
489
|
}
|
|
488
490
|
var Jl = 9007199254740991;
|
|
489
|
-
function
|
|
491
|
+
function fa(e) {
|
|
490
492
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Jl;
|
|
491
493
|
}
|
|
492
494
|
function yi(e) {
|
|
493
|
-
return e != null &&
|
|
495
|
+
return e != null && fa(e.length) && !_a(e);
|
|
494
496
|
}
|
|
495
497
|
var ql = Object.prototype;
|
|
496
498
|
function ho(e) {
|
|
@@ -506,7 +508,7 @@ var Zl = "[object Arguments]";
|
|
|
506
508
|
function ts(e) {
|
|
507
509
|
return Nt(e) && An(e) == Zl;
|
|
508
510
|
}
|
|
509
|
-
var
|
|
511
|
+
var ha = Object.prototype, ec = ha.hasOwnProperty, tc = ha.propertyIsEnumerable, ga = ts(/* @__PURE__ */ function() {
|
|
510
512
|
return arguments;
|
|
511
513
|
}()) ? ts : function(e) {
|
|
512
514
|
return Nt(e) && ec.call(e, "callee") && !tc.call(e, "callee");
|
|
@@ -514,26 +516,26 @@ var fa = Object.prototype, ec = fa.hasOwnProperty, tc = fa.propertyIsEnumerable,
|
|
|
514
516
|
function nc() {
|
|
515
517
|
return !1;
|
|
516
518
|
}
|
|
517
|
-
var
|
|
519
|
+
var Ta = typeof exports == "object" && exports && !exports.nodeType && exports, ns = Ta && typeof module == "object" && module && !module.nodeType && module, oc = ns && ns.exports === Ta, os = oc ? et.Buffer : void 0, ic = os ? os.isBuffer : void 0, fn = ic || nc, sc = "[object Arguments]", ac = "[object Array]", rc = "[object Boolean]", lc = "[object Date]", cc = "[object Error]", uc = "[object Function]", _c = "[object Map]", pc = "[object Number]", dc = "[object Object]", fc = "[object RegExp]", hc = "[object Set]", gc = "[object String]", Tc = "[object WeakMap]", mc = "[object ArrayBuffer]", Ec = "[object DataView]", Ac = "[object Float32Array]", vc = "[object Float64Array]", bc = "[object Int8Array]", Oc = "[object Int16Array]", Ic = "[object Int32Array]", yc = "[object Uint8Array]", Cc = "[object Uint8ClampedArray]", Sc = "[object Uint16Array]", Lc = "[object Uint32Array]", ie = {};
|
|
518
520
|
ie[Ac] = ie[vc] = ie[bc] = ie[Oc] = ie[Ic] = ie[yc] = ie[Cc] = ie[Sc] = ie[Lc] = !0;
|
|
519
521
|
ie[sc] = ie[ac] = ie[mc] = ie[rc] = ie[Ec] = ie[lc] = ie[cc] = ie[uc] = ie[_c] = ie[pc] = ie[dc] = ie[fc] = ie[hc] = ie[gc] = ie[Tc] = !1;
|
|
520
522
|
function Nc(e) {
|
|
521
|
-
return Nt(e) &&
|
|
523
|
+
return Nt(e) && fa(e.length) && !!ie[An(e)];
|
|
522
524
|
}
|
|
523
525
|
function Ci(e) {
|
|
524
526
|
return function(t) {
|
|
525
527
|
return e(t);
|
|
526
528
|
};
|
|
527
529
|
}
|
|
528
|
-
var
|
|
530
|
+
var ma = typeof exports == "object" && exports && !exports.nodeType && exports, ln = ma && typeof module == "object" && module && !module.nodeType && module, kc = ln && ln.exports === ma, wo = kc && ca.process, zt = function() {
|
|
529
531
|
try {
|
|
530
532
|
var e = ln && ln.require && ln.require("util").types;
|
|
531
533
|
return e || wo && wo.binding && wo.binding("util");
|
|
532
534
|
} catch {
|
|
533
535
|
}
|
|
534
536
|
}(), is = zt && zt.isTypedArray, Si = is ? Ci(is) : Nc, Bc = Object.prototype, Rc = Bc.hasOwnProperty;
|
|
535
|
-
function
|
|
536
|
-
var n = Xt(e), o = !n &&
|
|
537
|
+
function Ea(e, t) {
|
|
538
|
+
var n = Xt(e), o = !n && ga(e), i = !n && !o && fn(e), s = !n && !o && !i && Si(e), a = n || o || i || s, r = a ? Ql(e.length, String) : [], c = r.length;
|
|
537
539
|
for (var _ in e)
|
|
538
540
|
(t || Rc.call(e, _)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
539
541
|
(_ == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -542,13 +544,13 @@ function ma(e, t) {
|
|
|
542
544
|
Wl(_, c))) && r.push(_);
|
|
543
545
|
return r;
|
|
544
546
|
}
|
|
545
|
-
function
|
|
547
|
+
function Aa(e, t) {
|
|
546
548
|
return function(n) {
|
|
547
549
|
return e(t(n));
|
|
548
550
|
};
|
|
549
551
|
}
|
|
550
|
-
var Dc =
|
|
551
|
-
function
|
|
552
|
+
var Dc = Aa(Object.keys, Object), Mc = Object.prototype, Pc = Mc.hasOwnProperty;
|
|
553
|
+
function va(e) {
|
|
552
554
|
if (!ho(e))
|
|
553
555
|
return Dc(e);
|
|
554
556
|
var t = [];
|
|
@@ -557,7 +559,7 @@ function Aa(e) {
|
|
|
557
559
|
return t;
|
|
558
560
|
}
|
|
559
561
|
function Li(e) {
|
|
560
|
-
return yi(e) ?
|
|
562
|
+
return yi(e) ? Ea(e) : va(e);
|
|
561
563
|
}
|
|
562
564
|
function xc(e) {
|
|
563
565
|
var t = [];
|
|
@@ -576,7 +578,7 @@ function Vc(e) {
|
|
|
576
578
|
return n;
|
|
577
579
|
}
|
|
578
580
|
function Ni(e) {
|
|
579
|
-
return yi(e) ?
|
|
581
|
+
return yi(e) ? Ea(e, !0) : Vc(e);
|
|
580
582
|
}
|
|
581
583
|
var hn = Dt(Object, "create");
|
|
582
584
|
function Fc() {
|
|
@@ -699,12 +701,12 @@ Mt.prototype.delete = au;
|
|
|
699
701
|
Mt.prototype.get = ru;
|
|
700
702
|
Mt.prototype.has = lu;
|
|
701
703
|
Mt.prototype.set = cu;
|
|
702
|
-
function
|
|
704
|
+
function ba(e, t) {
|
|
703
705
|
for (var n = -1, o = t.length, i = e.length; ++n < o; )
|
|
704
706
|
e[i + n] = t[n];
|
|
705
707
|
return e;
|
|
706
708
|
}
|
|
707
|
-
var
|
|
709
|
+
var Oa = Aa(Object.getPrototypeOf, Object);
|
|
708
710
|
function uu() {
|
|
709
711
|
this.__data__ = new ct(), this.size = 0;
|
|
710
712
|
}
|
|
@@ -744,7 +746,7 @@ function gu(e, t) {
|
|
|
744
746
|
function Tu(e, t) {
|
|
745
747
|
return e && fo(t, Ni(t), e);
|
|
746
748
|
}
|
|
747
|
-
var
|
|
749
|
+
var Ia = typeof exports == "object" && exports && !exports.nodeType && exports, ss = Ia && typeof module == "object" && module && !module.nodeType && module, mu = ss && ss.exports === Ia, as = mu ? et.Buffer : void 0, rs = as ? as.allocUnsafe : void 0;
|
|
748
750
|
function Eu(e, t) {
|
|
749
751
|
if (t)
|
|
750
752
|
return e.slice();
|
|
@@ -758,34 +760,34 @@ function Au(e, t) {
|
|
|
758
760
|
}
|
|
759
761
|
return s;
|
|
760
762
|
}
|
|
761
|
-
function
|
|
763
|
+
function ya() {
|
|
762
764
|
return [];
|
|
763
765
|
}
|
|
764
766
|
var vu = Object.prototype, bu = vu.propertyIsEnumerable, ls = Object.getOwnPropertySymbols, ki = ls ? function(e) {
|
|
765
767
|
return e == null ? [] : (e = Object(e), Au(ls(e), function(t) {
|
|
766
768
|
return bu.call(e, t);
|
|
767
769
|
}));
|
|
768
|
-
} :
|
|
770
|
+
} : ya;
|
|
769
771
|
function Ou(e, t) {
|
|
770
772
|
return fo(e, ki(e), t);
|
|
771
773
|
}
|
|
772
|
-
var Iu = Object.getOwnPropertySymbols,
|
|
774
|
+
var Iu = Object.getOwnPropertySymbols, Ca = Iu ? function(e) {
|
|
773
775
|
for (var t = []; e; )
|
|
774
|
-
|
|
776
|
+
ba(t, ki(e)), e = Oa(e);
|
|
775
777
|
return t;
|
|
776
|
-
} :
|
|
778
|
+
} : ya;
|
|
777
779
|
function yu(e, t) {
|
|
778
|
-
return fo(e,
|
|
780
|
+
return fo(e, Ca(e), t);
|
|
779
781
|
}
|
|
780
|
-
function
|
|
782
|
+
function Sa(e, t, n) {
|
|
781
783
|
var o = t(e);
|
|
782
|
-
return Xt(e) ? o :
|
|
784
|
+
return Xt(e) ? o : ba(o, n(e));
|
|
783
785
|
}
|
|
784
786
|
function si(e) {
|
|
785
|
-
return
|
|
787
|
+
return Sa(e, Li, ki);
|
|
786
788
|
}
|
|
787
789
|
function Cu(e) {
|
|
788
|
-
return
|
|
790
|
+
return Sa(e, Ni, Ca);
|
|
789
791
|
}
|
|
790
792
|
var ai = Dt(et, "DataView"), ri = Dt(et, "Promise"), li = Dt(et, "Set"), cs = "[object Map]", Su = "[object Object]", us = "[object Promise]", _s = "[object Set]", ps = "[object WeakMap]", ds = "[object DataView]", Lu = Rt(ai), Nu = Rt(gn), ku = Rt(ri), Bu = Rt(li), Ru = Rt(ii), we = An;
|
|
791
793
|
(ai && we(new ai(new ArrayBuffer(1))) != ds || gn && we(new gn()) != cs || ri && we(ri.resolve()) != us || li && we(new li()) != _s || ii && we(new ii()) != ps) && (we = function(e) {
|
|
@@ -867,7 +869,7 @@ function a_(e, t, n) {
|
|
|
867
869
|
}
|
|
868
870
|
}
|
|
869
871
|
function r_(e) {
|
|
870
|
-
return typeof e.constructor == "function" && !ho(e) ? Kl(
|
|
872
|
+
return typeof e.constructor == "function" && !ho(e) ? Kl(Oa(e)) : {};
|
|
871
873
|
}
|
|
872
874
|
var l_ = "[object Map]";
|
|
873
875
|
function c_(e) {
|
|
@@ -877,44 +879,44 @@ var gs = zt && zt.isMap, u_ = gs ? Ci(gs) : c_, __ = "[object Set]";
|
|
|
877
879
|
function p_(e) {
|
|
878
880
|
return Nt(e) && we(e) == __;
|
|
879
881
|
}
|
|
880
|
-
var Ts = zt && zt.isSet, d_ = Ts ? Ci(Ts) : p_, f_ = 1, h_ = 2, g_ = 4,
|
|
881
|
-
Z[
|
|
882
|
-
Z[A_] = Z[
|
|
882
|
+
var Ts = zt && zt.isSet, d_ = Ts ? Ci(Ts) : p_, f_ = 1, h_ = 2, g_ = 4, La = "[object Arguments]", T_ = "[object Array]", m_ = "[object Boolean]", E_ = "[object Date]", A_ = "[object Error]", Na = "[object Function]", v_ = "[object GeneratorFunction]", b_ = "[object Map]", O_ = "[object Number]", ka = "[object Object]", I_ = "[object RegExp]", y_ = "[object Set]", C_ = "[object String]", S_ = "[object Symbol]", L_ = "[object WeakMap]", N_ = "[object ArrayBuffer]", k_ = "[object DataView]", B_ = "[object Float32Array]", R_ = "[object Float64Array]", D_ = "[object Int8Array]", M_ = "[object Int16Array]", P_ = "[object Int32Array]", x_ = "[object Uint8Array]", U_ = "[object Uint8ClampedArray]", w_ = "[object Uint16Array]", V_ = "[object Uint32Array]", Z = {};
|
|
883
|
+
Z[La] = Z[T_] = Z[N_] = Z[k_] = Z[m_] = Z[E_] = Z[B_] = Z[R_] = Z[D_] = Z[M_] = Z[P_] = Z[b_] = Z[O_] = Z[ka] = Z[I_] = Z[y_] = Z[C_] = Z[S_] = Z[x_] = Z[U_] = Z[w_] = Z[V_] = !0;
|
|
884
|
+
Z[A_] = Z[Na] = Z[L_] = !1;
|
|
883
885
|
function Vn(e, t, n, o, i, s) {
|
|
884
886
|
var a, r = t & f_, c = t & h_, _ = t & g_;
|
|
885
887
|
if (a !== void 0)
|
|
886
888
|
return a;
|
|
887
889
|
if (!vn(e))
|
|
888
890
|
return e;
|
|
889
|
-
var
|
|
890
|
-
if (
|
|
891
|
+
var p = Xt(e);
|
|
892
|
+
if (p) {
|
|
891
893
|
if (a = Pu(e), !r)
|
|
892
894
|
return Hl(e, a);
|
|
893
895
|
} else {
|
|
894
|
-
var
|
|
896
|
+
var d = we(e), f = d == Na || d == v_;
|
|
895
897
|
if (fn(e))
|
|
896
898
|
return Eu(e, r);
|
|
897
|
-
if (
|
|
899
|
+
if (d == ka || d == La || f && !i) {
|
|
898
900
|
if (a = c || f ? {} : r_(e), !r)
|
|
899
901
|
return c ? yu(e, Tu(a, e)) : Ou(e, gu(a, e));
|
|
900
902
|
} else {
|
|
901
|
-
if (!Z[
|
|
903
|
+
if (!Z[d])
|
|
902
904
|
return i ? e : {};
|
|
903
|
-
a = a_(e,
|
|
905
|
+
a = a_(e, d, r);
|
|
904
906
|
}
|
|
905
907
|
}
|
|
906
908
|
s || (s = new it());
|
|
907
909
|
var g = s.get(e);
|
|
908
910
|
if (g)
|
|
909
911
|
return g;
|
|
910
|
-
s.set(e, a), d_(e) ? e.forEach(function(
|
|
911
|
-
a.add(Vn(
|
|
912
|
-
}) : u_(e) && e.forEach(function(
|
|
913
|
-
a.set(
|
|
912
|
+
s.set(e, a), d_(e) ? e.forEach(function(C) {
|
|
913
|
+
a.add(Vn(C, t, n, C, e, s));
|
|
914
|
+
}) : u_(e) && e.forEach(function(C, S) {
|
|
915
|
+
a.set(S, Vn(C, t, n, S, e, s));
|
|
914
916
|
});
|
|
915
|
-
var b = _ ? c ? Cu : si : c ? Ni : Li, E =
|
|
916
|
-
return $l(E || e, function(
|
|
917
|
-
E && (
|
|
917
|
+
var b = _ ? c ? Cu : si : c ? Ni : Li, E = p ? void 0 : b(e);
|
|
918
|
+
return $l(E || e, function(C, S) {
|
|
919
|
+
E && (S = C, C = e[S]), da(a, S, Vn(C, t, n, S, e, s));
|
|
918
920
|
}), a;
|
|
919
921
|
}
|
|
920
922
|
var F_ = 1, Y_ = 4;
|
|
@@ -945,27 +947,27 @@ function W_(e, t) {
|
|
|
945
947
|
return e.has(t);
|
|
946
948
|
}
|
|
947
949
|
var X_ = 1, z_ = 2;
|
|
948
|
-
function
|
|
950
|
+
function Ba(e, t, n, o, i, s) {
|
|
949
951
|
var a = n & X_, r = e.length, c = t.length;
|
|
950
952
|
if (r != c && !(a && c > r))
|
|
951
953
|
return !1;
|
|
952
|
-
var _ = s.get(e),
|
|
953
|
-
if (_ &&
|
|
954
|
-
return _ == t &&
|
|
955
|
-
var
|
|
956
|
-
for (s.set(e, t), s.set(t, e); ++
|
|
957
|
-
var b = e[
|
|
954
|
+
var _ = s.get(e), p = s.get(t);
|
|
955
|
+
if (_ && p)
|
|
956
|
+
return _ == t && p == e;
|
|
957
|
+
var d = -1, f = !0, g = n & z_ ? new zn() : void 0;
|
|
958
|
+
for (s.set(e, t), s.set(t, e); ++d < r; ) {
|
|
959
|
+
var b = e[d], E = t[d];
|
|
958
960
|
if (o)
|
|
959
|
-
var
|
|
960
|
-
if (
|
|
961
|
-
if (
|
|
961
|
+
var C = a ? o(E, b, d, t, e, s) : o(b, E, d, e, t, s);
|
|
962
|
+
if (C !== void 0) {
|
|
963
|
+
if (C)
|
|
962
964
|
continue;
|
|
963
965
|
f = !1;
|
|
964
966
|
break;
|
|
965
967
|
}
|
|
966
968
|
if (g) {
|
|
967
|
-
if (!j_(t, function(
|
|
968
|
-
if (!W_(g, F) && (b ===
|
|
969
|
+
if (!j_(t, function(S, F) {
|
|
970
|
+
if (!W_(g, F) && (b === S || i(b, S, n, o, s)))
|
|
969
971
|
return g.push(F);
|
|
970
972
|
})) {
|
|
971
973
|
f = !1;
|
|
@@ -1018,8 +1020,8 @@ function _p(e, t, n, o, i, s, a) {
|
|
|
1018
1020
|
if (_)
|
|
1019
1021
|
return _ == t;
|
|
1020
1022
|
o |= Z_, a.set(e, t);
|
|
1021
|
-
var
|
|
1022
|
-
return a.delete(e),
|
|
1023
|
+
var p = Ba(r(e), r(t), o, i, s, a);
|
|
1024
|
+
return a.delete(e), p;
|
|
1023
1025
|
case lp:
|
|
1024
1026
|
if (Vo)
|
|
1025
1027
|
return Vo.call(e) == Vo.call(t);
|
|
@@ -1028,11 +1030,11 @@ function _p(e, t, n, o, i, s, a) {
|
|
|
1028
1030
|
}
|
|
1029
1031
|
var pp = 1, dp = Object.prototype, fp = dp.hasOwnProperty;
|
|
1030
1032
|
function hp(e, t, n, o, i, s) {
|
|
1031
|
-
var a = n & pp, r = si(e), c = r.length, _ = si(t),
|
|
1032
|
-
if (c !=
|
|
1033
|
+
var a = n & pp, r = si(e), c = r.length, _ = si(t), p = _.length;
|
|
1034
|
+
if (c != p && !a)
|
|
1033
1035
|
return !1;
|
|
1034
|
-
for (var
|
|
1035
|
-
var f = r[
|
|
1036
|
+
for (var d = c; d--; ) {
|
|
1037
|
+
var f = r[d];
|
|
1036
1038
|
if (!(a ? f in t : fp.call(t, f)))
|
|
1037
1039
|
return !1;
|
|
1038
1040
|
}
|
|
@@ -1041,20 +1043,20 @@ function hp(e, t, n, o, i, s) {
|
|
|
1041
1043
|
return g == t && b == e;
|
|
1042
1044
|
var E = !0;
|
|
1043
1045
|
s.set(e, t), s.set(t, e);
|
|
1044
|
-
for (var
|
|
1045
|
-
f = r[
|
|
1046
|
-
var
|
|
1046
|
+
for (var C = a; ++d < c; ) {
|
|
1047
|
+
f = r[d];
|
|
1048
|
+
var S = e[f], F = t[f];
|
|
1047
1049
|
if (o)
|
|
1048
|
-
var H = a ? o(F,
|
|
1049
|
-
if (!(H === void 0 ?
|
|
1050
|
+
var H = a ? o(F, S, f, t, e, s) : o(S, F, f, e, t, s);
|
|
1051
|
+
if (!(H === void 0 ? S === F || i(S, F, n, o, s) : H)) {
|
|
1050
1052
|
E = !1;
|
|
1051
1053
|
break;
|
|
1052
1054
|
}
|
|
1053
|
-
|
|
1055
|
+
C || (C = f == "constructor");
|
|
1054
1056
|
}
|
|
1055
|
-
if (E && !
|
|
1056
|
-
var te = e.constructor,
|
|
1057
|
-
te !=
|
|
1057
|
+
if (E && !C) {
|
|
1058
|
+
var te = e.constructor, G = t.constructor;
|
|
1059
|
+
te != G && "constructor" in e && "constructor" in t && !(typeof te == "function" && te instanceof te && typeof G == "function" && G instanceof G) && (E = !1);
|
|
1058
1060
|
}
|
|
1059
1061
|
return s.delete(e), s.delete(t), E;
|
|
1060
1062
|
}
|
|
@@ -1062,44 +1064,44 @@ var gp = 1, Es = "[object Arguments]", As = "[object Array]", Bn = "[object Obje
|
|
|
1062
1064
|
function mp(e, t, n, o, i, s) {
|
|
1063
1065
|
var a = Xt(e), r = Xt(t), c = a ? As : we(e), _ = r ? As : we(t);
|
|
1064
1066
|
c = c == Es ? Bn : c, _ = _ == Es ? Bn : _;
|
|
1065
|
-
var
|
|
1067
|
+
var p = c == Bn, d = _ == Bn, f = c == _;
|
|
1066
1068
|
if (f && fn(e)) {
|
|
1067
1069
|
if (!fn(t))
|
|
1068
1070
|
return !1;
|
|
1069
|
-
a = !0,
|
|
1071
|
+
a = !0, p = !1;
|
|
1070
1072
|
}
|
|
1071
|
-
if (f && !
|
|
1072
|
-
return s || (s = new it()), a || Si(e) ?
|
|
1073
|
+
if (f && !p)
|
|
1074
|
+
return s || (s = new it()), a || Si(e) ? Ba(e, t, n, o, i, s) : _p(e, t, c, n, o, i, s);
|
|
1073
1075
|
if (!(n & gp)) {
|
|
1074
|
-
var g =
|
|
1076
|
+
var g = p && vs.call(e, "__wrapped__"), b = d && vs.call(t, "__wrapped__");
|
|
1075
1077
|
if (g || b) {
|
|
1076
|
-
var E = g ? e.value() : e,
|
|
1077
|
-
return s || (s = new it()), i(E,
|
|
1078
|
+
var E = g ? e.value() : e, C = b ? t.value() : t;
|
|
1079
|
+
return s || (s = new it()), i(E, C, n, o, s);
|
|
1078
1080
|
}
|
|
1079
1081
|
}
|
|
1080
1082
|
return f ? (s || (s = new it()), hp(e, t, n, o, i, s)) : !1;
|
|
1081
1083
|
}
|
|
1082
|
-
function
|
|
1083
|
-
return e === t ? !0 : e == null || t == null || !Nt(e) && !Nt(t) ? e !== e && t !== t : mp(e, t, n, o,
|
|
1084
|
+
function Ra(e, t, n, o, i) {
|
|
1085
|
+
return e === t ? !0 : e == null || t == null || !Nt(e) && !Nt(t) ? e !== e && t !== t : mp(e, t, n, o, Ra, i);
|
|
1084
1086
|
}
|
|
1085
1087
|
var Ep = "[object Map]", Ap = "[object Set]", vp = Object.prototype, bp = vp.hasOwnProperty;
|
|
1086
1088
|
function ci(e) {
|
|
1087
1089
|
if (e == null)
|
|
1088
1090
|
return !0;
|
|
1089
|
-
if (yi(e) && (Xt(e) || typeof e == "string" || typeof e.splice == "function" || fn(e) || Si(e) ||
|
|
1091
|
+
if (yi(e) && (Xt(e) || typeof e == "string" || typeof e.splice == "function" || fn(e) || Si(e) || ga(e)))
|
|
1090
1092
|
return !e.length;
|
|
1091
1093
|
var t = we(e);
|
|
1092
1094
|
if (t == Ep || t == Ap)
|
|
1093
1095
|
return !e.size;
|
|
1094
1096
|
if (ho(e))
|
|
1095
|
-
return !
|
|
1097
|
+
return !va(e).length;
|
|
1096
1098
|
for (var n in e)
|
|
1097
1099
|
if (bp.call(e, n))
|
|
1098
1100
|
return !1;
|
|
1099
1101
|
return !0;
|
|
1100
1102
|
}
|
|
1101
1103
|
function at(e, t) {
|
|
1102
|
-
return
|
|
1104
|
+
return Ra(e, t);
|
|
1103
1105
|
}
|
|
1104
1106
|
function Op() {
|
|
1105
1107
|
return {
|
|
@@ -1151,7 +1153,7 @@ function Lp() {
|
|
|
1151
1153
|
props: {}
|
|
1152
1154
|
};
|
|
1153
1155
|
}
|
|
1154
|
-
function
|
|
1156
|
+
function Rg() {
|
|
1155
1157
|
const e = {};
|
|
1156
1158
|
for (const t in Je) {
|
|
1157
1159
|
const n = {}, o = Je[t];
|
|
@@ -1184,7 +1186,7 @@ function Np(e) {
|
|
|
1184
1186
|
n(o, "", "");
|
|
1185
1187
|
}), t;
|
|
1186
1188
|
}
|
|
1187
|
-
const
|
|
1189
|
+
const Q = function() {
|
|
1188
1190
|
return window.blocklyState || (window.blocklyState = {
|
|
1189
1191
|
base: Ip(),
|
|
1190
1192
|
runtime: Lp(),
|
|
@@ -1195,7 +1197,7 @@ const q = function() {
|
|
|
1195
1197
|
}), window.blocklyState;
|
|
1196
1198
|
}();
|
|
1197
1199
|
function Ri() {
|
|
1198
|
-
const { spaces: e, funcs: t } =
|
|
1200
|
+
const { spaces: e, funcs: t } = Q.compute, n = [];
|
|
1199
1201
|
for (const o in e) {
|
|
1200
1202
|
const i = e[o];
|
|
1201
1203
|
let s = !1;
|
|
@@ -1208,44 +1210,44 @@ function Ri() {
|
|
|
1208
1210
|
}
|
|
1209
1211
|
return n.sort((o, i) => o.sort - i.sort), n;
|
|
1210
1212
|
}
|
|
1211
|
-
function
|
|
1212
|
-
return
|
|
1213
|
+
function Da(e) {
|
|
1214
|
+
return Q.compute.spaces[e];
|
|
1213
1215
|
}
|
|
1214
|
-
function
|
|
1216
|
+
function Ma() {
|
|
1215
1217
|
const e = [];
|
|
1216
1218
|
return Ri().forEach((n) => {
|
|
1217
1219
|
e.push([n.name, n.id]);
|
|
1218
|
-
}),
|
|
1220
|
+
}), ke(e);
|
|
1219
1221
|
}
|
|
1220
1222
|
function Di(e) {
|
|
1221
|
-
const { funcs: t } =
|
|
1223
|
+
const { funcs: t } = Q.compute, n = [];
|
|
1222
1224
|
for (const o in t) {
|
|
1223
1225
|
const i = t[o];
|
|
1224
1226
|
i.spaceid === e && n.push(i);
|
|
1225
1227
|
}
|
|
1226
1228
|
return n.sort((o, i) => o.sort - i.sort), n;
|
|
1227
1229
|
}
|
|
1228
|
-
function Ma(e) {
|
|
1229
|
-
return q.compute.funcs[e];
|
|
1230
|
-
}
|
|
1231
1230
|
function Pa(e) {
|
|
1231
|
+
return Q.compute.funcs[e];
|
|
1232
|
+
}
|
|
1233
|
+
function xa(e) {
|
|
1232
1234
|
const t = [];
|
|
1233
1235
|
return Di(e).forEach((o) => {
|
|
1234
1236
|
t.push([o.name, o.id]);
|
|
1235
|
-
}),
|
|
1237
|
+
}), ke(t);
|
|
1236
1238
|
}
|
|
1237
1239
|
function ui() {
|
|
1238
|
-
return
|
|
1240
|
+
return Q.compute.activeFunc;
|
|
1239
1241
|
}
|
|
1240
1242
|
function bs(e) {
|
|
1241
|
-
const { outputs: t } =
|
|
1243
|
+
const { outputs: t } = Q.compute.activeFunc;
|
|
1242
1244
|
return t.find((n) => n.id === e);
|
|
1243
1245
|
}
|
|
1244
1246
|
function kp() {
|
|
1245
|
-
const e = [], { outputs: t } =
|
|
1247
|
+
const e = [], { outputs: t } = Q.compute.activeFunc;
|
|
1246
1248
|
return t.forEach(({ id: n, name: o }) => {
|
|
1247
1249
|
e.push([o, n]);
|
|
1248
|
-
}),
|
|
1250
|
+
}), ke(e);
|
|
1249
1251
|
}
|
|
1250
1252
|
const Bp = {
|
|
1251
1253
|
init: function() {
|
|
@@ -1292,10 +1294,10 @@ const Bp = {
|
|
|
1292
1294
|
}, 0);
|
|
1293
1295
|
},
|
|
1294
1296
|
genSpaceOpts_: function() {
|
|
1295
|
-
return
|
|
1297
|
+
return Ma();
|
|
1296
1298
|
},
|
|
1297
1299
|
genFuncOpts_: function() {
|
|
1298
|
-
return
|
|
1300
|
+
return xa(this.space.id);
|
|
1299
1301
|
},
|
|
1300
1302
|
onchange: function() {
|
|
1301
1303
|
setTimeout(() => {
|
|
@@ -1337,7 +1339,7 @@ const Bp = {
|
|
|
1337
1339
|
n = { type: "boolean", default: !1 };
|
|
1338
1340
|
else
|
|
1339
1341
|
continue;
|
|
1340
|
-
this.getInput("INPUT" + e).connection.setShadowDom(
|
|
1342
|
+
this.getInput("INPUT" + e).connection.setShadowDom(Le(n));
|
|
1341
1343
|
}
|
|
1342
1344
|
},
|
|
1343
1345
|
rebuildBlocks_: function() {
|
|
@@ -1351,13 +1353,13 @@ const Bp = {
|
|
|
1351
1353
|
Ze(this, e);
|
|
1352
1354
|
},
|
|
1353
1355
|
checkWarning_: function() {
|
|
1354
|
-
const e =
|
|
1356
|
+
const e = Da(this.space.id);
|
|
1355
1357
|
if (!e) {
|
|
1356
1358
|
this.setWarningText(v.WARN_SPACE_NOT_AVAILABLE);
|
|
1357
1359
|
return;
|
|
1358
1360
|
}
|
|
1359
1361
|
e.name !== this.space.name && (this.space.name = e.name);
|
|
1360
|
-
const t =
|
|
1362
|
+
const t = Pa(this.func.id);
|
|
1361
1363
|
if (!t) {
|
|
1362
1364
|
this.setWarningText(v.WARN_FUNC_NOT_AVAILABLE);
|
|
1363
1365
|
return;
|
|
@@ -1386,11 +1388,11 @@ l.forBlock.call_func_v1 = function(e) {
|
|
|
1386
1388
|
_ += `${t}${f} = result[${g}];
|
|
1387
1389
|
`;
|
|
1388
1390
|
});
|
|
1389
|
-
const
|
|
1391
|
+
const p = l.statementToCode(o, "CALLBACK");
|
|
1390
1392
|
return `{
|
|
1391
1393
|
var result = __callFuncV1__(${i}, ${s}, ${r}, __getEnv__(), ${c});
|
|
1392
1394
|
${_}
|
|
1393
|
-
${
|
|
1395
|
+
${p}
|
|
1394
1396
|
}
|
|
1395
1397
|
`;
|
|
1396
1398
|
};
|
|
@@ -1436,10 +1438,10 @@ const Rp = {
|
|
|
1436
1438
|
}, 0);
|
|
1437
1439
|
},
|
|
1438
1440
|
genSpaceOpts_: function() {
|
|
1439
|
-
return
|
|
1441
|
+
return Ma();
|
|
1440
1442
|
},
|
|
1441
1443
|
genFuncOpts_: function() {
|
|
1442
|
-
return
|
|
1444
|
+
return xa(this.space.id);
|
|
1443
1445
|
},
|
|
1444
1446
|
onchange: function() {
|
|
1445
1447
|
setTimeout(() => {
|
|
@@ -1481,7 +1483,7 @@ const Rp = {
|
|
|
1481
1483
|
n = { type: "boolean", default: !1 };
|
|
1482
1484
|
else
|
|
1483
1485
|
continue;
|
|
1484
|
-
this.getInput("INPUT" + e).connection.setShadowDom(
|
|
1486
|
+
this.getInput("INPUT" + e).connection.setShadowDom(Le(n));
|
|
1485
1487
|
}
|
|
1486
1488
|
},
|
|
1487
1489
|
rebuildBlocks_: function() {
|
|
@@ -1495,13 +1497,13 @@ const Rp = {
|
|
|
1495
1497
|
Ze(this, e);
|
|
1496
1498
|
},
|
|
1497
1499
|
checkWarning_: function() {
|
|
1498
|
-
const e =
|
|
1500
|
+
const e = Da(this.space.id);
|
|
1499
1501
|
if (!e) {
|
|
1500
1502
|
this.setWarningText(v.WARN_SPACE_NOT_AVAILABLE);
|
|
1501
1503
|
return;
|
|
1502
1504
|
}
|
|
1503
1505
|
e.name !== this.space.name && (this.space.name = e.name);
|
|
1504
|
-
const t =
|
|
1506
|
+
const t = Pa(this.func.id);
|
|
1505
1507
|
if (!t) {
|
|
1506
1508
|
this.setWarningText(v.WARN_FUNC_NOT_AVAILABLE);
|
|
1507
1509
|
return;
|
|
@@ -1530,7 +1532,7 @@ l.forBlock.call_func_internal_v1 = function(e) {
|
|
|
1530
1532
|
_ += `${t}${f} = result[${g}];
|
|
1531
1533
|
`;
|
|
1532
1534
|
});
|
|
1533
|
-
const
|
|
1535
|
+
const p = l.statementToCode(o, "CALLBACK");
|
|
1534
1536
|
return `{
|
|
1535
1537
|
var result = __callFuncInternalV1__(${i}, ${s}, ${r});
|
|
1536
1538
|
var success = result.success;
|
|
@@ -1540,7 +1542,7 @@ l.forBlock.call_func_internal_v1 = function(e) {
|
|
|
1540
1542
|
throw 'call func<${c}> failed, reason: ' + message;
|
|
1541
1543
|
}
|
|
1542
1544
|
${_}
|
|
1543
|
-
${
|
|
1545
|
+
${p}
|
|
1544
1546
|
}
|
|
1545
1547
|
`;
|
|
1546
1548
|
};
|
|
@@ -1706,7 +1708,7 @@ const Pp = {
|
|
|
1706
1708
|
return;
|
|
1707
1709
|
let e = null;
|
|
1708
1710
|
const t = this.output.type;
|
|
1709
|
-
t === "string" ? e =
|
|
1711
|
+
t === "string" ? e = Le({ type: "string", default: "" }) : t === "number" ? e = Le({ type: "number", default: 0 }) : t === "boolean" && (e = Le({ type: "boolean", default: !1 })), this.getInput("VALUE").connection.setShadowDom(e);
|
|
1710
1712
|
},
|
|
1711
1713
|
checkWarning_: function() {
|
|
1712
1714
|
const e = bs(this.output.id);
|
|
@@ -1784,7 +1786,7 @@ ${o}}
|
|
|
1784
1786
|
`;
|
|
1785
1787
|
};
|
|
1786
1788
|
function Qt() {
|
|
1787
|
-
const e = [], { spaces: t, tables: n } =
|
|
1789
|
+
const e = [], { spaces: t, tables: n } = Q.data;
|
|
1788
1790
|
for (const o in t) {
|
|
1789
1791
|
const i = t[o];
|
|
1790
1792
|
let s = !1;
|
|
@@ -1798,16 +1800,16 @@ function Qt() {
|
|
|
1798
1800
|
return e.sort((o, i) => o.sort - i.sort), e;
|
|
1799
1801
|
}
|
|
1800
1802
|
function bt(e) {
|
|
1801
|
-
return
|
|
1803
|
+
return Q.data.spaces[e];
|
|
1802
1804
|
}
|
|
1803
1805
|
function mo() {
|
|
1804
1806
|
const e = [];
|
|
1805
1807
|
return Qt().forEach((n) => {
|
|
1806
1808
|
e.push([n.name, n.id]);
|
|
1807
|
-
}),
|
|
1809
|
+
}), ke(e);
|
|
1808
1810
|
}
|
|
1809
1811
|
function rt(e) {
|
|
1810
|
-
const { tables: t } =
|
|
1812
|
+
const { tables: t } = Q.data, n = [];
|
|
1811
1813
|
for (const o in t) {
|
|
1812
1814
|
const i = t[o];
|
|
1813
1815
|
i.spaceid === e && n.push(i);
|
|
@@ -1815,13 +1817,13 @@ function rt(e) {
|
|
|
1815
1817
|
return n.sort((o, i) => o.sort - i.sort), n;
|
|
1816
1818
|
}
|
|
1817
1819
|
function ve(e) {
|
|
1818
|
-
return
|
|
1820
|
+
return Q.data.tables[e];
|
|
1819
1821
|
}
|
|
1820
1822
|
function Eo(e) {
|
|
1821
1823
|
const t = [];
|
|
1822
1824
|
return rt(e).forEach((o) => {
|
|
1823
1825
|
t.push([o.name, o.id]);
|
|
1824
|
-
}),
|
|
1826
|
+
}), ke(t);
|
|
1825
1827
|
}
|
|
1826
1828
|
const Up = {
|
|
1827
1829
|
init: function() {
|
|
@@ -1900,7 +1902,7 @@ const Up = {
|
|
|
1900
1902
|
const e = [], t = ve(this.table.id);
|
|
1901
1903
|
return t == null || t.columns.forEach((n) => {
|
|
1902
1904
|
e.push([n.name, n.name]);
|
|
1903
|
-
}),
|
|
1905
|
+
}), ke(e);
|
|
1904
1906
|
},
|
|
1905
1907
|
onchange: function(e) {
|
|
1906
1908
|
if (e.type === V.BLOCK_CHANGE) {
|
|
@@ -2304,7 +2306,7 @@ const Gp = {
|
|
|
2304
2306
|
const e = [], t = ve(this.table.id);
|
|
2305
2307
|
return t == null || t.columns.forEach((n) => {
|
|
2306
2308
|
e.push([n.name, n.name]);
|
|
2307
|
-
}),
|
|
2309
|
+
}), ke(e);
|
|
2308
2310
|
},
|
|
2309
2311
|
onchange: function(e) {
|
|
2310
2312
|
var t;
|
|
@@ -2436,8 +2438,8 @@ U.select_column_v1 = Gp;
|
|
|
2436
2438
|
l.forBlock.select_column_v1 = function(e) {
|
|
2437
2439
|
const t = l.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
|
|
2438
2440
|
for (let c = 0; c < n.itemCount_; c++) {
|
|
2439
|
-
const _ = n.getFieldValue("COLUMN" + c),
|
|
2440
|
-
s.push(`{ name: ${_}, alias: ${
|
|
2441
|
+
const _ = n.getFieldValue("COLUMN" + c), p = n.getFieldValue("ALIAS" + c);
|
|
2442
|
+
s.push(`{ name: ${_}, alias: ${p} }`);
|
|
2441
2443
|
}
|
|
2442
2444
|
const a = JSON.stringify(s);
|
|
2443
2445
|
return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, u.ATOMIC];
|
|
@@ -2616,7 +2618,7 @@ const zp = {
|
|
|
2616
2618
|
const e = [], t = ve(this.table.id);
|
|
2617
2619
|
return t == null || t.columns.forEach((n) => {
|
|
2618
2620
|
e.push([n.name, n.name]);
|
|
2619
|
-
}),
|
|
2621
|
+
}), ke(e);
|
|
2620
2622
|
},
|
|
2621
2623
|
onchange: function(e) {
|
|
2622
2624
|
if (e.type === V.BLOCK_CHANGE) {
|
|
@@ -2767,8 +2769,8 @@ U.update_column_v1 = zp;
|
|
|
2767
2769
|
l.forBlock.update_column_v1 = function(e) {
|
|
2768
2770
|
const t = l.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
|
|
2769
2771
|
for (let c = 0; c < n.itemCount_; c++) {
|
|
2770
|
-
const _ = n.getFieldValue("COLUMN" + c),
|
|
2771
|
-
s.push({ name: _, value:
|
|
2772
|
+
const _ = n.getFieldValue("COLUMN" + c), p = l.valueToCode(n, "ADD" + c, u.ATOMIC) || null;
|
|
2773
|
+
s.push({ name: _, value: p });
|
|
2772
2774
|
}
|
|
2773
2775
|
const a = JSON.stringify(s);
|
|
2774
2776
|
return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, u.ATOMIC];
|
|
@@ -4770,7 +4772,7 @@ l.forBlock.object_to_json_v1 = function(e) {
|
|
|
4770
4772
|
};
|
|
4771
4773
|
const Os = I.xml, dd = {
|
|
4772
4774
|
init: function() {
|
|
4773
|
-
this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new
|
|
4775
|
+
this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new jr(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
|
|
4774
4776
|
}
|
|
4775
4777
|
};
|
|
4776
4778
|
U.procedure_def_container_v1 = dd;
|
|
@@ -5518,13 +5520,13 @@ const bd = {
|
|
|
5518
5520
|
updateShadow_: function() {
|
|
5519
5521
|
var e, t, n, o, i, s, a, r;
|
|
5520
5522
|
this.isInsertionMarker() || ((t = (e = this.getInput("INTERVAL")) == null ? void 0 : e.connection) == null || t.setShadowDom(
|
|
5521
|
-
|
|
5523
|
+
Le({ type: "number", default: 1e3 })
|
|
5522
5524
|
), (o = (n = this.getInput("LOOP")) == null ? void 0 : n.connection) == null || o.setShadowDom(
|
|
5523
|
-
|
|
5525
|
+
Le({ type: "boolean", default: !1 })
|
|
5524
5526
|
), (s = (i = this.getInput("COUNT")) == null ? void 0 : i.connection) == null || s.setShadowDom(
|
|
5525
|
-
|
|
5527
|
+
Le({ type: "number", default: 1 })
|
|
5526
5528
|
), (r = (a = this.getInput("IMMEDIATE")) == null ? void 0 : a.connection) == null || r.setShadowDom(
|
|
5527
|
-
|
|
5529
|
+
Le({ type: "boolean", default: !1 })
|
|
5528
5530
|
));
|
|
5529
5531
|
}
|
|
5530
5532
|
};
|
|
@@ -5602,7 +5604,7 @@ l.forBlock.app_env_v1 = function(e) {
|
|
|
5602
5604
|
return [`__getEnvV1__() === ${l.quote_(e.getFieldValue("ENV"))}`, u.ATOMIC];
|
|
5603
5605
|
};
|
|
5604
5606
|
function bn(e) {
|
|
5605
|
-
const { nodes: t } =
|
|
5607
|
+
const { nodes: t } = Q.app, n = [];
|
|
5606
5608
|
for (const o in t) {
|
|
5607
5609
|
const i = t[o], s = Je[i.key];
|
|
5608
5610
|
if (!s) {
|
|
@@ -5618,12 +5620,12 @@ function bn(e) {
|
|
|
5618
5620
|
}
|
|
5619
5621
|
return n;
|
|
5620
5622
|
}
|
|
5621
|
-
function
|
|
5622
|
-
const { nodes: t } =
|
|
5623
|
+
function Ne(e) {
|
|
5624
|
+
const { nodes: t } = Q.app;
|
|
5623
5625
|
return t.find((n) => n.id === e);
|
|
5624
5626
|
}
|
|
5625
5627
|
function Ao(e) {
|
|
5626
|
-
const { i18n: t } =
|
|
5628
|
+
const { i18n: t } = Q.base, n = [];
|
|
5627
5629
|
return bn(e).forEach((i) => {
|
|
5628
5630
|
const s = Je[i.key];
|
|
5629
5631
|
if (!s) {
|
|
@@ -5632,17 +5634,17 @@ function Ao(e) {
|
|
|
5632
5634
|
}
|
|
5633
5635
|
let a = t.global.t(s.name);
|
|
5634
5636
|
i.alias && (a += ` / ${i.alias}`), n.push([a, i.id]);
|
|
5635
|
-
}),
|
|
5637
|
+
}), ke(n);
|
|
5636
5638
|
}
|
|
5637
5639
|
function _i(e) {
|
|
5638
|
-
const t =
|
|
5640
|
+
const t = Ne(e);
|
|
5639
5641
|
if (!t)
|
|
5640
5642
|
return [];
|
|
5641
5643
|
const n = Je[t.key];
|
|
5642
5644
|
return n ? n.events : (console.assert(!1, "invalid element", t.key), []);
|
|
5643
5645
|
}
|
|
5644
5646
|
function Fo(e, t) {
|
|
5645
|
-
const n =
|
|
5647
|
+
const n = Ne(e);
|
|
5646
5648
|
if (!n)
|
|
5647
5649
|
return;
|
|
5648
5650
|
const o = Je[n.key];
|
|
@@ -5656,17 +5658,17 @@ function Od(e) {
|
|
|
5656
5658
|
const t = [];
|
|
5657
5659
|
return _i(e).forEach(({ key: o, name: i }) => {
|
|
5658
5660
|
t.push([v[i] ?? i, o]);
|
|
5659
|
-
}),
|
|
5661
|
+
}), ke(t);
|
|
5660
5662
|
}
|
|
5661
5663
|
function pi(e) {
|
|
5662
|
-
const t =
|
|
5664
|
+
const t = Ne(e);
|
|
5663
5665
|
if (!t)
|
|
5664
5666
|
return [];
|
|
5665
5667
|
const n = Je[t.key];
|
|
5666
5668
|
return n ? n.methods : (console.assert(!1, "invalid element", t.key), []);
|
|
5667
5669
|
}
|
|
5668
5670
|
function Yo(e, t) {
|
|
5669
|
-
const n =
|
|
5671
|
+
const n = Ne(e);
|
|
5670
5672
|
if (!n)
|
|
5671
5673
|
return;
|
|
5672
5674
|
const o = Je[n.key];
|
|
@@ -5680,37 +5682,37 @@ function Id(e) {
|
|
|
5680
5682
|
const t = [];
|
|
5681
5683
|
return pi(e).forEach(({ key: o, name: i }) => {
|
|
5682
5684
|
t.push([v[i] ?? i, o]);
|
|
5683
|
-
}),
|
|
5685
|
+
}), ke(t);
|
|
5684
5686
|
}
|
|
5685
5687
|
function di(e, t) {
|
|
5686
|
-
var _,
|
|
5687
|
-
const { props: n } =
|
|
5688
|
+
var _, p;
|
|
5689
|
+
const { props: n } = Q.runtime, { type: o, subtype: i } = Q.app, s = [], a = ra(o, i);
|
|
5688
5690
|
if (!a)
|
|
5689
5691
|
return console.assert(!1, "invalid prop tag", o, i), s;
|
|
5690
|
-
const r =
|
|
5691
|
-
return r ? Je[r.key] ? ((
|
|
5692
|
-
s.push(
|
|
5692
|
+
const r = Ne(e);
|
|
5693
|
+
return r ? Je[r.key] ? ((p = (_ = n[r.key]) == null ? void 0 : _[a]) == null || p.forEach((d) => {
|
|
5694
|
+
s.push(d);
|
|
5693
5695
|
}), s) : (console.assert(!1, "invalid element", r.key), s) : s;
|
|
5694
5696
|
}
|
|
5695
5697
|
function Ko(e, t) {
|
|
5696
5698
|
var r, c;
|
|
5697
|
-
const { props: n } =
|
|
5699
|
+
const { props: n } = Q.runtime, { type: o, subtype: i } = Q.app, s = ra(o, i);
|
|
5698
5700
|
if (!s) {
|
|
5699
5701
|
console.assert(!1, "invalid prop tag", o, i);
|
|
5700
5702
|
return;
|
|
5701
5703
|
}
|
|
5702
|
-
const a =
|
|
5704
|
+
const a = Ne(e);
|
|
5703
5705
|
if (a)
|
|
5704
5706
|
return (c = (r = n[a.key]) == null ? void 0 : r[s]) == null ? void 0 : c.find((_) => _.keys === t);
|
|
5705
5707
|
}
|
|
5706
5708
|
function yd(e, t) {
|
|
5707
|
-
const { i18n: n } =
|
|
5709
|
+
const { i18n: n } = Q.base, o = [];
|
|
5708
5710
|
return di(e).forEach((s) => {
|
|
5709
5711
|
let a = "";
|
|
5710
5712
|
s.names.forEach((r, c) => {
|
|
5711
5713
|
c !== 0 && (a += " - "), a += n.global.t(r);
|
|
5712
5714
|
}), o.push([a, s.keys]);
|
|
5713
|
-
}),
|
|
5715
|
+
}), ke(o);
|
|
5714
5716
|
}
|
|
5715
5717
|
const Cd = {
|
|
5716
5718
|
init: function() {
|
|
@@ -5773,7 +5775,7 @@ const Cd = {
|
|
|
5773
5775
|
},
|
|
5774
5776
|
onNodeChange_: function(e) {
|
|
5775
5777
|
var i;
|
|
5776
|
-
const t =
|
|
5778
|
+
const t = Ne(e);
|
|
5777
5779
|
if (!t) {
|
|
5778
5780
|
console.assert(!1);
|
|
5779
5781
|
return;
|
|
@@ -5791,7 +5793,7 @@ const Cd = {
|
|
|
5791
5793
|
t ? (this.method.key = t.key, this.method.name = t.name, this.method.inputs = t.inputs, this.method.outputs = t.outputs) : (this.method.key = "", this.method.name = "", this.method.inputs = [], this.method.outputs = []);
|
|
5792
5794
|
},
|
|
5793
5795
|
checkWarning_: function() {
|
|
5794
|
-
const e =
|
|
5796
|
+
const e = Ne(this.node.id);
|
|
5795
5797
|
if (!e) {
|
|
5796
5798
|
this.setWarningText(v.WARN_NODE_NOT_AVAILABLE);
|
|
5797
5799
|
return;
|
|
@@ -5861,7 +5863,7 @@ const Sd = {
|
|
|
5861
5863
|
}
|
|
5862
5864
|
},
|
|
5863
5865
|
onNodeChange_: function(e) {
|
|
5864
|
-
const t =
|
|
5866
|
+
const t = Ne(e);
|
|
5865
5867
|
if (!t) {
|
|
5866
5868
|
console.assert(!1);
|
|
5867
5869
|
return;
|
|
@@ -5869,7 +5871,7 @@ const Sd = {
|
|
|
5869
5871
|
this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
|
|
5870
5872
|
},
|
|
5871
5873
|
checkWarning_: function() {
|
|
5872
|
-
const e =
|
|
5874
|
+
const e = Ne(this.node.id);
|
|
5873
5875
|
if (!e) {
|
|
5874
5876
|
this.setWarningText(v.WARN_NODE_NOT_AVAIALABLE);
|
|
5875
5877
|
return;
|
|
@@ -5942,7 +5944,7 @@ const Ld = {
|
|
|
5942
5944
|
},
|
|
5943
5945
|
onNodeChange_: function(e) {
|
|
5944
5946
|
var i;
|
|
5945
|
-
const t =
|
|
5947
|
+
const t = Ne(e);
|
|
5946
5948
|
if (!t) {
|
|
5947
5949
|
console.assert(!1);
|
|
5948
5950
|
return;
|
|
@@ -5960,7 +5962,7 @@ const Ld = {
|
|
|
5960
5962
|
t ? (this.prop.keys = t.keys, this.prop.names = t.names) : (this.prop.keys = "", this.prop.names = []);
|
|
5961
5963
|
},
|
|
5962
5964
|
checkWarning_: function() {
|
|
5963
|
-
const e =
|
|
5965
|
+
const e = Ne(this.node.id);
|
|
5964
5966
|
if (!e) {
|
|
5965
5967
|
this.setWarningText(v.WARN_NODE_NOT_AVAIALABLE);
|
|
5966
5968
|
return;
|
|
@@ -5984,25 +5986,25 @@ l.forBlock.get_node_prop_v1 = function(e) {
|
|
|
5984
5986
|
return [`__getNodePropV1__(${n}, ${o})`, u.ATOMIC];
|
|
5985
5987
|
};
|
|
5986
5988
|
function Mi() {
|
|
5987
|
-
const { apps: e } =
|
|
5989
|
+
const { apps: e } = Q.app;
|
|
5988
5990
|
return e;
|
|
5989
5991
|
}
|
|
5990
5992
|
function Is(e) {
|
|
5991
|
-
const { apps: t } =
|
|
5993
|
+
const { apps: t } = Q.app;
|
|
5992
5994
|
return t.find((n) => n.id === e);
|
|
5993
5995
|
}
|
|
5994
5996
|
function Nd() {
|
|
5995
5997
|
const e = [];
|
|
5996
5998
|
return Mi().forEach((n) => {
|
|
5997
5999
|
e.push([n.name, n.id]);
|
|
5998
|
-
}),
|
|
6000
|
+
}), ke(e);
|
|
5999
6001
|
}
|
|
6000
6002
|
function fi(e) {
|
|
6001
|
-
const { apps: t } =
|
|
6003
|
+
const { apps: t } = Q.app, n = t.find((o) => o.id === e);
|
|
6002
6004
|
return n ? n.pages : [];
|
|
6003
6005
|
}
|
|
6004
6006
|
function Ho(e, t) {
|
|
6005
|
-
const { apps: n } =
|
|
6007
|
+
const { apps: n } = Q.app, o = n.find((i) => i.id === e);
|
|
6006
6008
|
if (o)
|
|
6007
6009
|
return o.pages.find((i) => i.id === t);
|
|
6008
6010
|
}
|
|
@@ -6010,7 +6012,7 @@ function kd(e) {
|
|
|
6010
6012
|
const t = [];
|
|
6011
6013
|
return fi(e).forEach((o) => {
|
|
6012
6014
|
t.push([o.name, o.id]);
|
|
6013
|
-
}),
|
|
6015
|
+
}), ke(t);
|
|
6014
6016
|
}
|
|
6015
6017
|
const Bd = {
|
|
6016
6018
|
init: function() {
|
|
@@ -6175,7 +6177,7 @@ const Rd = {
|
|
|
6175
6177
|
},
|
|
6176
6178
|
onNodeChange_: function(e) {
|
|
6177
6179
|
var i;
|
|
6178
|
-
const t =
|
|
6180
|
+
const t = Ne(e);
|
|
6179
6181
|
if (!t) {
|
|
6180
6182
|
console.assert(!1);
|
|
6181
6183
|
return;
|
|
@@ -6212,7 +6214,7 @@ const Rd = {
|
|
|
6212
6214
|
}), e.length > 0 && Ze(this, e);
|
|
6213
6215
|
},
|
|
6214
6216
|
checkWarning_: function() {
|
|
6215
|
-
const e =
|
|
6217
|
+
const e = Ne(this.node.id);
|
|
6216
6218
|
if (!e) {
|
|
6217
6219
|
this.setWarningText(v.WARN_NODE_NOT_AVAILABLE);
|
|
6218
6220
|
return;
|
|
@@ -6264,9 +6266,9 @@ const Dd = {
|
|
|
6264
6266
|
updateShadow_: function() {
|
|
6265
6267
|
if (this.isInsertionMarker())
|
|
6266
6268
|
return;
|
|
6267
|
-
const e =
|
|
6269
|
+
const e = Le({ type: "string", default: "" });
|
|
6268
6270
|
this.getInput("TITLE").connection.setShadowDom(e);
|
|
6269
|
-
const t =
|
|
6271
|
+
const t = Le({ type: "string", default: "" });
|
|
6270
6272
|
this.getInput("TEXT").connection.setShadowDom(t);
|
|
6271
6273
|
},
|
|
6272
6274
|
rebuildBlocks_: function() {
|
|
@@ -6303,11 +6305,11 @@ const Md = {
|
|
|
6303
6305
|
updateShadow_: function() {
|
|
6304
6306
|
if (this.isInsertionMarker())
|
|
6305
6307
|
return;
|
|
6306
|
-
const e =
|
|
6308
|
+
const e = Le({ type: "string", default: "" });
|
|
6307
6309
|
this.getInput("TITLE").connection.setShadowDom(e);
|
|
6308
|
-
const t =
|
|
6310
|
+
const t = Le({ type: "string", default: "" });
|
|
6309
6311
|
this.getInput("LABEL").connection.setShadowDom(t);
|
|
6310
|
-
const n =
|
|
6312
|
+
const n = Le({ type: "string", default: "" });
|
|
6311
6313
|
this.getInput("VALUE").connection.setShadowDom(n);
|
|
6312
6314
|
},
|
|
6313
6315
|
rebuildBlocks_: function() {
|
|
@@ -6612,7 +6614,7 @@ const Jn = {
|
|
|
6612
6614
|
callback: wd
|
|
6613
6615
|
}, Ut = I.xml;
|
|
6614
6616
|
function Vd(e) {
|
|
6615
|
-
const { funcs: t } =
|
|
6617
|
+
const { funcs: t } = Q.compute, n = [];
|
|
6616
6618
|
if (e === "flow") {
|
|
6617
6619
|
{
|
|
6618
6620
|
const o = Ut.createElement("block");
|
|
@@ -6651,7 +6653,7 @@ const qn = {
|
|
|
6651
6653
|
callback: Vd
|
|
6652
6654
|
}, nt = I.xml;
|
|
6653
6655
|
function Fd(e) {
|
|
6654
|
-
const { activeFunc: t, funcs: n } =
|
|
6656
|
+
const { activeFunc: t, funcs: n } = Q.compute, o = [];
|
|
6655
6657
|
if (e === "func") {
|
|
6656
6658
|
{
|
|
6657
6659
|
const i = nt.createElement("block");
|
|
@@ -6713,7 +6715,7 @@ function Yd() {
|
|
|
6713
6715
|
}
|
|
6714
6716
|
return e;
|
|
6715
6717
|
}
|
|
6716
|
-
const
|
|
6718
|
+
const Ua = {
|
|
6717
6719
|
name: "INTERFACE_CATEGORY",
|
|
6718
6720
|
callback: Yd
|
|
6719
6721
|
}, tn = I.xml;
|
|
@@ -6747,7 +6749,7 @@ const ft = {
|
|
|
6747
6749
|
callback: Kd
|
|
6748
6750
|
};
|
|
6749
6751
|
function Hd() {
|
|
6750
|
-
const { args: e } =
|
|
6752
|
+
const { args: e } = Q.app;
|
|
6751
6753
|
return e;
|
|
6752
6754
|
}
|
|
6753
6755
|
const xe = I.xml;
|
|
@@ -6829,7 +6831,7 @@ function Gd() {
|
|
|
6829
6831
|
const n = e.getVariablesOfType("");
|
|
6830
6832
|
if (n.length <= 0)
|
|
6831
6833
|
return t;
|
|
6832
|
-
n.sort(
|
|
6834
|
+
n.sort(Wr.compareByName);
|
|
6833
6835
|
{
|
|
6834
6836
|
const o = Rn.createElement("label");
|
|
6835
6837
|
o.setAttribute("text", v.LABEL_CREATED), t.push(o);
|
|
@@ -6863,7 +6865,7 @@ oa.setPrompt(async (e, t, n) => {
|
|
|
6863
6865
|
});
|
|
6864
6866
|
n(String(o));
|
|
6865
6867
|
});
|
|
6866
|
-
const
|
|
6868
|
+
const wa = (e, t, n) => {
|
|
6867
6869
|
const o = e[t];
|
|
6868
6870
|
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((i, s) => {
|
|
6869
6871
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -6877,10 +6879,10 @@ const Ua = (e, t, n) => {
|
|
|
6877
6879
|
});
|
|
6878
6880
|
};
|
|
6879
6881
|
async function Cs(e) {
|
|
6880
|
-
const t = await
|
|
6881
|
-
|
|
6882
|
+
const t = await wa(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en-kt4hpbag.js"), "./msg/zhHans.ts": () => import("./msg-zhHans-m1r7olku.js") }), `./msg/${e}.ts`, 3);
|
|
6883
|
+
Xr(t.default);
|
|
6882
6884
|
}
|
|
6883
|
-
function
|
|
6885
|
+
function Va(e) {
|
|
6884
6886
|
const t = Et();
|
|
6885
6887
|
if (!t)
|
|
6886
6888
|
return;
|
|
@@ -6893,13 +6895,13 @@ function wa(e) {
|
|
|
6893
6895
|
const i = o.getRelativeToSurfaceXY(), s = i.x * t.scale, a = i.y * t.scale;
|
|
6894
6896
|
t.scroll(-s, -a);
|
|
6895
6897
|
}
|
|
6896
|
-
function
|
|
6898
|
+
function Fa() {
|
|
6897
6899
|
var n;
|
|
6898
6900
|
const e = Et();
|
|
6899
6901
|
if (!e)
|
|
6900
6902
|
return;
|
|
6901
6903
|
const t = (n = e.getTopBlocks(!0)) == null ? void 0 : n[0];
|
|
6902
|
-
t &&
|
|
6904
|
+
t && Va(t.id);
|
|
6903
6905
|
}
|
|
6904
6906
|
class jd {
|
|
6905
6907
|
init({ contextMenu: t = !0, shortcut: n = !0 } = {
|
|
@@ -7016,7 +7018,7 @@ class jd {
|
|
|
7016
7018
|
if (!r || !Ln(r) || !r.isDeletable() || !Zt(r))
|
|
7017
7019
|
return !1;
|
|
7018
7020
|
const c = r.toCopyData();
|
|
7019
|
-
return c ? (localStorage.setItem("blocklyStash", JSON.stringify(c)), r instanceof
|
|
7021
|
+
return c ? (localStorage.setItem("blocklyStash", JSON.stringify(c)), r instanceof zr ? r.checkAndDelete() : r.dispose(), !0) : !1;
|
|
7020
7022
|
},
|
|
7021
7023
|
keyCodes: [t, n, o]
|
|
7022
7024
|
};
|
|
@@ -7076,20 +7078,20 @@ class Wd {
|
|
|
7076
7078
|
});
|
|
7077
7079
|
}
|
|
7078
7080
|
}
|
|
7079
|
-
function
|
|
7081
|
+
function Ya(e) {
|
|
7080
7082
|
const t = e.getParent();
|
|
7081
|
-
return t &&
|
|
7083
|
+
return t && Ya(t) ? !0 : !t && !!(e.outputConnection || e.previousConnection);
|
|
7082
7084
|
}
|
|
7083
7085
|
class Xd {
|
|
7084
7086
|
init() {
|
|
7085
7087
|
const t = St.registry.getItem("blockDisable");
|
|
7086
7088
|
t && (t.preconditionFn = function(n) {
|
|
7087
7089
|
const o = n.block;
|
|
7088
|
-
return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() ||
|
|
7090
|
+
return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || Ya(o) ? "disabled" : "enabled" : "hidden";
|
|
7089
7091
|
});
|
|
7090
7092
|
}
|
|
7091
7093
|
}
|
|
7092
|
-
class
|
|
7094
|
+
class Ka extends xo {
|
|
7093
7095
|
constructor(n, o, i) {
|
|
7094
7096
|
super(xo.SKIP_SETUP);
|
|
7095
7097
|
/** The field's colour picker element. */
|
|
@@ -7906,8 +7908,8 @@ class Ya extends xo {
|
|
|
7906
7908
|
return new this(n.colour, void 0, n);
|
|
7907
7909
|
}
|
|
7908
7910
|
}
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
+
Ka.prototype.DEFAULT_VALUE = "#ffffff";
|
|
7912
|
+
Jr.register(`
|
|
7911
7913
|
.blocklyColourTable {
|
|
7912
7914
|
border-collapse: collapse;
|
|
7913
7915
|
display: block;
|
|
@@ -7935,7 +7937,7 @@ zr.register(`
|
|
|
7935
7937
|
}
|
|
7936
7938
|
`);
|
|
7937
7939
|
function zd() {
|
|
7938
|
-
|
|
7940
|
+
qr.register("field_colour", Ka);
|
|
7939
7941
|
}
|
|
7940
7942
|
const Jd = new jd();
|
|
7941
7943
|
Jd.init({ contextMenu: !0, shortcut: !0 });
|
|
@@ -8526,7 +8528,7 @@ const vo = {
|
|
|
8526
8528
|
type: "math_on_list_v1"
|
|
8527
8529
|
}
|
|
8528
8530
|
]
|
|
8529
|
-
},
|
|
8531
|
+
}, Ha = {
|
|
8530
8532
|
kind: "category",
|
|
8531
8533
|
name: "%{BKY_CATEGORY_MESSAGE}",
|
|
8532
8534
|
categorystyle: "message_category",
|
|
@@ -8793,7 +8795,7 @@ const vo = {
|
|
|
8793
8795
|
type: "text_reverse_v1"
|
|
8794
8796
|
}
|
|
8795
8797
|
]
|
|
8796
|
-
},
|
|
8798
|
+
}, $a = {
|
|
8797
8799
|
kind: "category",
|
|
8798
8800
|
name: "%{BKY_CATEGORY_TIME}",
|
|
8799
8801
|
categorystyle: "time_category",
|
|
@@ -8826,7 +8828,7 @@ const vo = {
|
|
|
8826
8828
|
categorystyle: "ui_category",
|
|
8827
8829
|
custom: Zn.name
|
|
8828
8830
|
},
|
|
8829
|
-
|
|
8831
|
+
Ha,
|
|
8830
8832
|
Io,
|
|
8831
8833
|
Oo,
|
|
8832
8834
|
yo,
|
|
@@ -8834,7 +8836,7 @@ const vo = {
|
|
|
8834
8836
|
bo,
|
|
8835
8837
|
Co,
|
|
8836
8838
|
vo,
|
|
8837
|
-
|
|
8839
|
+
$a,
|
|
8838
8840
|
{
|
|
8839
8841
|
kind: "category",
|
|
8840
8842
|
name: "%{BKY_CATEGORY_VARIABLE}",
|
|
@@ -8851,7 +8853,7 @@ const vo = {
|
|
|
8851
8853
|
kind: "category",
|
|
8852
8854
|
name: "%{BKY_CATEGORY_INTERFACE}",
|
|
8853
8855
|
categorystyle: "interface_category",
|
|
8854
|
-
custom:
|
|
8856
|
+
custom: Ua.name
|
|
8855
8857
|
}
|
|
8856
8858
|
]
|
|
8857
8859
|
}, of = {
|
|
@@ -8945,7 +8947,7 @@ const vo = {
|
|
|
8945
8947
|
categorystyle: "ui_category",
|
|
8946
8948
|
custom: Zn.name
|
|
8947
8949
|
},
|
|
8948
|
-
|
|
8950
|
+
Ha,
|
|
8949
8951
|
Io,
|
|
8950
8952
|
Oo,
|
|
8951
8953
|
yo,
|
|
@@ -8953,7 +8955,7 @@ const vo = {
|
|
|
8953
8955
|
bo,
|
|
8954
8956
|
Co,
|
|
8955
8957
|
vo,
|
|
8956
|
-
|
|
8958
|
+
$a,
|
|
8957
8959
|
{
|
|
8958
8960
|
kind: "category",
|
|
8959
8961
|
name: "%{BKY_CATEGORY_VARIABLE}",
|
|
@@ -8970,11 +8972,11 @@ const vo = {
|
|
|
8970
8972
|
kind: "category",
|
|
8971
8973
|
name: "%{BKY_CATEGORY_INTERFACE}",
|
|
8972
8974
|
categorystyle: "interface_category",
|
|
8973
|
-
custom:
|
|
8975
|
+
custom: Ua.name
|
|
8974
8976
|
}
|
|
8975
8977
|
]
|
|
8976
8978
|
};
|
|
8977
|
-
var rf = "M19.36,2.72L20.78,4.14L15.06,9.85C16.13,11.39 16.28,13.24 15.38,14.44L9.06,8.12C10.26,7.22 12.11,7.37 13.65,8.44L19.36,2.72M5.93,17.57C3.92,15.56 2.69,13.16 2.35,10.92L7.23,8.83L14.67,16.27L12.58,21.15C10.34,20.81 7.94,19.58 5.93,17.57Z",
|
|
8979
|
+
var rf = "M19.36,2.72L20.78,4.14L15.06,9.85C16.13,11.39 16.28,13.24 15.38,14.44L9.06,8.12C10.26,7.22 12.11,7.37 13.65,8.44L19.36,2.72M5.93,17.57C3.92,15.56 2.69,13.16 2.35,10.92L7.23,8.83L14.67,16.27L12.58,21.15C10.34,20.81 7.94,19.58 5.93,17.57Z", Ga = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", lf = "M21 11H3V9H21V11M21 13H3V15H21V13Z", cf = "M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z", uf = "M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z", _f = "M21 3L3 10.53V11.5L9.84 14.16L12.5 21H13.46L21 3Z";
|
|
8978
8980
|
const pf = /* @__PURE__ */ Qe({
|
|
8979
8981
|
__name: "index",
|
|
8980
8982
|
props: {
|
|
@@ -9042,28 +9044,28 @@ const pf = /* @__PURE__ */ Qe({
|
|
|
9042
9044
|
};
|
|
9043
9045
|
}
|
|
9044
9046
|
});
|
|
9045
|
-
var ff = Object.defineProperty, eo = Object.getOwnPropertySymbols,
|
|
9047
|
+
var ff = Object.defineProperty, eo = Object.getOwnPropertySymbols, ja = Object.prototype.hasOwnProperty, Wa = Object.prototype.propertyIsEnumerable, Ss = (e, t, n) => t in e ? ff(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ht = (e, t) => {
|
|
9046
9048
|
for (var n in t || (t = {}))
|
|
9047
|
-
|
|
9049
|
+
ja.call(t, n) && Ss(e, n, t[n]);
|
|
9048
9050
|
if (eo)
|
|
9049
9051
|
for (var n of eo(t))
|
|
9050
|
-
|
|
9052
|
+
Wa.call(t, n) && Ss(e, n, t[n]);
|
|
9051
9053
|
return e;
|
|
9052
|
-
},
|
|
9054
|
+
}, Xa = (e, t) => {
|
|
9053
9055
|
var n = {};
|
|
9054
9056
|
for (var o in e)
|
|
9055
|
-
|
|
9057
|
+
ja.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
9056
9058
|
if (e != null && eo)
|
|
9057
9059
|
for (var o of eo(e))
|
|
9058
|
-
t.indexOf(o) < 0 &&
|
|
9060
|
+
t.indexOf(o) < 0 && Wa.call(e, o) && (n[o] = e[o]);
|
|
9059
9061
|
return n;
|
|
9060
9062
|
};
|
|
9061
|
-
const
|
|
9063
|
+
const za = "[vue-draggable-plus]: ";
|
|
9062
9064
|
function hf(e) {
|
|
9063
|
-
console.warn(
|
|
9065
|
+
console.warn(za + e);
|
|
9064
9066
|
}
|
|
9065
9067
|
function gf(e) {
|
|
9066
|
-
console.error(
|
|
9068
|
+
console.error(za + e);
|
|
9067
9069
|
}
|
|
9068
9070
|
function Ls(e, t, n) {
|
|
9069
9071
|
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
@@ -9199,15 +9201,15 @@ function st(e) {
|
|
|
9199
9201
|
if (typeof window < "u" && window.navigator)
|
|
9200
9202
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
9201
9203
|
}
|
|
9202
|
-
var ut = st(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), On = st(/Edge/i), Ms = st(/firefox/i), cn = st(/safari/i) && !st(/chrome/i) && !st(/android/i),
|
|
9204
|
+
var ut = st(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), On = st(/Edge/i), Ms = st(/firefox/i), cn = st(/safari/i) && !st(/chrome/i) && !st(/android/i), Ja = st(/iP(ad|od|hone)/i), qa = st(/chrome/i) && st(/android/i), Qa = {
|
|
9203
9205
|
capture: !1,
|
|
9204
9206
|
passive: !1
|
|
9205
9207
|
};
|
|
9206
|
-
function
|
|
9207
|
-
e.addEventListener(t, n, !ut &&
|
|
9208
|
+
function W(e, t, n) {
|
|
9209
|
+
e.addEventListener(t, n, !ut && Qa);
|
|
9208
9210
|
}
|
|
9209
9211
|
function $(e, t, n) {
|
|
9210
|
-
e.removeEventListener(t, n, !ut &&
|
|
9212
|
+
e.removeEventListener(t, n, !ut && Qa);
|
|
9211
9213
|
}
|
|
9212
9214
|
function to(e, t) {
|
|
9213
9215
|
if (t) {
|
|
@@ -9250,7 +9252,7 @@ function De(e, t, n) {
|
|
|
9250
9252
|
e.className = (o + (n ? " " + t : "")).replace(Ps, " ");
|
|
9251
9253
|
}
|
|
9252
9254
|
}
|
|
9253
|
-
function
|
|
9255
|
+
function B(e, t, n) {
|
|
9254
9256
|
var o = e && e.style;
|
|
9255
9257
|
if (o) {
|
|
9256
9258
|
if (n === void 0)
|
|
@@ -9264,13 +9266,13 @@ function jt(e, t) {
|
|
|
9264
9266
|
n = e;
|
|
9265
9267
|
else
|
|
9266
9268
|
do {
|
|
9267
|
-
var o =
|
|
9269
|
+
var o = B(e, "transform");
|
|
9268
9270
|
o && o !== "none" && (n = o + " " + n);
|
|
9269
9271
|
} while (!t && (e = e.parentNode));
|
|
9270
9272
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
9271
9273
|
return i && new i(n);
|
|
9272
9274
|
}
|
|
9273
|
-
function
|
|
9275
|
+
function Za(e, t, n) {
|
|
9274
9276
|
if (e) {
|
|
9275
9277
|
var o = e.getElementsByTagName(t), i = 0, s = o.length;
|
|
9276
9278
|
if (n)
|
|
@@ -9284,34 +9286,34 @@ function ze() {
|
|
|
9284
9286
|
var e = document.scrollingElement;
|
|
9285
9287
|
return e || document.documentElement;
|
|
9286
9288
|
}
|
|
9287
|
-
function
|
|
9289
|
+
function fe(e, t, n, o, i) {
|
|
9288
9290
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
9289
|
-
var s, a, r, c, _,
|
|
9290
|
-
if (e !== window && e.parentNode && e !== ze() ? (s = e.getBoundingClientRect(), a = s.top, r = s.left, c = s.bottom, _ = s.right,
|
|
9291
|
+
var s, a, r, c, _, p, d;
|
|
9292
|
+
if (e !== window && e.parentNode && e !== ze() ? (s = e.getBoundingClientRect(), a = s.top, r = s.left, c = s.bottom, _ = s.right, p = s.height, d = s.width) : (a = 0, r = 0, c = window.innerHeight, _ = window.innerWidth, p = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i = i || e.parentNode, !ut))
|
|
9291
9293
|
do
|
|
9292
|
-
if (i && i.getBoundingClientRect && (
|
|
9294
|
+
if (i && i.getBoundingClientRect && (B(i, "transform") !== "none" || n && B(i, "position") !== "static")) {
|
|
9293
9295
|
var f = i.getBoundingClientRect();
|
|
9294
|
-
a -= f.top + parseInt(
|
|
9296
|
+
a -= f.top + parseInt(B(i, "border-top-width")), r -= f.left + parseInt(B(i, "border-left-width")), c = a + s.height, _ = r + s.width;
|
|
9295
9297
|
break;
|
|
9296
9298
|
}
|
|
9297
9299
|
while (i = i.parentNode);
|
|
9298
9300
|
if (o && e !== window) {
|
|
9299
9301
|
var g = jt(i || e), b = g && g.a, E = g && g.d;
|
|
9300
|
-
g && (a /= E, r /= b,
|
|
9302
|
+
g && (a /= E, r /= b, d /= b, p /= E, c = a + p, _ = r + d);
|
|
9301
9303
|
}
|
|
9302
9304
|
return {
|
|
9303
9305
|
top: a,
|
|
9304
9306
|
left: r,
|
|
9305
9307
|
bottom: c,
|
|
9306
9308
|
right: _,
|
|
9307
|
-
width:
|
|
9308
|
-
height:
|
|
9309
|
+
width: d,
|
|
9310
|
+
height: p
|
|
9309
9311
|
};
|
|
9310
9312
|
}
|
|
9311
9313
|
}
|
|
9312
9314
|
function xs(e, t, n) {
|
|
9313
|
-
for (var o = gt(e, !0), i =
|
|
9314
|
-
var s =
|
|
9315
|
+
for (var o = gt(e, !0), i = fe(e)[t]; o; ) {
|
|
9316
|
+
var s = fe(o)[n], a = void 0;
|
|
9315
9317
|
if (a = i >= s, !a)
|
|
9316
9318
|
return o;
|
|
9317
9319
|
if (o === ze())
|
|
@@ -9322,7 +9324,7 @@ function xs(e, t, n) {
|
|
|
9322
9324
|
}
|
|
9323
9325
|
function Jt(e, t, n, o) {
|
|
9324
9326
|
for (var i = 0, s = 0, a = e.children; s < a.length; ) {
|
|
9325
|
-
if (a[s].style.display !== "none" && a[s] !==
|
|
9327
|
+
if (a[s].style.display !== "none" && a[s] !== R.ghost && (o || a[s] !== R.dragged) && Ke(a[s], n.draggable, e, !1)) {
|
|
9326
9328
|
if (i === t)
|
|
9327
9329
|
return a[s];
|
|
9328
9330
|
i++;
|
|
@@ -9332,7 +9334,7 @@ function Jt(e, t, n, o) {
|
|
|
9332
9334
|
return null;
|
|
9333
9335
|
}
|
|
9334
9336
|
function Pi(e, t) {
|
|
9335
|
-
for (var n = e.lastElementChild; n && (n ===
|
|
9337
|
+
for (var n = e.lastElementChild; n && (n === R.ghost || B(n, "display") === "none" || t && !to(n, t)); )
|
|
9336
9338
|
n = n.previousElementSibling;
|
|
9337
9339
|
return n || null;
|
|
9338
9340
|
}
|
|
@@ -9341,7 +9343,7 @@ function Ue(e, t) {
|
|
|
9341
9343
|
if (!e || !e.parentNode)
|
|
9342
9344
|
return -1;
|
|
9343
9345
|
for (; e = e.previousElementSibling; )
|
|
9344
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !==
|
|
9346
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== R.clone && (!t || to(e, t)) && n++;
|
|
9345
9347
|
return n;
|
|
9346
9348
|
}
|
|
9347
9349
|
function Us(e) {
|
|
@@ -9368,7 +9370,7 @@ function gt(e, t) {
|
|
|
9368
9370
|
var n = e, o = !1;
|
|
9369
9371
|
do
|
|
9370
9372
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
9371
|
-
var i =
|
|
9373
|
+
var i = B(n);
|
|
9372
9374
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
9373
9375
|
if (!n.getBoundingClientRect || n === document.body)
|
|
9374
9376
|
return ze();
|
|
@@ -9390,7 +9392,7 @@ function Go(e, t) {
|
|
|
9390
9392
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
9391
9393
|
}
|
|
9392
9394
|
var un;
|
|
9393
|
-
function
|
|
9395
|
+
function er(e, t) {
|
|
9394
9396
|
return function() {
|
|
9395
9397
|
if (!un) {
|
|
9396
9398
|
var n = arguments, o = this;
|
|
@@ -9403,19 +9405,19 @@ function Za(e, t) {
|
|
|
9403
9405
|
function Mf() {
|
|
9404
9406
|
clearTimeout(un), un = void 0;
|
|
9405
9407
|
}
|
|
9406
|
-
function
|
|
9408
|
+
function tr(e, t, n) {
|
|
9407
9409
|
e.scrollLeft += t, e.scrollTop += n;
|
|
9408
9410
|
}
|
|
9409
|
-
function
|
|
9411
|
+
function nr(e) {
|
|
9410
9412
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
9411
9413
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
9412
9414
|
}
|
|
9413
|
-
function
|
|
9415
|
+
function or(e, t, n) {
|
|
9414
9416
|
var o = {};
|
|
9415
9417
|
return Array.from(e.children).forEach(function(i) {
|
|
9416
9418
|
var s, a, r, c;
|
|
9417
9419
|
if (!(!Ke(i, t.draggable, e, !1) || i.animated || i === n)) {
|
|
9418
|
-
var _ =
|
|
9420
|
+
var _ = fe(i);
|
|
9419
9421
|
o.left = Math.min((s = o.left) !== null && s !== void 0 ? s : 1 / 0, _.left), o.top = Math.min((a = o.top) !== null && a !== void 0 ? a : 1 / 0, _.top), o.right = Math.max((r = o.right) !== null && r !== void 0 ? r : -1 / 0, _.right), o.bottom = Math.max((c = o.bottom) !== null && c !== void 0 ? c : -1 / 0, _.bottom);
|
|
9420
9422
|
}
|
|
9421
9423
|
}), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
|
@@ -9428,10 +9430,10 @@ function Pf() {
|
|
|
9428
9430
|
if (e = [], !!this.options.animation) {
|
|
9429
9431
|
var n = [].slice.call(this.el.children);
|
|
9430
9432
|
n.forEach(function(o) {
|
|
9431
|
-
if (!(
|
|
9433
|
+
if (!(B(o, "display") === "none" || o === R.ghost)) {
|
|
9432
9434
|
e.push({
|
|
9433
9435
|
target: o,
|
|
9434
|
-
rect:
|
|
9436
|
+
rect: fe(o)
|
|
9435
9437
|
});
|
|
9436
9438
|
var i = qe({}, e[e.length - 1].rect);
|
|
9437
9439
|
if (o.thisAnimationDuration) {
|
|
@@ -9459,9 +9461,9 @@ function Pf() {
|
|
|
9459
9461
|
}
|
|
9460
9462
|
var i = !1, s = 0;
|
|
9461
9463
|
e.forEach(function(a) {
|
|
9462
|
-
var r = 0, c = a.target, _ = c.fromRect,
|
|
9463
|
-
b && (
|
|
9464
|
-
(g.top -
|
|
9464
|
+
var r = 0, c = a.target, _ = c.fromRect, p = fe(c), d = c.prevFromRect, f = c.prevToRect, g = a.rect, b = jt(c, !0);
|
|
9465
|
+
b && (p.top -= b.f, p.left -= b.e), c.toRect = p, c.thisAnimationDuration && Go(d, p) && !Go(_, p) && // Make sure animatingRect is on line between toRect & fromRect
|
|
9466
|
+
(g.top - p.top) / (g.left - p.left) === (_.top - p.top) / (_.left - p.left) && (r = Uf(g, d, f, o.options)), Go(p, _) || (c.prevFromRect = _, c.prevToRect = p, r || (r = o.options.animation), o.animate(c, g, p, r)), r && (i = !0, s = Math.max(s, r), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
9465
9467
|
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
9466
9468
|
}, r), c.thisAnimationDuration = r);
|
|
9467
9469
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -9470,10 +9472,10 @@ function Pf() {
|
|
|
9470
9472
|
},
|
|
9471
9473
|
animate: function(n, o, i, s) {
|
|
9472
9474
|
if (s) {
|
|
9473
|
-
|
|
9474
|
-
var a = jt(this.el), r = a && a.a, c = a && a.d, _ = (o.left - i.left) / (r || 1),
|
|
9475
|
-
n.animatingX = !!_, n.animatingY = !!
|
|
9476
|
-
|
|
9475
|
+
B(n, "transition", ""), B(n, "transform", "");
|
|
9476
|
+
var a = jt(this.el), r = a && a.a, c = a && a.d, _ = (o.left - i.left) / (r || 1), p = (o.top - i.top) / (c || 1);
|
|
9477
|
+
n.animatingX = !!_, n.animatingY = !!p, B(n, "transform", "translate3d(" + _ + "px," + p + "px,0)"), this.forRepaintDummy = xf(n), B(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), B(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
9478
|
+
B(n, "transition", ""), B(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
9477
9479
|
}, s);
|
|
9478
9480
|
}
|
|
9479
9481
|
}
|
|
@@ -9538,22 +9540,22 @@ var wt = [], jo = {
|
|
|
9538
9540
|
}
|
|
9539
9541
|
};
|
|
9540
9542
|
function wf(e) {
|
|
9541
|
-
var t = e.sortable, n = e.rootEl, o = e.name, i = e.targetEl, s = e.cloneEl, a = e.toEl, r = e.fromEl, c = e.oldIndex, _ = e.newIndex,
|
|
9543
|
+
var t = e.sortable, n = e.rootEl, o = e.name, i = e.targetEl, s = e.cloneEl, a = e.toEl, r = e.fromEl, c = e.oldIndex, _ = e.newIndex, p = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, g = e.putSortable, b = e.extraEventProperties;
|
|
9542
9544
|
if (t = t || n && n[Pe], !!t) {
|
|
9543
|
-
var E,
|
|
9545
|
+
var E, C = t.options, S = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
9544
9546
|
window.CustomEvent && !ut && !On ? E = new CustomEvent(o, {
|
|
9545
9547
|
bubbles: !0,
|
|
9546
9548
|
cancelable: !0
|
|
9547
|
-
}) : (E = document.createEvent("Event"), E.initEvent(o, !0, !0)), E.to = a || n, E.from = r || n, E.item = i || n, E.clone = s, E.oldIndex = c, E.newIndex = _, E.oldDraggableIndex =
|
|
9549
|
+
}) : (E = document.createEvent("Event"), E.initEvent(o, !0, !0)), E.to = a || n, E.from = r || n, E.item = i || n, E.clone = s, E.oldIndex = c, E.newIndex = _, E.oldDraggableIndex = p, E.newDraggableIndex = d, E.originalEvent = f, E.pullMode = g ? g.lastPutMode : void 0;
|
|
9548
9550
|
var F = qe(qe({}, b), In.getEventProperties(o, t));
|
|
9549
9551
|
for (var H in F)
|
|
9550
9552
|
E[H] = F[H];
|
|
9551
|
-
n && n.dispatchEvent(E), S
|
|
9553
|
+
n && n.dispatchEvent(E), C[S] && C[S].call(t, E);
|
|
9552
9554
|
}
|
|
9553
9555
|
}
|
|
9554
|
-
var Vf = ["evt"],
|
|
9556
|
+
var Vf = ["evt"], Se = function(e, t) {
|
|
9555
9557
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, i = Nf(n, Vf);
|
|
9556
|
-
In.pluginEvent.bind(
|
|
9558
|
+
In.pluginEvent.bind(R)(e, t, qe({
|
|
9557
9559
|
dragEl: T,
|
|
9558
9560
|
parentEl: ce,
|
|
9559
9561
|
ghostEl: M,
|
|
@@ -9564,14 +9566,14 @@ var Vf = ["evt"], Le = function(e, t) {
|
|
|
9564
9566
|
cloneHidden: dt,
|
|
9565
9567
|
dragStarted: nn,
|
|
9566
9568
|
putSortable: Ee,
|
|
9567
|
-
activeSortable:
|
|
9569
|
+
activeSortable: R.active,
|
|
9568
9570
|
originalEvent: o,
|
|
9569
9571
|
oldIndex: $t,
|
|
9570
9572
|
oldDraggableIndex: _n,
|
|
9571
9573
|
newIndex: Me,
|
|
9572
9574
|
newDraggableIndex: _t,
|
|
9573
|
-
hideGhostForTarget:
|
|
9574
|
-
unhideGhostForTarget:
|
|
9575
|
+
hideGhostForTarget: rr,
|
|
9576
|
+
unhideGhostForTarget: lr,
|
|
9575
9577
|
cloneNowHidden: function() {
|
|
9576
9578
|
dt = !0;
|
|
9577
9579
|
},
|
|
@@ -9599,22 +9601,22 @@ function Ce(e) {
|
|
|
9599
9601
|
newDraggableIndex: _t
|
|
9600
9602
|
}, e));
|
|
9601
9603
|
}
|
|
9602
|
-
var T, ce, M, ae, Ct, Kn, le, dt, $t, Me, _n, _t, Dn, Ee, Kt = !1, no = !1, oo = [], It, Ye, Wo, Xo, ws, Vs, nn, Vt, pn, dn = !1, Mn = !1, Hn, Oe, zo = [], hi = !1, io = [], Lo = typeof document < "u", Pn =
|
|
9604
|
+
var T, ce, M, ae, Ct, Kn, le, dt, $t, Me, _n, _t, Dn, Ee, Kt = !1, no = !1, oo = [], It, Ye, Wo, Xo, ws, Vs, nn, Vt, pn, dn = !1, Mn = !1, Hn, Oe, zo = [], hi = !1, io = [], Lo = typeof document < "u", Pn = Ja, Fs = On || ut ? "cssFloat" : "float", Ff = Lo && !qa && !Ja && "draggable" in document.createElement("div"), ir = function() {
|
|
9603
9605
|
if (Lo) {
|
|
9604
9606
|
if (ut)
|
|
9605
9607
|
return !1;
|
|
9606
9608
|
var e = document.createElement("x");
|
|
9607
9609
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
9608
9610
|
}
|
|
9609
|
-
}(),
|
|
9610
|
-
var n =
|
|
9611
|
+
}(), sr = function(e, t) {
|
|
9612
|
+
var n = B(e), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Jt(e, 0, t), s = Jt(e, 1, t), a = i && B(i), r = s && B(s), c = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + fe(i).width, _ = r && parseInt(r.marginLeft) + parseInt(r.marginRight) + fe(s).width;
|
|
9611
9613
|
if (n.display === "flex")
|
|
9612
9614
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
9613
9615
|
if (n.display === "grid")
|
|
9614
9616
|
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
9615
9617
|
if (i && a.float && a.float !== "none") {
|
|
9616
|
-
var
|
|
9617
|
-
return s && (r.clear === "both" || r.clear ===
|
|
9618
|
+
var p = a.float === "left" ? "left" : "right";
|
|
9619
|
+
return s && (r.clear === "both" || r.clear === p) ? "vertical" : "horizontal";
|
|
9618
9620
|
}
|
|
9619
9621
|
return i && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || c >= o && n[Fs] === "none" || s && n[Fs] === "none" && c + _ > o) ? "vertical" : "horizontal";
|
|
9620
9622
|
}, Yf = function(e, t, n) {
|
|
@@ -9625,16 +9627,16 @@ var T, ce, M, ae, Ct, Kn, le, dt, $t, Me, _n, _t, Dn, Ee, Kt = !1, no = !1, oo =
|
|
|
9625
9627
|
return oo.some(function(o) {
|
|
9626
9628
|
var i = o[Pe].options.emptyInsertThreshold;
|
|
9627
9629
|
if (!(!i || Pi(o))) {
|
|
9628
|
-
var s =
|
|
9630
|
+
var s = fe(o), a = e >= s.left - i && e <= s.right + i, r = t >= s.top - i && t <= s.bottom + i;
|
|
9629
9631
|
if (a && r)
|
|
9630
9632
|
return n = o;
|
|
9631
9633
|
}
|
|
9632
9634
|
}), n;
|
|
9633
|
-
},
|
|
9635
|
+
}, ar = function(e) {
|
|
9634
9636
|
function t(i, s) {
|
|
9635
9637
|
return function(a, r, c, _) {
|
|
9636
|
-
var
|
|
9637
|
-
if (i == null && (s ||
|
|
9638
|
+
var p = a.options.group.name && r.options.group.name && a.options.group.name === r.options.group.name;
|
|
9639
|
+
if (i == null && (s || p))
|
|
9638
9640
|
return !0;
|
|
9639
9641
|
if (i == null || i === !1)
|
|
9640
9642
|
return !1;
|
|
@@ -9642,20 +9644,20 @@ var T, ce, M, ae, Ct, Kn, le, dt, $t, Me, _n, _t, Dn, Ee, Kt = !1, no = !1, oo =
|
|
|
9642
9644
|
return i;
|
|
9643
9645
|
if (typeof i == "function")
|
|
9644
9646
|
return t(i(a, r, c, _), s)(a, r, c, _);
|
|
9645
|
-
var
|
|
9646
|
-
return i === !0 || typeof i == "string" && i ===
|
|
9647
|
+
var d = (s ? a : r).options.group.name;
|
|
9648
|
+
return i === !0 || typeof i == "string" && i === d || i.join && i.indexOf(d) > -1;
|
|
9647
9649
|
};
|
|
9648
9650
|
}
|
|
9649
9651
|
var n = {}, o = e.group;
|
|
9650
9652
|
(!o || Yn(o) != "object") && (o = {
|
|
9651
9653
|
name: o
|
|
9652
9654
|
}), n.name = o.name, n.checkPull = t(o.pull, !0), n.checkPut = t(o.put), n.revertClone = o.revertClone, e.group = n;
|
|
9653
|
-
}, ar = function() {
|
|
9654
|
-
!or && M && k(M, "display", "none");
|
|
9655
9655
|
}, rr = function() {
|
|
9656
|
-
!
|
|
9656
|
+
!ir && M && B(M, "display", "none");
|
|
9657
|
+
}, lr = function() {
|
|
9658
|
+
!ir && M && B(M, "display", "");
|
|
9657
9659
|
};
|
|
9658
|
-
Lo && !
|
|
9660
|
+
Lo && !qa && document.addEventListener("click", function(e) {
|
|
9659
9661
|
if (no)
|
|
9660
9662
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), no = !1, !1;
|
|
9661
9663
|
}, !0);
|
|
@@ -9673,7 +9675,7 @@ var yt = function(e) {
|
|
|
9673
9675
|
}, Hf = function(e) {
|
|
9674
9676
|
T && T.parentNode[Pe]._isOutsideThisEl(e.target);
|
|
9675
9677
|
};
|
|
9676
|
-
function
|
|
9678
|
+
function R(e, t) {
|
|
9677
9679
|
if (!(e && e.nodeType && e.nodeType === 1))
|
|
9678
9680
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
9679
9681
|
this.el = e, this.options = t = lt({}, t), e[Pe] = this;
|
|
@@ -9692,7 +9694,7 @@ function B(e, t) {
|
|
|
9692
9694
|
// will be set to same as swapThreshold if default
|
|
9693
9695
|
removeCloneOnHide: !0,
|
|
9694
9696
|
direction: function() {
|
|
9695
|
-
return
|
|
9697
|
+
return sr(e, this.options);
|
|
9696
9698
|
},
|
|
9697
9699
|
ghostClass: "sortable-ghost",
|
|
9698
9700
|
chosenClass: "sortable-chosen",
|
|
@@ -9719,20 +9721,20 @@ function B(e, t) {
|
|
|
9719
9721
|
x: 0,
|
|
9720
9722
|
y: 0
|
|
9721
9723
|
},
|
|
9722
|
-
supportPointer:
|
|
9724
|
+
supportPointer: R.supportPointer !== !1 && "PointerEvent" in window && !cn,
|
|
9723
9725
|
emptyInsertThreshold: 5
|
|
9724
9726
|
};
|
|
9725
9727
|
In.initializePlugins(this, e, n);
|
|
9726
9728
|
for (var o in n)
|
|
9727
9729
|
!(o in t) && (t[o] = n[o]);
|
|
9728
|
-
|
|
9730
|
+
ar(t);
|
|
9729
9731
|
for (var i in this)
|
|
9730
9732
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
9731
|
-
this.nativeDraggable = t.forceFallback ? !1 : Ff, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ?
|
|
9733
|
+
this.nativeDraggable = t.forceFallback ? !1 : Ff, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? W(e, "pointerdown", this._onTapStart) : (W(e, "mousedown", this._onTapStart), W(e, "touchstart", this._onTapStart)), this.nativeDraggable && (W(e, "dragover", this), W(e, "dragenter", this)), oo.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), lt(this, Pf());
|
|
9732
9734
|
}
|
|
9733
|
-
|
|
9735
|
+
R.prototype = /** @lends Sortable.prototype */
|
|
9734
9736
|
{
|
|
9735
|
-
constructor:
|
|
9737
|
+
constructor: R,
|
|
9736
9738
|
_isOutsideThisEl: function(e) {
|
|
9737
9739
|
!this.el.contains(e) && e !== this.el && (Vt = null);
|
|
9738
9740
|
},
|
|
@@ -9752,21 +9754,21 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9752
9754
|
targetEl: r,
|
|
9753
9755
|
toEl: n,
|
|
9754
9756
|
fromEl: n
|
|
9755
|
-
}),
|
|
9757
|
+
}), Se("filter", t, {
|
|
9756
9758
|
evt: e
|
|
9757
9759
|
}), i && e.cancelable && e.preventDefault();
|
|
9758
9760
|
return;
|
|
9759
9761
|
}
|
|
9760
|
-
} else if (_ && (_ = _.split(",").some(function(
|
|
9761
|
-
if (
|
|
9762
|
+
} else if (_ && (_ = _.split(",").some(function(p) {
|
|
9763
|
+
if (p = Ke(c, p.trim(), n, !1), p)
|
|
9762
9764
|
return Ce({
|
|
9763
9765
|
sortable: t,
|
|
9764
|
-
rootEl:
|
|
9766
|
+
rootEl: p,
|
|
9765
9767
|
name: "filter",
|
|
9766
9768
|
targetEl: r,
|
|
9767
9769
|
fromEl: n,
|
|
9768
9770
|
toEl: n
|
|
9769
|
-
}),
|
|
9771
|
+
}), Se("filter", t, {
|
|
9770
9772
|
evt: e
|
|
9771
9773
|
}), !0;
|
|
9772
9774
|
}), _)) {
|
|
@@ -9780,15 +9782,15 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9780
9782
|
_prepareDragStart: function(e, t, n) {
|
|
9781
9783
|
var o = this, i = o.el, s = o.options, a = i.ownerDocument, r;
|
|
9782
9784
|
if (n && !T && n.parentNode === i) {
|
|
9783
|
-
var c =
|
|
9784
|
-
if (ae = i, T = n, ce = T.parentNode, Ct = T.nextSibling, Kn = n, Dn = s.group,
|
|
9785
|
+
var c = fe(n);
|
|
9786
|
+
if (ae = i, T = n, ce = T.parentNode, Ct = T.nextSibling, Kn = n, Dn = s.group, R.dragged = T, It = {
|
|
9785
9787
|
target: T,
|
|
9786
9788
|
clientX: (t || e).clientX,
|
|
9787
9789
|
clientY: (t || e).clientY
|
|
9788
9790
|
}, ws = It.clientX - c.left, Vs = It.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, T.style["will-change"] = "all", r = function() {
|
|
9789
|
-
if (
|
|
9791
|
+
if (Se("delayEnded", o, {
|
|
9790
9792
|
evt: e
|
|
9791
|
-
}),
|
|
9793
|
+
}), R.eventCanceled) {
|
|
9792
9794
|
o._onDrop();
|
|
9793
9795
|
return;
|
|
9794
9796
|
}
|
|
@@ -9798,15 +9800,15 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9798
9800
|
originalEvent: e
|
|
9799
9801
|
}), De(T, s.chosenClass, !0);
|
|
9800
9802
|
}, s.ignore.split(",").forEach(function(_) {
|
|
9801
|
-
|
|
9802
|
-
}),
|
|
9803
|
+
Za(T, _.trim(), Jo);
|
|
9804
|
+
}), W(a, "dragover", yt), W(a, "mousemove", yt), W(a, "touchmove", yt), W(a, "mouseup", o._onDrop), W(a, "touchend", o._onDrop), W(a, "touchcancel", o._onDrop), Ms && this.nativeDraggable && (this.options.touchStartThreshold = 4, T.draggable = !0), Se("delayStart", this, {
|
|
9803
9805
|
evt: e
|
|
9804
9806
|
}), s.delay && (!s.delayOnTouchOnly || t) && (!this.nativeDraggable || !(On || ut))) {
|
|
9805
|
-
if (
|
|
9807
|
+
if (R.eventCanceled) {
|
|
9806
9808
|
this._onDrop();
|
|
9807
9809
|
return;
|
|
9808
9810
|
}
|
|
9809
|
-
|
|
9811
|
+
W(a, "mouseup", o._disableDelayedDrag), W(a, "touchend", o._disableDelayedDrag), W(a, "touchcancel", o._disableDelayedDrag), W(a, "mousemove", o._delayedDragTouchMoveHandler), W(a, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && W(a, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(r, s.delay);
|
|
9810
9812
|
} else
|
|
9811
9813
|
r();
|
|
9812
9814
|
}
|
|
@@ -9823,7 +9825,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9823
9825
|
$(e, "mouseup", this._disableDelayedDrag), $(e, "touchend", this._disableDelayedDrag), $(e, "touchcancel", this._disableDelayedDrag), $(e, "mousemove", this._delayedDragTouchMoveHandler), $(e, "touchmove", this._delayedDragTouchMoveHandler), $(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
9824
9826
|
},
|
|
9825
9827
|
_triggerDragStart: function(e, t) {
|
|
9826
|
-
t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ?
|
|
9828
|
+
t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? W(document, "pointermove", this._onTouchMove) : t ? W(document, "touchmove", this._onTouchMove) : W(document, "mousemove", this._onTouchMove) : (W(T, "dragend", this), W(ae, "dragstart", this._onDragStart));
|
|
9827
9829
|
try {
|
|
9828
9830
|
document.selection ? $n(function() {
|
|
9829
9831
|
document.selection.empty();
|
|
@@ -9833,11 +9835,11 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9833
9835
|
},
|
|
9834
9836
|
_dragStarted: function(e, t) {
|
|
9835
9837
|
if (Kt = !1, ae && T) {
|
|
9836
|
-
|
|
9838
|
+
Se("dragStarted", this, {
|
|
9837
9839
|
evt: t
|
|
9838
|
-
}), this.nativeDraggable &&
|
|
9840
|
+
}), this.nativeDraggable && W(document, "dragover", Hf);
|
|
9839
9841
|
var n = this.options;
|
|
9840
|
-
!e && De(T, n.dragClass, !1), De(T, n.ghostClass, !0),
|
|
9842
|
+
!e && De(T, n.dragClass, !1), De(T, n.ghostClass, !0), R.active = this, e && this._appendGhost(), Ce({
|
|
9841
9843
|
sortable: this,
|
|
9842
9844
|
name: "start",
|
|
9843
9845
|
originalEvent: t
|
|
@@ -9847,7 +9849,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9847
9849
|
},
|
|
9848
9850
|
_emulateDragOver: function() {
|
|
9849
9851
|
if (Ye) {
|
|
9850
|
-
this._lastX = Ye.clientX, this._lastY = Ye.clientY,
|
|
9852
|
+
this._lastX = Ye.clientX, this._lastY = Ye.clientY, rr();
|
|
9851
9853
|
for (var e = document.elementFromPoint(Ye.clientX, Ye.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Ye.clientX, Ye.clientY), e !== t); )
|
|
9852
9854
|
t = e;
|
|
9853
9855
|
if (T.parentNode[Pe]._isOutsideThisEl(e), t)
|
|
@@ -9864,90 +9866,90 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9864
9866
|
}
|
|
9865
9867
|
e = t;
|
|
9866
9868
|
} while (t = t.parentNode);
|
|
9867
|
-
|
|
9869
|
+
lr();
|
|
9868
9870
|
}
|
|
9869
9871
|
},
|
|
9870
9872
|
_onTouchMove: function(e) {
|
|
9871
9873
|
if (It) {
|
|
9872
|
-
var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = M && jt(M, !0), a = M && s && s.a, r = M && s && s.d, c = Pn && Oe && Us(Oe), _ = (i.clientX - It.clientX + o.x) / (a || 1) + (c ? c[0] - zo[0] : 0) / (a || 1),
|
|
9873
|
-
if (!
|
|
9874
|
+
var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = M && jt(M, !0), a = M && s && s.a, r = M && s && s.d, c = Pn && Oe && Us(Oe), _ = (i.clientX - It.clientX + o.x) / (a || 1) + (c ? c[0] - zo[0] : 0) / (a || 1), p = (i.clientY - It.clientY + o.y) / (r || 1) + (c ? c[1] - zo[1] : 0) / (r || 1);
|
|
9875
|
+
if (!R.active && !Kt) {
|
|
9874
9876
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
|
|
9875
9877
|
return;
|
|
9876
9878
|
this._onDragStart(e, !0);
|
|
9877
9879
|
}
|
|
9878
9880
|
if (M) {
|
|
9879
|
-
s ? (s.e += _ - (Wo || 0), s.f +=
|
|
9881
|
+
s ? (s.e += _ - (Wo || 0), s.f += p - (Xo || 0)) : s = {
|
|
9880
9882
|
a: 1,
|
|
9881
9883
|
b: 0,
|
|
9882
9884
|
c: 0,
|
|
9883
9885
|
d: 1,
|
|
9884
9886
|
e: _,
|
|
9885
|
-
f:
|
|
9887
|
+
f: p
|
|
9886
9888
|
};
|
|
9887
|
-
var
|
|
9888
|
-
|
|
9889
|
+
var d = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
9890
|
+
B(M, "webkitTransform", d), B(M, "mozTransform", d), B(M, "msTransform", d), B(M, "transform", d), Wo = _, Xo = p, Ye = i;
|
|
9889
9891
|
}
|
|
9890
9892
|
e.cancelable && e.preventDefault();
|
|
9891
9893
|
}
|
|
9892
9894
|
},
|
|
9893
9895
|
_appendGhost: function() {
|
|
9894
9896
|
if (!M) {
|
|
9895
|
-
var e = this.options.fallbackOnBody ? document.body : ae, t =
|
|
9897
|
+
var e = this.options.fallbackOnBody ? document.body : ae, t = fe(T, !0, Pn, !0, e), n = this.options;
|
|
9896
9898
|
if (Pn) {
|
|
9897
|
-
for (Oe = e;
|
|
9899
|
+
for (Oe = e; B(Oe, "position") === "static" && B(Oe, "transform") === "none" && Oe !== document; )
|
|
9898
9900
|
Oe = Oe.parentNode;
|
|
9899
9901
|
Oe !== document.body && Oe !== document.documentElement ? (Oe === document && (Oe = ze()), t.top += Oe.scrollTop, t.left += Oe.scrollLeft) : Oe = ze(), zo = Us(Oe);
|
|
9900
9902
|
}
|
|
9901
|
-
M = T.cloneNode(!0), De(M, n.ghostClass, !1), De(M, n.fallbackClass, !0), De(M, n.dragClass, !0),
|
|
9903
|
+
M = T.cloneNode(!0), De(M, n.ghostClass, !1), De(M, n.fallbackClass, !0), De(M, n.dragClass, !0), B(M, "transition", ""), B(M, "transform", ""), B(M, "box-sizing", "border-box"), B(M, "margin", 0), B(M, "top", t.top), B(M, "left", t.left), B(M, "width", t.width), B(M, "height", t.height), B(M, "opacity", "0.8"), B(M, "position", Pn ? "absolute" : "fixed"), B(M, "zIndex", "100000"), B(M, "pointerEvents", "none"), R.ghost = M, e.appendChild(M), B(M, "transform-origin", ws / parseInt(M.style.width) * 100 + "% " + Vs / parseInt(M.style.height) * 100 + "%");
|
|
9902
9904
|
}
|
|
9903
9905
|
},
|
|
9904
9906
|
_onDragStart: function(e, t) {
|
|
9905
9907
|
var n = this, o = e.dataTransfer, i = n.options;
|
|
9906
|
-
if (
|
|
9908
|
+
if (Se("dragStart", this, {
|
|
9907
9909
|
evt: e
|
|
9908
|
-
}),
|
|
9910
|
+
}), R.eventCanceled) {
|
|
9909
9911
|
this._onDrop();
|
|
9910
9912
|
return;
|
|
9911
9913
|
}
|
|
9912
|
-
|
|
9913
|
-
|
|
9914
|
+
Se("setupClone", this), R.eventCanceled || (le = nr(T), le.removeAttribute("id"), le.draggable = !1, le.style["will-change"] = "", this._hideClone(), De(le, this.options.chosenClass, !1), R.clone = le), n.cloneId = $n(function() {
|
|
9915
|
+
Se("clone", n), !R.eventCanceled && (n.options.removeCloneOnHide || ae.insertBefore(le, T), n._hideClone(), Ce({
|
|
9914
9916
|
sortable: n,
|
|
9915
9917
|
name: "clone"
|
|
9916
9918
|
}));
|
|
9917
|
-
}), !t && De(T, i.dragClass, !0), t ? (no = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : ($(document, "mouseup", n._onDrop), $(document, "touchend", n._onDrop), $(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, T)),
|
|
9919
|
+
}), !t && De(T, i.dragClass, !0), t ? (no = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : ($(document, "mouseup", n._onDrop), $(document, "touchend", n._onDrop), $(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, T)), W(document, "drop", n), B(T, "transform", "translateZ(0)")), Kt = !0, n._dragStartId = $n(n._dragStarted.bind(n, t, e)), W(document, "selectstart", n), nn = !0, cn && B(document.body, "user-select", "none");
|
|
9918
9920
|
},
|
|
9919
9921
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
9920
9922
|
_onDragOver: function(e) {
|
|
9921
|
-
var t = this.el, n = e.target, o, i, s, a = this.options, r = a.group, c =
|
|
9923
|
+
var t = this.el, n = e.target, o, i, s, a = this.options, r = a.group, c = R.active, _ = Dn === r, p = a.sort, d = Ee || c, f, g = this, b = !1;
|
|
9922
9924
|
if (hi)
|
|
9923
9925
|
return;
|
|
9924
9926
|
function E(h, A) {
|
|
9925
|
-
|
|
9927
|
+
Se(h, g, qe({
|
|
9926
9928
|
evt: e,
|
|
9927
9929
|
isOwner: _,
|
|
9928
9930
|
axis: f ? "vertical" : "horizontal",
|
|
9929
9931
|
revert: s,
|
|
9930
9932
|
dragRect: o,
|
|
9931
9933
|
targetRect: i,
|
|
9932
|
-
canSort:
|
|
9933
|
-
fromSortable:
|
|
9934
|
+
canSort: p,
|
|
9935
|
+
fromSortable: d,
|
|
9934
9936
|
target: n,
|
|
9935
|
-
completed:
|
|
9937
|
+
completed: S,
|
|
9936
9938
|
onMove: function(D, Y) {
|
|
9937
|
-
return xn(ae, t, T, o, D,
|
|
9939
|
+
return xn(ae, t, T, o, D, fe(D), e, Y);
|
|
9938
9940
|
},
|
|
9939
9941
|
changed: F
|
|
9940
9942
|
}, A));
|
|
9941
9943
|
}
|
|
9942
|
-
function
|
|
9943
|
-
E("dragOverAnimationCapture"), g.captureAnimationState(), g !==
|
|
9944
|
+
function C() {
|
|
9945
|
+
E("dragOverAnimationCapture"), g.captureAnimationState(), g !== d && d.captureAnimationState();
|
|
9944
9946
|
}
|
|
9945
|
-
function
|
|
9947
|
+
function S(h) {
|
|
9946
9948
|
return E("dragOverCompleted", {
|
|
9947
9949
|
insertion: h
|
|
9948
|
-
}), h && (_ ? c._hideClone() : c._showClone(g), g !==
|
|
9950
|
+
}), h && (_ ? c._hideClone() : c._showClone(g), g !== d && (De(T, Ee ? Ee.options.ghostClass : c.options.ghostClass, !1), De(T, a.ghostClass, !0)), Ee !== g && g !== R.active ? Ee = g : g === R.active && Ee && (Ee = null), d === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
|
|
9949
9951
|
E("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
|
|
9950
|
-
}), g !==
|
|
9952
|
+
}), g !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === T && !T.animated || n === t && !n.animated) && (Vt = null), !a.dragoverBubble && !e.rootEl && n !== document && (T.parentNode[Pe]._isOutsideThisEl(e.target), !h && yt(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), b = !0;
|
|
9951
9953
|
}
|
|
9952
9954
|
function F() {
|
|
9953
9955
|
Me = Ue(T), _t = Ue(T, a.draggable), Ce({
|
|
@@ -9959,49 +9961,49 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
9959
9961
|
originalEvent: e
|
|
9960
9962
|
});
|
|
9961
9963
|
}
|
|
9962
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ke(n, a.draggable, t, !0), E("dragOver"),
|
|
9964
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ke(n, a.draggable, t, !0), E("dragOver"), R.eventCanceled)
|
|
9963
9965
|
return b;
|
|
9964
9966
|
if (T.contains(e.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
|
|
9965
|
-
return
|
|
9966
|
-
if (no = !1, c && !a.disabled && (_ ?
|
|
9967
|
-
if (f = this._getDirection(e, n) === "vertical", o =
|
|
9967
|
+
return S(!1);
|
|
9968
|
+
if (no = !1, c && !a.disabled && (_ ? p || (s = ce !== ae) : Ee === this || (this.lastPutMode = Dn.checkPull(this, c, T, e)) && r.checkPut(this, c, T, e))) {
|
|
9969
|
+
if (f = this._getDirection(e, n) === "vertical", o = fe(T), E("dragOverValid"), R.eventCanceled)
|
|
9968
9970
|
return b;
|
|
9969
9971
|
if (s)
|
|
9970
|
-
return ce = ae,
|
|
9972
|
+
return ce = ae, C(), this._hideClone(), E("revert"), R.eventCanceled || (Ct ? ae.insertBefore(T, Ct) : ae.appendChild(T)), S(!0);
|
|
9971
9973
|
var H = Pi(t, a.draggable);
|
|
9972
9974
|
if (!H || Wf(e, f, this) && !H.animated) {
|
|
9973
9975
|
if (H === T)
|
|
9974
|
-
return
|
|
9975
|
-
if (H && t === e.target && (n = H), n && (i =
|
|
9976
|
-
return
|
|
9976
|
+
return S(!1);
|
|
9977
|
+
if (H && t === e.target && (n = H), n && (i = fe(n)), xn(ae, t, T, o, n, i, e, !!n) !== !1)
|
|
9978
|
+
return C(), H && H.nextSibling ? t.insertBefore(T, H.nextSibling) : t.appendChild(T), ce = t, F(), S(!0);
|
|
9977
9979
|
} else if (H && jf(e, f, this)) {
|
|
9978
9980
|
var te = Jt(t, 0, a, !0);
|
|
9979
9981
|
if (te === T)
|
|
9980
|
-
return
|
|
9981
|
-
if (n = te, i =
|
|
9982
|
-
return
|
|
9982
|
+
return S(!1);
|
|
9983
|
+
if (n = te, i = fe(n), xn(ae, t, T, o, n, i, e, !1) !== !1)
|
|
9984
|
+
return C(), t.insertBefore(T, te), ce = t, F(), S(!0);
|
|
9983
9985
|
} else if (n.parentNode === t) {
|
|
9984
|
-
i =
|
|
9985
|
-
var
|
|
9986
|
-
Vt !== n && (_e = i[
|
|
9987
|
-
var
|
|
9988
|
-
if (
|
|
9989
|
-
var
|
|
9986
|
+
i = fe(n);
|
|
9987
|
+
var G = 0, _e, Be = T.parentNode !== t, N = !Yf(T.animated && T.toRect || o, n.animated && n.toRect || i, f), L = f ? "top" : "left", X = xs(n, "top", "top") || xs(T, "top", "top"), ne = X ? X.scrollTop : void 0;
|
|
9988
|
+
Vt !== n && (_e = i[L], dn = !1, Mn = !N && a.invertSwap || Be), G = Xf(e, n, i, f, N ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Mn, Vt === n);
|
|
9989
|
+
var j;
|
|
9990
|
+
if (G !== 0) {
|
|
9991
|
+
var k = Ue(T);
|
|
9990
9992
|
do
|
|
9991
|
-
|
|
9992
|
-
while (
|
|
9993
|
+
k -= G, j = ce.children[k];
|
|
9994
|
+
while (j && (B(j, "display") === "none" || j === M));
|
|
9993
9995
|
}
|
|
9994
|
-
if (
|
|
9995
|
-
return
|
|
9996
|
-
Vt = n, pn =
|
|
9997
|
-
var
|
|
9998
|
-
|
|
9999
|
-
var
|
|
10000
|
-
if (
|
|
10001
|
-
return (
|
|
9996
|
+
if (G === 0 || j === n)
|
|
9997
|
+
return S(!1);
|
|
9998
|
+
Vt = n, pn = G;
|
|
9999
|
+
var q = n.nextElementSibling, z = !1;
|
|
10000
|
+
z = G === 1;
|
|
10001
|
+
var pe = xn(ae, t, T, o, n, i, e, z);
|
|
10002
|
+
if (pe !== !1)
|
|
10003
|
+
return (pe === 1 || pe === -1) && (z = pe === 1), hi = !0, setTimeout(Gf, 30), C(), z && !q ? t.appendChild(T) : n.parentNode.insertBefore(T, z ? q : n), X && tr(X, 0, ne - X.scrollTop), ce = T.parentNode, _e !== void 0 && !Mn && (Hn = Math.abs(_e - fe(n)[L])), F(), S(!0);
|
|
10002
10004
|
}
|
|
10003
10005
|
if (t.contains(T))
|
|
10004
|
-
return
|
|
10006
|
+
return S(!1);
|
|
10005
10007
|
}
|
|
10006
10008
|
return !1;
|
|
10007
10009
|
},
|
|
@@ -10015,13 +10017,13 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
10015
10017
|
},
|
|
10016
10018
|
_onDrop: function(e) {
|
|
10017
10019
|
var t = this.el, n = this.options;
|
|
10018
|
-
if (Me = Ue(T), _t = Ue(T, n.draggable),
|
|
10020
|
+
if (Me = Ue(T), _t = Ue(T, n.draggable), Se("drop", this, {
|
|
10019
10021
|
evt: e
|
|
10020
|
-
}), ce = T && T.parentNode, Me = Ue(T), _t = Ue(T, n.draggable),
|
|
10022
|
+
}), ce = T && T.parentNode, Me = Ue(T), _t = Ue(T, n.draggable), R.eventCanceled) {
|
|
10021
10023
|
this._nulling();
|
|
10022
10024
|
return;
|
|
10023
10025
|
}
|
|
10024
|
-
Kt = !1, Mn = !1, dn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), gi(this.cloneId), gi(this._dragStartId), this.nativeDraggable && ($(document, "drop", this), $(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), cn &&
|
|
10026
|
+
Kt = !1, Mn = !1, dn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), gi(this.cloneId), gi(this._dragStartId), this.nativeDraggable && ($(document, "drop", this), $(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), cn && B(document.body, "user-select", ""), B(T, "transform", ""), e && (nn && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), M && M.parentNode && M.parentNode.removeChild(M), (ae === ce || Ee && Ee.lastPutMode !== "clone") && le && le.parentNode && le.parentNode.removeChild(le), T && (this.nativeDraggable && $(T, "dragend", this), Jo(T), T.style["will-change"] = "", nn && !Kt && De(T, Ee ? Ee.options.ghostClass : this.options.ghostClass, !1), De(T, this.options.chosenClass, !1), Ce({
|
|
10025
10027
|
sortable: this,
|
|
10026
10028
|
name: "unchoose",
|
|
10027
10029
|
toEl: ce,
|
|
@@ -10060,7 +10062,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
10060
10062
|
name: "sort",
|
|
10061
10063
|
toEl: ce,
|
|
10062
10064
|
originalEvent: e
|
|
10063
|
-
})),
|
|
10065
|
+
})), R.active && ((Me == null || Me === -1) && (Me = $t, _t = _n), Ce({
|
|
10064
10066
|
sortable: this,
|
|
10065
10067
|
name: "end",
|
|
10066
10068
|
toEl: ce,
|
|
@@ -10068,7 +10070,7 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
10068
10070
|
}), this.save()))), this._nulling();
|
|
10069
10071
|
},
|
|
10070
10072
|
_nulling: function() {
|
|
10071
|
-
|
|
10073
|
+
Se("nulling", this), ae = T = ce = M = Ct = le = Kn = dt = It = Ye = nn = Me = _t = $t = _n = Vt = pn = Ee = Dn = R.dragged = R.ghost = R.clone = R.active = null, io.forEach(function(e) {
|
|
10072
10074
|
e.checked = !0;
|
|
10073
10075
|
}), io.length = Wo = Xo = 0;
|
|
10074
10076
|
},
|
|
@@ -10136,13 +10138,13 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
10136
10138
|
if (t === void 0)
|
|
10137
10139
|
return n[e];
|
|
10138
10140
|
var o = In.modifyOption(this, e, t);
|
|
10139
|
-
typeof o < "u" ? n[e] = o : n[e] = t, e === "group" &&
|
|
10141
|
+
typeof o < "u" ? n[e] = o : n[e] = t, e === "group" && ar(n);
|
|
10140
10142
|
},
|
|
10141
10143
|
/**
|
|
10142
10144
|
* Destroy
|
|
10143
10145
|
*/
|
|
10144
10146
|
destroy: function() {
|
|
10145
|
-
|
|
10147
|
+
Se("destroy", this);
|
|
10146
10148
|
var e = this.el;
|
|
10147
10149
|
e[Pe] = null, $(e, "mousedown", this._onTapStart), $(e, "touchstart", this._onTapStart), $(e, "pointerdown", this._onTapStart), this.nativeDraggable && ($(e, "dragover", this), $(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
|
|
10148
10150
|
t.removeAttribute("draggable");
|
|
@@ -10150,9 +10152,9 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
10150
10152
|
},
|
|
10151
10153
|
_hideClone: function() {
|
|
10152
10154
|
if (!dt) {
|
|
10153
|
-
if (
|
|
10155
|
+
if (Se("hideClone", this), R.eventCanceled)
|
|
10154
10156
|
return;
|
|
10155
|
-
|
|
10157
|
+
B(le, "display", "none"), this.options.removeCloneOnHide && le.parentNode && le.parentNode.removeChild(le), dt = !0;
|
|
10156
10158
|
}
|
|
10157
10159
|
},
|
|
10158
10160
|
_showClone: function(e) {
|
|
@@ -10161,9 +10163,9 @@ B.prototype = /** @lends Sortable.prototype */
|
|
|
10161
10163
|
return;
|
|
10162
10164
|
}
|
|
10163
10165
|
if (dt) {
|
|
10164
|
-
if (
|
|
10166
|
+
if (Se("showClone", this), R.eventCanceled)
|
|
10165
10167
|
return;
|
|
10166
|
-
T.parentNode == ae && !this.options.group.revertClone ? ae.insertBefore(le, T) : Ct ? ae.insertBefore(le, Ct) : ae.appendChild(le), this.options.group.revertClone && this.animate(T, le),
|
|
10168
|
+
T.parentNode == ae && !this.options.group.revertClone ? ae.insertBefore(le, T) : Ct ? ae.insertBefore(le, Ct) : ae.appendChild(le), this.options.group.revertClone && this.animate(T, le), B(le, "display", ""), dt = !1;
|
|
10167
10169
|
}
|
|
10168
10170
|
}
|
|
10169
10171
|
};
|
|
@@ -10171,11 +10173,11 @@ function $f(e) {
|
|
|
10171
10173
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
10172
10174
|
}
|
|
10173
10175
|
function xn(e, t, n, o, i, s, a, r) {
|
|
10174
|
-
var c, _ = e[Pe],
|
|
10176
|
+
var c, _ = e[Pe], p = _.options.onMove, d;
|
|
10175
10177
|
return window.CustomEvent && !ut && !On ? c = new CustomEvent("move", {
|
|
10176
10178
|
bubbles: !0,
|
|
10177
10179
|
cancelable: !0
|
|
10178
|
-
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = o, c.related = i || t, c.relatedRect = s ||
|
|
10180
|
+
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = o, c.related = i || t, c.relatedRect = s || fe(t), c.willInsertAfter = r, c.originalEvent = a, e.dispatchEvent(c), p && (d = p.call(_, c, a)), d;
|
|
10179
10181
|
}
|
|
10180
10182
|
function Jo(e) {
|
|
10181
10183
|
e.draggable = !1;
|
|
@@ -10184,25 +10186,25 @@ function Gf() {
|
|
|
10184
10186
|
hi = !1;
|
|
10185
10187
|
}
|
|
10186
10188
|
function jf(e, t, n) {
|
|
10187
|
-
var o =
|
|
10189
|
+
var o = fe(Jt(n.el, 0, n.options, !0)), i = or(n.el, n.options, M), s = 10;
|
|
10188
10190
|
return t ? e.clientX < i.left - s || e.clientY < o.top && e.clientX < o.right : e.clientY < i.top - s || e.clientY < o.bottom && e.clientX < o.left;
|
|
10189
10191
|
}
|
|
10190
10192
|
function Wf(e, t, n) {
|
|
10191
|
-
var o =
|
|
10193
|
+
var o = fe(Pi(n.el, n.options.draggable)), i = or(n.el, n.options, M), s = 10;
|
|
10192
10194
|
return t ? e.clientX > i.right + s || e.clientY > o.bottom && e.clientX > o.left : e.clientY > i.bottom + s || e.clientX > o.right && e.clientY > o.top;
|
|
10193
10195
|
}
|
|
10194
10196
|
function Xf(e, t, n, o, i, s, a, r) {
|
|
10195
|
-
var c = o ? e.clientY : e.clientX, _ = o ? n.height : n.width,
|
|
10197
|
+
var c = o ? e.clientY : e.clientX, _ = o ? n.height : n.width, p = o ? n.top : n.left, d = o ? n.bottom : n.right, f = !1;
|
|
10196
10198
|
if (!a) {
|
|
10197
10199
|
if (r && Hn < _ * i) {
|
|
10198
|
-
if (!dn && (pn === 1 ? c >
|
|
10200
|
+
if (!dn && (pn === 1 ? c > p + _ * s / 2 : c < d - _ * s / 2) && (dn = !0), dn)
|
|
10199
10201
|
f = !0;
|
|
10200
|
-
else if (pn === 1 ? c <
|
|
10202
|
+
else if (pn === 1 ? c < p + Hn : c > d - Hn)
|
|
10201
10203
|
return -pn;
|
|
10202
|
-
} else if (c >
|
|
10204
|
+
} else if (c > p + _ * (1 - i) / 2 && c < d - _ * (1 - i) / 2)
|
|
10203
10205
|
return zf(t);
|
|
10204
10206
|
}
|
|
10205
|
-
return f = f || a, f && (c <
|
|
10207
|
+
return f = f || a, f && (c < p + _ * s / 2 || c > d - _ * s / 2) ? c > p + _ / 2 ? 1 : -1 : 0;
|
|
10206
10208
|
}
|
|
10207
10209
|
function zf(e) {
|
|
10208
10210
|
return Ue(T) < Ue(e) ? 1 : -1;
|
|
@@ -10225,45 +10227,45 @@ function $n(e) {
|
|
|
10225
10227
|
function gi(e) {
|
|
10226
10228
|
return clearTimeout(e);
|
|
10227
10229
|
}
|
|
10228
|
-
Lo &&
|
|
10229
|
-
(
|
|
10230
|
+
Lo && W(document, "touchmove", function(e) {
|
|
10231
|
+
(R.active || Kt) && e.cancelable && e.preventDefault();
|
|
10230
10232
|
});
|
|
10231
|
-
|
|
10232
|
-
on:
|
|
10233
|
+
R.utils = {
|
|
10234
|
+
on: W,
|
|
10233
10235
|
off: $,
|
|
10234
|
-
css:
|
|
10235
|
-
find:
|
|
10236
|
+
css: B,
|
|
10237
|
+
find: Za,
|
|
10236
10238
|
is: function(e, t) {
|
|
10237
10239
|
return !!Ke(e, t, e, !1);
|
|
10238
10240
|
},
|
|
10239
10241
|
extend: Df,
|
|
10240
|
-
throttle:
|
|
10242
|
+
throttle: er,
|
|
10241
10243
|
closest: Ke,
|
|
10242
10244
|
toggleClass: De,
|
|
10243
|
-
clone:
|
|
10245
|
+
clone: nr,
|
|
10244
10246
|
index: Ue,
|
|
10245
10247
|
nextTick: $n,
|
|
10246
10248
|
cancelNextTick: gi,
|
|
10247
|
-
detectDirection:
|
|
10249
|
+
detectDirection: sr,
|
|
10248
10250
|
getChild: Jt
|
|
10249
10251
|
};
|
|
10250
|
-
|
|
10252
|
+
R.get = function(e) {
|
|
10251
10253
|
return e[Pe];
|
|
10252
10254
|
};
|
|
10253
|
-
|
|
10255
|
+
R.mount = function() {
|
|
10254
10256
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
10255
10257
|
t[n] = arguments[n];
|
|
10256
10258
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
|
|
10257
10259
|
if (!o.prototype || !o.prototype.constructor)
|
|
10258
10260
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
10259
|
-
o.utils && (
|
|
10261
|
+
o.utils && (R.utils = qe(qe({}, R.utils), o.utils)), In.mount(o);
|
|
10260
10262
|
});
|
|
10261
10263
|
};
|
|
10262
|
-
|
|
10263
|
-
return new
|
|
10264
|
+
R.create = function(e, t) {
|
|
10265
|
+
return new R(e, t);
|
|
10264
10266
|
};
|
|
10265
|
-
|
|
10266
|
-
var
|
|
10267
|
+
R.version = kf;
|
|
10268
|
+
var de = [], on, Ti, mi = !1, qo, Qo, so, sn;
|
|
10267
10269
|
function Qf() {
|
|
10268
10270
|
function e() {
|
|
10269
10271
|
this.defaults = {
|
|
@@ -10279,7 +10281,7 @@ function Qf() {
|
|
|
10279
10281
|
return e.prototype = {
|
|
10280
10282
|
dragStarted: function(t) {
|
|
10281
10283
|
var n = t.originalEvent;
|
|
10282
|
-
this.sortable.nativeDraggable ?
|
|
10284
|
+
this.sortable.nativeDraggable ? W(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? W(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? W(document, "touchmove", this._handleFallbackAutoScroll) : W(document, "mousemove", this._handleFallbackAutoScroll);
|
|
10283
10285
|
},
|
|
10284
10286
|
dragOverCompleted: function(t) {
|
|
10285
10287
|
var n = t.originalEvent;
|
|
@@ -10289,7 +10291,7 @@ function Qf() {
|
|
|
10289
10291
|
this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), Ys(), Gn(), Mf();
|
|
10290
10292
|
},
|
|
10291
10293
|
nulling: function() {
|
|
10292
|
-
so = Ti = on = mi = sn = qo = Qo = null,
|
|
10294
|
+
so = Ti = on = mi = sn = qo = Qo = null, de.length = 0;
|
|
10293
10295
|
},
|
|
10294
10296
|
_handleFallbackAutoScroll: function(t) {
|
|
10295
10297
|
this._handleAutoScroll(t, !0);
|
|
@@ -10317,42 +10319,42 @@ function Qf() {
|
|
|
10317
10319
|
});
|
|
10318
10320
|
}
|
|
10319
10321
|
function Gn() {
|
|
10320
|
-
|
|
10322
|
+
de.forEach(function(e) {
|
|
10321
10323
|
clearInterval(e.pid);
|
|
10322
|
-
}),
|
|
10324
|
+
}), de = [];
|
|
10323
10325
|
}
|
|
10324
10326
|
function Ys() {
|
|
10325
10327
|
clearInterval(sn);
|
|
10326
10328
|
}
|
|
10327
|
-
var Zo =
|
|
10329
|
+
var Zo = er(function(e, t, n, o) {
|
|
10328
10330
|
if (t.scroll) {
|
|
10329
|
-
var i = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, r = t.scrollSpeed, c = ze(), _ = !1,
|
|
10330
|
-
Ti !== n && (Ti = n, Gn(), on = t.scroll,
|
|
10331
|
-
var
|
|
10331
|
+
var i = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, r = t.scrollSpeed, c = ze(), _ = !1, p;
|
|
10332
|
+
Ti !== n && (Ti = n, Gn(), on = t.scroll, p = t.scrollFn, on === !0 && (on = gt(n, !0)));
|
|
10333
|
+
var d = 0, f = on;
|
|
10332
10334
|
do {
|
|
10333
|
-
var g = f, b =
|
|
10334
|
-
g === c ? (
|
|
10335
|
-
var
|
|
10336
|
-
if (!
|
|
10337
|
-
for (var
|
|
10338
|
-
|
|
10339
|
-
(
|
|
10340
|
-
o && this.layer === 0 &&
|
|
10341
|
-
var
|
|
10342
|
-
typeof
|
|
10335
|
+
var g = f, b = fe(g), E = b.top, C = b.bottom, S = b.left, F = b.right, H = b.width, te = b.height, G = void 0, _e = void 0, Be = g.scrollWidth, N = g.scrollHeight, L = B(g), X = g.scrollLeft, ne = g.scrollTop;
|
|
10336
|
+
g === c ? (G = H < Be && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), _e = te < N && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : (G = H < Be && (L.overflowX === "auto" || L.overflowX === "scroll"), _e = te < N && (L.overflowY === "auto" || L.overflowY === "scroll"));
|
|
10337
|
+
var j = G && (Math.abs(F - i) <= a && X + H < Be) - (Math.abs(S - i) <= a && !!X), k = _e && (Math.abs(C - s) <= a && ne + te < N) - (Math.abs(E - s) <= a && !!ne);
|
|
10338
|
+
if (!de[d])
|
|
10339
|
+
for (var q = 0; q <= d; q++)
|
|
10340
|
+
de[q] || (de[q] = {});
|
|
10341
|
+
(de[d].vx != j || de[d].vy != k || de[d].el !== g) && (de[d].el = g, de[d].vx = j, de[d].vy = k, clearInterval(de[d].pid), (j != 0 || k != 0) && (_ = !0, de[d].pid = setInterval((function() {
|
|
10342
|
+
o && this.layer === 0 && R.active._onTouchMove(so);
|
|
10343
|
+
var z = de[this.layer].vy ? de[this.layer].vy * r : 0, pe = de[this.layer].vx ? de[this.layer].vx * r : 0;
|
|
10344
|
+
typeof p == "function" && p.call(R.dragged.parentNode[Pe], pe, z, e, so, de[this.layer].el) !== "continue" || tr(de[this.layer].el, pe, z);
|
|
10343
10345
|
}).bind({
|
|
10344
|
-
layer:
|
|
10345
|
-
}), 24))),
|
|
10346
|
+
layer: d
|
|
10347
|
+
}), 24))), d++;
|
|
10346
10348
|
} while (t.bubbleScroll && f !== c && (f = gt(f, !1)));
|
|
10347
10349
|
mi = _;
|
|
10348
10350
|
}
|
|
10349
|
-
}, 30),
|
|
10351
|
+
}, 30), cr = function(e) {
|
|
10350
10352
|
var t = e.originalEvent, n = e.putSortable, o = e.dragEl, i = e.activeSortable, s = e.dispatchSortableEvent, a = e.hideGhostForTarget, r = e.unhideGhostForTarget;
|
|
10351
10353
|
if (t) {
|
|
10352
10354
|
var c = n || i;
|
|
10353
10355
|
a();
|
|
10354
|
-
var _ = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t,
|
|
10355
|
-
r(), c && !c.el.contains(
|
|
10356
|
+
var _ = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, p = document.elementFromPoint(_.clientX, _.clientY);
|
|
10357
|
+
r(), c && !c.el.contains(p) && (s("spill"), this.onSpill({
|
|
10356
10358
|
dragEl: o,
|
|
10357
10359
|
putSortable: n
|
|
10358
10360
|
}));
|
|
@@ -10372,7 +10374,7 @@ xi.prototype = {
|
|
|
10372
10374
|
var o = Jt(this.sortable.el, this.startIndex, this.options);
|
|
10373
10375
|
o ? this.sortable.el.insertBefore(t, o) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
10374
10376
|
},
|
|
10375
|
-
drop:
|
|
10377
|
+
drop: cr
|
|
10376
10378
|
};
|
|
10377
10379
|
lt(xi, {
|
|
10378
10380
|
pluginName: "revertOnSpill"
|
|
@@ -10384,30 +10386,30 @@ Ui.prototype = {
|
|
|
10384
10386
|
var t = e.dragEl, n = e.putSortable, o = n || this.sortable;
|
|
10385
10387
|
o.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), o.animateAll();
|
|
10386
10388
|
},
|
|
10387
|
-
drop:
|
|
10389
|
+
drop: cr
|
|
10388
10390
|
};
|
|
10389
10391
|
lt(Ui, {
|
|
10390
10392
|
pluginName: "removeOnSpill"
|
|
10391
10393
|
});
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
+
R.mount(new Qf());
|
|
10395
|
+
R.mount(Ui, xi);
|
|
10394
10396
|
function Zf(e) {
|
|
10395
10397
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
10396
10398
|
}
|
|
10397
10399
|
function eh(e) {
|
|
10398
|
-
ro() &&
|
|
10400
|
+
ro() && Yr(e);
|
|
10399
10401
|
}
|
|
10400
10402
|
function th(e) {
|
|
10401
10403
|
ro() ? Wt(e) : vi(e);
|
|
10402
10404
|
}
|
|
10403
|
-
let
|
|
10405
|
+
let ur = null, _r = null;
|
|
10404
10406
|
function Ks(e = null, t = null) {
|
|
10405
|
-
|
|
10407
|
+
ur = e, _r = t;
|
|
10406
10408
|
}
|
|
10407
10409
|
function nh() {
|
|
10408
10410
|
return {
|
|
10409
|
-
data:
|
|
10410
|
-
clonedData:
|
|
10411
|
+
data: ur,
|
|
10412
|
+
clonedData: _r
|
|
10411
10413
|
};
|
|
10412
10414
|
}
|
|
10413
10415
|
const Hs = Symbol("cloneElement");
|
|
@@ -10421,125 +10423,125 @@ function oh(...e) {
|
|
|
10421
10423
|
let c = null;
|
|
10422
10424
|
const {
|
|
10423
10425
|
immediate: _ = !0,
|
|
10424
|
-
clone:
|
|
10425
|
-
customUpdate:
|
|
10426
|
+
clone: p = Zf,
|
|
10427
|
+
customUpdate: d
|
|
10426
10428
|
} = (n = w(r)) != null ? n : {};
|
|
10427
|
-
function f(
|
|
10428
|
-
var
|
|
10429
|
-
const { from:
|
|
10430
|
-
i = Array.from(
|
|
10431
|
-
const
|
|
10432
|
-
Ks(
|
|
10433
|
-
}
|
|
10434
|
-
function g(
|
|
10435
|
-
const
|
|
10436
|
-
if (!Ef(
|
|
10437
|
-
if ($o(
|
|
10438
|
-
const
|
|
10439
|
-
a.value = ks(
|
|
10429
|
+
function f(N) {
|
|
10430
|
+
var L;
|
|
10431
|
+
const { from: X, oldIndex: ne, item: j } = N;
|
|
10432
|
+
i = Array.from(X.childNodes);
|
|
10433
|
+
const k = w((L = w(a)) == null ? void 0 : L[ne]), q = p(k);
|
|
10434
|
+
Ks(k, q), j[Hs] = q;
|
|
10435
|
+
}
|
|
10436
|
+
function g(N) {
|
|
10437
|
+
const L = N.item[Hs];
|
|
10438
|
+
if (!Ef(L)) {
|
|
10439
|
+
if ($o(N.item), an(a)) {
|
|
10440
|
+
const X = [...w(a)];
|
|
10441
|
+
a.value = ks(X, N.newDraggableIndex, L);
|
|
10440
10442
|
return;
|
|
10441
10443
|
}
|
|
10442
|
-
ks(w(a),
|
|
10444
|
+
ks(w(a), N.newDraggableIndex, L);
|
|
10443
10445
|
}
|
|
10444
10446
|
}
|
|
10445
|
-
function b(
|
|
10446
|
-
const { from:
|
|
10447
|
-
if (Bs(
|
|
10448
|
-
$o(
|
|
10447
|
+
function b(N) {
|
|
10448
|
+
const { from: L, item: X, oldIndex: ne, oldDraggableIndex: j, pullMode: k, clone: q } = N;
|
|
10449
|
+
if (Bs(L, X, ne), k === "clone") {
|
|
10450
|
+
$o(q);
|
|
10449
10451
|
return;
|
|
10450
10452
|
}
|
|
10451
10453
|
if (an(a)) {
|
|
10452
|
-
const
|
|
10453
|
-
a.value = Ns(
|
|
10454
|
+
const z = [...w(a)];
|
|
10455
|
+
a.value = Ns(z, j);
|
|
10454
10456
|
return;
|
|
10455
10457
|
}
|
|
10456
|
-
Ns(w(a),
|
|
10458
|
+
Ns(w(a), j);
|
|
10457
10459
|
}
|
|
10458
|
-
function E(
|
|
10459
|
-
if (
|
|
10460
|
-
|
|
10460
|
+
function E(N) {
|
|
10461
|
+
if (d) {
|
|
10462
|
+
d(N);
|
|
10461
10463
|
return;
|
|
10462
10464
|
}
|
|
10463
|
-
const { from:
|
|
10464
|
-
if ($o(
|
|
10465
|
-
const
|
|
10466
|
-
a.value = Ls(
|
|
10465
|
+
const { from: L, item: X, oldIndex: ne, newIndex: j } = N;
|
|
10466
|
+
if ($o(X), Bs(L, X, ne), an(a)) {
|
|
10467
|
+
const k = [...w(a)];
|
|
10468
|
+
a.value = Ls(k, ne, j);
|
|
10467
10469
|
return;
|
|
10468
10470
|
}
|
|
10469
|
-
Ls(w(a), ne,
|
|
10471
|
+
Ls(w(a), ne, j);
|
|
10470
10472
|
}
|
|
10471
|
-
function
|
|
10472
|
-
const { newIndex:
|
|
10473
|
-
let
|
|
10474
|
-
const
|
|
10473
|
+
function C(N) {
|
|
10474
|
+
const { newIndex: L, oldIndex: X, from: ne, to: j } = N;
|
|
10475
|
+
let k = null;
|
|
10476
|
+
const q = L === X && ne === j;
|
|
10475
10477
|
try {
|
|
10476
|
-
if (
|
|
10477
|
-
let
|
|
10478
|
-
i == null || i.some((
|
|
10479
|
-
if (
|
|
10480
|
-
return ne.insertBefore(
|
|
10481
|
-
const A =
|
|
10482
|
-
|
|
10478
|
+
if (q) {
|
|
10479
|
+
let z = null;
|
|
10480
|
+
i == null || i.some((pe, h) => {
|
|
10481
|
+
if (z && (i == null ? void 0 : i.length) !== j.childNodes.length)
|
|
10482
|
+
return ne.insertBefore(z, pe.nextSibling), !0;
|
|
10483
|
+
const A = j.childNodes[h];
|
|
10484
|
+
z = j == null ? void 0 : j.replaceChild(pe, A);
|
|
10483
10485
|
});
|
|
10484
10486
|
}
|
|
10485
|
-
} catch (
|
|
10486
|
-
|
|
10487
|
+
} catch (z) {
|
|
10488
|
+
k = z;
|
|
10487
10489
|
} finally {
|
|
10488
10490
|
i = null;
|
|
10489
10491
|
}
|
|
10490
10492
|
vi(() => {
|
|
10491
|
-
if (Ks(),
|
|
10492
|
-
throw
|
|
10493
|
+
if (Ks(), k)
|
|
10494
|
+
throw k;
|
|
10493
10495
|
});
|
|
10494
10496
|
}
|
|
10495
|
-
const
|
|
10497
|
+
const S = {
|
|
10496
10498
|
onUpdate: E,
|
|
10497
10499
|
onStart: f,
|
|
10498
10500
|
onAdd: g,
|
|
10499
10501
|
onRemove: b,
|
|
10500
|
-
onEnd:
|
|
10502
|
+
onEnd: C
|
|
10501
10503
|
};
|
|
10502
|
-
function F(
|
|
10503
|
-
const
|
|
10504
|
-
return
|
|
10504
|
+
function F(N) {
|
|
10505
|
+
const L = w(s);
|
|
10506
|
+
return N || (N = Af(L) ? vf(L, o == null ? void 0 : o.$el) : L), N && !If(N) && (N = N.$el), N || gf("Root element not found"), N;
|
|
10505
10507
|
}
|
|
10506
10508
|
function H() {
|
|
10507
|
-
var
|
|
10508
|
-
const
|
|
10509
|
-
return Rs(
|
|
10510
|
-
yf(ne) && (
|
|
10511
|
-
const
|
|
10512
|
-
return Cf(
|
|
10509
|
+
var N;
|
|
10510
|
+
const L = (N = w(r)) != null ? N : {}, X = Xa(L, ["immediate", "clone"]);
|
|
10511
|
+
return Rs(X, (ne, j) => {
|
|
10512
|
+
yf(ne) && (X[ne] = (k, ...q) => {
|
|
10513
|
+
const z = nh();
|
|
10514
|
+
return Cf(k, z), j(k, ...q);
|
|
10513
10515
|
});
|
|
10514
10516
|
}), Of(
|
|
10515
|
-
a === null ? {} :
|
|
10516
|
-
|
|
10517
|
+
a === null ? {} : S,
|
|
10518
|
+
X
|
|
10517
10519
|
);
|
|
10518
10520
|
}
|
|
10519
|
-
const te = (
|
|
10520
|
-
|
|
10521
|
+
const te = (N) => {
|
|
10522
|
+
N = F(N), c && G.destroy(), c = new R(N, H());
|
|
10521
10523
|
};
|
|
10522
10524
|
pt(
|
|
10523
10525
|
() => r,
|
|
10524
10526
|
() => {
|
|
10525
|
-
c && Rs(H(), (
|
|
10526
|
-
c == null || c.option(
|
|
10527
|
+
c && Rs(H(), (N, L) => {
|
|
10528
|
+
c == null || c.option(N, L);
|
|
10527
10529
|
});
|
|
10528
10530
|
},
|
|
10529
10531
|
{ deep: !0 }
|
|
10530
10532
|
);
|
|
10531
|
-
const
|
|
10532
|
-
option: (
|
|
10533
|
+
const G = {
|
|
10534
|
+
option: (N, L) => c == null ? void 0 : c.option(N, L),
|
|
10533
10535
|
destroy: () => {
|
|
10534
10536
|
c == null || c.destroy(), c = null;
|
|
10535
10537
|
},
|
|
10536
10538
|
save: () => c == null ? void 0 : c.save(),
|
|
10537
10539
|
toArray: () => c == null ? void 0 : c.toArray(),
|
|
10538
|
-
closest: (...
|
|
10539
|
-
}, _e = () =>
|
|
10540
|
+
closest: (...N) => c == null ? void 0 : c.closest(...N)
|
|
10541
|
+
}, _e = () => G == null ? void 0 : G.option("disabled", !0), Be = () => G == null ? void 0 : G.option("disabled", !1);
|
|
10540
10542
|
return th(() => {
|
|
10541
10543
|
_ && te();
|
|
10542
|
-
}), eh(
|
|
10544
|
+
}), eh(G.destroy), Ht({ start: te, pause: _e, resume: Be }, G);
|
|
10543
10545
|
}
|
|
10544
10546
|
const Ei = [
|
|
10545
10547
|
"update",
|
|
@@ -10608,24 +10610,24 @@ const Ei = [
|
|
|
10608
10610
|
props: ih,
|
|
10609
10611
|
emits: ["update:modelValue", ...Ei],
|
|
10610
10612
|
setup(e, { slots: t, emit: n, expose: o, attrs: i }) {
|
|
10611
|
-
const s = Ei.reduce((
|
|
10612
|
-
const f = `on${
|
|
10613
|
-
return
|
|
10613
|
+
const s = Ei.reduce((p, d) => {
|
|
10614
|
+
const f = `on${d.replace(/^\S/, (g) => g.toUpperCase())}`;
|
|
10615
|
+
return p[f] = (...g) => n(d, ...g), p;
|
|
10614
10616
|
}, {}), a = Te(() => {
|
|
10615
|
-
const
|
|
10616
|
-
const
|
|
10617
|
-
return
|
|
10617
|
+
const p = Vr(e), d = Xa(p, ["modelValue"]), f = Object.entries(d).reduce((g, [b, E]) => {
|
|
10618
|
+
const C = w(E);
|
|
10619
|
+
return C !== void 0 && (g[b] = C), g;
|
|
10618
10620
|
}, {});
|
|
10619
10621
|
return Ht(Ht({}, s), mf(Ht(Ht({}, i), f)));
|
|
10620
10622
|
}), r = Te({
|
|
10621
10623
|
get: () => e.modelValue,
|
|
10622
|
-
set: (
|
|
10623
|
-
}), c = At(), _ =
|
|
10624
|
+
set: (p) => n("update:modelValue", p)
|
|
10625
|
+
}), c = At(), _ = Fr(
|
|
10624
10626
|
oh(e.target || c, r, a)
|
|
10625
10627
|
);
|
|
10626
10628
|
return o(_), () => {
|
|
10627
|
-
var
|
|
10628
|
-
return ni(e.tag || "div", { ref: c }, (
|
|
10629
|
+
var p;
|
|
10630
|
+
return ni(e.tag || "div", { ref: c }, (p = t == null ? void 0 : t.default) == null ? void 0 : p.call(t, _));
|
|
10629
10631
|
};
|
|
10630
10632
|
}
|
|
10631
10633
|
}), ah = { class: "text-subtitle-1 ml-6" }, rh = /* @__PURE__ */ Qe({
|
|
@@ -10653,21 +10655,21 @@ const Ei = [
|
|
|
10653
10655
|
border: "1px solid " + n.value,
|
|
10654
10656
|
pointerEvents: "none"
|
|
10655
10657
|
}));
|
|
10656
|
-
return (
|
|
10657
|
-
const f = Ae("v-spacer"), g = Ae("v-icon"), b =
|
|
10658
|
-
return
|
|
10658
|
+
return (p, d) => {
|
|
10659
|
+
const f = Ae("v-spacer"), g = Ae("v-icon"), b = Kr("ripple");
|
|
10660
|
+
return Hr((he(), mt("div", {
|
|
10659
10661
|
class: "d-flex align-center cursor-pointer",
|
|
10660
10662
|
style: ot(c.value),
|
|
10661
|
-
onClick:
|
|
10662
|
-
onMouseover:
|
|
10663
|
-
onMouseout:
|
|
10663
|
+
onClick: d[1] || (d[1] = (E) => a("x-click", s.id)),
|
|
10664
|
+
onMouseover: d[2] || (d[2] = (E) => r.value = !0),
|
|
10665
|
+
onMouseout: d[3] || (d[3] = (E) => r.value = !1)
|
|
10664
10666
|
}, [
|
|
10665
10667
|
He("span", ah, lo(s.title), 1),
|
|
10666
10668
|
ge(f),
|
|
10667
10669
|
ge(g, {
|
|
10668
10670
|
class: "x-handle cursor-move mr-3",
|
|
10669
10671
|
icon: w(lf),
|
|
10670
|
-
onMousedown:
|
|
10672
|
+
onMousedown: d[0] || (d[0] = rn(() => {
|
|
10671
10673
|
}, ["stop"]))
|
|
10672
10674
|
}, null, 8, ["icon"]),
|
|
10673
10675
|
He("div", {
|
|
@@ -10688,23 +10690,23 @@ const Ei = [
|
|
|
10688
10690
|
},
|
|
10689
10691
|
setup(e) {
|
|
10690
10692
|
const { t } = En(), n = e, o = At([]), i = () => {
|
|
10691
|
-
const
|
|
10692
|
-
if (!
|
|
10693
|
+
const d = Et();
|
|
10694
|
+
if (!d) {
|
|
10693
10695
|
console.assert(!1);
|
|
10694
10696
|
return;
|
|
10695
10697
|
}
|
|
10696
10698
|
const f = [];
|
|
10697
|
-
|
|
10698
|
-
var
|
|
10699
|
-
const E = b.id === ((
|
|
10700
|
-
let
|
|
10699
|
+
d.getTopBlocks(!0).forEach((b) => {
|
|
10700
|
+
var S;
|
|
10701
|
+
const E = b.id === ((S = Yt()) == null ? void 0 : S.id);
|
|
10702
|
+
let C = "<n/a>";
|
|
10701
10703
|
if (b.type.startsWith("on_node_event_v")) {
|
|
10702
10704
|
const F = b, H = Je[F.node.key];
|
|
10703
|
-
H && (
|
|
10704
|
-
} else b.type.startsWith("func_entry_v") ?
|
|
10705
|
+
H && (C = t(H.name), F.node.alias && (C += " / " + F.node.alias), C += " - " + v[F.event.name]);
|
|
10706
|
+
} else b.type.startsWith("func_entry_v") ? C = t("x-block-lib.funcEntry") : b.type.startsWith("procedure_def_v") ? (console.log(b), C = t("x-block-lib.procedure") + " - " + b.getFieldValue("NAME")) : C = t("x-block-lib.temporaryBlock");
|
|
10705
10707
|
f.push({
|
|
10706
10708
|
id: b.id,
|
|
10707
|
-
name:
|
|
10709
|
+
name: C,
|
|
10708
10710
|
select: E
|
|
10709
10711
|
});
|
|
10710
10712
|
}), o.value = f;
|
|
@@ -10720,43 +10722,43 @@ const Ei = [
|
|
|
10720
10722
|
sa(t("x-block-lib.msg.cannotOperateInLockedState"));
|
|
10721
10723
|
return;
|
|
10722
10724
|
}
|
|
10723
|
-
const
|
|
10725
|
+
const d = [];
|
|
10724
10726
|
o.value.forEach(({ id: f }) => {
|
|
10725
|
-
|
|
10726
|
-
}), s =
|
|
10727
|
-
}, r = () => !n.lock, c = (
|
|
10727
|
+
d.push(f);
|
|
10728
|
+
}), s = d;
|
|
10729
|
+
}, r = () => !n.lock, c = (d) => {
|
|
10728
10730
|
const f = Et();
|
|
10729
10731
|
if (!f) {
|
|
10730
10732
|
console.assert(!1);
|
|
10731
10733
|
return;
|
|
10732
10734
|
}
|
|
10733
|
-
if (
|
|
10735
|
+
if (d.oldIndex === void 0 || d.newIndex === void 0) {
|
|
10734
10736
|
console.assert(!1);
|
|
10735
10737
|
return;
|
|
10736
10738
|
}
|
|
10737
|
-
if (
|
|
10739
|
+
if (d.oldIndex === d.newIndex)
|
|
10738
10740
|
return;
|
|
10739
|
-
const g = s[
|
|
10741
|
+
const g = s[d.oldIndex], b = f.getBlockById(g);
|
|
10740
10742
|
if (!b) {
|
|
10741
10743
|
console.assert(!1);
|
|
10742
10744
|
return;
|
|
10743
10745
|
}
|
|
10744
10746
|
let E = "";
|
|
10745
|
-
|
|
10746
|
-
let
|
|
10747
|
-
E !== "" && (
|
|
10748
|
-
const
|
|
10749
|
-
b.moveTo(new I.Coordinate(
|
|
10750
|
-
}, { open: _ } = po("blocklyNavigatorDlg"),
|
|
10747
|
+
d.newIndex > d.oldIndex ? E = s[d.newIndex] : d.newIndex > 0 && (E = s[d.newIndex - 1]);
|
|
10748
|
+
let C = -10;
|
|
10749
|
+
E !== "" && (C = f.getBlockById(E).getRelativeToSurfaceXY().y + 10);
|
|
10750
|
+
const S = b.getRelativeToSurfaceXY();
|
|
10751
|
+
b.moveTo(new I.Coordinate(S.x, C)), We.emit("cleanWorkspace"), Fa();
|
|
10752
|
+
}, { open: _ } = po("blocklyNavigatorDlg"), p = async (d) => {
|
|
10751
10753
|
const f = Et();
|
|
10752
10754
|
if (!f) {
|
|
10753
10755
|
console.assert(!1);
|
|
10754
10756
|
return;
|
|
10755
10757
|
}
|
|
10756
|
-
const g = f.getBlockById(
|
|
10757
|
-
|
|
10758
|
+
const g = f.getBlockById(d);
|
|
10759
|
+
Qr.setSelected(g), Va(d), _.value = !1;
|
|
10758
10760
|
};
|
|
10759
|
-
return (
|
|
10761
|
+
return (d, f) => o.value.length > 0 ? (he(), $e(w(sh), {
|
|
10760
10762
|
key: 0,
|
|
10761
10763
|
modelValue: o.value,
|
|
10762
10764
|
"onUpdate:modelValue": f[0] || (f[0] = (g) => o.value = g),
|
|
@@ -10768,68 +10770,68 @@ const Ei = [
|
|
|
10768
10770
|
onEnd: c
|
|
10769
10771
|
}, {
|
|
10770
10772
|
default: Xe(() => [
|
|
10771
|
-
(he(!0), mt(ea, null,
|
|
10773
|
+
(he(!0), mt(ea, null, $r(o.value, (g) => (he(), $e(rh, {
|
|
10772
10774
|
id: g.id,
|
|
10773
10775
|
key: g.id,
|
|
10774
10776
|
title: g.name,
|
|
10775
10777
|
select: g.select,
|
|
10776
|
-
onXClick:
|
|
10778
|
+
onXClick: p
|
|
10777
10779
|
}, null, 8, ["id", "title", "select"]))), 128))
|
|
10778
10780
|
]),
|
|
10779
10781
|
_: 1
|
|
10780
10782
|
}, 8, ["modelValue"])) : (he(), mt("span", lh, lo(w(t)("x-block-lib.noOption")), 1));
|
|
10781
10783
|
}
|
|
10782
|
-
}),
|
|
10784
|
+
}), pr = (e, t) => {
|
|
10783
10785
|
const n = e.__vccOpts || e;
|
|
10784
10786
|
for (const [o, i] of t)
|
|
10785
10787
|
n[o] = i;
|
|
10786
10788
|
return n;
|
|
10787
|
-
}, uh = /* @__PURE__ */
|
|
10789
|
+
}, uh = /* @__PURE__ */ pr(ch, [["__scopeId", "data-v-448cc5cd"]]), _h = {};
|
|
10788
10790
|
function ph(e, t) {
|
|
10789
10791
|
return he(), mt("div", null, "blockTree");
|
|
10790
10792
|
}
|
|
10791
|
-
const dh = /* @__PURE__ */
|
|
10793
|
+
const dh = /* @__PURE__ */ pr(_h, [["render", ph]]), fh = { class: "text-subtitle-1 ml-3" }, hh = /* @__PURE__ */ Qe({
|
|
10792
10794
|
__name: "index",
|
|
10793
10795
|
props: {
|
|
10794
10796
|
type: {},
|
|
10795
10797
|
lock: { type: Boolean }
|
|
10796
10798
|
},
|
|
10797
10799
|
setup(e) {
|
|
10798
|
-
const { t } = En(), n =
|
|
10799
|
-
let
|
|
10800
|
-
return n.mdAndUp.value && (
|
|
10800
|
+
const { t } = En(), n = al(), { sysBarAvail: o } = aa(), { backgroundColor1: i } = _o(), s = e, a = Te(() => {
|
|
10801
|
+
let p = "100%";
|
|
10802
|
+
return n.mdAndUp.value && (p = "400px"), {
|
|
10801
10803
|
background: i.value,
|
|
10802
|
-
width:
|
|
10804
|
+
width: p,
|
|
10803
10805
|
height: "100%"
|
|
10804
10806
|
};
|
|
10805
10807
|
}), r = Te(() => {
|
|
10806
|
-
let
|
|
10807
|
-
return o.value && (
|
|
10808
|
+
let p = 48;
|
|
10809
|
+
return o.value && (p += 24), {
|
|
10808
10810
|
position: "relative",
|
|
10809
10811
|
width: "100%",
|
|
10810
|
-
height: `calc(100% - ${
|
|
10812
|
+
height: `calc(100% - ${p}px)`
|
|
10811
10813
|
};
|
|
10812
10814
|
}), c = Te(() => ({
|
|
10813
10815
|
height: "60px"
|
|
10814
10816
|
})), { open: _ } = po("blocklyNavigatorDlg");
|
|
10815
|
-
return (
|
|
10816
|
-
const f = Ae("v-sheet"), g = Ae("v-icon"), b = Ae("v-dialog"), E = Ae("v-btn"),
|
|
10817
|
+
return (p, d) => {
|
|
10818
|
+
const f = Ae("v-sheet"), g = Ae("v-icon"), b = Ae("v-dialog"), E = Ae("v-btn"), C = Ae("v-tooltip");
|
|
10817
10819
|
return he(), mt(ea, null, [
|
|
10818
10820
|
ge(b, {
|
|
10819
10821
|
modelValue: w(_),
|
|
10820
|
-
"onUpdate:modelValue":
|
|
10822
|
+
"onUpdate:modelValue": d[3] || (d[3] = (S) => an(_) ? _.value = S : null),
|
|
10821
10823
|
transition: "scroll-x-reverse-transition",
|
|
10822
10824
|
persistent: "",
|
|
10823
10825
|
"no-click-animation": "",
|
|
10824
10826
|
fullscreen: "",
|
|
10825
10827
|
eager: "",
|
|
10826
|
-
onKeydown:
|
|
10828
|
+
onKeydown: d[4] || (d[4] = ta(rn((S) => _.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
10827
10829
|
}, {
|
|
10828
10830
|
default: Xe(() => [
|
|
10829
10831
|
He("div", {
|
|
10830
10832
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
10831
|
-
onClick:
|
|
10832
|
-
onContextmenu:
|
|
10833
|
+
onClick: d[1] || (d[1] = rn((S) => _.value = !1, ["self"])),
|
|
10834
|
+
onContextmenu: d[2] || (d[2] = rn((S) => _.value = !1, ["self", "prevent"]))
|
|
10833
10835
|
}, [
|
|
10834
10836
|
He("div", {
|
|
10835
10837
|
class: "elevation-2",
|
|
@@ -10847,8 +10849,8 @@ const dh = /* @__PURE__ */ _r(_h, [["render", ph]]), fh = { class: "text-subtitl
|
|
|
10847
10849
|
}, {
|
|
10848
10850
|
default: Xe(() => [
|
|
10849
10851
|
ge(g, {
|
|
10850
|
-
icon: w(
|
|
10851
|
-
onClick:
|
|
10852
|
+
icon: w(Ga),
|
|
10853
|
+
onClick: d[0] || (d[0] = (S) => _.value = !1)
|
|
10852
10854
|
}, null, 8, ["icon"]),
|
|
10853
10855
|
He("span", fh, lo(w(t)("x-block-lib.navigator")), 1)
|
|
10854
10856
|
]),
|
|
@@ -10871,15 +10873,15 @@ const dh = /* @__PURE__ */ _r(_h, [["render", ph]]), fh = { class: "text-subtitl
|
|
|
10871
10873
|
]),
|
|
10872
10874
|
_: 1
|
|
10873
10875
|
}, 8, ["modelValue"]),
|
|
10874
|
-
ge(
|
|
10876
|
+
ge(C, {
|
|
10875
10877
|
text: w(t)("x-block-lib.tip.hotkeyCtrlE")
|
|
10876
10878
|
}, {
|
|
10877
|
-
activator: Xe(({ props:
|
|
10878
|
-
ge(E, Ai(
|
|
10879
|
+
activator: Xe(({ props: S }) => [
|
|
10880
|
+
ge(E, Ai(S, {
|
|
10879
10881
|
variant: "outlined",
|
|
10880
10882
|
density: "comfortable",
|
|
10881
10883
|
icon: w(_f),
|
|
10882
|
-
onClick:
|
|
10884
|
+
onClick: d[5] || (d[5] = (F) => _.value = !0)
|
|
10883
10885
|
}), null, 16, ["icon"])
|
|
10884
10886
|
]),
|
|
10885
10887
|
_: 1
|
|
@@ -10916,7 +10918,7 @@ const dh = /* @__PURE__ */ _r(_h, [["render", ph]]), fh = { class: "text-subtitl
|
|
|
10916
10918
|
};
|
|
10917
10919
|
function gh(e, t, n) {
|
|
10918
10920
|
$s.toolbox = Th(t, n);
|
|
10919
|
-
const o =
|
|
10921
|
+
const o = Zr(e, $s);
|
|
10920
10922
|
return mh(o, t, n), Eh(o), o;
|
|
10921
10923
|
}
|
|
10922
10924
|
function Th(e, t) {
|
|
@@ -10930,7 +10932,7 @@ function mh(e, t, n) {
|
|
|
10930
10932
|
t === "page" || t === "comp" ? n === "v1" && (o(Zn), o(ht), o(ft)) : t === "func" ? n === "v1" && (o(Qn), o(qn), o(Jn), o(ht), o(ft)) : t === "flow" && n === "v1" && (o(qn), o(Qn), o(Jn), o(ht), o(ft));
|
|
10931
10933
|
}
|
|
10932
10934
|
function Eh(e) {
|
|
10933
|
-
const { router: t } =
|
|
10935
|
+
const { router: t } = Q.base;
|
|
10934
10936
|
e.registerButtonCallback("NO_COMPUTE", () => {
|
|
10935
10937
|
const n = t.resolve({
|
|
10936
10938
|
path: "/compute/" + Date.now()
|
|
@@ -10960,24 +10962,24 @@ const Ah = { class: "position-relative w-100 h-100" }, vh = /* @__PURE__ */ Qe({
|
|
|
10960
10962
|
}),
|
|
10961
10963
|
emits: /* @__PURE__ */ Wi(["ready"], ["update:lock", "update:scale"]),
|
|
10962
10964
|
setup(e, { expose: t, emit: n }) {
|
|
10963
|
-
const o = il(),
|
|
10965
|
+
const o = il(), i = sl(), s = ti(e, "lock"), a = ti(e, "scale"), r = e, c = n, _ = At();
|
|
10964
10966
|
let p;
|
|
10965
|
-
const
|
|
10967
|
+
const d = At(!1), f = Te(() => r.type === "json" ? "tree" : "list"), g = Te(() => ({
|
|
10966
10968
|
position: "absolute",
|
|
10967
10969
|
top: "0px",
|
|
10968
10970
|
right: "0px",
|
|
10969
10971
|
zIndex: 20
|
|
10970
|
-
})),
|
|
10972
|
+
})), b = Te(() => ({
|
|
10971
10973
|
position: "absolute",
|
|
10972
|
-
background:
|
|
10974
|
+
background: o.value ? "#0000007f" : "#ffffff7f",
|
|
10973
10975
|
top: "0px",
|
|
10974
10976
|
left: "0px",
|
|
10975
10977
|
width: "100%",
|
|
10976
10978
|
height: "100%",
|
|
10977
10979
|
pointerEvents: "none"
|
|
10978
|
-
})),
|
|
10980
|
+
})), E = Te(() => ({
|
|
10979
10981
|
position: "absolute",
|
|
10980
|
-
background:
|
|
10982
|
+
background: o.value ? "#0000007f" : "#ffffff7f",
|
|
10981
10983
|
top: "1px",
|
|
10982
10984
|
left: "0px",
|
|
10983
10985
|
width: "56px",
|
|
@@ -10985,110 +10987,110 @@ const Ah = { class: "position-relative w-100 h-100" }, vh = /* @__PURE__ */ Qe({
|
|
|
10985
10987
|
zIndex: 999
|
|
10986
10988
|
})), { open: C } = po("blocklyEditorFlyout");
|
|
10987
10989
|
Wt(async () => {
|
|
10988
|
-
if (!
|
|
10990
|
+
if (!_.value) {
|
|
10989
10991
|
console.assert(!1);
|
|
10990
10992
|
return;
|
|
10991
10993
|
}
|
|
10992
|
-
await Cs(i.value), p = gh(
|
|
10993
|
-
const
|
|
10994
|
-
new MutationObserver((
|
|
10995
|
-
|
|
10996
|
-
|
|
10994
|
+
await Cs(i.value), p = gh(_.value, r.type, r.version), p.addChangeListener(V.disableOrphans), p.addChangeListener(S);
|
|
10995
|
+
const k = document.querySelector("#blocklyEditor .blocklyFlyout");
|
|
10996
|
+
new MutationObserver((z) => {
|
|
10997
|
+
z.forEach((pe) => {
|
|
10998
|
+
pe.type === "attributes" && pe.attributeName === "style" && (C.value = p.getFlyout().isVisible());
|
|
10997
10999
|
});
|
|
10998
|
-
}).observe(
|
|
11000
|
+
}).observe(k, { attributes: !0 }), C.value = p.getFlyout().isVisible(), G(), _e(), await vi(), c("ready");
|
|
10999
11001
|
}), Wn(() => {
|
|
11000
11002
|
C.value = !1;
|
|
11001
|
-
}), pl(
|
|
11002
|
-
p &&
|
|
11003
|
+
}), pl(_, () => {
|
|
11004
|
+
p && el(p);
|
|
11003
11005
|
});
|
|
11004
|
-
async function
|
|
11005
|
-
if (
|
|
11006
|
-
|
|
11006
|
+
async function S(k) {
|
|
11007
|
+
if (k.type === V.FINISHED_LOADING) {
|
|
11008
|
+
Fa(), We.emit("codeUpdate"), d.value = !1;
|
|
11007
11009
|
return;
|
|
11008
11010
|
}
|
|
11009
|
-
|
|
11011
|
+
d.value || (k.type === V.VIEWPORT_CHANGE && (a.value = p.getScale()), We.emit("codeUpdate"));
|
|
11010
11012
|
}
|
|
11011
|
-
const
|
|
11012
|
-
|
|
11013
|
-
},
|
|
11014
|
-
p.options.readOnly =
|
|
11015
|
-
},
|
|
11016
|
-
p.setScale(
|
|
11013
|
+
const F = (k) => {
|
|
11014
|
+
d.value = !0, zi.workspaces.load(k, p);
|
|
11015
|
+
}, H = () => zi.workspaces.save(p), te = () => l.workspaceToCode(p), G = () => {
|
|
11016
|
+
p.options.readOnly = s.value, p.options.readOnly && (C.value = !1);
|
|
11017
|
+
}, _e = () => {
|
|
11018
|
+
p.setScale(a.value);
|
|
11017
11019
|
};
|
|
11018
|
-
class
|
|
11020
|
+
class Be extends V.Abstract {
|
|
11019
11021
|
constructor() {
|
|
11020
11022
|
super(...arguments);
|
|
11021
11023
|
Fe(this, "isBlank", !0);
|
|
11022
11024
|
}
|
|
11023
11025
|
}
|
|
11024
11026
|
const N = () => {
|
|
11025
|
-
p.fireChangeListener(new
|
|
11026
|
-
},
|
|
11027
|
-
if (
|
|
11028
|
-
|
|
11027
|
+
p.fireChangeListener(new Be());
|
|
11028
|
+
}, L = (k) => {
|
|
11029
|
+
if (k.key === "q" && k.ctrlKey) {
|
|
11030
|
+
X();
|
|
11029
11031
|
return;
|
|
11030
11032
|
}
|
|
11031
|
-
if (
|
|
11032
|
-
|
|
11033
|
+
if (k.key === "w" && k.ctrlKey) {
|
|
11034
|
+
ne();
|
|
11033
11035
|
return;
|
|
11034
11036
|
}
|
|
11035
|
-
if (
|
|
11036
|
-
|
|
11037
|
+
if (k.key === "e" && k.ctrlKey) {
|
|
11038
|
+
j();
|
|
11037
11039
|
return;
|
|
11038
11040
|
}
|
|
11039
|
-
}, ne = () => {
|
|
11040
|
-
We.emit("cleanWorkspace");
|
|
11041
11041
|
}, X = () => {
|
|
11042
|
-
|
|
11043
|
-
},
|
|
11042
|
+
We.emit("cleanWorkspace");
|
|
11043
|
+
}, ne = () => {
|
|
11044
|
+
s.value = !s.value;
|
|
11045
|
+
}, j = () => {
|
|
11044
11046
|
We.emit("blocklyNavigatorDlg");
|
|
11045
11047
|
};
|
|
11046
11048
|
return Wt(() => {
|
|
11047
|
-
window.addEventListener("keydown",
|
|
11049
|
+
window.addEventListener("keydown", L, !1);
|
|
11048
11050
|
}), Wn(() => {
|
|
11049
|
-
window.addEventListener("keydown",
|
|
11050
|
-
}), pt(i, (
|
|
11051
|
-
Cs(
|
|
11052
|
-
}), pt(
|
|
11053
|
-
tf(
|
|
11054
|
-
}), pt(C, (
|
|
11055
|
-
|
|
11051
|
+
window.addEventListener("keydown", L, !1);
|
|
11052
|
+
}), pt(i, (k) => {
|
|
11053
|
+
Cs(k);
|
|
11054
|
+
}), pt(o, (k) => {
|
|
11055
|
+
tf(k ? "dark" : "light");
|
|
11056
|
+
}), pt(C, (k) => {
|
|
11057
|
+
k || p.hideChaff();
|
|
11058
|
+
}), pt(s, () => {
|
|
11059
|
+
G();
|
|
11056
11060
|
}), pt(a, () => {
|
|
11057
11061
|
_e();
|
|
11058
|
-
}),
|
|
11059
|
-
|
|
11060
|
-
}), t({ loading: f, load: H, save: te, generateCode: j, fireStateChange: N }), (R, G) => {
|
|
11061
|
-
const fe = Ae("x-loading");
|
|
11062
|
+
}), t({ loading: d, load: F, save: H, generateCode: te, fireStateChange: N }), (k, q) => {
|
|
11063
|
+
const z = Ae("x-loading");
|
|
11062
11064
|
return he(), mt("div", Ah, [
|
|
11063
11065
|
He("div", {
|
|
11064
11066
|
id: "blocklyEditor",
|
|
11065
11067
|
ref_key: "blocklyDiv",
|
|
11066
|
-
ref:
|
|
11068
|
+
ref: _,
|
|
11067
11069
|
class: "w-100 h-100"
|
|
11068
11070
|
}, null, 512),
|
|
11069
11071
|
He("div", {
|
|
11070
11072
|
class: "d-flex align-end pt-3 pr-3",
|
|
11071
|
-
style: ot(
|
|
11073
|
+
style: ot(g.value)
|
|
11072
11074
|
}, [
|
|
11073
|
-
ge(pf, { lock:
|
|
11075
|
+
ge(pf, { lock: s.value }, null, 8, ["lock"]),
|
|
11074
11076
|
ge(df, {
|
|
11075
|
-
modelValue:
|
|
11076
|
-
"onUpdate:modelValue":
|
|
11077
|
+
modelValue: s.value,
|
|
11078
|
+
"onUpdate:modelValue": q[0] || (q[0] = (pe) => s.value = pe)
|
|
11077
11079
|
}, null, 8, ["modelValue"]),
|
|
11078
11080
|
ge(hh, {
|
|
11079
|
-
type:
|
|
11080
|
-
lock:
|
|
11081
|
+
type: f.value,
|
|
11082
|
+
lock: s.value
|
|
11081
11083
|
}, null, 8, ["type", "lock"])
|
|
11082
11084
|
], 4),
|
|
11083
|
-
|
|
11085
|
+
s.value ? (he(), mt("div", {
|
|
11084
11086
|
key: 0,
|
|
11085
|
-
style: ot(
|
|
11087
|
+
style: ot(b.value)
|
|
11086
11088
|
}, null, 4)) : Gt("", !0),
|
|
11087
|
-
|
|
11089
|
+
s.value ? (he(), mt("div", {
|
|
11088
11090
|
key: 1,
|
|
11089
|
-
style: ot(
|
|
11091
|
+
style: ot(E.value)
|
|
11090
11092
|
}, null, 4)) : Gt("", !0),
|
|
11091
|
-
|
|
11093
|
+
d.value ? (he(), $e(z, {
|
|
11092
11094
|
key: 2,
|
|
11093
11095
|
"z-index": 99
|
|
11094
11096
|
})) : Gt("", !0)
|
|
@@ -11096,14 +11098,14 @@ const Ah = { class: "position-relative w-100 h-100" }, vh = /* @__PURE__ */ Qe({
|
|
|
11096
11098
|
};
|
|
11097
11099
|
}
|
|
11098
11100
|
});
|
|
11099
|
-
function
|
|
11101
|
+
function dr(e) {
|
|
11100
11102
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
11101
11103
|
throw new Error("map is read-only");
|
|
11102
11104
|
} : e instanceof Set && (e.add = e.clear = e.delete = function() {
|
|
11103
11105
|
throw new Error("set is read-only");
|
|
11104
11106
|
}), Object.freeze(e), Object.getOwnPropertyNames(e).forEach((t) => {
|
|
11105
11107
|
const n = e[t], o = typeof n;
|
|
11106
|
-
(o === "object" || o === "function") && !Object.isFrozen(n) &&
|
|
11108
|
+
(o === "object" || o === "function") && !Object.isFrozen(n) && dr(n);
|
|
11107
11109
|
}), e;
|
|
11108
11110
|
}
|
|
11109
11111
|
class Gs {
|
|
@@ -11117,7 +11119,7 @@ class Gs {
|
|
|
11117
11119
|
this.isMatchIgnored = !0;
|
|
11118
11120
|
}
|
|
11119
11121
|
}
|
|
11120
|
-
function
|
|
11122
|
+
function fr(e) {
|
|
11121
11123
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
11122
11124
|
}
|
|
11123
11125
|
function Tt(e, ...t) {
|
|
@@ -11157,7 +11159,7 @@ class Ih {
|
|
|
11157
11159
|
*
|
|
11158
11160
|
* @param {string} text */
|
|
11159
11161
|
addText(t) {
|
|
11160
|
-
this.buffer +=
|
|
11162
|
+
this.buffer += fr(t);
|
|
11161
11163
|
}
|
|
11162
11164
|
/**
|
|
11163
11165
|
* Adds a node open to the output stream (if needed)
|
|
@@ -11287,7 +11289,7 @@ class yh extends wi {
|
|
|
11287
11289
|
function Tn(e) {
|
|
11288
11290
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
11289
11291
|
}
|
|
11290
|
-
function
|
|
11292
|
+
function hr(e) {
|
|
11291
11293
|
return Pt("(?=", e, ")");
|
|
11292
11294
|
}
|
|
11293
11295
|
function Ch(e) {
|
|
@@ -11306,7 +11308,7 @@ function Lh(e) {
|
|
|
11306
11308
|
function Vi(...e) {
|
|
11307
11309
|
return "(" + (Lh(e).capture ? "" : "?:") + e.map((o) => Tn(o)).join("|") + ")";
|
|
11308
11310
|
}
|
|
11309
|
-
function
|
|
11311
|
+
function gr(e) {
|
|
11310
11312
|
return new RegExp(e.toString() + "|").exec("").length - 1;
|
|
11311
11313
|
}
|
|
11312
11314
|
function Nh(e, t) {
|
|
@@ -11331,7 +11333,7 @@ function Fi(e, { joinWith: t }) {
|
|
|
11331
11333
|
return a;
|
|
11332
11334
|
}).map((o) => `(${o})`).join(t);
|
|
11333
11335
|
}
|
|
11334
|
-
const Bh = /\b\B/,
|
|
11336
|
+
const Bh = /\b\B/, Tr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", mr = "\\b\\d+(\\.\\d+)?", Er = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Ar = "\\b(0b[01]+)", Rh = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Dh = (e = {}) => {
|
|
11335
11337
|
const t = /^#![ ]*\//;
|
|
11336
11338
|
return e.binary && (e.begin = Pt(
|
|
11337
11339
|
t,
|
|
@@ -11433,15 +11435,15 @@ const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\
|
|
|
11433
11435
|
), o;
|
|
11434
11436
|
}, Uh = No("//", "$"), wh = No("/\\*", "\\*/"), Vh = No("#", "$"), Fh = {
|
|
11435
11437
|
scope: "number",
|
|
11436
|
-
begin:
|
|
11438
|
+
begin: mr,
|
|
11437
11439
|
relevance: 0
|
|
11438
11440
|
}, Yh = {
|
|
11439
11441
|
scope: "number",
|
|
11440
|
-
begin:
|
|
11442
|
+
begin: Er,
|
|
11441
11443
|
relevance: 0
|
|
11442
11444
|
}, Kh = {
|
|
11443
11445
|
scope: "number",
|
|
11444
|
-
begin:
|
|
11446
|
+
begin: Ar,
|
|
11445
11447
|
relevance: 0
|
|
11446
11448
|
}, Hh = {
|
|
11447
11449
|
scope: "regexp",
|
|
@@ -11458,7 +11460,7 @@ const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\
|
|
|
11458
11460
|
]
|
|
11459
11461
|
}, $h = {
|
|
11460
11462
|
scope: "title",
|
|
11461
|
-
begin:
|
|
11463
|
+
begin: Tr,
|
|
11462
11464
|
relevance: 0
|
|
11463
11465
|
}, Gh = {
|
|
11464
11466
|
scope: "title",
|
|
@@ -11488,19 +11490,19 @@ var Un = /* @__PURE__ */ Object.freeze({
|
|
|
11488
11490
|
APOS_STRING_MODE: Mh,
|
|
11489
11491
|
BACKSLASH_ESCAPE: mn,
|
|
11490
11492
|
BINARY_NUMBER_MODE: Kh,
|
|
11491
|
-
BINARY_NUMBER_RE:
|
|
11493
|
+
BINARY_NUMBER_RE: Ar,
|
|
11492
11494
|
COMMENT: No,
|
|
11493
11495
|
C_BLOCK_COMMENT_MODE: wh,
|
|
11494
11496
|
C_LINE_COMMENT_MODE: Uh,
|
|
11495
11497
|
C_NUMBER_MODE: Yh,
|
|
11496
|
-
C_NUMBER_RE:
|
|
11498
|
+
C_NUMBER_RE: Er,
|
|
11497
11499
|
END_SAME_AS_BEGIN: Wh,
|
|
11498
11500
|
HASH_COMMENT_MODE: Vh,
|
|
11499
|
-
IDENT_RE:
|
|
11501
|
+
IDENT_RE: Tr,
|
|
11500
11502
|
MATCH_NOTHING_RE: Bh,
|
|
11501
11503
|
METHOD_GUARD: jh,
|
|
11502
11504
|
NUMBER_MODE: Fh,
|
|
11503
|
-
NUMBER_RE:
|
|
11505
|
+
NUMBER_RE: mr,
|
|
11504
11506
|
PHRASAL_WORDS_MODE: xh,
|
|
11505
11507
|
QUOTE_STRING_MODE: Ph,
|
|
11506
11508
|
REGEXP_MODE: Hh,
|
|
@@ -11537,7 +11539,7 @@ const eg = (e, t) => {
|
|
|
11537
11539
|
const n = Object.assign({}, e);
|
|
11538
11540
|
Object.keys(e).forEach((o) => {
|
|
11539
11541
|
delete e[o];
|
|
11540
|
-
}), e.keywords = n.keywords, e.begin = Pt(n.beforeMatch,
|
|
11542
|
+
}), e.keywords = n.keywords, e.begin = Pt(n.beforeMatch, hr(n.begin)), e.starts = {
|
|
11541
11543
|
relevance: 0,
|
|
11542
11544
|
contains: [
|
|
11543
11545
|
Object.assign(n, { endsParent: !0 })
|
|
@@ -11559,12 +11561,12 @@ const eg = (e, t) => {
|
|
|
11559
11561
|
"value"
|
|
11560
11562
|
// common variable name
|
|
11561
11563
|
], ng = "keyword";
|
|
11562
|
-
function
|
|
11564
|
+
function vr(e, t, n = ng) {
|
|
11563
11565
|
const o = /* @__PURE__ */ Object.create(null);
|
|
11564
11566
|
return typeof e == "string" ? i(n, e.split(" ")) : Array.isArray(e) ? i(n, e) : Object.keys(e).forEach(function(s) {
|
|
11565
11567
|
Object.assign(
|
|
11566
11568
|
o,
|
|
11567
|
-
|
|
11569
|
+
vr(e[s], t, s)
|
|
11568
11570
|
);
|
|
11569
11571
|
}), o;
|
|
11570
11572
|
function i(s, a) {
|
|
@@ -11587,11 +11589,11 @@ const Xs = {}, Lt = (e) => {
|
|
|
11587
11589
|
}, Ft = (e, t) => {
|
|
11588
11590
|
Xs[`${e}/${t}`] || (console.log(`Deprecated as of ${e}. ${t}`), Xs[`${e}/${t}`] = !0);
|
|
11589
11591
|
}, ao = new Error();
|
|
11590
|
-
function
|
|
11592
|
+
function br(e, t, { key: n }) {
|
|
11591
11593
|
let o = 0;
|
|
11592
11594
|
const i = e[n], s = {}, a = {};
|
|
11593
11595
|
for (let r = 1; r <= t.length; r++)
|
|
11594
|
-
a[r + o] = i[r], s[r + o] = !0, o +=
|
|
11596
|
+
a[r + o] = i[r], s[r + o] = !0, o += gr(t[r - 1]);
|
|
11595
11597
|
e[n] = a, e[n]._emit = s, e[n]._multi = !0;
|
|
11596
11598
|
}
|
|
11597
11599
|
function sg(e) {
|
|
@@ -11600,7 +11602,7 @@ function sg(e) {
|
|
|
11600
11602
|
throw Lt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), ao;
|
|
11601
11603
|
if (typeof e.beginScope != "object" || e.beginScope === null)
|
|
11602
11604
|
throw Lt("beginScope must be object"), ao;
|
|
11603
|
-
|
|
11605
|
+
br(e, e.begin, { key: "beginScope" }), e.begin = Fi(e.begin, { joinWith: "" });
|
|
11604
11606
|
}
|
|
11605
11607
|
}
|
|
11606
11608
|
function ag(e) {
|
|
@@ -11609,7 +11611,7 @@ function ag(e) {
|
|
|
11609
11611
|
throw Lt("skip, excludeEnd, returnEnd not compatible with endScope: {}"), ao;
|
|
11610
11612
|
if (typeof e.endScope != "object" || e.endScope === null)
|
|
11611
11613
|
throw Lt("endScope must be object"), ao;
|
|
11612
|
-
|
|
11614
|
+
br(e, e.end, { key: "endScope" }), e.end = Fi(e.end, { joinWith: "" });
|
|
11613
11615
|
}
|
|
11614
11616
|
}
|
|
11615
11617
|
function rg(e) {
|
|
@@ -11631,7 +11633,7 @@ function cg(e) {
|
|
|
11631
11633
|
}
|
|
11632
11634
|
// @ts-ignore
|
|
11633
11635
|
addRule(r, c) {
|
|
11634
|
-
c.position = this.position++, this.matchIndexes[this.matchAt] = c, this.regexes.push([c, r]), this.matchAt +=
|
|
11636
|
+
c.position = this.position++, this.matchIndexes[this.matchAt] = c, this.regexes.push([c, r]), this.matchAt += gr(r) + 1;
|
|
11635
11637
|
}
|
|
11636
11638
|
compile() {
|
|
11637
11639
|
this.regexes.length === 0 && (this.exec = () => null);
|
|
@@ -11644,8 +11646,8 @@ function cg(e) {
|
|
|
11644
11646
|
const c = this.matcherRe.exec(r);
|
|
11645
11647
|
if (!c)
|
|
11646
11648
|
return null;
|
|
11647
|
-
const _ = c.findIndex((
|
|
11648
|
-
return c.splice(0, _), Object.assign(c,
|
|
11649
|
+
const _ = c.findIndex((d, f) => f > 0 && d !== void 0), p = this.matchIndexes[_];
|
|
11650
|
+
return c.splice(0, _), Object.assign(c, p);
|
|
11649
11651
|
}
|
|
11650
11652
|
}
|
|
11651
11653
|
class o {
|
|
@@ -11656,7 +11658,7 @@ function cg(e) {
|
|
|
11656
11658
|
getMatcher(r) {
|
|
11657
11659
|
if (this.multiRegexes[r]) return this.multiRegexes[r];
|
|
11658
11660
|
const c = new n();
|
|
11659
|
-
return this.rules.slice(r).forEach(([_,
|
|
11661
|
+
return this.rules.slice(r).forEach(([_, p]) => c.addRule(_, p)), c.compile(), this.multiRegexes[r] = c, c;
|
|
11660
11662
|
}
|
|
11661
11663
|
resumingScanAtSamePosition() {
|
|
11662
11664
|
return this.regexIndex !== 0;
|
|
@@ -11674,8 +11676,8 @@ function cg(e) {
|
|
|
11674
11676
|
c.lastIndex = this.lastIndex;
|
|
11675
11677
|
let _ = c.exec(r);
|
|
11676
11678
|
if (this.resumingScanAtSamePosition() && !(_ && _.index === this.lastIndex)) {
|
|
11677
|
-
const
|
|
11678
|
-
|
|
11679
|
+
const p = this.getMatcher(0);
|
|
11680
|
+
p.lastIndex = this.lastIndex + 1, _ = p.exec(r);
|
|
11679
11681
|
}
|
|
11680
11682
|
return _ && (this.regexIndex += _.position + 1, this.regexIndex === this.count && this.considerAll()), _;
|
|
11681
11683
|
}
|
|
@@ -11697,24 +11699,24 @@ function cg(e) {
|
|
|
11697
11699
|
Qh,
|
|
11698
11700
|
lg,
|
|
11699
11701
|
eg
|
|
11700
|
-
].forEach((
|
|
11702
|
+
].forEach((p) => p(a, r)), e.compilerExtensions.forEach((p) => p(a, r)), a.__beforeBegin = null, [
|
|
11701
11703
|
Jh,
|
|
11702
11704
|
// do this later so compiler extensions that come earlier have access to the
|
|
11703
11705
|
// raw array if they wanted to perhaps manipulate it, etc.
|
|
11704
11706
|
qh,
|
|
11705
11707
|
// default to 1 relevance if not specified
|
|
11706
11708
|
Zh
|
|
11707
|
-
].forEach((
|
|
11709
|
+
].forEach((p) => p(a, r)), a.isCompiled = !0;
|
|
11708
11710
|
let _ = null;
|
|
11709
|
-
return typeof a.keywords == "object" && a.keywords.$pattern && (a.keywords = Object.assign({}, a.keywords), _ = a.keywords.$pattern, delete a.keywords.$pattern), _ = _ || /\w+/, a.keywords && (a.keywords =
|
|
11711
|
+
return typeof a.keywords == "object" && a.keywords.$pattern && (a.keywords = Object.assign({}, a.keywords), _ = a.keywords.$pattern, delete a.keywords.$pattern), _ = _ || /\w+/, a.keywords && (a.keywords = vr(a.keywords, e.case_insensitive)), c.keywordPatternRe = t(_, !0), r && (a.begin || (a.begin = /\B|\b/), c.beginRe = t(c.begin), !a.end && !a.endsWithParent && (a.end = /\B|\b/), a.end && (c.endRe = t(c.end)), c.terminatorEnd = Tn(c.end) || "", a.endsWithParent && r.terminatorEnd && (c.terminatorEnd += (a.end ? "|" : "") + r.terminatorEnd)), a.illegal && (c.illegalRe = t(
|
|
11710
11712
|
/** @type {RegExp | string} */
|
|
11711
11713
|
a.illegal
|
|
11712
|
-
)), a.contains || (a.contains = []), a.contains = [].concat(...a.contains.map(function(
|
|
11713
|
-
return ug(
|
|
11714
|
-
})), a.contains.forEach(function(
|
|
11714
|
+
)), a.contains || (a.contains = []), a.contains = [].concat(...a.contains.map(function(p) {
|
|
11715
|
+
return ug(p === "self" ? a : p);
|
|
11716
|
+
})), a.contains.forEach(function(p) {
|
|
11715
11717
|
s(
|
|
11716
11718
|
/** @type Mode */
|
|
11717
|
-
|
|
11719
|
+
p,
|
|
11718
11720
|
c
|
|
11719
11721
|
);
|
|
11720
11722
|
}), a.starts && s(a.starts, r), c.matcher = i(c), c;
|
|
@@ -11726,13 +11728,13 @@ function cg(e) {
|
|
|
11726
11728
|
e
|
|
11727
11729
|
);
|
|
11728
11730
|
}
|
|
11729
|
-
function
|
|
11730
|
-
return e ? e.endsWithParent ||
|
|
11731
|
+
function Or(e) {
|
|
11732
|
+
return e ? e.endsWithParent || Or(e.starts) : !1;
|
|
11731
11733
|
}
|
|
11732
11734
|
function ug(e) {
|
|
11733
11735
|
return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(t) {
|
|
11734
11736
|
return Tt(e, { variants: null }, t);
|
|
11735
|
-
})), e.cachedVariants ? e.cachedVariants :
|
|
11737
|
+
})), e.cachedVariants ? e.cachedVariants : Or(e) ? Tt(e, { starts: e.starts ? Tt(e.starts) : null }) : Object.isFrozen(e) ? Tt(e) : e;
|
|
11736
11738
|
}
|
|
11737
11739
|
var _g = "11.10.0";
|
|
11738
11740
|
class pg extends Error {
|
|
@@ -11740,7 +11742,7 @@ class pg extends Error {
|
|
|
11740
11742
|
super(t), this.name = "HTMLInjectionError", this.html = n;
|
|
11741
11743
|
}
|
|
11742
11744
|
}
|
|
11743
|
-
const ei =
|
|
11745
|
+
const ei = fr, Js = Tt, qs = Symbol("nomatch"), dg = 7, Ir = function(e) {
|
|
11744
11746
|
const t = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), o = [];
|
|
11745
11747
|
let i = !0;
|
|
11746
11748
|
const s = "Could not find the language '{}', did you forget to load/include a language module?", a = { disableAutodetect: !0, name: "Plain text", contains: [] };
|
|
@@ -11764,12 +11766,12 @@ const ei = dr, Js = Tt, qs = Symbol("nomatch"), dg = 7, Or = function(e) {
|
|
|
11764
11766
|
A += h.parentNode ? h.parentNode.className : "";
|
|
11765
11767
|
const D = r.languageDetectRe.exec(A);
|
|
11766
11768
|
if (D) {
|
|
11767
|
-
const Y =
|
|
11769
|
+
const Y = L(D[1]);
|
|
11768
11770
|
return Y || (zs(s.replace("{}", D[1])), zs("Falling back to no-highlight mode for this block.", h)), Y ? D[1] : "no-highlight";
|
|
11769
11771
|
}
|
|
11770
|
-
return A.split(/\s+/).find((Y) => c(Y) ||
|
|
11772
|
+
return A.split(/\s+/).find((Y) => c(Y) || L(Y));
|
|
11771
11773
|
}
|
|
11772
|
-
function
|
|
11774
|
+
function p(h, A, D) {
|
|
11773
11775
|
let Y = "", se = "";
|
|
11774
11776
|
typeof A == "object" ? (Y = h, D = A.ignoreIllegals, se = A.language) : (Ft("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ft("10.7.0", `Please use highlight(code, options) instead.
|
|
11775
11777
|
https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D === void 0 && (D = !0);
|
|
@@ -11777,11 +11779,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
11777
11779
|
code: Y,
|
|
11778
11780
|
language: se
|
|
11779
11781
|
};
|
|
11780
|
-
|
|
11781
|
-
const Ve = Ie.result ? Ie.result :
|
|
11782
|
-
return Ve.code = Ie.code,
|
|
11782
|
+
z("before:highlight", Ie);
|
|
11783
|
+
const Ve = Ie.result ? Ie.result : d(Ie.language, Ie.code, D);
|
|
11784
|
+
return Ve.code = Ie.code, z("after:highlight", Ve), Ve;
|
|
11783
11785
|
}
|
|
11784
|
-
function
|
|
11786
|
+
function d(h, A, D, Y) {
|
|
11785
11787
|
const se = /* @__PURE__ */ Object.create(null);
|
|
11786
11788
|
function Ie(m, y) {
|
|
11787
11789
|
return m.keywords[y];
|
|
@@ -11798,12 +11800,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
11798
11800
|
x += oe.substring(m, y.index);
|
|
11799
11801
|
const J = je.case_insensitive ? y[0].toLowerCase() : y[0], be = Ie(P, J);
|
|
11800
11802
|
if (be) {
|
|
11801
|
-
const [tt,
|
|
11802
|
-
if (me.addText(x), x = "", se[J] = (se[J] || 0) + 1, se[J] <= dg && (Sn +=
|
|
11803
|
+
const [tt, Dr] = be;
|
|
11804
|
+
if (me.addText(x), x = "", se[J] = (se[J] || 0) + 1, se[J] <= dg && (Sn += Dr), tt.startsWith("_"))
|
|
11803
11805
|
x += y[0];
|
|
11804
11806
|
else {
|
|
11805
|
-
const
|
|
11806
|
-
Ge(y[0],
|
|
11807
|
+
const Mr = je.classNameAliases[tt] || tt;
|
|
11808
|
+
Ge(y[0], Mr);
|
|
11807
11809
|
}
|
|
11808
11810
|
} else
|
|
11809
11811
|
x += y[0];
|
|
@@ -11819,7 +11821,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
11819
11821
|
me.addText(oe);
|
|
11820
11822
|
return;
|
|
11821
11823
|
}
|
|
11822
|
-
m =
|
|
11824
|
+
m = d(P.subLanguage, oe, !0, ji[P.subLanguage]), ji[P.subLanguage] = /** @type {CompiledMode} */
|
|
11823
11825
|
m._top;
|
|
11824
11826
|
} else
|
|
11825
11827
|
m = g(oe, P.subLanguage.length ? P.subLanguage : null);
|
|
@@ -11862,17 +11864,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
11862
11864
|
if (m.endsWithParent)
|
|
11863
11865
|
return $i(m.parent, y, x);
|
|
11864
11866
|
}
|
|
11865
|
-
function
|
|
11867
|
+
function Lr(m) {
|
|
11866
11868
|
return P.matcher.regexIndex === 0 ? (oe += m[0], 1) : (Ro = !0, 0);
|
|
11867
11869
|
}
|
|
11868
|
-
function
|
|
11870
|
+
function Nr(m) {
|
|
11869
11871
|
const y = m[0], x = m.rule, J = new Gs(x), be = [x.__beforeBegin, x["on:begin"]];
|
|
11870
11872
|
for (const tt of be)
|
|
11871
11873
|
if (tt && (tt(m, J), J.isMatchIgnored))
|
|
11872
|
-
return
|
|
11874
|
+
return Lr(y);
|
|
11873
11875
|
return x.skip ? oe += y : (x.excludeBegin && (oe += y), Re(), !x.returnBegin && !x.excludeBegin && (oe = y)), Hi(x, m), x.returnBegin ? 0 : y.length;
|
|
11874
11876
|
}
|
|
11875
|
-
function
|
|
11877
|
+
function kr(m) {
|
|
11876
11878
|
const y = m[0], x = A.substring(m.index), J = $i(P, m, x);
|
|
11877
11879
|
if (!J)
|
|
11878
11880
|
return qs;
|
|
@@ -11883,7 +11885,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
11883
11885
|
while (P !== J.parent);
|
|
11884
11886
|
return J.starts && Hi(J.starts, m), be.returnEnd ? 0 : y.length;
|
|
11885
11887
|
}
|
|
11886
|
-
function
|
|
11888
|
+
function Br() {
|
|
11887
11889
|
const m = [];
|
|
11888
11890
|
for (let y = P; y !== je; y = y.parent)
|
|
11889
11891
|
y.scope && m.unshift(y.scope);
|
|
@@ -11902,12 +11904,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
11902
11904
|
return 1;
|
|
11903
11905
|
}
|
|
11904
11906
|
if (Cn = y, y.type === "begin")
|
|
11905
|
-
return
|
|
11907
|
+
return Nr(y);
|
|
11906
11908
|
if (y.type === "illegal" && !D) {
|
|
11907
11909
|
const J = new Error('Illegal lexeme "' + x + '" for mode "' + (P.scope || "<unnamed>") + '"');
|
|
11908
11910
|
throw J.mode = P, J;
|
|
11909
11911
|
} else if (y.type === "end") {
|
|
11910
|
-
const J =
|
|
11912
|
+
const J = kr(y);
|
|
11911
11913
|
if (J !== qs)
|
|
11912
11914
|
return J;
|
|
11913
11915
|
}
|
|
@@ -11917,13 +11919,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
11917
11919
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
11918
11920
|
return oe += x, x.length;
|
|
11919
11921
|
}
|
|
11920
|
-
const je =
|
|
11922
|
+
const je = L(h);
|
|
11921
11923
|
if (!je)
|
|
11922
11924
|
throw Lt(s.replace("{}", h)), new Error('Unknown language: "' + h + '"');
|
|
11923
|
-
const
|
|
11924
|
-
let ko = "", P = Y ||
|
|
11925
|
+
const Rr = cg(je);
|
|
11926
|
+
let ko = "", P = Y || Rr;
|
|
11925
11927
|
const ji = {}, me = new r.__emitter(r);
|
|
11926
|
-
|
|
11928
|
+
Br();
|
|
11927
11929
|
let oe = "", Sn = 0, Ot = 0, Bo = 0, Ro = !1;
|
|
11928
11930
|
try {
|
|
11929
11931
|
if (je.__emitTokens)
|
|
@@ -11987,16 +11989,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
11987
11989
|
}
|
|
11988
11990
|
function g(h, A) {
|
|
11989
11991
|
A = A || r.languages || Object.keys(t);
|
|
11990
|
-
const D = f(h), Y = A.filter(
|
|
11991
|
-
(Re) =>
|
|
11992
|
+
const D = f(h), Y = A.filter(L).filter(ne).map(
|
|
11993
|
+
(Re) => d(Re, h, !1)
|
|
11992
11994
|
);
|
|
11993
11995
|
Y.unshift(D);
|
|
11994
11996
|
const se = Y.sort((Re, Ge) => {
|
|
11995
11997
|
if (Re.relevance !== Ge.relevance) return Ge.relevance - Re.relevance;
|
|
11996
11998
|
if (Re.language && Ge.language) {
|
|
11997
|
-
if (
|
|
11999
|
+
if (L(Re.language).supersetOf === Ge.language)
|
|
11998
12000
|
return 1;
|
|
11999
|
-
if (
|
|
12001
|
+
if (L(Ge.language).supersetOf === Re.language)
|
|
12000
12002
|
return -1;
|
|
12001
12003
|
}
|
|
12002
12004
|
return 0;
|
|
@@ -12011,7 +12013,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
12011
12013
|
let A = null;
|
|
12012
12014
|
const D = _(h);
|
|
12013
12015
|
if (c(D)) return;
|
|
12014
|
-
if (
|
|
12016
|
+
if (z(
|
|
12015
12017
|
"before:highlightElement",
|
|
12016
12018
|
{ el: h, language: D }
|
|
12017
12019
|
), h.dataset.highlighted) {
|
|
@@ -12024,7 +12026,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
12024
12026
|
h.innerHTML
|
|
12025
12027
|
);
|
|
12026
12028
|
A = h;
|
|
12027
|
-
const Y = A.textContent, se = D ?
|
|
12029
|
+
const Y = A.textContent, se = D ? p(Y, { language: D, ignoreIllegals: !0 }) : g(Y);
|
|
12028
12030
|
h.innerHTML = se.value, h.dataset.highlighted = "yes", b(h, D, se.language), h.result = {
|
|
12029
12031
|
language: se.language,
|
|
12030
12032
|
// TODO: remove with version 11.0
|
|
@@ -12033,12 +12035,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
12033
12035
|
}, se.secondBest && (h.secondBest = {
|
|
12034
12036
|
language: se.secondBest.language,
|
|
12035
12037
|
relevance: se.secondBest.relevance
|
|
12036
|
-
}),
|
|
12038
|
+
}), z("after:highlightElement", { el: h, result: se, text: Y });
|
|
12037
12039
|
}
|
|
12038
|
-
function
|
|
12040
|
+
function C(h) {
|
|
12039
12041
|
r = Js(r, h);
|
|
12040
12042
|
}
|
|
12041
|
-
const
|
|
12043
|
+
const S = () => {
|
|
12042
12044
|
te(), Ft("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
12043
12045
|
};
|
|
12044
12046
|
function F() {
|
|
@@ -12052,10 +12054,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
12052
12054
|
}
|
|
12053
12055
|
document.querySelectorAll(r.cssSelector).forEach(E);
|
|
12054
12056
|
}
|
|
12055
|
-
function
|
|
12057
|
+
function G() {
|
|
12056
12058
|
H && te();
|
|
12057
12059
|
}
|
|
12058
|
-
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded",
|
|
12060
|
+
typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", G, !1);
|
|
12059
12061
|
function _e(h, A) {
|
|
12060
12062
|
let D = null;
|
|
12061
12063
|
try {
|
|
@@ -12067,29 +12069,29 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
12067
12069
|
throw Y;
|
|
12068
12070
|
D = a;
|
|
12069
12071
|
}
|
|
12070
|
-
D.name || (D.name = h), t[h] = D, D.rawDefinition = A.bind(null, e), D.aliases &&
|
|
12072
|
+
D.name || (D.name = h), t[h] = D, D.rawDefinition = A.bind(null, e), D.aliases && X(D.aliases, { languageName: h });
|
|
12071
12073
|
}
|
|
12072
|
-
function
|
|
12074
|
+
function Be(h) {
|
|
12073
12075
|
delete t[h];
|
|
12074
12076
|
for (const A of Object.keys(n))
|
|
12075
12077
|
n[A] === h && delete n[A];
|
|
12076
12078
|
}
|
|
12077
|
-
function
|
|
12079
|
+
function N() {
|
|
12078
12080
|
return Object.keys(t);
|
|
12079
12081
|
}
|
|
12080
|
-
function
|
|
12082
|
+
function L(h) {
|
|
12081
12083
|
return h = (h || "").toLowerCase(), t[h] || t[n[h]];
|
|
12082
12084
|
}
|
|
12083
|
-
function
|
|
12085
|
+
function X(h, { languageName: A }) {
|
|
12084
12086
|
typeof h == "string" && (h = [h]), h.forEach((D) => {
|
|
12085
12087
|
n[D.toLowerCase()] = A;
|
|
12086
12088
|
});
|
|
12087
12089
|
}
|
|
12088
12090
|
function ne(h) {
|
|
12089
|
-
const A =
|
|
12091
|
+
const A = L(h);
|
|
12090
12092
|
return A && !A.disableAutodetect;
|
|
12091
12093
|
}
|
|
12092
|
-
function
|
|
12094
|
+
function j(h) {
|
|
12093
12095
|
h["before:highlightBlock"] && !h["before:highlightElement"] && (h["before:highlightElement"] = (A) => {
|
|
12094
12096
|
h["before:highlightBlock"](
|
|
12095
12097
|
Object.assign({ block: A.el }, A)
|
|
@@ -12100,61 +12102,61 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
|
|
|
12100
12102
|
);
|
|
12101
12103
|
});
|
|
12102
12104
|
}
|
|
12103
|
-
function
|
|
12104
|
-
|
|
12105
|
+
function k(h) {
|
|
12106
|
+
j(h), o.push(h);
|
|
12105
12107
|
}
|
|
12106
|
-
function
|
|
12108
|
+
function q(h) {
|
|
12107
12109
|
const A = o.indexOf(h);
|
|
12108
12110
|
A !== -1 && o.splice(A, 1);
|
|
12109
12111
|
}
|
|
12110
|
-
function
|
|
12112
|
+
function z(h, A) {
|
|
12111
12113
|
const D = h;
|
|
12112
12114
|
o.forEach(function(Y) {
|
|
12113
12115
|
Y[D] && Y[D](A);
|
|
12114
12116
|
});
|
|
12115
12117
|
}
|
|
12116
|
-
function
|
|
12118
|
+
function pe(h) {
|
|
12117
12119
|
return Ft("10.7.0", "highlightBlock will be removed entirely in v12.0"), Ft("10.7.0", "Please use highlightElement now."), E(h);
|
|
12118
12120
|
}
|
|
12119
12121
|
Object.assign(e, {
|
|
12120
|
-
highlight:
|
|
12122
|
+
highlight: p,
|
|
12121
12123
|
highlightAuto: g,
|
|
12122
12124
|
highlightAll: te,
|
|
12123
12125
|
highlightElement: E,
|
|
12124
12126
|
// TODO: Remove with v12 API
|
|
12125
|
-
highlightBlock:
|
|
12126
|
-
configure:
|
|
12127
|
-
initHighlighting:
|
|
12127
|
+
highlightBlock: pe,
|
|
12128
|
+
configure: C,
|
|
12129
|
+
initHighlighting: S,
|
|
12128
12130
|
initHighlightingOnLoad: F,
|
|
12129
12131
|
registerLanguage: _e,
|
|
12130
|
-
unregisterLanguage:
|
|
12131
|
-
listLanguages:
|
|
12132
|
-
getLanguage:
|
|
12133
|
-
registerAliases:
|
|
12132
|
+
unregisterLanguage: Be,
|
|
12133
|
+
listLanguages: N,
|
|
12134
|
+
getLanguage: L,
|
|
12135
|
+
registerAliases: X,
|
|
12134
12136
|
autoDetection: ne,
|
|
12135
12137
|
inherit: Js,
|
|
12136
|
-
addPlugin:
|
|
12137
|
-
removePlugin:
|
|
12138
|
+
addPlugin: k,
|
|
12139
|
+
removePlugin: q
|
|
12138
12140
|
}), e.debugMode = function() {
|
|
12139
12141
|
i = !1;
|
|
12140
12142
|
}, e.safeMode = function() {
|
|
12141
12143
|
i = !0;
|
|
12142
12144
|
}, e.versionString = _g, e.regex = {
|
|
12143
12145
|
concat: Pt,
|
|
12144
|
-
lookahead:
|
|
12146
|
+
lookahead: hr,
|
|
12145
12147
|
either: Vi,
|
|
12146
12148
|
optional: Sh,
|
|
12147
12149
|
anyNumberOfTimes: Ch
|
|
12148
12150
|
};
|
|
12149
12151
|
for (const h in Un)
|
|
12150
|
-
typeof Un[h] == "object" &&
|
|
12152
|
+
typeof Un[h] == "object" && dr(Un[h]);
|
|
12151
12153
|
return Object.assign(e, Un), e;
|
|
12152
|
-
}, qt =
|
|
12153
|
-
qt.newInstance = () =>
|
|
12154
|
+
}, qt = Ir({});
|
|
12155
|
+
qt.newInstance = () => Ir({});
|
|
12154
12156
|
var fg = qt;
|
|
12155
12157
|
qt.HighlightJS = qt;
|
|
12156
12158
|
qt.default = qt;
|
|
12157
|
-
const jn = /* @__PURE__ */
|
|
12159
|
+
const jn = /* @__PURE__ */ tl(fg), Qs = "[A-Za-z$_][0-9A-Za-z$_]*", hg = [
|
|
12158
12160
|
"as",
|
|
12159
12161
|
// for exports
|
|
12160
12162
|
"in",
|
|
@@ -12204,7 +12206,7 @@ const jn = /* @__PURE__ */ el(fg), Qs = "[A-Za-z$_][0-9A-Za-z$_]*", hg = [
|
|
|
12204
12206
|
"undefined",
|
|
12205
12207
|
"NaN",
|
|
12206
12208
|
"Infinity"
|
|
12207
|
-
],
|
|
12209
|
+
], yr = [
|
|
12208
12210
|
// Fundamental objects
|
|
12209
12211
|
"Object",
|
|
12210
12212
|
"Function",
|
|
@@ -12254,7 +12256,7 @@ const jn = /* @__PURE__ */ el(fg), Qs = "[A-Za-z$_][0-9A-Za-z$_]*", hg = [
|
|
|
12254
12256
|
"Intl",
|
|
12255
12257
|
// WebAssembly
|
|
12256
12258
|
"WebAssembly"
|
|
12257
|
-
],
|
|
12259
|
+
], Cr = [
|
|
12258
12260
|
"Error",
|
|
12259
12261
|
"EvalError",
|
|
12260
12262
|
"InternalError",
|
|
@@ -12263,7 +12265,7 @@ const jn = /* @__PURE__ */ el(fg), Qs = "[A-Za-z$_][0-9A-Za-z$_]*", hg = [
|
|
|
12263
12265
|
"SyntaxError",
|
|
12264
12266
|
"TypeError",
|
|
12265
12267
|
"URIError"
|
|
12266
|
-
],
|
|
12268
|
+
], Sr = [
|
|
12267
12269
|
"setInterval",
|
|
12268
12270
|
"setTimeout",
|
|
12269
12271
|
"clearInterval",
|
|
@@ -12294,9 +12296,9 @@ const jn = /* @__PURE__ */ el(fg), Qs = "[A-Za-z$_][0-9A-Za-z$_]*", hg = [
|
|
|
12294
12296
|
"global"
|
|
12295
12297
|
// Node.js
|
|
12296
12298
|
], mg = [].concat(
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12299
|
+
Sr,
|
|
12300
|
+
yr,
|
|
12301
|
+
Cr
|
|
12300
12302
|
);
|
|
12301
12303
|
function Eg(e) {
|
|
12302
12304
|
const t = e.regex, n = (A, { after: D }) => {
|
|
@@ -12343,12 +12345,12 @@ function Eg(e) {
|
|
|
12343
12345
|
literal: gg,
|
|
12344
12346
|
built_in: mg,
|
|
12345
12347
|
"variable.language": Tg
|
|
12346
|
-
}, c = "[0-9](_?[0-9])*", _ = `\\.(${c})`,
|
|
12348
|
+
}, c = "[0-9](_?[0-9])*", _ = `\\.(${c})`, p = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
|
|
12347
12349
|
className: "number",
|
|
12348
12350
|
variants: [
|
|
12349
12351
|
// DecimalLiteral
|
|
12350
|
-
{ begin: `(\\b(${
|
|
12351
|
-
{ begin: `\\b(${
|
|
12352
|
+
{ begin: `(\\b(${p})((${_})|\\.)?|(${_}))[eE][+-]?(${c})\\b` },
|
|
12353
|
+
{ begin: `\\b(${p})\\b((${_})\\b|\\.)?|(${_})\\b` },
|
|
12352
12354
|
// DecimalBigIntegerLiteral
|
|
12353
12355
|
{ begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
|
|
12354
12356
|
// NonDecimalIntegerLiteral
|
|
@@ -12403,7 +12405,7 @@ function Eg(e) {
|
|
|
12403
12405
|
],
|
|
12404
12406
|
subLanguage: "graphql"
|
|
12405
12407
|
}
|
|
12406
|
-
},
|
|
12408
|
+
}, C = {
|
|
12407
12409
|
className: "string",
|
|
12408
12410
|
begin: "`",
|
|
12409
12411
|
end: "`",
|
|
@@ -12462,10 +12464,10 @@ function Eg(e) {
|
|
|
12462
12464
|
g,
|
|
12463
12465
|
b,
|
|
12464
12466
|
E,
|
|
12465
|
-
|
|
12467
|
+
C,
|
|
12466
12468
|
// Skip numbers when they are part of a variable name
|
|
12467
12469
|
{ match: /\$\d+/ },
|
|
12468
|
-
|
|
12470
|
+
d
|
|
12469
12471
|
// This is intentional:
|
|
12470
12472
|
// See https://github.com/highlightjs/highlight.js/issues/3288
|
|
12471
12473
|
// hljs.REGEXP_MODE
|
|
@@ -12480,7 +12482,7 @@ function Eg(e) {
|
|
|
12480
12482
|
"self"
|
|
12481
12483
|
].concat(H)
|
|
12482
12484
|
});
|
|
12483
|
-
const te = [].concat(F, f.contains),
|
|
12485
|
+
const te = [].concat(F, f.contains), G = te.concat([
|
|
12484
12486
|
// eat recursive parens in sub expressions
|
|
12485
12487
|
{
|
|
12486
12488
|
begin: /(\s*)\(/,
|
|
@@ -12497,8 +12499,8 @@ function Eg(e) {
|
|
|
12497
12499
|
excludeBegin: !0,
|
|
12498
12500
|
excludeEnd: !0,
|
|
12499
12501
|
keywords: r,
|
|
12500
|
-
contains:
|
|
12501
|
-
},
|
|
12502
|
+
contains: G
|
|
12503
|
+
}, Be = {
|
|
12502
12504
|
variants: [
|
|
12503
12505
|
// class Car extends vehicle
|
|
12504
12506
|
{
|
|
@@ -12531,7 +12533,7 @@ function Eg(e) {
|
|
|
12531
12533
|
}
|
|
12532
12534
|
}
|
|
12533
12535
|
]
|
|
12534
|
-
},
|
|
12536
|
+
}, N = {
|
|
12535
12537
|
relevance: 0,
|
|
12536
12538
|
match: t.either(
|
|
12537
12539
|
// Hard coded exceptions
|
|
@@ -12551,16 +12553,16 @@ function Eg(e) {
|
|
|
12551
12553
|
keywords: {
|
|
12552
12554
|
_: [
|
|
12553
12555
|
// se we still get relevance credit for JS library classes
|
|
12554
|
-
...
|
|
12555
|
-
...
|
|
12556
|
+
...yr,
|
|
12557
|
+
...Cr
|
|
12556
12558
|
]
|
|
12557
12559
|
}
|
|
12558
|
-
},
|
|
12560
|
+
}, L = {
|
|
12559
12561
|
label: "use_strict",
|
|
12560
12562
|
className: "meta",
|
|
12561
12563
|
relevance: 10,
|
|
12562
12564
|
begin: /^\s*['"]use (strict|asm)['"]/
|
|
12563
|
-
},
|
|
12565
|
+
}, X = {
|
|
12564
12566
|
variants: [
|
|
12565
12567
|
{
|
|
12566
12568
|
match: [
|
|
@@ -12590,14 +12592,14 @@ function Eg(e) {
|
|
|
12590
12592
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
12591
12593
|
className: "variable.constant"
|
|
12592
12594
|
};
|
|
12593
|
-
function
|
|
12595
|
+
function j(A) {
|
|
12594
12596
|
return t.concat("(?!", A.join("|"), ")");
|
|
12595
12597
|
}
|
|
12596
|
-
const
|
|
12598
|
+
const k = {
|
|
12597
12599
|
match: t.concat(
|
|
12598
12600
|
/\b/,
|
|
12599
|
-
|
|
12600
|
-
...
|
|
12601
|
+
j([
|
|
12602
|
+
...Sr,
|
|
12601
12603
|
"super",
|
|
12602
12604
|
"import"
|
|
12603
12605
|
].map((A) => `${A}\\s*\\(`)),
|
|
@@ -12606,7 +12608,7 @@ function Eg(e) {
|
|
|
12606
12608
|
),
|
|
12607
12609
|
className: "title.function",
|
|
12608
12610
|
relevance: 0
|
|
12609
|
-
},
|
|
12611
|
+
}, q = {
|
|
12610
12612
|
begin: t.concat(/\./, t.lookahead(
|
|
12611
12613
|
t.concat(o, /(?![0-9A-Za-z$_(])/)
|
|
12612
12614
|
)),
|
|
@@ -12615,7 +12617,7 @@ function Eg(e) {
|
|
|
12615
12617
|
keywords: "prototype",
|
|
12616
12618
|
className: "property",
|
|
12617
12619
|
relevance: 0
|
|
12618
|
-
},
|
|
12620
|
+
}, z = {
|
|
12619
12621
|
match: [
|
|
12620
12622
|
/get|set/,
|
|
12621
12623
|
/\s+/,
|
|
@@ -12633,7 +12635,7 @@ function Eg(e) {
|
|
|
12633
12635
|
},
|
|
12634
12636
|
_e
|
|
12635
12637
|
]
|
|
12636
|
-
},
|
|
12638
|
+
}, pe = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", h = {
|
|
12637
12639
|
match: [
|
|
12638
12640
|
/const|var|let/,
|
|
12639
12641
|
/\s+/,
|
|
@@ -12642,7 +12644,7 @@ function Eg(e) {
|
|
|
12642
12644
|
/=\s*/,
|
|
12643
12645
|
/(async\s*)?/,
|
|
12644
12646
|
// async is optional
|
|
12645
|
-
t.lookahead(
|
|
12647
|
+
t.lookahead(pe)
|
|
12646
12648
|
],
|
|
12647
12649
|
keywords: "async",
|
|
12648
12650
|
className: {
|
|
@@ -12658,7 +12660,7 @@ function Eg(e) {
|
|
|
12658
12660
|
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
12659
12661
|
keywords: r,
|
|
12660
12662
|
// this will be extended by TypeScript
|
|
12661
|
-
exports: { PARAMS_CONTAINS:
|
|
12663
|
+
exports: { PARAMS_CONTAINS: G, CLASS_REFERENCE: N },
|
|
12662
12664
|
illegal: /#(?![$_A-z])/,
|
|
12663
12665
|
contains: [
|
|
12664
12666
|
e.SHEBANG({
|
|
@@ -12666,18 +12668,18 @@ function Eg(e) {
|
|
|
12666
12668
|
binary: "node",
|
|
12667
12669
|
relevance: 5
|
|
12668
12670
|
}),
|
|
12669
|
-
|
|
12671
|
+
L,
|
|
12670
12672
|
e.APOS_STRING_MODE,
|
|
12671
12673
|
e.QUOTE_STRING_MODE,
|
|
12672
12674
|
g,
|
|
12673
12675
|
b,
|
|
12674
12676
|
E,
|
|
12675
|
-
|
|
12677
|
+
C,
|
|
12676
12678
|
F,
|
|
12677
12679
|
// Skip numbers when they are part of a variable name
|
|
12678
12680
|
{ match: /\$\d+/ },
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
+
d,
|
|
12682
|
+
N,
|
|
12681
12683
|
{
|
|
12682
12684
|
className: "attr",
|
|
12683
12685
|
begin: o + t.lookahead(":"),
|
|
@@ -12697,7 +12699,7 @@ function Eg(e) {
|
|
|
12697
12699
|
// we have to count the parens to make sure we actually have the
|
|
12698
12700
|
// correct bounding ( ) before the =>. There could be any number of
|
|
12699
12701
|
// sub-expressions inside also surrounded by parens.
|
|
12700
|
-
begin:
|
|
12702
|
+
begin: pe,
|
|
12701
12703
|
returnBegin: !0,
|
|
12702
12704
|
end: "\\s*=>",
|
|
12703
12705
|
contains: [
|
|
@@ -12719,7 +12721,7 @@ function Eg(e) {
|
|
|
12719
12721
|
excludeBegin: !0,
|
|
12720
12722
|
excludeEnd: !0,
|
|
12721
12723
|
keywords: r,
|
|
12722
|
-
contains:
|
|
12724
|
+
contains: G
|
|
12723
12725
|
}
|
|
12724
12726
|
]
|
|
12725
12727
|
}
|
|
@@ -12759,7 +12761,7 @@ function Eg(e) {
|
|
|
12759
12761
|
}
|
|
12760
12762
|
]
|
|
12761
12763
|
},
|
|
12762
|
-
|
|
12764
|
+
X,
|
|
12763
12765
|
{
|
|
12764
12766
|
// prevent this from getting swallowed up by function
|
|
12765
12767
|
// since they appear "function like"
|
|
@@ -12783,7 +12785,7 @@ function Eg(e) {
|
|
|
12783
12785
|
match: /\.\.\./,
|
|
12784
12786
|
relevance: 0
|
|
12785
12787
|
},
|
|
12786
|
-
|
|
12788
|
+
q,
|
|
12787
12789
|
// hack: prevents detection of keywords in some circumstances
|
|
12788
12790
|
// .keyword()
|
|
12789
12791
|
// $keyword = x
|
|
@@ -12796,10 +12798,10 @@ function Eg(e) {
|
|
|
12796
12798
|
className: { 1: "title.function" },
|
|
12797
12799
|
contains: [_e]
|
|
12798
12800
|
},
|
|
12799
|
-
|
|
12801
|
+
k,
|
|
12800
12802
|
ne,
|
|
12801
|
-
|
|
12802
|
-
|
|
12803
|
+
Be,
|
|
12804
|
+
z,
|
|
12803
12805
|
{
|
|
12804
12806
|
match: /\$[(.]/
|
|
12805
12807
|
// relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
|
|
@@ -12874,38 +12876,38 @@ const vg = /* @__PURE__ */ Qe({
|
|
|
12874
12876
|
}), r = (_) => {
|
|
12875
12877
|
s.value = _.code;
|
|
12876
12878
|
}, { open: c } = po("sourceDlg", r);
|
|
12877
|
-
return (_,
|
|
12878
|
-
const
|
|
12879
|
+
return (_, p) => {
|
|
12880
|
+
const d = Ae("v-sheet"), f = Ae("v-icon"), g = Ae("v-spacer"), b = Ae("v-dialog");
|
|
12879
12881
|
return he(), $e(b, {
|
|
12880
12882
|
modelValue: w(c),
|
|
12881
|
-
"onUpdate:modelValue":
|
|
12883
|
+
"onUpdate:modelValue": p[1] || (p[1] = (E) => an(c) ? c.value = E : null),
|
|
12882
12884
|
transition: "fade-transition",
|
|
12883
12885
|
persistent: "",
|
|
12884
12886
|
"no-click-animation": "",
|
|
12885
12887
|
fullscreen: "",
|
|
12886
|
-
onKeydown:
|
|
12888
|
+
onKeydown: p[2] || (p[2] = ta(rn((E) => c.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
12887
12889
|
}, {
|
|
12888
12890
|
default: Xe(() => [
|
|
12889
|
-
ge(
|
|
12891
|
+
ge(d, {
|
|
12890
12892
|
color: w(o),
|
|
12891
12893
|
width: "100%",
|
|
12892
12894
|
height: "100%"
|
|
12893
12895
|
}, {
|
|
12894
12896
|
default: Xe(() => [
|
|
12895
|
-
w(n) ? (he(), $e(
|
|
12897
|
+
w(n) ? (he(), $e(d, {
|
|
12896
12898
|
key: 0,
|
|
12897
12899
|
color: w(i),
|
|
12898
12900
|
height: 24
|
|
12899
12901
|
}, null, 8, ["color"])) : Gt("", !0),
|
|
12900
|
-
ge(
|
|
12902
|
+
ge(d, {
|
|
12901
12903
|
class: "d-flex align-center px-3",
|
|
12902
12904
|
color: w(i),
|
|
12903
12905
|
height: 48
|
|
12904
12906
|
}, {
|
|
12905
12907
|
default: Xe(() => [
|
|
12906
12908
|
ge(f, {
|
|
12907
|
-
icon: w(
|
|
12908
|
-
onClick:
|
|
12909
|
+
icon: w(Ga),
|
|
12910
|
+
onClick: p[0] || (p[0] = (E) => c.value = !1)
|
|
12909
12911
|
}, null, 8, ["icon"]),
|
|
12910
12912
|
He("span", bg, lo(w(t)("x-block-lib.dlg.source.title")), 1),
|
|
12911
12913
|
ge(g)
|
|
@@ -12928,15 +12930,15 @@ const vg = /* @__PURE__ */ Qe({
|
|
|
12928
12930
|
}), Ig = (e) => {
|
|
12929
12931
|
e.component("XBlockly", vh), e.component("XSourceDlg", Og);
|
|
12930
12932
|
};
|
|
12931
|
-
async function
|
|
12932
|
-
return (await
|
|
12933
|
+
async function Dg(e) {
|
|
12934
|
+
return (await wa(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-owbcs4f2.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-bw16iab9.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
12933
12935
|
}
|
|
12934
|
-
const
|
|
12936
|
+
const Mg = { install: Ig };
|
|
12935
12937
|
export {
|
|
12936
12938
|
vh as XBlockly,
|
|
12937
|
-
|
|
12938
|
-
|
|
12939
|
-
|
|
12939
|
+
Q as blocklyState,
|
|
12940
|
+
Rg as buildProps,
|
|
12941
|
+
Mg as default,
|
|
12940
12942
|
Op as initApp,
|
|
12941
12943
|
Ip as initBase,
|
|
12942
12944
|
yp as initCompute,
|
|
@@ -12944,5 +12946,5 @@ export {
|
|
|
12944
12946
|
Sp as initResource,
|
|
12945
12947
|
Lp as initRuntime,
|
|
12946
12948
|
Ig as install,
|
|
12947
|
-
|
|
12949
|
+
Dg as loadLocaleMessageBlock
|
|
12948
12950
|
};
|