@guihz/trading-vue-editor-tes 0.0.31 → 0.0.33
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/lib/assets/{parserTccWorker-CZf29GR5.js → parserTccWorker-DngDuQ-v.js} +1 -1
- package/lib/assets/scriptsRunWorker-C8unrW65.js +66 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/array.d.ts +51 -47
- package/lib/components/editor/parseScript/buildInFuncNamespace/map.d.ts +5 -1
- package/lib/components/editor/parseScript/buildInFuncNamespace/math.d.ts +16 -14
- package/lib/components/editor/parseScript/buildInFuncNamespace/matrix.d.ts +7 -3
- package/lib/components/editor/parseScript/buildInFuncNamespace/string.d.ts +15 -12
- package/lib/components/editor/parseScript/constants.d.ts +1 -0
- package/lib/components/editor/parseScript/utils.d.ts +1 -0
- package/lib/trading-vue-editor.js +60 -60
- package/lib/trading-vue-editor.umd.cjs +7 -7
- package/package.json +1 -1
- package/lib/assets/scriptsRunWorker-BJ1wp5To.js +0 -66
| @@ -81,14 +81,14 @@ function q_() { | |
| 81 81 | 
             
                    me.unshift("Warning: " + S), Function.prototype.apply.call(console[y], console, me);
         | 
| 82 82 | 
             
                  }
         | 
| 83 83 | 
             
                }
         | 
| 84 | 
            -
                var ee = !1, K = !1, ce = !1, Z = !1, ze = !1,  | 
| 85 | 
            -
                 | 
| 84 | 
            +
                var ee = !1, K = !1, ce = !1, Z = !1, ze = !1, be;
         | 
| 85 | 
            +
                be = Symbol.for("react.module.reference");
         | 
| 86 86 | 
             
                function ae(y) {
         | 
| 87 87 | 
             
                  return !!(typeof y == "string" || typeof y == "function" || y === o || y === p || ze || y === u || y === v || y === w || Z || y === R || ee || K || ce || typeof y == "object" && y !== null && (y.$$typeof === z || y.$$typeof === k || y.$$typeof === m || y.$$typeof === b || y.$$typeof === g || // This needs to include all possible module reference object
         | 
| 88 88 | 
             
                  // types supported by any Flight configuration anywhere since
         | 
| 89 89 | 
             
                  // we don't know which Flight build this will end up being used
         | 
| 90 90 | 
             
                  // with.
         | 
| 91 | 
            -
                  y.$$typeof ===  | 
| 91 | 
            +
                  y.$$typeof === be || y.getModuleId !== void 0));
         | 
| 92 92 | 
             
                }
         | 
| 93 93 | 
             
                function at(y, S, N) {
         | 
| 94 94 | 
             
                  var $ = y.displayName;
         | 
| @@ -145,14 +145,14 @@ function q_() { | |
| 145 145 | 
             
                    }
         | 
| 146 146 | 
             
                  return null;
         | 
| 147 147 | 
             
                }
         | 
| 148 | 
            -
                var Ee = Object.assign, U = 0, de,  | 
| 148 | 
            +
                var Ee = Object.assign, U = 0, de, _e, Re, Et, Wt, G, ge;
         | 
| 149 149 | 
             
                function Me() {
         | 
| 150 150 | 
             
                }
         | 
| 151 151 | 
             
                Me.__reactDisabledLog = !0;
         | 
| 152 152 | 
             
                function Ht() {
         | 
| 153 153 | 
             
                  {
         | 
| 154 154 | 
             
                    if (U === 0) {
         | 
| 155 | 
            -
                      de = console.log,  | 
| 155 | 
            +
                      de = console.log, _e = console.info, Re = console.warn, Et = console.error, Wt = console.group, G = console.groupCollapsed, ge = console.groupEnd;
         | 
| 156 156 | 
             
                      var y = {
         | 
| 157 157 | 
             
                        configurable: !0,
         | 
| 158 158 | 
             
                        enumerable: !0,
         | 
| @@ -185,7 +185,7 @@ function q_() { | |
| 185 185 | 
             
                          value: de
         | 
| 186 186 | 
             
                        }),
         | 
| 187 187 | 
             
                        info: Ee({}, y, {
         | 
| 188 | 
            -
                          value:  | 
| 188 | 
            +
                          value: _e
         | 
| 189 189 | 
             
                        }),
         | 
| 190 190 | 
             
                        warn: Ee({}, y, {
         | 
| 191 191 | 
             
                          value: Re
         | 
| @@ -200,7 +200,7 @@ function q_() { | |
| 200 200 | 
             
                          value: G
         | 
| 201 201 | 
             
                        }),
         | 
| 202 202 | 
             
                        groupEnd: Ee({}, y, {
         | 
| 203 | 
            -
                          value:  | 
| 203 | 
            +
                          value: ge
         | 
| 204 204 | 
             
                        })
         | 
| 205 205 | 
             
                      });
         | 
| 206 206 | 
             
                    }
         | 
| @@ -1065,7 +1065,7 @@ function Jc(s, i) { | |
| 1065 1065 | 
             
              return s.Uri.parse(i);
         | 
| 1066 1066 | 
             
            }
         | 
| 1067 1067 | 
             
            function Ag({ original: s, modified: i, language: a, originalLanguage: o, modifiedLanguage: u, originalModelPath: p, modifiedModelPath: m, keepCurrentOriginalModel: b = !1, keepCurrentModifiedModel: g = !1, theme: v = "light", loading: w = "Loading...", options: k = {}, height: z = "100%", width: R = "100%", className: F, wrapperProps: B = {}, beforeMount: re = Ra, onMount: E = Ra }) {
         | 
| 1068 | 
            -
              let [M, le] = Ma(!1), [ee, K] = Ma(!0), ce = Fe(null), Z = Fe(null), ze = Fe(null),  | 
| 1068 | 
            +
              let [M, le] = Ma(!1), [ee, K] = Ma(!0), ce = Fe(null), Z = Fe(null), ze = Fe(null), be = Fe(E), ae = Fe(re), at = Fe(!1);
         | 
| 1069 1069 | 
             
              Zc(() => {
         | 
| 1070 1070 | 
             
                let U = kn.init();
         | 
| 1071 1071 | 
             
                return U.then((de) => (Z.current = de) && K(!1)).catch((de) => (de == null ? void 0 : de.type) !== "cancelation" && console.error("Monaco initialization: error:", de)), () => ce.current ? Ee() : U.cancel();
         | 
| @@ -1096,25 +1096,25 @@ function Ag({ original: s, modified: i, language: a, originalLanguage: o, modifi | |
| 1096 1096 | 
             
                (U = ce.current) == null || U.updateOptions(k);
         | 
| 1097 1097 | 
             
              }, [k], M);
         | 
| 1098 1098 | 
             
              let ft = La(() => {
         | 
| 1099 | 
            -
                var  | 
| 1099 | 
            +
                var _e;
         | 
| 1100 1100 | 
             
                if (!Z.current)
         | 
| 1101 1101 | 
             
                  return;
         | 
| 1102 1102 | 
             
                ae.current(Z.current);
         | 
| 1103 1103 | 
             
                let U = ea(Z.current, s || "", o || a || "text", p || ""), de = ea(Z.current, i || "", u || a || "text", m || "");
         | 
| 1104 | 
            -
                ( | 
| 1104 | 
            +
                (_e = ce.current) == null || _e.setModel({ original: U, modified: de });
         | 
| 1105 1105 | 
             
              }, [a, i, u, s, o, p, m]), Ne = La(() => {
         | 
| 1106 1106 | 
             
                var U;
         | 
| 1107 1107 | 
             
                !at.current && ze.current && (ce.current = Z.current.editor.createDiffEditor(ze.current, { automaticLayout: !0, ...k }), ft(), (U = Z.current) == null || U.editor.setTheme(v), le(!0), at.current = !0);
         | 
| 1108 1108 | 
             
              }, [k, v, ft]);
         | 
| 1109 1109 | 
             
              Dt(() => {
         | 
| 1110 | 
            -
                M &&  | 
| 1110 | 
            +
                M && be.current(ce.current, Z.current);
         | 
| 1111 1111 | 
             
              }, [M]), Dt(() => {
         | 
| 1112 1112 | 
             
                !ee && !M && Ne();
         | 
| 1113 1113 | 
             
              }, [ee, M, Ne]);
         | 
| 1114 1114 | 
             
              function Ee() {
         | 
| 1115 | 
            -
                var de,  | 
| 1115 | 
            +
                var de, _e, Re, Et;
         | 
| 1116 1116 | 
             
                let U = (de = ce.current) == null ? void 0 : de.getModel();
         | 
| 1117 | 
            -
                b || (( | 
| 1117 | 
            +
                b || ((_e = U == null ? void 0 : U.original) == null || _e.dispose()), g || ((Re = U == null ? void 0 : U.modified) == null || Re.dispose()), (Et = ce.current) == null || Et.dispose();
         | 
| 1118 1118 | 
             
              }
         | 
| 1119 1119 | 
             
              return yr.createElement(Qc, { width: R, height: z, isEditorReady: M, loading: w, _ref: ze, className: F, wrapperProps: B });
         | 
| 1120 1120 | 
             
            }
         | 
| @@ -1127,54 +1127,54 @@ function Sg(s) { | |
| 1127 1127 | 
             
            }
         | 
| 1128 1128 | 
             
            var zg = Sg, Bs = /* @__PURE__ */ new Map();
         | 
| 1129 1129 | 
             
            function Ng({ defaultValue: s, defaultLanguage: i, defaultPath: a, value: o, language: u, path: p, theme: m = "light", line: b, loading: g = "Loading...", options: v = {}, overrideServices: w = {}, saveViewState: k = !0, keepCurrentModel: z = !1, width: R = "100%", height: F = "100%", className: B, wrapperProps: re = {}, beforeMount: E = Ra, onMount: M = Ra, onChange: le, onValidate: ee = Ra }) {
         | 
| 1130 | 
            -
              let [K, ce] = Ma(!1), [Z, ze] = Ma(!0),  | 
| 1130 | 
            +
              let [K, ce] = Ma(!1), [Z, ze] = Ma(!0), be = Fe(null), ae = Fe(null), at = Fe(null), ft = Fe(M), Ne = Fe(E), Ee = Fe(), U = Fe(o), de = zg(p), _e = Fe(!1), Re = Fe(!1);
         | 
| 1131 1131 | 
             
              Zc(() => {
         | 
| 1132 1132 | 
             
                let G = kn.init();
         | 
| 1133 | 
            -
                return G.then(( | 
| 1133 | 
            +
                return G.then((ge) => (be.current = ge) && ze(!1)).catch((ge) => (ge == null ? void 0 : ge.type) !== "cancelation" && console.error("Monaco initialization: error:", ge)), () => ae.current ? Wt() : G.cancel();
         | 
| 1134 1134 | 
             
              }), mt(() => {
         | 
| 1135 | 
            -
                var  | 
| 1136 | 
            -
                let G = ea( | 
| 1137 | 
            -
                G !== (( | 
| 1135 | 
            +
                var ge, Me, Ht, Ge;
         | 
| 1136 | 
            +
                let G = ea(be.current, s || o || "", i || u || "", p || a || "");
         | 
| 1137 | 
            +
                G !== ((ge = ae.current) == null ? void 0 : ge.getModel()) && (k && Bs.set(de, (Me = ae.current) == null ? void 0 : Me.saveViewState()), (Ht = ae.current) == null || Ht.setModel(G), k && ((Ge = ae.current) == null || Ge.restoreViewState(Bs.get(p))));
         | 
| 1138 1138 | 
             
              }, [p], K), mt(() => {
         | 
| 1139 1139 | 
             
                var G;
         | 
| 1140 1140 | 
             
                (G = ae.current) == null || G.updateOptions(v);
         | 
| 1141 1141 | 
             
              }, [v], K), mt(() => {
         | 
| 1142 | 
            -
                !ae.current || o === void 0 || (ae.current.getOption( | 
| 1142 | 
            +
                !ae.current || o === void 0 || (ae.current.getOption(be.current.editor.EditorOption.readOnly) ? ae.current.setValue(o) : o !== ae.current.getValue() && (Re.current = !0, ae.current.executeEdits("", [{ range: ae.current.getModel().getFullModelRange(), text: o, forceMoveMarkers: !0 }]), ae.current.pushUndoStop(), Re.current = !1));
         | 
| 1143 1143 | 
             
              }, [o], K), mt(() => {
         | 
| 1144 | 
            -
                var  | 
| 1145 | 
            -
                let G = ( | 
| 1146 | 
            -
                G && u && ((Me =  | 
| 1144 | 
            +
                var ge, Me;
         | 
| 1145 | 
            +
                let G = (ge = ae.current) == null ? void 0 : ge.getModel();
         | 
| 1146 | 
            +
                G && u && ((Me = be.current) == null || Me.editor.setModelLanguage(G, u));
         | 
| 1147 1147 | 
             
              }, [u], K), mt(() => {
         | 
| 1148 1148 | 
             
                var G;
         | 
| 1149 1149 | 
             
                b !== void 0 && ((G = ae.current) == null || G.revealLine(b));
         | 
| 1150 1150 | 
             
              }, [b], K), mt(() => {
         | 
| 1151 1151 | 
             
                var G;
         | 
| 1152 | 
            -
                (G =  | 
| 1152 | 
            +
                (G = be.current) == null || G.editor.setTheme(m);
         | 
| 1153 1153 | 
             
              }, [m], K);
         | 
| 1154 1154 | 
             
              let Et = La(() => {
         | 
| 1155 1155 | 
             
                var G;
         | 
| 1156 | 
            -
                if (!(!at.current || ! | 
| 1157 | 
            -
                  Ne.current( | 
| 1158 | 
            -
                  let  | 
| 1159 | 
            -
                  ae.current = (G =  | 
| 1156 | 
            +
                if (!(!at.current || !be.current) && !_e.current) {
         | 
| 1157 | 
            +
                  Ne.current(be.current);
         | 
| 1158 | 
            +
                  let ge = p || a, Me = ea(be.current, o || s || "", i || u || "", ge || "");
         | 
| 1159 | 
            +
                  ae.current = (G = be.current) == null ? void 0 : G.editor.create(at.current, { model: Me, automaticLayout: !0, ...v }, w), k && ae.current.restoreViewState(Bs.get(ge)), be.current.editor.setTheme(m), b !== void 0 && ae.current.revealLine(b), ce(!0), _e.current = !0;
         | 
| 1160 1160 | 
             
                }
         | 
| 1161 1161 | 
             
              }, [s, i, a, o, u, p, v, w, k, m, b]);
         | 
| 1162 1162 | 
             
              Dt(() => {
         | 
| 1163 | 
            -
                K && ft.current(ae.current,  | 
| 1163 | 
            +
                K && ft.current(ae.current, be.current);
         | 
| 1164 1164 | 
             
              }, [K]), Dt(() => {
         | 
| 1165 1165 | 
             
                !Z && !K && Et();
         | 
| 1166 1166 | 
             
              }, [Z, K, Et]), U.current = o, Dt(() => {
         | 
| 1167 | 
            -
                var G,  | 
| 1168 | 
            -
                K && le && ((G = Ee.current) == null || G.dispose(), Ee.current = ( | 
| 1167 | 
            +
                var G, ge;
         | 
| 1168 | 
            +
                K && le && ((G = Ee.current) == null || G.dispose(), Ee.current = (ge = ae.current) == null ? void 0 : ge.onDidChangeModelContent((Me) => {
         | 
| 1169 1169 | 
             
                  Re.current || le(ae.current.getValue(), Me);
         | 
| 1170 1170 | 
             
                }));
         | 
| 1171 1171 | 
             
              }, [K, le]), Dt(() => {
         | 
| 1172 1172 | 
             
                if (K) {
         | 
| 1173 | 
            -
                  let G =  | 
| 1173 | 
            +
                  let G = be.current.editor.onDidChangeMarkers((ge) => {
         | 
| 1174 1174 | 
             
                    var Ht;
         | 
| 1175 1175 | 
             
                    let Me = (Ht = ae.current.getModel()) == null ? void 0 : Ht.uri;
         | 
| 1176 | 
            -
                    if (Me &&  | 
| 1177 | 
            -
                      let Ge =  | 
| 1176 | 
            +
                    if (Me && ge.find((Ge) => Ge.path === Me.path)) {
         | 
| 1177 | 
            +
                      let Ge = be.current.editor.getModelMarkers({ resource: Me });
         | 
| 1178 1178 | 
             
                      ee == null || ee(Ge);
         | 
| 1179 1179 | 
             
                    }
         | 
| 1180 1180 | 
             
                  });
         | 
| @@ -1186,8 +1186,8 @@ function Ng({ defaultValue: s, defaultLanguage: i, defaultPath: a, value: o, lan | |
| 1186 1186 | 
             
                };
         | 
| 1187 1187 | 
             
              }, [K, ee]);
         | 
| 1188 1188 | 
             
              function Wt() {
         | 
| 1189 | 
            -
                var G,  | 
| 1190 | 
            -
                (G = Ee.current) == null || G.dispose(), z ? k && Bs.set(p, ae.current.saveViewState()) : ( | 
| 1189 | 
            +
                var G, ge;
         | 
| 1190 | 
            +
                (G = Ee.current) == null || G.dispose(), z ? k && Bs.set(p, ae.current.saveViewState()) : (ge = ae.current.getModel()) == null || ge.dispose(), ae.current.dispose();
         | 
| 1191 1191 | 
             
              }
         | 
| 1192 1192 | 
             
              return yr.createElement(Qc, { width: R, height: F, isEditorReady: K, loading: g, _ref: at, className: B, wrapperProps: re });
         | 
| 1193 1193 | 
             
            }
         | 
| @@ -59764,13 +59764,13 @@ var Gs = { exports: {} }; | |
| 59764 59764 | 
             
            Gs.exports;
         | 
| 59765 59765 | 
             
            (function(s, i) {
         | 
| 59766 59766 | 
             
              (function() {
         | 
| 59767 | 
            -
                var a, o = "4.17.21", u = 200, p = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", b = "Invalid `variable` option passed into `_.template`", g = "__lodash_hash_undefined__", v = 500, w = "__lodash_placeholder__", k = 1, z = 2, R = 4, F = 1, B = 2, re = 1, E = 2, M = 4, le = 8, ee = 16, K = 32, ce = 64, Z = 128, ze = 256,  | 
| 59767 | 
            +
                var a, o = "4.17.21", u = 200, p = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", b = "Invalid `variable` option passed into `_.template`", g = "__lodash_hash_undefined__", v = 500, w = "__lodash_placeholder__", k = 1, z = 2, R = 4, F = 1, B = 2, re = 1, E = 2, M = 4, le = 8, ee = 16, K = 32, ce = 64, Z = 128, ze = 256, be = 512, ae = 30, at = "...", ft = 800, Ne = 16, Ee = 1, U = 2, de = 3, _e = 1 / 0, Re = 9007199254740991, Et = 17976931348623157e292, Wt = NaN, G = 4294967295, ge = G - 1, Me = G >>> 1, Ht = [
         | 
| 59768 59768 | 
             
                  ["ary", Z],
         | 
| 59769 59769 | 
             
                  ["bind", re],
         | 
| 59770 59770 | 
             
                  ["bindKey", E],
         | 
| 59771 59771 | 
             
                  ["curry", le],
         | 
| 59772 59772 | 
             
                  ["curryRight", ee],
         | 
| 59773 | 
            -
                  ["flip",  | 
| 59773 | 
            +
                  ["flip", be],
         | 
| 59774 59774 | 
             
                  ["partial", K],
         | 
| 59775 59775 | 
             
                  ["partialRight", ce],
         | 
| 59776 59776 | 
             
                  ["rearg", ze]
         | 
| @@ -61089,7 +61089,7 @@ Gs.exports; | |
| 61089 61089 | 
             
                        A ? H = W && (n || P) : h ? H = W && P && (n || !L) : x ? H = W && P && !L && (n || !Q) : L || Q ? H = !1 : H = n ? C <= t : C < t;
         | 
| 61090 61090 | 
             
                      H ? l = q + 1 : d = q;
         | 
| 61091 61091 | 
             
                    }
         | 
| 61092 | 
            -
                    return We(d,  | 
| 61092 | 
            +
                    return We(d, ge);
         | 
| 61093 61093 | 
             
                  }
         | 
| 61094 61094 | 
             
                  function Bo(e, t) {
         | 
| 61095 61095 | 
             
                    for (var r = -1, n = e.length, l = 0, d = []; ++r < n; ) {
         | 
| @@ -61112,7 +61112,7 @@ Gs.exports; | |
| 61112 61112 | 
             
                    if (ct(e))
         | 
| 61113 61113 | 
             
                      return bo ? bo.call(e) : "";
         | 
| 61114 61114 | 
             
                    var t = e + "";
         | 
| 61115 | 
            -
                    return t == "0" && 1 / e == - | 
| 61115 | 
            +
                    return t == "0" && 1 / e == -_e ? "-0" : t;
         | 
| 61116 61116 | 
             
                  }
         | 
| 61117 61117 | 
             
                  function dr(e, t, r) {
         | 
| 61118 61118 | 
             
                    var n = -1, l = es, d = e.length, f = !0, h = [], x = h;
         | 
| @@ -61419,7 +61419,7 @@ Gs.exports; | |
| 61419 61419 | 
             
                    });
         | 
| 61420 61420 | 
             
                  }
         | 
| 61421 61421 | 
             
                  function Is(e, t, r, n, l, d, f, h, x, A) {
         | 
| 61422 | 
            -
                    var q = t & Z, C = t & re, P = t & E, L = t & (le | ee), W = t &  | 
| 61422 | 
            +
                    var q = t & Z, C = t & re, P = t & E, L = t & (le | ee), W = t & be, Q = P ? a : Da(e);
         | 
| 61423 61423 | 
             
                    function H() {
         | 
| 61424 61424 | 
             
                      for (var se = arguments.length, oe = T(se), ut = se; ut--; )
         | 
| 61425 61425 | 
             
                        oe[ut] = arguments[ut];
         | 
| @@ -61529,7 +61529,7 @@ Gs.exports; | |
| 61529 61529 | 
             
                      return t(r);
         | 
| 61530 61530 | 
             
                    };
         | 
| 61531 61531 | 
             
                  }
         | 
| 61532 | 
            -
                  var Hp = $r && 1 / rs(new $r([, -0]))[1] ==  | 
| 61532 | 
            +
                  var Hp = $r && 1 / rs(new $r([, -0]))[1] == _e ? function(e) {
         | 
| 61533 61533 | 
             
                    return new $r(e);
         | 
| 61534 61534 | 
             
                  } : pn;
         | 
| 61535 61535 | 
             
                  function il(e) {
         | 
| @@ -61973,7 +61973,7 @@ Gs.exports; | |
| 61973 61973 | 
             
                    if (typeof e == "string" || ct(e))
         | 
| 61974 61974 | 
             
                      return e;
         | 
| 61975 61975 | 
             
                    var t = e + "";
         | 
| 61976 | 
            -
                    return t == "0" && 1 / e == - | 
| 61976 | 
            +
                    return t == "0" && 1 / e == -_e ? "-0" : t;
         | 
| 61977 61977 | 
             
                  }
         | 
| 61978 61978 | 
             
                  function qr(e) {
         | 
| 61979 61979 | 
             
                    if (e != null) {
         | 
| @@ -62071,7 +62071,7 @@ Gs.exports; | |
| 62071 62071 | 
             
                  }
         | 
| 62072 62072 | 
             
                  function vm(e) {
         | 
| 62073 62073 | 
             
                    var t = e == null ? 0 : e.length;
         | 
| 62074 | 
            -
                    return t ? Ue(e,  | 
| 62074 | 
            +
                    return t ? Ue(e, _e) : [];
         | 
| 62075 62075 | 
             
                  }
         | 
| 62076 62076 | 
             
                  function wm(e, t) {
         | 
| 62077 62077 | 
             
                    var r = e == null ? 0 : e.length;
         | 
| @@ -62346,7 +62346,7 @@ Gs.exports; | |
| 62346 62346 | 
             
                    return Ue(Ns(e, t), 1);
         | 
| 62347 62347 | 
             
                  }
         | 
| 62348 62348 | 
             
                  function Af(e, t) {
         | 
| 62349 | 
            -
                    return Ue(Ns(e, t),  | 
| 62349 | 
            +
                    return Ue(Ns(e, t), _e);
         | 
| 62350 62350 | 
             
                  }
         | 
| 62351 62351 | 
             
                  function qf(e, t, r) {
         | 
| 62352 62352 | 
             
                    return r = r === a ? 1 : V(r), Ue(Ns(e, t), r);
         | 
| @@ -62529,7 +62529,7 @@ Gs.exports; | |
| 62529 62529 | 
             
                    return Io(e, Tt(t) || 0, r);
         | 
| 62530 62530 | 
             
                  });
         | 
| 62531 62531 | 
             
                  function Xf(e) {
         | 
| 62532 | 
            -
                    return Qt(e,  | 
| 62532 | 
            +
                    return Qt(e, be);
         | 
| 62533 62533 | 
             
                  }
         | 
| 62534 62534 | 
             
                  function Os(e, t) {
         | 
| 62535 62535 | 
             
                    if (typeof e != "function" || t != null && typeof t != "function")
         | 
| @@ -62776,7 +62776,7 @@ Gs.exports; | |
| 62776 62776 | 
             
                  function tr(e) {
         | 
| 62777 62777 | 
             
                    if (!e)
         | 
| 62778 62778 | 
             
                      return e === 0 ? e : 0;
         | 
| 62779 | 
            -
                    if (e = Tt(e), e ===  | 
| 62779 | 
            +
                    if (e = Tt(e), e === _e || e === -_e) {
         | 
| 62780 62780 | 
             
                      var t = e < 0 ? -1 : 1;
         | 
| 62781 62781 | 
             
                      return t * Et;
         | 
| 62782 62782 | 
             
                    }
         | 
| @@ -64397,8 +64397,8 @@ _r.prototype = { | |
| 64397 64397 | 
             
                    ce && (F[ee - 1] = void 0);
         | 
| 64398 64398 | 
             
                    var ze = !1;
         | 
| 64399 64399 | 
             
                    if (Z) {
         | 
| 64400 | 
            -
                      var  | 
| 64401 | 
            -
                      ze = Z && 0 <=  | 
| 64400 | 
            +
                      var be = Z.oldPos - ee;
         | 
| 64401 | 
            +
                      ze = Z && 0 <= be && be < g;
         | 
| 64402 64402 | 
             
                    }
         | 
| 64403 64403 | 
             
                    var ae = ce && ce.oldPos + 1 < v;
         | 
| 64404 64404 | 
             
                    if (!ze && !ae) {
         | 
| @@ -65078,11 +65078,11 @@ function Jr(s, i, a) { | |
| 65078 65078 | 
             
            function Ab() {
         | 
| 65079 65079 | 
             
              return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
         | 
| 65080 65080 | 
             
            }
         | 
| 65081 | 
            -
            const mu = new Worker(new URL("" + new URL("assets/scriptsRunWorker- | 
| 65081 | 
            +
            const mu = new Worker(new URL("" + new URL("assets/scriptsRunWorker-C8unrW65.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
         | 
| 65082 65082 | 
             
            mu.onerror = (s) => {
         | 
| 65083 65083 | 
             
              console.error(s);
         | 
| 65084 65084 | 
             
            };
         | 
| 65085 | 
            -
            const fu = qn(mu), qb = qn(new Worker(new URL("" + new URL("assets/parserTccWorker- | 
| 65085 | 
            +
            const fu = qn(mu), qb = qn(new Worker(new URL("" + new URL("assets/parserTccWorker-DngDuQ-v.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser TccScript Server" }));
         | 
| 65086 65086 | 
             
            async function Cb(s, i = !1) {
         | 
| 65087 65087 | 
             
              const { functions: a, types: o, constants: u, variables: p, methods: m } = Ut;
         | 
| 65088 65088 | 
             
              return await qb(s, i, { functions: Object.fromEntries(a), methods: Object.fromEntries(m), types: Object.fromEntries(o), constants: Object.fromEntries(u), variables: Object.fromEntries(p) });
         | 
| @@ -65273,7 +65273,7 @@ const Pb = (s, i) => { | |
| 65273 65273 | 
             
              }, [k]), Dt(() => {
         | 
| 65274 65274 | 
             
                var E;
         | 
| 65275 65275 | 
             
                a && ((E = z.current) == null || E.setEditorLayout(Number(a)));
         | 
| 65276 | 
            -
              }, [a]);
         | 
| 65276 | 
            +
              }, [a, z.current]);
         | 
| 65277 65277 | 
             
              function R(E, M) {
         | 
| 65278 65278 | 
             
                var ee, K;
         | 
| 65279 65279 | 
             
                ta.initBuiltinsTrees(), z.current = new yb(E, M, k), m && ((ee = z.current) == null || ee.addDiffDecorations()), Hg(E), (K = z.current) == null || K.setEditorLayout(Number(a));
         | 
| @@ -65284,25 +65284,25 @@ const Pb = (s, i) => { | |
| 65284 65284 | 
             
              }
         | 
| 65285 65285 | 
             
              const F = La(async (E) => {
         | 
| 65286 65286 | 
             
                var de;
         | 
| 65287 | 
            -
                const M = Date.now(), { errors: le, functions: ee, methods: K, types: ce, variables: Z, overloadsFuncs: ze, preParserCode:  | 
| 65287 | 
            +
                const M = Date.now(), { errors: le, functions: ee, methods: K, types: ce, variables: Z, overloadsFuncs: ze, preParserCode: be } = await Cb(E), ae = new Map(Object.entries(ee)), at = new Map(Object.entries(K)), ft = new Map(Object.entries(ce)), Ne = new Map(Object.entries(Z));
         | 
| 65288 65288 | 
             
                Ua.setUserDefined({
         | 
| 65289 65289 | 
             
                  functions: ae,
         | 
| 65290 65290 | 
             
                  methods: at,
         | 
| 65291 65291 | 
             
                  types: ft,
         | 
| 65292 65292 | 
             
                  variables: Ne
         | 
| 65293 65293 | 
             
                }, ze), ta.setUserDefind(ae, ft, Ne, at);
         | 
| 65294 | 
            -
                const Ee = le.map(( | 
| 65295 | 
            -
                  ... | 
| 65296 | 
            -
                  severity:  | 
| 65294 | 
            +
                const Ee = le.map((_e) => ({
         | 
| 65295 | 
            +
                  ..._e,
         | 
| 65296 | 
            +
                  severity: _e.type || D_.Error
         | 
| 65297 65297 | 
             
                }));
         | 
| 65298 65298 | 
             
                if (b)
         | 
| 65299 65299 | 
             
                  return;
         | 
| 65300 65300 | 
             
                try {
         | 
| 65301 | 
            -
                  const  | 
| 65302 | 
            -
                  v && v( | 
| 65303 | 
            -
                } catch ( | 
| 65304 | 
            -
                  console.log( | 
| 65305 | 
            -
                    message: `Runtime Error: ${ | 
| 65301 | 
            +
                  const _e = await Sb(be, { isPreParser: !0 });
         | 
| 65302 | 
            +
                  console.log(_e), v && v(_e);
         | 
| 65303 | 
            +
                } catch (_e) {
         | 
| 65304 | 
            +
                  console.log(_e, "==================error- Run TccScript Server"), le.push({
         | 
| 65305 | 
            +
                    message: `Runtime Error: ${_e.message}`,
         | 
| 65306 65306 | 
             
                    startLineNumber: 0,
         | 
| 65307 65307 | 
             
                    endLineNumber: 0,
         | 
| 65308 65308 | 
             
                    startColumn: 0,
         |