@builder.io/sdk-vue 0.5.5 → 0.5.6-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/package.json +20 -9
  2. package/packages/_vue2/dist/block-12099f71.js +189 -0
  3. package/packages/_vue2/dist/block-246063be.cjs +3 -0
  4. package/packages/_vue2/dist/block-styles-9360f05a.cjs +1 -0
  5. package/packages/_vue2/dist/block-styles-cfdd1b51.js +79 -0
  6. package/packages/_vue2/dist/block-wrapper-857a5d4f.cjs +1 -0
  7. package/packages/_vue2/dist/{block-wrapper.e10d56cd.js → block-wrapper-f852f3a4.js} +19 -16
  8. package/packages/_vue2/dist/{blocks-wrapper.ab7aade5.cjs → blocks-wrapper-87a5ef9b.cjs} +1 -1
  9. package/packages/_vue2/dist/{blocks-wrapper.77411b55.js → blocks-wrapper-98241c68.js} +1 -1
  10. package/packages/_vue2/dist/{component-ref.10096695.js → component-ref-47d34951.js} +29 -21
  11. package/packages/_vue2/dist/component-ref-b891d36b.cjs +1 -0
  12. package/packages/_vue2/dist/content-043dd197.cjs +1 -0
  13. package/packages/_vue2/dist/{content.ecfd43b5.js → content-ab735937.js} +36 -19
  14. package/packages/_vue2/dist/{css.cd48304d.cjs → css-03a9ebe6.cjs} +1 -1
  15. package/packages/_vue2/dist/{css.0bf8202b.js → css-8b11bb6e.js} +1 -1
  16. package/packages/_vue2/dist/enable-editor-04399d8f.cjs +1 -0
  17. package/packages/_vue2/dist/{enable-editor.e568289e.js → enable-editor-2d8d86f8.js} +28 -22
  18. package/packages/_vue2/dist/evaluate-6a213bca.cjs +1 -0
  19. package/packages/_vue2/dist/evaluate-c9d68bff.js +76 -0
  20. package/packages/_vue2/dist/get-block-actions-2b1bc20b.cjs +1 -0
  21. package/packages/_vue2/dist/get-block-actions-75e52f20.js +36 -0
  22. package/packages/_vue2/dist/get-block-properties-0e241c2c.cjs +1 -0
  23. package/packages/_vue2/dist/{get-block-properties.18d4c9b3.js → get-block-properties-f778ef2a.js} +2 -2
  24. package/packages/_vue2/dist/get-processed-block-41399170.cjs +1 -0
  25. package/packages/_vue2/dist/get-processed-block-940605b2.js +46 -0
  26. package/packages/_vue2/dist/helpers-327ed263.js +16 -0
  27. package/packages/_vue2/dist/helpers-4efe31ac.cjs +1 -0
  28. package/packages/_vue2/dist/index-537704ba.cjs +1 -0
  29. package/packages/_vue2/dist/{index.3df15bff.js → index-a089abc3.js} +590 -538
  30. package/packages/_vue2/dist/index-c1c356f8.cjs +32 -0
  31. package/packages/_vue2/dist/index-cc904f8c.js +10 -0
  32. package/packages/_vue2/dist/{inlined-script.43151e3b.js → inlined-script-5ac8fff7.js} +1 -1
  33. package/packages/_vue2/dist/{inlined-script.76b5aff1.cjs → inlined-script-73ce088c.cjs} +1 -1
  34. package/packages/_vue2/dist/inlined-styles-1d50f193.cjs +1 -0
  35. package/packages/_vue2/dist/{inlined-styles.52264f08.js → inlined-styles-3a327fbd.js} +1 -1
  36. package/packages/_vue2/dist/{interactive-element.f4f189d5.js → interactive-element-2aec4d6f.js} +12 -10
  37. package/packages/_vue2/dist/interactive-element-67792031.cjs +1 -0
  38. package/packages/_vue2/dist/main.cjs +1 -0
  39. package/packages/_vue2/dist/main.js +29 -0
  40. package/packages/_vue2/dist/node-runtime-25e8d976.js +93 -0
  41. package/packages/_vue2/dist/node-runtime-5a567c42.cjs +39 -0
  42. package/packages/_vue2/dist/repeated-block-5eb2f7c6.cjs +1 -0
  43. package/packages/_vue2/dist/{repeated-block.7ab5044a.js → repeated-block-a0f25ac2.js} +6 -6
  44. package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +2 -2
  45. package/packages/_vue2/dist/src/blocks/symbol/symbol.helpers.d.ts +1 -1
  46. package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +2 -2
  47. package/packages/_vue2/dist/src/components/block/block.helpers.d.ts +5 -2
  48. package/packages/_vue2/dist/src/components/block/block.vue.d.ts +2 -4
  49. package/packages/_vue2/dist/src/components/block/components/block-styles.vue.d.ts +5 -0
  50. package/packages/_vue2/dist/src/components/block/components/block-wrapper.vue.d.ts +3 -0
  51. package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +3 -2
  52. package/packages/_vue2/dist/src/components/block/components/interactive-element.vue.d.ts +5 -0
  53. package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +9 -8
  54. package/packages/_vue2/dist/src/components/content/content.vue.d.ts +1 -0
  55. package/packages/_vue2/dist/src/components/content-variants/content-variants.types.d.ts +2 -0
  56. package/packages/_vue2/dist/src/components/content-variants/content-variants.vue.d.ts +3 -0
  57. package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  58. package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/index.d.ts +1 -0
  59. package/packages/_vue2/dist/src/functions/evaluate/evaluate.d.ts +6 -7
  60. package/packages/_vue2/dist/src/functions/evaluate/helpers.d.ts +18 -0
  61. package/packages/_vue2/dist/src/functions/evaluate/node-runtime/index.d.ts +1 -0
  62. package/packages/_vue2/dist/src/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  63. package/packages/_vue2/dist/src/functions/fetch-builder-props.d.ts +39 -0
  64. package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +2 -5
  65. package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +3 -3
  66. package/packages/_vue2/dist/src/functions/get-content/index.d.ts +20 -3
  67. package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +5 -3
  68. package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +86 -2
  69. package/packages/_vue2/dist/src/index.d.ts +2 -1
  70. package/packages/_vue2/dist/src/types/builder-props.d.ts +15 -3
  71. package/packages/_vue2/dist/style.css +1 -1
  72. package/packages/_vue2/dist/{styles.2f94fa2c.js → styles-183aeb6b.js} +18 -18
  73. package/packages/_vue2/dist/{styles.4af0e072.cjs → styles-6e2cbe10.cjs} +5 -5
  74. package/packages/_vue3/dist/{block-wrapper.e41532b2.cjs → block-wrapper.500b81ef.cjs} +1 -1
  75. package/packages/_vue3/dist/{block-wrapper.d098d5ab.js → block-wrapper.5ca35adf.js} +2 -2
  76. package/packages/_vue3/dist/{component-ref.c6b3162f.js → component-ref.5764cdf2.js} +2 -2
  77. package/packages/_vue3/dist/{component-ref.33e78959.cjs → component-ref.67d028bc.cjs} +1 -1
  78. package/packages/_vue3/dist/{get-block-actions.fb7173e7.js → get-block-actions.0f635805.js} +1 -1
  79. package/packages/_vue3/dist/{get-block-actions.b792830e.cjs → get-block-actions.20d51d99.cjs} +1 -1
  80. package/packages/_vue3/dist/index.0db0f592.cjs +69 -0
  81. package/packages/_vue3/dist/{index.3d2e7780.js → index.f5a3101b.js} +607 -553
  82. package/packages/_vue3/dist/node-runtime.ba895a23.cjs +39 -0
  83. package/packages/_vue3/dist/node-runtime.dc2f1f18.js +93 -0
  84. package/packages/{_vue2/dist/non-node-runtime.ea934f1b.js → _vue3/dist/non-node-runtime.45773de4.js} +62 -64
  85. package/packages/_vue3/dist/{non-node-runtime.52df390c.cjs → non-node-runtime.c8fc465e.cjs} +8 -8
  86. package/packages/_vue3/dist/{repeated-block.b2f15408.js → repeated-block.238616b4.js} +2 -2
  87. package/packages/_vue3/dist/{repeated-block.af26c825.cjs → repeated-block.8ca9be30.cjs} +1 -1
  88. package/packages/_vue3/dist/sdk.cjs +1 -1
  89. package/packages/_vue3/dist/sdk.js +24 -19
  90. package/packages/_vue3/dist/src/blocks/symbol/symbol.helpers.d.ts +1 -1
  91. package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/browser.d.ts +4 -0
  92. package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/index.d.ts +1 -0
  93. package/packages/_vue3/dist/src/functions/evaluate/evaluate.d.ts +1 -5
  94. package/packages/_vue3/dist/src/functions/evaluate/helpers.d.ts +18 -0
  95. package/packages/{_vue2/dist/src/functions/evaluate/non-node-runtime → _vue3/dist/src/functions/evaluate/node-runtime}/index.d.ts +2 -2
  96. package/packages/_vue3/dist/src/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
  97. package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +2 -2
  98. package/packages/_vue3/dist/src/functions/fetch-builder-props.d.ts +39 -0
  99. package/packages/_vue3/dist/src/functions/get-content/index.d.ts +20 -3
  100. package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +103 -2
  101. package/packages/_vue3/dist/src/index.d.ts +2 -1
  102. package/packages/_vue3/dist/style.css +1 -1
  103. package/packages/_vue2/dist/block-styles.551cd02d.js +0 -78
  104. package/packages/_vue2/dist/block-styles.a0d753a9.cjs +0 -1
  105. package/packages/_vue2/dist/block-wrapper.1275badd.cjs +0 -1
  106. package/packages/_vue2/dist/block.4281b61f.js +0 -179
  107. package/packages/_vue2/dist/block.b03a0eae.cjs +0 -3
  108. package/packages/_vue2/dist/component-ref.9d208992.cjs +0 -1
  109. package/packages/_vue2/dist/content.6d11463c.cjs +0 -1
  110. package/packages/_vue2/dist/enable-editor.4e78f6ed.cjs +0 -1
  111. package/packages/_vue2/dist/evaluate.7dcb5aad.cjs +0 -4
  112. package/packages/_vue2/dist/evaluate.f8bc6419.js +0 -79
  113. package/packages/_vue2/dist/get-block-actions.26e982e0.js +0 -36
  114. package/packages/_vue2/dist/get-block-actions.413b41fb.cjs +0 -1
  115. package/packages/_vue2/dist/get-block-properties.48e54355.cjs +0 -1
  116. package/packages/_vue2/dist/get-processed-block.a838cbff.cjs +0 -1
  117. package/packages/_vue2/dist/get-processed-block.d6b8a3e9.js +0 -53
  118. package/packages/_vue2/dist/index.9cfd3074.cjs +0 -32
  119. package/packages/_vue2/dist/inlined-styles.fc33e3c1.cjs +0 -1
  120. package/packages/_vue2/dist/interactive-element.5d4dffa8.cjs +0 -1
  121. package/packages/_vue2/dist/non-node-runtime.59649ad7.cjs +0 -21
  122. package/packages/_vue2/dist/repeated-block.c74eee80.cjs +0 -1
  123. package/packages/_vue2/dist/sdk.cjs +0 -1
  124. package/packages/_vue2/dist/sdk.js +0 -24
  125. package/packages/_vue2/dist/set.87eb0329.cjs +0 -1
  126. package/packages/_vue2/dist/set.b219ab0e.js +0 -9
  127. package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
  128. package/packages/_vue2/dist/src/functions/evaluate/types.d.ts +0 -11
  129. package/packages/_vue3/dist/index.d92378a5.cjs +0 -72
  130. package/packages/_vue3/dist/non-node-runtime.d120625e.js +0 -2476
  131. package/packages/_vue3/dist/src/functions/evaluate/acorn-interpreter.d.ts +0 -2
  132. package/packages/_vue3/dist/src/functions/evaluate/types.d.ts +0 -11
  133. /package/packages/_vue2/dist/{sdk.d.ts → index.d.ts} +0 -0
  134. /package/packages/{_vue2/dist/src/functions/evaluate → _vue3/dist/src/functions/evaluate/non-node-runtime}/acorn-interpreter.d.ts +0 -0
@@ -0,0 +1,39 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("isolated-vm"),_=require("./index.0db0f592.cjs");require("vue");function m(t){if(t&&t.__esModule)return t;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const a=m(v),f=t=>`bldr_${t}_sync`,b="BUILDER_SET_STATE",T=`
2
+ var refToProxy = (obj) => {
3
+ if (typeof obj !== 'object' || obj === null) {
4
+ return obj;
5
+ }
6
+ return new Proxy({}, {
7
+ get(target, key) {
8
+ if (key === 'copySync') {
9
+ return () => obj.copySync();
10
+ }
11
+ const val = obj.getSync(key);
12
+ if (typeof val?.getSync === 'function') {
13
+ return refToProxy(val);
14
+ }
15
+ return val;
16
+ },
17
+ set(target, key, value) {
18
+ obj.setSync(key, value);
19
+ ${b}(obj.copySync())
20
+ },
21
+ deleteProperty(target, key) {
22
+ obj.deleteSync(key);
23
+ }
24
+ })
25
+ }
26
+ `,O=({code:t,args:n})=>{const e=n.map(([r])=>`var ${r} = refToProxy(${f(r)}); `).join("");return`
27
+ ${T}
28
+ ${e}
29
+ function theFunction() {
30
+ ${t}
31
+ }
32
+
33
+ const output = theFunction()
34
+
35
+ if (typeof output === 'object' && output !== null) {
36
+ JSON.stringify(output.copySync ? output.copySync() : output);
37
+ }
38
+ output;
39
+ `},x=()=>new a.Isolate({memoryLimit:128}).createContextSync(),E=({code:t,builder:n,context:e,event:r,localState:p,rootSetState:u,rootState:S})=>{const g={...S,...p},l=_.getFunctionArguments({builder:n,context:e,event:r,state:g}),y=x(),c=y.global;c.setSync("global",c.derefInto()),c.setSync("log",function(...o){console.log(...o)}),c.setSync(b,function(o){u&&u(o)}),l.forEach(([o,s])=>{const j=typeof s=="object"?new a.Reference(o==="builder"?{...s,getUserAttributes:()=>s.getUserAttributes()}:s):null;c.setSync(f(o),j)});const d=O({code:t,args:l}),i=y.evalSync(d);try{return JSON.parse(i)}catch{return i}};exports.runInNode=E;
@@ -0,0 +1,93 @@
1
+ import * as i from "isolated-vm";
2
+ import { g as m } from "./index.f5a3101b.js";
3
+ import "vue";
4
+ const p = (e) => `bldr_${e}_sync`, f = "BUILDER_SET_STATE", _ = `
5
+ var refToProxy = (obj) => {
6
+ if (typeof obj !== 'object' || obj === null) {
7
+ return obj;
8
+ }
9
+ return new Proxy({}, {
10
+ get(target, key) {
11
+ if (key === 'copySync') {
12
+ return () => obj.copySync();
13
+ }
14
+ const val = obj.getSync(key);
15
+ if (typeof val?.getSync === 'function') {
16
+ return refToProxy(val);
17
+ }
18
+ return val;
19
+ },
20
+ set(target, key, value) {
21
+ obj.setSync(key, value);
22
+ ${f}(obj.copySync())
23
+ },
24
+ deleteProperty(target, key) {
25
+ obj.deleteSync(key);
26
+ }
27
+ })
28
+ }
29
+ `, T = ({
30
+ code: e,
31
+ args: c
32
+ }) => {
33
+ const s = c.map(([n]) => `var ${n} = refToProxy(${p(n)}); `).join("");
34
+ return `
35
+ ${_}
36
+ ${s}
37
+ function theFunction() {
38
+ ${e}
39
+ }
40
+
41
+ const output = theFunction()
42
+
43
+ if (typeof output === 'object' && output !== null) {
44
+ JSON.stringify(output.copySync ? output.copySync() : output);
45
+ }
46
+ output;
47
+ `;
48
+ }, E = () => new i.Isolate({
49
+ memoryLimit: 128
50
+ }).createContextSync(), A = ({
51
+ code: e,
52
+ builder: c,
53
+ context: s,
54
+ event: n,
55
+ localState: S,
56
+ rootSetState: u,
57
+ rootState: b
58
+ }) => {
59
+ const g = {
60
+ ...b,
61
+ ...S
62
+ }, y = m({
63
+ builder: c,
64
+ context: s,
65
+ event: n,
66
+ state: g
67
+ }), l = E(), o = l.global;
68
+ o.setSync("global", o.derefInto()), o.setSync("log", function(...t) {
69
+ console.log(...t);
70
+ }), o.setSync(f, function(t) {
71
+ u && u(t);
72
+ }), y.forEach(([t, r]) => {
73
+ const v = typeof r == "object" ? new i.Reference(
74
+ t === "builder" ? {
75
+ ...r,
76
+ getUserAttributes: () => r.getUserAttributes()
77
+ } : r
78
+ ) : null;
79
+ o.setSync(p(t), v);
80
+ });
81
+ const j = T({
82
+ code: e,
83
+ args: y
84
+ }), a = l.evalSync(j);
85
+ try {
86
+ return JSON.parse(a);
87
+ } catch {
88
+ return a;
89
+ }
90
+ };
91
+ export {
92
+ A as runInNode
93
+ };
@@ -1,7 +1,6 @@
1
- import { l as vu } from "./index.3df15bff.js";
2
- import { s as Wu } from "./set.b219ab0e.js";
1
+ import { l as vu, g as Wu, s as Hu } from "./index.f5a3101b.js";
3
2
  import "vue";
4
- var w, Hu = function(e) {
3
+ var w, Ju = function(e) {
5
4
  function t(i) {
6
5
  return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Xu.test(String.fromCharCode(i));
7
6
  }
@@ -31,7 +30,7 @@ var w, Hu = function(e) {
31
30
  };
32
31
  }
33
32
  function o() {
34
- this.line = le, this.ab = c - K;
33
+ this.line = ae, this.ab = c - K;
35
34
  }
36
35
  function a(i, s) {
37
36
  fe = c, m.C && (at = new o()), C = i, d(), V = s, Be = i.m;
@@ -47,9 +46,9 @@ var w, Hu = function(e) {
47
46
  if (i === 32)
48
47
  ++c;
49
48
  else if (i === 13)
50
- ++c, i = A.charCodeAt(c), i === 10 && ++c, m.C && (++le, K = c);
49
+ ++c, i = A.charCodeAt(c), i === 10 && ++c, m.C && (++ae, K = c);
51
50
  else if (i === 10 || i === 8232 || i === 8233)
52
- ++c, m.C && (++le, K = c);
51
+ ++c, m.C && (++ae, K = c);
53
52
  else if (8 < i && 14 > i)
54
53
  ++c;
55
54
  else if (i === 47)
@@ -58,7 +57,7 @@ var w, Hu = function(e) {
58
57
  var s = m.va && m.C && new o(), l = c, p = A.indexOf("*/", c += 2);
59
58
  if (p === -1 && u(c - 2, "Unterminated comment"), c = p + 2, m.C)
60
59
  for (Ke.lastIndex = l; (i = Ke.exec(A)) && i.index < c; )
61
- ++le, K = i.index + i[0].length;
60
+ ++ae, K = i.index + i[0].length;
62
61
  m.va && m.va(!0, A.slice(l + 2, p), l, c, s, m.C && new o());
63
62
  } else if (i === 47)
64
63
  h();
@@ -165,7 +164,7 @@ var w, Hu = function(e) {
165
164
  case 13:
166
165
  A.charCodeAt(c) === 10 && ++c;
167
166
  case 10:
168
- m.C && (K = c, ++le);
167
+ m.C && (K = c, ++ae);
169
168
  break;
170
169
  default:
171
170
  s += String.fromCharCode(l);
@@ -175,26 +174,26 @@ var w, Hu = function(e) {
175
174
  }
176
175
  return;
177
176
  case 47:
178
- i = A.charCodeAt(c + 1), Be ? (++c, Le()) : i === 61 ? x(ce, 2) : x(lu, 1);
177
+ i = A.charCodeAt(c + 1), Be ? (++c, Le()) : i === 61 ? x(le, 2) : x(lu, 1);
179
178
  return;
180
179
  case 37:
181
180
  case 42:
182
- A.charCodeAt(c + 1) === 61 ? x(ce, 2) : x(bu, 1);
181
+ A.charCodeAt(c + 1) === 61 ? x(le, 2) : x(bu, 1);
183
182
  return;
184
183
  case 124:
185
184
  case 38:
186
- s = A.charCodeAt(c + 1), s === i ? x(i === 124 ? fu : hu, 2) : s === 61 ? x(ce, 2) : x(i === 124 ? Iu : Nu, 1);
185
+ s = A.charCodeAt(c + 1), s === i ? x(i === 124 ? fu : hu, 2) : s === 61 ? x(le, 2) : x(i === 124 ? Iu : Nu, 1);
187
186
  return;
188
187
  case 94:
189
- A.charCodeAt(c + 1) === 61 ? x(ce, 2) : x(Tu, 1);
188
+ A.charCodeAt(c + 1) === 61 ? x(le, 2) : x(Tu, 1);
190
189
  return;
191
190
  case 43:
192
191
  case 45:
193
- s = A.charCodeAt(c + 1), s === i ? s === 45 && A.charCodeAt(c + 2) === 62 && $e.test(A.slice(re, c)) ? (c += 3, h(), d(), O()) : x(Ou, 2) : s === 61 ? x(ce, 2) : x(Uu, 1);
192
+ s = A.charCodeAt(c + 1), s === i ? s === 45 && A.charCodeAt(c + 2) === 62 && $e.test(A.slice(re, c)) ? (c += 3, h(), d(), O()) : x(Ou, 2) : s === 61 ? x(le, 2) : x(Uu, 1);
194
193
  return;
195
194
  case 60:
196
195
  case 62:
197
- s = A.charCodeAt(c + 1), l = 1, s === i ? (l = i === 62 && A.charCodeAt(c + 2) === 62 ? 3 : 2, A.charCodeAt(c + l) === 61 ? x(ce, l + 1) : x(Pu, l)) : s === 33 && i === 60 && A.charCodeAt(c + 2) === 45 && A.charCodeAt(c + 3) === 45 ? (c += 4, h(), d(), O()) : (s === 61 && (l = A.charCodeAt(c + 2) === 61 ? 3 : 2), x(Ru, l));
196
+ s = A.charCodeAt(c + 1), l = 1, s === i ? (l = i === 62 && A.charCodeAt(c + 2) === 62 ? 3 : 2, A.charCodeAt(c + l) === 61 ? x(le, l + 1) : x(Pu, l)) : s === 33 && i === 60 && A.charCodeAt(c + 2) === 45 && A.charCodeAt(c + 3) === 45 ? (c += 4, h(), d(), O()) : (s === 61 && (l = A.charCodeAt(c + 2) === 61 ? 3 : 2), x(Ru, l));
198
197
  return;
199
198
  case 61:
200
199
  case 33:
@@ -239,7 +238,7 @@ var w, Hu = function(e) {
239
238
  }
240
239
  ++c;
241
240
  }
242
- i = A.slice(l, c), ++c, (s = se()) && !/^[gmi]*$/.test(s) && u(l, "Invalid regexp flag");
241
+ i = A.slice(l, c), ++c, (s = ce()) && !/^[gmi]*$/.test(s) && u(l, "Invalid regexp flag");
243
242
  try {
244
243
  var E = new RegExp(i, s);
245
244
  } catch (T) {
@@ -265,7 +264,7 @@ var w, Hu = function(e) {
265
264
  function H(i) {
266
265
  return i = oe(16, i), i === null && u(I, "Bad character escape sequence"), i;
267
266
  }
268
- function se() {
267
+ function ce() {
269
268
  ge = !1;
270
269
  for (var i, s = !0, l = c; ; ) {
271
270
  var p = A.charCodeAt(c);
@@ -282,7 +281,7 @@ var w, Hu = function(e) {
282
281
  return ge ? i : A.slice(l, c);
283
282
  }
284
283
  function Ge() {
285
- var i = se(), s = he;
284
+ var i = ce(), s = he;
286
285
  !ge && Lu(i) && (s = ku[i]), a(s, i);
287
286
  }
288
287
  function D() {
@@ -292,7 +291,7 @@ var w, Hu = function(e) {
292
291
  if (X = i, c = I, m.C)
293
292
  for (; c < K; )
294
293
  K = A.lastIndexOf(`
295
- `, K - 2) + 1, --le;
294
+ `, K - 2) + 1, --ae;
296
295
  d(), O();
297
296
  }
298
297
  function Ut() {
@@ -321,7 +320,7 @@ var w, Hu = function(e) {
321
320
  function Xe() {
322
321
  return !m.fc && (C === pt || C === Ae || $e.test(A.slice(re, I)));
323
322
  }
324
- function ae() {
323
+ function se() {
325
324
  S(z) || Xe() || Y();
326
325
  }
327
326
  function j(i) {
@@ -334,14 +333,14 @@ var w, Hu = function(e) {
334
333
  i.type !== "Identifier" && i.type !== "MemberExpression" && u(i.start, "Assigning to rvalue"), X && i.type === "Identifier" && Ye(i.name) && u(i.start, "Assigning to " + i.name + " in strict mode");
335
334
  }
336
335
  function W() {
337
- (C === lu || C === ce && V === "/=") && O(!0);
336
+ (C === lu || C === le && V === "/=") && O(!0);
338
337
  var i = C, s = R();
339
338
  switch (i) {
340
339
  case ft:
341
340
  case Wt:
342
341
  D();
343
342
  var l = i === ft;
344
- S(z) || Xe() ? s.label = null : C !== he ? Y() : (s.label = $(), ae());
343
+ S(z) || Xe() ? s.label = null : C !== he ? Y() : (s.label = $(), se());
345
344
  for (var p = 0; p < k.length; ++p) {
346
345
  var E = k[p];
347
346
  if ((s.label === null || E.name === s.label.name) && (E.kind !== null && (l || E.kind === "loop") || s.label && l))
@@ -349,9 +348,9 @@ var w, Hu = function(e) {
349
348
  }
350
349
  return p === k.length && u(s.start, "Unsyntactic " + i.l), F(s, l ? "BreakStatement" : "ContinueStatement");
351
350
  case Ht:
352
- return D(), ae(), F(s, "DebuggerStatement");
351
+ return D(), se(), F(s, "DebuggerStatement");
353
352
  case Yt:
354
- return D(), k.push(Ft), s.body = W(), k.pop(), j(yt), s.test = me(), ae(), F(s, "DoWhileStatement");
353
+ return D(), k.push(Ft), s.body = W(), k.pop(), j(yt), s.test = me(), se(), F(s, "DoWhileStatement");
355
354
  case Zt:
356
355
  return D(), k.push(Ft), j(Z), C === z ? et(s, null) : C === vt ? (i = R(), D(), Lt(i, !0), F(i, "VariableDeclaration"), i.fa.length === 1 && S(Je) ? _t(s, i) : et(s, i)) : (i = U(!1, !0), S(Je) ? (Ve(i), _t(s, i)) : et(s, i));
357
356
  case At:
@@ -359,17 +358,17 @@ var w, Hu = function(e) {
359
358
  case zt:
360
359
  return D(), s.test = me(), s.da = W(), s.alternate = S($t) ? W() : null, F(s, "IfStatement");
361
360
  case Qt:
362
- return we || m.Ib || u(I, "'return' outside of function"), D(), S(z) || Xe() ? s.K = null : (s.K = U(), ae()), F(s, "ReturnStatement");
361
+ return we || m.Ib || u(I, "'return' outside of function"), D(), S(z) || Xe() ? s.K = null : (s.K = U(), se()), F(s, "ReturnStatement");
363
362
  case gt:
364
363
  for (D(), s.Qb = me(), s.tb = [], j(Se), k.push(Vu); C !== Ae; )
365
364
  C === ht || C === Jt ? (i = C === ht, p && F(p, "SwitchCase"), s.tb.push(p = R()), p.da = [], D(), i ? p.test = U() : (l && u(lt, "Multiple default clauses"), l = !0, p.test = null), j(je)) : (p || Y(), p.da.push(W()));
366
365
  return p && F(p, "SwitchCase"), D(), k.pop(), F(s, "SwitchStatement");
367
366
  case qt:
368
- return D(), $e.test(A.slice(re, I)) && u(re, "Illegal newline after throw"), s.K = U(), ae(), F(s, "ThrowStatement");
367
+ return D(), $e.test(A.slice(re, I)) && u(re, "Illegal newline after throw"), s.K = U(), se(), F(s, "ThrowStatement");
369
368
  case eu:
370
369
  return D(), s.block = de(), s.Ea = null, C === Vt && (i = R(), D(), j(Z), i.Ua = $(), X && Ye(i.Ua.name) && u(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), j(J), i.body = de(), s.Ea = F(i, "CatchClause")), s.fb = S(Kt) ? de() : null, s.Ea || s.fb || u(s.start, "Missing catch or finally clause"), F(s, "TryStatement");
371
370
  case vt:
372
- return D(), Lt(s), ae(), F(s, "VariableDeclaration");
371
+ return D(), Lt(s), se(), F(s, "VariableDeclaration");
373
372
  case yt:
374
373
  return D(), s.test = me(), k.push(Ft), s.body = W(), k.pop(), F(s, "WhileStatement");
375
374
  case tu:
@@ -387,7 +386,7 @@ var w, Hu = function(e) {
387
386
  kind: C.W ? "loop" : C === gt ? "switch" : null
388
387
  }), s.body = W(), k.pop(), s.label = E, F(s, "LabeledStatement");
389
388
  }
390
- return s.la = E, ae(), F(s, "ExpressionStatement");
389
+ return s.la = E, se(), F(s, "ExpressionStatement");
391
390
  }
392
391
  }
393
392
  function me() {
@@ -551,7 +550,7 @@ var w, Hu = function(e) {
551
550
  A = String(i), pe = A.length, m = s || {};
552
551
  for (var l in Gt)
553
552
  Object.prototype.hasOwnProperty.call(m, l) || (m[l] = Gt[l]);
554
- for (ot = m.sourceFile, le = 1, c = K = 0, Be = !0, d(), l = m.dc, lt = re = c, m.C && (ct = new o()), we = X = !1, k = [], O(), i = l || R(), s = !0, l || (i.body = []); C !== pt; )
553
+ for (ot = m.sourceFile, ae = 1, c = K = 0, Be = !0, d(), l = m.dc, lt = re = c, m.C && (ct = new o()), we = X = !1, k = [], O(), i = l || R(), s = !0, l || (i.body = []); C !== pt; )
555
554
  l = W(), i.body.push(l), s && qe(l) && Qe(!0), s = !1;
556
555
  return F(i, "Program");
557
556
  };
@@ -566,7 +565,7 @@ var w, Hu = function(e) {
566
565
  dc: null,
567
566
  sourceFile: null,
568
567
  vb: null
569
- }, c = 0, I = 0, fe = 0, st, at, C, V, Be, le, K, lt = 0, re = 0, ct, we, k, X, ju = [], xe = {
568
+ }, c = 0, I = 0, fe = 0, st, at, C, V, Be, ae, K, lt = 0, re = 0, ct, we, k, X, ju = [], xe = {
570
569
  type: "num"
571
570
  }, Xt = {
572
571
  type: "regexp"
@@ -720,7 +719,7 @@ var w, Hu = function(e) {
720
719
  }, cu = {
721
720
  Cb: !0,
722
721
  m: !0
723
- }, ce = {
722
+ }, le = {
724
723
  Cb: !0,
725
724
  m: !0
726
725
  }, Ou = {
@@ -767,7 +766,7 @@ var w, Hu = function(e) {
767
766
  kind: "switch"
768
767
  };
769
768
  }, Dt = Dt = typeof globalThis > "u" ? void 0 : globalThis;
770
- Hu(Dt.j || (Dt.j = {}));
769
+ Ju(Dt.j || (Dt.j = {}));
771
770
  function f(e, t) {
772
771
  typeof e == "string" && (e = Ce(e, "code"));
773
772
  var r = e.constructor;
@@ -817,7 +816,7 @@ var yu = {
817
816
  VALUE_IN_DESCRIPTOR: !0
818
817
  }, ye = {
819
818
  REGEXP_TIMEOUT: !0
820
- }, Eu = [], q = null, Me = null, ie = typeof globalThis > "u" ? void 0 : globalThis, Ju = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
819
+ }, Eu = [], q = null, Me = null, ie = typeof globalThis > "u" ? void 0 : globalThis, Yu = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
821
820
  function St(e) {
822
821
  var t = e >>> 0;
823
822
  return t === Number(e) ? t : NaN;
@@ -899,8 +898,8 @@ w.Eb = function() {
899
898
  ;
900
899
  return this.za;
901
900
  };
902
- function Yu(e, t) {
903
- e.g(t, "NaN", NaN, ke), e.g(t, "Infinity", 1 / 0, ke), e.g(t, "undefined", void 0, ke), e.g(t, "window", t, xt), e.g(t, "this", t, ke), e.g(t, "self", t), e.M = new B(null), e.Z = new B(e.M), $u(e, t), Ku(e, t), t.xa = e.M, e.g(t, "constructor", e.v, g), Zu(e, t), zu(e, t), Qu(e, t), qu(e, t), er(e, t), tr(e, t), ur(e, t), rr(e, t), nr(e, t);
901
+ function $u(e, t) {
902
+ e.g(t, "NaN", NaN, ke), e.g(t, "Infinity", 1 / 0, ke), e.g(t, "undefined", void 0, ke), e.g(t, "window", t, xt), e.g(t, "this", t, ke), e.g(t, "self", t), e.M = new B(null), e.Z = new B(e.M), Ku(e, t), Zu(e, t), t.xa = e.M, e.g(t, "constructor", e.v, g), zu(e, t), Qu(e, t), qu(e, t), er(e, t), tr(e, t), ur(e, t), rr(e, t), nr(e, t), ir(e, t);
904
903
  var r = e.i(function() {
905
904
  throw EvalError("Can't happen");
906
905
  }, !1);
@@ -926,7 +925,7 @@ function Yu(e, t) {
926
925
  }, e.g(t, "clearInterval", e.i(r, !1), g), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
927
926
  }
928
927
  w.Wb = 0;
929
- function $u(e, t) {
928
+ function Ku(e, t) {
930
929
  var r = /^[A-Za-z_$][\w$]*$/, u = function(n) {
931
930
  var o = arguments.length ? String(arguments[arguments.length - 1]) : "", a = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
932
931
  if (a) {
@@ -960,7 +959,7 @@ function $u(e, t) {
960
959
  return this.valueOf();
961
960
  }, N(e, e.O, "valueOf", u), e.g(e.O, "valueOf", e.i(u, !1), g);
962
961
  }
963
- function Ku(e, t) {
962
+ function Zu(e, t) {
964
963
  function r(n) {
965
964
  n != null || y(e, e.j, "Cannot convert '" + n + "' to object");
966
965
  }
@@ -1005,7 +1004,7 @@ function Ku(e, t) {
1005
1004
  }
1006
1005
  }, N(e, e.v, "isPrototypeOf", u);
1007
1006
  }
1008
- function Zu(e, t) {
1007
+ function zu(e, t) {
1009
1008
  var r = function(u) {
1010
1009
  var n = te(e) ? this : Ee(e), o = arguments[0];
1011
1010
  if (arguments.length === 1 && typeof o == "number")
@@ -1025,7 +1024,7 @@ function Zu(e, t) {
1025
1024
  writable: !0
1026
1025
  }), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
1027
1026
  }
1028
- function zu(e, t) {
1027
+ function Qu(e, t) {
1029
1028
  var r = function(u) {
1030
1029
  return u = arguments.length ? ie.String(u) : "", te(e) ? (this.data = u, this) : u;
1031
1030
  };
@@ -1108,12 +1107,12 @@ function zu(e, t) {
1108
1107
  o(a.replace(u, n));
1109
1108
  }, Ne(e, e.J, "replace", r), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
1110
1109
  }
1111
- function Qu(e, t) {
1110
+ function qu(e, t) {
1112
1111
  e.mb = e.i(function(r) {
1113
1112
  return r = ie.Boolean(r), te(e) ? (this.data = r, this) : r;
1114
1113
  }, !0), e.g(t, "Boolean", e.mb, g);
1115
1114
  }
1116
- function qu(e, t) {
1115
+ function er(e, t) {
1117
1116
  var r = function(u) {
1118
1117
  return u = arguments.length ? ie.Number(u) : 0, te(e) ? (this.data = u, this) : u;
1119
1118
  };
@@ -1152,7 +1151,7 @@ function qu(e, t) {
1152
1151
  }
1153
1152
  }, N(e, e.aa, "toLocaleString", r);
1154
1153
  }
1155
- function er(e, t) {
1154
+ function tr(e, t) {
1156
1155
  var r = function(n, o) {
1157
1156
  if (!te(e))
1158
1157
  return ie.Date();
@@ -1171,7 +1170,7 @@ function er(e, t) {
1171
1170
  };
1172
1171
  }(t[u]), N(e, e.$, t[u], r);
1173
1172
  }
1174
- function tr(e, t) {
1173
+ function ur(e, t) {
1175
1174
  var r = function(u, n) {
1176
1175
  if (te(e))
1177
1176
  var o = this;
@@ -1213,7 +1212,7 @@ function tr(e, t) {
1213
1212
  u = a.exec(u), e.g(this, "lastIndex", a.lastIndex), n(o(u));
1214
1213
  }, Ne(e, e.I, "exec", r);
1215
1214
  }
1216
- function ur(e, t) {
1215
+ function rr(e, t) {
1217
1216
  function r(u) {
1218
1217
  var n = e.i(function(o) {
1219
1218
  var a = te(e) ? this : e.Aa(n);
@@ -1226,7 +1225,7 @@ function ur(e, t) {
1226
1225
  return Bt(e, n, u), n;
1227
1226
  }, !0), e.g(t, "Error", e.D, g), e.g(e.D.h.prototype, "message", "", g), e.g(e.D.h.prototype, "name", "Error", g), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
1228
1227
  }
1229
- function rr(e, t) {
1228
+ function nr(e, t) {
1230
1229
  var r = e.s(e.M);
1231
1230
  e.g(t, "Math", r, g);
1232
1231
  var u = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
@@ -1235,7 +1234,7 @@ function rr(e, t) {
1235
1234
  for (u = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < u.length; t++)
1236
1235
  e.g(r, u[t], e.i(Math[u[t]], !1), g);
1237
1236
  }
1238
- function nr(e, t) {
1237
+ function ir(e, t) {
1239
1238
  var r = e.s(e.M);
1240
1239
  e.g(t, "JSON", r, g), t = function(u) {
1241
1240
  try {
@@ -1290,7 +1289,7 @@ function Bt(e, t, r) {
1290
1289
  }
1291
1290
  w.ha = function() {
1292
1291
  var e = this.ha.Mb;
1293
- return e || (e = new Blob([Ju.join(`
1292
+ return e || (e = new Blob([Yu.join(`
1294
1293
  `)], {
1295
1294
  type: "application/javascript"
1296
1295
  }), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
@@ -1569,7 +1568,7 @@ function wt(e, t, r) {
1569
1568
  var n = t.body && t.body[0];
1570
1569
  n && n.la && n.la.type === "Literal" && n.la.value === "use strict" && (u = !0);
1571
1570
  }
1572
- return n = e.s(null), u = new Su(r, u, n), r || Yu(e, u.object), Ue(e, t, u), u;
1571
+ return n = e.s(null), u = new Su(r, u, n), r || $u(e, u.object), Ue(e, t, u), u;
1573
1572
  }
1574
1573
  function Tt(e, t, r) {
1575
1574
  if (!t)
@@ -1754,7 +1753,7 @@ function Fu(e, t, r) {
1754
1753
  }
1755
1754
  a.type = "EvalProgram_", a.body = d.body, u = u.node.arguments[0], Ze(a, u ? u.start : void 0, u ? u.end : void 0), u = e.N, n.length = 0;
1756
1755
  }
1757
- return t = new ir(h, n, u, a, t ? r : -1), xu(e, t, r), t.Db;
1756
+ return t = new or(h, n, u, a, t ? r : -1), xu(e, t, r), t.Db;
1758
1757
  }
1759
1758
  function xu(e, t, r) {
1760
1759
  t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(u, n) {
@@ -1858,10 +1857,10 @@ w.toString = function() {
1858
1857
  w.valueOf = function() {
1859
1858
  return !Me || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
1860
1859
  };
1861
- function ir(e, t, r, u, n) {
1862
- this.zb = e, this.Lb = t, this.scope = r, this.node = u, this.interval = n, this.Db = ++or, this.time = 0;
1860
+ function or(e, t, r, u, n) {
1861
+ this.zb = e, this.Lb = t, this.scope = r, this.node = u, this.interval = n, this.Db = ++sr, this.time = 0;
1863
1862
  }
1864
- var or = 0;
1863
+ var sr = 0;
1865
1864
  f.prototype.stepArrayExpression = function(e, t, r) {
1866
1865
  r = r.elements;
1867
1866
  var u = t.A || 0;
@@ -2409,7 +2408,7 @@ f.prototype.getGlobalScope = f.prototype.Xb;
2409
2408
  f.prototype.getStateStack = f.prototype.Yb;
2410
2409
  f.prototype.setStateStack = f.prototype.ec;
2411
2410
  f.VALUE_IN_DESCRIPTOR = Pe;
2412
- const sr = (e) => e.split(`
2411
+ const ar = (e) => e.split(`
2413
2412
  `).map((t) => {
2414
2413
  const r = t.trim();
2415
2414
  if (t.includes("__awaiter"))
@@ -2429,19 +2428,18 @@ const sr = (e) => e.split(`
2429
2428
  rootState: u,
2430
2429
  localState: n,
2431
2430
  rootSetState: o,
2432
- useCode: a
2431
+ code: a
2433
2432
  }) => {
2434
2433
  const h = {
2435
2434
  ...u,
2436
2435
  ...n
2437
- }, d = {
2438
- state: h,
2439
- Builder: e,
2436
+ }, d = Wu({
2440
2437
  builder: e,
2441
2438
  context: t,
2442
- event: r
2443
- }, b = Object.keys(d).map((M) => `var ${M} = JSON.parse(${du(M)});`).join(`
2444
- `), O = sr(a);
2439
+ event: r,
2440
+ state: h
2441
+ }), b = d.map(([M]) => `var ${M} = JSON.parse(${du(M)});`).join(`
2442
+ `), O = ar(a);
2445
2443
  if (O === "") {
2446
2444
  vu.warn("Skipping evaluation of empty code block.");
2447
2445
  return;
@@ -2454,12 +2452,12 @@ function theFunction() {
2454
2452
  }
2455
2453
  theFunction();
2456
2454
  `, Le = (M, H) => {
2457
- const se = Wu(h, M, H);
2458
- o == null || o(se);
2455
+ const ce = Hu(h, M, H);
2456
+ o == null || o(ce);
2459
2457
  }, oe = function(M, H) {
2460
- Object.keys(d).forEach((se) => {
2461
- const Ge = d[se] || {}, D = JSON.stringify(Ge);
2462
- M.setProperty(H, du(se), D);
2458
+ d.forEach(([ce, Ge]) => {
2459
+ const D = JSON.stringify(Ge);
2460
+ M.setProperty(H, du(ce), D);
2463
2461
  }), M.setProperty(H, "setRootState", M.createNativeFunction(Le));
2464
2462
  };
2465
2463
  try {