@salesforce/core-bundle 7.3.9 → 7.3.10

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.
package/lib/index.js CHANGED
@@ -2734,7 +2734,7 @@ var require_log = __commonJS({
2734
2734
  Object.defineProperty(exports2, "__esModule", { value: true });
2735
2735
  exports2.logFn = void 0;
2736
2736
  var logFn = (x) => {
2737
- console.log(typeof x === "object" ? JSON.stringify(x, null, 2) : x);
2737
+ console.log(typeof x === "object" && !(x instanceof Set) && !(x instanceof Map) ? JSON.stringify(x, null, 2) : x);
2738
2738
  return x;
2739
2739
  };
2740
2740
  exports2.logFn = logFn;
@@ -3604,14 +3604,14 @@ var require_err = __commonJS({
3604
3604
  var { messageWithCauses, stackWithCauses, isErrorLike } = require_err_helpers();
3605
3605
  var { pinoErrProto, pinoErrorSymbols } = require_err_proto();
3606
3606
  var { seen } = pinoErrorSymbols;
3607
- var { toString: toString2 } = Object.prototype;
3607
+ var { toString } = Object.prototype;
3608
3608
  function errSerializer(err) {
3609
3609
  if (!isErrorLike(err)) {
3610
3610
  return err;
3611
3611
  }
3612
3612
  err[seen] = void 0;
3613
3613
  const _err = Object.create(pinoErrProto);
3614
- _err.type = toString2.call(err.constructor) === "[object Function]" ? err.constructor.name : err.name;
3614
+ _err.type = toString.call(err.constructor) === "[object Function]" ? err.constructor.name : err.name;
3615
3615
  _err.message = messageWithCauses(err);
3616
3616
  _err.stack = stackWithCauses(err);
3617
3617
  if (Array.isArray(err.errors)) {
@@ -3644,14 +3644,14 @@ var require_err_with_cause = __commonJS({
3644
3644
  var { isErrorLike } = require_err_helpers();
3645
3645
  var { pinoErrProto, pinoErrorSymbols } = require_err_proto();
3646
3646
  var { seen } = pinoErrorSymbols;
3647
- var { toString: toString2 } = Object.prototype;
3647
+ var { toString } = Object.prototype;
3648
3648
  function errWithCauseSerializer(err) {
3649
3649
  if (!isErrorLike(err)) {
3650
3650
  return err;
3651
3651
  }
3652
3652
  err[seen] = void 0;
3653
3653
  const _err = Object.create(pinoErrProto);
3654
- _err.type = toString2.call(err.constructor) === "[object Function]" ? err.constructor.name : err.name;
3654
+ _err.type = toString.call(err.constructor) === "[object Function]" ? err.constructor.name : err.name;
3655
3655
  _err.message = err.message;
3656
3656
  _err.stack = err.stack;
3657
3657
  if (Array.isArray(err.errors)) {
@@ -3997,11 +3997,19 @@ var require_redactor = __commonJS({
3997
3997
  ${strictImpl(strict, serialize)}
3998
3998
  }
3999
3999
  const { censor, secret } = this
4000
+ const originalSecret = {}
4001
+ const secretKeys = Object.keys(secret)
4002
+ for (var i = 0; i < secretKeys.length; i++) {
4003
+ originalSecret[secretKeys[i]] = secret[secretKeys[i]]
4004
+ }
4005
+
4000
4006
  ${redactTmpl(secret, isCensorFct, censorFctTakesPath)}
4001
4007
  this.compileRestore()
4002
4008
  ${dynamicRedactTmpl(wcLen > 0, isCensorFct, censorFctTakesPath)}
4009
+ this.secret = originalSecret
4003
4010
  ${resultTmpl(serialize)}
4004
4011
  `).bind(state);
4012
+ redact.state = state;
4005
4013
  if (serialize === false) {
4006
4014
  redact.restore = (o) => state.restore(o);
4007
4015
  }
@@ -4087,7 +4095,7 @@ var require_modifiers = __commonJS({
4087
4095
  nestedRestore
4088
4096
  };
4089
4097
  function groupRestore({ keys: keys2, values, target }) {
4090
- if (target == null)
4098
+ if (target == null || typeof target === "string")
4091
4099
  return;
4092
4100
  const length = keys2.length;
4093
4101
  for (var i = 0; i < length; i++) {
@@ -4097,8 +4105,8 @@ var require_modifiers = __commonJS({
4097
4105
  }
4098
4106
  function groupRedact(o, path, censor, isCensorFct, censorFctTakesPath) {
4099
4107
  const target = get(o, path);
4100
- if (target == null)
4101
- return { keys: null, values: null, target: null, flat: true };
4108
+ if (target == null || typeof target === "string")
4109
+ return { keys: null, values: null, target, flat: true };
4102
4110
  const keys2 = Object.keys(target);
4103
4111
  const keysLength = keys2.length;
4104
4112
  const pathLength = path.length;
@@ -4118,27 +4126,14 @@ var require_modifiers = __commonJS({
4118
4126
  }
4119
4127
  return { keys: keys2, values, target, flat: true };
4120
4128
  }
4121
- function nestedRestore(arr) {
4122
- const length = arr.length;
4123
- for (var i = 0; i < length; i++) {
4124
- const { key, target, value, level } = arr[i];
4125
- if (level === 0 || level === 1) {
4126
- if (has(target, key)) {
4127
- target[key] = value;
4128
- }
4129
- if (typeof target === "object") {
4130
- const targetKeys = Object.keys(target);
4131
- for (var j = 0; j < targetKeys.length; j++) {
4132
- const tKey = targetKeys[j];
4133
- const subTarget = target[tKey];
4134
- if (has(subTarget, key)) {
4135
- subTarget[key] = value;
4136
- }
4137
- }
4138
- }
4139
- } else {
4140
- restoreNthLevel(key, target, value, level);
4129
+ function nestedRestore(instructions) {
4130
+ for (let i = 0; i < instructions.length; i++) {
4131
+ const { target, path, value } = instructions[i];
4132
+ let current = target;
4133
+ for (let i2 = path.length - 1; i2 > 0; i2--) {
4134
+ current = current[path[i2]];
4141
4135
  }
4136
+ current[path[0]] = value;
4142
4137
  }
4143
4138
  }
4144
4139
  function nestedRedact(store, o, path, ns, censor, isCensorFct, censorFctTakesPath) {
@@ -4149,17 +4144,14 @@ var require_modifiers = __commonJS({
4149
4144
  const keysLength = keys2.length;
4150
4145
  for (var i = 0; i < keysLength; i++) {
4151
4146
  const key = keys2[i];
4152
- const { value, parent, exists, level } = specialSet(target, key, path, ns, censor, isCensorFct, censorFctTakesPath);
4153
- if (exists === true && parent !== null) {
4154
- store.push({ key: ns[ns.length - 1], target: parent, value, level });
4155
- }
4147
+ specialSet(store, target, key, path, ns, censor, isCensorFct, censorFctTakesPath);
4156
4148
  }
4157
4149
  return store;
4158
4150
  }
4159
4151
  function has(obj, prop) {
4160
4152
  return obj !== void 0 && obj !== null ? "hasOwn" in Object ? Object.hasOwn(obj, prop) : Object.prototype.hasOwnProperty.call(obj, prop) : false;
4161
4153
  }
4162
- function specialSet(o, k, path, afterPath, censor, isCensorFct, censorFctTakesPath) {
4154
+ function specialSet(store, o, k, path, afterPath, censor, isCensorFct, censorFctTakesPath) {
4163
4155
  const afterPathLen = afterPath.length;
4164
4156
  const lastPathIndex = afterPathLen - 1;
4165
4157
  const originalKey = k;
@@ -4168,20 +4160,21 @@ var require_modifiers = __commonJS({
4168
4160
  var nv;
4169
4161
  var ov;
4170
4162
  var oov = null;
4171
- var exists = true;
4172
4163
  var wc = null;
4173
4164
  var kIsWc;
4174
4165
  var wcov;
4175
4166
  var consecutive = false;
4176
4167
  var level = 0;
4168
+ var depth = 0;
4169
+ var redactPathCurrent = tree();
4177
4170
  ov = n = o[k];
4178
4171
  if (typeof n !== "object")
4179
- return { value: null, parent: null, exists };
4172
+ return;
4180
4173
  while (n != null && ++i < afterPathLen) {
4174
+ depth += 1;
4181
4175
  k = afterPath[i];
4182
4176
  oov = ov;
4183
4177
  if (k !== "*" && !wc && !(typeof n === "object" && k in n)) {
4184
- exists = false;
4185
4178
  break;
4186
4179
  }
4187
4180
  if (k === "*") {
@@ -4200,8 +4193,9 @@ var require_modifiers = __commonJS({
4200
4193
  wcov = n[wck];
4201
4194
  kIsWc = k === "*";
4202
4195
  if (consecutive) {
4196
+ redactPathCurrent = node(redactPathCurrent, wck, depth);
4203
4197
  level = i;
4204
- ov = iterateNthLevel(wcov, level - 1, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, exists);
4198
+ ov = iterateNthLevel(wcov, level - 1, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, o[originalKey], depth + 1);
4205
4199
  } else {
4206
4200
  if (kIsWc || typeof wcov === "object" && wcov !== null && k in wcov) {
4207
4201
  if (kIsWc) {
@@ -4211,12 +4205,18 @@ var require_modifiers = __commonJS({
4211
4205
  }
4212
4206
  nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path, originalKey, ...afterPath]) : censor(ov) : censor;
4213
4207
  if (kIsWc) {
4208
+ const rv = restoreInstr(node(redactPathCurrent, wck, depth), ov, o[originalKey]);
4209
+ store.push(rv);
4214
4210
  n[wck] = nv;
4215
4211
  } else {
4216
4212
  if (wcov[k] === nv) {
4217
- exists = false;
4213
+ } else if (nv === void 0 && censor !== void 0 || has(wcov, k) && nv === ov) {
4214
+ redactPathCurrent = node(redactPathCurrent, wck, depth);
4218
4215
  } else {
4219
- wcov[k] = nv === void 0 && censor !== void 0 || has(wcov, k) && nv === ov ? wcov[k] : nv;
4216
+ redactPathCurrent = node(redactPathCurrent, wck, depth);
4217
+ const rv = restoreInstr(node(redactPathCurrent, k, depth + 1), ov, o[originalKey]);
4218
+ store.push(rv);
4219
+ wcov[k] = nv;
4220
4220
  }
4221
4221
  }
4222
4222
  }
@@ -4225,17 +4225,21 @@ var require_modifiers = __commonJS({
4225
4225
  wc = null;
4226
4226
  } else {
4227
4227
  ov = n[k];
4228
+ redactPathCurrent = node(redactPathCurrent, k, depth);
4228
4229
  nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path, originalKey, ...afterPath]) : censor(ov) : censor;
4229
- n[k] = has(n, k) && nv === ov || nv === void 0 && censor !== void 0 ? n[k] : nv;
4230
+ if (has(n, k) && nv === ov || nv === void 0 && censor !== void 0) {
4231
+ } else {
4232
+ const rv = restoreInstr(redactPathCurrent, ov, o[originalKey]);
4233
+ store.push(rv);
4234
+ n[k] = nv;
4235
+ }
4230
4236
  n = n[k];
4231
4237
  }
4232
4238
  if (typeof n !== "object")
4233
4239
  break;
4234
4240
  if (ov === oov || typeof ov === "undefined") {
4235
- exists = false;
4236
4241
  }
4237
4242
  }
4238
- return { value: ov, parent: oov, exists, level };
4239
4243
  }
4240
4244
  function get(o, p) {
4241
4245
  var i = -1;
@@ -4246,7 +4250,7 @@ var require_modifiers = __commonJS({
4246
4250
  }
4247
4251
  return n;
4248
4252
  }
4249
- function iterateNthLevel(wcov, level, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, exists) {
4253
+ function iterateNthLevel(wcov, level, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth) {
4250
4254
  if (level === 0) {
4251
4255
  if (kIsWc || typeof wcov === "object" && wcov !== null && k in wcov) {
4252
4256
  if (kIsWc) {
@@ -4256,36 +4260,51 @@ var require_modifiers = __commonJS({
4256
4260
  }
4257
4261
  nv = i !== lastPathIndex ? ov : isCensorFct ? censorFctTakesPath ? censor(ov, [...path, originalKey, ...afterPath]) : censor(ov) : censor;
4258
4262
  if (kIsWc) {
4263
+ const rv = restoreInstr(redactPathCurrent, ov, parent);
4264
+ store.push(rv);
4259
4265
  n[wck] = nv;
4260
4266
  } else {
4261
4267
  if (wcov[k] === nv) {
4262
- exists = false;
4268
+ } else if (nv === void 0 && censor !== void 0 || has(wcov, k) && nv === ov) {
4263
4269
  } else {
4264
- wcov[k] = nv === void 0 && censor !== void 0 || has(wcov, k) && nv === ov ? wcov[k] : nv;
4270
+ const rv = restoreInstr(node(redactPathCurrent, k, depth + 1), ov, parent);
4271
+ store.push(rv);
4272
+ wcov[k] = nv;
4265
4273
  }
4266
4274
  }
4267
4275
  }
4268
- return ov;
4269
4276
  }
4270
4277
  for (const key in wcov) {
4271
4278
  if (typeof wcov[key] === "object") {
4272
- var temp = iterateNthLevel(wcov[key], level - 1, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, exists);
4273
- return temp;
4279
+ redactPathCurrent = node(redactPathCurrent, key, depth);
4280
+ iterateNthLevel(wcov[key], level - 1, k, path, afterPath, censor, isCensorFct, censorFctTakesPath, originalKey, n, nv, ov, kIsWc, wck, i, lastPathIndex, redactPathCurrent, store, parent, depth + 1);
4274
4281
  }
4275
4282
  }
4276
4283
  }
4277
- function restoreNthLevel(key, target, value, level) {
4278
- if (level === 0) {
4279
- if (has(target, key)) {
4280
- target[key] = value;
4281
- }
4282
- return;
4283
- }
4284
- for (const objKey in target) {
4285
- if (typeof target[objKey] === "object") {
4286
- restoreNthLevel(key, target[objKey], value, level - 1);
4287
- }
4284
+ function tree() {
4285
+ return { parent: null, key: null, children: [], depth: 0 };
4286
+ }
4287
+ function node(parent, key, depth) {
4288
+ if (parent.depth === depth) {
4289
+ return node(parent.parent, key, depth);
4288
4290
  }
4291
+ var child = {
4292
+ parent,
4293
+ key,
4294
+ depth,
4295
+ children: []
4296
+ };
4297
+ parent.children.push(child);
4298
+ return child;
4299
+ }
4300
+ function restoreInstr(node2, value, target) {
4301
+ let current = node2;
4302
+ const path = [];
4303
+ do {
4304
+ path.push(current.key);
4305
+ current = current.parent;
4306
+ } while (current.parent != null);
4307
+ return { path, value, target };
4289
4308
  }
4290
4309
  }
4291
4310
  });
@@ -4296,10 +4315,13 @@ var require_restorer = __commonJS({
4296
4315
  "use strict";
4297
4316
  var { groupRestore, nestedRestore } = require_modifiers();
4298
4317
  module2.exports = restorer;
4299
- function restorer({ secret, wcLen }) {
4318
+ function restorer() {
4300
4319
  return function compileRestore() {
4301
- if (this.restore)
4320
+ if (this.restore) {
4321
+ this.restore.state.secret = this.secret;
4302
4322
  return;
4323
+ }
4324
+ const { secret, wcLen } = this;
4303
4325
  const paths = Object.keys(secret);
4304
4326
  const resetters = resetTmpl(secret, paths);
4305
4327
  const hasWildcards = wcLen > 0;
@@ -4308,6 +4330,7 @@ var require_restorer = __commonJS({
4308
4330
  "o",
4309
4331
  restoreTmpl(resetters, paths, hasWildcards)
4310
4332
  ).bind(state);
4333
+ this.restore.state = state;
4311
4334
  };
4312
4335
  }
4313
4336
  function resetTmpl(secret, paths) {
@@ -4331,9 +4354,11 @@ var require_restorer = __commonJS({
4331
4354
  for (var i = len - 1; i >= ${paths.length}; i--) {
4332
4355
  const k = keys[i]
4333
4356
  const o = secret[k]
4334
- if (o.flat === true) this.groupRestore(o)
4335
- else this.nestedRestore(o)
4336
- secret[k] = null
4357
+ if (o) {
4358
+ if (o.flat === true) this.groupRestore(o)
4359
+ else this.nestedRestore(o)
4360
+ secret[k] = null
4361
+ }
4337
4362
  }
4338
4363
  ` : "";
4339
4364
  return `
@@ -4404,7 +4429,7 @@ var require_fast_redact = __commonJS({
4404
4429
  return serialize || noop;
4405
4430
  validate({ paths, serialize, censor });
4406
4431
  const { wildcards, wcLen, secret } = parse({ paths, censor });
4407
- const compileRestore = restorer({ secret, wcLen });
4432
+ const compileRestore = restorer();
4408
4433
  const strict = "strict" in opts ? opts.strict : true;
4409
4434
  return redactor({ secret, wcLen, serialize, strict, isCensorFct, censorFctTakesPath }, state({
4410
4435
  secret,
@@ -4781,6 +4806,7 @@ var require_sonic_boom = __commonJS({
4781
4806
  }
4782
4807
  return;
4783
4808
  }
4809
+ const reopening = sonic._reopening;
4784
4810
  sonic.fd = fd;
4785
4811
  sonic.file = file;
4786
4812
  sonic._reopening = false;
@@ -4791,11 +4817,13 @@ var require_sonic_boom = __commonJS({
4791
4817
  } else {
4792
4818
  sonic.emit("ready");
4793
4819
  }
4794
- if (sonic._reopening || sonic.destroyed) {
4820
+ if (sonic.destroyed) {
4795
4821
  return;
4796
4822
  }
4797
4823
  if (!sonic._writing && sonic._len > sonic.minLength || sonic._flushPending) {
4798
4824
  sonic._actualWrite();
4825
+ } else if (reopening) {
4826
+ process.nextTick(() => sonic.emit("drain"));
4799
4827
  }
4800
4828
  }
4801
4829
  const flags = sonic.append ? "a" : "w";
@@ -4900,11 +4928,9 @@ var require_sonic_boom = __commonJS({
4900
4928
  return;
4901
4929
  }
4902
4930
  this.emit("write", n);
4903
- this._len -= n;
4904
- if (this._len < 0) {
4905
- this._len = 0;
4906
- }
4907
- this._writingBuf = this._writingBuf.slice(n);
4931
+ const releasedBufObj = releaseWritingBuf(this._writingBuf, this._len, n);
4932
+ this._len = releasedBufObj.len;
4933
+ this._writingBuf = releasedBufObj.writingBuf;
4908
4934
  if (this._writingBuf.length) {
4909
4935
  if (!this.sync) {
4910
4936
  fsWrite();
@@ -4913,8 +4939,9 @@ var require_sonic_boom = __commonJS({
4913
4939
  try {
4914
4940
  do {
4915
4941
  const n2 = fsWriteSync();
4916
- this._len -= n2;
4917
- this._writingBuf = this._writingBuf.slice(n2);
4942
+ const releasedBufObj2 = releaseWritingBuf(this._writingBuf, this._len, n2);
4943
+ this._len = releasedBufObj2.len;
4944
+ this._writingBuf = releasedBufObj2.writingBuf;
4918
4945
  } while (this._writingBuf.length);
4919
4946
  } catch (err2) {
4920
4947
  this.release(err2);
@@ -4956,6 +4983,14 @@ var require_sonic_boom = __commonJS({
4956
4983
  }
4957
4984
  });
4958
4985
  }
4986
+ function releaseWritingBuf(writingBuf, len, n) {
4987
+ if (typeof writingBuf === "string" && Buffer.byteLength(writingBuf) !== n) {
4988
+ n = Buffer.from(writingBuf).subarray(0, n).toString().length;
4989
+ }
4990
+ len = Math.max(len - n, 0);
4991
+ writingBuf = writingBuf.slice(n);
4992
+ return { writingBuf, len };
4993
+ }
4959
4994
  function emitDrain(sonic) {
4960
4995
  const hasListeners = sonic.listenerCount("drain") > 0;
4961
4996
  if (!hasListeners)
@@ -5111,6 +5146,9 @@ var require_sonic_boom = __commonJS({
5111
5146
  if (!this.file) {
5112
5147
  throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");
5113
5148
  }
5149
+ if (file) {
5150
+ this.file = file;
5151
+ }
5114
5152
  this._reopening = true;
5115
5153
  if (this._writing) {
5116
5154
  return;
@@ -5125,7 +5163,7 @@ var require_sonic_boom = __commonJS({
5125
5163
  });
5126
5164
  }
5127
5165
  });
5128
- openFile(file || this.file, this);
5166
+ openFile(this.file, this);
5129
5167
  };
5130
5168
  SonicBoom.prototype.end = function() {
5131
5169
  if (this.destroyed) {
@@ -5168,8 +5206,9 @@ var require_sonic_boom = __commonJS({
5168
5206
  }
5169
5207
  try {
5170
5208
  const n = fs.writeSync(this.fd, buf, "utf8");
5171
- buf = buf.slice(n);
5172
- this._len = Math.max(this._len - n, 0);
5209
+ const releasedBufObj = releaseWritingBuf(buf, this._len, n);
5210
+ buf = releasedBufObj.writingBuf;
5211
+ this._len = releasedBufObj.len;
5173
5212
  if (buf.length <= 0) {
5174
5213
  this._bufs.shift();
5175
5214
  }
@@ -5300,7 +5339,12 @@ var require_on_exit_leak_free = __commonJS({
5300
5339
  exit: onExit,
5301
5340
  beforeExit: onBeforeExit
5302
5341
  };
5303
- var registry = new FinalizationRegistry(clear);
5342
+ var registry;
5343
+ function ensureRegistry() {
5344
+ if (registry === void 0) {
5345
+ registry = new FinalizationRegistry(clear);
5346
+ }
5347
+ }
5304
5348
  function install2(event) {
5305
5349
  if (refs[event].length > 0) {
5306
5350
  return;
@@ -5312,6 +5356,9 @@ var require_on_exit_leak_free = __commonJS({
5312
5356
  return;
5313
5357
  }
5314
5358
  process.removeListener(event, functions[event]);
5359
+ if (refs.exit.length === 0 && refs.beforeExit.length === 0) {
5360
+ registry = void 0;
5361
+ }
5315
5362
  }
5316
5363
  function onExit() {
5317
5364
  callRefs("exit");
@@ -5327,6 +5374,7 @@ var require_on_exit_leak_free = __commonJS({
5327
5374
  fn(obj, event);
5328
5375
  }
5329
5376
  }
5377
+ refs[event] = [];
5330
5378
  }
5331
5379
  function clear(ref) {
5332
5380
  for (const event of ["exit", "beforeExit"]) {
@@ -5342,6 +5390,7 @@ var require_on_exit_leak_free = __commonJS({
5342
5390
  install2(event);
5343
5391
  const ref = new WeakRef(obj);
5344
5392
  ref.fn = fn;
5393
+ ensureRegistry();
5345
5394
  registry.register(obj, ref);
5346
5395
  refs[event].push(ref);
5347
5396
  }
@@ -5352,6 +5401,9 @@ var require_on_exit_leak_free = __commonJS({
5352
5401
  _register("beforeExit", obj, fn);
5353
5402
  }
5354
5403
  function unregister(obj) {
5404
+ if (registry === void 0) {
5405
+ return;
5406
+ }
5355
5407
  registry.unregister(obj);
5356
5408
  for (const event of ["exit", "beforeExit"]) {
5357
5409
  refs[event] = refs[event].filter((ref) => {
@@ -12023,7 +12075,7 @@ var require_package2 = __commonJS({
12023
12075
  "package.json"(exports2, module2) {
12024
12076
  module2.exports = {
12025
12077
  name: "@salesforce/core-bundle",
12026
- version: "7.3.9",
12078
+ version: "7.3.10",
12027
12079
  description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
12028
12080
  main: "lib/index",
12029
12081
  types: "lib/index.d.ts",
@@ -12063,7 +12115,7 @@ var require_package2 = __commonJS({
12063
12115
  "@salesforce/kit": "^3.1.1",
12064
12116
  "@salesforce/schemas": "^1.9.0",
12065
12117
  "@salesforce/ts-types": "^2.0.9",
12066
- ajv: "^8.13.0",
12118
+ ajv: "^8.15.0",
12067
12119
  "change-case": "^4.1.2",
12068
12120
  faye: "^1.4.0",
12069
12121
  "form-data": "^4.0.0",
@@ -12071,11 +12123,11 @@ var require_package2 = __commonJS({
12071
12123
  jsonwebtoken: "9.0.2",
12072
12124
  jszip: "3.10.1",
12073
12125
  pino: "^8.21.0",
12074
- "pino-abstract-transport": "^1.1.0",
12126
+ "pino-abstract-transport": "^1.2.0",
12075
12127
  "pino-pretty": "^10.3.1",
12076
12128
  "proper-lockfile": "^4.1.2",
12077
12129
  semver: "^7.6.2",
12078
- "ts-retry-promise": "^0.7.1"
12130
+ "ts-retry-promise": "^0.8.1"
12079
12131
  },
12080
12132
  devDependencies: {
12081
12133
  "@salesforce/dev-scripts": "^8.5.0",
@@ -30782,9 +30834,9 @@ var require_dist17 = __commonJS({
30782
30834
  function isOfType(type2) {
30783
30835
  return (value) => typeof value === type2;
30784
30836
  }
30785
- var { toString: toString2 } = Object.prototype;
30837
+ var { toString } = Object.prototype;
30786
30838
  var getObjectType = (value) => {
30787
- const objectTypeName = toString2.call(value).slice(8, -1);
30839
+ const objectTypeName = toString.call(value).slice(8, -1);
30788
30840
  if (/HTML\w+Element/.test(objectTypeName) && is.domElement(value)) {
30789
30841
  return "HTMLElement";
30790
30842
  }
@@ -30925,7 +30977,7 @@ var require_dist17 = __commonJS({
30925
30977
  is.integer = (value) => Number.isInteger(value);
30926
30978
  is.safeInteger = (value) => Number.isSafeInteger(value);
30927
30979
  is.plainObject = (value) => {
30928
- if (toString2.call(value) !== "[object Object]") {
30980
+ if (toString.call(value) !== "[object Object]") {
30929
30981
  return false;
30930
30982
  }
30931
30983
  const prototype = Object.getPrototypeOf(value);
@@ -36114,6 +36166,9 @@ var require_sax = __commonJS({
36114
36166
  if (parser.opt.xmlns) {
36115
36167
  parser.ns = Object.create(rootNS);
36116
36168
  }
36169
+ if (parser.opt.unquotedAttributeValues === void 0) {
36170
+ parser.opt.unquotedAttributeValues = !strict;
36171
+ }
36117
36172
  parser.trackPosition = parser.opt.position !== false;
36118
36173
  if (parser.trackPosition) {
36119
36174
  parser.position = parser.line = parser.column = 0;
@@ -37053,15 +37108,21 @@ var require_sax = __commonJS({
37053
37108
  }
37054
37109
  continue;
37055
37110
  case S.SGML_DECL:
37056
- if ((parser.sgmlDecl + c).toUpperCase() === CDATA) {
37111
+ if (parser.sgmlDecl + c === "--") {
37112
+ parser.state = S.COMMENT;
37113
+ parser.comment = "";
37114
+ parser.sgmlDecl = "";
37115
+ continue;
37116
+ }
37117
+ if (parser.doctype && parser.doctype !== true && parser.sgmlDecl) {
37118
+ parser.state = S.DOCTYPE_DTD;
37119
+ parser.doctype += "<!" + parser.sgmlDecl + c;
37120
+ parser.sgmlDecl = "";
37121
+ } else if ((parser.sgmlDecl + c).toUpperCase() === CDATA) {
37057
37122
  emitNode(parser, "onopencdata");
37058
37123
  parser.state = S.CDATA;
37059
37124
  parser.sgmlDecl = "";
37060
37125
  parser.cdata = "";
37061
- } else if (parser.sgmlDecl + c === "--") {
37062
- parser.state = S.COMMENT;
37063
- parser.comment = "";
37064
- parser.sgmlDecl = "";
37065
37126
  } else if ((parser.sgmlDecl + c).toUpperCase() === DOCTYPE) {
37066
37127
  parser.state = S.DOCTYPE;
37067
37128
  if (parser.doctype || parser.sawRoot) {
@@ -37113,12 +37174,18 @@ var require_sax = __commonJS({
37113
37174
  }
37114
37175
  continue;
37115
37176
  case S.DOCTYPE_DTD:
37116
- parser.doctype += c;
37117
37177
  if (c === "]") {
37178
+ parser.doctype += c;
37118
37179
  parser.state = S.DOCTYPE;
37180
+ } else if (c === "<") {
37181
+ parser.state = S.OPEN_WAKA;
37182
+ parser.startTagPosition = parser.position;
37119
37183
  } else if (isQuote(c)) {
37184
+ parser.doctype += c;
37120
37185
  parser.state = S.DOCTYPE_DTD_QUOTED;
37121
37186
  parser.q = c;
37187
+ } else {
37188
+ parser.doctype += c;
37122
37189
  }
37123
37190
  continue;
37124
37191
  case S.DOCTYPE_DTD_QUOTED:
@@ -37153,6 +37220,8 @@ var require_sax = __commonJS({
37153
37220
  strictFail(parser, "Malformed comment");
37154
37221
  parser.comment += "--" + c;
37155
37222
  parser.state = S.COMMENT;
37223
+ } else if (parser.doctype && parser.doctype !== true) {
37224
+ parser.state = S.DOCTYPE_DTD;
37156
37225
  } else {
37157
37226
  parser.state = S.TEXT;
37158
37227
  }
@@ -37307,7 +37376,9 @@ var require_sax = __commonJS({
37307
37376
  parser.q = c;
37308
37377
  parser.state = S.ATTRIB_VALUE_QUOTED;
37309
37378
  } else {
37310
- strictFail(parser, "Unquoted attribute value");
37379
+ if (!parser.opt.unquotedAttributeValues) {
37380
+ error(parser, "Unquoted attribute value");
37381
+ }
37311
37382
  parser.state = S.ATTRIB_VALUE_UNQUOTED;
37312
37383
  parser.attribValue = c;
37313
37384
  }
@@ -37416,13 +37487,13 @@ var require_sax = __commonJS({
37416
37487
  break;
37417
37488
  }
37418
37489
  if (c === ";") {
37419
- if (parser.opt.unparsedEntities) {
37420
- var parsedEntity = parseEntity(parser);
37490
+ var parsedEntity = parseEntity(parser);
37491
+ if (parser.opt.unparsedEntities && !Object.values(sax.XML_ENTITIES).includes(parsedEntity)) {
37421
37492
  parser.entity = "";
37422
37493
  parser.state = returnState;
37423
37494
  parser.write(parsedEntity);
37424
37495
  } else {
37425
- parser[buffer] += parseEntity(parser);
37496
+ parser[buffer] += parsedEntity;
37426
37497
  parser.entity = "";
37427
37498
  parser.state = returnState;
37428
37499
  }
@@ -38392,6 +38463,9 @@ var require_cjs = __commonJS({
38392
38463
  `got ${JSON.stringify(options.on_record)}`
38393
38464
  ], options);
38394
38465
  }
38466
+ if (options.on_skip !== void 0 && options.on_skip !== null && typeof options.on_skip !== "function") {
38467
+ throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(options.on_skip)}`);
38468
+ }
38395
38469
  if (options.quote === null || options.quote === false || options.quote === "") {
38396
38470
  options.quote = null;
38397
38471
  } else {
@@ -38586,7 +38660,7 @@ var require_cjs = __commonJS({
38586
38660
  __needMoreData: function(i, bufLen, end) {
38587
38661
  if (end)
38588
38662
  return false;
38589
- const { encoding, escape, quote } = this.options;
38663
+ const { encoding, escape: escape2, quote } = this.options;
38590
38664
  const { quoting, needMoreDataSize, recordDelimiterMaxLength } = this.state;
38591
38665
  const numOfCharLeft = bufLen - i - 1;
38592
38666
  const requiredLength = Math.max(
@@ -38599,7 +38673,7 @@ var require_cjs = __commonJS({
38599
38673
  // recordDelimiterMaxLength,
38600
38674
  recordDelimiterMaxLength === 0 ? Buffer.from("\r\n", encoding).length : recordDelimiterMaxLength,
38601
38675
  // Skip if remaining buffer can be an escaped quote
38602
- quoting ? (escape === null ? 0 : escape.length) + quote.length : 0,
38676
+ quoting ? (escape2 === null ? 0 : escape2.length) + quote.length : 0,
38603
38677
  // Skip if remaining buffer can be record delimiter following the closing quote
38604
38678
  quoting ? quote.length + recordDelimiterMaxLength : 0
38605
38679
  );
@@ -38608,7 +38682,7 @@ var require_cjs = __commonJS({
38608
38682
  // Central parser implementation
38609
38683
  parse: function(nextBuf, end, push, close) {
38610
38684
  const { bom, comment_no_infix, encoding, from_line, ltrim, max_record_size, raw, relax_quotes, rtrim, skip_empty_lines, to, to_line } = this.options;
38611
- let { comment, escape, quote, record_delimiter } = this.options;
38685
+ let { comment, escape: escape2, quote, record_delimiter } = this.options;
38612
38686
  const { bomSkipped, previousBuf, rawBuffer, escapeIsQuote } = this.state;
38613
38687
  let buf;
38614
38688
  if (previousBuf === void 0) {
@@ -38638,7 +38712,7 @@ var require_cjs = __commonJS({
38638
38712
  this.state.bufBytesStart += bomLength;
38639
38713
  buf = buf.slice(bomLength);
38640
38714
  this.options = normalize_options({ ...this.original_options, encoding: encoding2 });
38641
- ({ comment, escape, quote } = this.options);
38715
+ ({ comment, escape: escape2, quote } = this.options);
38642
38716
  break;
38643
38717
  }
38644
38718
  }
@@ -38676,16 +38750,16 @@ var require_cjs = __commonJS({
38676
38750
  if (this.state.escaping === true) {
38677
38751
  this.state.escaping = false;
38678
38752
  } else {
38679
- if (escape !== null && this.state.quoting === true && this.__isEscape(buf, pos, chr) && pos + escape.length < bufLen) {
38753
+ if (escape2 !== null && this.state.quoting === true && this.__isEscape(buf, pos, chr) && pos + escape2.length < bufLen) {
38680
38754
  if (escapeIsQuote) {
38681
- if (this.__isQuote(buf, pos + escape.length)) {
38755
+ if (this.__isQuote(buf, pos + escape2.length)) {
38682
38756
  this.state.escaping = true;
38683
- pos += escape.length - 1;
38757
+ pos += escape2.length - 1;
38684
38758
  continue;
38685
38759
  }
38686
38760
  } else {
38687
38761
  this.state.escaping = true;
38688
- pos += escape.length - 1;
38762
+ pos += escape2.length - 1;
38689
38763
  continue;
38690
38764
  }
38691
38765
  }
@@ -38696,8 +38770,8 @@ var require_cjs = __commonJS({
38696
38770
  const isNextChrComment = comment !== null && this.__compareBytes(comment, buf, pos + quote.length, nextChr);
38697
38771
  const isNextChrDelimiter = this.__isDelimiter(buf, pos + quote.length, nextChr);
38698
38772
  const isNextChrRecordDelimiter = record_delimiter.length === 0 ? this.__autoDiscoverRecordDelimiter(buf, pos + quote.length) : this.__isRecordDelimiter(nextChr, buf, pos + quote.length);
38699
- if (escape !== null && this.__isEscape(buf, pos, chr) && this.__isQuote(buf, pos + escape.length)) {
38700
- pos += escape.length - 1;
38773
+ if (escape2 !== null && this.__isEscape(buf, pos, chr) && this.__isQuote(buf, pos + escape2.length)) {
38774
+ pos += escape2.length - 1;
38701
38775
  } else if (!nextChr || isNextChrDelimiter || isNextChrRecordDelimiter || isNextChrComment || isNextChrTrimable) {
38702
38776
  this.state.quoting = false;
38703
38777
  this.state.wasQuoting = true;
@@ -39157,13 +39231,13 @@ var require_cjs = __commonJS({
39157
39231
  return 0;
39158
39232
  },
39159
39233
  __isEscape: function(buf, pos, chr) {
39160
- const { escape } = this.options;
39161
- if (escape === null)
39234
+ const { escape: escape2 } = this.options;
39235
+ if (escape2 === null)
39162
39236
  return false;
39163
- const l = escape.length;
39164
- if (escape[0] === chr) {
39237
+ const l = escape2.length;
39238
+ if (escape2[0] === chr) {
39165
39239
  for (let i = 0; i < l; i++) {
39166
- if (escape[i] !== buf[pos + i]) {
39240
+ if (escape2[i] !== buf[pos + i]) {
39167
39241
  return false;
39168
39242
  }
39169
39243
  }
@@ -39248,10 +39322,9 @@ var require_cjs = __commonJS({
39248
39322
  var Parser = class extends stream.Transform {
39249
39323
  constructor(opts = {}) {
39250
39324
  super({ ...{ readableObjectMode: true }, ...opts, encoding: null });
39251
- this.api = transform(opts);
39252
- this.api.options.on_skip = (err, chunk) => {
39325
+ this.api = transform({ on_skip: (err, chunk) => {
39253
39326
  this.emit("skip", err, chunk);
39254
- };
39327
+ }, ...opts });
39255
39328
  this.state = this.api.state;
39256
39329
  this.options = this.api.options;
39257
39330
  this.info = this.api.info;
@@ -39754,6 +39827,9 @@ var require_sync = __commonJS({
39754
39827
  `got ${JSON.stringify(options.on_record)}`
39755
39828
  ], options);
39756
39829
  }
39830
+ if (options.on_skip !== void 0 && options.on_skip !== null && typeof options.on_skip !== "function") {
39831
+ throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(options.on_skip)}`);
39832
+ }
39757
39833
  if (options.quote === null || options.quote === false || options.quote === "") {
39758
39834
  options.quote = null;
39759
39835
  } else {
@@ -39948,7 +40024,7 @@ var require_sync = __commonJS({
39948
40024
  __needMoreData: function(i, bufLen, end) {
39949
40025
  if (end)
39950
40026
  return false;
39951
- const { encoding, escape, quote } = this.options;
40027
+ const { encoding, escape: escape2, quote } = this.options;
39952
40028
  const { quoting, needMoreDataSize, recordDelimiterMaxLength } = this.state;
39953
40029
  const numOfCharLeft = bufLen - i - 1;
39954
40030
  const requiredLength = Math.max(
@@ -39961,7 +40037,7 @@ var require_sync = __commonJS({
39961
40037
  // recordDelimiterMaxLength,
39962
40038
  recordDelimiterMaxLength === 0 ? Buffer.from("\r\n", encoding).length : recordDelimiterMaxLength,
39963
40039
  // Skip if remaining buffer can be an escaped quote
39964
- quoting ? (escape === null ? 0 : escape.length) + quote.length : 0,
40040
+ quoting ? (escape2 === null ? 0 : escape2.length) + quote.length : 0,
39965
40041
  // Skip if remaining buffer can be record delimiter following the closing quote
39966
40042
  quoting ? quote.length + recordDelimiterMaxLength : 0
39967
40043
  );
@@ -39970,7 +40046,7 @@ var require_sync = __commonJS({
39970
40046
  // Central parser implementation
39971
40047
  parse: function(nextBuf, end, push, close) {
39972
40048
  const { bom, comment_no_infix, encoding, from_line, ltrim, max_record_size, raw, relax_quotes, rtrim, skip_empty_lines, to, to_line } = this.options;
39973
- let { comment, escape, quote, record_delimiter } = this.options;
40049
+ let { comment, escape: escape2, quote, record_delimiter } = this.options;
39974
40050
  const { bomSkipped, previousBuf, rawBuffer, escapeIsQuote } = this.state;
39975
40051
  let buf;
39976
40052
  if (previousBuf === void 0) {
@@ -40000,7 +40076,7 @@ var require_sync = __commonJS({
40000
40076
  this.state.bufBytesStart += bomLength;
40001
40077
  buf = buf.slice(bomLength);
40002
40078
  this.options = normalize_options({ ...this.original_options, encoding: encoding2 });
40003
- ({ comment, escape, quote } = this.options);
40079
+ ({ comment, escape: escape2, quote } = this.options);
40004
40080
  break;
40005
40081
  }
40006
40082
  }
@@ -40038,16 +40114,16 @@ var require_sync = __commonJS({
40038
40114
  if (this.state.escaping === true) {
40039
40115
  this.state.escaping = false;
40040
40116
  } else {
40041
- if (escape !== null && this.state.quoting === true && this.__isEscape(buf, pos, chr) && pos + escape.length < bufLen) {
40117
+ if (escape2 !== null && this.state.quoting === true && this.__isEscape(buf, pos, chr) && pos + escape2.length < bufLen) {
40042
40118
  if (escapeIsQuote) {
40043
- if (this.__isQuote(buf, pos + escape.length)) {
40119
+ if (this.__isQuote(buf, pos + escape2.length)) {
40044
40120
  this.state.escaping = true;
40045
- pos += escape.length - 1;
40121
+ pos += escape2.length - 1;
40046
40122
  continue;
40047
40123
  }
40048
40124
  } else {
40049
40125
  this.state.escaping = true;
40050
- pos += escape.length - 1;
40126
+ pos += escape2.length - 1;
40051
40127
  continue;
40052
40128
  }
40053
40129
  }
@@ -40058,8 +40134,8 @@ var require_sync = __commonJS({
40058
40134
  const isNextChrComment = comment !== null && this.__compareBytes(comment, buf, pos + quote.length, nextChr);
40059
40135
  const isNextChrDelimiter = this.__isDelimiter(buf, pos + quote.length, nextChr);
40060
40136
  const isNextChrRecordDelimiter = record_delimiter.length === 0 ? this.__autoDiscoverRecordDelimiter(buf, pos + quote.length) : this.__isRecordDelimiter(nextChr, buf, pos + quote.length);
40061
- if (escape !== null && this.__isEscape(buf, pos, chr) && this.__isQuote(buf, pos + escape.length)) {
40062
- pos += escape.length - 1;
40137
+ if (escape2 !== null && this.__isEscape(buf, pos, chr) && this.__isQuote(buf, pos + escape2.length)) {
40138
+ pos += escape2.length - 1;
40063
40139
  } else if (!nextChr || isNextChrDelimiter || isNextChrRecordDelimiter || isNextChrComment || isNextChrTrimable) {
40064
40140
  this.state.quoting = false;
40065
40141
  this.state.wasQuoting = true;
@@ -40519,13 +40595,13 @@ var require_sync = __commonJS({
40519
40595
  return 0;
40520
40596
  },
40521
40597
  __isEscape: function(buf, pos, chr) {
40522
- const { escape } = this.options;
40523
- if (escape === null)
40598
+ const { escape: escape2 } = this.options;
40599
+ if (escape2 === null)
40524
40600
  return false;
40525
- const l = escape.length;
40526
- if (escape[0] === chr) {
40601
+ const l = escape2.length;
40602
+ if (escape2[0] === chr) {
40527
40603
  for (let i = 0; i < l; i++) {
40528
- if (escape[i] !== buf[pos + i]) {
40604
+ if (escape2[i] !== buf[pos + i]) {
40529
40605
  return false;
40530
40606
  }
40531
40607
  }
@@ -41032,7 +41108,7 @@ var require_cjs2 = __commonJS({
41032
41108
  } else {
41033
41109
  return [Error(`Invalid Casting Value: returned value must return a string, an object, null or undefined, got ${JSON.stringify(value)}`)];
41034
41110
  }
41035
- const { delimiter, escape, quote, quoted, quoted_empty, quoted_string, quoted_match, record_delimiter, escape_formulas } = options2;
41111
+ const { delimiter, escape: escape2, quote, quoted, quoted_empty, quoted_string, quoted_match, record_delimiter, escape_formulas } = options2;
41036
41112
  if ("" === value && "" === field) {
41037
41113
  let quotedMatch = quoted_match && quoted_match.filter((quoted_match2) => {
41038
41114
  if (typeof quoted_match2 === "string") {
@@ -41053,7 +41129,7 @@ var require_cjs2 = __commonJS({
41053
41129
  }
41054
41130
  const containsdelimiter = delimiter.length && value.indexOf(delimiter) >= 0;
41055
41131
  const containsQuote = quote !== "" && value.indexOf(quote) >= 0;
41056
- const containsEscape = value.indexOf(escape) >= 0 && escape !== quote;
41132
+ const containsEscape = value.indexOf(escape2) >= 0 && escape2 !== quote;
41057
41133
  const containsRecordDelimiter = value.indexOf(record_delimiter) >= 0;
41058
41134
  const quotedString = quoted_string && typeof field === "string";
41059
41135
  let quotedMatch = quoted_match && quoted_match.filter((quoted_match2) => {
@@ -41082,12 +41158,12 @@ var require_cjs2 = __commonJS({
41082
41158
  }
41083
41159
  const shouldQuote = containsQuote === true || containsdelimiter || containsRecordDelimiter || quoted || quotedString || quotedMatch;
41084
41160
  if (shouldQuote === true && containsEscape === true) {
41085
- const regexp = escape === "\\" ? new RegExp(escape + escape, "g") : new RegExp(escape, "g");
41086
- value = value.replace(regexp, escape + escape);
41161
+ const regexp = escape2 === "\\" ? new RegExp(escape2 + escape2, "g") : new RegExp(escape2, "g");
41162
+ value = value.replace(regexp, escape2 + escape2);
41087
41163
  }
41088
41164
  if (containsQuote === true) {
41089
41165
  const regexp = new RegExp(quote, "g");
41090
- value = value.replace(regexp, escape + quote);
41166
+ value = value.replace(regexp, escape2 + quote);
41091
41167
  }
41092
41168
  if (shouldQuote === true) {
41093
41169
  value = quote + value + quote;
@@ -41648,7 +41724,7 @@ var require_sync2 = __commonJS({
41648
41724
  } else {
41649
41725
  return [Error(`Invalid Casting Value: returned value must return a string, an object, null or undefined, got ${JSON.stringify(value)}`)];
41650
41726
  }
41651
- const { delimiter, escape, quote, quoted, quoted_empty, quoted_string, quoted_match, record_delimiter, escape_formulas } = options2;
41727
+ const { delimiter, escape: escape2, quote, quoted, quoted_empty, quoted_string, quoted_match, record_delimiter, escape_formulas } = options2;
41652
41728
  if ("" === value && "" === field) {
41653
41729
  let quotedMatch = quoted_match && quoted_match.filter((quoted_match2) => {
41654
41730
  if (typeof quoted_match2 === "string") {
@@ -41669,7 +41745,7 @@ var require_sync2 = __commonJS({
41669
41745
  }
41670
41746
  const containsdelimiter = delimiter.length && value.indexOf(delimiter) >= 0;
41671
41747
  const containsQuote = quote !== "" && value.indexOf(quote) >= 0;
41672
- const containsEscape = value.indexOf(escape) >= 0 && escape !== quote;
41748
+ const containsEscape = value.indexOf(escape2) >= 0 && escape2 !== quote;
41673
41749
  const containsRecordDelimiter = value.indexOf(record_delimiter) >= 0;
41674
41750
  const quotedString = quoted_string && typeof field === "string";
41675
41751
  let quotedMatch = quoted_match && quoted_match.filter((quoted_match2) => {
@@ -41698,12 +41774,12 @@ var require_sync2 = __commonJS({
41698
41774
  }
41699
41775
  const shouldQuote = containsQuote === true || containsdelimiter || containsRecordDelimiter || quoted || quotedString || quotedMatch;
41700
41776
  if (shouldQuote === true && containsEscape === true) {
41701
- const regexp = escape === "\\" ? new RegExp(escape + escape, "g") : new RegExp(escape, "g");
41702
- value = value.replace(regexp, escape + escape);
41777
+ const regexp = escape2 === "\\" ? new RegExp(escape2 + escape2, "g") : new RegExp(escape2, "g");
41778
+ value = value.replace(regexp, escape2 + escape2);
41703
41779
  }
41704
41780
  if (containsQuote === true) {
41705
41781
  const regexp = new RegExp(quote, "g");
41706
- value = value.replace(regexp, escape + quote);
41782
+ value = value.replace(regexp, escape2 + quote);
41707
41783
  }
41708
41784
  if (shouldQuote === true) {
41709
41785
  value = quote + value + quote;
@@ -63983,7 +64059,7 @@ var require_url_parse = __commonJS({
63983
64059
  url.href = url.toString();
63984
64060
  return url;
63985
64061
  }
63986
- function toString2(stringify) {
64062
+ function toString(stringify) {
63987
64063
  if (!stringify || "function" !== typeof stringify)
63988
64064
  stringify = qs.stringify;
63989
64065
  var query, url = this, host = url.host, protocol = url.protocol;
@@ -64012,7 +64088,7 @@ var require_url_parse = __commonJS({
64012
64088
  result += url.hash;
64013
64089
  return result;
64014
64090
  }
64015
- Url.prototype = { set, toString: toString2 };
64091
+ Url.prototype = { set, toString };
64016
64092
  Url.extractProtocol = extractProtocol;
64017
64093
  Url.location = lolcation;
64018
64094
  Url.trimLeft = trimLeft;
@@ -73958,6 +74034,7 @@ var require_memstore = __commonJS({
73958
74034
  var require_validators = __commonJS({
73959
74035
  "node_modules/tough-cookie/lib/validators.js"(exports2) {
73960
74036
  "use strict";
74037
+ var toString = Object.prototype.toString;
73961
74038
  function isFunction(data) {
73962
74039
  return typeof data === "function";
73963
74040
  }
@@ -73983,6 +74060,9 @@ var require_validators = __commonJS({
73983
74060
  return false;
73984
74061
  }
73985
74062
  }
74063
+ function isUrlStringOrObject(data) {
74064
+ return isNonEmptyString(data) || isObject(data) && "hostname" in data && "pathname" in data && "protocol" in data || isInstanceStrict(data, URL);
74065
+ }
73986
74066
  function isInteger(data) {
73987
74067
  return typeof data === "number" && data % 1 === 0;
73988
74068
  }
@@ -74013,6 +74093,7 @@ var require_validators = __commonJS({
74013
74093
  exports2.isEmptyString = isEmptyString;
74014
74094
  exports2.isString = isString;
74015
74095
  exports2.isObject = isObject;
74096
+ exports2.isUrlStringOrObject = isUrlStringOrObject;
74016
74097
  exports2.validate = validate;
74017
74098
  }
74018
74099
  });
@@ -74020,7 +74101,7 @@ var require_validators = __commonJS({
74020
74101
  // node_modules/tough-cookie/lib/version.js
74021
74102
  var require_version = __commonJS({
74022
74103
  "node_modules/tough-cookie/lib/version.js"(exports2, module2) {
74023
- module2.exports = "4.1.3";
74104
+ module2.exports = "4.1.4";
74024
74105
  }
74025
74106
  });
74026
74107
 
@@ -74735,7 +74816,7 @@ var require_cookie = __commonJS({
74735
74816
  this.serializeSync = syncWrap("serialize");
74736
74817
  }
74737
74818
  setCookie(cookie, url, options, cb) {
74738
- validators.validate(validators.isNonEmptyString(url), cb, options);
74819
+ validators.validate(validators.isUrlStringOrObject(url), cb, options);
74739
74820
  let err;
74740
74821
  if (validators.isFunction(url)) {
74741
74822
  cb = url;
@@ -74865,7 +74946,7 @@ var require_cookie = __commonJS({
74865
74946
  }
74866
74947
  // RFC6365 S5.4
74867
74948
  getCookies(url, options, cb) {
74868
- validators.validate(validators.isNonEmptyString(url), cb, url);
74949
+ validators.validate(validators.isUrlStringOrObject(url), cb, url);
74869
74950
  const context = getCookieContext(url);
74870
74951
  if (validators.isFunction(options)) {
74871
74952
  cb = options;
@@ -81852,7 +81933,7 @@ var require_jwa = __commonJS({
81852
81933
  var require_tostring = __commonJS({
81853
81934
  "node_modules/jws/lib/tostring.js"(exports2, module2) {
81854
81935
  var Buffer2 = require("buffer").Buffer;
81855
- module2.exports = function toString2(obj) {
81936
+ module2.exports = function toString(obj) {
81856
81937
  if (typeof obj === "string")
81857
81938
  return obj;
81858
81939
  if (typeof obj === "number" || Buffer2.isBuffer(obj))
@@ -81869,15 +81950,15 @@ var require_sign_stream = __commonJS({
81869
81950
  var DataStream = require_data_stream();
81870
81951
  var jwa = require_jwa();
81871
81952
  var Stream = require("stream");
81872
- var toString2 = require_tostring();
81953
+ var toString = require_tostring();
81873
81954
  var util = require("util");
81874
81955
  function base64url(string, encoding) {
81875
81956
  return Buffer2.from(string, encoding).toString("base64").replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
81876
81957
  }
81877
81958
  function jwsSecuredInput(header, payload, encoding) {
81878
81959
  encoding = encoding || "utf8";
81879
- var encodedHeader = base64url(toString2(header), "binary");
81880
- var encodedPayload = base64url(toString2(payload), encoding);
81960
+ var encodedHeader = base64url(toString(header), "binary");
81961
+ var encodedPayload = base64url(toString(payload), encoding);
81881
81962
  return util.format("%s.%s", encodedHeader, encodedPayload);
81882
81963
  }
81883
81964
  function jwsSign(opts) {
@@ -81939,7 +82020,7 @@ var require_verify_stream = __commonJS({
81939
82020
  var DataStream = require_data_stream();
81940
82021
  var jwa = require_jwa();
81941
82022
  var Stream = require("stream");
81942
- var toString2 = require_tostring();
82023
+ var toString = require_tostring();
81943
82024
  var util = require("util");
81944
82025
  var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;
81945
82026
  function isObject(thing) {
@@ -81978,7 +82059,7 @@ var require_verify_stream = __commonJS({
81978
82059
  err.code = "MISSING_ALGORITHM";
81979
82060
  throw err;
81980
82061
  }
81981
- jwsSig = toString2(jwsSig);
82062
+ jwsSig = toString(jwsSig);
81982
82063
  var signature = signatureFromJWS(jwsSig);
81983
82064
  var securedInput = securedInputFromJWS(jwsSig);
81984
82065
  var algo = jwa(algorithm);
@@ -81986,7 +82067,7 @@ var require_verify_stream = __commonJS({
81986
82067
  }
81987
82068
  function jwsDecode(jwsSig, opts) {
81988
82069
  opts = opts || {};
81989
- jwsSig = toString2(jwsSig);
82070
+ jwsSig = toString(jwsSig);
81990
82071
  if (!isValidJws(jwsSig))
81991
82072
  return null;
81992
82073
  var header = headerFromJWS(jwsSig);
@@ -83575,11 +83656,12 @@ var require_retry_promise = __commonJS({
83575
83656
  var BaseError = (
83576
83657
  /** @class */
83577
83658
  /* @__PURE__ */ function() {
83578
- function BaseError2() {
83659
+ function BaseError2(message) {
83579
83660
  var args = [];
83580
- for (var _i = 0; _i < arguments.length; _i++) {
83581
- args[_i] = arguments[_i];
83661
+ for (var _i = 1; _i < arguments.length; _i++) {
83662
+ args[_i - 1] = arguments[_i];
83582
83663
  }
83664
+ this.message = message;
83583
83665
  Error.apply(this, args);
83584
83666
  }
83585
83667
  return BaseError2;
@@ -88334,1039 +88416,677 @@ var require_data = __commonJS({
88334
88416
  }
88335
88417
  });
88336
88418
 
88337
- // node_modules/uri-js/dist/es5/uri.all.js
88338
- var require_uri_all = __commonJS({
88339
- "node_modules/uri-js/dist/es5/uri.all.js"(exports2, module2) {
88340
- (function(global2, factory) {
88341
- typeof exports2 === "object" && typeof module2 !== "undefined" ? factory(exports2) : typeof define === "function" && define.amd ? define(["exports"], factory) : factory(global2.URI = global2.URI || {});
88342
- })(exports2, function(exports3) {
88343
- "use strict";
88344
- function merge() {
88345
- for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
88346
- sets[_key] = arguments[_key];
88347
- }
88348
- if (sets.length > 1) {
88349
- sets[0] = sets[0].slice(0, -1);
88350
- var xl = sets.length - 1;
88351
- for (var x = 1; x < xl; ++x) {
88352
- sets[x] = sets[x].slice(1, -1);
88353
- }
88354
- sets[xl] = sets[xl].slice(1);
88355
- return sets.join("");
88356
- } else {
88357
- return sets[0];
88358
- }
88359
- }
88360
- function subexp(str) {
88361
- return "(?:" + str + ")";
88362
- }
88363
- function typeOf(o) {
88364
- return o === void 0 ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase();
88365
- }
88366
- function toUpperCase(str) {
88367
- return str.toUpperCase();
88368
- }
88369
- function toArray(obj) {
88370
- return obj !== void 0 && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];
88371
- }
88372
- function assign(target, source) {
88373
- var obj = target;
88374
- if (source) {
88375
- for (var key in source) {
88376
- obj[key] = source[key];
88377
- }
88378
- }
88379
- return obj;
88380
- }
88381
- function buildExps(isIRI2) {
88382
- var ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$2 = merge(DIGIT$$, "[A-Fa-f]"), LF$$ = "[\\x0A]", SP$$ = "[\\x20]", PCT_ENCODED$2 = subexp(subexp("%[EFef]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%" + HEXDIG$$2 + HEXDIG$$2)), GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI2 ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", IPRIVATE$$ = isIRI2 ? "[\\uE000-\\uF8FF]" : "[]", UNRESERVED$$2 = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), USERINFO$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]")) + "*"), DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), H16$ = subexp(HEXDIG$$2 + "{1,4}"), LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), ZONEID$ = subexp(subexp(UNRESERVED$$2 + "|" + PCT_ENCODED$2) + "+"), IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$2 + "{2})") + ZONEID$), IPVFUTURE$ = subexp("[vV]" + HEXDIG$$2 + "+\\." + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]") + "+"), IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), REG_NAME$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$)) + "*"), HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")|" + REG_NAME$), PORT$ = subexp(DIGIT$$ + "*"), AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), PCHAR$ = subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@]")), SEGMENT$ = subexp(PCHAR$ + "*"), SEGMENT_NZ$ = subexp(PCHAR$ + "+"), SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\@]")) + "+"), PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), PATH_EMPTY$ = "(?!" + PCHAR$ + ")", PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"), FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
88383
- return {
88384
- NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
88385
- NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
88386
- NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
88387
- NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
88388
- NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
88389
- NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
88390
- NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
88391
- ESCAPE: new RegExp(merge("[^]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
88392
- UNRESERVED: new RegExp(UNRESERVED$$2, "g"),
88393
- OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$2, RESERVED$$), "g"),
88394
- PCT_ENCODED: new RegExp(PCT_ENCODED$2, "g"),
88395
- IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
88396
- IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$2 + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$")
88397
- //RFC 6874, with relaxed parsing rules
88398
- };
88399
- }
88400
- var URI_PROTOCOL = buildExps(false);
88401
- var IRI_PROTOCOL = buildExps(true);
88402
- var slicedToArray = /* @__PURE__ */ function() {
88403
- function sliceIterator(arr, i) {
88404
- var _arr = [];
88405
- var _n = true;
88406
- var _d = false;
88407
- var _e = void 0;
88408
- try {
88409
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
88410
- _arr.push(_s.value);
88411
- if (i && _arr.length === i)
88412
- break;
88413
- }
88414
- } catch (err) {
88415
- _d = true;
88416
- _e = err;
88417
- } finally {
88418
- try {
88419
- if (!_n && _i["return"])
88420
- _i["return"]();
88421
- } finally {
88422
- if (_d)
88423
- throw _e;
88424
- }
88425
- }
88426
- return _arr;
88427
- }
88428
- return function(arr, i) {
88429
- if (Array.isArray(arr)) {
88430
- return arr;
88431
- } else if (Symbol.iterator in Object(arr)) {
88432
- return sliceIterator(arr, i);
88433
- } else {
88434
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
88435
- }
88436
- };
88437
- }();
88438
- var toConsumableArray = function(arr) {
88439
- if (Array.isArray(arr)) {
88440
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
88441
- arr2[i] = arr[i];
88442
- return arr2;
88443
- } else {
88444
- return Array.from(arr);
88445
- }
88446
- };
88447
- var maxInt = 2147483647;
88448
- var base = 36;
88449
- var tMin = 1;
88450
- var tMax = 26;
88451
- var skew = 38;
88452
- var damp = 700;
88453
- var initialBias = 72;
88454
- var initialN = 128;
88455
- var delimiter = "-";
88456
- var regexPunycode = /^xn--/;
88457
- var regexNonASCII = /[^\0-\x7E]/;
88458
- var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g;
88459
- var errors = {
88460
- "overflow": "Overflow: input needs wider integers to process",
88461
- "not-basic": "Illegal input >= 0x80 (not a basic code point)",
88462
- "invalid-input": "Invalid input"
88463
- };
88464
- var baseMinusTMin = base - tMin;
88465
- var floor = Math.floor;
88466
- var stringFromCharCode = String.fromCharCode;
88467
- function error$1(type2) {
88468
- throw new RangeError(errors[type2]);
88469
- }
88470
- function map(array, fn) {
88471
- var result = [];
88472
- var length = array.length;
88473
- while (length--) {
88474
- result[length] = fn(array[length]);
88475
- }
88476
- return result;
88419
+ // node_modules/fast-uri/lib/scopedChars.js
88420
+ var require_scopedChars = __commonJS({
88421
+ "node_modules/fast-uri/lib/scopedChars.js"(exports2, module2) {
88422
+ "use strict";
88423
+ var HEX = {
88424
+ 0: 0,
88425
+ 1: 1,
88426
+ 2: 2,
88427
+ 3: 3,
88428
+ 4: 4,
88429
+ 5: 5,
88430
+ 6: 6,
88431
+ 7: 7,
88432
+ 8: 8,
88433
+ 9: 9,
88434
+ a: 10,
88435
+ A: 10,
88436
+ b: 11,
88437
+ B: 11,
88438
+ c: 12,
88439
+ C: 12,
88440
+ d: 13,
88441
+ D: 13,
88442
+ e: 14,
88443
+ E: 14,
88444
+ f: 15,
88445
+ F: 15
88446
+ };
88447
+ module2.exports = {
88448
+ HEX
88449
+ };
88450
+ }
88451
+ });
88452
+
88453
+ // node_modules/fast-uri/lib/utils.js
88454
+ var require_utils2 = __commonJS({
88455
+ "node_modules/fast-uri/lib/utils.js"(exports2, module2) {
88456
+ "use strict";
88457
+ var { HEX } = require_scopedChars();
88458
+ function normalizeIPv4(host) {
88459
+ if (findToken(host, ".") < 3) {
88460
+ return { host, isIPV4: false };
88477
88461
  }
88478
- function mapDomain(string, fn) {
88479
- var parts = string.split("@");
88480
- var result = "";
88481
- if (parts.length > 1) {
88482
- result = parts[0] + "@";
88483
- string = parts[1];
88484
- }
88485
- string = string.replace(regexSeparators, ".");
88486
- var labels = string.split(".");
88487
- var encoded = map(labels, fn).join(".");
88488
- return result + encoded;
88462
+ const matches = host.match(/^(\b[01]?\d{1,2}|\b2[0-4]\d|\b25[0-5])(\.([01]?\d{1,2}|2[0-4]\d|25[0-5])){3}$/u) || [];
88463
+ const [address] = matches;
88464
+ if (address) {
88465
+ return { host: stripLeadingZeros(address, "."), isIPV4: true };
88466
+ } else {
88467
+ return { host, isIPV4: false };
88489
88468
  }
88490
- function ucs2decode(string) {
88491
- var output = [];
88492
- var counter = 0;
88493
- var length = string.length;
88494
- while (counter < length) {
88495
- var value = string.charCodeAt(counter++);
88496
- if (value >= 55296 && value <= 56319 && counter < length) {
88497
- var extra = string.charCodeAt(counter++);
88498
- if ((extra & 64512) == 56320) {
88499
- output.push(((value & 1023) << 10) + (extra & 1023) + 65536);
88469
+ }
88470
+ function stringToHexStripped(input) {
88471
+ let acc = "";
88472
+ let strip = true;
88473
+ for (const c of input) {
88474
+ if (c !== "0" && strip === true)
88475
+ strip = false;
88476
+ if (HEX[c] === void 0)
88477
+ return void 0;
88478
+ if (!strip)
88479
+ acc += c;
88480
+ }
88481
+ return acc;
88482
+ }
88483
+ function getIPV6(input) {
88484
+ let tokenCount = 0;
88485
+ const output = { error: false, address: "", zone: "" };
88486
+ const address = [];
88487
+ const buffer = [];
88488
+ let isZone = false;
88489
+ let endipv6Encountered = false;
88490
+ let endIpv6 = false;
88491
+ function consume() {
88492
+ if (buffer.length) {
88493
+ if (isZone === false) {
88494
+ const hex = stringToHexStripped(buffer.join(""));
88495
+ if (hex !== void 0) {
88496
+ address.push(hex);
88500
88497
  } else {
88501
- output.push(value);
88502
- counter--;
88498
+ output.error = true;
88499
+ return false;
88503
88500
  }
88504
- } else {
88505
- output.push(value);
88506
88501
  }
88502
+ buffer.length = 0;
88507
88503
  }
88508
- return output;
88504
+ return true;
88509
88505
  }
88510
- var ucs2encode = function ucs2encode2(array) {
88511
- return String.fromCodePoint.apply(String, toConsumableArray(array));
88512
- };
88513
- var basicToDigit = function basicToDigit2(codePoint) {
88514
- if (codePoint - 48 < 10) {
88515
- return codePoint - 22;
88516
- }
88517
- if (codePoint - 65 < 26) {
88518
- return codePoint - 65;
88519
- }
88520
- if (codePoint - 97 < 26) {
88521
- return codePoint - 97;
88522
- }
88523
- return base;
88524
- };
88525
- var digitToBasic = function digitToBasic2(digit, flag) {
88526
- return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
88527
- };
88528
- var adapt = function adapt2(delta, numPoints, firstTime) {
88529
- var k = 0;
88530
- delta = firstTime ? floor(delta / damp) : delta >> 1;
88531
- delta += floor(delta / numPoints);
88532
- for (
88533
- ;
88534
- /* no initialization */
88535
- delta > baseMinusTMin * tMax >> 1;
88536
- k += base
88537
- ) {
88538
- delta = floor(delta / baseMinusTMin);
88539
- }
88540
- return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
88541
- };
88542
- var decode = function decode2(input) {
88543
- var output = [];
88544
- var inputLength = input.length;
88545
- var i = 0;
88546
- var n = initialN;
88547
- var bias = initialBias;
88548
- var basic = input.lastIndexOf(delimiter);
88549
- if (basic < 0) {
88550
- basic = 0;
88551
- }
88552
- for (var j = 0; j < basic; ++j) {
88553
- if (input.charCodeAt(j) >= 128) {
88554
- error$1("not-basic");
88555
- }
88556
- output.push(input.charCodeAt(j));
88557
- }
88558
- for (var index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {
88559
- var oldi = i;
88560
- for (
88561
- var w = 1, k = base;
88562
- ;
88563
- /* no condition */
88564
- k += base
88565
- ) {
88566
- if (index >= inputLength) {
88567
- error$1("invalid-input");
88568
- }
88569
- var digit = basicToDigit(input.charCodeAt(index++));
88570
- if (digit >= base || digit > floor((maxInt - i) / w)) {
88571
- error$1("overflow");
88572
- }
88573
- i += digit * w;
88574
- var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
88575
- if (digit < t) {
88576
- break;
88577
- }
88578
- var baseMinusT = base - t;
88579
- if (w > floor(maxInt / baseMinusT)) {
88580
- error$1("overflow");
88581
- }
88582
- w *= baseMinusT;
88583
- }
88584
- var out = output.length + 1;
88585
- bias = adapt(i - oldi, out, oldi == 0);
88586
- if (floor(i / out) > maxInt - n) {
88587
- error$1("overflow");
88588
- }
88589
- n += floor(i / out);
88590
- i %= out;
88591
- output.splice(i++, 0, n);
88506
+ for (let i = 0; i < input.length; i++) {
88507
+ const cursor = input[i];
88508
+ if (cursor === "[" || cursor === "]") {
88509
+ continue;
88592
88510
  }
88593
- return String.fromCodePoint.apply(String, output);
88594
- };
88595
- var encode = function encode2(input) {
88596
- var output = [];
88597
- input = ucs2decode(input);
88598
- var inputLength = input.length;
88599
- var n = initialN;
88600
- var delta = 0;
88601
- var bias = initialBias;
88602
- var _iteratorNormalCompletion = true;
88603
- var _didIteratorError = false;
88604
- var _iteratorError = void 0;
88605
- try {
88606
- for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
88607
- var _currentValue2 = _step.value;
88608
- if (_currentValue2 < 128) {
88609
- output.push(stringFromCharCode(_currentValue2));
88610
- }
88511
+ if (cursor === ":") {
88512
+ if (endipv6Encountered === true) {
88513
+ endIpv6 = true;
88611
88514
  }
88612
- } catch (err) {
88613
- _didIteratorError = true;
88614
- _iteratorError = err;
88615
- } finally {
88616
- try {
88617
- if (!_iteratorNormalCompletion && _iterator.return) {
88618
- _iterator.return();
88619
- }
88620
- } finally {
88621
- if (_didIteratorError) {
88622
- throw _iteratorError;
88623
- }
88515
+ if (!consume()) {
88516
+ break;
88624
88517
  }
88625
- }
88626
- var basicLength = output.length;
88627
- var handledCPCount = basicLength;
88628
- if (basicLength) {
88629
- output.push(delimiter);
88630
- }
88631
- while (handledCPCount < inputLength) {
88632
- var m = maxInt;
88633
- var _iteratorNormalCompletion2 = true;
88634
- var _didIteratorError2 = false;
88635
- var _iteratorError2 = void 0;
88636
- try {
88637
- for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
88638
- var currentValue = _step2.value;
88639
- if (currentValue >= n && currentValue < m) {
88640
- m = currentValue;
88641
- }
88642
- }
88643
- } catch (err) {
88644
- _didIteratorError2 = true;
88645
- _iteratorError2 = err;
88646
- } finally {
88647
- try {
88648
- if (!_iteratorNormalCompletion2 && _iterator2.return) {
88649
- _iterator2.return();
88650
- }
88651
- } finally {
88652
- if (_didIteratorError2) {
88653
- throw _iteratorError2;
88654
- }
88655
- }
88518
+ tokenCount++;
88519
+ address.push(":");
88520
+ if (tokenCount > 7) {
88521
+ output.error = true;
88522
+ break;
88656
88523
  }
88657
- var handledCPCountPlusOne = handledCPCount + 1;
88658
- if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
88659
- error$1("overflow");
88524
+ if (i - 1 >= 0 && input[i - 1] === ":") {
88525
+ endipv6Encountered = true;
88660
88526
  }
88661
- delta += (m - n) * handledCPCountPlusOne;
88662
- n = m;
88663
- var _iteratorNormalCompletion3 = true;
88664
- var _didIteratorError3 = false;
88665
- var _iteratorError3 = void 0;
88666
- try {
88667
- for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
88668
- var _currentValue = _step3.value;
88669
- if (_currentValue < n && ++delta > maxInt) {
88670
- error$1("overflow");
88671
- }
88672
- if (_currentValue == n) {
88673
- var q = delta;
88674
- for (
88675
- var k = base;
88676
- ;
88677
- /* no condition */
88678
- k += base
88679
- ) {
88680
- var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
88681
- if (q < t) {
88682
- break;
88683
- }
88684
- var qMinusT = q - t;
88685
- var baseMinusT = base - t;
88686
- output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
88687
- q = floor(qMinusT / baseMinusT);
88688
- }
88689
- output.push(stringFromCharCode(digitToBasic(q, 0)));
88690
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
88691
- delta = 0;
88692
- ++handledCPCount;
88693
- }
88694
- }
88695
- } catch (err) {
88696
- _didIteratorError3 = true;
88697
- _iteratorError3 = err;
88698
- } finally {
88699
- try {
88700
- if (!_iteratorNormalCompletion3 && _iterator3.return) {
88701
- _iterator3.return();
88702
- }
88703
- } finally {
88704
- if (_didIteratorError3) {
88705
- throw _iteratorError3;
88706
- }
88707
- }
88527
+ continue;
88528
+ } else if (cursor === "%") {
88529
+ if (!consume()) {
88530
+ break;
88708
88531
  }
88709
- ++delta;
88710
- ++n;
88532
+ isZone = true;
88533
+ } else {
88534
+ buffer.push(cursor);
88535
+ continue;
88711
88536
  }
88712
- return output.join("");
88713
- };
88714
- var toUnicode = function toUnicode2(input) {
88715
- return mapDomain(input, function(string) {
88716
- return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
88717
- });
88718
- };
88719
- var toASCII = function toASCII2(input) {
88720
- return mapDomain(input, function(string) {
88721
- return regexNonASCII.test(string) ? "xn--" + encode(string) : string;
88722
- });
88723
- };
88724
- var punycode = {
88725
- /**
88726
- * A string representing the current Punycode.js version number.
88727
- * @memberOf punycode
88728
- * @type String
88729
- */
88730
- "version": "2.1.0",
88731
- /**
88732
- * An object of methods to convert from JavaScript's internal character
88733
- * representation (UCS-2) to Unicode code points, and back.
88734
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
88735
- * @memberOf punycode
88736
- * @type Object
88737
- */
88738
- "ucs2": {
88739
- "decode": ucs2decode,
88740
- "encode": ucs2encode
88741
- },
88742
- "decode": decode,
88743
- "encode": encode,
88744
- "toASCII": toASCII,
88745
- "toUnicode": toUnicode
88746
- };
88747
- var SCHEMES = {};
88748
- function pctEncChar(chr) {
88749
- var c = chr.charCodeAt(0);
88750
- var e = void 0;
88751
- if (c < 16)
88752
- e = "%0" + c.toString(16).toUpperCase();
88753
- else if (c < 128)
88754
- e = "%" + c.toString(16).toUpperCase();
88755
- else if (c < 2048)
88756
- e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
88757
- else
88758
- e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
88759
- return e;
88760
88537
  }
88761
- function pctDecChars(str) {
88762
- var newStr = "";
88763
- var i = 0;
88764
- var il = str.length;
88765
- while (i < il) {
88766
- var c = parseInt(str.substr(i + 1, 2), 16);
88767
- if (c < 128) {
88768
- newStr += String.fromCharCode(c);
88769
- i += 3;
88770
- } else if (c >= 194 && c < 224) {
88771
- if (il - i >= 6) {
88772
- var c2 = parseInt(str.substr(i + 4, 2), 16);
88773
- newStr += String.fromCharCode((c & 31) << 6 | c2 & 63);
88774
- } else {
88775
- newStr += str.substr(i, 6);
88776
- }
88777
- i += 6;
88778
- } else if (c >= 224) {
88779
- if (il - i >= 9) {
88780
- var _c = parseInt(str.substr(i + 4, 2), 16);
88781
- var c3 = parseInt(str.substr(i + 7, 2), 16);
88782
- newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63);
88783
- } else {
88784
- newStr += str.substr(i, 9);
88785
- }
88786
- i += 9;
88787
- } else {
88788
- newStr += str.substr(i, 3);
88789
- i += 3;
88790
- }
88538
+ if (buffer.length) {
88539
+ if (isZone) {
88540
+ output.zone = buffer.join("");
88541
+ } else if (endIpv6) {
88542
+ address.push(buffer.join(""));
88543
+ } else {
88544
+ address.push(stringToHexStripped(buffer.join("")));
88791
88545
  }
88792
- return newStr;
88793
88546
  }
88794
- function _normalizeComponentEncoding(components, protocol) {
88795
- function decodeUnreserved2(str) {
88796
- var decStr = pctDecChars(str);
88797
- return !decStr.match(protocol.UNRESERVED) ? str : decStr;
88798
- }
88799
- if (components.scheme)
88800
- components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved2).toLowerCase().replace(protocol.NOT_SCHEME, "");
88801
- if (components.userinfo !== void 0)
88802
- components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
88803
- if (components.host !== void 0)
88804
- components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved2).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
88805
- if (components.path !== void 0)
88806
- components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
88807
- if (components.query !== void 0)
88808
- components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
88809
- if (components.fragment !== void 0)
88810
- components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
88811
- return components;
88812
- }
88813
- function _stripLeadingZeros(str) {
88814
- return str.replace(/^0*(.*)/, "$1") || "0";
88815
- }
88816
- function _normalizeIPv4(host, protocol) {
88817
- var matches = host.match(protocol.IPV4ADDRESS) || [];
88818
- var _matches = slicedToArray(matches, 2), address = _matches[1];
88819
- if (address) {
88820
- return address.split(".").map(_stripLeadingZeros).join(".");
88821
- } else {
88822
- return host;
88823
- }
88824
- }
88825
- function _normalizeIPv6(host, protocol) {
88826
- var matches = host.match(protocol.IPV6ADDRESS) || [];
88827
- var _matches2 = slicedToArray(matches, 3), address = _matches2[1], zone = _matches2[2];
88828
- if (address) {
88829
- var _address$toLowerCase$ = address.toLowerCase().split("::").reverse(), _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2), last = _address$toLowerCase$2[0], first = _address$toLowerCase$2[1];
88830
- var firstFields = first ? first.split(":").map(_stripLeadingZeros) : [];
88831
- var lastFields = last.split(":").map(_stripLeadingZeros);
88832
- var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
88833
- var fieldCount = isLastFieldIPv4Address ? 7 : 8;
88834
- var lastFieldsStart = lastFields.length - fieldCount;
88835
- var fields = Array(fieldCount);
88836
- for (var x = 0; x < fieldCount; ++x) {
88837
- fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || "";
88838
- }
88839
- if (isLastFieldIPv4Address) {
88840
- fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
88841
- }
88842
- var allZeroFields = fields.reduce(function(acc, field, index) {
88843
- if (!field || field === "0") {
88844
- var lastLongest = acc[acc.length - 1];
88845
- if (lastLongest && lastLongest.index + lastLongest.length === index) {
88846
- lastLongest.length++;
88847
- } else {
88848
- acc.push({ index, length: 1 });
88849
- }
88850
- }
88851
- return acc;
88852
- }, []);
88853
- var longestZeroFields = allZeroFields.sort(function(a, b) {
88854
- return b.length - a.length;
88855
- })[0];
88856
- var newHost = void 0;
88857
- if (longestZeroFields && longestZeroFields.length > 1) {
88858
- var newFirst = fields.slice(0, longestZeroFields.index);
88859
- var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
88860
- newHost = newFirst.join(":") + "::" + newLast.join(":");
88861
- } else {
88862
- newHost = fields.join(":");
88863
- }
88864
- if (zone) {
88865
- newHost += "%" + zone;
88547
+ output.address = address.join("");
88548
+ return output;
88549
+ }
88550
+ function normalizeIPv6(host, opts = {}) {
88551
+ if (findToken(host, ":") < 2) {
88552
+ return { host, isIPV6: false };
88553
+ }
88554
+ const ipv6 = getIPV6(host);
88555
+ if (!ipv6.error) {
88556
+ let newHost = ipv6.address;
88557
+ let escapedHost = ipv6.address;
88558
+ if (ipv6.zone) {
88559
+ newHost += "%" + ipv6.zone;
88560
+ escapedHost += "%25" + ipv6.zone;
88561
+ }
88562
+ return { host: newHost, escapedHost, isIPV6: true };
88563
+ } else {
88564
+ return { host, isIPV6: false };
88565
+ }
88566
+ }
88567
+ function stripLeadingZeros(str, token) {
88568
+ let out = "";
88569
+ let skip = true;
88570
+ const l = str.length;
88571
+ for (let i = 0; i < l; i++) {
88572
+ const c = str[i];
88573
+ if (c === "0" && skip) {
88574
+ if (i + 1 <= l && str[i + 1] === token || i + 1 === l) {
88575
+ out += c;
88576
+ skip = false;
88866
88577
  }
88867
- return newHost;
88868
88578
  } else {
88869
- return host;
88870
- }
88871
- }
88872
- var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;
88873
- var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === void 0;
88874
- function parse(uriString) {
88875
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
88876
- var components = {};
88877
- var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
88878
- if (options.reference === "suffix")
88879
- uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
88880
- var matches = uriString.match(URI_PARSE);
88881
- if (matches) {
88882
- if (NO_MATCH_IS_UNDEFINED) {
88883
- components.scheme = matches[1];
88884
- components.userinfo = matches[3];
88885
- components.host = matches[4];
88886
- components.port = parseInt(matches[5], 10);
88887
- components.path = matches[6] || "";
88888
- components.query = matches[7];
88889
- components.fragment = matches[8];
88890
- if (isNaN(components.port)) {
88891
- components.port = matches[5];
88892
- }
88893
- } else {
88894
- components.scheme = matches[1] || void 0;
88895
- components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : void 0;
88896
- components.host = uriString.indexOf("//") !== -1 ? matches[4] : void 0;
88897
- components.port = parseInt(matches[5], 10);
88898
- components.path = matches[6] || "";
88899
- components.query = uriString.indexOf("?") !== -1 ? matches[7] : void 0;
88900
- components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : void 0;
88901
- if (isNaN(components.port)) {
88902
- components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : void 0;
88903
- }
88904
- }
88905
- if (components.host) {
88906
- components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);
88907
- }
88908
- if (components.scheme === void 0 && components.userinfo === void 0 && components.host === void 0 && components.port === void 0 && !components.path && components.query === void 0) {
88909
- components.reference = "same-document";
88910
- } else if (components.scheme === void 0) {
88911
- components.reference = "relative";
88912
- } else if (components.fragment === void 0) {
88913
- components.reference = "absolute";
88579
+ if (c === token) {
88580
+ skip = true;
88914
88581
  } else {
88915
- components.reference = "uri";
88916
- }
88917
- if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) {
88918
- components.error = components.error || "URI is not a " + options.reference + " reference.";
88582
+ skip = false;
88919
88583
  }
88920
- var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
88921
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
88922
- if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) {
88923
- try {
88924
- components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
88925
- } catch (e) {
88926
- components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
88927
- }
88928
- }
88929
- _normalizeComponentEncoding(components, URI_PROTOCOL);
88930
- } else {
88931
- _normalizeComponentEncoding(components, protocol);
88932
- }
88933
- if (schemeHandler && schemeHandler.parse) {
88934
- schemeHandler.parse(components, options);
88935
- }
88936
- } else {
88937
- components.error = components.error || "URI can not be parsed.";
88584
+ out += c;
88938
88585
  }
88939
- return components;
88940
88586
  }
88941
- function _recomposeAuthority(components, options) {
88942
- var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
88943
- var uriTokens = [];
88944
- if (components.userinfo !== void 0) {
88945
- uriTokens.push(components.userinfo);
88946
- uriTokens.push("@");
88947
- }
88948
- if (components.host !== void 0) {
88949
- uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function(_, $1, $2) {
88950
- return "[" + $1 + ($2 ? "%25" + $2 : "") + "]";
88951
- }));
88952
- }
88953
- if (typeof components.port === "number" || typeof components.port === "string") {
88954
- uriTokens.push(":");
88955
- uriTokens.push(String(components.port));
88956
- }
88957
- return uriTokens.length ? uriTokens.join("") : void 0;
88587
+ return out;
88588
+ }
88589
+ function findToken(str, token) {
88590
+ let ind = 0;
88591
+ for (let i = 0; i < str.length; i++) {
88592
+ if (str[i] === token)
88593
+ ind++;
88958
88594
  }
88959
- var RDS1 = /^\.\.?\//;
88960
- var RDS2 = /^\/\.(\/|$)/;
88961
- var RDS3 = /^\/\.\.(\/|$)/;
88962
- var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/;
88963
- function removeDotSegments(input) {
88964
- var output = [];
88965
- while (input.length) {
88966
- if (input.match(RDS1)) {
88967
- input = input.replace(RDS1, "");
88968
- } else if (input.match(RDS2)) {
88969
- input = input.replace(RDS2, "/");
88970
- } else if (input.match(RDS3)) {
88971
- input = input.replace(RDS3, "/");
88972
- output.pop();
88973
- } else if (input === "." || input === "..") {
88974
- input = "";
88595
+ return ind;
88596
+ }
88597
+ var RDS1 = /^\.\.?\//u;
88598
+ var RDS2 = /^\/\.(?:\/|$)/u;
88599
+ var RDS3 = /^\/\.\.(?:\/|$)/u;
88600
+ var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/u;
88601
+ function removeDotSegments(input) {
88602
+ const output = [];
88603
+ while (input.length) {
88604
+ if (input.match(RDS1)) {
88605
+ input = input.replace(RDS1, "");
88606
+ } else if (input.match(RDS2)) {
88607
+ input = input.replace(RDS2, "/");
88608
+ } else if (input.match(RDS3)) {
88609
+ input = input.replace(RDS3, "/");
88610
+ output.pop();
88611
+ } else if (input === "." || input === "..") {
88612
+ input = "";
88613
+ } else {
88614
+ const im = input.match(RDS5);
88615
+ if (im) {
88616
+ const s = im[0];
88617
+ input = input.slice(s.length);
88618
+ output.push(s);
88975
88619
  } else {
88976
- var im = input.match(RDS5);
88977
- if (im) {
88978
- var s = im[0];
88979
- input = input.slice(s.length);
88980
- output.push(s);
88981
- } else {
88982
- throw new Error("Unexpected dot segment condition");
88983
- }
88620
+ throw new Error("Unexpected dot segment condition");
88984
88621
  }
88985
88622
  }
88986
- return output.join("");
88987
88623
  }
88988
- function serialize(components) {
88989
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
88990
- var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;
88991
- var uriTokens = [];
88992
- var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
88993
- if (schemeHandler && schemeHandler.serialize)
88994
- schemeHandler.serialize(components, options);
88995
- if (components.host) {
88996
- if (protocol.IPV6ADDRESS.test(components.host)) {
88997
- } else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {
88998
- try {
88999
- components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host);
89000
- } catch (e) {
89001
- components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
89002
- }
89003
- }
89004
- }
89005
- _normalizeComponentEncoding(components, protocol);
89006
- if (options.reference !== "suffix" && components.scheme) {
89007
- uriTokens.push(components.scheme);
89008
- uriTokens.push(":");
89009
- }
89010
- var authority = _recomposeAuthority(components, options);
89011
- if (authority !== void 0) {
89012
- if (options.reference !== "suffix") {
89013
- uriTokens.push("//");
89014
- }
89015
- uriTokens.push(authority);
89016
- if (components.path && components.path.charAt(0) !== "/") {
89017
- uriTokens.push("/");
89018
- }
89019
- }
89020
- if (components.path !== void 0) {
89021
- var s = components.path;
89022
- if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
89023
- s = removeDotSegments(s);
89024
- }
89025
- if (authority === void 0) {
89026
- s = s.replace(/^\/\//, "/%2F");
88624
+ return output.join("");
88625
+ }
88626
+ function normalizeComponentEncoding(components, esc) {
88627
+ const func = esc !== true ? escape : unescape;
88628
+ if (components.scheme !== void 0) {
88629
+ components.scheme = func(components.scheme);
88630
+ }
88631
+ if (components.userinfo !== void 0) {
88632
+ components.userinfo = func(components.userinfo);
88633
+ }
88634
+ if (components.host !== void 0) {
88635
+ components.host = func(components.host);
88636
+ }
88637
+ if (components.path !== void 0) {
88638
+ components.path = func(components.path);
88639
+ }
88640
+ if (components.query !== void 0) {
88641
+ components.query = func(components.query);
88642
+ }
88643
+ if (components.fragment !== void 0) {
88644
+ components.fragment = func(components.fragment);
88645
+ }
88646
+ return components;
88647
+ }
88648
+ function recomposeAuthority(components, options) {
88649
+ const uriTokens = [];
88650
+ if (components.userinfo !== void 0) {
88651
+ uriTokens.push(components.userinfo);
88652
+ uriTokens.push("@");
88653
+ }
88654
+ if (components.host !== void 0) {
88655
+ let host = unescape(components.host);
88656
+ const ipV4res = normalizeIPv4(host);
88657
+ if (ipV4res.isIPV4) {
88658
+ host = ipV4res.host;
88659
+ } else {
88660
+ const ipV6res = normalizeIPv6(ipV4res.host, { isIPV4: false });
88661
+ if (ipV6res.isIPV6 === true) {
88662
+ host = `[${ipV6res.escapedHost}]`;
88663
+ } else {
88664
+ host = components.host;
89027
88665
  }
89028
- uriTokens.push(s);
89029
88666
  }
89030
- if (components.query !== void 0) {
89031
- uriTokens.push("?");
89032
- uriTokens.push(components.query);
89033
- }
89034
- if (components.fragment !== void 0) {
89035
- uriTokens.push("#");
89036
- uriTokens.push(components.fragment);
89037
- }
89038
- return uriTokens.join("");
88667
+ uriTokens.push(host);
89039
88668
  }
89040
- function resolveComponents(base2, relative) {
89041
- var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
89042
- var skipNormalization = arguments[3];
89043
- var target = {};
89044
- if (!skipNormalization) {
89045
- base2 = parse(serialize(base2, options), options);
89046
- relative = parse(serialize(relative, options), options);
88669
+ if (typeof components.port === "number" || typeof components.port === "string") {
88670
+ uriTokens.push(":");
88671
+ uriTokens.push(String(components.port));
88672
+ }
88673
+ return uriTokens.length ? uriTokens.join("") : void 0;
88674
+ }
88675
+ module2.exports = {
88676
+ recomposeAuthority,
88677
+ normalizeComponentEncoding,
88678
+ removeDotSegments,
88679
+ normalizeIPv4,
88680
+ normalizeIPv6,
88681
+ stringToHexStripped
88682
+ };
88683
+ }
88684
+ });
88685
+
88686
+ // node_modules/fast-uri/lib/schemes.js
88687
+ var require_schemes = __commonJS({
88688
+ "node_modules/fast-uri/lib/schemes.js"(exports2, module2) {
88689
+ "use strict";
88690
+ var UUID_REG = /^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu;
88691
+ var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
88692
+ function isSecure(wsComponents) {
88693
+ return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
88694
+ }
88695
+ function httpParse(components) {
88696
+ if (!components.host) {
88697
+ components.error = components.error || "HTTP URIs must have a host.";
88698
+ }
88699
+ return components;
88700
+ }
88701
+ function httpSerialize(components) {
88702
+ const secure = String(components.scheme).toLowerCase() === "https";
88703
+ if (components.port === (secure ? 443 : 80) || components.port === "") {
88704
+ components.port = void 0;
88705
+ }
88706
+ if (!components.path) {
88707
+ components.path = "/";
88708
+ }
88709
+ return components;
88710
+ }
88711
+ function wsParse(wsComponents) {
88712
+ wsComponents.secure = isSecure(wsComponents);
88713
+ wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
88714
+ wsComponents.path = void 0;
88715
+ wsComponents.query = void 0;
88716
+ return wsComponents;
88717
+ }
88718
+ function wsSerialize(wsComponents) {
88719
+ if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
88720
+ wsComponents.port = void 0;
88721
+ }
88722
+ if (typeof wsComponents.secure === "boolean") {
88723
+ wsComponents.scheme = wsComponents.secure ? "wss" : "ws";
88724
+ wsComponents.secure = void 0;
88725
+ }
88726
+ if (wsComponents.resourceName) {
88727
+ const [path, query] = wsComponents.resourceName.split("?");
88728
+ wsComponents.path = path && path !== "/" ? path : void 0;
88729
+ wsComponents.query = query;
88730
+ wsComponents.resourceName = void 0;
88731
+ }
88732
+ wsComponents.fragment = void 0;
88733
+ return wsComponents;
88734
+ }
88735
+ function urnParse(urnComponents, options) {
88736
+ if (!urnComponents.path) {
88737
+ urnComponents.error = "URN can not be parsed";
88738
+ return urnComponents;
88739
+ }
88740
+ const matches = urnComponents.path.match(URN_REG);
88741
+ if (matches) {
88742
+ const scheme = options.scheme || urnComponents.scheme || "urn";
88743
+ urnComponents.nid = matches[1].toLowerCase();
88744
+ urnComponents.nss = matches[2];
88745
+ const urnScheme = `${scheme}:${options.nid || urnComponents.nid}`;
88746
+ const schemeHandler = SCHEMES[urnScheme];
88747
+ urnComponents.path = void 0;
88748
+ if (schemeHandler) {
88749
+ urnComponents = schemeHandler.parse(urnComponents, options);
89047
88750
  }
89048
- options = options || {};
89049
- if (!options.tolerant && relative.scheme) {
89050
- target.scheme = relative.scheme;
88751
+ } else {
88752
+ urnComponents.error = urnComponents.error || "URN can not be parsed.";
88753
+ }
88754
+ return urnComponents;
88755
+ }
88756
+ function urnSerialize(urnComponents, options) {
88757
+ const scheme = options.scheme || urnComponents.scheme || "urn";
88758
+ const nid = urnComponents.nid.toLowerCase();
88759
+ const urnScheme = `${scheme}:${options.nid || nid}`;
88760
+ const schemeHandler = SCHEMES[urnScheme];
88761
+ if (schemeHandler) {
88762
+ urnComponents = schemeHandler.serialize(urnComponents, options);
88763
+ }
88764
+ const uriComponents = urnComponents;
88765
+ const nss = urnComponents.nss;
88766
+ uriComponents.path = `${nid || options.nid}:${nss}`;
88767
+ options.skipEscape = true;
88768
+ return uriComponents;
88769
+ }
88770
+ function urnuuidParse(urnComponents, options) {
88771
+ const uuidComponents = urnComponents;
88772
+ uuidComponents.uuid = uuidComponents.nss;
88773
+ uuidComponents.nss = void 0;
88774
+ if (!options.tolerant && (!uuidComponents.uuid || !UUID_REG.test(uuidComponents.uuid))) {
88775
+ uuidComponents.error = uuidComponents.error || "UUID is not valid.";
88776
+ }
88777
+ return uuidComponents;
88778
+ }
88779
+ function urnuuidSerialize(uuidComponents) {
88780
+ const urnComponents = uuidComponents;
88781
+ urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
88782
+ return urnComponents;
88783
+ }
88784
+ var http = {
88785
+ scheme: "http",
88786
+ domainHost: true,
88787
+ parse: httpParse,
88788
+ serialize: httpSerialize
88789
+ };
88790
+ var https = {
88791
+ scheme: "https",
88792
+ domainHost: http.domainHost,
88793
+ parse: httpParse,
88794
+ serialize: httpSerialize
88795
+ };
88796
+ var ws = {
88797
+ scheme: "ws",
88798
+ domainHost: true,
88799
+ parse: wsParse,
88800
+ serialize: wsSerialize
88801
+ };
88802
+ var wss = {
88803
+ scheme: "wss",
88804
+ domainHost: ws.domainHost,
88805
+ parse: ws.parse,
88806
+ serialize: ws.serialize
88807
+ };
88808
+ var urn = {
88809
+ scheme: "urn",
88810
+ parse: urnParse,
88811
+ serialize: urnSerialize,
88812
+ skipNormalize: true
88813
+ };
88814
+ var urnuuid = {
88815
+ scheme: "urn:uuid",
88816
+ parse: urnuuidParse,
88817
+ serialize: urnuuidSerialize,
88818
+ skipNormalize: true
88819
+ };
88820
+ var SCHEMES = {
88821
+ http,
88822
+ https,
88823
+ ws,
88824
+ wss,
88825
+ urn,
88826
+ "urn:uuid": urnuuid
88827
+ };
88828
+ module2.exports = SCHEMES;
88829
+ }
88830
+ });
88831
+
88832
+ // node_modules/fast-uri/index.js
88833
+ var require_fast_uri = __commonJS({
88834
+ "node_modules/fast-uri/index.js"(exports2, module2) {
88835
+ "use strict";
88836
+ var URL2 = require("node:url");
88837
+ var { normalizeIPv6, normalizeIPv4, removeDotSegments, recomposeAuthority, normalizeComponentEncoding } = require_utils2();
88838
+ var SCHEMES = require_schemes();
88839
+ function normalize(uri, options) {
88840
+ if (typeof uri === "string") {
88841
+ uri = serialize(parse(uri, options), options);
88842
+ } else if (typeof uri === "object") {
88843
+ uri = parse(serialize(uri, options), options);
88844
+ }
88845
+ return uri;
88846
+ }
88847
+ function resolve(baseURI, relativeURI, options) {
88848
+ const schemelessOptions = Object.assign({ scheme: "null" }, options);
88849
+ const resolved = resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true);
88850
+ return serialize(resolved, { ...schemelessOptions, skipEscape: true });
88851
+ }
88852
+ function resolveComponents(base, relative, options, skipNormalization) {
88853
+ const target = {};
88854
+ if (!skipNormalization) {
88855
+ base = parse(serialize(base, options), options);
88856
+ relative = parse(serialize(relative, options), options);
88857
+ }
88858
+ options = options || {};
88859
+ if (!options.tolerant && relative.scheme) {
88860
+ target.scheme = relative.scheme;
88861
+ target.userinfo = relative.userinfo;
88862
+ target.host = relative.host;
88863
+ target.port = relative.port;
88864
+ target.path = removeDotSegments(relative.path || "");
88865
+ target.query = relative.query;
88866
+ } else {
88867
+ if (relative.userinfo !== void 0 || relative.host !== void 0 || relative.port !== void 0) {
89051
88868
  target.userinfo = relative.userinfo;
89052
88869
  target.host = relative.host;
89053
88870
  target.port = relative.port;
89054
88871
  target.path = removeDotSegments(relative.path || "");
89055
88872
  target.query = relative.query;
89056
88873
  } else {
89057
- if (relative.userinfo !== void 0 || relative.host !== void 0 || relative.port !== void 0) {
89058
- target.userinfo = relative.userinfo;
89059
- target.host = relative.host;
89060
- target.port = relative.port;
89061
- target.path = removeDotSegments(relative.path || "");
89062
- target.query = relative.query;
88874
+ if (!relative.path) {
88875
+ target.path = base.path;
88876
+ if (relative.query !== void 0) {
88877
+ target.query = relative.query;
88878
+ } else {
88879
+ target.query = base.query;
88880
+ }
89063
88881
  } else {
89064
- if (!relative.path) {
89065
- target.path = base2.path;
89066
- if (relative.query !== void 0) {
89067
- target.query = relative.query;
89068
- } else {
89069
- target.query = base2.query;
89070
- }
88882
+ if (relative.path.charAt(0) === "/") {
88883
+ target.path = removeDotSegments(relative.path);
89071
88884
  } else {
89072
- if (relative.path.charAt(0) === "/") {
89073
- target.path = removeDotSegments(relative.path);
88885
+ if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
88886
+ target.path = "/" + relative.path;
88887
+ } else if (!base.path) {
88888
+ target.path = relative.path;
89074
88889
  } else {
89075
- if ((base2.userinfo !== void 0 || base2.host !== void 0 || base2.port !== void 0) && !base2.path) {
89076
- target.path = "/" + relative.path;
89077
- } else if (!base2.path) {
89078
- target.path = relative.path;
89079
- } else {
89080
- target.path = base2.path.slice(0, base2.path.lastIndexOf("/") + 1) + relative.path;
89081
- }
89082
- target.path = removeDotSegments(target.path);
88890
+ target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
89083
88891
  }
89084
- target.query = relative.query;
88892
+ target.path = removeDotSegments(target.path);
89085
88893
  }
89086
- target.userinfo = base2.userinfo;
89087
- target.host = base2.host;
89088
- target.port = base2.port;
88894
+ target.query = relative.query;
89089
88895
  }
89090
- target.scheme = base2.scheme;
88896
+ target.userinfo = base.userinfo;
88897
+ target.host = base.host;
88898
+ target.port = base.port;
89091
88899
  }
89092
- target.fragment = relative.fragment;
89093
- return target;
88900
+ target.scheme = base.scheme;
89094
88901
  }
89095
- function resolve(baseURI, relativeURI, options) {
89096
- var schemelessOptions = assign({ scheme: "null" }, options);
89097
- return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
88902
+ target.fragment = relative.fragment;
88903
+ return target;
88904
+ }
88905
+ function equal(uriA, uriB, options) {
88906
+ if (typeof uriA === "string") {
88907
+ uriA = unescape(uriA);
88908
+ uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true });
88909
+ } else if (typeof uriA === "object") {
88910
+ uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
88911
+ }
88912
+ if (typeof uriB === "string") {
88913
+ uriB = unescape(uriB);
88914
+ uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true });
88915
+ } else if (typeof uriB === "object") {
88916
+ uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
88917
+ }
88918
+ return uriA.toLowerCase() === uriB.toLowerCase();
88919
+ }
88920
+ function serialize(cmpts, opts) {
88921
+ const components = {
88922
+ host: cmpts.host,
88923
+ scheme: cmpts.scheme,
88924
+ userinfo: cmpts.userinfo,
88925
+ port: cmpts.port,
88926
+ path: cmpts.path,
88927
+ query: cmpts.query,
88928
+ nid: cmpts.nid,
88929
+ nss: cmpts.nss,
88930
+ uuid: cmpts.uuid,
88931
+ fragment: cmpts.fragment,
88932
+ reference: cmpts.reference,
88933
+ resourceName: cmpts.resourceName,
88934
+ secure: cmpts.secure,
88935
+ error: ""
88936
+ };
88937
+ const options = Object.assign({}, opts);
88938
+ const uriTokens = [];
88939
+ const schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
88940
+ if (schemeHandler && schemeHandler.serialize)
88941
+ schemeHandler.serialize(components, options);
88942
+ if (components.path !== void 0) {
88943
+ if (!options.skipEscape) {
88944
+ components.path = escape(components.path);
88945
+ if (components.scheme !== void 0) {
88946
+ components.path = components.path.split("%3A").join(":");
88947
+ }
88948
+ } else {
88949
+ components.path = unescape(components.path);
88950
+ }
88951
+ }
88952
+ if (options.reference !== "suffix" && components.scheme) {
88953
+ uriTokens.push(components.scheme);
88954
+ uriTokens.push(":");
89098
88955
  }
89099
- function normalize(uri, options) {
89100
- if (typeof uri === "string") {
89101
- uri = serialize(parse(uri, options), options);
89102
- } else if (typeOf(uri) === "object") {
89103
- uri = parse(serialize(uri, options), options);
88956
+ const authority = recomposeAuthority(components, options);
88957
+ if (authority !== void 0) {
88958
+ if (options.reference !== "suffix") {
88959
+ uriTokens.push("//");
88960
+ }
88961
+ uriTokens.push(authority);
88962
+ if (components.path && components.path.charAt(0) !== "/") {
88963
+ uriTokens.push("/");
89104
88964
  }
89105
- return uri;
89106
88965
  }
89107
- function equal(uriA, uriB, options) {
89108
- if (typeof uriA === "string") {
89109
- uriA = serialize(parse(uriA, options), options);
89110
- } else if (typeOf(uriA) === "object") {
89111
- uriA = serialize(uriA, options);
88966
+ if (components.path !== void 0) {
88967
+ let s = components.path;
88968
+ if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
88969
+ s = removeDotSegments(s);
89112
88970
  }
89113
- if (typeof uriB === "string") {
89114
- uriB = serialize(parse(uriB, options), options);
89115
- } else if (typeOf(uriB) === "object") {
89116
- uriB = serialize(uriB, options);
88971
+ if (authority === void 0) {
88972
+ s = s.replace(/^\/\//u, "/%2F");
89117
88973
  }
89118
- return uriA === uriB;
88974
+ uriTokens.push(s);
89119
88975
  }
89120
- function escapeComponent(str, options) {
89121
- return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar);
88976
+ if (components.query !== void 0) {
88977
+ uriTokens.push("?");
88978
+ uriTokens.push(components.query);
89122
88979
  }
89123
- function unescapeComponent(str, options) {
89124
- return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars);
88980
+ if (components.fragment !== void 0) {
88981
+ uriTokens.push("#");
88982
+ uriTokens.push(components.fragment);
89125
88983
  }
89126
- var handler = {
89127
- scheme: "http",
89128
- domainHost: true,
89129
- parse: function parse2(components, options) {
89130
- if (!components.host) {
89131
- components.error = components.error || "HTTP URIs must have a host.";
89132
- }
89133
- return components;
89134
- },
89135
- serialize: function serialize2(components, options) {
89136
- var secure = String(components.scheme).toLowerCase() === "https";
89137
- if (components.port === (secure ? 443 : 80) || components.port === "") {
89138
- components.port = void 0;
89139
- }
89140
- if (!components.path) {
89141
- components.path = "/";
89142
- }
89143
- return components;
89144
- }
89145
- };
89146
- var handler$1 = {
89147
- scheme: "https",
89148
- domainHost: handler.domainHost,
89149
- parse: handler.parse,
89150
- serialize: handler.serialize
89151
- };
89152
- function isSecure(wsComponents) {
89153
- return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
89154
- }
89155
- var handler$2 = {
89156
- scheme: "ws",
89157
- domainHost: true,
89158
- parse: function parse2(components, options) {
89159
- var wsComponents = components;
89160
- wsComponents.secure = isSecure(wsComponents);
89161
- wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
89162
- wsComponents.path = void 0;
89163
- wsComponents.query = void 0;
89164
- return wsComponents;
89165
- },
89166
- serialize: function serialize2(wsComponents, options) {
89167
- if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
89168
- wsComponents.port = void 0;
89169
- }
89170
- if (typeof wsComponents.secure === "boolean") {
89171
- wsComponents.scheme = wsComponents.secure ? "wss" : "ws";
89172
- wsComponents.secure = void 0;
89173
- }
89174
- if (wsComponents.resourceName) {
89175
- var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
89176
- wsComponents.path = path && path !== "/" ? path : void 0;
89177
- wsComponents.query = query;
89178
- wsComponents.resourceName = void 0;
89179
- }
89180
- wsComponents.fragment = void 0;
89181
- return wsComponents;
88984
+ return uriTokens.join("");
88985
+ }
88986
+ var hexLookUp = Array.from({ length: 127 }, (v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)));
88987
+ function nonSimpleDomain(value) {
88988
+ let code = 0;
88989
+ for (let i = 0, len = value.length; i < len; ++i) {
88990
+ code = value.charCodeAt(i);
88991
+ if (code > 126 || hexLookUp[code]) {
88992
+ return true;
89182
88993
  }
88994
+ }
88995
+ return false;
88996
+ }
88997
+ var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
88998
+ function parse(uri, opts) {
88999
+ const options = Object.assign({}, opts);
89000
+ const parsed = {
89001
+ scheme: void 0,
89002
+ userinfo: void 0,
89003
+ host: "",
89004
+ port: void 0,
89005
+ path: "",
89006
+ query: void 0,
89007
+ fragment: void 0
89183
89008
  };
89184
- var handler$3 = {
89185
- scheme: "wss",
89186
- domainHost: handler$2.domainHost,
89187
- parse: handler$2.parse,
89188
- serialize: handler$2.serialize
89189
- };
89190
- var O = {};
89191
- var isIRI = true;
89192
- var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]";
89193
- var HEXDIG$$ = "[0-9A-Fa-f]";
89194
- var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$));
89195
- var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
89196
- var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";
89197
- var VCHAR$$ = merge(QTEXT$$, '[\\"\\\\]');
89198
- var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
89199
- var UNRESERVED = new RegExp(UNRESERVED$$, "g");
89200
- var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
89201
- var NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
89202
- var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
89203
- var NOT_HFVALUE = NOT_HFNAME;
89204
- function decodeUnreserved(str) {
89205
- var decStr = pctDecChars(str);
89206
- return !decStr.match(UNRESERVED) ? str : decStr;
89207
- }
89208
- var handler$4 = {
89209
- scheme: "mailto",
89210
- parse: function parse$$1(components, options) {
89211
- var mailtoComponents = components;
89212
- var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : [];
89213
- mailtoComponents.path = void 0;
89214
- if (mailtoComponents.query) {
89215
- var unknownHeaders = false;
89216
- var headers = {};
89217
- var hfields = mailtoComponents.query.split("&");
89218
- for (var x = 0, xl = hfields.length; x < xl; ++x) {
89219
- var hfield = hfields[x].split("=");
89220
- switch (hfield[0]) {
89221
- case "to":
89222
- var toAddrs = hfield[1].split(",");
89223
- for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) {
89224
- to.push(toAddrs[_x]);
89225
- }
89226
- break;
89227
- case "subject":
89228
- mailtoComponents.subject = unescapeComponent(hfield[1], options);
89229
- break;
89230
- case "body":
89231
- mailtoComponents.body = unescapeComponent(hfield[1], options);
89232
- break;
89233
- default:
89234
- unknownHeaders = true;
89235
- headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);
89236
- break;
89237
- }
89238
- }
89239
- if (unknownHeaders)
89240
- mailtoComponents.headers = headers;
89009
+ const gotEncoding = uri.indexOf("%") !== -1;
89010
+ if (options.reference === "suffix")
89011
+ uri = (options.scheme ? options.scheme + ":" : "") + "//" + uri;
89012
+ const matches = uri.match(URI_PARSE);
89013
+ if (matches) {
89014
+ parsed.scheme = matches[1];
89015
+ parsed.userinfo = matches[3];
89016
+ parsed.host = matches[4];
89017
+ parsed.port = parseInt(matches[5], 10);
89018
+ parsed.path = matches[6] || "";
89019
+ parsed.query = matches[7];
89020
+ parsed.fragment = matches[8];
89021
+ if (isNaN(parsed.port)) {
89022
+ parsed.port = matches[5];
89023
+ }
89024
+ if (parsed.host) {
89025
+ const ipv4result = normalizeIPv4(parsed.host);
89026
+ if (ipv4result.isIPV4 === false) {
89027
+ parsed.host = normalizeIPv6(ipv4result.host, { isIPV4: false }).host.toLowerCase();
89028
+ } else {
89029
+ parsed.host = ipv4result.host;
89241
89030
  }
89242
- mailtoComponents.query = void 0;
89243
- for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {
89244
- var addr = to[_x2].split("@");
89245
- addr[0] = unescapeComponent(addr[0]);
89246
- if (!options.unicodeSupport) {
89247
- try {
89248
- addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());
89249
- } catch (e) {
89250
- mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
89251
- }
89252
- } else {
89253
- addr[1] = unescapeComponent(addr[1], options).toLowerCase();
89031
+ }
89032
+ if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && !parsed.path && parsed.query === void 0) {
89033
+ parsed.reference = "same-document";
89034
+ } else if (parsed.scheme === void 0) {
89035
+ parsed.reference = "relative";
89036
+ } else if (parsed.fragment === void 0) {
89037
+ parsed.reference = "absolute";
89038
+ } else {
89039
+ parsed.reference = "uri";
89040
+ }
89041
+ if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) {
89042
+ parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
89043
+ }
89044
+ const schemeHandler = SCHEMES[(options.scheme || parsed.scheme || "").toLowerCase()];
89045
+ if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
89046
+ if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && nonSimpleDomain(parsed.host)) {
89047
+ try {
89048
+ parsed.host = URL2.domainToASCII(parsed.host.toLowerCase());
89049
+ } catch (e) {
89050
+ parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
89254
89051
  }
89255
- to[_x2] = addr.join("@");
89256
89052
  }
89257
- return mailtoComponents;
89258
- },
89259
- serialize: function serialize$$1(mailtoComponents, options) {
89260
- var components = mailtoComponents;
89261
- var to = toArray(mailtoComponents.to);
89262
- if (to) {
89263
- for (var x = 0, xl = to.length; x < xl; ++x) {
89264
- var toAddr = String(to[x]);
89265
- var atIdx = toAddr.lastIndexOf("@");
89266
- var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
89267
- var domain = toAddr.slice(atIdx + 1);
89268
- try {
89269
- domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain);
89270
- } catch (e) {
89271
- components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
89272
- }
89273
- to[x] = localPart + "@" + domain;
89274
- }
89275
- components.path = to.join(",");
89053
+ }
89054
+ if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
89055
+ if (gotEncoding && parsed.scheme !== void 0) {
89056
+ parsed.scheme = unescape(parsed.scheme);
89276
89057
  }
89277
- var headers = mailtoComponents.headers = mailtoComponents.headers || {};
89278
- if (mailtoComponents.subject)
89279
- headers["subject"] = mailtoComponents.subject;
89280
- if (mailtoComponents.body)
89281
- headers["body"] = mailtoComponents.body;
89282
- var fields = [];
89283
- for (var name in headers) {
89284
- if (headers[name] !== O[name]) {
89285
- fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));
89286
- }
89058
+ if (gotEncoding && parsed.userinfo !== void 0) {
89059
+ parsed.userinfo = unescape(parsed.userinfo);
89287
89060
  }
89288
- if (fields.length) {
89289
- components.query = fields.join("&");
89061
+ if (gotEncoding && parsed.host !== void 0) {
89062
+ parsed.host = unescape(parsed.host);
89290
89063
  }
89291
- return components;
89292
- }
89293
- };
89294
- var URN_PARSE = /^([^\:]+)\:(.*)/;
89295
- var handler$5 = {
89296
- scheme: "urn",
89297
- parse: function parse$$1(components, options) {
89298
- var matches = components.path && components.path.match(URN_PARSE);
89299
- var urnComponents = components;
89300
- if (matches) {
89301
- var scheme = options.scheme || urnComponents.scheme || "urn";
89302
- var nid = matches[1].toLowerCase();
89303
- var nss = matches[2];
89304
- var urnScheme = scheme + ":" + (options.nid || nid);
89305
- var schemeHandler = SCHEMES[urnScheme];
89306
- urnComponents.nid = nid;
89307
- urnComponents.nss = nss;
89308
- urnComponents.path = void 0;
89309
- if (schemeHandler) {
89310
- urnComponents = schemeHandler.parse(urnComponents, options);
89311
- }
89312
- } else {
89313
- urnComponents.error = urnComponents.error || "URN can not be parsed.";
89064
+ if (parsed.path !== void 0 && parsed.path.length) {
89065
+ parsed.path = encodeURI(parsed.path);
89314
89066
  }
89315
- return urnComponents;
89316
- },
89317
- serialize: function serialize$$1(urnComponents, options) {
89318
- var scheme = options.scheme || urnComponents.scheme || "urn";
89319
- var nid = urnComponents.nid;
89320
- var urnScheme = scheme + ":" + (options.nid || nid);
89321
- var schemeHandler = SCHEMES[urnScheme];
89322
- if (schemeHandler) {
89323
- urnComponents = schemeHandler.serialize(urnComponents, options);
89067
+ if (parsed.fragment !== void 0 && parsed.fragment.length) {
89068
+ parsed.fragment = encodeURI(decodeURI(parsed.fragment));
89324
89069
  }
89325
- var uriComponents = urnComponents;
89326
- var nss = urnComponents.nss;
89327
- uriComponents.path = (nid || options.nid) + ":" + nss;
89328
- return uriComponents;
89329
89070
  }
89330
- };
89331
- var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
89332
- var handler$6 = {
89333
- scheme: "urn:uuid",
89334
- parse: function parse2(urnComponents, options) {
89335
- var uuidComponents = urnComponents;
89336
- uuidComponents.uuid = uuidComponents.nss;
89337
- uuidComponents.nss = void 0;
89338
- if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {
89339
- uuidComponents.error = uuidComponents.error || "UUID is not valid.";
89340
- }
89341
- return uuidComponents;
89342
- },
89343
- serialize: function serialize2(uuidComponents, options) {
89344
- var urnComponents = uuidComponents;
89345
- urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
89346
- return urnComponents;
89071
+ if (schemeHandler && schemeHandler.parse) {
89072
+ schemeHandler.parse(parsed, options);
89347
89073
  }
89348
- };
89349
- SCHEMES[handler.scheme] = handler;
89350
- SCHEMES[handler$1.scheme] = handler$1;
89351
- SCHEMES[handler$2.scheme] = handler$2;
89352
- SCHEMES[handler$3.scheme] = handler$3;
89353
- SCHEMES[handler$4.scheme] = handler$4;
89354
- SCHEMES[handler$5.scheme] = handler$5;
89355
- SCHEMES[handler$6.scheme] = handler$6;
89356
- exports3.SCHEMES = SCHEMES;
89357
- exports3.pctEncChar = pctEncChar;
89358
- exports3.pctDecChars = pctDecChars;
89359
- exports3.parse = parse;
89360
- exports3.removeDotSegments = removeDotSegments;
89361
- exports3.serialize = serialize;
89362
- exports3.resolveComponents = resolveComponents;
89363
- exports3.resolve = resolve;
89364
- exports3.normalize = normalize;
89365
- exports3.equal = equal;
89366
- exports3.escapeComponent = escapeComponent;
89367
- exports3.unescapeComponent = unescapeComponent;
89368
- Object.defineProperty(exports3, "__esModule", { value: true });
89369
- });
89074
+ } else {
89075
+ parsed.error = parsed.error || "URI can not be parsed.";
89076
+ }
89077
+ return parsed;
89078
+ }
89079
+ var fastUri = {
89080
+ normalize,
89081
+ resolve,
89082
+ resolveComponents,
89083
+ equal,
89084
+ serialize,
89085
+ parse
89086
+ };
89087
+ module2.exports = fastUri;
89088
+ module2.exports.default = fastUri;
89089
+ module2.exports.fastUri = fastUri;
89370
89090
  }
89371
89091
  });
89372
89092
 
@@ -89375,7 +89095,7 @@ var require_uri2 = __commonJS({
89375
89095
  "node_modules/ajv/dist/runtime/uri.js"(exports2) {
89376
89096
  "use strict";
89377
89097
  Object.defineProperty(exports2, "__esModule", { value: true });
89378
- var uri = require_uri_all();
89098
+ var uri = require_fast_uri();
89379
89099
  uri.code = 'require("ajv/dist/runtime/uri").default';
89380
89100
  exports2.default = uri;
89381
89101
  }
@@ -91697,6 +91417,7 @@ var require_discriminator = __commonJS({
91697
91417
  var codegen_1 = require_codegen();
91698
91418
  var types_1 = require_types3();
91699
91419
  var compile_1 = require_compile();
91420
+ var ref_error_1 = require_ref_error();
91700
91421
  var util_1 = require_util2();
91701
91422
  var error = {
91702
91423
  message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`,
@@ -91749,9 +91470,12 @@ var require_discriminator = __commonJS({
91749
91470
  for (let i = 0; i < oneOf.length; i++) {
91750
91471
  let sch = oneOf[i];
91751
91472
  if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
91752
- sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref);
91473
+ const ref = sch.$ref;
91474
+ sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref);
91753
91475
  if (sch instanceof compile_1.SchemaEnv)
91754
91476
  sch = sch.schema;
91477
+ if (sch === void 0)
91478
+ throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref);
91755
91479
  }
91756
91480
  const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];
91757
91481
  if (typeof propSch != "object") {
@@ -96515,7 +96239,7 @@ var require_main = __commonJS({
96515
96239
  });
96516
96240
 
96517
96241
  // node_modules/js2xmlparser/lib/utils.js
96518
- var require_utils2 = __commonJS({
96242
+ var require_utils3 = __commonJS({
96519
96243
  "node_modules/js2xmlparser/lib/utils.js"(exports2) {
96520
96244
  "use strict";
96521
96245
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -96566,7 +96290,7 @@ var require_options2 = __commonJS({
96566
96290
  "use strict";
96567
96291
  Object.defineProperty(exports2, "__esModule", { value: true });
96568
96292
  exports2.WrapHandlers = exports2.TypeHandlers = exports2.FormatOptions = exports2.DtdOptions = exports2.DeclarationOptions = exports2.Options = void 0;
96569
- var utils_1 = require_utils2();
96293
+ var utils_1 = require_utils3();
96570
96294
  var Options = (
96571
96295
  /** @class */
96572
96296
  /* @__PURE__ */ function() {
@@ -96718,7 +96442,7 @@ var require_main2 = __commonJS({
96718
96442
  exports2.parse = exports2.parseToExistingElement = exports2.Absent = void 0;
96719
96443
  var xmlcreate_1 = require_main();
96720
96444
  var options_1 = require_options2();
96721
- var utils_1 = require_utils2();
96445
+ var utils_1 = require_utils3();
96722
96446
  var Absent = (
96723
96447
  /** @class */
96724
96448
  function() {
@@ -96976,9 +96700,9 @@ var require_process_nextick_args = __commonJS({
96976
96700
  // node_modules/isarray/index.js
96977
96701
  var require_isarray = __commonJS({
96978
96702
  "node_modules/isarray/index.js"(exports2, module2) {
96979
- var toString2 = {}.toString;
96703
+ var toString = {}.toString;
96980
96704
  module2.exports = Array.isArray || function(arr) {
96981
- return toString2.call(arr) == "[object Array]";
96705
+ return toString.call(arr) == "[object Array]";
96982
96706
  };
96983
96707
  }
96984
96708
  });
@@ -99037,7 +98761,7 @@ var require_support = __commonJS({
99037
98761
  var require_base64 = __commonJS({
99038
98762
  "node_modules/jszip/lib/base64.js"(exports2) {
99039
98763
  "use strict";
99040
- var utils = require_utils3();
98764
+ var utils = require_utils4();
99041
98765
  var support = require_support();
99042
98766
  var _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
99043
98767
  exports2.encode = function(input) {
@@ -99675,7 +99399,7 @@ var require_setImmediate = __commonJS({
99675
99399
  });
99676
99400
 
99677
99401
  // node_modules/jszip/lib/utils.js
99678
- var require_utils3 = __commonJS({
99402
+ var require_utils4 = __commonJS({
99679
99403
  "node_modules/jszip/lib/utils.js"(exports2) {
99680
99404
  "use strict";
99681
99405
  var support = require_support();
@@ -100230,7 +99954,7 @@ var require_GenericWorker = __commonJS({
100230
99954
  var require_utf8 = __commonJS({
100231
99955
  "node_modules/jszip/lib/utf8.js"(exports2) {
100232
99956
  "use strict";
100233
- var utils = require_utils3();
99957
+ var utils = require_utils4();
100234
99958
  var support = require_support();
100235
99959
  var nodejsUtils = require_nodejsUtils();
100236
99960
  var GenericWorker = require_GenericWorker();
@@ -100421,7 +100145,7 @@ var require_ConvertWorker = __commonJS({
100421
100145
  "node_modules/jszip/lib/stream/ConvertWorker.js"(exports2, module2) {
100422
100146
  "use strict";
100423
100147
  var GenericWorker = require_GenericWorker();
100424
- var utils = require_utils3();
100148
+ var utils = require_utils4();
100425
100149
  function ConvertWorker(destType) {
100426
100150
  GenericWorker.call(this, "ConvertWorker to " + destType);
100427
100151
  this.destType = destType;
@@ -100442,7 +100166,7 @@ var require_NodejsStreamOutputAdapter = __commonJS({
100442
100166
  "node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js"(exports2, module2) {
100443
100167
  "use strict";
100444
100168
  var Readable = require_readable2().Readable;
100445
- var utils = require_utils3();
100169
+ var utils = require_utils4();
100446
100170
  utils.inherits(NodejsStreamOutputAdapter, Readable);
100447
100171
  function NodejsStreamOutputAdapter(helper, options, updateCb) {
100448
100172
  Readable.call(this, options);
@@ -100472,7 +100196,7 @@ var require_NodejsStreamOutputAdapter = __commonJS({
100472
100196
  var require_StreamHelper = __commonJS({
100473
100197
  "node_modules/jszip/lib/stream/StreamHelper.js"(exports2, module2) {
100474
100198
  "use strict";
100475
- var utils = require_utils3();
100199
+ var utils = require_utils4();
100476
100200
  var ConvertWorker = require_ConvertWorker();
100477
100201
  var GenericWorker = require_GenericWorker();
100478
100202
  var base64 = require_base64();
@@ -100649,7 +100373,7 @@ var require_defaults3 = __commonJS({
100649
100373
  var require_DataWorker = __commonJS({
100650
100374
  "node_modules/jszip/lib/stream/DataWorker.js"(exports2, module2) {
100651
100375
  "use strict";
100652
- var utils = require_utils3();
100376
+ var utils = require_utils4();
100653
100377
  var GenericWorker = require_GenericWorker();
100654
100378
  var DEFAULT_BLOCK_SIZE = 16 * 1024;
100655
100379
  function DataWorker(dataP) {
@@ -100737,7 +100461,7 @@ var require_DataWorker = __commonJS({
100737
100461
  var require_crc32 = __commonJS({
100738
100462
  "node_modules/jszip/lib/crc32.js"(exports2, module2) {
100739
100463
  "use strict";
100740
- var utils = require_utils3();
100464
+ var utils = require_utils4();
100741
100465
  function makeTable() {
100742
100466
  var c, table = [];
100743
100467
  for (var n = 0; n < 256; n++) {
@@ -100786,7 +100510,7 @@ var require_Crc32Probe = __commonJS({
100786
100510
  "use strict";
100787
100511
  var GenericWorker = require_GenericWorker();
100788
100512
  var crc32 = require_crc32();
100789
- var utils = require_utils3();
100513
+ var utils = require_utils4();
100790
100514
  function Crc32Probe() {
100791
100515
  GenericWorker.call(this, "Crc32Probe");
100792
100516
  this.withStreamInfo("crc32", 0);
@@ -100804,7 +100528,7 @@ var require_Crc32Probe = __commonJS({
100804
100528
  var require_DataLengthProbe = __commonJS({
100805
100529
  "node_modules/jszip/lib/stream/DataLengthProbe.js"(exports2, module2) {
100806
100530
  "use strict";
100807
- var utils = require_utils3();
100531
+ var utils = require_utils4();
100808
100532
  var GenericWorker = require_GenericWorker();
100809
100533
  function DataLengthProbe(propName) {
100810
100534
  GenericWorker.call(this, "DataLengthProbe for " + propName);
@@ -103017,7 +102741,7 @@ var require_deflate2 = __commonJS({
103017
102741
  var strings = require_strings();
103018
102742
  var msg = require_messages2();
103019
102743
  var ZStream = require_zstream();
103020
- var toString2 = Object.prototype.toString;
102744
+ var toString = Object.prototype.toString;
103021
102745
  var Z_NO_FLUSH = 0;
103022
102746
  var Z_FINISH = 4;
103023
102747
  var Z_OK = 0;
@@ -103068,7 +102792,7 @@ var require_deflate2 = __commonJS({
103068
102792
  var dict;
103069
102793
  if (typeof opt.dictionary === "string") {
103070
102794
  dict = strings.string2buf(opt.dictionary);
103071
- } else if (toString2.call(opt.dictionary) === "[object ArrayBuffer]") {
102795
+ } else if (toString.call(opt.dictionary) === "[object ArrayBuffer]") {
103072
102796
  dict = new Uint8Array(opt.dictionary);
103073
102797
  } else {
103074
102798
  dict = opt.dictionary;
@@ -103090,7 +102814,7 @@ var require_deflate2 = __commonJS({
103090
102814
  _mode = mode === ~~mode ? mode : mode === true ? Z_FINISH : Z_NO_FLUSH;
103091
102815
  if (typeof data === "string") {
103092
102816
  strm.input = strings.string2buf(data);
103093
- } else if (toString2.call(data) === "[object ArrayBuffer]") {
102817
+ } else if (toString.call(data) === "[object ArrayBuffer]") {
103094
102818
  strm.input = new Uint8Array(data);
103095
102819
  } else {
103096
102820
  strm.input = data;
@@ -105009,7 +104733,7 @@ var require_inflate2 = __commonJS({
105009
104733
  var msg = require_messages2();
105010
104734
  var ZStream = require_zstream();
105011
104735
  var GZheader = require_gzheader();
105012
- var toString2 = Object.prototype.toString;
104736
+ var toString = Object.prototype.toString;
105013
104737
  function Inflate(options) {
105014
104738
  if (!(this instanceof Inflate))
105015
104739
  return new Inflate(options);
@@ -105051,7 +104775,7 @@ var require_inflate2 = __commonJS({
105051
104775
  if (opt.dictionary) {
105052
104776
  if (typeof opt.dictionary === "string") {
105053
104777
  opt.dictionary = strings.string2buf(opt.dictionary);
105054
- } else if (toString2.call(opt.dictionary) === "[object ArrayBuffer]") {
104778
+ } else if (toString.call(opt.dictionary) === "[object ArrayBuffer]") {
105055
104779
  opt.dictionary = new Uint8Array(opt.dictionary);
105056
104780
  }
105057
104781
  if (opt.raw) {
@@ -105075,7 +104799,7 @@ var require_inflate2 = __commonJS({
105075
104799
  _mode = mode === ~~mode ? mode : mode === true ? c.Z_FINISH : c.Z_NO_FLUSH;
105076
104800
  if (typeof data === "string") {
105077
104801
  strm.input = strings.binstring2buf(data);
105078
- } else if (toString2.call(data) === "[object ArrayBuffer]") {
104802
+ } else if (toString.call(data) === "[object ArrayBuffer]") {
105079
104803
  strm.input = new Uint8Array(data);
105080
104804
  } else {
105081
104805
  strm.input = data;
@@ -105193,7 +104917,7 @@ var require_flate = __commonJS({
105193
104917
  "use strict";
105194
104918
  var USE_TYPEDARRAY = typeof Uint8Array !== "undefined" && typeof Uint16Array !== "undefined" && typeof Uint32Array !== "undefined";
105195
104919
  var pako = require_pako();
105196
- var utils = require_utils3();
104920
+ var utils = require_utils4();
105197
104921
  var GenericWorker = require_GenericWorker();
105198
104922
  var ARRAY_TYPE = USE_TYPEDARRAY ? "uint8array" : "array";
105199
104923
  exports2.magic = "\b\0";
@@ -105281,7 +105005,7 @@ var require_signature = __commonJS({
105281
105005
  var require_ZipFileWorker = __commonJS({
105282
105006
  "node_modules/jszip/lib/generate/ZipFileWorker.js"(exports2, module2) {
105283
105007
  "use strict";
105284
- var utils = require_utils3();
105008
+ var utils = require_utils4();
105285
105009
  var GenericWorker = require_GenericWorker();
105286
105010
  var utf8 = require_utf8();
105287
105011
  var crc32 = require_crc32();
@@ -105606,7 +105330,7 @@ var require_generate = __commonJS({
105606
105330
  var require_NodejsStreamInputAdapter = __commonJS({
105607
105331
  "node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js"(exports2, module2) {
105608
105332
  "use strict";
105609
- var utils = require_utils3();
105333
+ var utils = require_utils4();
105610
105334
  var GenericWorker = require_GenericWorker();
105611
105335
  function NodejsStreamInputAdapter(filename, stream) {
105612
105336
  GenericWorker.call(this, "Nodejs stream input adapter for " + filename);
@@ -105666,7 +105390,7 @@ var require_object2 = __commonJS({
105666
105390
  "node_modules/jszip/lib/object.js"(exports2, module2) {
105667
105391
  "use strict";
105668
105392
  var utf8 = require_utf8();
105669
- var utils = require_utils3();
105393
+ var utils = require_utils4();
105670
105394
  var GenericWorker = require_GenericWorker();
105671
105395
  var StreamHelper = require_StreamHelper();
105672
105396
  var defaults = require_defaults3();
@@ -105938,7 +105662,7 @@ var require_object2 = __commonJS({
105938
105662
  var require_DataReader = __commonJS({
105939
105663
  "node_modules/jszip/lib/reader/DataReader.js"(exports2, module2) {
105940
105664
  "use strict";
105941
- var utils = require_utils3();
105665
+ var utils = require_utils4();
105942
105666
  function DataReader(data) {
105943
105667
  this.data = data;
105944
105668
  this.length = data.length;
@@ -106061,7 +105785,7 @@ var require_ArrayReader = __commonJS({
106061
105785
  "node_modules/jszip/lib/reader/ArrayReader.js"(exports2, module2) {
106062
105786
  "use strict";
106063
105787
  var DataReader = require_DataReader();
106064
- var utils = require_utils3();
105788
+ var utils = require_utils4();
106065
105789
  function ArrayReader(data) {
106066
105790
  DataReader.call(this, data);
106067
105791
  for (var i = 0; i < this.data.length; i++) {
@@ -106103,7 +105827,7 @@ var require_StringReader = __commonJS({
106103
105827
  "node_modules/jszip/lib/reader/StringReader.js"(exports2, module2) {
106104
105828
  "use strict";
106105
105829
  var DataReader = require_DataReader();
106106
- var utils = require_utils3();
105830
+ var utils = require_utils4();
106107
105831
  function StringReader(data) {
106108
105832
  DataReader.call(this, data);
106109
105833
  }
@@ -106133,7 +105857,7 @@ var require_Uint8ArrayReader = __commonJS({
106133
105857
  "node_modules/jszip/lib/reader/Uint8ArrayReader.js"(exports2, module2) {
106134
105858
  "use strict";
106135
105859
  var ArrayReader = require_ArrayReader();
106136
- var utils = require_utils3();
105860
+ var utils = require_utils4();
106137
105861
  function Uint8ArrayReader(data) {
106138
105862
  ArrayReader.call(this, data);
106139
105863
  }
@@ -106156,7 +105880,7 @@ var require_NodeBufferReader = __commonJS({
106156
105880
  "node_modules/jszip/lib/reader/NodeBufferReader.js"(exports2, module2) {
106157
105881
  "use strict";
106158
105882
  var Uint8ArrayReader = require_Uint8ArrayReader();
106159
- var utils = require_utils3();
105883
+ var utils = require_utils4();
106160
105884
  function NodeBufferReader(data) {
106161
105885
  Uint8ArrayReader.call(this, data);
106162
105886
  }
@@ -106175,7 +105899,7 @@ var require_NodeBufferReader = __commonJS({
106175
105899
  var require_readerFor = __commonJS({
106176
105900
  "node_modules/jszip/lib/reader/readerFor.js"(exports2, module2) {
106177
105901
  "use strict";
106178
- var utils = require_utils3();
105902
+ var utils = require_utils4();
106179
105903
  var support = require_support();
106180
105904
  var ArrayReader = require_ArrayReader();
106181
105905
  var StringReader = require_StringReader();
@@ -106203,7 +105927,7 @@ var require_zipEntry = __commonJS({
106203
105927
  "node_modules/jszip/lib/zipEntry.js"(exports2, module2) {
106204
105928
  "use strict";
106205
105929
  var readerFor = require_readerFor();
106206
- var utils = require_utils3();
105930
+ var utils = require_utils4();
106207
105931
  var CompressedObject = require_compressedObject();
106208
105932
  var crc32fn = require_crc32();
106209
105933
  var utf8 = require_utf8();
@@ -106421,7 +106145,7 @@ var require_zipEntries = __commonJS({
106421
106145
  "node_modules/jszip/lib/zipEntries.js"(exports2, module2) {
106422
106146
  "use strict";
106423
106147
  var readerFor = require_readerFor();
106424
- var utils = require_utils3();
106148
+ var utils = require_utils4();
106425
106149
  var sig = require_signature();
106426
106150
  var ZipEntry = require_zipEntry();
106427
106151
  var support = require_support();
@@ -106618,7 +106342,7 @@ var require_zipEntries = __commonJS({
106618
106342
  var require_load = __commonJS({
106619
106343
  "node_modules/jszip/lib/load.js"(exports2, module2) {
106620
106344
  "use strict";
106621
- var utils = require_utils3();
106345
+ var utils = require_utils4();
106622
106346
  var external = require_external2();
106623
106347
  var utf8 = require_utf8();
106624
106348
  var ZipEntries = require_zipEntries();
@@ -111921,9 +111645,9 @@ var require_identical = __commonJS({
111921
111645
  var require_get_class = __commonJS({
111922
111646
  "node_modules/@sinonjs/samsam/lib/get-class.js"(exports2, module2) {
111923
111647
  "use strict";
111924
- var toString2 = require_lib10().prototypes.object.toString;
111648
+ var toString = require_lib10().prototypes.object.toString;
111925
111649
  function getClass(value) {
111926
- return toString2(value).split(/[ \]]/)[1];
111650
+ return toString(value).split(/[ \]]/)[1];
111927
111651
  }
111928
111652
  module2.exports = getClass;
111929
111653
  }
@@ -112442,7 +112166,7 @@ var require_lodash9 = __commonJS({
112442
112166
  return !!maskSrcKey && maskSrcKey in func;
112443
112167
  }
112444
112168
  var stringToPath = memoize(function(string) {
112445
- string = toString2(string);
112169
+ string = toString(string);
112446
112170
  var result = [];
112447
112171
  if (reLeadingDot.test(string)) {
112448
112172
  result.push("");
@@ -112507,7 +112231,7 @@ var require_lodash9 = __commonJS({
112507
112231
  function isSymbol(value) {
112508
112232
  return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
112509
112233
  }
112510
- function toString2(value) {
112234
+ function toString(value) {
112511
112235
  return value == null ? "" : baseToString(value);
112512
112236
  }
112513
112237
  function get(object, path, defaultValue) {
@@ -113581,7 +113305,7 @@ var require_fake_timers_src = __commonJS({
113581
113305
  } else {
113582
113306
  delete target.toSource;
113583
113307
  }
113584
- target.toString = function toString2() {
113308
+ target.toString = function toString() {
113585
113309
  return source.toString();
113586
113310
  };
113587
113311
  target.prototype = source.prototype;
@@ -115089,7 +114813,7 @@ var require_default_behaviors = __commonJS({
115089
114813
  var require_function_to_string = __commonJS({
115090
114814
  "node_modules/sinon/lib/sinon/util/core/function-to-string.js"(exports2, module2) {
115091
114815
  "use strict";
115092
- module2.exports = function toString2() {
114816
+ module2.exports = function toString() {
115093
114817
  var i, prop, thisValue;
115094
114818
  if (this.getCall && this.callCount) {
115095
114819
  i = this.callCount;
@@ -123385,7 +123109,4 @@ tough-cookie/lib/cookie.js:
123385
123109
  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
123386
123110
  * POSSIBILITY OF SUCH DAMAGE.
123387
123111
  *)
123388
-
123389
- uri-js/dist/es5/uri.all.js:
123390
- (** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js *)
123391
123112
  */