@guihz/trading-vue-editor-tes 0.0.20 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,10 +14,10 @@ import BuildInLine, { ILineArgs, Line } from "./line";
14
14
  import BuildInLinefill, { TLinefill, Linefill } from "./linefill";
15
15
  import BuildInBox, { IBoxArgs, Box } from "./box";
16
16
  import BuildInTable, { ITableArgs, Table } from "./table";
17
- import Strategy from './strategy';
17
+ import Strategy, { IOrder } from './strategy';
18
18
  import { Log } from './log';
19
19
  import { Runtime } from './runtime';
20
20
  export { TccErrorListener } from './errorListener';
21
21
  export type { IColorArgs } from './color';
22
22
  export { BuildInArray, BuildInMath, BuildInTa, BuildInInput, BuildInColor, BuildInMatrix, ChartPoint, Point, BuildInTimeframe, BuildInStr, BuildInMap, PseudoArray, VInputType, BuildInLabel, BuildInPolyline, BuildInLine, Label, Polyline, Line, BuildInLinefill, Linefill, BuildInBox, Box, BuildInTable, Table, Log, Runtime, Strategy };
23
- export type { PartialLabelArgs, IPolyline, ILineArgs, TLinefill, IBoxArgs, ITableArgs };
23
+ export type { PartialLabelArgs, IPolyline, ILineArgs, TLinefill, IBoxArgs, ITableArgs, IOrder };
@@ -35,10 +35,6 @@ interface IInputArgs {
35
35
  index?: number;
36
36
  modifyDefval?: TSimpleType;
37
37
  }
38
- interface IGruop {
39
- name?: string;
40
- inputs: IInputArgs[];
41
- }
42
38
  declare class Input {
43
39
  private _cacheData;
44
40
  private _variables;
@@ -64,7 +60,7 @@ declare class Input {
64
60
  private _cacheHandle;
65
61
  private _judgeHistoryInputs;
66
62
  private _displayVerify;
67
- getInputs(): IGruop[];
63
+ getInputs(): IInputArgs[];
68
64
  private _getGroups;
69
65
  }
70
66
  export default Input;
@@ -55,12 +55,13 @@ interface IOrderArgs {
55
55
  profit?: number;
56
56
  }
57
57
  type PlaceOrderType = 'order' | 'entry' | 'exit' | 'close' | 'close_all';
58
- interface IOrder extends IOrderArgs {
58
+ export interface IOrder extends IOrderArgs {
59
59
  isMarketPrice?: boolean;
60
60
  in_price: number;
61
61
  out_price?: number;
62
62
  in_time?: number;
63
63
  out_time?: number;
64
+ out_qty?: number;
64
65
  out_comment?: string;
65
66
  total_profit?: number;
66
67
  max_profit?: number;
@@ -74,6 +75,7 @@ interface IOrder extends IOrderArgs {
74
75
  isMarketPriceLimit?: boolean;
75
76
  isMarketPriceStop?: boolean;
76
77
  isCancel?: boolean;
78
+ close_qty?: number;
77
79
  }
78
80
  type CloseEntriesRuleType = 'FIFO' | 'ANY';
79
81
  export default class Strategy {
@@ -86,9 +88,11 @@ export default class Strategy {
86
88
  private _mintick;
87
89
  private _funcOptions;
88
90
  constructor(variables: BuiltInVariables, options: IKeyObjectValue, mintick?: number);
91
+ get orders(): IOrder[];
92
+ get historyOrders(): IOrder[];
89
93
  get _orderProfit(): number;
90
94
  get _freezeCapital(): number;
91
- updateOptions(options: IStrategy): void;
95
+ updateOptions(options?: IStrategy): void;
92
96
  strategy(args: IStrategy): void;
93
97
  order(args: IOrderArgs): void;
94
98
  entry(args: IOrderArgs): void;
@@ -71,7 +71,7 @@ function k_() {
71
71
  }
72
72
  var oe = !1, Q = !1, ce = !1, J = !1, Se = !1, _e;
73
73
  _e = Symbol.for("react.module.reference");
74
- function ae(y) {
74
+ function re(y) {
75
75
  return !!(typeof y == "string" || typeof y == "function" || y === l || y === p || Se || y === u || y === v || y === w || J || y === O || oe || Q || ce || typeof y == "object" && y !== null && (y.$$typeof === P || y.$$typeof === D || y.$$typeof === m || y.$$typeof === b || y.$$typeof === g || // This needs to include all possible module reference object
76
76
  // types supported by any Flight configuration anywhere since
77
77
  // we don't know which Flight build this will end up being used
@@ -133,14 +133,14 @@ function k_() {
133
133
  }
134
134
  return null;
135
135
  }
136
- var Ee = Object.assign, B = 0, te, ze, Re, Et, Wt, X, ge;
136
+ var Ee = Object.assign, B = 0, ae, ze, Re, Et, Wt, X, ge;
137
137
  function Le() {
138
138
  }
139
139
  Le.__reactDisabledLog = !0;
140
140
  function Ht() {
141
141
  {
142
142
  if (B === 0) {
143
- te = console.log, ze = console.info, Re = console.warn, Et = console.error, Wt = console.group, X = console.groupCollapsed, ge = console.groupEnd;
143
+ ae = console.log, ze = console.info, Re = console.warn, Et = console.error, Wt = console.group, X = console.groupCollapsed, ge = console.groupEnd;
144
144
  var y = {
145
145
  configurable: !0,
146
146
  enumerable: !0,
@@ -170,7 +170,7 @@ function k_() {
170
170
  };
171
171
  Object.defineProperties(console, {
172
172
  log: Ee({}, y, {
173
- value: te
173
+ value: ae
174
174
  }),
175
175
  info: Ee({}, y, {
176
176
  value: ze
@@ -262,17 +262,17 @@ function k_() {
262
262
  }
263
263
  } catch (Ze) {
264
264
  if (Ze && $ && typeof Ze.stack == "string") {
265
- for (var re = Ze.stack.split(`
265
+ for (var te = Ze.stack.split(`
266
266
  `), Be = $.stack.split(`
267
- `), Te = re.length - 1, ke = Be.length - 1; Te >= 1 && ke >= 0 && re[Te] !== Be[ke]; )
267
+ `), Te = te.length - 1, ke = Be.length - 1; Te >= 1 && ke >= 0 && te[Te] !== Be[ke]; )
268
268
  ke--;
269
269
  for (; Te >= 1 && ke >= 0; Te--, ke--)
270
- if (re[Te] !== Be[ke]) {
270
+ if (te[Te] !== Be[ke]) {
271
271
  if (Te !== 1 || ke !== 1)
272
272
  do
273
- if (Te--, ke--, ke < 0 || re[Te] !== Be[ke]) {
273
+ if (Te--, ke--, ke < 0 || te[Te] !== Be[ke]) {
274
274
  var Qe = `
275
- ` + re[Te].replace(" at new ", " at ");
275
+ ` + te[Te].replace(" at new ", " at ");
276
276
  return y.displayName && Qe.includes("<anonymous>") && (Qe = Qe.replace("<anonymous>", y.displayName)), typeof y == "function" && zr.set(y, Qe), Qe;
277
277
  }
278
278
  while (Te >= 1 && ke >= 0);
@@ -334,17 +334,17 @@ function k_() {
334
334
  var pe = Function.call.bind(Pr);
335
335
  for (var ie in y)
336
336
  if (pe(y, ie)) {
337
- var re = void 0;
337
+ var te = void 0;
338
338
  try {
339
339
  if (typeof y[ie] != "function") {
340
340
  var Be = Error(($ || "React class") + ": " + z + " type `" + ie + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof y[ie] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
341
  throw Be.name = "Invariant Violation", Be;
342
342
  }
343
- re = y[ie](S, ie, $, z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
+ te = y[ie](S, ie, $, z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
344
  } catch (Te) {
345
- re = Te;
345
+ te = Te;
346
346
  }
347
- re && !(re instanceof Error) && (Or(ue), H("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", z, ie, typeof re), Or(null)), re instanceof Error && !(re.message in yt) && (yt[re.message] = !0, Or(ue), H("Failed %s type: %s", z, re.message), Or(null));
347
+ te && !(te instanceof Error) && (Or(ue), H("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", z, ie, typeof te), Or(null)), te instanceof Error && !(te.message in yt) && (yt[te.message] = !0, Or(ue), H("Failed %s type: %s", z, te.message), Or(null));
348
348
  }
349
349
  }
350
350
  }
@@ -424,7 +424,7 @@ function k_() {
424
424
  }
425
425
  }
426
426
  var ca = function(y, S, z, $, ue, pe, ie) {
427
- var re = {
427
+ var te = {
428
428
  // This tag allows us to uniquely identify this as a React Element
429
429
  $$typeof: i,
430
430
  // Built-in properties that belong on the element
@@ -435,27 +435,27 @@ function k_() {
435
435
  // Record the component responsible for creating this element.
436
436
  _owner: pe
437
437
  };
438
- return re._store = {}, Object.defineProperty(re._store, "validated", {
438
+ return te._store = {}, Object.defineProperty(te._store, "validated", {
439
439
  configurable: !1,
440
440
  enumerable: !1,
441
441
  writable: !0,
442
442
  value: !1
443
- }), Object.defineProperty(re, "_self", {
443
+ }), Object.defineProperty(te, "_self", {
444
444
  configurable: !1,
445
445
  enumerable: !1,
446
446
  writable: !1,
447
447
  value: $
448
- }), Object.defineProperty(re, "_source", {
448
+ }), Object.defineProperty(te, "_source", {
449
449
  configurable: !1,
450
450
  enumerable: !1,
451
451
  writable: !1,
452
452
  value: ue
453
- }), Object.freeze && (Object.freeze(re.props), Object.freeze(re)), re;
453
+ }), Object.freeze && (Object.freeze(te.props), Object.freeze(te)), te;
454
454
  };
455
455
  function Qs(y, S, z, $, ue) {
456
456
  {
457
- var pe, ie = {}, re = null, Be = null;
458
- z !== void 0 && (Wa(z), re = "" + z), ia(S) && (Wa(S.key), re = "" + S.key), sa(S) && (Be = S.ref, na(S, ue));
457
+ var pe, ie = {}, te = null, Be = null;
458
+ z !== void 0 && (Wa(z), te = "" + z), ia(S) && (Wa(S.key), te = "" + S.key), sa(S) && (Be = S.ref, na(S, ue));
459
459
  for (pe in S)
460
460
  Pr.call(S, pe) && !ir.hasOwnProperty(pe) && (ie[pe] = S[pe]);
461
461
  if (y && y.defaultProps) {
@@ -463,11 +463,11 @@ function k_() {
463
463
  for (pe in Te)
464
464
  ie[pe] === void 0 && (ie[pe] = Te[pe]);
465
465
  }
466
- if (re || Be) {
466
+ if (te || Be) {
467
467
  var ke = typeof y == "function" ? y.displayName || y.name || "Unknown" : y;
468
- re && oa(ie, ke), Be && la(ie, ke);
468
+ te && oa(ie, ke), Be && la(ie, ke);
469
469
  }
470
- return ca(y, re, Be, ue, $, Dt.current, ie);
470
+ return ca(y, te, Be, ue, $, Dt.current, ie);
471
471
  }
472
472
  }
473
473
  var ua = Y.ReactCurrentOwner, Ha = Y.ReactDebugCurrentFrame;
@@ -590,14 +590,14 @@ Check the top-level render call using <` + z + ">.");
590
590
  }
591
591
  function Va(y, S, z, $, ue, pe) {
592
592
  {
593
- var ie = ae(y);
593
+ var ie = re(y);
594
594
  if (!ie) {
595
- var re = "";
596
- (y === void 0 || typeof y == "object" && y !== null && Object.keys(y).length === 0) && (re += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
595
+ var te = "";
596
+ (y === void 0 || typeof y == "object" && y !== null && Object.keys(y).length === 0) && (te += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
597
597
  var Be = Zs(ue);
598
- Be ? re += Be : re += $a();
598
+ Be ? te += Be : te += $a();
599
599
  var Te;
600
- y === null ? Te = "null" : Xt(y) ? Te = "array" : y !== void 0 && y.$$typeof === i ? (Te = "<" + (Oe(y.type) || "Unknown") + " />", re = " Did you accidentally export a JSX literal instead of a component?") : Te = typeof y, H("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Te, re);
600
+ y === null ? Te = "null" : Xt(y) ? Te = "array" : y !== void 0 && y.$$typeof === i ? (Te = "<" + (Oe(y.type) || "Unknown") + " />", te = " Did you accidentally export a JSX literal instead of a component?") : Te = typeof y, H("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Te, te);
601
601
  }
602
602
  var ke = Qs(y, S, z, ue, pe);
603
603
  if (ke == null)
@@ -1053,29 +1053,29 @@ function Zc(s, i) {
1053
1053
  return s.Uri.parse(i);
1054
1054
  }
1055
1055
  function Dg({ original: s, modified: i, language: a, originalLanguage: l, modifiedLanguage: u, originalModelPath: p, modifiedModelPath: m, keepCurrentOriginalModel: b = !1, keepCurrentModifiedModel: g = !1, theme: v = "light", loading: w = "Loading...", options: D = {}, height: P = "100%", width: O = "100%", className: M, wrapperProps: F = {}, beforeMount: R = Ea, onMount: Y = Ea }) {
1056
- let [H, fe] = Ra(!1), [oe, Q] = Ra(!0), ce = Fe(null), J = Fe(null), Se = Fe(null), _e = Fe(Y), ae = Fe(R), at = Fe(!1);
1056
+ let [H, fe] = Ra(!1), [oe, Q] = Ra(!0), ce = Fe(null), J = Fe(null), Se = Fe(null), _e = Fe(Y), re = Fe(R), at = Fe(!1);
1057
1057
  Qc(() => {
1058
1058
  let B = Dn.init();
1059
- return B.then((te) => (J.current = te) && Q(!1)).catch((te) => (te == null ? void 0 : te.type) !== "cancelation" && console.error("Monaco initialization: error:", te)), () => ce.current ? Ee() : B.cancel();
1059
+ return B.then((ae) => (J.current = ae) && Q(!1)).catch((ae) => (ae == null ? void 0 : ae.type) !== "cancelation" && console.error("Monaco initialization: error:", ae)), () => ce.current ? Ee() : B.cancel();
1060
1060
  }), mt(() => {
1061
1061
  if (ce.current && J.current) {
1062
- let B = ce.current.getOriginalEditor(), te = ea(J.current, s || "", l || a || "text", p || "");
1063
- te !== B.getModel() && B.setModel(te);
1062
+ let B = ce.current.getOriginalEditor(), ae = ea(J.current, s || "", l || a || "text", p || "");
1063
+ ae !== B.getModel() && B.setModel(ae);
1064
1064
  }
1065
1065
  }, [p], H), mt(() => {
1066
1066
  if (ce.current && J.current) {
1067
- let B = ce.current.getModifiedEditor(), te = ea(J.current, i || "", u || a || "text", m || "");
1068
- te !== B.getModel() && B.setModel(te);
1067
+ let B = ce.current.getModifiedEditor(), ae = ea(J.current, i || "", u || a || "text", m || "");
1068
+ ae !== B.getModel() && B.setModel(ae);
1069
1069
  }
1070
1070
  }, [m], H), mt(() => {
1071
1071
  let B = ce.current.getModifiedEditor();
1072
1072
  B.getOption(J.current.editor.EditorOption.readOnly) ? B.setValue(i || "") : i !== B.getValue() && (B.executeEdits("", [{ range: B.getModel().getFullModelRange(), text: i || "", forceMoveMarkers: !0 }]), B.pushUndoStop());
1073
1073
  }, [i], H), mt(() => {
1074
- var B, te;
1075
- (te = (B = ce.current) == null ? void 0 : B.getModel()) == null || te.original.setValue(s || "");
1074
+ var B, ae;
1075
+ (ae = (B = ce.current) == null ? void 0 : B.getModel()) == null || ae.original.setValue(s || "");
1076
1076
  }, [s], H), mt(() => {
1077
- let { original: B, modified: te } = ce.current.getModel();
1078
- J.current.editor.setModelLanguage(B, l || a || "text"), J.current.editor.setModelLanguage(te, u || a || "text");
1077
+ let { original: B, modified: ae } = ce.current.getModel();
1078
+ J.current.editor.setModelLanguage(B, l || a || "text"), J.current.editor.setModelLanguage(ae, u || a || "text");
1079
1079
  }, [a, l, u], H), mt(() => {
1080
1080
  var B;
1081
1081
  (B = J.current) == null || B.editor.setTheme(v);
@@ -1087,9 +1087,9 @@ function Dg({ original: s, modified: i, language: a, originalLanguage: l, modifi
1087
1087
  var ze;
1088
1088
  if (!J.current)
1089
1089
  return;
1090
- ae.current(J.current);
1091
- let B = ea(J.current, s || "", l || a || "text", p || ""), te = ea(J.current, i || "", u || a || "text", m || "");
1092
- (ze = ce.current) == null || ze.setModel({ original: B, modified: te });
1090
+ re.current(J.current);
1091
+ let B = ea(J.current, s || "", l || a || "text", p || ""), ae = ea(J.current, i || "", u || a || "text", m || "");
1092
+ (ze = ce.current) == null || ze.setModel({ original: B, modified: ae });
1093
1093
  }, [a, i, u, s, l, p, m]), Oe = La(() => {
1094
1094
  var B;
1095
1095
  !at.current && Se.current && (ce.current = J.current.editor.createDiffEditor(Se.current, { automaticLayout: !0, ...D }), ft(), (B = J.current) == null || B.editor.setTheme(v), fe(!0), at.current = !0);
@@ -1100,8 +1100,8 @@ function Dg({ original: s, modified: i, language: a, originalLanguage: l, modifi
1100
1100
  !oe && !H && Oe();
1101
1101
  }, [oe, H, Oe]);
1102
1102
  function Ee() {
1103
- var te, ze, Re, Et;
1104
- let B = (te = ce.current) == null ? void 0 : te.getModel();
1103
+ var ae, ze, Re, Et;
1104
+ let B = (ae = ce.current) == null ? void 0 : ae.getModel();
1105
1105
  b || ((ze = B == null ? void 0 : B.original) == null || ze.dispose()), g || ((Re = B == null ? void 0 : B.modified) == null || Re.dispose()), (Et = ce.current) == null || Et.dispose();
1106
1106
  }
1107
1107
  return yr.createElement(Vc, { width: O, height: P, isEditorReady: H, loading: w, _ref: Se, className: M, wrapperProps: F });
@@ -1115,26 +1115,26 @@ function qg(s) {
1115
1115
  }
1116
1116
  var Cg = qg, Fs = /* @__PURE__ */ new Map();
1117
1117
  function Sg({ defaultValue: s, defaultLanguage: i, defaultPath: a, value: l, language: u, path: p, theme: m = "light", line: b, loading: g = "Loading...", options: v = {}, overrideServices: w = {}, saveViewState: D = !0, keepCurrentModel: P = !1, width: O = "100%", height: M = "100%", className: F, wrapperProps: R = {}, beforeMount: Y = Ea, onMount: H = Ea, onChange: fe, onValidate: oe = Ea }) {
1118
- let [Q, ce] = Ra(!1), [J, Se] = Ra(!0), _e = Fe(null), ae = Fe(null), at = Fe(null), ft = Fe(H), Oe = Fe(Y), Ee = Fe(), B = Fe(l), te = Cg(p), ze = Fe(!1), Re = Fe(!1);
1118
+ let [Q, ce] = Ra(!1), [J, Se] = Ra(!0), _e = Fe(null), re = Fe(null), at = Fe(null), ft = Fe(H), Oe = Fe(Y), Ee = Fe(), B = Fe(l), ae = Cg(p), ze = Fe(!1), Re = Fe(!1);
1119
1119
  Qc(() => {
1120
1120
  let X = Dn.init();
1121
- return X.then((ge) => (_e.current = ge) && Se(!1)).catch((ge) => (ge == null ? void 0 : ge.type) !== "cancelation" && console.error("Monaco initialization: error:", ge)), () => ae.current ? Wt() : X.cancel();
1121
+ return X.then((ge) => (_e.current = ge) && Se(!1)).catch((ge) => (ge == null ? void 0 : ge.type) !== "cancelation" && console.error("Monaco initialization: error:", ge)), () => re.current ? Wt() : X.cancel();
1122
1122
  }), mt(() => {
1123
1123
  var ge, Le, Ht, Xe;
1124
1124
  let X = ea(_e.current, s || l || "", i || u || "", p || a || "");
1125
- X !== ((ge = ae.current) == null ? void 0 : ge.getModel()) && (D && Fs.set(te, (Le = ae.current) == null ? void 0 : Le.saveViewState()), (Ht = ae.current) == null || Ht.setModel(X), D && ((Xe = ae.current) == null || Xe.restoreViewState(Fs.get(p))));
1125
+ X !== ((ge = re.current) == null ? void 0 : ge.getModel()) && (D && Fs.set(ae, (Le = re.current) == null ? void 0 : Le.saveViewState()), (Ht = re.current) == null || Ht.setModel(X), D && ((Xe = re.current) == null || Xe.restoreViewState(Fs.get(p))));
1126
1126
  }, [p], Q), mt(() => {
1127
1127
  var X;
1128
- (X = ae.current) == null || X.updateOptions(v);
1128
+ (X = re.current) == null || X.updateOptions(v);
1129
1129
  }, [v], Q), mt(() => {
1130
- !ae.current || l === void 0 || (ae.current.getOption(_e.current.editor.EditorOption.readOnly) ? ae.current.setValue(l) : l !== ae.current.getValue() && (Re.current = !0, ae.current.executeEdits("", [{ range: ae.current.getModel().getFullModelRange(), text: l, forceMoveMarkers: !0 }]), ae.current.pushUndoStop(), Re.current = !1));
1130
+ !re.current || l === void 0 || (re.current.getOption(_e.current.editor.EditorOption.readOnly) ? re.current.setValue(l) : l !== re.current.getValue() && (Re.current = !0, re.current.executeEdits("", [{ range: re.current.getModel().getFullModelRange(), text: l, forceMoveMarkers: !0 }]), re.current.pushUndoStop(), Re.current = !1));
1131
1131
  }, [l], Q), mt(() => {
1132
1132
  var ge, Le;
1133
- let X = (ge = ae.current) == null ? void 0 : ge.getModel();
1133
+ let X = (ge = re.current) == null ? void 0 : ge.getModel();
1134
1134
  X && u && ((Le = _e.current) == null || Le.editor.setModelLanguage(X, u));
1135
1135
  }, [u], Q), mt(() => {
1136
1136
  var X;
1137
- b !== void 0 && ((X = ae.current) == null || X.revealLine(b));
1137
+ b !== void 0 && ((X = re.current) == null || X.revealLine(b));
1138
1138
  }, [b], Q), mt(() => {
1139
1139
  var X;
1140
1140
  (X = _e.current) == null || X.editor.setTheme(m);
@@ -1144,23 +1144,23 @@ function Sg({ defaultValue: s, defaultLanguage: i, defaultPath: a, value: l, lan
1144
1144
  if (!(!at.current || !_e.current) && !ze.current) {
1145
1145
  Oe.current(_e.current);
1146
1146
  let ge = p || a, Le = ea(_e.current, l || s || "", i || u || "", ge || "");
1147
- ae.current = (X = _e.current) == null ? void 0 : X.editor.create(at.current, { model: Le, automaticLayout: !0, ...v }, w), D && ae.current.restoreViewState(Fs.get(ge)), _e.current.editor.setTheme(m), b !== void 0 && ae.current.revealLine(b), ce(!0), ze.current = !0;
1147
+ re.current = (X = _e.current) == null ? void 0 : X.editor.create(at.current, { model: Le, automaticLayout: !0, ...v }, w), D && re.current.restoreViewState(Fs.get(ge)), _e.current.editor.setTheme(m), b !== void 0 && re.current.revealLine(b), ce(!0), ze.current = !0;
1148
1148
  }
1149
1149
  }, [s, i, a, l, u, p, v, w, D, m, b]);
1150
1150
  Ut(() => {
1151
- Q && ft.current(ae.current, _e.current);
1151
+ Q && ft.current(re.current, _e.current);
1152
1152
  }, [Q]), Ut(() => {
1153
1153
  !J && !Q && Et();
1154
1154
  }, [J, Q, Et]), B.current = l, Ut(() => {
1155
1155
  var X, ge;
1156
- Q && fe && ((X = Ee.current) == null || X.dispose(), Ee.current = (ge = ae.current) == null ? void 0 : ge.onDidChangeModelContent((Le) => {
1157
- Re.current || fe(ae.current.getValue(), Le);
1156
+ Q && fe && ((X = Ee.current) == null || X.dispose(), Ee.current = (ge = re.current) == null ? void 0 : ge.onDidChangeModelContent((Le) => {
1157
+ Re.current || fe(re.current.getValue(), Le);
1158
1158
  }));
1159
1159
  }, [Q, fe]), Ut(() => {
1160
1160
  if (Q) {
1161
1161
  let X = _e.current.editor.onDidChangeMarkers((ge) => {
1162
1162
  var Ht;
1163
- let Le = (Ht = ae.current.getModel()) == null ? void 0 : Ht.uri;
1163
+ let Le = (Ht = re.current.getModel()) == null ? void 0 : Ht.uri;
1164
1164
  if (Le && ge.find((Xe) => Xe.path === Le.path)) {
1165
1165
  let Xe = _e.current.editor.getModelMarkers({ resource: Le });
1166
1166
  oe == null || oe(Xe);
@@ -1175,7 +1175,7 @@ function Sg({ defaultValue: s, defaultLanguage: i, defaultPath: a, value: l, lan
1175
1175
  }, [Q, oe]);
1176
1176
  function Wt() {
1177
1177
  var X, ge;
1178
- (X = Ee.current) == null || X.dispose(), P ? D && Fs.set(p, ae.current.saveViewState()) : (ge = ae.current.getModel()) == null || ge.dispose(), ae.current.dispose();
1178
+ (X = Ee.current) == null || X.dispose(), P ? D && Fs.set(p, re.current.saveViewState()) : (ge = re.current.getModel()) == null || ge.dispose(), re.current.dispose();
1179
1179
  }
1180
1180
  return yr.createElement(Vc, { width: O, height: M, isEditorReady: Q, loading: g, _ref: at, className: F, wrapperProps: R });
1181
1181
  }
@@ -59744,7 +59744,7 @@ var $s = { exports: {} };
59744
59744
  $s.exports;
59745
59745
  (function(s, i) {
59746
59746
  (function() {
59747
- var a, l = "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__", D = 1, P = 2, O = 4, M = 1, F = 2, R = 1, Y = 2, H = 4, fe = 8, oe = 16, Q = 32, ce = 64, J = 128, Se = 256, _e = 512, ae = 30, at = "...", ft = 800, Oe = 16, Ee = 1, B = 2, te = 3, ze = 1 / 0, Re = 9007199254740991, Et = 17976931348623157e292, Wt = NaN, X = 4294967295, ge = X - 1, Le = X >>> 1, Ht = [
59747
+ var a, l = "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__", D = 1, P = 2, O = 4, M = 1, F = 2, R = 1, Y = 2, H = 4, fe = 8, oe = 16, Q = 32, ce = 64, J = 128, Se = 256, _e = 512, re = 30, at = "...", ft = 800, Oe = 16, Ee = 1, B = 2, ae = 3, ze = 1 / 0, Re = 9007199254740991, Et = 17976931348623157e292, Wt = NaN, X = 4294967295, ge = X - 1, Le = X >>> 1, Ht = [
59748
59748
  ["ary", J],
59749
59749
  ["bind", R],
59750
59750
  ["bindKey", Y],
@@ -59754,7 +59754,7 @@ $s.exports;
59754
59754
  ["partial", Q],
59755
59755
  ["partialRight", ce],
59756
59756
  ["rearg", Se]
59757
- ], Xe = "[object Arguments]", ar = "[object Array]", ra = "[object AsyncFunction]", Rt = "[object Boolean]", $t = "[object Date]", zr = "[object DOMException]", Nr = "[object Error]", gr = "[object Function]", Ua = "[object GeneratorFunction]", st = "[object Map]", Lt = "[object Number]", Pr = "[object Null]", yt = "[object Object]", aa = "[object Promise]", Or = "[object Proxy]", br = "[object RegExp]", it = "[object Set]", Xt = "[object String]", Er = "[object Symbol]", Vs = "[object Undefined]", sr = "[object WeakMap]", Wa = "[object WeakSet]", Dt = "[object ArrayBuffer]", ir = "[object DataView]", Rr = "[object Float32Array]", Lr = "[object Float64Array]", xr = "[object Int8Array]", sa = "[object Int16Array]", ia = "[object Int32Array]", na = "[object Uint8Array]", oa = "[object Uint8ClampedArray]", la = "[object Uint16Array]", ca = "[object Uint32Array]", Qs = /\b__p \+= '';/g, ua = /\b(__p \+=) '' \+/g, Ha = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Gt = /&(?:amp|lt|gt|quot|#39);/g, Mr = /[&<>"']/g, da = RegExp(Gt.source), $a = RegExp(Mr.source), Zs = /<%-([\s\S]+?)%>/g, Xa = /<%([\s\S]+?)%>/g, Ga = /<%=([\s\S]+?)%>/g, Ka = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ya = /^\w*$/, Js = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, pa = /[\\^$.*+?()[\]{}|]/g, Va = RegExp(pa.source), ma = /^\s+/, ei = /\s/, ti = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, ri = /\{\n\/\* \[wrapped with (.+)\] \*/, y = /,? & /, S = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, z = /[()=,{}\[\]\/\s]/, $ = /\\(\\)?/g, ue = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, pe = /\w*$/, ie = /^[-+]0x[0-9a-f]+$/i, re = /^0b[01]+$/i, Be = /^\[object .+?Constructor\]$/, Te = /^0o[0-7]+$/i, ke = /^(?:0|[1-9]\d*)$/, Qe = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, kt = /($^)/, Qa = /['\n\r\u2028\u2029\\]/g, Ze = "\\ud800-\\udfff", mu = "\\u0300-\\u036f", fu = "\\ufe20-\\ufe2f", yu = "\\u20d0-\\u20ff", qn = mu + fu + yu, Cn = "\\u2700-\\u27bf", Sn = "a-z\\xdf-\\xf6\\xf8-\\xff", hu = "\\xac\\xb1\\xd7\\xf7", _u = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", gu = "\\u2000-\\u206f", bu = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", zn = "A-Z\\xc0-\\xd6\\xd8-\\xde", Nn = "\\ufe0e\\ufe0f", Pn = hu + _u + gu + bu, ai = "['’]", xu = "[" + Ze + "]", On = "[" + Pn + "]", Za = "[" + qn + "]", En = "\\d+", vu = "[" + Cn + "]", Rn = "[" + Sn + "]", Ln = "[^" + Ze + Pn + En + Cn + Sn + zn + "]", si = "\\ud83c[\\udffb-\\udfff]", wu = "(?:" + Za + "|" + si + ")", Mn = "[^" + Ze + "]", ii = "(?:\\ud83c[\\udde6-\\uddff]){2}", ni = "[\\ud800-\\udbff][\\udc00-\\udfff]", Fr = "[" + zn + "]", Fn = "\\u200d", Bn = "(?:" + Rn + "|" + Ln + ")", Tu = "(?:" + Fr + "|" + Ln + ")", jn = "(?:" + ai + "(?:d|ll|m|re|s|t|ve))?", Un = "(?:" + ai + "(?:D|LL|M|RE|S|T|VE))?", Wn = wu + "?", Hn = "[" + Nn + "]?", Iu = "(?:" + Fn + "(?:" + [Mn, ii, ni].join("|") + ")" + Hn + Wn + ")*", Du = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ku = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", $n = Hn + Wn + Iu, Au = "(?:" + [vu, ii, ni].join("|") + ")" + $n, qu = "(?:" + [Mn + Za + "?", Za, ii, ni, xu].join("|") + ")", Cu = RegExp(ai, "g"), Su = RegExp(Za, "g"), oi = RegExp(si + "(?=" + si + ")|" + qu + $n, "g"), zu = RegExp([
59757
+ ], Xe = "[object Arguments]", ar = "[object Array]", ra = "[object AsyncFunction]", Rt = "[object Boolean]", $t = "[object Date]", zr = "[object DOMException]", Nr = "[object Error]", gr = "[object Function]", Ua = "[object GeneratorFunction]", st = "[object Map]", Lt = "[object Number]", Pr = "[object Null]", yt = "[object Object]", aa = "[object Promise]", Or = "[object Proxy]", br = "[object RegExp]", it = "[object Set]", Xt = "[object String]", Er = "[object Symbol]", Vs = "[object Undefined]", sr = "[object WeakMap]", Wa = "[object WeakSet]", Dt = "[object ArrayBuffer]", ir = "[object DataView]", Rr = "[object Float32Array]", Lr = "[object Float64Array]", xr = "[object Int8Array]", sa = "[object Int16Array]", ia = "[object Int32Array]", na = "[object Uint8Array]", oa = "[object Uint8ClampedArray]", la = "[object Uint16Array]", ca = "[object Uint32Array]", Qs = /\b__p \+= '';/g, ua = /\b(__p \+=) '' \+/g, Ha = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Gt = /&(?:amp|lt|gt|quot|#39);/g, Mr = /[&<>"']/g, da = RegExp(Gt.source), $a = RegExp(Mr.source), Zs = /<%-([\s\S]+?)%>/g, Xa = /<%([\s\S]+?)%>/g, Ga = /<%=([\s\S]+?)%>/g, Ka = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ya = /^\w*$/, Js = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, pa = /[\\^$.*+?()[\]{}|]/g, Va = RegExp(pa.source), ma = /^\s+/, ei = /\s/, ti = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, ri = /\{\n\/\* \[wrapped with (.+)\] \*/, y = /,? & /, S = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, z = /[()=,{}\[\]\/\s]/, $ = /\\(\\)?/g, ue = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, pe = /\w*$/, ie = /^[-+]0x[0-9a-f]+$/i, te = /^0b[01]+$/i, Be = /^\[object .+?Constructor\]$/, Te = /^0o[0-7]+$/i, ke = /^(?:0|[1-9]\d*)$/, Qe = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, kt = /($^)/, Qa = /['\n\r\u2028\u2029\\]/g, Ze = "\\ud800-\\udfff", mu = "\\u0300-\\u036f", fu = "\\ufe20-\\ufe2f", yu = "\\u20d0-\\u20ff", qn = mu + fu + yu, Cn = "\\u2700-\\u27bf", Sn = "a-z\\xdf-\\xf6\\xf8-\\xff", hu = "\\xac\\xb1\\xd7\\xf7", _u = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", gu = "\\u2000-\\u206f", bu = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", zn = "A-Z\\xc0-\\xd6\\xd8-\\xde", Nn = "\\ufe0e\\ufe0f", Pn = hu + _u + gu + bu, ai = "['’]", xu = "[" + Ze + "]", On = "[" + Pn + "]", Za = "[" + qn + "]", En = "\\d+", vu = "[" + Cn + "]", Rn = "[" + Sn + "]", Ln = "[^" + Ze + Pn + En + Cn + Sn + zn + "]", si = "\\ud83c[\\udffb-\\udfff]", wu = "(?:" + Za + "|" + si + ")", Mn = "[^" + Ze + "]", ii = "(?:\\ud83c[\\udde6-\\uddff]){2}", ni = "[\\ud800-\\udbff][\\udc00-\\udfff]", Fr = "[" + zn + "]", Fn = "\\u200d", Bn = "(?:" + Rn + "|" + Ln + ")", Tu = "(?:" + Fr + "|" + Ln + ")", jn = "(?:" + ai + "(?:d|ll|m|re|s|t|ve))?", Un = "(?:" + ai + "(?:D|LL|M|RE|S|T|VE))?", Wn = wu + "?", Hn = "[" + Nn + "]?", Iu = "(?:" + Fn + "(?:" + [Mn, ii, ni].join("|") + ")" + Hn + Wn + ")*", Du = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ku = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", $n = Hn + Wn + Iu, Au = "(?:" + [vu, ii, ni].join("|") + ")" + $n, qu = "(?:" + [Mn + Za + "?", Za, ii, ni, xu].join("|") + ")", Cu = RegExp(ai, "g"), Su = RegExp(Za, "g"), oi = RegExp(si + "(?=" + si + ")|" + qu + $n, "g"), zu = RegExp([
59758
59758
  Fr + "?" + Rn + "+" + jn + "(?=" + [On, Fr, "$"].join("|") + ")",
59759
59759
  Tu + "+" + Un + "(?=" + [On, Fr + Bn, "$"].join("|") + ")",
59760
59760
  Fr + "?" + Bn + "+" + jn,
@@ -62781,7 +62781,7 @@ $s.exports;
62781
62781
  if (typeof e != "string")
62782
62782
  return e === 0 ? e : +e;
62783
62783
  e = io(e);
62784
- var r = re.test(e);
62784
+ var r = te.test(e);
62785
62785
  return r || Te.test(e) ? ju(e.slice(2), r ? 2 : 8) : ie.test(e) ? Wt : +e;
62786
62786
  }
62787
62787
  function Ul(e) {
@@ -63108,7 +63108,7 @@ function print() { __p += __j.call(arguments, '') }
63108
63108
  return mr(n, o).join("");
63109
63109
  }
63110
63110
  function Ph(e, t) {
63111
- var r = ae, n = at;
63111
+ var r = re, n = at;
63112
63112
  if (Ie(t)) {
63113
63113
  var o = "separator" in t ? t.separator : o;
63114
63114
  r = "length" in t ? V(t.length) : r, n = "omission" in t ? lt(t.omission) : n;
@@ -63327,7 +63327,7 @@ function print() { __p += __j.call(arguments, '') }
63327
63327
  return this.reverse()[e](r).reverse();
63328
63328
  };
63329
63329
  }), _t(["filter", "map", "takeWhile"], function(e, t) {
63330
- var r = t + 1, n = r == Ee || r == te;
63330
+ var r = t + 1, n = r == Ee || r == ae;
63331
63331
  ne.prototype[e] = function(o) {
63332
63332
  var d = this.clone();
63333
63333
  return d.__iteratees__.push({
@@ -64381,12 +64381,12 @@ _r.prototype = {
64381
64381
  var _e = J.oldPos - oe;
64382
64382
  Se = J && 0 <= _e && _e < g;
64383
64383
  }
64384
- var ae = ce && ce.oldPos + 1 < v;
64385
- if (!Se && !ae) {
64384
+ var re = ce && ce.oldPos + 1 < v;
64385
+ if (!Se && !re) {
64386
64386
  M[oe] = void 0;
64387
64387
  continue;
64388
64388
  }
64389
- if (!ae || Se && ce.oldPos + 1 < J.oldPos ? Q = m.addToPath(J, !0, void 0, 0) : Q = m.addToPath(ce, void 0, !0, 1), F = m.extractCommon(Q, a, i, oe), Q.oldPos + 1 >= v && F + 1 >= g)
64389
+ if (!re || Se && ce.oldPos + 1 < J.oldPos ? Q = m.addToPath(J, !0, void 0, 0) : Q = m.addToPath(ce, void 0, !0, 1), F = m.extractCommon(Q, a, i, oe), Q.oldPos + 1 >= v && F + 1 >= g)
64390
64390
  return b(ib(m, Q.lastComponent, a, i, m.useLongestToken));
64391
64391
  M[oe] = Q, Q.oldPos + 1 >= v && (Y = Math.min(Y, oe - 1)), F + 1 >= g && (R = Math.max(R, oe + 1));
64392
64392
  }
@@ -65028,11 +65028,11 @@ function Jr(s, i, a) {
65028
65028
  function Tb() {
65029
65029
  return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
65030
65030
  }
65031
- const pu = new Worker(new URL("" + new URL("assets/scriptsRunWorker-BmS8NCni.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
65031
+ const pu = new Worker(new URL("" + new URL("assets/scriptsRunWorker-Ce9Ua8lg.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
65032
65032
  pu.onerror = (s) => {
65033
65033
  console.error(s);
65034
65034
  };
65035
- const Ib = An(pu), Db = An(new Worker(new URL("" + new URL("assets/parserTccWorker-ClJL6TbY.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser TccScript Server" }));
65035
+ const Ib = An(pu), Db = An(new Worker(new URL("" + new URL("assets/parserTccWorker-CVfKSNrL.js", import.meta.url).href, import.meta.url), { type: "module", name: "Parser TccScript Server" }));
65036
65036
  async function kb(s, i = !1) {
65037
65037
  const { functions: a, types: l, constants: u, variables: p, methods: m } = Ot;
65038
65038
  return await Db(s, i, { functions: Object.fromEntries(a), methods: Object.fromEntries(m), types: Object.fromEntries(l), constants: Object.fromEntries(u), variables: Object.fromEntries(p) });
@@ -65217,26 +65217,25 @@ const Sb = (s, i) => {
65217
65217
  }
65218
65218
  const O = La(async (R) => {
65219
65219
  var B;
65220
- const Y = Date.now(), { errors: H, functions: fe, methods: oe, types: Q, variables: ce, overloadsFuncs: J, preParserCode: Se } = await kb(R), _e = new Map(Object.entries(fe)), ae = new Map(Object.entries(oe)), at = new Map(Object.entries(Q)), ft = new Map(Object.entries(ce));
65220
+ const Y = Date.now(), { errors: H, functions: fe, methods: oe, types: Q, variables: ce, overloadsFuncs: J, preParserCode: Se } = await kb(R), _e = new Map(Object.entries(fe)), re = new Map(Object.entries(oe)), at = new Map(Object.entries(Q)), ft = new Map(Object.entries(ce));
65221
65221
  ja.setUserDefined({
65222
65222
  functions: _e,
65223
- methods: ae,
65223
+ methods: re,
65224
65224
  types: at,
65225
65225
  variables: ft
65226
- }, J), ta.setUserDefind(_e, at, ft, ae);
65227
- const Oe = H.map((te) => ({
65228
- ...te,
65229
- severity: te.type || T_.Error
65226
+ }, J), ta.setUserDefind(_e, at, ft, re);
65227
+ const Oe = H.map((ae) => ({
65228
+ ...ae,
65229
+ severity: ae.type || T_.Error
65230
65230
  }));
65231
65231
  if (b)
65232
65232
  return;
65233
65233
  try {
65234
- console.log(Se);
65235
- const te = await Ab(Se, { isPreParser: !0 });
65236
- console.log(te), v && v(te);
65237
- } catch (te) {
65238
- console.log(te, "==================error- Run TccScript Server"), H.push({
65239
- message: `Runtime Error: ${te.message}`,
65234
+ const ae = await Ab(Se, { isPreParser: !0 });
65235
+ v && v(ae);
65236
+ } catch (ae) {
65237
+ console.log(ae, "==================error- Run TccScript Server"), H.push({
65238
+ message: `Runtime Error: ${ae.message}`,
65240
65239
  startLineNumber: 0,
65241
65240
  endLineNumber: 0,
65242
65241
  startColumn: 0,