@sentry/craft 2.21.6 → 2.21.7

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 (2) hide show
  1. package/dist/craft +1645 -615
  2. package/package.json +2 -2
package/dist/craft CHANGED
@@ -50568,12 +50568,12 @@ var require_prompt = __commonJS({
50568
50568
  var readline = require("readline");
50569
50569
  var _require = require_util();
50570
50570
  var action = _require.action;
50571
- var EventEmitter4 = require("events");
50571
+ var EventEmitter5 = require("events");
50572
50572
  var _require2 = require_src30();
50573
50573
  var beep = _require2.beep;
50574
50574
  var cursor2 = _require2.cursor;
50575
50575
  var color = require_kleur();
50576
- var Prompt = class extends EventEmitter4 {
50576
+ var Prompt = class extends EventEmitter5 {
50577
50577
  constructor(opts = {}) {
50578
50578
  super();
50579
50579
  this.firstRender = true;
@@ -53063,10 +53063,10 @@ var require_prompt2 = __commonJS({
53063
53063
  init_import_meta_url();
53064
53064
  var readline = require("readline");
53065
53065
  var { action } = require_util2();
53066
- var EventEmitter4 = require("events");
53066
+ var EventEmitter5 = require("events");
53067
53067
  var { beep, cursor: cursor2 } = require_src30();
53068
53068
  var color = require_kleur();
53069
- var Prompt = class extends EventEmitter4 {
53069
+ var Prompt = class extends EventEmitter5 {
53070
53070
  constructor(opts = {}) {
53071
53071
  super();
53072
53072
  this.firstRender = true;
@@ -61901,14 +61901,14 @@ var require_lib9 = __commonJS({
61901
61901
  function _interopDefault(ex) {
61902
61902
  return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
61903
61903
  }
61904
- var Stream2 = _interopDefault(require("stream"));
61904
+ var Stream3 = _interopDefault(require("stream"));
61905
61905
  var http4 = _interopDefault(require("http"));
61906
61906
  var Url = _interopDefault(require("url"));
61907
61907
  var whatwgUrl = _interopDefault(require_public_api());
61908
61908
  var https2 = _interopDefault(require("https"));
61909
61909
  var zlib2 = _interopDefault(require("zlib"));
61910
- var Readable5 = Stream2.Readable;
61911
- var BUFFER3 = Symbol("buffer");
61910
+ var Readable5 = Stream3.Readable;
61911
+ var BUFFER4 = Symbol("buffer");
61912
61912
  var TYPE2 = Symbol("type");
61913
61913
  var Blob2 = class _Blob {
61914
61914
  constructor() {
@@ -61930,7 +61930,7 @@ var require_lib9 = __commonJS({
61930
61930
  } else if (element instanceof ArrayBuffer) {
61931
61931
  buffer = Buffer.from(element);
61932
61932
  } else if (element instanceof _Blob) {
61933
- buffer = element[BUFFER3];
61933
+ buffer = element[BUFFER4];
61934
61934
  } else {
61935
61935
  buffer = Buffer.from(typeof element === "string" ? element : String(element));
61936
61936
  }
@@ -61938,23 +61938,23 @@ var require_lib9 = __commonJS({
61938
61938
  buffers.push(buffer);
61939
61939
  }
61940
61940
  }
61941
- this[BUFFER3] = Buffer.concat(buffers);
61941
+ this[BUFFER4] = Buffer.concat(buffers);
61942
61942
  let type2 = options && options.type !== void 0 && String(options.type).toLowerCase();
61943
61943
  if (type2 && !/[^\u0020-\u007E]/.test(type2)) {
61944
61944
  this[TYPE2] = type2;
61945
61945
  }
61946
61946
  }
61947
61947
  get size() {
61948
- return this[BUFFER3].length;
61948
+ return this[BUFFER4].length;
61949
61949
  }
61950
61950
  get type() {
61951
61951
  return this[TYPE2];
61952
61952
  }
61953
61953
  text() {
61954
- return Promise.resolve(this[BUFFER3].toString());
61954
+ return Promise.resolve(this[BUFFER4].toString());
61955
61955
  }
61956
61956
  arrayBuffer() {
61957
- const buf = this[BUFFER3];
61957
+ const buf = this[BUFFER4];
61958
61958
  const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
61959
61959
  return Promise.resolve(ab);
61960
61960
  }
@@ -61962,7 +61962,7 @@ var require_lib9 = __commonJS({
61962
61962
  const readable = new Readable5();
61963
61963
  readable._read = function() {
61964
61964
  };
61965
- readable.push(this[BUFFER3]);
61965
+ readable.push(this[BUFFER4]);
61966
61966
  readable.push(null);
61967
61967
  return readable;
61968
61968
  }
@@ -61989,10 +61989,10 @@ var require_lib9 = __commonJS({
61989
61989
  relativeEnd = Math.min(end, size);
61990
61990
  }
61991
61991
  const span = Math.max(relativeEnd - relativeStart, 0);
61992
- const buffer = this[BUFFER3];
61992
+ const buffer = this[BUFFER4];
61993
61993
  const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
61994
61994
  const blob = new _Blob([], { type: arguments[2] });
61995
- blob[BUFFER3] = slicedBuffer;
61995
+ blob[BUFFER4] = slicedBuffer;
61996
61996
  return blob;
61997
61997
  }
61998
61998
  };
@@ -62025,7 +62025,7 @@ var require_lib9 = __commonJS({
62025
62025
  } catch (e4) {
62026
62026
  }
62027
62027
  var INTERNALS = Symbol("Body internals");
62028
- var PassThrough2 = Stream2.PassThrough;
62028
+ var PassThrough2 = Stream3.PassThrough;
62029
62029
  function Body(body) {
62030
62030
  var _this = this;
62031
62031
  var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ref$size = _ref.size;
@@ -62042,7 +62042,7 @@ var require_lib9 = __commonJS({
62042
62042
  body = Buffer.from(body);
62043
62043
  } else if (ArrayBuffer.isView(body)) {
62044
62044
  body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
62045
- } else if (body instanceof Stream2) ;
62045
+ } else if (body instanceof Stream3) ;
62046
62046
  else {
62047
62047
  body = Buffer.from(String(body));
62048
62048
  }
@@ -62053,7 +62053,7 @@ var require_lib9 = __commonJS({
62053
62053
  };
62054
62054
  this.size = size;
62055
62055
  this.timeout = timeout;
62056
- if (body instanceof Stream2) {
62056
+ if (body instanceof Stream3) {
62057
62057
  body.on("error", function(err) {
62058
62058
  const error3 = err.name === "AbortError" ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, "system", err);
62059
62059
  _this[INTERNALS].error = error3;
@@ -62091,7 +62091,7 @@ var require_lib9 = __commonJS({
62091
62091
  type: ct.toLowerCase()
62092
62092
  }),
62093
62093
  {
62094
- [BUFFER3]: buf
62094
+ [BUFFER4]: buf
62095
62095
  }
62096
62096
  );
62097
62097
  });
@@ -62177,7 +62177,7 @@ var require_lib9 = __commonJS({
62177
62177
  if (Buffer.isBuffer(body)) {
62178
62178
  return Body.Promise.resolve(body);
62179
62179
  }
62180
- if (!(body instanceof Stream2)) {
62180
+ if (!(body instanceof Stream3)) {
62181
62181
  return Body.Promise.resolve(Buffer.alloc(0));
62182
62182
  }
62183
62183
  let accum = [];
@@ -62276,7 +62276,7 @@ var require_lib9 = __commonJS({
62276
62276
  if (instance.bodyUsed) {
62277
62277
  throw new Error("cannot clone body after it is used");
62278
62278
  }
62279
- if (body instanceof Stream2 && typeof body.getBoundary !== "function") {
62279
+ if (body instanceof Stream3 && typeof body.getBoundary !== "function") {
62280
62280
  p1 = new PassThrough2();
62281
62281
  p22 = new PassThrough2();
62282
62282
  body.pipe(p1);
@@ -62303,7 +62303,7 @@ var require_lib9 = __commonJS({
62303
62303
  return null;
62304
62304
  } else if (typeof body.getBoundary === "function") {
62305
62305
  return `multipart/form-data;boundary=${body.getBoundary()}`;
62306
- } else if (body instanceof Stream2) {
62306
+ } else if (body instanceof Stream3) {
62307
62307
  return null;
62308
62308
  } else {
62309
62309
  return "text/plain;charset=UTF-8";
@@ -62727,7 +62727,7 @@ var require_lib9 = __commonJS({
62727
62727
  }
62728
62728
  return parse_url(urlStr);
62729
62729
  }
62730
- var streamDestructionSupported = "destroy" in Stream2.Readable.prototype;
62730
+ var streamDestructionSupported = "destroy" in Stream3.Readable.prototype;
62731
62731
  function isRequest(input) {
62732
62732
  return typeof input === "object" && typeof input[INTERNALS$2] === "object";
62733
62733
  }
@@ -62834,7 +62834,7 @@ var require_lib9 = __commonJS({
62834
62834
  if (!/^https?:$/.test(parsedURL.protocol)) {
62835
62835
  throw new TypeError("Only HTTP(S) protocols are supported");
62836
62836
  }
62837
- if (request3.signal && request3.body instanceof Stream2.Readable && !streamDestructionSupported) {
62837
+ if (request3.signal && request3.body instanceof Stream3.Readable && !streamDestructionSupported) {
62838
62838
  throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");
62839
62839
  }
62840
62840
  let contentLengthValue = null;
@@ -62876,7 +62876,7 @@ var require_lib9 = __commonJS({
62876
62876
  AbortError.prototype.constructor = AbortError;
62877
62877
  AbortError.prototype.name = "AbortError";
62878
62878
  var URL$1 = Url.URL || whatwgUrl.URL;
62879
- var PassThrough$1 = Stream2.PassThrough;
62879
+ var PassThrough$1 = Stream3.PassThrough;
62880
62880
  var isDomainOrSubdomain = function isDomainOrSubdomain2(destination, original) {
62881
62881
  const orig = new URL$1(original).hostname;
62882
62882
  const dest = new URL$1(destination).hostname;
@@ -62901,7 +62901,7 @@ var require_lib9 = __commonJS({
62901
62901
  const abort = function abort2() {
62902
62902
  let error3 = new AbortError("The user aborted a request.");
62903
62903
  reject(error3);
62904
- if (request3.body && request3.body instanceof Stream2.Readable) {
62904
+ if (request3.body && request3.body instanceof Stream3.Readable) {
62905
62905
  destroyStream(request3.body, error3);
62906
62906
  }
62907
62907
  if (!response || !response.body) return;
@@ -63287,7 +63287,7 @@ var init_p_limit = __esm({
63287
63287
  var require_through = __commonJS({
63288
63288
  "node_modules/.pnpm/through@2.3.8/node_modules/through/index.js"(exports2, module2) {
63289
63289
  init_import_meta_url();
63290
- var Stream2 = require("stream");
63290
+ var Stream3 = require("stream");
63291
63291
  exports2 = module2.exports = through;
63292
63292
  through.through = through;
63293
63293
  function through(write, end, opts) {
@@ -63298,7 +63298,7 @@ var require_through = __commonJS({
63298
63298
  this.queue(null);
63299
63299
  };
63300
63300
  var ended = false, destroyed = false, buffer = [], _ended2 = false;
63301
- var stream2 = new Stream2();
63301
+ var stream2 = new Stream3();
63302
63302
  stream2.readable = stream2.writable = true;
63303
63303
  stream2.paused = false;
63304
63304
  stream2.autoDestroy = !(opts && opts.autoDestroy === false);
@@ -63425,10 +63425,10 @@ var require_split = __commonJS({
63425
63425
  }
63426
63426
  });
63427
63427
 
63428
- // node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js
63428
+ // node_modules/.pnpm/minipass@7.1.3/node_modules/minipass/dist/esm/index.js
63429
63429
  var import_node_events3, import_node_stream2, import_node_string_decoder, proc, isStream, isReadable, isWritable, EOF, MAYBE_EMIT_END, EMITTED_END, EMITTING_END, EMITTED_ERROR, CLOSED, READ, FLUSH, FLUSHCHUNK, ENCODING, DECODER, FLOWING, PAUSED, RESUME, BUFFER, PIPES, BUFFERLENGTH, BUFFERPUSH, BUFFERSHIFT, OBJECTMODE, DESTROYED, ERROR, EMITDATA, EMITEND, EMITEND2, ASYNC, ABORT, ABORTED, SIGNAL, DATALISTENERS, DISCARDED, defer, nodefer, isEndish, isArrayBufferLike, isArrayBufferView, Pipe, PipeProxyErrors, isObjectModeOptions, isEncodingOptions, Minipass;
63430
63430
  var init_esm9 = __esm({
63431
- "node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js"() {
63431
+ "node_modules/.pnpm/minipass@7.1.3/node_modules/minipass/dist/esm/index.js"() {
63432
63432
  init_import_meta_url();
63433
63433
  import_node_events3 = require("node:events");
63434
63434
  import_node_stream2 = __toESM(require("node:stream"), 1);
@@ -63510,7 +63510,7 @@ var init_esm9 = __esm({
63510
63510
  }
63511
63511
  constructor(src, dest, opts) {
63512
63512
  super(src, dest, opts);
63513
- this.proxyErrors = (er) => dest.emit("error", er);
63513
+ this.proxyErrors = (er) => this.dest.emit("error", er);
63514
63514
  src.on("error", this.proxyErrors);
63515
63515
  }
63516
63516
  };
@@ -64224,6 +64224,8 @@ var init_esm9 = __esm({
64224
64224
  return: stop,
64225
64225
  [Symbol.asyncIterator]() {
64226
64226
  return this;
64227
+ },
64228
+ [Symbol.asyncDispose]: async () => {
64227
64229
  }
64228
64230
  };
64229
64231
  }
@@ -64259,6 +64261,8 @@ var init_esm9 = __esm({
64259
64261
  return: stop,
64260
64262
  [Symbol.iterator]() {
64261
64263
  return this;
64264
+ },
64265
+ [Symbol.dispose]: () => {
64262
64266
  }
64263
64267
  };
64264
64268
  }
@@ -64698,10 +64702,10 @@ var init_esm10 = __esm({
64698
64702
  }
64699
64703
  });
64700
64704
 
64701
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/options.js
64705
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/options.js
64702
64706
  var argmap, isSyncFile, isAsyncFile, isSyncNoFile, isAsyncNoFile, isFile, dealiasKey, dealias;
64703
64707
  var init_options = __esm({
64704
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/options.js"() {
64708
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/options.js"() {
64705
64709
  init_import_meta_url();
64706
64710
  argmap = /* @__PURE__ */ new Map([
64707
64711
  ["C", "cwd"],
@@ -64753,10 +64757,10 @@ var init_options = __esm({
64753
64757
  }
64754
64758
  });
64755
64759
 
64756
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/make-command.js
64760
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/make-command.js
64757
64761
  var makeCommand;
64758
64762
  var init_make_command = __esm({
64759
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/make-command.js"() {
64763
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/make-command.js"() {
64760
64764
  init_import_meta_url();
64761
64765
  init_options();
64762
64766
  makeCommand = (syncFile, asyncFile, syncNoFile, asyncNoFile, validate5) => {
@@ -65210,10 +65214,10 @@ var init_esm11 = __esm({
65210
65214
  }
65211
65215
  });
65212
65216
 
65213
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/large-numbers.js
65217
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/large-numbers.js
65214
65218
  var encode, encodePositive, encodeNegative, parse, twos, pos, onesComp, twosComp;
65215
65219
  var init_large_numbers = __esm({
65216
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/large-numbers.js"() {
65220
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/large-numbers.js"() {
65217
65221
  init_import_meta_url();
65218
65222
  encode = (num, buf) => {
65219
65223
  if (!Number.isSafeInteger(num)) {
@@ -65297,10 +65301,10 @@ var init_large_numbers = __esm({
65297
65301
  }
65298
65302
  });
65299
65303
 
65300
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/types.js
65304
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/types.js
65301
65305
  var isCode, name, code;
65302
65306
  var init_types3 = __esm({
65303
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/types.js"() {
65307
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/types.js"() {
65304
65308
  init_import_meta_url();
65305
65309
  isCode = (c4) => name.has(c4);
65306
65310
  name = /* @__PURE__ */ new Map([
@@ -65346,10 +65350,10 @@ var init_types3 = __esm({
65346
65350
  }
65347
65351
  });
65348
65352
 
65349
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/header.js
65353
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/header.js
65350
65354
  var import_node_path5, Header, splitPrefix, decString, decDate, numToDate, decNumber, nanUndef, decSmallNumber, MAXNUM, encNumber, encSmallNumber, octalString, padOctal, encDate, NULLS, encString;
65351
65355
  var init_header = __esm({
65352
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/header.js"() {
65356
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/header.js"() {
65353
65357
  init_import_meta_url();
65354
65358
  import_node_path5 = require("node:path");
65355
65359
  init_large_numbers();
@@ -65558,10 +65562,10 @@ var init_header = __esm({
65558
65562
  }
65559
65563
  });
65560
65564
 
65561
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/pax.js
65565
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/pax.js
65562
65566
  var import_node_path6, Pax, merge3, parseKV, parseKVLine;
65563
65567
  var init_pax = __esm({
65564
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/pax.js"() {
65568
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/pax.js"() {
65565
65569
  init_import_meta_url();
65566
65570
  import_node_path6 = require("node:path");
65567
65571
  init_header();
@@ -65682,20 +65686,20 @@ var init_pax = __esm({
65682
65686
  }
65683
65687
  });
65684
65688
 
65685
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/normalize-windows-path.js
65689
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/normalize-windows-path.js
65686
65690
  var platform2, normalizeWindowsPath2;
65687
65691
  var init_normalize_windows_path = __esm({
65688
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/normalize-windows-path.js"() {
65692
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/normalize-windows-path.js"() {
65689
65693
  init_import_meta_url();
65690
65694
  platform2 = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
65691
65695
  normalizeWindowsPath2 = platform2 !== "win32" ? (p4) => p4 : (p4) => p4 && p4.replace(/\\/g, "/");
65692
65696
  }
65693
65697
  });
65694
65698
 
65695
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/read-entry.js
65699
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/read-entry.js
65696
65700
  var ReadEntry;
65697
65701
  var init_read_entry = __esm({
65698
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/read-entry.js"() {
65702
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/read-entry.js"() {
65699
65703
  init_import_meta_url();
65700
65704
  init_esm9();
65701
65705
  init_normalize_windows_path();
@@ -65817,10 +65821,10 @@ var init_read_entry = __esm({
65817
65821
  }
65818
65822
  });
65819
65823
 
65820
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/warn-method.js
65824
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/warn-method.js
65821
65825
  var warnMethod;
65822
65826
  var init_warn_method = __esm({
65823
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/warn-method.js"() {
65827
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/warn-method.js"() {
65824
65828
  init_import_meta_url();
65825
65829
  warnMethod = (self2, code2, message, data2 = {}) => {
65826
65830
  if (self2.file) {
@@ -65846,10 +65850,10 @@ var init_warn_method = __esm({
65846
65850
  }
65847
65851
  });
65848
65852
 
65849
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/parse.js
65853
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/parse.js
65850
65854
  var import_events2, maxMetaEntrySize, gzipHeader, zstdHeader, ZIP_HEADER_LEN, STATE, WRITEENTRY, READENTRY, NEXTENTRY, PROCESSENTRY, EX, GEX, META, EMITMETA, BUFFER2, QUEUE, ENDED, EMITTEDEND, EMIT, UNZIP, CONSUMECHUNK, CONSUMECHUNKSUB, CONSUMEBODY, CONSUMEMETA, CONSUMEHEADER, CONSUMING, BUFFERCONCAT, MAYBEEND, WRITING, ABORTED2, DONE, SAW_VALID_ENTRY, SAW_NULL_BLOCK, SAW_EOF, CLOSESTREAM, noop2, Parser;
65851
65855
  var init_parse = __esm({
65852
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/parse.js"() {
65856
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/parse.js"() {
65853
65857
  init_import_meta_url();
65854
65858
  import_events2 = require("events");
65855
65859
  init_esm11();
@@ -66346,10 +66350,10 @@ var init_parse = __esm({
66346
66350
  }
66347
66351
  });
66348
66352
 
66349
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/strip-trailing-slashes.js
66353
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/strip-trailing-slashes.js
66350
66354
  var stripTrailingSlashes;
66351
66355
  var init_strip_trailing_slashes = __esm({
66352
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/strip-trailing-slashes.js"() {
66356
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/strip-trailing-slashes.js"() {
66353
66357
  init_import_meta_url();
66354
66358
  stripTrailingSlashes = (str2) => {
66355
66359
  let i4 = str2.length - 1;
@@ -66363,10 +66367,10 @@ var init_strip_trailing_slashes = __esm({
66363
66367
  }
66364
66368
  });
66365
66369
 
66366
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/list.js
66370
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/list.js
66367
66371
  var import_node_fs4, import_path5, onReadEntryFunction, filesFilter, listFileSync, listFile, list;
66368
66372
  var init_list = __esm({
66369
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/list.js"() {
66373
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/list.js"() {
66370
66374
  init_import_meta_url();
66371
66375
  init_esm10();
66372
66376
  import_node_fs4 = __toESM(require("node:fs"), 1);
@@ -66466,10 +66470,10 @@ var init_list = __esm({
66466
66470
  }
66467
66471
  });
66468
66472
 
66469
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/mode-fix.js
66473
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/mode-fix.js
66470
66474
  var modeFix;
66471
66475
  var init_mode_fix = __esm({
66472
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/mode-fix.js"() {
66476
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/mode-fix.js"() {
66473
66477
  init_import_meta_url();
66474
66478
  modeFix = (mode, isDir, portable) => {
66475
66479
  mode &= 4095;
@@ -66492,10 +66496,10 @@ var init_mode_fix = __esm({
66492
66496
  }
66493
66497
  });
66494
66498
 
66495
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/strip-absolute-path.js
66499
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/strip-absolute-path.js
66496
66500
  var import_node_path7, isAbsolute2, parse3, stripAbsolutePath;
66497
66501
  var init_strip_absolute_path = __esm({
66498
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/strip-absolute-path.js"() {
66502
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/strip-absolute-path.js"() {
66499
66503
  init_import_meta_url();
66500
66504
  import_node_path7 = require("node:path");
66501
66505
  ({ isAbsolute: isAbsolute2, parse: parse3 } = import_node_path7.win32);
@@ -66513,10 +66517,10 @@ var init_strip_absolute_path = __esm({
66513
66517
  }
66514
66518
  });
66515
66519
 
66516
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/winchars.js
66520
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/winchars.js
66517
66521
  var raw, win, toWin, toRaw, encode2, decode;
66518
66522
  var init_winchars = __esm({
66519
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/winchars.js"() {
66523
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/winchars.js"() {
66520
66524
  init_import_meta_url();
66521
66525
  raw = ["|", "<", ">", "?", ":"];
66522
66526
  win = raw.map((char) => String.fromCharCode(61440 + char.charCodeAt(0)));
@@ -66527,10 +66531,10 @@ var init_winchars = __esm({
66527
66531
  }
66528
66532
  });
66529
66533
 
66530
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/write-entry.js
66534
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/write-entry.js
66531
66535
  var import_fs5, import_path6, prefixPath, maxReadSize, PROCESS, FILE, DIRECTORY, SYMLINK, HARDLINK, HEADER, READ2, LSTAT, ONLSTAT, ONREAD, ONREADLINK, OPENFILE, ONOPENFILE, CLOSE, MODE, AWAITDRAIN, ONDRAIN, PREFIX2, WriteEntry, WriteEntrySync, WriteEntryTar, getType;
66532
66536
  var init_write_entry = __esm({
66533
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/write-entry.js"() {
66537
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/write-entry.js"() {
66534
66538
  init_import_meta_url();
66535
66539
  import_fs5 = __toESM(require("fs"), 1);
66536
66540
  init_esm9();
@@ -67498,10 +67502,10 @@ var init_esm12 = __esm({
67498
67502
  }
67499
67503
  });
67500
67504
 
67501
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/pack.js
67505
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/pack.js
67502
67506
  var import_fs6, import_path7, PackJob, EOF2, ONSTAT, ENDED2, QUEUE2, CURRENT, PROCESS2, PROCESSING, PROCESSJOB, JOBS, JOBDONE, ADDFSENTRY, ADDTARENTRY, STAT, READDIR, ONREADDIR, PIPE, ENTRY, ENTRYOPT, WRITEENTRYCLASS, WRITE, ONDRAIN2, Pack, PackSync;
67503
67507
  var init_pack = __esm({
67504
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/pack.js"() {
67508
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/pack.js"() {
67505
67509
  init_import_meta_url();
67506
67510
  import_fs6 = __toESM(require("fs"), 1);
67507
67511
  init_write_entry();
@@ -67933,10 +67937,10 @@ var init_pack = __esm({
67933
67937
  }
67934
67938
  });
67935
67939
 
67936
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/create.js
67940
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/create.js
67937
67941
  var import_node_path8, createFileSync, createFile, addFilesSync, addFilesAsync, createSync, createAsync, create;
67938
67942
  var init_create = __esm({
67939
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/create.js"() {
67943
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/create.js"() {
67940
67944
  init_import_meta_url();
67941
67945
  init_esm10();
67942
67946
  import_node_path8 = __toESM(require("node:path"), 1);
@@ -68015,10 +68019,10 @@ var init_create = __esm({
68015
68019
  }
68016
68020
  });
68017
68021
 
68018
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/get-write-flag.js
68022
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/get-write-flag.js
68019
68023
  var import_fs7, platform3, isWindows, O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP, fMapEnabled, fMapLimit, fMapFlag, getWriteFlag;
68020
68024
  var init_get_write_flag = __esm({
68021
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/get-write-flag.js"() {
68025
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/get-write-flag.js"() {
68022
68026
  init_import_meta_url();
68023
68027
  import_fs7 = __toESM(require("fs"), 1);
68024
68028
  platform3 = process.env.__FAKE_PLATFORM__ || process.platform;
@@ -68116,10 +68120,10 @@ var init_esm13 = __esm({
68116
68120
  }
68117
68121
  });
68118
68122
 
68119
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/cwd-error.js
68123
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/cwd-error.js
68120
68124
  var CwdError;
68121
68125
  var init_cwd_error = __esm({
68122
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/cwd-error.js"() {
68126
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/cwd-error.js"() {
68123
68127
  init_import_meta_url();
68124
68128
  CwdError = class extends Error {
68125
68129
  path;
@@ -68137,10 +68141,10 @@ var init_cwd_error = __esm({
68137
68141
  }
68138
68142
  });
68139
68143
 
68140
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/symlink-error.js
68144
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/symlink-error.js
68141
68145
  var SymlinkError;
68142
68146
  var init_symlink_error = __esm({
68143
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/symlink-error.js"() {
68147
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/symlink-error.js"() {
68144
68148
  init_import_meta_url();
68145
68149
  SymlinkError = class extends Error {
68146
68150
  path;
@@ -68159,10 +68163,10 @@ var init_symlink_error = __esm({
68159
68163
  }
68160
68164
  });
68161
68165
 
68162
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/mkdir.js
68166
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/mkdir.js
68163
68167
  var import_node_fs6, import_promises2, import_node_path10, checkCwd, mkdir, mkdir_, onmkdir, checkCwdSync, mkdirSync2;
68164
68168
  var init_mkdir = __esm({
68165
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/mkdir.js"() {
68169
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/mkdir.js"() {
68166
68170
  init_import_meta_url();
68167
68171
  init_esm13();
68168
68172
  import_node_fs6 = __toESM(require("node:fs"), 1);
@@ -68181,9 +68185,9 @@ var init_mkdir = __esm({
68181
68185
  };
68182
68186
  mkdir = (dir, opt, cb) => {
68183
68187
  dir = normalizeWindowsPath2(dir);
68184
- const umask = opt.umask ?? 18;
68188
+ const umask2 = opt.umask ?? 18;
68185
68189
  const mode = opt.mode | 448;
68186
- const needChmod = (mode & umask) !== 0;
68190
+ const needChmod = (mode & umask2) !== 0;
68187
68191
  const uid = opt.uid;
68188
68192
  const gid = opt.gid;
68189
68193
  const doChown = typeof uid === "number" && typeof gid === "number" && (uid !== opt.processUid || gid !== opt.processGid);
@@ -68266,9 +68270,9 @@ var init_mkdir = __esm({
68266
68270
  };
68267
68271
  mkdirSync2 = (dir, opt) => {
68268
68272
  dir = normalizeWindowsPath2(dir);
68269
- const umask = opt.umask ?? 18;
68273
+ const umask2 = opt.umask ?? 18;
68270
68274
  const mode = opt.mode | 448;
68271
- const needChmod = (mode & umask) !== 0;
68275
+ const needChmod = (mode & umask2) !== 0;
68272
68276
  const uid = opt.uid;
68273
68277
  const gid = opt.gid;
68274
68278
  const doChown = typeof uid === "number" && typeof gid === "number" && (uid !== opt.processUid || gid !== opt.processGid);
@@ -68317,10 +68321,10 @@ var init_mkdir = __esm({
68317
68321
  }
68318
68322
  });
68319
68323
 
68320
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/normalize-unicode.js
68324
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/normalize-unicode.js
68321
68325
  var normalizeCache, MAX, cache2, normalizeUnicode;
68322
68326
  var init_normalize_unicode = __esm({
68323
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/normalize-unicode.js"() {
68327
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/normalize-unicode.js"() {
68324
68328
  init_import_meta_url();
68325
68329
  normalizeCache = /* @__PURE__ */ Object.create(null);
68326
68330
  MAX = 1e4;
@@ -68347,10 +68351,10 @@ var init_normalize_unicode = __esm({
68347
68351
  }
68348
68352
  });
68349
68353
 
68350
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/path-reservations.js
68354
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/path-reservations.js
68351
68355
  var import_node_path11, platform4, isWindows2, getDirs, PathReservations;
68352
68356
  var init_path_reservations = __esm({
68353
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/path-reservations.js"() {
68357
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/path-reservations.js"() {
68354
68358
  init_import_meta_url();
68355
68359
  import_node_path11 = require("node:path");
68356
68360
  init_normalize_unicode();
@@ -68488,10 +68492,19 @@ var init_path_reservations = __esm({
68488
68492
  }
68489
68493
  });
68490
68494
 
68491
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/unpack.js
68492
- var import_node_assert, import_node_crypto, import_node_fs7, import_node_path12, ONENTRY, CHECKFS, CHECKFS2, ISREUSABLE, MAKEFS, FILE2, DIRECTORY2, LINK, SYMLINK2, HARDLINK2, UNSUPPORTED, CHECKPATH, STRIPABSOLUTEPATH, MKDIR, ONERROR, PENDING, PEND, UNPEND, ENDED3, MAYBECLOSE, SKIP, DOCHOWN, UID, GID, CHECKED_CWD, platform5, isWindows3, DEFAULT_MAX_DEPTH, unlinkFile, unlinkFileSync, uint32, Unpack, callSync, UnpackSync;
68495
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/process-umask.js
68496
+ var umask;
68497
+ var init_process_umask = __esm({
68498
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/process-umask.js"() {
68499
+ init_import_meta_url();
68500
+ umask = () => process.umask();
68501
+ }
68502
+ });
68503
+
68504
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/unpack.js
68505
+ var import_node_assert, import_node_crypto, import_node_fs7, import_node_path12, ONENTRY, CHECKFS, CHECKFS2, ISREUSABLE, MAKEFS, FILE2, DIRECTORY2, LINK, SYMLINK2, HARDLINK2, ENSURE_NO_SYMLINK, UNSUPPORTED, CHECKPATH, STRIPABSOLUTEPATH, MKDIR, ONERROR, PENDING, PEND, UNPEND, ENDED3, MAYBECLOSE, SKIP, DOCHOWN, UID, GID, CHECKED_CWD, platform5, isWindows3, DEFAULT_MAX_DEPTH, unlinkFile, unlinkFileSync, uint32, Unpack, callSync, UnpackSync;
68493
68506
  var init_unpack = __esm({
68494
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/unpack.js"() {
68507
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/unpack.js"() {
68495
68508
  init_import_meta_url();
68496
68509
  init_esm10();
68497
68510
  import_node_assert = __toESM(require("node:assert"), 1);
@@ -68505,6 +68518,8 @@ var init_unpack = __esm({
68505
68518
  init_strip_absolute_path();
68506
68519
  init_winchars();
68507
68520
  init_path_reservations();
68521
+ init_symlink_error();
68522
+ init_process_umask();
68508
68523
  ONENTRY = Symbol("onEntry");
68509
68524
  CHECKFS = Symbol("checkFs");
68510
68525
  CHECKFS2 = Symbol("checkFs2");
@@ -68515,6 +68530,7 @@ var init_unpack = __esm({
68515
68530
  LINK = Symbol("link");
68516
68531
  SYMLINK2 = Symbol("symlink");
68517
68532
  HARDLINK2 = Symbol("hardlink");
68533
+ ENSURE_NO_SYMLINK = Symbol("ensureNoSymlink");
68518
68534
  UNSUPPORTED = Symbol("unsupported");
68519
68535
  CHECKPATH = Symbol("checkPath");
68520
68536
  STRIPABSOLUTEPATH = Symbol("stripAbsolutePath");
@@ -68623,7 +68639,7 @@ var init_unpack = __esm({
68623
68639
  this.unlink = !!opt.unlink;
68624
68640
  this.cwd = normalizeWindowsPath2(import_node_path12.default.resolve(opt.cwd || process.cwd()));
68625
68641
  this.strip = Number(opt.strip) || 0;
68626
- this.processUmask = !this.chmod ? 0 : typeof opt.processUmask === "number" ? opt.processUmask : process.umask();
68642
+ this.processUmask = !this.chmod ? 0 : typeof opt.processUmask === "number" ? opt.processUmask : umask();
68627
68643
  this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
68628
68644
  this.dmode = opt.dmode || 511 & ~this.umask;
68629
68645
  this.fmode = opt.fmode || 438 & ~this.umask;
@@ -68683,6 +68699,7 @@ var init_unpack = __esm({
68683
68699
  }
68684
68700
  return true;
68685
68701
  }
68702
+ // no IO, just string checking for absolute indicators
68686
68703
  [CHECKPATH](entry) {
68687
68704
  const p4 = normalizeWindowsPath2(entry.path);
68688
68705
  const parts = p4.split("/");
@@ -68897,11 +68914,33 @@ var init_unpack = __esm({
68897
68914
  entry.resume();
68898
68915
  }
68899
68916
  [SYMLINK2](entry, done) {
68900
- this[LINK](entry, String(entry.linkpath), "symlink", done);
68917
+ const parts = normalizeWindowsPath2(import_node_path12.default.relative(this.cwd, import_node_path12.default.resolve(import_node_path12.default.dirname(String(entry.absolute)), String(entry.linkpath)))).split("/");
68918
+ this[ENSURE_NO_SYMLINK](entry, this.cwd, parts, () => this[LINK](entry, String(entry.linkpath), "symlink", done), (er) => {
68919
+ this[ONERROR](er, entry);
68920
+ done();
68921
+ });
68901
68922
  }
68902
68923
  [HARDLINK2](entry, done) {
68903
68924
  const linkpath = normalizeWindowsPath2(import_node_path12.default.resolve(this.cwd, String(entry.linkpath)));
68904
- this[LINK](entry, linkpath, "link", done);
68925
+ const parts = normalizeWindowsPath2(String(entry.linkpath)).split("/");
68926
+ this[ENSURE_NO_SYMLINK](entry, this.cwd, parts, () => this[LINK](entry, linkpath, "link", done), (er) => {
68927
+ this[ONERROR](er, entry);
68928
+ done();
68929
+ });
68930
+ }
68931
+ [ENSURE_NO_SYMLINK](entry, cwd, parts, done, onError2) {
68932
+ const p4 = parts.shift();
68933
+ if (this.preservePaths || p4 === void 0)
68934
+ return done();
68935
+ const t4 = import_node_path12.default.resolve(cwd, p4);
68936
+ import_node_fs7.default.lstat(t4, (er, st) => {
68937
+ if (er)
68938
+ return done();
68939
+ if (st?.isSymbolicLink()) {
68940
+ return onError2(new SymlinkError(t4, import_node_path12.default.resolve(t4, parts.join("/"))));
68941
+ }
68942
+ this[ENSURE_NO_SYMLINK](entry, t4, parts, done, onError2);
68943
+ });
68905
68944
  }
68906
68945
  [PEND]() {
68907
68946
  this[PENDING]++;
@@ -69183,10 +69222,25 @@ var init_unpack = __esm({
69183
69222
  return er;
69184
69223
  }
69185
69224
  }
69225
+ [ENSURE_NO_SYMLINK](_entry, cwd, parts, done, onError2) {
69226
+ if (this.preservePaths || !parts.length)
69227
+ return done();
69228
+ let t4 = cwd;
69229
+ for (const p4 of parts) {
69230
+ t4 = import_node_path12.default.resolve(t4, p4);
69231
+ const [er, st] = callSync(() => import_node_fs7.default.lstatSync(t4));
69232
+ if (er)
69233
+ return done();
69234
+ if (st.isSymbolicLink()) {
69235
+ return onError2(new SymlinkError(t4, import_node_path12.default.resolve(cwd, parts.join("/"))));
69236
+ }
69237
+ }
69238
+ done();
69239
+ }
69186
69240
  [LINK](entry, linkpath, link, done) {
69187
- const ls = `${link}Sync`;
69241
+ const linkSync = `${link}Sync`;
69188
69242
  try {
69189
- import_node_fs7.default[ls](linkpath, String(entry.absolute));
69243
+ import_node_fs7.default[linkSync](linkpath, String(entry.absolute));
69190
69244
  done();
69191
69245
  entry.resume();
69192
69246
  } catch (er) {
@@ -69197,10 +69251,10 @@ var init_unpack = __esm({
69197
69251
  }
69198
69252
  });
69199
69253
 
69200
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/extract.js
69254
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/extract.js
69201
69255
  var import_node_fs8, extractFileSync, extractFile, extract;
69202
69256
  var init_extract = __esm({
69203
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/extract.js"() {
69257
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/extract.js"() {
69204
69258
  init_import_meta_url();
69205
69259
  init_esm10();
69206
69260
  import_node_fs8 = __toESM(require("node:fs"), 1);
@@ -69247,10 +69301,10 @@ var init_extract = __esm({
69247
69301
  }
69248
69302
  });
69249
69303
 
69250
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/replace.js
69304
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/replace.js
69251
69305
  var import_node_fs9, import_node_path13, replaceSync, streamSync, replaceAsync, addFilesSync2, addFilesAsync2, replace;
69252
69306
  var init_replace = __esm({
69253
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/replace.js"() {
69307
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/replace.js"() {
69254
69308
  init_import_meta_url();
69255
69309
  init_esm10();
69256
69310
  import_node_fs9 = __toESM(require("node:fs"), 1);
@@ -69460,10 +69514,10 @@ var init_replace = __esm({
69460
69514
  }
69461
69515
  });
69462
69516
 
69463
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/update.js
69517
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/update.js
69464
69518
  var update, mtimeFilter;
69465
69519
  var init_update = __esm({
69466
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/update.js"() {
69520
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/update.js"() {
69467
69521
  init_import_meta_url();
69468
69522
  init_make_command();
69469
69523
  init_replace();
@@ -69483,9 +69537,9 @@ var init_update = __esm({
69483
69537
  }
69484
69538
  });
69485
69539
 
69486
- // node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/index.js
69540
+ // node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/index.js
69487
69541
  var init_esm14 = __esm({
69488
- "node_modules/.pnpm/tar@7.5.7/node_modules/tar/dist/esm/index.js"() {
69542
+ "node_modules/.pnpm/tar@7.5.8/node_modules/tar/dist/esm/index.js"() {
69489
69543
  init_import_meta_url();
69490
69544
  init_create();
69491
69545
  init_create();
@@ -69911,15 +69965,15 @@ var require_fd_slicer = __commonJS({
69911
69965
  var Writable3 = stream2.Writable;
69912
69966
  var PassThrough2 = stream2.PassThrough;
69913
69967
  var Pend = require_pend();
69914
- var EventEmitter4 = require("events").EventEmitter;
69968
+ var EventEmitter5 = require("events").EventEmitter;
69915
69969
  exports2.createFromBuffer = createFromBuffer;
69916
69970
  exports2.createFromFd = createFromFd;
69917
69971
  exports2.BufferSlicer = BufferSlicer;
69918
69972
  exports2.FdSlicer = FdSlicer;
69919
- util6.inherits(FdSlicer, EventEmitter4);
69973
+ util6.inherits(FdSlicer, EventEmitter5);
69920
69974
  function FdSlicer(fd, options) {
69921
69975
  options = options || {};
69922
- EventEmitter4.call(this);
69976
+ EventEmitter5.call(this);
69923
69977
  this.fd = fd;
69924
69978
  this.pend = new Pend();
69925
69979
  this.pend.max = 1;
@@ -70063,9 +70117,9 @@ var require_fd_slicer = __commonJS({
70063
70117
  this.destroyed = true;
70064
70118
  this.context.unref();
70065
70119
  };
70066
- util6.inherits(BufferSlicer, EventEmitter4);
70120
+ util6.inherits(BufferSlicer, EventEmitter5);
70067
70121
  function BufferSlicer(buffer, options) {
70068
- EventEmitter4.call(this);
70122
+ EventEmitter5.call(this);
70069
70123
  options = options || {};
70070
70124
  this.refCount = 0;
70071
70125
  this.buffer = buffer;
@@ -70477,7 +70531,7 @@ var require_yauzl = __commonJS({
70477
70531
  var fd_slicer = require_fd_slicer();
70478
70532
  var crc32 = require_buffer_crc32();
70479
70533
  var util6 = require("util");
70480
- var EventEmitter4 = require("events").EventEmitter;
70534
+ var EventEmitter5 = require("events").EventEmitter;
70481
70535
  var Transform3 = require("stream").Transform;
70482
70536
  var PassThrough2 = require("stream").PassThrough;
70483
70537
  var Writable3 = require("stream").Writable;
@@ -70609,10 +70663,10 @@ var require_yauzl = __commonJS({
70609
70663
  callback(new Error("end of central directory record signature not found"));
70610
70664
  });
70611
70665
  }
70612
- util6.inherits(ZipFile, EventEmitter4);
70666
+ util6.inherits(ZipFile, EventEmitter5);
70613
70667
  function ZipFile(reader, centralDirectoryOffset, fileSize, entryCount, comment, autoClose, lazyEntries, decodeStrings, validateEntrySizes, strictFileNames) {
70614
70668
  var self2 = this;
70615
- EventEmitter4.call(self2);
70669
+ EventEmitter5.call(self2);
70616
70670
  self2.reader = reader;
70617
70671
  self2.reader.on("error", function(err) {
70618
70672
  emitError(self2, err);
@@ -70973,9 +71027,9 @@ var require_yauzl = __commonJS({
70973
71027
  }
70974
71028
  cb();
70975
71029
  };
70976
- util6.inherits(RandomAccessReader, EventEmitter4);
71030
+ util6.inherits(RandomAccessReader, EventEmitter5);
70977
71031
  function RandomAccessReader() {
70978
- EventEmitter4.call(this);
71032
+ EventEmitter5.call(this);
70979
71033
  this.refCount = 0;
70980
71034
  }
70981
71035
  RandomAccessReader.prototype.ref = function() {
@@ -81782,12 +81836,12 @@ var require_is_stream = __commonJS({
81782
81836
  "node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports2, module2) {
81783
81837
  "use strict";
81784
81838
  init_import_meta_url();
81785
- var isStream2 = (stream2) => stream2 !== null && typeof stream2 === "object" && typeof stream2.pipe === "function";
81786
- isStream2.writable = (stream2) => isStream2(stream2) && stream2.writable !== false && typeof stream2._write === "function" && typeof stream2._writableState === "object";
81787
- isStream2.readable = (stream2) => isStream2(stream2) && stream2.readable !== false && typeof stream2._read === "function" && typeof stream2._readableState === "object";
81788
- isStream2.duplex = (stream2) => isStream2.writable(stream2) && isStream2.readable(stream2);
81789
- isStream2.transform = (stream2) => isStream2.duplex(stream2) && typeof stream2._transform === "function";
81790
- module2.exports = isStream2;
81839
+ var isStream3 = (stream2) => stream2 !== null && typeof stream2 === "object" && typeof stream2.pipe === "function";
81840
+ isStream3.writable = (stream2) => isStream3(stream2) && stream2.writable !== false && typeof stream2._write === "function" && typeof stream2._writableState === "object";
81841
+ isStream3.readable = (stream2) => isStream3(stream2) && stream2.readable !== false && typeof stream2._read === "function" && typeof stream2._readableState === "object";
81842
+ isStream3.duplex = (stream2) => isStream3.writable(stream2) && isStream3.readable(stream2);
81843
+ isStream3.transform = (stream2) => isStream3.duplex(stream2) && typeof stream2._transform === "function";
81844
+ module2.exports = isStream3;
81791
81845
  }
81792
81846
  });
81793
81847
 
@@ -87719,7 +87773,7 @@ var require_data_stream = __commonJS({
87719
87773
  "node_modules/.pnpm/jws@4.0.1/node_modules/jws/lib/data-stream.js"(exports2, module2) {
87720
87774
  init_import_meta_url();
87721
87775
  var Buffer4 = require_safe_buffer().Buffer;
87722
- var Stream2 = require("stream");
87776
+ var Stream3 = require("stream");
87723
87777
  var util6 = require("util");
87724
87778
  function DataStream(data2) {
87725
87779
  this.buffer = null;
@@ -87746,7 +87800,7 @@ var require_data_stream = __commonJS({
87746
87800
  }
87747
87801
  throw new TypeError("Unexpected data type (" + typeof data2 + ")");
87748
87802
  }
87749
- util6.inherits(DataStream, Stream2);
87803
+ util6.inherits(DataStream, Stream3);
87750
87804
  DataStream.prototype.write = function write(data2) {
87751
87805
  this.buffer = Buffer4.concat([this.buffer, Buffer4.from(data2)]);
87752
87806
  this.emit("data", data2);
@@ -88045,7 +88099,7 @@ var require_sign_stream = __commonJS({
88045
88099
  var Buffer4 = require_safe_buffer().Buffer;
88046
88100
  var DataStream = require_data_stream();
88047
88101
  var jwa = require_jwa();
88048
- var Stream2 = require("stream");
88102
+ var Stream3 = require("stream");
88049
88103
  var toString2 = require_tostring();
88050
88104
  var util6 = require("util");
88051
88105
  function base64url(string, encoding) {
@@ -88089,7 +88143,7 @@ var require_sign_stream = __commonJS({
88089
88143
  this.sign();
88090
88144
  }.bind(this));
88091
88145
  }
88092
- util6.inherits(SignStream, Stream2);
88146
+ util6.inherits(SignStream, Stream3);
88093
88147
  SignStream.prototype.sign = function sign() {
88094
88148
  try {
88095
88149
  var signature = jwsSign({
@@ -88121,7 +88175,7 @@ var require_verify_stream = __commonJS({
88121
88175
  var Buffer4 = require_safe_buffer().Buffer;
88122
88176
  var DataStream = require_data_stream();
88123
88177
  var jwa = require_jwa();
88124
- var Stream2 = require("stream");
88178
+ var Stream3 = require("stream");
88125
88179
  var toString2 = require_tostring();
88126
88180
  var util6 = require("util");
88127
88181
  var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;
@@ -88207,7 +88261,7 @@ var require_verify_stream = __commonJS({
88207
88261
  this.verify();
88208
88262
  }.bind(this));
88209
88263
  }
88210
- util6.inherits(VerifyStream, Stream2);
88264
+ util6.inherits(VerifyStream, Stream3);
88211
88265
  VerifyStream.prototype.verify = function verify() {
88212
88266
  try {
88213
88267
  var valid = jwsVerify(this.signature.buffer, this.algorithm, this.key.buffer);
@@ -94550,7 +94604,7 @@ var require_stream_writable = __commonJS({
94550
94604
  var internalUtil = {
94551
94605
  deprecate: require_node8()
94552
94606
  };
94553
- var Stream2 = require_stream();
94607
+ var Stream3 = require_stream();
94554
94608
  var Buffer4 = require("buffer").Buffer;
94555
94609
  var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
94556
94610
  };
@@ -94573,7 +94627,7 @@ var require_stream_writable = __commonJS({
94573
94627
  var ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END;
94574
94628
  var ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
94575
94629
  var errorOrDestroy = destroyImpl.errorOrDestroy;
94576
- require_inherits()(Writable3, Stream2);
94630
+ require_inherits()(Writable3, Stream3);
94577
94631
  function nop() {
94578
94632
  }
94579
94633
  function WritableState(options, stream2, isDuplex) {
@@ -94658,7 +94712,7 @@ var require_stream_writable = __commonJS({
94658
94712
  if (typeof options.destroy === "function") this._destroy = options.destroy;
94659
94713
  if (typeof options.final === "function") this._final = options.final;
94660
94714
  }
94661
- Stream2.call(this);
94715
+ Stream3.call(this);
94662
94716
  }
94663
94717
  Writable3.prototype.pipe = function() {
94664
94718
  errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());
@@ -95154,8 +95208,8 @@ var require_string_decoder = __commonJS({
95154
95208
  if (typeof nenc !== "string" && (Buffer4.isEncoding === isEncoding || !isEncoding(enc))) throw new Error("Unknown encoding: " + enc);
95155
95209
  return nenc || enc;
95156
95210
  }
95157
- exports2.StringDecoder = StringDecoder2;
95158
- function StringDecoder2(encoding) {
95211
+ exports2.StringDecoder = StringDecoder3;
95212
+ function StringDecoder3(encoding) {
95159
95213
  this.encoding = normalizeEncoding(encoding);
95160
95214
  var nb;
95161
95215
  switch (this.encoding) {
@@ -95182,7 +95236,7 @@ var require_string_decoder = __commonJS({
95182
95236
  this.lastTotal = 0;
95183
95237
  this.lastChar = Buffer4.allocUnsafe(nb);
95184
95238
  }
95185
- StringDecoder2.prototype.write = function(buf) {
95239
+ StringDecoder3.prototype.write = function(buf) {
95186
95240
  if (buf.length === 0) return "";
95187
95241
  var r4;
95188
95242
  var i4;
@@ -95197,9 +95251,9 @@ var require_string_decoder = __commonJS({
95197
95251
  if (i4 < buf.length) return r4 ? r4 + this.text(buf, i4) : this.text(buf, i4);
95198
95252
  return r4 || "";
95199
95253
  };
95200
- StringDecoder2.prototype.end = utf8End;
95201
- StringDecoder2.prototype.text = utf8Text;
95202
- StringDecoder2.prototype.fillLast = function(buf) {
95254
+ StringDecoder3.prototype.end = utf8End;
95255
+ StringDecoder3.prototype.text = utf8Text;
95256
+ StringDecoder3.prototype.fillLast = function(buf) {
95203
95257
  if (this.lastNeed <= buf.length) {
95204
95258
  buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
95205
95259
  return this.lastChar.toString(this.encoding, 0, this.lastTotal);
@@ -95744,7 +95798,7 @@ var require_stream_readable = __commonJS({
95744
95798
  var EElistenerCount = function EElistenerCount2(emitter, type2) {
95745
95799
  return emitter.listeners(type2).length;
95746
95800
  };
95747
- var Stream2 = require_stream();
95801
+ var Stream3 = require_stream();
95748
95802
  var Buffer4 = require("buffer").Buffer;
95749
95803
  var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
95750
95804
  };
@@ -95771,10 +95825,10 @@ var require_stream_readable = __commonJS({
95771
95825
  var ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF;
95772
95826
  var ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED;
95773
95827
  var ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
95774
- var StringDecoder2;
95828
+ var StringDecoder3;
95775
95829
  var createReadableStreamAsyncIterator;
95776
95830
  var from;
95777
- require_inherits()(Readable5, Stream2);
95831
+ require_inherits()(Readable5, Stream3);
95778
95832
  var errorOrDestroy = destroyImpl.errorOrDestroy;
95779
95833
  var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
95780
95834
  function prependListener(emitter, event, fn) {
@@ -95813,8 +95867,8 @@ var require_stream_readable = __commonJS({
95813
95867
  this.decoder = null;
95814
95868
  this.encoding = null;
95815
95869
  if (options.encoding) {
95816
- if (!StringDecoder2) StringDecoder2 = require_string_decoder().StringDecoder;
95817
- this.decoder = new StringDecoder2(options.encoding);
95870
+ if (!StringDecoder3) StringDecoder3 = require_string_decoder().StringDecoder;
95871
+ this.decoder = new StringDecoder3(options.encoding);
95818
95872
  this.encoding = options.encoding;
95819
95873
  }
95820
95874
  }
@@ -95828,7 +95882,7 @@ var require_stream_readable = __commonJS({
95828
95882
  if (typeof options.read === "function") this._read = options.read;
95829
95883
  if (typeof options.destroy === "function") this._destroy = options.destroy;
95830
95884
  }
95831
- Stream2.call(this);
95885
+ Stream3.call(this);
95832
95886
  }
95833
95887
  Object.defineProperty(Readable5.prototype, "destroyed", {
95834
95888
  // making it explicit this property is not enumerable
@@ -95935,8 +95989,8 @@ var require_stream_readable = __commonJS({
95935
95989
  return this._readableState.flowing === false;
95936
95990
  };
95937
95991
  Readable5.prototype.setEncoding = function(enc) {
95938
- if (!StringDecoder2) StringDecoder2 = require_string_decoder().StringDecoder;
95939
- var decoder = new StringDecoder2(enc);
95992
+ if (!StringDecoder3) StringDecoder3 = require_string_decoder().StringDecoder;
95993
+ var decoder = new StringDecoder3(enc);
95940
95994
  this._readableState.decoder = decoder;
95941
95995
  this._readableState.encoding = this._readableState.decoder.encoding;
95942
95996
  var p4 = this._readableState.buffer.head;
@@ -96230,7 +96284,7 @@ var require_stream_readable = __commonJS({
96230
96284
  return this;
96231
96285
  };
96232
96286
  Readable5.prototype.on = function(ev, fn) {
96233
- var res = Stream2.prototype.on.call(this, ev, fn);
96287
+ var res = Stream3.prototype.on.call(this, ev, fn);
96234
96288
  var state2 = this._readableState;
96235
96289
  if (ev === "data") {
96236
96290
  state2.readableListening = this.listenerCount("readable") > 0;
@@ -96252,14 +96306,14 @@ var require_stream_readable = __commonJS({
96252
96306
  };
96253
96307
  Readable5.prototype.addListener = Readable5.prototype.on;
96254
96308
  Readable5.prototype.removeListener = function(ev, fn) {
96255
- var res = Stream2.prototype.removeListener.call(this, ev, fn);
96309
+ var res = Stream3.prototype.removeListener.call(this, ev, fn);
96256
96310
  if (ev === "readable") {
96257
96311
  process.nextTick(updateReadableListening, this);
96258
96312
  }
96259
96313
  return res;
96260
96314
  };
96261
96315
  Readable5.prototype.removeAllListeners = function(ev) {
96262
- var res = Stream2.prototype.removeAllListeners.apply(this, arguments);
96316
+ var res = Stream3.prototype.removeAllListeners.apply(this, arguments);
96263
96317
  if (ev === "readable" || ev === void 0) {
96264
96318
  process.nextTick(updateReadableListening, this);
96265
96319
  }
@@ -96676,14 +96730,14 @@ var require_pipeline = __commonJS({
96676
96730
  var require_readable = __commonJS({
96677
96731
  "node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/readable.js"(exports2, module2) {
96678
96732
  init_import_meta_url();
96679
- var Stream2 = require("stream");
96680
- if (process.env.READABLE_STREAM === "disable" && Stream2) {
96681
- module2.exports = Stream2.Readable;
96682
- Object.assign(module2.exports, Stream2);
96683
- module2.exports.Stream = Stream2;
96733
+ var Stream3 = require("stream");
96734
+ if (process.env.READABLE_STREAM === "disable" && Stream3) {
96735
+ module2.exports = Stream3.Readable;
96736
+ Object.assign(module2.exports, Stream3);
96737
+ module2.exports.Stream = Stream3;
96684
96738
  } else {
96685
96739
  exports2 = module2.exports = require_stream_readable();
96686
- exports2.Stream = Stream2 || exports2;
96740
+ exports2.Stream = Stream3 || exports2;
96687
96741
  exports2.Readable = exports2;
96688
96742
  exports2.Writable = require_stream_writable();
96689
96743
  exports2.Duplex = require_stream_duplex();
@@ -109576,7 +109630,7 @@ var init_storage = __esm({
109576
109630
  }
109577
109631
  });
109578
109632
 
109579
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/util.js
109633
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/util.js
109580
109634
  function getAllMatches(string, regex2) {
109581
109635
  const matches = [];
109582
109636
  let match3 = regex2.exec(string);
@@ -109597,7 +109651,7 @@ function isExist(v8) {
109597
109651
  }
109598
109652
  var nameStartChar, nameChar, nameRegexp, regexName, isName;
109599
109653
  var init_util5 = __esm({
109600
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/util.js"() {
109654
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/util.js"() {
109601
109655
  "use strict";
109602
109656
  init_import_meta_url();
109603
109657
  nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
@@ -109611,7 +109665,7 @@ var init_util5 = __esm({
109611
109665
  }
109612
109666
  });
109613
109667
 
109614
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/validator.js
109668
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/validator.js
109615
109669
  function validate3(xmlData, options) {
109616
109670
  options = Object.assign({}, defaultOptions2, options);
109617
109671
  const tags = [];
@@ -109910,7 +109964,7 @@ function getPositionFromMatch(match3) {
109910
109964
  }
109911
109965
  var defaultOptions2, doubleQuote, singleQuote, validAttrStrRegxp;
109912
109966
  var init_validator = __esm({
109913
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/validator.js"() {
109967
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/validator.js"() {
109914
109968
  "use strict";
109915
109969
  init_import_meta_url();
109916
109970
  init_util5();
@@ -109925,10 +109979,37 @@ var init_validator = __esm({
109925
109979
  }
109926
109980
  });
109927
109981
 
109928
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
109982
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
109983
+ function normalizeProcessEntities(value) {
109984
+ if (typeof value === "boolean") {
109985
+ return {
109986
+ enabled: value,
109987
+ // true or false
109988
+ maxEntitySize: 1e4,
109989
+ maxExpansionDepth: 10,
109990
+ maxTotalExpansions: 1e3,
109991
+ maxExpandedLength: 1e5,
109992
+ allowedTags: null,
109993
+ tagFilter: null
109994
+ };
109995
+ }
109996
+ if (typeof value === "object" && value !== null) {
109997
+ return {
109998
+ enabled: value.enabled !== false,
109999
+ // default true if not specified
110000
+ maxEntitySize: value.maxEntitySize ?? 1e4,
110001
+ maxExpansionDepth: value.maxExpansionDepth ?? 10,
110002
+ maxTotalExpansions: value.maxTotalExpansions ?? 1e3,
110003
+ maxExpandedLength: value.maxExpandedLength ?? 1e5,
110004
+ allowedTags: value.allowedTags ?? null,
110005
+ tagFilter: value.tagFilter ?? null
110006
+ };
110007
+ }
110008
+ return normalizeProcessEntities(true);
110009
+ }
109929
110010
  var defaultOptions3, buildOptions;
109930
110011
  var init_OptionsBuilder = __esm({
109931
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"() {
110012
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"() {
109932
110013
  init_import_meta_url();
109933
110014
  defaultOptions3 = {
109934
110015
  preserveOrder: false,
@@ -109976,15 +110057,17 @@ var init_OptionsBuilder = __esm({
109976
110057
  captureMetaData: false
109977
110058
  };
109978
110059
  buildOptions = function(options) {
109979
- return Object.assign({}, defaultOptions3, options);
110060
+ const built = Object.assign({}, defaultOptions3, options);
110061
+ built.processEntities = normalizeProcessEntities(built.processEntities);
110062
+ return built;
109980
110063
  };
109981
110064
  }
109982
110065
  });
109983
110066
 
109984
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
110067
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
109985
110068
  var METADATA_SYMBOL, XmlNode;
109986
110069
  var init_xmlNode = __esm({
109987
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"() {
110070
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"() {
109988
110071
  "use strict";
109989
110072
  init_import_meta_url();
109990
110073
  if (typeof Symbol !== "function") {
@@ -110021,7 +110104,7 @@ var init_xmlNode = __esm({
110021
110104
  }
110022
110105
  });
110023
110106
 
110024
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
110107
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
110025
110108
  function hasSeq(data2, seq2, i4) {
110026
110109
  for (let j5 = 0; j5 < seq2.length; j5++) {
110027
110110
  if (seq2[j5] !== data2[i4 + j5 + 1]) return false;
@@ -110036,12 +110119,13 @@ function validateEntityName(name2) {
110036
110119
  }
110037
110120
  var DocTypeReader, skipWhitespace;
110038
110121
  var init_DocTypeReader = __esm({
110039
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"() {
110122
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"() {
110040
110123
  init_import_meta_url();
110041
110124
  init_util5();
110042
110125
  DocTypeReader = class {
110043
- constructor(processEntities) {
110044
- this.suppressValidationErr = !processEntities;
110126
+ constructor(options) {
110127
+ this.suppressValidationErr = !options;
110128
+ this.options = options;
110045
110129
  }
110046
110130
  readDocType(xmlData, i4) {
110047
110131
  const entities = {};
@@ -110056,11 +110140,13 @@ var init_DocTypeReader = __esm({
110056
110140
  i4 += 7;
110057
110141
  let entityName, val;
110058
110142
  [entityName, val, i4] = this.readEntityExp(xmlData, i4 + 1, this.suppressValidationErr);
110059
- if (val.indexOf("&") === -1)
110143
+ if (val.indexOf("&") === -1) {
110144
+ const escaped = entityName.replace(/[.\-+*:]/g, "\\.");
110060
110145
  entities[entityName] = {
110061
- regx: RegExp(`&${entityName};`, "g"),
110146
+ regx: RegExp(`&${escaped};`, "g"),
110062
110147
  val
110063
110148
  };
110149
+ }
110064
110150
  } else if (hasBody && hasSeq(xmlData, "!ELEMENT", i4)) {
110065
110151
  i4 += 8;
110066
110152
  const { index } = this.readElementExp(xmlData, i4 + 1);
@@ -110119,6 +110205,11 @@ var init_DocTypeReader = __esm({
110119
110205
  }
110120
110206
  let entityValue = "";
110121
110207
  [i4, entityValue] = this.readIdentifierVal(xmlData, i4, "entity");
110208
+ if (this.options.enabled !== false && this.options.maxEntitySize && entityValue.length > this.options.maxEntitySize) {
110209
+ throw new Error(
110210
+ `Entity "${entityName}" size (${entityValue.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`
110211
+ );
110212
+ }
110122
110213
  i4--;
110123
110214
  return [entityName, entityValue, i4];
110124
110215
  }
@@ -110394,7 +110485,7 @@ var init_strnum = __esm({
110394
110485
  }
110395
110486
  });
110396
110487
 
110397
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/ignoreAttributes.js
110488
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/ignoreAttributes.js
110398
110489
  function getIgnoreAttributesFn(ignoreAttributes) {
110399
110490
  if (typeof ignoreAttributes === "function") {
110400
110491
  return ignoreAttributes;
@@ -110414,18 +110505,19 @@ function getIgnoreAttributesFn(ignoreAttributes) {
110414
110505
  return () => false;
110415
110506
  }
110416
110507
  var init_ignoreAttributes = __esm({
110417
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/ignoreAttributes.js"() {
110508
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/ignoreAttributes.js"() {
110418
110509
  init_import_meta_url();
110419
110510
  }
110420
110511
  });
110421
110512
 
110422
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
110513
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
110423
110514
  function addExternalEntities(externalEntities) {
110424
110515
  const entKeys = Object.keys(externalEntities);
110425
110516
  for (let i4 = 0; i4 < entKeys.length; i4++) {
110426
110517
  const ent = entKeys[i4];
110518
+ const escaped = ent.replace(/[.\-+*:]/g, "\\.");
110427
110519
  this.lastEntities[ent] = {
110428
- regex: new RegExp("&" + ent + ";", "g"),
110520
+ regex: new RegExp("&" + escaped + ";", "g"),
110429
110521
  val: externalEntities[ent]
110430
110522
  };
110431
110523
  }
@@ -110436,7 +110528,7 @@ function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode,
110436
110528
  val = val.trim();
110437
110529
  }
110438
110530
  if (val.length > 0) {
110439
- if (!escapeEntities) val = this.replaceEntitiesValue(val);
110531
+ if (!escapeEntities) val = this.replaceEntitiesValue(val, tagName, jPath);
110440
110532
  const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode);
110441
110533
  if (newval === null || newval === void 0) {
110442
110534
  return val;
@@ -110468,7 +110560,7 @@ function resolveNameSpace(tagname) {
110468
110560
  }
110469
110561
  return tagname;
110470
110562
  }
110471
- function buildAttributesMap(attrStr, jPath) {
110563
+ function buildAttributesMap(attrStr, jPath, tagName) {
110472
110564
  if (this.options.ignoreAttributes !== true && typeof attrStr === "string") {
110473
110565
  const matches = getAllMatches(attrStr, attrsRegx);
110474
110566
  const len = matches.length;
@@ -110489,7 +110581,7 @@ function buildAttributesMap(attrStr, jPath) {
110489
110581
  if (this.options.trimValues) {
110490
110582
  oldVal = oldVal.trim();
110491
110583
  }
110492
- oldVal = this.replaceEntitiesValue(oldVal);
110584
+ oldVal = this.replaceEntitiesValue(oldVal, tagName, jPath);
110493
110585
  const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath);
110494
110586
  if (newVal === null || newVal === void 0) {
110495
110587
  attrs[aName] = oldVal;
@@ -110680,7 +110772,7 @@ function fromCodePoint2(str2, base, prefix) {
110680
110772
  }
110681
110773
  var OrderedObjParser, attrsRegx, parseXml, replaceEntitiesValue;
110682
110774
  var init_OrderedObjParser = __esm({
110683
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"() {
110775
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"() {
110684
110776
  "use strict";
110685
110777
  init_import_meta_url();
110686
110778
  init_util5();
@@ -110729,6 +110821,8 @@ var init_OrderedObjParser = __esm({
110729
110821
  this.saveTextToParentTag = saveTextToParentTag;
110730
110822
  this.addChild = addChild;
110731
110823
  this.ignoreAttributesFn = getIgnoreAttributesFn(this.options.ignoreAttributes);
110824
+ this.entityExpansionCount = 0;
110825
+ this.currentExpandedLength = 0;
110732
110826
  if (this.options.stopNodes && this.options.stopNodes.length > 0) {
110733
110827
  this.stopNodesExact = /* @__PURE__ */ new Set();
110734
110828
  this.stopNodesWildcard = /* @__PURE__ */ new Set();
@@ -110751,6 +110845,8 @@ var init_OrderedObjParser = __esm({
110751
110845
  let currentNode = xmlObj;
110752
110846
  let textData = "";
110753
110847
  let jPath = "";
110848
+ this.entityExpansionCount = 0;
110849
+ this.currentExpandedLength = 0;
110754
110850
  const docTypeReader = new DocTypeReader(this.options.processEntities);
110755
110851
  for (let i4 = 0; i4 < xmlData.length; i4++) {
110756
110852
  const ch = xmlData[i4];
@@ -110794,7 +110890,7 @@ var init_OrderedObjParser = __esm({
110794
110890
  const childNode = new XmlNode(tagData.tagName);
110795
110891
  childNode.add(this.options.textNodeName, "");
110796
110892
  if (tagData.tagName !== tagData.tagExp && tagData.attrExpPresent) {
110797
- childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath);
110893
+ childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName);
110798
110894
  }
110799
110895
  this.addChild(currentNode, childNode, jPath, i4);
110800
110896
  }
@@ -110872,10 +110968,7 @@ var init_OrderedObjParser = __esm({
110872
110968
  }
110873
110969
  const childNode = new XmlNode(tagName);
110874
110970
  if (tagName !== tagExp && attrExpPresent) {
110875
- childNode[":@"] = this.buildAttributesMap(
110876
- tagExp,
110877
- jPath
110878
- );
110971
+ childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
110879
110972
  }
110880
110973
  if (tagContent) {
110881
110974
  tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true);
@@ -110901,7 +110994,7 @@ var init_OrderedObjParser = __esm({
110901
110994
  }
110902
110995
  const childNode = new XmlNode(tagName);
110903
110996
  if (tagName !== tagExp && attrExpPresent) {
110904
- childNode[":@"] = this.buildAttributesMap(tagExp, jPath);
110997
+ childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
110905
110998
  }
110906
110999
  this.addChild(currentNode, childNode, jPath, startIndex);
110907
111000
  jPath = jPath.substr(0, jPath.lastIndexOf("."));
@@ -110909,7 +111002,7 @@ var init_OrderedObjParser = __esm({
110909
111002
  const childNode = new XmlNode(tagName);
110910
111003
  this.tagsNodeStack.push(currentNode);
110911
111004
  if (tagName !== tagExp && attrExpPresent) {
110912
- childNode[":@"] = this.buildAttributesMap(tagExp, jPath);
111005
+ childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName);
110913
111006
  }
110914
111007
  this.addChild(currentNode, childNode, jPath, startIndex);
110915
111008
  currentNode = childNode;
@@ -110924,30 +111017,65 @@ var init_OrderedObjParser = __esm({
110924
111017
  }
110925
111018
  return xmlObj.child;
110926
111019
  };
110927
- replaceEntitiesValue = function(val) {
110928
- if (this.options.processEntities) {
110929
- for (let entityName in this.docTypeEntities) {
110930
- const entity = this.docTypeEntities[entityName];
110931
- val = val.replace(entity.regx, entity.val);
111020
+ replaceEntitiesValue = function(val, tagName, jPath) {
111021
+ if (val.indexOf("&") === -1) {
111022
+ return val;
111023
+ }
111024
+ const entityConfig = this.options.processEntities;
111025
+ if (!entityConfig.enabled) {
111026
+ return val;
111027
+ }
111028
+ if (entityConfig.allowedTags) {
111029
+ if (!entityConfig.allowedTags.includes(tagName)) {
111030
+ return val;
110932
111031
  }
110933
- for (let entityName in this.lastEntities) {
110934
- const entity = this.lastEntities[entityName];
110935
- val = val.replace(entity.regex, entity.val);
111032
+ }
111033
+ if (entityConfig.tagFilter) {
111034
+ if (!entityConfig.tagFilter(tagName, jPath)) {
111035
+ return val;
110936
111036
  }
110937
- if (this.options.htmlEntities) {
110938
- for (let entityName in this.htmlEntities) {
110939
- const entity = this.htmlEntities[entityName];
110940
- val = val.replace(entity.regex, entity.val);
111037
+ }
111038
+ for (let entityName in this.docTypeEntities) {
111039
+ const entity = this.docTypeEntities[entityName];
111040
+ const matches = val.match(entity.regx);
111041
+ if (matches) {
111042
+ this.entityExpansionCount += matches.length;
111043
+ if (entityConfig.maxTotalExpansions && this.entityExpansionCount > entityConfig.maxTotalExpansions) {
111044
+ throw new Error(
111045
+ `Entity expansion limit exceeded: ${this.entityExpansionCount} > ${entityConfig.maxTotalExpansions}`
111046
+ );
111047
+ }
111048
+ const lengthBefore = val.length;
111049
+ val = val.replace(entity.regx, entity.val);
111050
+ if (entityConfig.maxExpandedLength) {
111051
+ this.currentExpandedLength += val.length - lengthBefore;
111052
+ if (this.currentExpandedLength > entityConfig.maxExpandedLength) {
111053
+ throw new Error(
111054
+ `Total expanded content size exceeded: ${this.currentExpandedLength} > ${entityConfig.maxExpandedLength}`
111055
+ );
111056
+ }
110941
111057
  }
110942
111058
  }
110943
- val = val.replace(this.ampEntity.regex, this.ampEntity.val);
110944
111059
  }
111060
+ if (val.indexOf("&") === -1) return val;
111061
+ for (let entityName in this.lastEntities) {
111062
+ const entity = this.lastEntities[entityName];
111063
+ val = val.replace(entity.regex, entity.val);
111064
+ }
111065
+ if (val.indexOf("&") === -1) return val;
111066
+ if (this.options.htmlEntities) {
111067
+ for (let entityName in this.htmlEntities) {
111068
+ const entity = this.htmlEntities[entityName];
111069
+ val = val.replace(entity.regex, entity.val);
111070
+ }
111071
+ }
111072
+ val = val.replace(this.ampEntity.regex, this.ampEntity.val);
110945
111073
  return val;
110946
111074
  };
110947
111075
  }
110948
111076
  });
110949
111077
 
110950
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/node2json.js
111078
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/node2json.js
110951
111079
  function prettify(node2, options) {
110952
111080
  return compress(node2, options);
110953
111081
  }
@@ -111032,7 +111160,7 @@ function isLeafTag(obj, options) {
111032
111160
  }
111033
111161
  var METADATA_SYMBOL2;
111034
111162
  var init_node2json = __esm({
111035
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/node2json.js"() {
111163
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/node2json.js"() {
111036
111164
  "use strict";
111037
111165
  init_import_meta_url();
111038
111166
  init_xmlNode();
@@ -111040,10 +111168,10 @@ var init_node2json = __esm({
111040
111168
  }
111041
111169
  });
111042
111170
 
111043
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
111171
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
111044
111172
  var XMLParser;
111045
111173
  var init_XMLParser = __esm({
111046
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"() {
111174
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"() {
111047
111175
  init_import_meta_url();
111048
111176
  init_OptionsBuilder();
111049
111177
  init_OrderedObjParser();
@@ -111112,9 +111240,9 @@ var init_XMLParser = __esm({
111112
111240
  }
111113
111241
  });
111114
111242
 
111115
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/fxp.js
111243
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/fxp.js
111116
111244
  var init_fxp = __esm({
111117
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/src/fxp.js"() {
111245
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/src/fxp.js"() {
111118
111246
  "use strict";
111119
111247
  init_import_meta_url();
111120
111248
  init_XMLParser();
@@ -116414,8 +116542,8 @@ var require_async = __commonJS({
116414
116542
  function fallback(fn) {
116415
116543
  setTimeout(fn, 0);
116416
116544
  }
116417
- function wrap(defer2) {
116418
- return (fn, ...args) => defer2(() => fn(...args));
116545
+ function wrap(defer3) {
116546
+ return (fn, ...args) => defer3(() => fn(...args));
116419
116547
  }
116420
116548
  var _defer;
116421
116549
  if (hasQueueMicrotask) {
@@ -125464,9 +125592,893 @@ var init_esm19 = __esm({
125464
125592
  }
125465
125593
  });
125466
125594
 
125595
+ // node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js
125596
+ var import_node_events4, import_node_stream3, import_node_string_decoder2, proc2, isStream2, isReadable2, isWritable2, EOF3, MAYBE_EMIT_END2, EMITTED_END2, EMITTING_END2, EMITTED_ERROR2, CLOSED2, READ3, FLUSH2, FLUSHCHUNK2, ENCODING2, DECODER2, FLOWING2, PAUSED2, RESUME2, BUFFER3, PIPES2, BUFFERLENGTH2, BUFFERPUSH2, BUFFERSHIFT2, OBJECTMODE2, DESTROYED2, ERROR2, EMITDATA2, EMITEND3, EMITEND22, ASYNC2, ABORT2, ABORTED3, SIGNAL2, DATALISTENERS2, DISCARDED2, defer2, nodefer2, isEndish2, isArrayBufferLike2, isArrayBufferView2, Pipe2, PipeProxyErrors2, isObjectModeOptions2, isEncodingOptions2, Minipass2;
125597
+ var init_esm20 = __esm({
125598
+ "node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js"() {
125599
+ init_import_meta_url();
125600
+ import_node_events4 = require("node:events");
125601
+ import_node_stream3 = __toESM(require("node:stream"), 1);
125602
+ import_node_string_decoder2 = require("node:string_decoder");
125603
+ proc2 = typeof process === "object" && process ? process : {
125604
+ stdout: null,
125605
+ stderr: null
125606
+ };
125607
+ isStream2 = (s4) => !!s4 && typeof s4 === "object" && (s4 instanceof Minipass2 || s4 instanceof import_node_stream3.default || isReadable2(s4) || isWritable2(s4));
125608
+ isReadable2 = (s4) => !!s4 && typeof s4 === "object" && s4 instanceof import_node_events4.EventEmitter && typeof s4.pipe === "function" && // node core Writable streams have a pipe() method, but it throws
125609
+ s4.pipe !== import_node_stream3.default.Writable.prototype.pipe;
125610
+ isWritable2 = (s4) => !!s4 && typeof s4 === "object" && s4 instanceof import_node_events4.EventEmitter && typeof s4.write === "function" && typeof s4.end === "function";
125611
+ EOF3 = Symbol("EOF");
125612
+ MAYBE_EMIT_END2 = Symbol("maybeEmitEnd");
125613
+ EMITTED_END2 = Symbol("emittedEnd");
125614
+ EMITTING_END2 = Symbol("emittingEnd");
125615
+ EMITTED_ERROR2 = Symbol("emittedError");
125616
+ CLOSED2 = Symbol("closed");
125617
+ READ3 = Symbol("read");
125618
+ FLUSH2 = Symbol("flush");
125619
+ FLUSHCHUNK2 = Symbol("flushChunk");
125620
+ ENCODING2 = Symbol("encoding");
125621
+ DECODER2 = Symbol("decoder");
125622
+ FLOWING2 = Symbol("flowing");
125623
+ PAUSED2 = Symbol("paused");
125624
+ RESUME2 = Symbol("resume");
125625
+ BUFFER3 = Symbol("buffer");
125626
+ PIPES2 = Symbol("pipes");
125627
+ BUFFERLENGTH2 = Symbol("bufferLength");
125628
+ BUFFERPUSH2 = Symbol("bufferPush");
125629
+ BUFFERSHIFT2 = Symbol("bufferShift");
125630
+ OBJECTMODE2 = Symbol("objectMode");
125631
+ DESTROYED2 = Symbol("destroyed");
125632
+ ERROR2 = Symbol("error");
125633
+ EMITDATA2 = Symbol("emitData");
125634
+ EMITEND3 = Symbol("emitEnd");
125635
+ EMITEND22 = Symbol("emitEnd2");
125636
+ ASYNC2 = Symbol("async");
125637
+ ABORT2 = Symbol("abort");
125638
+ ABORTED3 = Symbol("aborted");
125639
+ SIGNAL2 = Symbol("signal");
125640
+ DATALISTENERS2 = Symbol("dataListeners");
125641
+ DISCARDED2 = Symbol("discarded");
125642
+ defer2 = (fn) => Promise.resolve().then(fn);
125643
+ nodefer2 = (fn) => fn();
125644
+ isEndish2 = (ev) => ev === "end" || ev === "finish" || ev === "prefinish";
125645
+ isArrayBufferLike2 = (b5) => b5 instanceof ArrayBuffer || !!b5 && typeof b5 === "object" && b5.constructor && b5.constructor.name === "ArrayBuffer" && b5.byteLength >= 0;
125646
+ isArrayBufferView2 = (b5) => !Buffer.isBuffer(b5) && ArrayBuffer.isView(b5);
125647
+ Pipe2 = class {
125648
+ src;
125649
+ dest;
125650
+ opts;
125651
+ ondrain;
125652
+ constructor(src, dest, opts) {
125653
+ this.src = src;
125654
+ this.dest = dest;
125655
+ this.opts = opts;
125656
+ this.ondrain = () => src[RESUME2]();
125657
+ this.dest.on("drain", this.ondrain);
125658
+ }
125659
+ unpipe() {
125660
+ this.dest.removeListener("drain", this.ondrain);
125661
+ }
125662
+ // only here for the prototype
125663
+ /* c8 ignore start */
125664
+ proxyErrors(_er) {
125665
+ }
125666
+ /* c8 ignore stop */
125667
+ end() {
125668
+ this.unpipe();
125669
+ if (this.opts.end)
125670
+ this.dest.end();
125671
+ }
125672
+ };
125673
+ PipeProxyErrors2 = class extends Pipe2 {
125674
+ unpipe() {
125675
+ this.src.removeListener("error", this.proxyErrors);
125676
+ super.unpipe();
125677
+ }
125678
+ constructor(src, dest, opts) {
125679
+ super(src, dest, opts);
125680
+ this.proxyErrors = (er) => dest.emit("error", er);
125681
+ src.on("error", this.proxyErrors);
125682
+ }
125683
+ };
125684
+ isObjectModeOptions2 = (o4) => !!o4.objectMode;
125685
+ isEncodingOptions2 = (o4) => !o4.objectMode && !!o4.encoding && o4.encoding !== "buffer";
125686
+ Minipass2 = class extends import_node_events4.EventEmitter {
125687
+ [FLOWING2] = false;
125688
+ [PAUSED2] = false;
125689
+ [PIPES2] = [];
125690
+ [BUFFER3] = [];
125691
+ [OBJECTMODE2];
125692
+ [ENCODING2];
125693
+ [ASYNC2];
125694
+ [DECODER2];
125695
+ [EOF3] = false;
125696
+ [EMITTED_END2] = false;
125697
+ [EMITTING_END2] = false;
125698
+ [CLOSED2] = false;
125699
+ [EMITTED_ERROR2] = null;
125700
+ [BUFFERLENGTH2] = 0;
125701
+ [DESTROYED2] = false;
125702
+ [SIGNAL2];
125703
+ [ABORTED3] = false;
125704
+ [DATALISTENERS2] = 0;
125705
+ [DISCARDED2] = false;
125706
+ /**
125707
+ * true if the stream can be written
125708
+ */
125709
+ writable = true;
125710
+ /**
125711
+ * true if the stream can be read
125712
+ */
125713
+ readable = true;
125714
+ /**
125715
+ * If `RType` is Buffer, then options do not need to be provided.
125716
+ * Otherwise, an options object must be provided to specify either
125717
+ * {@link Minipass.SharedOptions.objectMode} or
125718
+ * {@link Minipass.SharedOptions.encoding}, as appropriate.
125719
+ */
125720
+ constructor(...args) {
125721
+ const options = args[0] || {};
125722
+ super();
125723
+ if (options.objectMode && typeof options.encoding === "string") {
125724
+ throw new TypeError("Encoding and objectMode may not be used together");
125725
+ }
125726
+ if (isObjectModeOptions2(options)) {
125727
+ this[OBJECTMODE2] = true;
125728
+ this[ENCODING2] = null;
125729
+ } else if (isEncodingOptions2(options)) {
125730
+ this[ENCODING2] = options.encoding;
125731
+ this[OBJECTMODE2] = false;
125732
+ } else {
125733
+ this[OBJECTMODE2] = false;
125734
+ this[ENCODING2] = null;
125735
+ }
125736
+ this[ASYNC2] = !!options.async;
125737
+ this[DECODER2] = this[ENCODING2] ? new import_node_string_decoder2.StringDecoder(this[ENCODING2]) : null;
125738
+ if (options && options.debugExposeBuffer === true) {
125739
+ Object.defineProperty(this, "buffer", { get: () => this[BUFFER3] });
125740
+ }
125741
+ if (options && options.debugExposePipes === true) {
125742
+ Object.defineProperty(this, "pipes", { get: () => this[PIPES2] });
125743
+ }
125744
+ const { signal } = options;
125745
+ if (signal) {
125746
+ this[SIGNAL2] = signal;
125747
+ if (signal.aborted) {
125748
+ this[ABORT2]();
125749
+ } else {
125750
+ signal.addEventListener("abort", () => this[ABORT2]());
125751
+ }
125752
+ }
125753
+ }
125754
+ /**
125755
+ * The amount of data stored in the buffer waiting to be read.
125756
+ *
125757
+ * For Buffer strings, this will be the total byte length.
125758
+ * For string encoding streams, this will be the string character length,
125759
+ * according to JavaScript's `string.length` logic.
125760
+ * For objectMode streams, this is a count of the items waiting to be
125761
+ * emitted.
125762
+ */
125763
+ get bufferLength() {
125764
+ return this[BUFFERLENGTH2];
125765
+ }
125766
+ /**
125767
+ * The `BufferEncoding` currently in use, or `null`
125768
+ */
125769
+ get encoding() {
125770
+ return this[ENCODING2];
125771
+ }
125772
+ /**
125773
+ * @deprecated - This is a read only property
125774
+ */
125775
+ set encoding(_enc) {
125776
+ throw new Error("Encoding must be set at instantiation time");
125777
+ }
125778
+ /**
125779
+ * @deprecated - Encoding may only be set at instantiation time
125780
+ */
125781
+ setEncoding(_enc) {
125782
+ throw new Error("Encoding must be set at instantiation time");
125783
+ }
125784
+ /**
125785
+ * True if this is an objectMode stream
125786
+ */
125787
+ get objectMode() {
125788
+ return this[OBJECTMODE2];
125789
+ }
125790
+ /**
125791
+ * @deprecated - This is a read-only property
125792
+ */
125793
+ set objectMode(_om) {
125794
+ throw new Error("objectMode must be set at instantiation time");
125795
+ }
125796
+ /**
125797
+ * true if this is an async stream
125798
+ */
125799
+ get ["async"]() {
125800
+ return this[ASYNC2];
125801
+ }
125802
+ /**
125803
+ * Set to true to make this stream async.
125804
+ *
125805
+ * Once set, it cannot be unset, as this would potentially cause incorrect
125806
+ * behavior. Ie, a sync stream can be made async, but an async stream
125807
+ * cannot be safely made sync.
125808
+ */
125809
+ set ["async"](a4) {
125810
+ this[ASYNC2] = this[ASYNC2] || !!a4;
125811
+ }
125812
+ // drop everything and get out of the flow completely
125813
+ [ABORT2]() {
125814
+ this[ABORTED3] = true;
125815
+ this.emit("abort", this[SIGNAL2]?.reason);
125816
+ this.destroy(this[SIGNAL2]?.reason);
125817
+ }
125818
+ /**
125819
+ * True if the stream has been aborted.
125820
+ */
125821
+ get aborted() {
125822
+ return this[ABORTED3];
125823
+ }
125824
+ /**
125825
+ * No-op setter. Stream aborted status is set via the AbortSignal provided
125826
+ * in the constructor options.
125827
+ */
125828
+ set aborted(_2) {
125829
+ }
125830
+ write(chunk, encoding, cb) {
125831
+ if (this[ABORTED3])
125832
+ return false;
125833
+ if (this[EOF3])
125834
+ throw new Error("write after end");
125835
+ if (this[DESTROYED2]) {
125836
+ this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" }));
125837
+ return true;
125838
+ }
125839
+ if (typeof encoding === "function") {
125840
+ cb = encoding;
125841
+ encoding = "utf8";
125842
+ }
125843
+ if (!encoding)
125844
+ encoding = "utf8";
125845
+ const fn = this[ASYNC2] ? defer2 : nodefer2;
125846
+ if (!this[OBJECTMODE2] && !Buffer.isBuffer(chunk)) {
125847
+ if (isArrayBufferView2(chunk)) {
125848
+ chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
125849
+ } else if (isArrayBufferLike2(chunk)) {
125850
+ chunk = Buffer.from(chunk);
125851
+ } else if (typeof chunk !== "string") {
125852
+ throw new Error("Non-contiguous data written to non-objectMode stream");
125853
+ }
125854
+ }
125855
+ if (this[OBJECTMODE2]) {
125856
+ if (this[FLOWING2] && this[BUFFERLENGTH2] !== 0)
125857
+ this[FLUSH2](true);
125858
+ if (this[FLOWING2])
125859
+ this.emit("data", chunk);
125860
+ else
125861
+ this[BUFFERPUSH2](chunk);
125862
+ if (this[BUFFERLENGTH2] !== 0)
125863
+ this.emit("readable");
125864
+ if (cb)
125865
+ fn(cb);
125866
+ return this[FLOWING2];
125867
+ }
125868
+ if (!chunk.length) {
125869
+ if (this[BUFFERLENGTH2] !== 0)
125870
+ this.emit("readable");
125871
+ if (cb)
125872
+ fn(cb);
125873
+ return this[FLOWING2];
125874
+ }
125875
+ if (typeof chunk === "string" && // unless it is a string already ready for us to use
125876
+ !(encoding === this[ENCODING2] && !this[DECODER2]?.lastNeed)) {
125877
+ chunk = Buffer.from(chunk, encoding);
125878
+ }
125879
+ if (Buffer.isBuffer(chunk) && this[ENCODING2]) {
125880
+ chunk = this[DECODER2].write(chunk);
125881
+ }
125882
+ if (this[FLOWING2] && this[BUFFERLENGTH2] !== 0)
125883
+ this[FLUSH2](true);
125884
+ if (this[FLOWING2])
125885
+ this.emit("data", chunk);
125886
+ else
125887
+ this[BUFFERPUSH2](chunk);
125888
+ if (this[BUFFERLENGTH2] !== 0)
125889
+ this.emit("readable");
125890
+ if (cb)
125891
+ fn(cb);
125892
+ return this[FLOWING2];
125893
+ }
125894
+ /**
125895
+ * Low-level explicit read method.
125896
+ *
125897
+ * In objectMode, the argument is ignored, and one item is returned if
125898
+ * available.
125899
+ *
125900
+ * `n` is the number of bytes (or in the case of encoding streams,
125901
+ * characters) to consume. If `n` is not provided, then the entire buffer
125902
+ * is returned, or `null` is returned if no data is available.
125903
+ *
125904
+ * If `n` is greater that the amount of data in the internal buffer,
125905
+ * then `null` is returned.
125906
+ */
125907
+ read(n4) {
125908
+ if (this[DESTROYED2])
125909
+ return null;
125910
+ this[DISCARDED2] = false;
125911
+ if (this[BUFFERLENGTH2] === 0 || n4 === 0 || n4 && n4 > this[BUFFERLENGTH2]) {
125912
+ this[MAYBE_EMIT_END2]();
125913
+ return null;
125914
+ }
125915
+ if (this[OBJECTMODE2])
125916
+ n4 = null;
125917
+ if (this[BUFFER3].length > 1 && !this[OBJECTMODE2]) {
125918
+ this[BUFFER3] = [
125919
+ this[ENCODING2] ? this[BUFFER3].join("") : Buffer.concat(this[BUFFER3], this[BUFFERLENGTH2])
125920
+ ];
125921
+ }
125922
+ const ret = this[READ3](n4 || null, this[BUFFER3][0]);
125923
+ this[MAYBE_EMIT_END2]();
125924
+ return ret;
125925
+ }
125926
+ [READ3](n4, chunk) {
125927
+ if (this[OBJECTMODE2])
125928
+ this[BUFFERSHIFT2]();
125929
+ else {
125930
+ const c4 = chunk;
125931
+ if (n4 === c4.length || n4 === null)
125932
+ this[BUFFERSHIFT2]();
125933
+ else if (typeof c4 === "string") {
125934
+ this[BUFFER3][0] = c4.slice(n4);
125935
+ chunk = c4.slice(0, n4);
125936
+ this[BUFFERLENGTH2] -= n4;
125937
+ } else {
125938
+ this[BUFFER3][0] = c4.subarray(n4);
125939
+ chunk = c4.subarray(0, n4);
125940
+ this[BUFFERLENGTH2] -= n4;
125941
+ }
125942
+ }
125943
+ this.emit("data", chunk);
125944
+ if (!this[BUFFER3].length && !this[EOF3])
125945
+ this.emit("drain");
125946
+ return chunk;
125947
+ }
125948
+ end(chunk, encoding, cb) {
125949
+ if (typeof chunk === "function") {
125950
+ cb = chunk;
125951
+ chunk = void 0;
125952
+ }
125953
+ if (typeof encoding === "function") {
125954
+ cb = encoding;
125955
+ encoding = "utf8";
125956
+ }
125957
+ if (chunk !== void 0)
125958
+ this.write(chunk, encoding);
125959
+ if (cb)
125960
+ this.once("end", cb);
125961
+ this[EOF3] = true;
125962
+ this.writable = false;
125963
+ if (this[FLOWING2] || !this[PAUSED2])
125964
+ this[MAYBE_EMIT_END2]();
125965
+ return this;
125966
+ }
125967
+ // don't let the internal resume be overwritten
125968
+ [RESUME2]() {
125969
+ if (this[DESTROYED2])
125970
+ return;
125971
+ if (!this[DATALISTENERS2] && !this[PIPES2].length) {
125972
+ this[DISCARDED2] = true;
125973
+ }
125974
+ this[PAUSED2] = false;
125975
+ this[FLOWING2] = true;
125976
+ this.emit("resume");
125977
+ if (this[BUFFER3].length)
125978
+ this[FLUSH2]();
125979
+ else if (this[EOF3])
125980
+ this[MAYBE_EMIT_END2]();
125981
+ else
125982
+ this.emit("drain");
125983
+ }
125984
+ /**
125985
+ * Resume the stream if it is currently in a paused state
125986
+ *
125987
+ * If called when there are no pipe destinations or `data` event listeners,
125988
+ * this will place the stream in a "discarded" state, where all data will
125989
+ * be thrown away. The discarded state is removed if a pipe destination or
125990
+ * data handler is added, if pause() is called, or if any synchronous or
125991
+ * asynchronous iteration is started.
125992
+ */
125993
+ resume() {
125994
+ return this[RESUME2]();
125995
+ }
125996
+ /**
125997
+ * Pause the stream
125998
+ */
125999
+ pause() {
126000
+ this[FLOWING2] = false;
126001
+ this[PAUSED2] = true;
126002
+ this[DISCARDED2] = false;
126003
+ }
126004
+ /**
126005
+ * true if the stream has been forcibly destroyed
126006
+ */
126007
+ get destroyed() {
126008
+ return this[DESTROYED2];
126009
+ }
126010
+ /**
126011
+ * true if the stream is currently in a flowing state, meaning that
126012
+ * any writes will be immediately emitted.
126013
+ */
126014
+ get flowing() {
126015
+ return this[FLOWING2];
126016
+ }
126017
+ /**
126018
+ * true if the stream is currently in a paused state
126019
+ */
126020
+ get paused() {
126021
+ return this[PAUSED2];
126022
+ }
126023
+ [BUFFERPUSH2](chunk) {
126024
+ if (this[OBJECTMODE2])
126025
+ this[BUFFERLENGTH2] += 1;
126026
+ else
126027
+ this[BUFFERLENGTH2] += chunk.length;
126028
+ this[BUFFER3].push(chunk);
126029
+ }
126030
+ [BUFFERSHIFT2]() {
126031
+ if (this[OBJECTMODE2])
126032
+ this[BUFFERLENGTH2] -= 1;
126033
+ else
126034
+ this[BUFFERLENGTH2] -= this[BUFFER3][0].length;
126035
+ return this[BUFFER3].shift();
126036
+ }
126037
+ [FLUSH2](noDrain = false) {
126038
+ do {
126039
+ } while (this[FLUSHCHUNK2](this[BUFFERSHIFT2]()) && this[BUFFER3].length);
126040
+ if (!noDrain && !this[BUFFER3].length && !this[EOF3])
126041
+ this.emit("drain");
126042
+ }
126043
+ [FLUSHCHUNK2](chunk) {
126044
+ this.emit("data", chunk);
126045
+ return this[FLOWING2];
126046
+ }
126047
+ /**
126048
+ * Pipe all data emitted by this stream into the destination provided.
126049
+ *
126050
+ * Triggers the flow of data.
126051
+ */
126052
+ pipe(dest, opts) {
126053
+ if (this[DESTROYED2])
126054
+ return dest;
126055
+ this[DISCARDED2] = false;
126056
+ const ended = this[EMITTED_END2];
126057
+ opts = opts || {};
126058
+ if (dest === proc2.stdout || dest === proc2.stderr)
126059
+ opts.end = false;
126060
+ else
126061
+ opts.end = opts.end !== false;
126062
+ opts.proxyErrors = !!opts.proxyErrors;
126063
+ if (ended) {
126064
+ if (opts.end)
126065
+ dest.end();
126066
+ } else {
126067
+ this[PIPES2].push(!opts.proxyErrors ? new Pipe2(this, dest, opts) : new PipeProxyErrors2(this, dest, opts));
126068
+ if (this[ASYNC2])
126069
+ defer2(() => this[RESUME2]());
126070
+ else
126071
+ this[RESUME2]();
126072
+ }
126073
+ return dest;
126074
+ }
126075
+ /**
126076
+ * Fully unhook a piped destination stream.
126077
+ *
126078
+ * If the destination stream was the only consumer of this stream (ie,
126079
+ * there are no other piped destinations or `'data'` event listeners)
126080
+ * then the flow of data will stop until there is another consumer or
126081
+ * {@link Minipass#resume} is explicitly called.
126082
+ */
126083
+ unpipe(dest) {
126084
+ const p4 = this[PIPES2].find((p5) => p5.dest === dest);
126085
+ if (p4) {
126086
+ if (this[PIPES2].length === 1) {
126087
+ if (this[FLOWING2] && this[DATALISTENERS2] === 0) {
126088
+ this[FLOWING2] = false;
126089
+ }
126090
+ this[PIPES2] = [];
126091
+ } else
126092
+ this[PIPES2].splice(this[PIPES2].indexOf(p4), 1);
126093
+ p4.unpipe();
126094
+ }
126095
+ }
126096
+ /**
126097
+ * Alias for {@link Minipass#on}
126098
+ */
126099
+ addListener(ev, handler10) {
126100
+ return this.on(ev, handler10);
126101
+ }
126102
+ /**
126103
+ * Mostly identical to `EventEmitter.on`, with the following
126104
+ * behavior differences to prevent data loss and unnecessary hangs:
126105
+ *
126106
+ * - Adding a 'data' event handler will trigger the flow of data
126107
+ *
126108
+ * - Adding a 'readable' event handler when there is data waiting to be read
126109
+ * will cause 'readable' to be emitted immediately.
126110
+ *
126111
+ * - Adding an 'endish' event handler ('end', 'finish', etc.) which has
126112
+ * already passed will cause the event to be emitted immediately and all
126113
+ * handlers removed.
126114
+ *
126115
+ * - Adding an 'error' event handler after an error has been emitted will
126116
+ * cause the event to be re-emitted immediately with the error previously
126117
+ * raised.
126118
+ */
126119
+ on(ev, handler10) {
126120
+ const ret = super.on(ev, handler10);
126121
+ if (ev === "data") {
126122
+ this[DISCARDED2] = false;
126123
+ this[DATALISTENERS2]++;
126124
+ if (!this[PIPES2].length && !this[FLOWING2]) {
126125
+ this[RESUME2]();
126126
+ }
126127
+ } else if (ev === "readable" && this[BUFFERLENGTH2] !== 0) {
126128
+ super.emit("readable");
126129
+ } else if (isEndish2(ev) && this[EMITTED_END2]) {
126130
+ super.emit(ev);
126131
+ this.removeAllListeners(ev);
126132
+ } else if (ev === "error" && this[EMITTED_ERROR2]) {
126133
+ const h4 = handler10;
126134
+ if (this[ASYNC2])
126135
+ defer2(() => h4.call(this, this[EMITTED_ERROR2]));
126136
+ else
126137
+ h4.call(this, this[EMITTED_ERROR2]);
126138
+ }
126139
+ return ret;
126140
+ }
126141
+ /**
126142
+ * Alias for {@link Minipass#off}
126143
+ */
126144
+ removeListener(ev, handler10) {
126145
+ return this.off(ev, handler10);
126146
+ }
126147
+ /**
126148
+ * Mostly identical to `EventEmitter.off`
126149
+ *
126150
+ * If a 'data' event handler is removed, and it was the last consumer
126151
+ * (ie, there are no pipe destinations or other 'data' event listeners),
126152
+ * then the flow of data will stop until there is another consumer or
126153
+ * {@link Minipass#resume} is explicitly called.
126154
+ */
126155
+ off(ev, handler10) {
126156
+ const ret = super.off(ev, handler10);
126157
+ if (ev === "data") {
126158
+ this[DATALISTENERS2] = this.listeners("data").length;
126159
+ if (this[DATALISTENERS2] === 0 && !this[DISCARDED2] && !this[PIPES2].length) {
126160
+ this[FLOWING2] = false;
126161
+ }
126162
+ }
126163
+ return ret;
126164
+ }
126165
+ /**
126166
+ * Mostly identical to `EventEmitter.removeAllListeners`
126167
+ *
126168
+ * If all 'data' event handlers are removed, and they were the last consumer
126169
+ * (ie, there are no pipe destinations), then the flow of data will stop
126170
+ * until there is another consumer or {@link Minipass#resume} is explicitly
126171
+ * called.
126172
+ */
126173
+ removeAllListeners(ev) {
126174
+ const ret = super.removeAllListeners(ev);
126175
+ if (ev === "data" || ev === void 0) {
126176
+ this[DATALISTENERS2] = 0;
126177
+ if (!this[DISCARDED2] && !this[PIPES2].length) {
126178
+ this[FLOWING2] = false;
126179
+ }
126180
+ }
126181
+ return ret;
126182
+ }
126183
+ /**
126184
+ * true if the 'end' event has been emitted
126185
+ */
126186
+ get emittedEnd() {
126187
+ return this[EMITTED_END2];
126188
+ }
126189
+ [MAYBE_EMIT_END2]() {
126190
+ if (!this[EMITTING_END2] && !this[EMITTED_END2] && !this[DESTROYED2] && this[BUFFER3].length === 0 && this[EOF3]) {
126191
+ this[EMITTING_END2] = true;
126192
+ this.emit("end");
126193
+ this.emit("prefinish");
126194
+ this.emit("finish");
126195
+ if (this[CLOSED2])
126196
+ this.emit("close");
126197
+ this[EMITTING_END2] = false;
126198
+ }
126199
+ }
126200
+ /**
126201
+ * Mostly identical to `EventEmitter.emit`, with the following
126202
+ * behavior differences to prevent data loss and unnecessary hangs:
126203
+ *
126204
+ * If the stream has been destroyed, and the event is something other
126205
+ * than 'close' or 'error', then `false` is returned and no handlers
126206
+ * are called.
126207
+ *
126208
+ * If the event is 'end', and has already been emitted, then the event
126209
+ * is ignored. If the stream is in a paused or non-flowing state, then
126210
+ * the event will be deferred until data flow resumes. If the stream is
126211
+ * async, then handlers will be called on the next tick rather than
126212
+ * immediately.
126213
+ *
126214
+ * If the event is 'close', and 'end' has not yet been emitted, then
126215
+ * the event will be deferred until after 'end' is emitted.
126216
+ *
126217
+ * If the event is 'error', and an AbortSignal was provided for the stream,
126218
+ * and there are no listeners, then the event is ignored, matching the
126219
+ * behavior of node core streams in the presense of an AbortSignal.
126220
+ *
126221
+ * If the event is 'finish' or 'prefinish', then all listeners will be
126222
+ * removed after emitting the event, to prevent double-firing.
126223
+ */
126224
+ emit(ev, ...args) {
126225
+ const data2 = args[0];
126226
+ if (ev !== "error" && ev !== "close" && ev !== DESTROYED2 && this[DESTROYED2]) {
126227
+ return false;
126228
+ } else if (ev === "data") {
126229
+ return !this[OBJECTMODE2] && !data2 ? false : this[ASYNC2] ? (defer2(() => this[EMITDATA2](data2)), true) : this[EMITDATA2](data2);
126230
+ } else if (ev === "end") {
126231
+ return this[EMITEND3]();
126232
+ } else if (ev === "close") {
126233
+ this[CLOSED2] = true;
126234
+ if (!this[EMITTED_END2] && !this[DESTROYED2])
126235
+ return false;
126236
+ const ret2 = super.emit("close");
126237
+ this.removeAllListeners("close");
126238
+ return ret2;
126239
+ } else if (ev === "error") {
126240
+ this[EMITTED_ERROR2] = data2;
126241
+ super.emit(ERROR2, data2);
126242
+ const ret2 = !this[SIGNAL2] || this.listeners("error").length ? super.emit("error", data2) : false;
126243
+ this[MAYBE_EMIT_END2]();
126244
+ return ret2;
126245
+ } else if (ev === "resume") {
126246
+ const ret2 = super.emit("resume");
126247
+ this[MAYBE_EMIT_END2]();
126248
+ return ret2;
126249
+ } else if (ev === "finish" || ev === "prefinish") {
126250
+ const ret2 = super.emit(ev);
126251
+ this.removeAllListeners(ev);
126252
+ return ret2;
126253
+ }
126254
+ const ret = super.emit(ev, ...args);
126255
+ this[MAYBE_EMIT_END2]();
126256
+ return ret;
126257
+ }
126258
+ [EMITDATA2](data2) {
126259
+ for (const p4 of this[PIPES2]) {
126260
+ if (p4.dest.write(data2) === false)
126261
+ this.pause();
126262
+ }
126263
+ const ret = this[DISCARDED2] ? false : super.emit("data", data2);
126264
+ this[MAYBE_EMIT_END2]();
126265
+ return ret;
126266
+ }
126267
+ [EMITEND3]() {
126268
+ if (this[EMITTED_END2])
126269
+ return false;
126270
+ this[EMITTED_END2] = true;
126271
+ this.readable = false;
126272
+ return this[ASYNC2] ? (defer2(() => this[EMITEND22]()), true) : this[EMITEND22]();
126273
+ }
126274
+ [EMITEND22]() {
126275
+ if (this[DECODER2]) {
126276
+ const data2 = this[DECODER2].end();
126277
+ if (data2) {
126278
+ for (const p4 of this[PIPES2]) {
126279
+ p4.dest.write(data2);
126280
+ }
126281
+ if (!this[DISCARDED2])
126282
+ super.emit("data", data2);
126283
+ }
126284
+ }
126285
+ for (const p4 of this[PIPES2]) {
126286
+ p4.end();
126287
+ }
126288
+ const ret = super.emit("end");
126289
+ this.removeAllListeners("end");
126290
+ return ret;
126291
+ }
126292
+ /**
126293
+ * Return a Promise that resolves to an array of all emitted data once
126294
+ * the stream ends.
126295
+ */
126296
+ async collect() {
126297
+ const buf = Object.assign([], {
126298
+ dataLength: 0
126299
+ });
126300
+ if (!this[OBJECTMODE2])
126301
+ buf.dataLength = 0;
126302
+ const p4 = this.promise();
126303
+ this.on("data", (c4) => {
126304
+ buf.push(c4);
126305
+ if (!this[OBJECTMODE2])
126306
+ buf.dataLength += c4.length;
126307
+ });
126308
+ await p4;
126309
+ return buf;
126310
+ }
126311
+ /**
126312
+ * Return a Promise that resolves to the concatenation of all emitted data
126313
+ * once the stream ends.
126314
+ *
126315
+ * Not allowed on objectMode streams.
126316
+ */
126317
+ async concat() {
126318
+ if (this[OBJECTMODE2]) {
126319
+ throw new Error("cannot concat in objectMode");
126320
+ }
126321
+ const buf = await this.collect();
126322
+ return this[ENCODING2] ? buf.join("") : Buffer.concat(buf, buf.dataLength);
126323
+ }
126324
+ /**
126325
+ * Return a void Promise that resolves once the stream ends.
126326
+ */
126327
+ async promise() {
126328
+ return new Promise((resolve7, reject) => {
126329
+ this.on(DESTROYED2, () => reject(new Error("stream destroyed")));
126330
+ this.on("error", (er) => reject(er));
126331
+ this.on("end", () => resolve7());
126332
+ });
126333
+ }
126334
+ /**
126335
+ * Asynchronous `for await of` iteration.
126336
+ *
126337
+ * This will continue emitting all chunks until the stream terminates.
126338
+ */
126339
+ [Symbol.asyncIterator]() {
126340
+ this[DISCARDED2] = false;
126341
+ let stopped = false;
126342
+ const stop = async () => {
126343
+ this.pause();
126344
+ stopped = true;
126345
+ return { value: void 0, done: true };
126346
+ };
126347
+ const next = () => {
126348
+ if (stopped)
126349
+ return stop();
126350
+ const res = this.read();
126351
+ if (res !== null)
126352
+ return Promise.resolve({ done: false, value: res });
126353
+ if (this[EOF3])
126354
+ return stop();
126355
+ let resolve7;
126356
+ let reject;
126357
+ const onerr = (er) => {
126358
+ this.off("data", ondata);
126359
+ this.off("end", onend);
126360
+ this.off(DESTROYED2, ondestroy);
126361
+ stop();
126362
+ reject(er);
126363
+ };
126364
+ const ondata = (value) => {
126365
+ this.off("error", onerr);
126366
+ this.off("end", onend);
126367
+ this.off(DESTROYED2, ondestroy);
126368
+ this.pause();
126369
+ resolve7({ value, done: !!this[EOF3] });
126370
+ };
126371
+ const onend = () => {
126372
+ this.off("error", onerr);
126373
+ this.off("data", ondata);
126374
+ this.off(DESTROYED2, ondestroy);
126375
+ stop();
126376
+ resolve7({ done: true, value: void 0 });
126377
+ };
126378
+ const ondestroy = () => onerr(new Error("stream destroyed"));
126379
+ return new Promise((res2, rej) => {
126380
+ reject = rej;
126381
+ resolve7 = res2;
126382
+ this.once(DESTROYED2, ondestroy);
126383
+ this.once("error", onerr);
126384
+ this.once("end", onend);
126385
+ this.once("data", ondata);
126386
+ });
126387
+ };
126388
+ return {
126389
+ next,
126390
+ throw: stop,
126391
+ return: stop,
126392
+ [Symbol.asyncIterator]() {
126393
+ return this;
126394
+ }
126395
+ };
126396
+ }
126397
+ /**
126398
+ * Synchronous `for of` iteration.
126399
+ *
126400
+ * The iteration will terminate when the internal buffer runs out, even
126401
+ * if the stream has not yet terminated.
126402
+ */
126403
+ [Symbol.iterator]() {
126404
+ this[DISCARDED2] = false;
126405
+ let stopped = false;
126406
+ const stop = () => {
126407
+ this.pause();
126408
+ this.off(ERROR2, stop);
126409
+ this.off(DESTROYED2, stop);
126410
+ this.off("end", stop);
126411
+ stopped = true;
126412
+ return { done: true, value: void 0 };
126413
+ };
126414
+ const next = () => {
126415
+ if (stopped)
126416
+ return stop();
126417
+ const value = this.read();
126418
+ return value === null ? stop() : { done: false, value };
126419
+ };
126420
+ this.once("end", stop);
126421
+ this.once(ERROR2, stop);
126422
+ this.once(DESTROYED2, stop);
126423
+ return {
126424
+ next,
126425
+ throw: stop,
126426
+ return: stop,
126427
+ [Symbol.iterator]() {
126428
+ return this;
126429
+ }
126430
+ };
126431
+ }
126432
+ /**
126433
+ * Destroy a stream, preventing it from being used for any further purpose.
126434
+ *
126435
+ * If the stream has a `close()` method, then it will be called on
126436
+ * destruction.
126437
+ *
126438
+ * After destruction, any attempt to write data, read data, or emit most
126439
+ * events will be ignored.
126440
+ *
126441
+ * If an error argument is provided, then it will be emitted in an
126442
+ * 'error' event.
126443
+ */
126444
+ destroy(er) {
126445
+ if (this[DESTROYED2]) {
126446
+ if (er)
126447
+ this.emit("error", er);
126448
+ else
126449
+ this.emit(DESTROYED2);
126450
+ return this;
126451
+ }
126452
+ this[DESTROYED2] = true;
126453
+ this[DISCARDED2] = true;
126454
+ this[BUFFER3].length = 0;
126455
+ this[BUFFERLENGTH2] = 0;
126456
+ const wc = this;
126457
+ if (typeof wc.close === "function" && !this[CLOSED2])
126458
+ wc.close();
126459
+ if (er)
126460
+ this.emit("error", er);
126461
+ else
126462
+ this.emit(DESTROYED2);
126463
+ return this;
126464
+ }
126465
+ /**
126466
+ * Alias for {@link isStream}
126467
+ *
126468
+ * Former export location, maintained for backwards compatibility.
126469
+ *
126470
+ * @deprecated
126471
+ */
126472
+ static get isStream() {
126473
+ return isStream2;
126474
+ }
126475
+ };
126476
+ }
126477
+ });
126478
+
125467
126479
  // node_modules/.pnpm/path-scurry@2.0.1/node_modules/path-scurry/dist/esm/index.js
125468
126480
  var import_node_path15, import_node_url, import_fs11, actualFS, import_promises5, realpathSync, defaultFS, fsFromOption, uncDriveRegexp, uncToDrive, eitherSep, UNKNOWN, IFIFO, IFCHR, IFDIR, IFBLK, IFREG, IFLNK, IFSOCK, IFMT, IFMT_UNKNOWN, READDIR_CALLED, LSTAT_CALLED, ENOTDIR, ENOENT, ENOREADLINK, ENOREALPATH, ENOCHILD, TYPEMASK, entToType, normalizeCache2, normalize4, normalizeNocaseCache, normalizeNocase, ResolveCache, ChildrenCache, setAsCwd, PathBase, PathWin32, PathPosix, PathScurryBase, PathScurryWin32, PathScurryPosix, PathScurryDarwin, Path, PathScurry;
125469
- var init_esm20 = __esm({
126481
+ var init_esm21 = __esm({
125470
126482
  "node_modules/.pnpm/path-scurry@2.0.1/node_modules/path-scurry/dist/esm/index.js"() {
125471
126483
  init_import_meta_url();
125472
126484
  init_esm19();
@@ -125475,7 +126487,7 @@ var init_esm20 = __esm({
125475
126487
  import_fs11 = require("fs");
125476
126488
  actualFS = __toESM(require("node:fs"), 1);
125477
126489
  import_promises5 = require("node:fs/promises");
125478
- init_esm9();
126490
+ init_esm20();
125479
126491
  realpathSync = import_fs11.realpathSync.native;
125480
126492
  defaultFS = {
125481
126493
  lstatSync: import_fs11.lstatSync,
@@ -127012,7 +128024,7 @@ var init_esm20 = __esm({
127012
128024
  entry = this.cwd;
127013
128025
  }
127014
128026
  const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
127015
- const results = new Minipass({ objectMode: true });
128027
+ const results = new Minipass2({ objectMode: true });
127016
128028
  if (!filter3 || filter3(entry)) {
127017
128029
  results.write(withFileTypes ? entry : entry.fullpath());
127018
128030
  }
@@ -127081,7 +128093,7 @@ var init_esm20 = __esm({
127081
128093
  entry = this.cwd;
127082
128094
  }
127083
128095
  const { withFileTypes = true, follow = false, filter: filter3, walkFilter } = opts;
127084
- const results = new Minipass({ objectMode: true });
128096
+ const results = new Minipass2({ objectMode: true });
127085
128097
  const dirs = /* @__PURE__ */ new Set();
127086
128098
  if (!filter3 || filter3(entry)) {
127087
128099
  results.write(withFileTypes ? entry : entry.fullpath());
@@ -127705,7 +128717,7 @@ var makeIgnore, GlobUtil, GlobWalker, GlobStream;
127705
128717
  var init_walker = __esm({
127706
128718
  "node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/esm/walker.js"() {
127707
128719
  init_import_meta_url();
127708
- init_esm9();
128720
+ init_esm20();
127709
128721
  init_ignore();
127710
128722
  init_processor();
127711
128723
  makeIgnore = (ignore2, opts) => typeof ignore2 === "string" ? new Ignore2([ignore2], opts) : Array.isArray(ignore2) ? new Ignore2(ignore2, opts) : ignore2;
@@ -128002,7 +129014,7 @@ var init_walker = __esm({
128002
129014
  results;
128003
129015
  constructor(patterns, path27, opts) {
128004
129016
  super(patterns, path27, opts);
128005
- this.results = new Minipass({
129017
+ this.results = new Minipass2({
128006
129018
  signal: this.signal,
128007
129019
  objectMode: true
128008
129020
  });
@@ -128043,7 +129055,7 @@ var init_glob = __esm({
128043
129055
  init_import_meta_url();
128044
129056
  init_esm18();
128045
129057
  import_node_url2 = require("node:url");
128046
- init_esm20();
129058
+ init_esm21();
128047
129059
  init_pattern();
128048
129060
  init_walker();
128049
129061
  defaultPlatform4 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
@@ -128286,7 +129298,7 @@ function globIterate(pattern, options = {}) {
128286
129298
  return new Glob(pattern, options).iterate();
128287
129299
  }
128288
129300
  var streamSync2, stream, iterateSync, iterate, sync, glob;
128289
- var init_esm21 = __esm({
129301
+ var init_esm22 = __esm({
128290
129302
  "node_modules/.pnpm/glob@11.1.0/node_modules/glob/dist/esm/index.js"() {
128291
129303
  init_import_meta_url();
128292
129304
  init_esm18();
@@ -128531,7 +129543,7 @@ var init_workspaces = __esm({
128531
129543
  import_fs12 = require("fs");
128532
129544
  path19 = __toESM(require("path"));
128533
129545
  init_js_yaml();
128534
- init_esm21();
129546
+ init_esm22();
128535
129547
  init_logger2();
128536
129548
  }
128537
129549
  });
@@ -141904,45 +142916,45 @@ var init_awsExpectUnion = __esm({
141904
142916
  }
141905
142917
  });
141906
142918
 
141907
- // node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/lib/fxp.cjs
142919
+ // node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/lib/fxp.cjs
141908
142920
  var require_fxp = __commonJS({
141909
- "node_modules/.pnpm/fast-xml-parser@5.3.4/node_modules/fast-xml-parser/lib/fxp.cjs"(exports2, module2) {
142921
+ "node_modules/.pnpm/fast-xml-parser@5.3.6/node_modules/fast-xml-parser/lib/fxp.cjs"(exports2, module2) {
141910
142922
  init_import_meta_url();
141911
142923
  (() => {
141912
142924
  "use strict";
141913
- var t4 = { d: (e5, i5) => {
141914
- for (var n5 in i5) t4.o(i5, n5) && !t4.o(e5, n5) && Object.defineProperty(e5, n5, { enumerable: true, get: i5[n5] });
142925
+ var t4 = { d: (e5, n5) => {
142926
+ for (var i5 in n5) t4.o(n5, i5) && !t4.o(e5, i5) && Object.defineProperty(e5, i5, { enumerable: true, get: n5[i5] });
141915
142927
  }, o: (t5, e5) => Object.prototype.hasOwnProperty.call(t5, e5), r: (t5) => {
141916
142928
  "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t5, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t5, "__esModule", { value: true });
141917
142929
  } }, e4 = {};
141918
- t4.r(e4), t4.d(e4, { XMLBuilder: () => ut, XMLParser: () => et, XMLValidator: () => ft });
141919
- const i4 = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", n4 = new RegExp("^[" + i4 + "][" + i4 + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
142930
+ t4.r(e4), t4.d(e4, { XMLBuilder: () => dt, XMLParser: () => it, XMLValidator: () => gt });
142931
+ const n4 = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", i4 = new RegExp("^[" + n4 + "][" + n4 + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
141920
142932
  function s4(t5, e5) {
141921
- const i5 = [];
141922
- let n5 = e5.exec(t5);
141923
- for (; n5; ) {
142933
+ const n5 = [];
142934
+ let i5 = e5.exec(t5);
142935
+ for (; i5; ) {
141924
142936
  const s5 = [];
141925
- s5.startIndex = e5.lastIndex - n5[0].length;
141926
- const r5 = n5.length;
141927
- for (let t6 = 0; t6 < r5; t6++) s5.push(n5[t6]);
141928
- i5.push(s5), n5 = e5.exec(t5);
142937
+ s5.startIndex = e5.lastIndex - i5[0].length;
142938
+ const r5 = i5.length;
142939
+ for (let t6 = 0; t6 < r5; t6++) s5.push(i5[t6]);
142940
+ n5.push(s5), i5 = e5.exec(t5);
141929
142941
  }
141930
- return i5;
142942
+ return n5;
141931
142943
  }
141932
142944
  const r4 = function(t5) {
141933
- return !(null == n4.exec(t5));
142945
+ return !(null == i4.exec(t5));
141934
142946
  }, o4 = { allowBooleanAttributes: false, unpairedTags: [] };
141935
142947
  function a4(t5, e5) {
141936
142948
  e5 = Object.assign({}, o4, e5);
141937
- const i5 = [];
141938
- let n5 = false, s5 = false;
142949
+ const n5 = [];
142950
+ let i5 = false, s5 = false;
141939
142951
  "\uFEFF" === t5[0] && (t5 = t5.substr(1));
141940
142952
  for (let o5 = 0; o5 < t5.length; o5++) if ("<" === t5[o5] && "?" === t5[o5 + 1]) {
141941
142953
  if (o5 += 2, o5 = u6(t5, o5), o5.err) return o5;
141942
142954
  } else {
141943
142955
  if ("<" !== t5[o5]) {
141944
142956
  if (l4(t5[o5])) continue;
141945
- return x5("InvalidChar", "char '" + t5[o5] + "' is not expected.", b5(t5, o5));
142957
+ return m5("InvalidChar", "char '" + t5[o5] + "' is not expected.", b5(t5, o5));
141946
142958
  }
141947
142959
  {
141948
142960
  let a5 = o5;
@@ -141957,34 +142969,34 @@ var require_fxp = __commonJS({
141957
142969
  for (; o5 < t5.length && ">" !== t5[o5] && " " !== t5[o5] && " " !== t5[o5] && "\n" !== t5[o5] && "\r" !== t5[o5]; o5++) p5 += t5[o5];
141958
142970
  if (p5 = p5.trim(), "/" === p5[p5.length - 1] && (p5 = p5.substring(0, p5.length - 1), o5--), !r4(p5)) {
141959
142971
  let e6;
141960
- return e6 = 0 === p5.trim().length ? "Invalid space after '<'." : "Tag '" + p5 + "' is an invalid name.", x5("InvalidTag", e6, b5(t5, o5));
142972
+ return e6 = 0 === p5.trim().length ? "Invalid space after '<'." : "Tag '" + p5 + "' is an invalid name.", m5("InvalidTag", e6, b5(t5, o5));
141961
142973
  }
141962
142974
  const c5 = f4(t5, o5);
141963
- if (false === c5) return x5("InvalidAttr", "Attributes for '" + p5 + "' have open quote.", b5(t5, o5));
141964
- let N3 = c5.value;
141965
- if (o5 = c5.index, "/" === N3[N3.length - 1]) {
141966
- const i6 = o5 - N3.length;
141967
- N3 = N3.substring(0, N3.length - 1);
141968
- const s6 = g4(N3, e5);
141969
- if (true !== s6) return x5(s6.err.code, s6.err.msg, b5(t5, i6 + s6.err.line));
141970
- n5 = true;
142975
+ if (false === c5) return m5("InvalidAttr", "Attributes for '" + p5 + "' have open quote.", b5(t5, o5));
142976
+ let E4 = c5.value;
142977
+ if (o5 = c5.index, "/" === E4[E4.length - 1]) {
142978
+ const n6 = o5 - E4.length;
142979
+ E4 = E4.substring(0, E4.length - 1);
142980
+ const s6 = g4(E4, e5);
142981
+ if (true !== s6) return m5(s6.err.code, s6.err.msg, b5(t5, n6 + s6.err.line));
142982
+ i5 = true;
141971
142983
  } else if (d6) {
141972
- if (!c5.tagClosed) return x5("InvalidTag", "Closing tag '" + p5 + "' doesn't have proper closing.", b5(t5, o5));
141973
- if (N3.trim().length > 0) return x5("InvalidTag", "Closing tag '" + p5 + "' can't have attributes or invalid starting.", b5(t5, a5));
141974
- if (0 === i5.length) return x5("InvalidTag", "Closing tag '" + p5 + "' has not been opened.", b5(t5, a5));
142984
+ if (!c5.tagClosed) return m5("InvalidTag", "Closing tag '" + p5 + "' doesn't have proper closing.", b5(t5, o5));
142985
+ if (E4.trim().length > 0) return m5("InvalidTag", "Closing tag '" + p5 + "' can't have attributes or invalid starting.", b5(t5, a5));
142986
+ if (0 === n5.length) return m5("InvalidTag", "Closing tag '" + p5 + "' has not been opened.", b5(t5, a5));
141975
142987
  {
141976
- const e6 = i5.pop();
142988
+ const e6 = n5.pop();
141977
142989
  if (p5 !== e6.tagName) {
141978
- let i6 = b5(t5, e6.tagStartPos);
141979
- return x5("InvalidTag", "Expected closing tag '" + e6.tagName + "' (opened in line " + i6.line + ", col " + i6.col + ") instead of closing tag '" + p5 + "'.", b5(t5, a5));
142990
+ let n6 = b5(t5, e6.tagStartPos);
142991
+ return m5("InvalidTag", "Expected closing tag '" + e6.tagName + "' (opened in line " + n6.line + ", col " + n6.col + ") instead of closing tag '" + p5 + "'.", b5(t5, a5));
141980
142992
  }
141981
- 0 == i5.length && (s5 = true);
142993
+ 0 == n5.length && (s5 = true);
141982
142994
  }
141983
142995
  } else {
141984
- const r5 = g4(N3, e5);
141985
- if (true !== r5) return x5(r5.err.code, r5.err.msg, b5(t5, o5 - N3.length + r5.err.line));
141986
- if (true === s5) return x5("InvalidXml", "Multiple possible root nodes found.", b5(t5, o5));
141987
- -1 !== e5.unpairedTags.indexOf(p5) || i5.push({ tagName: p5, tagStartPos: a5 }), n5 = true;
142996
+ const r5 = g4(E4, e5);
142997
+ if (true !== r5) return m5(r5.err.code, r5.err.msg, b5(t5, o5 - E4.length + r5.err.line));
142998
+ if (true === s5) return m5("InvalidXml", "Multiple possible root nodes found.", b5(t5, o5));
142999
+ -1 !== e5.unpairedTags.indexOf(p5) || n5.push({ tagName: p5, tagStartPos: a5 }), i5 = true;
141988
143000
  }
141989
143001
  for (o5++; o5 < t5.length; o5++) if ("<" === t5[o5]) {
141990
143002
  if ("!" === t5[o5 + 1]) {
@@ -141994,25 +143006,25 @@ var require_fxp = __commonJS({
141994
143006
  if ("?" !== t5[o5 + 1]) break;
141995
143007
  if (o5 = u6(t5, ++o5), o5.err) return o5;
141996
143008
  } else if ("&" === t5[o5]) {
141997
- const e6 = m5(t5, o5);
141998
- if (-1 == e6) return x5("InvalidChar", "char '&' is not expected.", b5(t5, o5));
143009
+ const e6 = x5(t5, o5);
143010
+ if (-1 == e6) return m5("InvalidChar", "char '&' is not expected.", b5(t5, o5));
141999
143011
  o5 = e6;
142000
- } else if (true === s5 && !l4(t5[o5])) return x5("InvalidXml", "Extra text at the end", b5(t5, o5));
143012
+ } else if (true === s5 && !l4(t5[o5])) return m5("InvalidXml", "Extra text at the end", b5(t5, o5));
142001
143013
  "<" === t5[o5] && o5--;
142002
143014
  }
142003
143015
  }
142004
143016
  }
142005
- return n5 ? 1 == i5.length ? x5("InvalidTag", "Unclosed tag '" + i5[0].tagName + "'.", b5(t5, i5[0].tagStartPos)) : !(i5.length > 0) || x5("InvalidXml", "Invalid '" + JSON.stringify(i5.map(((t6) => t6.tagName)), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : x5("InvalidXml", "Start tag expected.", 1);
143017
+ return i5 ? 1 == n5.length ? m5("InvalidTag", "Unclosed tag '" + n5[0].tagName + "'.", b5(t5, n5[0].tagStartPos)) : !(n5.length > 0) || m5("InvalidXml", "Invalid '" + JSON.stringify(n5.map(((t6) => t6.tagName)), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : m5("InvalidXml", "Start tag expected.", 1);
142006
143018
  }
142007
143019
  function l4(t5) {
142008
143020
  return " " === t5 || " " === t5 || "\n" === t5 || "\r" === t5;
142009
143021
  }
142010
143022
  function u6(t5, e5) {
142011
- const i5 = e5;
143023
+ const n5 = e5;
142012
143024
  for (; e5 < t5.length; e5++) if ("?" != t5[e5] && " " != t5[e5]) ;
142013
143025
  else {
142014
- const n5 = t5.substr(i5, e5 - i5);
142015
- if (e5 > 5 && "xml" === n5) return x5("InvalidXml", "XML declaration allowed only at the start of the document.", b5(t5, e5));
143026
+ const i5 = t5.substr(n5, e5 - n5);
143027
+ if (e5 > 5 && "xml" === i5) return m5("InvalidXml", "XML declaration allowed only at the start of the document.", b5(t5, e5));
142016
143028
  if ("?" == t5[e5] && ">" == t5[e5 + 1]) {
142017
143029
  e5++;
142018
143030
  break;
@@ -142027,9 +143039,9 @@ var require_fxp = __commonJS({
142027
143039
  break;
142028
143040
  }
142029
143041
  } else if (t5.length > e5 + 8 && "D" === t5[e5 + 1] && "O" === t5[e5 + 2] && "C" === t5[e5 + 3] && "T" === t5[e5 + 4] && "Y" === t5[e5 + 5] && "P" === t5[e5 + 6] && "E" === t5[e5 + 7]) {
142030
- let i5 = 1;
142031
- for (e5 += 8; e5 < t5.length; e5++) if ("<" === t5[e5]) i5++;
142032
- else if (">" === t5[e5] && (i5--, 0 === i5)) break;
143042
+ let n5 = 1;
143043
+ for (e5 += 8; e5 < t5.length; e5++) if ("<" === t5[e5]) n5++;
143044
+ else if (">" === t5[e5] && (n5--, 0 === n5)) break;
142033
143045
  } else if (t5.length > e5 + 9 && "[" === t5[e5 + 1] && "C" === t5[e5 + 2] && "D" === t5[e5 + 3] && "A" === t5[e5 + 4] && "T" === t5[e5 + 5] && "A" === t5[e5 + 6] && "[" === t5[e5 + 7]) {
142034
143046
  for (e5 += 8; e5 < t5.length; e5++) if ("]" === t5[e5] && "]" === t5[e5 + 1] && ">" === t5[e5 + 2]) {
142035
143047
  e5 += 2;
@@ -142040,71 +143052,78 @@ var require_fxp = __commonJS({
142040
143052
  }
142041
143053
  const d5 = '"', p4 = "'";
142042
143054
  function f4(t5, e5) {
142043
- let i5 = "", n5 = "", s5 = false;
143055
+ let n5 = "", i5 = "", s5 = false;
142044
143056
  for (; e5 < t5.length; e5++) {
142045
- if (t5[e5] === d5 || t5[e5] === p4) "" === n5 ? n5 = t5[e5] : n5 !== t5[e5] || (n5 = "");
142046
- else if (">" === t5[e5] && "" === n5) {
143057
+ if (t5[e5] === d5 || t5[e5] === p4) "" === i5 ? i5 = t5[e5] : i5 !== t5[e5] || (i5 = "");
143058
+ else if (">" === t5[e5] && "" === i5) {
142047
143059
  s5 = true;
142048
143060
  break;
142049
143061
  }
142050
- i5 += t5[e5];
143062
+ n5 += t5[e5];
142051
143063
  }
142052
- return "" === n5 && { value: i5, index: e5, tagClosed: s5 };
143064
+ return "" === i5 && { value: n5, index: e5, tagClosed: s5 };
142053
143065
  }
142054
143066
  const c4 = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
142055
143067
  function g4(t5, e5) {
142056
- const i5 = s4(t5, c4), n5 = {};
142057
- for (let t6 = 0; t6 < i5.length; t6++) {
142058
- if (0 === i5[t6][1].length) return x5("InvalidAttr", "Attribute '" + i5[t6][2] + "' has no space in starting.", E3(i5[t6]));
142059
- if (void 0 !== i5[t6][3] && void 0 === i5[t6][4]) return x5("InvalidAttr", "Attribute '" + i5[t6][2] + "' is without value.", E3(i5[t6]));
142060
- if (void 0 === i5[t6][3] && !e5.allowBooleanAttributes) return x5("InvalidAttr", "boolean attribute '" + i5[t6][2] + "' is not allowed.", E3(i5[t6]));
142061
- const s5 = i5[t6][2];
142062
- if (!N2(s5)) return x5("InvalidAttr", "Attribute '" + s5 + "' is an invalid name.", E3(i5[t6]));
142063
- if (n5.hasOwnProperty(s5)) return x5("InvalidAttr", "Attribute '" + s5 + "' is repeated.", E3(i5[t6]));
142064
- n5[s5] = 1;
143068
+ const n5 = s4(t5, c4), i5 = {};
143069
+ for (let t6 = 0; t6 < n5.length; t6++) {
143070
+ if (0 === n5[t6][1].length) return m5("InvalidAttr", "Attribute '" + n5[t6][2] + "' has no space in starting.", N2(n5[t6]));
143071
+ if (void 0 !== n5[t6][3] && void 0 === n5[t6][4]) return m5("InvalidAttr", "Attribute '" + n5[t6][2] + "' is without value.", N2(n5[t6]));
143072
+ if (void 0 === n5[t6][3] && !e5.allowBooleanAttributes) return m5("InvalidAttr", "boolean attribute '" + n5[t6][2] + "' is not allowed.", N2(n5[t6]));
143073
+ const s5 = n5[t6][2];
143074
+ if (!E3(s5)) return m5("InvalidAttr", "Attribute '" + s5 + "' is an invalid name.", N2(n5[t6]));
143075
+ if (i5.hasOwnProperty(s5)) return m5("InvalidAttr", "Attribute '" + s5 + "' is repeated.", N2(n5[t6]));
143076
+ i5[s5] = 1;
142065
143077
  }
142066
143078
  return true;
142067
143079
  }
142068
- function m5(t5, e5) {
143080
+ function x5(t5, e5) {
142069
143081
  if (";" === t5[++e5]) return -1;
142070
143082
  if ("#" === t5[e5]) return (function(t6, e6) {
142071
- let i6 = /\d/;
142072
- for ("x" === t6[e6] && (e6++, i6 = /[\da-fA-F]/); e6 < t6.length; e6++) {
143083
+ let n6 = /\d/;
143084
+ for ("x" === t6[e6] && (e6++, n6 = /[\da-fA-F]/); e6 < t6.length; e6++) {
142073
143085
  if (";" === t6[e6]) return e6;
142074
- if (!t6[e6].match(i6)) break;
143086
+ if (!t6[e6].match(n6)) break;
142075
143087
  }
142076
143088
  return -1;
142077
143089
  })(t5, ++e5);
142078
- let i5 = 0;
142079
- for (; e5 < t5.length; e5++, i5++) if (!(t5[e5].match(/\w/) && i5 < 20)) {
143090
+ let n5 = 0;
143091
+ for (; e5 < t5.length; e5++, n5++) if (!(t5[e5].match(/\w/) && n5 < 20)) {
142080
143092
  if (";" === t5[e5]) break;
142081
143093
  return -1;
142082
143094
  }
142083
143095
  return e5;
142084
143096
  }
142085
- function x5(t5, e5, i5) {
142086
- return { err: { code: t5, msg: e5, line: i5.line || i5, col: i5.col } };
143097
+ function m5(t5, e5, n5) {
143098
+ return { err: { code: t5, msg: e5, line: n5.line || n5, col: n5.col } };
142087
143099
  }
142088
- function N2(t5) {
143100
+ function E3(t5) {
142089
143101
  return r4(t5);
142090
143102
  }
142091
143103
  function b5(t5, e5) {
142092
- const i5 = t5.substring(0, e5).split(/\r?\n/);
142093
- return { line: i5.length, col: i5[i5.length - 1].length + 1 };
143104
+ const n5 = t5.substring(0, e5).split(/\r?\n/);
143105
+ return { line: n5.length, col: n5[n5.length - 1].length + 1 };
142094
143106
  }
142095
- function E3(t5) {
143107
+ function N2(t5) {
142096
143108
  return t5.startIndex + t5[1].length;
142097
143109
  }
142098
- const v8 = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t5, e5) {
143110
+ const y3 = { preserveOrder: false, attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, removeNSPrefix: false, allowBooleanAttributes: false, parseTagValue: true, parseAttributeValue: false, trimValues: true, cdataPropName: false, numberParseOptions: { hex: true, leadingZeros: true, eNotation: true }, tagValueProcessor: function(t5, e5) {
142099
143111
  return e5;
142100
143112
  }, attributeValueProcessor: function(t5, e5) {
142101
143113
  return e5;
142102
- }, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t5, e5, i5) {
143114
+ }, stopNodes: [], alwaysCreateTextNode: false, isArray: () => false, commentPropName: false, unpairedTags: [], processEntities: true, htmlEntities: false, ignoreDeclaration: false, ignorePiTags: false, transformTagName: false, transformAttributeName: false, updateTag: function(t5, e5, n5) {
142103
143115
  return t5;
142104
143116
  }, captureMetaData: false };
142105
- let T2;
142106
- T2 = "function" != typeof Symbol ? "@@xmlMetadata" : Symbol("XML Node Metadata");
142107
- class y3 {
143117
+ function T2(t5) {
143118
+ return "boolean" == typeof t5 ? { enabled: t5, maxEntitySize: 1e4, maxExpansionDepth: 10, maxTotalExpansions: 1e3, maxExpandedLength: 1e5, allowedTags: null, tagFilter: null } : "object" == typeof t5 && null !== t5 ? { enabled: false !== t5.enabled, maxEntitySize: t5.maxEntitySize ?? 1e4, maxExpansionDepth: t5.maxExpansionDepth ?? 10, maxTotalExpansions: t5.maxTotalExpansions ?? 1e3, maxExpandedLength: t5.maxExpandedLength ?? 1e5, allowedTags: t5.allowedTags ?? null, tagFilter: t5.tagFilter ?? null } : T2(true);
143119
+ }
143120
+ const w5 = function(t5) {
143121
+ const e5 = Object.assign({}, y3, t5);
143122
+ return e5.processEntities = T2(e5.processEntities), e5;
143123
+ };
143124
+ let v8;
143125
+ v8 = "function" != typeof Symbol ? "@@xmlMetadata" : Symbol("XML Node Metadata");
143126
+ class I3 {
142108
143127
  constructor(t5) {
142109
143128
  this.tagname = t5, this.child = [], this[":@"] = {};
142110
143129
  }
@@ -142112,151 +143131,155 @@ var require_fxp = __commonJS({
142112
143131
  "__proto__" === t5 && (t5 = "#__proto__"), this.child.push({ [t5]: e5 });
142113
143132
  }
142114
143133
  addChild(t5, e5) {
142115
- "__proto__" === t5.tagname && (t5.tagname = "#__proto__"), t5[":@"] && Object.keys(t5[":@"]).length > 0 ? this.child.push({ [t5.tagname]: t5.child, ":@": t5[":@"] }) : this.child.push({ [t5.tagname]: t5.child }), void 0 !== e5 && (this.child[this.child.length - 1][T2] = { startIndex: e5 });
143134
+ "__proto__" === t5.tagname && (t5.tagname = "#__proto__"), t5[":@"] && Object.keys(t5[":@"]).length > 0 ? this.child.push({ [t5.tagname]: t5.child, ":@": t5[":@"] }) : this.child.push({ [t5.tagname]: t5.child }), void 0 !== e5 && (this.child[this.child.length - 1][v8] = { startIndex: e5 });
142116
143135
  }
142117
143136
  static getMetaDataSymbol() {
142118
- return T2;
143137
+ return v8;
142119
143138
  }
142120
143139
  }
142121
- class w5 {
143140
+ class O {
142122
143141
  constructor(t5) {
142123
- this.suppressValidationErr = !t5;
143142
+ this.suppressValidationErr = !t5, this.options = t5;
142124
143143
  }
142125
143144
  readDocType(t5, e5) {
142126
- const i5 = {};
143145
+ const n5 = {};
142127
143146
  if ("O" !== t5[e5 + 3] || "C" !== t5[e5 + 4] || "T" !== t5[e5 + 5] || "Y" !== t5[e5 + 6] || "P" !== t5[e5 + 7] || "E" !== t5[e5 + 8]) throw new Error("Invalid Tag instead of DOCTYPE");
142128
143147
  {
142129
143148
  e5 += 9;
142130
- let n5 = 1, s5 = false, r5 = false, o5 = "";
143149
+ let i5 = 1, s5 = false, r5 = false, o5 = "";
142131
143150
  for (; e5 < t5.length; e5++) if ("<" !== t5[e5] || r5) if (">" === t5[e5]) {
142132
- if (r5 ? "-" === t5[e5 - 1] && "-" === t5[e5 - 2] && (r5 = false, n5--) : n5--, 0 === n5) break;
143151
+ if (r5 ? "-" === t5[e5 - 1] && "-" === t5[e5 - 2] && (r5 = false, i5--) : i5--, 0 === i5) break;
142133
143152
  } else "[" === t5[e5] ? s5 = true : o5 += t5[e5];
142134
143153
  else {
142135
- if (s5 && P2(t5, "!ENTITY", e5)) {
142136
- let n6, s6;
142137
- e5 += 7, [n6, s6, e5] = this.readEntityExp(t5, e5 + 1, this.suppressValidationErr), -1 === s6.indexOf("&") && (i5[n6] = { regx: RegExp(`&${n6};`, "g"), val: s6 });
142138
- } else if (s5 && P2(t5, "!ELEMENT", e5)) {
143154
+ if (s5 && A2(t5, "!ENTITY", e5)) {
143155
+ let i6, s6;
143156
+ if (e5 += 7, [i6, s6, e5] = this.readEntityExp(t5, e5 + 1, this.suppressValidationErr), -1 === s6.indexOf("&")) {
143157
+ const t6 = i6.replace(/[.\-+*:]/g, "\\.");
143158
+ n5[i6] = { regx: RegExp(`&${t6};`, "g"), val: s6 };
143159
+ }
143160
+ } else if (s5 && A2(t5, "!ELEMENT", e5)) {
142139
143161
  e5 += 8;
142140
- const { index: i6 } = this.readElementExp(t5, e5 + 1);
142141
- e5 = i6;
142142
- } else if (s5 && P2(t5, "!ATTLIST", e5)) e5 += 8;
142143
- else if (s5 && P2(t5, "!NOTATION", e5)) {
143162
+ const { index: n6 } = this.readElementExp(t5, e5 + 1);
143163
+ e5 = n6;
143164
+ } else if (s5 && A2(t5, "!ATTLIST", e5)) e5 += 8;
143165
+ else if (s5 && A2(t5, "!NOTATION", e5)) {
142144
143166
  e5 += 9;
142145
- const { index: i6 } = this.readNotationExp(t5, e5 + 1, this.suppressValidationErr);
142146
- e5 = i6;
143167
+ const { index: n6 } = this.readNotationExp(t5, e5 + 1, this.suppressValidationErr);
143168
+ e5 = n6;
142147
143169
  } else {
142148
- if (!P2(t5, "!--", e5)) throw new Error("Invalid DOCTYPE");
143170
+ if (!A2(t5, "!--", e5)) throw new Error("Invalid DOCTYPE");
142149
143171
  r5 = true;
142150
143172
  }
142151
- n5++, o5 = "";
143173
+ i5++, o5 = "";
142152
143174
  }
142153
- if (0 !== n5) throw new Error("Unclosed DOCTYPE");
143175
+ if (0 !== i5) throw new Error("Unclosed DOCTYPE");
142154
143176
  }
142155
- return { entities: i5, i: e5 };
143177
+ return { entities: n5, i: e5 };
142156
143178
  }
142157
143179
  readEntityExp(t5, e5) {
142158
- e5 = I3(t5, e5);
142159
- let i5 = "";
142160
- for (; e5 < t5.length && !/\s/.test(t5[e5]) && '"' !== t5[e5] && "'" !== t5[e5]; ) i5 += t5[e5], e5++;
142161
- if (O(i5), e5 = I3(t5, e5), !this.suppressValidationErr) {
143180
+ e5 = P2(t5, e5);
143181
+ let n5 = "";
143182
+ for (; e5 < t5.length && !/\s/.test(t5[e5]) && '"' !== t5[e5] && "'" !== t5[e5]; ) n5 += t5[e5], e5++;
143183
+ if (S2(n5), e5 = P2(t5, e5), !this.suppressValidationErr) {
142162
143184
  if ("SYSTEM" === t5.substring(e5, e5 + 6).toUpperCase()) throw new Error("External entities are not supported");
142163
143185
  if ("%" === t5[e5]) throw new Error("Parameter entities are not supported");
142164
143186
  }
142165
- let n5 = "";
142166
- return [e5, n5] = this.readIdentifierVal(t5, e5, "entity"), [i5, n5, --e5];
143187
+ let i5 = "";
143188
+ if ([e5, i5] = this.readIdentifierVal(t5, e5, "entity"), false !== this.options.enabled && this.options.maxEntitySize && i5.length > this.options.maxEntitySize) throw new Error(`Entity "${n5}" size (${i5.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);
143189
+ return [n5, i5, --e5];
142167
143190
  }
142168
143191
  readNotationExp(t5, e5) {
142169
- e5 = I3(t5, e5);
142170
- let i5 = "";
142171
- for (; e5 < t5.length && !/\s/.test(t5[e5]); ) i5 += t5[e5], e5++;
142172
- !this.suppressValidationErr && O(i5), e5 = I3(t5, e5);
142173
- const n5 = t5.substring(e5, e5 + 6).toUpperCase();
142174
- if (!this.suppressValidationErr && "SYSTEM" !== n5 && "PUBLIC" !== n5) throw new Error(`Expected SYSTEM or PUBLIC, found "${n5}"`);
142175
- e5 += n5.length, e5 = I3(t5, e5);
143192
+ e5 = P2(t5, e5);
143193
+ let n5 = "";
143194
+ for (; e5 < t5.length && !/\s/.test(t5[e5]); ) n5 += t5[e5], e5++;
143195
+ !this.suppressValidationErr && S2(n5), e5 = P2(t5, e5);
143196
+ const i5 = t5.substring(e5, e5 + 6).toUpperCase();
143197
+ if (!this.suppressValidationErr && "SYSTEM" !== i5 && "PUBLIC" !== i5) throw new Error(`Expected SYSTEM or PUBLIC, found "${i5}"`);
143198
+ e5 += i5.length, e5 = P2(t5, e5);
142176
143199
  let s5 = null, r5 = null;
142177
- if ("PUBLIC" === n5) [e5, s5] = this.readIdentifierVal(t5, e5, "publicIdentifier"), '"' !== t5[e5 = I3(t5, e5)] && "'" !== t5[e5] || ([e5, r5] = this.readIdentifierVal(t5, e5, "systemIdentifier"));
142178
- else if ("SYSTEM" === n5 && ([e5, r5] = this.readIdentifierVal(t5, e5, "systemIdentifier"), !this.suppressValidationErr && !r5)) throw new Error("Missing mandatory system identifier for SYSTEM notation");
142179
- return { notationName: i5, publicIdentifier: s5, systemIdentifier: r5, index: --e5 };
143200
+ if ("PUBLIC" === i5) [e5, s5] = this.readIdentifierVal(t5, e5, "publicIdentifier"), '"' !== t5[e5 = P2(t5, e5)] && "'" !== t5[e5] || ([e5, r5] = this.readIdentifierVal(t5, e5, "systemIdentifier"));
143201
+ else if ("SYSTEM" === i5 && ([e5, r5] = this.readIdentifierVal(t5, e5, "systemIdentifier"), !this.suppressValidationErr && !r5)) throw new Error("Missing mandatory system identifier for SYSTEM notation");
143202
+ return { notationName: n5, publicIdentifier: s5, systemIdentifier: r5, index: --e5 };
142180
143203
  }
142181
- readIdentifierVal(t5, e5, i5) {
142182
- let n5 = "";
143204
+ readIdentifierVal(t5, e5, n5) {
143205
+ let i5 = "";
142183
143206
  const s5 = t5[e5];
142184
143207
  if ('"' !== s5 && "'" !== s5) throw new Error(`Expected quoted string, found "${s5}"`);
142185
- for (e5++; e5 < t5.length && t5[e5] !== s5; ) n5 += t5[e5], e5++;
142186
- if (t5[e5] !== s5) throw new Error(`Unterminated ${i5} value`);
142187
- return [++e5, n5];
143208
+ for (e5++; e5 < t5.length && t5[e5] !== s5; ) i5 += t5[e5], e5++;
143209
+ if (t5[e5] !== s5) throw new Error(`Unterminated ${n5} value`);
143210
+ return [++e5, i5];
142188
143211
  }
142189
143212
  readElementExp(t5, e5) {
142190
- e5 = I3(t5, e5);
142191
- let i5 = "";
142192
- for (; e5 < t5.length && !/\s/.test(t5[e5]); ) i5 += t5[e5], e5++;
142193
- if (!this.suppressValidationErr && !r4(i5)) throw new Error(`Invalid element name: "${i5}"`);
143213
+ e5 = P2(t5, e5);
142194
143214
  let n5 = "";
142195
- if ("E" === t5[e5 = I3(t5, e5)] && P2(t5, "MPTY", e5)) e5 += 4;
142196
- else if ("A" === t5[e5] && P2(t5, "NY", e5)) e5 += 2;
143215
+ for (; e5 < t5.length && !/\s/.test(t5[e5]); ) n5 += t5[e5], e5++;
143216
+ if (!this.suppressValidationErr && !r4(n5)) throw new Error(`Invalid element name: "${n5}"`);
143217
+ let i5 = "";
143218
+ if ("E" === t5[e5 = P2(t5, e5)] && A2(t5, "MPTY", e5)) e5 += 4;
143219
+ else if ("A" === t5[e5] && A2(t5, "NY", e5)) e5 += 2;
142197
143220
  else if ("(" === t5[e5]) {
142198
- for (e5++; e5 < t5.length && ")" !== t5[e5]; ) n5 += t5[e5], e5++;
143221
+ for (e5++; e5 < t5.length && ")" !== t5[e5]; ) i5 += t5[e5], e5++;
142199
143222
  if (")" !== t5[e5]) throw new Error("Unterminated content model");
142200
143223
  } else if (!this.suppressValidationErr) throw new Error(`Invalid Element Expression, found "${t5[e5]}"`);
142201
- return { elementName: i5, contentModel: n5.trim(), index: e5 };
143224
+ return { elementName: n5, contentModel: i5.trim(), index: e5 };
142202
143225
  }
142203
143226
  readAttlistExp(t5, e5) {
142204
- e5 = I3(t5, e5);
142205
- let i5 = "";
142206
- for (; e5 < t5.length && !/\s/.test(t5[e5]); ) i5 += t5[e5], e5++;
142207
- O(i5), e5 = I3(t5, e5);
143227
+ e5 = P2(t5, e5);
142208
143228
  let n5 = "";
142209
143229
  for (; e5 < t5.length && !/\s/.test(t5[e5]); ) n5 += t5[e5], e5++;
142210
- if (!O(n5)) throw new Error(`Invalid attribute name: "${n5}"`);
142211
- e5 = I3(t5, e5);
143230
+ S2(n5), e5 = P2(t5, e5);
143231
+ let i5 = "";
143232
+ for (; e5 < t5.length && !/\s/.test(t5[e5]); ) i5 += t5[e5], e5++;
143233
+ if (!S2(i5)) throw new Error(`Invalid attribute name: "${i5}"`);
143234
+ e5 = P2(t5, e5);
142212
143235
  let s5 = "";
142213
143236
  if ("NOTATION" === t5.substring(e5, e5 + 8).toUpperCase()) {
142214
- if (s5 = "NOTATION", "(" !== t5[e5 = I3(t5, e5 += 8)]) throw new Error(`Expected '(', found "${t5[e5]}"`);
143237
+ if (s5 = "NOTATION", "(" !== t5[e5 = P2(t5, e5 += 8)]) throw new Error(`Expected '(', found "${t5[e5]}"`);
142215
143238
  e5++;
142216
- let i6 = [];
143239
+ let n6 = [];
142217
143240
  for (; e5 < t5.length && ")" !== t5[e5]; ) {
142218
- let n6 = "";
142219
- for (; e5 < t5.length && "|" !== t5[e5] && ")" !== t5[e5]; ) n6 += t5[e5], e5++;
142220
- if (n6 = n6.trim(), !O(n6)) throw new Error(`Invalid notation name: "${n6}"`);
142221
- i6.push(n6), "|" === t5[e5] && (e5++, e5 = I3(t5, e5));
143241
+ let i6 = "";
143242
+ for (; e5 < t5.length && "|" !== t5[e5] && ")" !== t5[e5]; ) i6 += t5[e5], e5++;
143243
+ if (i6 = i6.trim(), !S2(i6)) throw new Error(`Invalid notation name: "${i6}"`);
143244
+ n6.push(i6), "|" === t5[e5] && (e5++, e5 = P2(t5, e5));
142222
143245
  }
142223
143246
  if (")" !== t5[e5]) throw new Error("Unterminated list of notations");
142224
- e5++, s5 += " (" + i6.join("|") + ")";
143247
+ e5++, s5 += " (" + n6.join("|") + ")";
142225
143248
  } else {
142226
143249
  for (; e5 < t5.length && !/\s/.test(t5[e5]); ) s5 += t5[e5], e5++;
142227
- const i6 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
142228
- if (!this.suppressValidationErr && !i6.includes(s5.toUpperCase())) throw new Error(`Invalid attribute type: "${s5}"`);
143250
+ const n6 = ["CDATA", "ID", "IDREF", "IDREFS", "ENTITY", "ENTITIES", "NMTOKEN", "NMTOKENS"];
143251
+ if (!this.suppressValidationErr && !n6.includes(s5.toUpperCase())) throw new Error(`Invalid attribute type: "${s5}"`);
142229
143252
  }
142230
- e5 = I3(t5, e5);
143253
+ e5 = P2(t5, e5);
142231
143254
  let r5 = "";
142232
- return "#REQUIRED" === t5.substring(e5, e5 + 8).toUpperCase() ? (r5 = "#REQUIRED", e5 += 8) : "#IMPLIED" === t5.substring(e5, e5 + 7).toUpperCase() ? (r5 = "#IMPLIED", e5 += 7) : [e5, r5] = this.readIdentifierVal(t5, e5, "ATTLIST"), { elementName: i5, attributeName: n5, attributeType: s5, defaultValue: r5, index: e5 };
143255
+ return "#REQUIRED" === t5.substring(e5, e5 + 8).toUpperCase() ? (r5 = "#REQUIRED", e5 += 8) : "#IMPLIED" === t5.substring(e5, e5 + 7).toUpperCase() ? (r5 = "#IMPLIED", e5 += 7) : [e5, r5] = this.readIdentifierVal(t5, e5, "ATTLIST"), { elementName: n5, attributeName: i5, attributeType: s5, defaultValue: r5, index: e5 };
142233
143256
  }
142234
143257
  }
142235
- const I3 = (t5, e5) => {
143258
+ const P2 = (t5, e5) => {
142236
143259
  for (; e5 < t5.length && /\s/.test(t5[e5]); ) e5++;
142237
143260
  return e5;
142238
143261
  };
142239
- function P2(t5, e5, i5) {
142240
- for (let n5 = 0; n5 < e5.length; n5++) if (e5[n5] !== t5[i5 + n5 + 1]) return false;
143262
+ function A2(t5, e5, n5) {
143263
+ for (let i5 = 0; i5 < e5.length; i5++) if (e5[i5] !== t5[n5 + i5 + 1]) return false;
142241
143264
  return true;
142242
143265
  }
142243
- function O(t5) {
143266
+ function S2(t5) {
142244
143267
  if (r4(t5)) return t5;
142245
143268
  throw new Error(`Invalid entity name ${t5}`);
142246
143269
  }
142247
- const A2 = /^[-+]?0x[a-fA-F0-9]+$/, S2 = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, C3 = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
142248
- const V = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
142249
- function $2(t5) {
143270
+ const C3 = /^[-+]?0x[a-fA-F0-9]+$/, $2 = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, V = { hex: true, leadingZeros: true, decimalPoint: ".", eNotation: true };
143271
+ const D3 = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
143272
+ function L2(t5) {
142250
143273
  return "function" == typeof t5 ? t5 : Array.isArray(t5) ? (e5) => {
142251
- for (const i5 of t5) {
142252
- if ("string" == typeof i5 && e5 === i5) return true;
142253
- if (i5 instanceof RegExp && i5.test(e5)) return true;
143274
+ for (const n5 of t5) {
143275
+ if ("string" == typeof n5 && e5 === n5) return true;
143276
+ if (n5 instanceof RegExp && n5.test(e5)) return true;
142254
143277
  }
142255
143278
  } : () => false;
142256
143279
  }
142257
- class D3 {
143280
+ class F3 {
142258
143281
  constructor(t5) {
142259
- if (this.options = t5, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t6, e5) => Z2(e5, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t6, e5) => Z2(e5, 16, "&#x") } }, this.addExternalEntities = j5, this.parseXml = L2, this.parseTextData = M2, this.resolveNameSpace = F3, this.buildAttributesMap = k5, this.isItStopNode = Y, this.replaceEntitiesValue = B3, this.readStopNodeData = W2, this.saveTextToParentTag = R, this.addChild = U2, this.ignoreAttributesFn = $2(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
143282
+ if (this.options = t5, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "\xA2" }, pound: { regex: /&(pound|#163);/g, val: "\xA3" }, yen: { regex: /&(yen|#165);/g, val: "\xA5" }, euro: { regex: /&(euro|#8364);/g, val: "\u20AC" }, copyright: { regex: /&(copy|#169);/g, val: "\xA9" }, reg: { regex: /&(reg|#174);/g, val: "\xAE" }, inr: { regex: /&(inr|#8377);/g, val: "\u20B9" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (t6, e5) => K2(e5, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (t6, e5) => K2(e5, 16, "&#x") } }, this.addExternalEntities = j5, this.parseXml = B3, this.parseTextData = M2, this.resolveNameSpace = _2, this.buildAttributesMap = U2, this.isItStopNode = X2, this.replaceEntitiesValue = Y, this.readStopNodeData = q5, this.saveTextToParentTag = G3, this.addChild = R, this.ignoreAttributesFn = L2(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.options.stopNodes && this.options.stopNodes.length > 0) {
142260
143283
  this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
142261
143284
  for (let t6 = 0; t6 < this.options.stopNodes.length; t6++) {
142262
143285
  const e5 = this.options.stopNodes[t6];
@@ -142267,316 +143290,323 @@ var require_fxp = __commonJS({
142267
143290
  }
142268
143291
  function j5(t5) {
142269
143292
  const e5 = Object.keys(t5);
142270
- for (let i5 = 0; i5 < e5.length; i5++) {
142271
- const n5 = e5[i5];
142272
- this.lastEntities[n5] = { regex: new RegExp("&" + n5 + ";", "g"), val: t5[n5] };
143293
+ for (let n5 = 0; n5 < e5.length; n5++) {
143294
+ const i5 = e5[n5], s5 = i5.replace(/[.\-+*:]/g, "\\.");
143295
+ this.lastEntities[i5] = { regex: new RegExp("&" + s5 + ";", "g"), val: t5[i5] };
142273
143296
  }
142274
143297
  }
142275
- function M2(t5, e5, i5, n5, s5, r5, o5) {
142276
- if (void 0 !== t5 && (this.options.trimValues && !n5 && (t5 = t5.trim()), t5.length > 0)) {
142277
- o5 || (t5 = this.replaceEntitiesValue(t5));
142278
- const n6 = this.options.tagValueProcessor(e5, t5, i5, s5, r5);
142279
- return null == n6 ? t5 : typeof n6 != typeof t5 || n6 !== t5 ? n6 : this.options.trimValues || t5.trim() === t5 ? q5(t5, this.options.parseTagValue, this.options.numberParseOptions) : t5;
143298
+ function M2(t5, e5, n5, i5, s5, r5, o5) {
143299
+ if (void 0 !== t5 && (this.options.trimValues && !i5 && (t5 = t5.trim()), t5.length > 0)) {
143300
+ o5 || (t5 = this.replaceEntitiesValue(t5, e5, n5));
143301
+ const i6 = this.options.tagValueProcessor(e5, t5, n5, s5, r5);
143302
+ return null == i6 ? t5 : typeof i6 != typeof t5 || i6 !== t5 ? i6 : this.options.trimValues || t5.trim() === t5 ? Z2(t5, this.options.parseTagValue, this.options.numberParseOptions) : t5;
142280
143303
  }
142281
143304
  }
142282
- function F3(t5) {
143305
+ function _2(t5) {
142283
143306
  if (this.options.removeNSPrefix) {
142284
- const e5 = t5.split(":"), i5 = "/" === t5.charAt(0) ? "/" : "";
143307
+ const e5 = t5.split(":"), n5 = "/" === t5.charAt(0) ? "/" : "";
142285
143308
  if ("xmlns" === e5[0]) return "";
142286
- 2 === e5.length && (t5 = i5 + e5[1]);
143309
+ 2 === e5.length && (t5 = n5 + e5[1]);
142287
143310
  }
142288
143311
  return t5;
142289
143312
  }
142290
- const _2 = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
142291
- function k5(t5, e5) {
143313
+ const k5 = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
143314
+ function U2(t5, e5, n5) {
142292
143315
  if (true !== this.options.ignoreAttributes && "string" == typeof t5) {
142293
- const i5 = s4(t5, _2), n5 = i5.length, r5 = {};
142294
- for (let t6 = 0; t6 < n5; t6++) {
142295
- const n6 = this.resolveNameSpace(i5[t6][1]);
142296
- if (this.ignoreAttributesFn(n6, e5)) continue;
142297
- let s5 = i5[t6][4], o5 = this.options.attributeNamePrefix + n6;
142298
- if (n6.length) if (this.options.transformAttributeName && (o5 = this.options.transformAttributeName(o5)), "__proto__" === o5 && (o5 = "#__proto__"), void 0 !== s5) {
142299
- this.options.trimValues && (s5 = s5.trim()), s5 = this.replaceEntitiesValue(s5);
142300
- const t7 = this.options.attributeValueProcessor(n6, s5, e5);
142301
- r5[o5] = null == t7 ? s5 : typeof t7 != typeof s5 || t7 !== s5 ? t7 : q5(s5, this.options.parseAttributeValue, this.options.numberParseOptions);
142302
- } else this.options.allowBooleanAttributes && (r5[o5] = true);
142303
- }
142304
- if (!Object.keys(r5).length) return;
143316
+ const i5 = s4(t5, k5), r5 = i5.length, o5 = {};
143317
+ for (let t6 = 0; t6 < r5; t6++) {
143318
+ const s5 = this.resolveNameSpace(i5[t6][1]);
143319
+ if (this.ignoreAttributesFn(s5, e5)) continue;
143320
+ let r6 = i5[t6][4], a5 = this.options.attributeNamePrefix + s5;
143321
+ if (s5.length) if (this.options.transformAttributeName && (a5 = this.options.transformAttributeName(a5)), "__proto__" === a5 && (a5 = "#__proto__"), void 0 !== r6) {
143322
+ this.options.trimValues && (r6 = r6.trim()), r6 = this.replaceEntitiesValue(r6, n5, e5);
143323
+ const t7 = this.options.attributeValueProcessor(s5, r6, e5);
143324
+ o5[a5] = null == t7 ? r6 : typeof t7 != typeof r6 || t7 !== r6 ? t7 : Z2(r6, this.options.parseAttributeValue, this.options.numberParseOptions);
143325
+ } else this.options.allowBooleanAttributes && (o5[a5] = true);
143326
+ }
143327
+ if (!Object.keys(o5).length) return;
142305
143328
  if (this.options.attributesGroupName) {
142306
143329
  const t6 = {};
142307
- return t6[this.options.attributesGroupName] = r5, t6;
143330
+ return t6[this.options.attributesGroupName] = o5, t6;
142308
143331
  }
142309
- return r5;
143332
+ return o5;
142310
143333
  }
142311
143334
  }
142312
- const L2 = function(t5) {
143335
+ const B3 = function(t5) {
142313
143336
  t5 = t5.replace(/\r\n?/g, "\n");
142314
- const e5 = new y3("!xml");
142315
- let i5 = e5, n5 = "", s5 = "";
142316
- const r5 = new w5(this.options.processEntities);
143337
+ const e5 = new I3("!xml");
143338
+ let n5 = e5, i5 = "", s5 = "";
143339
+ this.entityExpansionCount = 0, this.currentExpandedLength = 0;
143340
+ const r5 = new O(this.options.processEntities);
142317
143341
  for (let o5 = 0; o5 < t5.length; o5++) if ("<" === t5[o5]) if ("/" === t5[o5 + 1]) {
142318
- const e6 = G3(t5, ">", o5, "Closing Tag is not closed.");
143342
+ const e6 = z3(t5, ">", o5, "Closing Tag is not closed.");
142319
143343
  let r6 = t5.substring(o5 + 2, e6).trim();
142320
143344
  if (this.options.removeNSPrefix) {
142321
143345
  const t6 = r6.indexOf(":");
142322
143346
  -1 !== t6 && (r6 = r6.substr(t6 + 1));
142323
143347
  }
142324
- this.options.transformTagName && (r6 = this.options.transformTagName(r6)), i5 && (n5 = this.saveTextToParentTag(n5, i5, s5));
143348
+ this.options.transformTagName && (r6 = this.options.transformTagName(r6)), n5 && (i5 = this.saveTextToParentTag(i5, n5, s5));
142325
143349
  const a5 = s5.substring(s5.lastIndexOf(".") + 1);
142326
143350
  if (r6 && -1 !== this.options.unpairedTags.indexOf(r6)) throw new Error(`Unpaired tag can not be used as closing tag: </${r6}>`);
142327
143351
  let l5 = 0;
142328
- a5 && -1 !== this.options.unpairedTags.indexOf(a5) ? (l5 = s5.lastIndexOf(".", s5.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : l5 = s5.lastIndexOf("."), s5 = s5.substring(0, l5), i5 = this.tagsNodeStack.pop(), n5 = "", o5 = e6;
143352
+ a5 && -1 !== this.options.unpairedTags.indexOf(a5) ? (l5 = s5.lastIndexOf(".", s5.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : l5 = s5.lastIndexOf("."), s5 = s5.substring(0, l5), n5 = this.tagsNodeStack.pop(), i5 = "", o5 = e6;
142329
143353
  } else if ("?" === t5[o5 + 1]) {
142330
- let e6 = X2(t5, o5, false, "?>");
143354
+ let e6 = W2(t5, o5, false, "?>");
142331
143355
  if (!e6) throw new Error("Pi Tag is not closed.");
142332
- if (n5 = this.saveTextToParentTag(n5, i5, s5), this.options.ignoreDeclaration && "?xml" === e6.tagName || this.options.ignorePiTags) ;
143356
+ if (i5 = this.saveTextToParentTag(i5, n5, s5), this.options.ignoreDeclaration && "?xml" === e6.tagName || this.options.ignorePiTags) ;
142333
143357
  else {
142334
- const t6 = new y3(e6.tagName);
142335
- t6.add(this.options.textNodeName, ""), e6.tagName !== e6.tagExp && e6.attrExpPresent && (t6[":@"] = this.buildAttributesMap(e6.tagExp, s5)), this.addChild(i5, t6, s5, o5);
143358
+ const t6 = new I3(e6.tagName);
143359
+ t6.add(this.options.textNodeName, ""), e6.tagName !== e6.tagExp && e6.attrExpPresent && (t6[":@"] = this.buildAttributesMap(e6.tagExp, s5, e6.tagName)), this.addChild(n5, t6, s5, o5);
142336
143360
  }
142337
143361
  o5 = e6.closeIndex + 1;
142338
143362
  } else if ("!--" === t5.substr(o5 + 1, 3)) {
142339
- const e6 = G3(t5, "-->", o5 + 4, "Comment is not closed.");
143363
+ const e6 = z3(t5, "-->", o5 + 4, "Comment is not closed.");
142340
143364
  if (this.options.commentPropName) {
142341
143365
  const r6 = t5.substring(o5 + 4, e6 - 2);
142342
- n5 = this.saveTextToParentTag(n5, i5, s5), i5.add(this.options.commentPropName, [{ [this.options.textNodeName]: r6 }]);
143366
+ i5 = this.saveTextToParentTag(i5, n5, s5), n5.add(this.options.commentPropName, [{ [this.options.textNodeName]: r6 }]);
142343
143367
  }
142344
143368
  o5 = e6;
142345
143369
  } else if ("!D" === t5.substr(o5 + 1, 2)) {
142346
143370
  const e6 = r5.readDocType(t5, o5);
142347
143371
  this.docTypeEntities = e6.entities, o5 = e6.i;
142348
143372
  } else if ("![" === t5.substr(o5 + 1, 2)) {
142349
- const e6 = G3(t5, "]]>", o5, "CDATA is not closed.") - 2, r6 = t5.substring(o5 + 9, e6);
142350
- n5 = this.saveTextToParentTag(n5, i5, s5);
142351
- let a5 = this.parseTextData(r6, i5.tagname, s5, true, false, true, true);
142352
- null == a5 && (a5 = ""), this.options.cdataPropName ? i5.add(this.options.cdataPropName, [{ [this.options.textNodeName]: r6 }]) : i5.add(this.options.textNodeName, a5), o5 = e6 + 2;
143373
+ const e6 = z3(t5, "]]>", o5, "CDATA is not closed.") - 2, r6 = t5.substring(o5 + 9, e6);
143374
+ i5 = this.saveTextToParentTag(i5, n5, s5);
143375
+ let a5 = this.parseTextData(r6, n5.tagname, s5, true, false, true, true);
143376
+ null == a5 && (a5 = ""), this.options.cdataPropName ? n5.add(this.options.cdataPropName, [{ [this.options.textNodeName]: r6 }]) : n5.add(this.options.textNodeName, a5), o5 = e6 + 2;
142353
143377
  } else {
142354
- let r6 = X2(t5, o5, this.options.removeNSPrefix), a5 = r6.tagName;
143378
+ let r6 = W2(t5, o5, this.options.removeNSPrefix), a5 = r6.tagName;
142355
143379
  const l5 = r6.rawTagName;
142356
143380
  let u7 = r6.tagExp, h5 = r6.attrExpPresent, d6 = r6.closeIndex;
142357
143381
  if (this.options.transformTagName) {
142358
143382
  const t6 = this.options.transformTagName(a5);
142359
143383
  u7 === a5 && (u7 = t6), a5 = t6;
142360
143384
  }
142361
- i5 && n5 && "!xml" !== i5.tagname && (n5 = this.saveTextToParentTag(n5, i5, s5, false));
142362
- const p5 = i5;
142363
- p5 && -1 !== this.options.unpairedTags.indexOf(p5.tagname) && (i5 = this.tagsNodeStack.pop(), s5 = s5.substring(0, s5.lastIndexOf("."))), a5 !== e5.tagname && (s5 += s5 ? "." + a5 : a5);
143385
+ n5 && i5 && "!xml" !== n5.tagname && (i5 = this.saveTextToParentTag(i5, n5, s5, false));
143386
+ const p5 = n5;
143387
+ p5 && -1 !== this.options.unpairedTags.indexOf(p5.tagname) && (n5 = this.tagsNodeStack.pop(), s5 = s5.substring(0, s5.lastIndexOf("."))), a5 !== e5.tagname && (s5 += s5 ? "." + a5 : a5);
142364
143388
  const f5 = o5;
142365
143389
  if (this.isItStopNode(this.stopNodesExact, this.stopNodesWildcard, s5, a5)) {
142366
143390
  let e6 = "";
142367
143391
  if (u7.length > 0 && u7.lastIndexOf("/") === u7.length - 1) "/" === a5[a5.length - 1] ? (a5 = a5.substr(0, a5.length - 1), s5 = s5.substr(0, s5.length - 1), u7 = a5) : u7 = u7.substr(0, u7.length - 1), o5 = r6.closeIndex;
142368
143392
  else if (-1 !== this.options.unpairedTags.indexOf(a5)) o5 = r6.closeIndex;
142369
143393
  else {
142370
- const i6 = this.readStopNodeData(t5, l5, d6 + 1);
142371
- if (!i6) throw new Error(`Unexpected end of ${l5}`);
142372
- o5 = i6.i, e6 = i6.tagContent;
143394
+ const n6 = this.readStopNodeData(t5, l5, d6 + 1);
143395
+ if (!n6) throw new Error(`Unexpected end of ${l5}`);
143396
+ o5 = n6.i, e6 = n6.tagContent;
142373
143397
  }
142374
- const n6 = new y3(a5);
142375
- a5 !== u7 && h5 && (n6[":@"] = this.buildAttributesMap(u7, s5)), e6 && (e6 = this.parseTextData(e6, a5, s5, true, h5, true, true)), s5 = s5.substr(0, s5.lastIndexOf(".")), n6.add(this.options.textNodeName, e6), this.addChild(i5, n6, s5, f5);
143398
+ const i6 = new I3(a5);
143399
+ a5 !== u7 && h5 && (i6[":@"] = this.buildAttributesMap(u7, s5, a5)), e6 && (e6 = this.parseTextData(e6, a5, s5, true, h5, true, true)), s5 = s5.substr(0, s5.lastIndexOf(".")), i6.add(this.options.textNodeName, e6), this.addChild(n5, i6, s5, f5);
142376
143400
  } else {
142377
143401
  if (u7.length > 0 && u7.lastIndexOf("/") === u7.length - 1) {
142378
143402
  if ("/" === a5[a5.length - 1] ? (a5 = a5.substr(0, a5.length - 1), s5 = s5.substr(0, s5.length - 1), u7 = a5) : u7 = u7.substr(0, u7.length - 1), this.options.transformTagName) {
142379
143403
  const t7 = this.options.transformTagName(a5);
142380
143404
  u7 === a5 && (u7 = t7), a5 = t7;
142381
143405
  }
142382
- const t6 = new y3(a5);
142383
- a5 !== u7 && h5 && (t6[":@"] = this.buildAttributesMap(u7, s5)), this.addChild(i5, t6, s5, f5), s5 = s5.substr(0, s5.lastIndexOf("."));
143406
+ const t6 = new I3(a5);
143407
+ a5 !== u7 && h5 && (t6[":@"] = this.buildAttributesMap(u7, s5, a5)), this.addChild(n5, t6, s5, f5), s5 = s5.substr(0, s5.lastIndexOf("."));
142384
143408
  } else {
142385
- const t6 = new y3(a5);
142386
- this.tagsNodeStack.push(i5), a5 !== u7 && h5 && (t6[":@"] = this.buildAttributesMap(u7, s5)), this.addChild(i5, t6, s5, f5), i5 = t6;
143409
+ const t6 = new I3(a5);
143410
+ this.tagsNodeStack.push(n5), a5 !== u7 && h5 && (t6[":@"] = this.buildAttributesMap(u7, s5, a5)), this.addChild(n5, t6, s5, f5), n5 = t6;
142387
143411
  }
142388
- n5 = "", o5 = d6;
143412
+ i5 = "", o5 = d6;
142389
143413
  }
142390
143414
  }
142391
- else n5 += t5[o5];
143415
+ else i5 += t5[o5];
142392
143416
  return e5.child;
142393
143417
  };
142394
- function U2(t5, e5, i5, n5) {
142395
- this.options.captureMetaData || (n5 = void 0);
142396
- const s5 = this.options.updateTag(e5.tagname, i5, e5[":@"]);
142397
- false === s5 || ("string" == typeof s5 ? (e5.tagname = s5, t5.addChild(e5, n5)) : t5.addChild(e5, n5));
142398
- }
142399
- const B3 = function(t5) {
142400
- if (this.options.processEntities) {
142401
- for (let e5 in this.docTypeEntities) {
142402
- const i5 = this.docTypeEntities[e5];
142403
- t5 = t5.replace(i5.regx, i5.val);
142404
- }
142405
- for (let e5 in this.lastEntities) {
142406
- const i5 = this.lastEntities[e5];
142407
- t5 = t5.replace(i5.regex, i5.val);
142408
- }
142409
- if (this.options.htmlEntities) for (let e5 in this.htmlEntities) {
142410
- const i5 = this.htmlEntities[e5];
142411
- t5 = t5.replace(i5.regex, i5.val);
142412
- }
142413
- t5 = t5.replace(this.ampEntity.regex, this.ampEntity.val);
142414
- }
142415
- return t5;
142416
- };
142417
- function R(t5, e5, i5, n5) {
142418
- return t5 && (void 0 === n5 && (n5 = 0 === e5.child.length), void 0 !== (t5 = this.parseTextData(t5, e5.tagname, i5, false, !!e5[":@"] && 0 !== Object.keys(e5[":@"]).length, n5)) && "" !== t5 && e5.add(this.options.textNodeName, t5), t5 = ""), t5;
142419
- }
142420
- function Y(t5, e5, i5, n5) {
142421
- return !(!e5 || !e5.has(n5)) || !(!t5 || !t5.has(i5));
142422
- }
142423
- function G3(t5, e5, i5, n5) {
142424
- const s5 = t5.indexOf(e5, i5);
142425
- if (-1 === s5) throw new Error(n5);
143418
+ function R(t5, e5, n5, i5) {
143419
+ this.options.captureMetaData || (i5 = void 0);
143420
+ const s5 = this.options.updateTag(e5.tagname, n5, e5[":@"]);
143421
+ false === s5 || ("string" == typeof s5 ? (e5.tagname = s5, t5.addChild(e5, i5)) : t5.addChild(e5, i5));
143422
+ }
143423
+ const Y = function(t5, e5, n5) {
143424
+ if (-1 === t5.indexOf("&")) return t5;
143425
+ const i5 = this.options.processEntities;
143426
+ if (!i5.enabled) return t5;
143427
+ if (i5.allowedTags && !i5.allowedTags.includes(e5)) return t5;
143428
+ if (i5.tagFilter && !i5.tagFilter(e5, n5)) return t5;
143429
+ for (let e6 in this.docTypeEntities) {
143430
+ const n6 = this.docTypeEntities[e6], s5 = t5.match(n6.regx);
143431
+ if (s5) {
143432
+ if (this.entityExpansionCount += s5.length, i5.maxTotalExpansions && this.entityExpansionCount > i5.maxTotalExpansions) throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i5.maxTotalExpansions}`);
143433
+ const e7 = t5.length;
143434
+ if (t5 = t5.replace(n6.regx, n6.val), i5.maxExpandedLength && (this.currentExpandedLength += t5.length - e7, this.currentExpandedLength > i5.maxExpandedLength)) throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${i5.maxExpandedLength}`);
143435
+ }
143436
+ }
143437
+ if (-1 === t5.indexOf("&")) return t5;
143438
+ for (let e6 in this.lastEntities) {
143439
+ const n6 = this.lastEntities[e6];
143440
+ t5 = t5.replace(n6.regex, n6.val);
143441
+ }
143442
+ if (-1 === t5.indexOf("&")) return t5;
143443
+ if (this.options.htmlEntities) for (let e6 in this.htmlEntities) {
143444
+ const n6 = this.htmlEntities[e6];
143445
+ t5 = t5.replace(n6.regex, n6.val);
143446
+ }
143447
+ return t5.replace(this.ampEntity.regex, this.ampEntity.val);
143448
+ };
143449
+ function G3(t5, e5, n5, i5) {
143450
+ return t5 && (void 0 === i5 && (i5 = 0 === e5.child.length), void 0 !== (t5 = this.parseTextData(t5, e5.tagname, n5, false, !!e5[":@"] && 0 !== Object.keys(e5[":@"]).length, i5)) && "" !== t5 && e5.add(this.options.textNodeName, t5), t5 = ""), t5;
143451
+ }
143452
+ function X2(t5, e5, n5, i5) {
143453
+ return !(!e5 || !e5.has(i5)) || !(!t5 || !t5.has(n5));
143454
+ }
143455
+ function z3(t5, e5, n5, i5) {
143456
+ const s5 = t5.indexOf(e5, n5);
143457
+ if (-1 === s5) throw new Error(i5);
142426
143458
  return s5 + e5.length - 1;
142427
143459
  }
142428
- function X2(t5, e5, i5, n5 = ">") {
142429
- const s5 = (function(t6, e6, i6 = ">") {
142430
- let n6, s6 = "";
143460
+ function W2(t5, e5, n5, i5 = ">") {
143461
+ const s5 = (function(t6, e6, n6 = ">") {
143462
+ let i6, s6 = "";
142431
143463
  for (let r6 = e6; r6 < t6.length; r6++) {
142432
143464
  let e7 = t6[r6];
142433
- if (n6) e7 === n6 && (n6 = "");
142434
- else if ('"' === e7 || "'" === e7) n6 = e7;
142435
- else if (e7 === i6[0]) {
142436
- if (!i6[1]) return { data: s6, index: r6 };
142437
- if (t6[r6 + 1] === i6[1]) return { data: s6, index: r6 };
143465
+ if (i6) e7 === i6 && (i6 = "");
143466
+ else if ('"' === e7 || "'" === e7) i6 = e7;
143467
+ else if (e7 === n6[0]) {
143468
+ if (!n6[1]) return { data: s6, index: r6 };
143469
+ if (t6[r6 + 1] === n6[1]) return { data: s6, index: r6 };
142438
143470
  } else " " === e7 && (e7 = " ");
142439
143471
  s6 += e7;
142440
143472
  }
142441
- })(t5, e5 + 1, n5);
143473
+ })(t5, e5 + 1, i5);
142442
143474
  if (!s5) return;
142443
143475
  let r5 = s5.data;
142444
143476
  const o5 = s5.index, a5 = r5.search(/\s/);
142445
143477
  let l5 = r5, u7 = true;
142446
143478
  -1 !== a5 && (l5 = r5.substring(0, a5), r5 = r5.substring(a5 + 1).trimStart());
142447
143479
  const h5 = l5;
142448
- if (i5) {
143480
+ if (n5) {
142449
143481
  const t6 = l5.indexOf(":");
142450
143482
  -1 !== t6 && (l5 = l5.substr(t6 + 1), u7 = l5 !== s5.data.substr(t6 + 1));
142451
143483
  }
142452
143484
  return { tagName: l5, tagExp: r5, closeIndex: o5, attrExpPresent: u7, rawTagName: h5 };
142453
143485
  }
142454
- function W2(t5, e5, i5) {
142455
- const n5 = i5;
143486
+ function q5(t5, e5, n5) {
143487
+ const i5 = n5;
142456
143488
  let s5 = 1;
142457
- for (; i5 < t5.length; i5++) if ("<" === t5[i5]) if ("/" === t5[i5 + 1]) {
142458
- const r5 = G3(t5, ">", i5, `${e5} is not closed`);
142459
- if (t5.substring(i5 + 2, r5).trim() === e5 && (s5--, 0 === s5)) return { tagContent: t5.substring(n5, i5), i: r5 };
142460
- i5 = r5;
142461
- } else if ("?" === t5[i5 + 1]) i5 = G3(t5, "?>", i5 + 1, "StopNode is not closed.");
142462
- else if ("!--" === t5.substr(i5 + 1, 3)) i5 = G3(t5, "-->", i5 + 3, "StopNode is not closed.");
142463
- else if ("![" === t5.substr(i5 + 1, 2)) i5 = G3(t5, "]]>", i5, "StopNode is not closed.") - 2;
143489
+ for (; n5 < t5.length; n5++) if ("<" === t5[n5]) if ("/" === t5[n5 + 1]) {
143490
+ const r5 = z3(t5, ">", n5, `${e5} is not closed`);
143491
+ if (t5.substring(n5 + 2, r5).trim() === e5 && (s5--, 0 === s5)) return { tagContent: t5.substring(i5, n5), i: r5 };
143492
+ n5 = r5;
143493
+ } else if ("?" === t5[n5 + 1]) n5 = z3(t5, "?>", n5 + 1, "StopNode is not closed.");
143494
+ else if ("!--" === t5.substr(n5 + 1, 3)) n5 = z3(t5, "-->", n5 + 3, "StopNode is not closed.");
143495
+ else if ("![" === t5.substr(n5 + 1, 2)) n5 = z3(t5, "]]>", n5, "StopNode is not closed.") - 2;
142464
143496
  else {
142465
- const n6 = X2(t5, i5, ">");
142466
- n6 && ((n6 && n6.tagName) === e5 && "/" !== n6.tagExp[n6.tagExp.length - 1] && s5++, i5 = n6.closeIndex);
143497
+ const i6 = W2(t5, n5, ">");
143498
+ i6 && ((i6 && i6.tagName) === e5 && "/" !== i6.tagExp[i6.tagExp.length - 1] && s5++, n5 = i6.closeIndex);
142467
143499
  }
142468
143500
  }
142469
- function q5(t5, e5, i5) {
143501
+ function Z2(t5, e5, n5) {
142470
143502
  if (e5 && "string" == typeof t5) {
142471
143503
  const e6 = t5.trim();
142472
143504
  return "true" === e6 || "false" !== e6 && (function(t6, e7 = {}) {
142473
- if (e7 = Object.assign({}, C3, e7), !t6 || "string" != typeof t6) return t6;
142474
- let i6 = t6.trim();
142475
- if (void 0 !== e7.skipLike && e7.skipLike.test(i6)) return t6;
143505
+ if (e7 = Object.assign({}, V, e7), !t6 || "string" != typeof t6) return t6;
143506
+ let n6 = t6.trim();
143507
+ if (void 0 !== e7.skipLike && e7.skipLike.test(n6)) return t6;
142476
143508
  if ("0" === t6) return 0;
142477
- if (e7.hex && A2.test(i6)) return (function(t7) {
143509
+ if (e7.hex && C3.test(n6)) return (function(t7) {
142478
143510
  if (parseInt) return parseInt(t7, 16);
142479
143511
  if (Number.parseInt) return Number.parseInt(t7, 16);
142480
143512
  if (window && window.parseInt) return window.parseInt(t7, 16);
142481
143513
  throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
142482
- })(i6);
142483
- if (-1 !== i6.search(/.+[eE].+/)) return (function(t7, e8, i7) {
142484
- if (!i7.eNotation) return t7;
142485
- const n6 = e8.match(V);
142486
- if (n6) {
142487
- let s5 = n6[1] || "";
142488
- const r5 = -1 === n6[3].indexOf("e") ? "E" : "e", o5 = n6[2], a5 = s5 ? t7[o5.length + 1] === r5 : t7[o5.length] === r5;
142489
- return o5.length > 1 && a5 ? t7 : 1 !== o5.length || !n6[3].startsWith(`.${r5}`) && n6[3][0] !== r5 ? i7.leadingZeros && !a5 ? (e8 = (n6[1] || "") + n6[3], Number(e8)) : t7 : Number(e8);
143514
+ })(n6);
143515
+ if (-1 !== n6.search(/.+[eE].+/)) return (function(t7, e8, n7) {
143516
+ if (!n7.eNotation) return t7;
143517
+ const i6 = e8.match(D3);
143518
+ if (i6) {
143519
+ let s5 = i6[1] || "";
143520
+ const r5 = -1 === i6[3].indexOf("e") ? "E" : "e", o5 = i6[2], a5 = s5 ? t7[o5.length + 1] === r5 : t7[o5.length] === r5;
143521
+ return o5.length > 1 && a5 ? t7 : 1 !== o5.length || !i6[3].startsWith(`.${r5}`) && i6[3][0] !== r5 ? n7.leadingZeros && !a5 ? (e8 = (i6[1] || "") + i6[3], Number(e8)) : t7 : Number(e8);
142490
143522
  }
142491
143523
  return t7;
142492
- })(t6, i6, e7);
143524
+ })(t6, n6, e7);
142493
143525
  {
142494
- const s5 = S2.exec(i6);
143526
+ const s5 = $2.exec(n6);
142495
143527
  if (s5) {
142496
143528
  const r5 = s5[1] || "", o5 = s5[2];
142497
- let a5 = (n5 = s5[3]) && -1 !== n5.indexOf(".") ? ("." === (n5 = n5.replace(/0+$/, "")) ? n5 = "0" : "." === n5[0] ? n5 = "0" + n5 : "." === n5[n5.length - 1] && (n5 = n5.substring(0, n5.length - 1)), n5) : n5;
143529
+ let a5 = (i5 = s5[3]) && -1 !== i5.indexOf(".") ? ("." === (i5 = i5.replace(/0+$/, "")) ? i5 = "0" : "." === i5[0] ? i5 = "0" + i5 : "." === i5[i5.length - 1] && (i5 = i5.substring(0, i5.length - 1)), i5) : i5;
142498
143530
  const l5 = r5 ? "." === t6[o5.length + 1] : "." === t6[o5.length];
142499
143531
  if (!e7.leadingZeros && (o5.length > 1 || 1 === o5.length && !l5)) return t6;
142500
143532
  {
142501
- const n6 = Number(i6), s6 = String(n6);
142502
- if (0 === n6 || -0 === n6) return n6;
142503
- if (-1 !== s6.search(/[eE]/)) return e7.eNotation ? n6 : t6;
142504
- if (-1 !== i6.indexOf(".")) return "0" === s6 || s6 === a5 || s6 === `${r5}${a5}` ? n6 : t6;
142505
- let l6 = o5 ? a5 : i6;
142506
- return o5 ? l6 === s6 || r5 + l6 === s6 ? n6 : t6 : l6 === s6 || l6 === r5 + s6 ? n6 : t6;
143533
+ const i6 = Number(n6), s6 = String(i6);
143534
+ if (0 === i6 || -0 === i6) return i6;
143535
+ if (-1 !== s6.search(/[eE]/)) return e7.eNotation ? i6 : t6;
143536
+ if (-1 !== n6.indexOf(".")) return "0" === s6 || s6 === a5 || s6 === `${r5}${a5}` ? i6 : t6;
143537
+ let l6 = o5 ? a5 : n6;
143538
+ return o5 ? l6 === s6 || r5 + l6 === s6 ? i6 : t6 : l6 === s6 || l6 === r5 + s6 ? i6 : t6;
142507
143539
  }
142508
143540
  }
142509
143541
  return t6;
142510
143542
  }
142511
- var n5;
142512
- })(t5, i5);
143543
+ var i5;
143544
+ })(t5, n5);
142513
143545
  }
142514
143546
  return void 0 !== t5 ? t5 : "";
142515
143547
  }
142516
- function Z2(t5, e5, i5) {
142517
- const n5 = Number.parseInt(t5, e5);
142518
- return n5 >= 0 && n5 <= 1114111 ? String.fromCodePoint(n5) : i5 + t5 + ";";
143548
+ function K2(t5, e5, n5) {
143549
+ const i5 = Number.parseInt(t5, e5);
143550
+ return i5 >= 0 && i5 <= 1114111 ? String.fromCodePoint(i5) : n5 + t5 + ";";
142519
143551
  }
142520
- const K2 = y3.getMetaDataSymbol();
142521
- function Q2(t5, e5) {
142522
- return z3(t5, e5);
143552
+ const Q2 = I3.getMetaDataSymbol();
143553
+ function J3(t5, e5) {
143554
+ return H2(t5, e5);
142523
143555
  }
142524
- function z3(t5, e5, i5) {
142525
- let n5;
143556
+ function H2(t5, e5, n5) {
143557
+ let i5;
142526
143558
  const s5 = {};
142527
143559
  for (let r5 = 0; r5 < t5.length; r5++) {
142528
- const o5 = t5[r5], a5 = J3(o5);
143560
+ const o5 = t5[r5], a5 = tt(o5);
142529
143561
  let l5 = "";
142530
- if (l5 = void 0 === i5 ? a5 : i5 + "." + a5, a5 === e5.textNodeName) void 0 === n5 ? n5 = o5[a5] : n5 += "" + o5[a5];
143562
+ if (l5 = void 0 === n5 ? a5 : n5 + "." + a5, a5 === e5.textNodeName) void 0 === i5 ? i5 = o5[a5] : i5 += "" + o5[a5];
142531
143563
  else {
142532
143564
  if (void 0 === a5) continue;
142533
143565
  if (o5[a5]) {
142534
- let t6 = z3(o5[a5], e5, l5);
142535
- const i6 = tt(t6, e5);
142536
- void 0 !== o5[K2] && (t6[K2] = o5[K2]), o5[":@"] ? H2(t6, o5[":@"], l5, e5) : 1 !== Object.keys(t6).length || void 0 === t6[e5.textNodeName] || e5.alwaysCreateTextNode ? 0 === Object.keys(t6).length && (e5.alwaysCreateTextNode ? t6[e5.textNodeName] = "" : t6 = "") : t6 = t6[e5.textNodeName], void 0 !== s5[a5] && s5.hasOwnProperty(a5) ? (Array.isArray(s5[a5]) || (s5[a5] = [s5[a5]]), s5[a5].push(t6)) : e5.isArray(a5, l5, i6) ? s5[a5] = [t6] : s5[a5] = t6;
143566
+ let t6 = H2(o5[a5], e5, l5);
143567
+ const n6 = nt(t6, e5);
143568
+ void 0 !== o5[Q2] && (t6[Q2] = o5[Q2]), o5[":@"] ? et(t6, o5[":@"], l5, e5) : 1 !== Object.keys(t6).length || void 0 === t6[e5.textNodeName] || e5.alwaysCreateTextNode ? 0 === Object.keys(t6).length && (e5.alwaysCreateTextNode ? t6[e5.textNodeName] = "" : t6 = "") : t6 = t6[e5.textNodeName], void 0 !== s5[a5] && s5.hasOwnProperty(a5) ? (Array.isArray(s5[a5]) || (s5[a5] = [s5[a5]]), s5[a5].push(t6)) : e5.isArray(a5, l5, n6) ? s5[a5] = [t6] : s5[a5] = t6;
142537
143569
  }
142538
143570
  }
142539
143571
  }
142540
- return "string" == typeof n5 ? n5.length > 0 && (s5[e5.textNodeName] = n5) : void 0 !== n5 && (s5[e5.textNodeName] = n5), s5;
143572
+ return "string" == typeof i5 ? i5.length > 0 && (s5[e5.textNodeName] = i5) : void 0 !== i5 && (s5[e5.textNodeName] = i5), s5;
142541
143573
  }
142542
- function J3(t5) {
143574
+ function tt(t5) {
142543
143575
  const e5 = Object.keys(t5);
142544
143576
  for (let t6 = 0; t6 < e5.length; t6++) {
142545
- const i5 = e5[t6];
142546
- if (":@" !== i5) return i5;
143577
+ const n5 = e5[t6];
143578
+ if (":@" !== n5) return n5;
142547
143579
  }
142548
143580
  }
142549
- function H2(t5, e5, i5, n5) {
143581
+ function et(t5, e5, n5, i5) {
142550
143582
  if (e5) {
142551
143583
  const s5 = Object.keys(e5), r5 = s5.length;
142552
143584
  for (let o5 = 0; o5 < r5; o5++) {
142553
143585
  const r6 = s5[o5];
142554
- n5.isArray(r6, i5 + "." + r6, true, true) ? t5[r6] = [e5[r6]] : t5[r6] = e5[r6];
143586
+ i5.isArray(r6, n5 + "." + r6, true, true) ? t5[r6] = [e5[r6]] : t5[r6] = e5[r6];
142555
143587
  }
142556
143588
  }
142557
143589
  }
142558
- function tt(t5, e5) {
142559
- const { textNodeName: i5 } = e5, n5 = Object.keys(t5).length;
142560
- return 0 === n5 || !(1 !== n5 || !t5[i5] && "boolean" != typeof t5[i5] && 0 !== t5[i5]);
143590
+ function nt(t5, e5) {
143591
+ const { textNodeName: n5 } = e5, i5 = Object.keys(t5).length;
143592
+ return 0 === i5 || !(1 !== i5 || !t5[n5] && "boolean" != typeof t5[n5] && 0 !== t5[n5]);
142561
143593
  }
142562
- class et {
143594
+ class it {
142563
143595
  constructor(t5) {
142564
- this.externalEntities = {}, this.options = (function(t6) {
142565
- return Object.assign({}, v8, t6);
142566
- })(t5);
143596
+ this.externalEntities = {}, this.options = w5(t5);
142567
143597
  }
142568
143598
  parse(t5, e5) {
142569
143599
  if ("string" != typeof t5 && t5.toString) t5 = t5.toString();
142570
143600
  else if ("string" != typeof t5) throw new Error("XML data is accepted in String or Bytes[] form.");
142571
143601
  if (e5) {
142572
143602
  true === e5 && (e5 = {});
142573
- const i6 = a4(t5, e5);
142574
- if (true !== i6) throw Error(`${i6.err.msg}:${i6.err.line}:${i6.err.col}`);
143603
+ const n6 = a4(t5, e5);
143604
+ if (true !== n6) throw Error(`${n6.err.msg}:${n6.err.line}:${n6.err.col}`);
142575
143605
  }
142576
- const i5 = new D3(this.options);
142577
- i5.addExternalEntities(this.externalEntities);
142578
- const n5 = i5.parseXml(t5);
142579
- return this.options.preserveOrder || void 0 === n5 ? n5 : Q2(n5, this.options);
143606
+ const n5 = new F3(this.options);
143607
+ n5.addExternalEntities(this.externalEntities);
143608
+ const i5 = n5.parseXml(t5);
143609
+ return this.options.preserveOrder || void 0 === i5 ? i5 : J3(i5, this.options);
142580
143610
  }
142581
143611
  addEntity(t5, e5) {
142582
143612
  if (-1 !== e5.indexOf("&")) throw new Error("Entity value can't have '&'");
@@ -142585,159 +143615,159 @@ var require_fxp = __commonJS({
142585
143615
  this.externalEntities[t5] = e5;
142586
143616
  }
142587
143617
  static getMetaDataSymbol() {
142588
- return y3.getMetaDataSymbol();
143618
+ return I3.getMetaDataSymbol();
142589
143619
  }
142590
143620
  }
142591
- function it(t5, e5) {
142592
- let i5 = "";
142593
- return e5.format && e5.indentBy.length > 0 && (i5 = "\n"), nt(t5, e5, "", i5);
143621
+ function st(t5, e5) {
143622
+ let n5 = "";
143623
+ return e5.format && e5.indentBy.length > 0 && (n5 = "\n"), rt(t5, e5, "", n5);
142594
143624
  }
142595
- function nt(t5, e5, i5, n5) {
143625
+ function rt(t5, e5, n5, i5) {
142596
143626
  let s5 = "", r5 = false;
142597
143627
  for (let o5 = 0; o5 < t5.length; o5++) {
142598
- const a5 = t5[o5], l5 = st(a5);
143628
+ const a5 = t5[o5], l5 = ot(a5);
142599
143629
  if (void 0 === l5) continue;
142600
143630
  let u7 = "";
142601
- if (u7 = 0 === i5.length ? l5 : `${i5}.${l5}`, l5 === e5.textNodeName) {
143631
+ if (u7 = 0 === n5.length ? l5 : `${n5}.${l5}`, l5 === e5.textNodeName) {
142602
143632
  let t6 = a5[l5];
142603
- ot(u7, e5) || (t6 = e5.tagValueProcessor(l5, t6), t6 = at(t6, e5)), r5 && (s5 += n5), s5 += t6, r5 = false;
143633
+ lt(u7, e5) || (t6 = e5.tagValueProcessor(l5, t6), t6 = ut(t6, e5)), r5 && (s5 += i5), s5 += t6, r5 = false;
142604
143634
  continue;
142605
143635
  }
142606
143636
  if (l5 === e5.cdataPropName) {
142607
- r5 && (s5 += n5), s5 += `<![CDATA[${a5[l5][0][e5.textNodeName]}]]>`, r5 = false;
143637
+ r5 && (s5 += i5), s5 += `<![CDATA[${a5[l5][0][e5.textNodeName]}]]>`, r5 = false;
142608
143638
  continue;
142609
143639
  }
142610
143640
  if (l5 === e5.commentPropName) {
142611
- s5 += n5 + `<!--${a5[l5][0][e5.textNodeName]}-->`, r5 = true;
143641
+ s5 += i5 + `<!--${a5[l5][0][e5.textNodeName]}-->`, r5 = true;
142612
143642
  continue;
142613
143643
  }
142614
143644
  if ("?" === l5[0]) {
142615
- const t6 = rt(a5[":@"], e5), i6 = "?xml" === l5 ? "" : n5;
143645
+ const t6 = at(a5[":@"], e5), n6 = "?xml" === l5 ? "" : i5;
142616
143646
  let o6 = a5[l5][0][e5.textNodeName];
142617
- o6 = 0 !== o6.length ? " " + o6 : "", s5 += i6 + `<${l5}${o6}${t6}?>`, r5 = true;
143647
+ o6 = 0 !== o6.length ? " " + o6 : "", s5 += n6 + `<${l5}${o6}${t6}?>`, r5 = true;
142618
143648
  continue;
142619
143649
  }
142620
- let h5 = n5;
143650
+ let h5 = i5;
142621
143651
  "" !== h5 && (h5 += e5.indentBy);
142622
- const d6 = n5 + `<${l5}${rt(a5[":@"], e5)}`, p5 = nt(a5[l5], e5, u7, h5);
142623
- -1 !== e5.unpairedTags.indexOf(l5) ? e5.suppressUnpairedNode ? s5 += d6 + ">" : s5 += d6 + "/>" : p5 && 0 !== p5.length || !e5.suppressEmptyNode ? p5 && p5.endsWith(">") ? s5 += d6 + `>${p5}${n5}</${l5}>` : (s5 += d6 + ">", p5 && "" !== n5 && (p5.includes("/>") || p5.includes("</")) ? s5 += n5 + e5.indentBy + p5 + n5 : s5 += p5, s5 += `</${l5}>`) : s5 += d6 + "/>", r5 = true;
143652
+ const d6 = i5 + `<${l5}${at(a5[":@"], e5)}`, p5 = rt(a5[l5], e5, u7, h5);
143653
+ -1 !== e5.unpairedTags.indexOf(l5) ? e5.suppressUnpairedNode ? s5 += d6 + ">" : s5 += d6 + "/>" : p5 && 0 !== p5.length || !e5.suppressEmptyNode ? p5 && p5.endsWith(">") ? s5 += d6 + `>${p5}${i5}</${l5}>` : (s5 += d6 + ">", p5 && "" !== i5 && (p5.includes("/>") || p5.includes("</")) ? s5 += i5 + e5.indentBy + p5 + i5 : s5 += p5, s5 += `</${l5}>`) : s5 += d6 + "/>", r5 = true;
142624
143654
  }
142625
143655
  return s5;
142626
143656
  }
142627
- function st(t5) {
143657
+ function ot(t5) {
142628
143658
  const e5 = Object.keys(t5);
142629
- for (let i5 = 0; i5 < e5.length; i5++) {
142630
- const n5 = e5[i5];
142631
- if (t5.hasOwnProperty(n5) && ":@" !== n5) return n5;
143659
+ for (let n5 = 0; n5 < e5.length; n5++) {
143660
+ const i5 = e5[n5];
143661
+ if (t5.hasOwnProperty(i5) && ":@" !== i5) return i5;
142632
143662
  }
142633
143663
  }
142634
- function rt(t5, e5) {
142635
- let i5 = "";
142636
- if (t5 && !e5.ignoreAttributes) for (let n5 in t5) {
142637
- if (!t5.hasOwnProperty(n5)) continue;
142638
- let s5 = e5.attributeValueProcessor(n5, t5[n5]);
142639
- s5 = at(s5, e5), true === s5 && e5.suppressBooleanAttributes ? i5 += ` ${n5.substr(e5.attributeNamePrefix.length)}` : i5 += ` ${n5.substr(e5.attributeNamePrefix.length)}="${s5}"`;
143664
+ function at(t5, e5) {
143665
+ let n5 = "";
143666
+ if (t5 && !e5.ignoreAttributes) for (let i5 in t5) {
143667
+ if (!t5.hasOwnProperty(i5)) continue;
143668
+ let s5 = e5.attributeValueProcessor(i5, t5[i5]);
143669
+ s5 = ut(s5, e5), true === s5 && e5.suppressBooleanAttributes ? n5 += ` ${i5.substr(e5.attributeNamePrefix.length)}` : n5 += ` ${i5.substr(e5.attributeNamePrefix.length)}="${s5}"`;
142640
143670
  }
142641
- return i5;
143671
+ return n5;
142642
143672
  }
142643
- function ot(t5, e5) {
142644
- let i5 = (t5 = t5.substr(0, t5.length - e5.textNodeName.length - 1)).substr(t5.lastIndexOf(".") + 1);
142645
- for (let n5 in e5.stopNodes) if (e5.stopNodes[n5] === t5 || e5.stopNodes[n5] === "*." + i5) return true;
143673
+ function lt(t5, e5) {
143674
+ let n5 = (t5 = t5.substr(0, t5.length - e5.textNodeName.length - 1)).substr(t5.lastIndexOf(".") + 1);
143675
+ for (let i5 in e5.stopNodes) if (e5.stopNodes[i5] === t5 || e5.stopNodes[i5] === "*." + n5) return true;
142646
143676
  return false;
142647
143677
  }
142648
- function at(t5, e5) {
142649
- if (t5 && t5.length > 0 && e5.processEntities) for (let i5 = 0; i5 < e5.entities.length; i5++) {
142650
- const n5 = e5.entities[i5];
142651
- t5 = t5.replace(n5.regex, n5.val);
143678
+ function ut(t5, e5) {
143679
+ if (t5 && t5.length > 0 && e5.processEntities) for (let n5 = 0; n5 < e5.entities.length; n5++) {
143680
+ const i5 = e5.entities[n5];
143681
+ t5 = t5.replace(i5.regex, i5.val);
142652
143682
  }
142653
143683
  return t5;
142654
143684
  }
142655
- const lt = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t5, e5) {
143685
+ const ht = { attributeNamePrefix: "@_", attributesGroupName: false, textNodeName: "#text", ignoreAttributes: true, cdataPropName: false, format: false, indentBy: " ", suppressEmptyNode: false, suppressUnpairedNode: true, suppressBooleanAttributes: true, tagValueProcessor: function(t5, e5) {
142656
143686
  return e5;
142657
143687
  }, attributeValueProcessor: function(t5, e5) {
142658
143688
  return e5;
142659
143689
  }, preserveOrder: false, commentPropName: false, unpairedTags: [], entities: [{ regex: new RegExp("&", "g"), val: "&amp;" }, { regex: new RegExp(">", "g"), val: "&gt;" }, { regex: new RegExp("<", "g"), val: "&lt;" }, { regex: new RegExp("'", "g"), val: "&apos;" }, { regex: new RegExp('"', "g"), val: "&quot;" }], processEntities: true, stopNodes: [], oneListGroup: false };
142660
- function ut(t5) {
142661
- this.options = Object.assign({}, lt, t5), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
143690
+ function dt(t5) {
143691
+ this.options = Object.assign({}, ht, t5), true === this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function() {
142662
143692
  return false;
142663
- } : (this.ignoreAttributesFn = $2(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = pt), this.processTextOrObjNode = ht, this.options.format ? (this.indentate = dt, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
143693
+ } : (this.ignoreAttributesFn = L2(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = ct), this.processTextOrObjNode = pt, this.options.format ? (this.indentate = ft, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
142664
143694
  return "";
142665
143695
  }, this.tagEndChar = ">", this.newLine = "");
142666
143696
  }
142667
- function ht(t5, e5, i5, n5) {
142668
- const s5 = this.j2x(t5, i5 + 1, n5.concat(e5));
142669
- return void 0 !== t5[this.options.textNodeName] && 1 === Object.keys(t5).length ? this.buildTextValNode(t5[this.options.textNodeName], e5, s5.attrStr, i5) : this.buildObjectNode(s5.val, e5, s5.attrStr, i5);
143697
+ function pt(t5, e5, n5, i5) {
143698
+ const s5 = this.j2x(t5, n5 + 1, i5.concat(e5));
143699
+ return void 0 !== t5[this.options.textNodeName] && 1 === Object.keys(t5).length ? this.buildTextValNode(t5[this.options.textNodeName], e5, s5.attrStr, n5) : this.buildObjectNode(s5.val, e5, s5.attrStr, n5);
142670
143700
  }
142671
- function dt(t5) {
143701
+ function ft(t5) {
142672
143702
  return this.options.indentBy.repeat(t5);
142673
143703
  }
142674
- function pt(t5) {
143704
+ function ct(t5) {
142675
143705
  return !(!t5.startsWith(this.options.attributeNamePrefix) || t5 === this.options.textNodeName) && t5.substr(this.attrPrefixLen);
142676
143706
  }
142677
- ut.prototype.build = function(t5) {
142678
- return this.options.preserveOrder ? it(t5, this.options) : (Array.isArray(t5) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t5 = { [this.options.arrayNodeName]: t5 }), this.j2x(t5, 0, []).val);
142679
- }, ut.prototype.j2x = function(t5, e5, i5) {
142680
- let n5 = "", s5 = "";
142681
- const r5 = i5.join(".");
143707
+ dt.prototype.build = function(t5) {
143708
+ return this.options.preserveOrder ? st(t5, this.options) : (Array.isArray(t5) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t5 = { [this.options.arrayNodeName]: t5 }), this.j2x(t5, 0, []).val);
143709
+ }, dt.prototype.j2x = function(t5, e5, n5) {
143710
+ let i5 = "", s5 = "";
143711
+ const r5 = n5.join(".");
142682
143712
  for (let o5 in t5) if (Object.prototype.hasOwnProperty.call(t5, o5)) if (void 0 === t5[o5]) this.isAttribute(o5) && (s5 += "");
142683
143713
  else if (null === t5[o5]) this.isAttribute(o5) || o5 === this.options.cdataPropName ? s5 += "" : "?" === o5[0] ? s5 += this.indentate(e5) + "<" + o5 + "?" + this.tagEndChar : s5 += this.indentate(e5) + "<" + o5 + "/" + this.tagEndChar;
142684
143714
  else if (t5[o5] instanceof Date) s5 += this.buildTextValNode(t5[o5], o5, "", e5);
142685
143715
  else if ("object" != typeof t5[o5]) {
142686
- const i6 = this.isAttribute(o5);
142687
- if (i6 && !this.ignoreAttributesFn(i6, r5)) n5 += this.buildAttrPairStr(i6, "" + t5[o5]);
142688
- else if (!i6) if (o5 === this.options.textNodeName) {
143716
+ const n6 = this.isAttribute(o5);
143717
+ if (n6 && !this.ignoreAttributesFn(n6, r5)) i5 += this.buildAttrPairStr(n6, "" + t5[o5]);
143718
+ else if (!n6) if (o5 === this.options.textNodeName) {
142689
143719
  let e6 = this.options.tagValueProcessor(o5, "" + t5[o5]);
142690
143720
  s5 += this.replaceEntitiesValue(e6);
142691
143721
  } else s5 += this.buildTextValNode(t5[o5], o5, "", e5);
142692
143722
  } else if (Array.isArray(t5[o5])) {
142693
- const n6 = t5[o5].length;
143723
+ const i6 = t5[o5].length;
142694
143724
  let r6 = "", a5 = "";
142695
- for (let l5 = 0; l5 < n6; l5++) {
142696
- const n7 = t5[o5][l5];
142697
- if (void 0 === n7) ;
142698
- else if (null === n7) "?" === o5[0] ? s5 += this.indentate(e5) + "<" + o5 + "?" + this.tagEndChar : s5 += this.indentate(e5) + "<" + o5 + "/" + this.tagEndChar;
142699
- else if ("object" == typeof n7) if (this.options.oneListGroup) {
142700
- const t6 = this.j2x(n7, e5 + 1, i5.concat(o5));
142701
- r6 += t6.val, this.options.attributesGroupName && n7.hasOwnProperty(this.options.attributesGroupName) && (a5 += t6.attrStr);
142702
- } else r6 += this.processTextOrObjNode(n7, o5, e5, i5);
143725
+ for (let l5 = 0; l5 < i6; l5++) {
143726
+ const i7 = t5[o5][l5];
143727
+ if (void 0 === i7) ;
143728
+ else if (null === i7) "?" === o5[0] ? s5 += this.indentate(e5) + "<" + o5 + "?" + this.tagEndChar : s5 += this.indentate(e5) + "<" + o5 + "/" + this.tagEndChar;
143729
+ else if ("object" == typeof i7) if (this.options.oneListGroup) {
143730
+ const t6 = this.j2x(i7, e5 + 1, n5.concat(o5));
143731
+ r6 += t6.val, this.options.attributesGroupName && i7.hasOwnProperty(this.options.attributesGroupName) && (a5 += t6.attrStr);
143732
+ } else r6 += this.processTextOrObjNode(i7, o5, e5, n5);
142703
143733
  else if (this.options.oneListGroup) {
142704
- let t6 = this.options.tagValueProcessor(o5, n7);
143734
+ let t6 = this.options.tagValueProcessor(o5, i7);
142705
143735
  t6 = this.replaceEntitiesValue(t6), r6 += t6;
142706
- } else r6 += this.buildTextValNode(n7, o5, "", e5);
143736
+ } else r6 += this.buildTextValNode(i7, o5, "", e5);
142707
143737
  }
142708
143738
  this.options.oneListGroup && (r6 = this.buildObjectNode(r6, o5, a5, e5)), s5 += r6;
142709
143739
  } else if (this.options.attributesGroupName && o5 === this.options.attributesGroupName) {
142710
- const e6 = Object.keys(t5[o5]), i6 = e6.length;
142711
- for (let s6 = 0; s6 < i6; s6++) n5 += this.buildAttrPairStr(e6[s6], "" + t5[o5][e6[s6]]);
142712
- } else s5 += this.processTextOrObjNode(t5[o5], o5, e5, i5);
142713
- return { attrStr: n5, val: s5 };
142714
- }, ut.prototype.buildAttrPairStr = function(t5, e5) {
143740
+ const e6 = Object.keys(t5[o5]), n6 = e6.length;
143741
+ for (let s6 = 0; s6 < n6; s6++) i5 += this.buildAttrPairStr(e6[s6], "" + t5[o5][e6[s6]]);
143742
+ } else s5 += this.processTextOrObjNode(t5[o5], o5, e5, n5);
143743
+ return { attrStr: i5, val: s5 };
143744
+ }, dt.prototype.buildAttrPairStr = function(t5, e5) {
142715
143745
  return e5 = this.options.attributeValueProcessor(t5, "" + e5), e5 = this.replaceEntitiesValue(e5), this.options.suppressBooleanAttributes && "true" === e5 ? " " + t5 : " " + t5 + '="' + e5 + '"';
142716
- }, ut.prototype.buildObjectNode = function(t5, e5, i5, n5) {
142717
- if ("" === t5) return "?" === e5[0] ? this.indentate(n5) + "<" + e5 + i5 + "?" + this.tagEndChar : this.indentate(n5) + "<" + e5 + i5 + this.closeTag(e5) + this.tagEndChar;
143746
+ }, dt.prototype.buildObjectNode = function(t5, e5, n5, i5) {
143747
+ if ("" === t5) return "?" === e5[0] ? this.indentate(i5) + "<" + e5 + n5 + "?" + this.tagEndChar : this.indentate(i5) + "<" + e5 + n5 + this.closeTag(e5) + this.tagEndChar;
142718
143748
  {
142719
143749
  let s5 = "</" + e5 + this.tagEndChar, r5 = "";
142720
- return "?" === e5[0] && (r5 = "?", s5 = ""), !i5 && "" !== i5 || -1 !== t5.indexOf("<") ? false !== this.options.commentPropName && e5 === this.options.commentPropName && 0 === r5.length ? this.indentate(n5) + `<!--${t5}-->` + this.newLine : this.indentate(n5) + "<" + e5 + i5 + r5 + this.tagEndChar + t5 + this.indentate(n5) + s5 : this.indentate(n5) + "<" + e5 + i5 + r5 + ">" + t5 + s5;
143750
+ return "?" === e5[0] && (r5 = "?", s5 = ""), !n5 && "" !== n5 || -1 !== t5.indexOf("<") ? false !== this.options.commentPropName && e5 === this.options.commentPropName && 0 === r5.length ? this.indentate(i5) + `<!--${t5}-->` + this.newLine : this.indentate(i5) + "<" + e5 + n5 + r5 + this.tagEndChar + t5 + this.indentate(i5) + s5 : this.indentate(i5) + "<" + e5 + n5 + r5 + ">" + t5 + s5;
142721
143751
  }
142722
- }, ut.prototype.closeTag = function(t5) {
143752
+ }, dt.prototype.closeTag = function(t5) {
142723
143753
  let e5 = "";
142724
143754
  return -1 !== this.options.unpairedTags.indexOf(t5) ? this.options.suppressUnpairedNode || (e5 = "/") : e5 = this.options.suppressEmptyNode ? "/" : `></${t5}`, e5;
142725
- }, ut.prototype.buildTextValNode = function(t5, e5, i5, n5) {
142726
- if (false !== this.options.cdataPropName && e5 === this.options.cdataPropName) return this.indentate(n5) + `<![CDATA[${t5}]]>` + this.newLine;
142727
- if (false !== this.options.commentPropName && e5 === this.options.commentPropName) return this.indentate(n5) + `<!--${t5}-->` + this.newLine;
142728
- if ("?" === e5[0]) return this.indentate(n5) + "<" + e5 + i5 + "?" + this.tagEndChar;
143755
+ }, dt.prototype.buildTextValNode = function(t5, e5, n5, i5) {
143756
+ if (false !== this.options.cdataPropName && e5 === this.options.cdataPropName) return this.indentate(i5) + `<![CDATA[${t5}]]>` + this.newLine;
143757
+ if (false !== this.options.commentPropName && e5 === this.options.commentPropName) return this.indentate(i5) + `<!--${t5}-->` + this.newLine;
143758
+ if ("?" === e5[0]) return this.indentate(i5) + "<" + e5 + n5 + "?" + this.tagEndChar;
142729
143759
  {
142730
143760
  let s5 = this.options.tagValueProcessor(e5, t5);
142731
- return s5 = this.replaceEntitiesValue(s5), "" === s5 ? this.indentate(n5) + "<" + e5 + i5 + this.closeTag(e5) + this.tagEndChar : this.indentate(n5) + "<" + e5 + i5 + ">" + s5 + "</" + e5 + this.tagEndChar;
143761
+ return s5 = this.replaceEntitiesValue(s5), "" === s5 ? this.indentate(i5) + "<" + e5 + n5 + this.closeTag(e5) + this.tagEndChar : this.indentate(i5) + "<" + e5 + n5 + ">" + s5 + "</" + e5 + this.tagEndChar;
142732
143762
  }
142733
- }, ut.prototype.replaceEntitiesValue = function(t5) {
143763
+ }, dt.prototype.replaceEntitiesValue = function(t5) {
142734
143764
  if (t5 && t5.length > 0 && this.options.processEntities) for (let e5 = 0; e5 < this.options.entities.length; e5++) {
142735
- const i5 = this.options.entities[e5];
142736
- t5 = t5.replace(i5.regex, i5.val);
143765
+ const n5 = this.options.entities[e5];
143766
+ t5 = t5.replace(n5.regex, n5.val);
142737
143767
  }
142738
143768
  return t5;
142739
143769
  };
142740
- const ft = { validate: a4 };
143770
+ const gt = { validate: a4 };
142741
143771
  module2.exports = e4;
142742
143772
  })();
142743
143773
  }
@@ -162797,7 +163827,7 @@ var require_package6 = __commonJS({
162797
163827
  "package.json"(exports2, module2) {
162798
163828
  module2.exports = {
162799
163829
  name: "@sentry/craft",
162800
- version: "2.21.6",
163830
+ version: "2.21.7",
162801
163831
  description: "The universal sentry workflow CLI",
162802
163832
  main: "dist/craft",
162803
163833
  repository: "https://github.com/getsentry/craft",
@@ -162864,7 +163894,7 @@ var require_package6 = __commonJS({
162864
163894
  "source-map-support": "^0.5.20",
162865
163895
  split: "1.0.1",
162866
163896
  "string-length": "3.1.0",
162867
- tar: "7.5.7",
163897
+ tar: "7.5.8",
162868
163898
  tmp: "0.2.4",
162869
163899
  tslib: "^2.8.1",
162870
163900
  typescript: "^5.7.2",
@@ -162967,7 +163997,7 @@ function getPackage() {
162967
163997
  }
162968
163998
  function getPackageVersion() {
162969
163999
  const { version: version2 } = getPackage();
162970
- const buildInfo = "ba4115c4f37e5e82d57e7a59256568d0418ac725";
164000
+ const buildInfo = "41defb379de52e5f0e3943944fa5575b22fb9f92";
162971
164001
  return buildInfo ? `${version2} (${buildInfo})` : version2;
162972
164002
  }
162973
164003
  function semVerToString(s4) {