x-block-lib 0.8.63 → 0.8.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var l=document.createElement("style");l.id="x-block-lib",l.appendChild(document.createTextNode("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}.ghost[data-v-a77ed323]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}")),document.head.appendChild(l)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { E as O, r as On, M as Mo, s as Uo, a as Vo, X as $n, u as N, B as A, j as i, O as _, F as v, b as je, i as S, c as It, d as xo, e as w, f as g, g as Yo, h as J, k as Et, p as wt, l as ct, m as vn, n as U, C as Hn, N as rt, o as Fo, P as Xe, q as Ye, V as bt, t as Gn, W as wo, v as Ko, w as $o, S as Ho, x as Go, y as Wo, z as Xt, T as ye, A as Wn, D as jo, G as Xo, H as jn, I as Jo, J as qo, K as Qo, L as zo, Q as Zo, R as ts, U as es, Y as ns } from "./vendor.je7mkgas.js";
2
+ import { E as O, r as On, M as Mo, s as Uo, a as Vo, X as $n, u as N, B as A, j as i, O as u, F as v, b as je, i as S, c as It, d as xo, e as w, f as g, g as Yo, h as J, k as Et, p as wt, l as ct, m as vn, n as U, C as Hn, N as rt, o as Fo, P as Xe, q as Ye, V as bt, t as Gn, W as wo, v as Ko, w as $o, S as Ho, x as Go, y as Wo, z as Xt, T as ye, A as Wn, D as jo, G as Xo, H as jn, I as Jo, J as qo, K as Qo, L as zo, Q as Zo, R as ts, U as es, Y as ns } from "./vendor.k8hjxofe.js";
3
3
  import { globalState as I } from "x-state-lib";
4
4
  import { globalObjects as yt, openConfirmDlg as os, openPromptDlg as ss, messageWarning as Xn, useColor as Jt, useSystem as Jn, useViewStack as rn, eventBus as Bt } from "x-essential-lib";
5
5
  import { pkgs as ie, parsePixelStr as is, parsePercentStr as as, getPropertyTag as Vt, unwrapEventId as un, elements as V, unwrapEventKeyOfCustomSlot as Cn, unwrapEventKeyOfElementSlot as cs, unwrapPropertyKeyOfCustomSlot as Je, unwrapPropertyKeyOfElementSlot as qn, makeEventId as K, makeEventKeyOfCustomSlot as kn, unwrapSlotId as ae, makeEventKeyOfElementSlot as rs, makePropertyKeyOfCustomSlot as qe, makePropertyKeyOfElementSlot as Qn, toEventName as Oe, unwrapMethodId as qt, unwrapMethodKeyOfCustomSlot as Qe, unwrapMethodKeyOfElementSlot as us, makeMethodId as _t, makeMethodKeyOfCustomSlot as Sn, makeMethodKeyOfElementSlot as ls, toMethodName as ve, unwrapPropertyId as _s, makePropertyId as kt, toPropertyName as zn, isLocaleOfMethodKind as Zn, makeTriggerId as St } from "x-runtime-lib";
@@ -108,19 +108,19 @@ function j(t, e) {
108
108
  const [o, s, a, r] = n, c = t.getInput(o)?.connection;
109
109
  if (!c)
110
110
  return;
111
- let l = c.targetBlock();
112
- if (l) {
113
- const d = l;
111
+ let _ = c.targetBlock();
112
+ if (_) {
113
+ const d = _;
114
114
  if (d && d.key === s && d.name === a && d.locale === r)
115
115
  return;
116
- l.dispose();
116
+ _.dispose();
117
117
  }
118
- l = pn(
118
+ _ = pn(
119
119
  t.workspace,
120
120
  s,
121
121
  a,
122
122
  r
123
- ), l.outputConnection.connect(c);
123
+ ), _.outputConnection.connect(c);
124
124
  });
125
125
  } finally {
126
126
  O.enable();
@@ -256,7 +256,7 @@ const Rs = {
256
256
  A.get_page_argument_v1 = Rs;
257
257
  i.forBlock.get_page_argument_v1 = function(t) {
258
258
  const e = t;
259
- return [`__getPageArgumentV1__(${i.quote_(e.argument.key)})`, _.FUNCTION_CALL];
259
+ return [`__getPageArgumentV1__(${i.quote_(e.argument.key)})`, u.FUNCTION_CALL];
260
260
  };
261
261
  const Ds = (t, e) => {
262
262
  const n = Ce(t), o = re(t);
@@ -275,7 +275,7 @@ const Ds = (t, e) => {
275
275
  }
276
276
  }, i.forBlock[n] = function(s) {
277
277
  const a = i.quote_, r = s.getFieldValue("ITEM");
278
- return [a(r), _.ATOMIC];
278
+ return [a(r), u.ATOMIC];
279
279
  };
280
280
  };
281
281
  for (const t in ie) {
@@ -334,7 +334,7 @@ const Ms = (t, e) => {
334
334
  if (!r)
335
335
  return;
336
336
  s.removeField("VALUE", !0), s.removeField("SUFFIX", !0);
337
- let c, l;
337
+ let c, _;
338
338
  if (r.ui === "pixelInput") {
339
339
  const d = is(this.value) ?? 0;
340
340
  c = new je(
@@ -342,10 +342,10 @@ const Ms = (t, e) => {
342
342
  r.min,
343
343
  r.max,
344
344
  r.precision ? 1 / Math.pow(10, r.precision) : null,
345
- (u) => {
346
- this.value = u + "px";
345
+ (l) => {
346
+ this.value = l + "px";
347
347
  }
348
- ), l = "px";
348
+ ), _ = "px";
349
349
  } else if (r.ui === "percentInput") {
350
350
  const d = as(this.value) ?? 0;
351
351
  c = new je(
@@ -353,12 +353,12 @@ const Ms = (t, e) => {
353
353
  r.min,
354
354
  r.max,
355
355
  r.precision ? 1 / Math.pow(10, r.precision) : null,
356
- (u) => {
357
- this.value = u + "%";
356
+ (l) => {
357
+ this.value = l + "%";
358
358
  }
359
- ), l = "%";
359
+ ), _ = "%";
360
360
  }
361
- c && s.appendField(c, "VALUE"), l && s.appendField(l, "SUFFIX");
361
+ c && s.appendField(c, "VALUE"), _ && s.appendField(_, "SUFFIX");
362
362
  },
363
363
  checkWarning_: function() {
364
364
  let s = this.value;
@@ -370,7 +370,7 @@ const Ms = (t, e) => {
370
370
  }
371
371
  }, i.forBlock[n] = function(s) {
372
372
  const a = i.quote_;
373
- return [a(s.value), _.ATOMIC];
373
+ return [a(s.value), u.ATOMIC];
374
374
  };
375
375
  };
376
376
  for (const t in ie) {
@@ -601,24 +601,24 @@ function nn(t) {
601
601
  const { properties: e } = I.runtime, { activeObject: n, activePage: o, activeComp: s, depends: a } = I.app, r = [], c = Vt(n.type, n.subtype);
602
602
  if (!c)
603
603
  return r;
604
- const l = n.nodes.find((u) => u.id === t);
605
- if (!l)
604
+ const _ = n.nodes.find((l) => l.id === t);
605
+ if (!_)
606
606
  return r;
607
- const d = V[l.key];
607
+ const d = V[_.key];
608
608
  if (!d)
609
- return console.assert(!1, "invalid element", l.key), r;
609
+ return console.assert(!1, "invalid element", _.key), r;
610
610
  if (d.events)
611
- for (const { key: u, name: h, params: p } of d.events)
611
+ for (const { key: l, name: h, params: p } of d.events)
612
612
  r.push({
613
- id: K("elementEvent", t, u),
613
+ id: K("elementEvent", t, l),
614
614
  kind: "elementEvent",
615
615
  names: [h],
616
616
  params: p
617
617
  });
618
- if (et(d.key) && l.settings && l.settings.comp) {
619
- const u = a[l.settings.comp];
620
- if (u && u.meta.events)
621
- for (const { id: h, name: p, params: f } of u.meta.events)
618
+ if (et(d.key) && _.comp) {
619
+ const l = a[_.comp];
620
+ if (l && l.meta.events)
621
+ for (const { id: h, name: p, params: f } of l.meta.events)
622
622
  r.push({
623
623
  id: K("refEvent", t, h),
624
624
  kind: "refEvent",
@@ -626,10 +626,10 @@ function nn(t) {
626
626
  params: ot(f)
627
627
  });
628
628
  }
629
- if (nt(d.key) && l.settings && l.settings.comp) {
630
- const u = a[l.settings.comp];
631
- if (u && u.meta.events)
632
- for (const { id: h, name: p, params: f } of u.meta.events)
629
+ if (nt(d.key) && _.comp) {
630
+ const l = a[_.comp];
631
+ if (l && l.meta.events)
632
+ for (const { id: h, name: p, params: f } of l.meta.events)
633
633
  r.push({
634
634
  id: K("multipleRefEvent", t, h),
635
635
  kind: "multipleRefEvent",
@@ -638,36 +638,36 @@ function nn(t) {
638
638
  });
639
639
  }
640
640
  if (L(d.key) && n.type === "comp" && s.meta.events)
641
- for (const { id: u, name: h, params: p } of s.meta.events)
641
+ for (const { id: l, name: h, params: p } of s.meta.events)
642
642
  r.push({
643
- id: K("customEvent", t, u),
643
+ id: K("customEvent", t, l),
644
644
  kind: "customEvent",
645
645
  names: [h],
646
646
  params: ot(p)
647
647
  });
648
648
  if (L(d.key) && n.type === "comp" && s.meta.slots) {
649
- for (const u of s.meta.slots)
650
- if (u.events)
651
- for (const h of u.events)
649
+ for (const l of s.meta.slots)
650
+ if (l.events)
651
+ for (const h of l.events)
652
652
  r.push({
653
653
  id: K(
654
654
  "cusotmSlotEvent",
655
655
  t,
656
- kn("", u.id, h.id)
656
+ kn("", l.id, h.id)
657
657
  ),
658
658
  kind: "customSlotEvent",
659
- names: [u.name, h.name],
659
+ names: [l.name, h.name],
660
660
  params: ot(h.params)
661
661
  });
662
662
  }
663
- if (L(d.key) && n.type === "comp" && l.settings && l.settings.adaptSlot) {
664
- const u = ae(l.settings.adaptSlot);
665
- if (u) {
666
- if (u.kind === "elementSlot") {
667
- const h = V[u.mainKey];
663
+ if (L(d.key) && n.type === "comp" && _.adaptSlot) {
664
+ const l = ae(_.adaptSlot);
665
+ if (l) {
666
+ if (l.kind === "elementSlot") {
667
+ const h = V[l.mainKey];
668
668
  if (h && h.slots) {
669
669
  const p = h.slots.find(
670
- (f) => f.key === u.slotKey
670
+ (f) => f.key === l.slotKey
671
671
  );
672
672
  if (p && p.events)
673
673
  for (const f of p.events)
@@ -676,8 +676,8 @@ function nn(t) {
676
676
  "adaptSlotElementEvent",
677
677
  t,
678
678
  rs(
679
- u.mainKey,
680
- u.slotKey,
679
+ l.mainKey,
680
+ l.slotKey,
681
681
  f.key
682
682
  )
683
683
  ),
@@ -686,11 +686,11 @@ function nn(t) {
686
686
  params: f.params
687
687
  });
688
688
  }
689
- } else if (u.kind === "customSlot") {
690
- const h = a[u.mainKey];
689
+ } else if (l.kind === "customSlot") {
690
+ const h = a[l.mainKey];
691
691
  if (h && h.meta.slots) {
692
692
  const p = h.meta.slots.find(
693
- (f) => f.id === u.slotKey
693
+ (f) => f.id === l.slotKey
694
694
  );
695
695
  if (p && p.events)
696
696
  for (const f of p.events)
@@ -698,7 +698,7 @@ function nn(t) {
698
698
  id: K(
699
699
  "adaptSlotCustomEvent",
700
700
  t,
701
- kn(u.mainKey, p.id, f.id)
701
+ kn(l.mainKey, p.id, f.id)
702
702
  ),
703
703
  kind: "adaptSlotCustomEvent",
704
704
  names: [h.name, p.name, f.name],
@@ -709,17 +709,17 @@ function nn(t) {
709
709
  }
710
710
  }
711
711
  if (e[d.key] && e[d.key][c])
712
- for (const { keys: u, names: h, raw: p } of e[d.key][c])
713
- ke(u, p) || r.push({
714
- id: K("elementPropertyChangeEvent", t, u),
712
+ for (const { keys: l, names: h, raw: p } of e[d.key][c])
713
+ ke(l, p) || r.push({
714
+ id: K("elementPropertyChangeEvent", t, l),
715
715
  kind: "elementPropertyChangeEvent",
716
716
  names: h,
717
717
  params: x(so(p))
718
718
  });
719
- if (et(d.key) && l.settings && l.settings.comp) {
720
- const u = a[l.settings.comp];
721
- if (u && u.meta.properties)
722
- for (const { id: h, name: p, type: f } of u.meta.properties)
719
+ if (et(d.key) && _.comp) {
720
+ const l = a[_.comp];
721
+ if (l && l.meta.properties)
722
+ for (const { id: h, name: p, type: f } of l.meta.properties)
723
723
  r.push({
724
724
  id: K("refPropertyChangeEvent", t, h),
725
725
  kind: "refPropertyChangeEvent",
@@ -727,10 +727,10 @@ function nn(t) {
727
727
  params: x(f)
728
728
  });
729
729
  }
730
- if (nt(d.key) && l.settings && l.settings.comp) {
731
- const u = a[l.settings.comp];
732
- if (u && u.meta.properties)
733
- for (const { id: h, name: p, type: f } of u.meta.properties)
730
+ if (nt(d.key) && _.comp) {
731
+ const l = a[_.comp];
732
+ if (l && l.meta.properties)
733
+ for (const { id: h, name: p, type: f } of l.meta.properties)
734
734
  r.push({
735
735
  id: K("multipleRefPropertyChangeEvent", t, h),
736
736
  kind: "multipleRefPropertyChangeEvent",
@@ -739,36 +739,36 @@ function nn(t) {
739
739
  });
740
740
  }
741
741
  if (L(d.key) && n.type === "comp" && s.meta.properties)
742
- for (const { id: u, name: h, type: p } of s.meta.properties)
742
+ for (const { id: l, name: h, type: p } of s.meta.properties)
743
743
  r.push({
744
- id: K("customPropertyChangeEvent", t, u),
744
+ id: K("customPropertyChangeEvent", t, l),
745
745
  kind: "customPropertyChangeEvent",
746
746
  names: [h],
747
747
  params: x(p)
748
748
  });
749
749
  if (L(d.key) && n.type === "comp" && s.meta.slots) {
750
- for (const u of s.meta.slots)
751
- if (u.properties)
752
- for (const h of u.properties)
750
+ for (const l of s.meta.slots)
751
+ if (l.properties)
752
+ for (const h of l.properties)
753
753
  r.push({
754
754
  id: K(
755
755
  "customSlotPropertyChangeEvent",
756
756
  t,
757
- qe("", u.id, h.id)
757
+ qe("", l.id, h.id)
758
758
  ),
759
759
  kind: "customSlotPropertyChangeEvent",
760
- names: [u.name, h.name],
760
+ names: [l.name, h.name],
761
761
  params: x(h.type)
762
762
  });
763
763
  }
764
- if (L(d.key) && n.type === "comp" && l.settings && l.settings.adaptSlot) {
765
- const u = ae(l.settings.adaptSlot);
766
- if (u) {
767
- if (u.kind === "elementSlot") {
768
- const h = V[u.mainKey];
764
+ if (L(d.key) && n.type === "comp" && _.adaptSlot) {
765
+ const l = ae(_.adaptSlot);
766
+ if (l) {
767
+ if (l.kind === "elementSlot") {
768
+ const h = V[l.mainKey];
769
769
  if (h && h.slots) {
770
770
  const p = h.slots.find(
771
- (f) => f.key === u.slotKey
771
+ (f) => f.key === l.slotKey
772
772
  );
773
773
  if (p && p.properties)
774
774
  for (const f of p.properties)
@@ -787,11 +787,11 @@ function nn(t) {
787
787
  params: x(f.type)
788
788
  });
789
789
  }
790
- } else if (u.kind === "customSlot") {
791
- const h = a[u.mainKey];
790
+ } else if (l.kind === "customSlot") {
791
+ const h = a[l.mainKey];
792
792
  if (h && h.meta.slots) {
793
793
  const p = h.meta.slots.find(
794
- (f) => f.id === u.slotKey
794
+ (f) => f.id === l.slotKey
795
795
  );
796
796
  if (p && p.properties)
797
797
  for (const f of p.properties)
@@ -800,7 +800,7 @@ function nn(t) {
800
800
  "adaptSlotCustomPropertyChangeEvent",
801
801
  t,
802
802
  qe(
803
- u.mainKey,
803
+ l.mainKey,
804
804
  p.id,
805
805
  f.id
806
806
  )
@@ -816,17 +816,17 @@ function nn(t) {
816
816
  if (L(d.key)) {
817
817
  if (n.type === "page") {
818
818
  if (o.meta.states)
819
- for (const { id: u, name: h, type: p } of o.meta.states)
819
+ for (const { id: l, name: h, type: p } of o.meta.states)
820
820
  r.push({
821
- id: K("stateChangeEvent", "globality", u),
821
+ id: K("stateChangeEvent", "globality", l),
822
822
  kind: "stateChangeEvent",
823
823
  names: [h],
824
824
  params: x(p)
825
825
  });
826
826
  } else if (n.type === "comp" && s.meta.states)
827
- for (const { id: u, name: h, type: p } of s.meta.states)
827
+ for (const { id: l, name: h, type: p } of s.meta.states)
828
828
  r.push({
829
- id: K("stateChangeEvent", "globality", u),
829
+ id: K("stateChangeEvent", "globality", l),
830
830
  kind: "stateChangeEvent",
831
831
  names: [h],
832
832
  params: x(p)
@@ -840,12 +840,12 @@ function Ke(t) {
840
840
  const { properties: e } = I.runtime, { activeObject: n, activePage: o, activeComp: s, depends: a } = I.app, r = Vt(n.type, n.subtype);
841
841
  if (!r)
842
842
  return;
843
- const { kind: c, nodeId: l, eventKey: d } = un(t), u = n.nodes.find((p) => p.id === l);
844
- if (!u)
843
+ const { kind: c, nodeId: _, eventKey: d } = un(t), l = n.nodes.find((p) => p.id === _);
844
+ if (!l)
845
845
  return;
846
- const h = V[u.key];
846
+ const h = V[l.key];
847
847
  if (!h) {
848
- console.assert(!1, "invalid element", u.key);
848
+ console.assert(!1, "invalid element", l.key);
849
849
  return;
850
850
  }
851
851
  if (c === "elementEvent") {
@@ -858,8 +858,8 @@ function Ke(t) {
858
858
  params: p.params
859
859
  };
860
860
  } else if (c === "referenceEvent") {
861
- if (et(h.key) && u.settings && u.settings.comp) {
862
- const p = a[u.settings.comp];
861
+ if (et(h.key) && l.comp) {
862
+ const p = a[l.comp];
863
863
  if (p) {
864
864
  const f = p.meta.events?.find((T) => T.id === d);
865
865
  if (f)
@@ -872,8 +872,8 @@ function Ke(t) {
872
872
  }
873
873
  }
874
874
  } else if (c === "multipleRefEvent") {
875
- if (nt(h.key) && u.settings && u.settings.comp) {
876
- const p = a[u.settings.comp];
875
+ if (nt(h.key) && l.comp) {
876
+ const p = a[l.comp];
877
877
  if (p) {
878
878
  const f = p.meta.events?.find((T) => T.id === d);
879
879
  if (f)
@@ -962,8 +962,8 @@ function Ke(t) {
962
962
  };
963
963
  }
964
964
  } else if (c === "referencePropertyChangeEvent") {
965
- if (et(h.key) && u.settings && u.settings.comp) {
966
- const p = a[u.settings.comp];
965
+ if (et(h.key) && l.comp) {
966
+ const p = a[l.comp];
967
967
  if (p) {
968
968
  const f = p.meta.properties?.find(
969
969
  (T) => T.id === d
@@ -978,8 +978,8 @@ function Ke(t) {
978
978
  }
979
979
  }
980
980
  } else if (c === "multipleRefPropertyChangeEvent") {
981
- if (nt(h.key) && u.settings && u.settings.comp) {
982
- const p = a[u.settings.comp];
981
+ if (nt(h.key) && l.comp) {
982
+ const p = a[l.comp];
983
983
  if (p) {
984
984
  const f = p.meta.properties?.find(
985
985
  (T) => T.id === d
@@ -1145,94 +1145,94 @@ function on(t) {
1145
1145
  if (!r)
1146
1146
  return console.assert(!1, "inavlid element", a.key), s;
1147
1147
  if (r.methods)
1148
- for (const { key: c, name: l, inputs: d, outputs: u } of r.methods)
1148
+ for (const { key: c, name: _, inputs: d, outputs: l } of r.methods)
1149
1149
  s.push({
1150
1150
  id: _t("elementMethod", t, c),
1151
1151
  kind: "elementMethod",
1152
- names: [l],
1152
+ names: [_],
1153
1153
  inputs: d,
1154
- outputs: u
1154
+ outputs: l
1155
1155
  });
1156
- if (et(r.key) && a.settings && a.settings.comp) {
1157
- const c = o[a.settings.comp];
1156
+ if (et(r.key) && a.comp) {
1157
+ const c = o[a.comp];
1158
1158
  if (c && c.meta.methods)
1159
- for (const { id: l, name: d, inputs: u, outputs: h } of c.meta.methods)
1159
+ for (const { id: _, name: d, inputs: l, outputs: h } of c.meta.methods)
1160
1160
  s.push({
1161
- id: _t("refMethod", t, l),
1161
+ id: _t("refMethod", t, _),
1162
1162
  kind: "refMethod",
1163
1163
  names: [d],
1164
- inputs: H(u),
1164
+ inputs: H(l),
1165
1165
  outputs: tt(h)
1166
1166
  });
1167
1167
  }
1168
- if (nt(r.key) && a.settings && a.settings.comp) {
1169
- const c = o[a.settings.comp];
1168
+ if (nt(r.key) && a.comp) {
1169
+ const c = o[a.comp];
1170
1170
  if (c && c.meta.methods)
1171
- for (const { id: l, name: d, inputs: u, outputs: h } of c.meta.methods)
1171
+ for (const { id: _, name: d, inputs: l, outputs: h } of c.meta.methods)
1172
1172
  s.push({
1173
- id: _t("multipleRefMethod", t, l),
1173
+ id: _t("multipleRefMethod", t, _),
1174
1174
  kind: "multipleRefMethod",
1175
1175
  names: [d],
1176
- inputs: H(u),
1176
+ inputs: H(l),
1177
1177
  outputs: tt(h)
1178
1178
  });
1179
1179
  }
1180
1180
  if (L(r.key) && e.type === "comp" && n.meta.methods)
1181
- for (const { id: c, name: l, inputs: d, outputs: u } of n.meta.methods)
1181
+ for (const { id: c, name: _, inputs: d, outputs: l } of n.meta.methods)
1182
1182
  s.push({
1183
1183
  id: _t("customMethod", t, c),
1184
1184
  kind: "customMethod",
1185
- names: [l],
1185
+ names: [_],
1186
1186
  inputs: H(d),
1187
- outputs: tt(u)
1187
+ outputs: tt(l)
1188
1188
  });
1189
1189
  if (L(r.key) && e.type === "comp" && n.meta.slots) {
1190
1190
  for (const c of n.meta.slots)
1191
1191
  if (c.methods)
1192
- for (const l of c.methods)
1192
+ for (const _ of c.methods)
1193
1193
  s.push({
1194
1194
  id: _t(
1195
1195
  "customSlotMethod",
1196
1196
  t,
1197
- Sn("", c.id, l.id)
1197
+ Sn("", c.id, _.id)
1198
1198
  ),
1199
1199
  kind: "customSlotMethod",
1200
- names: [c.name, l.name],
1201
- inputs: H(l.inputs),
1202
- outputs: tt(l.outputs)
1200
+ names: [c.name, _.name],
1201
+ inputs: H(_.inputs),
1202
+ outputs: tt(_.outputs)
1203
1203
  });
1204
1204
  }
1205
- if (L(r.key) && e.type === "comp" && a.settings && a.settings.adaptSlot) {
1206
- const c = ae(a.settings.adaptSlot);
1205
+ if (L(r.key) && e.type === "comp" && a.adaptSlot) {
1206
+ const c = ae(a.adaptSlot);
1207
1207
  if (c) {
1208
1208
  if (c.kind === "elementSlot") {
1209
- const l = V[c.mainKey];
1210
- if (l && l.slots) {
1211
- const d = l.slots.find(
1212
- (u) => u.key === c.slotKey
1209
+ const _ = V[c.mainKey];
1210
+ if (_ && _.slots) {
1211
+ const d = _.slots.find(
1212
+ (l) => l.key === c.slotKey
1213
1213
  );
1214
1214
  if (d && d.methods)
1215
- for (const u of d.methods)
1215
+ for (const l of d.methods)
1216
1216
  s.push({
1217
1217
  id: _t(
1218
1218
  "adaptSlotElementMethod",
1219
1219
  t,
1220
- ls(l.key, d.key, u.key)
1220
+ ls(_.key, d.key, l.key)
1221
1221
  ),
1222
1222
  kind: "adaptSlotElementMethod",
1223
- names: [l.name, d.name, u.name],
1224
- inputs: u.inputs,
1225
- outputs: u.outputs
1223
+ names: [_.name, d.name, l.name],
1224
+ inputs: l.inputs,
1225
+ outputs: l.outputs
1226
1226
  });
1227
1227
  }
1228
1228
  } else if (c.kind === "customSlot") {
1229
- const l = o[c.mainKey];
1230
- if (l && l.meta.slots) {
1231
- const d = l.meta.slots.find(
1232
- (u) => u.id === c.slotKey
1229
+ const _ = o[c.mainKey];
1230
+ if (_ && _.meta.slots) {
1231
+ const d = _.meta.slots.find(
1232
+ (l) => l.id === c.slotKey
1233
1233
  );
1234
1234
  if (d && d.methods)
1235
- for (const u of d.methods)
1235
+ for (const l of d.methods)
1236
1236
  s.push({
1237
1237
  id: _t(
1238
1238
  "adaptSlotCustomMethod",
@@ -1240,13 +1240,13 @@ function on(t) {
1240
1240
  Sn(
1241
1241
  c.mainKey,
1242
1242
  d.id,
1243
- u.id
1243
+ l.id
1244
1244
  )
1245
1245
  ),
1246
1246
  kind: "adaptSlotCustomMethod",
1247
- names: [l.name, d.name, u.name],
1248
- inputs: H(u.inputs),
1249
- outputs: tt(u.outputs)
1247
+ names: [_.name, d.name, l.name],
1248
+ inputs: H(l.inputs),
1249
+ outputs: tt(l.outputs)
1250
1250
  });
1251
1251
  }
1252
1252
  }
@@ -1260,13 +1260,13 @@ function $e(t) {
1260
1260
  const { activeObject: e, activeComp: n, depends: o } = I.app, { kind: s, nodeId: a, methodKey: r } = qt(t), c = e.nodes.find((d) => d.id === a);
1261
1261
  if (!c)
1262
1262
  return;
1263
- const l = V[c.key];
1264
- if (!l) {
1263
+ const _ = V[c.key];
1264
+ if (!_) {
1265
1265
  console.assert(!1, "invalid element", c.key);
1266
1266
  return;
1267
1267
  }
1268
1268
  if (s === "elementMethod") {
1269
- const d = l.methods?.find((u) => u.key === r);
1269
+ const d = _.methods?.find((l) => l.key === r);
1270
1270
  if (d)
1271
1271
  return {
1272
1272
  id: t,
@@ -1276,43 +1276,43 @@ function $e(t) {
1276
1276
  outputs: d.outputs
1277
1277
  };
1278
1278
  } else if (s === "referenceMethod") {
1279
- if (et(l.key) && c.settings && c.settings.comp) {
1280
- const d = o[c.settings.comp];
1279
+ if (et(_.key) && c.comp) {
1280
+ const d = o[c.comp];
1281
1281
  if (d) {
1282
- const u = d.meta.methods?.find(
1282
+ const l = d.meta.methods?.find(
1283
1283
  (h) => h.id === r
1284
1284
  );
1285
- if (u)
1285
+ if (l)
1286
1286
  return {
1287
1287
  id: t,
1288
1288
  kind: s,
1289
- names: [u.name],
1290
- inputs: H(u.inputs),
1291
- outputs: tt(u.outputs)
1289
+ names: [l.name],
1290
+ inputs: H(l.inputs),
1291
+ outputs: tt(l.outputs)
1292
1292
  };
1293
1293
  }
1294
1294
  }
1295
1295
  } else if (s === "multipleRefMethod") {
1296
- if (nt(l.key) && c.settings && c.settings.comp) {
1297
- const d = o[c.settings.comp];
1296
+ if (nt(_.key) && c.comp) {
1297
+ const d = o[c.comp];
1298
1298
  if (d) {
1299
- const u = d.meta.methods?.find(
1299
+ const l = d.meta.methods?.find(
1300
1300
  (h) => h.id === r
1301
1301
  );
1302
- if (u)
1302
+ if (l)
1303
1303
  return {
1304
1304
  id: t,
1305
1305
  kind: s,
1306
- names: [u.name],
1307
- inputs: H(u.inputs),
1308
- outputs: tt(u.outputs)
1306
+ names: [l.name],
1307
+ inputs: H(l.inputs),
1308
+ outputs: tt(l.outputs)
1309
1309
  };
1310
1310
  }
1311
1311
  }
1312
1312
  } else if (s === "customMethod") {
1313
- if (L(l.key) && e.type === "comp") {
1313
+ if (L(_.key) && e.type === "comp") {
1314
1314
  const d = n.meta.methods?.find(
1315
- (u) => u.id === r
1315
+ (l) => l.id === r
1316
1316
  );
1317
1317
  if (d)
1318
1318
  return {
@@ -1324,10 +1324,10 @@ function $e(t) {
1324
1324
  };
1325
1325
  }
1326
1326
  } else if (s === "customSlotMethod") {
1327
- if (L(l.key) && e.type === "comp" && n.meta.slots) {
1328
- const { slotId: d, methodId: u } = Qe(r), h = n.meta.slots.find((p) => p.id === d);
1327
+ if (L(_.key) && e.type === "comp" && n.meta.slots) {
1328
+ const { slotId: d, methodId: l } = Qe(r), h = n.meta.slots.find((p) => p.id === d);
1329
1329
  if (h && h.methods) {
1330
- const p = h.methods.find((f) => f.id === u);
1330
+ const p = h.methods.find((f) => f.id === l);
1331
1331
  if (p)
1332
1332
  return {
1333
1333
  id: t,
@@ -1339,14 +1339,14 @@ function $e(t) {
1339
1339
  }
1340
1340
  }
1341
1341
  } else if (s === "adaptSlotElementMethod") {
1342
- if (L(l.key) && e.type === "comp") {
1342
+ if (L(_.key) && e.type === "comp") {
1343
1343
  const {
1344
1344
  elementKey: d,
1345
- slotKey: u,
1345
+ slotKey: l,
1346
1346
  methodKey: h
1347
1347
  } = us(r), p = V[d];
1348
1348
  if (p && p.slots) {
1349
- const f = p.slots.find((T) => T.key === u);
1349
+ const f = p.slots.find((T) => T.key === l);
1350
1350
  if (f && f.methods) {
1351
1351
  const T = f.methods.find((E) => E.key === h);
1352
1352
  if (T)
@@ -1360,10 +1360,10 @@ function $e(t) {
1360
1360
  }
1361
1361
  }
1362
1362
  }
1363
- } else if (s === "adaptSlotCustomMethod" && L(l.key) && e.type === "comp") {
1364
- const { compId: d, slotId: u, methodId: h } = Qe(r), p = o[d];
1363
+ } else if (s === "adaptSlotCustomMethod" && L(_.key) && e.type === "comp") {
1364
+ const { compId: d, slotId: l, methodId: h } = Qe(r), p = o[d];
1365
1365
  if (p && p.meta.slots) {
1366
- const f = p.meta.slots.find((T) => T.id === u);
1366
+ const f = p.meta.slots.find((T) => T.id === l);
1367
1367
  if (f && f.methods) {
1368
1368
  const T = f.methods.find((E) => E.id === h);
1369
1369
  if (T)
@@ -1428,14 +1428,14 @@ function Ut(t) {
1428
1428
  };
1429
1429
  }
1430
1430
  } else if (o === "customSlotMethod" && s === "globality" && e.type === "comp" && n.meta.slots) {
1431
- const { slotId: r, methodId: c } = Qe(a), l = n.meta.slots.find((d) => d.id === r);
1432
- if (l && l.methods) {
1433
- const d = l.methods.find((u) => u.id === c);
1431
+ const { slotId: r, methodId: c } = Qe(a), _ = n.meta.slots.find((d) => d.id === r);
1432
+ if (_ && _.methods) {
1433
+ const d = _.methods.find((l) => l.id === c);
1434
1434
  if (d)
1435
1435
  return {
1436
1436
  id: t,
1437
1437
  kind: o,
1438
- names: [l.name, d.name],
1438
+ names: [_.name, d.name],
1439
1439
  inputs: H(d.inputs),
1440
1440
  outputs: tt(d.outputs)
1441
1441
  };
@@ -1469,30 +1469,30 @@ function js(t, e, n) {
1469
1469
  if (t.events && t.events.length > 0)
1470
1470
  return !1;
1471
1471
  if (et(t.key) && n) {
1472
- const l = c[n];
1473
- if (l && l.meta.events && l.meta.events.length > 0)
1472
+ const _ = c[n];
1473
+ if (_ && _.meta.events && _.meta.events.length > 0)
1474
1474
  return !1;
1475
1475
  }
1476
1476
  if (nt(t.key) && n) {
1477
- const l = c[n];
1478
- if (l && l.meta.events && l.meta.events.length > 0)
1477
+ const _ = c[n];
1478
+ if (_ && _.meta.events && _.meta.events.length > 0)
1479
1479
  return !1;
1480
1480
  }
1481
1481
  if (L(t.key) && s.type === "comp" && r.meta.events && r.meta.events.length > 0)
1482
1482
  return !1;
1483
1483
  if (o[t.key] && o[t.key][e]) {
1484
- for (const { keys: l, raw: d } of o[t.key][e])
1485
- if (!ke(l, d))
1484
+ for (const { keys: _, raw: d } of o[t.key][e])
1485
+ if (!ke(_, d))
1486
1486
  return !1;
1487
1487
  }
1488
1488
  if (et(t.key) && n) {
1489
- const l = c[n];
1490
- if (l && l.meta.properties && l.meta.properties.length > 0)
1489
+ const _ = c[n];
1490
+ if (_ && _.meta.properties && _.meta.properties.length > 0)
1491
1491
  return !1;
1492
1492
  }
1493
1493
  if (nt(t.key) && n) {
1494
- const l = c[n];
1495
- if (l && l.meta.properties && l.meta.properties.length > 0)
1494
+ const _ = c[n];
1495
+ if (_ && _.meta.properties && _.meta.properties.length > 0)
1496
1496
  return !1;
1497
1497
  }
1498
1498
  if (L(t.key) && s.type === "comp" && r.meta.properties && r.meta.properties.length > 0)
@@ -1541,8 +1541,8 @@ function Js(t, e, n) {
1541
1541
  function qs(t, e, n) {
1542
1542
  const { properties: o } = I.runtime, { activeObject: s, activeComp: a, depends: r } = I.app;
1543
1543
  if (o[t.key] && o[t.key][e]) {
1544
- for (const { keys: c, raw: l } of o[t.key][e])
1545
- if (!ke(c, l))
1544
+ for (const { keys: c, raw: _ } of o[t.key][e])
1545
+ if (!ke(c, _))
1546
1546
  return !1;
1547
1547
  }
1548
1548
  if (et(t.key) && n) {
@@ -1570,7 +1570,7 @@ function Z(t) {
1570
1570
  console.assert(!1, "invalid element", o.key);
1571
1571
  continue;
1572
1572
  }
1573
- if (!_o(t, s, n, o.settings?.comp))
1573
+ if (!_o(t, s, n, o.comp))
1574
1574
  return !0;
1575
1575
  }
1576
1576
  return !1;
@@ -1585,7 +1585,7 @@ function zt(t) {
1585
1585
  console.assert(!1, "invalid element", s.key);
1586
1586
  continue;
1587
1587
  }
1588
- _o(t, a, o, s.settings?.comp) || n.push({
1588
+ _o(t, a, o, s.comp) || n.push({
1589
1589
  id: s.id,
1590
1590
  key: s.key,
1591
1591
  name: a.name,
@@ -1622,16 +1622,16 @@ function Wt(t, e) {
1622
1622
  const { properties: n } = I.runtime, { activeObject: o, activeComp: s, depends: a } = I.app, r = [], c = Vt(o.type, o.subtype);
1623
1623
  if (!c)
1624
1624
  return r;
1625
- const l = o.nodes.find((u) => u.id === t);
1626
- if (!l)
1625
+ const _ = o.nodes.find((l) => l.id === t);
1626
+ if (!_)
1627
1627
  return r;
1628
- const d = V[l.key];
1628
+ const d = V[_.key];
1629
1629
  if (!d)
1630
- return console.assert(!1, "invalid element", l.key), r;
1630
+ return console.assert(!1, "invalid element", _.key), r;
1631
1631
  if (n[d.key] && n[d.key][c])
1632
- for (const { keys: u, names: h, raw: p } of n[d.key][c])
1633
- e === "write" && ke(u, p) || r.push({
1634
- id: kt("elementProperty", t, u),
1632
+ for (const { keys: l, names: h, raw: p } of n[d.key][c])
1633
+ e === "write" && ke(l, p) || r.push({
1634
+ id: kt("elementProperty", t, l),
1635
1635
  kind: "elementProperty",
1636
1636
  names: h,
1637
1637
  meta: {
@@ -1639,10 +1639,10 @@ function Wt(t, e) {
1639
1639
  raw: p
1640
1640
  }
1641
1641
  });
1642
- if (et(d.key) && l.settings && l.settings.comp) {
1643
- const u = a[l.settings.comp];
1644
- if (u && u.meta.properties)
1645
- for (const { id: h, name: p, type: f } of u.meta.properties)
1642
+ if (et(d.key) && _.comp) {
1643
+ const l = a[_.comp];
1644
+ if (l && l.meta.properties)
1645
+ for (const { id: h, name: p, type: f } of l.meta.properties)
1646
1646
  r.push({
1647
1647
  id: kt("refProperty", t, h),
1648
1648
  kind: "refProperty",
@@ -1652,10 +1652,10 @@ function Wt(t, e) {
1652
1652
  }
1653
1653
  });
1654
1654
  }
1655
- if (nt(d.key) && l.settings && l.settings.comp) {
1656
- const u = a[l.settings.comp];
1657
- if (u && u.meta.properties)
1658
- for (const { id: h, name: p, type: f } of u.meta.properties)
1655
+ if (nt(d.key) && _.comp) {
1656
+ const l = a[_.comp];
1657
+ if (l && l.meta.properties)
1658
+ for (const { id: h, name: p, type: f } of l.meta.properties)
1659
1659
  r.push({
1660
1660
  id: kt("multipleRefProperty", t, h),
1661
1661
  kind: "multipleRefProperty",
@@ -1666,38 +1666,38 @@ function Wt(t, e) {
1666
1666
  });
1667
1667
  }
1668
1668
  if (L(d.key) && o.type === "comp" && s.meta.properties)
1669
- for (const { id: u, name: h, type: p } of s.meta.properties)
1669
+ for (const { id: l, name: h, type: p } of s.meta.properties)
1670
1670
  r.push({
1671
- id: kt("customProperty", t, u),
1671
+ id: kt("customProperty", t, l),
1672
1672
  kind: "customProperty",
1673
1673
  names: [h],
1674
1674
  meta: {
1675
1675
  raw: { type: p }
1676
1676
  }
1677
1677
  });
1678
- if (io(d.key) && l.settings && l.settings.slot && o.type === "comp" && s.meta.slots) {
1679
- const u = s.meta.slots.find(
1680
- (h) => h.id === l.settings.slot
1678
+ if (io(d.key) && _.slot && o.type === "comp" && s.meta.slots) {
1679
+ const l = s.meta.slots.find(
1680
+ (h) => h.id === _.slot
1681
1681
  );
1682
- if (u && u.properties)
1683
- for (const h of u.properties)
1682
+ if (l && l.properties)
1683
+ for (const h of l.properties)
1684
1684
  r.push({
1685
1685
  id: kt("customSlotProperty", t, h.id),
1686
1686
  kind: "customSlotProperty",
1687
- names: [u.name, h.name],
1687
+ names: [l.name, h.name],
1688
1688
  meta: {
1689
1689
  raw: { type: h.type }
1690
1690
  }
1691
1691
  });
1692
1692
  }
1693
- if (L(d.key) && o.type === "comp" && l.settings && l.settings.adaptSlot) {
1694
- const u = ae(l.settings.adaptSlot);
1695
- if (u) {
1696
- if (u.kind === "elementSlot") {
1697
- const h = V[u.mainKey];
1693
+ if (L(d.key) && o.type === "comp" && _.adaptSlot) {
1694
+ const l = ae(_.adaptSlot);
1695
+ if (l) {
1696
+ if (l.kind === "elementSlot") {
1697
+ const h = V[l.mainKey];
1698
1698
  if (h && h.slots) {
1699
1699
  const p = h.slots.find(
1700
- (f) => f.key === u.slotKey
1700
+ (f) => f.key === l.slotKey
1701
1701
  );
1702
1702
  if (p && p.properties)
1703
1703
  for (const f of p.properties)
@@ -1718,11 +1718,11 @@ function Wt(t, e) {
1718
1718
  }
1719
1719
  });
1720
1720
  }
1721
- } else if (u.kind === "customSlot") {
1722
- const h = a[u.mainKey];
1721
+ } else if (l.kind === "customSlot") {
1722
+ const h = a[l.mainKey];
1723
1723
  if (h && h.meta.slots) {
1724
1724
  const p = h.meta.slots.find(
1725
- (f) => f.id === u.slotKey
1725
+ (f) => f.id === l.slotKey
1726
1726
  );
1727
1727
  if (p && p.properties)
1728
1728
  for (const f of p.properties)
@@ -1731,7 +1731,7 @@ function Wt(t, e) {
1731
1731
  "adaptSlotCustomProperty",
1732
1732
  t,
1733
1733
  qe(
1734
- u.mainKey,
1734
+ l.mainKey,
1735
1735
  p.id,
1736
1736
  f.id
1737
1737
  )
@@ -1754,18 +1754,18 @@ function Nt(t) {
1754
1754
  const { properties: e } = I.runtime, { activeObject: n, activeComp: o, depends: s } = I.app, a = Vt(n.type, n.subtype);
1755
1755
  if (!a)
1756
1756
  return;
1757
- const { kind: r, nodeId: c, propertyKey: l } = _s(t), d = n.nodes.find((h) => h.id === c);
1757
+ const { kind: r, nodeId: c, propertyKey: _ } = _s(t), d = n.nodes.find((h) => h.id === c);
1758
1758
  if (!d)
1759
1759
  return;
1760
- const u = V[d.key];
1761
- if (!u) {
1760
+ const l = V[d.key];
1761
+ if (!l) {
1762
1762
  console.assert(!1, "invalid element", d.key);
1763
1763
  return;
1764
1764
  }
1765
1765
  if (r === "elementProperty") {
1766
- if (e[u.key] && e[u.key][a]) {
1767
- const h = e[u.key][a].find(
1768
- (p) => p.keys === l
1766
+ if (e[l.key] && e[l.key][a]) {
1767
+ const h = e[l.key][a].find(
1768
+ (p) => p.keys === _
1769
1769
  );
1770
1770
  if (h)
1771
1771
  return {
@@ -1779,11 +1779,11 @@ function Nt(t) {
1779
1779
  };
1780
1780
  }
1781
1781
  } else if (r === "referenceProperty") {
1782
- if (et(u.key) && d.settings && d.settings.comp) {
1783
- const h = s[d.settings.comp];
1782
+ if (et(l.key) && d.comp) {
1783
+ const h = s[d.comp];
1784
1784
  if (h) {
1785
1785
  const p = h.meta.properties?.find(
1786
- (f) => f.id === l
1786
+ (f) => f.id === _
1787
1787
  );
1788
1788
  if (p)
1789
1789
  return {
@@ -1797,11 +1797,11 @@ function Nt(t) {
1797
1797
  }
1798
1798
  }
1799
1799
  } else if (r === "multipleRefProperty") {
1800
- if (nt(u.key) && d.settings && d.settings.comp) {
1801
- const h = s[d.settings.comp];
1800
+ if (nt(l.key) && d.comp) {
1801
+ const h = s[d.comp];
1802
1802
  if (h) {
1803
1803
  const p = h.meta.properties?.find(
1804
- (f) => f.id === l
1804
+ (f) => f.id === _
1805
1805
  );
1806
1806
  if (p)
1807
1807
  return {
@@ -1815,9 +1815,9 @@ function Nt(t) {
1815
1815
  }
1816
1816
  }
1817
1817
  } else if (r === "customProperty") {
1818
- if (L(u.key) && n.type === "comp") {
1818
+ if (L(l.key) && n.type === "comp") {
1819
1819
  const h = o.meta.properties?.find(
1820
- (p) => p.id === l
1820
+ (p) => p.id === _
1821
1821
  );
1822
1822
  if (h)
1823
1823
  return {
@@ -1830,12 +1830,12 @@ function Nt(t) {
1830
1830
  };
1831
1831
  }
1832
1832
  } else if (r === "customSlotProperty") {
1833
- if (io(u.key) && d.settings && d.settings.slot && n.type === "comp" && o.meta.slots) {
1833
+ if (io(l.key) && d.slot && n.type === "comp" && o.meta.slots) {
1834
1834
  const h = o.meta.slots.find(
1835
- (p) => p.id === d.settings.slot
1835
+ (p) => p.id === d.slot
1836
1836
  );
1837
1837
  if (h && h.properties) {
1838
- const p = h.properties.find((f) => f.id === l);
1838
+ const p = h.properties.find((f) => f.id === _);
1839
1839
  if (p)
1840
1840
  return {
1841
1841
  id: t,
@@ -1848,12 +1848,12 @@ function Nt(t) {
1848
1848
  }
1849
1849
  }
1850
1850
  } else if (r === "adaptSlotElementProperty") {
1851
- if (L(u.key) && n.type === "comp") {
1851
+ if (L(l.key) && n.type === "comp") {
1852
1852
  const {
1853
1853
  elementKey: h,
1854
1854
  slotKey: p,
1855
1855
  propertyKey: f
1856
- } = qn(l), T = V[h];
1856
+ } = qn(_), T = V[h];
1857
1857
  if (T && T.slots) {
1858
1858
  const E = T.slots.find((y) => y.key === p);
1859
1859
  if (E && E.properties) {
@@ -1872,8 +1872,8 @@ function Nt(t) {
1872
1872
  }
1873
1873
  }
1874
1874
  }
1875
- } else if (r === "adaptSlotCustomProperty" && L(u.key) && n.type === "comp") {
1876
- const { compId: h, slotId: p, propertyId: f } = Je(l), T = s[h];
1875
+ } else if (r === "adaptSlotCustomProperty" && L(l.key) && n.type === "comp") {
1876
+ const { compId: h, slotId: p, propertyId: f } = Je(_), T = s[h];
1877
1877
  if (T && T.meta.slots) {
1878
1878
  const E = T.meta.slots.find((y) => y.id === p);
1879
1879
  if (E && E.properties) {
@@ -2189,7 +2189,7 @@ i.forBlock.trigger_app_event_v1 = function(t) {
2189
2189
  const r = i.valueToCode(
2190
2190
  n,
2191
2191
  "PARAM" + a,
2192
- _.NONE
2192
+ u.NONE
2193
2193
  );
2194
2194
  o && (o += ", "), o += r;
2195
2195
  }
@@ -2238,7 +2238,7 @@ g([
2238
2238
  }
2239
2239
  ]);
2240
2240
  i.forBlock.app_debug_trace_v1 = function(t) {
2241
- return `__debugTraceV1__(${i.valueToCode(t, "OBJECT", _.NONE)});
2241
+ return `__debugTraceV1__(${i.valueToCode(t, "OBJECT", u.NONE)});
2242
2242
  `;
2243
2243
  };
2244
2244
  const ti = {
@@ -2272,7 +2272,7 @@ const ti = {
2272
2272
  };
2273
2273
  A.open_confirm_dlg_v1 = ti;
2274
2274
  i.forBlock.open_confirm_dlg_v1 = function(t) {
2275
- const e = i.valueToCode(t, "TITLE", _.ATOMIC), n = i.valueToCode(t, "TEXT", _.ATOMIC), o = i.statementToCode(t, "HANDLE");
2275
+ const e = i.valueToCode(t, "TITLE", u.ATOMIC), n = i.valueToCode(t, "TEXT", u.ATOMIC), o = i.statementToCode(t, "HANDLE");
2276
2276
  return `{
2277
2277
  var __result__ = await __openConfirmDlgV1__(${e}, ${n});
2278
2278
  ${o}}
@@ -2311,7 +2311,7 @@ const ei = {
2311
2311
  };
2312
2312
  A.open_prompt_dlg_v1 = ei;
2313
2313
  i.forBlock.open_prompt_dlg_v1 = function(t) {
2314
- const e = i.valueToCode(t, "TITLE", _.ATOMIC), n = i.valueToCode(t, "LABEL", _.ATOMIC), o = i.valueToCode(t, "VALUE", _.ATOMIC), s = i.statementToCode(t, "HANDLE");
2314
+ const e = i.valueToCode(t, "TITLE", u.ATOMIC), n = i.valueToCode(t, "LABEL", u.ATOMIC), o = i.valueToCode(t, "VALUE", u.ATOMIC), s = i.statementToCode(t, "HANDLE");
2315
2315
  return `{
2316
2316
  var __result__ = await __openPromptDlgV1__(${e}, ${n}, ${o});
2317
2317
  ${s}}
@@ -2345,7 +2345,7 @@ g([
2345
2345
  }
2346
2346
  ]);
2347
2347
  i.forBlock.popup_message_v1 = function(t) {
2348
- const e = i.quote_(t.getFieldValue("TYPE")), n = i.valueToCode(t, "TEXT", _.ATOMIC);
2348
+ const e = i.quote_(t.getFieldValue("TYPE")), n = i.valueToCode(t, "TEXT", u.ATOMIC);
2349
2349
  return `__messageV1__(${e}, ${n});
2350
2350
  `;
2351
2351
  };
@@ -2511,37 +2511,37 @@ A.call_app_method_v1 = ni;
2511
2511
  i.forBlock.call_app_method_v1 = function(t) {
2512
2512
  const e = i.INDENT, n = i.quote_, o = t;
2513
2513
  let s;
2514
- o.method.kind === "multipleRefMethod" && (s = i.valueToCode(o, "REF_KEY", _.NONE) || "''");
2514
+ o.method.kind === "multipleRefMethod" && (s = i.valueToCode(o, "REF_KEY", u.NONE) || "''");
2515
2515
  let a = "{";
2516
2516
  if (o.method.inputs)
2517
2517
  for (let c = 0; c < o.method.inputs.length; c++) {
2518
- const { key: l, type: d } = o.method.inputs[c];
2519
- let u = i.valueToCode(
2518
+ const { key: _, type: d } = o.method.inputs[c];
2519
+ let l = i.valueToCode(
2520
2520
  o,
2521
2521
  "INPUT" + c,
2522
- _.ATOMIC
2522
+ u.ATOMIC
2523
2523
  );
2524
- if (u === void 0)
2524
+ if (l === void 0)
2525
2525
  switch (d) {
2526
2526
  case "string":
2527
- u = "''";
2527
+ l = "''";
2528
2528
  break;
2529
2529
  case "number":
2530
- u = "0";
2530
+ l = "0";
2531
2531
  break;
2532
2532
  case "boolean":
2533
- u = "false";
2533
+ l = "false";
2534
2534
  break;
2535
2535
  case "array":
2536
- u = "[]";
2536
+ l = "[]";
2537
2537
  break;
2538
2538
  case "object":
2539
- u = "{}";
2539
+ l = "{}";
2540
2540
  break;
2541
2541
  default:
2542
- u = "null";
2542
+ l = "null";
2543
2543
  }
2544
- a !== "{" && (a += ", "), a += `${n(l)}: ${u}`;
2544
+ a !== "{" && (a += ", "), a += `${n(_)}: ${l}`;
2545
2545
  }
2546
2546
  a += "}";
2547
2547
  let r = "";
@@ -2552,10 +2552,10 @@ i.forBlock.call_app_method_v1 = function(t) {
2552
2552
  if (o.method.kind === "customMethod") {
2553
2553
  const { methodKey: c } = qt(o.method.id);
2554
2554
  if (o.method.outputs && o.method.outputs.length > 0) {
2555
- const l = i.statementToCode(o, "HANDLE");
2555
+ const _ = i.statementToCode(o, "HANDLE");
2556
2556
  return `{
2557
2557
  var __outputs__ = __implementMethod$${c}__(${a});
2558
- ${r}${l}}
2558
+ ${r}${_}}
2559
2559
  `;
2560
2560
  } else
2561
2561
  return `__implementMethod$${c}__(${a});
@@ -2660,8 +2660,8 @@ i.forBlock.implement_app_method_v1 = function(t) {
2660
2660
  const e = i.INDENT, n = i.quote_, o = t, { methodKey: s } = qt(o.method.id);
2661
2661
  let a = "";
2662
2662
  if (o.method.inputs)
2663
- for (const { key: l } of o.method.inputs)
2664
- a += `${e}var __input$${l}__ = __inputs__[${n(l)}];
2663
+ for (const { key: _ } of o.method.inputs)
2664
+ a += `${e}var __input$${_}__ = __inputs__[${n(_)}];
2665
2665
  `;
2666
2666
  const r = i.statementToCode(o, "HANDLE");
2667
2667
  return `async function __implementMethod$${s}__(__inputs__) {
@@ -2793,7 +2793,7 @@ const si = {
2793
2793
  A.set_app_method_output_v1 = si;
2794
2794
  i.forBlock.set_app_method_output_v1 = function(t) {
2795
2795
  const e = i.quote_, n = t;
2796
- let o = i.valueToCode(n, "VALUE", _.ATOMIC);
2796
+ let o = i.valueToCode(n, "VALUE", u.ATOMIC);
2797
2797
  if (o === void 0)
2798
2798
  switch (n.output.type) {
2799
2799
  case "string":
@@ -2838,7 +2838,7 @@ g([
2838
2838
  }
2839
2839
  ]);
2840
2840
  i.forBlock.app_env_is_v1 = function(t) {
2841
- return [`__getEnvV1__() === ${i.quote_(t.getFieldValue("ENV"))}`, _.ATOMIC];
2841
+ return [`__getEnvV1__() === ${i.quote_(t.getFieldValue("ENV"))}`, u.ATOMIC];
2842
2842
  };
2843
2843
  const ii = {
2844
2844
  init: function() {
@@ -2988,7 +2988,7 @@ const ai = {
2988
2988
  A.select_comp_v1 = ai;
2989
2989
  i.forBlock.select_comp_v1 = function(t) {
2990
2990
  const e = i.quote_, o = t.comp.id ?? "";
2991
- return [e(o), _.ATOMIC];
2991
+ return [e(o), u.ATOMIC];
2992
2992
  };
2993
2993
  const ci = {
2994
2994
  init: function() {
@@ -3046,7 +3046,7 @@ const ci = {
3046
3046
  A.select_slot_v1 = ci;
3047
3047
  i.forBlock.select_slot_v1 = function(t) {
3048
3048
  const e = i.quote_, o = t.slot.id ?? "";
3049
- return [e(o), _.ATOMIC];
3049
+ return [e(o), u.ATOMIC];
3050
3050
  };
3051
3051
  const ri = {
3052
3052
  init: function() {
@@ -3151,7 +3151,7 @@ const ri = {
3151
3151
  A.get_app_property_v1 = ri;
3152
3152
  i.forBlock.get_app_property_v1 = function(t) {
3153
3153
  const e = i.quote_;
3154
- return [`__getPropertyV1__(${e(t.property.id)}, ${e("")})`, _.ATOMIC];
3154
+ return [`__getPropertyV1__(${e(t.property.id)}, ${e("")})`, u.ATOMIC];
3155
3155
  };
3156
3156
  const ui = {
3157
3157
  init: function() {
@@ -3271,7 +3271,7 @@ const ui = {
3271
3271
  };
3272
3272
  A.set_app_property_v1 = ui;
3273
3273
  i.forBlock.set_app_property_v1 = function(t) {
3274
- const e = i.quote_, n = t, o = "", s = i.valueToCode(n, "VALUE", _.NONE);
3274
+ const e = i.quote_, n = t, o = "", s = i.valueToCode(n, "VALUE", u.NONE);
3275
3275
  return `__setPropertyV1__(${e(n.property.id)}, ${e(o)}, ${s});
3276
3276
  `;
3277
3277
  };
@@ -3337,7 +3337,7 @@ const li = {
3337
3337
  A.get_app_state_v1 = li;
3338
3338
  i.forBlock.get_app_state_v1 = function(t) {
3339
3339
  const e = i.quote_;
3340
- return [`__getStateV1__(${e(t.state.id)})`, _.ATOMIC];
3340
+ return [`__getStateV1__(${e(t.state.id)})`, u.ATOMIC];
3341
3341
  };
3342
3342
  const _i = {
3343
3343
  init: function() {
@@ -3405,7 +3405,7 @@ const _i = {
3405
3405
  };
3406
3406
  A.set_app_state_v1 = _i;
3407
3407
  i.forBlock.set_app_state_v1 = function(t) {
3408
- const e = i.quote_, n = t, o = i.valueToCode(n, "VALUE", _.NONE);
3408
+ const e = i.quote_, n = t, o = i.valueToCode(n, "VALUE", u.NONE);
3409
3409
  return `__setStateV1__(${e(n.state.id)}, ${o});
3410
3410
  `;
3411
3411
  };
@@ -3440,7 +3440,7 @@ g([
3440
3440
  }
3441
3441
  ]);
3442
3442
  i.forBlock.color_blend_v1 = function(t) {
3443
- const e = i.valueToCode(t, "COLOR1", _.NONE) || "'#ffffff'", n = i.valueToCode(t, "COLOR2", _.NONE) || "'#000000'", o = i.valueToCode(t, "RATIO", _.NONE) || 0.5;
3443
+ const e = i.valueToCode(t, "COLOR1", u.NONE) || "'#ffffff'", n = i.valueToCode(t, "COLOR2", u.NONE) || "'#000000'", o = i.valueToCode(t, "RATIO", u.NONE) || 0.5;
3444
3444
  return [`${i.provideFunction_(
3445
3445
  "colorBlend",
3446
3446
  `
@@ -3461,7 +3461,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(c1, c2, ratio) {
3461
3461
  return '#' + r + g + b;
3462
3462
  }
3463
3463
  `
3464
- )}(${e}, ${n}, ${o})`, _.FUNCTION_CALL];
3464
+ )}(${e}, ${n}, ${o})`, u.FUNCTION_CALL];
3465
3465
  };
3466
3466
  g([
3467
3467
  {
@@ -4042,7 +4042,7 @@ g([
4042
4042
  }
4043
4043
  ]);
4044
4044
  i.forBlock.color_picker_v1 = function(t) {
4045
- return [i.quote_(t.getFieldValue("COLOR")), _.ATOMIC];
4045
+ return [i.quote_(t.getFieldValue("COLOR")), u.ATOMIC];
4046
4046
  };
4047
4047
  g([
4048
4048
  {
@@ -4063,7 +4063,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}() {
4063
4063
  return '#' + ('00000' + num.toString(16)).substr(-6);
4064
4064
  }
4065
4065
  `
4066
- )}()`, _.FUNCTION_CALL];
4066
+ )}()`, u.FUNCTION_CALL];
4067
4067
  };
4068
4068
  g([
4069
4069
  {
@@ -4096,7 +4096,7 @@ g([
4096
4096
  }
4097
4097
  ]);
4098
4098
  i.forBlock.color_rgb_v1 = function(t) {
4099
- const e = i.valueToCode(t, "RED", _.NONE) || 0, n = i.valueToCode(t, "GREEN", _.NONE) || 0, o = i.valueToCode(t, "BLUE", _.NONE) || 0;
4099
+ const e = i.valueToCode(t, "RED", u.NONE) || 0, n = i.valueToCode(t, "GREEN", u.NONE) || 0, o = i.valueToCode(t, "BLUE", u.NONE) || 0;
4100
4100
  return [`${i.provideFunction_(
4101
4101
  "colorRgb",
4102
4102
  `
@@ -4110,7 +4110,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
4110
4110
  return '#' + r + g + b;
4111
4111
  }
4112
4112
  `
4113
- )}(${e}, ${n}, ${o})`, _.FUNCTION_CALL];
4113
+ )}(${e}, ${n}, ${o})`, u.FUNCTION_CALL];
4114
4114
  };
4115
4115
  const pi = N.xml, di = [
4116
4116
  {
@@ -4239,7 +4239,7 @@ const fi = {
4239
4239
  };
4240
4240
  A.parameter_v1 = fi;
4241
4241
  i.forBlock.parameter_v1 = function(t) {
4242
- return [t.key, _.ATOMIC];
4242
+ return [t.key, u.ATOMIC];
4243
4243
  };
4244
4244
  const mi = {
4245
4245
  init: function() {
@@ -4449,22 +4449,22 @@ i.forBlock.call_func_v1 = function(t) {
4449
4449
  const f = i.valueToCode(
4450
4450
  o,
4451
4451
  "INPUT" + p,
4452
- _.ATOMIC
4452
+ u.ATOMIC
4453
4453
  );
4454
4454
  r += `${e}${e}${n(h)}: ${f},
4455
4455
  `;
4456
4456
  }), r += `${e}};`;
4457
4457
  const c = n(o.space.name + "/" + o.func.name);
4458
- let l = "";
4458
+ let _ = "";
4459
4459
  o.func.outputs.forEach(({ id: h }) => {
4460
- l += `${e}var __output${h}__ = __result__[${n(h)}];
4460
+ _ += `${e}var __output${h}__ = __result__[${n(h)}];
4461
4461
  `;
4462
4462
  });
4463
4463
  const d = i.statementToCode(o, "CALLBACK");
4464
4464
  return `{
4465
4465
  ${r}
4466
4466
  ${e}var __result__ = __callFuncV1__(${s},${a},__inputs__,__getEnvV1__(),${c});
4467
- ${l}${d}}
4467
+ ${_}${d}}
4468
4468
  `;
4469
4469
  };
4470
4470
  const gi = {
@@ -4623,15 +4623,15 @@ i.forBlock.call_func_internal_v1 = function(t) {
4623
4623
  const f = i.valueToCode(
4624
4624
  o,
4625
4625
  "INPUT" + p,
4626
- _.ATOMIC
4626
+ u.ATOMIC
4627
4627
  );
4628
4628
  r += `${e}${e}${n(h)}: ${f},
4629
4629
  `;
4630
4630
  }), r += `${e}};`;
4631
4631
  const c = o.space.name + "/" + o.func.name;
4632
- let l = "";
4632
+ let _ = "";
4633
4633
  o.func.outputs.forEach(({ id: h }) => {
4634
- l += `${e}var __output$${h}__ = __result__.outputs[${n(h)}];
4634
+ _ += `${e}var __output$${h}__ = __result__.outputs[${n(h)}];
4635
4635
  `;
4636
4636
  });
4637
4637
  const d = i.statementToCode(o, "CALLBACK");
@@ -4641,7 +4641,7 @@ ${e}var __result__ = __callFuncInternalV1__(${s}, ${a}, __inputs__);
4641
4641
  ${e}if (!__result__.success) {
4642
4642
  ${e}${e}throw 'call func<${c}> failed, reason: ' + __result__.message;
4643
4643
  ${e}}
4644
- ${l}${d}}
4644
+ ${_}${d}}
4645
4645
  `;
4646
4646
  };
4647
4647
  const Ai = {
@@ -4789,7 +4789,7 @@ const Ii = {
4789
4789
  A.set_func_output_v1 = Ii;
4790
4790
  i.forBlock.set_func_output_v1 = function(t) {
4791
4791
  const e = i.quote_, n = t, { id: o, type: s } = n.output;
4792
- let a = i.valueToCode(n, "VALUE", _.ATOMIC);
4792
+ let a = i.valueToCode(n, "VALUE", u.ATOMIC);
4793
4793
  if (a === void 0)
4794
4794
  switch (s) {
4795
4795
  case "string":
@@ -4832,7 +4832,7 @@ g([
4832
4832
  }
4833
4833
  ]);
4834
4834
  i.forBlock.compute_debug_trace_v1 = function(t) {
4835
- return `__debugTraceV1__(${i.valueToCode(t, "OBJECT", _.ATOMIC)});
4835
+ return `__debugTraceV1__(${i.valueToCode(t, "OBJECT", u.ATOMIC)});
4836
4836
  `;
4837
4837
  };
4838
4838
  g([
@@ -4856,7 +4856,7 @@ g([
4856
4856
  }
4857
4857
  ]);
4858
4858
  i.forBlock.compute_env_is_v1 = function(t) {
4859
- return [`__getEnvV1__() === ${i.quote_(t.getFieldValue("ENV"))}`, _.ATOMIC];
4859
+ return [`__getEnvV1__() === ${i.quote_(t.getFieldValue("ENV"))}`, u.ATOMIC];
4860
4860
  };
4861
4861
  function at() {
4862
4862
  const t = [];
@@ -4931,9 +4931,9 @@ function Oi(t) {
4931
4931
  },
4932
4932
  itemCount: c.columns.length
4933
4933
  }, o = {};
4934
- for (let l = 0; l < c.columns.length; l++) {
4935
- const d = c.columns[l];
4936
- o["COLUMN" + l] = d.id;
4934
+ for (let _ = 0; _ < c.columns.length; _++) {
4935
+ const d = c.columns[_];
4936
+ o["COLUMN" + _] = d.id;
4937
4937
  }
4938
4938
  }
4939
4939
  }
@@ -4993,7 +4993,7 @@ const Ci = {
4993
4993
  };
4994
4994
  A.add_data_v1 = Ci;
4995
4995
  i.forBlock.add_data_v1 = function(t) {
4996
- const e = i.INDENT, n = i.valueToCode(t, "TABLE", _.ATOMIC) || "null", o = i.statementToCode(t, "HANDLE");
4996
+ const e = i.INDENT, n = i.valueToCode(t, "TABLE", u.ATOMIC) || "null", o = i.statementToCode(t, "HANDLE");
4997
4997
  return `{
4998
4998
  ${e}var __tx__ = typeof(__tx__) !== 'undefined' ? __tx__ : null;
4999
4999
  ${e}var __table__ = ${n};
@@ -5170,7 +5170,7 @@ const ki = {
5170
5170
  };
5171
5171
  A.cond_atomic_v1 = ki;
5172
5172
  i.forBlock.cond_atomic_v1 = function(t) {
5173
- const e = i.quote_, n = t, o = n.column.name, s = i.valueToCode(n, "VALUE", _.ATOMIC) || null, r = {
5173
+ const e = i.quote_, n = t, o = n.column.name, s = i.valueToCode(n, "VALUE", u.ATOMIC) || null, r = {
5174
5174
  EQ: "=",
5175
5175
  NEQ: "!=",
5176
5176
  LT: "<",
@@ -5178,7 +5178,7 @@ i.forBlock.cond_atomic_v1 = function(t) {
5178
5178
  GT: ">",
5179
5179
  GTE: ">="
5180
5180
  }[n.getFieldValue("OP")];
5181
- return [`{type:'ATOMIC',key:${e(o)},value:${s},operator:${e(r)}}`, _.ATOMIC];
5181
+ return [`{type:'ATOMIC',key:${e(o)},value:${s},operator:${e(r)}}`, u.ATOMIC];
5182
5182
  };
5183
5183
  const Si = {
5184
5184
  init: function() {
@@ -5268,13 +5268,13 @@ const Li = {
5268
5268
  };
5269
5269
  A.cond_logic_v1 = Li;
5270
5270
  i.forBlock.cond_logic_v1 = function(t) {
5271
- const e = i.quote_, n = t, o = n.getFieldValue("TYPE"), s = [], a = i.valueToCode(n, "VALUE", _.ATOMIC) || null;
5271
+ const e = i.quote_, n = t, o = n.getFieldValue("TYPE"), s = [], a = i.valueToCode(n, "VALUE", u.ATOMIC) || null;
5272
5272
  s.push(a);
5273
5273
  for (let c = 0; c < n.itemCount_; c++) {
5274
- const l = i.valueToCode(n, "ADD" + c, _.ATOMIC) || null;
5275
- s.push(l);
5274
+ const _ = i.valueToCode(n, "ADD" + c, u.ATOMIC) || null;
5275
+ s.push(_);
5276
5276
  }
5277
- return [`{type:${e(o)},entries:[${s}]}`, _.ATOMIC];
5277
+ return [`{type:${e(o)},entries:[${s}]}`, u.ATOMIC];
5278
5278
  };
5279
5279
  function Bi(t) {
5280
5280
  const e = t.getInput("TABLE").connection;
@@ -5368,7 +5368,7 @@ const Ri = {
5368
5368
  };
5369
5369
  A.delete_data_v1 = Ri;
5370
5370
  i.forBlock.delete_data_v1 = function(t) {
5371
- const e = i.INDENT, n = i.valueToCode(t, "TABLE", _.ATOMIC) || "null", o = i.valueToCode(t, "CONDITION", _.ATOMIC) || "null", s = i.statementToCode(t, "HANDLE");
5371
+ const e = i.INDENT, n = i.valueToCode(t, "TABLE", u.ATOMIC) || "null", o = i.valueToCode(t, "CONDITION", u.ATOMIC) || "null", s = i.statementToCode(t, "HANDLE");
5372
5372
  return `{
5373
5373
  ${e}var __tx__ = typeof(__tx__) !== 'undefined' ? __tx__ : null;
5374
5374
  ${e}var __table__ = ${n};
@@ -5401,7 +5401,7 @@ g([
5401
5401
  }
5402
5402
  ]);
5403
5403
  i.forBlock.interrupt_transaction_v1 = function(t) {
5404
- return `throw ${i.valueToCode(t, "VALUE", _.NONE) || "''"};
5404
+ return `throw ${i.valueToCode(t, "VALUE", u.NONE) || "''"};
5405
5405
  `;
5406
5406
  };
5407
5407
  function Di(t) {
@@ -5425,9 +5425,9 @@ function Di(t) {
5425
5425
  },
5426
5426
  itemCount: c.columns.length
5427
5427
  }, o = {};
5428
- for (let l = 0; l < c.columns.length; l++) {
5429
- const d = c.columns[l];
5430
- o["COLUMN" + l] = d.id, o["ALIAS" + l] = d.name;
5428
+ for (let _ = 0; _ < c.columns.length; _++) {
5429
+ const d = c.columns[_];
5430
+ o["COLUMN" + _] = d.id, o["ALIAS" + _] = d.name;
5431
5431
  }
5432
5432
  }
5433
5433
  }
@@ -5548,7 +5548,7 @@ const xi = {
5548
5548
  };
5549
5549
  A.query_data_v1 = xi;
5550
5550
  i.forBlock.query_data_v1 = function(t) {
5551
- const e = i.INDENT, n = i.valueToCode(t, "TABLE", _.ATOMIC) || "null", o = i.valueToCode(t, "CONDITION", _.ATOMIC) || "null", s = i.valueToCode(t, "EXTRA", _.ATOMIC) || "null", a = i.statementToCode(t, "HANDLE");
5551
+ const e = i.INDENT, n = i.valueToCode(t, "TABLE", u.ATOMIC) || "null", o = i.valueToCode(t, "CONDITION", u.ATOMIC) || "null", s = i.valueToCode(t, "EXTRA", u.ATOMIC) || "null", a = i.statementToCode(t, "HANDLE");
5552
5552
  return `{
5553
5553
  ${e}var __tx__ = typeof(__tx__) !== 'undefined' ? __tx__ : null;
5554
5554
  ${e}var __table__ = ${n};
@@ -5589,8 +5589,8 @@ g([
5589
5589
  }
5590
5590
  ]);
5591
5591
  i.forBlock.query_extra_limit_v1 = function(t) {
5592
- const e = i.valueToCode(t, "OFFSET", _.ATOMIC) || 0, n = i.valueToCode(t, "LIMIT", _.ATOMIC) || 0;
5593
- return [`{type:'limit',value:${e},value2:${n}}`, _.ATOMIC];
5592
+ const e = i.valueToCode(t, "OFFSET", u.ATOMIC) || 0, n = i.valueToCode(t, "LIMIT", u.ATOMIC) || 0;
5593
+ return [`{type:'limit',value:${e},value2:${n}}`, u.ATOMIC];
5594
5594
  };
5595
5595
  g([
5596
5596
  {
@@ -5616,8 +5616,8 @@ g([
5616
5616
  }
5617
5617
  ]);
5618
5618
  i.forBlock.query_extra_sortby_v1 = function(t) {
5619
- const e = i.valueToCode(t, "COLUMN", _.ATOMIC) || "''", n = i.valueToCode(t, "DESC", _.ATOMIC) || !1;
5620
- return [`{type:'sortby',value:${e},value2:${n}}`, _.ATOMIC];
5619
+ const e = i.valueToCode(t, "COLUMN", u.ATOMIC) || "''", n = i.valueToCode(t, "DESC", u.ATOMIC) || !1;
5620
+ return [`{type:'sortby',value:${e},value2:${n}}`, u.ATOMIC];
5621
5621
  };
5622
5622
  const Yi = {
5623
5623
  init: function() {
@@ -5843,14 +5843,14 @@ const wi = {
5843
5843
  A.select_column_v1 = wi;
5844
5844
  i.forBlock.select_column_v1 = function(t) {
5845
5845
  const e = i.quote_, n = t, o = n.space.id, s = n.table.id, a = [];
5846
- for (let l = 0; l < n.itemCount_; l++) {
5847
- const d = n.getFieldValue("COLUMN" + l), u = n.table.columns.find((p) => p.id === d).name, h = n.getFieldValue("ALIAS" + l);
5848
- a.push({ name: u, alias: h });
5846
+ for (let _ = 0; _ < n.itemCount_; _++) {
5847
+ const d = n.getFieldValue("COLUMN" + _), l = n.table.columns.find((p) => p.id === d).name, h = n.getFieldValue("ALIAS" + _);
5848
+ a.push({ name: l, alias: h });
5849
5849
  }
5850
5850
  let r = "[";
5851
- return a.forEach(({ name: l, alias: d }, u) => {
5852
- u !== 0 && (r += ","), r += `{name:${e(l)},alias:${e(d)}}`;
5853
- }), r += "]", [`{spaceId:${e(o)},tableId:${e(s)},columns:${r}}`, _.ATOMIC];
5851
+ return a.forEach(({ name: _, alias: d }, l) => {
5852
+ l !== 0 && (r += ","), r += `{name:${e(_)},alias:${e(d)}}`;
5853
+ }), r += "]", [`{spaceId:${e(o)},tableId:${e(s)},columns:${r}}`, u.ATOMIC];
5854
5854
  };
5855
5855
  const Ki = {
5856
5856
  init: function() {
@@ -5947,7 +5947,7 @@ const Ki = {
5947
5947
  A.select_table_v1 = Ki;
5948
5948
  i.forBlock.select_table_v1 = function(t) {
5949
5949
  const e = i.quote_, n = t, o = n.space.id, s = n.table.id;
5950
- return [`{spaceId:${e(o)},tableId:${e(s)}}`, _.ATOMIC];
5950
+ return [`{spaceId:${e(o)},tableId:${e(s)}}`, u.ATOMIC];
5951
5951
  };
5952
5952
  const $i = {
5953
5953
  init: function() {
@@ -6235,7 +6235,7 @@ const Wi = {
6235
6235
  s && s.dispose();
6236
6236
  else if (s)
6237
6237
  continue;
6238
- const a = this.getFieldValue("COLUMN" + e), r = this.table.columns.find((l) => l.id === a);
6238
+ const a = this.getFieldValue("COLUMN" + e), r = this.table.columns.find((_) => _.id === a);
6239
6239
  if (!r)
6240
6240
  continue;
6241
6241
  n.setCheck(null);
@@ -6274,14 +6274,14 @@ const Wi = {
6274
6274
  A.update_column_v1 = Wi;
6275
6275
  i.forBlock.update_column_v1 = function(t) {
6276
6276
  const e = i.quote_, n = t, o = n.space.id, s = n.table.id, a = [];
6277
- for (let l = 0; l < n.itemCount_; l++) {
6278
- const d = n.getFieldValue("COLUMN" + l), u = n.table.columns.find((p) => p.id === d).name, h = i.valueToCode(n, "ADD" + l, _.ATOMIC) || "null";
6279
- a.push({ name: u, value: h });
6277
+ for (let _ = 0; _ < n.itemCount_; _++) {
6278
+ const d = n.getFieldValue("COLUMN" + _), l = n.table.columns.find((p) => p.id === d).name, h = i.valueToCode(n, "ADD" + _, u.ATOMIC) || "null";
6279
+ a.push({ name: l, value: h });
6280
6280
  }
6281
6281
  let r = "[";
6282
- return a.forEach(({ name: l, value: d }, u) => {
6283
- u !== 0 && (r += ","), r += `{name:${e(l)},value:${d}}`;
6284
- }), r += "]", [`{spaceId:${e(o)},tableId:${e(s)},columns:${r}}`, _.ATOMIC];
6282
+ return a.forEach(({ name: _, value: d }, l) => {
6283
+ l !== 0 && (r += ","), r += `{name:${e(_)},value:${d}}`;
6284
+ }), r += "]", [`{spaceId:${e(o)},tableId:${e(s)},columns:${r}}`, u.ATOMIC];
6285
6285
  };
6286
6286
  function ji(t) {
6287
6287
  const e = t.getInput("TABLE").connection;
@@ -6304,9 +6304,9 @@ function ji(t) {
6304
6304
  },
6305
6305
  itemCount: c.columns.length
6306
6306
  }, o = {};
6307
- for (let l = 0; l < c.columns.length; l++) {
6308
- const d = c.columns[l];
6309
- o["COLUMN" + l] = d.id;
6307
+ for (let _ = 0; _ < c.columns.length; _++) {
6308
+ const d = c.columns[_];
6309
+ o["COLUMN" + _] = d.id;
6310
6310
  }
6311
6311
  }
6312
6312
  }
@@ -6375,7 +6375,7 @@ const qi = {
6375
6375
  };
6376
6376
  A.update_data_v1 = qi;
6377
6377
  i.forBlock.update_data_v1 = function(t) {
6378
- const e = i.INDENT, n = i.valueToCode(t, "TABLE", _.ATOMIC) || "null", o = i.valueToCode(t, "CONDITION", _.ATOMIC) || "null", s = i.statementToCode(t, "HANDLE");
6378
+ const e = i.INDENT, n = i.valueToCode(t, "TABLE", u.ATOMIC) || "null", o = i.valueToCode(t, "CONDITION", u.ATOMIC) || "null", s = i.statementToCode(t, "HANDLE");
6379
6379
  return `{
6380
6380
  ${e}var __tx__ = typeof(__tx__) !== 'undefined' ? __tx__ : null;
6381
6381
  ${e}var __table__ = ${n};
@@ -6647,8 +6647,8 @@ A.list_create_v1 = ca;
6647
6647
  i.forBlock.list_create_v1 = function(t) {
6648
6648
  const e = t, n = new Array(e.itemCount_);
6649
6649
  for (let s = 0; s < e.itemCount_; s++)
6650
- n[s] = i.valueToCode(e, "ADD" + s, _.NONE) || "null";
6651
- return ["[" + n.join(", ") + "]", _.ATOMIC];
6650
+ n[s] = i.valueToCode(e, "ADD" + s, u.NONE) || "null";
6651
+ return ["[" + n.join(", ") + "]", u.ATOMIC];
6652
6652
  };
6653
6653
  g([
6654
6654
  {
@@ -6675,7 +6675,7 @@ g([
6675
6675
  }
6676
6676
  ]);
6677
6677
  i.forBlock.list_delete_v1 = function(t) {
6678
- const e = i.valueToCode(t, "VALUE", _.MEMBER) || "[]", n = i.getAdjusted(t, "AT");
6678
+ const e = i.valueToCode(t, "VALUE", u.MEMBER) || "[]", n = i.getAdjusted(t, "AT");
6679
6679
  return `${e}.splice(${n}, 1)`;
6680
6680
  };
6681
6681
  g([
@@ -6702,8 +6702,8 @@ g([
6702
6702
  }
6703
6703
  ]);
6704
6704
  i.forBlock.list_get_v1 = function(t) {
6705
- const e = i.valueToCode(t, "VALUE", _.MEMBER) || "[]", n = i.getAdjusted(t, "AT");
6706
- return [`${e}[${n}]`, _.MEMBER];
6705
+ const e = i.valueToCode(t, "VALUE", u.MEMBER) || "[]", n = i.getAdjusted(t, "AT");
6706
+ return [`${e}[${n}]`, u.MEMBER];
6707
6707
  };
6708
6708
  g([
6709
6709
  {
@@ -6734,8 +6734,8 @@ g([
6734
6734
  }
6735
6735
  ]);
6736
6736
  i.forBlock.list_get_sublist_v1 = function(t) {
6737
- const e = i.valueToCode(t, "LIST", _.MEMBER) || "[]", n = i.getAdjusted(t, "START"), o = i.getAdjusted(t, "END", 1);
6738
- return [`${e}.slice(${n}, ${o})`, _.FUNCTION_CALL];
6737
+ const e = i.valueToCode(t, "LIST", u.MEMBER) || "[]", n = i.getAdjusted(t, "START"), o = i.getAdjusted(t, "END", 1);
6738
+ return [`${e}.slice(${n}, ${o})`, u.FUNCTION_CALL];
6739
6739
  };
6740
6740
  g([
6741
6741
  {
@@ -6755,7 +6755,7 @@ g([
6755
6755
  }
6756
6756
  ]);
6757
6757
  i.forBlock.list_is_empty_v1 = function(t) {
6758
- return [`!${i.valueToCode(t, "VALUE", _.MEMBER) || "[]"}.length`, _.LOGICAL_NOT];
6758
+ return [`!${i.valueToCode(t, "VALUE", u.MEMBER) || "[]"}.length`, u.LOGICAL_NOT];
6759
6759
  };
6760
6760
  g([
6761
6761
  {
@@ -6781,8 +6781,8 @@ g([
6781
6781
  }
6782
6782
  ]);
6783
6783
  i.forBlock.list_join_v1 = function(t) {
6784
- const e = i.valueToCode(t, "LIST", _.MEMBER) || "[]", n = i.valueToCode(t, "DELIM", _.NONE) || "''";
6785
- return [`${e}.join(${n})`, _.FUNCTION_CALL];
6784
+ const e = i.valueToCode(t, "LIST", u.MEMBER) || "[]", n = i.valueToCode(t, "DELIM", u.NONE) || "''";
6785
+ return [`${e}.join(${n})`, u.FUNCTION_CALL];
6786
6786
  };
6787
6787
  g([
6788
6788
  {
@@ -6802,7 +6802,7 @@ g([
6802
6802
  }
6803
6803
  ]);
6804
6804
  i.forBlock.list_length_v1 = function(t) {
6805
- return [`${i.valueToCode(t, "VALUE", _.MEMBER) || "[]"}.length`, _.MEMBER];
6805
+ return [`${i.valueToCode(t, "VALUE", u.MEMBER) || "[]"}.length`, u.MEMBER];
6806
6806
  };
6807
6807
  g([
6808
6808
  {
@@ -6823,7 +6823,7 @@ g([
6823
6823
  }
6824
6824
  ]);
6825
6825
  i.forBlock.list_reverse_v1 = function(t) {
6826
- return [`${i.valueToCode(t, "LIST", _.NONE) || "[]"}.slice().reverse()`, _.FUNCTION_CALL];
6826
+ return [`${i.valueToCode(t, "LIST", u.NONE) || "[]"}.slice().reverse()`, u.FUNCTION_CALL];
6827
6827
  };
6828
6828
  g([
6829
6829
  {
@@ -6855,7 +6855,7 @@ g([
6855
6855
  }
6856
6856
  ]);
6857
6857
  i.forBlock.list_set_v1 = function(t) {
6858
- const e = i.valueToCode(t, "LIST", _.MEMBER) || "[]", n = i.getAdjusted(t, "AT"), o = i.valueToCode(t, "VALUE", _.ASSIGNMENT) || "null";
6858
+ const e = i.valueToCode(t, "LIST", u.MEMBER) || "[]", n = i.getAdjusted(t, "AT"), o = i.valueToCode(t, "VALUE", u.ASSIGNMENT) || "null";
6859
6859
  return `${e}[${n}] = ${o};
6860
6860
  `;
6861
6861
  };
@@ -6896,7 +6896,7 @@ g([
6896
6896
  }
6897
6897
  ]);
6898
6898
  i.forBlock.logic_boolean_v1 = function(t) {
6899
- return [t.getFieldValue("BOOL") === "TRUE" ? "true" : "false", _.ATOMIC];
6899
+ return [t.getFieldValue("BOOL") === "TRUE" ? "true" : "false", u.ATOMIC];
6900
6900
  };
6901
6901
  const ua = {
6902
6902
  onchange: function(t) {
@@ -6963,8 +6963,8 @@ i.forBlock.logic_compare_v1 = function(t) {
6963
6963
  GT: ">",
6964
6964
  GTE: ">="
6965
6965
  }[t.getFieldValue("OP")];
6966
- let o = _.RELATIONAL;
6967
- (n === "==" || n === "!=") && (o = _.EQUALITY);
6966
+ let o = u.RELATIONAL;
6967
+ (n === "==" || n === "!=") && (o = u.EQUALITY);
6968
6968
  const s = i.valueToCode(t, "A", o) || "0", a = i.valueToCode(t, "B", o) || "0";
6969
6969
  return [`${s} ${n} ${a}`, o];
6970
6970
  };
@@ -7154,7 +7154,7 @@ i.forBlock.logic_if_v1 = function(t) {
7154
7154
  t
7155
7155
  ));
7156
7156
  do {
7157
- const o = i.valueToCode(t, "IF" + e, _.NONE) || "false";
7157
+ const o = i.valueToCode(t, "IF" + e, u.NONE) || "false";
7158
7158
  let s = i.statementToCode(t, "DO" + e);
7159
7159
  i.STATEMENT_SUFFIX && (s = i.prefixLines(
7160
7160
  i.injectId(
@@ -7197,7 +7197,7 @@ g([
7197
7197
  }
7198
7198
  ]);
7199
7199
  i.forBlock.logic_negate_v1 = function(t) {
7200
- return [`!${i.valueToCode(t, "BOOL", _.LOGICAL_NOT) || "true"}`, _.LOGICAL_NOT];
7200
+ return [`!${i.valueToCode(t, "BOOL", u.LOGICAL_NOT) || "true"}`, u.LOGICAL_NOT];
7201
7201
  };
7202
7202
  g([
7203
7203
  {
@@ -7231,7 +7231,7 @@ g([
7231
7231
  }
7232
7232
  ]);
7233
7233
  i.forBlock.logic_operation_v1 = function(t) {
7234
- const e = t.getFieldValue("OP") === "AND" ? "&&" : "||", n = e === "&&" ? _.LOGICAL_AND : _.LOGICAL_OR;
7234
+ const e = t.getFieldValue("OP") === "AND" ? "&&" : "||", n = e === "&&" ? u.LOGICAL_AND : u.LOGICAL_OR;
7235
7235
  let o = i.valueToCode(t, "A", n), s = i.valueToCode(t, "B", n);
7236
7236
  if (!o && !s)
7237
7237
  o = "false", s = "false";
@@ -7290,8 +7290,8 @@ g([
7290
7290
  }
7291
7291
  ]);
7292
7292
  i.forBlock.logic_ternary_v1 = function(t) {
7293
- const e = i.valueToCode(t, "IF", _.CONDITIONAL) || "false", n = i.valueToCode(t, "THEN", _.CONDITIONAL) || "null", o = i.valueToCode(t, "ELSE", _.CONDITIONAL) || "null";
7294
- return [e + " ? " + n + " : " + o, _.CONDITIONAL];
7293
+ const e = i.valueToCode(t, "IF", u.CONDITIONAL) || "false", n = i.valueToCode(t, "THEN", u.CONDITIONAL) || "null", o = i.valueToCode(t, "ELSE", u.CONDITIONAL) || "null";
7294
+ return [e + " ? " + n + " : " + o, u.CONDITIONAL];
7295
7295
  };
7296
7296
  const pa = {
7297
7297
  customContextMenu: function(t) {
@@ -7457,7 +7457,7 @@ g([
7457
7457
  i.forBlock.for_v1 = function(t) {
7458
7458
  const e = i.INDENT, n = i.getVariableName(
7459
7459
  t.getFieldValue("VAR")
7460
- ), o = i.valueToCode(t, "FROM", _.ASSIGNMENT) || "0", s = i.valueToCode(t, "TO", _.ASSIGNMENT) || "0", a = i.valueToCode(t, "BY", _.ASSIGNMENT) || "1", r = i.addLoopTrap(
7460
+ ), o = i.valueToCode(t, "FROM", u.ASSIGNMENT) || "0", s = i.valueToCode(t, "TO", u.ASSIGNMENT) || "0", a = i.valueToCode(t, "BY", u.ASSIGNMENT) || "1", r = i.addLoopTrap(
7461
7461
  i.statementToCode(t, "DO"),
7462
7462
  t
7463
7463
  );
@@ -7469,11 +7469,11 @@ ${r}}
7469
7469
  ${r}}
7470
7470
  `;
7471
7471
  } else {
7472
- let c = "", l = o;
7473
- !o.match(/^\w+$/) && !N.string.isNumber(o) && (l = i.nameDB_.getDistinctName(
7472
+ let c = "", _ = o;
7473
+ !o.match(/^\w+$/) && !N.string.isNumber(o) && (_ = i.nameDB_.getDistinctName(
7474
7474
  `${n}_from`,
7475
7475
  rt.NameType.VARIABLE
7476
- ), c += `var ${l} = ${o};
7476
+ ), c += `var ${_} = ${o};
7477
7477
  `);
7478
7478
  let d = s;
7479
7479
  !s.match(/^\w+$/) && !N.string.isNumber(s) && (d = i.nameDB_.getDistinctName(
@@ -7481,16 +7481,16 @@ ${r}}
7481
7481
  rt.NameType.VARIABLE
7482
7482
  ), c += `var ${d} = ${s};
7483
7483
  `);
7484
- const u = i.nameDB_.getDistinctName(
7484
+ const l = i.nameDB_.getDistinctName(
7485
7485
  `${n}_by`,
7486
7486
  rt.NameType.VARIABLE
7487
7487
  );
7488
- return c += `var ${u} = `, N.string.isNumber(a) ? c += `${Math.abs(Number(a))};
7488
+ return c += `var ${l} = `, N.string.isNumber(a) ? c += `${Math.abs(Number(a))};
7489
7489
  ` : c += `Math.abs(${a});
7490
- `, c += `if (${l} > ${d}) {
7491
- ${e}${u} = -${u};
7490
+ `, c += `if (${_} > ${d}) {
7491
+ ${e}${l} = -${l};
7492
7492
  }
7493
- `, c += `for (${n} = ${l}; ${u} >= 0 ? ${n} <= ${d} : ${n} >= ${d}; ${n} += ${u}) {
7493
+ `, c += `for (${n} = ${_}; ${l} >= 0 ? ${n} <= ${d} : ${n} >= ${d}; ${n} += ${l}) {
7494
7494
  ${r}}
7495
7495
  `, c;
7496
7496
  }
@@ -7535,7 +7535,7 @@ g([
7535
7535
  i.forBlock.for_each_v1 = function(t) {
7536
7536
  const e = i.INDENT, n = i.getVariableName(
7537
7537
  t.getFieldValue("VAR")
7538
- ), o = i.valueToCode(t, "LIST", _.ASSIGNMENT) || "[]", s = i.addLoopTrap(
7538
+ ), o = i.valueToCode(t, "LIST", u.ASSIGNMENT) || "[]", s = i.addLoopTrap(
7539
7539
  i.statementToCode(t, "DO"),
7540
7540
  t
7541
7541
  );
@@ -7581,7 +7581,7 @@ g([
7581
7581
  ]);
7582
7582
  i.forBlock.repeat_v1 = function(t) {
7583
7583
  let e = "";
7584
- t.getField("TIMES") ? e = String(Number(t.getFieldValue("TIMES"))) : e = i.valueToCode(t, "TIMES", _.ASSIGNMENT) || "0";
7584
+ t.getField("TIMES") ? e = String(Number(t.getFieldValue("TIMES"))) : e = i.valueToCode(t, "TIMES", u.ASSIGNMENT) || "0";
7585
7585
  const n = i.addLoopTrap(
7586
7586
  i.statementToCode(t, "DO"),
7587
7587
  t
@@ -7645,7 +7645,7 @@ i.forBlock.while_until_v1 = function(t) {
7645
7645
  let n = i.valueToCode(
7646
7646
  t,
7647
7647
  "CONDITION",
7648
- e === "UNTIL" ? _.LOGICAL_NOT : _.NONE
7648
+ e === "UNTIL" ? u.LOGICAL_NOT : u.NONE
7649
7649
  ) || "false";
7650
7650
  e === "UNTIL" && (n = "!" + n);
7651
7651
  const o = i.addLoopTrap(
@@ -7728,13 +7728,13 @@ g([
7728
7728
  ]);
7729
7729
  i.forBlock.math_arithmetic_v1 = function(t) {
7730
7730
  const e = {
7731
- ADD: [" + ", _.ADDITION],
7732
- SUBTRACT: [" - ", _.SUBTRACTION],
7733
- MULTIPLY: [" * ", _.MULTIPLICATION],
7734
- DIVIDE: [" / ", _.DIVISION],
7735
- POWER: [null, _.NONE]
7731
+ ADD: [" + ", u.ADDITION],
7732
+ SUBTRACT: [" - ", u.SUBTRACTION],
7733
+ MULTIPLY: [" * ", u.MULTIPLICATION],
7734
+ DIVIDE: [" / ", u.DIVISION],
7735
+ POWER: [null, u.NONE]
7736
7736
  }, [n, o] = e[t.getFieldValue("OP")], s = i.valueToCode(t, "A", o) || "0", a = i.valueToCode(t, "B", o) || "0";
7737
- return n ? [s + n + a, o] : [`Math.pow(${s}, ${a})`, _.FUNCTION_CALL];
7737
+ return n ? [s + n + a, o] : [`Math.pow(${s}, ${a})`, u.FUNCTION_CALL];
7738
7738
  };
7739
7739
  g([
7740
7740
  {
@@ -7762,12 +7762,12 @@ g([
7762
7762
  ]);
7763
7763
  i.forBlock.math_constant_v1 = function(t) {
7764
7764
  return {
7765
- PI: ["Math.PI", _.MEMBER],
7766
- E: ["Math.E", _.MEMBER],
7767
- GOLDEN_RATIO: ["(1 + Math.sqrt(5)) / 2", _.DIVISION],
7768
- SQRT2: ["Math.SQRT2", _.MEMBER],
7769
- SQRT1_2: ["Math.SQRT1_2", _.MEMBER],
7770
- INFINITY: ["Infinity", _.ATOMIC]
7765
+ PI: ["Math.PI", u.MEMBER],
7766
+ E: ["Math.E", u.MEMBER],
7767
+ GOLDEN_RATIO: ["(1 + Math.sqrt(5)) / 2", u.DIVISION],
7768
+ SQRT2: ["Math.SQRT2", u.MEMBER],
7769
+ SQRT1_2: ["Math.SQRT1_2", u.MEMBER],
7770
+ INFINITY: ["Infinity", u.ATOMIC]
7771
7771
  }[t.getFieldValue("CONSTANT")];
7772
7772
  };
7773
7773
  g([
@@ -7799,8 +7799,8 @@ g([
7799
7799
  }
7800
7800
  ]);
7801
7801
  i.forBlock.math_constrain_v1 = function(t) {
7802
- const e = i.valueToCode(t, "VALUE", _.NONE) || "0", n = i.valueToCode(t, "LOW", _.NONE) || "0", o = i.valueToCode(t, "HIGH", _.NONE) || "Infinity";
7803
- return [`Math.min(Math.max(${e}, ${n}), ${o})`, _.FUNCTION_CALL];
7802
+ const e = i.valueToCode(t, "VALUE", u.NONE) || "0", n = i.valueToCode(t, "LOW", u.NONE) || "0", o = i.valueToCode(t, "HIGH", u.NONE) || "Infinity";
7803
+ return [`Math.min(Math.max(${e}, ${n}), ${o})`, u.FUNCTION_CALL];
7804
7804
  };
7805
7805
  g([
7806
7806
  {
@@ -7826,8 +7826,8 @@ g([
7826
7826
  }
7827
7827
  ]);
7828
7828
  i.forBlock.math_modulo_v1 = function(t) {
7829
- const e = i.valueToCode(t, "DIVIDEND", _.MODULUS) || "0", n = i.valueToCode(t, "DIVISOR", _.MODULUS) || "0";
7830
- return [e + " % " + n, _.MODULUS];
7829
+ const e = i.valueToCode(t, "DIVIDEND", u.MODULUS) || "0", n = i.valueToCode(t, "DIVISOR", u.MODULUS) || "0";
7830
+ return [e + " % " + n, u.MODULUS];
7831
7831
  };
7832
7832
  g([
7833
7833
  {
@@ -7848,7 +7848,7 @@ g([
7848
7848
  }
7849
7849
  ]);
7850
7850
  i.forBlock.math_number_v1 = function(t) {
7851
- const e = Number(t.getFieldValue("NUM")), n = e >= 0 ? _.ATOMIC : _.UNARY_NEGATION;
7851
+ const e = Number(t.getFieldValue("NUM")), n = e >= 0 ? u.ATOMIC : u.UNARY_NEGATION;
7852
7852
  return [String(e), n];
7853
7853
  };
7854
7854
  g([
@@ -7883,13 +7883,13 @@ g([
7883
7883
  ]);
7884
7884
  i.forBlock.math_number_property_v1 = function(t) {
7885
7885
  const e = {
7886
- EVEN: [" % 2 === 0", _.MODULUS, _.EQUALITY],
7887
- ODD: [" % 2 === 1", _.MODULUS, _.EQUALITY],
7888
- WHOLE: [" % 1 === 0", _.MODULUS, _.EQUALITY],
7889
- POSITIVE: [" > 0", _.RELATIONAL, _.RELATIONAL],
7890
- NEGATIVE: [" < 0", _.RELATIONAL, _.RELATIONAL],
7891
- DIVISIBLE_BY: [null, _.MODULUS, _.EQUALITY],
7892
- PRIME: [null, _.NONE, _.FUNCTION_CALL]
7886
+ EVEN: [" % 2 === 0", u.MODULUS, u.EQUALITY],
7887
+ ODD: [" % 2 === 1", u.MODULUS, u.EQUALITY],
7888
+ WHOLE: [" % 1 === 0", u.MODULUS, u.EQUALITY],
7889
+ POSITIVE: [" > 0", u.RELATIONAL, u.RELATIONAL],
7890
+ NEGATIVE: [" < 0", u.RELATIONAL, u.RELATIONAL],
7891
+ DIVISIBLE_BY: [null, u.MODULUS, u.EQUALITY],
7892
+ PRIME: [null, u.NONE, u.FUNCTION_CALL]
7893
7893
  }, n = t.getFieldValue("PROPERTY"), [o, s, a] = e[t.getFieldValue("PROPERTY")], r = i.valueToCode(t, "NUMBER_TO_CHECK", s) || "0";
7894
7894
  let c;
7895
7895
  if (n === "PRIME")
@@ -7917,8 +7917,8 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(n) {
7917
7917
  `
7918
7918
  ) + "(" + r + ")";
7919
7919
  else if (n === "DIVISIBLE_BY") {
7920
- const l = i.valueToCode(t, "DIVISOR", _.MODULUS) || "0";
7921
- c = r + " % " + l + " === 0";
7920
+ const _ = i.valueToCode(t, "DIVISOR", u.MODULUS) || "0";
7921
+ c = r + " % " + _ + " === 0";
7922
7922
  } else
7923
7923
  c = r + o;
7924
7924
  return [c, a];
@@ -7959,13 +7959,13 @@ i.forBlock.math_on_list_v1 = function(t) {
7959
7959
  let n, o;
7960
7960
  switch (e) {
7961
7961
  case "SUM":
7962
- n = i.valueToCode(t, "LIST", _.MEMBER) || "[]", o = n + ".reduce(function(x, y) {return x + y;}, 0)";
7962
+ n = i.valueToCode(t, "LIST", u.MEMBER) || "[]", o = n + ".reduce(function(x, y) {return x + y;}, 0)";
7963
7963
  break;
7964
7964
  case "MIN":
7965
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = "Math.min.apply(null, " + n + ")";
7965
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = "Math.min.apply(null, " + n + ")";
7966
7966
  break;
7967
7967
  case "MAX":
7968
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = "Math.max.apply(null, " + n + ")";
7968
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = "Math.max.apply(null, " + n + ")";
7969
7969
  break;
7970
7970
  case "AVERAGE": {
7971
7971
  const s = i.provideFunction_(
@@ -7976,7 +7976,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(myList) {
7976
7976
  }
7977
7977
  `
7978
7978
  );
7979
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = s + "(" + n + ")";
7979
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = s + "(" + n + ")";
7980
7980
  break;
7981
7981
  }
7982
7982
  case "MEDIAN": {
@@ -7995,7 +7995,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(myList) {
7995
7995
  }
7996
7996
  `
7997
7997
  );
7998
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = s + "(" + n + ")";
7998
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = s + "(" + n + ")";
7999
7999
  break;
8000
8000
  }
8001
8001
  case "MODE": {
@@ -8032,7 +8032,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(values) {
8032
8032
  }
8033
8033
  `
8034
8034
  );
8035
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = s + "(" + n + ")";
8035
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = s + "(" + n + ")";
8036
8036
  break;
8037
8037
  }
8038
8038
  case "STD_DEV": {
@@ -8052,7 +8052,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(numbers) {
8052
8052
  }
8053
8053
  `
8054
8054
  );
8055
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = s + "(" + n + ")";
8055
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = s + "(" + n + ")";
8056
8056
  break;
8057
8057
  }
8058
8058
  case "RANDOM": {
@@ -8065,13 +8065,13 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(list) {
8065
8065
  }
8066
8066
  `
8067
8067
  );
8068
- n = i.valueToCode(t, "LIST", _.NONE) || "[]", o = s + "(" + n + ")";
8068
+ n = i.valueToCode(t, "LIST", u.NONE) || "[]", o = s + "(" + n + ")";
8069
8069
  break;
8070
8070
  }
8071
8071
  default:
8072
8072
  throw Error("Unknown operator: " + e);
8073
8073
  }
8074
- return [o, _.FUNCTION_CALL];
8074
+ return [o, u.FUNCTION_CALL];
8075
8075
  };
8076
8076
  g([
8077
8077
  {
@@ -8084,7 +8084,7 @@ g([
8084
8084
  }
8085
8085
  ]);
8086
8086
  i.forBlock.math_random_float_v1 = function() {
8087
- return ["Math.random()", _.FUNCTION_CALL];
8087
+ return ["Math.random()", u.FUNCTION_CALL];
8088
8088
  };
8089
8089
  g([
8090
8090
  {
@@ -8110,7 +8110,7 @@ g([
8110
8110
  }
8111
8111
  ]);
8112
8112
  i.forBlock.math_random_int_v1 = function(t) {
8113
- const e = i.valueToCode(t, "FROM", _.NONE) || "0", n = i.valueToCode(t, "TO", _.NONE) || "0";
8113
+ const e = i.valueToCode(t, "FROM", u.NONE) || "0", n = i.valueToCode(t, "TO", u.NONE) || "0";
8114
8114
  return [i.provideFunction_(
8115
8115
  "mathRandomInt",
8116
8116
  `
@@ -8124,7 +8124,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(a, b) {
8124
8124
  return Math.floor(Math.random() * (b - a + 1) + a);
8125
8125
  }
8126
8126
  `
8127
- ) + "(" + e + ", " + n + ")", _.FUNCTION_CALL];
8127
+ ) + "(" + e + ", " + n + ")", u.FUNCTION_CALL];
8128
8128
  };
8129
8129
  g([
8130
8130
  {
@@ -8153,7 +8153,7 @@ g([
8153
8153
  }
8154
8154
  ]);
8155
8155
  i.forBlock.math_round_v1 = function(t) {
8156
- const e = t.getFieldValue("OP"), n = i.valueToCode(t, "NUM", _.NONE) || "0";
8156
+ const e = t.getFieldValue("OP"), n = i.valueToCode(t, "NUM", u.NONE) || "0";
8157
8157
  let o = "";
8158
8158
  switch (e) {
8159
8159
  case "ROUND":
@@ -8166,7 +8166,7 @@ i.forBlock.math_round_v1 = function(t) {
8166
8166
  o = `Math.floor(${n})`;
8167
8167
  break;
8168
8168
  }
8169
- return [o, _.FUNCTION_CALL];
8169
+ return [o, u.FUNCTION_CALL];
8170
8170
  };
8171
8171
  g([
8172
8172
  {
@@ -8202,8 +8202,8 @@ i.forBlock.math_single_v1 = function(t) {
8202
8202
  const e = t.getFieldValue("OP");
8203
8203
  let n, o;
8204
8204
  if (e === "NEG")
8205
- return o = i.valueToCode(t, "NUM", _.UNARY_NEGATION) || "0", o[0] === "-" && (o = " " + o), n = "-" + o, [n, _.UNARY_NEGATION];
8206
- switch (o = i.valueToCode(t, "NUM", _.NONE) || "0", e) {
8205
+ return o = i.valueToCode(t, "NUM", u.UNARY_NEGATION) || "0", o[0] === "-" && (o = " " + o), n = "-" + o, [n, u.UNARY_NEGATION];
8206
+ switch (o = i.valueToCode(t, "NUM", u.NONE) || "0", e) {
8207
8207
  case "ROOT":
8208
8208
  n = `Math.sqrt(${o})`;
8209
8209
  break;
@@ -8221,15 +8221,12 @@ i.forBlock.math_single_v1 = function(t) {
8221
8221
  break;
8222
8222
  }
8223
8223
  if (n)
8224
- return [n, _.FUNCTION_CALL];
8225
- switch (e) {
8226
- case "LOG10":
8227
- n = `Math.log(${o}) / Math.log(10)`;
8228
- break;
8229
- default:
8230
- throw Error("Unknown math operator: " + e);
8231
- }
8232
- return [n, _.DIVISION];
8224
+ return [n, u.FUNCTION_CALL];
8225
+ if (e === "LOG10")
8226
+ n = `Math.log(${o}) / Math.log(10)`;
8227
+ else
8228
+ throw Error("Unknown math operator: " + e);
8229
+ return [n, u.DIVISION];
8233
8230
  };
8234
8231
  g([
8235
8232
  {
@@ -8263,7 +8260,7 @@ g([
8263
8260
  i.forBlock.math_trig_v1 = function(t) {
8264
8261
  let e;
8265
8262
  const n = t.getFieldValue("OP");
8266
- n === "SIN" || n === "COS" || n === "TAN" ? e = i.valueToCode(t, "NUM", _.DIVISION) || "0" : e = i.valueToCode(t, "NUM", _.NONE) || "0";
8263
+ n === "SIN" || n === "COS" || n === "TAN" ? e = i.valueToCode(t, "NUM", u.DIVISION) || "0" : e = i.valueToCode(t, "NUM", u.NONE) || "0";
8267
8264
  let o;
8268
8265
  switch (n) {
8269
8266
  case "SIN":
@@ -8277,7 +8274,7 @@ i.forBlock.math_trig_v1 = function(t) {
8277
8274
  break;
8278
8275
  }
8279
8276
  if (o)
8280
- return [o, _.FUNCTION_CALL];
8277
+ return [o, u.FUNCTION_CALL];
8281
8278
  switch (n) {
8282
8279
  case "ASIN":
8283
8280
  o = `Math.asin(${e}) / Math.PI * 180`;
@@ -8291,7 +8288,7 @@ i.forBlock.math_trig_v1 = function(t) {
8291
8288
  default:
8292
8289
  throw Error("Unknown math operator: " + n);
8293
8290
  }
8294
- return [o, _.DIVISION];
8291
+ return [o, u.DIVISION];
8295
8292
  };
8296
8293
  const ma = N.xml, Ta = {
8297
8294
  init: function() {
@@ -8386,10 +8383,10 @@ i.forBlock.object_create_v1 = function(t) {
8386
8383
  const e = t;
8387
8384
  let n = "{";
8388
8385
  for (let o = 0; o < e.itemCount_; o++) {
8389
- const s = e.getFieldValue("KEY" + o), a = i.valueToCode(e, "ADD" + o, _.ATOMIC) || null;
8386
+ const s = e.getFieldValue("KEY" + o), a = i.valueToCode(e, "ADD" + o, u.ATOMIC) || null;
8390
8387
  n += i.quote_(s) + ": " + a, o < e.itemCount_ - 1 && (n += ", ");
8391
8388
  }
8392
- return n += "}", [n, _.ATOMIC];
8389
+ return n += "}", [n, u.ATOMIC];
8393
8390
  };
8394
8391
  g([
8395
8392
  {
@@ -8454,7 +8451,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(obj, key) {
8454
8451
  }
8455
8452
  }
8456
8453
  `
8457
- ), n = i.valueToCode(t, "OBJECT", _.ATOMIC) || "null", o = i.valueToCode(t, "KEY", _.ATOMIC) || "''";
8454
+ ), n = i.valueToCode(t, "OBJECT", u.ATOMIC) || "null", o = i.valueToCode(t, "KEY", u.ATOMIC) || "''";
8458
8455
  return `${e}(${n}, ${o});
8459
8456
  `;
8460
8457
  };
@@ -8477,7 +8474,7 @@ g([
8477
8474
  }
8478
8475
  ]);
8479
8476
  i.forBlock.object_from_json_v1 = function(t) {
8480
- return [`__parseJsonV1__(${i.valueToCode(t, "JSON", _.NONE) || "''"})`, _.FUNCTION_CALL];
8477
+ return [`__parseJsonV1__(${i.valueToCode(t, "JSON", u.NONE) || "''"})`, u.FUNCTION_CALL];
8481
8478
  };
8482
8479
  g([
8483
8480
  {
@@ -8533,8 +8530,8 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(obj, key) {
8533
8530
  }
8534
8531
  }
8535
8532
  `
8536
- ), n = i.valueToCode(t, "OBJECT", _.ATOMIC) || "null", o = i.valueToCode(t, "KEY", _.ATOMIC) || "''";
8537
- return [`${e}(${n}, ${o})`, _.FUNCTION_CALL];
8533
+ ), n = i.valueToCode(t, "OBJECT", u.ATOMIC) || "null", o = i.valueToCode(t, "KEY", u.ATOMIC) || "''";
8534
+ return [`${e}(${n}, ${o})`, u.FUNCTION_CALL];
8538
8535
  };
8539
8536
  g([
8540
8537
  {
@@ -8598,7 +8595,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(obj, key, val) {
8598
8595
  }
8599
8596
  }
8600
8597
  `
8601
- ), n = i.valueToCode(t, "OBJECT", _.ATOMIC) || "null", o = i.valueToCode(t, "KEY", _.ATOMIC) || "''", s = i.valueToCode(t, "TO", _.ATOMIC) || "null";
8598
+ ), n = i.valueToCode(t, "OBJECT", u.ATOMIC) || "null", o = i.valueToCode(t, "KEY", u.ATOMIC) || "''", s = i.valueToCode(t, "TO", u.ATOMIC) || "null";
8602
8599
  return `${e}(${n}, ${o}, ${s});
8603
8600
  `;
8604
8601
  };
@@ -8621,7 +8618,7 @@ g([
8621
8618
  }
8622
8619
  ]);
8623
8620
  i.forBlock.object_to_json_v1 = function(t) {
8624
- return [`__jsonStringifyV1__(${i.valueToCode(t, "OBJECT", _.NONE) || "null"})`, _.FUNCTION_CALL];
8621
+ return [`__jsonStringifyV1__(${i.valueToCode(t, "OBJECT", u.NONE) || "null"})`, u.FUNCTION_CALL];
8625
8622
  };
8626
8623
  const Yn = N.xml, Aa = {
8627
8624
  init: function() {
@@ -8816,7 +8813,7 @@ const Oa = N.xml, va = {
8816
8813
  A.procedure_return_v1 = va;
8817
8814
  i.forBlock.procedure_return_v1 = function(t) {
8818
8815
  const e = t;
8819
- return e.withReturn ? `return ${i.valueToCode(e, "VALUE", _.NONE) || "null"};
8816
+ return e.withReturn ? `return ${i.valueToCode(e, "VALUE", u.NONE) || "null"};
8820
8817
  ` : `return;
8821
8818
  `;
8822
8819
  };
@@ -8845,7 +8842,7 @@ const Ca = {
8845
8842
  };
8846
8843
  A.download_resource_v1 = Ca;
8847
8844
  i.forBlock.download_resource_v1 = function(t) {
8848
- const e = i.valueToCode(t, "ASSET", _.ATOMIC) || null, n = i.statementToCode(t, "HANDLE");
8845
+ const e = i.valueToCode(t, "ASSET", u.ATOMIC) || null, n = i.statementToCode(t, "HANDLE");
8849
8846
  return `{
8850
8847
  var res = __downloadResourceV1__(${e});
8851
8848
  var __success__ = res.success;
@@ -9002,7 +8999,7 @@ const Ba = {
9002
8999
  };
9003
9000
  A.upload_resource_v1 = Ba;
9004
9001
  i.forBlock.upload_resource_v1 = function(t) {
9005
- const e = i.valueToCode(t, "NAME", _.ATOMIC) || "''", n = i.valueToCode(t, "DIR", _.ATOMIC) || "null", o = i.valueToCode(t, "DATA", _.ATOMIC) || "null", s = i.statementToCode(t, "HANDLE");
9002
+ const e = i.valueToCode(t, "NAME", u.ATOMIC) || "''", n = i.valueToCode(t, "DIR", u.ATOMIC) || "null", o = i.valueToCode(t, "DATA", u.ATOMIC) || "null", s = i.statementToCode(t, "HANDLE");
9006
9003
  return `{
9007
9004
  var res = __uploadResourceV1__(${e}, ${n}, ${o});
9008
9005
  var __success__ = res.success;
@@ -9031,11 +9028,11 @@ g([
9031
9028
  }
9032
9029
  ]);
9033
9030
  i.forBlock.text_v1 = function(t) {
9034
- return [i.quote_(t.getFieldValue("TEXT")), _.ATOMIC];
9031
+ return [i.quote_(t.getFieldValue("TEXT")), u.ATOMIC];
9035
9032
  };
9036
9033
  const ba = /^\s*'([^']|\\')*'\s*$/;
9037
9034
  function se(t) {
9038
- return ba.test(t) ? [t, _.ATOMIC] : [`String(${t})`, _.FUNCTION_CALL];
9035
+ return ba.test(t) ? [t, u.ATOMIC] : [`String(${t})`, u.FUNCTION_CALL];
9039
9036
  }
9040
9037
  U.register(
9041
9038
  "text_append_tooltip_v1",
@@ -9069,7 +9066,7 @@ i.forBlock.text_append_v1 = function(t) {
9069
9066
  const e = i.nameDB_?.getName(
9070
9067
  t.getFieldValue("VAR"),
9071
9068
  rt.NameType.VARIABLE
9072
- ), n = i.valueToCode(t, "TEXT", _.NONE) || "''";
9069
+ ), n = i.valueToCode(t, "TEXT", u.NONE) || "''";
9073
9070
  return `${e} += ${se(n)};
9074
9071
  `;
9075
9072
  };
@@ -9107,7 +9104,7 @@ i.forBlock.text_change_case_v1 = function(t) {
9107
9104
  }[t.getFieldValue("CASE")], o = i.valueToCode(
9108
9105
  t,
9109
9106
  "TEXT",
9110
- n ? _.MEMBER : _.NONE
9107
+ n ? u.MEMBER : u.NONE
9111
9108
  ) || "''";
9112
9109
  let s = "";
9113
9110
  return n ? s = o + n : s = i.provideFunction_(
@@ -9117,7 +9114,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(str) {
9117
9114
  return str.slice(0, 1).toUpperCase() + str.slice(1).toLowerCase();
9118
9115
  }
9119
9116
  `
9120
- ) + "(" + o + ")", [s, _.FUNCTION_CALL];
9117
+ ) + "(" + o + ")", [s, u.FUNCTION_CALL];
9121
9118
  };
9122
9119
  g([
9123
9120
  {
@@ -9143,8 +9140,8 @@ g([
9143
9140
  }
9144
9141
  ]);
9145
9142
  i.forBlock.text_char_at_v1 = function(t) {
9146
- const e = i.valueToCode(t, "VALUE", _.MEMBER) || "[]", n = i.getAdjusted(t, "AT");
9147
- return [`${e}.charAt(${n})`, _.FUNCTION_CALL];
9143
+ const e = i.valueToCode(t, "VALUE", u.MEMBER) || "[]", n = i.getAdjusted(t, "AT");
9144
+ return [`${e}.charAt(${n})`, u.FUNCTION_CALL];
9148
9145
  };
9149
9146
  g([
9150
9147
  {
@@ -9170,7 +9167,7 @@ g([
9170
9167
  }
9171
9168
  ]);
9172
9169
  i.forBlock.text_count_v1 = function(t) {
9173
- const e = i.valueToCode(t, "TEXT", _.NONE) || "''", n = i.valueToCode(t, "SUBSTR", _.NONE) || "''";
9170
+ const e = i.valueToCode(t, "TEXT", u.NONE) || "''", n = i.valueToCode(t, "SUBSTR", u.NONE) || "''";
9174
9171
  return [`${i.provideFunction_(
9175
9172
  "textCount",
9176
9173
  `
@@ -9182,7 +9179,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle) {
9182
9179
  }
9183
9180
  }
9184
9181
  `
9185
- )}(${e}, ${n})`, _.FUNCTION_CALL];
9182
+ )}(${e}, ${n})`, u.FUNCTION_CALL];
9186
9183
  };
9187
9184
  g([
9188
9185
  {
@@ -9216,8 +9213,8 @@ g([
9216
9213
  }
9217
9214
  ]);
9218
9215
  i.forBlock.text_index_of_v1 = function(t) {
9219
- const e = t.getFieldValue("OP") === "FIRST" ? "indexOf" : "lastIndexOf", n = i.valueToCode(t, "TEXT", _.MEMBER) || "''", o = i.valueToCode(t, "SUBSTR", _.NONE) || "''";
9220
- return [`${n}.${e}(${o})`, _.FUNCTION_CALL];
9216
+ const e = t.getFieldValue("OP") === "FIRST" ? "indexOf" : "lastIndexOf", n = i.valueToCode(t, "TEXT", u.MEMBER) || "''", o = i.valueToCode(t, "SUBSTR", u.NONE) || "''";
9217
+ return [`${n}.${e}(${o})`, u.FUNCTION_CALL];
9221
9218
  };
9222
9219
  g([
9223
9220
  {
@@ -9237,7 +9234,7 @@ g([
9237
9234
  }
9238
9235
  ]);
9239
9236
  i.forBlock.text_is_empty_v1 = function(t) {
9240
- return [`!${i.valueToCode(t, "VALUE", _.MEMBER) || "''"}.length`, _.LOGICAL_NOT];
9237
+ return [`!${i.valueToCode(t, "VALUE", u.MEMBER) || "''"}.length`, u.LOGICAL_NOT];
9241
9238
  };
9242
9239
  const Pa = N.xml, Ra = {
9243
9240
  itemCount_: 0,
@@ -9359,20 +9356,20 @@ i.forBlock.text_join_v1 = function(t) {
9359
9356
  const e = t;
9360
9357
  switch (e.itemCount_) {
9361
9358
  case 0:
9362
- return ["''", _.ATOMIC];
9359
+ return ["''", u.ATOMIC];
9363
9360
  case 1: {
9364
- const n = i.valueToCode(e, "ADD0", _.NONE) || "''";
9361
+ const n = i.valueToCode(e, "ADD0", u.NONE) || "''";
9365
9362
  return se(n);
9366
9363
  }
9367
9364
  case 2: {
9368
- const n = i.valueToCode(e, "ADD0", _.NONE) || "''", o = i.valueToCode(e, "ADD1", _.NONE) || "''";
9369
- return [se(n)[0] + " + " + se(o)[0], _.ADDITION];
9365
+ const n = i.valueToCode(e, "ADD0", u.NONE) || "''", o = i.valueToCode(e, "ADD1", u.NONE) || "''";
9366
+ return [se(n)[0] + " + " + se(o)[0], u.ADDITION];
9370
9367
  }
9371
9368
  default: {
9372
9369
  const n = new Array(e.itemCount_);
9373
9370
  for (let s = 0; s < e.itemCount_; s++)
9374
- n[s] = i.valueToCode(e, "ADD" + s, _.NONE) || "''";
9375
- return ["[" + n.join(",") + "].join('')", _.FUNCTION_CALL];
9371
+ n[s] = i.valueToCode(e, "ADD" + s, u.NONE) || "''";
9372
+ return ["[" + n.join(",") + "].join('')", u.FUNCTION_CALL];
9376
9373
  }
9377
9374
  }
9378
9375
  };
@@ -9394,7 +9391,7 @@ g([
9394
9391
  }
9395
9392
  ]);
9396
9393
  i.forBlock.text_length_v1 = function(t) {
9397
- return [`${i.valueToCode(t, "VALUE", _.MEMBER) || "''"}.length`, _.MEMBER];
9394
+ return [`${i.valueToCode(t, "VALUE", u.MEMBER) || "''"}.length`, u.MEMBER];
9398
9395
  };
9399
9396
  g([
9400
9397
  {
@@ -9425,7 +9422,7 @@ g([
9425
9422
  }
9426
9423
  ]);
9427
9424
  i.forBlock.text_replace_v1 = function(t) {
9428
- const e = i.valueToCode(t, "TEXT", _.NONE) || "''", n = i.valueToCode(t, "FROM", _.NONE) || "''", o = i.valueToCode(t, "TO", _.NONE) || "''";
9425
+ const e = i.valueToCode(t, "TEXT", u.NONE) || "''", n = i.valueToCode(t, "FROM", u.NONE) || "''", o = i.valueToCode(t, "TO", u.NONE) || "''";
9429
9426
  return [`${i.provideFunction_(
9430
9427
  "textReplace",
9431
9428
  `
@@ -9435,7 +9432,7 @@ function ${i.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle, replacement) {
9435
9432
  return haystack.replace(new RegExp(needle, 'g'), replacement);
9436
9433
  }
9437
9434
  `
9438
- )}(${e}, ${n}, ${o})`, _.FUNCTION_CALL];
9435
+ )}(${e}, ${n}, ${o})`, u.FUNCTION_CALL];
9439
9436
  };
9440
9437
  g([
9441
9438
  {
@@ -9456,7 +9453,7 @@ g([
9456
9453
  }
9457
9454
  ]);
9458
9455
  i.forBlock.text_reverse_v1 = function(t) {
9459
- return [(i.valueToCode(t, "TEXT", _.MEMBER) || "''") + ".split('').reverse().join('')", _.FUNCTION_CALL];
9456
+ return [(i.valueToCode(t, "TEXT", u.MEMBER) || "''") + ".split('').reverse().join('')", u.FUNCTION_CALL];
9460
9457
  };
9461
9458
  g([
9462
9459
  {
@@ -9482,8 +9479,8 @@ g([
9482
9479
  }
9483
9480
  ]);
9484
9481
  i.forBlock.text_split_v1 = function(t) {
9485
- const e = i.valueToCode(t, "TEXT", _.MEMBER) || "''", n = i.valueToCode(t, "DELIM", _.NONE) || "''";
9486
- return [`${e}.split(${n})`, _.FUNCTION_CALL];
9482
+ const e = i.valueToCode(t, "TEXT", u.MEMBER) || "''", n = i.valueToCode(t, "DELIM", u.NONE) || "''";
9483
+ return [`${e}.split(${n})`, u.FUNCTION_CALL];
9487
9484
  };
9488
9485
  g([
9489
9486
  {
@@ -9514,8 +9511,8 @@ g([
9514
9511
  }
9515
9512
  ]);
9516
9513
  i.forBlock.text_substring_v1 = function(t) {
9517
- const e = i.valueToCode(t, "TEXT", _.MEMBER) || "''", n = i.getAdjusted(t, "START"), o = i.getAdjusted(t, "END", 1);
9518
- return [`${e}.slice(${n}, ${o})`, _.FUNCTION_CALL];
9514
+ const e = i.valueToCode(t, "TEXT", u.MEMBER) || "''", n = i.getAdjusted(t, "START"), o = i.getAdjusted(t, "END", 1);
9515
+ return [`${e}.slice(${n}, ${o})`, u.FUNCTION_CALL];
9519
9516
  };
9520
9517
  g([
9521
9518
  {
@@ -9544,12 +9541,12 @@ g([
9544
9541
  }
9545
9542
  ]);
9546
9543
  i.forBlock.text_trim_v1 = function(t) {
9547
- const e = i.valueToCode(t, "TEXT", _.NONE) || "''", o = {
9544
+ const e = i.valueToCode(t, "TEXT", u.NONE) || "''", o = {
9548
9545
  BOTH: 0,
9549
9546
  LEFT: 1,
9550
9547
  RIGHT: 2
9551
9548
  }[t.getFieldValue("MODE")];
9552
- return [`__trimV1__(${e}, ${o})`, _.ATOMIC];
9549
+ return [`__trimV1__(${e}, ${o})`, u.ATOMIC];
9553
9550
  };
9554
9551
  const Ma = {
9555
9552
  init: function() {
@@ -9579,7 +9576,7 @@ const Ma = {
9579
9576
  };
9580
9577
  A.create_timer_v1 = Ma;
9581
9578
  i.forBlock.create_timer_v1 = function(t) {
9582
- const e = i.valueToCode(t, "INTERVAL", _.ATOMIC) || "1000", n = i.valueToCode(t, "LOOP", _.ATOMIC) || "false", o = i.valueToCode(t, "COUNT", _.ATOMIC) || "1", s = i.valueToCode(t, "IMMEDIATE", _.ATOMIC) || "false", a = i.statementToCode(t, "CALLBACK");
9579
+ const e = i.valueToCode(t, "INTERVAL", u.ATOMIC) || "1000", n = i.valueToCode(t, "LOOP", u.ATOMIC) || "false", o = i.valueToCode(t, "COUNT", u.ATOMIC) || "1", s = i.valueToCode(t, "IMMEDIATE", u.ATOMIC) || "false", a = i.statementToCode(t, "CALLBACK");
9583
9580
  return `__createTimerV1__(${e}, ${n}, ${o}, ${s}, async function() {
9584
9581
  ${a}});
9585
9582
  `;
@@ -9603,7 +9600,7 @@ g([
9603
9600
  }
9604
9601
  ]);
9605
9602
  i.forBlock.delay_v1 = function(t) {
9606
- return `await __delayV1__(${i.valueToCode(t, "DURATION", _.ATOMIC) || "0"});
9603
+ return `await __delayV1__(${i.valueToCode(t, "DURATION", u.ATOMIC) || "0"});
9607
9604
  `;
9608
9605
  };
9609
9606
  const Ua = {
@@ -9671,7 +9668,7 @@ i.forBlock.variable_get_v1 = function(t) {
9671
9668
  return [i.nameDB_.getName(
9672
9669
  t.getFieldValue("VAR"),
9673
9670
  rt.NameType.VARIABLE
9674
- ), _.ATOMIC];
9671
+ ), u.ATOMIC];
9675
9672
  };
9676
9673
  g([
9677
9674
  {
@@ -9700,7 +9697,7 @@ i.forBlock.variable_set_v1 = function(t) {
9700
9697
  const e = i.nameDB_.getName(
9701
9698
  t.getFieldValue("VAR"),
9702
9699
  rt.NameType.VARIABLE
9703
- ), n = i.valueToCode(t, "VALUE", _.ASSIGNMENT) || "0";
9700
+ ), n = i.valueToCode(t, "VALUE", u.ASSIGNMENT) || "0";
9704
9701
  return `${e} = ${n};
9705
9702
  `;
9706
9703
  };
@@ -9778,18 +9775,18 @@ wo.prototype.cleanUp = function() {
9778
9775
  const e = this.getTopBlocks(!0), n = e.filter((c) => c.isMovable()), s = e.filter((c) => !c.isMovable()).map(
9779
9776
  (c) => c.getBoundingRectangle()
9780
9777
  ), a = function(c) {
9781
- for (const l of s)
9782
- if (c.intersects(l))
9783
- return l;
9778
+ for (const _ of s)
9779
+ if (c.intersects(_))
9780
+ return _;
9784
9781
  return null;
9785
9782
  };
9786
9783
  let r = 0;
9787
9784
  for (const c of n) {
9788
- let l = c.getBoundingRectangle();
9789
- c.moveBy(-l.left, r - l.top, ["cleanup"]), c.snapToGrid(), l = c.getBoundingRectangle();
9790
- let d = a(l);
9785
+ let _ = c.getBoundingRectangle();
9786
+ c.moveBy(-_.left, r - _.top, ["cleanup"]), c.snapToGrid(), _ = c.getBoundingRectangle();
9787
+ let d = a(_);
9791
9788
  for (; d != null; )
9792
- r = d.top + d.getHeight() + Fn, c.moveBy(0, r - l.top, ["cleanup"]), c.snapToGrid(), l = c.getBoundingRectangle(), d = a(l);
9789
+ r = d.top + d.getHeight() + Fn, c.moveBy(0, r - _.top, ["cleanup"]), c.snapToGrid(), _ = c.getBoundingRectangle(), d = a(_);
9793
9790
  r = c.getRelativeToSurfaceXY().y + c.getHeightWidth().height + Fn;
9794
9791
  }
9795
9792
  O.setGroup(t), this.setResizesEnabled(!0);
@@ -10095,7 +10092,7 @@ function qa(t) {
10095
10092
  const s = o.getInputTargetBlock("OBJECT"), a = i.valueToCode(
10096
10093
  o,
10097
10094
  "KEY",
10098
- _.ATOMIC
10095
+ u.ATOMIC
10099
10096
  );
10100
10097
  if (s.type === "get_app_property_v1") {
10101
10098
  const r = s;
@@ -10156,7 +10153,7 @@ function Qa(t) {
10156
10153
  }
10157
10154
  return e;
10158
10155
  }
10159
- const Oo = Symbol();
10156
+ const Oo = /* @__PURE__ */ Symbol();
10160
10157
  function za(t) {
10161
10158
  ps(Oo, t);
10162
10159
  }
@@ -10179,10 +10176,10 @@ const Za = /* @__PURE__ */ pt({
10179
10176
  return;
10180
10177
  }
10181
10178
  a.workspace.cleanUp();
10182
- }, l = () => {
10179
+ }, _ = () => {
10183
10180
  c();
10184
10181
  };
10185
- return e({ cleanWorkspace: c }), (d, u) => {
10182
+ return e({ cleanWorkspace: c }), (d, l) => {
10186
10183
  const h = F("v-btn"), p = F("v-tooltip");
10187
10184
  return M(), ut(p, {
10188
10185
  disabled: r.value,
@@ -10193,7 +10190,7 @@ const Za = /* @__PURE__ */ pt({
10193
10190
  density: "comfortable",
10194
10191
  icon: "mdi-broom",
10195
10192
  variant: "outlined",
10196
- onClick: l
10193
+ onClick: _
10197
10194
  }), null, 16)
10198
10195
  ]),
10199
10196
  _: 1
@@ -10210,8 +10207,8 @@ const Za = /* @__PURE__ */ pt({
10210
10207
  setup(t) {
10211
10208
  const { t: e } = Qt(), n = _n(), o = Ht(t, "modelValue"), s = $(() => n.smAndDown.value);
10212
10209
  return (a, r) => {
10213
- const c = F("v-btn"), l = F("v-tooltip");
10214
- return M(), ut(l, {
10210
+ const c = F("v-btn"), _ = F("v-tooltip");
10211
+ return M(), ut(_, {
10215
10212
  disabled: s.value,
10216
10213
  text: Y(e)("x-block-lib.tip.hotkeyCtrlW")
10217
10214
  }, {
@@ -10220,7 +10217,7 @@ const Za = /* @__PURE__ */ pt({
10220
10217
  density: "comfortable",
10221
10218
  icon: o.value ? "mdi-lock" : "mdi-lock-open",
10222
10219
  variant: "outlined",
10223
- onClick: r[0] || (r[0] = (u) => o.value = !o.value)
10220
+ onClick: r[0] || (r[0] = (l) => o.value = !o.value)
10224
10221
  }), null, 16, ["icon"])
10225
10222
  ]),
10226
10223
  _: 1
@@ -10241,7 +10238,7 @@ const Za = /* @__PURE__ */ pt({
10241
10238
  },
10242
10239
  emits: ["x-click"],
10243
10240
  setup(t, { emit: e }) {
10244
- const { primaryColor: n, backgroundColor2: o, highlightColor: s } = Jt(), a = t, r = e, c = Pt(!1), l = $(() => ({
10241
+ const { primaryColor: n, backgroundColor2: o, highlightColor: s } = Jt(), a = t, r = e, c = Pt(!1), _ = $(() => ({
10245
10242
  position: "relative",
10246
10243
  background: c.value ? s.value : o.value,
10247
10244
  width: "100%",
@@ -10258,11 +10255,11 @@ const Za = /* @__PURE__ */ pt({
10258
10255
  border: "1px solid " + n.value,
10259
10256
  pointerEvents: "none"
10260
10257
  }));
10261
- return (u, h) => {
10258
+ return (l, h) => {
10262
10259
  const p = F("v-spacer"), f = F("v-icon"), T = hs("ripple");
10263
10260
  return fs((M(), it("div", {
10264
10261
  class: "d-flex align-center cursor-pointer",
10265
- style: z(l.value),
10262
+ style: z(_.value),
10266
10263
  onClick: h[1] || (h[1] = (E) => r("x-click", a.id)),
10267
10264
  onMouseout: h[2] || (h[2] = (E) => c.value = !1),
10268
10265
  onMouseover: h[3] || (h[3] = (E) => c.value = !0)
@@ -10330,7 +10327,7 @@ const Za = /* @__PURE__ */ pt({
10330
10327
  }), a.value = p;
10331
10328
  } });
10332
10329
  let c = [];
10333
- const l = () => {
10330
+ const _ = () => {
10334
10331
  if (t.lock) {
10335
10332
  Xn(n("x-block-lib.msg.cannotOperateInLockedState"));
10336
10333
  return;
@@ -10339,7 +10336,7 @@ const Za = /* @__PURE__ */ pt({
10339
10336
  a.value.forEach(({ id: f }) => {
10340
10337
  p.push(f);
10341
10338
  }), c = p;
10342
- }, d = () => !t.lock, u = (p) => {
10339
+ }, d = () => !t.lock, l = (p) => {
10343
10340
  if (!s.workspace) {
10344
10341
  console.assert(!1);
10345
10342
  return;
@@ -10380,9 +10377,9 @@ const Za = /* @__PURE__ */ pt({
10380
10377
  animation: 150,
10381
10378
  "ghost-class": "ghost",
10382
10379
  handle: ".x-handle",
10383
- onEnd: u,
10380
+ onEnd: l,
10384
10381
  onMove: d,
10385
- onStart: l
10382
+ onStart: _
10386
10383
  }, {
10387
10384
  default: lt(() => [
10388
10385
  (M(!0), it(to, null, ms(a.value, (T) => (M(), ut(sc, {
@@ -10423,11 +10420,11 @@ const Za = /* @__PURE__ */ pt({
10423
10420
  console.assert(!1);
10424
10421
  return;
10425
10422
  }
10426
- const l = c.getBlockById(r);
10427
- jn.setSelected(l), fn(r), n.value = !1;
10423
+ const _ = c.getBlockById(r);
10424
+ jn.setSelected(_), fn(r), n.value = !1;
10428
10425
  };
10429
10426
  return (r, c) => (M(), it("div", {
10430
- onClick: c[0] || (c[0] = (l) => a(""))
10427
+ onClick: c[0] || (c[0] = (_) => a(""))
10431
10428
  }, "blockTree"));
10432
10429
  }
10433
10430
  }), lc = { class: "text-subtitle-1" }, _c = /* @__PURE__ */ pt({
@@ -10444,7 +10441,7 @@ const Za = /* @__PURE__ */ pt({
10444
10441
  width: T,
10445
10442
  height: "100%"
10446
10443
  };
10447
- }), l = $(() => {
10444
+ }), _ = $(() => {
10448
10445
  let T = 48;
10449
10446
  return s.value && (T += 24), {
10450
10447
  position: "relative",
@@ -10452,31 +10449,31 @@ const Za = /* @__PURE__ */ pt({
10452
10449
  };
10453
10450
  }), d = $(() => ({
10454
10451
  height: "60px"
10455
- })), { open: u } = rn(`blocklyNavigatorDlg${Ze()}`);
10452
+ })), { open: l } = rn(`blocklyNavigatorDlg${Ze()}`);
10456
10453
  Ts(() => {
10457
- u.value = !1;
10454
+ l.value = !1;
10458
10455
  });
10459
10456
  const h = $t("blockList"), p = $t("blockTree");
10460
- return e({ open: u, update: () => {
10457
+ return e({ open: l, update: () => {
10461
10458
  t.type === "list" ? h.value?.update() : t.type === "tree" && p.value?.update();
10462
10459
  } }), (T, E) => {
10463
10460
  const y = F("v-sheet"), k = F("v-btn"), R = F("v-spacer"), Lt = F("v-dialog"), Ve = F("v-tooltip");
10464
10461
  return M(), it(to, null, [
10465
10462
  D(Lt, {
10466
- modelValue: Y(u),
10467
- "onUpdate:modelValue": E[5] || (E[5] = (Q) => oe(u) ? u.value = Q : null),
10463
+ modelValue: Y(l),
10464
+ "onUpdate:modelValue": E[5] || (E[5] = (Q) => oe(l) ? l.value = Q : null),
10468
10465
  eager: "",
10469
10466
  fullscreen: "",
10470
10467
  "no-click-animation": "",
10471
10468
  persistent: "",
10472
10469
  transition: "scroll-x-reverse-transition",
10473
- onKeydown: E[6] || (E[6] = eo(Kt((Q) => u.value = !1, ["stop", "prevent"]), ["esc"]))
10470
+ onKeydown: E[6] || (E[6] = eo(Kt((Q) => l.value = !1, ["stop", "prevent"]), ["esc"]))
10474
10471
  }, {
10475
10472
  default: lt(() => [
10476
10473
  X("div", {
10477
10474
  class: "w-100 h-100 d-flex flex-row-reverse",
10478
- onClick: E[3] || (E[3] = Kt((Q) => u.value = !1, ["self"])),
10479
- onContextmenu: E[4] || (E[4] = Kt((Q) => u.value = !1, ["self", "prevent"]))
10475
+ onClick: E[3] || (E[3] = Kt((Q) => l.value = !1, ["self"])),
10476
+ onContextmenu: E[4] || (E[4] = Kt((Q) => l.value = !1, ["self", "prevent"]))
10480
10477
  }, [
10481
10478
  X("div", {
10482
10479
  class: "elevation-2",
@@ -10497,7 +10494,7 @@ const Za = /* @__PURE__ */ pt({
10497
10494
  density: "comfortable",
10498
10495
  icon: "mdi-close",
10499
10496
  variant: "text",
10500
- onClick: E[0] || (E[0] = (Q) => u.value = !1)
10497
+ onClick: E[0] || (E[0] = (Q) => l.value = !1)
10501
10498
  }),
10502
10499
  X("span", lc, Gt(Y(n)("x-block-lib.navigator")), 1),
10503
10500
  D(R)
@@ -10506,21 +10503,21 @@ const Za = /* @__PURE__ */ pt({
10506
10503
  }),
10507
10504
  X("div", {
10508
10505
  class: "overflow-y-auto",
10509
- style: z(l.value)
10506
+ style: z(_.value)
10510
10507
  }, [
10511
10508
  t.type === "list" ? (M(), ut(rc, {
10512
10509
  key: 0,
10513
10510
  ref_key: "blockList",
10514
10511
  ref: h,
10515
- modelValue: Y(u),
10516
- "onUpdate:modelValue": E[1] || (E[1] = (Q) => oe(u) ? u.value = Q : null),
10512
+ modelValue: Y(l),
10513
+ "onUpdate:modelValue": E[1] || (E[1] = (Q) => oe(l) ? l.value = Q : null),
10517
10514
  lock: t.lock
10518
10515
  }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (M(), ut(uc, {
10519
10516
  key: 1,
10520
10517
  ref_key: "blockTree",
10521
10518
  ref: p,
10522
- modelValue: Y(u),
10523
- "onUpdate:modelValue": E[2] || (E[2] = (Q) => oe(u) ? u.value = Q : null)
10519
+ modelValue: Y(l),
10520
+ "onUpdate:modelValue": E[2] || (E[2] = (Q) => oe(l) ? l.value = Q : null)
10524
10521
  }, null, 8, ["modelValue"])) : dt("", !0),
10525
10522
  X("div", {
10526
10523
  style: z(d.value)
@@ -10540,7 +10537,7 @@ const Za = /* @__PURE__ */ pt({
10540
10537
  density: "comfortable",
10541
10538
  icon: "mdi-navigation-variant",
10542
10539
  variant: "outlined",
10543
- onClick: E[7] || (E[7] = (Tn) => u.value = !0)
10540
+ onClick: E[7] || (E[7] = (Tn) => l.value = !0)
10544
10541
  }), null, 16)
10545
10542
  ]),
10546
10543
  _: 1
@@ -11787,32 +11784,32 @@ function Kc(t, e) {
11787
11784
  if (s instanceof Array)
11788
11785
  r = "json_array_v1";
11789
11786
  else {
11790
- const l = typeof s;
11791
- if (l === "object")
11787
+ const _ = typeof s;
11788
+ if (_ === "object")
11792
11789
  r = "json_map_v1";
11793
- else if (l === "string")
11790
+ else if (_ === "string")
11794
11791
  r = "json_string_v1";
11795
- else if (l === "number")
11792
+ else if (_ === "number")
11796
11793
  r = "json_number_v1";
11797
- else if (l === "boolean")
11794
+ else if (_ === "boolean")
11798
11795
  r = "json_boolean_v1";
11799
11796
  else
11800
11797
  return;
11801
11798
  }
11802
11799
  const c = e.newBlock(r);
11803
11800
  if (c.initSvg(), c.render(), a.connect(c.outputConnection), r === "json_map_v1") {
11804
- const l = [];
11801
+ const _ = [];
11805
11802
  for (const d in s)
11806
- l.push(d);
11807
- c.initData(l);
11808
- for (let d = 0; d < l.length; d++) {
11809
- const u = l[d], h = c.getInput("ENTRY" + d);
11810
- o(s[u], h.connection);
11803
+ _.push(d);
11804
+ c.initData(_);
11805
+ for (let d = 0; d < _.length; d++) {
11806
+ const l = _[d], h = c.getInput("ENTRY" + d);
11807
+ o(s[l], h.connection);
11811
11808
  }
11812
11809
  } else if (r === "json_array_v1") {
11813
11810
  c.initData(s.length);
11814
- for (let l = 0; l < s.length; l++)
11815
- o(s[l], c.getInput("ENTRY" + l).connection);
11811
+ for (let _ = 0; _ < s.length; _++)
11812
+ o(s[_], c.getInput("ENTRY" + _).connection);
11816
11813
  } else r === "json_string_v1" || r === "json_number_v1" ? c.setFieldValue(s, "VALUE") : r === "json_boolean_v1" && c.setFieldValue(s ? "true" : "false", "VALUE");
11817
11814
  };
11818
11815
  o(t, n.getInput("JSON").connection), O.fire(
@@ -11866,7 +11863,7 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
11866
11863
  }),
11867
11864
  emits: /* @__PURE__ */ ze(["ready"], ["update:lock", "update:scale"]),
11868
11865
  setup(t, { expose: e, emit: n }) {
11869
- const { backgroundColor2: o } = Jt(), s = Ht(t, "lock"), a = Ht(t, "scale"), r = n, c = `blocklyEditor${Ze()}`, l = Pt(), d = $t("parentContainer"), u = $t("clean"), h = $t("navigator"), p = {};
11866
+ const { backgroundColor2: o } = Jt(), s = Ht(t, "lock"), a = Ht(t, "scale"), r = n, c = `blocklyEditor${Ze()}`, _ = Pt(), d = $t("parentContainer"), l = $t("clean"), h = $t("navigator"), p = {};
11870
11867
  za(p);
11871
11868
  const f = Pt(!0), T = Pt(!1), E = $(() => t.type === "json" ? "tree" : "list"), y = $(() => ({
11872
11869
  width: "100%",
@@ -11913,11 +11910,11 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
11913
11910
  zIndex: 3e3
11914
11911
  })), { open: xt } = rn(`blocklyEditorFlyout${Ze()}`);
11915
11912
  Nn(async () => {
11916
- if (!l.value || !d.value) {
11913
+ if (!_.value || !d.value) {
11917
11914
  console.assert(!1);
11918
11915
  return;
11919
11916
  }
11920
- Qo(d.value), await Bn(t.locale), p.workspace = xc(l.value, t.type, t.version, t.dark), p.workspace.addChangeListener(O.disableOrphans), p.workspace.addChangeListener(No);
11917
+ Qo(d.value), await Bn(t.locale), p.workspace = xc(_.value, t.type, t.version, t.dark), p.workspace.addChangeListener(O.disableOrphans), p.workspace.addChangeListener(No);
11921
11918
  const b = document.querySelector(`#${c} .blocklyFlyout`);
11922
11919
  new MutationObserver((xe) => {
11923
11920
  xe.forEach((ee) => {
@@ -11926,7 +11923,7 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
11926
11923
  }).observe(b, { attributes: !0 }), xt.value = p.workspace.getFlyout().isVisible(), En(), gn(), await Es(), r("ready");
11927
11924
  }), Ln(() => {
11928
11925
  xt.value = !1;
11929
- }), zo(l, () => {
11926
+ }), zo(_, () => {
11930
11927
  p.workspace && Zo(p.workspace);
11931
11928
  });
11932
11929
  async function No(b) {
@@ -11960,7 +11957,7 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
11960
11957
  }, Ro = () => {
11961
11958
  p.workspace.fireChangeListener(new no());
11962
11959
  }, An = () => {
11963
- u.value?.cleanWorkspace();
11960
+ l.value?.cleanWorkspace();
11964
11961
  }, In = () => {
11965
11962
  s.value = !s.value;
11966
11963
  }, yn = () => {
@@ -11999,7 +11996,7 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
11999
11996
  X("div", {
12000
11997
  id: c,
12001
11998
  ref_key: "blocklyDiv",
12002
- ref: l,
11999
+ ref: _,
12003
12000
  style: z(y.value)
12004
12001
  }, null, 4),
12005
12002
  X("div", {
@@ -12024,7 +12021,7 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
12024
12021
  }, [
12025
12022
  D(Za, {
12026
12023
  ref_key: "clean",
12027
- ref: u,
12024
+ ref: l,
12028
12025
  lock: s.value
12029
12026
  }, null, 8, ["lock"]),
12030
12027
  D(tc, {
@@ -12095,17 +12092,17 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
12095
12092
  };
12096
12093
  }), c = (d) => {
12097
12094
  a.value = d.code;
12098
- }, { open: l } = rn("sourceDlg", c);
12099
- return (d, u) => {
12095
+ }, { open: _ } = rn("sourceDlg", c);
12096
+ return (d, l) => {
12100
12097
  const h = F("v-sheet"), p = F("v-btn"), f = F("v-spacer"), T = F("v-dialog");
12101
12098
  return M(), ut(T, {
12102
- modelValue: Y(l),
12103
- "onUpdate:modelValue": u[1] || (u[1] = (E) => oe(l) ? l.value = E : null),
12099
+ modelValue: Y(_),
12100
+ "onUpdate:modelValue": l[1] || (l[1] = (E) => oe(_) ? _.value = E : null),
12104
12101
  fullscreen: "",
12105
12102
  "no-click-animation": "",
12106
12103
  persistent: "",
12107
12104
  transition: "dialog-bottom-transition",
12108
- onKeydown: u[2] || (u[2] = eo(Kt((E) => l.value = !1, ["stop", "prevent"]), ["esc"]))
12105
+ onKeydown: l[2] || (l[2] = eo(Kt((E) => _.value = !1, ["stop", "prevent"]), ["esc"]))
12109
12106
  }, {
12110
12107
  default: lt(() => [
12111
12108
  D(h, {
@@ -12129,7 +12126,7 @@ const Hc = { class: "position-relative w-100 h-100" }, Gc = /* @__PURE__ */ pt({
12129
12126
  density: "comfortable",
12130
12127
  icon: "mdi-close",
12131
12128
  variant: "text",
12132
- onClick: u[0] || (u[0] = (E) => l.value = !1)
12129
+ onClick: l[0] || (l[0] = (E) => _.value = !1)
12133
12130
  }),
12134
12131
  X("span", jc, Gt(Y(e)("x-block-lib.dlg.source.title")), 1),
12135
12132
  D(f)