@guihz/trading-vue-editor-tes 0.1.18 → 0.1.20

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 (70) hide show
  1. package/lib/assets/{parserTccWorker-CXp94-Z9.js → parserTccWorker-DzdECu81.js} +24919 -43571
  2. package/lib/assets/{scriptsRunWorker-BQFRfD9L.js → scriptsRunWorker-DO_0NAgb.js} +15025 -23483
  3. package/lib/components/editor/utils/parserTccWorker.d.ts +1 -1
  4. package/lib/components/editor/v5/parseScript/buildInConstants.d.ts +0 -2
  5. package/lib/components/editor/v5/parseScript/buildInVarNamespace/strategy.d.ts +3 -0
  6. package/lib/components/editor/v5/parseScript/parseToJs.d.ts +0 -2
  7. package/lib/components/editor/v5/parserTccWorker.d.ts +1 -1
  8. package/lib/{monarchTokens-BNkQaBBZ.js → monarchTokens-D-73EVQs.js} +22 -22
  9. package/lib/packages/index.d.ts +1 -1
  10. package/lib/trading-vue-editor.es.packages.js +843 -856
  11. package/lib/trading-vue-editor.umd.packages.mjs +45 -110
  12. package/package.json +2 -2
  13. package/lib/components/editor/v6/config/monarchTokens.d.ts +0 -205
  14. package/lib/components/editor/v6/constants/contents_zh.d.ts +0 -6
  15. package/lib/components/editor/v6/constants/index.d.ts +0 -41
  16. package/lib/components/editor/v6/parseScript/buildInConstants.d.ts +0 -310
  17. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/array.d.ts +0 -109
  18. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/box.d.ts +0 -83
  19. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/chartPoint.d.ts +0 -26
  20. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/color.d.ts +0 -25
  21. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/errorListener.d.ts +0 -9
  22. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/index.d.ts +0 -25
  23. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/input.d.ts +0 -57
  24. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/label.d.ts +0 -66
  25. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/line.d.ts +0 -74
  26. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/linefill.d.ts +0 -36
  27. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/log.d.ts +0 -39
  28. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/map.d.ts +0 -51
  29. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/math.d.ts +0 -49
  30. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/matrix.d.ts +0 -98
  31. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/polyline.d.ts +0 -32
  32. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/runtime.d.ts +0 -10
  33. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/strategy.d.ts +0 -278
  34. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/strategyNew.d.ts +0 -261
  35. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/string.d.ts +0 -55
  36. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/syminfo.d.ts +0 -9
  37. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/ta.d.ts +0 -125
  38. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/table.d.ts +0 -89
  39. package/lib/components/editor/v6/parseScript/buildInFuncNamespace/timeframe.d.ts +0 -22
  40. package/lib/components/editor/v6/parseScript/buildInVarNamespace/barstate.d.ts +0 -22
  41. package/lib/components/editor/v6/parseScript/buildInVarNamespace/chart.d.ts +0 -21
  42. package/lib/components/editor/v6/parseScript/buildInVarNamespace/dividends.d.ts +0 -8
  43. package/lib/components/editor/v6/parseScript/buildInVarNamespace/earnings.d.ts +0 -9
  44. package/lib/components/editor/v6/parseScript/buildInVarNamespace/index.d.ts +0 -9
  45. package/lib/components/editor/v6/parseScript/buildInVarNamespace/session.d.ts +0 -12
  46. package/lib/components/editor/v6/parseScript/buildInVarNamespace/strategy.d.ts +0 -144
  47. package/lib/components/editor/v6/parseScript/buildInVarNamespace/syminfo.d.ts +0 -49
  48. package/lib/components/editor/v6/parseScript/buildInVarNamespace/ta.d.ts +0 -32
  49. package/lib/components/editor/v6/parseScript/buildInVarNamespace/timeframe.d.ts +0 -16
  50. package/lib/components/editor/v6/parseScript/constants.d.ts +0 -135
  51. package/lib/components/editor/v6/parseScript/constantsRun.d.ts +0 -5
  52. package/lib/components/editor/v6/parseScript/enum.d.ts +0 -302
  53. package/lib/components/editor/v6/parseScript/parseToJs.d.ts +0 -78
  54. package/lib/components/editor/v6/parseScript/parseToLibJs.d.ts +0 -71
  55. package/lib/components/editor/v6/parseScript/strategyNamespace/closedtrades.d.ts +0 -28
  56. package/lib/components/editor/v6/parseScript/strategyNamespace/index.d.ts +0 -4
  57. package/lib/components/editor/v6/parseScript/strategyNamespace/opentrades.d.ts +0 -25
  58. package/lib/components/editor/v6/parseScript/strategyNamespace/risk.d.ts +0 -22
  59. package/lib/components/editor/v6/parseScript/type.d.ts +0 -40
  60. package/lib/components/editor/v6/parseScript/userTypeClass.d.ts +0 -12
  61. package/lib/components/editor/v6/parseScript/utils.d.ts +0 -25
  62. package/lib/components/editor/v6/parseScript/visitorParser.d.ts +0 -382
  63. package/lib/components/editor/v6/parseScript/visitorUtils.d.ts +0 -31
  64. package/lib/components/editor/v6/parserTccWorker.d.ts +0 -40
  65. package/lib/components/editor/v6/scriptsRunWorker.d.ts +0 -11
  66. package/lib/components/editor/v6/tccParser/LexerBase.d.ts +0 -19
  67. package/lib/components/editor/v6/tccParser/tccScriptParserVisitor.d.ts +0 -507
  68. package/lib/index-C8vqcsNB.js +0 -61958
  69. package/lib/monarchTokens-_UFEzBJ_.js +0 -563
  70. package/lib/{index-Clupi1hX.js → index-DLIhM_y0.js} +24 -24
@@ -23,7 +23,7 @@ export declare function parseTcc(program: string, hasTranscoding: boolean, getIm
23
23
  codeStr: string;
24
24
  preParserCode: string | undefined;
25
25
  config: IKeyObjectValue;
26
- } | undefined>;
26
+ }>;
27
27
  export declare function parseLibraryCode(program: string, libTitle: string, getImportLibraryFunc: (obj: IKeyObjectValue) => IKeyObjectValue, keyObjs: IKeyObjectValue): Promise<{
28
28
  description: string;
29
29
  codeStr: string;
@@ -265,8 +265,6 @@ export declare class BuildInConstants {
265
265
  cash: VStrategy;
266
266
  fixed: VStrategy;
267
267
  percent_of_equity: VStrategy;
268
- long: VDirection;
269
- short: VDirection;
270
268
  commission: {
271
269
  cash_per_contract: VCommission;
272
270
  cash_per_order: VCommission;
@@ -1,6 +1,7 @@
1
1
  import { IKeyObjectValue } from "../../../type";
2
2
  import { IOrder, IStrategy } from "../buildInFuncNamespace";
3
3
  import { BuiltInVariables } from "../buildInVariables";
4
+ import { VDirection } from "../enum";
4
5
  export declare class Strategy {
5
6
  private _orders;
6
7
  private _historyOrders;
@@ -45,6 +46,8 @@ export declare class Strategy {
45
46
  private _calcMaxContracts;
46
47
  updateHistoryOrders(orders: IOrder[]): void;
47
48
  updateStrategyOptions(options: IStrategy): void;
49
+ get long(): VDirection;
50
+ get short(): VDirection;
48
51
  get account_currency(): string;
49
52
  get closedtrades(): number;
50
53
  get opentrades(): {
@@ -20,9 +20,7 @@ export default class ParseToJs {
20
20
  private _dependsObj;
21
21
  private _enums;
22
22
  private _preRunMembers;
23
- private _isInConditionalStmt;
24
23
  private _preRunMembersFuncs;
25
- private _preRunMemberFuncsCount;
26
24
  private __count;
27
25
  preParseCode: string;
28
26
  private _hasLeftVisibleBarTime;
@@ -25,7 +25,7 @@ export declare function parseTcc(program: string, hasTranscoding: boolean, getIm
25
25
  codeStr: string;
26
26
  preParserCode: string | undefined;
27
27
  config: IKeyObjectValue;
28
- } | undefined>;
28
+ }>;
29
29
  export declare function parseLibraryCode(program: string, libTitle: string, getImportLibraryFunc: (obj: IKeyObjectValue) => IKeyObjectValue, keyObjs: IKeyObjectValue): Promise<{
30
30
  description: string;
31
31
  codeStr: string;
@@ -1,9 +1,9 @@
1
- import { KEY_LIST as l } from "./index-Clupi1hX.js";
2
- const g = "tccScript", u = {
1
+ import { KEY_LIST as l } from "./index-DLIhM_y0.js";
2
+ const d = "tccScript", g = {
3
3
  // builtinFunctions: /strategy\.closedtrades\.max_drawdown_percent|strategy\.opentrades\.max_drawdown_percent|strategy\.risk\.max_intraday_filled_orders|strategy\.closedtrades\.max_runup_percent|array\.percentile_linear_interpolation|strategy\.closedtrades\.entry_bar_index|strategy\.opentrades\.max_runup_percent|strategy\.closedtrades\.exit_bar_index|strategy\.closedtrades\.profit_percent|strategy\.closedtrades\.entry_comment|strategy\.opentrades\.entry_bar_index|strategy\.closedtrades\.exit_comment|strategy\.closedtrades\.max_drawdown|strategy\.opentrades\.profit_percent|ta\.percentile_linear_interpolation|strategy\.closedtrades\.entry_price|strategy\.opentrades\.entry_comment|strategy\.closedtrades\.commission|strategy\.closedtrades\.entry_time|strategy\.closedtrades\.exit_price|strategy\.opentrades\.max_drawdown|strategy\.risk\.max_cons_loss_days|strategy\.closedtrades\.exit_time|strategy\.closedtrades\.max_runup|strategy\.opentrades\.entry_price|strategy\.risk\.max_intraday_loss|strategy\.risk\.max_position_size|table\.cell_set_text_font_family|strategy\.closedtrades\.entry_id|strategy\.opentrades\.commission|strategy\.opentrades\.entry_time|array\.binary_search_rightmost|array\.percentile_nearest_rank|strategy\.closedtrades\.exit_id|strategy\.opentrades\.max_runup|array\.binary_search_leftmost|strategy\.closedtrades\.profit|strategy\.opentrades\.entry_id|strategy\.risk\.allow_entry_in|strategy\.convert_to_account|box\.set_bottom_right_point|label\.set_text_font_family|strategy\.closedtrades\.size|strategy\.convert_to_symbol|strategy\.default_entry_qty|strategy\.opentrades\.profit|strategy\.risk\.max_drawdown|ta\.percentile_nearest_rank|table\.cell_set_text_halign|table\.cell_set_text_valign|request\.security_lower_tf|table\.cell_set_text_color|box\.set_text_font_family|strategy\.opentrades\.size|table\.cell_set_text_size|matrix\.is_antisymmetric|box\.set_top_left_point|chart\.point\.from_index|matrix\.is_antidiagonal|table\.cell_set_bgcolor|table\.cell_set_tooltip|table\.set_border_color|table\.set_border_width|timeframe\.from_seconds|chart\.point\.from_time|line\.set_second_point|math\.round_to_mintick|matrix\.elements_count|request\.currency_rate|ta\.pivot_point_levels|table\.cell_set_height|table\.set_frame_color|table\.set_frame_width|box\.set_border_color|box\.set_border_style|box\.set_border_width|line\.set_first_point|matrix\.is_stochastic|matrix\.is_triangular|table\.cell_set_width|timeframe\.in_seconds|array\.binary_search|box\.set_rightbottom|box\.set_text_halign|box\.set_text_valign|color\.from_gradient|label\.set_textalign|label\.set_textcolor|matrix\.eigenvectors|matrix\.is_symmetric|matrix\.swap_columns|strategy\.cancel_all|table\.cell_set_text|array\.new_linefill|array\.sort_indices|box\.set_text_color|linefill\.get_line1|linefill\.get_line2|linefill\.set_color|matrix\.eigenvalues|matrix\.is_diagonal|matrix\.is_identity|strategy\.close_all|table\.set_position|ticker\.pointfigure|array\.lastindexof|array\.percentrank|array\.standardize|box\.set_text_size|box\.set_text_wrap|label\.set_tooltip|matrix\.remove_col|matrix\.remove_row|request\.dividends|request\.financial|table\.merge_cells|table\.set_bgcolor|ticker\.heikinashi|array\.covariance|array\.new_string|chart\.point\.copy|matrix\.is_binary|matrix\.is_square|matrix\.submatrix|matrix\.swap_rows|matrix\.transpose|request\.earnings|request\.economic|request\.security|ticker\.linebreak|timeframe\.change|array\.new_color|array\.new_float|array\.new_label|array\.new_table|box\.set_bgcolor|box\.set_lefttop|chart\.point\.new|chart\.point\.now|input\.text_area|input\.timeframe|label\.set_color|label\.set_point|label\.set_style|line\.set_extend|linefill\.delete|polyline\.delete|str\.format_time|str\.replace_all|strategy\.cancel|ticker\.standard|alertcondition|array\.includes|array\.new_bool|array\.new_line|array\.variance|box\.get_bottom|box\.set_bottom|box\.set_extend|label\.get_text|label\.set_size|label\.set_text|label\.set_xloc|label\.set_yloc|line\.get_price|line\.set_color|line\.set_style|line\.set_width|math\.todegrees|math\.toradians|matrix\.add_col|matrix\.add_row|matrix\.columns|matrix\.is_zero|matrix\.reshape|matrix\.reverse|request\.quandl|request\.splits|str\.startswith|strategy\.close|strategy\.entry|strategy\.order|syminfo\.prefix|syminfo\.ticker|ta\.correlation|ta\.highestbars|ta\.percentrank|ticker\.inherit|array\.indexof|array\.new_box|array\.new_int|array\.reverse|array\.unshift|box\.get_right|box\.set_right|input\.session|line\.set_xloc|matrix\.concat|matrix\.median|max_bars_back|runtime\.error|str\.substring|strategy\.exit|ta\.crossunder|ta\.lowestbars|ta\.supertrend|ticker\.modify|array\.concat|array\.insert|array\.median|array\.remove|box\.get_left|box\.set_left|box\.set_text|input\.source|input\.string|input\.symbol|label\.delete|label\.set_xy|line\.set_xy1|line\.set_xy2|linefill\.new|map\.contains|matrix\.trace|polyline\.new|request\.seed|str\.contains|str\.endswith|str\.tonumber|str\.tostring|ta\.barssince|ta\.crossover|ta\.pivothigh|ta\.valuewhen|table\.delete|ticker\.renko|array\.clear|array\.every|array\.first|array\.range|array\.shift|array\.slice|array\.stdev|box\.get_top|box\.set_top|input\.color|input\.float|input\.price|label\.get_x|label\.get_y|label\.set_x|label\.set_y|line\.delete|line\.get_x1|line\.get_x2|line\.get_y1|line\.get_y2|line\.set_x1|line\.set_x2|line\.set_y1|line\.set_y2|log\.warning|map\.put_all|math\.random|matrix\.copy|matrix\.diff|matrix\.fill|matrix\.kron|matrix\.mode|matrix\.mult|matrix\.pinv|matrix\.rank|matrix\.rows|matrix\.sort|str\.replace|ta\.pivotlow|ta\.variance|table\.clear|ticker\.kagi|array\.copy|array\.fill|array\.from|array\.join|array\.last|array\.mode|array\.push|array\.size|array\.some|array\.sort|box\.delete|dayofmonth|input\.bool|input\.time|label\.copy|map\.remove|map\.values|math\.floor|math\.log10|math\.round|matrix\.avg|matrix\.col|matrix\.det|matrix\.get|matrix\.inv|matrix\.max|matrix\.min|matrix\.new|matrix\.pow|matrix\.row|matrix\.set|matrix\.sum|plotcandle|str\.format|str\.length|ta\.falling|ta\.highest|table\.cell|ticker\.new|time_close|weekofyear|array\.abs|array\.avg|array\.get|array\.max|array\.min|array\.new|array\.pop|array\.set|array\.sum|color\.new|color\.rgb|dayofweek|indicator|input\.int|label\.new|line\.copy|log\.error|map\.clear|math\.acos|math\.asin|math\.atan|input\.enum|math\.ceil|math\.sign|math\.sqrt|plotarrow|plotshape|str\.lower|str\.match|str\.split|str\.upper|ta\.change|ta\.linreg|ta\.lowest|ta\.median|ta\.rising|table\.new|timestamp|barcolor|box\.copy|line\.new|linefill|log\.info|map\.copy|map\.keys|map\.size|math\.abs|math\.avg|math\.cos|math\.exp|math\.log|math\.max|math\.min|math\.pow|math\.sin|math\.sum|math\.tan|plotchar|strategy|ta\.cross|ta\.range|ta\.stdev|ta\.stoch|bgcolor|box\.new|color\.b|color\.g|color\.r|color\.t|library|map\.get|map\.new|map\.put|plotbar|str\.pos|ta\.alma|ta\.macd|ta\.mode|ta\.swma|ta\.vwap|ta\.vwma|fixnan|minute|second|string|ta\.atr|ta\.bbw|ta\.cci|ta\.cmo|ta\.cog|ta\.cum|ta\.dev|ta\.dmi|ta\.ema|ta\.hma|ta\.kcw|ta\.max|ta\.mfi|ta\.min|ta\.mom|ta\.rma|ta\.roc|ta\.rsi|ta\.sar|ta\.sma|ta\.tsi|ta\.wma|ta\.wpr|alert|color|float|hline|input|label|month|ta\.bb|ta\.kc|ta\.tr|table|bool|fill|hour|line|plot|time|year|box|int|na|nz/,
4
- builtinFunctions: new RegExp(i(l.functions)),
4
+ builtinFunctions: new RegExp(a(l.functions)),
5
5
  // keywords: /continue|for\.\.\.in|export|import|method|switch|break|varip|while|else|type|enum|and|for|not|var|as|by|if|in|or|to/,
6
- keywords: new RegExp(a(l.keywords)),
6
+ keywords: new RegExp(c(l.keywords)),
7
7
  tokenizer: {
8
8
  root: [
9
9
  [/\/\/\s*(?=@)/, "comment", "@comments"],
@@ -155,25 +155,25 @@ const g = "tccScript", u = {
155
155
  }]]
156
156
  },
157
157
  // builtinVariables: /strategy\.commission\.cash_per_contract|strategy\.avg_winning_trade_percent|strategy\.avg_winning_trade|strategy\.avg_losing_trade_percent|strategy\.avg_losing_trade|syminfo\.recommendations_sell_strong|syminfo\.recommendations_buy_strong|strategy\.commission\.cash_per_order|strategy\.margin_liquidation_price|strategy\.max_contracts_held_short|strategy\.max_contracts_held_long|syminfo\.shares_outstanding_float|syminfo\.shares_outstanding_total|barstate\.islastconfirmedhistory|earnings\.future_period_end_time|strategy\.max_contracts_held_all|syminfo\.target_price_estimates|strategy\.max_drawdown_percent|syminfo\.recommendations_total|alert\.freq_once_per_bar_close|label\.style_label_lower_right|label\.style_label_upper_right|chart\.right_visible_bar_time|strategy\.grossprofit_percent|strategy\.position_entry_name|syminfo\.recommendations_date|syminfo\.recommendations_hold|syminfo\.recommendations_sell|syminfo\.target_price_average|label\.style_label_lower_left|label\.style_label_upper_left|chart\.left_visible_bar_time|strategy\.openprofit_percent|strategy\.position_avg_price|syminfo\.recommendations_buy|syminfo\.target_price_median|plot\.style_stepline_diamond|strategy\.commission\.percent|session\.isfirstbar_regular|strategy\.grossloss_percent|strategy\.max_runup_percent|strategy\.netprofit_percent|strategy\.percent_of_equity|session\.islastbar_regular|strategy\.account_currency|syminfo\.target_price_date|syminfo\.target_price_high|dividends\.future_pay_date|strategy\.initial_capital|syminfo\.target_price_low|dividends\.future_ex_date|label\.style_label_center|label\.style_text_outline|label\.style_triangledown|strategy\.direction\.short|earnings\.future_revenue|alert\.freq_once_per_bar|dividends\.future_amount|label\.style_label_right|strategy\.direction\.long|strategy\.position_size|barmerge\.lookahead_off|label\.style_label_down|label\.style_label_left|label\.style_triangleup|line\.style_arrow_right|position\.bottom_center|position\.middle_center|strategy\.direction\.all|strategy\.closedtrades|strategy\.max_drawdown|barmerge\.lookahead_on|earnings\.standardized|font\.family_monospace|label\.style_arrowdown|line\.style_arrow_both|line\.style_arrow_left|plot\.style_steplinebr|position\.bottom_right|position\.middle_right|barstate\.isconfirmed|earnings\.future_time|session\.ispostmarket|strategy\.grossprofit|syminfo\.basecurrency|syminfo\.shareholders|timeframe\.isintraday|timeframe\.multiplier|adjustment\.dividends|label\.style_label_up|plot\.style_histogram|position\.bottom_left|position\.middle_left|barstate\.isrealtime|chart\.is_heikinashi|earnings\.future_eps|session\.ispremarket|strategy\.eventrades|strategy\.losstrades|strategy\.openprofit|strategy\.opentrades\.capital_held|strategy\.opentrades|syminfo\.description|timeframe\.isminutes|timeframe\.ismonthly|timeframe\.isseconds|dayofweek\.wednesday|display\.data_window|display\.price_scale|display\.status_line|font\.family_default|label\.style_arrowup|label\.style_diamond|plot\.style_stepline|position\.top_center|strategy\.oca\.cancel|strategy\.oca\.reduce|barstate\.ishistory|chart\.is_linebreak|session\.isfirstbar|strategy\.grossloss|strategy\.max_runup|strategy\.netprofit|strategy\.wintrades|syminfo\.pointvalue|syminfo\.pricescale|syminfo\.volumetype|timeframe\.isweekly|dayofweek\.saturday|dayofweek\.thursday|hline\.style_dashed|hline\.style_dotted|label\.style_circle|label\.style_square|label\.style_xcross|plot\.style_circles|plot\.style_columns|position\.top_right|shape\.triangledown|splits\.denominator|chart\.is_standard|session\.islastbar|syminfo\.employees|timeframe\.isdaily|adjustment\.splits|barmerge\.gaps_off|dayofweek\.tuesday|earnings\.estimate|hline\.style_solid|label\.style_cross|line\.style_dashed|line\.style_dotted|location\.abovebar|location\.absolute|location\.belowbar|plot\.style_areabr|plot\.style_linebr|position\.top_left|strategy\.oca\.none|text\.align_bottom|text\.align_center|barstate\.isfirst|session\.ismarket|syminfo\.currency|syminfo\.industry|syminfo\.tickerid|syminfo\.timezone|timeframe\.period|barmerge\.gaps_on|dayofweek\.friday|dayofweek\.monday|dayofweek\.sunday|label\.style_flag|label\.style_none|line\.style_solid|order\.descending|plot\.style_cross|session\.extended|shape\.triangleup|splits\.numerator|text\.align_right|barstate\.islast|strategy\.equity|syminfo\.country|syminfo\.minmove|syminfo\.mintick|syminfo\.session|time_tradingday|timeframe\.isdwm|adjustment\.none|dividends\.gross|earnings\.actual|location\.bottom|order\.ascending|plot\.style_area|plot\.style_line|session\.regular|shape\.arrowdown|shape\.labeldown|text\.align_left|barstate\.isnew|chart\.bg_color|chart\.fg_color|chart\.is_range|chart\.is_renko|last_bar_index|strategy\.short|syminfo\.prefix|syminfo\.sector|syminfo\.ticker|alert\.freq_all|format\.inherit|format\.mintick|format\.percent|strategy\.fixed|text\.align_top|text\.wrap_auto|text\.wrap_none|xloc\.bar_index|chart\.is_kagi|last_bar_time|strategy\.long|color\.fuchsia|currency\.NONE|currency\.USDT|dividends\.net|format\.volume|shape\.arrowup|shape\.diamond|shape\.labelup|strategy\.cash|xloc\.bar_time|yloc\.abovebar|yloc\.belowbar|chart\.is_pnf|linefill\.all|polyline\.all|syminfo\.root|syminfo\.type|color\.maroon|color\.orange|color\.purple|color\.silver|color\.yellow|currency\.AUD|currency\.BTC|currency\.CAD|currency\.CHF|currency\.ETH|currency\.EUR|currency\.GBP|currency\.HKD|currency\.INR|currency\.JPY|currency\.KRW|currency\.MYR|currency\.NOK|currency\.NZD|currency\.RUB|currency\.SEK|currency\.SGD|currency\.TRY|currency\.USD|currency\.ZAR|display\.none|display\.pane|extend\.right|format\.price|location\.top|shape\.circle|shape\.square|shape\.xcross|color\.black|color\.green|color\.olive|color\.white|display\.all|extend\.both|extend\.left|extend\.none|scale\.right|shape\.cross|size\.normal|dayofmonth|ta\.accdist|time_close|weekofyear|color\.aqua|color\.blue|color\.gray|color\.lime|color\.navy|color\.teal|scale\.left|scale\.none|shape\.flag|size\.large|size\.small|yloc\.price|bar_index|dayofweek|label\.all|table\.all|color\.red|math\.rphi|size\.auto|size\.huge|size\.tiny|line\.all|math\.phi|box\.all|ta\.vwap|ta\.wvad|timenow|math\.pi|minute|second|ta\.iii|ta\.nvi|ta\.obv|ta\.pvi|ta\.pvt|ta\.wad|volume|math\.e|close|hlcc4|month|ohlc4|ta\.tr|false|high|hlc3|hour|open|time|year|true|hl2|low|na/,
158
- builtinVariables: new RegExp(a([...l.constants, ...l.variables])),
158
+ builtinVariables: new RegExp(c([...l.constants, ...l.variables])),
159
159
  // builtinTypes: /chart\.point|linefill|polyline|matrix|series|simple|string|array|color|const|float|label|table|bool|line|box|int|map/,
160
- builtinTypes: new RegExp(a(l.types)),
160
+ builtinTypes: new RegExp(c(l.types)),
161
161
  punctuation: /[.](?![.])/,
162
162
  importName: /[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+/,
163
163
  importAlias: /[a-zA-Z\d\_\u00a1\uffff\/]+/,
164
164
  empty: /^$/
165
165
  };
166
- function i(e) {
167
- return [...e].sort((t, c) => c.length - t.length).map((t) => t.replace(/<.+>/, "").split(".").join("\\.")).join("|");
168
- }
169
166
  function a(e) {
170
- return [...e].sort((t, c) => c.length - t.length).map((t) => t.split(".").join("\\.")).join("|");
167
+ return e.map((t) => t.replace(/<.+>/, "").split(".").join("\\.")).join("|");
168
+ }
169
+ function c(e) {
170
+ return e.map((t) => t.split(".").join("\\.")).join("|");
171
171
  }
172
172
  var r;
173
173
  (function(e) {
174
174
  e[e.None = 0] = "None", e[e.Indent = 1] = "Indent", e[e.IndentOutdent = 2] = "IndentOutdent", e[e.Outdent = 3] = "Outdent";
175
175
  })(r || (r = {}));
176
- const p = {
176
+ const u = {
177
177
  wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
178
178
  comments: {
179
179
  lineComment: "//",
@@ -276,7 +276,7 @@ const p = {
276
276
  function n(e, t = 1) {
277
277
  return e + Math.round(255 * Math.min(Math.max(t, 0), 1)).toString(16).toUpperCase().padStart(2, "0");
278
278
  }
279
- const s = {
279
+ const p = {
280
280
  base: "vs",
281
281
  inherit: !0,
282
282
  rules: [{
@@ -406,7 +406,7 @@ const s = {
406
406
  "editorError.foreground": o["color-ripe-red-500"],
407
407
  "editorWarning.foreground": o["color-tan-orange-500"]
408
408
  }
409
- }, b = {
409
+ }, s = {
410
410
  base: "vs-dark",
411
411
  inherit: !0,
412
412
  rules: [{
@@ -531,7 +531,7 @@ const s = {
531
531
  "editorError.foreground": o["color-ripe-red-500"],
532
532
  "editorWarning.foreground": o["color-tan-orange-700"]
533
533
  }
534
- }, y = /(\\(?:[\\'"]))|(\\$)|("|$)|($)/g, f = /(\\(?:[\\'"]))|(\\$)|('|$)|($)/g, k = {
534
+ }, b = /(\\(?:[\\'"]))|(\\$)|("|$)|($)/g, y = /(\\(?:[\\'"]))|(\\$)|('|$)|($)/g, f = {
535
535
  "color.aqua": "#00BCD4",
536
536
  "color.black": "#363A45",
537
537
  "color.blue": "#2962ff",
@@ -552,12 +552,12 @@ const s = {
552
552
  };
553
553
  export {
554
554
  o as COLORS,
555
- p as CONFIGURATION,
556
- k as DEFAULT_COLORS,
557
- g as LANGAGE_NAME,
558
- u as LANGUAGE_MONARCH_TOKENS,
559
- y as QQSTRING_REG,
560
- f as QSTRING_REG,
561
- s as VS,
562
- b as VS_DARK
555
+ u as CONFIGURATION,
556
+ f as DEFAULT_COLORS,
557
+ d as LANGAGE_NAME,
558
+ g as LANGUAGE_MONARCH_TOKENS,
559
+ b as QQSTRING_REG,
560
+ y as QSTRING_REG,
561
+ p as VS,
562
+ s as VS_DARK
563
563
  };
@@ -8,4 +8,4 @@ export { VMarkerSeverity } from '../components/editor/type';
8
8
  export { default as ReferenceManual } from '../components/referenceManual';
9
9
  export { default as ReferenceManualPage } from '../components/referenceManualPage';
10
10
  export { transformCodeToHtml } from '../utils/tools';
11
- export { VAdjustment, VAlert, VBarmergeGaps, VCommission, VDirection, VEarnings, VExtend, VFormatType, VHlineStyle, VInputType, VLabelStyle, VLineStyle, VLocation, VOca, VPlotDisplay, VPlotStyle, VRuleType, VScale, VSession, VShape, VSortOrder, VSize, VStrategy, VText, VType, VXloc, VYloc, VPivotType, VPosition, VScriptType, VFont, VTextFormat } from '../components/editor/v6/parseScript/enum';
11
+ export { VAdjustment, VAlert, VBarmergeGaps, VCommission, VDirection, VEarnings, VExtend, VFormatType, VHlineStyle, VInputType, VLabelStyle, VLineStyle, VLocation, VOca, VPlotDisplay, VPlotStyle, VRuleType, VScale, VSession, VShape, VSortOrder, VSize, VStrategy, VText, VType, VXloc, VYloc, VPivotType, VPosition, VScriptType, VFont } from '../components/editor/v5/parseScript/enum';