x-block-lib 0.4.32 → 0.4.33

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.
Files changed (2) hide show
  1. package/dist/index.js +177 -173
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,11 +2,11 @@
2
2
  var Si = Object.defineProperty;
3
3
  var Ni = (e, t, n) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var ge = (e, t, n) => Ni(e, typeof t != "symbol" ? t + "" : t, n);
5
- import { getCurrentScope as ki, onScopeDispose as Bi, unref as M, computed as ie, watch as Fe, ref as $e, getCurrentInstance as un, onMounted as lt, defineComponent as We, onBeforeUnmount as Qt, resolveComponent as le, openBlock as Q, createBlock as De, withCtx as at, createVNode as ce, mergeProps as to, useModel as Kn, toRefs as Ri, reactive as Mi, h as xi, onUnmounted as Pi, nextTick as no, isRef as Kt, resolveDirective as Di, withDirectives as wi, createElementBlock as Ie, normalizeStyle as Ce, createElementVNode as Oe, toDisplayString as oo, withModifiers as Ht, Fragment as vr, renderList as Ui, withKeys as Vi, createCommentVNode as ot, mergeModels as Eo } from "vue";
6
- import { d as E, j as s, O as u, u as v, X as Yi, E as $, M as J, B as ee, F as yo, i as _n, a as Ke, b as G, C as Er, c as ro, e as Fi, P as Hn, N as io, V as $t, f as Ki, g as yr, s as Hi, h as Ge, S as te, k as Cn, l as tt, m as Rt, n as An, o as pt, p as He, q as bo, G as Ln, r as $i, t as Gi, v as Sn, U as Mt, D as xt, w as Qe, x as ji, T as pn, y as br, z as Xi, A as Wi, H as zi, I as Oo } from "./blockly-fzxzwly0.js";
5
+ import { getCurrentScope as ki, onScopeDispose as Bi, unref as M, computed as ie, watch as Fe, ref as $e, getCurrentInstance as _n, onMounted as lt, defineComponent as We, onBeforeUnmount as Zt, resolveComponent as le, openBlock as Q, createBlock as De, withCtx as at, createVNode as ce, mergeProps as to, useModel as Kn, toRefs as Ri, reactive as Mi, h as xi, onUnmounted as Pi, nextTick as no, isRef as Ht, resolveDirective as Di, withDirectives as wi, createElementBlock as Ie, normalizeStyle as Ce, createElementVNode as Oe, toDisplayString as oo, withModifiers as $t, Fragment as vr, renderList as Ui, withKeys as Vi, createCommentVNode as ot, mergeModels as Eo } from "vue";
6
+ import { d as E, j as s, O as u, u as v, X as Yi, E as $, M as J, B as ee, F as yo, i as pn, a as Ke, b as G, C as Er, c as ro, e as Fi, P as Hn, N as io, V as Gt, f as Ki, g as yr, s as Hi, h as Ge, S as te, k as Cn, l as tt, m as Mt, n as An, o as pt, p as He, q as bo, G as Ln, r as $i, t as Gi, v as Sn, U as xt, D as Pt, w as Qe, x as ji, T as dn, y as br, z as Xi, A as Wi, H as zi, I as Oo } from "./blockly-fzxzwly0.js";
7
7
  import { storeToRefs as Ji } from "pinia";
8
8
  import { openConfirmDlg as qi, openPromptDlg as Qi, eventBus as me, messageWarning as Or, useColor as Ir, useViewStack as ao, useSystem as Zi, useGlobalStore as ea } from "x-essential-lib";
9
- import { useI18n as dn } from "vue-i18n";
9
+ import { useI18n as Lt } from "vue-i18n";
10
10
  import { useDisplay as ta } from "vuetify";
11
11
  import { elements as na } from "x-runtime-lib";
12
12
  var oa = "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", ra = "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", ia = "M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z", aa = "M21 11H3V9H21V11M21 13H3V15H21V13Z", sa = "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", la = "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", ca = "M21 3L3 10.53V11.5L9.84 14.16L12.5 21H13.46L21 3Z";
@@ -25,7 +25,7 @@ function Io(e) {
25
25
  }
26
26
  const da = pa ? window : void 0;
27
27
  function fa() {
28
- const e = $e(!1), t = un();
28
+ const e = $e(!1), t = _n();
29
29
  return t && lt(() => {
30
30
  e.value = !0;
31
31
  }, t), e;
@@ -202,7 +202,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
202
202
  function Cr(e) {
203
203
  return e.length <= 0 && e.push([J.NO_OPTION, ""]), e;
204
204
  }
205
- function Pt(e) {
205
+ function Dt(e) {
206
206
  let t = "";
207
207
  if (e.type === "string") {
208
208
  let n = "";
@@ -266,6 +266,10 @@ const ma = v.xml, va = [
266
266
  type: "data_update_v1",
267
267
  inputs: ["SUCCESS", "MESSAGE", "DATA"]
268
268
  },
269
+ {
270
+ type: "func_entry_v1",
271
+ prefixInputs: ["INPUT"]
272
+ },
269
273
  {
270
274
  type: "procedure_def_v1",
271
275
  prefixInputs: ["ARG"]
@@ -323,14 +327,14 @@ const ya = {
323
327
  }
324
328
  },
325
329
  updateShape_: function() {
326
- this.name ? this.setFieldValue(J[this.name], "LABEL") : this.setFieldValue(this.key, "LABEL");
330
+ this.name ? this.setFieldValue(Lt().t(this.name), "LABEL") : this.setFieldValue(this.key, "LABEL");
327
331
  }
328
332
  };
329
333
  ee.parameter_v1 = ya;
330
334
  s.forBlock.parameter_v1 = function(e) {
331
335
  return [e.key, u.ATOMIC];
332
336
  };
333
- const Lt = function() {
337
+ const St = function() {
334
338
  if (!window.blocklyState) {
335
339
  const e = {
336
340
  runtime: {
@@ -371,7 +375,7 @@ const Lt = function() {
371
375
  return window.blocklyState;
372
376
  }();
373
377
  function Ar() {
374
- const { spaces: e } = Lt.compute, t = [];
378
+ const { spaces: e } = St.compute, t = [];
375
379
  for (const n in e) {
376
380
  const { id: o, name: r, sort: i } = e[n];
377
381
  t.push({ id: o, name: r, sort: i });
@@ -385,7 +389,7 @@ function ba() {
385
389
  }), Cr(e);
386
390
  }
387
391
  function Lr(e) {
388
- const { spaces: t } = Lt.compute, n = t[e];
392
+ const { spaces: t } = St.compute, n = t[e];
389
393
  if (!n)
390
394
  return [];
391
395
  const o = [];
@@ -406,7 +410,7 @@ function Oa(e) {
406
410
  }), Cr(t);
407
411
  }
408
412
  function Co() {
409
- return Lt.compute.activeFunc;
413
+ return St.compute.activeFunc;
410
414
  }
411
415
  const Ia = {
412
416
  init: function() {
@@ -488,22 +492,22 @@ function Ra(e) {
488
492
  return Ba.call(e);
489
493
  }
490
494
  var Ma = "[object Null]", xa = "[object Undefined]", Ao = we ? we.toStringTag : void 0;
491
- function St(e) {
495
+ function Nt(e) {
492
496
  return e == null ? e === void 0 ? xa : Ma : Ao && Ao in Object(e) ? Na(e) : Ra(e);
493
497
  }
494
498
  function je(e) {
495
499
  return e != null && typeof e == "object";
496
500
  }
497
501
  var It = Array.isArray;
498
- function Nt(e) {
502
+ function kt(e) {
499
503
  var t = typeof e;
500
504
  return e != null && (t == "object" || t == "function");
501
505
  }
502
506
  var Pa = "[object AsyncFunction]", Da = "[object Function]", wa = "[object GeneratorFunction]", Ua = "[object Proxy]";
503
507
  function kr(e) {
504
- if (!Nt(e))
508
+ if (!kt(e))
505
509
  return !1;
506
- var t = St(e);
510
+ var t = Nt(e);
507
511
  return t == Da || t == wa || t == Pa || t == Ua;
508
512
  }
509
513
  var Nn = ye["__core-js_shared__"], Lo = function() {
@@ -531,7 +535,7 @@ var Ka = /[\\^$.*+?()[\]{}|]/g, Ha = /^\[object .+?Constructor\]$/, $a = Functio
531
535
  "^" + ja.call(Xa).replace(Ka, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
532
536
  );
533
537
  function za(e) {
534
- if (!Nt(e) || Va(e))
538
+ if (!kt(e) || Va(e))
535
539
  return !1;
536
540
  var t = kr(e) ? Wa : Ha;
537
541
  return t.test(ze(e));
@@ -547,7 +551,7 @@ var $n = Je(ye, "WeakMap"), So = Object.create, qa = /* @__PURE__ */ function()
547
551
  function e() {
548
552
  }
549
553
  return function(t) {
550
- if (!Nt(t))
554
+ if (!kt(t))
551
555
  return {};
552
556
  if (So)
553
557
  return So(t);
@@ -623,7 +627,7 @@ function ss(e, t) {
623
627
  }
624
628
  var ls = "[object Arguments]";
625
629
  function ko(e) {
626
- return je(e) && St(e) == ls;
630
+ return je(e) && Nt(e) == ls;
627
631
  }
628
632
  var Pr = Object.prototype, cs = Pr.hasOwnProperty, us = Pr.propertyIsEnumerable, _s = ko(/* @__PURE__ */ function() {
629
633
  return arguments;
@@ -633,11 +637,11 @@ var Pr = Object.prototype, cs = Pr.hasOwnProperty, us = Pr.propertyIsEnumerable,
633
637
  function ps() {
634
638
  return !1;
635
639
  }
636
- var Dr = typeof exports == "object" && exports && !exports.nodeType && exports, Bo = Dr && typeof module == "object" && module && !module.nodeType && module, ds = Bo && Bo.exports === Dr, Ro = ds ? ye.Buffer : void 0, fs = Ro ? Ro.isBuffer : void 0, Zt = fs || ps, hs = "[object Arguments]", Ts = "[object Array]", gs = "[object Boolean]", ms = "[object Date]", vs = "[object Error]", Es = "[object Function]", ys = "[object Map]", bs = "[object Number]", Os = "[object Object]", Is = "[object RegExp]", Cs = "[object Set]", As = "[object String]", Ls = "[object WeakMap]", Ss = "[object ArrayBuffer]", Ns = "[object DataView]", ks = "[object Float32Array]", Bs = "[object Float64Array]", Rs = "[object Int8Array]", Ms = "[object Int16Array]", xs = "[object Int32Array]", Ps = "[object Uint8Array]", Ds = "[object Uint8ClampedArray]", ws = "[object Uint16Array]", Us = "[object Uint32Array]", V = {};
640
+ var Dr = typeof exports == "object" && exports && !exports.nodeType && exports, Bo = Dr && typeof module == "object" && module && !module.nodeType && module, ds = Bo && Bo.exports === Dr, Ro = ds ? ye.Buffer : void 0, fs = Ro ? Ro.isBuffer : void 0, en = fs || ps, hs = "[object Arguments]", Ts = "[object Array]", gs = "[object Boolean]", ms = "[object Date]", vs = "[object Error]", Es = "[object Function]", ys = "[object Map]", bs = "[object Number]", Os = "[object Object]", Is = "[object RegExp]", Cs = "[object Set]", As = "[object String]", Ls = "[object WeakMap]", Ss = "[object ArrayBuffer]", Ns = "[object DataView]", ks = "[object Float32Array]", Bs = "[object Float64Array]", Rs = "[object Int8Array]", Ms = "[object Int16Array]", xs = "[object Int32Array]", Ps = "[object Uint8Array]", Ds = "[object Uint8ClampedArray]", ws = "[object Uint16Array]", Us = "[object Uint32Array]", V = {};
637
641
  V[ks] = V[Bs] = V[Rs] = V[Ms] = V[xs] = V[Ps] = V[Ds] = V[ws] = V[Us] = !0;
638
642
  V[hs] = V[Ts] = V[Ss] = V[gs] = V[Ns] = V[ms] = V[vs] = V[Es] = V[ys] = V[bs] = V[Os] = V[Is] = V[Cs] = V[As] = V[Ls] = !1;
639
643
  function Vs(e) {
640
- return je(e) && Mr(e.length) && !!V[St(e)];
644
+ return je(e) && Mr(e.length) && !!V[Nt(e)];
641
645
  }
642
646
  function uo(e) {
643
647
  return function(t) {
@@ -652,7 +656,7 @@ var wr = typeof exports == "object" && exports && !exports.nodeType && exports,
652
656
  }
653
657
  }(), Mo = ct && ct.isTypedArray, Ur = Mo ? uo(Mo) : Vs, Fs = Object.prototype, Ks = Fs.hasOwnProperty;
654
658
  function Vr(e, t) {
655
- var n = It(e), o = !n && _s(e), r = !n && !o && Zt(e), i = !n && !o && !r && Ur(e), a = n || o || r || i, l = a ? ss(e.length, String) : [], c = l.length;
659
+ var n = It(e), o = !n && _s(e), r = !n && !o && en(e), i = !n && !o && !r && Ur(e), a = n || o || r || i, l = a ? ss(e.length, String) : [], c = l.length;
656
660
  for (var p in e)
657
661
  (t || Ks.call(e, p)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
658
662
  (p == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -687,7 +691,7 @@ function Xs(e) {
687
691
  }
688
692
  var Ws = Object.prototype, zs = Ws.hasOwnProperty;
689
693
  function Js(e) {
690
- if (!Nt(e))
694
+ if (!kt(e))
691
695
  return Xs(e);
692
696
  var t = co(e), n = [];
693
697
  for (var o in e)
@@ -906,9 +910,9 @@ function Gn(e) {
906
910
  function wl(e) {
907
911
  return jr(e, po, Gr);
908
912
  }
909
- var jn = Je(ye, "DataView"), Xn = Je(ye, "Promise"), Wn = Je(ye, "Set"), Uo = "[object Map]", Ul = "[object Object]", Vo = "[object Promise]", Yo = "[object Set]", Fo = "[object WeakMap]", Ko = "[object DataView]", Vl = ze(jn), Yl = ze(At), Fl = ze(Xn), Kl = ze(Wn), Hl = ze($n), Te = St;
913
+ var jn = Je(ye, "DataView"), Xn = Je(ye, "Promise"), Wn = Je(ye, "Set"), Uo = "[object Map]", Ul = "[object Object]", Vo = "[object Promise]", Yo = "[object Set]", Fo = "[object WeakMap]", Ko = "[object DataView]", Vl = ze(jn), Yl = ze(At), Fl = ze(Xn), Kl = ze(Wn), Hl = ze($n), Te = Nt;
910
914
  (jn && Te(new jn(new ArrayBuffer(1))) != Ko || At && Te(new At()) != Uo || Xn && Te(Xn.resolve()) != Vo || Wn && Te(new Wn()) != Yo || $n && Te(new $n()) != Fo) && (Te = function(e) {
911
- var t = St(e), n = t == Ul ? e.constructor : void 0, o = n ? ze(n) : "";
915
+ var t = Nt(e), n = t == Ul ? e.constructor : void 0, o = n ? ze(n) : "";
912
916
  if (o)
913
917
  switch (o) {
914
918
  case Vl:
@@ -929,10 +933,10 @@ function jl(e) {
929
933
  var t = e.length, n = new e.constructor(t);
930
934
  return t && typeof e[0] == "string" && Gl.call(e, "index") && (n.index = e.index, n.input = e.input), n;
931
935
  }
932
- var en = ye.Uint8Array;
936
+ var tn = ye.Uint8Array;
933
937
  function ho(e) {
934
938
  var t = new e.constructor(e.byteLength);
935
- return new en(t).set(new en(e)), t;
939
+ return new tn(t).set(new tn(e)), t;
936
940
  }
937
941
  function Xl(e, t) {
938
942
  var n = t ? ho(e.buffer) : e.buffer;
@@ -999,11 +1003,11 @@ function Oc(e) {
999
1003
  var jo = ct && ct.isSet, Ic = jo ? uo(jo) : Oc, Cc = 1, Ac = 2, Lc = 4, Xr = "[object Arguments]", Sc = "[object Array]", Nc = "[object Boolean]", kc = "[object Date]", Bc = "[object Error]", Wr = "[object Function]", Rc = "[object GeneratorFunction]", Mc = "[object Map]", xc = "[object Number]", zr = "[object Object]", Pc = "[object RegExp]", Dc = "[object Set]", wc = "[object String]", Uc = "[object Symbol]", Vc = "[object WeakMap]", Yc = "[object ArrayBuffer]", Fc = "[object DataView]", Kc = "[object Float32Array]", Hc = "[object Float64Array]", $c = "[object Int8Array]", Gc = "[object Int16Array]", jc = "[object Int32Array]", Xc = "[object Uint8Array]", Wc = "[object Uint8ClampedArray]", zc = "[object Uint16Array]", Jc = "[object Uint32Array]", w = {};
1000
1004
  w[Xr] = w[Sc] = w[Yc] = w[Fc] = w[Nc] = w[kc] = w[Kc] = w[Hc] = w[$c] = w[Gc] = w[jc] = w[Mc] = w[xc] = w[zr] = w[Pc] = w[Dc] = w[wc] = w[Uc] = w[Xc] = w[Wc] = w[zc] = w[Jc] = !0;
1001
1005
  w[Bc] = w[Wr] = w[Vc] = !1;
1002
- function Gt(e, t, n, o, r, i) {
1006
+ function jt(e, t, n, o, r, i) {
1003
1007
  var a, l = t & Cc, c = t & Ac, p = t & Lc;
1004
1008
  if (a !== void 0)
1005
1009
  return a;
1006
- if (!Nt(e))
1010
+ if (!kt(e))
1007
1011
  return e;
1008
1012
  var d = It(e);
1009
1013
  if (d) {
@@ -1011,7 +1015,7 @@ function Gt(e, t, n, o, r, i) {
1011
1015
  return Qa(e, a);
1012
1016
  } else {
1013
1017
  var _ = Te(e), T = _ == Wr || _ == Rc;
1014
- if (Zt(e))
1018
+ if (en(e))
1015
1019
  return kl(e, l);
1016
1020
  if (_ == zr || _ == Xr || T && !r) {
1017
1021
  if (a = c || T ? {} : mc(e), !l)
@@ -1027,18 +1031,18 @@ function Gt(e, t, n, o, r, i) {
1027
1031
  if (f)
1028
1032
  return f;
1029
1033
  i.set(e, a), Ic(e) ? e.forEach(function(y) {
1030
- a.add(Gt(y, t, n, y, e, i));
1034
+ a.add(jt(y, t, n, y, e, i));
1031
1035
  }) : yc(e) && e.forEach(function(y, b) {
1032
- a.set(b, Gt(y, t, n, b, e, i));
1036
+ a.set(b, jt(y, t, n, b, e, i));
1033
1037
  });
1034
1038
  var m = p ? c ? wl : Gn : c ? po : _o, g = d ? void 0 : m(e);
1035
1039
  return Za(g || e, function(y, b) {
1036
- g && (b = y, y = e[b]), Rr(a, b, Gt(y, t, n, b, e, i));
1040
+ g && (b = y, y = e[b]), Rr(a, b, jt(y, t, n, b, e, i));
1037
1041
  }), a;
1038
1042
  }
1039
1043
  var qc = 1, Qc = 4;
1040
1044
  function Zc(e) {
1041
- return Gt(e, qc | Qc);
1045
+ return jt(e, qc | Qc);
1042
1046
  }
1043
1047
  var eu = "__lodash_hash_undefined__";
1044
1048
  function tu(e) {
@@ -1047,13 +1051,13 @@ function tu(e) {
1047
1051
  function nu(e) {
1048
1052
  return this.__data__.has(e);
1049
1053
  }
1050
- function tn(e) {
1054
+ function nn(e) {
1051
1055
  var t = -1, n = e == null ? 0 : e.length;
1052
1056
  for (this.__data__ = new qe(); ++t < n; )
1053
1057
  this.add(e[t]);
1054
1058
  }
1055
- tn.prototype.add = tn.prototype.push = tu;
1056
- tn.prototype.has = nu;
1059
+ nn.prototype.add = nn.prototype.push = tu;
1060
+ nn.prototype.has = nu;
1057
1061
  function ou(e, t) {
1058
1062
  for (var n = -1, o = e == null ? 0 : e.length; ++n < o; )
1059
1063
  if (t(e[n], n, e))
@@ -1071,7 +1075,7 @@ function Jr(e, t, n, o, r, i) {
1071
1075
  var p = i.get(e), d = i.get(t);
1072
1076
  if (p && d)
1073
1077
  return p == t && d == e;
1074
- var _ = -1, T = !0, f = n & au ? new tn() : void 0;
1078
+ var _ = -1, T = !0, f = n & au ? new nn() : void 0;
1075
1079
  for (i.set(e, t), i.set(t, e); ++_ < l; ) {
1076
1080
  var m = e[_], g = t[_];
1077
1081
  if (o)
@@ -1117,7 +1121,7 @@ function bu(e, t, n, o, r, i, a) {
1117
1121
  return !1;
1118
1122
  e = e.buffer, t = t.buffer;
1119
1123
  case Eu:
1120
- return !(e.byteLength != t.byteLength || !i(new en(e), new en(t)));
1124
+ return !(e.byteLength != t.byteLength || !i(new tn(e), new tn(t)));
1121
1125
  case _u:
1122
1126
  case pu:
1123
1127
  case hu:
@@ -1177,13 +1181,13 @@ function Au(e, t, n, o, r, i) {
1177
1181
  }
1178
1182
  return i.delete(e), i.delete(t), g;
1179
1183
  }
1180
- var Lu = 1, Wo = "[object Arguments]", zo = "[object Array]", Dt = "[object Object]", Su = Object.prototype, Jo = Su.hasOwnProperty;
1184
+ var Lu = 1, Wo = "[object Arguments]", zo = "[object Array]", wt = "[object Object]", Su = Object.prototype, Jo = Su.hasOwnProperty;
1181
1185
  function Nu(e, t, n, o, r, i) {
1182
1186
  var a = It(e), l = It(t), c = a ? zo : Te(e), p = l ? zo : Te(t);
1183
- c = c == Wo ? Dt : c, p = p == Wo ? Dt : p;
1184
- var d = c == Dt, _ = p == Dt, T = c == p;
1185
- if (T && Zt(e)) {
1186
- if (!Zt(t))
1187
+ c = c == Wo ? wt : c, p = p == Wo ? wt : p;
1188
+ var d = c == wt, _ = p == wt, T = c == p;
1189
+ if (T && en(e)) {
1190
+ if (!en(t))
1187
1191
  return !1;
1188
1192
  a = !0, d = !1;
1189
1193
  }
@@ -1243,7 +1247,7 @@ const Bu = {
1243
1247
  const e = [];
1244
1248
  for (let t = 0; t < this.func.inputs.length; t++) {
1245
1249
  const n = this.func.inputs[t];
1246
- e.push(["INPUT" + t, "", n.name]);
1250
+ e.push(["INPUT" + t, n.name, ""]);
1247
1251
  }
1248
1252
  ga(this, e);
1249
1253
  },
@@ -1291,7 +1295,7 @@ ee.list_create_item_v1 = Pu;
1291
1295
  const Du = {
1292
1296
  init: function() {
1293
1297
  this.itemCount_ = 0, this.setMutator(
1294
- new _n.MutatorIcon(
1298
+ new pn.MutatorIcon(
1295
1299
  ["list_create_item_v1"],
1296
1300
  this
1297
1301
  )
@@ -2905,7 +2909,7 @@ ee.object_create_item_v1 = Xu;
2905
2909
  const Wu = {
2906
2910
  init: function() {
2907
2911
  this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_TITLE}"), this.setMutator(
2908
- new _n.MutatorIcon(
2912
+ new pn.MutatorIcon(
2909
2913
  ["object_create_item_v1"],
2910
2914
  this
2911
2915
  )
@@ -3276,7 +3280,7 @@ const qu = {
3276
3280
  Hn.findLegalName("", this)
3277
3281
  );
3278
3282
  e.setValidator(Hn.rename), e.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(e, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
3279
- new _n.MutatorIcon(
3283
+ new pn.MutatorIcon(
3280
3284
  ["procedure_def_item_v1"],
3281
3285
  this
3282
3286
  )
@@ -3455,7 +3459,7 @@ s.forBlock.text_v1 = function(e) {
3455
3459
  return [s.quote_(e.getFieldValue("TEXT")), u.ATOMIC];
3456
3460
  };
3457
3461
  const e_ = /^\s*'([^']|\\')*'\s*$/;
3458
- function jt(e) {
3462
+ function Xt(e) {
3459
3463
  return e_.test(e) ? [e, u.ATOMIC] : [`String(${e})`, u.FUNCTION_CALL];
3460
3464
  }
3461
3465
  G.register(
@@ -3492,7 +3496,7 @@ s.forBlock.text_append_v1 = function(e) {
3492
3496
  e.getFieldValue("VAR"),
3493
3497
  io.NameType.VARIABLE
3494
3498
  ), n = s.valueToCode(e, "TEXT", u.NONE) || "''";
3495
- return `${t} += ${jt(n)};
3499
+ return `${t} += ${Xt(n)};
3496
3500
  `;
3497
3501
  };
3498
3502
  E([
@@ -3737,7 +3741,7 @@ const t_ = v.xml, n_ = {
3737
3741
  this.removeInput("ADD" + e);
3738
3742
  }
3739
3743
  }, o_ = function() {
3740
- this.itemCount_ = 2, this.updateShape_(), this.setMutator(new _n.MutatorIcon(["text_join_item_v1"], this));
3744
+ this.itemCount_ = 2, this.updateShape_(), this.setMutator(new pn.MutatorIcon(["text_join_item_v1"], this));
3741
3745
  };
3742
3746
  G.registerMutator(
3743
3747
  "text_join_mutator_v1",
@@ -3785,11 +3789,11 @@ s.forBlock.text_join_v1 = function(e) {
3785
3789
  return ["''", u.ATOMIC];
3786
3790
  case 1: {
3787
3791
  const n = s.valueToCode(t, "ADD0", u.NONE) || "''";
3788
- return jt(n);
3792
+ return Xt(n);
3789
3793
  }
3790
3794
  case 2: {
3791
3795
  const n = s.valueToCode(t, "ADD0", u.NONE) || "''", o = s.valueToCode(t, "ADD1", u.NONE) || "''";
3792
- return [jt(n)[0] + " + " + jt(o)[0], u.ADDITION];
3796
+ return [Xt(n)[0] + " + " + Xt(o)[0], u.ADDITION];
3793
3797
  }
3794
3798
  default: {
3795
3799
  const n = new Array(t.itemCount_);
@@ -3990,13 +3994,13 @@ const r_ = {
3990
3994
  updateShadow_: function() {
3991
3995
  var e, t, n, o, r, i, a, l;
3992
3996
  this.isInsertionMarker() || ((t = (e = this.getInput("INTERVAL")) == null ? void 0 : e.connection) == null || t.setShadowDom(
3993
- Pt({ type: "number", default: 1e3 })
3997
+ Dt({ type: "number", default: 1e3 })
3994
3998
  ), (o = (n = this.getInput("LOOP")) == null ? void 0 : n.connection) == null || o.setShadowDom(
3995
- Pt({ type: "boolean", default: !1 })
3999
+ Dt({ type: "boolean", default: !1 })
3996
4000
  ), (i = (r = this.getInput("COUNT")) == null ? void 0 : r.connection) == null || i.setShadowDom(
3997
- Pt({ type: "number", default: 1 })
4001
+ Dt({ type: "number", default: 1 })
3998
4002
  ), (l = (a = this.getInput("IMMEDIATE")) == null ? void 0 : a.connection) == null || l.setShadowDom(
3999
- Pt({ type: "boolean", default: !1 })
4003
+ Dt({ type: "boolean", default: !1 })
4000
4004
  ));
4001
4005
  }
4002
4006
  };
@@ -4062,7 +4066,7 @@ const i_ = {
4062
4066
  }, a_ = function(e) {
4063
4067
  return function() {
4064
4068
  const t = e.workspace, o = e.getField("VAR").getVariable();
4065
- $t.renameVariable(t, o);
4069
+ Gt.renameVariable(t, o);
4066
4070
  };
4067
4071
  }, s_ = function(e) {
4068
4072
  return function() {
@@ -4201,7 +4205,7 @@ const Me = {
4201
4205
  callback: f_
4202
4206
  };
4203
4207
  function h_() {
4204
- const { args: e } = Lt.app.view, t = [];
4208
+ const { args: e } = St.app.view, t = [];
4205
4209
  return e == null || e.forEach(({ id: n, name: o, type: r }) => {
4206
4210
  t.push({ id: n, name: o, type: r });
4207
4211
  }), t;
@@ -4221,14 +4225,14 @@ function T_() {
4221
4225
  }
4222
4226
  return e;
4223
4227
  }
4224
- const nn = {
4228
+ const on = {
4225
4229
  name: "UI_CATEGORY",
4226
4230
  callback: T_
4227
- }, wt = v.xml;
4231
+ }, Ut = v.xml;
4228
4232
  function g_(e) {
4229
4233
  const t = [];
4230
4234
  {
4231
- const o = wt.createElement("label");
4235
+ const o = Ut.createElement("label");
4232
4236
  o.setAttribute("text", "%{BKY_LABEL_VARIABLE}"), t.push(o);
4233
4237
  }
4234
4238
  {
@@ -4236,7 +4240,7 @@ function g_(e) {
4236
4240
  o.setAttribute("text", "%{BKY_NEW_VARIABLE}"), o.setAttribute("callbackKey", "CREATE_VARIABLE"), e.registerButtonCallback(
4237
4241
  "CREATE_VARIABLE",
4238
4242
  function(r) {
4239
- $t.createVariableButtonHandler(
4243
+ Gt.createVariableButtonHandler(
4240
4244
  r.getTargetWorkspace()
4241
4245
  );
4242
4246
  }
@@ -4247,17 +4251,17 @@ function g_(e) {
4247
4251
  return t;
4248
4252
  n.sort(Ki.compareByName);
4249
4253
  {
4250
- const o = wt.createElement("label");
4254
+ const o = Ut.createElement("label");
4251
4255
  o.setAttribute("text", J.LABEL_CREATED), t.push(o);
4252
4256
  }
4253
4257
  return n.forEach((o) => {
4254
4258
  {
4255
- const r = wt.createElement("block");
4256
- r.setAttribute("type", "variable_get_v1"), r.appendChild($t.generateVariableFieldDom(o)), t.push(r);
4259
+ const r = Ut.createElement("block");
4260
+ r.setAttribute("type", "variable_get_v1"), r.appendChild(Gt.generateVariableFieldDom(o)), t.push(r);
4257
4261
  }
4258
4262
  {
4259
- const r = wt.createElement("block");
4260
- r.setAttribute("type", "variable_set_v1"), r.appendChild($t.generateVariableFieldDom(o)), t.push(r);
4263
+ const r = Ut.createElement("block");
4264
+ r.setAttribute("type", "variable_set_v1"), r.appendChild(Gt.generateVariableFieldDom(o)), t.push(r);
4261
4265
  }
4262
4266
  }), t;
4263
4267
  }
@@ -4337,7 +4341,7 @@ class m_ {
4337
4341
  },
4338
4342
  preconditionFn: function() {
4339
4343
  const n = tt();
4340
- return !n || !Rt(n) || !n.isDeletable() || !An(n) || !n.isMovable() || !pt(n) ? "disabled" : "enabled";
4344
+ return !n || !Mt(n) || !n.isDeletable() || !An(n) || !n.isMovable() || !pt(n) ? "disabled" : "enabled";
4341
4345
  },
4342
4346
  callback: function(n) {
4343
4347
  var o;
@@ -4394,7 +4398,7 @@ class m_ {
4394
4398
  if (i.options.readOnly || Ln.inProgress())
4395
4399
  return !1;
4396
4400
  const a = tt();
4397
- return !(!a || !Rt(a) || !a.isDeletable() || !An(a) || !a.isMovable() || !pt(a));
4401
+ return !(!a || !Mt(a) || !a.isDeletable() || !An(a) || !a.isMovable() || !pt(a));
4398
4402
  },
4399
4403
  callback: function(i, a) {
4400
4404
  a.preventDefault();
@@ -4424,12 +4428,12 @@ class m_ {
4424
4428
  if (i.options.readOnly || Ln.inProgress())
4425
4429
  return !1;
4426
4430
  const a = tt();
4427
- return !(!a || !Rt(a) || !a.isDeletable() || !An(a) || !a.isMovable() || !pt(a) || a.workspace.isFlyout);
4431
+ return !(!a || !Mt(a) || !a.isDeletable() || !An(a) || !a.isMovable() || !pt(a) || a.workspace.isFlyout);
4428
4432
  },
4429
4433
  callback: function(i, a) {
4430
4434
  a.preventDefault();
4431
4435
  const l = tt();
4432
- if (!l || !Rt(l) || !l.isDeletable() || !pt(l))
4436
+ if (!l || !Mt(l) || !l.isDeletable() || !pt(l))
4433
4437
  return !1;
4434
4438
  const c = l.toCopyData();
4435
4439
  return c ? (localStorage.setItem("blocklyStash", JSON.stringify(c)), l instanceof $i ? l.checkAndDelete() : l.dispose(), !0) : !1;
@@ -5116,13 +5120,13 @@ class ri extends Sn {
5116
5120
  ), this.createBorderRect_(), this.getBorderRect().style.fillOpacity = "1", this.getBorderRect().setAttribute("stroke", "#fff"), this.isFullBlockField() && (this.clickTarget_ = this.sourceBlock_.getSvgRoot());
5117
5121
  }
5118
5122
  isFullBlockField() {
5119
- if (!this.getSourceBlock()) throw new Mt();
5123
+ if (!this.getSourceBlock()) throw new xt();
5120
5124
  const o = this.getConstants();
5121
5125
  return this.blockIsSimpleReporter() && !!(o != null && o.FIELD_COLOUR_FULL_BLOCK);
5122
5126
  }
5123
5127
  blockIsSimpleReporter() {
5124
5128
  const n = this.getSourceBlock();
5125
- if (!n) throw new Mt();
5129
+ if (!n) throw new xt();
5126
5130
  if (!n.outputConnection) return !1;
5127
5131
  for (const o of n.inputList)
5128
5132
  if (o.connection || o.fieldRow.length > 1) return !1;
@@ -5130,7 +5134,7 @@ class ri extends Sn {
5130
5134
  }
5131
5135
  applyColour() {
5132
5136
  const n = this.getSourceBlock();
5133
- if (!n) throw new Mt();
5137
+ if (!n) throw new xt();
5134
5138
  if (!this.fieldGroup_) return;
5135
5139
  const o = this.borderRect_;
5136
5140
  if (!o)
@@ -5144,7 +5148,7 @@ class ri extends Sn {
5144
5148
  render_() {
5145
5149
  super.render_();
5146
5150
  const n = this.getSourceBlock();
5147
- if (!n) throw new Mt();
5151
+ if (!n) throw new xt();
5148
5152
  n.applyColour();
5149
5153
  }
5150
5154
  updateSize_(n) {
@@ -5169,14 +5173,14 @@ class ri extends Sn {
5169
5173
  showEditor_() {
5170
5174
  if (this.dropdownCreate(), !this.picker)
5171
5175
  throw Error("Picker not found");
5172
- xt.getContentDiv().appendChild(this.picker), xt.showPositionedByField(
5176
+ Pt.getContentDiv().appendChild(this.picker), Pt.showPositionedByField(
5173
5177
  this,
5174
5178
  this.dropdownDispose.bind(this)
5175
5179
  ), this.picker.focus({ preventScroll: !0 });
5176
5180
  }
5177
5181
  onClick(n) {
5178
5182
  const o = n.target, r = o && o.getAttribute("data-colour");
5179
- r !== null && (this.setValue(r), xt.hideIfOwner(this));
5183
+ r !== null && (this.setValue(r), Pt.hideIfOwner(this));
5180
5184
  }
5181
5185
  onKeyDown(n) {
5182
5186
  let o = !0, r;
@@ -5198,7 +5202,7 @@ class ri extends Sn {
5198
5202
  const i = r.getAttribute("data-colour");
5199
5203
  i !== null && this.setValue(i);
5200
5204
  }
5201
- xt.hideWithoutAnimation();
5205
+ Pt.hideWithoutAnimation();
5202
5206
  break;
5203
5207
  default:
5204
5208
  o = !1;
@@ -5360,7 +5364,7 @@ O_.init();
5360
5364
  const I_ = new E_();
5361
5365
  I_.init();
5362
5366
  y_();
5363
- pn.Classic.blockStyles = {
5367
+ dn.Classic.blockStyles = {
5364
5368
  color_blocks: {
5365
5369
  colourPrimary: "#a5745b",
5366
5370
  colourSecondary: "#ede3de",
@@ -5434,7 +5438,7 @@ pn.Classic.blockStyles = {
5434
5438
  hat: ""
5435
5439
  }
5436
5440
  };
5437
- pn.Classic.categoryStyles = {
5441
+ dn.Classic.categoryStyles = {
5438
5442
  calc_category: {
5439
5443
  colour: "#757575"
5440
5444
  },
@@ -5489,7 +5493,7 @@ pn.Classic.categoryStyles = {
5489
5493
  };
5490
5494
  const C_ = br.defineTheme("light", {
5491
5495
  name: "light",
5492
- base: pn.Classic,
5496
+ base: dn.Classic,
5493
5497
  componentStyles: {
5494
5498
  workspaceBackgroundColour: "#ffffff",
5495
5499
  toolboxBackgroundColour: "#eeeeee",
@@ -5505,7 +5509,7 @@ const C_ = br.defineTheme("light", {
5505
5509
  }
5506
5510
  }), A_ = br.defineTheme("dark", {
5507
5511
  name: "dark",
5508
- base: pn.Classic,
5512
+ base: dn.Classic,
5509
5513
  componentStyles: {
5510
5514
  workspaceBackgroundColour: "#1e1e1e",
5511
5515
  toolboxBackgroundColour: "#272727",
@@ -6201,7 +6205,7 @@ const gn = {
6201
6205
  kind: "category",
6202
6206
  name: "%{BKY_CATEGORY_UI}",
6203
6207
  categorystyle: "ui_category",
6204
- custom: nn.name
6208
+ custom: on.name
6205
6209
  },
6206
6210
  En,
6207
6211
  vn,
@@ -6295,7 +6299,7 @@ const gn = {
6295
6299
  kind: "category",
6296
6300
  name: "%{BKY_CATEGORY_UI}",
6297
6301
  categorystyle: "ui_category",
6298
- custom: nn.name
6302
+ custom: on.name
6299
6303
  },
6300
6304
  En,
6301
6305
  vn,
@@ -6330,7 +6334,7 @@ const gn = {
6330
6334
  lock: { type: Boolean }
6331
6335
  },
6332
6336
  setup(e) {
6333
- const { t } = dn(), n = e, o = () => {
6337
+ const { t } = Lt(), n = e, o = () => {
6334
6338
  if (n.lock) {
6335
6339
  Or(t("x-block-lib.msg.cannotCleanInLockState"));
6336
6340
  return;
@@ -6343,7 +6347,7 @@ const gn = {
6343
6347
  };
6344
6348
  return lt(() => {
6345
6349
  me.on("cleanWorkspace", o);
6346
- }), Qt(() => {
6350
+ }), Zt(() => {
6347
6351
  me.off("cleanWorkspace", o);
6348
6352
  }), (r, i) => {
6349
6353
  const a = le("v-btn"), l = le("v-tooltip");
@@ -6371,7 +6375,7 @@ const gn = {
6371
6375
  },
6372
6376
  emits: ["update:modelValue"],
6373
6377
  setup(e) {
6374
- const { t } = dn(), n = Kn(e, "modelValue");
6378
+ const { t } = Lt(), n = Kn(e, "modelValue");
6375
6379
  return (o, r) => {
6376
6380
  const i = le("v-btn"), a = le("v-tooltip");
6377
6381
  return Q(), De(a, {
@@ -6391,19 +6395,19 @@ const gn = {
6391
6395
  };
6392
6396
  }
6393
6397
  });
6394
- var x_ = Object.defineProperty, on = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, tr = (e, t, n) => t in e ? x_(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rt = (e, t) => {
6398
+ var x_ = Object.defineProperty, rn = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, tr = (e, t, n) => t in e ? x_(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rt = (e, t) => {
6395
6399
  for (var n in t || (t = {}))
6396
6400
  ai.call(t, n) && tr(e, n, t[n]);
6397
- if (on)
6398
- for (var n of on(t))
6401
+ if (rn)
6402
+ for (var n of rn(t))
6399
6403
  si.call(t, n) && tr(e, n, t[n]);
6400
6404
  return e;
6401
6405
  }, li = (e, t) => {
6402
6406
  var n = {};
6403
6407
  for (var o in e)
6404
6408
  ai.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
6405
- if (e != null && on)
6406
- for (var o of on(e))
6409
+ if (e != null && rn)
6410
+ for (var o of rn(e))
6407
6411
  t.indexOf(o) < 0 && si.call(e, o) && (n[o] = e[o]);
6408
6412
  return n;
6409
6413
  };
@@ -6498,13 +6502,13 @@ function Ee(e) {
6498
6502
  }
6499
6503
  return e;
6500
6504
  }
6501
- function Xt(e) {
6505
+ function Wt(e) {
6502
6506
  "@babel/helpers - typeof";
6503
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Xt = function(t) {
6507
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Wt = function(t) {
6504
6508
  return typeof t;
6505
- } : Xt = function(t) {
6509
+ } : Wt = function(t) {
6506
6510
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
6507
- }, Xt(e);
6511
+ }, Wt(e);
6508
6512
  }
6509
6513
  function X_(e, t, n) {
6510
6514
  return t in e ? Object.defineProperty(e, t, {
@@ -6548,7 +6552,7 @@ function Le(e) {
6548
6552
  if (typeof window < "u" && window.navigator)
6549
6553
  return !!/* @__PURE__ */ navigator.userAgent.match(e);
6550
6554
  }
6551
- var ke = Le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), kt = Le(/Edge/i), lr = Le(/firefox/i), vt = Le(/safari/i) && !Le(/chrome/i) && !Le(/android/i), ui = Le(/iP(ad|od|hone)/i), _i = Le(/chrome/i) && Le(/android/i), pi = {
6555
+ var ke = Le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Bt = Le(/Edge/i), lr = Le(/firefox/i), vt = Le(/safari/i) && !Le(/chrome/i) && !Le(/android/i), ui = Le(/iP(ad|od|hone)/i), _i = Le(/chrome/i) && Le(/android/i), pi = {
6552
6556
  capture: !1,
6553
6557
  passive: !1
6554
6558
  };
@@ -6558,7 +6562,7 @@ function B(e, t, n) {
6558
6562
  function N(e, t, n) {
6559
6563
  e.removeEventListener(t, n, !ke && pi);
6560
6564
  }
6561
- function rn(e, t) {
6565
+ function an(e, t) {
6562
6566
  if (t) {
6563
6567
  if (t[0] === ">" && (t = t.substring(1)), e)
6564
6568
  try {
@@ -6581,7 +6585,7 @@ function he(e, t, n, o) {
6581
6585
  if (e) {
6582
6586
  n = n || document;
6583
6587
  do {
6584
- if (t != null && (t[0] === ">" ? e.parentNode === n && rn(e, t) : rn(e, t)) || o && e === n)
6588
+ if (t != null && (t[0] === ">" ? e.parentNode === n && an(e, t) : an(e, t)) || o && e === n)
6585
6589
  return e;
6586
6590
  if (e === n)
6587
6591
  break;
@@ -6681,7 +6685,7 @@ function ut(e, t, n, o) {
6681
6685
  return null;
6682
6686
  }
6683
6687
  function To(e, t) {
6684
- for (var n = e.lastElementChild; n && (n === I.ghost || O(n, "display") === "none" || t && !rn(n, t)); )
6688
+ for (var n = e.lastElementChild; n && (n === I.ghost || O(n, "display") === "none" || t && !an(n, t)); )
6685
6689
  n = n.previousElementSibling;
6686
6690
  return n || null;
6687
6691
  }
@@ -6690,7 +6694,7 @@ function pe(e, t) {
6690
6694
  if (!e || !e.parentNode)
6691
6695
  return -1;
6692
6696
  for (; e = e.previousElementSibling; )
6693
- e.nodeName.toUpperCase() !== "TEMPLATE" && e !== I.clone && (!t || rn(e, t)) && n++;
6697
+ e.nodeName.toUpperCase() !== "TEMPLATE" && e !== I.clone && (!t || an(e, t)) && n++;
6694
6698
  return n;
6695
6699
  }
6696
6700
  function _r(e) {
@@ -6836,7 +6840,7 @@ function op(e, t, n, o) {
6836
6840
  }
6837
6841
  var Ze = [], xn = {
6838
6842
  initializeByDefault: !0
6839
- }, Bt = {
6843
+ }, Rt = {
6840
6844
  mount: function(e) {
6841
6845
  for (var t in xn)
6842
6846
  xn.hasOwnProperty(t) && !(t in e) && (e[t] = xn[t]);
@@ -6890,11 +6894,11 @@ function rp(e) {
6890
6894
  var t = e.sortable, n = e.rootEl, o = e.name, r = e.targetEl, i = e.cloneEl, a = e.toEl, l = e.fromEl, c = e.oldIndex, p = e.newIndex, d = e.oldDraggableIndex, _ = e.newDraggableIndex, T = e.originalEvent, f = e.putSortable, m = e.extraEventProperties;
6891
6895
  if (t = t || n && n[ue], !!t) {
6892
6896
  var g, y = t.options, b = "on" + o.charAt(0).toUpperCase() + o.substr(1);
6893
- window.CustomEvent && !ke && !kt ? g = new CustomEvent(o, {
6897
+ window.CustomEvent && !ke && !Bt ? g = new CustomEvent(o, {
6894
6898
  bubbles: !0,
6895
6899
  cancelable: !0
6896
6900
  }) : (g = document.createEvent("Event"), g.initEvent(o, !0, !0)), g.to = a || n, g.from = l || n, g.item = r || n, g.clone = i, g.oldIndex = c, g.newIndex = p, g.oldDraggableIndex = d, g.newDraggableIndex = _, g.originalEvent = T, g.pullMode = f ? f.lastPutMode : void 0;
6897
- var R = Ee(Ee({}, m), Bt.getEventProperties(o, t));
6901
+ var R = Ee(Ee({}, m), Rt.getEventProperties(o, t));
6898
6902
  for (var k in R)
6899
6903
  g[k] = R[k];
6900
6904
  n && n.dispatchEvent(g), y[b] && y[b].call(t, g);
@@ -6902,13 +6906,13 @@ function rp(e) {
6902
6906
  }
6903
6907
  var ip = ["evt"], re = function(e, t) {
6904
6908
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, r = z_(n, ip);
6905
- Bt.pluginEvent.bind(I)(e, t, Ee({
6909
+ Rt.pluginEvent.bind(I)(e, t, Ee({
6906
6910
  dragEl: h,
6907
6911
  parentEl: H,
6908
6912
  ghostEl: A,
6909
6913
  rootEl: Y,
6910
6914
  nextEl: Ye,
6911
- lastDownEl: Wt,
6915
+ lastDownEl: zt,
6912
6916
  cloneEl: F,
6913
6917
  cloneHidden: Re,
6914
6918
  dragStarted: ht,
@@ -6948,7 +6952,7 @@ function ne(e) {
6948
6952
  newDraggableIndex: Be
6949
6953
  }, e));
6950
6954
  }
6951
- var h, H, A, Y, Ye, Wt, F, Re, it, se, yt, Be, Ut, q, nt = !1, an = !1, sn = [], Ue, fe, Pn, Dn, pr, dr, ht, et, bt, Ot = !1, Vt = !1, zt, Z, wn = [], Jn = !1, ln = [], In = typeof document < "u", Yt = ui, fr = kt || ke ? "cssFloat" : "float", ap = In && !_i && !ui && "draggable" in document.createElement("div"), mi = function() {
6955
+ var h, H, A, Y, Ye, zt, F, Re, it, se, yt, Be, Vt, q, nt = !1, sn = !1, ln = [], Ue, fe, Pn, Dn, pr, dr, ht, et, bt, Ot = !1, Yt = !1, Jt, Z, wn = [], Jn = !1, cn = [], In = typeof document < "u", Ft = ui, fr = Bt || ke ? "cssFloat" : "float", ap = In && !_i && !ui && "draggable" in document.createElement("div"), mi = function() {
6952
6956
  if (In) {
6953
6957
  if (ke)
6954
6958
  return !1;
@@ -6971,7 +6975,7 @@ var h, H, A, Y, Ye, Wt, F, Re, it, se, yt, Be, Ut, q, nt = !1, an = !1, sn = [],
6971
6975
  return o === a || r === l || o + i / 2 === a + c / 2;
6972
6976
  }, lp = function(e, t) {
6973
6977
  var n;
6974
- return sn.some(function(o) {
6978
+ return ln.some(function(o) {
6975
6979
  var r = o[ue].options.emptyInsertThreshold;
6976
6980
  if (!(!r || To(o))) {
6977
6981
  var i = z(o), a = e >= i.left - r && e <= i.right + r, l = t >= i.top - r && t <= i.bottom + r;
@@ -6996,7 +7000,7 @@ var h, H, A, Y, Ye, Wt, F, Re, it, se, yt, Be, Ut, q, nt = !1, an = !1, sn = [],
6996
7000
  };
6997
7001
  }
6998
7002
  var n = {}, o = e.group;
6999
- (!o || Xt(o) != "object") && (o = {
7003
+ (!o || Wt(o) != "object") && (o = {
7000
7004
  name: o
7001
7005
  }), n.name = o.name, n.checkPull = t(o.pull, !0), n.checkPut = t(o.put), n.revertClone = o.revertClone, e.group = n;
7002
7006
  }, yi = function() {
@@ -7005,8 +7009,8 @@ var h, H, A, Y, Ye, Wt, F, Re, it, se, yt, Be, Ut, q, nt = !1, an = !1, sn = [],
7005
7009
  !mi && A && O(A, "display", "");
7006
7010
  };
7007
7011
  In && !_i && document.addEventListener("click", function(e) {
7008
- if (an)
7009
- return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), an = !1, !1;
7012
+ if (sn)
7013
+ return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), sn = !1, !1;
7010
7014
  }, !0);
7011
7015
  var Ve = function(e) {
7012
7016
  if (h) {
@@ -7071,13 +7075,13 @@ function I(e, t) {
7071
7075
  supportPointer: I.supportPointer !== !1 && "PointerEvent" in window && !vt,
7072
7076
  emptyInsertThreshold: 5
7073
7077
  };
7074
- Bt.initializePlugins(this, e, n);
7078
+ Rt.initializePlugins(this, e, n);
7075
7079
  for (var o in n)
7076
7080
  !(o in t) && (t[o] = n[o]);
7077
7081
  Ei(t);
7078
7082
  for (var r in this)
7079
7083
  r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
7080
- this.nativeDraggable = t.forceFallback ? !1 : ap, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? B(e, "pointerdown", this._onTapStart) : (B(e, "mousedown", this._onTapStart), B(e, "touchstart", this._onTapStart)), this.nativeDraggable && (B(e, "dragover", this), B(e, "dragenter", this)), sn.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Se(this, tp());
7084
+ this.nativeDraggable = t.forceFallback ? !1 : ap, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? B(e, "pointerdown", this._onTapStart) : (B(e, "mousedown", this._onTapStart), B(e, "touchstart", this._onTapStart)), this.nativeDraggable && (B(e, "dragover", this), B(e, "dragenter", this)), ln.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Se(this, tp());
7081
7085
  }
7082
7086
  I.prototype = /** @lends Sortable.prototype */
7083
7087
  {
@@ -7091,7 +7095,7 @@ I.prototype = /** @lends Sortable.prototype */
7091
7095
  _onTapStart: function(e) {
7092
7096
  if (e.cancelable) {
7093
7097
  var t = this, n = this.el, o = this.options, r = o.preventOnFilter, i = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (a || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, p = o.filter;
7094
- if (gp(n), !h && !(/mousedown|pointerdown/.test(i) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && vt && l && l.tagName.toUpperCase() === "SELECT") && (l = he(l, o.draggable, n, !1), !(l && l.animated) && Wt !== l)) {
7098
+ if (gp(n), !h && !(/mousedown|pointerdown/.test(i) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && vt && l && l.tagName.toUpperCase() === "SELECT") && (l = he(l, o.draggable, n, !1), !(l && l.animated) && zt !== l)) {
7095
7099
  if (it = pe(l), yt = pe(l, o.draggable), typeof p == "function") {
7096
7100
  if (p.call(this, e, l, this)) {
7097
7101
  ne({
@@ -7130,7 +7134,7 @@ I.prototype = /** @lends Sortable.prototype */
7130
7134
  var o = this, r = o.el, i = o.options, a = r.ownerDocument, l;
7131
7135
  if (n && !h && n.parentNode === r) {
7132
7136
  var c = z(n);
7133
- if (Y = r, h = n, H = h.parentNode, Ye = h.nextSibling, Wt = n, Ut = i.group, I.dragged = h, Ue = {
7137
+ if (Y = r, h = n, H = h.parentNode, Ye = h.nextSibling, zt = n, Vt = i.group, I.dragged = h, Ue = {
7134
7138
  target: h,
7135
7139
  clientX: (t || e).clientX,
7136
7140
  clientY: (t || e).clientY
@@ -7150,7 +7154,7 @@ I.prototype = /** @lends Sortable.prototype */
7150
7154
  di(h, p.trim(), Un);
7151
7155
  }), B(a, "dragover", Ve), B(a, "mousemove", Ve), B(a, "touchmove", Ve), B(a, "mouseup", o._onDrop), B(a, "touchend", o._onDrop), B(a, "touchcancel", o._onDrop), lr && this.nativeDraggable && (this.options.touchStartThreshold = 4, h.draggable = !0), re("delayStart", this, {
7152
7156
  evt: e
7153
- }), i.delay && (!i.delayOnTouchOnly || t) && (!this.nativeDraggable || !(kt || ke))) {
7157
+ }), i.delay && (!i.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Bt || ke))) {
7154
7158
  if (I.eventCanceled) {
7155
7159
  this._onDrop();
7156
7160
  return;
@@ -7174,7 +7178,7 @@ I.prototype = /** @lends Sortable.prototype */
7174
7178
  _triggerDragStart: function(e, t) {
7175
7179
  t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? B(document, "pointermove", this._onTouchMove) : t ? B(document, "touchmove", this._onTouchMove) : B(document, "mousemove", this._onTouchMove) : (B(h, "dragend", this), B(Y, "dragstart", this._onDragStart));
7176
7180
  try {
7177
- document.selection ? Jt(function() {
7181
+ document.selection ? qt(function() {
7178
7182
  document.selection.empty();
7179
7183
  }) : window.getSelection().removeAllRanges();
7180
7184
  } catch {
@@ -7218,7 +7222,7 @@ I.prototype = /** @lends Sortable.prototype */
7218
7222
  },
7219
7223
  _onTouchMove: function(e) {
7220
7224
  if (Ue) {
7221
- var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, r = e.touches ? e.touches[0] : e, i = A && st(A, !0), a = A && i && i.a, l = A && i && i.d, c = Yt && Z && _r(Z), p = (r.clientX - Ue.clientX + o.x) / (a || 1) + (c ? c[0] - wn[0] : 0) / (a || 1), d = (r.clientY - Ue.clientY + o.y) / (l || 1) + (c ? c[1] - wn[1] : 0) / (l || 1);
7225
+ var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, r = e.touches ? e.touches[0] : e, i = A && st(A, !0), a = A && i && i.a, l = A && i && i.d, c = Ft && Z && _r(Z), p = (r.clientX - Ue.clientX + o.x) / (a || 1) + (c ? c[0] - wn[0] : 0) / (a || 1), d = (r.clientY - Ue.clientY + o.y) / (l || 1) + (c ? c[1] - wn[1] : 0) / (l || 1);
7222
7226
  if (!I.active && !nt) {
7223
7227
  if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
7224
7228
  return;
@@ -7241,13 +7245,13 @@ I.prototype = /** @lends Sortable.prototype */
7241
7245
  },
7242
7246
  _appendGhost: function() {
7243
7247
  if (!A) {
7244
- var e = this.options.fallbackOnBody ? document.body : Y, t = z(h, !0, Yt, !0, e), n = this.options;
7245
- if (Yt) {
7248
+ var e = this.options.fallbackOnBody ? document.body : Y, t = z(h, !0, Ft, !0, e), n = this.options;
7249
+ if (Ft) {
7246
7250
  for (Z = e; O(Z, "position") === "static" && O(Z, "transform") === "none" && Z !== document; )
7247
7251
  Z = Z.parentNode;
7248
7252
  Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = ve()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = ve(), wn = _r(Z);
7249
7253
  }
7250
- A = h.cloneNode(!0), ae(A, n.ghostClass, !1), ae(A, n.fallbackClass, !0), ae(A, n.dragClass, !0), O(A, "transition", ""), O(A, "transform", ""), O(A, "box-sizing", "border-box"), O(A, "margin", 0), O(A, "top", t.top), O(A, "left", t.left), O(A, "width", t.width), O(A, "height", t.height), O(A, "opacity", "0.8"), O(A, "position", Yt ? "absolute" : "fixed"), O(A, "zIndex", "100000"), O(A, "pointerEvents", "none"), I.ghost = A, e.appendChild(A), O(A, "transform-origin", pr / parseInt(A.style.width) * 100 + "% " + dr / parseInt(A.style.height) * 100 + "%");
7254
+ A = h.cloneNode(!0), ae(A, n.ghostClass, !1), ae(A, n.fallbackClass, !0), ae(A, n.dragClass, !0), O(A, "transition", ""), O(A, "transform", ""), O(A, "box-sizing", "border-box"), O(A, "margin", 0), O(A, "top", t.top), O(A, "left", t.left), O(A, "width", t.width), O(A, "height", t.height), O(A, "opacity", "0.8"), O(A, "position", Ft ? "absolute" : "fixed"), O(A, "zIndex", "100000"), O(A, "pointerEvents", "none"), I.ghost = A, e.appendChild(A), O(A, "transform-origin", pr / parseInt(A.style.width) * 100 + "% " + dr / parseInt(A.style.height) * 100 + "%");
7251
7255
  }
7252
7256
  },
7253
7257
  _onDragStart: function(e, t) {
@@ -7258,16 +7262,16 @@ I.prototype = /** @lends Sortable.prototype */
7258
7262
  this._onDrop();
7259
7263
  return;
7260
7264
  }
7261
- re("setupClone", this), I.eventCanceled || (F = Ti(h), F.removeAttribute("id"), F.draggable = !1, F.style["will-change"] = "", this._hideClone(), ae(F, this.options.chosenClass, !1), I.clone = F), n.cloneId = Jt(function() {
7265
+ re("setupClone", this), I.eventCanceled || (F = Ti(h), F.removeAttribute("id"), F.draggable = !1, F.style["will-change"] = "", this._hideClone(), ae(F, this.options.chosenClass, !1), I.clone = F), n.cloneId = qt(function() {
7262
7266
  re("clone", n), !I.eventCanceled && (n.options.removeCloneOnHide || Y.insertBefore(F, h), n._hideClone(), ne({
7263
7267
  sortable: n,
7264
7268
  name: "clone"
7265
7269
  }));
7266
- }), !t && ae(h, r.dragClass, !0), t ? (an = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (N(document, "mouseup", n._onDrop), N(document, "touchend", n._onDrop), N(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(n, o, h)), B(document, "drop", n), O(h, "transform", "translateZ(0)")), nt = !0, n._dragStartId = Jt(n._dragStarted.bind(n, t, e)), B(document, "selectstart", n), ht = !0, vt && O(document.body, "user-select", "none");
7270
+ }), !t && ae(h, r.dragClass, !0), t ? (sn = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (N(document, "mouseup", n._onDrop), N(document, "touchend", n._onDrop), N(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(n, o, h)), B(document, "drop", n), O(h, "transform", "translateZ(0)")), nt = !0, n._dragStartId = qt(n._dragStarted.bind(n, t, e)), B(document, "selectstart", n), ht = !0, vt && O(document.body, "user-select", "none");
7267
7271
  },
7268
7272
  // Returns true - if no further action is needed (either inserted or another condition)
7269
7273
  _onDragOver: function(e) {
7270
- var t = this.el, n = e.target, o, r, i, a = this.options, l = a.group, c = I.active, p = Ut === l, d = a.sort, _ = q || c, T, f = this, m = !1;
7274
+ var t = this.el, n = e.target, o, r, i, a = this.options, l = a.group, c = I.active, p = Vt === l, d = a.sort, _ = q || c, T, f = this, m = !1;
7271
7275
  if (Jn)
7272
7276
  return;
7273
7277
  function g(_e, _t) {
@@ -7283,7 +7287,7 @@ I.prototype = /** @lends Sortable.prototype */
7283
7287
  target: n,
7284
7288
  completed: b,
7285
7289
  onMove: function(vo, Li) {
7286
- return Ft(Y, t, h, o, vo, z(vo), e, Li);
7290
+ return Kt(Y, t, h, o, vo, z(vo), e, Li);
7287
7291
  },
7288
7292
  changed: R
7289
7293
  }, _t));
@@ -7312,7 +7316,7 @@ I.prototype = /** @lends Sortable.prototype */
7312
7316
  return m;
7313
7317
  if (h.contains(e.target) || n.animated && n.animatingX && n.animatingY || f._ignoreWhileAnimating === n)
7314
7318
  return b(!1);
7315
- if (an = !1, c && !a.disabled && (p ? d || (i = H !== Y) : q === this || (this.lastPutMode = Ut.checkPull(this, c, h, e)) && l.checkPut(this, c, h, e))) {
7319
+ if (sn = !1, c && !a.disabled && (p ? d || (i = H !== Y) : q === this || (this.lastPutMode = Vt.checkPull(this, c, h, e)) && l.checkPut(this, c, h, e))) {
7316
7320
  if (T = this._getDirection(e, n) === "vertical", o = z(h), g("dragOverValid"), I.eventCanceled)
7317
7321
  return m;
7318
7322
  if (i)
@@ -7321,18 +7325,18 @@ I.prototype = /** @lends Sortable.prototype */
7321
7325
  if (!k || dp(e, T, this) && !k.animated) {
7322
7326
  if (k === h)
7323
7327
  return b(!1);
7324
- if (k && t === e.target && (n = k), n && (r = z(n)), Ft(Y, t, h, o, n, r, e, !!n) !== !1)
7328
+ if (k && t === e.target && (n = k), n && (r = z(n)), Kt(Y, t, h, o, n, r, e, !!n) !== !1)
7325
7329
  return y(), k && k.nextSibling ? t.insertBefore(h, k.nextSibling) : t.appendChild(h), H = t, R(), b(!0);
7326
7330
  } else if (k && pp(e, T, this)) {
7327
7331
  var j = ut(t, 0, a, !0);
7328
7332
  if (j === h)
7329
7333
  return b(!1);
7330
- if (n = j, r = z(n), Ft(Y, t, h, o, n, r, e, !1) !== !1)
7334
+ if (n = j, r = z(n), Kt(Y, t, h, o, n, r, e, !1) !== !1)
7331
7335
  return y(), t.insertBefore(h, j), H = t, R(), b(!0);
7332
7336
  } else if (n.parentNode === t) {
7333
7337
  r = z(n);
7334
7338
  var U = 0, de, be = h.parentNode !== t, C = !sp(h.animated && h.toRect || o, n.animated && n.toRect || r, T), S = T ? "top" : "left", P = ur(n, "top", "top") || ur(h, "top", "top"), X = P ? P.scrollTop : void 0;
7335
- et !== n && (de = r[S], Ot = !1, Vt = !C && a.invertSwap || be), U = fp(e, n, r, T, C ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Vt, et === n);
7339
+ et !== n && (de = r[S], Ot = !1, Yt = !C && a.invertSwap || be), U = fp(e, n, r, T, C ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Yt, et === n);
7336
7340
  var x;
7337
7341
  if (U !== 0) {
7338
7342
  var K = pe(h);
@@ -7345,9 +7349,9 @@ I.prototype = /** @lends Sortable.prototype */
7345
7349
  et = n, bt = U;
7346
7350
  var L = n.nextElementSibling, D = !1;
7347
7351
  D = U === 1;
7348
- var oe = Ft(Y, t, h, o, n, r, e, D);
7352
+ var oe = Kt(Y, t, h, o, n, r, e, D);
7349
7353
  if (oe !== !1)
7350
- return (oe === 1 || oe === -1) && (D = oe === 1), Jn = !0, setTimeout(_p, 30), y(), D && !L ? t.appendChild(h) : n.parentNode.insertBefore(h, D ? L : n), P && hi(P, 0, X - P.scrollTop), H = h.parentNode, de !== void 0 && !Vt && (zt = Math.abs(de - z(n)[S])), R(), b(!0);
7354
+ return (oe === 1 || oe === -1) && (D = oe === 1), Jn = !0, setTimeout(_p, 30), y(), D && !L ? t.appendChild(h) : n.parentNode.insertBefore(h, D ? L : n), P && hi(P, 0, X - P.scrollTop), H = h.parentNode, de !== void 0 && !Yt && (Jt = Math.abs(de - z(n)[S])), R(), b(!0);
7351
7355
  }
7352
7356
  if (t.contains(h))
7353
7357
  return b(!1);
@@ -7370,7 +7374,7 @@ I.prototype = /** @lends Sortable.prototype */
7370
7374
  this._nulling();
7371
7375
  return;
7372
7376
  }
7373
- nt = !1, Vt = !1, Ot = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), qn(this.cloneId), qn(this._dragStartId), this.nativeDraggable && (N(document, "drop", this), N(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), vt && O(document.body, "user-select", ""), O(h, "transform", ""), e && (ht && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), A && A.parentNode && A.parentNode.removeChild(A), (Y === H || q && q.lastPutMode !== "clone") && F && F.parentNode && F.parentNode.removeChild(F), h && (this.nativeDraggable && N(h, "dragend", this), Un(h), h.style["will-change"] = "", ht && !nt && ae(h, q ? q.options.ghostClass : this.options.ghostClass, !1), ae(h, this.options.chosenClass, !1), ne({
7377
+ nt = !1, Yt = !1, Ot = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), qn(this.cloneId), qn(this._dragStartId), this.nativeDraggable && (N(document, "drop", this), N(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), vt && O(document.body, "user-select", ""), O(h, "transform", ""), e && (ht && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), A && A.parentNode && A.parentNode.removeChild(A), (Y === H || q && q.lastPutMode !== "clone") && F && F.parentNode && F.parentNode.removeChild(F), h && (this.nativeDraggable && N(h, "dragend", this), Un(h), h.style["will-change"] = "", ht && !nt && ae(h, q ? q.options.ghostClass : this.options.ghostClass, !1), ae(h, this.options.chosenClass, !1), ne({
7374
7378
  sortable: this,
7375
7379
  name: "unchoose",
7376
7380
  toEl: H,
@@ -7417,9 +7421,9 @@ I.prototype = /** @lends Sortable.prototype */
7417
7421
  }), this.save()))), this._nulling();
7418
7422
  },
7419
7423
  _nulling: function() {
7420
- re("nulling", this), Y = h = H = A = Ye = F = Wt = Re = Ue = fe = ht = se = Be = it = yt = et = bt = q = Ut = I.dragged = I.ghost = I.clone = I.active = null, ln.forEach(function(e) {
7424
+ re("nulling", this), Y = h = H = A = Ye = F = zt = Re = Ue = fe = ht = se = Be = it = yt = et = bt = q = Vt = I.dragged = I.ghost = I.clone = I.active = null, cn.forEach(function(e) {
7421
7425
  e.checked = !0;
7422
- }), ln.length = Pn = Dn = 0;
7426
+ }), cn.length = Pn = Dn = 0;
7423
7427
  },
7424
7428
  handleEvent: function(e) {
7425
7429
  switch (e.type) {
@@ -7484,7 +7488,7 @@ I.prototype = /** @lends Sortable.prototype */
7484
7488
  var n = this.options;
7485
7489
  if (t === void 0)
7486
7490
  return n[e];
7487
- var o = Bt.modifyOption(this, e, t);
7491
+ var o = Rt.modifyOption(this, e, t);
7488
7492
  typeof o < "u" ? n[e] = o : n[e] = t, e === "group" && Ei(n);
7489
7493
  },
7490
7494
  /**
@@ -7495,7 +7499,7 @@ I.prototype = /** @lends Sortable.prototype */
7495
7499
  var e = this.el;
7496
7500
  e[ue] = null, N(e, "mousedown", this._onTapStart), N(e, "touchstart", this._onTapStart), N(e, "pointerdown", this._onTapStart), this.nativeDraggable && (N(e, "dragover", this), N(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(t) {
7497
7501
  t.removeAttribute("draggable");
7498
- }), this._onDrop(), this._disableDelayedDragEvents(), sn.splice(sn.indexOf(this.el), 1), this.el = e = null;
7502
+ }), this._onDrop(), this._disableDelayedDragEvents(), ln.splice(ln.indexOf(this.el), 1), this.el = e = null;
7499
7503
  },
7500
7504
  _hideClone: function() {
7501
7505
  if (!Re) {
@@ -7519,9 +7523,9 @@ I.prototype = /** @lends Sortable.prototype */
7519
7523
  function up(e) {
7520
7524
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
7521
7525
  }
7522
- function Ft(e, t, n, o, r, i, a, l) {
7526
+ function Kt(e, t, n, o, r, i, a, l) {
7523
7527
  var c, p = e[ue], d = p.options.onMove, _;
7524
- return window.CustomEvent && !ke && !kt ? c = new CustomEvent("move", {
7528
+ return window.CustomEvent && !ke && !Bt ? c = new CustomEvent("move", {
7525
7529
  bubbles: !0,
7526
7530
  cancelable: !0
7527
7531
  }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = o, c.related = r || t, c.relatedRect = i || z(t), c.willInsertAfter = l, c.originalEvent = a, e.dispatchEvent(c), d && (_ = d.call(p, c, a)), _;
@@ -7543,10 +7547,10 @@ function dp(e, t, n) {
7543
7547
  function fp(e, t, n, o, r, i, a, l) {
7544
7548
  var c = o ? e.clientY : e.clientX, p = o ? n.height : n.width, d = o ? n.top : n.left, _ = o ? n.bottom : n.right, T = !1;
7545
7549
  if (!a) {
7546
- if (l && zt < p * r) {
7550
+ if (l && Jt < p * r) {
7547
7551
  if (!Ot && (bt === 1 ? c > d + p * i / 2 : c < _ - p * i / 2) && (Ot = !0), Ot)
7548
7552
  T = !0;
7549
- else if (bt === 1 ? c < d + zt : c > _ - zt)
7553
+ else if (bt === 1 ? c < d + Jt : c > _ - Jt)
7550
7554
  return -bt;
7551
7555
  } else if (c > d + p * (1 - r) / 2 && c < _ - p * (1 - r) / 2)
7552
7556
  return hp(t);
@@ -7562,13 +7566,13 @@ function Tp(e) {
7562
7566
  return o.toString(36);
7563
7567
  }
7564
7568
  function gp(e) {
7565
- ln.length = 0;
7569
+ cn.length = 0;
7566
7570
  for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
7567
7571
  var o = t[n];
7568
- o.checked && ln.push(o);
7572
+ o.checked && cn.push(o);
7569
7573
  }
7570
7574
  }
7571
- function Jt(e) {
7575
+ function qt(e) {
7572
7576
  return setTimeout(e, 0);
7573
7577
  }
7574
7578
  function qn(e) {
@@ -7591,7 +7595,7 @@ I.utils = {
7591
7595
  toggleClass: ae,
7592
7596
  clone: Ti,
7593
7597
  index: pe,
7594
- nextTick: Jt,
7598
+ nextTick: qt,
7595
7599
  cancelNextTick: qn,
7596
7600
  detectDirection: vi,
7597
7601
  getChild: ut
@@ -7605,14 +7609,14 @@ I.mount = function() {
7605
7609
  t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
7606
7610
  if (!o.prototype || !o.prototype.constructor)
7607
7611
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
7608
- o.utils && (I.utils = Ee(Ee({}, I.utils), o.utils)), Bt.mount(o);
7612
+ o.utils && (I.utils = Ee(Ee({}, I.utils), o.utils)), Rt.mount(o);
7609
7613
  });
7610
7614
  };
7611
7615
  I.create = function(e, t) {
7612
7616
  return new I(e, t);
7613
7617
  };
7614
7618
  I.version = J_;
7615
- var W = [], Tt, Qn, Zn = !1, Vn, Yn, cn, gt;
7619
+ var W = [], Tt, Qn, Zn = !1, Vn, Yn, un, gt;
7616
7620
  function mp() {
7617
7621
  function e() {
7618
7622
  this.defaults = {
@@ -7635,26 +7639,26 @@ function mp() {
7635
7639
  !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
7636
7640
  },
7637
7641
  drop: function() {
7638
- this.sortable.nativeDraggable ? N(document, "dragover", this._handleAutoScroll) : (N(document, "pointermove", this._handleFallbackAutoScroll), N(document, "touchmove", this._handleFallbackAutoScroll), N(document, "mousemove", this._handleFallbackAutoScroll)), hr(), qt(), ep();
7642
+ this.sortable.nativeDraggable ? N(document, "dragover", this._handleAutoScroll) : (N(document, "pointermove", this._handleFallbackAutoScroll), N(document, "touchmove", this._handleFallbackAutoScroll), N(document, "mousemove", this._handleFallbackAutoScroll)), hr(), Qt(), ep();
7639
7643
  },
7640
7644
  nulling: function() {
7641
- cn = Qn = Tt = Zn = gt = Vn = Yn = null, W.length = 0;
7645
+ un = Qn = Tt = Zn = gt = Vn = Yn = null, W.length = 0;
7642
7646
  },
7643
7647
  _handleFallbackAutoScroll: function(t) {
7644
7648
  this._handleAutoScroll(t, !0);
7645
7649
  },
7646
7650
  _handleAutoScroll: function(t, n) {
7647
7651
  var o = this, r = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, a = document.elementFromPoint(r, i);
7648
- if (cn = t, n || this.options.forceAutoScrollFallback || kt || ke || vt) {
7652
+ if (un = t, n || this.options.forceAutoScrollFallback || Bt || ke || vt) {
7649
7653
  Fn(t, this.options, a, n);
7650
7654
  var l = Pe(a, !0);
7651
7655
  Zn && (!gt || r !== Vn || i !== Yn) && (gt && hr(), gt = setInterval(function() {
7652
7656
  var c = Pe(document.elementFromPoint(r, i), !0);
7653
- c !== l && (l = c, qt()), Fn(t, o.options, c, n);
7657
+ c !== l && (l = c, Qt()), Fn(t, o.options, c, n);
7654
7658
  }, 10), Vn = r, Yn = i);
7655
7659
  } else {
7656
7660
  if (!this.options.bubbleScroll || Pe(a, !0) === ve()) {
7657
- qt();
7661
+ Qt();
7658
7662
  return;
7659
7663
  }
7660
7664
  Fn(t, this.options, Pe(a, !1), !1);
@@ -7665,7 +7669,7 @@ function mp() {
7665
7669
  initializeByDefault: !0
7666
7670
  });
7667
7671
  }
7668
- function qt() {
7672
+ function Qt() {
7669
7673
  W.forEach(function(e) {
7670
7674
  clearInterval(e.pid);
7671
7675
  }), W = [];
@@ -7676,7 +7680,7 @@ function hr() {
7676
7680
  var Fn = fi(function(e, t, n, o) {
7677
7681
  if (t.scroll) {
7678
7682
  var r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, l = t.scrollSpeed, c = ve(), p = !1, d;
7679
- Qn !== n && (Qn = n, qt(), Tt = t.scroll, d = t.scrollFn, Tt === !0 && (Tt = Pe(n, !0)));
7683
+ Qn !== n && (Qn = n, Qt(), Tt = t.scroll, d = t.scrollFn, Tt === !0 && (Tt = Pe(n, !0)));
7680
7684
  var _ = 0, T = Tt;
7681
7685
  do {
7682
7686
  var f = T, m = z(f), g = m.top, y = m.bottom, b = m.left, R = m.right, k = m.width, j = m.height, U = void 0, de = void 0, be = f.scrollWidth, C = f.scrollHeight, S = O(f), P = f.scrollLeft, X = f.scrollTop;
@@ -7686,9 +7690,9 @@ var Fn = fi(function(e, t, n, o) {
7686
7690
  for (var L = 0; L <= _; L++)
7687
7691
  W[L] || (W[L] = {});
7688
7692
  (W[_].vx != x || W[_].vy != K || W[_].el !== f) && (W[_].el = f, W[_].vx = x, W[_].vy = K, clearInterval(W[_].pid), (x != 0 || K != 0) && (p = !0, W[_].pid = setInterval((function() {
7689
- o && this.layer === 0 && I.active._onTouchMove(cn);
7693
+ o && this.layer === 0 && I.active._onTouchMove(un);
7690
7694
  var D = W[this.layer].vy ? W[this.layer].vy * l : 0, oe = W[this.layer].vx ? W[this.layer].vx * l : 0;
7691
- typeof d == "function" && d.call(I.dragged.parentNode[ue], oe, D, e, cn, W[this.layer].el) !== "continue" || hi(W[this.layer].el, oe, D);
7695
+ typeof d == "function" && d.call(I.dragged.parentNode[ue], oe, D, e, un, W[this.layer].el) !== "continue" || hi(W[this.layer].el, oe, D);
7692
7696
  }).bind({
7693
7697
  layer: _
7694
7698
  }), 24))), _++;
@@ -7744,10 +7748,10 @@ function vp(e) {
7744
7748
  return e == null ? e : JSON.parse(JSON.stringify(e));
7745
7749
  }
7746
7750
  function Ep(e) {
7747
- un() && Pi(e);
7751
+ _n() && Pi(e);
7748
7752
  }
7749
7753
  function yp(e) {
7750
- un() ? lt(e) : no(e);
7754
+ _n() ? lt(e) : no(e);
7751
7755
  }
7752
7756
  let Ii = null, Ci = null;
7753
7757
  function Tr(e = null, t = null) {
@@ -7762,7 +7766,7 @@ function bp() {
7762
7766
  const gr = Symbol("cloneElement");
7763
7767
  function Op(...e) {
7764
7768
  var t, n;
7765
- const o = (t = un()) == null ? void 0 : t.proxy;
7769
+ const o = (t = _n()) == null ? void 0 : t.proxy;
7766
7770
  let r = null;
7767
7771
  const i = e[0];
7768
7772
  let [, a, l] = e;
@@ -7783,7 +7787,7 @@ function Op(...e) {
7783
7787
  function f(C) {
7784
7788
  const S = C.item[gr];
7785
7789
  if (!V_(S)) {
7786
- if (Rn(C.item), Kt(a)) {
7790
+ if (Rn(C.item), Ht(a)) {
7787
7791
  const P = [...M(a)];
7788
7792
  a.value = rr(P, C.newDraggableIndex, S);
7789
7793
  return;
@@ -7797,7 +7801,7 @@ function Op(...e) {
7797
7801
  Rn(L);
7798
7802
  return;
7799
7803
  }
7800
- if (Kt(a)) {
7804
+ if (Ht(a)) {
7801
7805
  const D = [...M(a)];
7802
7806
  a.value = or(D, x);
7803
7807
  return;
@@ -7810,7 +7814,7 @@ function Op(...e) {
7810
7814
  return;
7811
7815
  }
7812
7816
  const { from: S, item: P, oldIndex: X, newIndex: x } = C;
7813
- if (Rn(P), ir(S, P, X), Kt(a)) {
7817
+ if (Rn(P), ir(S, P, X), Ht(a)) {
7814
7818
  const K = [...M(a)];
7815
7819
  a.value = nr(K, X, x);
7816
7820
  return;
@@ -8016,7 +8020,7 @@ const eo = [
8016
8020
  ce(f, {
8017
8021
  class: "x-handle cursor-move mr-3",
8018
8022
  icon: M(aa),
8019
- onMousedown: _[0] || (_[0] = Ht(() => {
8023
+ onMousedown: _[0] || (_[0] = $t(() => {
8020
8024
  }, ["stop"]))
8021
8025
  }, null, 8, ["icon"]),
8022
8026
  Oe("div", {
@@ -8036,7 +8040,7 @@ const eo = [
8036
8040
  lock: { type: Boolean }
8037
8041
  },
8038
8042
  setup(e) {
8039
- const { t } = dn(), n = e, o = $e([]), r = () => {
8043
+ const { t } = Lt(), n = e, o = $e([]), r = () => {
8040
8044
  const _ = Ge();
8041
8045
  if (!_) {
8042
8046
  console.assert(!1);
@@ -8051,7 +8055,7 @@ const eo = [
8051
8055
  const R = m, k = na[R.node.key];
8052
8056
  if (k)
8053
8057
  if (k.key.startsWith("globality_v")) {
8054
- const { type: j } = Lt.app.view;
8058
+ const { type: j } = St.app.view;
8055
8059
  j === "page" ? y = t("x-block-lib.page") : j === "comp" ? y = t("x-block-lib.comp") : console.assert(!1), y += " - " + t("x-runtime-lib." + R.event.name);
8056
8060
  } else
8057
8061
  y = t("x-runtime-lib." + k.name), y += " / " + R.node.alias, y += " - " + t("x-runtime-lib." + R.event.name);
@@ -8068,7 +8072,7 @@ const eo = [
8068
8072
  };
8069
8073
  lt(() => {
8070
8074
  me.on("codeUpdate", r);
8071
- }), Qt(() => {
8075
+ }), Zt(() => {
8072
8076
  me.off("codeUpdate", r);
8073
8077
  });
8074
8078
  let i = [];
@@ -8152,7 +8156,7 @@ const Mp = /* @__PURE__ */ Ai(Bp, [["render", Rp]]), xp = { class: "text-subtitl
8152
8156
  lock: { type: Boolean }
8153
8157
  },
8154
8158
  setup(e) {
8155
- const { t } = dn(), n = ta(), { sysBarAvail: o } = Zi(), { backgroundColor1: r } = Ir(), i = e, a = ie(() => {
8159
+ const { t } = Lt(), n = ta(), { sysBarAvail: o } = Zi(), { backgroundColor1: r } = Ir(), i = e, a = ie(() => {
8156
8160
  let d = "100%";
8157
8161
  return n.mdAndUp.value && (d = "400px"), {
8158
8162
  background: r.value,
@@ -8174,19 +8178,19 @@ const Mp = /* @__PURE__ */ Ai(Bp, [["render", Rp]]), xp = { class: "text-subtitl
8174
8178
  return Q(), Ie(vr, null, [
8175
8179
  ce(m, {
8176
8180
  modelValue: M(p),
8177
- "onUpdate:modelValue": _[3] || (_[3] = (b) => Kt(p) ? p.value = b : null),
8181
+ "onUpdate:modelValue": _[3] || (_[3] = (b) => Ht(p) ? p.value = b : null),
8178
8182
  transition: "scroll-x-reverse-transition",
8179
8183
  persistent: "",
8180
8184
  "no-click-animation": "",
8181
8185
  fullscreen: "",
8182
8186
  eager: "",
8183
- onKeydown: _[4] || (_[4] = Vi(Ht((b) => p.value = !1, ["stop", "prevent"]), ["esc"]))
8187
+ onKeydown: _[4] || (_[4] = Vi($t((b) => p.value = !1, ["stop", "prevent"]), ["esc"]))
8184
8188
  }, {
8185
8189
  default: at(() => [
8186
8190
  Oe("div", {
8187
8191
  class: "w-100 h-100 d-flex flex-row-reverse",
8188
- onClick: _[1] || (_[1] = Ht((b) => p.value = !1, ["self"])),
8189
- onContextmenu: _[2] || (_[2] = Ht((b) => p.value = !1, ["self", "prevent"]))
8192
+ onClick: _[1] || (_[1] = $t((b) => p.value = !1, ["self"])),
8193
+ onContextmenu: _[2] || (_[2] = $t((b) => p.value = !1, ["self", "prevent"]))
8190
8194
  }, [
8191
8195
  Oe("div", {
8192
8196
  class: "elevation-2",
@@ -8283,7 +8287,7 @@ function Up(e, t, n) {
8283
8287
  function o({ name: r, callback: i }) {
8284
8288
  e.registerToolboxCategoryCallback(r, i);
8285
8289
  }
8286
- t === "page" || t === "comp" ? n === "v1" && (o(nn), o(xe), o(Me)) : t === "func" ? n === "v1" && (o(Qr), o(zn), o(xe), o(Me)) : t === "flow" && n === "v1" && (o(u_), o(zn), o(xe), o(Me));
8290
+ t === "page" || t === "comp" ? n === "v1" && (o(on), o(xe), o(Me)) : t === "func" ? n === "v1" && (o(Qr), o(zn), o(xe), o(Me)) : t === "flow" && n === "v1" && (o(u_), o(zn), o(xe), o(Me));
8287
8291
  }
8288
8292
  const Vp = { class: "position-relative w-100 h-100" }, Yp = /* @__PURE__ */ We({
8289
8293
  __name: "index",
@@ -8343,7 +8347,7 @@ const Vp = { class: "position-relative w-100 h-100" }, Yp = /* @__PURE__ */ We({
8343
8347
  _e.type === "attributes" && _e.attributeName === "style" && (k.value = _.getFlyout().isVisible());
8344
8348
  });
8345
8349
  }).observe(L, { attributes: !0 }), k.value = _.getFlyout().isVisible(), C(), S(), await no(), p("ready");
8346
- }), Qt(() => {
8350
+ }), Zt(() => {
8347
8351
  k.value = !1;
8348
8352
  }), Ta(d, () => {
8349
8353
  _ && zi(_);
@@ -8383,7 +8387,7 @@ const Vp = { class: "position-relative w-100 h-100" }, Yp = /* @__PURE__ */ We({
8383
8387
  };
8384
8388
  return lt(() => {
8385
8389
  window.addEventListener("keydown", P, !1);
8386
- }), Qt(() => {
8390
+ }), Zt(() => {
8387
8391
  window.addEventListener("keydown", P, !1);
8388
8392
  }), Fe(r, (L) => {
8389
8393
  er(L);
@@ -8452,7 +8456,7 @@ async function Jp(e) {
8452
8456
  const qp = { install: Fp };
8453
8457
  export {
8454
8458
  Yp as XBlockly,
8455
- Lt as blocklyState,
8459
+ St as blocklyState,
8456
8460
  qp as default,
8457
8461
  Fp as install,
8458
8462
  Jp as loadLocaleMessageBlock
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.4.32",
4
+ "version": "0.4.33",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",