peachsim 0.1.2438 → 0.1.2439

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 (175) hide show
  1. package/README.md +30 -98
  2. package/cli/app-catalog.ts +4 -73
  3. package/cli/catalog/content.ts +1 -1
  4. package/cli/cloud-box-artifact.ts +26 -39
  5. package/cli/cloud-client.ts +69 -117
  6. package/cli/cloud-session.ts +2 -9
  7. package/cli/commands/box.ts +6 -6
  8. package/cli/commands/control.ts +4 -11
  9. package/cli/commands/flow.ts +5 -9
  10. package/cli/commands/kotlin.ts +2 -1
  11. package/cli/commands/platform.ts +21 -39
  12. package/cli/commands/record-three.ts +1 -1
  13. package/cli/commands/shell-url.ts +29 -23
  14. package/cli/dev-build-freshness.ts +4 -3
  15. package/cli/native-input.ts +2 -2
  16. package/cli/outbound-endpoints.ts +20 -45
  17. package/cli/remote-project-bundle.ts +8 -14
  18. package/cli/remote-simulators.ts +1 -1
  19. package/cli/send-to-box.ts +2 -1
  20. package/detox/jest-preset.cjs +1 -1
  21. package/detox/jest-transform.cjs +40 -2
  22. package/dist-lib/agent-daemon-client.cjs +34 -24
  23. package/dist-lib/agent-events.cjs +1 -1
  24. package/dist-lib/attached-projects.cjs +19 -17
  25. package/dist-lib/auth/shared-session.cjs +18 -16
  26. package/dist-lib/backend-origin.cjs +1 -1
  27. package/dist-lib/beta.cjs +1 -1
  28. package/dist-lib/beta.mjs +2 -1
  29. package/dist-lib/bridge-constants.cjs +1 -1
  30. package/dist-lib/bridge-contract-input.cjs +1 -1
  31. package/dist-lib/bridge-contract-input.mjs +20 -583
  32. package/dist-lib/bridge-contract.cjs +1 -1
  33. package/dist-lib/bridge-contract.mjs +17 -99
  34. package/dist-lib/bundle-channel.cjs +8718 -5552
  35. package/dist-lib/capture-contract.cjs +1 -1
  36. package/dist-lib/capture-contract.mjs +13 -363
  37. package/dist-lib/cloud-contract.cjs +1 -1
  38. package/dist-lib/cloud-contract.mjs +34 -155
  39. package/dist-lib/cloud-test-args.cjs +1 -1
  40. package/dist-lib/cloud-test-args.mjs +2 -1
  41. package/dist-lib/cloud.cjs +1 -1
  42. package/dist-lib/cloud.mjs +26 -155
  43. package/dist-lib/config.cjs +1 -4
  44. package/dist-lib/config.mjs +11 -30
  45. package/dist-lib/detox/index.cjs +2554 -230
  46. package/dist-lib/detox/jest-preset.cjs +1 -1
  47. package/dist-lib/detox/jest-transform.cjs +40 -2
  48. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  49. package/dist-lib/esm-chunks/acorn-FGE4PYDJ.mjs +50 -0
  50. package/dist-lib/esm-chunks/chunk-2EUHEBIJ.mjs +664 -0
  51. package/dist-lib/esm-chunks/chunk-2NPABFPN.mjs +5719 -0
  52. package/dist-lib/esm-chunks/chunk-4ZFNH7TU.mjs +10 -0
  53. package/dist-lib/esm-chunks/chunk-5T4XBUJP.mjs +1353 -0
  54. package/dist-lib/esm-chunks/chunk-6VY6HTJC.mjs +18951 -0
  55. package/dist-lib/esm-chunks/chunk-7HANEMO4.mjs +188 -0
  56. package/dist-lib/esm-chunks/chunk-C3WBGYP6.mjs +186 -0
  57. package/dist-lib/esm-chunks/chunk-CVGDRROP.mjs +57 -0
  58. package/dist-lib/esm-chunks/chunk-DADGQELM.mjs +375 -0
  59. package/dist-lib/esm-chunks/chunk-DEGYKHN7.mjs +12 -0
  60. package/dist-lib/esm-chunks/chunk-HIDNO3RP.mjs +10992 -0
  61. package/dist-lib/esm-chunks/chunk-HSADZOVN.mjs +30 -0
  62. package/dist-lib/esm-chunks/chunk-IWJUYJQO.mjs +42 -0
  63. package/dist-lib/esm-chunks/chunk-JCKI3VZ6.mjs +10 -0
  64. package/dist-lib/esm-chunks/chunk-KSQ5KM5Y.mjs +17 -0
  65. package/dist-lib/esm-chunks/chunk-KVTIDLBK.mjs +598 -0
  66. package/dist-lib/esm-chunks/chunk-MIQSRBVU.mjs +10 -0
  67. package/dist-lib/esm-chunks/chunk-YB27R6JG.mjs +115 -0
  68. package/dist-lib/esm-chunks/metro-layout-parser-MVUAXRUJ.mjs +58 -0
  69. package/dist-lib/expo-swift-bundle.cjs +7856 -4707
  70. package/dist-lib/expo-swift-metadata.cjs +1 -1
  71. package/dist-lib/expo-swift-metadata.mjs +16 -165
  72. package/dist-lib/home-paths.cjs +1 -1
  73. package/dist-lib/host/bridge-host.cjs +15658 -11404
  74. package/dist-lib/host/fetch-proxy-handler.cjs +3927 -342
  75. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  76. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -1
  77. package/dist-lib/host/replacement-module-handler.cjs +4 -4
  78. package/dist-lib/host/websocket-proxy.cjs +1 -1
  79. package/dist-lib/index.cjs +9145 -32150
  80. package/dist-lib/jump-to-source-babel.cjs +1 -1
  81. package/dist-lib/jump-to-source-native.cjs +2 -2
  82. package/dist-lib/kotlin-host.cjs +260 -253
  83. package/dist-lib/menu.cjs +1 -1
  84. package/dist-lib/menu.mjs +5 -13
  85. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  86. package/dist-lib/metro-fingerprint-registry.mjs +5 -6
  87. package/dist-lib/metro-production-bundle.cjs +22 -3
  88. package/dist-lib/metro-production-bundle.mjs +26 -92
  89. package/dist-lib/native-app-identity-project.cjs +663 -451
  90. package/dist-lib/native-app-identity-project.mjs +509 -2318
  91. package/dist-lib/native-app-identity.cjs +1 -1
  92. package/dist-lib/native-app-identity.mjs +27 -1340
  93. package/dist-lib/native-firebase-metadata.cjs +1 -1
  94. package/dist-lib/native-firebase-metadata.mjs +5 -18
  95. package/dist-lib/pdfium-raster.cjs +1 -1
  96. package/dist-lib/pdfium-raster.mjs +2 -1
  97. package/dist-lib/plist.cjs +2 -2
  98. package/dist-lib/plist.mjs +5 -7
  99. package/dist-lib/profiles.cjs +2 -1
  100. package/dist-lib/public-brand.cjs +1 -1
  101. package/dist-lib/public-origins-lib-esm.json +246 -187
  102. package/dist-lib/public-origins-lib-static.json +1 -1
  103. package/dist-lib/public-origins-lib.json +1059 -1238
  104. package/dist-lib/react-native-host-modules.cjs +1 -1
  105. package/dist-lib/react-native-host-modules.mjs +2 -1
  106. package/dist-lib/reap-browser.cjs +18 -7
  107. package/dist-lib/scripts/dev-server-scanner.cjs +6 -230
  108. package/dist-lib/sdk.cjs +1 -1
  109. package/dist-lib/sdk.mjs +22 -78
  110. package/dist-lib/skills.cjs +21657 -17374
  111. package/dist-lib/swift-compile.cjs +1343 -1318
  112. package/dist-lib/swift-compile.mjs +68 -19013
  113. package/dist-lib/swift-package.cjs +1 -1
  114. package/dist-lib/swift-package.mjs +35 -630
  115. package/dist-lib/swift-submit.cjs +1 -1
  116. package/dist-lib/swift-submit.mjs +9 -24
  117. package/dist-lib/swift-toolchain.cjs +1 -1
  118. package/dist-lib/swift.cjs +1 -1
  119. package/dist-lib/vendor/@peculiar/x509.cjs +18061 -0
  120. package/dist-lib/vendor/acorn.cjs +5699 -0
  121. package/dist-lib/vendor/bplist-parser.cjs +1589 -0
  122. package/dist-lib/vendor/ignore.cjs +455 -0
  123. package/dist-lib/vendor/magic-string.cjs +1693 -0
  124. package/dist-lib/vendor/plist.cjs +10978 -0
  125. package/dist-lib/vendor/smol-toml.cjs +768 -0
  126. package/dist-lib/vendor/stream-json.cjs +1997 -0
  127. package/dist-lib/vendor/sucrase/dist/index.js.cjs +23593 -0
  128. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +15750 -0
  129. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +11316 -0
  130. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +482 -0
  131. package/dist-lib/vendor/sucrase.cjs +23593 -0
  132. package/dist-lib/vendor/terser.cjs +36874 -0
  133. package/dist-lib/vendor/valibot.cjs +6253 -0
  134. package/dist-lib/vendor/zod.cjs +23262 -0
  135. package/dist-lib/worklet-executable.cjs +3 -3
  136. package/dist-lib/worklet-executable.mjs +11 -16
  137. package/dist-types/packages/peach-engine/src/config.d.ts +1 -1
  138. package/kotlin/fork/NOTICE +3 -0
  139. package/kotlin/sdk.tar.gz +0 -0
  140. package/kotlin/toolchain.json +6 -6
  141. package/package.json +17 -121
  142. package/runtime-companion.json +1 -1
  143. package/scripts/dev-server-scanner.ts +13 -223
  144. package/src/android-autolinking.ts +2 -2
  145. package/src/bundle-channel.mjs +3 -15
  146. package/src/cloud-contract.ts +3 -4
  147. package/src/config.ts +0 -5
  148. package/src/host/bridge-host.ts +19 -1
  149. package/src/host/server-scan-handler.ts +1 -9
  150. package/src/index.ts +0 -2
  151. package/src/kotlin-host.ts +1 -2
  152. package/src/kotlinDiscoveryContract.ts +1 -0
  153. package/src/metro-production-bundle.ts +28 -6
  154. package/src/native-seam-manifest.ts +0 -13
  155. package/src/one-native-app-catalog.ts +8 -27
  156. package/src/one-native-app-config.ts +95 -0
  157. package/src/one-native-source.ts +250 -0
  158. package/src/one-widget-metadata.ts +45 -126
  159. package/src/oneWidgetContract.ts +80 -117
  160. package/src/serverDiscoveryContract.ts +0 -1
  161. package/src/simulator-route.ts +8 -0
  162. package/src/vite-plugin.ts +2 -2
  163. package/src/xcode-project.ts +1 -1
  164. package/dist-lib/metro.cjs +0 -27984
  165. package/dist-lib/vite-swift.cjs +0 -43376
  166. package/dist-lib/vite.cjs +0 -21456
  167. package/src/androidAutolinkingContract.ts +0 -48
  168. package/src/androidRootModuleContract.ts +0 -39
  169. package/src/dev-server-open.ts +0 -92
  170. package/src/metro-plugin.ts +0 -578
  171. package/src/one-widget-discovery.ts +0 -23
  172. package/src/swift-vite-lifetime.ts +0 -42
  173. package/src/vite-plugin-one.ts +0 -746
  174. package/src/vite-plugin-swift.ts +0 -225
  175. package/src/vite.d.ts +0 -10
@@ -0,0 +1,482 @@
1
+ /*! peach v0.1.2439 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
+ "use strict";
4
+
5
+ // ../../node_modules/sucrase/dist/parser/tokenizer/types.js
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var TokenType;
8
+ (function(TokenType2) {
9
+ const PRECEDENCE_MASK = 15;
10
+ TokenType2[TokenType2["PRECEDENCE_MASK"] = PRECEDENCE_MASK] = "PRECEDENCE_MASK";
11
+ const IS_KEYWORD = 1 << 4;
12
+ TokenType2[TokenType2["IS_KEYWORD"] = IS_KEYWORD] = "IS_KEYWORD";
13
+ const IS_ASSIGN = 1 << 5;
14
+ TokenType2[TokenType2["IS_ASSIGN"] = IS_ASSIGN] = "IS_ASSIGN";
15
+ const IS_RIGHT_ASSOCIATIVE = 1 << 6;
16
+ TokenType2[TokenType2["IS_RIGHT_ASSOCIATIVE"] = IS_RIGHT_ASSOCIATIVE] = "IS_RIGHT_ASSOCIATIVE";
17
+ const IS_PREFIX = 1 << 7;
18
+ TokenType2[TokenType2["IS_PREFIX"] = IS_PREFIX] = "IS_PREFIX";
19
+ const IS_POSTFIX = 1 << 8;
20
+ TokenType2[TokenType2["IS_POSTFIX"] = IS_POSTFIX] = "IS_POSTFIX";
21
+ const IS_EXPRESSION_START = 1 << 9;
22
+ TokenType2[TokenType2["IS_EXPRESSION_START"] = IS_EXPRESSION_START] = "IS_EXPRESSION_START";
23
+ const num = 512;
24
+ TokenType2[TokenType2["num"] = num] = "num";
25
+ const bigint = 1536;
26
+ TokenType2[TokenType2["bigint"] = bigint] = "bigint";
27
+ const decimal = 2560;
28
+ TokenType2[TokenType2["decimal"] = decimal] = "decimal";
29
+ const regexp = 3584;
30
+ TokenType2[TokenType2["regexp"] = regexp] = "regexp";
31
+ const string = 4608;
32
+ TokenType2[TokenType2["string"] = string] = "string";
33
+ const name = 5632;
34
+ TokenType2[TokenType2["name"] = name] = "name";
35
+ const eof = 6144;
36
+ TokenType2[TokenType2["eof"] = eof] = "eof";
37
+ const bracketL = 7680;
38
+ TokenType2[TokenType2["bracketL"] = bracketL] = "bracketL";
39
+ const bracketR = 8192;
40
+ TokenType2[TokenType2["bracketR"] = bracketR] = "bracketR";
41
+ const braceL = 9728;
42
+ TokenType2[TokenType2["braceL"] = braceL] = "braceL";
43
+ const braceBarL = 10752;
44
+ TokenType2[TokenType2["braceBarL"] = braceBarL] = "braceBarL";
45
+ const braceR = 11264;
46
+ TokenType2[TokenType2["braceR"] = braceR] = "braceR";
47
+ const braceBarR = 12288;
48
+ TokenType2[TokenType2["braceBarR"] = braceBarR] = "braceBarR";
49
+ const parenL = 13824;
50
+ TokenType2[TokenType2["parenL"] = parenL] = "parenL";
51
+ const parenR = 14336;
52
+ TokenType2[TokenType2["parenR"] = parenR] = "parenR";
53
+ const comma = 15360;
54
+ TokenType2[TokenType2["comma"] = comma] = "comma";
55
+ const semi = 16384;
56
+ TokenType2[TokenType2["semi"] = semi] = "semi";
57
+ const colon = 17408;
58
+ TokenType2[TokenType2["colon"] = colon] = "colon";
59
+ const doubleColon = 18432;
60
+ TokenType2[TokenType2["doubleColon"] = doubleColon] = "doubleColon";
61
+ const dot = 19456;
62
+ TokenType2[TokenType2["dot"] = dot] = "dot";
63
+ const question = 20480;
64
+ TokenType2[TokenType2["question"] = question] = "question";
65
+ const questionDot = 21504;
66
+ TokenType2[TokenType2["questionDot"] = questionDot] = "questionDot";
67
+ const arrow = 22528;
68
+ TokenType2[TokenType2["arrow"] = arrow] = "arrow";
69
+ const template = 23552;
70
+ TokenType2[TokenType2["template"] = template] = "template";
71
+ const ellipsis = 24576;
72
+ TokenType2[TokenType2["ellipsis"] = ellipsis] = "ellipsis";
73
+ const backQuote = 25600;
74
+ TokenType2[TokenType2["backQuote"] = backQuote] = "backQuote";
75
+ const dollarBraceL = 27136;
76
+ TokenType2[TokenType2["dollarBraceL"] = dollarBraceL] = "dollarBraceL";
77
+ const at = 27648;
78
+ TokenType2[TokenType2["at"] = at] = "at";
79
+ const hash = 29184;
80
+ TokenType2[TokenType2["hash"] = hash] = "hash";
81
+ const eq = 29728;
82
+ TokenType2[TokenType2["eq"] = eq] = "eq";
83
+ const assign = 30752;
84
+ TokenType2[TokenType2["assign"] = assign] = "assign";
85
+ const preIncDec = 32640;
86
+ TokenType2[TokenType2["preIncDec"] = preIncDec] = "preIncDec";
87
+ const postIncDec = 33664;
88
+ TokenType2[TokenType2["postIncDec"] = postIncDec] = "postIncDec";
89
+ const bang = 34432;
90
+ TokenType2[TokenType2["bang"] = bang] = "bang";
91
+ const tilde = 35456;
92
+ TokenType2[TokenType2["tilde"] = tilde] = "tilde";
93
+ const pipeline = 35841;
94
+ TokenType2[TokenType2["pipeline"] = pipeline] = "pipeline";
95
+ const nullishCoalescing = 36866;
96
+ TokenType2[TokenType2["nullishCoalescing"] = nullishCoalescing] = "nullishCoalescing";
97
+ const logicalOR = 37890;
98
+ TokenType2[TokenType2["logicalOR"] = logicalOR] = "logicalOR";
99
+ const logicalAND = 38915;
100
+ TokenType2[TokenType2["logicalAND"] = logicalAND] = "logicalAND";
101
+ const bitwiseOR = 39940;
102
+ TokenType2[TokenType2["bitwiseOR"] = bitwiseOR] = "bitwiseOR";
103
+ const bitwiseXOR = 40965;
104
+ TokenType2[TokenType2["bitwiseXOR"] = bitwiseXOR] = "bitwiseXOR";
105
+ const bitwiseAND = 41990;
106
+ TokenType2[TokenType2["bitwiseAND"] = bitwiseAND] = "bitwiseAND";
107
+ const equality = 43015;
108
+ TokenType2[TokenType2["equality"] = equality] = "equality";
109
+ const lessThan = 44040;
110
+ TokenType2[TokenType2["lessThan"] = lessThan] = "lessThan";
111
+ const greaterThan = 45064;
112
+ TokenType2[TokenType2["greaterThan"] = greaterThan] = "greaterThan";
113
+ const relationalOrEqual = 46088;
114
+ TokenType2[TokenType2["relationalOrEqual"] = relationalOrEqual] = "relationalOrEqual";
115
+ const bitShiftL = 47113;
116
+ TokenType2[TokenType2["bitShiftL"] = bitShiftL] = "bitShiftL";
117
+ const bitShiftR = 48137;
118
+ TokenType2[TokenType2["bitShiftR"] = bitShiftR] = "bitShiftR";
119
+ const plus = 49802;
120
+ TokenType2[TokenType2["plus"] = plus] = "plus";
121
+ const minus = 50826;
122
+ TokenType2[TokenType2["minus"] = minus] = "minus";
123
+ const modulo = 51723;
124
+ TokenType2[TokenType2["modulo"] = modulo] = "modulo";
125
+ const star = 52235;
126
+ TokenType2[TokenType2["star"] = star] = "star";
127
+ const slash = 53259;
128
+ TokenType2[TokenType2["slash"] = slash] = "slash";
129
+ const exponent = 54348;
130
+ TokenType2[TokenType2["exponent"] = exponent] = "exponent";
131
+ const jsxName = 55296;
132
+ TokenType2[TokenType2["jsxName"] = jsxName] = "jsxName";
133
+ const jsxText = 56320;
134
+ TokenType2[TokenType2["jsxText"] = jsxText] = "jsxText";
135
+ const jsxEmptyText = 57344;
136
+ TokenType2[TokenType2["jsxEmptyText"] = jsxEmptyText] = "jsxEmptyText";
137
+ const jsxTagStart = 58880;
138
+ TokenType2[TokenType2["jsxTagStart"] = jsxTagStart] = "jsxTagStart";
139
+ const jsxTagEnd = 59392;
140
+ TokenType2[TokenType2["jsxTagEnd"] = jsxTagEnd] = "jsxTagEnd";
141
+ const typeParameterStart = 60928;
142
+ TokenType2[TokenType2["typeParameterStart"] = typeParameterStart] = "typeParameterStart";
143
+ const nonNullAssertion = 61440;
144
+ TokenType2[TokenType2["nonNullAssertion"] = nonNullAssertion] = "nonNullAssertion";
145
+ const _break = 62480;
146
+ TokenType2[TokenType2["_break"] = _break] = "_break";
147
+ const _case = 63504;
148
+ TokenType2[TokenType2["_case"] = _case] = "_case";
149
+ const _catch = 64528;
150
+ TokenType2[TokenType2["_catch"] = _catch] = "_catch";
151
+ const _continue = 65552;
152
+ TokenType2[TokenType2["_continue"] = _continue] = "_continue";
153
+ const _debugger = 66576;
154
+ TokenType2[TokenType2["_debugger"] = _debugger] = "_debugger";
155
+ const _default = 67600;
156
+ TokenType2[TokenType2["_default"] = _default] = "_default";
157
+ const _do = 68624;
158
+ TokenType2[TokenType2["_do"] = _do] = "_do";
159
+ const _else = 69648;
160
+ TokenType2[TokenType2["_else"] = _else] = "_else";
161
+ const _finally = 70672;
162
+ TokenType2[TokenType2["_finally"] = _finally] = "_finally";
163
+ const _for = 71696;
164
+ TokenType2[TokenType2["_for"] = _for] = "_for";
165
+ const _function = 73232;
166
+ TokenType2[TokenType2["_function"] = _function] = "_function";
167
+ const _if = 73744;
168
+ TokenType2[TokenType2["_if"] = _if] = "_if";
169
+ const _return = 74768;
170
+ TokenType2[TokenType2["_return"] = _return] = "_return";
171
+ const _switch = 75792;
172
+ TokenType2[TokenType2["_switch"] = _switch] = "_switch";
173
+ const _throw = 77456;
174
+ TokenType2[TokenType2["_throw"] = _throw] = "_throw";
175
+ const _try = 77840;
176
+ TokenType2[TokenType2["_try"] = _try] = "_try";
177
+ const _var = 78864;
178
+ TokenType2[TokenType2["_var"] = _var] = "_var";
179
+ const _let = 79888;
180
+ TokenType2[TokenType2["_let"] = _let] = "_let";
181
+ const _const = 80912;
182
+ TokenType2[TokenType2["_const"] = _const] = "_const";
183
+ const _while = 81936;
184
+ TokenType2[TokenType2["_while"] = _while] = "_while";
185
+ const _with = 82960;
186
+ TokenType2[TokenType2["_with"] = _with] = "_with";
187
+ const _new = 84496;
188
+ TokenType2[TokenType2["_new"] = _new] = "_new";
189
+ const _this = 85520;
190
+ TokenType2[TokenType2["_this"] = _this] = "_this";
191
+ const _super = 86544;
192
+ TokenType2[TokenType2["_super"] = _super] = "_super";
193
+ const _class = 87568;
194
+ TokenType2[TokenType2["_class"] = _class] = "_class";
195
+ const _extends = 88080;
196
+ TokenType2[TokenType2["_extends"] = _extends] = "_extends";
197
+ const _export = 89104;
198
+ TokenType2[TokenType2["_export"] = _export] = "_export";
199
+ const _import = 90640;
200
+ TokenType2[TokenType2["_import"] = _import] = "_import";
201
+ const _yield = 91664;
202
+ TokenType2[TokenType2["_yield"] = _yield] = "_yield";
203
+ const _null = 92688;
204
+ TokenType2[TokenType2["_null"] = _null] = "_null";
205
+ const _true = 93712;
206
+ TokenType2[TokenType2["_true"] = _true] = "_true";
207
+ const _false = 94736;
208
+ TokenType2[TokenType2["_false"] = _false] = "_false";
209
+ const _in = 95256;
210
+ TokenType2[TokenType2["_in"] = _in] = "_in";
211
+ const _instanceof = 96280;
212
+ TokenType2[TokenType2["_instanceof"] = _instanceof] = "_instanceof";
213
+ const _typeof = 97936;
214
+ TokenType2[TokenType2["_typeof"] = _typeof] = "_typeof";
215
+ const _void = 98960;
216
+ TokenType2[TokenType2["_void"] = _void] = "_void";
217
+ const _delete = 99984;
218
+ TokenType2[TokenType2["_delete"] = _delete] = "_delete";
219
+ const _async = 100880;
220
+ TokenType2[TokenType2["_async"] = _async] = "_async";
221
+ const _get = 101904;
222
+ TokenType2[TokenType2["_get"] = _get] = "_get";
223
+ const _set = 102928;
224
+ TokenType2[TokenType2["_set"] = _set] = "_set";
225
+ const _declare = 103952;
226
+ TokenType2[TokenType2["_declare"] = _declare] = "_declare";
227
+ const _readonly = 104976;
228
+ TokenType2[TokenType2["_readonly"] = _readonly] = "_readonly";
229
+ const _abstract = 106e3;
230
+ TokenType2[TokenType2["_abstract"] = _abstract] = "_abstract";
231
+ const _static = 107024;
232
+ TokenType2[TokenType2["_static"] = _static] = "_static";
233
+ const _public = 107536;
234
+ TokenType2[TokenType2["_public"] = _public] = "_public";
235
+ const _private = 108560;
236
+ TokenType2[TokenType2["_private"] = _private] = "_private";
237
+ const _protected = 109584;
238
+ TokenType2[TokenType2["_protected"] = _protected] = "_protected";
239
+ const _override = 110608;
240
+ TokenType2[TokenType2["_override"] = _override] = "_override";
241
+ const _as = 112144;
242
+ TokenType2[TokenType2["_as"] = _as] = "_as";
243
+ const _enum = 113168;
244
+ TokenType2[TokenType2["_enum"] = _enum] = "_enum";
245
+ const _type = 114192;
246
+ TokenType2[TokenType2["_type"] = _type] = "_type";
247
+ const _implements = 115216;
248
+ TokenType2[TokenType2["_implements"] = _implements] = "_implements";
249
+ })(TokenType || (exports.TokenType = TokenType = {}));
250
+ function formatTokenType(tokenType) {
251
+ switch (tokenType) {
252
+ case TokenType.num:
253
+ return "num";
254
+ case TokenType.bigint:
255
+ return "bigint";
256
+ case TokenType.decimal:
257
+ return "decimal";
258
+ case TokenType.regexp:
259
+ return "regexp";
260
+ case TokenType.string:
261
+ return "string";
262
+ case TokenType.name:
263
+ return "name";
264
+ case TokenType.eof:
265
+ return "eof";
266
+ case TokenType.bracketL:
267
+ return "[";
268
+ case TokenType.bracketR:
269
+ return "]";
270
+ case TokenType.braceL:
271
+ return "{";
272
+ case TokenType.braceBarL:
273
+ return "{|";
274
+ case TokenType.braceR:
275
+ return "}";
276
+ case TokenType.braceBarR:
277
+ return "|}";
278
+ case TokenType.parenL:
279
+ return "(";
280
+ case TokenType.parenR:
281
+ return ")";
282
+ case TokenType.comma:
283
+ return ",";
284
+ case TokenType.semi:
285
+ return ";";
286
+ case TokenType.colon:
287
+ return ":";
288
+ case TokenType.doubleColon:
289
+ return "::";
290
+ case TokenType.dot:
291
+ return ".";
292
+ case TokenType.question:
293
+ return "?";
294
+ case TokenType.questionDot:
295
+ return "?.";
296
+ case TokenType.arrow:
297
+ return "=>";
298
+ case TokenType.template:
299
+ return "template";
300
+ case TokenType.ellipsis:
301
+ return "...";
302
+ case TokenType.backQuote:
303
+ return "`";
304
+ case TokenType.dollarBraceL:
305
+ return "${";
306
+ case TokenType.at:
307
+ return "@";
308
+ case TokenType.hash:
309
+ return "#";
310
+ case TokenType.eq:
311
+ return "=";
312
+ case TokenType.assign:
313
+ return "_=";
314
+ case TokenType.preIncDec:
315
+ return "++/--";
316
+ case TokenType.postIncDec:
317
+ return "++/--";
318
+ case TokenType.bang:
319
+ return "!";
320
+ case TokenType.tilde:
321
+ return "~";
322
+ case TokenType.pipeline:
323
+ return "|>";
324
+ case TokenType.nullishCoalescing:
325
+ return "??";
326
+ case TokenType.logicalOR:
327
+ return "||";
328
+ case TokenType.logicalAND:
329
+ return "&&";
330
+ case TokenType.bitwiseOR:
331
+ return "|";
332
+ case TokenType.bitwiseXOR:
333
+ return "^";
334
+ case TokenType.bitwiseAND:
335
+ return "&";
336
+ case TokenType.equality:
337
+ return "==/!=";
338
+ case TokenType.lessThan:
339
+ return "<";
340
+ case TokenType.greaterThan:
341
+ return ">";
342
+ case TokenType.relationalOrEqual:
343
+ return "<=/>=";
344
+ case TokenType.bitShiftL:
345
+ return "<<";
346
+ case TokenType.bitShiftR:
347
+ return ">>/>>>";
348
+ case TokenType.plus:
349
+ return "+";
350
+ case TokenType.minus:
351
+ return "-";
352
+ case TokenType.modulo:
353
+ return "%";
354
+ case TokenType.star:
355
+ return "*";
356
+ case TokenType.slash:
357
+ return "/";
358
+ case TokenType.exponent:
359
+ return "**";
360
+ case TokenType.jsxName:
361
+ return "jsxName";
362
+ case TokenType.jsxText:
363
+ return "jsxText";
364
+ case TokenType.jsxEmptyText:
365
+ return "jsxEmptyText";
366
+ case TokenType.jsxTagStart:
367
+ return "jsxTagStart";
368
+ case TokenType.jsxTagEnd:
369
+ return "jsxTagEnd";
370
+ case TokenType.typeParameterStart:
371
+ return "typeParameterStart";
372
+ case TokenType.nonNullAssertion:
373
+ return "nonNullAssertion";
374
+ case TokenType._break:
375
+ return "break";
376
+ case TokenType._case:
377
+ return "case";
378
+ case TokenType._catch:
379
+ return "catch";
380
+ case TokenType._continue:
381
+ return "continue";
382
+ case TokenType._debugger:
383
+ return "debugger";
384
+ case TokenType._default:
385
+ return "default";
386
+ case TokenType._do:
387
+ return "do";
388
+ case TokenType._else:
389
+ return "else";
390
+ case TokenType._finally:
391
+ return "finally";
392
+ case TokenType._for:
393
+ return "for";
394
+ case TokenType._function:
395
+ return "function";
396
+ case TokenType._if:
397
+ return "if";
398
+ case TokenType._return:
399
+ return "return";
400
+ case TokenType._switch:
401
+ return "switch";
402
+ case TokenType._throw:
403
+ return "throw";
404
+ case TokenType._try:
405
+ return "try";
406
+ case TokenType._var:
407
+ return "var";
408
+ case TokenType._let:
409
+ return "let";
410
+ case TokenType._const:
411
+ return "const";
412
+ case TokenType._while:
413
+ return "while";
414
+ case TokenType._with:
415
+ return "with";
416
+ case TokenType._new:
417
+ return "new";
418
+ case TokenType._this:
419
+ return "this";
420
+ case TokenType._super:
421
+ return "super";
422
+ case TokenType._class:
423
+ return "class";
424
+ case TokenType._extends:
425
+ return "extends";
426
+ case TokenType._export:
427
+ return "export";
428
+ case TokenType._import:
429
+ return "import";
430
+ case TokenType._yield:
431
+ return "yield";
432
+ case TokenType._null:
433
+ return "null";
434
+ case TokenType._true:
435
+ return "true";
436
+ case TokenType._false:
437
+ return "false";
438
+ case TokenType._in:
439
+ return "in";
440
+ case TokenType._instanceof:
441
+ return "instanceof";
442
+ case TokenType._typeof:
443
+ return "typeof";
444
+ case TokenType._void:
445
+ return "void";
446
+ case TokenType._delete:
447
+ return "delete";
448
+ case TokenType._async:
449
+ return "async";
450
+ case TokenType._get:
451
+ return "get";
452
+ case TokenType._set:
453
+ return "set";
454
+ case TokenType._declare:
455
+ return "declare";
456
+ case TokenType._readonly:
457
+ return "readonly";
458
+ case TokenType._abstract:
459
+ return "abstract";
460
+ case TokenType._static:
461
+ return "static";
462
+ case TokenType._public:
463
+ return "public";
464
+ case TokenType._private:
465
+ return "private";
466
+ case TokenType._protected:
467
+ return "protected";
468
+ case TokenType._override:
469
+ return "override";
470
+ case TokenType._as:
471
+ return "as";
472
+ case TokenType._enum:
473
+ return "enum";
474
+ case TokenType._type:
475
+ return "type";
476
+ case TokenType._implements:
477
+ return "implements";
478
+ default:
479
+ return "";
480
+ }
481
+ }
482
+ exports.formatTokenType = formatTokenType;