x-block-lib 0.8.26 → 0.8.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +669 -610
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -7,11 +7,11 @@
7
7
  License: see project LICENSE
8
8
  Touched: 2021
9
9
  */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-6cb62cd6]{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(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
- import { E as I, r as En, M as Dn, s as Co, a as ko, X as Mn, u as C, B as g, j as s, O as r, F as O, b as $e, i as v, c as mt, d as No, e as M, f as m, g as Lo, h as K, k as dt, p as Yt, l as Z, m as gn, n as B, C as Un, N as tt, o as So, P as He, q as Me, V as kt, t as Vn, W as Bo, v as bo, w as Po, S as Ro, x as Do, y as Mo, z as Wt, T as Ae, A as xn, D as Uo, G as Vo, H as Yn, I as xo, J as Yo, K as Fo, L as wo, Q as Ko, R as $o, U as Ho, Y as Go } from "./vendor.txua272r.js";
11
- import { globalState as T } from "x-state-lib";
12
- import { globalObjects as yt, openConfirmDlg as Wo, openPromptDlg as jo, messageWarning as Fn, useColor as jt, useSystem as wn, useViewStack as tn, eventBus as Ct } from "x-essential-lib";
13
- import { pkgs as ie, parsePixelStr as Xo, parsePercentStr as Jo, getPropertyTag as Mt, unwrapEventId as en, elements as q, makeEventId as at, toEventName as Ie, unwrapMethodId as nn, makeMethodId as ee, toMethodName as on, unwrapPropertyId as sn, makePropertyId as Zt, toPropertyName as Kn, isLocaleOfMethodKind as $n, makeTriggerId as It } from "x-runtime-lib";
14
- import { provide as qo, inject as Qo, defineComponent as st, resolveComponent as D, createBlock as et, openBlock as S, unref as R, withCtx as nt, createVNode as L, mergeProps as an, useModel as Kt, ref as Nt, computed as F, resolveDirective as zo, withDirectives as Zo, createElementBlock as J, normalizeStyle as G, createElementVNode as w, createCommentVNode as ct, toDisplayString as $t, withModifiers as Ft, mergeModels as Ge, Fragment as Hn, renderList as ti, useId as We, onUnmounted as ei, useTemplateRef as wt, withKeys as Gn, isRef as ne, onMounted as An, nextTick as ni, onBeforeUnmount as In, watch as Vt, renderSlot as oi } from "vue";
10
+ import { E as I, r as En, M as Dn, s as Co, a as ko, X as Mn, u as C, B as g, j as s, O as r, F as O, b as He, i as v, c as mt, d as No, e as M, f as T, g as Lo, h as K, k as dt, p as Yt, l as ot, m as gn, n as B, C as Un, N as it, o as So, P as Ge, q as Ue, V as kt, t as Vn, W as Bo, v as bo, w as Po, S as Ro, x as Do, y as Mo, z as Wt, T as Ae, A as xn, D as Uo, G as Vo, H as Yn, I as xo, J as Yo, K as Fo, L as wo, Q as Ko, R as $o, U as Ho, Y as Go } from "./vendor.txua272r.js";
11
+ import { globalState as E } from "x-state-lib";
12
+ import { globalObjects as yt, openConfirmDlg as Wo, openPromptDlg as jo, messageWarning as Fn, useColor as jt, useSystem as wn, useViewStack as en, eventBus as Ct } from "x-essential-lib";
13
+ import { pkgs as ie, parsePixelStr as Xo, parsePercentStr as Jo, getPropertyTag as Mt, unwrapEventId as Ie, elements as Z, makeEventId as nt, toEventName as Oe, unwrapMethodId as nn, makeMethodId as ee, toMethodName as on, unwrapPropertyId as sn, makePropertyId as Zt, toPropertyName as Kn, isLocaleOfMethodKind as $n, makeTriggerId as It } from "x-runtime-lib";
14
+ import { provide as qo, inject as Qo, defineComponent as ct, resolveComponent as D, createBlock as st, openBlock as S, unref as R, withCtx as at, createVNode as L, mergeProps as an, useModel as Kt, ref as Nt, computed as F, resolveDirective as zo, withDirectives as Zo, createElementBlock as z, normalizeStyle as G, createElementVNode as w, createCommentVNode as rt, toDisplayString as $t, withModifiers as Ft, mergeModels as We, Fragment as Hn, renderList as ti, useId as je, onUnmounted as ei, useTemplateRef as wt, withKeys as Gn, isRef as ne, onMounted as An, nextTick as ni, onBeforeUnmount as In, watch as Vt, renderSlot as oi } from "vue";
15
15
  import { useI18n as Xt } from "vue-i18n";
16
16
  import { useDisplay as ii } from "vuetify";
17
17
  var b = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(b || {});
@@ -33,11 +33,11 @@ async function On(t) {
33
33
  const e = await jn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.n1dap9o0.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.m1pmgr3r.js") }), `./msg/${t}.ts`, 3);
34
34
  Co(e.default);
35
35
  }
36
- function h(t) {
36
+ function f(t) {
37
37
  return Dn[t] ?? t;
38
38
  }
39
39
  const Lt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", se = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
40
- function Oe(t) {
40
+ function ye(t) {
41
41
  const e = t.lastIndexOf("V");
42
42
  if (e <= 0 || e >= t.length - 1)
43
43
  return console.assert(!1, `invalid key=${t}`), "";
@@ -52,7 +52,7 @@ function ae(t) {
52
52
  return `${o}${i}`;
53
53
  }
54
54
  function k(t) {
55
- return t.length <= 0 && t.push([h("NO_OPTION"), ""]), t;
55
+ return t.length <= 0 && t.push([f("NO_OPTION"), ""]), t;
56
56
  }
57
57
  function si(t) {
58
58
  let e = 0;
@@ -63,19 +63,19 @@ function si(t) {
63
63
  function Xn(t) {
64
64
  return t.ui === "strInput" ? "string" : t.ui === "numInput" ? "number" : t.ui === "switch" ? "boolean" : "string";
65
65
  }
66
- function ye(t, e) {
66
+ function ve(t, e) {
67
67
  return !!(t.startsWith("basic.") || !e.ui || e.readonly);
68
68
  }
69
- function X(t) {
69
+ function J(t) {
70
70
  return t.startsWith("globality_v");
71
71
  }
72
- function ot(t) {
72
+ function q(t) {
73
73
  return t.startsWith("reference_v");
74
74
  }
75
- function it(t) {
75
+ function Q(t) {
76
76
  return t.startsWith("multiple_ref_v");
77
77
  }
78
- function Ue(t) {
78
+ function Ve(t) {
79
79
  const e = `<block type="text_v1"><field name="TEXT">${t}</field></block>`;
80
80
  return C.xml.textToDom(e);
81
81
  }
@@ -86,9 +86,9 @@ function yn(t) {
86
86
  function ai(t) {
87
87
  return C.xml.textToDom('<block type="logic_boolean_v1"><field name="BOOL">FALSE</field></block>');
88
88
  }
89
- function je(t, e) {
89
+ function Xe(t, e) {
90
90
  let n = null;
91
- return e === "string" ? n = Ue("") : e === "integer" || e === "decimal" ? n = yn(0) : e === "boolean" ? n = ai() : e === "enum" || e === "dateTime" ? n = Ue("") : console.assert(!1), n ? Mn.domToBlock(n, t) : null;
91
+ return e === "string" ? n = Ve("") : e === "integer" || e === "decimal" ? n = yn(0) : e === "boolean" ? n = ai() : e === "enum" || e === "dateTime" ? n = Ve("") : console.assert(!1), n ? Mn.domToBlock(n, t) : null;
92
92
  }
93
93
  function Tt(t) {
94
94
  return t === "string" ? "String" : t === "number" ? "Number" : t === "boolean" ? "Boolean" : t === "array" ? "Array" : t === "object" ? "Object" : (console.assert(!1), null);
@@ -150,11 +150,11 @@ function ui() {
150
150
  return C.xml.textToDom('<shadow type="object_create_v1"></shadow>');
151
151
  }
152
152
  function li(t) {
153
- const e = `<shadow type="${Oe(t)}"></shadow>`;
153
+ const e = `<shadow type="${ye(t)}"></shadow>`;
154
154
  return C.xml.textToDom(e);
155
155
  }
156
156
  function _i(t) {
157
- const e = `<shadow type="${Oe(t)}"></shadow>`;
157
+ const e = `<shadow type="${ye(t)}"></shadow>`;
158
158
  return C.xml.textToDom(e);
159
159
  }
160
160
  function pi(t) {
@@ -173,14 +173,14 @@ function hi(t) {
173
173
  return t.ui === "dummy" ? console.assert(!0) : t.ui === "strInput" ? e = pt(t.default) : t.ui === "numInput" ? e = ce(t.default) : t.ui === "switch" ? e = re(t.default) : t.ui === "select" ? e = li(t.items) : t.ui === "multiTypes" ? e = _i(t.types) : t.ui === "compSelect" ? e = di() : t.ui === "colorPicker" ? e = pi(t.default ?? "#ff0000") : console.assert(!1), e;
174
174
  }
175
175
  function fi() {
176
- const { activeObject: t, activePage: e } = T.app, n = [];
176
+ const { activeObject: t, activePage: e } = E.app, n = [];
177
177
  if (t.type === "page")
178
178
  for (const { id: o, name: i, type: a } of e.meta.arguments)
179
179
  n.push({ key: o, name: i, type: a });
180
180
  return n;
181
181
  }
182
182
  function vn(t) {
183
- const { activeObject: e, activePage: n } = T.app;
183
+ const { activeObject: e, activePage: n } = E.app;
184
184
  if (e.type === "page") {
185
185
  const o = n.meta.arguments.find((i) => i.id === t);
186
186
  if (o)
@@ -245,11 +245,11 @@ const Ti = {
245
245
  checkWarning_: function() {
246
246
  const t = vn(this.argument.key);
247
247
  if (!t) {
248
- this.setWarningText(h("WARN_ARGUMENT_NOT_FOUND"));
248
+ this.setWarningText(f("WARN_ARGUMENT_NOT_FOUND"));
249
249
  return;
250
250
  }
251
251
  if (t.name !== this.argument.name && (this.argument.name = t.name), t.type !== this.argument.type) {
252
- this.setWarningText(h("WARN_ARGUMENT_HAS_CHANGED"));
252
+ this.setWarningText(f("WARN_ARGUMENT_HAS_CHANGED"));
253
253
  return;
254
254
  }
255
255
  this.setWarningText(null);
@@ -261,7 +261,7 @@ s.forBlock.get_page_argument_v1 = function(t) {
261
261
  return [`__getPageArgumentV1__(${s.quote_(e.argument.key)})`, r.FUNCTION_CALL];
262
262
  };
263
263
  const Ei = (t, e) => {
264
- const n = Oe(t), o = ae(t);
264
+ const n = ye(t), o = ae(t);
265
265
  g[n] = {
266
266
  init: function() {
267
267
  this.appendDummyInput().appendField(
@@ -286,7 +286,7 @@ for (const t in ie) {
286
286
  Ei(n, e.items[n]);
287
287
  }
288
288
  const gi = (t, e) => {
289
- const n = Oe(t), o = ae(t);
289
+ const n = ye(t), o = ae(t);
290
290
  g[n] = {
291
291
  init: function() {
292
292
  this.value = e[0].default ?? "", this.appendDummyInput("DUMMY").appendField(
@@ -339,7 +339,7 @@ const gi = (t, e) => {
339
339
  let u, l;
340
340
  if (c.ui === "pixelInput") {
341
341
  const _ = Xo(this.value) ?? 0;
342
- u = new $e(
342
+ u = new He(
343
343
  _,
344
344
  c.min,
345
345
  c.max,
@@ -350,7 +350,7 @@ const gi = (t, e) => {
350
350
  ), l = "px";
351
351
  } else if (c.ui === "percentInput") {
352
352
  const _ = Jo(this.value) ?? 0;
353
- u = new $e(
353
+ u = new He(
354
354
  _,
355
355
  c.min,
356
356
  c.max,
@@ -365,7 +365,7 @@ const gi = (t, e) => {
365
365
  checkWarning_: function() {
366
366
  let i = this.value;
367
367
  if (i || (i = void 0), !e.find((c) => c.validator(i))) {
368
- this.setWarningText(h("WARN_TYPE_NOT_FOUND"));
368
+ this.setWarningText(f("WARN_TYPE_NOT_FOUND"));
369
369
  return;
370
370
  }
371
371
  this.setWarningText(null);
@@ -493,17 +493,17 @@ const yi = {
493
493
  if (!n)
494
494
  continue;
495
495
  if (!n.type.startsWith("get_app_prop_v") && !n.type.startsWith("get_app_state_v")) {
496
- this.setWarningText(h("WARN_INVALID_BIND_ITEM"));
496
+ this.setWarningText(f("WARN_INVALID_BIND_ITEM"));
497
497
  return;
498
498
  }
499
499
  const o = n.outputConnection?.getCheck()?.[0] ?? "";
500
500
  if (!o) {
501
- this.setWarningText(h("WARN_TYPE_NOT_MATCH"));
501
+ this.setWarningText(f("WARN_TYPE_NOT_MATCH"));
502
502
  return;
503
503
  }
504
504
  if (t) {
505
505
  if (o !== t) {
506
- this.setWarningText(h("WARN_TYPE_NOT_MATCH"));
506
+ this.setWarningText(f("WARN_TYPE_NOT_MATCH"));
507
507
  return;
508
508
  }
509
509
  } else
@@ -517,10 +517,10 @@ s.forBlock.app_bind_v1 = function() {
517
517
  return "";
518
518
  };
519
519
  function qn() {
520
- return T.app.appList;
520
+ return E.app.appList;
521
521
  }
522
522
  function Cn(t) {
523
- return T.app.appList.find((e) => e.id === t);
523
+ return E.app.appList.find((e) => e.id === t);
524
524
  }
525
525
  function vi() {
526
526
  const t = [];
@@ -528,18 +528,18 @@ function vi() {
528
528
  t.push([o, n]);
529
529
  }), k(t);
530
530
  }
531
- function Xe(t) {
532
- const e = T.app.appList.find((n) => n.id === t);
531
+ function Je(t) {
532
+ const e = E.app.appList.find((n) => n.id === t);
533
533
  return e ? e.pages : [];
534
534
  }
535
- function Ve(t, e) {
536
- const n = T.app.appList.find((o) => o.id === t);
535
+ function xe(t, e) {
536
+ const n = E.app.appList.find((o) => o.id === t);
537
537
  if (n)
538
538
  return n.pages.find((o) => o.id === e);
539
539
  }
540
540
  function Ci(t) {
541
541
  const e = [];
542
- return Xe(t).forEach(({ id: o, name: i }) => {
542
+ return Je(t).forEach(({ id: o, name: i }) => {
543
543
  e.push([i, o]);
544
544
  }), k(e);
545
545
  }
@@ -550,11 +550,11 @@ const Qn = {
550
550
  position: 0
551
551
  };
552
552
  function zn() {
553
- const { comps: t } = T.app.activeApp;
553
+ const { comps: t } = E.app.activeApp;
554
554
  return [Qn, ...t];
555
555
  }
556
556
  function kn(t) {
557
- return t === "" ? Qn : T.app.activeApp.comps.find((e) => e.id === t);
557
+ return t === "" ? Qn : E.app.activeApp.comps.find((e) => e.id === t);
558
558
  }
559
559
  function ki() {
560
560
  const { i18n: t } = yt, e = [];
@@ -569,101 +569,123 @@ function bt(t) {
569
569
  e.push({ key: n, name: o, type: i });
570
570
  return e;
571
571
  }
572
- function rt(t) {
572
+ function j(t) {
573
573
  return [
574
574
  { key: "newValue", name: "x-runtime-lib.newValue", type: t },
575
575
  { key: "oldValue", name: "x-runtime-lib.oldValue", type: t }
576
576
  ];
577
577
  }
578
- function Je(t) {
579
- const { properties: e } = T.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = T.app, c = [], u = Mt(n.type, n.subtype);
578
+ function qe(t) {
579
+ const { properties: e } = E.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = E.app, c = [], u = Mt(n.type, n.subtype);
580
580
  if (!u)
581
581
  return c;
582
582
  const l = n.nodes.find((d) => d.id === t);
583
583
  if (!l)
584
584
  return c;
585
- const _ = q[l.key];
585
+ const _ = Z[l.key];
586
586
  if (!_)
587
587
  return console.assert(!1, "invalid element", l.key), c;
588
- for (const { key: d, name: f, params: p } of _.events)
588
+ for (const { key: d, name: h, params: p } of _.events)
589
589
  c.push({
590
- id: at("elementEvent", t, d),
590
+ id: nt("elementEvent", t, d),
591
591
  kind: "elementEvent",
592
- names: [f],
592
+ names: [h],
593
593
  params: p
594
594
  });
595
- if (ot(_.key) && l.reference && l.reference.comp) {
595
+ if (q(_.key) && l.reference && l.reference.comp) {
596
596
  const d = a[l.reference.comp];
597
597
  if (d)
598
- for (const { id: f, name: p, params: E } of d.meta.events)
598
+ for (const { id: h, name: p, params: m } of d.meta.events)
599
599
  c.push({
600
- id: at("referenceEvent", t, f),
600
+ id: nt("referenceEvent", t, h),
601
601
  kind: "referenceEvent",
602
602
  names: [p],
603
- params: bt(E)
603
+ params: bt(m)
604
604
  });
605
605
  }
606
- if (it(_.key) && l.reference && l.reference.comp) {
606
+ if (Q(_.key) && l.reference && l.reference.comp) {
607
607
  const d = a[l.reference.comp];
608
608
  if (d)
609
- for (const { id: f, name: p, params: E } of d.meta.events)
609
+ for (const { id: h, name: p, params: m } of d.meta.events)
610
610
  c.push({
611
- id: at("multipleRefEvent", t, f),
611
+ id: nt("multipleRefEvent", t, h),
612
612
  kind: "multipleRefEvent",
613
613
  names: [p],
614
- params: bt(E)
614
+ params: bt(m)
615
615
  });
616
616
  }
617
617
  if (e[_.key] && e[_.key][u])
618
- for (const { keys: d, names: f, raw: p } of e[_.key][u])
619
- ye(d, p) || c.push({
620
- id: at("elementPropertyChangeEvent", t, d),
618
+ for (const { keys: d, names: h, raw: p } of e[_.key][u])
619
+ ve(d, p) || c.push({
620
+ id: nt("elementPropertyChangeEvent", t, d),
621
621
  kind: "elementPropertyChangeEvent",
622
- names: f,
623
- params: rt(Xn(p))
622
+ names: h,
623
+ params: j(Xn(p))
624
624
  });
625
- if (X(_.key) && n.type === "comp")
626
- for (const { id: d, name: f, type: p } of i.meta.properties)
625
+ if (q(_.key) && l.reference && l.reference.comp) {
626
+ const d = a[l.reference.comp];
627
+ if (d)
628
+ for (const { id: h, name: p, type: m } of d.meta.properties)
629
+ c.push({
630
+ id: nt("referencePropertyChangeEvent", t, h),
631
+ kind: "referencePropertyChangeEvent",
632
+ names: [p],
633
+ params: j(m)
634
+ });
635
+ }
636
+ if (Q(_.key) && l.reference && l.reference.comp) {
637
+ const d = a[l.reference.comp];
638
+ if (d)
639
+ for (const { id: h, name: p, type: m } of d.meta.properties)
640
+ c.push({
641
+ id: nt("multipleRefPropertyChangeEvent", t, h),
642
+ kind: "multipleRefPropertyChangeEvent",
643
+ names: [p],
644
+ params: j(m)
645
+ });
646
+ }
647
+ if (J(_.key) && n.type === "comp")
648
+ for (const { id: d, name: h, type: p } of i.meta.properties)
627
649
  c.push({
628
- id: at("customPropertyChangeEvent", t, d),
650
+ id: nt("customPropertyChangeEvent", t, d),
629
651
  kind: "customPropertyChangeEvent",
630
- names: [f],
631
- params: rt(p)
652
+ names: [h],
653
+ params: j(p)
632
654
  });
633
- if (X(_.key)) {
655
+ if (J(_.key)) {
634
656
  if (n.type === "page")
635
- for (const { id: d, name: f, type: p } of o.meta.states)
657
+ for (const { id: d, name: h, type: p } of o.meta.states)
636
658
  c.push({
637
- id: at("stateChangeEvent", "globality", d),
659
+ id: nt("stateChangeEvent", "globality", d),
638
660
  kind: "stateChangeEvent",
639
- names: [f],
640
- params: rt(p)
661
+ names: [h],
662
+ params: j(p)
641
663
  });
642
664
  else if (n.type === "comp")
643
- for (const { id: d, name: f, type: p } of i.meta.states)
665
+ for (const { id: d, name: h, type: p } of i.meta.states)
644
666
  c.push({
645
- id: at("stateChangeEvent", "globality", d),
667
+ id: nt("stateChangeEvent", "globality", d),
646
668
  kind: "stateChangeEvent",
647
- names: [f],
648
- params: rt(p)
669
+ names: [h],
670
+ params: j(p)
649
671
  });
650
672
  }
651
673
  return c;
652
674
  }
653
- function xe(t) {
654
- const { properties: e } = T.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = T.app, c = Mt(n.type, n.subtype);
675
+ function Ye(t) {
676
+ const { properties: e } = E.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = E.app, c = Mt(n.type, n.subtype);
655
677
  if (!c)
656
678
  return;
657
- const { kind: u, nodeId: l, eventKey: _ } = en(t), d = n.nodes.find((p) => p.id === l);
679
+ const { kind: u, nodeId: l, eventKey: _ } = Ie(t), d = n.nodes.find((p) => p.id === l);
658
680
  if (!d)
659
681
  return;
660
- const f = q[d.key];
661
- if (!f) {
682
+ const h = Z[d.key];
683
+ if (!h) {
662
684
  console.assert(!1, "invalid element", d.key);
663
685
  return;
664
686
  }
665
687
  if (u === "elementEvent") {
666
- const p = f.events.find((E) => E.key === _);
688
+ const p = h.events.find((m) => m.key === _);
667
689
  if (p)
668
690
  return {
669
691
  id: t,
@@ -672,97 +694,129 @@ function xe(t) {
672
694
  params: p.params
673
695
  };
674
696
  } else if (u === "referenceEvent") {
675
- if (ot(f.key) && d.reference && d.reference.comp) {
697
+ if (q(h.key) && d.reference && d.reference.comp) {
676
698
  const p = a[d.reference.comp];
677
699
  if (p) {
678
- const E = p.meta.events.find((A) => A.id === _);
679
- if (E)
700
+ const m = p.meta.events.find((A) => A.id === _);
701
+ if (m)
680
702
  return {
681
703
  id: t,
682
704
  kind: u,
683
- names: [E.name],
684
- params: bt(E.params)
705
+ names: [m.name],
706
+ params: bt(m.params)
685
707
  };
686
708
  }
687
709
  }
688
710
  } else if (u === "multipleRefEvent") {
689
- if (it(f.key) && d.reference && d.reference.comp) {
711
+ if (Q(h.key) && d.reference && d.reference.comp) {
690
712
  const p = a[d.reference.comp];
691
713
  if (p) {
692
- const E = p.meta.events.find((A) => A.id === _);
693
- if (E)
714
+ const m = p.meta.events.find((A) => A.id === _);
715
+ if (m)
694
716
  return {
695
717
  id: t,
696
718
  kind: u,
697
- names: [E.name],
698
- params: bt(E.params)
719
+ names: [m.name],
720
+ params: bt(m.params)
699
721
  };
700
722
  }
701
723
  }
702
724
  } else if (u === "elementPropertyChangeEvent") {
703
- if (e[f.key] && e[f.key][c]) {
704
- const p = e[f.key][c].find(
705
- (E) => E.keys === _
725
+ if (e[h.key] && e[h.key][c]) {
726
+ const p = e[h.key][c].find(
727
+ (m) => m.keys === _
706
728
  );
707
729
  if (p)
708
730
  return {
709
731
  id: t,
710
732
  kind: u,
711
733
  names: p.names,
712
- params: rt(Xn(p.raw))
734
+ params: j(Xn(p.raw))
713
735
  };
714
736
  }
737
+ } else if (u === "referencePropertyChangeEvent") {
738
+ if (q(h.key) && d.reference && d.reference.comp) {
739
+ const p = a[d.reference.comp];
740
+ if (p) {
741
+ const m = p.meta.properties.find(
742
+ (A) => A.id === _
743
+ );
744
+ if (m)
745
+ return {
746
+ id: t,
747
+ kind: u,
748
+ names: [m.name],
749
+ params: j(m.type)
750
+ };
751
+ }
752
+ }
753
+ } else if (u === "multipleRefPropertyChangeEvent") {
754
+ if (Q(h.key) && d.reference && d.reference.comp) {
755
+ const p = a[d.reference.comp];
756
+ if (p) {
757
+ const m = p.meta.properties.find(
758
+ (A) => A.id === _
759
+ );
760
+ if (m)
761
+ return {
762
+ id: t,
763
+ kind: u,
764
+ names: [m.name],
765
+ params: j(m.type)
766
+ };
767
+ }
768
+ }
715
769
  } else if (u === "customPropertyChangeEvent") {
716
- if (X(f.key) && n.type === "comp") {
770
+ if (J(h.key) && n.type === "comp") {
717
771
  const p = i.meta.properties.find(
718
- (E) => E.id === _
772
+ (m) => m.id === _
719
773
  );
720
774
  if (p)
721
775
  return {
722
776
  id: t,
723
777
  kind: u,
724
778
  names: [p.name],
725
- params: rt(p.type)
779
+ params: j(p.type)
726
780
  };
727
781
  }
728
- } else if (u === "stateChangeEvent" && X(f.key)) {
782
+ } else if (u === "stateChangeEvent" && J(h.key)) {
729
783
  if (n.type === "page") {
730
784
  const p = o.meta.states.find(
731
- (E) => E.id === _
785
+ (m) => m.id === _
732
786
  );
733
787
  if (p)
734
788
  return {
735
789
  id: t,
736
790
  kind: u,
737
791
  names: [p.name],
738
- params: rt(p.type)
792
+ params: j(p.type)
739
793
  };
740
794
  } else if (n.type === "comp") {
741
795
  const p = i.meta.states.find(
742
- (E) => E.id === _
796
+ (m) => m.id === _
743
797
  );
744
798
  if (p)
745
799
  return {
746
800
  id: t,
747
801
  kind: u,
748
802
  names: [p.name],
749
- params: rt(p.type)
803
+ params: j(p.type)
750
804
  };
751
805
  }
752
806
  }
753
807
  }
754
808
  function Ni(t) {
755
- const e = [], n = Je(t);
809
+ const e = [], n = qe(t);
756
810
  for (const { id: o, kind: i, names: a } of n)
757
- e.push([Ie(i, a), o]);
811
+ e.push([Oe(i, a), o]);
758
812
  return k(e);
759
813
  }
760
814
  function Zn() {
761
- const { activeObject: t, activeComp: e } = T.app, n = [];
815
+ const { activeObject: t, activeComp: e } = E.app, n = [];
762
816
  if (t.type === "comp")
763
817
  for (const { id: o, name: i, params: a } of e.meta.events)
764
818
  n.push({
765
- id: at("customEvent", "globality", o),
819
+ id: nt("customEvent", "globality", o),
766
820
  kind: "customEvent",
767
821
  names: [i],
768
822
  params: bt(a)
@@ -770,7 +824,7 @@ function Zn() {
770
824
  return n;
771
825
  }
772
826
  function Nn(t) {
773
- const { activeObject: e, activeComp: n } = T.app, { kind: o, nodeId: i, eventKey: a } = en(t);
827
+ const { activeObject: e, activeComp: n } = E.app, { kind: o, nodeId: i, eventKey: a } = Ie(t);
774
828
  if (o === "customEvent" && i === "globality" && e.type === "comp") {
775
829
  const c = n.meta.events.find(
776
830
  (u) => u.id === a
@@ -787,7 +841,7 @@ function Nn(t) {
787
841
  function Li() {
788
842
  const t = [], e = Zn();
789
843
  for (const { id: n, kind: o, names: i } of e)
790
- t.push([Ie(o, i), n]);
844
+ t.push([Oe(o, i), n]);
791
845
  return k(t);
792
846
  }
793
847
  function Pt(t) {
@@ -802,11 +856,11 @@ function Rt(t) {
802
856
  e.push({ key: n, name: o, type: i });
803
857
  return e;
804
858
  }
805
- function qe(t) {
806
- const { activeObject: e, depends: n } = T.app, o = [], i = e.nodes.find((c) => c.id === t);
859
+ function Qe(t) {
860
+ const { activeObject: e, depends: n } = E.app, o = [], i = e.nodes.find((c) => c.id === t);
807
861
  if (!i)
808
862
  return o;
809
- const a = q[i.key];
863
+ const a = Z[i.key];
810
864
  if (!a)
811
865
  return console.assert(!1, "inavlid element", i.key), o;
812
866
  for (const { key: c, name: u, inputs: l, outputs: _ } of a.methods)
@@ -817,7 +871,7 @@ function qe(t) {
817
871
  inputs: l,
818
872
  outputs: _
819
873
  });
820
- if (ot(a.key) && i.reference && i.reference.comp) {
874
+ if (q(a.key) && i.reference && i.reference.comp) {
821
875
  const c = n[i.reference.comp];
822
876
  if (c)
823
877
  for (const { id: u, name: l, inputs: _, outputs: d } of c.meta.methods)
@@ -829,7 +883,7 @@ function qe(t) {
829
883
  outputs: Rt(d)
830
884
  });
831
885
  }
832
- if (it(a.key) && i.reference && i.reference.comp) {
886
+ if (Q(a.key) && i.reference && i.reference.comp) {
833
887
  const c = n[i.reference.comp];
834
888
  if (c)
835
889
  for (const { id: u, name: l, inputs: _, outputs: d } of c.meta.methods)
@@ -841,13 +895,13 @@ function qe(t) {
841
895
  outputs: Rt(d)
842
896
  });
843
897
  }
844
- return X(a.key) && e.type, o;
898
+ return J(a.key) && e.type, o;
845
899
  }
846
- function Ye(t) {
847
- const { activeObject: e, depends: n } = T.app, { kind: o, nodeId: i, methodKey: a } = nn(t), c = e.nodes.find((l) => l.id === i);
900
+ function Fe(t) {
901
+ const { activeObject: e, depends: n } = E.app, { kind: o, nodeId: i, methodKey: a } = nn(t), c = e.nodes.find((l) => l.id === i);
848
902
  if (!c)
849
903
  return;
850
- const u = q[c.key];
904
+ const u = Z[c.key];
851
905
  if (!u) {
852
906
  console.assert(!1, "invalid element", c.key);
853
907
  return;
@@ -863,7 +917,7 @@ function Ye(t) {
863
917
  outputs: l.outputs
864
918
  };
865
919
  } else if (o === "referenceMethod") {
866
- if (ot(u.key) && c.reference && c.reference.comp) {
920
+ if (q(u.key) && c.reference && c.reference.comp) {
867
921
  const l = n[c.reference.comp];
868
922
  if (l) {
869
923
  const _ = l.meta.methods.find(
@@ -879,7 +933,7 @@ function Ye(t) {
879
933
  };
880
934
  }
881
935
  }
882
- } else if (o === "multipleRefMethod" && it(u.key) && c.reference && c.reference.comp) {
936
+ } else if (o === "multipleRefMethod" && Q(u.key) && c.reference && c.reference.comp) {
883
937
  const l = n[c.reference.comp];
884
938
  if (l) {
885
939
  const _ = l.meta.methods.find(
@@ -897,13 +951,13 @@ function Ye(t) {
897
951
  }
898
952
  }
899
953
  function Si(t) {
900
- const e = [], n = qe(t);
954
+ const e = [], n = Qe(t);
901
955
  for (const { id: o, kind: i, names: a } of n)
902
956
  e.push([on(i, a), o]);
903
957
  return k(e);
904
958
  }
905
959
  function rn() {
906
- const { activeObject: t, activeComp: e } = T.app, n = [];
960
+ const { activeObject: t, activeComp: e } = E.app, n = [];
907
961
  if (t.type === "comp")
908
962
  for (const { id: o, name: i, inputs: a, outputs: c } of e.meta.methods)
909
963
  n.push({
@@ -916,7 +970,7 @@ function rn() {
916
970
  return n;
917
971
  }
918
972
  function Dt(t) {
919
- const { activeObject: e, activeComp: n } = T.app, { kind: o, nodeId: i, methodKey: a } = nn(t);
973
+ const { activeObject: e, activeComp: n } = E.app, { kind: o, nodeId: i, methodKey: a } = nn(t);
920
974
  if (o === "customMethod" && i === "globality" && e.type === "comp") {
921
975
  const c = n.meta.methods.find(
922
976
  (u) => u.id === a
@@ -937,43 +991,43 @@ function to() {
937
991
  t.push([on(o, i), n]);
938
992
  return k(t);
939
993
  }
940
- function Qe(t) {
994
+ function ze(t) {
941
995
  const e = Dt(t);
942
996
  return e ? e.outputs : [];
943
997
  }
944
- function Fe(t, e) {
998
+ function we(t, e) {
945
999
  const n = Dt(t);
946
1000
  if (n)
947
1001
  return n.outputs.find((o) => o.key === e);
948
1002
  }
949
1003
  function Bi(t) {
950
- const e = [], n = Qe(t);
1004
+ const e = [], n = ze(t);
951
1005
  for (const { name: o, key: i } of n)
952
1006
  e.push([o, i]);
953
1007
  return k(e);
954
1008
  }
955
1009
  function bi(t, e, n) {
956
- const { properties: o } = T.runtime, { activeObject: i, activePage: a, activeComp: c, depends: u } = T.app;
1010
+ const { properties: o } = E.runtime, { activeObject: i, activePage: a, activeComp: c, depends: u } = E.app;
957
1011
  if (t.events.length > 0)
958
1012
  return !1;
959
- if (ot(t.key) && n) {
1013
+ if (q(t.key) && n) {
960
1014
  const l = u[n];
961
1015
  if (l && l.meta.events.length > 0)
962
1016
  return !1;
963
1017
  }
964
- if (it(t.key) && n) {
1018
+ if (Q(t.key) && n) {
965
1019
  const l = u[n];
966
1020
  if (l && l.meta.events.length > 0)
967
1021
  return !1;
968
1022
  }
969
1023
  if (o[t.key] && o[t.key][e]) {
970
1024
  for (const { keys: l, raw: _ } of o[t.key][e])
971
- if (!ye(l, _))
1025
+ if (!ve(l, _))
972
1026
  return !1;
973
1027
  }
974
- if (X(t.key) && i.type === "comp" && c.meta.properties.length > 0)
1028
+ if (J(t.key) && i.type === "comp" && c.meta.properties.length > 0)
975
1029
  return !1;
976
- if (X(t.key)) {
1030
+ if (J(t.key)) {
977
1031
  if (i.type === "page") {
978
1032
  if (a.meta.states.length > 0)
979
1033
  return !1;
@@ -983,65 +1037,65 @@ function bi(t, e, n) {
983
1037
  return !0;
984
1038
  }
985
1039
  function Pi(t, e) {
986
- const { activeObject: n, depends: o } = T.app;
1040
+ const { activeObject: n, depends: o } = E.app;
987
1041
  if (t.methods.length > 0)
988
1042
  return !1;
989
- if (ot(t.key) && e) {
1043
+ if (q(t.key) && e) {
990
1044
  const i = o[e];
991
1045
  if (i && i.meta.methods.length > 0)
992
1046
  return !1;
993
1047
  }
994
- if (it(t.key) && e) {
1048
+ if (Q(t.key) && e) {
995
1049
  const i = o[e];
996
1050
  if (i && i.meta.methods.length > 0)
997
1051
  return !1;
998
1052
  }
999
- return X(t.key) && n.type, !0;
1053
+ return J(t.key) && n.type, !0;
1000
1054
  }
1001
1055
  function Ri(t, e, n) {
1002
- const { properties: o } = T.runtime, { activeObject: i, activeComp: a, depends: c } = T.app;
1056
+ const { properties: o } = E.runtime, { activeObject: i, activeComp: a, depends: c } = E.app;
1003
1057
  if (o[t.key] && o[t.key][e] && o[t.key][e].length > 0)
1004
1058
  return !1;
1005
- if (ot(t.key) && n) {
1059
+ if (q(t.key) && n) {
1006
1060
  const u = c[n];
1007
1061
  if (u && u.meta.properties.length > 0)
1008
1062
  return !1;
1009
1063
  }
1010
- if (it(t.key) && n) {
1064
+ if (Q(t.key) && n) {
1011
1065
  const u = c[n];
1012
1066
  if (u && u.meta.properties.length > 0)
1013
1067
  return !1;
1014
1068
  }
1015
- return !(X(t.key) && i.type === "comp" && a.meta.properties.length > 0);
1069
+ return !(J(t.key) && i.type === "comp" && a.meta.properties.length > 0);
1016
1070
  }
1017
1071
  function Di(t, e, n) {
1018
- const { properties: o } = T.runtime, { activeObject: i, activeComp: a, depends: c } = T.app;
1072
+ const { properties: o } = E.runtime, { activeObject: i, activeComp: a, depends: c } = E.app;
1019
1073
  if (o[t.key] && o[t.key][e]) {
1020
1074
  for (const { keys: u, raw: l } of o[t.key][e])
1021
- if (!ye(u, l))
1075
+ if (!ve(u, l))
1022
1076
  return !1;
1023
1077
  }
1024
- if (ot(t.key) && n) {
1078
+ if (q(t.key) && n) {
1025
1079
  const u = c[n];
1026
1080
  if (u && u.meta.properties.length > 0)
1027
1081
  return !1;
1028
1082
  }
1029
- if (it(t.key) && n) {
1083
+ if (Q(t.key) && n) {
1030
1084
  const u = c[n];
1031
1085
  if (u && u.meta.properties.length > 0)
1032
1086
  return !1;
1033
1087
  }
1034
- return !(X(t.key) && i.type === "comp" && a.meta.properties.length > 0);
1088
+ return !(J(t.key) && i.type === "comp" && a.meta.properties.length > 0);
1035
1089
  }
1036
1090
  function eo(t, e, n, o) {
1037
1091
  return t ? t === "onEvent" ? bi(e, n, o) : t === "callMethod" ? Pi(e, o) : t === "getProperty" ? Ri(e, n, o) : t === "setProperty" ? Di(e, n, o) : !1 : !1;
1038
1092
  }
1039
1093
  function W(t) {
1040
- const { activeObject: e } = T.app, n = Mt(e.type, e.subtype);
1094
+ const { activeObject: e } = E.app, n = Mt(e.type, e.subtype);
1041
1095
  if (!n)
1042
1096
  return !1;
1043
1097
  for (const o of e.nodes) {
1044
- const i = q[o.key];
1098
+ const i = Z[o.key];
1045
1099
  if (!i) {
1046
1100
  console.assert(!1, "invalid element", o.key);
1047
1101
  continue;
@@ -1052,11 +1106,11 @@ function W(t) {
1052
1106
  return !1;
1053
1107
  }
1054
1108
  function Jt(t) {
1055
- const { activeObject: e } = T.app, n = [], o = Mt(e.type, e.subtype);
1109
+ const { activeObject: e } = E.app, n = [], o = Mt(e.type, e.subtype);
1056
1110
  if (!o)
1057
1111
  return n;
1058
1112
  for (const i of e.nodes) {
1059
- const a = q[i.key];
1113
+ const a = Z[i.key];
1060
1114
  if (!a) {
1061
1115
  console.assert(!1, "invalid element", i.key);
1062
1116
  continue;
@@ -1071,10 +1125,10 @@ function Jt(t) {
1071
1125
  return n;
1072
1126
  }
1073
1127
  function ht(t) {
1074
- const { activeObject: e } = T.app, n = e.nodes.find((i) => i.id === t);
1128
+ const { activeObject: e } = E.app, n = e.nodes.find((i) => i.id === t);
1075
1129
  if (!n)
1076
1130
  return;
1077
- const o = q[n.key];
1131
+ const o = Z[n.key];
1078
1132
  if (!o) {
1079
1133
  console.assert(!1, "invalid element", n.key);
1080
1134
  return;
@@ -1086,7 +1140,7 @@ function ht(t) {
1086
1140
  alias: n.alias
1087
1141
  };
1088
1142
  }
1089
- function ve(t) {
1143
+ function Ce(t) {
1090
1144
  const { i18n: e } = yt, n = [], o = Jt(t);
1091
1145
  for (const { id: i, name: a, alias: c } of o) {
1092
1146
  let u = e.global.t(a);
@@ -1095,58 +1149,58 @@ function ve(t) {
1095
1149
  return k(n);
1096
1150
  }
1097
1151
  function Ht(t, e) {
1098
- const { properties: n } = T.runtime, { activeObject: o, activeComp: i, depends: a } = T.app, c = [], u = Mt(o.type, o.subtype);
1152
+ const { properties: n } = E.runtime, { activeObject: o, activeComp: i, depends: a } = E.app, c = [], u = Mt(o.type, o.subtype);
1099
1153
  if (!u)
1100
1154
  return c;
1101
1155
  const l = o.nodes.find((d) => d.id === t);
1102
1156
  if (!l)
1103
1157
  return c;
1104
- const _ = q[l.key];
1158
+ const _ = Z[l.key];
1105
1159
  if (!_)
1106
1160
  return console.assert(!1, "invalid element", l.key), c;
1107
1161
  if (n[_.key] && n[_.key][u])
1108
- for (const { keys: d, names: f, raw: p } of n[_.key][u])
1109
- e === "write" && ye(d, p) || c.push({
1162
+ for (const { keys: d, names: h, raw: p } of n[_.key][u])
1163
+ e === "write" && ve(d, p) || c.push({
1110
1164
  id: Zt("elementProperty", t, d),
1111
1165
  kind: "elementProperty",
1112
- names: f,
1166
+ names: h,
1113
1167
  meta: {
1114
1168
  element: !0,
1115
1169
  raw: p
1116
1170
  }
1117
1171
  });
1118
- if (ot(_.key) && l.reference && l.reference.comp) {
1172
+ if (q(_.key) && l.reference && l.reference.comp) {
1119
1173
  const d = a[l.reference.comp];
1120
1174
  if (d)
1121
- for (const { id: f, name: p, type: E } of d.meta.properties)
1175
+ for (const { id: h, name: p, type: m } of d.meta.properties)
1122
1176
  c.push({
1123
- id: Zt("referenceProperty", t, f),
1177
+ id: Zt("referenceProperty", t, h),
1124
1178
  kind: "referenceProperty",
1125
1179
  names: [p],
1126
1180
  meta: {
1127
- raw: { type: E }
1181
+ raw: { type: m }
1128
1182
  }
1129
1183
  });
1130
1184
  }
1131
- if (it(_.key) && l.reference && l.reference.comp) {
1185
+ if (Q(_.key) && l.reference && l.reference.comp) {
1132
1186
  const d = a[l.reference.comp];
1133
1187
  if (d)
1134
- for (const { id: f, name: p, type: E } of d.meta.properties)
1188
+ for (const { id: h, name: p, type: m } of d.meta.properties)
1135
1189
  c.push({
1136
- id: Zt("multipleRefProperty", t, f),
1190
+ id: Zt("multipleRefProperty", t, h),
1137
1191
  kind: "multipleRefProperty",
1138
1192
  names: [p],
1139
1193
  meta: {
1140
- raw: { type: E }
1194
+ raw: { type: m }
1141
1195
  }
1142
1196
  });
1143
1197
  }
1144
- if (X(_.key) && o.type === "comp")
1145
- for (const { id: d, name: f, type: p } of i.meta.properties)
1198
+ if (J(_.key) && o.type === "comp")
1199
+ for (const { id: d, name: h, type: p } of i.meta.properties)
1146
1200
  c.push({
1147
1201
  id: Zt("customProperty", t, d),
1148
1202
  kind: "customProperty",
1149
- names: [f],
1203
+ names: [h],
1150
1204
  meta: {
1151
1205
  raw: { type: p }
1152
1206
  }
@@ -1154,39 +1208,39 @@ function Ht(t, e) {
1154
1208
  return c;
1155
1209
  }
1156
1210
  function Ot(t) {
1157
- const { properties: e } = T.runtime, { activeObject: n, activeComp: o, depends: i } = T.app, a = Mt(n.type, n.subtype);
1211
+ const { properties: e } = E.runtime, { activeObject: n, activeComp: o, depends: i } = E.app, a = Mt(n.type, n.subtype);
1158
1212
  if (!a)
1159
1213
  return;
1160
- const { kind: c, nodeId: u, propertyKey: l } = sn(t), _ = n.nodes.find((f) => f.id === u);
1214
+ const { kind: c, nodeId: u, propertyKey: l } = sn(t), _ = n.nodes.find((h) => h.id === u);
1161
1215
  if (!_)
1162
1216
  return;
1163
- const d = q[_.key];
1217
+ const d = Z[_.key];
1164
1218
  if (!d) {
1165
1219
  console.assert(!1, "invalid element", _.key);
1166
1220
  return;
1167
1221
  }
1168
1222
  if (c === "elementProperty") {
1169
1223
  if (e[d.key] && e[d.key][a]) {
1170
- const f = e[d.key][a].find(
1224
+ const h = e[d.key][a].find(
1171
1225
  (p) => p.keys === l
1172
1226
  );
1173
- if (f)
1227
+ if (h)
1174
1228
  return {
1175
1229
  id: t,
1176
1230
  kind: c,
1177
- names: f.names,
1231
+ names: h.names,
1178
1232
  meta: {
1179
1233
  element: !0,
1180
- raw: f.raw
1234
+ raw: h.raw
1181
1235
  }
1182
1236
  };
1183
1237
  }
1184
1238
  } else if (c === "referenceProperty") {
1185
- if (ot(d.key) && _.reference && _.reference.comp) {
1186
- const f = i[_.reference.comp];
1187
- if (f) {
1188
- const p = f.meta.properties.find(
1189
- (E) => E.id === l
1239
+ if (q(d.key) && _.reference && _.reference.comp) {
1240
+ const h = i[_.reference.comp];
1241
+ if (h) {
1242
+ const p = h.meta.properties.find(
1243
+ (m) => m.id === l
1190
1244
  );
1191
1245
  if (p)
1192
1246
  return {
@@ -1200,11 +1254,11 @@ function Ot(t) {
1200
1254
  }
1201
1255
  }
1202
1256
  } else if (c === "multipleRefProperty") {
1203
- if (it(d.key) && _.reference && _.reference.comp) {
1204
- const f = i[_.reference.comp];
1205
- if (f) {
1206
- const p = f.meta.properties.find(
1207
- (E) => E.id === l
1257
+ if (Q(d.key) && _.reference && _.reference.comp) {
1258
+ const h = i[_.reference.comp];
1259
+ if (h) {
1260
+ const p = h.meta.properties.find(
1261
+ (m) => m.id === l
1208
1262
  );
1209
1263
  if (p)
1210
1264
  return {
@@ -1217,17 +1271,17 @@ function Ot(t) {
1217
1271
  };
1218
1272
  }
1219
1273
  }
1220
- } else if (c === "customProperty" && X(d.key) && n.type === "comp") {
1221
- const f = o.meta.properties.find(
1274
+ } else if (c === "customProperty" && J(d.key) && n.type === "comp") {
1275
+ const h = o.meta.properties.find(
1222
1276
  (p) => p.id === l
1223
1277
  );
1224
- if (f)
1278
+ if (h)
1225
1279
  return {
1226
1280
  id: t,
1227
1281
  kind: c,
1228
- names: [f.name],
1282
+ names: [h.name],
1229
1283
  meta: {
1230
- raw: { type: f.type }
1284
+ raw: { type: h.type }
1231
1285
  }
1232
1286
  };
1233
1287
  }
@@ -1239,11 +1293,11 @@ function no(t, e) {
1239
1293
  return k(n);
1240
1294
  }
1241
1295
  function un() {
1242
- const { activeObject: t, activePage: e, activeComp: n } = T.app;
1296
+ const { activeObject: t, activePage: e, activeComp: n } = E.app;
1243
1297
  return t.type === "page" ? e.meta.states : t.type === "comp" ? n.meta.states : [];
1244
1298
  }
1245
1299
  function ue(t) {
1246
- const { activeObject: e, activePage: n, activeComp: o } = T.app;
1300
+ const { activeObject: e, activePage: n, activeComp: o } = E.app;
1247
1301
  if (e.type === "page")
1248
1302
  return n.meta.states.find((i) => i.id === t);
1249
1303
  if (e.type === "comp")
@@ -1280,7 +1334,7 @@ const Mi = {
1280
1334
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1281
1335
  const e = this.getField("NODE");
1282
1336
  e.getOptions(!1), e.setValue(this.node.id);
1283
- const n = Je(this.node.id)?.[0];
1337
+ const n = qe(this.node.id)?.[0];
1284
1338
  if (!n)
1285
1339
  return;
1286
1340
  this.event.id = n.id, this.event.kind = n.kind, this.event.names = n.names, this.event.params = n.params;
@@ -1299,7 +1353,7 @@ const Mi = {
1299
1353
  }, 0);
1300
1354
  },
1301
1355
  genNodeOpts_: function() {
1302
- return ve("onEvent");
1356
+ return Ce("onEvent");
1303
1357
  },
1304
1358
  genEventOpts_: function() {
1305
1359
  return Ni(this.node.id);
@@ -1323,14 +1377,14 @@ const Mi = {
1323
1377
  const n = this.node.key !== e.key;
1324
1378
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1325
1379
  const o = this.getField("EVENT");
1326
- if (o.getOptions(!1), n || !xe(this.event.id)) {
1327
- const i = Je(this.node.id)?.[0];
1380
+ if (o.getOptions(!1), n || !Ye(this.event.id)) {
1381
+ const i = qe(this.node.id)?.[0];
1328
1382
  o.setValue(i?.id ?? "");
1329
1383
  }
1330
1384
  this.onEventChange_(o.getValue());
1331
1385
  },
1332
1386
  onEventChange_: function(t) {
1333
- const e = xe(t);
1387
+ const e = Ye(t);
1334
1388
  e ? (this.event.id = e.id, this.event.kind = e.kind, this.event.names = e.names, this.event.params = e.params) : (this.event.id = "", this.event.kind = "", this.event.names = [], this.event.params = []), this.updateShape_(), setTimeout(() => {
1335
1389
  this.ensureBlocks_();
1336
1390
  }, 0);
@@ -1342,7 +1396,7 @@ const Mi = {
1342
1396
  }
1343
1397
  for (let e = 0; e < this.event.params.length; e++)
1344
1398
  this.getInput("PARAM" + e) || (this.appendValueInput("PARAM" + e), this.moveInputBefore("PARAM" + e, "HANDLE"));
1345
- const { kind: t } = en(this.event.id);
1399
+ const { kind: t } = Ie(this.event.id);
1346
1400
  if (t === "multipleRefEvent")
1347
1401
  this.getInput("REF_KEY") || this.appendValueInput("REF_KEY"), this.event.params.length > 0 ? this.moveInputBefore("REF_KEY", "PARAM0") : this.moveInputBefore("REF_KEY", "HANDLE");
1348
1402
  else if (this.getInput("REF_KEY")) {
@@ -1363,25 +1417,25 @@ const Mi = {
1363
1417
  checkWarning_: function() {
1364
1418
  const t = ht(this.node.id);
1365
1419
  if (!t) {
1366
- this.setWarningText(h("WARN_NODE_NOT_FOUND"));
1420
+ this.setWarningText(f("WARN_NODE_NOT_FOUND"));
1367
1421
  return;
1368
1422
  }
1369
1423
  if (t.key !== this.node.key) {
1370
- this.setWarningText(h("WARN_NODE_HAS_CHANGED"));
1424
+ this.setWarningText(f("WARN_NODE_HAS_CHANGED"));
1371
1425
  return;
1372
1426
  }
1373
1427
  t.alias !== this.node.alias && (this.node.alias = t.alias);
1374
- const e = xe(this.event.id);
1428
+ const e = Ye(this.event.id);
1375
1429
  if (!e) {
1376
- this.setWarningText(h("WARN_EVENT_NOT_FOUND"));
1430
+ this.setWarningText(f("WARN_EVENT_NOT_FOUND"));
1377
1431
  return;
1378
1432
  }
1379
1433
  if (e.kind !== this.event.kind) {
1380
- this.setWarningText(h("WARN_EVENT_HAS_CHANGED"));
1434
+ this.setWarningText(f("WARN_EVENT_HAS_CHANGED"));
1381
1435
  return;
1382
1436
  }
1383
1437
  if (M(e.names, this.event.names) || (this.event.names = e.names), !M(e.params, this.event.params)) {
1384
- this.setWarningText(h("WARN_EVENT_HAS_CHANGED"));
1438
+ this.setWarningText(f("WARN_EVENT_HAS_CHANGED"));
1385
1439
  return;
1386
1440
  }
1387
1441
  this.setWarningText(null);
@@ -1389,14 +1443,14 @@ const Mi = {
1389
1443
  };
1390
1444
  g.on_app_event_v1 = Mi;
1391
1445
  s.forBlock.on_app_event_v1 = function(t) {
1392
- const e = s.quote_, n = t;
1393
- let o = "";
1394
- n.event.params.forEach((c, u) => {
1395
- u !== 0 && (o += ", "), o += `__param$${c.key}__`;
1446
+ const e = s.quote_, n = t, o = n.event.id;
1447
+ let i = "";
1448
+ n.event.params.forEach((u, l) => {
1449
+ l !== 0 && (i += ", "), i += `__param$${u.key}__`;
1396
1450
  });
1397
- const i = s.statementToCode(n, "HANDLE");
1398
- return `__onEventV1__(${e(n.event.id)}, function(${o}) {
1399
- ${i}});
1451
+ const a = s.statementToCode(n, "HANDLE");
1452
+ return `__onEventV1__(${e(o)}, function(${i}) {
1453
+ ${a}});
1400
1454
  `;
1401
1455
  };
1402
1456
  const Ui = {
@@ -1474,15 +1528,15 @@ const Ui = {
1474
1528
  checkWarning_: function() {
1475
1529
  const t = Nn(this.event.id);
1476
1530
  if (!t) {
1477
- this.setWarningText(h("WARN_EVENT_NOT_FOUND"));
1531
+ this.setWarningText(f("WARN_EVENT_NOT_FOUND"));
1478
1532
  return;
1479
1533
  }
1480
1534
  if (t.kind !== this.event.kind) {
1481
- this.setWarningText(h("WARN_EVENT_HAS_CHANGED"));
1535
+ this.setWarningText(f("WARN_EVENT_HAS_CHANGED"));
1482
1536
  return;
1483
1537
  }
1484
1538
  if (M(t.names, this.event.names) || (this.event.names = t.names), !M(t.params, this.event.params)) {
1485
- this.setWarningText(h("WARN_EVENT_HAS_CHANGED"));
1539
+ this.setWarningText(f("WARN_EVENT_HAS_CHANGED"));
1486
1540
  return;
1487
1541
  }
1488
1542
  this.setWarningText(null);
@@ -1490,11 +1544,16 @@ const Ui = {
1490
1544
  };
1491
1545
  g.trigger_app_event_v1 = Ui;
1492
1546
  s.forBlock.trigger_app_event_v1 = function(t) {
1493
- const n = [t.event.id];
1494
- return `__callFunctionUpV1__('__triggerEventV1__', ${JSON.stringify(n)});
1547
+ const e = s.quote_, n = t, { eventKey: o } = Ie(n.event.id);
1548
+ let i = "";
1549
+ for (let c = 0; c < n.event.params.length; c++) {
1550
+ const u = s.valueToCode(n, "PARAM" + c, r.NONE);
1551
+ i && (i += ", "), i += u;
1552
+ }
1553
+ return `__triggerCustomEventV1__(${e(o)}, ${i});
1495
1554
  `;
1496
1555
  };
1497
- m([
1556
+ T([
1498
1557
  {
1499
1558
  type: "watch_effect_v1",
1500
1559
  message0: "%{BKY_APP_V1_WATCH_EFFECT_TITLE}",
@@ -1518,7 +1577,7 @@ s.forBlock.watch_effect_v1 = function(t) {
1518
1577
  ${n}};
1519
1578
  `;
1520
1579
  };
1521
- m([
1580
+ T([
1522
1581
  {
1523
1582
  type: "app_debug_trace_v1",
1524
1583
  message0: "%{BKY_APP_V1_APP_DEBUG_TRACE_TITLE}",
@@ -1615,7 +1674,7 @@ s.forBlock.open_prompt_dlg_v1 = function(t) {
1615
1674
  ${i}}
1616
1675
  `;
1617
1676
  };
1618
- m([
1677
+ T([
1619
1678
  {
1620
1679
  type: "popup_message_v1",
1621
1680
  message0: "%{BKY_APP_V1_POPUP_MESSAGE_TITLE}",
@@ -1673,7 +1732,7 @@ const Yi = {
1673
1732
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1674
1733
  const e = this.getField("NODE");
1675
1734
  e.getOptions(!1), e.setValue(this.node.id);
1676
- const n = qe(this.node.id)?.[0];
1735
+ const n = Qe(this.node.id)?.[0];
1677
1736
  if (!n)
1678
1737
  return;
1679
1738
  this.method.id = n.id, this.method.kind = n.kind, this.method.names = n.names, this.method.inputs = n.inputs, this.method.outputs = n.outputs;
@@ -1692,7 +1751,7 @@ const Yi = {
1692
1751
  }, 0);
1693
1752
  },
1694
1753
  genNodeOpts_: function() {
1695
- return ve("callMethod");
1754
+ return Ce("callMethod");
1696
1755
  },
1697
1756
  genMethodOpts_: function() {
1698
1757
  return Si(this.node.id);
@@ -1716,14 +1775,14 @@ const Yi = {
1716
1775
  const n = this.node.key !== e.key;
1717
1776
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1718
1777
  const o = this.getField("METHOD");
1719
- if (o.getOptions(!1), n || !Ye(this.method.id)) {
1720
- const i = qe(this.node.id)?.[0];
1778
+ if (o.getOptions(!1), n || !Fe(this.method.id)) {
1779
+ const i = Qe(this.node.id)?.[0];
1721
1780
  o.setValue(i?.id ?? "");
1722
1781
  }
1723
1782
  this.onMethodChange_(o.getValue());
1724
1783
  },
1725
1784
  onMethodChange_: function(t) {
1726
- const e = Ye(t);
1785
+ const e = Fe(t);
1727
1786
  e ? (this.method.id = e.id, this.method.kind = e.kind, this.method.names = e.names, this.method.inputs = e.inputs, this.method.outputs = e.outputs) : (this.method.id = "", this.method.kind = "", this.method.names = [], this.method.inputs = [], this.method.outputs = []), this.updateShape_(), this.updateShadow_(), setTimeout(() => {
1728
1787
  this.ensureBlocks_();
1729
1788
  }, 0);
@@ -1776,29 +1835,29 @@ const Yi = {
1776
1835
  checkWarning_: function() {
1777
1836
  const t = ht(this.node.id);
1778
1837
  if (!t) {
1779
- this.setWarningText(h("WARN_NODE_NOT_FOUND"));
1838
+ this.setWarningText(f("WARN_NODE_NOT_FOUND"));
1780
1839
  return;
1781
1840
  }
1782
1841
  if (t.key !== this.node.key) {
1783
- this.setWarningText(h("WARN_NODE_HAS_CHANGED"));
1842
+ this.setWarningText(f("WARN_NODE_HAS_CHANGED"));
1784
1843
  return;
1785
1844
  }
1786
1845
  t.alias !== this.node.alias && (this.node.alias = t.alias);
1787
- const e = Ye(this.method.id);
1846
+ const e = Fe(this.method.id);
1788
1847
  if (!e) {
1789
- this.setWarningText(h("WARN_METHOD_NOT_FOUND"));
1848
+ this.setWarningText(f("WARN_METHOD_NOT_FOUND"));
1790
1849
  return;
1791
1850
  }
1792
1851
  if (e.kind !== this.method.kind) {
1793
- this.setWarningText(h("WARN_METHOD_HAS_CHANGED"));
1852
+ this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1794
1853
  return;
1795
1854
  }
1796
1855
  if (M(e.names, this.method.names) || (this.method.names = e.names), !M(e.inputs, this.method.inputs)) {
1797
- this.setWarningText(h("WARN_METHOD_HAS_CHANGED"));
1856
+ this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1798
1857
  return;
1799
1858
  }
1800
1859
  if (!M(e.outputs, this.method.outputs)) {
1801
- this.setWarningText(h("WARN_METHOD_HAS_CHANGED"));
1860
+ this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1802
1861
  return;
1803
1862
  }
1804
1863
  this.setWarningText(null);
@@ -1887,15 +1946,15 @@ const Fi = {
1887
1946
  checkWarning_: function() {
1888
1947
  const t = Dt(this.method.id);
1889
1948
  if (!t) {
1890
- this.setWarningText(h("WARN_METHOD_NOT_FOUND"));
1949
+ this.setWarningText(f("WARN_METHOD_NOT_FOUND"));
1891
1950
  return;
1892
1951
  }
1893
1952
  if (t.kind !== this.method.kind) {
1894
- this.setWarningText(h("WARN_METHOD_HAS_CHANGED"));
1953
+ this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1895
1954
  return;
1896
1955
  }
1897
1956
  if (M(t.names, this.method.names) || (this.method.names = t.names), !M(t.inputs, this.method.inputs)) {
1898
- this.setWarningText(h("WARN_METHOD_HAS_CHANGED"));
1957
+ this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
1899
1958
  return;
1900
1959
  }
1901
1960
  this.setWarningText(null);
@@ -1935,7 +1994,7 @@ const wi = {
1935
1994
  this.method.id = t.id, this.method.kind = t.kind, this.method.names = t.names;
1936
1995
  const e = this.getField("METHOD");
1937
1996
  e.getOptions(!1), e.setValue(this.method.id);
1938
- const n = Qe(this.method.id)?.[0];
1997
+ const n = ze(this.method.id)?.[0];
1939
1998
  if (!n)
1940
1999
  return;
1941
2000
  this.output.key = n.key, this.output.name = n.name, this.output.type = n.type;
@@ -1977,14 +2036,14 @@ const wi = {
1977
2036
  const n = this.method.id !== e.id;
1978
2037
  this.method.id = e.id, this.method.kind = e.kind, this.method.names = e.names;
1979
2038
  const o = this.getField("OUTPUT");
1980
- if (o.getOptions(!1), n || !Fe(this.method.id, this.output.key)) {
1981
- const i = Qe(this.method.id)?.[0];
2039
+ if (o.getOptions(!1), n || !we(this.method.id, this.output.key)) {
2040
+ const i = ze(this.method.id)?.[0];
1982
2041
  o.setValue(i?.key ?? "");
1983
2042
  }
1984
2043
  this.onOutputChange_(o.getValue());
1985
2044
  },
1986
2045
  onOutputChange_: function(t) {
1987
- const e = Fe(this.method.id, t);
2046
+ const e = we(this.method.id, t);
1988
2047
  e ? (this.output.key = e.key, this.output.name = e.name, this.output.type = e.type) : (this.output.key = "", this.output.name = "", this.output.type = "string");
1989
2048
  },
1990
2049
  updateShape_: function() {
@@ -2004,21 +2063,21 @@ const wi = {
2004
2063
  checkWarning_: function() {
2005
2064
  const t = Dt(this.method.id);
2006
2065
  if (!t) {
2007
- this.setWarningText(h("WARN_METHOD_NOT_FOUND"));
2066
+ this.setWarningText(f("WARN_METHOD_NOT_FOUND"));
2008
2067
  return;
2009
2068
  }
2010
2069
  if (t.kind !== this.method.kind) {
2011
- this.setWarningText(h("WARN_METHOD_HAS_CHANGED"));
2070
+ this.setWarningText(f("WARN_METHOD_HAS_CHANGED"));
2012
2071
  return;
2013
2072
  }
2014
2073
  t.names !== this.method.names && (this.method.names = t.names);
2015
- const e = Fe(this.method.id, this.output.key);
2074
+ const e = we(this.method.id, this.output.key);
2016
2075
  if (!e) {
2017
- this.setWarningText(h("WARN_OUTPUT_NOT_FOUND"));
2076
+ this.setWarningText(f("WARN_OUTPUT_NOT_FOUND"));
2018
2077
  return;
2019
2078
  }
2020
2079
  if (e.name !== this.output.name && (this.output.name = e.name), e.type !== this.output.type) {
2021
- this.setWarningText(h("WARN_OUTPUT_HAS_CHANGED"));
2080
+ this.setWarningText(f("WARN_OUTPUT_HAS_CHANGED"));
2022
2081
  return;
2023
2082
  }
2024
2083
  this.setWarningText(null);
@@ -2051,7 +2110,7 @@ s.forBlock.set_app_method_output_v1 = function(t) {
2051
2110
  return `__setMethodOutputV1__(${e(n.method.id)}, ${e(n.output.key)}, ${o});
2052
2111
  `;
2053
2112
  };
2054
- m([
2113
+ T([
2055
2114
  {
2056
2115
  type: "app_env_is_v1",
2057
2116
  message0: "%{BKY_APP_V1_APP_ENV_IS_TITLE}",
@@ -2093,7 +2152,7 @@ const Ki = {
2093
2152
  this.app.id = t.id, this.app.name = t.name;
2094
2153
  const e = this.getField("APP");
2095
2154
  e.getOptions(!1), e.setValue(this.app.id);
2096
- const n = Xe(this.app.id)?.[0];
2155
+ const n = Je(this.app.id)?.[0];
2097
2156
  if (!n)
2098
2157
  return;
2099
2158
  this.page.id = n.id, this.page.name = n.name;
@@ -2136,25 +2195,25 @@ const Ki = {
2136
2195
  const n = this.app.id !== e.id;
2137
2196
  this.app.id = e.id, this.app.name = e.name;
2138
2197
  const o = this.getField("PAGE");
2139
- if (o.getOptions(!1), n || !Ve(this.app.id, this.page.id)) {
2140
- const a = Xe(this.app.id)?.[0]?.id ?? "";
2198
+ if (o.getOptions(!1), n || !xe(this.app.id, this.page.id)) {
2199
+ const a = Je(this.app.id)?.[0]?.id ?? "";
2141
2200
  o.setValue(a), this.page.id === a && this.onPageChange_(a);
2142
2201
  }
2143
2202
  },
2144
2203
  onPageChange_: function(t) {
2145
- const e = Ve(this.app.id, t);
2204
+ const e = xe(this.app.id, t);
2146
2205
  e ? (this.page.id = e.id, this.page.name = e.name) : (this.page.id = "", this.page.name = "");
2147
2206
  },
2148
2207
  checkWarning_: function() {
2149
2208
  const t = Cn(this.app.id);
2150
2209
  if (!t) {
2151
- this.setWarningText(h("WARN_APP_NOT_FOUND"));
2210
+ this.setWarningText(f("WARN_APP_NOT_FOUND"));
2152
2211
  return;
2153
2212
  }
2154
2213
  t.name !== this.app.name && (this.app.name = t.name);
2155
- const e = Ve(this.app.id, this.page.id);
2214
+ const e = xe(this.app.id, this.page.id);
2156
2215
  if (!e) {
2157
- this.setWarningText(h("WARN_PAGE_NOT_FOUND"));
2216
+ this.setWarningText(f("WARN_PAGE_NOT_FOUND"));
2158
2217
  return;
2159
2218
  }
2160
2219
  e.name !== this.page.name && (this.page.name = e.name), this.setWarningText(null);
@@ -2216,11 +2275,11 @@ const $i = {
2216
2275
  },
2217
2276
  checkWarning_: function() {
2218
2277
  if (this.comp.id === void 0) {
2219
- this.setWarningText(h("WARN_COMP_NOT_FOUND"));
2278
+ this.setWarningText(f("WARN_COMP_NOT_FOUND"));
2220
2279
  return;
2221
2280
  }
2222
2281
  if (!kn(this.comp.id)) {
2223
- this.setWarningText(h("WARN_COMP_NOT_FOUND"));
2282
+ this.setWarningText(f("WARN_COMP_NOT_FOUND"));
2224
2283
  return;
2225
2284
  }
2226
2285
  this.setWarningText(null);
@@ -2274,7 +2333,7 @@ const Hi = {
2274
2333
  }, 0);
2275
2334
  },
2276
2335
  genNodeOpts_: function() {
2277
- return ve("getProperty");
2336
+ return Ce("getProperty");
2278
2337
  },
2279
2338
  genPropertyOpts_: function() {
2280
2339
  return no(this.node.id, "read");
@@ -2311,21 +2370,21 @@ const Hi = {
2311
2370
  checkWarning_: function() {
2312
2371
  const t = ht(this.node.id);
2313
2372
  if (!t) {
2314
- this.setWarningText(h("WARN_NODE_NOT_FOUND"));
2373
+ this.setWarningText(f("WARN_NODE_NOT_FOUND"));
2315
2374
  return;
2316
2375
  }
2317
2376
  if (t.key !== this.node.key) {
2318
- this.setWarningText(h("WARN_NODE_HAS_CHANGED"));
2377
+ this.setWarningText(f("WARN_NODE_HAS_CHANGED"));
2319
2378
  return;
2320
2379
  }
2321
2380
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2322
2381
  const e = Ot(this.property.id);
2323
2382
  if (!e) {
2324
- this.setWarningText(h("WARN_PROPERTY_NOT_FOUND"));
2383
+ this.setWarningText(f("WARN_PROPERTY_NOT_FOUND"));
2325
2384
  return;
2326
2385
  }
2327
2386
  if (e.kind !== this.property.kind) {
2328
- this.setWarningText(h("WARN_PROPERTY_HAS_CHANGED"));
2387
+ this.setWarningText(f("WARN_PROPERTY_HAS_CHANGED"));
2329
2388
  return;
2330
2389
  }
2331
2390
  M(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
@@ -2379,7 +2438,7 @@ const Gi = {
2379
2438
  }, 0);
2380
2439
  },
2381
2440
  genNodeOpts_: function() {
2382
- return ve("setProperty");
2441
+ return Ce("setProperty");
2383
2442
  },
2384
2443
  genPropertyOpts_: function() {
2385
2444
  return no(this.node.id, "write");
@@ -2432,21 +2491,21 @@ const Gi = {
2432
2491
  checkWarning_: function() {
2433
2492
  const t = ht(this.node.id);
2434
2493
  if (!t) {
2435
- this.setWarningText(h("WARN_NODE_NOT_FOUND"));
2494
+ this.setWarningText(f("WARN_NODE_NOT_FOUND"));
2436
2495
  return;
2437
2496
  }
2438
2497
  if (t.key !== this.node.key) {
2439
- this.setWarningText(h("WARN_NODE_HAS_CHANGED"));
2498
+ this.setWarningText(f("WARN_NODE_HAS_CHANGED"));
2440
2499
  return;
2441
2500
  }
2442
2501
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2443
2502
  const e = Ot(this.property.id);
2444
2503
  if (!e) {
2445
- this.setWarningText(h("WARN_PROPERTY_NOT_FOUND"));
2504
+ this.setWarningText(f("WARN_PROPERTY_NOT_FOUND"));
2446
2505
  return;
2447
2506
  }
2448
2507
  if (e.kind !== this.property.kind) {
2449
- this.setWarningText(h("WARN_PROPERTY_HAS_CHANGED"));
2508
+ this.setWarningText(f("WARN_PROPERTY_HAS_CHANGED"));
2450
2509
  return;
2451
2510
  }
2452
2511
  M(e.names, this.property.names) || (this.property.names = e.names), this.setWarningText(null);
@@ -2507,11 +2566,11 @@ const Wi = {
2507
2566
  checkWarning_: function() {
2508
2567
  const t = ue(this.state.id);
2509
2568
  if (!t) {
2510
- this.setWarningText(h("WARN_STATE_NOT_FOUND"));
2569
+ this.setWarningText(f("WARN_STATE_NOT_FOUND"));
2511
2570
  return;
2512
2571
  }
2513
2572
  if (t.name !== this.state.name && (this.state.name = t.name), t.type !== this.state.type) {
2514
- this.setWarningText(h("WARN_STATE_HAS_CHANGED"));
2573
+ this.setWarningText(f("WARN_STATE_HAS_CHANGED"));
2515
2574
  return;
2516
2575
  }
2517
2576
  this.setWarningText(null);
@@ -2576,11 +2635,11 @@ const ji = {
2576
2635
  checkWarning_: function() {
2577
2636
  const t = ue(this.state.id);
2578
2637
  if (!t) {
2579
- this.setWarningText(h("WARN_STATE_NOT_FOUND"));
2638
+ this.setWarningText(f("WARN_STATE_NOT_FOUND"));
2580
2639
  return;
2581
2640
  }
2582
2641
  if (t.name !== this.state.name && (this.state.name = t.name), t.type !== this.state.type) {
2583
- this.setWarningText(h("WARN_STATE_HAS_CHANGED"));
2642
+ this.setWarningText(f("WARN_STATE_HAS_CHANGED"));
2584
2643
  return;
2585
2644
  }
2586
2645
  this.setWarningText(null);
@@ -2592,7 +2651,7 @@ s.forBlock.set_app_state_v1 = function(t) {
2592
2651
  return `__setStateV1__(${e(n.state.id)}, ${o});
2593
2652
  `;
2594
2653
  };
2595
- m([
2654
+ T([
2596
2655
  {
2597
2656
  type: "color_blend_v1",
2598
2657
  message0: "%{BKY_COLOR_V1_BLEND_TITLE}",
@@ -2646,7 +2705,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(c1, c2, ratio) {
2646
2705
  `
2647
2706
  )}(${e}, ${n}, ${o})`, r.FUNCTION_CALL];
2648
2707
  };
2649
- m([
2708
+ T([
2650
2709
  {
2651
2710
  type: "color_picker_v1",
2652
2711
  message0: "%1",
@@ -3227,7 +3286,7 @@ m([
3227
3286
  s.forBlock.color_picker_v1 = function(t) {
3228
3287
  return [s.quote_(t.getFieldValue("COLOR")), r.ATOMIC];
3229
3288
  };
3230
- m([
3289
+ T([
3231
3290
  {
3232
3291
  type: "color_random_v1",
3233
3292
  message0: "%{BKY_COLOR_V1_RANDOM_TITLE}",
@@ -3248,7 +3307,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}() {
3248
3307
  `
3249
3308
  )}()`, r.FUNCTION_CALL];
3250
3309
  };
3251
- m([
3310
+ T([
3252
3311
  {
3253
3312
  type: "color_rgb_v1",
3254
3313
  message0: "%{BKY_COLOR_V1_RGB_TITLE}",
@@ -3438,11 +3497,11 @@ s.forBlock.on_flow_state_event_v1 = function() {
3438
3497
  `;
3439
3498
  };
3440
3499
  function Gt(t) {
3441
- const e = T.compute.spaces.find((n) => n.id === t);
3500
+ const e = E.compute.spaces.find((n) => n.id === t);
3442
3501
  return e ? e.funcs : [];
3443
3502
  }
3444
3503
  function St(t, e) {
3445
- const n = T.compute.spaces.find((o) => o.id === t);
3504
+ const n = E.compute.spaces.find((o) => o.id === t);
3446
3505
  if (n)
3447
3506
  return n.funcs.find((o) => o.id === e);
3448
3507
  }
@@ -3452,27 +3511,27 @@ function io(t) {
3452
3511
  e.push([i, o]);
3453
3512
  }), k(e);
3454
3513
  }
3455
- function ze() {
3456
- return T.compute.activeFunc;
3514
+ function Ze() {
3515
+ return E.compute.activeFunc;
3457
3516
  }
3458
3517
  function Ln(t) {
3459
- const { outputs: e } = T.compute.activeFunc;
3518
+ const { outputs: e } = E.compute.activeFunc;
3460
3519
  return e.find((n) => n.id === t);
3461
3520
  }
3462
3521
  function Zi() {
3463
- const t = [], { outputs: e } = T.compute.activeFunc;
3522
+ const t = [], { outputs: e } = E.compute.activeFunc;
3464
3523
  return e.forEach(({ id: n, name: o }) => {
3465
3524
  t.push([o, n]);
3466
3525
  }), k(t);
3467
3526
  }
3468
3527
  function qt(t) {
3469
3528
  const e = [];
3470
- return T.compute.spaces.forEach((n) => {
3529
+ return E.compute.spaces.forEach((n) => {
3471
3530
  t === "func" && n.funcs.length > 0 && e.push(n), t === "flow" && n.flows.length > 0 && e.push(n);
3472
3531
  }), e;
3473
3532
  }
3474
3533
  function le(t) {
3475
- return T.compute.spaces.find((e) => e.id === t);
3534
+ return E.compute.spaces.find((e) => e.id === t);
3476
3535
  }
3477
3536
  function so(t) {
3478
3537
  const e = [];
@@ -3607,21 +3666,21 @@ const ts = {
3607
3666
  checkWarning_: function() {
3608
3667
  const t = le(this.space.id);
3609
3668
  if (!t) {
3610
- this.setWarningText(h("WARN_SPACE_NOT_FOUND"));
3669
+ this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
3611
3670
  return;
3612
3671
  }
3613
3672
  t.name !== this.space.name && (this.space.name = t.name);
3614
3673
  const e = St(this.space.id, this.func.id);
3615
3674
  if (!e) {
3616
- this.setWarningText(h("WARN_FUNC_NOT_FOUND"));
3675
+ this.setWarningText(f("WARN_FUNC_NOT_FOUND"));
3617
3676
  return;
3618
3677
  }
3619
3678
  if (!M(e.inputs, this.func.inputs)) {
3620
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
3679
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3621
3680
  return;
3622
3681
  }
3623
3682
  if (!M(e.outputs, this.func.outputs)) {
3624
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
3683
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3625
3684
  return;
3626
3685
  }
3627
3686
  this.setWarningText(null);
@@ -3632,19 +3691,19 @@ s.forBlock.call_func_v1 = function(t) {
3632
3691
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
3633
3692
  let c = "";
3634
3693
  c += `${e}var __inputs__ = {
3635
- `, o.func.inputs.forEach(({ id: f }, p) => {
3636
- const E = s.valueToCode(
3694
+ `, o.func.inputs.forEach(({ id: h }, p) => {
3695
+ const m = s.valueToCode(
3637
3696
  o,
3638
3697
  "INPUT" + p,
3639
3698
  r.ATOMIC
3640
3699
  );
3641
- c += `${e}${e}${n(f)}: ${E},
3700
+ c += `${e}${e}${n(h)}: ${m},
3642
3701
  `;
3643
3702
  }), c += `${e}};`;
3644
3703
  const u = n(o.space.name + "/" + o.func.name);
3645
3704
  let l = "";
3646
- o.func.outputs.forEach(({ id: f }) => {
3647
- l += `${e}var __output${f}__ = __result__[${n(f)}];
3705
+ o.func.outputs.forEach(({ id: h }) => {
3706
+ l += `${e}var __output${h}__ = __result__[${n(h)}];
3648
3707
  `;
3649
3708
  });
3650
3709
  const _ = s.statementToCode(o, "CALLBACK");
@@ -3781,21 +3840,21 @@ const es = {
3781
3840
  checkWarning_: function() {
3782
3841
  const t = le(this.space.id);
3783
3842
  if (!t) {
3784
- this.setWarningText(h("WARN_SPACE_NOT_FOUND"));
3843
+ this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
3785
3844
  return;
3786
3845
  }
3787
3846
  t.name !== this.space.name && (this.space.name = t.name);
3788
3847
  const e = St(this.space.id, this.func.id);
3789
3848
  if (!e) {
3790
- this.setWarningText(h("WARN_FUNC_NOT_FOUND"));
3849
+ this.setWarningText(f("WARN_FUNC_NOT_FOUND"));
3791
3850
  return;
3792
3851
  }
3793
3852
  if (!M(e.inputs, this.func.inputs)) {
3794
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
3853
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3795
3854
  return;
3796
3855
  }
3797
3856
  if (!M(e.outputs, this.func.outputs)) {
3798
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
3857
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3799
3858
  return;
3800
3859
  }
3801
3860
  this.setWarningText(null);
@@ -3806,19 +3865,19 @@ s.forBlock.call_func_internal_v1 = function(t) {
3806
3865
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
3807
3866
  let c = `${e}var __inputs__ = {
3808
3867
  `;
3809
- o.func.inputs.forEach(({ id: f }, p) => {
3810
- const E = s.valueToCode(
3868
+ o.func.inputs.forEach(({ id: h }, p) => {
3869
+ const m = s.valueToCode(
3811
3870
  o,
3812
3871
  "INPUT" + p,
3813
3872
  r.ATOMIC
3814
3873
  );
3815
- c += `${e}${e}${n(f)}: ${E},
3874
+ c += `${e}${e}${n(h)}: ${m},
3816
3875
  `;
3817
3876
  }), c += `${e}};`;
3818
3877
  const u = o.space.name + "/" + o.func.name;
3819
3878
  let l = "";
3820
- o.func.outputs.forEach(({ id: f }) => {
3821
- l += `${e}var __output$${f}__ = __result__.outputs[${n(f)}];
3879
+ o.func.outputs.forEach(({ id: h }) => {
3880
+ l += `${e}var __output$${h}__ = __result__.outputs[${n(h)}];
3822
3881
  `;
3823
3882
  });
3824
3883
  const _ = s.statementToCode(o, "CALLBACK");
@@ -3841,7 +3900,7 @@ const ns = {
3841
3900
  initData_: function() {
3842
3901
  if (this.func.id)
3843
3902
  return;
3844
- const { id: t, inputs: e } = ze();
3903
+ const { id: t, inputs: e } = Ze();
3845
3904
  this.func.id = t, this.func.inputs = e;
3846
3905
  },
3847
3906
  saveExtraState: function() {
@@ -3878,9 +3937,9 @@ const ns = {
3878
3937
  Y(this, t);
3879
3938
  },
3880
3939
  checkWarning_: function() {
3881
- const { id: t, inputs: e } = ze();
3940
+ const { id: t, inputs: e } = Ze();
3882
3941
  if (this.func.id !== t && (this.func.id = t), !M(e, this.func.inputs)) {
3883
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
3942
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3884
3943
  return;
3885
3944
  }
3886
3945
  this.setWarningText(null);
@@ -3910,7 +3969,7 @@ const os = {
3910
3969
  initData_: function() {
3911
3970
  if (this.output.id)
3912
3971
  return;
3913
- const t = ze().outputs?.[0];
3972
+ const t = Ze().outputs?.[0];
3914
3973
  t && (this.output.id = t.id, this.output.name = t.name, this.output.type = t.type);
3915
3974
  },
3916
3975
  saveExtraState: function() {
@@ -3961,11 +4020,11 @@ const os = {
3961
4020
  checkWarning_: function() {
3962
4021
  const t = Ln(this.output.id);
3963
4022
  if (!t) {
3964
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
4023
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3965
4024
  return;
3966
4025
  }
3967
4026
  if (t.name !== this.output.name && (this.output.name = t.name), t.type !== this.output.type) {
3968
- this.setWarningText(h("WARN_FUNC_HAS_CHANGED"));
4027
+ this.setWarningText(f("WARN_FUNC_HAS_CHANGED"));
3969
4028
  return;
3970
4029
  }
3971
4030
  this.setWarningText(null);
@@ -3998,7 +4057,7 @@ s.forBlock.set_func_output_v1 = function(t) {
3998
4057
  return `__setFuncOutputV1__(${e(o)}, ${a});
3999
4058
  `;
4000
4059
  };
4001
- m([
4060
+ T([
4002
4061
  {
4003
4062
  type: "compute_debug_trace_v1",
4004
4063
  message0: "%{BKY_COMPUTE_V1_COMPUTE_DEBUG_TRACE_TITLE}",
@@ -4020,7 +4079,7 @@ s.forBlock.compute_debug_trace_v1 = function(t) {
4020
4079
  return `__debugTraceV1__(${s.valueToCode(t, "OBJECT", r.ATOMIC)});
4021
4080
  `;
4022
4081
  };
4023
- m([
4082
+ T([
4024
4083
  {
4025
4084
  type: "compute_env_is_v1",
4026
4085
  message0: "%{BKY_COMPUTE_V1_COMPUTE_ENV_IS_TITLE}",
@@ -4043,46 +4102,46 @@ m([
4043
4102
  s.forBlock.compute_env_is_v1 = function(t) {
4044
4103
  return [`__getEnvV1__() === ${s.quote_(t.getFieldValue("ENV"))}`, r.ATOMIC];
4045
4104
  };
4046
- function Q() {
4105
+ function tt() {
4047
4106
  const t = [];
4048
- return T.data.spaces.forEach((e) => {
4107
+ return E.data.spaces.forEach((e) => {
4049
4108
  e.tables.length > 0 && t.push(e);
4050
4109
  }), t;
4051
4110
  }
4052
4111
  function ft(t) {
4053
- const { spaces: e } = T.data;
4112
+ const { spaces: e } = E.data;
4054
4113
  return e.find((n) => n.id === t);
4055
4114
  }
4056
- function Ce() {
4115
+ function ke() {
4057
4116
  const t = [];
4058
- return Q().forEach(({ id: n, name: o }) => {
4117
+ return tt().forEach(({ id: n, name: o }) => {
4059
4118
  t.push([o, n]);
4060
4119
  }), k(t);
4061
4120
  }
4062
4121
  function $(t) {
4063
- const { spaces: e } = T.data, n = e.find((o) => o.id === t);
4122
+ const { spaces: e } = E.data, n = e.find((o) => o.id === t);
4064
4123
  return n ? n.tables : [];
4065
4124
  }
4066
- function j(t, e) {
4067
- const { spaces: n } = T.data, o = n.find((i) => i.id === t);
4125
+ function X(t, e) {
4126
+ const { spaces: n } = E.data, o = n.find((i) => i.id === t);
4068
4127
  if (o)
4069
4128
  return o.tables.find((i) => i.id === e);
4070
4129
  }
4071
- function ke(t) {
4130
+ function Ne(t) {
4072
4131
  const e = [];
4073
4132
  return $(t).forEach(({ id: o, name: i }) => {
4074
4133
  e.push([i, o]);
4075
4134
  }), k(e);
4076
4135
  }
4077
4136
  function _e(t, e) {
4078
- const { spaces: n } = T.data, o = n.find((a) => a.id === t);
4137
+ const { spaces: n } = E.data, o = n.find((a) => a.id === t);
4079
4138
  if (!o)
4080
4139
  return [];
4081
4140
  const i = o.tables.find((a) => a.id === e);
4082
4141
  return i ? i.columns : [];
4083
4142
  }
4084
- function we(t, e, n) {
4085
- const { spaces: o } = T.data, i = o.find((c) => c.id === t);
4143
+ function Ke(t, e, n) {
4144
+ const { spaces: o } = E.data, i = o.find((c) => c.id === t);
4086
4145
  if (!i)
4087
4146
  return;
4088
4147
  const a = i.tables.find((c) => c.id === e);
@@ -4100,7 +4159,7 @@ function ss(t) {
4100
4159
  if (e.targetBlock())
4101
4160
  return;
4102
4161
  let n, o;
4103
- const i = Q()?.[0];
4162
+ const i = tt()?.[0];
4104
4163
  if (i) {
4105
4164
  const u = $(i.id)?.[0];
4106
4165
  if (u) {
@@ -4231,7 +4290,7 @@ const rs = {
4231
4290
  initData_: function() {
4232
4291
  if (this.space.id)
4233
4292
  return;
4234
- const t = Q()?.[0];
4293
+ const t = tt()?.[0];
4235
4294
  if (!t)
4236
4295
  return;
4237
4296
  this.space.id = t.id, this.space.name = t.name;
@@ -4255,10 +4314,10 @@ const rs = {
4255
4314
  }, 0);
4256
4315
  },
4257
4316
  genSpaceOpts_: function() {
4258
- return Ce();
4317
+ return ke();
4259
4318
  },
4260
4319
  genTableOpts_: function() {
4261
- return ke(this.space.id);
4320
+ return Ne(this.space.id);
4262
4321
  },
4263
4322
  genColumnOpts_: function() {
4264
4323
  return is(this.space.id, this.table.id);
@@ -4280,25 +4339,25 @@ const rs = {
4280
4339
  return;
4281
4340
  }
4282
4341
  const n = e.id !== this.space.id;
4283
- if (this.space.id = e.id, this.space.name = e.name, n || !j(this.space.id, this.table.id)) {
4342
+ if (this.space.id = e.id, this.space.name = e.name, n || !X(this.space.id, this.table.id)) {
4284
4343
  const o = $(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
4285
4344
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
4286
4345
  }
4287
4346
  },
4288
4347
  onTableChange_: function(t) {
4289
- const e = j(this.space.id, t);
4348
+ const e = X(this.space.id, t);
4290
4349
  if (!e) {
4291
4350
  console.assert(!1);
4292
4351
  return;
4293
4352
  }
4294
4353
  const n = e.id !== this.table.id;
4295
- if (this.table.id = e.id, this.table.name = e.name, n || !we(this.space.id, this.table.id, this.column.id)) {
4354
+ if (this.table.id = e.id, this.table.name = e.name, n || !Ke(this.space.id, this.table.id, this.column.id)) {
4296
4355
  const o = _e(this.space.id, this.table.id)?.[0]?.id ?? "", i = this.getField("COLUMN");
4297
4356
  i.getOptions(!1), i.setValue(o, !1), this.onColumnChange_(o);
4298
4357
  }
4299
4358
  },
4300
4359
  onColumnChange_: function(t) {
4301
- const e = we(this.space.id, this.table.id, t);
4360
+ const e = Ke(this.space.id, this.table.id, t);
4302
4361
  e ? (this.column.id = e.id, this.column.name = e.name, this.column.type = e.type, this.column.extend = e.extend) : (this.column.id = "", this.column.name = "", this.column.type = "", this.column.extend = ""), this.updateShape_(), this.updateBlocks_(!0), this.updateCheck_();
4303
4362
  },
4304
4363
  updateShape_: function() {
@@ -4317,7 +4376,7 @@ const rs = {
4317
4376
  n && n.dispose();
4318
4377
  else if (n)
4319
4378
  return;
4320
- const o = je(this.workspace, this.column.type);
4379
+ const o = Xe(this.workspace, this.column.type);
4321
4380
  o && (e.setCheck(null), e.connect(o.outputConnection));
4322
4381
  },
4323
4382
  updateCheck_: function() {
@@ -4327,27 +4386,27 @@ const rs = {
4327
4386
  checkWarning_: function() {
4328
4387
  const t = ft(this.space.id);
4329
4388
  if (!t) {
4330
- this.setWarningText(h("WARN_SPACE_NOT_FOUND"));
4389
+ this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
4331
4390
  return;
4332
4391
  }
4333
4392
  t.name !== this.space.name && (this.space.name = t.name);
4334
- const e = j(this.space.id, this.table.id);
4393
+ const e = X(this.space.id, this.table.id);
4335
4394
  if (!e) {
4336
- this.setWarningText(h("WARN_TABLE_NOT_FOUND"));
4395
+ this.setWarningText(f("WARN_TABLE_NOT_FOUND"));
4337
4396
  return;
4338
4397
  }
4339
4398
  e.name !== this.table.name && (this.table.name = e.name);
4340
- const n = we(
4399
+ const n = Ke(
4341
4400
  this.space.id,
4342
4401
  this.table.id,
4343
4402
  this.column.id
4344
4403
  );
4345
4404
  if (!n) {
4346
- this.setWarningText(h("WARN_COLUMN_NOT_FOUND"));
4405
+ this.setWarningText(f("WARN_COLUMN_NOT_FOUND"));
4347
4406
  return;
4348
4407
  }
4349
4408
  if (n.name !== this.column.name && (this.column.name = n.name), n.type !== this.column.type || n.extend !== this.column.extend) {
4350
- this.setWarningText(h("WARN_COLUMN_HAS_CHANGED"));
4409
+ this.setWarningText(f("WARN_COLUMN_HAS_CHANGED"));
4351
4410
  return;
4352
4411
  }
4353
4412
  this.setWarningText(null);
@@ -4465,7 +4524,7 @@ function ps(t) {
4465
4524
  const e = t.getInput("TABLE").connection;
4466
4525
  if (e.targetBlock())
4467
4526
  return;
4468
- const n = Q()?.[0], o = $(n?.id ?? "")?.[0], i = {
4527
+ const n = tt()?.[0], o = $(n?.id ?? "")?.[0], i = {
4469
4528
  type: "select_table_v1",
4470
4529
  extraState: {
4471
4530
  space: {
@@ -4484,7 +4543,7 @@ function ds(t) {
4484
4543
  const e = t.getInput("CONDITION").connection;
4485
4544
  if (e.targetBlock())
4486
4545
  return;
4487
- const n = Q()?.[0], o = $(n?.id ?? "")?.[0], i = _e(n?.id, o?.id)?.[0], a = {
4546
+ const n = tt()?.[0], o = $(n?.id ?? "")?.[0], i = _e(n?.id, o?.id)?.[0], a = {
4488
4547
  type: "cond_atomic_v1",
4489
4548
  extraState: {
4490
4549
  space: {
@@ -4567,7 +4626,7 @@ ${e}}
4567
4626
  ${i}}
4568
4627
  `;
4569
4628
  };
4570
- m([
4629
+ T([
4571
4630
  {
4572
4631
  type: "interrupt_transaction_v1",
4573
4632
  message0: "%{BKY_DATA_V1_INTERRUPT_TRANSACTION_TITLE}",
@@ -4594,7 +4653,7 @@ function ms(t) {
4594
4653
  if (e.targetBlock())
4595
4654
  return;
4596
4655
  let n, o;
4597
- const i = Q()?.[0];
4656
+ const i = tt()?.[0];
4598
4657
  if (i) {
4599
4658
  const u = $(i.id)?.[0];
4600
4659
  if (u) {
@@ -4693,7 +4752,7 @@ function gs(t) {
4693
4752
  }, o = K.blocks.append(n, t.workspace);
4694
4753
  e.connect(o.previousConnection);
4695
4754
  }
4696
- m([
4755
+ T([
4697
4756
  {
4698
4757
  type: "query_data_container_v1",
4699
4758
  message0: "%{BKY_DATA_EXTRA} %1",
@@ -4750,7 +4809,7 @@ ${e}}
4750
4809
  ${a}}
4751
4810
  `;
4752
4811
  };
4753
- m([
4812
+ T([
4754
4813
  {
4755
4814
  type: "query_extra_limit_v1",
4756
4815
  message0: "%{BKY_DATA_V1_QUERY_EXTRA_LIMIT_TITLE}",
@@ -4777,7 +4836,7 @@ s.forBlock.query_extra_limit_v1 = function(t) {
4777
4836
  const e = s.valueToCode(t, "OFFSET", r.ATOMIC) || 0, n = s.valueToCode(t, "LIMIT", r.ATOMIC) || 0;
4778
4837
  return [`{type:'limit',value:${e},value2:${n}}`, r.ATOMIC];
4779
4838
  };
4780
- m([
4839
+ T([
4781
4840
  {
4782
4841
  type: "query_extra_sortby_v1",
4783
4842
  message0: "%{BKY_DATA_V1_QUERY_EXTRA_SORTBY_TITLE}",
@@ -4841,7 +4900,7 @@ const ys = {
4841
4900
  initData_: function() {
4842
4901
  if (this.space.id)
4843
4902
  return;
4844
- const t = Q()?.[0];
4903
+ const t = tt()?.[0];
4845
4904
  if (!t)
4846
4905
  return;
4847
4906
  this.space.id = t.id, this.space.name = t.name;
@@ -4867,10 +4926,10 @@ const ys = {
4867
4926
  }, 0);
4868
4927
  },
4869
4928
  genSpaceOpts_: function() {
4870
- return Ce();
4929
+ return ke();
4871
4930
  },
4872
4931
  genTableOpts_: function() {
4873
- return ke(this.space.id);
4932
+ return Ne(this.space.id);
4874
4933
  },
4875
4934
  genColumnOpts_: function() {
4876
4935
  const t = [];
@@ -4907,13 +4966,13 @@ const ys = {
4907
4966
  return;
4908
4967
  }
4909
4968
  const n = e.id !== this.space.id;
4910
- if (this.space.id = e.id, this.space.name = e.name, n || !j(this.space.id, this.table.id)) {
4969
+ if (this.space.id = e.id, this.space.name = e.name, n || !X(this.space.id, this.table.id)) {
4911
4970
  const o = $(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
4912
4971
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
4913
4972
  }
4914
4973
  },
4915
4974
  onTableChange_: function(t) {
4916
- const e = j(this.space.id, t);
4975
+ const e = X(this.space.id, t);
4917
4976
  if (!e) {
4918
4977
  console.assert(!1);
4919
4978
  return;
@@ -5009,17 +5068,17 @@ const ys = {
5009
5068
  checkWarning_: function() {
5010
5069
  const t = ft(this.space.id);
5011
5070
  if (!t) {
5012
- this.setWarningText(h("WARN_SPACE_NOT_FOUND"));
5071
+ this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
5013
5072
  return;
5014
5073
  }
5015
5074
  t.name !== this.space.name && (this.space.name = t.name);
5016
- const e = j(this.space.id, this.table.id);
5075
+ const e = X(this.space.id, this.table.id);
5017
5076
  if (!e) {
5018
- this.setWarningText(h("WARN_TABLE_NOT_FOUND"));
5077
+ this.setWarningText(f("WARN_TABLE_NOT_FOUND"));
5019
5078
  return;
5020
5079
  }
5021
5080
  if (e.name !== this.table.name && (this.table.name = e.name), !M(e.columns, this.table.columns)) {
5022
- this.setWarningText(h("WARN_TABLE_HAS_CHANGED"));
5081
+ this.setWarningText(f("WARN_TABLE_HAS_CHANGED"));
5023
5082
  return;
5024
5083
  }
5025
5084
  this.setWarningText(null);
@@ -5029,8 +5088,8 @@ g.select_column_v1 = ys;
5029
5088
  s.forBlock.select_column_v1 = function(t) {
5030
5089
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
5031
5090
  for (let l = 0; l < n.itemCount_; l++) {
5032
- const _ = n.getFieldValue("COLUMN" + l), d = n.table.columns.find((p) => p.id === _).name, f = n.getFieldValue("ALIAS" + l);
5033
- a.push({ name: d, alias: f });
5091
+ const _ = n.getFieldValue("COLUMN" + l), d = n.table.columns.find((p) => p.id === _).name, h = n.getFieldValue("ALIAS" + l);
5092
+ a.push({ name: d, alias: h });
5034
5093
  }
5035
5094
  let c = "[";
5036
5095
  return a.forEach(({ name: l, alias: _ }, d) => {
@@ -5056,7 +5115,7 @@ const vs = {
5056
5115
  initData_: function() {
5057
5116
  if (this.space.id)
5058
5117
  return;
5059
- const t = Q()?.[0];
5118
+ const t = tt()?.[0];
5060
5119
  if (!t)
5061
5120
  return;
5062
5121
  this.space.id = t.id, this.space.name = t.name;
@@ -5079,10 +5138,10 @@ const vs = {
5079
5138
  this.space.id = t.space?.id ?? "", this.space.name = t.space?.name ?? "", this.table.id = t.table?.id ?? "", this.table.name = t.table?.name ?? "", this.checkWarning_();
5080
5139
  },
5081
5140
  genSpaceOpts_: function() {
5082
- return Ce();
5141
+ return ke();
5083
5142
  },
5084
5143
  genTableOpts_: function() {
5085
- return ke(this.space.id);
5144
+ return Ne(this.space.id);
5086
5145
  },
5087
5146
  onchange: function(t) {
5088
5147
  if (t.type === b.STATE_CHANGE)
@@ -5101,13 +5160,13 @@ const vs = {
5101
5160
  return;
5102
5161
  }
5103
5162
  let n = !1;
5104
- if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("TABLE").getOptions(!1), n || !j(this.space.id, this.table.id)) {
5163
+ if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("TABLE").getOptions(!1), n || !X(this.space.id, this.table.id)) {
5105
5164
  const i = $(this.space.id)?.[0];
5106
5165
  i ? this.setFieldValue(i.id, "TABLE") : this.setFieldValue("", "TABLE");
5107
5166
  }
5108
5167
  },
5109
5168
  onTableChange_: function(t) {
5110
- const e = j(this.space.id, t);
5169
+ const e = X(this.space.id, t);
5111
5170
  if (!e) {
5112
5171
  console.assert(!1);
5113
5172
  return;
@@ -5117,13 +5176,13 @@ const vs = {
5117
5176
  checkWarning_: function() {
5118
5177
  const t = ft(this.space.id);
5119
5178
  if (!t) {
5120
- this.setWarningText(h("WARN_SPACE_NOT_FOUND"));
5179
+ this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
5121
5180
  return;
5122
5181
  }
5123
5182
  t.name !== this.space.name && (this.space.name = t.name);
5124
- const e = j(this.space.id, this.table.id);
5183
+ const e = X(this.space.id, this.table.id);
5125
5184
  if (!e) {
5126
- this.setWarningText(h("WARN_TABLE_NOT_FOUND"));
5185
+ this.setWarningText(f("WARN_TABLE_NOT_FOUND"));
5127
5186
  return;
5128
5187
  }
5129
5188
  e.name !== this.table.name && (this.table.name = e.name), this.setWarningText(null);
@@ -5237,7 +5296,7 @@ const Ls = {
5237
5296
  initData_: function() {
5238
5297
  if (this.space.id)
5239
5298
  return;
5240
- const t = Q()?.[0];
5299
+ const t = tt()?.[0];
5241
5300
  if (!t)
5242
5301
  return;
5243
5302
  this.space.id = t.id, this.space.name = t.name;
@@ -5263,10 +5322,10 @@ const Ls = {
5263
5322
  }, 0);
5264
5323
  },
5265
5324
  genSpaceOpts_: function() {
5266
- return Ce();
5325
+ return ke();
5267
5326
  },
5268
5327
  genTableOpts_: function() {
5269
- return ke(this.space.id);
5328
+ return Ne(this.space.id);
5270
5329
  },
5271
5330
  genColumnOpts_: function() {
5272
5331
  const t = [];
@@ -5303,13 +5362,13 @@ const Ls = {
5303
5362
  return;
5304
5363
  }
5305
5364
  const n = e.id !== this.space.id;
5306
- if (this.space.id = e.id, this.space.name = e.name, n || !j(this.space.id, this.table.id)) {
5365
+ if (this.space.id = e.id, this.space.name = e.name, n || !X(this.space.id, this.table.id)) {
5307
5366
  const o = $(this.space.id)?.[0]?.id ?? "", i = this.getField("TABLE");
5308
5367
  i.getOptions(!1), i.setValue(o, !1), this.onTableChange_(o);
5309
5368
  }
5310
5369
  },
5311
5370
  onTableChange_: function(t) {
5312
- const e = j(this.space.id, t);
5371
+ const e = X(this.space.id, t);
5313
5372
  if (!e) {
5314
5373
  console.assert(!1);
5315
5374
  return;
@@ -5333,7 +5392,7 @@ const Ls = {
5333
5392
  }
5334
5393
  const o = this.getInput("ADD" + t).connection, i = o.targetBlock();
5335
5394
  i && i.dispose();
5336
- const a = je(this.workspace, n.type);
5395
+ const a = Xe(this.workspace, n.type);
5337
5396
  a && (o.setCheck(null), o.connect(a.outputConnection)), this.updateCheck_();
5338
5397
  },
5339
5398
  decompose: function(t) {
@@ -5424,7 +5483,7 @@ const Ls = {
5424
5483
  if (!c)
5425
5484
  continue;
5426
5485
  n.setCheck(null);
5427
- const u = je(this.workspace, c.type);
5486
+ const u = Xe(this.workspace, c.type);
5428
5487
  u && o.connect(u.outputConnection);
5429
5488
  }
5430
5489
  },
@@ -5440,17 +5499,17 @@ const Ls = {
5440
5499
  checkWarning_: function() {
5441
5500
  const t = ft(this.space.id);
5442
5501
  if (!t) {
5443
- this.setWarningText(h("WARN_SPACE_NOT_FOUND"));
5502
+ this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
5444
5503
  return;
5445
5504
  }
5446
5505
  t.name !== this.space.name && (this.space.name = t.name);
5447
- const e = j(this.space.id, this.table.id);
5506
+ const e = X(this.space.id, this.table.id);
5448
5507
  if (!e) {
5449
- this.setWarningText(h("WARN_TABLE_NOT_FOUND"));
5508
+ this.setWarningText(f("WARN_TABLE_NOT_FOUND"));
5450
5509
  return;
5451
5510
  }
5452
5511
  if (e.name !== this.table.name && (this.table.name = e.name), !M(e.columns, this.table.columns)) {
5453
- this.setWarningText(h("WARN_TABLE_HAS_CHANGED"));
5512
+ this.setWarningText(f("WARN_TABLE_HAS_CHANGED"));
5454
5513
  return;
5455
5514
  }
5456
5515
  this.setWarningText(null);
@@ -5460,8 +5519,8 @@ g.update_column_v1 = Ls;
5460
5519
  s.forBlock.update_column_v1 = function(t) {
5461
5520
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
5462
5521
  for (let l = 0; l < n.itemCount_; l++) {
5463
- const _ = n.getFieldValue("COLUMN" + l), d = n.table.columns.find((p) => p.id === _).name, f = s.valueToCode(n, "ADD" + l, r.ATOMIC) || "null";
5464
- a.push({ name: d, value: f });
5522
+ const _ = n.getFieldValue("COLUMN" + l), d = n.table.columns.find((p) => p.id === _).name, h = s.valueToCode(n, "ADD" + l, r.ATOMIC) || "null";
5523
+ a.push({ name: d, value: h });
5465
5524
  }
5466
5525
  let c = "[";
5467
5526
  return a.forEach(({ name: l, value: _ }, d) => {
@@ -5473,7 +5532,7 @@ function Ss(t) {
5473
5532
  if (e.targetBlock())
5474
5533
  return;
5475
5534
  let n, o;
5476
- const i = Q()?.[0];
5535
+ const i = tt()?.[0];
5477
5536
  if (i) {
5478
5537
  const u = $(i.id)?.[0];
5479
5538
  if (u) {
@@ -5578,7 +5637,7 @@ ${i}}
5578
5637
  const Rs = C.xml, Ds = {
5579
5638
  init: function() {
5580
5639
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
5581
- new Z(Lt, 20, 20, void 0, () => {
5640
+ new ot(Lt, 20, 20, void 0, () => {
5582
5641
  this.isInFlyout || this.addEntry_();
5583
5642
  })
5584
5643
  ), this.appendDummyInput("CLOSE_BRACKET").appendField(" ] "), this.setInputsInline(!1), this.setOutput(!0, "JsonArray"), this.setColour(350), this.setTooltip(""), this.setHelpUrl("");
@@ -5597,11 +5656,11 @@ const Rs = C.xml, Ds = {
5597
5656
  for (let t = 0; t < this.length; t++) {
5598
5657
  const e = "ENTRY" + t, n = this.appendValueInput(e);
5599
5658
  n.appendField(
5600
- new Z(Lt, 20, 20, void 0, () => {
5659
+ new ot(Lt, 20, 20, void 0, () => {
5601
5660
  this.isInFlyout || this.addEntry_(n);
5602
5661
  })
5603
5662
  ), n.appendField(new gn(String(t))), n.appendField(
5604
- new Z(se, 20, 20, void 0, () => {
5663
+ new ot(se, 20, 20, void 0, () => {
5605
5664
  this.isInFlyout || this.removeEntry_(n);
5606
5665
  })
5607
5666
  ), this.moveInputBefore(e, "ADD");
@@ -5616,11 +5675,11 @@ const Rs = C.xml, Ds = {
5616
5675
  }
5617
5676
  const n = this.appendValueInput("ENTRY" + e);
5618
5677
  n.appendField(
5619
- new Z(Lt, 20, 20, void 0, () => {
5678
+ new ot(Lt, 20, 20, void 0, () => {
5620
5679
  this.isInFlyout || this.addEntry_(n);
5621
5680
  })
5622
5681
  ), n.appendField(new gn(String(e))), n.appendField(
5623
- new Z(se, 20, 20, void 0, () => {
5682
+ new ot(se, 20, 20, void 0, () => {
5624
5683
  this.isInFlyout || this.removeEntry_(n);
5625
5684
  })
5626
5685
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -5652,7 +5711,7 @@ g.json_boolean_v1 = Ms;
5652
5711
  const Sn = C.xml, Us = {
5653
5712
  init: function() {
5654
5713
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(v.Align.CENTRE).appendField(
5655
- new Z(Lt, 20, 20, void 0, () => {
5714
+ new ot(Lt, 20, 20, void 0, () => {
5656
5715
  this.isInFlyout || this.addEntry_();
5657
5716
  })
5658
5717
  ), this.appendDummyInput("CLOSE_BRACHET").appendField(" } "), this.setInputsInline(!1), this.setOutput(!0, "JsonMap"), this.setColour(120), this.setTooltip(""), this.setHelpUrl("");
@@ -5680,11 +5739,11 @@ const Sn = C.xml, Us = {
5680
5739
  for (let e = 0; e < t.length; e++) {
5681
5740
  const n = t[e], o = "ENTRY" + e, i = this.appendValueInput(o);
5682
5741
  i.appendField(
5683
- new Z(Lt, 20, 20, void 0, () => {
5742
+ new ot(Lt, 20, 20, void 0, () => {
5684
5743
  this.isInFlyout || this.addEntry_(i);
5685
5744
  })
5686
5745
  ), i.appendField(new dt(n), "KEY" + e), i.appendField(
5687
- new Z(se, 20, 20, void 0, () => {
5746
+ new ot(se, 20, 20, void 0, () => {
5688
5747
  this.isInFlyout || this.removeEntry_(i);
5689
5748
  })
5690
5749
  ), this.moveInputBefore(o, "ADD");
@@ -5697,11 +5756,11 @@ const Sn = C.xml, Us = {
5697
5756
  this.getField("KEY" + o).name = "KEY" + (o + 1), this.getInput("ENTRY" + o).name = "ENTRY" + (o + 1);
5698
5757
  const n = this.appendValueInput("ENTRY" + e);
5699
5758
  n.appendField(
5700
- new Z(Lt, 20, 20, void 0, () => {
5759
+ new ot(Lt, 20, 20, void 0, () => {
5701
5760
  this.isInFlyout || this.addEntry_(n);
5702
5761
  })
5703
5762
  ), n.appendField(new dt("key"), "KEY" + e), n.appendField(
5704
- new Z(se, 20, 20, void 0, () => {
5763
+ new ot(se, 20, 20, void 0, () => {
5705
5764
  this.isInFlyout || this.removeEntry_(n);
5706
5765
  })
5707
5766
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -5718,7 +5777,7 @@ const Sn = C.xml, Us = {
5718
5777
  g.json_map_v1 = Us;
5719
5778
  const Vs = {
5720
5779
  init: function() {
5721
- this.appendDummyInput().appendField(new $e(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
5780
+ this.appendDummyInput().appendField(new He(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
5722
5781
  }
5723
5782
  };
5724
5783
  g.json_number_v1 = Vs;
@@ -5835,7 +5894,7 @@ s.forBlock.list_create_v1 = function(t) {
5835
5894
  n[i] = s.valueToCode(e, "ADD" + i, r.NONE) || "null";
5836
5895
  return ["[" + n.join(", ") + "]", r.ATOMIC];
5837
5896
  };
5838
- m([
5897
+ T([
5839
5898
  {
5840
5899
  type: "list_delete_v1",
5841
5900
  message0: "%{BKY_LIST_V1_DELETE_TITLE}",
@@ -5863,7 +5922,7 @@ s.forBlock.list_delete_v1 = function(t) {
5863
5922
  const e = s.valueToCode(t, "VALUE", r.MEMBER) || "[]", n = s.getAdjusted(t, "AT");
5864
5923
  return `${e}.splice(${n}, 1)`;
5865
5924
  };
5866
- m([
5925
+ T([
5867
5926
  {
5868
5927
  type: "list_get_v1",
5869
5928
  message0: "%{BKY_LIST_V1_GET_TITLE}",
@@ -5890,7 +5949,7 @@ s.forBlock.list_get_v1 = function(t) {
5890
5949
  const e = s.valueToCode(t, "VALUE", r.MEMBER) || "[]", n = s.getAdjusted(t, "AT");
5891
5950
  return [`${e}[${n}]`, r.MEMBER];
5892
5951
  };
5893
- m([
5952
+ T([
5894
5953
  {
5895
5954
  type: "list_get_sublist_v1",
5896
5955
  message0: "%{BKY_LIST_V1_GET_SUBLIST_TITLE}",
@@ -5922,7 +5981,7 @@ s.forBlock.list_get_sublist_v1 = function(t) {
5922
5981
  const e = s.valueToCode(t, "LIST", r.MEMBER) || "[]", n = s.getAdjusted(t, "START"), o = s.getAdjusted(t, "END", 1);
5923
5982
  return [`${e}.slice(${n}, ${o})`, r.FUNCTION_CALL];
5924
5983
  };
5925
- m([
5984
+ T([
5926
5985
  {
5927
5986
  type: "list_is_empty_v1",
5928
5987
  message0: "%{BKY_LIST_V1_IS_EMPTY_TITLE}",
@@ -5942,7 +6001,7 @@ m([
5942
6001
  s.forBlock.list_is_empty_v1 = function(t) {
5943
6002
  return [`!${s.valueToCode(t, "VALUE", r.MEMBER) || "[]"}.length`, r.LOGICAL_NOT];
5944
6003
  };
5945
- m([
6004
+ T([
5946
6005
  {
5947
6006
  type: "list_join_v1",
5948
6007
  message0: "%{BKY_LIST_V1_JOIN_TITLE}",
@@ -5969,7 +6028,7 @@ s.forBlock.list_join_v1 = function(t) {
5969
6028
  const e = s.valueToCode(t, "LIST", r.MEMBER) || "[]", n = s.valueToCode(t, "DELIM", r.NONE) || "''";
5970
6029
  return [`${e}.join(${n})`, r.FUNCTION_CALL];
5971
6030
  };
5972
- m([
6031
+ T([
5973
6032
  {
5974
6033
  type: "list_length_v1",
5975
6034
  message0: "%{BKY_LIST_V1_LENGTH_TITLE}",
@@ -5989,7 +6048,7 @@ m([
5989
6048
  s.forBlock.list_length_v1 = function(t) {
5990
6049
  return [`${s.valueToCode(t, "VALUE", r.MEMBER) || "[]"}.length`, r.MEMBER];
5991
6050
  };
5992
- m([
6051
+ T([
5993
6052
  {
5994
6053
  type: "list_reverse_v1",
5995
6054
  message0: "%{BKY_LIST_V1_REVERSE_TITLE}",
@@ -6010,7 +6069,7 @@ m([
6010
6069
  s.forBlock.list_reverse_v1 = function(t) {
6011
6070
  return [`${s.valueToCode(t, "LIST", r.NONE) || "[]"}.slice().reverse()`, r.FUNCTION_CALL];
6012
6071
  };
6013
- m([
6072
+ T([
6014
6073
  {
6015
6074
  type: "list_set_v1",
6016
6075
  message0: "%{BKY_LIST_V1_SET_TITLE}",
@@ -6060,7 +6119,7 @@ B.register(
6060
6119
  "logic_op_tooltip_v1",
6061
6120
  B.buildTooltipForDropdown("OP", Hs)
6062
6121
  );
6063
- m([
6122
+ T([
6064
6123
  {
6065
6124
  type: "logic_boolean_v1",
6066
6125
  message0: "%1",
@@ -6106,7 +6165,7 @@ B.register(
6106
6165
  this.mixin(Gs);
6107
6166
  }
6108
6167
  );
6109
- m([
6168
+ T([
6110
6169
  {
6111
6170
  type: "logic_compare_v1",
6112
6171
  message0: "%1 %2 %3",
@@ -6269,8 +6328,8 @@ const Ws = {
6269
6328
  for (let t = 1; this.getInput("IF" + t); t++)
6270
6329
  this.removeInput("IF" + t), this.removeInput("DO" + t);
6271
6330
  for (let t = 1; t <= this.elseIfCount_; t++)
6272
- this.appendValueInput("IF" + t).setCheck("Boolean").appendField(h("LOGIC_ELSE_IF")), this.appendStatementInput("DO" + t).appendField(h("LOGIC_DO"));
6273
- this.hasElse_ && this.appendStatementInput("ELSE").appendField(h("LOGIC_ELSE"));
6331
+ this.appendValueInput("IF" + t).setCheck("Boolean").appendField(f("LOGIC_ELSE_IF")), this.appendStatementInput("DO" + t).appendField(f("LOGIC_DO"));
6332
+ this.hasElse_ && this.appendStatementInput("ELSE").appendField(f("LOGIC_ELSE"));
6274
6333
  },
6275
6334
  reconnectChildBlocks_: function(t, e, n) {
6276
6335
  for (let o = 1; o <= this.elseIfCount_; o++)
@@ -6284,7 +6343,7 @@ B.registerMutator(
6284
6343
  void 0,
6285
6344
  ["logic_if_else_if_v1", "logic_if_else_v1"]
6286
6345
  );
6287
- m([
6346
+ T([
6288
6347
  {
6289
6348
  type: "logic_if_v1",
6290
6349
  message0: "%{BKY_LOGIC_IF} %1",
@@ -6364,7 +6423,7 @@ s.forBlock.logic_if_v1 = function(t) {
6364
6423
  return n + `
6365
6424
  `;
6366
6425
  };
6367
- m([
6426
+ T([
6368
6427
  {
6369
6428
  type: "logic_negate_v1",
6370
6429
  message0: "%{BKY_LOGIC_V1_NEGATE_TITLE}",
@@ -6384,7 +6443,7 @@ m([
6384
6443
  s.forBlock.logic_negate_v1 = function(t) {
6385
6444
  return [`!${s.valueToCode(t, "BOOL", r.LOGICAL_NOT) || "true"}`, r.LOGICAL_NOT];
6386
6445
  };
6387
- m([
6446
+ T([
6388
6447
  {
6389
6448
  type: "logic_operation_v1",
6390
6449
  message0: "%1 %2 %3",
@@ -6442,7 +6501,7 @@ const js = {
6442
6501
  }
6443
6502
  };
6444
6503
  B.registerMixin("logic_ternary_v1", js);
6445
- m([
6504
+ T([
6446
6505
  {
6447
6506
  type: "logic_ternary_v1",
6448
6507
  message0: "%{BKY_LOGIC_TERNARY_CONDITION} %1",
@@ -6492,7 +6551,7 @@ const Xs = {
6492
6551
  };
6493
6552
  t.push({
6494
6553
  enabled: !0,
6495
- text: h("VARIABLE_SET_CREATE_GET").replace("%1", o),
6554
+ text: f("VARIABLE_SET_CREATE_GET").replace("%1", o),
6496
6555
  callback: Un.callbackFactory(this, i)
6497
6556
  });
6498
6557
  }
@@ -6529,7 +6588,7 @@ const Js = /* @__PURE__ */ new Set([
6529
6588
  if (!e.isDragging || e.isDragging() || t.type !== I.BLOCK_MOVE && t.type !== I.BLOCK_CREATE)
6530
6589
  return;
6531
6590
  const n = this.getSurroundLoop();
6532
- if (this.setWarningText(n ? null : h("LOOP_FLOW_CONTROL_WARNING")), !this.isInFlyout)
6591
+ if (this.setWarningText(n ? null : f("LOOP_FLOW_CONTROL_WARNING")), !this.isInFlyout)
6533
6592
  try {
6534
6593
  I.setRecordUndo(!1), this.setDisabledReason(!n, "FLOW_CONTROL_NOT_IN_LOOP");
6535
6594
  } finally {
@@ -6541,7 +6600,7 @@ B.registerMixin(
6541
6600
  "flow_control_in_loop_check_v1",
6542
6601
  qs
6543
6602
  );
6544
- m([
6603
+ T([
6545
6604
  {
6546
6605
  type: "flow_control_v1",
6547
6606
  message0: "%1",
@@ -6595,7 +6654,7 @@ B.register(
6595
6654
  "VAR"
6596
6655
  )
6597
6656
  );
6598
- m([
6657
+ T([
6599
6658
  {
6600
6659
  type: "for_v1",
6601
6660
  message0: "%{BKY_LOOP_V1_FOR_TITLE}",
@@ -6657,18 +6716,18 @@ ${c}}
6657
6716
  let u = "", l = o;
6658
6717
  !o.match(/^\w+$/) && !C.string.isNumber(o) && (l = s.nameDB_.getDistinctName(
6659
6718
  `${n}_from`,
6660
- tt.NameType.VARIABLE
6719
+ it.NameType.VARIABLE
6661
6720
  ), u += `var ${l} = ${o};
6662
6721
  `);
6663
6722
  let _ = i;
6664
6723
  !i.match(/^\w+$/) && !C.string.isNumber(i) && (_ = s.nameDB_.getDistinctName(
6665
6724
  `${n}_to`,
6666
- tt.NameType.VARIABLE
6725
+ it.NameType.VARIABLE
6667
6726
  ), u += `var ${_} = ${i};
6668
6727
  `);
6669
6728
  const d = s.nameDB_.getDistinctName(
6670
6729
  `${n}_by`,
6671
- tt.NameType.VARIABLE
6730
+ it.NameType.VARIABLE
6672
6731
  );
6673
6732
  return u += `var ${d} = `, C.string.isNumber(a) ? u += `${Math.abs(Number(a))};
6674
6733
  ` : u += `Math.abs(${a});
@@ -6687,7 +6746,7 @@ B.register(
6687
6746
  "VAR"
6688
6747
  )
6689
6748
  );
6690
- m([
6749
+ T([
6691
6750
  {
6692
6751
  type: "for_each_v1",
6693
6752
  message0: "%{BKY_LOOP_V1_FOR_EACH_TITLE}",
@@ -6727,19 +6786,19 @@ s.forBlock.for_each_v1 = function(t) {
6727
6786
  let a = "", c = o;
6728
6787
  o.match(/^\w+$/) || (c = s.nameDB_.getDistinctName(
6729
6788
  `${n}_list`,
6730
- tt.NameType.VARIABLE
6789
+ it.NameType.VARIABLE
6731
6790
  ), a += `var ${c} = ${o};
6732
6791
  `);
6733
6792
  const u = s.nameDB_.getDistinctName(
6734
6793
  `${n}_index`,
6735
- tt.NameType.VARIABLE
6794
+ it.NameType.VARIABLE
6736
6795
  );
6737
6796
  return a += `for (var ${u} in ${c}) {
6738
6797
  ${e}${n} = ${c}[${u}];
6739
6798
  ${i}}
6740
6799
  `, a;
6741
6800
  };
6742
- m([
6801
+ T([
6743
6802
  {
6744
6803
  type: "repeat_v1",
6745
6804
  message0: "%{BKY_LOOP_V1_REPEAT_TITLE}",
@@ -6774,12 +6833,12 @@ s.forBlock.repeat_v1 = function(t) {
6774
6833
  let o = "";
6775
6834
  const i = s.nameDB_.getDistinctName(
6776
6835
  "count",
6777
- tt.NameType.VARIABLE
6836
+ it.NameType.VARIABLE
6778
6837
  );
6779
6838
  let a = e;
6780
6839
  return !e.match(/^\w+$/) && !C.string.isNumber(e) && (a = s.nameDB_.getDistinctName(
6781
6840
  "repeat_end",
6782
- tt.NameType.VARIABLE
6841
+ it.NameType.VARIABLE
6783
6842
  ), o += `var ${a} = ${e};
6784
6843
  `), o += `for (var ${i} = 0; ${i} < ${a}; ${i}++) {
6785
6844
  ${n}}
@@ -6792,7 +6851,7 @@ B.register(
6792
6851
  UNTIL: "%{BKY_LOOP_V1_WHILE_UNTIL_TOOLTIP_UNTIL}"
6793
6852
  })
6794
6853
  );
6795
- m([
6854
+ T([
6796
6855
  {
6797
6856
  type: "while_until_v1",
6798
6857
  message0: "%1 %2",
@@ -6877,7 +6936,7 @@ B.register(
6877
6936
  "math_op_tooltip_v1",
6878
6937
  B.buildTooltipForDropdown("OP", Qs)
6879
6938
  );
6880
- m([
6939
+ T([
6881
6940
  {
6882
6941
  type: "math_arithmetic_v1",
6883
6942
  message0: "%1 %2 %3",
@@ -6921,7 +6980,7 @@ s.forBlock.math_arithmetic_v1 = function(t) {
6921
6980
  }, [n, o] = e[t.getFieldValue("OP")], i = s.valueToCode(t, "A", o) || "0", a = s.valueToCode(t, "B", o) || "0";
6922
6981
  return n ? [i + n + a, o] : [`Math.pow(${i}, ${a})`, r.FUNCTION_CALL];
6923
6982
  };
6924
- m([
6983
+ T([
6925
6984
  {
6926
6985
  type: "math_constant_v1",
6927
6986
  message0: "%1",
@@ -6955,7 +7014,7 @@ s.forBlock.math_constant_v1 = function(t) {
6955
7014
  INFINITY: ["Infinity", r.ATOMIC]
6956
7015
  }[t.getFieldValue("CONSTANT")];
6957
7016
  };
6958
- m([
7017
+ T([
6959
7018
  {
6960
7019
  type: "math_constrain_v1",
6961
7020
  message0: "%{BKY_MATH_V1_CONSTRAIN_TITLE}",
@@ -6987,7 +7046,7 @@ s.forBlock.math_constrain_v1 = function(t) {
6987
7046
  const e = s.valueToCode(t, "VALUE", r.NONE) || "0", n = s.valueToCode(t, "LOW", r.NONE) || "0", o = s.valueToCode(t, "HIGH", r.NONE) || "Infinity";
6988
7047
  return [`Math.min(Math.max(${e}, ${n}), ${o})`, r.FUNCTION_CALL];
6989
7048
  };
6990
- m([
7049
+ T([
6991
7050
  {
6992
7051
  type: "math_modulo_v1",
6993
7052
  message0: "%{BKY_MATH_V1_MODULO_TITLE}",
@@ -7014,7 +7073,7 @@ s.forBlock.math_modulo_v1 = function(t) {
7014
7073
  const e = s.valueToCode(t, "DIVIDEND", r.MODULUS) || "0", n = s.valueToCode(t, "DIVISOR", r.MODULUS) || "0";
7015
7074
  return [e + " % " + n, r.MODULUS];
7016
7075
  };
7017
- m([
7076
+ T([
7018
7077
  {
7019
7078
  type: "math_number_v1",
7020
7079
  message0: "%1",
@@ -7036,7 +7095,7 @@ s.forBlock.math_number_v1 = function(t) {
7036
7095
  const e = Number(t.getFieldValue("NUM")), n = e >= 0 ? r.ATOMIC : r.UNARY_NEGATION;
7037
7096
  return [String(e), n];
7038
7097
  };
7039
- m([
7098
+ T([
7040
7099
  {
7041
7100
  type: "math_number_property_v1",
7042
7101
  message0: "%{BKY_MATH_V1_NUMBER_PROPERTY_TITLE}",
@@ -7108,7 +7167,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(n) {
7108
7167
  u = c + o;
7109
7168
  return [u, a];
7110
7169
  };
7111
- m([
7170
+ T([
7112
7171
  {
7113
7172
  type: "math_on_list_v1",
7114
7173
  message0: "%{BKY_MATH_V1_ON_LIST_TITLE}",
@@ -7258,7 +7317,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(list) {
7258
7317
  }
7259
7318
  return [o, r.FUNCTION_CALL];
7260
7319
  };
7261
- m([
7320
+ T([
7262
7321
  {
7263
7322
  type: "math_random_float_v1",
7264
7323
  message0: "%{BKY_MATH_V1_RANDOM_FLOAT_TITLE}",
@@ -7271,7 +7330,7 @@ m([
7271
7330
  s.forBlock.math_random_float_v1 = function() {
7272
7331
  return ["Math.random()", r.FUNCTION_CALL];
7273
7332
  };
7274
- m([
7333
+ T([
7275
7334
  {
7276
7335
  type: "math_random_int_v1",
7277
7336
  message0: "%{BKY_MATH_V1_RANDOM_INT_TITLE}",
@@ -7311,7 +7370,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(a, b) {
7311
7370
  `
7312
7371
  ) + "(" + e + ", " + n + ")", r.FUNCTION_CALL];
7313
7372
  };
7314
- m([
7373
+ T([
7315
7374
  {
7316
7375
  type: "math_round_v1",
7317
7376
  message0: "%1 %2",
@@ -7353,7 +7412,7 @@ s.forBlock.math_round_v1 = function(t) {
7353
7412
  }
7354
7413
  return [o, r.FUNCTION_CALL];
7355
7414
  };
7356
- m([
7415
+ T([
7357
7416
  {
7358
7417
  type: "math_single_v1",
7359
7418
  message0: "%1 %2",
@@ -7416,7 +7475,7 @@ s.forBlock.math_single_v1 = function(t) {
7416
7475
  }
7417
7476
  return [n, r.DIVISION];
7418
7477
  };
7419
- m([
7478
+ T([
7420
7479
  {
7421
7480
  type: "math_trig_v1",
7422
7481
  message0: "%1 %2",
@@ -7576,7 +7635,7 @@ s.forBlock.object_create_v1 = function(t) {
7576
7635
  }
7577
7636
  return n += "}", [n, r.ATOMIC];
7578
7637
  };
7579
- m([
7638
+ T([
7580
7639
  {
7581
7640
  type: "object_delete_v1",
7582
7641
  message0: "%{BKY_OBJECT_V1_DELETE_TITLE}",
@@ -7643,7 +7702,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(obj, key) {
7643
7702
  return `${e}(${n}, ${o});
7644
7703
  `;
7645
7704
  };
7646
- m([
7705
+ T([
7647
7706
  {
7648
7707
  type: "object_from_json_v1",
7649
7708
  message0: "%{BKY_OBJECT_V1_FROM_JSON_TITLE}",
@@ -7664,7 +7723,7 @@ m([
7664
7723
  s.forBlock.object_from_json_v1 = function(t) {
7665
7724
  return [`__parseJsonV1__(${s.valueToCode(t, "JSON", r.NONE) || "''"})`, r.FUNCTION_CALL];
7666
7725
  };
7667
- m([
7726
+ T([
7668
7727
  {
7669
7728
  type: "object_get_v1",
7670
7729
  message0: "%{BKY_OBJECT_V1_GET_TITLE}",
@@ -7721,7 +7780,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(obj, key) {
7721
7780
  ), n = s.valueToCode(t, "OBJECT", r.ATOMIC) || "null", o = s.valueToCode(t, "KEY", r.ATOMIC) || "''";
7722
7781
  return [`${e}(${n}, ${o})`, r.FUNCTION_CALL];
7723
7782
  };
7724
- m([
7783
+ T([
7725
7784
  {
7726
7785
  type: "object_set_v1",
7727
7786
  message0: "%{BKY_OBJECT_V1_SET_TITLE}",
@@ -7787,7 +7846,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(obj, key, val) {
7787
7846
  return `${e}(${n}, ${o}, ${i});
7788
7847
  `;
7789
7848
  };
7790
- m([
7849
+ T([
7791
7850
  {
7792
7851
  type: "object_to_json_v1",
7793
7852
  message0: "%{BKY_OBJECT_V1_TO_JSON_TITLE}",
@@ -7816,7 +7875,7 @@ const Bn = C.xml, na = {
7816
7875
  g.procedure_def_container_v1 = na;
7817
7876
  const oa = {
7818
7877
  init: function() {
7819
- const t = new dt(He.DEFAULT_ARG);
7878
+ const t = new dt(Ge.DEFAULT_ARG);
7820
7879
  t.setValidator(this.validator_), this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_ITEM_TITLE}").appendField(t, "NAME"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("procedure_blocks"), this.contextMenu = !1;
7821
7880
  },
7822
7881
  validator_: function(t) {
@@ -7841,9 +7900,9 @@ const ia = {
7841
7900
  init: function() {
7842
7901
  this.withReturn = !1, this.args = [];
7843
7902
  const t = new dt(
7844
- He.findLegalName("", this)
7903
+ Ge.findLegalName("", this)
7845
7904
  );
7846
- t.setValidator(He.rename), t.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(t, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
7905
+ t.setValidator(Ge.rename), t.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(t, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
7847
7906
  new mt.MutatorIcon(
7848
7907
  ["procedure_def_item_v1"],
7849
7908
  this
@@ -8041,7 +8100,7 @@ ${n}
8041
8100
  `;
8042
8101
  };
8043
8102
  function ao(t) {
8044
- const e = T.resource.spaces.find((i) => i.id === t);
8103
+ const e = E.resource.spaces.find((i) => i.id === t);
8045
8104
  if (!e)
8046
8105
  return [];
8047
8106
  const n = [];
@@ -8063,7 +8122,7 @@ function ra(t) {
8063
8122
  }), k(e);
8064
8123
  }
8065
8124
  function co(t, e) {
8066
- const n = T.resource.spaces.find((i) => i.id === t);
8125
+ const n = E.resource.spaces.find((i) => i.id === t);
8067
8126
  if (!n)
8068
8127
  return [];
8069
8128
  const o = [];
@@ -8079,7 +8138,7 @@ function ua(t, e) {
8079
8138
  }
8080
8139
  function ro() {
8081
8140
  const t = [];
8082
- return T.resource.spaces.forEach((e) => {
8141
+ return E.resource.spaces.forEach((e) => {
8083
8142
  e.resources.length > 0 && t.push(e);
8084
8143
  }), t;
8085
8144
  }
@@ -8138,7 +8197,7 @@ const _a = {
8138
8197
  };
8139
8198
  },
8140
8199
  loadExtraState: function(t) {
8141
- this.space = Me(t.space), this.dir = Me(t.dir), this.resource = Me(t.resource);
8200
+ this.space = Ue(t.space), this.dir = Ue(t.dir), this.resource = Ue(t.resource);
8142
8201
  },
8143
8202
  genSpaceOpts_: function() {
8144
8203
  return la();
@@ -8197,7 +8256,7 @@ ${i}
8197
8256
  }
8198
8257
  `;
8199
8258
  };
8200
- m([
8259
+ T([
8201
8260
  {
8202
8261
  type: "text_v1",
8203
8262
  message0: "%{BKY_TEXT_V1_TEXT_TITLE}",
@@ -8229,7 +8288,7 @@ B.register(
8229
8288
  "VAR"
8230
8289
  )
8231
8290
  );
8232
- m([
8291
+ T([
8233
8292
  {
8234
8293
  type: "text_append_v1",
8235
8294
  message0: "%{BKY_TEXT_V1_APPEND_TITLE}",
@@ -8253,12 +8312,12 @@ m([
8253
8312
  s.forBlock.text_append_v1 = function(t) {
8254
8313
  const e = s.nameDB_?.getName(
8255
8314
  t.getFieldValue("VAR"),
8256
- tt.NameType.VARIABLE
8315
+ it.NameType.VARIABLE
8257
8316
  ), n = s.valueToCode(t, "TEXT", r.NONE) || "''";
8258
8317
  return `${e} += ${oe(n)};
8259
8318
  `;
8260
8319
  };
8261
- m([
8320
+ T([
8262
8321
  {
8263
8322
  type: "text_change_case_v1",
8264
8323
  message0: "%{BKY_TEXT_V1_CHANGE_CASE_TITLE}",
@@ -8304,7 +8363,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(str) {
8304
8363
  `
8305
8364
  ) + "(" + o + ")", [i, r.FUNCTION_CALL];
8306
8365
  };
8307
- m([
8366
+ T([
8308
8367
  {
8309
8368
  type: "text_char_at_v1",
8310
8369
  message0: "%{BKY_TEXT_V1_CHAR_AT_TITLE}",
@@ -8331,7 +8390,7 @@ s.forBlock.text_char_at_v1 = function(t) {
8331
8390
  const e = s.valueToCode(t, "VALUE", r.MEMBER) || "[]", n = s.getAdjusted(t, "AT");
8332
8391
  return [`${e}.charAt(${n})`, r.FUNCTION_CALL];
8333
8392
  };
8334
- m([
8393
+ T([
8335
8394
  {
8336
8395
  type: "text_count_v1",
8337
8396
  message0: "%{BKY_TEXT_V1_COUNT_TITLE}",
@@ -8369,7 +8428,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle) {
8369
8428
  `
8370
8429
  )}(${e}, ${n})`, r.FUNCTION_CALL];
8371
8430
  };
8372
- m([
8431
+ T([
8373
8432
  {
8374
8433
  type: "text_index_of_v1",
8375
8434
  message0: "%{BKY_TEXT_V1_INDEX_OF_TITLE}",
@@ -8404,7 +8463,7 @@ s.forBlock.text_index_of_v1 = function(t) {
8404
8463
  const e = t.getFieldValue("OP") === "FIRST" ? "indexOf" : "lastIndexOf", n = s.valueToCode(t, "TEXT", r.MEMBER) || "''", o = s.valueToCode(t, "SUBSTR", r.NONE) || "''";
8405
8464
  return [`${n}.${e}(${o})`, r.FUNCTION_CALL];
8406
8465
  };
8407
- m([
8466
+ T([
8408
8467
  {
8409
8468
  type: "text_is_empty_v1",
8410
8469
  message0: "%{BKY_TEXT_V1_IS_EMPTY_TITLE}",
@@ -8506,7 +8565,7 @@ B.registerMutator(
8506
8565
  fa,
8507
8566
  ma
8508
8567
  );
8509
- m([
8568
+ T([
8510
8569
  {
8511
8570
  type: "text_join_v1",
8512
8571
  message0: "",
@@ -8561,7 +8620,7 @@ s.forBlock.text_join_v1 = function(t) {
8561
8620
  }
8562
8621
  }
8563
8622
  };
8564
- m([
8623
+ T([
8565
8624
  {
8566
8625
  type: "text_length_v1",
8567
8626
  message0: "%{BKY_TEXT_V1_LENGTH_TITLE}",
@@ -8581,7 +8640,7 @@ m([
8581
8640
  s.forBlock.text_length_v1 = function(t) {
8582
8641
  return [`${s.valueToCode(t, "VALUE", r.MEMBER) || "''"}.length`, r.MEMBER];
8583
8642
  };
8584
- m([
8643
+ T([
8585
8644
  {
8586
8645
  type: "text_replace_v1",
8587
8646
  message0: "%{BKY_TEXT_V1_REPLACE_TITLE}",
@@ -8622,7 +8681,7 @@ function ${s.FUNCTION_NAME_PLACEHOLDER_}(haystack, needle, replacement) {
8622
8681
  `
8623
8682
  )}(${e}, ${n}, ${o})`, r.FUNCTION_CALL];
8624
8683
  };
8625
- m([
8684
+ T([
8626
8685
  {
8627
8686
  type: "text_reverse_v1",
8628
8687
  message0: "%{BKY_TEXT_V1_REVERSE_TITLE}",
@@ -8643,7 +8702,7 @@ m([
8643
8702
  s.forBlock.text_reverse_v1 = function(t) {
8644
8703
  return [(s.valueToCode(t, "TEXT", r.MEMBER) || "''") + ".split('').reverse().join('')", r.FUNCTION_CALL];
8645
8704
  };
8646
- m([
8705
+ T([
8647
8706
  {
8648
8707
  type: "text_split_v1",
8649
8708
  message0: "%{BKY_TEXT_V1_SPLIT_TITLE}",
@@ -8670,7 +8729,7 @@ s.forBlock.text_split_v1 = function(t) {
8670
8729
  const e = s.valueToCode(t, "TEXT", r.MEMBER) || "''", n = s.valueToCode(t, "DELIM", r.NONE) || "''";
8671
8730
  return [`${e}.split(${n})`, r.FUNCTION_CALL];
8672
8731
  };
8673
- m([
8732
+ T([
8674
8733
  {
8675
8734
  type: "text_substring_v1",
8676
8735
  message0: "%{BKY_TEXT_V1_SUBSTRING_TITLE}",
@@ -8702,7 +8761,7 @@ s.forBlock.text_substring_v1 = function(t) {
8702
8761
  const e = s.valueToCode(t, "TEXT", r.MEMBER) || "''", n = s.getAdjusted(t, "START"), o = s.getAdjusted(t, "END", 1);
8703
8762
  return [`${e}.slice(${n}, ${o})`, r.FUNCTION_CALL];
8704
8763
  };
8705
- m([
8764
+ T([
8706
8765
  {
8707
8766
  type: "text_trim_v1",
8708
8767
  message0: "%{BKY_TEXT_V1_TRIM_TITLE}",
@@ -8769,7 +8828,7 @@ s.forBlock.create_timer_v1 = function(t) {
8769
8828
  ${a}});
8770
8829
  `;
8771
8830
  };
8772
- m([
8831
+ T([
8773
8832
  {
8774
8833
  type: "delay_v1",
8775
8834
  message0: "%{BKY_TIME_V1_DELAY_TITLE}",
@@ -8796,11 +8855,11 @@ const Ea = {
8796
8855
  if (this.isInFlyout) {
8797
8856
  if (this.type === "variable_get_v1") {
8798
8857
  const e = {
8799
- text: h("RENAME_VARIABLE"),
8858
+ text: f("RENAME_VARIABLE"),
8800
8859
  enabled: !0,
8801
8860
  callback: ga(this)
8802
8861
  }, n = this.getField("VAR").getText(), o = {
8803
- text: h("DELETE_VARIABLE").replace("%1", n),
8862
+ text: f("DELETE_VARIABLE").replace("%1", n),
8804
8863
  enabled: !0,
8805
8864
  callback: Aa(this)
8806
8865
  };
@@ -8808,7 +8867,7 @@ const Ea = {
8808
8867
  }
8809
8868
  } else {
8810
8869
  let e, n;
8811
- this.type === "variable_get_v1" ? (e = "variable_set_v1", n = h("VARIABLE_GET_CREATE_SET")) : this.type === "variable_set_v1" ? (e = "variable_get_v1", n = h("VARIABLE_SET_CREATE_GET")) : console.assert(!1);
8870
+ this.type === "variable_get_v1" ? (e = "variable_set_v1", n = f("VARIABLE_GET_CREATE_SET")) : this.type === "variable_set_v1" ? (e = "variable_get_v1", n = f("VARIABLE_SET_CREATE_GET")) : console.assert(!1);
8812
8871
  const o = this.getField("VAR"), i = {
8813
8872
  type: e,
8814
8873
  fields: { VAR: o.saveState(!0) }
@@ -8835,7 +8894,7 @@ B.registerMixin(
8835
8894
  "context_menu_variable_v1",
8836
8895
  Ea
8837
8896
  );
8838
- m([
8897
+ T([
8839
8898
  {
8840
8899
  type: "variable_get_v1",
8841
8900
  message0: "%1",
@@ -8855,10 +8914,10 @@ m([
8855
8914
  s.forBlock.variable_get_v1 = function(t) {
8856
8915
  return [s.nameDB_.getName(
8857
8916
  t.getFieldValue("VAR"),
8858
- tt.NameType.VARIABLE
8917
+ it.NameType.VARIABLE
8859
8918
  ), r.ATOMIC];
8860
8919
  };
8861
- m([
8920
+ T([
8862
8921
  {
8863
8922
  type: "variable_set_v1",
8864
8923
  message0: "%{BKY_VARIABLE_V1_SET_TITLE}",
@@ -8884,7 +8943,7 @@ m([
8884
8943
  s.forBlock.variable_set_v1 = function(t) {
8885
8944
  const e = s.nameDB_.getName(
8886
8945
  t.getFieldValue("VAR"),
8887
- tt.NameType.VARIABLE
8946
+ it.NameType.VARIABLE
8888
8947
  ), n = s.valueToCode(t, "VALUE", r.ASSIGNMENT) || "0";
8889
8948
  return `${e} = ${n};
8890
8949
  `;
@@ -8923,7 +8982,7 @@ Qt.getText_ = function() {
8923
8982
  if (this.name === "ELEMENT")
8924
8983
  return e.element.name;
8925
8984
  if (this.name === "NODE") {
8926
- const n = q[e.node.key];
8985
+ const n = Z[e.node.key];
8927
8986
  if (n) {
8928
8987
  const o = t.global.t(n.name), i = e.node.alias;
8929
8988
  return `${o} / ${i}`;
@@ -8933,7 +8992,7 @@ Qt.getText_ = function() {
8933
8992
  return Kn(n, o);
8934
8993
  } else if (this.name === "EVENT") {
8935
8994
  const { kind: n, names: o } = e.event;
8936
- return console.log(e.event), Ie(n, o);
8995
+ return console.log(e.event), Oe(n, o);
8937
8996
  } else if (this.name === "METHOD") {
8938
8997
  const { kind: n, names: o } = e.method;
8939
8998
  return on(n, o);
@@ -9213,7 +9272,7 @@ function La(t) {
9213
9272
  break;
9214
9273
  }
9215
9274
  }
9216
- const Ze = ["get_app_property_v1", "get_app_state_v1"];
9275
+ const tn = ["get_app_property_v1", "get_app_state_v1"];
9217
9276
  function ut(t, e) {
9218
9277
  return t.find((o) => o === e) !== void 0 ? !1 : (t.push(e), !0);
9219
9278
  }
@@ -9221,7 +9280,7 @@ function Sa(t) {
9221
9280
  const e = [];
9222
9281
  function n(o) {
9223
9282
  for (const i of o.getChildren(!0))
9224
- Ze.includes(i.type) && e.push(i), n(i);
9283
+ tn.includes(i.type) && e.push(i), n(i);
9225
9284
  }
9226
9285
  return n(t), e;
9227
9286
  }
@@ -9244,11 +9303,11 @@ function Ba(t) {
9244
9303
  function ba(t) {
9245
9304
  const e = [];
9246
9305
  for (const n of t.getChildren(!0))
9247
- if (Ze.includes(n.type))
9306
+ if (tn.includes(n.type))
9248
9307
  e.push(n);
9249
9308
  else if (n.type === "object_get_v1") {
9250
9309
  const o = n.getInputTargetBlock("OBJECT");
9251
- o && Ze.includes(o.type) && e.push(n);
9310
+ o && tn.includes(o.type) && e.push(n);
9252
9311
  }
9253
9312
  return e;
9254
9313
  }
@@ -9348,7 +9407,7 @@ function Da(t) {
9348
9407
  function _n() {
9349
9408
  return Qo(_o);
9350
9409
  }
9351
- const Ma = /* @__PURE__ */ st({
9410
+ const Ma = /* @__PURE__ */ ct({
9352
9411
  __name: "index",
9353
9412
  props: {
9354
9413
  lock: { type: Boolean }
@@ -9369,11 +9428,11 @@ const Ma = /* @__PURE__ */ st({
9369
9428
  };
9370
9429
  return e({ cleanWorkspace: a }), (u, l) => {
9371
9430
  const _ = D("v-btn"), d = D("v-tooltip");
9372
- return S(), et(d, {
9431
+ return S(), st(d, {
9373
9432
  text: R(n)("x-block-lib.tip.hotkeyCtrlQ")
9374
9433
  }, {
9375
- activator: nt(({ props: f }) => [
9376
- L(_, an(f, {
9434
+ activator: at(({ props: h }) => [
9435
+ L(_, an(h, {
9377
9436
  density: "comfortable",
9378
9437
  icon: "mdi-broom",
9379
9438
  variant: "outlined",
@@ -9384,7 +9443,7 @@ const Ma = /* @__PURE__ */ st({
9384
9443
  }, 8, ["text"]);
9385
9444
  };
9386
9445
  }
9387
- }), Ua = /* @__PURE__ */ st({
9446
+ }), Ua = /* @__PURE__ */ ct({
9388
9447
  __name: "index",
9389
9448
  props: {
9390
9449
  modelValue: { type: Boolean, required: !0 },
@@ -9395,10 +9454,10 @@ const Ma = /* @__PURE__ */ st({
9395
9454
  const { t: e } = Xt(), n = Kt(t, "modelValue");
9396
9455
  return (o, i) => {
9397
9456
  const a = D("v-btn"), c = D("v-tooltip");
9398
- return S(), et(c, {
9457
+ return S(), st(c, {
9399
9458
  text: R(e)("x-block-lib.tip.hotkeyCtrlW")
9400
9459
  }, {
9401
- activator: nt(({ props: u }) => [
9460
+ activator: at(({ props: u }) => [
9402
9461
  L(a, an(u, {
9403
9462
  density: "comfortable",
9404
9463
  icon: n.value ? "mdi-lock" : "mdi-lock-open",
@@ -9414,7 +9473,7 @@ const Ma = /* @__PURE__ */ st({
9414
9473
  key: 0,
9415
9474
  class: "text-cation text-grey text-truncate ml-6",
9416
9475
  style: { maxWidth: "340px" }
9417
- }, Fa = /* @__PURE__ */ st({
9476
+ }, Fa = /* @__PURE__ */ ct({
9418
9477
  __name: "item",
9419
9478
  props: {
9420
9479
  id: {},
@@ -9441,24 +9500,24 @@ const Ma = /* @__PURE__ */ st({
9441
9500
  border: "1px solid " + n.value,
9442
9501
  pointerEvents: "none"
9443
9502
  }));
9444
- return (d, f) => {
9445
- const p = D("v-spacer"), E = D("v-icon"), A = zo("ripple");
9446
- return Zo((S(), J("div", {
9503
+ return (d, h) => {
9504
+ const p = D("v-spacer"), m = D("v-icon"), A = zo("ripple");
9505
+ return Zo((S(), z("div", {
9447
9506
  class: "d-flex align-center cursor-pointer",
9448
9507
  style: G(l.value),
9449
- onClick: f[1] || (f[1] = (P) => c("x-click", a.id)),
9450
- onMouseout: f[2] || (f[2] = (P) => u.value = !1),
9451
- onMouseover: f[3] || (f[3] = (P) => u.value = !0)
9508
+ onClick: h[1] || (h[1] = (P) => c("x-click", a.id)),
9509
+ onMouseout: h[2] || (h[2] = (P) => u.value = !1),
9510
+ onMouseover: h[3] || (h[3] = (P) => u.value = !0)
9452
9511
  }, [
9453
9512
  w("div", Va, [
9454
9513
  w("span", xa, $t(a.title), 1),
9455
- a.desc ? (S(), J("span", Ya, $t(a.desc), 1)) : ct("", !0)
9514
+ a.desc ? (S(), z("span", Ya, $t(a.desc), 1)) : rt("", !0)
9456
9515
  ]),
9457
9516
  L(p),
9458
- L(E, {
9517
+ L(m, {
9459
9518
  class: "x-handle cursor-move mr-3",
9460
9519
  icon: "mdi-drag-horizontal-variant",
9461
- onMousedown: f[0] || (f[0] = Ft(() => {
9520
+ onMousedown: h[0] || (h[0] = Ft(() => {
9462
9521
  }, ["stop"]))
9463
9522
  }),
9464
9523
  w("div", {
@@ -9472,9 +9531,9 @@ const Ma = /* @__PURE__ */ st({
9472
9531
  }), wa = {
9473
9532
  key: 1,
9474
9533
  class: "text-caption text-grey"
9475
- }, Ka = /* @__PURE__ */ st({
9534
+ }, Ka = /* @__PURE__ */ ct({
9476
9535
  __name: "index",
9477
- props: /* @__PURE__ */ Ge({
9536
+ props: /* @__PURE__ */ We({
9478
9537
  lock: { type: Boolean }
9479
9538
  }, {
9480
9539
  modelValue: { type: Boolean, required: !0 },
@@ -9493,8 +9552,8 @@ const Ma = /* @__PURE__ */ st({
9493
9552
  const P = A.id === Vo()?.id;
9494
9553
  let U = "";
9495
9554
  if (A.type.startsWith("on_app_event_v")) {
9496
- const z = A, vt = q[z.node.key];
9497
- vt && (U = n(vt.name), z.node.alias && (U += " / " + z.node.alias), U += " - " + Ie(z.event.kind, z.event.names));
9555
+ const et = A, vt = Z[et.node.key];
9556
+ vt && (U = n(vt.name), et.node.alias && (U += " / " + et.node.alias), U += " - " + Oe(et.event.kind, et.event.names));
9498
9557
  } else A.type.startsWith("watch_effect_v") ? U = n("x-block-lib.watchEffect") : A.type.startsWith("app_bind_v") ? U = n("x-block-lib.bind") : A.type.startsWith("func_entry_v") ? U = n("x-block-lib.funcEntry") : A.type.startsWith("procedure_def_v") ? U = n("x-block-lib.procedure") + " - " + A.getFieldValue("NAME") : U = n("x-block-lib.temporaryBlock");
9499
9558
  const gt = A.getCommentText() ?? "";
9500
9559
  p.push({
@@ -9512,8 +9571,8 @@ const Ma = /* @__PURE__ */ st({
9512
9571
  return;
9513
9572
  }
9514
9573
  const p = [];
9515
- a.value.forEach(({ id: E }) => {
9516
- p.push(E);
9574
+ a.value.forEach(({ id: m }) => {
9575
+ p.push(m);
9517
9576
  }), u = p;
9518
9577
  }, _ = () => !t.lock, d = (p) => {
9519
9578
  if (!i.workspace) {
@@ -9526,8 +9585,8 @@ const Ma = /* @__PURE__ */ st({
9526
9585
  }
9527
9586
  if (p.oldIndex === p.newIndex)
9528
9587
  return;
9529
- const E = u[p.oldIndex], A = i.workspace.getBlockById(
9530
- E
9588
+ const m = u[p.oldIndex], A = i.workspace.getBlockById(
9589
+ m
9531
9590
  );
9532
9591
  if (!A) {
9533
9592
  console.assert(!1);
@@ -9541,18 +9600,18 @@ const Ma = /* @__PURE__ */ st({
9541
9600
  ).getRelativeToSurfaceXY().y + 10);
9542
9601
  const gt = A.getRelativeToSurfaceXY();
9543
9602
  A.moveTo(new C.Coordinate(gt.x, U)), i.workspace.cleanUp(), lo();
9544
- }, f = async (p) => {
9603
+ }, h = async (p) => {
9545
9604
  if (!i.workspace) {
9546
9605
  console.assert(!1);
9547
9606
  return;
9548
9607
  }
9549
- const E = i.workspace.getBlockById(p);
9550
- Yn.setSelected(E), ln(p), o.value = !1;
9608
+ const m = i.workspace.getBlockById(p);
9609
+ Yn.setSelected(m), ln(p), o.value = !1;
9551
9610
  };
9552
- return (p, E) => a.value.length > 0 ? (S(), et(R(Uo), {
9611
+ return (p, m) => a.value.length > 0 ? (S(), st(R(Uo), {
9553
9612
  key: 0,
9554
9613
  modelValue: a.value,
9555
- "onUpdate:modelValue": E[0] || (E[0] = (A) => a.value = A),
9614
+ "onUpdate:modelValue": m[0] || (m[0] = (A) => a.value = A),
9556
9615
  animation: 150,
9557
9616
  "ghost-class": "ghost",
9558
9617
  handle: ".x-handle",
@@ -9560,25 +9619,25 @@ const Ma = /* @__PURE__ */ st({
9560
9619
  onMove: _,
9561
9620
  onStart: l
9562
9621
  }, {
9563
- default: nt(() => [
9564
- (S(!0), J(Hn, null, ti(a.value, (A) => (S(), et(Fa, {
9622
+ default: at(() => [
9623
+ (S(!0), z(Hn, null, ti(a.value, (A) => (S(), st(Fa, {
9565
9624
  id: A.id,
9566
9625
  key: A.id,
9567
9626
  desc: A.desc,
9568
9627
  select: A.select,
9569
9628
  title: A.name,
9570
- onXClick: f
9629
+ onXClick: h
9571
9630
  }, null, 8, ["id", "desc", "select", "title"]))), 128))
9572
9631
  ]),
9573
9632
  _: 1
9574
- }, 8, ["modelValue"])) : (S(), J("span", wa, $t(R(n)("x-block-lib.noOption")), 1));
9633
+ }, 8, ["modelValue"])) : (S(), z("span", wa, $t(R(n)("x-block-lib.noOption")), 1));
9575
9634
  }
9576
9635
  }), $a = (t, e) => {
9577
9636
  const n = t.__vccOpts || t;
9578
9637
  for (const [o, i] of e)
9579
9638
  n[o] = i;
9580
9639
  return n;
9581
- }, Ha = /* @__PURE__ */ $a(Ka, [["__scopeId", "data-v-6cb62cd6"]]), Ga = /* @__PURE__ */ st({
9640
+ }, Ha = /* @__PURE__ */ $a(Ka, [["__scopeId", "data-v-6cb62cd6"]]), Ga = /* @__PURE__ */ ct({
9582
9641
  __name: "index",
9583
9642
  props: {
9584
9643
  modelValue: { type: Boolean, required: !0 },
@@ -9602,11 +9661,11 @@ const Ma = /* @__PURE__ */ st({
9602
9661
  const l = u.getBlockById(c);
9603
9662
  Yn.setSelected(l), ln(c), n.value = !1;
9604
9663
  };
9605
- return (c, u) => (S(), J("div", {
9664
+ return (c, u) => (S(), z("div", {
9606
9665
  onClick: u[0] || (u[0] = (l) => a(""))
9607
9666
  }, "blockTree"));
9608
9667
  }
9609
- }), Wa = { class: "text-subtitle-1" }, ja = /* @__PURE__ */ st({
9668
+ }), Wa = { class: "text-subtitle-1" }, ja = /* @__PURE__ */ ct({
9610
9669
  __name: "index",
9611
9670
  props: {
9612
9671
  type: {},
@@ -9614,31 +9673,31 @@ const Ma = /* @__PURE__ */ st({
9614
9673
  },
9615
9674
  setup(t, { expose: e }) {
9616
9675
  const { t: n } = Xt(), o = ii(), { sysBarAvail: i } = wn(), { backgroundColor1: a } = jt(), c = F(() => {
9617
- let E = "100%";
9618
- return o.mdAndUp.value && (E = "400px"), {
9676
+ let m = "100%";
9677
+ return o.mdAndUp.value && (m = "400px"), {
9619
9678
  background: a.value,
9620
- width: E,
9679
+ width: m,
9621
9680
  height: "100%"
9622
9681
  };
9623
9682
  }), u = F(() => {
9624
- let E = 48;
9625
- return i.value && (E += 24), {
9683
+ let m = 48;
9684
+ return i.value && (m += 24), {
9626
9685
  position: "relative",
9627
- height: `calc(100% - ${E}px)`
9686
+ height: `calc(100% - ${m}px)`
9628
9687
  };
9629
9688
  }), l = F(() => ({
9630
9689
  height: "60px"
9631
- })), { open: _ } = tn(`blocklyNavigatorDlg${We()}`);
9690
+ })), { open: _ } = en(`blocklyNavigatorDlg${je()}`);
9632
9691
  ei(() => {
9633
9692
  _.value = !1;
9634
9693
  });
9635
- const d = wt("blockList"), f = wt("blockTree");
9694
+ const d = wt("blockList"), h = wt("blockTree");
9636
9695
  return e({ open: _, update: () => {
9637
- t.type === "list" ? d.value?.update() : t.type === "tree" && f.value?.update();
9638
- } }), (E, A) => {
9639
- const P = D("v-sheet"), U = D("v-btn"), gt = D("v-spacer"), z = D("v-dialog"), vt = D("v-tooltip");
9640
- return S(), J(Hn, null, [
9641
- L(z, {
9696
+ t.type === "list" ? d.value?.update() : t.type === "tree" && h.value?.update();
9697
+ } }), (m, A) => {
9698
+ const P = D("v-sheet"), U = D("v-btn"), gt = D("v-spacer"), et = D("v-dialog"), vt = D("v-tooltip");
9699
+ return S(), z(Hn, null, [
9700
+ L(et, {
9642
9701
  modelValue: R(_),
9643
9702
  "onUpdate:modelValue": A[5] || (A[5] = (H) => ne(_) ? _.value = H : null),
9644
9703
  eager: "",
@@ -9648,7 +9707,7 @@ const Ma = /* @__PURE__ */ st({
9648
9707
  transition: "scroll-x-reverse-transition",
9649
9708
  onKeydown: A[6] || (A[6] = Gn(Ft((H) => _.value = !1, ["stop", "prevent"]), ["esc"]))
9650
9709
  }, {
9651
- default: nt(() => [
9710
+ default: at(() => [
9652
9711
  w("div", {
9653
9712
  class: "w-100 h-100 d-flex flex-row-reverse",
9654
9713
  onClick: A[3] || (A[3] = Ft((H) => _.value = !1, ["self"])),
@@ -9658,17 +9717,17 @@ const Ma = /* @__PURE__ */ st({
9658
9717
  class: "elevation-2",
9659
9718
  style: G(c.value)
9660
9719
  }, [
9661
- R(i) ? (S(), et(P, {
9720
+ R(i) ? (S(), st(P, {
9662
9721
  key: 0,
9663
9722
  color: "transparent",
9664
9723
  height: 24
9665
- })) : ct("", !0),
9724
+ })) : rt("", !0),
9666
9725
  L(P, {
9667
9726
  class: "d-flex align-center px-2",
9668
9727
  color: "transparent",
9669
9728
  height: 48
9670
9729
  }, {
9671
- default: nt(() => [
9730
+ default: at(() => [
9672
9731
  L(U, {
9673
9732
  density: "comfortable",
9674
9733
  icon: "mdi-close",
@@ -9684,20 +9743,20 @@ const Ma = /* @__PURE__ */ st({
9684
9743
  class: "overflow-y-auto",
9685
9744
  style: G(u.value)
9686
9745
  }, [
9687
- t.type === "list" ? (S(), et(Ha, {
9746
+ t.type === "list" ? (S(), st(Ha, {
9688
9747
  key: 0,
9689
9748
  ref_key: "blockList",
9690
9749
  ref: d,
9691
9750
  modelValue: R(_),
9692
9751
  "onUpdate:modelValue": A[1] || (A[1] = (H) => ne(_) ? _.value = H : null),
9693
9752
  lock: t.lock
9694
- }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (S(), et(Ga, {
9753
+ }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (S(), st(Ga, {
9695
9754
  key: 1,
9696
9755
  ref_key: "blockTree",
9697
- ref: f,
9756
+ ref: h,
9698
9757
  modelValue: R(_),
9699
9758
  "onUpdate:modelValue": A[2] || (A[2] = (H) => ne(_) ? _.value = H : null)
9700
- }, null, 8, ["modelValue"])) : ct("", !0),
9759
+ }, null, 8, ["modelValue"])) : rt("", !0),
9701
9760
  w("div", {
9702
9761
  style: G(l.value)
9703
9762
  }, null, 4)
@@ -9710,7 +9769,7 @@ const Ma = /* @__PURE__ */ st({
9710
9769
  L(vt, {
9711
9770
  text: R(n)("x-block-lib.tip.hotkeyCtrlE")
9712
9771
  }, {
9713
- activator: nt(({ props: H }) => [
9772
+ activator: at(({ props: H }) => [
9714
9773
  L(U, an(H, {
9715
9774
  density: "comfortable",
9716
9775
  icon: "mdi-navigation-variant",
@@ -9775,24 +9834,24 @@ function Xa(t, e) {
9775
9834
  return i.appendChild(a), o.appendChild(i), n.appendChild(o), n;
9776
9835
  }
9777
9836
  function Ja() {
9778
- return T.app.activeObject.type === "comp" && T.app.activeComp.meta.events.length > 0;
9837
+ return E.app.activeObject.type === "comp" && E.app.activeComp.meta.events.length > 0;
9779
9838
  }
9780
9839
  function qa() {
9781
- return T.app.activeObject.type === "comp" && T.app.activeComp.meta.states.length > 0;
9840
+ return E.app.activeObject.type === "comp" && E.app.activeComp.meta.states.length > 0;
9782
9841
  }
9783
9842
  function Rn() {
9784
- return T.app.activeObject.type === "comp" && T.app.activeComp.meta.methods.length > 0;
9843
+ return E.app.activeObject.type === "comp" && E.app.activeComp.meta.methods.length > 0;
9785
9844
  }
9786
9845
  function Qa() {
9787
9846
  const t = [];
9788
- return t.push(V(h("LABEL_EVENT"))), W("onEvent") && t.push(y("on_app_event_v1")), Ja() && t.push(y("trigger_app_event_v1")), t.push(
9847
+ return t.push(V(f("LABEL_EVENT"))), W("onEvent") && t.push(y("on_app_event_v1")), Ja() && t.push(y("trigger_app_event_v1")), t.push(
9789
9848
  y("app_bind_v1", [po([{ key: "items", value: "2" }])])
9790
- ), t.push(y("watch_effect_v1")), (W("getProperty") || W("setProperty")) && t.push(V(h("LABEL_PROPERTY"))), W("getProperty") && t.push(y("get_app_property_v1")), W("setProperty") && t.push(y("set_app_property_v1")), qa() && (t.push(V(h("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), (W("callMethod") || Rn()) && t.push(V(h("LABEL_METHOD"))), W("callMethod") && t.push(y("call_app_method_v1")), Rn() && (t.push(y("impl_app_method_v1")), t.push(y("set_app_method_output_v1")), t.push(y("procedure_return_v1"))), t;
9849
+ ), t.push(y("watch_effect_v1")), (W("getProperty") || W("setProperty")) && t.push(V(f("LABEL_PROPERTY"))), W("getProperty") && t.push(y("get_app_property_v1")), W("setProperty") && t.push(y("set_app_property_v1")), qa() && (t.push(V(f("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), (W("callMethod") || Rn()) && t.push(V(f("LABEL_METHOD"))), W("callMethod") && t.push(y("call_app_method_v1")), Rn() && (t.push(y("impl_app_method_v1")), t.push(y("set_app_method_output_v1")), t.push(y("procedure_return_v1"))), t;
9791
9850
  }
9792
9851
  const ho = { name: "APP_COMP_CATEGORY", callback: Qa };
9793
9852
  function za() {
9794
9853
  const t = [];
9795
- return t.push(V(h("LABEL_FUNC"))), t.push(V(h("LABEL_FLOW"))), t;
9854
+ return t.push(V(f("LABEL_FUNC"))), t.push(V(f("LABEL_FLOW"))), t;
9796
9855
  }
9797
9856
  const pe = { name: "APP_COMPUTE_CATEGORY", callback: za };
9798
9857
  function Za() {
@@ -9801,7 +9860,7 @@ function Za() {
9801
9860
  }
9802
9861
  const de = { name: "APP_MESSAGE_CATEGORY", callback: Za };
9803
9862
  function tc() {
9804
- for (const t of T.app.appList)
9863
+ for (const t of E.app.appList)
9805
9864
  if (t.pages.length > 0)
9806
9865
  return !0;
9807
9866
  return !1;
@@ -9812,21 +9871,21 @@ function ec() {
9812
9871
  }
9813
9872
  const he = { name: "APP_MISC_CATEGORY", callback: ec };
9814
9873
  function nc() {
9815
- return T.app.activeObject.type === "page" && T.app.activePage.meta.states.length > 0;
9874
+ return E.app.activeObject.type === "page" && E.app.activePage.meta.states.length > 0;
9816
9875
  }
9817
9876
  function oc() {
9818
- return T.app.activeObject.type === "page" && T.app.activePage.meta.arguments.length > 0;
9877
+ return E.app.activeObject.type === "page" && E.app.activePage.meta.arguments.length > 0;
9819
9878
  }
9820
9879
  function ic() {
9821
9880
  const t = [];
9822
- return t.push(V(h("LABEL_EVENT"))), W("onEvent") && t.push(y("on_app_event_v1")), t.push(
9881
+ return t.push(V(f("LABEL_EVENT"))), W("onEvent") && t.push(y("on_app_event_v1")), t.push(
9823
9882
  y("app_bind_v1", [po([{ key: "items", value: "2" }])])
9824
- ), t.push(y("watch_effect_v1")), (W("getProperty") || W("setProperty")) && t.push(V(h("LABEL_PROPERTY"))), W("getProperty") && t.push(y("get_app_property_v1")), W("setProperty") && t.push(y("set_app_property_v1")), nc() && (t.push(V(h("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), W("callMethod") && (t.push(V(h("LABEL_METHOD"))), t.push(y("call_app_method_v1"))), oc() && (t.push(V(h("LABEL_ARGUMENT"))), t.push(y("get_page_argument_v1"))), t;
9883
+ ), t.push(y("watch_effect_v1")), (W("getProperty") || W("setProperty")) && t.push(V(f("LABEL_PROPERTY"))), W("getProperty") && t.push(y("get_app_property_v1")), W("setProperty") && t.push(y("set_app_property_v1")), nc() && (t.push(V(f("LABEL_STATE"))), t.push(y("get_app_state_v1")), t.push(y("set_app_state_v1"))), W("callMethod") && (t.push(V(f("LABEL_METHOD"))), t.push(y("call_app_method_v1"))), oc() && (t.push(V(f("LABEL_ARGUMENT"))), t.push(y("get_page_argument_v1"))), t;
9825
9884
  }
9826
9885
  const fo = { name: "APP_PAGE_CATEGORY", callback: ic };
9827
9886
  function sc() {
9828
9887
  const t = [];
9829
- return t.push(V(h("LABEL_RESOURCE"))), t.push(y("upload_resource_v1")), t;
9888
+ return t.push(V(f("LABEL_RESOURCE"))), t.push(y("upload_resource_v1")), t;
9830
9889
  }
9831
9890
  const fe = { name: "APP_RESOURCE_CATEGORY", callback: sc }, xt = C.xml;
9832
9891
  function ac() {
@@ -9841,7 +9900,7 @@ function ac() {
9841
9900
  {
9842
9901
  const n = xt.createElement("field");
9843
9902
  n.setAttribute("name", "NAME");
9844
- const o = xt.createTextNode(h("PROCEDURE_DEFAULT_NAME"));
9903
+ const o = xt.createTextNode(f("PROCEDURE_DEFAULT_NAME"));
9845
9904
  n.appendChild(o), e.appendChild(n);
9846
9905
  }
9847
9906
  t.push(e);
@@ -9879,7 +9938,7 @@ function cc() {
9879
9938
  n.sort(kt.compareByName);
9880
9939
  {
9881
9940
  const o = te.createElement("label");
9882
- o.setAttribute("text", h("LABEL_CREATED")), e.push(o);
9941
+ o.setAttribute("text", f("LABEL_CREATED")), e.push(o);
9883
9942
  }
9884
9943
  return n.forEach((o) => {
9885
9944
  {
@@ -9898,10 +9957,10 @@ const _t = {
9898
9957
  };
9899
9958
  function rc() {
9900
9959
  const t = [];
9901
- if (Q().length > 0)
9902
- t.push(V(h("LABEL_OPERATION"))), t.push(y("add_data_v1")), t.push(y("delete_data_v1")), t.push(y("update_data_v1")), t.push(y("query_data_v1")), t.push(y("transaction_v1")), t.push(
9960
+ if (tt().length > 0)
9961
+ t.push(V(f("LABEL_OPERATION"))), t.push(y("add_data_v1")), t.push(y("delete_data_v1")), t.push(y("update_data_v1")), t.push(y("query_data_v1")), t.push(y("transaction_v1")), t.push(
9903
9962
  y("interrupt_transaction_v1", [Bt("VALUE")])
9904
- ), t.push(V(h("LABEL_CONDITION"))), t.push(y("cond_logic_v1")), t.push(y("cond_atomic_v1", [Bt("VALUE")])), t.push(V(h("LABEL_QUERY_EXTRA"))), t.push(
9963
+ ), t.push(V(f("LABEL_CONDITION"))), t.push(y("cond_logic_v1")), t.push(y("cond_atomic_v1", [Bt("VALUE")])), t.push(V(f("LABEL_QUERY_EXTRA"))), t.push(
9905
9964
  y("query_extra_limit_v1", [
9906
9965
  Pn("OFFSET", 0),
9907
9966
  Pn("LIMIT", 1)
@@ -9914,7 +9973,7 @@ function rc() {
9914
9973
  );
9915
9974
  else {
9916
9975
  const e = document.createElement("button");
9917
- e.setAttribute("text", h("BUTTON_NO_TABLE")), e.setAttribute("callbackKey", "NO_TABLE"), t.push(e);
9976
+ e.setAttribute("text", f("BUTTON_NO_TABLE")), e.setAttribute("callbackKey", "NO_TABLE"), t.push(e);
9918
9977
  }
9919
9978
  return t;
9920
9979
  }
@@ -9924,7 +9983,7 @@ function uc() {
9924
9983
  }
9925
9984
  function lc() {
9926
9985
  const t = [];
9927
- return T.compute.activeObject.type === "flow" && t.push(y("on_flow_state_event_v1")), uc() && console.assert(!0), t;
9986
+ return E.compute.activeObject.type === "flow" && t.push(y("on_flow_state_event_v1")), uc() && console.assert(!0), t;
9928
9987
  }
9929
9988
  const Te = { name: "COMPUTE_FLOW_CATEGORY", callback: lc };
9930
9989
  function _c() {
@@ -9932,7 +9991,7 @@ function _c() {
9932
9991
  }
9933
9992
  function pc() {
9934
9993
  const t = [];
9935
- return T.compute.activeObject.type === "func" && (t.push(y("func_entry_v1")), T.compute.activeFunc.outputs.length > 0 && t.push(y("set_func_output_v1")), t.push(y("procedure_return_v1"))), _c() && t.push(y("call_func_internal_v1")), t;
9994
+ return E.compute.activeObject.type === "func" && (t.push(y("func_entry_v1")), E.compute.activeFunc.outputs.length > 0 && t.push(y("set_func_output_v1")), t.push(y("procedure_return_v1"))), _c() && t.push(y("call_func_internal_v1")), t;
9936
9995
  }
9937
9996
  const Ee = { name: "COMPUTE_FUNC_CATEGORY", callback: pc };
9938
9997
  function dc() {
@@ -9941,7 +10000,7 @@ function dc() {
9941
10000
  y("compute_debug_trace_v1", [Bt("OBJECT")])
9942
10001
  ), t;
9943
10002
  }
9944
- const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10003
+ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Le = {
9945
10004
  kind: "category",
9946
10005
  name: "%{BKY_CATEGORY_COLOR}",
9947
10006
  categorystyle: "color_category",
@@ -10015,7 +10074,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10015
10074
  }
10016
10075
  }
10017
10076
  ]
10018
- }, Le = {
10077
+ }, Se = {
10019
10078
  kind: "category",
10020
10079
  name: "%{BKY_CATEGORY_LIST}",
10021
10080
  categorystyle: "list_category",
@@ -10130,7 +10189,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10130
10189
  type: "list_reverse_v1"
10131
10190
  }
10132
10191
  ]
10133
- }, Se = {
10192
+ }, Be = {
10134
10193
  kind: "category",
10135
10194
  name: "%{BKY_CATEGORY_LOGIC}",
10136
10195
  categorystyle: "logic_category",
@@ -10172,7 +10231,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10172
10231
  type: "logic_ternary_v1"
10173
10232
  }
10174
10233
  ]
10175
- }, Be = {
10234
+ }, be = {
10176
10235
  kind: "category",
10177
10236
  name: "%{BKY_CATEGORY_LOOP}",
10178
10237
  categorystyle: "loop_category",
@@ -10234,7 +10293,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10234
10293
  type: "flow_control_v1"
10235
10294
  }
10236
10295
  ]
10237
- }, be = {
10296
+ }, Pe = {
10238
10297
  kind: "category",
10239
10298
  name: "%{BKY_CATEGORY_MATH}",
10240
10299
  categorystyle: "math_category",
@@ -10389,7 +10448,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10389
10448
  type: "math_on_list_v1"
10390
10449
  }
10391
10450
  ]
10392
- }, Pe = {
10451
+ }, Re = {
10393
10452
  kind: "category",
10394
10453
  name: "%{BKY_CATEGORY_OBJECT}",
10395
10454
  categorystyle: "object_category",
@@ -10457,7 +10516,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10457
10516
  }
10458
10517
  }
10459
10518
  ]
10460
- }, Re = {
10519
+ }, De = {
10461
10520
  kind: "category",
10462
10521
  name: "%{BKY_CATEGORY_TEXT}",
10463
10522
  categorystyle: "text_category",
@@ -10665,13 +10724,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10665
10724
  categorystyle: "misc_category",
10666
10725
  custom: he.name
10667
10726
  },
10727
+ be,
10668
10728
  Be,
10729
+ Pe,
10730
+ De,
10669
10731
  Se,
10670
- be,
10671
10732
  Re,
10672
10733
  Le,
10673
- Pe,
10674
- Ne,
10675
10734
  mo,
10676
10735
  {
10677
10736
  kind: "category",
@@ -10725,13 +10784,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10725
10784
  categorystyle: "misc_category",
10726
10785
  custom: ge.name
10727
10786
  },
10787
+ be,
10728
10788
  Be,
10789
+ Pe,
10790
+ De,
10729
10791
  Se,
10730
- be,
10731
10792
  Re,
10732
10793
  Le,
10733
- Pe,
10734
- Ne,
10735
10794
  {
10736
10795
  kind: "category",
10737
10796
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -10772,13 +10831,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10772
10831
  categorystyle: "misc_category",
10773
10832
  custom: ge.name
10774
10833
  },
10834
+ be,
10775
10835
  Be,
10836
+ Pe,
10837
+ De,
10776
10838
  Se,
10777
- be,
10778
10839
  Re,
10779
10840
  Le,
10780
- Pe,
10781
- Ne,
10782
10841
  {
10783
10842
  kind: "category",
10784
10843
  name: "%{BKY_CATEGORY_VARIABLE}",
@@ -10844,13 +10903,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10844
10903
  categorystyle: "misc_category",
10845
10904
  custom: he.name
10846
10905
  },
10906
+ be,
10847
10907
  Be,
10908
+ Pe,
10909
+ De,
10848
10910
  Se,
10849
- be,
10850
10911
  Re,
10851
10912
  Le,
10852
- Pe,
10853
- Ne,
10854
10913
  mo,
10855
10914
  {
10856
10915
  kind: "category",
@@ -10877,7 +10936,7 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10877
10936
  custom: pe.name
10878
10937
  }
10879
10938
  ]
10880
- }, Ke = {
10939
+ }, $e = {
10881
10940
  grid: {
10882
10941
  length: 2,
10883
10942
  snap: !0,
@@ -10904,8 +10963,8 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: dc }, Ne = {
10904
10963
  }
10905
10964
  };
10906
10965
  function gc(t, e, n, o) {
10907
- Ke.theme = o ? "dark" : "light", Ke.toolbox = Ac(e, n);
10908
- const i = xo(t, Ke);
10966
+ $e.theme = o ? "dark" : "light", $e.toolbox = Ac(e, n);
10967
+ const i = xo(t, $e);
10909
10968
  return i.addChangeListener(Yo.shadowBlockConversionChangeListener), Ic(i, e, n), Oc(i), i;
10910
10969
  }
10911
10970
  function Ac(t, e) {
@@ -10965,8 +11024,8 @@ function yc(t, e) {
10965
11024
  l.push(_);
10966
11025
  u.initData(l);
10967
11026
  for (let _ = 0; _ < l.length; _++) {
10968
- const d = l[_], f = u.getInput("ENTRY" + _);
10969
- o(i[d], f.connection);
11027
+ const d = l[_], h = u.getInput("ENTRY" + _);
11028
+ o(i[d], h.connection);
10970
11029
  }
10971
11030
  } else if (c === "json_array_v1") {
10972
11031
  u.initData(i.length);
@@ -11010,9 +11069,9 @@ function vc(t) {
11010
11069
  if (o.type === "json_root_v1")
11011
11070
  return e(o);
11012
11071
  }
11013
- const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11072
+ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ ct({
11014
11073
  __name: "index",
11015
- props: /* @__PURE__ */ Ge({
11074
+ props: /* @__PURE__ */ We({
11016
11075
  type: {},
11017
11076
  version: {},
11018
11077
  locale: {},
@@ -11023,11 +11082,11 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11023
11082
  scale: { required: !0 },
11024
11083
  scaleModifiers: {}
11025
11084
  }),
11026
- emits: /* @__PURE__ */ Ge(["ready"], ["update:lock", "update:scale"]),
11085
+ emits: /* @__PURE__ */ We(["ready"], ["update:lock", "update:scale"]),
11027
11086
  setup(t, { expose: e, emit: n }) {
11028
- const { backgroundColor2: o } = jt(), i = Kt(t, "lock"), a = Kt(t, "scale"), c = n, u = `blocklyEditor${We()}`, l = Nt(), _ = wt("parentContainer"), d = wt("clean"), f = wt("navigator"), p = {};
11087
+ const { backgroundColor2: o } = jt(), i = Kt(t, "lock"), a = Kt(t, "scale"), c = n, u = `blocklyEditor${je()}`, l = Nt(), _ = wt("parentContainer"), d = wt("clean"), h = wt("navigator"), p = {};
11029
11088
  Da(p);
11030
- const E = Nt(!0), A = Nt(!1), P = F(() => t.type === "json" ? "tree" : "list"), U = F(() => ({
11089
+ const m = Nt(!0), A = Nt(!1), P = F(() => t.type === "json" ? "tree" : "list"), U = F(() => ({
11031
11090
  width: "100%",
11032
11091
  height: "calc(100% - 48px)"
11033
11092
  })), gt = F(() => ({
@@ -11036,7 +11095,7 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11036
11095
  bottom: "0px",
11037
11096
  width: "100%",
11038
11097
  height: "48px"
11039
- })), z = F(() => ({
11098
+ })), et = F(() => ({
11040
11099
  position: "absolute",
11041
11100
  background: t.dark ? "#0000007f" : "#ffffff7f",
11042
11101
  top: "1px",
@@ -11070,7 +11129,7 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11070
11129
  top: 0,
11071
11130
  left: 0,
11072
11131
  zIndex: 3e3
11073
- })), { open: Ut } = tn(`blocklyEditorFlyout${We()}`);
11132
+ })), { open: Ut } = en(`blocklyEditorFlyout${je()}`);
11074
11133
  An(async () => {
11075
11134
  if (!l.value || !_.value) {
11076
11135
  console.assert(!1);
@@ -11078,8 +11137,8 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11078
11137
  }
11079
11138
  Fo(_.value), await On(t.locale), p.workspace = gc(l.value, t.type, t.version, t.dark), p.workspace.addChangeListener(I.disableOrphans), p.workspace.addChangeListener(Eo);
11080
11139
  const N = document.querySelector(`#${u} .blocklyFlyout`);
11081
- new MutationObserver((De) => {
11082
- De.forEach((zt) => {
11140
+ new MutationObserver((Me) => {
11141
+ Me.forEach((zt) => {
11083
11142
  zt.type === "attributes" && zt.attributeName === "style" && (Ut.value = p.workspace.getFlyout().isVisible());
11084
11143
  });
11085
11144
  }).observe(N, { attributes: !0 }), Ut.value = p.workspace.getFlyout().isVisible(), dn(), hn(), await ni(), c("ready");
@@ -11091,22 +11150,22 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11091
11150
  async function Eo(N) {
11092
11151
  if (N.type === I.FINISHED_LOADING) {
11093
11152
  lo(), setTimeout(() => {
11094
- f.value?.update();
11095
- }, 0), E.value = !1;
11153
+ h.value?.update();
11154
+ }, 0), m.value = !1;
11096
11155
  return;
11097
11156
  }
11098
- if (!E.value) {
11157
+ if (!m.value) {
11099
11158
  if (N.type === I.VIEWPORT_CHANGE) {
11100
11159
  a.value = p.workspace.getScale();
11101
11160
  return;
11102
11161
  }
11103
11162
  N.type === I.BLOCK_DRAG && (N.isStart ? A.value = !0 : A.value = !1), setTimeout(() => {
11104
- f.value?.update();
11163
+ h.value?.update();
11105
11164
  }, 0);
11106
11165
  }
11107
11166
  }
11108
11167
  const go = (N) => {
11109
- E.value = !0, t.type === "json" ? yc(N, p.workspace) : K.workspaces.load(N, p.workspace);
11168
+ m.value = !0, t.type === "json" ? yc(N, p.workspace) : K.workspaces.load(N, p.workspace);
11110
11169
  }, Ao = () => t.type === "json" ? vc(p.workspace) : K.workspaces.save(p.workspace), Io = () => {
11111
11170
  if (t.type === "json")
11112
11171
  console.assert(!1);
@@ -11123,7 +11182,7 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11123
11182
  }, mn = () => {
11124
11183
  i.value = !i.value;
11125
11184
  }, Tn = () => {
11126
- f.value && (f.value.open = !0);
11185
+ h.value && (h.value.open = !0);
11127
11186
  };
11128
11187
  return An(() => {
11129
11188
  Ct.on("cleanWorkspace", fn), Ct.on("toggleBlocklyLock", mn), Ct.on("openBlocklyNavigator", Tn);
@@ -11146,15 +11205,15 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11146
11205
  }), Vt(a, () => {
11147
11206
  hn();
11148
11207
  }), e({
11149
- loading: E,
11208
+ loading: m,
11150
11209
  load: go,
11151
11210
  save: Ao,
11152
11211
  generateCode: Io,
11153
11212
  generateReactivity: Oo,
11154
11213
  fireStateChange: yo
11155
11214
  }), (N, At) => {
11156
- const De = D("v-icon"), zt = D("x-loading");
11157
- return S(), J("div", Cc, [
11215
+ const Me = D("v-icon"), zt = D("x-loading");
11216
+ return S(), z("div", Cc, [
11158
11217
  w("div", {
11159
11218
  id: u,
11160
11219
  ref_key: "blocklyDiv",
@@ -11166,17 +11225,17 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11166
11225
  }, [
11167
11226
  oi(N.$slots, "bottom")
11168
11227
  ], 4),
11169
- A.value ? (S(), J("div", {
11228
+ A.value ? (S(), z("div", {
11170
11229
  key: 0,
11171
11230
  class: "d-flex flex-column justify-center align-center",
11172
- style: G(z.value)
11231
+ style: G(et.value)
11173
11232
  }, [
11174
- L(De, {
11233
+ L(Me, {
11175
11234
  icon: "mdi-delete",
11176
11235
  size: "x-large"
11177
11236
  })
11178
- ], 4)) : ct("", !0),
11179
- E.value ? ct("", !0) : (S(), J("div", {
11237
+ ], 4)) : rt("", !0),
11238
+ m.value ? rt("", !0) : (S(), z("div", {
11180
11239
  key: 1,
11181
11240
  class: "d-flex align-end ga-3 pt-3 pr-3",
11182
11241
  style: G(vt.value)
@@ -11192,32 +11251,32 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11192
11251
  }, null, 8, ["modelValue"]),
11193
11252
  L(ja, {
11194
11253
  ref_key: "navigator",
11195
- ref: f,
11254
+ ref: h,
11196
11255
  lock: i.value,
11197
11256
  type: P.value
11198
11257
  }, null, 8, ["lock", "type"])
11199
11258
  ], 4)),
11200
- i.value ? (S(), J("div", {
11259
+ i.value ? (S(), z("div", {
11201
11260
  key: 2,
11202
11261
  style: G(pn.value)
11203
- }, null, 4)) : ct("", !0),
11204
- i.value ? (S(), J("div", {
11262
+ }, null, 4)) : rt("", !0),
11263
+ i.value ? (S(), z("div", {
11205
11264
  key: 3,
11206
11265
  style: G(H.value)
11207
- }, null, 4)) : ct("", !0),
11266
+ }, null, 4)) : rt("", !0),
11208
11267
  w("div", {
11209
11268
  ref_key: "parentContainer",
11210
11269
  ref: _,
11211
11270
  style: G(To.value)
11212
11271
  }, null, 4),
11213
11272
  L(zt, {
11214
- open: E.value,
11273
+ open: m.value,
11215
11274
  "z-index": 99
11216
11275
  }, null, 8, ["open"])
11217
11276
  ]);
11218
11277
  };
11219
11278
  }
11220
- }), Nc = /* @__PURE__ */ st({
11279
+ }), Nc = /* @__PURE__ */ ct({
11221
11280
  __name: "index",
11222
11281
  props: {
11223
11282
  code: {}
@@ -11228,12 +11287,12 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11228
11287
  const n = Go.component, { backgroundColor2: o } = jt();
11229
11288
  return (i, a) => {
11230
11289
  const c = D("v-sheet");
11231
- return S(), et(c, {
11290
+ return S(), st(c, {
11232
11291
  color: R(o),
11233
11292
  height: "100%",
11234
11293
  width: "100%"
11235
11294
  }, {
11236
- default: nt(() => [
11295
+ default: at(() => [
11237
11296
  L(R(n), {
11238
11297
  code: e.code,
11239
11298
  language: "js"
@@ -11243,7 +11302,7 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11243
11302
  }, 8, ["color"]);
11244
11303
  };
11245
11304
  }
11246
- }), Lc = { class: "text-subtitle-1" }, Sc = { class: "w-100 h-100 overflow-auto" }, Bc = /* @__PURE__ */ st({
11305
+ }), Lc = { class: "text-subtitle-1" }, Sc = { class: "w-100 h-100 overflow-auto" }, Bc = /* @__PURE__ */ ct({
11247
11306
  __name: "index",
11248
11307
  setup(t) {
11249
11308
  const { t: e } = Xt(), { sysBarAvail: n } = wn(), { backgroundColor0: o, backgroundColor2: i } = jt(), a = Nt(""), c = F(() => {
@@ -11254,10 +11313,10 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11254
11313
  };
11255
11314
  }), u = (_) => {
11256
11315
  a.value = _.code;
11257
- }, { open: l } = tn("sourceDlg", u);
11316
+ }, { open: l } = en("sourceDlg", u);
11258
11317
  return (_, d) => {
11259
- const f = D("v-sheet"), p = D("v-btn"), E = D("v-spacer"), A = D("v-dialog");
11260
- return S(), et(A, {
11318
+ const h = D("v-sheet"), p = D("v-btn"), m = D("v-spacer"), A = D("v-dialog");
11319
+ return S(), st(A, {
11261
11320
  modelValue: R(l),
11262
11321
  "onUpdate:modelValue": d[1] || (d[1] = (P) => ne(l) ? l.value = P : null),
11263
11322
  fullscreen: "",
@@ -11266,24 +11325,24 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11266
11325
  transition: "dialog-bottom-transition",
11267
11326
  onKeydown: d[2] || (d[2] = Gn(Ft((P) => l.value = !1, ["stop", "prevent"]), ["esc"]))
11268
11327
  }, {
11269
- default: nt(() => [
11270
- L(f, {
11328
+ default: at(() => [
11329
+ L(h, {
11271
11330
  color: R(o),
11272
11331
  height: "100%",
11273
11332
  width: "100%"
11274
11333
  }, {
11275
- default: nt(() => [
11276
- R(n) ? (S(), et(f, {
11334
+ default: at(() => [
11335
+ R(n) ? (S(), st(h, {
11277
11336
  key: 0,
11278
11337
  color: R(i),
11279
11338
  height: 24
11280
- }, null, 8, ["color"])) : ct("", !0),
11281
- L(f, {
11339
+ }, null, 8, ["color"])) : rt("", !0),
11340
+ L(h, {
11282
11341
  class: "d-flex align-center px-2",
11283
11342
  color: R(i),
11284
11343
  height: 48
11285
11344
  }, {
11286
- default: nt(() => [
11345
+ default: at(() => [
11287
11346
  L(p, {
11288
11347
  density: "comfortable",
11289
11348
  icon: "mdi-close",
@@ -11291,7 +11350,7 @@ const Cc = { class: "position-relative w-100 h-100" }, kc = /* @__PURE__ */ st({
11291
11350
  onClick: d[0] || (d[0] = (P) => l.value = !1)
11292
11351
  }),
11293
11352
  w("span", Lc, $t(R(e)("x-block-lib.dlg.source.title")), 1),
11294
- L(E)
11353
+ L(m)
11295
11354
  ]),
11296
11355
  _: 1
11297
11356
  }, 8, ["color"]),