@guihz/trading-vue-editor-tes 0.0.301 → 0.1.1

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 (167) hide show
  1. package/lib/assets/editor.worker-BxEYBjj-.js +7352 -0
  2. package/lib/assets/parserTccWorker-D5cq4N-Y.js +80540 -0
  3. package/lib/assets/scriptsRunWorker-CaEvEpNA.js +37748 -0
  4. package/lib/components/diffEditor/index.d.ts +1 -0
  5. package/lib/components/editor/config/monarchTokens.d.ts +2 -4
  6. package/lib/components/editor/constants/common.d.ts +38 -0
  7. package/lib/components/editor/constants/locals.d.ts +1 -0
  8. package/lib/components/editor/index.d.ts +1 -0
  9. package/lib/components/editor/tokenizer/utils.d.ts +0 -16
  10. package/lib/components/editor/type/index.d.ts +32 -1
  11. package/lib/components/editor/utils/completions.d.ts +3 -1
  12. package/lib/components/editor/utils/importLibrary.d.ts +2 -160
  13. package/lib/components/editor/utils/initEditor.d.ts +3 -0
  14. package/lib/components/editor/utils/parse.d.ts +2 -0
  15. package/lib/components/editor/utils/parserTccWorker.d.ts +1 -7
  16. package/lib/components/editor/utils/scriptsRunWorker.d.ts +1 -1
  17. package/lib/components/editor/utils/signatureHelp.d.ts +2 -0
  18. package/lib/components/editor/utils/tools.d.ts +6 -0
  19. package/lib/components/editor/v3/config/monarchTokens.d.ts +3 -0
  20. package/lib/components/editor/v3/constants/contents_zh.d.ts +6 -0
  21. package/lib/components/editor/{constants/contents.d.ts → v3/constants/index.d.ts} +1 -5
  22. package/lib/components/editor/v3/parseScript/buildInConstants.d.ts +179 -0
  23. package/lib/components/editor/v3/parseScript/buildInFuncNamespace/index.d.ts +9 -0
  24. package/lib/components/editor/v3/parseScript/buildInFuncNamespace/input.d.ts +43 -0
  25. package/lib/components/editor/v3/parseScript/buildInFuncNamespace/math.d.ts +50 -0
  26. package/lib/components/editor/v3/parseScript/buildInFuncNamespace/strategy.d.ts +243 -0
  27. package/lib/components/editor/v3/parseScript/buildInFuncNamespace/ta.d.ts +102 -0
  28. package/lib/components/editor/{parseScript → v3/parseScript}/buildInFuncNamespace/timeframe.d.ts +1 -1
  29. package/lib/components/editor/v3/parseScript/buildInVarNamespace/barstate.d.ts +19 -0
  30. package/lib/components/editor/v3/parseScript/buildInVarNamespace/index.d.ts +4 -0
  31. package/lib/components/editor/v3/parseScript/buildInVarNamespace/strategy.d.ts +126 -0
  32. package/lib/components/editor/v3/parseScript/buildInVarNamespace/syminfo.d.ts +22 -0
  33. package/lib/components/editor/v3/parseScript/buildInVarNamespace/ta.d.ts +17 -0
  34. package/lib/components/editor/v3/parseScript/buildInVariables.d.ts +96 -0
  35. package/lib/components/editor/v3/parseScript/constants.d.ts +119 -0
  36. package/lib/components/editor/v3/parseScript/enum.d.ts +283 -0
  37. package/lib/components/editor/v3/parseScript/parseToJs.d.ts +65 -0
  38. package/lib/components/editor/v3/parseScript/runType.d.ts +119 -0
  39. package/lib/components/editor/v3/parseScript/strategyNamespace/index.d.ts +2 -0
  40. package/lib/components/editor/{parseScript → v3/parseScript}/type.d.ts +1 -1
  41. package/lib/components/editor/v3/parseScript/utils.d.ts +21 -0
  42. package/lib/components/editor/v3/parseScript/visitorParser.d.ts +321 -0
  43. package/lib/components/editor/v3/parseScript/visitorUtils.d.ts +25 -0
  44. package/lib/components/editor/v3/parserTccWorker.d.ts +32 -0
  45. package/lib/components/editor/v3/scriptsRunWorker.d.ts +11 -0
  46. package/lib/{tccParser → components/editor/v3/tccParser}/LexerBase.d.ts +1 -1
  47. package/lib/components/editor/v3/tccParser/tccScriptParserVisitor.d.ts +359 -0
  48. package/lib/components/editor/v4/config/monarchTokens.d.ts +205 -0
  49. package/lib/components/editor/v4/constants/contents_zh.d.ts +6 -0
  50. package/lib/components/editor/v4/constants/index.d.ts +44 -0
  51. package/lib/components/editor/v4/parseScript/buildInConstants.d.ts +308 -0
  52. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/array.d.ts +84 -0
  53. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/box.d.ts +60 -0
  54. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/errorListener.d.ts +9 -0
  55. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/index.d.ts +17 -0
  56. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/input.d.ts +44 -0
  57. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/label.d.ts +61 -0
  58. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/line.d.ts +62 -0
  59. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/math.d.ts +50 -0
  60. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/strategy.d.ts +244 -0
  61. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/string.d.ts +38 -0
  62. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/ta.d.ts +118 -0
  63. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/table.d.ts +87 -0
  64. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/timeframe.d.ts +22 -0
  65. package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/barstate.d.ts +1 -1
  66. package/lib/components/editor/v4/parseScript/buildInVarNamespace/index.d.ts +8 -0
  67. package/lib/components/editor/v4/parseScript/buildInVarNamespace/strategy.d.ts +126 -0
  68. package/lib/components/editor/v4/parseScript/buildInVarNamespace/syminfo.d.ts +18 -0
  69. package/lib/components/editor/v4/parseScript/buildInVarNamespace/ta.d.ts +34 -0
  70. package/lib/components/editor/{parseScript → v4/parseScript}/constants.d.ts +1 -160
  71. package/lib/components/editor/v4/parseScript/constantsRun.d.ts +3 -0
  72. package/lib/components/editor/v4/parseScript/enum.d.ts +282 -0
  73. package/lib/components/editor/v4/parseScript/parseToJs.d.ts +65 -0
  74. package/lib/components/editor/v4/parseScript/strategyNamespace/index.d.ts +2 -0
  75. package/lib/components/editor/v4/parseScript/strategyNamespace/risk.d.ts +22 -0
  76. package/lib/components/editor/v4/parseScript/type.d.ts +39 -0
  77. package/lib/components/editor/v4/parseScript/utils.d.ts +21 -0
  78. package/lib/components/editor/v4/parseScript/visitorParser.d.ts +323 -0
  79. package/lib/components/editor/v4/parseScript/visitorUtils.d.ts +29 -0
  80. package/lib/components/editor/v4/parserTccWorker.d.ts +32 -0
  81. package/lib/components/editor/v4/scriptsRunWorker.d.ts +11 -0
  82. package/lib/components/editor/v4/tccParser/LexerBase.d.ts +19 -0
  83. package/lib/components/editor/v4/tccParser/tccScriptParserVisitor.d.ts +401 -0
  84. package/lib/components/editor/v5/config/monarchTokens.d.ts +205 -0
  85. package/lib/components/editor/v5/constants/contents_en.d.ts +6 -0
  86. package/lib/components/editor/{constants → v5/constants}/contents_zh.d.ts +1 -1
  87. package/lib/components/editor/v5/constants/index.d.ts +41 -0
  88. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/box.d.ts +1 -1
  89. package/lib/components/editor/v5/parseScript/buildInFuncNamespace/color.d.ts +25 -0
  90. package/lib/components/editor/v5/parseScript/buildInFuncNamespace/errorListener.d.ts +9 -0
  91. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/label.d.ts +1 -1
  92. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/line.d.ts +1 -1
  93. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/linefill.d.ts +1 -1
  94. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/log.d.ts +1 -1
  95. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/map.d.ts +1 -1
  96. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/math.d.ts +1 -1
  97. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/polyline.d.ts +1 -1
  98. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/strategy.d.ts +1 -1
  99. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/ta.d.ts +1 -1
  100. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/table.d.ts +1 -1
  101. package/lib/components/editor/v5/parseScript/buildInFuncNamespace/timeframe.d.ts +22 -0
  102. package/lib/components/editor/v5/parseScript/buildInVarNamespace/barstate.d.ts +22 -0
  103. package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/chart.d.ts +1 -1
  104. package/lib/components/editor/v5/parseScript/buildInVarNamespace/dividends.d.ts +8 -0
  105. package/lib/components/editor/v5/parseScript/buildInVarNamespace/earnings.d.ts +9 -0
  106. package/lib/components/editor/v5/parseScript/buildInVarNamespace/session.d.ts +12 -0
  107. package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/strategy.d.ts +1 -1
  108. package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/syminfo.d.ts +1 -1
  109. package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/ta.d.ts +4 -3
  110. package/lib/components/editor/v5/parseScript/buildInVarNamespace/timeframe.d.ts +16 -0
  111. package/lib/components/editor/v5/parseScript/constants.d.ts +124 -0
  112. package/lib/components/editor/v5/parseScript/constantsRun.d.ts +3 -0
  113. package/lib/components/editor/{parseScript → v5/parseScript}/parseToJs.d.ts +1 -1
  114. package/lib/components/editor/{parseScript → v5/parseScript}/parseToLibJs.d.ts +1 -1
  115. package/lib/components/editor/v5/parseScript/strategyNamespace/risk.d.ts +22 -0
  116. package/lib/components/editor/v5/parseScript/type.d.ts +39 -0
  117. package/lib/components/editor/{parseScript → v5/parseScript}/userTypeClass.d.ts +1 -1
  118. package/lib/components/editor/{parseScript → v5/parseScript}/utils.d.ts +1 -1
  119. package/lib/components/editor/{parseScript → v5/parseScript}/visitorParser.d.ts +1 -1
  120. package/lib/components/editor/{parseScript → v5/parseScript}/visitorUtils.d.ts +2 -2
  121. package/lib/components/editor/v5/parserTccWorker.d.ts +40 -0
  122. package/lib/components/editor/v5/scriptsRunWorker.d.ts +11 -0
  123. package/lib/components/editor/v5/tccParser/LexerBase.d.ts +19 -0
  124. package/lib/{tccParser → components/editor/v5/tccParser}/tccScriptParserVisitor.d.ts +1 -1
  125. package/lib/components/referenceManual/components/ContentItem.d.ts +2 -0
  126. package/lib/components/referenceManual/index.d.ts +2 -0
  127. package/lib/components/referenceManualPage/components/ContentItem.d.ts +1 -0
  128. package/lib/components/referenceManualPage/components/ManualLeft.d.ts +5 -0
  129. package/lib/components/referenceManualPage/index.d.ts +2 -0
  130. package/lib/index-Ce2gRdFk.js +12813 -0
  131. package/lib/index-CjECfhIW.js +28088 -0
  132. package/lib/index-UdtfRBFV.js +59792 -0
  133. package/lib/monarchTokens-Cj3v8l0Q.js +526 -0
  134. package/lib/monarchTokens-CnFYyHnR.js +191 -0
  135. package/lib/monarchTokens-oh3fO2YY.js +563 -0
  136. package/lib/packages/index.d.ts +3 -3
  137. package/lib/trading-vue-editor.es.packages.js +6356 -66629
  138. package/lib/trading-vue-editor.umd.packages.mjs +117 -75
  139. package/lib/utils/tools.d.ts +7 -2
  140. package/package.json +1 -1
  141. package/lib/assets/editor.worker-CT5Cb1wO.js +0 -11
  142. package/lib/assets/parserTccWorker-cjv11J0f.js +0 -279
  143. package/lib/assets/scriptsRunWorker-C5pVAsLn.js +0 -91
  144. /package/lib/components/editor/{parseScript → v3/parseScript}/buildInFuncNamespace/errorListener.d.ts +0 -0
  145. /package/lib/components/editor/{parseScript → v3/parseScript}/constantsRun.d.ts +0 -0
  146. /package/lib/components/editor/{parseScript → v3/parseScript}/strategyNamespace/risk.d.ts +0 -0
  147. /package/lib/components/editor/{parseScript → v4/parseScript}/buildInFuncNamespace/color.d.ts +0 -0
  148. /package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/dividends.d.ts +0 -0
  149. /package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/earnings.d.ts +0 -0
  150. /package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/session.d.ts +0 -0
  151. /package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/timeframe.d.ts +0 -0
  152. /package/lib/components/editor/{constants → v5/constants}/newContents_en.d.ts +0 -0
  153. /package/lib/components/editor/{constants → v5/constants}/newContents_zh.d.ts +0 -0
  154. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInConstants.d.ts +0 -0
  155. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/array.d.ts +0 -0
  156. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/chartPoint.d.ts +0 -0
  157. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/index.d.ts +0 -0
  158. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/input.d.ts +0 -0
  159. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/matrix.d.ts +0 -0
  160. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/runtime.d.ts +0 -0
  161. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/string.d.ts +0 -0
  162. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/syminfo.d.ts +0 -0
  163. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/index.d.ts +0 -0
  164. /package/lib/components/editor/{parseScript → v5/parseScript}/enum.d.ts +0 -0
  165. /package/lib/components/editor/{parseScript → v5/parseScript}/strategyNamespace/closedtrades.d.ts +0 -0
  166. /package/lib/components/editor/{parseScript → v5/parseScript}/strategyNamespace/index.d.ts +0 -0
  167. /package/lib/components/editor/{parseScript → v5/parseScript}/strategyNamespace/opentrades.d.ts +0 -0
@@ -0,0 +1,526 @@
1
+ const n = "tccScript", a = {
2
+ builtinFunctions: /abs|acos|alert|alertcondition|alma|array\.avg|array\.clear|array\.concat|array\.copy|array\.covariance|array\.fill|array\.from|array\.get|array\.includes|array\.indexof|array\.insert|array\.join|array\.lastindexof|array\.max|array\.median|array\.min|array\.mode|array\.new_bool|array\.new_box|array\.new_color|array\.new_float|array\.new_int|array\.new_label|array\.new_line|array\.new_string|array\.new_table|array\.pop|array\.push|array\.range|array\.remove|array\.reverse|array\.set|array\.shift|array\.size|array\.slice|array\.sort|array\.standardize|array\.stdev|array\.sum|array\.unshift|array\.variance|asin|atan|atr|avg|barcolor|barssince|bb|bbw|bgcolor|bool|box|box\.delete|box\.get_bottom|box\.get_left|box\.get_right|box\.get_top|box\.new|box\.set_bgcolor|box\.set_border_color|box\.set_border_style|box\.set_border_width|box\.set_bottom|box\.set_extend|box\.set_left|box\.set_lefttop|box\.set_right|box\.set_rightbottom|box\.set_top|cci|ceil|change|cmo|cog|color|color\.b|color\.from_gradient|color\.g|color\.new|color\.r|color\.rgb|color\.t|correlation|cos|cross|crossover|crossunder|cum|dayofmonth|dayofweek|dev|dividends|dmi|earnings|ema|exp|falling|fill|fixnan|float|floor|heikinashi|highest|highestbars|hline|hma|hour|iff|input|int|kagi|kc|kcw|label|label\.delete|label\.get_text|label\.get_x|label\.get_y|label\.new|label\.set_color|label\.set_size|label\.set_style|label\.set_text|label\.set_textalign|label\.set_textcolor|label\.set_tooltip|label\.set_x|label\.set_xloc|label\.set_xy|label\.set_y|label\.set_yloc|line|line\.delete|line\.get_price|line\.get_x1|line\.get_x2|line\.get_y1|line\.get_y2|line\.new|line\.set_color|line\.set_extend|line\.set_style|line\.set_width|line\.set_x1|line\.set_x2|line\.set_xloc|line\.set_xy1|line\.set_xy2|line\.set_y1|line\.set_y2|linebreak|linreg|log|log10|lowest|lowestbars|macd|max|max_bars_back|median|mfi|min|minute|mode|mom|month|na|nz|offset|percentile_linear_interpolation|percentile_nearest_rank|percentrank|pivothigh|pivotlow|plot|plotarrow|plotbar|plotcandle|plotchar|plotshape|pointfigure|pow|random|range|renko|rising|rma|roc|round|round_to_mintick|rsi|sar|second|security|sign|sin|sma|splits|sqrt|stdev|stoch|str\.format|str\.length|str\.replace_all|str\.split|strategy|strategy\.cancel|strategy\.cancel_all|strategy\.close|strategy\.close_all|strategy\.entry|strategy\.exit|strategy\.order|strategy\.risk\.allow_entry_in|strategy\.risk\.max_cons_loss_days|strategy\.risk\.max_drawdown|strategy\.risk\.max_intraday_filled_orders|strategy\.risk\.max_intraday_loss|strategy\.risk\.max_position_size|string|study|sum|supertrend|swma|table|table\.cell|table\.cell_set_bgcolor|table\.cell_set_height|table\.cell_set_text|table\.cell_set_text_color|table\.cell_set_text_halign|table\.cell_set_text_size|table\.cell_set_text_valign|table\.cell_set_width|table\.clear|table\.delete|table\.new|table\.set_bgcolor|table\.set_border_color|table\.set_border_width|table\.set_frame_color|table\.set_frame_width|table\.set_position|tan|tickerid|time|time_close|timestamp|todegrees|tonumber|toradians|tostring|tr|tsi|valuewhen|variance|vwap|vwma|weekofyear|wma|wpr|year/,
3
+ keywords: /and|break|by|continue|else|for|if|not|or|to|var|varip/,
4
+ tokenizer: {
5
+ root: [
6
+ [/\/\/\s*(?=@)/, "comment", "@comments"],
7
+ [/\/\/.*(?!@).*/, "comment"],
8
+ [/\'([^\'\\]|\\.)*$/, "string.invalid"],
9
+ [/'([^'\\]|\\.)*$/, "string.invalid"],
10
+ [/\"/, {
11
+ token: "string",
12
+ bracket: "@open",
13
+ next: "@stringDouble"
14
+ }],
15
+ [/'/, {
16
+ token: "string",
17
+ bracket: "@open",
18
+ next: "@stringSingle"
19
+ }],
20
+ [/(@builtinFunctions)(?=\s*\(|\s*<.*>)/, {
21
+ token: "support.function",
22
+ next: "@template"
23
+ }],
24
+ [/@punctuation/, {
25
+ token: "punctuation.operator",
26
+ next: "@property"
27
+ }],
28
+ [/(varip|var)\b(\s+)((?!(?:series|string|array|color|const|float|label|table|bool|line|box|int|continue|break|varip|else|and|for|not|var|by|if|or|to)\b)[\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|break|varip|else|and|for|not|var|by|if|or|to)\b)[\w\d_$]+)/, [{
29
+ token: "keyword"
30
+ }, {
31
+ token: "source"
32
+ }, {
33
+ token: "entity.name.type"
34
+ }, {
35
+ token: "paren"
36
+ }, {
37
+ token: "source"
38
+ }, {
39
+ token: "variable.other"
40
+ }]],
41
+ [/\b(?:@builtinTypes)(?=(\s*)[\[|<|(]|(?=\s+(?=[^.=][\w\(]*))|\s*$)/, {
42
+ token: "support.type",
43
+ next: "@template"
44
+ }],
45
+ [/^(\s*)\b(?!(?:series|string|array|color|const|float|label|table|bool|line|box|int|continue|break|varip|else|and|for|not|var|by|if|or|to)\b)([\w.\d_$]+)(\[\]|)(\s+)((?!(?:continue|break|varip|else|and|for|not|var|by|if|or|to)\b)[\w\d_$]+)(\s+)(\=)/, [{
46
+ token: "source"
47
+ }, {
48
+ token: "entity.name.type"
49
+ }, {
50
+ token: "paren"
51
+ }, {
52
+ token: "source"
53
+ }, {
54
+ token: "variable.other"
55
+ }, {
56
+ token: "source"
57
+ }, {
58
+ token: "keyword.equals"
59
+ }]],
60
+ [/(\((?:\s+))?((?!(?:continue|series|string|array|color|const|float|label|table|break|varip|bool|line|else|box|int|and|for|not|var|by|if|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/, "entity.name.type"],
61
+ [/[+-]?\d+\.\d*([eE][\-+]?\d+)?(?!\w+)/, "constant.numeric.float"],
62
+ [/[+-]?\.\d+([eE][\-+]?\d+)?(?!\w+)/, "constant.numeric.float"],
63
+ [/([+-]?(\d+))(?!\w+)(?!\w+)/, "constant.numeric.integer"],
64
+ [/(?:true|false)\b/, "constant.other.boolean"],
65
+ [/#[0-9a-fA-F]{6,8}\b/, "constant.other.color"],
66
+ [/\+=|\-=|\*=|\/=|%=|[\/%*+\-]|==|!=|<=|>=|=>|<|>|\?|\:=|\:|\,/, "keyword.operator"],
67
+ [/\b(?:continue|break|varip|else|and|for|not|var|by|if|or|to)\b/, "keyword"],
68
+ [/^[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/, "entity.name.function"],
69
+ [/[0-9]+\b/, "constant.numeric.integer"],
70
+ [/=/, "keyword.equals"],
71
+ [/\b(?:@builtinVariables)\b(?!\s*=\s*\w+)/, "support.variable"],
72
+ [/[(|)|\[|\]]/, "paren"],
73
+ [/[a-zA-Z_][a-zA-Z_0-9]*(?=\s*\()/, {
74
+ token: "entity.name.method"
75
+ }],
76
+ [/\w+\b/, "variable.other"]
77
+ ],
78
+ comments: [[/@[A-Za-z]+(\s*=\s*)?$/, {
79
+ token: "comment.annotation",
80
+ next: "@pop"
81
+ }], [/@[A-Za-z]+(\s*=\s*)?/, {
82
+ token: "comment.annotation"
83
+ }], [/(?!\s*@[A-Za-z]+).+$/, {
84
+ token: "comment",
85
+ next: "@pop"
86
+ }]],
87
+ stringDouble: [[/[^\\\"]+/, "string"], [/\\./, "string.invalid"], [/\"/, {
88
+ token: "string.quote",
89
+ bracket: "@close",
90
+ next: "@pop"
91
+ }]],
92
+ stringSingle: [[/[^\\']+/, "string"], [/\\./, "string.invalid"], [/'/, {
93
+ token: "string",
94
+ bracket: "@close",
95
+ next: "@pop"
96
+ }]],
97
+ template: [[/(@builtinTypes)/, {
98
+ token: "support.type"
99
+ }], [/(\((?:\s+))?((?!(?:continue|series|string|array|color|const|float|label|table|break|varip|bool|line|else|box|int|and|for|not|var|by|if|or|to)\b)\b[\w.\d_$]+(?=[\[\]]*(?:\s+)(?:[\w\d_$]+\s*(?:\,|\))+\s*).+(?:\=\>|\→)))/, "entity.name.type"], [/\(|\)|\[|\]|\=|\>/, {
100
+ token: "paren",
101
+ next: "@pop"
102
+ }], [/(\,)(\s+)/, ["keyword.operator", "source"]], [/(\,)/, {
103
+ token: "keyword.operator"
104
+ }], [/([\w.\d$]+)/, {
105
+ token: "entity.name.type"
106
+ }], [/(<|>)/, {
107
+ token: "paren"
108
+ }], [/\s(?=\w)|$/, {
109
+ token: "source",
110
+ next: "@pop"
111
+ }]],
112
+ property: [[/@punctuation/, {
113
+ token: "punctuation.operator"
114
+ }], [/(@builtinTypes)(?=\s*[(])/, {
115
+ token: "support.method",
116
+ next: "@pop"
117
+ }], [/[a-zA-Z_][a-zA-Z_0-9]+(?=\s*\()/, {
118
+ token: "entity.name.method",
119
+ next: "@pop"
120
+ }], [/[a-zA-Z0-9_]+/, {
121
+ token: "variable.other.property",
122
+ next: "@pop"
123
+ }], [/@empty/, {
124
+ token: "source",
125
+ next: "@pop"
126
+ }]]
127
+ },
128
+ builtinVariables: /adjustment\.dividends|adjustment\.none|adjustment\.splits|alert\.freq_all|alert\.freq_once_per_bar|alert\.freq_once_per_bar_close|barmerge\.gaps_off|barmerge\.gaps_on|barmerge\.lookahead_off|barmerge\.lookahead_on|color\.aqua|color\.black|color\.blue|color\.fuchsia|color\.gray|color\.green|color\.lime|color\.maroon|color\.navy|color\.olive|color\.orange|color\.purple|color\.red|color\.silver|color\.teal|color\.white|color\.yellow|currency\.AUD|currency\.CAD|currency\.CHF|currency\.EUR|currency\.GBP|currency\.HKD|currency\.JPY|currency\.NOK|currency\.NONE|currency\.NZD|currency\.RUB|currency\.SEK|currency\.SGD|currency\.TRY|currency\.USD|currency\.ZAR|dayofweek\.friday|dayofweek\.monday|dayofweek\.saturday|dayofweek\.sunday|dayofweek\.thursday|dayofweek\.tuesday|dayofweek\.wednesday|display\.all|display\.none|dividends\.gross|dividends\.net|earnings\.actual|earnings\.estimate|extend\.both|extend\.left|extend\.none|extend\.right|false|format\.inherit|format\.mintick|format\.percent|format\.price|format\.volume|hline\.style_dashed|hline\.style_dotted|hline\.style_solid|input\.bool|input\.color|input\.float|input\.integer|input\.price|input\.resolution|input\.session|input\.source|input\.string|input\.symbol|input\.time|label\.style_arrowdown|label\.style_arrowup|label\.style_circle|label\.style_cross|label\.style_diamond|label\.style_flag|label\.style_label_center|label\.style_label_down|label\.style_label_left|label\.style_label_lower_left|label\.style_label_lower_right|label\.style_label_right|label\.style_label_up|label\.style_label_upper_left|label\.style_label_upper_right|label\.style_none|label\.style_square|label\.style_triangledown|label\.style_triangleup|label\.style_xcross|line\.style_arrow_both|line\.style_arrow_left|line\.style_arrow_right|line\.style_dashed|line\.style_dotted|line\.style_solid|location\.abovebar|location\.absolute|location\.belowbar|location\.bottom|location\.top|math\.e|math\.phi|math\.pi|math\.rphi|order\.ascending|order\.descending|plot\.style_area|plot\.style_areabr|plot\.style_circles|plot\.style_columns|plot\.style_cross|plot\.style_histogram|plot\.style_line|plot\.style_linebr|plot\.style_stepline|position\.bottom_center|position\.bottom_left|position\.bottom_right|position\.middle_center|position\.middle_left|position\.middle_right|position\.top_center|position\.top_left|position\.top_right|scale\.left|scale\.none|scale\.right|session\.extended|session\.regular|shape\.arrowdown|shape\.arrowup|shape\.circle|shape\.cross|shape\.diamond|shape\.flag|shape\.labeldown|shape\.labelup|shape\.square|shape\.triangledown|shape\.triangleup|shape\.xcross|size\.auto|size\.huge|size\.large|size\.normal|size\.small|size\.tiny|splits\.denominator|splits\.numerator|strategy\.cash|strategy\.commission\.cash_per_contract|strategy\.commission\.cash_per_order|strategy\.commission\.percent|strategy\.direction\.all|strategy\.direction\.long|strategy\.direction\.short|strategy\.fixed|strategy\.long|strategy\.oca\.cancel|strategy\.oca\.none|strategy\.oca\.reduce|strategy\.percent_of_equity|strategy\.short|text\.align_bottom|text\.align_center|text\.align_left|text\.align_right|text\.align_top|true|xloc\.bar_index|xloc\.bar_time|yloc\.abovebar|yloc\.belowbar|yloc\.price|accdist|bar_index|barstate\.isconfirmed|barstate\.isfirst|barstate\.ishistory|barstate\.islast|barstate\.islastconfirmedhistory|barstate\.isnew|barstate\.isrealtime|close|dayofmonth|dayofweek|high|hl2|hlc3|hour|iii|low|minute|month|na|nvi|obv|ohlc4|open|pvi|pvt|second|session\.ismarket|session\.ispostmarket|session\.ispremarket|strategy\.closedtrades|strategy\.equity|strategy\.eventrades|strategy\.grossloss|strategy\.grossprofit|strategy\.initial_capital|strategy\.losstrades|strategy\.max_contracts_held_all|strategy\.max_contracts_held_long|strategy\.max_contracts_held_short|strategy\.max_drawdown|strategy\.netprofit|strategy\.openprofit|strategy\.opentrades|strategy\.position_avg_price|strategy\.position_entry_name|strategy\.position_size|strategy\.wintrades|syminfo\.basecurrency|syminfo\.currency|syminfo\.description|syminfo\.mintick|syminfo\.pointvalue|syminfo\.prefix|syminfo\.root|syminfo\.session|syminfo\.ticker|syminfo\.tickerid|syminfo\.timezone|syminfo\.type|time|time_close|time_tradingday|timeframe\.isdaily|timeframe\.isdwm|timeframe\.isintraday|timeframe\.isminutes|timeframe\.ismonthly|timeframe\.isseconds|timeframe\.isweekly|timeframe\.multiplier|timeframe\.period|timenow|tr|volume|vwap|wad|weekofyear|wvad|year/,
129
+ builtinTypes: /bool|box|color|float|int|label|line|string|table/,
130
+ punctuation: /[.](?![.])/,
131
+ importName: /[a-zA-Z\d\$_\-\.\u00a1-\uffff\/]+/,
132
+ importAlias: /[a-zA-Z\d\_\u00a1\uffff\/]+/,
133
+ empty: /^$/
134
+ };
135
+ var e;
136
+ (function(r) {
137
+ r[r.None = 0] = "None", r[r.Indent = 1] = "Indent", r[r.IndentOutdent = 2] = "IndentOutdent", r[r.Outdent = 3] = "Outdent";
138
+ })(e || (e = {}));
139
+ const i = {
140
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
141
+ comments: {
142
+ lineComment: "//",
143
+ blockComment: ["/*", "*/"]
144
+ },
145
+ brackets: [["(", ")"], ["[", "]"]],
146
+ folding: {
147
+ markers: {
148
+ start: /(\/\/#region)|(\/\/.*{($|\s))/,
149
+ end: /(\/\/#endregion)|(\/\/.*}($|\s))/
150
+ }
151
+ },
152
+ autoClosingPairs: [{
153
+ open: "{",
154
+ close: "}"
155
+ }, {
156
+ open: "[",
157
+ close: "]"
158
+ }, {
159
+ open: "(",
160
+ close: ")"
161
+ }, {
162
+ open: '"',
163
+ close: '"'
164
+ }, {
165
+ open: "'",
166
+ close: "'"
167
+ }],
168
+ surroundingPairs: [{
169
+ open: "{",
170
+ close: "}"
171
+ }, {
172
+ open: "[",
173
+ close: "]"
174
+ }, {
175
+ open: "(",
176
+ close: ")"
177
+ }, {
178
+ open: '"',
179
+ close: '"'
180
+ }, {
181
+ open: "'",
182
+ close: "'"
183
+ }, {
184
+ open: "<",
185
+ close: ">"
186
+ }],
187
+ onEnterRules: [{
188
+ beforeText: /\)\s*=>\s*$/,
189
+ action: {
190
+ indentAction: e.Indent
191
+ }
192
+ }, {
193
+ beforeText: /if\s+.*\s*$/,
194
+ action: {
195
+ indentAction: e.Indent
196
+ }
197
+ }, {
198
+ beforeText: /else/,
199
+ action: {
200
+ indentAction: e.Indent
201
+ }
202
+ }, {
203
+ beforeText: /for\s+\S+\s*=\s*\S+\s+to\s+\S+(?:\s+by\s+\S+)?\s*$/,
204
+ action: {
205
+ indentAction: e.Indent
206
+ }
207
+ }, {
208
+ beforeText: /for\s+(?:\[\S+\s+\S+]|\S+)\s+in\s+\S+\s*$/,
209
+ action: {
210
+ indentAction: e.Indent
211
+ }
212
+ }, {
213
+ beforeText: /switch\s+.*\s*$/,
214
+ action: {
215
+ indentAction: e.Indent
216
+ }
217
+ }, {
218
+ beforeText: /while\s+.*\s*$/,
219
+ action: {
220
+ indentAction: e.Indent
221
+ }
222
+ }, {
223
+ beforeText: /type\s+\w+/,
224
+ action: {
225
+ indentAction: e.Indent
226
+ }
227
+ }, {
228
+ beforeText: /enum\s+\w+/,
229
+ action: {
230
+ indentAction: e.Indent
231
+ }
232
+ }, {
233
+ beforeText: /^\s*$/,
234
+ action: {
235
+ indentAction: e.Outdent
236
+ }
237
+ }]
238
+ }, o = { "color-white": "#ffffff", "color-black": "#000000", "color-transparent": "#00000000", "color-cold-gray-50": "#F8F9FD", "color-cold-gray-100": "#F0F3FA", "color-cold-gray-150": "#E0E3EB", "color-cold-gray-200": "#D1D4DC", "color-cold-gray-250": "#C1C4CD", "color-cold-gray-300": "#B2B5BE", "color-cold-gray-350": "#A3A6AF", "color-cold-gray-400": "#9598A1", "color-cold-gray-450": "#868993", "color-cold-gray-500": "#787B86", "color-cold-gray-550": "#6A6D78", "color-cold-gray-600": "#5D606B", "color-cold-gray-650": "#50535E", "color-cold-gray-700": "#434651", "color-cold-gray-750": "#363A45", "color-cold-gray-800": "#2A2E39", "color-cold-gray-850": "#1E222D", "color-cold-gray-900": "#131722", "color-cold-gray-950": "#0C0E15", "color-ripe-red-50": "#FFEBEC", "color-ripe-red-100": "#FCCBCD", "color-ripe-red-200": "#FAA1A4", "color-ripe-red-300": "#F77C80", "color-ripe-red-400": "#F7525F", "color-ripe-red-500": "#F23645", "color-ripe-red-600": "#CC2F3C", "color-ripe-red-700": "#B22833", "color-ripe-red-800": "#991F29", "color-ripe-red-900": "#801922", "color-ripe-red-a100": "#FF8080", "color-ripe-red-a200": "#FF5252", "color-ripe-red-a400": "#FF3333", "color-ripe-red-a600": "#CC2929", "color-ripe-red-a700": "#802028", "color-ripe-red-a800": "#4D191D", "color-ripe-red-a900": "#331F20", "color-tan-orange-50": "#FFF3E0", "color-tan-orange-100": "#FFE0B2", "color-tan-orange-200": "#FFCC80", "color-tan-orange-300": "#ffb74d", "color-tan-orange-400": "#FFA726", "color-tan-orange-500": "#FF9800", "color-tan-orange-600": "#FB8C00", "color-tan-orange-700": "#F57C00", "color-tan-orange-800": "#EF6C00", "color-tan-orange-900": "#e65100", "color-tan-orange-a200": "#ffab40", "color-tan-orange-a400": "#FF9100", "color-tan-orange-a600": "#CC7014", "color-tan-orange-a700": "#8C541C", "color-tan-orange-a800": "#593A1B", "color-tan-orange-a900": "#33261A", "color-iguana-green-100": "#C8E6C9", "color-iguana-green-200": "#A5D6A7", "color-iguana-green-300": "#81c784", "color-iguana-green-400": "#66BB6A", "color-iguana-green-500": "#4caf50", "color-iguana-green-600": "#43a047", "color-iguana-green-700": "#388e3c", "color-iguana-green-800": "#2E7D32", "color-iguana-green-900": "#1B5E20", "color-iguana-green-a700": "#00c853", "color-banana-yellow-100": "#FFF9C4", "color-banana-yellow-200": "#FFF59D", "color-banana-yellow-300": "#FFF176", "color-banana-yellow-400": "#ffee58", "color-banana-yellow-500": "#ffeb3b", "color-banana-yellow-600": "#fdd835", "color-banana-yellow-700": "#fbc02d", "color-banana-yellow-800": "#f9a825", "color-banana-yellow-900": "#F57F17", "color-banana-yellow-a400": "#ffea00", "color-banana-yellow-a700": "#EEDA01", "color-tv-blue-50": "#E3EFFD", "color-tv-blue-100": "#BBD9FB", "color-tv-blue-200": "#90BFF9", "color-tv-blue-300": "#5B9CF6", "color-tv-blue-400": "#3179F5", "color-tv-blue-500": "#2962FF", "color-tv-blue-600": "#1E53E5", "color-tv-blue-700": "#1848CC", "color-tv-blue-800": "#143EB3", "color-tv-blue-900": "#0C3299", "color-tv-blue-a100": "#82b1ff", "color-tv-blue-a200": "#448aff", "color-tv-blue-a400": "#2979ff", "color-tv-blue-a600": "#2962FF", "color-tv-blue-a700": "#143A87", "color-tv-blue-a800": "#142E61", "color-tv-blue-a900": "#132042", "color-deep-blue-50": "#EDE7F6", "color-deep-blue-100": "#D1C4E9", "color-deep-blue-200": "#B39DDB", "color-deep-blue-300": "#9575cd", "color-deep-blue-400": "#7e57c2", "color-deep-blue-500": "#673ab7", "color-deep-blue-700": "#512da8", "color-deep-blue-800": "#4527A0", "color-deep-blue-900": "#311B92", "color-deep-blue-a100": "#b388ff", "color-deep-blue-a200": "#7C4DFF", "color-deep-blue-a400": "#651FFF", "color-deep-blue-a700": "#6200EA", "color-minty-green-50": "#DAF2EE", "color-minty-green-100": "#ACE5DC", "color-minty-green-200": "#70CCBD", "color-minty-green-300": "#42BDA8", "color-minty-green-400": "#22AB94", "color-minty-green-500": "#089981", "color-minty-green-600": "#06806B", "color-minty-green-700": "#056656", "color-minty-green-800": "#004D40", "color-minty-green-900": "#00332A", "color-minty-green-a400": "#2BD9BC", "color-minty-green-a600": "#24B29B", "color-minty-green-a700": "#1B7667", "color-minty-green-a800": "#10443B", "color-minty-green-a900": "#082621", "color-grapes-purple-50": "#F3E5F5", "color-grapes-purple-100": "#E1BEE7", "color-grapes-purple-200": "#CE93D8", "color-grapes-purple-300": "#ba68c8", "color-grapes-purple-400": "#ab47bc", "color-grapes-purple-500": "#9c27b0", "color-grapes-purple-600": "#8e24aa", "color-grapes-purple-700": "#7b1fa2", "color-grapes-purple-800": "#6A1B9A", "color-grapes-purple-900": "#4A148C", "color-grapes-purple-a100": "#EA80FC", "color-grapes-purple-a200": "#E040FB", "color-grapes-purple-a400": "#D500F9", "color-grapes-purple-a700": "#aa00ff", "color-berry-pink-100": "#F8BBD0", "color-berry-pink-200": "#f48fb1", "color-berry-pink-300": "#f06292", "color-berry-pink-400": "#ec407a", "color-berry-pink-500": "#e91e63", "color-berry-pink-600": "#D81B60", "color-berry-pink-700": "#C2185B", "color-berry-pink-800": "#AD1457", "color-berry-pink-900": "#880E4F", "color-berry-pink-a100": "#ff80ab", "color-berry-pink-a200": "#ff4081", "color-berry-pink-a400": "#f50057", "color-sky-blue-100": "#B2EBF2", "color-sky-blue-200": "#80DEEA", "color-sky-blue-300": "#4dd0e1", "color-sky-blue-400": "#26c6da", "color-sky-blue-500": "#00bcd4", "color-sky-blue-600": "#00acc1", "color-sky-blue-700": "#0097A7", "color-sky-blue-800": "#00838F", "color-sky-blue-900": "#006064", "color-sky-blue-a400": "#00e5ff", "color-sky-blue-a700": "#00B8D4", "color-deep-blue-600": "#5E35B1", "color-forest-green-50": "#DAF2E6", "color-forest-green-100": "#ACE5C9", "color-forest-green-200": "#70CC9E", "color-forest-green-300": "#42BD7F", "color-forest-green-400": "#22AB67", "color-forest-green-500": "#089950", "color-forest-green-600": "#068043", "color-forest-green-700": "#056636", "color-forest-green-800": "#004D27", "color-forest-green-900": "#1A3326", "color-facebook": "#1877F2", "color-deep-facebook": "#1564CA", "color-twitter": "#1DA1F2", "color-deep-twitter": "#188CD3", "color-youtube": "#FF0000", "color-linkedin": "#007BB5", "color-seeking-alpha-brand": "#ff7200" };
239
+ function t(r, l = 1) {
240
+ return r + Math.round(255 * Math.min(Math.max(l, 0), 1)).toString(16).toUpperCase().padStart(2, "0");
241
+ }
242
+ const c = {
243
+ base: "vs",
244
+ inherit: !0,
245
+ rules: [{
246
+ token: "comment",
247
+ foreground: o["color-cold-gray-400"]
248
+ }, {
249
+ token: "comment.annotation",
250
+ fontStyle: "bold"
251
+ }, {
252
+ token: "text",
253
+ foreground: o["color-cold-gray-900"]
254
+ }, {
255
+ token: "string",
256
+ foreground: o["color-iguana-green-700"]
257
+ }, {
258
+ token: "constant.numeric",
259
+ foreground: o["color-banana-yellow-900"]
260
+ }, {
261
+ token: "constant.language",
262
+ foreground: o["color-ripe-red-a600"]
263
+ }, {
264
+ token: "constant.other.color",
265
+ foreground: o["color-ripe-red-a600"]
266
+ }, {
267
+ token: "constant.other",
268
+ foreground: o["color-ripe-red-a600"]
269
+ }, {
270
+ token: "support.variable",
271
+ foreground: o["color-ripe-red-a600"]
272
+ }, {
273
+ token: "support.function",
274
+ foreground: o["color-tv-blue-a600"]
275
+ }, {
276
+ token: "support.type",
277
+ foreground: o["color-minty-green-400"],
278
+ fontStyle: "bold"
279
+ }, {
280
+ token: "entity.name.type",
281
+ foreground: o["color-minty-green-400"],
282
+ fontStyle: "bold"
283
+ }, {
284
+ token: "support.method",
285
+ foreground: o["color-tv-blue-a600"]
286
+ }, {
287
+ token: "keyword.equals",
288
+ foreground: o["color-minty-green-400"]
289
+ }, {
290
+ token: "keyword.operator",
291
+ foreground: o["color-minty-green-400"]
292
+ }, {
293
+ token: "keyword.other",
294
+ foreground: o["color-minty-green-400"]
295
+ }, {
296
+ token: "keyword",
297
+ foreground: o["color-minty-green-400"]
298
+ }, {
299
+ token: "variable.other",
300
+ foreground: o["color-cold-gray-800"]
301
+ }, {
302
+ token: "variable.other.property",
303
+ foreground: o["color-cold-gray-800"]
304
+ }, {
305
+ token: "paren",
306
+ foreground: o["color-black"]
307
+ }, {
308
+ token: "entity.name.function",
309
+ foreground: o["color-tv-blue-900"]
310
+ }, {
311
+ token: "entity.name.method",
312
+ foreground: o["color-tv-blue-900"]
313
+ }, {
314
+ token: "meta.function-call",
315
+ foreground: o["color-grapes-purple-600"]
316
+ }, {
317
+ token: "entity.name.module.name",
318
+ foreground: o["color-grapes-purple-600"]
319
+ }, {
320
+ token: "entity.name.module",
321
+ foreground: o["color-tv-blue-a600"]
322
+ }, {
323
+ token: "",
324
+ background: o["color-white"]
325
+ }],
326
+ colors: {
327
+ "editor.foreground": o["color-cold-gray-900"],
328
+ "editor.background": "#00000000",
329
+ "editorLineNumber.foreground": o["color-cold-gray-400"],
330
+ "editorLineNumber.activeForeground": o["color-cold-gray-700"],
331
+ "editorHoverWidget.background": o["color-white"],
332
+ "editorHoverWidget.statusBarBackground": o["color-cold-gray-150"],
333
+ "editorHoverWidget.foreground": o["color-cold-gray-900"],
334
+ "editorWidget.background": o["color-white"],
335
+ "editorWidget.foreground": o["color-cold-gray-900"],
336
+ "editorGutter.background": "#00000000",
337
+ "editor.foldBackground": t(o["color-cold-gray-200"], 0.5),
338
+ "editor.lineHighlightBackground": o["color-tv-blue-50"],
339
+ "editor.lineHighlightBorder": o["color-tv-blue-50"],
340
+ "editor.rangeHighlightBackground": o["color-tv-blue-100"],
341
+ "editorBracketMatch.background": o["color-cold-gray-150"],
342
+ "editor.selectionBackground": o["color-tv-blue-100"],
343
+ "editor.selectionHighlightBackground": o["color-tv-blue-50"],
344
+ "editor.findMatchBackground": o["color-tan-orange-100"],
345
+ "editor.findMatchHighlightBackground": o["color-tan-orange-100"],
346
+ "editor.findMatchBorder": o["color-tan-orange-500"],
347
+ "list.foreground": o["color-cold-gray-900"],
348
+ "list.hoverForeground": o["color-cold-gray-900"],
349
+ "list.activeSelectionBackground": o["color-tv-blue-500"],
350
+ "list.hoverBackground": o["color-tv-blue-50"],
351
+ "list.focusHighlightForeground": o["color-tv-blue-100"],
352
+ "list.inactiveSelectionBackground": o["color-tv-blue-500"],
353
+ "keybindingLabel.background": o["color-white"],
354
+ "keybindingLabel.foreground": o["color-cold-gray-900"],
355
+ "keybindingLabel.border": o["color-cold-gray-150"],
356
+ "input.foreground": o["color-cold-gray-900"],
357
+ "textLink.foreground": o["color-tv-blue-500"],
358
+ "textLink.activeForeground": o["color-tv-blue-600"],
359
+ "peekViewEditor.matchHighlightBackground": o["color-tan-orange-100"],
360
+ "peekViewResult.lineForeground": o["color-cold-gray-900"],
361
+ "editorMarkerNavigationWarning.background": o["color-banana-yellow-800"],
362
+ "inputValidation.warningBackground": o["color-banana-yellow-800"],
363
+ "diffEditor.insertedTextBackground": t(o["color-forest-green-500"], 0.3),
364
+ "diffEditor.insertedLineBackground": t(o["color-forest-green-500"], 0.15),
365
+ "diffEditor.removedTextBackground": t(o["color-ripe-red-500"], 0.3),
366
+ "diffEditor.removedLineBackground": t(o["color-ripe-red-500"], 0.15),
367
+ "editorInlayHint.background": o["color-cold-gray-150"],
368
+ "editorInlayHint.foreground": o["color-cold-gray-550"],
369
+ "editorError.foreground": o["color-ripe-red-500"],
370
+ "editorWarning.foreground": o["color-tan-orange-500"]
371
+ }
372
+ }, s = {
373
+ base: "vs-dark",
374
+ inherit: !0,
375
+ rules: [{
376
+ token: "comment",
377
+ foreground: o["color-cold-gray-500"]
378
+ }, {
379
+ token: "comment.annotation",
380
+ fontStyle: "bold"
381
+ }, {
382
+ token: "text",
383
+ foreground: o["color-white"]
384
+ }, {
385
+ token: "string",
386
+ foreground: o["color-iguana-green-700"]
387
+ }, {
388
+ token: "constant.numeric",
389
+ foreground: o["color-banana-yellow-900"]
390
+ }, {
391
+ token: "constant.language",
392
+ foreground: o["color-ripe-red-300"]
393
+ }, {
394
+ token: "constant.other.color",
395
+ foreground: o["color-ripe-red-300"]
396
+ }, {
397
+ token: "constant.other",
398
+ foreground: o["color-ripe-red-300"]
399
+ }, {
400
+ token: "support.variable",
401
+ foreground: o["color-ripe-red-300"]
402
+ }, {
403
+ token: "support.function",
404
+ foreground: o["color-tv-blue-300"]
405
+ }, {
406
+ token: "support.method",
407
+ foreground: o["color-tv-blue-300"]
408
+ }, {
409
+ token: "support.type",
410
+ foreground: o["color-minty-green-300"],
411
+ fontStyle: "bold"
412
+ }, {
413
+ token: "entity.name.type",
414
+ foreground: o["color-minty-green-300"],
415
+ fontStyle: "bold"
416
+ }, {
417
+ token: "keyword.equals",
418
+ foreground: o["color-minty-green-300"]
419
+ }, {
420
+ token: "keyword.operator",
421
+ foreground: o["color-minty-green-300"]
422
+ }, {
423
+ token: "keyword.other",
424
+ foreground: o["color-minty-green-300"]
425
+ }, {
426
+ token: "keyword",
427
+ foreground: o["color-minty-green-300"]
428
+ }, {
429
+ token: "variable.other",
430
+ foreground: o["color-cold-gray-200"]
431
+ }, {
432
+ token: "variable.other.property",
433
+ foreground: o["color-cold-gray-200"]
434
+ }, {
435
+ token: "paren",
436
+ foreground: o["color-white"]
437
+ }, {
438
+ token: "entity.name.function",
439
+ foreground: o["color-tv-blue-400"]
440
+ }, {
441
+ token: "entity.name.method",
442
+ foreground: o["color-tv-blue-400"]
443
+ }, {
444
+ token: "meta.function-call",
445
+ foreground: o["color-grapes-purple-300"]
446
+ }, {
447
+ token: "entity.name.module.name",
448
+ foreground: o["color-grapes-purple-300"]
449
+ }, {
450
+ token: "entity.name.module",
451
+ foreground: o["color-tv-blue-300"]
452
+ }, {
453
+ token: "",
454
+ background: o["color-cold-gray-900"]
455
+ }],
456
+ colors: {
457
+ "editor.foreground": o["color-white"],
458
+ "editor.background": o["color-cold-gray-900"],
459
+ "editorLineNumber.foreground": o["color-cold-gray-500"],
460
+ "editorLineNumber.activeForeground": o["color-cold-gray-300"],
461
+ "editorWidget.background": o["color-cold-gray-850"],
462
+ "editorHoverWidget.background": o["color-cold-gray-850"],
463
+ "editorHoverWidget.foreground": o["color-cold-gray-300"],
464
+ "editorHoverWidget.statusBarBackground": o["color-cold-gray-900"],
465
+ "editorWidget.foreground": o["color-cold-gray-300"],
466
+ "editorGutter.background": o["color-cold-gray-900"],
467
+ "editor.foldBackground": t(o["color-cold-gray-700"], 0.5),
468
+ "editor.lineHighlightBackground": o["color-tv-blue-a900"],
469
+ "editor.lineHighlightBorder": o["color-tv-blue-a900"],
470
+ "editor.rangeHighlightBackground": o["color-tv-blue-a800"],
471
+ "editorBracketMatch.background": o["color-cold-gray-750"],
472
+ "editor.selectionBackground": o["color-tv-blue-a800"],
473
+ "editor.selectionHighlightBackground": o["color-cold-gray-800"],
474
+ "list.foreground": o["color-cold-gray-350"],
475
+ "list.hoverForeground": o["color-cold-gray-350"],
476
+ "list.activeSelectionBackground": o["color-tv-blue-500"],
477
+ "list.hoverBackground": o["color-tv-blue-900"],
478
+ "list.focusHighlightForeground": o["color-tv-blue-300"],
479
+ "list.inactiveSelectionBackground": o["color-tv-blue-500"],
480
+ "keybindingLabel.background": o["color-cold-gray-800"],
481
+ "keybindingLabel.foreground": o["color-cold-gray-300"],
482
+ "keybindingLabel.border": o["color-cold-gray-700"],
483
+ "input.foreground": o["color-cold-gray-350"],
484
+ "textLink.foreground": o["color-tv-blue-500"],
485
+ "textLink.activeForeground": o["color-tv-blue-600"],
486
+ "peekViewEditor.matchHighlightBackground": o["color-tan-orange-a800"],
487
+ "peekViewResult.lineForeground": o["color-cold-gray-350"],
488
+ "diffEditor.insertedTextBackground": t(o["color-iguana-green-a700"], 0.3),
489
+ "diffEditor.insertedLineBackground": t(o["color-iguana-green-a700"], 0.15),
490
+ "diffEditor.removedTextBackground": t(o["color-ripe-red-a400"], 0.3),
491
+ "diffEditor.removedLineBackground": t(o["color-ripe-red-a400"], 0.15),
492
+ "editorInlayHint.background": o["color-cold-gray-800"],
493
+ "editorInlayHint.foreground": o["color-cold-gray-400"],
494
+ "editorError.foreground": o["color-ripe-red-500"],
495
+ "editorWarning.foreground": o["color-tan-orange-700"]
496
+ }
497
+ }, d = /(\\(?:[\\'"]))|(\\$)|("|$)|($)/g, g = /(\\(?:[\\'"]))|(\\$)|('|$)|($)/g, y = {
498
+ "color.aqua": "#00BCD4",
499
+ "color.black": "#363A45",
500
+ "color.blue": "#2962ff",
501
+ "color.fuchsia": "#E040FB",
502
+ "color.gray": "#787B86",
503
+ "color.green": "#4CAF50",
504
+ "color.lime": "#00E676",
505
+ "color.maroon": "#880E4F",
506
+ "color.navy": "#311B92",
507
+ "color.olive": "#808000",
508
+ "color.orange": "#FF9800",
509
+ "color.purple": "#9C27B0",
510
+ "color.red": "#FF5252",
511
+ "color.silver": "#B2B5BE",
512
+ "color.teal": "#00897B",
513
+ "color.white": "#FFFFFF",
514
+ "color.yellow": "#FFEB3B"
515
+ };
516
+ export {
517
+ o as COLORS,
518
+ i as CONFIGURATION,
519
+ y as DEFAULT_COLORS,
520
+ n as LANGAGE_NAME,
521
+ a as LANGUAGE_MONARCH_TOKENS,
522
+ d as QQSTRING_REG,
523
+ g as QSTRING_REG,
524
+ c as VS,
525
+ s as VS_DARK
526
+ };