@ms-cloudpack/telemetry 0.11.55 → 0.11.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/NOTICE.txt +12 -32
  2. package/dist/index.js +963 -868
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -12,6 +12,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
13
13
  var __getProtoOf = Object.getPrototypeOf;
14
14
  var __hasOwnProp = Object.prototype.hasOwnProperty;
15
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15
16
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
16
17
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
17
18
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
@@ -46,6 +47,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
46
47
  mod
47
48
  ));
48
49
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
50
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
49
51
 
50
52
  // ../../node_modules/.store/@opentelemetry-api-npm-1.9.0-7d0560d0dd/package/build/esm/platform/node/globalThis.js
51
53
  var _globalThis;
@@ -154,41 +156,41 @@ var init_semver = __esm({
154
156
  });
155
157
 
156
158
  // ../../node_modules/.store/@opentelemetry-api-npm-1.9.0-7d0560d0dd/package/build/esm/internal/global-utils.js
157
- function registerGlobal(type4, instance3, diag3, allowOverride) {
158
- var _a3;
159
+ function registerGlobal(type3, instance3, diag3, allowOverride) {
160
+ var _a4;
159
161
  if (allowOverride === void 0) {
160
162
  allowOverride = false;
161
163
  }
162
- var api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a3 !== void 0 ? _a3 : {
164
+ var api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a4 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a4 !== void 0 ? _a4 : {
163
165
  version: VERSION
164
166
  };
165
- if (!allowOverride && api[type4]) {
166
- var err = new Error("@opentelemetry/api: Attempted duplicate registration of API: " + type4);
167
+ if (!allowOverride && api[type3]) {
168
+ var err = new Error("@opentelemetry/api: Attempted duplicate registration of API: " + type3);
167
169
  diag3.error(err.stack || err.message);
168
170
  return false;
169
171
  }
170
172
  if (api.version !== VERSION) {
171
- var err = new Error("@opentelemetry/api: Registration of version v" + api.version + " for " + type4 + " does not match previously registered API v" + VERSION);
173
+ var err = new Error("@opentelemetry/api: Registration of version v" + api.version + " for " + type3 + " does not match previously registered API v" + VERSION);
172
174
  diag3.error(err.stack || err.message);
173
175
  return false;
174
176
  }
175
- api[type4] = instance3;
176
- diag3.debug("@opentelemetry/api: Registered a global for " + type4 + " v" + VERSION + ".");
177
+ api[type3] = instance3;
178
+ diag3.debug("@opentelemetry/api: Registered a global for " + type3 + " v" + VERSION + ".");
177
179
  return true;
178
180
  }
179
- function getGlobal(type4) {
180
- var _a3, _b2;
181
- var globalVersion = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a3 === void 0 ? void 0 : _a3.version;
181
+ function getGlobal(type3) {
182
+ var _a4, _b2;
183
+ var globalVersion = (_a4 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a4 === void 0 ? void 0 : _a4.version;
182
184
  if (!globalVersion || !isCompatible(globalVersion)) {
183
185
  return;
184
186
  }
185
- return (_b2 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b2 === void 0 ? void 0 : _b2[type4];
187
+ return (_b2 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b2 === void 0 ? void 0 : _b2[type3];
186
188
  }
187
- function unregisterGlobal(type4, diag3) {
188
- diag3.debug("@opentelemetry/api: Unregistering a global for " + type4 + " v" + VERSION + ".");
189
+ function unregisterGlobal(type3, diag3) {
190
+ diag3.debug("@opentelemetry/api: Unregistering a global for " + type3 + " v" + VERSION + ".");
189
191
  var api = _global[GLOBAL_OPENTELEMETRY_API_KEY];
190
192
  if (api) {
191
- delete api[type4];
193
+ delete api[type3];
192
194
  }
193
195
  }
194
196
  var major, GLOBAL_OPENTELEMETRY_API_KEY, _global;
@@ -393,13 +395,13 @@ var init_diag = __esm({
393
395
  __name(_logProxy, "_logProxy");
394
396
  var self2 = this;
395
397
  var setLogger = /* @__PURE__ */ __name(function(logger4, optionsOrLogLevel) {
396
- var _a3, _b2, _c2;
398
+ var _a4, _b2, _c2;
397
399
  if (optionsOrLogLevel === void 0) {
398
400
  optionsOrLogLevel = { logLevel: DiagLogLevel.INFO };
399
401
  }
400
402
  if (logger4 === self2) {
401
403
  var err = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
402
- self2.error((_a3 = err.stack) !== null && _a3 !== void 0 ? _a3 : err.message);
404
+ self2.error((_a4 = err.stack) !== null && _a4 !== void 0 ? _a4 : err.message);
403
405
  return false;
404
406
  }
405
407
  if (typeof optionsOrLogLevel === "number") {
@@ -487,8 +489,8 @@ var init_baggage_impl = __esm({
487
489
  return Object.assign({}, entry);
488
490
  };
489
491
  BaggageImpl2.prototype.getAllEntries = function() {
490
- return Array.from(this._entries.entries()).map(function(_a3) {
491
- var _b2 = __read3(_a3, 2), k = _b2[0], v = _b2[1];
492
+ return Array.from(this._entries.entries()).map(function(_a4) {
493
+ var _b2 = __read3(_a4, 2), k = _b2[0], v = _b2[1];
492
494
  return [k, v];
493
495
  });
494
496
  };
@@ -503,7 +505,7 @@ var init_baggage_impl = __esm({
503
505
  return newBaggage;
504
506
  };
505
507
  BaggageImpl2.prototype.removeEntries = function() {
506
- var e_1, _a3;
508
+ var e_1, _a4;
507
509
  var keys = [];
508
510
  for (var _i = 0; _i < arguments.length; _i++) {
509
511
  keys[_i] = arguments[_i];
@@ -518,7 +520,7 @@ var init_baggage_impl = __esm({
518
520
  e_1 = { error: e_1_1 };
519
521
  } finally {
520
522
  try {
521
- if (keys_1_1 && !keys_1_1.done && (_a3 = keys_1.return)) _a3.call(keys_1);
523
+ if (keys_1_1 && !keys_1_1.done && (_a4 = keys_1.return)) _a4.call(keys_1);
522
524
  } finally {
523
525
  if (e_1) throw e_1.error;
524
526
  }
@@ -961,12 +963,12 @@ var init_context2 = __esm({
961
963
  return this._getContextManager().active();
962
964
  };
963
965
  ContextAPI2.prototype.with = function(context4, fn, thisArg) {
964
- var _a3;
966
+ var _a4;
965
967
  var args = [];
966
968
  for (var _i = 3; _i < arguments.length; _i++) {
967
969
  args[_i - 3] = arguments[_i];
968
970
  }
969
- return (_a3 = this._getContextManager()).with.apply(_a3, __spreadArray4([context4, fn, thisArg], __read5(args), false));
971
+ return (_a4 = this._getContextManager()).with.apply(_a4, __spreadArray4([context4, fn, thisArg], __read5(args), false));
970
972
  };
971
973
  ContextAPI2.prototype.bind = function(context4, target) {
972
974
  return this._getContextManager().bind(context4, target);
@@ -1076,8 +1078,8 @@ function setSpanContext(context4, spanContext) {
1076
1078
  return setSpan(context4, new NonRecordingSpan(spanContext));
1077
1079
  }
1078
1080
  function getSpanContext(context4) {
1079
- var _a3;
1080
- return (_a3 = getSpan(context4)) === null || _a3 === void 0 ? void 0 : _a3.spanContext();
1081
+ var _a4;
1082
+ return (_a4 = getSpan(context4)) === null || _a4 === void 0 ? void 0 : _a4.spanContext();
1081
1083
  }
1082
1084
  var SPAN_KEY;
1083
1085
  var init_context_utils = __esm({
@@ -1250,19 +1252,19 @@ var init_ProxyTracerProvider = __esm({
1250
1252
  }
1251
1253
  __name(ProxyTracerProvider2, "ProxyTracerProvider");
1252
1254
  ProxyTracerProvider2.prototype.getTracer = function(name, version, options) {
1253
- var _a3;
1254
- return (_a3 = this.getDelegateTracer(name, version, options)) !== null && _a3 !== void 0 ? _a3 : new ProxyTracer(this, name, version, options);
1255
+ var _a4;
1256
+ return (_a4 = this.getDelegateTracer(name, version, options)) !== null && _a4 !== void 0 ? _a4 : new ProxyTracer(this, name, version, options);
1255
1257
  };
1256
1258
  ProxyTracerProvider2.prototype.getDelegate = function() {
1257
- var _a3;
1258
- return (_a3 = this._delegate) !== null && _a3 !== void 0 ? _a3 : NOOP_TRACER_PROVIDER;
1259
+ var _a4;
1260
+ return (_a4 = this._delegate) !== null && _a4 !== void 0 ? _a4 : NOOP_TRACER_PROVIDER;
1259
1261
  };
1260
1262
  ProxyTracerProvider2.prototype.setDelegate = function(delegate) {
1261
1263
  this._delegate = delegate;
1262
1264
  };
1263
1265
  ProxyTracerProvider2.prototype.getDelegateTracer = function(name, version, options) {
1264
- var _a3;
1265
- return (_a3 = this._delegate) === null || _a3 === void 0 ? void 0 : _a3.getTracer(name, version, options);
1266
+ var _a4;
1267
+ return (_a4 = this._delegate) === null || _a4 === void 0 ? void 0 : _a4.getTracer(name, version, options);
1266
1268
  };
1267
1269
  return ProxyTracerProvider2;
1268
1270
  })();
@@ -3967,18 +3969,18 @@ var require_attributes = __commonJS({
3967
3969
  __name(isAttributeValue, "isAttributeValue");
3968
3970
  exports.isAttributeValue = isAttributeValue;
3969
3971
  function isHomogeneousAttributeValueArray(arr) {
3970
- let type4;
3972
+ let type3;
3971
3973
  for (const element of arr) {
3972
3974
  if (element == null)
3973
3975
  continue;
3974
- if (!type4) {
3976
+ if (!type3) {
3975
3977
  if (isValidPrimitiveAttributeValue(element)) {
3976
- type4 = typeof element;
3978
+ type3 = typeof element;
3977
3979
  continue;
3978
3980
  }
3979
3981
  return false;
3980
3982
  }
3981
- if (typeof element === type4) {
3983
+ if (typeof element === type3) {
3982
3984
  continue;
3983
3985
  }
3984
3986
  return false;
@@ -4057,7 +4059,7 @@ var require_global_error_handler = __commonJS({
4057
4059
  function globalErrorHandler(ex) {
4058
4060
  try {
4059
4061
  delegateHandler(ex);
4060
- } catch (_a3) {
4062
+ } catch (_a4) {
4061
4063
  }
4062
4064
  }
4063
4065
  __name(globalErrorHandler, "globalErrorHandler");
@@ -4677,8 +4679,8 @@ var require_composite = __commonJS({
4677
4679
  * @param [config] Configuration object for composite propagator
4678
4680
  */
4679
4681
  constructor(config = {}) {
4680
- var _a3;
4681
- this._propagators = (_a3 = config.propagators) !== null && _a3 !== void 0 ? _a3 : [];
4682
+ var _a4;
4683
+ this._propagators = (_a4 = config.propagators) !== null && _a4 !== void 0 ? _a4 : [];
4682
4684
  this._fields = Array.from(new Set(this._propagators.map((p) => typeof p.fields === "function" ? p.fields() : []).reduce((x, y) => x.concat(y), [])));
4683
4685
  }
4684
4686
  /**
@@ -4985,16 +4987,16 @@ var require_ParentBasedSampler = __commonJS({
4985
4987
  var AlwaysOnSampler_1 = require_AlwaysOnSampler();
4986
4988
  var _ParentBasedSampler = class _ParentBasedSampler {
4987
4989
  constructor(config) {
4988
- var _a3, _b2, _c2, _d2;
4990
+ var _a4, _b2, _c2, _d;
4989
4991
  this._root = config.root;
4990
4992
  if (!this._root) {
4991
4993
  (0, global_error_handler_1.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured"));
4992
4994
  this._root = new AlwaysOnSampler_1.AlwaysOnSampler();
4993
4995
  }
4994
- this._remoteParentSampled = (_a3 = config.remoteParentSampled) !== null && _a3 !== void 0 ? _a3 : new AlwaysOnSampler_1.AlwaysOnSampler();
4996
+ this._remoteParentSampled = (_a4 = config.remoteParentSampled) !== null && _a4 !== void 0 ? _a4 : new AlwaysOnSampler_1.AlwaysOnSampler();
4995
4997
  this._remoteParentNotSampled = (_b2 = config.remoteParentNotSampled) !== null && _b2 !== void 0 ? _b2 : new AlwaysOffSampler_1.AlwaysOffSampler();
4996
4998
  this._localParentSampled = (_c2 = config.localParentSampled) !== null && _c2 !== void 0 ? _c2 : new AlwaysOnSampler_1.AlwaysOnSampler();
4997
- this._localParentNotSampled = (_d2 = config.localParentNotSampled) !== null && _d2 !== void 0 ? _d2 : new AlwaysOffSampler_1.AlwaysOffSampler();
4999
+ this._localParentNotSampled = (_d = config.localParentNotSampled) !== null && _d !== void 0 ? _d : new AlwaysOffSampler_1.AlwaysOffSampler();
4998
5000
  }
4999
5001
  shouldSample(context4, traceId, spanName, spanKind, attributes, links) {
5000
5002
  const parentContext = api_1.trace.getSpanContext(context4);
@@ -5715,10 +5717,10 @@ var require_Resource = __commonJS({
5715
5717
  var platform_1 = require_platform2();
5716
5718
  var _Resource = class _Resource {
5717
5719
  constructor(attributes, asyncAttributesPromise) {
5718
- var _a3;
5720
+ var _a4;
5719
5721
  this._attributes = attributes;
5720
5722
  this.asyncAttributesPending = asyncAttributesPromise != null;
5721
- this._syncAttributes = (_a3 = this._attributes) !== null && _a3 !== void 0 ? _a3 : {};
5723
+ this._syncAttributes = (_a4 = this._attributes) !== null && _a4 !== void 0 ? _a4 : {};
5722
5724
  this._asyncAttributesPromise = asyncAttributesPromise === null || asyncAttributesPromise === void 0 ? void 0 : asyncAttributesPromise.then((asyncAttributes) => {
5723
5725
  this._attributes = Object.assign({}, this._attributes, asyncAttributes);
5724
5726
  this.asyncAttributesPending = false;
@@ -5747,11 +5749,11 @@ var require_Resource = __commonJS({
5747
5749
  });
5748
5750
  }
5749
5751
  get attributes() {
5750
- var _a3;
5752
+ var _a4;
5751
5753
  if (this.asyncAttributesPending) {
5752
5754
  api_1.diag.error("Accessing resource attributes before async attributes settled");
5753
5755
  }
5754
- return (_a3 = this._attributes) !== null && _a3 !== void 0 ? _a3 : {};
5756
+ return (_a4 = this._attributes) !== null && _a4 !== void 0 ? _a4 : {};
5755
5757
  }
5756
5758
  /**
5757
5759
  * Returns a promise that will never be rejected. Resolves when all async attributes have finished being added to
@@ -5772,10 +5774,10 @@ var require_Resource = __commonJS({
5772
5774
  * @returns the newly merged Resource.
5773
5775
  */
5774
5776
  merge(other) {
5775
- var _a3;
5777
+ var _a4;
5776
5778
  if (!other)
5777
5779
  return this;
5778
- const mergedSyncAttributes = Object.assign(Object.assign({}, this._syncAttributes), (_a3 = other._syncAttributes) !== null && _a3 !== void 0 ? _a3 : other.attributes);
5780
+ const mergedSyncAttributes = Object.assign(Object.assign({}, this._syncAttributes), (_a4 = other._syncAttributes) !== null && _a4 !== void 0 ? _a4 : other.attributes);
5779
5781
  if (!this._asyncAttributesPromise && !other._asyncAttributesPromise) {
5780
5782
  return new _Resource(mergedSyncAttributes);
5781
5783
  }
@@ -5783,8 +5785,8 @@ var require_Resource = __commonJS({
5783
5785
  this._asyncAttributesPromise,
5784
5786
  other._asyncAttributesPromise
5785
5787
  ]).then(([thisAsyncAttributes, otherAsyncAttributes]) => {
5786
- var _a4;
5787
- return Object.assign(Object.assign(Object.assign(Object.assign({}, this._syncAttributes), thisAsyncAttributes), (_a4 = other._syncAttributes) !== null && _a4 !== void 0 ? _a4 : other.attributes), otherAsyncAttributes);
5788
+ var _a5;
5789
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, this._syncAttributes), thisAsyncAttributes), (_a5 = other._syncAttributes) !== null && _a5 !== void 0 ? _a5 : other.attributes), otherAsyncAttributes);
5788
5790
  });
5789
5791
  return new _Resource(mergedSyncAttributes, mergedAttributesPromise);
5790
5792
  }
@@ -6258,8 +6260,8 @@ var require_BrowserDetectorSync = __commonJS({
6258
6260
  var Resource_1 = require_Resource();
6259
6261
  var _BrowserDetectorSync = class _BrowserDetectorSync {
6260
6262
  detect(config) {
6261
- var _a3, _b2, _c2;
6262
- const isBrowser2 = typeof navigator !== "undefined" && ((_b2 = (_a3 = global.process) === null || _a3 === void 0 ? void 0 : _a3.versions) === null || _b2 === void 0 ? void 0 : _b2.node) === void 0 && // Node.js v21 adds `navigator`
6263
+ var _a4, _b2, _c2;
6264
+ const isBrowser2 = typeof navigator !== "undefined" && ((_b2 = (_a4 = global.process) === null || _a4 === void 0 ? void 0 : _a4.versions) === null || _b2 === void 0 ? void 0 : _b2.node) === void 0 && // Node.js v21 adds `navigator`
6263
6265
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6264
6266
  // @ts-ignore don't have Bun types
6265
6267
  ((_c2 = global.Bun) === null || _c2 === void 0 ? void 0 : _c2.version) === void 0;
@@ -6540,16 +6542,16 @@ var require_detect_resources = __commonJS({
6540
6542
  }, "detectResources");
6541
6543
  exports.detectResources = detectResources;
6542
6544
  var detectResourcesSync2 = /* @__PURE__ */ __name((config = {}) => {
6543
- var _a3;
6544
- const resources = ((_a3 = config.detectors) !== null && _a3 !== void 0 ? _a3 : []).map((d) => {
6545
+ var _a4;
6546
+ const resources = ((_a4 = config.detectors) !== null && _a4 !== void 0 ? _a4 : []).map((d) => {
6545
6547
  try {
6546
6548
  const resourceOrPromise = d.detect(config);
6547
6549
  let resource;
6548
6550
  if ((0, utils_1.isPromiseLike)(resourceOrPromise)) {
6549
6551
  const createPromise = /* @__PURE__ */ __name(async () => {
6550
- var _a4;
6552
+ var _a5;
6551
6553
  const resolvedResource = await resourceOrPromise;
6552
- await ((_a4 = resolvedResource.waitForAsyncAttributes) === null || _a4 === void 0 ? void 0 : _a4.call(resolvedResource));
6554
+ await ((_a5 = resolvedResource.waitForAsyncAttributes) === null || _a5 === void 0 ? void 0 : _a5.call(resolvedResource));
6553
6555
  return resolvedResource.attributes;
6554
6556
  }, "createPromise");
6555
6557
  resource = new Resource_1.Resource({}, createPromise());
@@ -6729,8 +6731,8 @@ var require_AbstractAsyncHooksContextManager = __commonJS({
6729
6731
  _patchRemoveListener(ee, original) {
6730
6732
  const contextManager = this;
6731
6733
  return function(event, listener) {
6732
- var _a3;
6733
- const events = (_a3 = contextManager._getPatchMap(ee)) === null || _a3 === void 0 ? void 0 : _a3[event];
6734
+ var _a4;
6735
+ const events = (_a4 = contextManager._getPatchMap(ee)) === null || _a4 === void 0 ? void 0 : _a4[event];
6734
6736
  if (events === void 0) {
6735
6737
  return original.call(this, event, listener);
6736
6738
  }
@@ -6828,8 +6830,8 @@ var require_AsyncHooksContextManager = __commonJS({
6828
6830
  });
6829
6831
  }
6830
6832
  active() {
6831
- var _a3;
6832
- return (_a3 = this._stack[this._stack.length - 1]) !== null && _a3 !== void 0 ? _a3 : api_1.ROOT_CONTEXT;
6833
+ var _a4;
6834
+ return (_a4 = this._stack[this._stack.length - 1]) !== null && _a4 !== void 0 ? _a4 : api_1.ROOT_CONTEXT;
6833
6835
  }
6834
6836
  with(context4, fn, thisArg, ...args) {
6835
6837
  this._enterContext(context4);
@@ -6855,8 +6857,8 @@ var require_AsyncHooksContextManager = __commonJS({
6855
6857
  * @param uid id of the async context
6856
6858
  * @param type the resource type
6857
6859
  */
6858
- _init(uid, type4) {
6859
- if (type4 === "TIMERWRAP")
6860
+ _init(uid, type3) {
6861
+ if (type3 === "TIMERWRAP")
6860
6862
  return;
6861
6863
  const context4 = this._stack[this._stack.length - 1];
6862
6864
  if (context4 !== void 0) {
@@ -6921,8 +6923,8 @@ var require_AsyncLocalStorageContextManager = __commonJS({
6921
6923
  this._asyncLocalStorage = new async_hooks_1.AsyncLocalStorage();
6922
6924
  }
6923
6925
  active() {
6924
- var _a3;
6925
- return (_a3 = this._asyncLocalStorage.getStore()) !== null && _a3 !== void 0 ? _a3 : api_1.ROOT_CONTEXT;
6926
+ var _a4;
6927
+ return (_a4 = this._asyncLocalStorage.getStore()) !== null && _a4 !== void 0 ? _a4 : api_1.ROOT_CONTEXT;
6926
6928
  }
6927
6929
  with(context4, fn, thisArg, ...args) {
6928
6930
  const cb = thisArg == null ? fn : fn.bind(thisArg);
@@ -7600,16 +7602,16 @@ var require_ParentBasedSampler2 = __commonJS({
7600
7602
  var AlwaysOnSampler_1 = require_AlwaysOnSampler2();
7601
7603
  var _ParentBasedSampler = class _ParentBasedSampler {
7602
7604
  constructor(config) {
7603
- var _a3, _b2, _c2, _d2;
7605
+ var _a4, _b2, _c2, _d;
7604
7606
  this._root = config.root;
7605
7607
  if (!this._root) {
7606
7608
  (0, core_1.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured"));
7607
7609
  this._root = new AlwaysOnSampler_1.AlwaysOnSampler();
7608
7610
  }
7609
- this._remoteParentSampled = (_a3 = config.remoteParentSampled) !== null && _a3 !== void 0 ? _a3 : new AlwaysOnSampler_1.AlwaysOnSampler();
7611
+ this._remoteParentSampled = (_a4 = config.remoteParentSampled) !== null && _a4 !== void 0 ? _a4 : new AlwaysOnSampler_1.AlwaysOnSampler();
7610
7612
  this._remoteParentNotSampled = (_b2 = config.remoteParentNotSampled) !== null && _b2 !== void 0 ? _b2 : new AlwaysOffSampler_1.AlwaysOffSampler();
7611
7613
  this._localParentSampled = (_c2 = config.localParentSampled) !== null && _c2 !== void 0 ? _c2 : new AlwaysOnSampler_1.AlwaysOnSampler();
7612
- this._localParentNotSampled = (_d2 = config.localParentNotSampled) !== null && _d2 !== void 0 ? _d2 : new AlwaysOffSampler_1.AlwaysOffSampler();
7614
+ this._localParentNotSampled = (_d = config.localParentNotSampled) !== null && _d !== void 0 ? _d : new AlwaysOffSampler_1.AlwaysOffSampler();
7613
7615
  }
7614
7616
  shouldSample(context4, traceId, spanName, spanKind, attributes, links) {
7615
7617
  const parentContext = api_1.trace.getSpanContext(context4);
@@ -7784,10 +7786,10 @@ var require_utility = __commonJS({
7784
7786
  __name(mergeConfig, "mergeConfig");
7785
7787
  exports.mergeConfig = mergeConfig;
7786
7788
  function reconfigureLimits(userConfig) {
7787
- var _a3, _b2, _c2, _d2, _e, _f, _g, _h, _j, _k, _l, _m;
7789
+ var _a4, _b2, _c2, _d, _e, _f, _g, _h, _j, _k, _l, _m;
7788
7790
  const spanLimits = Object.assign({}, userConfig.spanLimits);
7789
7791
  const parsedEnvConfig = (0, core_1.getEnvWithoutDefaults)();
7790
- spanLimits.attributeCountLimit = (_f = (_e = (_d2 = (_b2 = (_a3 = userConfig.spanLimits) === null || _a3 === void 0 ? void 0 : _a3.attributeCountLimit) !== null && _b2 !== void 0 ? _b2 : (_c2 = userConfig.generalLimits) === null || _c2 === void 0 ? void 0 : _c2.attributeCountLimit) !== null && _d2 !== void 0 ? _d2 : parsedEnvConfig.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT) !== null && _e !== void 0 ? _e : parsedEnvConfig.OTEL_ATTRIBUTE_COUNT_LIMIT) !== null && _f !== void 0 ? _f : core_1.DEFAULT_ATTRIBUTE_COUNT_LIMIT;
7792
+ spanLimits.attributeCountLimit = (_f = (_e = (_d = (_b2 = (_a4 = userConfig.spanLimits) === null || _a4 === void 0 ? void 0 : _a4.attributeCountLimit) !== null && _b2 !== void 0 ? _b2 : (_c2 = userConfig.generalLimits) === null || _c2 === void 0 ? void 0 : _c2.attributeCountLimit) !== null && _d !== void 0 ? _d : parsedEnvConfig.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT) !== null && _e !== void 0 ? _e : parsedEnvConfig.OTEL_ATTRIBUTE_COUNT_LIMIT) !== null && _f !== void 0 ? _f : core_1.DEFAULT_ATTRIBUTE_COUNT_LIMIT;
7791
7793
  spanLimits.attributeValueLengthLimit = (_m = (_l = (_k = (_h = (_g = userConfig.spanLimits) === null || _g === void 0 ? void 0 : _g.attributeValueLengthLimit) !== null && _h !== void 0 ? _h : (_j = userConfig.generalLimits) === null || _j === void 0 ? void 0 : _j.attributeValueLengthLimit) !== null && _k !== void 0 ? _k : parsedEnvConfig.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT) !== null && _l !== void 0 ? _l : parsedEnvConfig.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT) !== null && _m !== void 0 ? _m : core_1.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT;
7792
7794
  return Object.assign({}, userConfig, { spanLimits });
7793
7795
  }
@@ -7902,12 +7904,12 @@ var require_BatchSpanProcessorBase = __commonJS({
7902
7904
  spans = this._finishedSpans.splice(0, this._maxExportBatchSize);
7903
7905
  }
7904
7906
  const doExport = /* @__PURE__ */ __name(() => this._exporter.export(spans, (result) => {
7905
- var _a3;
7907
+ var _a4;
7906
7908
  clearTimeout(timer);
7907
7909
  if (result.code === core_1.ExportResultCode.SUCCESS) {
7908
7910
  resolve();
7909
7911
  } else {
7910
- reject((_a3 = result.error) !== null && _a3 !== void 0 ? _a3 : new Error("BatchSpanProcessor: span export failed"));
7912
+ reject((_a4 = result.error) !== null && _a4 !== void 0 ? _a4 : new Error("BatchSpanProcessor: span export failed"));
7911
7913
  }
7912
7914
  }), "doExport");
7913
7915
  let pendingResources = null;
@@ -8083,7 +8085,7 @@ var require_Tracer = __commonJS({
8083
8085
  * decision.
8084
8086
  */
8085
8087
  startSpan(name, options = {}, context4 = api.context.active()) {
8086
- var _a3, _b2, _c2;
8088
+ var _a4, _b2, _c2;
8087
8089
  if (options.root) {
8088
8090
  context4 = api.trace.deleteSpan(context4);
8089
8091
  }
@@ -8105,7 +8107,7 @@ var require_Tracer = __commonJS({
8105
8107
  traceState = parentSpanContext.traceState;
8106
8108
  parentSpanId = parentSpanContext.spanId;
8107
8109
  }
8108
- const spanKind = (_a3 = options.kind) !== null && _a3 !== void 0 ? _a3 : api.SpanKind.INTERNAL;
8110
+ const spanKind = (_a4 = options.kind) !== null && _a4 !== void 0 ? _a4 : api.SpanKind.INTERNAL;
8109
8111
  const links = ((_b2 = options.links) !== null && _b2 !== void 0 ? _b2 : []).map((link) => {
8110
8112
  return {
8111
8113
  context: link.context,
@@ -8266,11 +8268,11 @@ var require_BasicTracerProvider = __commonJS({
8266
8268
  })(ForceFlushState = exports.ForceFlushState || (exports.ForceFlushState = {}));
8267
8269
  var _BasicTracerProvider = class _BasicTracerProvider {
8268
8270
  constructor(config = {}) {
8269
- var _a3, _b2;
8271
+ var _a4, _b2;
8270
8272
  this._registeredSpanProcessors = [];
8271
8273
  this._tracers = /* @__PURE__ */ new Map();
8272
8274
  const mergedConfig = (0, core_1.merge)({}, (0, config_1.loadDefaultConfig)(), (0, utility_1.reconfigureLimits)(config));
8273
- this.resource = (_a3 = mergedConfig.resource) !== null && _a3 !== void 0 ? _a3 : resources_1.Resource.empty();
8275
+ this.resource = (_a4 = mergedConfig.resource) !== null && _a4 !== void 0 ? _a4 : resources_1.Resource.empty();
8274
8276
  if (mergedConfig.mergeResourceWithDefaults) {
8275
8277
  this.resource = resources_1.Resource.default().merge(this.resource);
8276
8278
  }
@@ -8375,12 +8377,12 @@ var require_BasicTracerProvider = __commonJS({
8375
8377
  * classes in the inheritance tree.
8376
8378
  */
8377
8379
  _getPropagator(name) {
8378
- var _a3;
8379
- return (_a3 = this.constructor._registeredPropagators.get(name)) === null || _a3 === void 0 ? void 0 : _a3();
8380
+ var _a4;
8381
+ return (_a4 = this.constructor._registeredPropagators.get(name)) === null || _a4 === void 0 ? void 0 : _a4();
8380
8382
  }
8381
8383
  _getSpanExporter(name) {
8382
- var _a3;
8383
- return (_a3 = this.constructor._registeredExporters.get(name)) === null || _a3 === void 0 ? void 0 : _a3();
8384
+ var _a4;
8385
+ return (_a4 = this.constructor._registeredExporters.get(name)) === null || _a4 === void 0 ? void 0 : _a4();
8384
8386
  }
8385
8387
  _buildPropagatorFromEnv() {
8386
8388
  const uniquePropagatorNames = Array.from(new Set((0, core_1.getEnv)().OTEL_PROPAGATORS));
@@ -8463,7 +8465,7 @@ var require_ConsoleSpanExporter = __commonJS({
8463
8465
  * @param span
8464
8466
  */
8465
8467
  _exportInfo(span) {
8466
- var _a3;
8468
+ var _a4;
8467
8469
  return {
8468
8470
  resource: {
8469
8471
  attributes: span.resource.attributes
@@ -8471,7 +8473,7 @@ var require_ConsoleSpanExporter = __commonJS({
8471
8473
  instrumentationScope: span.instrumentationLibrary,
8472
8474
  traceId: span.spanContext().traceId,
8473
8475
  parentId: span.parentSpanId,
8474
- traceState: (_a3 = span.spanContext().traceState) === null || _a3 === void 0 ? void 0 : _a3.serialize(),
8476
+ traceState: (_a4 = span.spanContext().traceState) === null || _a4 === void 0 ? void 0 : _a4.serialize(),
8475
8477
  name: span.name,
8476
8478
  id: span.spanContext().spanId,
8477
8479
  kind: span.kind,
@@ -8571,7 +8573,7 @@ var require_SimpleSpanProcessor = __commonJS({
8571
8573
  onStart(_span, _parentContext) {
8572
8574
  }
8573
8575
  onEnd(span) {
8574
- var _a3, _b2;
8576
+ var _a4, _b2;
8575
8577
  if (this._shutdownOnce.isCalled) {
8576
8578
  return;
8577
8579
  }
@@ -8579,15 +8581,15 @@ var require_SimpleSpanProcessor = __commonJS({
8579
8581
  return;
8580
8582
  }
8581
8583
  const doExport = /* @__PURE__ */ __name(() => core_1.internal._export(this._exporter, [span]).then((result) => {
8582
- var _a4;
8584
+ var _a5;
8583
8585
  if (result.code !== core_1.ExportResultCode.SUCCESS) {
8584
- (0, core_1.globalErrorHandler)((_a4 = result.error) !== null && _a4 !== void 0 ? _a4 : new Error(`SimpleSpanProcessor: span export failed (status ${result})`));
8586
+ (0, core_1.globalErrorHandler)((_a5 = result.error) !== null && _a5 !== void 0 ? _a5 : new Error(`SimpleSpanProcessor: span export failed (status ${result})`));
8585
8587
  }
8586
8588
  }).catch((error) => {
8587
8589
  (0, core_1.globalErrorHandler)(error);
8588
8590
  }), "doExport");
8589
8591
  if (span.resource.asyncAttributesPending) {
8590
- const exportPromise = (_b2 = (_a3 = span.resource).waitForAsyncAttributes) === null || _b2 === void 0 ? void 0 : _b2.call(_a3).then(() => {
8592
+ const exportPromise = (_b2 = (_a4 = span.resource).waitForAsyncAttributes) === null || _b2 === void 0 ? void 0 : _b2.call(_a4).then(() => {
8591
8593
  if (exportPromise != null) {
8592
8594
  this._unresolvedExports.delete(exportPromise);
8593
8595
  }
@@ -8680,9 +8682,9 @@ var require_src5 = __commonJS({
8680
8682
  }
8681
8683
  });
8682
8684
 
8683
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/internal/constants.js
8685
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/internal/constants.js
8684
8686
  var require_constants3 = __commonJS({
8685
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/internal/constants.js"(exports, module) {
8687
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/internal/constants.js"(exports, module) {
8686
8688
  "use strict";
8687
8689
  var SEMVER_SPEC_VERSION = "2.0.0";
8688
8690
  var MAX_LENGTH = 256;
@@ -8712,9 +8714,9 @@ var require_constants3 = __commonJS({
8712
8714
  }
8713
8715
  });
8714
8716
 
8715
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/internal/debug.js
8717
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/internal/debug.js
8716
8718
  var require_debug = __commonJS({
8717
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/internal/debug.js"(exports, module) {
8719
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/internal/debug.js"(exports, module) {
8718
8720
  "use strict";
8719
8721
  var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
8720
8722
  };
@@ -8722,9 +8724,9 @@ var require_debug = __commonJS({
8722
8724
  }
8723
8725
  });
8724
8726
 
8725
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/internal/re.js
8727
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/internal/re.js
8726
8728
  var require_re = __commonJS({
8727
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/internal/re.js"(exports, module) {
8729
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/internal/re.js"(exports, module) {
8728
8730
  "use strict";
8729
8731
  var {
8730
8732
  MAX_SAFE_COMPONENT_LENGTH,
@@ -8810,9 +8812,9 @@ var require_re = __commonJS({
8810
8812
  }
8811
8813
  });
8812
8814
 
8813
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/internal/parse-options.js
8815
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/internal/parse-options.js
8814
8816
  var require_parse_options = __commonJS({
8815
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/internal/parse-options.js"(exports, module) {
8817
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/internal/parse-options.js"(exports, module) {
8816
8818
  "use strict";
8817
8819
  var looseOption = Object.freeze({ loose: true });
8818
8820
  var emptyOpts = Object.freeze({});
@@ -8829,12 +8831,15 @@ var require_parse_options = __commonJS({
8829
8831
  }
8830
8832
  });
8831
8833
 
8832
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/internal/identifiers.js
8834
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/internal/identifiers.js
8833
8835
  var require_identifiers = __commonJS({
8834
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/internal/identifiers.js"(exports, module) {
8836
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/internal/identifiers.js"(exports, module) {
8835
8837
  "use strict";
8836
8838
  var numeric = /^[0-9]+$/;
8837
8839
  var compareIdentifiers = /* @__PURE__ */ __name((a, b) => {
8840
+ if (typeof a === "number" && typeof b === "number") {
8841
+ return a === b ? 0 : a < b ? -1 : 1;
8842
+ }
8838
8843
  const anum = numeric.test(a);
8839
8844
  const bnum = numeric.test(b);
8840
8845
  if (anum && bnum) {
@@ -8851,9 +8856,9 @@ var require_identifiers = __commonJS({
8851
8856
  }
8852
8857
  });
8853
8858
 
8854
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/classes/semver.js
8859
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/classes/semver.js
8855
8860
  var require_semver = __commonJS({
8856
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/classes/semver.js"(exports, module) {
8861
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/classes/semver.js"(exports, module) {
8857
8862
  "use strict";
8858
8863
  var debug = require_debug();
8859
8864
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants3();
@@ -8941,7 +8946,25 @@ var require_semver = __commonJS({
8941
8946
  if (!(other instanceof _SemVer)) {
8942
8947
  other = new _SemVer(other, this.options);
8943
8948
  }
8944
- return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
8949
+ if (this.major < other.major) {
8950
+ return -1;
8951
+ }
8952
+ if (this.major > other.major) {
8953
+ return 1;
8954
+ }
8955
+ if (this.minor < other.minor) {
8956
+ return -1;
8957
+ }
8958
+ if (this.minor > other.minor) {
8959
+ return 1;
8960
+ }
8961
+ if (this.patch < other.patch) {
8962
+ return -1;
8963
+ }
8964
+ if (this.patch > other.patch) {
8965
+ return 1;
8966
+ }
8967
+ return 0;
8945
8968
  }
8946
8969
  comparePre(other) {
8947
8970
  if (!(other instanceof _SemVer)) {
@@ -8996,8 +9019,8 @@ var require_semver = __commonJS({
8996
9019
  }
8997
9020
  // preminor will bump the version up to the next minor release, and immediately
8998
9021
  // down to pre-release. premajor and prepatch work the same way.
8999
- inc(release3, identifier, identifierBase) {
9000
- if (release3.startsWith("pre")) {
9022
+ inc(release2, identifier, identifierBase) {
9023
+ if (release2.startsWith("pre")) {
9001
9024
  if (!identifier && identifierBase === false) {
9002
9025
  throw new Error("invalid increment argument: identifier is empty");
9003
9026
  }
@@ -9008,7 +9031,7 @@ var require_semver = __commonJS({
9008
9031
  }
9009
9032
  }
9010
9033
  }
9011
- switch (release3) {
9034
+ switch (release2) {
9012
9035
  case "premajor":
9013
9036
  this.prerelease.length = 0;
9014
9037
  this.patch = 0;
@@ -9099,7 +9122,7 @@ var require_semver = __commonJS({
9099
9122
  break;
9100
9123
  }
9101
9124
  default:
9102
- throw new Error(`invalid increment argument: ${release3}`);
9125
+ throw new Error(`invalid increment argument: ${release2}`);
9103
9126
  }
9104
9127
  this.raw = this.format();
9105
9128
  if (this.build.length) {
@@ -9114,9 +9137,9 @@ var require_semver = __commonJS({
9114
9137
  }
9115
9138
  });
9116
9139
 
9117
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/parse.js
9140
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/parse.js
9118
9141
  var require_parse = __commonJS({
9119
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/parse.js"(exports, module) {
9142
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/parse.js"(exports, module) {
9120
9143
  "use strict";
9121
9144
  var SemVer = require_semver();
9122
9145
  var parse2 = /* @__PURE__ */ __name((version, options, throwErrors = false) => {
@@ -9136,9 +9159,9 @@ var require_parse = __commonJS({
9136
9159
  }
9137
9160
  });
9138
9161
 
9139
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/valid.js
9162
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/valid.js
9140
9163
  var require_valid = __commonJS({
9141
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/valid.js"(exports, module) {
9164
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/valid.js"(exports, module) {
9142
9165
  "use strict";
9143
9166
  var parse2 = require_parse();
9144
9167
  var valid = /* @__PURE__ */ __name((version, options) => {
@@ -9149,9 +9172,9 @@ var require_valid = __commonJS({
9149
9172
  }
9150
9173
  });
9151
9174
 
9152
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/clean.js
9175
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/clean.js
9153
9176
  var require_clean = __commonJS({
9154
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/clean.js"(exports, module) {
9177
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/clean.js"(exports, module) {
9155
9178
  "use strict";
9156
9179
  var parse2 = require_parse();
9157
9180
  var clean = /* @__PURE__ */ __name((version, options) => {
@@ -9162,12 +9185,12 @@ var require_clean = __commonJS({
9162
9185
  }
9163
9186
  });
9164
9187
 
9165
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/inc.js
9188
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/inc.js
9166
9189
  var require_inc = __commonJS({
9167
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/inc.js"(exports, module) {
9190
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/inc.js"(exports, module) {
9168
9191
  "use strict";
9169
9192
  var SemVer = require_semver();
9170
- var inc = /* @__PURE__ */ __name((version, release3, options, identifier, identifierBase) => {
9193
+ var inc = /* @__PURE__ */ __name((version, release2, options, identifier, identifierBase) => {
9171
9194
  if (typeof options === "string") {
9172
9195
  identifierBase = identifier;
9173
9196
  identifier = options;
@@ -9177,7 +9200,7 @@ var require_inc = __commonJS({
9177
9200
  return new SemVer(
9178
9201
  version instanceof SemVer ? version.version : version,
9179
9202
  options
9180
- ).inc(release3, identifier, identifierBase).version;
9203
+ ).inc(release2, identifier, identifierBase).version;
9181
9204
  } catch (er) {
9182
9205
  return null;
9183
9206
  }
@@ -9186,9 +9209,9 @@ var require_inc = __commonJS({
9186
9209
  }
9187
9210
  });
9188
9211
 
9189
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/diff.js
9212
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/diff.js
9190
9213
  var require_diff = __commonJS({
9191
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/diff.js"(exports, module) {
9214
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/diff.js"(exports, module) {
9192
9215
  "use strict";
9193
9216
  var parse2 = require_parse();
9194
9217
  var diff = /* @__PURE__ */ __name((version1, version2) => {
@@ -9230,9 +9253,9 @@ var require_diff = __commonJS({
9230
9253
  }
9231
9254
  });
9232
9255
 
9233
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/major.js
9256
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/major.js
9234
9257
  var require_major = __commonJS({
9235
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/major.js"(exports, module) {
9258
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/major.js"(exports, module) {
9236
9259
  "use strict";
9237
9260
  var SemVer = require_semver();
9238
9261
  var major2 = /* @__PURE__ */ __name((a, loose) => new SemVer(a, loose).major, "major");
@@ -9240,9 +9263,9 @@ var require_major = __commonJS({
9240
9263
  }
9241
9264
  });
9242
9265
 
9243
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/minor.js
9266
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/minor.js
9244
9267
  var require_minor = __commonJS({
9245
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/minor.js"(exports, module) {
9268
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/minor.js"(exports, module) {
9246
9269
  "use strict";
9247
9270
  var SemVer = require_semver();
9248
9271
  var minor = /* @__PURE__ */ __name((a, loose) => new SemVer(a, loose).minor, "minor");
@@ -9250,9 +9273,9 @@ var require_minor = __commonJS({
9250
9273
  }
9251
9274
  });
9252
9275
 
9253
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/patch.js
9276
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/patch.js
9254
9277
  var require_patch = __commonJS({
9255
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/patch.js"(exports, module) {
9278
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/patch.js"(exports, module) {
9256
9279
  "use strict";
9257
9280
  var SemVer = require_semver();
9258
9281
  var patch = /* @__PURE__ */ __name((a, loose) => new SemVer(a, loose).patch, "patch");
@@ -9260,9 +9283,9 @@ var require_patch = __commonJS({
9260
9283
  }
9261
9284
  });
9262
9285
 
9263
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/prerelease.js
9286
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/prerelease.js
9264
9287
  var require_prerelease = __commonJS({
9265
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/prerelease.js"(exports, module) {
9288
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/prerelease.js"(exports, module) {
9266
9289
  "use strict";
9267
9290
  var parse2 = require_parse();
9268
9291
  var prerelease = /* @__PURE__ */ __name((version, options) => {
@@ -9273,9 +9296,9 @@ var require_prerelease = __commonJS({
9273
9296
  }
9274
9297
  });
9275
9298
 
9276
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/compare.js
9299
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/compare.js
9277
9300
  var require_compare = __commonJS({
9278
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/compare.js"(exports, module) {
9301
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/compare.js"(exports, module) {
9279
9302
  "use strict";
9280
9303
  var SemVer = require_semver();
9281
9304
  var compare = /* @__PURE__ */ __name((a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose)), "compare");
@@ -9283,9 +9306,9 @@ var require_compare = __commonJS({
9283
9306
  }
9284
9307
  });
9285
9308
 
9286
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/rcompare.js
9309
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/rcompare.js
9287
9310
  var require_rcompare = __commonJS({
9288
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/rcompare.js"(exports, module) {
9311
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/rcompare.js"(exports, module) {
9289
9312
  "use strict";
9290
9313
  var compare = require_compare();
9291
9314
  var rcompare = /* @__PURE__ */ __name((a, b, loose) => compare(b, a, loose), "rcompare");
@@ -9293,9 +9316,9 @@ var require_rcompare = __commonJS({
9293
9316
  }
9294
9317
  });
9295
9318
 
9296
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/compare-loose.js
9319
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/compare-loose.js
9297
9320
  var require_compare_loose = __commonJS({
9298
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/compare-loose.js"(exports, module) {
9321
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/compare-loose.js"(exports, module) {
9299
9322
  "use strict";
9300
9323
  var compare = require_compare();
9301
9324
  var compareLoose = /* @__PURE__ */ __name((a, b) => compare(a, b, true), "compareLoose");
@@ -9303,9 +9326,9 @@ var require_compare_loose = __commonJS({
9303
9326
  }
9304
9327
  });
9305
9328
 
9306
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/compare-build.js
9329
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/compare-build.js
9307
9330
  var require_compare_build = __commonJS({
9308
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/compare-build.js"(exports, module) {
9331
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/compare-build.js"(exports, module) {
9309
9332
  "use strict";
9310
9333
  var SemVer = require_semver();
9311
9334
  var compareBuild = /* @__PURE__ */ __name((a, b, loose) => {
@@ -9317,9 +9340,9 @@ var require_compare_build = __commonJS({
9317
9340
  }
9318
9341
  });
9319
9342
 
9320
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/sort.js
9343
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/sort.js
9321
9344
  var require_sort = __commonJS({
9322
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/sort.js"(exports, module) {
9345
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/sort.js"(exports, module) {
9323
9346
  "use strict";
9324
9347
  var compareBuild = require_compare_build();
9325
9348
  var sort = /* @__PURE__ */ __name((list, loose) => list.sort((a, b) => compareBuild(a, b, loose)), "sort");
@@ -9327,9 +9350,9 @@ var require_sort = __commonJS({
9327
9350
  }
9328
9351
  });
9329
9352
 
9330
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/rsort.js
9353
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/rsort.js
9331
9354
  var require_rsort = __commonJS({
9332
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/rsort.js"(exports, module) {
9355
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/rsort.js"(exports, module) {
9333
9356
  "use strict";
9334
9357
  var compareBuild = require_compare_build();
9335
9358
  var rsort = /* @__PURE__ */ __name((list, loose) => list.sort((a, b) => compareBuild(b, a, loose)), "rsort");
@@ -9337,9 +9360,9 @@ var require_rsort = __commonJS({
9337
9360
  }
9338
9361
  });
9339
9362
 
9340
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/gt.js
9363
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/gt.js
9341
9364
  var require_gt = __commonJS({
9342
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/gt.js"(exports, module) {
9365
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/gt.js"(exports, module) {
9343
9366
  "use strict";
9344
9367
  var compare = require_compare();
9345
9368
  var gt = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) > 0, "gt");
@@ -9347,9 +9370,9 @@ var require_gt = __commonJS({
9347
9370
  }
9348
9371
  });
9349
9372
 
9350
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/lt.js
9373
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/lt.js
9351
9374
  var require_lt = __commonJS({
9352
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/lt.js"(exports, module) {
9375
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/lt.js"(exports, module) {
9353
9376
  "use strict";
9354
9377
  var compare = require_compare();
9355
9378
  var lt = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) < 0, "lt");
@@ -9357,9 +9380,9 @@ var require_lt = __commonJS({
9357
9380
  }
9358
9381
  });
9359
9382
 
9360
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/eq.js
9383
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/eq.js
9361
9384
  var require_eq = __commonJS({
9362
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/eq.js"(exports, module) {
9385
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/eq.js"(exports, module) {
9363
9386
  "use strict";
9364
9387
  var compare = require_compare();
9365
9388
  var eq = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) === 0, "eq");
@@ -9367,9 +9390,9 @@ var require_eq = __commonJS({
9367
9390
  }
9368
9391
  });
9369
9392
 
9370
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/neq.js
9393
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/neq.js
9371
9394
  var require_neq = __commonJS({
9372
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/neq.js"(exports, module) {
9395
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/neq.js"(exports, module) {
9373
9396
  "use strict";
9374
9397
  var compare = require_compare();
9375
9398
  var neq = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) !== 0, "neq");
@@ -9377,9 +9400,9 @@ var require_neq = __commonJS({
9377
9400
  }
9378
9401
  });
9379
9402
 
9380
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/gte.js
9403
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/gte.js
9381
9404
  var require_gte = __commonJS({
9382
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/gte.js"(exports, module) {
9405
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/gte.js"(exports, module) {
9383
9406
  "use strict";
9384
9407
  var compare = require_compare();
9385
9408
  var gte = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) >= 0, "gte");
@@ -9387,9 +9410,9 @@ var require_gte = __commonJS({
9387
9410
  }
9388
9411
  });
9389
9412
 
9390
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/lte.js
9413
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/lte.js
9391
9414
  var require_lte = __commonJS({
9392
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/lte.js"(exports, module) {
9415
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/lte.js"(exports, module) {
9393
9416
  "use strict";
9394
9417
  var compare = require_compare();
9395
9418
  var lte = /* @__PURE__ */ __name((a, b, loose) => compare(a, b, loose) <= 0, "lte");
@@ -9397,9 +9420,9 @@ var require_lte = __commonJS({
9397
9420
  }
9398
9421
  });
9399
9422
 
9400
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/cmp.js
9423
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/cmp.js
9401
9424
  var require_cmp = __commonJS({
9402
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/cmp.js"(exports, module) {
9425
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/cmp.js"(exports, module) {
9403
9426
  "use strict";
9404
9427
  var eq = require_eq();
9405
9428
  var neq = require_neq();
@@ -9447,9 +9470,9 @@ var require_cmp = __commonJS({
9447
9470
  }
9448
9471
  });
9449
9472
 
9450
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/coerce.js
9473
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/coerce.js
9451
9474
  var require_coerce = __commonJS({
9452
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/coerce.js"(exports, module) {
9475
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/coerce.js"(exports, module) {
9453
9476
  "use strict";
9454
9477
  var SemVer = require_semver();
9455
9478
  var parse2 = require_parse();
@@ -9493,9 +9516,9 @@ var require_coerce = __commonJS({
9493
9516
  }
9494
9517
  });
9495
9518
 
9496
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/internal/lrucache.js
9519
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/internal/lrucache.js
9497
9520
  var require_lrucache = __commonJS({
9498
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/internal/lrucache.js"(exports, module) {
9521
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/internal/lrucache.js"(exports, module) {
9499
9522
  "use strict";
9500
9523
  var _LRUCache = class _LRUCache {
9501
9524
  constructor() {
@@ -9533,9 +9556,9 @@ var require_lrucache = __commonJS({
9533
9556
  }
9534
9557
  });
9535
9558
 
9536
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/classes/range.js
9559
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/classes/range.js
9537
9560
  var require_range = __commonJS({
9538
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/classes/range.js"(exports, module) {
9561
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/classes/range.js"(exports, module) {
9539
9562
  "use strict";
9540
9563
  var SPACE_CHARACTERS = /\s+/g;
9541
9564
  var _Range = class _Range {
@@ -9708,6 +9731,7 @@ var require_range = __commonJS({
9708
9731
  return result;
9709
9732
  }, "isSatisfiable");
9710
9733
  var parseComparator = /* @__PURE__ */ __name((comp, options) => {
9734
+ comp = comp.replace(re2[t.BUILD], "");
9711
9735
  debug("comp", comp, options);
9712
9736
  comp = replaceCarets(comp, options);
9713
9737
  debug("caret", comp);
@@ -9911,9 +9935,9 @@ var require_range = __commonJS({
9911
9935
  }
9912
9936
  });
9913
9937
 
9914
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/classes/comparator.js
9938
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/classes/comparator.js
9915
9939
  var require_comparator = __commonJS({
9916
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/classes/comparator.js"(exports, module) {
9940
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/classes/comparator.js"(exports, module) {
9917
9941
  "use strict";
9918
9942
  var ANY = Symbol("SemVer ANY");
9919
9943
  var _Comparator = class _Comparator {
@@ -10026,9 +10050,9 @@ var require_comparator = __commonJS({
10026
10050
  }
10027
10051
  });
10028
10052
 
10029
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/satisfies.js
10053
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/satisfies.js
10030
10054
  var require_satisfies = __commonJS({
10031
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/functions/satisfies.js"(exports, module) {
10055
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/functions/satisfies.js"(exports, module) {
10032
10056
  "use strict";
10033
10057
  var Range = require_range();
10034
10058
  var satisfies = /* @__PURE__ */ __name((version, range, options) => {
@@ -10043,9 +10067,9 @@ var require_satisfies = __commonJS({
10043
10067
  }
10044
10068
  });
10045
10069
 
10046
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/to-comparators.js
10070
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/to-comparators.js
10047
10071
  var require_to_comparators = __commonJS({
10048
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/to-comparators.js"(exports, module) {
10072
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/to-comparators.js"(exports, module) {
10049
10073
  "use strict";
10050
10074
  var Range = require_range();
10051
10075
  var toComparators = /* @__PURE__ */ __name((range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" ")), "toComparators");
@@ -10053,13 +10077,13 @@ var require_to_comparators = __commonJS({
10053
10077
  }
10054
10078
  });
10055
10079
 
10056
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/max-satisfying.js
10080
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/max-satisfying.js
10057
10081
  var require_max_satisfying = __commonJS({
10058
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/max-satisfying.js"(exports, module) {
10082
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/max-satisfying.js"(exports, module) {
10059
10083
  "use strict";
10060
10084
  var SemVer = require_semver();
10061
10085
  var Range = require_range();
10062
- var maxSatisfying = /* @__PURE__ */ __name((versions2, range, options) => {
10086
+ var maxSatisfying = /* @__PURE__ */ __name((versions, range, options) => {
10063
10087
  let max = null;
10064
10088
  let maxSV = null;
10065
10089
  let rangeObj = null;
@@ -10068,7 +10092,7 @@ var require_max_satisfying = __commonJS({
10068
10092
  } catch (er) {
10069
10093
  return null;
10070
10094
  }
10071
- versions2.forEach((v) => {
10095
+ versions.forEach((v) => {
10072
10096
  if (rangeObj.test(v)) {
10073
10097
  if (!max || maxSV.compare(v) === -1) {
10074
10098
  max = v;
@@ -10082,13 +10106,13 @@ var require_max_satisfying = __commonJS({
10082
10106
  }
10083
10107
  });
10084
10108
 
10085
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/min-satisfying.js
10109
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/min-satisfying.js
10086
10110
  var require_min_satisfying = __commonJS({
10087
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/min-satisfying.js"(exports, module) {
10111
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/min-satisfying.js"(exports, module) {
10088
10112
  "use strict";
10089
10113
  var SemVer = require_semver();
10090
10114
  var Range = require_range();
10091
- var minSatisfying = /* @__PURE__ */ __name((versions2, range, options) => {
10115
+ var minSatisfying = /* @__PURE__ */ __name((versions, range, options) => {
10092
10116
  let min = null;
10093
10117
  let minSV = null;
10094
10118
  let rangeObj = null;
@@ -10097,7 +10121,7 @@ var require_min_satisfying = __commonJS({
10097
10121
  } catch (er) {
10098
10122
  return null;
10099
10123
  }
10100
- versions2.forEach((v) => {
10124
+ versions.forEach((v) => {
10101
10125
  if (rangeObj.test(v)) {
10102
10126
  if (!min || minSV.compare(v) === 1) {
10103
10127
  min = v;
@@ -10111,9 +10135,9 @@ var require_min_satisfying = __commonJS({
10111
10135
  }
10112
10136
  });
10113
10137
 
10114
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/min-version.js
10138
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/min-version.js
10115
10139
  var require_min_version = __commonJS({
10116
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/min-version.js"(exports, module) {
10140
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/min-version.js"(exports, module) {
10117
10141
  "use strict";
10118
10142
  var SemVer = require_semver();
10119
10143
  var Range = require_range();
@@ -10170,9 +10194,9 @@ var require_min_version = __commonJS({
10170
10194
  }
10171
10195
  });
10172
10196
 
10173
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/valid.js
10197
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/valid.js
10174
10198
  var require_valid2 = __commonJS({
10175
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/valid.js"(exports, module) {
10199
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/valid.js"(exports, module) {
10176
10200
  "use strict";
10177
10201
  var Range = require_range();
10178
10202
  var validRange = /* @__PURE__ */ __name((range, options) => {
@@ -10186,9 +10210,9 @@ var require_valid2 = __commonJS({
10186
10210
  }
10187
10211
  });
10188
10212
 
10189
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/outside.js
10213
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/outside.js
10190
10214
  var require_outside = __commonJS({
10191
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/outside.js"(exports, module) {
10215
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/outside.js"(exports, module) {
10192
10216
  "use strict";
10193
10217
  var SemVer = require_semver();
10194
10218
  var Comparator = require_comparator();
@@ -10255,9 +10279,9 @@ var require_outside = __commonJS({
10255
10279
  }
10256
10280
  });
10257
10281
 
10258
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/gtr.js
10282
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/gtr.js
10259
10283
  var require_gtr = __commonJS({
10260
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/gtr.js"(exports, module) {
10284
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/gtr.js"(exports, module) {
10261
10285
  "use strict";
10262
10286
  var outside = require_outside();
10263
10287
  var gtr = /* @__PURE__ */ __name((version, range, options) => outside(version, range, ">", options), "gtr");
@@ -10265,9 +10289,9 @@ var require_gtr = __commonJS({
10265
10289
  }
10266
10290
  });
10267
10291
 
10268
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/ltr.js
10292
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/ltr.js
10269
10293
  var require_ltr = __commonJS({
10270
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/ltr.js"(exports, module) {
10294
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/ltr.js"(exports, module) {
10271
10295
  "use strict";
10272
10296
  var outside = require_outside();
10273
10297
  var ltr = /* @__PURE__ */ __name((version, range, options) => outside(version, range, "<", options), "ltr");
@@ -10275,9 +10299,9 @@ var require_ltr = __commonJS({
10275
10299
  }
10276
10300
  });
10277
10301
 
10278
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/intersects.js
10302
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/intersects.js
10279
10303
  var require_intersects = __commonJS({
10280
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/intersects.js"(exports, module) {
10304
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/intersects.js"(exports, module) {
10281
10305
  "use strict";
10282
10306
  var Range = require_range();
10283
10307
  var intersects = /* @__PURE__ */ __name((r1, r2, options) => {
@@ -10289,17 +10313,17 @@ var require_intersects = __commonJS({
10289
10313
  }
10290
10314
  });
10291
10315
 
10292
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/simplify.js
10316
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/simplify.js
10293
10317
  var require_simplify = __commonJS({
10294
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/simplify.js"(exports, module) {
10318
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/simplify.js"(exports, module) {
10295
10319
  "use strict";
10296
10320
  var satisfies = require_satisfies();
10297
10321
  var compare = require_compare();
10298
- module.exports = (versions2, range, options) => {
10322
+ module.exports = (versions, range, options) => {
10299
10323
  const set = [];
10300
10324
  let first = null;
10301
10325
  let prev = null;
10302
- const v = versions2.sort((a, b) => compare(a, b, options));
10326
+ const v = versions.sort((a, b) => compare(a, b, options));
10303
10327
  for (const version of v) {
10304
10328
  const included = satisfies(version, range, options);
10305
10329
  if (included) {
@@ -10339,9 +10363,9 @@ var require_simplify = __commonJS({
10339
10363
  }
10340
10364
  });
10341
10365
 
10342
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/subset.js
10366
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/subset.js
10343
10367
  var require_subset = __commonJS({
10344
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/ranges/subset.js"(exports, module) {
10368
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/ranges/subset.js"(exports, module) {
10345
10369
  "use strict";
10346
10370
  var Range = require_range();
10347
10371
  var Comparator = require_comparator();
@@ -10501,9 +10525,9 @@ var require_subset = __commonJS({
10501
10525
  }
10502
10526
  });
10503
10527
 
10504
- // ../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/index.js
10528
+ // ../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/index.js
10505
10529
  var require_package = __commonJS({
10506
- "../../node_modules/.store/semver-npm-7.7.2-dfc3bc5ec9/package/index.js"(exports, module) {
10530
+ "../../node_modules/.store/semver-npm-7.7.3-9cf7b3b46c/package/index.js"(exports, module) {
10507
10531
  "use strict";
10508
10532
  var internalRe = require_re();
10509
10533
  var constants = require_constants3();
@@ -10630,7 +10654,7 @@ var require_JaegerPropagator = __commonJS({
10630
10654
  }
10631
10655
  }
10632
10656
  extract(context4, carrier, getter) {
10633
- var _a3;
10657
+ var _a4;
10634
10658
  const uberTraceIdHeader = getter.get(carrier, this._jaegerTraceHeader);
10635
10659
  const uberTraceId = Array.isArray(uberTraceIdHeader) ? uberTraceIdHeader[0] : uberTraceIdHeader;
10636
10660
  const baggageValues = getter.keys(carrier).filter((key) => key.startsWith(`${this._jaegerBaggageHeaderPrefix}-`)).map((key) => {
@@ -10649,7 +10673,7 @@ var require_JaegerPropagator = __commonJS({
10649
10673
  }
10650
10674
  if (baggageValues.length === 0)
10651
10675
  return newContext;
10652
- let currentBaggage = (_a3 = api_1.propagation.getBaggage(context4)) !== null && _a3 !== void 0 ? _a3 : api_1.propagation.createBaggage();
10676
+ let currentBaggage = (_a4 = api_1.propagation.getBaggage(context4)) !== null && _a4 !== void 0 ? _a4 : api_1.propagation.createBaggage();
10653
10677
  for (const baggageEntry of baggageValues) {
10654
10678
  if (baggageEntry.value === void 0)
10655
10679
  continue;
@@ -10910,11 +10934,11 @@ var require_parse2 = __commonJS({
10910
10934
  if (start !== null) throw Error("internal error, token overlap");
10911
10935
  start = position;
10912
10936
  }, "tokenStart");
10913
- tokenEnd = /* @__PURE__ */ __name(function(v, type4) {
10937
+ tokenEnd = /* @__PURE__ */ __name(function(v, type3) {
10914
10938
  if (start != position) {
10915
10939
  var hash = {
10916
10940
  raw: input.substr(start, position - start),
10917
- type: type4,
10941
+ type: type3,
10918
10942
  stack: stack.slice(0)
10919
10943
  };
10920
10944
  if (v !== void 0) hash.value = v;
@@ -12144,10 +12168,10 @@ var require_package3 = __commonJS({
12144
12168
  var y = d * 365.25;
12145
12169
  module.exports = function(val, options) {
12146
12170
  options = options || {};
12147
- var type4 = typeof val;
12148
- if (type4 === "string" && val.length > 0) {
12171
+ var type3 = typeof val;
12172
+ if (type3 === "string" && val.length > 0) {
12149
12173
  return parse2(val);
12150
- } else if (type4 === "number" && isFinite(val)) {
12174
+ } else if (type3 === "number" && isFinite(val)) {
12151
12175
  return options.long ? fmtLong(val) : fmtShort(val);
12152
12176
  }
12153
12177
  throw new Error(
@@ -12166,8 +12190,8 @@ var require_package3 = __commonJS({
12166
12190
  return;
12167
12191
  }
12168
12192
  var n = parseFloat(match[1]);
12169
- var type4 = (match[2] || "ms").toLowerCase();
12170
- switch (type4) {
12193
+ var type3 = (match[2] || "ms").toLowerCase();
12194
+ switch (type3) {
12171
12195
  case "years":
12172
12196
  case "year":
12173
12197
  case "yrs":
@@ -12253,9 +12277,9 @@ var require_package3 = __commonJS({
12253
12277
  }
12254
12278
  });
12255
12279
 
12256
- // ../../node_modules/.store/debug-virtual-26dc941e9a/package/src/common.js
12280
+ // ../../node_modules/.store/debug-virtual-1d2c3fd483/package/src/common.js
12257
12281
  var require_common2 = __commonJS({
12258
- "../../node_modules/.store/debug-virtual-26dc941e9a/package/src/common.js"(exports, module) {
12282
+ "../../node_modules/.store/debug-virtual-1d2c3fd483/package/src/common.js"(exports, module) {
12259
12283
  function setup(env) {
12260
12284
  createDebug.debug = createDebug;
12261
12285
  createDebug.default = createDebug;
@@ -12441,9 +12465,9 @@ var require_common2 = __commonJS({
12441
12465
  }
12442
12466
  });
12443
12467
 
12444
- // ../../node_modules/.store/debug-virtual-26dc941e9a/package/src/browser.js
12468
+ // ../../node_modules/.store/debug-virtual-1d2c3fd483/package/src/browser.js
12445
12469
  var require_browser = __commonJS({
12446
- "../../node_modules/.store/debug-virtual-26dc941e9a/package/src/browser.js"(exports, module) {
12470
+ "../../node_modules/.store/debug-virtual-1d2c3fd483/package/src/browser.js"(exports, module) {
12447
12471
  exports.formatArgs = formatArgs;
12448
12472
  exports.save = save;
12449
12473
  exports.load = load;
@@ -12747,9 +12771,9 @@ var require_package5 = __commonJS({
12747
12771
  }
12748
12772
  });
12749
12773
 
12750
- // ../../node_modules/.store/debug-virtual-26dc941e9a/package/src/node.js
12774
+ // ../../node_modules/.store/debug-virtual-1d2c3fd483/package/src/node.js
12751
12775
  var require_node5 = __commonJS({
12752
- "../../node_modules/.store/debug-virtual-26dc941e9a/package/src/node.js"(exports, module) {
12776
+ "../../node_modules/.store/debug-virtual-1d2c3fd483/package/src/node.js"(exports, module) {
12753
12777
  var tty = __require("tty");
12754
12778
  var util2 = __require("util");
12755
12779
  exports.init = init;
@@ -12928,9 +12952,9 @@ var require_node5 = __commonJS({
12928
12952
  }
12929
12953
  });
12930
12954
 
12931
- // ../../node_modules/.store/debug-virtual-26dc941e9a/package/src/index.js
12955
+ // ../../node_modules/.store/debug-virtual-1d2c3fd483/package/src/index.js
12932
12956
  var require_src8 = __commonJS({
12933
- "../../node_modules/.store/debug-virtual-26dc941e9a/package/src/index.js"(exports, module) {
12957
+ "../../node_modules/.store/debug-virtual-1d2c3fd483/package/src/index.js"(exports, module) {
12934
12958
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
12935
12959
  module.exports = require_browser();
12936
12960
  } else {
@@ -13165,8 +13189,8 @@ var require_dist = __commonJS({
13165
13189
  }
13166
13190
  };
13167
13191
  __name(_Agent, "Agent");
13168
- var Agent3 = _Agent;
13169
- exports.Agent = Agent3;
13192
+ var Agent = _Agent;
13193
+ exports.Agent = Agent;
13170
13194
  }
13171
13195
  });
13172
13196
 
@@ -13559,9 +13583,9 @@ var require_dist3 = __commonJS({
13559
13583
  }
13560
13584
  });
13561
13585
 
13562
- // ../../node_modules/.store/@azure-core-tracing-npm-1.3.0-ee5ebb3659/package/dist/commonjs/state.js
13586
+ // ../../node_modules/.store/@azure-core-tracing-npm-1.3.1-eb2949b9c4/package/dist/commonjs/state.js
13563
13587
  var require_state = __commonJS({
13564
- "../../node_modules/.store/@azure-core-tracing-npm-1.3.0-ee5ebb3659/package/dist/commonjs/state.js"(exports) {
13588
+ "../../node_modules/.store/@azure-core-tracing-npm-1.3.1-eb2949b9c4/package/dist/commonjs/state.js"(exports) {
13565
13589
  "use strict";
13566
13590
  Object.defineProperty(exports, "__esModule", { value: true });
13567
13591
  exports.state = void 0;
@@ -13571,9 +13595,9 @@ var require_state = __commonJS({
13571
13595
  }
13572
13596
  });
13573
13597
 
13574
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/commonjs/state.js
13598
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/commonjs/state.js
13575
13599
  var require_state2 = __commonJS({
13576
- "../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/commonjs/state.js"(exports) {
13600
+ "../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/commonjs/state.js"(exports) {
13577
13601
  "use strict";
13578
13602
  Object.defineProperty(exports, "__esModule", { value: true });
13579
13603
  exports.state = void 0;
@@ -13634,8 +13658,8 @@ var require_utils5 = __commonJS({
13634
13658
  __name(hashAttributes, "hashAttributes");
13635
13659
  exports.hashAttributes = hashAttributes;
13636
13660
  function instrumentationScopeId(instrumentationScope) {
13637
- var _a3, _b2;
13638
- return `${instrumentationScope.name}:${(_a3 = instrumentationScope.version) !== null && _a3 !== void 0 ? _a3 : ""}:${(_b2 = instrumentationScope.schemaUrl) !== null && _b2 !== void 0 ? _b2 : ""}`;
13661
+ var _a4, _b2;
13662
+ return `${instrumentationScope.name}:${(_a4 = instrumentationScope.version) !== null && _a4 !== void 0 ? _a4 : ""}:${(_b2 = instrumentationScope.schemaUrl) !== null && _b2 !== void 0 ? _b2 : ""}`;
13639
13663
  }
13640
13664
  __name(instrumentationScopeId, "instrumentationScopeId");
13641
13665
  exports.instrumentationScopeId = instrumentationScopeId;
@@ -13800,26 +13824,26 @@ var require_InstrumentDescriptor = __commonJS({
13800
13824
  InstrumentType2["OBSERVABLE_GAUGE"] = "OBSERVABLE_GAUGE";
13801
13825
  InstrumentType2["OBSERVABLE_UP_DOWN_COUNTER"] = "OBSERVABLE_UP_DOWN_COUNTER";
13802
13826
  })(InstrumentType = exports.InstrumentType || (exports.InstrumentType = {}));
13803
- function createInstrumentDescriptor(name, type4, options) {
13804
- var _a3, _b2, _c2, _d2;
13827
+ function createInstrumentDescriptor(name, type3, options) {
13828
+ var _a4, _b2, _c2, _d;
13805
13829
  if (!isValidName(name)) {
13806
13830
  api_1.diag.warn(`Invalid metric name: "${name}". The metric name should be a ASCII string with a length no greater than 255 characters.`);
13807
13831
  }
13808
13832
  return {
13809
13833
  name,
13810
- type: type4,
13811
- description: (_a3 = options === null || options === void 0 ? void 0 : options.description) !== null && _a3 !== void 0 ? _a3 : "",
13834
+ type: type3,
13835
+ description: (_a4 = options === null || options === void 0 ? void 0 : options.description) !== null && _a4 !== void 0 ? _a4 : "",
13812
13836
  unit: (_b2 = options === null || options === void 0 ? void 0 : options.unit) !== null && _b2 !== void 0 ? _b2 : "",
13813
13837
  valueType: (_c2 = options === null || options === void 0 ? void 0 : options.valueType) !== null && _c2 !== void 0 ? _c2 : api_1.ValueType.DOUBLE,
13814
- advice: (_d2 = options === null || options === void 0 ? void 0 : options.advice) !== null && _d2 !== void 0 ? _d2 : {}
13838
+ advice: (_d = options === null || options === void 0 ? void 0 : options.advice) !== null && _d !== void 0 ? _d : {}
13815
13839
  };
13816
13840
  }
13817
13841
  __name(createInstrumentDescriptor, "createInstrumentDescriptor");
13818
13842
  exports.createInstrumentDescriptor = createInstrumentDescriptor;
13819
13843
  function createInstrumentDescriptorWithView(view, instrument) {
13820
- var _a3, _b2;
13844
+ var _a4, _b2;
13821
13845
  return {
13822
- name: (_a3 = view.name) !== null && _a3 !== void 0 ? _a3 : instrument.name,
13846
+ name: (_a4 = view.name) !== null && _a4 !== void 0 ? _a4 : instrument.name,
13823
13847
  description: (_b2 = view.description) !== null && _b2 !== void 0 ? _b2 : instrument.description,
13824
13848
  type: instrument.type,
13825
13849
  unit: instrument.unit,
@@ -15342,9 +15366,9 @@ var require_MetricReader = __commonJS({
15342
15366
  var AggregationSelector_1 = require_AggregationSelector();
15343
15367
  var _MetricReader = class _MetricReader {
15344
15368
  constructor(options) {
15345
- var _a3, _b2, _c2;
15369
+ var _a4, _b2, _c2;
15346
15370
  this._shutdown = false;
15347
- this._aggregationSelector = (_a3 = options === null || options === void 0 ? void 0 : options.aggregationSelector) !== null && _a3 !== void 0 ? _a3 : AggregationSelector_1.DEFAULT_AGGREGATION_SELECTOR;
15371
+ this._aggregationSelector = (_a4 = options === null || options === void 0 ? void 0 : options.aggregationSelector) !== null && _a4 !== void 0 ? _a4 : AggregationSelector_1.DEFAULT_AGGREGATION_SELECTOR;
15348
15372
  this._aggregationTemporalitySelector = (_b2 = options === null || options === void 0 ? void 0 : options.aggregationTemporalitySelector) !== null && _b2 !== void 0 ? _b2 : AggregationSelector_1.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR;
15349
15373
  this._metricProducers = (_c2 = options === null || options === void 0 ? void 0 : options.metricProducers) !== null && _c2 !== void 0 ? _c2 : [];
15350
15374
  this._cardinalitySelector = options === null || options === void 0 ? void 0 : options.cardinalitySelector;
@@ -15476,9 +15500,9 @@ var require_PeriodicExportingMetricReader = __commonJS({
15476
15500
  var utils_1 = require_utils5();
15477
15501
  var _PeriodicExportingMetricReader = class _PeriodicExportingMetricReader extends MetricReader_1.MetricReader {
15478
15502
  constructor(options) {
15479
- var _a3, _b2, _c2, _d2;
15503
+ var _a4, _b2, _c2, _d;
15480
15504
  super({
15481
- aggregationSelector: (_a3 = options.exporter.selectAggregation) === null || _a3 === void 0 ? void 0 : _a3.bind(options.exporter),
15505
+ aggregationSelector: (_a4 = options.exporter.selectAggregation) === null || _a4 === void 0 ? void 0 : _a4.bind(options.exporter),
15482
15506
  aggregationTemporalitySelector: (_b2 = options.exporter.selectAggregationTemporality) === null || _b2 === void 0 ? void 0 : _b2.bind(options.exporter),
15483
15507
  metricProducers: options.metricProducers
15484
15508
  });
@@ -15492,7 +15516,7 @@ var require_PeriodicExportingMetricReader = __commonJS({
15492
15516
  throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");
15493
15517
  }
15494
15518
  this._exportInterval = (_c2 = options.exportIntervalMillis) !== null && _c2 !== void 0 ? _c2 : 6e4;
15495
- this._exportTimeout = (_d2 = options.exportTimeoutMillis) !== null && _d2 !== void 0 ? _d2 : 3e4;
15519
+ this._exportTimeout = (_d = options.exportTimeoutMillis) !== null && _d !== void 0 ? _d : 3e4;
15496
15520
  this._exporter = options.exporter;
15497
15521
  }
15498
15522
  async _runOnce() {
@@ -15507,7 +15531,7 @@ var require_PeriodicExportingMetricReader = __commonJS({
15507
15531
  }
15508
15532
  }
15509
15533
  async _doRun() {
15510
- var _a3, _b2;
15534
+ var _a4, _b2;
15511
15535
  const { resourceMetrics, errors } = await this.collect({
15512
15536
  timeoutMillis: this._exportTimeout
15513
15537
  });
@@ -15516,7 +15540,7 @@ var require_PeriodicExportingMetricReader = __commonJS({
15516
15540
  }
15517
15541
  if (resourceMetrics.resource.asyncAttributesPending) {
15518
15542
  try {
15519
- await ((_b2 = (_a3 = resourceMetrics.resource).waitForAsyncAttributes) === null || _b2 === void 0 ? void 0 : _b2.call(_a3));
15543
+ await ((_b2 = (_a4 = resourceMetrics.resource).waitForAsyncAttributes) === null || _b2 === void 0 ? void 0 : _b2.call(_a4));
15520
15544
  } catch (e) {
15521
15545
  api.diag.debug("Error while resolving async portion of resource: ", e);
15522
15546
  (0, core_1.globalErrorHandler)(e);
@@ -15615,9 +15639,9 @@ var require_ConsoleMetricExporter = __commonJS({
15615
15639
  var AggregationSelector_1 = require_AggregationSelector();
15616
15640
  var _ConsoleMetricExporter = class _ConsoleMetricExporter {
15617
15641
  constructor(options) {
15618
- var _a3;
15642
+ var _a4;
15619
15643
  this._shutdown = false;
15620
- this._temporalitySelector = (_a3 = options === null || options === void 0 ? void 0 : options.temporalitySelector) !== null && _a3 !== void 0 ? _a3 : AggregationSelector_1.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR;
15644
+ this._temporalitySelector = (_a4 = options === null || options === void 0 ? void 0 : options.temporalitySelector) !== null && _a4 !== void 0 ? _a4 : AggregationSelector_1.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR;
15621
15645
  }
15622
15646
  export(metrics2, resultCallback) {
15623
15647
  if (this._shutdown) {
@@ -16893,8 +16917,8 @@ var require_MetricCollector = __commonJS({
16893
16917
  * collector.
16894
16918
  */
16895
16919
  selectCardinalityLimit(instrumentType) {
16896
- var _a3, _b2, _c2;
16897
- return (_c2 = (_b2 = (_a3 = this._metricReader).selectCardinalityLimit) === null || _b2 === void 0 ? void 0 : _b2.call(_a3, instrumentType)) !== null && _c2 !== void 0 ? _c2 : 2e3;
16920
+ var _a4, _b2, _c2;
16921
+ return (_c2 = (_b2 = (_a4 = this._metricReader).selectCardinalityLimit) === null || _b2 === void 0 ? void 0 : _b2.call(_a4, instrumentType)) !== null && _c2 !== void 0 ? _c2 : 2e3;
16898
16922
  }
16899
16923
  };
16900
16924
  __name(_MetricCollector, "MetricCollector");
@@ -16923,9 +16947,9 @@ var require_MeterProvider = __commonJS({
16923
16947
  __name(prepareResource, "prepareResource");
16924
16948
  var _MeterProvider = class _MeterProvider {
16925
16949
  constructor(options) {
16926
- var _a3;
16950
+ var _a4;
16927
16951
  this._shutdown = false;
16928
- this._sharedState = new MeterProviderSharedState_1.MeterProviderSharedState(prepareResource((_a3 = options === null || options === void 0 ? void 0 : options.mergeResourceWithDefaults) !== null && _a3 !== void 0 ? _a3 : true, options === null || options === void 0 ? void 0 : options.resource));
16952
+ this._sharedState = new MeterProviderSharedState_1.MeterProviderSharedState(prepareResource((_a4 = options === null || options === void 0 ? void 0 : options.mergeResourceWithDefaults) !== null && _a4 !== void 0 ? _a4 : true, options === null || options === void 0 ? void 0 : options.resource));
16929
16953
  if ((options === null || options === void 0 ? void 0 : options.views) != null && options.views.length > 0) {
16930
16954
  for (const view of options.views) {
16931
16955
  this._sharedState.viewRegistry.addView(view);
@@ -17068,8 +17092,8 @@ var require_InstrumentSelector = __commonJS({
17068
17092
  var Predicate_1 = require_Predicate();
17069
17093
  var _InstrumentSelector = class _InstrumentSelector {
17070
17094
  constructor(criteria) {
17071
- var _a3;
17072
- this._nameFilter = new Predicate_1.PatternPredicate((_a3 = criteria === null || criteria === void 0 ? void 0 : criteria.name) !== null && _a3 !== void 0 ? _a3 : "*");
17095
+ var _a4;
17096
+ this._nameFilter = new Predicate_1.PatternPredicate((_a4 = criteria === null || criteria === void 0 ? void 0 : criteria.name) !== null && _a4 !== void 0 ? _a4 : "*");
17073
17097
  this._type = criteria === null || criteria === void 0 ? void 0 : criteria.type;
17074
17098
  this._unitFilter = new Predicate_1.ExactPredicate(criteria === null || criteria === void 0 ? void 0 : criteria.unit);
17075
17099
  }
@@ -17194,7 +17218,7 @@ var require_View = __commonJS({
17194
17218
  * })
17195
17219
  */
17196
17220
  constructor(viewOptions) {
17197
- var _a3;
17221
+ var _a4;
17198
17222
  if (isSelectorNotProvided(viewOptions)) {
17199
17223
  throw new Error("Cannot create view with no selector arguments supplied");
17200
17224
  }
@@ -17208,7 +17232,7 @@ var require_View = __commonJS({
17208
17232
  }
17209
17233
  this.name = viewOptions.name;
17210
17234
  this.description = viewOptions.description;
17211
- this.aggregation = (_a3 = viewOptions.aggregation) !== null && _a3 !== void 0 ? _a3 : Aggregation_1.Aggregation.Default();
17235
+ this.aggregation = (_a4 = viewOptions.aggregation) !== null && _a4 !== void 0 ? _a4 : Aggregation_1.Aggregation.Default();
17212
17236
  this.instrumentSelector = new InstrumentSelector_1.InstrumentSelector({
17213
17237
  name: viewOptions.instrumentName,
17214
17238
  type: viewOptions.instrumentType,
@@ -17315,8 +17339,8 @@ import { createHash } from "crypto";
17315
17339
 
17316
17340
  // ../environment/src/getEnvBoolean.js
17317
17341
  function getEnvBoolean(name) {
17318
- var _a3;
17319
- const value = (_a3 = process.env[name]) == null ? void 0 : _a3.toLowerCase();
17342
+ var _a4;
17343
+ const value = (_a4 = process.env[name]) == null ? void 0 : _a4.toLowerCase();
17320
17344
  return value ? value !== "0" && value !== "false" : void 0;
17321
17345
  }
17322
17346
  __name(getEnvBoolean, "getEnvBoolean");
@@ -17369,16 +17393,16 @@ var environmentInfo = Object.freeze({
17369
17393
  import { execSync } from "child_process";
17370
17394
  import { hostname } from "os";
17371
17395
  function getComputerName() {
17372
- var _a3;
17396
+ var _a4;
17373
17397
  try {
17374
17398
  const computerNameGetters = {
17375
17399
  win32: /* @__PURE__ */ __name(() => {
17376
- var _a4;
17377
- return (_a4 = environmentInfo.windows) == null ? void 0 : _a4.computerName;
17400
+ var _a5;
17401
+ return (_a5 = environmentInfo.windows) == null ? void 0 : _a5.computerName;
17378
17402
  }, "win32"),
17379
17403
  darwin: /* @__PURE__ */ __name(() => execSync("scutil --get ComputerName").toString(), "darwin")
17380
17404
  };
17381
- const computerName = ((_a3 = computerNameGetters[process.platform]) == null ? void 0 : _a3.call(computerNameGetters)) || hostname();
17405
+ const computerName = ((_a4 = computerNameGetters[process.platform]) == null ? void 0 : _a4.call(computerNameGetters)) || hostname();
17382
17406
  return computerName.trim();
17383
17407
  } catch (e) {
17384
17408
  console.warn("Unable to get OS specific computer name for telemetry, falling back to hostname", e);
@@ -17826,7 +17850,7 @@ var _AzureMonitorBaseExporter = class _AzureMonitorBaseExporter {
17826
17850
  * @param AzureMonitorExporterOptions - Exporter configuration.
17827
17851
  */
17828
17852
  constructor(options = {}, isStatsbeatExporter) {
17829
- var _a3;
17853
+ var _a4;
17830
17854
  this.instrumentationKey = "";
17831
17855
  this.endpointUrl = "";
17832
17856
  this.trackStatsbeat = false;
@@ -17838,7 +17862,7 @@ var _AzureMonitorBaseExporter = class _AzureMonitorBaseExporter {
17838
17862
  if (connectionString) {
17839
17863
  const parsedConnectionString = ConnectionStringParser.parse(connectionString);
17840
17864
  this.instrumentationKey = parsedConnectionString.instrumentationkey || this.instrumentationKey;
17841
- this.endpointUrl = ((_a3 = parsedConnectionString.ingestionendpoint) === null || _a3 === void 0 ? void 0 : _a3.trim()) || this.endpointUrl;
17865
+ this.endpointUrl = ((_a4 = parsedConnectionString.ingestionendpoint) === null || _a4 === void 0 ? void 0 : _a4.trim()) || this.endpointUrl;
17842
17866
  this.aadAudience = parsedConnectionString.aadaudience;
17843
17867
  }
17844
17868
  if (!this.instrumentationKey) {
@@ -18070,7 +18094,7 @@ var confirmDirExists = /* @__PURE__ */ __name(async (directory) => {
18070
18094
  import { readdir as readdir2, readFile, stat as stat2, unlink, writeFile } from "node:fs/promises";
18071
18095
  var _FileSystemPersist = class _FileSystemPersist {
18072
18096
  constructor(instrumentationKey, _options) {
18073
- var _a3, _b2;
18097
+ var _a4, _b2;
18074
18098
  this._options = _options;
18075
18099
  this.fileRetemptionPeriod = 2 * 24 * 60 * 60 * 1e3;
18076
18100
  this.cleanupTimeOut = 60 * 60 * 1e3;
@@ -18078,7 +18102,7 @@ var _FileSystemPersist = class _FileSystemPersist {
18078
18102
  this._tempDirectory = "";
18079
18103
  this._fileCleanupTimer = null;
18080
18104
  this._instrumentationKey = instrumentationKey;
18081
- if ((_a3 = this._options) === null || _a3 === void 0 ? void 0 : _a3.disableOfflineStorage) {
18105
+ if ((_a4 = this._options) === null || _a4 === void 0 ? void 0 : _a4.disableOfflineStorage) {
18082
18106
  this._enabled = false;
18083
18107
  return;
18084
18108
  }
@@ -18103,12 +18127,12 @@ var _FileSystemPersist = class _FileSystemPersist {
18103
18127
  }
18104
18128
  }
18105
18129
  push(value) {
18106
- var _a3;
18130
+ var _a4;
18107
18131
  if (this._enabled) {
18108
18132
  diag2.debug("Pushing value to persistent storage", value.toString());
18109
18133
  return this._storeToDisk(JSON.stringify(value));
18110
18134
  }
18111
- if (!((_a3 = this._options) === null || _a3 === void 0 ? void 0 : _a3.disableOfflineStorage)) {
18135
+ if (!((_a4 = this._options) === null || _a4 === void 0 ? void 0 : _a4.disableOfflineStorage)) {
18112
18136
  return new Promise((resolve) => {
18113
18137
  resolve(false);
18114
18138
  });
@@ -18227,7 +18251,7 @@ FileSystemPersist.FILENAME_SUFFIX = ".ai.json";
18227
18251
  init_esm();
18228
18252
  import url from "node:url";
18229
18253
 
18230
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/abort-controller/AbortError.js
18254
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/abort-controller/AbortError.js
18231
18255
  var _AbortError = class _AbortError extends Error {
18232
18256
  constructor(message) {
18233
18257
  super(message);
@@ -18237,16 +18261,16 @@ var _AbortError = class _AbortError extends Error {
18237
18261
  __name(_AbortError, "AbortError");
18238
18262
  var AbortError = _AbortError;
18239
18263
 
18240
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/logger/log.js
18264
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/logger/log.js
18241
18265
  import { EOL } from "node:os";
18242
18266
  import util from "node:util";
18243
- import * as process3 from "node:process";
18267
+ import process3 from "node:process";
18244
18268
  function log(message, ...args) {
18245
18269
  process3.stderr.write(`${util.format(message, ...args)}${EOL}`);
18246
18270
  }
18247
18271
  __name(log, "log");
18248
18272
 
18249
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/logger/debug.js
18273
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/logger/debug.js
18250
18274
  var debugEnvVariable = typeof process !== "undefined" && process.env && process.env.DEBUG || void 0;
18251
18275
  var enabledString;
18252
18276
  var enabledNamespaces = [];
@@ -18267,13 +18291,12 @@ function enable(namespaces) {
18267
18291
  enabledString = namespaces;
18268
18292
  enabledNamespaces = [];
18269
18293
  skippedNamespaces = [];
18270
- const wildcard = /\*/g;
18271
- const namespaceList = namespaces.split(",").map((ns) => ns.trim().replace(wildcard, ".*?"));
18294
+ const namespaceList = namespaces.split(",").map((ns) => ns.trim());
18272
18295
  for (const ns of namespaceList) {
18273
18296
  if (ns.startsWith("-")) {
18274
- skippedNamespaces.push(new RegExp(`^${ns.substr(1)}$`));
18297
+ skippedNamespaces.push(ns.substring(1));
18275
18298
  } else {
18276
- enabledNamespaces.push(new RegExp(`^${ns}$`));
18299
+ enabledNamespaces.push(ns);
18277
18300
  }
18278
18301
  }
18279
18302
  for (const instance3 of debuggers) {
@@ -18286,18 +18309,88 @@ function enabled(namespace) {
18286
18309
  return true;
18287
18310
  }
18288
18311
  for (const skipped of skippedNamespaces) {
18289
- if (skipped.test(namespace)) {
18312
+ if (namespaceMatches(namespace, skipped)) {
18290
18313
  return false;
18291
18314
  }
18292
18315
  }
18293
18316
  for (const enabledNamespace of enabledNamespaces) {
18294
- if (enabledNamespace.test(namespace)) {
18317
+ if (namespaceMatches(namespace, enabledNamespace)) {
18295
18318
  return true;
18296
18319
  }
18297
18320
  }
18298
18321
  return false;
18299
18322
  }
18300
18323
  __name(enabled, "enabled");
18324
+ function namespaceMatches(namespace, patternToMatch) {
18325
+ if (patternToMatch.indexOf("*") === -1) {
18326
+ return namespace === patternToMatch;
18327
+ }
18328
+ let pattern = patternToMatch;
18329
+ if (patternToMatch.indexOf("**") !== -1) {
18330
+ const patternParts = [];
18331
+ let lastCharacter = "";
18332
+ for (const character of patternToMatch) {
18333
+ if (character === "*" && lastCharacter === "*") {
18334
+ continue;
18335
+ } else {
18336
+ lastCharacter = character;
18337
+ patternParts.push(character);
18338
+ }
18339
+ }
18340
+ pattern = patternParts.join("");
18341
+ }
18342
+ let namespaceIndex = 0;
18343
+ let patternIndex = 0;
18344
+ const patternLength = pattern.length;
18345
+ const namespaceLength = namespace.length;
18346
+ let lastWildcard = -1;
18347
+ let lastWildcardNamespace = -1;
18348
+ while (namespaceIndex < namespaceLength && patternIndex < patternLength) {
18349
+ if (pattern[patternIndex] === "*") {
18350
+ lastWildcard = patternIndex;
18351
+ patternIndex++;
18352
+ if (patternIndex === patternLength) {
18353
+ return true;
18354
+ }
18355
+ while (namespace[namespaceIndex] !== pattern[patternIndex]) {
18356
+ namespaceIndex++;
18357
+ if (namespaceIndex === namespaceLength) {
18358
+ return false;
18359
+ }
18360
+ }
18361
+ lastWildcardNamespace = namespaceIndex;
18362
+ namespaceIndex++;
18363
+ patternIndex++;
18364
+ continue;
18365
+ } else if (pattern[patternIndex] === namespace[namespaceIndex]) {
18366
+ patternIndex++;
18367
+ namespaceIndex++;
18368
+ } else if (lastWildcard >= 0) {
18369
+ patternIndex = lastWildcard + 1;
18370
+ namespaceIndex = lastWildcardNamespace + 1;
18371
+ if (namespaceIndex === namespaceLength) {
18372
+ return false;
18373
+ }
18374
+ while (namespace[namespaceIndex] !== pattern[patternIndex]) {
18375
+ namespaceIndex++;
18376
+ if (namespaceIndex === namespaceLength) {
18377
+ return false;
18378
+ }
18379
+ }
18380
+ lastWildcardNamespace = namespaceIndex;
18381
+ namespaceIndex++;
18382
+ patternIndex++;
18383
+ continue;
18384
+ } else {
18385
+ return false;
18386
+ }
18387
+ }
18388
+ const namespaceDone = namespaceIndex === namespace.length;
18389
+ const patternDone = patternIndex === pattern.length;
18390
+ const trailingWildCard = patternIndex === pattern.length - 1 && pattern[patternIndex] === "*";
18391
+ return namespaceDone && (patternDone || trailingWildCard);
18392
+ }
18393
+ __name(namespaceMatches, "namespaceMatches");
18301
18394
  function disable() {
18302
18395
  const result = enabledString || "";
18303
18396
  enable("");
@@ -18343,7 +18436,7 @@ function extend(namespace) {
18343
18436
  __name(extend, "extend");
18344
18437
  var debug_default = debugObj;
18345
18438
 
18346
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/logger/logger.js
18439
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/logger/logger.js
18347
18440
  var TYPESPEC_RUNTIME_LOG_LEVELS = ["verbose", "info", "warning", "error"];
18348
18441
  var levelMap = {
18349
18442
  verbose: 400,
@@ -18440,7 +18533,7 @@ function createClientLogger(namespace) {
18440
18533
  }
18441
18534
  __name(createClientLogger, "createClientLogger");
18442
18535
 
18443
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/httpHeaders.js
18536
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/httpHeaders.js
18444
18537
  function normalizeName(name) {
18445
18538
  return name.toLowerCase();
18446
18539
  }
@@ -18452,6 +18545,7 @@ function* headerIterator(map) {
18452
18545
  }
18453
18546
  __name(headerIterator, "headerIterator");
18454
18547
  var _HttpHeadersImpl = class _HttpHeadersImpl {
18548
+ _headersMap;
18455
18549
  constructor(rawHeaders) {
18456
18550
  this._headersMap = /* @__PURE__ */ new Map();
18457
18551
  if (rawHeaders) {
@@ -18475,8 +18569,8 @@ var _HttpHeadersImpl = class _HttpHeadersImpl {
18475
18569
  * @param name - The name of the header. This value is case-insensitive.
18476
18570
  */
18477
18571
  get(name) {
18478
- var _a3;
18479
- return (_a3 = this._headersMap.get(normalizeName(name))) === null || _a3 === void 0 ? void 0 : _a3.value;
18572
+ var _a4;
18573
+ return (_a4 = this._headersMap.get(normalizeName(name))) == null ? void 0 : _a4.value;
18480
18574
  }
18481
18575
  /**
18482
18576
  * Get whether or not this header collection contains a header entry for the provided header name.
@@ -18528,36 +18622,54 @@ function createHttpHeaders(rawHeaders) {
18528
18622
  }
18529
18623
  __name(createHttpHeaders, "createHttpHeaders");
18530
18624
 
18531
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/uuidUtils.js
18625
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/uuidUtils.js
18532
18626
  import { randomUUID as v4RandomUUID } from "node:crypto";
18533
18627
  var _a;
18534
- var uuidFunction = typeof ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.crypto) === null || _a === void 0 ? void 0 : _a.randomUUID) === "function" ? globalThis.crypto.randomUUID.bind(globalThis.crypto) : v4RandomUUID;
18628
+ var uuidFunction = typeof ((_a = globalThis == null ? void 0 : globalThis.crypto) == null ? void 0 : _a.randomUUID) === "function" ? globalThis.crypto.randomUUID.bind(globalThis.crypto) : v4RandomUUID;
18535
18629
  function randomUUID() {
18536
18630
  return uuidFunction();
18537
18631
  }
18538
18632
  __name(randomUUID, "randomUUID");
18539
18633
 
18540
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/pipelineRequest.js
18634
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/pipelineRequest.js
18541
18635
  var _PipelineRequestImpl = class _PipelineRequestImpl {
18636
+ url;
18637
+ method;
18638
+ headers;
18639
+ timeout;
18640
+ withCredentials;
18641
+ body;
18642
+ multipartBody;
18643
+ formData;
18644
+ streamResponseStatusCodes;
18645
+ enableBrowserStreams;
18646
+ proxySettings;
18647
+ disableKeepAlive;
18648
+ abortSignal;
18649
+ requestId;
18650
+ allowInsecureConnection;
18651
+ onUploadProgress;
18652
+ onDownloadProgress;
18653
+ requestOverrides;
18654
+ authSchemes;
18542
18655
  constructor(options) {
18543
- var _a3, _b2, _c2, _d2, _e, _f, _g;
18544
18656
  this.url = options.url;
18545
18657
  this.body = options.body;
18546
- this.headers = (_a3 = options.headers) !== null && _a3 !== void 0 ? _a3 : createHttpHeaders();
18547
- this.method = (_b2 = options.method) !== null && _b2 !== void 0 ? _b2 : "GET";
18548
- this.timeout = (_c2 = options.timeout) !== null && _c2 !== void 0 ? _c2 : 0;
18658
+ this.headers = options.headers ?? createHttpHeaders();
18659
+ this.method = options.method ?? "GET";
18660
+ this.timeout = options.timeout ?? 0;
18549
18661
  this.multipartBody = options.multipartBody;
18550
18662
  this.formData = options.formData;
18551
- this.disableKeepAlive = (_d2 = options.disableKeepAlive) !== null && _d2 !== void 0 ? _d2 : false;
18663
+ this.disableKeepAlive = options.disableKeepAlive ?? false;
18552
18664
  this.proxySettings = options.proxySettings;
18553
18665
  this.streamResponseStatusCodes = options.streamResponseStatusCodes;
18554
- this.withCredentials = (_e = options.withCredentials) !== null && _e !== void 0 ? _e : false;
18666
+ this.withCredentials = options.withCredentials ?? false;
18555
18667
  this.abortSignal = options.abortSignal;
18556
18668
  this.onUploadProgress = options.onUploadProgress;
18557
18669
  this.onDownloadProgress = options.onDownloadProgress;
18558
18670
  this.requestId = options.requestId || randomUUID();
18559
- this.allowInsecureConnection = (_f = options.allowInsecureConnection) !== null && _f !== void 0 ? _f : false;
18560
- this.enableBrowserStreams = (_g = options.enableBrowserStreams) !== null && _g !== void 0 ? _g : false;
18671
+ this.allowInsecureConnection = options.allowInsecureConnection ?? false;
18672
+ this.enableBrowserStreams = options.enableBrowserStreams ?? false;
18561
18673
  this.requestOverrides = options.requestOverrides;
18562
18674
  this.authSchemes = options.authSchemes;
18563
18675
  }
@@ -18569,13 +18681,13 @@ function createPipelineRequest(options) {
18569
18681
  }
18570
18682
  __name(createPipelineRequest, "createPipelineRequest");
18571
18683
 
18572
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/pipeline.js
18684
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/pipeline.js
18573
18685
  var ValidPhaseNames = /* @__PURE__ */ new Set(["Deserialize", "Serialize", "Retry", "Sign"]);
18574
18686
  var _HttpPipeline = class _HttpPipeline {
18687
+ _policies = [];
18688
+ _orderedPolicies;
18575
18689
  constructor(policies) {
18576
- var _a3;
18577
- this._policies = [];
18578
- this._policies = (_a3 = policies === null || policies === void 0 ? void 0 : policies.slice(0)) !== null && _a3 !== void 0 ? _a3 : [];
18690
+ this._policies = (policies == null ? void 0 : policies.slice(0)) ?? [];
18579
18691
  this._orderedPolicies = void 0;
18580
18692
  }
18581
18693
  addPolicy(policy, options = {}) {
@@ -18607,14 +18719,14 @@ var _HttpPipeline = class _HttpPipeline {
18607
18719
  this._orderedPolicies = void 0;
18608
18720
  return removedPolicies;
18609
18721
  }
18610
- sendRequest(httpClient, request3) {
18722
+ sendRequest(httpClient, request) {
18611
18723
  const policies = this.getOrderedPolicies();
18612
18724
  const pipeline = policies.reduceRight((next, policy) => {
18613
18725
  return (req) => {
18614
18726
  return policy.sendRequest(req, next);
18615
18727
  };
18616
18728
  }, (req) => httpClient.sendRequest(req));
18617
- return pipeline(request3);
18729
+ return pipeline(request);
18618
18730
  }
18619
18731
  getOrderedPolicies() {
18620
18732
  if (!this._orderedPolicies) {
@@ -18757,13 +18869,13 @@ function createEmptyPipeline() {
18757
18869
  }
18758
18870
  __name(createEmptyPipeline, "createEmptyPipeline");
18759
18871
 
18760
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/object.js
18872
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/object.js
18761
18873
  function isObject(input) {
18762
18874
  return typeof input === "object" && input !== null && !Array.isArray(input) && !(input instanceof RegExp) && !(input instanceof Date);
18763
18875
  }
18764
18876
  __name(isObject, "isObject");
18765
18877
 
18766
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/error.js
18878
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/error.js
18767
18879
  function isError(e) {
18768
18880
  if (isObject(e)) {
18769
18881
  const hasName = typeof e.name === "string";
@@ -18774,11 +18886,11 @@ function isError(e) {
18774
18886
  }
18775
18887
  __name(isError, "isError");
18776
18888
 
18777
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/inspect.js
18889
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/inspect.js
18778
18890
  import { inspect } from "node:util";
18779
18891
  var custom = inspect.custom;
18780
18892
 
18781
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/sanitizer.js
18893
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/sanitizer.js
18782
18894
  var RedactedString = "REDACTED";
18783
18895
  var defaultAllowedHeaderNames = [
18784
18896
  "x-ms-client-request-id",
@@ -18823,6 +18935,8 @@ var defaultAllowedHeaderNames = [
18823
18935
  ];
18824
18936
  var defaultAllowedQueryParameters = ["api-version"];
18825
18937
  var _Sanitizer = class _Sanitizer {
18938
+ allowedHeaderNames;
18939
+ allowedQueryParameters;
18826
18940
  constructor({ additionalAllowedHeaderNames: allowedHeaderNames = [], additionalAllowedQueryParameters: allowedQueryParameters = [] } = {}) {
18827
18941
  allowedHeaderNames = defaultAllowedHeaderNames.concat(allowedHeaderNames);
18828
18942
  allowedQueryParameters = defaultAllowedQueryParameters.concat(allowedQueryParameters);
@@ -18838,7 +18952,11 @@ var _Sanitizer = class _Sanitizer {
18838
18952
  const seen = /* @__PURE__ */ new Set();
18839
18953
  return JSON.stringify(obj, (key, value) => {
18840
18954
  if (value instanceof Error) {
18841
- return Object.assign(Object.assign({}, value), { name: value.name, message: value.message });
18955
+ return {
18956
+ ...value,
18957
+ name: value.name,
18958
+ message: value.message
18959
+ };
18842
18960
  }
18843
18961
  if (key === "headers") {
18844
18962
  return this.sanitizeHeaders(value);
@@ -18910,20 +19028,51 @@ var _Sanitizer = class _Sanitizer {
18910
19028
  __name(_Sanitizer, "Sanitizer");
18911
19029
  var Sanitizer = _Sanitizer;
18912
19030
 
18913
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/restError.js
19031
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/restError.js
18914
19032
  var errorSanitizer = new Sanitizer();
18915
19033
  var _RestError = class _RestError extends Error {
19034
+ /**
19035
+ * The code of the error itself (use statics on RestError if possible.)
19036
+ */
19037
+ code;
19038
+ /**
19039
+ * The HTTP status code of the request (if applicable.)
19040
+ */
19041
+ statusCode;
19042
+ /**
19043
+ * The request that was made.
19044
+ * This property is non-enumerable.
19045
+ */
19046
+ request;
19047
+ /**
19048
+ * The response received (if any.)
19049
+ * This property is non-enumerable.
19050
+ */
19051
+ response;
19052
+ /**
19053
+ * Bonus property set by the throw site.
19054
+ */
19055
+ details;
18916
19056
  constructor(message, options = {}) {
19057
+ var _a4;
18917
19058
  super(message);
18918
19059
  this.name = "RestError";
18919
19060
  this.code = options.code;
18920
19061
  this.statusCode = options.statusCode;
18921
19062
  Object.defineProperty(this, "request", { value: options.request, enumerable: false });
18922
19063
  Object.defineProperty(this, "response", { value: options.response, enumerable: false });
19064
+ const agent = ((_a4 = this.request) == null ? void 0 : _a4.agent) ? {
19065
+ maxFreeSockets: this.request.agent.maxFreeSockets,
19066
+ maxSockets: this.request.agent.maxSockets
19067
+ } : void 0;
18923
19068
  Object.defineProperty(this, custom, {
18924
19069
  value: /* @__PURE__ */ __name(() => {
18925
19070
  return `RestError: ${this.message}
18926
- ${errorSanitizer.sanitize(Object.assign(Object.assign({}, this), { request: this.request, response: this.response }))}`;
19071
+ ${errorSanitizer.sanitize({
19072
+ ...this,
19073
+ request: { ...this.request, agent },
19074
+ response: this.response
19075
+ })}`;
18927
19076
  }, "value"),
18928
19077
  enumerable: false
18929
19078
  });
@@ -18931,9 +19080,18 @@ var _RestError = class _RestError extends Error {
18931
19080
  }
18932
19081
  };
18933
19082
  __name(_RestError, "RestError");
19083
+ /**
19084
+ * Something went wrong when making the request.
19085
+ * This means the actual request failed for some reason,
19086
+ * such as a DNS issue or the connection being lost.
19087
+ */
19088
+ __publicField(_RestError, "REQUEST_SEND_ERROR", "REQUEST_SEND_ERROR");
19089
+ /**
19090
+ * This means that parsing the response from the server failed.
19091
+ * It may have been malformed.
19092
+ */
19093
+ __publicField(_RestError, "PARSE_ERROR", "PARSE_ERROR");
18934
19094
  var RestError = _RestError;
18935
- RestError.REQUEST_SEND_ERROR = "REQUEST_SEND_ERROR";
18936
- RestError.PARSE_ERROR = "PARSE_ERROR";
18937
19095
  function isRestError(e) {
18938
19096
  if (e instanceof RestError) {
18939
19097
  return true;
@@ -18942,22 +19100,22 @@ function isRestError(e) {
18942
19100
  }
18943
19101
  __name(isRestError, "isRestError");
18944
19102
 
18945
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/bytesEncoding.js
19103
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/bytesEncoding.js
18946
19104
  function stringToUint8Array(value, format) {
18947
19105
  return Buffer.from(value, format);
18948
19106
  }
18949
19107
  __name(stringToUint8Array, "stringToUint8Array");
18950
19108
 
18951
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/nodeHttpClient.js
18952
- import * as http from "node:http";
18953
- import * as https from "node:https";
18954
- import * as zlib from "node:zlib";
19109
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/nodeHttpClient.js
19110
+ import http from "node:http";
19111
+ import https from "node:https";
19112
+ import zlib from "node:zlib";
18955
19113
  import { Transform } from "node:stream";
18956
19114
 
18957
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/log.js
19115
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/log.js
18958
19116
  var logger = createClientLogger("ts-http-runtime");
18959
19117
 
18960
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/nodeHttpClient.js
19118
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/nodeHttpClient.js
18961
19119
  var DEFAULT_TLS_SETTINGS = {};
18962
19120
  function isReadableStream(body2) {
18963
19121
  return body2 && typeof body2.pipe === "function";
@@ -18985,6 +19143,8 @@ function isArrayBuffer(body2) {
18985
19143
  }
18986
19144
  __name(isArrayBuffer, "isArrayBuffer");
18987
19145
  var _ReportTransform = class _ReportTransform extends Transform {
19146
+ loadedBytes = 0;
19147
+ progressCallback;
18988
19148
  // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
18989
19149
  _transform(chunk, _encoding, callback) {
18990
19150
  this.push(chunk);
@@ -18998,26 +19158,24 @@ var _ReportTransform = class _ReportTransform extends Transform {
18998
19158
  }
18999
19159
  constructor(progressCallback) {
19000
19160
  super();
19001
- this.loadedBytes = 0;
19002
19161
  this.progressCallback = progressCallback;
19003
19162
  }
19004
19163
  };
19005
19164
  __name(_ReportTransform, "ReportTransform");
19006
19165
  var ReportTransform = _ReportTransform;
19007
19166
  var _NodeHttpClient = class _NodeHttpClient {
19008
- constructor() {
19009
- this.cachedHttpsAgents = /* @__PURE__ */ new WeakMap();
19010
- }
19167
+ cachedHttpAgent;
19168
+ cachedHttpsAgents = /* @__PURE__ */ new WeakMap();
19011
19169
  /**
19012
19170
  * Makes a request over an underlying transport layer and returns the response.
19013
19171
  * @param request - The request to be made.
19014
19172
  */
19015
- async sendRequest(request3) {
19016
- var _a3, _b2, _c2;
19173
+ async sendRequest(request) {
19174
+ var _a4, _b2;
19017
19175
  const abortController = new AbortController();
19018
19176
  let abortListener;
19019
- if (request3.abortSignal) {
19020
- if (request3.abortSignal.aborted) {
19177
+ if (request.abortSignal) {
19178
+ if (request.abortSignal.aborted) {
19021
19179
  throw new AbortError("The operation was aborted. Request has already been canceled.");
19022
19180
  }
19023
19181
  abortListener = /* @__PURE__ */ __name((event) => {
@@ -19025,29 +19183,29 @@ var _NodeHttpClient = class _NodeHttpClient {
19025
19183
  abortController.abort();
19026
19184
  }
19027
19185
  }, "abortListener");
19028
- request3.abortSignal.addEventListener("abort", abortListener);
19186
+ request.abortSignal.addEventListener("abort", abortListener);
19029
19187
  }
19030
19188
  let timeoutId;
19031
- if (request3.timeout > 0) {
19189
+ if (request.timeout > 0) {
19032
19190
  timeoutId = setTimeout(() => {
19033
19191
  const sanitizer = new Sanitizer();
19034
- logger.info(`request to '${sanitizer.sanitizeUrl(request3.url)}' timed out. canceling...`);
19192
+ logger.info(`request to '${sanitizer.sanitizeUrl(request.url)}' timed out. canceling...`);
19035
19193
  abortController.abort();
19036
- }, request3.timeout);
19194
+ }, request.timeout);
19037
19195
  }
19038
- const acceptEncoding = request3.headers.get("Accept-Encoding");
19039
- const shouldDecompress = (acceptEncoding === null || acceptEncoding === void 0 ? void 0 : acceptEncoding.includes("gzip")) || (acceptEncoding === null || acceptEncoding === void 0 ? void 0 : acceptEncoding.includes("deflate"));
19040
- let body2 = typeof request3.body === "function" ? request3.body() : request3.body;
19041
- if (body2 && !request3.headers.has("Content-Length")) {
19196
+ const acceptEncoding = request.headers.get("Accept-Encoding");
19197
+ const shouldDecompress = (acceptEncoding == null ? void 0 : acceptEncoding.includes("gzip")) || (acceptEncoding == null ? void 0 : acceptEncoding.includes("deflate"));
19198
+ let body2 = typeof request.body === "function" ? request.body() : request.body;
19199
+ if (body2 && !request.headers.has("Content-Length")) {
19042
19200
  const bodyLength = getBodyLength(body2);
19043
19201
  if (bodyLength !== null) {
19044
- request3.headers.set("Content-Length", bodyLength);
19202
+ request.headers.set("Content-Length", bodyLength);
19045
19203
  }
19046
19204
  }
19047
19205
  let responseStream;
19048
19206
  try {
19049
- if (body2 && request3.onUploadProgress) {
19050
- const onUploadProgress = request3.onUploadProgress;
19207
+ if (body2 && request.onUploadProgress) {
19208
+ const onUploadProgress = request.onUploadProgress;
19051
19209
  const uploadReportStream = new ReportTransform(onUploadProgress);
19052
19210
  uploadReportStream.on("error", (e) => {
19053
19211
  logger.error("Error in upload progress", e);
@@ -19059,23 +19217,23 @@ var _NodeHttpClient = class _NodeHttpClient {
19059
19217
  }
19060
19218
  body2 = uploadReportStream;
19061
19219
  }
19062
- const res = await this.makeRequest(request3, abortController, body2);
19220
+ const res = await this.makeRequest(request, abortController, body2);
19063
19221
  if (timeoutId !== void 0) {
19064
19222
  clearTimeout(timeoutId);
19065
19223
  }
19066
19224
  const headers = getResponseHeaders(res);
19067
- const status = (_a3 = res.statusCode) !== null && _a3 !== void 0 ? _a3 : 0;
19225
+ const status = res.statusCode ?? 0;
19068
19226
  const response = {
19069
19227
  status,
19070
19228
  headers,
19071
- request: request3
19229
+ request
19072
19230
  };
19073
- if (request3.method === "HEAD") {
19231
+ if (request.method === "HEAD") {
19074
19232
  res.resume();
19075
19233
  return response;
19076
19234
  }
19077
19235
  responseStream = shouldDecompress ? getDecodedResponseStream(res, headers) : res;
19078
- const onDownloadProgress = request3.onDownloadProgress;
19236
+ const onDownloadProgress = request.onDownloadProgress;
19079
19237
  if (onDownloadProgress) {
19080
19238
  const downloadReportStream = new ReportTransform(onDownloadProgress);
19081
19239
  downloadReportStream.on("error", (e) => {
@@ -19086,7 +19244,7 @@ var _NodeHttpClient = class _NodeHttpClient {
19086
19244
  }
19087
19245
  if (
19088
19246
  // Value of POSITIVE_INFINITY in streamResponseStatusCodes is considered as any status code
19089
- ((_b2 = request3.streamResponseStatusCodes) === null || _b2 === void 0 ? void 0 : _b2.has(Number.POSITIVE_INFINITY)) || ((_c2 = request3.streamResponseStatusCodes) === null || _c2 === void 0 ? void 0 : _c2.has(response.status))
19247
+ ((_a4 = request.streamResponseStatusCodes) == null ? void 0 : _a4.has(Number.POSITIVE_INFINITY)) || ((_b2 = request.streamResponseStatusCodes) == null ? void 0 : _b2.has(response.status))
19090
19248
  ) {
19091
19249
  response.readableStreamBody = responseStream;
19092
19250
  } else {
@@ -19094,7 +19252,7 @@ var _NodeHttpClient = class _NodeHttpClient {
19094
19252
  }
19095
19253
  return response;
19096
19254
  } finally {
19097
- if (request3.abortSignal && abortListener) {
19255
+ if (request.abortSignal && abortListener) {
19098
19256
  let uploadStreamDone = Promise.resolve();
19099
19257
  if (isReadableStream(body2)) {
19100
19258
  uploadStreamDone = isStreamComplete(body2);
@@ -19104,9 +19262,9 @@ var _NodeHttpClient = class _NodeHttpClient {
19104
19262
  downloadStreamDone = isStreamComplete(responseStream);
19105
19263
  }
19106
19264
  Promise.all([uploadStreamDone, downloadStreamDone]).then(() => {
19107
- var _a4;
19265
+ var _a5;
19108
19266
  if (abortListener) {
19109
- (_a4 = request3.abortSignal) === null || _a4 === void 0 ? void 0 : _a4.removeEventListener("abort", abortListener);
19267
+ (_a5 = request.abortSignal) == null ? void 0 : _a5.removeEventListener("abort", abortListener);
19110
19268
  }
19111
19269
  }).catch((e) => {
19112
19270
  logger.warning("Error when cleaning up abortListener on httpRequest", e);
@@ -19114,20 +19272,26 @@ var _NodeHttpClient = class _NodeHttpClient {
19114
19272
  }
19115
19273
  }
19116
19274
  }
19117
- makeRequest(request3, abortController, body2) {
19118
- var _a3;
19119
- const url2 = new URL(request3.url);
19275
+ makeRequest(request, abortController, body2) {
19276
+ const url2 = new URL(request.url);
19120
19277
  const isInsecure = url2.protocol !== "https:";
19121
- if (isInsecure && !request3.allowInsecureConnection) {
19122
- throw new Error(`Cannot connect to ${request3.url} while allowInsecureConnection is false.`);
19278
+ if (isInsecure && !request.allowInsecureConnection) {
19279
+ throw new Error(`Cannot connect to ${request.url} while allowInsecureConnection is false.`);
19123
19280
  }
19124
- const agent = (_a3 = request3.agent) !== null && _a3 !== void 0 ? _a3 : this.getOrCreateAgent(request3, isInsecure);
19125
- const options = Object.assign({ agent, hostname: url2.hostname, path: `${url2.pathname}${url2.search}`, port: url2.port, method: request3.method, headers: request3.headers.toJSON({ preserveCase: true }) }, request3.requestOverrides);
19281
+ const agent = request.agent ?? this.getOrCreateAgent(request, isInsecure);
19282
+ const options = {
19283
+ agent,
19284
+ hostname: url2.hostname,
19285
+ path: `${url2.pathname}${url2.search}`,
19286
+ port: url2.port,
19287
+ method: request.method,
19288
+ headers: request.headers.toJSON({ preserveCase: true }),
19289
+ ...request.requestOverrides
19290
+ };
19126
19291
  return new Promise((resolve, reject) => {
19127
19292
  const req = isInsecure ? http.request(options, resolve) : https.request(options, resolve);
19128
19293
  req.once("error", (err) => {
19129
- var _a4;
19130
- reject(new RestError(err.message, { code: (_a4 = err.code) !== null && _a4 !== void 0 ? _a4 : RestError.REQUEST_SEND_ERROR, request: request3 }));
19294
+ reject(new RestError(err.message, { code: err.code ?? RestError.REQUEST_SEND_ERROR, request }));
19131
19295
  });
19132
19296
  abortController.signal.addEventListener("abort", () => {
19133
19297
  const abortError = new AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");
@@ -19150,9 +19314,8 @@ var _NodeHttpClient = class _NodeHttpClient {
19150
19314
  }
19151
19315
  });
19152
19316
  }
19153
- getOrCreateAgent(request3, isInsecure) {
19154
- var _a3;
19155
- const disableKeepAlive = request3.disableKeepAlive;
19317
+ getOrCreateAgent(request, isInsecure) {
19318
+ const disableKeepAlive = request.disableKeepAlive;
19156
19319
  if (isInsecure) {
19157
19320
  if (disableKeepAlive) {
19158
19321
  return http.globalAgent;
@@ -19162,19 +19325,21 @@ var _NodeHttpClient = class _NodeHttpClient {
19162
19325
  }
19163
19326
  return this.cachedHttpAgent;
19164
19327
  } else {
19165
- if (disableKeepAlive && !request3.tlsSettings) {
19328
+ if (disableKeepAlive && !request.tlsSettings) {
19166
19329
  return https.globalAgent;
19167
19330
  }
19168
- const tlsSettings = (_a3 = request3.tlsSettings) !== null && _a3 !== void 0 ? _a3 : DEFAULT_TLS_SETTINGS;
19331
+ const tlsSettings = request.tlsSettings ?? DEFAULT_TLS_SETTINGS;
19169
19332
  let agent = this.cachedHttpsAgents.get(tlsSettings);
19170
19333
  if (agent && agent.options.keepAlive === !disableKeepAlive) {
19171
19334
  return agent;
19172
19335
  }
19173
19336
  logger.info("No cached TLS Agent exist, creating a new Agent");
19174
- agent = new https.Agent(Object.assign({
19337
+ agent = new https.Agent({
19175
19338
  // keepAlive is true if disableKeepAlive is false.
19176
- keepAlive: !disableKeepAlive
19177
- }, tlsSettings));
19339
+ keepAlive: !disableKeepAlive,
19340
+ // Since we are spreading, if no tslSettings were provided, nothing is added to the agent options.
19341
+ ...tlsSettings
19342
+ });
19178
19343
  this.cachedHttpsAgents.set(tlsSettings, agent);
19179
19344
  return agent;
19180
19345
  }
@@ -19225,7 +19390,7 @@ function streamToText(stream) {
19225
19390
  resolve(Buffer.concat(buffer).toString("utf8"));
19226
19391
  });
19227
19392
  stream.on("error", (e) => {
19228
- if (e && (e === null || e === void 0 ? void 0 : e.name) === "AbortError") {
19393
+ if (e && (e == null ? void 0 : e.name) === "AbortError") {
19229
19394
  reject(e);
19230
19395
  } else {
19231
19396
  reject(new RestError(`Error reading response as text: ${e.message}`, {
@@ -19257,29 +19422,28 @@ function createNodeHttpClient() {
19257
19422
  }
19258
19423
  __name(createNodeHttpClient, "createNodeHttpClient");
19259
19424
 
19260
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/defaultHttpClient.js
19425
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/defaultHttpClient.js
19261
19426
  function createDefaultHttpClient() {
19262
19427
  return createNodeHttpClient();
19263
19428
  }
19264
19429
  __name(createDefaultHttpClient, "createDefaultHttpClient");
19265
19430
 
19266
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/policies/logPolicy.js
19431
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/logPolicy.js
19267
19432
  var logPolicyName = "logPolicy";
19268
19433
  function logPolicy(options = {}) {
19269
- var _a3;
19270
- const logger4 = (_a3 = options.logger) !== null && _a3 !== void 0 ? _a3 : logger.info;
19434
+ const logger4 = options.logger ?? logger.info;
19271
19435
  const sanitizer = new Sanitizer({
19272
19436
  additionalAllowedHeaderNames: options.additionalAllowedHeaderNames,
19273
19437
  additionalAllowedQueryParameters: options.additionalAllowedQueryParameters
19274
19438
  });
19275
19439
  return {
19276
19440
  name: logPolicyName,
19277
- async sendRequest(request3, next) {
19441
+ async sendRequest(request, next) {
19278
19442
  if (!logger4.enabled) {
19279
- return next(request3);
19443
+ return next(request);
19280
19444
  }
19281
- logger4(`Request: ${sanitizer.sanitize(request3)}`);
19282
- const response = await next(request3);
19445
+ logger4(`Request: ${sanitizer.sanitize(request)}`);
19446
+ const response = await next(request);
19283
19447
  logger4(`Response status code: ${response.status}`);
19284
19448
  logger4(`Headers: ${sanitizer.sanitize(response.headers)}`);
19285
19449
  return response;
@@ -19288,73 +19452,73 @@ function logPolicy(options = {}) {
19288
19452
  }
19289
19453
  __name(logPolicy, "logPolicy");
19290
19454
 
19291
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/policies/redirectPolicy.js
19455
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/redirectPolicy.js
19292
19456
  var redirectPolicyName = "redirectPolicy";
19293
19457
  var allowedRedirect = ["GET", "HEAD"];
19294
19458
  function redirectPolicy(options = {}) {
19295
19459
  const { maxRetries = 20 } = options;
19296
19460
  return {
19297
19461
  name: redirectPolicyName,
19298
- async sendRequest(request3, next) {
19299
- const response = await next(request3);
19462
+ async sendRequest(request, next) {
19463
+ const response = await next(request);
19300
19464
  return handleRedirect(next, response, maxRetries);
19301
19465
  }
19302
19466
  };
19303
19467
  }
19304
19468
  __name(redirectPolicy, "redirectPolicy");
19305
19469
  async function handleRedirect(next, response, maxRetries, currentRetries = 0) {
19306
- const { request: request3, status, headers } = response;
19470
+ const { request, status, headers } = response;
19307
19471
  const locationHeader = headers.get("location");
19308
- if (locationHeader && (status === 300 || status === 301 && allowedRedirect.includes(request3.method) || status === 302 && allowedRedirect.includes(request3.method) || status === 303 && request3.method === "POST" || status === 307) && currentRetries < maxRetries) {
19309
- const url2 = new URL(locationHeader, request3.url);
19310
- request3.url = url2.toString();
19472
+ if (locationHeader && (status === 300 || status === 301 && allowedRedirect.includes(request.method) || status === 302 && allowedRedirect.includes(request.method) || status === 303 && request.method === "POST" || status === 307) && currentRetries < maxRetries) {
19473
+ const url2 = new URL(locationHeader, request.url);
19474
+ request.url = url2.toString();
19311
19475
  if (status === 303) {
19312
- request3.method = "GET";
19313
- request3.headers.delete("Content-Length");
19314
- delete request3.body;
19476
+ request.method = "GET";
19477
+ request.headers.delete("Content-Length");
19478
+ delete request.body;
19315
19479
  }
19316
- request3.headers.delete("Authorization");
19317
- const res = await next(request3);
19480
+ request.headers.delete("Authorization");
19481
+ const res = await next(request);
19318
19482
  return handleRedirect(next, res, maxRetries, currentRetries + 1);
19319
19483
  }
19320
19484
  return response;
19321
19485
  }
19322
19486
  __name(handleRedirect, "handleRedirect");
19323
19487
 
19324
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/userAgentPlatform.js
19488
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/userAgentPlatform.js
19325
19489
  function getHeaderName() {
19326
19490
  return "User-Agent";
19327
19491
  }
19328
19492
  __name(getHeaderName, "getHeaderName");
19329
19493
 
19330
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/constants.js
19494
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/constants.js
19331
19495
  var DEFAULT_RETRY_POLICY_COUNT = 3;
19332
19496
 
19333
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/userAgent.js
19497
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/userAgent.js
19334
19498
  function getUserAgentHeaderName() {
19335
19499
  return getHeaderName();
19336
19500
  }
19337
19501
  __name(getUserAgentHeaderName, "getUserAgentHeaderName");
19338
19502
 
19339
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/policies/userAgentPolicy.js
19503
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/userAgentPolicy.js
19340
19504
  var UserAgentHeaderName = getUserAgentHeaderName();
19341
19505
 
19342
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/policies/decompressResponsePolicy.js
19506
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/decompressResponsePolicy.js
19343
19507
  var decompressResponsePolicyName = "decompressResponsePolicy";
19344
19508
  function decompressResponsePolicy() {
19345
19509
  return {
19346
19510
  name: decompressResponsePolicyName,
19347
- async sendRequest(request3, next) {
19348
- if (request3.method !== "HEAD") {
19349
- request3.headers.set("Accept-Encoding", "gzip,deflate");
19511
+ async sendRequest(request, next) {
19512
+ if (request.method !== "HEAD") {
19513
+ request.headers.set("Accept-Encoding", "gzip,deflate");
19350
19514
  }
19351
- return next(request3);
19515
+ return next(request);
19352
19516
  }
19353
19517
  };
19354
19518
  }
19355
19519
  __name(decompressResponsePolicy, "decompressResponsePolicy");
19356
19520
 
19357
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/random.js
19521
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/random.js
19358
19522
  function getRandomIntegerInclusive(min, max) {
19359
19523
  min = Math.ceil(min);
19360
19524
  max = Math.floor(max);
@@ -19363,7 +19527,7 @@ function getRandomIntegerInclusive(min, max) {
19363
19527
  }
19364
19528
  __name(getRandomIntegerInclusive, "getRandomIntegerInclusive");
19365
19529
 
19366
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/delay.js
19530
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/delay.js
19367
19531
  function calculateRetryDelay(retryAttempt, config) {
19368
19532
  const exponentialDelay = config.retryDelayInMs * Math.pow(2, retryAttempt);
19369
19533
  const clampedDelay = Math.min(config.maxRetryDelayInMs, exponentialDelay);
@@ -19372,17 +19536,17 @@ function calculateRetryDelay(retryAttempt, config) {
19372
19536
  }
19373
19537
  __name(calculateRetryDelay, "calculateRetryDelay");
19374
19538
 
19375
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/helpers.js
19539
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/helpers.js
19376
19540
  var StandardAbortMessage = "The operation was aborted.";
19377
19541
  function delay(delayInMs, value, options) {
19378
19542
  return new Promise((resolve, reject) => {
19379
19543
  let timer = void 0;
19380
19544
  let onAborted = void 0;
19381
19545
  const rejectOnAbort = /* @__PURE__ */ __name(() => {
19382
- return reject(new AbortError((options === null || options === void 0 ? void 0 : options.abortErrorMsg) ? options === null || options === void 0 ? void 0 : options.abortErrorMsg : StandardAbortMessage));
19546
+ return reject(new AbortError((options == null ? void 0 : options.abortErrorMsg) ? options == null ? void 0 : options.abortErrorMsg : StandardAbortMessage));
19383
19547
  }, "rejectOnAbort");
19384
19548
  const removeListeners = /* @__PURE__ */ __name(() => {
19385
- if ((options === null || options === void 0 ? void 0 : options.abortSignal) && onAborted) {
19549
+ if ((options == null ? void 0 : options.abortSignal) && onAborted) {
19386
19550
  options.abortSignal.removeEventListener("abort", onAborted);
19387
19551
  }
19388
19552
  }, "removeListeners");
@@ -19393,14 +19557,14 @@ function delay(delayInMs, value, options) {
19393
19557
  removeListeners();
19394
19558
  return rejectOnAbort();
19395
19559
  }, "onAborted");
19396
- if ((options === null || options === void 0 ? void 0 : options.abortSignal) && options.abortSignal.aborted) {
19560
+ if ((options == null ? void 0 : options.abortSignal) && options.abortSignal.aborted) {
19397
19561
  return rejectOnAbort();
19398
19562
  }
19399
19563
  timer = setTimeout(() => {
19400
19564
  removeListeners();
19401
19565
  resolve(value);
19402
19566
  }, delayInMs);
19403
- if (options === null || options === void 0 ? void 0 : options.abortSignal) {
19567
+ if (options == null ? void 0 : options.abortSignal) {
19404
19568
  options.abortSignal.addEventListener("abort", onAborted);
19405
19569
  }
19406
19570
  });
@@ -19417,7 +19581,7 @@ function parseHeaderValueAsNumber(response, headerName) {
19417
19581
  }
19418
19582
  __name(parseHeaderValueAsNumber, "parseHeaderValueAsNumber");
19419
19583
 
19420
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/retryStrategies/throttlingRetryStrategy.js
19584
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/retryStrategies/throttlingRetryStrategy.js
19421
19585
  var RetryAfterHeader = "Retry-After";
19422
19586
  var AllRetryAfterHeaders = ["retry-after-ms", "x-ms-retry-after-ms", RetryAfterHeader];
19423
19587
  function getRetryAfterInMs(response) {
@@ -19437,7 +19601,7 @@ function getRetryAfterInMs(response) {
19437
19601
  const date = Date.parse(retryAfterHeader);
19438
19602
  const diff = date - Date.now();
19439
19603
  return Number.isFinite(diff) ? Math.max(0, diff) : void 0;
19440
- } catch (_a3) {
19604
+ } catch {
19441
19605
  return void 0;
19442
19606
  }
19443
19607
  }
@@ -19462,13 +19626,12 @@ function throttlingRetryStrategy() {
19462
19626
  }
19463
19627
  __name(throttlingRetryStrategy, "throttlingRetryStrategy");
19464
19628
 
19465
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/retryStrategies/exponentialRetryStrategy.js
19629
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/retryStrategies/exponentialRetryStrategy.js
19466
19630
  var DEFAULT_CLIENT_RETRY_INTERVAL = 1e3;
19467
19631
  var DEFAULT_CLIENT_MAX_RETRY_INTERVAL = 1e3 * 64;
19468
19632
  function exponentialRetryStrategy(options = {}) {
19469
- var _a3, _b2;
19470
- const retryInterval = (_a3 = options.retryDelayInMs) !== null && _a3 !== void 0 ? _a3 : DEFAULT_CLIENT_RETRY_INTERVAL;
19471
- const maxRetryInterval = (_b2 = options.maxRetryDelayInMs) !== null && _b2 !== void 0 ? _b2 : DEFAULT_CLIENT_MAX_RETRY_INTERVAL;
19633
+ const retryInterval = options.retryDelayInMs ?? DEFAULT_CLIENT_RETRY_INTERVAL;
19634
+ const maxRetryInterval = options.maxRetryDelayInMs ?? DEFAULT_CLIENT_MAX_RETRY_INTERVAL;
19472
19635
  return {
19473
19636
  name: "exponentialRetryStrategy",
19474
19637
  retry({ retryCount, response, responseError }) {
@@ -19503,15 +19666,15 @@ function isSystemError(err) {
19503
19666
  }
19504
19667
  __name(isSystemError, "isSystemError");
19505
19668
 
19506
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/policies/retryPolicy.js
19669
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/retryPolicy.js
19507
19670
  var retryPolicyLogger = createClientLogger("ts-http-runtime retryPolicy");
19508
19671
  var retryPolicyName = "retryPolicy";
19509
19672
  function retryPolicy(strategies, options = { maxRetries: DEFAULT_RETRY_POLICY_COUNT }) {
19510
19673
  const logger4 = options.logger || retryPolicyLogger;
19511
19674
  return {
19512
19675
  name: retryPolicyName,
19513
- async sendRequest(request3, next) {
19514
- var _a3, _b2;
19676
+ async sendRequest(request, next) {
19677
+ var _a4;
19515
19678
  let response;
19516
19679
  let responseError;
19517
19680
  let retryCount = -1;
@@ -19520,23 +19683,23 @@ function retryPolicy(strategies, options = { maxRetries: DEFAULT_RETRY_POLICY_CO
19520
19683
  response = void 0;
19521
19684
  responseError = void 0;
19522
19685
  try {
19523
- logger4.info(`Retry ${retryCount}: Attempting to send request`, request3.requestId);
19524
- response = await next(request3);
19525
- logger4.info(`Retry ${retryCount}: Received a response from request`, request3.requestId);
19686
+ logger4.info(`Retry ${retryCount}: Attempting to send request`, request.requestId);
19687
+ response = await next(request);
19688
+ logger4.info(`Retry ${retryCount}: Received a response from request`, request.requestId);
19526
19689
  } catch (e) {
19527
- logger4.error(`Retry ${retryCount}: Received an error from request`, request3.requestId);
19690
+ logger4.error(`Retry ${retryCount}: Received an error from request`, request.requestId);
19528
19691
  responseError = e;
19529
19692
  if (!e || responseError.name !== "RestError") {
19530
19693
  throw e;
19531
19694
  }
19532
19695
  response = responseError.response;
19533
19696
  }
19534
- if ((_a3 = request3.abortSignal) === null || _a3 === void 0 ? void 0 : _a3.aborted) {
19697
+ if ((_a4 = request.abortSignal) == null ? void 0 : _a4.aborted) {
19535
19698
  logger4.error(`Retry ${retryCount}: Request aborted.`);
19536
19699
  const abortError = new AbortError();
19537
19700
  throw abortError;
19538
19701
  }
19539
- if (retryCount >= ((_b2 = options.maxRetries) !== null && _b2 !== void 0 ? _b2 : DEFAULT_RETRY_POLICY_COUNT)) {
19702
+ if (retryCount >= (options.maxRetries ?? DEFAULT_RETRY_POLICY_COUNT)) {
19540
19703
  logger4.info(`Retry ${retryCount}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);
19541
19704
  if (responseError) {
19542
19705
  throw responseError;
@@ -19566,12 +19729,12 @@ function retryPolicy(strategies, options = { maxRetries: DEFAULT_RETRY_POLICY_CO
19566
19729
  }
19567
19730
  if (retryAfterInMs || retryAfterInMs === 0) {
19568
19731
  strategyLogger.info(`Retry ${retryCount}: Retry strategy ${strategy.name} retries after ${retryAfterInMs}`);
19569
- await delay(retryAfterInMs, void 0, { abortSignal: request3.abortSignal });
19732
+ await delay(retryAfterInMs, void 0, { abortSignal: request.abortSignal });
19570
19733
  continue retryRequest;
19571
19734
  }
19572
19735
  if (redirectTo) {
19573
19736
  strategyLogger.info(`Retry ${retryCount}: Retry strategy ${strategy.name} redirects to ${redirectTo}`);
19574
- request3.url = redirectTo;
19737
+ request.url = redirectTo;
19575
19738
  continue retryRequest;
19576
19739
  }
19577
19740
  }
@@ -19589,38 +19752,34 @@ function retryPolicy(strategies, options = { maxRetries: DEFAULT_RETRY_POLICY_CO
19589
19752
  }
19590
19753
  __name(retryPolicy, "retryPolicy");
19591
19754
 
19592
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/policies/defaultRetryPolicy.js
19755
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/defaultRetryPolicy.js
19593
19756
  var defaultRetryPolicyName = "defaultRetryPolicy";
19594
19757
  function defaultRetryPolicy(options = {}) {
19595
- var _a3;
19596
19758
  return {
19597
19759
  name: defaultRetryPolicyName,
19598
19760
  sendRequest: retryPolicy([throttlingRetryStrategy(), exponentialRetryStrategy(options)], {
19599
- maxRetries: (_a3 = options.maxRetries) !== null && _a3 !== void 0 ? _a3 : DEFAULT_RETRY_POLICY_COUNT
19761
+ maxRetries: options.maxRetries ?? DEFAULT_RETRY_POLICY_COUNT
19600
19762
  }).sendRequest
19601
19763
  };
19602
19764
  }
19603
19765
  __name(defaultRetryPolicy, "defaultRetryPolicy");
19604
19766
 
19605
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/checkEnvironment.js
19606
- var _a2;
19607
- var _b;
19608
- var _c;
19609
- var _d;
19767
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/checkEnvironment.js
19610
19768
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
19611
- var isWebWorker = typeof self === "object" && typeof (self === null || self === void 0 ? void 0 : self.importScripts) === "function" && (((_a2 = self.constructor) === null || _a2 === void 0 ? void 0 : _a2.name) === "DedicatedWorkerGlobalScope" || ((_b = self.constructor) === null || _b === void 0 ? void 0 : _b.name) === "ServiceWorkerGlobalScope" || ((_c = self.constructor) === null || _c === void 0 ? void 0 : _c.name) === "SharedWorkerGlobalScope");
19769
+ var _a2, _b, _c;
19770
+ var isWebWorker = typeof self === "object" && typeof (self == null ? void 0 : self.importScripts) === "function" && (((_a2 = self.constructor) == null ? void 0 : _a2.name) === "DedicatedWorkerGlobalScope" || ((_b = self.constructor) == null ? void 0 : _b.name) === "ServiceWorkerGlobalScope" || ((_c = self.constructor) == null ? void 0 : _c.name) === "SharedWorkerGlobalScope");
19612
19771
  var isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
19613
19772
  var isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
19614
- var isNodeLike = typeof globalThis.process !== "undefined" && Boolean(globalThis.process.version) && Boolean((_d = globalThis.process.versions) === null || _d === void 0 ? void 0 : _d.node);
19615
- var isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
19773
+ var _a3;
19774
+ var isNodeLike = typeof globalThis.process !== "undefined" && Boolean(globalThis.process.version) && Boolean((_a3 = globalThis.process.versions) == null ? void 0 : _a3.node);
19775
+ var isReactNative = typeof navigator !== "undefined" && (navigator == null ? void 0 : navigator.product) === "ReactNative";
19616
19776
 
19617
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/policies/formDataPolicy.js
19777
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/formDataPolicy.js
19618
19778
  var formDataPolicyName = "formDataPolicy";
19619
19779
  function formDataToFormDataMap(formData) {
19620
- var _a3;
19621
19780
  const formDataMap = {};
19622
19781
  for (const [key, value] of formData.entries()) {
19623
- (_a3 = formDataMap[key]) !== null && _a3 !== void 0 ? _a3 : formDataMap[key] = [];
19782
+ formDataMap[key] ??= [];
19624
19783
  formDataMap[key].push(value);
19625
19784
  }
19626
19785
  return formDataMap;
@@ -19629,21 +19788,21 @@ __name(formDataToFormDataMap, "formDataToFormDataMap");
19629
19788
  function formDataPolicy() {
19630
19789
  return {
19631
19790
  name: formDataPolicyName,
19632
- async sendRequest(request3, next) {
19633
- if (isNodeLike && typeof FormData !== "undefined" && request3.body instanceof FormData) {
19634
- request3.formData = formDataToFormDataMap(request3.body);
19635
- request3.body = void 0;
19791
+ async sendRequest(request, next) {
19792
+ if (isNodeLike && typeof FormData !== "undefined" && request.body instanceof FormData) {
19793
+ request.formData = formDataToFormDataMap(request.body);
19794
+ request.body = void 0;
19636
19795
  }
19637
- if (request3.formData) {
19638
- const contentType2 = request3.headers.get("Content-Type");
19796
+ if (request.formData) {
19797
+ const contentType2 = request.headers.get("Content-Type");
19639
19798
  if (contentType2 && contentType2.indexOf("application/x-www-form-urlencoded") !== -1) {
19640
- request3.body = wwwFormUrlEncode(request3.formData);
19799
+ request.body = wwwFormUrlEncode(request.formData);
19641
19800
  } else {
19642
- await prepareFormData(request3.formData, request3);
19801
+ await prepareFormData(request.formData, request);
19643
19802
  }
19644
- request3.formData = void 0;
19803
+ request.formData = void 0;
19645
19804
  }
19646
- return next(request3);
19805
+ return next(request);
19647
19806
  }
19648
19807
  };
19649
19808
  }
@@ -19662,12 +19821,12 @@ function wwwFormUrlEncode(formData) {
19662
19821
  return urlSearchParams.toString();
19663
19822
  }
19664
19823
  __name(wwwFormUrlEncode, "wwwFormUrlEncode");
19665
- async function prepareFormData(formData, request3) {
19666
- const contentType2 = request3.headers.get("Content-Type");
19824
+ async function prepareFormData(formData, request) {
19825
+ const contentType2 = request.headers.get("Content-Type");
19667
19826
  if (contentType2 && !contentType2.startsWith("multipart/form-data")) {
19668
19827
  return;
19669
19828
  }
19670
- request3.headers.set("Content-Type", contentType2 !== null && contentType2 !== void 0 ? contentType2 : "multipart/form-data");
19829
+ request.headers.set("Content-Type", contentType2 ?? "multipart/form-data");
19671
19830
  const parts = [];
19672
19831
  for (const [fieldName, values] of Object.entries(formData)) {
19673
19832
  for (const value of Array.isArray(values) ? values : [values]) {
@@ -19692,11 +19851,11 @@ async function prepareFormData(formData, request3) {
19692
19851
  }
19693
19852
  }
19694
19853
  }
19695
- request3.multipartBody = { parts };
19854
+ request.multipartBody = { parts };
19696
19855
  }
19697
19856
  __name(prepareFormData, "prepareFormData");
19698
19857
 
19699
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/policies/proxyPolicy.js
19858
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/proxyPolicy.js
19700
19859
  var import_https_proxy_agent = __toESM(require_dist2(), 1);
19701
19860
  var import_http_proxy_agent = __toESM(require_dist3(), 1);
19702
19861
  var HTTPS_PROXY = "HTTPS_PROXY";
@@ -19731,7 +19890,7 @@ function isBypassed(uri, noProxyList, bypassedMap) {
19731
19890
  return false;
19732
19891
  }
19733
19892
  const host2 = new URL(uri).hostname;
19734
- if (bypassedMap === null || bypassedMap === void 0 ? void 0 : bypassedMap.has(host2)) {
19893
+ if (bypassedMap == null ? void 0 : bypassedMap.has(host2)) {
19735
19894
  return bypassedMap.get(host2);
19736
19895
  }
19737
19896
  let isBypassedFlag = false;
@@ -19750,7 +19909,7 @@ function isBypassed(uri, noProxyList, bypassedMap) {
19750
19909
  }
19751
19910
  }
19752
19911
  }
19753
- bypassedMap === null || bypassedMap === void 0 ? void 0 : bypassedMap.set(host2, isBypassedFlag);
19912
+ bypassedMap == null ? void 0 : bypassedMap.set(host2, isBypassedFlag);
19754
19913
  return isBypassedFlag;
19755
19914
  }
19756
19915
  __name(isBypassed, "isBypassed");
@@ -19772,7 +19931,7 @@ function getUrlFromProxySettings(settings) {
19772
19931
  let parsedProxyUrl;
19773
19932
  try {
19774
19933
  parsedProxyUrl = new URL(settings.host);
19775
- } catch (_a3) {
19934
+ } catch {
19776
19935
  throw new Error(`Expecting a valid host string in proxy settings, but found "${settings.host}".`);
19777
19936
  }
19778
19937
  parsedProxyUrl.port = String(settings.port);
@@ -19785,26 +19944,26 @@ function getUrlFromProxySettings(settings) {
19785
19944
  return parsedProxyUrl;
19786
19945
  }
19787
19946
  __name(getUrlFromProxySettings, "getUrlFromProxySettings");
19788
- function setProxyAgentOnRequest(request3, cachedAgents, proxyUrl) {
19789
- if (request3.agent) {
19947
+ function setProxyAgentOnRequest(request, cachedAgents, proxyUrl) {
19948
+ if (request.agent) {
19790
19949
  return;
19791
19950
  }
19792
- const url2 = new URL(request3.url);
19951
+ const url2 = new URL(request.url);
19793
19952
  const isInsecure = url2.protocol !== "https:";
19794
- if (request3.tlsSettings) {
19953
+ if (request.tlsSettings) {
19795
19954
  logger.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");
19796
19955
  }
19797
- const headers = request3.headers.toJSON();
19956
+ const headers = request.headers.toJSON();
19798
19957
  if (isInsecure) {
19799
19958
  if (!cachedAgents.httpProxyAgent) {
19800
19959
  cachedAgents.httpProxyAgent = new import_http_proxy_agent.HttpProxyAgent(proxyUrl, { headers });
19801
19960
  }
19802
- request3.agent = cachedAgents.httpProxyAgent;
19961
+ request.agent = cachedAgents.httpProxyAgent;
19803
19962
  } else {
19804
19963
  if (!cachedAgents.httpsProxyAgent) {
19805
19964
  cachedAgents.httpsProxyAgent = new import_https_proxy_agent.HttpsProxyAgent(proxyUrl, { headers });
19806
19965
  }
19807
- request3.agent = cachedAgents.httpsProxyAgent;
19966
+ request.agent = cachedAgents.httpsProxyAgent;
19808
19967
  }
19809
19968
  }
19810
19969
  __name(setProxyAgentOnRequest, "setProxyAgentOnRequest");
@@ -19816,20 +19975,19 @@ function proxyPolicy(proxySettings, options) {
19816
19975
  const cachedAgents = {};
19817
19976
  return {
19818
19977
  name: proxyPolicyName,
19819
- async sendRequest(request3, next) {
19820
- var _a3;
19821
- if (!request3.proxySettings && defaultProxy && !isBypassed(request3.url, (_a3 = options === null || options === void 0 ? void 0 : options.customNoProxyList) !== null && _a3 !== void 0 ? _a3 : globalNoProxyList, (options === null || options === void 0 ? void 0 : options.customNoProxyList) ? void 0 : globalBypassedMap)) {
19822
- setProxyAgentOnRequest(request3, cachedAgents, defaultProxy);
19823
- } else if (request3.proxySettings) {
19824
- setProxyAgentOnRequest(request3, cachedAgents, getUrlFromProxySettings(request3.proxySettings));
19978
+ async sendRequest(request, next) {
19979
+ if (!request.proxySettings && defaultProxy && !isBypassed(request.url, (options == null ? void 0 : options.customNoProxyList) ?? globalNoProxyList, (options == null ? void 0 : options.customNoProxyList) ? void 0 : globalBypassedMap)) {
19980
+ setProxyAgentOnRequest(request, cachedAgents, defaultProxy);
19981
+ } else if (request.proxySettings) {
19982
+ setProxyAgentOnRequest(request, cachedAgents, getUrlFromProxySettings(request.proxySettings));
19825
19983
  }
19826
- return next(request3);
19984
+ return next(request);
19827
19985
  }
19828
19986
  };
19829
19987
  }
19830
19988
  __name(proxyPolicy, "proxyPolicy");
19831
19989
 
19832
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/policies/agentPolicy.js
19990
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/agentPolicy.js
19833
19991
  var agentPolicyName = "agentPolicy";
19834
19992
  function agentPolicy(agent) {
19835
19993
  return {
@@ -19844,7 +20002,7 @@ function agentPolicy(agent) {
19844
20002
  }
19845
20003
  __name(agentPolicy, "agentPolicy");
19846
20004
 
19847
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/policies/tlsPolicy.js
20005
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/tlsPolicy.js
19848
20006
  var tlsPolicyName = "tlsPolicy";
19849
20007
  function tlsPolicy(tlsSettings) {
19850
20008
  return {
@@ -19859,118 +20017,27 @@ function tlsPolicy(tlsSettings) {
19859
20017
  }
19860
20018
  __name(tlsPolicy, "tlsPolicy");
19861
20019
 
19862
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/typeGuards.js
20020
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/typeGuards.js
19863
20021
  function isBlob(x) {
19864
20022
  return typeof x.stream === "function";
19865
20023
  }
19866
20024
  __name(isBlob, "isBlob");
19867
20025
 
19868
- // ../../node_modules/.store/tslib-npm-2.8.1-66590b21b8/package/tslib.es6.mjs
19869
- function __values2(o) {
19870
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
19871
- if (m) return m.call(o);
19872
- if (o && typeof o.length === "number") return {
19873
- next: /* @__PURE__ */ __name(function() {
19874
- if (o && i >= o.length) o = void 0;
19875
- return { value: o && o[i++], done: !o };
19876
- }, "next")
19877
- };
19878
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
19879
- }
19880
- __name(__values2, "__values");
19881
- function __await(v) {
19882
- return this instanceof __await ? (this.v = v, this) : new __await(v);
19883
- }
19884
- __name(__await, "__await");
19885
- function __asyncGenerator(thisArg, _arguments, generator) {
19886
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
19887
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
19888
- return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {
19889
- return this;
19890
- }, i;
19891
- function awaitReturn(f) {
19892
- return function(v) {
19893
- return Promise.resolve(v).then(f, reject);
19894
- };
19895
- }
19896
- __name(awaitReturn, "awaitReturn");
19897
- function verb(n, f) {
19898
- if (g[n]) {
19899
- i[n] = function(v) {
19900
- return new Promise(function(a, b) {
19901
- q.push([n, v, a, b]) > 1 || resume(n, v);
19902
- });
19903
- };
19904
- if (f) i[n] = f(i[n]);
19905
- }
19906
- }
19907
- __name(verb, "verb");
19908
- function resume(n, v) {
19909
- try {
19910
- step(g[n](v));
19911
- } catch (e) {
19912
- settle(q[0][3], e);
19913
- }
19914
- }
19915
- __name(resume, "resume");
19916
- function step(r) {
19917
- r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
19918
- }
19919
- __name(step, "step");
19920
- function fulfill(value) {
19921
- resume("next", value);
19922
- }
19923
- __name(fulfill, "fulfill");
19924
- function reject(value) {
19925
- resume("throw", value);
19926
- }
19927
- __name(reject, "reject");
19928
- function settle(f, v) {
19929
- if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
19930
- }
19931
- __name(settle, "settle");
19932
- }
19933
- __name(__asyncGenerator, "__asyncGenerator");
19934
- function __asyncValues(o) {
19935
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
19936
- var m = o[Symbol.asyncIterator], i;
19937
- return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
19938
- return this;
19939
- }, i);
19940
- function verb(n) {
19941
- i[n] = o[n] && function(v) {
19942
- return new Promise(function(resolve, reject) {
19943
- v = o[n](v), settle(resolve, reject, v.done, v.value);
19944
- });
19945
- };
19946
- }
19947
- __name(verb, "verb");
19948
- function settle(resolve, reject, d, v) {
19949
- Promise.resolve(v).then(function(v2) {
19950
- resolve({ value: v2, done: d });
19951
- }, reject);
19952
- }
19953
- __name(settle, "settle");
19954
- }
19955
- __name(__asyncValues, "__asyncValues");
19956
-
19957
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/util/concat.js
20026
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/util/concat.js
19958
20027
  import { Readable } from "stream";
19959
- function streamAsyncIterator() {
19960
- return __asyncGenerator(this, arguments, /* @__PURE__ */ __name(function* streamAsyncIterator_1() {
19961
- const reader = this.getReader();
19962
- try {
19963
- while (true) {
19964
- const { done, value } = yield __await(reader.read());
19965
- if (done) {
19966
- return yield __await(void 0);
19967
- }
19968
- yield yield __await(value);
20028
+ async function* streamAsyncIterator() {
20029
+ const reader = this.getReader();
20030
+ try {
20031
+ while (true) {
20032
+ const { done, value } = await reader.read();
20033
+ if (done) {
20034
+ return;
19969
20035
  }
19970
- } finally {
19971
- reader.releaseLock();
20036
+ yield value;
19972
20037
  }
19973
- }, "streamAsyncIterator_1"));
20038
+ } finally {
20039
+ reader.releaseLock();
20040
+ }
19974
20041
  }
19975
20042
  __name(streamAsyncIterator, "streamAsyncIterator");
19976
20043
  function makeAsyncIterable(webStream) {
@@ -20004,34 +20071,18 @@ __name(toStream, "toStream");
20004
20071
  async function concat(sources) {
20005
20072
  return function() {
20006
20073
  const streams = sources.map((x) => typeof x === "function" ? x() : x).map(toStream);
20007
- return Readable.from((function() {
20008
- return __asyncGenerator(this, arguments, function* () {
20009
- var _a3, e_1, _b2, _c2;
20010
- for (const stream of streams) {
20011
- try {
20012
- for (var _d2 = true, stream_1 = (e_1 = void 0, __asyncValues(stream)), stream_1_1; stream_1_1 = yield __await(stream_1.next()), _a3 = stream_1_1.done, !_a3; _d2 = true) {
20013
- _c2 = stream_1_1.value;
20014
- _d2 = false;
20015
- const chunk = _c2;
20016
- yield yield __await(chunk);
20017
- }
20018
- } catch (e_1_1) {
20019
- e_1 = { error: e_1_1 };
20020
- } finally {
20021
- try {
20022
- if (!_d2 && !_a3 && (_b2 = stream_1.return)) yield __await(_b2.call(stream_1));
20023
- } finally {
20024
- if (e_1) throw e_1.error;
20025
- }
20026
- }
20074
+ return Readable.from((async function* () {
20075
+ for (const stream of streams) {
20076
+ for await (const chunk of stream) {
20077
+ yield chunk;
20027
20078
  }
20028
- });
20079
+ }
20029
20080
  })());
20030
20081
  };
20031
20082
  }
20032
20083
  __name(concat, "concat");
20033
20084
 
20034
- // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.0-dded0902cc/package/dist/esm/policies/multipartPolicy.js
20085
+ // ../../node_modules/.store/@typespec-ts-http-runtime-npm-0.3.1-3e5b754037/package/dist/esm/policies/multipartPolicy.js
20035
20086
  function generateBoundary() {
20036
20087
  return `----AzSDKFormBoundary${randomUUID()}`;
20037
20088
  }
@@ -20068,7 +20119,7 @@ function getTotalLength(sources) {
20068
20119
  return total;
20069
20120
  }
20070
20121
  __name(getTotalLength, "getTotalLength");
20071
- async function buildRequestBody(request3, parts, boundary) {
20122
+ async function buildRequestBody(request, parts, boundary) {
20072
20123
  const sources = [
20073
20124
  stringToUint8Array(`--${boundary}`, "utf-8"),
20074
20125
  ...parts.flatMap((part) => [
@@ -20083,9 +20134,9 @@ async function buildRequestBody(request3, parts, boundary) {
20083
20134
  ];
20084
20135
  const contentLength = getTotalLength(sources);
20085
20136
  if (contentLength) {
20086
- request3.headers.set("Content-Length", contentLength);
20137
+ request.headers.set("Content-Length", contentLength);
20087
20138
  }
20088
- request3.body = await concat(sources);
20139
+ request.body = await concat(sources);
20089
20140
  }
20090
20141
  __name(buildRequestBody, "buildRequestBody");
20091
20142
  var multipartPolicyName = "multipartPolicy";
@@ -20103,16 +20154,15 @@ __name(assertValidBoundary, "assertValidBoundary");
20103
20154
  function multipartPolicy() {
20104
20155
  return {
20105
20156
  name: multipartPolicyName,
20106
- async sendRequest(request3, next) {
20107
- var _a3;
20108
- if (!request3.multipartBody) {
20109
- return next(request3);
20157
+ async sendRequest(request, next) {
20158
+ if (!request.multipartBody) {
20159
+ return next(request);
20110
20160
  }
20111
- if (request3.body) {
20161
+ if (request.body) {
20112
20162
  throw new Error("multipartBody and regular body cannot be set at the same time");
20113
20163
  }
20114
- let boundary = request3.multipartBody.boundary;
20115
- const contentTypeHeader = (_a3 = request3.headers.get("Content-Type")) !== null && _a3 !== void 0 ? _a3 : "multipart/mixed";
20164
+ let boundary = request.multipartBody.boundary;
20165
+ const contentTypeHeader = request.headers.get("Content-Type") ?? "multipart/mixed";
20116
20166
  const parsedHeader = contentTypeHeader.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);
20117
20167
  if (!parsedHeader) {
20118
20168
  throw new Error(`Got multipart request body, but content-type header was not multipart: ${contentTypeHeader}`);
@@ -20121,22 +20171,22 @@ function multipartPolicy() {
20121
20171
  if (parsedBoundary && boundary && parsedBoundary !== boundary) {
20122
20172
  throw new Error(`Multipart boundary was specified as ${parsedBoundary} in the header, but got ${boundary} in the request body`);
20123
20173
  }
20124
- boundary !== null && boundary !== void 0 ? boundary : boundary = parsedBoundary;
20174
+ boundary ??= parsedBoundary;
20125
20175
  if (boundary) {
20126
20176
  assertValidBoundary(boundary);
20127
20177
  } else {
20128
20178
  boundary = generateBoundary();
20129
20179
  }
20130
- request3.headers.set("Content-Type", `${contentType2}; boundary=${boundary}`);
20131
- await buildRequestBody(request3, request3.multipartBody.parts, boundary);
20132
- request3.multipartBody = void 0;
20133
- return next(request3);
20180
+ request.headers.set("Content-Type", `${contentType2}; boundary=${boundary}`);
20181
+ await buildRequestBody(request, request.multipartBody.parts, boundary);
20182
+ request.multipartBody = void 0;
20183
+ return next(request);
20134
20184
  }
20135
20185
  };
20136
20186
  }
20137
20187
  __name(multipartPolicy, "multipartPolicy");
20138
20188
 
20139
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/pipeline.js
20189
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/pipeline.js
20140
20190
  function createEmptyPipeline2() {
20141
20191
  return createEmptyPipeline();
20142
20192
  }
@@ -20153,48 +20203,51 @@ function createClientLogger2(namespace) {
20153
20203
  }
20154
20204
  __name(createClientLogger2, "createClientLogger");
20155
20205
 
20156
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/log.js
20206
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/log.js
20157
20207
  var logger2 = createClientLogger2("core-rest-pipeline");
20158
20208
 
20159
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/logPolicy.js
20209
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/logPolicy.js
20160
20210
  function logPolicy2(options = {}) {
20161
- return logPolicy(Object.assign({ logger: logger2.info }, options));
20211
+ return logPolicy({
20212
+ logger: logger2.info,
20213
+ ...options
20214
+ });
20162
20215
  }
20163
20216
  __name(logPolicy2, "logPolicy");
20164
20217
 
20165
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/redirectPolicy.js
20218
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/redirectPolicy.js
20166
20219
  var redirectPolicyName2 = redirectPolicyName;
20167
20220
  function redirectPolicy2(options = {}) {
20168
20221
  return redirectPolicy(options);
20169
20222
  }
20170
20223
  __name(redirectPolicy2, "redirectPolicy");
20171
20224
 
20172
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/util/userAgentPlatform.js
20173
- import * as os from "node:os";
20174
- import * as process4 from "node:process";
20225
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/util/userAgentPlatform.js
20226
+ import os from "node:os";
20227
+ import process4 from "node:process";
20175
20228
  function getHeaderName2() {
20176
20229
  return "User-Agent";
20177
20230
  }
20178
20231
  __name(getHeaderName2, "getHeaderName");
20179
20232
  async function setPlatformSpecificData2(map) {
20180
20233
  if (process4 && process4.versions) {
20181
- const versions2 = process4.versions;
20182
- if (versions2.bun) {
20183
- map.set("Bun", versions2.bun);
20184
- } else if (versions2.deno) {
20185
- map.set("Deno", versions2.deno);
20186
- } else if (versions2.node) {
20187
- map.set("Node", versions2.node);
20234
+ const versions = process4.versions;
20235
+ if (versions.bun) {
20236
+ map.set("Bun", versions.bun);
20237
+ } else if (versions.deno) {
20238
+ map.set("Deno", versions.deno);
20239
+ } else if (versions.node) {
20240
+ map.set("Node", versions.node);
20188
20241
  }
20189
20242
  }
20190
20243
  map.set("OS", `(${os.arch()}-${os.type()}-${os.release()})`);
20191
20244
  }
20192
20245
  __name(setPlatformSpecificData2, "setPlatformSpecificData");
20193
20246
 
20194
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/constants.js
20195
- var SDK_VERSION2 = "1.22.0";
20247
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/constants.js
20248
+ var SDK_VERSION2 = "1.22.1";
20196
20249
 
20197
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/util/userAgent.js
20250
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/util/userAgent.js
20198
20251
  function getUserAgentString(telemetryInfo) {
20199
20252
  const parts = [];
20200
20253
  for (const [key, value] of telemetryInfo) {
@@ -20218,18 +20271,18 @@ async function getUserAgentValue2(prefix) {
20218
20271
  }
20219
20272
  __name(getUserAgentValue2, "getUserAgentValue");
20220
20273
 
20221
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/userAgentPolicy.js
20274
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/userAgentPolicy.js
20222
20275
  var UserAgentHeaderName2 = getUserAgentHeaderName2();
20223
20276
  var userAgentPolicyName2 = "userAgentPolicy";
20224
20277
  function userAgentPolicy2(options = {}) {
20225
20278
  const userAgentValue = getUserAgentValue2(options.userAgentPrefix);
20226
20279
  return {
20227
20280
  name: userAgentPolicyName2,
20228
- async sendRequest(request3, next) {
20229
- if (!request3.headers.has(UserAgentHeaderName2)) {
20230
- request3.headers.set(UserAgentHeaderName2, await userAgentValue);
20281
+ async sendRequest(request, next) {
20282
+ if (!request.headers.has(UserAgentHeaderName2)) {
20283
+ request.headers.set(UserAgentHeaderName2, await userAgentValue);
20231
20284
  }
20232
- return next(request3);
20285
+ return next(request);
20233
20286
  }
20234
20287
  };
20235
20288
  }
@@ -20245,25 +20298,25 @@ var _AbortError2 = class _AbortError2 extends Error {
20245
20298
  __name(_AbortError2, "AbortError");
20246
20299
  var AbortError2 = _AbortError2;
20247
20300
 
20248
- // ../../node_modules/.store/@azure-core-util-npm-1.13.0-b42aa7c8cb/package/dist/esm/createAbortablePromise.js
20301
+ // ../../node_modules/.store/@azure-core-util-npm-1.13.1-f6d65e92ea/package/dist/esm/createAbortablePromise.js
20249
20302
  function createAbortablePromise(buildPromise, options) {
20250
- const { cleanupBeforeAbort, abortSignal, abortErrorMsg } = options !== null && options !== void 0 ? options : {};
20303
+ const { cleanupBeforeAbort, abortSignal, abortErrorMsg } = options ?? {};
20251
20304
  return new Promise((resolve, reject) => {
20252
20305
  function rejectOnAbort() {
20253
- reject(new AbortError2(abortErrorMsg !== null && abortErrorMsg !== void 0 ? abortErrorMsg : "The operation was aborted."));
20306
+ reject(new AbortError2(abortErrorMsg ?? "The operation was aborted."));
20254
20307
  }
20255
20308
  __name(rejectOnAbort, "rejectOnAbort");
20256
20309
  function removeListeners() {
20257
- abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.removeEventListener("abort", onAbort);
20310
+ abortSignal == null ? void 0 : abortSignal.removeEventListener("abort", onAbort);
20258
20311
  }
20259
20312
  __name(removeListeners, "removeListeners");
20260
20313
  function onAbort() {
20261
- cleanupBeforeAbort === null || cleanupBeforeAbort === void 0 ? void 0 : cleanupBeforeAbort();
20314
+ cleanupBeforeAbort == null ? void 0 : cleanupBeforeAbort();
20262
20315
  removeListeners();
20263
20316
  rejectOnAbort();
20264
20317
  }
20265
20318
  __name(onAbort, "onAbort");
20266
- if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) {
20319
+ if (abortSignal == null ? void 0 : abortSignal.aborted) {
20267
20320
  return rejectOnAbort();
20268
20321
  }
20269
20322
  try {
@@ -20277,27 +20330,27 @@ function createAbortablePromise(buildPromise, options) {
20277
20330
  } catch (err) {
20278
20331
  reject(err);
20279
20332
  }
20280
- abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.addEventListener("abort", onAbort);
20333
+ abortSignal == null ? void 0 : abortSignal.addEventListener("abort", onAbort);
20281
20334
  });
20282
20335
  }
20283
20336
  __name(createAbortablePromise, "createAbortablePromise");
20284
20337
 
20285
- // ../../node_modules/.store/@azure-core-util-npm-1.13.0-b42aa7c8cb/package/dist/esm/delay.js
20338
+ // ../../node_modules/.store/@azure-core-util-npm-1.13.1-f6d65e92ea/package/dist/esm/delay.js
20286
20339
  var StandardAbortMessage2 = "The delay was aborted.";
20287
20340
  function delay2(timeInMs, options) {
20288
20341
  let token;
20289
- const { abortSignal, abortErrorMsg } = options !== null && options !== void 0 ? options : {};
20342
+ const { abortSignal, abortErrorMsg } = options ?? {};
20290
20343
  return createAbortablePromise((resolve) => {
20291
20344
  token = setTimeout(resolve, timeInMs);
20292
20345
  }, {
20293
20346
  cleanupBeforeAbort: /* @__PURE__ */ __name(() => clearTimeout(token), "cleanupBeforeAbort"),
20294
20347
  abortSignal,
20295
- abortErrorMsg: abortErrorMsg !== null && abortErrorMsg !== void 0 ? abortErrorMsg : StandardAbortMessage2
20348
+ abortErrorMsg: abortErrorMsg ?? StandardAbortMessage2
20296
20349
  });
20297
20350
  }
20298
20351
  __name(delay2, "delay");
20299
20352
 
20300
- // ../../node_modules/.store/@azure-core-util-npm-1.13.0-b42aa7c8cb/package/dist/esm/error.js
20353
+ // ../../node_modules/.store/@azure-core-util-npm-1.13.1-f6d65e92ea/package/dist/esm/error.js
20301
20354
  function getErrorMessage(e) {
20302
20355
  if (isError(e)) {
20303
20356
  return e.message;
@@ -20317,14 +20370,14 @@ function getErrorMessage(e) {
20317
20370
  }
20318
20371
  __name(getErrorMessage, "getErrorMessage");
20319
20372
 
20320
- // ../../node_modules/.store/@azure-core-util-npm-1.13.0-b42aa7c8cb/package/dist/esm/index.js
20373
+ // ../../node_modules/.store/@azure-core-util-npm-1.13.1-f6d65e92ea/package/dist/esm/index.js
20321
20374
  function isError2(e) {
20322
20375
  return isError(e);
20323
20376
  }
20324
20377
  __name(isError2, "isError");
20325
20378
  var isNodeLike2 = isNodeLike;
20326
20379
 
20327
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/util/file.js
20380
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/util/file.js
20328
20381
  var rawContent = Symbol("rawContent");
20329
20382
  function hasRawContent(x) {
20330
20383
  return typeof x[rawContent] === "function";
@@ -20339,78 +20392,78 @@ function getRawContent(blob) {
20339
20392
  }
20340
20393
  __name(getRawContent, "getRawContent");
20341
20394
 
20342
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/multipartPolicy.js
20395
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/multipartPolicy.js
20343
20396
  var multipartPolicyName2 = multipartPolicyName;
20344
20397
  function multipartPolicy2() {
20345
20398
  const tspPolicy = multipartPolicy();
20346
20399
  return {
20347
20400
  name: multipartPolicyName2,
20348
- sendRequest: /* @__PURE__ */ __name(async (request3, next) => {
20349
- if (request3.multipartBody) {
20350
- for (const part of request3.multipartBody.parts) {
20401
+ sendRequest: /* @__PURE__ */ __name(async (request, next) => {
20402
+ if (request.multipartBody) {
20403
+ for (const part of request.multipartBody.parts) {
20351
20404
  if (hasRawContent(part.body)) {
20352
20405
  part.body = getRawContent(part.body);
20353
20406
  }
20354
20407
  }
20355
20408
  }
20356
- return tspPolicy.sendRequest(request3, next);
20409
+ return tspPolicy.sendRequest(request, next);
20357
20410
  }, "sendRequest")
20358
20411
  };
20359
20412
  }
20360
20413
  __name(multipartPolicy2, "multipartPolicy");
20361
20414
 
20362
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/decompressResponsePolicy.js
20415
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/decompressResponsePolicy.js
20363
20416
  function decompressResponsePolicy2() {
20364
20417
  return decompressResponsePolicy();
20365
20418
  }
20366
20419
  __name(decompressResponsePolicy2, "decompressResponsePolicy");
20367
20420
 
20368
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/defaultRetryPolicy.js
20421
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/defaultRetryPolicy.js
20369
20422
  function defaultRetryPolicy2(options = {}) {
20370
20423
  return defaultRetryPolicy(options);
20371
20424
  }
20372
20425
  __name(defaultRetryPolicy2, "defaultRetryPolicy");
20373
20426
 
20374
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/formDataPolicy.js
20427
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/formDataPolicy.js
20375
20428
  function formDataPolicy2() {
20376
20429
  return formDataPolicy();
20377
20430
  }
20378
20431
  __name(formDataPolicy2, "formDataPolicy");
20379
20432
 
20380
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/proxyPolicy.js
20433
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/proxyPolicy.js
20381
20434
  function proxyPolicy2(proxySettings, options) {
20382
20435
  return proxyPolicy(proxySettings, options);
20383
20436
  }
20384
20437
  __name(proxyPolicy2, "proxyPolicy");
20385
20438
 
20386
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/setClientRequestIdPolicy.js
20439
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/setClientRequestIdPolicy.js
20387
20440
  var setClientRequestIdPolicyName = "setClientRequestIdPolicy";
20388
20441
  function setClientRequestIdPolicy(requestIdHeaderName = "x-ms-client-request-id") {
20389
20442
  return {
20390
20443
  name: setClientRequestIdPolicyName,
20391
- async sendRequest(request3, next) {
20392
- if (!request3.headers.has(requestIdHeaderName)) {
20393
- request3.headers.set(requestIdHeaderName, request3.requestId);
20444
+ async sendRequest(request, next) {
20445
+ if (!request.headers.has(requestIdHeaderName)) {
20446
+ request.headers.set(requestIdHeaderName, request.requestId);
20394
20447
  }
20395
- return next(request3);
20448
+ return next(request);
20396
20449
  }
20397
20450
  };
20398
20451
  }
20399
20452
  __name(setClientRequestIdPolicy, "setClientRequestIdPolicy");
20400
20453
 
20401
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/agentPolicy.js
20454
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/agentPolicy.js
20402
20455
  function agentPolicy2(agent) {
20403
20456
  return agentPolicy(agent);
20404
20457
  }
20405
20458
  __name(agentPolicy2, "agentPolicy");
20406
20459
 
20407
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/tlsPolicy.js
20460
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/tlsPolicy.js
20408
20461
  function tlsPolicy2(tlsSettings) {
20409
20462
  return tlsPolicy(tlsSettings);
20410
20463
  }
20411
20464
  __name(tlsPolicy2, "tlsPolicy");
20412
20465
 
20413
- // ../../node_modules/.store/@azure-core-tracing-npm-1.3.0-ee5ebb3659/package/dist/esm/tracingContext.js
20466
+ // ../../node_modules/.store/@azure-core-tracing-npm-1.3.1-eb2949b9c4/package/dist/esm/tracingContext.js
20414
20467
  var knownContextKeys = {
20415
20468
  span: Symbol.for("@azure/core-tracing span"),
20416
20469
  namespace: Symbol.for("@azure/core-tracing namespace")
@@ -20427,6 +20480,7 @@ function createTracingContext(options = {}) {
20427
20480
  }
20428
20481
  __name(createTracingContext, "createTracingContext");
20429
20482
  var _TracingContextImpl = class _TracingContextImpl {
20483
+ _contextMap;
20430
20484
  constructor(initialContext) {
20431
20485
  this._contextMap = initialContext instanceof _TracingContextImpl ? new Map(initialContext._contextMap) : /* @__PURE__ */ new Map();
20432
20486
  }
@@ -20447,11 +20501,11 @@ var _TracingContextImpl = class _TracingContextImpl {
20447
20501
  __name(_TracingContextImpl, "TracingContextImpl");
20448
20502
  var TracingContextImpl = _TracingContextImpl;
20449
20503
 
20450
- // ../../node_modules/.store/@azure-core-tracing-npm-1.3.0-ee5ebb3659/package/dist/esm/state.js
20504
+ // ../../node_modules/.store/@azure-core-tracing-npm-1.3.1-eb2949b9c4/package/dist/esm/state.js
20451
20505
  var import_state = __toESM(require_state(), 1);
20452
20506
  var state = import_state.state;
20453
20507
 
20454
- // ../../node_modules/.store/@azure-core-tracing-npm-1.3.0-ee5ebb3659/package/dist/esm/instrumenter.js
20508
+ // ../../node_modules/.store/@azure-core-tracing-npm-1.3.1-eb2949b9c4/package/dist/esm/instrumenter.js
20455
20509
  function createDefaultTracingSpan() {
20456
20510
  return {
20457
20511
  end: /* @__PURE__ */ __name(() => {
@@ -20496,12 +20550,17 @@ function getInstrumenter() {
20496
20550
  }
20497
20551
  __name(getInstrumenter, "getInstrumenter");
20498
20552
 
20499
- // ../../node_modules/.store/@azure-core-tracing-npm-1.3.0-ee5ebb3659/package/dist/esm/tracingClient.js
20553
+ // ../../node_modules/.store/@azure-core-tracing-npm-1.3.1-eb2949b9c4/package/dist/esm/tracingClient.js
20500
20554
  function createTracingClient(options) {
20501
20555
  const { namespace, packageName, packageVersion: packageVersion2 } = options;
20502
20556
  function startSpan(name, operationOptions, spanOptions) {
20503
- var _a3;
20504
- const startSpanResult = getInstrumenter().startSpan(name, Object.assign(Object.assign({}, spanOptions), { packageName, packageVersion: packageVersion2, tracingContext: (_a3 = operationOptions === null || operationOptions === void 0 ? void 0 : operationOptions.tracingOptions) === null || _a3 === void 0 ? void 0 : _a3.tracingContext }));
20557
+ var _a4;
20558
+ const startSpanResult = getInstrumenter().startSpan(name, {
20559
+ ...spanOptions,
20560
+ packageName,
20561
+ packageVersion: packageVersion2,
20562
+ tracingContext: (_a4 = operationOptions == null ? void 0 : operationOptions.tracingOptions) == null ? void 0 : _a4.tracingContext
20563
+ });
20505
20564
  let tracingContext = startSpanResult.tracingContext;
20506
20565
  const span = startSpanResult.span;
20507
20566
  if (!tracingContext.getValue(knownContextKeys.namespace)) {
@@ -20509,7 +20568,7 @@ function createTracingClient(options) {
20509
20568
  }
20510
20569
  span.setAttribute("az.namespace", tracingContext.getValue(knownContextKeys.namespace));
20511
20570
  const updatedOptions = Object.assign({}, operationOptions, {
20512
- tracingOptions: Object.assign(Object.assign({}, operationOptions === null || operationOptions === void 0 ? void 0 : operationOptions.tracingOptions), { tracingContext })
20571
+ tracingOptions: { ...operationOptions == null ? void 0 : operationOptions.tracingOptions, tracingContext }
20513
20572
  });
20514
20573
  return {
20515
20574
  span,
@@ -20553,14 +20612,14 @@ function createTracingClient(options) {
20553
20612
  }
20554
20613
  __name(createTracingClient, "createTracingClient");
20555
20614
 
20556
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/restError.js
20615
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/restError.js
20557
20616
  var RestError2 = RestError;
20558
20617
  function isRestError2(e) {
20559
20618
  return isRestError(e);
20560
20619
  }
20561
20620
  __name(isRestError2, "isRestError");
20562
20621
 
20563
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/tracingPolicy.js
20622
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/tracingPolicy.js
20564
20623
  var tracingPolicyName = "tracingPolicy";
20565
20624
  function tracingPolicy(options = {}) {
20566
20625
  const userAgentPromise = getUserAgentValue2(options.userAgentPrefix);
@@ -20570,27 +20629,26 @@ function tracingPolicy(options = {}) {
20570
20629
  const tracingClient = tryCreateTracingClient();
20571
20630
  return {
20572
20631
  name: tracingPolicyName,
20573
- async sendRequest(request3, next) {
20574
- var _a3;
20632
+ async sendRequest(request, next) {
20575
20633
  if (!tracingClient) {
20576
- return next(request3);
20634
+ return next(request);
20577
20635
  }
20578
20636
  const userAgent = await userAgentPromise;
20579
20637
  const spanAttributes = {
20580
- "http.url": sanitizer.sanitizeUrl(request3.url),
20581
- "http.method": request3.method,
20638
+ "http.url": sanitizer.sanitizeUrl(request.url),
20639
+ "http.method": request.method,
20582
20640
  "http.user_agent": userAgent,
20583
- requestId: request3.requestId
20641
+ requestId: request.requestId
20584
20642
  };
20585
20643
  if (userAgent) {
20586
20644
  spanAttributes["http.user_agent"] = userAgent;
20587
20645
  }
20588
- const { span, tracingContext } = (_a3 = tryCreateSpan(tracingClient, request3, spanAttributes)) !== null && _a3 !== void 0 ? _a3 : {};
20646
+ const { span, tracingContext } = tryCreateSpan(tracingClient, request, spanAttributes) ?? {};
20589
20647
  if (!span || !tracingContext) {
20590
- return next(request3);
20648
+ return next(request);
20591
20649
  }
20592
20650
  try {
20593
- const response = await tracingClient.withContext(tracingContext, next, request3);
20651
+ const response = await tracingClient.withContext(tracingContext, next, request);
20594
20652
  tryProcessResponse(span, response);
20595
20653
  return response;
20596
20654
  } catch (err) {
@@ -20614,9 +20672,9 @@ function tryCreateTracingClient() {
20614
20672
  }
20615
20673
  }
20616
20674
  __name(tryCreateTracingClient, "tryCreateTracingClient");
20617
- function tryCreateSpan(tracingClient, request3, spanAttributes) {
20675
+ function tryCreateSpan(tracingClient, request, spanAttributes) {
20618
20676
  try {
20619
- const { span, updatedOptions } = tracingClient.startSpan(`HTTP ${request3.method}`, { tracingOptions: request3.tracingOptions }, {
20677
+ const { span, updatedOptions } = tracingClient.startSpan(`HTTP ${request.method}`, { tracingOptions: request.tracingOptions }, {
20620
20678
  spanKind: "client",
20621
20679
  spanAttributes
20622
20680
  });
@@ -20626,7 +20684,7 @@ function tryCreateSpan(tracingClient, request3, spanAttributes) {
20626
20684
  }
20627
20685
  const headers = tracingClient.createRequestHeaders(updatedOptions.tracingOptions.tracingContext);
20628
20686
  for (const [key, value] of Object.entries(headers)) {
20629
- request3.headers.set(key, value);
20687
+ request.headers.set(key, value);
20630
20688
  }
20631
20689
  return { span, tracingContext: updatedOptions.tracingOptions.tracingContext };
20632
20690
  } catch (e) {
@@ -20669,7 +20727,7 @@ function tryProcessResponse(span, response) {
20669
20727
  }
20670
20728
  __name(tryProcessResponse, "tryProcessResponse");
20671
20729
 
20672
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/util/wrapAbortSignal.js
20730
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/util/wrapAbortSignal.js
20673
20731
  function wrapAbortSignalLike(abortSignalLike) {
20674
20732
  if (abortSignalLike instanceof AbortSignal) {
20675
20733
  return { abortSignal: abortSignalLike };
@@ -20696,30 +20754,30 @@ function wrapAbortSignalLike(abortSignalLike) {
20696
20754
  }
20697
20755
  __name(wrapAbortSignalLike, "wrapAbortSignalLike");
20698
20756
 
20699
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/wrapAbortSignalLikePolicy.js
20757
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/wrapAbortSignalLikePolicy.js
20700
20758
  var wrapAbortSignalLikePolicyName = "wrapAbortSignalLikePolicy";
20701
20759
  function wrapAbortSignalLikePolicy() {
20702
20760
  return {
20703
20761
  name: wrapAbortSignalLikePolicyName,
20704
- sendRequest: /* @__PURE__ */ __name(async (request3, next) => {
20705
- if (!request3.abortSignal) {
20706
- return next(request3);
20762
+ sendRequest: /* @__PURE__ */ __name(async (request, next) => {
20763
+ if (!request.abortSignal) {
20764
+ return next(request);
20707
20765
  }
20708
- const { abortSignal, cleanup } = wrapAbortSignalLike(request3.abortSignal);
20709
- request3.abortSignal = abortSignal;
20766
+ const { abortSignal, cleanup } = wrapAbortSignalLike(request.abortSignal);
20767
+ request.abortSignal = abortSignal;
20710
20768
  try {
20711
- return await next(request3);
20769
+ return await next(request);
20712
20770
  } finally {
20713
- cleanup === null || cleanup === void 0 ? void 0 : cleanup();
20771
+ cleanup == null ? void 0 : cleanup();
20714
20772
  }
20715
20773
  }, "sendRequest")
20716
20774
  };
20717
20775
  }
20718
20776
  __name(wrapAbortSignalLikePolicy, "wrapAbortSignalLikePolicy");
20719
20777
 
20720
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/createPipelineFromOptions.js
20778
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/createPipelineFromOptions.js
20721
20779
  function createPipelineFromOptions2(options) {
20722
- var _a3;
20780
+ var _a4;
20723
20781
  const pipeline = createEmptyPipeline2();
20724
20782
  if (isNodeLike2) {
20725
20783
  if (options.agent) {
@@ -20734,10 +20792,10 @@ function createPipelineFromOptions2(options) {
20734
20792
  pipeline.addPolicy(wrapAbortSignalLikePolicy());
20735
20793
  pipeline.addPolicy(formDataPolicy2(), { beforePolicies: [multipartPolicyName2] });
20736
20794
  pipeline.addPolicy(userAgentPolicy2(options.userAgentOptions));
20737
- pipeline.addPolicy(setClientRequestIdPolicy((_a3 = options.telemetryOptions) === null || _a3 === void 0 ? void 0 : _a3.clientRequestIdHeaderName));
20795
+ pipeline.addPolicy(setClientRequestIdPolicy((_a4 = options.telemetryOptions) == null ? void 0 : _a4.clientRequestIdHeaderName));
20738
20796
  pipeline.addPolicy(multipartPolicy2(), { afterPhase: "Deserialize" });
20739
20797
  pipeline.addPolicy(defaultRetryPolicy2(options.retryOptions), { phase: "Retry" });
20740
- pipeline.addPolicy(tracingPolicy(Object.assign(Object.assign({}, options.userAgentOptions), options.loggingOptions)), {
20798
+ pipeline.addPolicy(tracingPolicy({ ...options.userAgentOptions, ...options.loggingOptions }), {
20741
20799
  afterPhase: "Retry"
20742
20800
  });
20743
20801
  if (isNodeLike2) {
@@ -20748,33 +20806,33 @@ function createPipelineFromOptions2(options) {
20748
20806
  }
20749
20807
  __name(createPipelineFromOptions2, "createPipelineFromOptions");
20750
20808
 
20751
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/defaultHttpClient.js
20809
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/defaultHttpClient.js
20752
20810
  function createDefaultHttpClient2() {
20753
20811
  const client = createDefaultHttpClient();
20754
20812
  return {
20755
- async sendRequest(request3) {
20756
- const { abortSignal, cleanup } = request3.abortSignal ? wrapAbortSignalLike(request3.abortSignal) : {};
20813
+ async sendRequest(request) {
20814
+ const { abortSignal, cleanup } = request.abortSignal ? wrapAbortSignalLike(request.abortSignal) : {};
20757
20815
  try {
20758
- request3.abortSignal = abortSignal;
20759
- return await client.sendRequest(request3);
20816
+ request.abortSignal = abortSignal;
20817
+ return await client.sendRequest(request);
20760
20818
  } finally {
20761
- cleanup === null || cleanup === void 0 ? void 0 : cleanup();
20819
+ cleanup == null ? void 0 : cleanup();
20762
20820
  }
20763
20821
  }
20764
20822
  };
20765
20823
  }
20766
20824
  __name(createDefaultHttpClient2, "createDefaultHttpClient");
20767
20825
 
20768
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/pipelineRequest.js
20826
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/pipelineRequest.js
20769
20827
  function createPipelineRequest2(options) {
20770
20828
  return createPipelineRequest(options);
20771
20829
  }
20772
20830
  __name(createPipelineRequest2, "createPipelineRequest");
20773
20831
 
20774
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/retryPolicy.js
20832
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/retryPolicy.js
20775
20833
  var retryPolicyLogger2 = createClientLogger2("core-rest-pipeline retryPolicy");
20776
20834
 
20777
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/util/tokenCycler.js
20835
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/util/tokenCycler.js
20778
20836
  var DEFAULT_CYCLER_OPTIONS = {
20779
20837
  forcedRefreshWindowInMs: 1e3,
20780
20838
  // Force waiting for a refresh 1s before the token expires
@@ -20788,7 +20846,7 @@ async function beginRefresh(getAccessToken, retryIntervalInMs, refreshTimeout) {
20788
20846
  if (Date.now() < refreshTimeout) {
20789
20847
  try {
20790
20848
  return await getAccessToken();
20791
- } catch (_a3) {
20849
+ } catch {
20792
20850
  return null;
20793
20851
  }
20794
20852
  } else {
@@ -20812,7 +20870,10 @@ function createTokenCycler(credential, tokenCyclerOptions) {
20812
20870
  let refreshWorker = null;
20813
20871
  let token = null;
20814
20872
  let tenantId;
20815
- const options = Object.assign(Object.assign({}, DEFAULT_CYCLER_OPTIONS), tokenCyclerOptions);
20873
+ const options = {
20874
+ ...DEFAULT_CYCLER_OPTIONS,
20875
+ ...tokenCyclerOptions
20876
+ };
20816
20877
  const cycler = {
20817
20878
  /**
20818
20879
  * Produces true if a refresh job is currently in progress.
@@ -20825,14 +20886,13 @@ function createTokenCycler(credential, tokenCyclerOptions) {
20825
20886
  * window and not already refreshing)
20826
20887
  */
20827
20888
  get shouldRefresh() {
20828
- var _a3;
20829
20889
  if (cycler.isRefreshing) {
20830
20890
  return false;
20831
20891
  }
20832
- if ((token === null || token === void 0 ? void 0 : token.refreshAfterTimestamp) && token.refreshAfterTimestamp < Date.now()) {
20892
+ if ((token == null ? void 0 : token.refreshAfterTimestamp) && token.refreshAfterTimestamp < Date.now()) {
20833
20893
  return true;
20834
20894
  }
20835
- return ((_a3 = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a3 !== void 0 ? _a3 : 0) - options.refreshWindowInMs < Date.now();
20895
+ return ((token == null ? void 0 : token.expiresOnTimestamp) ?? 0) - options.refreshWindowInMs < Date.now();
20836
20896
  },
20837
20897
  /**
20838
20898
  * Produces true if the cycler MUST refresh (null or nearly-expired
@@ -20843,14 +20903,13 @@ function createTokenCycler(credential, tokenCyclerOptions) {
20843
20903
  }
20844
20904
  };
20845
20905
  function refresh(scopes, getTokenOptions) {
20846
- var _a3;
20847
20906
  if (!cycler.isRefreshing) {
20848
20907
  const tryGetAccessToken = /* @__PURE__ */ __name(() => credential.getToken(scopes, getTokenOptions), "tryGetAccessToken");
20849
20908
  refreshWorker = beginRefresh(
20850
20909
  tryGetAccessToken,
20851
20910
  options.retryIntervalInMs,
20852
20911
  // If we don't have a token, then we should timeout immediately
20853
- (_a3 = token === null || token === void 0 ? void 0 : token.expiresOnTimestamp) !== null && _a3 !== void 0 ? _a3 : Date.now()
20912
+ (token == null ? void 0 : token.expiresOnTimestamp) ?? Date.now()
20854
20913
  ).then((_token) => {
20855
20914
  refreshWorker = null;
20856
20915
  token = _token;
@@ -20884,11 +20943,11 @@ function createTokenCycler(credential, tokenCyclerOptions) {
20884
20943
  }
20885
20944
  __name(createTokenCycler, "createTokenCycler");
20886
20945
 
20887
- // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.0-df59704072/package/dist/esm/policies/bearerTokenAuthenticationPolicy.js
20946
+ // ../../node_modules/.store/@azure-core-rest-pipeline-npm-1.22.1-38824241ab/package/dist/esm/policies/bearerTokenAuthenticationPolicy.js
20888
20947
  var bearerTokenAuthenticationPolicyName = "bearerTokenAuthenticationPolicy";
20889
- async function trySendRequest(request3, next) {
20948
+ async function trySendRequest(request, next) {
20890
20949
  try {
20891
- return [await next(request3), void 0];
20950
+ return [await next(request), void 0];
20892
20951
  } catch (e) {
20893
20952
  if (isRestError2(e) && e.response) {
20894
20953
  return [e.response, e];
@@ -20899,10 +20958,10 @@ async function trySendRequest(request3, next) {
20899
20958
  }
20900
20959
  __name(trySendRequest, "trySendRequest");
20901
20960
  async function defaultAuthorizeRequest(options) {
20902
- const { scopes, getAccessToken, request: request3 } = options;
20961
+ const { scopes, getAccessToken, request } = options;
20903
20962
  const getTokenOptions = {
20904
- abortSignal: request3.abortSignal,
20905
- tracingOptions: request3.tracingOptions,
20963
+ abortSignal: request.abortSignal,
20964
+ tracingOptions: request.tracingOptions,
20906
20965
  enableCae: true
20907
20966
  };
20908
20967
  const accessToken = await getAccessToken(scopes, getTokenOptions);
@@ -20916,7 +20975,6 @@ function isChallengeResponse(response) {
20916
20975
  }
20917
20976
  __name(isChallengeResponse, "isChallengeResponse");
20918
20977
  async function authorizeRequestOnCaeChallenge(onChallengeOptions, caeClaims) {
20919
- var _a3;
20920
20978
  const { scopes } = onChallengeOptions;
20921
20979
  const accessToken = await onChallengeOptions.getAccessToken(scopes, {
20922
20980
  enableCae: true,
@@ -20925,17 +20983,17 @@ async function authorizeRequestOnCaeChallenge(onChallengeOptions, caeClaims) {
20925
20983
  if (!accessToken) {
20926
20984
  return false;
20927
20985
  }
20928
- onChallengeOptions.request.headers.set("Authorization", `${(_a3 = accessToken.tokenType) !== null && _a3 !== void 0 ? _a3 : "Bearer"} ${accessToken.token}`);
20986
+ onChallengeOptions.request.headers.set("Authorization", `${accessToken.tokenType ?? "Bearer"} ${accessToken.token}`);
20929
20987
  return true;
20930
20988
  }
20931
20989
  __name(authorizeRequestOnCaeChallenge, "authorizeRequestOnCaeChallenge");
20932
20990
  function bearerTokenAuthenticationPolicy(options) {
20933
- var _a3, _b2, _c2;
20991
+ var _a4, _b2;
20934
20992
  const { credential, scopes, challengeCallbacks } = options;
20935
20993
  const logger4 = options.logger || logger2;
20936
20994
  const callbacks = {
20937
- authorizeRequest: (_b2 = (_a3 = challengeCallbacks === null || challengeCallbacks === void 0 ? void 0 : challengeCallbacks.authorizeRequest) === null || _a3 === void 0 ? void 0 : _a3.bind(challengeCallbacks)) !== null && _b2 !== void 0 ? _b2 : defaultAuthorizeRequest,
20938
- authorizeRequestOnChallenge: (_c2 = challengeCallbacks === null || challengeCallbacks === void 0 ? void 0 : challengeCallbacks.authorizeRequestOnChallenge) === null || _c2 === void 0 ? void 0 : _c2.bind(challengeCallbacks)
20995
+ authorizeRequest: ((_a4 = challengeCallbacks == null ? void 0 : challengeCallbacks.authorizeRequest) == null ? void 0 : _a4.bind(challengeCallbacks)) ?? defaultAuthorizeRequest,
20996
+ authorizeRequestOnChallenge: (_b2 = challengeCallbacks == null ? void 0 : challengeCallbacks.authorizeRequestOnChallenge) == null ? void 0 : _b2.bind(challengeCallbacks)
20939
20997
  };
20940
20998
  const getAccessToken = credential ? createTokenCycler(
20941
20999
  credential
@@ -20956,20 +21014,20 @@ function bearerTokenAuthenticationPolicy(options) {
20956
21014
  * - Process a challenge if the response contains it.
20957
21015
  * - Retrieve a token with the challenge information, then re-send the request.
20958
21016
  */
20959
- async sendRequest(request3, next) {
20960
- if (!request3.url.toLowerCase().startsWith("https://")) {
21017
+ async sendRequest(request, next) {
21018
+ if (!request.url.toLowerCase().startsWith("https://")) {
20961
21019
  throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");
20962
21020
  }
20963
21021
  await callbacks.authorizeRequest({
20964
21022
  scopes: Array.isArray(scopes) ? scopes : [scopes],
20965
- request: request3,
21023
+ request,
20966
21024
  getAccessToken,
20967
21025
  logger: logger4
20968
21026
  });
20969
21027
  let response;
20970
21028
  let error;
20971
21029
  let shouldSendRequest;
20972
- [response, error] = await trySendRequest(request3, next);
21030
+ [response, error] = await trySendRequest(request, next);
20973
21031
  if (isChallengeResponse(response)) {
20974
21032
  let claims = getCaeChallengeClaims(response.headers.get("WWW-Authenticate"));
20975
21033
  if (claims) {
@@ -20983,23 +21041,23 @@ function bearerTokenAuthenticationPolicy(options) {
20983
21041
  shouldSendRequest = await authorizeRequestOnCaeChallenge({
20984
21042
  scopes: Array.isArray(scopes) ? scopes : [scopes],
20985
21043
  response,
20986
- request: request3,
21044
+ request,
20987
21045
  getAccessToken,
20988
21046
  logger: logger4
20989
21047
  }, parsedClaim);
20990
21048
  if (shouldSendRequest) {
20991
- [response, error] = await trySendRequest(request3, next);
21049
+ [response, error] = await trySendRequest(request, next);
20992
21050
  }
20993
21051
  } else if (callbacks.authorizeRequestOnChallenge) {
20994
21052
  shouldSendRequest = await callbacks.authorizeRequestOnChallenge({
20995
21053
  scopes: Array.isArray(scopes) ? scopes : [scopes],
20996
- request: request3,
21054
+ request,
20997
21055
  response,
20998
21056
  getAccessToken,
20999
21057
  logger: logger4
21000
21058
  });
21001
21059
  if (shouldSendRequest) {
21002
- [response, error] = await trySendRequest(request3, next);
21060
+ [response, error] = await trySendRequest(request, next);
21003
21061
  }
21004
21062
  if (isChallengeResponse(response)) {
21005
21063
  claims = getCaeChallengeClaims(response.headers.get("WWW-Authenticate"));
@@ -21014,12 +21072,12 @@ function bearerTokenAuthenticationPolicy(options) {
21014
21072
  shouldSendRequest = await authorizeRequestOnCaeChallenge({
21015
21073
  scopes: Array.isArray(scopes) ? scopes : [scopes],
21016
21074
  response,
21017
- request: request3,
21075
+ request,
21018
21076
  getAccessToken,
21019
21077
  logger: logger4
21020
21078
  }, parsedClaim);
21021
21079
  if (shouldSendRequest) {
21022
- [response, error] = await trySendRequest(request3, next);
21080
+ [response, error] = await trySendRequest(request, next);
21023
21081
  }
21024
21082
  }
21025
21083
  }
@@ -21053,12 +21111,12 @@ function parseChallenges(challenges) {
21053
21111
  }
21054
21112
  __name(parseChallenges, "parseChallenges");
21055
21113
  function getCaeChallengeClaims(challenges) {
21056
- var _a3;
21114
+ var _a4;
21057
21115
  if (!challenges) {
21058
21116
  return;
21059
21117
  }
21060
21118
  const parsedChallenges = parseChallenges(challenges);
21061
- return (_a3 = parsedChallenges.find((x) => x.scheme === "Bearer" && x.params.claims && x.params.error === "insufficient_claims")) === null || _a3 === void 0 ? void 0 : _a3.params.claims;
21119
+ return (_a4 = parsedChallenges.find((x) => x.scheme === "Bearer" && x.params.claims && x.params.error === "insufficient_claims")) == null ? void 0 : _a4.params.claims;
21062
21120
  }
21063
21121
  __name(getCaeChallengeClaims, "getCaeChallengeClaims");
21064
21122
 
@@ -21108,7 +21166,7 @@ var KnownContextTagKeys;
21108
21166
  KnownContextTagKeys2["AiInternalNodeName"] = "ai.internal.nodeName";
21109
21167
  })(KnownContextTagKeys || (KnownContextTagKeys = {}));
21110
21168
 
21111
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/base64.js
21169
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/base64.js
21112
21170
  function encodeByteArray(value) {
21113
21171
  const bufferValue = value instanceof Buffer ? value : Buffer.from(value.buffer);
21114
21172
  return bufferValue.toString("base64");
@@ -21119,13 +21177,13 @@ function decodeString(value) {
21119
21177
  }
21120
21178
  __name(decodeString, "decodeString");
21121
21179
 
21122
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/interfaces.js
21180
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/interfaces.js
21123
21181
  var XML_ATTRKEY = "$";
21124
21182
  var XML_CHARKEY = "_";
21125
21183
 
21126
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/utils.js
21184
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/utils.js
21127
21185
  function isPrimitiveBody(value, mapperTypeName) {
21128
- return mapperTypeName !== "Composite" && mapperTypeName !== "Dictionary" && (typeof value === "string" || typeof value === "number" || typeof value === "boolean" || (mapperTypeName === null || mapperTypeName === void 0 ? void 0 : mapperTypeName.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)) !== null || value === void 0 || value === null);
21186
+ return mapperTypeName !== "Composite" && mapperTypeName !== "Dictionary" && (typeof value === "string" || typeof value === "number" || typeof value === "boolean" || (mapperTypeName == null ? void 0 : mapperTypeName.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)) !== null || value === void 0 || value === null);
21129
21187
  }
21130
21188
  __name(isPrimitiveBody, "isPrimitiveBody");
21131
21189
  var validateISODuration = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
@@ -21139,33 +21197,46 @@ function isValidUuid(uuid) {
21139
21197
  }
21140
21198
  __name(isValidUuid, "isValidUuid");
21141
21199
  function handleNullableResponseAndWrappableBody(responseObject) {
21142
- const combinedHeadersAndBody = Object.assign(Object.assign({}, responseObject.headers), responseObject.body);
21200
+ const combinedHeadersAndBody = {
21201
+ ...responseObject.headers,
21202
+ ...responseObject.body
21203
+ };
21143
21204
  if (responseObject.hasNullableType && Object.getOwnPropertyNames(combinedHeadersAndBody).length === 0) {
21144
21205
  return responseObject.shouldWrapBody ? { body: null } : null;
21145
21206
  } else {
21146
- return responseObject.shouldWrapBody ? Object.assign(Object.assign({}, responseObject.headers), { body: responseObject.body }) : combinedHeadersAndBody;
21207
+ return responseObject.shouldWrapBody ? {
21208
+ ...responseObject.headers,
21209
+ body: responseObject.body
21210
+ } : combinedHeadersAndBody;
21147
21211
  }
21148
21212
  }
21149
21213
  __name(handleNullableResponseAndWrappableBody, "handleNullableResponseAndWrappableBody");
21150
21214
  function flattenResponse(fullResponse, responseSpec) {
21151
- var _a3, _b2;
21215
+ var _a4;
21152
21216
  const parsedHeaders = fullResponse.parsedHeaders;
21153
21217
  if (fullResponse.request.method === "HEAD") {
21154
- return Object.assign(Object.assign({}, parsedHeaders), { body: fullResponse.parsedBody });
21218
+ return {
21219
+ ...parsedHeaders,
21220
+ body: fullResponse.parsedBody
21221
+ };
21155
21222
  }
21156
21223
  const bodyMapper = responseSpec && responseSpec.bodyMapper;
21157
- const isNullable = Boolean(bodyMapper === null || bodyMapper === void 0 ? void 0 : bodyMapper.nullable);
21158
- const expectedBodyTypeName = bodyMapper === null || bodyMapper === void 0 ? void 0 : bodyMapper.type.name;
21224
+ const isNullable = Boolean(bodyMapper == null ? void 0 : bodyMapper.nullable);
21225
+ const expectedBodyTypeName = bodyMapper == null ? void 0 : bodyMapper.type.name;
21159
21226
  if (expectedBodyTypeName === "Stream") {
21160
- return Object.assign(Object.assign({}, parsedHeaders), { blobBody: fullResponse.blobBody, readableStreamBody: fullResponse.readableStreamBody });
21227
+ return {
21228
+ ...parsedHeaders,
21229
+ blobBody: fullResponse.blobBody,
21230
+ readableStreamBody: fullResponse.readableStreamBody
21231
+ };
21161
21232
  }
21162
21233
  const modelProperties = expectedBodyTypeName === "Composite" && bodyMapper.type.modelProperties || {};
21163
21234
  const isPageableResponse = Object.keys(modelProperties).some((k) => modelProperties[k].serializedName === "");
21164
21235
  if (expectedBodyTypeName === "Sequence" || isPageableResponse) {
21165
- const arrayResponse = (_a3 = fullResponse.parsedBody) !== null && _a3 !== void 0 ? _a3 : [];
21236
+ const arrayResponse = fullResponse.parsedBody ?? [];
21166
21237
  for (const key of Object.keys(modelProperties)) {
21167
21238
  if (modelProperties[key].serializedName) {
21168
- arrayResponse[key] = (_b2 = fullResponse.parsedBody) === null || _b2 === void 0 ? void 0 : _b2[key];
21239
+ arrayResponse[key] = (_a4 = fullResponse.parsedBody) == null ? void 0 : _a4[key];
21169
21240
  }
21170
21241
  }
21171
21242
  if (parsedHeaders) {
@@ -21184,8 +21255,10 @@ function flattenResponse(fullResponse, responseSpec) {
21184
21255
  }
21185
21256
  __name(flattenResponse, "flattenResponse");
21186
21257
 
21187
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/serializer.js
21258
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/serializer.js
21188
21259
  var _SerializerImpl = class _SerializerImpl {
21260
+ modelMappers;
21261
+ isXML;
21189
21262
  constructor(modelMappers = {}, isXML = false) {
21190
21263
  this.modelMappers = modelMappers;
21191
21264
  this.isXML = isXML;
@@ -21251,12 +21324,11 @@ var _SerializerImpl = class _SerializerImpl {
21251
21324
  * @returns A valid serialized Javascript object
21252
21325
  */
21253
21326
  serialize(mapper, object, objectName, options = { xml: {} }) {
21254
- var _a3, _b2, _c2;
21255
21327
  const updatedOptions = {
21256
21328
  xml: {
21257
- rootName: (_a3 = options.xml.rootName) !== null && _a3 !== void 0 ? _a3 : "",
21258
- includeRoot: (_b2 = options.xml.includeRoot) !== null && _b2 !== void 0 ? _b2 : false,
21259
- xmlCharKey: (_c2 = options.xml.xmlCharKey) !== null && _c2 !== void 0 ? _c2 : XML_CHARKEY
21329
+ rootName: options.xml.rootName ?? "",
21330
+ includeRoot: options.xml.includeRoot ?? false,
21331
+ xmlCharKey: options.xml.xmlCharKey ?? XML_CHARKEY
21260
21332
  }
21261
21333
  };
21262
21334
  let payload = {};
@@ -21320,14 +21392,13 @@ var _SerializerImpl = class _SerializerImpl {
21320
21392
  * @returns A valid deserialized Javascript object
21321
21393
  */
21322
21394
  deserialize(mapper, responseBody, objectName, options = { xml: {} }) {
21323
- var _a3, _b2, _c2, _d2;
21324
21395
  const updatedOptions = {
21325
21396
  xml: {
21326
- rootName: (_a3 = options.xml.rootName) !== null && _a3 !== void 0 ? _a3 : "",
21327
- includeRoot: (_b2 = options.xml.includeRoot) !== null && _b2 !== void 0 ? _b2 : false,
21328
- xmlCharKey: (_c2 = options.xml.xmlCharKey) !== null && _c2 !== void 0 ? _c2 : XML_CHARKEY
21397
+ rootName: options.xml.rootName ?? "",
21398
+ includeRoot: options.xml.includeRoot ?? false,
21399
+ xmlCharKey: options.xml.xmlCharKey ?? XML_CHARKEY
21329
21400
  },
21330
- ignoreUnknownProperties: (_d2 = options.ignoreUnknownProperties) !== null && _d2 !== void 0 ? _d2 : false
21401
+ ignoreUnknownProperties: options.ignoreUnknownProperties ?? false
21331
21402
  };
21332
21403
  if (responseBody === void 0 || responseBody === null) {
21333
21404
  if (this.isXML && mapper.type.name === "Sequence" && !mapper.xmlIsWrapped) {
@@ -21557,7 +21628,6 @@ function serializeDateTypes(typeName, value, objectName) {
21557
21628
  }
21558
21629
  __name(serializeDateTypes, "serializeDateTypes");
21559
21630
  function serializeSequenceType(serializer2, mapper, object, objectName, isXml, options) {
21560
- var _a3;
21561
21631
  if (!Array.isArray(object)) {
21562
21632
  throw new Error(`${objectName} must be of type Array.`);
21563
21633
  }
@@ -21566,7 +21636,7 @@ function serializeSequenceType(serializer2, mapper, object, objectName, isXml, o
21566
21636
  throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${objectName}.`);
21567
21637
  }
21568
21638
  if (elementType.type.name === "Composite" && elementType.type.className) {
21569
- elementType = (_a3 = serializer2.modelMappers[elementType.type.className]) !== null && _a3 !== void 0 ? _a3 : elementType;
21639
+ elementType = serializer2.modelMappers[elementType.type.className] ?? elementType;
21570
21640
  }
21571
21641
  const tempArray = [];
21572
21642
  for (let i = 0; i < object.length; i++) {
@@ -21574,7 +21644,7 @@ function serializeSequenceType(serializer2, mapper, object, objectName, isXml, o
21574
21644
  if (isXml && elementType.xmlNamespace) {
21575
21645
  const xmlnsKey = elementType.xmlNamespacePrefix ? `xmlns:${elementType.xmlNamespacePrefix}` : "xmlns";
21576
21646
  if (elementType.type.name === "Composite") {
21577
- tempArray[i] = Object.assign({}, serializedValue);
21647
+ tempArray[i] = { ...serializedValue };
21578
21648
  tempArray[i][XML_ATTRKEY] = { [xmlnsKey]: elementType.xmlNamespace };
21579
21649
  } else {
21580
21650
  tempArray[i] = {};
@@ -21614,7 +21684,7 @@ function resolveAdditionalProperties(serializer2, mapper, objectName) {
21614
21684
  const additionalProperties = mapper.type.additionalProperties;
21615
21685
  if (!additionalProperties && mapper.type.className) {
21616
21686
  const modelMapper = resolveReferencedMapper(serializer2, mapper, objectName);
21617
- return modelMapper === null || modelMapper === void 0 ? void 0 : modelMapper.type.additionalProperties;
21687
+ return modelMapper == null ? void 0 : modelMapper.type.additionalProperties;
21618
21688
  }
21619
21689
  return additionalProperties;
21620
21690
  }
@@ -21634,7 +21704,7 @@ function resolveModelProperties(serializer2, mapper, objectName) {
21634
21704
  if (!modelMapper) {
21635
21705
  throw new Error(`mapper() cannot be null or undefined for model "${mapper.type.className}".`);
21636
21706
  }
21637
- modelProps = modelMapper === null || modelMapper === void 0 ? void 0 : modelMapper.type.modelProperties;
21707
+ modelProps = modelMapper == null ? void 0 : modelMapper.type.modelProperties;
21638
21708
  if (!modelProps) {
21639
21709
  throw new Error(`modelProperties cannot be null or undefined in the mapper "${JSON.stringify(modelMapper)}" of type "${mapper.type.className}" for object "${objectName}".`);
21640
21710
  }
@@ -21676,7 +21746,10 @@ function serializeCompositeType(serializer2, mapper, object, objectName, isXml,
21676
21746
  if (parentObject !== void 0 && parentObject !== null) {
21677
21747
  if (isXml && mapper.xmlNamespace) {
21678
21748
  const xmlnsKey = mapper.xmlNamespacePrefix ? `xmlns:${mapper.xmlNamespacePrefix}` : "xmlns";
21679
- parentObject[XML_ATTRKEY] = Object.assign(Object.assign({}, parentObject[XML_ATTRKEY]), { [xmlnsKey]: mapper.xmlNamespace });
21749
+ parentObject[XML_ATTRKEY] = {
21750
+ ...parentObject[XML_ATTRKEY],
21751
+ [xmlnsKey]: mapper.xmlNamespace
21752
+ };
21680
21753
  }
21681
21754
  const propertyObjectName = propertyMapper.serializedName !== "" ? objectName + "." + propertyMapper.serializedName : objectName;
21682
21755
  let toSerialize = object[key];
@@ -21723,7 +21796,7 @@ function getXmlObjectValue(propertyMapper, serializedValue, isXml, options) {
21723
21796
  if (serializedValue[XML_ATTRKEY]) {
21724
21797
  return serializedValue;
21725
21798
  } else {
21726
- const result2 = Object.assign({}, serializedValue);
21799
+ const result2 = { ...serializedValue };
21727
21800
  result2[XML_ATTRKEY] = xmlNamespace;
21728
21801
  return result2;
21729
21802
  }
@@ -21739,8 +21812,7 @@ function isSpecialXmlProperty(propertyName, options) {
21739
21812
  }
21740
21813
  __name(isSpecialXmlProperty, "isSpecialXmlProperty");
21741
21814
  function deserializeCompositeType(serializer2, mapper, responseBody, objectName, options) {
21742
- var _a3, _b2;
21743
- const xmlCharKey = (_a3 = options.xml.xmlCharKey) !== null && _a3 !== void 0 ? _a3 : XML_CHARKEY;
21815
+ const xmlCharKey = options.xml.xmlCharKey ?? XML_CHARKEY;
21744
21816
  if (getPolymorphicDiscriminatorRecursively(serializer2, mapper)) {
21745
21817
  mapper = getPolymorphicMapper(serializer2, mapper, responseBody, "serializedName");
21746
21818
  }
@@ -21779,7 +21851,7 @@ function deserializeCompositeType(serializer2, mapper, responseBody, objectName,
21779
21851
  const propertyName = xmlElementName || xmlName || serializedName;
21780
21852
  if (propertyMapper.xmlIsWrapped) {
21781
21853
  const wrapped = responseBody[xmlName];
21782
- const elementList = (_b2 = wrapped === null || wrapped === void 0 ? void 0 : wrapped[xmlElementName]) !== null && _b2 !== void 0 ? _b2 : [];
21854
+ const elementList = (wrapped == null ? void 0 : wrapped[xmlElementName]) ?? [];
21783
21855
  instance3[key] = serializer2.deserialize(propertyMapper, elementList, propertyObjectName, options);
21784
21856
  handledPropertyNames.push(xmlName);
21785
21857
  } else {
@@ -21864,7 +21936,6 @@ function deserializeDictionaryType(serializer2, mapper, responseBody, objectName
21864
21936
  }
21865
21937
  __name(deserializeDictionaryType, "deserializeDictionaryType");
21866
21938
  function deserializeSequenceType(serializer2, mapper, responseBody, objectName, options) {
21867
- var _a3;
21868
21939
  let element = mapper.type.element;
21869
21940
  if (!element || typeof element !== "object") {
21870
21941
  throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${objectName}`);
@@ -21874,7 +21945,7 @@ function deserializeSequenceType(serializer2, mapper, responseBody, objectName,
21874
21945
  responseBody = [responseBody];
21875
21946
  }
21876
21947
  if (element.type.name === "Composite" && element.type.className) {
21877
- element = (_a3 = serializer2.modelMappers[element.type.className]) !== null && _a3 !== void 0 ? _a3 : element;
21948
+ element = serializer2.modelMappers[element.type.className] ?? element;
21878
21949
  }
21879
21950
  const tempArray = [];
21880
21951
  for (let i = 0; i < responseBody.length; i++) {
@@ -21904,7 +21975,6 @@ function getIndexDiscriminator(discriminators, discriminatorValue, typeName) {
21904
21975
  }
21905
21976
  __name(getIndexDiscriminator, "getIndexDiscriminator");
21906
21977
  function getPolymorphicMapper(serializer2, mapper, object, polymorphicPropertyName) {
21907
- var _a3;
21908
21978
  const polymorphicDiscriminator = getPolymorphicDiscriminatorRecursively(serializer2, mapper);
21909
21979
  if (polymorphicDiscriminator) {
21910
21980
  let discriminatorName = polymorphicDiscriminator[polymorphicPropertyName];
@@ -21913,7 +21983,7 @@ function getPolymorphicMapper(serializer2, mapper, object, polymorphicPropertyNa
21913
21983
  discriminatorName = discriminatorName.replace(/\\/gi, "");
21914
21984
  }
21915
21985
  const discriminatorValue = object[discriminatorName];
21916
- const typeName = (_a3 = mapper.type.uberParent) !== null && _a3 !== void 0 ? _a3 : mapper.type.className;
21986
+ const typeName = mapper.type.uberParent ?? mapper.type.className;
21917
21987
  if (typeof discriminatorValue === "string" && typeName) {
21918
21988
  const polymorphicMapper = getIndexDiscriminator(serializer2.modelMappers.discriminators, discriminatorValue, typeName);
21919
21989
  if (polymorphicMapper) {
@@ -21952,11 +22022,11 @@ var MapperTypeNames = {
21952
22022
  UnixTime: "UnixTime"
21953
22023
  };
21954
22024
 
21955
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/state.js
22025
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/state.js
21956
22026
  var import_state3 = __toESM(require_state2(), 1);
21957
22027
  var state2 = import_state3.state;
21958
22028
 
21959
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/operationHelpers.js
22029
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/operationHelpers.js
21960
22030
  function getOperationArgumentValueFromParameter(operationArguments, parameter, fallbackObject) {
21961
22031
  let parameterPath = parameter.parameterPath;
21962
22032
  const parameterMapper = parameter.mapper;
@@ -22021,44 +22091,44 @@ function getPropertyFromParameterPath(parent, parameterPath) {
22021
22091
  }
22022
22092
  __name(getPropertyFromParameterPath, "getPropertyFromParameterPath");
22023
22093
  var originalRequestSymbol = Symbol.for("@azure/core-client original request");
22024
- function hasOriginalRequest(request3) {
22025
- return originalRequestSymbol in request3;
22094
+ function hasOriginalRequest(request) {
22095
+ return originalRequestSymbol in request;
22026
22096
  }
22027
22097
  __name(hasOriginalRequest, "hasOriginalRequest");
22028
- function getOperationRequestInfo(request3) {
22029
- if (hasOriginalRequest(request3)) {
22030
- return getOperationRequestInfo(request3[originalRequestSymbol]);
22098
+ function getOperationRequestInfo(request) {
22099
+ if (hasOriginalRequest(request)) {
22100
+ return getOperationRequestInfo(request[originalRequestSymbol]);
22031
22101
  }
22032
- let info = state2.operationRequestMap.get(request3);
22102
+ let info = state2.operationRequestMap.get(request);
22033
22103
  if (!info) {
22034
22104
  info = {};
22035
- state2.operationRequestMap.set(request3, info);
22105
+ state2.operationRequestMap.set(request, info);
22036
22106
  }
22037
22107
  return info;
22038
22108
  }
22039
22109
  __name(getOperationRequestInfo, "getOperationRequestInfo");
22040
22110
 
22041
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/deserializationPolicy.js
22111
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/deserializationPolicy.js
22042
22112
  var defaultJsonContentTypes = ["application/json", "text/json"];
22043
22113
  var defaultXmlContentTypes = ["application/xml", "application/atom+xml"];
22044
22114
  var deserializationPolicyName = "deserializationPolicy";
22045
22115
  function deserializationPolicy(options = {}) {
22046
- var _a3, _b2, _c2, _d2, _e, _f, _g;
22047
- const jsonContentTypes = (_b2 = (_a3 = options.expectedContentTypes) === null || _a3 === void 0 ? void 0 : _a3.json) !== null && _b2 !== void 0 ? _b2 : defaultJsonContentTypes;
22048
- const xmlContentTypes = (_d2 = (_c2 = options.expectedContentTypes) === null || _c2 === void 0 ? void 0 : _c2.xml) !== null && _d2 !== void 0 ? _d2 : defaultXmlContentTypes;
22116
+ var _a4, _b2;
22117
+ const jsonContentTypes = ((_a4 = options.expectedContentTypes) == null ? void 0 : _a4.json) ?? defaultJsonContentTypes;
22118
+ const xmlContentTypes = ((_b2 = options.expectedContentTypes) == null ? void 0 : _b2.xml) ?? defaultXmlContentTypes;
22049
22119
  const parseXML = options.parseXML;
22050
22120
  const serializerOptions = options.serializerOptions;
22051
22121
  const updatedOptions = {
22052
22122
  xml: {
22053
- rootName: (_e = serializerOptions === null || serializerOptions === void 0 ? void 0 : serializerOptions.xml.rootName) !== null && _e !== void 0 ? _e : "",
22054
- includeRoot: (_f = serializerOptions === null || serializerOptions === void 0 ? void 0 : serializerOptions.xml.includeRoot) !== null && _f !== void 0 ? _f : false,
22055
- xmlCharKey: (_g = serializerOptions === null || serializerOptions === void 0 ? void 0 : serializerOptions.xml.xmlCharKey) !== null && _g !== void 0 ? _g : XML_CHARKEY
22123
+ rootName: (serializerOptions == null ? void 0 : serializerOptions.xml.rootName) ?? "",
22124
+ includeRoot: (serializerOptions == null ? void 0 : serializerOptions.xml.includeRoot) ?? false,
22125
+ xmlCharKey: (serializerOptions == null ? void 0 : serializerOptions.xml.xmlCharKey) ?? XML_CHARKEY
22056
22126
  }
22057
22127
  };
22058
22128
  return {
22059
22129
  name: deserializationPolicyName,
22060
- async sendRequest(request3, next) {
22061
- const response = await next(request3);
22130
+ async sendRequest(request, next) {
22131
+ const response = await next(request);
22062
22132
  return deserializeResponseBody(jsonContentTypes, xmlContentTypes, response, updatedOptions, parseXML);
22063
22133
  }
22064
22134
  };
@@ -22066,23 +22136,23 @@ function deserializationPolicy(options = {}) {
22066
22136
  __name(deserializationPolicy, "deserializationPolicy");
22067
22137
  function getOperationResponseMap(parsedResponse) {
22068
22138
  let result;
22069
- const request3 = parsedResponse.request;
22070
- const operationInfo = getOperationRequestInfo(request3);
22071
- const operationSpec = operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.operationSpec;
22139
+ const request = parsedResponse.request;
22140
+ const operationInfo = getOperationRequestInfo(request);
22141
+ const operationSpec = operationInfo == null ? void 0 : operationInfo.operationSpec;
22072
22142
  if (operationSpec) {
22073
- if (!(operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.operationResponseGetter)) {
22143
+ if (!(operationInfo == null ? void 0 : operationInfo.operationResponseGetter)) {
22074
22144
  result = operationSpec.responses[parsedResponse.status];
22075
22145
  } else {
22076
- result = operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.operationResponseGetter(operationSpec, parsedResponse);
22146
+ result = operationInfo == null ? void 0 : operationInfo.operationResponseGetter(operationSpec, parsedResponse);
22077
22147
  }
22078
22148
  }
22079
22149
  return result;
22080
22150
  }
22081
22151
  __name(getOperationResponseMap, "getOperationResponseMap");
22082
22152
  function shouldDeserializeResponse(parsedResponse) {
22083
- const request3 = parsedResponse.request;
22084
- const operationInfo = getOperationRequestInfo(request3);
22085
- const shouldDeserialize = operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.shouldDeserialize;
22153
+ const request = parsedResponse.request;
22154
+ const operationInfo = getOperationRequestInfo(request);
22155
+ const shouldDeserialize = operationInfo == null ? void 0 : operationInfo.shouldDeserialize;
22086
22156
  let result;
22087
22157
  if (shouldDeserialize === void 0) {
22088
22158
  result = true;
@@ -22100,7 +22170,7 @@ async function deserializeResponseBody(jsonContentTypes, xmlContentTypes, respon
22100
22170
  return parsedResponse;
22101
22171
  }
22102
22172
  const operationInfo = getOperationRequestInfo(parsedResponse.request);
22103
- const operationSpec = operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.operationSpec;
22173
+ const operationSpec = operationInfo == null ? void 0 : operationInfo.operationSpec;
22104
22174
  if (!operationSpec || !operationSpec.responses) {
22105
22175
  return parsedResponse;
22106
22176
  }
@@ -22143,7 +22213,7 @@ function isOperationSpecEmpty(operationSpec) {
22143
22213
  }
22144
22214
  __name(isOperationSpecEmpty, "isOperationSpecEmpty");
22145
22215
  function handleErrorResponse(parsedResponse, operationSpec, responseSpec, options) {
22146
- var _a3, _b2, _c2, _d2, _e;
22216
+ var _a4, _b2, _c2, _d, _e;
22147
22217
  const isSuccessByStatus = 200 <= parsedResponse.status && parsedResponse.status < 300;
22148
22218
  const isExpectedStatusCode = isOperationSpecEmpty(operationSpec) ? isSuccessByStatus : !!responseSpec;
22149
22219
  if (isExpectedStatusCode) {
@@ -22155,18 +22225,18 @@ function handleErrorResponse(parsedResponse, operationSpec, responseSpec, option
22155
22225
  return { error: null, shouldReturnResponse: false };
22156
22226
  }
22157
22227
  }
22158
- const errorResponseSpec = responseSpec !== null && responseSpec !== void 0 ? responseSpec : operationSpec.responses.default;
22159
- const initialErrorMessage = ((_a3 = parsedResponse.request.streamResponseStatusCodes) === null || _a3 === void 0 ? void 0 : _a3.has(parsedResponse.status)) ? `Unexpected status code: ${parsedResponse.status}` : parsedResponse.bodyAsText;
22228
+ const errorResponseSpec = responseSpec ?? operationSpec.responses.default;
22229
+ const initialErrorMessage = ((_a4 = parsedResponse.request.streamResponseStatusCodes) == null ? void 0 : _a4.has(parsedResponse.status)) ? `Unexpected status code: ${parsedResponse.status}` : parsedResponse.bodyAsText;
22160
22230
  const error = new RestError2(initialErrorMessage, {
22161
22231
  statusCode: parsedResponse.status,
22162
22232
  request: parsedResponse.request,
22163
22233
  response: parsedResponse
22164
22234
  });
22165
- if (!errorResponseSpec && !(((_c2 = (_b2 = parsedResponse.parsedBody) === null || _b2 === void 0 ? void 0 : _b2.error) === null || _c2 === void 0 ? void 0 : _c2.code) && ((_e = (_d2 = parsedResponse.parsedBody) === null || _d2 === void 0 ? void 0 : _d2.error) === null || _e === void 0 ? void 0 : _e.message))) {
22235
+ if (!errorResponseSpec && !(((_c2 = (_b2 = parsedResponse.parsedBody) == null ? void 0 : _b2.error) == null ? void 0 : _c2.code) && ((_e = (_d = parsedResponse.parsedBody) == null ? void 0 : _d.error) == null ? void 0 : _e.message))) {
22166
22236
  throw error;
22167
22237
  }
22168
- const defaultBodyMapper = errorResponseSpec === null || errorResponseSpec === void 0 ? void 0 : errorResponseSpec.bodyMapper;
22169
- const defaultHeadersMapper = errorResponseSpec === null || errorResponseSpec === void 0 ? void 0 : errorResponseSpec.headersMapper;
22238
+ const defaultBodyMapper = errorResponseSpec == null ? void 0 : errorResponseSpec.bodyMapper;
22239
+ const defaultHeadersMapper = errorResponseSpec == null ? void 0 : errorResponseSpec.headersMapper;
22170
22240
  try {
22171
22241
  if (parsedResponse.parsedBody) {
22172
22242
  const parsedBody = parsedResponse.parsedBody;
@@ -22201,8 +22271,8 @@ function handleErrorResponse(parsedResponse, operationSpec, responseSpec, option
22201
22271
  }
22202
22272
  __name(handleErrorResponse, "handleErrorResponse");
22203
22273
  async function parse(jsonContentTypes, xmlContentTypes, operationResponse, opts, parseXML) {
22204
- var _a3;
22205
- if (!((_a3 = operationResponse.request.streamResponseStatusCodes) === null || _a3 === void 0 ? void 0 : _a3.has(operationResponse.status)) && operationResponse.bodyAsText) {
22274
+ var _a4;
22275
+ if (!((_a4 = operationResponse.request.streamResponseStatusCodes) == null ? void 0 : _a4.has(operationResponse.status)) && operationResponse.bodyAsText) {
22206
22276
  const text = operationResponse.bodyAsText;
22207
22277
  const contentType2 = operationResponse.headers.get("Content-Type") || "";
22208
22278
  const contentComponents = !contentType2 ? [] : contentType2.split(";").map((component) => component.toLowerCase());
@@ -22234,7 +22304,7 @@ async function parse(jsonContentTypes, xmlContentTypes, operationResponse, opts,
22234
22304
  }
22235
22305
  __name(parse, "parse");
22236
22306
 
22237
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/interfaceHelpers.js
22307
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/interfaceHelpers.js
22238
22308
  function getStreamingResponseStatusCodes(operationSpec) {
22239
22309
  const result = /* @__PURE__ */ new Set();
22240
22310
  for (const statusCode in operationSpec.responses) {
@@ -22260,27 +22330,27 @@ function getPathStringFromParameter(parameter) {
22260
22330
  }
22261
22331
  __name(getPathStringFromParameter, "getPathStringFromParameter");
22262
22332
 
22263
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/serializationPolicy.js
22333
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/serializationPolicy.js
22264
22334
  var serializationPolicyName = "serializationPolicy";
22265
22335
  function serializationPolicy(options = {}) {
22266
22336
  const stringifyXML = options.stringifyXML;
22267
22337
  return {
22268
22338
  name: serializationPolicyName,
22269
- async sendRequest(request3, next) {
22270
- const operationInfo = getOperationRequestInfo(request3);
22271
- const operationSpec = operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.operationSpec;
22272
- const operationArguments = operationInfo === null || operationInfo === void 0 ? void 0 : operationInfo.operationArguments;
22339
+ async sendRequest(request, next) {
22340
+ const operationInfo = getOperationRequestInfo(request);
22341
+ const operationSpec = operationInfo == null ? void 0 : operationInfo.operationSpec;
22342
+ const operationArguments = operationInfo == null ? void 0 : operationInfo.operationArguments;
22273
22343
  if (operationSpec && operationArguments) {
22274
- serializeHeaders(request3, operationArguments, operationSpec);
22275
- serializeRequestBody(request3, operationArguments, operationSpec, stringifyXML);
22344
+ serializeHeaders(request, operationArguments, operationSpec);
22345
+ serializeRequestBody(request, operationArguments, operationSpec, stringifyXML);
22276
22346
  }
22277
- return next(request3);
22347
+ return next(request);
22278
22348
  }
22279
22349
  };
22280
22350
  }
22281
22351
  __name(serializationPolicy, "serializationPolicy");
22282
- function serializeHeaders(request3, operationArguments, operationSpec) {
22283
- var _a3, _b2;
22352
+ function serializeHeaders(request, operationArguments, operationSpec) {
22353
+ var _a4, _b2;
22284
22354
  if (operationSpec.headerParameters) {
22285
22355
  for (const headerParameter of operationSpec.headerParameters) {
22286
22356
  let headerValue = getOperationArgumentValueFromParameter(operationArguments, headerParameter);
@@ -22289,72 +22359,72 @@ function serializeHeaders(request3, operationArguments, operationSpec) {
22289
22359
  const headerCollectionPrefix = headerParameter.mapper.headerCollectionPrefix;
22290
22360
  if (headerCollectionPrefix) {
22291
22361
  for (const key of Object.keys(headerValue)) {
22292
- request3.headers.set(headerCollectionPrefix + key, headerValue[key]);
22362
+ request.headers.set(headerCollectionPrefix + key, headerValue[key]);
22293
22363
  }
22294
22364
  } else {
22295
- request3.headers.set(headerParameter.mapper.serializedName || getPathStringFromParameter(headerParameter), headerValue);
22365
+ request.headers.set(headerParameter.mapper.serializedName || getPathStringFromParameter(headerParameter), headerValue);
22296
22366
  }
22297
22367
  }
22298
22368
  }
22299
22369
  }
22300
- const customHeaders = (_b2 = (_a3 = operationArguments.options) === null || _a3 === void 0 ? void 0 : _a3.requestOptions) === null || _b2 === void 0 ? void 0 : _b2.customHeaders;
22370
+ const customHeaders = (_b2 = (_a4 = operationArguments.options) == null ? void 0 : _a4.requestOptions) == null ? void 0 : _b2.customHeaders;
22301
22371
  if (customHeaders) {
22302
22372
  for (const customHeaderName of Object.keys(customHeaders)) {
22303
- request3.headers.set(customHeaderName, customHeaders[customHeaderName]);
22373
+ request.headers.set(customHeaderName, customHeaders[customHeaderName]);
22304
22374
  }
22305
22375
  }
22306
22376
  }
22307
22377
  __name(serializeHeaders, "serializeHeaders");
22308
- function serializeRequestBody(request3, operationArguments, operationSpec, stringifyXML = function() {
22378
+ function serializeRequestBody(request, operationArguments, operationSpec, stringifyXML = function() {
22309
22379
  throw new Error("XML serialization unsupported!");
22310
22380
  }) {
22311
- var _a3, _b2, _c2, _d2, _e;
22312
- const serializerOptions = (_a3 = operationArguments.options) === null || _a3 === void 0 ? void 0 : _a3.serializerOptions;
22381
+ var _a4, _b2;
22382
+ const serializerOptions = (_a4 = operationArguments.options) == null ? void 0 : _a4.serializerOptions;
22313
22383
  const updatedOptions = {
22314
22384
  xml: {
22315
- rootName: (_b2 = serializerOptions === null || serializerOptions === void 0 ? void 0 : serializerOptions.xml.rootName) !== null && _b2 !== void 0 ? _b2 : "",
22316
- includeRoot: (_c2 = serializerOptions === null || serializerOptions === void 0 ? void 0 : serializerOptions.xml.includeRoot) !== null && _c2 !== void 0 ? _c2 : false,
22317
- xmlCharKey: (_d2 = serializerOptions === null || serializerOptions === void 0 ? void 0 : serializerOptions.xml.xmlCharKey) !== null && _d2 !== void 0 ? _d2 : XML_CHARKEY
22385
+ rootName: (serializerOptions == null ? void 0 : serializerOptions.xml.rootName) ?? "",
22386
+ includeRoot: (serializerOptions == null ? void 0 : serializerOptions.xml.includeRoot) ?? false,
22387
+ xmlCharKey: (serializerOptions == null ? void 0 : serializerOptions.xml.xmlCharKey) ?? XML_CHARKEY
22318
22388
  }
22319
22389
  };
22320
22390
  const xmlCharKey = updatedOptions.xml.xmlCharKey;
22321
22391
  if (operationSpec.requestBody && operationSpec.requestBody.mapper) {
22322
- request3.body = getOperationArgumentValueFromParameter(operationArguments, operationSpec.requestBody);
22392
+ request.body = getOperationArgumentValueFromParameter(operationArguments, operationSpec.requestBody);
22323
22393
  const bodyMapper = operationSpec.requestBody.mapper;
22324
22394
  const { required, serializedName, xmlName, xmlElementName, xmlNamespace, xmlNamespacePrefix, nullable } = bodyMapper;
22325
22395
  const typeName = bodyMapper.type.name;
22326
22396
  try {
22327
- if (request3.body !== void 0 && request3.body !== null || nullable && request3.body === null || required) {
22397
+ if (request.body !== void 0 && request.body !== null || nullable && request.body === null || required) {
22328
22398
  const requestBodyParameterPathString = getPathStringFromParameter(operationSpec.requestBody);
22329
- request3.body = operationSpec.serializer.serialize(bodyMapper, request3.body, requestBodyParameterPathString, updatedOptions);
22399
+ request.body = operationSpec.serializer.serialize(bodyMapper, request.body, requestBodyParameterPathString, updatedOptions);
22330
22400
  const isStream = typeName === MapperTypeNames.Stream;
22331
22401
  if (operationSpec.isXML) {
22332
22402
  const xmlnsKey = xmlNamespacePrefix ? `xmlns:${xmlNamespacePrefix}` : "xmlns";
22333
- const value = getXmlValueWithNamespace(xmlNamespace, xmlnsKey, typeName, request3.body, updatedOptions);
22403
+ const value = getXmlValueWithNamespace(xmlNamespace, xmlnsKey, typeName, request.body, updatedOptions);
22334
22404
  if (typeName === MapperTypeNames.Sequence) {
22335
- request3.body = stringifyXML(prepareXMLRootList(value, xmlElementName || xmlName || serializedName, xmlnsKey, xmlNamespace), { rootName: xmlName || serializedName, xmlCharKey });
22405
+ request.body = stringifyXML(prepareXMLRootList(value, xmlElementName || xmlName || serializedName, xmlnsKey, xmlNamespace), { rootName: xmlName || serializedName, xmlCharKey });
22336
22406
  } else if (!isStream) {
22337
- request3.body = stringifyXML(value, {
22407
+ request.body = stringifyXML(value, {
22338
22408
  rootName: xmlName || serializedName,
22339
22409
  xmlCharKey
22340
22410
  });
22341
22411
  }
22342
- } else if (typeName === MapperTypeNames.String && (((_e = operationSpec.contentType) === null || _e === void 0 ? void 0 : _e.match("text/plain")) || operationSpec.mediaType === "text")) {
22412
+ } else if (typeName === MapperTypeNames.String && (((_b2 = operationSpec.contentType) == null ? void 0 : _b2.match("text/plain")) || operationSpec.mediaType === "text")) {
22343
22413
  return;
22344
22414
  } else if (!isStream) {
22345
- request3.body = JSON.stringify(request3.body);
22415
+ request.body = JSON.stringify(request.body);
22346
22416
  }
22347
22417
  }
22348
22418
  } catch (error) {
22349
22419
  throw new Error(`Error "${error.message}" occurred in serializing the payload - ${JSON.stringify(serializedName, void 0, " ")}.`);
22350
22420
  }
22351
22421
  } else if (operationSpec.formDataParameters && operationSpec.formDataParameters.length > 0) {
22352
- request3.formData = {};
22422
+ request.formData = {};
22353
22423
  for (const formDataParameter of operationSpec.formDataParameters) {
22354
22424
  const formDataParameterValue = getOperationArgumentValueFromParameter(operationArguments, formDataParameter);
22355
22425
  if (formDataParameterValue !== void 0 && formDataParameterValue !== null) {
22356
22426
  const formDataParameterPropertyName = formDataParameter.mapper.serializedName || getPathStringFromParameter(formDataParameter);
22357
- request3.formData[formDataParameterPropertyName] = operationSpec.serializer.serialize(formDataParameter.mapper, formDataParameterValue, getPathStringFromParameter(formDataParameter), updatedOptions);
22427
+ request.formData[formDataParameterPropertyName] = operationSpec.serializer.serialize(formDataParameter.mapper, formDataParameterValue, getPathStringFromParameter(formDataParameter), updatedOptions);
22358
22428
  }
22359
22429
  }
22360
22430
  }
@@ -22383,9 +22453,9 @@ function prepareXMLRootList(obj, elementName, xmlNamespaceKey, xmlNamespace) {
22383
22453
  }
22384
22454
  __name(prepareXMLRootList, "prepareXMLRootList");
22385
22455
 
22386
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/pipeline.js
22456
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/pipeline.js
22387
22457
  function createClientPipeline(options = {}) {
22388
- const pipeline = createPipelineFromOptions2(options !== null && options !== void 0 ? options : {});
22458
+ const pipeline = createPipelineFromOptions2(options ?? {});
22389
22459
  if (options.credentialOptions) {
22390
22460
  pipeline.addPolicy(bearerTokenAuthenticationPolicy({
22391
22461
  credential: options.credentialOptions.credential,
@@ -22400,7 +22470,7 @@ function createClientPipeline(options = {}) {
22400
22470
  }
22401
22471
  __name(createClientPipeline, "createClientPipeline");
22402
22472
 
22403
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/httpClientCache.js
22473
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/httpClientCache.js
22404
22474
  var cachedHttpClient;
22405
22475
  function getCachedDefaultHttpClient() {
22406
22476
  if (!cachedHttpClient) {
@@ -22410,7 +22480,7 @@ function getCachedDefaultHttpClient() {
22410
22480
  }
22411
22481
  __name(getCachedDefaultHttpClient, "getCachedDefaultHttpClient");
22412
22482
 
22413
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/urlHelpers.js
22483
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/urlHelpers.js
22414
22484
  var CollectionFormatToDelimiterMap = {
22415
22485
  CSV: ",",
22416
22486
  SSV: " ",
@@ -22448,9 +22518,9 @@ function replaceAll(input, replacements) {
22448
22518
  }
22449
22519
  __name(replaceAll, "replaceAll");
22450
22520
  function calculateUrlReplacements(operationSpec, operationArguments, fallbackObject) {
22451
- var _a3;
22521
+ var _a4;
22452
22522
  const result = /* @__PURE__ */ new Map();
22453
- if ((_a3 = operationSpec.urlParameters) === null || _a3 === void 0 ? void 0 : _a3.length) {
22523
+ if ((_a4 = operationSpec.urlParameters) == null ? void 0 : _a4.length) {
22454
22524
  for (const urlParameter of operationSpec.urlParameters) {
22455
22525
  let urlParameterValue = getOperationArgumentValueFromParameter(operationArguments, urlParameter, fallbackObject);
22456
22526
  const parameterPathString = getPathStringFromParameter(urlParameter);
@@ -22496,10 +22566,10 @@ function appendPath(url2, pathToAppend) {
22496
22566
  }
22497
22567
  __name(appendPath, "appendPath");
22498
22568
  function calculateQueryParameters(operationSpec, operationArguments, fallbackObject) {
22499
- var _a3;
22569
+ var _a4;
22500
22570
  const result = /* @__PURE__ */ new Map();
22501
22571
  const sequenceParams = /* @__PURE__ */ new Set();
22502
- if ((_a3 = operationSpec.queryParameters) === null || _a3 === void 0 ? void 0 : _a3.length) {
22572
+ if ((_a4 = operationSpec.queryParameters) == null ? void 0 : _a4.length) {
22503
22573
  for (const queryParameter of operationSpec.queryParameters) {
22504
22574
  if (queryParameter.mapper.type.name === "Sequence" && queryParameter.mapper.serializedName) {
22505
22575
  sequenceParams.add(queryParameter.mapper.serializedName);
@@ -22612,26 +22682,48 @@ function appendQueryParams(url2, queryParams, sequenceParams, noOverwrite = fals
22612
22682
  }
22613
22683
  __name(appendQueryParams, "appendQueryParams");
22614
22684
 
22615
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/log.js
22685
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/log.js
22616
22686
  var logger3 = createClientLogger2("core-client");
22617
22687
 
22618
- // ../../node_modules/.store/@azure-core-client-npm-1.10.0-0bf9efdeeb/package/dist/esm/serviceClient.js
22688
+ // ../../node_modules/.store/@azure-core-client-npm-1.10.1-c6f6d34e9a/package/dist/esm/serviceClient.js
22619
22689
  var _ServiceClient = class _ServiceClient {
22690
+ /**
22691
+ * If specified, this is the base URI that requests will be made against for this ServiceClient.
22692
+ * If it is not specified, then all OperationSpecs must contain a baseUrl property.
22693
+ */
22694
+ _endpoint;
22695
+ /**
22696
+ * The default request content type for the service.
22697
+ * Used if no requestContentType is present on an OperationSpec.
22698
+ */
22699
+ _requestContentType;
22700
+ /**
22701
+ * Set to true if the request is sent over HTTP instead of HTTPS
22702
+ */
22703
+ _allowInsecureConnection;
22704
+ /**
22705
+ * The HTTP client that will be used to send requests.
22706
+ */
22707
+ _httpClient;
22708
+ /**
22709
+ * The pipeline used by this client to make requests
22710
+ */
22711
+ pipeline;
22620
22712
  /**
22621
22713
  * The ServiceClient constructor
22622
22714
  * @param options - The service client options that govern the behavior of the client.
22623
22715
  */
22624
22716
  constructor(options = {}) {
22625
- var _a3, _b2;
22717
+ var _a4;
22626
22718
  this._requestContentType = options.requestContentType;
22627
- this._endpoint = (_a3 = options.endpoint) !== null && _a3 !== void 0 ? _a3 : options.baseUri;
22719
+ this._endpoint = options.endpoint ?? options.baseUri;
22628
22720
  if (options.baseUri) {
22629
22721
  logger3.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.");
22630
22722
  }
22631
22723
  this._allowInsecureConnection = options.allowInsecureConnection;
22632
22724
  this._httpClient = options.httpClient || getCachedDefaultHttpClient();
22633
22725
  this.pipeline = options.pipeline || createDefaultPipeline2(options);
22634
- if ((_b2 = options.additionalPolicies) === null || _b2 === void 0 ? void 0 : _b2.length) {
22726
+ if ((_a4 = options.additionalPolicies) == null ? void 0 : _a4.length) {
22635
22727
  for (const { policy, position } of options.additionalPolicies) {
22636
22728
  const afterPhase = position === "perRetry" ? "Sign" : void 0;
22637
22729
  this.pipeline.addPolicy(policy, {
@@ -22643,8 +22735,8 @@ var _ServiceClient = class _ServiceClient {
22643
22735
  /**
22644
22736
  * Send the provided httpRequest.
22645
22737
  */
22646
- async sendRequest(request3) {
22647
- return this.pipeline.sendRequest(this._httpClient, request3);
22738
+ async sendRequest(request) {
22739
+ return this.pipeline.sendRequest(this._httpClient, request);
22648
22740
  }
22649
22741
  /**
22650
22742
  * Send an HTTP request that is populated using the provided OperationSpec.
@@ -22658,63 +22750,63 @@ var _ServiceClient = class _ServiceClient {
22658
22750
  throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.");
22659
22751
  }
22660
22752
  const url2 = getRequestUrl(endpoint, operationSpec, operationArguments, this);
22661
- const request3 = createPipelineRequest2({
22753
+ const request = createPipelineRequest2({
22662
22754
  url: url2
22663
22755
  });
22664
- request3.method = operationSpec.httpMethod;
22665
- const operationInfo = getOperationRequestInfo(request3);
22756
+ request.method = operationSpec.httpMethod;
22757
+ const operationInfo = getOperationRequestInfo(request);
22666
22758
  operationInfo.operationSpec = operationSpec;
22667
22759
  operationInfo.operationArguments = operationArguments;
22668
22760
  const contentType2 = operationSpec.contentType || this._requestContentType;
22669
22761
  if (contentType2 && operationSpec.requestBody) {
22670
- request3.headers.set("Content-Type", contentType2);
22762
+ request.headers.set("Content-Type", contentType2);
22671
22763
  }
22672
22764
  const options = operationArguments.options;
22673
22765
  if (options) {
22674
22766
  const requestOptions = options.requestOptions;
22675
22767
  if (requestOptions) {
22676
22768
  if (requestOptions.timeout) {
22677
- request3.timeout = requestOptions.timeout;
22769
+ request.timeout = requestOptions.timeout;
22678
22770
  }
22679
22771
  if (requestOptions.onUploadProgress) {
22680
- request3.onUploadProgress = requestOptions.onUploadProgress;
22772
+ request.onUploadProgress = requestOptions.onUploadProgress;
22681
22773
  }
22682
22774
  if (requestOptions.onDownloadProgress) {
22683
- request3.onDownloadProgress = requestOptions.onDownloadProgress;
22775
+ request.onDownloadProgress = requestOptions.onDownloadProgress;
22684
22776
  }
22685
22777
  if (requestOptions.shouldDeserialize !== void 0) {
22686
22778
  operationInfo.shouldDeserialize = requestOptions.shouldDeserialize;
22687
22779
  }
22688
22780
  if (requestOptions.allowInsecureConnection) {
22689
- request3.allowInsecureConnection = true;
22781
+ request.allowInsecureConnection = true;
22690
22782
  }
22691
22783
  }
22692
22784
  if (options.abortSignal) {
22693
- request3.abortSignal = options.abortSignal;
22785
+ request.abortSignal = options.abortSignal;
22694
22786
  }
22695
22787
  if (options.tracingOptions) {
22696
- request3.tracingOptions = options.tracingOptions;
22788
+ request.tracingOptions = options.tracingOptions;
22697
22789
  }
22698
22790
  }
22699
22791
  if (this._allowInsecureConnection) {
22700
- request3.allowInsecureConnection = true;
22792
+ request.allowInsecureConnection = true;
22701
22793
  }
22702
- if (request3.streamResponseStatusCodes === void 0) {
22703
- request3.streamResponseStatusCodes = getStreamingResponseStatusCodes(operationSpec);
22794
+ if (request.streamResponseStatusCodes === void 0) {
22795
+ request.streamResponseStatusCodes = getStreamingResponseStatusCodes(operationSpec);
22704
22796
  }
22705
22797
  try {
22706
- const rawResponse = await this.sendRequest(request3);
22798
+ const rawResponse = await this.sendRequest(request);
22707
22799
  const flatResponse = flattenResponse(rawResponse, operationSpec.responses[rawResponse.status]);
22708
- if (options === null || options === void 0 ? void 0 : options.onResponse) {
22800
+ if (options == null ? void 0 : options.onResponse) {
22709
22801
  options.onResponse(rawResponse, flatResponse);
22710
22802
  }
22711
22803
  return flatResponse;
22712
22804
  } catch (error) {
22713
- if (typeof error === "object" && (error === null || error === void 0 ? void 0 : error.response)) {
22805
+ if (typeof error === "object" && (error == null ? void 0 : error.response)) {
22714
22806
  const rawResponse = error.response;
22715
22807
  const flatResponse = flattenResponse(rawResponse, operationSpec.responses[error.statusCode] || operationSpec.responses["default"]);
22716
22808
  error.details = flatResponse;
22717
- if (options === null || options === void 0 ? void 0 : options.onResponse) {
22809
+ if (options == null ? void 0 : options.onResponse) {
22718
22810
  options.onResponse(rawResponse, flatResponse, error);
22719
22811
  }
22720
22812
  }
@@ -22727,7 +22819,10 @@ var ServiceClient = _ServiceClient;
22727
22819
  function createDefaultPipeline2(options) {
22728
22820
  const credentialScopes = getCredentialScopes(options);
22729
22821
  const credentialOptions = options.credential && credentialScopes ? { credentialScopes, credential: options.credential } : void 0;
22730
- return createClientPipeline(Object.assign(Object.assign({}, options), { credentialOptions }));
22822
+ return createClientPipeline({
22823
+ ...options,
22824
+ credentialOptions
22825
+ });
22731
22826
  }
22732
22827
  __name(createDefaultPipeline2, "createDefaultPipeline");
22733
22828
  function getCredentialScopes(options) {
@@ -23664,7 +23759,7 @@ var _ApplicationInsightsClient = class _ApplicationInsightsClient extends Servic
23664
23759
  * @param options The parameter options
23665
23760
  */
23666
23761
  constructor(options) {
23667
- var _a3, _b2;
23762
+ var _a4, _b2;
23668
23763
  if (!options) {
23669
23764
  options = {};
23670
23765
  }
@@ -23675,7 +23770,7 @@ var _ApplicationInsightsClient = class _ApplicationInsightsClient extends Servic
23675
23770
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` : `${packageDetails}`;
23676
23771
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
23677
23772
  userAgentPrefix
23678
- }, endpoint: (_b2 = (_a3 = options.endpoint) !== null && _a3 !== void 0 ? _a3 : options.baseUri) !== null && _b2 !== void 0 ? _b2 : "{Host}/v2.1" });
23773
+ }, endpoint: (_b2 = (_a4 = options.endpoint) !== null && _a4 !== void 0 ? _a4 : options.baseUri) !== null && _b2 !== void 0 ? _b2 : "{Host}/v2.1" });
23679
23774
  super(optionsWithDefaults);
23680
23775
  this.host = options.host || "https://dc.services.visualstudio.com";
23681
23776
  }
@@ -23864,8 +23959,8 @@ var _StatsbeatMetrics = class _StatsbeatMetrics {
23864
23959
  method,
23865
23960
  allowInsecureConnection: true
23866
23961
  };
23867
- const request3 = createPipelineRequest2(options);
23868
- await httpClient.sendRequest(request3).then((res) => {
23962
+ const request = createPipelineRequest2(options);
23963
+ await httpClient.sendRequest(request).then((res) => {
23869
23964
  if (res.status === 200) {
23870
23965
  this.vmInfo.isVM = true;
23871
23966
  let virtualMachineData = "";
@@ -24123,7 +24218,7 @@ var _NetworkStatsbeatMetrics = class _NetworkStatsbeatMetrics extends StatsbeatM
24123
24218
  return this.networkStatsbeatMeterProvider.shutdown();
24124
24219
  }
24125
24220
  async initialize() {
24126
- var _a3, _b2;
24221
+ var _a4, _b2;
24127
24222
  try {
24128
24223
  await super.getResourceProvider();
24129
24224
  this.successCountGauge.addCallback(this.successCallback.bind(this));
@@ -24140,7 +24235,7 @@ var _NetworkStatsbeatMetrics = class _NetworkStatsbeatMetrics extends StatsbeatM
24140
24235
  this.exceptionCountGauge
24141
24236
  ]);
24142
24237
  if (!this.disableNonEssentialStatsbeat) {
24143
- (_a3 = this.readFailureGauge) === null || _a3 === void 0 ? void 0 : _a3.addCallback(this.readFailureCallback.bind(this));
24238
+ (_a4 = this.readFailureGauge) === null || _a4 === void 0 ? void 0 : _a4.addCallback(this.readFailureCallback.bind(this));
24144
24239
  (_b2 = this.writeFailureGauge) === null || _b2 === void 0 ? void 0 : _b2.addCallback(this.writeFailureCallback.bind(this));
24145
24240
  }
24146
24241
  this.averageDurationGauge.addCallback(this.durationCallback.bind(this));
@@ -24486,7 +24581,7 @@ var _BaseSender = class _BaseSender {
24486
24581
  * Export envelopes
24487
24582
  */
24488
24583
  async exportEnvelopes(envelopes) {
24489
- var _a3, _b2, _c2, _d2, _e, _f, _g, _h, _j;
24584
+ var _a4, _b2, _c2, _d, _e, _f, _g, _h, _j;
24490
24585
  diag2.info(`Exporting ${envelopes.length} envelope(s)`);
24491
24586
  if (envelopes.length < 1) {
24492
24587
  return { code: import_core3.ExportResultCode.SUCCESS };
@@ -24505,7 +24600,7 @@ var _BaseSender = class _BaseSender {
24505
24600
  }, this.batchSendRetryIntervalMs);
24506
24601
  this.retryTimer.unref();
24507
24602
  }
24508
- (_a3 = this.networkStatsbeatMetrics) === null || _a3 === void 0 ? void 0 : _a3.countSuccess(duration);
24603
+ (_a4 = this.networkStatsbeatMetrics) === null || _a4 === void 0 ? void 0 : _a4.countSuccess(duration);
24509
24604
  return { code: import_core3.ExportResultCode.SUCCESS };
24510
24605
  } else if (statusCode && isRetriable(statusCode)) {
24511
24606
  if (statusCode === 429 || statusCode === 439) {
@@ -24526,7 +24621,7 @@ var _BaseSender = class _BaseSender {
24526
24621
  (_c2 = this.networkStatsbeatMetrics) === null || _c2 === void 0 ? void 0 : _c2.countRetry(statusCode);
24527
24622
  return await this.persist(filteredEnvelopes);
24528
24623
  }
24529
- (_d2 = this.networkStatsbeatMetrics) === null || _d2 === void 0 ? void 0 : _d2.countFailure(duration, statusCode);
24624
+ (_d = this.networkStatsbeatMetrics) === null || _d === void 0 ? void 0 : _d.countFailure(duration, statusCode);
24530
24625
  return {
24531
24626
  code: import_core3.ExportResultCode.FAILED
24532
24627
  };
@@ -24594,7 +24689,7 @@ var _BaseSender = class _BaseSender {
24594
24689
  * Persist envelopes to disk
24595
24690
  */
24596
24691
  async persist(envelopes) {
24597
- var _a3;
24692
+ var _a4;
24598
24693
  try {
24599
24694
  const success = await this.persister.push(envelopes);
24600
24695
  return success ? { code: import_core3.ExportResultCode.SUCCESS } : {
@@ -24602,7 +24697,7 @@ var _BaseSender = class _BaseSender {
24602
24697
  error: new Error("Failed to persist envelope in disk.")
24603
24698
  };
24604
24699
  } catch (ex) {
24605
- (_a3 = this.networkStatsbeatMetrics) === null || _a3 === void 0 ? void 0 : _a3.countWriteFailure();
24700
+ (_a4 = this.networkStatsbeatMetrics) === null || _a4 === void 0 ? void 0 : _a4.countWriteFailure();
24606
24701
  return { code: import_core3.ExportResultCode.FAILED, error: ex };
24607
24702
  }
24608
24703
  }
@@ -24619,21 +24714,21 @@ var _BaseSender = class _BaseSender {
24619
24714
  * Shutdown statsbeat metrics
24620
24715
  */
24621
24716
  shutdownStatsbeat() {
24622
- var _a3, _b2;
24623
- (_a3 = this.networkStatsbeatMetrics) === null || _a3 === void 0 ? void 0 : _a3.shutdown();
24717
+ var _a4, _b2;
24718
+ (_a4 = this.networkStatsbeatMetrics) === null || _a4 === void 0 ? void 0 : _a4.shutdown();
24624
24719
  (_b2 = this.longIntervalStatsbeatMetrics) === null || _b2 === void 0 ? void 0 : _b2.shutdown();
24625
24720
  this.networkStatsbeatMetrics = void 0;
24626
24721
  this.statsbeatFailureCount = 0;
24627
24722
  }
24628
24723
  async sendFirstPersistedFile() {
24629
- var _a3;
24724
+ var _a4;
24630
24725
  try {
24631
24726
  const envelopes = await this.persister.shift();
24632
24727
  if (envelopes) {
24633
24728
  await this.send(envelopes);
24634
24729
  }
24635
24730
  } catch (err) {
24636
- (_a3 = this.networkStatsbeatMetrics) === null || _a3 === void 0 ? void 0 : _a3.countReadFailure();
24731
+ (_a4 = this.networkStatsbeatMetrics) === null || _a4 === void 0 ? void 0 : _a4.countReadFailure();
24637
24732
  diag2.warn(`Failed to fetch persisted file`, err);
24638
24733
  }
24639
24734
  }
@@ -24669,7 +24764,7 @@ var _HttpSender = class _HttpSender extends BaseSender {
24669
24764
  * @internal
24670
24765
  */
24671
24766
  async send(envelopes) {
24672
- var _a3;
24767
+ var _a4;
24673
24768
  const options = {};
24674
24769
  let response;
24675
24770
  function onResponse(rawResponse, flatResponse) {
@@ -24680,7 +24775,7 @@ var _HttpSender = class _HttpSender extends BaseSender {
24680
24775
  }
24681
24776
  __name(onResponse, "onResponse");
24682
24777
  await this.appInsightsClient.track(envelopes, Object.assign(Object.assign({}, options), { onResponse }));
24683
- return { statusCode: response === null || response === void 0 ? void 0 : response.status, result: (_a3 = response === null || response === void 0 ? void 0 : response.bodyAsText) !== null && _a3 !== void 0 ? _a3 : "" };
24778
+ return { statusCode: response === null || response === void 0 ? void 0 : response.status, result: (_a4 = response === null || response === void 0 ? void 0 : response.bodyAsText) !== null && _a4 !== void 0 ? _a4 : "" };
24684
24779
  }
24685
24780
  /**
24686
24781
  * Shutdown sender
@@ -24941,8 +25036,8 @@ function serializeAttribute(value) {
24941
25036
  }
24942
25037
  __name(serializeAttribute, "serializeAttribute");
24943
25038
  function shouldCreateResourceMetric() {
24944
- var _a3;
24945
- return !(((_a3 = process.env[ENV_OPENTELEMETRY_RESOURCE_METRIC_DISABLED]) === null || _a3 === void 0 ? void 0 : _a3.toLowerCase()) === "true");
25039
+ var _a4;
25040
+ return !(((_a4 = process.env[ENV_OPENTELEMETRY_RESOURCE_METRIC_DISABLED]) === null || _a4 === void 0 ? void 0 : _a4.toLowerCase()) === "true");
24946
25041
  }
24947
25042
  __name(shouldCreateResourceMetric, "shouldCreateResourceMetric");
24948
25043
 
@@ -25021,7 +25116,7 @@ function createTagsFromSpan(span) {
25021
25116
  try {
25022
25117
  const url2 = new URL(String(httpUrl));
25023
25118
  tags[KnownContextTagKeys.AiOperationName] = String(`${httpMethod} ${url2.pathname}`).substring(0, MaxPropertyLengths.TEN_BIT);
25024
- } catch (_a3) {
25119
+ } catch (_a4) {
25025
25120
  }
25026
25121
  }
25027
25122
  if (httpClientIp) {
@@ -25069,12 +25164,12 @@ function createPropertiesFromSpan(span) {
25069
25164
  }
25070
25165
  __name(createPropertiesFromSpan, "createPropertiesFromSpan");
25071
25166
  function createDependencyData(span) {
25072
- var _a3;
25167
+ var _a4;
25073
25168
  const remoteDependencyData = {
25074
25169
  name: span.name,
25075
25170
  // Default
25076
25171
  id: `${span.spanContext().spanId}`,
25077
- success: ((_a3 = span.status) === null || _a3 === void 0 ? void 0 : _a3.code) !== SpanStatusCode.ERROR,
25172
+ success: ((_a4 = span.status) === null || _a4 === void 0 ? void 0 : _a4.code) !== SpanStatusCode.ERROR,
25078
25173
  resultCode: "0",
25079
25174
  type: "Dependency",
25080
25175
  duration: msToTimeSpan((0, import_core7.hrTimeToMilliseconds)(span.duration)),
@@ -25274,7 +25369,7 @@ function spanEventsToEnvelopes(span, ikey) {
25274
25369
  const envelopes = [];
25275
25370
  if (span.events) {
25276
25371
  span.events.forEach((event) => {
25277
- var _a3;
25372
+ var _a4;
25278
25373
  let baseType;
25279
25374
  const time = hrTimeToDate(event.time);
25280
25375
  let name = "";
@@ -25282,7 +25377,7 @@ function spanEventsToEnvelopes(span, ikey) {
25282
25377
  const properties = createPropertiesFromSpanAttributes(event.attributes);
25283
25378
  const tags = createTagsFromResource(span.resource);
25284
25379
  tags[KnownContextTagKeys.AiOperationId] = span.spanContext().traceId;
25285
- const spanId = (_a3 = span.spanContext()) === null || _a3 === void 0 ? void 0 : _a3.spanId;
25380
+ const spanId = (_a4 = span.spanContext()) === null || _a4 === void 0 ? void 0 : _a4.spanId;
25286
25381
  if (spanId) {
25287
25382
  tags[KnownContextTagKeys.AiOperationParentId] = spanId;
25288
25383
  }