x-block-lib 0.5.2 → 0.5.3

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.
@@ -74,6 +74,7 @@ declare const _default: {
74
74
  LABEL_TABLE: string;
75
75
  LABEL_TEXT: string;
76
76
  LABEL_VARIABLE: string;
77
+ METHOD_ADD: string;
77
78
  PARAM_DATA: string;
78
79
  PARAM_EXTRA_DATA: string;
79
80
  PARAM_IS_DARK_MODE: string;
@@ -408,6 +409,9 @@ declare const _default: {
408
409
  UI_V1_APP_ENV_TITLE: string;
409
410
  UI_V1_APP_ENV_TOOLTIP: string;
410
411
  UI_V1_APP_ENV_HELPURL: string;
412
+ UI_V1_CALL_NODE_METHOD_TITLE: string;
413
+ UI_V1_CALL_NODE_METHOD_TOOLTIP: string;
414
+ UI_V1_CALL_NODE_METHOD_HELPURL: string;
411
415
  UI_V1_GET_NODE_TITLE: string;
412
416
  UI_V1_GET_NODE_TOOLTIP: string;
413
417
  UI_V1_GET_NODE_HELPURL: string;
@@ -74,6 +74,7 @@ declare const _default: {
74
74
  LABEL_TABLE: string;
75
75
  LABEL_TEXT: string;
76
76
  LABEL_VARIABLE: string;
77
+ METHOD_ADD: string;
77
78
  PARAM_DATA: string;
78
79
  PARAM_EXTRA_DATA: string;
79
80
  PARAM_IS_DARK_MODE: string;
@@ -408,6 +409,9 @@ declare const _default: {
408
409
  UI_V1_APP_ENV_TITLE: string;
409
410
  UI_V1_APP_ENV_TOOLTIP: string;
410
411
  UI_V1_APP_ENV_HELPURL: string;
412
+ UI_V1_CALL_NODE_METHOD_TITLE: string;
413
+ UI_V1_CALL_NODE_METHOD_TOOLTIP: string;
414
+ UI_V1_CALL_NODE_METHOD_HELPURL: string;
411
415
  UI_V1_GET_NODE_TITLE: string;
412
416
  UI_V1_GET_NODE_TOOLTIP: string;
413
417
  UI_V1_GET_NODE_HELPURL: string;
package/dist/index.js CHANGED
@@ -7,11 +7,11 @@
7
7
  License: see project LICENSE
8
8
  Touched: 2021
9
9
  */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
- var Dr = Object.defineProperty;
11
- var Pr = (e, t, n) => t in e ? Dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
10
+ var Mr = Object.defineProperty;
11
+ var Pr = (e, t, n) => t in e ? Mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
12
12
  var Fe = (e, t, n) => Pr(e, typeof t != "symbol" ? t + "" : t, n);
13
13
  import { getCurrentScope as xr, onScopeDispose as Ur, 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 wr, reactive as Vr, h as ni, onUnmounted as Fr, nextTick as vi, isRef as an, resolveDirective as Yr, withDirectives as Kr, createElementBlock as mt, normalizeStyle as ot, createElementVNode as He, toDisplayString as lo, withModifiers as rn, Fragment as ea, renderList as Hr, withKeys as ta, createCommentVNode as Gt, mergeModels as Wi } from "vue";
14
- import { d as O, j as l, O as u, M as v, u as I, X as $r, 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 Gr, P as oi, N as bi, V as wn, g as Et, f as jr, h as oa, s as Wr, S as ye, k as Mo, l as Yt, m as Ln, n as Do, o as Zt, p as St, q as Xi, G as Po, r as Xr, t as zr, v as xo, U as Nn, D as kn, w as xt, x as Jr, T as uo, y as ia, z as qr, A as Qr, H as Zr, I as zi, J as el } from "./blockly-cc5ny7z2.js";
14
+ import { d as O, j as l, O as u, M as v, u as I, X as $r, 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 Gr, P as oi, N as bi, V as wn, g as Et, f as jr, h as oa, s as Wr, 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 Xr, t as zr, v as xo, U as Nn, D as kn, w as xt, x as Jr, T as uo, y as ia, z as qr, A as Qr, H as Zr, I as zi, J as el } from "./blockly-cc5ny7z2.js";
15
15
  import { storeToRefs as tl } from "pinia";
16
16
  import { openConfirmDlg as nl, openPromptDlg as ol, eventBus as We, messageWarning as sa, useColor as _o, useViewStack as po, useSystem as aa, useGlobalStore as il } from "x-essential-lib";
17
17
  import { elements as Je, getPropTag as ra } from "x-runtime-lib";
@@ -408,23 +408,23 @@ function Rt(e) {
408
408
  }
409
409
  return "";
410
410
  }
411
- var Ml = /[\\^$.*+?()[\]{}|]/g, Dl = /^\[object .+?Constructor\]$/, Pl = Function.prototype, xl = Object.prototype, Ul = Pl.toString, wl = xl.hasOwnProperty, Vl = RegExp(
412
- "^" + Ul.call(wl).replace(Ml, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
411
+ var Dl = /[\\^$.*+?()[\]{}|]/g, Ml = /^\[object .+?Constructor\]$/, Pl = Function.prototype, xl = Object.prototype, Ul = Pl.toString, wl = xl.hasOwnProperty, Vl = RegExp(
412
+ "^" + Ul.call(wl).replace(Dl, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
413
413
  );
414
414
  function Fl(e) {
415
415
  if (!vn(e) || kl(e))
416
416
  return !1;
417
- var t = ua(e) ? Vl : Dl;
417
+ var t = ua(e) ? Vl : Ml;
418
418
  return t.test(Rt(e));
419
419
  }
420
420
  function Yl(e, t) {
421
421
  return e == null ? void 0 : e[t];
422
422
  }
423
- function Mt(e, t) {
423
+ function Dt(e, t) {
424
424
  var n = Yl(e, t);
425
425
  return Fl(n) ? n : void 0;
426
426
  }
427
- var ii = Mt(et, "WeakMap"), Zi = Object.create, Kl = /* @__PURE__ */ function() {
427
+ var ii = Dt(et, "WeakMap"), Zi = Object.create, Kl = /* @__PURE__ */ function() {
428
428
  function e() {
429
429
  }
430
430
  return function(t) {
@@ -445,7 +445,7 @@ function Hl(e, t) {
445
445
  }
446
446
  var es = function() {
447
447
  try {
448
- var e = Mt(Object, "defineProperty");
448
+ var e = Dt(Object, "defineProperty");
449
449
  return e({}, "", {}), e;
450
450
  } catch {
451
451
  }
@@ -547,10 +547,10 @@ function Ea(e, t) {
547
547
  return e(t(n));
548
548
  };
549
549
  }
550
- var Mc = Ea(Object.keys, Object), Dc = Object.prototype, Pc = Dc.hasOwnProperty;
550
+ var Dc = Ea(Object.keys, Object), Mc = Object.prototype, Pc = Mc.hasOwnProperty;
551
551
  function Aa(e) {
552
552
  if (!ho(e))
553
- return Mc(e);
553
+ return Dc(e);
554
554
  var t = [];
555
555
  for (var n in Object(e))
556
556
  Pc.call(e, n) && n != "constructor" && t.push(n);
@@ -578,7 +578,7 @@ function Vc(e) {
578
578
  function Ni(e) {
579
579
  return yi(e) ? ma(e, !0) : Vc(e);
580
580
  }
581
- var hn = Mt(Object, "create");
581
+ var hn = Dt(Object, "create");
582
582
  function Fc() {
583
583
  this.__data__ = hn ? hn(null) : {}, this.size = 0;
584
584
  }
@@ -657,7 +657,7 @@ ct.prototype.delete = eu;
657
657
  ct.prototype.get = tu;
658
658
  ct.prototype.has = nu;
659
659
  ct.prototype.set = ou;
660
- var gn = Mt(et, "Map");
660
+ var gn = Dt(et, "Map");
661
661
  function iu() {
662
662
  this.size = 0, this.__data__ = {
663
663
  hash: new kt(),
@@ -687,18 +687,18 @@ function cu(e, t) {
687
687
  var n = To(this, e), o = n.size;
688
688
  return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
689
689
  }
690
- function Dt(e) {
690
+ function Mt(e) {
691
691
  var t = -1, n = e == null ? 0 : e.length;
692
692
  for (this.clear(); ++t < n; ) {
693
693
  var o = e[t];
694
694
  this.set(o[0], o[1]);
695
695
  }
696
696
  }
697
- Dt.prototype.clear = iu;
698
- Dt.prototype.delete = au;
699
- Dt.prototype.get = ru;
700
- Dt.prototype.has = lu;
701
- Dt.prototype.set = cu;
697
+ Mt.prototype.clear = iu;
698
+ Mt.prototype.delete = au;
699
+ Mt.prototype.get = ru;
700
+ Mt.prototype.has = lu;
701
+ Mt.prototype.set = cu;
702
702
  function va(e, t) {
703
703
  for (var n = -1, o = t.length, i = e.length; ++n < o; )
704
704
  e[i + n] = t[n];
@@ -725,7 +725,7 @@ function hu(e, t) {
725
725
  var o = n.__data__;
726
726
  if (!gn || o.length < fu - 1)
727
727
  return o.push([e, t]), this.size = ++n.size, this;
728
- n = this.__data__ = new Dt(o);
728
+ n = this.__data__ = new Mt(o);
729
729
  }
730
730
  return n.set(e, t), this.size = n.size, this;
731
731
  }
@@ -787,7 +787,7 @@ function si(e) {
787
787
  function Cu(e) {
788
788
  return Ca(e, Ni, ya);
789
789
  }
790
- var ai = Mt(et, "DataView"), ri = Mt(et, "Promise"), li = Mt(et, "Set"), cs = "[object Map]", Su = "[object Object]", us = "[object Promise]", _s = "[object Set]", ps = "[object WeakMap]", ds = "[object DataView]", Lu = Rt(ai), Nu = Rt(gn), ku = Rt(ri), Bu = Rt(li), Ru = Rt(ii), we = An;
790
+ var ai = Dt(et, "DataView"), ri = Dt(et, "Promise"), li = Dt(et, "Set"), cs = "[object Map]", Su = "[object Object]", us = "[object Promise]", _s = "[object Set]", ps = "[object WeakMap]", ds = "[object DataView]", Lu = Rt(ai), Nu = Rt(gn), ku = Rt(ri), Bu = Rt(li), Ru = Rt(ii), we = An;
791
791
  (ai && we(new ai(new ArrayBuffer(1))) != ds || gn && we(new gn()) != cs || ri && we(ri.resolve()) != us || li && we(new li()) != _s || ii && we(new ii()) != ps) && (we = function(e) {
792
792
  var t = An(e), n = t == Su ? e.constructor : void 0, o = n ? Rt(n) : "";
793
793
  if (o)
@@ -805,10 +805,10 @@ var ai = Mt(et, "DataView"), ri = Mt(et, "Promise"), li = Mt(et, "Set"), cs = "[
805
805
  }
806
806
  return t;
807
807
  });
808
- var Mu = Object.prototype, Du = Mu.hasOwnProperty;
808
+ var Du = Object.prototype, Mu = Du.hasOwnProperty;
809
809
  function Pu(e) {
810
810
  var t = e.length, n = new e.constructor(t);
811
- return t && typeof e[0] == "string" && Du.call(e, "index") && (n.index = e.index, n.input = e.input), n;
811
+ return t && typeof e[0] == "string" && Mu.call(e, "index") && (n.index = e.index, n.input = e.input), n;
812
812
  }
813
813
  var Xn = et.Uint8Array;
814
814
  function Bi(e) {
@@ -877,8 +877,8 @@ var gs = zt && zt.isMap, u_ = gs ? Ci(gs) : c_, __ = "[object Set]";
877
877
  function p_(e) {
878
878
  return Nt(e) && we(e) == __;
879
879
  }
880
- var Ts = zt && zt.isSet, d_ = Ts ? Ci(Ts) : p_, f_ = 1, h_ = 2, g_ = 4, Sa = "[object Arguments]", T_ = "[object Array]", m_ = "[object Boolean]", E_ = "[object Date]", A_ = "[object Error]", La = "[object Function]", v_ = "[object GeneratorFunction]", b_ = "[object Map]", O_ = "[object Number]", Na = "[object Object]", I_ = "[object RegExp]", y_ = "[object Set]", C_ = "[object String]", S_ = "[object Symbol]", L_ = "[object WeakMap]", N_ = "[object ArrayBuffer]", k_ = "[object DataView]", B_ = "[object Float32Array]", R_ = "[object Float64Array]", M_ = "[object Int8Array]", D_ = "[object Int16Array]", P_ = "[object Int32Array]", x_ = "[object Uint8Array]", U_ = "[object Uint8ClampedArray]", w_ = "[object Uint16Array]", V_ = "[object Uint32Array]", Z = {};
881
- Z[Sa] = Z[T_] = Z[N_] = Z[k_] = Z[m_] = Z[E_] = Z[B_] = Z[R_] = Z[M_] = Z[D_] = Z[P_] = Z[b_] = Z[O_] = Z[Na] = Z[I_] = Z[y_] = Z[C_] = Z[S_] = Z[x_] = Z[U_] = Z[w_] = Z[V_] = !0;
880
+ var Ts = zt && zt.isSet, d_ = Ts ? Ci(Ts) : p_, f_ = 1, h_ = 2, g_ = 4, Sa = "[object Arguments]", T_ = "[object Array]", m_ = "[object Boolean]", E_ = "[object Date]", A_ = "[object Error]", La = "[object Function]", v_ = "[object GeneratorFunction]", b_ = "[object Map]", O_ = "[object Number]", Na = "[object Object]", I_ = "[object RegExp]", y_ = "[object Set]", C_ = "[object String]", S_ = "[object Symbol]", L_ = "[object WeakMap]", N_ = "[object ArrayBuffer]", k_ = "[object DataView]", B_ = "[object Float32Array]", R_ = "[object Float64Array]", D_ = "[object Int8Array]", M_ = "[object Int16Array]", P_ = "[object Int32Array]", x_ = "[object Uint8Array]", U_ = "[object Uint8ClampedArray]", w_ = "[object Uint16Array]", V_ = "[object Uint32Array]", Z = {};
881
+ Z[Sa] = Z[T_] = Z[N_] = Z[k_] = Z[m_] = Z[E_] = Z[B_] = Z[R_] = Z[D_] = Z[M_] = Z[P_] = Z[b_] = Z[O_] = Z[Na] = Z[I_] = Z[y_] = Z[C_] = Z[S_] = Z[x_] = Z[U_] = Z[w_] = Z[V_] = !0;
882
882
  Z[A_] = Z[La] = Z[L_] = !1;
883
883
  function Vn(e, t, n, o, i, s) {
884
884
  var a, r = t & f_, c = t & h_, _ = t & g_;
@@ -930,7 +930,7 @@ function G_(e) {
930
930
  }
931
931
  function zn(e) {
932
932
  var t = -1, n = e == null ? 0 : e.length;
933
- for (this.__data__ = new Dt(); ++t < n; )
933
+ for (this.__data__ = new Mt(); ++t < n; )
934
934
  this.add(e[t]);
935
935
  }
936
936
  zn.prototype.add = zn.prototype.push = $_;
@@ -1151,7 +1151,7 @@ function Lp() {
1151
1151
  props: {}
1152
1152
  };
1153
1153
  }
1154
- function Mg() {
1154
+ function Dg() {
1155
1155
  const e = {};
1156
1156
  for (const t in Je) {
1157
1157
  const n = {}, o = Je[t];
@@ -1211,13 +1211,13 @@ function Ri() {
1211
1211
  function Ra(e) {
1212
1212
  return q.compute.spaces[e];
1213
1213
  }
1214
- function Ma() {
1214
+ function Da() {
1215
1215
  const e = [];
1216
1216
  return Ri().forEach((n) => {
1217
1217
  e.push([n.name, n.id]);
1218
1218
  }), Be(e);
1219
1219
  }
1220
- function Mi(e) {
1220
+ function Di(e) {
1221
1221
  const { funcs: t } = q.compute, n = [];
1222
1222
  for (const o in t) {
1223
1223
  const i = t[o];
@@ -1225,12 +1225,12 @@ function Mi(e) {
1225
1225
  }
1226
1226
  return n.sort((o, i) => o.sort - i.sort), n;
1227
1227
  }
1228
- function Da(e) {
1228
+ function Ma(e) {
1229
1229
  return q.compute.funcs[e];
1230
1230
  }
1231
1231
  function Pa(e) {
1232
1232
  const t = [];
1233
- return Mi(e).forEach((o) => {
1233
+ return Di(e).forEach((o) => {
1234
1234
  t.push([o.name, o.id]);
1235
1235
  }), Be(t);
1236
1236
  }
@@ -1272,7 +1272,7 @@ const Bp = {
1272
1272
  this.space.id = e.id, this.space.name = e.name;
1273
1273
  const t = this.getField("SPACE");
1274
1274
  t.getOptions(!1), t.setValue(this.space.id);
1275
- const n = (s = Mi(this.space.id)) == null ? void 0 : s[0];
1275
+ const n = (s = Di(this.space.id)) == null ? void 0 : s[0];
1276
1276
  if (!n)
1277
1277
  return;
1278
1278
  this.func.id = n.id, this.func.name = n.name;
@@ -1292,7 +1292,7 @@ const Bp = {
1292
1292
  }, 0);
1293
1293
  },
1294
1294
  genSpaceOpts_: function() {
1295
- return Ma();
1295
+ return Da();
1296
1296
  },
1297
1297
  genFuncOpts_: function() {
1298
1298
  return Pa(this.space.id);
@@ -1357,7 +1357,7 @@ const Bp = {
1357
1357
  return;
1358
1358
  }
1359
1359
  e.name !== this.space.name && (this.space.name = e.name);
1360
- const t = Da(this.func.id);
1360
+ const t = Ma(this.func.id);
1361
1361
  if (!t) {
1362
1362
  this.setWarningText(v.WARN_FUNC_NOT_AVAILABLE);
1363
1363
  return;
@@ -1416,7 +1416,7 @@ const Rp = {
1416
1416
  this.space.id = e.id, this.space.name = e.name;
1417
1417
  const t = this.getField("SPACE");
1418
1418
  t.getOptions(!1), t.setValue(this.space.id);
1419
- const n = (s = Mi(this.space.id)) == null ? void 0 : s[0];
1419
+ const n = (s = Di(this.space.id)) == null ? void 0 : s[0];
1420
1420
  if (!n)
1421
1421
  return;
1422
1422
  this.func.id = n.id, this.func.name = n.name;
@@ -1436,7 +1436,7 @@ const Rp = {
1436
1436
  }, 0);
1437
1437
  },
1438
1438
  genSpaceOpts_: function() {
1439
- return Ma();
1439
+ return Da();
1440
1440
  },
1441
1441
  genFuncOpts_: function() {
1442
1442
  return Pa(this.space.id);
@@ -1501,7 +1501,7 @@ const Rp = {
1501
1501
  return;
1502
1502
  }
1503
1503
  e.name !== this.space.name && (this.space.name = e.name);
1504
- const t = Da(this.func.id);
1504
+ const t = Ma(this.func.id);
1505
1505
  if (!t) {
1506
1506
  this.setWarningText(v.WARN_FUNC_NOT_AVAILABLE);
1507
1507
  return;
@@ -1566,7 +1566,7 @@ l.forBlock.compute_debug_trace_v1 = function(e) {
1566
1566
  return `__debugTraceV1__(${l.valueToCode(e, "OBJECT", u.ATOMIC)});
1567
1567
  `;
1568
1568
  };
1569
- const Mp = {
1569
+ const Dp = {
1570
1570
  init: function() {
1571
1571
  this.func = {
1572
1572
  id: "",
@@ -1623,7 +1623,7 @@ const Mp = {
1623
1623
  this.setWarningText(null);
1624
1624
  }
1625
1625
  };
1626
- U.func_entry_v1 = Mp;
1626
+ U.func_entry_v1 = Dp;
1627
1627
  l.forBlock.func_entry_v1 = function(e) {
1628
1628
  const t = e, n = l.statementToCode(t, "HANDLE"), o = [];
1629
1629
  for (let a = 0; a < t.func.inputs.length; a++) {
@@ -1633,11 +1633,11 @@ l.forBlock.func_entry_v1 = function(e) {
1633
1633
  return `function __funcEntryV1__(${o.join(", ")}) {
1634
1634
  ${n}}`;
1635
1635
  };
1636
- const Dp = {
1636
+ const Mp = {
1637
1637
  init: function() {
1638
1638
  }
1639
1639
  };
1640
- U.on_flow_state_event_v1 = Dp;
1640
+ U.on_flow_state_event_v1 = Mp;
1641
1641
  l.forBlock.on_flow_state_event_v1 = function() {
1642
1642
  return `__onFlowStateEventV1__();
1643
1643
  `;
@@ -5723,7 +5723,7 @@ const Cd = {
5723
5723
  name: "",
5724
5724
  inputs: [],
5725
5725
  outputs: []
5726
- }, this.appendDummyInput("DUMMY").appendField(new ee(() => this.genNodeOpts_()), "NODE").appendField(
5726
+ }, this.appendDummyInput("DUMMY").appendField("%{BKY_UI_V1_CALL_NODE_METHOD_TITLE}").appendField(new ee(() => this.genNodeOpts_()), "NODE").appendField(
5727
5727
  new ee(() => this.genMethodOpts_()),
5728
5728
  "METHOD"
5729
5729
  ), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_CALL_NODE_METHOD_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_CALL_NODE_METHOD_HELPURL}"), this.initData_();
@@ -5983,7 +5983,7 @@ l.forBlock.get_node_prop_v1 = function(e) {
5983
5983
  const t = e, n = l.quote_(t.node.id), o = l.quote_(t.prop.keys);
5984
5984
  return [`__getNodePropV1__(${n}, ${o})`, u.ATOMIC];
5985
5985
  };
5986
- function Di() {
5986
+ function Mi() {
5987
5987
  const { apps: e } = q.app;
5988
5988
  return e;
5989
5989
  }
@@ -5993,7 +5993,7 @@ function Is(e) {
5993
5993
  }
5994
5994
  function Nd() {
5995
5995
  const e = [];
5996
- return Di().forEach((n) => {
5996
+ return Mi().forEach((n) => {
5997
5997
  e.push([n.name, n.id]);
5998
5998
  }), Be(e);
5999
5999
  }
@@ -6032,7 +6032,7 @@ const Bd = {
6032
6032
  var i, s;
6033
6033
  if (this.app.id)
6034
6034
  return;
6035
- const e = (i = Di()) == null ? void 0 : i[0];
6035
+ const e = (i = Mi()) == null ? void 0 : i[0];
6036
6036
  if (!e)
6037
6037
  return;
6038
6038
  this.app.id = e.id, this.app.name = e.name;
@@ -6246,7 +6246,7 @@ l.forBlock.on_node_event_v1 = function(e) {
6246
6246
  ${s}});
6247
6247
  `;
6248
6248
  };
6249
- const Md = {
6249
+ const Dd = {
6250
6250
  init: function() {
6251
6251
  this.appendDummyInput().appendField("%{BKY_UI_V1_OPEN_CONFIRM_DLG_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_OPEN_CONFIRM_DLG_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_OPEN_CONFIRM_DLG_HELPURL}");
6252
6252
  },
@@ -6277,7 +6277,7 @@ const Md = {
6277
6277
  ]);
6278
6278
  }
6279
6279
  };
6280
- U.open_confirm_dlg_v1 = Md;
6280
+ U.open_confirm_dlg_v1 = Dd;
6281
6281
  l.forBlock.open_confirm_dlg_v1 = function(e) {
6282
6282
  const t = l.valueToCode(e, "TITLE", u.ATOMIC), n = l.valueToCode(e, "TEXT", u.ATOMIC), o = l.statementToCode(e, "HANDLE");
6283
6283
  return `{
@@ -6285,7 +6285,7 @@ l.forBlock.open_confirm_dlg_v1 = function(e) {
6285
6285
  ${o}}
6286
6286
  `;
6287
6287
  };
6288
- const Dd = {
6288
+ const Md = {
6289
6289
  init: function() {
6290
6290
  this.appendDummyInput().appendField("%{BKY_UI_V1_OPEN_PROMPT_DLG_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_OPEN_PROMPT_DLG_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_OPEN_PROMPT_DLG_HELPURL}");
6291
6291
  },
@@ -6318,7 +6318,7 @@ const Dd = {
6318
6318
  ]);
6319
6319
  }
6320
6320
  };
6321
- U.open_prompt_dlg_v1 = Dd;
6321
+ U.open_prompt_dlg_v1 = Md;
6322
6322
  l.forBlock.open_prompt_dlg_v1 = function(e) {
6323
6323
  const t = l.valueToCode(e, "TITLE", u.ATOMIC), n = l.valueToCode(e, "LABEL", u.ATOMIC), o = l.valueToCode(e, "VALUE", u.ATOMIC), i = l.statementToCode(e, "HANDLE");
6324
6324
  return `{
@@ -6799,7 +6799,7 @@ function $d() {
6799
6799
  const t = xe.createElement("block");
6800
6800
  t.setAttribute("type", "app_env_v1"), e.push(t);
6801
6801
  }
6802
- if (Di().length > 0) {
6802
+ if (Mi().length > 0) {
6803
6803
  const t = xe.createElement("block");
6804
6804
  t.setAttribute("type", "navigate_to_v1"), e.push(t);
6805
6805
  }
@@ -6877,7 +6877,7 @@ const Ua = (e, t, n) => {
6877
6877
  });
6878
6878
  };
6879
6879
  async function Cs(e) {
6880
- const t = await Ua(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en-enl17pxd.js"), "./msg/zhHans.ts": () => import("./msg-zhHans-oo3u4x5i.js") }), `./msg/${e}.ts`, 3);
6880
+ const t = await Ua(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en-kt4hpbag.js"), "./msg/zhHans.ts": () => import("./msg-zhHans-m1r7olku.js") }), `./msg/${e}.ts`, 3);
6881
6881
  Wr(t.default);
6882
6882
  }
6883
6883
  function wa(e) {
@@ -6907,11 +6907,11 @@ class jd {
6907
6907
  shortcut: !0
6908
6908
  }) {
6909
6909
  t && (this.blockCopyToStorageContextMenu(), this.blockPasteFromStorageContextMenu()), n && (ye.registry.unregister(
6910
- Mo.names.COPY
6910
+ Do.names.COPY
6911
6911
  ), ye.registry.unregister(
6912
- Mo.names.CUT
6912
+ Do.names.CUT
6913
6913
  ), ye.registry.unregister(
6914
- Mo.names.PASTE
6914
+ Do.names.PASTE
6915
6915
  ), this.blockCopyToStorageShortcut(), this.blockCutToStorageShortcut(), this.blockPasteFromStorageShortcut());
6916
6916
  }
6917
6917
  blockCopyToStorageContextMenu() {
@@ -6921,7 +6921,7 @@ class jd {
6921
6921
  },
6922
6922
  preconditionFn: function() {
6923
6923
  const n = Yt();
6924
- return !n || !Ln(n) || !n.isDeletable() || !Do(n) || !n.isMovable() || !Zt(n) ? "disabled" : "enabled";
6924
+ return !n || !Ln(n) || !n.isDeletable() || !Mo(n) || !n.isMovable() || !Zt(n) ? "disabled" : "enabled";
6925
6925
  },
6926
6926
  callback: function(n) {
6927
6927
  var o;
@@ -6978,7 +6978,7 @@ class jd {
6978
6978
  if (s.options.readOnly || Po.inProgress())
6979
6979
  return !1;
6980
6980
  const a = Yt();
6981
- return !(!a || !Ln(a) || !a.isDeletable() || !Do(a) || !a.isMovable() || !Zt(a));
6981
+ return !(!a || !Ln(a) || !a.isDeletable() || !Mo(a) || !a.isMovable() || !Zt(a));
6982
6982
  },
6983
6983
  callback: function(s, a) {
6984
6984
  a.preventDefault();
@@ -7008,7 +7008,7 @@ class jd {
7008
7008
  if (s.options.readOnly || Po.inProgress())
7009
7009
  return !1;
7010
7010
  const a = Yt();
7011
- return !(!a || !Ln(a) || !a.isDeletable() || !Do(a) || !a.isMovable() || !Zt(a) || a.workspace.isFlyout);
7011
+ return !(!a || !Ln(a) || !a.isDeletable() || !Mo(a) || !a.isMovable() || !Zt(a) || a.workspace.isFlyout);
7012
7012
  },
7013
7013
  callback: function(s, a) {
7014
7014
  a.preventDefault();
@@ -9128,7 +9128,7 @@ const Cf = Object.assign;
9128
9128
  * @author owenm <owen23355@gmail.com>
9129
9129
  * @license MIT
9130
9130
  */
9131
- function Ms(e, t) {
9131
+ function Ds(e, t) {
9132
9132
  var n = Object.keys(e);
9133
9133
  if (Object.getOwnPropertySymbols) {
9134
9134
  var o = Object.getOwnPropertySymbols(e);
@@ -9141,9 +9141,9 @@ function Ms(e, t) {
9141
9141
  function qe(e) {
9142
9142
  for (var t = 1; t < arguments.length; t++) {
9143
9143
  var n = arguments[t] != null ? arguments[t] : {};
9144
- t % 2 ? Ms(Object(n), !0).forEach(function(o) {
9144
+ t % 2 ? Ds(Object(n), !0).forEach(function(o) {
9145
9145
  Sf(e, o, n[o]);
9146
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ms(Object(n)).forEach(function(o) {
9146
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ds(Object(n)).forEach(function(o) {
9147
9147
  Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
9148
9148
  });
9149
9149
  }
@@ -9199,7 +9199,7 @@ function st(e) {
9199
9199
  if (typeof window < "u" && window.navigator)
9200
9200
  return !!/* @__PURE__ */ navigator.userAgent.match(e);
9201
9201
  }
9202
- var ut = st(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), On = st(/Edge/i), Ds = st(/firefox/i), cn = st(/safari/i) && !st(/chrome/i) && !st(/android/i), za = st(/iP(ad|od|hone)/i), Ja = st(/chrome/i) && st(/android/i), qa = {
9202
+ var ut = st(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), On = st(/Edge/i), Ms = st(/firefox/i), cn = st(/safari/i) && !st(/chrome/i) && !st(/android/i), za = st(/iP(ad|od|hone)/i), Ja = st(/chrome/i) && st(/android/i), qa = {
9203
9203
  capture: !1,
9204
9204
  passive: !1
9205
9205
  };
@@ -9241,7 +9241,7 @@ function Ke(e, t, n, o) {
9241
9241
  return null;
9242
9242
  }
9243
9243
  var Ps = /\s+/g;
9244
- function Me(e, t, n) {
9244
+ function De(e, t, n) {
9245
9245
  if (e && t)
9246
9246
  if (e.classList)
9247
9247
  e.classList[n ? "add" : "remove"](t);
@@ -9380,7 +9380,7 @@ function gt(e, t) {
9380
9380
  while (n = n.parentNode);
9381
9381
  return ze();
9382
9382
  }
9383
- function Mf(e, t) {
9383
+ function Df(e, t) {
9384
9384
  if (e && t)
9385
9385
  for (var n in t)
9386
9386
  t.hasOwnProperty(n) && (e[n] = t[n]);
@@ -9400,7 +9400,7 @@ function Za(e, t) {
9400
9400
  }
9401
9401
  };
9402
9402
  }
9403
- function Df() {
9403
+ function Mf() {
9404
9404
  clearTimeout(un), un = void 0;
9405
9405
  }
9406
9406
  function er(e, t, n) {
@@ -9556,7 +9556,7 @@ var Vf = ["evt"], Le = function(e, t) {
9556
9556
  In.pluginEvent.bind(B)(e, t, qe({
9557
9557
  dragEl: T,
9558
9558
  parentEl: ce,
9559
- ghostEl: D,
9559
+ ghostEl: M,
9560
9560
  rootEl: ae,
9561
9561
  nextEl: Ct,
9562
9562
  lastDownEl: Kn,
@@ -9568,7 +9568,7 @@ var Vf = ["evt"], Le = function(e, t) {
9568
9568
  originalEvent: o,
9569
9569
  oldIndex: $t,
9570
9570
  oldDraggableIndex: _n,
9571
- newIndex: De,
9571
+ newIndex: Me,
9572
9572
  newDraggableIndex: _t,
9573
9573
  hideGhostForTarget: ar,
9574
9574
  unhideGhostForTarget: rr,
@@ -9595,11 +9595,11 @@ function Ce(e) {
9595
9595
  rootEl: ae,
9596
9596
  oldIndex: $t,
9597
9597
  oldDraggableIndex: _n,
9598
- newIndex: De,
9598
+ newIndex: Me,
9599
9599
  newDraggableIndex: _t
9600
9600
  }, e));
9601
9601
  }
9602
- var T, ce, D, ae, Ct, Kn, le, dt, $t, De, _n, _t, Mn, Ee, Kt = !1, no = !1, oo = [], It, Ye, Wo, Xo, ws, Vs, nn, Vt, pn, dn = !1, Dn = !1, Hn, Oe, zo = [], hi = !1, io = [], Lo = typeof document < "u", Pn = za, Fs = On || ut ? "cssFloat" : "float", Ff = Lo && !Ja && !za && "draggable" in document.createElement("div"), or = function() {
9602
+ var T, ce, M, ae, Ct, Kn, le, dt, $t, Me, _n, _t, Dn, Ee, Kt = !1, no = !1, oo = [], It, Ye, Wo, Xo, ws, Vs, nn, Vt, pn, dn = !1, Mn = !1, Hn, Oe, zo = [], hi = !1, io = [], Lo = typeof document < "u", Pn = za, Fs = On || ut ? "cssFloat" : "float", Ff = Lo && !Ja && !za && "draggable" in document.createElement("div"), or = function() {
9603
9603
  if (Lo) {
9604
9604
  if (ut)
9605
9605
  return !1;
@@ -9651,9 +9651,9 @@ var T, ce, D, ae, Ct, Kn, le, dt, $t, De, _n, _t, Mn, Ee, Kt = !1, no = !1, oo =
9651
9651
  name: o
9652
9652
  }), n.name = o.name, n.checkPull = t(o.pull, !0), n.checkPut = t(o.put), n.revertClone = o.revertClone, e.group = n;
9653
9653
  }, ar = function() {
9654
- !or && D && k(D, "display", "none");
9654
+ !or && M && k(M, "display", "none");
9655
9655
  }, rr = function() {
9656
- !or && D && k(D, "display", "");
9656
+ !or && M && k(M, "display", "");
9657
9657
  };
9658
9658
  Lo && !Ja && document.addEventListener("click", function(e) {
9659
9659
  if (no)
@@ -9781,7 +9781,7 @@ B.prototype = /** @lends Sortable.prototype */
9781
9781
  var o = this, i = o.el, s = o.options, a = i.ownerDocument, r;
9782
9782
  if (n && !T && n.parentNode === i) {
9783
9783
  var c = de(n);
9784
- if (ae = i, T = n, ce = T.parentNode, Ct = T.nextSibling, Kn = n, Mn = s.group, B.dragged = T, It = {
9784
+ if (ae = i, T = n, ce = T.parentNode, Ct = T.nextSibling, Kn = n, Dn = s.group, B.dragged = T, It = {
9785
9785
  target: T,
9786
9786
  clientX: (t || e).clientX,
9787
9787
  clientY: (t || e).clientY
@@ -9792,14 +9792,14 @@ B.prototype = /** @lends Sortable.prototype */
9792
9792
  o._onDrop();
9793
9793
  return;
9794
9794
  }
9795
- o._disableDelayedDragEvents(), !Ds && o.nativeDraggable && (T.draggable = !0), o._triggerDragStart(e, t), Ce({
9795
+ o._disableDelayedDragEvents(), !Ms && o.nativeDraggable && (T.draggable = !0), o._triggerDragStart(e, t), Ce({
9796
9796
  sortable: o,
9797
9797
  name: "choose",
9798
9798
  originalEvent: e
9799
- }), Me(T, s.chosenClass, !0);
9799
+ }), De(T, s.chosenClass, !0);
9800
9800
  }, s.ignore.split(",").forEach(function(_) {
9801
9801
  Qa(T, _.trim(), Jo);
9802
- }), 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), Ds && this.nativeDraggable && (this.options.touchStartThreshold = 4, T.draggable = !0), Le("delayStart", this, {
9802
+ }), 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, {
9803
9803
  evt: e
9804
9804
  }), s.delay && (!s.delayOnTouchOnly || t) && (!this.nativeDraggable || !(On || ut))) {
9805
9805
  if (B.eventCanceled) {
@@ -9837,7 +9837,7 @@ B.prototype = /** @lends Sortable.prototype */
9837
9837
  evt: t
9838
9838
  }), this.nativeDraggable && z(document, "dragover", Hf);
9839
9839
  var n = this.options;
9840
- !e && Me(T, n.dragClass, !1), Me(T, n.ghostClass, !0), B.active = this, e && this._appendGhost(), Ce({
9840
+ !e && De(T, n.dragClass, !1), De(T, n.ghostClass, !0), B.active = this, e && this._appendGhost(), Ce({
9841
9841
  sortable: this,
9842
9842
  name: "start",
9843
9843
  originalEvent: t
@@ -9869,13 +9869,13 @@ B.prototype = /** @lends Sortable.prototype */
9869
9869
  },
9870
9870
  _onTouchMove: function(e) {
9871
9871
  if (It) {
9872
- var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = D && jt(D, !0), a = D && s && s.a, r = D && 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);
9872
+ var t = this.options, n = t.fallbackTolerance, o = t.fallbackOffset, i = e.touches ? e.touches[0] : e, s = M && jt(M, !0), a = M && s && s.a, r = M && s && s.d, c = Pn && Oe && Us(Oe), _ = (i.clientX - It.clientX + o.x) / (a || 1) + (c ? c[0] - zo[0] : 0) / (a || 1), d = (i.clientY - It.clientY + o.y) / (r || 1) + (c ? c[1] - zo[1] : 0) / (r || 1);
9873
9873
  if (!B.active && !Kt) {
9874
9874
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
9875
9875
  return;
9876
9876
  this._onDragStart(e, !0);
9877
9877
  }
9878
- if (D) {
9878
+ if (M) {
9879
9879
  s ? (s.e += _ - (Wo || 0), s.f += d - (Xo || 0)) : s = {
9880
9880
  a: 1,
9881
9881
  b: 0,
@@ -9885,20 +9885,20 @@ B.prototype = /** @lends Sortable.prototype */
9885
9885
  f: d
9886
9886
  };
9887
9887
  var p = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
9888
- k(D, "webkitTransform", p), k(D, "mozTransform", p), k(D, "msTransform", p), k(D, "transform", p), Wo = _, Xo = d, Ye = i;
9888
+ k(M, "webkitTransform", p), k(M, "mozTransform", p), k(M, "msTransform", p), k(M, "transform", p), Wo = _, Xo = d, Ye = i;
9889
9889
  }
9890
9890
  e.cancelable && e.preventDefault();
9891
9891
  }
9892
9892
  },
9893
9893
  _appendGhost: function() {
9894
- if (!D) {
9894
+ if (!M) {
9895
9895
  var e = this.options.fallbackOnBody ? document.body : ae, t = de(T, !0, Pn, !0, e), n = this.options;
9896
9896
  if (Pn) {
9897
9897
  for (Oe = e; k(Oe, "position") === "static" && k(Oe, "transform") === "none" && Oe !== document; )
9898
9898
  Oe = Oe.parentNode;
9899
9899
  Oe !== document.body && Oe !== document.documentElement ? (Oe === document && (Oe = ze()), t.top += Oe.scrollTop, t.left += Oe.scrollLeft) : Oe = ze(), zo = Us(Oe);
9900
9900
  }
9901
- D = T.cloneNode(!0), Me(D, n.ghostClass, !1), Me(D, n.fallbackClass, !0), Me(D, n.dragClass, !0), k(D, "transition", ""), k(D, "transform", ""), k(D, "box-sizing", "border-box"), k(D, "margin", 0), k(D, "top", t.top), k(D, "left", t.left), k(D, "width", t.width), k(D, "height", t.height), k(D, "opacity", "0.8"), k(D, "position", Pn ? "absolute" : "fixed"), k(D, "zIndex", "100000"), k(D, "pointerEvents", "none"), B.ghost = D, e.appendChild(D), k(D, "transform-origin", ws / parseInt(D.style.width) * 100 + "% " + Vs / parseInt(D.style.height) * 100 + "%");
9901
+ 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 + "%");
9902
9902
  }
9903
9903
  },
9904
9904
  _onDragStart: function(e, t) {
@@ -9909,16 +9909,16 @@ B.prototype = /** @lends Sortable.prototype */
9909
9909
  this._onDrop();
9910
9910
  return;
9911
9911
  }
9912
- Le("setupClone", this), B.eventCanceled || (le = tr(T), le.removeAttribute("id"), le.draggable = !1, le.style["will-change"] = "", this._hideClone(), Me(le, this.options.chosenClass, !1), B.clone = le), n.cloneId = $n(function() {
9912
+ Le("setupClone", this), B.eventCanceled || (le = tr(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() {
9913
9913
  Le("clone", n), !B.eventCanceled && (n.options.removeCloneOnHide || ae.insertBefore(le, T), n._hideClone(), Ce({
9914
9914
  sortable: n,
9915
9915
  name: "clone"
9916
9916
  }));
9917
- }), !t && Me(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");
9917
+ }), !t && De(T, i.dragClass, !0), t ? (no = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : ($(document, "mouseup", n._onDrop), $(document, "touchend", n._onDrop), $(document, "touchcancel", n._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(n, o, T)), 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");
9918
9918
  },
9919
9919
  // Returns true - if no further action is needed (either inserted or another condition)
9920
9920
  _onDragOver: function(e) {
9921
- var t = this.el, n = e.target, o, i, s, a = this.options, r = a.group, c = B.active, _ = Mn === r, d = a.sort, p = Ee || c, f, g = this, b = !1;
9921
+ 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;
9922
9922
  if (hi)
9923
9923
  return;
9924
9924
  function E(h, A) {
@@ -9933,8 +9933,8 @@ B.prototype = /** @lends Sortable.prototype */
9933
9933
  fromSortable: p,
9934
9934
  target: n,
9935
9935
  completed: C,
9936
- onMove: function(M, Y) {
9937
- return xn(ae, t, T, o, M, de(M), e, Y);
9936
+ onMove: function(D, Y) {
9937
+ return xn(ae, t, T, o, D, de(D), e, Y);
9938
9938
  },
9939
9939
  changed: F
9940
9940
  }, A));
@@ -9945,16 +9945,16 @@ B.prototype = /** @lends Sortable.prototype */
9945
9945
  function C(h) {
9946
9946
  return E("dragOverCompleted", {
9947
9947
  insertion: h
9948
- }), h && (_ ? c._hideClone() : c._showClone(g), g !== p && (Me(T, Ee ? Ee.options.ghostClass : c.options.ghostClass, !1), Me(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() {
9948
+ }), 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() {
9949
9949
  E("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
9950
9950
  }), 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;
9951
9951
  }
9952
9952
  function F() {
9953
- De = Ue(T), _t = Ue(T, a.draggable), Ce({
9953
+ Me = Ue(T), _t = Ue(T, a.draggable), Ce({
9954
9954
  sortable: g,
9955
9955
  name: "change",
9956
9956
  toEl: t,
9957
- newIndex: De,
9957
+ newIndex: Me,
9958
9958
  newDraggableIndex: _t,
9959
9959
  originalEvent: e
9960
9960
  });
@@ -9963,7 +9963,7 @@ B.prototype = /** @lends Sortable.prototype */
9963
9963
  return b;
9964
9964
  if (T.contains(e.target) || n.animated && n.animatingX && n.animatingY || g._ignoreWhileAnimating === n)
9965
9965
  return C(!1);
9966
- if (no = !1, c && !a.disabled && (_ ? d || (s = ce !== ae) : Ee === this || (this.lastPutMode = Mn.checkPull(this, c, T, e)) && r.checkPut(this, c, T, e))) {
9966
+ 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))) {
9967
9967
  if (f = this._getDirection(e, n) === "vertical", o = de(T), E("dragOverValid"), B.eventCanceled)
9968
9968
  return b;
9969
9969
  if (s)
@@ -9983,13 +9983,13 @@ B.prototype = /** @lends Sortable.prototype */
9983
9983
  } else if (n.parentNode === t) {
9984
9984
  i = de(n);
9985
9985
  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;
9986
- Vt !== n && (_e = i[N], dn = !1, Dn = !L && a.invertSwap || Se), j = Xf(e, n, i, f, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Dn, Vt === n);
9986
+ 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);
9987
9987
  var X;
9988
9988
  if (j !== 0) {
9989
9989
  var Q = Ue(T);
9990
9990
  do
9991
9991
  Q -= j, X = ce.children[Q];
9992
- while (X && (k(X, "display") === "none" || X === D));
9992
+ while (X && (k(X, "display") === "none" || X === M));
9993
9993
  }
9994
9994
  if (j === 0 || X === n)
9995
9995
  return C(!1);
@@ -9998,7 +9998,7 @@ B.prototype = /** @lends Sortable.prototype */
9998
9998
  G = j === 1;
9999
9999
  var fe = xn(ae, t, T, o, n, i, e, G);
10000
10000
  if (fe !== !1)
10001
- 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 && er(W, 0, ne - W.scrollTop), ce = T.parentNode, _e !== void 0 && !Dn && (Hn = Math.abs(_e - de(n)[N])), F(), C(!0);
10001
+ 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 && er(W, 0, ne - W.scrollTop), ce = T.parentNode, _e !== void 0 && !Mn && (Hn = Math.abs(_e - de(n)[N])), F(), C(!0);
10002
10002
  }
10003
10003
  if (t.contains(T))
10004
10004
  return C(!1);
@@ -10015,20 +10015,20 @@ B.prototype = /** @lends Sortable.prototype */
10015
10015
  },
10016
10016
  _onDrop: function(e) {
10017
10017
  var t = this.el, n = this.options;
10018
- if (De = Ue(T), _t = Ue(T, n.draggable), Le("drop", this, {
10018
+ if (Me = Ue(T), _t = Ue(T, n.draggable), Le("drop", this, {
10019
10019
  evt: e
10020
- }), ce = T && T.parentNode, De = Ue(T), _t = Ue(T, n.draggable), B.eventCanceled) {
10020
+ }), ce = T && T.parentNode, Me = Ue(T), _t = Ue(T, n.draggable), B.eventCanceled) {
10021
10021
  this._nulling();
10022
10022
  return;
10023
10023
  }
10024
- Kt = !1, Dn = !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()), D && D.parentNode && D.parentNode.removeChild(D), (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 && Me(T, Ee ? Ee.options.ghostClass : this.options.ghostClass, !1), Me(T, this.options.chosenClass, !1), Ce({
10024
+ Kt = !1, Mn = !1, dn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), gi(this.cloneId), gi(this._dragStartId), this.nativeDraggable && ($(document, "drop", this), $(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), cn && 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({
10025
10025
  sortable: this,
10026
10026
  name: "unchoose",
10027
10027
  toEl: ce,
10028
10028
  newIndex: null,
10029
10029
  newDraggableIndex: null,
10030
10030
  originalEvent: e
10031
- }), ae !== ce ? (De >= 0 && (Ce({
10031
+ }), ae !== ce ? (Me >= 0 && (Ce({
10032
10032
  rootEl: ce,
10033
10033
  name: "add",
10034
10034
  toEl: ce,
@@ -10050,7 +10050,7 @@ B.prototype = /** @lends Sortable.prototype */
10050
10050
  name: "sort",
10051
10051
  toEl: ce,
10052
10052
  originalEvent: e
10053
- })), Ee && Ee.save()) : De !== $t && De >= 0 && (Ce({
10053
+ })), Ee && Ee.save()) : Me !== $t && Me >= 0 && (Ce({
10054
10054
  sortable: this,
10055
10055
  name: "update",
10056
10056
  toEl: ce,
@@ -10060,7 +10060,7 @@ B.prototype = /** @lends Sortable.prototype */
10060
10060
  name: "sort",
10061
10061
  toEl: ce,
10062
10062
  originalEvent: e
10063
- })), B.active && ((De == null || De === -1) && (De = $t, _t = _n), Ce({
10063
+ })), B.active && ((Me == null || Me === -1) && (Me = $t, _t = _n), Ce({
10064
10064
  sortable: this,
10065
10065
  name: "end",
10066
10066
  toEl: ce,
@@ -10068,7 +10068,7 @@ B.prototype = /** @lends Sortable.prototype */
10068
10068
  }), this.save()))), this._nulling();
10069
10069
  },
10070
10070
  _nulling: function() {
10071
- Le("nulling", this), ae = T = ce = D = Ct = le = Kn = dt = It = Ye = nn = De = _t = $t = _n = Vt = pn = Ee = Mn = B.dragged = B.ghost = B.clone = B.active = null, io.forEach(function(e) {
10071
+ 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) {
10072
10072
  e.checked = !0;
10073
10073
  }), io.length = Wo = Xo = 0;
10074
10074
  },
@@ -10184,11 +10184,11 @@ function Gf() {
10184
10184
  hi = !1;
10185
10185
  }
10186
10186
  function jf(e, t, n) {
10187
- var o = de(Jt(n.el, 0, n.options, !0)), i = nr(n.el, n.options, D), s = 10;
10187
+ var o = de(Jt(n.el, 0, n.options, !0)), i = nr(n.el, n.options, M), s = 10;
10188
10188
  return t ? e.clientX < i.left - s || e.clientY < o.top && e.clientX < o.right : e.clientY < i.top - s || e.clientY < o.bottom && e.clientX < o.left;
10189
10189
  }
10190
10190
  function Wf(e, t, n) {
10191
- var o = de(Pi(n.el, n.options.draggable)), i = nr(n.el, n.options, D), s = 10;
10191
+ var o = de(Pi(n.el, n.options.draggable)), i = nr(n.el, n.options, M), s = 10;
10192
10192
  return t ? e.clientX > i.right + s || e.clientY > o.bottom && e.clientX > o.left : e.clientY > i.bottom + s || e.clientX > o.right && e.clientY > o.top;
10193
10193
  }
10194
10194
  function Xf(e, t, n, o, i, s, a, r) {
@@ -10236,10 +10236,10 @@ B.utils = {
10236
10236
  is: function(e, t) {
10237
10237
  return !!Ke(e, t, e, !1);
10238
10238
  },
10239
- extend: Mf,
10239
+ extend: Df,
10240
10240
  throttle: Za,
10241
10241
  closest: Ke,
10242
- toggleClass: Me,
10242
+ toggleClass: De,
10243
10243
  clone: tr,
10244
10244
  index: Ue,
10245
10245
  nextTick: $n,
@@ -10286,7 +10286,7 @@ function Qf() {
10286
10286
  !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
10287
10287
  },
10288
10288
  drop: function() {
10289
- this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), Ys(), Gn(), Df();
10289
+ this.sortable.nativeDraggable ? $(document, "dragover", this._handleAutoScroll) : ($(document, "pointermove", this._handleFallbackAutoScroll), $(document, "touchmove", this._handleFallbackAutoScroll), $(document, "mousemove", this._handleFallbackAutoScroll)), Ys(), Gn(), Mf();
10290
10290
  },
10291
10291
  nulling: function() {
10292
10292
  so = Ti = on = mi = sn = qo = Qo = null, pe.length = 0;
@@ -11331,7 +11331,7 @@ function Fi(e, { joinWith: t }) {
11331
11331
  return a;
11332
11332
  }).map((o) => `(${o})`).join(t);
11333
11333
  }
11334
- const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\\d+)?", mr = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Er = "\\b(0b[01]+)", Rh = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Mh = (e = {}) => {
11334
+ const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\\d+)?", mr = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Er = "\\b(0b[01]+)", Rh = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Dh = (e = {}) => {
11335
11335
  const t = /^#![ ]*\//;
11336
11336
  return e.binary && (e.begin = Pt(
11337
11337
  t,
@@ -11351,7 +11351,7 @@ const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\
11351
11351
  }, mn = {
11352
11352
  begin: "\\\\[\\s\\S]",
11353
11353
  relevance: 0
11354
- }, Dh = {
11354
+ }, Mh = {
11355
11355
  scope: "string",
11356
11356
  begin: "'",
11357
11357
  end: "'",
@@ -11485,7 +11485,7 @@ const Bh = /\b\B/, gr = "[a-zA-Z]\\w*", Yi = "[a-zA-Z_]\\w*", Tr = "\\b\\d+(\\.\
11485
11485
  };
11486
11486
  var Un = /* @__PURE__ */ Object.freeze({
11487
11487
  __proto__: null,
11488
- APOS_STRING_MODE: Dh,
11488
+ APOS_STRING_MODE: Mh,
11489
11489
  BACKSLASH_ESCAPE: mn,
11490
11490
  BINARY_NUMBER_MODE: Kh,
11491
11491
  BINARY_NUMBER_RE: Er,
@@ -11505,7 +11505,7 @@ var Un = /* @__PURE__ */ Object.freeze({
11505
11505
  QUOTE_STRING_MODE: Ph,
11506
11506
  REGEXP_MODE: Hh,
11507
11507
  RE_STARTERS_RE: Rh,
11508
- SHEBANG: Mh,
11508
+ SHEBANG: Dh,
11509
11509
  TITLE_MODE: $h,
11510
11510
  UNDERSCORE_IDENT_RE: Yi,
11511
11511
  UNDERSCORE_TITLE_MODE: Gh
@@ -11762,26 +11762,26 @@ const ei = dr, Js = Tt, qs = Symbol("nomatch"), dg = 7, Or = function(e) {
11762
11762
  function _(h) {
11763
11763
  let A = h.className + " ";
11764
11764
  A += h.parentNode ? h.parentNode.className : "";
11765
- const M = r.languageDetectRe.exec(A);
11766
- if (M) {
11767
- const Y = N(M[1]);
11768
- return Y || (zs(s.replace("{}", M[1])), zs("Falling back to no-highlight mode for this block.", h)), Y ? M[1] : "no-highlight";
11765
+ const D = r.languageDetectRe.exec(A);
11766
+ if (D) {
11767
+ const Y = N(D[1]);
11768
+ return Y || (zs(s.replace("{}", D[1])), zs("Falling back to no-highlight mode for this block.", h)), Y ? D[1] : "no-highlight";
11769
11769
  }
11770
11770
  return A.split(/\s+/).find((Y) => c(Y) || N(Y));
11771
11771
  }
11772
- function d(h, A, M) {
11772
+ function d(h, A, D) {
11773
11773
  let Y = "", se = "";
11774
- typeof A == "object" ? (Y = h, M = A.ignoreIllegals, se = A.language) : (Ft("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ft("10.7.0", `Please use highlight(code, options) instead.
11775
- https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M === void 0 && (M = !0);
11774
+ typeof A == "object" ? (Y = h, D = A.ignoreIllegals, se = A.language) : (Ft("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Ft("10.7.0", `Please use highlight(code, options) instead.
11775
+ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), D === void 0 && (D = !0);
11776
11776
  const Ie = {
11777
11777
  code: Y,
11778
11778
  language: se
11779
11779
  };
11780
11780
  G("before:highlight", Ie);
11781
- const Ve = Ie.result ? Ie.result : p(Ie.language, Ie.code, M);
11781
+ const Ve = Ie.result ? Ie.result : p(Ie.language, Ie.code, D);
11782
11782
  return Ve.code = Ie.code, G("after:highlight", Ve), Ve;
11783
11783
  }
11784
- function p(h, A, M, Y) {
11784
+ function p(h, A, D, Y) {
11785
11785
  const se = /* @__PURE__ */ Object.create(null);
11786
11786
  function Ie(m, y) {
11787
11787
  return m.keywords[y];
@@ -11802,8 +11802,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
11802
11802
  if (me.addText(x), x = "", se[J] = (se[J] || 0) + 1, se[J] <= dg && (Sn += Rr), tt.startsWith("_"))
11803
11803
  x += y[0];
11804
11804
  else {
11805
- const Mr = je.classNameAliases[tt] || tt;
11806
- Ge(y[0], Mr);
11805
+ const Dr = je.classNameAliases[tt] || tt;
11806
+ Ge(y[0], Dr);
11807
11807
  }
11808
11808
  } else
11809
11809
  x += y[0];
@@ -11903,7 +11903,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
11903
11903
  }
11904
11904
  if (Cn = y, y.type === "begin")
11905
11905
  return Lr(y);
11906
- if (y.type === "illegal" && !M) {
11906
+ if (y.type === "illegal" && !D) {
11907
11907
  const J = new Error('Illegal lexeme "' + x + '" for mode "' + (P.scope || "<unnamed>") + '"');
11908
11908
  throw J.mode = P, J;
11909
11909
  } else if (y.type === "end") {
@@ -11987,10 +11987,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
11987
11987
  }
11988
11988
  function g(h, A) {
11989
11989
  A = A || r.languages || Object.keys(t);
11990
- const M = f(h), Y = A.filter(N).filter(ne).map(
11990
+ const D = f(h), Y = A.filter(N).filter(ne).map(
11991
11991
  (Re) => p(Re, h, !1)
11992
11992
  );
11993
- Y.unshift(M);
11993
+ Y.unshift(D);
11994
11994
  const se = Y.sort((Re, Ge) => {
11995
11995
  if (Re.relevance !== Ge.relevance) return Ge.relevance - Re.relevance;
11996
11996
  if (Re.language && Ge.language) {
@@ -12003,17 +12003,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
12003
12003
  }), [Ie, Ve] = se, yn = Ie;
12004
12004
  return yn.secondBest = Ve, yn;
12005
12005
  }
12006
- function b(h, A, M) {
12007
- const Y = A && n[A] || M;
12006
+ function b(h, A, D) {
12007
+ const Y = A && n[A] || D;
12008
12008
  h.classList.add("hljs"), h.classList.add(`language-${Y}`);
12009
12009
  }
12010
12010
  function E(h) {
12011
12011
  let A = null;
12012
- const M = _(h);
12013
- if (c(M)) return;
12012
+ const D = _(h);
12013
+ if (c(D)) return;
12014
12014
  if (G(
12015
12015
  "before:highlightElement",
12016
- { el: h, language: M }
12016
+ { el: h, language: D }
12017
12017
  ), h.dataset.highlighted) {
12018
12018
  console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", h);
12019
12019
  return;
@@ -12024,8 +12024,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
12024
12024
  h.innerHTML
12025
12025
  );
12026
12026
  A = h;
12027
- const Y = A.textContent, se = M ? d(Y, { language: M, ignoreIllegals: !0 }) : g(Y);
12028
- h.innerHTML = se.value, h.dataset.highlighted = "yes", b(h, M, se.language), h.result = {
12027
+ const Y = A.textContent, se = D ? d(Y, { language: D, ignoreIllegals: !0 }) : g(Y);
12028
+ h.innerHTML = se.value, h.dataset.highlighted = "yes", b(h, D, se.language), h.result = {
12029
12029
  language: se.language,
12030
12030
  // TODO: remove with version 11.0
12031
12031
  re: se.relevance,
@@ -12057,17 +12057,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
12057
12057
  }
12058
12058
  typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", j, !1);
12059
12059
  function _e(h, A) {
12060
- let M = null;
12060
+ let D = null;
12061
12061
  try {
12062
- M = A(e);
12062
+ D = A(e);
12063
12063
  } catch (Y) {
12064
12064
  if (Lt("Language definition for '{}' could not be registered.".replace("{}", h)), i)
12065
12065
  Lt(Y);
12066
12066
  else
12067
12067
  throw Y;
12068
- M = a;
12068
+ D = a;
12069
12069
  }
12070
- M.name || (M.name = h), t[h] = M, M.rawDefinition = A.bind(null, e), M.aliases && W(M.aliases, { languageName: h });
12070
+ D.name || (D.name = h), t[h] = D, D.rawDefinition = A.bind(null, e), D.aliases && W(D.aliases, { languageName: h });
12071
12071
  }
12072
12072
  function Se(h) {
12073
12073
  delete t[h];
@@ -12081,8 +12081,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
12081
12081
  return h = (h || "").toLowerCase(), t[h] || t[n[h]];
12082
12082
  }
12083
12083
  function W(h, { languageName: A }) {
12084
- typeof h == "string" && (h = [h]), h.forEach((M) => {
12085
- n[M.toLowerCase()] = A;
12084
+ typeof h == "string" && (h = [h]), h.forEach((D) => {
12085
+ n[D.toLowerCase()] = A;
12086
12086
  });
12087
12087
  }
12088
12088
  function ne(h) {
@@ -12108,9 +12108,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), se = h, Y = A), M ===
12108
12108
  A !== -1 && o.splice(A, 1);
12109
12109
  }
12110
12110
  function G(h, A) {
12111
- const M = h;
12111
+ const D = h;
12112
12112
  o.forEach(function(Y) {
12113
- Y[M] && Y[M](A);
12113
+ Y[D] && Y[D](A);
12114
12114
  });
12115
12115
  }
12116
12116
  function fe(h) {
@@ -12299,9 +12299,9 @@ const jn = /* @__PURE__ */ el(fg), Qs = "[A-Za-z$_][0-9A-Za-z$_]*", hg = [
12299
12299
  yr
12300
12300
  );
12301
12301
  function Eg(e) {
12302
- const t = e.regex, n = (A, { after: M }) => {
12302
+ const t = e.regex, n = (A, { after: D }) => {
12303
12303
  const Y = "</" + A[0].slice(1);
12304
- return A.input.indexOf(Y, M) !== -1;
12304
+ return A.input.indexOf(Y, D) !== -1;
12305
12305
  }, o = Qs, i = {
12306
12306
  begin: "<>",
12307
12307
  end: "</>"
@@ -12312,7 +12312,7 @@ function Eg(e) {
12312
12312
  * @param {RegExpMatchArray} match
12313
12313
  * @param {CallbackResponse} response
12314
12314
  */
12315
- isTrulyOpeningTag: (A, M) => {
12315
+ isTrulyOpeningTag: (A, D) => {
12316
12316
  const Y = A[0].length + A.index, se = A.input[Y];
12317
12317
  if (
12318
12318
  // HTML should not include another raw `<` inside a tag
@@ -12322,18 +12322,18 @@ function Eg(e) {
12322
12322
  // `<T, A extends keyof T, V>`
12323
12323
  se === ","
12324
12324
  ) {
12325
- M.ignoreMatch();
12325
+ D.ignoreMatch();
12326
12326
  return;
12327
12327
  }
12328
- se === ">" && (n(A, { after: Y }) || M.ignoreMatch());
12328
+ se === ">" && (n(A, { after: Y }) || D.ignoreMatch());
12329
12329
  let Ie;
12330
12330
  const Ve = A.input.substring(Y);
12331
12331
  if (Ie = Ve.match(/^\s*=/)) {
12332
- M.ignoreMatch();
12332
+ D.ignoreMatch();
12333
12333
  return;
12334
12334
  }
12335
12335
  if ((Ie = Ve.match(/^\s+extends\s+/)) && Ie.index === 0) {
12336
- M.ignoreMatch();
12336
+ D.ignoreMatch();
12337
12337
  return;
12338
12338
  }
12339
12339
  }
@@ -12928,14 +12928,14 @@ const vg = /* @__PURE__ */ Qe({
12928
12928
  }), Ig = (e) => {
12929
12929
  e.component("XBlockly", vh), e.component("XSourceDlg", Og);
12930
12930
  };
12931
- async function Dg(e) {
12931
+ async function Mg(e) {
12932
12932
  return (await Ua(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-owbcs4f2.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-bw16iab9.js") }), `./locales/${e}/index.ts`, 4)).default;
12933
12933
  }
12934
12934
  const Pg = { install: Ig };
12935
12935
  export {
12936
12936
  vh as XBlockly,
12937
12937
  q as blocklyState,
12938
- Mg as buildProps,
12938
+ Dg as buildProps,
12939
12939
  Pg as default,
12940
12940
  Op as initApp,
12941
12941
  Ip as initBase,
@@ -12944,5 +12944,5 @@ export {
12944
12944
  Sp as initResource,
12945
12945
  Lp as initRuntime,
12946
12946
  Ig as install,
12947
- Dg as loadLocaleMessageBlock
12947
+ Mg as loadLocaleMessageBlock
12948
12948
  };
@@ -79,6 +79,8 @@ const _ = {
79
79
  LABEL_TABLE: "Table",
80
80
  LABEL_TEXT: "Text",
81
81
  LABEL_VARIABLE: "Variable",
82
+ // method
83
+ METHOD_ADD: "add",
82
84
  // param
83
85
  PARAM_DATA: "data",
84
86
  PARAM_EXTRA_DATA: "extra data",
@@ -427,6 +429,9 @@ const _ = {
427
429
  UI_V1_APP_ENV_TITLE: "environment %1",
428
430
  UI_V1_APP_ENV_TOOLTIP: "UI_V1_APP_ENV_TOOLTIP",
429
431
  UI_V1_APP_ENV_HELPURL: "UI_V1_APP_ENV_HELPURL",
432
+ UI_V1_CALL_NODE_METHOD_TITLE: "call method",
433
+ UI_V1_CALL_NODE_METHOD_TOOLTIP: "UI_V1_CALL_NODE_METHOD_TOOLTIP",
434
+ UI_V1_CALL_NODE_METHOD_HELPURL: "UI_V1_CALL_NODE_METHOD_HELPURL",
430
435
  UI_V1_GET_NODE_TITLE: "get node",
431
436
  UI_V1_GET_NODE_TOOLTIP: "UI_V1_GET_NODE_TOOLTIP",
432
437
  UI_V1_GET_NODE_HELPURL: "UI_V1_GET_NODE_HELPURL",
@@ -436,7 +441,7 @@ const _ = {
436
441
  UI_V1_NAVIGATE_TO_TITLE: "navigate to",
437
442
  UI_V1_NAVIGATE_TO_TOOLTIP: "UI_V1_NAVIGATE_TO_TOOLTIP",
438
443
  UI_V1_NAVIGATE_TO_HELPURL: "UI_V1_NAVIGATE_TO_HELPURL",
439
- UI_V1_ON_NODE_EVENT_TITLE: "event",
444
+ UI_V1_ON_NODE_EVENT_TITLE: "on event",
440
445
  UI_V1_ON_NODE_EVENT_TOOLTIP: "UI_V1_ON_NODE_EVENT_TOOLTIP",
441
446
  UI_V1_ON_NODE_EVENT_HELPURL: "UI_V1_ON_NODE_EVENT_HELPURL",
442
447
  UI_V1_OPEN_CONFIRM_DLG_TITLE: "open confirm dialog",
@@ -79,6 +79,8 @@ const _ = {
79
79
  LABEL_TABLE: "表",
80
80
  LABEL_TEXT: "文本",
81
81
  LABEL_VARIABLE: "变量",
82
+ // method
83
+ METHOD_ADD: "添加",
82
84
  // param
83
85
  PARAM_DATA: "数据",
84
86
  PARAM_EXTRA_DATA: "额外数据",
@@ -427,6 +429,9 @@ const _ = {
427
429
  UI_V1_APP_ENV_TITLE: "环境%1",
428
430
  UI_V1_APP_ENV_TOOLTIP: "UI_V1_APP_ENV_TOOLTIP",
429
431
  UI_V1_APP_ENV_HELPURL: "UI_V1_APP_ENV_HELPURL",
432
+ UI_V1_CALL_NODE_METHOD_TITLE: "调用方法",
433
+ UI_V1_CALL_NODE_METHOD_TOOLTIP: "UI_V1_CALL_NODE_METHOD_TOOLTIP",
434
+ UI_V1_CALL_NODE_METHOD_HELPURL: "UI_V1_CALL_NODE_METHOD_HELPURL",
430
435
  UI_V1_GET_NODE_TITLE: "获取节点",
431
436
  UI_V1_GET_NODE_TOOLTIP: "UI_V1_GET_NODE_TOOLTIP",
432
437
  UI_V1_GET_NODE_HELPURL: "UI_V1_GET_NODE_HELPURL",
@@ -436,7 +441,7 @@ const _ = {
436
441
  UI_V1_NAVIGATE_TO_TITLE: "导航到",
437
442
  UI_V1_NAVIGATE_TO_TOOLTIP: "UI_V1_NAVIGATE_TO_TOOLTIP",
438
443
  UI_V1_NAVIGATE_TO_HELPURL: "UI_V1_NAVIGATE_TO_HELPURL",
439
- UI_V1_ON_NODE_EVENT_TITLE: "事件",
444
+ UI_V1_ON_NODE_EVENT_TITLE: "响应事件",
440
445
  UI_V1_ON_NODE_EVENT_TOOLTIP: "UI_V1_ON_NODE_EVENT_TOOLTIP",
441
446
  UI_V1_ON_NODE_EVENT_HELPURL: "UI_V1_ON_NODE_EVENT_HELPURL",
442
447
  UI_V1_OPEN_CONFIRM_DLG_TITLE: "打开确认对话框",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.5.2",
4
+ "version": "0.5.3",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "vue": "^3.5.12",
35
35
  "vuetify": "^3.7.3",
36
36
  "x-essential-lib": "^0.7.3",
37
- "x-runtime-lib": "^0.5.4"
37
+ "x-runtime-lib": "^0.5.6"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@eslint/js": "^10.0.0",