@sourcegraph/cody-web 0.18.0 → 0.19.0

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.
@@ -17,8 +17,8 @@ var __privateWrapper = (obj, member, setter2, getter) => ({
17
17
  return __privateGet(obj, member, getter);
18
18
  }
19
19
  });
20
- var _a2, _b, _constructing, _max, _maxSize, _dispose, _disposeAfter, _fetchMethod, _size, _calculatedSize, _keyMap, _keyList, _valList, _next, _prev, _head, _tail, _free, _disposed, _sizes, _starts, _ttls, _hasDispose, _hasFetchMethod, _hasDisposeAfter, _LRUCache_instances, initializeTTLTracking_fn, _updateItemAge, _statusTTL, _setItemTTL, _isStale, initializeSizeTracking_fn, _removeItemSize, _addItemSize, _requireSize, indexes_fn, rindexes_fn, isValidIndex_fn, evict_fn, backgroundFetch_fn, isBackgroundFetch_fn, connect_fn, moveToTail_fn, _c, _d, _e, _f, _constructing2, _g, _h, _max2, _maxSize2, _dispose2, _disposeAfter2, _fetchMethod2, _size2, _calculatedSize2, _keyMap2, _keyList2, _valList2, _next2, _prev2, _head2, _tail2, _free2, _disposed2, _sizes2, _starts2, _ttls2, _hasDispose2, _hasFetchMethod2, _hasDisposeAfter2, _LRUCache_instances2, initializeTTLTracking_fn2, _updateItemAge2, _statusTTL2, _setItemTTL2, _isStale2, initializeSizeTracking_fn2, _removeItemSize2, _addItemSize2, _requireSize2, indexes_fn2, rindexes_fn2, isValidIndex_fn2, evict_fn2, backgroundFetch_fn2, isBackgroundFetch_fn2, connect_fn2, moveToTail_fn2, _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
21
- import { aV as Observable, bV as unsubscribe, bW as AsyncSerialScheduler, bX as authStatus, bY as debounceTime, bZ as switchMapReplayOperation, b_ as interval, b$ as map$1, c0 as filter$3, c1 as startWith$1, c2 as switchMap$1, c3 as promiseFactoryToObservable, bj as isError$3, c4 as distinctUntilChanged$1, bJ as firstValueFrom$1, bK as skipPendingOperation, c5 as logDebug$1, c6 as graphqlClient, c7 as isAbortError, c8 as logError$2, c9 as semver, ca as pendingOperation, cb as pick, bt as ModelTag, cc as getModelInfo, bP as CHAT_INPUT_TOKEN_BUDGET, cd as CHAT_OUTPUT_TOKEN_BUDGET, ce as EXTENDED_CHAT_INPUT_TOKEN_BUDGET, cf as EXTENDED_USER_CONTEXT_TOKEN_BUDGET, cg as createSubscriber, ch as fromVSCodeEvent, b0 as isEqual, ci as cenv, bC as isDotCom, cj as currentAuthStatus, ck as isFileURI, w as wrapInActiveSpan, cl as INCLUDE_EVERYTHING_CONTEXT_FILTERS, cm as EXCLUDE_EVERYTHING_CONTEXT_FILTERS, cn as onAbort, co as addCodyClientIdentificationHeaders, cp as addTraceparent, cq as fetch$3, cr as verifyResponseCode, bc as FeatureFlag, cs as combineLatest$1, ct as take$2, cu as clientCapabilities, cv as shareReplay$1, cw as tap$2, cx as featureFlagProvider, cy as getEnterpriseContextWindow, cz as ANSWER_TOKENS, cA as storeLastValue, cB as resolvedConfig, cC as userProductSubscription, bH as firstResultFromOperation, cD as isEnterpriseUser, be as isCodyProUser, p as ps, cE as currentResolvedConfig, bT as PromptString, cF as isCustomModel, cG as recordErrorToSpan, cH as addClientInfoParams, cI as dependentAbortController, al as FILE_CONTEXT_MENTION_PROVIDER, am as SYMBOL_CONTEXT_MENTION_PROVIDER, an as REMOTE_REPOSITORY_PROVIDER_URI, ao as REMOTE_FILE_PROVIDER_URI, ap as REMOTE_DIRECTORY_PROVIDER_URI, aq as WEB_PROVIDER_URI, t as telemetryRecorder, C as ContextItemSource, bo as lodashExports, cJ as truncatePromptString, cK as isS2, cL as GIT_OPENCTX_PROVIDER_URI, bi as cryptoJsExports, bg as CodyIDE, cM as openCtx, aM as URI, cN as MulticastSubject, cO as AsyncSerialScheduler_1, g as getDefaultExportFromCjs, cP as Utils$1, cQ as toString_1, cR as upperFirst_1, cS as _, cT as extensionForLanguage, cU as setClientNameVersion, cV as base64Js, bf as commonjsGlobal, cW as _baseAssignValue, cX as eq_1, cY as isArrayLike_1, cZ as isObjectLike_1, c_ as _copyObject, c$ as keysIn_1, d0 as _cloneBufferExports, d1 as _cloneTypedArray, d2 as _copyArray, d3 as _initCloneObject, d4 as isArguments_1, d5 as isArray_1, d6 as isBufferExports, d7 as isFunction_1, d8 as isObject_1, d9 as isPlainObject_1, da as isTypedArray_1, db as _Stack, dc as identity_1, dd as _overRest, de as _setToString, df as _isIndex, b8 as isSourcegraphToken, dg as setExtensionVersion, dh as withLatestFrom, di as NEVER, dj as abortableOperation, dk as disposableSubscription, dl as setAuthStatusObservable, dm as DOTCOM_URL, dn as normalizeServerEndpointURL, dp as SourcegraphGraphQLAPIClient, dq as isNetworkLikeError, dr as getAuthErrorMessage, ds as SUPPORTED_URI_SCHEMAS, dt as _baseIsEqual, du as keys_1, dv as _baseGet, dw as _castPath, dx as isLength_1, dy as _toKey, dz as _isKey, dA as toNumber_1, dB as _baseFindIndex, dC as require$$0$2, dD as NetworkError, dE as isRateLimitError, dF as isAuthError, d as dedent$1, dG as convertGitCloneURLToCodebaseName, bm as isDefined, dH as pluck, dI as TokenCounterUtils, dJ as toRangeData, dK as DefaultChatCommands, dL as pathFunctionsForURI, dM as uriParseNameAndExtension, dN as uriDirname, dO as uriExtname, dP as uriBasename, dQ as DefaultEditCommands, dR as subscriptionDisposable, dS as NoOpTelemetryRecorderProvider, dT as TimestampTelemetryProcessor_1, dU as updateGlobalTelemetryInstances, dV as TelemetryRecorderProvider, dW as telemetryRecorderProvider, dX as createGitDiff, dY as catchError$1, dZ as omit$1, d_ as displayPathWithoutWorkspaceFolderPrefix, d$ as getEditorInsertSpaces, e0 as escapeRegExp$1, e1 as isNetworkError, bA as isCodyProModel, e2 as http, bh as CodyTaskState, aW as createExtensionAPI, aX as createMessageAPIForWebview, e3 as getAugmentedNamespace, e4 as main$1, e5 as firstNonPendingAuthStatus, e6 as TESTING_TELEMETRY_EXPORTER, e7 as dist, e8 as checkIfEnterpriseUser, e9 as currentAuthStatusAuthed, ea as waitUntilComplete, bG as isMacOS, by as CustomCommandType, bU as setDisplayPathEnvInfo, eb as isWindows, ec as currentAuthStatusOrNotReadyYet, ed as currentUserProductSubscription, bD as ACCOUNT_USAGE_URL, aY as debounce$1, ar as displayPath, ee as structuredPatch, ef as isDotComAuthed, eg as dedupeWith$1, eh as AbortError$1, ei as TimeoutError, ej as createDisposables, ek as getClientInfoQueryParams, el as tracer, em as getClientIdentificationHeaders, en as logResponseHeadersToSpan, eo as getActiveTraceAndSpanId, ep as TracedError, eq as isNodeResponse, bb as SpanStatusCode, bk as RateLimitError$1, er as getEditorTabSize$1, au as displayPathBasename, es as debounce_1, bS as isErrorLike, et as mentionProvidersMetadata, eu as editorStateFromPromptString, ev as assertFileURI, ew as setOpenCtx, ex as createCodeSearchProvider, bq as CODE_SEARCH_PROVIDER_URI, ey as _baseGetTag, ez as truncateTextNearestLine, eA as MAX_BYTES_PER_FILE, eB as expandToLineRange, as as displayLineRange, aS as parseMentionQuery, eC as TokenCounter, eD as PromptMode, eE as skip$1, ba as context$1, eF as extractContextFromTraceparent, eG as getTokenCounterUtils, eH as inputTextWithoutContextChipsFromPromptEditorState, bM as inputTextWithMappedContextChipsFromPromptEditorState, bs as isAbortErrorOrSocketHangUp, eI as isContextWindowLimitError, b6 as forceHydration, br as reformatBotMessageForChat, b7 as hydrateAfterPostMessage, eJ as addMessageListenersForExtensionAPI, eK as createMessageAPIForExtension, bz as View, eL as CODY_BLOG_URL_o1_WAITLIST, eM as CODY_PASSTHROUGH_VSCODE_OPEN_COMMAND_ID, bx as pluralize, bE as ACCOUNT_UPGRADE_URL, b1 as scanForMentionTriggerInUserTextInput, aw as LARGE_FILE_WARNING_LABEL, eN as GENERAL_HELP_LABEL, eO as diffLines, eP as psDedent, eQ as languageFromFilename, eR as ProgrammingLanguage, eS as truncatePromptStringStart, eT as MAX_CURRENT_FILE_TOKENS, eU as posixFilePaths, eV as SURROUNDING_LINES, eW as CODY_SUPPORT_URL, eX as CODY_DOC_URL, bl as CODY_FEEDBACK_URL, eY as DISCORD_URL, bF as getRelativeChatPeriod, eZ as globalAgentRef, e_ as VSCODE_CHANGELOG_URL, e$ as SG_CHANGELOG_URL, f0 as ACCOUNT_LIMITS_INFO_URL, f1 as assertUnreachable, f2 as promise, f3 as setLogger, f4 as setClientCapabilities, f5 as setResolvedConfigurationObservable, f6 as CODY_OLLAMA_DOCS_URL, bR as browser$3 } from "./browser-CSavJDeQ.mjs";
20
+ var _a2, _b, _constructing, _max, _maxSize, _dispose, _disposeAfter, _fetchMethod, _size, _calculatedSize, _keyMap, _keyList, _valList, _next, _prev, _head, _tail, _free, _disposed, _sizes, _starts, _ttls, _hasDispose, _hasFetchMethod, _hasDisposeAfter, _LRUCache_instances, initializeTTLTracking_fn, _updateItemAge, _statusTTL, _setItemTTL, _isStale, initializeSizeTracking_fn, _removeItemSize, _addItemSize, _requireSize, indexes_fn, rindexes_fn, isValidIndex_fn, evict_fn, backgroundFetch_fn, isBackgroundFetch_fn, connect_fn, moveToTail_fn, _c, _d, _e, _f, _g, _h, _constructing2, _i, _j, _max2, _maxSize2, _dispose2, _disposeAfter2, _fetchMethod2, _size2, _calculatedSize2, _keyMap2, _keyList2, _valList2, _next2, _prev2, _head2, _tail2, _free2, _disposed2, _sizes2, _starts2, _ttls2, _hasDispose2, _hasFetchMethod2, _hasDisposeAfter2, _LRUCache_instances2, initializeTTLTracking_fn2, _updateItemAge2, _statusTTL2, _setItemTTL2, _isStale2, initializeSizeTracking_fn2, _removeItemSize2, _addItemSize2, _requireSize2, indexes_fn2, rindexes_fn2, isValidIndex_fn2, evict_fn2, backgroundFetch_fn2, isBackgroundFetch_fn2, connect_fn2, moveToTail_fn2, _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
21
+ import { aY as Observable, b_ as unsubscribe, b$ as AsyncSerialScheduler, c0 as authStatus, c1 as debounceTime, c2 as switchMapReplayOperation, c3 as interval, c4 as map$1, c5 as filter$3, c6 as startWith$1, c7 as switchMap$1, c8 as promiseFactoryToObservable, bm as isError$3, c9 as distinctUntilChanged$1, bM as firstValueFrom$1, bN as skipPendingOperation, ca as logDebug$1, cb as graphqlClient, cc as isAbortError, cd as logError$2, ce as semver, cf as pendingOperation, cg as pick, bw as ModelTag, ch as getModelInfo, bS as CHAT_INPUT_TOKEN_BUDGET, ci as CHAT_OUTPUT_TOKEN_BUDGET, cj as EXTENDED_CHAT_INPUT_TOKEN_BUDGET, ck as EXTENDED_USER_CONTEXT_TOKEN_BUDGET, cl as createSubscriber, cm as fromVSCodeEvent, b3 as isEqual, cn as cenv, bF as isDotCom, co as currentAuthStatus, cp as isFileURI, w as wrapInActiveSpan, cq as INCLUDE_EVERYTHING_CONTEXT_FILTERS, cr as EXCLUDE_EVERYTHING_CONTEXT_FILTERS, cs as onAbort, ct as addCodyClientIdentificationHeaders, cu as addTraceparent, cv as fetch$3, cw as verifyResponseCode, bf as FeatureFlag, cx as combineLatest$1, cy as take$2, cz as clientCapabilities, cA as shareReplay$1, cB as tap$2, cC as featureFlagProvider, cD as getEnterpriseContextWindow, cE as ANSWER_TOKENS, cF as storeLastValue, cG as resolvedConfig, cH as userProductSubscription, bK as firstResultFromOperation, cI as isEnterpriseUser, bh as isCodyProUser, p as ps, cJ as currentResolvedConfig, bY as PromptString, cK as isCustomModel, cL as recordErrorToSpan, cM as addClientInfoParams, cN as dependentAbortController, am as FILE_CONTEXT_MENTION_PROVIDER, an as SYMBOL_CONTEXT_MENTION_PROVIDER, ao as REMOTE_REPOSITORY_PROVIDER_URI, ap as REMOTE_FILE_PROVIDER_URI, aq as REMOTE_DIRECTORY_PROVIDER_URI, ar as WEB_PROVIDER_URI, at as WORKSPACE_REPOSITORY_PROVIDER_URI, as as WORKSPACE_DIRECTORY_PROVIDER_URI, t as telemetryRecorder, C as ContextItemSource, br as lodashExports, cO as truncatePromptString, cP as isS2, cQ as GIT_OPENCTX_PROVIDER_URI, bl as cryptoJsExports, bj as CodyIDE, cR as openCtx, aP as URI, cS as MulticastSubject, cT as AsyncSerialScheduler_1, g as getDefaultExportFromCjs, cU as Utils$1, cV as toString_1, cW as upperFirst_1, cX as _, cY as extensionForLanguage, cZ as setClientNameVersion, c_ as base64Js, bi as commonjsGlobal, c$ as _baseAssignValue, d0 as eq_1, d1 as isArrayLike_1, d2 as isObjectLike_1, d3 as _copyObject, d4 as keysIn_1, d5 as _cloneBufferExports, d6 as _cloneTypedArray, d7 as _copyArray, d8 as _initCloneObject, d9 as isArguments_1, da as isArray_1, db as isBufferExports, dc as isFunction_1, dd as isObject_1, de as isPlainObject_1, df as isTypedArray_1, dg as _Stack, dh as identity_1, di as _overRest, dj as _setToString, dk as _isIndex, bb as isSourcegraphToken, dl as setExtensionVersion, dm as withLatestFrom, dn as NEVER, dp as abortableOperation, dq as disposableSubscription, dr as setAuthStatusObservable, ds as DOTCOM_URL, dt as normalizeServerEndpointURL, du as SourcegraphGraphQLAPIClient, dv as isNetworkLikeError, dw as getAuthErrorMessage, dx as SUPPORTED_URI_SCHEMAS, dy as _baseIsEqual, dz as keys_1, dA as _baseGet, dB as _castPath, dC as isLength_1, dD as _toKey, dE as _isKey, dF as toNumber_1, dG as _baseFindIndex, dH as require$$0$2, dI as NetworkError, dJ as isRateLimitError, dK as isAuthError, d as dedent$1, dL as convertGitCloneURLToCodebaseName, bp as isDefined, dM as pluck, dN as TokenCounterUtils, dO as toRangeData, dP as DefaultChatCommands, dQ as pathFunctionsForURI, dR as uriParseNameAndExtension, dS as uriDirname, dT as uriExtname, dU as uriBasename, dV as DefaultEditCommands, dW as subscriptionDisposable, dX as NoOpTelemetryRecorderProvider, dY as TimestampTelemetryProcessor_1, dZ as updateGlobalTelemetryInstances, d_ as TelemetryRecorderProvider, d$ as telemetryRecorderProvider, e0 as createGitDiff, e1 as catchError$1, e2 as omit$1, e3 as displayPathWithoutWorkspaceFolderPrefix, e4 as getEditorInsertSpaces, e5 as escapeRegExp$1, e6 as isNetworkError, bD as isCodyProModel, e7 as http, bk as CodyTaskState, aZ as createExtensionAPI, a_ as createMessageAPIForWebview, e8 as getAugmentedNamespace, e9 as main$1, ea as firstNonPendingAuthStatus, eb as TESTING_TELEMETRY_EXPORTER, ec as dist, ed as checkIfEnterpriseUser, ee as currentAuthStatusAuthed, ef as waitUntilComplete, bJ as isMacOS, bB as CustomCommandType, bZ as setDisplayPathEnvInfo, eg as isWindows, eh as currentAuthStatusOrNotReadyYet, ei as currentUserProductSubscription, bG as ACCOUNT_USAGE_URL, a$ as debounce$1, au as displayPath, ej as structuredPatch, ek as isDotComAuthed, el as dedupeWith$1, em as AbortError$1, en as TimeoutError, eo as createDisposables, ep as getClientInfoQueryParams, eq as tracer, er as getClientIdentificationHeaders, es as logResponseHeadersToSpan, et as getActiveTraceAndSpanId, eu as TracedError, ev as isNodeResponse, be as SpanStatusCode, bn as RateLimitError$1, ew as getEditorTabSize$1, ax as displayPathBasename, ex as debounce_1, bX as isErrorLike, ey as mentionProvidersMetadata, ez as editorStateFromPromptString, eA as assertFileURI, eB as setOpenCtx, eC as createCodeSearchProvider, bt as CODE_SEARCH_PROVIDER_URI, eD as _baseGetTag, eE as truncateTextNearestLine, eF as MAX_BYTES_PER_FILE, eG as expandToLineRange, av as displayLineRange, aV as parseMentionQuery, eH as TokenCounter, eI as PromptMode, eJ as skip$1, bd as context$1, eK as extractContextFromTraceparent, eL as getTokenCounterUtils, eM as inputTextWithoutContextChipsFromPromptEditorState, bP as inputTextWithMappedContextChipsFromPromptEditorState, bv as isAbortErrorOrSocketHangUp, eN as isContextWindowLimitError, b9 as forceHydration, bu as reformatBotMessageForChat, ba as hydrateAfterPostMessage, eO as addMessageListenersForExtensionAPI, eP as createMessageAPIForExtension, bC as View, eQ as CODY_BLOG_URL_o1_WAITLIST, eR as CODY_PASSTHROUGH_VSCODE_OPEN_COMMAND_ID, bA as pluralize, bH as ACCOUNT_UPGRADE_URL, b4 as scanForMentionTriggerInUserTextInput, az as LARGE_FILE_WARNING_LABEL, eS as GENERAL_HELP_LABEL, eT as diffLines, eU as psDedent, eV as languageFromFilename, eW as ProgrammingLanguage, eX as truncatePromptStringStart, eY as MAX_CURRENT_FILE_TOKENS, eZ as posixFilePaths, e_ as SURROUNDING_LINES, e$ as CODY_SUPPORT_URL, f0 as CODY_DOC_URL, bo as CODY_FEEDBACK_URL, f1 as DISCORD_URL, bI as getRelativeChatPeriod, f2 as globalAgentRef, f3 as VSCODE_CHANGELOG_URL, f4 as SG_CHANGELOG_URL, f5 as ACCOUNT_LIMITS_INFO_URL, f6 as assertUnreachable, f7 as promise, f8 as setLogger, f9 as setClientCapabilities, fa as setResolvedConfigurationObservable, fb as CODY_OLLAMA_DOCS_URL, bW as browser$3 } from "./browser-Ct2FvU41.mjs";
22
22
  function _mergeNamespaces(n, m) {
23
23
  for (var i = 0; i < m.length; i++) {
24
24
  const e = m[i];
@@ -46,7 +46,7 @@ function die$1(error, ...args2) {
46
46
  `[Immer] minified error nr: ${error}. Full error at: https://bit.ly/3cXEKWf`
47
47
  );
48
48
  }
49
- var getPrototypeOf = Object.getPrototypeOf;
49
+ var getPrototypeOf$1 = Object.getPrototypeOf;
50
50
  function isDraft(value) {
51
51
  return !!value && !!value[DRAFT_STATE];
52
52
  }
@@ -60,7 +60,7 @@ var objectCtorString = Object.prototype.constructor.toString();
60
60
  function isPlainObject$3(value) {
61
61
  if (!value || typeof value !== "object")
62
62
  return false;
63
- const proto = getPrototypeOf(value);
63
+ const proto = getPrototypeOf$1(value);
64
64
  if (proto === null) {
65
65
  return true;
66
66
  }
@@ -140,9 +140,9 @@ function shallowCopy(base2, strict) {
140
140
  value: base2[key]
141
141
  };
142
142
  }
143
- return Object.create(getPrototypeOf(base2), descriptors);
143
+ return Object.create(getPrototypeOf$1(base2), descriptors);
144
144
  } else {
145
- const proto = getPrototypeOf(base2);
145
+ const proto = getPrototypeOf$1(base2);
146
146
  if (proto !== null && isPlain) {
147
147
  return { ...base2 };
148
148
  }
@@ -438,7 +438,7 @@ var objectTraps = {
438
438
  die$1(11);
439
439
  },
440
440
  getPrototypeOf(state2) {
441
- return getPrototypeOf(state2.base_);
441
+ return getPrototypeOf$1(state2.base_);
442
442
  },
443
443
  setPrototypeOf() {
444
444
  die$1(12);
@@ -474,12 +474,12 @@ function readPropFromProto(state2, source, prop2) {
474
474
  function getDescriptorFromProto(source, prop2) {
475
475
  if (!(prop2 in source))
476
476
  return void 0;
477
- let proto = getPrototypeOf(source);
477
+ let proto = getPrototypeOf$1(source);
478
478
  while (proto) {
479
479
  const desc = Object.getOwnPropertyDescriptor(proto, prop2);
480
480
  if (desc)
481
481
  return desc;
482
- proto = getPrototypeOf(proto);
482
+ proto = getPrototypeOf$1(proto);
483
483
  }
484
484
  return void 0;
485
485
  }
@@ -692,7 +692,7 @@ var __awaiter = function(thisArg, _arguments, P, generator) {
692
692
  step6((generator = generator.apply(thisArg, _arguments || [])).next());
693
693
  });
694
694
  };
695
- function filter$2(test) {
695
+ function filter$2(test2) {
696
696
  return (observable) => {
697
697
  return new Observable((observer) => {
698
698
  const scheduler = new AsyncSerialScheduler(observer);
@@ -705,7 +705,7 @@ function filter$2(test) {
705
705
  },
706
706
  next(input) {
707
707
  scheduler.schedule((next) => __awaiter(this, void 0, void 0, function* () {
708
- if (yield test(input)) {
708
+ if (yield test2(input)) {
709
709
  next(input);
710
710
  }
711
711
  }));
@@ -1387,7 +1387,7 @@ if (typeof AC$1 === "undefined") {
1387
1387
  }
1388
1388
  const shouldWarn$1 = (code) => !warned$1.has(code);
1389
1389
  const isPosInt$1 = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
1390
- const getUintArray$1 = (max) => !isPosInt$1(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray$1 : null;
1390
+ const getUintArray$1 = (max2) => !isPosInt$1(max2) ? null : max2 <= Math.pow(2, 8) ? Uint8Array : max2 <= Math.pow(2, 16) ? Uint16Array : max2 <= Math.pow(2, 32) ? Uint32Array : max2 <= Number.MAX_SAFE_INTEGER ? ZeroArray$1 : null;
1391
1391
  let ZeroArray$1 = class ZeroArray2 extends Array {
1392
1392
  constructor(size) {
1393
1393
  super(size);
@@ -1395,21 +1395,21 @@ let ZeroArray$1 = class ZeroArray2 extends Array {
1395
1395
  }
1396
1396
  };
1397
1397
  let Stack$3 = (_b = class {
1398
- constructor(max, HeapCls) {
1398
+ constructor(max2, HeapCls) {
1399
1399
  __publicField2(this, "heap");
1400
1400
  __publicField2(this, "length");
1401
1401
  if (!__privateGet(_b, _constructing)) {
1402
1402
  throw new TypeError("instantiate Stack using Stack.create(n)");
1403
1403
  }
1404
- this.heap = new HeapCls(max);
1404
+ this.heap = new HeapCls(max2);
1405
1405
  this.length = 0;
1406
1406
  }
1407
- static create(max) {
1408
- const HeapCls = getUintArray$1(max);
1407
+ static create(max2) {
1408
+ const HeapCls = getUintArray$1(max2);
1409
1409
  if (!HeapCls)
1410
1410
  return [];
1411
1411
  __privateSet(_b, _constructing, true);
1412
- const s = new _b(max, HeapCls);
1412
+ const s = new _b(max2, HeapCls);
1413
1413
  __privateSet(_b, _constructing, false);
1414
1414
  return s;
1415
1415
  }
@@ -1529,15 +1529,15 @@ let LRUCache$1 = (_c = class {
1529
1529
  }
1530
1530
  return 0;
1531
1531
  });
1532
- const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
1533
- if (max !== 0 && !isPosInt$1(max)) {
1532
+ const { max: max2 = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
1533
+ if (max2 !== 0 && !isPosInt$1(max2)) {
1534
1534
  throw new TypeError("max option must be a nonnegative integer");
1535
1535
  }
1536
- const UintArray = max ? getUintArray$1(max) : Array;
1536
+ const UintArray = max2 ? getUintArray$1(max2) : Array;
1537
1537
  if (!UintArray) {
1538
- throw new Error("invalid max value: " + max);
1538
+ throw new Error("invalid max value: " + max2);
1539
1539
  }
1540
- __privateSet(this, _max, max);
1540
+ __privateSet(this, _max, max2);
1541
1541
  __privateSet(this, _maxSize, maxSize);
1542
1542
  this.maxEntrySize = maxEntrySize || __privateGet(this, _maxSize);
1543
1543
  this.sizeCalculation = sizeCalculation;
@@ -1555,13 +1555,13 @@ let LRUCache$1 = (_c = class {
1555
1555
  __privateSet(this, _fetchMethod, fetchMethod);
1556
1556
  __privateSet(this, _hasFetchMethod, !!fetchMethod);
1557
1557
  __privateSet(this, _keyMap, /* @__PURE__ */ new Map());
1558
- __privateSet(this, _keyList, new Array(max).fill(void 0));
1559
- __privateSet(this, _valList, new Array(max).fill(void 0));
1560
- __privateSet(this, _next, new UintArray(max));
1561
- __privateSet(this, _prev, new UintArray(max));
1558
+ __privateSet(this, _keyList, new Array(max2).fill(void 0));
1559
+ __privateSet(this, _valList, new Array(max2).fill(void 0));
1560
+ __privateSet(this, _next, new UintArray(max2));
1561
+ __privateSet(this, _prev, new UintArray(max2));
1562
1562
  __privateSet(this, _head, 0);
1563
1563
  __privateSet(this, _tail, 0);
1564
- __privateSet(this, _free, Stack$3.create(max));
1564
+ __privateSet(this, _free, Stack$3.create(max2));
1565
1565
  __privateSet(this, _size, 0);
1566
1566
  __privateSet(this, _calculatedSize, 0);
1567
1567
  if (typeof dispose === "function") {
@@ -3818,12 +3818,12 @@ class Matcher {
3818
3818
  * @returns {string}
3819
3819
  * @private
3820
3820
  */
3821
- replace(replacement, all = true, perlMode = false) {
3821
+ replace(replacement, all2 = true, perlMode = false) {
3822
3822
  let res = "";
3823
3823
  this.reset();
3824
3824
  while (this.find()) {
3825
3825
  res += this.appendReplacement(replacement, perlMode);
3826
- if (!all) {
3826
+ if (!all2) {
3827
3827
  break;
3828
3828
  }
3829
3829
  }
@@ -5192,12 +5192,12 @@ class CharClass {
5192
5192
  }
5193
5193
  // appendGroup() appends CharGroup |g| to this CharClass, folding iff
5194
5194
  // |foldCase|. Does not mutate |g|.
5195
- appendGroup(g, foldCase) {
5196
- let cls = g.cls;
5195
+ appendGroup(g2, foldCase) {
5196
+ let cls = g2.cls;
5197
5197
  if (foldCase) {
5198
5198
  cls = new CharClass().appendFoldedClass(cls).cleanClass().toArray();
5199
5199
  }
5200
- return this.appendClassWithSign(cls, g.sign);
5200
+ return this.appendClassWithSign(cls, g2.sign);
5201
5201
  }
5202
5202
  toString() {
5203
5203
  return CharClass.charClassToString(this.r, this.len);
@@ -5356,17 +5356,17 @@ let Parser$1 = (_d = class {
5356
5356
  if (!t.more()) {
5357
5357
  return -1;
5358
5358
  }
5359
- let max;
5359
+ let max2;
5360
5360
  if (!t.lookingAt(",")) {
5361
- max = min;
5361
+ max2 = min;
5362
5362
  } else {
5363
5363
  t.skip(1);
5364
5364
  if (!t.more()) {
5365
5365
  return -1;
5366
5366
  }
5367
5367
  if (t.lookingAt("}")) {
5368
- max = -1;
5369
- } else if ((max = _d.parseInt(t)) === -1) {
5368
+ max2 = -1;
5369
+ } else if ((max2 = _d.parseInt(t)) === -1) {
5370
5370
  return -1;
5371
5371
  }
5372
5372
  }
@@ -5374,10 +5374,10 @@ let Parser$1 = (_d = class {
5374
5374
  return -1;
5375
5375
  }
5376
5376
  t.skip(1);
5377
- if (min < 0 || min > 1e3 || max === -2 || max > 1e3 || max >= 0 && min > max) {
5377
+ if (min < 0 || min > 1e3 || max2 === -2 || max2 > 1e3 || max2 >= 0 && min > max2) {
5378
5378
  throw new RE2JSSyntaxException(_d.ERR_INVALID_REPEAT_SIZE, t.from(start2));
5379
5379
  }
5380
- return min << 16 | max & Unicode.MAX_BMP;
5380
+ return min << 16 | max2 & Unicode.MAX_BMP;
5381
5381
  }
5382
5382
  // isValidCaptureName reports whether name
5383
5383
  // is a valid capture name: [A-Za-z0-9_]+.
@@ -5693,7 +5693,7 @@ let Parser$1 = (_d = class {
5693
5693
  // Pre: t is positioned after the initial repetition operator.
5694
5694
  // Post: t advances past an optional perl-mode '?', or stays put.
5695
5695
  // Or, it fails with RE2JSSyntaxException.
5696
- repeat(op, min, max, beforePos, t, lastRepeatPos) {
5696
+ repeat(op, min, max2, beforePos, t, lastRepeatPos) {
5697
5697
  let flags2 = this.flags;
5698
5698
  if ((flags2 & RE2Flags.PERL_X) !== 0) {
5699
5699
  if (t.more() && t.lookingAt("?")) {
@@ -5714,7 +5714,7 @@ let Parser$1 = (_d = class {
5714
5714
  }
5715
5715
  const re = this.newRegexp(op);
5716
5716
  re.min = min;
5717
- re.max = max;
5717
+ re.max = max2;
5718
5718
  re.flags = flags2;
5719
5719
  re.subs = [sub2];
5720
5720
  this.stack[n - 1] = re;
@@ -5898,17 +5898,17 @@ let Parser$1 = (_d = class {
5898
5898
  else if (i === start2 + 1) {
5899
5899
  array[lenout++] = array[s + start2];
5900
5900
  } else {
5901
- let max = start2;
5901
+ let max2 = start2;
5902
5902
  for (let j = start2 + 1; j < i; j++) {
5903
- const subMax = array[s + max];
5903
+ const subMax = array[s + max2];
5904
5904
  const subJ = array[s + j];
5905
5905
  if (subMax.op < subJ.op || subMax.op === subJ.op && (subMax.runes !== null ? subMax.runes.length : 0) < (subJ.runes !== null ? subJ.runes.length : 0)) {
5906
- max = j;
5906
+ max2 = j;
5907
5907
  }
5908
5908
  }
5909
5909
  const tmp = array[s + start2];
5910
- array[s + start2] = array[s + max];
5911
- array[s + max] = tmp;
5910
+ array[s + start2] = array[s + max2];
5911
+ array[s + max2] = tmp;
5912
5912
  for (let j = start2 + 1; j < i; j++) {
5913
5913
  _d.mergeCharClass(array[s + start2], array[s + j]);
5914
5914
  this.reuse(array[s + j]);
@@ -6006,7 +6006,7 @@ let Parser$1 = (_d = class {
6006
6006
  }
6007
6007
  let lastRepeatPos = -1;
6008
6008
  let min = -1;
6009
- let max = -1;
6009
+ let max2 = -1;
6010
6010
  const t = new StringIterator(this.wholeRegexp);
6011
6011
  while (t.more()) {
6012
6012
  {
@@ -6071,7 +6071,7 @@ let Parser$1 = (_d = class {
6071
6071
  op = Regexp.Op.QUEST;
6072
6072
  break;
6073
6073
  }
6074
- this.repeat(op, min, max, repeatPos, t, lastRepeatPos);
6074
+ this.repeat(op, min, max2, repeatPos, t, lastRepeatPos);
6075
6075
  break;
6076
6076
  }
6077
6077
  case Codepoint.CODES.get("{"): {
@@ -6083,8 +6083,8 @@ let Parser$1 = (_d = class {
6083
6083
  break;
6084
6084
  }
6085
6085
  min = minMax >> 16;
6086
- max = (minMax & Unicode.MAX_BMP) << 16 >> 16;
6087
- this.repeat(Regexp.Op.REPEAT, min, max, repeatPos, t, lastRepeatPos);
6086
+ max2 = (minMax & Unicode.MAX_BMP) << 16 >> 16;
6087
+ this.repeat(Regexp.Op.REPEAT, min, max2, repeatPos, t, lastRepeatPos);
6088
6088
  break;
6089
6089
  }
6090
6090
  case Codepoint.CODES.get("\\"): {
@@ -6324,11 +6324,11 @@ let Parser$1 = (_d = class {
6324
6324
  }
6325
6325
  t.pop();
6326
6326
  const p = t.from(beforePos);
6327
- const g = PERL_GROUPS.has(p) ? PERL_GROUPS.get(p) : null;
6328
- if (g === null) {
6327
+ const g2 = PERL_GROUPS.has(p) ? PERL_GROUPS.get(p) : null;
6328
+ if (g2 === null) {
6329
6329
  return false;
6330
6330
  }
6331
- cc.appendGroup(g, (this.flags & RE2Flags.FOLD_CASE) !== 0);
6331
+ cc.appendGroup(g2, (this.flags & RE2Flags.FOLD_CASE) !== 0);
6332
6332
  return true;
6333
6333
  }
6334
6334
  // parseNamedClass parses a leading POSIX named character class like
@@ -6345,11 +6345,11 @@ let Parser$1 = (_d = class {
6345
6345
  }
6346
6346
  const name2 = cls.substring(0, i + 2);
6347
6347
  t.skipString(name2);
6348
- const g = POSIX_GROUPS.has(name2) ? POSIX_GROUPS.get(name2) : null;
6349
- if (g === null) {
6348
+ const g2 = POSIX_GROUPS.has(name2) ? POSIX_GROUPS.get(name2) : null;
6349
+ if (g2 === null) {
6350
6350
  throw new RE2JSSyntaxException(_d.ERR_INVALID_CHAR_RANGE, name2);
6351
6351
  }
6352
- cc.appendGroup(g, (this.flags & RE2Flags.FOLD_CASE) !== 0);
6352
+ cc.appendGroup(g2, (this.flags & RE2Flags.FOLD_CASE) !== 0);
6353
6353
  return true;
6354
6354
  }
6355
6355
  // parseUnicodeClass() parses a leading Unicode character class like \p{Han}
@@ -10558,12 +10558,12 @@ function isEmptyObj(obj) {
10558
10558
  return false;
10559
10559
  return true;
10560
10560
  }
10561
- function hasOwn(obj, key) {
10561
+ function hasOwn$1(obj, key) {
10562
10562
  return Object.prototype.hasOwnProperty.call(obj, key);
10563
10563
  }
10564
10564
  function applyHeadersMut(targetHeaders, newHeaders) {
10565
10565
  for (const k in newHeaders) {
10566
- if (!hasOwn(newHeaders, k))
10566
+ if (!hasOwn$1(newHeaders, k))
10567
10567
  continue;
10568
10568
  const lowerKey = k.toLowerCase();
10569
10569
  if (!lowerKey)
@@ -11619,8 +11619,8 @@ const events$3 = [
11619
11619
  source: { chat: 1 },
11620
11620
  provider: {
11621
11621
  [fallbackValue]: 0,
11622
- [FILE_CONTEXT_MENTION_PROVIDER.id]: 1,
11623
- [SYMBOL_CONTEXT_MENTION_PROVIDER.id]: 2,
11622
+ [(_e = FILE_CONTEXT_MENTION_PROVIDER) == null ? void 0 : _e.id]: 1,
11623
+ [(_f = SYMBOL_CONTEXT_MENTION_PROVIDER) == null ? void 0 : _f.id]: 2,
11624
11624
  [REMOTE_REPOSITORY_PROVIDER_URI]: 3,
11625
11625
  [REMOTE_FILE_PROVIDER_URI]: 4,
11626
11626
  [REMOTE_DIRECTORY_PROVIDER_URI]: 5,
@@ -11637,7 +11637,9 @@ const events$3 = [
11637
11637
  "https://openctx.org/npm/@openctx/provider-notion": 7,
11638
11638
  "https://openctx.org/npm/@openctx/provider-hello-world": 7,
11639
11639
  "https://openctx.org/npm/@openctx/provider-devdocs": 7,
11640
- "https://openctx.org/npm/@openctx/provider-sourcegraph-search": 7
11640
+ "https://openctx.org/npm/@openctx/provider-sourcegraph-search": 7,
11641
+ [WORKSPACE_REPOSITORY_PROVIDER_URI]: 8,
11642
+ [WORKSPACE_DIRECTORY_PROVIDER_URI]: 8
11641
11643
  }
11642
11644
  }
11643
11645
  )
@@ -12806,7 +12808,7 @@ if (typeof AC === "undefined") {
12806
12808
  (_b2 = (_a3 = this.signal).onabort) == null ? void 0 : _b2.call(_a3, reason);
12807
12809
  }
12808
12810
  };
12809
- let printACPolyfillWarning = ((_e = PROCESS.env) == null ? void 0 : _e.LRU_CACHE_IGNORE_AC_WARNING) !== "1";
12811
+ let printACPolyfillWarning = ((_g = PROCESS.env) == null ? void 0 : _g.LRU_CACHE_IGNORE_AC_WARNING) !== "1";
12810
12812
  const warnACPolyfill = () => {
12811
12813
  if (!printACPolyfillWarning)
12812
12814
  return;
@@ -12816,30 +12818,30 @@ if (typeof AC === "undefined") {
12816
12818
  }
12817
12819
  const shouldWarn = (code) => !warned.has(code);
12818
12820
  const isPosInt = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
12819
- const getUintArray = (max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
12821
+ const getUintArray = (max2) => !isPosInt(max2) ? null : max2 <= Math.pow(2, 8) ? Uint8Array : max2 <= Math.pow(2, 16) ? Uint16Array : max2 <= Math.pow(2, 32) ? Uint32Array : max2 <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
12820
12822
  class ZeroArray extends Array {
12821
12823
  constructor(size) {
12822
12824
  super(size);
12823
12825
  this.fill(0);
12824
12826
  }
12825
12827
  }
12826
- let Stack$2 = (_f = class {
12827
- constructor(max, HeapCls) {
12828
+ let Stack$2 = (_h = class {
12829
+ constructor(max2, HeapCls) {
12828
12830
  __publicField2(this, "heap");
12829
12831
  __publicField2(this, "length");
12830
- if (!__privateGet(_f, _constructing2)) {
12832
+ if (!__privateGet(_h, _constructing2)) {
12831
12833
  throw new TypeError("instantiate Stack using Stack.create(n)");
12832
12834
  }
12833
- this.heap = new HeapCls(max);
12835
+ this.heap = new HeapCls(max2);
12834
12836
  this.length = 0;
12835
12837
  }
12836
- static create(max) {
12837
- const HeapCls = getUintArray(max);
12838
+ static create(max2) {
12839
+ const HeapCls = getUintArray(max2);
12838
12840
  if (!HeapCls)
12839
12841
  return [];
12840
- __privateSet(_f, _constructing2, true);
12841
- const s = new _f(max, HeapCls);
12842
- __privateSet(_f, _constructing2, false);
12842
+ __privateSet(_h, _constructing2, true);
12843
+ const s = new _h(max2, HeapCls);
12844
+ __privateSet(_h, _constructing2, false);
12843
12845
  return s;
12844
12846
  }
12845
12847
  push(n) {
@@ -12849,7 +12851,7 @@ let Stack$2 = (_f = class {
12849
12851
  return this.heap[--this.length];
12850
12852
  }
12851
12853
  }, _constructing2 = new WeakMap(), // private constructor
12852
- __privateAdd(_f, _constructing2, false), _f);
12854
+ __privateAdd(_h, _constructing2, false), _h);
12853
12855
  const _LRUCache = class _LRUCache {
12854
12856
  constructor(options) {
12855
12857
  __privateAdd(this, _LRUCache_instances2);
@@ -12962,16 +12964,16 @@ const _LRUCache = class _LRUCache {
12962
12964
  * A String value that is used in the creation of the default string description of an object.
12963
12965
  * Called by the built-in method Object.prototype.toString.
12964
12966
  */
12965
- __publicField2(this, _g, "LRUCache");
12966
- const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
12967
- if (max !== 0 && !isPosInt(max)) {
12967
+ __publicField2(this, _i, "LRUCache");
12968
+ const { max: max2 = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort } = options;
12969
+ if (max2 !== 0 && !isPosInt(max2)) {
12968
12970
  throw new TypeError("max option must be a nonnegative integer");
12969
12971
  }
12970
- const UintArray = max ? getUintArray(max) : Array;
12972
+ const UintArray = max2 ? getUintArray(max2) : Array;
12971
12973
  if (!UintArray) {
12972
- throw new Error("invalid max value: " + max);
12974
+ throw new Error("invalid max value: " + max2);
12973
12975
  }
12974
- __privateSet(this, _max2, max);
12976
+ __privateSet(this, _max2, max2);
12975
12977
  __privateSet(this, _maxSize2, maxSize);
12976
12978
  this.maxEntrySize = maxEntrySize || __privateGet(this, _maxSize2);
12977
12979
  this.sizeCalculation = sizeCalculation;
@@ -12989,13 +12991,13 @@ const _LRUCache = class _LRUCache {
12989
12991
  __privateSet(this, _fetchMethod2, fetchMethod);
12990
12992
  __privateSet(this, _hasFetchMethod2, !!fetchMethod);
12991
12993
  __privateSet(this, _keyMap2, /* @__PURE__ */ new Map());
12992
- __privateSet(this, _keyList2, new Array(max).fill(void 0));
12993
- __privateSet(this, _valList2, new Array(max).fill(void 0));
12994
- __privateSet(this, _next2, new UintArray(max));
12995
- __privateSet(this, _prev2, new UintArray(max));
12994
+ __privateSet(this, _keyList2, new Array(max2).fill(void 0));
12995
+ __privateSet(this, _valList2, new Array(max2).fill(void 0));
12996
+ __privateSet(this, _next2, new UintArray(max2));
12997
+ __privateSet(this, _prev2, new UintArray(max2));
12996
12998
  __privateSet(this, _head2, 0);
12997
12999
  __privateSet(this, _tail2, 0);
12998
- __privateSet(this, _free2, Stack$2.create(max));
13000
+ __privateSet(this, _free2, Stack$2.create(max2));
12999
13001
  __privateSet(this, _size2, 0);
13000
13002
  __privateSet(this, _calculatedSize2, 0);
13001
13003
  if (typeof dispose === "function") {
@@ -13235,7 +13237,7 @@ const _LRUCache = class _LRUCache {
13235
13237
  * Iterating over the cache itself yields the same results as
13236
13238
  * {@link LRUCache.entries}
13237
13239
  */
13238
- [(_h = Symbol.iterator, _g = Symbol.toStringTag, _h)]() {
13240
+ [(_j = Symbol.iterator, _i = Symbol.toStringTag, _j)]() {
13239
13241
  return this.entries();
13240
13242
  }
13241
13243
  /**
@@ -14726,10 +14728,10 @@ const parse$1 = (input, options) => {
14726
14728
  }
14727
14729
  input = REPLACEMENTS[input] || input;
14728
14730
  const opts = { ...options };
14729
- const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
14731
+ const max2 = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
14730
14732
  let len = input.length;
14731
- if (len > max) {
14732
- throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
14733
+ if (len > max2) {
14734
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max2}`);
14733
14735
  }
14734
14736
  const bos = { type: "bos", value: "", output: opts.prepend || "" };
14735
14737
  const tokens = [bos];
@@ -15395,10 +15397,10 @@ const parse$1 = (input, options) => {
15395
15397
  };
15396
15398
  parse$1.fastpaths = (input, options) => {
15397
15399
  const opts = { ...options };
15398
- const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
15400
+ const max2 = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
15399
15401
  const len = input.length;
15400
- if (len > max) {
15401
- throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
15402
+ if (len > max2) {
15403
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max2}`);
15402
15404
  }
15403
15405
  input = REPLACEMENTS[input] || input;
15404
15406
  const {
@@ -19547,15 +19549,15 @@ function expand(str, isTop) {
19547
19549
  var y = numeric(n[1]);
19548
19550
  var width = Math.max(n[0].length, n[1].length);
19549
19551
  var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
19550
- var test = lte;
19552
+ var test2 = lte;
19551
19553
  var reverse = y < x;
19552
19554
  if (reverse) {
19553
19555
  incr *= -1;
19554
- test = gte;
19556
+ test2 = gte;
19555
19557
  }
19556
19558
  var pad2 = n.some(isPadded);
19557
19559
  N = [];
19558
- for (var i = x; test(i, y); i += incr) {
19560
+ for (var i = x; test2(i, y); i += incr) {
19559
19561
  var c;
19560
19562
  if (isAlphaSequence) {
19561
19563
  c = String.fromCharCode(i);
@@ -21741,16 +21743,16 @@ const _commands = {
21741
21743
  return Promise.resolve(void 0);
21742
21744
  }
21743
21745
  };
21744
- (_i = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _i.call(_commands, "workbench.action.reloadWindow", () => {
21746
+ (_k = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _k.call(_commands, "workbench.action.reloadWindow", () => {
21745
21747
  });
21746
- (_j = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _j.call(_commands, "setContext", (key, value) => {
21748
+ (_l = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _l.call(_commands, "setContext", (key, value) => {
21747
21749
  if (typeof key !== "string") {
21748
21750
  throw new TypeError(`setContext: first argument must be string. Got: ${key}`);
21749
21751
  }
21750
21752
  context.set(key, value);
21751
21753
  agent$1 == null ? void 0 : agent$1.notify("window/didChangeContext", { key, value: value.toString() });
21752
21754
  });
21753
- (_k = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _k.call(_commands, "vscode.executeFoldingRangeProvider", async (uri2) => {
21755
+ (_m = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _m.call(_commands, "vscode.executeFoldingRangeProvider", async (uri2) => {
21754
21756
  const promises = [];
21755
21757
  const document2 = await _workspace.openTextDocument(uri2);
21756
21758
  const token = new CancellationTokenSource().token;
@@ -21762,16 +21764,16 @@ const _commands = {
21762
21764
  }
21763
21765
  return promises;
21764
21766
  });
21765
- (_l = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _l.call(_commands, "vscode.executeDocumentSymbolProvider", (uri2) => {
21767
+ (_n = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _n.call(_commands, "vscode.executeDocumentSymbolProvider", (uri2) => {
21766
21768
  return Promise.resolve([]);
21767
21769
  });
21768
- (_m = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _m.call(_commands, "vscode.executeWorkspaceSymbolProvider", (query2) => {
21770
+ (_o = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _o.call(_commands, "vscode.executeWorkspaceSymbolProvider", (query2) => {
21769
21771
  return Promise.resolve([]);
21770
21772
  });
21771
- (_n = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _n.call(_commands, "vscode.executeFormatDocumentProvider", (uri2) => {
21773
+ (_p = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _p.call(_commands, "vscode.executeFormatDocumentProvider", (uri2) => {
21772
21774
  return Promise.resolve([]);
21773
21775
  });
21774
- (_o = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _o.call(
21776
+ (_q = _commands == null ? void 0 : _commands.registerCommand) == null ? void 0 : _q.call(
21775
21777
  _commands,
21776
21778
  "vscode.open",
21777
21779
  async (uri2, options) => {
@@ -21790,7 +21792,7 @@ const _env = {
21790
21792
  uriScheme: "file",
21791
21793
  appName: void 0,
21792
21794
  shell: void 0,
21793
- appRoot: (_p = define_process_default$g.cwd) == null ? void 0 : _p.call(define_process_default$g),
21795
+ appRoot: (_r = define_process_default$g.cwd) == null ? void 0 : _r.call(define_process_default$g),
21794
21796
  uiKind: UIKind.Desktop,
21795
21797
  language: "en-US",
21796
21798
  clipboard: {
@@ -23357,7 +23359,7 @@ function requireBuffer() {
23357
23359
  }
23358
23360
  return Buffer2.alloc(+length);
23359
23361
  }
23360
- Buffer2.isBuffer = function isBuffer2(b) {
23362
+ Buffer2.isBuffer = function isBuffer3(b) {
23361
23363
  return b != null && b._isBuffer === true && b !== Buffer2.prototype;
23362
23364
  };
23363
23365
  Buffer2.compare = function compare(a, b) {
@@ -23582,9 +23584,9 @@ function requireBuffer() {
23582
23584
  };
23583
23585
  Buffer2.prototype.inspect = function inspect() {
23584
23586
  let str = "";
23585
- const max = exports2.INSPECT_MAX_BYTES;
23586
- str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
23587
- if (this.length > max) str += " ... ";
23587
+ const max2 = exports2.INSPECT_MAX_BYTES;
23588
+ str = this.toString("hex", 0, max2).replace(/(.{2})/g, "$1 ").trim();
23589
+ if (this.length > max2) str += " ... ";
23588
23590
  return "<Buffer " + str + ">";
23589
23591
  };
23590
23592
  if (customInspectSymbol) {
@@ -23740,7 +23742,7 @@ function requireBuffer() {
23740
23742
  Buffer2.prototype.includes = function includes(val2, byteOffset, encoding) {
23741
23743
  return this.indexOf(val2, byteOffset, encoding) !== -1;
23742
23744
  };
23743
- Buffer2.prototype.indexOf = function indexOf(val2, byteOffset, encoding) {
23745
+ Buffer2.prototype.indexOf = function indexOf2(val2, byteOffset, encoding) {
23744
23746
  return bidirectionalIndexOf(this, val2, byteOffset, encoding, true);
23745
23747
  };
23746
23748
  Buffer2.prototype.lastIndexOf = function lastIndexOf(val2, byteOffset, encoding) {
@@ -24157,9 +24159,9 @@ function requireBuffer() {
24157
24159
  if (!noAssert) checkOffset(offset2, 8, this.length);
24158
24160
  return ieee7542.read(this, offset2, false, 52, 8);
24159
24161
  };
24160
- function checkInt(buf, value, offset2, ext2, max, min) {
24162
+ function checkInt(buf, value, offset2, ext2, max2, min) {
24161
24163
  if (!Buffer2.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance');
24162
- if (value > max || value < min) throw new RangeError('"value" argument is out of bounds');
24164
+ if (value > max2 || value < min) throw new RangeError('"value" argument is out of bounds');
24163
24165
  if (offset2 + ext2 > buf.length) throw new RangeError("Index out of range");
24164
24166
  }
24165
24167
  Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = function writeUIntLE(value, offset2, byteLength2, noAssert) {
@@ -24237,8 +24239,8 @@ function requireBuffer() {
24237
24239
  this[offset2 + 3] = value & 255;
24238
24240
  return offset2 + 4;
24239
24241
  };
24240
- function wrtBigUInt64LE(buf, value, offset2, min, max) {
24241
- checkIntBI(value, min, max, buf, offset2, 7);
24242
+ function wrtBigUInt64LE(buf, value, offset2, min, max2) {
24243
+ checkIntBI(value, min, max2, buf, offset2, 7);
24242
24244
  let lo = Number(value & BigInt(4294967295));
24243
24245
  buf[offset2++] = lo;
24244
24246
  lo = lo >> 8;
@@ -24257,8 +24259,8 @@ function requireBuffer() {
24257
24259
  buf[offset2++] = hi;
24258
24260
  return offset2;
24259
24261
  }
24260
- function wrtBigUInt64BE(buf, value, offset2, min, max) {
24261
- checkIntBI(value, min, max, buf, offset2, 7);
24262
+ function wrtBigUInt64BE(buf, value, offset2, min, max2) {
24263
+ checkIntBI(value, min, max2, buf, offset2, 7);
24262
24264
  let lo = Number(value & BigInt(4294967295));
24263
24265
  buf[offset2 + 7] = lo;
24264
24266
  lo = lo >> 8;
@@ -24372,7 +24374,7 @@ function requireBuffer() {
24372
24374
  Buffer2.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset2 = 0) {
24373
24375
  return wrtBigUInt64BE(this, value, offset2, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
24374
24376
  });
24375
- function checkIEEE754(buf, value, offset2, ext2, max, min) {
24377
+ function checkIEEE754(buf, value, offset2, ext2, max2, min) {
24376
24378
  if (offset2 + ext2 > buf.length) throw new RangeError("Index out of range");
24377
24379
  if (offset2 < 0) throw new RangeError("Index out of range");
24378
24380
  }
@@ -24570,8 +24572,8 @@ function requireBuffer() {
24570
24572
  boundsError(offset2, buf.length - (byteLength2 + 1));
24571
24573
  }
24572
24574
  }
24573
- function checkIntBI(value, min, max, buf, offset2, byteLength2) {
24574
- if (value > max || value < min) {
24575
+ function checkIntBI(value, min, max2, buf, offset2, byteLength2) {
24576
+ if (value > max2 || value < min) {
24575
24577
  const n = typeof min === "bigint" ? "n" : "";
24576
24578
  let range2;
24577
24579
  {
@@ -24733,1979 +24735,1762 @@ function requireBuffer() {
24733
24735
  }
24734
24736
  var util$5 = {};
24735
24737
  var types = {};
24736
- var shams$1;
24737
- var hasRequiredShams$1;
24738
- function requireShams$1() {
24739
- if (hasRequiredShams$1) return shams$1;
24740
- hasRequiredShams$1 = 1;
24741
- shams$1 = function hasSymbols2() {
24742
- if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
24743
- return false;
24744
- }
24745
- if (typeof Symbol.iterator === "symbol") {
24746
- return true;
24747
- }
24748
- var obj = {};
24749
- var sym = Symbol("test");
24750
- var symObj = Object(sym);
24751
- if (typeof sym === "string") {
24752
- return false;
24753
- }
24754
- if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
24755
- return false;
24756
- }
24757
- if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
24758
- return false;
24759
- }
24760
- var symVal = 42;
24761
- obj[sym] = symVal;
24762
- for (sym in obj) {
24763
- return false;
24764
- }
24765
- if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
24766
- return false;
24767
- }
24768
- if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
24769
- return false;
24770
- }
24771
- var syms = Object.getOwnPropertySymbols(obj);
24772
- if (syms.length !== 1 || syms[0] !== sym) {
24773
- return false;
24774
- }
24775
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
24776
- return false;
24777
- }
24778
- if (typeof Object.getOwnPropertyDescriptor === "function") {
24779
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
24780
- if (descriptor.value !== symVal || descriptor.enumerable !== true) {
24781
- return false;
24782
- }
24783
- }
24738
+ var shams$1 = function hasSymbols2() {
24739
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
24740
+ return false;
24741
+ }
24742
+ if (typeof Symbol.iterator === "symbol") {
24784
24743
  return true;
24785
- };
24786
- return shams$1;
24787
- }
24788
- var shams;
24789
- var hasRequiredShams;
24790
- function requireShams() {
24791
- if (hasRequiredShams) return shams;
24792
- hasRequiredShams = 1;
24793
- var hasSymbols2 = requireShams$1();
24794
- shams = function hasToStringTagShams() {
24795
- return hasSymbols2() && !!Symbol.toStringTag;
24796
- };
24797
- return shams;
24798
- }
24799
- var esErrors;
24800
- var hasRequiredEsErrors;
24801
- function requireEsErrors() {
24802
- if (hasRequiredEsErrors) return esErrors;
24803
- hasRequiredEsErrors = 1;
24804
- esErrors = Error;
24805
- return esErrors;
24806
- }
24807
- var _eval;
24808
- var hasRequired_eval;
24809
- function require_eval() {
24810
- if (hasRequired_eval) return _eval;
24811
- hasRequired_eval = 1;
24812
- _eval = EvalError;
24813
- return _eval;
24814
- }
24815
- var range;
24816
- var hasRequiredRange;
24817
- function requireRange() {
24818
- if (hasRequiredRange) return range;
24819
- hasRequiredRange = 1;
24820
- range = RangeError;
24821
- return range;
24822
- }
24823
- var ref;
24824
- var hasRequiredRef;
24825
- function requireRef() {
24826
- if (hasRequiredRef) return ref;
24827
- hasRequiredRef = 1;
24828
- ref = ReferenceError;
24829
- return ref;
24830
- }
24831
- var syntax;
24832
- var hasRequiredSyntax;
24833
- function requireSyntax() {
24834
- if (hasRequiredSyntax) return syntax;
24835
- hasRequiredSyntax = 1;
24836
- syntax = SyntaxError;
24837
- return syntax;
24838
- }
24839
- var type;
24840
- var hasRequiredType;
24841
- function requireType() {
24842
- if (hasRequiredType) return type;
24843
- hasRequiredType = 1;
24844
- type = TypeError;
24845
- return type;
24846
- }
24847
- var uri;
24848
- var hasRequiredUri;
24849
- function requireUri() {
24850
- if (hasRequiredUri) return uri;
24851
- hasRequiredUri = 1;
24852
- uri = URIError;
24853
- return uri;
24854
- }
24855
- var hasSymbols;
24856
- var hasRequiredHasSymbols;
24857
- function requireHasSymbols() {
24858
- if (hasRequiredHasSymbols) return hasSymbols;
24859
- hasRequiredHasSymbols = 1;
24860
- var origSymbol = typeof Symbol !== "undefined" && Symbol;
24861
- var hasSymbolSham = requireShams$1();
24862
- hasSymbols = function hasNativeSymbols() {
24863
- if (typeof origSymbol !== "function") {
24864
- return false;
24865
- }
24866
- if (typeof Symbol !== "function") {
24867
- return false;
24868
- }
24869
- if (typeof origSymbol("foo") !== "symbol") {
24870
- return false;
24871
- }
24872
- if (typeof Symbol("bar") !== "symbol") {
24744
+ }
24745
+ var obj = {};
24746
+ var sym = Symbol("test");
24747
+ var symObj = Object(sym);
24748
+ if (typeof sym === "string") {
24749
+ return false;
24750
+ }
24751
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
24752
+ return false;
24753
+ }
24754
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
24755
+ return false;
24756
+ }
24757
+ var symVal = 42;
24758
+ obj[sym] = symVal;
24759
+ for (sym in obj) {
24760
+ return false;
24761
+ }
24762
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
24763
+ return false;
24764
+ }
24765
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
24766
+ return false;
24767
+ }
24768
+ var syms = Object.getOwnPropertySymbols(obj);
24769
+ if (syms.length !== 1 || syms[0] !== sym) {
24770
+ return false;
24771
+ }
24772
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
24773
+ return false;
24774
+ }
24775
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
24776
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
24777
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {
24873
24778
  return false;
24874
24779
  }
24875
- return hasSymbolSham();
24876
- };
24877
- return hasSymbols;
24878
- }
24879
- var hasProto;
24880
- var hasRequiredHasProto;
24881
- function requireHasProto() {
24882
- if (hasRequiredHasProto) return hasProto;
24883
- hasRequiredHasProto = 1;
24884
- var test = {
24885
- __proto__: null,
24886
- foo: {}
24887
- };
24888
- var $Object = Object;
24889
- hasProto = function hasProto2() {
24890
- return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
24891
- };
24892
- return hasProto;
24893
- }
24894
- var implementation;
24895
- var hasRequiredImplementation;
24896
- function requireImplementation() {
24897
- if (hasRequiredImplementation) return implementation;
24898
- hasRequiredImplementation = 1;
24899
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
24900
- var toStr = Object.prototype.toString;
24901
- var max = Math.max;
24902
- var funcType = "[object Function]";
24903
- var concatty = function concatty2(a, b) {
24904
- var arr = [];
24905
- for (var i = 0; i < a.length; i += 1) {
24906
- arr[i] = a[i];
24907
- }
24908
- for (var j = 0; j < b.length; j += 1) {
24909
- arr[j + a.length] = b[j];
24910
- }
24911
- return arr;
24912
- };
24913
- var slicy = function slicy2(arrLike, offset2) {
24914
- var arr = [];
24915
- for (var i = offset2, j = 0; i < arrLike.length; i += 1, j += 1) {
24916
- arr[j] = arrLike[i];
24917
- }
24918
- return arr;
24919
- };
24920
- var joiny = function(arr, joiner) {
24921
- var str = "";
24922
- for (var i = 0; i < arr.length; i += 1) {
24923
- str += arr[i];
24924
- if (i + 1 < arr.length) {
24925
- str += joiner;
24926
- }
24780
+ }
24781
+ return true;
24782
+ };
24783
+ var hasSymbols$2 = shams$1;
24784
+ var shams = function hasToStringTagShams() {
24785
+ return hasSymbols$2() && !!Symbol.toStringTag;
24786
+ };
24787
+ var esErrors = Error;
24788
+ var _eval = EvalError;
24789
+ var range = RangeError;
24790
+ var ref = ReferenceError;
24791
+ var syntax = SyntaxError;
24792
+ var type = TypeError;
24793
+ var uri = URIError;
24794
+ var origSymbol = typeof Symbol !== "undefined" && Symbol;
24795
+ var hasSymbolSham = shams$1;
24796
+ var hasSymbols$1 = function hasNativeSymbols() {
24797
+ if (typeof origSymbol !== "function") {
24798
+ return false;
24799
+ }
24800
+ if (typeof Symbol !== "function") {
24801
+ return false;
24802
+ }
24803
+ if (typeof origSymbol("foo") !== "symbol") {
24804
+ return false;
24805
+ }
24806
+ if (typeof Symbol("bar") !== "symbol") {
24807
+ return false;
24808
+ }
24809
+ return hasSymbolSham();
24810
+ };
24811
+ var test = {
24812
+ __proto__: null,
24813
+ foo: {}
24814
+ };
24815
+ var $Object = Object;
24816
+ var hasProto$1 = function hasProto2() {
24817
+ return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
24818
+ };
24819
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
24820
+ var toStr$3 = Object.prototype.toString;
24821
+ var max = Math.max;
24822
+ var funcType = "[object Function]";
24823
+ var concatty = function concatty2(a, b) {
24824
+ var arr = [];
24825
+ for (var i = 0; i < a.length; i += 1) {
24826
+ arr[i] = a[i];
24827
+ }
24828
+ for (var j = 0; j < b.length; j += 1) {
24829
+ arr[j + a.length] = b[j];
24830
+ }
24831
+ return arr;
24832
+ };
24833
+ var slicy = function slicy2(arrLike, offset2) {
24834
+ var arr = [];
24835
+ for (var i = offset2, j = 0; i < arrLike.length; i += 1, j += 1) {
24836
+ arr[j] = arrLike[i];
24837
+ }
24838
+ return arr;
24839
+ };
24840
+ var joiny = function(arr, joiner) {
24841
+ var str = "";
24842
+ for (var i = 0; i < arr.length; i += 1) {
24843
+ str += arr[i];
24844
+ if (i + 1 < arr.length) {
24845
+ str += joiner;
24927
24846
  }
24928
- return str;
24929
- };
24930
- implementation = function bind2(that) {
24931
- var target = this;
24932
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
24933
- throw new TypeError(ERROR_MESSAGE + target);
24934
- }
24935
- var args2 = slicy(arguments, 1);
24936
- var bound;
24937
- var binder = function() {
24938
- if (this instanceof bound) {
24939
- var result = target.apply(
24940
- this,
24941
- concatty(args2, arguments)
24942
- );
24943
- if (Object(result) === result) {
24944
- return result;
24945
- }
24946
- return this;
24947
- }
24948
- return target.apply(
24949
- that,
24847
+ }
24848
+ return str;
24849
+ };
24850
+ var implementation$1 = function bind2(that) {
24851
+ var target = this;
24852
+ if (typeof target !== "function" || toStr$3.apply(target) !== funcType) {
24853
+ throw new TypeError(ERROR_MESSAGE + target);
24854
+ }
24855
+ var args2 = slicy(arguments, 1);
24856
+ var bound;
24857
+ var binder = function() {
24858
+ if (this instanceof bound) {
24859
+ var result = target.apply(
24860
+ this,
24950
24861
  concatty(args2, arguments)
24951
24862
  );
24952
- };
24953
- var boundLength = max(0, target.length - args2.length);
24954
- var boundArgs = [];
24955
- for (var i = 0; i < boundLength; i++) {
24956
- boundArgs[i] = "$" + i;
24957
- }
24958
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
24959
- if (target.prototype) {
24960
- var Empty = function Empty2() {
24961
- };
24962
- Empty.prototype = target.prototype;
24963
- bound.prototype = new Empty();
24964
- Empty.prototype = null;
24965
- }
24966
- return bound;
24967
- };
24968
- return implementation;
24969
- }
24970
- var functionBind;
24971
- var hasRequiredFunctionBind;
24972
- function requireFunctionBind() {
24973
- if (hasRequiredFunctionBind) return functionBind;
24974
- hasRequiredFunctionBind = 1;
24975
- var implementation2 = requireImplementation();
24976
- functionBind = Function.prototype.bind || implementation2;
24977
- return functionBind;
24978
- }
24979
- var hasown;
24980
- var hasRequiredHasown;
24981
- function requireHasown() {
24982
- if (hasRequiredHasown) return hasown;
24983
- hasRequiredHasown = 1;
24984
- var call = Function.prototype.call;
24985
- var $hasOwn = Object.prototype.hasOwnProperty;
24986
- var bind2 = requireFunctionBind();
24987
- hasown = bind2.call(call, $hasOwn);
24988
- return hasown;
24989
- }
24990
- var getIntrinsic;
24991
- var hasRequiredGetIntrinsic;
24992
- function requireGetIntrinsic() {
24993
- if (hasRequiredGetIntrinsic) return getIntrinsic;
24994
- hasRequiredGetIntrinsic = 1;
24995
- var undefined$1;
24996
- var $Error = requireEsErrors();
24997
- var $EvalError = require_eval();
24998
- var $RangeError = requireRange();
24999
- var $ReferenceError = requireRef();
25000
- var $SyntaxError = requireSyntax();
25001
- var $TypeError = requireType();
25002
- var $URIError = requireUri();
25003
- var $Function = Function;
25004
- var getEvalledConstructor = function(expressionSyntax) {
25005
- try {
25006
- return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
25007
- } catch (e) {
24863
+ if (Object(result) === result) {
24864
+ return result;
24865
+ }
24866
+ return this;
25008
24867
  }
24868
+ return target.apply(
24869
+ that,
24870
+ concatty(args2, arguments)
24871
+ );
25009
24872
  };
25010
- var $gOPD = Object.getOwnPropertyDescriptor;
25011
- if ($gOPD) {
25012
- try {
25013
- $gOPD({}, "");
25014
- } catch (e) {
25015
- $gOPD = null;
25016
- }
24873
+ var boundLength = max(0, target.length - args2.length);
24874
+ var boundArgs = [];
24875
+ for (var i = 0; i < boundLength; i++) {
24876
+ boundArgs[i] = "$" + i;
25017
24877
  }
25018
- var throwTypeError = function() {
25019
- throw new $TypeError();
25020
- };
25021
- var ThrowTypeError = $gOPD ? function() {
24878
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
24879
+ if (target.prototype) {
24880
+ var Empty = function Empty2() {
24881
+ };
24882
+ Empty.prototype = target.prototype;
24883
+ bound.prototype = new Empty();
24884
+ Empty.prototype = null;
24885
+ }
24886
+ return bound;
24887
+ };
24888
+ var implementation = implementation$1;
24889
+ var functionBind = Function.prototype.bind || implementation;
24890
+ var call = Function.prototype.call;
24891
+ var $hasOwn = Object.prototype.hasOwnProperty;
24892
+ var bind$2 = functionBind;
24893
+ var hasown = bind$2.call(call, $hasOwn);
24894
+ var undefined$1;
24895
+ var $Error = esErrors;
24896
+ var $EvalError = _eval;
24897
+ var $RangeError = range;
24898
+ var $ReferenceError = ref;
24899
+ var $SyntaxError$1 = syntax;
24900
+ var $TypeError$2 = type;
24901
+ var $URIError = uri;
24902
+ var $Function = Function;
24903
+ var getEvalledConstructor = function(expressionSyntax) {
24904
+ try {
24905
+ return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
24906
+ } catch (e) {
24907
+ }
24908
+ };
24909
+ var $gOPD$1 = Object.getOwnPropertyDescriptor;
24910
+ if ($gOPD$1) {
24911
+ try {
24912
+ $gOPD$1({}, "");
24913
+ } catch (e) {
24914
+ $gOPD$1 = null;
24915
+ }
24916
+ }
24917
+ var throwTypeError = function() {
24918
+ throw new $TypeError$2();
24919
+ };
24920
+ var ThrowTypeError = $gOPD$1 ? function() {
24921
+ try {
24922
+ arguments.callee;
24923
+ return throwTypeError;
24924
+ } catch (calleeThrows) {
25022
24925
  try {
25023
- arguments.callee;
24926
+ return $gOPD$1(arguments, "callee").get;
24927
+ } catch (gOPDthrows) {
25024
24928
  return throwTypeError;
25025
- } catch (calleeThrows) {
25026
- try {
25027
- return $gOPD(arguments, "callee").get;
25028
- } catch (gOPDthrows) {
25029
- return throwTypeError;
25030
- }
25031
- }
25032
- }() : throwTypeError;
25033
- var hasSymbols2 = requireHasSymbols()();
25034
- var hasProto2 = requireHasProto()();
25035
- var getProto = Object.getPrototypeOf || (hasProto2 ? function(x) {
25036
- return x.__proto__;
25037
- } : null);
25038
- var needsEval = {};
25039
- var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
25040
- var INTRINSICS = {
25041
- __proto__: null,
25042
- "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
25043
- "%Array%": Array,
25044
- "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
25045
- "%ArrayIteratorPrototype%": hasSymbols2 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
25046
- "%AsyncFromSyncIteratorPrototype%": undefined$1,
25047
- "%AsyncFunction%": needsEval,
25048
- "%AsyncGenerator%": needsEval,
25049
- "%AsyncGeneratorFunction%": needsEval,
25050
- "%AsyncIteratorPrototype%": needsEval,
25051
- "%Atomics%": typeof Atomics === "undefined" ? undefined$1 : Atomics,
25052
- "%BigInt%": typeof BigInt === "undefined" ? undefined$1 : BigInt,
25053
- "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined$1 : BigInt64Array,
25054
- "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined$1 : BigUint64Array,
25055
- "%Boolean%": Boolean,
25056
- "%DataView%": typeof DataView === "undefined" ? undefined$1 : DataView,
25057
- "%Date%": Date,
25058
- "%decodeURI%": decodeURI,
25059
- "%decodeURIComponent%": decodeURIComponent,
25060
- "%encodeURI%": encodeURI,
25061
- "%encodeURIComponent%": encodeURIComponent,
25062
- "%Error%": $Error,
25063
- "%eval%": eval,
25064
- // eslint-disable-line no-eval
25065
- "%EvalError%": $EvalError,
25066
- "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
25067
- "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
25068
- "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
25069
- "%Function%": $Function,
25070
- "%GeneratorFunction%": needsEval,
25071
- "%Int8Array%": typeof Int8Array === "undefined" ? undefined$1 : Int8Array,
25072
- "%Int16Array%": typeof Int16Array === "undefined" ? undefined$1 : Int16Array,
25073
- "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
25074
- "%isFinite%": isFinite,
25075
- "%isNaN%": isNaN,
25076
- "%IteratorPrototype%": hasSymbols2 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
25077
- "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
25078
- "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
25079
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols2 || !getProto ? undefined$1 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
25080
- "%Math%": Math,
25081
- "%Number%": Number,
25082
- "%Object%": Object,
25083
- "%parseFloat%": parseFloat,
25084
- "%parseInt%": parseInt,
25085
- "%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
25086
- "%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy,
25087
- "%RangeError%": $RangeError,
25088
- "%ReferenceError%": $ReferenceError,
25089
- "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
25090
- "%RegExp%": RegExp,
25091
- "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
25092
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols2 || !getProto ? undefined$1 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
25093
- "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
25094
- "%String%": String,
25095
- "%StringIteratorPrototype%": hasSymbols2 && getProto ? getProto(""[Symbol.iterator]()) : undefined$1,
25096
- "%Symbol%": hasSymbols2 ? Symbol : undefined$1,
25097
- "%SyntaxError%": $SyntaxError,
25098
- "%ThrowTypeError%": ThrowTypeError,
25099
- "%TypedArray%": TypedArray,
25100
- "%TypeError%": $TypeError,
25101
- "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
25102
- "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
25103
- "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
25104
- "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array,
25105
- "%URIError%": $URIError,
25106
- "%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
25107
- "%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
25108
- "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet
25109
- };
25110
- if (getProto) {
25111
- try {
25112
- null.error;
25113
- } catch (e) {
25114
- var errorProto = getProto(getProto(e));
25115
- INTRINSICS["%Error.prototype%"] = errorProto;
25116
- }
25117
- }
25118
- var doEval = function doEval2(name2) {
25119
- var value;
25120
- if (name2 === "%AsyncFunction%") {
25121
- value = getEvalledConstructor("async function () {}");
25122
- } else if (name2 === "%GeneratorFunction%") {
25123
- value = getEvalledConstructor("function* () {}");
25124
- } else if (name2 === "%AsyncGeneratorFunction%") {
25125
- value = getEvalledConstructor("async function* () {}");
25126
- } else if (name2 === "%AsyncGenerator%") {
25127
- var fn = doEval2("%AsyncGeneratorFunction%");
25128
- if (fn) {
25129
- value = fn.prototype;
25130
- }
25131
- } else if (name2 === "%AsyncIteratorPrototype%") {
25132
- var gen = doEval2("%AsyncGenerator%");
25133
- if (gen && getProto) {
25134
- value = getProto(gen.prototype);
25135
- }
25136
- }
25137
- INTRINSICS[name2] = value;
25138
- return value;
25139
- };
25140
- var LEGACY_ALIASES = {
25141
- __proto__: null,
25142
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
25143
- "%ArrayPrototype%": ["Array", "prototype"],
25144
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
25145
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
25146
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
25147
- "%ArrayProto_values%": ["Array", "prototype", "values"],
25148
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
25149
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
25150
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
25151
- "%BooleanPrototype%": ["Boolean", "prototype"],
25152
- "%DataViewPrototype%": ["DataView", "prototype"],
25153
- "%DatePrototype%": ["Date", "prototype"],
25154
- "%ErrorPrototype%": ["Error", "prototype"],
25155
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
25156
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
25157
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
25158
- "%FunctionPrototype%": ["Function", "prototype"],
25159
- "%Generator%": ["GeneratorFunction", "prototype"],
25160
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
25161
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
25162
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
25163
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
25164
- "%JSONParse%": ["JSON", "parse"],
25165
- "%JSONStringify%": ["JSON", "stringify"],
25166
- "%MapPrototype%": ["Map", "prototype"],
25167
- "%NumberPrototype%": ["Number", "prototype"],
25168
- "%ObjectPrototype%": ["Object", "prototype"],
25169
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
25170
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
25171
- "%PromisePrototype%": ["Promise", "prototype"],
25172
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
25173
- "%Promise_all%": ["Promise", "all"],
25174
- "%Promise_reject%": ["Promise", "reject"],
25175
- "%Promise_resolve%": ["Promise", "resolve"],
25176
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
25177
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
25178
- "%RegExpPrototype%": ["RegExp", "prototype"],
25179
- "%SetPrototype%": ["Set", "prototype"],
25180
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
25181
- "%StringPrototype%": ["String", "prototype"],
25182
- "%SymbolPrototype%": ["Symbol", "prototype"],
25183
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
25184
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
25185
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
25186
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
25187
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
25188
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
25189
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
25190
- "%URIErrorPrototype%": ["URIError", "prototype"],
25191
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
25192
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
25193
- };
25194
- var bind2 = requireFunctionBind();
25195
- var hasOwn2 = requireHasown();
25196
- var $concat = bind2.call(Function.call, Array.prototype.concat);
25197
- var $spliceApply = bind2.call(Function.apply, Array.prototype.splice);
25198
- var $replace = bind2.call(Function.call, String.prototype.replace);
25199
- var $strSlice = bind2.call(Function.call, String.prototype.slice);
25200
- var $exec = bind2.call(Function.call, RegExp.prototype.exec);
25201
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
25202
- var reEscapeChar = /\\(\\)?/g;
25203
- var stringToPath = function stringToPath2(string2) {
25204
- var first = $strSlice(string2, 0, 1);
25205
- var last = $strSlice(string2, -1);
25206
- if (first === "%" && last !== "%") {
25207
- throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
25208
- } else if (last === "%" && first !== "%") {
25209
- throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
25210
- }
25211
- var result = [];
25212
- $replace(string2, rePropName, function(match2, number2, quote, subString) {
25213
- result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number2 || match2;
25214
- });
25215
- return result;
25216
- };
25217
- var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
25218
- var intrinsicName = name2;
25219
- var alias;
25220
- if (hasOwn2(LEGACY_ALIASES, intrinsicName)) {
25221
- alias = LEGACY_ALIASES[intrinsicName];
25222
- intrinsicName = "%" + alias[0] + "%";
25223
24929
  }
25224
- if (hasOwn2(INTRINSICS, intrinsicName)) {
25225
- var value = INTRINSICS[intrinsicName];
25226
- if (value === needsEval) {
25227
- value = doEval(intrinsicName);
25228
- }
25229
- if (typeof value === "undefined" && !allowMissing) {
25230
- throw new $TypeError("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
25231
- }
25232
- return {
25233
- alias,
25234
- name: intrinsicName,
25235
- value
25236
- };
24930
+ }
24931
+ }() : throwTypeError;
24932
+ var hasSymbols = hasSymbols$1();
24933
+ var hasProto = hasProto$1();
24934
+ var getProto$1 = Object.getPrototypeOf || (hasProto ? function(x) {
24935
+ return x.__proto__;
24936
+ } : null);
24937
+ var needsEval = {};
24938
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto$1 ? undefined$1 : getProto$1(Uint8Array);
24939
+ var INTRINSICS = {
24940
+ __proto__: null,
24941
+ "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
24942
+ "%Array%": Array,
24943
+ "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
24944
+ "%ArrayIteratorPrototype%": hasSymbols && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
24945
+ "%AsyncFromSyncIteratorPrototype%": undefined$1,
24946
+ "%AsyncFunction%": needsEval,
24947
+ "%AsyncGenerator%": needsEval,
24948
+ "%AsyncGeneratorFunction%": needsEval,
24949
+ "%AsyncIteratorPrototype%": needsEval,
24950
+ "%Atomics%": typeof Atomics === "undefined" ? undefined$1 : Atomics,
24951
+ "%BigInt%": typeof BigInt === "undefined" ? undefined$1 : BigInt,
24952
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined$1 : BigInt64Array,
24953
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined$1 : BigUint64Array,
24954
+ "%Boolean%": Boolean,
24955
+ "%DataView%": typeof DataView === "undefined" ? undefined$1 : DataView,
24956
+ "%Date%": Date,
24957
+ "%decodeURI%": decodeURI,
24958
+ "%decodeURIComponent%": decodeURIComponent,
24959
+ "%encodeURI%": encodeURI,
24960
+ "%encodeURIComponent%": encodeURIComponent,
24961
+ "%Error%": $Error,
24962
+ "%eval%": eval,
24963
+ // eslint-disable-line no-eval
24964
+ "%EvalError%": $EvalError,
24965
+ "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
24966
+ "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
24967
+ "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
24968
+ "%Function%": $Function,
24969
+ "%GeneratorFunction%": needsEval,
24970
+ "%Int8Array%": typeof Int8Array === "undefined" ? undefined$1 : Int8Array,
24971
+ "%Int16Array%": typeof Int16Array === "undefined" ? undefined$1 : Int16Array,
24972
+ "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
24973
+ "%isFinite%": isFinite,
24974
+ "%isNaN%": isNaN,
24975
+ "%IteratorPrototype%": hasSymbols && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
24976
+ "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
24977
+ "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
24978
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
24979
+ "%Math%": Math,
24980
+ "%Number%": Number,
24981
+ "%Object%": Object,
24982
+ "%parseFloat%": parseFloat,
24983
+ "%parseInt%": parseInt,
24984
+ "%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
24985
+ "%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy,
24986
+ "%RangeError%": $RangeError,
24987
+ "%ReferenceError%": $ReferenceError,
24988
+ "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
24989
+ "%RegExp%": RegExp,
24990
+ "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
24991
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
24992
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
24993
+ "%String%": String,
24994
+ "%StringIteratorPrototype%": hasSymbols && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
24995
+ "%Symbol%": hasSymbols ? Symbol : undefined$1,
24996
+ "%SyntaxError%": $SyntaxError$1,
24997
+ "%ThrowTypeError%": ThrowTypeError,
24998
+ "%TypedArray%": TypedArray,
24999
+ "%TypeError%": $TypeError$2,
25000
+ "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
25001
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
25002
+ "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
25003
+ "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array,
25004
+ "%URIError%": $URIError,
25005
+ "%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
25006
+ "%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
25007
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet
25008
+ };
25009
+ if (getProto$1) {
25010
+ try {
25011
+ null.error;
25012
+ } catch (e) {
25013
+ var errorProto = getProto$1(getProto$1(e));
25014
+ INTRINSICS["%Error.prototype%"] = errorProto;
25015
+ }
25016
+ }
25017
+ var doEval = function doEval2(name2) {
25018
+ var value;
25019
+ if (name2 === "%AsyncFunction%") {
25020
+ value = getEvalledConstructor("async function () {}");
25021
+ } else if (name2 === "%GeneratorFunction%") {
25022
+ value = getEvalledConstructor("function* () {}");
25023
+ } else if (name2 === "%AsyncGeneratorFunction%") {
25024
+ value = getEvalledConstructor("async function* () {}");
25025
+ } else if (name2 === "%AsyncGenerator%") {
25026
+ var fn = doEval2("%AsyncGeneratorFunction%");
25027
+ if (fn) {
25028
+ value = fn.prototype;
25029
+ }
25030
+ } else if (name2 === "%AsyncIteratorPrototype%") {
25031
+ var gen = doEval2("%AsyncGenerator%");
25032
+ if (gen && getProto$1) {
25033
+ value = getProto$1(gen.prototype);
25034
+ }
25035
+ }
25036
+ INTRINSICS[name2] = value;
25037
+ return value;
25038
+ };
25039
+ var LEGACY_ALIASES = {
25040
+ __proto__: null,
25041
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
25042
+ "%ArrayPrototype%": ["Array", "prototype"],
25043
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
25044
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
25045
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
25046
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
25047
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
25048
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
25049
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
25050
+ "%BooleanPrototype%": ["Boolean", "prototype"],
25051
+ "%DataViewPrototype%": ["DataView", "prototype"],
25052
+ "%DatePrototype%": ["Date", "prototype"],
25053
+ "%ErrorPrototype%": ["Error", "prototype"],
25054
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
25055
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
25056
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
25057
+ "%FunctionPrototype%": ["Function", "prototype"],
25058
+ "%Generator%": ["GeneratorFunction", "prototype"],
25059
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
25060
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
25061
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
25062
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
25063
+ "%JSONParse%": ["JSON", "parse"],
25064
+ "%JSONStringify%": ["JSON", "stringify"],
25065
+ "%MapPrototype%": ["Map", "prototype"],
25066
+ "%NumberPrototype%": ["Number", "prototype"],
25067
+ "%ObjectPrototype%": ["Object", "prototype"],
25068
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
25069
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
25070
+ "%PromisePrototype%": ["Promise", "prototype"],
25071
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
25072
+ "%Promise_all%": ["Promise", "all"],
25073
+ "%Promise_reject%": ["Promise", "reject"],
25074
+ "%Promise_resolve%": ["Promise", "resolve"],
25075
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
25076
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
25077
+ "%RegExpPrototype%": ["RegExp", "prototype"],
25078
+ "%SetPrototype%": ["Set", "prototype"],
25079
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
25080
+ "%StringPrototype%": ["String", "prototype"],
25081
+ "%SymbolPrototype%": ["Symbol", "prototype"],
25082
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
25083
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
25084
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
25085
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
25086
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
25087
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
25088
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
25089
+ "%URIErrorPrototype%": ["URIError", "prototype"],
25090
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
25091
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
25092
+ };
25093
+ var bind$1 = functionBind;
25094
+ var hasOwn = hasown;
25095
+ var $concat = bind$1.call(Function.call, Array.prototype.concat);
25096
+ var $spliceApply = bind$1.call(Function.apply, Array.prototype.splice);
25097
+ var $replace = bind$1.call(Function.call, String.prototype.replace);
25098
+ var $strSlice = bind$1.call(Function.call, String.prototype.slice);
25099
+ var $exec = bind$1.call(Function.call, RegExp.prototype.exec);
25100
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
25101
+ var reEscapeChar = /\\(\\)?/g;
25102
+ var stringToPath = function stringToPath2(string2) {
25103
+ var first = $strSlice(string2, 0, 1);
25104
+ var last = $strSlice(string2, -1);
25105
+ if (first === "%" && last !== "%") {
25106
+ throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");
25107
+ } else if (last === "%" && first !== "%") {
25108
+ throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");
25109
+ }
25110
+ var result = [];
25111
+ $replace(string2, rePropName, function(match2, number2, quote, subString) {
25112
+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number2 || match2;
25113
+ });
25114
+ return result;
25115
+ };
25116
+ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
25117
+ var intrinsicName = name2;
25118
+ var alias;
25119
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
25120
+ alias = LEGACY_ALIASES[intrinsicName];
25121
+ intrinsicName = "%" + alias[0] + "%";
25122
+ }
25123
+ if (hasOwn(INTRINSICS, intrinsicName)) {
25124
+ var value = INTRINSICS[intrinsicName];
25125
+ if (value === needsEval) {
25126
+ value = doEval(intrinsicName);
25237
25127
  }
25238
- throw new $SyntaxError("intrinsic " + name2 + " does not exist!");
25239
- };
25240
- getIntrinsic = function GetIntrinsic(name2, allowMissing) {
25241
- if (typeof name2 !== "string" || name2.length === 0) {
25242
- throw new $TypeError("intrinsic name must be a non-empty string");
25243
- }
25244
- if (arguments.length > 1 && typeof allowMissing !== "boolean") {
25245
- throw new $TypeError('"allowMissing" argument must be a boolean');
25246
- }
25247
- if ($exec(/^%?[^%]*%?$/, name2) === null) {
25248
- throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
25249
- }
25250
- var parts = stringToPath(name2);
25251
- var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
25252
- var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
25253
- var intrinsicRealName = intrinsic.name;
25254
- var value = intrinsic.value;
25255
- var skipFurtherCaching = false;
25256
- var alias = intrinsic.alias;
25257
- if (alias) {
25258
- intrinsicBaseName = alias[0];
25259
- $spliceApply(parts, $concat([0, 1], alias));
25260
- }
25261
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
25262
- var part = parts[i];
25263
- var first = $strSlice(part, 0, 1);
25264
- var last = $strSlice(part, -1);
25265
- if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
25266
- throw new $SyntaxError("property names with quotes must have matching quotes");
25267
- }
25268
- if (part === "constructor" || !isOwn) {
25269
- skipFurtherCaching = true;
25270
- }
25271
- intrinsicBaseName += "." + part;
25272
- intrinsicRealName = "%" + intrinsicBaseName + "%";
25273
- if (hasOwn2(INTRINSICS, intrinsicRealName)) {
25274
- value = INTRINSICS[intrinsicRealName];
25275
- } else if (value != null) {
25276
- if (!(part in value)) {
25277
- if (!allowMissing) {
25278
- throw new $TypeError("base intrinsic for " + name2 + " exists, but the property is not available.");
25279
- }
25280
- return void 0;
25128
+ if (typeof value === "undefined" && !allowMissing) {
25129
+ throw new $TypeError$2("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
25130
+ }
25131
+ return {
25132
+ alias,
25133
+ name: intrinsicName,
25134
+ value
25135
+ };
25136
+ }
25137
+ throw new $SyntaxError$1("intrinsic " + name2 + " does not exist!");
25138
+ };
25139
+ var getIntrinsic = function GetIntrinsic2(name2, allowMissing) {
25140
+ if (typeof name2 !== "string" || name2.length === 0) {
25141
+ throw new $TypeError$2("intrinsic name must be a non-empty string");
25142
+ }
25143
+ if (arguments.length > 1 && typeof allowMissing !== "boolean") {
25144
+ throw new $TypeError$2('"allowMissing" argument must be a boolean');
25145
+ }
25146
+ if ($exec(/^%?[^%]*%?$/, name2) === null) {
25147
+ throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
25148
+ }
25149
+ var parts = stringToPath(name2);
25150
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
25151
+ var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
25152
+ var intrinsicRealName = intrinsic.name;
25153
+ var value = intrinsic.value;
25154
+ var skipFurtherCaching = false;
25155
+ var alias = intrinsic.alias;
25156
+ if (alias) {
25157
+ intrinsicBaseName = alias[0];
25158
+ $spliceApply(parts, $concat([0, 1], alias));
25159
+ }
25160
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
25161
+ var part = parts[i];
25162
+ var first = $strSlice(part, 0, 1);
25163
+ var last = $strSlice(part, -1);
25164
+ if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
25165
+ throw new $SyntaxError$1("property names with quotes must have matching quotes");
25166
+ }
25167
+ if (part === "constructor" || !isOwn) {
25168
+ skipFurtherCaching = true;
25169
+ }
25170
+ intrinsicBaseName += "." + part;
25171
+ intrinsicRealName = "%" + intrinsicBaseName + "%";
25172
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
25173
+ value = INTRINSICS[intrinsicRealName];
25174
+ } else if (value != null) {
25175
+ if (!(part in value)) {
25176
+ if (!allowMissing) {
25177
+ throw new $TypeError$2("base intrinsic for " + name2 + " exists, but the property is not available.");
25281
25178
  }
25282
- if ($gOPD && i + 1 >= parts.length) {
25283
- var desc = $gOPD(value, part);
25284
- isOwn = !!desc;
25285
- if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
25286
- value = desc.get;
25287
- } else {
25288
- value = value[part];
25289
- }
25179
+ return void 0;
25180
+ }
25181
+ if ($gOPD$1 && i + 1 >= parts.length) {
25182
+ var desc = $gOPD$1(value, part);
25183
+ isOwn = !!desc;
25184
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
25185
+ value = desc.get;
25290
25186
  } else {
25291
- isOwn = hasOwn2(value, part);
25292
25187
  value = value[part];
25293
25188
  }
25294
- if (isOwn && !skipFurtherCaching) {
25295
- INTRINSICS[intrinsicRealName] = value;
25296
- }
25189
+ } else {
25190
+ isOwn = hasOwn(value, part);
25191
+ value = value[part];
25192
+ }
25193
+ if (isOwn && !skipFurtherCaching) {
25194
+ INTRINSICS[intrinsicRealName] = value;
25297
25195
  }
25298
25196
  }
25299
- return value;
25300
- };
25301
- return getIntrinsic;
25302
- }
25303
- var callBind = { exports: {} };
25197
+ }
25198
+ return value;
25199
+ };
25200
+ var callBind$2 = { exports: {} };
25304
25201
  var esDefineProperty;
25305
25202
  var hasRequiredEsDefineProperty;
25306
25203
  function requireEsDefineProperty() {
25307
25204
  if (hasRequiredEsDefineProperty) return esDefineProperty;
25308
25205
  hasRequiredEsDefineProperty = 1;
25309
- var GetIntrinsic = requireGetIntrinsic();
25310
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
25311
- if ($defineProperty) {
25206
+ var GetIntrinsic3 = getIntrinsic;
25207
+ var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
25208
+ if ($defineProperty2) {
25312
25209
  try {
25313
- $defineProperty({}, "a", { value: 1 });
25210
+ $defineProperty2({}, "a", { value: 1 });
25314
25211
  } catch (e) {
25315
- $defineProperty = false;
25212
+ $defineProperty2 = false;
25316
25213
  }
25317
25214
  }
25318
- esDefineProperty = $defineProperty;
25215
+ esDefineProperty = $defineProperty2;
25319
25216
  return esDefineProperty;
25320
25217
  }
25321
- var gopd;
25322
- var hasRequiredGopd;
25323
- function requireGopd() {
25324
- if (hasRequiredGopd) return gopd;
25325
- hasRequiredGopd = 1;
25326
- var GetIntrinsic = requireGetIntrinsic();
25327
- var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
25328
- if ($gOPD) {
25329
- try {
25330
- $gOPD([], "length");
25331
- } catch (e) {
25332
- $gOPD = null;
25333
- }
25334
- }
25335
- gopd = $gOPD;
25336
- return gopd;
25337
- }
25338
- var defineDataProperty;
25339
- var hasRequiredDefineDataProperty;
25340
- function requireDefineDataProperty() {
25341
- if (hasRequiredDefineDataProperty) return defineDataProperty;
25342
- hasRequiredDefineDataProperty = 1;
25343
- var $defineProperty = requireEsDefineProperty();
25344
- var $SyntaxError = requireSyntax();
25345
- var $TypeError = requireType();
25346
- var gopd2 = requireGopd();
25347
- defineDataProperty = function defineDataProperty2(obj, property2, value) {
25348
- if (!obj || typeof obj !== "object" && typeof obj !== "function") {
25349
- throw new $TypeError("`obj` must be an object or a function`");
25350
- }
25351
- if (typeof property2 !== "string" && typeof property2 !== "symbol") {
25352
- throw new $TypeError("`property` must be a string or a symbol`");
25353
- }
25354
- if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
25355
- throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
25356
- }
25357
- if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
25358
- throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
25359
- }
25360
- if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
25361
- throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
25362
- }
25363
- if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
25364
- throw new $TypeError("`loose`, if provided, must be a boolean");
25365
- }
25366
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
25367
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
25368
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
25369
- var loose = arguments.length > 6 ? arguments[6] : false;
25370
- var desc = !!gopd2 && gopd2(obj, property2);
25371
- if ($defineProperty) {
25372
- $defineProperty(obj, property2, {
25373
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
25374
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
25375
- value,
25376
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
25377
- });
25378
- } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
25379
- obj[property2] = value;
25380
- } else {
25381
- throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
25382
- }
25383
- };
25384
- return defineDataProperty;
25385
- }
25386
- var hasPropertyDescriptors_1;
25387
- var hasRequiredHasPropertyDescriptors;
25388
- function requireHasPropertyDescriptors() {
25389
- if (hasRequiredHasPropertyDescriptors) return hasPropertyDescriptors_1;
25390
- hasRequiredHasPropertyDescriptors = 1;
25391
- var $defineProperty = requireEsDefineProperty();
25392
- var hasPropertyDescriptors = function hasPropertyDescriptors2() {
25393
- return !!$defineProperty;
25394
- };
25395
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
25396
- if (!$defineProperty) {
25397
- return null;
25398
- }
25399
- try {
25400
- return $defineProperty([], "length", { value: 1 }).length !== 1;
25401
- } catch (e) {
25402
- return true;
25218
+ var GetIntrinsic$2 = getIntrinsic;
25219
+ var $gOPD = GetIntrinsic$2("%Object.getOwnPropertyDescriptor%", true);
25220
+ if ($gOPD) {
25221
+ try {
25222
+ $gOPD([], "length");
25223
+ } catch (e) {
25224
+ $gOPD = null;
25225
+ }
25226
+ }
25227
+ var gopd$1 = $gOPD;
25228
+ var $defineProperty$1 = requireEsDefineProperty();
25229
+ var $SyntaxError = syntax;
25230
+ var $TypeError$1 = type;
25231
+ var gopd = gopd$1;
25232
+ var defineDataProperty = function defineDataProperty2(obj, property2, value) {
25233
+ if (!obj || typeof obj !== "object" && typeof obj !== "function") {
25234
+ throw new $TypeError$1("`obj` must be an object or a function`");
25235
+ }
25236
+ if (typeof property2 !== "string" && typeof property2 !== "symbol") {
25237
+ throw new $TypeError$1("`property` must be a string or a symbol`");
25238
+ }
25239
+ if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
25240
+ throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");
25241
+ }
25242
+ if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
25243
+ throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");
25244
+ }
25245
+ if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
25246
+ throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");
25247
+ }
25248
+ if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
25249
+ throw new $TypeError$1("`loose`, if provided, must be a boolean");
25250
+ }
25251
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
25252
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
25253
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
25254
+ var loose = arguments.length > 6 ? arguments[6] : false;
25255
+ var desc = !!gopd && gopd(obj, property2);
25256
+ if ($defineProperty$1) {
25257
+ $defineProperty$1(obj, property2, {
25258
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
25259
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
25260
+ value,
25261
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
25262
+ });
25263
+ } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
25264
+ obj[property2] = value;
25265
+ } else {
25266
+ throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
25267
+ }
25268
+ };
25269
+ var $defineProperty = requireEsDefineProperty();
25270
+ var hasPropertyDescriptors = function hasPropertyDescriptors2() {
25271
+ return !!$defineProperty;
25272
+ };
25273
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
25274
+ if (!$defineProperty) {
25275
+ return null;
25276
+ }
25277
+ try {
25278
+ return $defineProperty([], "length", { value: 1 }).length !== 1;
25279
+ } catch (e) {
25280
+ return true;
25281
+ }
25282
+ };
25283
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors;
25284
+ var GetIntrinsic$1 = getIntrinsic;
25285
+ var define = defineDataProperty;
25286
+ var hasDescriptors = hasPropertyDescriptors_1();
25287
+ var gOPD$1 = gopd$1;
25288
+ var $TypeError = type;
25289
+ var $floor = GetIntrinsic$1("%Math.floor%");
25290
+ var setFunctionLength = function setFunctionLength2(fn, length) {
25291
+ if (typeof fn !== "function") {
25292
+ throw new $TypeError("`fn` is not a function");
25293
+ }
25294
+ if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
25295
+ throw new $TypeError("`length` must be a positive 32-bit integer");
25296
+ }
25297
+ var loose = arguments.length > 2 && !!arguments[2];
25298
+ var functionLengthIsConfigurable = true;
25299
+ var functionLengthIsWritable = true;
25300
+ if ("length" in fn && gOPD$1) {
25301
+ var desc = gOPD$1(fn, "length");
25302
+ if (desc && !desc.configurable) {
25303
+ functionLengthIsConfigurable = false;
25403
25304
  }
25404
- };
25405
- hasPropertyDescriptors_1 = hasPropertyDescriptors;
25406
- return hasPropertyDescriptors_1;
25407
- }
25408
- var setFunctionLength;
25409
- var hasRequiredSetFunctionLength;
25410
- function requireSetFunctionLength() {
25411
- if (hasRequiredSetFunctionLength) return setFunctionLength;
25412
- hasRequiredSetFunctionLength = 1;
25413
- var GetIntrinsic = requireGetIntrinsic();
25414
- var define = requireDefineDataProperty();
25415
- var hasDescriptors = requireHasPropertyDescriptors()();
25416
- var gOPD = requireGopd();
25417
- var $TypeError = requireType();
25418
- var $floor = GetIntrinsic("%Math.floor%");
25419
- setFunctionLength = function setFunctionLength2(fn, length) {
25420
- if (typeof fn !== "function") {
25421
- throw new $TypeError("`fn` is not a function");
25422
- }
25423
- if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
25424
- throw new $TypeError("`length` must be a positive 32-bit integer");
25425
- }
25426
- var loose = arguments.length > 2 && !!arguments[2];
25427
- var functionLengthIsConfigurable = true;
25428
- var functionLengthIsWritable = true;
25429
- if ("length" in fn && gOPD) {
25430
- var desc = gOPD(fn, "length");
25431
- if (desc && !desc.configurable) {
25432
- functionLengthIsConfigurable = false;
25433
- }
25434
- if (desc && !desc.writable) {
25435
- functionLengthIsWritable = false;
25436
- }
25437
- }
25438
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
25439
- if (hasDescriptors) {
25440
- define(
25441
- /** @type {Parameters<define>[0]} */
25442
- fn,
25443
- "length",
25444
- length,
25445
- true,
25446
- true
25447
- );
25448
- } else {
25449
- define(
25450
- /** @type {Parameters<define>[0]} */
25451
- fn,
25452
- "length",
25453
- length
25454
- );
25455
- }
25305
+ if (desc && !desc.writable) {
25306
+ functionLengthIsWritable = false;
25456
25307
  }
25457
- return fn;
25458
- };
25459
- return setFunctionLength;
25460
- }
25461
- var hasRequiredCallBind;
25462
- function requireCallBind() {
25463
- if (hasRequiredCallBind) return callBind.exports;
25464
- hasRequiredCallBind = 1;
25465
- (function(module2) {
25466
- var bind2 = requireFunctionBind();
25467
- var GetIntrinsic = requireGetIntrinsic();
25468
- var setFunctionLength2 = requireSetFunctionLength();
25469
- var $TypeError = requireType();
25470
- var $apply = GetIntrinsic("%Function.prototype.apply%");
25471
- var $call = GetIntrinsic("%Function.prototype.call%");
25472
- var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind2.call($call, $apply);
25473
- var $defineProperty = requireEsDefineProperty();
25474
- var $max = GetIntrinsic("%Math.max%");
25475
- module2.exports = function callBind2(originalFunction) {
25476
- if (typeof originalFunction !== "function") {
25477
- throw new $TypeError("a function is required");
25478
- }
25479
- var func2 = $reflectApply(bind2, $call, arguments);
25480
- return setFunctionLength2(
25481
- func2,
25482
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
25308
+ }
25309
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
25310
+ if (hasDescriptors) {
25311
+ define(
25312
+ /** @type {Parameters<define>[0]} */
25313
+ fn,
25314
+ "length",
25315
+ length,
25316
+ true,
25483
25317
  true
25484
25318
  );
25485
- };
25486
- var applyBind = function applyBind2() {
25487
- return $reflectApply(bind2, $apply, arguments);
25488
- };
25489
- if ($defineProperty) {
25490
- $defineProperty(module2.exports, "apply", { value: applyBind });
25491
25319
  } else {
25492
- module2.exports.apply = applyBind;
25493
- }
25494
- })(callBind);
25495
- return callBind.exports;
25496
- }
25497
- var callBound;
25498
- var hasRequiredCallBound;
25499
- function requireCallBound() {
25500
- if (hasRequiredCallBound) return callBound;
25501
- hasRequiredCallBound = 1;
25502
- var GetIntrinsic = requireGetIntrinsic();
25503
- var callBind2 = requireCallBind();
25504
- var $indexOf = callBind2(GetIntrinsic("String.prototype.indexOf"));
25505
- callBound = function callBoundIntrinsic(name2, allowMissing) {
25506
- var intrinsic = GetIntrinsic(name2, !!allowMissing);
25507
- if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
25508
- return callBind2(intrinsic);
25509
- }
25510
- return intrinsic;
25511
- };
25512
- return callBound;
25513
- }
25514
- var isArguments$2;
25515
- var hasRequiredIsArguments;
25516
- function requireIsArguments() {
25517
- if (hasRequiredIsArguments) return isArguments$2;
25518
- hasRequiredIsArguments = 1;
25519
- var hasToStringTag = requireShams()();
25520
- var callBound2 = requireCallBound();
25521
- var $toString = callBound2("Object.prototype.toString");
25522
- var isStandardArguments = function isArguments2(value) {
25523
- if (hasToStringTag && value && typeof value === "object" && Symbol.toStringTag in value) {
25524
- return false;
25320
+ define(
25321
+ /** @type {Parameters<define>[0]} */
25322
+ fn,
25323
+ "length",
25324
+ length
25325
+ );
25525
25326
  }
25526
- return $toString(value) === "[object Arguments]";
25327
+ }
25328
+ return fn;
25329
+ };
25330
+ (function(module2) {
25331
+ var bind3 = functionBind;
25332
+ var GetIntrinsic3 = getIntrinsic;
25333
+ var setFunctionLength$1 = setFunctionLength;
25334
+ var $TypeError2 = type;
25335
+ var $apply = GetIntrinsic3("%Function.prototype.apply%");
25336
+ var $call = GetIntrinsic3("%Function.prototype.call%");
25337
+ var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
25338
+ var $defineProperty2 = requireEsDefineProperty();
25339
+ var $max = GetIntrinsic3("%Math.max%");
25340
+ module2.exports = function callBind2(originalFunction) {
25341
+ if (typeof originalFunction !== "function") {
25342
+ throw new $TypeError2("a function is required");
25343
+ }
25344
+ var func2 = $reflectApply(bind3, $call, arguments);
25345
+ return setFunctionLength$1(
25346
+ func2,
25347
+ 1 + $max(0, originalFunction.length - (arguments.length - 1)),
25348
+ true
25349
+ );
25527
25350
  };
25528
- var isLegacyArguments = function isArguments2(value) {
25529
- if (isStandardArguments(value)) {
25530
- return true;
25531
- }
25532
- return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]";
25351
+ var applyBind = function applyBind2() {
25352
+ return $reflectApply(bind3, $apply, arguments);
25533
25353
  };
25534
- var supportsStandardArguments = function() {
25535
- return isStandardArguments(arguments);
25536
- }();
25537
- isStandardArguments.isLegacyArguments = isLegacyArguments;
25538
- isArguments$2 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
25539
- return isArguments$2;
25540
- }
25541
- var isGeneratorFunction;
25542
- var hasRequiredIsGeneratorFunction;
25543
- function requireIsGeneratorFunction() {
25544
- if (hasRequiredIsGeneratorFunction) return isGeneratorFunction;
25545
- hasRequiredIsGeneratorFunction = 1;
25546
- var toStr = Object.prototype.toString;
25547
- var fnToStr = Function.prototype.toString;
25548
- var isFnRegex = /^\s*(?:function)?\*/;
25549
- var hasToStringTag = requireShams()();
25550
- var getProto = Object.getPrototypeOf;
25551
- var getGeneratorFunc = function() {
25552
- if (!hasToStringTag) {
25553
- return false;
25554
- }
25555
- try {
25556
- return Function("return function*() {}")();
25557
- } catch (e) {
25354
+ if ($defineProperty2) {
25355
+ $defineProperty2(module2.exports, "apply", { value: applyBind });
25356
+ } else {
25357
+ module2.exports.apply = applyBind;
25358
+ }
25359
+ })(callBind$2);
25360
+ var callBindExports = callBind$2.exports;
25361
+ var GetIntrinsic = getIntrinsic;
25362
+ var callBind$1 = callBindExports;
25363
+ var $indexOf$1 = callBind$1(GetIntrinsic("String.prototype.indexOf"));
25364
+ var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
25365
+ var intrinsic = GetIntrinsic(name2, !!allowMissing);
25366
+ if (typeof intrinsic === "function" && $indexOf$1(name2, ".prototype.") > -1) {
25367
+ return callBind$1(intrinsic);
25368
+ }
25369
+ return intrinsic;
25370
+ };
25371
+ var hasToStringTag$3 = shams();
25372
+ var callBound$1 = callBound$2;
25373
+ var $toString$1 = callBound$1("Object.prototype.toString");
25374
+ var isStandardArguments = function isArguments2(value) {
25375
+ if (hasToStringTag$3 && value && typeof value === "object" && Symbol.toStringTag in value) {
25376
+ return false;
25377
+ }
25378
+ return $toString$1(value) === "[object Arguments]";
25379
+ };
25380
+ var isLegacyArguments = function isArguments3(value) {
25381
+ if (isStandardArguments(value)) {
25382
+ return true;
25383
+ }
25384
+ return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString$1(value) !== "[object Array]" && $toString$1(value.callee) === "[object Function]";
25385
+ };
25386
+ var supportsStandardArguments = function() {
25387
+ return isStandardArguments(arguments);
25388
+ }();
25389
+ isStandardArguments.isLegacyArguments = isLegacyArguments;
25390
+ var isArguments$2 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
25391
+ var toStr$2 = Object.prototype.toString;
25392
+ var fnToStr$1 = Function.prototype.toString;
25393
+ var isFnRegex = /^\s*(?:function)?\*/;
25394
+ var hasToStringTag$2 = shams();
25395
+ var getProto = Object.getPrototypeOf;
25396
+ var getGeneratorFunc = function() {
25397
+ if (!hasToStringTag$2) {
25398
+ return false;
25399
+ }
25400
+ try {
25401
+ return Function("return function*() {}")();
25402
+ } catch (e) {
25403
+ }
25404
+ };
25405
+ var GeneratorFunction;
25406
+ var isGeneratorFunction = function isGeneratorFunction2(fn) {
25407
+ if (typeof fn !== "function") {
25408
+ return false;
25409
+ }
25410
+ if (isFnRegex.test(fnToStr$1.call(fn))) {
25411
+ return true;
25412
+ }
25413
+ if (!hasToStringTag$2) {
25414
+ var str = toStr$2.call(fn);
25415
+ return str === "[object GeneratorFunction]";
25416
+ }
25417
+ if (!getProto) {
25418
+ return false;
25419
+ }
25420
+ if (typeof GeneratorFunction === "undefined") {
25421
+ var generatorFunc = getGeneratorFunc();
25422
+ GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
25423
+ }
25424
+ return getProto(fn) === GeneratorFunction;
25425
+ };
25426
+ var fnToStr = Function.prototype.toString;
25427
+ var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
25428
+ var badArrayLike;
25429
+ var isCallableMarker;
25430
+ if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") {
25431
+ try {
25432
+ badArrayLike = Object.defineProperty({}, "length", {
25433
+ get: function() {
25434
+ throw isCallableMarker;
25435
+ }
25436
+ });
25437
+ isCallableMarker = {};
25438
+ reflectApply(function() {
25439
+ throw 42;
25440
+ }, null, badArrayLike);
25441
+ } catch (_2) {
25442
+ if (_2 !== isCallableMarker) {
25443
+ reflectApply = null;
25558
25444
  }
25559
- };
25560
- var GeneratorFunction;
25561
- isGeneratorFunction = function isGeneratorFunction2(fn) {
25562
- if (typeof fn !== "function") {
25445
+ }
25446
+ } else {
25447
+ reflectApply = null;
25448
+ }
25449
+ var constructorRegex = /^\s*class\b/;
25450
+ var isES6ClassFn = function isES6ClassFunction(value) {
25451
+ try {
25452
+ var fnStr = fnToStr.call(value);
25453
+ return constructorRegex.test(fnStr);
25454
+ } catch (e) {
25455
+ return false;
25456
+ }
25457
+ };
25458
+ var tryFunctionObject = function tryFunctionToStr(value) {
25459
+ try {
25460
+ if (isES6ClassFn(value)) {
25563
25461
  return false;
25564
25462
  }
25565
- if (isFnRegex.test(fnToStr.call(fn))) {
25566
- return true;
25567
- }
25568
- if (!hasToStringTag) {
25569
- var str = toStr.call(fn);
25570
- return str === "[object GeneratorFunction]";
25571
- }
25572
- if (!getProto) {
25463
+ fnToStr.call(value);
25464
+ return true;
25465
+ } catch (e) {
25466
+ return false;
25467
+ }
25468
+ };
25469
+ var toStr$1 = Object.prototype.toString;
25470
+ var objectClass = "[object Object]";
25471
+ var fnClass = "[object Function]";
25472
+ var genClass = "[object GeneratorFunction]";
25473
+ var ddaClass = "[object HTMLAllCollection]";
25474
+ var ddaClass2 = "[object HTML document.all class]";
25475
+ var ddaClass3 = "[object HTMLCollection]";
25476
+ var hasToStringTag$1 = typeof Symbol === "function" && !!Symbol.toStringTag;
25477
+ var isIE68 = !(0 in [,]);
25478
+ var isDDA = function isDocumentDotAll() {
25479
+ return false;
25480
+ };
25481
+ if (typeof document === "object") {
25482
+ var all = document.all;
25483
+ if (toStr$1.call(all) === toStr$1.call(document.all)) {
25484
+ isDDA = function isDocumentDotAll2(value) {
25485
+ if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) {
25486
+ try {
25487
+ var str = toStr$1.call(value);
25488
+ return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
25489
+ } catch (e) {
25490
+ }
25491
+ }
25492
+ return false;
25493
+ };
25494
+ }
25495
+ }
25496
+ var isCallable$1 = reflectApply ? function isCallable2(value) {
25497
+ if (isDDA(value)) {
25498
+ return true;
25499
+ }
25500
+ if (!value) {
25501
+ return false;
25502
+ }
25503
+ if (typeof value !== "function" && typeof value !== "object") {
25504
+ return false;
25505
+ }
25506
+ try {
25507
+ reflectApply(value, null, badArrayLike);
25508
+ } catch (e) {
25509
+ if (e !== isCallableMarker) {
25573
25510
  return false;
25574
25511
  }
25575
- if (typeof GeneratorFunction === "undefined") {
25576
- var generatorFunc = getGeneratorFunc();
25577
- GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
25512
+ }
25513
+ return !isES6ClassFn(value) && tryFunctionObject(value);
25514
+ } : function isCallable3(value) {
25515
+ if (isDDA(value)) {
25516
+ return true;
25517
+ }
25518
+ if (!value) {
25519
+ return false;
25520
+ }
25521
+ if (typeof value !== "function" && typeof value !== "object") {
25522
+ return false;
25523
+ }
25524
+ if (hasToStringTag$1) {
25525
+ return tryFunctionObject(value);
25526
+ }
25527
+ if (isES6ClassFn(value)) {
25528
+ return false;
25529
+ }
25530
+ var strClass = toStr$1.call(value);
25531
+ if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
25532
+ return false;
25533
+ }
25534
+ return tryFunctionObject(value);
25535
+ };
25536
+ var isCallable = isCallable$1;
25537
+ var toStr = Object.prototype.toString;
25538
+ var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
25539
+ var forEachArray = function forEachArray2(array, iterator, receiver) {
25540
+ for (var i = 0, len = array.length; i < len; i++) {
25541
+ if (hasOwnProperty$1.call(array, i)) {
25542
+ if (receiver == null) {
25543
+ iterator(array[i], i, array);
25544
+ } else {
25545
+ iterator.call(receiver, array[i], i, array);
25546
+ }
25578
25547
  }
25579
- return getProto(fn) === GeneratorFunction;
25580
- };
25581
- return isGeneratorFunction;
25582
- }
25583
- var isCallable;
25584
- var hasRequiredIsCallable;
25585
- function requireIsCallable() {
25586
- if (hasRequiredIsCallable) return isCallable;
25587
- hasRequiredIsCallable = 1;
25588
- var fnToStr = Function.prototype.toString;
25589
- var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
25590
- var badArrayLike;
25591
- var isCallableMarker;
25592
- if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") {
25593
- try {
25594
- badArrayLike = Object.defineProperty({}, "length", {
25595
- get: function() {
25596
- throw isCallableMarker;
25597
- }
25598
- });
25599
- isCallableMarker = {};
25600
- reflectApply(function() {
25601
- throw 42;
25602
- }, null, badArrayLike);
25603
- } catch (_2) {
25604
- if (_2 !== isCallableMarker) {
25605
- reflectApply = null;
25548
+ }
25549
+ };
25550
+ var forEachString = function forEachString2(string2, iterator, receiver) {
25551
+ for (var i = 0, len = string2.length; i < len; i++) {
25552
+ if (receiver == null) {
25553
+ iterator(string2.charAt(i), i, string2);
25554
+ } else {
25555
+ iterator.call(receiver, string2.charAt(i), i, string2);
25556
+ }
25557
+ }
25558
+ };
25559
+ var forEachObject = function forEachObject2(object, iterator, receiver) {
25560
+ for (var k in object) {
25561
+ if (hasOwnProperty$1.call(object, k)) {
25562
+ if (receiver == null) {
25563
+ iterator(object[k], k, object);
25564
+ } else {
25565
+ iterator.call(receiver, object[k], k, object);
25606
25566
  }
25607
25567
  }
25568
+ }
25569
+ };
25570
+ var forEach$1 = function forEach2(list, iterator, thisArg) {
25571
+ if (!isCallable(iterator)) {
25572
+ throw new TypeError("iterator must be a function");
25573
+ }
25574
+ var receiver;
25575
+ if (arguments.length >= 3) {
25576
+ receiver = thisArg;
25577
+ }
25578
+ if (toStr.call(list) === "[object Array]") {
25579
+ forEachArray(list, iterator, receiver);
25580
+ } else if (typeof list === "string") {
25581
+ forEachString(list, iterator, receiver);
25608
25582
  } else {
25609
- reflectApply = null;
25583
+ forEachObject(list, iterator, receiver);
25584
+ }
25585
+ };
25586
+ var forEach_1 = forEach$1;
25587
+ var possibleTypedArrayNames = [
25588
+ "Float32Array",
25589
+ "Float64Array",
25590
+ "Int8Array",
25591
+ "Int16Array",
25592
+ "Int32Array",
25593
+ "Uint8Array",
25594
+ "Uint8ClampedArray",
25595
+ "Uint16Array",
25596
+ "Uint32Array",
25597
+ "BigInt64Array",
25598
+ "BigUint64Array"
25599
+ ];
25600
+ var possibleNames = possibleTypedArrayNames;
25601
+ var g$1 = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
25602
+ var availableTypedArrays$1 = function availableTypedArrays2() {
25603
+ var out = [];
25604
+ for (var i = 0; i < possibleNames.length; i++) {
25605
+ if (typeof g$1[possibleNames[i]] === "function") {
25606
+ out[out.length] = possibleNames[i];
25607
+ }
25610
25608
  }
25611
- var constructorRegex = /^\s*class\b/;
25612
- var isES6ClassFn = function isES6ClassFunction(value) {
25613
- try {
25614
- var fnStr = fnToStr.call(value);
25615
- return constructorRegex.test(fnStr);
25616
- } catch (e) {
25617
- return false;
25609
+ return out;
25610
+ };
25611
+ var forEach = forEach_1;
25612
+ var availableTypedArrays = availableTypedArrays$1;
25613
+ var callBind = callBindExports;
25614
+ var callBound = callBound$2;
25615
+ var gOPD = gopd$1;
25616
+ var $toString = callBound("Object.prototype.toString");
25617
+ var hasToStringTag = shams();
25618
+ var g = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
25619
+ var typedArrays = availableTypedArrays();
25620
+ var $slice = callBound("String.prototype.slice");
25621
+ var getPrototypeOf = Object.getPrototypeOf;
25622
+ var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
25623
+ for (var i = 0; i < array.length; i += 1) {
25624
+ if (array[i] === value) {
25625
+ return i;
25618
25626
  }
25619
- };
25620
- var tryFunctionObject = function tryFunctionToStr(value) {
25621
- try {
25622
- if (isES6ClassFn(value)) {
25623
- return false;
25627
+ }
25628
+ return -1;
25629
+ };
25630
+ var cache$1 = { __proto__: null };
25631
+ if (hasToStringTag && gOPD && getPrototypeOf) {
25632
+ forEach(typedArrays, function(typedArray) {
25633
+ var arr = new g[typedArray]();
25634
+ if (Symbol.toStringTag in arr) {
25635
+ var proto = getPrototypeOf(arr);
25636
+ var descriptor = gOPD(proto, Symbol.toStringTag);
25637
+ if (!descriptor) {
25638
+ var superProto = getPrototypeOf(proto);
25639
+ descriptor = gOPD(superProto, Symbol.toStringTag);
25624
25640
  }
25625
- fnToStr.call(value);
25626
- return true;
25627
- } catch (e) {
25628
- return false;
25641
+ cache$1["$" + typedArray] = callBind(descriptor.get);
25629
25642
  }
25630
- };
25631
- var toStr = Object.prototype.toString;
25632
- var objectClass = "[object Object]";
25633
- var fnClass = "[object Function]";
25634
- var genClass = "[object GeneratorFunction]";
25635
- var ddaClass = "[object HTMLAllCollection]";
25636
- var ddaClass2 = "[object HTML document.all class]";
25637
- var ddaClass3 = "[object HTMLCollection]";
25638
- var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
25639
- var isIE68 = !(0 in [,]);
25640
- var isDDA = function isDocumentDotAll() {
25641
- return false;
25642
- };
25643
- if (typeof document === "object") {
25644
- var all = document.all;
25645
- if (toStr.call(all) === toStr.call(document.all)) {
25646
- isDDA = function isDocumentDotAll(value) {
25647
- if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) {
25648
- try {
25649
- var str = toStr.call(value);
25650
- return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
25651
- } catch (e) {
25643
+ });
25644
+ } else {
25645
+ forEach(typedArrays, function(typedArray) {
25646
+ var arr = new g[typedArray]();
25647
+ var fn = arr.slice || arr.set;
25648
+ if (fn) {
25649
+ cache$1["$" + typedArray] = callBind(fn);
25650
+ }
25651
+ });
25652
+ }
25653
+ var tryTypedArrays = function tryAllTypedArrays(value) {
25654
+ var found = false;
25655
+ forEach(
25656
+ // eslint-disable-next-line no-extra-parens
25657
+ /** @type {Record<`\$${TypedArrayName}`, Getter>} */
25658
+ /** @type {any} */
25659
+ cache$1,
25660
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
25661
+ function(getter, typedArray) {
25662
+ if (!found) {
25663
+ try {
25664
+ if ("$" + getter(value) === typedArray) {
25665
+ found = $slice(typedArray, 1);
25652
25666
  }
25667
+ } catch (e) {
25653
25668
  }
25654
- return false;
25655
- };
25669
+ }
25656
25670
  }
25671
+ );
25672
+ return found;
25673
+ };
25674
+ var trySlices = function tryAllSlices(value) {
25675
+ var found = false;
25676
+ forEach(
25677
+ // eslint-disable-next-line no-extra-parens
25678
+ /** @type {Record<`\$${TypedArrayName}`, Getter>} */
25679
+ /** @type {any} */
25680
+ cache$1,
25681
+ /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
25682
+ function(getter, name2) {
25683
+ if (!found) {
25684
+ try {
25685
+ getter(value);
25686
+ found = $slice(name2, 1);
25687
+ } catch (e) {
25688
+ }
25689
+ }
25690
+ }
25691
+ );
25692
+ return found;
25693
+ };
25694
+ var whichTypedArray$1 = function whichTypedArray2(value) {
25695
+ if (!value || typeof value !== "object") {
25696
+ return false;
25657
25697
  }
25658
- isCallable = reflectApply ? function isCallable2(value) {
25659
- if (isDDA(value)) {
25660
- return true;
25698
+ if (!hasToStringTag) {
25699
+ var tag2 = $slice($toString(value), 8, -1);
25700
+ if ($indexOf(typedArrays, tag2) > -1) {
25701
+ return tag2;
25661
25702
  }
25662
- if (!value) {
25703
+ if (tag2 !== "Object") {
25663
25704
  return false;
25664
25705
  }
25665
- if (typeof value !== "function" && typeof value !== "object") {
25706
+ return trySlices(value);
25707
+ }
25708
+ if (!gOPD) {
25709
+ return null;
25710
+ }
25711
+ return tryTypedArrays(value);
25712
+ };
25713
+ var whichTypedArray = whichTypedArray$1;
25714
+ var isTypedArray$1 = function isTypedArray2(value) {
25715
+ return !!whichTypedArray(value);
25716
+ };
25717
+ (function(exports2) {
25718
+ var isArgumentsObject = isArguments$2;
25719
+ var isGeneratorFunction$1 = isGeneratorFunction;
25720
+ var whichTypedArray3 = whichTypedArray$1;
25721
+ var isTypedArray3 = isTypedArray$1;
25722
+ function uncurryThis(f) {
25723
+ return f.call.bind(f);
25724
+ }
25725
+ var BigIntSupported = typeof BigInt !== "undefined";
25726
+ var SymbolSupported = typeof Symbol !== "undefined";
25727
+ var ObjectToString = uncurryThis(Object.prototype.toString);
25728
+ var numberValue = uncurryThis(Number.prototype.valueOf);
25729
+ var stringValue = uncurryThis(String.prototype.valueOf);
25730
+ var booleanValue = uncurryThis(Boolean.prototype.valueOf);
25731
+ if (BigIntSupported) {
25732
+ var bigIntValue = uncurryThis(BigInt.prototype.valueOf);
25733
+ }
25734
+ if (SymbolSupported) {
25735
+ var symbolValue = uncurryThis(Symbol.prototype.valueOf);
25736
+ }
25737
+ function checkBoxedPrimitive(value, prototypeValueOf) {
25738
+ if (typeof value !== "object") {
25666
25739
  return false;
25667
25740
  }
25668
25741
  try {
25669
- reflectApply(value, null, badArrayLike);
25742
+ prototypeValueOf(value);
25743
+ return true;
25670
25744
  } catch (e) {
25671
- if (e !== isCallableMarker) {
25672
- return false;
25673
- }
25745
+ return false;
25674
25746
  }
25675
- return !isES6ClassFn(value) && tryFunctionObject(value);
25676
- } : function isCallable2(value) {
25677
- if (isDDA(value)) {
25678
- return true;
25747
+ }
25748
+ exports2.isArgumentsObject = isArgumentsObject;
25749
+ exports2.isGeneratorFunction = isGeneratorFunction$1;
25750
+ exports2.isTypedArray = isTypedArray3;
25751
+ function isPromise(input) {
25752
+ return typeof Promise !== "undefined" && input instanceof Promise || input !== null && typeof input === "object" && typeof input.then === "function" && typeof input.catch === "function";
25753
+ }
25754
+ exports2.isPromise = isPromise;
25755
+ function isArrayBufferView(value) {
25756
+ if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
25757
+ return ArrayBuffer.isView(value);
25679
25758
  }
25680
- if (!value) {
25759
+ return isTypedArray3(value) || isDataView(value);
25760
+ }
25761
+ exports2.isArrayBufferView = isArrayBufferView;
25762
+ function isUint8Array(value) {
25763
+ return whichTypedArray3(value) === "Uint8Array";
25764
+ }
25765
+ exports2.isUint8Array = isUint8Array;
25766
+ function isUint8ClampedArray(value) {
25767
+ return whichTypedArray3(value) === "Uint8ClampedArray";
25768
+ }
25769
+ exports2.isUint8ClampedArray = isUint8ClampedArray;
25770
+ function isUint16Array(value) {
25771
+ return whichTypedArray3(value) === "Uint16Array";
25772
+ }
25773
+ exports2.isUint16Array = isUint16Array;
25774
+ function isUint32Array(value) {
25775
+ return whichTypedArray3(value) === "Uint32Array";
25776
+ }
25777
+ exports2.isUint32Array = isUint32Array;
25778
+ function isInt8Array(value) {
25779
+ return whichTypedArray3(value) === "Int8Array";
25780
+ }
25781
+ exports2.isInt8Array = isInt8Array;
25782
+ function isInt16Array(value) {
25783
+ return whichTypedArray3(value) === "Int16Array";
25784
+ }
25785
+ exports2.isInt16Array = isInt16Array;
25786
+ function isInt32Array(value) {
25787
+ return whichTypedArray3(value) === "Int32Array";
25788
+ }
25789
+ exports2.isInt32Array = isInt32Array;
25790
+ function isFloat32Array(value) {
25791
+ return whichTypedArray3(value) === "Float32Array";
25792
+ }
25793
+ exports2.isFloat32Array = isFloat32Array;
25794
+ function isFloat64Array(value) {
25795
+ return whichTypedArray3(value) === "Float64Array";
25796
+ }
25797
+ exports2.isFloat64Array = isFloat64Array;
25798
+ function isBigInt64Array(value) {
25799
+ return whichTypedArray3(value) === "BigInt64Array";
25800
+ }
25801
+ exports2.isBigInt64Array = isBigInt64Array;
25802
+ function isBigUint64Array(value) {
25803
+ return whichTypedArray3(value) === "BigUint64Array";
25804
+ }
25805
+ exports2.isBigUint64Array = isBigUint64Array;
25806
+ function isMapToString(value) {
25807
+ return ObjectToString(value) === "[object Map]";
25808
+ }
25809
+ isMapToString.working = typeof Map !== "undefined" && isMapToString(/* @__PURE__ */ new Map());
25810
+ function isMap2(value) {
25811
+ if (typeof Map === "undefined") {
25681
25812
  return false;
25682
25813
  }
25683
- if (typeof value !== "function" && typeof value !== "object") {
25814
+ return isMapToString.working ? isMapToString(value) : value instanceof Map;
25815
+ }
25816
+ exports2.isMap = isMap2;
25817
+ function isSetToString(value) {
25818
+ return ObjectToString(value) === "[object Set]";
25819
+ }
25820
+ isSetToString.working = typeof Set !== "undefined" && isSetToString(/* @__PURE__ */ new Set());
25821
+ function isSet2(value) {
25822
+ if (typeof Set === "undefined") {
25684
25823
  return false;
25685
25824
  }
25686
- if (hasToStringTag) {
25687
- return tryFunctionObject(value);
25825
+ return isSetToString.working ? isSetToString(value) : value instanceof Set;
25826
+ }
25827
+ exports2.isSet = isSet2;
25828
+ function isWeakMapToString(value) {
25829
+ return ObjectToString(value) === "[object WeakMap]";
25830
+ }
25831
+ isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(/* @__PURE__ */ new WeakMap());
25832
+ function isWeakMap(value) {
25833
+ if (typeof WeakMap === "undefined") {
25834
+ return false;
25688
25835
  }
25689
- if (isES6ClassFn(value)) {
25836
+ return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;
25837
+ }
25838
+ exports2.isWeakMap = isWeakMap;
25839
+ function isWeakSetToString(value) {
25840
+ return ObjectToString(value) === "[object WeakSet]";
25841
+ }
25842
+ isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(/* @__PURE__ */ new WeakSet());
25843
+ function isWeakSet(value) {
25844
+ return isWeakSetToString(value);
25845
+ }
25846
+ exports2.isWeakSet = isWeakSet;
25847
+ function isArrayBufferToString(value) {
25848
+ return ObjectToString(value) === "[object ArrayBuffer]";
25849
+ }
25850
+ isArrayBufferToString.working = typeof ArrayBuffer !== "undefined" && isArrayBufferToString(new ArrayBuffer());
25851
+ function isArrayBuffer(value) {
25852
+ if (typeof ArrayBuffer === "undefined") {
25853
+ return false;
25854
+ }
25855
+ return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;
25856
+ }
25857
+ exports2.isArrayBuffer = isArrayBuffer;
25858
+ function isDataViewToString(value) {
25859
+ return ObjectToString(value) === "[object DataView]";
25860
+ }
25861
+ isDataViewToString.working = typeof ArrayBuffer !== "undefined" && typeof DataView !== "undefined" && isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1));
25862
+ function isDataView(value) {
25863
+ if (typeof DataView === "undefined") {
25690
25864
  return false;
25691
25865
  }
25692
- var strClass = toStr.call(value);
25693
- if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
25866
+ return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;
25867
+ }
25868
+ exports2.isDataView = isDataView;
25869
+ var SharedArrayBufferCopy = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : void 0;
25870
+ function isSharedArrayBufferToString(value) {
25871
+ return ObjectToString(value) === "[object SharedArrayBuffer]";
25872
+ }
25873
+ function isSharedArrayBuffer(value) {
25874
+ if (typeof SharedArrayBufferCopy === "undefined") {
25694
25875
  return false;
25695
25876
  }
25696
- return tryFunctionObject(value);
25697
- };
25698
- return isCallable;
25699
- }
25700
- var forEach_1;
25701
- var hasRequiredForEach;
25702
- function requireForEach() {
25703
- if (hasRequiredForEach) return forEach_1;
25704
- hasRequiredForEach = 1;
25705
- var isCallable2 = requireIsCallable();
25706
- var toStr = Object.prototype.toString;
25707
- var hasOwnProperty2 = Object.prototype.hasOwnProperty;
25708
- var forEachArray = function forEachArray2(array, iterator, receiver) {
25709
- for (var i = 0, len = array.length; i < len; i++) {
25710
- if (hasOwnProperty2.call(array, i)) {
25711
- if (receiver == null) {
25712
- iterator(array[i], i, array);
25713
- } else {
25714
- iterator.call(receiver, array[i], i, array);
25715
- }
25716
- }
25877
+ if (typeof isSharedArrayBufferToString.working === "undefined") {
25878
+ isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());
25717
25879
  }
25718
- };
25719
- var forEachString = function forEachString2(string2, iterator, receiver) {
25720
- for (var i = 0, len = string2.length; i < len; i++) {
25721
- if (receiver == null) {
25722
- iterator(string2.charAt(i), i, string2);
25880
+ return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;
25881
+ }
25882
+ exports2.isSharedArrayBuffer = isSharedArrayBuffer;
25883
+ function isAsyncFunction(value) {
25884
+ return ObjectToString(value) === "[object AsyncFunction]";
25885
+ }
25886
+ exports2.isAsyncFunction = isAsyncFunction;
25887
+ function isMapIterator(value) {
25888
+ return ObjectToString(value) === "[object Map Iterator]";
25889
+ }
25890
+ exports2.isMapIterator = isMapIterator;
25891
+ function isSetIterator(value) {
25892
+ return ObjectToString(value) === "[object Set Iterator]";
25893
+ }
25894
+ exports2.isSetIterator = isSetIterator;
25895
+ function isGeneratorObject(value) {
25896
+ return ObjectToString(value) === "[object Generator]";
25897
+ }
25898
+ exports2.isGeneratorObject = isGeneratorObject;
25899
+ function isWebAssemblyCompiledModule(value) {
25900
+ return ObjectToString(value) === "[object WebAssembly.Module]";
25901
+ }
25902
+ exports2.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
25903
+ function isNumberObject(value) {
25904
+ return checkBoxedPrimitive(value, numberValue);
25905
+ }
25906
+ exports2.isNumberObject = isNumberObject;
25907
+ function isStringObject(value) {
25908
+ return checkBoxedPrimitive(value, stringValue);
25909
+ }
25910
+ exports2.isStringObject = isStringObject;
25911
+ function isBooleanObject(value) {
25912
+ return checkBoxedPrimitive(value, booleanValue);
25913
+ }
25914
+ exports2.isBooleanObject = isBooleanObject;
25915
+ function isBigIntObject(value) {
25916
+ return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
25917
+ }
25918
+ exports2.isBigIntObject = isBigIntObject;
25919
+ function isSymbolObject(value) {
25920
+ return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
25921
+ }
25922
+ exports2.isSymbolObject = isSymbolObject;
25923
+ function isBoxedPrimitive(value) {
25924
+ return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);
25925
+ }
25926
+ exports2.isBoxedPrimitive = isBoxedPrimitive;
25927
+ function isAnyArrayBuffer(value) {
25928
+ return typeof Uint8Array !== "undefined" && (isArrayBuffer(value) || isSharedArrayBuffer(value));
25929
+ }
25930
+ exports2.isAnyArrayBuffer = isAnyArrayBuffer;
25931
+ ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(method) {
25932
+ Object.defineProperty(exports2, method, {
25933
+ enumerable: false,
25934
+ value: function() {
25935
+ throw new Error(method + " is not supported in userland");
25936
+ }
25937
+ });
25938
+ });
25939
+ })(types);
25940
+ var isBufferBrowser = function isBuffer2(arg) {
25941
+ return arg && typeof arg === "object" && typeof arg.copy === "function" && typeof arg.fill === "function" && typeof arg.readUInt8 === "function";
25942
+ };
25943
+ (function(exports2) {
25944
+ var define_process_default2 = { env: {} };
25945
+ var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors2(obj) {
25946
+ var keys2 = Object.keys(obj);
25947
+ var descriptors = {};
25948
+ for (var i = 0; i < keys2.length; i++) {
25949
+ descriptors[keys2[i]] = Object.getOwnPropertyDescriptor(obj, keys2[i]);
25950
+ }
25951
+ return descriptors;
25952
+ };
25953
+ var formatRegExp = /%[sdj%]/g;
25954
+ exports2.format = function(f) {
25955
+ if (!isString2(f)) {
25956
+ var objects = [];
25957
+ for (var i = 0; i < arguments.length; i++) {
25958
+ objects.push(inspect(arguments[i]));
25959
+ }
25960
+ return objects.join(" ");
25961
+ }
25962
+ var i = 1;
25963
+ var args2 = arguments;
25964
+ var len = args2.length;
25965
+ var str = String(f).replace(formatRegExp, function(x2) {
25966
+ if (x2 === "%%") return "%";
25967
+ if (i >= len) return x2;
25968
+ switch (x2) {
25969
+ case "%s":
25970
+ return String(args2[i++]);
25971
+ case "%d":
25972
+ return Number(args2[i++]);
25973
+ case "%j":
25974
+ try {
25975
+ return JSON.stringify(args2[i++]);
25976
+ } catch (_2) {
25977
+ return "[Circular]";
25978
+ }
25979
+ default:
25980
+ return x2;
25981
+ }
25982
+ });
25983
+ for (var x = args2[i]; i < len; x = args2[++i]) {
25984
+ if (isNull(x) || !isObject2(x)) {
25985
+ str += " " + x;
25723
25986
  } else {
25724
- iterator.call(receiver, string2.charAt(i), i, string2);
25987
+ str += " " + inspect(x);
25725
25988
  }
25726
25989
  }
25990
+ return str;
25727
25991
  };
25728
- var forEachObject = function forEachObject2(object, iterator, receiver) {
25729
- for (var k in object) {
25730
- if (hasOwnProperty2.call(object, k)) {
25731
- if (receiver == null) {
25732
- iterator(object[k], k, object);
25992
+ exports2.deprecate = function(fn, msg) {
25993
+ if (typeof define_process_default2 !== "undefined" && define_process_default2.noDeprecation === true) {
25994
+ return fn;
25995
+ }
25996
+ if (typeof define_process_default2 === "undefined") {
25997
+ return function() {
25998
+ return exports2.deprecate(fn, msg).apply(this, arguments);
25999
+ };
26000
+ }
26001
+ var warned2 = false;
26002
+ function deprecated() {
26003
+ if (!warned2) {
26004
+ if (define_process_default2.throwDeprecation) {
26005
+ throw new Error(msg);
26006
+ } else if (define_process_default2.traceDeprecation) {
26007
+ console.trace(msg);
25733
26008
  } else {
25734
- iterator.call(receiver, object[k], k, object);
26009
+ console.error(msg);
25735
26010
  }
26011
+ warned2 = true;
25736
26012
  }
26013
+ return fn.apply(this, arguments);
25737
26014
  }
26015
+ return deprecated;
25738
26016
  };
25739
- var forEach = function forEach2(list, iterator, thisArg) {
25740
- if (!isCallable2(iterator)) {
25741
- throw new TypeError("iterator must be a function");
25742
- }
25743
- var receiver;
25744
- if (arguments.length >= 3) {
25745
- receiver = thisArg;
25746
- }
25747
- if (toStr.call(list) === "[object Array]") {
25748
- forEachArray(list, iterator, receiver);
25749
- } else if (typeof list === "string") {
25750
- forEachString(list, iterator, receiver);
25751
- } else {
25752
- forEachObject(list, iterator, receiver);
25753
- }
25754
- };
25755
- forEach_1 = forEach;
25756
- return forEach_1;
25757
- }
25758
- var possibleTypedArrayNames;
25759
- var hasRequiredPossibleTypedArrayNames;
25760
- function requirePossibleTypedArrayNames() {
25761
- if (hasRequiredPossibleTypedArrayNames) return possibleTypedArrayNames;
25762
- hasRequiredPossibleTypedArrayNames = 1;
25763
- possibleTypedArrayNames = [
25764
- "Float32Array",
25765
- "Float64Array",
25766
- "Int8Array",
25767
- "Int16Array",
25768
- "Int32Array",
25769
- "Uint8Array",
25770
- "Uint8ClampedArray",
25771
- "Uint16Array",
25772
- "Uint32Array",
25773
- "BigInt64Array",
25774
- "BigUint64Array"
25775
- ];
25776
- return possibleTypedArrayNames;
25777
- }
25778
- var availableTypedArrays;
25779
- var hasRequiredAvailableTypedArrays;
25780
- function requireAvailableTypedArrays() {
25781
- if (hasRequiredAvailableTypedArrays) return availableTypedArrays;
25782
- hasRequiredAvailableTypedArrays = 1;
25783
- var possibleNames = requirePossibleTypedArrayNames();
25784
- var g = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
25785
- availableTypedArrays = function availableTypedArrays2() {
25786
- var out = [];
25787
- for (var i = 0; i < possibleNames.length; i++) {
25788
- if (typeof g[possibleNames[i]] === "function") {
25789
- out[out.length] = possibleNames[i];
26017
+ var debugs = {};
26018
+ var debugEnvRegex = /^$/;
26019
+ exports2.debuglog = function(set2) {
26020
+ set2 = set2.toUpperCase();
26021
+ if (!debugs[set2]) {
26022
+ if (debugEnvRegex.test(set2)) {
26023
+ var pid = define_process_default2.pid;
26024
+ debugs[set2] = function() {
26025
+ var msg = exports2.format.apply(exports2, arguments);
26026
+ console.error("%s %d: %s", set2, pid, msg);
26027
+ };
26028
+ } else {
26029
+ debugs[set2] = function() {
26030
+ };
25790
26031
  }
25791
26032
  }
25792
- return out;
26033
+ return debugs[set2];
25793
26034
  };
25794
- return availableTypedArrays;
25795
- }
25796
- var whichTypedArray;
25797
- var hasRequiredWhichTypedArray;
25798
- function requireWhichTypedArray() {
25799
- if (hasRequiredWhichTypedArray) return whichTypedArray;
25800
- hasRequiredWhichTypedArray = 1;
25801
- var forEach = requireForEach();
25802
- var availableTypedArrays2 = requireAvailableTypedArrays();
25803
- var callBind2 = requireCallBind();
25804
- var callBound2 = requireCallBound();
25805
- var gOPD = requireGopd();
25806
- var $toString = callBound2("Object.prototype.toString");
25807
- var hasToStringTag = requireShams()();
25808
- var g = typeof globalThis === "undefined" ? commonjsGlobal : globalThis;
25809
- var typedArrays = availableTypedArrays2();
25810
- var $slice = callBound2("String.prototype.slice");
25811
- var getPrototypeOf2 = Object.getPrototypeOf;
25812
- var $indexOf = callBound2("Array.prototype.indexOf", true) || function indexOf(array, value) {
25813
- for (var i = 0; i < array.length; i += 1) {
25814
- if (array[i] === value) {
25815
- return i;
25816
- }
26035
+ function inspect(obj, opts) {
26036
+ var ctx = {
26037
+ seen: [],
26038
+ stylize: stylizeNoColor
26039
+ };
26040
+ if (arguments.length >= 3) ctx.depth = arguments[2];
26041
+ if (arguments.length >= 4) ctx.colors = arguments[3];
26042
+ if (isBoolean(opts)) {
26043
+ ctx.showHidden = opts;
26044
+ } else if (opts) {
26045
+ exports2._extend(ctx, opts);
26046
+ }
26047
+ if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
26048
+ if (isUndefined(ctx.depth)) ctx.depth = 2;
26049
+ if (isUndefined(ctx.colors)) ctx.colors = false;
26050
+ if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
26051
+ if (ctx.colors) ctx.stylize = stylizeWithColor;
26052
+ return formatValue(ctx, obj, ctx.depth);
26053
+ }
26054
+ exports2.inspect = inspect;
26055
+ inspect.colors = {
26056
+ "bold": [1, 22],
26057
+ "italic": [3, 23],
26058
+ "underline": [4, 24],
26059
+ "inverse": [7, 27],
26060
+ "white": [37, 39],
26061
+ "grey": [90, 39],
26062
+ "black": [30, 39],
26063
+ "blue": [34, 39],
26064
+ "cyan": [36, 39],
26065
+ "green": [32, 39],
26066
+ "magenta": [35, 39],
26067
+ "red": [31, 39],
26068
+ "yellow": [33, 39]
26069
+ };
26070
+ inspect.styles = {
26071
+ "special": "cyan",
26072
+ "number": "yellow",
26073
+ "boolean": "yellow",
26074
+ "undefined": "grey",
26075
+ "null": "bold",
26076
+ "string": "green",
26077
+ "date": "magenta",
26078
+ // "name": intentionally not styling
26079
+ "regexp": "red"
26080
+ };
26081
+ function stylizeWithColor(str, styleType) {
26082
+ var style = inspect.styles[styleType];
26083
+ if (style) {
26084
+ return "\x1B[" + inspect.colors[style][0] + "m" + str + "\x1B[" + inspect.colors[style][1] + "m";
26085
+ } else {
26086
+ return str;
25817
26087
  }
25818
- return -1;
25819
- };
25820
- var cache2 = { __proto__: null };
25821
- if (hasToStringTag && gOPD && getPrototypeOf2) {
25822
- forEach(typedArrays, function(typedArray) {
25823
- var arr = new g[typedArray]();
25824
- if (Symbol.toStringTag in arr) {
25825
- var proto = getPrototypeOf2(arr);
25826
- var descriptor = gOPD(proto, Symbol.toStringTag);
25827
- if (!descriptor) {
25828
- var superProto = getPrototypeOf2(proto);
25829
- descriptor = gOPD(superProto, Symbol.toStringTag);
25830
- }
25831
- cache2["$" + typedArray] = callBind2(descriptor.get);
25832
- }
25833
- });
25834
- } else {
25835
- forEach(typedArrays, function(typedArray) {
25836
- var arr = new g[typedArray]();
25837
- var fn = arr.slice || arr.set;
25838
- if (fn) {
25839
- cache2["$" + typedArray] = callBind2(fn);
25840
- }
26088
+ }
26089
+ function stylizeNoColor(str, styleType) {
26090
+ return str;
26091
+ }
26092
+ function arrayToHash(array) {
26093
+ var hash = {};
26094
+ array.forEach(function(val2, idx) {
26095
+ hash[val2] = true;
25841
26096
  });
26097
+ return hash;
25842
26098
  }
25843
- var tryTypedArrays = function tryAllTypedArrays(value) {
25844
- var found = false;
25845
- forEach(
25846
- // eslint-disable-next-line no-extra-parens
25847
- /** @type {Record<`\$${TypedArrayName}`, Getter>} */
25848
- /** @type {any} */
25849
- cache2,
25850
- /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
25851
- function(getter, typedArray) {
25852
- if (!found) {
25853
- try {
25854
- if ("$" + getter(value) === typedArray) {
25855
- found = $slice(typedArray, 1);
25856
- }
25857
- } catch (e) {
25858
- }
25859
- }
26099
+ function formatValue(ctx, value, recurseTimes) {
26100
+ if (ctx.customInspect && value && isFunction2(value.inspect) && // Filter out the util module, it's inspect function is special
26101
+ value.inspect !== exports2.inspect && // Also filter out any prototype objects using the circular check.
26102
+ !(value.constructor && value.constructor.prototype === value)) {
26103
+ var ret2 = value.inspect(recurseTimes, ctx);
26104
+ if (!isString2(ret2)) {
26105
+ ret2 = formatValue(ctx, ret2, recurseTimes);
25860
26106
  }
25861
- );
25862
- return found;
25863
- };
25864
- var trySlices = function tryAllSlices(value) {
25865
- var found = false;
25866
- forEach(
25867
- // eslint-disable-next-line no-extra-parens
25868
- /** @type {Record<`\$${TypedArrayName}`, Getter>} */
25869
- /** @type {any} */
25870
- cache2,
25871
- /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
25872
- function(getter, name2) {
25873
- if (!found) {
25874
- try {
25875
- getter(value);
25876
- found = $slice(name2, 1);
25877
- } catch (e) {
25878
- }
25879
- }
25880
- }
25881
- );
25882
- return found;
25883
- };
25884
- whichTypedArray = function whichTypedArray2(value) {
25885
- if (!value || typeof value !== "object") {
25886
- return false;
26107
+ return ret2;
25887
26108
  }
25888
- if (!hasToStringTag) {
25889
- var tag2 = $slice($toString(value), 8, -1);
25890
- if ($indexOf(typedArrays, tag2) > -1) {
25891
- return tag2;
25892
- }
25893
- if (tag2 !== "Object") {
25894
- return false;
25895
- }
25896
- return trySlices(value);
26109
+ var primitive = formatPrimitive(ctx, value);
26110
+ if (primitive) {
26111
+ return primitive;
25897
26112
  }
25898
- if (!gOPD) {
25899
- return null;
26113
+ var keys2 = Object.keys(value);
26114
+ var visibleKeys = arrayToHash(keys2);
26115
+ if (ctx.showHidden) {
26116
+ keys2 = Object.getOwnPropertyNames(value);
25900
26117
  }
25901
- return tryTypedArrays(value);
25902
- };
25903
- return whichTypedArray;
25904
- }
25905
- var isTypedArray$1;
25906
- var hasRequiredIsTypedArray;
25907
- function requireIsTypedArray() {
25908
- if (hasRequiredIsTypedArray) return isTypedArray$1;
25909
- hasRequiredIsTypedArray = 1;
25910
- var whichTypedArray2 = requireWhichTypedArray();
25911
- isTypedArray$1 = function isTypedArray2(value) {
25912
- return !!whichTypedArray2(value);
25913
- };
25914
- return isTypedArray$1;
25915
- }
25916
- var hasRequiredTypes;
25917
- function requireTypes() {
25918
- if (hasRequiredTypes) return types;
25919
- hasRequiredTypes = 1;
25920
- (function(exports2) {
25921
- var isArgumentsObject = requireIsArguments();
25922
- var isGeneratorFunction2 = requireIsGeneratorFunction();
25923
- var whichTypedArray2 = requireWhichTypedArray();
25924
- var isTypedArray2 = requireIsTypedArray();
25925
- function uncurryThis(f) {
25926
- return f.call.bind(f);
25927
- }
25928
- var BigIntSupported = typeof BigInt !== "undefined";
25929
- var SymbolSupported = typeof Symbol !== "undefined";
25930
- var ObjectToString = uncurryThis(Object.prototype.toString);
25931
- var numberValue = uncurryThis(Number.prototype.valueOf);
25932
- var stringValue = uncurryThis(String.prototype.valueOf);
25933
- var booleanValue = uncurryThis(Boolean.prototype.valueOf);
25934
- if (BigIntSupported) {
25935
- var bigIntValue = uncurryThis(BigInt.prototype.valueOf);
25936
- }
25937
- if (SymbolSupported) {
25938
- var symbolValue = uncurryThis(Symbol.prototype.valueOf);
25939
- }
25940
- function checkBoxedPrimitive(value, prototypeValueOf) {
25941
- if (typeof value !== "object") {
25942
- return false;
26118
+ if (isError2(value) && (keys2.indexOf("message") >= 0 || keys2.indexOf("description") >= 0)) {
26119
+ return formatError(value);
26120
+ }
26121
+ if (keys2.length === 0) {
26122
+ if (isFunction2(value)) {
26123
+ var name2 = value.name ? ": " + value.name : "";
26124
+ return ctx.stylize("[Function" + name2 + "]", "special");
25943
26125
  }
25944
- try {
25945
- prototypeValueOf(value);
25946
- return true;
25947
- } catch (e) {
25948
- return false;
26126
+ if (isRegExp2(value)) {
26127
+ return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
25949
26128
  }
25950
- }
25951
- exports2.isArgumentsObject = isArgumentsObject;
25952
- exports2.isGeneratorFunction = isGeneratorFunction2;
25953
- exports2.isTypedArray = isTypedArray2;
25954
- function isPromise(input) {
25955
- return typeof Promise !== "undefined" && input instanceof Promise || input !== null && typeof input === "object" && typeof input.then === "function" && typeof input.catch === "function";
25956
- }
25957
- exports2.isPromise = isPromise;
25958
- function isArrayBufferView(value) {
25959
- if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
25960
- return ArrayBuffer.isView(value);
26129
+ if (isDate(value)) {
26130
+ return ctx.stylize(Date.prototype.toString.call(value), "date");
25961
26131
  }
25962
- return isTypedArray2(value) || isDataView(value);
25963
- }
25964
- exports2.isArrayBufferView = isArrayBufferView;
25965
- function isUint8Array(value) {
25966
- return whichTypedArray2(value) === "Uint8Array";
25967
- }
25968
- exports2.isUint8Array = isUint8Array;
25969
- function isUint8ClampedArray(value) {
25970
- return whichTypedArray2(value) === "Uint8ClampedArray";
25971
- }
25972
- exports2.isUint8ClampedArray = isUint8ClampedArray;
25973
- function isUint16Array(value) {
25974
- return whichTypedArray2(value) === "Uint16Array";
25975
- }
25976
- exports2.isUint16Array = isUint16Array;
25977
- function isUint32Array(value) {
25978
- return whichTypedArray2(value) === "Uint32Array";
25979
- }
25980
- exports2.isUint32Array = isUint32Array;
25981
- function isInt8Array(value) {
25982
- return whichTypedArray2(value) === "Int8Array";
25983
- }
25984
- exports2.isInt8Array = isInt8Array;
25985
- function isInt16Array(value) {
25986
- return whichTypedArray2(value) === "Int16Array";
25987
- }
25988
- exports2.isInt16Array = isInt16Array;
25989
- function isInt32Array(value) {
25990
- return whichTypedArray2(value) === "Int32Array";
25991
- }
25992
- exports2.isInt32Array = isInt32Array;
25993
- function isFloat32Array(value) {
25994
- return whichTypedArray2(value) === "Float32Array";
25995
- }
25996
- exports2.isFloat32Array = isFloat32Array;
25997
- function isFloat64Array(value) {
25998
- return whichTypedArray2(value) === "Float64Array";
25999
- }
26000
- exports2.isFloat64Array = isFloat64Array;
26001
- function isBigInt64Array(value) {
26002
- return whichTypedArray2(value) === "BigInt64Array";
26003
- }
26004
- exports2.isBigInt64Array = isBigInt64Array;
26005
- function isBigUint64Array(value) {
26006
- return whichTypedArray2(value) === "BigUint64Array";
26007
- }
26008
- exports2.isBigUint64Array = isBigUint64Array;
26009
- function isMapToString(value) {
26010
- return ObjectToString(value) === "[object Map]";
26011
- }
26012
- isMapToString.working = typeof Map !== "undefined" && isMapToString(/* @__PURE__ */ new Map());
26013
- function isMap2(value) {
26014
- if (typeof Map === "undefined") {
26015
- return false;
26132
+ if (isError2(value)) {
26133
+ return formatError(value);
26016
26134
  }
26017
- return isMapToString.working ? isMapToString(value) : value instanceof Map;
26018
- }
26019
- exports2.isMap = isMap2;
26020
- function isSetToString(value) {
26021
- return ObjectToString(value) === "[object Set]";
26022
26135
  }
26023
- isSetToString.working = typeof Set !== "undefined" && isSetToString(/* @__PURE__ */ new Set());
26024
- function isSet2(value) {
26025
- if (typeof Set === "undefined") {
26026
- return false;
26027
- }
26028
- return isSetToString.working ? isSetToString(value) : value instanceof Set;
26136
+ var base2 = "", array = false, braces = ["{", "}"];
26137
+ if (isArray2(value)) {
26138
+ array = true;
26139
+ braces = ["[", "]"];
26029
26140
  }
26030
- exports2.isSet = isSet2;
26031
- function isWeakMapToString(value) {
26032
- return ObjectToString(value) === "[object WeakMap]";
26141
+ if (isFunction2(value)) {
26142
+ var n = value.name ? ": " + value.name : "";
26143
+ base2 = " [Function" + n + "]";
26033
26144
  }
26034
- isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(/* @__PURE__ */ new WeakMap());
26035
- function isWeakMap(value) {
26036
- if (typeof WeakMap === "undefined") {
26037
- return false;
26038
- }
26039
- return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;
26145
+ if (isRegExp2(value)) {
26146
+ base2 = " " + RegExp.prototype.toString.call(value);
26040
26147
  }
26041
- exports2.isWeakMap = isWeakMap;
26042
- function isWeakSetToString(value) {
26043
- return ObjectToString(value) === "[object WeakSet]";
26148
+ if (isDate(value)) {
26149
+ base2 = " " + Date.prototype.toUTCString.call(value);
26044
26150
  }
26045
- isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(/* @__PURE__ */ new WeakSet());
26046
- function isWeakSet(value) {
26047
- return isWeakSetToString(value);
26151
+ if (isError2(value)) {
26152
+ base2 = " " + formatError(value);
26048
26153
  }
26049
- exports2.isWeakSet = isWeakSet;
26050
- function isArrayBufferToString(value) {
26051
- return ObjectToString(value) === "[object ArrayBuffer]";
26154
+ if (keys2.length === 0 && (!array || value.length == 0)) {
26155
+ return braces[0] + base2 + braces[1];
26052
26156
  }
26053
- isArrayBufferToString.working = typeof ArrayBuffer !== "undefined" && isArrayBufferToString(new ArrayBuffer());
26054
- function isArrayBuffer(value) {
26055
- if (typeof ArrayBuffer === "undefined") {
26056
- return false;
26157
+ if (recurseTimes < 0) {
26158
+ if (isRegExp2(value)) {
26159
+ return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
26160
+ } else {
26161
+ return ctx.stylize("[Object]", "special");
26057
26162
  }
26058
- return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;
26059
26163
  }
26060
- exports2.isArrayBuffer = isArrayBuffer;
26061
- function isDataViewToString(value) {
26062
- return ObjectToString(value) === "[object DataView]";
26164
+ ctx.seen.push(value);
26165
+ var output2;
26166
+ if (array) {
26167
+ output2 = formatArray(ctx, value, recurseTimes, visibleKeys, keys2);
26168
+ } else {
26169
+ output2 = keys2.map(function(key) {
26170
+ return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
26171
+ });
26063
26172
  }
26064
- isDataViewToString.working = typeof ArrayBuffer !== "undefined" && typeof DataView !== "undefined" && isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1));
26065
- function isDataView(value) {
26066
- if (typeof DataView === "undefined") {
26067
- return false;
26173
+ ctx.seen.pop();
26174
+ return reduceToSingleString(output2, base2, braces);
26175
+ }
26176
+ function formatPrimitive(ctx, value) {
26177
+ if (isUndefined(value))
26178
+ return ctx.stylize("undefined", "undefined");
26179
+ if (isString2(value)) {
26180
+ var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
26181
+ return ctx.stylize(simple, "string");
26182
+ }
26183
+ if (isNumber(value))
26184
+ return ctx.stylize("" + value, "number");
26185
+ if (isBoolean(value))
26186
+ return ctx.stylize("" + value, "boolean");
26187
+ if (isNull(value))
26188
+ return ctx.stylize("null", "null");
26189
+ }
26190
+ function formatError(value) {
26191
+ return "[" + Error.prototype.toString.call(value) + "]";
26192
+ }
26193
+ function formatArray(ctx, value, recurseTimes, visibleKeys, keys2) {
26194
+ var output2 = [];
26195
+ for (var i = 0, l = value.length; i < l; ++i) {
26196
+ if (hasOwnProperty2(value, String(i))) {
26197
+ output2.push(formatProperty(
26198
+ ctx,
26199
+ value,
26200
+ recurseTimes,
26201
+ visibleKeys,
26202
+ String(i),
26203
+ true
26204
+ ));
26205
+ } else {
26206
+ output2.push("");
26068
26207
  }
26069
- return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;
26070
- }
26071
- exports2.isDataView = isDataView;
26072
- var SharedArrayBufferCopy = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : void 0;
26073
- function isSharedArrayBufferToString(value) {
26074
- return ObjectToString(value) === "[object SharedArrayBuffer]";
26075
26208
  }
26076
- function isSharedArrayBuffer(value) {
26077
- if (typeof SharedArrayBufferCopy === "undefined") {
26078
- return false;
26209
+ keys2.forEach(function(key) {
26210
+ if (!key.match(/^\d+$/)) {
26211
+ output2.push(formatProperty(
26212
+ ctx,
26213
+ value,
26214
+ recurseTimes,
26215
+ visibleKeys,
26216
+ key,
26217
+ true
26218
+ ));
26079
26219
  }
26080
- if (typeof isSharedArrayBufferToString.working === "undefined") {
26081
- isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());
26220
+ });
26221
+ return output2;
26222
+ }
26223
+ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
26224
+ var name2, str, desc;
26225
+ desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
26226
+ if (desc.get) {
26227
+ if (desc.set) {
26228
+ str = ctx.stylize("[Getter/Setter]", "special");
26229
+ } else {
26230
+ str = ctx.stylize("[Getter]", "special");
26231
+ }
26232
+ } else {
26233
+ if (desc.set) {
26234
+ str = ctx.stylize("[Setter]", "special");
26082
26235
  }
26083
- return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;
26084
- }
26085
- exports2.isSharedArrayBuffer = isSharedArrayBuffer;
26086
- function isAsyncFunction(value) {
26087
- return ObjectToString(value) === "[object AsyncFunction]";
26088
- }
26089
- exports2.isAsyncFunction = isAsyncFunction;
26090
- function isMapIterator(value) {
26091
- return ObjectToString(value) === "[object Map Iterator]";
26092
- }
26093
- exports2.isMapIterator = isMapIterator;
26094
- function isSetIterator(value) {
26095
- return ObjectToString(value) === "[object Set Iterator]";
26096
- }
26097
- exports2.isSetIterator = isSetIterator;
26098
- function isGeneratorObject(value) {
26099
- return ObjectToString(value) === "[object Generator]";
26100
- }
26101
- exports2.isGeneratorObject = isGeneratorObject;
26102
- function isWebAssemblyCompiledModule(value) {
26103
- return ObjectToString(value) === "[object WebAssembly.Module]";
26104
- }
26105
- exports2.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
26106
- function isNumberObject(value) {
26107
- return checkBoxedPrimitive(value, numberValue);
26108
- }
26109
- exports2.isNumberObject = isNumberObject;
26110
- function isStringObject(value) {
26111
- return checkBoxedPrimitive(value, stringValue);
26112
- }
26113
- exports2.isStringObject = isStringObject;
26114
- function isBooleanObject(value) {
26115
- return checkBoxedPrimitive(value, booleanValue);
26116
- }
26117
- exports2.isBooleanObject = isBooleanObject;
26118
- function isBigIntObject(value) {
26119
- return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
26120
- }
26121
- exports2.isBigIntObject = isBigIntObject;
26122
- function isSymbolObject(value) {
26123
- return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
26124
- }
26125
- exports2.isSymbolObject = isSymbolObject;
26126
- function isBoxedPrimitive(value) {
26127
- return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);
26128
26236
  }
26129
- exports2.isBoxedPrimitive = isBoxedPrimitive;
26130
- function isAnyArrayBuffer(value) {
26131
- return typeof Uint8Array !== "undefined" && (isArrayBuffer(value) || isSharedArrayBuffer(value));
26237
+ if (!hasOwnProperty2(visibleKeys, key)) {
26238
+ name2 = "[" + key + "]";
26132
26239
  }
26133
- exports2.isAnyArrayBuffer = isAnyArrayBuffer;
26134
- ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(method) {
26135
- Object.defineProperty(exports2, method, {
26136
- enumerable: false,
26137
- value: function() {
26138
- throw new Error(method + " is not supported in userland");
26139
- }
26140
- });
26141
- });
26142
- })(types);
26143
- return types;
26144
- }
26145
- var isBufferBrowser;
26146
- var hasRequiredIsBufferBrowser;
26147
- function requireIsBufferBrowser() {
26148
- if (hasRequiredIsBufferBrowser) return isBufferBrowser;
26149
- hasRequiredIsBufferBrowser = 1;
26150
- isBufferBrowser = function isBuffer2(arg) {
26151
- return arg && typeof arg === "object" && typeof arg.copy === "function" && typeof arg.fill === "function" && typeof arg.readUInt8 === "function";
26152
- };
26153
- return isBufferBrowser;
26154
- }
26155
- var hasRequiredUtil;
26156
- function requireUtil() {
26157
- if (hasRequiredUtil) return util$5;
26158
- hasRequiredUtil = 1;
26159
- (function(exports2) {
26160
- var define_process_default2 = { env: {} };
26161
- var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors2(obj) {
26162
- var keys2 = Object.keys(obj);
26163
- var descriptors = {};
26164
- for (var i = 0; i < keys2.length; i++) {
26165
- descriptors[keys2[i]] = Object.getOwnPropertyDescriptor(obj, keys2[i]);
26166
- }
26167
- return descriptors;
26168
- };
26169
- var formatRegExp = /%[sdj%]/g;
26170
- exports2.format = function(f) {
26171
- if (!isString2(f)) {
26172
- var objects = [];
26173
- for (var i = 0; i < arguments.length; i++) {
26174
- objects.push(inspect(arguments[i]));
26175
- }
26176
- return objects.join(" ");
26177
- }
26178
- var i = 1;
26179
- var args2 = arguments;
26180
- var len = args2.length;
26181
- var str = String(f).replace(formatRegExp, function(x2) {
26182
- if (x2 === "%%") return "%";
26183
- if (i >= len) return x2;
26184
- switch (x2) {
26185
- case "%s":
26186
- return String(args2[i++]);
26187
- case "%d":
26188
- return Number(args2[i++]);
26189
- case "%j":
26190
- try {
26191
- return JSON.stringify(args2[i++]);
26192
- } catch (_2) {
26193
- return "[Circular]";
26194
- }
26195
- default:
26196
- return x2;
26197
- }
26198
- });
26199
- for (var x = args2[i]; i < len; x = args2[++i]) {
26200
- if (isNull(x) || !isObject2(x)) {
26201
- str += " " + x;
26240
+ if (!str) {
26241
+ if (ctx.seen.indexOf(desc.value) < 0) {
26242
+ if (isNull(recurseTimes)) {
26243
+ str = formatValue(ctx, desc.value, null);
26202
26244
  } else {
26203
- str += " " + inspect(x);
26245
+ str = formatValue(ctx, desc.value, recurseTimes - 1);
26204
26246
  }
26205
- }
26206
- return str;
26207
- };
26208
- exports2.deprecate = function(fn, msg) {
26209
- if (typeof define_process_default2 !== "undefined" && define_process_default2.noDeprecation === true) {
26210
- return fn;
26211
- }
26212
- if (typeof define_process_default2 === "undefined") {
26213
- return function() {
26214
- return exports2.deprecate(fn, msg).apply(this, arguments);
26215
- };
26216
- }
26217
- var warned2 = false;
26218
- function deprecated() {
26219
- if (!warned2) {
26220
- if (define_process_default2.throwDeprecation) {
26221
- throw new Error(msg);
26222
- } else if (define_process_default2.traceDeprecation) {
26223
- console.trace(msg);
26247
+ if (str.indexOf("\n") > -1) {
26248
+ if (array) {
26249
+ str = str.split("\n").map(function(line) {
26250
+ return " " + line;
26251
+ }).join("\n").slice(2);
26224
26252
  } else {
26225
- console.error(msg);
26253
+ str = "\n" + str.split("\n").map(function(line) {
26254
+ return " " + line;
26255
+ }).join("\n");
26226
26256
  }
26227
- warned2 = true;
26228
26257
  }
26229
- return fn.apply(this, arguments);
26230
- }
26231
- return deprecated;
26232
- };
26233
- var debugs = {};
26234
- var debugEnvRegex = /^$/;
26235
- exports2.debuglog = function(set2) {
26236
- set2 = set2.toUpperCase();
26237
- if (!debugs[set2]) {
26238
- if (debugEnvRegex.test(set2)) {
26239
- var pid = define_process_default2.pid;
26240
- debugs[set2] = function() {
26241
- var msg = exports2.format.apply(exports2, arguments);
26242
- console.error("%s %d: %s", set2, pid, msg);
26243
- };
26244
- } else {
26245
- debugs[set2] = function() {
26246
- };
26247
- }
26248
- }
26249
- return debugs[set2];
26250
- };
26251
- function inspect(obj, opts) {
26252
- var ctx = {
26253
- seen: [],
26254
- stylize: stylizeNoColor
26255
- };
26256
- if (arguments.length >= 3) ctx.depth = arguments[2];
26257
- if (arguments.length >= 4) ctx.colors = arguments[3];
26258
- if (isBoolean(opts)) {
26259
- ctx.showHidden = opts;
26260
- } else if (opts) {
26261
- exports2._extend(ctx, opts);
26262
- }
26263
- if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
26264
- if (isUndefined(ctx.depth)) ctx.depth = 2;
26265
- if (isUndefined(ctx.colors)) ctx.colors = false;
26266
- if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
26267
- if (ctx.colors) ctx.stylize = stylizeWithColor;
26268
- return formatValue(ctx, obj, ctx.depth);
26269
- }
26270
- exports2.inspect = inspect;
26271
- inspect.colors = {
26272
- "bold": [1, 22],
26273
- "italic": [3, 23],
26274
- "underline": [4, 24],
26275
- "inverse": [7, 27],
26276
- "white": [37, 39],
26277
- "grey": [90, 39],
26278
- "black": [30, 39],
26279
- "blue": [34, 39],
26280
- "cyan": [36, 39],
26281
- "green": [32, 39],
26282
- "magenta": [35, 39],
26283
- "red": [31, 39],
26284
- "yellow": [33, 39]
26285
- };
26286
- inspect.styles = {
26287
- "special": "cyan",
26288
- "number": "yellow",
26289
- "boolean": "yellow",
26290
- "undefined": "grey",
26291
- "null": "bold",
26292
- "string": "green",
26293
- "date": "magenta",
26294
- // "name": intentionally not styling
26295
- "regexp": "red"
26296
- };
26297
- function stylizeWithColor(str, styleType) {
26298
- var style = inspect.styles[styleType];
26299
- if (style) {
26300
- return "\x1B[" + inspect.colors[style][0] + "m" + str + "\x1B[" + inspect.colors[style][1] + "m";
26301
26258
  } else {
26302
- return str;
26259
+ str = ctx.stylize("[Circular]", "special");
26303
26260
  }
26304
26261
  }
26305
- function stylizeNoColor(str, styleType) {
26306
- return str;
26307
- }
26308
- function arrayToHash(array) {
26309
- var hash = {};
26310
- array.forEach(function(val2, idx) {
26311
- hash[val2] = true;
26312
- });
26313
- return hash;
26314
- }
26315
- function formatValue(ctx, value, recurseTimes) {
26316
- if (ctx.customInspect && value && isFunction2(value.inspect) && // Filter out the util module, it's inspect function is special
26317
- value.inspect !== exports2.inspect && // Also filter out any prototype objects using the circular check.
26318
- !(value.constructor && value.constructor.prototype === value)) {
26319
- var ret2 = value.inspect(recurseTimes, ctx);
26320
- if (!isString2(ret2)) {
26321
- ret2 = formatValue(ctx, ret2, recurseTimes);
26322
- }
26323
- return ret2;
26324
- }
26325
- var primitive = formatPrimitive(ctx, value);
26326
- if (primitive) {
26327
- return primitive;
26328
- }
26329
- var keys2 = Object.keys(value);
26330
- var visibleKeys = arrayToHash(keys2);
26331
- if (ctx.showHidden) {
26332
- keys2 = Object.getOwnPropertyNames(value);
26333
- }
26334
- if (isError2(value) && (keys2.indexOf("message") >= 0 || keys2.indexOf("description") >= 0)) {
26335
- return formatError(value);
26336
- }
26337
- if (keys2.length === 0) {
26338
- if (isFunction2(value)) {
26339
- var name2 = value.name ? ": " + value.name : "";
26340
- return ctx.stylize("[Function" + name2 + "]", "special");
26341
- }
26342
- if (isRegExp2(value)) {
26343
- return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
26344
- }
26345
- if (isDate(value)) {
26346
- return ctx.stylize(Date.prototype.toString.call(value), "date");
26347
- }
26348
- if (isError2(value)) {
26349
- return formatError(value);
26350
- }
26351
- }
26352
- var base2 = "", array = false, braces = ["{", "}"];
26353
- if (isArray2(value)) {
26354
- array = true;
26355
- braces = ["[", "]"];
26356
- }
26357
- if (isFunction2(value)) {
26358
- var n = value.name ? ": " + value.name : "";
26359
- base2 = " [Function" + n + "]";
26360
- }
26361
- if (isRegExp2(value)) {
26362
- base2 = " " + RegExp.prototype.toString.call(value);
26363
- }
26364
- if (isDate(value)) {
26365
- base2 = " " + Date.prototype.toUTCString.call(value);
26366
- }
26367
- if (isError2(value)) {
26368
- base2 = " " + formatError(value);
26369
- }
26370
- if (keys2.length === 0 && (!array || value.length == 0)) {
26371
- return braces[0] + base2 + braces[1];
26372
- }
26373
- if (recurseTimes < 0) {
26374
- if (isRegExp2(value)) {
26375
- return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
26376
- } else {
26377
- return ctx.stylize("[Object]", "special");
26378
- }
26262
+ if (isUndefined(name2)) {
26263
+ if (array && key.match(/^\d+$/)) {
26264
+ return str;
26379
26265
  }
26380
- ctx.seen.push(value);
26381
- var output2;
26382
- if (array) {
26383
- output2 = formatArray(ctx, value, recurseTimes, visibleKeys, keys2);
26266
+ name2 = JSON.stringify("" + key);
26267
+ if (name2.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
26268
+ name2 = name2.slice(1, -1);
26269
+ name2 = ctx.stylize(name2, "name");
26384
26270
  } else {
26385
- output2 = keys2.map(function(key) {
26386
- return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
26387
- });
26388
- }
26389
- ctx.seen.pop();
26390
- return reduceToSingleString(output2, base2, braces);
26391
- }
26392
- function formatPrimitive(ctx, value) {
26393
- if (isUndefined(value))
26394
- return ctx.stylize("undefined", "undefined");
26395
- if (isString2(value)) {
26396
- var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
26397
- return ctx.stylize(simple, "string");
26398
- }
26399
- if (isNumber(value))
26400
- return ctx.stylize("" + value, "number");
26401
- if (isBoolean(value))
26402
- return ctx.stylize("" + value, "boolean");
26403
- if (isNull(value))
26404
- return ctx.stylize("null", "null");
26405
- }
26406
- function formatError(value) {
26407
- return "[" + Error.prototype.toString.call(value) + "]";
26408
- }
26409
- function formatArray(ctx, value, recurseTimes, visibleKeys, keys2) {
26410
- var output2 = [];
26411
- for (var i = 0, l = value.length; i < l; ++i) {
26412
- if (hasOwnProperty2(value, String(i))) {
26413
- output2.push(formatProperty(
26414
- ctx,
26415
- value,
26416
- recurseTimes,
26417
- visibleKeys,
26418
- String(i),
26419
- true
26420
- ));
26421
- } else {
26422
- output2.push("");
26423
- }
26424
- }
26425
- keys2.forEach(function(key) {
26426
- if (!key.match(/^\d+$/)) {
26427
- output2.push(formatProperty(
26428
- ctx,
26429
- value,
26430
- recurseTimes,
26431
- visibleKeys,
26432
- key,
26433
- true
26434
- ));
26435
- }
26271
+ name2 = name2.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
26272
+ name2 = ctx.stylize(name2, "string");
26273
+ }
26274
+ }
26275
+ return name2 + ": " + str;
26276
+ }
26277
+ function reduceToSingleString(output2, base2, braces) {
26278
+ var length = output2.reduce(function(prev, cur) {
26279
+ if (cur.indexOf("\n") >= 0) ;
26280
+ return prev + cur.replace(/\u001b\[\d\d?m/g, "").length + 1;
26281
+ }, 0);
26282
+ if (length > 60) {
26283
+ return braces[0] + (base2 === "" ? "" : base2 + "\n ") + " " + output2.join(",\n ") + " " + braces[1];
26284
+ }
26285
+ return braces[0] + base2 + " " + output2.join(", ") + " " + braces[1];
26286
+ }
26287
+ exports2.types = types;
26288
+ function isArray2(ar) {
26289
+ return Array.isArray(ar);
26290
+ }
26291
+ exports2.isArray = isArray2;
26292
+ function isBoolean(arg) {
26293
+ return typeof arg === "boolean";
26294
+ }
26295
+ exports2.isBoolean = isBoolean;
26296
+ function isNull(arg) {
26297
+ return arg === null;
26298
+ }
26299
+ exports2.isNull = isNull;
26300
+ function isNullOrUndefined(arg) {
26301
+ return arg == null;
26302
+ }
26303
+ exports2.isNullOrUndefined = isNullOrUndefined;
26304
+ function isNumber(arg) {
26305
+ return typeof arg === "number";
26306
+ }
26307
+ exports2.isNumber = isNumber;
26308
+ function isString2(arg) {
26309
+ return typeof arg === "string";
26310
+ }
26311
+ exports2.isString = isString2;
26312
+ function isSymbol(arg) {
26313
+ return typeof arg === "symbol";
26314
+ }
26315
+ exports2.isSymbol = isSymbol;
26316
+ function isUndefined(arg) {
26317
+ return arg === void 0;
26318
+ }
26319
+ exports2.isUndefined = isUndefined;
26320
+ function isRegExp2(re) {
26321
+ return isObject2(re) && objectToString2(re) === "[object RegExp]";
26322
+ }
26323
+ exports2.isRegExp = isRegExp2;
26324
+ exports2.types.isRegExp = isRegExp2;
26325
+ function isObject2(arg) {
26326
+ return typeof arg === "object" && arg !== null;
26327
+ }
26328
+ exports2.isObject = isObject2;
26329
+ function isDate(d2) {
26330
+ return isObject2(d2) && objectToString2(d2) === "[object Date]";
26331
+ }
26332
+ exports2.isDate = isDate;
26333
+ exports2.types.isDate = isDate;
26334
+ function isError2(e) {
26335
+ return isObject2(e) && (objectToString2(e) === "[object Error]" || e instanceof Error);
26336
+ }
26337
+ exports2.isError = isError2;
26338
+ exports2.types.isNativeError = isError2;
26339
+ function isFunction2(arg) {
26340
+ return typeof arg === "function";
26341
+ }
26342
+ exports2.isFunction = isFunction2;
26343
+ function isPrimitive2(arg) {
26344
+ return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
26345
+ typeof arg === "undefined";
26346
+ }
26347
+ exports2.isPrimitive = isPrimitive2;
26348
+ exports2.isBuffer = isBufferBrowser;
26349
+ function objectToString2(o) {
26350
+ return Object.prototype.toString.call(o);
26351
+ }
26352
+ function pad2(n) {
26353
+ return n < 10 ? "0" + n.toString(10) : n.toString(10);
26354
+ }
26355
+ var months = [
26356
+ "Jan",
26357
+ "Feb",
26358
+ "Mar",
26359
+ "Apr",
26360
+ "May",
26361
+ "Jun",
26362
+ "Jul",
26363
+ "Aug",
26364
+ "Sep",
26365
+ "Oct",
26366
+ "Nov",
26367
+ "Dec"
26368
+ ];
26369
+ function timestamp() {
26370
+ var d2 = /* @__PURE__ */ new Date();
26371
+ var time = [
26372
+ pad2(d2.getHours()),
26373
+ pad2(d2.getMinutes()),
26374
+ pad2(d2.getSeconds())
26375
+ ].join(":");
26376
+ return [d2.getDate(), months[d2.getMonth()], time].join(" ");
26377
+ }
26378
+ exports2.log = function() {
26379
+ console.log("%s - %s", timestamp(), exports2.format.apply(exports2, arguments));
26380
+ };
26381
+ exports2.inherits = inherits_browserExports;
26382
+ exports2._extend = function(origin, add2) {
26383
+ if (!add2 || !isObject2(add2)) return origin;
26384
+ var keys2 = Object.keys(add2);
26385
+ var i = keys2.length;
26386
+ while (i--) {
26387
+ origin[keys2[i]] = add2[keys2[i]];
26388
+ }
26389
+ return origin;
26390
+ };
26391
+ function hasOwnProperty2(obj, prop2) {
26392
+ return Object.prototype.hasOwnProperty.call(obj, prop2);
26393
+ }
26394
+ var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0;
26395
+ exports2.promisify = function promisify2(original) {
26396
+ if (typeof original !== "function")
26397
+ throw new TypeError('The "original" argument must be of type Function');
26398
+ if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
26399
+ var fn = original[kCustomPromisifiedSymbol];
26400
+ if (typeof fn !== "function") {
26401
+ throw new TypeError('The "util.promisify.custom" argument must be of type Function');
26402
+ }
26403
+ Object.defineProperty(fn, kCustomPromisifiedSymbol, {
26404
+ value: fn,
26405
+ enumerable: false,
26406
+ writable: false,
26407
+ configurable: true
26436
26408
  });
26437
- return output2;
26409
+ return fn;
26438
26410
  }
26439
- function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
26440
- var name2, str, desc;
26441
- desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
26442
- if (desc.get) {
26443
- if (desc.set) {
26444
- str = ctx.stylize("[Getter/Setter]", "special");
26445
- } else {
26446
- str = ctx.stylize("[Getter]", "special");
26447
- }
26448
- } else {
26449
- if (desc.set) {
26450
- str = ctx.stylize("[Setter]", "special");
26451
- }
26452
- }
26453
- if (!hasOwnProperty2(visibleKeys, key)) {
26454
- name2 = "[" + key + "]";
26411
+ function fn() {
26412
+ var promiseResolve, promiseReject;
26413
+ var promise2 = new Promise(function(resolve2, reject) {
26414
+ promiseResolve = resolve2;
26415
+ promiseReject = reject;
26416
+ });
26417
+ var args2 = [];
26418
+ for (var i = 0; i < arguments.length; i++) {
26419
+ args2.push(arguments[i]);
26455
26420
  }
26456
- if (!str) {
26457
- if (ctx.seen.indexOf(desc.value) < 0) {
26458
- if (isNull(recurseTimes)) {
26459
- str = formatValue(ctx, desc.value, null);
26460
- } else {
26461
- str = formatValue(ctx, desc.value, recurseTimes - 1);
26462
- }
26463
- if (str.indexOf("\n") > -1) {
26464
- if (array) {
26465
- str = str.split("\n").map(function(line) {
26466
- return " " + line;
26467
- }).join("\n").slice(2);
26468
- } else {
26469
- str = "\n" + str.split("\n").map(function(line) {
26470
- return " " + line;
26471
- }).join("\n");
26472
- }
26473
- }
26421
+ args2.push(function(err2, value) {
26422
+ if (err2) {
26423
+ promiseReject(err2);
26474
26424
  } else {
26475
- str = ctx.stylize("[Circular]", "special");
26425
+ promiseResolve(value);
26476
26426
  }
26427
+ });
26428
+ try {
26429
+ original.apply(this, args2);
26430
+ } catch (err2) {
26431
+ promiseReject(err2);
26477
26432
  }
26478
- if (isUndefined(name2)) {
26479
- if (array && key.match(/^\d+$/)) {
26480
- return str;
26481
- }
26482
- name2 = JSON.stringify("" + key);
26483
- if (name2.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
26484
- name2 = name2.slice(1, -1);
26485
- name2 = ctx.stylize(name2, "name");
26486
- } else {
26487
- name2 = name2.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
26488
- name2 = ctx.stylize(name2, "string");
26489
- }
26490
- }
26491
- return name2 + ": " + str;
26492
- }
26493
- function reduceToSingleString(output2, base2, braces) {
26494
- var length = output2.reduce(function(prev, cur) {
26495
- if (cur.indexOf("\n") >= 0) ;
26496
- return prev + cur.replace(/\u001b\[\d\d?m/g, "").length + 1;
26497
- }, 0);
26498
- if (length > 60) {
26499
- return braces[0] + (base2 === "" ? "" : base2 + "\n ") + " " + output2.join(",\n ") + " " + braces[1];
26500
- }
26501
- return braces[0] + base2 + " " + output2.join(", ") + " " + braces[1];
26502
- }
26503
- exports2.types = requireTypes();
26504
- function isArray2(ar) {
26505
- return Array.isArray(ar);
26506
- }
26507
- exports2.isArray = isArray2;
26508
- function isBoolean(arg) {
26509
- return typeof arg === "boolean";
26510
- }
26511
- exports2.isBoolean = isBoolean;
26512
- function isNull(arg) {
26513
- return arg === null;
26514
- }
26515
- exports2.isNull = isNull;
26516
- function isNullOrUndefined(arg) {
26517
- return arg == null;
26518
- }
26519
- exports2.isNullOrUndefined = isNullOrUndefined;
26520
- function isNumber(arg) {
26521
- return typeof arg === "number";
26522
- }
26523
- exports2.isNumber = isNumber;
26524
- function isString2(arg) {
26525
- return typeof arg === "string";
26526
- }
26527
- exports2.isString = isString2;
26528
- function isSymbol(arg) {
26529
- return typeof arg === "symbol";
26530
- }
26531
- exports2.isSymbol = isSymbol;
26532
- function isUndefined(arg) {
26533
- return arg === void 0;
26534
- }
26535
- exports2.isUndefined = isUndefined;
26536
- function isRegExp2(re) {
26537
- return isObject2(re) && objectToString2(re) === "[object RegExp]";
26538
- }
26539
- exports2.isRegExp = isRegExp2;
26540
- exports2.types.isRegExp = isRegExp2;
26541
- function isObject2(arg) {
26542
- return typeof arg === "object" && arg !== null;
26543
- }
26544
- exports2.isObject = isObject2;
26545
- function isDate(d2) {
26546
- return isObject2(d2) && objectToString2(d2) === "[object Date]";
26547
- }
26548
- exports2.isDate = isDate;
26549
- exports2.types.isDate = isDate;
26550
- function isError2(e) {
26551
- return isObject2(e) && (objectToString2(e) === "[object Error]" || e instanceof Error);
26552
- }
26553
- exports2.isError = isError2;
26554
- exports2.types.isNativeError = isError2;
26555
- function isFunction2(arg) {
26556
- return typeof arg === "function";
26557
- }
26558
- exports2.isFunction = isFunction2;
26559
- function isPrimitive2(arg) {
26560
- return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
26561
- typeof arg === "undefined";
26562
- }
26563
- exports2.isPrimitive = isPrimitive2;
26564
- exports2.isBuffer = requireIsBufferBrowser();
26565
- function objectToString2(o) {
26566
- return Object.prototype.toString.call(o);
26567
- }
26568
- function pad2(n) {
26569
- return n < 10 ? "0" + n.toString(10) : n.toString(10);
26570
- }
26571
- var months = [
26572
- "Jan",
26573
- "Feb",
26574
- "Mar",
26575
- "Apr",
26576
- "May",
26577
- "Jun",
26578
- "Jul",
26579
- "Aug",
26580
- "Sep",
26581
- "Oct",
26582
- "Nov",
26583
- "Dec"
26584
- ];
26585
- function timestamp() {
26586
- var d2 = /* @__PURE__ */ new Date();
26587
- var time = [
26588
- pad2(d2.getHours()),
26589
- pad2(d2.getMinutes()),
26590
- pad2(d2.getSeconds())
26591
- ].join(":");
26592
- return [d2.getDate(), months[d2.getMonth()], time].join(" ");
26593
- }
26594
- exports2.log = function() {
26595
- console.log("%s - %s", timestamp(), exports2.format.apply(exports2, arguments));
26596
- };
26597
- exports2.inherits = inherits_browserExports;
26598
- exports2._extend = function(origin, add2) {
26599
- if (!add2 || !isObject2(add2)) return origin;
26600
- var keys2 = Object.keys(add2);
26601
- var i = keys2.length;
26602
- while (i--) {
26603
- origin[keys2[i]] = add2[keys2[i]];
26604
- }
26605
- return origin;
26606
- };
26607
- function hasOwnProperty2(obj, prop2) {
26608
- return Object.prototype.hasOwnProperty.call(obj, prop2);
26609
- }
26610
- var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0;
26611
- exports2.promisify = function promisify2(original) {
26612
- if (typeof original !== "function")
26613
- throw new TypeError('The "original" argument must be of type Function');
26614
- if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
26615
- var fn = original[kCustomPromisifiedSymbol];
26616
- if (typeof fn !== "function") {
26617
- throw new TypeError('The "util.promisify.custom" argument must be of type Function');
26618
- }
26619
- Object.defineProperty(fn, kCustomPromisifiedSymbol, {
26620
- value: fn,
26621
- enumerable: false,
26622
- writable: false,
26623
- configurable: true
26624
- });
26625
- return fn;
26626
- }
26627
- function fn() {
26628
- var promiseResolve, promiseReject;
26629
- var promise2 = new Promise(function(resolve2, reject) {
26630
- promiseResolve = resolve2;
26631
- promiseReject = reject;
26632
- });
26633
- var args2 = [];
26634
- for (var i = 0; i < arguments.length; i++) {
26635
- args2.push(arguments[i]);
26636
- }
26637
- args2.push(function(err2, value) {
26638
- if (err2) {
26639
- promiseReject(err2);
26640
- } else {
26641
- promiseResolve(value);
26642
- }
26643
- });
26644
- try {
26645
- original.apply(this, args2);
26646
- } catch (err2) {
26647
- promiseReject(err2);
26648
- }
26649
- return promise2;
26433
+ return promise2;
26434
+ }
26435
+ Object.setPrototypeOf(fn, Object.getPrototypeOf(original));
26436
+ if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {
26437
+ value: fn,
26438
+ enumerable: false,
26439
+ writable: false,
26440
+ configurable: true
26441
+ });
26442
+ return Object.defineProperties(
26443
+ fn,
26444
+ getOwnPropertyDescriptors(original)
26445
+ );
26446
+ };
26447
+ exports2.promisify.custom = kCustomPromisifiedSymbol;
26448
+ function callbackifyOnRejected(reason, cb) {
26449
+ if (!reason) {
26450
+ var newReason = new Error("Promise was rejected with a falsy value");
26451
+ newReason.reason = reason;
26452
+ reason = newReason;
26453
+ }
26454
+ return cb(reason);
26455
+ }
26456
+ function callbackify(original) {
26457
+ if (typeof original !== "function") {
26458
+ throw new TypeError('The "original" argument must be of type Function');
26459
+ }
26460
+ function callbackified() {
26461
+ var args2 = [];
26462
+ for (var i = 0; i < arguments.length; i++) {
26463
+ args2.push(arguments[i]);
26650
26464
  }
26651
- Object.setPrototypeOf(fn, Object.getPrototypeOf(original));
26652
- if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {
26653
- value: fn,
26654
- enumerable: false,
26655
- writable: false,
26656
- configurable: true
26657
- });
26658
- return Object.defineProperties(
26659
- fn,
26660
- getOwnPropertyDescriptors(original)
26661
- );
26662
- };
26663
- exports2.promisify.custom = kCustomPromisifiedSymbol;
26664
- function callbackifyOnRejected(reason, cb) {
26665
- if (!reason) {
26666
- var newReason = new Error("Promise was rejected with a falsy value");
26667
- newReason.reason = reason;
26668
- reason = newReason;
26669
- }
26670
- return cb(reason);
26671
- }
26672
- function callbackify(original) {
26673
- if (typeof original !== "function") {
26674
- throw new TypeError('The "original" argument must be of type Function');
26675
- }
26676
- function callbackified() {
26677
- var args2 = [];
26678
- for (var i = 0; i < arguments.length; i++) {
26679
- args2.push(arguments[i]);
26680
- }
26681
- var maybeCb = args2.pop();
26682
- if (typeof maybeCb !== "function") {
26683
- throw new TypeError("The last argument must be of type Function");
26684
- }
26685
- var self2 = this;
26686
- var cb = function() {
26687
- return maybeCb.apply(self2, arguments);
26688
- };
26689
- original.apply(this, args2).then(
26690
- function(ret2) {
26691
- define_process_default2.nextTick(cb.bind(null, null, ret2));
26692
- },
26693
- function(rej) {
26694
- define_process_default2.nextTick(callbackifyOnRejected.bind(null, rej, cb));
26695
- }
26696
- );
26465
+ var maybeCb = args2.pop();
26466
+ if (typeof maybeCb !== "function") {
26467
+ throw new TypeError("The last argument must be of type Function");
26697
26468
  }
26698
- Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));
26699
- Object.defineProperties(
26700
- callbackified,
26701
- getOwnPropertyDescriptors(original)
26469
+ var self2 = this;
26470
+ var cb = function() {
26471
+ return maybeCb.apply(self2, arguments);
26472
+ };
26473
+ original.apply(this, args2).then(
26474
+ function(ret2) {
26475
+ define_process_default2.nextTick(cb.bind(null, null, ret2));
26476
+ },
26477
+ function(rej) {
26478
+ define_process_default2.nextTick(callbackifyOnRejected.bind(null, rej, cb));
26479
+ }
26702
26480
  );
26703
- return callbackified;
26704
26481
  }
26705
- exports2.callbackify = callbackify;
26706
- })(util$5);
26707
- return util$5;
26708
- }
26482
+ Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));
26483
+ Object.defineProperties(
26484
+ callbackified,
26485
+ getOwnPropertyDescriptors(original)
26486
+ );
26487
+ return callbackified;
26488
+ }
26489
+ exports2.callbackify = callbackify;
26490
+ })(util$5);
26491
+ const util$4 = /* @__PURE__ */ _mergeNamespaces({
26492
+ __proto__: null
26493
+ }, [util$5]);
26709
26494
  var buffer_list;
26710
26495
  var hasRequiredBuffer_list;
26711
26496
  function requireBuffer_list() {
@@ -26775,7 +26560,7 @@ function requireBuffer_list() {
26775
26560
  return (hint === "string" ? String : Number)(input);
26776
26561
  }
26777
26562
  var _require = requireBuffer(), Buffer2 = _require.Buffer;
26778
- var _require2 = requireUtil(), inspect = _require2.inspect;
26563
+ var _require2 = util$5, inspect = _require2.inspect;
26779
26564
  var custom = inspect && inspect.custom || "inspect";
26780
26565
  function copyBuffer(src, target, offset2) {
26781
26566
  Buffer2.prototype.copy.call(src, target, offset2);
@@ -28367,7 +28152,7 @@ function require_stream_readable() {
28367
28152
  function _isUint8Array(obj) {
28368
28153
  return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
28369
28154
  }
28370
- var debugUtil = requireUtil();
28155
+ var debugUtil = util$5;
28371
28156
  var debug2;
28372
28157
  if (debugUtil && debugUtil.debuglog) {
28373
28158
  debug2 = debugUtil.debuglog("stream");
@@ -28756,7 +28541,7 @@ function require_stream_readable() {
28756
28541
  var ret2 = dest.write(chunk);
28757
28542
  debug2("dest.write", ret2);
28758
28543
  if (ret2 === false) {
28759
- if ((state2.pipesCount === 1 && state2.pipes === dest || state2.pipesCount > 1 && indexOf(state2.pipes, dest) !== -1) && !cleanedUp) {
28544
+ if ((state2.pipesCount === 1 && state2.pipes === dest || state2.pipesCount > 1 && indexOf2(state2.pipes, dest) !== -1) && !cleanedUp) {
28760
28545
  debug2("false write response, pause", state2.awaitDrain);
28761
28546
  state2.awaitDrain++;
28762
28547
  }
@@ -28829,7 +28614,7 @@ function require_stream_readable() {
28829
28614
  });
28830
28615
  return this;
28831
28616
  }
28832
- var index2 = indexOf(state2.pipes, dest);
28617
+ var index2 = indexOf2(state2.pipes, dest);
28833
28618
  if (index2 === -1) return this;
28834
28619
  state2.pipes.splice(index2, 1);
28835
28620
  state2.pipesCount -= 1;
@@ -29065,7 +28850,7 @@ function require_stream_readable() {
29065
28850
  return from(Readable2, iterable, opts);
29066
28851
  };
29067
28852
  }
29068
- function indexOf(xs, x) {
28853
+ function indexOf2(xs, x) {
29069
28854
  for (var i = 0, l = xs.length; i < l; i++) {
29070
28855
  if (xs[i] === x) return i;
29071
28856
  }
@@ -29233,7 +29018,7 @@ function requirePipeline() {
29233
29018
  callback(err2 || new ERR_STREAM_DESTROYED("pipe"));
29234
29019
  };
29235
29020
  }
29236
- function call(fn) {
29021
+ function call2(fn) {
29237
29022
  fn();
29238
29023
  }
29239
29024
  function pipe(from, to) {
@@ -29259,9 +29044,9 @@ function requirePipeline() {
29259
29044
  var writing = i > 0;
29260
29045
  return destroyer(stream, reading, writing, function(err2) {
29261
29046
  if (!error) error = err2;
29262
- if (err2) destroys.forEach(call);
29047
+ if (err2) destroys.forEach(call2);
29263
29048
  if (reading) return;
29264
- destroys.forEach(call);
29049
+ destroys.forEach(call2);
29265
29050
  callback(error);
29266
29051
  });
29267
29052
  });
@@ -30358,7 +30143,7 @@ const maybeStartInteractiveTutorial = async () => {
30358
30143
  }
30359
30144
  return commands$1.executeCommand("cody.tutorial.start");
30360
30145
  };
30361
- const version = ((_r = (_q = extensions.getExtension("sourcegraph.cody-ai")) == null ? void 0 : _q.packageJSON) == null ? void 0 : _r.version) ?? version$1;
30146
+ const version = ((_t = (_s = extensions.getExtension("sourcegraph.cody-ai")) == null ? void 0 : _s.packageJSON) == null ? void 0 : _t.version) ?? version$1;
30362
30147
  setExtensionVersion(version);
30363
30148
  const HAS_AUTHENTICATED_BEFORE_KEY = "has-authenticated-before";
30364
30149
  class AuthProvider {
@@ -33336,11 +33121,11 @@ function isInstanceOf(wat, base2) {
33336
33121
  function isVueViewModel(wat) {
33337
33122
  return !!(typeof wat === "object" && wat !== null && (wat.__isVue || wat._isVue));
33338
33123
  }
33339
- function truncate(str, max = 0) {
33340
- if (typeof str !== "string" || max === 0) {
33124
+ function truncate(str, max2 = 0) {
33125
+ if (typeof str !== "string" || max2 === 0) {
33341
33126
  return str;
33342
33127
  }
33343
- return str.length <= max ? str : `${str.slice(0, max)}...`;
33128
+ return str.length <= max2 ? str : `${str.slice(0, max2)}...`;
33344
33129
  }
33345
33130
  function safeJoin(input, delimiter) {
33346
33131
  if (!Array.isArray(input)) {
@@ -40183,15 +39968,15 @@ async function getContextFilesForUnitTestCommand(file) {
40183
39968
  const contextFiles = [];
40184
39969
  const excludePattern = "**/*{e2e,integration,node_modules,dist}*/**";
40185
39970
  const searchCurrentDirectoryOnly = true;
40186
- const max = 10;
39971
+ const max2 = 10;
40187
39972
  const sameNameTestPattern = getSearchPatternForTestFiles(file, !searchCurrentDirectoryOnly, true);
40188
39973
  const testWithSameName = await getWorkspaceFilesContext(sameNameTestPattern, excludePattern, 1);
40189
39974
  const currentDirPattern = getSearchPatternForTestFiles(file, searchCurrentDirectoryOnly);
40190
- const currentDirContext = await getWorkspaceFilesContext(currentDirPattern, excludePattern, max);
39975
+ const currentDirContext = await getWorkspaceFilesContext(currentDirPattern, excludePattern, max2);
40191
39976
  contextFiles.push(...testWithSameName, ...currentDirContext);
40192
39977
  if (!contextFiles.length) {
40193
39978
  const wsTestPattern = getSearchPatternForTestFiles(file, !searchCurrentDirectoryOnly);
40194
- const codebaseFiles = await getWorkspaceFilesContext(wsTestPattern, excludePattern, max / 2);
39979
+ const codebaseFiles = await getWorkspaceFilesContext(wsTestPattern, excludePattern, max2 / 2);
40195
39980
  contextFiles.push(...codebaseFiles);
40196
39981
  }
40197
39982
  return contextFiles.filter((f) => isValidTestFile(f.uri));
@@ -40373,13 +40158,13 @@ async function getContextFilesForAddingUnitTestCases(testFile) {
40373
40158
  const contextFiles = [];
40374
40159
  const excludePattern = "**/*{e2e,integration,node_modules,dist}*/**";
40375
40160
  const searchInCurrentDirectoryOnly = true;
40376
- const max = 10;
40161
+ const max2 = 10;
40377
40162
  const curerntDirPattern = getSearchPatternForTestFiles(testFile, searchInCurrentDirectoryOnly);
40378
- const currentDirContext = await getWorkspaceFilesContext(curerntDirPattern, excludePattern, max);
40163
+ const currentDirContext = await getWorkspaceFilesContext(curerntDirPattern, excludePattern, max2);
40379
40164
  contextFiles.push(...currentDirContext);
40380
40165
  if (!contextFiles.length) {
40381
40166
  const wsTestPattern = getSearchPatternForTestFiles(testFile, !searchInCurrentDirectoryOnly);
40382
- const codebaseFiles = await getWorkspaceFilesContext(wsTestPattern, excludePattern, max / 2);
40167
+ const codebaseFiles = await getWorkspaceFilesContext(wsTestPattern, excludePattern, max2 / 2);
40383
40168
  contextFiles.push(...codebaseFiles);
40384
40169
  }
40385
40170
  return contextFiles.filter((f) => isValidTestFile(f.uri));
@@ -44623,7 +44408,7 @@ class AgentWorkspaceDocuments {
44623
44408
  __publicField2(this, "agentDocuments", /* @__PURE__ */ new Map());
44624
44409
  __publicField2(this, "workspaceRootUri");
44625
44410
  __publicField2(this, "activeDocumentFilePath", null);
44626
- __publicField2(this, "doPanic", ((_s = this.params) == null ? void 0 : _s.doPanic) ? { doPanic: this.params.doPanic } : void 0);
44411
+ __publicField2(this, "doPanic", ((_u = this.params) == null ? void 0 : _u.doPanic) ? { doPanic: this.params.doPanic } : void 0);
44627
44412
  this.params = params;
44628
44413
  }
44629
44414
  openUri(uri2) {
@@ -45515,7 +45300,7 @@ function requireLib() {
45515
45300
  const MurmurHash3 = requireImurmurhash();
45516
45301
  const { onExit } = requireCjs();
45517
45302
  const path2 = pathBrowserify;
45518
- const { promisify: promisify2 } = requireUtil();
45303
+ const { promisify: promisify2 } = util$5;
45519
45304
  const activeFiles = {};
45520
45305
  const threadId = function getId() {
45521
45306
  try {
@@ -48737,7 +48522,7 @@ class CommandsProvider {
48737
48522
  if (!isFileURI(uri2)) {
48738
48523
  throw new Error("history only supported on local file paths");
48739
48524
  }
48740
- const { getContextFileFromGitLog } = await import("./git-log-BrfMXsI3.mjs");
48525
+ const { getContextFileFromGitLog } = await import("./git-log-LuZe_Ru4.mjs");
48741
48526
  return getContextFileFromGitLog(uri2, options);
48742
48527
  }
48743
48528
  dispose() {
@@ -49840,8 +49625,8 @@ var ngram = function(str, size) {
49840
49625
  return ngramz;
49841
49626
  };
49842
49627
  var stringNgram = ngram;
49843
- var edgeNGrams = function(str, min, max, delta, ifn, idx) {
49844
- var dlta = delta || 2, eg, egs = [], imax = Math.min(max || 8, str.length) + 1, start2 = min || 2;
49628
+ var edgeNGrams = function(str, min, max2, delta, ifn, idx) {
49629
+ var dlta = delta || 2, eg, egs = [], imax = Math.min(max2 || 8, str.length) + 1, start2 = min || 2;
49845
49630
  for (var i = start2; i < imax; i += dlta) {
49846
49631
  eg = str.slice(0, i);
49847
49632
  egs.push(eg);
@@ -50105,9 +49890,9 @@ const sentenceWiseImportance = function(rdd) {
50105
49890
  sentenceWiseWeights[e] += pgw.weight;
50106
49891
  });
50107
49892
  });
50108
- let max = Math.max(...sentenceWiseWeights);
50109
- if (max === 0) max = 1;
50110
- return sentenceWiseWeights.map((e, i) => ({ index: i, importance: +(e / max).toFixed(4) }));
49893
+ let max2 = Math.max(...sentenceWiseWeights);
49894
+ if (max2 === 0) max2 = 1;
49895
+ return sentenceWiseWeights.map((e, i) => ({ index: i, importance: +(e / max2).toFixed(4) }));
50111
49896
  };
50112
49897
  var sentenceWiseImportance_1 = sentenceWiseImportance;
50113
49898
  var sort4FT$1 = sort4FT$2;
@@ -50665,7 +50450,7 @@ var doc = function(docData, addons) {
50665
50450
  api.filter = (f) => selFilter(f, selectedTokens, itemToken, colSelectedTokens);
50666
50451
  api.itemAt = (k) => selGetItemAt(k, selectedTokens, itemToken);
50667
50452
  api.length = () => selectedTokens.length;
50668
- api.out = (f, g) => selTokensOut(selectedTokens, docData, f, g, addons);
50453
+ api.out = (f, g2) => selTokensOut(selectedTokens, docData, f, g2, addons);
50669
50454
  return api;
50670
50455
  };
50671
50456
  colTokens = function(start2, end) {
@@ -50675,7 +50460,7 @@ var doc = function(docData, addons) {
50675
50460
  api.filter = (f) => colFilter(f, start2, end, itemToken, colSelectedTokens);
50676
50461
  api.itemAt = (k) => colGetItemAt(k, start2, end, itemToken);
50677
50462
  api.length = () => end - start2 + 1;
50678
- api.out = (f, g) => colTokensOut(start2, end, docData, f, g, addons);
50463
+ api.out = (f, g2) => colTokensOut(start2, end, docData, f, g2, addons);
50679
50464
  return api;
50680
50465
  };
50681
50466
  };
@@ -50695,7 +50480,7 @@ var doc = function(docData, addons) {
50695
50480
  api.filter = (f) => selFilter(f, selectedEntities, itemEntity, colSelectedEntities);
50696
50481
  api.itemAt = (k) => selGetItemAt(k, selectedEntities, itemEntity);
50697
50482
  api.length = () => selectedEntities.length;
50698
- api.out = (f, g) => selEntitiesOut(selectedEntities, entities, docData, f, g);
50483
+ api.out = (f, g2) => selEntitiesOut(selectedEntities, entities, docData, f, g2);
50699
50484
  return api;
50700
50485
  };
50701
50486
  colEntities = function() {
@@ -50704,7 +50489,7 @@ var doc = function(docData, addons) {
50704
50489
  api.filter = (f) => colFilter(f, 0, entities.length - 1, itemEntity, colSelectedEntities);
50705
50490
  api.itemAt = (k) => colGetItemAt(k, 0, entities.length - 1, itemEntity);
50706
50491
  api.length = () => entities.length;
50707
- api.out = (f, g) => colEntitiesOut(entities, docData, f, g);
50492
+ api.out = (f, g2) => colEntitiesOut(entities, docData, f, g2);
50708
50493
  return api;
50709
50494
  };
50710
50495
  itemCustomEntity = function(index2) {
@@ -50723,7 +50508,7 @@ var doc = function(docData, addons) {
50723
50508
  api.filter = (f) => selFilter(f, selectedCustomEntities, itemCustomEntity, colSelectedCustomEntities);
50724
50509
  api.itemAt = (k) => selGetItemAt(k, selectedCustomEntities, itemCustomEntity);
50725
50510
  api.length = () => selectedCustomEntities.length;
50726
- api.out = (f, g) => selEntitiesOut(selectedCustomEntities, customEntities, docData, f, g);
50511
+ api.out = (f, g2) => selEntitiesOut(selectedCustomEntities, customEntities, docData, f, g2);
50727
50512
  return api;
50728
50513
  };
50729
50514
  colCustomEntities = function() {
@@ -50732,7 +50517,7 @@ var doc = function(docData, addons) {
50732
50517
  api.filter = (f) => colFilter(f, 0, customEntities.length - 1, itemCustomEntity, colSelectedCustomEntities);
50733
50518
  api.itemAt = (k) => colGetItemAt(k, 0, customEntities.length - 1, itemCustomEntity);
50734
50519
  api.length = () => customEntities.length;
50735
- api.out = (f, g) => colEntitiesOut(customEntities, docData, f, g);
50520
+ api.out = (f, g2) => colEntitiesOut(customEntities, docData, f, g2);
50736
50521
  return api;
50737
50522
  };
50738
50523
  itemSentence = function(index2) {
@@ -51476,9 +51261,9 @@ var simpleFSM = function(cache2, token2Ignore) {
51476
51261
  for (let i = 0; i < patterns.length; i += 1) {
51477
51262
  const pi = patterns[i];
51478
51263
  if (typeof pi.pattern === "string") {
51479
- const all = composePatterns(pi.pattern);
51480
- for (let j = 0; j < all.length; j += 1)
51481
- cp.push({ name: pi.name, pattern: all[j], mark: pi.mark, customProperty: pi.customProperty });
51264
+ const all2 = composePatterns(pi.pattern);
51265
+ for (let j = 0; j < all2.length; j += 1)
51266
+ cp.push({ name: pi.name, pattern: all2[j], mark: pi.mark, customProperty: pi.customProperty });
51482
51267
  } else cp.push({ name: pi.name, pattern: pi.pattern, mark: pi.mark, customProperty: pi.customProperty });
51483
51268
  }
51484
51269
  cp.sort((a, b) => b.pattern.length - a.pattern.length);
@@ -148633,7 +148418,7 @@ function startOrEndOverlapsLineRange(uriA, lineRangeA, uriB, lineRangeB) {
148633
148418
  return lineRangeA.start >= lineRangeB.start && lineRangeA.start <= lineRangeB.end || lineRangeA.end >= lineRangeB.start && lineRangeA.end <= lineRangeB.end;
148634
148419
  }
148635
148420
  var validator$2 = {};
148636
- var util$4 = {};
148421
+ var util$3 = {};
148637
148422
  (function(exports2) {
148638
148423
  const nameStartChar = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
148639
148424
  const nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
@@ -148687,8 +148472,8 @@ var util$4 = {};
148687
148472
  exports2.isName = isName;
148688
148473
  exports2.getAllMatches = getAllMatches;
148689
148474
  exports2.nameRegexp = nameRegexp;
148690
- })(util$4);
148691
- const util$3 = util$4;
148475
+ })(util$3);
148476
+ const util$2 = util$3;
148692
148477
  const defaultOptions$2 = {
148693
148478
  allowBooleanAttributes: false,
148694
148479
  //A tag can have attributes without any value
@@ -148910,7 +148695,7 @@ function readAttributeStr(xmlData, i) {
148910
148695
  }
148911
148696
  const validAttrStrRegxp = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
148912
148697
  function validateAttributeString(attrStr, options) {
148913
- const matches = util$3.getAllMatches(attrStr, validAttrStrRegxp);
148698
+ const matches = util$2.getAllMatches(attrStr, validAttrStrRegxp);
148914
148699
  const attrNames = {};
148915
148700
  for (let i = 0; i < matches.length; i++) {
148916
148701
  if (matches[i][1].length === 0) {
@@ -148975,10 +148760,10 @@ function getErrorObject(code, message, lineNumber) {
148975
148760
  };
148976
148761
  }
148977
148762
  function validateAttrName(attrName) {
148978
- return util$3.isName(attrName);
148763
+ return util$2.isName(attrName);
148979
148764
  }
148980
148765
  function validateTagName(tagname) {
148981
- return util$3.isName(tagname);
148766
+ return util$2.isName(tagname);
148982
148767
  }
148983
148768
  function getLineNumberForPosition(xmlData, index2) {
148984
148769
  const lines2 = xmlData.substring(0, index2).split(/\r?\n/);
@@ -149061,7 +148846,7 @@ class XmlNode {
149061
148846
  }
149062
148847
  }
149063
148848
  var xmlNode$1 = XmlNode;
149064
- const util$2 = util$4;
148849
+ const util$1 = util$3;
149065
148850
  function readDocType$1(xmlData, i) {
149066
148851
  const entities = {};
149067
148852
  if (xmlData[i + 3] === "O" && xmlData[i + 4] === "C" && xmlData[i + 5] === "T" && xmlData[i + 6] === "Y" && xmlData[i + 7] === "P" && xmlData[i + 8] === "E") {
@@ -149147,7 +148932,7 @@ function isNotation(xmlData, i) {
149147
148932
  return false;
149148
148933
  }
149149
148934
  function validateEntityName(name2) {
149150
- if (util$2.isName(name2))
148935
+ if (util$1.isName(name2))
149151
148936
  return name2;
149152
148937
  else
149153
148938
  throw new Error(`Invalid entity name ${name2}`);
@@ -149224,11 +149009,11 @@ function trimZeros(numStr) {
149224
149009
  return numStr;
149225
149010
  }
149226
149011
  var strnum = toNumber$1;
149227
- const util$1 = util$4;
149012
+ const util = util$3;
149228
149013
  const xmlNode = xmlNode$1;
149229
149014
  const readDocType = DocTypeReader;
149230
149015
  const toNumber = strnum;
149231
- "<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g, util$1.nameRegexp);
149016
+ "<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g, util.nameRegexp);
149232
149017
  let OrderedObjParser$1 = class OrderedObjParser2 {
149233
149018
  constructor(options) {
149234
149019
  this.options = options;
@@ -149320,7 +149105,7 @@ function resolveNameSpace(tagname) {
149320
149105
  const attrsRegx = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
149321
149106
  function buildAttributesMap(attrStr, jPath, tagName) {
149322
149107
  if (!this.options.ignoreAttributes && typeof attrStr === "string") {
149323
- const matches = util$1.getAllMatches(attrStr, attrsRegx);
149108
+ const matches = util.getAllMatches(attrStr, attrsRegx);
149324
149109
  const len = matches.length;
149325
149110
  const attrs = {};
149326
149111
  for (let i = 0; i < len; i++) {
@@ -149691,7 +149476,7 @@ function parseValue(val2, shouldParse, options) {
149691
149476
  else if (newval === "false") return false;
149692
149477
  else return toNumber(val2, options);
149693
149478
  } else {
149694
- if (util$1.isExist(val2)) {
149479
+ if (util.isExist(val2)) {
149695
149480
  return val2;
149696
149481
  } else {
149697
149482
  return "";
@@ -150618,9 +150403,9 @@ function divideGroupedChangesIntoShortTermAndLongTerm(params) {
150618
150403
  }
150619
150404
  function combineTextDocumentGroups(groups) {
150620
150405
  return {
150621
- changes: groups.flatMap((g) => g.changes),
150622
- insertedRange: getRangeUnion(groups.map((g) => g.insertedRange)),
150623
- replacementRange: getRangeUnion(groups.map((g) => g.replacementRange))
150406
+ changes: groups.flatMap((g2) => g2.changes),
150407
+ insertedRange: getRangeUnion(groups.map((g2) => g2.insertedRange)),
150408
+ replacementRange: getRangeUnion(groups.map((g2) => g2.replacementRange))
150624
150409
  };
150625
150410
  }
150626
150411
  function getDiffHunkFromUnifiedPatch(unifiedPatch) {
@@ -152940,8 +152725,8 @@ function isAllNewLineChars(text) {
152940
152725
  function trimNewLineCharsFromString(text) {
152941
152726
  return text.replace(/^(?:\r\n|\n)+|(?:\r\n|\n)+$/g, "");
152942
152727
  }
152943
- function clip(line, min, max) {
152944
- return Math.max(Math.min(line, max), min);
152728
+ function clip(line, min, max2) {
152729
+ return Math.max(Math.min(line, max2), min);
152945
152730
  }
152946
152731
  function getCompletionsPromptWithSystemPrompt(systemPrompt, userPrompt) {
152947
152732
  return ps`${systemPrompt}\n\nUser: ${userPrompt}\n\nAssistant:`;
@@ -153738,10 +153523,10 @@ class DefaultDecorator {
153738
153523
  }
153739
153524
  const lineNumbers = addedLinesInfo.map((d2) => d2.afterLine);
153740
153525
  const min = Math.min(...lineNumbers);
153741
- const max = Math.max(...lineNumbers);
153526
+ const max2 = Math.max(...lineNumbers);
153742
153527
  for (const unchangedLine of unchangedLines) {
153743
153528
  const lineNumber = unchangedLine.modifiedLineNumber;
153744
- if (lineNumber < min || lineNumber > max) {
153529
+ if (lineNumber < min || lineNumber > max2) {
153745
153530
  continue;
153746
153531
  }
153747
153532
  addedLinesInfo.push({
@@ -155593,11 +155378,11 @@ const SMALL_A_RUNE = "a".codePointAt(0);
155593
155378
  const SMALL_Z_RUNE = "z".codePointAt(0);
155594
155379
  const NUMERAL_ZERO_RUNE = "0".codePointAt(0);
155595
155380
  const NUMERAL_NINE_RUNE = "9".codePointAt(0);
155596
- function indexAt(index2, max, forward) {
155381
+ function indexAt(index2, max2, forward) {
155597
155382
  if (forward) {
155598
155383
  return index2;
155599
155384
  }
155600
- return max - index2 - 1;
155385
+ return max2 - index2 - 1;
155601
155386
  }
155602
155387
  const SCORE_MATCH = 16, SCORE_GAP_START = -3, SCORE_GAP_EXTENTION = -1, BONUS_BOUNDARY = SCORE_MATCH / 2, BONUS_NON_WORD = SCORE_MATCH / 2, BONUS_CAMEL_123 = BONUS_BOUNDARY + SCORE_GAP_EXTENTION, BONUS_CONSECUTIVE = -(SCORE_GAP_START + SCORE_GAP_EXTENTION), BONUS_FIRST_CHAR_MULTIPLIER = 2;
155603
155388
  function createPosSet(withPos) {
@@ -156410,7 +156195,7 @@ var fuzzysort$1 = { exports: {} };
156410
156195
  };
156411
156196
  var go2 = (search2, targets, options) => {
156412
156197
  if (search2 == "farzher") return [{ target: "farzher was here (^-^*)/", score: 0, _indexes: [0], obj: targets ? targets[0] : NULL }];
156413
- if (!search2) return options && options.all ? all(search2, targets, options) : noResults;
156198
+ if (!search2) return options && options.all ? all2(search2, targets, options) : noResults;
156414
156199
  var preparedSearch = getPreparedSearch(search2);
156415
156200
  var searchBitflags = preparedSearch.bitflags;
156416
156201
  preparedSearch.containsSpace;
@@ -156604,7 +156389,7 @@ var fuzzysort$1 = { exports: {} };
156604
156389
  preparedSearchCache.set(search2, searchPrepared);
156605
156390
  return searchPrepared;
156606
156391
  };
156607
- var all = (search2, targets, options) => {
156392
+ var all2 = (search2, targets, options) => {
156608
156393
  var results = [];
156609
156394
  results.total = targets.length;
156610
156395
  var limit = options && options.limit || INT_MAX;
@@ -156843,16 +156628,16 @@ var fuzzysort$1 = { exports: {} };
156843
156628
  var matchesSimple = [];
156844
156629
  var matchesStrict = [];
156845
156630
  var defaultScoreFn = (a) => {
156846
- var max = INT_MIN;
156631
+ var max2 = INT_MIN;
156847
156632
  var len = a.length;
156848
156633
  for (var i = 0; i < len; ++i) {
156849
156634
  var result = a[i];
156850
156635
  if (result === NULL) continue;
156851
156636
  var score = result.score;
156852
- if (score > max) max = score;
156637
+ if (score > max2) max2 = score;
156853
156638
  }
156854
- if (max === INT_MIN) return NULL;
156855
- return max;
156639
+ if (max2 === INT_MIN) return NULL;
156640
+ return max2;
156856
156641
  };
156857
156642
  var getValue2 = (obj, prop2) => {
156858
156643
  var tmp = obj[prop2];
@@ -238579,7 +238364,7 @@ function parseMentionURI(uri2) {
238579
238364
  }
238580
238365
  }
238581
238366
  async function execFileAsync(program2, args2, { cwd }) {
238582
- const { promisify: promisify2 } = await Promise.resolve().then(() => util);
238367
+ const { promisify: promisify2 } = await Promise.resolve().then(() => util$4);
238583
238368
  const { execFile: execFile2 } = await Promise.resolve().then(() => child_process);
238584
238369
  return promisify2(execFile2)(program2, args2, { cwd });
238585
238370
  }
@@ -240631,6 +240416,25 @@ function createRemoteRepositoryProvider(customTitle) {
240631
240416
  }
240632
240417
  };
240633
240418
  }
240419
+ const RemoteWorkspaceDirectoryProvider = createRemoteWorkspaceProvider("directory");
240420
+ const RemoteWorkspaceRepositoryProvider = createRemoteWorkspaceProvider("repository");
240421
+ function createRemoteWorkspaceProvider(type2) {
240422
+ return {
240423
+ providerUri: type2 === "directory" ? WORKSPACE_DIRECTORY_PROVIDER_URI : WORKSPACE_REPOSITORY_PROVIDER_URI,
240424
+ meta() {
240425
+ return {
240426
+ name: type2 === "directory" ? "Remote Directory" : "Remote Repository",
240427
+ mentions: {}
240428
+ };
240429
+ },
240430
+ async mentions() {
240431
+ return [];
240432
+ },
240433
+ async items() {
240434
+ return [];
240435
+ }
240436
+ };
240437
+ }
240634
240438
  function createWebProvider(useProxy) {
240635
240439
  return {
240636
240440
  providerUri: WEB_PROVIDER_URI,
@@ -240789,9 +240593,10 @@ function getOpenCtxProviders(authStatusChanges, isValidSiteVersion) {
240789
240593
  resolvedConfig.pipe(pluck("configuration"), distinctUntilChanged$1()),
240790
240594
  authStatusChanges,
240791
240595
  featureFlagProvider.evaluatedFeatureFlag(FeatureFlag.GitMentionProvider),
240792
- featureFlagProvider.evaluatedFeatureFlag(FeatureFlag.CodyExperimentalOneBox)
240596
+ featureFlagProvider.evaluatedFeatureFlag(FeatureFlag.CodyExperimentalOneBox),
240597
+ featureFlagProvider.evaluatedFeatureFlag(FeatureFlag.SourcegraphTeamsUpgradeCTA)
240793
240598
  ).map(
240794
- ([config, authStatus2, gitMentionProvider, enableOneBox]) => {
240599
+ ([config, authStatus2, gitMentionProvider, enableOneBox, showRemoteWorkspaceUpgrade]) => {
240795
240600
  const providers = [
240796
240601
  {
240797
240602
  settings: true,
@@ -240799,7 +240604,20 @@ function getOpenCtxProviders(authStatusChanges, isValidSiteVersion) {
240799
240604
  providerUri: WEB_PROVIDER_URI
240800
240605
  }
240801
240606
  ];
240802
- if (!isDotCom(authStatus2)) {
240607
+ if (isDotCom(authStatus2)) {
240608
+ if (showRemoteWorkspaceUpgrade) {
240609
+ providers.push({
240610
+ settings: false,
240611
+ provider: RemoteWorkspaceRepositoryProvider,
240612
+ providerUri: RemoteWorkspaceRepositoryProvider.providerUri
240613
+ });
240614
+ providers.push({
240615
+ settings: false,
240616
+ provider: RemoteWorkspaceDirectoryProvider,
240617
+ providerUri: RemoteWorkspaceDirectoryProvider.providerUri
240618
+ });
240619
+ }
240620
+ } else {
240803
240621
  providers.push({
240804
240622
  settings: true,
240805
240623
  provider: RemoteRepositorySearch,
@@ -240921,12 +240739,8 @@ async function warnIfOpenCtxExtensionConflict() {
240921
240739
  );
240922
240740
  await commands$1.executeCommand("workbench.extensions.action.showExtensionsWithIds", [[ext2.id]]);
240923
240741
  }
240924
- var utilExports = requireUtil();
240925
- const util = /* @__PURE__ */ _mergeNamespaces({
240926
- __proto__: null
240927
- }, [utilExports]);
240928
240742
  var define_process_default$1 = { env: {} };
240929
- const execAsync = utilExports.promisify(exec);
240743
+ const execAsync = util$5.promisify(exec);
240930
240744
  const HOME_DIR = define_process_default$1.env.HOME || define_process_default$1.env.USERPROFILE || "";
240931
240745
  const OUTPUT_WRAPPER = `
240932
240746
  Terminal output from the \`{command}\` command enclosed between <OUTPUT0412> tags:
@@ -241075,8 +240889,8 @@ function replaceSpace() {
241075
240889
  }
241076
240890
  function trimFactory(replace) {
241077
240891
  return dropOrReplace;
241078
- function dropOrReplace(value, index2, all) {
241079
- return index2 === 0 || index2 + value.length === all.length ? "" : replace(value);
240892
+ function dropOrReplace(value, index2, all2) {
240893
+ return index2 === 0 || index2 + value.length === all2.length ? "" : replace(value);
241080
240894
  }
241081
240895
  }
241082
240896
  const own$1 = {}.hasOwnProperty;
@@ -241261,10 +241075,10 @@ function francAll(value, options = {}) {
241261
241075
  }
241262
241076
  function normalize(value, distances) {
241263
241077
  const min = distances[0][1];
241264
- const max = value.length * MAX_DIFFERENCE - min;
241078
+ const max2 = value.length * MAX_DIFFERENCE - min;
241265
241079
  let index2 = -1;
241266
241080
  while (++index2 < distances.length) {
241267
- distances[index2][1] = 1 - (distances[index2][1] - min) / max || 0;
241081
+ distances[index2][1] = 1 - (distances[index2][1] - min) / max2 || 0;
241268
241082
  }
241269
241083
  return distances;
241270
241084
  }
@@ -254604,7 +254418,7 @@ async function registerDebugCommands(context2, disposables) {
254604
254418
  }
254605
254419
  async function tryRegisterTutorial(context2, disposables) {
254606
254420
  if (!isRunningInsideAgent()) {
254607
- const { registerInteractiveTutorial } = await import("./index-BbjC2_76.mjs");
254421
+ const { registerInteractiveTutorial } = await import("./index-B3HUdChN.mjs");
254608
254422
  registerInteractiveTutorial(context2).then((disposable) => disposables.push(...disposable));
254609
254423
  }
254610
254424
  }