@sailfish-ai/sf-veritas 0.2.6 → 0.2.9

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 (42) hide show
  1. package/dist/contextManager-CEPhVu9T.js +197 -0
  2. package/dist/contextManager-CGINtRN5.cjs +1 -0
  3. package/dist/funcSpanTransformer-B9WWl-g1.cjs +1 -0
  4. package/dist/funcSpanTransformer-CWNEWRxq.js +225 -0
  5. package/dist/plugins/funcspanEsbuildPlugin.cjs +1 -1
  6. package/dist/plugins/funcspanEsbuildPlugin.mjs +17 -11
  7. package/dist/plugins/funcspanRollupPlugin.cjs +1 -1
  8. package/dist/plugins/funcspanRollupPlugin.mjs +13 -8
  9. package/dist/plugins/funcspanTscPlugin.cjs +1 -1
  10. package/dist/plugins/funcspanTscPlugin.mjs +19 -14
  11. package/dist/plugins/funcspanVitePlugin.cjs +1 -1
  12. package/dist/plugins/funcspanVitePlugin.mjs +15 -10
  13. package/dist/plugins/funcspanWebpackLoader.cjs +1 -1
  14. package/dist/plugins/funcspanWebpackLoader.mjs +1 -1
  15. package/dist/plugins/funcspanWebpackPlugin.cjs +1 -1
  16. package/dist/plugins/funcspanWebpackPlugin.mjs +22 -17
  17. package/dist/runtime/funcspanRegister.cjs +276 -0
  18. package/dist/runtimeConfig-CpQ27dZD.cjs +8 -0
  19. package/dist/runtimeConfig-emBNO3lJ.js +350 -0
  20. package/dist/sf-veritas.cjs +18 -18
  21. package/dist/sf-veritas.mjs +461 -620
  22. package/dist/source-map-Cr6YkjTd.js +631 -0
  23. package/dist/source-map-rHHEdpre.cjs +1 -0
  24. package/dist/types/dataTransmitter.d.ts +1 -0
  25. package/dist/types/funcSpanConfig.d.ts +8 -0
  26. package/dist/types/funcSpanConfigLoader.d.ts +10 -0
  27. package/dist/types/index.d.ts +4 -2
  28. package/dist/types/logHandler.d.ts +5 -0
  29. package/dist/types/plugins/funcSpanTransformer.d.ts +13 -0
  30. package/dist/types/runtime/instrumentationDetector.d.ts +33 -0
  31. package/dist/types/runtime/runtimeConfig.d.ts +48 -0
  32. package/dist/types/sourceLocation.d.ts +30 -0
  33. package/dist/types/unifiedInterceptor.d.ts +4 -0
  34. package/dist/worker-pool-capture.cjs +1 -1
  35. package/dist/worker-pool-capture.mjs +1 -1
  36. package/dist/workerPoolSpanCapture-B5KN-q4b.js +528 -0
  37. package/dist/workerPoolSpanCapture-Dg_WGjmO.cjs +86 -0
  38. package/package.json +5 -2
  39. package/dist/funcSpanTransformer-TjdooSrw.cjs +0 -1
  40. package/dist/funcSpanTransformer-sqmZLAcs.js +0 -750
  41. package/dist/workerPoolSpanCapture-BOnYC4s3.js +0 -705
  42. package/dist/workerPoolSpanCapture-CNEouInA.cjs +0 -83
@@ -0,0 +1,631 @@
1
+ var F, $, N = {}, j = {}, G = {}, U = {};
2
+ function te() {
3
+ if (F) return U;
4
+ F = 1;
5
+ var u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
6
+ return U.encode = function(p) {
7
+ if (0 <= p && p < u.length) return u[p];
8
+ throw new TypeError("Must be between 0 and 63: " + p);
9
+ }, U.decode = function(p) {
10
+ return 65 <= p && p <= 90 ? p - 65 : 97 <= p && p <= 122 ? p - 97 + 26 : 48 <= p && p <= 57 ? p - 48 + 52 : p == 43 ? 62 : p == 47 ? 63 : -1;
11
+ }, U;
12
+ }
13
+ function ne() {
14
+ if ($) return G;
15
+ $ = 1;
16
+ var u = te();
17
+ return G.encode = function(p) {
18
+ var m, d = "", c = (function(r) {
19
+ return r < 0 ? 1 + (-r << 1) : 0 + (r << 1);
20
+ })(p);
21
+ do
22
+ m = 31 & c, (c >>>= 5) > 0 && (m |= 32), d += u.encode(m);
23
+ while (c > 0);
24
+ return d;
25
+ }, G.decode = function(p, m, d) {
26
+ var c, r, t, l, g = p.length, h = 0, _ = 0;
27
+ do {
28
+ if (m >= g) throw new Error("Expected more digits in base 64 VLQ value.");
29
+ if ((r = u.decode(p.charCodeAt(m++))) === -1) throw new Error("Invalid base64 digit: " + p.charAt(m - 1));
30
+ c = !!(32 & r), h += (r &= 31) << _, _ += 5;
31
+ } while (c);
32
+ d.value = (l = (t = h) >> 1, 1 & ~t ? l : -l), d.rest = m;
33
+ }, G;
34
+ }
35
+ var z, W = {};
36
+ function R() {
37
+ return z || (z = 1, (function(u) {
38
+ u.getArg = function(e, n, s) {
39
+ if (n in e) return e[n];
40
+ if (arguments.length === 3) return s;
41
+ throw new Error('"' + n + '" is a required argument.');
42
+ };
43
+ var p = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/, m = /^data:.+\,.+$/;
44
+ function d(e) {
45
+ var n = e.match(p);
46
+ return n ? { scheme: n[1], auth: n[2], host: n[3], port: n[4], path: n[5] } : null;
47
+ }
48
+ function c(e) {
49
+ var n = "";
50
+ return e.scheme && (n += e.scheme + ":"), n += "//", e.auth && (n += e.auth + "@"), e.host && (n += e.host), e.port && (n += ":" + e.port), e.path && (n += e.path), n;
51
+ }
52
+ u.urlParse = d, u.urlGenerate = c;
53
+ var r, t, l = (r = function(e) {
54
+ var n = e, s = d(e);
55
+ if (s) {
56
+ if (!s.path) return e;
57
+ n = s.path;
58
+ }
59
+ for (var o = u.isAbsolute(n), f = [], v = 0, C = 0; ; ) {
60
+ if (v = C, (C = n.indexOf("/", v)) === -1) {
61
+ f.push(n.slice(v));
62
+ break;
63
+ }
64
+ for (f.push(n.slice(v, C)); C < n.length && n[C] === "/"; ) C++;
65
+ }
66
+ var S, y = 0;
67
+ for (C = f.length - 1; C >= 0; C--) (S = f[C]) === "." ? f.splice(C, 1) : S === ".." ? y++ : y > 0 && (S === "" ? (f.splice(C + 1, y), y = 0) : (f.splice(C, 2), y--));
68
+ return (n = f.join("/")) === "" && (n = o ? "/" : "."), s ? (s.path = n, c(s)) : n;
69
+ }, t = [], function(e) {
70
+ for (var n = 0; n < t.length; n++) if (t[n].input === e) {
71
+ var s = t[0];
72
+ return t[0] = t[n], t[n] = s, t[0].result;
73
+ }
74
+ var o = r(e);
75
+ return t.unshift({ input: e, result: o }), t.length > 32 && t.pop(), o;
76
+ });
77
+ function g(e, n) {
78
+ e === "" && (e = "."), n === "" && (n = ".");
79
+ var s = d(n), o = d(e);
80
+ if (o && (e = o.path || "/"), s && !s.scheme) return o && (s.scheme = o.scheme), c(s);
81
+ if (s || n.match(m)) return n;
82
+ if (o && !o.host && !o.path) return o.host = n, c(o);
83
+ var f = n.charAt(0) === "/" ? n : l(e.replace(/\/+$/, "") + "/" + n);
84
+ return o ? (o.path = f, c(o)) : f;
85
+ }
86
+ u.normalize = l, u.join = g, u.isAbsolute = function(e) {
87
+ return e.charAt(0) === "/" || p.test(e);
88
+ }, u.relative = function(e, n) {
89
+ e === "" && (e = "."), e = e.replace(/\/$/, "");
90
+ for (var s = 0; n.indexOf(e + "/") !== 0; ) {
91
+ var o = e.lastIndexOf("/");
92
+ if (o < 0 || (e = e.slice(0, o)).match(/^([^\/]+:\/)?\/*$/)) return n;
93
+ ++s;
94
+ }
95
+ return Array(s + 1).join("../") + n.substr(e.length + 1);
96
+ };
97
+ var h = !("__proto__" in /* @__PURE__ */ Object.create(null));
98
+ function _(e) {
99
+ return e;
100
+ }
101
+ function i(e) {
102
+ if (!e) return !1;
103
+ var n = e.length;
104
+ if (n < 9 || e.charCodeAt(n - 1) !== 95 || e.charCodeAt(n - 2) !== 95 || e.charCodeAt(n - 3) !== 111 || e.charCodeAt(n - 4) !== 116 || e.charCodeAt(n - 5) !== 111 || e.charCodeAt(n - 6) !== 114 || e.charCodeAt(n - 7) !== 112 || e.charCodeAt(n - 8) !== 95 || e.charCodeAt(n - 9) !== 95) return !1;
105
+ for (var s = n - 10; s >= 0; s--) if (e.charCodeAt(s) !== 36) return !1;
106
+ return !0;
107
+ }
108
+ function a(e, n) {
109
+ return e === n ? 0 : e === null ? 1 : n === null ? -1 : e > n ? 1 : -1;
110
+ }
111
+ u.toSetString = h ? _ : function(e) {
112
+ return i(e) ? "$" + e : e;
113
+ }, u.fromSetString = h ? _ : function(e) {
114
+ return i(e) ? e.slice(1) : e;
115
+ }, u.compareByOriginalPositions = function(e, n, s) {
116
+ var o = a(e.source, n.source);
117
+ return o !== 0 || (o = e.originalLine - n.originalLine) !== 0 || (o = e.originalColumn - n.originalColumn) !== 0 || s || (o = e.generatedColumn - n.generatedColumn) !== 0 || (o = e.generatedLine - n.generatedLine) !== 0 ? o : a(e.name, n.name);
118
+ }, u.compareByOriginalPositionsNoSource = function(e, n, s) {
119
+ var o;
120
+ return (o = e.originalLine - n.originalLine) !== 0 || (o = e.originalColumn - n.originalColumn) !== 0 || s || (o = e.generatedColumn - n.generatedColumn) !== 0 || (o = e.generatedLine - n.generatedLine) !== 0 ? o : a(e.name, n.name);
121
+ }, u.compareByGeneratedPositionsDeflated = function(e, n, s) {
122
+ var o = e.generatedLine - n.generatedLine;
123
+ return o !== 0 || (o = e.generatedColumn - n.generatedColumn) !== 0 || s || (o = a(e.source, n.source)) !== 0 || (o = e.originalLine - n.originalLine) !== 0 || (o = e.originalColumn - n.originalColumn) !== 0 ? o : a(e.name, n.name);
124
+ }, u.compareByGeneratedPositionsDeflatedNoLine = function(e, n, s) {
125
+ var o = e.generatedColumn - n.generatedColumn;
126
+ return o !== 0 || s || (o = a(e.source, n.source)) !== 0 || (o = e.originalLine - n.originalLine) !== 0 || (o = e.originalColumn - n.originalColumn) !== 0 ? o : a(e.name, n.name);
127
+ }, u.compareByGeneratedPositionsInflated = function(e, n) {
128
+ var s = e.generatedLine - n.generatedLine;
129
+ return s !== 0 || (s = e.generatedColumn - n.generatedColumn) !== 0 || (s = a(e.source, n.source)) !== 0 || (s = e.originalLine - n.originalLine) !== 0 || (s = e.originalColumn - n.originalColumn) !== 0 ? s : a(e.name, n.name);
130
+ }, u.parseSourceMapInput = function(e) {
131
+ return JSON.parse(e.replace(/^\)]}'[^\n]*\n/, ""));
132
+ }, u.computeSourceURL = function(e, n, s) {
133
+ if (n = n || "", e && (e[e.length - 1] !== "/" && n[0] !== "/" && (e += "/"), n = e + n), s) {
134
+ var o = d(s);
135
+ if (!o) throw new Error("sourceMapURL could not be parsed");
136
+ if (o.path) {
137
+ var f = o.path.lastIndexOf("/");
138
+ f >= 0 && (o.path = o.path.substring(0, f + 1));
139
+ }
140
+ n = g(c(o), n);
141
+ }
142
+ return l(n);
143
+ };
144
+ })(W)), W;
145
+ }
146
+ var q, x = {};
147
+ function re() {
148
+ if (q) return x;
149
+ q = 1;
150
+ var u = R(), p = Object.prototype.hasOwnProperty, m = typeof Map < "u";
151
+ function d() {
152
+ this._array = [], this._set = m ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
153
+ }
154
+ return d.fromArray = function(c, r) {
155
+ for (var t = new d(), l = 0, g = c.length; l < g; l++) t.add(c[l], r);
156
+ return t;
157
+ }, d.prototype.size = function() {
158
+ return m ? this._set.size : Object.getOwnPropertyNames(this._set).length;
159
+ }, d.prototype.add = function(c, r) {
160
+ var t = m ? c : u.toSetString(c), l = m ? this.has(c) : p.call(this._set, t), g = this._array.length;
161
+ l && !r || this._array.push(c), l || (m ? this._set.set(c, g) : this._set[t] = g);
162
+ }, d.prototype.has = function(c) {
163
+ if (m) return this._set.has(c);
164
+ var r = u.toSetString(c);
165
+ return p.call(this._set, r);
166
+ }, d.prototype.indexOf = function(c) {
167
+ if (m) {
168
+ var r = this._set.get(c);
169
+ if (r >= 0) return r;
170
+ } else {
171
+ var t = u.toSetString(c);
172
+ if (p.call(this._set, t)) return this._set[t];
173
+ }
174
+ throw new Error('"' + c + '" is not in the set.');
175
+ }, d.prototype.at = function(c) {
176
+ if (c >= 0 && c < this._array.length) return this._array[c];
177
+ throw new Error("No element indexed by " + c);
178
+ }, d.prototype.toArray = function() {
179
+ return this._array.slice();
180
+ }, x.ArraySet = d, x;
181
+ }
182
+ var J, V, D = {};
183
+ function oe() {
184
+ if (J) return D;
185
+ J = 1;
186
+ var u = R();
187
+ function p() {
188
+ this._array = [], this._sorted = !0, this._last = { generatedLine: -1, generatedColumn: 0 };
189
+ }
190
+ return p.prototype.unsortedForEach = function(m, d) {
191
+ this._array.forEach(m, d);
192
+ }, p.prototype.add = function(m) {
193
+ var d, c, r, t, l, g;
194
+ d = this._last, c = m, r = d.generatedLine, t = c.generatedLine, l = d.generatedColumn, g = c.generatedColumn, t > r || t == r && g >= l || u.compareByGeneratedPositionsInflated(d, c) <= 0 ? (this._last = m, this._array.push(m)) : (this._sorted = !1, this._array.push(m));
195
+ }, p.prototype.toArray = function() {
196
+ return this._sorted || (this._array.sort(u.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
197
+ }, D.MappingList = p, D;
198
+ }
199
+ function Q() {
200
+ if (V) return j;
201
+ V = 1;
202
+ var u = ne(), p = R(), m = re().ArraySet, d = oe().MappingList;
203
+ function c(r) {
204
+ r || (r = {}), this._file = p.getArg(r, "file", null), this._sourceRoot = p.getArg(r, "sourceRoot", null), this._skipValidation = p.getArg(r, "skipValidation", !1), this._ignoreInvalidMapping = p.getArg(r, "ignoreInvalidMapping", !1), this._sources = new m(), this._names = new m(), this._mappings = new d(), this._sourcesContents = null;
205
+ }
206
+ return c.prototype._version = 3, c.fromSourceMap = function(r, t) {
207
+ var l = r.sourceRoot, g = new c(Object.assign(t || {}, { file: r.file, sourceRoot: l }));
208
+ return r.eachMapping(function(h) {
209
+ var _ = { generated: { line: h.generatedLine, column: h.generatedColumn } };
210
+ h.source != null && (_.source = h.source, l != null && (_.source = p.relative(l, _.source)), _.original = { line: h.originalLine, column: h.originalColumn }, h.name != null && (_.name = h.name)), g.addMapping(_);
211
+ }), r.sources.forEach(function(h) {
212
+ var _ = h;
213
+ l !== null && (_ = p.relative(l, h)), g._sources.has(_) || g._sources.add(_);
214
+ var i = r.sourceContentFor(h);
215
+ i != null && g.setSourceContent(h, i);
216
+ }), g;
217
+ }, c.prototype.addMapping = function(r) {
218
+ var t = p.getArg(r, "generated"), l = p.getArg(r, "original", null), g = p.getArg(r, "source", null), h = p.getArg(r, "name", null);
219
+ (this._skipValidation || this._validateMapping(t, l, g, h) !== !1) && (g != null && (g = String(g), this._sources.has(g) || this._sources.add(g)), h != null && (h = String(h), this._names.has(h) || this._names.add(h)), this._mappings.add({ generatedLine: t.line, generatedColumn: t.column, originalLine: l != null && l.line, originalColumn: l != null && l.column, source: g, name: h }));
220
+ }, c.prototype.setSourceContent = function(r, t) {
221
+ var l = r;
222
+ this._sourceRoot != null && (l = p.relative(this._sourceRoot, l)), t != null ? (this._sourcesContents || (this._sourcesContents = /* @__PURE__ */ Object.create(null)), this._sourcesContents[p.toSetString(l)] = t) : this._sourcesContents && (delete this._sourcesContents[p.toSetString(l)], Object.keys(this._sourcesContents).length === 0 && (this._sourcesContents = null));
223
+ }, c.prototype.applySourceMap = function(r, t, l) {
224
+ var g = t;
225
+ if (t == null) {
226
+ if (r.file == null) throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);
227
+ g = r.file;
228
+ }
229
+ var h = this._sourceRoot;
230
+ h != null && (g = p.relative(h, g));
231
+ var _ = new m(), i = new m();
232
+ this._mappings.unsortedForEach(function(a) {
233
+ if (a.source === g && a.originalLine != null) {
234
+ var e = r.originalPositionFor({ line: a.originalLine, column: a.originalColumn });
235
+ e.source != null && (a.source = e.source, l != null && (a.source = p.join(l, a.source)), h != null && (a.source = p.relative(h, a.source)), a.originalLine = e.line, a.originalColumn = e.column, e.name != null && (a.name = e.name));
236
+ }
237
+ var n = a.source;
238
+ n == null || _.has(n) || _.add(n);
239
+ var s = a.name;
240
+ s == null || i.has(s) || i.add(s);
241
+ }, this), this._sources = _, this._names = i, r.sources.forEach(function(a) {
242
+ var e = r.sourceContentFor(a);
243
+ e != null && (l != null && (a = p.join(l, a)), h != null && (a = p.relative(h, a)), this.setSourceContent(a, e));
244
+ }, this);
245
+ }, c.prototype._validateMapping = function(r, t, l, g) {
246
+ if (t && typeof t.line != "number" && typeof t.column != "number") {
247
+ var h = "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";
248
+ if (this._ignoreInvalidMapping) return typeof console < "u" && console.warn && console.warn(h), !1;
249
+ throw new Error(h);
250
+ }
251
+ if ((!(r && "line" in r && "column" in r && r.line > 0 && r.column >= 0) || t || l || g) && !(r && "line" in r && "column" in r && t && "line" in t && "column" in t && r.line > 0 && r.column >= 0 && t.line > 0 && t.column >= 0 && l)) {
252
+ if (h = "Invalid mapping: " + JSON.stringify({ generated: r, source: l, original: t, name: g }), this._ignoreInvalidMapping) return typeof console < "u" && console.warn && console.warn(h), !1;
253
+ throw new Error(h);
254
+ }
255
+ }, c.prototype._serializeMappings = function() {
256
+ for (var r, t, l, g, h = 0, _ = 1, i = 0, a = 0, e = 0, n = 0, s = "", o = this._mappings.toArray(), f = 0, v = o.length; f < v; f++) {
257
+ if (r = "", (t = o[f]).generatedLine !== _) for (h = 0; t.generatedLine !== _; ) r += ";", _++;
258
+ else if (f > 0) {
259
+ if (!p.compareByGeneratedPositionsInflated(t, o[f - 1])) continue;
260
+ r += ",";
261
+ }
262
+ r += u.encode(t.generatedColumn - h), h = t.generatedColumn, t.source != null && (g = this._sources.indexOf(t.source), r += u.encode(g - n), n = g, r += u.encode(t.originalLine - 1 - a), a = t.originalLine - 1, r += u.encode(t.originalColumn - i), i = t.originalColumn, t.name != null && (l = this._names.indexOf(t.name), r += u.encode(l - e), e = l)), s += r;
263
+ }
264
+ return s;
265
+ }, c.prototype._generateSourcesContent = function(r, t) {
266
+ return r.map(function(l) {
267
+ if (!this._sourcesContents) return null;
268
+ t != null && (l = p.relative(t, l));
269
+ var g = p.toSetString(l);
270
+ return Object.prototype.hasOwnProperty.call(this._sourcesContents, g) ? this._sourcesContents[g] : null;
271
+ }, this);
272
+ }, c.prototype.toJSON = function() {
273
+ var r = { version: this._version, sources: this._sources.toArray(), names: this._names.toArray(), mappings: this._serializeMappings() };
274
+ return this._file != null && (r.file = this._file), this._sourceRoot != null && (r.sourceRoot = this._sourceRoot), this._sourcesContents && (r.sourcesContent = this._generateSourcesContent(r.sources, r.sourceRoot)), r;
275
+ }, c.prototype.toString = function() {
276
+ return JSON.stringify(this.toJSON());
277
+ }, j.SourceMapGenerator = c, j;
278
+ }
279
+ var H, E = {}, K = {};
280
+ function ie() {
281
+ return H || (H = 1, (function(u) {
282
+ function p(m, d, c, r, t, l) {
283
+ var g = Math.floor((d - m) / 2) + m, h = t(c, r[g], !0);
284
+ return h === 0 ? g : h > 0 ? d - g > 1 ? p(g, d, c, r, t, l) : l == u.LEAST_UPPER_BOUND ? d < r.length ? d : -1 : g : g - m > 1 ? p(m, g, c, r, t, l) : l == u.LEAST_UPPER_BOUND ? g : m < 0 ? -1 : m;
285
+ }
286
+ u.GREATEST_LOWER_BOUND = 1, u.LEAST_UPPER_BOUND = 2, u.search = function(m, d, c, r) {
287
+ if (d.length === 0) return -1;
288
+ var t = p(-1, d.length, m, d, c, r || u.GREATEST_LOWER_BOUND);
289
+ if (t < 0) return -1;
290
+ for (; t - 1 >= 0 && c(d[t], d[t - 1], !0) === 0; ) --t;
291
+ return t;
292
+ };
293
+ })(K)), K;
294
+ }
295
+ var X, Y, T = {};
296
+ function ae() {
297
+ if (X) return T;
298
+ function u(m) {
299
+ function d(c, r, t) {
300
+ var l = c[r];
301
+ c[r] = c[t], c[t] = l;
302
+ }
303
+ return function c(r, t, l, g) {
304
+ if (l < g) {
305
+ var h = l - 1;
306
+ d(r, (e = l, n = g, Math.round(e + Math.random() * (n - e))), g);
307
+ for (var _ = r[g], i = l; i < g; i++) t(r[i], _, !1) <= 0 && d(r, h += 1, i);
308
+ d(r, h + 1, i);
309
+ var a = h + 1;
310
+ c(r, t, l, a - 1), c(r, t, a + 1, g);
311
+ }
312
+ var e, n;
313
+ };
314
+ }
315
+ X = 1;
316
+ let p = /* @__PURE__ */ new WeakMap();
317
+ return T.quickSort = function(m, d, c = 0) {
318
+ let r = p.get(d);
319
+ r === void 0 && (r = (function(t) {
320
+ let l = u.toString();
321
+ return new Function(`return ${l}`)()(t);
322
+ })(d), p.set(d, r)), r(m, d, c, m.length - 1);
323
+ }, T;
324
+ }
325
+ var Z, ee, k = {}, se = (ee || (ee = 1, N.SourceMapGenerator = Q().SourceMapGenerator, N.SourceMapConsumer = (function() {
326
+ if (Y) return E;
327
+ Y = 1;
328
+ var u = R(), p = ie(), m = re().ArraySet, d = ne(), c = ae().quickSort;
329
+ function r(i, a) {
330
+ var e = i;
331
+ return typeof i == "string" && (e = u.parseSourceMapInput(i)), e.sections != null ? new _(e, a) : new t(e, a);
332
+ }
333
+ function t(i, a) {
334
+ var e = i;
335
+ typeof i == "string" && (e = u.parseSourceMapInput(i));
336
+ var n = u.getArg(e, "version"), s = u.getArg(e, "sources"), o = u.getArg(e, "names", []), f = u.getArg(e, "sourceRoot", null), v = u.getArg(e, "sourcesContent", null), C = u.getArg(e, "mappings"), S = u.getArg(e, "file", null);
337
+ if (n != this._version) throw new Error("Unsupported version: " + n);
338
+ f && (f = u.normalize(f)), s = s.map(String).map(u.normalize).map(function(y) {
339
+ return f && u.isAbsolute(f) && u.isAbsolute(y) ? u.relative(f, y) : y;
340
+ }), this._names = m.fromArray(o.map(String), !0), this._sources = m.fromArray(s, !0), this._absoluteSources = this._sources.toArray().map(function(y) {
341
+ return u.computeSourceURL(f, y, a);
342
+ }), this.sourceRoot = f, this.sourcesContent = v, this._mappings = C, this._sourceMapURL = a, this.file = S;
343
+ }
344
+ function l() {
345
+ this.generatedLine = 0, this.generatedColumn = 0, this.source = null, this.originalLine = null, this.originalColumn = null, this.name = null;
346
+ }
347
+ r.fromSourceMap = function(i, a) {
348
+ return t.fromSourceMap(i, a);
349
+ }, r.prototype._version = 3, r.prototype.__generatedMappings = null, Object.defineProperty(r.prototype, "_generatedMappings", { configurable: !0, enumerable: !0, get: function() {
350
+ return this.__generatedMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__generatedMappings;
351
+ } }), r.prototype.__originalMappings = null, Object.defineProperty(r.prototype, "_originalMappings", { configurable: !0, enumerable: !0, get: function() {
352
+ return this.__originalMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__originalMappings;
353
+ } }), r.prototype._charIsMappingSeparator = function(i, a) {
354
+ var e = i.charAt(a);
355
+ return e === ";" || e === ",";
356
+ }, r.prototype._parseMappings = function(i, a) {
357
+ throw new Error("Subclasses must implement _parseMappings");
358
+ }, r.GENERATED_ORDER = 1, r.ORIGINAL_ORDER = 2, r.GREATEST_LOWER_BOUND = 1, r.LEAST_UPPER_BOUND = 2, r.prototype.eachMapping = function(i, a, e) {
359
+ var n, s = a || null;
360
+ switch (e || r.GENERATED_ORDER) {
361
+ case r.GENERATED_ORDER:
362
+ n = this._generatedMappings;
363
+ break;
364
+ case r.ORIGINAL_ORDER:
365
+ n = this._originalMappings;
366
+ break;
367
+ default:
368
+ throw new Error("Unknown order of iteration.");
369
+ }
370
+ for (var o = this.sourceRoot, f = i.bind(s), v = this._names, C = this._sources, S = this._sourceMapURL, y = 0, A = n.length; y < A; y++) {
371
+ var M = n[y], L = M.source === null ? null : C.at(M.source);
372
+ L !== null && (L = u.computeSourceURL(o, L, S)), f({ source: L, generatedLine: M.generatedLine, generatedColumn: M.generatedColumn, originalLine: M.originalLine, originalColumn: M.originalColumn, name: M.name === null ? null : v.at(M.name) });
373
+ }
374
+ }, r.prototype.allGeneratedPositionsFor = function(i) {
375
+ var a = u.getArg(i, "line"), e = { source: u.getArg(i, "source"), originalLine: a, originalColumn: u.getArg(i, "column", 0) };
376
+ if (e.source = this._findSourceIndex(e.source), e.source < 0) return [];
377
+ var n = [], s = this._findMapping(e, this._originalMappings, "originalLine", "originalColumn", u.compareByOriginalPositions, p.LEAST_UPPER_BOUND);
378
+ if (s >= 0) {
379
+ var o = this._originalMappings[s];
380
+ if (i.column === void 0) for (var f = o.originalLine; o && o.originalLine === f; ) n.push({ line: u.getArg(o, "generatedLine", null), column: u.getArg(o, "generatedColumn", null), lastColumn: u.getArg(o, "lastGeneratedColumn", null) }), o = this._originalMappings[++s];
381
+ else for (var v = o.originalColumn; o && o.originalLine === a && o.originalColumn == v; ) n.push({ line: u.getArg(o, "generatedLine", null), column: u.getArg(o, "generatedColumn", null), lastColumn: u.getArg(o, "lastGeneratedColumn", null) }), o = this._originalMappings[++s];
382
+ }
383
+ return n;
384
+ }, E.SourceMapConsumer = r, t.prototype = Object.create(r.prototype), t.prototype.consumer = r, t.prototype._findSourceIndex = function(i) {
385
+ var a, e = i;
386
+ if (this.sourceRoot != null && (e = u.relative(this.sourceRoot, e)), this._sources.has(e)) return this._sources.indexOf(e);
387
+ for (a = 0; a < this._absoluteSources.length; ++a) if (this._absoluteSources[a] == i) return a;
388
+ return -1;
389
+ }, t.fromSourceMap = function(i, a) {
390
+ var e = Object.create(t.prototype), n = e._names = m.fromArray(i._names.toArray(), !0), s = e._sources = m.fromArray(i._sources.toArray(), !0);
391
+ e.sourceRoot = i._sourceRoot, e.sourcesContent = i._generateSourcesContent(e._sources.toArray(), e.sourceRoot), e.file = i._file, e._sourceMapURL = a, e._absoluteSources = e._sources.toArray().map(function(M) {
392
+ return u.computeSourceURL(e.sourceRoot, M, a);
393
+ });
394
+ for (var o = i._mappings.toArray().slice(), f = e.__generatedMappings = [], v = e.__originalMappings = [], C = 0, S = o.length; C < S; C++) {
395
+ var y = o[C], A = new l();
396
+ A.generatedLine = y.generatedLine, A.generatedColumn = y.generatedColumn, y.source && (A.source = s.indexOf(y.source), A.originalLine = y.originalLine, A.originalColumn = y.originalColumn, y.name && (A.name = n.indexOf(y.name)), v.push(A)), f.push(A);
397
+ }
398
+ return c(e.__originalMappings, u.compareByOriginalPositions), e;
399
+ }, t.prototype._version = 3, Object.defineProperty(t.prototype, "sources", { get: function() {
400
+ return this._absoluteSources.slice();
401
+ } });
402
+ const g = u.compareByGeneratedPositionsDeflatedNoLine;
403
+ function h(i, a) {
404
+ let e = i.length, n = i.length - a;
405
+ if (!(n <= 1)) if (n == 2) {
406
+ let s = i[a], o = i[a + 1];
407
+ g(s, o) > 0 && (i[a] = o, i[a + 1] = s);
408
+ } else if (n < 20) for (let s = a; s < e; s++) for (let o = s; o > a; o--) {
409
+ let f = i[o - 1], v = i[o];
410
+ if (g(f, v) <= 0) break;
411
+ i[o - 1] = v, i[o] = f;
412
+ }
413
+ else c(i, g, a);
414
+ }
415
+ function _(i, a) {
416
+ var e = i;
417
+ typeof i == "string" && (e = u.parseSourceMapInput(i));
418
+ var n = u.getArg(e, "version"), s = u.getArg(e, "sections");
419
+ if (n != this._version) throw new Error("Unsupported version: " + n);
420
+ this._sources = new m(), this._names = new m();
421
+ var o = { line: -1, column: 0 };
422
+ this._sections = s.map(function(f) {
423
+ if (f.url) throw new Error("Support for url field in sections not implemented.");
424
+ var v = u.getArg(f, "offset"), C = u.getArg(v, "line"), S = u.getArg(v, "column");
425
+ if (C < o.line || C === o.line && S < o.column) throw new Error("Section offsets must be ordered and non-overlapping.");
426
+ return o = v, { generatedOffset: { generatedLine: C + 1, generatedColumn: S + 1 }, consumer: new r(u.getArg(f, "map"), a) };
427
+ });
428
+ }
429
+ return t.prototype._parseMappings = function(i, a) {
430
+ var e, n, s, o, f = 1, v = 0, C = 0, S = 0, y = 0, A = 0, M = i.length, L = 0, I = {}, w = [], O = [];
431
+ let B = 0;
432
+ for (; L < M; ) if (i.charAt(L) === ";") f++, L++, v = 0, h(O, B), B = O.length;
433
+ else if (i.charAt(L) === ",") L++;
434
+ else {
435
+ for ((e = new l()).generatedLine = f, s = L; s < M && !this._charIsMappingSeparator(i, s); s++) ;
436
+ for (i.slice(L, s), n = []; L < s; ) d.decode(i, L, I), o = I.value, L = I.rest, n.push(o);
437
+ if (n.length === 2) throw new Error("Found a source, but no line and column");
438
+ if (n.length === 3) throw new Error("Found a source and line, but no column");
439
+ if (e.generatedColumn = v + n[0], v = e.generatedColumn, n.length > 1 && (e.source = y + n[1], y += n[1], e.originalLine = C + n[2], C = e.originalLine, e.originalLine += 1, e.originalColumn = S + n[3], S = e.originalColumn, n.length > 4 && (e.name = A + n[4], A += n[4])), O.push(e), typeof e.originalLine == "number") {
440
+ let P = e.source;
441
+ for (; w.length <= P; ) w.push(null);
442
+ w[P] === null && (w[P] = []), w[P].push(e);
443
+ }
444
+ }
445
+ h(O, B), this.__generatedMappings = O;
446
+ for (var b = 0; b < w.length; b++) w[b] != null && c(w[b], u.compareByOriginalPositionsNoSource);
447
+ this.__originalMappings = [].concat(...w);
448
+ }, t.prototype._findMapping = function(i, a, e, n, s, o) {
449
+ if (i[e] <= 0) throw new TypeError("Line must be greater than or equal to 1, got " + i[e]);
450
+ if (i[n] < 0) throw new TypeError("Column must be greater than or equal to 0, got " + i[n]);
451
+ return p.search(i, a, s, o);
452
+ }, t.prototype.computeColumnSpans = function() {
453
+ for (var i = 0; i < this._generatedMappings.length; ++i) {
454
+ var a = this._generatedMappings[i];
455
+ if (i + 1 < this._generatedMappings.length) {
456
+ var e = this._generatedMappings[i + 1];
457
+ if (a.generatedLine === e.generatedLine) {
458
+ a.lastGeneratedColumn = e.generatedColumn - 1;
459
+ continue;
460
+ }
461
+ }
462
+ a.lastGeneratedColumn = 1 / 0;
463
+ }
464
+ }, t.prototype.originalPositionFor = function(i) {
465
+ var a = { generatedLine: u.getArg(i, "line"), generatedColumn: u.getArg(i, "column") }, e = this._findMapping(a, this._generatedMappings, "generatedLine", "generatedColumn", u.compareByGeneratedPositionsDeflated, u.getArg(i, "bias", r.GREATEST_LOWER_BOUND));
466
+ if (e >= 0) {
467
+ var n = this._generatedMappings[e];
468
+ if (n.generatedLine === a.generatedLine) {
469
+ var s = u.getArg(n, "source", null);
470
+ s !== null && (s = this._sources.at(s), s = u.computeSourceURL(this.sourceRoot, s, this._sourceMapURL));
471
+ var o = u.getArg(n, "name", null);
472
+ return o !== null && (o = this._names.at(o)), { source: s, line: u.getArg(n, "originalLine", null), column: u.getArg(n, "originalColumn", null), name: o };
473
+ }
474
+ }
475
+ return { source: null, line: null, column: null, name: null };
476
+ }, t.prototype.hasContentsOfAllSources = function() {
477
+ return !!this.sourcesContent && this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(i) {
478
+ return i == null;
479
+ });
480
+ }, t.prototype.sourceContentFor = function(i, a) {
481
+ if (!this.sourcesContent) return null;
482
+ var e = this._findSourceIndex(i);
483
+ if (e >= 0) return this.sourcesContent[e];
484
+ var n, s = i;
485
+ if (this.sourceRoot != null && (s = u.relative(this.sourceRoot, s)), this.sourceRoot != null && (n = u.urlParse(this.sourceRoot))) {
486
+ var o = s.replace(/^file:\/\//, "");
487
+ if (n.scheme == "file" && this._sources.has(o)) return this.sourcesContent[this._sources.indexOf(o)];
488
+ if ((!n.path || n.path == "/") && this._sources.has("/" + s)) return this.sourcesContent[this._sources.indexOf("/" + s)];
489
+ }
490
+ if (a) return null;
491
+ throw new Error('"' + s + '" is not in the SourceMap.');
492
+ }, t.prototype.generatedPositionFor = function(i) {
493
+ var a = u.getArg(i, "source");
494
+ if ((a = this._findSourceIndex(a)) < 0) return { line: null, column: null, lastColumn: null };
495
+ var e = { source: a, originalLine: u.getArg(i, "line"), originalColumn: u.getArg(i, "column") }, n = this._findMapping(e, this._originalMappings, "originalLine", "originalColumn", u.compareByOriginalPositions, u.getArg(i, "bias", r.GREATEST_LOWER_BOUND));
496
+ if (n >= 0) {
497
+ var s = this._originalMappings[n];
498
+ if (s.source === e.source) return { line: u.getArg(s, "generatedLine", null), column: u.getArg(s, "generatedColumn", null), lastColumn: u.getArg(s, "lastGeneratedColumn", null) };
499
+ }
500
+ return { line: null, column: null, lastColumn: null };
501
+ }, E.BasicSourceMapConsumer = t, _.prototype = Object.create(r.prototype), _.prototype.constructor = r, _.prototype._version = 3, Object.defineProperty(_.prototype, "sources", { get: function() {
502
+ for (var i = [], a = 0; a < this._sections.length; a++) for (var e = 0; e < this._sections[a].consumer.sources.length; e++) i.push(this._sections[a].consumer.sources[e]);
503
+ return i;
504
+ } }), _.prototype.originalPositionFor = function(i) {
505
+ var a = { generatedLine: u.getArg(i, "line"), generatedColumn: u.getArg(i, "column") }, e = p.search(a, this._sections, function(s, o) {
506
+ return s.generatedLine - o.generatedOffset.generatedLine || s.generatedColumn - o.generatedOffset.generatedColumn;
507
+ }), n = this._sections[e];
508
+ return n ? n.consumer.originalPositionFor({ line: a.generatedLine - (n.generatedOffset.generatedLine - 1), column: a.generatedColumn - (n.generatedOffset.generatedLine === a.generatedLine ? n.generatedOffset.generatedColumn - 1 : 0), bias: i.bias }) : { source: null, line: null, column: null, name: null };
509
+ }, _.prototype.hasContentsOfAllSources = function() {
510
+ return this._sections.every(function(i) {
511
+ return i.consumer.hasContentsOfAllSources();
512
+ });
513
+ }, _.prototype.sourceContentFor = function(i, a) {
514
+ for (var e = 0; e < this._sections.length; e++) {
515
+ var n = this._sections[e].consumer.sourceContentFor(i, !0);
516
+ if (n || n === "") return n;
517
+ }
518
+ if (a) return null;
519
+ throw new Error('"' + i + '" is not in the SourceMap.');
520
+ }, _.prototype.generatedPositionFor = function(i) {
521
+ for (var a = 0; a < this._sections.length; a++) {
522
+ var e = this._sections[a];
523
+ if (e.consumer._findSourceIndex(u.getArg(i, "source")) !== -1) {
524
+ var n = e.consumer.generatedPositionFor(i);
525
+ if (n) return { line: n.line + (e.generatedOffset.generatedLine - 1), column: n.column + (e.generatedOffset.generatedLine === n.line ? e.generatedOffset.generatedColumn - 1 : 0) };
526
+ }
527
+ }
528
+ return { line: null, column: null };
529
+ }, _.prototype._parseMappings = function(i, a) {
530
+ this.__generatedMappings = [], this.__originalMappings = [];
531
+ for (var e = 0; e < this._sections.length; e++) for (var n = this._sections[e], s = n.consumer._generatedMappings, o = 0; o < s.length; o++) {
532
+ var f = s[o], v = n.consumer._sources.at(f.source);
533
+ v !== null && (v = u.computeSourceURL(n.consumer.sourceRoot, v, this._sourceMapURL)), this._sources.add(v), v = this._sources.indexOf(v);
534
+ var C = null;
535
+ f.name && (C = n.consumer._names.at(f.name), this._names.add(C), C = this._names.indexOf(C));
536
+ var S = { source: v, generatedLine: f.generatedLine + (n.generatedOffset.generatedLine - 1), generatedColumn: f.generatedColumn + (n.generatedOffset.generatedLine === f.generatedLine ? n.generatedOffset.generatedColumn - 1 : 0), originalLine: f.originalLine, originalColumn: f.originalColumn, name: C };
537
+ this.__generatedMappings.push(S), typeof S.originalLine == "number" && this.__originalMappings.push(S);
538
+ }
539
+ c(this.__generatedMappings, u.compareByGeneratedPositionsDeflated), c(this.__originalMappings, u.compareByOriginalPositions);
540
+ }, E.IndexedSourceMapConsumer = _, E;
541
+ })().SourceMapConsumer, N.SourceNode = (function() {
542
+ if (Z) return k;
543
+ Z = 1;
544
+ var u = Q().SourceMapGenerator, p = R(), m = /(\r?\n)/, d = "$$$isSourceNode$$$";
545
+ function c(r, t, l, g, h) {
546
+ this.children = [], this.sourceContents = {}, this.line = r ?? null, this.column = t ?? null, this.source = l ?? null, this.name = h ?? null, this[d] = !0, g != null && this.add(g);
547
+ }
548
+ return c.fromStringWithSourceMap = function(r, t, l) {
549
+ var g = new c(), h = r.split(m), _ = 0, i = function() {
550
+ return o() + (o() || "");
551
+ function o() {
552
+ return _ < h.length ? h[_++] : void 0;
553
+ }
554
+ }, a = 1, e = 0, n = null;
555
+ return t.eachMapping(function(o) {
556
+ if (n !== null) {
557
+ if (!(a < o.generatedLine)) {
558
+ var f = (v = h[_] || "").substr(0, o.generatedColumn - e);
559
+ return h[_] = v.substr(o.generatedColumn - e), e = o.generatedColumn, s(n, f), void (n = o);
560
+ }
561
+ s(n, i()), a++, e = 0;
562
+ }
563
+ for (; a < o.generatedLine; ) g.add(i()), a++;
564
+ if (e < o.generatedColumn) {
565
+ var v = h[_] || "";
566
+ g.add(v.substr(0, o.generatedColumn)), h[_] = v.substr(o.generatedColumn), e = o.generatedColumn;
567
+ }
568
+ n = o;
569
+ }, this), _ < h.length && (n && s(n, i()), g.add(h.splice(_).join(""))), t.sources.forEach(function(o) {
570
+ var f = t.sourceContentFor(o);
571
+ f != null && (l != null && (o = p.join(l, o)), g.setSourceContent(o, f));
572
+ }), g;
573
+ function s(o, f) {
574
+ if (o === null || o.source === void 0) g.add(f);
575
+ else {
576
+ var v = l ? p.join(l, o.source) : o.source;
577
+ g.add(new c(o.originalLine, o.originalColumn, v, f, o.name));
578
+ }
579
+ }
580
+ }, c.prototype.add = function(r) {
581
+ if (Array.isArray(r)) r.forEach(function(t) {
582
+ this.add(t);
583
+ }, this);
584
+ else {
585
+ if (!r[d] && typeof r != "string") throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + r);
586
+ r && this.children.push(r);
587
+ }
588
+ return this;
589
+ }, c.prototype.prepend = function(r) {
590
+ if (Array.isArray(r)) for (var t = r.length - 1; t >= 0; t--) this.prepend(r[t]);
591
+ else {
592
+ if (!r[d] && typeof r != "string") throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + r);
593
+ this.children.unshift(r);
594
+ }
595
+ return this;
596
+ }, c.prototype.walk = function(r) {
597
+ for (var t, l = 0, g = this.children.length; l < g; l++) (t = this.children[l])[d] ? t.walk(r) : t !== "" && r(t, { source: this.source, line: this.line, column: this.column, name: this.name });
598
+ }, c.prototype.join = function(r) {
599
+ var t, l, g = this.children.length;
600
+ if (g > 0) {
601
+ for (t = [], l = 0; l < g - 1; l++) t.push(this.children[l]), t.push(r);
602
+ t.push(this.children[l]), this.children = t;
603
+ }
604
+ return this;
605
+ }, c.prototype.replaceRight = function(r, t) {
606
+ var l = this.children[this.children.length - 1];
607
+ return l[d] ? l.replaceRight(r, t) : typeof l == "string" ? this.children[this.children.length - 1] = l.replace(r, t) : this.children.push("".replace(r, t)), this;
608
+ }, c.prototype.setSourceContent = function(r, t) {
609
+ this.sourceContents[p.toSetString(r)] = t;
610
+ }, c.prototype.walkSourceContents = function(r) {
611
+ for (var t = 0, l = this.children.length; t < l; t++) this.children[t][d] && this.children[t].walkSourceContents(r);
612
+ var g = Object.keys(this.sourceContents);
613
+ for (t = 0, l = g.length; t < l; t++) r(p.fromSetString(g[t]), this.sourceContents[g[t]]);
614
+ }, c.prototype.toString = function() {
615
+ var r = "";
616
+ return this.walk(function(t) {
617
+ r += t;
618
+ }), r;
619
+ }, c.prototype.toStringWithSourceMap = function(r) {
620
+ var t = { code: "", line: 1, column: 0 }, l = new u(r), g = !1, h = null, _ = null, i = null, a = null;
621
+ return this.walk(function(e, n) {
622
+ t.code += e, n.source !== null && n.line !== null && n.column !== null ? (h === n.source && _ === n.line && i === n.column && a === n.name || l.addMapping({ source: n.source, original: { line: n.line, column: n.column }, generated: { line: t.line, column: t.column }, name: n.name }), h = n.source, _ = n.line, i = n.column, a = n.name, g = !0) : g && (l.addMapping({ generated: { line: t.line, column: t.column } }), h = null, g = !1);
623
+ for (var s = 0, o = e.length; s < o; s++) e.charCodeAt(s) === 10 ? (t.line++, t.column = 0, s + 1 === o ? (h = null, g = !1) : g && l.addMapping({ source: n.source, original: { line: n.line, column: n.column }, generated: { line: t.line, column: t.column }, name: n.name })) : t.column++;
624
+ }), this.walkSourceContents(function(e, n) {
625
+ l.setSourceContent(e, n);
626
+ }), { code: t.code, map: l };
627
+ }, k.SourceNode = c, k;
628
+ })().SourceNode), N);
629
+ export {
630
+ se as s
631
+ };