storybook 10.1.0-alpha.1 → 10.1.0-alpha.11

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 (202) hide show
  1. package/dist/_browser-chunks/Color-FTG7SQDA.js +1097 -0
  2. package/dist/_browser-chunks/WithTooltip-LMROHDUP.js +1651 -0
  3. package/dist/_browser-chunks/chunk-2FRVAXCZ.js +7 -0
  4. package/dist/_browser-chunks/chunk-3IAH5M2U.js +171 -0
  5. package/dist/_browser-chunks/chunk-3OXGAGBE.js +779 -0
  6. package/dist/_browser-chunks/{chunk-TMDZCWME.js → chunk-3PJE6VLG.js} +1 -3
  7. package/dist/_browser-chunks/{chunk-VAMFPZY3.js → chunk-45UGUKRX.js} +2 -7
  8. package/dist/_browser-chunks/chunk-6XWLIJQL.js +11 -0
  9. package/dist/_browser-chunks/{chunk-FDWKXLBI.js → chunk-74YHFU5B.js} +44 -109
  10. package/dist/_browser-chunks/{chunk-MM7DTO55.js → chunk-A242L54C.js} +10 -16
  11. package/dist/_browser-chunks/chunk-AIOS4NGK.js +252 -0
  12. package/dist/_browser-chunks/chunk-AS2HQEYC.js +14 -0
  13. package/dist/_browser-chunks/chunk-AXG2BOBL.js +836 -0
  14. package/dist/_browser-chunks/chunk-BE2DAXKJ.js +2966 -0
  15. package/dist/_browser-chunks/{chunk-MH6AXFXB.js → chunk-CHUV5WSW.js} +0 -5
  16. package/dist/_browser-chunks/chunk-EBHB6RPS.js +61 -0
  17. package/dist/_browser-chunks/chunk-EUVGDK4H.js +93 -0
  18. package/dist/_browser-chunks/chunk-EZSQOHRI.js +18 -0
  19. package/dist/_browser-chunks/{chunk-CADGRH3P.js → chunk-FNXWN6IK.js} +3 -8
  20. package/dist/_browser-chunks/chunk-GFLS4VP3.js +64 -0
  21. package/dist/_browser-chunks/{chunk-L2D73C6Z.js → chunk-H6XK3RSC.js} +13 -21
  22. package/dist/_browser-chunks/chunk-IPA5A322.js +71 -0
  23. package/dist/_browser-chunks/chunk-JP7NCOJX.js +37 -0
  24. package/dist/_browser-chunks/chunk-KJHJLCBK.js +11 -0
  25. package/dist/_browser-chunks/chunk-L4RMQ7D7.js +223 -0
  26. package/dist/_browser-chunks/{chunk-AB7OOPUX.js → chunk-QKODTO7K.js} +0 -5
  27. package/dist/_browser-chunks/chunk-RP5RXKFU.js +2491 -0
  28. package/dist/_browser-chunks/chunk-SL75JR6Y.js +9 -0
  29. package/dist/_browser-chunks/chunk-UD6FQLAF.js +1481 -0
  30. package/dist/_browser-chunks/chunk-VYJQ7RU5.js +2853 -0
  31. package/dist/_browser-chunks/chunk-WJYERY3R.js +136 -0
  32. package/dist/_browser-chunks/chunk-WXP2XJ3O.js +950 -0
  33. package/dist/_browser-chunks/chunk-X3DUQ5RA.js +47 -0
  34. package/dist/_browser-chunks/chunk-XJNX76GA.js +85 -0
  35. package/dist/_browser-chunks/{chunk-F4Q6SGTB.js → chunk-YKE5S47A.js} +177 -399
  36. package/dist/_browser-chunks/{chunk-SN4J4IQ3.js → chunk-ZUWEVLDX.js} +1 -7
  37. package/dist/_browser-chunks/{formatter-OMEEQ6HG.js → formatter-QJ4M4OGQ.js} +4 -9
  38. package/dist/_browser-chunks/{syntaxhighlighter-DK2ODWXH.js → syntaxhighlighter-WKBQ5RC7.js} +707 -1851
  39. package/dist/_node-chunks/{builder-manager-6UBDPV7P.js → builder-manager-PMPHOSM2.js} +495 -1013
  40. package/dist/_node-chunks/camelcase-K3IOOFQW.js +18 -0
  41. package/dist/_node-chunks/{chunk-QNUGJO6L.js → chunk-32NE3UE3.js} +15 -24
  42. package/dist/_node-chunks/chunk-4GZCFQFG.js +58 -0
  43. package/dist/_node-chunks/chunk-5QK5MSOI.js +943 -0
  44. package/dist/_node-chunks/{chunk-3FPF5Y2F.js → chunk-6ZOLETQK.js} +8 -10
  45. package/dist/_node-chunks/chunk-7I22Y76Z.js +1047 -0
  46. package/dist/_node-chunks/chunk-AKTRSR3O.js +72 -0
  47. package/dist/_node-chunks/chunk-BBOP3XCK.js +119 -0
  48. package/dist/_node-chunks/chunk-C2GQVDWI.js +34 -0
  49. package/dist/_node-chunks/{chunk-SCTKVDWR.js → chunk-GG2WQZSG.js} +4619 -7350
  50. package/dist/_node-chunks/chunk-GQJOWVVR.js +3214 -0
  51. package/dist/_node-chunks/chunk-JCRM2YVK.js +3009 -0
  52. package/dist/_node-chunks/chunk-KK4AT5F3.js +1029 -0
  53. package/dist/_node-chunks/chunk-L7MYXJUM.js +1114 -0
  54. package/dist/_node-chunks/{chunk-LAU7VVPC.js → chunk-LCZO45L7.js} +469 -983
  55. package/dist/_node-chunks/chunk-LR3QITDI.js +209 -0
  56. package/dist/_node-chunks/chunk-LXG4DK35.js +3171 -0
  57. package/dist/_node-chunks/chunk-MJ3WOS6F.js +37 -0
  58. package/dist/_node-chunks/chunk-PHOZWZZO.js +61 -0
  59. package/dist/_node-chunks/chunk-QECOQWRJ.js +936 -0
  60. package/dist/_node-chunks/chunk-QH4V5YDB.js +20 -0
  61. package/dist/_node-chunks/chunk-R6HWGZWD.js +26 -0
  62. package/dist/_node-chunks/chunk-SPQXMU2Q.js +759 -0
  63. package/dist/_node-chunks/chunk-TXZY6V6O.js +1564 -0
  64. package/dist/_node-chunks/chunk-UGDPX5LE.js +756 -0
  65. package/dist/_node-chunks/chunk-UY26MQLT.js +603 -0
  66. package/dist/_node-chunks/chunk-WK3EMYK6.js +61 -0
  67. package/dist/_node-chunks/{chunk-CJHAP7SE.js → chunk-WLHMN7AP.js} +292 -688
  68. package/dist/_node-chunks/chunk-XGVLB4UJ.js +54 -0
  69. package/dist/_node-chunks/{chunk-J7N7PD5Q.js → chunk-YHRFI6BE.js} +87 -227
  70. package/dist/_node-chunks/chunk-YK4KVMFW.js +18 -0
  71. package/dist/_node-chunks/chunk-ZZALGOA6.js +4523 -0
  72. package/dist/_node-chunks/chunk-ZZPBSYA5.js +301 -0
  73. package/dist/_node-chunks/chunk-ZZSRFAC6.js +45571 -0
  74. package/dist/_node-chunks/dist-4DWOCZUD.js +121 -0
  75. package/dist/_node-chunks/globby-AAARUKEU.js +3452 -0
  76. package/dist/_node-chunks/lib-HEUKGL62.js +366 -0
  77. package/dist/_node-chunks/mdx-N42X6CFJ-DCVRPS6N.js +14329 -0
  78. package/dist/_node-chunks/p-limit-F5ZKJ6WZ.js +116 -0
  79. package/dist/_node-chunks/plugin-7YY7JXCH.js +123 -0
  80. package/dist/_node-chunks/{plugin-HJLCLGNT.js → plugin-SZP3CW6W.js} +36 -56
  81. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-TGKNDPO6.js +46623 -0
  82. package/dist/_node-chunks/webpack-mock-plugin-LNTZZFBE.js +92 -0
  83. package/dist/actions/decorator.js +21 -42
  84. package/dist/actions/index.js +3 -3
  85. package/dist/babel/index.d.ts +671 -335
  86. package/dist/babel/index.js +11 -11
  87. package/dist/bin/core.js +592 -1546
  88. package/dist/bin/dispatcher.js +26 -37
  89. package/dist/bin/loader.js +23 -34
  90. package/dist/channels/index.js +98 -234
  91. package/dist/cli/index.js +1966 -5347
  92. package/dist/client-logger/index.js +31 -61
  93. package/dist/common/index.d.ts +210 -3
  94. package/dist/common/index.js +28 -20
  95. package/dist/components/index.d.ts +472 -280
  96. package/dist/components/index.js +15992 -75
  97. package/dist/core-events/index.js +2 -66
  98. package/dist/core-server/index.js +3837 -7191
  99. package/dist/core-server/presets/common-manager.css +2 -2
  100. package/dist/core-server/presets/common-manager.js +2511 -5219
  101. package/dist/core-server/presets/common-override-preset.js +31 -60
  102. package/dist/core-server/presets/common-preset.js +434 -924
  103. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +15 -19
  104. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +12 -17
  105. package/dist/csf/index.js +534 -1172
  106. package/dist/csf-tools/index.d.ts +15 -4
  107. package/dist/csf-tools/index.js +9 -9
  108. package/dist/docs-tools/index.js +6 -6
  109. package/dist/highlight/index.js +2 -2
  110. package/dist/instrumenter/index.js +199 -415
  111. package/dist/manager/globals-runtime.js +47968 -56484
  112. package/dist/manager/globals.js +2 -3
  113. package/dist/manager/runtime.js +4901 -10318
  114. package/dist/manager-api/index.d.ts +11 -3
  115. package/dist/manager-api/index.js +1250 -2397
  116. package/dist/manager-errors.d.ts +3 -0
  117. package/dist/manager-errors.js +3 -3
  118. package/dist/node-logger/index.d.ts +1 -1
  119. package/dist/node-logger/index.js +1270 -2593
  120. package/dist/preview/globals.js +2 -3
  121. package/dist/preview/runtime.js +10767 -22386
  122. package/dist/preview-api/index.d.ts +67 -68
  123. package/dist/preview-api/index.js +15 -15
  124. package/dist/preview-errors.d.ts +3 -0
  125. package/dist/preview-errors.js +4 -4
  126. package/dist/router/index.js +347 -899
  127. package/dist/server-errors.d.ts +3 -0
  128. package/dist/server-errors.js +10 -10
  129. package/dist/telemetry/index.js +24 -24
  130. package/dist/test/index.js +6129 -11914
  131. package/dist/theming/create.d.ts +4 -2
  132. package/dist/theming/create.js +4 -4
  133. package/dist/theming/index.d.ts +3397 -2628
  134. package/dist/theming/index.js +502 -1091
  135. package/dist/types/index.d.ts +50 -5
  136. package/dist/types/index.js +2 -11
  137. package/dist/viewport/index.js +3 -3
  138. package/package.json +17 -9
  139. package/dist/_browser-chunks/Color-7ZNS6F6B.js +0 -1676
  140. package/dist/_browser-chunks/WithTooltip-SK46ZJ2J.js +0 -13
  141. package/dist/_browser-chunks/chunk-6A7OIVEL.js +0 -66
  142. package/dist/_browser-chunks/chunk-B4A3ADP3.js +0 -3816
  143. package/dist/_browser-chunks/chunk-BOOOPFZF.js +0 -2335
  144. package/dist/_browser-chunks/chunk-C4XOKMDU.js +0 -270
  145. package/dist/_browser-chunks/chunk-FSBVR7H5.js +0 -106
  146. package/dist/_browser-chunks/chunk-FUOHXXZT.js +0 -23
  147. package/dist/_browser-chunks/chunk-GTKOCWCT.js +0 -17
  148. package/dist/_browser-chunks/chunk-HHW4FUMO.js +0 -12
  149. package/dist/_browser-chunks/chunk-I74EUU5O.js +0 -5809
  150. package/dist/_browser-chunks/chunk-JVSKG4YS.js +0 -4052
  151. package/dist/_browser-chunks/chunk-LASUB7TL.js +0 -76
  152. package/dist/_browser-chunks/chunk-LYCSRYYR.js +0 -101
  153. package/dist/_browser-chunks/chunk-NVV6MIOE.js +0 -243
  154. package/dist/_browser-chunks/chunk-OBXWFEPB.js +0 -852
  155. package/dist/_browser-chunks/chunk-OPCDBBL3.js +0 -48
  156. package/dist/_browser-chunks/chunk-PB6FZ3WE.js +0 -130
  157. package/dist/_browser-chunks/chunk-RNE2IUTB.js +0 -1300
  158. package/dist/_browser-chunks/chunk-SYS437NN.js +0 -122
  159. package/dist/_browser-chunks/chunk-U46RQHA4.js +0 -12
  160. package/dist/_browser-chunks/chunk-UTNZYD2N.js +0 -311
  161. package/dist/_browser-chunks/chunk-VUAFL5XK.js +0 -20
  162. package/dist/_browser-chunks/chunk-W4QKLQSC.js +0 -4182
  163. package/dist/_browser-chunks/chunk-XDGMHOV7.js +0 -2197
  164. package/dist/_browser-chunks/chunk-XW6KSYKF.js +0 -16
  165. package/dist/_browser-chunks/chunk-Y3M7TW6K.js +0 -1041
  166. package/dist/_browser-chunks/chunk-ZNRFDIVA.js +0 -233
  167. package/dist/_node-chunks/camelcase-WKJOVNPM.js +0 -18
  168. package/dist/_node-chunks/chunk-2RIKHYCS.js +0 -304
  169. package/dist/_node-chunks/chunk-3JCSHYSU.js +0 -1657
  170. package/dist/_node-chunks/chunk-4GE6Q4MX.js +0 -1531
  171. package/dist/_node-chunks/chunk-5SEHHENC.js +0 -64656
  172. package/dist/_node-chunks/chunk-6GD23U64.js +0 -420
  173. package/dist/_node-chunks/chunk-6OAXYS5T.js +0 -1544
  174. package/dist/_node-chunks/chunk-7TNUMFKR.js +0 -4741
  175. package/dist/_node-chunks/chunk-BCDHUXAJ.js +0 -4272
  176. package/dist/_node-chunks/chunk-BYVQZ2HU.js +0 -220
  177. package/dist/_node-chunks/chunk-DAMVKHAC.js +0 -101
  178. package/dist/_node-chunks/chunk-FEOC7OX2.js +0 -1586
  179. package/dist/_node-chunks/chunk-FY7XZPLY.js +0 -2248
  180. package/dist/_node-chunks/chunk-GD2FXWDF.js +0 -697
  181. package/dist/_node-chunks/chunk-HM6B7FE5.js +0 -18
  182. package/dist/_node-chunks/chunk-HORWITP7.js +0 -90
  183. package/dist/_node-chunks/chunk-II4AFH3V.js +0 -28
  184. package/dist/_node-chunks/chunk-MF2PUEWG.js +0 -5029
  185. package/dist/_node-chunks/chunk-RVE4UTVQ.js +0 -1518
  186. package/dist/_node-chunks/chunk-TUFWZUTO.js +0 -69
  187. package/dist/_node-chunks/chunk-TXHNWNH4.js +0 -79
  188. package/dist/_node-chunks/chunk-ULWNTI6M.js +0 -1198
  189. package/dist/_node-chunks/chunk-VYRFXLRO.js +0 -6712
  190. package/dist/_node-chunks/chunk-WNOSTIYP.js +0 -34
  191. package/dist/_node-chunks/chunk-X67VGZN4.js +0 -1250
  192. package/dist/_node-chunks/chunk-XCEBYOA4.js +0 -61
  193. package/dist/_node-chunks/chunk-XW7YMR7I.js +0 -111
  194. package/dist/_node-chunks/chunk-ZRFYQ46H.js +0 -61
  195. package/dist/_node-chunks/dist-APCKHSY3.js +0 -175
  196. package/dist/_node-chunks/globby-TSGXGDA2.js +0 -5222
  197. package/dist/_node-chunks/lib-DZ5TVIU5.js +0 -518
  198. package/dist/_node-chunks/mdx-N42X6CFJ-Z6BYQCPN.js +0 -22017
  199. package/dist/_node-chunks/p-limit-MLJNGG2K.js +0 -168
  200. package/dist/_node-chunks/plugin-J3JI3ZKJ.js +0 -159
  201. package/dist/_node-chunks/webpack-inject-mocker-runtime-plugin-3QHNTM5B.js +0 -69102
  202. package/dist/_node-chunks/webpack-mock-plugin-4Y3MWPJ6.js +0 -124
@@ -0,0 +1,1114 @@
1
+ import CJS_COMPAT_NODE_URL_843v2rliy1 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_843v2rliy1 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_843v2rliy1 from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_843v2rliy1.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_843v2rliy1.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_843v2rliy1.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import {
13
+ __commonJS
14
+ } from "./chunk-XGVLB4UJ.js";
15
+
16
+ // ../node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js
17
+ var require_resolve_uri_umd = __commonJS({
18
+ "../node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js"(exports, module) {
19
+ (function(global, factory) {
20
+ typeof exports == "object" && typeof module < "u" ? module.exports = factory() : typeof define == "function" && define.amd ? define(factory) : (global = typeof globalThis < "u" ? globalThis : global || self, global.resolveURI = factory());
21
+ })(exports, (function() {
22
+ "use strict";
23
+ let schemeRegex = /^[\w+.-]+:\/\//, urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
24
+ function isAbsoluteUrl(input) {
25
+ return schemeRegex.test(input);
26
+ }
27
+ function isSchemeRelativeUrl(input) {
28
+ return input.startsWith("//");
29
+ }
30
+ function isAbsolutePath(input) {
31
+ return input.startsWith("/");
32
+ }
33
+ function isFileUrl(input) {
34
+ return input.startsWith("file:");
35
+ }
36
+ function isRelative(input) {
37
+ return /^[.?#]/.test(input);
38
+ }
39
+ function parseAbsoluteUrl(input) {
40
+ let match = urlRegex.exec(input);
41
+ return makeUrl(match[1], match[2] || "", match[3], match[4] || "", match[5] || "/", match[6] || "", match[7] || "");
42
+ }
43
+ function parseFileUrl(input) {
44
+ let match = fileRegex.exec(input), path = match[2];
45
+ return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match[3] || "", match[4] || "");
46
+ }
47
+ function makeUrl(scheme, user, host, port, path, query, hash) {
48
+ return {
49
+ scheme,
50
+ user,
51
+ host,
52
+ port,
53
+ path,
54
+ query,
55
+ hash,
56
+ type: 7
57
+ };
58
+ }
59
+ function parseUrl(input) {
60
+ if (isSchemeRelativeUrl(input)) {
61
+ let url2 = parseAbsoluteUrl("http:" + input);
62
+ return url2.scheme = "", url2.type = 6, url2;
63
+ }
64
+ if (isAbsolutePath(input)) {
65
+ let url2 = parseAbsoluteUrl("http://foo.com" + input);
66
+ return url2.scheme = "", url2.host = "", url2.type = 5, url2;
67
+ }
68
+ if (isFileUrl(input))
69
+ return parseFileUrl(input);
70
+ if (isAbsoluteUrl(input))
71
+ return parseAbsoluteUrl(input);
72
+ let url = parseAbsoluteUrl("http://foo.com/" + input);
73
+ return url.scheme = "", url.host = "", url.type = input ? input.startsWith("?") ? 3 : input.startsWith("#") ? 2 : 4 : 1, url;
74
+ }
75
+ function stripPathFilename(path) {
76
+ if (path.endsWith("/.."))
77
+ return path;
78
+ let index = path.lastIndexOf("/");
79
+ return path.slice(0, index + 1);
80
+ }
81
+ function mergePaths(url, base) {
82
+ normalizePath(base, base.type), url.path === "/" ? url.path = base.path : url.path = stripPathFilename(base.path) + url.path;
83
+ }
84
+ function normalizePath(url, type) {
85
+ let rel = type <= 4, pieces = url.path.split("/"), pointer = 1, positive = 0, addTrailingSlash = !1;
86
+ for (let i = 1; i < pieces.length; i++) {
87
+ let piece = pieces[i];
88
+ if (!piece) {
89
+ addTrailingSlash = !0;
90
+ continue;
91
+ }
92
+ if (addTrailingSlash = !1, piece !== ".") {
93
+ if (piece === "..") {
94
+ positive ? (addTrailingSlash = !0, positive--, pointer--) : rel && (pieces[pointer++] = piece);
95
+ continue;
96
+ }
97
+ pieces[pointer++] = piece, positive++;
98
+ }
99
+ }
100
+ let path = "";
101
+ for (let i = 1; i < pointer; i++)
102
+ path += "/" + pieces[i];
103
+ (!path || addTrailingSlash && !path.endsWith("/..")) && (path += "/"), url.path = path;
104
+ }
105
+ function resolve(input, base) {
106
+ if (!input && !base)
107
+ return "";
108
+ let url = parseUrl(input), inputType = url.type;
109
+ if (base && inputType !== 7) {
110
+ let baseUrl = parseUrl(base), baseType = baseUrl.type;
111
+ switch (inputType) {
112
+ case 1:
113
+ url.hash = baseUrl.hash;
114
+ // fall through
115
+ case 2:
116
+ url.query = baseUrl.query;
117
+ // fall through
118
+ case 3:
119
+ case 4:
120
+ mergePaths(url, baseUrl);
121
+ // fall through
122
+ case 5:
123
+ url.user = baseUrl.user, url.host = baseUrl.host, url.port = baseUrl.port;
124
+ // fall through
125
+ case 6:
126
+ url.scheme = baseUrl.scheme;
127
+ }
128
+ baseType > inputType && (inputType = baseType);
129
+ }
130
+ normalizePath(url, inputType);
131
+ let queryHash = url.query + url.hash;
132
+ switch (inputType) {
133
+ // This is impossible, because of the empty checks at the start of the function.
134
+ // case UrlType.Empty:
135
+ case 2:
136
+ case 3:
137
+ return queryHash;
138
+ case 4: {
139
+ let path = url.path.slice(1);
140
+ return path ? isRelative(base || input) && !isRelative(path) ? "./" + path + queryHash : path + queryHash : queryHash || ".";
141
+ }
142
+ case 5:
143
+ return url.path + queryHash;
144
+ default:
145
+ return url.scheme + "//" + url.user + url.host + url.port + url.path + queryHash;
146
+ }
147
+ }
148
+ return resolve;
149
+ }));
150
+ }
151
+ });
152
+
153
+ // ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js
154
+ var require_sourcemap_codec_umd = __commonJS({
155
+ "../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js"(exports, module) {
156
+ (function(global, factory) {
157
+ if (typeof exports == "object" && typeof module < "u")
158
+ factory(module), module.exports = def(module);
159
+ else if (typeof define == "function" && define.amd)
160
+ define(["module"], function(mod) {
161
+ factory.apply(this, arguments), mod.exports = def(mod);
162
+ });
163
+ else {
164
+ let mod = { exports: {} };
165
+ factory(mod), global = typeof globalThis < "u" ? globalThis : global || self, global.sourcemapCodec = def(mod);
166
+ }
167
+ function def(m) {
168
+ return "default" in m.exports ? m.exports.default : m.exports;
169
+ }
170
+ })(exports, (function(module2) {
171
+ "use strict";
172
+ var __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __export = (target, all) => {
173
+ for (var name in all)
174
+ __defProp(target, name, { get: all[name], enumerable: !0 });
175
+ }, __copyProps = (to, from, except, desc) => {
176
+ if (from && typeof from == "object" || typeof from == "function")
177
+ for (let key of __getOwnPropNames(from))
178
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
179
+ return to;
180
+ }, __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod), sourcemap_codec_exports = {};
181
+ __export(sourcemap_codec_exports, {
182
+ decode: () => decode,
183
+ decodeGeneratedRanges: () => decodeGeneratedRanges,
184
+ decodeOriginalScopes: () => decodeOriginalScopes,
185
+ encode: () => encode,
186
+ encodeGeneratedRanges: () => encodeGeneratedRanges,
187
+ encodeOriginalScopes: () => encodeOriginalScopes
188
+ }), module2.exports = __toCommonJS(sourcemap_codec_exports);
189
+ var comma = 44, semicolon = 59, chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar = new Uint8Array(64), charToInt = new Uint8Array(128);
190
+ for (let i = 0; i < chars.length; i++) {
191
+ let c = chars.charCodeAt(i);
192
+ intToChar[i] = c, charToInt[c] = i;
193
+ }
194
+ function decodeInteger(reader, relative) {
195
+ let value = 0, shift = 0, integer = 0;
196
+ do {
197
+ let c = reader.next();
198
+ integer = charToInt[c], value |= (integer & 31) << shift, shift += 5;
199
+ } while (integer & 32);
200
+ let shouldNegate = value & 1;
201
+ return value >>>= 1, shouldNegate && (value = -2147483648 | -value), relative + value;
202
+ }
203
+ function encodeInteger(builder, num, relative) {
204
+ let delta = num - relative;
205
+ delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
206
+ do {
207
+ let clamped = delta & 31;
208
+ delta >>>= 5, delta > 0 && (clamped |= 32), builder.write(intToChar[clamped]);
209
+ } while (delta > 0);
210
+ return num;
211
+ }
212
+ function hasMoreVlq(reader, max) {
213
+ return reader.pos >= max ? !1 : reader.peek() !== comma;
214
+ }
215
+ var bufLength = 1024 * 16, td = typeof TextDecoder < "u" ? new TextDecoder() : typeof Buffer < "u" ? {
216
+ decode(buf) {
217
+ return Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength).toString();
218
+ }
219
+ } : {
220
+ decode(buf) {
221
+ let out = "";
222
+ for (let i = 0; i < buf.length; i++)
223
+ out += String.fromCharCode(buf[i]);
224
+ return out;
225
+ }
226
+ }, StringWriter = class {
227
+ constructor() {
228
+ this.pos = 0, this.out = "", this.buffer = new Uint8Array(bufLength);
229
+ }
230
+ write(v) {
231
+ let { buffer } = this;
232
+ buffer[this.pos++] = v, this.pos === bufLength && (this.out += td.decode(buffer), this.pos = 0);
233
+ }
234
+ flush() {
235
+ let { buffer, out, pos } = this;
236
+ return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
237
+ }
238
+ }, StringReader = class {
239
+ constructor(buffer) {
240
+ this.pos = 0, this.buffer = buffer;
241
+ }
242
+ next() {
243
+ return this.buffer.charCodeAt(this.pos++);
244
+ }
245
+ peek() {
246
+ return this.buffer.charCodeAt(this.pos);
247
+ }
248
+ indexOf(char) {
249
+ let { buffer, pos } = this, idx = buffer.indexOf(char, pos);
250
+ return idx === -1 ? buffer.length : idx;
251
+ }
252
+ }, EMPTY = [];
253
+ function decodeOriginalScopes(input) {
254
+ let { length } = input, reader = new StringReader(input), scopes = [], stack = [], line = 0;
255
+ for (; reader.pos < length; reader.pos++) {
256
+ line = decodeInteger(reader, line);
257
+ let column = decodeInteger(reader, 0);
258
+ if (!hasMoreVlq(reader, length)) {
259
+ let last = stack.pop();
260
+ last[2] = line, last[3] = column;
261
+ continue;
262
+ }
263
+ let kind = decodeInteger(reader, 0), scope = decodeInteger(reader, 0) & 1 ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind], vars = EMPTY;
264
+ if (hasMoreVlq(reader, length)) {
265
+ vars = [];
266
+ do {
267
+ let varsIndex = decodeInteger(reader, 0);
268
+ vars.push(varsIndex);
269
+ } while (hasMoreVlq(reader, length));
270
+ }
271
+ scope.vars = vars, scopes.push(scope), stack.push(scope);
272
+ }
273
+ return scopes;
274
+ }
275
+ function encodeOriginalScopes(scopes) {
276
+ let writer = new StringWriter();
277
+ for (let i = 0; i < scopes.length; )
278
+ i = _encodeOriginalScopes(scopes, i, writer, [0]);
279
+ return writer.flush();
280
+ }
281
+ function _encodeOriginalScopes(scopes, index, writer, state) {
282
+ let scope = scopes[index], { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;
283
+ index > 0 && writer.write(comma), state[0] = encodeInteger(writer, startLine, state[0]), encodeInteger(writer, startColumn, 0), encodeInteger(writer, kind, 0);
284
+ let fields = scope.length === 6 ? 1 : 0;
285
+ encodeInteger(writer, fields, 0), scope.length === 6 && encodeInteger(writer, scope[5], 0);
286
+ for (let v of vars)
287
+ encodeInteger(writer, v, 0);
288
+ for (index++; index < scopes.length; ) {
289
+ let next = scopes[index], { 0: l, 1: c } = next;
290
+ if (l > endLine || l === endLine && c >= endColumn)
291
+ break;
292
+ index = _encodeOriginalScopes(scopes, index, writer, state);
293
+ }
294
+ return writer.write(comma), state[0] = encodeInteger(writer, endLine, state[0]), encodeInteger(writer, endColumn, 0), index;
295
+ }
296
+ function decodeGeneratedRanges(input) {
297
+ let { length } = input, reader = new StringReader(input), ranges = [], stack = [], genLine = 0, definitionSourcesIndex = 0, definitionScopeIndex = 0, callsiteSourcesIndex = 0, callsiteLine = 0, callsiteColumn = 0, bindingLine = 0, bindingColumn = 0;
298
+ do {
299
+ let semi = reader.indexOf(";"), genColumn = 0;
300
+ for (; reader.pos < semi; reader.pos++) {
301
+ if (genColumn = decodeInteger(reader, genColumn), !hasMoreVlq(reader, semi)) {
302
+ let last = stack.pop();
303
+ last[2] = genLine, last[3] = genColumn;
304
+ continue;
305
+ }
306
+ let fields = decodeInteger(reader, 0), hasDefinition = fields & 1, hasCallsite = fields & 2, hasScope = fields & 4, callsite = null, bindings = EMPTY, range;
307
+ if (hasDefinition) {
308
+ let defSourcesIndex = decodeInteger(reader, definitionSourcesIndex);
309
+ definitionScopeIndex = decodeInteger(
310
+ reader,
311
+ definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0
312
+ ), definitionSourcesIndex = defSourcesIndex, range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex];
313
+ } else
314
+ range = [genLine, genColumn, 0, 0];
315
+ if (range.isScope = !!hasScope, hasCallsite) {
316
+ let prevCsi = callsiteSourcesIndex, prevLine = callsiteLine;
317
+ callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex);
318
+ let sameSource = prevCsi === callsiteSourcesIndex;
319
+ callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0), callsiteColumn = decodeInteger(
320
+ reader,
321
+ sameSource && prevLine === callsiteLine ? callsiteColumn : 0
322
+ ), callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];
323
+ }
324
+ if (range.callsite = callsite, hasMoreVlq(reader, semi)) {
325
+ bindings = [];
326
+ do {
327
+ bindingLine = genLine, bindingColumn = genColumn;
328
+ let expressionsCount = decodeInteger(reader, 0), expressionRanges;
329
+ if (expressionsCount < -1) {
330
+ expressionRanges = [[decodeInteger(reader, 0)]];
331
+ for (let i = -1; i > expressionsCount; i--) {
332
+ let prevBl = bindingLine;
333
+ bindingLine = decodeInteger(reader, bindingLine), bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0);
334
+ let expression = decodeInteger(reader, 0);
335
+ expressionRanges.push([expression, bindingLine, bindingColumn]);
336
+ }
337
+ } else
338
+ expressionRanges = [[expressionsCount]];
339
+ bindings.push(expressionRanges);
340
+ } while (hasMoreVlq(reader, semi));
341
+ }
342
+ range.bindings = bindings, ranges.push(range), stack.push(range);
343
+ }
344
+ genLine++, reader.pos = semi + 1;
345
+ } while (reader.pos < length);
346
+ return ranges;
347
+ }
348
+ function encodeGeneratedRanges(ranges) {
349
+ if (ranges.length === 0) return "";
350
+ let writer = new StringWriter();
351
+ for (let i = 0; i < ranges.length; )
352
+ i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]);
353
+ return writer.flush();
354
+ }
355
+ function _encodeGeneratedRanges(ranges, index, writer, state) {
356
+ let range = ranges[index], {
357
+ 0: startLine,
358
+ 1: startColumn,
359
+ 2: endLine,
360
+ 3: endColumn,
361
+ isScope,
362
+ callsite,
363
+ bindings
364
+ } = range;
365
+ state[0] < startLine ? (catchupLine(writer, state[0], startLine), state[0] = startLine, state[1] = 0) : index > 0 && writer.write(comma), state[1] = encodeInteger(writer, range[1], state[1]);
366
+ let fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
367
+ if (encodeInteger(writer, fields, 0), range.length === 6) {
368
+ let { 4: sourcesIndex, 5: scopesIndex } = range;
369
+ sourcesIndex !== state[2] && (state[3] = 0), state[2] = encodeInteger(writer, sourcesIndex, state[2]), state[3] = encodeInteger(writer, scopesIndex, state[3]);
370
+ }
371
+ if (callsite) {
372
+ let { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite;
373
+ sourcesIndex !== state[4] ? (state[5] = 0, state[6] = 0) : callLine !== state[5] && (state[6] = 0), state[4] = encodeInteger(writer, sourcesIndex, state[4]), state[5] = encodeInteger(writer, callLine, state[5]), state[6] = encodeInteger(writer, callColumn, state[6]);
374
+ }
375
+ if (bindings)
376
+ for (let binding of bindings) {
377
+ binding.length > 1 && encodeInteger(writer, -binding.length, 0);
378
+ let expression = binding[0][0];
379
+ encodeInteger(writer, expression, 0);
380
+ let bindingStartLine = startLine, bindingStartColumn = startColumn;
381
+ for (let i = 1; i < binding.length; i++) {
382
+ let expRange = binding[i];
383
+ bindingStartLine = encodeInteger(writer, expRange[1], bindingStartLine), bindingStartColumn = encodeInteger(writer, expRange[2], bindingStartColumn), encodeInteger(writer, expRange[0], 0);
384
+ }
385
+ }
386
+ for (index++; index < ranges.length; ) {
387
+ let next = ranges[index], { 0: l, 1: c } = next;
388
+ if (l > endLine || l === endLine && c >= endColumn)
389
+ break;
390
+ index = _encodeGeneratedRanges(ranges, index, writer, state);
391
+ }
392
+ return state[0] < endLine ? (catchupLine(writer, state[0], endLine), state[0] = endLine, state[1] = 0) : writer.write(comma), state[1] = encodeInteger(writer, endColumn, state[1]), index;
393
+ }
394
+ function catchupLine(writer, lastLine, line) {
395
+ do
396
+ writer.write(semicolon);
397
+ while (++lastLine < line);
398
+ }
399
+ function decode(mappings) {
400
+ let { length } = mappings, reader = new StringReader(mappings), decoded = [], genColumn = 0, sourcesIndex = 0, sourceLine = 0, sourceColumn = 0, namesIndex = 0;
401
+ do {
402
+ let semi = reader.indexOf(";"), line = [], sorted = !0, lastCol = 0;
403
+ for (genColumn = 0; reader.pos < semi; ) {
404
+ let seg;
405
+ genColumn = decodeInteger(reader, genColumn), genColumn < lastCol && (sorted = !1), lastCol = genColumn, hasMoreVlq(reader, semi) ? (sourcesIndex = decodeInteger(reader, sourcesIndex), sourceLine = decodeInteger(reader, sourceLine), sourceColumn = decodeInteger(reader, sourceColumn), hasMoreVlq(reader, semi) ? (namesIndex = decodeInteger(reader, namesIndex), seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]) : seg = [genColumn, sourcesIndex, sourceLine, sourceColumn]) : seg = [genColumn], line.push(seg), reader.pos++;
406
+ }
407
+ sorted || sort(line), decoded.push(line), reader.pos = semi + 1;
408
+ } while (reader.pos <= length);
409
+ return decoded;
410
+ }
411
+ function sort(line) {
412
+ line.sort(sortComparator);
413
+ }
414
+ function sortComparator(a, b) {
415
+ return a[0] - b[0];
416
+ }
417
+ function encode(decoded) {
418
+ let writer = new StringWriter(), sourcesIndex = 0, sourceLine = 0, sourceColumn = 0, namesIndex = 0;
419
+ for (let i = 0; i < decoded.length; i++) {
420
+ let line = decoded[i];
421
+ if (i > 0 && writer.write(semicolon), line.length === 0) continue;
422
+ let genColumn = 0;
423
+ for (let j = 0; j < line.length; j++) {
424
+ let segment = line[j];
425
+ j > 0 && writer.write(comma), genColumn = encodeInteger(writer, segment[0], genColumn), segment.length !== 1 && (sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex), sourceLine = encodeInteger(writer, segment[2], sourceLine), sourceColumn = encodeInteger(writer, segment[3], sourceColumn), segment.length !== 4 && (namesIndex = encodeInteger(writer, segment[4], namesIndex)));
426
+ }
427
+ }
428
+ return writer.flush();
429
+ }
430
+ }));
431
+ }
432
+ });
433
+
434
+ // ../node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js
435
+ var require_trace_mapping_umd = __commonJS({
436
+ "../node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js"(exports, module) {
437
+ (function(global, factory) {
438
+ if (typeof exports == "object" && typeof module < "u")
439
+ factory(module, require_resolve_uri_umd(), require_sourcemap_codec_umd()), module.exports = def(module);
440
+ else if (typeof define == "function" && define.amd)
441
+ define(["module", "@jridgewell/resolve-uri", "@jridgewell/sourcemap-codec"], function(mod) {
442
+ factory.apply(this, arguments), mod.exports = def(mod);
443
+ });
444
+ else {
445
+ let mod = { exports: {} };
446
+ factory(mod, global.resolveURI, global.sourcemapCodec), global = typeof globalThis < "u" ? globalThis : global || self, global.traceMapping = def(mod);
447
+ }
448
+ function def(m) {
449
+ return "default" in m.exports ? m.exports.default : m.exports;
450
+ }
451
+ })(exports, (function(module2, require_resolveURI, require_sourcemapCodec) {
452
+ "use strict";
453
+ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS2 = (cb, mod) => function() {
454
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
455
+ }, __export = (target, all) => {
456
+ for (var name in all)
457
+ __defProp(target, name, { get: all[name], enumerable: !0 });
458
+ }, __copyProps = (to, from, except, desc) => {
459
+ if (from && typeof from == "object" || typeof from == "function")
460
+ for (let key of __getOwnPropNames(from))
461
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
462
+ return to;
463
+ }, __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
464
+ // If the importer is in node compatibility mode or this is not an ESM
465
+ // file that has been converted to a CommonJS file using a Babel-
466
+ // compatible transform (i.e. "__esModule" has not been set), then set
467
+ // "default" to the CommonJS "module.exports" for node compatibility.
468
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
469
+ mod
470
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod), require_sourcemap_codec = __commonJS2({
471
+ "umd:@jridgewell/sourcemap-codec"(exports2, module22) {
472
+ module22.exports = require_sourcemapCodec;
473
+ }
474
+ }), require_resolve_uri = __commonJS2({
475
+ "umd:@jridgewell/resolve-uri"(exports2, module22) {
476
+ module22.exports = require_resolveURI;
477
+ }
478
+ }), trace_mapping_exports = {};
479
+ __export(trace_mapping_exports, {
480
+ AnyMap: () => FlattenMap,
481
+ FlattenMap: () => FlattenMap,
482
+ GREATEST_LOWER_BOUND: () => GREATEST_LOWER_BOUND,
483
+ LEAST_UPPER_BOUND: () => LEAST_UPPER_BOUND,
484
+ TraceMap: () => TraceMap,
485
+ allGeneratedPositionsFor: () => allGeneratedPositionsFor,
486
+ decodedMap: () => decodedMap,
487
+ decodedMappings: () => decodedMappings,
488
+ eachMapping: () => eachMapping,
489
+ encodedMap: () => encodedMap,
490
+ encodedMappings: () => encodedMappings,
491
+ generatedPositionFor: () => generatedPositionFor,
492
+ isIgnored: () => isIgnored,
493
+ originalPositionFor: () => originalPositionFor,
494
+ presortedDecodedMap: () => presortedDecodedMap,
495
+ sourceContentFor: () => sourceContentFor,
496
+ traceSegment: () => traceSegment
497
+ }), module2.exports = __toCommonJS(trace_mapping_exports);
498
+ var import_sourcemap_codec = __toESM(require_sourcemap_codec()), import_resolve_uri = __toESM(require_resolve_uri());
499
+ function stripFilename(path) {
500
+ if (!path) return "";
501
+ let index = path.lastIndexOf("/");
502
+ return path.slice(0, index + 1);
503
+ }
504
+ function resolver(mapUrl, sourceRoot) {
505
+ let from = stripFilename(mapUrl), prefix = sourceRoot ? sourceRoot + "/" : "";
506
+ return (source) => (0, import_resolve_uri.default)(prefix + (source || ""), from);
507
+ }
508
+ var COLUMN = 0, SOURCES_INDEX = 1, SOURCE_LINE = 2, SOURCE_COLUMN = 3, NAMES_INDEX = 4, REV_GENERATED_LINE = 1, REV_GENERATED_COLUMN = 2;
509
+ function maybeSort(mappings, owned) {
510
+ let unsortedIndex = nextUnsortedSegmentLine(mappings, 0);
511
+ if (unsortedIndex === mappings.length) return mappings;
512
+ owned || (mappings = mappings.slice());
513
+ for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1))
514
+ mappings[i] = sortSegments(mappings[i], owned);
515
+ return mappings;
516
+ }
517
+ function nextUnsortedSegmentLine(mappings, start) {
518
+ for (let i = start; i < mappings.length; i++)
519
+ if (!isSorted(mappings[i])) return i;
520
+ return mappings.length;
521
+ }
522
+ function isSorted(line) {
523
+ for (let j = 1; j < line.length; j++)
524
+ if (line[j][COLUMN] < line[j - 1][COLUMN])
525
+ return !1;
526
+ return !0;
527
+ }
528
+ function sortSegments(line, owned) {
529
+ return owned || (line = line.slice()), line.sort(sortComparator);
530
+ }
531
+ function sortComparator(a, b) {
532
+ return a[COLUMN] - b[COLUMN];
533
+ }
534
+ function buildBySources(decoded, memos) {
535
+ let sources = memos.map(() => []);
536
+ for (let i = 0; i < decoded.length; i++) {
537
+ let line = decoded[i];
538
+ for (let j = 0; j < line.length; j++) {
539
+ let seg = line[j];
540
+ if (seg.length === 1) continue;
541
+ let sourceIndex2 = seg[SOURCES_INDEX], sourceLine = seg[SOURCE_LINE], sourceColumn = seg[SOURCE_COLUMN], source = sources[sourceIndex2];
542
+ (source[sourceLine] || (source[sourceLine] = [])).push([sourceColumn, i, seg[COLUMN]]);
543
+ }
544
+ }
545
+ for (let i = 0; i < sources.length; i++) {
546
+ let source = sources[i];
547
+ for (let j = 0; j < source.length; j++) {
548
+ let line = source[j];
549
+ line && line.sort(sortComparator);
550
+ }
551
+ }
552
+ return sources;
553
+ }
554
+ var found = !1;
555
+ function binarySearch(haystack, needle, low, high) {
556
+ for (; low <= high; ) {
557
+ let mid = low + (high - low >> 1), cmp = haystack[mid][COLUMN] - needle;
558
+ if (cmp === 0)
559
+ return found = !0, mid;
560
+ cmp < 0 ? low = mid + 1 : high = mid - 1;
561
+ }
562
+ return found = !1, low - 1;
563
+ }
564
+ function upperBound(haystack, needle, index) {
565
+ for (let i = index + 1; i < haystack.length && haystack[i][COLUMN] === needle; index = i++)
566
+ ;
567
+ return index;
568
+ }
569
+ function lowerBound(haystack, needle, index) {
570
+ for (let i = index - 1; i >= 0 && haystack[i][COLUMN] === needle; index = i--)
571
+ ;
572
+ return index;
573
+ }
574
+ function memoizedState() {
575
+ return {
576
+ lastKey: -1,
577
+ lastNeedle: -1,
578
+ lastIndex: -1
579
+ };
580
+ }
581
+ function memoizedBinarySearch(haystack, needle, state, key) {
582
+ let { lastKey, lastNeedle, lastIndex } = state, low = 0, high = haystack.length - 1;
583
+ if (key === lastKey) {
584
+ if (needle === lastNeedle)
585
+ return found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle, lastIndex;
586
+ needle >= lastNeedle ? low = lastIndex === -1 ? 0 : lastIndex : high = lastIndex;
587
+ }
588
+ return state.lastKey = key, state.lastNeedle = needle, state.lastIndex = binarySearch(haystack, needle, low, high);
589
+ }
590
+ function parse(map) {
591
+ return typeof map == "string" ? JSON.parse(map) : map;
592
+ }
593
+ var FlattenMap = function(map, mapUrl) {
594
+ let parsed = parse(map);
595
+ if (!("sections" in parsed))
596
+ return new TraceMap(parsed, mapUrl);
597
+ let mappings = [], sources = [], sourcesContent = [], names = [], ignoreList = [];
598
+ recurse(
599
+ parsed,
600
+ mapUrl,
601
+ mappings,
602
+ sources,
603
+ sourcesContent,
604
+ names,
605
+ ignoreList,
606
+ 0,
607
+ 0,
608
+ 1 / 0,
609
+ 1 / 0
610
+ );
611
+ let joined = {
612
+ version: 3,
613
+ file: parsed.file,
614
+ names,
615
+ sources,
616
+ sourcesContent,
617
+ mappings,
618
+ ignoreList
619
+ };
620
+ return presortedDecodedMap(joined);
621
+ };
622
+ function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
623
+ let { sections } = input;
624
+ for (let i = 0; i < sections.length; i++) {
625
+ let { map, offset } = sections[i], sl = stopLine, sc = stopColumn;
626
+ if (i + 1 < sections.length) {
627
+ let nextOffset = sections[i + 1].offset;
628
+ sl = Math.min(stopLine, lineOffset + nextOffset.line), sl === stopLine ? sc = Math.min(stopColumn, columnOffset + nextOffset.column) : sl < stopLine && (sc = columnOffset + nextOffset.column);
629
+ }
630
+ addSection(
631
+ map,
632
+ mapUrl,
633
+ mappings,
634
+ sources,
635
+ sourcesContent,
636
+ names,
637
+ ignoreList,
638
+ lineOffset + offset.line,
639
+ columnOffset + offset.column,
640
+ sl,
641
+ sc
642
+ );
643
+ }
644
+ }
645
+ function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
646
+ let parsed = parse(input);
647
+ if ("sections" in parsed) return recurse(...arguments);
648
+ let map = new TraceMap(parsed, mapUrl), sourcesOffset = sources.length, namesOffset = names.length, decoded = decodedMappings(map), { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map;
649
+ if (append(sources, resolvedSources), append(names, map.names), contents) append(sourcesContent, contents);
650
+ else for (let i = 0; i < resolvedSources.length; i++) sourcesContent.push(null);
651
+ if (ignores) for (let i = 0; i < ignores.length; i++) ignoreList.push(ignores[i] + sourcesOffset);
652
+ for (let i = 0; i < decoded.length; i++) {
653
+ let lineI = lineOffset + i;
654
+ if (lineI > stopLine) return;
655
+ let out = getLine(mappings, lineI), cOffset = i === 0 ? columnOffset : 0, line = decoded[i];
656
+ for (let j = 0; j < line.length; j++) {
657
+ let seg = line[j], column = cOffset + seg[COLUMN];
658
+ if (lineI === stopLine && column >= stopColumn) return;
659
+ if (seg.length === 1) {
660
+ out.push([column]);
661
+ continue;
662
+ }
663
+ let sourcesIndex = sourcesOffset + seg[SOURCES_INDEX], sourceLine = seg[SOURCE_LINE], sourceColumn = seg[SOURCE_COLUMN];
664
+ out.push(
665
+ seg.length === 4 ? [column, sourcesIndex, sourceLine, sourceColumn] : [column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]]
666
+ );
667
+ }
668
+ }
669
+ }
670
+ function append(arr, other) {
671
+ for (let i = 0; i < other.length; i++) arr.push(other[i]);
672
+ }
673
+ function getLine(arr, index) {
674
+ for (let i = arr.length; i <= index; i++) arr[i] = [];
675
+ return arr[index];
676
+ }
677
+ var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)", COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)", LEAST_UPPER_BOUND = -1, GREATEST_LOWER_BOUND = 1, TraceMap = class {
678
+ constructor(map, mapUrl) {
679
+ let isString = typeof map == "string";
680
+ if (!isString && map._decodedMemo) return map;
681
+ let parsed = parse(map), { version, file, names, sourceRoot, sources, sourcesContent } = parsed;
682
+ this.version = version, this.file = file, this.names = names || [], this.sourceRoot = sourceRoot, this.sources = sources, this.sourcesContent = sourcesContent, this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
683
+ let resolve = resolver(mapUrl, sourceRoot);
684
+ this.resolvedSources = sources.map(resolve);
685
+ let { mappings } = parsed;
686
+ if (typeof mappings == "string")
687
+ this._encoded = mappings, this._decoded = void 0;
688
+ else if (Array.isArray(mappings))
689
+ this._encoded = void 0, this._decoded = maybeSort(mappings, isString);
690
+ else throw parsed.sections ? new Error("TraceMap passed sectioned source map, please use FlattenMap export instead") : new Error(`invalid source map: ${JSON.stringify(parsed)}`);
691
+ this._decodedMemo = memoizedState(), this._bySources = void 0, this._bySourceMemos = void 0;
692
+ }
693
+ };
694
+ function cast(map) {
695
+ return map;
696
+ }
697
+ function encodedMappings(map) {
698
+ var _a, _b;
699
+ return (_b = (_a = map)._encoded) != null ? _b : _a._encoded = (0, import_sourcemap_codec.encode)(map._decoded);
700
+ }
701
+ function decodedMappings(map) {
702
+ var _a;
703
+ return (_a = map)._decoded || (_a._decoded = (0, import_sourcemap_codec.decode)(map._encoded));
704
+ }
705
+ function traceSegment(map, line, column) {
706
+ let decoded = decodedMappings(map);
707
+ if (line >= decoded.length) return null;
708
+ let segments = decoded[line], index = traceSegmentInternal(
709
+ segments,
710
+ map._decodedMemo,
711
+ line,
712
+ column,
713
+ GREATEST_LOWER_BOUND
714
+ );
715
+ return index === -1 ? null : segments[index];
716
+ }
717
+ function originalPositionFor(map, needle) {
718
+ let { line, column, bias } = needle;
719
+ if (line--, line < 0) throw new Error(LINE_GTR_ZERO);
720
+ if (column < 0) throw new Error(COL_GTR_EQ_ZERO);
721
+ let decoded = decodedMappings(map);
722
+ if (line >= decoded.length) return OMapping(null, null, null, null);
723
+ let segments = decoded[line], index = traceSegmentInternal(
724
+ segments,
725
+ map._decodedMemo,
726
+ line,
727
+ column,
728
+ bias || GREATEST_LOWER_BOUND
729
+ );
730
+ if (index === -1) return OMapping(null, null, null, null);
731
+ let segment = segments[index];
732
+ if (segment.length === 1) return OMapping(null, null, null, null);
733
+ let { names, resolvedSources } = map;
734
+ return OMapping(
735
+ resolvedSources[segment[SOURCES_INDEX]],
736
+ segment[SOURCE_LINE] + 1,
737
+ segment[SOURCE_COLUMN],
738
+ segment.length === 5 ? names[segment[NAMES_INDEX]] : null
739
+ );
740
+ }
741
+ function generatedPositionFor(map, needle) {
742
+ let { source, line, column, bias } = needle;
743
+ return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, !1);
744
+ }
745
+ function allGeneratedPositionsFor(map, needle) {
746
+ let { source, line, column, bias } = needle;
747
+ return generatedPosition(map, source, line, column, bias || LEAST_UPPER_BOUND, !0);
748
+ }
749
+ function eachMapping(map, cb) {
750
+ let decoded = decodedMappings(map), { names, resolvedSources } = map;
751
+ for (let i = 0; i < decoded.length; i++) {
752
+ let line = decoded[i];
753
+ for (let j = 0; j < line.length; j++) {
754
+ let seg = line[j], generatedLine = i + 1, generatedColumn = seg[0], source = null, originalLine = null, originalColumn = null, name = null;
755
+ seg.length !== 1 && (source = resolvedSources[seg[1]], originalLine = seg[2] + 1, originalColumn = seg[3]), seg.length === 5 && (name = names[seg[4]]), cb({
756
+ generatedLine,
757
+ generatedColumn,
758
+ source,
759
+ originalLine,
760
+ originalColumn,
761
+ name
762
+ });
763
+ }
764
+ }
765
+ }
766
+ function sourceIndex(map, source) {
767
+ let { sources, resolvedSources } = map, index = sources.indexOf(source);
768
+ return index === -1 && (index = resolvedSources.indexOf(source)), index;
769
+ }
770
+ function sourceContentFor(map, source) {
771
+ let { sourcesContent } = map;
772
+ if (sourcesContent == null) return null;
773
+ let index = sourceIndex(map, source);
774
+ return index === -1 ? null : sourcesContent[index];
775
+ }
776
+ function isIgnored(map, source) {
777
+ let { ignoreList } = map;
778
+ if (ignoreList == null) return !1;
779
+ let index = sourceIndex(map, source);
780
+ return index === -1 ? !1 : ignoreList.includes(index);
781
+ }
782
+ function presortedDecodedMap(map, mapUrl) {
783
+ let tracer = new TraceMap(clone(map, []), mapUrl);
784
+ return tracer._decoded = map.mappings, tracer;
785
+ }
786
+ function decodedMap(map) {
787
+ return clone(map, decodedMappings(map));
788
+ }
789
+ function encodedMap(map) {
790
+ return clone(map, encodedMappings(map));
791
+ }
792
+ function clone(map, mappings) {
793
+ return {
794
+ version: map.version,
795
+ file: map.file,
796
+ names: map.names,
797
+ sourceRoot: map.sourceRoot,
798
+ sources: map.sources,
799
+ sourcesContent: map.sourcesContent,
800
+ mappings,
801
+ ignoreList: map.ignoreList || map.x_google_ignoreList
802
+ };
803
+ }
804
+ function OMapping(source, line, column, name) {
805
+ return { source, line, column, name };
806
+ }
807
+ function GMapping(line, column) {
808
+ return { line, column };
809
+ }
810
+ function traceSegmentInternal(segments, memo, line, column, bias) {
811
+ let index = memoizedBinarySearch(segments, column, memo, line);
812
+ return found ? index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index) : bias === LEAST_UPPER_BOUND && index++, index === -1 || index === segments.length ? -1 : index;
813
+ }
814
+ function sliceGeneratedPositions(segments, memo, line, column, bias) {
815
+ let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND);
816
+ if (!found && bias === LEAST_UPPER_BOUND && min++, min === -1 || min === segments.length) return [];
817
+ let matchedColumn = found ? column : segments[min][COLUMN];
818
+ found || (min = lowerBound(segments, matchedColumn, min));
819
+ let max = upperBound(segments, matchedColumn, min), result = [];
820
+ for (; min <= max; min++) {
821
+ let segment = segments[min];
822
+ result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]));
823
+ }
824
+ return result;
825
+ }
826
+ function generatedPosition(map, source, line, column, bias, all) {
827
+ var _a, _b;
828
+ if (line--, line < 0) throw new Error(LINE_GTR_ZERO);
829
+ if (column < 0) throw new Error(COL_GTR_EQ_ZERO);
830
+ let { sources, resolvedSources } = map, sourceIndex2 = sources.indexOf(source);
831
+ if (sourceIndex2 === -1 && (sourceIndex2 = resolvedSources.indexOf(source)), sourceIndex2 === -1) return all ? [] : GMapping(null, null);
832
+ let bySourceMemos = (_a = map)._bySourceMemos || (_a._bySourceMemos = sources.map(memoizedState)), segments = ((_b = map)._bySources || (_b._bySources = buildBySources(decodedMappings(map), bySourceMemos)))[sourceIndex2][line];
833
+ if (segments == null) return all ? [] : GMapping(null, null);
834
+ let memo = bySourceMemos[sourceIndex2];
835
+ if (all) return sliceGeneratedPositions(segments, memo, line, column, bias);
836
+ let index = traceSegmentInternal(segments, memo, line, column, bias);
837
+ if (index === -1) return GMapping(null, null);
838
+ let segment = segments[index];
839
+ return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]);
840
+ }
841
+ }));
842
+ }
843
+ });
844
+
845
+ // ../node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js
846
+ var require_gen_mapping_umd = __commonJS({
847
+ "../node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js"(exports, module) {
848
+ (function(global, factory) {
849
+ if (typeof exports == "object" && typeof module < "u")
850
+ factory(module, require_sourcemap_codec_umd(), require_trace_mapping_umd()), module.exports = def(module);
851
+ else if (typeof define == "function" && define.amd)
852
+ define(["module", "@jridgewell/sourcemap-codec", "@jridgewell/trace-mapping"], function(mod) {
853
+ factory.apply(this, arguments), mod.exports = def(mod);
854
+ });
855
+ else {
856
+ let mod = { exports: {} };
857
+ factory(mod, global.sourcemapCodec, global.traceMapping), global = typeof globalThis < "u" ? globalThis : global || self, global.genMapping = def(mod);
858
+ }
859
+ function def(m) {
860
+ return "default" in m.exports ? m.exports.default : m.exports;
861
+ }
862
+ })(exports, (function(module2, require_sourcemapCodec, require_traceMapping) {
863
+ "use strict";
864
+ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS2 = (cb, mod) => function() {
865
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
866
+ }, __export = (target, all) => {
867
+ for (var name in all)
868
+ __defProp(target, name, { get: all[name], enumerable: !0 });
869
+ }, __copyProps = (to, from, except, desc) => {
870
+ if (from && typeof from == "object" || typeof from == "function")
871
+ for (let key of __getOwnPropNames(from))
872
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
873
+ return to;
874
+ }, __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
875
+ // If the importer is in node compatibility mode or this is not an ESM
876
+ // file that has been converted to a CommonJS file using a Babel-
877
+ // compatible transform (i.e. "__esModule" has not been set), then set
878
+ // "default" to the CommonJS "module.exports" for node compatibility.
879
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
880
+ mod
881
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod), require_sourcemap_codec = __commonJS2({
882
+ "umd:@jridgewell/sourcemap-codec"(exports2, module22) {
883
+ module22.exports = require_sourcemapCodec;
884
+ }
885
+ }), require_trace_mapping = __commonJS2({
886
+ "umd:@jridgewell/trace-mapping"(exports2, module22) {
887
+ module22.exports = require_traceMapping;
888
+ }
889
+ }), gen_mapping_exports = {};
890
+ __export(gen_mapping_exports, {
891
+ GenMapping: () => GenMapping,
892
+ addMapping: () => addMapping,
893
+ addSegment: () => addSegment,
894
+ allMappings: () => allMappings,
895
+ fromMap: () => fromMap,
896
+ maybeAddMapping: () => maybeAddMapping,
897
+ maybeAddSegment: () => maybeAddSegment,
898
+ setIgnore: () => setIgnore,
899
+ setSourceContent: () => setSourceContent,
900
+ toDecodedMap: () => toDecodedMap,
901
+ toEncodedMap: () => toEncodedMap
902
+ }), module2.exports = __toCommonJS(gen_mapping_exports);
903
+ var SetArray = class {
904
+ constructor() {
905
+ this._indexes = { __proto__: null }, this.array = [];
906
+ }
907
+ };
908
+ function cast(set) {
909
+ return set;
910
+ }
911
+ function get(setarr, key) {
912
+ return setarr._indexes[key];
913
+ }
914
+ function put(setarr, key) {
915
+ let index = get(setarr, key);
916
+ if (index !== void 0) return index;
917
+ let { array, _indexes: indexes } = setarr, length = array.push(key);
918
+ return indexes[key] = length - 1;
919
+ }
920
+ function remove(setarr, key) {
921
+ let index = get(setarr, key);
922
+ if (index === void 0) return;
923
+ let { array, _indexes: indexes } = setarr;
924
+ for (let i = index + 1; i < array.length; i++) {
925
+ let k = array[i];
926
+ array[i - 1] = k, indexes[k]--;
927
+ }
928
+ indexes[key] = void 0, array.pop();
929
+ }
930
+ var import_sourcemap_codec = __toESM(require_sourcemap_codec()), import_trace_mapping = __toESM(require_trace_mapping()), COLUMN = 0, SOURCES_INDEX = 1, SOURCE_LINE = 2, SOURCE_COLUMN = 3, NAMES_INDEX = 4, NO_NAME = -1, GenMapping = class {
931
+ constructor({ file, sourceRoot } = {}) {
932
+ this._names = new SetArray(), this._sources = new SetArray(), this._sourcesContent = [], this._mappings = [], this.file = file, this.sourceRoot = sourceRoot, this._ignoreList = new SetArray();
933
+ }
934
+ };
935
+ function cast2(map) {
936
+ return map;
937
+ }
938
+ function addSegment(map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
939
+ return addSegmentInternal(
940
+ !1,
941
+ map,
942
+ genLine,
943
+ genColumn,
944
+ source,
945
+ sourceLine,
946
+ sourceColumn,
947
+ name,
948
+ content
949
+ );
950
+ }
951
+ function addMapping(map, mapping) {
952
+ return addMappingInternal(!1, map, mapping);
953
+ }
954
+ var maybeAddSegment = (map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) => addSegmentInternal(
955
+ !0,
956
+ map,
957
+ genLine,
958
+ genColumn,
959
+ source,
960
+ sourceLine,
961
+ sourceColumn,
962
+ name,
963
+ content
964
+ ), maybeAddMapping = (map, mapping) => addMappingInternal(!0, map, mapping);
965
+ function setSourceContent(map, source, content) {
966
+ let {
967
+ _sources: sources,
968
+ _sourcesContent: sourcesContent
969
+ // _originalScopes: originalScopes,
970
+ } = map, index = put(sources, source);
971
+ sourcesContent[index] = content;
972
+ }
973
+ function setIgnore(map, source, ignore = !0) {
974
+ let {
975
+ _sources: sources,
976
+ _sourcesContent: sourcesContent,
977
+ _ignoreList: ignoreList
978
+ // _originalScopes: originalScopes,
979
+ } = map, index = put(sources, source);
980
+ index === sourcesContent.length && (sourcesContent[index] = null), ignore ? put(ignoreList, index) : remove(ignoreList, index);
981
+ }
982
+ function toDecodedMap(map) {
983
+ let {
984
+ _mappings: mappings,
985
+ _sources: sources,
986
+ _sourcesContent: sourcesContent,
987
+ _names: names,
988
+ _ignoreList: ignoreList
989
+ // _originalScopes: originalScopes,
990
+ // _generatedRanges: generatedRanges,
991
+ } = map;
992
+ return removeEmptyFinalLines(mappings), {
993
+ version: 3,
994
+ file: map.file || void 0,
995
+ names: names.array,
996
+ sourceRoot: map.sourceRoot || void 0,
997
+ sources: sources.array,
998
+ sourcesContent,
999
+ mappings,
1000
+ // originalScopes,
1001
+ // generatedRanges,
1002
+ ignoreList: ignoreList.array
1003
+ };
1004
+ }
1005
+ function toEncodedMap(map) {
1006
+ let decoded = toDecodedMap(map);
1007
+ return Object.assign({}, decoded, {
1008
+ // originalScopes: decoded.originalScopes.map((os) => encodeOriginalScopes(os)),
1009
+ // generatedRanges: encodeGeneratedRanges(decoded.generatedRanges as GeneratedRange[]),
1010
+ mappings: (0, import_sourcemap_codec.encode)(decoded.mappings)
1011
+ });
1012
+ }
1013
+ function fromMap(input) {
1014
+ let map = new import_trace_mapping.TraceMap(input), gen = new GenMapping({ file: map.file, sourceRoot: map.sourceRoot });
1015
+ return putAll(gen._names, map.names), putAll(gen._sources, map.sources), gen._sourcesContent = map.sourcesContent || map.sources.map(() => null), gen._mappings = (0, import_trace_mapping.decodedMappings)(map), map.ignoreList && putAll(gen._ignoreList, map.ignoreList), gen;
1016
+ }
1017
+ function allMappings(map) {
1018
+ let out = [], { _mappings: mappings, _sources: sources, _names: names } = map;
1019
+ for (let i = 0; i < mappings.length; i++) {
1020
+ let line = mappings[i];
1021
+ for (let j = 0; j < line.length; j++) {
1022
+ let seg = line[j], generated = { line: i + 1, column: seg[COLUMN] }, source, original, name;
1023
+ seg.length !== 1 && (source = sources.array[seg[SOURCES_INDEX]], original = { line: seg[SOURCE_LINE] + 1, column: seg[SOURCE_COLUMN] }, seg.length === 5 && (name = names.array[seg[NAMES_INDEX]])), out.push({ generated, source, original, name });
1024
+ }
1025
+ }
1026
+ return out;
1027
+ }
1028
+ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
1029
+ let {
1030
+ _mappings: mappings,
1031
+ _sources: sources,
1032
+ _sourcesContent: sourcesContent,
1033
+ _names: names
1034
+ // _originalScopes: originalScopes,
1035
+ } = map, line = getIndex(mappings, genLine), index = getColumnIndex(line, genColumn);
1036
+ if (!source)
1037
+ return skipable && skipSourceless(line, index) ? void 0 : insert(line, index, [genColumn]);
1038
+ let sourcesIndex = put(sources, source), namesIndex = name ? put(names, name) : NO_NAME;
1039
+ if (sourcesIndex === sourcesContent.length && (sourcesContent[sourcesIndex] = content ?? null), !(skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)))
1040
+ return insert(
1041
+ line,
1042
+ index,
1043
+ name ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex] : [genColumn, sourcesIndex, sourceLine, sourceColumn]
1044
+ );
1045
+ }
1046
+ function assert(_val) {
1047
+ }
1048
+ function getIndex(arr, index) {
1049
+ for (let i = arr.length; i <= index; i++)
1050
+ arr[i] = [];
1051
+ return arr[index];
1052
+ }
1053
+ function getColumnIndex(line, genColumn) {
1054
+ let index = line.length;
1055
+ for (let i = index - 1; i >= 0; index = i--) {
1056
+ let current = line[i];
1057
+ if (genColumn >= current[COLUMN]) break;
1058
+ }
1059
+ return index;
1060
+ }
1061
+ function insert(array, index, value) {
1062
+ for (let i = array.length; i > index; i--)
1063
+ array[i] = array[i - 1];
1064
+ array[index] = value;
1065
+ }
1066
+ function removeEmptyFinalLines(mappings) {
1067
+ let { length } = mappings, len = length;
1068
+ for (let i = len - 1; i >= 0 && !(mappings[i].length > 0); len = i, i--)
1069
+ ;
1070
+ len < length && (mappings.length = len);
1071
+ }
1072
+ function putAll(setarr, array) {
1073
+ for (let i = 0; i < array.length; i++) put(setarr, array[i]);
1074
+ }
1075
+ function skipSourceless(line, index) {
1076
+ return index === 0 ? !0 : line[index - 1].length === 1;
1077
+ }
1078
+ function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) {
1079
+ if (index === 0) return !1;
1080
+ let prev = line[index - 1];
1081
+ return prev.length === 1 ? !1 : sourcesIndex === prev[SOURCES_INDEX] && sourceLine === prev[SOURCE_LINE] && sourceColumn === prev[SOURCE_COLUMN] && namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME);
1082
+ }
1083
+ function addMappingInternal(skipable, map, mapping) {
1084
+ let { generated, source, original, name, content } = mapping;
1085
+ return source ? addSegmentInternal(
1086
+ skipable,
1087
+ map,
1088
+ generated.line - 1,
1089
+ generated.column,
1090
+ source,
1091
+ original.line - 1,
1092
+ original.column,
1093
+ name,
1094
+ content
1095
+ ) : addSegmentInternal(
1096
+ skipable,
1097
+ map,
1098
+ generated.line - 1,
1099
+ generated.column,
1100
+ null,
1101
+ null,
1102
+ null,
1103
+ null,
1104
+ null
1105
+ );
1106
+ }
1107
+ }));
1108
+ }
1109
+ });
1110
+
1111
+ export {
1112
+ require_trace_mapping_umd,
1113
+ require_gen_mapping_umd
1114
+ };