x-block-lib 0.6.55 → 0.6.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -10,12 +10,12 @@
10
10
  var so = Object.defineProperty;
11
11
  var ao = (t, e, n) => e in t ? so(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
12
12
  var on = (t, e, n) => ao(t, typeof e != "symbol" ? e + "" : e, n);
13
- import { provide as co, inject as lo, defineComponent as ie, resolveComponent as P, createBlock as ee, openBlock as U, unref as N, withCtx as te, createVNode as R, mergeProps as Wt, useModel as Pe, ref as Ae, computed as j, resolveDirective as uo, withDirectives as ro, createElementBlock as Q, normalizeStyle as q, createElementVNode as X, toDisplayString as ut, withModifiers as De, mergeModels as Mt, Fragment as En, renderList as _o, useId as Vt, onUnmounted as gn, useTemplateRef as Ue, withKeys as An, isRef as ze, createCommentVNode as de, onMounted as sn, nextTick as po, onBeforeUnmount as ho, watch as Ne } from "vue";
14
- import { d as f, j as a, O as l, f as fo, F as In, M as _, E as A, r as an, u as I, s as mo, X as fe, B as m, i as M, a as y, c as Me, b as Pt, e as G, g as me, h as _e, p as Ve, k as Z, l as cn, m as D, C as On, n as To, P as xt, N as jt, V as Be, o as He, q as Cn, t as Eo, S as K, v as Qe, w as Re, x as ge, y as Xe, z as yt, A as Se, D as ln, G as vt, H as go, T as rt, I as kn, J as Ao, K as Io, L as Oo, Q as Co, R as ko, U as yn, W as vn, Y as yo, Z as vo, _ as Lo, $ as No, a0 as So, a1 as bo, a2 as Bo, a3 as Ro, a4 as Do } from "./vendor.l2j3w2q7.js";
15
- import { openConfirmDlg as Uo, openPromptDlg as Mo, messageWarning as Ln, useColor as _t, useSystem as Nn, useViewStack as Xt } from "x-essential-lib";
16
- import { elements as Y, pkgs as xe, getPropTag as pt, parsePixelStr as Vo, parsePercentStr as Po } from "x-runtime-lib";
13
+ import { provide as co, inject as lo, defineComponent as se, resolveComponent as P, createBlock as ee, openBlock as U, unref as L, withCtx as te, createVNode as R, mergeProps as jt, useModel as xe, ref as Oe, computed as j, resolveDirective as uo, withDirectives as ro, createElementBlock as Q, normalizeStyle as q, createElementVNode as X, toDisplayString as rt, withModifiers as Ue, mergeModels as Vt, Fragment as En, renderList as _o, useId as Pt, onUnmounted as gn, useTemplateRef as Me, withKeys as An, isRef as Qe, createCommentVNode as fe, onMounted as sn, nextTick as po, onBeforeUnmount as ho, watch as be } from "vue";
14
+ import { d as f, j as a, O as l, f as fo, F as In, M as p, E as I, r as an, u as g, s as mo, X as me, B as m, i as M, a as y, c as Ve, b as xt, e as G, g as Te, h as pe, p as Pe, k as Z, l as cn, m as D, C as On, N as ne, n as To, P as Yt, V as Ie, o as He, q as Cn, t as Eo, S as K, v as Ze, w as De, x as Ae, y as Je, z as vt, A as Be, D as ln, G as Nt, H as go, T as _t, I as kn, J as Ao, K as Io, L as Oo, Q as Co, R as ko, U as yn, W as vn, Y as yo, Z as vo, _ as No, $ as Lo, a0 as So, a1 as bo, a2 as Bo, a3 as Ro, a4 as Do } from "./vendor.bxn11l2w.js";
15
+ import { openConfirmDlg as Uo, openPromptDlg as Mo, messageWarning as Nn, useColor as pt, useSystem as Ln, useViewStack as Xt } from "x-essential-lib";
16
+ import { elements as Y, pkgs as Ye, getPropTag as ht, parsePixelStr as Vo, parsePercentStr as Po } from "x-runtime-lib";
17
17
  import { globalState as T } from "x-state-lib";
18
- import { useI18n as $e } from "vue-i18n";
18
+ import { useI18n as Ge } from "vue-i18n";
19
19
  import { useDisplay as xo } from "vuetify";
20
20
  f([
21
21
  {
@@ -97,9 +97,9 @@ class E extends In {
97
97
  return i;
98
98
  } else {
99
99
  if (this.name === "EVENT")
100
- return _[n.event.name];
100
+ return p[n.event.name];
101
101
  if (this.name === "METHOD")
102
- return _[n.method.name];
102
+ return p[n.method.name];
103
103
  if (this.name === "SPACE")
104
104
  return n.space.name;
105
105
  if (this.name === "FUNC")
@@ -120,7 +120,7 @@ class E extends In {
120
120
  }
121
121
  fo.register("field_dropdown2", E);
122
122
  var S = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(S || {});
123
- class Sn extends A.Abstract {
123
+ class Sn extends I.Abstract {
124
124
  constructor() {
125
125
  super(...arguments);
126
126
  on(this, "isBlank", !0);
@@ -131,23 +131,23 @@ an.register(
131
131
  "state_change",
132
132
  Sn
133
133
  );
134
- const Ie = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", et = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
135
- function ht(t) {
134
+ const Ce = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", tt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
135
+ function dt(t) {
136
136
  const e = t.lastIndexOf("V");
137
137
  if (e <= 0 || e >= t.length - 1)
138
138
  return console.assert(!1, `invalid key=${t}`), "";
139
139
  const n = mo(t.substring(0, e - 1)), o = "v" + t.substring(e + 1);
140
140
  return `${n}_${o}`;
141
141
  }
142
- function Ce(t) {
142
+ function ye(t) {
143
143
  const e = t.lastIndexOf("V");
144
144
  if (e <= 0 || e >= t.length - 1)
145
145
  return console.assert(!1, `invalid key=${t}`), "";
146
146
  const n = t.substring(0, e - 1), o = n[0].toUpperCase(), i = n.substring(1);
147
147
  return `${o}${i}`;
148
148
  }
149
- function L(t) {
150
- return t.length <= 0 && t.push([_.NO_OPTION, ""]), t;
149
+ function N(t) {
150
+ return t.length <= 0 && t.push([p.NO_OPTION, ""]), t;
151
151
  }
152
152
  function b(t) {
153
153
  let e = "";
@@ -161,7 +161,7 @@ function b(t) {
161
161
  let n = "FALSE";
162
162
  typeof t.default == "boolean" && (n = t.default ? "TRUE" : "FALSE"), e = `<shadow type="logic_boolean_v1"><field name="BOOL">${n}</field></shadow>`;
163
163
  } else t.type === "comp" ? e = '<shadow type="select_comp_v1"></shadow>' : console.assert(!1, "invalid param type", t.type);
164
- return I.xml.textToDom(e);
164
+ return g.xml.textToDom(e);
165
165
  }
166
166
  function Yo(t) {
167
167
  let e = 0;
@@ -169,47 +169,47 @@ function Yo(t) {
169
169
  e++, t = t.getParent();
170
170
  return e;
171
171
  }
172
- function re(t, e) {
173
- const n = `<block type="text_v1"><field name="TEXT">${e}</field></block>`, o = I.xml.textToDom(n);
174
- return fe.domToBlock(o, t);
172
+ function _e(t, e) {
173
+ const n = `<block type="text_v1"><field name="TEXT">${e}</field></block>`, o = g.xml.textToDom(n);
174
+ return me.domToBlock(o, t);
175
175
  }
176
- function ke(t, e) {
177
- const n = `<block type="math_number_v1"><field name="NUM">${e}</field></block>`, o = I.xml.textToDom(n);
178
- return fe.domToBlock(o, t);
176
+ function ve(t, e) {
177
+ const n = `<block type="math_number_v1"><field name="NUM">${e}</field></block>`, o = g.xml.textToDom(n);
178
+ return me.domToBlock(o, t);
179
179
  }
180
- function dt(t, e) {
181
- const o = `<block type="logic_boolean_v1"><field name="BOOL">${e ? "TRUE" : "FALSE"}</field></block>`, i = I.xml.textToDom(o);
182
- return fe.domToBlock(i, t);
180
+ function ft(t, e) {
181
+ const o = `<block type="logic_boolean_v1"><field name="BOOL">${e ? "TRUE" : "FALSE"}</field></block>`, i = g.xml.textToDom(o);
182
+ return me.domToBlock(i, t);
183
183
  }
184
184
  function bn(t, e) {
185
- const o = `<block type="${ht(e)}"></block>`, i = I.xml.textToDom(o);
186
- return fe.domToBlock(i, t);
185
+ const o = `<block type="${dt(e)}"></block>`, i = g.xml.textToDom(o);
186
+ return me.domToBlock(i, t);
187
187
  }
188
188
  function Bn(t, e) {
189
- const o = `<block type="${ht(e)}"></block>`, i = I.xml.textToDom(o);
190
- return fe.domToBlock(i, t);
189
+ const o = `<block type="${dt(e)}"></block>`, i = g.xml.textToDom(o);
190
+ return me.domToBlock(i, t);
191
191
  }
192
192
  function Rn(t) {
193
- const n = I.xml.textToDom('<block type="select_comp_v1"></block>');
194
- return fe.domToBlock(n, t);
193
+ const n = g.xml.textToDom('<block type="select_comp_v1"></block>');
194
+ return me.domToBlock(n, t);
195
195
  }
196
196
  function un(t, e) {
197
197
  let n = null;
198
- return e === "string" ? n = re(t, "") : e === "integer" || e === "float" ? n = ke(t, 0) : e === "boolean" ? n = dt(t, !1) : (e === "enum" || e === "dateTime") && (n = re(t, "")), n;
198
+ return e === "string" ? n = _e(t, "") : e === "integer" || e === "float" ? n = ve(t, 0) : e === "boolean" ? n = ft(t, !1) : (e === "enum" || e === "dateTime") && (n = _e(t, "")), n;
199
199
  }
200
200
  function Jt(t, e, n, o) {
201
201
  const i = `
202
202
  <block type="parameter_v1">
203
203
  <mutation key="${e}" name="${n}" locale="${o ? "TRUE" : "FALSE"}"/>
204
204
  </block>
205
- `, s = I.xml.textToDom(i);
206
- return fe.domToBlock(s, t);
205
+ `, s = g.xml.textToDom(i);
206
+ return me.domToBlock(s, t);
207
207
  }
208
208
  function w(t, e) {
209
209
  try {
210
- A.disable(), e.forEach((n) => {
211
- var p;
212
- const [o, i, s, c] = n, u = (p = t.getInput(o)) == null ? void 0 : p.connection;
210
+ I.disable(), e.forEach((n) => {
211
+ var _;
212
+ const [o, i, s, c] = n, u = (_ = t.getInput(o)) == null ? void 0 : _.connection;
213
213
  if (!u)
214
214
  return;
215
215
  let r = u.targetBlock();
@@ -227,12 +227,12 @@ function w(t, e) {
227
227
  ), r.outputConnection.connect(u);
228
228
  });
229
229
  } finally {
230
- A.enable();
230
+ I.enable();
231
231
  }
232
232
  }
233
- function Ge(t) {
233
+ function We(t) {
234
234
  const { version: e } = T.app.activeObject;
235
- if (!xe[e])
235
+ if (!Ye[e])
236
236
  return console.assert(!1, "invalid pkg version", e), [];
237
237
  const o = [];
238
238
  for (const i in Y) {
@@ -241,18 +241,18 @@ function Ge(t) {
241
241
  }
242
242
  return o;
243
243
  }
244
- function pe(t) {
244
+ function he(t) {
245
245
  const e = Y[t];
246
246
  if (e)
247
247
  return e;
248
248
  }
249
- function ye(t) {
249
+ function Ne(t) {
250
250
  const { i18n: e } = T.base, n = [];
251
- return Ge(t).forEach(({ key: i, name: s }) => {
251
+ return We(t).forEach(({ key: i, name: s }) => {
252
252
  n.push([e.global.t(s), i]);
253
- }), L(n);
253
+ }), N(n);
254
254
  }
255
- function Yt(t) {
255
+ function wt(t) {
256
256
  const e = Y[t];
257
257
  return e ? e.events : [];
258
258
  }
@@ -263,40 +263,40 @@ function Lt(t, e) {
263
263
  }
264
264
  function wo(t) {
265
265
  const e = [];
266
- return Yt(t).forEach(({ key: o, name: i }) => {
267
- e.push([_[i] ?? i, o]);
268
- }), L(e);
266
+ return wt(t).forEach(({ key: o, name: i }) => {
267
+ e.push([p[i] ?? i, o]);
268
+ }), N(e);
269
269
  }
270
- function wt(t) {
270
+ function Ft(t) {
271
271
  const e = Y[t];
272
272
  return e ? e.methods : [];
273
273
  }
274
- function Nt(t, e) {
274
+ function St(t, e) {
275
275
  const n = Y[t];
276
276
  if (n)
277
277
  return n.methods.find((o) => o.key === e);
278
278
  }
279
279
  function Fo(t) {
280
280
  const e = [];
281
- return wt(t).forEach(({ key: o, name: i }) => {
282
- e.push([_[i] ?? i, o]);
283
- }), L(e);
281
+ return Ft(t).forEach(({ key: o, name: i }) => {
282
+ e.push([p[i] ?? i, o]);
283
+ }), N(e);
284
284
  }
285
- function Ye(t, e) {
286
- var r, p;
287
- const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, s = pt(o, i);
285
+ function we(t, e) {
286
+ var r, _;
287
+ const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, s = ht(o, i);
288
288
  if (!s)
289
289
  return console.assert(!1, "invalid prop tag", o, i), [];
290
290
  if (!Y[t])
291
291
  return [];
292
292
  const u = [];
293
- return (p = (r = n[t]) == null ? void 0 : r[s]) == null || p.forEach((h) => {
293
+ return (_ = (r = n[t]) == null ? void 0 : r[s]) == null || _.forEach((h) => {
294
294
  e && (!h.raw.ui || h.raw.readonly || h.keys === "alias") || u.push(h);
295
295
  }), u;
296
296
  }
297
- function ae(t, e) {
297
+ function ce(t, e) {
298
298
  var c, u;
299
- const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, s = pt(o, i);
299
+ const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, s = ht(o, i);
300
300
  if (!s) {
301
301
  console.assert(!1, "invalid prop tag", o, i);
302
302
  return;
@@ -305,14 +305,14 @@ function ae(t, e) {
305
305
  }
306
306
  function Dn(t, e) {
307
307
  const { i18n: n } = T.base, o = [];
308
- return Ye(t, e).forEach(({ keys: s, names: c }) => {
308
+ return we(t, e).forEach(({ keys: s, names: c }) => {
309
309
  let u = "";
310
- c.forEach((r, p) => {
311
- p !== 0 && (u += " - "), u += n.global.t(r);
310
+ c.forEach((r, _) => {
311
+ _ !== 0 && (u += " - "), u += n.global.t(r);
312
312
  }), o.push([u, s]);
313
- }), L(o);
313
+ }), N(o);
314
314
  }
315
- function Le(t) {
315
+ function Se(t) {
316
316
  const { nodes: e } = T.app.activeObject, n = [];
317
317
  for (const o in e) {
318
318
  const i = e[o], s = Y[i.key];
@@ -329,12 +329,12 @@ function Le(t) {
329
329
  }
330
330
  return n;
331
331
  }
332
- function H(t) {
332
+ function $(t) {
333
333
  return T.app.activeObject.nodes.find((e) => e.id === t);
334
334
  }
335
- function We(t) {
335
+ function je(t) {
336
336
  const { i18n: e } = T.base, n = [];
337
- return Le(t).forEach(({ id: i, key: s, alias: c }) => {
337
+ return Se(t).forEach(({ id: i, key: s, alias: c }) => {
338
338
  const u = Y[s];
339
339
  if (!u) {
340
340
  console.assert(!1, "invalid element", s);
@@ -342,17 +342,17 @@ function We(t) {
342
342
  }
343
343
  let r = e.global.t(u.name);
344
344
  c && (r += ` / ${c}`), n.push([r, i]);
345
- }), L(n);
345
+ }), N(n);
346
346
  }
347
- function Ft(t) {
348
- const e = H(t);
347
+ function Kt(t) {
348
+ const e = $(t);
349
349
  if (!e)
350
350
  return [];
351
351
  const n = Y[e.key];
352
352
  return n ? n.events : (console.assert(!1, "invalid element", e.key), []);
353
353
  }
354
- function St(t, e) {
355
- const n = H(t);
354
+ function bt(t, e) {
355
+ const n = $(t);
356
356
  if (!n)
357
357
  return;
358
358
  const o = Y[n.key];
@@ -364,19 +364,19 @@ function St(t, e) {
364
364
  }
365
365
  function Ko(t) {
366
366
  const e = [];
367
- return Ft(t).forEach(({ key: o, name: i }) => {
368
- e.push([_[i] ?? i, o]);
369
- }), L(e);
367
+ return Kt(t).forEach(({ key: o, name: i }) => {
368
+ e.push([p[i] ?? i, o]);
369
+ }), N(e);
370
370
  }
371
- function Kt(t) {
372
- const e = H(t);
371
+ function $t(t) {
372
+ const e = $(t);
373
373
  if (!e)
374
374
  return [];
375
375
  const n = Y[e.key];
376
376
  return n ? n.methods : (console.assert(!1, "invalid element", e.key), []);
377
377
  }
378
- function bt(t, e) {
379
- const n = H(t);
378
+ function Bt(t, e) {
379
+ const n = $(t);
380
380
  if (!n)
381
381
  return;
382
382
  const o = Y[n.key];
@@ -386,43 +386,43 @@ function bt(t, e) {
386
386
  }
387
387
  return o.methods.find((i) => i.key === e);
388
388
  }
389
- function Ho(t) {
389
+ function $o(t) {
390
390
  const e = [];
391
- return Kt(t).forEach(({ key: o, name: i }) => {
392
- e.push([_[i] ?? i, o]);
393
- }), L(e);
391
+ return $t(t).forEach(({ key: o, name: i }) => {
392
+ e.push([p[i] ?? i, o]);
393
+ }), N(e);
394
394
  }
395
- function we(t, e) {
396
- var p, h;
397
- const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, s = [], c = pt(o, i);
395
+ function Fe(t, e) {
396
+ var _, h;
397
+ const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, s = [], c = ht(o, i);
398
398
  if (!c)
399
399
  return console.assert(!1, "invalid prop tag", o, i), s;
400
- const u = H(t);
401
- return u ? Y[u.key] ? ((h = (p = n[u.key]) == null ? void 0 : p[c]) == null || h.forEach((d) => {
400
+ const u = $(t);
401
+ return u ? Y[u.key] ? ((h = (_ = n[u.key]) == null ? void 0 : _[c]) == null || h.forEach((d) => {
402
402
  e && (!d.raw.ui || d.raw.readonly || d.keys === "alias") || s.push(d);
403
403
  }), s) : (console.assert(!1, "invalid element", u.key), s) : s;
404
404
  }
405
- function ce(t, e) {
405
+ function le(t, e) {
406
406
  var u, r;
407
- const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, s = pt(o, i);
407
+ const { props: n } = T.runtime, { type: o, subtype: i } = T.app.activeObject, s = ht(o, i);
408
408
  if (!s) {
409
409
  console.assert(!1, "invalid prop tag", o, i);
410
410
  return;
411
411
  }
412
- const c = H(t);
412
+ const c = $(t);
413
413
  if (c)
414
- return (r = (u = n[c.key]) == null ? void 0 : u[s]) == null ? void 0 : r.find((p) => p.keys === e);
414
+ return (r = (u = n[c.key]) == null ? void 0 : u[s]) == null ? void 0 : r.find((_) => _.keys === e);
415
415
  }
416
416
  function Un(t, e) {
417
417
  const { i18n: n } = T.base, o = [];
418
- return we(t, e).forEach(({ keys: s, names: c }) => {
418
+ return Fe(t, e).forEach(({ keys: s, names: c }) => {
419
419
  let u = "";
420
- c.forEach((r, p) => {
421
- p !== 0 && (u += " - "), u += n.global.t(r);
420
+ c.forEach((r, _) => {
421
+ _ !== 0 && (u += " - "), u += n.global.t(r);
422
422
  }), o.push([u, s]);
423
- }), L(o);
423
+ }), N(o);
424
424
  }
425
- const $o = {
425
+ const Ho = {
426
426
  init: function() {
427
427
  this.node = {
428
428
  id: "",
@@ -439,13 +439,13 @@ const $o = {
439
439
  var i, s;
440
440
  if (this.node.id)
441
441
  return;
442
- const t = (i = Le()) == null ? void 0 : i[0];
442
+ const t = (i = Se()) == null ? void 0 : i[0];
443
443
  if (!t)
444
444
  return;
445
445
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
446
446
  const e = this.getField("NODE");
447
447
  e.getOptions(!1), e.setValue(this.node.id);
448
- const n = (s = Kt(this.node.id)) == null ? void 0 : s[0];
448
+ const n = (s = $t(this.node.id)) == null ? void 0 : s[0];
449
449
  if (!n)
450
450
  return;
451
451
  this.method.key = n.key, this.method.name = n.name, this.method.inputs = n.inputs, this.method.outputs = n.outputs;
@@ -465,18 +465,18 @@ const $o = {
465
465
  }, 0);
466
466
  },
467
467
  genNodeOpts_: function() {
468
- return We("method");
468
+ return je("method");
469
469
  },
470
470
  genMethodOpts_: function() {
471
- return Ho(this.node.id);
471
+ return $o(this.node.id);
472
472
  },
473
473
  genElementOpts_: function() {
474
- return ye();
474
+ return Ne();
475
475
  },
476
476
  onchange: function(t) {
477
477
  if (t.type === S.STATE_CHANGE)
478
478
  this.checkWarning_();
479
- else if (t.type === A.BLOCK_CHANGE) {
479
+ else if (t.type === I.BLOCK_CHANGE) {
480
480
  const e = t;
481
481
  if (e.blockId !== this.id)
482
482
  return;
@@ -487,7 +487,7 @@ const $o = {
487
487
  },
488
488
  onNodeChange_: function(t) {
489
489
  var i;
490
- const e = H(t);
490
+ const e = $(t);
491
491
  if (!e) {
492
492
  console.assert(!1);
493
493
  return;
@@ -495,13 +495,13 @@ const $o = {
495
495
  const n = this.node.key !== e.key;
496
496
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
497
497
  const o = this.getField("METHOD");
498
- if (o.getOptions(!1), n || !bt(this.node.id, this.method.key)) {
499
- const s = (i = Kt(this.node.id)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.key) ?? "";
498
+ if (o.getOptions(!1), n || !Bt(this.node.id, this.method.key)) {
499
+ const s = (i = $t(this.node.id)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.key) ?? "";
500
500
  o.setValue(c), this.method.key === c && this.onMethodChange_(c);
501
501
  }
502
502
  },
503
503
  onMethodChange_: function(t) {
504
- const e = bt(this.node.id, t);
504
+ const e = Bt(this.node.id, t);
505
505
  e ? (this.method.key = e.key, this.method.name = e.name, this.method.inputs = e.inputs, this.method.outputs = e.outputs) : (this.method.key = "", this.method.name = "", this.method.inputs = [], this.method.outputs = []), this.updateShape_(), this.updateShape2_(), this.updateShadow_(), setTimeout(() => {
506
506
  this.ensureBlocks_();
507
507
  }, 0);
@@ -534,7 +534,7 @@ const $o = {
534
534
  this.removeInput("INPUT" + n);
535
535
  for (let n = 0; n < this.method.inputs.length; n++) {
536
536
  const o = this.method.inputs[n];
537
- this.getInput("INPUT" + n) || (this.appendValueInput("INPUT" + n).setAlign(y.Align.RIGHT).appendField(_[o.name]), this.method.outputs.length > 0 && this.moveInputBefore("INPUT" + n, "OUTPUT0"));
537
+ this.getInput("INPUT" + n) || (this.appendValueInput("INPUT" + n).setAlign(y.Align.RIGHT).appendField(p[o.name]), this.method.outputs.length > 0 && this.moveInputBefore("INPUT" + n, "OUTPUT0"));
538
538
  }
539
539
  },
540
540
  updateShadow_: function() {
@@ -561,29 +561,29 @@ const $o = {
561
561
  t.length > 0 && w(this, t);
562
562
  },
563
563
  checkWarning_: function() {
564
- const t = H(this.node.id);
564
+ const t = $(this.node.id);
565
565
  if (!t) {
566
- this.setWarningText(_.WARN_NODE_NOT_AVAILABLE);
566
+ this.setWarningText(p.WARN_NODE_NOT_AVAILABLE);
567
567
  return;
568
568
  }
569
569
  if (t.key !== this.node.key) {
570
- this.setWarningText(_.WARN_NODE_HAS_CHANGED);
570
+ this.setWarningText(p.WARN_NODE_HAS_CHANGED);
571
571
  return;
572
572
  }
573
573
  t.alias !== this.node.alias && (this.node.alias = t.alias);
574
- const e = bt(this.node.id, this.method.key);
574
+ const e = Bt(this.node.id, this.method.key);
575
575
  if (!e) {
576
- this.setWarningText(_.WARN_METHOD_NOT_AVAILABLE);
576
+ this.setWarningText(p.WARN_METHOD_NOT_AVAILABLE);
577
577
  return;
578
578
  }
579
579
  if (e.name !== this.method.name && (this.method.name = e.name), !M(e.inputs, this.method.inputs) || !M(e.outputs, this.method.outputs)) {
580
- this.setWarningText(_.WARN_METHOD_HAS_CHANGED);
580
+ this.setWarningText(p.WARN_METHOD_HAS_CHANGED);
581
581
  return;
582
582
  }
583
583
  this.setWarningText(null);
584
584
  }
585
585
  };
586
- m.call_node_method_v1 = $o;
586
+ m.call_node_method_v1 = Ho;
587
587
  a.forBlock.call_node_method_v1 = function(t) {
588
588
  const e = a.quote_, n = t;
589
589
  let o = n.node.id;
@@ -622,16 +622,16 @@ const Go = {
622
622
  var i, s;
623
623
  if (this.element.key)
624
624
  return;
625
- const t = (i = Ge("method")) == null ? void 0 : i[0];
625
+ const t = (i = We("method")) == null ? void 0 : i[0];
626
626
  if (!t)
627
627
  return;
628
628
  this.element.key = t.key, this.element.name = t.name;
629
629
  const e = this.getField("ELEMENT");
630
630
  e.getOptions(!1), e.setValue(this.element.key);
631
- const n = (s = wt(this.element.key)) == null ? void 0 : s[0];
631
+ const n = (s = Ft(this.element.key)) == null ? void 0 : s[0];
632
632
  if (!n)
633
633
  return;
634
- this.method = Me(n);
634
+ this.method = Ve(n);
635
635
  const o = this.getField("METHOD");
636
636
  o.getOptions(!1), o.setValue(this.method.key);
637
637
  },
@@ -648,7 +648,7 @@ const Go = {
648
648
  }, 0);
649
649
  },
650
650
  genElementOpts_: function() {
651
- return ye("method");
651
+ return Ne("method");
652
652
  },
653
653
  genMethodOpts_: function() {
654
654
  return Fo(this.element.key);
@@ -656,7 +656,7 @@ const Go = {
656
656
  onchange: function(t) {
657
657
  if (t.type === S.STATE_CHANGE)
658
658
  this.checkWarning_();
659
- else if (t.type === A.BLOCK_CHANGE) {
659
+ else if (t.type === I.BLOCK_CHANGE) {
660
660
  const e = t;
661
661
  if (e.blockId !== this.id)
662
662
  return;
@@ -667,7 +667,7 @@ const Go = {
667
667
  },
668
668
  onElementChange_: function(t) {
669
669
  var i;
670
- const e = pe(t);
670
+ const e = he(t);
671
671
  if (!e) {
672
672
  console.assert(!1);
673
673
  return;
@@ -675,13 +675,13 @@ const Go = {
675
675
  const n = this.element.key !== e.key;
676
676
  this.element.key = e.key, this.element.name = e.name;
677
677
  const o = this.getField("METHOD");
678
- if (o.getOptions(!1), n || !Nt(this.element.key, this.method.key)) {
679
- const s = (i = wt(this.element.key)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.key) ?? "";
678
+ if (o.getOptions(!1), n || !St(this.element.key, this.method.key)) {
679
+ const s = (i = Ft(this.element.key)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.key) ?? "";
680
680
  o.setValue(c), this.method.key === c && this.onMethodChange_(c);
681
681
  }
682
682
  },
683
683
  onMethodChange_: function(t) {
684
- const e = Nt(this.element.key, t);
684
+ const e = St(this.element.key, t);
685
685
  e ? (this.method.key = e.key, this.method.name = e.name, this.method.inputs = e.inputs, this.method.outputs = e.outputs) : (this.method.key = "", this.method.name = "", this.method.inputs = [], this.method.outputs = []), this.updateShape_(), this.updateShape2_(), this.updateShadow_(), setTimeout(() => {
686
686
  this.ensureBlocks_();
687
687
  }, 0);
@@ -692,7 +692,7 @@ const Go = {
692
692
  console.assert(!1);
693
693
  return;
694
694
  }
695
- t.removeField("EXTRA1", !0), this.method.key === "add" && t.appendField(new E(() => ye()), "EXTRA1");
695
+ t.removeField("EXTRA1", !0), this.method.key === "add" && t.appendField(new E(() => Ne()), "EXTRA1");
696
696
  },
697
697
  updateShape2_: function() {
698
698
  var t, e;
@@ -711,7 +711,7 @@ const Go = {
711
711
  this.removeInput("INPUT" + n);
712
712
  for (let n = 0; n < this.method.inputs.length; n++) {
713
713
  const o = this.method.inputs[n];
714
- this.getInput("INPUT" + n) || (this.appendValueInput("INPUT" + n).setAlign(y.Align.RIGHT).appendField(_[o.name]), this.method.outputs.length > 0 && this.moveInputBefore("INPUT" + n, "OUTPUT0"));
714
+ this.getInput("INPUT" + n) || (this.appendValueInput("INPUT" + n).setAlign(y.Align.RIGHT).appendField(p[o.name]), this.method.outputs.length > 0 && this.moveInputBefore("INPUT" + n, "OUTPUT0"));
715
715
  }
716
716
  },
717
717
  updateShadow_: function() {
@@ -738,19 +738,19 @@ const Go = {
738
738
  t.length > 0 && w(this, t);
739
739
  },
740
740
  checkWarning_: function() {
741
- const t = pe(this.element.key);
741
+ const t = he(this.element.key);
742
742
  if (!t) {
743
- this.setWarningText(_.WARN_ELEMENT_NOT_AVAILABLE);
743
+ this.setWarningText(p.WARN_ELEMENT_NOT_AVAILABLE);
744
744
  return;
745
745
  }
746
746
  this.element.name !== t.name && (this.element.name = t.name);
747
- const e = Nt(this.element.key, this.method.key);
747
+ const e = St(this.element.key, this.method.key);
748
748
  if (!e) {
749
- this.setWarningText(_.WARN_METHOD_NOT_AVAILABLE);
749
+ this.setWarningText(p.WARN_METHOD_NOT_AVAILABLE);
750
750
  return;
751
751
  }
752
752
  if (e.name !== this.method.name && (this.method.name = e.name), !M(this.method.inputs, e.inputs) || !M(this.method.outputs, e.outputs)) {
753
- this.setWarningText(_.WARN_METHOD_HAS_CHANGED);
753
+ this.setWarningText(p.WARN_METHOD_HAS_CHANGED);
754
754
  return;
755
755
  }
756
756
  this.setWarningText(null);
@@ -783,17 +783,17 @@ ${s}}
783
783
  function Wo() {
784
784
  return T.app.activeObject.type !== "comp" ? !1 : T.app.activeComp.meta.properties.length > 0 || T.app.activeComp.meta.methods.length > 0 || T.app.activeComp.meta.events.length > 0;
785
785
  }
786
- function Fe() {
786
+ function Ke() {
787
787
  return T.app.activeComp.meta.methods;
788
788
  }
789
- function tt(t) {
789
+ function nt(t) {
790
790
  return T.app.activeComp.meta.methods.find((e) => e.id === t);
791
791
  }
792
792
  function Mn() {
793
793
  const t = [];
794
- return Fe().forEach(({ id: n, name: o }) => {
794
+ return Ke().forEach(({ id: n, name: o }) => {
795
795
  t.push([o, n]);
796
- }), L(t);
796
+ }), N(t);
797
797
  }
798
798
  function Ht(t) {
799
799
  const e = T.app.activeComp.meta.methods.find(
@@ -801,7 +801,7 @@ function Ht(t) {
801
801
  );
802
802
  return e ? e.outputs : [];
803
803
  }
804
- function Bt(t, e) {
804
+ function Rt(t, e) {
805
805
  const n = T.app.activeComp.meta.methods.find(
806
806
  (o) => o.id === t
807
807
  );
@@ -812,7 +812,7 @@ function jo(t) {
812
812
  const e = [];
813
813
  return Ht(t).forEach(({ id: o, name: i }) => {
814
814
  e.push([i, o]);
815
- }), L(e);
815
+ }), N(e);
816
816
  }
817
817
  function Vn() {
818
818
  return T.app.activeComp.meta.events;
@@ -824,7 +824,7 @@ function Xo() {
824
824
  const t = [];
825
825
  return Vn().forEach(({ id: n, name: o }) => {
826
826
  t.push([o, n]);
827
- }), L(t);
827
+ }), N(t);
828
828
  }
829
829
  const Jo = {
830
830
  init: function() {
@@ -838,7 +838,7 @@ const Jo = {
838
838
  var n;
839
839
  if (this.method.id)
840
840
  return;
841
- const t = (n = Fe()) == null ? void 0 : n[0];
841
+ const t = (n = Ke()) == null ? void 0 : n[0];
842
842
  if (!t)
843
843
  return;
844
844
  this.method.id = t.id, this.method.name = t.name, this.method.inputs = t.inputs;
@@ -862,7 +862,7 @@ const Jo = {
862
862
  onchange: function(t) {
863
863
  if (t.type === S.STATE_CHANGE)
864
864
  this.checkWarning_();
865
- else if (t.type === A.BLOCK_CHANGE) {
865
+ else if (t.type === I.BLOCK_CHANGE) {
866
866
  const e = t;
867
867
  if (e.blockId !== this.id)
868
868
  return;
@@ -872,7 +872,7 @@ const Jo = {
872
872
  }
873
873
  },
874
874
  onMethodChange_: function(t) {
875
- const e = tt(t);
875
+ const e = nt(t);
876
876
  e ? (this.method.id = e.id, this.method.name = e.name, this.method.inputs = e.inputs) : (this.method.id = "", this.method.name = "", this.method.inputs = []), this.updateShape_(), setTimeout(() => {
877
877
  this.rebuildBlocks();
878
878
  }, 0);
@@ -897,13 +897,13 @@ const Jo = {
897
897
  w(this, t);
898
898
  },
899
899
  checkWarning_: function() {
900
- const t = tt(this.method.id);
900
+ const t = nt(this.method.id);
901
901
  if (!t) {
902
- this.setWarningText(_.WARN_METHOD_NOT_AVAILABLE);
902
+ this.setWarningText(p.WARN_METHOD_NOT_AVAILABLE);
903
903
  return;
904
904
  }
905
905
  if (t.name !== this.method.name && (this.method.name = t.name), !M(t.inputs, this.method.inputs)) {
906
- this.setWarningText(_.WARN_METHOD_HAS_CHANGED);
906
+ this.setWarningText(p.WARN_METHOD_HAS_CHANGED);
907
907
  return;
908
908
  }
909
909
  this.setWarningText(null);
@@ -915,7 +915,7 @@ a.forBlock.comp_method_impl_v1 = function(t) {
915
915
  return `{${a.statementToCode(e, "HANDLE")}}`;
916
916
  };
917
917
  const qo = (t, e) => {
918
- const n = ht(t), o = Ce(t);
918
+ const n = dt(t), o = ye(t);
919
919
  m[n] = {
920
920
  init: function() {
921
921
  this.appendDummyInput().appendField(
@@ -927,20 +927,20 @@ const qo = (t, e) => {
927
927
  const { i18n: i } = T.base, s = [];
928
928
  for (const { title: c, value: u } of e)
929
929
  s.push([i.global.t(c), u]);
930
- return L(s);
930
+ return N(s);
931
931
  }
932
932
  }, a.forBlock[n] = function(i) {
933
933
  const s = a.quote_, c = i.getFieldValue("ITEM");
934
934
  return [s(c), l.ATOMIC];
935
935
  };
936
936
  };
937
- for (const t in xe) {
938
- const e = xe[t];
937
+ for (const t in Ye) {
938
+ const e = Ye[t];
939
939
  for (const n in e.items)
940
940
  qo(n, e.items[n]);
941
941
  }
942
942
  const zo = (t, e) => {
943
- const n = ht(t), o = Ce(t);
943
+ const n = dt(t), o = ye(t);
944
944
  m[n] = {
945
945
  init: function() {
946
946
  this.value = e[0].default ?? "", this.appendDummyInput("DUMMY").appendField(
@@ -960,12 +960,12 @@ const zo = (t, e) => {
960
960
  const { i18n: i } = T.base, s = [];
961
961
  for (const { title: c, value: u } of e)
962
962
  s.push([i.global.t(c), u]);
963
- return L(s);
963
+ return N(s);
964
964
  },
965
965
  onchange: function(i) {
966
966
  if (i.type === S.STATE_CHANGE)
967
967
  this.checkWarning_();
968
- else if (i.type === A.BLOCK_CHANGE) {
968
+ else if (i.type === I.BLOCK_CHANGE) {
969
969
  const s = i;
970
970
  if (s.blockId !== this.id)
971
971
  return;
@@ -988,15 +988,15 @@ const zo = (t, e) => {
988
988
  return;
989
989
  let s = this.value;
990
990
  s || (s = void 0);
991
- const c = e.find((p) => p.validator(s));
991
+ const c = e.find((_) => _.validator(s));
992
992
  if (!c)
993
993
  return;
994
994
  i.removeField("VALUE", !0), i.removeField("SUFFIX", !0);
995
995
  let u, r;
996
996
  if (c.ui === "pixelInput") {
997
- const p = Vo(this.value) ?? 0;
998
- u = new Pt(
999
- p,
997
+ const _ = Vo(this.value) ?? 0;
998
+ u = new xt(
999
+ _,
1000
1000
  c.min,
1001
1001
  c.max,
1002
1002
  c.precision ? 1 / Math.pow(10, c.precision) : null,
@@ -1005,9 +1005,9 @@ const zo = (t, e) => {
1005
1005
  }
1006
1006
  ), r = "px";
1007
1007
  } else if (c.ui === "percentInput") {
1008
- const p = Po(this.value) ?? 0;
1009
- u = new Pt(
1010
- p,
1008
+ const _ = Po(this.value) ?? 0;
1009
+ u = new xt(
1010
+ _,
1011
1011
  c.min,
1012
1012
  c.max,
1013
1013
  c.precision ? 1 / Math.pow(10, c.precision) : null,
@@ -1021,7 +1021,7 @@ const zo = (t, e) => {
1021
1021
  checkWarning_: function() {
1022
1022
  let i = this.value;
1023
1023
  if (i || (i = void 0), !e.find((c) => c.validator(i))) {
1024
- this.setWarningText(_.WARN_TYPE_NOT_AVAILABLE);
1024
+ this.setWarningText(p.WARN_TYPE_NOT_AVAILABLE);
1025
1025
  return;
1026
1026
  }
1027
1027
  this.setWarningText(null);
@@ -1031,8 +1031,8 @@ const zo = (t, e) => {
1031
1031
  return [s(i.value), l.ATOMIC];
1032
1032
  };
1033
1033
  };
1034
- for (const t in xe) {
1035
- const e = xe[t];
1034
+ for (const t in Ye) {
1035
+ const e = Ye[t];
1036
1036
  for (const n in e.types)
1037
1037
  zo(n, e.types[n]);
1038
1038
  }
@@ -1048,7 +1048,7 @@ const Qo = {
1048
1048
  var n;
1049
1049
  if (this.node.id)
1050
1050
  return;
1051
- const t = (n = Le()) == null ? void 0 : n[0];
1051
+ const t = (n = Se()) == null ? void 0 : n[0];
1052
1052
  if (!t)
1053
1053
  return;
1054
1054
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
@@ -1067,12 +1067,12 @@ const Qo = {
1067
1067
  }, 0);
1068
1068
  },
1069
1069
  genNodeOpts_: function() {
1070
- return We();
1070
+ return je();
1071
1071
  },
1072
1072
  onchange: function(t) {
1073
1073
  if (t.type === S.STATE_CHANGE)
1074
1074
  this.checkWarning_();
1075
- else if (t.type === A.BLOCK_CHANGE) {
1075
+ else if (t.type === I.BLOCK_CHANGE) {
1076
1076
  const e = t;
1077
1077
  if (e.blockId !== this.id)
1078
1078
  return;
@@ -1082,7 +1082,7 @@ const Qo = {
1082
1082
  }
1083
1083
  },
1084
1084
  onNodeChange_: function(t) {
1085
- const e = H(t);
1085
+ const e = $(t);
1086
1086
  if (!e) {
1087
1087
  console.assert(!1);
1088
1088
  return;
@@ -1090,13 +1090,13 @@ const Qo = {
1090
1090
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1091
1091
  },
1092
1092
  checkWarning_: function() {
1093
- const t = H(this.node.id);
1093
+ const t = $(this.node.id);
1094
1094
  if (!t) {
1095
- this.setWarningText(_.WARN_NODE_NOT_AVAIALABLE);
1095
+ this.setWarningText(p.WARN_NODE_NOT_AVAIALABLE);
1096
1096
  return;
1097
1097
  }
1098
1098
  if (this.node.key !== t.key) {
1099
- this.setWarningText(_.WARN_NODE_HAS_CHANGED);
1099
+ this.setWarningText(p.WARN_NODE_HAS_CHANGED);
1100
1100
  return;
1101
1101
  }
1102
1102
  this.node.alias !== t.alias && (this.node.alias = t.alias), this.setWarningText(null);
@@ -1122,13 +1122,13 @@ const Zo = {
1122
1122
  var i, s;
1123
1123
  if (this.node.id)
1124
1124
  return;
1125
- const t = (i = Le()) == null ? void 0 : i[0];
1125
+ const t = (i = Se()) == null ? void 0 : i[0];
1126
1126
  if (!t)
1127
1127
  return;
1128
1128
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1129
1129
  const e = this.getField("NODE");
1130
1130
  e.getOptions(!1), e.setValue(this.node.id);
1131
- const n = (s = we(this.node.id)) == null ? void 0 : s[0];
1131
+ const n = (s = Fe(this.node.id)) == null ? void 0 : s[0];
1132
1132
  if (!n)
1133
1133
  return;
1134
1134
  this.prop.keys = n.keys, this.prop.names = n.names;
@@ -1148,7 +1148,7 @@ const Zo = {
1148
1148
  }, 0);
1149
1149
  },
1150
1150
  genNodeOpts_: function() {
1151
- return We();
1151
+ return je();
1152
1152
  },
1153
1153
  genPropOpts_: function() {
1154
1154
  return Un(this.node.id);
@@ -1156,7 +1156,7 @@ const Zo = {
1156
1156
  onchange: function(t) {
1157
1157
  if (t.type === S.STATE_CHANGE)
1158
1158
  this.checkWarning_();
1159
- else if (t.type === A.BLOCK_CHANGE) {
1159
+ else if (t.type === I.BLOCK_CHANGE) {
1160
1160
  const e = t;
1161
1161
  if (e.blockId !== this.id)
1162
1162
  return;
@@ -1167,7 +1167,7 @@ const Zo = {
1167
1167
  },
1168
1168
  onNodeChange_: function(t) {
1169
1169
  var i;
1170
- const e = H(t);
1170
+ const e = $(t);
1171
1171
  if (!e) {
1172
1172
  console.assert(!1);
1173
1173
  return;
@@ -1175,29 +1175,29 @@ const Zo = {
1175
1175
  const n = this.node.key !== e.key;
1176
1176
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1177
1177
  const o = this.getField("PROP");
1178
- if (o.getOptions(!1), n || !ce(this.node.id, this.prop.keys)) {
1179
- const s = (i = we(this.node.id)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.keys) ?? "";
1178
+ if (o.getOptions(!1), n || !le(this.node.id, this.prop.keys)) {
1179
+ const s = (i = Fe(this.node.id)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.keys) ?? "";
1180
1180
  o.setValue(c), this.prop.keys === c && this.onPropChange_(c);
1181
1181
  }
1182
1182
  },
1183
1183
  onPropChange_: function(t) {
1184
- const e = ce(this.node.id, t);
1184
+ const e = le(this.node.id, t);
1185
1185
  e ? (this.prop.keys = e.keys, this.prop.names = e.names) : (this.prop.keys = "", this.prop.names = []);
1186
1186
  },
1187
1187
  checkWarning_: function() {
1188
- const t = H(this.node.id);
1188
+ const t = $(this.node.id);
1189
1189
  if (!t) {
1190
- this.setWarningText(_.WARN_NODE_NOT_AVAIALABLE);
1190
+ this.setWarningText(p.WARN_NODE_NOT_AVAIALABLE);
1191
1191
  return;
1192
1192
  }
1193
1193
  if (t.key !== this.node.key) {
1194
- this.setWarningText(_.WARN_NODE_HAS_CHANGED);
1194
+ this.setWarningText(p.WARN_NODE_HAS_CHANGED);
1195
1195
  return;
1196
1196
  }
1197
1197
  t.alias !== this.node.alias && (this.node.alias = t.alias);
1198
- const e = ce(this.node.id, this.prop.keys);
1198
+ const e = le(this.node.id, this.prop.keys);
1199
1199
  if (!e) {
1200
- this.setWarningText(_.WARN_PROP_NOT_AVAIALABLE);
1200
+ this.setWarningText(p.WARN_PROP_NOT_AVAIALABLE);
1201
1201
  return;
1202
1202
  }
1203
1203
  M(e.names, this.prop.names) || (this.prop.names = e.names), this.setWarningText(null);
@@ -1222,16 +1222,16 @@ const ei = {
1222
1222
  var i, s;
1223
1223
  if (this.element.key)
1224
1224
  return;
1225
- const t = (i = Ge()) == null ? void 0 : i[0];
1225
+ const t = (i = We()) == null ? void 0 : i[0];
1226
1226
  if (!t)
1227
1227
  return;
1228
1228
  this.element.key = t.key, this.element.name = t.name;
1229
1229
  const e = this.getField("ELEMENT");
1230
1230
  e.getOptions(!1), e.setValue(this.element.key);
1231
- const n = (s = Ye(this.element.key)) == null ? void 0 : s[0];
1231
+ const n = (s = we(this.element.key)) == null ? void 0 : s[0];
1232
1232
  if (!n)
1233
1233
  return;
1234
- this.prop.keys = n.keys, this.prop.names = Me(n.names);
1234
+ this.prop.keys = n.keys, this.prop.names = Ve(n.names);
1235
1235
  const o = this.getField("PROP");
1236
1236
  o.getOptions(!1), o.setValue(this.prop.keys);
1237
1237
  },
@@ -1248,7 +1248,7 @@ const ei = {
1248
1248
  }, 0);
1249
1249
  },
1250
1250
  genElementOpts_: function() {
1251
- return ye();
1251
+ return Ne();
1252
1252
  },
1253
1253
  genPropOpts_: function() {
1254
1254
  return Dn(this.element.key);
@@ -1256,7 +1256,7 @@ const ei = {
1256
1256
  onchange: function(t) {
1257
1257
  if (t.type === S.STATE_CHANGE)
1258
1258
  this.checkWarning_();
1259
- else if (t.type === A.BLOCK_CHANGE) {
1259
+ else if (t.type === I.BLOCK_CHANGE) {
1260
1260
  const e = t;
1261
1261
  if (e.blockId !== this.id)
1262
1262
  return;
@@ -1267,7 +1267,7 @@ const ei = {
1267
1267
  },
1268
1268
  onElementChange_: function(t) {
1269
1269
  var i;
1270
- const e = pe(t);
1270
+ const e = he(t);
1271
1271
  if (!e) {
1272
1272
  console.assert(!1);
1273
1273
  return;
@@ -1275,25 +1275,25 @@ const ei = {
1275
1275
  const n = this.element.key !== e.key;
1276
1276
  this.element.key = e.key, this.element.name = e.name;
1277
1277
  const o = this.getField("PROP");
1278
- if (o.getOptions(!1), n || !ae(this.element.key, this.prop.keys)) {
1279
- const s = (i = Ye(this.element.key)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.keys) ?? "";
1278
+ if (o.getOptions(!1), n || !ce(this.element.key, this.prop.keys)) {
1279
+ const s = (i = we(this.element.key)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.keys) ?? "";
1280
1280
  o.setValue(c), this.prop.keys === c && this.onPropChange_(c);
1281
1281
  }
1282
1282
  },
1283
1283
  onPropChange_: function(t) {
1284
- const e = ae(this.element.key, t);
1284
+ const e = ce(this.element.key, t);
1285
1285
  e ? (this.prop.keys = e.keys, this.prop.names = e.names) : (this.prop.keys = "", this.prop.names = []);
1286
1286
  },
1287
1287
  checkWarning_: function() {
1288
- const t = pe(this.element.key);
1288
+ const t = he(this.element.key);
1289
1289
  if (!t) {
1290
- this.setWarningText(_.WARN_ELEMENT_NOT_AVAILABLE);
1290
+ this.setWarningText(p.WARN_ELEMENT_NOT_AVAILABLE);
1291
1291
  return;
1292
1292
  }
1293
1293
  this.element.name !== t.name && (this.element.name = t.name);
1294
- const e = ae(this.element.key, this.prop.keys);
1294
+ const e = ce(this.element.key, this.prop.keys);
1295
1295
  if (!e) {
1296
- this.setWarningText(_.WARN_PROP_NOT_AVAILABLE);
1296
+ this.setWarningText(p.WARN_PROP_NOT_AVAILABLE);
1297
1297
  return;
1298
1298
  }
1299
1299
  M(e.names, this.prop.names) || (this.prop.names = e.names), this.setWarningText(null);
@@ -1319,7 +1319,7 @@ function ni() {
1319
1319
  const t = [];
1320
1320
  return Pn().forEach(({ id: n, name: o }) => {
1321
1321
  t.push([o, n]);
1322
- }), L(t);
1322
+ }), N(t);
1323
1323
  }
1324
1324
  const oi = {
1325
1325
  init: function() {
@@ -1349,7 +1349,7 @@ const oi = {
1349
1349
  onchange: function(t) {
1350
1350
  if (t.type === S.STATE_CHANGE)
1351
1351
  this.checkWarning_();
1352
- else if (t.type === A.BLOCK_CHANGE) {
1352
+ else if (t.type === I.BLOCK_CHANGE) {
1353
1353
  const e = t;
1354
1354
  if (e.blockId !== this.id)
1355
1355
  return;
@@ -1372,11 +1372,11 @@ const oi = {
1372
1372
  checkWarning_: function() {
1373
1373
  const t = _n(this.argument.id);
1374
1374
  if (!t) {
1375
- this.setWarningText(_.WARN_ARGUMENT_NOT_AVAILABLE);
1375
+ this.setWarningText(p.WARN_ARGUMENT_NOT_AVAILABLE);
1376
1376
  return;
1377
1377
  }
1378
1378
  if (t.name !== this.argument.name && (this.argument.name = t.name), t.type !== this.argument.type) {
1379
- this.setWarningText(_.WARN_ARGUMENT_HAS_CHANGED);
1379
+ this.setWarningText(p.WARN_ARGUMENT_HAS_CHANGED);
1380
1380
  return;
1381
1381
  }
1382
1382
  this.setWarningText(null);
@@ -1397,22 +1397,22 @@ function ii() {
1397
1397
  const t = [];
1398
1398
  return qt().forEach(({ id: n, name: o }) => {
1399
1399
  t.push([o, n]);
1400
- }), L(t);
1400
+ }), N(t);
1401
1401
  }
1402
- function $t(t) {
1402
+ function Gt(t) {
1403
1403
  const e = T.app.appList.find((n) => n.id === t);
1404
1404
  return e ? e.pages : [];
1405
1405
  }
1406
- function Rt(t, e) {
1406
+ function Dt(t, e) {
1407
1407
  const n = T.app.appList.find((o) => o.id === t);
1408
1408
  if (n)
1409
1409
  return n.pages.find((o) => o.id === e);
1410
1410
  }
1411
1411
  function si(t) {
1412
1412
  const e = [];
1413
- return $t(t).forEach(({ id: o, name: i }) => {
1413
+ return Gt(t).forEach(({ id: o, name: i }) => {
1414
1414
  e.push([i, o]);
1415
- }), L(e);
1415
+ }), N(e);
1416
1416
  }
1417
1417
  const xn = {
1418
1418
  id: "",
@@ -1432,7 +1432,7 @@ function ai() {
1432
1432
  return Yn().forEach(({ id: o, name: i }) => {
1433
1433
  let s = i;
1434
1434
  o === "" && (s = t.global.t("x-runtime-lib.notSet")), e.push([s, o]);
1435
- }), L(e);
1435
+ }), N(e);
1436
1436
  }
1437
1437
  const ci = {
1438
1438
  init: function() {
@@ -1460,7 +1460,7 @@ const ci = {
1460
1460
  this.app.id = t.id, this.app.name = t.name;
1461
1461
  const e = this.getField("APP");
1462
1462
  e.getOptions(!1), e.setValue(this.app.id);
1463
- const n = (s = $t(this.app.id)) == null ? void 0 : s[0];
1463
+ const n = (s = Gt(this.app.id)) == null ? void 0 : s[0];
1464
1464
  if (!n)
1465
1465
  return;
1466
1466
  this.page.id = n.id, this.page.name = n.name;
@@ -1488,7 +1488,7 @@ const ci = {
1488
1488
  onchange: function(t) {
1489
1489
  if (t.type === S.STATE_CHANGE)
1490
1490
  this.checkWarning_();
1491
- else if (t.type === A.BLOCK_CHANGE) {
1491
+ else if (t.type === I.BLOCK_CHANGE) {
1492
1492
  const e = t;
1493
1493
  if (e.blockId !== this.id)
1494
1494
  return;
@@ -1507,25 +1507,25 @@ const ci = {
1507
1507
  const n = this.app.id !== e.id;
1508
1508
  this.app.id = e.id, this.app.name = e.name;
1509
1509
  const o = this.getField("PAGE");
1510
- if (o.getOptions(!1), n || !Rt(this.app.id, this.page.id)) {
1511
- const s = (i = $t(this.app.id)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.id) ?? "";
1510
+ if (o.getOptions(!1), n || !Dt(this.app.id, this.page.id)) {
1511
+ const s = (i = Gt(this.app.id)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.id) ?? "";
1512
1512
  o.setValue(c), this.page.id === c && this.onPageChange_(c);
1513
1513
  }
1514
1514
  },
1515
1515
  onPageChange_: function(t) {
1516
- const e = Rt(this.app.id, t);
1516
+ const e = Dt(this.app.id, t);
1517
1517
  e ? (this.page.id = e.id, this.page.name = e.name) : (this.page.id = "", this.page.name = "");
1518
1518
  },
1519
1519
  checkWarning_: function() {
1520
1520
  const t = pn(this.app.id);
1521
1521
  if (!t) {
1522
- this.setWarningText(_.WARN_APP_NOT_AVAIALABLE);
1522
+ this.setWarningText(p.WARN_APP_NOT_AVAIALABLE);
1523
1523
  return;
1524
1524
  }
1525
1525
  t.name !== this.app.name && (this.app.name = t.name);
1526
- const e = Rt(this.app.id, this.page.id);
1526
+ const e = Dt(this.app.id, this.page.id);
1527
1527
  if (!e) {
1528
- this.setWarningText(_.WARN_PAGE_NOT_AVAIALABLE);
1528
+ this.setWarningText(p.WARN_PAGE_NOT_AVAIALABLE);
1529
1529
  return;
1530
1530
  }
1531
1531
  e.name !== this.page.name && (this.page.name = e.name), this.setWarningText(null);
@@ -1553,13 +1553,13 @@ const li = {
1553
1553
  var i, s;
1554
1554
  if (this.node.id)
1555
1555
  return;
1556
- const t = (i = Le("event")) == null ? void 0 : i[0];
1556
+ const t = (i = Se("event")) == null ? void 0 : i[0];
1557
1557
  if (!t)
1558
1558
  return;
1559
1559
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
1560
1560
  const e = this.getField("NODE");
1561
1561
  e.getOptions(!1), e.setValue(this.node.id);
1562
- const n = (s = Ft(this.node.id)) == null ? void 0 : s[0];
1562
+ const n = (s = Kt(this.node.id)) == null ? void 0 : s[0];
1563
1563
  if (!n)
1564
1564
  return;
1565
1565
  this.event.key = n.key, this.event.name = n.name, this.event.params = n.params;
@@ -1579,7 +1579,7 @@ const li = {
1579
1579
  }, 0);
1580
1580
  },
1581
1581
  genNodeOpts_: function() {
1582
- return We("event");
1582
+ return je("event");
1583
1583
  },
1584
1584
  genEventOpts_: function() {
1585
1585
  return Ko(this.node.id);
@@ -1587,7 +1587,7 @@ const li = {
1587
1587
  onchange: function(t) {
1588
1588
  if (t.type === S.STATE_CHANGE)
1589
1589
  this.checkWarning_();
1590
- else if (t.type === A.BLOCK_CHANGE) {
1590
+ else if (t.type === I.BLOCK_CHANGE) {
1591
1591
  const e = t;
1592
1592
  if (e.blockId !== this.id)
1593
1593
  return;
@@ -1598,7 +1598,7 @@ const li = {
1598
1598
  },
1599
1599
  onNodeChange_: function(t) {
1600
1600
  var i;
1601
- const e = H(t);
1601
+ const e = $(t);
1602
1602
  if (!e) {
1603
1603
  console.assert(!1);
1604
1604
  return;
@@ -1606,13 +1606,13 @@ const li = {
1606
1606
  const n = this.node.key !== e.key;
1607
1607
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
1608
1608
  const o = this.getField("EVENT");
1609
- if (o.getOptions(!1), n || !St(this.node.id, this.event.key)) {
1610
- const s = (i = Ft(this.node.id)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.key) ?? "";
1609
+ if (o.getOptions(!1), n || !bt(this.node.id, this.event.key)) {
1610
+ const s = (i = Kt(this.node.id)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.key) ?? "";
1611
1611
  o.setValue(c), this.event.key === c && this.onEventChange_(c);
1612
1612
  }
1613
1613
  },
1614
1614
  onEventChange_: function(t) {
1615
- const e = St(this.node.id, t);
1615
+ const e = bt(this.node.id, t);
1616
1616
  e ? (this.event.key = e.key, this.event.name = e.name, this.event.params = e.params) : (this.event.key = "", this.event.name = "", this.event.params = []), this.updateShape_(), setTimeout(() => {
1617
1617
  this.ensureBlocks_();
1618
1618
  }, 0);
@@ -1634,23 +1634,23 @@ const li = {
1634
1634
  }), t.length > 0 && w(this, t);
1635
1635
  },
1636
1636
  checkWarning_: function() {
1637
- const t = H(this.node.id);
1637
+ const t = $(this.node.id);
1638
1638
  if (!t) {
1639
- this.setWarningText(_.WARN_NODE_NOT_AVAILABLE);
1639
+ this.setWarningText(p.WARN_NODE_NOT_AVAILABLE);
1640
1640
  return;
1641
1641
  }
1642
1642
  if (t.key !== this.node.key) {
1643
- this.setWarningText(_.WARN_NODE_HAS_CHANGED);
1643
+ this.setWarningText(p.WARN_NODE_HAS_CHANGED);
1644
1644
  return;
1645
1645
  }
1646
1646
  t.alias !== this.node.alias && (this.node.alias = t.alias);
1647
- const e = St(this.node.id, this.event.key);
1647
+ const e = bt(this.node.id, this.event.key);
1648
1648
  if (!e) {
1649
- this.setWarningText(_.WARN_EVENT_NOT_AVAILABLE);
1649
+ this.setWarningText(p.WARN_EVENT_NOT_AVAILABLE);
1650
1650
  return;
1651
1651
  }
1652
1652
  if (e.name !== this.event.name && (this.event.name = e.name), !M(e.params, this.event.params)) {
1653
- this.setWarningText(_.WARN_EVENT_HAS_CHANGED);
1653
+ this.setWarningText(p.WARN_EVENT_HAS_CHANGED);
1654
1654
  return;
1655
1655
  }
1656
1656
  this.setWarningText(null);
@@ -1683,13 +1683,13 @@ const ui = {
1683
1683
  var i, s;
1684
1684
  if (this.element.key)
1685
1685
  return;
1686
- const t = (i = Ge("event")) == null ? void 0 : i[0];
1686
+ const t = (i = We("event")) == null ? void 0 : i[0];
1687
1687
  if (!t)
1688
1688
  return;
1689
1689
  this.element.key = t.key, this.element.name = t.name;
1690
1690
  const e = this.getField("ELEMENT");
1691
1691
  e.getOptions(!1), e.setValue(this.element.key);
1692
- const n = (s = Yt(this.element.key)) == null ? void 0 : s[0];
1692
+ const n = (s = wt(this.element.key)) == null ? void 0 : s[0];
1693
1693
  if (!n)
1694
1694
  return;
1695
1695
  this.event.key = n.key, this.event.name = n.name, this.event.params = n.params;
@@ -1709,7 +1709,7 @@ const ui = {
1709
1709
  }, 0);
1710
1710
  },
1711
1711
  genElementOpts_: function() {
1712
- return ye("event");
1712
+ return Ne("event");
1713
1713
  },
1714
1714
  genEventOpts_: function() {
1715
1715
  return wo(this.element.key);
@@ -1717,7 +1717,7 @@ const ui = {
1717
1717
  onchange: function(t) {
1718
1718
  if (t.type === S.STATE_CHANGE)
1719
1719
  this.checkWarning_();
1720
- else if (t.type === A.BLOCK_CHANGE) {
1720
+ else if (t.type === I.BLOCK_CHANGE) {
1721
1721
  const e = t;
1722
1722
  if (e.blockId !== this.id)
1723
1723
  return;
@@ -1728,7 +1728,7 @@ const ui = {
1728
1728
  },
1729
1729
  onElementChange_: function(t) {
1730
1730
  var i;
1731
- const e = pe(t);
1731
+ const e = he(t);
1732
1732
  if (!e) {
1733
1733
  console.assert(!1);
1734
1734
  return;
@@ -1737,7 +1737,7 @@ const ui = {
1737
1737
  this.element.key = e.key, this.element.name = e.name;
1738
1738
  const o = this.getField("EVENT");
1739
1739
  if (o.getOptions(!1), n || !Lt(this.element.key, this.event.key)) {
1740
- const s = (i = Yt(this.element.key)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.key) ?? "";
1740
+ const s = (i = wt(this.element.key)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.key) ?? "";
1741
1741
  o.setValue(c, !1), this.event.key !== c && this.onEventChange_(c);
1742
1742
  }
1743
1743
  },
@@ -1764,19 +1764,19 @@ const ui = {
1764
1764
  }), t.length > 0 && w(this, t);
1765
1765
  },
1766
1766
  checkWarning_: function() {
1767
- const t = pe(this.element.key);
1767
+ const t = he(this.element.key);
1768
1768
  if (!t) {
1769
- this.setWarningText(_.WARN_ELEMENT_NOT_AVAILABLE);
1769
+ this.setWarningText(p.WARN_ELEMENT_NOT_AVAILABLE);
1770
1770
  return;
1771
1771
  }
1772
1772
  t.name !== this.element.name && (this.element.name = t.name);
1773
1773
  const e = Lt(this.element.key, this.event.key);
1774
1774
  if (!e) {
1775
- this.setWarningText(_.WARN_EVENT_NOT_AVAILABLE);
1775
+ this.setWarningText(p.WARN_EVENT_NOT_AVAILABLE);
1776
1776
  return;
1777
1777
  }
1778
1778
  if (e.name !== this.event.name && (this.event.name = e.name), !M(e.params, this.event.params)) {
1779
- this.setWarningText(_.WARN_EVENT_HAS_CHANGED);
1779
+ this.setWarningText(p.WARN_EVENT_HAS_CHANGED);
1780
1780
  return;
1781
1781
  }
1782
1782
  this.setWarningText(null);
@@ -1937,7 +1937,7 @@ const pi = {
1937
1937
  onchange: function(t) {
1938
1938
  if (t.type === S.STATE_CHANGE)
1939
1939
  this.checkWarning_();
1940
- else if (t.type === A.BLOCK_CHANGE) {
1940
+ else if (t.type === I.BLOCK_CHANGE) {
1941
1941
  const e = t;
1942
1942
  if (e.blockId !== this.id)
1943
1943
  return;
@@ -1956,11 +1956,11 @@ const pi = {
1956
1956
  },
1957
1957
  checkWarning_: function() {
1958
1958
  if (this.comp.id === void 0) {
1959
- this.setWarningText(_.WARN_COMP_NOT_AVAIALABLE);
1959
+ this.setWarningText(p.WARN_COMP_NOT_AVAIALABLE);
1960
1960
  return;
1961
1961
  }
1962
1962
  if (!hn(this.comp.id)) {
1963
- this.setWarningText(_.WARN_COMP_NOT_AVAIALABLE);
1963
+ this.setWarningText(p.WARN_COMP_NOT_AVAIALABLE);
1964
1964
  return;
1965
1965
  }
1966
1966
  this.setWarningText(null);
@@ -1986,7 +1986,7 @@ const hi = {
1986
1986
  var i, s;
1987
1987
  if (this.method.id)
1988
1988
  return;
1989
- const t = (i = Fe()) == null ? void 0 : i[0];
1989
+ const t = (i = Ke()) == null ? void 0 : i[0];
1990
1990
  if (!t)
1991
1991
  return;
1992
1992
  this.method.id = t.id, this.method.name = t.name;
@@ -2019,7 +2019,7 @@ const hi = {
2019
2019
  onchange: function(t) {
2020
2020
  if (t.type === S.STATE_CHANGE)
2021
2021
  this.checkWarning_();
2022
- else if (t.type === A.BLOCK_CHANGE) {
2022
+ else if (t.type === I.BLOCK_CHANGE) {
2023
2023
  const e = t;
2024
2024
  if (e.blockId !== this.id)
2025
2025
  return;
@@ -2031,7 +2031,7 @@ const hi = {
2031
2031
  },
2032
2032
  onMethodChange_: function(t) {
2033
2033
  var i;
2034
- const e = tt(t);
2034
+ const e = nt(t);
2035
2035
  if (!e) {
2036
2036
  console.assert(!1);
2037
2037
  return;
@@ -2039,13 +2039,13 @@ const hi = {
2039
2039
  const n = this.method.id !== e.id;
2040
2040
  this.method.id = e.id, this.method.name = e.name;
2041
2041
  const o = this.getField("OUTPUT");
2042
- if (o.getOptions(!1), n || !Bt(this.method.id, this.output.id)) {
2042
+ if (o.getOptions(!1), n || !Rt(this.method.id, this.output.id)) {
2043
2043
  const s = (i = Ht(this.method.id)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.id) ?? "";
2044
2044
  o.setValue(c), this.output.id === c && this.onOutputChange_(c);
2045
2045
  }
2046
2046
  },
2047
2047
  onOutputChange_: function(t) {
2048
- const e = Bt(this.method.id, t);
2048
+ const e = Rt(this.method.id, t);
2049
2049
  e ? (this.output.id = e.id, this.output.name = e.name, this.output.type = e.type) : (this.output.id = "", this.output.name = "", this.output.type = "");
2050
2050
  },
2051
2051
  updateShape_: function() {
@@ -2064,19 +2064,19 @@ const hi = {
2064
2064
  e === "string" ? t = b({ type: "string", default: "" }) : e === "number" ? t = b({ type: "number", default: 0 }) : e === "boolean" && (t = b({ type: "boolean", default: !1 })), this.getInput("VALUE").connection.setShadowDom(t);
2065
2065
  },
2066
2066
  checkWarning_: function() {
2067
- const t = tt(this.method.id);
2067
+ const t = nt(this.method.id);
2068
2068
  if (!t) {
2069
- this.setWarningText(_.WARN_METHOD_NOT_AVAILABLE);
2069
+ this.setWarningText(p.WARN_METHOD_NOT_AVAILABLE);
2070
2070
  return;
2071
2071
  }
2072
2072
  t.name !== this.method.name && (this.method.name = t.name);
2073
- const e = Bt(this.method.id, this.output.id);
2073
+ const e = Rt(this.method.id, this.output.id);
2074
2074
  if (!e) {
2075
- this.setWarningText(_.WARN_OUTPUT_NOT_AVAILABLE);
2075
+ this.setWarningText(p.WARN_OUTPUT_NOT_AVAILABLE);
2076
2076
  return;
2077
2077
  }
2078
2078
  if (e.name !== this.output.name && (this.output.name = e.name), e.type !== this.output.type) {
2079
- this.setWarningText(_.WARN_OUTPUT_HAS_CHANGED);
2079
+ this.setWarningText(p.WARN_OUTPUT_HAS_CHANGED);
2080
2080
  return;
2081
2081
  }
2082
2082
  this.setWarningText(null);
@@ -2124,13 +2124,13 @@ const di = {
2124
2124
  var i, s;
2125
2125
  if (this.node.id)
2126
2126
  return;
2127
- const t = (i = Le()) == null ? void 0 : i[0];
2127
+ const t = (i = Se()) == null ? void 0 : i[0];
2128
2128
  if (!t)
2129
2129
  return;
2130
2130
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
2131
2131
  const e = this.getField("NODE");
2132
2132
  e.getOptions(!1), e.setValue(this.node.id);
2133
- const n = (s = we(this.node.id, !0)) == null ? void 0 : s[0];
2133
+ const n = (s = Fe(this.node.id, !0)) == null ? void 0 : s[0];
2134
2134
  if (!n)
2135
2135
  return;
2136
2136
  this.prop.keys = n.keys, this.prop.names = n.names;
@@ -2150,7 +2150,7 @@ const di = {
2150
2150
  }, 0);
2151
2151
  },
2152
2152
  genNodeOpts_: function() {
2153
- return We();
2153
+ return je();
2154
2154
  },
2155
2155
  genPropOpts_: function() {
2156
2156
  return Un(this.node.id);
@@ -2158,7 +2158,7 @@ const di = {
2158
2158
  onchange: function(t) {
2159
2159
  if (t.type === S.STATE_CHANGE)
2160
2160
  this.checkWarning_();
2161
- else if (t.type === A.BLOCK_CHANGE) {
2161
+ else if (t.type === I.BLOCK_CHANGE) {
2162
2162
  const e = t;
2163
2163
  if (e.blockId !== this.id)
2164
2164
  return;
@@ -2169,7 +2169,7 @@ const di = {
2169
2169
  },
2170
2170
  onNodeChange_: function(t) {
2171
2171
  var i;
2172
- const e = H(t);
2172
+ const e = $(t);
2173
2173
  if (!e) {
2174
2174
  console.assert(!1);
2175
2175
  return;
@@ -2177,48 +2177,48 @@ const di = {
2177
2177
  const n = this.node.key !== e.key;
2178
2178
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2179
2179
  const o = this.getField("PROP");
2180
- if (o.getOptions(!1), n || !ce(this.node.id, this.prop.keys)) {
2181
- const s = (i = we(this.node.id)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.keys) ?? "";
2180
+ if (o.getOptions(!1), n || !le(this.node.id, this.prop.keys)) {
2181
+ const s = (i = Fe(this.node.id)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.keys) ?? "";
2182
2182
  o.setValue(c), this.prop.keys === c && this.onPropChange_(c);
2183
2183
  }
2184
2184
  },
2185
2185
  onPropChange_: function(t) {
2186
- const e = ce(this.node.id, t);
2186
+ const e = le(this.node.id, t);
2187
2187
  e ? (this.prop.keys = e.keys, this.prop.names = e.names) : (this.prop.keys = "", this.prop.names = []), this.ensureBlocks_(), this.updateCheck_();
2188
2188
  },
2189
2189
  ensureBlocks_: function() {
2190
2190
  if (this.isInsertionMarker())
2191
2191
  return;
2192
- const t = ce(this.node.id, this.prop.keys);
2192
+ const t = le(this.node.id, this.prop.keys);
2193
2193
  if (!t)
2194
2194
  return;
2195
2195
  const e = this.getInput("VALUE"), n = e.connection.targetBlock();
2196
2196
  n && n.dispose();
2197
2197
  let o = null;
2198
2198
  const i = t.raw;
2199
- i.ui === "dummy" ? console.assert(!0) : i.ui === "strInput" ? o = re(this.workspace, i.default) : i.ui === "numInput" ? o = ke(this.workspace, i.default) : i.ui === "switch" ? o = dt(this.workspace, i.default) : i.ui === "select" ? o = bn(this.workspace, i.items) : i.ui === "multiTypes" ? o = Bn(this.workspace, i.types) : i.ui === "compSelect" && (o = Rn(this.workspace)), o && (e.connection.setCheck(null), e.connection.connect(o.outputConnection));
2199
+ i.ui === "dummy" ? console.assert(!0) : i.ui === "strInput" ? o = _e(this.workspace, i.default) : i.ui === "numInput" ? o = ve(this.workspace, i.default) : i.ui === "switch" ? o = ft(this.workspace, i.default) : i.ui === "select" ? o = bn(this.workspace, i.items) : i.ui === "multiTypes" ? o = Bn(this.workspace, i.types) : i.ui === "compSelect" && (o = Rn(this.workspace)), o && (e.connection.setCheck(null), e.connection.connect(o.outputConnection));
2200
2200
  },
2201
2201
  updateCheck_: function() {
2202
- const t = ce(this.node.id, this.prop.keys);
2202
+ const t = le(this.node.id, this.prop.keys);
2203
2203
  if (!t)
2204
2204
  return;
2205
2205
  const e = this.getInput("VALUE"), n = t.raw;
2206
- n.ui === "strInput" ? e.setCheck("String") : n.ui === "numInput" ? e.setCheck("Number") : n.ui === "switch" ? e.setCheck("Boolean") : n.ui === "colorPicker" ? e.setCheck("Colour") : n.ui === "select" ? e.setCheck(Ce(n.items)) : n.ui === "multiTypes" ? e.setCheck(Ce(n.types)) : n.ui === "compSelect" ? e.setCheck("Comp") : e.setCheck(null);
2206
+ n.ui === "strInput" ? e.setCheck("String") : n.ui === "numInput" ? e.setCheck("Number") : n.ui === "switch" ? e.setCheck("Boolean") : n.ui === "colorPicker" ? e.setCheck("Colour") : n.ui === "select" ? e.setCheck(ye(n.items)) : n.ui === "multiTypes" ? e.setCheck(ye(n.types)) : n.ui === "compSelect" ? e.setCheck("Comp") : e.setCheck(null);
2207
2207
  },
2208
2208
  checkWarning_: function() {
2209
- const t = H(this.node.id);
2209
+ const t = $(this.node.id);
2210
2210
  if (!t) {
2211
- this.setWarningText(_.WARN_NODE_NOT_AVAIALABLE);
2211
+ this.setWarningText(p.WARN_NODE_NOT_AVAIALABLE);
2212
2212
  return;
2213
2213
  }
2214
2214
  if (t.key !== this.node.key) {
2215
- this.setWarningText(_.WARN_NODE_HAS_CHANGED);
2215
+ this.setWarningText(p.WARN_NODE_HAS_CHANGED);
2216
2216
  return;
2217
2217
  }
2218
2218
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2219
- const e = ce(this.node.id, this.prop.keys);
2219
+ const e = le(this.node.id, this.prop.keys);
2220
2220
  if (!e) {
2221
- this.setWarningText(_.WARN_PROP_NOT_AVAIALABLE);
2221
+ this.setWarningText(p.WARN_PROP_NOT_AVAIALABLE);
2222
2222
  return;
2223
2223
  }
2224
2224
  M(e.names, this.prop.names) || (this.prop.names = e.names), this.setWarningText(null);
@@ -2244,13 +2244,13 @@ const fi = {
2244
2244
  var i, s;
2245
2245
  if (this.element.key)
2246
2246
  return;
2247
- const t = (i = Ge()) == null ? void 0 : i[0];
2247
+ const t = (i = We()) == null ? void 0 : i[0];
2248
2248
  if (!t)
2249
2249
  return;
2250
2250
  this.element.key = t.key, this.element.name = t.name;
2251
2251
  const e = this.getField("ELEMENT");
2252
2252
  e.getOptions(!1), e.setValue(this.element.key);
2253
- const n = (s = Ye(this.element.key, !0)) == null ? void 0 : s[0];
2253
+ const n = (s = we(this.element.key, !0)) == null ? void 0 : s[0];
2254
2254
  if (!n)
2255
2255
  return;
2256
2256
  this.prop.keys = n.keys, this.prop.names = n.names;
@@ -2270,7 +2270,7 @@ const fi = {
2270
2270
  }, 0);
2271
2271
  },
2272
2272
  genElementOpts_: function() {
2273
- return ye();
2273
+ return Ne();
2274
2274
  },
2275
2275
  genPropOpts_: function() {
2276
2276
  return Dn(this.element.key);
@@ -2278,7 +2278,7 @@ const fi = {
2278
2278
  onchange: function(t) {
2279
2279
  if (t.type === S.STATE_CHANGE)
2280
2280
  this.checkWarning_();
2281
- else if (t.type === A.BLOCK_CHANGE) {
2281
+ else if (t.type === I.BLOCK_CHANGE) {
2282
2282
  const e = t;
2283
2283
  if (e.blockId !== this.id)
2284
2284
  return;
@@ -2289,7 +2289,7 @@ const fi = {
2289
2289
  },
2290
2290
  onElementChange_: function(t) {
2291
2291
  var i;
2292
- const e = pe(t);
2292
+ const e = he(t);
2293
2293
  if (!e) {
2294
2294
  console.assert(!1);
2295
2295
  return;
@@ -2297,48 +2297,48 @@ const fi = {
2297
2297
  const n = this.element.key !== e.key;
2298
2298
  this.element.key = e.key, this.element.name = e.name;
2299
2299
  const o = this.getField("PROP");
2300
- if (o.getOptions(!1), n || !ae(this.element.key, this.prop.keys)) {
2301
- const s = (i = Ye(this.element.key)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.keys) ?? "";
2300
+ if (o.getOptions(!1), n || !ce(this.element.key, this.prop.keys)) {
2301
+ const s = (i = we(this.element.key)) == null ? void 0 : i[0], c = (s == null ? void 0 : s.keys) ?? "";
2302
2302
  o.setValue(c), this.prop.keys === c && this.onPropChange_(c);
2303
2303
  }
2304
2304
  },
2305
2305
  onPropChange_: function(t) {
2306
- const e = ae(this.element.key, t);
2306
+ const e = ce(this.element.key, t);
2307
2307
  e ? (this.prop.keys = e.keys, this.prop.names = e.names) : (this.prop.keys = "", this.prop.names = []), this.ensureBlocks_(), this.updateCheck_();
2308
2308
  },
2309
2309
  ensureBlocks_: function() {
2310
2310
  if (this.isInsertionMarker())
2311
2311
  return;
2312
- const t = ae(this.element.key, this.prop.keys);
2312
+ const t = ce(this.element.key, this.prop.keys);
2313
2313
  if (!t)
2314
2314
  return;
2315
2315
  const e = this.getInput("VALUE"), n = e.connection.targetBlock();
2316
2316
  n && n.dispose();
2317
2317
  let o = null;
2318
2318
  const i = t.raw;
2319
- i.ui === "dummy" ? console.assert(!0) : i.ui === "strInput" ? o = re(this.workspace, i.default) : i.ui === "numInput" ? o = ke(this.workspace, i.default) : i.ui === "switch" ? o = dt(this.workspace, i.default) : i.ui === "select" ? o = bn(this.workspace, i.items) : i.ui === "multiTypes" ? o = Bn(this.workspace, i.types) : i.ui === "compSelect" && (o = Rn(this.workspace)), o && (e.connection.setCheck(null), e.connection.connect(o.outputConnection));
2319
+ i.ui === "dummy" ? console.assert(!0) : i.ui === "strInput" ? o = _e(this.workspace, i.default) : i.ui === "numInput" ? o = ve(this.workspace, i.default) : i.ui === "switch" ? o = ft(this.workspace, i.default) : i.ui === "select" ? o = bn(this.workspace, i.items) : i.ui === "multiTypes" ? o = Bn(this.workspace, i.types) : i.ui === "compSelect" && (o = Rn(this.workspace)), o && (e.connection.setCheck(null), e.connection.connect(o.outputConnection));
2320
2320
  },
2321
2321
  updateCheck_: function() {
2322
- const t = ae(this.element.key, this.prop.keys);
2322
+ const t = ce(this.element.key, this.prop.keys);
2323
2323
  if (!t)
2324
2324
  return;
2325
2325
  const e = this.getInput("VALUE"), n = t.raw;
2326
- n.ui === "strInput" ? e.setCheck("String") : n.ui === "numInput" ? e.setCheck("Number") : n.ui === "switch" ? e.setCheck("Boolean") : n.ui === "colorPicker" ? e.setCheck("Colour") : n.ui === "select" ? e.setCheck(Ce(n.items)) : n.ui === "multiTypes" ? e.setCheck(Ce(n.types)) : n.ui === "compSelect" ? e.setCheck("Comp") : e.setCheck(null);
2326
+ n.ui === "strInput" ? e.setCheck("String") : n.ui === "numInput" ? e.setCheck("Number") : n.ui === "switch" ? e.setCheck("Boolean") : n.ui === "colorPicker" ? e.setCheck("Colour") : n.ui === "select" ? e.setCheck(ye(n.items)) : n.ui === "multiTypes" ? e.setCheck(ye(n.types)) : n.ui === "compSelect" ? e.setCheck("Comp") : e.setCheck(null);
2327
2327
  },
2328
2328
  checkWarning_: function() {
2329
- const t = pe(this.element.key);
2329
+ const t = he(this.element.key);
2330
2330
  if (!t) {
2331
- this.setWarningText(_.WARN_ELEMENT_NOT_AVAILABLE);
2331
+ this.setWarningText(p.WARN_ELEMENT_NOT_AVAILABLE);
2332
2332
  return;
2333
2333
  }
2334
2334
  if (t.key !== this.element.key) {
2335
- this.setWarningText(_.WARN_ELEMENT_HAS_CHANGED);
2335
+ this.setWarningText(p.WARN_ELEMENT_HAS_CHANGED);
2336
2336
  return;
2337
2337
  }
2338
2338
  t.name !== this.element.name && (this.element.name = t.name);
2339
- const e = ae(this.element.key, this.prop.keys);
2339
+ const e = ce(this.element.key, this.prop.keys);
2340
2340
  if (!e) {
2341
- this.setWarningText(_.WARN_PROP_NOT_AVAIALABLE);
2341
+ this.setWarningText(p.WARN_PROP_NOT_AVAIALABLE);
2342
2342
  return;
2343
2343
  }
2344
2344
  M(e.names, this.prop.names) || (this.prop.names = e.names), this.setWarningText(null);
@@ -2386,7 +2386,7 @@ const mi = {
2386
2386
  onchange: function(t) {
2387
2387
  if (t.type === S.STATE_CHANGE)
2388
2388
  this.checkWarning_();
2389
- else if (t.type === A.BLOCK_CHANGE) {
2389
+ else if (t.type === I.BLOCK_CHANGE) {
2390
2390
  const e = t;
2391
2391
  if (e.blockId !== this.id)
2392
2392
  return;
@@ -2428,11 +2428,11 @@ const mi = {
2428
2428
  checkWarning_: function() {
2429
2429
  const t = rn(this.event.id);
2430
2430
  if (!t) {
2431
- this.setWarningText(_.WARN_EVENT_NOT_AVAILABLE);
2431
+ this.setWarningText(p.WARN_EVENT_NOT_AVAILABLE);
2432
2432
  return;
2433
2433
  }
2434
2434
  if (t.name !== this.event.name && (this.event.name = t.name), !M(t.params, this.event.params)) {
2435
- this.setWarningText(_.WARN_EVENT_HAS_CHANGED);
2435
+ this.setWarningText(p.WARN_EVENT_HAS_CHANGED);
2436
2436
  return;
2437
2437
  }
2438
2438
  this.setWarningText(null);
@@ -2584,7 +2584,7 @@ function ${a.FUNCTION_NAME_PLACEHOLDER_}(r, g, b) {
2584
2584
  `
2585
2585
  )}(${e}, ${n}, ${o})`, l.FUNCTION_CALL];
2586
2586
  };
2587
- const Ti = I.xml, Ei = [
2587
+ const Ti = g.xml, Ei = [
2588
2588
  {
2589
2589
  type: "add_data_v1",
2590
2590
  inputs: ["SUCCESS", "MESSAGE", "DATA"]
@@ -2676,7 +2676,7 @@ const Ai = {
2676
2676
  this.key = t, this.name = e, this.locale = n, this.updateShape_();
2677
2677
  },
2678
2678
  onchange: function(t) {
2679
- if (t.type === A.BLOCK_MOVE) {
2679
+ if (t.type === I.BLOCK_MOVE) {
2680
2680
  const e = t;
2681
2681
  if (e.blockId !== this.id)
2682
2682
  return;
@@ -2688,7 +2688,7 @@ const Ai = {
2688
2688
  const e = this.workspace.getBlockById(t.oldParentId);
2689
2689
  if (e && gi(e.type, t.oldInputName))
2690
2690
  try {
2691
- A.disable();
2691
+ I.disable();
2692
2692
  const o = (n = e.getInput(t.oldInputName)) == null ? void 0 : n.connection;
2693
2693
  if (o) {
2694
2694
  const i = Jt(
@@ -2700,48 +2700,48 @@ const Ai = {
2700
2700
  o.connect(i.outputConnection);
2701
2701
  }
2702
2702
  } finally {
2703
- A.enable();
2703
+ I.enable();
2704
2704
  }
2705
2705
  },
2706
2706
  updateShape_: function() {
2707
- this.locale ? this.setFieldValue(_[this.name], "LABEL") : this.setFieldValue(this.name, "LABEL");
2707
+ this.locale ? this.setFieldValue(p[this.name], "LABEL") : this.setFieldValue(this.name, "LABEL");
2708
2708
  }
2709
2709
  };
2710
2710
  m.parameter_v1 = Ai;
2711
2711
  a.forBlock.parameter_v1 = function(t) {
2712
2712
  return [t.key, l.ATOMIC];
2713
2713
  };
2714
- function ve(t) {
2714
+ function Le(t) {
2715
2715
  const e = [];
2716
2716
  return T.compute.spaces.forEach((n) => {
2717
2717
  n.funcs.length > 0 && e.push(n);
2718
2718
  }), e;
2719
2719
  }
2720
- function nt(t) {
2720
+ function ot(t) {
2721
2721
  return T.compute.spaces.find((e) => e.id === t);
2722
2722
  }
2723
2723
  function wn(t) {
2724
2724
  const e = [];
2725
- return ve().forEach(({ id: o, name: i }) => {
2725
+ return Le().forEach(({ id: o, name: i }) => {
2726
2726
  e.push([i, o]);
2727
- }), L(e);
2727
+ }), N(e);
2728
2728
  }
2729
- function Ke(t) {
2729
+ function $e(t) {
2730
2730
  const e = T.compute.spaces.find((n) => n.id === t);
2731
2731
  return e ? e.funcs : [];
2732
2732
  }
2733
- function Oe(t, e) {
2733
+ function ke(t, e) {
2734
2734
  const n = T.compute.spaces.find((o) => o.id === t);
2735
2735
  if (n)
2736
2736
  return n.funcs.find((o) => o.id === e);
2737
2737
  }
2738
2738
  function Fn(t) {
2739
2739
  const e = [];
2740
- return Ke(t).forEach(({ id: o, name: i }) => {
2740
+ return $e(t).forEach(({ id: o, name: i }) => {
2741
2741
  e.push([i, o]);
2742
- }), L(e);
2742
+ }), N(e);
2743
2743
  }
2744
- function Gt() {
2744
+ function Wt() {
2745
2745
  return T.compute.activeFunc;
2746
2746
  }
2747
2747
  function dn(t) {
@@ -2752,7 +2752,7 @@ function Ii() {
2752
2752
  const t = [], { outputs: e } = T.compute.activeFunc;
2753
2753
  return e.forEach(({ id: n, name: o }) => {
2754
2754
  t.push([o, n]);
2755
- }), L(t);
2755
+ }), N(t);
2756
2756
  }
2757
2757
  const Oi = {
2758
2758
  init: function() {
@@ -2770,13 +2770,13 @@ const Oi = {
2770
2770
  var i, s;
2771
2771
  if (this.space.id)
2772
2772
  return;
2773
- const t = (i = ve()) == null ? void 0 : i[0];
2773
+ const t = (i = Le()) == null ? void 0 : i[0];
2774
2774
  if (!t)
2775
2775
  return;
2776
2776
  this.space.id = t.id, this.space.name = t.name;
2777
2777
  const e = this.getField("SPACE");
2778
2778
  e.getOptions(!1), e.setValue(this.space.id);
2779
- const n = (s = Ke(this.space.id)) == null ? void 0 : s[0];
2779
+ const n = (s = $e(this.space.id)) == null ? void 0 : s[0];
2780
2780
  if (!n)
2781
2781
  return;
2782
2782
  this.func.id = n.id, this.func.name = n.name, this.func.inputs = n.inputs, this.func.outputs = n.outputs;
@@ -2804,7 +2804,7 @@ const Oi = {
2804
2804
  onchange: function(t) {
2805
2805
  if (t.type === S.STATE_CHANGE)
2806
2806
  this.checkWarning_();
2807
- else if (t.type === A.BLOCK_CHANGE) {
2807
+ else if (t.type === I.BLOCK_CHANGE) {
2808
2808
  const e = t;
2809
2809
  if (e.blockId !== this.id)
2810
2810
  return;
@@ -2815,19 +2815,19 @@ const Oi = {
2815
2815
  },
2816
2816
  onSpaceChange_: function(t) {
2817
2817
  var i;
2818
- const e = nt(t);
2818
+ const e = ot(t);
2819
2819
  if (!e) {
2820
2820
  console.assert(!1);
2821
2821
  return;
2822
2822
  }
2823
2823
  let n = !1;
2824
- if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !Oe(this.space.id, this.func.id)) {
2825
- const s = (i = Ke(this.space.id)) == null ? void 0 : i[0];
2824
+ if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !ke(this.space.id, this.func.id)) {
2825
+ const s = (i = $e(this.space.id)) == null ? void 0 : i[0];
2826
2826
  this.setFieldValue((s == null ? void 0 : s.id) ?? "", "FUNC");
2827
2827
  }
2828
2828
  },
2829
2829
  onFuncChange_: function(t) {
2830
- const e = Oe(this.space.id, t);
2830
+ const e = ke(this.space.id, t);
2831
2831
  if (!e) {
2832
2832
  console.assert(!1);
2833
2833
  return;
@@ -2891,23 +2891,23 @@ const Oi = {
2891
2891
  w(this, t);
2892
2892
  },
2893
2893
  checkWarning_: function() {
2894
- const t = nt(this.space.id);
2894
+ const t = ot(this.space.id);
2895
2895
  if (!t) {
2896
- this.setWarningText(_.WARN_SPACE_NOT_AVAILABLE);
2896
+ this.setWarningText(p.WARN_SPACE_NOT_AVAILABLE);
2897
2897
  return;
2898
2898
  }
2899
2899
  t.name !== this.space.name && (this.space.name = t.name);
2900
- const e = Oe(this.space.id, this.func.id);
2900
+ const e = ke(this.space.id, this.func.id);
2901
2901
  if (!e) {
2902
- this.setWarningText(_.WARN_FUNC_NOT_AVAILABLE);
2902
+ this.setWarningText(p.WARN_FUNC_NOT_AVAILABLE);
2903
2903
  return;
2904
2904
  }
2905
2905
  if (!M(e.inputs, this.func.inputs)) {
2906
- this.setWarningText(_.WARN_FUNC_HAS_CHANGED);
2906
+ this.setWarningText(p.WARN_FUNC_HAS_CHANGED);
2907
2907
  return;
2908
2908
  }
2909
2909
  if (!M(e.outputs, this.func.outputs)) {
2910
- this.setWarningText(_.WARN_FUNC_HAS_CHANGED);
2910
+ this.setWarningText(p.WARN_FUNC_HAS_CHANGED);
2911
2911
  return;
2912
2912
  }
2913
2913
  this.setWarningText(null);
@@ -2933,11 +2933,11 @@ a.forBlock.call_func_v1 = function(t) {
2933
2933
  r += `${e}var __output_${d}__ = __result__[${n(d)}];
2934
2934
  `;
2935
2935
  });
2936
- const p = a.statementToCode(o, "CALLBACK");
2936
+ const _ = a.statementToCode(o, "CALLBACK");
2937
2937
  return `{
2938
2938
  ${c}
2939
2939
  ${e}var __result__ = __callFuncV1__(${i},${s},__inputs__,__getEnvV1__(),${u});
2940
- ${r}${p}}
2940
+ ${r}${_}}
2941
2941
  `;
2942
2942
  };
2943
2943
  const Ci = {
@@ -2956,13 +2956,13 @@ const Ci = {
2956
2956
  var i, s;
2957
2957
  if (this.space.id)
2958
2958
  return;
2959
- const t = (i = ve()) == null ? void 0 : i[0];
2959
+ const t = (i = Le()) == null ? void 0 : i[0];
2960
2960
  if (!t)
2961
2961
  return;
2962
2962
  this.space.id = t.id, this.space.name = t.name;
2963
2963
  const e = this.getField("SPACE");
2964
2964
  e.getOptions(!1), e.setValue(this.space.id);
2965
- const n = (s = Ke(this.space.id)) == null ? void 0 : s[0];
2965
+ const n = (s = $e(this.space.id)) == null ? void 0 : s[0];
2966
2966
  if (!n)
2967
2967
  return;
2968
2968
  this.func.id = n.id, this.func.name = n.name, this.func.inputs = n.inputs, this.func.outputs = n.outputs;
@@ -2990,7 +2990,7 @@ const Ci = {
2990
2990
  onchange: function(t) {
2991
2991
  if (t.type === S.STATE_CHANGE)
2992
2992
  this.checkWarning_();
2993
- else if (t.type === A.BLOCK_CHANGE) {
2993
+ else if (t.type === I.BLOCK_CHANGE) {
2994
2994
  const e = t;
2995
2995
  if (e.blockId !== this.id)
2996
2996
  return;
@@ -3001,19 +3001,19 @@ const Ci = {
3001
3001
  },
3002
3002
  onSpaceChange_: function(t) {
3003
3003
  var i;
3004
- const e = nt(t);
3004
+ const e = ot(t);
3005
3005
  if (!e) {
3006
3006
  console.assert(!1);
3007
3007
  return;
3008
3008
  }
3009
3009
  let n = !1;
3010
- if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !Oe(this.space.id, this.func.id)) {
3011
- const s = (i = Ke(this.space.id)) == null ? void 0 : i[0];
3010
+ if (e.id !== this.space.id && (n = !0), this.space.id = e.id, this.space.name = e.name, this.getField("FUNC").getOptions(!1), n || !ke(this.space.id, this.func.id)) {
3011
+ const s = (i = $e(this.space.id)) == null ? void 0 : i[0];
3012
3012
  s ? this.setFieldValue(s.id, "FUNC") : this.setFieldValue("", "FUNC");
3013
3013
  }
3014
3014
  },
3015
3015
  onFuncChange_: function(t) {
3016
- const e = Oe(this.space.id, t);
3016
+ const e = ke(this.space.id, t);
3017
3017
  if (!e) {
3018
3018
  console.assert(!1);
3019
3019
  return;
@@ -3077,23 +3077,23 @@ const Ci = {
3077
3077
  w(this, t);
3078
3078
  },
3079
3079
  checkWarning_: function() {
3080
- const t = nt(this.space.id);
3080
+ const t = ot(this.space.id);
3081
3081
  if (!t) {
3082
- this.setWarningText(_.WARN_SPACE_NOT_AVAILABLE);
3082
+ this.setWarningText(p.WARN_SPACE_NOT_AVAILABLE);
3083
3083
  return;
3084
3084
  }
3085
3085
  t.name !== this.space.name && (this.space.name = t.name);
3086
- const e = Oe(this.space.id, this.func.id);
3086
+ const e = ke(this.space.id, this.func.id);
3087
3087
  if (!e) {
3088
- this.setWarningText(_.WARN_FUNC_NOT_AVAILABLE);
3088
+ this.setWarningText(p.WARN_FUNC_NOT_AVAILABLE);
3089
3089
  return;
3090
3090
  }
3091
3091
  if (!M(e.inputs, this.func.inputs)) {
3092
- this.setWarningText(_.WARN_FUNC_HAS_CHANGED);
3092
+ this.setWarningText(p.WARN_FUNC_HAS_CHANGED);
3093
3093
  return;
3094
3094
  }
3095
3095
  if (!M(e.outputs, this.func.outputs)) {
3096
- this.setWarningText(_.WARN_FUNC_HAS_CHANGED);
3096
+ this.setWarningText(p.WARN_FUNC_HAS_CHANGED);
3097
3097
  return;
3098
3098
  }
3099
3099
  this.setWarningText(null);
@@ -3119,14 +3119,14 @@ a.forBlock.call_func_internal_v1 = function(t) {
3119
3119
  r += `${e}var __output_${d}__ = __result__.outputs[${n(d)}];
3120
3120
  `;
3121
3121
  });
3122
- const p = a.statementToCode(o, "CALLBACK");
3122
+ const _ = a.statementToCode(o, "CALLBACK");
3123
3123
  return `{
3124
3124
  ${c}
3125
3125
  ${e}var __result__ = __callFuncInternalV1__(${i}, ${s}, __inputs__);
3126
3126
  ${e}if (!__result__.success) {
3127
3127
  ${e}${e}throw 'call func<${u}> failed, reason: ' + __result__.message;
3128
3128
  ${e}}
3129
- ${r}${p}}
3129
+ ${r}${_}}
3130
3130
  `;
3131
3131
  };
3132
3132
  f([
@@ -3161,7 +3161,7 @@ const ki = {
3161
3161
  initData_: function() {
3162
3162
  if (this.func.id)
3163
3163
  return;
3164
- const { id: t, inputs: e } = Gt();
3164
+ const { id: t, inputs: e } = Wt();
3165
3165
  this.func.id = t, this.func.inputs = e;
3166
3166
  },
3167
3167
  saveExtraState: function() {
@@ -3200,9 +3200,9 @@ const ki = {
3200
3200
  w(this, t);
3201
3201
  },
3202
3202
  checkWarning_: function() {
3203
- const { id: t, inputs: e } = Gt();
3203
+ const { id: t, inputs: e } = Wt();
3204
3204
  if (this.func.id !== t && (this.func.id = t), !M(e, this.func.inputs)) {
3205
- this.setWarningText(_.WARN_FUNC_HAS_CHANGED);
3205
+ this.setWarningText(p.WARN_FUNC_HAS_CHANGED);
3206
3206
  return;
3207
3207
  }
3208
3208
  this.setWarningText(null);
@@ -3239,7 +3239,7 @@ const vi = {
3239
3239
  var e;
3240
3240
  if (this.output.id)
3241
3241
  return;
3242
- const t = (e = Gt().outputs) == null ? void 0 : e[0];
3242
+ const t = (e = Wt().outputs) == null ? void 0 : e[0];
3243
3243
  t && (this.output.id = t.id, this.output.name = t.name, this.output.type = t.type);
3244
3244
  },
3245
3245
  saveExtraState: function() {
@@ -3259,7 +3259,7 @@ const vi = {
3259
3259
  onchange: function(t) {
3260
3260
  if (t.type === S.STATE_CHANGE)
3261
3261
  this.checkWarning_();
3262
- else if (t.type === A.BLOCK_CHANGE) {
3262
+ else if (t.type === I.BLOCK_CHANGE) {
3263
3263
  const e = t;
3264
3264
  if (e.blockId !== this.id)
3265
3265
  return;
@@ -3294,11 +3294,11 @@ const vi = {
3294
3294
  checkWarning_: function() {
3295
3295
  const t = dn(this.output.id);
3296
3296
  if (!t) {
3297
- this.setWarningText(_.WARN_FUNC_HAS_CHANGED);
3297
+ this.setWarningText(p.WARN_FUNC_HAS_CHANGED);
3298
3298
  return;
3299
3299
  }
3300
3300
  if (t.name !== this.output.name && (this.output.name = t.name), t.type !== this.output.type) {
3301
- this.setWarningText(_.WARN_FUNC_HAS_CHANGED);
3301
+ this.setWarningText(p.WARN_FUNC_HAS_CHANGED);
3302
3302
  return;
3303
3303
  }
3304
3304
  this.setWarningText(null);
@@ -3337,15 +3337,15 @@ function z() {
3337
3337
  e.tables.length > 0 && t.push(e);
3338
3338
  }), t;
3339
3339
  }
3340
- function he(t) {
3340
+ function de(t) {
3341
3341
  const { spaces: e } = T.data;
3342
3342
  return e.find((n) => n.id === t);
3343
3343
  }
3344
- function ft() {
3344
+ function mt() {
3345
3345
  const t = [];
3346
3346
  return z().forEach(({ id: n, name: o }) => {
3347
3347
  t.push([o, n]);
3348
- }), L(t);
3348
+ }), N(t);
3349
3349
  }
3350
3350
  function W(t) {
3351
3351
  const { spaces: e } = T.data, n = e.find((o) => o.id === t);
@@ -3356,20 +3356,20 @@ function J(t, e) {
3356
3356
  if (o)
3357
3357
  return o.tables.find((i) => i.id === e);
3358
3358
  }
3359
- function mt(t) {
3359
+ function Tt(t) {
3360
3360
  const e = [];
3361
3361
  return W(t).forEach(({ id: o, name: i }) => {
3362
3362
  e.push([i, o]);
3363
- }), L(e);
3363
+ }), N(e);
3364
3364
  }
3365
- function ot(t, e) {
3365
+ function it(t, e) {
3366
3366
  const { spaces: n } = T.data, o = n.find((s) => s.id === t);
3367
3367
  if (!o)
3368
3368
  return [];
3369
3369
  const i = o.tables.find((s) => s.id === e);
3370
3370
  return i ? i.columns : [];
3371
3371
  }
3372
- function Dt(t, e, n) {
3372
+ function Ut(t, e, n) {
3373
3373
  const { spaces: o } = T.data, i = o.find((c) => c.id === t);
3374
3374
  if (!i)
3375
3375
  return;
@@ -3377,13 +3377,13 @@ function Dt(t, e, n) {
3377
3377
  if (s)
3378
3378
  return s.columns.find((c) => c.id === n);
3379
3379
  }
3380
- function Li(t, e) {
3380
+ function Ni(t, e) {
3381
3381
  const n = [];
3382
- return ot(t, e).forEach(({ id: i, name: s }) => {
3382
+ return it(t, e).forEach(({ id: i, name: s }) => {
3383
3383
  n.push([s, i]);
3384
- }), L(n);
3384
+ }), N(n);
3385
3385
  }
3386
- function Ni(t) {
3386
+ function Li(t) {
3387
3387
  var u, r;
3388
3388
  const e = t.getInput("TABLE").connection;
3389
3389
  if (e.targetBlock())
@@ -3391,22 +3391,22 @@ function Ni(t) {
3391
3391
  let n, o;
3392
3392
  const i = (u = z()) == null ? void 0 : u[0];
3393
3393
  if (i) {
3394
- const p = (r = W(i.id)) == null ? void 0 : r[0];
3395
- if (p) {
3394
+ const _ = (r = W(i.id)) == null ? void 0 : r[0];
3395
+ if (_) {
3396
3396
  n = {
3397
3397
  space: {
3398
3398
  id: i.id,
3399
3399
  name: i.name
3400
3400
  },
3401
3401
  table: {
3402
- id: p.id,
3403
- name: p.name,
3404
- columns: p.columns
3402
+ id: _.id,
3403
+ name: _.name,
3404
+ columns: _.columns
3405
3405
  },
3406
- itemCount: p.columns.length
3406
+ itemCount: _.columns.length
3407
3407
  }, o = {};
3408
- for (let h = 0; h < p.columns.length; h++) {
3409
- const d = p.columns[h];
3408
+ for (let h = 0; h < _.columns.length; h++) {
3409
+ const d = _.columns[h];
3410
3410
  o["COLUMN" + h] = d.id;
3411
3411
  }
3412
3412
  }
@@ -3458,7 +3458,7 @@ const bi = {
3458
3458
  this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_DATA_DO}"), this.getInput("DATA") || (this.appendValueInput("DATA"), this.moveInputBefore("DATA", "HANDLE")), this.getInput("MESSAGE") || (this.appendValueInput("MESSAGE"), this.moveInputBefore("MESSAGE", "DATA")), this.getInput("SUCCESS") || (this.appendValueInput("SUCCESS").appendField("%{BKY_DATA_RETURN}"), this.moveInputBefore("SUCCESS", "MESSAGE")), this.getInput("TABLE") || (this.appendValueInput("TABLE").setCheck("UpdateColumn").setAlign(y.Align.RIGHT).appendField("%{BKY_DATA_TABLE}"), this.moveInputBefore("TABLE", "SUCCESS"));
3459
3459
  },
3460
3460
  ensureBlocks_: function() {
3461
- this.isInsertionMarker() || (Ni(this), w(this, [
3461
+ this.isInsertionMarker() || (Li(this), w(this, [
3462
3462
  ["SUCCESS", "__success__", "PARAM_SUCCESS", !0],
3463
3463
  ["MESSAGE", "__message__", "PARAM_MESSAGE", !0],
3464
3464
  ["DATA", "__data__", "PARAM_DATA", !0]
@@ -3520,7 +3520,7 @@ const Bi = {
3520
3520
  if (!e)
3521
3521
  return;
3522
3522
  this.table.id = e.id, this.table.name = e.name;
3523
- const n = (s = ot(this.space.id, this.table.id)) == null ? void 0 : s[0];
3523
+ const n = (s = it(this.space.id, this.table.id)) == null ? void 0 : s[0];
3524
3524
  n && (this.column.id = n.id, this.column.name = n.name, this.column.type = n.type, this.column.extend = n.extend);
3525
3525
  },
3526
3526
  saveExtraState: function() {
@@ -3537,18 +3537,18 @@ const Bi = {
3537
3537
  }, 0);
3538
3538
  },
3539
3539
  genSpaceOpts_: function() {
3540
- return ft();
3540
+ return mt();
3541
3541
  },
3542
3542
  genTableOpts_: function() {
3543
- return mt(this.space.id);
3543
+ return Tt(this.space.id);
3544
3544
  },
3545
3545
  genColumnOpts_: function() {
3546
- return Li(this.space.id, this.table.id);
3546
+ return Ni(this.space.id, this.table.id);
3547
3547
  },
3548
3548
  onchange: function(t) {
3549
3549
  if (t.type === S.STATE_CHANGE)
3550
3550
  this.checkWarning_();
3551
- else if (t.type === A.BLOCK_CHANGE) {
3551
+ else if (t.type === I.BLOCK_CHANGE) {
3552
3552
  const e = t;
3553
3553
  e.blockId === this.id && e.element === "field" && (e.name === "SPACE" ? this.onSpaceChange_(e.newValue) : e.name === "TABLE" ? this.onTableChange_(e.newValue) : e.name === "COLUMN" && this.onColumnChange_(e.newValue)), setTimeout(() => {
3554
3554
  this.checkWarning_();
@@ -3557,7 +3557,7 @@ const Bi = {
3557
3557
  },
3558
3558
  onSpaceChange_: function(t) {
3559
3559
  var o, i;
3560
- const e = he(t);
3560
+ const e = de(t);
3561
3561
  if (!e) {
3562
3562
  console.assert(!1);
3563
3563
  return;
@@ -3576,13 +3576,13 @@ const Bi = {
3576
3576
  return;
3577
3577
  }
3578
3578
  const n = e.id !== this.table.id;
3579
- if (this.table.id = e.id, this.table.name = e.name, n || !Dt(this.space.id, this.table.id, this.column.id)) {
3580
- const s = ((i = (o = ot(this.space.id, this.table.id)) == null ? void 0 : o[0]) == null ? void 0 : i.id) ?? "", c = this.getField("COLUMN");
3579
+ if (this.table.id = e.id, this.table.name = e.name, n || !Ut(this.space.id, this.table.id, this.column.id)) {
3580
+ const s = ((i = (o = it(this.space.id, this.table.id)) == null ? void 0 : o[0]) == null ? void 0 : i.id) ?? "", c = this.getField("COLUMN");
3581
3581
  c.getOptions(!1), c.setValue(s, !1), this.onColumnChange_(s);
3582
3582
  }
3583
3583
  },
3584
3584
  onColumnChange_: function(t) {
3585
- const e = Dt(this.space.id, this.table.id, t);
3585
+ const e = Ut(this.space.id, this.table.id, t);
3586
3586
  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_();
3587
3587
  },
3588
3588
  updateShape_: function() {
@@ -3603,36 +3603,36 @@ const Bi = {
3603
3603
  return;
3604
3604
  let o = null;
3605
3605
  const { type: i } = this.column;
3606
- i === "string" ? o = re(this.workspace, "") : i === "integer" ? o = ke(this.workspace, 0) : i === "float" ? o = ke(this.workspace, 0) : i === "boolean" ? o = dt(this.workspace, !1) : i === "enum" ? o = re(this.workspace, "") : i === "dateTime" && (o = re(this.workspace, "")), o && (e.setCheck(null), e.connect(o.outputConnection));
3606
+ i === "string" ? o = _e(this.workspace, "") : i === "integer" ? o = ve(this.workspace, 0) : i === "float" ? o = ve(this.workspace, 0) : i === "boolean" ? o = ft(this.workspace, !1) : i === "enum" ? o = _e(this.workspace, "") : i === "dateTime" && (o = _e(this.workspace, "")), o && (e.setCheck(null), e.connect(o.outputConnection));
3607
3607
  },
3608
3608
  updateCheck_: function() {
3609
3609
  const { type: t } = this.column, e = this.getInput("VALUE");
3610
3610
  t === "string" ? e.setCheck("String") : t === "integer" || t === "float" ? e.setCheck("Number") : t === "boolean" ? e.setCheck("Boolean") : t === "enum" || t === "dateTime" ? e.setCheck("String") : e.setCheck(null);
3611
3611
  },
3612
3612
  checkWarning_: function() {
3613
- const t = he(this.space.id);
3613
+ const t = de(this.space.id);
3614
3614
  if (!t) {
3615
- this.setWarningText(_.WARN_SPACE_NOT_AVAILABLE);
3615
+ this.setWarningText(p.WARN_SPACE_NOT_AVAILABLE);
3616
3616
  return;
3617
3617
  }
3618
3618
  t.name !== this.space.name && (this.space.name = t.name);
3619
3619
  const e = J(this.space.id, this.table.id);
3620
3620
  if (!e) {
3621
- this.setWarningText(_.WARN_TABLE_NOT_AVAILABLE);
3621
+ this.setWarningText(p.WARN_TABLE_NOT_AVAILABLE);
3622
3622
  return;
3623
3623
  }
3624
3624
  e.name !== this.table.name && (this.table.name = e.name);
3625
- const n = Dt(
3625
+ const n = Ut(
3626
3626
  this.space.id,
3627
3627
  this.table.id,
3628
3628
  this.column.id
3629
3629
  );
3630
3630
  if (!n) {
3631
- this.setWarningText(_.WARN_COLUMN_NOT_AVAILABLE);
3631
+ this.setWarningText(p.WARN_COLUMN_NOT_AVAILABLE);
3632
3632
  return;
3633
3633
  }
3634
3634
  if (n.name !== this.column.name && (this.column.name = n.name), n.type !== this.column.type || n.extend !== this.column.extend) {
3635
- this.setWarningText(_.WARN_COLUMN_HAS_CHANGED);
3635
+ this.setWarningText(p.WARN_COLUMN_HAS_CHANGED);
3636
3636
  return;
3637
3637
  }
3638
3638
  this.setWarningText(null);
@@ -3671,7 +3671,7 @@ const Ui = {
3671
3671
  ]),
3672
3672
  "TYPE"
3673
3673
  ), this.setMutator(
3674
- new me.MutatorIcon(
3674
+ new Te.MutatorIcon(
3675
3675
  ["cond_logic_item_v1"],
3676
3676
  this
3677
3677
  )
@@ -3769,11 +3769,11 @@ function Mi(t) {
3769
3769
  e.connect(s.outputConnection);
3770
3770
  }
3771
3771
  function Vi(t) {
3772
- var u, r, p;
3772
+ var u, r, _;
3773
3773
  const e = t.getInput("CONDITION").connection;
3774
3774
  if (e.targetBlock())
3775
3775
  return;
3776
- const n = (u = z()) == null ? void 0 : u[0], o = (r = W((n == null ? void 0 : n.id) ?? "")) == null ? void 0 : r[0], i = (p = ot(n == null ? void 0 : n.id, o == null ? void 0 : o.id)) == null ? void 0 : p[0], s = {
3776
+ const n = (u = z()) == null ? void 0 : u[0], o = (r = W((n == null ? void 0 : n.id) ?? "")) == null ? void 0 : r[0], i = (_ = it(n == null ? void 0 : n.id, o == null ? void 0 : o.id)) == null ? void 0 : _[0], s = {
3777
3777
  type: "cond_atomic_v1",
3778
3778
  extraState: {
3779
3779
  space: {
@@ -3886,22 +3886,22 @@ function Yi(t) {
3886
3886
  let n, o;
3887
3887
  const i = (u = z()) == null ? void 0 : u[0];
3888
3888
  if (i) {
3889
- const p = (r = W(i.id)) == null ? void 0 : r[0];
3890
- if (p) {
3889
+ const _ = (r = W(i.id)) == null ? void 0 : r[0];
3890
+ if (_) {
3891
3891
  n = {
3892
3892
  space: {
3893
3893
  id: i.id,
3894
3894
  name: i.name
3895
3895
  },
3896
3896
  table: {
3897
- id: p.id,
3898
- name: p.name,
3899
- columns: p.columns
3897
+ id: _.id,
3898
+ name: _.name,
3899
+ columns: _.columns
3900
3900
  },
3901
- itemCount: p.columns.length
3901
+ itemCount: _.columns.length
3902
3902
  }, o = {};
3903
- for (let h = 0; h < p.columns.length; h++) {
3904
- const d = p.columns[h];
3903
+ for (let h = 0; h < _.columns.length; h++) {
3904
+ const d = _.columns[h];
3905
3905
  o["COLUMN" + h] = d.id, o["ALIAS" + h] = d.name;
3906
3906
  }
3907
3907
  }
@@ -3997,7 +3997,7 @@ f([
3997
3997
  style: "procedure_blocks"
3998
3998
  }
3999
3999
  ]);
4000
- const Hi = {
4000
+ const $i = {
4001
4001
  init: function() {
4002
4002
  this.appendDummyInput().appendField("%{BKY_DATA_V1_QUERY_DATA_TITLE}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_DATA_V1_QUERY_DATA_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_QUERY_DATA_HELPURL}");
4003
4003
  },
@@ -4021,7 +4021,7 @@ const Hi = {
4021
4021
  ]), Ki(this));
4022
4022
  }
4023
4023
  };
4024
- m.query_data_v1 = Hi;
4024
+ m.query_data_v1 = $i;
4025
4025
  a.forBlock.query_data_v1 = function(t) {
4026
4026
  const e = a.INDENT, n = a.valueToCode(t, "TABLE", l.ATOMIC) || "null", o = a.valueToCode(t, "CONDITION", l.ATOMIC) || "null", i = a.valueToCode(t, "EXTRA", l.ATOMIC) || "null", s = a.statementToCode(t, "HANDLE");
4027
4027
  return `{
@@ -4094,12 +4094,12 @@ a.forBlock.query_extra_sortby_v1 = function(t) {
4094
4094
  const e = a.valueToCode(t, "COLUMN", l.ATOMIC) || "''", n = a.valueToCode(t, "DESC", l.ATOMIC) || !1;
4095
4095
  return [`{type:'sortby',value:${e},value2:${n}}`, l.ATOMIC];
4096
4096
  };
4097
- const $i = {
4097
+ const Hi = {
4098
4098
  init: function() {
4099
4099
  this.appendDummyInput().appendField("%{BKY_DATA_LIST}"), this.appendStatementInput("STACK"), this.setStyle("object_blocks"), this.contextMenu = !1;
4100
4100
  }
4101
4101
  };
4102
- m.select_column_container_v1 = $i;
4102
+ m.select_column_container_v1 = Hi;
4103
4103
  const Gi = {
4104
4104
  init: function() {
4105
4105
  this.appendDummyInput().appendField("%{BKY_DATA_ITEM}"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("object_blocks"), this.contextMenu = !1;
@@ -4116,7 +4116,7 @@ const Wi = {
4116
4116
  name: "",
4117
4117
  columns: []
4118
4118
  }, this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_DATA_V1_SELECT_COLUMN_TITLE}").appendField(new E(() => this.genSpaceOpts_()), "SPACE").appendField(new E(() => this.genTableOpts_()), "TABLE"), this.setMutator(
4119
- new me.MutatorIcon(
4119
+ new Te.MutatorIcon(
4120
4120
  ["select_column_item_v1"],
4121
4121
  this
4122
4122
  )
@@ -4153,22 +4153,22 @@ const Wi = {
4153
4153
  }, 0);
4154
4154
  },
4155
4155
  genSpaceOpts_: function() {
4156
- return ft();
4156
+ return mt();
4157
4157
  },
4158
4158
  genTableOpts_: function() {
4159
- return mt(this.space.id);
4159
+ return Tt(this.space.id);
4160
4160
  },
4161
4161
  genColumnOpts_: function() {
4162
4162
  const t = [];
4163
4163
  return this.table.columns.forEach(({ id: e, name: n }) => {
4164
4164
  t.push([n, e]);
4165
- }), L(t);
4165
+ }), N(t);
4166
4166
  },
4167
4167
  onchange: function(t) {
4168
4168
  var e;
4169
4169
  if (t.type === S.STATE_CHANGE)
4170
4170
  this.checkWarning_();
4171
- else if (t.type === A.BLOCK_CHANGE) {
4171
+ else if (t.type === I.BLOCK_CHANGE) {
4172
4172
  const n = t;
4173
4173
  if (n.blockId !== this.id)
4174
4174
  return;
@@ -4189,7 +4189,7 @@ const Wi = {
4189
4189
  },
4190
4190
  onSpaceChange_: function(t) {
4191
4191
  var o, i;
4192
- const e = he(t);
4192
+ const e = de(t);
4193
4193
  if (!e) {
4194
4194
  console.assert(!1);
4195
4195
  return;
@@ -4271,7 +4271,7 @@ const Wi = {
4271
4271
  initShape_: function() {
4272
4272
  if (!this.isInFlyout && !this.getInput("ADD0"))
4273
4273
  for (let t = 0; t < this.table.columns.length; t++) {
4274
- const e = this.table.columns[t], n = new E(() => this.genColumnOpts_()), o = new _e("");
4274
+ const e = this.table.columns[t], n = new E(() => this.genColumnOpts_()), o = new pe("");
4275
4275
  this.appendDummyInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(n, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(o, "ALIAS" + t), n.setValue(e.id, !1), o.setValue(e.name, !1);
4276
4276
  }
4277
4277
  },
@@ -4281,26 +4281,26 @@ const Wi = {
4281
4281
  for (let t = 0; t < this.itemCount_; t++) {
4282
4282
  if (this.getInput("ADD" + t))
4283
4283
  continue;
4284
- const e = new E(() => this.genColumnOpts_()), n = new _e("");
4284
+ const e = new E(() => this.genColumnOpts_()), n = new pe("");
4285
4285
  this.appendDummyInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(e, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(n, "ALIAS" + t);
4286
4286
  const o = this.table.columns[0];
4287
4287
  e.setValue(o.id ?? "", !1), n.setValue(o.name ?? "", !1);
4288
4288
  }
4289
4289
  },
4290
4290
  checkWarning_: function() {
4291
- const t = he(this.space.id);
4291
+ const t = de(this.space.id);
4292
4292
  if (!t) {
4293
- this.setWarningText(_.WARN_SPACE_NOT_AVAILABLE);
4293
+ this.setWarningText(p.WARN_SPACE_NOT_AVAILABLE);
4294
4294
  return;
4295
4295
  }
4296
4296
  t.name !== this.space.name && (this.space.name = t.name);
4297
4297
  const e = J(this.space.id, this.table.id);
4298
4298
  if (!e) {
4299
- this.setWarningText(_.WARN_TABLE_NOT_AVAILABLE);
4299
+ this.setWarningText(p.WARN_TABLE_NOT_AVAILABLE);
4300
4300
  return;
4301
4301
  }
4302
4302
  if (e.name !== this.table.name && (this.table.name = e.name), !M(e.columns, this.table.columns)) {
4303
- this.setWarningText(_.WARN_TABLE_HAS_CHANGED);
4303
+ this.setWarningText(p.WARN_TABLE_HAS_CHANGED);
4304
4304
  return;
4305
4305
  }
4306
4306
  this.setWarningText(null);
@@ -4310,12 +4310,12 @@ m.select_column_v1 = Wi;
4310
4310
  a.forBlock.select_column_v1 = function(t) {
4311
4311
  const e = a.quote_, n = t, o = n.space.id, i = n.table.id, s = [];
4312
4312
  for (let r = 0; r < n.itemCount_; r++) {
4313
- const p = n.getFieldValue("COLUMN" + r), h = n.table.columns.find((O) => O.id === p).name, d = n.getFieldValue("ALIAS" + r);
4313
+ const _ = n.getFieldValue("COLUMN" + r), h = n.table.columns.find((O) => O.id === _).name, d = n.getFieldValue("ALIAS" + r);
4314
4314
  s.push({ name: h, alias: d });
4315
4315
  }
4316
4316
  let c = "[";
4317
- return s.forEach(({ name: r, alias: p }, h) => {
4318
- h !== 0 && (c += ","), c += `{name:${e(r)},alias:${e(p)}}`;
4317
+ return s.forEach(({ name: r, alias: _ }, h) => {
4318
+ h !== 0 && (c += ","), c += `{name:${e(r)},alias:${e(_)}}`;
4319
4319
  }), c += "]", [`{spaceid:${e(o)},tableid:${e(i)},columns:${c}}`, l.ATOMIC];
4320
4320
  };
4321
4321
  const ji = {
@@ -4356,15 +4356,15 @@ const ji = {
4356
4356
  this.space.id = ((e = t.space) == null ? void 0 : e.id) ?? "", this.space.name = ((n = t.space) == null ? void 0 : n.name) ?? "", this.table.id = ((o = t.table) == null ? void 0 : o.id) ?? "", this.table.name = ((i = t.table) == null ? void 0 : i.name) ?? "", this.checkWarning_();
4357
4357
  },
4358
4358
  genSpaceOpts_: function() {
4359
- return ft();
4359
+ return mt();
4360
4360
  },
4361
4361
  genTableOpts_: function() {
4362
- return mt(this.space.id);
4362
+ return Tt(this.space.id);
4363
4363
  },
4364
4364
  onchange: function(t) {
4365
4365
  if (t.type === S.STATE_CHANGE)
4366
4366
  this.checkWarning_();
4367
- else if (t.type === A.BLOCK_CHANGE) {
4367
+ else if (t.type === I.BLOCK_CHANGE) {
4368
4368
  const e = t;
4369
4369
  if (e.blockId !== this.id)
4370
4370
  return;
@@ -4375,7 +4375,7 @@ const ji = {
4375
4375
  },
4376
4376
  onSpaceChange_: function(t) {
4377
4377
  var i;
4378
- const e = he(t);
4378
+ const e = de(t);
4379
4379
  if (!e) {
4380
4380
  console.assert(!1);
4381
4381
  return;
@@ -4395,15 +4395,15 @@ const ji = {
4395
4395
  this.table.id = e.id, this.table.name = e.name;
4396
4396
  },
4397
4397
  checkWarning_: function() {
4398
- const t = he(this.space.id);
4398
+ const t = de(this.space.id);
4399
4399
  if (!t) {
4400
- this.setWarningText(_.WARN_SPACE_NOT_AVAILABLE);
4400
+ this.setWarningText(p.WARN_SPACE_NOT_AVAILABLE);
4401
4401
  return;
4402
4402
  }
4403
4403
  t.name !== this.space.name && (this.space.name = t.name);
4404
4404
  const e = J(this.space.id, this.table.id);
4405
4405
  if (!e) {
4406
- this.setWarningText(_.WARN_TABLE_NOT_AVAILABLE);
4406
+ this.setWarningText(p.WARN_TABLE_NOT_AVAILABLE);
4407
4407
  return;
4408
4408
  }
4409
4409
  e.name !== this.table.name && (this.table.name = e.name), this.setWarningText(null);
@@ -4502,7 +4502,7 @@ const zi = {
4502
4502
  name: "",
4503
4503
  columns: []
4504
4504
  }, this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_DATA_V1_UPDATE_COLUMN_TITLE}").appendField(new E(() => this.genSpaceOpts_()), "SPACE").appendField(new E(() => this.genTableOpts_()), "TABLE"), this.setMutator(
4505
- new me.MutatorIcon(
4505
+ new Te.MutatorIcon(
4506
4506
  ["update_column_item_v1"],
4507
4507
  this
4508
4508
  )
@@ -4539,21 +4539,21 @@ const zi = {
4539
4539
  }, 0);
4540
4540
  },
4541
4541
  genSpaceOpts_: function() {
4542
- return ft();
4542
+ return mt();
4543
4543
  },
4544
4544
  genTableOpts_: function() {
4545
- return mt(this.space.id);
4545
+ return Tt(this.space.id);
4546
4546
  },
4547
4547
  genColumnOpts_: function() {
4548
4548
  const t = [];
4549
4549
  return this.table.columns.forEach(({ id: e, name: n }) => {
4550
4550
  t.push([n, e]);
4551
- }), L(t);
4551
+ }), N(t);
4552
4552
  },
4553
4553
  onchange: function(t) {
4554
4554
  if (t.type === S.STATE_CHANGE)
4555
4555
  this.checkWarning_();
4556
- else if (t.type === A.BLOCK_CHANGE) {
4556
+ else if (t.type === I.BLOCK_CHANGE) {
4557
4557
  const e = t;
4558
4558
  if (e.blockId !== this.id)
4559
4559
  return;
@@ -4574,7 +4574,7 @@ const zi = {
4574
4574
  },
4575
4575
  onSpaceChange_: function(t) {
4576
4576
  var o, i;
4577
- const e = he(t);
4577
+ const e = de(t);
4578
4578
  if (!e) {
4579
4579
  console.assert(!1);
4580
4580
  return;
@@ -4708,19 +4708,19 @@ const zi = {
4708
4708
  }
4709
4709
  },
4710
4710
  checkWarning_: function() {
4711
- const t = he(this.space.id);
4711
+ const t = de(this.space.id);
4712
4712
  if (!t) {
4713
- this.setWarningText(_.WARN_SPACE_NOT_AVAILABLE);
4713
+ this.setWarningText(p.WARN_SPACE_NOT_AVAILABLE);
4714
4714
  return;
4715
4715
  }
4716
4716
  t.name !== this.space.name && (this.space.name = t.name);
4717
4717
  const e = J(this.space.id, this.table.id);
4718
4718
  if (!e) {
4719
- this.setWarningText(_.WARN_TABLE_NOT_AVAILABLE);
4719
+ this.setWarningText(p.WARN_TABLE_NOT_AVAILABLE);
4720
4720
  return;
4721
4721
  }
4722
4722
  if (e.name !== this.table.name && (this.table.name = e.name), !M(e.columns, this.table.columns)) {
4723
- this.setWarningText(_.WARN_TABLE_HAS_CHANGED);
4723
+ this.setWarningText(p.WARN_TABLE_HAS_CHANGED);
4724
4724
  return;
4725
4725
  }
4726
4726
  this.setWarningText(null);
@@ -4730,12 +4730,12 @@ m.update_column_v1 = zi;
4730
4730
  a.forBlock.update_column_v1 = function(t) {
4731
4731
  const e = a.quote_, n = t, o = n.space.id, i = n.table.id, s = [];
4732
4732
  for (let r = 0; r < n.itemCount_; r++) {
4733
- const p = n.getFieldValue("COLUMN" + r), h = n.table.columns.find((O) => O.id === p).name, d = a.valueToCode(n, "ADD" + r, l.ATOMIC) || "null";
4733
+ const _ = n.getFieldValue("COLUMN" + r), h = n.table.columns.find((O) => O.id === _).name, d = a.valueToCode(n, "ADD" + r, l.ATOMIC) || "null";
4734
4734
  s.push({ name: h, value: d });
4735
4735
  }
4736
4736
  let c = "[";
4737
- return s.forEach(({ name: r, value: p }, h) => {
4738
- h !== 0 && (c += ","), c += `{name:${e(r)},value:${p}}`;
4737
+ return s.forEach(({ name: r, value: _ }, h) => {
4738
+ h !== 0 && (c += ","), c += `{name:${e(r)},value:${_}}`;
4739
4739
  }), c += "]", [`{spaceid:${e(o)},tableid:${e(i)},columns:${c}}`, l.ATOMIC];
4740
4740
  };
4741
4741
  function Qi(t) {
@@ -4746,22 +4746,22 @@ function Qi(t) {
4746
4746
  let n, o;
4747
4747
  const i = (u = z()) == null ? void 0 : u[0];
4748
4748
  if (i) {
4749
- const p = (r = W(i.id)) == null ? void 0 : r[0];
4750
- if (p) {
4749
+ const _ = (r = W(i.id)) == null ? void 0 : r[0];
4750
+ if (_) {
4751
4751
  n = {
4752
4752
  space: {
4753
4753
  id: i.id,
4754
4754
  name: i.name
4755
4755
  },
4756
4756
  table: {
4757
- id: p.id,
4758
- name: p.name,
4759
- columns: p.columns
4757
+ id: _.id,
4758
+ name: _.name,
4759
+ columns: _.columns
4760
4760
  },
4761
- itemCount: p.columns.length
4761
+ itemCount: _.columns.length
4762
4762
  }, o = {};
4763
- for (let h = 0; h < p.columns.length; h++) {
4764
- const d = p.columns[h];
4763
+ for (let h = 0; h < _.columns.length; h++) {
4764
+ const d = _.columns[h];
4765
4765
  o["COLUMN" + h] = d.id;
4766
4766
  }
4767
4767
  }
@@ -4846,10 +4846,10 @@ ${e}}
4846
4846
  ${i}}
4847
4847
  `;
4848
4848
  };
4849
- const ns = I.xml, os = {
4849
+ const ns = g.xml, os = {
4850
4850
  init: function() {
4851
4851
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(y.Align.CENTRE).appendField(
4852
- new Z(Ie, 20, 20, void 0, () => {
4852
+ new Z(Ce, 20, 20, void 0, () => {
4853
4853
  this.isInFlyout || this.addEntry_();
4854
4854
  })
4855
4855
  ), this.appendDummyInput("CLOSE_BRACKET").appendField(" ] "), this.setInputsInline(!1), this.setOutput(!0, "JsonArray"), this.setColour(350), this.setTooltip(""), this.setHelpUrl("");
@@ -4859,7 +4859,7 @@ const ns = I.xml, os = {
4859
4859
  return t.setAttribute("items", String(this.length)), t;
4860
4860
  },
4861
4861
  domToMutation: function(t) {
4862
- this.length = Ve(t.getAttribute("items") ?? "", 0), this.initShape_();
4862
+ this.length = Pe(t.getAttribute("items") ?? "", 0), this.initShape_();
4863
4863
  },
4864
4864
  initData: function(t) {
4865
4865
  this.length = t, this.initShape_();
@@ -4868,11 +4868,11 @@ const ns = I.xml, os = {
4868
4868
  for (let t = 0; t < this.length; t++) {
4869
4869
  const e = "ENTRY" + t, n = this.appendValueInput(e);
4870
4870
  n.appendField(
4871
- new Z(Ie, 20, 20, void 0, () => {
4871
+ new Z(Ce, 20, 20, void 0, () => {
4872
4872
  this.isInFlyout || this.addEntry_(n);
4873
4873
  })
4874
4874
  ), n.appendField(new cn(String(t))), n.appendField(
4875
- new Z(et, 20, 20, void 0, () => {
4875
+ new Z(tt, 20, 20, void 0, () => {
4876
4876
  this.isInFlyout || this.removeEntry_(n);
4877
4877
  })
4878
4878
  ), this.moveInputBefore(e, "ADD");
@@ -4880,18 +4880,18 @@ const ns = I.xml, os = {
4880
4880
  },
4881
4881
  addEntry_: function(t) {
4882
4882
  let e = this.length;
4883
- t && (e = Ve(t.name.substring(5)));
4883
+ t && (e = Pe(t.name.substring(5)));
4884
4884
  for (let o = this.length - 1; o >= e; o--) {
4885
4885
  const i = this.getInput("ENTRY" + o);
4886
4886
  i.name = "ENTRY" + (o + 1), i.fieldRow[1].setValue(o + 1);
4887
4887
  }
4888
4888
  const n = this.appendValueInput("ENTRY" + e);
4889
4889
  n.appendField(
4890
- new Z(Ie, 20, 20, void 0, () => {
4890
+ new Z(Ce, 20, 20, void 0, () => {
4891
4891
  this.isInFlyout || this.addEntry_(n);
4892
4892
  })
4893
4893
  ), n.appendField(new cn(String(e))), n.appendField(
4894
- new Z(et, 20, 20, void 0, () => {
4894
+ new Z(tt, 20, 20, void 0, () => {
4895
4895
  this.isInFlyout || this.removeEntry_(n);
4896
4896
  })
4897
4897
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -4899,7 +4899,7 @@ const ns = I.xml, os = {
4899
4899
  removeEntry_: function(t) {
4900
4900
  const e = t.name, n = this.getInputTargetBlock(e);
4901
4901
  n && n.dispose(), this.removeInput(e);
4902
- const o = Ve(e.substring(5));
4902
+ const o = Pe(e.substring(5));
4903
4903
  for (let i = o + 1; i < this.length; i++) {
4904
4904
  const s = this.getInput("ENTRY" + i);
4905
4905
  s.name = "ENTRY" + (i - 1), s.fieldRow[1].setValue(i - 1);
@@ -4920,10 +4920,10 @@ const is = {
4920
4920
  }
4921
4921
  };
4922
4922
  m.json_boolean_v1 = is;
4923
- const fn = I.xml, ss = {
4923
+ const fn = g.xml, ss = {
4924
4924
  init: function() {
4925
4925
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(y.Align.CENTRE).appendField(
4926
- new Z(Ie, 20, 20, void 0, () => {
4926
+ new Z(Ce, 20, 20, void 0, () => {
4927
4927
  this.isInFlyout || this.addEntry_();
4928
4928
  })
4929
4929
  ), this.appendDummyInput("CLOSE_BRACHET").appendField(" } "), this.setInputsInline(!1), this.setOutput(!0, "JsonMap"), this.setColour(120), this.setTooltip(""), this.setHelpUrl("");
@@ -4951,11 +4951,11 @@ const fn = I.xml, ss = {
4951
4951
  for (let e = 0; e < t.length; e++) {
4952
4952
  const n = t[e], o = "ENTRY" + e, i = this.appendValueInput(o);
4953
4953
  i.appendField(
4954
- new Z(Ie, 20, 20, void 0, () => {
4954
+ new Z(Ce, 20, 20, void 0, () => {
4955
4955
  this.isInFlyout || this.addEntry_(i);
4956
4956
  })
4957
- ), i.appendField(new _e(n), "KEY" + e), i.appendField(
4958
- new Z(et, 20, 20, void 0, () => {
4957
+ ), i.appendField(new pe(n), "KEY" + e), i.appendField(
4958
+ new Z(tt, 20, 20, void 0, () => {
4959
4959
  this.isInFlyout || this.removeEntry_(i);
4960
4960
  })
4961
4961
  ), this.moveInputBefore(o, "ADD");
@@ -4963,16 +4963,16 @@ const fn = I.xml, ss = {
4963
4963
  },
4964
4964
  addEntry_: function(t) {
4965
4965
  let e = this.length;
4966
- t && (e = Ve(t.name.substring(5)));
4966
+ t && (e = Pe(t.name.substring(5)));
4967
4967
  for (let o = this.length - 1; o >= e; o--)
4968
4968
  this.getField("KEY" + o).name = "KEY" + (o + 1), this.getInput("ENTRY" + o).name = "ENTRY" + (o + 1);
4969
4969
  const n = this.appendValueInput("ENTRY" + e);
4970
4970
  n.appendField(
4971
- new Z(Ie, 20, 20, void 0, () => {
4971
+ new Z(Ce, 20, 20, void 0, () => {
4972
4972
  this.isInFlyout || this.addEntry_(n);
4973
4973
  })
4974
- ), n.appendField(new _e("key"), "KEY" + e), n.appendField(
4975
- new Z(et, 20, 20, void 0, () => {
4974
+ ), n.appendField(new pe("key"), "KEY" + e), n.appendField(
4975
+ new Z(tt, 20, 20, void 0, () => {
4976
4976
  this.isInFlyout || this.removeEntry_(n);
4977
4977
  })
4978
4978
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -4980,7 +4980,7 @@ const fn = I.xml, ss = {
4980
4980
  removeEntry_: function(t) {
4981
4981
  const e = t.name, n = this.getInputTargetBlock(e);
4982
4982
  n && n.dispose(), this.removeInput(e);
4983
- const o = Ve(e.substring(5));
4983
+ const o = Pe(e.substring(5));
4984
4984
  for (let i = o + 1; i < this.length; i++)
4985
4985
  this.getField("KEY" + i).name = "KEY" + (i - 1), this.getInput("ENTRY" + i).name = "ENTRY" + (i - 1);
4986
4986
  this.length--;
@@ -4989,7 +4989,7 @@ const fn = I.xml, ss = {
4989
4989
  m.json_map_v1 = ss;
4990
4990
  const as = {
4991
4991
  init: function() {
4992
- this.appendDummyInput().appendField(new Pt(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
4992
+ this.appendDummyInput().appendField(new xt(0), "VALUE"), this.setOutput(!0, "JsonNumber"), this.setColour(230);
4993
4993
  }
4994
4994
  };
4995
4995
  m.json_number_v1 = as;
@@ -5001,11 +5001,11 @@ const cs = {
5001
5001
  m.json_root_v1 = cs;
5002
5002
  const ls = {
5003
5003
  init: function() {
5004
- this.appendDummyInput().appendField('"').appendField(new _e(""), "VALUE").appendField('"'), this.setOutput(!0, "JsonString"), this.setColour(160);
5004
+ this.appendDummyInput().appendField('"').appendField(new pe(""), "VALUE").appendField('"'), this.setOutput(!0, "JsonString"), this.setColour(160);
5005
5005
  }
5006
5006
  };
5007
5007
  m.json_string_v1 = ls;
5008
- const us = I.xml, rs = {
5008
+ const us = g.xml, rs = {
5009
5009
  init: function() {
5010
5010
  this.appendDummyInput().appendField("%{BKY_LIST_V1_CREATE_CONTAINER_TITLE}"), this.appendStatementInput("STACK"), this.setStyle("list_blocks"), this.contextMenu = !1;
5011
5011
  }
@@ -5020,7 +5020,7 @@ m.list_create_item_v1 = _s;
5020
5020
  const ps = {
5021
5021
  init: function() {
5022
5022
  this.itemCount_ = 0, this.setMutator(
5023
- new me.MutatorIcon(
5023
+ new Te.MutatorIcon(
5024
5024
  ["list_create_item_v1"],
5025
5025
  this
5026
5026
  )
@@ -5364,11 +5364,11 @@ const ds = {
5364
5364
  e.outputConnection,
5365
5365
  n.outputConnection
5366
5366
  )) {
5367
- A.setGroup(t.group);
5367
+ I.setGroup(t.group);
5368
5368
  const o = this.prevBlocks_[0];
5369
5369
  o !== e && (e.unplug(), o && !o.isDisposed() && !o.isShadow() && this.getInput("A").connection.connect(o.outputConnection));
5370
5370
  const i = this.prevBlocks_[1];
5371
- i !== n && (n.unplug(), i && !i.isDisposed() && !i.isShadow() && this.getInput("B").connection.connect(i.outputConnection)), this.bumpNeighbours(), A.setGroup(!1);
5371
+ i !== n && (n.unplug(), i && !i.isDisposed() && !i.isShadow() && this.getInput("B").connection.connect(i.outputConnection)), this.bumpNeighbours(), I.setGroup(!1);
5372
5372
  }
5373
5373
  this.prevBlocks_[0] = this.getInputTargetBlock("A"), this.prevBlocks_[1] = this.getInputTargetBlock("B");
5374
5374
  }
@@ -5432,7 +5432,7 @@ const fs = {
5432
5432
  mutationToDom: function() {
5433
5433
  if (this.elseIfCount_ <= 0 && !this.hasElse_)
5434
5434
  return null;
5435
- const t = I.xml.createElement("mutation");
5435
+ const t = g.xml.createElement("mutation");
5436
5436
  return this.elseIfCount_ > 0 && t.setAttribute("elseIf", String(this.elseIfCount_)), this.hasElse_ && t.setAttribute("else", "TRUE"), t;
5437
5437
  },
5438
5438
  domToMutation: function(t) {
@@ -5542,8 +5542,8 @@ const fs = {
5542
5542
  for (let t = 1; this.getInput("IF" + t); t++)
5543
5543
  this.removeInput("IF" + t), this.removeInput("DO" + t);
5544
5544
  for (let t = 1; t <= this.elseIfCount_; t++)
5545
- this.appendValueInput("IF" + t).setCheck("Boolean").appendField(_.LOGIC_ELSE_IF), this.appendStatementInput("DO" + t).appendField(_.LOGIC_DO);
5546
- this.hasElse_ && this.appendStatementInput("ELSE").appendField(_.LOGIC_ELSE);
5545
+ this.appendValueInput("IF" + t).setCheck("Boolean").appendField(p.LOGIC_ELSE_IF), this.appendStatementInput("DO" + t).appendField(p.LOGIC_DO);
5546
+ this.hasElse_ && this.appendStatementInput("ELSE").appendField(p.LOGIC_ELSE);
5547
5547
  },
5548
5548
  reconnectChildBlocks_: function(t, e, n) {
5549
5549
  var o, i;
@@ -5710,7 +5710,7 @@ const ms = {
5710
5710
  s && !s.workspace.connectionChecker.doTypeChecks(
5711
5711
  s.outputConnection,
5712
5712
  o
5713
- ) && (A.setGroup(t.group), o === this.prevParentConnection_ ? (this.unplug(), o.getSourceBlock().bumpNeighbours()) : (s.unplug(), s.bumpNeighbours()), A.setGroup(!1));
5713
+ ) && (I.setGroup(t.group), o === this.prevParentConnection_ ? (this.unplug(), o.getSourceBlock().bumpNeighbours()) : (s.unplug(), s.bumpNeighbours()), I.setGroup(!1));
5714
5714
  }
5715
5715
  this.prevParentConnection_ = o;
5716
5716
  }
@@ -5759,14 +5759,14 @@ const Ts = {
5759
5759
  const e = this.getField("VAR"), n = e.getVariable(), o = n == null ? void 0 : n.getName();
5760
5760
  if (!this.isCollapsed() && o) {
5761
5761
  const i = {
5762
- type: "variables_get",
5762
+ type: "variable_get_v1",
5763
5763
  fields: {
5764
5764
  VAR: e.saveState(!0)
5765
5765
  }
5766
5766
  };
5767
5767
  t.push({
5768
5768
  enabled: !0,
5769
- text: _.VARIABLES_SET_CREATE_GET.replace("%1", o),
5769
+ text: p.VARIABLE_SET_CREATE_GET.replace("%1", o),
5770
5770
  callback: On.callbackFactory(this, i)
5771
5771
  });
5772
5772
  }
@@ -5793,23 +5793,23 @@ const Es = /* @__PURE__ */ new Set([
5793
5793
  let t = this;
5794
5794
  do {
5795
5795
  if (Es.has(t.type))
5796
- return !0;
5796
+ return t;
5797
5797
  t = t == null ? void 0 : t.getSurroundParent();
5798
5798
  } while (t);
5799
- return !1;
5799
+ return null;
5800
5800
  },
5801
5801
  onchange: function(t) {
5802
5802
  const e = this.workspace;
5803
- if (!e.isDragging || e.isDragging() || t.type !== A.BLOCK_MOVE && t.type !== A.BLOCK_CREATE)
5803
+ if (!e.isDragging || e.isDragging() || t.type !== I.BLOCK_MOVE && t.type !== I.BLOCK_CREATE)
5804
5804
  return;
5805
5805
  const n = this.getSurroundLoop();
5806
5806
  if (this.setWarningText(
5807
- n ? null : _.LOOP_FLOW_CONTROL_WARNING
5807
+ n ? null : p.LOOP_FLOW_CONTROL_WARNING
5808
5808
  ), !this.isInFlyout)
5809
5809
  try {
5810
- A.setRecordUndo(!1), this.setDisabledReason(!n, "FLOW_CONTROL_NOT_IN_LOOP");
5810
+ I.setRecordUndo(!1), this.setDisabledReason(!n, "FLOW_CONTROL_NOT_IN_LOOP");
5811
5811
  } finally {
5812
- A.setRecordUndo(!0);
5812
+ I.setRecordUndo(!0);
5813
5813
  }
5814
5814
  }
5815
5815
  };
@@ -5838,6 +5838,32 @@ f([
5838
5838
  extensions: ["flow_control_tooltip_v1", "flow_control_in_loop_check_v1"]
5839
5839
  }
5840
5840
  ]);
5841
+ a.forBlock.flow_control_v1 = function(t) {
5842
+ let e = "";
5843
+ if (a.STATEMENT_PREFIX && (e += a.injectId(
5844
+ a.STATEMENT_PREFIX,
5845
+ t
5846
+ )), a.STATEMENT_SUFFIX && (e += a.injectId(
5847
+ a.STATEMENT_SUFFIX,
5848
+ t
5849
+ )), a.STATEMENT_PREFIX) {
5850
+ const o = t.getSurroundLoop();
5851
+ o && !o.suppressPrefixSuffix && (e += a.injectId(
5852
+ a.STATEMENT_PREFIX,
5853
+ o
5854
+ ));
5855
+ }
5856
+ switch (t.getFieldValue("MODE")) {
5857
+ case "BREAK":
5858
+ return `${e}break;
5859
+ `;
5860
+ case "CONTINUE":
5861
+ return `${e}continue;
5862
+ `;
5863
+ default:
5864
+ throw "unknown mode";
5865
+ }
5866
+ };
5841
5867
  D.register(
5842
5868
  "for_tooltip_v1",
5843
5869
  D.buildTooltipWithFieldText(
@@ -5889,6 +5915,47 @@ f([
5889
5915
  extensions: ["contextMenu_newGetVariableBlock_v1", "for_tooltip_v1"]
5890
5916
  }
5891
5917
  ]);
5918
+ a.forBlock.for_v1 = function(t) {
5919
+ const e = a.INDENT, n = a.getVariableName(
5920
+ t.getFieldValue("VAR")
5921
+ ), o = a.valueToCode(t, "FROM", l.ASSIGNMENT) || "0", i = a.valueToCode(t, "TO", l.ASSIGNMENT) || "0", s = a.valueToCode(t, "BY", l.ASSIGNMENT) || "1", c = a.addLoopTrap(
5922
+ a.statementToCode(t, "DO"),
5923
+ t
5924
+ );
5925
+ if (g.string.isNumber(o) && g.string.isNumber(i) && g.string.isNumber(s)) {
5926
+ const u = Math.abs(Number(s));
5927
+ return Number(o) <= Number(i) ? `for (${n} = ${o}; ${n} <= ${i}; ${n} += ${u}) {
5928
+ ${c}}
5929
+ ` : `for (${n} = ${o}; ${n} >= ${i}; ${n} -= ${u}) {
5930
+ ${c}}
5931
+ `;
5932
+ } else {
5933
+ let u = "", r = o;
5934
+ !o.match(/^\w+$/) && !g.string.isNumber(o) && (r = a.nameDB_.getDistinctName(
5935
+ `${n}_from`,
5936
+ ne.NameType.VARIABLE
5937
+ ), u += `var ${r} = ${o};
5938
+ `);
5939
+ let _ = i;
5940
+ !i.match(/^\w+$/) && !g.string.isNumber(i) && (_ = a.nameDB_.getDistinctName(
5941
+ `${n}_to`,
5942
+ ne.NameType.VARIABLE
5943
+ ), u += `var ${_} = ${i};
5944
+ `);
5945
+ const h = a.nameDB_.getDistinctName(
5946
+ `${n}_by`,
5947
+ ne.NameType.VARIABLE
5948
+ );
5949
+ return u += `var ${h} = `, g.string.isNumber(s) ? u += `${Math.abs(Number(s))};
5950
+ ` : u += `Math.abs(${s});
5951
+ `, u += `if (${r} > ${_}) {
5952
+ ${e}${h} = -${h};
5953
+ }
5954
+ `, u += `for (${n} = ${r}; ${h} >= 0 ? ${n} <= ${_} : ${n} >= ${_}; ${n} += ${h}) {
5955
+ ${c}}
5956
+ `, u;
5957
+ }
5958
+ };
5892
5959
  D.register(
5893
5960
  "for_each_tooltip_v1",
5894
5961
  D.buildTooltipWithFieldText(
@@ -5926,8 +5993,76 @@ f([
5926
5993
  extensions: ["contextMenu_newGetVariableBlock_v1", "for_each_tooltip_v1"]
5927
5994
  }
5928
5995
  ]);
5996
+ a.forBlock.for_each_v1 = function(t) {
5997
+ const e = a.INDENT, n = a.getVariableName(
5998
+ t.getFieldValue("VAR")
5999
+ ), o = a.valueToCode(t, "LIST", l.ASSIGNMENT) || "[]", i = a.addLoopTrap(
6000
+ a.statementToCode(t, "DO"),
6001
+ t
6002
+ );
6003
+ let s = "", c = o;
6004
+ o.match(/^\w+$/) || (c = a.nameDB_.getDistinctName(
6005
+ `${n}_list`,
6006
+ ne.NameType.VARIABLE
6007
+ ), s += `var ${c} = ${o};
6008
+ `);
6009
+ const u = a.nameDB_.getDistinctName(
6010
+ `${n}_index`,
6011
+ ne.NameType.VARIABLE
6012
+ );
6013
+ return s += `for (var ${u} in ${c}) {
6014
+ ${e}${n} = ${c}[${u}];
6015
+ ${i}}
6016
+ `, s;
6017
+ };
6018
+ f([
6019
+ {
6020
+ type: "repeat_v1",
6021
+ message0: "%{BKY_LOOP_V1_REPEAT_TITLE}",
6022
+ args0: [
6023
+ {
6024
+ type: "input_value",
6025
+ name: "TIMES",
6026
+ check: "Number"
6027
+ }
6028
+ ],
6029
+ message1: "%{BKY_LOOP_DO} %1",
6030
+ args1: [
6031
+ {
6032
+ type: "input_statement",
6033
+ name: "DO"
6034
+ }
6035
+ ],
6036
+ previousStatement: null,
6037
+ nextStatement: null,
6038
+ style: "loop_blocks",
6039
+ tooltip: "%{BKY_LOOP_REPEAT_TOOLTIP}",
6040
+ helpUrl: "%{BKY_LOOP_REPEAT_HELPURL}"
6041
+ }
6042
+ ]);
6043
+ a.forBlock.repeat_v1 = function(t) {
6044
+ let e = "";
6045
+ t.getField("TIMES") ? e = String(Number(t.getFieldValue("TIMES"))) : e = a.valueToCode(t, "TIMES", l.ASSIGNMENT) || "0";
6046
+ const n = a.addLoopTrap(
6047
+ a.statementToCode(t, "DO"),
6048
+ t
6049
+ );
6050
+ let o = "";
6051
+ const i = a.nameDB_.getDistinctName(
6052
+ "count",
6053
+ ne.NameType.VARIABLE
6054
+ );
6055
+ let s = e;
6056
+ return !e.match(/^\w+$/) && !g.string.isNumber(e) && (s = a.nameDB_.getDistinctName(
6057
+ "repeat_end",
6058
+ ne.NameType.VARIABLE
6059
+ ), o += `var ${s} = ${e};
6060
+ `), o += `for (var ${i} = 0; ${i} < ${s}; ${i}++) {
6061
+ ${n}}
6062
+ `, o;
6063
+ };
5929
6064
  D.register(
5930
- "loop_while_until_tooltip_v1",
6065
+ "while_until_tooltip_v1",
5931
6066
  D.buildTooltipForDropdown("MODE", {
5932
6067
  WHILE: "%{BKY_LOOP_V1_WHILE_UNTIL_TOOLTIP_WHILE}",
5933
6068
  UNTIL: "%{BKY_LOOP_V1_WHILE_UNTIL_TOOLTIP_UNTIL}"
@@ -5935,7 +6070,7 @@ D.register(
5935
6070
  );
5936
6071
  f([
5937
6072
  {
5938
- type: "loop_while_until_v1",
6073
+ type: "while_until_v1",
5939
6074
  message0: "%1 %2",
5940
6075
  args0: [
5941
6076
  {
@@ -5963,10 +6098,10 @@ f([
5963
6098
  nextStatement: null,
5964
6099
  style: "loop_blocks",
5965
6100
  helpUrl: "%{BKY_LOOP_V1_WHILE_UNTIL_HELPURL}",
5966
- extensions: ["loop_while_until_tooltip_v1"]
6101
+ extensions: ["while_until_tooltip_v1"]
5967
6102
  }
5968
6103
  ]);
5969
- a.forBlock.loop_while_until_v1 = function(t) {
6104
+ a.forBlock.while_until_v1 = function(t) {
5970
6105
  const e = t.getFieldValue("MODE");
5971
6106
  let n = a.valueToCode(
5972
6107
  t,
@@ -5974,10 +6109,12 @@ a.forBlock.loop_while_until_v1 = function(t) {
5974
6109
  e === "UNTIL" ? l.LOGICAL_NOT : l.NONE
5975
6110
  ) || "false";
5976
6111
  e === "UNTIL" && (n = "!" + n);
5977
- const o = a.statementToCode(t, "HANDLE");
6112
+ const o = a.addLoopTrap(
6113
+ a.statementToCode(t, "HANDLE"),
6114
+ t
6115
+ );
5978
6116
  return `while (${n}) {
5979
- ${o}
5980
- }
6117
+ ${o}}
5981
6118
  `;
5982
6119
  };
5983
6120
  const As = {
@@ -6617,7 +6754,7 @@ a.forBlock.math_trig_v1 = function(t) {
6617
6754
  }
6618
6755
  return [o, l.DIVISION];
6619
6756
  };
6620
- const Is = I.xml, Os = {
6757
+ const Is = g.xml, Os = {
6621
6758
  init: function() {
6622
6759
  this.appendDummyInput().appendField(
6623
6760
  "%{BKY_OBJECT_V1_CREATE_CONTAINER_TITLE}"
@@ -6634,7 +6771,7 @@ m.object_create_item_v1 = Cs;
6634
6771
  const ks = {
6635
6772
  init: function() {
6636
6773
  this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_OBJECT_V1_CREATE_TITLE}"), this.setMutator(
6637
- new me.MutatorIcon(
6774
+ new Te.MutatorIcon(
6638
6775
  ["object_create_item_v1"],
6639
6776
  this
6640
6777
  )
@@ -6702,7 +6839,7 @@ const ks = {
6702
6839
  },
6703
6840
  updateShape_: function() {
6704
6841
  for (let t = 0; t < this.itemCount_; t++)
6705
- this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(new _e("key"), "KEY" + t);
6842
+ this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setAlign(y.Align.RIGHT).appendField(new pe("key"), "KEY" + t);
6706
6843
  for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
6707
6844
  this.removeInput("ADD" + t);
6708
6845
  }
@@ -6965,7 +7102,7 @@ f([
6965
7102
  a.forBlock.object_to_json_v1 = function(t) {
6966
7103
  return [`__jsonStringifyV1__(${a.valueToCode(t, "OBJECT", l.NONE) || "null"})`, l.FUNCTION_CALL];
6967
7104
  };
6968
- const mn = I.xml, ys = {
7105
+ const mn = g.xml, ys = {
6969
7106
  init: function() {
6970
7107
  this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_CONTAINER_TITLE}").appendField(new To(!1), "WITHRETURN"), this.appendStatementInput("STACK"), this.setStyle("procedure_blocks"), this.contextMenu = !1;
6971
7108
  }
@@ -6973,7 +7110,7 @@ const mn = I.xml, ys = {
6973
7110
  m.procedure_def_container_v1 = ys;
6974
7111
  const vs = {
6975
7112
  init: function() {
6976
- const t = new _e(xt.DEFAULT_ARG);
7113
+ const t = new pe(Yt.DEFAULT_ARG);
6977
7114
  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;
6978
7115
  },
6979
7116
  validator_: function(t) {
@@ -6994,14 +7131,14 @@ const vs = {
6994
7131
  }
6995
7132
  };
6996
7133
  m.procedure_def_item_v1 = vs;
6997
- const Ls = {
7134
+ const Ns = {
6998
7135
  init: function() {
6999
7136
  this.withReturn = !1, this.args = [];
7000
- const t = new _e(
7001
- xt.findLegalName("", this)
7137
+ const t = new pe(
7138
+ Yt.findLegalName("", this)
7002
7139
  );
7003
- t.setValidator(xt.rename), t.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(t, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
7004
- new me.MutatorIcon(
7140
+ t.setValidator(Yt.rename), t.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(t, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
7141
+ new Te.MutatorIcon(
7005
7142
  ["procedure_def_item_v1"],
7006
7143
  this
7007
7144
  )
@@ -7087,25 +7224,25 @@ const Ls = {
7087
7224
  o.setKeyName(`__param@${e.id}__`, e.name, !1);
7088
7225
  else
7089
7226
  try {
7090
- A.disable(), o = Jt(
7227
+ I.disable(), o = Jt(
7091
7228
  this.workspace,
7092
7229
  `__param@${e.id}__`,
7093
7230
  e.name,
7094
7231
  !1
7095
7232
  ), o.outputConnection.connect(n);
7096
7233
  } finally {
7097
- A.enable();
7234
+ I.enable();
7098
7235
  }
7099
7236
  }
7100
7237
  }
7101
7238
  };
7102
- m.procedure_def_v1 = Ls;
7103
- const Ns = I.xml, Ss = {
7239
+ m.procedure_def_v1 = Ns;
7240
+ const Ls = g.xml, Ss = {
7104
7241
  init: function() {
7105
7242
  this.withReturn = !1, this.appendDummyInput("DUMMY").appendField("%{BKY_PROCEDURE_RETURN}"), this.appendValueInput("VALUE").appendField("%{BKY_PROCEDURE_RETURN}").setVisible(!1), this.setPreviousStatement(!0), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_PROCEDURE_V1_RETURN_TOOLTIP}"), this.setHelpUrl("%{BKY_PROCEDURE_V1_RETURN_HELPURL}");
7106
7243
  },
7107
7244
  mutationToDom: function() {
7108
- const t = Ns.createElement("mutation");
7245
+ const t = Ls.createElement("mutation");
7109
7246
  return t.setAttribute("withreturn", this.withReturn ? "TRUE" : "FALSE"), t;
7110
7247
  },
7111
7248
  domToMutation: function(t) {
@@ -7127,7 +7264,7 @@ const Ns = I.xml, Ss = {
7127
7264
  var e;
7128
7265
  if (t.type === S.STATE_CHANGE)
7129
7266
  this.checkWarning_();
7130
- else if (t.type === A.BLOCK_DRAG) {
7267
+ else if (t.type === I.BLOCK_DRAG) {
7131
7268
  const n = t;
7132
7269
  if (n.isStart || !((e = n.blocks) != null && e.find((o) => o.id === this.id)))
7133
7270
  return;
@@ -7220,9 +7357,9 @@ function Bs(t) {
7220
7357
  const e = [];
7221
7358
  return Kn(t).forEach(({ id: o, name: i }) => {
7222
7359
  e.push([i, o]);
7223
- }), L(e);
7360
+ }), N(e);
7224
7361
  }
7225
- function Hn(t, e) {
7362
+ function $n(t, e) {
7226
7363
  const n = T.resource.spaces.find((i) => i.id === t);
7227
7364
  if (!n)
7228
7365
  return [];
@@ -7233,11 +7370,11 @@ function Hn(t, e) {
7233
7370
  }
7234
7371
  function Rs(t, e) {
7235
7372
  const n = [];
7236
- return Hn(t, e).forEach(({ id: i, name: s }) => {
7373
+ return $n(t, e).forEach(({ id: i, name: s }) => {
7237
7374
  n.push([s, i]);
7238
- }), L(n);
7375
+ }), N(n);
7239
7376
  }
7240
- function $n() {
7377
+ function Hn() {
7241
7378
  const t = [];
7242
7379
  return T.resource.spaces.forEach((e) => {
7243
7380
  e.resources.length > 0 && t.push(e);
@@ -7245,9 +7382,9 @@ function $n() {
7245
7382
  }
7246
7383
  function Ds() {
7247
7384
  const t = [];
7248
- return $n().forEach(({ id: n, name: o }) => {
7385
+ return Hn().forEach(({ id: n, name: o }) => {
7249
7386
  t.push([o, n]);
7250
- }), L(t);
7387
+ }), N(t);
7251
7388
  }
7252
7389
  const Us = {
7253
7390
  init: function() {
@@ -7269,7 +7406,7 @@ const Us = {
7269
7406
  var c, u, r;
7270
7407
  if (this.space.id)
7271
7408
  return;
7272
- const t = (c = $n()) == null ? void 0 : c[0];
7409
+ const t = (c = Hn()) == null ? void 0 : c[0];
7273
7410
  if (!t)
7274
7411
  return;
7275
7412
  this.space.id = t.id, this.space.name = t.name;
@@ -7281,7 +7418,7 @@ const Us = {
7281
7418
  this.dir.id = n.id, this.dir.name = n.name;
7282
7419
  const o = this.getField("DIR");
7283
7420
  o.getOptions(!1), o.setValue(this.dir.id);
7284
- const i = (r = Hn(this.space.id, this.dir.id)) == null ? void 0 : r[0];
7421
+ const i = (r = $n(this.space.id, this.dir.id)) == null ? void 0 : r[0];
7285
7422
  if (!i)
7286
7423
  return;
7287
7424
  this.resource.id = i.id, this.resource.name = i.name;
@@ -7296,7 +7433,7 @@ const Us = {
7296
7433
  };
7297
7434
  },
7298
7435
  loadExtraState: function(t) {
7299
- this.space = Me(t.space), this.dir = Me(t.dir), this.resource = Me(t.resource);
7436
+ this.space = Ve(t.space), this.dir = Ve(t.dir), this.resource = Ve(t.resource);
7300
7437
  },
7301
7438
  genSpaceOpts_: function() {
7302
7439
  return Ds();
@@ -7378,7 +7515,7 @@ a.forBlock.text_v1 = function(t) {
7378
7515
  return [a.quote_(t.getFieldValue("TEXT")), l.ATOMIC];
7379
7516
  };
7380
7517
  const Vs = /^\s*'([^']|\\')*'\s*$/;
7381
- function Ze(t) {
7518
+ function et(t) {
7382
7519
  return Vs.test(t) ? [t, l.ATOMIC] : [`String(${t})`, l.FUNCTION_CALL];
7383
7520
  }
7384
7521
  D.register(
@@ -7413,9 +7550,9 @@ a.forBlock.text_append_v1 = function(t) {
7413
7550
  var o;
7414
7551
  const e = (o = a.nameDB_) == null ? void 0 : o.getName(
7415
7552
  t.getFieldValue("VAR"),
7416
- jt.NameType.VARIABLE
7553
+ ne.NameType.VARIABLE
7417
7554
  ), n = a.valueToCode(t, "TEXT", l.NONE) || "''";
7418
- return `${e} += ${Ze(n)};
7555
+ return `${e} += ${et(n)};
7419
7556
  `;
7420
7557
  };
7421
7558
  f([
@@ -7584,7 +7721,7 @@ f([
7584
7721
  a.forBlock.text_is_empty_v1 = function(t) {
7585
7722
  return [`!${a.valueToCode(t, "VALUE", l.MEMBER) || "''"}.length`, l.LOGICAL_NOT];
7586
7723
  };
7587
- const Ps = I.xml, xs = {
7724
+ const Ps = g.xml, xs = {
7588
7725
  itemCount_: 0,
7589
7726
  mutationToDom: function() {
7590
7727
  const t = Ps.createElement("mutation");
@@ -7660,7 +7797,7 @@ const Ps = I.xml, xs = {
7660
7797
  this.removeInput("ADD" + t);
7661
7798
  }
7662
7799
  }, Ys = function() {
7663
- this.itemCount_ = 2, this.updateShape_(), this.setMutator(new me.MutatorIcon(["text_join_item_v1"], this));
7800
+ this.itemCount_ = 2, this.updateShape_(), this.setMutator(new Te.MutatorIcon(["text_join_item_v1"], this));
7664
7801
  };
7665
7802
  D.registerMutator(
7666
7803
  "text_join_mutator_v1",
@@ -7708,11 +7845,11 @@ a.forBlock.text_join_v1 = function(t) {
7708
7845
  return ["''", l.ATOMIC];
7709
7846
  case 1: {
7710
7847
  const n = a.valueToCode(e, "ADD0", l.NONE) || "''";
7711
- return Ze(n);
7848
+ return et(n);
7712
7849
  }
7713
7850
  case 2: {
7714
7851
  const n = a.valueToCode(e, "ADD0", l.NONE) || "''", o = a.valueToCode(e, "ADD1", l.NONE) || "''";
7715
- return [Ze(n)[0] + " + " + Ze(o)[0], l.ADDITION];
7852
+ return [et(n)[0] + " + " + et(o)[0], l.ADDITION];
7716
7853
  }
7717
7854
  default: {
7718
7855
  const n = new Array(e.itemCount_);
@@ -7955,21 +8092,21 @@ a.forBlock.delay_v1 = function(t) {
7955
8092
  const Fs = {
7956
8093
  customContextMenu: function(t) {
7957
8094
  if (this.isInFlyout) {
7958
- if (this.type === "variables_get_v1" || this.type === "variables_get_v1_reporter") {
8095
+ if (this.type === "variable_get_v1") {
7959
8096
  const e = {
7960
- text: _.RENAME_VARIABLE,
8097
+ text: p.RENAME_VARIABLE,
7961
8098
  enabled: !0,
7962
8099
  callback: Ks(this)
7963
8100
  }, n = this.getField("VAR").getText(), o = {
7964
- text: _.DELETE_VARIABLE.replace("%1", n),
8101
+ text: p.DELETE_VARIABLE.replace("%1", n),
7965
8102
  enabled: !0,
7966
- callback: Hs(this)
8103
+ callback: $s(this)
7967
8104
  };
7968
8105
  t.unshift(e), t.unshift(o);
7969
8106
  }
7970
8107
  } else {
7971
8108
  let e, n;
7972
- this.type === "variables_get_v1" ? (e = "variables_set_v1", n = _.VARIABLE_V1_GET_CREATE_SET) : this.type === "variables_set_v1" ? (e = "variables_get_v1", n = _.VARIABLE_V1_SET_CREATE_GET) : console.assert(!1);
8109
+ this.type === "variable_get_v1" ? (e = "variable_set_v1", n = p.VARIABLE_GET_CREATE_SET) : this.type === "variable_set_v1" ? (e = "variable_get_v1", n = p.VARIABLE_SET_CREATE_GET) : console.assert(!1);
7973
8110
  const o = this.getField("VAR"), i = {
7974
8111
  type: e,
7975
8112
  fields: { VAR: o.saveState(!0) }
@@ -7984,12 +8121,12 @@ const Fs = {
7984
8121
  }, Ks = function(t) {
7985
8122
  return function() {
7986
8123
  const e = t.workspace, o = t.getField("VAR").getVariable();
7987
- Be.renameVariable(e, o);
8124
+ Ie.renameVariable(e, o);
7988
8125
  };
7989
- }, Hs = function(t) {
8126
+ }, $s = function(t) {
7990
8127
  return function() {
7991
- const e = t.workspace, o = t.getField("VAR").getVariable();
7992
- e.deleteVariableById(o.getId()), e.refreshToolboxSelection();
8128
+ const n = t.getField("VAR").getVariable();
8129
+ n && Ie.deleteVariable(n.getWorkspace(), n, t);
7993
8130
  };
7994
8131
  };
7995
8132
  D.registerMixin(
@@ -8016,7 +8153,7 @@ f([
8016
8153
  a.forBlock.variable_get_v1 = function(t) {
8017
8154
  return [a.nameDB_.getName(
8018
8155
  t.getFieldValue("VAR"),
8019
- jt.NameType.VARIABLE
8156
+ ne.NameType.VARIABLE
8020
8157
  ), l.ATOMIC];
8021
8158
  };
8022
8159
  f([
@@ -8045,42 +8182,42 @@ f([
8045
8182
  a.forBlock.variable_set_v1 = function(t) {
8046
8183
  const e = a.nameDB_.getName(
8047
8184
  t.getFieldValue("VAR"),
8048
- jt.NameType.VARIABLE
8185
+ ne.NameType.VARIABLE
8049
8186
  ), n = a.valueToCode(t, "VALUE", l.ASSIGNMENT) || "0";
8050
8187
  return `${e} = ${n};
8051
8188
  `;
8052
8189
  };
8053
- const Je = I.xml;
8054
- function $s() {
8190
+ const qe = g.xml;
8191
+ function Hs() {
8055
8192
  const t = [];
8056
8193
  {
8057
- const e = Je.createElement("label");
8058
- e.setAttribute("text", _.LABEL_ASSET_LAYER), t.push(e);
8194
+ const e = qe.createElement("label");
8195
+ e.setAttribute("text", p.LABEL_ASSET_LAYER), t.push(e);
8059
8196
  }
8060
8197
  {
8061
- const e = Je.createElement("block");
8198
+ const e = qe.createElement("block");
8062
8199
  e.setAttribute("type", "upload_resource_v1"), t.push(e);
8063
8200
  }
8064
8201
  {
8065
- const e = Je.createElement("label");
8066
- e.setAttribute("text", _.LABEL_COMPUTE_LAYER), t.push(e);
8202
+ const e = qe.createElement("label");
8203
+ e.setAttribute("text", p.LABEL_COMPUTE_LAYER), t.push(e);
8067
8204
  }
8068
8205
  {
8069
- const e = Je.createElement("block");
8206
+ const e = qe.createElement("block");
8070
8207
  e.setAttribute("type", "call_func_v1"), t.push(e);
8071
8208
  }
8072
8209
  return t;
8073
8210
  }
8074
- const it = {
8211
+ const st = {
8075
8212
  name: "INTERFACE_CATEGORY",
8076
- callback: $s
8077
- }, B = I.xml;
8213
+ callback: Hs
8214
+ }, B = g.xml;
8078
8215
  function Gs() {
8079
8216
  const t = [];
8080
8217
  if (ti()) {
8081
8218
  {
8082
8219
  const e = B.createElement("label");
8083
- e.setAttribute("text", _.LABEL_PAGE), t.push(e);
8220
+ e.setAttribute("text", p.LABEL_PAGE), t.push(e);
8084
8221
  }
8085
8222
  if (Pn().length > 0) {
8086
8223
  const e = B.createElement("block");
@@ -8090,9 +8227,9 @@ function Gs() {
8090
8227
  if (Wo()) {
8091
8228
  {
8092
8229
  const e = B.createElement("label");
8093
- e.setAttribute("text", _.LABEL_COMP), t.push(e);
8230
+ e.setAttribute("text", p.LABEL_COMP), t.push(e);
8094
8231
  }
8095
- if (Fe().length > 0) {
8232
+ if (Ke().length > 0) {
8096
8233
  {
8097
8234
  const e = B.createElement("block");
8098
8235
  e.setAttribute("type", "comp_method_impl_v1"), t.push(e);
@@ -8102,14 +8239,14 @@ function Gs() {
8102
8239
  e.setAttribute("type", "set_comp_method_output_v1"), t.push(e);
8103
8240
  }
8104
8241
  }
8105
- if (Fe().length > 0) {
8242
+ if (Ke().length > 0) {
8106
8243
  const e = B.createElement("block");
8107
8244
  e.setAttribute("type", "trigger_comp_event_v1"), t.push(e);
8108
8245
  }
8109
8246
  }
8110
8247
  {
8111
8248
  const e = B.createElement("label");
8112
- e.setAttribute("text", _.LABEL_EVENT), t.push(e);
8249
+ e.setAttribute("text", p.LABEL_EVENT), t.push(e);
8113
8250
  }
8114
8251
  {
8115
8252
  const e = B.createElement("block");
@@ -8121,7 +8258,7 @@ function Gs() {
8121
8258
  }
8122
8259
  {
8123
8260
  const e = B.createElement("label");
8124
- e.setAttribute("text", _.LABEL_METHOD), t.push(e);
8261
+ e.setAttribute("text", p.LABEL_METHOD), t.push(e);
8125
8262
  }
8126
8263
  {
8127
8264
  const e = B.createElement("block");
@@ -8133,7 +8270,7 @@ function Gs() {
8133
8270
  }
8134
8271
  {
8135
8272
  const e = B.createElement("label");
8136
- e.setAttribute("text", _.LABEL_PROPERTY), t.push(e);
8273
+ e.setAttribute("text", p.LABEL_PROPERTY), t.push(e);
8137
8274
  }
8138
8275
  {
8139
8276
  const e = B.createElement("block");
@@ -8153,7 +8290,7 @@ function Gs() {
8153
8290
  }
8154
8291
  {
8155
8292
  const e = B.createElement("label");
8156
- e.setAttribute("text", _.LABEL_OTHER), t.push(e);
8293
+ e.setAttribute("text", p.LABEL_OTHER), t.push(e);
8157
8294
  }
8158
8295
  {
8159
8296
  const e = B.createElement("block");
@@ -8169,43 +8306,43 @@ function Gs() {
8169
8306
  }
8170
8307
  return t;
8171
8308
  }
8172
- const st = {
8309
+ const at = {
8173
8310
  name: "UI_CATEGORY",
8174
8311
  callback: Gs
8175
- }, be = I.xml;
8312
+ }, Re = g.xml;
8176
8313
  function Ws() {
8177
8314
  const t = [];
8178
8315
  {
8179
- const e = be.createElement("label");
8316
+ const e = Re.createElement("label");
8180
8317
  e.setAttribute("text", "%{BKY_LABEL_PROCEDURE}"), t.push(e);
8181
8318
  }
8182
8319
  {
8183
- const e = be.createElement("block");
8320
+ const e = Re.createElement("block");
8184
8321
  e.setAttribute("type", "procedure_def_v1");
8185
8322
  {
8186
- const n = be.createElement("field");
8323
+ const n = Re.createElement("field");
8187
8324
  n.setAttribute("name", "NAME");
8188
- const o = be.createTextNode(
8189
- _.PROCEDURE_DEFAULT_NAME
8325
+ const o = Re.createTextNode(
8326
+ p.PROCEDURE_DEFAULT_NAME
8190
8327
  );
8191
8328
  n.appendChild(o), e.appendChild(n);
8192
8329
  }
8193
8330
  t.push(e);
8194
8331
  }
8195
8332
  {
8196
- const e = be.createElement("block");
8333
+ const e = Re.createElement("block");
8197
8334
  e.setAttribute("type", "procedure_return_v1"), t.push(e);
8198
8335
  }
8199
8336
  return t;
8200
8337
  }
8201
- const le = {
8338
+ const ue = {
8202
8339
  name: "PROCEDURE_CATEGORY",
8203
8340
  callback: Ws
8204
- }, qe = I.xml;
8341
+ }, ze = g.xml;
8205
8342
  function js() {
8206
8343
  const t = He(), e = [];
8207
8344
  {
8208
- const o = qe.createElement("label");
8345
+ const o = ze.createElement("label");
8209
8346
  o.setAttribute("text", "%{BKY_LABEL_VARIABLE}"), e.push(o);
8210
8347
  }
8211
8348
  {
@@ -8213,7 +8350,7 @@ function js() {
8213
8350
  o.setAttribute("text", "%{BKY_NEW_VARIABLE}"), o.setAttribute("callbackKey", "CREATE_VARIABLE"), t.registerButtonCallback(
8214
8351
  "CREATE_VARIABLE",
8215
8352
  function(i) {
8216
- Be.createVariableButtonHandler(
8353
+ Ie.createVariableButtonHandler(
8217
8354
  i.getTargetWorkspace()
8218
8355
  );
8219
8356
  }
@@ -8222,44 +8359,44 @@ function js() {
8222
8359
  const n = t.getVariablesOfType("");
8223
8360
  if (n.length <= 0)
8224
8361
  return e;
8225
- n.sort(Be.compareByName);
8362
+ n.sort(Ie.compareByName);
8226
8363
  {
8227
- const o = qe.createElement("label");
8228
- o.setAttribute("text", _.LABEL_CREATED), e.push(o);
8364
+ const o = ze.createElement("label");
8365
+ o.setAttribute("text", p.LABEL_CREATED), e.push(o);
8229
8366
  }
8230
8367
  return n.forEach((o) => {
8231
8368
  {
8232
- const i = qe.createElement("block");
8233
- i.setAttribute("type", "variable_get_v1"), i.appendChild(Be.generateVariableFieldDom(o)), e.push(i);
8369
+ const i = ze.createElement("block");
8370
+ i.setAttribute("type", "variable_get_v1"), i.appendChild(Ie.generateVariableFieldDom(o)), e.push(i);
8234
8371
  }
8235
8372
  {
8236
- const i = qe.createElement("block");
8237
- i.setAttribute("type", "variable_set_v1"), i.appendChild(Be.generateVariableFieldDom(o)), e.push(i);
8373
+ const i = ze.createElement("block");
8374
+ i.setAttribute("type", "variable_set_v1"), i.appendChild(Ie.generateVariableFieldDom(o)), e.push(i);
8238
8375
  }
8239
8376
  }), e;
8240
8377
  }
8241
- const ue = {
8378
+ const re = {
8242
8379
  name: "VARIABLE_CATEGORY",
8243
8380
  callback: js
8244
- }, Ee = I.xml;
8381
+ }, ge = g.xml;
8245
8382
  function Xs(t) {
8246
8383
  const e = [];
8247
8384
  if (t === "flow") {
8248
8385
  {
8249
- const n = Ee.createElement("block");
8386
+ const n = ge.createElement("block");
8250
8387
  n.setAttribute("type", "on_flow_state_event_v1"), e.push(n);
8251
8388
  }
8252
8389
  {
8253
- const n = Ee.createElement("block");
8390
+ const n = ge.createElement("block");
8254
8391
  n.setAttribute("type", "compute_debug_trace_v1");
8255
8392
  {
8256
- const o = Ee.createElement("value");
8393
+ const o = ge.createElement("value");
8257
8394
  o.setAttribute("name", "OBJECT");
8258
8395
  {
8259
- const i = Ee.createElement("shadow");
8396
+ const i = ge.createElement("shadow");
8260
8397
  i.setAttribute("type", "text_v1");
8261
8398
  {
8262
- const s = Ee.createElement("field");
8399
+ const s = ge.createElement("field");
8263
8400
  s.setAttribute("name", "TEXT"), i.appendChild(s);
8264
8401
  }
8265
8402
  o.appendChild(i);
@@ -8269,48 +8406,48 @@ function Xs(t) {
8269
8406
  e.push(n);
8270
8407
  }
8271
8408
  } else if (t === "func") {
8272
- if (ve().length > 0) {
8273
- const n = Ee.createElement("block");
8409
+ if (Le().length > 0) {
8410
+ const n = ge.createElement("block");
8274
8411
  n.setAttribute("type", "call_func_internal_v1"), e.push(n);
8275
8412
  }
8276
8413
  } else
8277
8414
  console.assert(!1);
8278
8415
  return e;
8279
8416
  }
8280
- const at = {
8417
+ const ct = {
8281
8418
  name: "FLOW_CATEGORY",
8282
8419
  callback: Xs
8283
- }, oe = I.xml;
8420
+ }, ie = g.xml;
8284
8421
  function Js(t) {
8285
8422
  const { activeFunc: e } = T.compute, n = [];
8286
8423
  if (t === "func") {
8287
8424
  {
8288
- const o = oe.createElement("block");
8425
+ const o = ie.createElement("block");
8289
8426
  o.setAttribute("type", "func_entry_v1"), n.push(o);
8290
8427
  }
8291
8428
  if (e.outputs.length > 0) {
8292
- const o = oe.createElement("block");
8429
+ const o = ie.createElement("block");
8293
8430
  o.setAttribute("type", "set_func_output_v1"), n.push(o);
8294
8431
  }
8295
8432
  {
8296
- const o = oe.createElement("block");
8433
+ const o = ie.createElement("block");
8297
8434
  o.setAttribute("type", "procedure_return_v1"), n.push(o);
8298
8435
  }
8299
- if (ve().length > 0) {
8300
- const o = oe.createElement("block");
8436
+ if (Le().length > 0) {
8437
+ const o = ie.createElement("block");
8301
8438
  o.setAttribute("type", "call_func_internal_v1"), n.push(o);
8302
8439
  }
8303
8440
  {
8304
- const o = oe.createElement("block");
8441
+ const o = ie.createElement("block");
8305
8442
  o.setAttribute("type", "compute_debug_trace_v1");
8306
8443
  {
8307
- const i = oe.createElement("value");
8444
+ const i = ie.createElement("value");
8308
8445
  i.setAttribute("name", "OBJECT");
8309
8446
  {
8310
- const s = oe.createElement("shadow");
8447
+ const s = ie.createElement("shadow");
8311
8448
  s.setAttribute("type", "text_v1");
8312
8449
  {
8313
- const c = oe.createElement("field");
8450
+ const c = ie.createElement("field");
8314
8451
  c.setAttribute("name", "TEXT"), s.appendChild(c);
8315
8452
  }
8316
8453
  i.appendChild(s);
@@ -8320,24 +8457,24 @@ function Js(t) {
8320
8457
  n.push(o);
8321
8458
  }
8322
8459
  } else if (t === "flow") {
8323
- if (ve().length > 0) {
8324
- const o = oe.createElement("block");
8460
+ if (Le().length > 0) {
8461
+ const o = ie.createElement("block");
8325
8462
  o.setAttribute("type", "call_func_internal_v1"), n.push(o);
8326
8463
  }
8327
8464
  } else
8328
8465
  console.assert(!1);
8329
8466
  return n;
8330
8467
  }
8331
- const ct = {
8468
+ const lt = {
8332
8469
  name: "FUNC_CATEGORY",
8333
8470
  callback: Js
8334
- }, C = I.xml;
8471
+ }, C = g.xml;
8335
8472
  function qs() {
8336
8473
  const t = [];
8337
8474
  if (z().length > 0) {
8338
8475
  {
8339
8476
  const e = C.createElement("label");
8340
- e.setAttribute("text", _.LABEL_OPERATION), t.push(e);
8477
+ e.setAttribute("text", p.LABEL_OPERATION), t.push(e);
8341
8478
  }
8342
8479
  {
8343
8480
  const e = C.createElement("block");
@@ -8380,7 +8517,7 @@ function qs() {
8380
8517
  }
8381
8518
  {
8382
8519
  const e = C.createElement("label");
8383
- e.setAttribute("text", _.LABEL_TABLE), t.push(e);
8520
+ e.setAttribute("text", p.LABEL_TABLE), t.push(e);
8384
8521
  }
8385
8522
  {
8386
8523
  const e = C.createElement("block");
@@ -8396,7 +8533,7 @@ function qs() {
8396
8533
  }
8397
8534
  {
8398
8535
  const e = C.createElement("label");
8399
- e.setAttribute("text", _.LABEL_CONDITION), t.push(e);
8536
+ e.setAttribute("text", p.LABEL_CONDITION), t.push(e);
8400
8537
  }
8401
8538
  {
8402
8539
  const e = C.createElement("block");
@@ -8423,7 +8560,7 @@ function qs() {
8423
8560
  }
8424
8561
  {
8425
8562
  const e = C.createElement("label");
8426
- e.setAttribute("text", _.LABEL_QUERY_EXTRA), t.push(e);
8563
+ e.setAttribute("text", p.LABEL_QUERY_EXTRA), t.push(e);
8427
8564
  }
8428
8565
  {
8429
8566
  const e = C.createElement("block");
@@ -8501,11 +8638,11 @@ function qs() {
8501
8638
  }
8502
8639
  } else {
8503
8640
  const e = document.createElement("button");
8504
- e.setAttribute("text", _.BUTTON_NO_TABLE), e.setAttribute("callbackKey", "NO_TABLE"), t.push(e);
8641
+ e.setAttribute("text", p.BUTTON_NO_TABLE), e.setAttribute("callbackKey", "NO_TABLE"), t.push(e);
8505
8642
  }
8506
8643
  return t;
8507
8644
  }
8508
- const lt = {
8645
+ const ut = {
8509
8646
  name: "DATA_CATEGORY",
8510
8647
  callback: qs
8511
8648
  };
@@ -8537,7 +8674,7 @@ const Gn = (t, e, n) => {
8537
8674
  });
8538
8675
  };
8539
8676
  async function Tn(t) {
8540
- const e = await Gn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.jglfa8bb.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.4oqnte8f.js") }), `./msg/${t}.ts`, 3);
8677
+ const e = await Gn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.fj04iwzg.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.os4ap6q2.js") }), `./msg/${t}.ts`, 3);
8541
8678
  Eo(e.default);
8542
8679
  }
8543
8680
  function zt(t) {
@@ -8567,21 +8704,21 @@ class zs {
8567
8704
  shortcut: !0
8568
8705
  }) {
8569
8706
  e && (this.blockCopyToStorageContextMenu(), this.blockPasteFromStorageContextMenu()), n && (K.registry.unregister(
8570
- Qe.names.COPY
8707
+ Ze.names.COPY
8571
8708
  ), K.registry.unregister(
8572
- Qe.names.CUT
8709
+ Ze.names.CUT
8573
8710
  ), K.registry.unregister(
8574
- Qe.names.PASTE
8711
+ Ze.names.PASTE
8575
8712
  ), this.blockCopyToStorageShortcut(), this.blockCutToStorageShortcut(), this.blockPasteFromStorageShortcut());
8576
8713
  }
8577
8714
  blockCopyToStorageContextMenu() {
8578
8715
  const e = {
8579
8716
  displayText: function() {
8580
- return _.CROSS_TAB_COPY ? _.CROSS_TAB_COPY : "Copy";
8717
+ return p.CROSS_TAB_COPY ? p.CROSS_TAB_COPY : "Copy";
8581
8718
  },
8582
8719
  preconditionFn: function() {
8583
- const n = ge();
8584
- return !n || !Xe(n) || !n.isDeletable() || !yt(n) || !n.isMovable() || !Se(n) ? "disabled" : "enabled";
8720
+ const n = Ae();
8721
+ return !n || !Je(n) || !n.isDeletable() || !vt(n) || !n.isMovable() || !Be(n) ? "disabled" : "enabled";
8585
8722
  },
8586
8723
  callback: function(n) {
8587
8724
  var o;
@@ -8590,16 +8727,16 @@ class zs {
8590
8727
  JSON.stringify((o = n.block) == null ? void 0 : o.toCopyData())
8591
8728
  );
8592
8729
  },
8593
- scopeType: Re.ScopeType.BLOCK,
8730
+ scopeType: De.ScopeType.BLOCK,
8594
8731
  id: "blockCopyToStorage",
8595
8732
  weight: 0
8596
8733
  };
8597
- Re.registry.register(e);
8734
+ De.registry.register(e);
8598
8735
  }
8599
8736
  blockPasteFromStorageContextMenu() {
8600
8737
  const e = {
8601
8738
  displayText: function() {
8602
- return _.CROSS_TAB_PASTE ? _.CROSS_TAB_PASTE : "Paste";
8739
+ return p.CROSS_TAB_PASTE ? p.CROSS_TAB_PASTE : "Paste";
8603
8740
  },
8604
8741
  preconditionFn: function(n) {
8605
8742
  var s;
@@ -8616,34 +8753,34 @@ class zs {
8616
8753
  const i = JSON.parse(o);
8617
8754
  i && n.workspace && ln.paste(i, n.workspace);
8618
8755
  },
8619
- scopeType: Re.ScopeType.WORKSPACE,
8756
+ scopeType: De.ScopeType.WORKSPACE,
8620
8757
  id: "blockPasteFromStorage",
8621
8758
  weight: 0
8622
8759
  };
8623
- Re.registry.register(e);
8760
+ De.registry.register(e);
8624
8761
  }
8625
8762
  blockCopyToStorageShortcut() {
8626
8763
  const e = K.registry.createSerializedKey(
8627
- I.KeyCodes.C,
8628
- [I.KeyCodes.CTRL]
8764
+ g.KeyCodes.C,
8765
+ [g.KeyCodes.CTRL]
8629
8766
  ), n = K.registry.createSerializedKey(
8630
- I.KeyCodes.C,
8631
- [I.KeyCodes.ALT]
8767
+ g.KeyCodes.C,
8768
+ [g.KeyCodes.ALT]
8632
8769
  ), o = K.registry.createSerializedKey(
8633
- I.KeyCodes.C,
8634
- [I.KeyCodes.META]
8770
+ g.KeyCodes.C,
8771
+ [g.KeyCodes.META]
8635
8772
  ), i = {
8636
8773
  name: "copy",
8637
8774
  preconditionFn: function(s) {
8638
- if (s.options.readOnly || vt.inProgress())
8775
+ if (s.options.readOnly || Nt.inProgress())
8639
8776
  return !1;
8640
- const c = ge();
8641
- return !(!c || !Xe(c) || !c.isDeletable() || !yt(c) || !c.isMovable() || !Se(c));
8777
+ const c = Ae();
8778
+ return !(!c || !Je(c) || !c.isDeletable() || !vt(c) || !c.isMovable() || !Be(c));
8642
8779
  },
8643
8780
  callback: function(s, c) {
8644
8781
  c.preventDefault();
8645
- const u = ge();
8646
- if (!u || !Se(u))
8782
+ const u = Ae();
8783
+ if (!u || !Be(u))
8647
8784
  return !1;
8648
8785
  const r = u.toCopyData();
8649
8786
  return r ? (s.hideChaff(), localStorage.setItem("blocklyStash", JSON.stringify(r)), !0) : !1;
@@ -8654,26 +8791,26 @@ class zs {
8654
8791
  }
8655
8792
  blockCutToStorageShortcut() {
8656
8793
  const e = K.registry.createSerializedKey(
8657
- I.KeyCodes.X,
8658
- [I.KeyCodes.CTRL]
8794
+ g.KeyCodes.X,
8795
+ [g.KeyCodes.CTRL]
8659
8796
  ), n = K.registry.createSerializedKey(
8660
- I.KeyCodes.X,
8661
- [I.KeyCodes.ALT]
8797
+ g.KeyCodes.X,
8798
+ [g.KeyCodes.ALT]
8662
8799
  ), o = K.registry.createSerializedKey(
8663
- I.KeyCodes.X,
8664
- [I.KeyCodes.META]
8800
+ g.KeyCodes.X,
8801
+ [g.KeyCodes.META]
8665
8802
  ), i = {
8666
8803
  name: "cut",
8667
8804
  preconditionFn: function(s) {
8668
- if (s.options.readOnly || vt.inProgress())
8805
+ if (s.options.readOnly || Nt.inProgress())
8669
8806
  return !1;
8670
- const c = ge();
8671
- return !(!c || !Xe(c) || !c.isDeletable() || !yt(c) || !c.isMovable() || !Se(c) || c.workspace.isFlyout);
8807
+ const c = Ae();
8808
+ return !(!c || !Je(c) || !c.isDeletable() || !vt(c) || !c.isMovable() || !Be(c) || c.workspace.isFlyout);
8672
8809
  },
8673
8810
  callback: function(s, c) {
8674
8811
  c.preventDefault();
8675
- const u = ge();
8676
- if (!u || !Xe(u) || !u.isDeletable() || !Se(u))
8812
+ const u = Ae();
8813
+ if (!u || !Je(u) || !u.isDeletable() || !Be(u))
8677
8814
  return !1;
8678
8815
  const r = u.toCopyData();
8679
8816
  return r ? (localStorage.setItem("blocklyStash", JSON.stringify(r)), u instanceof go ? u.checkAndDelete() : u.dispose(), !0) : !1;
@@ -8684,18 +8821,18 @@ class zs {
8684
8821
  }
8685
8822
  blockPasteFromStorageShortcut() {
8686
8823
  const e = K.registry.createSerializedKey(
8687
- I.KeyCodes.V,
8688
- [I.KeyCodes.CTRL]
8824
+ g.KeyCodes.V,
8825
+ [g.KeyCodes.CTRL]
8689
8826
  ), n = K.registry.createSerializedKey(
8690
- I.KeyCodes.V,
8691
- [I.KeyCodes.ALT]
8827
+ g.KeyCodes.V,
8828
+ [g.KeyCodes.ALT]
8692
8829
  ), o = K.registry.createSerializedKey(
8693
- I.KeyCodes.V,
8694
- [I.KeyCodes.META]
8830
+ g.KeyCodes.V,
8831
+ [g.KeyCodes.META]
8695
8832
  ), i = {
8696
8833
  name: "paste",
8697
8834
  preconditionFn: function(s) {
8698
- if (s.options.readOnly || vt.inProgress())
8835
+ if (s.options.readOnly || Nt.inProgress())
8699
8836
  return !1;
8700
8837
  const c = localStorage.getItem("blocklyStash");
8701
8838
  if (!c)
@@ -8722,19 +8859,19 @@ function jn(t) {
8722
8859
  }
8723
8860
  class Qs {
8724
8861
  init() {
8725
- const e = Re.registry.getItem("blockDisable");
8862
+ const e = De.registry.getItem("blockDisable");
8726
8863
  e && (e.preconditionFn = function(n) {
8727
8864
  const o = n.block;
8728
8865
  return o && !o.isInFlyout && o.workspace.options.disable && o.isEditable() ? o.getInheritedDisabled() || jn(o) ? "disabled" : "enabled" : "hidden";
8729
8866
  });
8730
8867
  }
8731
8868
  }
8732
- K.registry.unregister(Qe.names.ESCAPE);
8869
+ K.registry.unregister(Ze.names.ESCAPE);
8733
8870
  const Zs = new zs();
8734
8871
  Zs.init({ contextMenu: !0, shortcut: !0 });
8735
8872
  const ea = new Qs();
8736
8873
  ea.init();
8737
- rt.Classic.blockStyles = {
8874
+ _t.Classic.blockStyles = {
8738
8875
  color_blocks: {
8739
8876
  colourPrimary: "#a5745b",
8740
8877
  colourSecondary: "#ede3de",
@@ -8808,7 +8945,7 @@ rt.Classic.blockStyles = {
8808
8945
  hat: ""
8809
8946
  }
8810
8947
  };
8811
- rt.Classic.categoryStyles = {
8948
+ _t.Classic.categoryStyles = {
8812
8949
  calc_category: {
8813
8950
  colour: "#757575"
8814
8951
  },
@@ -8866,7 +9003,7 @@ rt.Classic.categoryStyles = {
8866
9003
  };
8867
9004
  const ta = kn.defineTheme("light", {
8868
9005
  name: "light",
8869
- base: rt.Classic,
9006
+ base: _t.Classic,
8870
9007
  componentStyles: {
8871
9008
  workspaceBackgroundColour: "#ffffff",
8872
9009
  toolboxBackgroundColour: "#eeeeee",
@@ -8882,7 +9019,7 @@ const ta = kn.defineTheme("light", {
8882
9019
  }
8883
9020
  }), na = kn.defineTheme("dark", {
8884
9021
  name: "dark",
8885
- base: rt.Classic,
9022
+ base: _t.Classic,
8886
9023
  componentStyles: {
8887
9024
  workspaceBackgroundColour: "#1e1e1e",
8888
9025
  toolboxBackgroundColour: "#272727",
@@ -8908,7 +9045,7 @@ function oa(t) {
8908
9045
  break;
8909
9046
  }
8910
9047
  }
8911
- const Tt = {
9048
+ const Et = {
8912
9049
  kind: "category",
8913
9050
  name: "%{BKY_CATEGORY_COLOR}",
8914
9051
  categorystyle: "color_category",
@@ -8982,7 +9119,7 @@ const Tt = {
8982
9119
  }
8983
9120
  }
8984
9121
  ]
8985
- }, Et = {
9122
+ }, gt = {
8986
9123
  kind: "category",
8987
9124
  name: "%{BKY_CATEGORY_LIST}",
8988
9125
  categorystyle: "list_category",
@@ -9097,7 +9234,7 @@ const Tt = {
9097
9234
  type: "list_reverse_v1"
9098
9235
  }
9099
9236
  ]
9100
- }, gt = {
9237
+ }, At = {
9101
9238
  kind: "category",
9102
9239
  name: "%{BKY_CATEGORY_LOGIC}",
9103
9240
  categorystyle: "logic_category",
@@ -9139,29 +9276,69 @@ const Tt = {
9139
9276
  type: "logic_ternary_v1"
9140
9277
  }
9141
9278
  ]
9142
- }, At = {
9279
+ }, It = {
9143
9280
  kind: "category",
9144
9281
  name: "%{BKY_CATEGORY_LOOP}",
9145
9282
  categorystyle: "loop_category",
9146
9283
  contents: [
9147
9284
  {
9148
9285
  kind: "block",
9149
- type: "loop_while_until_v1"
9286
+ type: "repeat_v1",
9287
+ inputs: {
9288
+ TIMES: {
9289
+ shadow: {
9290
+ type: "math_number_v1",
9291
+ fields: {
9292
+ NUM: 10
9293
+ }
9294
+ }
9295
+ }
9296
+ }
9150
9297
  },
9151
9298
  {
9152
9299
  kind: "block",
9153
- type: "flow_control_v1"
9300
+ type: "while_until_v1"
9154
9301
  },
9155
9302
  {
9156
9303
  kind: "block",
9157
- type: "for_v1"
9304
+ type: "for_v1",
9305
+ inputs: {
9306
+ FROM: {
9307
+ shadow: {
9308
+ type: "math_number_v1",
9309
+ fields: {
9310
+ NUM: 1
9311
+ }
9312
+ }
9313
+ },
9314
+ TO: {
9315
+ shadow: {
9316
+ type: "math_number_v1",
9317
+ fields: {
9318
+ NUM: 10
9319
+ }
9320
+ }
9321
+ },
9322
+ BY: {
9323
+ shadow: {
9324
+ type: "math_number_v1",
9325
+ fields: {
9326
+ NUM: 1
9327
+ }
9328
+ }
9329
+ }
9330
+ }
9158
9331
  },
9159
9332
  {
9160
9333
  kind: "block",
9161
9334
  type: "for_each_v1"
9335
+ },
9336
+ {
9337
+ kind: "block",
9338
+ type: "flow_control_v1"
9162
9339
  }
9163
9340
  ]
9164
- }, It = {
9341
+ }, Ot = {
9165
9342
  kind: "category",
9166
9343
  name: "%{BKY_CATEGORY_MATH}",
9167
9344
  categorystyle: "math_category",
@@ -9352,7 +9529,7 @@ const Tt = {
9352
9529
  type: "open_prompt_dlg_v1"
9353
9530
  }
9354
9531
  ]
9355
- }, Ot = {
9532
+ }, Ct = {
9356
9533
  kind: "category",
9357
9534
  name: "%{BKY_CATEGORY_OBJECT}",
9358
9535
  categorystyle: "object_category",
@@ -9420,7 +9597,7 @@ const Tt = {
9420
9597
  }
9421
9598
  }
9422
9599
  ]
9423
- }, Ct = {
9600
+ }, kt = {
9424
9601
  kind: "category",
9425
9602
  name: "%{BKY_CATEGORY_TEXT}",
9426
9603
  categorystyle: "text_category",
@@ -9614,34 +9791,34 @@ const Tt = {
9614
9791
  kind: "category",
9615
9792
  name: "%{BKY_CATEGORY_UI}",
9616
9793
  categorystyle: "ui_category",
9617
- custom: st.name
9794
+ custom: at.name
9618
9795
  },
9619
9796
  Xn,
9797
+ It,
9620
9798
  At,
9799
+ Ot,
9800
+ kt,
9621
9801
  gt,
9622
- It,
9623
9802
  Ct,
9624
9803
  Et,
9625
- Ot,
9626
- Tt,
9627
9804
  Jn,
9628
9805
  {
9629
9806
  kind: "category",
9630
9807
  name: "%{BKY_CATEGORY_VARIABLE}",
9631
9808
  categorystyle: "variable_category",
9632
- custom: ue.name
9809
+ custom: re.name
9633
9810
  },
9634
9811
  {
9635
9812
  kind: "category",
9636
9813
  name: "%{BKY_CATEGORY_PROCEDURE}",
9637
9814
  categorystyle: "procedure_category",
9638
- custom: le.name
9815
+ custom: ue.name
9639
9816
  },
9640
9817
  {
9641
9818
  kind: "category",
9642
9819
  name: "%{BKY_CATEGORY_INTERFACE}",
9643
9820
  categorystyle: "interface_category",
9644
- custom: it.name
9821
+ custom: st.name
9645
9822
  }
9646
9823
  ]
9647
9824
  }, sa = {
@@ -9651,38 +9828,38 @@ const Tt = {
9651
9828
  kind: "category",
9652
9829
  name: "%{BKY_CATEGORY_FUNC}",
9653
9830
  categorystyle: "func_category",
9654
- custom: ct.name
9831
+ custom: lt.name
9655
9832
  },
9656
9833
  {
9657
9834
  kind: "category",
9658
9835
  name: "%{BKY_CATEGORY_FLOW}",
9659
9836
  categorystyle: "flow_category",
9660
- custom: at.name
9837
+ custom: ct.name
9661
9838
  },
9662
9839
  {
9663
9840
  kind: "category",
9664
9841
  name: "%{BKY_CATEGORY_DATA}",
9665
9842
  categorystyle: "data_category",
9666
- custom: lt.name
9843
+ custom: ut.name
9667
9844
  },
9845
+ It,
9668
9846
  At,
9847
+ Ot,
9848
+ kt,
9669
9849
  gt,
9670
- It,
9671
9850
  Ct,
9672
9851
  Et,
9673
- Ot,
9674
- Tt,
9675
9852
  {
9676
9853
  kind: "category",
9677
9854
  name: "%{BKY_CATEGORY_VARIABLE}",
9678
9855
  categorystyle: "variable_category",
9679
- custom: ue.name
9856
+ custom: re.name
9680
9857
  },
9681
9858
  {
9682
9859
  kind: "category",
9683
9860
  name: "%{BKY_CATEGORY_PROCEDURE}",
9684
9861
  categorystyle: "procedure_category",
9685
- custom: le.name
9862
+ custom: ue.name
9686
9863
  }
9687
9864
  ]
9688
9865
  }, aa = {
@@ -9692,38 +9869,38 @@ const Tt = {
9692
9869
  kind: "category",
9693
9870
  name: "%{BKY_CATEGORY_FUNC}",
9694
9871
  categorystyle: "func_category",
9695
- custom: ct.name
9872
+ custom: lt.name
9696
9873
  },
9697
9874
  {
9698
9875
  kind: "category",
9699
9876
  name: "%{BKY_CATEGORY_FLOW}",
9700
9877
  categorystyle: "flow_category",
9701
- custom: at.name
9878
+ custom: ct.name
9702
9879
  },
9703
9880
  {
9704
9881
  kind: "category",
9705
9882
  name: "%{BKY_CATEGORY_DATA}",
9706
9883
  categorystyle: "data_category",
9707
- custom: lt.name
9884
+ custom: ut.name
9708
9885
  },
9886
+ It,
9709
9887
  At,
9888
+ Ot,
9889
+ kt,
9710
9890
  gt,
9711
- It,
9712
9891
  Ct,
9713
9892
  Et,
9714
- Ot,
9715
- Tt,
9716
9893
  {
9717
9894
  kind: "category",
9718
9895
  name: "%{BKY_CATEGORY_VARIABLE}",
9719
9896
  categorystyle: "variable_category",
9720
- custom: ue.name
9897
+ custom: re.name
9721
9898
  },
9722
9899
  {
9723
9900
  kind: "category",
9724
9901
  name: "%{BKY_CATEGORY_PROCEDURE}",
9725
9902
  categorystyle: "procedure_category",
9726
- custom: le.name
9903
+ custom: ue.name
9727
9904
  }
9728
9905
  ]
9729
9906
  }, ca = {
@@ -9764,34 +9941,34 @@ const Tt = {
9764
9941
  kind: "category",
9765
9942
  name: "%{BKY_CATEGORY_UI}",
9766
9943
  categorystyle: "ui_category",
9767
- custom: st.name
9944
+ custom: at.name
9768
9945
  },
9769
9946
  Xn,
9947
+ It,
9770
9948
  At,
9949
+ Ot,
9950
+ kt,
9771
9951
  gt,
9772
- It,
9773
9952
  Ct,
9774
9953
  Et,
9775
- Ot,
9776
- Tt,
9777
9954
  Jn,
9778
9955
  {
9779
9956
  kind: "category",
9780
9957
  name: "%{BKY_CATEGORY_VARIABLE}",
9781
9958
  categorystyle: "variable_category",
9782
- custom: ue.name
9959
+ custom: re.name
9783
9960
  },
9784
9961
  {
9785
9962
  kind: "category",
9786
9963
  name: "%{BKY_CATEGORY_PROCEDURE}",
9787
9964
  categorystyle: "procedure_category",
9788
- custom: le.name
9965
+ custom: ue.name
9789
9966
  },
9790
9967
  {
9791
9968
  kind: "category",
9792
9969
  name: "%{BKY_CATEGORY_INTERFACE}",
9793
9970
  categorystyle: "interface_category",
9794
- custom: it.name
9971
+ custom: st.name
9795
9972
  }
9796
9973
  ]
9797
9974
  }, qn = Symbol();
@@ -9801,19 +9978,19 @@ function ua(t) {
9801
9978
  function Qt() {
9802
9979
  return lo(qn);
9803
9980
  }
9804
- const ra = /* @__PURE__ */ ie({
9981
+ const ra = /* @__PURE__ */ se({
9805
9982
  __name: "index",
9806
9983
  props: {
9807
9984
  lock: { type: Boolean }
9808
9985
  },
9809
9986
  setup(t, { expose: e }) {
9810
- const { t: n } = $e(), o = t, i = Qt(), s = () => {
9987
+ const { t: n } = Ge(), o = t, i = Qt(), s = () => {
9811
9988
  if (!i.workspace) {
9812
9989
  console.assert(!1);
9813
9990
  return;
9814
9991
  }
9815
9992
  if (o.lock) {
9816
- Ln(n("x-block-lib.msg.cannotOperateInLockedState"));
9993
+ Nn(n("x-block-lib.msg.cannotOperateInLockedState"));
9817
9994
  return;
9818
9995
  }
9819
9996
  i.workspace.cleanUp();
@@ -9821,15 +9998,15 @@ const ra = /* @__PURE__ */ ie({
9821
9998
  s();
9822
9999
  };
9823
10000
  return e({ cleanWorkspace: s }), (u, r) => {
9824
- const p = P("v-btn"), h = P("v-tooltip");
10001
+ const _ = P("v-btn"), h = P("v-tooltip");
9825
10002
  return U(), ee(h, {
9826
- text: N(n)("x-block-lib.tip.hotkeyCtrlQ")
10003
+ text: L(n)("x-block-lib.tip.hotkeyCtrlQ")
9827
10004
  }, {
9828
10005
  activator: te(({ props: d }) => [
9829
- R(p, Wt(d, {
10006
+ R(_, jt(d, {
9830
10007
  variant: "outlined",
9831
10008
  density: "comfortable",
9832
- icon: N(Ao),
10009
+ icon: L(Ao),
9833
10010
  onClick: c
9834
10011
  }), null, 16, ["icon"])
9835
10012
  ]),
@@ -9837,7 +10014,7 @@ const ra = /* @__PURE__ */ ie({
9837
10014
  }, 8, ["text"]);
9838
10015
  };
9839
10016
  }
9840
- }), _a = /* @__PURE__ */ ie({
10017
+ }), _a = /* @__PURE__ */ se({
9841
10018
  __name: "index",
9842
10019
  props: {
9843
10020
  modelValue: { type: Boolean, required: !0 },
@@ -9845,17 +10022,17 @@ const ra = /* @__PURE__ */ ie({
9845
10022
  },
9846
10023
  emits: ["update:modelValue"],
9847
10024
  setup(t) {
9848
- const { t: e } = $e(), n = Pe(t, "modelValue");
10025
+ const { t: e } = Ge(), n = xe(t, "modelValue");
9849
10026
  return (o, i) => {
9850
10027
  const s = P("v-btn"), c = P("v-tooltip");
9851
10028
  return U(), ee(c, {
9852
- text: N(e)("x-block-lib.tip.hotkeyCtrlW")
10029
+ text: L(e)("x-block-lib.tip.hotkeyCtrlW")
9853
10030
  }, {
9854
10031
  activator: te(({ props: u }) => [
9855
- R(s, Wt(u, {
10032
+ R(s, jt(u, {
9856
10033
  variant: "outlined",
9857
10034
  density: "comfortable",
9858
- icon: n.value ? N(Io) : N(Oo),
10035
+ icon: n.value ? L(Io) : L(Oo),
9859
10036
  onClick: i[0] || (i[0] = (r) => n.value = !n.value)
9860
10037
  }), null, 16, ["icon"])
9861
10038
  ]),
@@ -9863,7 +10040,7 @@ const ra = /* @__PURE__ */ ie({
9863
10040
  }, 8, ["text"]);
9864
10041
  };
9865
10042
  }
9866
- }), pa = { class: "text-subtitle-1 ml-6" }, ha = /* @__PURE__ */ ie({
10043
+ }), pa = { class: "text-subtitle-1 ml-6" }, ha = /* @__PURE__ */ se({
9867
10044
  __name: "item",
9868
10045
  props: {
9869
10046
  id: {},
@@ -9872,13 +10049,13 @@ const ra = /* @__PURE__ */ ie({
9872
10049
  },
9873
10050
  emits: ["x-click"],
9874
10051
  setup(t, { emit: e }) {
9875
- const { primaryColor: n, backgroundColor2: o, highlightColor: i } = _t(), s = t, c = e, u = Ae(!1), r = j(() => ({
10052
+ const { primaryColor: n, backgroundColor2: o, highlightColor: i } = pt(), s = t, c = e, u = Oe(!1), r = j(() => ({
9876
10053
  position: "relative",
9877
10054
  background: u.value ? i.value : o.value,
9878
10055
  height: "48px",
9879
10056
  marginBottom: "1px",
9880
10057
  userSelect: "none"
9881
- })), p = j(() => ({
10058
+ })), _ = j(() => ({
9882
10059
  display: s.select ? "block" : "none",
9883
10060
  position: "absolute",
9884
10061
  top: "0px",
@@ -9889,7 +10066,7 @@ const ra = /* @__PURE__ */ ie({
9889
10066
  pointerEvents: "none"
9890
10067
  }));
9891
10068
  return (h, d) => {
9892
- const O = P("v-spacer"), k = P("v-icon"), g = uo("ripple");
10069
+ const O = P("v-spacer"), k = P("v-icon"), A = uo("ripple");
9893
10070
  return ro((U(), Q("div", {
9894
10071
  class: "d-flex align-center cursor-pointer",
9895
10072
  style: q(r.value),
@@ -9897,28 +10074,28 @@ const ra = /* @__PURE__ */ ie({
9897
10074
  onMouseover: d[2] || (d[2] = (V) => u.value = !0),
9898
10075
  onMouseout: d[3] || (d[3] = (V) => u.value = !1)
9899
10076
  }, [
9900
- X("span", pa, ut(s.title), 1),
10077
+ X("span", pa, rt(s.title), 1),
9901
10078
  R(O),
9902
10079
  R(k, {
9903
10080
  class: "x-handle cursor-move mr-3",
9904
- icon: N(Co),
9905
- onMousedown: d[0] || (d[0] = De(() => {
10081
+ icon: L(Co),
10082
+ onMousedown: d[0] || (d[0] = Ue(() => {
9906
10083
  }, ["stop"]))
9907
10084
  }, null, 8, ["icon"]),
9908
10085
  X("div", {
9909
- style: q(p.value)
10086
+ style: q(_.value)
9910
10087
  }, null, 4)
9911
10088
  ], 36)), [
9912
- [g]
10089
+ [A]
9913
10090
  ]);
9914
10091
  };
9915
10092
  }
9916
10093
  }), da = {
9917
10094
  key: 1,
9918
10095
  class: "text-caption text-grey"
9919
- }, fa = /* @__PURE__ */ ie({
10096
+ }, fa = /* @__PURE__ */ se({
9920
10097
  __name: "index",
9921
- props: /* @__PURE__ */ Mt({
10098
+ props: /* @__PURE__ */ Vt({
9922
10099
  lock: { type: Boolean }
9923
10100
  }, {
9924
10101
  modelValue: { type: Boolean, required: !0 },
@@ -9926,24 +10103,24 @@ const ra = /* @__PURE__ */ ie({
9926
10103
  }),
9927
10104
  emits: ["update:modelValue"],
9928
10105
  setup(t, { expose: e }) {
9929
- const { t: n } = $e(), o = Pe(t, "modelValue"), i = Qt(), s = Ae([]);
10106
+ const { t: n } = Ge(), o = xe(t, "modelValue"), i = Qt(), s = Oe([]);
9930
10107
  e({ update: () => {
9931
10108
  if (!i.workspace) {
9932
10109
  console.assert(!1);
9933
10110
  return;
9934
10111
  }
9935
10112
  const O = [];
9936
- i.workspace.getTopBlocks(!0).forEach((g) => {
9937
- var se;
9938
- const V = g.id === ((se = ge()) == null ? void 0 : se.id);
9939
- let $ = "<n/a>";
9940
- if (g.type.startsWith("on_node_event_v")) {
9941
- const ne = g, Te = Y[ne.node.key];
9942
- Te && ($ = n(Te.name), ne.node.alias && ($ += " / " + ne.node.alias), $ += " - " + _[ne.event.name]);
9943
- } else g.type.startsWith("func_entry_v") ? $ = n("x-block-lib.funcEntry") : g.type.startsWith("procedure_def_v") ? (console.log(g), $ = n("x-block-lib.procedure") + " - " + g.getFieldValue("NAME")) : $ = n("x-block-lib.temporaryBlock");
10113
+ i.workspace.getTopBlocks(!0).forEach((A) => {
10114
+ var ae;
10115
+ const V = A.id === ((ae = Ae()) == null ? void 0 : ae.id);
10116
+ let H = "<n/a>";
10117
+ if (A.type.startsWith("on_node_event_v")) {
10118
+ const oe = A, Ee = Y[oe.node.key];
10119
+ Ee && (H = n(Ee.name), oe.node.alias && (H += " / " + oe.node.alias), H += " - " + p[oe.event.name]);
10120
+ } else A.type.startsWith("func_entry_v") ? H = n("x-block-lib.funcEntry") : A.type.startsWith("procedure_def_v") ? (console.log(A), H = n("x-block-lib.procedure") + " - " + A.getFieldValue("NAME")) : H = n("x-block-lib.temporaryBlock");
9944
10121
  O.push({
9945
- id: g.id,
9946
- name: $,
10122
+ id: A.id,
10123
+ name: H,
9947
10124
  select: V
9948
10125
  });
9949
10126
  }), s.value = O;
@@ -9951,14 +10128,14 @@ const ra = /* @__PURE__ */ ie({
9951
10128
  let u = [];
9952
10129
  const r = () => {
9953
10130
  if (t.lock) {
9954
- Ln(n("x-block-lib.msg.cannotOperateInLockedState"));
10131
+ Nn(n("x-block-lib.msg.cannotOperateInLockedState"));
9955
10132
  return;
9956
10133
  }
9957
10134
  const O = [];
9958
10135
  s.value.forEach(({ id: k }) => {
9959
10136
  O.push(k);
9960
10137
  }), u = O;
9961
- }, p = () => !t.lock, h = (O) => {
10138
+ }, _ = () => !t.lock, h = (O) => {
9962
10139
  if (!i.workspace) {
9963
10140
  console.assert(!1);
9964
10141
  return;
@@ -9969,21 +10146,21 @@ const ra = /* @__PURE__ */ ie({
9969
10146
  }
9970
10147
  if (O.oldIndex === O.newIndex)
9971
10148
  return;
9972
- const k = u[O.oldIndex], g = i.workspace.getBlockById(
10149
+ const k = u[O.oldIndex], A = i.workspace.getBlockById(
9973
10150
  k
9974
10151
  );
9975
- if (!g) {
10152
+ if (!A) {
9976
10153
  console.assert(!1);
9977
10154
  return;
9978
10155
  }
9979
10156
  let V = "";
9980
10157
  O.newIndex > O.oldIndex ? V = u[O.newIndex] : O.newIndex > 0 && (V = u[O.newIndex - 1]);
9981
- let $ = -10;
9982
- V !== "" && ($ = i.workspace.getBlockById(
10158
+ let H = -10;
10159
+ V !== "" && (H = i.workspace.getBlockById(
9983
10160
  V
9984
10161
  ).getRelativeToSurfaceXY().y + 10);
9985
- const se = g.getRelativeToSurfaceXY();
9986
- g.moveTo(new I.Coordinate(se.x, $)), i.workspace.cleanUp(), Wn();
10162
+ const ae = A.getRelativeToSurfaceXY();
10163
+ A.moveTo(new g.Coordinate(ae.x, H)), i.workspace.cleanUp(), Wn();
9987
10164
  }, d = async (O) => {
9988
10165
  if (!i.workspace) {
9989
10166
  console.assert(!1);
@@ -9992,35 +10169,35 @@ const ra = /* @__PURE__ */ ie({
9992
10169
  const k = i.workspace.getBlockById(O);
9993
10170
  yn.setSelected(k), zt(O), o.value = !1;
9994
10171
  };
9995
- return (O, k) => s.value.length > 0 ? (U(), ee(N(ko), {
10172
+ return (O, k) => s.value.length > 0 ? (U(), ee(L(ko), {
9996
10173
  key: 0,
9997
10174
  modelValue: s.value,
9998
- "onUpdate:modelValue": k[0] || (k[0] = (g) => s.value = g),
10175
+ "onUpdate:modelValue": k[0] || (k[0] = (A) => s.value = A),
9999
10176
  animation: 150,
10000
10177
  "ghost-class": "ghost",
10001
10178
  handle: ".x-handle",
10002
10179
  onStart: r,
10003
- onMove: p,
10180
+ onMove: _,
10004
10181
  onEnd: h
10005
10182
  }, {
10006
10183
  default: te(() => [
10007
- (U(!0), Q(En, null, _o(s.value, (g) => (U(), ee(ha, {
10008
- id: g.id,
10009
- key: g.id,
10010
- title: g.name,
10011
- select: g.select,
10184
+ (U(!0), Q(En, null, _o(s.value, (A) => (U(), ee(ha, {
10185
+ id: A.id,
10186
+ key: A.id,
10187
+ title: A.name,
10188
+ select: A.select,
10012
10189
  onXClick: d
10013
10190
  }, null, 8, ["id", "title", "select"]))), 128))
10014
10191
  ]),
10015
10192
  _: 1
10016
- }, 8, ["modelValue"])) : (U(), Q("span", da, ut(N(n)("x-block-lib.noOption")), 1));
10193
+ }, 8, ["modelValue"])) : (U(), Q("span", da, rt(L(n)("x-block-lib.noOption")), 1));
10017
10194
  }
10018
10195
  }), ma = (t, e) => {
10019
10196
  const n = t.__vccOpts || t;
10020
10197
  for (const [o, i] of e)
10021
10198
  n[o] = i;
10022
10199
  return n;
10023
- }, Ta = /* @__PURE__ */ ma(fa, [["__scopeId", "data-v-67cacda2"]]), Ea = /* @__PURE__ */ ie({
10200
+ }, Ta = /* @__PURE__ */ ma(fa, [["__scopeId", "data-v-67cacda2"]]), Ea = /* @__PURE__ */ se({
10024
10201
  __name: "index",
10025
10202
  props: {
10026
10203
  modelValue: { type: Boolean, required: !0 },
@@ -10028,7 +10205,7 @@ const ra = /* @__PURE__ */ ie({
10028
10205
  },
10029
10206
  emits: ["update:modelValue"],
10030
10207
  setup(t, { expose: e }) {
10031
- const n = Pe(t, "modelValue"), o = Qt();
10208
+ const n = xe(t, "modelValue"), o = Qt();
10032
10209
  e({ update: () => {
10033
10210
  if (!o.workspace) {
10034
10211
  console.assert(!1);
@@ -10048,14 +10225,14 @@ const ra = /* @__PURE__ */ ie({
10048
10225
  onClick: u[0] || (u[0] = (r) => s(""))
10049
10226
  }, "blockTree"));
10050
10227
  }
10051
- }), ga = { class: "text-subtitle-1" }, Aa = /* @__PURE__ */ ie({
10228
+ }), ga = { class: "text-subtitle-1" }, Aa = /* @__PURE__ */ se({
10052
10229
  __name: "index",
10053
10230
  props: {
10054
10231
  type: {},
10055
10232
  lock: { type: Boolean }
10056
10233
  },
10057
10234
  setup(t, { expose: e }) {
10058
- const { t: n } = $e(), o = xo(), { sysBarAvail: i } = Nn(), { backgroundColor1: s } = _t(), c = j(() => {
10235
+ const { t: n } = Ge(), o = xo(), { sysBarAvail: i } = Ln(), { backgroundColor1: s } = pt(), c = j(() => {
10059
10236
  let k = "100%";
10060
10237
  return o.mdAndUp.value && (k = "400px"), {
10061
10238
  background: s.value,
@@ -10070,56 +10247,56 @@ const ra = /* @__PURE__ */ ie({
10070
10247
  };
10071
10248
  }), r = j(() => ({
10072
10249
  height: "60px"
10073
- })), { open: p } = Xt(`blocklyNavigatorDlg${Vt()}`);
10250
+ })), { open: _ } = Xt(`blocklyNavigatorDlg${Pt()}`);
10074
10251
  gn(() => {
10075
- p.value = !1;
10252
+ _.value = !1;
10076
10253
  });
10077
- const h = Ue("blockList"), d = Ue("blockTree");
10078
- return e({ open: p, update: () => {
10079
- var k, g;
10080
- t.type === "list" ? (k = h.value) == null || k.update() : t.type === "tree" && ((g = d.value) == null || g.update());
10081
- } }), (k, g) => {
10082
- const V = P("v-sheet"), $ = P("v-btn"), se = P("v-spacer"), ne = P("v-dialog"), Te = P("v-tooltip");
10254
+ const h = Me("blockList"), d = Me("blockTree");
10255
+ return e({ open: _, update: () => {
10256
+ var k, A;
10257
+ t.type === "list" ? (k = h.value) == null || k.update() : t.type === "tree" && ((A = d.value) == null || A.update());
10258
+ } }), (k, A) => {
10259
+ const V = P("v-sheet"), H = P("v-btn"), ae = P("v-spacer"), oe = P("v-dialog"), Ee = P("v-tooltip");
10083
10260
  return U(), Q(En, null, [
10084
- R(ne, {
10085
- modelValue: N(p),
10086
- "onUpdate:modelValue": g[5] || (g[5] = (x) => ze(p) ? p.value = x : null),
10261
+ R(oe, {
10262
+ modelValue: L(_),
10263
+ "onUpdate:modelValue": A[5] || (A[5] = (x) => Qe(_) ? _.value = x : null),
10087
10264
  transition: "scroll-x-reverse-transition",
10088
10265
  persistent: "",
10089
10266
  "no-click-animation": "",
10090
10267
  fullscreen: "",
10091
10268
  eager: "",
10092
- onKeydown: g[6] || (g[6] = An(De((x) => p.value = !1, ["stop", "prevent"]), ["esc"]))
10269
+ onKeydown: A[6] || (A[6] = An(Ue((x) => _.value = !1, ["stop", "prevent"]), ["esc"]))
10093
10270
  }, {
10094
10271
  default: te(() => [
10095
10272
  X("div", {
10096
10273
  class: "w-100 h-100 d-flex flex-row-reverse",
10097
- onClick: g[3] || (g[3] = De((x) => p.value = !1, ["self"])),
10098
- onContextmenu: g[4] || (g[4] = De((x) => p.value = !1, ["self", "prevent"]))
10274
+ onClick: A[3] || (A[3] = Ue((x) => _.value = !1, ["self"])),
10275
+ onContextmenu: A[4] || (A[4] = Ue((x) => _.value = !1, ["self", "prevent"]))
10099
10276
  }, [
10100
10277
  X("div", {
10101
10278
  class: "elevation-2",
10102
10279
  style: q(c.value)
10103
10280
  }, [
10104
- N(i) ? (U(), ee(V, {
10281
+ L(i) ? (U(), ee(V, {
10105
10282
  key: 0,
10106
10283
  color: "transparent",
10107
10284
  height: 24
10108
- })) : de("", !0),
10285
+ })) : fe("", !0),
10109
10286
  R(V, {
10110
10287
  class: "d-flex align-center px-2",
10111
10288
  color: "transparent",
10112
10289
  height: 48
10113
10290
  }, {
10114
10291
  default: te(() => [
10115
- R($, {
10292
+ R(H, {
10116
10293
  variant: "text",
10117
10294
  density: "comfortable",
10118
- icon: N(vn),
10119
- onClick: g[0] || (g[0] = (x) => p.value = !1)
10295
+ icon: L(vn),
10296
+ onClick: A[0] || (A[0] = (x) => _.value = !1)
10120
10297
  }, null, 8, ["icon"]),
10121
- X("span", ga, ut(N(n)("x-block-lib.navigator")), 1),
10122
- R(se)
10298
+ X("span", ga, rt(L(n)("x-block-lib.navigator")), 1),
10299
+ R(ae)
10123
10300
  ]),
10124
10301
  _: 1
10125
10302
  }),
@@ -10131,16 +10308,16 @@ const ra = /* @__PURE__ */ ie({
10131
10308
  key: 0,
10132
10309
  ref_key: "blockList",
10133
10310
  ref: h,
10134
- modelValue: N(p),
10135
- "onUpdate:modelValue": g[1] || (g[1] = (x) => ze(p) ? p.value = x : null),
10311
+ modelValue: L(_),
10312
+ "onUpdate:modelValue": A[1] || (A[1] = (x) => Qe(_) ? _.value = x : null),
10136
10313
  lock: k.lock
10137
10314
  }, null, 8, ["modelValue", "lock"])) : k.type === "tree" ? (U(), ee(Ea, {
10138
10315
  key: 1,
10139
10316
  ref_key: "blockTree",
10140
10317
  ref: d,
10141
- modelValue: N(p),
10142
- "onUpdate:modelValue": g[2] || (g[2] = (x) => ze(p) ? p.value = x : null)
10143
- }, null, 8, ["modelValue"])) : de("", !0),
10318
+ modelValue: L(_),
10319
+ "onUpdate:modelValue": A[2] || (A[2] = (x) => Qe(_) ? _.value = x : null)
10320
+ }, null, 8, ["modelValue"])) : fe("", !0),
10144
10321
  X("div", {
10145
10322
  style: q(r.value)
10146
10323
  }, null, 4)
@@ -10150,15 +10327,15 @@ const ra = /* @__PURE__ */ ie({
10150
10327
  ]),
10151
10328
  _: 1
10152
10329
  }, 8, ["modelValue"]),
10153
- R(Te, {
10154
- text: N(n)("x-block-lib.tip.hotkeyCtrlE")
10330
+ R(Ee, {
10331
+ text: L(n)("x-block-lib.tip.hotkeyCtrlE")
10155
10332
  }, {
10156
10333
  activator: te(({ props: x }) => [
10157
- R($, Wt(x, {
10334
+ R(H, jt(x, {
10158
10335
  variant: "outlined",
10159
10336
  density: "comfortable",
10160
- icon: N(yo),
10161
- onClick: g[7] || (g[7] = (Zt) => p.value = !0)
10337
+ icon: L(yo),
10338
+ onClick: A[7] || (A[7] = (Zt) => _.value = !0)
10162
10339
  }), null, 16, ["icon"])
10163
10340
  ]),
10164
10341
  _: 1
@@ -10166,7 +10343,7 @@ const ra = /* @__PURE__ */ ie({
10166
10343
  ], 64);
10167
10344
  };
10168
10345
  }
10169
- }), Ut = {
10346
+ }), Mt = {
10170
10347
  grid: {
10171
10348
  length: 2,
10172
10349
  snap: !0,
@@ -10193,8 +10370,8 @@ const ra = /* @__PURE__ */ ie({
10193
10370
  }
10194
10371
  };
10195
10372
  function Ia(t, e, n, o) {
10196
- Ut.theme = o ? "dark" : "light", Ut.toolbox = Oa(e, n);
10197
- const i = vo(t, Ut);
10373
+ Mt.theme = o ? "dark" : "light", Mt.toolbox = Oa(e, n);
10374
+ const i = vo(t, Mt);
10198
10375
  return Ca(i, e, n), ka(i), i;
10199
10376
  }
10200
10377
  function Oa(t, e) {
@@ -10205,7 +10382,7 @@ function Ca(t, e, n) {
10205
10382
  function o({ name: i, callback: s }) {
10206
10383
  t.registerToolboxCategoryCallback(i, () => s(e));
10207
10384
  }
10208
- e === "page" || e === "comp" ? n === "v1" && (o(st), o(ue), o(le), o(it)) : e === "func" ? n === "v1" && (o(ct), o(at), o(lt), o(ue), o(le)) : e === "flow" && n === "v1" && (o(at), o(ct), o(lt), o(ue), o(le));
10385
+ e === "page" || e === "comp" ? n === "v1" && (o(at), o(re), o(ue), o(st)) : e === "func" ? n === "v1" && (o(lt), o(ct), o(ut), o(re), o(ue)) : e === "flow" && n === "v1" && (o(ct), o(lt), o(ut), o(re), o(ue));
10209
10386
  }
10210
10387
  function ka(t) {
10211
10388
  const { router: e } = T.base;
@@ -10250,11 +10427,11 @@ function ya(t, e) {
10250
10427
  const u = e.newBlock(c);
10251
10428
  if (u.initSvg(), u.render(), s.connect(u.outputConnection), c === "json_map_v1") {
10252
10429
  const r = [];
10253
- for (const p in i)
10254
- r.push(p);
10430
+ for (const _ in i)
10431
+ r.push(_);
10255
10432
  u.initData(r);
10256
- for (let p = 0; p < r.length; p++) {
10257
- const h = r[p], d = u.getInput("ENTRY" + p);
10433
+ for (let _ = 0; _ < r.length; _++) {
10434
+ const h = r[_], d = u.getInput("ENTRY" + _);
10258
10435
  o(i[h], d.connection);
10259
10436
  }
10260
10437
  } else if (c === "json_array_v1") {
@@ -10263,8 +10440,8 @@ function ya(t, e) {
10263
10440
  o(i[r], u.getInput("ENTRY" + r).connection);
10264
10441
  } else c === "json_string_v1" || c === "json_number_v1" ? u.setFieldValue(i, "VALUE") : c === "json_boolean_v1" && u.setFieldValue(i ? "true" : "false", "VALUE");
10265
10442
  };
10266
- o(t, n.getInput("JSON").connection), A.fire(
10267
- new (A.get(A.FINISHED_LOADING))(e)
10443
+ o(t, n.getInput("JSON").connection), I.fire(
10444
+ new (I.get(I.FINISHED_LOADING))(e)
10268
10445
  );
10269
10446
  }
10270
10447
  function va(t) {
@@ -10299,9 +10476,9 @@ function va(t) {
10299
10476
  if (o.type === "json_root_v1")
10300
10477
  return e(o);
10301
10478
  }
10302
- const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10479
+ const Na = { class: "position-relative w-100 h-100" }, La = /* @__PURE__ */ se({
10303
10480
  __name: "index",
10304
- props: /* @__PURE__ */ Mt({
10481
+ props: /* @__PURE__ */ Vt({
10305
10482
  type: {},
10306
10483
  version: {},
10307
10484
  locale: {},
@@ -10312,11 +10489,11 @@ const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10312
10489
  scale: { required: !0 },
10313
10490
  scaleModifiers: {}
10314
10491
  }),
10315
- emits: /* @__PURE__ */ Mt(["ready"], ["update:lock", "update:scale"]),
10492
+ emits: /* @__PURE__ */ Vt(["ready"], ["update:lock", "update:scale"]),
10316
10493
  setup(t, { expose: e, emit: n }) {
10317
- const o = Pe(t, "lock"), i = Pe(t, "scale"), s = n, c = `blocklyEditor${Vt()}`, u = Ae(), r = Ue("parentContainer"), p = Ue("clean"), h = Ue("navigator"), d = {};
10494
+ const o = xe(t, "lock"), i = xe(t, "scale"), s = n, c = `blocklyEditor${Pt()}`, u = Oe(), r = Me("parentContainer"), _ = Me("clean"), h = Me("navigator"), d = {};
10318
10495
  ua(d);
10319
- const O = Ae(!0), k = Ae(!1), g = j(() => t.type === "json" ? "tree" : "list"), V = j(() => ({
10496
+ const O = Oe(!0), k = Oe(!1), A = j(() => t.type === "json" ? "tree" : "list"), V = j(() => ({
10320
10497
  position: "absolute",
10321
10498
  background: t.dark ? "#0000007f" : "#ffffff7f",
10322
10499
  top: "1px",
@@ -10324,12 +10501,12 @@ const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10324
10501
  width: "56px",
10325
10502
  height: "calc(100% - 1px)",
10326
10503
  zIndex: 999
10327
- })), $ = j(() => ({
10504
+ })), H = j(() => ({
10328
10505
  position: "absolute",
10329
10506
  top: "0px",
10330
10507
  right: "0px",
10331
10508
  zIndex: 20
10332
- })), se = j(() => ({
10509
+ })), ae = j(() => ({
10333
10510
  position: "absolute",
10334
10511
  background: t.dark ? "#0000007f" : "#ffffff7f",
10335
10512
  top: "0px",
@@ -10337,7 +10514,7 @@ const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10337
10514
  width: "100%",
10338
10515
  height: "100%",
10339
10516
  pointerEvents: "none"
10340
- })), ne = j(() => ({
10517
+ })), oe = j(() => ({
10341
10518
  position: "absolute",
10342
10519
  background: t.dark ? "#0000007f" : "#ffffff7f",
10343
10520
  top: "1px",
@@ -10345,31 +10522,31 @@ const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10345
10522
  width: "56px",
10346
10523
  height: "calc(100% - 1px)",
10347
10524
  zIndex: 999
10348
- })), Te = j(() => ({
10525
+ })), Ee = j(() => ({
10349
10526
  position: "fixed",
10350
10527
  top: 0,
10351
10528
  left: 0,
10352
10529
  zIndex: 3e3
10353
- })), { open: x } = Xt(`blocklyEditorFlyout${Vt()}`);
10530
+ })), { open: x } = Xt(`blocklyEditorFlyout${Pt()}`);
10354
10531
  sn(async () => {
10355
10532
  if (!u.value || !r.value) {
10356
10533
  console.assert(!1);
10357
10534
  return;
10358
10535
  }
10359
- Lo(r.value), await Tn(t.locale), d.workspace = Ia(u.value, t.type, t.version, t.dark), d.workspace.addChangeListener(A.disableOrphans), d.workspace.addChangeListener(Zt);
10536
+ No(r.value), await Tn(t.locale), d.workspace = Ia(u.value, t.type, t.version, t.dark), d.workspace.addChangeListener(I.disableOrphans), d.workspace.addChangeListener(Zt);
10360
10537
  const v = document.querySelector(`#${c} .blocklyFlyout`);
10361
- new MutationObserver((kt) => {
10362
- kt.forEach((je) => {
10363
- je.type === "attributes" && je.attributeName === "style" && (x.value = d.workspace.getFlyout().isVisible());
10538
+ new MutationObserver((yt) => {
10539
+ yt.forEach((Xe) => {
10540
+ Xe.type === "attributes" && Xe.attributeName === "style" && (x.value = d.workspace.getFlyout().isVisible());
10364
10541
  });
10365
10542
  }).observe(v, { attributes: !0 }), x.value = d.workspace.getFlyout().isVisible(), en(), tn(), await po(), s("ready");
10366
10543
  }), ho(() => {
10367
10544
  x.value = !1;
10368
- }), No(u, () => {
10545
+ }), Lo(u, () => {
10369
10546
  d.workspace && bo(d.workspace);
10370
10547
  });
10371
10548
  async function Zt(v) {
10372
- if (v.type === A.FINISHED_LOADING) {
10549
+ if (v.type === I.FINISHED_LOADING) {
10373
10550
  Wn(), setTimeout(() => {
10374
10551
  var F;
10375
10552
  (F = h.value) == null || F.update();
@@ -10377,11 +10554,11 @@ const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10377
10554
  return;
10378
10555
  }
10379
10556
  if (!O.value) {
10380
- if (v.type === A.VIEWPORT_CHANGE) {
10557
+ if (v.type === I.VIEWPORT_CHANGE) {
10381
10558
  i.value = d.workspace.getScale();
10382
10559
  return;
10383
10560
  }
10384
- v.type === A.BLOCK_DRAG && (v.isStart ? k.value = !0 : k.value = !1), setTimeout(() => {
10561
+ v.type === I.BLOCK_DRAG && (v.isStart ? k.value = !0 : k.value = !1), setTimeout(() => {
10385
10562
  var F;
10386
10563
  (F = h.value) == null || F.update();
10387
10564
  }, 0);
@@ -10415,7 +10592,7 @@ const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10415
10592
  }
10416
10593
  }, to = () => {
10417
10594
  var v;
10418
- (v = p.value) == null || v.cleanWorkspace();
10595
+ (v = _.value) == null || v.cleanWorkspace();
10419
10596
  }, no = () => {
10420
10597
  o.value = !o.value;
10421
10598
  }, oo = () => {
@@ -10425,26 +10602,26 @@ const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10425
10602
  window.addEventListener("keydown", nn, !1);
10426
10603
  }), gn(() => {
10427
10604
  window.removeEventListener("keydown", nn, !1);
10428
- }), Ne(
10605
+ }), be(
10429
10606
  () => t.locale,
10430
10607
  (v) => {
10431
10608
  Tn(v);
10432
10609
  }
10433
- ), Ne(
10610
+ ), be(
10434
10611
  () => t.dark,
10435
10612
  (v) => {
10436
10613
  oa(v ? "dark" : "light");
10437
10614
  }
10438
- ), Ne(x, (v) => {
10615
+ ), be(x, (v) => {
10439
10616
  var F;
10440
10617
  v || (F = d.workspace) == null || F.hideChaff();
10441
- }), Ne(o, () => {
10618
+ }), be(o, () => {
10442
10619
  en();
10443
- }), Ne(i, () => {
10620
+ }), be(i, () => {
10444
10621
  tn();
10445
10622
  }), e({ loading: O, load: zn, save: Qn, generateCode: Zn, fireStateChange: eo }), (v, F) => {
10446
- const kt = P("v-icon"), je = P("x-loading");
10447
- return U(), Q("div", La, [
10623
+ const yt = P("v-icon"), Xe = P("x-loading");
10624
+ return U(), Q("div", Na, [
10448
10625
  X("div", {
10449
10626
  id: c,
10450
10627
  ref_key: "blocklyDiv",
@@ -10456,19 +10633,19 @@ const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10456
10633
  class: "d-flex flex-column justify-center align-center",
10457
10634
  style: q(V.value)
10458
10635
  }, [
10459
- R(kt, {
10636
+ R(yt, {
10460
10637
  size: "x-large",
10461
- icon: N(So)
10638
+ icon: L(So)
10462
10639
  }, null, 8, ["icon"])
10463
- ], 4)) : de("", !0),
10464
- O.value ? de("", !0) : (U(), Q("div", {
10640
+ ], 4)) : fe("", !0),
10641
+ O.value ? fe("", !0) : (U(), Q("div", {
10465
10642
  key: 1,
10466
10643
  class: "d-flex align-end ga-3 pt-3 pr-3",
10467
- style: q($.value)
10644
+ style: q(H.value)
10468
10645
  }, [
10469
10646
  R(ra, {
10470
10647
  ref_key: "clean",
10471
- ref: p,
10648
+ ref: _,
10472
10649
  lock: o.value
10473
10650
  }, null, 8, ["lock"]),
10474
10651
  R(_a, {
@@ -10478,31 +10655,31 @@ const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10478
10655
  R(Aa, {
10479
10656
  ref_key: "navigator",
10480
10657
  ref: h,
10481
- type: g.value,
10658
+ type: A.value,
10482
10659
  lock: o.value
10483
10660
  }, null, 8, ["type", "lock"])
10484
10661
  ], 4)),
10485
10662
  o.value ? (U(), Q("div", {
10486
10663
  key: 2,
10487
- style: q(ne.value)
10488
- }, null, 4)) : de("", !0),
10664
+ style: q(oe.value)
10665
+ }, null, 4)) : fe("", !0),
10489
10666
  o.value ? (U(), Q("div", {
10490
10667
  key: 3,
10491
- style: q(se.value)
10492
- }, null, 4)) : de("", !0),
10668
+ style: q(ae.value)
10669
+ }, null, 4)) : fe("", !0),
10493
10670
  X("div", {
10494
10671
  ref_key: "parentContainer",
10495
10672
  ref: r,
10496
- style: q(Te.value)
10673
+ style: q(Ee.value)
10497
10674
  }, null, 4),
10498
- R(je, {
10675
+ R(Xe, {
10499
10676
  open: O.value,
10500
10677
  "z-index": 99
10501
10678
  }, null, 8, ["open"])
10502
10679
  ]);
10503
10680
  };
10504
10681
  }
10505
- }), Sa = /* @__PURE__ */ ie({
10682
+ }), Sa = /* @__PURE__ */ se({
10506
10683
  __name: "index",
10507
10684
  props: {
10508
10685
  code: {}
@@ -10510,16 +10687,16 @@ const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10510
10687
  setup(t) {
10511
10688
  const e = t;
10512
10689
  Bo.registerLanguage("javascript", Ro);
10513
- const n = Do.component, { backgroundColor2: o } = _t();
10690
+ const n = Do.component, { backgroundColor2: o } = pt();
10514
10691
  return (i, s) => {
10515
10692
  const c = P("v-sheet");
10516
10693
  return U(), ee(c, {
10517
- color: N(o),
10694
+ color: L(o),
10518
10695
  width: "100%",
10519
10696
  height: "100%"
10520
10697
  }, {
10521
10698
  default: te(() => [
10522
- R(N(n), {
10699
+ R(L(n), {
10523
10700
  language: "js",
10524
10701
  code: e.code
10525
10702
  }, null, 8, ["code"])
@@ -10528,54 +10705,54 @@ const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10528
10705
  }, 8, ["color"]);
10529
10706
  };
10530
10707
  }
10531
- }), ba = { class: "text-subtitle-1" }, Ba = { class: "w-100 h-100 overflow-auto" }, Ra = /* @__PURE__ */ ie({
10708
+ }), ba = { class: "text-subtitle-1" }, Ba = { class: "w-100 h-100 overflow-auto" }, Ra = /* @__PURE__ */ se({
10532
10709
  __name: "index",
10533
10710
  setup(t) {
10534
- const { t: e } = $e(), { sysBarAvail: n } = Nn(), { backgroundColor0: o, backgroundColor2: i } = _t(), s = Ae(""), c = j(() => {
10535
- let p = 48;
10536
- return n.value && (p += 24), {
10711
+ const { t: e } = Ge(), { sysBarAvail: n } = Ln(), { backgroundColor0: o, backgroundColor2: i } = pt(), s = Oe(""), c = j(() => {
10712
+ let _ = 48;
10713
+ return n.value && (_ += 24), {
10537
10714
  position: "relative",
10538
- height: `calc(100% - ${p}px)`
10715
+ height: `calc(100% - ${_}px)`
10539
10716
  };
10540
- }), u = (p) => {
10541
- s.value = p.code;
10717
+ }), u = (_) => {
10718
+ s.value = _.code;
10542
10719
  }, { open: r } = Xt("sourceDlg", u);
10543
- return (p, h) => {
10544
- const d = P("v-sheet"), O = P("v-btn"), k = P("v-spacer"), g = P("v-dialog");
10545
- return U(), ee(g, {
10546
- modelValue: N(r),
10547
- "onUpdate:modelValue": h[1] || (h[1] = (V) => ze(r) ? r.value = V : null),
10720
+ return (_, h) => {
10721
+ const d = P("v-sheet"), O = P("v-btn"), k = P("v-spacer"), A = P("v-dialog");
10722
+ return U(), ee(A, {
10723
+ modelValue: L(r),
10724
+ "onUpdate:modelValue": h[1] || (h[1] = (V) => Qe(r) ? r.value = V : null),
10548
10725
  transition: "dialog-bottom-transition",
10549
10726
  persistent: "",
10550
10727
  "no-click-animation": "",
10551
10728
  fullscreen: "",
10552
- onKeydown: h[2] || (h[2] = An(De((V) => r.value = !1, ["stop", "prevent"]), ["esc"]))
10729
+ onKeydown: h[2] || (h[2] = An(Ue((V) => r.value = !1, ["stop", "prevent"]), ["esc"]))
10553
10730
  }, {
10554
10731
  default: te(() => [
10555
10732
  R(d, {
10556
- color: N(o),
10733
+ color: L(o),
10557
10734
  width: "100%",
10558
10735
  height: "100%"
10559
10736
  }, {
10560
10737
  default: te(() => [
10561
- N(n) ? (U(), ee(d, {
10738
+ L(n) ? (U(), ee(d, {
10562
10739
  key: 0,
10563
- color: N(i),
10740
+ color: L(i),
10564
10741
  height: 24
10565
- }, null, 8, ["color"])) : de("", !0),
10742
+ }, null, 8, ["color"])) : fe("", !0),
10566
10743
  R(d, {
10567
10744
  class: "d-flex align-center px-2",
10568
- color: N(i),
10745
+ color: L(i),
10569
10746
  height: 48
10570
10747
  }, {
10571
10748
  default: te(() => [
10572
10749
  R(O, {
10573
10750
  variant: "text",
10574
10751
  density: "comfortable",
10575
- icon: N(vn),
10752
+ icon: L(vn),
10576
10753
  onClick: h[0] || (h[0] = (V) => r.value = !1)
10577
10754
  }, null, 8, ["icon"]),
10578
- X("span", ba, ut(N(e)("x-block-lib.dlg.source.title")), 1),
10755
+ X("span", ba, rt(L(e)("x-block-lib.dlg.source.title")), 1),
10579
10756
  R(k)
10580
10757
  ]),
10581
10758
  _: 1
@@ -10596,15 +10773,15 @@ const La = { class: "position-relative w-100 h-100" }, Na = /* @__PURE__ */ ie({
10596
10773
  };
10597
10774
  }
10598
10775
  }), Da = (t) => {
10599
- t.component("XBlockly", Na), t.component("XSourceDlg", Ra);
10776
+ t.component("XBlockly", La), t.component("XSourceDlg", Ra);
10600
10777
  };
10601
10778
  async function Ka(t) {
10602
10779
  return (await Gn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.owbcs4f2.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.j5qa8fnp.js") }), `./locales/${t}/index.ts`, 4)).default;
10603
10780
  }
10604
- const Ha = { install: Da };
10781
+ const $a = { install: Da };
10605
10782
  export {
10606
- Na as XBlockly,
10607
- Ha as default,
10783
+ La as XBlockly,
10784
+ $a as default,
10608
10785
  Da as install,
10609
10786
  Ka as loadLocaleMessageBlock
10610
10787
  };