x-block-lib 0.5.4 → 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.
Files changed (2) hide show
  1. package/dist/index.js +592 -593
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -12,8 +12,7 @@ var xr = (e, t, n) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writ
12
12
  var Fe = (e, t, n) => xr(e, typeof t != "symbol" ? t + "" : t, n);
13
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
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 { storeToRefs as nl } from "pinia";
16
- import { openConfirmDlg as ol, openPromptDlg as il, eventBus as We, messageWarning as sa, useColor as _o, useViewStack as po, useSystem as aa, useGlobalStore as sl } from "x-essential-lib";
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
18
  import { useDisplay as al } from "vuetify";
@@ -47,24 +46,24 @@ function pl(e, t, n = {}) {
47
46
  const a = _l(() => o && "ResizeObserver" in o), r = () => {
48
47
  s && (s.disconnect(), s = void 0);
49
48
  }, c = Te(() => {
50
- const p = la(e);
51
- return Array.isArray(p) ? p.map((f) => Ji(f)) : [Ji(p)];
49
+ const d = la(e);
50
+ return Array.isArray(d) ? d.map((f) => Ji(f)) : [Ji(d)];
52
51
  }), _ = pt(
53
52
  c,
54
- (p) => {
53
+ (d) => {
55
54
  if (r(), a.value && o) {
56
55
  s = new ResizeObserver(t);
57
- for (const f of p)
56
+ for (const f of d)
58
57
  f && s.observe(f, i);
59
58
  }
60
59
  },
61
60
  { immediate: !0, flush: "post" }
62
- ), d = () => {
61
+ ), p = () => {
63
62
  r(), _();
64
63
  };
65
- return rl(d), {
64
+ return rl(p), {
66
65
  isSupported: a,
67
- stop: d
66
+ stop: p
68
67
  };
69
68
  }
70
69
  O([
@@ -209,10 +208,10 @@ function ${l.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
209
208
  `
210
209
  )}(${t}, ${n}, ${o})`, u.FUNCTION_CALL];
211
210
  };
212
- function Be(e) {
211
+ function ke(e) {
213
212
  return e.length <= 0 && e.push([v.NO_OPTION, ""]), e;
214
213
  }
215
- function Ne(e) {
214
+ function Le(e) {
216
215
  let t = "";
217
216
  if (e.type === "string") {
218
217
  let n = "";
@@ -889,35 +888,35 @@ function Vn(e, t, n, o, i, s) {
889
888
  return a;
890
889
  if (!vn(e))
891
890
  return e;
892
- var d = Xt(e);
893
- if (d) {
891
+ var p = Xt(e);
892
+ if (p) {
894
893
  if (a = Pu(e), !r)
895
894
  return Hl(e, a);
896
895
  } else {
897
- var p = we(e), f = p == Na || p == v_;
896
+ var d = we(e), f = d == Na || d == v_;
898
897
  if (fn(e))
899
898
  return Eu(e, r);
900
- if (p == ka || p == La || f && !i) {
899
+ if (d == ka || d == La || f && !i) {
901
900
  if (a = c || f ? {} : r_(e), !r)
902
901
  return c ? yu(e, Tu(a, e)) : Ou(e, gu(a, e));
903
902
  } else {
904
- if (!Z[p])
903
+ if (!Z[d])
905
904
  return i ? e : {};
906
- a = a_(e, p, r);
905
+ a = a_(e, d, r);
907
906
  }
908
907
  }
909
908
  s || (s = new it());
910
909
  var g = s.get(e);
911
910
  if (g)
912
911
  return g;
913
- s.set(e, a), d_(e) ? e.forEach(function(S) {
914
- a.add(Vn(S, t, n, S, e, s));
915
- }) : u_(e) && e.forEach(function(S, C) {
916
- a.set(C, Vn(S, t, n, C, e, s));
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));
917
916
  });
918
- var b = _ ? c ? Cu : si : c ? Ni : Li, E = d ? void 0 : b(e);
919
- return $l(E || e, function(S, C) {
920
- E && (C = S, S = e[C]), da(a, C, Vn(S, t, n, C, e, s));
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));
921
920
  }), a;
922
921
  }
923
922
  var F_ = 1, Y_ = 4;
@@ -952,23 +951,23 @@ function Ba(e, t, n, o, i, s) {
952
951
  var a = n & X_, r = e.length, c = t.length;
953
952
  if (r != c && !(a && c > r))
954
953
  return !1;
955
- var _ = s.get(e), d = s.get(t);
956
- if (_ && d)
957
- return _ == t && d == e;
958
- var p = -1, f = !0, g = n & z_ ? new zn() : void 0;
959
- for (s.set(e, t), s.set(t, e); ++p < r; ) {
960
- var b = e[p], E = t[p];
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];
961
960
  if (o)
962
- var S = a ? o(E, b, p, t, e, s) : o(b, E, p, e, t, s);
963
- if (S !== void 0) {
964
- if (S)
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)
965
964
  continue;
966
965
  f = !1;
967
966
  break;
968
967
  }
969
968
  if (g) {
970
- if (!j_(t, function(C, F) {
971
- if (!W_(g, F) && (b === C || i(b, C, n, o, s)))
969
+ if (!j_(t, function(S, F) {
970
+ if (!W_(g, F) && (b === S || i(b, S, n, o, s)))
972
971
  return g.push(F);
973
972
  })) {
974
973
  f = !1;
@@ -1021,8 +1020,8 @@ function _p(e, t, n, o, i, s, a) {
1021
1020
  if (_)
1022
1021
  return _ == t;
1023
1022
  o |= Z_, a.set(e, t);
1024
- var d = Ba(r(e), r(t), o, i, s, a);
1025
- return a.delete(e), d;
1023
+ var p = Ba(r(e), r(t), o, i, s, a);
1024
+ return a.delete(e), p;
1026
1025
  case lp:
1027
1026
  if (Vo)
1028
1027
  return Vo.call(e) == Vo.call(t);
@@ -1031,11 +1030,11 @@ function _p(e, t, n, o, i, s, a) {
1031
1030
  }
1032
1031
  var pp = 1, dp = Object.prototype, fp = dp.hasOwnProperty;
1033
1032
  function hp(e, t, n, o, i, s) {
1034
- var a = n & pp, r = si(e), c = r.length, _ = si(t), d = _.length;
1035
- if (c != d && !a)
1033
+ var a = n & pp, r = si(e), c = r.length, _ = si(t), p = _.length;
1034
+ if (c != p && !a)
1036
1035
  return !1;
1037
- for (var p = c; p--; ) {
1038
- var f = r[p];
1036
+ for (var d = c; d--; ) {
1037
+ var f = r[d];
1039
1038
  if (!(a ? f in t : fp.call(t, f)))
1040
1039
  return !1;
1041
1040
  }
@@ -1044,20 +1043,20 @@ function hp(e, t, n, o, i, s) {
1044
1043
  return g == t && b == e;
1045
1044
  var E = !0;
1046
1045
  s.set(e, t), s.set(t, e);
1047
- for (var S = a; ++p < c; ) {
1048
- f = r[p];
1049
- var C = e[f], F = t[f];
1046
+ for (var C = a; ++d < c; ) {
1047
+ f = r[d];
1048
+ var S = e[f], F = t[f];
1050
1049
  if (o)
1051
- var H = a ? o(F, C, f, t, e, s) : o(C, F, f, e, t, s);
1052
- if (!(H === void 0 ? C === F || i(C, F, n, o, s) : H)) {
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)) {
1053
1052
  E = !1;
1054
1053
  break;
1055
1054
  }
1056
- S || (S = f == "constructor");
1055
+ C || (C = f == "constructor");
1057
1056
  }
1058
- if (E && !S) {
1059
- var te = e.constructor, j = t.constructor;
1060
- te != j && "constructor" in e && "constructor" in t && !(typeof te == "function" && te instanceof te && typeof j == "function" && j instanceof j) && (E = !1);
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);
1061
1060
  }
1062
1061
  return s.delete(e), s.delete(t), E;
1063
1062
  }
@@ -1065,19 +1064,19 @@ var gp = 1, Es = "[object Arguments]", As = "[object Array]", Bn = "[object Obje
1065
1064
  function mp(e, t, n, o, i, s) {
1066
1065
  var a = Xt(e), r = Xt(t), c = a ? As : we(e), _ = r ? As : we(t);
1067
1066
  c = c == Es ? Bn : c, _ = _ == Es ? Bn : _;
1068
- var d = c == Bn, p = _ == Bn, f = c == _;
1067
+ var p = c == Bn, d = _ == Bn, f = c == _;
1069
1068
  if (f && fn(e)) {
1070
1069
  if (!fn(t))
1071
1070
  return !1;
1072
- a = !0, d = !1;
1071
+ a = !0, p = !1;
1073
1072
  }
1074
- if (f && !d)
1073
+ if (f && !p)
1075
1074
  return s || (s = new it()), a || Si(e) ? Ba(e, t, n, o, i, s) : _p(e, t, c, n, o, i, s);
1076
1075
  if (!(n & gp)) {
1077
- var g = d && vs.call(e, "__wrapped__"), b = p && vs.call(t, "__wrapped__");
1076
+ var g = p && vs.call(e, "__wrapped__"), b = d && vs.call(t, "__wrapped__");
1078
1077
  if (g || b) {
1079
- var E = g ? e.value() : e, S = b ? t.value() : t;
1080
- return s || (s = new it()), i(E, S, n, o, s);
1078
+ var E = g ? e.value() : e, C = b ? t.value() : t;
1079
+ return s || (s = new it()), i(E, C, n, o, s);
1081
1080
  }
1082
1081
  }
1083
1082
  return f ? (s || (s = new it()), hp(e, t, n, o, i, s)) : !1;
@@ -1154,7 +1153,7 @@ function Lp() {
1154
1153
  props: {}
1155
1154
  };
1156
1155
  }
1157
- function Dg() {
1156
+ function Rg() {
1158
1157
  const e = {};
1159
1158
  for (const t in Je) {
1160
1159
  const n = {}, o = Je[t];
@@ -1187,7 +1186,7 @@ function Np(e) {
1187
1186
  n(o, "", "");
1188
1187
  }), t;
1189
1188
  }
1190
- const q = function() {
1189
+ const Q = function() {
1191
1190
  return window.blocklyState || (window.blocklyState = {
1192
1191
  base: Ip(),
1193
1192
  runtime: Lp(),
@@ -1198,7 +1197,7 @@ const q = function() {
1198
1197
  }), window.blocklyState;
1199
1198
  }();
1200
1199
  function Ri() {
1201
- const { spaces: e, funcs: t } = q.compute, n = [];
1200
+ const { spaces: e, funcs: t } = Q.compute, n = [];
1202
1201
  for (const o in e) {
1203
1202
  const i = e[o];
1204
1203
  let s = !1;
@@ -1212,16 +1211,16 @@ function Ri() {
1212
1211
  return n.sort((o, i) => o.sort - i.sort), n;
1213
1212
  }
1214
1213
  function Da(e) {
1215
- return q.compute.spaces[e];
1214
+ return Q.compute.spaces[e];
1216
1215
  }
1217
1216
  function Ma() {
1218
1217
  const e = [];
1219
1218
  return Ri().forEach((n) => {
1220
1219
  e.push([n.name, n.id]);
1221
- }), Be(e);
1220
+ }), ke(e);
1222
1221
  }
1223
1222
  function Di(e) {
1224
- const { funcs: t } = q.compute, n = [];
1223
+ const { funcs: t } = Q.compute, n = [];
1225
1224
  for (const o in t) {
1226
1225
  const i = t[o];
1227
1226
  i.spaceid === e && n.push(i);
@@ -1229,26 +1228,26 @@ function Di(e) {
1229
1228
  return n.sort((o, i) => o.sort - i.sort), n;
1230
1229
  }
1231
1230
  function Pa(e) {
1232
- return q.compute.funcs[e];
1231
+ return Q.compute.funcs[e];
1233
1232
  }
1234
1233
  function xa(e) {
1235
1234
  const t = [];
1236
1235
  return Di(e).forEach((o) => {
1237
1236
  t.push([o.name, o.id]);
1238
- }), Be(t);
1237
+ }), ke(t);
1239
1238
  }
1240
1239
  function ui() {
1241
- return q.compute.activeFunc;
1240
+ return Q.compute.activeFunc;
1242
1241
  }
1243
1242
  function bs(e) {
1244
- const { outputs: t } = q.compute.activeFunc;
1243
+ const { outputs: t } = Q.compute.activeFunc;
1245
1244
  return t.find((n) => n.id === e);
1246
1245
  }
1247
1246
  function kp() {
1248
- const e = [], { outputs: t } = q.compute.activeFunc;
1247
+ const e = [], { outputs: t } = Q.compute.activeFunc;
1249
1248
  return t.forEach(({ id: n, name: o }) => {
1250
1249
  e.push([o, n]);
1251
- }), Be(e);
1250
+ }), ke(e);
1252
1251
  }
1253
1252
  const Bp = {
1254
1253
  init: function() {
@@ -1340,7 +1339,7 @@ const Bp = {
1340
1339
  n = { type: "boolean", default: !1 };
1341
1340
  else
1342
1341
  continue;
1343
- this.getInput("INPUT" + e).connection.setShadowDom(Ne(n));
1342
+ this.getInput("INPUT" + e).connection.setShadowDom(Le(n));
1344
1343
  }
1345
1344
  },
1346
1345
  rebuildBlocks_: function() {
@@ -1389,11 +1388,11 @@ l.forBlock.call_func_v1 = function(e) {
1389
1388
  _ += `${t}${f} = result[${g}];
1390
1389
  `;
1391
1390
  });
1392
- const d = l.statementToCode(o, "CALLBACK");
1391
+ const p = l.statementToCode(o, "CALLBACK");
1393
1392
  return `{
1394
1393
  var result = __callFuncV1__(${i}, ${s}, ${r}, __getEnv__(), ${c});
1395
1394
  ${_}
1396
- ${d}
1395
+ ${p}
1397
1396
  }
1398
1397
  `;
1399
1398
  };
@@ -1484,7 +1483,7 @@ const Rp = {
1484
1483
  n = { type: "boolean", default: !1 };
1485
1484
  else
1486
1485
  continue;
1487
- this.getInput("INPUT" + e).connection.setShadowDom(Ne(n));
1486
+ this.getInput("INPUT" + e).connection.setShadowDom(Le(n));
1488
1487
  }
1489
1488
  },
1490
1489
  rebuildBlocks_: function() {
@@ -1533,7 +1532,7 @@ l.forBlock.call_func_internal_v1 = function(e) {
1533
1532
  _ += `${t}${f} = result[${g}];
1534
1533
  `;
1535
1534
  });
1536
- const d = l.statementToCode(o, "CALLBACK");
1535
+ const p = l.statementToCode(o, "CALLBACK");
1537
1536
  return `{
1538
1537
  var result = __callFuncInternalV1__(${i}, ${s}, ${r});
1539
1538
  var success = result.success;
@@ -1543,7 +1542,7 @@ l.forBlock.call_func_internal_v1 = function(e) {
1543
1542
  throw 'call func<${c}> failed, reason: ' + message;
1544
1543
  }
1545
1544
  ${_}
1546
- ${d}
1545
+ ${p}
1547
1546
  }
1548
1547
  `;
1549
1548
  };
@@ -1709,7 +1708,7 @@ const Pp = {
1709
1708
  return;
1710
1709
  let e = null;
1711
1710
  const t = this.output.type;
1712
- t === "string" ? e = Ne({ type: "string", default: "" }) : t === "number" ? e = Ne({ type: "number", default: 0 }) : t === "boolean" && (e = Ne({ type: "boolean", default: !1 })), this.getInput("VALUE").connection.setShadowDom(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);
1713
1712
  },
1714
1713
  checkWarning_: function() {
1715
1714
  const e = bs(this.output.id);
@@ -1787,7 +1786,7 @@ ${o}}
1787
1786
  `;
1788
1787
  };
1789
1788
  function Qt() {
1790
- const e = [], { spaces: t, tables: n } = q.data;
1789
+ const e = [], { spaces: t, tables: n } = Q.data;
1791
1790
  for (const o in t) {
1792
1791
  const i = t[o];
1793
1792
  let s = !1;
@@ -1801,16 +1800,16 @@ function Qt() {
1801
1800
  return e.sort((o, i) => o.sort - i.sort), e;
1802
1801
  }
1803
1802
  function bt(e) {
1804
- return q.data.spaces[e];
1803
+ return Q.data.spaces[e];
1805
1804
  }
1806
1805
  function mo() {
1807
1806
  const e = [];
1808
1807
  return Qt().forEach((n) => {
1809
1808
  e.push([n.name, n.id]);
1810
- }), Be(e);
1809
+ }), ke(e);
1811
1810
  }
1812
1811
  function rt(e) {
1813
- const { tables: t } = q.data, n = [];
1812
+ const { tables: t } = Q.data, n = [];
1814
1813
  for (const o in t) {
1815
1814
  const i = t[o];
1816
1815
  i.spaceid === e && n.push(i);
@@ -1818,13 +1817,13 @@ function rt(e) {
1818
1817
  return n.sort((o, i) => o.sort - i.sort), n;
1819
1818
  }
1820
1819
  function ve(e) {
1821
- return q.data.tables[e];
1820
+ return Q.data.tables[e];
1822
1821
  }
1823
1822
  function Eo(e) {
1824
1823
  const t = [];
1825
1824
  return rt(e).forEach((o) => {
1826
1825
  t.push([o.name, o.id]);
1827
- }), Be(t);
1826
+ }), ke(t);
1828
1827
  }
1829
1828
  const Up = {
1830
1829
  init: function() {
@@ -1903,7 +1902,7 @@ const Up = {
1903
1902
  const e = [], t = ve(this.table.id);
1904
1903
  return t == null || t.columns.forEach((n) => {
1905
1904
  e.push([n.name, n.name]);
1906
- }), Be(e);
1905
+ }), ke(e);
1907
1906
  },
1908
1907
  onchange: function(e) {
1909
1908
  if (e.type === V.BLOCK_CHANGE) {
@@ -2307,7 +2306,7 @@ const Gp = {
2307
2306
  const e = [], t = ve(this.table.id);
2308
2307
  return t == null || t.columns.forEach((n) => {
2309
2308
  e.push([n.name, n.name]);
2310
- }), Be(e);
2309
+ }), ke(e);
2311
2310
  },
2312
2311
  onchange: function(e) {
2313
2312
  var t;
@@ -2439,8 +2438,8 @@ U.select_column_v1 = Gp;
2439
2438
  l.forBlock.select_column_v1 = function(e) {
2440
2439
  const t = l.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
2441
2440
  for (let c = 0; c < n.itemCount_; c++) {
2442
- const _ = n.getFieldValue("COLUMN" + c), d = n.getFieldValue("ALIAS" + c);
2443
- s.push(`{ name: ${_}, alias: ${d} }`);
2441
+ const _ = n.getFieldValue("COLUMN" + c), p = n.getFieldValue("ALIAS" + c);
2442
+ s.push(`{ name: ${_}, alias: ${p} }`);
2444
2443
  }
2445
2444
  const a = JSON.stringify(s);
2446
2445
  return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, u.ATOMIC];
@@ -2619,7 +2618,7 @@ const zp = {
2619
2618
  const e = [], t = ve(this.table.id);
2620
2619
  return t == null || t.columns.forEach((n) => {
2621
2620
  e.push([n.name, n.name]);
2622
- }), Be(e);
2621
+ }), ke(e);
2623
2622
  },
2624
2623
  onchange: function(e) {
2625
2624
  if (e.type === V.BLOCK_CHANGE) {
@@ -2770,8 +2769,8 @@ U.update_column_v1 = zp;
2770
2769
  l.forBlock.update_column_v1 = function(e) {
2771
2770
  const t = l.quote_, n = e, o = n.space.id, i = n.table.id, s = [];
2772
2771
  for (let c = 0; c < n.itemCount_; c++) {
2773
- const _ = n.getFieldValue("COLUMN" + c), d = l.valueToCode(n, "ADD" + c, u.ATOMIC) || null;
2774
- s.push({ name: _, value: d });
2772
+ const _ = n.getFieldValue("COLUMN" + c), p = l.valueToCode(n, "ADD" + c, u.ATOMIC) || null;
2773
+ s.push({ name: _, value: p });
2775
2774
  }
2776
2775
  const a = JSON.stringify(s);
2777
2776
  return [`{spaceid:${t(o)},tableid:${t(i)},columns:${a}}`, u.ATOMIC];
@@ -5521,13 +5520,13 @@ const bd = {
5521
5520
  updateShadow_: function() {
5522
5521
  var e, t, n, o, i, s, a, r;
5523
5522
  this.isInsertionMarker() || ((t = (e = this.getInput("INTERVAL")) == null ? void 0 : e.connection) == null || t.setShadowDom(
5524
- Ne({ type: "number", default: 1e3 })
5523
+ Le({ type: "number", default: 1e3 })
5525
5524
  ), (o = (n = this.getInput("LOOP")) == null ? void 0 : n.connection) == null || o.setShadowDom(
5526
- Ne({ type: "boolean", default: !1 })
5525
+ Le({ type: "boolean", default: !1 })
5527
5526
  ), (s = (i = this.getInput("COUNT")) == null ? void 0 : i.connection) == null || s.setShadowDom(
5528
- Ne({ type: "number", default: 1 })
5527
+ Le({ type: "number", default: 1 })
5529
5528
  ), (r = (a = this.getInput("IMMEDIATE")) == null ? void 0 : a.connection) == null || r.setShadowDom(
5530
- Ne({ type: "boolean", default: !1 })
5529
+ Le({ type: "boolean", default: !1 })
5531
5530
  ));
5532
5531
  }
5533
5532
  };
@@ -5605,7 +5604,7 @@ l.forBlock.app_env_v1 = function(e) {
5605
5604
  return [`__getEnvV1__() === ${l.quote_(e.getFieldValue("ENV"))}`, u.ATOMIC];
5606
5605
  };
5607
5606
  function bn(e) {
5608
- const { nodes: t } = q.app, n = [];
5607
+ const { nodes: t } = Q.app, n = [];
5609
5608
  for (const o in t) {
5610
5609
  const i = t[o], s = Je[i.key];
5611
5610
  if (!s) {
@@ -5621,12 +5620,12 @@ function bn(e) {
5621
5620
  }
5622
5621
  return n;
5623
5622
  }
5624
- function ke(e) {
5625
- const { nodes: t } = q.app;
5623
+ function Ne(e) {
5624
+ const { nodes: t } = Q.app;
5626
5625
  return t.find((n) => n.id === e);
5627
5626
  }
5628
5627
  function Ao(e) {
5629
- const { i18n: t } = q.base, n = [];
5628
+ const { i18n: t } = Q.base, n = [];
5630
5629
  return bn(e).forEach((i) => {
5631
5630
  const s = Je[i.key];
5632
5631
  if (!s) {
@@ -5635,17 +5634,17 @@ function Ao(e) {
5635
5634
  }
5636
5635
  let a = t.global.t(s.name);
5637
5636
  i.alias && (a += ` / ${i.alias}`), n.push([a, i.id]);
5638
- }), Be(n);
5637
+ }), ke(n);
5639
5638
  }
5640
5639
  function _i(e) {
5641
- const t = ke(e);
5640
+ const t = Ne(e);
5642
5641
  if (!t)
5643
5642
  return [];
5644
5643
  const n = Je[t.key];
5645
5644
  return n ? n.events : (console.assert(!1, "invalid element", t.key), []);
5646
5645
  }
5647
5646
  function Fo(e, t) {
5648
- const n = ke(e);
5647
+ const n = Ne(e);
5649
5648
  if (!n)
5650
5649
  return;
5651
5650
  const o = Je[n.key];
@@ -5659,17 +5658,17 @@ function Od(e) {
5659
5658
  const t = [];
5660
5659
  return _i(e).forEach(({ key: o, name: i }) => {
5661
5660
  t.push([v[i] ?? i, o]);
5662
- }), Be(t);
5661
+ }), ke(t);
5663
5662
  }
5664
5663
  function pi(e) {
5665
- const t = ke(e);
5664
+ const t = Ne(e);
5666
5665
  if (!t)
5667
5666
  return [];
5668
5667
  const n = Je[t.key];
5669
5668
  return n ? n.methods : (console.assert(!1, "invalid element", t.key), []);
5670
5669
  }
5671
5670
  function Yo(e, t) {
5672
- const n = ke(e);
5671
+ const n = Ne(e);
5673
5672
  if (!n)
5674
5673
  return;
5675
5674
  const o = Je[n.key];
@@ -5683,37 +5682,37 @@ function Id(e) {
5683
5682
  const t = [];
5684
5683
  return pi(e).forEach(({ key: o, name: i }) => {
5685
5684
  t.push([v[i] ?? i, o]);
5686
- }), Be(t);
5685
+ }), ke(t);
5687
5686
  }
5688
5687
  function di(e, t) {
5689
- var _, d;
5690
- const { props: n } = q.runtime, { type: o, subtype: i } = q.app, s = [], a = ra(o, i);
5688
+ var _, p;
5689
+ const { props: n } = Q.runtime, { type: o, subtype: i } = Q.app, s = [], a = ra(o, i);
5691
5690
  if (!a)
5692
5691
  return console.assert(!1, "invalid prop tag", o, i), s;
5693
- const r = ke(e);
5694
- return r ? Je[r.key] ? ((d = (_ = n[r.key]) == null ? void 0 : _[a]) == null || d.forEach((p) => {
5695
- s.push(p);
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);
5696
5695
  }), s) : (console.assert(!1, "invalid element", r.key), s) : s;
5697
5696
  }
5698
5697
  function Ko(e, t) {
5699
5698
  var r, c;
5700
- const { props: n } = q.runtime, { type: o, subtype: i } = q.app, s = ra(o, i);
5699
+ const { props: n } = Q.runtime, { type: o, subtype: i } = Q.app, s = ra(o, i);
5701
5700
  if (!s) {
5702
5701
  console.assert(!1, "invalid prop tag", o, i);
5703
5702
  return;
5704
5703
  }
5705
- const a = ke(e);
5704
+ const a = Ne(e);
5706
5705
  if (a)
5707
5706
  return (c = (r = n[a.key]) == null ? void 0 : r[s]) == null ? void 0 : c.find((_) => _.keys === t);
5708
5707
  }
5709
5708
  function yd(e, t) {
5710
- const { i18n: n } = q.base, o = [];
5709
+ const { i18n: n } = Q.base, o = [];
5711
5710
  return di(e).forEach((s) => {
5712
5711
  let a = "";
5713
5712
  s.names.forEach((r, c) => {
5714
5713
  c !== 0 && (a += " - "), a += n.global.t(r);
5715
5714
  }), o.push([a, s.keys]);
5716
- }), Be(o);
5715
+ }), ke(o);
5717
5716
  }
5718
5717
  const Cd = {
5719
5718
  init: function() {
@@ -5776,7 +5775,7 @@ const Cd = {
5776
5775
  },
5777
5776
  onNodeChange_: function(e) {
5778
5777
  var i;
5779
- const t = ke(e);
5778
+ const t = Ne(e);
5780
5779
  if (!t) {
5781
5780
  console.assert(!1);
5782
5781
  return;
@@ -5794,7 +5793,7 @@ const Cd = {
5794
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 = []);
5795
5794
  },
5796
5795
  checkWarning_: function() {
5797
- const e = ke(this.node.id);
5796
+ const e = Ne(this.node.id);
5798
5797
  if (!e) {
5799
5798
  this.setWarningText(v.WARN_NODE_NOT_AVAILABLE);
5800
5799
  return;
@@ -5864,7 +5863,7 @@ const Sd = {
5864
5863
  }
5865
5864
  },
5866
5865
  onNodeChange_: function(e) {
5867
- const t = ke(e);
5866
+ const t = Ne(e);
5868
5867
  if (!t) {
5869
5868
  console.assert(!1);
5870
5869
  return;
@@ -5872,7 +5871,7 @@ const Sd = {
5872
5871
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
5873
5872
  },
5874
5873
  checkWarning_: function() {
5875
- const e = ke(this.node.id);
5874
+ const e = Ne(this.node.id);
5876
5875
  if (!e) {
5877
5876
  this.setWarningText(v.WARN_NODE_NOT_AVAIALABLE);
5878
5877
  return;
@@ -5945,7 +5944,7 @@ const Ld = {
5945
5944
  },
5946
5945
  onNodeChange_: function(e) {
5947
5946
  var i;
5948
- const t = ke(e);
5947
+ const t = Ne(e);
5949
5948
  if (!t) {
5950
5949
  console.assert(!1);
5951
5950
  return;
@@ -5963,7 +5962,7 @@ const Ld = {
5963
5962
  t ? (this.prop.keys = t.keys, this.prop.names = t.names) : (this.prop.keys = "", this.prop.names = []);
5964
5963
  },
5965
5964
  checkWarning_: function() {
5966
- const e = ke(this.node.id);
5965
+ const e = Ne(this.node.id);
5967
5966
  if (!e) {
5968
5967
  this.setWarningText(v.WARN_NODE_NOT_AVAIALABLE);
5969
5968
  return;
@@ -5987,25 +5986,25 @@ l.forBlock.get_node_prop_v1 = function(e) {
5987
5986
  return [`__getNodePropV1__(${n}, ${o})`, u.ATOMIC];
5988
5987
  };
5989
5988
  function Mi() {
5990
- const { apps: e } = q.app;
5989
+ const { apps: e } = Q.app;
5991
5990
  return e;
5992
5991
  }
5993
5992
  function Is(e) {
5994
- const { apps: t } = q.app;
5993
+ const { apps: t } = Q.app;
5995
5994
  return t.find((n) => n.id === e);
5996
5995
  }
5997
5996
  function Nd() {
5998
5997
  const e = [];
5999
5998
  return Mi().forEach((n) => {
6000
5999
  e.push([n.name, n.id]);
6001
- }), Be(e);
6000
+ }), ke(e);
6002
6001
  }
6003
6002
  function fi(e) {
6004
- const { apps: t } = q.app, n = t.find((o) => o.id === e);
6003
+ const { apps: t } = Q.app, n = t.find((o) => o.id === e);
6005
6004
  return n ? n.pages : [];
6006
6005
  }
6007
6006
  function Ho(e, t) {
6008
- const { apps: n } = q.app, o = n.find((i) => i.id === e);
6007
+ const { apps: n } = Q.app, o = n.find((i) => i.id === e);
6009
6008
  if (o)
6010
6009
  return o.pages.find((i) => i.id === t);
6011
6010
  }
@@ -6013,7 +6012,7 @@ function kd(e) {
6013
6012
  const t = [];
6014
6013
  return fi(e).forEach((o) => {
6015
6014
  t.push([o.name, o.id]);
6016
- }), Be(t);
6015
+ }), ke(t);
6017
6016
  }
6018
6017
  const Bd = {
6019
6018
  init: function() {
@@ -6178,7 +6177,7 @@ const Rd = {
6178
6177
  },
6179
6178
  onNodeChange_: function(e) {
6180
6179
  var i;
6181
- const t = ke(e);
6180
+ const t = Ne(e);
6182
6181
  if (!t) {
6183
6182
  console.assert(!1);
6184
6183
  return;
@@ -6215,7 +6214,7 @@ const Rd = {
6215
6214
  }), e.length > 0 && Ze(this, e);
6216
6215
  },
6217
6216
  checkWarning_: function() {
6218
- const e = ke(this.node.id);
6217
+ const e = Ne(this.node.id);
6219
6218
  if (!e) {
6220
6219
  this.setWarningText(v.WARN_NODE_NOT_AVAILABLE);
6221
6220
  return;
@@ -6267,9 +6266,9 @@ const Dd = {
6267
6266
  updateShadow_: function() {
6268
6267
  if (this.isInsertionMarker())
6269
6268
  return;
6270
- const e = Ne({ type: "string", default: "" });
6269
+ const e = Le({ type: "string", default: "" });
6271
6270
  this.getInput("TITLE").connection.setShadowDom(e);
6272
- const t = Ne({ type: "string", default: "" });
6271
+ const t = Le({ type: "string", default: "" });
6273
6272
  this.getInput("TEXT").connection.setShadowDom(t);
6274
6273
  },
6275
6274
  rebuildBlocks_: function() {
@@ -6306,11 +6305,11 @@ const Md = {
6306
6305
  updateShadow_: function() {
6307
6306
  if (this.isInsertionMarker())
6308
6307
  return;
6309
- const e = Ne({ type: "string", default: "" });
6308
+ const e = Le({ type: "string", default: "" });
6310
6309
  this.getInput("TITLE").connection.setShadowDom(e);
6311
- const t = Ne({ type: "string", default: "" });
6310
+ const t = Le({ type: "string", default: "" });
6312
6311
  this.getInput("LABEL").connection.setShadowDom(t);
6313
- const n = Ne({ type: "string", default: "" });
6312
+ const n = Le({ type: "string", default: "" });
6314
6313
  this.getInput("VALUE").connection.setShadowDom(n);
6315
6314
  },
6316
6315
  rebuildBlocks_: function() {
@@ -6615,7 +6614,7 @@ const Jn = {
6615
6614
  callback: wd
6616
6615
  }, Ut = I.xml;
6617
6616
  function Vd(e) {
6618
- const { funcs: t } = q.compute, n = [];
6617
+ const { funcs: t } = Q.compute, n = [];
6619
6618
  if (e === "flow") {
6620
6619
  {
6621
6620
  const o = Ut.createElement("block");
@@ -6654,7 +6653,7 @@ const qn = {
6654
6653
  callback: Vd
6655
6654
  }, nt = I.xml;
6656
6655
  function Fd(e) {
6657
- const { activeFunc: t, funcs: n } = q.compute, o = [];
6656
+ const { activeFunc: t, funcs: n } = Q.compute, o = [];
6658
6657
  if (e === "func") {
6659
6658
  {
6660
6659
  const i = nt.createElement("block");
@@ -6750,7 +6749,7 @@ const ft = {
6750
6749
  callback: Kd
6751
6750
  };
6752
6751
  function Hd() {
6753
- const { args: e } = q.app;
6752
+ const { args: e } = Q.app;
6754
6753
  return e;
6755
6754
  }
6756
6755
  const xe = I.xml;
@@ -6853,14 +6852,14 @@ const ht = {
6853
6852
  callback: Gd
6854
6853
  };
6855
6854
  oa.setConfirm(async (e, t) => {
6856
- const n = await ol({
6855
+ const n = await nl({
6857
6856
  title: "",
6858
6857
  text: e
6859
6858
  });
6860
6859
  t(!!n);
6861
6860
  });
6862
6861
  oa.setPrompt(async (e, t, n) => {
6863
- const o = await il({
6862
+ const o = await ol({
6864
6863
  title: "",
6865
6864
  value: t
6866
6865
  });
@@ -9206,7 +9205,7 @@ var ut = st(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), On = st(/E
9206
9205
  capture: !1,
9207
9206
  passive: !1
9208
9207
  };
9209
- function z(e, t, n) {
9208
+ function W(e, t, n) {
9210
9209
  e.addEventListener(t, n, !ut && Qa);
9211
9210
  }
9212
9211
  function $(e, t, n) {
@@ -9253,7 +9252,7 @@ function De(e, t, n) {
9253
9252
  e.className = (o + (n ? " " + t : "")).replace(Ps, " ");
9254
9253
  }
9255
9254
  }
9256
- function k(e, t, n) {
9255
+ function B(e, t, n) {
9257
9256
  var o = e && e.style;
9258
9257
  if (o) {
9259
9258
  if (n === void 0)
@@ -9267,7 +9266,7 @@ function jt(e, t) {
9267
9266
  n = e;
9268
9267
  else
9269
9268
  do {
9270
- var o = k(e, "transform");
9269
+ var o = B(e, "transform");
9271
9270
  o && o !== "none" && (n = o + " " + n);
9272
9271
  } while (!t && (e = e.parentNode));
9273
9272
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
@@ -9287,34 +9286,34 @@ function ze() {
9287
9286
  var e = document.scrollingElement;
9288
9287
  return e || document.documentElement;
9289
9288
  }
9290
- function de(e, t, n, o, i) {
9289
+ function fe(e, t, n, o, i) {
9291
9290
  if (!(!e.getBoundingClientRect && e !== window)) {
9292
- var s, a, r, c, _, d, p;
9293
- if (e !== window && e.parentNode && e !== ze() ? (s = e.getBoundingClientRect(), a = s.top, r = s.left, c = s.bottom, _ = s.right, d = s.height, p = s.width) : (a = 0, r = 0, c = window.innerHeight, _ = window.innerWidth, d = window.innerHeight, p = window.innerWidth), (t || n) && e !== window && (i = i || e.parentNode, !ut))
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))
9294
9293
  do
9295
- if (i && i.getBoundingClientRect && (k(i, "transform") !== "none" || n && k(i, "position") !== "static")) {
9294
+ if (i && i.getBoundingClientRect && (B(i, "transform") !== "none" || n && B(i, "position") !== "static")) {
9296
9295
  var f = i.getBoundingClientRect();
9297
- a -= f.top + parseInt(k(i, "border-top-width")), r -= f.left + parseInt(k(i, "border-left-width")), c = a + s.height, _ = r + s.width;
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;
9298
9297
  break;
9299
9298
  }
9300
9299
  while (i = i.parentNode);
9301
9300
  if (o && e !== window) {
9302
9301
  var g = jt(i || e), b = g && g.a, E = g && g.d;
9303
- g && (a /= E, r /= b, p /= b, d /= E, c = a + d, _ = r + p);
9302
+ g && (a /= E, r /= b, d /= b, p /= E, c = a + p, _ = r + d);
9304
9303
  }
9305
9304
  return {
9306
9305
  top: a,
9307
9306
  left: r,
9308
9307
  bottom: c,
9309
9308
  right: _,
9310
- width: p,
9311
- height: d
9309
+ width: d,
9310
+ height: p
9312
9311
  };
9313
9312
  }
9314
9313
  }
9315
9314
  function xs(e, t, n) {
9316
- for (var o = gt(e, !0), i = de(e)[t]; o; ) {
9317
- var s = de(o)[n], a = void 0;
9315
+ for (var o = gt(e, !0), i = fe(e)[t]; o; ) {
9316
+ var s = fe(o)[n], a = void 0;
9318
9317
  if (a = i >= s, !a)
9319
9318
  return o;
9320
9319
  if (o === ze())
@@ -9325,7 +9324,7 @@ function xs(e, t, n) {
9325
9324
  }
9326
9325
  function Jt(e, t, n, o) {
9327
9326
  for (var i = 0, s = 0, a = e.children; s < a.length; ) {
9328
- if (a[s].style.display !== "none" && a[s] !== B.ghost && (o || a[s] !== B.dragged) && Ke(a[s], n.draggable, e, !1)) {
9327
+ if (a[s].style.display !== "none" && a[s] !== R.ghost && (o || a[s] !== R.dragged) && Ke(a[s], n.draggable, e, !1)) {
9329
9328
  if (i === t)
9330
9329
  return a[s];
9331
9330
  i++;
@@ -9335,7 +9334,7 @@ function Jt(e, t, n, o) {
9335
9334
  return null;
9336
9335
  }
9337
9336
  function Pi(e, t) {
9338
- for (var n = e.lastElementChild; n && (n === B.ghost || k(n, "display") === "none" || t && !to(n, t)); )
9337
+ for (var n = e.lastElementChild; n && (n === R.ghost || B(n, "display") === "none" || t && !to(n, t)); )
9339
9338
  n = n.previousElementSibling;
9340
9339
  return n || null;
9341
9340
  }
@@ -9344,7 +9343,7 @@ function Ue(e, t) {
9344
9343
  if (!e || !e.parentNode)
9345
9344
  return -1;
9346
9345
  for (; e = e.previousElementSibling; )
9347
- e.nodeName.toUpperCase() !== "TEMPLATE" && e !== B.clone && (!t || to(e, t)) && n++;
9346
+ e.nodeName.toUpperCase() !== "TEMPLATE" && e !== R.clone && (!t || to(e, t)) && n++;
9348
9347
  return n;
9349
9348
  }
9350
9349
  function Us(e) {
@@ -9371,7 +9370,7 @@ function gt(e, t) {
9371
9370
  var n = e, o = !1;
9372
9371
  do
9373
9372
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
9374
- var i = k(n);
9373
+ var i = B(n);
9375
9374
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
9376
9375
  if (!n.getBoundingClientRect || n === document.body)
9377
9376
  return ze();
@@ -9418,7 +9417,7 @@ function or(e, t, n) {
9418
9417
  return Array.from(e.children).forEach(function(i) {
9419
9418
  var s, a, r, c;
9420
9419
  if (!(!Ke(i, t.draggable, e, !1) || i.animated || i === n)) {
9421
- var _ = de(i);
9420
+ var _ = fe(i);
9422
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);
9423
9422
  }
9424
9423
  }), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
@@ -9431,10 +9430,10 @@ function Pf() {
9431
9430
  if (e = [], !!this.options.animation) {
9432
9431
  var n = [].slice.call(this.el.children);
9433
9432
  n.forEach(function(o) {
9434
- if (!(k(o, "display") === "none" || o === B.ghost)) {
9433
+ if (!(B(o, "display") === "none" || o === R.ghost)) {
9435
9434
  e.push({
9436
9435
  target: o,
9437
- rect: de(o)
9436
+ rect: fe(o)
9438
9437
  });
9439
9438
  var i = qe({}, e[e.length - 1].rect);
9440
9439
  if (o.thisAnimationDuration) {
@@ -9462,9 +9461,9 @@ function Pf() {
9462
9461
  }
9463
9462
  var i = !1, s = 0;
9464
9463
  e.forEach(function(a) {
9465
- var r = 0, c = a.target, _ = c.fromRect, d = de(c), p = c.prevFromRect, f = c.prevToRect, g = a.rect, b = jt(c, !0);
9466
- b && (d.top -= b.f, d.left -= b.e), c.toRect = d, c.thisAnimationDuration && Go(p, d) && !Go(_, d) && // Make sure animatingRect is on line between toRect & fromRect
9467
- (g.top - d.top) / (g.left - d.left) === (_.top - d.top) / (_.left - d.left) && (r = Uf(g, p, f, o.options)), Go(d, _) || (c.prevFromRect = _, c.prevToRect = d, r || (r = o.options.animation), o.animate(c, g, d, r)), r && (i = !0, s = Math.max(s, r), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
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() {
9468
9467
  c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
9469
9468
  }, r), c.thisAnimationDuration = r);
9470
9469
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -9473,10 +9472,10 @@ function Pf() {
9473
9472
  },
9474
9473
  animate: function(n, o, i, s) {
9475
9474
  if (s) {
9476
- k(n, "transition", ""), k(n, "transform", "");
9477
- var a = jt(this.el), r = a && a.a, c = a && a.d, _ = (o.left - i.left) / (r || 1), d = (o.top - i.top) / (c || 1);
9478
- n.animatingX = !!_, n.animatingY = !!d, k(n, "transform", "translate3d(" + _ + "px," + d + "px,0)"), this.forRepaintDummy = xf(n), k(n, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), k(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
9479
- k(n, "transition", ""), k(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
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;
9480
9479
  }, s);
9481
9480
  }
9482
9481
  }
@@ -9541,22 +9540,22 @@ var wt = [], jo = {
9541
9540
  }
9542
9541
  };
9543
9542
  function wf(e) {
9544
- 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, d = e.oldDraggableIndex, p = e.newDraggableIndex, f = e.originalEvent, g = e.putSortable, b = e.extraEventProperties;
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;
9545
9544
  if (t = t || n && n[Pe], !!t) {
9546
- var E, S = t.options, C = "on" + o.charAt(0).toUpperCase() + o.substr(1);
9545
+ var E, C = t.options, S = "on" + o.charAt(0).toUpperCase() + o.substr(1);
9547
9546
  window.CustomEvent && !ut && !On ? E = new CustomEvent(o, {
9548
9547
  bubbles: !0,
9549
9548
  cancelable: !0
9550
- }) : (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 = d, E.newDraggableIndex = p, E.originalEvent = f, E.pullMode = g ? g.lastPutMode : void 0;
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;
9551
9550
  var F = qe(qe({}, b), In.getEventProperties(o, t));
9552
9551
  for (var H in F)
9553
9552
  E[H] = F[H];
9554
- n && n.dispatchEvent(E), S[C] && S[C].call(t, E);
9553
+ n && n.dispatchEvent(E), C[S] && C[S].call(t, E);
9555
9554
  }
9556
9555
  }
9557
- var Vf = ["evt"], Le = function(e, t) {
9556
+ var Vf = ["evt"], Se = function(e, t) {
9558
9557
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, i = Nf(n, Vf);
9559
- In.pluginEvent.bind(B)(e, t, qe({
9558
+ In.pluginEvent.bind(R)(e, t, qe({
9560
9559
  dragEl: T,
9561
9560
  parentEl: ce,
9562
9561
  ghostEl: M,
@@ -9567,7 +9566,7 @@ var Vf = ["evt"], Le = function(e, t) {
9567
9566
  cloneHidden: dt,
9568
9567
  dragStarted: nn,
9569
9568
  putSortable: Ee,
9570
- activeSortable: B.active,
9569
+ activeSortable: R.active,
9571
9570
  originalEvent: o,
9572
9571
  oldIndex: $t,
9573
9572
  oldDraggableIndex: _n,
@@ -9610,14 +9609,14 @@ var T, ce, M, ae, Ct, Kn, le, dt, $t, Me, _n, _t, Dn, Ee, Kt = !1, no = !1, oo =
9610
9609
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
9611
9610
  }
9612
9611
  }(), sr = function(e, t) {
9613
- var n = k(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 && k(i), r = s && k(s), c = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + de(i).width, _ = r && parseInt(r.marginLeft) + parseInt(r.marginRight) + de(s).width;
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;
9614
9613
  if (n.display === "flex")
9615
9614
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
9616
9615
  if (n.display === "grid")
9617
9616
  return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
9618
9617
  if (i && a.float && a.float !== "none") {
9619
- var d = a.float === "left" ? "left" : "right";
9620
- return s && (r.clear === "both" || r.clear === d) ? "vertical" : "horizontal";
9618
+ var p = a.float === "left" ? "left" : "right";
9619
+ return s && (r.clear === "both" || r.clear === p) ? "vertical" : "horizontal";
9621
9620
  }
9622
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";
9623
9622
  }, Yf = function(e, t, n) {
@@ -9628,7 +9627,7 @@ var T, ce, M, ae, Ct, Kn, le, dt, $t, Me, _n, _t, Dn, Ee, Kt = !1, no = !1, oo =
9628
9627
  return oo.some(function(o) {
9629
9628
  var i = o[Pe].options.emptyInsertThreshold;
9630
9629
  if (!(!i || Pi(o))) {
9631
- var s = de(o), a = e >= s.left - i && e <= s.right + i, r = t >= s.top - i && t <= s.bottom + i;
9630
+ var s = fe(o), a = e >= s.left - i && e <= s.right + i, r = t >= s.top - i && t <= s.bottom + i;
9632
9631
  if (a && r)
9633
9632
  return n = o;
9634
9633
  }
@@ -9636,8 +9635,8 @@ var T, ce, M, ae, Ct, Kn, le, dt, $t, Me, _n, _t, Dn, Ee, Kt = !1, no = !1, oo =
9636
9635
  }, ar = function(e) {
9637
9636
  function t(i, s) {
9638
9637
  return function(a, r, c, _) {
9639
- var d = a.options.group.name && r.options.group.name && a.options.group.name === r.options.group.name;
9640
- if (i == null && (s || d))
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))
9641
9640
  return !0;
9642
9641
  if (i == null || i === !1)
9643
9642
  return !1;
@@ -9645,8 +9644,8 @@ var T, ce, M, ae, Ct, Kn, le, dt, $t, Me, _n, _t, Dn, Ee, Kt = !1, no = !1, oo =
9645
9644
  return i;
9646
9645
  if (typeof i == "function")
9647
9646
  return t(i(a, r, c, _), s)(a, r, c, _);
9648
- var p = (s ? a : r).options.group.name;
9649
- return i === !0 || typeof i == "string" && i === p || i.join && i.indexOf(p) > -1;
9647
+ var d = (s ? a : r).options.group.name;
9648
+ return i === !0 || typeof i == "string" && i === d || i.join && i.indexOf(d) > -1;
9650
9649
  };
9651
9650
  }
9652
9651
  var n = {}, o = e.group;
@@ -9654,9 +9653,9 @@ var T, ce, M, ae, Ct, Kn, le, dt, $t, Me, _n, _t, Dn, Ee, Kt = !1, no = !1, oo =
9654
9653
  name: o
9655
9654
  }), n.name = o.name, n.checkPull = t(o.pull, !0), n.checkPut = t(o.put), n.revertClone = o.revertClone, e.group = n;
9656
9655
  }, rr = function() {
9657
- !ir && M && k(M, "display", "none");
9656
+ !ir && M && B(M, "display", "none");
9658
9657
  }, lr = function() {
9659
- !ir && M && k(M, "display", "");
9658
+ !ir && M && B(M, "display", "");
9660
9659
  };
9661
9660
  Lo && !qa && document.addEventListener("click", function(e) {
9662
9661
  if (no)
@@ -9676,7 +9675,7 @@ var yt = function(e) {
9676
9675
  }, Hf = function(e) {
9677
9676
  T && T.parentNode[Pe]._isOutsideThisEl(e.target);
9678
9677
  };
9679
- function B(e, t) {
9678
+ function R(e, t) {
9680
9679
  if (!(e && e.nodeType && e.nodeType === 1))
9681
9680
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
9682
9681
  this.el = e, this.options = t = lt({}, t), e[Pe] = this;
@@ -9722,7 +9721,7 @@ function B(e, t) {
9722
9721
  x: 0,
9723
9722
  y: 0
9724
9723
  },
9725
- supportPointer: B.supportPointer !== !1 && "PointerEvent" in window && !cn,
9724
+ supportPointer: R.supportPointer !== !1 && "PointerEvent" in window && !cn,
9726
9725
  emptyInsertThreshold: 5
9727
9726
  };
9728
9727
  In.initializePlugins(this, e, n);
@@ -9731,11 +9730,11 @@ function B(e, t) {
9731
9730
  ar(t);
9732
9731
  for (var i in this)
9733
9732
  i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
9734
- this.nativeDraggable = t.forceFallback ? !1 : Ff, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? z(e, "pointerdown", this._onTapStart) : (z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart)), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), oo.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), lt(this, Pf());
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());
9735
9734
  }
9736
- B.prototype = /** @lends Sortable.prototype */
9735
+ R.prototype = /** @lends Sortable.prototype */
9737
9736
  {
9738
- constructor: B,
9737
+ constructor: R,
9739
9738
  _isOutsideThisEl: function(e) {
9740
9739
  !this.el.contains(e) && e !== this.el && (Vt = null);
9741
9740
  },
@@ -9755,21 +9754,21 @@ B.prototype = /** @lends Sortable.prototype */
9755
9754
  targetEl: r,
9756
9755
  toEl: n,
9757
9756
  fromEl: n
9758
- }), Le("filter", t, {
9757
+ }), Se("filter", t, {
9759
9758
  evt: e
9760
9759
  }), i && e.cancelable && e.preventDefault();
9761
9760
  return;
9762
9761
  }
9763
- } else if (_ && (_ = _.split(",").some(function(d) {
9764
- if (d = Ke(c, d.trim(), n, !1), d)
9762
+ } else if (_ && (_ = _.split(",").some(function(p) {
9763
+ if (p = Ke(c, p.trim(), n, !1), p)
9765
9764
  return Ce({
9766
9765
  sortable: t,
9767
- rootEl: d,
9766
+ rootEl: p,
9768
9767
  name: "filter",
9769
9768
  targetEl: r,
9770
9769
  fromEl: n,
9771
9770
  toEl: n
9772
- }), Le("filter", t, {
9771
+ }), Se("filter", t, {
9773
9772
  evt: e
9774
9773
  }), !0;
9775
9774
  }), _)) {
@@ -9783,15 +9782,15 @@ B.prototype = /** @lends Sortable.prototype */
9783
9782
  _prepareDragStart: function(e, t, n) {
9784
9783
  var o = this, i = o.el, s = o.options, a = i.ownerDocument, r;
9785
9784
  if (n && !T && n.parentNode === i) {
9786
- var c = de(n);
9787
- if (ae = i, T = n, ce = T.parentNode, Ct = T.nextSibling, Kn = n, Dn = s.group, B.dragged = T, It = {
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 = {
9788
9787
  target: T,
9789
9788
  clientX: (t || e).clientX,
9790
9789
  clientY: (t || e).clientY
9791
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() {
9792
- if (Le("delayEnded", o, {
9791
+ if (Se("delayEnded", o, {
9793
9792
  evt: e
9794
- }), B.eventCanceled) {
9793
+ }), R.eventCanceled) {
9795
9794
  o._onDrop();
9796
9795
  return;
9797
9796
  }
@@ -9802,14 +9801,14 @@ B.prototype = /** @lends Sortable.prototype */
9802
9801
  }), De(T, s.chosenClass, !0);
9803
9802
  }, s.ignore.split(",").forEach(function(_) {
9804
9803
  Za(T, _.trim(), Jo);
9805
- }), z(a, "dragover", yt), z(a, "mousemove", yt), z(a, "touchmove", yt), z(a, "mouseup", o._onDrop), z(a, "touchend", o._onDrop), z(a, "touchcancel", o._onDrop), Ms && this.nativeDraggable && (this.options.touchStartThreshold = 4, T.draggable = !0), Le("delayStart", this, {
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, {
9806
9805
  evt: e
9807
9806
  }), s.delay && (!s.delayOnTouchOnly || t) && (!this.nativeDraggable || !(On || ut))) {
9808
- if (B.eventCanceled) {
9807
+ if (R.eventCanceled) {
9809
9808
  this._onDrop();
9810
9809
  return;
9811
9810
  }
9812
- z(a, "mouseup", o._disableDelayedDrag), z(a, "touchend", o._disableDelayedDrag), z(a, "touchcancel", o._disableDelayedDrag), z(a, "mousemove", o._delayedDragTouchMoveHandler), z(a, "touchmove", o._delayedDragTouchMoveHandler), s.supportPointer && z(a, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(r, s.delay);
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);
9813
9812
  } else
9814
9813
  r();
9815
9814
  }
@@ -9826,7 +9825,7 @@ B.prototype = /** @lends Sortable.prototype */
9826
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);
9827
9826
  },
9828
9827
  _triggerDragStart: function(e, t) {
9829
- t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? z(document, "pointermove", this._onTouchMove) : t ? z(document, "touchmove", this._onTouchMove) : z(document, "mousemove", this._onTouchMove) : (z(T, "dragend", this), z(ae, "dragstart", this._onDragStart));
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));
9830
9829
  try {
9831
9830
  document.selection ? $n(function() {
9832
9831
  document.selection.empty();
@@ -9836,11 +9835,11 @@ B.prototype = /** @lends Sortable.prototype */
9836
9835
  },
9837
9836
  _dragStarted: function(e, t) {
9838
9837
  if (Kt = !1, ae && T) {
9839
- Le("dragStarted", this, {
9838
+ Se("dragStarted", this, {
9840
9839
  evt: t
9841
- }), this.nativeDraggable && z(document, "dragover", Hf);
9840
+ }), this.nativeDraggable && W(document, "dragover", Hf);
9842
9841
  var n = this.options;
9843
- !e && De(T, n.dragClass, !1), De(T, n.ghostClass, !0), B.active = this, e && this._appendGhost(), Ce({
9842
+ !e && De(T, n.dragClass, !1), De(T, n.ghostClass, !0), R.active = this, e && this._appendGhost(), Ce({
9844
9843
  sortable: this,
9845
9844
  name: "start",
9846
9845
  originalEvent: t
@@ -9872,85 +9871,85 @@ B.prototype = /** @lends Sortable.prototype */
9872
9871
  },
9873
9872
  _onTouchMove: function(e) {
9874
9873
  if (It) {
9875
- 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), d = (i.clientY - It.clientY + o.y) / (r || 1) + (c ? c[1] - zo[1] : 0) / (r || 1);
9876
- if (!B.active && !Kt) {
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) {
9877
9876
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
9878
9877
  return;
9879
9878
  this._onDragStart(e, !0);
9880
9879
  }
9881
9880
  if (M) {
9882
- s ? (s.e += _ - (Wo || 0), s.f += d - (Xo || 0)) : s = {
9881
+ s ? (s.e += _ - (Wo || 0), s.f += p - (Xo || 0)) : s = {
9883
9882
  a: 1,
9884
9883
  b: 0,
9885
9884
  c: 0,
9886
9885
  d: 1,
9887
9886
  e: _,
9888
- f: d
9887
+ f: p
9889
9888
  };
9890
- var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
9891
- k(M, "webkitTransform", p), k(M, "mozTransform", p), k(M, "msTransform", p), k(M, "transform", p), Wo = _, Xo = d, Ye = i;
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;
9892
9891
  }
9893
9892
  e.cancelable && e.preventDefault();
9894
9893
  }
9895
9894
  },
9896
9895
  _appendGhost: function() {
9897
9896
  if (!M) {
9898
- var e = this.options.fallbackOnBody ? document.body : ae, t = de(T, !0, Pn, !0, e), n = this.options;
9897
+ var e = this.options.fallbackOnBody ? document.body : ae, t = fe(T, !0, Pn, !0, e), n = this.options;
9899
9898
  if (Pn) {
9900
- for (Oe = e; k(Oe, "position") === "static" && k(Oe, "transform") === "none" && Oe !== document; )
9899
+ for (Oe = e; B(Oe, "position") === "static" && B(Oe, "transform") === "none" && Oe !== document; )
9901
9900
  Oe = Oe.parentNode;
9902
9901
  Oe !== document.body && Oe !== document.documentElement ? (Oe === document && (Oe = ze()), t.top += Oe.scrollTop, t.left += Oe.scrollLeft) : Oe = ze(), zo = Us(Oe);
9903
9902
  }
9904
- M = T.cloneNode(!0), De(M, n.ghostClass, !1), De(M, n.fallbackClass, !0), De(M, n.dragClass, !0), k(M, "transition", ""), k(M, "transform", ""), k(M, "box-sizing", "border-box"), k(M, "margin", 0), k(M, "top", t.top), k(M, "left", t.left), k(M, "width", t.width), k(M, "height", t.height), k(M, "opacity", "0.8"), k(M, "position", Pn ? "absolute" : "fixed"), k(M, "zIndex", "100000"), k(M, "pointerEvents", "none"), B.ghost = M, e.appendChild(M), k(M, "transform-origin", ws / parseInt(M.style.width) * 100 + "% " + Vs / parseInt(M.style.height) * 100 + "%");
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 + "%");
9905
9904
  }
9906
9905
  },
9907
9906
  _onDragStart: function(e, t) {
9908
9907
  var n = this, o = e.dataTransfer, i = n.options;
9909
- if (Le("dragStart", this, {
9908
+ if (Se("dragStart", this, {
9910
9909
  evt: e
9911
- }), B.eventCanceled) {
9910
+ }), R.eventCanceled) {
9912
9911
  this._onDrop();
9913
9912
  return;
9914
9913
  }
9915
- Le("setupClone", this), B.eventCanceled || (le = nr(T), le.removeAttribute("id"), le.draggable = !1, le.style["will-change"] = "", this._hideClone(), De(le, this.options.chosenClass, !1), B.clone = le), n.cloneId = $n(function() {
9916
- Le("clone", n), !B.eventCanceled && (n.options.removeCloneOnHide || ae.insertBefore(le, T), n._hideClone(), Ce({
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({
9917
9916
  sortable: n,
9918
9917
  name: "clone"
9919
9918
  }));
9920
- }), !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)), z(document, "drop", n), k(T, "transform", "translateZ(0)")), Kt = !0, n._dragStartId = $n(n._dragStarted.bind(n, t, e)), z(document, "selectstart", n), nn = !0, cn && k(document.body, "user-select", "none");
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");
9921
9920
  },
9922
9921
  // Returns true - if no further action is needed (either inserted or another condition)
9923
9922
  _onDragOver: function(e) {
9924
- var t = this.el, n = e.target, o, i, s, a = this.options, r = a.group, c = B.active, _ = Dn === r, d = a.sort, p = Ee || c, f, g = this, b = !1;
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;
9925
9924
  if (hi)
9926
9925
  return;
9927
9926
  function E(h, A) {
9928
- Le(h, g, qe({
9927
+ Se(h, g, qe({
9929
9928
  evt: e,
9930
9929
  isOwner: _,
9931
9930
  axis: f ? "vertical" : "horizontal",
9932
9931
  revert: s,
9933
9932
  dragRect: o,
9934
9933
  targetRect: i,
9935
- canSort: d,
9936
- fromSortable: p,
9934
+ canSort: p,
9935
+ fromSortable: d,
9937
9936
  target: n,
9938
- completed: C,
9937
+ completed: S,
9939
9938
  onMove: function(D, Y) {
9940
- return xn(ae, t, T, o, D, de(D), e, Y);
9939
+ return xn(ae, t, T, o, D, fe(D), e, Y);
9941
9940
  },
9942
9941
  changed: F
9943
9942
  }, A));
9944
9943
  }
9945
- function S() {
9946
- E("dragOverAnimationCapture"), g.captureAnimationState(), g !== p && p.captureAnimationState();
9944
+ function C() {
9945
+ E("dragOverAnimationCapture"), g.captureAnimationState(), g !== d && d.captureAnimationState();
9947
9946
  }
9948
- function C(h) {
9947
+ function S(h) {
9949
9948
  return E("dragOverCompleted", {
9950
9949
  insertion: h
9951
- }), h && (_ ? c._hideClone() : c._showClone(g), g !== p && (De(T, Ee ? Ee.options.ghostClass : c.options.ghostClass, !1), De(T, a.ghostClass, !0)), Ee !== g && g !== B.active ? Ee = g : g === B.active && Ee && (Ee = null), p === g && (g._ignoreWhileAnimating = n), g.animateAll(function() {
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() {
9952
9951
  E("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
9953
- }), g !== p && (p.animateAll(), p._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;
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;
9954
9953
  }
9955
9954
  function F() {
9956
9955
  Me = Ue(T), _t = Ue(T, a.draggable), Ce({
@@ -9962,49 +9961,49 @@ B.prototype = /** @lends Sortable.prototype */
9962
9961
  originalEvent: e
9963
9962
  });
9964
9963
  }
9965
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ke(n, a.draggable, t, !0), E("dragOver"), B.eventCanceled)
9964
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ke(n, a.draggable, t, !0), E("dragOver"), R.eventCanceled)
9966
9965
  return b;
9967
9966
  if (T.contains(e.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
9968
- return C(!1);
9969
- if (no = !1, c && !a.disabled && (_ ? d || (s = ce !== ae) : Ee === this || (this.lastPutMode = Dn.checkPull(this, c, T, e)) && r.checkPut(this, c, T, e))) {
9970
- if (f = this._getDirection(e, n) === "vertical", o = de(T), E("dragOverValid"), B.eventCanceled)
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)
9971
9970
  return b;
9972
9971
  if (s)
9973
- return ce = ae, S(), this._hideClone(), E("revert"), B.eventCanceled || (Ct ? ae.insertBefore(T, Ct) : ae.appendChild(T)), C(!0);
9972
+ return ce = ae, C(), this._hideClone(), E("revert"), R.eventCanceled || (Ct ? ae.insertBefore(T, Ct) : ae.appendChild(T)), S(!0);
9974
9973
  var H = Pi(t, a.draggable);
9975
9974
  if (!H || Wf(e, f, this) && !H.animated) {
9976
9975
  if (H === T)
9977
- return C(!1);
9978
- if (H && t === e.target && (n = H), n && (i = de(n)), xn(ae, t, T, o, n, i, e, !!n) !== !1)
9979
- return S(), H && H.nextSibling ? t.insertBefore(T, H.nextSibling) : t.appendChild(T), ce = t, F(), C(!0);
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);
9980
9979
  } else if (H && jf(e, f, this)) {
9981
9980
  var te = Jt(t, 0, a, !0);
9982
9981
  if (te === T)
9983
- return C(!1);
9984
- if (n = te, i = de(n), xn(ae, t, T, o, n, i, e, !1) !== !1)
9985
- return S(), t.insertBefore(T, te), ce = t, F(), C(!0);
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);
9986
9985
  } else if (n.parentNode === t) {
9987
- i = de(n);
9988
- var j = 0, _e, Se = T.parentNode !== t, L = !Yf(T.animated && T.toRect || o, n.animated && n.toRect || i, f), N = f ? "top" : "left", W = xs(n, "top", "top") || xs(T, "top", "top"), ne = W ? W.scrollTop : void 0;
9989
- Vt !== n && (_e = i[N], dn = !1, Mn = !L && a.invertSwap || Se), j = Xf(e, n, i, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Mn, Vt === n);
9990
- var X;
9991
- if (j !== 0) {
9992
- var Q = Ue(T);
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);
9993
9992
  do
9994
- Q -= j, X = ce.children[Q];
9995
- while (X && (k(X, "display") === "none" || X === M));
9993
+ k -= G, j = ce.children[k];
9994
+ while (j && (B(j, "display") === "none" || j === M));
9996
9995
  }
9997
- if (j === 0 || X === n)
9998
- return C(!1);
9999
- Vt = n, pn = j;
10000
- var R = n.nextElementSibling, G = !1;
10001
- G = j === 1;
10002
- var fe = xn(ae, t, T, o, n, i, e, G);
10003
- if (fe !== !1)
10004
- return (fe === 1 || fe === -1) && (G = fe === 1), hi = !0, setTimeout(Gf, 30), S(), G && !R ? t.appendChild(T) : n.parentNode.insertBefore(T, G ? R : n), W && tr(W, 0, ne - W.scrollTop), ce = T.parentNode, _e !== void 0 && !Mn && (Hn = Math.abs(_e - de(n)[N])), F(), C(!0);
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);
10005
10004
  }
10006
10005
  if (t.contains(T))
10007
- return C(!1);
10006
+ return S(!1);
10008
10007
  }
10009
10008
  return !1;
10010
10009
  },
@@ -10018,13 +10017,13 @@ B.prototype = /** @lends Sortable.prototype */
10018
10017
  },
10019
10018
  _onDrop: function(e) {
10020
10019
  var t = this.el, n = this.options;
10021
- if (Me = Ue(T), _t = Ue(T, n.draggable), Le("drop", this, {
10020
+ if (Me = Ue(T), _t = Ue(T, n.draggable), Se("drop", this, {
10022
10021
  evt: e
10023
- }), ce = T && T.parentNode, Me = Ue(T), _t = Ue(T, n.draggable), B.eventCanceled) {
10022
+ }), ce = T && T.parentNode, Me = Ue(T), _t = Ue(T, n.draggable), R.eventCanceled) {
10024
10023
  this._nulling();
10025
10024
  return;
10026
10025
  }
10027
- 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 && k(document.body, "user-select", ""), k(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({
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({
10028
10027
  sortable: this,
10029
10028
  name: "unchoose",
10030
10029
  toEl: ce,
@@ -10063,7 +10062,7 @@ B.prototype = /** @lends Sortable.prototype */
10063
10062
  name: "sort",
10064
10063
  toEl: ce,
10065
10064
  originalEvent: e
10066
- })), B.active && ((Me == null || Me === -1) && (Me = $t, _t = _n), Ce({
10065
+ })), R.active && ((Me == null || Me === -1) && (Me = $t, _t = _n), Ce({
10067
10066
  sortable: this,
10068
10067
  name: "end",
10069
10068
  toEl: ce,
@@ -10071,7 +10070,7 @@ B.prototype = /** @lends Sortable.prototype */
10071
10070
  }), this.save()))), this._nulling();
10072
10071
  },
10073
10072
  _nulling: function() {
10074
- Le("nulling", this), ae = T = ce = M = Ct = le = Kn = dt = It = Ye = nn = Me = _t = $t = _n = Vt = pn = Ee = Dn = B.dragged = B.ghost = B.clone = B.active = null, io.forEach(function(e) {
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) {
10075
10074
  e.checked = !0;
10076
10075
  }), io.length = Wo = Xo = 0;
10077
10076
  },
@@ -10145,7 +10144,7 @@ B.prototype = /** @lends Sortable.prototype */
10145
10144
  * Destroy
10146
10145
  */
10147
10146
  destroy: function() {
10148
- Le("destroy", this);
10147
+ Se("destroy", this);
10149
10148
  var e = this.el;
10150
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) {
10151
10150
  t.removeAttribute("draggable");
@@ -10153,9 +10152,9 @@ B.prototype = /** @lends Sortable.prototype */
10153
10152
  },
10154
10153
  _hideClone: function() {
10155
10154
  if (!dt) {
10156
- if (Le("hideClone", this), B.eventCanceled)
10155
+ if (Se("hideClone", this), R.eventCanceled)
10157
10156
  return;
10158
- k(le, "display", "none"), this.options.removeCloneOnHide && le.parentNode && le.parentNode.removeChild(le), dt = !0;
10157
+ B(le, "display", "none"), this.options.removeCloneOnHide && le.parentNode && le.parentNode.removeChild(le), dt = !0;
10159
10158
  }
10160
10159
  },
10161
10160
  _showClone: function(e) {
@@ -10164,9 +10163,9 @@ B.prototype = /** @lends Sortable.prototype */
10164
10163
  return;
10165
10164
  }
10166
10165
  if (dt) {
10167
- if (Le("showClone", this), B.eventCanceled)
10166
+ if (Se("showClone", this), R.eventCanceled)
10168
10167
  return;
10169
- 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), k(le, "display", ""), dt = !1;
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;
10170
10169
  }
10171
10170
  }
10172
10171
  };
@@ -10174,11 +10173,11 @@ function $f(e) {
10174
10173
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
10175
10174
  }
10176
10175
  function xn(e, t, n, o, i, s, a, r) {
10177
- var c, _ = e[Pe], d = _.options.onMove, p;
10176
+ var c, _ = e[Pe], p = _.options.onMove, d;
10178
10177
  return window.CustomEvent && !ut && !On ? c = new CustomEvent("move", {
10179
10178
  bubbles: !0,
10180
10179
  cancelable: !0
10181
- }) : (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 || de(t), c.willInsertAfter = r, c.originalEvent = a, e.dispatchEvent(c), d && (p = d.call(_, c, a)), p;
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;
10182
10181
  }
10183
10182
  function Jo(e) {
10184
10183
  e.draggable = !1;
@@ -10187,25 +10186,25 @@ function Gf() {
10187
10186
  hi = !1;
10188
10187
  }
10189
10188
  function jf(e, t, n) {
10190
- var o = de(Jt(n.el, 0, n.options, !0)), i = or(n.el, n.options, M), s = 10;
10189
+ var o = fe(Jt(n.el, 0, n.options, !0)), i = or(n.el, n.options, M), s = 10;
10191
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;
10192
10191
  }
10193
10192
  function Wf(e, t, n) {
10194
- var o = de(Pi(n.el, n.options.draggable)), i = or(n.el, n.options, M), s = 10;
10193
+ var o = fe(Pi(n.el, n.options.draggable)), i = or(n.el, n.options, M), s = 10;
10195
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;
10196
10195
  }
10197
10196
  function Xf(e, t, n, o, i, s, a, r) {
10198
- var c = o ? e.clientY : e.clientX, _ = o ? n.height : n.width, d = o ? n.top : n.left, p = o ? n.bottom : n.right, f = !1;
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;
10199
10198
  if (!a) {
10200
10199
  if (r && Hn < _ * i) {
10201
- if (!dn && (pn === 1 ? c > d + _ * s / 2 : c < p - _ * s / 2) && (dn = !0), dn)
10200
+ if (!dn && (pn === 1 ? c > p + _ * s / 2 : c < d - _ * s / 2) && (dn = !0), dn)
10202
10201
  f = !0;
10203
- else if (pn === 1 ? c < d + Hn : c > p - Hn)
10202
+ else if (pn === 1 ? c < p + Hn : c > d - Hn)
10204
10203
  return -pn;
10205
- } else if (c > d + _ * (1 - i) / 2 && c < p - _ * (1 - i) / 2)
10204
+ } else if (c > p + _ * (1 - i) / 2 && c < d - _ * (1 - i) / 2)
10206
10205
  return zf(t);
10207
10206
  }
10208
- return f = f || a, f && (c < d + _ * s / 2 || c > p - _ * s / 2) ? c > d + _ / 2 ? 1 : -1 : 0;
10207
+ return f = f || a, f && (c < p + _ * s / 2 || c > d - _ * s / 2) ? c > p + _ / 2 ? 1 : -1 : 0;
10209
10208
  }
10210
10209
  function zf(e) {
10211
10210
  return Ue(T) < Ue(e) ? 1 : -1;
@@ -10228,13 +10227,13 @@ function $n(e) {
10228
10227
  function gi(e) {
10229
10228
  return clearTimeout(e);
10230
10229
  }
10231
- Lo && z(document, "touchmove", function(e) {
10232
- (B.active || Kt) && e.cancelable && e.preventDefault();
10230
+ Lo && W(document, "touchmove", function(e) {
10231
+ (R.active || Kt) && e.cancelable && e.preventDefault();
10233
10232
  });
10234
- B.utils = {
10235
- on: z,
10233
+ R.utils = {
10234
+ on: W,
10236
10235
  off: $,
10237
- css: k,
10236
+ css: B,
10238
10237
  find: Za,
10239
10238
  is: function(e, t) {
10240
10239
  return !!Ke(e, t, e, !1);
@@ -10250,23 +10249,23 @@ B.utils = {
10250
10249
  detectDirection: sr,
10251
10250
  getChild: Jt
10252
10251
  };
10253
- B.get = function(e) {
10252
+ R.get = function(e) {
10254
10253
  return e[Pe];
10255
10254
  };
10256
- B.mount = function() {
10255
+ R.mount = function() {
10257
10256
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
10258
10257
  t[n] = arguments[n];
10259
10258
  t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
10260
10259
  if (!o.prototype || !o.prototype.constructor)
10261
10260
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
10262
- o.utils && (B.utils = qe(qe({}, B.utils), o.utils)), In.mount(o);
10261
+ o.utils && (R.utils = qe(qe({}, R.utils), o.utils)), In.mount(o);
10263
10262
  });
10264
10263
  };
10265
- B.create = function(e, t) {
10266
- return new B(e, t);
10264
+ R.create = function(e, t) {
10265
+ return new R(e, t);
10267
10266
  };
10268
- B.version = kf;
10269
- var pe = [], on, Ti, mi = !1, qo, Qo, so, sn;
10267
+ R.version = kf;
10268
+ var de = [], on, Ti, mi = !1, qo, Qo, so, sn;
10270
10269
  function Qf() {
10271
10270
  function e() {
10272
10271
  this.defaults = {
@@ -10282,7 +10281,7 @@ function Qf() {
10282
10281
  return e.prototype = {
10283
10282
  dragStarted: function(t) {
10284
10283
  var n = t.originalEvent;
10285
- this.sortable.nativeDraggable ? z(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? z(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? z(document, "touchmove", this._handleFallbackAutoScroll) : z(document, "mousemove", this._handleFallbackAutoScroll);
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);
10286
10285
  },
10287
10286
  dragOverCompleted: function(t) {
10288
10287
  var n = t.originalEvent;
@@ -10292,7 +10291,7 @@ function Qf() {
10292
10291
  this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), Ys(), Gn(), Mf();
10293
10292
  },
10294
10293
  nulling: function() {
10295
- so = Ti = on = mi = sn = qo = Qo = null, pe.length = 0;
10294
+ so = Ti = on = mi = sn = qo = Qo = null, de.length = 0;
10296
10295
  },
10297
10296
  _handleFallbackAutoScroll: function(t) {
10298
10297
  this._handleAutoScroll(t, !0);
@@ -10320,32 +10319,32 @@ function Qf() {
10320
10319
  });
10321
10320
  }
10322
10321
  function Gn() {
10323
- pe.forEach(function(e) {
10322
+ de.forEach(function(e) {
10324
10323
  clearInterval(e.pid);
10325
- }), pe = [];
10324
+ }), de = [];
10326
10325
  }
10327
10326
  function Ys() {
10328
10327
  clearInterval(sn);
10329
10328
  }
10330
10329
  var Zo = er(function(e, t, n, o) {
10331
10330
  if (t.scroll) {
10332
- 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, d;
10333
- Ti !== n && (Ti = n, Gn(), on = t.scroll, d = t.scrollFn, on === !0 && (on = gt(n, !0)));
10334
- var p = 0, f = on;
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;
10335
10334
  do {
10336
- var g = f, b = de(g), E = b.top, S = b.bottom, C = b.left, F = b.right, H = b.width, te = b.height, j = void 0, _e = void 0, Se = g.scrollWidth, L = g.scrollHeight, N = k(g), W = g.scrollLeft, ne = g.scrollTop;
10337
- g === c ? (j = H < Se && (N.overflowX === "auto" || N.overflowX === "scroll" || N.overflowX === "visible"), _e = te < L && (N.overflowY === "auto" || N.overflowY === "scroll" || N.overflowY === "visible")) : (j = H < Se && (N.overflowX === "auto" || N.overflowX === "scroll"), _e = te < L && (N.overflowY === "auto" || N.overflowY === "scroll"));
10338
- var X = j && (Math.abs(F - i) <= a && W + H < Se) - (Math.abs(C - i) <= a && !!W), Q = _e && (Math.abs(S - s) <= a && ne + te < L) - (Math.abs(E - s) <= a && !!ne);
10339
- if (!pe[p])
10340
- for (var R = 0; R <= p; R++)
10341
- pe[R] || (pe[R] = {});
10342
- (pe[p].vx != X || pe[p].vy != Q || pe[p].el !== g) && (pe[p].el = g, pe[p].vx = X, pe[p].vy = Q, clearInterval(pe[p].pid), (X != 0 || Q != 0) && (_ = !0, pe[p].pid = setInterval((function() {
10343
- o && this.layer === 0 && B.active._onTouchMove(so);
10344
- var G = pe[this.layer].vy ? pe[this.layer].vy * r : 0, fe = pe[this.layer].vx ? pe[this.layer].vx * r : 0;
10345
- typeof d == "function" && d.call(B.dragged.parentNode[Pe], fe, G, e, so, pe[this.layer].el) !== "continue" || tr(pe[this.layer].el, fe, G);
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);
10346
10345
  }).bind({
10347
- layer: p
10348
- }), 24))), p++;
10346
+ layer: d
10347
+ }), 24))), d++;
10349
10348
  } while (t.bubbleScroll && f !== c && (f = gt(f, !1)));
10350
10349
  mi = _;
10351
10350
  }
@@ -10354,8 +10353,8 @@ var Zo = er(function(e, t, n, o) {
10354
10353
  if (t) {
10355
10354
  var c = n || i;
10356
10355
  a();
10357
- var _ = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, d = document.elementFromPoint(_.clientX, _.clientY);
10358
- r(), c && !c.el.contains(d) && (s("spill"), this.onSpill({
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({
10359
10358
  dragEl: o,
10360
10359
  putSortable: n
10361
10360
  }));
@@ -10392,8 +10391,8 @@ Ui.prototype = {
10392
10391
  lt(Ui, {
10393
10392
  pluginName: "removeOnSpill"
10394
10393
  });
10395
- B.mount(new Qf());
10396
- B.mount(Ui, xi);
10394
+ R.mount(new Qf());
10395
+ R.mount(Ui, xi);
10397
10396
  function Zf(e) {
10398
10397
  return e == null ? e : JSON.parse(JSON.stringify(e));
10399
10398
  }
@@ -10424,125 +10423,125 @@ function oh(...e) {
10424
10423
  let c = null;
10425
10424
  const {
10426
10425
  immediate: _ = !0,
10427
- clone: d = Zf,
10428
- customUpdate: p
10426
+ clone: p = Zf,
10427
+ customUpdate: d
10429
10428
  } = (n = w(r)) != null ? n : {};
10430
- function f(L) {
10431
- var N;
10432
- const { from: W, oldIndex: ne, item: X } = L;
10433
- i = Array.from(W.childNodes);
10434
- const Q = w((N = w(a)) == null ? void 0 : N[ne]), R = d(Q);
10435
- Ks(Q, R), X[Hs] = R;
10436
- }
10437
- function g(L) {
10438
- const N = L.item[Hs];
10439
- if (!Ef(N)) {
10440
- if ($o(L.item), an(a)) {
10441
- const W = [...w(a)];
10442
- a.value = ks(W, L.newDraggableIndex, N);
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);
10443
10442
  return;
10444
10443
  }
10445
- ks(w(a), L.newDraggableIndex, N);
10444
+ ks(w(a), N.newDraggableIndex, L);
10446
10445
  }
10447
10446
  }
10448
- function b(L) {
10449
- const { from: N, item: W, oldIndex: ne, oldDraggableIndex: X, pullMode: Q, clone: R } = L;
10450
- if (Bs(N, W, ne), Q === "clone") {
10451
- $o(R);
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);
10452
10451
  return;
10453
10452
  }
10454
10453
  if (an(a)) {
10455
- const G = [...w(a)];
10456
- a.value = Ns(G, X);
10454
+ const z = [...w(a)];
10455
+ a.value = Ns(z, j);
10457
10456
  return;
10458
10457
  }
10459
- Ns(w(a), X);
10458
+ Ns(w(a), j);
10460
10459
  }
10461
- function E(L) {
10462
- if (p) {
10463
- p(L);
10460
+ function E(N) {
10461
+ if (d) {
10462
+ d(N);
10464
10463
  return;
10465
10464
  }
10466
- const { from: N, item: W, oldIndex: ne, newIndex: X } = L;
10467
- if ($o(W), Bs(N, W, ne), an(a)) {
10468
- const Q = [...w(a)];
10469
- a.value = Ls(Q, ne, X);
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);
10470
10469
  return;
10471
10470
  }
10472
- Ls(w(a), ne, X);
10471
+ Ls(w(a), ne, j);
10473
10472
  }
10474
- function S(L) {
10475
- const { newIndex: N, oldIndex: W, from: ne, to: X } = L;
10476
- let Q = null;
10477
- const R = N === W && ne === X;
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;
10478
10477
  try {
10479
- if (R) {
10480
- let G = null;
10481
- i == null || i.some((fe, h) => {
10482
- if (G && (i == null ? void 0 : i.length) !== X.childNodes.length)
10483
- return ne.insertBefore(G, fe.nextSibling), !0;
10484
- const A = X.childNodes[h];
10485
- G = X == null ? void 0 : X.replaceChild(fe, A);
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);
10486
10485
  });
10487
10486
  }
10488
- } catch (G) {
10489
- Q = G;
10487
+ } catch (z) {
10488
+ k = z;
10490
10489
  } finally {
10491
10490
  i = null;
10492
10491
  }
10493
10492
  vi(() => {
10494
- if (Ks(), Q)
10495
- throw Q;
10493
+ if (Ks(), k)
10494
+ throw k;
10496
10495
  });
10497
10496
  }
10498
- const C = {
10497
+ const S = {
10499
10498
  onUpdate: E,
10500
10499
  onStart: f,
10501
10500
  onAdd: g,
10502
10501
  onRemove: b,
10503
- onEnd: S
10502
+ onEnd: C
10504
10503
  };
10505
- function F(L) {
10506
- const N = w(s);
10507
- return L || (L = Af(N) ? vf(N, o == null ? void 0 : o.$el) : N), L && !If(L) && (L = L.$el), L || gf("Root element not found"), L;
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;
10508
10507
  }
10509
10508
  function H() {
10510
- var L;
10511
- const N = (L = w(r)) != null ? L : {}, W = Xa(N, ["immediate", "clone"]);
10512
- return Rs(W, (ne, X) => {
10513
- yf(ne) && (W[ne] = (Q, ...R) => {
10514
- const G = nh();
10515
- return Cf(Q, G), X(Q, ...R);
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);
10516
10515
  });
10517
10516
  }), Of(
10518
- a === null ? {} : C,
10519
- W
10517
+ a === null ? {} : S,
10518
+ X
10520
10519
  );
10521
10520
  }
10522
- const te = (L) => {
10523
- L = F(L), c && j.destroy(), c = new B(L, H());
10521
+ const te = (N) => {
10522
+ N = F(N), c && G.destroy(), c = new R(N, H());
10524
10523
  };
10525
10524
  pt(
10526
10525
  () => r,
10527
10526
  () => {
10528
- c && Rs(H(), (L, N) => {
10529
- c == null || c.option(L, N);
10527
+ c && Rs(H(), (N, L) => {
10528
+ c == null || c.option(N, L);
10530
10529
  });
10531
10530
  },
10532
10531
  { deep: !0 }
10533
10532
  );
10534
- const j = {
10535
- option: (L, N) => c == null ? void 0 : c.option(L, N),
10533
+ const G = {
10534
+ option: (N, L) => c == null ? void 0 : c.option(N, L),
10536
10535
  destroy: () => {
10537
10536
  c == null || c.destroy(), c = null;
10538
10537
  },
10539
10538
  save: () => c == null ? void 0 : c.save(),
10540
10539
  toArray: () => c == null ? void 0 : c.toArray(),
10541
- closest: (...L) => c == null ? void 0 : c.closest(...L)
10542
- }, _e = () => j == null ? void 0 : j.option("disabled", !0), Se = () => j == null ? void 0 : j.option("disabled", !1);
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);
10543
10542
  return th(() => {
10544
10543
  _ && te();
10545
- }), eh(j.destroy), Ht({ start: te, pause: _e, resume: Se }, j);
10544
+ }), eh(G.destroy), Ht({ start: te, pause: _e, resume: Be }, G);
10546
10545
  }
10547
10546
  const Ei = [
10548
10547
  "update",
@@ -10611,24 +10610,24 @@ const Ei = [
10611
10610
  props: ih,
10612
10611
  emits: ["update:modelValue", ...Ei],
10613
10612
  setup(e, { slots: t, emit: n, expose: o, attrs: i }) {
10614
- const s = Ei.reduce((d, p) => {
10615
- const f = `on${p.replace(/^\S/, (g) => g.toUpperCase())}`;
10616
- return d[f] = (...g) => n(p, ...g), d;
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;
10617
10616
  }, {}), a = Te(() => {
10618
- const d = Vr(e), p = Xa(d, ["modelValue"]), f = Object.entries(p).reduce((g, [b, E]) => {
10619
- const S = w(E);
10620
- return S !== void 0 && (g[b] = S), g;
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;
10621
10620
  }, {});
10622
10621
  return Ht(Ht({}, s), mf(Ht(Ht({}, i), f)));
10623
10622
  }), r = Te({
10624
10623
  get: () => e.modelValue,
10625
- set: (d) => n("update:modelValue", d)
10624
+ set: (p) => n("update:modelValue", p)
10626
10625
  }), c = At(), _ = Fr(
10627
10626
  oh(e.target || c, r, a)
10628
10627
  );
10629
10628
  return o(_), () => {
10630
- var d;
10631
- return ni(e.tag || "div", { ref: c }, (d = t == null ? void 0 : t.default) == null ? void 0 : d.call(t, _));
10629
+ var p;
10630
+ return ni(e.tag || "div", { ref: c }, (p = t == null ? void 0 : t.default) == null ? void 0 : p.call(t, _));
10632
10631
  };
10633
10632
  }
10634
10633
  }), ah = { class: "text-subtitle-1 ml-6" }, rh = /* @__PURE__ */ Qe({
@@ -10656,21 +10655,21 @@ const Ei = [
10656
10655
  border: "1px solid " + n.value,
10657
10656
  pointerEvents: "none"
10658
10657
  }));
10659
- return (d, p) => {
10658
+ return (p, d) => {
10660
10659
  const f = Ae("v-spacer"), g = Ae("v-icon"), b = Kr("ripple");
10661
10660
  return Hr((he(), mt("div", {
10662
10661
  class: "d-flex align-center cursor-pointer",
10663
10662
  style: ot(c.value),
10664
- onClick: p[1] || (p[1] = (E) => a("x-click", s.id)),
10665
- onMouseover: p[2] || (p[2] = (E) => r.value = !0),
10666
- onMouseout: p[3] || (p[3] = (E) => r.value = !1)
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)
10667
10666
  }, [
10668
10667
  He("span", ah, lo(s.title), 1),
10669
10668
  ge(f),
10670
10669
  ge(g, {
10671
10670
  class: "x-handle cursor-move mr-3",
10672
10671
  icon: w(lf),
10673
- onMousedown: p[0] || (p[0] = rn(() => {
10672
+ onMousedown: d[0] || (d[0] = rn(() => {
10674
10673
  }, ["stop"]))
10675
10674
  }, null, 8, ["icon"]),
10676
10675
  He("div", {
@@ -10691,23 +10690,23 @@ const Ei = [
10691
10690
  },
10692
10691
  setup(e) {
10693
10692
  const { t } = En(), n = e, o = At([]), i = () => {
10694
- const p = Et();
10695
- if (!p) {
10693
+ const d = Et();
10694
+ if (!d) {
10696
10695
  console.assert(!1);
10697
10696
  return;
10698
10697
  }
10699
10698
  const f = [];
10700
- p.getTopBlocks(!0).forEach((b) => {
10701
- var C;
10702
- const E = b.id === ((C = Yt()) == null ? void 0 : C.id);
10703
- let S = "<n/a>";
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>";
10704
10703
  if (b.type.startsWith("on_node_event_v")) {
10705
10704
  const F = b, H = Je[F.node.key];
10706
- H && (S = t(H.name), F.node.alias && (S += " / " + F.node.alias), S += " - " + v[F.event.name]);
10707
- } else b.type.startsWith("func_entry_v") ? S = t("x-block-lib.funcEntry") : b.type.startsWith("procedure_def_v") ? (console.log(b), S = t("x-block-lib.procedure") + " - " + b.getFieldValue("NAME")) : S = t("x-block-lib.temporaryBlock");
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");
10708
10707
  f.push({
10709
10708
  id: b.id,
10710
- name: S,
10709
+ name: C,
10711
10710
  select: E
10712
10711
  });
10713
10712
  }), o.value = f;
@@ -10723,43 +10722,43 @@ const Ei = [
10723
10722
  sa(t("x-block-lib.msg.cannotOperateInLockedState"));
10724
10723
  return;
10725
10724
  }
10726
- const p = [];
10725
+ const d = [];
10727
10726
  o.value.forEach(({ id: f }) => {
10728
- p.push(f);
10729
- }), s = p;
10730
- }, r = () => !n.lock, c = (p) => {
10727
+ d.push(f);
10728
+ }), s = d;
10729
+ }, r = () => !n.lock, c = (d) => {
10731
10730
  const f = Et();
10732
10731
  if (!f) {
10733
10732
  console.assert(!1);
10734
10733
  return;
10735
10734
  }
10736
- if (p.oldIndex === void 0 || p.newIndex === void 0) {
10735
+ if (d.oldIndex === void 0 || d.newIndex === void 0) {
10737
10736
  console.assert(!1);
10738
10737
  return;
10739
10738
  }
10740
- if (p.oldIndex === p.newIndex)
10739
+ if (d.oldIndex === d.newIndex)
10741
10740
  return;
10742
- const g = s[p.oldIndex], b = f.getBlockById(g);
10741
+ const g = s[d.oldIndex], b = f.getBlockById(g);
10743
10742
  if (!b) {
10744
10743
  console.assert(!1);
10745
10744
  return;
10746
10745
  }
10747
10746
  let E = "";
10748
- p.newIndex > p.oldIndex ? E = s[p.newIndex] : p.newIndex > 0 && (E = s[p.newIndex - 1]);
10749
- let S = -10;
10750
- E !== "" && (S = f.getBlockById(E).getRelativeToSurfaceXY().y + 10);
10751
- const C = b.getRelativeToSurfaceXY();
10752
- b.moveTo(new I.Coordinate(C.x, S)), We.emit("cleanWorkspace"), Fa();
10753
- }, { open: _ } = po("blocklyNavigatorDlg"), d = async (p) => {
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) => {
10754
10753
  const f = Et();
10755
10754
  if (!f) {
10756
10755
  console.assert(!1);
10757
10756
  return;
10758
10757
  }
10759
- const g = f.getBlockById(p);
10760
- Qr.setSelected(g), Va(p), _.value = !1;
10758
+ const g = f.getBlockById(d);
10759
+ Qr.setSelected(g), Va(d), _.value = !1;
10761
10760
  };
10762
- return (p, f) => o.value.length > 0 ? (he(), $e(w(sh), {
10761
+ return (d, f) => o.value.length > 0 ? (he(), $e(w(sh), {
10763
10762
  key: 0,
10764
10763
  modelValue: o.value,
10765
10764
  "onUpdate:modelValue": f[0] || (f[0] = (g) => o.value = g),
@@ -10776,7 +10775,7 @@ const Ei = [
10776
10775
  key: g.id,
10777
10776
  title: g.name,
10778
10777
  select: g.select,
10779
- onXClick: d
10778
+ onXClick: p
10780
10779
  }, null, 8, ["id", "title", "select"]))), 128))
10781
10780
  ]),
10782
10781
  _: 1
@@ -10799,40 +10798,40 @@ const dh = /* @__PURE__ */ pr(_h, [["render", ph]]), fh = { class: "text-subtitl
10799
10798
  },
10800
10799
  setup(e) {
10801
10800
  const { t } = En(), n = al(), { sysBarAvail: o } = aa(), { backgroundColor1: i } = _o(), s = e, a = Te(() => {
10802
- let d = "100%";
10803
- return n.mdAndUp.value && (d = "400px"), {
10801
+ let p = "100%";
10802
+ return n.mdAndUp.value && (p = "400px"), {
10804
10803
  background: i.value,
10805
- width: d,
10804
+ width: p,
10806
10805
  height: "100%"
10807
10806
  };
10808
10807
  }), r = Te(() => {
10809
- let d = 48;
10810
- return o.value && (d += 24), {
10808
+ let p = 48;
10809
+ return o.value && (p += 24), {
10811
10810
  position: "relative",
10812
10811
  width: "100%",
10813
- height: `calc(100% - ${d}px)`
10812
+ height: `calc(100% - ${p}px)`
10814
10813
  };
10815
10814
  }), c = Te(() => ({
10816
10815
  height: "60px"
10817
10816
  })), { open: _ } = po("blocklyNavigatorDlg");
10818
- return (d, p) => {
10819
- const f = Ae("v-sheet"), g = Ae("v-icon"), b = Ae("v-dialog"), E = Ae("v-btn"), S = Ae("v-tooltip");
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");
10820
10819
  return he(), mt(ea, null, [
10821
10820
  ge(b, {
10822
10821
  modelValue: w(_),
10823
- "onUpdate:modelValue": p[3] || (p[3] = (C) => an(_) ? _.value = C : null),
10822
+ "onUpdate:modelValue": d[3] || (d[3] = (S) => an(_) ? _.value = S : null),
10824
10823
  transition: "scroll-x-reverse-transition",
10825
10824
  persistent: "",
10826
10825
  "no-click-animation": "",
10827
10826
  fullscreen: "",
10828
10827
  eager: "",
10829
- onKeydown: p[4] || (p[4] = ta(rn((C) => _.value = !1, ["stop", "prevent"]), ["esc"]))
10828
+ onKeydown: d[4] || (d[4] = ta(rn((S) => _.value = !1, ["stop", "prevent"]), ["esc"]))
10830
10829
  }, {
10831
10830
  default: Xe(() => [
10832
10831
  He("div", {
10833
10832
  class: "w-100 h-100 d-flex flex-row-reverse",
10834
- onClick: p[1] || (p[1] = rn((C) => _.value = !1, ["self"])),
10835
- onContextmenu: p[2] || (p[2] = rn((C) => _.value = !1, ["self", "prevent"]))
10833
+ onClick: d[1] || (d[1] = rn((S) => _.value = !1, ["self"])),
10834
+ onContextmenu: d[2] || (d[2] = rn((S) => _.value = !1, ["self", "prevent"]))
10836
10835
  }, [
10837
10836
  He("div", {
10838
10837
  class: "elevation-2",
@@ -10851,7 +10850,7 @@ const dh = /* @__PURE__ */ pr(_h, [["render", ph]]), fh = { class: "text-subtitl
10851
10850
  default: Xe(() => [
10852
10851
  ge(g, {
10853
10852
  icon: w(Ga),
10854
- onClick: p[0] || (p[0] = (C) => _.value = !1)
10853
+ onClick: d[0] || (d[0] = (S) => _.value = !1)
10855
10854
  }, null, 8, ["icon"]),
10856
10855
  He("span", fh, lo(w(t)("x-block-lib.navigator")), 1)
10857
10856
  ]),
@@ -10874,15 +10873,15 @@ const dh = /* @__PURE__ */ pr(_h, [["render", ph]]), fh = { class: "text-subtitl
10874
10873
  ]),
10875
10874
  _: 1
10876
10875
  }, 8, ["modelValue"]),
10877
- ge(S, {
10876
+ ge(C, {
10878
10877
  text: w(t)("x-block-lib.tip.hotkeyCtrlE")
10879
10878
  }, {
10880
- activator: Xe(({ props: C }) => [
10881
- ge(E, Ai(C, {
10879
+ activator: Xe(({ props: S }) => [
10880
+ ge(E, Ai(S, {
10882
10881
  variant: "outlined",
10883
10882
  density: "comfortable",
10884
10883
  icon: w(_f),
10885
- onClick: p[5] || (p[5] = (F) => _.value = !0)
10884
+ onClick: d[5] || (d[5] = (F) => _.value = !0)
10886
10885
  }), null, 16, ["icon"])
10887
10886
  ]),
10888
10887
  _: 1
@@ -10933,7 +10932,7 @@ function mh(e, t, n) {
10933
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));
10934
10933
  }
10935
10934
  function Eh(e) {
10936
- const { router: t } = q.base;
10935
+ const { router: t } = Q.base;
10937
10936
  e.registerButtonCallback("NO_COMPUTE", () => {
10938
10937
  const n = t.resolve({
10939
10938
  path: "/compute/" + Date.now()
@@ -10963,24 +10962,24 @@ const Ah = { class: "position-relative w-100 h-100" }, vh = /* @__PURE__ */ Qe({
10963
10962
  }),
10964
10963
  emits: /* @__PURE__ */ Wi(["ready"], ["update:lock", "update:scale"]),
10965
10964
  setup(e, { expose: t, emit: n }) {
10966
- const o = sl(), { locale: i, dark: s } = nl(o), a = ti(e, "lock"), r = ti(e, "scale"), c = e, _ = n, d = At();
10965
+ const o = il(), i = sl(), s = ti(e, "lock"), a = ti(e, "scale"), r = e, c = n, _ = At();
10967
10966
  let p;
10968
- const f = At(!1), g = Te(() => c.type === "json" ? "tree" : "list"), b = Te(() => ({
10967
+ const d = At(!1), f = Te(() => r.type === "json" ? "tree" : "list"), g = Te(() => ({
10969
10968
  position: "absolute",
10970
10969
  top: "0px",
10971
10970
  right: "0px",
10972
10971
  zIndex: 20
10973
- })), E = Te(() => ({
10972
+ })), b = Te(() => ({
10974
10973
  position: "absolute",
10975
- background: s.value ? "#0000007f" : "#ffffff7f",
10974
+ background: o.value ? "#0000007f" : "#ffffff7f",
10976
10975
  top: "0px",
10977
10976
  left: "0px",
10978
10977
  width: "100%",
10979
10978
  height: "100%",
10980
10979
  pointerEvents: "none"
10981
- })), S = Te(() => ({
10980
+ })), E = Te(() => ({
10982
10981
  position: "absolute",
10983
- background: s.value ? "#0000007f" : "#ffffff7f",
10982
+ background: o.value ? "#0000007f" : "#ffffff7f",
10984
10983
  top: "1px",
10985
10984
  left: "0px",
10986
10985
  width: "56px",
@@ -10988,110 +10987,110 @@ const Ah = { class: "position-relative w-100 h-100" }, vh = /* @__PURE__ */ Qe({
10988
10987
  zIndex: 999
10989
10988
  })), { open: C } = po("blocklyEditorFlyout");
10990
10989
  Wt(async () => {
10991
- if (!d.value) {
10990
+ if (!_.value) {
10992
10991
  console.assert(!1);
10993
10992
  return;
10994
10993
  }
10995
- await Cs(i.value), p = gh(d.value, c.type, c.version), p.addChangeListener(V.disableOrphans), p.addChangeListener(F);
10996
- const R = document.querySelector("#blocklyEditor .blocklyFlyout");
10997
- new MutationObserver((fe) => {
10998
- fe.forEach((h) => {
10999
- h.type === "attributes" && h.attributeName === "style" && (C.value = p.getFlyout().isVisible());
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());
11000
10999
  });
11001
- }).observe(R, { attributes: !0 }), C.value = p.getFlyout().isVisible(), _e(), Se(), await vi(), _("ready");
11000
+ }).observe(k, { attributes: !0 }), C.value = p.getFlyout().isVisible(), G(), _e(), await vi(), c("ready");
11002
11001
  }), Wn(() => {
11003
11002
  C.value = !1;
11004
- }), pl(d, () => {
11003
+ }), pl(_, () => {
11005
11004
  p && el(p);
11006
11005
  });
11007
- async function F(R) {
11008
- if (R.type === V.FINISHED_LOADING) {
11009
- Fa(), We.emit("codeUpdate"), f.value = !1;
11006
+ async function S(k) {
11007
+ if (k.type === V.FINISHED_LOADING) {
11008
+ Fa(), We.emit("codeUpdate"), d.value = !1;
11010
11009
  return;
11011
11010
  }
11012
- f.value || (R.type === V.VIEWPORT_CHANGE && (r.value = p.getScale()), We.emit("codeUpdate"));
11011
+ d.value || (k.type === V.VIEWPORT_CHANGE && (a.value = p.getScale()), We.emit("codeUpdate"));
11013
11012
  }
11014
- const H = (R) => {
11015
- f.value = !0, zi.workspaces.load(R, p);
11016
- }, te = () => zi.workspaces.save(p), j = () => l.workspaceToCode(p), _e = () => {
11017
- p.options.readOnly = a.value, p.options.readOnly && (C.value = !1);
11018
- }, Se = () => {
11019
- p.setScale(r.value);
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);
11020
11019
  };
11021
- class L extends V.Abstract {
11020
+ class Be extends V.Abstract {
11022
11021
  constructor() {
11023
11022
  super(...arguments);
11024
11023
  Fe(this, "isBlank", !0);
11025
11024
  }
11026
11025
  }
11027
11026
  const N = () => {
11028
- p.fireChangeListener(new L());
11029
- }, W = (R) => {
11030
- if (R.key === "q" && R.ctrlKey) {
11031
- ne();
11027
+ p.fireChangeListener(new Be());
11028
+ }, L = (k) => {
11029
+ if (k.key === "q" && k.ctrlKey) {
11030
+ X();
11032
11031
  return;
11033
11032
  }
11034
- if (R.key === "w" && R.ctrlKey) {
11035
- X();
11033
+ if (k.key === "w" && k.ctrlKey) {
11034
+ ne();
11036
11035
  return;
11037
11036
  }
11038
- if (R.key === "e" && R.ctrlKey) {
11039
- Q();
11037
+ if (k.key === "e" && k.ctrlKey) {
11038
+ j();
11040
11039
  return;
11041
11040
  }
11042
- }, ne = () => {
11043
- We.emit("cleanWorkspace");
11044
11041
  }, X = () => {
11045
- a.value = !a.value;
11046
- }, Q = () => {
11042
+ We.emit("cleanWorkspace");
11043
+ }, ne = () => {
11044
+ s.value = !s.value;
11045
+ }, j = () => {
11047
11046
  We.emit("blocklyNavigatorDlg");
11048
11047
  };
11049
11048
  return Wt(() => {
11050
- window.addEventListener("keydown", W, !1);
11049
+ window.addEventListener("keydown", L, !1);
11051
11050
  }), Wn(() => {
11052
- window.addEventListener("keydown", W, !1);
11053
- }), pt(i, (R) => {
11054
- Cs(R);
11055
- }), pt(s, (R) => {
11056
- tf(R ? "dark" : "light");
11057
- }), pt(C, (R) => {
11058
- R || p.hideChaff();
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();
11059
11060
  }), pt(a, () => {
11060
11061
  _e();
11061
- }), pt(r, () => {
11062
- Se();
11063
- }), t({ loading: f, load: H, save: te, generateCode: j, fireStateChange: N }), (R, G) => {
11064
- 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");
11065
11064
  return he(), mt("div", Ah, [
11066
11065
  He("div", {
11067
11066
  id: "blocklyEditor",
11068
11067
  ref_key: "blocklyDiv",
11069
- ref: d,
11068
+ ref: _,
11070
11069
  class: "w-100 h-100"
11071
11070
  }, null, 512),
11072
11071
  He("div", {
11073
11072
  class: "d-flex align-end pt-3 pr-3",
11074
- style: ot(b.value)
11073
+ style: ot(g.value)
11075
11074
  }, [
11076
- ge(pf, { lock: a.value }, null, 8, ["lock"]),
11075
+ ge(pf, { lock: s.value }, null, 8, ["lock"]),
11077
11076
  ge(df, {
11078
- modelValue: a.value,
11079
- "onUpdate:modelValue": G[0] || (G[0] = (h) => a.value = h)
11077
+ modelValue: s.value,
11078
+ "onUpdate:modelValue": q[0] || (q[0] = (pe) => s.value = pe)
11080
11079
  }, null, 8, ["modelValue"]),
11081
11080
  ge(hh, {
11082
- type: g.value,
11083
- lock: a.value
11081
+ type: f.value,
11082
+ lock: s.value
11084
11083
  }, null, 8, ["type", "lock"])
11085
11084
  ], 4),
11086
- a.value ? (he(), mt("div", {
11085
+ s.value ? (he(), mt("div", {
11087
11086
  key: 0,
11088
- style: ot(E.value)
11087
+ style: ot(b.value)
11089
11088
  }, null, 4)) : Gt("", !0),
11090
- a.value ? (he(), mt("div", {
11089
+ s.value ? (he(), mt("div", {
11091
11090
  key: 1,
11092
- style: ot(S.value)
11091
+ style: ot(E.value)
11093
11092
  }, null, 4)) : Gt("", !0),
11094
- f.value ? (he(), $e(fe, {
11093
+ d.value ? (he(), $e(z, {
11095
11094
  key: 2,
11096
11095
  "z-index": 99
11097
11096
  })) : Gt("", !0)
@@ -11647,8 +11646,8 @@ function cg(e) {
11647
11646
  const c = this.matcherRe.exec(r);
11648
11647
  if (!c)
11649
11648
  return null;
11650
- const _ = c.findIndex((p, f) => f > 0 && p !== void 0), d = this.matchIndexes[_];
11651
- return c.splice(0, _), Object.assign(c, d);
11649
+ const _ = c.findIndex((d, f) => f > 0 && d !== void 0), p = this.matchIndexes[_];
11650
+ return c.splice(0, _), Object.assign(c, p);
11652
11651
  }
11653
11652
  }
11654
11653
  class o {
@@ -11659,7 +11658,7 @@ function cg(e) {
11659
11658
  getMatcher(r) {
11660
11659
  if (this.multiRegexes[r]) return this.multiRegexes[r];
11661
11660
  const c = new n();
11662
- return this.rules.slice(r).forEach(([_, d]) => c.addRule(_, d)), c.compile(), this.multiRegexes[r] = c, c;
11661
+ return this.rules.slice(r).forEach(([_, p]) => c.addRule(_, p)), c.compile(), this.multiRegexes[r] = c, c;
11663
11662
  }
11664
11663
  resumingScanAtSamePosition() {
11665
11664
  return this.regexIndex !== 0;
@@ -11677,8 +11676,8 @@ function cg(e) {
11677
11676
  c.lastIndex = this.lastIndex;
11678
11677
  let _ = c.exec(r);
11679
11678
  if (this.resumingScanAtSamePosition() && !(_ && _.index === this.lastIndex)) {
11680
- const d = this.getMatcher(0);
11681
- d.lastIndex = this.lastIndex + 1, _ = d.exec(r);
11679
+ const p = this.getMatcher(0);
11680
+ p.lastIndex = this.lastIndex + 1, _ = p.exec(r);
11682
11681
  }
11683
11682
  return _ && (this.regexIndex += _.position + 1, this.regexIndex === this.count && this.considerAll()), _;
11684
11683
  }
@@ -11700,24 +11699,24 @@ function cg(e) {
11700
11699
  Qh,
11701
11700
  lg,
11702
11701
  eg
11703
- ].forEach((d) => d(a, r)), e.compilerExtensions.forEach((d) => d(a, r)), a.__beforeBegin = null, [
11702
+ ].forEach((p) => p(a, r)), e.compilerExtensions.forEach((p) => p(a, r)), a.__beforeBegin = null, [
11704
11703
  Jh,
11705
11704
  // do this later so compiler extensions that come earlier have access to the
11706
11705
  // raw array if they wanted to perhaps manipulate it, etc.
11707
11706
  qh,
11708
11707
  // default to 1 relevance if not specified
11709
11708
  Zh
11710
- ].forEach((d) => d(a, r)), a.isCompiled = !0;
11709
+ ].forEach((p) => p(a, r)), a.isCompiled = !0;
11711
11710
  let _ = null;
11712
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(
11713
11712
  /** @type {RegExp | string} */
11714
11713
  a.illegal
11715
- )), a.contains || (a.contains = []), a.contains = [].concat(...a.contains.map(function(d) {
11716
- return ug(d === "self" ? a : d);
11717
- })), a.contains.forEach(function(d) {
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) {
11718
11717
  s(
11719
11718
  /** @type Mode */
11720
- d,
11719
+ p,
11721
11720
  c
11722
11721
  );
11723
11722
  }), a.starts && s(a.starts, r), c.matcher = i(c), c;
@@ -11767,12 +11766,12 @@ const ei = fr, Js = Tt, qs = Symbol("nomatch"), dg = 7, Ir = function(e) {
11767
11766
  A += h.parentNode ? h.parentNode.className : "";
11768
11767
  const D = r.languageDetectRe.exec(A);
11769
11768
  if (D) {
11770
- const Y = N(D[1]);
11769
+ const Y = L(D[1]);
11771
11770
  return Y || (zs(s.replace("{}", D[1])), zs("Falling back to no-highlight mode for this block.", h)), Y ? D[1] : "no-highlight";
11772
11771
  }
11773
- return A.split(/\s+/).find((Y) => c(Y) || N(Y));
11772
+ return A.split(/\s+/).find((Y) => c(Y) || L(Y));
11774
11773
  }
11775
- function d(h, A, D) {
11774
+ function p(h, A, D) {
11776
11775
  let Y = "", se = "";
11777
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.
11778
11777
  https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D === void 0 && (D = !0);
@@ -11780,11 +11779,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
11780
11779
  code: Y,
11781
11780
  language: se
11782
11781
  };
11783
- G("before:highlight", Ie);
11784
- const Ve = Ie.result ? Ie.result : p(Ie.language, Ie.code, D);
11785
- return Ve.code = Ie.code, G("after:highlight", Ve), Ve;
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;
11786
11785
  }
11787
- function p(h, A, D, Y) {
11786
+ function d(h, A, D, Y) {
11788
11787
  const se = /* @__PURE__ */ Object.create(null);
11789
11788
  function Ie(m, y) {
11790
11789
  return m.keywords[y];
@@ -11822,7 +11821,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
11822
11821
  me.addText(oe);
11823
11822
  return;
11824
11823
  }
11825
- m = p(P.subLanguage, oe, !0, ji[P.subLanguage]), ji[P.subLanguage] = /** @type {CompiledMode} */
11824
+ m = d(P.subLanguage, oe, !0, ji[P.subLanguage]), ji[P.subLanguage] = /** @type {CompiledMode} */
11826
11825
  m._top;
11827
11826
  } else
11828
11827
  m = g(oe, P.subLanguage.length ? P.subLanguage : null);
@@ -11920,7 +11919,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
11920
11919
  throw new Error("potential infinite loop, way more iterations than matches");
11921
11920
  return oe += x, x.length;
11922
11921
  }
11923
- const je = N(h);
11922
+ const je = L(h);
11924
11923
  if (!je)
11925
11924
  throw Lt(s.replace("{}", h)), new Error('Unknown language: "' + h + '"');
11926
11925
  const Rr = cg(je);
@@ -11990,16 +11989,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
11990
11989
  }
11991
11990
  function g(h, A) {
11992
11991
  A = A || r.languages || Object.keys(t);
11993
- const D = f(h), Y = A.filter(N).filter(ne).map(
11994
- (Re) => p(Re, h, !1)
11992
+ const D = f(h), Y = A.filter(L).filter(ne).map(
11993
+ (Re) => d(Re, h, !1)
11995
11994
  );
11996
11995
  Y.unshift(D);
11997
11996
  const se = Y.sort((Re, Ge) => {
11998
11997
  if (Re.relevance !== Ge.relevance) return Ge.relevance - Re.relevance;
11999
11998
  if (Re.language && Ge.language) {
12000
- if (N(Re.language).supersetOf === Ge.language)
11999
+ if (L(Re.language).supersetOf === Ge.language)
12001
12000
  return 1;
12002
- if (N(Ge.language).supersetOf === Re.language)
12001
+ if (L(Ge.language).supersetOf === Re.language)
12003
12002
  return -1;
12004
12003
  }
12005
12004
  return 0;
@@ -12014,7 +12013,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
12014
12013
  let A = null;
12015
12014
  const D = _(h);
12016
12015
  if (c(D)) return;
12017
- if (G(
12016
+ if (z(
12018
12017
  "before:highlightElement",
12019
12018
  { el: h, language: D }
12020
12019
  ), h.dataset.highlighted) {
@@ -12027,7 +12026,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
12027
12026
  h.innerHTML
12028
12027
  );
12029
12028
  A = h;
12030
- const Y = A.textContent, se = D ? d(Y, { language: D, ignoreIllegals: !0 }) : g(Y);
12029
+ const Y = A.textContent, se = D ? p(Y, { language: D, ignoreIllegals: !0 }) : g(Y);
12031
12030
  h.innerHTML = se.value, h.dataset.highlighted = "yes", b(h, D, se.language), h.result = {
12032
12031
  language: se.language,
12033
12032
  // TODO: remove with version 11.0
@@ -12036,12 +12035,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
12036
12035
  }, se.secondBest && (h.secondBest = {
12037
12036
  language: se.secondBest.language,
12038
12037
  relevance: se.secondBest.relevance
12039
- }), G("after:highlightElement", { el: h, result: se, text: Y });
12038
+ }), z("after:highlightElement", { el: h, result: se, text: Y });
12040
12039
  }
12041
- function S(h) {
12040
+ function C(h) {
12042
12041
  r = Js(r, h);
12043
12042
  }
12044
- const C = () => {
12043
+ const S = () => {
12045
12044
  te(), Ft("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
12046
12045
  };
12047
12046
  function F() {
@@ -12055,10 +12054,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
12055
12054
  }
12056
12055
  document.querySelectorAll(r.cssSelector).forEach(E);
12057
12056
  }
12058
- function j() {
12057
+ function G() {
12059
12058
  H && te();
12060
12059
  }
12061
- typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", j, !1);
12060
+ typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", G, !1);
12062
12061
  function _e(h, A) {
12063
12062
  let D = null;
12064
12063
  try {
@@ -12070,29 +12069,29 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
12070
12069
  throw Y;
12071
12070
  D = a;
12072
12071
  }
12073
- D.name || (D.name = h), t[h] = D, D.rawDefinition = A.bind(null, e), D.aliases && W(D.aliases, { languageName: h });
12072
+ D.name || (D.name = h), t[h] = D, D.rawDefinition = A.bind(null, e), D.aliases && X(D.aliases, { languageName: h });
12074
12073
  }
12075
- function Se(h) {
12074
+ function Be(h) {
12076
12075
  delete t[h];
12077
12076
  for (const A of Object.keys(n))
12078
12077
  n[A] === h && delete n[A];
12079
12078
  }
12080
- function L() {
12079
+ function N() {
12081
12080
  return Object.keys(t);
12082
12081
  }
12083
- function N(h) {
12082
+ function L(h) {
12084
12083
  return h = (h || "").toLowerCase(), t[h] || t[n[h]];
12085
12084
  }
12086
- function W(h, { languageName: A }) {
12085
+ function X(h, { languageName: A }) {
12087
12086
  typeof h == "string" && (h = [h]), h.forEach((D) => {
12088
12087
  n[D.toLowerCase()] = A;
12089
12088
  });
12090
12089
  }
12091
12090
  function ne(h) {
12092
- const A = N(h);
12091
+ const A = L(h);
12093
12092
  return A && !A.disableAutodetect;
12094
12093
  }
12095
- function X(h) {
12094
+ function j(h) {
12096
12095
  h["before:highlightBlock"] && !h["before:highlightElement"] && (h["before:highlightElement"] = (A) => {
12097
12096
  h["before:highlightBlock"](
12098
12097
  Object.assign({ block: A.el }, A)
@@ -12103,41 +12102,41 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D ===
12103
12102
  );
12104
12103
  });
12105
12104
  }
12106
- function Q(h) {
12107
- X(h), o.push(h);
12105
+ function k(h) {
12106
+ j(h), o.push(h);
12108
12107
  }
12109
- function R(h) {
12108
+ function q(h) {
12110
12109
  const A = o.indexOf(h);
12111
12110
  A !== -1 && o.splice(A, 1);
12112
12111
  }
12113
- function G(h, A) {
12112
+ function z(h, A) {
12114
12113
  const D = h;
12115
12114
  o.forEach(function(Y) {
12116
12115
  Y[D] && Y[D](A);
12117
12116
  });
12118
12117
  }
12119
- function fe(h) {
12118
+ function pe(h) {
12120
12119
  return Ft("10.7.0", "highlightBlock will be removed entirely in v12.0"), Ft("10.7.0", "Please use highlightElement now."), E(h);
12121
12120
  }
12122
12121
  Object.assign(e, {
12123
- highlight: d,
12122
+ highlight: p,
12124
12123
  highlightAuto: g,
12125
12124
  highlightAll: te,
12126
12125
  highlightElement: E,
12127
12126
  // TODO: Remove with v12 API
12128
- highlightBlock: fe,
12129
- configure: S,
12130
- initHighlighting: C,
12127
+ highlightBlock: pe,
12128
+ configure: C,
12129
+ initHighlighting: S,
12131
12130
  initHighlightingOnLoad: F,
12132
12131
  registerLanguage: _e,
12133
- unregisterLanguage: Se,
12134
- listLanguages: L,
12135
- getLanguage: N,
12136
- registerAliases: W,
12132
+ unregisterLanguage: Be,
12133
+ listLanguages: N,
12134
+ getLanguage: L,
12135
+ registerAliases: X,
12137
12136
  autoDetection: ne,
12138
12137
  inherit: Js,
12139
- addPlugin: Q,
12140
- removePlugin: R
12138
+ addPlugin: k,
12139
+ removePlugin: q
12141
12140
  }), e.debugMode = function() {
12142
12141
  i = !1;
12143
12142
  }, e.safeMode = function() {
@@ -12346,12 +12345,12 @@ function Eg(e) {
12346
12345
  literal: gg,
12347
12346
  built_in: mg,
12348
12347
  "variable.language": Tg
12349
- }, c = "[0-9](_?[0-9])*", _ = `\\.(${c})`, d = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", p = {
12348
+ }, c = "[0-9](_?[0-9])*", _ = `\\.(${c})`, p = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", d = {
12350
12349
  className: "number",
12351
12350
  variants: [
12352
12351
  // DecimalLiteral
12353
- { begin: `(\\b(${d})((${_})|\\.)?|(${_}))[eE][+-]?(${c})\\b` },
12354
- { begin: `\\b(${d})\\b((${_})\\b|\\.)?|(${_})\\b` },
12352
+ { begin: `(\\b(${p})((${_})|\\.)?|(${_}))[eE][+-]?(${c})\\b` },
12353
+ { begin: `\\b(${p})\\b((${_})\\b|\\.)?|(${_})\\b` },
12355
12354
  // DecimalBigIntegerLiteral
12356
12355
  { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
12357
12356
  // NonDecimalIntegerLiteral
@@ -12406,7 +12405,7 @@ function Eg(e) {
12406
12405
  ],
12407
12406
  subLanguage: "graphql"
12408
12407
  }
12409
- }, S = {
12408
+ }, C = {
12410
12409
  className: "string",
12411
12410
  begin: "`",
12412
12411
  end: "`",
@@ -12465,10 +12464,10 @@ function Eg(e) {
12465
12464
  g,
12466
12465
  b,
12467
12466
  E,
12468
- S,
12467
+ C,
12469
12468
  // Skip numbers when they are part of a variable name
12470
12469
  { match: /\$\d+/ },
12471
- p
12470
+ d
12472
12471
  // This is intentional:
12473
12472
  // See https://github.com/highlightjs/highlight.js/issues/3288
12474
12473
  // hljs.REGEXP_MODE
@@ -12483,7 +12482,7 @@ function Eg(e) {
12483
12482
  "self"
12484
12483
  ].concat(H)
12485
12484
  });
12486
- const te = [].concat(F, f.contains), j = te.concat([
12485
+ const te = [].concat(F, f.contains), G = te.concat([
12487
12486
  // eat recursive parens in sub expressions
12488
12487
  {
12489
12488
  begin: /(\s*)\(/,
@@ -12500,8 +12499,8 @@ function Eg(e) {
12500
12499
  excludeBegin: !0,
12501
12500
  excludeEnd: !0,
12502
12501
  keywords: r,
12503
- contains: j
12504
- }, Se = {
12502
+ contains: G
12503
+ }, Be = {
12505
12504
  variants: [
12506
12505
  // class Car extends vehicle
12507
12506
  {
@@ -12534,7 +12533,7 @@ function Eg(e) {
12534
12533
  }
12535
12534
  }
12536
12535
  ]
12537
- }, L = {
12536
+ }, N = {
12538
12537
  relevance: 0,
12539
12538
  match: t.either(
12540
12539
  // Hard coded exceptions
@@ -12558,12 +12557,12 @@ function Eg(e) {
12558
12557
  ...Cr
12559
12558
  ]
12560
12559
  }
12561
- }, N = {
12560
+ }, L = {
12562
12561
  label: "use_strict",
12563
12562
  className: "meta",
12564
12563
  relevance: 10,
12565
12564
  begin: /^\s*['"]use (strict|asm)['"]/
12566
- }, W = {
12565
+ }, X = {
12567
12566
  variants: [
12568
12567
  {
12569
12568
  match: [
@@ -12593,13 +12592,13 @@ function Eg(e) {
12593
12592
  match: /\b[A-Z][A-Z_0-9]+\b/,
12594
12593
  className: "variable.constant"
12595
12594
  };
12596
- function X(A) {
12595
+ function j(A) {
12597
12596
  return t.concat("(?!", A.join("|"), ")");
12598
12597
  }
12599
- const Q = {
12598
+ const k = {
12600
12599
  match: t.concat(
12601
12600
  /\b/,
12602
- X([
12601
+ j([
12603
12602
  ...Sr,
12604
12603
  "super",
12605
12604
  "import"
@@ -12609,7 +12608,7 @@ function Eg(e) {
12609
12608
  ),
12610
12609
  className: "title.function",
12611
12610
  relevance: 0
12612
- }, R = {
12611
+ }, q = {
12613
12612
  begin: t.concat(/\./, t.lookahead(
12614
12613
  t.concat(o, /(?![0-9A-Za-z$_(])/)
12615
12614
  )),
@@ -12618,7 +12617,7 @@ function Eg(e) {
12618
12617
  keywords: "prototype",
12619
12618
  className: "property",
12620
12619
  relevance: 0
12621
- }, G = {
12620
+ }, z = {
12622
12621
  match: [
12623
12622
  /get|set/,
12624
12623
  /\s+/,
@@ -12636,7 +12635,7 @@ function Eg(e) {
12636
12635
  },
12637
12636
  _e
12638
12637
  ]
12639
- }, fe = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", h = {
12638
+ }, pe = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", h = {
12640
12639
  match: [
12641
12640
  /const|var|let/,
12642
12641
  /\s+/,
@@ -12645,7 +12644,7 @@ function Eg(e) {
12645
12644
  /=\s*/,
12646
12645
  /(async\s*)?/,
12647
12646
  // async is optional
12648
- t.lookahead(fe)
12647
+ t.lookahead(pe)
12649
12648
  ],
12650
12649
  keywords: "async",
12651
12650
  className: {
@@ -12661,7 +12660,7 @@ function Eg(e) {
12661
12660
  aliases: ["js", "jsx", "mjs", "cjs"],
12662
12661
  keywords: r,
12663
12662
  // this will be extended by TypeScript
12664
- exports: { PARAMS_CONTAINS: j, CLASS_REFERENCE: L },
12663
+ exports: { PARAMS_CONTAINS: G, CLASS_REFERENCE: N },
12665
12664
  illegal: /#(?![$_A-z])/,
12666
12665
  contains: [
12667
12666
  e.SHEBANG({
@@ -12669,18 +12668,18 @@ function Eg(e) {
12669
12668
  binary: "node",
12670
12669
  relevance: 5
12671
12670
  }),
12672
- N,
12671
+ L,
12673
12672
  e.APOS_STRING_MODE,
12674
12673
  e.QUOTE_STRING_MODE,
12675
12674
  g,
12676
12675
  b,
12677
12676
  E,
12678
- S,
12677
+ C,
12679
12678
  F,
12680
12679
  // Skip numbers when they are part of a variable name
12681
12680
  { match: /\$\d+/ },
12682
- p,
12683
- L,
12681
+ d,
12682
+ N,
12684
12683
  {
12685
12684
  className: "attr",
12686
12685
  begin: o + t.lookahead(":"),
@@ -12700,7 +12699,7 @@ function Eg(e) {
12700
12699
  // we have to count the parens to make sure we actually have the
12701
12700
  // correct bounding ( ) before the =>. There could be any number of
12702
12701
  // sub-expressions inside also surrounded by parens.
12703
- begin: fe,
12702
+ begin: pe,
12704
12703
  returnBegin: !0,
12705
12704
  end: "\\s*=>",
12706
12705
  contains: [
@@ -12722,7 +12721,7 @@ function Eg(e) {
12722
12721
  excludeBegin: !0,
12723
12722
  excludeEnd: !0,
12724
12723
  keywords: r,
12725
- contains: j
12724
+ contains: G
12726
12725
  }
12727
12726
  ]
12728
12727
  }
@@ -12762,7 +12761,7 @@ function Eg(e) {
12762
12761
  }
12763
12762
  ]
12764
12763
  },
12765
- W,
12764
+ X,
12766
12765
  {
12767
12766
  // prevent this from getting swallowed up by function
12768
12767
  // since they appear "function like"
@@ -12786,7 +12785,7 @@ function Eg(e) {
12786
12785
  match: /\.\.\./,
12787
12786
  relevance: 0
12788
12787
  },
12789
- R,
12788
+ q,
12790
12789
  // hack: prevents detection of keywords in some circumstances
12791
12790
  // .keyword()
12792
12791
  // $keyword = x
@@ -12799,10 +12798,10 @@ function Eg(e) {
12799
12798
  className: { 1: "title.function" },
12800
12799
  contains: [_e]
12801
12800
  },
12802
- Q,
12801
+ k,
12803
12802
  ne,
12804
- Se,
12805
- G,
12803
+ Be,
12804
+ z,
12806
12805
  {
12807
12806
  match: /\$[(.]/
12808
12807
  // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
@@ -12877,30 +12876,30 @@ const vg = /* @__PURE__ */ Qe({
12877
12876
  }), r = (_) => {
12878
12877
  s.value = _.code;
12879
12878
  }, { open: c } = po("sourceDlg", r);
12880
- return (_, d) => {
12881
- const p = Ae("v-sheet"), f = Ae("v-icon"), g = Ae("v-spacer"), b = Ae("v-dialog");
12879
+ return (_, p) => {
12880
+ const d = Ae("v-sheet"), f = Ae("v-icon"), g = Ae("v-spacer"), b = Ae("v-dialog");
12882
12881
  return he(), $e(b, {
12883
12882
  modelValue: w(c),
12884
- "onUpdate:modelValue": d[1] || (d[1] = (E) => an(c) ? c.value = E : null),
12883
+ "onUpdate:modelValue": p[1] || (p[1] = (E) => an(c) ? c.value = E : null),
12885
12884
  transition: "fade-transition",
12886
12885
  persistent: "",
12887
12886
  "no-click-animation": "",
12888
12887
  fullscreen: "",
12889
- onKeydown: d[2] || (d[2] = ta(rn((E) => c.value = !1, ["stop", "prevent"]), ["esc"]))
12888
+ onKeydown: p[2] || (p[2] = ta(rn((E) => c.value = !1, ["stop", "prevent"]), ["esc"]))
12890
12889
  }, {
12891
12890
  default: Xe(() => [
12892
- ge(p, {
12891
+ ge(d, {
12893
12892
  color: w(o),
12894
12893
  width: "100%",
12895
12894
  height: "100%"
12896
12895
  }, {
12897
12896
  default: Xe(() => [
12898
- w(n) ? (he(), $e(p, {
12897
+ w(n) ? (he(), $e(d, {
12899
12898
  key: 0,
12900
12899
  color: w(i),
12901
12900
  height: 24
12902
12901
  }, null, 8, ["color"])) : Gt("", !0),
12903
- ge(p, {
12902
+ ge(d, {
12904
12903
  class: "d-flex align-center px-3",
12905
12904
  color: w(i),
12906
12905
  height: 48
@@ -12908,7 +12907,7 @@ const vg = /* @__PURE__ */ Qe({
12908
12907
  default: Xe(() => [
12909
12908
  ge(f, {
12910
12909
  icon: w(Ga),
12911
- onClick: d[0] || (d[0] = (E) => c.value = !1)
12910
+ onClick: p[0] || (p[0] = (E) => c.value = !1)
12912
12911
  }, null, 8, ["icon"]),
12913
12912
  He("span", bg, lo(w(t)("x-block-lib.dlg.source.title")), 1),
12914
12913
  ge(g)
@@ -12931,15 +12930,15 @@ const vg = /* @__PURE__ */ Qe({
12931
12930
  }), Ig = (e) => {
12932
12931
  e.component("XBlockly", vh), e.component("XSourceDlg", Og);
12933
12932
  };
12934
- async function Mg(e) {
12933
+ async function Dg(e) {
12935
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;
12936
12935
  }
12937
- const Pg = { install: Ig };
12936
+ const Mg = { install: Ig };
12938
12937
  export {
12939
12938
  vh as XBlockly,
12940
- q as blocklyState,
12941
- Dg as buildProps,
12942
- Pg as default,
12939
+ Q as blocklyState,
12940
+ Rg as buildProps,
12941
+ Mg as default,
12943
12942
  Op as initApp,
12944
12943
  Ip as initBase,
12945
12944
  yp as initCompute,
@@ -12947,5 +12946,5 @@ export {
12947
12946
  Sp as initResource,
12948
12947
  Lp as initRuntime,
12949
12948
  Ig as install,
12950
- Mg as loadLocaleMessageBlock
12949
+ Dg as loadLocaleMessageBlock
12951
12950
  };