/*! SES sources included by LavaMoat. Do not optimize or minify. */
;
// ses@1.14.0
(functors => options => {
  'use strict';

  const {
    Map,
    Object,
    ReferenceError,
    Reflect,
    TypeError,
  } = globalThis;
  const {
    create,
    defineProperties,
    defineProperty,
    freeze,
    fromEntries,
    getOwnPropertyDescriptors,
    getOwnPropertyNames,
    keys,
  } = Object;
  const { get, set } = Reflect;

  const {
  } = options || {};



  const cell = (name, value = undefined) => {
    const observers = [];
    return freeze({
      get: freeze(() => {
        return value;
      }),
      set: freeze((newValue) => {
        value = newValue;
        for (const observe of observers) {
          observe(value);
        }
      }),
      observe: freeze((observe) => {
        observers.push(observe);
        observe(value);
      }),
      enumerable: true,
    });
  };

  const cells = [
    {
      globalThis: cell("globalThis"),
      Array: cell("Array"),
      ArrayBuffer: cell("ArrayBuffer"),
      Date: cell("Date"),
      FinalizationRegistry: cell("FinalizationRegistry"),
      Float32Array: cell("Float32Array"),
      JSON: cell("JSON"),
      Map: cell("Map"),
      Math: cell("Math"),
      Number: cell("Number"),
      Object: cell("Object"),
      Promise: cell("Promise"),
      Proxy: cell("Proxy"),
      Reflect: cell("Reflect"),
      FERAL_REG_EXP: cell("FERAL_REG_EXP"),
      Set: cell("Set"),
      String: cell("String"),
      Symbol: cell("Symbol"),
      Uint8Array: cell("Uint8Array"),
      WeakMap: cell("WeakMap"),
      WeakSet: cell("WeakSet"),
      FERAL_ERROR: cell("FERAL_ERROR"),
      RangeError: cell("RangeError"),
      ReferenceError: cell("ReferenceError"),
      SyntaxError: cell("SyntaxError"),
      TypeError: cell("TypeError"),
      AggregateError: cell("AggregateError"),
      assign: cell("assign"),
      create: cell("create"),
      defineProperties: cell("defineProperties"),
      entries: cell("entries"),
      freeze: cell("freeze"),
      getOwnPropertyDescriptor: cell("getOwnPropertyDescriptor"),
      getOwnPropertyDescriptors: cell("getOwnPropertyDescriptors"),
      getOwnPropertyNames: cell("getOwnPropertyNames"),
      getPrototypeOf: cell("getPrototypeOf"),
      is: cell("is"),
      isFrozen: cell("isFrozen"),
      isSealed: cell("isSealed"),
      isExtensible: cell("isExtensible"),
      keys: cell("keys"),
      objectPrototype: cell("objectPrototype"),
      seal: cell("seal"),
      preventExtensions: cell("preventExtensions"),
      setPrototypeOf: cell("setPrototypeOf"),
      values: cell("values"),
      fromEntries: cell("fromEntries"),
      hasOwn: cell("hasOwn"),
      speciesSymbol: cell("speciesSymbol"),
      toStringTagSymbol: cell("toStringTagSymbol"),
      iteratorSymbol: cell("iteratorSymbol"),
      matchAllSymbol: cell("matchAllSymbol"),
      unscopablesSymbol: cell("unscopablesSymbol"),
      symbolKeyFor: cell("symbolKeyFor"),
      symbolFor: cell("symbolFor"),
      isInteger: cell("isInteger"),
      stringifyJson: cell("stringifyJson"),
      defineProperty: cell("defineProperty"),
      apply: cell("apply"),
      construct: cell("construct"),
      reflectGet: cell("reflectGet"),
      reflectGetOwnPropertyDescriptor: cell("reflectGetOwnPropertyDescriptor"),
      reflectHas: cell("reflectHas"),
      reflectIsExtensible: cell("reflectIsExtensible"),
      ownKeys: cell("ownKeys"),
      reflectPreventExtensions: cell("reflectPreventExtensions"),
      reflectSet: cell("reflectSet"),
      isArray: cell("isArray"),
      arrayPrototype: cell("arrayPrototype"),
      arrayBufferPrototype: cell("arrayBufferPrototype"),
      mapPrototype: cell("mapPrototype"),
      proxyRevocable: cell("proxyRevocable"),
      regexpPrototype: cell("regexpPrototype"),
      setPrototype: cell("setPrototype"),
      stringPrototype: cell("stringPrototype"),
      weakmapPrototype: cell("weakmapPrototype"),
      weaksetPrototype: cell("weaksetPrototype"),
      functionPrototype: cell("functionPrototype"),
      promisePrototype: cell("promisePrototype"),
      generatorPrototype: cell("generatorPrototype"),
      iteratorPrototype: cell("iteratorPrototype"),
      typedArrayPrototype: cell("typedArrayPrototype"),
      uncurryThis: cell("uncurryThis"),
      objectHasOwnProperty: cell("objectHasOwnProperty"),
      arrayFilter: cell("arrayFilter"),
      arrayForEach: cell("arrayForEach"),
      arrayIncludes: cell("arrayIncludes"),
      arrayJoin: cell("arrayJoin"),
      arrayMap: cell("arrayMap"),
      arrayFlatMap: cell("arrayFlatMap"),
      arrayPop: cell("arrayPop"),
      arrayPush: cell("arrayPush"),
      arraySlice: cell("arraySlice"),
      arraySome: cell("arraySome"),
      arraySort: cell("arraySort"),
      iterateArray: cell("iterateArray"),
      arrayBufferSlice: cell("arrayBufferSlice"),
      arrayBufferGetByteLength: cell("arrayBufferGetByteLength"),
      typedArraySet: cell("typedArraySet"),
      mapSet: cell("mapSet"),
      mapGet: cell("mapGet"),
      mapHas: cell("mapHas"),
      mapDelete: cell("mapDelete"),
      mapEntries: cell("mapEntries"),
      iterateMap: cell("iterateMap"),
      setAdd: cell("setAdd"),
      setDelete: cell("setDelete"),
      setForEach: cell("setForEach"),
      setHas: cell("setHas"),
      iterateSet: cell("iterateSet"),
      regexpTest: cell("regexpTest"),
      regexpExec: cell("regexpExec"),
      matchAllRegExp: cell("matchAllRegExp"),
      stringEndsWith: cell("stringEndsWith"),
      stringIncludes: cell("stringIncludes"),
      stringIndexOf: cell("stringIndexOf"),
      stringMatch: cell("stringMatch"),
      generatorNext: cell("generatorNext"),
      generatorThrow: cell("generatorThrow"),
      stringReplace: cell("stringReplace"),
      stringSearch: cell("stringSearch"),
      stringSlice: cell("stringSlice"),
      stringSplit: cell("stringSplit"),
      stringStartsWith: cell("stringStartsWith"),
      iterateString: cell("iterateString"),
      weakmapDelete: cell("weakmapDelete"),
      weakmapGet: cell("weakmapGet"),
      weakmapHas: cell("weakmapHas"),
      weakmapSet: cell("weakmapSet"),
      weaksetAdd: cell("weaksetAdd"),
      weaksetHas: cell("weaksetHas"),
      functionToString: cell("functionToString"),
      functionBind: cell("functionBind"),
      promiseAll: cell("promiseAll"),
      promiseCatch: cell("promiseCatch"),
      promiseThen: cell("promiseThen"),
      finalizationRegistryRegister: cell("finalizationRegistryRegister"),
      finalizationRegistryUnregister: cell("finalizationRegistryUnregister"),
      getConstructorOf: cell("getConstructorOf"),
      isPrimitive: cell("isPrimitive"),
      isError: cell("isError"),
      identity: cell("identity"),
      FERAL_EVAL: cell("FERAL_EVAL"),
      FERAL_FUNCTION: cell("FERAL_FUNCTION"),
      noEvalEvaluate: cell("noEvalEvaluate"),
      FERAL_STACK_GETTER: cell("FERAL_STACK_GETTER"),
      FERAL_STACK_SETTER: cell("FERAL_STACK_SETTER"),
      AsyncGeneratorFunctionInstance: cell("AsyncGeneratorFunctionInstance"),
    },
    {
    },
    {
      makeEnvironmentCaptor: cell("makeEnvironmentCaptor"),
      getEnvironmentOption: cell("getEnvironmentOption"),
      getEnvironmentOptionsList: cell("getEnvironmentOptionsList"),
      environmentOptionsListHas: cell("environmentOptionsListHas"),
    },
    {
    },
    {
      isBufferImmutable: cell("isBufferImmutable"),
      sliceBufferToImmutable: cell("sliceBufferToImmutable"),
      optTransferBufferToImmutable: cell("optTransferBufferToImmutable"),
    },
    {
    },
    {
    },
    {
      an: cell("an"),
      bestEffortStringify: cell("bestEffortStringify"),
      enJoin: cell("enJoin"),
    },
    {
    },
    {
    },
    {
      makeCacheMapKit: cell("makeCacheMapKit"),
    },
    {
      makeCacheMapKit: cell("makeCacheMapKit"),
    },
    {
      makeNoteLogArgsArrayKit: cell("makeNoteLogArgsArrayKit"),
    },
    {
      q: cell("q"),
      b: cell("b"),
      X: cell("X"),
      unredactedDetails: cell("unredactedDetails"),
      makeError: cell("makeError"),
      annotateError: cell("annotateError"),
      loggedErrorHandler: cell("loggedErrorHandler"),
      makeAssert: cell("makeAssert"),
      assert: cell("assert"),
      assertEqual: cell("assertEqual"),
      sanitizeError: cell("sanitizeError"),
    },
    {
      isTypedArray: cell("isTypedArray"),
      makeHardener: cell("makeHardener"),
    },
    {
      cauterizeProperty: cell("cauterizeProperty"),
    },
    {
      NativeErrors: cell("NativeErrors"),
      constantProperties: cell("constantProperties"),
      universalPropertyNames: cell("universalPropertyNames"),
      initialGlobalPropertyNames: cell("initialGlobalPropertyNames"),
      sharedGlobalPropertyNames: cell("sharedGlobalPropertyNames"),
      uniqueGlobalPropertyNames: cell("uniqueGlobalPropertyNames"),
      FunctionInstance: cell("FunctionInstance"),
      AsyncFunctionInstance: cell("AsyncFunctionInstance"),
      isAccessorPermit: cell("isAccessorPermit"),
      permitted: cell("permitted"),
    },
    {
      makeIntrinsicsCollector: cell("makeIntrinsicsCollector"),
      getGlobalIntrinsics: cell("getGlobalIntrinsics"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      minEnablements: cell("minEnablements"),
      moderateEnablements: cell("moderateEnablements"),
      severeEnablements: cell("severeEnablements"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      makeEvalFunction: cell("makeEvalFunction"),
    },
    {
      makeFunctionConstructor: cell("makeFunctionConstructor"),
    },
    {
      setGlobalObjectSymbolUnscopables: cell("setGlobalObjectSymbolUnscopables"),
      setGlobalObjectConstantProperties: cell("setGlobalObjectConstantProperties"),
      setGlobalObjectMutableProperties: cell("setGlobalObjectMutableProperties"),
      setGlobalObjectEvaluators: cell("setGlobalObjectEvaluators"),
    },
    {
      alwaysThrowHandler: cell("alwaysThrowHandler"),
      strictScopeTerminatorHandler: cell("strictScopeTerminatorHandler"),
      strictScopeTerminator: cell("strictScopeTerminator"),
    },
    {
      createSloppyGlobalsScopeTerminator: cell("createSloppyGlobalsScopeTerminator"),
    },
    {
      makeEvalScopeKit: cell("makeEvalScopeKit"),
    },
    {
      getSourceURL: cell("getSourceURL"),
    },
    {
      rejectHtmlComments: cell("rejectHtmlComments"),
      evadeHtmlCommentTest: cell("evadeHtmlCommentTest"),
      rejectImportExpressions: cell("rejectImportExpressions"),
      evadeImportExpressionTest: cell("evadeImportExpressionTest"),
      rejectSomeDirectEvalExpressions: cell("rejectSomeDirectEvalExpressions"),
      mandatoryTransforms: cell("mandatoryTransforms"),
      applyTransforms: cell("applyTransforms"),
      transforms: cell("transforms"),
    },
    {
      isValidIdentifierName: cell("isValidIdentifierName"),
      getScopeConstants: cell("getScopeConstants"),
    },
    {
      makeEvaluate: cell("makeEvaluate"),
    },
    {
      makeSafeEvaluator: cell("makeSafeEvaluator"),
    },
    {
      tameFunctionToString: cell("tameFunctionToString"),
    },
    {
      tameDomains: cell("tameDomains"),
    },
    {
      tameModuleSource: cell("tameModuleSource"),
    },
    {
      consoleLevelMethods: cell("consoleLevelMethods"),
      consoleOtherMethods: cell("consoleOtherMethods"),
      makeLoggingConsoleKit: cell("makeLoggingConsoleKit"),
      pumpLogToConsole: cell("pumpLogToConsole"),
      makeCausalConsole: cell("makeCausalConsole"),
      defineCausalConsoleFromLogger: cell("defineCausalConsoleFromLogger"),
      filterConsole: cell("filterConsole"),
    },
    {
      makeRejectionHandlers: cell("makeRejectionHandlers"),
    },
    {
      tameConsole: cell("tameConsole"),
    },
    {
      filterFileName: cell("filterFileName"),
      shortenCallSiteString: cell("shortenCallSiteString"),
      tameV8ErrorConstructor: cell("tameV8ErrorConstructor"),
    },
    {
      default: cell("default"),
    },
    {
      makeAlias: cell("makeAlias"),
      load: cell("load"),
      loadNow: cell("loadNow"),
    },
    {
      deferExports: cell("deferExports"),
      getDeferredExports: cell("getDeferredExports"),
    },
    {
      provideCompartmentEvaluator: cell("provideCompartmentEvaluator"),
      compartmentEvaluate: cell("compartmentEvaluate"),
    },
    {
      makeVirtualModuleInstance: cell("makeVirtualModuleInstance"),
      makeModuleInstance: cell("makeModuleInstance"),
    },
    {
      link: cell("link"),
      instantiate: cell("instantiate"),
    },
    {
      InertCompartment: cell("InertCompartment"),
      CompartmentPrototype: cell("CompartmentPrototype"),
      compartmentOptions: cell("compartmentOptions"),
      makeCompartmentConstructor: cell("makeCompartmentConstructor"),
    },
    {
      getAnonymousIntrinsics: cell("getAnonymousIntrinsics"),
    },
    {
      tameHarden: cell("tameHarden"),
    },
    {
      tameSymbolConstructor: cell("tameSymbolConstructor"),
    },
    {
      tameFauxDataProperty: cell("tameFauxDataProperty"),
      tameFauxDataProperties: cell("tameFauxDataProperties"),
    },
    {
      tameRegeneratorRuntime: cell("tameRegeneratorRuntime"),
    },
    {
      shimArrayBufferTransfer: cell("shimArrayBufferTransfer"),
    },
    {
      chooseReporter: cell("chooseReporter"),
      reportInGroup: cell("reportInGroup"),
    },
    {
      repairIntrinsics: cell("repairIntrinsics"),
    },
    {
    },
    {
    },
    {
    },
    {
    },
    {
    },
  ];

  defineProperties(cells[3], getOwnPropertyDescriptors(cells[2]));

  defineProperties(cells[11], {"makeCacheMapKit": { value: cells[10]["makeCacheMapKit"] } });

  const namespaces = cells.map(cells => freeze(create(null, {
    ...cells,
    // Make this appear like an ESM module namespace object.
    [Symbol.toStringTag]: {
      value: 'Module',
      writable: false,
      enumerable: false,
      configurable: false,
    },
  })));

  for (let index = 0; index < namespaces.length; index += 1) {
    cells[index]['*'] = cell('*', namespaces[index]);
  }

function observeImports(map, importName, importIndex) {
  for (const [name, observers] of map.get(importName)) {
    const cell = cells[importIndex][name];
    if (cell === undefined) {
      throw new ReferenceError(`Cannot import name ${name} (has ${Object.getOwnPropertyNames(cells[importIndex]).join(', ')})`);
    }
    for (const observer of observers) {
      cell.observe(observer);
    }
  }
}

  functors[0]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      universalThis: cells[0].globalThis.set,
      Array: cells[0].Array.set,
      ArrayBuffer: cells[0].ArrayBuffer.set,
      Date: cells[0].Date.set,
      FinalizationRegistry: cells[0].FinalizationRegistry.set,
      Float32Array: cells[0].Float32Array.set,
      JSON: cells[0].JSON.set,
      Map: cells[0].Map.set,
      Math: cells[0].Math.set,
      Number: cells[0].Number.set,
      Object: cells[0].Object.set,
      Promise: cells[0].Promise.set,
      Proxy: cells[0].Proxy.set,
      Reflect: cells[0].Reflect.set,
      FERAL_REG_EXP: cells[0].FERAL_REG_EXP.set,
      Set: cells[0].Set.set,
      String: cells[0].String.set,
      Symbol: cells[0].Symbol.set,
      Uint8Array: cells[0].Uint8Array.set,
      WeakMap: cells[0].WeakMap.set,
      WeakSet: cells[0].WeakSet.set,
      FERAL_ERROR: cells[0].FERAL_ERROR.set,
      RangeError: cells[0].RangeError.set,
      ReferenceError: cells[0].ReferenceError.set,
      SyntaxError: cells[0].SyntaxError.set,
      TypeError: cells[0].TypeError.set,
      AggregateError: cells[0].AggregateError.set,
      assign: cells[0].assign.set,
      create: cells[0].create.set,
      defineProperties: cells[0].defineProperties.set,
      entries: cells[0].entries.set,
      freeze: cells[0].freeze.set,
      getOwnPropertyDescriptor: cells[0].getOwnPropertyDescriptor.set,
      getOwnPropertyDescriptors: cells[0].getOwnPropertyDescriptors.set,
      getOwnPropertyNames: cells[0].getOwnPropertyNames.set,
      getPrototypeOf: cells[0].getPrototypeOf.set,
      is: cells[0].is.set,
      isFrozen: cells[0].isFrozen.set,
      isSealed: cells[0].isSealed.set,
      isExtensible: cells[0].isExtensible.set,
      keys: cells[0].keys.set,
      objectPrototype: cells[0].objectPrototype.set,
      seal: cells[0].seal.set,
      preventExtensions: cells[0].preventExtensions.set,
      setPrototypeOf: cells[0].setPrototypeOf.set,
      values: cells[0].values.set,
      fromEntries: cells[0].fromEntries.set,
      hasOwn: cells[0].hasOwn.set,
      speciesSymbol: cells[0].speciesSymbol.set,
      toStringTagSymbol: cells[0].toStringTagSymbol.set,
      iteratorSymbol: cells[0].iteratorSymbol.set,
      matchAllSymbol: cells[0].matchAllSymbol.set,
      unscopablesSymbol: cells[0].unscopablesSymbol.set,
      symbolKeyFor: cells[0].symbolKeyFor.set,
      symbolFor: cells[0].symbolFor.set,
      isInteger: cells[0].isInteger.set,
      stringifyJson: cells[0].stringifyJson.set,
      defineProperty: cells[0].defineProperty.set,
      apply: cells[0].apply.set,
      construct: cells[0].construct.set,
      reflectGet: cells[0].reflectGet.set,
      reflectGetOwnPropertyDescriptor: cells[0].reflectGetOwnPropertyDescriptor.set,
      reflectHas: cells[0].reflectHas.set,
      reflectIsExtensible: cells[0].reflectIsExtensible.set,
      ownKeys: cells[0].ownKeys.set,
      reflectPreventExtensions: cells[0].reflectPreventExtensions.set,
      reflectSet: cells[0].reflectSet.set,
      isArray: cells[0].isArray.set,
      arrayPrototype: cells[0].arrayPrototype.set,
      arrayBufferPrototype: cells[0].arrayBufferPrototype.set,
      mapPrototype: cells[0].mapPrototype.set,
      proxyRevocable: cells[0].proxyRevocable.set,
      regexpPrototype: cells[0].regexpPrototype.set,
      setPrototype: cells[0].setPrototype.set,
      stringPrototype: cells[0].stringPrototype.set,
      weakmapPrototype: cells[0].weakmapPrototype.set,
      weaksetPrototype: cells[0].weaksetPrototype.set,
      functionPrototype: cells[0].functionPrototype.set,
      promisePrototype: cells[0].promisePrototype.set,
      generatorPrototype: cells[0].generatorPrototype.set,
      iteratorPrototype: cells[0].iteratorPrototype.set,
      typedArrayPrototype: cells[0].typedArrayPrototype.set,
      uncurryThis: cells[0].uncurryThis.set,
      objectHasOwnProperty: cells[0].objectHasOwnProperty.set,
      arrayFilter: cells[0].arrayFilter.set,
      arrayForEach: cells[0].arrayForEach.set,
      arrayIncludes: cells[0].arrayIncludes.set,
      arrayJoin: cells[0].arrayJoin.set,
      arrayMap: cells[0].arrayMap.set,
      arrayFlatMap: cells[0].arrayFlatMap.set,
      arrayPop: cells[0].arrayPop.set,
      arrayPush: cells[0].arrayPush.set,
      arraySlice: cells[0].arraySlice.set,
      arraySome: cells[0].arraySome.set,
      arraySort: cells[0].arraySort.set,
      iterateArray: cells[0].iterateArray.set,
      arrayBufferSlice: cells[0].arrayBufferSlice.set,
      arrayBufferGetByteLength: cells[0].arrayBufferGetByteLength.set,
      typedArraySet: cells[0].typedArraySet.set,
      mapSet: cells[0].mapSet.set,
      mapGet: cells[0].mapGet.set,
      mapHas: cells[0].mapHas.set,
      mapDelete: cells[0].mapDelete.set,
      mapEntries: cells[0].mapEntries.set,
      iterateMap: cells[0].iterateMap.set,
      setAdd: cells[0].setAdd.set,
      setDelete: cells[0].setDelete.set,
      setForEach: cells[0].setForEach.set,
      setHas: cells[0].setHas.set,
      iterateSet: cells[0].iterateSet.set,
      regexpTest: cells[0].regexpTest.set,
      regexpExec: cells[0].regexpExec.set,
      matchAllRegExp: cells[0].matchAllRegExp.set,
      stringEndsWith: cells[0].stringEndsWith.set,
      stringIncludes: cells[0].stringIncludes.set,
      stringIndexOf: cells[0].stringIndexOf.set,
      stringMatch: cells[0].stringMatch.set,
      generatorNext: cells[0].generatorNext.set,
      generatorThrow: cells[0].generatorThrow.set,
      stringReplace: cells[0].stringReplace.set,
      stringSearch: cells[0].stringSearch.set,
      stringSlice: cells[0].stringSlice.set,
      stringSplit: cells[0].stringSplit.set,
      stringStartsWith: cells[0].stringStartsWith.set,
      iterateString: cells[0].iterateString.set,
      weakmapDelete: cells[0].weakmapDelete.set,
      weakmapGet: cells[0].weakmapGet.set,
      weakmapHas: cells[0].weakmapHas.set,
      weakmapSet: cells[0].weakmapSet.set,
      weaksetAdd: cells[0].weaksetAdd.set,
      weaksetHas: cells[0].weaksetHas.set,
      functionToString: cells[0].functionToString.set,
      functionBind: cells[0].functionBind.set,
      promiseAll: cells[0].promiseAll.set,
      promiseCatch: cells[0].promiseCatch.set,
      promiseThen: cells[0].promiseThen.set,
      finalizationRegistryRegister: cells[0].finalizationRegistryRegister.set,
      finalizationRegistryUnregister: cells[0].finalizationRegistryUnregister.set,
      getConstructorOf: cells[0].getConstructorOf.set,
      isPrimitive: cells[0].isPrimitive.set,
      isError: cells[0].isError.set,
      identity: cells[0].identity.set,
      FERAL_EVAL: cells[0].FERAL_EVAL.set,
      FERAL_FUNCTION: cells[0].FERAL_FUNCTION.set,
      noEvalEvaluate: cells[0].noEvalEvaluate.set,
      FERAL_STACK_GETTER: cells[0].FERAL_STACK_GETTER.set,
      FERAL_STACK_SETTER: cells[0].FERAL_STACK_SETTER.set,
      AsyncGeneratorFunctionInstance: cells[0].AsyncGeneratorFunctionInstance.set,
    },
    importMeta: {},
  });
  functors[1]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[2]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      makeEnvironmentCaptor: cells[2].makeEnvironmentCaptor.set,
      getEnvironmentOption: cells[2].getEnvironmentOption.set,
      getEnvironmentOptionsList: cells[2].getEnvironmentOptionsList.set,
      environmentOptionsListHas: cells[2].environmentOptionsListHas.set,
    },
    importMeta: {},
  });
  functors[3]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./src/env-options.js", 2);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[4]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      isBufferImmutable: cells[4].isBufferImmutable.set,
      sliceBufferToImmutable: cells[4].sliceBufferToImmutable.set,
      optTransferBufferToImmutable: cells[4].optTransferBufferToImmutable.set,
    },
    importMeta: {},
  });
  functors[5]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./immutable-arraybuffer-pony.js", 4);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[6]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./src/immutable-arraybuffer-shim.js", 5);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[7]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      an: cells[7].an.set,
      bestEffortStringify: cells[7].bestEffortStringify.set,
      enJoin: cells[7].enJoin.set,
    },
    importMeta: {},
  });
  functors[8]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[9]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[10]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      makeCacheMapKit: cells[10].makeCacheMapKit.set,
    },
    importMeta: {},
  });
  functors[11]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./src/cachemap.js", 10);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[12]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "@endo/cache-map", 11);
    },
    liveVar: {
    },
    onceVar: {
      makeNoteLogArgsArrayKit: cells[12].makeNoteLogArgsArrayKit.set,
    },
    importMeta: {},
  });
  functors[13]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
      observeImports(map, "./stringify-utils.js", 7);
      observeImports(map, "./types.js", 8);
      observeImports(map, "./internal-types.js", 9);
      observeImports(map, "./note-log-args.js", 12);
    },
    liveVar: {
    },
    onceVar: {
      quote: cells[13].q.set,
      bare: cells[13].b.set,
      redactedDetails: cells[13].X.set,
      unredactedDetails: cells[13].unredactedDetails.set,
      makeError: cells[13].makeError.set,
      note: cells[13].annotateError.set,
      loggedErrorHandler: cells[13].loggedErrorHandler.set,
      makeAssert: cells[13].makeAssert.set,
      assert: cells[13].assert.set,
      assertEqual: cells[13].assertEqual.set,
      sanitizeError: cells[13].sanitizeError.set,
    },
    importMeta: {},
  });
  functors[14]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      isTypedArray: cells[14].isTypedArray.set,
      makeHardener: cells[14].makeHardener.set,
    },
    importMeta: {},
  });
  functors[15]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      cauterizeProperty: cells[15].cauterizeProperty.set,
    },
    importMeta: {},
  });
  functors[16]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      NativeErrors: cells[16].NativeErrors.set,
      constantProperties: cells[16].constantProperties.set,
      universalPropertyNames: cells[16].universalPropertyNames.set,
      initialGlobalPropertyNames: cells[16].initialGlobalPropertyNames.set,
      sharedGlobalPropertyNames: cells[16].sharedGlobalPropertyNames.set,
      uniqueGlobalPropertyNames: cells[16].uniqueGlobalPropertyNames.set,
      FunctionInstance: cells[16].FunctionInstance.set,
      AsyncFunctionInstance: cells[16].AsyncFunctionInstance.set,
      isAccessorPermit: cells[16].isAccessorPermit.set,
      permitted: cells[16].permitted.set,
    },
    importMeta: {},
  });
  functors[17]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./cauterize-property.js", 15);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./permits.js", 16);
    },
    liveVar: {
    },
    onceVar: {
      makeIntrinsicsCollector: cells[17].makeIntrinsicsCollector.set,
      getGlobalIntrinsics: cells[17].getGlobalIntrinsics.set,
    },
    importMeta: {},
  });
  functors[18]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./permits.js", 16);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./cauterize-property.js", 15);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[18].default.set,
    },
    importMeta: {},
  });
  functors[19]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[19].default.set,
    },
    importMeta: {},
  });
  functors[20]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[20].default.set,
    },
    importMeta: {},
  });
  functors[21]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[21].default.set,
    },
    importMeta: {},
  });
  functors[22]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[22].default.set,
    },
    importMeta: {},
  });
  functors[23]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      minEnablements: cells[23].minEnablements.set,
      moderateEnablements: cells[23].moderateEnablements.set,
      severeEnablements: cells[23].severeEnablements.set,
    },
    importMeta: {},
  });
  functors[24]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./enablements.js", 23);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[24].default.set,
    },
    importMeta: {},
  });
  functors[25]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[25].default.set,
    },
    importMeta: {},
  });
  functors[26]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      makeEvalFunction: cells[26].makeEvalFunction.set,
    },
    importMeta: {},
  });
  functors[27]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      makeFunctionConstructor: cells[27].makeFunctionConstructor.set,
    },
    importMeta: {},
  });
  functors[28]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./make-eval-function.js", 26);
      observeImports(map, "./make-function-constructor.js", 27);
      observeImports(map, "./permits.js", 16);
    },
    liveVar: {
    },
    onceVar: {
      setGlobalObjectSymbolUnscopables: cells[28].setGlobalObjectSymbolUnscopables.set,
      setGlobalObjectConstantProperties: cells[28].setGlobalObjectConstantProperties.set,
      setGlobalObjectMutableProperties: cells[28].setGlobalObjectMutableProperties.set,
      setGlobalObjectEvaluators: cells[28].setGlobalObjectEvaluators.set,
    },
    importMeta: {},
  });
  functors[29]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      alwaysThrowHandler: cells[29].alwaysThrowHandler.set,
      strictScopeTerminatorHandler: cells[29].strictScopeTerminatorHandler.set,
      strictScopeTerminator: cells[29].strictScopeTerminator.set,
    },
    importMeta: {},
  });
  functors[30]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./strict-scope-terminator.js", 29);
    },
    liveVar: {
    },
    onceVar: {
      createSloppyGlobalsScopeTerminator: cells[30].createSloppyGlobalsScopeTerminator.set,
    },
    importMeta: {},
  });
  functors[31]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      makeEvalScopeKit: cells[31].makeEvalScopeKit.set,
    },
    importMeta: {},
  });
  functors[32]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      getSourceURL: cells[32].getSourceURL.set,
    },
    importMeta: {},
  });
  functors[33]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./get-source-url.js", 32);
    },
    liveVar: {
    },
    onceVar: {
      rejectHtmlComments: cells[33].rejectHtmlComments.set,
      evadeHtmlCommentTest: cells[33].evadeHtmlCommentTest.set,
      rejectImportExpressions: cells[33].rejectImportExpressions.set,
      evadeImportExpressionTest: cells[33].evadeImportExpressionTest.set,
      rejectSomeDirectEvalExpressions: cells[33].rejectSomeDirectEvalExpressions.set,
      mandatoryTransforms: cells[33].mandatoryTransforms.set,
      applyTransforms: cells[33].applyTransforms.set,
      transforms: cells[33].transforms.set,
    },
    importMeta: {},
  });
  functors[34]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      isValidIdentifierName: cells[34].isValidIdentifierName.set,
      getScopeConstants: cells[34].getScopeConstants.set,
    },
    importMeta: {},
  });
  functors[35]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./scope-constants.js", 34);
    },
    liveVar: {
    },
    onceVar: {
      makeEvaluate: cells[35].makeEvaluate.set,
    },
    importMeta: {},
  });
  functors[36]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./strict-scope-terminator.js", 29);
      observeImports(map, "./sloppy-globals-scope-terminator.js", 30);
      observeImports(map, "./eval-scope.js", 31);
      observeImports(map, "./transforms.js", 33);
      observeImports(map, "./make-evaluate.js", 35);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      makeSafeEvaluator: cells[36].makeSafeEvaluator.set,
    },
    importMeta: {},
  });
  functors[37]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameFunctionToString: cells[37].tameFunctionToString.set,
    },
    importMeta: {},
  });
  functors[38]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameDomains: cells[38].tameDomains.set,
    },
    importMeta: {},
  });
  functors[39]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameModuleSource: cells[39].tameModuleSource.set,
    },
    importMeta: {},
  });
  functors[40]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      consoleLevelMethods: cells[40].consoleLevelMethods.set,
      consoleOtherMethods: cells[40].consoleOtherMethods.set,
      makeLoggingConsoleKit: cells[40].makeLoggingConsoleKit.set,
      pumpLogToConsole: cells[40].pumpLogToConsole.set,
      makeCausalConsole: cells[40].makeCausalConsole.set,
      defineCausalConsoleFromLogger: cells[40].defineCausalConsoleFromLogger.set,
      filterConsole: cells[40].filterConsole.set,
    },
    importMeta: {},
  });
  functors[41]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      makeRejectionHandlers: cells[41].makeRejectionHandlers.set,
    },
    importMeta: {},
  });
  functors[42]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
      observeImports(map, "./assert.js", 13);
      observeImports(map, "./console.js", 40);
      observeImports(map, "./unhandled-rejection.js", 41);
    },
    liveVar: {
    },
    onceVar: {
      tameConsole: cells[42].tameConsole.set,
    },
    importMeta: {},
  });
  functors[43]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      filterFileName: cells[43].filterFileName.set,
      shortenCallSiteString: cells[43].shortenCallSiteString.set,
      tameV8ErrorConstructor: cells[43].tameV8ErrorConstructor.set,
    },
    importMeta: {},
  });
  functors[44]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
      observeImports(map, "../permits.js", 16);
      observeImports(map, "./tame-v8-error-constructor.js", 43);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[44].default.set,
    },
    importMeta: {},
  });
  functors[45]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "@endo/env-options", 3);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      makeAlias: cells[45].makeAlias.set,
      load: cells[45].load.set,
      loadNow: cells[45].loadNow.set,
    },
    importMeta: {},
  });
  functors[46]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./module-load.js", 45);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      deferExports: cells[46].deferExports.set,
      getDeferredExports: cells[46].getDeferredExports.set,
    },
    importMeta: {},
  });
  functors[47]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./transforms.js", 33);
      observeImports(map, "./make-safe-evaluator.js", 36);
    },
    liveVar: {
    },
    onceVar: {
      provideCompartmentEvaluator: cells[47].provideCompartmentEvaluator.set,
      compartmentEvaluate: cells[47].compartmentEvaluate.set,
    },
    importMeta: {},
  });
  functors[48]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./error/assert.js", 13);
      observeImports(map, "./module-proxy.js", 46);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./compartment-evaluate.js", 47);
    },
    liveVar: {
    },
    onceVar: {
      makeVirtualModuleInstance: cells[48].makeVirtualModuleInstance.set,
      makeModuleInstance: cells[48].makeModuleInstance.set,
    },
    importMeta: {},
  });
  functors[49]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./error/assert.js", 13);
      observeImports(map, "./module-instance.js", 48);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      link: cells[49].link.set,
      instantiate: cells[49].instantiate.set,
    },
    importMeta: {},
  });
  functors[50]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./global-object.js", 28);
      observeImports(map, "./error/assert.js", 13);
      observeImports(map, "./permits.js", 16);
      observeImports(map, "./module-load.js", 45);
      observeImports(map, "./module-link.js", 49);
      observeImports(map, "./module-proxy.js", 46);
      observeImports(map, "./compartment-evaluate.js", 47);
      observeImports(map, "./make-safe-evaluator.js", 36);
    },
    liveVar: {
    },
    onceVar: {
      InertCompartment: cells[50].InertCompartment.set,
      CompartmentPrototype: cells[50].CompartmentPrototype.set,
      compartmentOptions: cells[50].compartmentOptions.set,
      makeCompartmentConstructor: cells[50].makeCompartmentConstructor.set,
    },
    importMeta: {},
  });
  functors[51]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./compartment.js", 50);
    },
    liveVar: {
    },
    onceVar: {
      getAnonymousIntrinsics: cells[51].getAnonymousIntrinsics.set,
    },
    importMeta: {},
  });
  functors[52]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameHarden: cells[52].tameHarden.set,
    },
    importMeta: {},
  });
  functors[53]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameSymbolConstructor: cells[53].tameSymbolConstructor.set,
    },
    importMeta: {},
  });
  functors[54]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameFauxDataProperty: cells[54].tameFauxDataProperty.set,
      tameFauxDataProperties: cells[54].tameFauxDataProperties.set,
    },
    importMeta: {},
  });
  functors[55]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameRegeneratorRuntime: cells[55].tameRegeneratorRuntime.set,
    },
    importMeta: {},
  });
  functors[56]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      shimArrayBufferTransfer: cells[56].shimArrayBufferTransfer.set,
    },
    importMeta: {},
  });
  functors[57]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      chooseReporter: cells[57].chooseReporter.set,
      reportInGroup: cells[57].reportInGroup.set,
    },
    importMeta: {},
  });
  functors[58]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "@endo/env-options", 3);
      observeImports(map, "@endo/immutable-arraybuffer/shim.js", 6);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./make-hardener.js", 14);
      observeImports(map, "./intrinsics.js", 17);
      observeImports(map, "./permits-intrinsics.js", 18);
      observeImports(map, "./tame-function-constructors.js", 19);
      observeImports(map, "./tame-date-constructor.js", 20);
      observeImports(map, "./tame-math-object.js", 21);
      observeImports(map, "./tame-regexp-constructor.js", 22);
      observeImports(map, "./enable-property-overrides.js", 24);
      observeImports(map, "./tame-locale-methods.js", 25);
      observeImports(map, "./global-object.js", 28);
      observeImports(map, "./make-safe-evaluator.js", 36);
      observeImports(map, "./permits.js", 16);
      observeImports(map, "./tame-function-tostring.js", 37);
      observeImports(map, "./tame-domains.js", 38);
      observeImports(map, "./tame-module-source.js", 39);
      observeImports(map, "./error/tame-console.js", 42);
      observeImports(map, "./error/tame-error-constructor.js", 44);
      observeImports(map, "./error/assert.js", 13);
      observeImports(map, "./get-anonymous-intrinsics.js", 51);
      observeImports(map, "./compartment.js", 50);
      observeImports(map, "./tame-harden.js", 52);
      observeImports(map, "./tame-symbol-constructor.js", 53);
      observeImports(map, "./tame-faux-data-properties.js", 54);
      observeImports(map, "./tame-regenerator-runtime.js", 55);
      observeImports(map, "./shim-arraybuffer-transfer.js", 56);
      observeImports(map, "./reporting.js", 57);
    },
    liveVar: {
    },
    onceVar: {
      repairIntrinsics: cells[58].repairIntrinsics.set,
    },
    importMeta: {},
  });
  functors[59]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./assert-sloppy-mode.js", 1);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./lockdown.js", 58);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[60]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./compartment.js", 50);
      observeImports(map, "./tame-function-tostring.js", 37);
      observeImports(map, "./intrinsics.js", 17);
      observeImports(map, "./reporting.js", 57);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[61]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[62]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/console.js", 40);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[63]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./src/lockdown-shim.js", 59);
      observeImports(map, "./src/compartment-shim.js", 60);
      observeImports(map, "./src/assert-shim.js", 61);
      observeImports(map, "./src/console-shim.js", 62);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });

  return cells[cells.length - 1]['*'].get();
})([
// === 0. ses ./src/commons.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/**
 * Captures native intrinsics during initialization, so vetted shims
 * (running between initialization of SES and calling lockdown) are free to
 * modify the environment without compromising the integrity of SES. For
 * example, a vetted shim can modify Object.assign because we capture and
 * export Object and assign here, then never again consult Object to get its
 * assign property.
 *
 * This pattern of use is enforced by eslint rules no-restricted-globals and
 * no-polymorphic-call.
 * We maintain the list of restricted globals in ../package.json.
 *
 * @module
 */

/* global globalThis */
/* eslint-disable no-restricted-globals */

// We cannot use globalThis as the local name since it would capture the
// lexical name.
const universalThis = globalThis;$h͏_once.universalThis(universalThis);


       const {
  Array,
  ArrayBuffer,
  Date,
  FinalizationRegistry,
  Float32Array,
  JSON,
  Map,
  Math,
  Number,
  Object,
  Promise,
  Proxy,
  Reflect,
  RegExp: FERAL_REG_EXP,
  Set,
  String,
  Symbol,
  Uint8Array,
  WeakMap,
  WeakSet,
} = globalThis;$h͏_once.Array(Array);$h͏_once.ArrayBuffer(ArrayBuffer);$h͏_once.Date(Date);$h͏_once.FinalizationRegistry(FinalizationRegistry);$h͏_once.Float32Array(Float32Array);$h͏_once.JSON(JSON);$h͏_once.Map(Map);$h͏_once.Math(Math);$h͏_once.Number(Number);$h͏_once.Object(Object);$h͏_once.Promise(Promise);$h͏_once.Proxy(Proxy);$h͏_once.Reflect(Reflect);$h͏_once.FERAL_REG_EXP(FERAL_REG_EXP);$h͏_once.Set(Set);$h͏_once.String(String);$h͏_once.Symbol(Symbol);$h͏_once.Uint8Array(Uint8Array);$h͏_once.WeakMap(WeakMap);$h͏_once.WeakSet(WeakSet);

       const {
  // The feral Error constructor is safe for internal use, but must not be
  // revealed to post-lockdown code in any compartment including the start
  // compartment since in V8 at least it bears stack inspection capabilities.
  Error: FERAL_ERROR,
  RangeError,
  ReferenceError,
  SyntaxError,
  TypeError,
  AggregateError,
} = globalThis;$h͏_once.FERAL_ERROR(FERAL_ERROR);$h͏_once.RangeError(RangeError);$h͏_once.ReferenceError(ReferenceError);$h͏_once.SyntaxError(SyntaxError);$h͏_once.TypeError(TypeError);$h͏_once.AggregateError(AggregateError);

       const {
  assign,
  create,
  defineProperties,
  entries,
  freeze,
  getOwnPropertyDescriptor,
  getOwnPropertyDescriptors,
  getOwnPropertyNames,
  getPrototypeOf,
  is,
  isFrozen,
  isSealed,
  isExtensible,
  keys,
  prototype: objectPrototype,
  seal,
  preventExtensions,
  setPrototypeOf,
  values,
  fromEntries,
  hasOwn,
} = Object;$h͏_once.assign(assign);$h͏_once.create(create);$h͏_once.defineProperties(defineProperties);$h͏_once.entries(entries);$h͏_once.freeze(freeze);$h͏_once.getOwnPropertyDescriptor(getOwnPropertyDescriptor);$h͏_once.getOwnPropertyDescriptors(getOwnPropertyDescriptors);$h͏_once.getOwnPropertyNames(getOwnPropertyNames);$h͏_once.getPrototypeOf(getPrototypeOf);$h͏_once.is(is);$h͏_once.isFrozen(isFrozen);$h͏_once.isSealed(isSealed);$h͏_once.isExtensible(isExtensible);$h͏_once.keys(keys);$h͏_once.objectPrototype(objectPrototype);$h͏_once.seal(seal);$h͏_once.preventExtensions(preventExtensions);$h͏_once.setPrototypeOf(setPrototypeOf);$h͏_once.values(values);$h͏_once.fromEntries(fromEntries);$h͏_once.hasOwn(hasOwn);

       const {
  species: speciesSymbol,
  toStringTag: toStringTagSymbol,
  iterator: iteratorSymbol,
  matchAll: matchAllSymbol,
  unscopables: unscopablesSymbol,
  keyFor: symbolKeyFor,
  for: symbolFor,
} = Symbol;$h͏_once.speciesSymbol(speciesSymbol);$h͏_once.toStringTagSymbol(toStringTagSymbol);$h͏_once.iteratorSymbol(iteratorSymbol);$h͏_once.matchAllSymbol(matchAllSymbol);$h͏_once.unscopablesSymbol(unscopablesSymbol);$h͏_once.symbolKeyFor(symbolKeyFor);$h͏_once.symbolFor(symbolFor);

       const { isInteger } = Number;$h͏_once.isInteger(isInteger);

       const { stringify: stringifyJson } = JSON;

// Needed only for the Safari bug workaround below
$h͏_once.stringifyJson(stringifyJson);const{defineProperty:originalDefineProperty}=Object;

       const defineProperty = (object, prop, descriptor) => {
  // We used to do the following, until we had to reopen Safari bug
  // https://bugs.webkit.org/show_bug.cgi?id=222538#c17
  // Once this is fixed, we may restore it.
  // // Object.defineProperty is allowed to fail silently so we use
  // // Object.defineProperties instead.
  // return defineProperties(object, { [prop]: descriptor });

  // Instead, to workaround the Safari bug
  const result = originalDefineProperty(object, prop, descriptor);
  if (result !== object) {
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_DEFINE_PROPERTY_FAILED_SILENTLY.md
    throw TypeError(
      `Please report that the original defineProperty silently failed to set ${stringifyJson(
        String(prop),
      )}. (SES_DEFINE_PROPERTY_FAILED_SILENTLY)`,
    );
  }
  return result;
};$h͏_once.defineProperty(defineProperty);

       const {
  apply,
  construct,
  get: reflectGet,
  getOwnPropertyDescriptor: reflectGetOwnPropertyDescriptor,
  has: reflectHas,
  isExtensible: reflectIsExtensible,
  ownKeys,
  preventExtensions: reflectPreventExtensions,
  set: reflectSet,
} = Reflect;$h͏_once.apply(apply);$h͏_once.construct(construct);$h͏_once.reflectGet(reflectGet);$h͏_once.reflectGetOwnPropertyDescriptor(reflectGetOwnPropertyDescriptor);$h͏_once.reflectHas(reflectHas);$h͏_once.reflectIsExtensible(reflectIsExtensible);$h͏_once.ownKeys(ownKeys);$h͏_once.reflectPreventExtensions(reflectPreventExtensions);$h͏_once.reflectSet(reflectSet);

       const { isArray, prototype: arrayPrototype } = Array;$h͏_once.isArray(isArray);$h͏_once.arrayPrototype(arrayPrototype);
       const { prototype: arrayBufferPrototype } = ArrayBuffer;$h͏_once.arrayBufferPrototype(arrayBufferPrototype);
       const { prototype: mapPrototype } = Map;$h͏_once.mapPrototype(mapPrototype);
       const { revocable: proxyRevocable } = Proxy;$h͏_once.proxyRevocable(proxyRevocable);
       const { prototype: regexpPrototype } = RegExp;$h͏_once.regexpPrototype(regexpPrototype);
       const { prototype: setPrototype } = Set;$h͏_once.setPrototype(setPrototype);
       const { prototype: stringPrototype } = String;$h͏_once.stringPrototype(stringPrototype);
       const { prototype: weakmapPrototype } = WeakMap;$h͏_once.weakmapPrototype(weakmapPrototype);
       const { prototype: weaksetPrototype } = WeakSet;$h͏_once.weaksetPrototype(weaksetPrototype);
       const { prototype: functionPrototype } = Function;$h͏_once.functionPrototype(functionPrototype);
       const { prototype: promisePrototype } = Promise;$h͏_once.promisePrototype(promisePrototype);
       const { prototype: generatorPrototype } = getPrototypeOf(
  // eslint-disable-next-line no-empty-function, func-names
  function* () {},
);$h͏_once.generatorPrototype(generatorPrototype);
       const iteratorPrototype = getPrototypeOf(
  // eslint-disable-next-line @endo/no-polymorphic-call
  getPrototypeOf(arrayPrototype.values()),
);$h͏_once.iteratorPrototype(iteratorPrototype);

       const typedArrayPrototype = getPrototypeOf(Uint8Array.prototype);$h͏_once.typedArrayPrototype(typedArrayPrototype);

const { bind } = functionPrototype;

/**
 * uncurryThis()
 * Equivalent of: fn => (thisArg, ...args) => apply(fn, thisArg, args)
 *
 * See those reference for a complete explanation:
 * http://wiki.ecmascript.org/doku.php?id=conventions:safe_meta_programming
 * which only lives at
 * http://web.archive.org/web/20160805225710/http://wiki.ecmascript.org/doku.php?id=conventions:safe_meta_programming
 *
 * @type {<F extends (this: any, ...args: any[]) => any>(fn: F) => ((thisArg: ThisParameterType<F>, ...args: Parameters<F>) => ReturnType<F>)}
 */
       const uncurryThis = bind.bind(bind.call); // eslint-disable-line @endo/no-polymorphic-call

/**
 * @deprecated Use `hasOwn` instead
 */$h͏_once.uncurryThis(uncurryThis);
       const objectHasOwnProperty = hasOwn;
//
$h͏_once.objectHasOwnProperty(objectHasOwnProperty);const arrayFilter=uncurryThis(arrayPrototype.filter);$h͏_once.arrayFilter(arrayFilter);
       const arrayForEach = uncurryThis(arrayPrototype.forEach);$h͏_once.arrayForEach(arrayForEach);
       const arrayIncludes = uncurryThis(arrayPrototype.includes);$h͏_once.arrayIncludes(arrayIncludes);
       const arrayJoin = uncurryThis(arrayPrototype.join);
/** @type {<T, U>(thisArg: readonly T[], callbackfn: (value: T, index: number, array: T[]) => U, cbThisArg?: any) => U[]} */$h͏_once.arrayJoin(arrayJoin);
       const arrayMap = /** @type {any} */ (uncurryThis(arrayPrototype.map));$h͏_once.arrayMap(arrayMap);
       const arrayFlatMap = /** @type {any} */ (
  uncurryThis(arrayPrototype.flatMap)
);$h͏_once.arrayFlatMap(arrayFlatMap);
       const arrayPop = uncurryThis(arrayPrototype.pop);
/** @type {<T>(thisArg: T[], ...items: T[]) => number} */$h͏_once.arrayPop(arrayPop);
       const arrayPush = uncurryThis(arrayPrototype.push);$h͏_once.arrayPush(arrayPush);
       const arraySlice = uncurryThis(arrayPrototype.slice);$h͏_once.arraySlice(arraySlice);
       const arraySome = uncurryThis(arrayPrototype.some);$h͏_once.arraySome(arraySome);
       const arraySort = uncurryThis(arrayPrototype.sort);$h͏_once.arraySort(arraySort);
       const iterateArray = uncurryThis(arrayPrototype[iteratorSymbol]);
//
$h͏_once.iterateArray(iterateArray);const arrayBufferSlice=uncurryThis(arrayBufferPrototype.slice);
/** @type {(b: ArrayBuffer) => number} */$h͏_once.arrayBufferSlice(arrayBufferSlice);
       const arrayBufferGetByteLength = uncurryThis(
  // @ts-expect-error we know it is there on all conforming platforms
  getOwnPropertyDescriptor(arrayBufferPrototype, 'byteLength').get,
);
//
$h͏_once.arrayBufferGetByteLength(arrayBufferGetByteLength);const typedArraySet=uncurryThis(typedArrayPrototype.set);
//
$h͏_once.typedArraySet(typedArraySet);const mapSet=uncurryThis(mapPrototype.set);$h͏_once.mapSet(mapSet);
       const mapGet = uncurryThis(mapPrototype.get);$h͏_once.mapGet(mapGet);
       const mapHas = uncurryThis(mapPrototype.has);$h͏_once.mapHas(mapHas);
       const mapDelete = uncurryThis(mapPrototype.delete);$h͏_once.mapDelete(mapDelete);
       const mapEntries = uncurryThis(mapPrototype.entries);$h͏_once.mapEntries(mapEntries);
       const iterateMap = uncurryThis(mapPrototype[iteratorSymbol]);
//
$h͏_once.iterateMap(iterateMap);const setAdd=uncurryThis(setPrototype.add);$h͏_once.setAdd(setAdd);
       const setDelete = uncurryThis(setPrototype.delete);$h͏_once.setDelete(setDelete);
       const setForEach = uncurryThis(setPrototype.forEach);$h͏_once.setForEach(setForEach);
       const setHas = uncurryThis(setPrototype.has);$h͏_once.setHas(setHas);
       const iterateSet = uncurryThis(setPrototype[iteratorSymbol]);
//
$h͏_once.iterateSet(iterateSet);const regexpTest=uncurryThis(regexpPrototype.test);$h͏_once.regexpTest(regexpTest);
       const regexpExec = uncurryThis(regexpPrototype.exec);$h͏_once.regexpExec(regexpExec);
       const matchAllRegExp = uncurryThis(regexpPrototype[matchAllSymbol]);
//
$h͏_once.matchAllRegExp(matchAllRegExp);const stringEndsWith=uncurryThis(stringPrototype.endsWith);$h͏_once.stringEndsWith(stringEndsWith);
       const stringIncludes = uncurryThis(stringPrototype.includes);$h͏_once.stringIncludes(stringIncludes);
       const stringIndexOf = uncurryThis(stringPrototype.indexOf);$h͏_once.stringIndexOf(stringIndexOf);
       const stringMatch = uncurryThis(stringPrototype.match);$h͏_once.stringMatch(stringMatch);
       const generatorNext = uncurryThis(generatorPrototype.next);$h͏_once.generatorNext(generatorNext);
       const generatorThrow = uncurryThis(generatorPrototype.throw);

/**
 * @type { &
 *   ((thisArg: string, searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string) => string) &
 *   ((thisArg: string, searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string) => string)
 * }
 */$h͏_once.generatorThrow(generatorThrow);
       const stringReplace = /** @type {any} */ (
  uncurryThis(stringPrototype.replace)
);$h͏_once.stringReplace(stringReplace);
       const stringSearch = uncurryThis(stringPrototype.search);$h͏_once.stringSearch(stringSearch);
       const stringSlice = uncurryThis(stringPrototype.slice);$h͏_once.stringSlice(stringSlice);
       const stringSplit =
  /** @type {(thisArg: string, splitter: string | RegExp | { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number) => string[]} */ (
    uncurryThis(stringPrototype.split)
  );$h͏_once.stringSplit(stringSplit);
       const stringStartsWith = uncurryThis(stringPrototype.startsWith);$h͏_once.stringStartsWith(stringStartsWith);
       const iterateString = uncurryThis(stringPrototype[iteratorSymbol]);
//
$h͏_once.iterateString(iterateString);const weakmapDelete=uncurryThis(weakmapPrototype.delete);
/** @type {<K extends {}, V>(thisArg: WeakMap<K, V>, ...args: Parameters<WeakMap<K,V>['get']>) => ReturnType<WeakMap<K,V>['get']>} */$h͏_once.weakmapDelete(weakmapDelete);
       const weakmapGet = uncurryThis(weakmapPrototype.get);$h͏_once.weakmapGet(weakmapGet);
       const weakmapHas = uncurryThis(weakmapPrototype.has);$h͏_once.weakmapHas(weakmapHas);
       const weakmapSet = uncurryThis(weakmapPrototype.set);
//
$h͏_once.weakmapSet(weakmapSet);const weaksetAdd=uncurryThis(weaksetPrototype.add);$h͏_once.weaksetAdd(weaksetAdd);
       const weaksetHas = uncurryThis(weaksetPrototype.has);
//
$h͏_once.weaksetHas(weaksetHas);const functionToString=uncurryThis(functionPrototype.toString);$h͏_once.functionToString(functionToString);
       const functionBind = uncurryThis(bind);
//
$h͏_once.functionBind(functionBind);const{all}=Promise;
       const promiseAll = promises => apply(all, Promise, [promises]);$h͏_once.promiseAll(promiseAll);
       const promiseCatch = uncurryThis(promisePrototype.catch);
/** @type {<T, TResult1 = T, TResult2 = never>(thisArg: T, onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null) => Promise<TResult1 | TResult2>} */$h͏_once.promiseCatch(promiseCatch);
       const promiseThen = /** @type {any} */ (
  uncurryThis(promisePrototype.then)
);
//
$h͏_once.promiseThen(promiseThen);const finalizationRegistryRegister=
  FinalizationRegistry && uncurryThis(FinalizationRegistry.prototype.register);$h͏_once.finalizationRegistryRegister(finalizationRegistryRegister);
       const finalizationRegistryUnregister =
  FinalizationRegistry &&
  uncurryThis(FinalizationRegistry.prototype.unregister);

/**
 * getConstructorOf()
 * Return the constructor from an instance.
 *
 * @param {Function} fn
 */$h͏_once.finalizationRegistryUnregister(finalizationRegistryUnregister);
       const getConstructorOf = fn =>
  reflectGet(getPrototypeOf(fn), 'constructor');

/**
 * TODO Consolidate with `isPrimitive` that's currently in `@endo/pass-style`.
 * Layering constraints make this tricky, which is why we haven't yet figured
 * out how to do this.
 *
 * @type {(val: unknown) => val is (undefined
 * | null
 * | boolean
 * | number
 * | bigint
 * | string
 * | symbol)}
 */$h͏_once.getConstructorOf(getConstructorOf);
       const isPrimitive = val =>
  !val || (typeof val !== 'object' && typeof val !== 'function');

/**
 * isError tests whether an object inherits from the intrinsic
 * `Error.prototype`.
 * We capture the original error constructor as FERAL_ERROR to provide a clear
 * signal for reviewers that we are handling an object with excess authority,
 * like stack trace inspection, that we are carefully hiding from client code.
 * Checking instanceof happens to be safe, but to avoid uttering FERAL_ERROR
 * for such a trivial case outside commons.js, we provide a utility function.
 *
 * @param {any} value
 */$h͏_once.isPrimitive(isPrimitive);
       const isError = value => value instanceof FERAL_ERROR;

/**
 * @template T
 * @param {T} x
 */$h͏_once.isError(isError);
       const identity = x => x;

// The original unsafe untamed eval function, which must not escape.
// Sample at module initialization time, which is before lockdown can
// repair it.  Use it only to build powerless abstractions.
// eslint-disable-next-line no-eval
$h͏_once.identity(identity);const FERAL_EVAL=eval;

// The original unsafe untamed Function constructor, which must not escape.
// Sample at module initialization time, which is before lockdown can
// repair it.  Use it only to build powerless abstractions.
$h͏_once.FERAL_EVAL(FERAL_EVAL);const FERAL_FUNCTION=Function;$h͏_once.FERAL_FUNCTION(FERAL_FUNCTION);

       const noEvalEvaluate = () => {
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_NO_EVAL.md
  throw TypeError('Cannot eval with evalTaming set to "no-eval" (SES_NO_EVAL)');
};

// ////////////////// FERAL_STACK_GETTER FERAL_STACK_SETTER ////////////////////
$h͏_once.noEvalEvaluate(noEvalEvaluate);
const er1StackDesc = getOwnPropertyDescriptor(Error('er1'), 'stack');
const er2StackDesc = getOwnPropertyDescriptor(TypeError('er2'), 'stack');

let feralStackGetter;
let feralStackSetter;
if (er1StackDesc && er2StackDesc && er1StackDesc.get) {
  // We should only encounter this case on v8 because of its problematic
  // error own stack accessor behavior.
  // Note that FF/SpiderMonkey, Moddable/XS, and the error stack proposal
  // all inherit a stack accessor property from Error.prototype, which is
  // great. That case needs no heroics to secure.
  if (
    // In the v8 case as we understand it, all errors have an own stack
    // accessor property, but within the same realm, all these accessor
    // properties have the same getter and have the same setter.
    // This is therefore the case that we repair.
    typeof er1StackDesc.get === 'function' &&
    er1StackDesc.get === er2StackDesc.get &&
    typeof er1StackDesc.set === 'function' &&
    er1StackDesc.set === er2StackDesc.set
  ) {
    // Otherwise, we have own stack accessor properties that are outside
    // our expectations, that therefore need to be understood better
    // before we know how to repair them.
    feralStackGetter = freeze(er1StackDesc.get);
    feralStackSetter = freeze(er1StackDesc.set);
  } else {
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNEXPECTED_ERROR_OWN_STACK_ACCESSOR.md
    throw TypeError(
      'Unexpected Error own stack accessor functions (SES_UNEXPECTED_ERROR_OWN_STACK_ACCESSOR)',
    );
  }
}

/**
 * If on a v8 with the problematic error own stack accessor behavior,
 * `FERAL_STACK_GETTER` will be the shared getter of all those accessors
 * and `FERAL_STACK_SETTER` will be the shared setter. On any platform
 * without this problem, `FERAL_STACK_GETTER` and `FERAL_STACK_SETTER` are
 * both `undefined`.
 *
 * @type {(() => any) | undefined}
 */
       const FERAL_STACK_GETTER = feralStackGetter;

/**
 * If on a v8 with the problematic error own stack accessor behavior,
 * `FERAL_STACK_GETTER` will be the shared getter of all those accessors
 * and `FERAL_STACK_SETTER` will be the shared setter. On any platform
 * without this problem, `FERAL_STACK_GETTER` and `FERAL_STACK_SETTER` are
 * both `undefined`.
 *
 * @type {((newValue: any) => void) | undefined}
 */$h͏_once.FERAL_STACK_GETTER(FERAL_STACK_GETTER);
       const FERAL_STACK_SETTER = feralStackSetter;$h͏_once.FERAL_STACK_SETTER(FERAL_STACK_SETTER);

const getAsyncGeneratorFunctionInstance = () => {
  // Test for async generator function syntax support.
  try {
    // Wrapping one in an new Function lets the `hermesc` binary file
    // parse the Metro js bundle without SyntaxError, to generate the
    // optimised Hermes bytecode bundle, when `gradlew` is called to
    // assemble the release build APK for React Native prod Android apps.
    // Delaying the error until runtime lets us customise lockdown behaviour.
    return new FERAL_FUNCTION(
      'return (async function* AsyncGeneratorFunctionInstance() {})',
    )();
  } catch (error) {
    // Note: `Error.prototype.jsEngine` is only set by React Native runtime, not Hermes:
    // https://github.com/facebook/react-native/blob/main/packages/react-native/ReactCommon/hermes/executor/HermesExecutorFactory.cpp#L224-L230
    if (error.name === 'SyntaxError') {
      // Swallows Hermes error `async generators are unsupported` at runtime.
      // Note: `console` is not a JS built-in, so Hermes engine throws:
      // Uncaught ReferenceError: Property 'console' doesn't exist
      // See: https://github.com/facebook/hermes/issues/675
      // However React Native provides a `console` implementation when setting up error handling:
      // https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/InitializeCore.js
      return undefined;
    } else if (error.name === 'EvalError') {
      // eslint-disable-next-line no-empty-function
      return async function* AsyncGeneratorFunctionInstance() {};
    } else {
      throw error;
    }
  }
};

/**
 * If the platform supports async generator functions, this will be an
 * async generator function instance. Otherwise, it will be `undefined`.
 *
 * @type {AsyncGeneratorFunction | undefined}
 */
       const AsyncGeneratorFunctionInstance =
  getAsyncGeneratorFunctionInstance();$h͏_once.AsyncGeneratorFunctionInstance(AsyncGeneratorFunctionInstance);
})()
,
// === 1. ses ./src/assert-sloppy-mode.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]]]]]);

/** getThis returns globalThis in sloppy mode or undefined in strict mode. */
function getThis() {
  return this;
}

if (getThis()) {
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_NO_SLOPPY.md
  throw TypeError(`SES failed to initialize, sloppy mode (SES_NO_SLOPPY)`);
}
})()
,
// === 2. env-options ./src/env-options.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/* global globalThis */
// @ts-check

// `@endo/env-options` needs to be imported quite early, and so should
// avoid importing from ses or anything that depends on ses.

// /////////////////////////////////////////////////////////////////////////////
// Prelude of cheap good - enough imitations of things we'd use or
// do differently if we could depend on ses

// eslint-disable-next-line no-restricted-globals
const localThis = globalThis;

const { Object, Reflect, Array, String, JSON, Error } = localThis;
const { freeze } = Object;
const { apply } = Reflect;

// Should be equivalent to the one in ses' commons.js even though it
// uses the other technique.
const uncurryThis =
  fn =>
  (receiver, ...args) =>
    apply(fn, receiver, args);
const arrayPush = uncurryThis(Array.prototype.push);
const arrayIncludes = uncurryThis(Array.prototype.includes);
const stringSplit = uncurryThis(String.prototype.split);

const q = JSON.stringify;

const Fail = (literals, ...args) => {
  let msg = literals[0];
  for (let i = 0; i < args.length; i += 1) {
    msg = `${msg}${args[i]}${literals[i + 1]}`;
  }
  throw Error(msg);
};

// end prelude
// /////////////////////////////////////////////////////////////////////////////

/**
 * `makeEnvironmentCaptor` provides a mechanism for getting environment
 * variables, if they are needed, and a way to catalog the names of all
 * the environment variables that were captured.
 *
 * @param {object} aGlobal
 * @param {boolean} [dropNames] Defaults to false. If true, don't track
 * names used.
 */
       const makeEnvironmentCaptor = (aGlobal, dropNames = false) => {
  /** @type {string[]} */
  const capturedEnvironmentOptionNames = [];

  /**
   * Gets an environment option by name and returns the option value or the
   * given default.
   *
   * @param {string} optionName
   * @param {string} defaultSetting
   * @param {string[]} [optOtherValues]
   * If provided, the option value must be included or match `defaultSetting`.
   * @returns {string}
   */
  const getEnvironmentOption = (
    optionName,
    defaultSetting,
    optOtherValues = undefined,
  ) => {
    typeof optionName === 'string' ||
      Fail`Environment option name ${q(optionName)} must be a string.`;
    typeof defaultSetting === 'string' ||
      Fail`Environment option default setting ${q(
        defaultSetting,
      )} must be a string.`;

    /** @type {string} */
    let setting = defaultSetting;
    const globalProcess = aGlobal.process || undefined;
    const globalEnv =
      (typeof globalProcess === 'object' && globalProcess.env) || undefined;
    if (typeof globalEnv === 'object') {
      if (optionName in globalEnv) {
        if (!dropNames) {
          arrayPush(capturedEnvironmentOptionNames, optionName);
        }
        const optionValue = globalEnv[optionName];
        // eslint-disable-next-line @endo/no-polymorphic-call
        typeof optionValue === 'string' ||
          Fail`Environment option named ${q(
            optionName,
          )}, if present, must have a corresponding string value, got ${q(
            optionValue,
          )}`;
        setting = optionValue;
      }
    }
    optOtherValues === undefined ||
      setting === defaultSetting ||
      arrayIncludes(optOtherValues, setting) ||
      Fail`Unrecognized ${q(optionName)} value ${q(
        setting,
      )}. Expected one of ${q([defaultSetting, ...optOtherValues])}`;
    return setting;
  };
  freeze(getEnvironmentOption);

  /**
   * @template {string} [T=string]
   * @param {string} optionName
   * @returns {T[]}
   */
  const getEnvironmentOptionsList = optionName => {
    const option = getEnvironmentOption(optionName, '');
    return freeze(option === '' ? [] : stringSplit(option, ','));
  };
  freeze(getEnvironmentOptionsList);

  /**
   * @template {string} [T=string]
   * @param {string} optionName
   * @param {T} element
   * @returns {boolean}
   */
  const environmentOptionsListHas = (optionName, element) =>
    arrayIncludes(getEnvironmentOptionsList(optionName), element);

  const getCapturedEnvironmentOptionNames = () => {
    return freeze([...capturedEnvironmentOptionNames]);
  };
  freeze(getCapturedEnvironmentOptionNames);

  return freeze({
    getEnvironmentOption,
    getEnvironmentOptionsList,
    environmentOptionsListHas,
    getCapturedEnvironmentOptionNames,
  });
};$h͏_once.makeEnvironmentCaptor(makeEnvironmentCaptor);
freeze(makeEnvironmentCaptor);

/**
 * For the simple case, where the global in question is `globalThis` and no
 * reporting of option names is desired.
 */
       const {
  getEnvironmentOption,
  getEnvironmentOptionsList,
  environmentOptionsListHas,
} = makeEnvironmentCaptor(localThis, true);$h͏_once.getEnvironmentOption(getEnvironmentOption);$h͏_once.getEnvironmentOptionsList(getEnvironmentOptionsList);$h͏_once.environmentOptionsListHas(environmentOptionsListHas);
})()
,
// === 3. env-options ./index.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/env-options.js", []]]);
})()
,
// === 4. immutable-arraybuffer ./src/immutable-arraybuffer-pony.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/* global globalThis */

const {
  ArrayBuffer,
  Object,
  Reflect,
  Symbol,
  TypeError,
  Uint8Array,
  WeakMap,
  // Capture structuredClone before it can be scuttled.
  structuredClone: optStructuredClone
  // eslint-disable-next-line no-restricted-globals
} = globalThis;

const { freeze, defineProperty, getPrototypeOf, getOwnPropertyDescriptor } =
  Object;
const { apply, ownKeys } = Reflect;
const { toStringTag } = Symbol;

const { prototype: arrayBufferPrototype } = ArrayBuffer;
const { slice, transfer: optTransfer } = arrayBufferPrototype;
// @ts-expect-error TS doesn't know it'll be there
const { get: arrayBufferByteLength } = getOwnPropertyDescriptor(
  arrayBufferPrototype,
  'byteLength',
);

const typedArrayPrototype = getPrototypeOf(Uint8Array.prototype);
const { set: uint8ArraySet } = typedArrayPrototype;
// @ts-expect-error TS doesn't know it'll be there
const { get: uint8ArrayBuffer } = getOwnPropertyDescriptor(
  typedArrayPrototype,
  'buffer',
);

/**
 * Copy a range of values from a genuine ArrayBuffer exotic object into a new
 * ArrayBuffer.
 *
 * @param {ArrayBuffer} realBuffer
 * @param {number} [start]
 * @param {number} [end]
 * @returns {ArrayBuffer}
 */
const arrayBufferSlice = (realBuffer, start = undefined, end = undefined) =>
  apply(slice, realBuffer, [start, end]);

/**
 * Move the contents of a genuine ArrayBuffer exotic object into a new fresh
 * ArrayBuffer and detach the original source.
 * We can only do this on platforms that support `structuredClone` or
 * `ArrayBuffer.prototype.transfer`.
 * On other platforms, we can still emulate
 * `ArrayBuffer.prototoype.sliceToImmutable`, but not
 * `ArrayBuffer.prototype.transferToImmutable`.
 * Currently, these known-deficient platforms are
 * - Hermes
 * - Node.js <= 16
 * - Apparently some versions of JavaScriptCore that are still of concern.
 *
 * @param {ArrayBuffer} arrayBuffer
 * @returns {ArrayBuffer}
 */
let optArrayBufferTransfer;

if (optTransfer) {
  optArrayBufferTransfer = arrayBuffer => apply(optTransfer, arrayBuffer, []);
} else if (optStructuredClone) {
  optArrayBufferTransfer = arrayBuffer => {
    // Hopefully, a zero-length slice is cheap, but still enforces that
    // `arrayBuffer` is a genuine `ArrayBuffer` exotic object.
    arrayBufferSlice(arrayBuffer, 0, 0);
    return optStructuredClone(arrayBuffer, {
      transfer: [arrayBuffer],
    });
  };
} else {
  // Assignment is redundant, but remains for clarity.
  optArrayBufferTransfer = undefined;
}

/**
 * If we could use classes with private fields everywhere, this would have
 * been a `this.#buffer` private field on an `ImmutableArrayBufferInternal`
 * class. But we cannot do so on Hermes. So, instead, we
 * emulate the `this.#buffer` private field, including its use as a brand check.
 * Maps from all and only emulated Immutable ArrayBuffers to real ArrayBuffers.
 *
 * @type {Pick<WeakMap<ArrayBuffer, ArrayBuffer>, 'get' | 'has' | 'set'>}
 */
const buffers = new WeakMap();
// Avoid post-hoc prototype lookups.
for (const methodName of ['get', 'has', 'set']) {
  defineProperty(buffers, methodName, { value: buffers[methodName] });
}
const getBuffer = immuAB => {
  // Safe because this WeakMap owns its get method.
  // eslint-disable-next-line @endo/no-polymorphic-call
  const result = buffers.get(immuAB);
  if (result) {
    return result;
  }
  throw TypeError('Not an emulated Immutable ArrayBuffer');
};

// Omits `constructor` so `Array.prototype.constructor` is inherited.
const ImmutableArrayBufferInternalPrototype = {
  __proto__: arrayBufferPrototype,
  get byteLength() {
    return apply(arrayBufferByteLength, getBuffer(this), []);
  },
  get detached() {
    getBuffer(this); // shim brand check
    return false;
  },
  get maxByteLength() {
    // Not underlying maxByteLength, which is irrelevant
    return apply(arrayBufferByteLength, getBuffer(this), []);
  },
  get resizable() {
    getBuffer(this); // shim brand check
    return false;
  },
  get immutable() {
    getBuffer(this); // shim brand check
    return true;
  },
  slice(start = undefined, end = undefined) {
    return arrayBufferSlice(getBuffer(this), start, end);
  },
  sliceToImmutable(start = undefined, end = undefined) {
    // eslint-disable-next-line no-use-before-define
    return sliceBufferToImmutable(getBuffer(this), start, end);
  },
  resize(_newByteLength = undefined) {
    getBuffer(this); // shim brand check
    throw TypeError('Cannot resize an immutable ArrayBuffer');
  },
  transfer(_newLength = undefined) {
    getBuffer(this); // shim brand check
    throw TypeError('Cannot detach an immutable ArrayBuffer');
  },
  transferToFixedLength(_newLength = undefined) {
    getBuffer(this); // shim brand check
    throw TypeError('Cannot detach an immutable ArrayBuffer');
  },
  transferToImmutable(_newLength = undefined) {
    getBuffer(this); // shim brand check
    throw TypeError('Cannot detach an immutable ArrayBuffer');
  },
  /**
   * See https://github.com/endojs/endo/tree/master/packages/immutable-arraybuffer#purposeful-violation
   */
  [toStringTag]: 'ImmutableArrayBuffer',
};

// Better fidelity emulation of a class prototype
for (const key of ownKeys(ImmutableArrayBufferInternalPrototype)) {
  defineProperty(ImmutableArrayBufferInternalPrototype, key, {
    enumerable: false,
  });
}

/**
 * Emulates what would have been the encapsulated `ImmutableArrayBufferInternal`
 * class constructor. This function takes the `realBuffer` which its
 * result encapsulates. Security demands that this result has exclusive access
 * to the `realBuffer` it is given, which its callers must ensure.
 *
 * @param {ArrayBuffer} realBuffer
 * @returns {ArrayBuffer}
 */
const makeImmutableArrayBufferInternal = realBuffer => {
  const result = /** @type {ArrayBuffer} */ (
    /** @type {unknown} */ ({
      __proto__: ImmutableArrayBufferInternalPrototype,
    })
  );
  // Safe because this WeakMap owns its set method.
  // eslint-disable-next-line @endo/no-polymorphic-call
  buffers.set(result, realBuffer);
  return result;
};
// Since `makeImmutableArrayBufferInternal` MUST not escape,
// this `freeze` is just belt-and-suspenders.
freeze(makeImmutableArrayBufferInternal);

/**
 * @param {ArrayBuffer} buffer
 * @returns {boolean}
 */
// eslint-disable-next-line @endo/no-polymorphic-call
       const isBufferImmutable = buffer => buffers.has(buffer);

/**
 * Creates an immutable slice of the given buffer.
 * @param {ArrayBuffer} buffer The original buffer.
 * @param {number} [start] The start index.
 * @param {number} [end] The end index.
 * @returns {ArrayBuffer} The sliced immutable ArrayBuffer.
 */$h͏_once.isBufferImmutable(isBufferImmutable);
       const sliceBufferToImmutable = (
  buffer,
  start = undefined,
  end = undefined,
) => {
  // Safe because this WeakMap owns its get method.
  // eslint-disable-next-line @endo/no-polymorphic-call
  let realBuffer = buffers.get(buffer);
  if (realBuffer === undefined) {
    realBuffer = buffer;
  }
  return makeImmutableArrayBufferInternal(
    arrayBufferSlice(realBuffer, start, end),
  );
};$h͏_once.sliceBufferToImmutable(sliceBufferToImmutable);

let transferBufferToImmutable;
if (optArrayBufferTransfer) {
  /**
   * Transfer the contents to a new Immutable ArrayBuffer
   *
   * @param {ArrayBuffer} buffer The original buffer.
   * @param {number} [newLength] The start index.
   * @returns {ArrayBuffer}
   */
  transferBufferToImmutable = (buffer, newLength = undefined) => {
    if (newLength === undefined) {
      buffer = optArrayBufferTransfer(buffer);
    } else if (optTransfer) {
      buffer = apply(optTransfer, buffer, [newLength]);
    } else {
      buffer = optArrayBufferTransfer(buffer);
      const oldLength = buffer.byteLength;
      // eslint-disable-next-line @endo/restrict-comparison-operands
      if (newLength <= oldLength) {
        buffer = arrayBufferSlice(buffer, 0, newLength);
      } else {
        const oldTA = new Uint8Array(buffer);
        const newTA = new Uint8Array(newLength);
        apply(uint8ArraySet, newTA, [oldTA]);
        buffer = apply(uint8ArrayBuffer, newTA, []);
      }
    }
    const result = makeImmutableArrayBufferInternal(buffer);
    return /** @type {ArrayBuffer} */ (/** @type {unknown} */ (result));
  };
} else {
  transferBufferToImmutable = undefined;
}

       const optTransferBufferToImmutable = transferBufferToImmutable;$h͏_once.optTransferBufferToImmutable(optTransferBufferToImmutable);
})()
,
// === 5. immutable-arraybuffer ./src/immutable-arraybuffer-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let isBufferImmutable,sliceBufferToImmutable,optXferBuf2Immu;$h͏_imports([["./immutable-arraybuffer-pony.js", [["isBufferImmutable",[$h͏_a => (isBufferImmutable = $h͏_a)]],["sliceBufferToImmutable",[$h͏_a => (sliceBufferToImmutable = $h͏_a)]],["optTransferBufferToImmutable",[$h͏_a => (optXferBuf2Immu = $h͏_a)]]]]]);







const {
  ArrayBuffer,
  JSON,
  Object,
  Reflect
  // eslint-disable-next-line no-restricted-globals
} = globalThis;

// Even though the imported one is not exported by the pony as a live binding,
// TS doesn't know that,
// so it cannot do its normal flow-based inference. By making and using a local
// copy, no problem.
const optTransferBufferToImmutable = optXferBuf2Immu;

const { getOwnPropertyDescriptors, defineProperties, defineProperty } = Object;
const { ownKeys } = Reflect;
const { prototype: arrayBufferPrototype } = ArrayBuffer;
const { stringify } = JSON;

const arrayBufferMethods = {
  /**
   * Creates an immutable slice of the given buffer.
   *
   * @this {ArrayBuffer} buffer The original buffer.
   * @param {number} [start] The start index.
   * @param {number} [end] The end index.
   * @returns {ArrayBuffer} The sliced immutable ArrayBuffer.
   */
  sliceToImmutable(start = undefined, end = undefined) {
    return sliceBufferToImmutable(this, start, end);
  },

  /**
   * @this {ArrayBuffer}
   */
  get immutable() {
    return isBufferImmutable(this);
  },

  ...(optTransferBufferToImmutable
    ? {
        /**
         * Transfer the contents to a new Immutable ArrayBuffer
         *
         * @this {ArrayBuffer} buffer The original buffer.
         * @param {number} [newLength] The start index.
         * @returns {ArrayBuffer} The sliced immutable ArrayBuffer.
         */
        transferToImmutable(newLength = undefined) {
          return optTransferBufferToImmutable(this, newLength);
        },
      }
    : {}),
};

// Better fidelity emulation of a class prototype
for (const key of ownKeys(arrayBufferMethods)) {
  defineProperty(arrayBufferMethods, key, {
    enumerable: false,
  });
}

// Modern shim practice frowns on conditional installation, at least for
// proposals prior to stage 3. This is so changes to the proposal since
// an old shim was distributed don't need to worry about the proposal
// breaking old code depending on the old shim. Thus, if we detect that
// we're about to overwrite a prior installation, we simply issue this
// warning and continue.
//
// TODO, if the primordials are frozen after the prior implementation, such as
// by `lockdown`, then this precludes overwriting as expected. However, for
// this case, the following warning text will be confusing.
//
// Allowing polymorphic calls because these occur during initialization.
// eslint-disable-next-line @endo/no-polymorphic-call
const overwrites = ownKeys(arrayBufferMethods).filter(
  key => key in arrayBufferPrototype,
);
if (overwrites.length > 0) {
  // eslint-disable-next-line @endo/no-polymorphic-call
  console.warn(
    `About to overwrite ArrayBuffer.prototype properties ${stringify(overwrites)}`,
  );
}

defineProperties(
  arrayBufferPrototype,
  getOwnPropertyDescriptors(arrayBufferMethods),
);
})()
,
// === 6. immutable-arraybuffer ./shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/immutable-arraybuffer-shim.js", []]]);
})()
,
// === 7. ses ./src/error/stringify-utils.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Set,String,isArray,arrayJoin,arraySlice,arraySort,arrayMap,keys,fromEntries,freeze,is,isError,setAdd,setHas,stringIncludes,stringStartsWith,stringifyJson,toStringTagSymbol;$h͏_imports([["../commons.js", [["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arraySlice",[$h͏_a => (arraySlice = $h͏_a)]],["arraySort",[$h͏_a => (arraySort = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["keys",[$h͏_a => (keys = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["setAdd",[$h͏_a => (setAdd = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]],["stringIncludes",[$h͏_a => (stringIncludes = $h͏_a)]],["stringStartsWith",[$h͏_a => (stringStartsWith = $h͏_a)]],["stringifyJson",[$h͏_a => (stringifyJson = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]]]]]);






















/** @import {StringablePayload} from '../../types.js' */

/**
 * Joins English terms with commas and an optional conjunction.
 *
 * @param {(string | StringablePayload)[]} terms
 * @param {"and" | "or"} conjunction
 */
       const enJoin = (terms, conjunction) => {
  if (terms.length === 0) {
    return '(none)';
  } else if (terms.length === 1) {
    return terms[0];
  } else if (terms.length === 2) {
    const [first, second] = terms;
    return `${first} ${conjunction} ${second}`;
  } else {
    return `${arrayJoin(arraySlice(terms, 0, -1), ', ')}, ${conjunction} ${
      terms[terms.length - 1]
    }`;
  }
};

/**
 * Prepend the correct indefinite article onto a noun, typically a typeof
 * result, e.g., "an object" vs. "a number"
 *
 * @param {string} str The noun to prepend
 * @returns {string} The noun prepended with a/an
 */$h͏_once.enJoin(enJoin);
const an = str => {
  str = `${str}`;
  if (str.length >= 1 && stringIncludes('aeiouAEIOU', str[0])) {
    return `an ${str}`;
  }
  return `a ${str}`;
};$h͏_once.an(an);
freeze(an);


/**
 * Like `JSON.stringify` but does not blow up if given a cycle or a bigint.
 * This is not
 * intended to be a serialization to support any useful unserialization,
 * or any programmatic use of the resulting string. The string is intended
 * *only* for showing a human under benign conditions, in order to be
 * informative enough for some
 * logging purposes. As such, this `bestEffortStringify` has an
 * imprecise specification and may change over time.
 *
 * The current `bestEffortStringify` possibly emits too many "seen"
 * markings: Not only for cycles, but also for repeated subtrees by
 * object identity.
 *
 * As a best effort only for diagnostic interpretation by humans,
 * `bestEffortStringify` also turns various cases that normal
 * `JSON.stringify` skips or errors on, like `undefined` or bigints,
 * into strings that convey their meaning. To distinguish this from
 * strings in the input, these synthesized strings always begin and
 * end with square brackets. To distinguish those strings from an
 * input string with square brackets, and input string that starts
 * with an open square bracket `[` is itself placed in square brackets.
 *
 * @param {any} payload
 * @param {(string|number)=} spaces
 * @returns {string}
 */
const bestEffortStringify = (payload, spaces = undefined) => {
  const seenSet = new Set();
  const replacer = (_, val) => {
    switch (typeof val) {
      case 'object': {
        if (val === null) {
          return null;
        }
        if (setHas(seenSet, val)) {
          return '[Seen]';
        }
        setAdd(seenSet, val);
        if (isError(val)) {
          return `[${val.name}: ${val.message}]`;
        }
        if (toStringTagSymbol in val) {
          // For the built-ins that have or inherit a `Symbol.toStringTag`-named
          // property, most of them inherit the default `toString` method,
          // which will print in a similar manner: `"[object Foo]"` vs
          // `"[Foo]"`. The exceptions are
          //    * `Symbol.prototype`, `BigInt.prototype`, `String.prototype`
          //      which don't matter to us since we handle primitives
          //      separately and we don't care about primitive wrapper objects.
          //    * TODO
          //      `Date.prototype`, `TypedArray.prototype`.
          //      Hmmm, we probably should make special cases for these. We're
          //      not using these yet, so it's not urgent. But others will run
          //      into these.
          //
          // Once #2018 is closed, the only objects in our code that have or
          // inherit a `Symbol.toStringTag`-named property are remotables
          // or their remote presences.
          // This printing will do a good job for these without
          // violating abstraction layering. This behavior makes sense
          // purely in terms of JavaScript concepts. That's some of the
          // motivation for choosing that representation of remotables
          // and their remote presences in the first place.
          return `[${val[toStringTagSymbol]}]`;
        }
        if (isArray(val)) {
          return val;
        }
        const names = keys(val);
        if (names.length < 2) {
          return val;
        }
        let sorted = true;
        for (let i = 1; i < names.length; i += 1) {
          if (names[i - 1] >= names[i]) {
            sorted = false;
            break;
          }
        }
        if (sorted) {
          return val;
        }
        arraySort(names);
        const entries = arrayMap(names, name => [name, val[name]]);
        return fromEntries(entries);
      }
      case 'function': {
        return `[Function ${val.name || '<anon>'}]`;
      }
      case 'string': {
        if (stringStartsWith(val, '[')) {
          return `[${val}]`;
        }
        return val;
      }
      case 'undefined':
      case 'symbol': {
        return `[${String(val)}]`;
      }
      case 'bigint': {
        return `[${val}n]`;
      }
      case 'number': {
        if (is(val, NaN)) {
          return '[NaN]';
        } else if (val === Infinity) {
          return '[Infinity]';
        } else if (val === -Infinity) {
          return '[-Infinity]';
        }
        return val;
      }
      default: {
        return val;
      }
    }
  };
  try {
    return stringifyJson(payload, replacer, spaces);
  } catch (_err) {
    // Don't do anything more fancy here if there is any
    // chance that might throw, unless you surround that
    // with another try-catch-recovery. For example,
    // the caught thing might be a proxy or other exotic
    // object rather than an error. The proxy might throw
    // whenever it is possible for it to.
    return '[Something that failed to stringify]';
  }
};$h͏_once.bestEffortStringify(bestEffortStringify);
freeze(bestEffortStringify);
})()
,
// === 8. ses ./src/error/types.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);// @ts-check

/** @import {GenericErrorConstructor, AssertMakeErrorOptions, DetailsToken, StringablePayload} from '../../types.js' */

/**
 * @typedef {object} VirtualConsole
 * @property {Console['debug']} debug
 * @property {Console['log']} log
 * @property {Console['info']} info
 * @property {Console['warn']} warn
 * @property {Console['error']} error
 *
 * @property {Console['trace']} trace
 * @property {Console['dirxml']} dirxml
 * @property {Console['group']} group
 * @property {Console['groupCollapsed']} groupCollapsed
 *
 * @property {Console['assert']} assert
 * @property {Console['timeLog']} timeLog
 *
 * @property {Console['clear']} clear
 * @property {Console['count']} count
 * @property {Console['countReset']} countReset
 * @property {Console['dir']} dir
 * @property {Console['groupEnd']} groupEnd
 *
 * @property {Console['table']} table
 * @property {Console['time']} time
 * @property {Console['timeEnd']} timeEnd
 * @property {Console['timeStamp']} timeStamp
 */

/* This is deliberately *not* JSDoc, it is a regular comment.
 *
 * TODO: We'd like to add the following properties to the above
 * VirtualConsole, but they currently cause conflicts where
 * some Typescript implementations don't have these properties
 * on the Console type.
 *
 * @property {Console['profile']} profile
 * @property {Console['profileEnd']} profileEnd
 */

/**
 * @typedef {'debug' | 'log' | 'info' | 'warn' | 'error'} LogSeverity
 */

/**
 * @typedef ConsoleFilter
 * @property {(severity: LogSeverity) => boolean} canLog
 */

/**
 * @callback FilterConsole
 * @param {VirtualConsole} baseConsole
 * @param {ConsoleFilter} filter
 * @param {string} [topic]
 * @returns {VirtualConsole}
 */
})()
,
// === 9. ses ./src/error/internal-types.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);// @ts-check

/**
 * @import {VirtualConsole} from './types.js'
 */

/**
 * @typedef {readonly any[]} LogArgs
 *
 * This is an array suitable to be used as arguments of a console
 * level message *after* the format string argument. It is the result of
 * a `details` template string and consists of alternating literal strings
 * and substitution values, starting with a literal string. At least that
 * first literal string is always present.
 */

/**
 * @callback NoteCallback
 *
 * @param {Error} error
 * @param {LogArgs} noteLogArgs
 * @returns {void}
 */

/**
 * @callback GetStackString
 * @param {Error} error
 * @returns {string=}
 */

/**
 * @typedef {object} LoggedErrorHandler
 *
 * Used to parameterize `makeCausalConsole` to give it access to potentially
 * hidden information to augment the logging of errors.
 *
 * @property {GetStackString} getStackString
 * @property {(error: Error) => string} tagError
 * @property {() => void} resetErrorTagNum for debugging purposes only
 * @property {(error: Error) => (LogArgs | undefined)} getMessageLogArgs
 * @property {(error: Error) => (LogArgs | undefined)} takeMessageLogArgs
 * @property {(error: Error, callback?: NoteCallback) => LogArgs[] } takeNoteLogArgsArray
 */

// /////////////////////////////////////////////////////////////////////////////

/**
 * @typedef {readonly [string, ...any[]]} LogRecord
 */

/**
 * @typedef {object} LoggingConsoleKit
 * @property {VirtualConsole} loggingConsole
 * @property {() => readonly LogRecord[]} takeLog
 */

/**
 * @typedef {object} MakeLoggingConsoleKitOptions
 * @property {boolean=} shouldResetForDebugging
 */

/**
 * @callback MakeLoggingConsoleKit
 *
 * A logging console just accumulates the contents of all permitted calls,
 * making them available to callers of `takeLog()`. Calling `takeLog()`
 * consumes these, so later calls to `takeLog()` will only provide a log of
 * calls that have happened since then.
 *
 * @param {LoggedErrorHandler} loggedErrorHandler
 * @param {MakeLoggingConsoleKitOptions=} options
 * @returns {LoggingConsoleKit}
 */

/**
 * @typedef {{
 *   NOTE: 'ERROR_NOTE:',
 *   MESSAGE: 'ERROR_MESSAGE:',
 *   CAUSE: 'cause:',
 *   ERRORS: 'errors:',
 * }} ErrorInfo
 */

/**
 * @typedef {ErrorInfo[keyof ErrorInfo]} ErrorInfoKind
 */

/**
 * @callback MakeCausalConsole
 *
 * Makes a causal console wrapper of a `baseConsole`, where the causal console
 * calls methods of the `loggedErrorHandler` to customize how it handles logged
 * errors.
 *
 * @param {VirtualConsole | undefined} baseConsole
 * @param {LoggedErrorHandler} loggedErrorHandler
 * @returns {VirtualConsole | undefined}
 */
})()
,
// === 10. cache-map ./src/cachemap.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);// @ts-check
/* global globalThis */
/* eslint-disable @endo/no-polymorphic-call */

// eslint-disable-next-line no-restricted-globals
const { Error, TypeError, WeakMap } = globalThis;
// eslint-disable-next-line no-restricted-globals
const { parse, stringify } = JSON;
// eslint-disable-next-line no-restricted-globals
const { isSafeInteger } = Number;
// eslint-disable-next-line no-restricted-globals
const { freeze } = Object;
// eslint-disable-next-line no-restricted-globals
const { toStringTag: toStringTagSymbol } = Symbol;

// eslint-disable-next-line no-restricted-globals
const UNKNOWN_KEY = Symbol('UNKNOWN_KEY');

/**
 * @template T
 * @typedef {T extends object ? { -readonly [K in keyof T]: T[K] } : never} WritableDeep
 *   Intentionally limited to local needs; refer to
 *   https://github.com/sindresorhus/type-fest if insufficient.
 */

/**
 * @template T
 * @param {T} value
 * @param {<U,>(name: string, value: U) => U} [reviver]
 * @returns {WritableDeep<T>}
 */
const deepCopyJsonable = (value, reviver) => {
  const encoded = stringify(value);
  const decoded = parse(encoded, reviver);
  return decoded;
};

const freezingReviver = (_name, value) => freeze(value);

/** @type {<T,>(value: T) => T} */
const deepCopyAndFreezeJsonable = value =>
  deepCopyJsonable(value, freezingReviver);

/**
 * A cache of bounded size, implementing the WeakMap interface but holding keys
 * strongly if created with a non-weak `makeMap` option of
 * {@link makeCacheMapKit}.
 *
 * @template K
 * @template V
 * @typedef {Pick<Map<K, V>, Exclude<keyof WeakMap<WeakKey, *>, 'set'>> & {set: (key: K, value: V) => WeakMapAPI<K, V>}} WeakMapAPI
 */

/**
 * @template K
 * @template V
 * @typedef {WeakMapAPI<K, V> & ({clear?: undefined} | Pick<Map<K, V>, 'clear'>)} SingleEntryMap
 */

/**
 * A cell of a doubly-linked ring (circular list) for a cache map.
 * Instances are not frozen, and so should be closely encapsulated.
 *
 * @template K
 * @template V
 * @typedef {object} CacheMapCell
 * @property {number} id for debugging
 * @property {CacheMapCell<K, V>} next
 * @property {CacheMapCell<K, V>} prev
 * @property {SingleEntryMap<K, V>} data
 */

/**
 * @template K
 * @template V
 * @param {CacheMapCell<K, V>} prev
 * @param {number} id
 * @param {SingleEntryMap<K, V>} data
 * @returns {CacheMapCell<K, V>}
 */
const appendNewCell = (prev, id, data) => {
  const next = prev?.next;
  const cell = { id, next, prev, data };
  prev.next = cell;
  next.prev = cell;
  return cell;
};

/**
 * @template K
 * @template V
 * @param {CacheMapCell<K, V>} cell
 * @param {CacheMapCell<K, V>} prev
 * @param {CacheMapCell<K, V>} [next]
 */
const moveCellAfter = (cell, prev, next = prev.next) => {
  if (cell === prev || cell === next) return; // already in position

  // Splice out cell.
  const { prev: oldPrev, next: oldNext } = cell;
  oldPrev.next = oldNext;
  oldNext.prev = oldPrev;

  // Splice in cell after prev.
  cell.prev = prev;
  cell.next = next;
  prev.next = cell;
  next.prev = cell;
};

/**
 * Clear out a cell to prepare it for future use. Its map is preserved when
 * possible, but must instead be replaced if the associated key is not known.
 *
 * @template K
 * @template V
 * @param {CacheMapCell<K, V>} cell
 * @param {K | UNKNOWN_KEY} oldKey
 * @param {() => SingleEntryMap<K, V>} [makeMap] required when the key is unknown
 */
const resetCell = (cell, oldKey, makeMap) => {
  if (oldKey !== UNKNOWN_KEY) {
    cell.data.delete(oldKey);
    return;
  }
  if (cell.data.clear) {
    cell.data.clear();
    return;
  }
  // WeakMap instances must be replaced when the key is unknown.
  if (!makeMap) {
    throw Error('internal: makeMap is required with UNKNOWN_KEY');
  }
  cell.data = makeMap();
};

const zeroMetrics = freeze({
  totalQueryCount: 0,
  totalHitCount: 0
  // TODO?
  // * method-specific counts
  // * liveTouchStats/evictedTouchStats { count, sum, mean, min, max }
  //   * p50/p90/p95/p99 via Ben-Haim/Tom-Tov streaming histograms
});
/** @typedef {typeof zeroMetrics} CacheMapMetrics */

/**
 * @template {MapConstructor | WeakMapConstructor} [C=WeakMapConstructor]
 * @template {Parameters<InstanceType<C>['set']>[0]} [K=Parameters<InstanceType<C>['set']>[0]]
 * @template {unknown} [V=unknown]
 * @typedef {object} CacheMapKit
 * @property {WeakMapAPI<K, V>} cache
 * @property {() => CacheMapMetrics} getMetrics
 */

/**
 * Create a bounded-size cache having WeakMap-compatible
 * `has`/`get`/`set`/`delete` methods, capable of supporting SES (specifically
 * `assert` error notes).
 * Key validity, comparison, and referential strength are controlled by the
 * `makeMap` option, which defaults to `WeakMap` but can be set to any producer
 * of objects with those methods (e.g., using `Map` allows for arbitrary keys
 * which will be strongly held).
 * Cache eviction policy is not currently configurable, but strives for a hit
 * ratio at least as good as
 * [LRU](https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU) (e.g., it
 * might be
 * [CLOCK](https://en.wikipedia.org/wiki/Page_replacement_algorithm#Clock)
 * or [SIEVE](https://sievecache.com/)).
 *
 * @template {MapConstructor | WeakMapConstructor} [C=WeakMapConstructor]
 * @template {Parameters<InstanceType<C>['set']>[0]} [K=Parameters<InstanceType<C>['set']>[0]]
 * @template {unknown} [V=unknown]
 * @param {number} capacity
 * @param {object} [options]
 * @param {C | (() => SingleEntryMap<K, V>)} [options.makeMap]
 * @returns {CacheMapKit<C, K, V>}
 */
       const makeCacheMapKit = (capacity, options = {}) => {
  if (!isSafeInteger(capacity) || capacity < 0) {
    throw TypeError(
      'capacity must be a non-negative safe integer number <= 2**53 - 1',
    );
  }

  /**
   * @template V
   * @type {<V,>() => SingleEntryMap<K, V>}
   */
  const makeMap = (MaybeCtor => {
    try {
      // @ts-expect-error
      MaybeCtor();
      return /** @type {any} */ (MaybeCtor);
    } catch (err) {
      // @ts-expect-error
      const constructNewMap = () => new MaybeCtor();
      return constructNewMap;
    }
  })(options.makeMap ?? WeakMap);
  const tag =
    /** @type {any} */ (makeMap()).clear === undefined
      ? 'WeakCacheMap'
      : 'CacheMap';

  /** @type {WeakMapAPI<K, CacheMapCell<K, V>>} */
  const keyToCell = makeMap();
  // @ts-expect-error this sentinel head is special
  const head = /** @type {CacheMapCell<K, V>} */ ({
    id: 0,
    // next and prev are established below as self-referential.
    next: undefined,
    prev: undefined,
    data: {
      has: () => {
        throw Error('internal: sentinel head cell has no data');
      },
    },
  });
  head.next = head;
  head.prev = head;
  let cellCount = 0;

  const metrics = deepCopyJsonable(zeroMetrics);
  const getMetrics = () => deepCopyAndFreezeJsonable(metrics);

  /**
   * Touching moves a cell to first position so LRU eviction can target the last
   * cell (`head.prev`).
   *
   * @type {(key: K) => (CacheMapCell<K, V> | undefined)}
   */
  const touchKey = key => {
    metrics.totalQueryCount += 1;
    const cell = keyToCell.get(key);
    if (!cell?.data.has(key)) return undefined;

    metrics.totalHitCount += 1;
    moveCellAfter(cell, head);
    return cell;
  };

  /** @type {WeakMapAPI<K, V>['has']} */
  const has = key => {
    const cell = touchKey(key);
    return cell !== undefined;
  };
  freeze(has);

  /** @type {WeakMapAPI<K, V>['get']} */
  const get = key => {
    const cell = touchKey(key);
    return cell?.data.get(key);
  };
  freeze(get);

  /** @type {WeakMapAPI<K, V>['set']} */
  const set = (key, value) => {
    let cell = touchKey(key);
    if (cell) {
      cell.data.set(key, value);
      // eslint-disable-next-line no-use-before-define
      return implementation;
    }

    if (cellCount < capacity) {
      // Add and use a new cell at first position.
      cell = appendNewCell(head, cellCount + 1, makeMap());
      cellCount += 1; // intentionally follows cell creation
      cell.data.set(key, value);
    } else if (capacity > 0) {
      // Reuse the current tail, moving it to first position.
      cell = head.prev;
      resetCell(/** @type {any} */ (cell), UNKNOWN_KEY, makeMap);
      cell.data.set(key, value);
      moveCellAfter(cell, head);
    }

    // Don't establish this entry until prior steps succeed.
    if (cell) keyToCell.set(key, cell);

    // eslint-disable-next-line no-use-before-define
    return implementation;
  };
  freeze(set);

  // "delete" is a keyword.
  const { delete: deleteEntry } = {
    /** @type {WeakMapAPI<K, V>['delete']} */
    delete: key => {
      const cell = keyToCell.get(key);
      if (!cell?.data.has(key)) {
        keyToCell.delete(key);
        return false;
      }
      moveCellAfter(cell, head.prev);
      resetCell(cell, key);
      keyToCell.delete(key);
      return true;
    },
  };
  freeze(deleteEntry);

  const implementation = /** @type {WeakMapAPI<K, V>} */ ({
    has,
    get,
    set,
    delete: deleteEntry,
    // eslint-disable-next-line jsdoc/check-types
    [/** @type {typeof Symbol.toStringTag} */ (toStringTagSymbol)]: tag,
  });
  freeze(implementation);

  const kit = { cache: implementation, getMetrics };
  return freeze(kit);
};$h͏_once.makeCacheMapKit(makeCacheMapKit);
freeze(makeCacheMapKit);
})()
,
// === 11. cache-map ./index.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/cachemap.js", []]]);
})()
,
// === 12. ses ./src/error/note-log-args.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let makeCacheMapKit;$h͏_imports([["@endo/cache-map", [["makeCacheMapKit",[$h͏_a => (makeCacheMapKit = $h͏_a)]]]]]);





/**
 * @import {CacheMapKit} from '@endo/cache-map';
 * @import {LogArgs} from './internal-types.js';
 */

const { freeze } = Object;
const { isSafeInteger } = Number;

const defaultLoggedErrorsBudget = 1000;
const defaultArgsPerErrorBudget = 100;

/**
 * @param {number} [errorsBudget]
 * @param {number} [argsPerErrorBudget]
 */
       const makeNoteLogArgsArrayKit = (
  errorsBudget = defaultLoggedErrorsBudget,
  argsPerErrorBudget = defaultArgsPerErrorBudget,
) => {
  if (!isSafeInteger(argsPerErrorBudget) || argsPerErrorBudget < 1) {
    throw TypeError(
      'argsPerErrorBudget must be a safe positive integer number',
    );
  }

  /**
   * Maps from an error to an array of log args, where each log args is
   * remembered as an annotation on that error. This can be used, for example,
   * to keep track of additional causes of the error. The elements of any
   * log args may include errors which are associated with further annotations.
   * An augmented console, like the causal console of `console.js`, could
   * then retrieve the graph of such annotations.
   *
   * @type {CacheMapKit<WeakMapConstructor, Error, LogArgs[]>}
   */
  const { cache: noteLogArgsArrayMap } = makeCacheMapKit(errorsBudget);

  /**
   * @param {Error} error
   * @param {LogArgs} logArgs
   */
  const addLogArgs = (error, logArgs) => {
    const logArgsArray = noteLogArgsArrayMap.get(error);
    if (logArgsArray !== undefined) {
      if (logArgsArray.length >= argsPerErrorBudget) {
        logArgsArray.shift();
      }
      logArgsArray.push(logArgs);
    } else {
      noteLogArgsArrayMap.set(error, [logArgs]);
    }
  };
  freeze(addLogArgs);

  /**
   * @param {Error} error
   * @returns {LogArgs[] | undefined}
   */
  const takeLogArgsArray = error => {
    const result = noteLogArgsArrayMap.get(error);
    noteLogArgsArrayMap.delete(error);
    return result;
  };
  freeze(takeLogArgsArray);

  return freeze({
    addLogArgs,
    takeLogArgsArray,
  });
};$h͏_once.makeNoteLogArgsArrayKit(makeNoteLogArgsArrayKit);
freeze(makeNoteLogArgsArrayKit);
})()
,
// === 13. ses ./src/error/assert.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,defineProperty,globalThis,is,isError,regexpTest,stringIndexOf,stringReplace,stringSlice,stringStartsWith,weakmapDelete,weakmapGet,weakmapHas,weakmapSet,AggregateError,getOwnPropertyDescriptors,ownKeys,create,objectPrototype,hasOwn,an,bestEffortStringify,makeNoteLogArgsArrayKit;$h͏_imports([["../commons.js", [["RangeError",[$h͏_a => (RangeError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["regexpTest",[$h͏_a => (regexpTest = $h͏_a)]],["stringIndexOf",[$h͏_a => (stringIndexOf = $h͏_a)]],["stringReplace",[$h͏_a => (stringReplace = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]],["stringStartsWith",[$h͏_a => (stringStartsWith = $h͏_a)]],["weakmapDelete",[$h͏_a => (weakmapDelete = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas",[$h͏_a => (weakmapHas = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["AggregateError",[$h͏_a => (AggregateError = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]],["./stringify-utils.js", [["an",[$h͏_a => (an = $h͏_a)]],["bestEffortStringify",[$h͏_a => (bestEffortStringify = $h͏_a)]]]],["./types.js", []],["./internal-types.js", []],["./note-log-args.js", [["makeNoteLogArgsArrayKit",[$h͏_a => (makeNoteLogArgsArrayKit = $h͏_a)]]]]]);















































/**
 * @import {BaseAssert, Assert, AssertionFunctions, AssertionUtilities, StringablePayload, DetailsToken, MakeAssert} from '../../types.js'
 * @import {LogArgs, NoteCallback, LoggedErrorHandler} from "./internal-types.js";
 */

// For our internal debugging purposes, uncomment
// const internalDebugConsole = console;

// /////////////////////////////////////////////////////////////////////////////

/** @type {WeakMap<StringablePayload, any>} */
const declassifiers = new WeakMap();

/** @type {AssertionUtilities['quote']} */
const quote = (payload, spaces = undefined) => {
  const result = freeze({
    toString: freeze(() => bestEffortStringify(payload, spaces)),
  });
  weakmapSet(declassifiers, result, payload);
  return result;
};$h͏_once.quote(quote);
freeze(quote);

const canBeBare = freeze(/^[\w:-]( ?[\w:-])*$/);

/**
 * @type {AssertionUtilities['bare']}
 */
const bare = (payload, spaces = undefined) => {
  if (typeof payload !== 'string' || !regexpTest(canBeBare, payload)) {
    return quote(payload, spaces);
  }
  const result = freeze({
    toString: freeze(() => payload),
  });
  weakmapSet(declassifiers, result, payload);
  return result;
};$h͏_once.bare(bare);
freeze(bare);

// /////////////////////////////////////////////////////////////////////////////

/**
 * @typedef {object} HiddenDetails
 *
 * Captures the arguments passed to the `details` template string tag.
 *
 * @property {TemplateStringsArray | string[]} template
 * @property {any[]} args
 */

/**
 * @type {WeakMap<DetailsToken, HiddenDetails>}
 *
 * Maps from a details token which a `details` template literal returned
 * to a record of the contents of that template literal expression.
 */
const hiddenDetailsMap = new WeakMap();

/**
 * @param {HiddenDetails} hiddenDetails
 * @returns {string}
 */
const getMessageString = ({ template, args }) => {
  const parts = [template[0]];
  for (let i = 0; i < args.length; i += 1) {
    const arg = args[i];
    let argStr;
    if (weakmapHas(declassifiers, arg)) {
      argStr = `${arg}`;
    } else if (isError(arg)) {
      argStr = `(${an(arg.name)})`;
    } else {
      argStr = `(${an(typeof arg)})`;
    }
    arrayPush(parts, argStr, template[i + 1]);
  }
  return arrayJoin(parts, '');
};

/**
 * Give detailsTokens a toString behavior. To minimize the overhead of
 * creating new detailsTokens, we do this with an
 * inherited `this` sensitive `toString` method, even though we normally
 * avoid `this` sensitivity. To protect the method from inappropriate
 * `this` application, it does something interesting only for objects
 * registered in `redactedDetails`, which should be exactly the detailsTokens.
 *
 * The printing behavior must not reveal anything redacted, so we just use
 * the same `getMessageString` we use to construct the redacted message
 * string for a thrown assertion error.
 */
const DetailsTokenProto = freeze({
  toString() {
    const hiddenDetails = weakmapGet(hiddenDetailsMap, this);
    if (hiddenDetails === undefined) {
      return '[Not a DetailsToken]';
    }
    return getMessageString(hiddenDetails);
  },
});
freeze(DetailsTokenProto.toString);

/**
 * Normally this is the function exported as `assert.details` and often
 * spelled `X`. However, if the `{errorTaming: 'unsafe'}` or
 * `{errorTaming: 'unsafe-debug'}` option is
 * given to `lockdown`, then `unredactedDetails` is used instead.
 *
 * There are some unconditional uses of `redactedDetails` in this module. All
 * of them should be uses where the template literal has no redacted
 * substitution values. In those cases, the two are equivalent.
 *
 * @type {AssertionUtilities['details']}
 */
const redactedDetails = (template, ...args) => {
  // Keep in mind that the vast majority of calls to `details` creates
  // a details token that is never used, so this path must remain as fast as
  // possible. Hence we store what we've got with little processing, postponing
  // all the work to happen only if needed, for example, if an assertion fails.
  const detailsToken = freeze({ __proto__: DetailsTokenProto });
  weakmapSet(hiddenDetailsMap, detailsToken, { template, args });
  return /** @type {DetailsToken} */ (/** @type {unknown} */ (detailsToken));
};$h͏_once.redactedDetails(redactedDetails);
freeze(redactedDetails);

/**
 * `unredactedDetails` is like `details` except that it does not redact
 * anything. It acts like `details` would act if all substitution values
 * were wrapped with the `quote` function above (the function normally
 * spelled `q`). If the `{errorTaming: 'unsafe'}`
 * or `{errorTaming: 'unsafe-debug'}` option is given to
 * `lockdown`, then the lockdown-shim arranges for the global `assert` to be
 * one whose `details` property is `unredactedDetails`.
 * This setting optimizes the debugging and testing experience at the price
 * of safety. `unredactedDetails` also sacrifices the speed of `details`,
 * which is usually fine in debugging and testing.
 *
 * @type {AssertionUtilities['details']}
 */
const unredactedDetails = (template, ...args) => {
  args = arrayMap(args, arg =>
    weakmapHas(declassifiers, arg) ? arg : quote(arg),
  );
  return redactedDetails(template, ...args);
};$h͏_once.unredactedDetails(unredactedDetails);
freeze(unredactedDetails);


/**
 * @param {HiddenDetails} hiddenDetails
 * @returns {LogArgs}
 */
const getLogArgs = ({ template, args }) => {
  const logArgs = [template[0]];
  for (let i = 0; i < args.length; i += 1) {
    let arg = args[i];
    if (weakmapHas(declassifiers, arg)) {
      arg = weakmapGet(declassifiers, arg);
    }
    // Remove the extra spaces (since console.error puts them
    // between each cause).
    const priorWithoutSpace = stringReplace(arrayPop(logArgs) || '', / $/, '');
    if (priorWithoutSpace !== '') {
      arrayPush(logArgs, priorWithoutSpace);
    }
    const nextWithoutSpace = stringReplace(template[i + 1], /^ /, '');
    arrayPush(logArgs, arg, nextWithoutSpace);
  }
  if (logArgs[logArgs.length - 1] === '') {
    arrayPop(logArgs);
  }
  return logArgs;
};

/**
 * @type {WeakMap<Error, LogArgs>}
 *
 * Maps from an error object to the log args that are a more informative
 * alternative message for that error. When logging the error, these
 * log args should be preferred to `error.message`.
 */
const hiddenMessageLogArgs = new WeakMap();

// So each error tag will be unique.
let errorTagNum = 0;

/**
 * @type {WeakMap<Error, string>}
 */
const errorTags = new WeakMap();

/**
 * @param {Error} err
 * @param {string=} optErrorName
 * @returns {string}
 */
const tagError = (err, optErrorName = err.name) => {
  let errorTag = weakmapGet(errorTags, err);
  if (errorTag !== undefined) {
    return errorTag;
  }
  errorTagNum += 1;
  errorTag = `${optErrorName}#${errorTagNum}`;
  weakmapSet(errorTags, err, errorTag);
  return errorTag;
};

/**
 * Make reasonable best efforts to make a `Passable` error.
 *   - `sanitizeError` will remove any "extraneous" own properties already added
 *     by the host,
 *     such as `fileName`,`lineNumber` on FireFox or `line` on Safari.
 *   - If any such "extraneous" properties were removed, `sanitizeError` will
 *     annotate
 *     the error with them, so they still appear on the causal console
 *     log output for diagnostic purposes, but not be otherwise visible.
 *   - `sanitizeError` will ensure that any expected properties already
 *     added by the host are data
 *     properties, converting accessor properties to data properties as needed,
 *     such as `stack` on v8 (Chrome, Brave, Edge?)
 *   - `sanitizeError` will freeze the error, preventing any correct engine from
 *     adding or
 *     altering any of the error's own properties `sanitizeError` is done.
 *
 * However, `sanitizeError` will not, for example, `harden`
 * (i.e., deeply freeze)
 * or ensure that the `cause` or `errors` property satisfy the `Passable`
 * constraints. The purpose of `sanitizeError` is only to protect against
 * mischief the host may have already added to the error as created,
 * not to ensure that the error is actually Passable. For that,
 * see `toPassableError` in `@endo/pass-style`.
 *
 * @param {Error} error
 */
       const sanitizeError = error => {
  const descs = getOwnPropertyDescriptors(error);
  const {
    name: _nameDesc,
    message: _messageDesc,
    errors: _errorsDesc = undefined,
    cause: _causeDesc = undefined,
    stack: _stackDesc = undefined,
    ...restDescs
  } = descs;

  const restNames = ownKeys(restDescs);
  if (restNames.length >= 1) {
    for (const name of restNames) {
      delete error[name];
    }
    const droppedNote = create(objectPrototype, restDescs);
    // eslint-disable-next-line no-use-before-define
    note(
      error,
      redactedDetails`originally with properties ${quote(droppedNote)}`,
    );
  }
  for (const name of ownKeys(error)) {
    // @ts-expect-error TS still confused by symbols as property names
    const desc = descs[name];
    if (desc && hasOwn(desc, 'get')) {
      defineProperty(error, name, {
        value: error[name]  // invoke the getter to convert to data property
      });
    }
  }
  freeze(error);
};

/**
 * @type {AssertionUtilities['error']}
 */$h͏_once.sanitizeError(sanitizeError);
const makeError = (
  optDetails = redactedDetails`Assert failed`,
  errConstructor = globalThis.Error,
  {
    errorName = undefined,
    cause = undefined,
    errors = undefined,
    sanitize = true,
  } = {},
) => {
  if (typeof optDetails === 'string') {
    // If it is a string, use it as the literal part of the template so
    // it doesn't get quoted.
    optDetails = redactedDetails([optDetails]);
  }
  const hiddenDetails = weakmapGet(hiddenDetailsMap, optDetails);
  if (hiddenDetails === undefined) {
    throw TypeError(`unrecognized details ${quote(optDetails)}`);
  }
  const messageString = getMessageString(hiddenDetails);
  const opts = cause && { cause };
  let error;
  if (
    typeof AggregateError !== 'undefined' &&
    errConstructor === AggregateError
  ) {
    error = AggregateError(errors || [], messageString, opts);
  } else {
    error = /** @type {ErrorConstructor} */ (errConstructor)(
      messageString,
      opts,
    );
    if (errors !== undefined) {
      // Since we need to tolerate `errors` on an AggregateError, may as
      // well tolerate it on all errors.
      defineProperty(error, 'errors', {
        value: errors,
        writable: true,
        enumerable: false,
        configurable: true,
      });
    }
  }
  weakmapSet(hiddenMessageLogArgs, error, getLogArgs(hiddenDetails));
  if (errorName !== undefined) {
    tagError(error, errorName);
  }
  if (sanitize) {
    sanitizeError(error);
  }
  // The next line is a particularly fruitful place to put a breakpoint.
  return error;
};$h͏_once.makeError(makeError);
freeze(makeError);

// /////////////////////////////////////////////////////////////////////////////

const { addLogArgs, takeLogArgsArray } = makeNoteLogArgsArrayKit();

/**
 * @type {WeakMap<Error, NoteCallback[]>}
 *
 * An augmented console will normally only take the hidden noteArgs array once,
 * when it logs the error being annotated. Once that happens, further
 * annotations of that error should go to the console immediately. We arrange
 * that by accepting a note-callback function from the console as an optional
 * part of that taking operation. Normally there will only be at most one
 * callback per error, but that depends on console behavior which we should not
 * assume. We make this an array of callbacks so multiple registrations
 * are independent.
 */
const hiddenNoteCallbackArrays = new WeakMap();

/** @type {AssertionUtilities['note']} */
const note = (error, detailsNote) => {
  if (typeof detailsNote === 'string') {
    // If it is a string, use it as the literal part of the template so
    // it doesn't get quoted.
    detailsNote = redactedDetails([detailsNote]);
  }
  const hiddenDetails = weakmapGet(hiddenDetailsMap, detailsNote);
  if (hiddenDetails === undefined) {
    throw TypeError(`unrecognized details ${quote(detailsNote)}`);
  }
  const logArgs = getLogArgs(hiddenDetails);
  const callbacks = weakmapGet(hiddenNoteCallbackArrays, error);
  if (callbacks !== undefined) {
    for (const callback of callbacks) {
      callback(error, logArgs);
    }
  } else {
    addLogArgs(error, logArgs);
  }
};$h͏_once.note(note);
freeze(note);

/**
 * The unprivileged form that just uses the de facto `error.stack` property.
 * The start compartment normally has a privileged `globalThis.getStackString`
 * which should be preferred if present.
 *
 * @param {Error} error
 * @returns {string}
 */
const defaultGetStackString = error => {
  if (!('stack' in error)) {
    return '';
  }
  const stackString = `${error.stack}`;
  const pos = stringIndexOf(stackString, '\n');
  if (stringStartsWith(stackString, ' ') || pos === -1) {
    return stackString;
  }
  return stringSlice(stackString, pos + 1); // exclude the initial newline
};

/** @type {LoggedErrorHandler} */
const loggedErrorHandler = {
  getStackString: globalThis.getStackString || defaultGetStackString,
  tagError: error => tagError(error),
  resetErrorTagNum: () => {
    errorTagNum = 0;
  },
  getMessageLogArgs: error => weakmapGet(hiddenMessageLogArgs, error),
  takeMessageLogArgs: error => {
    const result = weakmapGet(hiddenMessageLogArgs, error);
    weakmapDelete(hiddenMessageLogArgs, error);
    return result;
  },
  takeNoteLogArgsArray: (error, callback) => {
    const result = takeLogArgsArray(error);
    if (callback !== undefined) {
      const callbacks = weakmapGet(hiddenNoteCallbackArrays, error);
      if (callbacks) {
        arrayPush(callbacks, callback);
      } else {
        weakmapSet(hiddenNoteCallbackArrays, error, [callback]);
      }
    }
    return result || [];
  },
};$h͏_once.loggedErrorHandler(loggedErrorHandler);
freeze(loggedErrorHandler);


// /////////////////////////////////////////////////////////////////////////////

/**
 * @type {MakeAssert}
 */
const makeAssert = (optRaise = undefined, unredacted = false) => {
  const details = unredacted ? unredactedDetails : redactedDetails;
  const assertFailedDetails = details`Check failed`;

  /** @type {AssertionFunctions['fail']} */
  const fail = (
    optDetails = assertFailedDetails,
    errConstructor = undefined,
    options = undefined,
  ) => {
    const reason = makeError(optDetails, errConstructor, options);
    if (optRaise !== undefined) {
      // @ts-ignore returns `never` doesn't mean it isn't callable
      optRaise(reason);
    }
    throw reason;
  };
  freeze(fail);

  /** @type {AssertionUtilities['Fail']} */
  const Fail = (template, ...args) => fail(details(template, ...args));

  // Don't freeze or export `baseAssert` until we add methods.
  // TODO If I change this from a `function` function to an arrow
  // function, I seem to get type errors from TypeScript. Why?
  /** @type {BaseAssert} */
  function baseAssert(
    flag,
    optDetails = undefined,
    errConstructor = undefined,
    options = undefined,
  ) {
    flag || fail(optDetails, errConstructor, options);
  }

  /** @type {AssertionFunctions['equal']} */
  const equal = (
    actual,
    expected,
    optDetails = undefined,
    errConstructor = undefined,
    options = undefined,
  ) => {
    is(actual, expected) ||
      fail(
        optDetails || details`Expected ${actual} is same as ${expected}`,
        errConstructor || RangeError,
        options,
      );
  };
  freeze(equal);

  /** @type {AssertionFunctions['typeof']} */
  const assertTypeof = (specimen, typename, optDetails) => {
    // This will safely fall through if typename is not a string,
    // which is what we want.
    // eslint-disable-next-line valid-typeof
    if (typeof specimen === typename) {
      return;
    }
    typeof typename === 'string' || Fail`${quote(typename)} must be a string`;

    if (optDetails === undefined) {
      // Embed the type phrase without quotes.
      const typeWithDeterminer = an(typename);
      optDetails = details`${specimen} must be ${bare(typeWithDeterminer)}`;
    }
    fail(optDetails, TypeError);
  };
  freeze(assertTypeof);

  /** @type {AssertionFunctions['string']} */
  const assertString = (specimen, optDetails = undefined) =>
    assertTypeof(specimen, 'string', optDetails);

  // Note that "assert === baseAssert"
  /** @type {Assert} */
  const assert = assign(baseAssert, {
    error: makeError,
    fail,
    equal,
    typeof: assertTypeof,
    string: assertString,
    note,
    details,
    Fail,
    quote,
    bare,
    makeAssert,
  });
  return freeze(assert);
};$h͏_once.makeAssert(makeAssert);
freeze(makeAssert);


/** @type {Assert} */
const assert = makeAssert();$h͏_once.assert(assert);


// Internal, to obviate polymorphic dispatch, but may become rigorously
// consistent with @endo/error:

/** @type {AssertionFunctions['equal']} */
const assertEqual = assert.equal;$h͏_once.assertEqual(assertEqual);
})()
,
// === 14. ses ./src/make-hardener.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Set,String,TypeError,WeakSet,globalThis,apply,arrayForEach,defineProperty,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getPrototypeOf,isInteger,isPrimitive,hasOwn,ownKeys,preventExtensions,setAdd,setForEach,setHas,toStringTagSymbol,typedArrayPrototype,weaksetAdd,weaksetHas,FERAL_STACK_GETTER,FERAL_STACK_SETTER,isError,assert;$h͏_imports([["./commons.js", [["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["isInteger",[$h͏_a => (isInteger = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["preventExtensions",[$h͏_a => (preventExtensions = $h͏_a)]],["setAdd",[$h͏_a => (setAdd = $h͏_a)]],["setForEach",[$h͏_a => (setForEach = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["typedArrayPrototype",[$h͏_a => (typedArrayPrototype = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]],["FERAL_STACK_GETTER",[$h͏_a => (FERAL_STACK_GETTER = $h͏_a)]],["FERAL_STACK_SETTER",[$h͏_a => (FERAL_STACK_SETTER = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);





















































/**
 * @import {Harden} from '../types.js'
 */

// Obtain the string tag accessor of of TypedArray so we can indirectly use the
// TypedArray brand check it employs.
const typedArrayToStringTag = getOwnPropertyDescriptor(
  typedArrayPrototype,
  toStringTagSymbol,
);
assert(typedArrayToStringTag);
const getTypedArrayToStringTag = typedArrayToStringTag.get;
assert(getTypedArrayToStringTag);

// Exported for tests.
/**
 * Duplicates packages/marshal/src/helpers/passStyle-helpers.js to avoid a dependency.
 *
 * @param {unknown} object
 */
       const isTypedArray = object => {
  // The object must pass a brand check or toStringTag will return undefined.
  const tag = apply(getTypedArrayToStringTag, object, []);
  return tag !== undefined;
};

/**
 * Tests if a property key is an integer-valued canonical numeric index.
 * https://tc39.es/ecma262/#sec-canonicalnumericindexstring
 *
 * @param {string | symbol} propertyKey
 */$h͏_once.isTypedArray(isTypedArray);
const isCanonicalIntegerIndexString = propertyKey => {
  const n = +String(propertyKey);
  return isInteger(n) && String(n) === propertyKey;
};

/**
 * @template T
 * @param {ArrayLike<T>} array
 */
const freezeTypedArray = array => {
  preventExtensions(array);

  // Downgrade writable expandos to readonly, even if non-configurable.
  // We get each descriptor individually rather than using
  // getOwnPropertyDescriptors in order to fail safe when encountering
  // an obscure GraalJS issue where getOwnPropertyDescriptor returns
  // undefined for a property that does exist.
  arrayForEach(ownKeys(array), (/** @type {string | symbol} */ name) => {
    const desc = getOwnPropertyDescriptor(array, name);
    assert(desc);
    // TypedArrays are integer-indexed exotic objects, which define special
    // treatment for property names in canonical numeric form:
    // integers in range are permanently writable and non-configurable.
    // https://tc39.es/ecma262/#sec-integer-indexed-exotic-objects
    //
    // This is analogous to the data of a hardened Map or Set,
    // so we carve out this exceptional behavior but make all other
    // properties non-configurable.
    if (!isCanonicalIntegerIndexString(name)) {
      defineProperty(array, name, {
        ...desc,
        writable: false,
        configurable: false,
      });
    }
  });
};

/**
 * Create a `harden` function.
 *
 * @returns {Harden}
 */
       const makeHardener = () => {
  // Use a native hardener if possible.
  if (typeof globalThis.harden === 'function') {
    const safeHarden = globalThis.harden;
    return safeHarden;
  }

  const hardened = new WeakSet();

  const { harden } = {
    /**
     * @template T
     * @param {T} root
     * @returns {T}
     */
    harden(root) {
      const toFreeze = new Set();

      // If val is something we should be freezing but aren't yet,
      // add it to toFreeze.
      /**
       * @param {any} val
       */
      function enqueue(val) {
        if (isPrimitive(val)) {
          // ignore primitives
          return;
        }
        const type = typeof val;
        if (type !== 'object' && type !== 'function') {
          // future proof: break until someone figures out what it should do
          throw TypeError(`Unexpected typeof: ${type}`);
        }
        if (weaksetHas(hardened, val) || setHas(toFreeze, val)) {
          // Ignore if this is an exit, or we've already visited it
          return;
        }
        // console.warn(`adding ${val} to toFreeze`, val);
        setAdd(toFreeze, val);
      }

      /**
       * @param {any} obj
       */
      const baseFreezeAndTraverse = obj => {
        // Now freeze the object to ensure reactive
        // objects such as proxies won't add properties
        // during traversal, before they get frozen.

        // Object are verified before being enqueued,
        // therefore this is a valid candidate.
        // Throws if this fails (strict mode).
        // Also throws if the object is an ArrayBuffer or any TypedArray.
        if (isTypedArray(obj)) {
          freezeTypedArray(obj);
        } else {
          freeze(obj);
        }

        // we rely upon certain commitments of Object.freeze and proxies here

        // get stable/immutable outbound links before a Proxy has a chance to do
        // something sneaky.
        const descs = getOwnPropertyDescriptors(obj);
        const proto = getPrototypeOf(obj);
        enqueue(proto);

        arrayForEach(ownKeys(descs), (/** @type {string | symbol} */ name) => {
          // The 'name' may be a symbol, and TypeScript doesn't like us to
          // index arbitrary symbols on objects, so we pretend they're just
          // strings.
          const desc = descs[/** @type {string} */ (name)];
          // getOwnPropertyDescriptors is guaranteed to return well-formed
          // descriptors, but they still inherit from Object.prototype. If
          // someone has poisoned Object.prototype to add 'value' or 'get'
          // properties, then a simple 'if ("value" in desc)' or 'desc.value'
          // test could be confused. We use hasOwnProperty to be sure about
          // whether 'value' is present or not, which tells us for sure that
          // this is a data property.
          if (hasOwn(desc, 'value')) {
            enqueue(desc.value);
          } else {
            enqueue(desc.get);
            enqueue(desc.set);
          }
        });
      };

      const freezeAndTraverse =
        FERAL_STACK_GETTER === undefined && FERAL_STACK_SETTER === undefined
          ? // On platforms without v8's error own stack accessor problem,
            // don't pay for any extra overhead.
            baseFreezeAndTraverse
          : obj => {
              if (isError(obj)) {
                // Only pay the overhead if it first passes this cheap isError
                // check. Otherwise, it will be unrepaired, but won't be judged
                // to be a passable error anyway, so will not be unsafe.
                const stackDesc = getOwnPropertyDescriptor(obj, 'stack');
                if (
                  stackDesc &&
                  stackDesc.get === FERAL_STACK_GETTER &&
                  stackDesc.configurable
                ) {
                  // Can only repair if it is configurable. Otherwise, leave
                  // unrepaired, in which case it will not be judged passable,
                  // avoiding a safety problem.
                  defineProperty(obj, 'stack', {
                    // NOTE: Calls getter during harden, which seems dangerous.
                    // But we're only calling the problematic getter whose
                    // hazards we think we understand.
                    // @ts-expect-error TS should know FERAL_STACK_GETTER
                    // cannot be `undefined` here.
                    // See https://github.com/endojs/endo/pull/2232#discussion_r1575179471
                    value: apply(FERAL_STACK_GETTER, obj, []),
                  });
                }
              }
              return baseFreezeAndTraverse(obj);
            };

      const dequeue = () => {
        // New values added before forEach() has finished will be visited.
        setForEach(toFreeze, freezeAndTraverse);
      };

      /** @param {any} value */
      const markHardened = value => {
        weaksetAdd(hardened, value);
      };

      const commit = () => {
        setForEach(toFreeze, markHardened);
      };

      enqueue(root);
      dequeue();
      // console.warn("toFreeze set:", toFreeze);
      commit();

      return root;
    },
  };

  return harden;
};$h͏_once.makeHardener(makeHardener);
})()
,
// === 15. ses ./src/cauterize-property.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let hasOwn;$h͏_imports([["./commons.js", [["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]]]);

/**
 * @import {Reporter} from './reporting-types.js'
 */

/**
 * Delete `obj[prop]` or at least make it harmless.
 *
 * If the property was not expected, then emit a reporter-dependent warning
 * to bring attention to this case, so someone can determine what to do with it.
 *
 * If the property to be deleted is a function's `.prototype` property, this
 * will normally be because the function was supposed to be a
 * - builtin method or non-constructor function
 * - arrow function
 * - concise method
 *
 * all of whom are not supposed to have a `.prototype` property. Nevertheless,
 * on some platforms (like older versions of Hermes), or as a result of
 * some shim-based mods to the primordials (like core-js?), some of these
 * functions may accidentally be more like `function` functions with
 * an undeletable `.prototype` property. In these cases, if we can
 * set the value of that bogus `.prototype` property to `undefined`,
 * we do so, issuing a warning, rather than failing to initialize ses.
 *
 * @param {object} obj
 * @param {PropertyKey} prop
 * @param {boolean} known If deletion is expected, don't warn
 * @param {string} subPath Used for warning messages
 * @param {Reporter} reporter Where to issue warning or error.
 * @returns {void}
 */
       const cauterizeProperty = (
  obj,
  prop,
  known,
  subPath,
  { warn, error },
) => {
  // Either the object lacks a permit or the object doesn't match the
  // permit.
  // If the permit is specifically false, not merely undefined,
  // this is a property we expect to see because we know it exists in
  // some environments and we have expressly decided to exclude it.
  // Any other disallowed property is one we have not audited and we log
  // that we are removing it so we know to look into it, as happens when
  // the language evolves new features to existing intrinsics.
  if (!known) {
    warn(`Removing ${subPath}`);
  }
  try {
    delete obj[prop];
  } catch (err) {
    if (hasOwn(obj, prop)) {
      if (typeof obj === 'function' && prop === 'prototype') {
        obj.prototype = undefined;
        if (obj.prototype === undefined) {
          warn(`Tolerating undeletable ${subPath} === undefined`);
          return;
        }
      }
      error(`failed to delete ${subPath}`, err);
    } else {
      error(`deleting ${subPath} threw`, err);
    }
    throw err;
  }
};$h͏_once.cauterizeProperty(cauterizeProperty);
})()
,
// === 16. ses ./src/permits.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let arrayPush,arrayForEach;$h͏_imports([["./commons.js", [["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]]]]]);




/** @import {GenericErrorConstructor} from '../types.js' */

/**
 * Exports {@code permits}, a recursively defined
 * JSON record enumerating all intrinsics and their properties
 * according to ECMA specs.
 *
 * @author JF Paradis
 * @author Mark S. Miller
 *
 * @module
 */

/**
 * constantProperties
 * non-configurable, non-writable data properties of all global objects.
 * Must be powerless.
 * Maps from property name to the actual value
 */
       const constantProperties = {
  // *** Value Properties of the Global Object

  Infinity,
  NaN,
  undefined,
};

/**
 * universalPropertyNames
 * Properties of all global objects.
 * Must be powerless.
 * Maps from property name to the intrinsic name in the permits.
 */$h͏_once.constantProperties(constantProperties);
       const universalPropertyNames = {
  // *** Function Properties of the Global Object

  isFinite: 'isFinite',
  isNaN: 'isNaN',
  parseFloat: 'parseFloat',
  parseInt: 'parseInt',

  decodeURI: 'decodeURI',
  decodeURIComponent: 'decodeURIComponent',
  encodeURI: 'encodeURI',
  encodeURIComponent: 'encodeURIComponent',

  // *** Constructor Properties of the Global Object

  Array: 'Array',
  ArrayBuffer: 'ArrayBuffer',
  BigInt: 'BigInt',
  BigInt64Array: 'BigInt64Array',
  BigUint64Array: 'BigUint64Array',
  Boolean: 'Boolean',
  DataView: 'DataView',
  EvalError: 'EvalError',
  // https://github.com/tc39/proposal-float16array
  Float16Array: 'Float16Array',
  Float32Array: 'Float32Array',
  Float64Array: 'Float64Array',
  Int8Array: 'Int8Array',
  Int16Array: 'Int16Array',
  Int32Array: 'Int32Array',
  Map: 'Map',
  Number: 'Number',
  Object: 'Object',
  Promise: 'Promise',
  Proxy: 'Proxy',
  RangeError: 'RangeError',
  ReferenceError: 'ReferenceError',
  Set: 'Set',
  String: 'String',
  SyntaxError: 'SyntaxError',
  TypeError: 'TypeError',
  Uint8Array: 'Uint8Array',
  Uint8ClampedArray: 'Uint8ClampedArray',
  Uint16Array: 'Uint16Array',
  Uint32Array: 'Uint32Array',
  URIError: 'URIError',
  WeakMap: 'WeakMap',
  WeakSet: 'WeakSet',
  // https://github.com/tc39/proposal-iterator-helpers
  Iterator: 'Iterator',
  // https://github.com/tc39/proposal-async-iterator-helpers
  AsyncIterator: 'AsyncIterator',
  // https://github.com/endojs/endo/issues/550
  AggregateError: 'AggregateError',

  // https://github.com/tc39/proposal-explicit-resource-management
  // TODO DisposableStack, AsyncDisposableStack
  // DisposableStack: 'DisposableStack',
  // AsyncDisposableStack: 'AsyncDisposableStack',

  // https://tc39.es/proposal-shadowrealm/
  // TODO ShadowRealm
  // ShadowRealm: 'ShadowRealm',

  // *** Other Properties of the Global Object

  JSON: 'JSON',
  Reflect: 'Reflect',

  // *** Annex B

  escape: 'escape',
  unescape: 'unescape',

  // ESNext

  // https://github.com/tc39/proposal-source-phase-imports?tab=readme-ov-file#js-module-source
  ModuleSource: 'ModuleSource',

  lockdown: 'lockdown',
  harden: 'harden',

  HandledPromise: 'HandledPromise'  // TODO: Until Promise.delegate (see below).
};

/**
 * initialGlobalPropertyNames
 * Those found only on the initial global, i.e., the global of the
 * start compartment, as well as any compartments created before lockdown.
 * These may provide much of the power provided by the original.
 * Maps from property name to the intrinsic name in the permits.
 */$h͏_once.universalPropertyNames(universalPropertyNames);
       const initialGlobalPropertyNames = {
  // *** Constructor Properties of the Global Object

  Date: '%InitialDate%',
  Error: '%InitialError%',
  RegExp: '%InitialRegExp%',

  // Omit `Symbol`, because we want the original to appear on the
  // start compartment without passing through the permits mechanism, since
  // we want to preserve all its properties, even if we never heard of them.
  // Symbol: '%InitialSymbol%',

  // *** Other Properties of the Global Object

  Math: '%InitialMath%',

  // ESNext

  // From Error-stack proposal
  // Only on initial global. No corresponding
  // powerless form for other globals.
  getStackString: '%InitialGetStackString%'

  // TODO https://github.com/Agoric/SES-shim/issues/551
  // Need initial WeakRef and FinalizationGroup in
  // start compartment only.

  // TODO Temporal
  // https://github.com/tc39/proposal-temporal
  // Temporal: '%InitialTemporal%' // with Temporal.Now
};

/**
 * sharedGlobalPropertyNames
 * Those found only on the globals of new compartments created after lockdown,
 * which must therefore be powerless.
 * Maps from property name to the intrinsic name in the permits.
 */$h͏_once.initialGlobalPropertyNames(initialGlobalPropertyNames);
       const sharedGlobalPropertyNames = {
  // *** Constructor Properties of the Global Object

  Date: '%SharedDate%',
  Error: '%SharedError%',
  RegExp: '%SharedRegExp%',
  Symbol: '%SharedSymbol%',

  // *** Other Properties of the Global Object

  Math: '%SharedMath%'

  // TODO Temporal
  // https://github.com/tc39/proposal-temporal
  // Temporal: '%SharedTemporal%' // without Temporal.Now
};

/**
 * uniqueGlobalPropertyNames
 * Those made separately for each global, including the initial global
 * of the start compartment.
 * Maps from property name to the intrinsic name in the permits
 * (which is currently always the same).
 */$h͏_once.sharedGlobalPropertyNames(sharedGlobalPropertyNames);
       const uniqueGlobalPropertyNames = {
  // *** Value Properties of the Global Object

  globalThis: '%UniqueGlobalThis%',

  // *** Function Properties of the Global Object

  eval: '%UniqueEval%',

  // *** Constructor Properties of the Global Object

  Function: '%UniqueFunction%',

  // *** Other Properties of the Global Object

  // ESNext

  Compartment: '%UniqueCompartment%'
  // According to current agreements, eventually the Realm constructor too.
  // 'Realm',
};

// All the "subclasses" of Error. These are collectively represented in the
// ECMAScript spec by the meta variable NativeError.
/** @type {GenericErrorConstructor[]} */$h͏_once.uniqueGlobalPropertyNames(uniqueGlobalPropertyNames);
const NativeErrors = [
  EvalError,
  RangeError,
  ReferenceError,
  SyntaxError,
  TypeError,
  URIError
  // https://github.com/endojs/endo/issues/550
  // Commented out to accommodate platforms prior to AggregateError.
  // Instead, conditional push below.
  // AggregateError,
];$h͏_once.NativeErrors(NativeErrors);

if (typeof AggregateError !== 'undefined') {
  // Conditional, to accommodate platforms prior to AggregateError
  arrayPush(NativeErrors, AggregateError);
}



/**
 * <p>Each JSON record enumerates the disposition of the properties on
 *    some corresponding intrinsic object.
 *
 * <p>All records are made of key-value pairs where the key
 *    is the property to process, and the value is the associated
 *    dispositions a.k.a. the "permit". Those permits can be:
 * <ul>
 * <li>The boolean value "false", in which case this property is
 *     blacklisted and simply removed. Properties not mentioned
 *     are also considered blacklisted and are removed.
 * <li>A string value equal to a primitive ("number", "string", etc),
 *     in which case the property is permitted if its value property
 *     is typeof the given type. For example, {@code "Infinity"} leads to
 *     "number" and property values that fail {@code typeof "number"}.
 *     are removed.
 * <li>A string value equal to an intinsic name ("ObjectPrototype",
 *     "Array", etc), in which case the property permitted if its
 *     value property is equal to the value of the corresponfing
 *     intrinsics. For example, {@code Map.prototype} leads to
 *     "MapPrototype" and the property is removed if its value is
 *     not equal to %MapPrototype%
 * <li>Another record, in which case this property is simply
 *     permitted and that next record represents the disposition of
 *     the object which is its value. For example, {@code "Object"}
 *     leads to another record explaining what properties {@code
 *     "Object"} may have and how each such property should be treated.
 *
 * <p>Notes:
 * <li>"[[Proto]]" is used to refer to the "[[Prototype]]" internal
 *     slot, which says which object this object inherits from.
 * <li>"--proto--" is used to refer to the "__proto__" property name,
 *     which is the name of an accessor property on Object.prototype.
 *     In practice, it is used to access the [[Proto]] internal slot,
 *     but is distinct from the internal slot itself. We use
 *     "--proto--" rather than "__proto__" below because "__proto__"
 *     in an object literal is special syntax rather than a normal
 *     property definition.
 * <li>"ObjectPrototype" is the default "[[Proto]]" (when not specified).
 * <li>Constants "fn" and "getter" are used to keep the structure DRY.
 * <li>Symbol properties are listed as follow:
 *     <li>Well-known symbols use the "@@name" form.
 *     <li>Registered symbols use the "RegisteredSymbol(key)" form.
 *     <li>Unique symbols use the "UniqueSymbol(description)" form.
 */

// Function Instances
       const FunctionInstance = {
  '[[Proto]]': '%FunctionPrototype%',
  length: 'number',
  name: 'string'
  // Do not specify "prototype" here, since only Function instances that can
  // be used as a constructor have a prototype property. For constructors,
  // since prototype properties are instance-specific, we define it there.
};

// AsyncFunction Instances
$h͏_once.FunctionInstance(FunctionInstance);const AsyncFunctionInstance={
  // This property is not mentioned in ECMA 262, but is present in V8 and
  // necessary for lockdown to succeed.
  '[[Proto]]': '%AsyncFunctionPrototype%',
};

// Aliases
$h͏_once.AsyncFunctionInstance(AsyncFunctionInstance);const fn=FunctionInstance;
const asyncFn = AsyncFunctionInstance;

const getter = {
  get: fn,
  set: 'undefined',
};

// Possible but not encountered in the specs
// export const setter = {
//   get: 'undefined',
//   set: fn,
// };

const accessor = {
  get: fn,
  set: fn,
};

// eslint-disable-next-line func-names
const strict = function () {
  'use strict';
};

// TODO Remove this once we no longer support the Hermes that needed this.
arrayForEach(['caller', 'arguments'], prop => {
  try {
    strict[prop];
  } catch (e) {
    // https://github.com/facebook/hermes/blob/main/test/hermes/function-non-strict.js
    if (e.message === 'Restricted in strict mode') {
      // Fixed in Static Hermes: https://github.com/facebook/hermes/issues/1582
      FunctionInstance[prop] = accessor;
    }
  }
});

       const isAccessorPermit = permit => {
  return permit === getter || permit === accessor;
};

// NativeError Object Structure
$h͏_once.isAccessorPermit(isAccessorPermit);function NativeError(prototype){
  return {
    // Properties of the NativeError Constructors
    '[[Proto]]': '%SharedError%',

    // NativeError.prototype
    prototype,
  };
}

function NativeErrorPrototype(constructor) {
  return {
    // Properties of the NativeError Prototype Objects
    '[[Proto]]': '%ErrorPrototype%',
    constructor,
    message: 'string',
    name: 'string',
    // Redundantly present only on v8. Safe to remove.
    toString: false,
    // Superfluously present in some versions of V8.
    // https://github.com/tc39/notes/blob/master/meetings/2021-10/oct-26.md#:~:text=However%2C%20Chrome%2093,and%20node%2016.11.
    cause: false,
  };
}

// The TypedArray Constructors
function TypedArray(prototype) {
  return {
    // Properties of the TypedArray Constructors
    '[[Proto]]': '%TypedArray%',
    BYTES_PER_ELEMENT: 'number',
    prototype,
  };
}

function TypedArrayPrototype(constructor) {
  return {
    // Properties of the TypedArray Prototype Objects
    '[[Proto]]': '%TypedArrayPrototype%',
    BYTES_PER_ELEMENT: 'number',
    constructor,
  };
}

// Without Math.random
const CommonMath = {
  E: 'number',
  LN10: 'number',
  LN2: 'number',
  LOG10E: 'number',
  LOG2E: 'number',
  PI: 'number',
  SQRT1_2: 'number',
  SQRT2: 'number',
  '@@toStringTag': 'string',
  abs: fn,
  acos: fn,
  acosh: fn,
  asin: fn,
  asinh: fn,
  atan: fn,
  atanh: fn,
  atan2: fn,
  cbrt: fn,
  ceil: fn,
  clz32: fn,
  cos: fn,
  cosh: fn,
  exp: fn,
  expm1: fn,
  floor: fn,
  fround: fn,
  hypot: fn,
  imul: fn,
  log: fn,
  log1p: fn,
  log10: fn,
  log2: fn,
  max: fn,
  min: fn,
  pow: fn,
  round: fn,
  sign: fn,
  sin: fn,
  sinh: fn,
  sqrt: fn,
  tan: fn,
  tanh: fn,
  trunc: fn,
  // https://github.com/tc39/proposal-float16array
  f16round: fn,
  // https://github.com/tc39/proposal-math-sum
  sumPrecise: fn,

  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  idiv: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  idivmod: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  imod: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  imuldiv: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  irem: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  mod: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
  irandom: false,
};

       const permitted = {
  // ECMA https://tc39.es/ecma262

  // The intrinsics object has no prototype to avoid conflicts.
  '[[Proto]]': null,

  // %ThrowTypeError%
  '%ThrowTypeError%': fn,

  // *** The Global Object

  // *** Value Properties of the Global Object
  Infinity: 'number',
  NaN: 'number',
  undefined: 'undefined',

  // *** Function Properties of the Global Object

  // eval
  '%UniqueEval%': fn,
  isFinite: fn,
  isNaN: fn,
  parseFloat: fn,
  parseInt: fn,
  decodeURI: fn,
  decodeURIComponent: fn,
  encodeURI: fn,
  encodeURIComponent: fn,

  // *** Fundamental Objects

  Object: {
    // Properties of the Object Constructor
    '[[Proto]]': '%FunctionPrototype%',
    assign: fn,
    create: fn,
    defineProperties: fn,
    defineProperty: fn,
    entries: fn,
    freeze: fn,
    fromEntries: fn,
    getOwnPropertyDescriptor: fn,
    getOwnPropertyDescriptors: fn,
    getOwnPropertyNames: fn,
    getOwnPropertySymbols: fn,
    getPrototypeOf: fn,
    is: fn,
    isExtensible: fn,
    isFrozen: fn,
    isSealed: fn,
    keys: fn,
    preventExtensions: fn,
    prototype: '%ObjectPrototype%',
    seal: fn,
    setPrototypeOf: fn,
    values: fn,
    // https://github.com/tc39/proposal-accessible-object-hasownproperty
    hasOwn: fn,
    // https://github.com/tc39/proposal-array-grouping
    groupBy: fn,
    // Seen on QuickJS
    __getClass: false,
  },

  '%ObjectPrototype%': {
    // Properties of the Object Prototype Object
    '[[Proto]]': null,
    constructor: 'Object',
    hasOwnProperty: fn,
    isPrototypeOf: fn,
    propertyIsEnumerable: fn,
    toLocaleString: fn,
    toString: fn,
    valueOf: fn,

    // Annex B: Additional Properties of the Object.prototype Object

    // See note in header about the difference between [[Proto]] and --proto--
    // special notations.
    '--proto--': accessor,
    __defineGetter__: fn,
    __defineSetter__: fn,
    __lookupGetter__: fn,
    __lookupSetter__: fn,
  },

  '%UniqueFunction%': {
    // Properties of the Function Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%FunctionPrototype%',
  },

  '%InertFunction%': {
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%FunctionPrototype%',
  },

  '%FunctionPrototype%': {
    apply: fn,
    bind: fn,
    call: fn,
    constructor: '%InertFunction%',
    toString: fn,
    '@@hasInstance': fn,
    // proposed but not yet std. To be removed if there
    caller: false,
    // proposed but not yet std. To be removed if there
    arguments: false,
    // Seen on QuickJS. TODO grab getter for use by console
    fileName: false,
    // Seen on QuickJS. TODO grab getter for use by console
    lineNumber: false,
  },

  Boolean: {
    // Properties of the Boolean Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%BooleanPrototype%',
  },

  '%BooleanPrototype%': {
    constructor: 'Boolean',
    toString: fn,
    valueOf: fn,
  },

  '%SharedSymbol%': {
    // Properties of the Symbol Constructor
    '[[Proto]]': '%FunctionPrototype%',
    asyncIterator: 'symbol',
    for: fn,
    hasInstance: 'symbol',
    isConcatSpreadable: 'symbol',
    iterator: 'symbol',
    keyFor: fn,
    match: 'symbol',
    matchAll: 'symbol',
    prototype: '%SymbolPrototype%',
    replace: 'symbol',
    search: 'symbol',
    species: 'symbol',
    split: 'symbol',
    toPrimitive: 'symbol',
    toStringTag: 'symbol',
    unscopables: 'symbol',
    // https://github.com/tc39/proposal-explicit-resource-management
    asyncDispose: 'symbol',
    // https://github.com/tc39/proposal-explicit-resource-management
    dispose: 'symbol',
    // Seen at core-js https://github.com/zloirock/core-js#ecmascript-symbol
    useSimple: false,
    // Seen at core-js https://github.com/zloirock/core-js#ecmascript-symbol
    useSetter: false,
    // Seen on QuickJS
    operatorSet: false,
  },

  '%SymbolPrototype%': {
    // Properties of the Symbol Prototype Object
    constructor: '%SharedSymbol%',
    description: getter,
    toString: fn,
    valueOf: fn,
    '@@toPrimitive': fn,
    '@@toStringTag': 'string',
  },

  '%InitialError%': {
    // Properties of the Error Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%ErrorPrototype%',
    // Non standard, v8 only, used by tap
    captureStackTrace: fn,
    // Non standard, v8 only, used by tap, tamed to accessor
    stackTraceLimit: accessor,
    // Non standard, v8 only, used by several, tamed to accessor
    prepareStackTrace: accessor,
    // https://github.com/tc39/proposal-is-error
    isError: fn,
  },

  '%SharedError%': {
    // Properties of the Error Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%ErrorPrototype%',
    // Non standard, v8 only, used by tap
    captureStackTrace: fn,
    // Non standard, v8 only, used by tap, tamed to accessor
    stackTraceLimit: accessor,
    // Non standard, v8 only, used by several, tamed to accessor
    prepareStackTrace: accessor,
    // https://github.com/tc39/proposal-is-error
    isError: fn,
  },

  '%ErrorPrototype%': {
    constructor: '%SharedError%',
    message: 'string',
    name: 'string',
    toString: fn,
    // proposed de-facto, assumed TODO
    // Seen on FF Nightly 88.0a1
    at: false,
    // Seen on FF and XS
    stack: accessor,
    // Superfluously present in some versions of V8.
    // https://github.com/tc39/notes/blob/master/meetings/2021-10/oct-26.md#:~:text=However%2C%20Chrome%2093,and%20node%2016.11.
    cause: false,
  },

  // NativeError

  EvalError: NativeError('%EvalErrorPrototype%'),
  RangeError: NativeError('%RangeErrorPrototype%'),
  ReferenceError: NativeError('%ReferenceErrorPrototype%'),
  SyntaxError: NativeError('%SyntaxErrorPrototype%'),
  TypeError: NativeError('%TypeErrorPrototype%'),
  URIError: NativeError('%URIErrorPrototype%'),
  // https://github.com/endojs/endo/issues/550
  AggregateError: NativeError('%AggregateErrorPrototype%'),

  // TODO SuppressedError
  // https://github.com/tc39/proposal-explicit-resource-management
  // SuppressedError: NativeError('%SuppressedErrorPrototype%'),

  '%EvalErrorPrototype%': NativeErrorPrototype('EvalError'),
  '%RangeErrorPrototype%': NativeErrorPrototype('RangeError'),
  '%ReferenceErrorPrototype%': NativeErrorPrototype('ReferenceError'),
  '%SyntaxErrorPrototype%': NativeErrorPrototype('SyntaxError'),
  '%TypeErrorPrototype%': NativeErrorPrototype('TypeError'),
  '%URIErrorPrototype%': NativeErrorPrototype('URIError'),
  // https://github.com/endojs/endo/issues/550
  '%AggregateErrorPrototype%': NativeErrorPrototype('AggregateError'),
  // TODO AggregateError .errors

  // TODO SuppressedError
  // https://github.com/tc39/proposal-explicit-resource-management
  // '%SuppressedErrorPrototype%': NativeErrorPrototype('SuppressedError'),
  // TODO SuppressedError .error
  // TODO SuppressedError .suppressed

  // *** Numbers and Dates

  Number: {
    // Properties of the Number Constructor
    '[[Proto]]': '%FunctionPrototype%',
    EPSILON: 'number',
    isFinite: fn,
    isInteger: fn,
    isNaN: fn,
    isSafeInteger: fn,
    MAX_SAFE_INTEGER: 'number',
    MAX_VALUE: 'number',
    MIN_SAFE_INTEGER: 'number',
    MIN_VALUE: 'number',
    NaN: 'number',
    NEGATIVE_INFINITY: 'number',
    parseFloat: fn,
    parseInt: fn,
    POSITIVE_INFINITY: 'number',
    prototype: '%NumberPrototype%',
  },

  '%NumberPrototype%': {
    // Properties of the Number Prototype Object
    constructor: 'Number',
    toExponential: fn,
    toFixed: fn,
    toLocaleString: fn,
    toPrecision: fn,
    toString: fn,
    valueOf: fn,
  },

  BigInt: {
    // Properties of the BigInt Constructor
    '[[Proto]]': '%FunctionPrototype%',
    asIntN: fn,
    asUintN: fn,
    prototype: '%BigIntPrototype%',
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    bitLength: false,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    fromArrayBuffer: false,
    // Seen on QuickJS
    tdiv: false,
    // Seen on QuickJS
    fdiv: false,
    // Seen on QuickJS
    cdiv: false,
    // Seen on QuickJS
    ediv: false,
    // Seen on QuickJS
    tdivrem: false,
    // Seen on QuickJS
    fdivrem: false,
    // Seen on QuickJS
    cdivrem: false,
    // Seen on QuickJS
    edivrem: false,
    // Seen on QuickJS
    sqrt: false,
    // Seen on QuickJS
    sqrtrem: false,
    // Seen on QuickJS
    floorLog2: false,
    // Seen on QuickJS
    ctz: false,
  },

  '%BigIntPrototype%': {
    constructor: 'BigInt',
    toLocaleString: fn,
    toString: fn,
    valueOf: fn,
    '@@toStringTag': 'string',
  },

  '%InitialMath%': {
    ...CommonMath,
    // `%InitialMath%.random()` has the standard unsafe behavior
    random: fn,
  },

  '%SharedMath%': {
    ...CommonMath,
    // `%SharedMath%.random()` is tamed to always throw
    random: fn,
  },

  '%InitialDate%': {
    // Properties of the Date Constructor
    '[[Proto]]': '%FunctionPrototype%',
    now: fn,
    parse: fn,
    prototype: '%DatePrototype%',
    UTC: fn,
  },

  '%SharedDate%': {
    // Properties of the Date Constructor
    '[[Proto]]': '%FunctionPrototype%',
    // `%SharedDate%.now()` is tamed to always throw
    now: fn,
    parse: fn,
    prototype: '%DatePrototype%',
    UTC: fn,
  },

  '%DatePrototype%': {
    constructor: '%SharedDate%',
    getDate: fn,
    getDay: fn,
    getFullYear: fn,
    getHours: fn,
    getMilliseconds: fn,
    getMinutes: fn,
    getMonth: fn,
    getSeconds: fn,
    getTime: fn,
    getTimezoneOffset: fn,
    getUTCDate: fn,
    getUTCDay: fn,
    getUTCFullYear: fn,
    getUTCHours: fn,
    getUTCMilliseconds: fn,
    getUTCMinutes: fn,
    getUTCMonth: fn,
    getUTCSeconds: fn,
    setDate: fn,
    setFullYear: fn,
    setHours: fn,
    setMilliseconds: fn,
    setMinutes: fn,
    setMonth: fn,
    setSeconds: fn,
    setTime: fn,
    setUTCDate: fn,
    setUTCFullYear: fn,
    setUTCHours: fn,
    setUTCMilliseconds: fn,
    setUTCMinutes: fn,
    setUTCMonth: fn,
    setUTCSeconds: fn,
    toDateString: fn,
    toISOString: fn,
    toJSON: fn,
    toLocaleDateString: fn,
    toLocaleString: fn,
    toLocaleTimeString: fn,
    toString: fn,
    toTimeString: fn,
    toUTCString: fn,
    valueOf: fn,
    '@@toPrimitive': fn,

    // Annex B: Additional Properties of the Date.prototype Object
    getYear: fn,
    setYear: fn,
    toGMTString: fn,
  },

  // Text Processing

  String: {
    // Properties of the String Constructor
    '[[Proto]]': '%FunctionPrototype%',
    fromCharCode: fn,
    fromCodePoint: fn,
    prototype: '%StringPrototype%',
    raw: fn,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    fromArrayBuffer: false,
  },

  '%StringPrototype%': {
    // Properties of the String Prototype Object
    length: 'number',
    charAt: fn,
    charCodeAt: fn,
    codePointAt: fn,
    concat: fn,
    constructor: 'String',
    endsWith: fn,
    includes: fn,
    indexOf: fn,
    lastIndexOf: fn,
    localeCompare: fn,
    match: fn,
    matchAll: fn,
    normalize: fn,
    padEnd: fn,
    padStart: fn,
    repeat: fn,
    replace: fn,
    replaceAll: fn, // ES2021
    search: fn,
    slice: fn,
    split: fn,
    startsWith: fn,
    substring: fn,
    toLocaleLowerCase: fn,
    toLocaleUpperCase: fn,
    toLowerCase: fn,
    toString: fn,
    toUpperCase: fn,
    trim: fn,
    trimEnd: fn,
    trimStart: fn,
    valueOf: fn,
    '@@iterator': fn,
    // Failed tc39 proposal
    // https://github.com/tc39/proposal-relative-indexing-method
    at: fn,
    // https://github.com/tc39/proposal-is-usv-string
    isWellFormed: fn,
    toWellFormed: fn,
    unicodeSets: fn,

    // Annex B: Additional Properties of the String.prototype Object
    substr: fn,
    anchor: fn,
    big: fn,
    blink: fn,
    bold: fn,
    fixed: fn,
    fontcolor: fn,
    fontsize: fn,
    italics: fn,
    link: fn,
    small: fn,
    strike: fn,
    sub: fn,
    sup: fn,
    trimLeft: fn,
    trimRight: fn,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    compare: false,
    // Seen on QuickJS
    __quote: false,
  },

  '%StringIteratorPrototype%': {
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  '%InitialRegExp%': {
    // Properties of the RegExp Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%RegExpPrototype%',
    '@@species': getter,
    // https://github.com/tc39/proposal-regex-escaping
    escape: fn,

    // The https://github.com/tc39/proposal-regexp-legacy-features
    // are all optional, unsafe, and omitted
    input: false,
    $_: false,
    lastMatch: false,
    '$&': false,
    lastParen: false,
    '$+': false,
    leftContext: false,
    '$`': false,
    rightContext: false,
    "$'": false,
    $1: false,
    $2: false,
    $3: false,
    $4: false,
    $5: false,
    $6: false,
    $7: false,
    $8: false,
    $9: false,
  },

  '%SharedRegExp%': {
    // Properties of the RegExp Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%RegExpPrototype%',
    '@@species': getter,
    // https://github.com/tc39/proposal-regex-escaping
    escape: fn,
  },

  '%RegExpPrototype%': {
    // Properties of the RegExp Prototype Object
    constructor: '%SharedRegExp%',
    exec: fn,
    dotAll: getter,
    flags: getter,
    global: getter,
    hasIndices: getter,
    ignoreCase: getter,
    '@@match': fn,
    '@@matchAll': fn,
    multiline: getter,
    '@@replace': fn,
    '@@search': fn,
    source: getter,
    '@@split': fn,
    sticky: getter,
    test: fn,
    toString: fn,
    unicode: getter,
    unicodeSets: getter,

    // Annex B: Additional Properties of the RegExp.prototype Object
    compile: false  // UNSAFE and suppressed.
  },

  '%RegExpStringIteratorPrototype%': {
    // The %RegExpStringIteratorPrototype% Object
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  // Indexed Collections

  Array: {
    // Properties of the Array Constructor
    '[[Proto]]': '%FunctionPrototype%',
    from: fn,
    isArray: fn,
    of: fn,
    prototype: '%ArrayPrototype%',
    '@@species': getter,

    // Failed tc39 proposal
    // https://tc39.es/proposal-relative-indexing-method/
    at: fn,
    // https://tc39.es/proposal-array-from-async/
    fromAsync: fn,
  },

  '%ArrayPrototype%': {
    // Properties of the Array Prototype Object
    length: 'number',
    concat: fn,
    constructor: 'Array',
    copyWithin: fn,
    entries: fn,
    every: fn,
    fill: fn,
    filter: fn,
    find: fn,
    findIndex: fn,
    flat: fn,
    flatMap: fn,
    forEach: fn,
    includes: fn,
    indexOf: fn,
    join: fn,
    keys: fn,
    lastIndexOf: fn,
    map: fn,
    pop: fn,
    push: fn,
    reduce: fn,
    reduceRight: fn,
    reverse: fn,
    shift: fn,
    slice: fn,
    some: fn,
    sort: fn,
    splice: fn,
    toLocaleString: fn,
    toString: fn,
    unshift: fn,
    values: fn,
    '@@iterator': fn,
    '@@unscopables': {
      '[[Proto]]': null,
      copyWithin: 'boolean',
      entries: 'boolean',
      fill: 'boolean',
      find: 'boolean',
      findIndex: 'boolean',
      flat: 'boolean',
      flatMap: 'boolean',
      includes: 'boolean',
      keys: 'boolean',
      values: 'boolean',
      // Failed tc39 proposal
      // https://tc39.es/proposal-relative-indexing-method/
      // Seen on FF Nightly 88.0a1
      at: 'boolean',
      // See https://github.com/tc39/proposal-array-find-from-last
      findLast: 'boolean',
      findLastIndex: 'boolean',
      // https://github.com/tc39/proposal-change-array-by-copy
      toReversed: 'boolean',
      toSorted: 'boolean',
      toSpliced: 'boolean',
      with: 'boolean',
      // https://github.com/tc39/proposal-array-grouping
      group: 'boolean',
      groupToMap: 'boolean',
      groupBy: 'boolean',
    },
    // See https://github.com/tc39/proposal-array-find-from-last
    findLast: fn,
    findLastIndex: fn,
    // https://github.com/tc39/proposal-change-array-by-copy
    toReversed: fn,
    toSorted: fn,
    toSpliced: fn,
    with: fn,
    // https://github.com/tc39/proposal-array-grouping
    group: fn, // Not in proposal? Where?
    groupToMap: fn, // Not in proposal? Where?
    groupBy: fn,
    // Failed tc39 proposal
    // https://tc39.es/proposal-relative-indexing-method/
    at: fn,
  },

  '%ArrayIteratorPrototype%': {
    // The %ArrayIteratorPrototype% Object
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  // *** TypedArray Objects

  '%TypedArray%': {
    // Properties of the %TypedArray% Intrinsic Object
    '[[Proto]]': '%FunctionPrototype%',
    from: fn,
    of: fn,
    prototype: '%TypedArrayPrototype%',
    '@@species': getter,
  },

  '%TypedArrayPrototype%': {
    buffer: getter,
    byteLength: getter,
    byteOffset: getter,
    constructor: '%TypedArray%',
    copyWithin: fn,
    entries: fn,
    every: fn,
    fill: fn,
    filter: fn,
    find: fn,
    findIndex: fn,
    forEach: fn,
    includes: fn,
    indexOf: fn,
    join: fn,
    keys: fn,
    lastIndexOf: fn,
    length: getter,
    map: fn,
    reduce: fn,
    reduceRight: fn,
    reverse: fn,
    set: fn,
    slice: fn,
    some: fn,
    sort: fn,
    subarray: fn,
    toLocaleString: fn,
    toString: fn,
    values: fn,
    '@@iterator': fn,
    '@@toStringTag': getter,
    // Failed tc39 proposal
    // https://tc39.es/proposal-relative-indexing-method/
    at: fn,
    // See https://github.com/tc39/proposal-array-find-from-last
    findLast: fn,
    findLastIndex: fn,
    // https://github.com/tc39/proposal-change-array-by-copy
    toReversed: fn,
    toSorted: fn,
    with: fn,
  },

  // The TypedArray Constructors

  BigInt64Array: TypedArray('%BigInt64ArrayPrototype%'),
  BigUint64Array: TypedArray('%BigUint64ArrayPrototype%'),
  // https://github.com/tc39/proposal-float16array
  Float16Array: TypedArray('%Float16ArrayPrototype%'),
  Float32Array: TypedArray('%Float32ArrayPrototype%'),
  Float64Array: TypedArray('%Float64ArrayPrototype%'),
  Int16Array: TypedArray('%Int16ArrayPrototype%'),
  Int32Array: TypedArray('%Int32ArrayPrototype%'),
  Int8Array: TypedArray('%Int8ArrayPrototype%'),
  Uint16Array: TypedArray('%Uint16ArrayPrototype%'),
  Uint32Array: TypedArray('%Uint32ArrayPrototype%'),
  Uint8ClampedArray: TypedArray('%Uint8ClampedArrayPrototype%'),
  Uint8Array: {
    ...TypedArray('%Uint8ArrayPrototype%'),
    // https://github.com/tc39/proposal-arraybuffer-base64
    fromBase64: fn,
    // https://github.com/tc39/proposal-arraybuffer-base64
    fromHex: fn,
  },

  '%BigInt64ArrayPrototype%': TypedArrayPrototype('BigInt64Array'),
  '%BigUint64ArrayPrototype%': TypedArrayPrototype('BigUint64Array'),
  // https://github.com/tc39/proposal-float16array
  '%Float16ArrayPrototype%': TypedArrayPrototype('Float16Array'),
  '%Float32ArrayPrototype%': TypedArrayPrototype('Float32Array'),
  '%Float64ArrayPrototype%': TypedArrayPrototype('Float64Array'),
  '%Int16ArrayPrototype%': TypedArrayPrototype('Int16Array'),
  '%Int32ArrayPrototype%': TypedArrayPrototype('Int32Array'),
  '%Int8ArrayPrototype%': TypedArrayPrototype('Int8Array'),
  '%Uint16ArrayPrototype%': TypedArrayPrototype('Uint16Array'),
  '%Uint32ArrayPrototype%': TypedArrayPrototype('Uint32Array'),
  '%Uint8ClampedArrayPrototype%': TypedArrayPrototype('Uint8ClampedArray'),
  '%Uint8ArrayPrototype%': {
    ...TypedArrayPrototype('Uint8Array'),
    // https://github.com/tc39/proposal-arraybuffer-base64
    setFromBase64: fn,
    // https://github.com/tc39/proposal-arraybuffer-base64
    setFromHex: fn,
    // https://github.com/tc39/proposal-arraybuffer-base64
    toBase64: fn,
    // https://github.com/tc39/proposal-arraybuffer-base64
    toHex: fn,
  },

  // *** Keyed Collections

  Map: {
    // Properties of the Map Constructor
    '[[Proto]]': '%FunctionPrototype%',
    '@@species': getter,
    prototype: '%MapPrototype%',
    // https://github.com/tc39/proposal-array-grouping
    groupBy: fn,
  },

  '%MapPrototype%': {
    clear: fn,
    constructor: 'Map',
    delete: fn,
    entries: fn,
    forEach: fn,
    get: fn,
    has: fn,
    keys: fn,
    set: fn,
    size: getter,
    values: fn,
    '@@iterator': fn,
    '@@toStringTag': 'string',
  },

  '%MapIteratorPrototype%': {
    // The %MapIteratorPrototype% Object
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  Set: {
    // Properties of the Set Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%SetPrototype%',
    '@@species': getter,
    // Seen on QuickJS
    groupBy: false,
  },

  '%SetPrototype%': {
    add: fn,
    clear: fn,
    constructor: 'Set',
    delete: fn,
    entries: fn,
    forEach: fn,
    has: fn,
    keys: fn,
    size: getter,
    values: fn,
    '@@iterator': fn,
    '@@toStringTag': 'string',
    // See https://github.com/tc39/proposal-set-methods
    intersection: fn,
    // See https://github.com/tc39/proposal-set-methods
    union: fn,
    // See https://github.com/tc39/proposal-set-methods
    difference: fn,
    // See https://github.com/tc39/proposal-set-methods
    symmetricDifference: fn,
    // See https://github.com/tc39/proposal-set-methods
    isSubsetOf: fn,
    // See https://github.com/tc39/proposal-set-methods
    isSupersetOf: fn,
    // See https://github.com/tc39/proposal-set-methods
    isDisjointFrom: fn,
  },

  '%SetIteratorPrototype%': {
    // The %SetIteratorPrototype% Object
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  WeakMap: {
    // Properties of the WeakMap Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%WeakMapPrototype%',
  },

  '%WeakMapPrototype%': {
    constructor: 'WeakMap',
    delete: fn,
    get: fn,
    has: fn,
    set: fn,
    '@@toStringTag': 'string',
  },

  WeakSet: {
    // Properties of the WeakSet Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%WeakSetPrototype%',
  },

  '%WeakSetPrototype%': {
    add: fn,
    constructor: 'WeakSet',
    delete: fn,
    has: fn,
    '@@toStringTag': 'string',
  },

  // *** Structured Data

  ArrayBuffer: {
    // Properties of the ArrayBuffer Constructor
    '[[Proto]]': '%FunctionPrototype%',
    isView: fn,
    prototype: '%ArrayBufferPrototype%',
    '@@species': getter,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    fromString: false,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    fromBigInt: false,
  },

  '%ArrayBufferPrototype%': {
    byteLength: getter,
    constructor: 'ArrayBuffer',
    slice: fn,
    '@@toStringTag': 'string',
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    concat: false,
    // See https://github.com/tc39/proposal-resizablearraybuffer
    transfer: fn,
    resize: fn,
    resizable: getter,
    maxByteLength: getter,
    // https://github.com/tc39/proposal-arraybuffer-transfer
    transferToFixedLength: fn,
    detached: getter,
    // https://github.com/endojs/endo/pull/2309#issuecomment-2155513240
    // to be proposed
    transferToImmutable: fn,
    sliceToImmutable: fn,
    immutable: getter,
  },

  // If this exists, it is purely an artifact of how we currently shim
  // `transferToImmutable`. As natively implemented, there would be no
  // such extra prototype.
  '%ImmutableArrayBufferPrototype%': {
    '[[Proto]]': '%ArrayBufferPrototype%',
    byteLength: getter,
    slice: fn,
    // See https://github.com/endojs/endo/tree/master/packages/immutable-arraybuffer#purposeful-violation
    '@@toStringTag': 'string',
    // See https://github.com/tc39/proposal-resizablearraybuffer
    transfer: fn,
    resize: fn,
    resizable: getter,
    maxByteLength: getter,
    // https://github.com/tc39/proposal-arraybuffer-transfer
    transferToFixedLength: fn,
    detached: getter,
    // https://github.com/endojs/endo/pull/2309#issuecomment-2155513240
    // to be proposed
    transferToImmutable: fn,
    sliceToImmutable: fn,
    immutable: getter,
  },

  // SharedArrayBuffer Objects
  SharedArrayBuffer: false, // UNSAFE and purposely suppressed.
  '%SharedArrayBufferPrototype%': false, // UNSAFE and purposely suppressed.

  DataView: {
    // Properties of the DataView Constructor
    '[[Proto]]': '%FunctionPrototype%',
    BYTES_PER_ELEMENT: 'number', // Non std but undeletable on Safari.
    prototype: '%DataViewPrototype%',
  },

  '%DataViewPrototype%': {
    buffer: getter,
    byteLength: getter,
    byteOffset: getter,
    constructor: 'DataView',
    getBigInt64: fn,
    getBigUint64: fn,
    // https://github.com/tc39/proposal-float16array
    getFloat16: fn,
    getFloat32: fn,
    getFloat64: fn,
    getInt8: fn,
    getInt16: fn,
    getInt32: fn,
    getUint8: fn,
    getUint16: fn,
    getUint32: fn,
    setBigInt64: fn,
    setBigUint64: fn,
    // https://github.com/tc39/proposal-float16array
    setFloat16: fn,
    setFloat32: fn,
    setFloat64: fn,
    setInt8: fn,
    setInt16: fn,
    setInt32: fn,
    setUint8: fn,
    setUint16: fn,
    setUint32: fn,
    '@@toStringTag': 'string',
  },

  // Atomics
  Atomics: false, // UNSAFE and suppressed.

  JSON: {
    parse: fn,
    stringify: fn,
    '@@toStringTag': 'string',
    // https://github.com/tc39/proposal-json-parse-with-source/
    rawJSON: fn,
    isRawJSON: fn,
  },

  // *** Control Abstraction Objects

  // https://github.com/tc39/proposal-iterator-helpers
  Iterator: {
    // Properties of the Iterator Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%IteratorPrototype%',
    from: fn,
    // https://github.com/tc39/proposal-joint-iteration
    zip: fn,
    zipKeyed: fn,
    // https://github.com/tc39/proposal-iterator-sequencing
    concat: fn,
  },

  '%IteratorPrototype%': {
    // The %IteratorPrototype% Object
    '@@iterator': fn,
    // https://github.com/tc39/proposal-iterator-helpers
    constructor: 'Iterator',
    map: fn,
    filter: fn,
    take: fn,
    drop: fn,
    flatMap: fn,
    reduce: fn,
    toArray: fn,
    forEach: fn,
    some: fn,
    every: fn,
    find: fn,
    '@@toStringTag': 'string',
    // https://github.com/tc39/proposal-async-iterator-helpers
    toAsync: fn,
    // https://github.com/tc39/proposal-explicit-resource-management
    // See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
    '@@dispose': false,
  },

  // https://github.com/tc39/proposal-iterator-helpers
  '%WrapForValidIteratorPrototype%': {
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    return: fn,
  },

  // https://github.com/tc39/proposal-iterator-helpers
  '%IteratorHelperPrototype%': {
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    return: fn,
    '@@toStringTag': 'string',
  },

  // https://github.com/tc39/proposal-async-iterator-helpers
  AsyncIterator: {
    // Properties of the Iterator Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%AsyncIteratorPrototype%',
    from: fn,
  },

  '%AsyncIteratorPrototype%': {
    // The %AsyncIteratorPrototype% Object
    '@@asyncIterator': fn,
    // https://github.com/tc39/proposal-async-iterator-helpers
    constructor: 'AsyncIterator',
    map: fn,
    filter: fn,
    take: fn,
    drop: fn,
    flatMap: fn,
    reduce: fn,
    toArray: fn,
    forEach: fn,
    some: fn,
    every: fn,
    find: fn,
    '@@toStringTag': 'string',
    // https://github.com/tc39/proposal-explicit-resource-management
    // See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
    '@@asyncDispose': false,
  },

  // https://github.com/tc39/proposal-async-iterator-helpers
  '%WrapForValidAsyncIteratorPrototype%': {
    '[[Proto]]': '%AsyncIteratorPrototype%',
    next: fn,
    return: fn,
  },

  // https://github.com/tc39/proposal-async-iterator-helpers
  '%AsyncIteratorHelperPrototype%': {
    '[[Proto]]': '%AsyncIteratorPrototype%',
    next: fn,
    return: fn,
    '@@toStringTag': 'string',
  },

  '%InertGeneratorFunction%': {
    // Properties of the GeneratorFunction Constructor
    '[[Proto]]': '%InertFunction%',
    prototype: '%Generator%',
  },

  '%Generator%': {
    // Properties of the GeneratorFunction Prototype Object
    '[[Proto]]': '%FunctionPrototype%',
    constructor: '%InertGeneratorFunction%',
    prototype: '%GeneratorPrototype%',
    '@@toStringTag': 'string',
  },

  '%InertAsyncGeneratorFunction%': {
    // Properties of the AsyncGeneratorFunction Constructor
    '[[Proto]]': '%InertFunction%',
    prototype: '%AsyncGenerator%',
  },

  '%AsyncGenerator%': {
    // Properties of the AsyncGeneratorFunction Prototype Object
    '[[Proto]]': '%FunctionPrototype%',
    constructor: '%InertAsyncGeneratorFunction%',
    prototype: '%AsyncGeneratorPrototype%',
    // length prop added here for React Native jsc-android
    // https://github.com/endojs/endo/issues/660
    // https://github.com/react-native-community/jsc-android-buildscripts/issues/181
    length: 'number',
    '@@toStringTag': 'string',
  },

  '%GeneratorPrototype%': {
    // Properties of the Generator Prototype Object
    '[[Proto]]': '%IteratorPrototype%',
    constructor: '%Generator%',
    next: fn,
    return: fn,
    throw: fn,
    '@@toStringTag': 'string',
  },

  '%AsyncGeneratorPrototype%': {
    // Properties of the AsyncGenerator Prototype Object
    '[[Proto]]': '%AsyncIteratorPrototype%',
    constructor: '%AsyncGenerator%',
    next: fn,
    return: fn,
    throw: fn,
    '@@toStringTag': 'string',
  },

  // TODO: To be replaced with Promise.delegate
  //
  // The HandledPromise global variable shimmed by `@agoric/eventual-send/shim`
  // implements an initial version of the eventual send specification at:
  // https://github.com/tc39/proposal-eventual-send
  //
  // We will likely change this to add a property to Promise called
  // Promise.delegate and put static methods on it, which will necessitate
  // another permits change to update to the current proposed standard.
  HandledPromise: {
    '[[Proto]]': 'Promise',
    applyFunction: fn,
    applyFunctionSendOnly: fn,
    applyMethod: fn,
    applyMethodSendOnly: fn,
    get: fn,
    getSendOnly: fn,
    prototype: '%PromisePrototype%',
    resolve: fn,
  },

  // https://github.com/tc39/proposal-source-phase-imports?tab=readme-ov-file#js-module-source

  ModuleSource: {
    '[[Proto]]': '%AbstractModuleSource%',
    prototype: '%ModuleSourcePrototype%',
  },

  '%ModuleSourcePrototype%': {
    '[[Proto]]': '%AbstractModuleSourcePrototype%',
    constructor: 'ModuleSource',
    '@@toStringTag': 'string',
    // https://github.com/tc39/proposal-compartments
    bindings: getter,
    needsImport: getter,
    needsImportMeta: getter,
    // @endo/module-source provides a legacy interface
    imports: getter,
    exports: getter,
    reexports: getter,
  },

  '%AbstractModuleSource%': {
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%AbstractModuleSourcePrototype%',
  },

  '%AbstractModuleSourcePrototype%': {
    constructor: '%AbstractModuleSource%',
  },

  Promise: {
    // Properties of the Promise Constructor
    '[[Proto]]': '%FunctionPrototype%',
    all: fn,
    allSettled: fn,
    // https://github.com/Agoric/SES-shim/issues/550
    any: fn,
    prototype: '%PromisePrototype%',
    race: fn,
    reject: fn,
    resolve: fn,
    // https://github.com/tc39/proposal-promise-with-resolvers
    withResolvers: fn,
    '@@species': getter,
    // https://github.com/tc39/proposal-promise-try
    try: fn,
  },

  '%PromisePrototype%': {
    // Properties of the Promise Prototype Object
    catch: fn,
    constructor: 'Promise',
    finally: fn,
    then: fn,
    '@@toStringTag': 'string',
    // Non-standard, used in node to prevent async_hooks from breaking
    'UniqueSymbol(async_id_symbol)': accessor,
    'UniqueSymbol(trigger_async_id_symbol)': accessor,
    'UniqueSymbol(destroyed)': accessor,
  },

  '%InertAsyncFunction%': {
    // Properties of the AsyncFunction Constructor
    '[[Proto]]': '%InertFunction%',
    prototype: '%AsyncFunctionPrototype%',
  },

  '%AsyncFunctionPrototype%': {
    // Properties of the AsyncFunction Prototype Object
    '[[Proto]]': '%FunctionPrototype%',
    constructor: '%InertAsyncFunction%',
    // length prop added here for React Native jsc-android
    // https://github.com/endojs/endo/issues/660
    // https://github.com/react-native-community/jsc-android-buildscripts/issues/181
    length: 'number',
    '@@toStringTag': 'string',
  },

  // Reflection

  Reflect: {
    // The Reflect Object
    // Not a function object.
    apply: fn,
    construct: fn,
    defineProperty: fn,
    deleteProperty: fn,
    get: fn,
    getOwnPropertyDescriptor: fn,
    getPrototypeOf: fn,
    has: fn,
    isExtensible: fn,
    ownKeys: fn,
    preventExtensions: fn,
    set: fn,
    setPrototypeOf: fn,
    '@@toStringTag': 'string',
  },

  Proxy: {
    // Properties of the Proxy Constructor
    '[[Proto]]': '%FunctionPrototype%',
    revocable: fn,
  },

  // Appendix B

  // Annex B: Additional Properties of the Global Object

  escape: fn,
  unescape: fn,

  // Proposed

  '%UniqueCompartment%': {
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%CompartmentPrototype%',
    toString: fn,
  },

  '%InertCompartment%': {
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%CompartmentPrototype%',
    toString: fn,
  },

  '%CompartmentPrototype%': {
    constructor: '%InertCompartment%',
    evaluate: fn,
    globalThis: getter,
    name: getter,
    import: asyncFn,
    load: asyncFn,
    importNow: fn,
    module: fn,
    '@@toStringTag': 'string',
  },

  lockdown: fn,
  harden: { ...fn, isFake: 'boolean' },

  '%InitialGetStackString%': fn,
};$h͏_once.permitted(permitted);
})()
,
// === 17. ses ./src/intrinsics.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let cauterizeProperty,TypeError,WeakSet,arrayFilter,create,defineProperty,entries,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,is,isPrimitive,hasOwn,values,weaksetHas,constantProperties,sharedGlobalPropertyNames,universalPropertyNames,permitted;$h͏_imports([["./cauterize-property.js", [["cauterizeProperty",[$h͏_a => (cauterizeProperty = $h͏_a)]]]],["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["values",[$h͏_a => (values = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]],["./permits.js", [["constantProperties",[$h͏_a => (constantProperties = $h͏_a)]],["sharedGlobalPropertyNames",[$h͏_a => (sharedGlobalPropertyNames = $h͏_a)]],["universalPropertyNames",[$h͏_a => (universalPropertyNames = $h͏_a)]],["permitted",[$h͏_a => (permitted = $h͏_a)]]]]]);

























/**
 * @import {Reporter} from './reporting-types.js'
 */

const isFunction = obj => typeof obj === 'function';

// Like defineProperty, but throws if it would modify an existing property.
// We use this to ensure that two conflicting attempts to define the same
// property throws, causing SES initialization to fail. Otherwise, a
// conflict between, for example, two of SES's internal permits might
// get masked as one overwrites the other. Accordingly, the thrown error
// complains of a "Conflicting definition".
function initProperty(obj, name, desc) {
  if (hasOwn(obj, name)) {
    const preDesc = getOwnPropertyDescriptor(obj, name);
    if (
      !preDesc ||
      !is(preDesc.value, desc.value) ||
      preDesc.get !== desc.get ||
      preDesc.set !== desc.set ||
      preDesc.writable !== desc.writable ||
      preDesc.enumerable !== desc.enumerable ||
      preDesc.configurable !== desc.configurable
    ) {
      throw TypeError(`Conflicting definitions of ${name}`);
    }
  }
  defineProperty(obj, name, desc);
}

// Like defineProperties, but throws if it would modify an existing property.
// This ensures that the intrinsics added to the intrinsics collector object
// graph do not overlap.
function initProperties(obj, descs) {
  for (const [name, desc] of entries(descs)) {
    initProperty(obj, name, desc);
  }
}

// sampleGlobals creates an intrinsics object, suitable for
// interinsicsCollector.addIntrinsics, from the named properties of a global
// object.
function sampleGlobals(globalObject, newPropertyNames) {
  const newIntrinsics = { __proto__: null };
  for (const [globalName, intrinsicName] of entries(newPropertyNames)) {
    if (hasOwn(globalObject, globalName)) {
      newIntrinsics[intrinsicName] = globalObject[globalName];
    }
  }
  return newIntrinsics;
}

/**
 * @param {Reporter} reporter
 */
       const makeIntrinsicsCollector = reporter => {
  /** @type {Record<any, any>} */
  const intrinsics = create(null);
  let pseudoNatives;

  const addIntrinsics = newIntrinsics => {
    initProperties(intrinsics, getOwnPropertyDescriptors(newIntrinsics));
  };
  freeze(addIntrinsics);

  // For each intrinsic, if it has a `.prototype` property, use the
  // permits to find out the intrinsic name for that prototype and add it
  // to the intrinsics.
  const completePrototypes = () => {
    for (const [name, intrinsic] of entries(intrinsics)) {
      if (isPrimitive(intrinsic)) {
        // eslint-disable-next-line no-continue
        continue;
      }
      if (!hasOwn(intrinsic, 'prototype')) {
        // eslint-disable-next-line no-continue
        continue;
      }
      const permit = permitted[name];
      if (typeof permit !== 'object') {
        throw TypeError(`Expected permit object at permits.${name}`);
      }
      const namePrototype = permit.prototype;
      if (!namePrototype) {
        cauterizeProperty(
          intrinsic,
          'prototype',
          false,
          `${name}.prototype`,
          reporter,
        );
        // eslint-disable-next-line no-continue
        continue;
      }
      if (
        typeof namePrototype !== 'string' ||
        !hasOwn(permitted, namePrototype)
      ) {
        throw TypeError(`Unrecognized ${name}.prototype permits entry`);
      }
      const intrinsicPrototype = intrinsic.prototype;
      if (hasOwn(intrinsics, namePrototype)) {
        if (intrinsics[namePrototype] !== intrinsicPrototype) {
          throw TypeError(`Conflicting bindings of ${namePrototype}`);
        }
        // eslint-disable-next-line no-continue
        continue;
      }
      intrinsics[namePrototype] = intrinsicPrototype;
    }
  };
  freeze(completePrototypes);

  const finalIntrinsics = () => {
    freeze(intrinsics);
    pseudoNatives = new WeakSet(arrayFilter(values(intrinsics), isFunction));
    return intrinsics;
  };
  freeze(finalIntrinsics);

  const isPseudoNative = obj => {
    if (!pseudoNatives) {
      throw TypeError(
        'isPseudoNative can only be called after finalIntrinsics',
      );
    }
    return weaksetHas(pseudoNatives, obj);
  };
  freeze(isPseudoNative);

  const intrinsicsCollector = {
    addIntrinsics,
    completePrototypes,
    finalIntrinsics,
    isPseudoNative,
  };
  freeze(intrinsicsCollector);

  addIntrinsics(constantProperties);
  addIntrinsics(sampleGlobals(globalThis, universalPropertyNames));

  return intrinsicsCollector;
};

/**
 * getGlobalIntrinsics()
 * Doesn't tame, delete, or modify anything. Samples globalObject to create an
 * intrinsics record containing only the permitted global variables, listed
 * by the intrinsic names appropriate for new globals, i.e., the globals of
 * newly constructed compartments.
 *
 * WARNING:
 * If run before lockdown, the returned intrinsics record will carry the
 * *original* unsafe (feral, untamed) bindings of these global variables.
 *
 * @param {object} globalObject
 * @param {Reporter} reporter
 */$h͏_once.makeIntrinsicsCollector(makeIntrinsicsCollector);
       const getGlobalIntrinsics = (globalObject, reporter) => {
  // TODO pass a proper reporter to `makeIntrinsicsCollector`
  const { addIntrinsics, finalIntrinsics } = makeIntrinsicsCollector(reporter);

  addIntrinsics(sampleGlobals(globalObject, sharedGlobalPropertyNames));

  return finalIntrinsics();
};$h͏_once.getGlobalIntrinsics(getGlobalIntrinsics);
})()
,
// === 18. ses ./src/permits-intrinsics.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let permitted,FunctionInstance,isAccessorPermit,Map,String,Symbol,TypeError,arrayFilter,arrayIncludes,arrayMap,entries,getOwnPropertyDescriptor,getPrototypeOf,isPrimitive,mapGet,hasOwn,ownKeys,symbolKeyFor,cauterizeProperty;$h͏_imports([["./permits.js", [["permitted",[$h͏_a => (permitted = $h͏_a)]],["FunctionInstance",[$h͏_a => (FunctionInstance = $h͏_a)]],["isAccessorPermit",[$h͏_a => (isAccessorPermit = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["Symbol",[$h͏_a => (Symbol = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["symbolKeyFor",[$h͏_a => (symbolKeyFor = $h͏_a)]]]],["./cauterize-property.js", [["cauterizeProperty",[$h͏_a => (cauterizeProperty = $h͏_a)]]]]]);
































































/**
 * @import {Reporter} from './reporting-types.js'
 */

/**
 * Removes all non-allowed properties found by recursively and
 * reflectively walking own property chains.
 *
 * @param {object} intrinsics
 * @param {(virtualizedNativeFunction: object) => void} markVirtualizedNativeFunction
 * @param {Reporter} reporter
 */
               function removeUnpermittedIntrinsics(
  intrinsics,
  markVirtualizedNativeFunction,
  reporter,
) {
  // These primitives are allowed for permits.
  const primitives = ['undefined', 'boolean', 'number', 'string', 'symbol'];

  // These symbols are allowed as well-known symbols
  const wellKnownSymbolNames = new Map(
    Symbol
      ? arrayMap(
          arrayFilter(
            entries(permitted['%SharedSymbol%']),
            ([name, permit]) =>
              permit === 'symbol' && typeof Symbol[name] === 'symbol',
          ),
          ([name]) => [Symbol[name], `@@${name}`],
        )
      : [],
  );

  /**
   * asStringPropertyName()
   *
   * @param {string} path
   * @param {string | symbol} prop
   */
  function asStringPropertyName(path, prop) {
    if (typeof prop === 'string') {
      return prop;
    }

    const wellKnownSymbol = mapGet(wellKnownSymbolNames, prop);

    if (typeof prop === 'symbol') {
      if (wellKnownSymbol) {
        return wellKnownSymbol;
      } else {
        const registeredKey = symbolKeyFor(prop);
        if (registeredKey !== undefined) {
          return `RegisteredSymbol(${registeredKey})`;
        } else {
          return `Unique${String(prop)}`;
        }
      }
    }

    throw TypeError(`Unexpected property name type ${path} ${prop}`);
  }

  /*
   * visitPrototype()
   * Validate the object's [[prototype]] against a permit.
   */
  function visitPrototype(path, obj, protoName) {
    if (isPrimitive(obj)) {
      throw TypeError(`Object expected: ${path}, ${String(obj)}, ${protoName}`);
    }
    const proto = getPrototypeOf(obj);

    // Null prototype.
    if (proto === null && protoName === null) {
      return;
    }

    // Assert: protoName, if provided, is a string.
    if (protoName !== undefined && typeof protoName !== 'string') {
      throw TypeError(`Malformed permit ${path}.__proto__`);
    }

    // If permit not specified, default to Object.prototype.
    if (proto === intrinsics[protoName || '%ObjectPrototype%']) {
      return;
    }

    // We can't clean [[Prototype]], therefore abort.
    throw TypeError(
      `Unexpected [[Prototype]] at ${path}.__proto__ (expected ${protoName || '%ObjectPrototype%'})`,
    );
  }

  /*
   * isAllowedPropertyValue()
   * enforce permit for a single property value.
   */
  function isAllowedPropertyValue(path, value, prop, permit) {
    if (typeof permit === 'object') {
      // eslint-disable-next-line no-use-before-define
      visitProperties(path, value, permit);
      // The property is allowed.
      return true;
    }

    if (permit === false) {
      // A boolan 'false' permit specifies the removal of a property.
      // We require a more specific permit instead of allowing 'true'.
      return false;
    }

    if (typeof permit === 'string') {
      // A string permit can have one of two meanings:

      if (prop === 'prototype' || prop === 'constructor') {
        // For prototype and constructor value properties, the permit
        // is the name of an intrinsic.
        // Assumption: prototype and constructor cannot be primitives.
        // Assert: the permit is the name of an intrinsic.
        // Assert: the property value is equal to that intrinsic.

        if (hasOwn(intrinsics, permit)) {
          if (value !== intrinsics[permit]) {
            throw TypeError(`Does not match permit for ${path}`);
          }
          return true;
        }
      } else {
        // For all other properties, the permit is the name of a primitive.
        // Assert: the permit is the name of a primitive.
        // Assert: the property value type is equal to that primitive.

        // eslint-disable-next-line no-lonely-if
        if (arrayIncludes(primitives, permit)) {
          // eslint-disable-next-line valid-typeof
          if (typeof value !== permit) {
            throw TypeError(
              `At ${path} expected ${permit} not ${typeof value}`,
            );
          }
          return true;
        }
      }
    }

    throw TypeError(
      `Unexpected property ${prop} with permit ${permit} at ${path}`,
    );
  }

  /*
   * isAllowedProperty()
   * Check whether a single property is allowed.
   */
  function isAllowedProperty(path, obj, prop, permit) {
    const desc = getOwnPropertyDescriptor(obj, prop);
    if (!desc) {
      throw TypeError(`Property ${prop} not found at ${path}`);
    }

    // Is this a value property?
    if (hasOwn(desc, 'value')) {
      if (isAccessorPermit(permit)) {
        throw TypeError(`Accessor expected at ${path}`);
      }
      return isAllowedPropertyValue(path, desc.value, prop, permit);
    }
    if (!isAccessorPermit(permit)) {
      throw TypeError(`Accessor not expected at ${path}`);
    }
    return (
      isAllowedPropertyValue(`${path}<get>`, desc.get, prop, permit.get) &&
      isAllowedPropertyValue(`${path}<set>`, desc.set, prop, permit.set)
    );
  }

  /*
   * getSubPermit()
   */
  function getSubPermit(obj, permit, prop) {
    const permitProp = prop === '__proto__' ? '--proto--' : prop;
    if (hasOwn(permit, permitProp)) {
      return permit[permitProp];
    }

    if (typeof obj === 'function') {
      if (hasOwn(FunctionInstance, permitProp)) {
        return FunctionInstance[permitProp];
      }
    }

    return undefined;
  }

  /*
   * visitProperties()
   * Visit all properties for a permit.
   */
  function visitProperties(path, obj, permit) {
    if (obj === undefined || obj === null) {
      return;
    }

    const protoName = permit['[[Proto]]'];
    visitPrototype(path, obj, protoName);

    if (typeof obj === 'function') {
      markVirtualizedNativeFunction(obj);
    }

    for (const prop of ownKeys(obj)) {
      const propString = asStringPropertyName(path, prop);
      const subPath = `${path}.${propString}`;
      const subPermit = getSubPermit(obj, permit, propString);

      if (!subPermit || !isAllowedProperty(subPath, obj, prop, subPermit)) {
        cauterizeProperty(obj, prop, subPermit === false, subPath, reporter);
      }
    }
  }

  // Start path with 'intrinsics' to clarify that properties are not
  // removed from the global object by the permitting operation.
  visitProperties('intrinsics', intrinsics, permitted);
}$h͏_once.default(      removeUnpermittedIntrinsics);
})()
,
// === 19. ses ./src/tame-function-constructors.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,SyntaxError,TypeError,defineProperties,getPrototypeOf,setPrototypeOf,freeze,AsyncGeneratorFunctionInstance;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["AsyncGeneratorFunctionInstance",[$h͏_a => (AsyncGeneratorFunctionInstance = $h͏_a)]]]]]);










// This module replaces the original `Function` constructor, and the original
// `%GeneratorFunction%`, `%AsyncFunction%` and `%AsyncGeneratorFunction%`,
// with safe replacements that throw if invoked.
//
// These are all reachable via syntax, so it isn't sufficient to just
// replace global properties with safe versions. Our main goal is to prevent
// access to the `Function` constructor through these starting points.
//
// After modules block is done, the originals must no longer be reachable,
// unless a copy has been made, and functions can only be created by syntax
// (using eval) or by invoking a previously saved reference to the originals.
//
// Typically, this module will not be used directly, but via the
// [lockdown - shim] which handles all necessary repairs and taming in SES.
//
// Relation to ECMA specifications
//
// The taming of constructors really wants to be part of the standard, because
// new constructors may be added in the future, reachable from syntax, and this
// list must be updated to match.
//
// In addition, the standard needs to define four new intrinsics for the safe
// replacement functions. See [./permits-intrinsics.js].
//
// Adapted from SES/Caja
// Copyright (C) 2011 Google Inc.
// https://github.com/google/caja/blob/master/src/com/google/caja/ses/startSES.js
// https://github.com/google/caja/blob/master/src/com/google/caja/ses/repairES5.js

/**
 * tameFunctionConstructors()
 * This block replaces the original Function constructor, and the original
 * %GeneratorFunction% %AsyncFunction% and %AsyncGeneratorFunction%, with
 * safe replacements that throw if invoked.
 */
               function tameFunctionConstructors() {
  try {
    // Verify that the method is not callable.
    // eslint-disable-next-line @endo/no-polymorphic-call
    FERAL_FUNCTION.prototype.constructor('return 1');
  } catch (ignore) {
    // Throws, no need to patch.
    return freeze({});
  }

  const newIntrinsics = {};

  /*
   * The process to repair constructors:
   * 1. Create an instance of the function by evaluating syntax
   * 2. Obtain the prototype from the instance
   * 3. Create a substitute tamed constructor
   * 4. Replace the original constructor with the tamed constructor
   * 5. Replace tamed constructor prototype property with the original one
   * 6. Replace its [[Prototype]] slot with the tamed constructor of Function
   */
  function repairFunction(name, intrinsicName, declaration) {
    let FunctionInstance;
    try {
      // eslint-disable-next-line no-eval, no-restricted-globals
      FunctionInstance = (0, eval)(declaration);
    } catch (e) {
      if (e instanceof SyntaxError) {
        // Prevent failure on platforms where async and/or generators
        // are not supported.
        return;
      }
      // Re-throw
      throw e;
    }
    const FunctionPrototype = getPrototypeOf(FunctionInstance);

    // Prevents the evaluation of source when calling constructor on the
    // prototype of functions.
    // eslint-disable-next-line func-names
    const InertConstructor = function () {
      throw TypeError(
        'Function.prototype.constructor is not a valid constructor.',
      );
    };
    defineProperties(InertConstructor, {
      prototype: { value: FunctionPrototype },
      name: {
        value: name,
        writable: false,
        enumerable: false,
        configurable: true,
      },
    });

    defineProperties(FunctionPrototype, {
      constructor: { value: InertConstructor },
    });

    // Reconstructs the inheritance among the new tamed constructors
    // to mirror the original specified in normal JS.
    if (InertConstructor !== FERAL_FUNCTION.prototype.constructor) {
      setPrototypeOf(InertConstructor, FERAL_FUNCTION.prototype.constructor);
    }

    newIntrinsics[intrinsicName] = InertConstructor;
  }

  // Here, the order of operation is important: Function needs to be repaired
  // first since the other repaired constructors need to inherit from the
  // tamed Function function constructor.

  repairFunction('Function', '%InertFunction%', '(function(){})');
  repairFunction(
    'GeneratorFunction',
    '%InertGeneratorFunction%',
    '(function*(){})',
  );
  repairFunction(
    'AsyncFunction',
    '%InertAsyncFunction%',
    '(async function(){})',
  );

  if (AsyncGeneratorFunctionInstance !== undefined) {
    repairFunction(
      'AsyncGeneratorFunction',
      '%InertAsyncGeneratorFunction%',
      '(async function*(){})',
    );
  }

  return newIntrinsics;
}$h͏_once.default(      tameFunctionConstructors);
})()
,
// === 20. ses ./src/tame-date-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Date,TypeError,apply,construct,defineProperties;$h͏_imports([["./commons.js", [["Date",[$h͏_a => (Date = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]]]]]);









               function tameDateConstructor() {
  const OriginalDate = Date;
  const DatePrototype = OriginalDate.prototype;

  // Use concise methods to obtain named functions without constructors.
  const tamedMethods = {
    /**
     * `%SharedDate%.now()` throw a `TypeError` starting with "secure mode".
     * See https://github.com/endojs/endo/issues/910#issuecomment-1581855420
     */
    now() {
      throw TypeError('secure mode Calling %SharedDate%.now() throws');
    },
  };

  /**
   * Tame the Date constructor.
   * See https://github.com/endojs/endo/issues/910#issuecomment-1581855420
   *
   * Common behavior
   *   * `new Date(x)` coerces x into a number and then returns a Date
   *     for that number of millis since the epoch
   *   * `new Date(NaN)` returns a Date object which stringifies to
   *     'Invalid Date'
   *   * `new Date(undefined)` returns a Date object which stringifies to
   *     'Invalid Date'
   *
   * OriginalDate (normal standard) behavior preserved by
   * `%InitialDate%`.
   *   * `Date(anything)` gives a string with the current time
   *   * `new Date()` returns the current time, as a Date object
   *
   * `%SharedDate%` behavior
   *   * `Date(anything)` throws a TypeError starting with "secure mode"
   *   * `new Date()` throws a TypeError starting with "secure mode"
   *
   * @param {{powers?: string}} [opts]
   */
  const makeDateConstructor = ({ powers = 'none' } = {}) => {
    let ResultDate;
    if (powers === 'original') {
      // eslint-disable-next-line no-shadow
      ResultDate = function Date(...rest) {
        if (new.target === undefined) {
          return apply(OriginalDate, undefined, rest);
        }
        return construct(OriginalDate, rest, new.target);
      };
    } else {
      // eslint-disable-next-line no-shadow
      ResultDate = function Date(...rest) {
        if (new.target === undefined) {
          throw TypeError(
            'secure mode Calling %SharedDate% constructor as a function throws',
          );
        }
        if (rest.length === 0) {
          throw TypeError(
            'secure mode Calling new %SharedDate%() with no arguments throws',
          );
        }
        return construct(OriginalDate, rest, new.target);
      };
    }

    defineProperties(ResultDate, {
      length: { value: 7 },
      prototype: {
        value: DatePrototype,
        writable: false,
        enumerable: false,
        configurable: false,
      },
      parse: {
        value: OriginalDate.parse,
        writable: true,
        enumerable: false,
        configurable: true,
      },
      UTC: {
        value: OriginalDate.UTC,
        writable: true,
        enumerable: false,
        configurable: true,
      },
    });
    return ResultDate;
  };
  const InitialDate = makeDateConstructor({ powers: 'original' });
  const SharedDate = makeDateConstructor({ powers: 'none' });

  defineProperties(InitialDate, {
    now: {
      value: OriginalDate.now,
      writable: true,
      enumerable: false,
      configurable: true,
    },
  });
  defineProperties(SharedDate, {
    now: {
      value: tamedMethods.now,
      writable: true,
      enumerable: false,
      configurable: true,
    },
  });

  defineProperties(DatePrototype, {
    constructor: { value: SharedDate },
  });

  return {
    '%InitialDate%': InitialDate,
    '%SharedDate%': SharedDate,
  };
}$h͏_once.default(      tameDateConstructor);
})()
,
// === 21. ses ./src/tame-math-object.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Math,TypeError,create,getOwnPropertyDescriptors,objectPrototype;$h͏_imports([["./commons.js", [["Math",[$h͏_a => (Math = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]]]]]);







               function tameMathObject() {
  const originalMath = Math;
  const initialMath = originalMath; // to follow the naming pattern

  const { random: _, ...otherDescriptors } =
    getOwnPropertyDescriptors(originalMath);

  // Use concise methods to obtain named functions without constructors.
  const tamedMethods = {
    /**
     * `%SharedMath%.random()` throws a TypeError starting with "secure mode".
     * See https://github.com/endojs/endo/issues/910#issuecomment-1581855420
     */
    random() {
      throw TypeError('secure mode %SharedMath%.random() throws');
    },
  };

  const sharedMath = create(objectPrototype, {
    ...otherDescriptors,
    random: {
      value: tamedMethods.random,
      writable: true,
      enumerable: false,
      configurable: true,
    },
  });

  return {
    '%InitialMath%': initialMath,
    '%SharedMath%': sharedMath,
  };
}$h͏_once.default(      tameMathObject);
})()
,
// === 22. ses ./src/tame-regexp-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,TypeError,construct,defineProperties,getOwnPropertyDescriptor,speciesSymbol;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["speciesSymbol",[$h͏_a => (speciesSymbol = $h͏_a)]]]]]);








               function tameRegExpConstructor(regExpTaming = 'safe') {
  const RegExpPrototype = FERAL_REG_EXP.prototype;

  const makeRegExpConstructor = (_ = {}) => {
    // RegExp has non-writable static properties we need to omit.
    /**
     * @param  {Parameters<typeof FERAL_REG_EXP>} rest
     */
    const ResultRegExp = function RegExp(...rest) {
      if (new.target === undefined) {
        return FERAL_REG_EXP(...rest);
      }
      return construct(FERAL_REG_EXP, rest, new.target);
    };

    defineProperties(ResultRegExp, {
      length: { value: 2 },
      prototype: {
        value: RegExpPrototype,
        writable: false,
        enumerable: false,
        configurable: false,
      },
    });
    // Hermes does not have `Symbol.species`. We should support such platforms.
    if (speciesSymbol) {
      const speciesDesc = getOwnPropertyDescriptor(
        FERAL_REG_EXP,
        speciesSymbol,
      );
      if (!speciesDesc) {
        throw TypeError('no RegExp[Symbol.species] descriptor');
      }
      defineProperties(ResultRegExp, {
        [speciesSymbol]: speciesDesc,
      });
    }
    return ResultRegExp;
  };

  const InitialRegExp = makeRegExpConstructor();
  const SharedRegExp = makeRegExpConstructor();

  if (regExpTaming !== 'unsafe') {
    // @ts-expect-error Deleted properties must be optional
    delete RegExpPrototype.compile;
  }
  defineProperties(RegExpPrototype, {
    constructor: { value: SharedRegExp },
  });

  return {
    '%InitialRegExp%': InitialRegExp,
    '%SharedRegExp%': SharedRegExp,
  };
}$h͏_once.default(      tameRegExpConstructor);
})()
,
// === 23. ses ./src/enablements.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let toStringTagSymbol,iteratorSymbol;$h͏_imports([["./commons.js", [["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["iteratorSymbol",[$h͏_a => (iteratorSymbol = $h͏_a)]]]]]);

/**
 * Exports {@code enablements}, a recursively defined
 * JSON record defining the optimum set of intrinsics properties
 * that need to be "repaired" before hardening is applied on
 * enviromments subject to the override mistake.
 *
 * @author JF Paradis
 * @author Mark S. Miller
 *
 * @module
 */

/**
 * <p>Because "repairing" replaces data properties with accessors, every
 * time a repaired property is accessed, the associated getter is invoked,
 * which degrades the runtime performance of all code executing in the
 * repaired enviromment, compared to the non-repaired case. In order
 * to maintain performance, we only repair the properties of objects
 * for which hardening causes a breakage of their normal intended usage.
 *
 * There are three unwanted cases:
 * <ul>
 * <li>Overriding properties on objects typically used as records,
 *     namely {@code "Object"} and {@code "Array"}. In the case of arrays,
 *     the situation is unintentional, a given program might not be aware
 *     that non-numerical properties are stored on the underlying object
 *     instance, not on the array. When an object is typically used as a
 *     map, we repair all of its prototype properties.
 * <li>Overriding properties on objects that provide defaults on their
 *     prototype and that programs typically set using an assignment, such as
 *     {@code "Error.prototype.message"} and {@code "Function.prototype.name"}
 *     (both default to "").
 * <li>Setting-up a prototype chain, where a constructor is set to extend
 *     another one. This is typically set by assignment, for example
 *     {@code "Child.prototype.constructor = Child"}, instead of invoking
 *     Object.defineProperty();
 *
 * <p>Each JSON record enumerates the disposition of the properties on
 * some corresponding intrinsic object.
 *
 * <p>For each such record, the values associated with its property
 * names can be:
 * <ul>
 * <li>true, in which case this property is simply repaired. The
 *     value associated with that property is not traversed. For
 *     example, {@code "Function.prototype.name"} leads to true,
 *     meaning that the {@code "name"} property of {@code
 *     "Function.prototype"} should be repaired (which is needed
 *     when inheriting from @code{Function} and setting the subclass's
 *     {@code "prototype.name"} property). If the property is
 *     already an accessor property, it is not repaired (because
 *     accessors are not subject to the override mistake).
 * <li>"*", in which case this property is not repaired but the
 *     value associated with that property are traversed and repaired.
 * <li>Another record, in which case this property is not repaired
 *     and that next record represents the disposition of the object
 *     which is its value. For example,{@code "FunctionPrototype"}
 *     leads to another record explaining which properties {@code
 *     Function.prototype} need to be repaired.
 */

/**
 * Minimal enablements when all the code is modern and known not to
 * step into the override mistake, except for the following pervasive
 * cases.
 */
       const minEnablements = {
  '%ObjectPrototype%': {
    toString: true,
  },

  '%FunctionPrototype%': {
    toString: true  // set by "rollup"
  },

  '%ErrorPrototype%': {
    name: true  // set by "precond", "ava", "node-fetch"
  },
  '%IteratorPrototype%': {
    toString: true,
    // https://github.com/tc39/proposal-iterator-helpers
    constructor: true,
    // https://github.com/tc39/proposal-iterator-helpers
    [toStringTagSymbol]: true,
  },
};

/**
 * Moderate enablements are usually good enough for legacy compat.
 */$h͏_once.minEnablements(minEnablements);
       const moderateEnablements = {
  '%ObjectPrototype%': {
    toString: true,
    valueOf: true,
  },

  '%ArrayPrototype%': {
    toString: true,
    push: true, // set by "Google Analytics"
    concat: true, // set by mobx generated code (old TS compiler?)
    [iteratorSymbol]: true  // set by mobx generated code (old TS compiler?)
  },

  // Function.prototype has no 'prototype' property to enable.
  // Function instances have their own 'name' and 'length' properties
  // which are configurable and non-writable. Thus, they are already
  // non-assignable anyway.
  '%FunctionPrototype%': {
    constructor: true, // set by "regenerator-runtime"
    bind: true, // set by "underscore", "express"
    toString: true  // set by "rollup"
  },

  '%ErrorPrototype%': {
    constructor: true, // set by "fast-json-patch", "node-fetch"
    message: true,
    name: true, // set by "precond", "ava", "node-fetch", "node 14"
    toString: true  // set by "bluebird"
  },

  '%TypeErrorPrototype%': {
    constructor: true, // set by "readable-stream"
    message: true, // set by "tape"
    name: true  // set by "readable-stream", "node 14"
  },

  '%SyntaxErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  '%RangeErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  '%URIErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  '%EvalErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  '%ReferenceErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  // https://github.com/endojs/endo/issues/550
  '%AggregateErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"?
  },

  '%PromisePrototype%': {
    constructor: true  // set by "core-js"
  },

  '%TypedArrayPrototype%': '*', // set by https://github.com/feross/buffer

  '%Generator%': {
    constructor: true,
    name: true,
    toString: true,
  },

  '%IteratorPrototype%': {
    toString: true,
    // https://github.com/tc39/proposal-iterator-helpers
    constructor: true,
    // https://github.com/tc39/proposal-iterator-helpers
    [toStringTagSymbol]: true,
  },
};

/**
 * The 'severe' enablement are needed because of issues tracked at
 * https://github.com/endojs/endo/issues/576
 *
 * They are like the `moderate` enablements except for the entries below.
 */$h͏_once.moderateEnablements(moderateEnablements);
       const severeEnablements = {
  ...moderateEnablements,

  /**
   * Rollup (as used at least by vega) and webpack
   * (as used at least by regenerator) both turn exports into assignments
   * to a big `exports` object that inherits directly from
   * `Object.prototype`. Some of the exported names we've seen include
   * `hasOwnProperty`, `constructor`, and `toString`. But the strategy used
   * by rollup and webpack potentionally turns any exported name
   * into an assignment rejected by the override mistake. That's why
   * the `severe` enablements takes the extreme step of enabling
   * everything on `Object.prototype`.
   *
   * In addition, code doing inheritance manually will often override
   * the `constructor` property on the new prototype by assignment. We've
   * seen this several times.
   *
   * The cost of enabling all these is that they create a miserable debugging
   * experience specifically on Node.
   * https://github.com/Agoric/agoric-sdk/issues/2324
   * explains how it confused the Node console.
   *
   * (TODO Reexamine the vscode situation. I think it may have improved
   * since the following paragraph was written.)
   *
   * The vscode debugger's object inspector shows the own data properties of
   * an object, which is typically what you want, but also shows both getter
   * and setter for every accessor property whether inherited or own.
   * With the `'*'` setting here, all the properties inherited from
   * `Object.prototype` are accessors, creating an unusable display as seen
   * at As explained at
   * https://github.com/endojs/endo/blob/master/packages/ses/docs/lockdown.md#overridetaming-options
   * Open the triangles at the bottom of that section.
   */
  '%ObjectPrototype%': '*',

  /**
   * The widely used Buffer defined at https://github.com/feross/buffer
   * on initialization, manually creates the equivalent of a subclass of
   * `TypedArray`, which it then initializes by assignment. These assignments
   * include enough of the `TypeArray` methods that here, the `severe`
   * enablements just enable them all.
   */
  '%TypedArrayPrototype%': '*',

  /**
   * Needed to work with Immer before https://github.com/immerjs/immer/pull/914
   * is accepted.
   */
  '%MapPrototype%': '*',

  /**
   * Needed to work with Immer before https://github.com/immerjs/immer/pull/914
   * is accepted.
   */
  '%SetPrototype%': '*',
};$h͏_once.severeEnablements(severeEnablements);
})()
,
// === 24. ses ./src/enable-property-overrides.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Set,String,TypeError,arrayForEach,defineProperty,getOwnPropertyDescriptor,getOwnPropertyDescriptors,isPrimitive,hasOwn,ownKeys,setHas,minEnablements,moderateEnablements,severeEnablements;$h͏_imports([["./commons.js", [["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]]]],["./enablements.js", [["minEnablements",[$h͏_a => (minEnablements = $h͏_a)]],["moderateEnablements",[$h͏_a => (moderateEnablements = $h͏_a)]],["severeEnablements",[$h͏_a => (severeEnablements = $h͏_a)]]]]]);
























/** @import {Reporter} from './reporting-types.js' */

/**
 * For a special set of properties defined in the `enablement` list,
 * `enablePropertyOverrides` ensures that the effect of freezing does not
 * suppress the ability to override these properties on derived objects by
 * simple assignment.
 *
 * Because of lack of sufficient foresight at the time, ES5 unfortunately
 * specified that a simple assignment to a non-existent property must fail if
 * it would override an non-writable data property of the same name in the
 * shadow of the prototype chain. In retrospect, this was a mistake, the
 * so-called "override mistake". But it is now too late and we must live with
 * the consequences.
 *
 * As a result, simply freezing an object to make it tamper proof has the
 * unfortunate side effect of breaking previously correct code that is
 * considered to have followed JS best practices, if this previous code used
 * assignment to override.
 *
 * For the enabled properties, `enablePropertyOverrides` effectively shims what
 * the assignment behavior would have been in the absence of the override
 * mistake. However, the shim produces an imperfect emulation. It shims the
 * behavior by turning these data properties into accessor properties, where
 * the accessor's getter and setter provide the desired behavior. For
 * non-reflective operations, the illusion is perfect. However, reflective
 * operations like `getOwnPropertyDescriptor` see the descriptor of an accessor
 * property rather than the descriptor of a data property. At the time of this
 * writing, this is the best we know how to do.
 *
 * To the getter of the accessor we add a property named
 * `'originalValue'` whose value is, as it says, the value that the
 * data property had before being converted to an accessor property. We add
 * this extra property to the getter for two reason:
 *
 * The harden algorithm walks the own properties reflectively, i.e., with
 * `getOwnPropertyDescriptor` semantics, rather than `[[Get]]` semantics. When
 * it sees an accessor property, it does not invoke the getter. Rather, it
 * proceeds to walk both the getter and setter as part of its transitive
 * traversal. Without this extra property, `enablePropertyOverrides` would have
 * hidden the original data property value from `harden`, which would be bad.
 * Instead, by exposing that value in an own data property on the getter,
 * `harden` finds and walks it anyway.
 *
 * We enable a form of cooperative emulation, giving reflective code an
 * opportunity to cooperate in upholding the illusion. When such cooperative
 * reflective code sees an accessor property, where the accessor's getter
 * has an `originalValue` property, it knows that the getter is
 * alleging that it is the result of the `enablePropertyOverrides` conversion
 * pattern, so it can decide to cooperatively "pretend" that it sees a data
 * property with that value.
 *
 * @param {Record<string, any>} intrinsics
 * @param {'min' | 'moderate' | 'severe'} overrideTaming
 * @param {Reporter} reporter
 * @param {Iterable<string | symbol>} [overrideDebug]
 */
               function enablePropertyOverrides(
  intrinsics,
  overrideTaming,
  { warn },
  overrideDebug = [],
) {
  const debugProperties = new Set(overrideDebug);
  function enable(path, obj, prop, desc) {
    if ('value' in desc && desc.configurable) {
      const { value } = desc;

      const isDebug = setHas(debugProperties, prop);

      // We use concise method syntax to be `this` sensitive, but still
      // omit a prototype property or [[Construct]] behavior.
      // @ts-expect-error We know there is an accessor descriptor there
      const { get: getter, set: setter } = getOwnPropertyDescriptor(
        {
          get [prop]() {
            return value;
          },
          set [prop](newValue) {
            if (obj === this) {
              throw TypeError(
                `Cannot assign to read only property '${String(
                  prop,
                )}' of '${path}'`,
              );
            }
            if (hasOwn(this, prop)) {
              this[prop] = newValue;
            } else {
              if (isDebug) {
                warn(TypeError(`Override property ${prop}`));
              }
              defineProperty(this, prop, {
                value: newValue,
                writable: true,
                enumerable: true,
                configurable: true,
              });
            }
          },
        },
        prop,
      );

      defineProperty(getter, 'originalValue', {
        value,
        writable: false,
        enumerable: false,
        configurable: false,
      });

      defineProperty(obj, prop, {
        get: getter,
        set: setter,
        enumerable: desc.enumerable,
        configurable: desc.configurable,
      });
    }
  }

  function enableProperty(path, obj, prop) {
    const desc = getOwnPropertyDescriptor(obj, prop);
    if (!desc) {
      return;
    }
    enable(path, obj, prop, desc);
  }

  function enableAllProperties(path, obj) {
    const descs = getOwnPropertyDescriptors(obj);
    if (!descs) {
      return;
    }
    // TypeScript does not allow symbols to be used as indexes because it
    // cannot recokon types of symbolized properties.
    arrayForEach(ownKeys(descs), prop => enable(path, obj, prop, descs[prop]));
  }

  function enableProperties(path, obj, plan) {
    for (const prop of ownKeys(plan)) {
      const desc = getOwnPropertyDescriptor(obj, prop);
      if (!desc || desc.get || desc.set) {
        // No not a value property, nothing to do.
        // eslint-disable-next-line no-continue
        continue;
      }

      // In case `prop` is a symbol, we first coerce it with `String`,
      // purely for diagnostic purposes.
      const subPath = `${path}.${String(prop)}`;
      const subPlan = plan[prop];

      if (subPlan === true) {
        enableProperty(subPath, obj, prop);
      } else if (subPlan === '*') {
        enableAllProperties(subPath, desc.value);
      } else if (!isPrimitive(subPlan)) {
        enableProperties(subPath, desc.value, subPlan);
      } else {
        throw TypeError(`Unexpected override enablement plan ${subPath}`);
      }
    }
  }

  let plan;
  switch (overrideTaming) {
    case 'min': {
      plan = minEnablements;
      break;
    }
    case 'moderate': {
      plan = moderateEnablements;
      break;
    }
    case 'severe': {
      plan = severeEnablements;
      break;
    }
    default: {
      throw TypeError(`unrecognized overrideTaming ${overrideTaming}`);
    }
  }

  // Do the repair.
  enableProperties('root', intrinsics, plan);
}$h͏_once.default(      enablePropertyOverrides);
})()
,
// === 25. ses ./src/tame-locale-methods.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Number,String,TypeError,defineProperty,getOwnPropertyNames,isPrimitive,regexpExec,assert;$h͏_imports([["./commons.js", [["Number",[$h͏_a => (Number = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);










const { Fail, quote: q } = assert;

const localePattern = /^(\w*[a-z])Locale([A-Z]\w*)$/;

// Use concise methods to obtain named functions without constructor
// behavior or `.prototype` property.
const tamedMethods = {
  // See https://tc39.es/ecma262/#sec-string.prototype.localecompare
  localeCompare(arg) {
    if (this === null || this === undefined) {
      throw TypeError(
        'Cannot localeCompare with null or undefined "this" value',
      );
    }
    const s = `${this}`;
    const that = `${arg}`;
    if (s < that) {
      return -1;
    }
    if (s > that) {
      return 1;
    }
    s === that || Fail`expected ${q(s)} and ${q(that)} to compare`;
    return 0;
  },

  toString() {
    return `${this}`;
  },
};

const nonLocaleCompare = tamedMethods.localeCompare;
const numberToString = tamedMethods.toString;

               function tameLocaleMethods(intrinsics, localeTaming = 'safe') {
  if (localeTaming === 'unsafe') {
    return;
  }

  defineProperty(String.prototype, 'localeCompare', {
    value: nonLocaleCompare,
  });

  for (const intrinsicName of getOwnPropertyNames(intrinsics)) {
    const intrinsic = intrinsics[intrinsicName];
    if (!isPrimitive(intrinsic)) {
      for (const methodName of getOwnPropertyNames(intrinsic)) {
        const match = regexpExec(localePattern, methodName);
        if (match) {
          typeof intrinsic[methodName] === 'function' ||
            Fail`expected ${q(methodName)} to be a function`;
          const nonLocaleMethodName = `${match[1]}${match[2]}`;
          const method = intrinsic[nonLocaleMethodName];
          typeof method === 'function' ||
            Fail`function ${q(nonLocaleMethodName)} not found`;
          defineProperty(intrinsic, methodName, { value: method });
        }
      }
    }
  }

  // Numbers are special because toString accepts a radix instead of ignoring
  // all of the arguments that we would otherwise forward.
  defineProperty(Number.prototype, 'toLocaleString', {
    value: numberToString,
  });
}$h͏_once.default(      tameLocaleMethods);
})()
,
// === 26. ses ./src/make-eval-function.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/**
 * makeEvalFunction()
 * A safe version of the native eval function which relies on
 * the safety of `safe-eval` for confinement, unless `no-eval`
 * is specified (then a TypeError is thrown on use).
 *
 * @param {Function} evaluator
 */
       const makeEvalFunction = evaluator => {
  // We use the concise method syntax to create an eval without a
  // [[Construct]] behavior (such that the invocation "new eval()" throws
  // TypeError: eval is not a constructor"), but which still accepts a
  // 'this' binding.
  const newEval = {
    eval(source) {
      if (typeof source !== 'string') {
        // As per the runtime semantic of PerformEval [ECMAScript 18.2.1.1]:
        // If Type(source) is not String, return source.
        // TODO Recent proposals from Mike Samuel may change this non-string
        // rule. Track.
        return source;
      }
      return evaluator(source);
    },
  }.eval;

  return newEval;
};$h͏_once.makeEvalFunction(makeEvalFunction);
})()
,
// === 27. ses ./src/make-function-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,arrayJoin,arrayPop,defineProperties,getPrototypeOf,assert;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);








const { Fail } = assert;

/*
 * makeFunctionConstructor()
 * A safe version of the native Function which relies on
 * the safety of `safe-eval` for confinement, unless `no-eval`
 * is specified (then a TypeError is thrown on use).
 */
       const makeFunctionConstructor = evaluator => {
  // Define an unused parameter to ensure Function.length === 1
  const newFunction = function Function(_body) {
    // Sanitize all parameters at the entry point.
    // eslint-disable-next-line prefer-rest-params
    const bodyText = `${arrayPop(arguments) || ''}`;
    // eslint-disable-next-line prefer-rest-params
    const parameters = `${arrayJoin(arguments, ',')}`;

    // Are parameters and bodyText valid code, or is someone
    // attempting an injection attack? This will throw a SyntaxError if:
    // - parameters doesn't parse as parameters
    // - bodyText doesn't parse as a function body
    // - either contain a call to super() or references a super property.
    //
    // It seems that XS may still be vulnerable to the attack explained at
    // https://github.com/tc39/ecma262/pull/2374#issuecomment-813769710
    // where `new Function('/*', '*/ ) {')` would incorrectly validate.
    // Before we worried about this, we check the parameters and bodyText
    // together in one call
    // ```js
    // new FERAL_FUNCTION(parameters, bodyTest);
    // ```
    // However, this check is vulnerable to that bug. Aside from that case,
    // all engines do seem to validate the parameters, taken by themselves,
    // correctly. And all engines do seem to validate the bodyText, taken
    // by itself correctly. So with the following two checks, SES builds a
    // correct safe `Function` constructor by composing two calls to an
    // original unsafe `Function` constructor that may suffer from this bug
    // but is otherwise correctly validating.
    //
    // eslint-disable-next-line no-new
    new FERAL_FUNCTION(parameters, '');
    // eslint-disable-next-line no-new
    new FERAL_FUNCTION(bodyText);

    // Safe to be combined. Defeat potential trailing comments.
    // TODO: since we create an anonymous function, the 'this' value
    // isn't bound to the global object as per specs, but set as undefined.
    const src = `(function anonymous(${parameters}\n) {\n${bodyText}\n})`;
    return evaluator(src);
  };

  defineProperties(newFunction, {
    // Ensure that any function created in any evaluator in a realm is an
    // instance of Function in any evaluator of the same realm.
    prototype: {
      value: FERAL_FUNCTION.prototype,
      writable: false,
      enumerable: false,
      configurable: false,
    },
  });

  // Assert identity of Function.__proto__ accross all compartments
  getPrototypeOf(FERAL_FUNCTION) === FERAL_FUNCTION.prototype ||
    Fail`Function prototype is the same accross compartments`;
  getPrototypeOf(newFunction) === FERAL_FUNCTION.prototype ||
    Fail`Function constructor prototype is the same across compartments`;

  return newFunction;
};$h͏_once.makeFunctionConstructor(makeFunctionConstructor);
})()
,
// === 28. ses ./src/global-object.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,assign,create,defineProperty,entries,freeze,hasOwn,unscopablesSymbol,makeEvalFunction,makeFunctionConstructor,constantProperties,universalPropertyNames;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["unscopablesSymbol",[$h͏_a => (unscopablesSymbol = $h͏_a)]]]],["./make-eval-function.js", [["makeEvalFunction",[$h͏_a => (makeEvalFunction = $h͏_a)]]]],["./make-function-constructor.js", [["makeFunctionConstructor",[$h͏_a => (makeFunctionConstructor = $h͏_a)]]]],["./permits.js", [["constantProperties",[$h͏_a => (constantProperties = $h͏_a)]],["universalPropertyNames",[$h͏_a => (universalPropertyNames = $h͏_a)]]]]]);













/**
 * The host's ordinary global object is not provided by a `with` block, so
 * assigning to Symbol.unscopables has no effect.
 * Since this shim uses `with` blocks to create a confined lexical scope for
 * guest programs, we cannot emulate the proper behavior.
 * With this shim, assigning Symbol.unscopables causes the given lexical
 * names to fall through to the terminal scope proxy.
 * But, we can install this setter to prevent a program from proceding on
 * this false assumption.
 *
 * @param {object} globalObject
 */
       const setGlobalObjectSymbolUnscopables = globalObject => {
  defineProperty(
    globalObject,
    unscopablesSymbol,
    freeze(
      assign(create(null), {
        set: freeze(() => {
          throw TypeError(
            `Cannot set Symbol.unscopables of a Compartment's globalThis`,
          );
        }),
        enumerable: false,
        configurable: false,
      }),
    ),
  );
};

/**
 * setGlobalObjectConstantProperties()
 * Initializes a new global object using a process similar to ECMA specifications
 * (SetDefaultGlobalBindings). This process is split between this function and
 * `setGlobalObjectMutableProperties`.
 *
 * @param {object} globalObject
 */$h͏_once.setGlobalObjectSymbolUnscopables(setGlobalObjectSymbolUnscopables);
       const setGlobalObjectConstantProperties = globalObject => {
  for (const [name, constant] of entries(constantProperties)) {
    defineProperty(globalObject, name, {
      value: constant,
      writable: false,
      enumerable: false,
      configurable: false,
    });
  }
};

/**
 * setGlobalObjectMutableProperties()
 * Create new global object using a process similar to ECMA specifications
 * (portions of SetRealmGlobalObject and SetDefaultGlobalBindings).
 * `newGlobalPropertyNames` should be either `initialGlobalPropertyNames` or
 * `sharedGlobalPropertyNames`.
 *
 * @param {object} globalObject
 * @param {object} args
 * @param {object} args.intrinsics
 * @param {object} args.newGlobalPropertyNames
 * @param {Function} args.makeCompartmentConstructor
 * @param {(object) => void} args.markVirtualizedNativeFunction
 * @param {Compartment} [args.parentCompartment]
 */$h͏_once.setGlobalObjectConstantProperties(setGlobalObjectConstantProperties);
       const setGlobalObjectMutableProperties = (
  globalObject,
  {
    intrinsics,
    newGlobalPropertyNames,
    makeCompartmentConstructor,
    markVirtualizedNativeFunction,
    parentCompartment,
  },
) => {
  for (const [name, intrinsicName] of entries(universalPropertyNames)) {
    if (hasOwn(intrinsics, intrinsicName)) {
      defineProperty(globalObject, name, {
        value: intrinsics[intrinsicName],
        writable: true,
        enumerable: false,
        configurable: true,
      });
    }
  }

  for (const [name, intrinsicName] of entries(newGlobalPropertyNames)) {
    if (hasOwn(intrinsics, intrinsicName)) {
      defineProperty(globalObject, name, {
        value: intrinsics[intrinsicName],
        writable: true,
        enumerable: false,
        configurable: true,
      });
    }
  }

  const perCompartmentGlobals = {
    globalThis: globalObject,
  };

  perCompartmentGlobals.Compartment = freeze(
    makeCompartmentConstructor(
      makeCompartmentConstructor,
      intrinsics,
      markVirtualizedNativeFunction,
      {
        parentCompartment,
        enforceNew: true,
      },
    ),
  );

  // TODO These should still be tamed according to the permits before
  // being made available.
  for (const [name, value] of entries(perCompartmentGlobals)) {
    defineProperty(globalObject, name, {
      value,
      writable: true,
      enumerable: false,
      configurable: true,
    });
    if (typeof value === 'function') {
      markVirtualizedNativeFunction(value);
    }
  }
};

/**
 * setGlobalObjectEvaluators()
 * Set the eval and the Function evaluator on the global object with given evalTaming policy.
 *
 * @param {object} globalObject
 * @param {Function} evaluator
 * @param {(object) => void} markVirtualizedNativeFunction
 */$h͏_once.setGlobalObjectMutableProperties(setGlobalObjectMutableProperties);
       const setGlobalObjectEvaluators = (
  globalObject,
  evaluator,
  markVirtualizedNativeFunction,
) => {
  {
    const f = freeze(makeEvalFunction(evaluator));
    markVirtualizedNativeFunction(f);
    defineProperty(globalObject, 'eval', {
      value: f,
      writable: true,
      enumerable: false,
      configurable: true,
    });
  }
  {
    const f = freeze(makeFunctionConstructor(evaluator));
    markVirtualizedNativeFunction(f);
    defineProperty(globalObject, 'Function', {
      value: f,
      writable: true,
      enumerable: false,
      configurable: true,
    });
  }
};$h͏_once.setGlobalObjectEvaluators(setGlobalObjectEvaluators);
})()
,
// === 29. ses ./src/strict-scope-terminator.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Proxy,String,TypeError,ReferenceError,create,freeze,getOwnPropertyDescriptors,assert;$h͏_imports([["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);










const { Fail, quote: q } = assert;

/**
 * `freeze` but not `harden` the proxy target so it remains trapping.
 * Thus, it should not be shared outside this module.
 *
 * @see https://github.com/endojs/endo/blob/master/packages/ses/docs/preparing-for-stabilize.md
 */
const objTarget = freeze({ __proto__: null });

/**
 * alwaysThrowHandler
 * This is an object that throws if any property is called. It's used as
 * a proxy handler which throws on any trap called.
 * It's made from a proxy with a get trap that throws. It's safe to
 * create one and share it between all Proxy handlers.
 */
       const alwaysThrowHandler = new Proxy(
  objTarget,
  freeze({
    get(_shadow, prop) {
      Fail`Please report unexpected scope handler trap: ${q(String(prop))}`;
    },
  }),
);

/*
 * scopeProxyHandlerProperties
 * scopeTerminatorHandler manages a strictScopeTerminator Proxy which serves as
 * the final scope boundary that will always return "undefined" in order
 * to prevent access to "start compartment globals".
 */$h͏_once.alwaysThrowHandler(alwaysThrowHandler);
const scopeProxyHandlerProperties = {
  get(_shadow, _prop) {
    return undefined;
  },

  set(_shadow, prop, _value) {
    // We should only hit this if the has() hook returned true matches the v8
    // ReferenceError message "Uncaught ReferenceError: xyz is not defined"
    throw ReferenceError(`${String(prop)} is not defined`);
  },

  has(_shadow, prop) {
    // we must at least return true for all properties on the realm globalThis
    return true;
  },

  // note: this is likely a bug of safari
  // https://bugs.webkit.org/show_bug.cgi?id=195534
  getPrototypeOf(_shadow) {
    return null;
  },

  // See https://github.com/endojs/endo/issues/1510
  // TODO: report as bug to v8 or Chrome, and record issue link here.
  getOwnPropertyDescriptor(_shadow, prop) {
    // Coerce with `String` in case prop is a symbol.
    const quotedProp = q(String(prop));
    // eslint-disable-next-line @endo/no-polymorphic-call
    console.warn(
      `getOwnPropertyDescriptor trap on scopeTerminatorHandler for ${quotedProp}`,
      TypeError().stack,
    );
    return undefined;
  },

  // See https://github.com/endojs/endo/issues/1490
  // TODO Report bug to JSC or Safari
  ownKeys(_shadow) {
    return [];
  },
};

// The scope handler's prototype is a proxy that throws if any trap other
// than get/set/has are run (like getOwnPropertyDescriptors, apply,
// getPrototypeOf).
       const strictScopeTerminatorHandler = freeze(
  create(
    alwaysThrowHandler,
    getOwnPropertyDescriptors(scopeProxyHandlerProperties),
  ),
);$h͏_once.strictScopeTerminatorHandler(strictScopeTerminatorHandler);

       const strictScopeTerminator = new Proxy(
  objTarget,
  strictScopeTerminatorHandler,
);$h͏_once.strictScopeTerminator(strictScopeTerminator);
})()
,
// === 30. ses ./src/sloppy-globals-scope-terminator.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Proxy,create,freeze,getOwnPropertyDescriptors,reflectSet,strictScopeTerminatorHandler,alwaysThrowHandler;$h͏_imports([["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["reflectSet",[$h͏_a => (reflectSet = $h͏_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminatorHandler",[$h͏_a => (strictScopeTerminatorHandler = $h͏_a)]],["alwaysThrowHandler",[$h͏_a => (alwaysThrowHandler = $h͏_a)]]]]]);











/**
 * `freeze` but not `harden` the proxy target so it remains trapping.
 * Thus, it should not be shared outside this module.
 *
 * @see https://github.com/endojs/endo/blob/master/packages/ses/docs/preparing-for-stabilize.md
 */
const objTarget = freeze({ __proto__: null });

/*
 * createSloppyGlobalsScopeTerminator()
 * strictScopeTerminatorHandler manages a scopeTerminator Proxy which serves as
 * the final scope boundary that will always return "undefined" in order
 * to prevent access to "start compartment globals". When "sloppyGlobalsMode"
 * is true, the Proxy will perform sets on the "globalObject".
 */
       const createSloppyGlobalsScopeTerminator = globalObject => {
  const scopeProxyHandlerProperties = {
    // inherit scopeTerminator behavior
    ...strictScopeTerminatorHandler,

    // Redirect set properties to the globalObject.
    set(_shadow, prop, value) {
      return reflectSet(globalObject, prop, value);
    },

    // Always claim to have a potential property in order to be the recipient of a set
    has(_shadow, _prop) {
      return true;
    },
  };

  // The scope handler's prototype is a proxy that throws if any trap other
  // than get/set/has are run (like getOwnPropertyDescriptors, apply,
  // getPrototypeOf).
  const sloppyGlobalsScopeTerminatorHandler = freeze(
    create(
      alwaysThrowHandler,
      getOwnPropertyDescriptors(scopeProxyHandlerProperties),
    ),
  );

  const sloppyGlobalsScopeTerminator = new Proxy(
    objTarget,
    sloppyGlobalsScopeTerminatorHandler,
  );

  return sloppyGlobalsScopeTerminator;
};$h͏_once.createSloppyGlobalsScopeTerminator(createSloppyGlobalsScopeTerminator);
freeze(createSloppyGlobalsScopeTerminator);
})()
,
// === 31. ses ./src/eval-scope.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_EVAL,create,defineProperties,freeze,assert;$h͏_imports([["./commons.js", [["FERAL_EVAL",[$h͏_a => (FERAL_EVAL = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);



const { Fail } = assert;

// We attempt to frustrate stack bumping attacks on the safe evaluator
// (`make-safe-evaluator.js`).
// A stack bumping attack forces an API call to throw a stack overflow
// `RangeError` at an inopportune time.
// The attacker arranges for the stack to be sufficiently deep that the API
// consumes exactly enough stack frames to throw an exception.
//
// For the safe evaluator, an exception thrown between adding and then deleting
// `eval` on `evalScope` could leak the real `eval` to an attacker's lexical
// scope.
// This would be sufficiently disastrous that we guard against it twice.
// First, we delete `eval` from `evalScope` immediately before rendering it to
// the guest program's lexical scope.
//
// If the attacker manages to arrange for `eval` to throw an exception after we
// call `allowNextEvalToBeUnsafe` but before the guest program accesses `eval`,
// it would be able to access `eval` once more in its own code.
// Although they could do no harm with a direct `eval`, they would be able to
// escape to the true global scope with an indirect `eval`.
//
//   prepareStack(depth, () => {
//     (eval)('');
//   });
//   const unsafeEval = (eval);
//   const safeEval = (eval);
//   const realGlobal = unsafeEval('globalThis');
//
// To protect against that case, we also delete `eval` from the `evalScope` in
// a `finally` block surrounding the call to the safe evaluator.
// The only way to reach this case is if `eval` remains on `evalScope` due to
// an attack, so we assume that attack would have have invalided our isolation
// and revoke all future access to the evaluator.
//
// To defeat a stack bumping attack, we must use fewer stack frames to recover
// in that `finally` block than we used in the `try` block.
// We have no reliable guarantees about how many stack frames a block of
// JavaScript will consume.
// Function inlining, tail-call optimization, variations in the size of a stack
// frame, and block scopes may affect the depth of the stack.
// The only number of acceptable stack frames to use in the finally block is
// zero.
// We only use property assignment and deletion in the safe evaluator's
// `finally` block.
// We use `delete evalScope.eval` to withhold the evaluator.
// We assign an envelope object over `evalScopeKit.revoked` to revoke the
// evaluator.
//
// This is why we supply a meaningfully named function for
// `allowNextEvalToBeUnsafe` but do not provide a corresponding
// `revokeAccessToUnsafeEval` or even simply `revoke`.
// These recovery routines are expressed inline in the safe evaluator.

       const makeEvalScopeKit = () => {
  const evalScope = create(null);
  const oneTimeEvalProperties = freeze({
    eval: {
      get() {
        delete evalScope.eval;
        return FERAL_EVAL;
      },
      enumerable: false,
      configurable: true,
    },
  });

  const evalScopeKit = {
    evalScope,
    allowNextEvalToBeUnsafe() {
      const { revoked } = evalScopeKit;
      if (revoked !== null) {
        Fail`a handler did not reset allowNextEvalToBeUnsafe ${revoked.err}`;
      }
      // Allow next reference to eval produce the unsafe FERAL_EVAL.
      // We avoid defineProperty because it consumes an extra stack frame taming
      // its return value.
      defineProperties(evalScope, oneTimeEvalProperties);
    },
    /** @type {null | { err: any }} */
    revoked: null,
  };

  return evalScopeKit;
};$h͏_once.makeEvalScopeKit(makeEvalScopeKit);
})()
,
// === 32. ses ./src/get-source-url.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,regexpExec,stringSlice;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]]]]]);

// Captures a key and value of the form #key=value or @key=value
const sourceMetaEntryRegExp =
  '\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)';
// Captures either a one-line or multi-line comment containing
// one #key=value or @key=value.
// Produces two pairs of capture groups, but the initial two may be undefined.
// On account of the mechanics of regular expressions, scanning from the end
// does not allow us to capture every pair, so getSourceURL must capture and
// trim until there are no matching comments.
const sourceMetaEntriesRegExp = new FERAL_REG_EXP(
  `(?:\\s*//${sourceMetaEntryRegExp}|/\\*${sourceMetaEntryRegExp}\\s*\\*/)\\s*$`,
);

/**
 * @param {string} src
 */
       const getSourceURL = src => {
  let sourceURL = '<unknown>';

  // Our regular expression matches the last one or two comments with key value
  // pairs at the end of the source, avoiding a scan over the entire length of
  // the string, but at the expense of being able to capture all the (key,
  // value) pair meta comments at the end of the source, which may include
  // sourceMapURL in addition to sourceURL.
  // So, we sublimate the comments out of the source until no source or no
  // comments remain.
  while (src.length > 0) {
    const match = regexpExec(sourceMetaEntriesRegExp, src);
    if (match === null) {
      break;
    }
    src = stringSlice(src, 0, src.length - match[0].length);

    // We skip $0 since it contains the entire match.
    // The match contains four capture groups,
    // two (key, value) pairs, the first of which
    // may be undefined.
    // On the off-chance someone put two sourceURL comments in their code with
    // different commenting conventions, the latter has precedence.
    if (match[3] === 'sourceURL') {
      sourceURL = match[4];
    } else if (match[1] === 'sourceURL') {
      sourceURL = match[2];
    }
  }

  return sourceURL;
};$h͏_once.getSourceURL(getSourceURL);
})()
,
// === 33. ses ./src/transforms.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,SyntaxError,stringReplace,stringSearch,stringSlice,stringSplit,freeze,getSourceURL;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["stringReplace",[$h͏_a => (stringReplace = $h͏_a)]],["stringSearch",[$h͏_a => (stringSearch = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]]]],["./get-source-url.js", [["getSourceURL",[$h͏_a => (getSourceURL = $h͏_a)]]]]]);












/**
 * Find the first occurence of the given pattern and return
 * the location as the approximate line number.
 *
 * @param {string} src
 * @param {RegExp} pattern
 * @returns {number}
 */
function getLineNumber(src, pattern) {
  const index = stringSearch(src, pattern);
  if (index < 0) {
    return -1;
  }

  // The importPattern incidentally captures an initial \n in
  // an attempt to reject a . prefix, so we need to offset
  // the line number in that case.
  const adjustment = src[index] === '\n' ? 1 : 0;

  return stringSplit(stringSlice(src, 0, index), '\n').length + adjustment;
}

// /////////////////////////////////////////////////////////////////////////////

const htmlCommentPattern = new FERAL_REG_EXP(`(?:${'<'}!--|--${'>'})`, 'g');

/**
 * Conservatively reject the source text if it may contain text that some
 * JavaScript parsers may treat as an html-like comment. To reject without
 * parsing, `rejectHtmlComments` will also reject some other text as well.
 *
 * https://www.ecma-international.org/ecma-262/9.0/index.html#sec-html-like-comments
 * explains that JavaScript parsers may or may not recognize html
 * comment tokens "<" immediately followed by "!--" and "--"
 * immediately followed by ">" in non-module source text, and treat
 * them as a kind of line comment. Since otherwise both of these can
 * appear in normal JavaScript source code as a sequence of operators,
 * we have the terrifying possibility of the same source code parsing
 * one way on one correct JavaScript implementation, and another way
 * on another.
 *
 * This shim takes the conservative strategy of just rejecting source
 * text that contains these strings anywhere. Note that this very
 * source file is written strangely to avoid mentioning these
 * character strings explicitly.
 *
 * We do not write the regexp in a straightforward way, so that an
 * apparennt html comment does not appear in this file. Thus, we avoid
 * rejection by the overly eager rejectDangerousSources.
 *
 * @param {string} src
 * @returns {string}
 */
       const rejectHtmlComments = src => {
  const lineNumber = getLineNumber(src, htmlCommentPattern);
  if (lineNumber < 0) {
    return src;
  }
  const name = getSourceURL(src);
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_HTML_COMMENT_REJECTED.md
  throw SyntaxError(
    `Possible HTML comment rejected at ${name}:${lineNumber}. (SES_HTML_COMMENT_REJECTED)`,
  );
};

/**
 * An optional transform to place ahead of `rejectHtmlComments` to evade *that*
 * rejection. However, it may change the meaning of the program.
 *
 * This evasion replaces each alleged html comment with the space-separated
 * JavaScript operator sequence that it may mean, assuming that it appears
 * outside of a comment or literal string, in source code where the JS
 * parser makes no special case for html comments (like module source code).
 * In that case, this evasion preserves the meaning of the program, though it
 * does change the souce column numbers on each effected line.
 *
 * If the html comment appeared in a literal (a string literal, regexp literal,
 * or a template literal), then this evasion will change the meaning of the
 * program by changing the text of that literal.
 *
 * If the html comment appeared in a JavaScript comment, then this evasion does
 * not change the meaning of the program because it only changes the contents of
 * those comments.
 *
 * @param {string} src
 * @returns {string}
 */$h͏_once.rejectHtmlComments(rejectHtmlComments);
       const evadeHtmlCommentTest = src => {
  const replaceFn = match => (match[0] === '<' ? '< ! --' : '-- >');
  return stringReplace(src, htmlCommentPattern, replaceFn);
};

// /////////////////////////////////////////////////////////////////////////////
$h͏_once.evadeHtmlCommentTest(evadeHtmlCommentTest);
const importPattern = new FERAL_REG_EXP(
  '(^|[^.]|\\.\\.\\.)\\bimport(\\s*(?:\\(|/[/*]))',
  'g',
);

/**
 * Conservatively reject the source text if it may contain a dynamic
 * import expression. To reject without parsing, `rejectImportExpressions` will
 * also reject some other text as well.
 *
 * The proposed dynamic import expression is the only syntax currently
 * proposed, that can appear in non-module JavaScript code, that
 * enables direct access to the outside world that cannot be
 * suppressed or intercepted without parsing and rewriting. Instead,
 * this shim conservatively rejects any source text that seems to
 * contain such an expression. To do this safely without parsing, we
 * must also reject some valid programs, i.e., those containing
 * apparent import expressions in literal strings or comments.
 *
 * The current conservative rule looks for the identifier "import"
 * followed by either an open paren or something that looks like the
 * beginning of a comment. We assume that we do not need to worry
 * about html comment syntax because that was already rejected by
 * rejectHtmlComments.
 *
 * this \s *must* match all kinds of syntax-defined whitespace. If e.g.
 * U+2028 (LINE SEPARATOR) or U+2029 (PARAGRAPH SEPARATOR) is treated as
 * whitespace by the parser, but not matched by /\s/, then this would admit
 * an attack like: import\u2028('power.js') . We're trying to distinguish
 * something like that from something like importnotreally('power.js') which
 * is perfectly safe.
 *
 * @param {string} src
 * @returns {string}
 */
       const rejectImportExpressions = src => {
  const lineNumber = getLineNumber(src, importPattern);
  if (lineNumber < 0) {
    return src;
  }
  const name = getSourceURL(src);
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_IMPORT_REJECTED.md
  throw SyntaxError(
    `Possible import expression rejected at ${name}:${lineNumber}. (SES_IMPORT_REJECTED)`,
  );
};

/**
 * An optional transform to place ahead of `rejectImportExpressions` to evade
 * *that* rejection. However, it may change the meaning of the program.
 *
 * This evasion replaces each suspicious `import` identifier with `__import__`.
 * If the alleged import expression appears in a JavaScript comment, this
 * evasion will not change the meaning of the program. If it appears in a
 * literal (string literal, regexp literal, or a template literal), then this
 * evasion will change the contents of that literal. If it appears as code
 * where it would be parsed as an expression, then it might or might not change
 * the meaning of the program, depending on the binding, if any, of the lexical
 * variable `__import__`.
 *
 * @param {string} src
 * @returns {string}
 */$h͏_once.rejectImportExpressions(rejectImportExpressions);
       const evadeImportExpressionTest = src => {
  const replaceFn = (_, p1, p2) => `${p1}__import__${p2}`;
  return stringReplace(src, importPattern, replaceFn);
};

// /////////////////////////////////////////////////////////////////////////////
$h͏_once.evadeImportExpressionTest(evadeImportExpressionTest);
const someDirectEvalPattern = new FERAL_REG_EXP(
  '(^|[^.])\\beval(\\s*\\()',
  'g',
);

/**
 * Heuristically reject some text that seems to contain a direct eval
 * expression, with both false positives and false negavives. To reject without
 * parsing, `rejectSomeDirectEvalExpressions` may will also reject some other
 * text as well. It may also accept source text that contains a direct eval
 * written oddly, such as `(eval)(src)`. This false negative is not a security
 * vulnerability. Rather it is a compat hazard because it will execute as
 * an indirect eval under the SES-shim but as a direct eval on platforms that
 * support SES directly (like XS).
 *
 * The shim cannot correctly emulate a direct eval as explained at
 * https://github.com/Agoric/realms-shim/issues/12
 * If we did not reject direct eval syntax, we would
 * accidentally evaluate these with an emulation of indirect eval. To
 * prevent future compatibility problems, in shifting from use of the
 * shim to genuine platform support for the proposal, we should
 * instead statically reject code that seems to contain a direct eval
 * expression.
 *
 * As with the dynamic import expression, to avoid a full parse, we do
 * this approximately with a regexp, that will also reject strings
 * that appear safely in comments or strings. Unlike dynamic import,
 * if we miss some, this only creates future compat problems, not
 * security problems. Thus, we are only trying to catch innocent
 * occurrences, not malicious one. In particular, `(eval)(...)` is
 * direct eval syntax that would not be caught by the following regexp.
 *
 * Exported for unit tests.
 *
 * @param {string} src
 * @returns {string}
 */
       const rejectSomeDirectEvalExpressions = src => {
  const lineNumber = getLineNumber(src, someDirectEvalPattern);
  if (lineNumber < 0) {
    return src;
  }
  const name = getSourceURL(src);
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_EVAL_REJECTED.md
  throw SyntaxError(
    `Possible direct eval expression rejected at ${name}:${lineNumber}. (SES_EVAL_REJECTED)`,
  );
};

// /////////////////////////////////////////////////////////////////////////////

/**
 * A transform that bundles together the transforms that must unconditionally
 * happen last in order to ensure safe evaluation without parsing.
 *
 * @param {string} source
 * @returns {string}
 */$h͏_once.rejectSomeDirectEvalExpressions(rejectSomeDirectEvalExpressions);
       const mandatoryTransforms = source => {
  source = rejectHtmlComments(source);
  source = rejectImportExpressions(source);
  return source;
};

/**
 * Starting with `source`, apply each transform to the result of the
 * previous one, returning the result of the last transformation.
 *
 * @param {string} source
 * @param {((str: string) => string)[]} transforms
 * @returns {string}
 */$h͏_once.mandatoryTransforms(mandatoryTransforms);
       const applyTransforms = (source, transforms) => {
  for (let i = 0, l = transforms.length; i < l; i += 1) {
    const transform = transforms[i];
    source = transform(source);
  }
  return source;
};

// export all as a frozen object
$h͏_once.applyTransforms(applyTransforms);const transforms=freeze({
  rejectHtmlComments: freeze(rejectHtmlComments),
  evadeHtmlCommentTest: freeze(evadeHtmlCommentTest),
  rejectImportExpressions: freeze(rejectImportExpressions),
  evadeImportExpressionTest: freeze(evadeImportExpressionTest),
  rejectSomeDirectEvalExpressions: freeze(rejectSomeDirectEvalExpressions),
  mandatoryTransforms: freeze(mandatoryTransforms),
  applyTransforms: freeze(applyTransforms),
});$h͏_once.transforms(transforms);
})()
,
// === 34. ses ./src/scope-constants.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let arrayFilter,arrayIncludes,getOwnPropertyDescriptor,getOwnPropertyNames,hasOwn,regexpTest;$h͏_imports([["./commons.js", [["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["regexpTest",[$h͏_a => (regexpTest = $h͏_a)]]]]]);








/**
 * keywords
 * In JavaScript you cannot use these reserved words as variables.
 * See 11.6.1 Identifier Names
 */
const keywords = [
  // 11.6.2.1 Keywords
  'await',
  'break',
  'case',
  'catch',
  'class',
  'const',
  'continue',
  'debugger',
  'default',
  'delete',
  'do',
  'else',
  'export',
  'extends',
  'finally',
  'for',
  'function',
  'if',
  'import',
  'in',
  'instanceof',
  'new',
  'return',
  'super',
  'switch',
  'this',
  'throw',
  'try',
  'typeof',
  'var',
  'void',
  'while',
  'with',
  'yield',

  // Also reserved when parsing strict mode code
  'let',
  'static',

  // 11.6.2.2 Future Reserved Words
  'enum',

  // Also reserved when parsing strict mode code
  'implements',
  'package',
  'protected',
  'interface',
  'private',
  'public',

  // Reserved but not mentioned in specs
  'await',

  'null',
  'true',
  'false',

  'this',
  'arguments',
];

/**
 * identifierPattern
 * Simplified validation of identifier names: may only contain alphanumeric
 * characters (or "$" or "_"), and may not start with a digit. This is safe
 * and does not reduces the compatibility of the shim. The motivation for
 * this limitation was to decrease the complexity of the implementation,
 * and to maintain a resonable level of performance.
 * Note: \w is equivalent [a-zA-Z_0-9]
 * See 11.6.1 Identifier Names
 */
const identifierPattern = /^[a-zA-Z_$][\w$]*$/;

/**
 * isValidIdentifierName()
 * What variable names might it bring into scope? These include all
 * property names which can be variable names, including the names
 * of inherited properties. It excludes symbols and names which are
 * keywords. We drop symbols safely. Currently, this shim refuses
 * service if any of the names are keywords or keyword-like. This is
 * safe and only prevent performance optimization.
 *
 * @param {string} name
 */
       const isValidIdentifierName = name => {
  // Ensure we have a valid identifier. We use regexpTest rather than
  // /../.test() to guard against the case where RegExp has been poisoned.
  return (
    name !== 'eval' &&
    !arrayIncludes(keywords, name) &&
    regexpTest(identifierPattern, name)
  );
};

/*
 * isImmutableDataProperty
 */$h͏_once.isValidIdentifierName(isValidIdentifierName);

function isImmutableDataProperty(obj, name) {
  const desc = getOwnPropertyDescriptor(obj, name);
  return (
    desc &&
    //
    // The getters will not have .writable, don't let the falsyness of
    // 'undefined' trick us: test with === false, not ! . However descriptors
    // inherit from the (potentially poisoned) global object, so we might see
    // extra properties which weren't really there. Accessor properties have
    // 'get/set/enumerable/configurable', while data properties have
    // 'value/writable/enumerable/configurable'.
    desc.configurable === false &&
    desc.writable === false &&
    //
    // Checks for data properties because they're the only ones we can
    // optimize (accessors are most likely non-constant). Descriptors can't
    // can't have accessors and value properties at the same time, therefore
    // this check is sufficient. Using explicit own property deal with the
    // case where Object.prototype has been poisoned.
    hasOwn(desc, 'value')
  );
}

/**
 * getScopeConstants()
 * What variable names might it bring into scope? These include all
 * property names which can be variable names, including the names
 * of inherited properties. It excludes symbols and names which are
 * keywords. We drop symbols safely. Currently, this shim refuses
 * service if any of the names are keywords or keyword-like. This is
 * safe and only prevent performance optimization.
 *
 * @param {object} globalObject
 * @param {object} moduleLexicals
 */
       const getScopeConstants = (globalObject, moduleLexicals = {}) => {
  // getOwnPropertyNames() does ignore Symbols so we don't need to
  // filter them out.
  const globalObjectNames = getOwnPropertyNames(globalObject);
  const moduleLexicalNames = getOwnPropertyNames(moduleLexicals);

  // Collect all valid & immutable identifiers from the endowments.
  const moduleLexicalConstants = arrayFilter(
    moduleLexicalNames,
    name =>
      isValidIdentifierName(name) &&
      isImmutableDataProperty(moduleLexicals, name),
  );

  // Collect all valid & immutable identifiers from the global that
  // are also not present in the endowments (immutable or not).
  const globalObjectConstants = arrayFilter(
    globalObjectNames,
    name =>
      // Can't define a constant: it would prevent a
      // lookup on the endowments.
      !arrayIncludes(moduleLexicalNames, name) &&
      isValidIdentifierName(name) &&
      isImmutableDataProperty(globalObject, name),
  );

  return {
    globalObjectConstants,
    moduleLexicalConstants,
  };
};$h͏_once.getScopeConstants(getScopeConstants);
})()
,
// === 35. ses ./src/make-evaluate.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,arrayJoin,apply,getScopeConstants;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]]]],["./scope-constants.js", [["getScopeConstants",[$h͏_a => (getScopeConstants = $h͏_a)]]]]]);




/**
 * buildOptimizer()
 * Given an array of identifiers, the optimizer returns a `const` declaration
 * destructuring `this.${name}`.
 *
 * @param {Array<string>} constants
 * @param {string} name
 */
function buildOptimizer(constants, name) {
  // No need to build an optimizer when there are no constants.
  if (constants.length === 0) return '';
  // Use 'this' to avoid going through the scope proxy, which is unnecessary
  // since the optimizer only needs references to the safe global.
  // Destructure the constants from the target scope object.
  return `const {${arrayJoin(constants, ',')}} = this.${name};`;
}

/**
 * makeEvaluate()
 * Create an 'evaluate' function with the correct optimizer inserted.
 *
 * @param {object} context
 * @param {object} context.evalScope
 * @param {object} context.moduleLexicals
 * @param {object} context.globalObject
 * @param {object} context.scopeTerminator
 */
       const makeEvaluate = context => {
  const { globalObjectConstants, moduleLexicalConstants } = getScopeConstants(
    context.globalObject,
    context.moduleLexicals,
  );
  const globalObjectOptimizer = buildOptimizer(
    globalObjectConstants,
    'globalObject',
  );
  const moduleLexicalOptimizer = buildOptimizer(
    moduleLexicalConstants,
    'moduleLexicals',
  );

  // Create a function in sloppy mode, so that we can use 'with'. It returns
  // a function in strict mode that evaluates the provided code using direct
  // eval, and thus in strict mode in the same scope. We must be very careful
  // to not create new names in this scope

  // 1: we use multiple nested 'with' to catch all free variable names. The
  // `this` value of the outer sloppy function holds the different scope
  // layers, from inner to outer:
  //    a) `evalScope` which must release the `FERAL_EVAL` as 'eval' once for
  //       every invocation of the inner `evaluate` function in order to
  //       trigger direct eval. The direct eval semantics is what allows the
  //       evaluated code to lookup free variable names on the other scope
  //       objects and not in global scope.
  //    b) `moduleLexicals` which provide a way to introduce free variables
  //       that are not available on the globalObject.
  //    c) `globalObject` is the global scope object of the evaluator, aka the
  //       Compartment's `globalThis`.
  //    d) `scopeTerminator` is a proxy object which prevents free variable
  //       lookups to escape to the start compartment's global object.
  // 2: `optimizer`s catch constant variable names for speed.
  // 3: The inner strict `evaluate` function should be passed two parameters:
  //    a) its arguments[0] is the source to be directly evaluated.
  //    b) its 'this' is the this binding seen by the code being
  //       directly evaluated (the globalObject).

  // Notes:
  // - The `optimizer` strings only lookup values on the `globalObject` and
  //   `moduleLexicals` objects by construct. Keywords like 'function' are
  //   reserved and cannot be used as a variable, so they are excluded from the
  //   optimizer. Furthermore to prevent shadowing 'eval', while a valid
  //   identifier, that name is also explicitly excluded.
  // - when 'eval' is looked up in the `evalScope`, the powerful unsafe eval
  //   intrinsic is returned after automatically removing it from the
  //   `evalScope`. Any further reference to 'eval' in the evaluate string will
  //   get the tamed evaluator from the `globalObject`, if any.

  // TODO https://github.com/endojs/endo/issues/816
  // The optimizer currently runs under sloppy mode, and although we doubt that
  // there is any vulnerability introduced just by running the optimizer
  // sloppy, we are much more confident in the semantics of strict mode.
  // The `evaluate` function can be and is reused across multiple evaluations.
  // Since the optimizer should not be re-evaluated every time, it cannot be
  // inside the `evaluate` closure. While we could potentially nest an
  // intermediate layer of `() => {'use strict'; ${optimizers}; ...`, it
  // doesn't seem worth the overhead and complexity.
  const evaluateFactory = FERAL_FUNCTION(`
    with (this.scopeTerminator) {
      with (this.globalObject) {
        with (this.moduleLexicals) {
          with (this.evalScope) {
            ${globalObjectOptimizer}
            ${moduleLexicalOptimizer}
            return function() {
              'use strict';
              return eval(arguments[0]);
            };
          }
        }
      }
    }
  `);

  return apply(evaluateFactory, context, []);
};$h͏_once.makeEvaluate(makeEvaluate);
})()
,
// === 36. ses ./src/make-safe-evaluator.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let apply,arrayFlatMap,freeze,identity,strictScopeTerminator,createSloppyGlobalsScopeTerminator,makeEvalScopeKit,applyTransforms,mandatoryTransforms,makeEvaluate,assert;$h͏_imports([["./commons.js", [["apply",[$h͏_a => (apply = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["identity",[$h͏_a => (identity = $h͏_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminator",[$h͏_a => (strictScopeTerminator = $h͏_a)]]]],["./sloppy-globals-scope-terminator.js", [["createSloppyGlobalsScopeTerminator",[$h͏_a => (createSloppyGlobalsScopeTerminator = $h͏_a)]]]],["./eval-scope.js", [["makeEvalScopeKit",[$h͏_a => (makeEvalScopeKit = $h͏_a)]]]],["./transforms.js", [["applyTransforms",[$h͏_a => (applyTransforms = $h͏_a)]],["mandatoryTransforms",[$h͏_a => (mandatoryTransforms = $h͏_a)]]]],["./make-evaluate.js", [["makeEvaluate",[$h͏_a => (makeEvaluate = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);










const { Fail } = assert;

/**
 * makeSafeEvaluator()
 * Build the low-level operation used by all evaluators:
 * eval(), Function(), Compartment.prototype.evaluate().
 *
 * @param {object} options
 * @param {object} options.globalObject
 * @param {object} [options.moduleLexicals]
 * @param {Array<import('./lockdown.js').Transform>} [options.globalTransforms]
 * @param {boolean} [options.sloppyGlobalsMode]
 */
       const makeSafeEvaluator = ({
  globalObject,
  moduleLexicals = {},
  globalTransforms = [],
  sloppyGlobalsMode = false,
}) => {
  const scopeTerminator = sloppyGlobalsMode
    ? createSloppyGlobalsScopeTerminator(globalObject)
    : strictScopeTerminator;
  const evalScopeKit = makeEvalScopeKit();
  const { evalScope } = evalScopeKit;

  const evaluateContext = freeze({
    evalScope,
    moduleLexicals,
    globalObject,
    scopeTerminator,
  });

  // Defer creating the actual evaluator to first use.
  // Creating a compartment should be possible in no-eval environments
  // It also allows more global constants to be captured by the optimizer
  let evaluate;
  const provideEvaluate = () => {
    if (!evaluate) {
      evaluate = makeEvaluate(evaluateContext);
    }
  };

  /**
   * @param {string} source
   * @param {object} [options]
   * @param {Array<import('./lockdown.js').Transform>} [options.localTransforms]
   */
  const safeEvaluate = (source, options) => {
    const { localTransforms = [] } = options || {};
    provideEvaluate();

    // Execute the mandatory transforms last to ensure that any rewritten code
    // meets those mandatory requirements.
    source = applyTransforms(
      source,
      arrayFlatMap(
        [localTransforms, globalTransforms, [mandatoryTransforms]],
        identity,
      ),
    );

    let err;
    try {
      // Allow next reference to eval produce the unsafe FERAL_EVAL.
      // eslint-disable-next-line @endo/no-polymorphic-call
      evalScopeKit.allowNextEvalToBeUnsafe();

      // Ensure that "this" resolves to the safe global.
      return apply(evaluate, globalObject, [source]);
    } catch (e) {
      // stash the child-code error in hopes of debugging the internal failure
      err = e;
      throw e;
    } finally {
      const unsafeEvalWasStillExposed = 'eval' in evalScope;
      delete evalScope.eval;
      if (unsafeEvalWasStillExposed) {
        // Barring a defect in the SES shim, the evalScope should allow the
        // powerful, unsafe  `eval` to be used by `evaluate` exactly once, as the
        // very first name that it attempts to access from the lexical scope.
        // A defect in the SES shim could throw an exception after we set
        // `evalScope.eval` and before `evaluate` calls `eval` internally.
        // If we get here, SES is very broken.
        // This condition is one where this vat is now hopelessly confused, and
        // the vat as a whole should be aborted.
        // No further code should run.
        // All immediately reachable state should be abandoned.
        // However, that is not yet possible, so we at least prevent further
        // variable resolution via the scopeHandler, and throw an error with
        // diagnostic info including the thrown error if any from evaluating the
        // source code.
        evalScopeKit.revoked = { err };
        // TODO A GOOD PLACE TO PANIC(), i.e., kill the vat incarnation.
        // See https://github.com/Agoric/SES-shim/issues/490
        Fail`handler did not reset allowNextEvalToBeUnsafe ${err}`;
      }
    }
  };

  return { safeEvaluate };
};$h͏_once.makeSafeEvaluator(makeSafeEvaluator);
})()
,
// === 37. ses ./src/tame-function-tostring.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakSet,defineProperty,freeze,functionPrototype,functionToString,stringEndsWith,weaksetAdd,weaksetHas;$h͏_imports([["./commons.js", [["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["functionPrototype",[$h͏_a => (functionPrototype = $h͏_a)]],["functionToString",[$h͏_a => (functionToString = $h͏_a)]],["stringEndsWith",[$h͏_a => (stringEndsWith = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]]]);










const nativeSuffix = ') { [native code] }';

// Note: Top level mutable state. Does not make anything worse, since the
// patching of `Function.prototype.toString` is also globally stateful. We
// use this top level state so that multiple calls to `tameFunctionToString` are
// idempotent, rather than creating redundant indirections.
let markVirtualizedNativeFunction;

/**
 * Replace `Function.prototype.toString` with one that recognizes
 * shimmed functions as honorary native functions.
 */
       const tameFunctionToString = () => {
  if (markVirtualizedNativeFunction === undefined) {
    const virtualizedNativeFunctions = new WeakSet();

    const tamingMethods = {
      toString() {
        const str = functionToString(this);
        if (
          stringEndsWith(str, nativeSuffix) ||
          !weaksetHas(virtualizedNativeFunctions, this)
        ) {
          return str;
        }
        return `function ${this.name}() { [native code] }`;
      },
    };

    defineProperty(functionPrototype, 'toString', {
      value: tamingMethods.toString,
    });

    markVirtualizedNativeFunction = freeze(func =>
      weaksetAdd(virtualizedNativeFunctions, func),
    );
  }
  return markVirtualizedNativeFunction;
};$h͏_once.tameFunctionToString(tameFunctionToString);
})()
,
// === 38. ses ./src/tame-domains.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,globalThis,getOwnPropertyDescriptor,defineProperty;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]]]]]);Object.defineProperty(tameDomains,'name',{value:"tameDomains"});$h͏_once.tameDomains(tameDomains);








       function tameDomains(domainTaming = 'safe') {
  if (domainTaming === 'unsafe') {
    return;
  }

  // Protect against the hazard presented by Node.js domains.
  const globalProcess = globalThis.process || undefined;
  if (typeof globalProcess === 'object') {
    // Check whether domains were initialized.
    const domainDescriptor = getOwnPropertyDescriptor(globalProcess, 'domain');
    if (domainDescriptor !== undefined && domainDescriptor.get !== undefined) {
      // The domain descriptor on Node.js initially has value: null, which
      // becomes a get, set pair after domains initialize.
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_NO_DOMAINS.md
      throw TypeError(
        `SES failed to lockdown, Node.js domains have been initialized (SES_NO_DOMAINS)`,
      );
    }
    // Prevent domains from initializing.
    // This is clunky because the exception thrown from the domains package does
    // not direct the user's gaze toward a knowledge base about the problem.
    // The domain module merely throws an exception when it attempts to define
    // the domain property of the process global during its initialization.
    // We have no better recourse because Node.js uses defineProperty too.
    defineProperty(globalProcess, 'domain', {
      value: null,
      configurable: false,
      writable: false,
      enumerable: false,
    });
  }
}
})()
,
// === 39. ses ./src/tame-module-source.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let functionPrototype,getPrototypeOf,globalThis,objectPrototype,setPrototypeOf;$h͏_imports([["./commons.js", [["functionPrototype",[$h͏_a => (functionPrototype = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]]]]]);







       const tameModuleSource = () => {
  const newIntrinsics = {};

  const ModuleSource = globalThis.ModuleSource;
  if (ModuleSource !== undefined) {
    newIntrinsics.ModuleSource = ModuleSource;

    // We introduce ModuleSource.[[Proto]] === AbstractModuleSource
    // and ModuleSource.prototype.[[Proto]] === AbstractModuleSource.prototype
    // if that layer is absent because the permitting system can more
    // gracefully tolerate the absence of an expected prototype than the
    // presence of an unexpected prototype,.
    function AbstractModuleSource() {
      // no-op safe to super()
    }

    const ModuleSourceProto = getPrototypeOf(ModuleSource);
    if (ModuleSourceProto === functionPrototype) {
      setPrototypeOf(ModuleSource, AbstractModuleSource);
      newIntrinsics['%AbstractModuleSource%'] = AbstractModuleSource;
      newIntrinsics['%AbstractModuleSourcePrototype%'] =
        AbstractModuleSource.prototype;
    } else {
      newIntrinsics['%AbstractModuleSource%'] = ModuleSourceProto;
      newIntrinsics['%AbstractModuleSourcePrototype%'] =
        ModuleSourceProto.prototype;
    }

    const ModuleSourcePrototype = ModuleSource.prototype;
    if (ModuleSourcePrototype !== undefined) {
      newIntrinsics['%ModuleSourcePrototype%'] = ModuleSourcePrototype;

      // ModuleSource.prototype.__proto__ should be the
      // AbstractModuleSource.prototype.
      const ModuleSourcePrototypeProto = getPrototypeOf(ModuleSourcePrototype);
      if (ModuleSourcePrototypeProto === objectPrototype) {
        setPrototypeOf(ModuleSource.prototype, AbstractModuleSource.prototype);
      }
    }
  }

  return newIntrinsics;
};$h͏_once.tameModuleSource(tameModuleSource);
})()
,
// === 40. ses ./src/error/console.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakSet,arrayFilter,arrayFlatMap,arrayMap,arrayPop,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,stringIncludes,stringSplit,weaksetAdd,weaksetHas;$h͏_imports([["../commons.js", [["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["stringEndsWith",[$h͏_a => (stringEndsWith = $h͏_a)]],["stringIncludes",[$h͏_a => (stringIncludes = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]]]);
























/**
 * @import {FilterConsole, LogSeverity, VirtualConsole} from './types.js'
 * @import {ErrorInfo, ErrorInfoKind, LogRecord, NoteCallback, LoggedErrorHandler, MakeCausalConsole, MakeLoggingConsoleKit} from "./internal-types.js";
 */

/**
 * Explicitly set a function's name, supporting use of arrow functions for which
 * source text doesn't include a name and no initial name is set by
 * NamedEvaluation
 * https://tc39.es/ecma262/multipage/syntax-directed-operations.html#sec-runtime-semantics-namedevaluation
 * Instead, we hope that tooling uses only the explicit `name` property.
 *
 * @template {Function} F
 * @param {string} name
 * @param {F} fn
 * @returns {F}
 */
const defineName = (name, fn) => defineProperty(fn, 'name', { value: name });

// For our internal debugging purposes, uncomment
// const internalDebugConsole = console;

// The permitted console methods, from:
// Whatwg "living standard" https://console.spec.whatwg.org/
// Node https://nodejs.org/dist/latest-v14.x/docs/api/console.html
// MDN https://developer.mozilla.org/en-US/docs/Web/API/Console_API
// TypeScript https://openstapps.gitlab.io/projectmanagement/interfaces/_node_modules__types_node_globals_d_.console.html
// Chrome https://developers.google.com/web/tools/chrome-devtools/console/api

// All console level methods have parameters (fmt?, ...args)
// where the argument sequence `fmt?, ...args` formats args according to
// fmt if fmt is a format string. Otherwise, it just renders them all as values
// separated by spaces.
// https://console.spec.whatwg.org/#formatter
// https://nodejs.org/docs/latest/api/util.html#util_util_format_format_args

// For the causal console, all occurrences of `fmt, ...args` or `...args` by
// itself must check for the presence of an error to ask the
// `loggedErrorHandler` to handle.
// In theory we should do a deep inspection to detect for example an array
// containing an error. We currently do not detect these and may never.

/** @typedef {keyof VirtualConsole | 'profile' | 'profileEnd'} ConsoleProps */

/**
 * Those console methods whose actual parameters are `(fmt?, ...args)`
 * even if their TypeScript types claim otherwise.
 *
 * Each is paired with what we consider to be their log severity level.
 * This is the same as the log severity of these on other
 * platform console implementations when they all agree.
 *
 * @type {readonly [ConsoleProps, LogSeverity | undefined][]}
 */
       const consoleLevelMethods = freeze([
  ['debug', 'debug'], // (fmt?, ...args) verbose level on Chrome
  ['log', 'log'], // (fmt?, ...args) info level on Chrome
  ['info', 'info'], // (fmt?, ...args)
  ['warn', 'warn'], // (fmt?, ...args)
  ['error', 'error'], // (fmt?, ...args)

  ['trace', 'log'], // (fmt?, ...args)
  ['dirxml', 'log'], // (fmt?, ...args)          but TS typed (...data)
  ['group', 'log'], // (fmt?, ...args)           but TS typed (...label)
  ['groupCollapsed', 'log']  // (fmt?, ...args)  but TS typed (...label)
]);

/**
 * Those console methods other than those already enumerated by
 * `consoleLevelMethods`.
 *
 * Each is paired with what we consider to be their log severity level.
 * This is the same as the log severity of these on other
 * platform console implementations when they all agree.
 *
 * @type {readonly [ConsoleProps, LogSeverity | undefined][]}
 */$h͏_once.consoleLevelMethods(consoleLevelMethods);
       const consoleOtherMethods = freeze([
  ['assert', 'error'], // (value, fmt?, ...args)
  ['timeLog', 'log'], // (label?, ...args) no fmt string

  // Insensitive to whether any argument is an error. All arguments can pass
  // thru to baseConsole as is.
  ['clear', undefined], // ()
  ['count', 'info'], // (label?)
  ['countReset', undefined], // (label?)
  ['dir', 'log'], // (item, options?)
  ['groupEnd', 'log'], // ()
  // In theory tabular data may be or contain an error. However, we currently
  // do not detect these and may never.
  ['table', 'log'], // (tabularData, properties?)
  ['time', 'info'], // (label?)
  ['timeEnd', 'info'], // (label?)

  // Node Inspector only, MDN, and TypeScript, but not whatwg
  ['profile', undefined], // (label?)
  ['profileEnd', undefined], // (label?)
  ['timeStamp', undefined]  // (label?)
]);

/** @type {readonly [ConsoleProps, LogSeverity | undefined][]} */$h͏_once.consoleOtherMethods(consoleOtherMethods);
const consoleMethodPermits = freeze([
  ...consoleLevelMethods,
  ...consoleOtherMethods,
]);

/**
 * consoleOmittedProperties is currently unused. I record and maintain it here
 * with the intention that it be treated like the `false` entries in the main
 * SES permits: that seeing these on the original console is expected, but
 * seeing anything else that's outside the permits is surprising and should
 * provide a diagnostic.
 *
 * const consoleOmittedProperties = freeze([
 *   'memory', // Chrome
 *   'exception', // FF, MDN
 *   '_ignoreErrors', // Node
 *   '_stderr', // Node
 *   '_stderrErrorHandler', // Node
 *   '_stdout', // Node
 *   '_stdoutErrorHandler', // Node
 *   '_times', // Node
 *   'context', // Chrome, Node
 *   'record', // Safari
 *   'recordEnd', // Safari
 *
 *   'screenshot', // Safari
 *   // Symbols
 *   '@@toStringTag', // Chrome: "Object", Safari: "Console"
 *   // A variety of other symbols also seen on Node
 * ]);
 */

// //////////////////////////// Logging Console ////////////////////////////////

/** @type {MakeLoggingConsoleKit} */
       const makeLoggingConsoleKit = (
  loggedErrorHandler,
  { shouldResetForDebugging = false } = {},
) => {
  if (shouldResetForDebugging) {
    // eslint-disable-next-line @endo/no-polymorphic-call
    loggedErrorHandler.resetErrorTagNum();
  }

  // Not frozen!
  let logArray = [];

  const loggingConsole = fromEntries(
    arrayMap(consoleMethodPermits, ([name, _]) => {
      /**
       * @param {...any} args
       */
      const method = defineName(name, (...args) => {
        arrayPush(logArray, [name, ...args]);
      });
      return [name, freeze(method)];
    }),
  );
  freeze(loggingConsole);

  const takeLog = () => {
    const result = freeze(logArray);
    logArray = [];
    return result;
  };
  freeze(takeLog);

  const typedLoggingConsole = /** @type {VirtualConsole} */ (loggingConsole);

  return freeze({ loggingConsole: typedLoggingConsole, takeLog });
};$h͏_once.makeLoggingConsoleKit(makeLoggingConsoleKit);
freeze(makeLoggingConsoleKit);

/**
 * Makes the same calls on a `baseConsole` that were made on a
 * `loggingConsole` to produce this `log`. In this way, a logging console
 * can be used as a buffer to delay the application of these calls to a
 * `baseConsole`.
 *
 * @param {LogRecord[]} log
 * @param {VirtualConsole} baseConsole
 */
       const pumpLogToConsole = (log, baseConsole) => {
  for (const [name, ...args] of log) {
    // eslint-disable-next-line @endo/no-polymorphic-call
    baseConsole[name](...args);
  }
};
// //////////////////////////// Causal Console /////////////////////////////////

/** @type {ErrorInfo} */$h͏_once.pumpLogToConsole(pumpLogToConsole);
const ErrorInfo = {
  NOTE: 'ERROR_NOTE:',
  MESSAGE: 'ERROR_MESSAGE:',
  CAUSE: 'cause:',
  ERRORS: 'errors:',
};
freeze(ErrorInfo);

/** @type {MakeCausalConsole} */
       const makeCausalConsole = (baseConsole, loggedErrorHandler) => {
  if (!baseConsole) {
    return undefined;
  }

  const { getStackString, tagError, takeMessageLogArgs, takeNoteLogArgsArray } =
    loggedErrorHandler;

  /**
   * @param {ReadonlyArray<any>} logArgs
   * @param {Array<any>} subErrorsSink
   * @returns {any}
   */
  const extractErrorArgs = (logArgs, subErrorsSink) => {
    const argTags = arrayMap(logArgs, arg => {
      if (isError(arg)) {
        arrayPush(subErrorsSink, arg);
        return `(${tagError(arg)})`;
      }
      return arg;
    });
    return argTags;
  };

  /**
   * @param {LogSeverity} severity
   * @param {Error} error
   * @param {ErrorInfoKind} kind
   * @param {readonly any[]} logArgs
   * @param {Array<Error>} subErrorsSink
   */
  const logErrorInfo = (severity, error, kind, logArgs, subErrorsSink) => {
    const errorTag = tagError(error);
    const errorName =
      kind === ErrorInfo.MESSAGE ? `${errorTag}:` : `${errorTag} ${kind}`;
    const argTags = extractErrorArgs(logArgs, subErrorsSink);
    // eslint-disable-next-line @endo/no-polymorphic-call
    baseConsole[severity](errorName, ...argTags);
  };

  /**
   * Logs the `subErrors` within a group name mentioning `optTag`.
   *
   * @param {LogSeverity} severity
   * @param {Error[]} subErrors
   * @param {string | undefined} optTag
   * @returns {void}
   */
  const logSubErrors = (severity, subErrors, optTag = undefined) => {
    if (subErrors.length === 0) {
      return;
    }
    if (subErrors.length === 1 && optTag === undefined) {
      // eslint-disable-next-line no-use-before-define
      logError(severity, subErrors[0]);
      return;
    }
    let label;
    if (subErrors.length === 1) {
      label = `Nested error`;
    } else {
      label = `Nested ${subErrors.length} errors`;
    }
    if (optTag !== undefined) {
      label = `${label} under ${optTag}`;
    }
    // eslint-disable-next-line @endo/no-polymorphic-call
    baseConsole.group(label);
    try {
      for (const subError of subErrors) {
        // eslint-disable-next-line no-use-before-define
        logError(severity, subError);
      }
    } finally {
      if (baseConsole.groupEnd) {
        // eslint-disable-next-line @endo/no-polymorphic-call
        baseConsole.groupEnd();
      }
    }
  };

  const errorsLogged = new WeakSet();

  /** @type {(severity: LogSeverity) => NoteCallback} */
  const makeNoteCallback = severity => (error, noteLogArgs) => {
    const subErrors = [];
    // Annotation arrived after the error has already been logged,
    // so just log the annotation immediately, rather than remembering it.
    logErrorInfo(severity, error, ErrorInfo.NOTE, noteLogArgs, subErrors);
    logSubErrors(severity, subErrors, tagError(error));
  };

  /**
   * @param {LogSeverity} severity
   * @param {Error} error
   */
  const logError = (severity, error) => {
    if (weaksetHas(errorsLogged, error)) {
      return;
    }
    const errorTag = tagError(error);
    weaksetAdd(errorsLogged, error);
    const subErrors = [];
    const messageLogArgs = takeMessageLogArgs(error);
    const noteLogArgsArray = takeNoteLogArgsArray(
      error,
      makeNoteCallback(severity),
    );
    // Show the error's most informative error message
    if (messageLogArgs === undefined) {
      // If there is no message log args, then just show the message that
      // the error itself carries.
      // eslint-disable-next-line @endo/no-polymorphic-call
      baseConsole[severity](`${errorTag}:`, error.message);
    } else {
      // If there is one, we take it to be strictly more informative than the
      // message string carried by the error, so show it *instead*.
      logErrorInfo(
        severity,
        error,
        ErrorInfo.MESSAGE,
        messageLogArgs,
        subErrors,
      );
    }
    // After the message but before any other annotations, show the stack.
    let stackString = getStackString(error);
    if (
      typeof stackString === 'string' &&
      stackString.length >= 1 &&
      !stringEndsWith(stackString, '\n')
    ) {
      stackString += '\n';
    }
    // eslint-disable-next-line @endo/no-polymorphic-call
    baseConsole[severity](stackString);
    // Show the other annotations on error
    if (error.cause) {
      logErrorInfo(severity, error, ErrorInfo.CAUSE, [error.cause], subErrors);
    }
    // @ts-expect-error AggregateError has an `errors` property.
    if (error.errors) {
      // @ts-expect-error AggregateError has an `errors` property.
      logErrorInfo(severity, error, ErrorInfo.ERRORS, error.errors, subErrors);
    }
    for (const noteLogArgs of noteLogArgsArray) {
      logErrorInfo(severity, error, ErrorInfo.NOTE, noteLogArgs, subErrors);
    }
    // explain all the errors seen in the messages already emitted.
    logSubErrors(severity, subErrors, errorTag);
  };

  const levelMethods = arrayMap(consoleLevelMethods, ([level, _]) => {
    /**
     * @param {...any} logArgs
     */
    const levelMethod = defineName(level, (...logArgs) => {
      const subErrors = [];
      const argTags = extractErrorArgs(logArgs, subErrors);
      if (baseConsole[level]) {
        // eslint-disable-next-line @endo/no-polymorphic-call
        baseConsole[level](...argTags);
      }
      // @ts-expect-error ConsoleProp vs LogSeverity mismatch
      logSubErrors(level, subErrors);
    });
    return [level, freeze(levelMethod)];
  });
  const otherMethodNames = arrayFilter(
    consoleOtherMethods,
    ([name, _]) => name in baseConsole,
  );
  const otherMethods = arrayMap(otherMethodNames, ([name, _]) => {
    /**
     * @param {...any} args
     */
    const otherMethod = defineName(name, (...args) => {
      // @ts-ignore
      // eslint-disable-next-line @endo/no-polymorphic-call
      baseConsole[name](...args);
      return undefined;
    });
    return [name, freeze(otherMethod)];
  });

  const causalConsole = fromEntries([...levelMethods, ...otherMethods]);
  return /** @type {VirtualConsole} */ (freeze(causalConsole));
};$h͏_once.makeCausalConsole(makeCausalConsole);
freeze(makeCausalConsole);

/**
 * @typedef {(...args: unknown[]) => void} Logger
 */

/**
 * This is a rather horrible kludge to indent the output to a logger in
 * the case where some arguments are strings containing newlines. Part of
 * the problem is that console-like loggers, including the one in ava,
 * join the string arguments of the log message with a space.
 * Because of this, there's an extra space at the beginning of each of
 * the split lines. So this kludge compensated by putting an extra empty
 * string at the beginning, so that the logger will add the same extra
 * joiner.
 * TODO: Fix this horrible kludge, and indent in a sane manner.
 *
 * @param {string} str
 * @param {string} sep
 * @param {string[]} indents
 * @returns {string[]}
 */
const indentAfterAllSeps = (str, sep, indents) => {
  const [firstLine, ...restLines] = stringSplit(str, sep);
  const indentedRest = arrayFlatMap(restLines, line => [sep, ...indents, line]);
  return ['', firstLine, ...indentedRest];
};

/**
 * @param {LoggedErrorHandler} loggedErrorHandler
 */
       const defineCausalConsoleFromLogger = loggedErrorHandler => {
  /**
   * Implement the `VirtualConsole` API badly by turning all calls into
   * calls on `tlogger`. We need to do this to have `console` logging
   * turn into calls to Ava's `t.log`, so these console log messages
   * are output in the right place.
   *
   * @param {Logger} tlogger
   * @returns {VirtualConsole}
   */
  const makeCausalConsoleFromLogger = tlogger => {
    const indents = [];
    const logWithIndent = (...args) => {
      if (indents.length > 0) {
        args = arrayFlatMap(args, arg =>
          typeof arg === 'string' && stringIncludes(arg, '\n')
            ? indentAfterAllSeps(arg, '\n', indents)
            : [arg],
        );
        args = [...indents, ...args];
      }
      return tlogger(...args);
    };

    const baseConsole = fromEntries([
      ...arrayMap(consoleLevelMethods, ([name]) => [
        name,
        defineName(name, (...args) => logWithIndent(...args)),
      ]),
      ...arrayMap(consoleOtherMethods, ([name]) => [
        name,
        defineName(name, (...args) => logWithIndent(name, ...args)),
      ]),
    ]);
    // https://console.spec.whatwg.org/#grouping
    for (const name of ['group', 'groupCollapsed']) {
      if (baseConsole[name]) {
        baseConsole[name] = defineName(name, (...args) => {
          if (args.length >= 1) {
            // Prefix the logged data with "group" or "groupCollapsed".
            logWithIndent(...args);
          }
          // A single space is enough;
          // the host console will separate them with additional spaces.
          arrayPush(indents, ' ');
        });
      } else {
        baseConsole[name] = defineName(name, () => {});
      }
    }
    baseConsole.groupEnd = defineName(
      'groupEnd',
      baseConsole.groupEnd
        ? (...args) => {
            arrayPop(indents);
          }
        : () => {},
    );
    harden(baseConsole);
    const causalConsole = makeCausalConsole(
      /** @type {VirtualConsole} */ (baseConsole),
      loggedErrorHandler,
    );
    return /** @type {VirtualConsole} */ (causalConsole);
  };
  return freeze(makeCausalConsoleFromLogger);
};$h͏_once.defineCausalConsoleFromLogger(defineCausalConsoleFromLogger);
freeze(defineCausalConsoleFromLogger);

// ///////////////////////// Filter Console ////////////////////////////////////

/** @type {FilterConsole} */
       const filterConsole = (baseConsole, filter, _topic = undefined) => {
  // TODO do something with optional topic string
  const methodPermits = arrayFilter(
    consoleMethodPermits,
    ([name, _]) => name in baseConsole,
  );
  const methods = arrayMap(methodPermits, ([name, severity]) => {
    /**
     * @param {...any} args
     */
    const method = defineName(name, (...args) => {
      // eslint-disable-next-line @endo/no-polymorphic-call
      if (severity === undefined || filter.canLog(severity)) {
        // @ts-ignore
        // eslint-disable-next-line @endo/no-polymorphic-call
        baseConsole[name](...args);
      }
    });
    return [name, freeze(method)];
  });
  const filteringConsole = fromEntries(methods);
  return /** @type {VirtualConsole} */ (freeze(filteringConsole));
};$h͏_once.filterConsole(filterConsole);
freeze(filterConsole);
})()
,
// === 41. ses ./src/error/unhandled-rejection.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FinalizationRegistry,Map,mapGet,mapDelete,WeakMap,mapSet,finalizationRegistryRegister,weakmapSet,weakmapGet,mapEntries,mapHas;$h͏_imports([["../commons.js", [["FinalizationRegistry",[$h͏_a => (FinalizationRegistry = $h͏_a)]],["Map",[$h͏_a => (Map = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapDelete",[$h͏_a => (mapDelete = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["finalizationRegistryRegister",[$h͏_a => (finalizationRegistryRegister = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["mapEntries",[$h͏_a => (mapEntries = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]]]]]);














/**
 * Create rejection-tracking machinery compatible with Node.js and browsers.
 *
 * Note that modern browsers *prevent* access to the 'unhandledrejection' and
 * 'rejectionhandled' events needed:
 * - in cross-origin mode, like when served from file://
 * - in the browser console (interactively typed-in code)
 * - in the debugger
 *
 * Then, they just look like: `Uncaught (in promise) Error: ...` and don't
 * implement the machinery.
 *
 * The solution is to serve your web page from an http:// or https:// web server
 * and execute actual code.
 *
 * @param {(reason: unknown) => void} reportReason report the reason for an
 * unhandled rejection.
 */
       const makeRejectionHandlers = reportReason => {
  if (FinalizationRegistry === undefined) {
    return undefined;
  }

  /** @typedef {number} ReasonId */
  let lastReasonId = 0;

  /** @type {Map<ReasonId, unknown>} */
  const idToReason = new Map();

  /** @type {(() => void) | undefined} */
  let cancelChecking;

  const removeReasonId = reasonId => {
    mapDelete(idToReason, reasonId);
    if (cancelChecking && idToReason.size === 0) {
      // No more unhandled rejections to check, just cancel the check.
      cancelChecking();
      cancelChecking = undefined;
    }
  };

  /** @type {WeakMap<Promise, ReasonId>} */
  const promiseToReasonId = new WeakMap();

  /**
   * Clean up and report the reason for a GCed unhandled rejection.
   *
   * @param {ReasonId} heldReasonId
   */
  const finalizeDroppedPromise = heldReasonId => {
    if (mapHas(idToReason, heldReasonId)) {
      const reason = mapGet(idToReason, heldReasonId);
      removeReasonId(heldReasonId);
      reportReason(reason);
    }
  };

  /** @type {FinalizationRegistry<ReasonId>} */
  const promiseToReason = new FinalizationRegistry(finalizeDroppedPromise);

  /**
   * Track a rejected promise and its corresponding reason if there is no
   * rejection handler synchronously attached.
   *
   * @param {unknown} reason
   * @param {Promise} pr
   */
  const unhandledRejectionHandler = (reason, pr) => {
    lastReasonId += 1;
    const reasonId = lastReasonId;

    // Update bookkeeping.
    mapSet(idToReason, reasonId, reason);
    weakmapSet(promiseToReasonId, pr, reasonId);
    finalizationRegistryRegister(promiseToReason, pr, reasonId, pr);
  };

  /**
   * Deal with the addition of a handler to a previously rejected promise.
   *
   * Just remove it from our list.  Let the FinalizationRegistry or
   * processTermination report any GCed unhandled rejected promises.
   *
   * @param {Promise} pr
   */
  const rejectionHandledHandler = pr => {
    const reasonId = weakmapGet(promiseToReasonId, pr);
    removeReasonId(reasonId);
  };

  /**
   * Report all the unhandled rejections, now that we are abruptly terminating
   * the agent cluster.
   */
  const processTerminationHandler = () => {
    for (const [reasonId, reason] of mapEntries(idToReason)) {
      removeReasonId(reasonId);
      reportReason(reason);
    }
  };

  return {
    rejectionHandledHandler,
    unhandledRejectionHandler,
    processTerminationHandler,
  };
};$h͏_once.makeRejectionHandlers(makeRejectionHandlers);
})()
,
// === 42. ses ./src/error/tame-console.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,apply,defineProperty,freeze,globalThis,defaultHandler,makeCausalConsole,makeRejectionHandlers;$h͏_imports([["../commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./assert.js", [["loggedErrorHandler",[$h͏_a => (defaultHandler = $h͏_a)]]]],["./console.js", [["makeCausalConsole",[$h͏_a => (makeCausalConsole = $h͏_a)]]]],["./unhandled-rejection.js", [["makeRejectionHandlers",[$h͏_a => (makeRejectionHandlers = $h͏_a)]]]]]);













/**
 * @import {VirtualConsole} from './types.js'
 * @import {GetStackString} from './internal-types.js';
 */

const failFast = message => {
  throw TypeError(message);
};

const wrapLogger = (logger, thisArg) =>
  freeze((...args) => apply(logger, thisArg, args));

/**
 * Wrap console unless suppressed.
 * At the moment, the console is considered a host power in the start
 * compartment, and not a primordial. Hence it is absent from the whilelist
 * and bypasses the intrinsicsCollector.
 *
 * @param {"safe" | "unsafe"} consoleTaming
 * @param {"platform" | "exit" | "abort" | "report" | "none"} [errorTrapping]
 * @param {"report" | "none"} [unhandledRejectionTrapping]
 * @param {GetStackString=} optGetStackString
 */
       const tameConsole = (
  consoleTaming = 'safe',
  errorTrapping = 'platform',
  unhandledRejectionTrapping = 'report',
  optGetStackString = undefined,
) => {
  let loggedErrorHandler;
  if (optGetStackString === undefined) {
    loggedErrorHandler = defaultHandler;
  } else {
    loggedErrorHandler = {
      ...defaultHandler,
      getStackString: optGetStackString,
    };
  }

  // eslint-disable-next-line no-restricted-globals
  const originalConsole = /** @type {VirtualConsole} */ (
    // eslint-disable-next-line no-nested-ternary
    typeof globalThis.console !== 'undefined'
      ? globalThis.console
      : typeof globalThis.print === 'function'
        ? // Make a good-enough console for eshost (including only functions that
          // log at a specific level with no special argument interpretation).
          // https://console.spec.whatwg.org/#logging
          (p => freeze({ debug: p, log: p, info: p, warn: p, error: p }))(
            // eslint-disable-next-line no-undef
            wrapLogger(globalThis.print),
          )
        : undefined
  );

  // Upgrade a log-only console (as in `eshost -h SpiderMonkey`).
  if (originalConsole && originalConsole.log) {
    for (const methodName of ['warn', 'error']) {
      if (!originalConsole[methodName]) {
        defineProperty(originalConsole, methodName, {
          value: wrapLogger(originalConsole.log, originalConsole),
        });
      }
    }
  }

  const ourConsole = /** @type {VirtualConsole} */ (
    consoleTaming === 'unsafe'
      ? originalConsole
      : makeCausalConsole(originalConsole, loggedErrorHandler)
  );

  // Attach platform-specific error traps such that any error that gets thrown
  // at top-of-turn (the bottom of stack) will get logged by our causal
  // console, revealing the diagnostic information associated with the error,
  // including the stack from when the error was created.

  // In the following Node.js and web browser cases, `process` and `window` are
  // spelled as `globalThis` properties to avoid the overweaning gaze of
  // Parcel, which dutifully installs an unnecessary `process` shim if we ever
  // utter that. That unnecessary shim forces the whole bundle into sloppy mode,
  // which in turn breaks SES's strict mode invariant.

  // Disable the polymorphic check for the rest of this file.  It's too noisy
  // when dealing with platform APIs.
  /* eslint-disable @endo/no-polymorphic-call */

  // Node.js
  const globalProcess = globalThis.process || undefined;
  if (
    errorTrapping !== 'none' &&
    typeof globalProcess === 'object' &&
    typeof globalProcess.on === 'function'
  ) {
    let terminate;
    if (errorTrapping === 'platform' || errorTrapping === 'exit') {
      const { exit } = globalProcess;
      // If there is a function-valued process.on but no function-valued process.exit,
      // fail early without caring whether errorTrapping is "platform" only by default.
      typeof exit === 'function' || failFast('missing process.exit');
      terminate = () => exit(globalProcess.exitCode || -1);
    } else if (errorTrapping === 'abort') {
      terminate = globalProcess.abort;
      typeof terminate === 'function' || failFast('missing process.abort');
    }

    globalProcess.on('uncaughtException', error => {
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNCAUGHT_EXCEPTION.md
      ourConsole.error('SES_UNCAUGHT_EXCEPTION:', error);
      if (terminate) {
        terminate();
      }
    });
  }
  if (
    unhandledRejectionTrapping !== 'none' &&
    typeof globalProcess === 'object' &&
    typeof globalProcess.on === 'function'
  ) {
    const handleRejection = reason => {
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNHANDLED_REJECTION.md
      ourConsole.error('SES_UNHANDLED_REJECTION:', reason);
      // 'platform' and 'report' just log the reason.
    };
    // Maybe track unhandled promise rejections.
    const h = makeRejectionHandlers(handleRejection);
    if (h) {
      // Rejection handlers are supported.
      globalProcess.on('unhandledRejection', h.unhandledRejectionHandler);
      globalProcess.on('rejectionHandled', h.rejectionHandledHandler);
      globalProcess.on('exit', h.processTerminationHandler);
    }
  }

  // Browser
  const globalWindow = globalThis.window || undefined;
  if (
    errorTrapping !== 'none' &&
    typeof globalWindow === 'object' &&
    typeof globalWindow.addEventListener === 'function'
  ) {
    globalWindow.addEventListener('error', event => {
      event.preventDefault();
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNCAUGHT_EXCEPTION.md
      ourConsole.error('SES_UNCAUGHT_EXCEPTION:', event.error);
      // 'platform' and 'report' just log the reason.
      if (errorTrapping === 'exit' || errorTrapping === 'abort') {
        globalWindow.location.href = `about:blank`;
      }
    });
  }
  if (
    unhandledRejectionTrapping !== 'none' &&
    typeof globalWindow === 'object' &&
    typeof globalWindow.addEventListener === 'function'
  ) {
    const handleRejection = reason => {
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNHANDLED_REJECTION.md
      ourConsole.error('SES_UNHANDLED_REJECTION:', reason);
    };

    const h = makeRejectionHandlers(handleRejection);
    if (h) {
      // Rejection handlers are supported.
      globalWindow.addEventListener('unhandledrejection', event => {
        event.preventDefault();
        h.unhandledRejectionHandler(event.reason, event.promise);
      });

      globalWindow.addEventListener('rejectionhandled', event => {
        event.preventDefault();
        h.rejectionHandledHandler(event.promise);
      });

      globalWindow.addEventListener('beforeunload', _event => {
        h.processTerminationHandler();
      });
    }
  }
  /* eslint-enable @endo/no-polymorphic-call */

  return { console: ourConsole };
};$h͏_once.tameConsole(tameConsole);
})()
,
// === 43. ses ./src/error/tame-v8-error-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,fromEntries,reflectSet,regexpExec,regexpTest,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,TypeError;$h͏_imports([["../commons.js", [["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arraySlice",[$h͏_a => (arraySlice = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["reflectSet",[$h͏_a => (reflectSet = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["regexpTest",[$h͏_a => (regexpTest = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]]]]]);




















// Permit names from https://v8.dev/docs/stack-trace-api
// Permiting only the names used by error-stack-shim/src/v8StackFrames
// callSiteToFrame to shim the error stack proposal.
const safeV8CallSiteMethodNames = [
  // suppress 'getThis' definitely
  'getTypeName',
  // suppress 'getFunction' definitely
  'getFunctionName',
  'getMethodName',
  'getFileName',
  'getLineNumber',
  'getColumnNumber',
  'getEvalOrigin',
  'isToplevel',
  'isEval',
  'isNative',
  'isConstructor',
  'isAsync',
  // suppress 'isPromiseAll' for now
  // suppress 'getPromiseIndex' for now

  // Additional names found by experiment, absent from
  // https://v8.dev/docs/stack-trace-api
  'getPosition',
  'getScriptNameOrSourceURL',

  'toString'  // TODO replace to use only permitted info
];

// TODO this is a ridiculously expensive way to attenuate callsites.
// Before that matters, we should switch to a reasonable representation.
const safeV8CallSiteFacet = callSite => {
  const methodEntry = name => {
    const method = callSite[name];
    return [name, () => apply(method, callSite, [])];
  };
  const o = fromEntries(arrayMap(safeV8CallSiteMethodNames, methodEntry));
  return create(o, {});
};

const safeV8SST = sst => arrayMap(sst, safeV8CallSiteFacet);

// If it has `/node_modules/` anywhere in it, on Node it is likely
// to be a dependent package of the current package, and so to
// be an infrastructure frame to be dropped from concise stack traces.
const FILENAME_NODE_DEPENDENTS_CENSOR = /\/node_modules\//;

// If it begins with `internal/` or `node:internal` then it is likely
// part of the node infrustructre itself, to be dropped from concise
// stack traces.
const FILENAME_NODE_INTERNALS_CENSOR = /^(?:node:)?internal\//;

// Frames within SES `assert.js` should be dropped from concise stack traces, as
// these are just steps towards creating the error object in question.
const FILENAME_ASSERT_CENSOR = /\/packages\/ses\/src\/error\/assert\.js$/;

// Frames within the `eventual-send` shim should be dropped so that concise
// deep stacks omit the internals of the eventual-sending mechanism causing
// asynchronous messages to be sent.
// Note that the eventual-send package will move from agoric-sdk to
// Endo, so this rule will be of general interest.
const FILENAME_EVENTUAL_SEND_CENSOR = /\/packages\/eventual-send\/src\//;

// Frames within the `ses-ava` package should be dropped from concise stack
// traces, as they just support exposing error details to AVA.
const FILENAME_SES_AVA_CENSOR = /\/packages\/ses-ava\/src\/ses-ava-test\.js$/;

// Any stack frame whose `fileName` matches any of these censor patterns
// will be omitted from concise stacks.
// TODO Enable users to configure FILENAME_CENSORS via `lockdown` options.
const FILENAME_CENSORS = [
  FILENAME_NODE_DEPENDENTS_CENSOR,
  FILENAME_NODE_INTERNALS_CENSOR,
  FILENAME_ASSERT_CENSOR,
  FILENAME_EVENTUAL_SEND_CENSOR,
  FILENAME_SES_AVA_CENSOR,
];

// Should a stack frame with this as its fileName be included in a concise
// stack trace?
// Exported only so it can be unit tested.
// TODO Move so that it applies not just to v8.
       const filterFileName = fileName => {
  if (!fileName) {
    // Stack frames with no fileName should appear in concise stack traces.
    return true;
  }
  for (const filter of FILENAME_CENSORS) {
    if (regexpTest(filter, fileName)) {
      return false;
    }
  }
  return true;
};

// The ad-hoc rule of the current pattern is that any likely-file-path or
// likely url-path prefix, ending in a `/.../` should get dropped.
// Anything to the left of the likely path text is kept.
// Everything to the right of `/.../` is kept. Thus
// `'Object.bar (/vat-v1/.../eventual-send/test/deep-send.test.js:13:21)'`
// simplifies to
// `'Object.bar (eventual-send/test/deep-send.test.js:13:21)'`.
//
// See thread starting at
// https://github.com/Agoric/agoric-sdk/issues/2326#issuecomment-773020389
$h͏_once.filterFileName(filterFileName);const CALLSITE_ELLIPSIS_PATTERN1=/^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/;

// The ad-hoc rule of the current pattern is that any likely-file-path or
// likely url-path prefix consisting of `.../` should get dropped.
// Anything to the left of the likely path text is kept.
// Everything to the right of `.../` is kept. Thus
// `'Object.bar (.../eventual-send/test/deep-send.test.js:13:21)'`
// simplifies to
// `'Object.bar (eventual-send/test/deep-send.test.js:13:21)'`.
//
// See thread starting at
// https://github.com/Agoric/agoric-sdk/issues/2326#issuecomment-773020389
const CALLSITE_ELLIPSIS_PATTERN2 = /^((?:.*[( ])?)\.\.\.\/(.+)$/;

// The ad-hoc rule of the current pattern is that any likely-file-path or
// likely url-path prefix, ending in a `/` and prior to `package/` should get
// dropped.
// Anything to the left of the likely path prefix text is kept. `package/` and
// everything to its right is kept. Thus
// `'Object.bar (/Users/markmiller/src/ongithub/agoric/agoric-sdk/packages/eventual-send/test/deep-send.test.js:13:21)'`
// simplifies to
// `'Object.bar (packages/eventual-send/test/deep-send.test.js:13:21)'`.
// Note that `/packages/` is a convention for monorepos encouraged by
// lerna.
const CALLSITE_PACKAGES_PATTERN = /^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/;

// The ad-hoc rule of the current pattern is that any likely-file-path or
// likely url-path prefix of the form `file://` but not `file:///` gets
// dropped.
// Anything to the left of the likely path prefix text is kept. Everything to
// the right of `file://` is kept. Thus
// `'Object.bar (file:///Users/markmiller/src/ongithub/endojs/endo/packages/eventual-send/test/deep-send.test.js:13:21)'` is unchanged but
// `'Object.bar (file://test/deep-send.test.js:13:21)'`

// simplifies to
// `'Object.bar (test/deep-send.test.js:13:21)'`.
// The reason is that `file:///` usually precedes an absolute path which is
// clickable without removing the `file:///`, whereas `file://` usually precedes
// a relative path which, for whatever vscode reason, is not clickable until the
// `file://` is removed.
const CALLSITE_FILE_2SLASH_PATTERN = /^((?:.*[( ])?)file:\/\/([^/].*)$/;

// The use of these callSite patterns below assumes that any match will bind
// capture groups containing the parts of the original string we want
// to keep. The parts outside those capture groups will be dropped from concise
// stacks.
// TODO Enable users to configure CALLSITE_PATTERNS via `lockdown` options.
const CALLSITE_PATTERNS = [
  CALLSITE_ELLIPSIS_PATTERN1,
  CALLSITE_ELLIPSIS_PATTERN2,
  CALLSITE_PACKAGES_PATTERN,
  CALLSITE_FILE_2SLASH_PATTERN,
];

// For a stack frame that should be included in a concise stack trace, if
// `callSiteString` is the original stringified stack frame, return the
// possibly-shorter stringified stack frame that should be shown instead.
// Exported only so it can be unit tested.
// TODO Move so that it applies not just to v8.
/**
 * @param {string} callSiteString
 */
       const shortenCallSiteString = callSiteString => {
  for (const filter of CALLSITE_PATTERNS) {
    const match = regexpExec(filter, callSiteString);
    if (match) {
      return arrayJoin(arraySlice(match, 1), '');
    }
  }
  return callSiteString;
};$h͏_once.shortenCallSiteString(shortenCallSiteString);

       const tameV8ErrorConstructor = (
  OriginalError,
  InitialError,
  errorTaming,
  stackFiltering,
) => {
  if (errorTaming === 'unsafe-debug') {
    throw TypeError(
      'internal: v8+unsafe-debug special case should already be done',
    );
  }
  // TODO: Proper CallSite types
  /** @typedef {{}} CallSite */

  const originalCaptureStackTrace = OriginalError.captureStackTrace;

  const omitFrames =
    stackFiltering === 'concise' || stackFiltering === 'omit-frames';

  const shortenPaths =
    stackFiltering === 'concise' || stackFiltering === 'shorten-paths';

  // const callSiteFilter = _callSite => true;
  const callSiteFilter = callSite => {
    if (omitFrames) {
      // eslint-disable-next-line @endo/no-polymorphic-call
      return filterFileName(callSite.getFileName());
    }
    return true;
  };

  const callSiteStringifier = callSite => {
    let callSiteString = `${callSite}`;
    if (shortenPaths) {
      callSiteString = shortenCallSiteString(callSiteString);
    }
    return `\n  at ${callSiteString}`;
  };

  const stackStringFromSST = (_error, sst) =>
    arrayJoin(
      arrayMap(arrayFilter(sst, callSiteFilter), callSiteStringifier),
      '',
    );

  /**
   * @typedef {object} StructuredStackInfo
   * @property {CallSite[]} callSites
   * @property {undefined} [stackString]
   */

  /**
   * @typedef {object} ParsedStackInfo
   * @property {undefined} [callSites]
   * @property {string} stackString
   */

  // Mapping from error instance to the stack for that instance.
  // The stack info is either the structured stack trace
  // or the generated tamed stack string
  /** @type {WeakMap<Error, ParsedStackInfo | StructuredStackInfo>} */
  const stackInfos = new WeakMap();

  // Use concise methods to obtain named functions without constructors.
  const tamedMethods = {
    // The optional `optFn` argument is for cutting off the bottom of
    // the stack --- for capturing the stack only above the topmost
    // call to that function. Since this isn't the "real" captureStackTrace
    // but instead calls the real one, if no other cutoff is provided,
    // we cut this one off.
    captureStackTrace(error, optFn = tamedMethods.captureStackTrace) {
      if (typeof originalCaptureStackTrace === 'function') {
        // OriginalError.captureStackTrace is only on v8
        apply(originalCaptureStackTrace, OriginalError, [error, optFn]);
        return;
      }
      reflectSet(error, 'stack', '');
    },
    // Shim of proposed special power, to reside by default only
    // in the start compartment, for getting the stack traceback
    // string associated with an error.
    // See https://tc39.es/proposal-error-stacks/
    getStackString(error) {
      let stackInfo = weakmapGet(stackInfos, error);

      if (stackInfo === undefined) {
        // The following will call `prepareStackTrace()` synchronously
        // which will populate stackInfos
        // eslint-disable-next-line no-void
        void error.stack;
        stackInfo = weakmapGet(stackInfos, error);
        if (!stackInfo) {
          stackInfo = { stackString: '' };
          weakmapSet(stackInfos, error, stackInfo);
        }
      }

      // prepareStackTrace() may generate the stackString
      // if errorTaming === 'unsafe'

      if (stackInfo.stackString !== undefined) {
        return stackInfo.stackString;
      }

      const stackString = stackStringFromSST(error, stackInfo.callSites);
      weakmapSet(stackInfos, error, { stackString });

      return stackString;
    },
    prepareStackTrace(error, sst) {
      if (errorTaming === 'unsafe') {
        const stackString = stackStringFromSST(error, sst);
        weakmapSet(stackInfos, error, { stackString });
        return `${error}${stackString}`;
      } else {
        weakmapSet(stackInfos, error, { callSites: sst });
        return '';
      }
    },
  };

  // A prepareFn is a prepareStackTrace function.
  // An sst is a `structuredStackTrace`, which is an array of
  // callsites.
  // A user prepareFn is a prepareFn defined by a client of this API,
  // and provided by assigning to `Error.prepareStackTrace`.
  // A user prepareFn should only receive an attenuated sst, which
  // is an array of attenuated callsites.
  // A system prepareFn is the prepareFn created by this module to
  // be installed on the real `Error` constructor, to receive
  // an original sst, i.e., an array of unattenuated callsites.
  // An input prepareFn is a function the user assigns to
  // `Error.prepareStackTrace`, which might be a user prepareFn or
  // a system prepareFn previously obtained by reading
  // `Error.prepareStackTrace`.

  const defaultPrepareFn = tamedMethods.prepareStackTrace;

  OriginalError.prepareStackTrace = defaultPrepareFn;

  // A weakset branding some functions as system prepareFns, all of which
  // must be defined by this module, since they can receive an
  // unattenuated sst.
  const systemPrepareFnSet = new WeakSet([defaultPrepareFn]);

  const systemPrepareFnFor = inputPrepareFn => {
    if (weaksetHas(systemPrepareFnSet, inputPrepareFn)) {
      return inputPrepareFn;
    }
    // Use concise methods to obtain named functions without constructors.
    const systemMethods = {
      prepareStackTrace(error, sst) {
        weakmapSet(stackInfos, error, { callSites: sst });
        return inputPrepareFn(error, safeV8SST(sst));
      },
    };
    weaksetAdd(systemPrepareFnSet, systemMethods.prepareStackTrace);
    return systemMethods.prepareStackTrace;
  };

  // Note `stackTraceLimit` accessor already defined by
  // tame-error-constructor.js
  defineProperties(InitialError, {
    captureStackTrace: {
      value: tamedMethods.captureStackTrace,
      writable: true,
      enumerable: false,
      configurable: true,
    },
    prepareStackTrace: {
      get() {
        return OriginalError.prepareStackTrace;
      },
      set(inputPrepareStackTraceFn) {
        if (typeof inputPrepareStackTraceFn === 'function') {
          const systemPrepareFn = systemPrepareFnFor(inputPrepareStackTraceFn);
          OriginalError.prepareStackTrace = systemPrepareFn;
        } else {
          OriginalError.prepareStackTrace = defaultPrepareFn;
        }
      },
      enumerable: false,
      configurable: true,
    },
  });

  return tamedMethods.getStackString;
};$h͏_once.tameV8ErrorConstructor(tameV8ErrorConstructor);
})()
,
// === 44. ses ./src/error/tame-error-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_ERROR,apply,construct,defineProperties,setPrototypeOf,getOwnPropertyDescriptor,defineProperty,getOwnPropertyDescriptors,NativeErrors,tameV8ErrorConstructor;$h͏_imports([["../commons.js", [["FERAL_ERROR",[$h͏_a => (FERAL_ERROR = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["../permits.js", [["NativeErrors",[$h͏_a => (NativeErrors = $h͏_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor",[$h͏_a => (tameV8ErrorConstructor = $h͏_a)]]]]]);












// Present on at least FF and XS. Proposed by Error-proposal. The original
// is dangerous, so tameErrorConstructor replaces it with a safe one.
// We grab the original here before it gets replaced.
const stackDesc = getOwnPropertyDescriptor(FERAL_ERROR.prototype, 'stack');
const stackGetter = stackDesc && stackDesc.get;

// Use concise methods to obtain named functions without constructors.
const tamedMethods = {
  getStackString(error) {
    if (typeof stackGetter === 'function') {
      return apply(stackGetter, error, []);
    } else if ('stack' in error) {
      // The fallback is to just use the de facto `error.stack` if present
      return `${error.stack}`;
    }
    return '';
  },
};
let initialGetStackString = tamedMethods.getStackString;

               function tameErrorConstructor(
  errorTaming = 'safe',
  stackFiltering = 'concise',
) {
  const ErrorPrototype = FERAL_ERROR.prototype;

  const { captureStackTrace: originalCaptureStackTrace } = FERAL_ERROR;
  const platform =
    typeof originalCaptureStackTrace === 'function' ? 'v8' : 'unknown';

  const makeErrorConstructor = (_ = {}) => {
    // eslint-disable-next-line no-shadow
    const ResultError = function Error(...rest) {
      let error;
      if (new.target === undefined) {
        error = apply(FERAL_ERROR, this, rest);
      } else {
        error = construct(FERAL_ERROR, rest, new.target);
      }
      if (platform === 'v8') {
        // TODO Likely expensive!
        apply(originalCaptureStackTrace, FERAL_ERROR, [error, ResultError]);
      }
      return error;
    };
    defineProperties(ResultError, {
      length: { value: 1 },
      prototype: {
        value: ErrorPrototype,
        writable: false,
        enumerable: false,
        configurable: false,
      },
    });
    return ResultError;
  };
  const InitialError = makeErrorConstructor({ powers: 'original' });
  const SharedError = makeErrorConstructor({ powers: 'none' });
  defineProperties(ErrorPrototype, {
    constructor: { value: SharedError },
  });

  for (const NativeError of NativeErrors) {
    setPrototypeOf(NativeError, SharedError);
  }

  // https://v8.dev/docs/stack-trace-api#compatibility advises that
  // programmers can "always" set `Error.stackTraceLimit`
  // even on non-v8 platforms. On non-v8
  // it will have no effect, but this advice only makes sense
  // if the assignment itself does not fail, which it would
  // if `Error` were naively frozen. Hence, we add setters that
  // accept but ignore the assignment on non-v8 platforms.
  defineProperties(InitialError, {
    stackTraceLimit: {
      get() {
        if (typeof FERAL_ERROR.stackTraceLimit === 'number') {
          // FERAL_ERROR.stackTraceLimit is only on v8
          return FERAL_ERROR.stackTraceLimit;
        }
        return undefined;
      },
      set(newLimit) {
        if (typeof newLimit !== 'number') {
          // silently do nothing. This behavior doesn't precisely
          // emulate v8 edge-case behavior. But given the purpose
          // of this emulation, having edge cases err towards
          // harmless seems the safer option.
          return;
        }
        if (typeof FERAL_ERROR.stackTraceLimit === 'number') {
          // FERAL_ERROR.stackTraceLimit is only on v8
          FERAL_ERROR.stackTraceLimit = newLimit;
          // We place the useless return on the next line to ensure
          // that anything we place after the if in the future only
          // happens if the then-case does not.
          // eslint-disable-next-line no-useless-return
          return;
        }
      },
      // WTF on v8 stackTraceLimit is enumerable
      enumerable: false,
      configurable: true,
    },
  });

  if (errorTaming === 'unsafe-debug' && platform === 'v8') {
    // This case is a kludge to work around
    // https://github.com/endojs/endo/issues/1798
    // https://github.com/endojs/endo/issues/2348
    // https://github.com/Agoric/agoric-sdk/issues/8662

    defineProperties(InitialError, {
      prepareStackTrace: {
        get() {
          return FERAL_ERROR.prepareStackTrace;
        },
        set(newPrepareStackTrace) {
          FERAL_ERROR.prepareStackTrace = newPrepareStackTrace;
        },
        enumerable: false,
        configurable: true,
      },
      captureStackTrace: {
        value: FERAL_ERROR.captureStackTrace,
        writable: true,
        enumerable: false,
        configurable: true,
      },
    });

    const descs = getOwnPropertyDescriptors(InitialError);
    defineProperties(SharedError, {
      stackTraceLimit: descs.stackTraceLimit,
      prepareStackTrace: descs.prepareStackTrace,
      captureStackTrace: descs.captureStackTrace,
    });

    return {
      '%InitialGetStackString%': initialGetStackString,
      '%InitialError%': InitialError,
      '%SharedError%': SharedError,
    };
  }

  // The default SharedError much be completely powerless even on v8,
  // so the lenient `stackTraceLimit` accessor does nothing on all
  // platforms.
  defineProperties(SharedError, {
    stackTraceLimit: {
      get() {
        return undefined;
      },
      set(_newLimit) {
        // do nothing
      },
      enumerable: false,
      configurable: true,
    },
  });

  if (platform === 'v8') {
    // `SharedError.prepareStackTrace`, if it exists, must also be
    // powerless. However, from what we've heard, depd expects to be able to
    // assign to it without the assignment throwing. It is normally a function
    // that returns a stack string to be magically added to error objects.
    // However, as long as we're adding a lenient standin, we may as well
    // accommodate any who expect to get a function they can call and get
    // a string back. This prepareStackTrace is a do-nothing function that
    // always returns the empty string.
    defineProperties(SharedError, {
      prepareStackTrace: {
        get() {
          return () => '';
        },
        set(_prepareFn) {
          // do nothing
        },
        enumerable: false,
        configurable: true,
      },
      captureStackTrace: {
        value: (errorish, _constructorOpt) => {
          defineProperty(errorish, 'stack', {
            value: '',
          });
        },
        writable: false,
        enumerable: false,
        configurable: true,
      },
    });
  }

  if (platform === 'v8') {
    initialGetStackString = tameV8ErrorConstructor(
      FERAL_ERROR,
      InitialError,
      errorTaming,
      stackFiltering,
    );
  } else if (errorTaming === 'unsafe' || errorTaming === 'unsafe-debug') {
    // v8 has too much magic around their 'stack' own property for it to
    // coexist cleanly with this accessor. So only install it on non-v8

    // Error.prototype.stack property as proposed at
    // https://tc39.es/proposal-error-stacks/
    // with the fix proposed at
    // https://github.com/tc39/proposal-error-stacks/issues/46
    // On others, this still protects from the override mistake,
    // essentially like enable-property-overrides.js would
    // once this accessor property itself is frozen, as will happen
    // later during lockdown.
    //
    // However, there is here a change from the intent in the current
    // state of the proposal. If experience tells us whether this change
    // is a good idea, we should modify the proposal accordingly. There is
    // much code in the world that assumes `error.stack` is a string. So
    // where the proposal accommodates secure operation by making the
    // property optional, we instead accommodate secure operation by
    // having the secure form always return only the stable part, the
    // stringified error instance, and omitting all the frame information
    // rather than omitting the property.
    defineProperties(ErrorPrototype, {
      stack: {
        get() {
          return initialGetStackString(this);
        },
        set(newValue) {
          defineProperties(this, {
            stack: {
              value: newValue,
              writable: true,
              enumerable: true,
              configurable: true,
            },
          });
        },
      },
    });
  } else {
    // v8 has too much magic around their 'stack' own property for it to
    // coexist cleanly with this accessor. So only install it on non-v8
    defineProperties(ErrorPrototype, {
      stack: {
        get() {
          // https://github.com/tc39/proposal-error-stacks/issues/46
          // allows this to not add an unpleasant newline. Otherwise
          // we should fix this.
          return `${this}`;
        },
        set(newValue) {
          defineProperties(this, {
            stack: {
              value: newValue,
              writable: true,
              enumerable: true,
              configurable: true,
            },
          });
        },
      },
    });
  }

  return {
    '%InitialGetStackString%': initialGetStackString,
    '%InitialError%': InitialError,
    '%SharedError%': SharedError,
  };
}$h͏_once.default(      tameErrorConstructor);
})()
,
// === 45. ses ./src/module-load.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getenv,Map,Set,TypeError,arrayJoin,arrayMap,arrayPush,arraySome,create,freeze,generatorNext,generatorThrow,getOwnPropertyNames,isArray,isPrimitive,mapGet,mapHas,mapSet,promiseThen,setAdd,values,weakmapGet,weakmapHas,makeError,annotateError,q,b,X;$h͏_imports([["@endo/env-options", [["getEnvironmentOption",[$h͏_a => (getenv = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arraySome",[$h͏_a => (arraySome = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["generatorNext",[$h͏_a => (generatorNext = $h͏_a)]],["generatorThrow",[$h͏_a => (generatorThrow = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["promiseThen",[$h͏_a => (promiseThen = $h͏_a)]],["setAdd",[$h͏_a => (setAdd = $h͏_a)]],["values",[$h͏_a => (values = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas",[$h͏_a => (weakmapHas = $h͏_a)]]]],["./error/assert.js", [["makeError",[$h͏_a => (makeError = $h͏_a)]],["annotateError",[$h͏_a => (annotateError = $h͏_a)]],["q",[$h͏_a => (q = $h͏_a)]],["b",[$h͏_a => (b = $h͏_a)]],["X",[$h͏_a => (X = $h͏_a)]]]]]);


























const noop = () => {};

const asyncTrampoline = async (generatorFunc, args, errorWrapper) => {
  await null;
  const iterator = generatorFunc(...args);
  let result = generatorNext(iterator);
  while (!result.done) {
    try {
      // eslint-disable-next-line no-await-in-loop
      const val = await result.value;
      result = generatorNext(iterator, val);
    } catch (error) {
      result = generatorThrow(iterator, errorWrapper(error));
    }
  }
  return result.value;
};

const syncTrampoline = (generatorFunc, args) => {
  const iterator = generatorFunc(...args);
  let result = generatorNext(iterator);
  while (!result.done) {
    try {
      result = generatorNext(iterator, result.value);
    } catch (error) {
      result = generatorThrow(iterator, error);
    }
  }
  return result.value;
};

// `makeAlias` constructs compartment specifier tuples for the `aliases`
// private field of compartments.
// These aliases allow a compartment to alias an internal module specifier to a
// module specifier in an external compartment, and also to create internal
// aliases.
// Both are facilitated by the moduleMap Compartment constructor option.
       const makeAlias = (compartment, specifier) =>
  freeze({ compartment, specifier });

// `resolveAll` pre-computes resolutions of all imports within the compartment
// in which a module was loaded.
$h͏_once.makeAlias(makeAlias);const resolveAll=(imports,resolveHook,fullReferrerSpecifier)=>{
  const resolvedImports = create(null);
  for (const importSpecifier of imports) {
    const fullSpecifier = resolveHook(importSpecifier, fullReferrerSpecifier);
    resolvedImports[importSpecifier] = fullSpecifier;
  }
  return freeze(resolvedImports);
};

const loadModuleSource = (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  moduleSource,
  enqueueJob,
  selectImplementation,
  moduleLoads,
  importMeta,
) => {
  const { resolveHook, name: compartmentName } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  const { imports } = moduleSource;
  if (
    !isArray(imports) ||
    arraySome(imports, specifier => typeof specifier !== 'string')
  ) {
    throw makeError(
      X`Invalid module source: 'imports' must be an array of strings, got ${imports} for module ${q(moduleSpecifier)} of compartment ${q(compartmentName)}`,
    );
  }

  // resolve all imports relative to this referrer module.
  const resolvedImports = resolveAll(imports, resolveHook, moduleSpecifier);
  const moduleRecord = freeze({
    compartment,
    moduleSource,
    moduleSpecifier,
    resolvedImports,
    importMeta,
  });

  // Enqueue jobs to load this module's shallow dependencies.
  for (const fullSpecifier of values(resolvedImports)) {
    // Behold: recursion.
    // eslint-disable-next-line no-use-before-define
    enqueueJob(memoizedLoadWithErrorAnnotation, [
      compartmentPrivateFields,
      moduleAliases,
      compartment,
      fullSpecifier,
      enqueueJob,
      selectImplementation,
      moduleLoads,
    ]);
  }

  return moduleRecord;
};

function* loadWithoutErrorAnnotation(
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  enqueueJob,
  selectImplementation,
  moduleLoads,
) {
  const {
    importHook,
    importNowHook,
    moduleMap,
    moduleMapHook,
    moduleRecords,
    parentCompartment,
  } = weakmapGet(compartmentPrivateFields, compartment);

  if (mapHas(moduleRecords, moduleSpecifier)) {
    return mapGet(moduleRecords, moduleSpecifier);
  }

  // Follow moduleMap, or moduleMapHook if present.
  let moduleDescriptor = moduleMap[moduleSpecifier];
  if (moduleDescriptor === undefined && moduleMapHook !== undefined) {
    moduleDescriptor = moduleMapHook(moduleSpecifier);
  }
  if (moduleDescriptor === undefined) {
    const moduleHook = selectImplementation(importHook, importNowHook);
    if (moduleHook === undefined) {
      const moduleHookName = selectImplementation(
        'importHook',
        'importNowHook',
      );
      throw makeError(
        X`${b(moduleHookName)} needed to load module ${q(
          moduleSpecifier,
        )} in compartment ${q(compartment.name)}`,
      );
    }
    moduleDescriptor = moduleHook(moduleSpecifier);
    // Uninitialized module namespaces throw if we attempt to coerce them into
    // promises.
    if (!weakmapHas(moduleAliases, moduleDescriptor)) {
      moduleDescriptor = yield moduleDescriptor;
    }
  }

  if (typeof moduleDescriptor === 'string') {
    // eslint-disable-next-line @endo/no-polymorphic-call
    throw makeError(
      X`Cannot map module ${q(moduleSpecifier)} to ${q(
        moduleDescriptor,
      )} in parent compartment, use {source} module descriptor`,
      TypeError,
    );
  } else if (!isPrimitive(moduleDescriptor)) {
    // In this shim (and not in XS, and not in the standard we imagine), we
    // allow a module namespace object to stand in for a module descriptor that
    // describes its original {compartment, specifier} so that it can be used
    // to create a link.
    let aliasDescriptor = weakmapGet(moduleAliases, moduleDescriptor);
    if (aliasDescriptor !== undefined) {
      moduleDescriptor = aliasDescriptor;
    }

    if (moduleDescriptor.namespace !== undefined) {
      // { namespace: string, compartment?: Compartment }
      // Namespace module descriptors link to a module instance.

      if (typeof moduleDescriptor.namespace === 'string') {
        // The default compartment is the *parent*, not this child compartment.
        // This is a difference from the legacy {specifier, compartment} module
        // descriptor.
        const {
          compartment: aliasCompartment = parentCompartment,
          namespace: aliasSpecifier,
        } = moduleDescriptor;
        if (
          isPrimitive(aliasCompartment) ||
          !weakmapHas(compartmentPrivateFields, aliasCompartment)
        ) {
          throw makeError(
            X`Invalid compartment in module descriptor for specifier ${q(moduleSpecifier)} in compartment ${q(compartment.name)}`,
          );
        }
        // Behold: recursion.
        // eslint-disable-next-line no-use-before-define
        const aliasRecord = yield memoizedLoadWithErrorAnnotation(
          compartmentPrivateFields,
          moduleAliases,
          aliasCompartment,
          aliasSpecifier,
          enqueueJob,
          selectImplementation,
          moduleLoads,
        );
        mapSet(moduleRecords, moduleSpecifier, aliasRecord);
        return aliasRecord;
      }

      // All remaining objects must either be a module namespace, or be
      // promoted into a module namespace with a virtual module source.
      if (!isPrimitive(moduleDescriptor.namespace)) {
        const { namespace } = moduleDescriptor;
        // Brand-check SES shim module exports namespaces:
        aliasDescriptor = weakmapGet(moduleAliases, namespace);
        if (aliasDescriptor !== undefined) {
          moduleDescriptor = aliasDescriptor;
          // Fall through to processing the resulting {compartment, specifier}
          // alias.
        } else {
          // Promote an arbitrary object to a module namespace with a virtual
          // module source.
          // { namespace: Object }
          const exports = getOwnPropertyNames(namespace);
          /** @type {import('../types.js').VirtualModuleSource} */
          const moduleSource = {
            imports: [],
            exports,
            execute(env) {
              for (const name of exports) {
                env[name] = namespace[name];
              }
            },
          };
          const importMeta = undefined;
          const moduleRecord = loadModuleSource(
            compartmentPrivateFields,
            moduleAliases,
            compartment,
            moduleSpecifier,
            moduleSource,
            enqueueJob,
            selectImplementation,
            moduleLoads,
            importMeta,
          );
          mapSet(moduleRecords, moduleSpecifier, moduleRecord);
          return moduleRecord;
        }
      } else {
        throw makeError(
          X`Invalid compartment in module descriptor for specifier ${q(moduleSpecifier)} in compartment ${q(compartment.name)}`,
        );
      }
    }

    if (moduleDescriptor.source !== undefined) {
      // Module source descriptors create an instance from a module source.
      // The descriptor may contain the module source, or refer to a source
      // loaded in a particular compartment.

      if (typeof moduleDescriptor.source === 'string') {
        // { source: string, importMeta?, specifier?: string, compartment? }
        // A string source is the specifier for a different module source.
        // That source may come from this compartment's parent (default), or
        // from a specified compartment, and the specified compartment may be
        // this compartment to make a duplicate.

        const {
          source: loaderSpecifier,
          specifier: instanceSpecifier = moduleSpecifier,
          compartment: loaderCompartment = parentCompartment,
          importMeta = undefined,
        } = moduleDescriptor;

        // Induce the compartment, possibly a different compartment
        // to load a module source.

        // Behold: recursion.
        // eslint-disable-next-line no-use-before-define
        const loaderRecord = yield memoizedLoadWithErrorAnnotation(
          compartmentPrivateFields,
          moduleAliases,
          loaderCompartment,
          loaderSpecifier,
          enqueueJob,
          selectImplementation,
          moduleLoads,
        );

        // Extract the source of the module from the loader compartment's
        // record.
        const { moduleSource } = loaderRecord;

        // Instantiate that source in our own compartment, possibly with a
        // different specifier for resolving its own imports.
        const moduleRecord = loadModuleSource(
          compartmentPrivateFields,
          moduleAliases,
          compartment,
          instanceSpecifier,
          moduleSource,
          enqueueJob,
          selectImplementation,
          moduleLoads,
          importMeta,
        );
        mapSet(moduleRecords, moduleSpecifier, moduleRecord);
        return moduleRecord;
      } else {
        // { source: ModuleSource, importMeta?, specifier?: string }
        // We assume all non-string module sources are any of the supported
        // kinds of module source: PrecompiledModuleSource,
        // VirtualModuleSource, or a native ModuleSource.

        const {
          source: moduleSource,
          specifier: aliasSpecifier = moduleSpecifier,
          importMeta,
        } = moduleDescriptor;

        const aliasRecord = loadModuleSource(
          compartmentPrivateFields,
          moduleAliases,
          compartment,
          aliasSpecifier,
          moduleSource,
          enqueueJob,
          selectImplementation,
          moduleLoads,
          importMeta,
        );
        mapSet(moduleRecords, moduleSpecifier, aliasRecord);
        return aliasRecord;
      }
    }

    if (moduleDescriptor.archive !== undefined) {
      // { archive: Archive, path: string }
      // We do not support this XS-native module descriptor.
      throw makeError(
        X`Unsupported archive module descriptor for specifier ${q(moduleSpecifier)} in compartment ${q(compartment.name)}`,
      );
    }

    // { record, specifier?, compartment?, importMeta? }
    // A (legacy) module descriptor for when we find the module source (record)
    // but at a different specifier than requested.
    // Providing this {specifier, record} descriptor serves as an ergonomic
    // short-hand for stashing the record, returning a {compartment, specifier}
    // reference, bouncing the module hook, then producing the source (record)
    // when module hook receives the response specifier.
    if (moduleDescriptor.record !== undefined) {
      const {
        compartment: aliasCompartment = compartment,
        specifier: aliasSpecifier = moduleSpecifier,
        record: moduleSource,
        importMeta,
      } = moduleDescriptor;

      const aliasRecord = loadModuleSource(
        compartmentPrivateFields,
        moduleAliases,
        aliasCompartment,
        aliasSpecifier,
        moduleSource,
        enqueueJob,
        selectImplementation,
        moduleLoads,
        importMeta,
      );
      mapSet(moduleRecords, moduleSpecifier, aliasRecord);
      mapSet(moduleRecords, aliasSpecifier, aliasRecord);
      return aliasRecord;
    }

    // { specifier: string, compartment: Compartment }
    // A (legacy) module descriptor that describes a link to a module instance
    // in a specified compartment.
    if (
      moduleDescriptor.compartment !== undefined &&
      moduleDescriptor.specifier !== undefined
    ) {
      if (
        isPrimitive(moduleDescriptor.compartment) ||
        !weakmapHas(compartmentPrivateFields, moduleDescriptor.compartment) ||
        typeof moduleDescriptor.specifier !== 'string'
      ) {
        throw makeError(
          X`Invalid compartment in module descriptor for specifier ${q(moduleSpecifier)} in compartment ${q(compartment.name)}`,
        );
      }
      // Behold: recursion.
      // eslint-disable-next-line no-use-before-define
      const aliasRecord = yield memoizedLoadWithErrorAnnotation(
        compartmentPrivateFields,
        moduleAliases,
        moduleDescriptor.compartment,
        moduleDescriptor.specifier,
        enqueueJob,
        selectImplementation,
        moduleLoads,
      );
      mapSet(moduleRecords, moduleSpecifier, aliasRecord);
      return aliasRecord;
    }

    // A (legacy) behavior: If we do not recognize the module descriptor as a
    // module descriptor, we assume that it is a module source (record):
    const moduleSource = moduleDescriptor;
    const moduleRecord = loadModuleSource(
      compartmentPrivateFields,
      moduleAliases,
      compartment,
      moduleSpecifier,
      moduleSource,
      enqueueJob,
      selectImplementation,
      moduleLoads,
    );
    // Memoize.
    mapSet(moduleRecords, moduleSpecifier, moduleRecord);
    return moduleRecord;
  } else {
    throw makeError(
      X`module descriptor must be a string or object for specifier ${q(
        moduleSpecifier,
      )} in compartment ${q(compartment.name)}`,
    );
  }
}

const memoizedLoadWithErrorAnnotation = (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  enqueueJob,
  selectImplementation,
  moduleLoads,
) => {
  const { name: compartmentName } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  // Prevent data-lock from recursion into branches visited in dependent loads.
  let compartmentLoading = mapGet(moduleLoads, compartment);
  if (compartmentLoading === undefined) {
    compartmentLoading = new Map();
    mapSet(moduleLoads, compartment, compartmentLoading);
  }
  let moduleLoading = mapGet(compartmentLoading, moduleSpecifier);
  if (moduleLoading !== undefined) {
    return moduleLoading;
  }

  moduleLoading = selectImplementation(asyncTrampoline, syncTrampoline)(
    loadWithoutErrorAnnotation,
    [
      compartmentPrivateFields,
      moduleAliases,
      compartment,
      moduleSpecifier,
      enqueueJob,
      selectImplementation,
      moduleLoads,
    ],
    error => {
      // eslint-disable-next-line @endo/no-polymorphic-call
      annotateError(
        error,
        X`${error.message}, loading ${q(moduleSpecifier)} in compartment ${q(
          compartmentName,
        )}`,
      );
      throw error;
    },
  );

  mapSet(compartmentLoading, moduleSpecifier, moduleLoading);

  return moduleLoading;
};

/**
 * If `aggregateErrors` is `false`, the `errors` property of the fulfilled object
 * will always be empty.
 * @param {{errors?: Error[], noAggregateErrors?: boolean}} [options]
 */
const asyncJobQueue = ({ errors = [], noAggregateErrors = false } = {}) => {
  /** @type {Set<Promise<undefined>>} */
  const pendingJobs = new Set();

  /**
   * Enqueues a job that starts immediately but won't be awaited until drainQueue is called.
   *
   * @template {(...args: any[]) => Promise<void>} F
   * @param {F} func - An async function to execute
   * @param {Parameters<F>} args - Arguments to pass to the function
   * @returns {void}
   */
  const enqueueJob = (func, args) => {
    setAdd(
      pendingJobs,
      promiseThen(func(...args), noop, error => {
        if (noAggregateErrors) {
          throw error;
        } else {
          arrayPush(errors, error);
        }
      }),
    );
  };
  /**
   * Sequentially awaits pending jobs and returns an array of errors
   */
  const drainQueue = async () => {
    await null;
    for (const job of pendingJobs) {
      // eslint-disable-next-line no-await-in-loop
      await job;
    }
  };
  return { enqueueJob, drainQueue, errors };
};

/**
 * If `aggregateErrors` is `false`, the `errors` property of the returned object
 * will always be empty.
 * @param {{errors?: Error[], noAggregateErrors?: boolean}} [options]
 */
const syncJobQueue = ({ errors = [], noAggregateErrors = false } = {}) => {
  let current = [];
  let next = [];

  /**
   * Enqueues a job
   *
   * @template {(...args: any[]) => void} F
   * @param {F} func - An async function to execute
   * @param {Parameters<F>} args - Arguments to pass to the function
   * @returns {void}
   */
  const enqueueJob = (func, args) => {
    arrayPush(next, [func, args]);
  };
  const drainQueue = () => {
    // Attention: load bearing flow order. Calling another enqueued function in the
    // synchronous usecase must happen after the one that enqueued it has finished.
    // Jobs enqueued in one pass do not interleave with jobs resulting from them.
    // It's necessary for efficient memoization and to break cycles.
    for (const [func, args] of current) {
      try {
        func(...args);
      } catch (error) {
        if (noAggregateErrors) {
          throw error;
        } else {
          arrayPush(errors, error);
        }
      }
    }
    current = next;
    next = [];
    if (current.length > 0) drainQueue();
  };
  return { enqueueJob, drainQueue, errors };
};

/**
 * @param {object} options
 * @param {Array<Error>} options.errors
 * @param {string} options.errorPrefix
 */
const throwAggregateError = ({ errors, errorPrefix }) => {
  // Throw an aggregate error if there were any errors.
  if (errors.length > 0) {
    const verbose =
      /** @type {'' | 'verbose'} */
      (getenv('COMPARTMENT_LOAD_ERRORS', '', ['verbose'])) === 'verbose';
    throw TypeError(
      `${errorPrefix} (${errors.length} underlying failures: ${arrayJoin(
        arrayMap(errors, error => error.message + (verbose ? error.stack : '')),
        ', ',
      )}`,
    );
  }
};

const preferSync = (_asyncImpl, syncImpl) => syncImpl;
const preferAsync = (asyncImpl, _syncImpl) => asyncImpl;

/**
 * `load` asynchronously gathers the module records for a module and its
 * transitive dependencies.
 * The module records refer to each other by a reference to the dependency's
 * compartment and the specifier of the module within its own compartment.
 * This graph is then ready to be synchronously linked and executed.
 * @param {WeakMap<Compartment, any>} compartmentPrivateFields
 * @param {WeakMap<object, object>} moduleAliases
 * @param {Compartment} compartment
 * @param {string} moduleSpecifier - The module specifier to load.
 * @param {{ noAggregateErrors?: boolean}} options
 */
       const load = async (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  { noAggregateErrors = false } = {},
) => {
  const { name: compartmentName } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  /** @type {Map<object, Map<string, Promise<Record<any, any>>>>} */
  const moduleLoads = new Map();

  const { enqueueJob, drainQueue, errors } = asyncJobQueue({
    noAggregateErrors,
  });

  enqueueJob(memoizedLoadWithErrorAnnotation, [
    compartmentPrivateFields,
    moduleAliases,
    compartment,
    moduleSpecifier,
    enqueueJob,
    preferAsync,
    moduleLoads,
  ]);

  await drainQueue();

  throwAggregateError({
    errors,
    errorPrefix: `Failed to load module ${q(moduleSpecifier)} in package ${q(
      compartmentName,
    )}`,
  });
};

/**
 * `loadNow` synchronously gathers the module records for a specified module
 * and its transitive dependencies.
 * The module records refer to each other by a reference to the dependency's
 * compartment and the specifier of the module within its own compartment.
 * This graph is then ready to be synchronously linked and executed.
 * @param {WeakMap<Compartment, any>} compartmentPrivateFields
 * @param {WeakMap<object, object>} moduleAliases
 * @param {Compartment} compartment
 * @param {string} moduleSpecifier - The module specifier to load.
 * @param {{ noAggregateErrors?: boolean}} options
 */$h͏_once.load(load);

       const loadNow = (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  { noAggregateErrors = false } = {},
) => {
  const { name: compartmentName } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  /** @type {Map<object, Map<string, Promise<Record<any, any>>>>} */
  const moduleLoads = new Map();

  const { enqueueJob, drainQueue, errors } = syncJobQueue({
    noAggregateErrors,
  });

  enqueueJob(memoizedLoadWithErrorAnnotation, [
    compartmentPrivateFields,
    moduleAliases,
    compartment,
    moduleSpecifier,
    enqueueJob,
    preferSync,
    moduleLoads,
  ]);

  drainQueue();

  throwAggregateError({
    errors,
    errorPrefix: `Failed to load module ${q(moduleSpecifier)} in package ${q(
      compartmentName,
    )}`,
  });
};$h͏_once.loadNow(loadNow);
})()
,
// === 46. ses ./src/module-proxy.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let makeAlias,Proxy,TypeError,create,freeze,mapGet,mapHas,mapSet,ownKeys,reflectGet,reflectGetOwnPropertyDescriptor,reflectHas,reflectIsExtensible,reflectPreventExtensions,toStringTagSymbol,weakmapSet,assert;$h͏_imports([["./module-load.js", [["makeAlias",[$h͏_a => (makeAlias = $h͏_a)]]]],["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["reflectGet",[$h͏_a => (reflectGet = $h͏_a)]],["reflectGetOwnPropertyDescriptor",[$h͏_a => (reflectGetOwnPropertyDescriptor = $h͏_a)]],["reflectHas",[$h͏_a => (reflectHas = $h͏_a)]],["reflectIsExtensible",[$h͏_a => (reflectIsExtensible = $h͏_a)]],["reflectPreventExtensions",[$h͏_a => (reflectPreventExtensions = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);































const { quote: q } = assert;

// `deferExports` creates a module's exports proxy, proxied exports, and
// activator.
// A `Compartment` can create a module for any module specifier, regardless of
// whether it is loadable or executable, and use that object as a token that
// can be fed into another compartment's module map.
// Only after the specified module has been analyzed is it possible for the
// module namespace proxy to behave properly, so it throws exceptions until
// after the compartment has begun executing the module.
// The module instance must freeze the proxied exports and activate the exports
// proxy before executing the module.
//
// The module exports proxy's behavior differs from the ECMAScript 262
// specification for "module namespace exotic objects" only in that according
// to the specification value property descriptors have a non-writable "value"
// and this implementation models all properties with accessors.
//
// https://tc39.es/ecma262/#sec-module-namespace-exotic-objects
//
       const deferExports = () => {
  let active = false;
  const exportsTarget = create(null, {
    // Make this appear like an ESM module namespace object.
    [toStringTagSymbol]: {
      value: 'Module',
      writable: false,
      enumerable: false,
      configurable: false,
    },
  });
  return freeze({
    activate() {
      active = true;
    },
    exportsTarget,
    exportsProxy: new Proxy(exportsTarget, {
      get(_target, name, receiver) {
        if (!active) {
          throw TypeError(
            `Cannot get property ${q(
              name,
            )} of module exports namespace, the module has not yet begun to execute`,
          );
        }
        return reflectGet(exportsTarget, name, receiver);
      },
      set(_target, name, _value) {
        throw TypeError(
          `Cannot set property ${q(name)} of module exports namespace`,
        );
      },
      has(_target, name) {
        if (!active) {
          throw TypeError(
            `Cannot check property ${q(
              name,
            )}, the module has not yet begun to execute`,
          );
        }
        return reflectHas(exportsTarget, name);
      },
      deleteProperty(_target, name) {
        throw TypeError(
          `Cannot delete property ${q(name)}s of module exports namespace`,
        );
      },
      ownKeys(_target) {
        if (!active) {
          throw TypeError(
            'Cannot enumerate keys, the module has not yet begun to execute',
          );
        }
        return ownKeys(exportsTarget);
      },
      getOwnPropertyDescriptor(_target, name) {
        if (!active) {
          throw TypeError(
            `Cannot get own property descriptor ${q(
              name,
            )}, the module has not yet begun to execute`,
          );
        }
        return reflectGetOwnPropertyDescriptor(exportsTarget, name);
      },
      preventExtensions(_target) {
        if (!active) {
          throw TypeError(
            'Cannot prevent extensions of module exports namespace, the module has not yet begun to execute',
          );
        }
        return reflectPreventExtensions(exportsTarget);
      },
      isExtensible() {
        if (!active) {
          throw TypeError(
            'Cannot check extensibility of module exports namespace, the module has not yet begun to execute',
          );
        }
        return reflectIsExtensible(exportsTarget);
      },
      getPrototypeOf(_target) {
        return null;
      },
      setPrototypeOf(_target, _proto) {
        throw TypeError('Cannot set prototype of module exports namespace');
      },
      defineProperty(_target, name, _descriptor) {
        throw TypeError(
          `Cannot define property ${q(name)} of module exports namespace`,
        );
      },
      apply(_target, _thisArg, _args) {
        throw TypeError(
          'Cannot call module exports namespace, it is not a function',
        );
      },
      construct(_target, _args) {
        throw TypeError(
          'Cannot construct module exports namespace, it is not a constructor',
        );
      },
    }),
  });
};

/**
 * @typedef {object} DeferredExports
 * @property {Record<string, any>} exportsTarget - The object to which a
 * module's exports will be added.
 * @property {Record<string, any>} exportsProxy - A proxy over the `exportsTarget`,
 * used to expose its "exports" to other compartments.
 * @property {() => void} activate - Activate the `exportsProxy` such that it can
 * be used as a module namespace object.
 */

/**
 * Memoizes the creation of a deferred module exports namespace proxy for any
 * arbitrary full specifier in a compartment. It also records the compartment
 * and specifier affiliated with that module exports namespace proxy so it
 * can be used as an alias into another compartment when threaded through
 * a compartment's `moduleMap` argument.
 *
 * @param {*} compartment - The compartment to retrieve deferred exports from.
 * @param {*} compartmentPrivateFields - The private fields of the compartment.
 * @param {*} moduleAliases - The module aliases of the compartment.
 * @param {string} specifier - The module specifier to retrieve deferred exports for.
 * @returns {DeferredExports} - The deferred exports for the module specifier of
 * the compartment.
 */$h͏_once.deferExports(deferExports);
       const getDeferredExports = (
  compartment,
  compartmentPrivateFields,
  moduleAliases,
  specifier,
) => {
  const { deferredExports } = compartmentPrivateFields;
  if (!mapHas(deferredExports, specifier)) {
    const deferred = deferExports();
    weakmapSet(
      moduleAliases,
      deferred.exportsProxy,
      makeAlias(compartment, specifier),
    );
    mapSet(deferredExports, specifier, deferred);
  }
  return mapGet(deferredExports, specifier);
};$h͏_once.getDeferredExports(getDeferredExports);
})()
,
// === 47. ses ./src/compartment-evaluate.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,arrayPush,create,getOwnPropertyDescriptors,evadeHtmlCommentTest,evadeImportExpressionTest,rejectSomeDirectEvalExpressions,makeSafeEvaluator;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["./transforms.js", [["evadeHtmlCommentTest",[$h͏_a => (evadeHtmlCommentTest = $h͏_a)]],["evadeImportExpressionTest",[$h͏_a => (evadeImportExpressionTest = $h͏_a)]],["rejectSomeDirectEvalExpressions",[$h͏_a => (rejectSomeDirectEvalExpressions = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]]]);













       const provideCompartmentEvaluator = (compartmentFields, options) => {
  const { sloppyGlobalsMode = false, __moduleShimLexicals__ = undefined } =
    options;

  let safeEvaluate;

  if (__moduleShimLexicals__ === undefined && !sloppyGlobalsMode) {
    ({ safeEvaluate } = compartmentFields);
  } else {
    // The scope proxy or global lexicals are different from the
    // shared evaluator so we need to build a new one

    let { globalTransforms } = compartmentFields;
    const { globalObject } = compartmentFields;

    let moduleLexicals;
    if (__moduleShimLexicals__ !== undefined) {
      // When using `evaluate` for ESM modules, as should only occur from the
      // module-shim's module-instance.js, we do not reveal the SES-shim's
      // module-to-program translation, as this is not standardizable behavior.
      // However, the `localTransforms` will come from the `__shimTransforms__`
      // Compartment option in this case, which is a non-standardizable escape
      // hatch so programs designed specifically for the SES-shim
      // implementation may opt-in to use the same transforms for `evaluate`
      // and `import`, at the expense of being tightly coupled to SES-shim.
      globalTransforms = undefined;

      moduleLexicals = create(
        null,
        getOwnPropertyDescriptors(__moduleShimLexicals__),
      );
    }

    ({ safeEvaluate } = makeSafeEvaluator({
      globalObject,
      moduleLexicals,
      globalTransforms,
      sloppyGlobalsMode,
    }));
  }

  return { safeEvaluate };
};$h͏_once.provideCompartmentEvaluator(provideCompartmentEvaluator);

       const compartmentEvaluate = (compartmentFields, source, options) => {
  // Perform this check first to avoid unnecessary sanitizing.
  // TODO Maybe relax string check and coerce instead:
  // https://github.com/tc39/proposal-dynamic-code-brand-checks
  if (typeof source !== 'string') {
    throw TypeError('first argument of evaluate() must be a string');
  }

  // Extract options, and shallow-clone transforms.
  const {
    transforms = [],
    __evadeHtmlCommentTest__ = false,
    __evadeImportExpressionTest__ = false,
    __rejectSomeDirectEvalExpressions__ = true  // Note default on
  } = options;
  const localTransforms = [...transforms];
  if (__evadeHtmlCommentTest__ === true) {
    arrayPush(localTransforms, evadeHtmlCommentTest);
  }
  if (__evadeImportExpressionTest__ === true) {
    arrayPush(localTransforms, evadeImportExpressionTest);
  }
  if (__rejectSomeDirectEvalExpressions__ === true) {
    arrayPush(localTransforms, rejectSomeDirectEvalExpressions);
  }

  const { safeEvaluate } = provideCompartmentEvaluator(
    compartmentFields,
    options,
  );

  return safeEvaluate(source, {
    localTransforms,
  });
};$h͏_once.compartmentEvaluate(compartmentEvaluate);
})()
,
// === 48. ses ./src/module-instance.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let assert,getDeferredExports,ReferenceError,SyntaxError,TypeError,arrayForEach,arrayIncludes,arrayPush,arraySome,arraySort,create,defineProperty,entries,freeze,isArray,keys,mapGet,weakmapGet,reflectHas,assign,compartmentEvaluate;$h͏_imports([["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]],["./module-proxy.js", [["getDeferredExports",[$h͏_a => (getDeferredExports = $h͏_a)]]]],["./commons.js", [["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arraySome",[$h͏_a => (arraySome = $h͏_a)]],["arraySort",[$h͏_a => (arraySort = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["keys",[$h͏_a => (keys = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["reflectHas",[$h͏_a => (reflectHas = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate",[$h͏_a => (compartmentEvaluate = $h͏_a)]]]]]);

























const { quote: q } = assert;

       const makeVirtualModuleInstance = (
  compartmentPrivateFields,
  moduleSource,
  compartment,
  moduleAliases,
  moduleSpecifier,
  resolvedImports,
) => {
  const { exportsProxy, exportsTarget, activate } = getDeferredExports(
    compartment,
    weakmapGet(compartmentPrivateFields, compartment),
    moduleAliases,
    moduleSpecifier,
  );

  const notifiers = create(null);

  if (moduleSource.exports) {
    if (
      !isArray(moduleSource.exports) ||
      arraySome(moduleSource.exports, name => typeof name !== 'string')
    ) {
      throw TypeError(
        `SES virtual module source "exports" property must be an array of strings for module ${moduleSpecifier}`,
      );
    }
    arrayForEach(moduleSource.exports, name => {
      let value = exportsTarget[name];
      const updaters = [];

      const get = () => value;

      const set = newValue => {
        value = newValue;
        for (const updater of updaters) {
          updater(newValue);
        }
      };

      defineProperty(exportsTarget, name, {
        get,
        set,
        enumerable: true,
        configurable: false,
      });

      notifiers[name] = update => {
        arrayPush(updaters, update);
        update(value);
      };
    });
    // This is enough to support import * from cjs - the '*' field doesn't need to be in exports nor exportsTarget because import will only ever access it via notifiers
    notifiers['*'] = update => {
      update(exportsTarget);
    };
  }

  const localState = {
    activated: false,
  };
  return freeze({
    notifiers,
    exportsProxy,
    execute() {
      if (reflectHas(localState, 'errorFromExecute')) {
        throw localState.errorFromExecute;
      }
      if (!localState.activated) {
        activate();
        localState.activated = true;
        try {
          // eslint-disable-next-line @endo/no-polymorphic-call
          moduleSource.execute(exportsTarget, compartment, resolvedImports);
        } catch (err) {
          localState.errorFromExecute = err;
          throw err;
        }
      }
    },
  });
};

// `makeModuleInstance` takes a module's compartment record, the live import
// namespace, and a global object; and produces a module instance.
// The module instance carries the proxied module exports namespace (the
// "exports"), notifiers to update the module's internal import namespace, and
// an idempotent execute function.
// The module exports namespace is a proxy to the proxied exports namespace
// that the execution of the module instance populates.
$h͏_once.makeVirtualModuleInstance(makeVirtualModuleInstance);const makeModuleInstance=(
  privateFields,
  moduleAliases,
  moduleRecord,
  importedInstances,
) => {
  const {
    compartment,
    moduleSpecifier,
    moduleSource,
    importMeta: moduleRecordMeta,
  } = moduleRecord;
  const {
    reexports: exportAlls = [],
    __syncModuleProgram__: functorSource,
    __fixedExportMap__: fixedExportMap = {},
    __liveExportMap__: liveExportMap = {},
    __reexportMap__: reexportMap = {},
    __needsImport__: needsImport = false,
    __needsImportMeta__: needsImportMeta = false,
    __syncModuleFunctor__,
  } = moduleSource;

  const compartmentFields = weakmapGet(privateFields, compartment);

  const { __shimTransforms__, resolveHook, importMetaHook, compartmentImport } =
    compartmentFields;

  const { exportsProxy, exportsTarget, activate } = getDeferredExports(
    compartment,
    compartmentFields,
    moduleAliases,
    moduleSpecifier,
  );

  // {_exportName_: getter} module exports namespace
  // object (eventually proxied).
  const exportsProps = create(null);

  // {_localName_: accessor} proxy traps for moduleLexicals and live bindings.
  // The moduleLexicals object is frozen and the corresponding properties of
  // moduleLexicals must be immutable, so we copy the descriptors.
  const moduleLexicals = create(null);

  // {_localName_: init(initValue) -> initValue} used by the
  // rewritten code to initialize exported fixed bindings.
  const onceVar = create(null);

  // {_localName_: update(newValue)} used by the rewritten code to
  // both initialize and update live bindings.
  const liveVar = create(null);

  const importMeta = create(null);
  if (moduleRecordMeta) {
    assign(importMeta, moduleRecordMeta);
  }
  if (needsImportMeta && importMetaHook) {
    importMetaHook(moduleSpecifier, importMeta);
  }

  /** @type {(fullSpecifier: string) => Promise<ModuleExportsNamespace>} */
  let dynamicImport;
  if (needsImport) {
    /** @param {string} importSpecifier */
    dynamicImport = async importSpecifier =>
      compartmentImport(resolveHook(importSpecifier, moduleSpecifier));
  }

  // {_localName_: [{get, set, notify}]} used to merge all the export updaters.
  const localGetNotify = create(null);

  // {[importName: string]: notify(update(newValue))} Used by code that imports
  // one of this module's exports, so that their update function will
  // be notified when this binding is initialized or updated.
  const notifiers = create(null);

  arrayForEach(entries(fixedExportMap), ([fixedExportName, [localName]]) => {
    let fixedGetNotify = localGetNotify[localName];
    if (!fixedGetNotify) {
      // fixed binding state
      let value;
      let tdz = true;
      /** @type {null | Array<(value: any) => void>} */
      let optUpdaters = [];

      // tdz sensitive getter
      const get = () => {
        if (tdz) {
          throw ReferenceError(`binding ${q(localName)} not yet initialized`);
        }
        return value;
      };

      // leave tdz once
      const init = freeze(initValue => {
        // init with initValue of a declared const binding, and return
        // it.
        if (!tdz) {
          throw TypeError(
            `Internal: binding ${q(localName)} already initialized`,
          );
        }
        value = initValue;
        const updaters = optUpdaters;
        optUpdaters = null;
        tdz = false;
        for (const updater of updaters || []) {
          updater(initValue);
        }
        return initValue;
      });

      // If still tdz, register update for notification later.
      // Otherwise, update now.
      const notify = updater => {
        if (updater === init) {
          // Prevent recursion.
          return;
        }
        if (tdz) {
          arrayPush(optUpdaters || [], updater);
        } else {
          updater(value);
        }
      };

      // Need these for additional exports of the local variable.
      fixedGetNotify = {
        get,
        notify,
      };
      localGetNotify[localName] = fixedGetNotify;
      onceVar[localName] = init;
    }

    exportsProps[fixedExportName] = {
      get: fixedGetNotify.get,
      set: undefined,
      enumerable: true,
      configurable: false,
    };

    notifiers[fixedExportName] = fixedGetNotify.notify;
  });

  arrayForEach(
    entries(liveExportMap),
    ([liveExportName, [localName, setProxyTrap]]) => {
      let liveGetNotify = localGetNotify[localName];
      if (!liveGetNotify) {
        // live binding state
        let value;
        let tdz = true;
        const updaters = [];

        // tdz sensitive getter
        const get = () => {
          if (tdz) {
            throw ReferenceError(
              `binding ${q(liveExportName)} not yet initialized`,
            );
          }
          return value;
        };

        // This must be usable locally for the translation of initializing
        // a declared local live binding variable.
        //
        // For reexported variable, this is also an update function to
        // register for notification with the downstream import, which we
        // must assume to be live. Thus, it can be called independent of
        // tdz but always leaves tdz. Such reexporting creates a tree of
        // bindings. This lets the tree be hooked up even if the imported
        // module instance isn't initialized yet, as may happen in cycles.
        const update = freeze(newValue => {
          value = newValue;
          tdz = false;
          for (const updater of updaters) {
            updater(newValue);
          }
        });

        // tdz sensitive setter
        const set = newValue => {
          if (tdz) {
            throw ReferenceError(`binding ${q(localName)} not yet initialized`);
          }
          value = newValue;
          for (const updater of updaters) {
            updater(newValue);
          }
        };

        // Always register the updater function.
        // If not in tdz, also update now.
        const notify = updater => {
          if (updater === update) {
            // Prevent recursion.
            return;
          }
          arrayPush(updaters, updater);
          if (!tdz) {
            updater(value);
          }
        };

        liveGetNotify = {
          get,
          notify,
        };

        localGetNotify[localName] = liveGetNotify;
        if (setProxyTrap) {
          defineProperty(moduleLexicals, localName, {
            get,
            set,
            enumerable: true,
            configurable: false,
          });
        }
        liveVar[localName] = update;
      }

      exportsProps[liveExportName] = {
        get: liveGetNotify.get,
        set: undefined,
        enumerable: true,
        configurable: false,
      };

      notifiers[liveExportName] = liveGetNotify.notify;
    },
  );

  const notifyStar = update => {
    update(exportsTarget);
  };
  notifiers['*'] = notifyStar;

  // Per the calling convention for the moduleFunctor generated from
  // an ESM, the `imports` function gets called once up front
  // to populate or arrange the population of imports and reexports.
  // The generated code produces an `updateRecord`: the means for
  // the linker to update the imports and exports of the module.
  // The updateRecord must conform to moduleAnalysis.imports
  // updateRecord = Map<specifier, importUpdaters>
  // importUpdaters = Map<importName, [update(newValue)*]>
  function imports(updateRecord) {
    // By the time imports is called, the importedInstances should already be
    // initialized with module instances that satisfy
    // imports.
    // importedInstances = Map[_specifier_, { notifiers, module, execute }]
    // notifiers = { [importName: string]: notify(update(newValue))}

    // export * cannot export default.
    const candidateAll = create(null);
    candidateAll.default = false;
    for (const [specifier, importUpdaters] of updateRecord) {
      const instance = mapGet(importedInstances, specifier);
      // The module instance object is an internal literal, does not bind this,
      // and never revealed outside the SES shim.
      // There are two instantiation sites for instances and they are both in
      // this module.
      // eslint-disable-next-line @endo/no-polymorphic-call
      instance.execute(); // bottom up cycle tolerant
      const { notifiers: importNotifiers } = instance;
      for (const [importName, updaters] of importUpdaters) {
        const importNotify = importNotifiers[importName];
        if (!importNotify) {
          throw SyntaxError(
            `The requested module '${specifier}' does not provide an export named '${importName}'`,
          );
        }
        for (const updater of updaters) {
          importNotify(updater);
        }
      }
      if (arrayIncludes(exportAlls, specifier)) {
        // Make all these imports candidates.
        // Note names don't change in reexporting all
        for (const [importAndExportName, importNotify] of entries(
          importNotifiers,
        )) {
          if (candidateAll[importAndExportName] === undefined) {
            candidateAll[importAndExportName] = importNotify;
          } else {
            // Already a candidate: remove ambiguity.
            candidateAll[importAndExportName] = false;
          }
        }
      }
      if (reexportMap[specifier]) {
        // Make named reexports candidates too.
        for (const [localName, exportedName] of reexportMap[specifier]) {
          candidateAll[exportedName] = importNotifiers[localName];
        }
      }
    }

    for (const [exportName, notify] of entries(candidateAll)) {
      if (!notifiers[exportName] && notify !== false) {
        notifiers[exportName] = notify;

        // exported live binding state
        let value;
        const update = newValue => (value = newValue);
        notify(update);
        exportsProps[exportName] = {
          get() {
            return value;
          },
          set: undefined,
          enumerable: true,
          configurable: false,
        };
      }
    }

    // Sort the module exports namespace as per spec.
    // The module exports namespace will be wrapped in a module namespace
    // exports proxy which will serve as a "module exports namespace exotic
    // object".
    // Sorting properties is not generally reliable because some properties may
    // be symbols, and symbols do not have an inherent relative order, but
    // since all properties of the exports namespace must be keyed by a string
    // and the string must correspond to a valid identifier, sorting these
    // properties works for this specific case.
    arrayForEach(arraySort(keys(exportsProps)), k =>
      defineProperty(exportsTarget, k, exportsProps[k]),
    );

    freeze(exportsTarget);
    activate();
  }

  let optFunctor;
  if (__syncModuleFunctor__ !== undefined) {
    optFunctor = __syncModuleFunctor__;
  } else {
    optFunctor = compartmentEvaluate(compartmentFields, functorSource, {
      globalObject: compartment.globalThis,
      transforms: __shimTransforms__,
      __moduleShimLexicals__: moduleLexicals,
    });
  }
  let didThrow = false;
  let thrownError;
  function execute() {
    if (optFunctor) {
      // uninitialized
      const functor = optFunctor;
      optFunctor = null;
      // initializing - call with `this` of `undefined`.
      try {
        functor(
          freeze({
            imports: freeze(imports),
            onceVar: freeze(onceVar),
            liveVar: freeze(liveVar),
            import: dynamicImport,
            importMeta,
          }),
        );
      } catch (e) {
        didThrow = true;
        thrownError = e;
      }
      // initialized
    }
    if (didThrow) {
      throw thrownError;
    }
  }

  return freeze({
    notifiers,
    exportsProxy,
    execute,
  });
};$h͏_once.makeModuleInstance(makeModuleInstance);
})()
,
// === 49. ses ./src/module-link.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let assert,makeModuleInstance,makeVirtualModuleInstance,Map,ReferenceError,TypeError,entries,isArray,isPrimitive,mapGet,mapHas,mapSet,weakmapGet;$h͏_imports([["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]],["./module-instance.js", [["makeModuleInstance",[$h͏_a => (makeModuleInstance = $h͏_a)]],["makeVirtualModuleInstance",[$h͏_a => (makeVirtualModuleInstance = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]]]]]);



















const { Fail, quote: q } = assert;

// `link` creates `ModuleInstances` and `ModuleNamespaces` for a module and its
// transitive dependencies and connects their imports and exports.
// After linking, the resulting working set is ready to be executed.
// The linker only concerns itself with module namespaces that are objects with
// property descriptors for their exports, which the Compartment proxies with
// the actual `ModuleNamespace`.
       const link = (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
) => {
  const { name: compartmentName, moduleRecords } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  const moduleRecord = mapGet(moduleRecords, moduleSpecifier);
  if (moduleRecord === undefined) {
    throw ReferenceError(
      `Missing link to module ${q(moduleSpecifier)} from compartment ${q(
        compartmentName,
      )}`,
    );
  }

  // Mutual recursion so there's no confusion about which
  // compartment is in context: the module record may be in another
  // compartment, denoted by moduleRecord.compartment.
  // eslint-disable-next-line no-use-before-define
  return instantiate(compartmentPrivateFields, moduleAliases, moduleRecord);
};$h͏_once.link(link);

function mayBePrecompiledModuleSource(moduleSource) {
  return typeof moduleSource.__syncModuleProgram__ === 'string';
}

function validatePrecompiledModuleSource(moduleSource, moduleSpecifier) {
  const { __fixedExportMap__, __liveExportMap__ } = moduleSource;
  !isPrimitive(__fixedExportMap__) ||
    Fail`Property '__fixedExportMap__' of a precompiled module source must be an object, got ${q(
      __fixedExportMap__,
    )}, for module ${q(moduleSpecifier)}`;
  !isPrimitive(__liveExportMap__) ||
    Fail`Property '__liveExportMap__' of a precompiled module source must be an object, got ${q(
      __liveExportMap__,
    )}, for module ${q(moduleSpecifier)}`;
}

function mayBeVirtualModuleSource(moduleSource) {
  return typeof moduleSource.execute === 'function';
}

function validateVirtualModuleSource(moduleSource, moduleSpecifier) {
  const { exports } = moduleSource;
  isArray(exports) ||
    Fail`Invalid module source: 'exports' of a virtual module source must be an array, got ${q(
      exports,
    )}, for module ${q(moduleSpecifier)}`;
}

function validateModuleSource(moduleSource, moduleSpecifier) {
  !isPrimitive(moduleSource) ||
    Fail`Invalid module source: must be of type object, got ${q(
      moduleSource,
    )}, for module ${q(moduleSpecifier)}`;
  const { imports, exports, reexports = [] } = moduleSource;
  isArray(imports) ||
    Fail`Invalid module source: 'imports' must be an array, got ${q(
      imports,
    )}, for module ${q(moduleSpecifier)}`;
  isArray(exports) ||
    Fail`Invalid module source: 'exports' must be an array, got ${q(
      exports,
    )}, for module ${q(moduleSpecifier)}`;
  isArray(reexports) ||
    Fail`Invalid module source: 'reexports' must be an array if present, got ${q(
      reexports,
    )}, for module ${q(moduleSpecifier)}`;
}

       const instantiate = (
  compartmentPrivateFields,
  moduleAliases,
  moduleRecord,
) => {
  const { compartment, moduleSpecifier, resolvedImports, moduleSource } =
    moduleRecord;
  const { instances } = weakmapGet(compartmentPrivateFields, compartment);

  // Memoize.
  if (mapHas(instances, moduleSpecifier)) {
    return mapGet(instances, moduleSpecifier);
  }

  validateModuleSource(moduleSource, moduleSpecifier);

  const importedInstances = new Map();
  let moduleInstance;
  if (mayBePrecompiledModuleSource(moduleSource)) {
    validatePrecompiledModuleSource(moduleSource, moduleSpecifier);
    moduleInstance = makeModuleInstance(
      compartmentPrivateFields,
      moduleAliases,
      moduleRecord,
      importedInstances,
    );
  } else if (mayBeVirtualModuleSource(moduleSource)) {
    validateVirtualModuleSource(moduleSource, moduleSpecifier);
    moduleInstance = makeVirtualModuleInstance(
      compartmentPrivateFields,
      moduleSource,
      compartment,
      moduleAliases,
      moduleSpecifier,
      resolvedImports,
    );
  } else {
    throw TypeError(`Invalid module source, got ${q(moduleSource)}`);
  }

  // Memoize.
  mapSet(instances, moduleSpecifier, moduleInstance);

  // Link dependency modules.
  for (const [importSpecifier, resolvedSpecifier] of entries(resolvedImports)) {
    const importedInstance = link(
      compartmentPrivateFields,
      moduleAliases,
      compartment,
      resolvedSpecifier,
    );
    mapSet(importedInstances, importSpecifier, importedInstance);
  }

  return moduleInstance;
};$h͏_once.instantiate(instantiate);
})()
,
// === 50. ses ./src/compartment.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Map,TypeError,WeakMap,arrayFlatMap,assign,defineProperties,identity,promiseThen,toStringTagSymbol,weakmapGet,weakmapSet,setGlobalObjectSymbolUnscopables,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,assert,assertEqual,q,sharedGlobalPropertyNames,load,loadNow,link,getDeferredExports,compartmentEvaluate,makeSafeEvaluator;$h͏_imports([["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["identity",[$h͏_a => (identity = $h͏_a)]],["promiseThen",[$h͏_a => (promiseThen = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]]]],["./global-object.js", [["setGlobalObjectSymbolUnscopables",[$h͏_a => (setGlobalObjectSymbolUnscopables = $h͏_a)]],["setGlobalObjectConstantProperties",[$h͏_a => (setGlobalObjectConstantProperties = $h͏_a)]],["setGlobalObjectMutableProperties",[$h͏_a => (setGlobalObjectMutableProperties = $h͏_a)]],["setGlobalObjectEvaluators",[$h͏_a => (setGlobalObjectEvaluators = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]],["assertEqual",[$h͏_a => (assertEqual = $h͏_a)]],["q",[$h͏_a => (q = $h͏_a)]]]],["./permits.js", [["sharedGlobalPropertyNames",[$h͏_a => (sharedGlobalPropertyNames = $h͏_a)]]]],["./module-load.js", [["load",[$h͏_a => (load = $h͏_a)]],["loadNow",[$h͏_a => (loadNow = $h͏_a)]]]],["./module-link.js", [["link",[$h͏_a => (link = $h͏_a)]]]],["./module-proxy.js", [["getDeferredExports",[$h͏_a => (getDeferredExports = $h͏_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate",[$h͏_a => (compartmentEvaluate = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]]]);




































































/**
 * @import {ImportHook, ImportMetaHook, ImportNowHook, ModuleDescriptor, ModuleExportsNamespace, ModuleMap, ModuleMapHook, ResolveHook, ModuleSource, CompartmentOptions} from '../types.js'
 * @import {Transform} from './lockdown.js'
 * @import {DeferredExports} from './module-proxy.js'
 */

/**
 * Associates every public module exports namespace with its corresponding
 * compartment and specifier so they can be used to link modules across
 * compartments. The mechanism to thread an alias is to use the
 * {@link Compartment.module} function to obtain the exports namespace of a foreign
 * module and pass it into another compartment's `moduleMap` constructor option
 * @type {WeakMap<ModuleExportsNamespace, Compartment>}
 *
 */
const moduleAliases = new WeakMap();

/**
 * Private fields for `Compartment` instances
 * @typedef {object} CompartmentFields
 * @property {string} name
 * @property {object} globalObject
 * @property {Array<Transform>} globalTransforms
 * @property {(source: string, options?: {localTransforms?: Array<Transform>}) => void} safeEvaluate
 * @property {ResolveHook} resolveHook
 * @property {ImportHook} importHook
 * @property {ImportNowHook} importNowHook
 * @property {ModuleMap} moduleMap
 * @property {ModuleMapHook} moduleMapHook
 * @property {ImportMetaHook} importMetaHook
 * @property {Map<string, ModuleSource>} moduleRecords
 * @property {Array<Transform>} __shimTransforms__
 * @property {DeferredExports} deferredExports
 * @property {Map<string, ModuleDescriptor>} instances
 * @property {Compartment} [parentCompartment]
 * @property {boolean} noNamespaceBox
 * @property {(fullSpecifier: string) => Promise<ModuleExportsNamespace>} compartmentImport
 * @property {boolean} [noAggregateLoadErrors]
 */

/**
 * Captures the private state for each {@link Compartment}
 * @type {WeakMap<Compartment, CompartmentFields>}
 */
const privateFields = new WeakMap();

       const InertCompartment = function Compartment(
  _endowments = {},
  _modules = {},
  _options = {},
) {
  throw TypeError(
    'Compartment.prototype.constructor is not a valid constructor.',
  );
};

/**
 * @param {Compartment} compartment
 * @param {string} specifier
 * @returns {{namespace: ModuleExportsNamespace}}
 */$h͏_once.InertCompartment(InertCompartment);
const compartmentImportNow = (compartment, specifier) => {
  const { execute, exportsProxy } = link(
    privateFields,
    moduleAliases,
    compartment,
    specifier,
  );
  execute();
  return exportsProxy;
};

/** @type {Compartment & {constructor: typeof InertCompartment}} */
       const CompartmentPrototype = {
  constructor: InertCompartment,

  get globalThis() {
    return /** @type {CompartmentFields} */ (weakmapGet(privateFields, this))
      .globalObject;
  },

  get name() {
    return /** @type {CompartmentFields} */ (weakmapGet(privateFields, this))
      .name;
  },

  evaluate(source, options = {}) {
    const compartmentFields = weakmapGet(privateFields, this);
    return compartmentEvaluate(compartmentFields, source, options);
  },

  module(specifier) {
    if (typeof specifier !== 'string') {
      throw TypeError('first argument of module() must be a string');
    }

    const { exportsProxy } = getDeferredExports(
      this,
      weakmapGet(privateFields, this),
      moduleAliases,
      specifier,
    );

    return exportsProxy;
  },

  async import(specifier) {
    const { noNamespaceBox, noAggregateLoadErrors } =
      /** @type {CompartmentFields} */ (weakmapGet(privateFields, this));

    if (typeof specifier !== 'string') {
      throw TypeError('first argument of import() must be a string');
    }

    return promiseThen(
      load(privateFields, moduleAliases, this, specifier, {
        noAggregateErrors: noAggregateLoadErrors,
      }),
      () => {
        // The namespace box is a contentious design and likely to be a breaking
        // change in an appropriately numbered future version.
        const namespace = compartmentImportNow(
          /** @type {Compartment} */ (this),
          specifier,
        );
        if (noNamespaceBox) {
          return namespace;
        }
        // Legacy behavior: box the namespace object so that thenable modules
        // do not get coerced into a promise accidentally.
        return { namespace };
      },
    );
  },

  async load(specifier) {
    if (typeof specifier !== 'string') {
      throw TypeError('first argument of load() must be a string');
    }

    const { noAggregateLoadErrors } = /** @type {CompartmentFields} */ (
      weakmapGet(privateFields, this)
    );

    return load(privateFields, moduleAliases, this, specifier, {
      noAggregateErrors: noAggregateLoadErrors,
    });
  },

  importNow(specifier) {
    if (typeof specifier !== 'string') {
      throw TypeError('first argument of importNow() must be a string');
    }
    const { noAggregateLoadErrors } = /** @type {CompartmentFields} */ (
      weakmapGet(privateFields, this)
    );

    loadNow(privateFields, moduleAliases, this, specifier, {
      noAggregateErrors: noAggregateLoadErrors,
    });
    return compartmentImportNow(/** @type {Compartment} */ (this), specifier);
  },
};

// This causes `String(new Compartment())` to evaluate to `[object Compartment]`.
// The descriptor follows the conventions of other globals with @@toStringTag
// properties, e.g. Math.
$h͏_once.CompartmentPrototype(CompartmentPrototype);defineProperties(CompartmentPrototype,{
  [toStringTagSymbol]: {
    value: 'Compartment',
    writable: false,
    enumerable: false,
    configurable: true,
  },
});

defineProperties(InertCompartment, {
  prototype: { value: CompartmentPrototype },
});

/**
 * @callback MakeCompartmentConstructor
 * @param {MakeCompartmentConstructor} targetMakeCompartmentConstructor
 * @param {Record<string, any>} intrinsics
 * @param {(object: object) => void} markVirtualizedNativeFunction
 * @param {object} [options]
 * @param {Compartment} [options.parentCompartment]
 * @param {boolean} [options.enforceNew]
 * @returns {Compartment['constructor']}
 */

/**
 * "Options bag"-style `Compartment` constructor arguments.
 * @typedef {[options?: CompartmentOptions & { __options__: true }]} CompartmentOptionsArgs
 */

/**
 * Legacy `Compartment` constructor arguments.
 *
 * @deprecated
 * @typedef {[globals?: Map<string, any>, modules?: Map<string, ModuleDescriptor>, options?: CompartmentOptions]} LegacyCompartmentOptionsArgs
 */

/**
 * In order to facilitate migration from the deprecated signature of the
 * compartment constructor,
 *
 * `new Compartent(globals?, modules?, options?)`
 *
 * to the new signature:
 *
 * `new Compartment(options?)`
 *
 * ...where globals and modules are expressed in the options bag instead of
 * positional arguments, this function detects the temporary sigil __options__
 * on the first argument and coerces compartments arguments into a single
 * compartments object.
 * @param {CompartmentOptionsArgs|LegacyCompartmentOptionsArgs} args
 * @returns {CompartmentOptions}
 */
       const compartmentOptions = (...args) => {
  if (args.length === 0) {
    return {};
  }
  if (
    args.length === 1 &&
    typeof args[0] === 'object' &&
    args[0] !== null &&
    '__options__' in args[0]
  ) {
    const { __options__, ...options } = args[0];
    assert(
      __options__ === true,
      `Compartment constructor only supports true __options__ sigil, got ${__options__}`,
    );
    return options;
  } else {
    const [
      globals = /** @type {Map<string, any>} */ ({}),
      modules = /** @type {Map<string, ModuleDescriptor>} */ ({}),
      options = {},
    ] = /** @type {LegacyCompartmentOptionsArgs} */ (args);
    assertEqual(
      options.modules,
      undefined,
      `Compartment constructor must receive either a module map argument or modules option, not both`,
    );
    assertEqual(
      options.globals,
      undefined,
      `Compartment constructor must receive either globals argument or option, not both`,
    );
    return {
      ...options,
      globals,
      modules,
    };
  }
};

/** @type {MakeCompartmentConstructor} */$h͏_once.compartmentOptions(compartmentOptions);
       const makeCompartmentConstructor = (
  targetMakeCompartmentConstructor,
  intrinsics,
  markVirtualizedNativeFunction,
  { parentCompartment = undefined, enforceNew = false } = {},
) => {
  /**
   *
   * @param {CompartmentOptionsArgs|LegacyCompartmentOptionsArgs} args
   */
  function Compartment(...args) {
    if (enforceNew && new.target === undefined) {
      throw TypeError(
        "Class constructor Compartment cannot be invoked without 'new'",
      );
    }

    // Extract options, and shallow-clone transforms.
    const {
      name = '<unknown>',
      transforms = [],
      __shimTransforms__ = [],
      globals: endowmentsOption = {},
      modules: moduleMapOption = {},
      resolveHook,
      importHook,
      importNowHook,
      moduleMapHook,
      importMetaHook,
      __noNamespaceBox__: noNamespaceBox = false,
      noAggregateLoadErrors = false,
    } = compartmentOptions(...args);
    const globalTransforms = arrayFlatMap(
      [transforms, __shimTransforms__],
      identity,
    );
    const endowments = { __proto__: null, ...endowmentsOption };
    const moduleMap = { __proto__: null, ...moduleMapOption };

    // Map<FullSpecifier, ModuleCompartmentRecord>
    const moduleRecords = new Map();
    // Map<FullSpecifier, ModuleInstance>
    const instances = new Map();
    // Map<FullSpecifier, {ExportsProxy, ProxiedExports, activate()}>
    const deferredExports = new Map();

    const globalObject = {};

    const compartment = this;

    setGlobalObjectSymbolUnscopables(globalObject);

    // We must initialize all constant properties first because
    // `makeSafeEvaluator` may use them to create optimized bindings
    // in the evaluator.
    // TODO: consider merging into a single initialization if internal
    // evaluator is no longer eagerly created
    setGlobalObjectConstantProperties(globalObject);

    const { safeEvaluate } = makeSafeEvaluator({
      globalObject,
      globalTransforms,
      sloppyGlobalsMode: false,
    });

    setGlobalObjectMutableProperties(globalObject, {
      intrinsics,
      newGlobalPropertyNames: sharedGlobalPropertyNames,
      makeCompartmentConstructor: targetMakeCompartmentConstructor,
      parentCompartment: this,
      markVirtualizedNativeFunction,
    });

    // TODO: maybe add evalTaming to the Compartment constructor 3rd options?
    setGlobalObjectEvaluators(
      globalObject,
      safeEvaluate,
      markVirtualizedNativeFunction,
    );

    assign(globalObject, endowments);

    /**
     * In support dynamic import in a module source loaded by this compartment,
     * like `await import(importSpecifier)`, induces this compartment to import
     * a module, returning a promise for the resulting module exports
     * namespace.
     * Unlike `compartment.import`, never creates a box object for the
     * namespace as that behavior is deprecated and inconsistent with the
     * standard behavior of dynamic import.
     * Obliges the caller to resolve import specifiers to their corresponding
     * full specifier.
     * That is, every module must have its own dynamic import function that
     * closes over the surrounding module's full module specifier and calls
     * through to this function.
     * @param {string} fullSpecifier - A full specifier is a key in the
     * compartment's module memo.
     * The method `compartment.import` accepts a full specifier, but dynamic
     * import accepts an import specifier and resolves it to a full specifier
     * relative to the calling module's full specifier.
     * @returns {Promise<ModuleExportsNamespace>}
     */
    const compartmentImport = async fullSpecifier => {
      if (typeof resolveHook !== 'function') {
        throw TypeError(
          `Compartment does not support dynamic import: no configured resolveHook for compartment ${q(name)}`,
        );
      }
      await load(privateFields, moduleAliases, compartment, fullSpecifier, {
        noAggregateErrors: noAggregateLoadErrors,
      });
      const { execute, exportsProxy } = link(
        privateFields,
        moduleAliases,
        compartment,
        fullSpecifier,
      );
      execute();
      return exportsProxy;
    };

    weakmapSet(privateFields, this, {
      name: `${name}`,
      globalTransforms,
      globalObject,
      safeEvaluate,
      resolveHook,
      importHook,
      importNowHook,
      moduleMap,
      moduleMapHook,
      importMetaHook,
      moduleRecords,
      __shimTransforms__,
      deferredExports,
      instances,
      parentCompartment,
      noNamespaceBox,
      compartmentImport,
      noAggregateLoadErrors,
    });
  }

  Compartment.prototype = CompartmentPrototype;

  return Compartment;
};$h͏_once.makeCompartmentConstructor(makeCompartmentConstructor);
})()
,
// === 51. ses ./src/get-anonymous-intrinsics.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,Float32Array,Map,Set,String,getOwnPropertyDescriptor,getPrototypeOf,iterateArray,iterateMap,iterateSet,iterateString,matchAllRegExp,matchAllSymbol,regexpPrototype,globalThis,assign,AsyncGeneratorFunctionInstance,ArrayBuffer,InertCompartment;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["Float32Array",[$h͏_a => (Float32Array = $h͏_a)]],["Map",[$h͏_a => (Map = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["iterateArray",[$h͏_a => (iterateArray = $h͏_a)]],["iterateMap",[$h͏_a => (iterateMap = $h͏_a)]],["iterateSet",[$h͏_a => (iterateSet = $h͏_a)]],["iterateString",[$h͏_a => (iterateString = $h͏_a)]],["matchAllRegExp",[$h͏_a => (matchAllRegExp = $h͏_a)]],["matchAllSymbol",[$h͏_a => (matchAllSymbol = $h͏_a)]],["regexpPrototype",[$h͏_a => (regexpPrototype = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["AsyncGeneratorFunctionInstance",[$h͏_a => (AsyncGeneratorFunctionInstance = $h͏_a)]],["ArrayBuffer",[$h͏_a => (ArrayBuffer = $h͏_a)]]]],["./compartment.js", [["InertCompartment",[$h͏_a => (InertCompartment = $h͏_a)]]]]]);





















/**
 * Object.getConstructorOf()
 * Helper function to improve readability, similar to Object.getPrototypeOf().
 *
 * @param {object} obj
 */
function getConstructorOf(obj) {
  return getPrototypeOf(obj).constructor;
}

// getAnonymousIntrinsics uses a utility function to construct an arguments
// object, since it cannot have one of its own and also be a const export.
function makeArguments() {
  // eslint-disable-next-line prefer-rest-params
  return arguments;
}

/**
 * getAnonymousIntrinsics()
 * Get the intrinsics not otherwise reachable by named own property
 * traversal from the global object.
 *
 * @returns {object}
 */
       const getAnonymousIntrinsics = () => {
  const InertFunction = FERAL_FUNCTION.prototype.constructor;

  // 9.2.4.1 %ThrowTypeError%

  const argsCalleeDesc = getOwnPropertyDescriptor(makeArguments(), 'callee');
  const ThrowTypeError = argsCalleeDesc && argsCalleeDesc.get;

  // 21.1.5.2 The %StringIteratorPrototype% Object

  // eslint-disable-next-line no-new-wrappers
  const StringIteratorObject = iterateString(new String());
  const StringIteratorPrototype = getPrototypeOf(StringIteratorObject);

  // 21.2.7.1 The %RegExpStringIteratorPrototype% Object
  const RegExpStringIterator =
    regexpPrototype[matchAllSymbol] && matchAllRegExp(/./);
  const RegExpStringIteratorPrototype =
    RegExpStringIterator && getPrototypeOf(RegExpStringIterator);

  // 22.1.5.2 The %ArrayIteratorPrototype% Object

  // eslint-disable-next-line no-array-constructor
  const ArrayIteratorObject = iterateArray([]);
  const ArrayIteratorPrototype = getPrototypeOf(ArrayIteratorObject);

  // 22.2.1 The %TypedArray% Intrinsic Object

  const TypedArray = getPrototypeOf(Float32Array);

  // 23.1.5.2 The %MapIteratorPrototype% Object

  const MapIteratorObject = iterateMap(new Map());
  const MapIteratorPrototype = getPrototypeOf(MapIteratorObject);

  // 23.2.5.2 The %SetIteratorPrototype% Object

  const SetIteratorObject = iterateSet(new Set());
  const SetIteratorPrototype = getPrototypeOf(SetIteratorObject);

  // 25.1.2 The %IteratorPrototype% Object

  const IteratorPrototype = getPrototypeOf(ArrayIteratorPrototype);

  // 25.2.1 The GeneratorFunction Constructor

  // eslint-disable-next-line no-empty-function
  function* GeneratorFunctionInstance() {}
  const GeneratorFunction = getConstructorOf(GeneratorFunctionInstance);

  // 25.2.3 Properties of the GeneratorFunction Prototype Object

  const Generator = GeneratorFunction.prototype;

  // 25.7.1 The AsyncFunction Constructor

  // eslint-disable-next-line no-empty-function
  async function AsyncFunctionInstance() {}
  const AsyncFunction = getConstructorOf(AsyncFunctionInstance);

  const intrinsics = {
    '%InertFunction%': InertFunction,
    '%ArrayIteratorPrototype%': ArrayIteratorPrototype,
    '%InertAsyncFunction%': AsyncFunction,
    '%Generator%': Generator,
    '%InertGeneratorFunction%': GeneratorFunction,
    '%IteratorPrototype%': IteratorPrototype,
    '%MapIteratorPrototype%': MapIteratorPrototype,
    '%RegExpStringIteratorPrototype%': RegExpStringIteratorPrototype,
    '%SetIteratorPrototype%': SetIteratorPrototype,
    '%StringIteratorPrototype%': StringIteratorPrototype,
    '%ThrowTypeError%': ThrowTypeError,
    '%TypedArray%': TypedArray,
    '%InertCompartment%': InertCompartment,
  };

  if (AsyncGeneratorFunctionInstance !== undefined) {
    // 25.3.1 The AsyncGeneratorFunction Constructor

    const AsyncGeneratorFunction = getConstructorOf(
      AsyncGeneratorFunctionInstance,
    );

    // 25.3.2.2 AsyncGeneratorFunction.prototype
    const AsyncGenerator = AsyncGeneratorFunction.prototype;
    // 25.5.1 Properties of the AsyncGenerator Prototype Object
    const AsyncGeneratorPrototype = AsyncGenerator.prototype;
    const AsyncIteratorPrototype = getPrototypeOf(AsyncGeneratorPrototype);

    assign(intrinsics, {
      '%AsyncGenerator%': AsyncGenerator,
      '%InertAsyncGeneratorFunction%': AsyncGeneratorFunction,
      '%AsyncGeneratorPrototype%': AsyncGeneratorPrototype,
      '%AsyncIteratorPrototype%': AsyncIteratorPrototype,
    });
  }

  if (globalThis.Iterator) {
    intrinsics['%IteratorHelperPrototype%'] = getPrototypeOf(
      // eslint-disable-next-line @endo/no-polymorphic-call
      globalThis.Iterator.from([]).take(0),
    );
    intrinsics['%WrapForValidIteratorPrototype%'] = getPrototypeOf(
      // eslint-disable-next-line @endo/no-polymorphic-call
      globalThis.Iterator.from({
        next() {
          return { value: undefined };
        },
      }),
    );
  }

  if (globalThis.AsyncIterator) {
    intrinsics['%AsyncIteratorHelperPrototype%'] = getPrototypeOf(
      // eslint-disable-next-line @endo/no-polymorphic-call
      globalThis.AsyncIterator.from([]).take(0),
    );
    intrinsics['%WrapForValidAsyncIteratorPrototype%'] = getPrototypeOf(
      // eslint-disable-next-line @endo/no-polymorphic-call
      globalThis.AsyncIterator.from({ next() {} }),
    );
  }

  const ab = new ArrayBuffer(0);
  // @ts-expect-error TODO How do I add sliceToImmutable to ArrayBuffer type?
  // eslint-disable-next-line @endo/no-polymorphic-call
  const iab = ab.sliceToImmutable();
  const iabProto = getPrototypeOf(iab);
  if (iabProto !== ArrayBuffer.prototype) {
    // In a native implementation, these will be the same prototype
    intrinsics['%ImmutableArrayBufferPrototype%'] = iabProto;
  }

  return intrinsics;
};$h͏_once.getAnonymousIntrinsics(getAnonymousIntrinsics);
})()
,
// === 52. ses ./src/tame-harden.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let freeze;$h͏_imports([["./commons.js", [["freeze",[$h͏_a => (freeze = $h͏_a)]]]]]);


/** @import {Harden} from '../types.js'; */

/** @type {(safeHarden: Harden, hardenTaming: 'safe' | 'unsafe') => Harden} */
       const tameHarden = (safeHarden, hardenTaming) => {
  if (hardenTaming === 'safe') {
    return safeHarden;
  }

  // In on the joke
  Object.isExtensible = () => false;
  Object.isFrozen = () => true;
  Object.isSealed = () => true;
  Reflect.isExtensible = () => false;

  // @ts-expect-error secret property
  if (safeHarden.isFake) {
    // The "safe" hardener is already a fake hardener.
    // Just use it.
    return safeHarden;
  }

  const fakeHarden = arg => arg;
  fakeHarden.isFake = true;
  return freeze(fakeHarden);
};$h͏_once.tameHarden(tameHarden);
freeze(tameHarden);
})()
,
// === 53. ses ./src/tame-symbol-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Symbol,entries,fromEntries,getOwnPropertyDescriptors,defineProperties,arrayMap,functionBind;$h͏_imports([["./commons.js", [["Symbol",[$h͏_a => (Symbol = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["functionBind",[$h͏_a => (functionBind = $h͏_a)]]]]]);









/**
 * This taming provides a tamed alternative to the original `Symbol` constructor
 * that starts off identical, except that all its properties are "temporarily"
 * configurable. The original `Symbol` constructor remains unmodified on
 * the start compartment's global. The tamed alternative is used as the shared
 * `Symbol` constructor on constructed compartments.
 *
 * Starting these properties as configurable assumes two succeeding phases of
 * processing: A permit enforcement phase, that
 * removes all properties not on the permits (which requires them to be
 * configurable) and a global hardening step that freezes all primordials,
 * returning these properties to their expected non-configurable status.
 *
 * The ses shim is constructed to eventually enable vetted shims to run between
 * repair and global hardening. However, such vetted shims would normally
 * run in the start compartment, which continues to use the original unmodified
 * `Symbol`, so they should not normally be affected by the temporary
 * configurability of these properties.
 *
 * Note that the spec refers to the global `Symbol` function as the
 * ["Symbol Constructor"](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-symbol-constructor)
 * even though it has a call behavior (can be called as a function) and does not
 * not have a construct behavior (cannot be called with `new`). Accordingly,
 * to tame it, we must replace it with a function without a construct
 * behavior.
 */
       const tameSymbolConstructor = () => {
  const OriginalSymbol = Symbol;
  const SymbolPrototype = OriginalSymbol.prototype;

  // Bypass Hermes bug, fixed in: https://github.com/facebook/hermes/commit/00f18c89c720e1c34592bb85a1a8d311e6e99599
  // Make a "copy" of the primordial [Symbol "constructor"](https://tc39.es/ecma262/#sec-symbol-description) which maintains all observable behavior. The primordial explicitly throws on `[[Construct]]` and has a `[[Call]]` which ignores the receiver. Binding also maintains the `toString` source as a native function. The `name` is restored below when copying own properties.
  const SharedSymbol = functionBind(Symbol, undefined);

  defineProperties(SymbolPrototype, {
    constructor: {
      value: SharedSymbol
      // leave other `constructor` attributes as is
    },
  });

  const originalDescsEntries = entries(
    getOwnPropertyDescriptors(OriginalSymbol),
  );
  const descs = fromEntries(
    arrayMap(originalDescsEntries, ([name, desc]) => [
      name,
      { ...desc, configurable: true },
    ]),
  );
  defineProperties(SharedSymbol, descs);

  return { '%SharedSymbol%': SharedSymbol };
};$h͏_once.tameSymbolConstructor(tameSymbolConstructor);
})()
,
// === 54. ses ./src/tame-faux-data-properties.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getOwnPropertyDescriptor,apply,defineProperty,toStringTagSymbol;$h͏_imports([["./commons.js", [["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]]]]]);






const throws = thunk => {
  try {
    thunk();
    return false;
  } catch (er) {
    return true;
  }
};

/**
 * Exported for convenience of unit testing. Harmless, but not expected
 * to be useful by itself.
 *
 * @param {any} obj
 * @param {string|symbol} prop
 * @param {any} expectedValue
 * @returns {boolean}
 * Returns whether `tameFauxDataProperty` turned the property in question
 * from an apparent faux data property into the actual data property it
 * seemed to emulate.
 * If this function returns `false`, then we hope no effects happened.
 * However, sniffing out if an accessor property seems to be a faux data
 * property requires invoking the getter and setter functions that might
 * possibly have side effects.
 * `tameFauxDataProperty` is not in a position to tell.
 */
       const tameFauxDataProperty = (obj, prop, expectedValue) => {
  if (obj === undefined) {
    // The object does not exist in this version of the platform
    return false;
  }
  const desc = getOwnPropertyDescriptor(obj, prop);
  if (!desc || 'value' in desc) {
    // The property either doesn't exist, or is already an actual data property.
    return false;
  }
  const { get, set } = desc;
  if (typeof get !== 'function' || typeof set !== 'function') {
    // A faux data property has both a getter and a setter
    return false;
  }
  if (get() !== expectedValue) {
    // The getter called by itself should produce the expectedValue
    return false;
  }
  if (apply(get, obj, []) !== expectedValue) {
    // The getter called with `this === obj` should also return the
    // expectedValue.
    return false;
  }
  const testValue = 'Seems to be a setter';
  const subject1 = { __proto__: null };
  apply(set, subject1, [testValue]);
  if (subject1[prop] !== testValue) {
    // The setter called with an unrelated object as `this` should
    // set the property on the object.
    return false;
  }
  const subject2 = { __proto__: obj };
  apply(set, subject2, [testValue]);
  if (subject2[prop] !== testValue) {
    // The setter called on an object that inherits from `obj` should
    // override the property from `obj` as if by assignment.
    return false;
  }
  if (!throws(() => apply(set, obj, [expectedValue]))) {
    // The setter called with `this === obj` should throw without having
    // caused any effect.
    // This is the test that has the greatest danger of leaving behind some
    // persistent side effect. The most obvious one is to emulate a
    // successful assignment to the property. That's why this test
    // uses `expectedValue`, so that case is likely not to actually
    // change anything.
    return false;
  }
  if ('originalValue' in get) {
    // The ses-shim uniquely, as far as we know, puts an `originalValue`
    // property on the getter, so that reflect property tranversal algorithms,
    // like `harden`, will traverse into the enulated value without
    // calling the getter. That does not happen until `permits-intrinsics.js`
    // which is much later. So if we see one this early, we should
    // not assume we understand what's going on.
    return false;
  }

  // We assume that this code runs before any untrusted code runs, so
  // we do not need to worry about the above conditions passing because of
  // malicious intent. In fact, it runs even before vetted shims are supposed
  // to run, between repair and hardening. Given that, after all these tests
  // pass, we have adequately validated that the property in question is
  // an accessor function whose purpose is suppressing the override mistake,
  // i.e., enabling a non-writable property to be overridden by assignment.
  // In that case, here we *temporarily* turn it into the data property
  // it seems to emulate, but writable so that it does not trigger the
  // override mistake while in this temporary state.

  // For those properties that are also listed in `enablements.js`,
  // that phase will re-enable override for these properties, but
  // via accessor functions that SES controls, so we know what they are
  // doing. In addition, the getter functions installed by
  // `enable-property-overrides.js` have an `originalValue` field
  // enabling meta-traversal code like harden to visit the original value
  // without calling the getter.

  if (desc.configurable === false) {
    // Even though it seems to be a faux data property, we're unable to fix it.
    return false;
  }

  // Many of the `return false;` cases above plausibly should be turned into
  // errors, or an least generate warnings. However, for those, the checks
  // following this phase are likely to signal an error anyway.

  // At this point, we have passed all our sniff checks for validating that
  // it seems to be a faux data property with the expected value. Turn
  // it into the actual data property it emulates, but writable so there is
  // not yet an override mistake problem.

  defineProperty(obj, prop, {
    value: expectedValue,
    writable: true,
    enumerable: desc.enumerable,
    configurable: true,
  });

  return true;
};

/**
 * In JavaScript, the so-called "override mistake" is the inability to
 * override an inherited non-writable data property by assignment. A common
 * workaround is to instead define an accessor property that acts like
 * a non-writable data property, except that it allows an object that
 * inherits this property to override it by assignment. Let's call
 * an access property that acts this way a "faux data property". In this
 * ses-shim, `enable-property-overrides.js` makes the properties listed in
 * `enablements.js` into faux data properties.
 *
 * But the ses-shim is not alone in use of this trick. Starting with the
 * [Iterator Helpers proposal](https://github.com/tc39/proposal-iterator-helpers),
 * some properties are defined as (what we call) faux data properties.
 * Some of these are new properties (`Interator.prototype.constructor`) and
 * some are old data properties converted to accessor properties
 * (`Iterator.prototype[String.toStringTag]`). So the ses-shim needs to be
 * prepared for some enumerated set of properties to already be faux data
 * properties in the platform prior to our initialization.
 *
 * For these possible faux data properties, it is important that
 * `permits.js` describe each as a data property, so that it can further
 * constrain the apparent value (that allegedly would be returned by the
 * getter) according to its own permits.
 *
 * However, at the time of this writing, the precise behavior specified
 * by the iterator-helpers proposal for these faux data properties is
 * novel. We should not be too confident that all further such platform
 * additions do what we would now expect. So, for each of these possible
 * faux data properties, we do some sniffing to see if it behaves as we
 * currently expect a faux data property to act. If not, then
 * `tameFauxDataProperties` tries not to modify it, leaving it to later
 * checks, especially `permits-intrinsics.js`, to error when it sees an
 * unexpected accessor.
 *
 * If one of these enumerated accessor properties does seem to be
 * a faithful faux data property, then `tameFauxDataProperties` itself
 * *tempoarily* turns it into the actual data property that it seems to emulate.
 * This data property starts as writable, so that in this state it will
 * not trigger the override mistake, i.e., assignment to an object inheriting
 * this property is allowed to succeed at overriding this property.
 *
 * For those properties that should be a faux data property rather than an
 * actual one, such as those from the iterator-helpers proposal,
 * they should be listed as such in `enablements.js`, so
 * `enable-property-overrides.js` will turn it back into a faux data property.
 * But one controlled by the ses-shim, whose behavior we understand.
 *
 * `tameFauxDataProperties`, which turns these into actual data properties,
 * happens during the `repairIntrinsics` phase
 * of `lockdown`, before even vetted shim are supposed to run.
 * `enable-property-overrides.js` runs after vetted shims, turning the
 * appropriate ones back into faux data properties. Thus vetted shims
 * can observe the possibly non-conforming state where these are temporarily
 * actual data properties, rather than faux data properties.
 *
 * Coordinate the property enumeration here
 * with `enablements.js`, so the appropriate properties are
 * turned back to faux data properties.
 *
 * @param {Record<any,any>} intrinsics
 */$h͏_once.tameFauxDataProperty(tameFauxDataProperty);
       const tameFauxDataProperties = intrinsics => {
  // https://github.com/tc39/proposal-iterator-helpers
  tameFauxDataProperty(
    intrinsics['%IteratorPrototype%'],
    'constructor',
    intrinsics.Iterator,
  );
  // https://github.com/tc39/proposal-iterator-helpers
  tameFauxDataProperty(
    intrinsics['%IteratorPrototype%'],
    toStringTagSymbol,
    'Iterator',
  );
};$h͏_once.tameFauxDataProperties(tameFauxDataProperties);
})()
,
// === 55. ses ./src/tame-regenerator-runtime.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let defineProperty,iteratorPrototype,iteratorSymbol,hasOwn;$h͏_imports([["./commons.js", [["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["iteratorPrototype",[$h͏_a => (iteratorPrototype = $h͏_a)]],["iteratorSymbol",[$h͏_a => (iteratorSymbol = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]]]);






       const tameRegeneratorRuntime = () => {
  const iter = iteratorPrototype[iteratorSymbol];
  defineProperty(iteratorPrototype, iteratorSymbol, {
    configurable: true,
    get() {
      return iter;
    },
    set(value) {
      // ignore the assignment on IteratorPrototype
      if (this === iteratorPrototype) return;
      if (hasOwn(this, iteratorSymbol)) {
        this[iteratorSymbol] = value;
      }
      defineProperty(this, iteratorSymbol, {
        value,
        writable: true,
        enumerable: true,
        configurable: true,
      });
    },
  });
};$h͏_once.tameRegeneratorRuntime(tameRegeneratorRuntime);
})()
,
// === 56. ses ./src/shim-arraybuffer-transfer.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let ArrayBuffer,arrayBufferPrototype,arrayBufferSlice,arrayBufferGetByteLength,Uint8Array,typedArraySet,globalThis,TypeError,defineProperty;$h͏_imports([["./commons.js", [["ArrayBuffer",[$h͏_a => (ArrayBuffer = $h͏_a)]],["arrayBufferPrototype",[$h͏_a => (arrayBufferPrototype = $h͏_a)]],["arrayBufferSlice",[$h͏_a => (arrayBufferSlice = $h͏_a)]],["arrayBufferGetByteLength",[$h͏_a => (arrayBufferGetByteLength = $h͏_a)]],["Uint8Array",[$h͏_a => (Uint8Array = $h͏_a)]],["typedArraySet",[$h͏_a => (typedArraySet = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]]]]]);











       const shimArrayBufferTransfer = () => {
  if (typeof arrayBufferPrototype.transfer === 'function') {
    // Assume already exists so does not need to be shimmed.
    // Such conditional shimming is ok in this case since ArrayBuffer.p.transfer
    // is already officially part of JS.
    //
    // Empty object because this shim has nothing for `addIntrinsics` to add.
    return {};
  }
  const clone = globalThis.structuredClone;
  if (typeof clone !== 'function') {
    // On a platform with neither `Array.prototype.transfer`
    // nor `structuredClone`, this shim does nothing.
    // For example, Node <= 16 has neither.
    //
    // Empty object because this shim has nothing for `addIntrinsics` to add.
    return {};
    // TODO Rather than doing nothing, should the endo ses-shim throw
    // in this case?
    // throw TypeError(
    //   `Can only shim missing ArrayBuffer.prototype.transfer on a platform with "structuredClone"`,
    // );
    // For example, endo no longer supports Node <= 16. All browsers have
    // `structuredClone`. XS has `Array.prototype.transfer`. Are there still
    // any platforms without both that Endo should still support?
    // What about Hermes?
  }

  /**
   * @type {ThisType<ArrayBuffer>}
   */
  const methods = {
    /**
     * @param {number} [newLength]
     */
    transfer(newLength = undefined) {
      // Using this builtin getter also ensures that `this` is a genuine
      // ArrayBuffer.
      const oldLength = arrayBufferGetByteLength(this);
      if (newLength === undefined || newLength === oldLength) {
        return clone(this, { transfer: [this] });
      }
      if (typeof newLength !== 'number') {
        throw TypeError(`transfer newLength if provided must be a number`);
      }
      if (newLength > oldLength) {
        const result = new ArrayBuffer(newLength);
        const taOld = new Uint8Array(this);
        const taNew = new Uint8Array(result);
        typedArraySet(taNew, taOld);
        // Using clone only to detach, and only after the copy succeeds
        clone(this, { transfer: [this] });
        return result;
      } else {
        const result = arrayBufferSlice(this, 0, newLength);
        // Using clone only to detach, and only after the slice succeeds
        clone(this, { transfer: [this] });
        return result;
      }
    },
  };

  defineProperty(arrayBufferPrototype, 'transfer', {
    // @ts-expect-error
    value: methods.transfer,
    writable: true,
    enumerable: false,
    configurable: true,
  });

  // Empty object because this shim has nothing for `addIntrinsics` to add.
  return {};
};$h͏_once.shimArrayBufferTransfer(shimArrayBufferTransfer);
})()
,
// === 57. ses ./src/reporting.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let functionBind,globalThis,assert;$h͏_imports([["./commons.js", [["functionBind",[$h͏_a => (functionBind = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);


/**
 * @import {Reporter, GroupReporter} from './reporting-types.js'
 */

/**
 * Creates a suitable reporter for internal errors and warnings out of the
 * Node.js console.error to ensure all messages to go stderr, including the
 * group label.
 * Accounts for the extra space introduced by console.error as a delimiter
 * between the indent and subsequent arguments.
 *
 * @param {(...message: Array<any>) => void} print
 */
const makeReportPrinter = print => {
  let indent = false;
  /** @param {Array<any>} args */
  const printIndent = (...args) => {
    if (indent) {
      print(' ', ...args);
    } else {
      print(...args);
    }
  };
  return /** @type {GroupReporter} */ ({
    warn(...args) {
      printIndent(...args);
    },
    error(...args) {
      printIndent(...args);
    },
    groupCollapsed(...args) {
      assert(!indent);
      print(...args);
      indent = true;
    },
    groupEnd() {
      indent = false;
    },
  });
};

const mute = () => {};

/**
 * @param {"platform" | "console" | "none"} reporting
 */
       const chooseReporter = reporting => {
  if (reporting === 'none') {
    return makeReportPrinter(mute);
  }
  if (
    reporting === 'console' ||
    globalThis.window === globalThis ||
    globalThis.importScripts !== undefined
  ) {
    return console;
  }
  if (globalThis.console !== undefined) {
    // On Node.js, we send all feedback to stderr, regardless of purported level.
    const console = globalThis.console;
    const error = functionBind(console.error, console);
    return makeReportPrinter(error);
  }
  if (globalThis.print !== undefined) {
    return makeReportPrinter(globalThis.print);
  }
  return makeReportPrinter(mute);
};

/**
 * @param {string} groupLabel
 * @param {GroupReporter} console
 * @param {(internalConsole: Reporter) => void} callback
 */$h͏_once.chooseReporter(chooseReporter);
       const reportInGroup = (groupLabel, console, callback) => {
  const { warn, error, groupCollapsed, groupEnd } = console;
  const grouping = groupCollapsed && groupEnd;
  let groupStarted = false;
  try {
    return callback({
      warn(...args) {
        if (grouping && !groupStarted) {
          groupCollapsed(groupLabel);
          groupStarted = true;
        }
        warn(...args);
      },
      error(...args) {
        if (grouping && !groupStarted) {
          groupCollapsed(groupLabel);
          groupStarted = true;
        }
        error(...args);
      },
    });
  } finally {
    if (grouping && groupStarted) {
      groupEnd();
      groupStarted = false;
    }
  }
};$h͏_once.reportInGroup(reportInGroup);
})()
,
// === 58. ses ./src/lockdown.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getenv,FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,globalThis,is,ownKeys,stringSplit,noEvalEvaluate,getOwnPropertyNames,getPrototypeOf,makeHardener,makeIntrinsicsCollector,removeUnpermittedIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameModuleSource,tameConsole,tameErrorConstructor,assert,makeAssert,getAnonymousIntrinsics,makeCompartmentConstructor,tameHarden,tameSymbolConstructor,tameFauxDataProperties,tameRegeneratorRuntime,shimArrayBufferTransfer,reportInGroup,chooseReporter;$h͏_imports([["@endo/env-options", [["getEnvironmentOption",[$h͏_a => (getenv = $h͏_a)]]]],["@endo/immutable-arraybuffer/shim.js", []],["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["FERAL_EVAL",[$h͏_a => (FERAL_EVAL = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["noEvalEvaluate",[$h͏_a => (noEvalEvaluate = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./make-hardener.js", [["makeHardener",[$h͏_a => (makeHardener = $h͏_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector",[$h͏_a => (makeIntrinsicsCollector = $h͏_a)]]]],["./permits-intrinsics.js", [["default",[$h͏_a => (removeUnpermittedIntrinsics = $h͏_a)]]]],["./tame-function-constructors.js", [["default",[$h͏_a => (tameFunctionConstructors = $h͏_a)]]]],["./tame-date-constructor.js", [["default",[$h͏_a => (tameDateConstructor = $h͏_a)]]]],["./tame-math-object.js", [["default",[$h͏_a => (tameMathObject = $h͏_a)]]]],["./tame-regexp-constructor.js", [["default",[$h͏_a => (tameRegExpConstructor = $h͏_a)]]]],["./enable-property-overrides.js", [["default",[$h͏_a => (enablePropertyOverrides = $h͏_a)]]]],["./tame-locale-methods.js", [["default",[$h͏_a => (tameLocaleMethods = $h͏_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties",[$h͏_a => (setGlobalObjectConstantProperties = $h͏_a)]],["setGlobalObjectMutableProperties",[$h͏_a => (setGlobalObjectMutableProperties = $h͏_a)]],["setGlobalObjectEvaluators",[$h͏_a => (setGlobalObjectEvaluators = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]],["./permits.js", [["initialGlobalPropertyNames",[$h͏_a => (initialGlobalPropertyNames = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString",[$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./tame-domains.js", [["tameDomains",[$h͏_a => (tameDomains = $h͏_a)]]]],["./tame-module-source.js", [["tameModuleSource",[$h͏_a => (tameModuleSource = $h͏_a)]]]],["./error/tame-console.js", [["tameConsole",[$h͏_a => (tameConsole = $h͏_a)]]]],["./error/tame-error-constructor.js", [["default",[$h͏_a => (tameErrorConstructor = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]],["makeAssert",[$h͏_a => (makeAssert = $h͏_a)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics",[$h͏_a => (getAnonymousIntrinsics = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor",[$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-harden.js", [["tameHarden",[$h͏_a => (tameHarden = $h͏_a)]]]],["./tame-symbol-constructor.js", [["tameSymbolConstructor",[$h͏_a => (tameSymbolConstructor = $h͏_a)]]]],["./tame-faux-data-properties.js", [["tameFauxDataProperties",[$h͏_a => (tameFauxDataProperties = $h͏_a)]]]],["./tame-regenerator-runtime.js", [["tameRegeneratorRuntime",[$h͏_a => (tameRegeneratorRuntime = $h͏_a)]]]],["./shim-arraybuffer-transfer.js", [["shimArrayBufferTransfer",[$h͏_a => (shimArrayBufferTransfer = $h͏_a)]]]],["./reporting.js", [["reportInGroup",[$h͏_a => (reportInGroup = $h͏_a)]],["chooseReporter",[$h͏_a => (chooseReporter = $h͏_a)]]]]]);






























































/** @import {LockdownOptions} from '../types.js' */

const { Fail, details: X, quote: q } = assert;

/** @type {Error=} */
let priorRepairIntrinsics;

/** @type {Error=} */
let priorHardenIntrinsics;

// Build a harden() with an empty fringe.
// Gate it on lockdown.
/**
 * @template T
 * @param {T} ref
 * @returns {T}
 */
const safeHarden = makeHardener();

/**
 * @callback Transform
 * @param {string} source
 * @returns {string}
 */

/**
 * @callback CompartmentConstructor
 * @param {object} endowments
 * @param {object} moduleMap
 * @param {object} [options]
 * @param {Array<Transform>} [options.transforms]
 * @param {Array<Transform>} [options.__shimTransforms__]
 */

// TODO https://github.com/endojs/endo/issues/814
// Lockdown currently allows multiple calls provided that the specified options
// of every call agree.  With experience, we have observed that lockdown should
// only ever need to be called once and that simplifying lockdown will improve
// the quality of audits.

const probeHostEvaluators = () => {
  let functionAllowed;
  try {
    functionAllowed = FERAL_FUNCTION('return true')();
  } catch (_error) {
    // We reach here if the Function() constructor is outright forbidden by a
    // strict Content Security Policy (containing either a `default-src` or a
    // `script-src` directive), not been implemented in the host, or the host
    // is configured to throw an exception instead of `new Function`.
    functionAllowed = false;
  }

  let evalAllowed;
  try {
    evalAllowed = FERAL_EVAL('true');
  } catch (_error) {
    // We reach here if `eval` is outright forbidden by a strict Content Security Policy,
    // not implemented in the host, or the host is configured to throw an exception.
    // We allow this for SES usage that delegates the responsibility to isolate
    // guest code to production code generation.
    evalAllowed = false;
  }

  let directEvalAllowed;
  if (functionAllowed && evalAllowed) {
    directEvalAllowed = FERAL_FUNCTION(
      'eval',
      'SES_changed',
      `\
        eval("SES_changed = true");
        return SES_changed;
      `,
    )(FERAL_EVAL, false);
    // If we get here and SES_changed stayed false, that means the eval was sloppy
    // and indirect, which generally creates a new global.
    // We are going to throw an exception for failing to initialize SES, but
    // good neighbors clean up.
    if (!directEvalAllowed) {
      delete globalThis.SES_changed;
    }
  }

  return { functionAllowed, evalAllowed, directEvalAllowed };
};

/**
 * @param {LockdownOptions} [options]
 */
       const repairIntrinsics = (options = {}) => {
  // First time, absent options default to 'safe'.
  // Subsequent times, absent options default to first options.
  // Thus, all present options must agree with first options.
  // Reconstructing `option` here also ensures that it is a well
  // behaved record, with only own data properties.
  //
  // The `overrideTaming` is not a safety issue. Rather it is a tradeoff
  // between code compatibility, which is better with the `'moderate'`
  // setting, and tool compatibility, which is better with the `'min'`
  // setting. See
  // https://github.com/Agoric/SES-shim/blob/master/packages/ses/README.md#enabling-override-by-assignment)
  // for an explanation of when to use which.
  //
  // The `stackFiltering` is not a safety issue. Rather it is a tradeoff
  // between relevance and completeness of the stack frames shown on the
  // console. Setting`stackFiltering` to `'verbose'` applies no filters, providing
  // the raw stack frames that can be quite verbose. Setting
  // `stackFrameFiltering` to`'concise'` limits the display to the stack frame
  // information most likely to be relevant, eliminating distracting frames
  // such as those from the infrastructure. However, the bug you're trying to
  // track down might be in the infrastructure, in which case the `'verbose'` setting
  // is useful. See
  // [`stackFiltering` options](https://github.com/Agoric/SES-shim/blob/master/packages/ses/docs/lockdown.md#stackfiltering-options)
  // for an explanation.

  const {
    errorTaming = /** @type {'safe' | 'unsafe' | 'unsafe-debug'} */ (
      getenv('LOCKDOWN_ERROR_TAMING', 'safe', ['unsafe', 'unsafe-debug'])
    ),
    errorTrapping = /** @type {'platform' | 'none' | 'report' | 'abort' | 'exit'} */ (
      getenv('LOCKDOWN_ERROR_TRAPPING', 'platform', [
        'none',
        'report',
        'abort',
        'exit',
      ])
    ),
    reporting = /** @type {'platform' | 'console' | 'none'} */ (
      getenv('LOCKDOWN_REPORTING', 'platform', ['console', 'none'])
    ),
    unhandledRejectionTrapping = /** @type {'none' | 'report'} */ (
      getenv('LOCKDOWN_UNHANDLED_REJECTION_TRAPPING', 'report', ['none'])
    ),
    regExpTaming = /** @type {'safe' | 'unsafe'} */ (
      getenv('LOCKDOWN_REGEXP_TAMING', 'safe', ['unsafe'])
    ),
    localeTaming = /** @type {'safe' | 'unsafe'} */ (
      getenv('LOCKDOWN_LOCALE_TAMING', 'safe', ['unsafe'])
    ),
    consoleTaming = /** @type {'unsafe' | 'safe'} */ (
      getenv('LOCKDOWN_CONSOLE_TAMING', 'safe', ['unsafe'])
    ),
    overrideTaming = /** @type {'moderate' | 'min' | 'severe'} */ (
      getenv('LOCKDOWN_OVERRIDE_TAMING', 'moderate', ['min', 'severe'])
    ),
    stackFiltering = /** @type {'concise' | 'omit-frames' | 'shorten-paths' | 'verbose'} */ (
      getenv('LOCKDOWN_STACK_FILTERING', 'concise', [
        'omit-frames',
        'shorten-paths',
        'verbose',
      ])
    ),
    domainTaming = /** @type {'safe' | 'unsafe'} */ (
      getenv('LOCKDOWN_DOMAIN_TAMING', 'safe', ['unsafe'])
    ),
    evalTaming = /** @type {'safe-eval' | 'unsafe-eval' | 'no-eval'} */ (
      getenv('LOCKDOWN_EVAL_TAMING', 'safe-eval', [
        'unsafe-eval',
        'no-eval',
        // deprecated
        'safeEval',
        'unsafeEval',
        'noEval',
      ])
    ),
    overrideDebug = /** @type {string[]} */ (
      arrayFilter(
        stringSplit(getenv('LOCKDOWN_OVERRIDE_DEBUG', ''), ','),
        /** @param {string} debugName */
        debugName => debugName !== '',
      )
    ),
    legacyRegeneratorRuntimeTaming = /** @type {'safe' | 'unsafe-ignore'} */ (
      getenv('LOCKDOWN_LEGACY_REGENERATOR_RUNTIME_TAMING', 'safe', [
        'unsafe-ignore',
      ])
    ),
    __hardenTaming__ = /** @type {'safe' | 'unsafe'} */ (
      getenv('LOCKDOWN_HARDEN_TAMING', 'safe', ['unsafe'])
    ),
    dateTaming, // deprecated
    mathTaming, // deprecated
    ...extraOptions
  } = options;

  // Assert that only supported options were passed.
  // Use Reflect.ownKeys to reject symbol-named properties as well.
  const extraOptionsNames = ownKeys(extraOptions);
  extraOptionsNames.length === 0 ||
    Fail`lockdown(): non supported option ${q(extraOptionsNames)}`;

  const reporter = chooseReporter(reporting);
  const { warn } = reporter;

  if (dateTaming !== undefined) {
    warn(
      `SES The 'dateTaming' option is deprecated and does nothing. In the future specifying it will be an error.`,
    );
  }
  if (mathTaming !== undefined) {
    warn(
      `SES The 'mathTaming' option is deprecated and does nothing. In the future specifying it will be an error.`,
    );
  }

  priorRepairIntrinsics === undefined ||
    // eslint-disable-next-line @endo/no-polymorphic-call
    assert.fail(
      X`Already locked down at ${priorRepairIntrinsics} (SES_ALREADY_LOCKED_DOWN)`,
      TypeError,
    );
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_ALREADY_LOCKED_DOWN.md
  priorRepairIntrinsics = TypeError('Prior lockdown (SES_ALREADY_LOCKED_DOWN)');
  // Tease V8 to generate the stack string and release the closures the stack
  // trace retained:
  priorRepairIntrinsics.stack;

  const { functionAllowed, evalAllowed, directEvalAllowed } =
    probeHostEvaluators();

  if (
    directEvalAllowed === false &&
    evalTaming === 'safe-eval' &&
    (functionAllowed || evalAllowed)
  ) {
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_DIRECT_EVAL.md
    throw TypeError(
      "SES cannot initialize unless 'eval' is the original intrinsic 'eval', suitable for direct eval (dynamically scoped eval) (SES_DIRECT_EVAL)",
    );
  }

  /**
   * Because of packagers and bundlers, etc, multiple invocations of lockdown
   * might happen in separate instantiations of the source of this module.
   * In that case, each one sees its own `firstOptions` variable, so the test
   * above will not detect that lockdown has already happened. We
   * unreliably test some telltale signs that lockdown has run, to avoid
   * trying to lock down a locked down environment. Although the test is
   * unreliable, this is consistent with the SES threat model. SES provides
   * security only if it runs first in a given realm, or if everything that
   * runs before it is SES-aware and cooperative. Neither SES nor anything
   * can protect itself from corrupting code that runs first. For these
   * purposes, code that turns a realm into something that passes these
   * tests without actually locking down counts as corrupting code.
   *
   * The specifics of what this tests for may change over time, but it
   * should be consistent with any setting of the lockdown options.
   */
  const seemsToBeLockedDown = () => {
    return (
      globalThis.Function.prototype.constructor !== globalThis.Function &&
      // @ts-ignore harden is absent on globalThis type def.
      typeof globalThis.harden === 'function' &&
      // @ts-ignore lockdown is absent on globalThis type def.
      typeof globalThis.lockdown === 'function' &&
      globalThis.Date.prototype.constructor !== globalThis.Date &&
      typeof globalThis.Date.now === 'function' &&
      // @ts-ignore does not recognize that Date constructor is a special
      // Function.
      // eslint-disable-next-line @endo/no-polymorphic-call
      is(globalThis.Date.prototype.constructor.now(), NaN)
    );
  };

  if (seemsToBeLockedDown()) {
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_MULTIPLE_INSTANCES.md
    throw TypeError(
      `Already locked down but not by this SES instance (SES_MULTIPLE_INSTANCES)`,
    );
  }

  /**
   * 1. TAME powers & gather intrinsics first.
   */

  tameDomains(domainTaming);

  // Replace Function.prototype.toString with one that recognizes
  // shimmed functions as honorary native functions.
  const markVirtualizedNativeFunction = tameFunctionToString();

  const { addIntrinsics, completePrototypes, finalIntrinsics } =
    makeIntrinsicsCollector(reporter);

  const tamedHarden = tameHarden(safeHarden, __hardenTaming__);
  addIntrinsics({ harden: tamedHarden });

  addIntrinsics(tameFunctionConstructors());

  addIntrinsics(tameDateConstructor());
  addIntrinsics(tameErrorConstructor(errorTaming, stackFiltering));
  addIntrinsics(tameMathObject());
  addIntrinsics(tameRegExpConstructor(regExpTaming));
  addIntrinsics(tameSymbolConstructor());
  addIntrinsics(shimArrayBufferTransfer());
  addIntrinsics(tameModuleSource());

  addIntrinsics(getAnonymousIntrinsics());

  completePrototypes();

  const intrinsics = finalIntrinsics();

  const hostIntrinsics = { __proto__: null };

  // The Node.js Buffer is a derived class of Uint8Array, and as such is often
  // passed around where a Uint8Array is expected.
  if (typeof globalThis.Buffer === 'function') {
    hostIntrinsics.Buffer = globalThis.Buffer;
  }

  /**
   * Wrap console unless suppressed.
   * At the moment, the console is considered a host power in the start
   * compartment, and not a primordial. Hence it is absent from the whilelist
   * and bypasses the intrinsicsCollector.
   *
   * @type {((error: any) => string | undefined) | undefined}
   */
  let optGetStackString;
  if (errorTaming === 'safe') {
    optGetStackString = intrinsics['%InitialGetStackString%'];
  }
  const consoleRecord = tameConsole(
    consoleTaming,
    errorTrapping,
    unhandledRejectionTrapping,
    optGetStackString,
  );
  globalThis.console = /** @type {Console} */ (consoleRecord.console);

  // The untamed Node.js console cannot itself be hardened as it has mutable
  // internal properties, but some of these properties expose internal versions
  // of classes from node's "primordials" concept.
  // eslint-disable-next-line no-underscore-dangle
  if (typeof (/** @type {any} */ (consoleRecord.console)._times) === 'object') {
    // SafeMap is a derived Map class used internally by Node
    // There doesn't seem to be a cleaner way to reach it.
    hostIntrinsics.SafeMap = getPrototypeOf(
      // eslint-disable-next-line no-underscore-dangle
      /** @type {any} */ (consoleRecord.console)._times,
    );
  }

  // @ts-ignore assert is absent on globalThis type def.
  if (
    (errorTaming === 'unsafe' || errorTaming === 'unsafe-debug') &&
    globalThis.assert === assert
  ) {
    // If errorTaming is 'unsafe' or 'unsafe-debug' we replace the
    // global assert with
    // one whose `details` template literal tag does not redact
    // unmarked substitution values. IOW, it blabs information that
    // was supposed to be secret from callers, as an aid to debugging
    // at a further cost in safety.
    // @ts-ignore assert is absent on globalThis type def.
    globalThis.assert = makeAssert(undefined, true);
  }

  // Replace *Locale* methods with their non-locale equivalents
  tameLocaleMethods(intrinsics, localeTaming);

  tameFauxDataProperties(intrinsics);

  /**
   * 2. Enforce PERMITS on shared intrinsics
   */

  // Remove non-standard properties.
  // All remaining functions encountered during whitelisting are
  // branded as honorary native functions.
  reportInGroup(
    'SES Removing unpermitted intrinsics',
    reporter,
    groupReporter =>
      removeUnpermittedIntrinsics(
        intrinsics,
        markVirtualizedNativeFunction,
        groupReporter,
      ),
  );

  // Initialize the powerful initial global, i.e., the global of the
  // start compartment, from the intrinsics.

  setGlobalObjectConstantProperties(globalThis);

  setGlobalObjectMutableProperties(globalThis, {
    intrinsics,
    newGlobalPropertyNames: initialGlobalPropertyNames,
    makeCompartmentConstructor,
    markVirtualizedNativeFunction,
  });

  if (
    evalTaming === 'no-eval' ||
    // deprecated
    evalTaming === 'noEval'
  ) {
    setGlobalObjectEvaluators(
      globalThis,
      noEvalEvaluate,
      markVirtualizedNativeFunction,
    );
  } else if (
    evalTaming === 'safe-eval' ||
    // deprecated
    evalTaming === 'safeEval'
  ) {
    const { safeEvaluate } = makeSafeEvaluator({ globalObject: globalThis });
    setGlobalObjectEvaluators(
      globalThis,
      safeEvaluate,
      markVirtualizedNativeFunction,
    );
  } else if (
    evalTaming === 'unsafe-eval' ||
    // deprecated
    evalTaming === 'unsafeEval'
  ) {
    // Leave eval function and Function constructor of the initial
    // compartment intact.
    // Other compartments will not have access to these evaluators unless a
    // guest program escapes containment.
  }

  /**
   * 3. HARDEN to share the intrinsics.
   *
   * We define hardenIntrinsics here so that options are in scope, but return
   * it to the caller because we intend to eventually allow vetted shims to run
   * between repairs and the hardening of intrinsics and so we can benchmark
   * repair separately from hardening.
   */

  const hardenIntrinsics = () => {
    priorHardenIntrinsics === undefined ||
      // eslint-disable-next-line @endo/no-polymorphic-call
      assert.fail(
        X`Already locked down at ${priorHardenIntrinsics} (SES_ALREADY_LOCKED_DOWN)`,
        TypeError,
      );
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_ALREADY_LOCKED_DOWN.md
    priorHardenIntrinsics = TypeError(
      'Prior lockdown (SES_ALREADY_LOCKED_DOWN)',
    );
    // Tease V8 to generate the stack string and release the closures the stack
    // trace retained:
    priorHardenIntrinsics.stack;

    // Circumvent the override mistake.
    // TODO consider moving this to the end of the repair phase, and
    // therefore before vetted shims rather than afterwards. It is not
    // clear yet which is better.
    // @ts-ignore enablePropertyOverrides does its own input validation
    reportInGroup('SES Enabling property overrides', reporter, groupReporter =>
      enablePropertyOverrides(
        intrinsics,
        overrideTaming,
        groupReporter,
        overrideDebug,
      ),
    );
    if (legacyRegeneratorRuntimeTaming === 'unsafe-ignore') {
      tameRegeneratorRuntime();
    }

    // Finally register and optionally freeze all the intrinsics. This
    // must be the operation that modifies the intrinsics.
    const toHarden = {
      intrinsics,
      hostIntrinsics,
      globals: {
        // Harden evaluators
        Function: globalThis.Function,
        eval: globalThis.eval,
        // @ts-ignore Compartment does exist on globalThis
        Compartment: globalThis.Compartment,

        // Harden Symbol
        Symbol: globalThis.Symbol,
      },
    };

    // Harden Symbol and properties for initialGlobalPropertyNames in the host realm
    for (const prop of getOwnPropertyNames(initialGlobalPropertyNames)) {
      toHarden.globals[prop] = globalThis[prop];
    }

    tamedHarden(toHarden);

    return tamedHarden;
  };

  return hardenIntrinsics;
};$h͏_once.repairIntrinsics(repairIntrinsics);
})()
,
// === 59. ses ./src/lockdown-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,repairIntrinsics;$h͏_imports([["./assert-sloppy-mode.js", []],["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./lockdown.js", [["repairIntrinsics",[$h͏_a => (repairIntrinsics = $h͏_a)]]]]]);








/** @import {LockdownOptions} from '../types.js' */

/**
 * @param {LockdownOptions} [options]
 */
globalThis.lockdown = options => {
  const hardenIntrinsics = repairIntrinsics(options);
  globalThis.harden = hardenIntrinsics();
};

/**
 * @param {LockdownOptions} [options]
 */
globalThis.repairIntrinsics = options => {
  const hardenIntrinsics = repairIntrinsics(options);
  // Reveal hardenIntrinsics after repairs.
  globalThis.hardenIntrinsics = () => {
    // Reveal harden after hardenIntrinsics.
    // Harden is dangerous before hardenIntrinsics because hardening just
    // about anything will inadvertently render intrinsics irreparable.
    // Also, for modules that must work both before or after lockdown (code
    // that is portable between JS and SES), the existence of harden in global
    // scope signals whether such code should attempt to use harden in the
    // defense of its own API.
    // @ts-ignore harden not yet recognized on globalThis.
    globalThis.harden = hardenIntrinsics();
  };
};
})()
,
// === 60. ses ./src/compartment-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,makeCompartmentConstructor,tameFunctionToString,getGlobalIntrinsics,chooseReporter;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor",[$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString",[$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./intrinsics.js", [["getGlobalIntrinsics",[$h͏_a => (getGlobalIntrinsics = $h͏_a)]]]],["./reporting.js", [["chooseReporter",[$h͏_a => (chooseReporter = $h͏_a)]]]]]);





const markVirtualizedNativeFunction = tameFunctionToString();

const muteReporter = chooseReporter('none');

// @ts-ignore Compartment is definitely on globalThis.
globalThis.Compartment = makeCompartmentConstructor(
  makeCompartmentConstructor,
  // Any reporting that would need to be done should have already been done
  // during `lockdown()`.
  // See https://github.com/endojs/endo/pull/2624#discussion_r1840979770
  getGlobalIntrinsics(globalThis, muteReporter),
  markVirtualizedNativeFunction,
  {
    enforceNew: true,
  },
);
})()
,
// === 61. ses ./src/assert-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,assert;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);


globalThis.assert = assert;
})()
,
// === 62. ses ./src/console-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let symbolFor,globalThis,defineCausalConsoleFromLogger,loggedErrorHandler;$h͏_imports([["./commons.js", [["symbolFor",[$h͏_a => (symbolFor = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/console.js", [["defineCausalConsoleFromLogger",[$h͏_a => (defineCausalConsoleFromLogger = $h͏_a)]]]],["./error/assert.js", [["loggedErrorHandler",[$h͏_a => (loggedErrorHandler = $h͏_a)]]]]]);



// TODO possible additional exports. Some are privileged.
// export { loggedErrorHandler };
// export {
//   makeCausalConsole,
//   consoleLevelMethods,
//   consoleOtherMethods,
//   makeLoggingConsoleKit,
//   filterConsole,
//   pumpLogToConsole,
// } from './src/error/console.js';
// export { assertLogs, throwsAndLogs } from './src/error/throws-and-logs.js';

/**
 * Makes a Console like the
 * [SES causal `console`](https://github.com/endojs/endo/blob/master/packages/ses/src/error/README.md)
 * but whose output is redirected to the supplied `logger` function.
 */
const makeCausalConsoleFromLoggerForSesAva =
  defineCausalConsoleFromLogger(loggedErrorHandler);

/**
 *`makeCausalConsoleFromLoggerForSesAva` is privileged because it exposes
 * unredacted error info onto the `Logger` provided by the caller. It
 * should not be made available to non-privileged code.
 *
 * Further, we consider this particular API choice to be experimental
 * and may change in the future. It is currently only intended for use by
 * `@endo/ses-ava`, with which it will be co-maintained.
 *
 * Thus, this `console-shim.js` makes `makeCausalConsoleFromLoggerForSesAva`
 * available on `globalThis` which it *assumes* is the global of the start
 * compartment and is therefore allowed to hold powers that should not be
 * available in constructed compartments. It makes it available as the value of
 * a global property named by a registered symbol named
 * `MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA`.
 *
 * Anyone accessing this, including `@endo/ses-ava`, should feature test for
 * this and be tolerant of its absence. It may indeed disappear from later
 * versions of the ses-shim.
 */
const MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA = symbolFor(
  'MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA',
);

globalThis[MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA] =
  makeCausalConsoleFromLoggerForSesAva;
})()
,
// === 63. ses ./index.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/lockdown-shim.js", []],["./src/compartment-shim.js", []],["./src/assert-shim.js", []],["./src/console-shim.js", []]]);
})()
,
])()
;/*! end SES */
(()=>{var __webpack_modules__={23004(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e;function t(e){var t=!1;return function(){if(t)return;t=!0,e.apply(void 0,arguments)}}var r=__webpack_require__(544866).F,a=r.ERR_MISSING_ARGS,n=r.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function o(e){return e.setHeader&&typeof e.abort=="function"}function i(r,a,s,i){i=t(i);var l=!1;r.on("close",function(){l=!0}),e===undefined&&(e=__webpack_require__(706912)),e(r,{readable:a,writable:s},function(e){if(e)return i(e);l=!0,i()});var c=!1;return function(e){return l||c?void 0:(c=!0,o(r))?r.abort():(0,typeof r.destroy=="function")?r.destroy():(0,void i(e||new n("pipe")))}}function l(e){e()}function c(e,t){return e.pipe(t)}function u(e){return!e.length||typeof e[e.length-1]!=="function"?s:(0,e.pop())}module.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=u(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var s;var o=t.map(function(e,r){var a=r<t.length-1;return i(e,a,r>0,function(e){if(!s&&(s=e),e&&o.forEach(l),a)return;o.forEach(l),n(s)})});return t.reduce(c)}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{__webpack_require__,module}))()},70034(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(275321);let{format:t,inspect:r}=__webpack_require__(879697);let{codes:{ERR_INVALID_ARG_TYPE:a}}=__webpack_require__(499497);let{kResistStopPropagation:n,AggregateError:s,SymbolDispose:o}=__webpack_require__(981452);let i=globalThis.AbortSignal||__webpack_require__(978066).AbortSignal;let l=globalThis.AbortController||__webpack_require__(978066).AbortController;let c=Object.getPrototypeOf(async function(){}).constructor;let u=globalThis.Blob||e.Blob;let m=(e,t)=>{if(e!==undefined&&(e===null||typeof e!=="object"||!("aborted"in e)))throw new a(t,"AbortSignal",e)};module.exports={AggregateError:s,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){if(t)return;t=!0,e.apply(this,r)}},createDeferredPromise:function(){let e;let t;return{promise:new Promise((r,a)=>{e=r,t=a}),resolve:e,reject:t}},promisify(e){return new Promise((t,r)=>{e((e,...a)=>{return e?r(e):(0,t(...a))})})},debuglog(){return function(){}},format:t,inspect:r,types:{isAsyncFunction(e){return e instanceof c},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:u!==void 0?function(e){return e instanceof u}:function(e){return!1},deprecate(e,t){return e},addAbortListener:__webpack_require__(120337).addAbortListener||function(e,t){if(e===undefined)throw new a("signal","AbortSignal",e);m(e,"signal");if(typeof t!=="function")throw new a("listener","Function",t);let r;return e.aborted?queueMicrotask(()=>t()):(e.addEventListener("abort",t,{__proto__:null,once:!0,[n]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[o](){var e;(e=r)===null||e===undefined||e()}}},AbortSignalAny:i.any||function(e){if(e.length===1)return e[0];let t=new l;let r=()=>t.abort();return e.forEach(e=>{m(e,"signals"),e.addEventListener("abort",r,{once:!0})}),t.signal.addEventListener("abort",()=>{e.forEach(e=>e.removeEventListener("abort",r))},{once:!0}),t.signal}},module.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},108496(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(477868);let{AbortError:t,codes:r}=__webpack_require__(499497);let{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:n}=r;let{kEmptyObject:s,once:o}=__webpack_require__(70034);let{validateAbortSignal:i,validateFunction:l,validateObject:c,validateBoolean:u}=__webpack_require__(999767);let{Promise:m,PromisePrototypeThen:h,SymbolDispose:d}=__webpack_require__(981452);let{isClosed:f,isReadable:p,isReadableNodeStream:g,isReadableStream:b,isReadableFinished:y,isReadableErrored:k,isWritable:w,isWritableNodeStream:v,isWritableStream:_,isWritableFinished:j,isWritableErrored:S,isNodeStream:E,willEmitClose:x,kIsClosedPromise:T}=__webpack_require__(249341);let A;function R(e){return e.setHeader&&typeof e.abort=="function"}let M=()=>{};function L(r,u,m){var h,T;if(arguments.length==2?(m=u,u=s):u==null?u=s:c(u,"options"),l(m,"callback"),i(u.signal,"options.signal"),m=o(m),b(r)||_(r))return O(r,u,m);if(!E(r))throw new a("stream",["ReadableStream","WritableStream","Stream"],r);let L=(h=u.readable)!==null&&h!==undefined?h:g(r);let P=(T=u.writable)!==null&&T!==undefined?T:v(r);let B=r._writableState;let C=r._readableState;let N=()=>{!r.writable&&q()};let I=x(r)&&g(r)===L&&v(r)===P;let D=j(r,!1);let q=()=>{if(D=!0,r.destroyed&&(I=!1),I&&(!r.readable||L))return;(!L||F)&&m.call(r)};let F=y(r,!1);let U=()=>{if(F=!0,r.destroyed&&(I=!1),I&&(!r.writable||P))return;(!P||D)&&m.call(r)};let W=e=>{m.call(r,e)};let H=f(r);let z=()=>{H=!0;let e=S(r)||k(r);if(e&&typeof e!=="boolean")return m.call(r,e);if(L&&!F&&g(r,!0)){if(!y(r,!1))return m.call(r,new n)}if(P&&!D){if(!j(r,!1))return m.call(r,new n)}m.call(r)};let $=()=>{H=!0;let e=S(r)||k(r);if(e&&typeof e!=="boolean")return m.call(r,e);m.call(r)};let G=()=>{r.req.on("finish",q)};R(r)?(r.on("complete",q),!I&&r.on("abort",z),r.req?G():r.on("request",G)):P&&!B&&(r.on("end",N),r.on("close",N)),!I&&typeof r.aborted=="boolean"&&r.on("aborted",z),r.on("end",U),r.on("finish",q),u.error!==!1&&r.on("error",W),r.on("close",z),H?e.nextTick(z):B!==null&&B!==undefined&&B.errorEmitted||C!==null&&C!==undefined&&C.errorEmitted?!I&&e.nextTick($):!L&&(!I||p(r))&&(D||w(r)===!1)||!P&&(!I||w(r))&&(F||p(r)===!1)?e.nextTick($):C&&r.req&&r.aborted&&e.nextTick($);let V=()=>{m=M,r.removeListener("aborted",z),r.removeListener("complete",q),r.removeListener("abort",z),r.removeListener("request",G),r.req&&r.req.removeListener("finish",q),r.removeListener("end",N),r.removeListener("close",N),r.removeListener("finish",q),r.removeListener("end",U),r.removeListener("error",W),r.removeListener("close",z)};if(u.signal&&!H){let a=()=>{let e=m;V(),e.call(r,new t(undefined,{cause:u.signal.reason}))};if(u.signal.aborted)e.nextTick(a);else{let e=(A=A||__webpack_require__(70034).addAbortListener)(u.signal,a);let t=m;m=o((...a)=>{e[d](),t.apply(r,a)})}}return V}function O(r,a,n){let s=!1;let i=M;if(a.signal)if(i=()=>{s=!0,n.call(r,new t(undefined,{cause:a.signal.reason}))},a.signal.aborted)e.nextTick(i);else{let e=(A=A||__webpack_require__(70034).addAbortListener)(a.signal,i);let t=n;n=o((...a)=>{e[d](),t.apply(r,a)})}let l=(...t)=>{!s&&e.nextTick(()=>n.apply(r,t))};return h(r[T].promise,l,l),M}function P(e,t){var r;let a=!1;return t===null&&(t=s),(r=t)!==null&&r!==undefined&&r.cleanup&&(u(t.cleanup,"cleanup"),a=t.cleanup),new m((r,n)=>{let s=L(e,t,e=>{a&&s(),e?n(e):r()})})}module.exports=L,module.exports.finished=P}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},117644(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(477868);let{ArrayIsArray:t,Promise:r,SymbolAsyncIterator:a,SymbolDispose:n}=__webpack_require__(981452);let s=__webpack_require__(108496);let{once:o}=__webpack_require__(70034);let i=__webpack_require__(207978);let l=__webpack_require__(218244);let{aggregateTwoErrors:c,codes:{ERR_INVALID_ARG_TYPE:u,ERR_INVALID_RETURN_VALUE:m,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:d,ERR_STREAM_PREMATURE_CLOSE:f},AbortError:p}=__webpack_require__(499497);let{validateFunction:g,validateAbortSignal:b}=__webpack_require__(999767);let{isIterable:y,isReadable:k,isReadableNodeStream:w,isNodeStream:v,isTransformStream:_,isWebStream:j,isReadableStream:S,isReadableFinished:E}=__webpack_require__(249341);let x=globalThis.AbortController||__webpack_require__(978066).AbortController;let T;let A;let R;function M(e,t,r){let a=!1;return e.on("close",()=>{a=!0}),{destroy:t=>{if(a)return;a=!0,i.destroyer(e,t||new d("pipe"))},cleanup:s(e,{readable:t,writable:r},e=>{a=!e})}}function L(e){return g(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function O(e){if(y(e))return e;if(w(e))return P(e);throw new u("val",["Readable","Iterable","AsyncIterable"],e)}async function*P(e){!A&&(A=__webpack_require__(671610)),yield*A.prototype[a].call(e)}async function B(e,t,a,{end:n}){let o;let i=null;let l=e=>{if(e&&(o=e),i){let e=i;i=null,e()}};let u=()=>new r((e,t)=>{o?t(o):i=()=>{o?t(o):e()}});t.on("drain",l);let m=s(t,{readable:!1},l);try{for await(let r of(t.writableNeedDrain&&await u(),e))!t.write(r)&&await u();n&&(t.end(),await u()),a()}catch(e){a(o!==e?c(o,e):e)}finally{m(),t.off("drain",l)}}async function C(e,t,r,{end:a}){_(t)&&(t=t.writable);let n=t.getWriter();try{for await(let t of e)await n.ready,n.write(t).catch(()=>{});await n.ready,a&&await n.close(),r()}catch(e){try{await n.abort(e),r(e)}catch(e){r(e)}}}function N(...e){return I(e,o(L(e)))}function I(r,a,s){if(r.length===1&&t(r[0])&&(r=r[0]),r.length<2)throw new h("streams");let o=new x;let i=o.signal;let c=s===null||s===undefined?undefined:s.signal;let d=[];function f(){I(new p)}b(c,"options.signal"),R=R||__webpack_require__(70034).addAbortListener;let g;c&&(g=R(c,f));let E;let A;let L=[];let P=0;function N(e){I(e,--P==0)}function I(t,r){var s;if(t&&(!E||E.code==="ERR_STREAM_PREMATURE_CLOSE")&&(E=t),!E&&!r)return;while(L.length)L.shift()(E);(s=g)===null||s===undefined||s[n](),o.abort(),r&&(!E&&d.forEach(e=>e()),e.nextTick(a,E,A))}let q;for(let t=0;t<r.length;t++){let a=r[t];let n=t<r.length-1;let o=t>0;let c=n||(s===null||s===undefined?undefined:s.end)!==!1;let h=t===r.length-1;if(v(a)){if(c){let{destroy:e,cleanup:t}=M(a,n,o);L.push(e),k(a)&&h&&d.push(t)}function F(e){e&&e.name!=="AbortError"&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"&&N(e)}a.on("error",F),k(a)&&h&&d.push(()=>{a.removeListener("error",F)})}if(t===0)if(typeof a=="function"){if(!y(q=a({signal:i})))throw new m("Iterable, AsyncIterable or Stream","source",q)}else q=y(a)||w(a)||_(a)?a:l.from(a);else if(typeof a=="function"){if(_(q)){var U;q=O((U=q)===null||U===undefined?undefined:U.readable)}else q=O(q);if(q=a(q,{signal:i}),n){if(!y(q,!0))throw new m("AsyncIterable",`transform[${t-1}]`,q)}else{var W;!T&&(T=__webpack_require__(810958));let t=new T({objectMode:!0});let r=(W=q)===null||W===undefined?undefined:W.then;if(typeof r=="function")P++,r.call(q,r=>{A=r,r!=null&&t.write(r),c&&t.end(),e.nextTick(N)},r=>{t.destroy(r),e.nextTick(N,r)});else if(y(q,!0))P++,B(q,t,N,{end:c});else if(S(q)||_(q)){let e=q.readable||q;P++,B(e,t,N,{end:c})}else throw new m("AsyncIterable or Promise","destination",q);let{destroy:a,cleanup:n}=M(q=t,!1,!0);L.push(a),h&&d.push(n)}}else if(v(a)){if(w(q)){P+=2;let e=D(q,a,N,{end:c});k(a)&&h&&d.push(e)}else if(_(q)||S(q)){let e=q.readable||q;P++,B(e,a,N,{end:c})}else if(y(q))P++,B(q,a,N,{end:c});else throw new u("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],q);q=a}else if(j(a)){if(w(q))P++,C(O(q),a,N,{end:c});else if(S(q)||y(q))P++,C(q,a,N,{end:c});else if(_(q))P++,C(q.readable,a,N,{end:c});else throw new u("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],q);q=a}else q=l.from(a)}return(i!==null&&i!==undefined&&i.aborted||c!==null&&c!==undefined&&c.aborted)&&e.nextTick(f),q}function D(t,r,a,{end:n}){let o=!1;if(r.on("close",()=>{!o&&a(new f)}),t.pipe(r,{end:!1}),n){function i(){o=!0,r.end()}E(t)?e.nextTick(i):t.once("end",i)}else a();return s(t,{readable:!0,writable:!1},e=>{let r=t._readableState;e&&e.code==="ERR_STREAM_PREMATURE_CLOSE"&&r&&r.ended&&!r.errored&&!r.errorEmitted?t.once("end",a).once("error",a):a(e)}),s(r,{readable:!1,writable:!0},a)}module.exports={pipelineImpl:I,pipeline:N}}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},120337(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=typeof Reflect=="object"?Reflect:null;var t=e&&typeof e.apply=="function"?e.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};var r;function a(e){console&&console.warn&&console.warn(e)}r=e&&typeof e.ownKeys=="function"?e.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}module.exports=s,module.exports.once=b,s.EventEmitter=s,s.prototype._events=undefined,s.prototype._eventsCount=0,s.prototype._maxListeners=undefined;var o=10;function i(e){if(typeof e!=="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return e._maxListeners===undefined?s.defaultMaxListeners:(0,e._maxListeners)}function c(e,t,r,n){var s;var o;var c;if(i(r),(o=e._events)===undefined?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==undefined&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),c=o[t]),c===undefined)c=o[t]=r,++e._eventsCount;else if(typeof c=="function"?c=o[t]=n?[r,c]:[c,r]:n?c.unshift(r):c.push(r),(s=l(e))>0&&c.length>s&&!c.warned){c.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners "+"added. Use emitter.setMaxListeners() to "+"increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=c.length,a(u)}return e}function u(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length==0)?this.listener.call(this.target):(0,this.listener.apply(this.target,arguments))}function m(e,t,r){var a={fired:!1,wrapFn:undefined,target:e,type:t,listener:r};var n=u.bind(a);return n.listener=r,a.wrapFn=n,n}function h(e,t,r){var a=e._events;if(a===undefined)return[];var n=a[t];return n===undefined?[]:(0,typeof n=="function")?r?[n.listener||n]:[n]:(0,r?g(n):f(n,n.length))}function d(e){var t=this._events;if(t!==undefined){var r=t[e];if(typeof r=="function")return 1;if(r!==undefined)return r.length}return 0}function f(e,t){var r=new Array(t);for(var a=0;a<t;++a)r[a]=e[a];return r}function p(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function g(e){var t=new Array(e.length);for(var r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function b(e,t){return new Promise(function(r,a){function n(r){e.removeListener(t,s),a(r)}function s(){typeof e.removeListener=="function"&&e.removeListener("error",n),r([].slice.call(arguments))}k(e,t,s,{once:!0}),t!=="error"&&y(e,n,{once:!0})})}function y(e,t,r){typeof e.on=="function"&&k(e,"error",t,r)}function k(e,t,r,a){if(typeof e.on=="function")a.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function n(s){a.once&&e.removeEventListener(t,n),r(s)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if(typeof e!=="number"||e<0||n(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),s.init=function(){(this._events===undefined||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||undefined},s.prototype.setMaxListeners=function(e){if(typeof e!=="number"||e<0||n(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){var r=[];for(var a=1;a<arguments.length;a++)r.push(arguments[a]);var n=e==="error";var s=this._events;if(s!==undefined)n=n&&s.error===undefined;else if(!n)return!1;if(n){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var i=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw i.context=o,i}var l=s[e];if(l===undefined)return!1;if(typeof l=="function")t(l,this,r);else{var c=l.length;var u=f(l,c);for(var a=0;a<c;++a)t(u[a],this,r)}return!0},s.prototype.addListener=function(e,t){return c(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return c(this,e,t,!0)},s.prototype.once=function(e,t){return i(t),this.on(e,m(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return i(t),this.prependListener(e,m(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,a,n,s,o;if(i(t),(a=this._events)===undefined||(r=a[e])===undefined)return this;if(r===t||r.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,r.listener||t));else if(typeof r!=="function"){for(n=-1,s=r.length-1;s>=0;s--)if(r[s]===t||r[s].listener===t){o=r[s].listener,n=s;break}if(n<0)return this;n===0?r.shift():p(r,n),r.length===1&&(a[e]=r[0]),a.removeListener!==undefined&&this.emit("removeListener",e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,a;if((r=this._events)===undefined)return this;if(r.removeListener===undefined)return arguments.length==0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==undefined&&(--this._eventsCount==0?this._events=Object.create(null):delete r[e]),this;if(arguments.length==0){var n=Object.keys(r);var s;for(a=0;a<n.length;++a){if((s=n[a])==="removeListener")continue;this.removeAllListeners(s)}return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=r[e])=="function")this.removeListener(e,t);else if(t!==undefined)for(a=t.length-1;a>=0;a--)this.removeListener(e,t[a]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):(0,d.call(e,t))},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}}}).call(__webpack_require__._LM_("webpack>events",{module,__webpack_require__}))()},129848(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";typeof Object.create=="function"?module.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:module.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}}).call(__webpack_require__._LM_("pumpify>inherits",{module,__webpack_require__}))()},138942(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=this&&this.__rest||function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Substream=void 0;let t=__webpack_require__(734757);class r extends t.Duplex{_read(){return undefined}_write(e,t,r){this._parent.push({name:this._name,data:e}),r()}constructor(t){var{parent:r,name:a}=t;super(Object.assign({objectMode:!0},e(t,["parent","name"]))),this._parent=r,this._name=a}}exports.Substream=r}}).call(__webpack_require__._LM_("@metamask/object-multiplex",{exports,__webpack_require__})).bind(exports)()},161398(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";(exports=module.exports=__webpack_require__(599993)).Stream=exports,exports.Readable=exports,exports.Writable=__webpack_require__(828233),exports.Duplex=__webpack_require__(643163),exports.Transform=__webpack_require__(348605),exports.PassThrough=__webpack_require__(860583),exports.finished=__webpack_require__(912595),exports.pipeline=__webpack_require__(844313)}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{exports,module,__webpack_require__}))()},169557(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toFrames=i;let e=0|0;function t(){return e=e+1&0x7fffffff}let r=1e3/60/2;var a;let n=((a=globalThis.scheduler)===null||a===void 0?void 0:a.yield)?globalThis.scheduler.yield.bind(globalThis.scheduler):async()=>await new Promise(e=>setTimeout(e,0));function s(e){return e<=127?1:(0,e<=2047)?2:(0,e<=65535)?3:(0,4)}function o(e,t,r){let a=2;let n=t;while(n<e.length){let t=a;let o=e.codePointAt(n);let i=o>65535?2:1;if(o===34||o===92?a+=2:a+=s(o),a>r){a=t;break}n+=i}return n}async function*i(e,a){let s=performance.now();let i=JSON.stringify(e);let l=i.length;let c=t();let u=0;let m=0;do{performance.now()-s>=r&&(await n(),s=performance.now());let e=`${c}|${m}|`;let t=a-(e.length+1);let h;let d=(h=(l-u)*3+2<=t?l:o(i,u,t))===l?1:0;let f=`${e}${d}${i.slice(u,h)}`;yield f,u=h,m++}while(u<l)}}}).call(__webpack_require__._LM_("extension-port-stream",{exports,__webpack_require__}))()},176613(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{MathFloor:e,NumberIsInteger:t}=__webpack_require__(981452);let{validateInteger:r}=__webpack_require__(999767);let{ERR_INVALID_ARG_VALUE:a}=__webpack_require__(499497).codes;let n=16*1024;let s=16;function o(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function i(e){return e?s:n}module.exports={getHighWaterMark:function(r,n,s,l){let c=o(n,l,s);if(c!=null){if(!t(c)||c<0)throw new a(l?`options.${s}`:"options.highWaterMark",c);return e(c)}return i(r.objectMode)},getDefaultHighWaterMark:i,setDefaultHighWaterMark:function(e,t){r(t,"value",0),e?s=t:n=t}}}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},187362(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(){return t(new URL(window.location))&&n()}function t(e){return r(e)&&!a(e)}function r({pathname:e}){let t=[/\.xml$/u,/\.pdf$/u];for(let r=0;r<t.length;r++)if(t[r].test(e))return!1;return!0}function a(e){let{hostname:t,pathname:r}=e;let a=e=>e.endsWith("/")?e.slice(0,-1):e;return["execution.consensys.io","execution.metamask.io","uscourts.gov","dropbox.com","webbyawards.com","adyen.com","gravityforms.com","harbourair.com","ani.gamer.com.tw","blueskybooking.com","sharefile.com","battle.net","accounts.google.com","accounts.youtube.com","appleid.apple.com"].some(e=>e===t||t.endsWith(`.${e}`))||["cdn.shopify.com/s/javascripts/tricorder/xtld-read-only-frame.html"].some(e=>a(e)===a(t+r))}function n(){return s()&&o()}function s(){let{doctype:e}=window.document;return e?e.name==="html":(0,!0)}function o(){let e=document.documentElement.nodeName;return e?e.toLowerCase()==="html":(0,!0)}__webpack_require__.d(__webpack_exports__,{Ay:()=>e})}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},190937(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e,t;var r,a;r=typeof globalThis!=="undefined"&&globalThis,a=function(e){if(typeof browser=="undefined"||Object.getPrototypeOf(browser)!==Object.prototype){if(typeof chrome!="object"||!chrome||!chrome.runtime||!chrome.runtime.id)throw new Error("This script should only be loaded in a browser extension.");e.exports=(e=>{let t={"alarms":{"clear":{"minArgs":0,"maxArgs":1},"clearAll":{"minArgs":0,"maxArgs":0},"get":{"minArgs":0,"maxArgs":1},"getAll":{"minArgs":0,"maxArgs":0}},"bookmarks":{"create":{"minArgs":1,"maxArgs":1},"get":{"minArgs":1,"maxArgs":1},"getChildren":{"minArgs":1,"maxArgs":1},"getRecent":{"minArgs":1,"maxArgs":1},"getSubTree":{"minArgs":1,"maxArgs":1},"getTree":{"minArgs":0,"maxArgs":0},"move":{"minArgs":2,"maxArgs":2},"remove":{"minArgs":1,"maxArgs":1},"removeTree":{"minArgs":1,"maxArgs":1},"search":{"minArgs":1,"maxArgs":1},"update":{"minArgs":2,"maxArgs":2}},"browserAction":{"disable":{"minArgs":0,"maxArgs":1,"fallbackToNoCallback":!0},"enable":{"minArgs":0,"maxArgs":1,"fallbackToNoCallback":!0},"getBadgeBackgroundColor":{"minArgs":1,"maxArgs":1},"getBadgeText":{"minArgs":1,"maxArgs":1},"getPopup":{"minArgs":1,"maxArgs":1},"getTitle":{"minArgs":1,"maxArgs":1},"openPopup":{"minArgs":0,"maxArgs":0},"setBadgeBackgroundColor":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setBadgeText":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setIcon":{"minArgs":1,"maxArgs":1},"setPopup":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setTitle":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0}},"browsingData":{"remove":{"minArgs":2,"maxArgs":2},"removeCache":{"minArgs":1,"maxArgs":1},"removeCookies":{"minArgs":1,"maxArgs":1},"removeDownloads":{"minArgs":1,"maxArgs":1},"removeFormData":{"minArgs":1,"maxArgs":1},"removeHistory":{"minArgs":1,"maxArgs":1},"removeLocalStorage":{"minArgs":1,"maxArgs":1},"removePasswords":{"minArgs":1,"maxArgs":1},"removePluginData":{"minArgs":1,"maxArgs":1},"settings":{"minArgs":0,"maxArgs":0}},"commands":{"getAll":{"minArgs":0,"maxArgs":0}},"contextMenus":{"remove":{"minArgs":1,"maxArgs":1},"removeAll":{"minArgs":0,"maxArgs":0},"update":{"minArgs":2,"maxArgs":2}},"cookies":{"get":{"minArgs":1,"maxArgs":1},"getAll":{"minArgs":1,"maxArgs":1},"getAllCookieStores":{"minArgs":0,"maxArgs":0},"remove":{"minArgs":1,"maxArgs":1},"set":{"minArgs":1,"maxArgs":1}},"devtools":{"inspectedWindow":{"eval":{"minArgs":1,"maxArgs":2,"singleCallbackArg":!1}},"panels":{"create":{"minArgs":3,"maxArgs":3,"singleCallbackArg":!0},"elements":{"createSidebarPane":{"minArgs":1,"maxArgs":1}}}},"downloads":{"cancel":{"minArgs":1,"maxArgs":1},"download":{"minArgs":1,"maxArgs":1},"erase":{"minArgs":1,"maxArgs":1},"getFileIcon":{"minArgs":1,"maxArgs":2},"open":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"pause":{"minArgs":1,"maxArgs":1},"removeFile":{"minArgs":1,"maxArgs":1},"resume":{"minArgs":1,"maxArgs":1},"search":{"minArgs":1,"maxArgs":1},"show":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0}},"extension":{"isAllowedFileSchemeAccess":{"minArgs":0,"maxArgs":0},"isAllowedIncognitoAccess":{"minArgs":0,"maxArgs":0}},"history":{"addUrl":{"minArgs":1,"maxArgs":1},"deleteAll":{"minArgs":0,"maxArgs":0},"deleteRange":{"minArgs":1,"maxArgs":1},"deleteUrl":{"minArgs":1,"maxArgs":1},"getVisits":{"minArgs":1,"maxArgs":1},"search":{"minArgs":1,"maxArgs":1}},"i18n":{"detectLanguage":{"minArgs":1,"maxArgs":1},"getAcceptLanguages":{"minArgs":0,"maxArgs":0}},"identity":{"launchWebAuthFlow":{"minArgs":1,"maxArgs":1}},"idle":{"queryState":{"minArgs":1,"maxArgs":1}},"management":{"get":{"minArgs":1,"maxArgs":1},"getAll":{"minArgs":0,"maxArgs":0},"getSelf":{"minArgs":0,"maxArgs":0},"setEnabled":{"minArgs":2,"maxArgs":2},"uninstallSelf":{"minArgs":0,"maxArgs":1}},"notifications":{"clear":{"minArgs":1,"maxArgs":1},"create":{"minArgs":1,"maxArgs":2},"getAll":{"minArgs":0,"maxArgs":0},"getPermissionLevel":{"minArgs":0,"maxArgs":0},"update":{"minArgs":2,"maxArgs":2}},"pageAction":{"getPopup":{"minArgs":1,"maxArgs":1},"getTitle":{"minArgs":1,"maxArgs":1},"hide":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setIcon":{"minArgs":1,"maxArgs":1},"setPopup":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setTitle":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"show":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0}},"permissions":{"contains":{"minArgs":1,"maxArgs":1},"getAll":{"minArgs":0,"maxArgs":0},"remove":{"minArgs":1,"maxArgs":1},"request":{"minArgs":1,"maxArgs":1}},"runtime":{"getBackgroundPage":{"minArgs":0,"maxArgs":0},"getPlatformInfo":{"minArgs":0,"maxArgs":0},"openOptionsPage":{"minArgs":0,"maxArgs":0},"requestUpdateCheck":{"minArgs":0,"maxArgs":0},"sendMessage":{"minArgs":1,"maxArgs":3},"sendNativeMessage":{"minArgs":2,"maxArgs":2},"setUninstallURL":{"minArgs":1,"maxArgs":1}},"sessions":{"getDevices":{"minArgs":0,"maxArgs":1},"getRecentlyClosed":{"minArgs":0,"maxArgs":1},"restore":{"minArgs":0,"maxArgs":1}},"storage":{"local":{"clear":{"minArgs":0,"maxArgs":0},"get":{"minArgs":0,"maxArgs":1},"getBytesInUse":{"minArgs":0,"maxArgs":1},"remove":{"minArgs":1,"maxArgs":1},"set":{"minArgs":1,"maxArgs":1}},"managed":{"get":{"minArgs":0,"maxArgs":1},"getBytesInUse":{"minArgs":0,"maxArgs":1}},"sync":{"clear":{"minArgs":0,"maxArgs":0},"get":{"minArgs":0,"maxArgs":1},"getBytesInUse":{"minArgs":0,"maxArgs":1},"remove":{"minArgs":1,"maxArgs":1},"set":{"minArgs":1,"maxArgs":1}}},"tabs":{"captureVisibleTab":{"minArgs":0,"maxArgs":2},"create":{"minArgs":1,"maxArgs":1},"detectLanguage":{"minArgs":0,"maxArgs":1},"discard":{"minArgs":0,"maxArgs":1},"duplicate":{"minArgs":1,"maxArgs":1},"executeScript":{"minArgs":1,"maxArgs":2},"get":{"minArgs":1,"maxArgs":1},"getCurrent":{"minArgs":0,"maxArgs":0},"getZoom":{"minArgs":0,"maxArgs":1},"getZoomSettings":{"minArgs":0,"maxArgs":1},"goBack":{"minArgs":0,"maxArgs":1},"goForward":{"minArgs":0,"maxArgs":1},"highlight":{"minArgs":1,"maxArgs":1},"insertCSS":{"minArgs":1,"maxArgs":2},"move":{"minArgs":2,"maxArgs":2},"query":{"minArgs":1,"maxArgs":1},"reload":{"minArgs":0,"maxArgs":2},"remove":{"minArgs":1,"maxArgs":1},"removeCSS":{"minArgs":1,"maxArgs":2},"sendMessage":{"minArgs":2,"maxArgs":3},"setZoom":{"minArgs":1,"maxArgs":2},"setZoomSettings":{"minArgs":1,"maxArgs":2},"update":{"minArgs":1,"maxArgs":2}},"topSites":{"get":{"minArgs":0,"maxArgs":0}},"webNavigation":{"getAllFrames":{"minArgs":1,"maxArgs":1},"getFrame":{"minArgs":1,"maxArgs":1}},"webRequest":{"handlerBehaviorChanged":{"minArgs":0,"maxArgs":0}},"windows":{"create":{"minArgs":0,"maxArgs":1},"get":{"minArgs":1,"maxArgs":2},"getAll":{"minArgs":0,"maxArgs":1},"getCurrent":{"minArgs":0,"maxArgs":1},"getLastFocused":{"minArgs":0,"maxArgs":1},"remove":{"minArgs":1,"maxArgs":1},"update":{"minArgs":2,"maxArgs":2}}};if(Object.keys(t).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class r extends WeakMap{get(e){return!this.has(e)&&this.set(e,this.createItem(e)),super.get(e)}constructor(e,t=undefined){super(t),this.createItem=e}}let a=(t,r)=>{return(...a)=>{e.runtime.lastError?t.reject(new Error(e.runtime.lastError.message)):r.singleCallbackArg||a.length<=1&&r.singleCallbackArg!==!1?t.resolve(a[0]):t.resolve(a)}};let n=e=>e==1?"argument":"arguments";let s=(e,t,r)=>{return new Proxy(t,{apply(t,a,n){return r.call(a,e,...n)}})};let o=Function.call.bind(Object.prototype.hasOwnProperty);let i=(e,t={},r={})=>{let l=Object.create(null);return new Proxy(Object.create(e),{has(t,r){return r in e||r in l},get(c,u,m){if(u in l)return l[u];if(!(u in e))return undefined;let h=e[u];if(typeof h=="function")if(typeof t[u]=="function")h=s(e,e[u],t[u]);else if(o(r,u)){var d;let t=(u,d=r[u],function(e,...t){if(t.length<d.minArgs)throw new Error(`Expected at least ${d.minArgs} ${n(d.minArgs)} for ${u}(), got ${t.length}`);if(t.length>d.maxArgs)throw new Error(`Expected at most ${d.maxArgs} ${n(d.maxArgs)} for ${u}(), got ${t.length}`);return new Promise((r,n)=>{if(d.fallbackToNoCallback)try{e[u](...t,a({resolve:r,reject:n},d))}catch(a){console.warn(`${u} API method doesn't seem to support the callback parameter, `+"falling back to call it without a callback: ",a),e[u](...t),d.fallbackToNoCallback=!1,d.noCallback=!0,r()}else d.noCallback?(e[u](...t),r()):e[u](...t,a({resolve:r,reject:n},d))})});h=s(e,e[u],t)}else h=h.bind(e);else if(typeof h=="object"&&h!==null&&(o(t,u)||o(r,u)))h=i(h,t[u],r[u]);else if(!o(r,"*"))return Object.defineProperty(l,u,{configurable:!0,enumerable:!0,get(){return e[u]},set(t){e[u]=t}}),h;else h=i(h,t[u],r["*"]);return l[u]=h,h},set(t,r,a,n){return r in l?l[r]=a:e[r]=a,!0},defineProperty(e,t,r){return Reflect.defineProperty(l,t,r)},deleteProperty(e,t){return Reflect.deleteProperty(l,t)}})};let l=e=>({addListener(t,r,...a){t.addListener(e.get(r),...a)},hasListener(t,r){return t.hasListener(e.get(r))},removeListener(t,r){t.removeListener(e.get(r))}});let c=new r(e=>{return typeof e!=="function"?e:(0,function(t){e(i(t,{},{getContent:{minArgs:0,maxArgs:0}}))})});let u=!1;let m=new r(e=>{return typeof e!=="function"?e:(0,function(t,r,a){let n=!1;let s;let o=new Promise(e=>{s=function(t){!u&&(console.warn("Returning a Promise is the preferred way to send a reply from an onMessage/onMessageExternal listener, as the sendResponse will be removed from the specs (See https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage)",new Error().stack),u=!0),n=!0,e(t)}});let i;try{i=e(t,r,s)}catch(e){i=Promise.reject(e)}var l;let c=i!==!0&&(l=i)&&typeof l=="object"&&typeof l.then=="function";if(i!==!0&&!c&&!n)return!1;return(c?i:o).then(e=>{a(e)},e=>{let t;a({__mozWebExtensionPolyfillReject__:!0,message:t=e&&(e instanceof Error||typeof e.message=="string")?e.message:"An unexpected error occurred"})}).catch(e=>{console.error("Failed to send onMessage rejected reply",e)}),!0})});let h=({reject:t,resolve:r},a)=>{e.runtime.lastError?e.runtime.lastError.message==="The message port closed before a response was received."?r():t(new Error(e.runtime.lastError.message)):a&&a.__mozWebExtensionPolyfillReject__?t(new Error(a.message)):r(a)};let d=(e,t,r,...a)=>{if(a.length<t.minArgs)throw new Error(`Expected at least ${t.minArgs} ${n(t.minArgs)} for ${e}(), got ${a.length}`);if(a.length>t.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${n(t.maxArgs)} for ${e}(), got ${a.length}`);return new Promise((e,t)=>{let n=h.bind(null,{resolve:e,reject:t});a.push(n),r.sendMessage(...a)})};let f={devtools:{network:{onRequestFinished:l(c)}},runtime:{onMessage:l(m),onMessageExternal:l(m),sendMessage:d.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:d.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}};let p={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return t.privacy={network:{"*":p},services:{"*":p},websites:{"*":p}},i(e,f,t)})(chrome)}else e.exports=browser},!0&&(e=[module],(t="function"=="function"?a.apply(exports,e):a)!==undefined&&(module.exports=t))}}).call(__webpack_require__._LM_("webextension-polyfill",{module,exports,__webpack_require__})).bind(exports)()},190993(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=globalThis.AbortController||__webpack_require__(978066).AbortController;let{codes:{ERR_INVALID_ARG_VALUE:t,ERR_INVALID_ARG_TYPE:r,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:n},AbortError:s}=__webpack_require__(499497);let{validateAbortSignal:o,validateInteger:i,validateObject:l}=__webpack_require__(999767);let c=__webpack_require__(981452).Symbol("kWeak");let u=__webpack_require__(981452).Symbol("kResistStopPropagation");let{finished:m}=__webpack_require__(108496);let h=__webpack_require__(602908);let{addAbortSignalNoValidate:d}=__webpack_require__(717765);let{isWritable:f,isNodeStream:p}=__webpack_require__(249341);let{deprecate:g}=__webpack_require__(70034);let{ArrayPrototypePush:b,Boolean:y,MathFloor:k,Number:w,NumberIsNaN:v,Promise:_,PromiseReject:j,PromiseResolve:S,PromisePrototypeThen:E,Symbol:x}=__webpack_require__(981452);let T=x("kEmpty");let A=x("kEof");function R(e,r){if(r!=null&&l(r,"options"),(r===null||r===undefined?undefined:r.signal)!=null&&o(r.signal,"options.signal"),p(e)&&!f(e))throw new t("stream",e,"must be writable");let a=h(this,e);return r!==null&&r!==undefined&&r.signal&&d(r.signal,a),a}function M(e,t){if(typeof e!=="function")throw new r("fn",["Function","AsyncFunction"],e);t!=null&&l(t,"options"),(t===null||t===undefined?undefined:t.signal)!=null&&o(t.signal,"options.signal");let a=1;(t===null||t===undefined?undefined:t.concurrency)!=null&&(a=k(t.concurrency));let n=a-1;return(t===null||t===undefined?undefined:t.highWaterMark)!=null&&(n=k(t.highWaterMark)),i(a,"options.concurrency",1),i(n,"options.highWaterMark",0),n+=a,(async function*(){let r=__webpack_require__(70034).AbortSignalAny([t===null||t===undefined?undefined:t.signal].filter(y));let o=this;let i=[];let l={signal:r};let c;let u;let m=!1;let h=0;function d(){m=!0,f()}function f(){h-=1,p()}function p(){u&&!m&&h<a&&i.length<n&&(u(),u=null)}!async function(){try{for await(let t of o){if(m)return;if(r.aborted)throw new s;try{if((t=e(t,l))===T)continue;t=S(t)}catch(e){t=j(e)}h+=1,E(t,f,d),i.push(t),c&&(c(),c=null),!m&&(i.length>=n||h>=a)&&await new _(e=>{u=e})}i.push(A)}catch(t){let e=j(t);E(e,f,d),i.push(e)}finally{m=!0,c&&(c(),c=null)}}();try{while(!0){while(i.length>0){let e=await i[0];if(e===A)return;if(r.aborted)throw new s;e!==T&&(yield e),i.shift(),p()}await new _(e=>{c=e})}}finally{m=!0,u&&(u(),u=null)}}).call(this)}function L(e=undefined){return e!=null&&l(e,"options"),(e===null||e===undefined?undefined:e.signal)!=null&&o(e.signal,"options.signal"),(async function*(){let t=0;for await(let a of this){var r;if(e!==null&&e!==undefined&&(r=e.signal)!==null&&r!==undefined&&r.aborted)throw new s({cause:e.signal.reason});yield[t++,a]}}).call(this)}async function O(e,t=undefined){for await(let r of N.call(this,e,t))return!0;return!1}async function P(e,t=undefined){if(typeof e!=="function")throw new r("fn",["Function","AsyncFunction"],e);return!await O.call(this,async(...t)=>{return!await e(...t)},t)}async function B(e,t){for await(let r of N.call(this,e,t))return r;return undefined}async function C(e,t){if(typeof e!=="function")throw new r("fn",["Function","AsyncFunction"],e);async function a(t,r){return await e(t,r),T}for await(let e of M.call(this,a,t));}function N(e,t){if(typeof e!=="function")throw new r("fn",["Function","AsyncFunction"],e);async function a(t,r){return await e(t,r)?t:(0,T)}return M.call(this,a,t)}class I extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function D(t,a,n){var i;if(typeof t!=="function")throw new r("reducer",["Function","AsyncFunction"],t);n!=null&&l(n,"options"),(n===null||n===undefined?undefined:n.signal)!=null&&o(n.signal,"options.signal");let h=arguments.length>1;if(n!==null&&n!==undefined&&(i=n.signal)!==null&&i!==undefined&&i.aborted){let e=new s(undefined,{cause:n.signal.reason});throw this.once("error",()=>{}),await m(this.destroy(e)),e}let d=new e;let f=d.signal;n!==null&&n!==undefined&&n.signal&&n.signal.addEventListener("abort",()=>d.abort(),{once:!0,[c]:this,[u]:!0});let p=!1;try{for await(let e of this){var g;if(p=!0,n!==null&&n!==undefined&&(g=n.signal)!==null&&g!==undefined&&g.aborted)throw new s;h?a=await t(a,e,{signal:f}):(a=e,h=!0)}if(!p&&!h)throw new I}finally{d.abort()}return a}async function q(e){e!=null&&l(e,"options"),(e===null||e===undefined?undefined:e.signal)!=null&&o(e.signal,"options.signal");let t=[];for await(let a of this){var r;if(e!==null&&e!==undefined&&(r=e.signal)!==null&&r!==undefined&&r.aborted)throw new s(undefined,{cause:e.signal.reason});b(t,a)}return t}function F(e,t){let r=M.call(this,e,t);return(async function*(){for await(let e of r)yield*e}).call(this)}function U(e){if(v(e=w(e)))return 0;if(e<0)throw new n("number",">= 0",e);return e}function W(e,t=undefined){return t!=null&&l(t,"options"),(t===null||t===undefined?undefined:t.signal)!=null&&o(t.signal,"options.signal"),e=U(e),(async function*(){var r;if(t!==null&&t!==undefined&&(r=t.signal)!==null&&r!==undefined&&r.aborted)throw new s;for await(let r of this){var a;if(t!==null&&t!==undefined&&(a=t.signal)!==null&&a!==undefined&&a.aborted)throw new s;e--<=0&&(yield r)}}).call(this)}function H(e,t=undefined){return t!=null&&l(t,"options"),(t===null||t===undefined?undefined:t.signal)!=null&&o(t.signal,"options.signal"),e=U(e),(async function*(){var r;if(t!==null&&t!==undefined&&(r=t.signal)!==null&&r!==undefined&&r.aborted)throw new s;for await(let r of this){var a;if(t!==null&&t!==undefined&&(a=t.signal)!==null&&a!==undefined&&a.aborted)throw new s;if(e-- >0&&(yield r),e<=0)return}}).call(this)}module.exports.streamReturningOperators={asIndexedPairs:g(L,"readable.asIndexedPairs will be removed in a future version."),drop:W,filter:N,flatMap:F,map:M,take:H,compose:R},module.exports.promiseReturningOperators={every:P,forEach:C,reduce:D,toArray:q,some:O,find:B}}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},201783(){},207978(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(477868);let{aggregateTwoErrors:t,codes:{ERR_MULTIPLE_CALLBACK:r},AbortError:a}=__webpack_require__(499497);let{Symbol:n}=__webpack_require__(981452);let{kIsDestroyed:s,isDestroyed:o,isFinished:i,isServerRequest:l}=__webpack_require__(249341);let c=n("kDestroy");let u=n("kConstruct");function m(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function h(t,r,a){let n=!1;function s(r){if(n)return;n=!0;let s=t._readableState;let o=t._writableState;m(r,o,s),o&&(o.closed=!0),s&&(s.closed=!0),typeof a=="function"&&a(r),r?e.nextTick(d,t,r):e.nextTick(f,t)}try{t._destroy(r||null,s)}catch(e){s(e)}}function d(e,t){p(e,t),f(e)}function f(e){let t=e._readableState;let r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!==null&&r!==undefined&&r.emitClose||t!==null&&t!==undefined&&t.emitClose)&&e.emit("close")}function p(e,t){let r=e._readableState;let a=e._writableState;if(a!==null&&a!==undefined&&a.errorEmitted||r!==null&&r!==undefined&&r.errorEmitted)return;a&&(a.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t)}function g(t,r,a){let n=t._readableState;let s=t._writableState;if(s!==null&&s!==undefined&&s.destroyed||n!==null&&n!==undefined&&n.destroyed)return this;n!==null&&n!==undefined&&n.autoDestroy||s!==null&&s!==undefined&&s.autoDestroy?t.destroy(r):r&&(r.stack,s&&!s.errored&&(s.errored=r),n&&!n.errored&&(n.errored=r),a?e.nextTick(p,t,r):p(t,r))}function b(t){let a=!1;function n(n){if(a){g(t,n!==null&&n!==undefined?n:new r);return}a=!0;let s=t._readableState;let o=t._writableState;let i=o||s;s&&(s.constructed=!0),o&&(o.constructed=!0),i.destroyed?t.emit(c,n):n?g(t,n,!0):e.nextTick(y,t)}try{t._construct(t=>{e.nextTick(n,t)})}catch(t){e.nextTick(n,t)}}function y(e){e.emit(u)}function k(e){return(e===null||e===undefined?undefined:e.setHeader)&&typeof e.abort=="function"}function w(e){e.emit("close")}function v(t,r){t.emit("error",r),e.nextTick(w,t)}module.exports={construct:function(t,r){if(typeof t._construct!=="function")return;let a=t._readableState;let n=t._writableState;if(a&&(a.constructed=!1),n&&(n.constructed=!1),t.once(u,r),t.listenerCount(u)>1)return;e.nextTick(b,t)},destroyer:function(t,r){if(!t||o(t))return;!r&&!i(t)&&(r=new a),l(t)?(t.socket=null,t.destroy(r)):k(t)?t.abort():k(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(r):typeof t.close=="function"?t.close():r?e.nextTick(v,t,r):e.nextTick(w,t),!t.destroyed&&(t[s]=!0)},destroy:function(e,r){let a=this._readableState;let n=this._writableState;let s=n||a;return n!==null&&n!==undefined&&n.destroyed||a!==null&&a!==undefined&&a.destroyed?typeof r=="function"&&r():(m(e,n,a),n&&(n.destroyed=!0),a&&(a.destroyed=!0),s.constructed?h(this,e,r):this.once(c,function(a){h(this,t(a,e),r)})),this},undestroy:function(){let e=this._readableState;let t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)},errorOrDestroy:g}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},215813(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{ArrayPrototypePop:e,Promise:t}=__webpack_require__(981452);let{isIterable:r,isNodeStream:a,isWebStream:n}=__webpack_require__(249341);let{pipelineImpl:s}=__webpack_require__(117644);let{finished:o}=__webpack_require__(108496);__webpack_require__(626936),module.exports={finished:o,pipeline:function(...o){return new t((t,i)=>{let l;let c;let u=o[o.length-1];if(u&&typeof u=="object"&&!a(u)&&!r(u)&&!n(u)){let t=e(o);l=t.signal,c=t.end}s(o,(e,r)=>{e?i(e):t(r)},{signal:l,end:c})})}}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},218244(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:a}=__webpack_require__(981452);module.exports=o;let n=__webpack_require__(671610);let s=__webpack_require__(680190);a(o.prototype,n.prototype),a(o,n);{let e=r(s.prototype);for(let t=0;t<e.length;t++){let r=e[t];!o.prototype[r]&&(o.prototype[r]=s.prototype[r])}}function o(e){if(!(this instanceof o))return new o(e);n.call(this,e),s.call(this,e),e?(this.allowHalfOpen=e.allowHalfOpen!==!1,e.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}e(o.prototype,{writable:{__proto__:null,...t(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...t(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...t(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...t(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...t(s.prototype,"writableLength")},writableFinished:{__proto__:null,...t(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...t(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...t(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...t(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===undefined||this._writableState===undefined?!1:(0,this._readableState.destroyed&&this._writableState.destroyed)},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}});let i;function l(){return i===undefined&&(i={}),i}o.fromWeb=function(e,t){return l().newStreamDuplexFromReadableWritablePair(e,t)},o.toWeb=function(e){return l().newReadableWritablePairFromDuplex(e)};let c;o.from=function(e){return!c&&(c=__webpack_require__(803972)),c(e,"body")}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},221057(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Cg:()=>o,zM:()=>i});var e=__webpack_require__(541150);var t=__webpack_require__.n(e);var r=__webpack_require__(190937);var a=__webpack_require__.n(r);var n=__webpack_require__(688723);__webpack_require__.n(n);var s=__webpack_require__(454179);function o(){let{lastError:e}=a().runtime;return!e?undefined:(0,e.stack&&e.message)?e:(0,new Error(e.message))}function i(e=t().getParser(window.navigator.userAgent)){return(e.satisfies(s.tT)&&!e.satisfies(s.SC))??!1}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},226104(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{O_:()=>A,Qf:()=>P,co:()=>L,jf:()=>O});var e=__webpack_require__(272864);var t=__webpack_require__.n(e);var r=__webpack_require__(835183);var a=__webpack_require__(410276);__webpack_require__.n(a);var n=__webpack_require__(190937);var s=__webpack_require__.n(n);var o=__webpack_require__(230700);__webpack_require__.n(o);var i=__webpack_require__(625430);var l=__webpack_require__(658457);var c=__webpack_require__(221057);var u=__webpack_require__(384666);var m=__webpack_require__(909807);let h,d,f,p,g,b,y;let k,w,v,_,j,S,E,x;let T=!1;let A=()=>{var e,r;T=!0,_=s().runtime.connect({name:i.SM}),(j=new o.ExtensionPortStream(_,{chunkSize:0})).on("data",C),(k=new(t())).setMaxListeners(25),k.ignoreStream(i.xQ);let n=()=>{!k.destroyed&&!k.writableEnded&&k.end()};j===null||j===void 0||(e=j.once)===null||e===void 0||e.call(j,"close",n),j===null||j===void 0||(r=j.once)===null||r===void 0||r.call(j,"end",n),(0,a.pipeline)(k,j,k,e=>{(0,u.R)("MetaMask Background Multiplex",e),N()}),w=k.createStream(i.s$),(0,a.pipeline)(E,w,E,e=>console.debug(`MetaMask: Muxed traffic for channel "${i.s$}" failed.`,e)),v=k.createStream(i.ZU),(0,a.pipeline)(x,v,x,e=>console.debug(`MetaMask: Muxed traffic for channel "${i.ZU}" failed.`,e)),(0,m.M6)(k),_.onDisconnect.addListener(O)};let R=()=>{(h=new(t())).setMaxListeners(25),y=B(),(0,a.pipeline)(h,j,y,h,e=>{(0,u.R)("MetaMask Background Legacy Multiplex",e),N()}),d=h.createStream(i.s$),(0,a.pipeline)(g,d,g,e=>console.debug(`MetaMask: Muxed traffic between channels "${i.om}" and "${i.s$}" failed.`,e)),f=h.createStream(i.xQ),(0,a.pipeline)(b,f,b,e=>console.debug(`MetaMask: Muxed traffic for channel "${i.xQ}" failed.`,e)),h.ignoreStream(i.ZU),h.ignoreStream(i.em),h.ignoreStream(i.om),h.ignoreStream(i.VD),h.ignoreStream(i.Yo)};let M=e=>{return e.name===l.X.READY?(!j&&(A(),R()),Promise.resolve(`MetaMask: handled ${l.X.READY}`)):(0,undefined)};function L(){if(!_)return;_.onDisconnect.removeListener(O),E.removeAllListeners(),k.removeAllListeners(),k.destroy(),w.removeAllListeners(),w.destroy(),v.removeAllListeners(),v.destroy(),j=null,g.removeAllListeners(),b.removeAllListeners(),h.removeAllListeners(),h.destroy(),d.removeAllListeners(),d.destroy(),f.removeAllListeners(),f.destroy(),_.disconnect(),_=null,T=!1}function O(e){let t=e||(0,c.Cg)();L(),t&&(console.warn(`${t} Resetting the streams.`),setTimeout(A,1e3))}let P=()=>{var e,n;let o=new r.UI({name:i.SM,target:i.jf});(S=new(t())).setMaxListeners(25);let l=()=>{!S.destroyed&&!S.writableEnded&&S.end()};(e=o.once)===null||e===void 0||e.call(o,"close",l),(n=o.once)===null||n===void 0||n.call(o,"end",l),(0,a.pipeline)(S,o,S,e=>(0,u.R)("MetaMask Inpage Multiplex",e)),E=S.createStream(i.s$),x=S.createStream(i.ZU),S.ignoreStream(i.em),S.ignoreStream(i.om),S.ignoreStream(i.xQ),S.ignoreStream(i.VD),S.ignoreStream(i.Yo);let c=new r.UI({name:i.ur,target:i.Xy});(p=new(t())).setMaxListeners(25),(0,a.pipeline)(p,c,p,e=>(0,u.R)("MetaMask Legacy Inpage Multiplex",e)),g=p.createStream(i.om),b=p.createStream(i.xQ),p.ignoreStream(i.em),p.ignoreStream(i.s$),p.ignoreStream(i.ZU),p.ignoreStream(i.VD),p.ignoreStream(i.Yo),A(),R(),s().runtime.onMessage.addListener(M)};function B(){return new a.Transform({highWaterMark:16,objectMode:!0,transform:(e,t,r)=>{var a;(e===null||e===void 0?void 0:e.name)===i.s$&&((a=e.data)===null||a===void 0?void 0:a.method)==="metamask_accountsChanged"&&(e.data.method="wallet_accountsChanged",e.data.result=e.data.params,delete e.data.params),r(null,e)}})}function C(e){T&&e.data.method==="metamask_chainChanged"&&(T=!1,window.postMessage({target:i.jf,data:{name:i.s$,data:{jsonrpc:"2.0",method:"METAMASK_EXTENSION_CONNECT_CAN_RETRY"}}},window.location.origin))}function N(){window.postMessage({target:i.jf,data:{name:i.s$,data:{jsonrpc:"2.0",method:"METAMASK_STREAM_FAILURE"}}},window.location.origin)}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},230700(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=this&&this.__classPrivateFieldGet||function(e,t,r,a){if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?a:r==="a"?a.call(e):a?a.value:t.get(e)};var t=this&&this.__classPrivateFieldSet||function(e,t,r,a,n){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r};var r,a,n,s,o,i,l,c,u;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExtensionPortStream=exports.CHUNK_SIZE=void 0;let m=__webpack_require__(410276);let h=__webpack_require__(490449);let d=__webpack_require__(327400);let f=__webpack_require__(169557);var p=__webpack_require__(490449);Object.defineProperty(exports,"CHUNK_SIZE",{enumerable:!0,get:function(){return p.CHUNK_SIZE}});class g extends m.Duplex{getChunkSize(){return e(this,o,"f")}_read(){}async _write(t,a,s){if(a&&a!=="utf8"&&a!=="utf-8"){e(this,r,"m",c).call(this,s,new Error("ExtensionPortStream only supports UTF-8 encoding"));return}try{e(this,r,"m",u).call(this,t),e(this,n,"f").call(this,t,!0),e(this,r,"m",c).call(this,s)}catch(a){if(a instanceof Error){if(g.ErrorMessages.includes(a.message)){let i=e(this,o,"f");if(this.emit("message-too-large",{message:t,chunkSize:i,originalError:a}),i>0){try{for await(let a of(0,f.toFrames)(t,i))e(this,r,"m",u).call(this,a);e(this,n,"f").call(this,t,!0),e(this,r,"m",c).call(this,s)}catch(t){e(this,r,"m",c).call(this,s,new AggregateError([t],"ExtensionPortStream chunked postMessage failed"))}return}}e(this,r,"m",c).call(this,s,new AggregateError([a],"ExtensionPortStream postMessage failed"))}else e(this,r,"m",c).call(this,s,new AggregateError([new Error(String(a))],"ExtensionPortStream postMessage failed"))}}setLogger(e){t(this,n,e,"f")}handleChunk(t){let{id:r,seq:a,fin:o,source:i,dataIndex:l}=t;let c=e(this,s,"f").get(r);if(c===undefined&&(c={parts:[],expected:0},e(this,s,"f").set(r,c)),o===1&&(c.expected=a+1),c.parts[a]=[i,l],c.expected&&c.parts.filter(Boolean).length===c.expected){e(this,s,"f").delete(r);let{parts:t}=c;let{length:a}=t;let o=new Array(a);for(let e=0;e<a;e++){let[r,a]=t[e];o[e]=r.slice(a)}let i=JSON.parse(o.join(""));this.push(i),e(this,n,"f").call(this,i,!1)}}constructor(c,{chunkSize:u,log:m,...f}={}){if(u&&u<h.MIN_CHUNK_SIZE)throw new Error(`Cannot chunk messages smaller than the min chunk size, ${h.MIN_CHUNK_SIZE}`);super({objectMode:!0,highWaterMark:256,...f}),r.add(this),a.set(this,void 0),n.set(this,void 0),s.set(this,new Map),o.set(this,void 0),i.set(this,(t,r)=>{if(e(this,o,"f")>0){let e=(0,d.maybeParseAsChunkFrame)(t);if(e!==null){this.handleChunk(e);return}}e(this,n,"f").call(this,t,!1),this.push(t)}),l.set(this,t=>{if(e(this,s,"f").clear(),this.destroyed)return;if(this.push(null),this.writableFinished)this.destroy();else{let e=()=>{this.removeListener("finish",e),this.removeListener("error",e),!this.destroyed&&this.destroy()};this.once("finish",e),this.once("error",e),!this.writableEnded&&this.end()}}),t(this,a,c,"f"),c.onMessage.addListener(e(this,i,"f")),c.onDisconnect.addListener(e(this,l,"f")),t(this,n,m??(()=>undefined),"f"),t(this,o,u??h.CHUNK_SIZE,"f")}}exports.ExtensionPortStream=g,a=new WeakMap,n=new WeakMap,s=new WeakMap,o=new WeakMap,i=new WeakMap,l=new WeakMap,r=new WeakSet,c=function(e,t){queueMicrotask(()=>e(t))},u=function(t){e(this,a,"f").postMessage(t)},g.ErrorMessages=["Message exceeded maximum allowed size of 64MiB.","Message length exceeded maximum allowed length."]}}).call(__webpack_require__._LM_("extension-port-stream",{exports,__webpack_require__})).bind(exports)()},249341(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{SymbolAsyncIterator:e,SymbolIterator:t,SymbolFor:r}=__webpack_require__(981452);let a=r("nodejs.stream.destroyed");let n=r("nodejs.stream.errored");let s=r("nodejs.stream.readable");let o=r("nodejs.stream.writable");let i=r("nodejs.stream.disturbed");function l(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===undefined?undefined:r.readable)!==!1)&&(!e._writableState||e._readableState))}function c(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===undefined?undefined:t.writable)!==!1))}function u(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function m(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function h(e){return!!(e&&!m(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function d(e){return!!(e&&!m(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function f(e){return!!(e&&!m(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function p(e){return h(e)||d(e)||f(e)}function g(r,a){return r==null?!1:(0,a===!0)?typeof r[e]=="function":(0,a===!1)?typeof r[t]=="function":(0,typeof r[e]=="function"||typeof r[t]=="function")}function b(e){if(!m(e))return null;let t=e._writableState;let r=e._readableState;let n=t||r;return!!(e.destroyed||e[a]||n!==null&&n!==undefined&&n.destroyed)}function y(e){if(!c(e))return null;if(e.writableEnded===!0)return!0;let t=e._writableState;return t!==null&&t!==undefined&&t.errored?!1:(0,typeof(t===null||t===undefined?undefined:t.ended)!=="boolean")?null:(0,t.ended)}function k(e,t){if(!c(e))return null;if(e.writableFinished===!0)return!0;let r=e._writableState;return r!==null&&r!==undefined&&r.errored?!1:(0,typeof(r===null||r===undefined?undefined:r.finished)!=="boolean")?null:(0,!!(r.finished||t===!1&&r.ended===!0&&r.length===0))}function w(e){if(!l(e))return null;if(e.readableEnded===!0)return!0;let t=e._readableState;return!t||t.errored?!1:(0,typeof(t===null||t===undefined?undefined:t.ended)!=="boolean")?null:(0,t.ended)}function v(e,t){if(!l(e))return null;let r=e._readableState;return r!==null&&r!==undefined&&r.errored?!1:(0,typeof(r===null||r===undefined?undefined:r.endEmitted)!=="boolean")?null:(0,!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0))}function _(e){return e&&e[s]!=null?e[s]:(0,typeof(e===null||e===undefined?undefined:e.readable)!=="boolean")?null:(0,b(e))?!1:(0,l(e)&&e.readable&&!v(e))}function j(e){return e&&e[o]!=null?e[o]:(0,typeof(e===null||e===undefined?undefined:e.writable)!=="boolean")?null:(0,b(e))?!1:(0,c(e)&&e.writable&&!y(e))}function S(e,t){return!m(e)?null:(0,b(e))?!0:(0,(t===null||t===undefined?undefined:t.readable)!==!1&&_(e)||(t===null||t===undefined?undefined:t.writable)!==!1&&j(e))?!1:(0,!0)}function E(e){var t,r;return!m(e)?null:(0,e.writableErrored)?e.writableErrored:(0,(t=(r=e._writableState)===null||r===undefined?undefined:r.errored)!==null&&t!==undefined?t:null)}function x(e){var t,r;return!m(e)?null:(0,e.readableErrored)?e.readableErrored:(0,(t=(r=e._readableState)===null||r===undefined?undefined:r.errored)!==null&&t!==undefined?t:null)}function T(e){if(!m(e))return null;if(typeof e.closed=="boolean")return e.closed;let t=e._writableState;let r=e._readableState;return typeof(t===null||t===undefined?undefined:t.closed)=="boolean"||typeof(r===null||r===undefined?undefined:r.closed)=="boolean"?(t===null||t===undefined?undefined:t.closed)||(r===null||r===undefined?undefined:r.closed):(0,typeof e._closed=="boolean"&&A(e))?e._closed:(0,null)}function A(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function R(e){return typeof e._sent100=="boolean"&&A(e)}function M(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===undefined?undefined:t.upgradeOrConnect)===undefined}function L(e){if(!m(e))return null;let t=e._writableState;let r=e._readableState;let a=t||r;return!a&&R(e)||!!(a&&a.autoDestroy&&a.emitClose&&a.closed===!1)}module.exports={isDestroyed:b,kIsDestroyed:a,isDisturbed:function(e){var t;return!!(e&&((t=e[i])!==null&&t!==undefined?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:i,isErrored:function(e){var t,r,a,s,o,i,l,c,u,m;return!!(e&&((t=(r=(a=(s=(o=(i=e[n])!==null&&i!==undefined?i:e.readableErrored)!==null&&o!==undefined?o:e.writableErrored)!==null&&s!==undefined?s:(l=e._readableState)===null||l===undefined?undefined:l.errorEmitted)!==null&&a!==undefined?a:(c=e._writableState)===null||c===undefined?undefined:c.errorEmitted)!==null&&r!==undefined?r:(u=e._readableState)===null||u===undefined?undefined:u.errored)!==null&&t!==undefined?t:(m=e._writableState)===null||m===undefined?undefined:m.errored))},kIsErrored:n,isReadable:_,kIsReadable:s,kIsClosedPromise:r("nodejs.webstream.isClosedPromise"),kControllerErrorFunction:r("nodejs.webstream.controllerErrorFunction"),kIsWritable:o,isClosed:T,isDuplexNodeStream:u,isFinished:S,isIterable:g,isReadableNodeStream:l,isReadableStream:h,isReadableEnded:w,isReadableFinished:v,isReadableErrored:x,isNodeStream:m,isWebStream:p,isWritable:j,isWritableNodeStream:c,isWritableStream:d,isWritableEnded:y,isWritableFinished:k,isWritableErrored:E,isServerRequest:M,isServerResponse:R,willEmitClose:L,isTransformStream:f}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},259868(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(620949);__webpack_require__(598404);e.l}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},265662(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{g:()=>e});let e=["https://metamask.io","https://learn.metamask.io","https://mmi-support.zendesk.com","https://community.metamask.io","https://support.metamask.io"].map(e=>new URL(e).origin)}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},272864(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=__webpack_require__(948637).ObjectMultiplex}}).call(__webpack_require__._LM_("@metamask/object-multiplex",{module,__webpack_require__}))()},275204(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(477868);var t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};module.exports=i;var r=__webpack_require__(930042);var a=__webpack_require__(598846);__webpack_require__(129848)(i,r);{var n=t(a.prototype);for(var s=0;s<n.length;s++){var o=n[s];!i.prototype[o]&&(i.prototype[o]=a.prototype[o])}}function i(e){if(!(this instanceof i))return new i(e);r.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){if(this._writableState.ended)return;e.nextTick(c,this)}function c(e){e.end()}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(i.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(i.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(i.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===undefined||this._writableState===undefined?!1:(0,this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){if(this._readableState===undefined||this._writableState===undefined)return;this._readableState.destroyed=e,this._writableState.destroyed=e}})}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},275321(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(600408);let t=__webpack_require__(628229);let r=typeof Symbol=="function"&&typeof Symbol["for"]=="function"?Symbol["for"]("nodejs.util.inspect.custom"):null;function a(){try{let e=new Uint8Array(1);let t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}function n(e){if(e>0x7fffffff)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return o(e,t,r)}function o(e,t,r){if(typeof e=="string")return u(e,t);if(ArrayBuffer.isView(e))return h(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, "+"or Array-like Object. Received type "+typeof e);if(et(e,ArrayBuffer)||e&&et(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!=="undefined"&&(et(e,SharedArrayBuffer)||e&&et(e.buffer,SharedArrayBuffer)))return d(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return s.from(a,t,r);let n=f(e);if(n)return n;if(typeof Symbol!=="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return s.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, "+"or Array-like Object. Received type "+typeof e)}function i(e){if(typeof e!=="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e,t,r){return(i(e),e<=0)?n(e):(0,t!==undefined)?typeof r=="string"?n(e).fill(t,r):n(e).fill(t):(0,n(e))}function c(e){return i(e),n(e<0?0:p(e)|0)}function u(e,t){if((typeof t!=="string"||t==="")&&(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=b(e,t)|0;let a=n(r);let o=a.write(e,t);return o!==r&&(a=a.slice(0,o)),a}function m(e){let t=e.length<0?0:p(e.length)|0;let r=n(t);for(let a=0;a<t;a+=1)r[a]=e[a]&255;return r}function h(e){if(et(e,Uint8Array)){let t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return m(e)}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let a;return Object.setPrototypeOf(a=t===undefined&&r===undefined?new Uint8Array(e):r===undefined?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),a}function f(e){if(s.isBuffer(e)){let t=p(e.length)|0;let r=n(t);return r.length===0||(0,e.copy(r,0,0,t)),r}return e.length!==undefined?typeof e.length!=="number"||er(e.length)?n(0):(0,m(e)):(0,e.type==="Buffer"&&Array.isArray(e.data))?m(e.data):void 0}function p(e){if(e>=0x7fffffff)throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+0x7fffffff.toString(16)+" bytes");return e|0}function g(e){return+e!=e&&(e=0),s.alloc(+e)}function b(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||et(e,ArrayBuffer))return e.byteLength;if(typeof e!=="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. '+"Received type "+typeof e);let r=e.length;let a=arguments.length>2&&arguments[2]===!0;if(!a&&r===0)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return J(e).length;default:if(n)return a?-1:X(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){let a=!1;if(((t===undefined||t<0)&&(t=0),t>this.length)||((r===undefined||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";!e&&(e="utf8");while(!0)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return M(this,t,r);case"latin1":case"binary":return L(this,t,r);case"base64":return T(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function k(e,t,r){let a=e[t];e[t]=e[r],e[r]=a}function w(e,t,r,a,n){if(e.length===0)return-1;if(typeof r=="string"?(a=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),er(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if(typeof t=="string"&&(t=s.from(t,a)),s.isBuffer(t))return t.length===0?-1:(0,v(e,t,r,a,n));if(typeof t=="number"){return(t=t&255,typeof Uint8Array.prototype.indexOf=="function")?n?Uint8Array.prototype.indexOf.call(e,t,r):(0,Uint8Array.prototype.lastIndexOf.call(e,t,r)):(0,v(e,[t],r,a,n))}throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,a,n){let s=1;let o=e.length;let i=t.length;if(a!==undefined){if((a=String(a).toLowerCase())==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le"){if(e.length<2||t.length<2)return-1;s=2,o/=2,i/=2,r/=2}}function l(e,t){return s===1?e[t]:(0,e.readUInt16BE(t*s))}let c;if(n){let a=-1;for(c=r;c<o;c++)if(l(e,c)===l(t,a===-1?0:c-a)){if(a===-1&&(a=c),c-a+1===i)return a*s}else a!==-1&&(c-=c-a),a=-1}else for(r+i>o&&(r=o-i),c=r;c>=0;c--){let r=!0;for(let a=0;a<i;a++)if(l(e,c+a)!==l(t,a)){r=!1;break}if(r)return c}return-1}function _(e,t,r,a){r=Number(r)||0;let n=e.length-r;a?(a=Number(a))>n&&(a=n):a=n;let s=t.length;a>s/2&&(a=s/2);let o;for(o=0;o<a;++o){let a=parseInt(t.substr(o*2,2),16);if(er(a))return o;e[r+o]=a}return o}function j(e,t,r,a){return ee(X(t,e.length-r),e,r,a)}function S(e,t,r,a){return ee(Z(t),e,r,a)}function E(e,t,r,a){return ee(J(t),e,r,a)}function x(e,t,r,a){return ee(Q(t,e.length-r),e,r,a)}function T(t,r,a){return r===0&&a===t.length?e.fromByteArray(t):(0,e.fromByteArray(t.slice(r,a)))}function A(e,t,r){r=Math.min(e.length,r);let a=[];let n=t;while(n<r){let t=e[n];let s=null;let o=t>239?4:t>223?3:t>191?2:1;if(n+o<=r){let r,a,i,l;switch(o){case 1:t<128&&(s=t);break;case 2:((r=e[n+1])&192)==128&&(l=(t&31)<<6|r&63)>127&&(s=l);break;case 3:r=e[n+1],a=e[n+2],(r&192)==128&&(a&192)==128&&(l=(t&15)<<12|(r&63)<<6|a&63)>2047&&(l<55296||l>57343)&&(s=l);break;case 4:r=e[n+1],a=e[n+2],i=e[n+3],(r&192)==128&&(a&192)==128&&(i&192)==128&&(l=(t&15)<<18|(r&63)<<12|(a&63)<<6|i&63)>65535&&l<1114112&&(s=l)}}s===null?(s=65533,o=1):s>65535&&(s-=65536,a.push(s>>>10&1023|55296),s=56320|s&1023),a.push(s),n+=o}return R(a)}function R(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="";let a=0;while(a<t)r+=String.fromCharCode.apply(String,e.slice(a,a+=4096));return r}function M(e,t,r){let a="";r=Math.min(e.length,r);for(let n=t;n<r;++n)a+=String.fromCharCode(e[n]&127);return a}function L(e,t,r){let a="";r=Math.min(e.length,r);for(let n=t;n<r;++n)a+=String.fromCharCode(e[n]);return a}function O(e,t,r){let a=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>a)&&(r=a);let n="";for(let a=t;a<r;++a)n+=ea[e[a]];return n}function P(e,t,r){let a=e.slice(t,r);let n="";for(let e=0;e<a.length-1;e+=2)n+=String.fromCharCode(a[e]+a[e+1]*256);return n}function B(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,r,a,n,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw new RangeError('"value" argument is out of bounds');if(r+a>e.length)throw new RangeError("Index out of range")}function N(e,t,r,a,n){$(t,a,n,e,r,7);let s=Number(t&BigInt(0xffffffff));e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s;let o=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function I(e,t,r,a,n){$(t,a,n,e,r,7);let s=Number(t&BigInt(0xffffffff));e[r+7]=s,s=s>>8,e[r+6]=s,s=s>>8,e[r+5]=s,s=s>>8,e[r+4]=s;let o=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}function D(e,t,r,a,n,s){if(r+a>e.length||r<0)throw new RangeError("Index out of range")}function q(e,r,a,n,s){return r=+r,a=a>>>0,!s&&D(e,r,a,4,34028234663852886e22,-34028234663852886e22),t.write(e,r,a,n,23,4),a+4}function F(e,r,a,n,s){return r=+r,a=a>>>0,!s&&D(e,r,a,8,17976931348623157e292,-17976931348623157e292),t.write(e,r,a,n,52,8),a+8}exports.Buffer=s,exports.SlowBuffer=g,exports.INSPECT_MAX_BYTES=50,exports.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console!=="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by "+"`buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){return!s.isBuffer(this)?undefined:(0,this.buffer)}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){return!s.isBuffer(this)?undefined:(0,this.byteOffset)}}),s.poolSize=8192,s.from=function(e,t,r){return o(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return l(e,t,r)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(et(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),et(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length;let a=t.length;for(let n=0,s=Math.min(r,a);n<s;++n)if(e[n]!==t[n]){r=e[n],a=t[n];break}return r<a?-1:(0,a<r)?1:(0,0)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);let r;if(t===undefined)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let a=s.allocUnsafe(t);let n=0;for(r=0;r<e.length;++r){let t=e[r];if(et(t,Uint8Array))n+t.length>a.length?(!s.isBuffer(t)&&(t=s.from(t)),t.copy(a,n)):Uint8Array.prototype.set.call(a,t,n);else if(s.isBuffer(t))t.copy(a,n);else throw new TypeError('"list" argument must be an Array of Buffers');n+=t.length}return a},s.byteLength=b,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)k(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?"":(0,arguments.length==0)?A(this,0,e):(0,y.apply(this,arguments))},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:(0,s.compare(this,e)===0)},s.prototype.inspect=function(){let e="";let t=exports.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,r,a,n){if(et(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. '+"Received type "+typeof e);if(t===undefined&&(t=0),r===undefined&&(r=e?e.length:0),a===undefined&&(a=0),n===undefined&&(n=this.length),t<0||r>e.length||a<0||n>this.length)throw new RangeError("out of range index");if(a>=n&&t>=r)return 0;if(a>=n)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,a>>>=0,n>>>=0,this===e)return 0;let o=n-a;let i=r-t;let l=Math.min(o,i);let c=this.slice(a,n);let u=e.slice(t,r);for(let e=0;e<l;++e)if(c[e]!==u[e]){o=c[e],i=u[e];break}return o<i?-1:(0,i<o)?1:(0,0)},s.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1},s.prototype.indexOf=function(e,t,r){return w(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return w(this,e,t,r,!1)},s.prototype.write=function(e,t,r,a){if(t===undefined)a="utf8",r=this.length,t=0;else if(r===undefined&&typeof t=="string")a=t,r=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(r)?(r=r>>>0,a===undefined&&(a="utf8")):(a=r,r=undefined);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let n=this.length-t;if((r===undefined||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");!a&&(a="utf8");let s=!1;for(;;)switch(a){case"hex":return _(this,e,t,r);case"utf8":case"utf-8":return j(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=t===undefined?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let a=this.subarray(e,t);return Object.setPrototypeOf(a,s.prototype),a},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,!r&&B(e,t,this.length);let a=this[e];let n=1;let s=0;while(++s<t&&(n*=256))a+=this[e+s]*n;return a},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e=e>>>0,t=t>>>0,!r&&B(e,t,this.length);let a=this[e+--t];let n=1;while(t>0&&(n*=256))a+=this[e+--t]*n;return a},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e=e>>>0,!t&&B(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e=e>>>0,!t&&B(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e=e>>>0,!t&&B(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e=e>>>0,!t&&B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*0x1000000},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e=e>>>0,!t&&B(e,4,this.length),this[e]*0x1000000+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=en(function(e){G(e=e>>>0,"offset");let t=this[e];let r=this[e+7];(t===undefined||r===undefined)&&V(e,this.length-8);let a=t+this[++e]*256+this[++e]*65536+this[++e]*0x1000000;let n=this[++e]+this[++e]*256+this[++e]*65536+r*0x1000000;return BigInt(a)+(BigInt(n)<<BigInt(32))}),s.prototype.readBigUInt64BE=en(function(e){G(e=e>>>0,"offset");let t=this[e];let r=this[e+7];(t===undefined||r===undefined)&&V(e,this.length-8);let a=t*0x1000000+this[++e]*65536+this[++e]*256+this[++e];let n=this[++e]*0x1000000+this[++e]*65536+this[++e]*256+r;return(BigInt(a)<<BigInt(32))+BigInt(n)}),s.prototype.readIntLE=function(e,t,r){e=e>>>0,t=t>>>0,!r&&B(e,t,this.length);let a=this[e];let n=1;let s=0;while(++s<t&&(n*=256))a+=this[e+s]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,!r&&B(e,t,this.length);let a=t;let n=1;let s=this[e+--a];while(a>0&&(n*=256))s+=this[e+--a]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},s.prototype.readInt8=function(e,t){return(e=e>>>0,!t&&B(e,1,this.length),!(this[e]&128))?this[e]:(0,(255-this[e]+1)*-1)},s.prototype.readInt16LE=function(e,t){e=e>>>0,!t&&B(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|0xffff0000:r},s.prototype.readInt16BE=function(e,t){e=e>>>0,!t&&B(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|0xffff0000:r},s.prototype.readInt32LE=function(e,t){return e=e>>>0,!t&&B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e=e>>>0,!t&&B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=en(function(e){G(e=e>>>0,"offset");let t=this[e];let r=this[e+7];return(t===undefined||r===undefined)&&V(e,this.length-8),(BigInt(this[e+4]+this[e+5]*256+this[e+6]*65536+(r<<24))<<BigInt(32))+BigInt(t+this[++e]*256+this[++e]*65536+this[++e]*0x1000000)}),s.prototype.readBigInt64BE=en(function(e){G(e=e>>>0,"offset");let t=this[e];let r=this[e+7];return(t===undefined||r===undefined)&&V(e,this.length-8),(BigInt((t<<24)+this[++e]*65536+this[++e]*256+this[++e])<<BigInt(32))+BigInt(this[++e]*0x1000000+this[++e]*65536+this[++e]*256+r)}),s.prototype.readFloatLE=function(e,r){return e=e>>>0,!r&&B(e,4,this.length),t.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,r){return e=e>>>0,!r&&B(e,4,this.length),t.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,r){return e=e>>>0,!r&&B(e,8,this.length),t.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,r){return e=e>>>0,!r&&B(e,8,this.length),t.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,a){if(e=+e,t=t>>>0,r=r>>>0,!a){let a=Math.pow(2,8*r)-1;C(this,e,t,r,a,0)}let n=1;let s=0;this[t]=e&255;while(++s<r&&(n*=256))this[t+s]=e/n&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,a){if(e=+e,t=t>>>0,r=r>>>0,!a){let a=Math.pow(2,8*r)-1;C(this,e,t,r,a,0)}let n=r-1;let s=1;this[t+n]=e&255;while(--n>=0&&(s*=256))this[t+n]=e/s&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,!r&&C(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,!r&&C(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,!r&&C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,!r&&C(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,!r&&C(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigUInt64LE=en(function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=en(function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,a){if(e=+e,t=t>>>0,!a){let a=Math.pow(2,8*r-1);C(this,e,t,r,a-1,-a)}let n=0;let s=1;let o=0;this[t]=e&255;while(++n<r&&(s*=256))e<0&&o===0&&this[t+n-1]!==0&&(o=1),this[t+n]=(e/s>>0)-o&255;return t+r},s.prototype.writeIntBE=function(e,t,r,a){if(e=+e,t=t>>>0,!a){let a=Math.pow(2,8*r-1);C(this,e,t,r,a-1,-a)}let n=r-1;let s=1;let o=0;this[t+n]=e&255;while(--n>=0&&(s*=256))e<0&&o===0&&this[t+n+1]!==0&&(o=1),this[t+n]=(e/s>>0)-o&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,!r&&C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,!r&&C(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,!r&&C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,!r&&C(this,e,t,4,0x7fffffff,-0x80000000),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,!r&&C(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=en(function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=en(function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return q(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return q(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,a){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(!r&&(r=0),!a&&a!==0&&(a=this.length),t>=e.length&&(t=e.length),!t&&(t=0),a>0&&a<r&&(a=r),a===r||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t<a-r&&(a=e.length-t+r);let n=a-r;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,r,a):Uint8Array.prototype.set.call(e,this.subarray(r,a),t),n},s.prototype.fill=function(e,t,r,a){if(typeof e=="string"){if(typeof t=="string"?(a=t,t=0,r=this.length):typeof r=="string"&&(a=r,r=this.length),a!==undefined&&typeof a!=="string")throw new TypeError("encoding must be a string");if(typeof a=="string"&&!s.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(e.length===1){let t=e.charCodeAt(0);(a==="utf8"&&t<128||a==="latin1")&&(e=t)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;t=t>>>0,r=r===undefined?this.length:r>>>0,!e&&(e=0);let n;if(typeof e=="number")for(n=t;n<r;++n)this[n]=e;else{let o=s.isBuffer(e)?e:s.from(e,a);let i=o.length;if(i===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%i]}return this};let U={};function W(e,t,r){U[e]=class extends r{get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}}}function H(e){let t="";let r=e.length;let a=e[0]==="-"?1:0;for(;r>=a+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function z(e,t,r){G(t,"offset"),(e[t]===undefined||e[t+r]===undefined)&&V(t,e.length-(r+1))}function $(e,t,r,a,n,s){if(e>r||e<t){let a=typeof t=="bigint"?"n":"";let n;throw n=s>3?t===0||t===BigInt(0)?`>= 0${a} and < 2${a} ** ${(s+1)*8}${a}`:`>= -(2${a} ** ${(s+1)*8-1}${a}) and < 2 ** `+`${(s+1)*8-1}${a}`:`>= ${t}${a} and <= ${r}${a}`,new U.ERR_OUT_OF_RANGE("value",n,e)}z(a,n,s)}function G(e,t){if(typeof e!=="number")throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function V(e,t,r){if(Math.floor(e)!==e)throw G(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}W("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:(0,"Attempt to access memory outside buffer bounds")},RangeError),W("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),W("ERR_OUT_OF_RANGE",function(e,t,r){let a=`The value of "${e}" is out of range.`;let n=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?n=H(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=H(n)),n+="n"),a+=` It must be ${t}. Received ${n}`},RangeError);let Y=/[^+/0-9A-Za-z-_]/g;function K(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";while(e.length%4!==0)e=e+"=";return e}function X(e,t){t=t||Infinity;let r;let a=e.length;let n=null;let s=[];for(let o=0;o<a;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!n){if(r>56319||o+1===a){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function Z(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function Q(e,t){let r,a,n;let s=[];for(let o=0;o<e.length;++o){if((t-=2)<0)break;a=(r=e.charCodeAt(o))>>8,n=r%256,s.push(n),s.push(a)}return s}function J(t){return e.toByteArray(K(t))}function ee(e,t,r,a){let n;for(n=0;n<a;++n){if(n+r>=t.length||n>=e.length)break;t[n+r]=e[n]}return n}function et(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function er(e){return e!=e}let ea=function(){let e="0123456789abcdef";let t=new Array(256);for(let r=0;r<16;++r){let a=r*16;for(let n=0;n<16;++n)t[a+n]=e[r]+e[n]}return t}();function en(e){return typeof BigInt=="undefined"?es:e}function es(){throw new Error("BigInt not supported")}}}).call(__webpack_require__._LM_("buffer",{exports,__webpack_require__}))()},314598(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Q$:()=>h,bp:()=>j});var e=__webpack_require__(190937);var t=__webpack_require__.n(e);var r=__webpack_require__(835183);var a=__webpack_require__(272864);var n=__webpack_require__.n(a);var s=__webpack_require__(410276);__webpack_require__.n(s);var o=__webpack_require__(230700);__webpack_require__.n(o);var i=__webpack_require__(658457);var l=__webpack_require__(265662);var c=__webpack_require__(221057);var u=__webpack_require__(625430);var m=__webpack_require__(384666);let h=l.g.some(e=>e===window.location.origin);let d,f,p,g,b,y;function k(e){var t,a;let o=new r.UI({name:u.SM,target:"CookieHandlerPage",targetOrigin:e});(d=new(n())).setMaxListeners(25);let i=()=>{!d.destroyed&&!d.writableEnded&&d.end()};(t=o.once)===null||t===void 0||t.call(o,"close",i),(a=o.once)===null||a===void 0||a.call(o,"end",i),(0,s.pipeline)(d,o,d,e=>(0,m.R)("MetaMask Inpage Multiplex",e)),f=d.createStream(u.em),d.ignoreStream(u.xQ),d.ignoreStream(u.om),d.ignoreStream(u.s$),d.ignoreStream(u.ZU),d.ignoreStream(u.VD),d.ignoreStream(u.Yo)}let w=()=>{var e,r;p=t().runtime.connect({name:u.SM}),g=new o.ExtensionPortStream(p,{chunkSize:0}),(b=new(n())).setMaxListeners(25);let a=()=>{!b.destroyed&&!b.writableEnded&&b.end()};g===null||g===void 0||(e=g.once)===null||e===void 0||e.call(g,"close",a),g===null||g===void 0||(r=g.once)===null||r===void 0||r.call(g,"end",a),(0,s.pipeline)(b,g,b,e=>{(0,m.R)("MetaMask Background Multiplex",e),window.postMessage({target:"CookieHandlerPage",data:{name:u.em,data:{jsonrpc:"2.0",method:"METAMASK_STREAM_FAILURE"}}},window.location.origin)}),y=b.createStream(u.em),b.ignoreStream(u.xQ),b.ignoreStream(u.om),b.ignoreStream(u.s$),b.ignoreStream(u.ZU),b.ignoreStream(u.VD),b.ignoreStream(u.Yo),(0,s.pipeline)(f,y,f,e=>console.debug(`MetaMask: Muxed traffic for channel "${u.em}" failed.`,e)),p.onDisconnect.addListener(v)};let v=()=>{let e=(0,c.Cg)();p.onDisconnect.removeListener(v),f.removeAllListeners(),b.removeAllListeners(),b.destroy(),y.removeAllListeners(),y.destroy(),g=null,e&&(console.warn(`${e} Resetting the cookie streams.`),setTimeout(w,1e3))};let _=e=>{return e.name===i.X.READY?(!g&&w(),Promise.resolve(`MetaMask: handled "${i.X.READY}" for cookie streams`)):(0,undefined)};let j=()=>{let{origin:e}=window.location;k(e),w(),t().runtime.onMessage.addListener(_)}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},318804(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(620949);__webpack_require__(598404),e.l}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},327400(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t){let r=e.charCodeAt(0);let a=r^48|0;if(a>9)return null;let n=1|0;for(;;){if(n===t)return null;let r=e.charCodeAt(n)^48|0;if(r>9){if(r===76){n++;break}return null}n++,a=a*10+r}if(n===t)return null;let s=(r=e.charCodeAt(n))^48|0;if(s>9)return null;for(n++;;){if(n>=t)return null;let r=e.charCodeAt(n)^48|0;if(r>9){if(r===76){n++;break}return null}n++,s=s*10+r}if(n===t)return null;let o=e.charCodeAt(n)^48|0;return o>>>1!==0?null:(0,{id:a,seq:s,fin:o,source:e,dataIndex:n+1})}function t(t){if(typeof t!=="string")return null;let{length:r}=t;return r<6?null:(0,e(t,r))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.maybeParseAsChunkFrame=t}}).call(__webpack_require__._LM_("extension-port-stream",{exports,__webpack_require__}))()},348605(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=i;var e=__webpack_require__(843105).F,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,a=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0;var s=__webpack_require__(643163);function o(e,t){var a=this._transformState;a.transforming=!1;var n=a.writecb;if(n===null)return this.emit("error",new r);a.writechunk=null,a.writecb=null,t!=null&&this.push(t),n(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function i(e){if(!(this instanceof i))return new i(e);s.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;typeof this._flush!="function"||this._readableState.destroyed?c(this,null,null):this._flush(function(t,r){c(e,t,r)})}function c(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new n;if(e._transformState.transforming)throw new a;return e.push(null)}__webpack_require__(129848)(i,s),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},i.prototype._transform=function(e,r,a){a(new t("_transform()"))},i.prototype._write=function(e,t,r){var a=this._transformState;if(a.writecb=r,a.writechunk=e,a.writeencoding=t,!a.transforming){var n=this._readableState;(a.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},i.prototype._read=function(e){var t=this._transformState;t.writechunk===null||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},i.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},384666(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t){console.debug(`MetaMask: Content script lost connection to "${e}".`,t)}__webpack_require__.d(__webpack_exports__,{R:()=>e})}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},401329(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){try{if(!globalThis.localStorage)return!1}catch(e){return!1}var t=globalThis.localStorage[e];return null==t?!1:(0,String(t).toLowerCase()==="true")}module.exports=function t(t,r){if(e("noDeprecation"))return t;var a=!1;return function(){if(!a){if(e("throwDeprecation"))throw new Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),a=!0}return t.apply(this,arguments)}}}}).call(__webpack_require__._LM_("@storybook/react>util-deprecate",{module,__webpack_require__}))()},410276(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(626936);let t=__webpack_require__(215813);let r=e.Readable.destroy;module.exports=e.Readable,module.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,module.exports._isUint8Array=e._isUint8Array,module.exports.isDisturbed=e.isDisturbed,module.exports.isErrored=e.isErrored,module.exports.isReadable=e.isReadable,module.exports.Readable=e.Readable,module.exports.Writable=e.Writable,module.exports.Duplex=e.Duplex,module.exports.Transform=e.Transform,module.exports.PassThrough=e.PassThrough,module.exports.addAbortSignal=e.addAbortSignal,module.exports.finished=e.finished,module.exports.destroy=e.destroy,module.exports.destroy=r,module.exports.pipeline=e.pipeline,module.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return t}}),module.exports.Stream=e.Stream,module.exports["default"]=module.exports}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},414198(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(843105).F.ERR_INVALID_OPT_VALUE;function t(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}module.exports={getHighWaterMark:function(r,a,n,s){var o=t(a,s,n);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new e(s?n:"highWaterMark",o);return Math.floor(o)}return r.objectMode?16:16*1024}}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{__webpack_require__,module}))()},440164(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=i;var e=__webpack_require__(544866).F,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,a=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0;var s=__webpack_require__(275204);function o(e,t){var a=this._transformState;a.transforming=!1;var n=a.writecb;if(n===null)return this.emit("error",new r);a.writechunk=null,a.writecb=null,t!=null&&this.push(t),n(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function i(e){if(!(this instanceof i))return new i(e);s.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;typeof this._flush!="function"||this._readableState.destroyed?c(this,null,null):this._flush(function(t,r){c(e,t,r)})}function c(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new n;if(e._transformState.transforming)throw new a;return e.push(null)}__webpack_require__(129848)(i,s),i.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},i.prototype._transform=function(e,r,a){a(new t("_transform()"))},i.prototype._write=function(e,t,r){var a=this._transformState;if(a.writecb=r,a.writechunk=e,a.writeencoding=t,!a.transforming){var n=this._readableState;(a.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},i.prototype._read=function(e){var t=this._transformState;t.writechunk===null||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},i.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},454179(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{SC:()=>r,tT:()=>t});var e=__webpack_require__(514952);e.A.CONTRACT_ADDRESS_WARNING,e.A.TRANSACTION_SHIELD,e.A.FIND_TRANSACTION_HASH,e.A.METAMETRICS_SETTINGS;let t={chrome:">=113",edge:">=113"};let r={windows:{chrome:">=120",edge:">=120"},macos:{chrome:">=120",edge:">=120"},chrome:">=121",edge:">=121"}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},477868(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=module.exports={};var t;var r;function a(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}try{t=typeof setTimeout=="function"?setTimeout:a}catch(e){t=a}try{r=typeof clearTimeout=="function"?clearTimeout:n}catch(e){r=n}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}function o(e){if(r===clearTimeout)return clearTimeout(e);if((r===n||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}var i=[];var l=!1;var c;var u=-1;function m(){if(!l||!c)return;l=!1,c.length?i=c.concat(i):u=-1,i.length&&h()}function h(){if(l)return;var e=s(m);l=!0;var t=i.length;while(t){c=i,i=[];while(++u<t)c&&c[u].run();u=-1,t=i.length}c=null,l=!1,o(e)}function d(e,t){this.fun=e,this.array=t}function f(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];i.push(new d(e,t)),i.length===1&&!l&&s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=f,e.addListener=f,e.once=f,e.off=f,e.removeListener=f,e.removeAllListeners=f,e.emit=f,e.prependListener=f,e.prependOnceListener=f,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}}}).call(__webpack_require__._LM_("process",{module,__webpack_require__}))()},480935(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(767931).Buffer;var t=e.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(e){if(!e)return"utf8";var t;while(!0)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(a){var n=r(a);if(typeof n!=="string"&&(e.isEncoding===t||!t(a)))throw new Error("Unknown encoding: "+a);return n||a}function n(t){var r;switch(this.encoding=a(t),this.encoding){case"utf16le":this.text=m,this.end=h,r=4;break;case"utf8":this.fillLast=l,r=4;break;case"base64":this.text=d,this.end=f,r=3;break;default:this.write=p,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(r)}function s(e){return e<=127?0:(0,e>>5==6)?2:(0,e>>4==14)?3:(0,e>>3==30)?4:(0,e>>6==2?-1:-2)}function o(e,t,r){var a=t.length-1;if(a<r)return 0;var n=s(t[a]);return n>=0?(n>0&&(e.lastNeed=n-1),n):(0,--a<r||n===-2)?0:(0,(n=s(t[a]))>=0)?(n>0&&(e.lastNeed=n-2),n):(0,--a<r||n===-2)?0:(0,(n=s(t[a]))>=0)?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):(0,0)}function i(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128)return e.lastNeed=2,"�"}}}function l(e){var t=this.lastTotal-this.lastNeed;var r=i(this,e,t);return r!==undefined?r:(0,this.lastNeed<=e.length)?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(0,void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length))}function c(e,t){var r=o(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var a=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",t,a)}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":(0,t)}function m(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var a=r.charCodeAt(r.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function d(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):(0,t)}function p(e){return e.toString(this.encoding)}function g(e){return e&&e.length?this.write(e):""}exports.StringDecoder=n,n.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){if((t=this.fillLast(e))===undefined)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):(0,t||"")},n.prototype.end=u,n.prototype.text=c,n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}}).call(__webpack_require__._LM_("browserify>string_decoder",{__webpack_require__,exports}))()},482109(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{ArrayIsArray:e,ObjectSetPrototypeOf:t}=__webpack_require__(981452);let{EventEmitter:r}=__webpack_require__(120337);function a(e){r.call(this,e)}function n(t,r,a){if(typeof t.prependListener=="function")return t.prependListener(r,a);t._events&&t._events[r]?e(t._events[r])?t._events[r].unshift(a):t._events[r]=[a,t._events[r]]:t.on(r,a)}t(a.prototype,r.prototype),t(a,r),a.prototype.pipe=function(e,t){let a=this;function s(t){e.writable&&e.write(t)===!1&&a.pause&&a.pause()}function o(){a.readable&&a.resume&&a.resume()}a.on("data",s),e.on("drain",o),!e._isStdio&&(!t||t.end!==!1)&&(a.on("end",l),a.on("close",c));let i=!1;function l(){if(i)return;i=!0,e.end()}function c(){if(i)return;i=!0,typeof e.destroy=="function"&&e.destroy()}function u(e){m(),r.listenerCount(this,"error")===0&&this.emit("error",e)}function m(){a.removeListener("data",s),e.removeListener("drain",o),a.removeListener("end",l),a.removeListener("close",c),a.removeListener("error",u),e.removeListener("error",u),a.removeListener("end",m),a.removeListener("close",m),e.removeListener("close",m)}return n(a,"error",u),n(e,"error",u),a.on("end",m),a.on("close",m),e.on("close",m),e.emit("pipe",a),e},module.exports={Stream:a,prependListener:n}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},490449(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MIN_CHUNK_SIZE=exports.CHUNK_SIZE=void 0,exports.CHUNK_SIZE=globalThis.navigator.userAgent.includes("Firefox")?0:1<<26,exports.MIN_CHUNK_SIZE=24}}).call(__webpack_require__._LM_("extension-port-stream",{exports,__webpack_require__}))()},499497(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{format:e,inspect:t}=__webpack_require__(879697);let{AggregateError:r}=__webpack_require__(981452);let a=globalThis.AggregateError||r;let n=Symbol("kIsNodeError");let s=["string","function","number","object","Function","Object","boolean","bigint","symbol"];let o=/^([A-Z][a-z0-9]*)+$/;let i={};function l(e,t){if(!e)throw new i.ERR_INTERNAL_ASSERTION(t)}function c(e){let t="";let r=e.length;let a=e[0]==="-"?1:0;for(;r>=a+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function u(t,r,a){if(typeof r=="function")return l(r.length<=a.length,`Code: ${t}; The provided arguments length (${a.length}) does not match the required ones (${r.length}).`),r(...a);let n=(r.match(/%[dfijoOs]/g)||[]).length;return(l(n===a.length,`Code: ${t}; The provided arguments length (${a.length}) does not match the required ones (${n}).`),a.length===0)?r:(0,e(r,...a))}function m(e,t,r){!r&&(r=Error);class a extends r{toString(){return`${this.name} [${e}]: ${this.message}`}constructor(...r){super(u(e,t,r))}}Object.defineProperties(a.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),a.prototype.code=e,a.prototype[n]=!0,i[e]=a}function h(e){let t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}function d(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let r=new a([t,e],t.message);return r.code=t.code,r}return e||t}class f extends Error{constructor(e="The operation was aborted",t=undefined){if(t!==undefined&&typeof t!=="object")throw new i.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(e,r,a)=>{l(typeof e=="string","'name' must be a string"),!Array.isArray(r)&&(r=[r]);let n="The ";e.endsWith(" argument")?n+=`${e} `:n+=`"${e}" ${e.includes(".")?"property":"argument"} `,n+="must be ";let i=[];let c=[];let u=[];for(let e of r)l(typeof e=="string","All expected entries have to be of type string"),s.includes(e)?i.push(e.toLowerCase()):o.test(e)?c.push(e):(l(e!=="object",'The value "object" should be written as "Object"'),u.push(e));if(c.length>0){let e=i.indexOf("object");e!==-1&&(i.splice(i,e,1),c.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let e=i.pop();n+=`one of type ${i.join(", ")}, or ${e}`}}(c.length>0||u.length>0)&&(n+=" or ")}if(c.length>0){switch(c.length){case 1:n+=`an instance of ${c[0]}`;break;case 2:n+=`an instance of ${c[0]} or ${c[1]}`;break;default:{let e=c.pop();n+=`an instance of ${c.join(", ")}, or ${e}`}}u.length>0&&(n+=" or ")}switch(u.length){case 0:break;case 1:u[0].toLowerCase()!==u[0]&&(n+="an "),n+=`${u[0]}`;break;case 2:n+=`one of ${u[0]} or ${u[1]}`;break;default:{let e=u.pop();n+=`one of ${u.join(", ")}, or ${e}`}}if(a==null)n+=`. Received ${a}`;else if(typeof a=="function"&&a.name)n+=`. Received function ${a.name}`;else if(typeof a=="object"){var m;if((m=a.constructor)!==null&&m!==undefined&&m.name)n+=`. Received an instance of ${a.constructor.name}`;else{let e=t(a,{depth:-1});n+=`. Received ${e}`}}else{let e=t(a,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),n+=`. Received type ${typeof a} (${e})`}return n},TypeError),m("ERR_INVALID_ARG_VALUE",(e,r,a="is invalid")=>{let n=t(r);n.length>128&&(n=n.slice(0,128)+"...");let s=e.includes(".")?"property":"argument";return`The ${s} '${e}' ${a}. Received ${n}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var a;let n=r!==null&&r!==undefined&&(a=r.constructor)!==null&&a!==undefined&&a.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}"`+` function but got ${n}.`},TypeError),m("ERR_MISSING_ARGS",(...e)=>{l(e.length>0,"At least one arg needs to be specified");let t;let r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(e=>`"${e}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}break}return`${t} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(e,r,a)=>{l(r,'Missing "range" argument');let n;if(Number.isInteger(a)&&Math.abs(a)>0x100000000)n=c(String(a));else if(typeof a=="bigint"){n=String(a);let e=BigInt(2)**BigInt(32);(a>e||a<-e)&&(n=c(n)),n+="n"}else n=t(a);return`The value of "${e}" is out of range. It must be ${r}. Received ${n}`},RangeError),m("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),m("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),m("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),m("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),m("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),m("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),m("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),m("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),m("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),m("ERR_STREAM_WRITE_AFTER_END","write after end",Error),m("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),module.exports={AbortError:f,aggregateTwoErrors:h(d),hideStackFrames:h,codes:i}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},514952(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>e});let e={ACCOUNT_UPGRADE:"https://support.metamask.io/configure/accounts/what-is-a-smart-account/#what-are-metamask-smart-accounts",ADD_CUSTOM_TOKENS:"https://support.metamask.io/managing-my-tokens/custom-tokens/how-to-display-tokens-in-metamask/",ADD_SOLANA_ACCOUNTS:"https://support.metamask.io/configure/accounts/how-to-add-accounts-in-your-wallet/#solana-accounts",CUSTOMIZE_NONCE:"https://support.metamask.io/transactions-and-gas/transactions/how-to-customize-a-transaction-nonce/",GAS_FEES:"https://support.metamask.io/transactions-and-gas/gas-fees/",HARDWARE_CONNECTION:"https://support.metamask.io/privacy-and-security/hardware-wallet-hub/",HARDWARE_CONNECTION_TREZOR_LEDGER:"https://support.metamask.io/more-web3/wallets/how-to-connect-a-trezor-or-ledger-hardware-wallet/",IMPORT_ACCOUNT_MOBILE:"https://support.metamask.io/start/use-an-existing-wallet?client=mobile",IMPORTED_ACCOUNTS:"https://support.metamask.io/managing-my-wallet/accounts-and-addresses/what-are-imported-accounts-/",IMPORTED_ACCOUNT_JSON:"https://support.metamask.io/start/how-to-import-an-account/#how-can-i-import-my-private-key-using-a-json-file",IMPORTED_ACCOUNTS_PRIVATE_KEY:"https://support.metamask.io/start/use-an-existing-wallet/#import-using-a-private-key",INFURA_BLOCKAGE:"https://support.metamask.io/troubleshooting/why-infura-cannot-serve-certain-areas/",LEDGER_FIREFOX_U2F_GUIDE:"https://support.ledger.com/hc/en-us/articles/10371387758493-MetaMask-Firefox-Ledger-Integration-Issue?support=true",LEGACY_WEB3:"https://support.metamask.io/third-party-platforms-and-dapps/metamask-legacy-web3/",PASSWORD_ARTICLE:"https://support.metamask.io/configure/wallet/passwords-and-metamask/",PASSWORD_AND_SRP_ARTICLE:"https://support.metamask.io/getting-started/user-guide-secret-recovery-phrase-password-and-private-keys/",PRIVATE_KEY_GUIDE:"https://support.metamask.io/start/user-guide-secret-recovery-phrase-password-and-private-keys/#private-keys",PASSWORD_RESET:"https://support.metamask.io/configure/wallet/how-can-i-reset-my-password/",SECRET_RECOVERY_PHRASE:"https://support.metamask.io/privacy-and-security/what-is-a-secret-recovery-phrase-and-how-to-keep-your-crypto-wallet-secure/",NON_CUSTODIAL_WALLET:"https://support.metamask.io/getting-started/metamask-is-a-self-custodial-wallet/",SPEEDUP_CANCEL:"https://support.metamask.io/transactions-and-gas/transactions/how-to-speed-up-or-cancel-a-pending-transaction/",SUPPORT_URL:"https://support.metamask.io",TOKEN_SAFETY_PRACTICES:"https://support.metamask.io/managing-my-tokens/token-safety-practices/",UNKNOWN_NETWORK:"https://support.metamask.io/networks-and-sidechains/managing-networks/the-risks-of-connecting-to-an-unknown-network/",USER_GUIDE_CUSTOM_NETWORKS:"https://support.metamask.io/networks-and-sidechains/managing-networks/user-guide-custom-networks-and-sidechains/",USER_GUIDE_DAPPS:"https://support.metamask.io/third-party-platforms-and-dapps/user-guide-dapps/",USER_GUIDE_GAS:"https://support.metamask.io/transactions-and-gas/gas-fees/user-guide-gas/",VERIFY_CUSTOM_NETWORK:"https://support.metamask.io/networks-and-sidechains/managing-networks/verifying-custom-network-information/",NETWORK_DEPRECATED:"https://support.metamask.io/networks-and-sidechains/eth-on-testnets/",SOLANA_ACCOUNTS:"https://support.metamask.io/configure/accounts/how-to-add-accounts-in-your-wallet/#solana-accounts",METAMETRICS_SETTINGS:"https://support.metamask.io/privacy-and-security/how-to-manage-your-metametrics-settings",PROFILE_PRIVACY:"https://support.metamask.io/privacy-and-security/profile-privacy",CONTRACT_ADDRESS_WARNING:"https://support.metamask.io/managing-my-tokens/moving-your-tokens/why-am-i-being-warned-about-sending-tokens-to-a-contract/",TRANSACTION_SHIELD:"https://support.metamask.io/manage-crypto/transactions/transaction-shield",FIND_TRANSACTION_HASH:"https://support.metamask.io/manage-crypto/transactions/how-to-find-a-transaction-id",MULTICHAIN_ACCOUNTS:"https://support.metamask.io/configure/accounts/multichain-accounts/",CONNECTING_TO_DAPP:"https://support.metamask.io/more-web3/dapps/connecting-to-a-dapp/",PRIVACY_BEST_PRACTICES:"https://support.metamask.io/privacy-and-security/privacy-best-practices",BASIC_SAFETY_TIPS:"https://support.metamask.io/stay-safe/safety-in-web3/basic-safety-and-security-tips-for-metamask/",METAMASK_REWARDS:"https://support.metamask.io/manage-crypto/metamask-rewards",DECEPTIVE_SITE:"https://support.metamask.io/troubleshooting/deceptive-site-ahead-when-trying-to-connect-to-a-site/",SWAPS_USER_GUIDE:"https://support.metamask.io/token-swaps/user-guide-swaps/",UPDATE_VERSION:"https://support.metamask.io/configure/wallet/how-to-update-the-version-of-metamask/"}}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},520966(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=function(){throw new Error("Readable.from is not available in the browser")}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},541150(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";!0&&(module.exports=function(){var e={17:function(e,t,r){t.__esModule=!0,t.default=void 0;var a=r(18);t.default=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,a){void 0===a&&(a=!1);var n=e.getVersionPrecision(t),s=e.getVersionPrecision(r),o=Math.max(n,s),i=0,l=e.map([t,r],function(t){var r=o-e.getVersionPrecision(t),a=t+new Array(r+1).join(".0");return e.map(a.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(a&&(i=o-Math.min(n,s)),o-=1;o>=i;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===i)return 0;o-=1}else if(l[0][o]<l[1][o])return-1}},e.map=function(e,t){var r,a=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)a.push(t(e[r]));return a},e.find=function(e,t){var r,a;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,a=e.length;r<a;r+=1){var n=e[r];if(t(n,r))return n}},e.assign=function(e){for(var t,r,a=arguments.length,n=new Array(a>1?a-1:0),s=1;s<a;s++)n[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(n));for(t=0,r=n.length;t<r;t+=1)!function(){var r=n[t];"object"==typeof r&&null!==r&&Object.keys(r).forEach(function(t){e[t]=r[t]})}();return e},e.getBrowserAlias=function(e){return a.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return a.BROWSER_MAP[e]||""},e}(),e.exports=t.default},18:function(e,t,r){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){t.__esModule=!0,t.default=void 0;var a,n=(a=r(91))&&a.__esModule?a:{default:a},s=r(18);function o(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}t.default=function(){function e(){}var t;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new n.default(e,t)},e.parse=function(e){return new n.default(e).getResult()},e,t=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],null&&o(e.prototype,null),t&&o(e,t),e}(),e.exports=t.default},91:function(e,t,r){t.__esModule=!0,t.default=void 0;var a=l(r(92)),n=l(r(93)),s=l(r(94)),o=l(r(95)),i=l(r(17));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=i.default.find(a.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=i.default.find(n.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=i.default.find(s.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=i.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return i.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},a=0,n={},s=0;if(Object.keys(e).forEach(function(t){var o=e[t];"string"==typeof o?(n[t]=o,s+=1):"object"==typeof o&&(r[t]=o,a+=1)}),a>0){var o=Object.keys(r),l=i.default.find(o,function(e){return t.isOS(e)});if(l){var c=this.satisfies(r[l]);if(void 0!==c)return c}var u=i.default.find(o,function(e){return t.isPlatform(e)});if(u){var m=this.satisfies(r[u]);if(void 0!==m)return m}}if(s>0){var h=Object.keys(n),d=i.default.find(h,function(e){return t.isBrowser(e,!0)});if(void 0!==d)return this.compareVersion(n[d])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),a=e.toLowerCase(),n=i.default.getBrowserTypeByAlias(a);return t&&n&&(a=n.toLowerCase()),a===r},t.compareVersion=function(e){var t=[0],r=e,a=!1,n=this.getBrowserVersion();if("string"==typeof n)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(a=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(a=!0,r=e.substr(1)),t.indexOf(i.default.compareVersions(n,r,a))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}(),e.exports=t.default},92:function(e,t,r){t.__esModule=!0,t.default=void 0;var a,n=(a=r(17))&&a.__esModule?a:{default:a};var s=/version\/(\d+(\.?_?\d+)+)/i;t.default=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=n.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=n.default.getFirstMatch(s,e)||n.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=n.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=n.default.getFirstMatch(s,e)||n.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=n.default.getFirstMatch(s,e)||n.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=n.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=n.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=n.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=n.default.getFirstMatch(s,e)||n.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=n.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=n.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=n.default.getFirstMatch(s,e)||n.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=n.default.getFirstMatch(s,e)||n.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=n.default.getFirstMatch(s,e)||n.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=n.default.getFirstMatch(s,e)||n.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=n.default.getFirstMatch(s,e)||n.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=n.default.getFirstMatch(s,e)||n.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=n.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=n.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=n.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=n.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=n.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=n.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=n.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=n.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=n.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=n.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=n.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=n.default.getFirstMatch(s,e)||n.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=n.default.getFirstMatch(s,e)||n.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=n.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=n.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=n.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=n.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=n.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=n.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=n.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=n.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=n.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=n.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:n.default.getFirstMatch(t,e),version:n.default.getSecondMatch(t,e)}}}],e.exports=t.default},93:function(e,t,r){t.__esModule=!0,t.default=void 0;var a,n=(a=r(17))&&a.__esModule?a:{default:a},s=r(18);t.default=[{test:[/Roku\/DVP/],describe:function(e){var t=n.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:s.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=n.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=n.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=n.default.getWindowsVersionName(t);return{name:s.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:s.OS_MAP.iOS},r=n.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=n.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=n.default.getMacOSVersionName(t),a={name:s.OS_MAP.MacOS,version:t};return r&&(a.versionName=r),a}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=n.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=n.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=n.default.getAndroidVersionName(t),a={name:s.OS_MAP.Android,version:t};return r&&(a.versionName=r),a}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=n.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:s.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=n.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||n.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||n.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:s.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=n.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=n.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=n.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.PlayStation4,version:t}}}],e.exports=t.default},94:function(e,t,r){t.__esModule=!0,t.default=void 0;var a,n=(a=r(17))&&a.__esModule?a:{default:a},s=r(18);t.default=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=n.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=n.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}],e.exports=t.default},95:function(e,t,r){t.__esModule=!0,t.default=void 0;var a,n=(a=r(17))&&a.__esModule?a:{default:a},s=r(18);t.default=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:s.ENGINE_MAP.Blink};var t=n.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:s.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:s.ENGINE_MAP.Trident},r=n.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:s.ENGINE_MAP.Presto},r=n.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:s.ENGINE_MAP.Gecko},r=n.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:s.ENGINE_MAP.WebKit},r=n.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}],e.exports=t.default}};var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if((1&t&&(e=r(e)),8&t)||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,(function(t){return e[t]}).bind(null,n));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}())}}).call(__webpack_require__._LM_("bowser",{module,__webpack_require__})).bind(module.exports)()},544866(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var t={};function r(r,a,n){function s(e,t,r){return typeof a=="string"?a:(0,a(e,t,r))}!n&&(n=Error);var o=function(t){function r(e,r,a){return t.call(this,s(e,r,a))||this}return e(r,t),r}(n);o.prototype.name=n.name,o.prototype.code=r,t[r]=o}function a(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));{var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:(0,r===2)?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}}function n(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function s(e,t,r){return(r===undefined||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function o(e,t,r){return(typeof r!=="number"&&(r=0),r+t.length>e.length)?!1:(0,e.indexOf(t,r)!==-1)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;var l;if(typeof t=="string"&&n(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be",s(e," argument"))l="The ".concat(e," ").concat(i," ").concat(a(t,"type"));else{var c=o(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(a(t,"type"))}return l+". Received type ".concat(typeof r)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),module.exports.F=t}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},570638(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=t;var e=__webpack_require__(440164);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}__webpack_require__(129848)(t,e),t.prototype._transform=function(e,t,r){r(null,e)}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},578064(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(477868);var t;function r(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){var t=n(e,"string");return typeof t=="symbol"?t:String(t)}function n(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var a=r.call(e,t||"default");if(typeof a!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var s=__webpack_require__(912595);var o=Symbol("lastResolve");var i=Symbol("lastReject");var l=Symbol("error");var c=Symbol("ended");var u=Symbol("lastPromise");var m=Symbol("handlePromise");var h=Symbol("stream");function d(e,t){return{value:e,done:t}}function f(e){var t=e[o];if(t!==null){var r=e[h].read();r!==null&&(e[u]=null,e[o]=null,e[i]=null,t(d(r,!1)))}}function p(t){e.nextTick(f,t)}function g(e,t){return function(r,a){e.then(function(){if(t[c]){r(d(undefined,!0));return}t[m](r,a)},a)}}var b=Object.getPrototypeOf(function(){});var y=Object.setPrototypeOf((r(t={get stream(){return this[h]},next:function(){var t=this;var r=this[l];if(r!==null)return Promise.reject(r);if(this[c])return Promise.resolve(d(undefined,!0));if(this[h].destroyed)return new Promise(function(r,a){e.nextTick(function(){t[l]?a(t[l]):r(d(undefined,!0))})});var a=this[u];var n;if(a)n=new Promise(g(a,this));else{var s=this[h].read();if(s!==null)return Promise.resolve(d(s,!1));n=new Promise(this[m])}return this[u]=n,n}},Symbol.asyncIterator,function(){return this}),r(t,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(d(undefined,!0))})})}),t),b);module.exports=function(e){var t;var a=Object.create(y,(r(t={},h,{value:e,writable:!0}),r(t,o,{value:null,writable:!0}),r(t,i,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,c,{value:e._readableState.endEmitted,writable:!0}),r(t,m,{value:function(e,t){var r=a[h].read();r?(a[u]=null,a[o]=null,a[i]=null,e(d(r,!1))):(a[o]=e,a[i]=t)},writable:!0}),t));return a[u]=null,s(e,function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=a[i];t!==null&&(a[u]=null,a[o]=null,a[i]=null,t(e)),a[l]=e;return}var r=a[o];r!==null&&(a[u]=null,a[o]=null,a[i]=null,r(d(undefined,!0))),a[c]=!0}),e.on("readable",p.bind(null,a)),a}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{__webpack_require__,module}))()},579811(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=__webpack_require__(120337).EventEmitter}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},598404(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{E:()=>r,z:()=>t});var e=__webpack_require__(892035);let t="dedicatedWorker";function r(t){return(0,e.Gv)(t)&&Boolean(t.data)&&(typeof t.data=="number"||typeof t.data=="object"||typeof t.data=="string")}}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},598846(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(477868);function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){U(t,e)}}var r;module.exports=S,S.WritableState=_;var a={deprecate:__webpack_require__(401329)};var n=__webpack_require__(579811);var s=__webpack_require__(275321).Buffer;var o=(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:self!==void 0?self:{}).Uint8Array||function(){};function i(e){return s.from(e)}function l(e){return s.isBuffer(e)||e instanceof o}var c=__webpack_require__(975322);var u=__webpack_require__(769333).getHighWaterMark;var m=__webpack_require__(544866).F,h=m.ERR_INVALID_ARG_TYPE,d=m.ERR_METHOD_NOT_IMPLEMENTED,f=m.ERR_MULTIPLE_CALLBACK,p=m.ERR_STREAM_CANNOT_PIPE,g=m.ERR_STREAM_DESTROYED,b=m.ERR_STREAM_NULL_VALUES,y=m.ERR_STREAM_WRITE_AFTER_END,k=m.ERR_UNKNOWN_ENCODING;var w=c.errorOrDestroy;function v(){}function _(e,a,n){r=r||__webpack_require__(275204),e=e||{},typeof n!=="boolean"&&(n=a instanceof r),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=u(this,e,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=e.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){O(a,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}__webpack_require__(129848)(S,n),_.prototype.getBuffer=function(){var e=this.bufferedRequest;var t=[];while(e)t.push(e),e=e.next;return t};try{Object.defineProperty(_.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}var j;function S(e){var t=this instanceof(r=r||__webpack_require__(275204));if(!t&&!j.call(S,this))return new S(e);this._writableState=new _(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),n.call(this)}function E(t,r){var a=new y;w(t,a),e.nextTick(r,a)}function x(t,r,a,n){var s;return(a===null?s=new b:typeof a!=="string"&&!r.objectMode&&(s=new h("chunk",["string","Buffer"],a)),s)?(w(t,s),e.nextTick(n,s),!1):(0,!0)}function T(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=s.from(t,r)),t}function A(e,t,r,a,n,s){if(!r){var o=T(t,a,n);a!==o&&(r=!0,n="buffer",a=o)}var i=t.objectMode?1:a.length;t.length+=i;var l=t.length<t.highWaterMark;if(!l&&(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:a,encoding:n,isBuf:r,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,i,a,n,s);return l}function R(e,t,r,a,n,s,o){t.writelen=a,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):r?e._writev(n,t.onwrite):e._write(n,s,t.onwrite),t.sync=!1}function M(t,r,a,n,s){--r.pendingcb,a?(e.nextTick(s,n),e.nextTick(q,t,r),t._writableState.errorEmitted=!0,w(t,n)):(s(n),t._writableState.errorEmitted=!0,w(t,n),q(t,r))}function L(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function O(t,r){var a=t._writableState;var n=a.sync;var s=a.writecb;if(typeof s!=="function")throw new f;if(L(a),r)M(t,a,n,r,s);else{var o=N(a)||t.destroyed;!o&&!a.corked&&!a.bufferProcessing&&a.bufferedRequest&&C(t,a),n?e.nextTick(P,t,a,o,s):P(t,a,o,s)}}function P(e,t,r,a){!r&&B(e,t),t.pendingcb--,a(),q(e,t)}function B(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function C(e,r){r.bufferProcessing=!0;var a=r.bufferedRequest;if(e._writev&&a&&a.next){var n=new Array(r.bufferedRequestCount);var s=r.corkedRequestsFree;s.entry=a;var o=0;var i=!0;while(a)n[o]=a,!a.isBuf&&(i=!1),a=a.next,o+=1;n.allBuffers=i,R(e,r,!0,r.length,n,"",s.finish),r.pendingcb++,r.lastBufferedRequest=null,s.next?(r.corkedRequestsFree=s.next,s.next=null):r.corkedRequestsFree=new t(r),r.bufferedRequestCount=0}else{while(a){var l=a.chunk;var c=a.encoding;var u=a.callback;var m=r.objectMode?1:l.length;if(R(e,r,!1,m,l,c,u),a=a.next,r.bufferedRequestCount--,r.writing)break}a===null&&(r.lastBufferedRequest=null)}r.bufferedRequest=a,r.bufferProcessing=!1}function N(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function I(e,t){e._final(function(r){t.pendingcb--,r&&w(e,r),t.prefinished=!0,e.emit("prefinish"),q(e,t)})}function D(t,r){!r.prefinished&&!r.finalCalled&&(typeof t._final!="function"||r.destroyed?(r.prefinished=!0,t.emit("prefinish")):(r.pendingcb++,r.finalCalled=!0,e.nextTick(I,t,r)))}function q(e,t){var r=N(t);if(r){if(D(e,t),t.pendingcb===0){if(t.finished=!0,e.emit("finish"),t.autoDestroy){var a=e._readableState;(!a||a.autoDestroy&&a.endEmitted)&&e.destroy()}}}return r}function F(t,r,a){r.ending=!0,q(t,r),a&&(r.finished?e.nextTick(a):t.once("finish",a)),r.ended=!0,t.writable=!1}function U(e,t,r){var a=e.entry;e.entry=null;while(a){var n=a.callback;t.pendingcb--,n(r),a=a.next}t.corkedRequestsFree.next=e}typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return j.call(this,e)?!0:(0,this!==S)?!1:(0,e&&e._writableState instanceof _)}})):j=function(e){return e instanceof this},S.prototype.pipe=function(){w(this,new p)},S.prototype.write=function(e,t,r){var a=this._writableState;var n=!1;var o=!a.objectMode&&l(e);return o&&!s.isBuffer(e)&&(e=i(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":!t&&(t=a.defaultEncoding),typeof r!=="function"&&(r=v),a.ending?E(this,r):(o||x(this,a,e,r))&&(a.pendingcb++,n=A(this,a,o,e,t,r)),n},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&C(this,e))},S.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new d("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var a=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!==null&&e!==undefined&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),!a.ending&&F(this,a,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===undefined?!1:(0,this._writableState.destroyed)},set:function(e){if(!this._writableState)return;this._writableState.destroyed=e}}),S.prototype.destroy=c.destroy,S.prototype._undestroy=c.undestroy,S.prototype._destroy=function(e,t){t(e)}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},599993(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(477868);var t;module.exports=E,E.ReadableState=S,__webpack_require__(120337).EventEmitter;var r=function(e,t){return e.listeners(t).length};var a=__webpack_require__(606438);var n=__webpack_require__(275321).Buffer;var s=(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:self!==void 0?self:{}).Uint8Array||function(){};function o(e){return n.from(e)}function i(e){return n.isBuffer(e)||e instanceof s}var l=__webpack_require__(201783);var c;c=l&&l.debuglog?l.debuglog("stream"):function(){};var u=__webpack_require__(692196);var m=__webpack_require__(941573);var h=__webpack_require__(414198).getHighWaterMark;var d=__webpack_require__(843105).F,f=d.ERR_INVALID_ARG_TYPE,p=d.ERR_STREAM_PUSH_AFTER_EOF,g=d.ERR_METHOD_NOT_IMPLEMENTED,b=d.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var y;var k;var w;__webpack_require__(129848)(E,a);var v=m.errorOrDestroy;var _=["error","close","destroy","pause","resume"];function j(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function S(e,r,a){t=t||__webpack_require__(643163),e=e||{},typeof a!=="boolean"&&(a=r instanceof t),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=h(this,e,"readableHighWaterMark",a),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(!y&&(y=__webpack_require__(480935).StringDecoder),this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(t=t||__webpack_require__(643163),!(this instanceof E))return new E(e);var r=this instanceof t;this._readableState=new S(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),a.call(this)}function x(e,t,r,a,s){c("readableAddChunk",t);var i=e._readableState;if(t===null)i.reading=!1,L(e,i);else{var l;if(!s&&(l=A(i,t)),l)v(e,l);else if(i.objectMode||t&&t.length>0)if(typeof t!=="string"&&!i.objectMode&&Object.getPrototypeOf(t)!==n.prototype&&(t=o(t)),a)i.endEmitted?v(e,new b):T(e,i,t,!0);else if(i.ended)v(e,new p);else if(i.destroyed)return!1;else i.reading=!1,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||t.length!==0?T(e,i,t,!1):B(e,i)):T(e,i,t,!1);else!a&&(i.reading=!1,B(e,i))}return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function T(e,t,r,a){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,a?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&O(e)),B(e,t)}function A(e,t){var r;return!i(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode&&(r=new f("chunk",["string","Buffer","Uint8Array"],t)),r}function R(e){return e>=0x40000000?e=0x40000000:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||t.length===0&&t.ended?0:(0,t.objectMode)?1:(0,e!=e)?t.flowing&&t.length?t.buffer.head.data.length:(0,t.length):(0,(e>t.highWaterMark&&(t.highWaterMark=R(e)),e<=t.length)?e:(0,!t.ended)?(t.needReadable=!0,0):(0,t.length))}function L(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,!t.emittedReadable&&(t.emittedReadable=!0,P(e)))}function O(t){var r=t._readableState;c("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,!r.emittedReadable&&(c("emitReadable",r.flowing),r.emittedReadable=!0,e.nextTick(P,t))}function P(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,U(e)}function B(t,r){!r.readingMore&&(r.readingMore=!0,e.nextTick(C,t,r))}function C(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0)){var r=t.length;if(c("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function N(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,"data")&&(t.flowing=!0,U(e))}}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){c("readable nexttick read 0"),e.read(0)}function q(t,r){!r.resumeScheduled&&(r.resumeScheduled=!0,e.nextTick(F,t,r))}function F(e,t){c("resume",t.reading),!t.reading&&e.read(0),t.resumeScheduled=!1,e.emit("resume"),U(e),t.flowing&&!t.reading&&e.read(0)}function U(e){var t=e._readableState;c("flow",t.flowing);while(t.flowing&&e.read()!==null);}function W(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function H(t){var r=t._readableState;c("endReadable",r.endEmitted),!r.endEmitted&&(r.ended=!0,e.nextTick(z,r,t))}function z(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}}function $(e,t){for(var r=0,a=e.length;r<a;r++)if(e[r]===t)return r;return-1}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===undefined?!1:(0,this._readableState.destroyed)},set:function(e){if(!this._readableState)return;this._readableState.destroyed=e}}),E.prototype.destroy=m.destroy,E.prototype._undestroy=m.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var r=this._readableState;var a;return r.objectMode?a=!0:typeof e=="string"&&((t=t||r.defaultEncoding)!==r.encoding&&(e=n.from(e,t),t=""),a=!0),x(this,e,t,!1,a)},E.prototype.unshift=function(e){return x(this,e,null,!0,!1)},E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(e){!y&&(y=__webpack_require__(480935).StringDecoder);var t=new y(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head;var a="";while(r!==null)a+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),a!==""&&this._readableState.buffer.push(a),this._readableState.length=a.length,this},E.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?H(this):O(this),null;if((e=M(e,t))===0&&t.ended)return t.length===0&&H(this),null;var a=t.needReadable;var n;return c("need readable",a),(t.length===0||t.length-e<t.highWaterMark)&&c("length less than watermark",a=!0),t.ended||t.reading?c("reading or ended",a=!1):a&&(c("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,!t.reading&&(e=M(r,t))),(n=e>0?W(e,t):null)===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(!t.ended&&(t.needReadable=!0),r!==e&&t.ended&&H(this)),n!==null&&this.emit("data",n),n},E.prototype._read=function(e){v(this,new g("_read()"))},E.prototype.pipe=function(t,a){var n=this;var s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t);break}s.pipesCount+=1,c("pipe count=%d opts=%j",s.pipesCount,a);var o=(!a||a.end!==!1)&&t!==e.stdout&&t!==e.stderr?l:b;function i(e,t){c("onunpipe"),e===n&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,h())}function l(){c("onend"),t.end()}s.endEmitted?e.nextTick(o):n.once("end",o),t.on("unpipe",i);var u=N(n);t.on("drain",u);var m=!1;function h(){c("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),t.removeListener("drain",u),t.removeListener("error",f),t.removeListener("unpipe",i),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",d),m=!0,s.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}function d(e){c("ondata");var r=t.write(e);c("dest.write",r),r===!1&&((s.pipesCount===1&&s.pipes===t||s.pipesCount>1&&$(s.pipes,t)!==-1)&&!m&&(c("false write response, pause",s.awaitDrain),s.awaitDrain++),n.pause())}function f(e){c("onerror",e),b(),t.removeListener("error",f),r(t,"error")===0&&v(t,e)}function p(){t.removeListener("finish",g),b()}function g(){c("onfinish"),t.removeListener("close",p),b()}function b(){c("unpipe"),n.unpipe(t)}return n.on("data",d),j(t,"error",f),t.once("close",p),t.once("finish",g),t.emit("pipe",n),!s.flowing&&(c("pipe resume"),n.resume()),t},E.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes||(!e&&(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var a=t.pipes;var n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<n;s++)a[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=$(t.pipes,e);return o===-1||(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},E.prototype.on=function(t,r){var n=a.prototype.on.call(this,t,r);var s=this._readableState;return t==="data"?(s.readableListening=this.listenerCount("readable")>0,s.flowing!==!1&&this.resume()):t==="readable"&&!s.endEmitted&&!s.readableListening&&(s.readableListening=s.needReadable=!0,s.flowing=!1,s.emittedReadable=!1,c("on readable",s.length,s.reading),s.length?O(this):!s.reading&&e.nextTick(D,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,r){var n=a.prototype.removeListener.call(this,t,r);return t==="readable"&&e.nextTick(I,this),n},E.prototype.removeAllListeners=function(t){var r=a.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===undefined)&&e.nextTick(I,this),r},E.prototype.resume=function(){var e=this._readableState;return!e.flowing&&(c("resume"),e.flowing=!e.readableListening,q(this,e)),e.paused=!1,this},E.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this;var r=this._readableState;var a=!1;for(var n in e.on("end",function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(n){if((c("wrapped data"),r.decoder&&(n=r.decoder.write(n)),r.objectMode&&(n===null||n===undefined))||!r.objectMode&&(!n||!n.length))return;!t.push(n)&&(a=!0,e.pause())}),e)this[n]===undefined&&typeof e[n]=="function"&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var s=0;s<_.length;s++)e.on(_[s],this.emit.bind(this,_[s]));return this._read=function(t){c("wrapped _read",t),a&&(a=!1,e.resume())},this},typeof Symbol=="function"&&(E.prototype[Symbol.asyncIterator]=function(){return k===undefined&&(k=__webpack_require__(578064)),k(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=W,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(E.from=function(e,t){return w===undefined&&(w=__webpack_require__(520966)),w(E,e,t)})}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},600408(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";exports.byteLength=i,exports.toByteArray=c,exports.fromByteArray=h;var e=[];var t=[];var r=typeof Uint8Array!=="undefined"?Uint8Array:Array;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var n=0,s=a.length;n<s;++n)e[n]=a[n],t[a.charCodeAt(n)]=n;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var a=r===t?0:4-r%4;return[r,a]}function i(e){var t=o(e);var r=t[0];var a=t[1];return(r+a)*3/4-a}function l(e,t,r){return(t+r)*3/4-r}function c(e){var a;var n=o(e);var s=n[0];var i=n[1];var c=new r(l(e,s,i));var u=0;var m=i>0?s-4:s;var h;for(h=0;h<m;h+=4)a=t[e.charCodeAt(h)]<<18|t[e.charCodeAt(h+1)]<<12|t[e.charCodeAt(h+2)]<<6|t[e.charCodeAt(h+3)],c[u++]=a>>16&255,c[u++]=a>>8&255,c[u++]=a&255;return i===2&&(a=t[e.charCodeAt(h)]<<2|t[e.charCodeAt(h+1)]>>4,c[u++]=a&255),i===1&&(a=t[e.charCodeAt(h)]<<10|t[e.charCodeAt(h+1)]<<4|t[e.charCodeAt(h+2)]>>2,c[u++]=a>>8&255,c[u++]=a&255),c}function u(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[t&63]}function m(e,t,r){;var a=[];for(var n=t;n<r;n+=3)a.push(u((e[n]<<16&0xff0000)+(e[n+1]<<8&65280)+(e[n+2]&255)));return a.join("")}function h(t){var r;var a=t.length;var n=a%3;var s=[];for(var o=0,i=a-n;o<i;o+=16383)s.push(m(t,o,o+16383>i?i:o+16383));return n===1?s.push(e[(r=t[a-1])>>2]+e[r<<4&63]+"=="):n===2&&s.push(e[(r=(t[a-2]<<8)+t[a-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),s.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63}}).call(__webpack_require__._LM_("base64-js",{exports,__webpack_require__}))()},602908(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{pipeline:e}=__webpack_require__(117644);let t=__webpack_require__(218244);let{destroyer:r}=__webpack_require__(207978);let{isNodeStream:a,isReadable:n,isWritable:s,isWebStream:o,isTransformStream:i,isWritableStream:l,isReadableStream:c}=__webpack_require__(249341);let{AbortError:u,codes:{ERR_INVALID_ARG_VALUE:m,ERR_MISSING_ARGS:h}}=__webpack_require__(499497);let d=__webpack_require__(108496);module.exports=function(...f){if(f.length===0)throw new h("streams");if(f.length===1)return t.from(f[0]);let p=[...f];if(typeof f[0]=="function"&&(f[0]=t.from(f[0])),typeof f[f.length-1]=="function"){let e=f.length-1;f[e]=t.from(f[e])}for(let e=0;e<f.length;++e){if(!a(f[e])&&!o(f[e]))continue;if(e<f.length-1&&!(n(f[e])||c(f[e])||i(f[e])))throw new m(`streams[${e}]`,p[e],"must be readable");if(e>0&&!(s(f[e])||l(f[e])||i(f[e])))throw new m(`streams[${e}]`,p[e],"must be writable")}let g;let b;let y;let k;let w;function v(e){let t=k;k=null,t?t(e):e?w.destroy(e):!E&&!S&&w.destroy()}let _=f[0];let j=e(f,v);let S=!!(s(_)||l(_)||i(_));let E=!!(n(j)||c(j)||i(j));if(w=new t({writableObjectMode:!!(_!==null&&_!==undefined&&_.writableObjectMode),readableObjectMode:!!(j!==null&&j!==undefined&&j.readableObjectMode),writable:S,readable:E}),S){if(a(_))w._write=function(e,t,r){_.write(e,t)?r():g=r},w._final=function(e){_.end(),b=e},_.on("drain",function(){if(g){let e=g;g=null,e()}});else if(o(_)){let e=(i(_)?_.writable:_).getWriter();w._write=async function(t,r,a){try{await e.ready,e.write(t).catch(()=>{}),a()}catch(e){a(e)}},w._final=async function(t){try{await e.ready,e.close().catch(()=>{}),b=t}catch(e){t(e)}}}d(i(j)?j.readable:j,()=>{if(b){let e=b;b=null,e()}})}if(E){if(a(j))j.on("readable",function(){if(y){let e=y;y=null,e()}}),j.on("end",function(){w.push(null)}),w._read=function(){while(!0){let e=j.read();if(e===null){y=w._read;return}if(!w.push(e))return}};else if(o(j)){let e=(i(j)?j.readable:j).getReader();w._read=async function(){while(!0)try{let{value:t,done:r}=await e.read();if(!w.push(t))return;if(r){w.push(null);return}}catch{return}}}}return w._destroy=function(e,t){!e&&k!==null&&(e=new u),y=null,g=null,b=null,k===null?t(e):(k=t,a(j)&&r(j,e))},w}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},606438(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=__webpack_require__(120337).EventEmitter}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},620949(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{l:()=>r});var e=__webpack_require__(161398);let t=()=>undefined;class r extends e.Duplex{_handshake(){this._write("SYN",null,t),this.cork()}_onData(e){if(this._init)try{this.push(e),this._log(e,!1)}catch(e){this.emit("error",e)}else e==="SYN"?(this._haveSyn=!0,this._write("ACK",null,t)):e==="ACK"&&(this._init=!0,!this._haveSyn&&this._write("ACK",null,t),this.uncork())}_read(){return undefined}_write(e,t,r){e!=="ACK"&&e!=="SYN"&&this._log(e,!0),this._postMessage(e),r()}_setLogger(e){this._log=e}constructor(e){super(Object.assign({objectMode:!0},e)),this._init=!1,this._haveSyn=!1,this._log=()=>null}}}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},622442(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(477868);let{PromisePrototypeThen:t,SymbolAsyncIterator:r,SymbolIterator:a}=__webpack_require__(981452);let{Buffer:n}=__webpack_require__(275321);let{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:o}=__webpack_require__(499497).codes;module.exports=function(i,l,c){let u;if(typeof l=="string"||l instanceof n)return new i({objectMode:!0,...c,read(){this.push(l),this.push(null)}});let m;if(l&&l[r])m=!0,u=l[r]();else if(l&&l[a])m=!1,u=l[a]();else throw new s("iterable",["Iterable"],l);let h=new i({objectMode:!0,highWaterMark:1,...c});let d=!1;async function f(e){let t=e!==undefined&&e!==null;let r=typeof u.throw=="function";if(t&&r){let{value:t,done:r}=await u.throw(e);if(await t,r)return}if(typeof u.return=="function"){let{value:e}=await u.return();await e}}async function p(){for(;;){try{let{value:e,done:t}=m?await u.next():u.next();if(t)h.push(null);else{let t=e&&typeof e.then=="function"?await e:e;if(t===null)throw d=!1,new o;if(h.push(t))continue;d=!1}}catch(e){h.destroy(e)}break}}return h._read=function(){!d&&(d=!0,p())},h._destroy=function(r,a){t(f(r),()=>e.nextTick(a,r),t=>e.nextTick(a,t||r))},h}}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},625430(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{SM:()=>e,VD:()=>o,Xy:()=>c,Yo:()=>i,ZU:()=>s,em:()=>a,jf:()=>t,om:()=>u,s$:()=>n,uA:()=>r,ur:()=>l,xQ:()=>m});let e="metamask-contentscript";let t="metamask-inpage";let r="metamask-phishing-warning-page";let a="metamask-cookie-handler";let n="metamask-provider";let s="metamask-multichain-provider";let o="metamask-phishing-safelist";let i="phishing";let l="contentscript";let c="inpage";let u="provider";let m="publicConfig"}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},626936(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{Buffer:e}=__webpack_require__(275321);let{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:a}=__webpack_require__(981452);let{promisify:{custom:n}}=__webpack_require__(70034);let{streamReturningOperators:s,promiseReturningOperators:o}=__webpack_require__(190993);let{codes:{ERR_ILLEGAL_CONSTRUCTOR:i}}=__webpack_require__(499497);let l=__webpack_require__(602908);let{setDefaultHighWaterMark:c,getDefaultHighWaterMark:u}=__webpack_require__(176613);let{pipeline:m}=__webpack_require__(117644);let{destroyer:h}=__webpack_require__(207978);let d=__webpack_require__(108496);let f=__webpack_require__(215813);let p=__webpack_require__(249341);let g=module.exports=__webpack_require__(482109).Stream;for(let e of(g.isDestroyed=p.isDestroyed,g.isDisturbed=p.isDisturbed,g.isErrored=p.isErrored,g.isReadable=p.isReadable,g.isWritable=p.isWritable,g.Readable=__webpack_require__(671610),r(s))){let r=s[e];function b(...e){if(new.target)throw i();return g.Readable.from(a(r,this,e))}t(b,"name",{__proto__:null,value:r.name}),t(b,"length",{__proto__:null,value:r.length}),t(g.Readable.prototype,e,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}for(let e of r(o)){let r=o[e];function y(...e){if(new.target)throw i();return a(r,this,e)}t(y,"name",{__proto__:null,value:r.name}),t(y,"length",{__proto__:null,value:r.length}),t(g.Readable.prototype,e,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}g.Writable=__webpack_require__(680190),g.Duplex=__webpack_require__(218244),g.Transform=__webpack_require__(689572),g.PassThrough=__webpack_require__(810958),g.pipeline=m;let{addAbortSignal:k}=__webpack_require__(717765);g.addAbortSignal=k,g.finished=d,g.destroy=h,g.compose=l,g.setDefaultHighWaterMark=c,g.getDefaultHighWaterMark=u,t(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return f}}),t(m,n,{__proto__:null,enumerable:!0,get(){return f.pipeline}}),t(d,n,{__proto__:null,enumerable:!0,get(){return f.finished}}),g.Stream=g,g._isUint8Array=function(e){return e instanceof Uint8Array},g._uint8ArrayToBuffer=function(t){return e.from(t.buffer,t.byteOffset,t.byteLength)}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},628229(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";exports.read=function(e,t,r,a,n){var s,o;var i=n*8-a-1;var l=(1<<i)-1;var c=l>>1;var u=-7;var m=r?n-1:0;var h=r?-1:1;var d=e[t+m];for(m+=h,s=d&(1<<-u)-1,d>>=-u,u+=i;u>0;s=s*256+e[t+m],m+=h,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=a;u>0;o=o*256+e[t+m],m+=h,u-=8);if(s===0)s=1-c;else if(s===l)return o?NaN:(d?-1:1)*Infinity;else o=o+Math.pow(2,a),s=s-c;return(d?-1:1)*o*Math.pow(2,s-a)},exports.write=function(e,t,r,a,n,s){var o,i,l;var c=s*8-n-1;var u=(1<<c)-1;var m=u>>1;var h=n===23?5960464477539063e-23-6617444900424222e-39:0;var d=a?0:s-1;var f=a?1:-1;var p=t<0||t===0&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===Infinity?(i=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+m>=1?t+=h/l:t+=h*Math.pow(2,1-m),t*l>=2&&(o++,l/=2),o+m>=u?(i=0,o=u):o+m>=1?(i=(t*l-1)*Math.pow(2,n),o=o+m):(i=t*Math.pow(2,m-1)*Math.pow(2,n),o=0));n>=8;e[r+d]=i&255,d+=f,i/=256,n-=8);for(o=o<<n|i,c+=n;c>0;e[r+d]=o&255,d+=f,o/=256,c-=8);e[r+d-f]|=p*128}}}).call(__webpack_require__._LM_("buffer>ieee754",{exports,__webpack_require__}))()},639266(){},643163(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(477868);var t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};module.exports=i;var r=__webpack_require__(599993);var a=__webpack_require__(828233);__webpack_require__(129848)(i,r);{var n=t(a.prototype);for(var s=0;s<n.length;s++){var o=n[s];!i.prototype[o]&&(i.prototype[o]=a.prototype[o])}}function i(e){if(!(this instanceof i))return new i(e);r.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){if(this._writableState.ended)return;e.nextTick(c,this)}function c(e){e.end()}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(i.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(i.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(i.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===undefined||this._writableState===undefined?!1:(0,this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){if(this._readableState===undefined||this._writableState===undefined)return;this._readableState.destroyed=e,this._writableState.destroyed=e}})}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},652431(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{StringPrototypeSlice:e,SymbolIterator:t,TypedArrayPrototypeSet:r,Uint8Array:a}=__webpack_require__(981452);let{Buffer:n}=__webpack_require__(275321);let{inspect:s}=__webpack_require__(70034);module.exports=class{push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let t=this.head;let r=""+t.data;while((t=t.next)!==null)r+=e+t.data;return r}concat(e){if(this.length===0)return n.alloc(0);let t=n.allocUnsafe(e>>>0);let a=this.head;let s=0;while(a)r(t,a.data,s),s+=a.data.length,a=a.next;return t}consume(e,t){let r=this.head.data;if(e<r.length){let t=r.slice(0,e);return this.head.data=r.slice(e),t}return e===r.length?this.shift():(0,t?this._getString(e):this._getBuffer(e))}first(){return this.head.data}*[t](){for(let e=this.head;e;e=e.next)yield e.data}_getString(t){let r="";let a=this.head;let n=0;do{let s=a.data;if(t>s.length)r+=s,t-=s.length;else{t===s.length?(r+=s,++n,a.next?this.head=a.next:this.head=this.tail=null):(r+=e(s,0,t),this.head=a,a.data=e(s,t));break}++n}while((a=a.next)!==null)return this.length-=n,r}_getBuffer(e){let t=n.allocUnsafe(e);let s=e;let o=this.head;let i=0;do{let n=o.data;if(e>n.length)r(t,n,s-e),e-=n.length;else{e===n.length?(r(t,n,s-e),++i,o.next?this.head=o.next:this.head=this.tail=null):(r(t,new a(n.buffer,n.byteOffset,e),s-e),this.head=o,o.data=n.slice(e));break}++i}while((o=o.next)!==null)return this.length-=i,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return s(this,{...t,depth:0,customInspect:!1})}constructor(){this.head=null,this.tail=null,this.length=0}}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},658457(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{X:()=>e});let e={READY:"METAMASK_EXTENSION_READY"}}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},667544(){},671610(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(477868);let{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:a,NumberParseInt:n,ObjectDefineProperties:s,ObjectKeys:o,ObjectSetPrototypeOf:i,Promise:l,SafeSet:c,SymbolAsyncDispose:u,SymbolAsyncIterator:m,Symbol:h}=__webpack_require__(981452);module.exports=K,K.ReadableState=Y;let{EventEmitter:d}=__webpack_require__(120337);let{Stream:f,prependListener:p}=__webpack_require__(482109);let{Buffer:g}=__webpack_require__(275321);let{addAbortSignal:b}=__webpack_require__(717765);let y=__webpack_require__(108496);let k=__webpack_require__(70034).debuglog("stream",e=>{k=e});let w=__webpack_require__(652431);let v=__webpack_require__(207978);let{getHighWaterMark:_,getDefaultHighWaterMark:j}=__webpack_require__(176613);let{aggregateTwoErrors:S,codes:{ERR_INVALID_ARG_TYPE:E,ERR_METHOD_NOT_IMPLEMENTED:x,ERR_OUT_OF_RANGE:T,ERR_STREAM_PUSH_AFTER_EOF:A,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:R},AbortError:M}=__webpack_require__(499497);let{validateObject:L}=__webpack_require__(999767);let O=h("kPaused");let{StringDecoder:P}=__webpack_require__(480935);let B=__webpack_require__(622442);i(K.prototype,f.prototype),i(K,f);let C=()=>{};let{errorOrDestroy:N}=v;let I=1<<0;let D=1<<2;let q=1<<3;let F=1<<4;let U=1<<5;let W=1<<6;let H=1<<7;let z=1<<11;let $=1<<12;let G=1<<16;function V(e){return{enumerable:!1,get(){return(this.state&e)!==0},set(t){t?this.state|=e:this.state&=~e}}}function Y(e,t,r){typeof r!=="boolean"&&(r=t instanceof __webpack_require__(218244)),this.state=z|$|F|U,e&&e.objectMode&&(this.state|=I),r&&e&&e.readableObjectMode&&(this.state|=I),this.highWaterMark=e?_(this,e,"readableHighWaterMark",r):j(!1),this.buffer=new w,this.length=0,this.pipes=[],this.flowing=null,this[O]=null,e&&e.emitClose===!1&&(this.state&=~z),e&&e.autoDestroy===!1&&(this.state&=~$),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new P(e.encoding),this.encoding=e.encoding)}function K(e){if(!(this instanceof K))return new K(e);let t=this instanceof __webpack_require__(218244);this._readableState=new Y(e,this,t),e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.construct=="function"&&(this._construct=e.construct),e.signal&&!t&&b(e.signal,this)),f.call(this,e),v.construct(this,()=>{this._readableState.needReadable&&ea(this,this._readableState)})}function X(e,t,r,a){k("readableAddChunk",t);let n=e._readableState;let s;if((n.state&I)==0&&(typeof t=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(a&&n.encoding?t=g.from(t,r).toString(n.encoding):(t=g.from(t,r),r=""))):t instanceof g?r="":f._isUint8Array(t)?(t=f._uint8ArrayToBuffer(t),r=""):t!=null&&(s=new E("chunk",["string","Buffer","Uint8Array"],t))),s)N(e,s);else if(t===null)n.state&=~q,ee(e,n);else if((n.state&I)!==0||t&&t.length>0)if(a)if((n.state&D)!==0)N(e,new R);else if(n.destroyed||n.errored)return!1;else Z(e,n,t,!0);else if(n.ended)N(e,new A);else if(n.destroyed||n.errored)return!1;else n.state&=~q,n.decoder&&!r?(t=n.decoder.write(t),n.objectMode||t.length!==0?Z(e,n,t,!1):ea(e,n)):Z(e,n,t,!1);else!a&&(n.state&=~q,ea(e,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function Z(e,t,r,a){t.flowing&&t.length===0&&!t.sync&&e.listenerCount("data")>0?((t.state&G)!==0?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,a?t.buffer.unshift(r):t.buffer.push(r),(t.state&W)!==0&&et(e)),ea(e,t)}function Q(e){if(e>0x40000000)throw new T("size","<= 1GiB",e);return(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function J(e,t){return e<=0||t.length===0&&t.ended?0:(0,(t.state&I)!==0)?1:(0,a(e))?t.flowing&&t.length?t.buffer.first().length:(0,t.length):(0,e<=t.length?e:(0,t.ended?t.length:0))}function ee(e,t){if(k("onEofChunk"),t.ended)return;if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?et(e):(t.needReadable=!1,t.emittedReadable=!0,er(e))}function et(t){let r=t._readableState;k("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,!r.emittedReadable&&(k("emitReadable",r.flowing),r.emittedReadable=!0,e.nextTick(er,t))}function er(e){let t=e._readableState;k("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,eu(e)}function ea(t,r){!r.readingMore&&r.constructed&&(r.readingMore=!0,e.nextTick(en,t,r))}function en(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0)){let r=t.length;if(k("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function es(e,t){return function(){let r=e._readableState;r.awaitDrainWriters===t?(k("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(k("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),(!r.awaitDrainWriters||r.awaitDrainWriters.size===0)&&e.listenerCount("data")&&e.resume()}}function eo(e){let t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&t[O]===!1?t.flowing=!0:e.listenerCount("data")>0?e.resume():!t.readableListening&&(t.flowing=null)}function ei(e){k("readable nexttick read 0"),e.read(0)}function el(t,r){!r.resumeScheduled&&(r.resumeScheduled=!0,e.nextTick(ec,t,r))}function ec(e,t){k("resume",t.reading),!t.reading&&e.read(0),t.resumeScheduled=!1,e.emit("resume"),eu(e),t.flowing&&!t.reading&&e.read(0)}function eu(e){let t=e._readableState;k("flow",t.flowing);while(t.flowing&&e.read()!==null);}function em(e,t){typeof e.read!=="function"&&(e=K.wrap(e,{objectMode:!0}));let r=eh(e,t);return r.stream=e,r}async function*eh(e,t){let r=C;function a(t){this===e?(r(),r=C):r=t}e.on("readable",a);let n;let s=y(e,{writable:!1},e=>{n=e?S(n,e):null,r(),r=C});try{while(!0){let t=e.destroyed?null:e.read();if(t!==null)yield t;else if(n)throw n;else if(n===null)return;else await new l(a)}}catch(e){throw n=S(n,e)}finally{(n||(t===null||t===undefined?undefined:t.destroyOnReturn)!==!1)&&(n===undefined||e._readableState.autoDestroy)?v.destroyer(e,null):(e.off("readable",a),s())}}function ed(e,t){if(t.length===0)return null;let r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function ef(t){let r=t._readableState;k("endReadable",r.endEmitted),!r.endEmitted&&(r.ended=!0,e.nextTick(ep,r,t))}function ep(t,r){if(k("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,r.emit("end"),r.writable&&r.allowHalfOpen===!1)e.nextTick(eg,r);else if(t.autoDestroy){let e=r._writableState;(!e||e.autoDestroy&&(e.finished||e.writable===!1))&&r.destroy()}}}function eg(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}s(Y.prototype,{objectMode:V(I),ended:V(1<<1),endEmitted:V(D),reading:V(q),constructed:V(F),sync:V(U),needReadable:V(W),emittedReadable:V(H),readableListening:V(1<<8),resumeScheduled:V(1<<9),errorEmitted:V(1<<10),emitClose:V(z),autoDestroy:V($),destroyed:V(1<<13),closed:V(1<<14),closeEmitted:V(1<<15),multiAwaitDrain:V(G),readingMore:V(1<<17),dataEmitted:V(1<<18)}),K.prototype.destroy=v.destroy,K.prototype._undestroy=v.undestroy,K.prototype._destroy=function(e,t){t(e)},K.prototype[d.captureRejectionSymbol]=function(e){this.destroy(e)},K.prototype[u]=function(){let e;return!this.destroyed&&(e=this.readableEnded?null:new M,this.destroy(e)),new l((t,r)=>y(this,a=>a&&a!==e?r(a):t(null)))},K.prototype.push=function(e,t){return X(this,e,t,!1)},K.prototype.unshift=function(e,t){return X(this,e,t,!0)},K.prototype.isPaused=function(){let e=this._readableState;return e[O]===!0||e.flowing===!1},K.prototype.setEncoding=function(e){let t=new P(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer;let a="";for(let e of r)a+=t.write(e);return r.clear(),a!==""&&r.push(a),this._readableState.length=a.length,this},K.prototype.read=function(e){k("read",e),e===undefined?e=NaN:!r(e)&&(e=n(e,10));let t=this._readableState;let a=e;if(e>t.highWaterMark&&(t.highWaterMark=Q(e)),e!==0&&(t.state&=~H),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return k("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?ef(this):et(this),null;if((e=J(e,t))===0&&t.ended)return t.length===0&&ef(this),null;let s=(t.state&W)!==0;if(k("need readable",s),(t.length===0||t.length-e<t.highWaterMark)&&k("length less than watermark",s=!0),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)k("reading, ended or constructing",s=!1);else if(s){k("do read"),t.state|=q|U,t.length===0&&(t.state|=W);try{this._read(t.highWaterMark)}catch(e){N(this,e)}t.state&=~U,!t.reading&&(e=J(a,t))}let o;return(o=e>0?ed(e,t):null)===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),t.length===0&&(!t.ended&&(t.needReadable=!0),a!==e&&t.ended&&ef(this)),o!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit("data",o)),o},K.prototype._read=function(e){throw new x("_read()")},K.prototype.pipe=function(t,r){let a=this;let n=this._readableState;n.pipes.length===1&&!n.multiAwaitDrain&&(n.multiAwaitDrain=!0,n.awaitDrainWriters=new c(n.awaitDrainWriters?[n.awaitDrainWriters]:[])),n.pipes.push(t),k("pipe count=%d opts=%j",n.pipes.length,r);let s=(!r||r.end!==!1)&&t!==e.stdout&&t!==e.stderr?i:y;function o(e,t){k("onunpipe"),e===a&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,m())}function i(){k("onend"),t.end()}n.endEmitted?e.nextTick(s):a.once("end",s),t.on("unpipe",o);let l;let u=!1;function m(){k("cleanup"),t.removeListener("close",g),t.removeListener("finish",b),l&&t.removeListener("drain",l),t.removeListener("error",f),t.removeListener("unpipe",o),a.removeListener("end",i),a.removeListener("end",y),a.removeListener("data",d),u=!0,l&&n.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function h(){!u&&(n.pipes.length===1&&n.pipes[0]===t?(k("false write response, pause",0),n.awaitDrainWriters=t,n.multiAwaitDrain=!1):n.pipes.length>1&&n.pipes.includes(t)&&(k("false write response, pause",n.awaitDrainWriters.size),n.awaitDrainWriters.add(t)),a.pause()),!l&&(l=es(a,t),t.on("drain",l))}function d(e){k("ondata");let r=t.write(e);k("dest.write",r),r===!1&&h()}function f(e){if(k("onerror",e),y(),t.removeListener("error",f),t.listenerCount("error")===0){let r=t._writableState||t._readableState;r&&!r.errorEmitted?N(t,e):t.emit("error",e)}}function g(){t.removeListener("finish",b),y()}function b(){k("onfinish"),t.removeListener("close",g),y()}function y(){k("unpipe"),a.unpipe(t)}return a.on("data",d),p(t,"error",f),t.once("close",g),t.once("finish",b),t.emit("pipe",a),t.writableNeedDrain===!0?h():!n.flowing&&(k("pipe resume"),a.resume()),t},K.prototype.unpipe=function(e){let r=this._readableState;if(r.pipes.length===0)return this;if(!e){let e=r.pipes;r.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}let a=t(r.pipes,e);return a===-1||(r.pipes.splice(a,1),r.pipes.length===0&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},K.prototype.on=function(t,r){let a=f.prototype.on.call(this,t,r);let n=this._readableState;return t==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,k("on readable",n.length,n.reading),n.length?et(this):!n.reading&&e.nextTick(ei,this)),a},K.prototype.addListener=K.prototype.on,K.prototype.removeListener=function(t,r){let a=f.prototype.removeListener.call(this,t,r);return t==="readable"&&e.nextTick(eo,this),a},K.prototype.off=K.prototype.removeListener,K.prototype.removeAllListeners=function(t){let r=f.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===undefined)&&e.nextTick(eo,this),r},K.prototype.resume=function(){let e=this._readableState;return!e.flowing&&(k("resume"),e.flowing=!e.readableListening,el(this,e)),e[O]=!1,this},K.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[O]=!0,this},K.prototype.wrap=function(e){let t=!1;e.on("data",r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())}),e.on("end",()=>{this.push(null)}),e.on("error",e=>{N(this,e)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let r=o(e);for(let t=1;t<r.length;t++){let a=r[t];this[a]===undefined&&typeof e[a]=="function"&&(this[a]=e[a].bind(e))}return this},K.prototype[m]=function(){return em(this)},K.prototype.iterator=function(e){return e!==undefined&&L(e,"options"),em(this,e)},s(K.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&e.readable!==!1&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(e){if(!this._readableState)return;this._readableState.destroyed=e}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(Y.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[O]!==!1},set(e){this[O]=!!e}}}),K._fromList=ed,K.from=function(e,t){return B(K,e,t)};let eb;function ey(){return eb===undefined&&(eb={}),eb}K.fromWeb=function(e,t){return ey().newStreamReadableFromReadableStream(e,t)},K.toWeb=function(e,t){return ey().newReadableStreamFromStreamReadable(e,t)},K.wrap=function(e,t){var r,a;return new K({objectMode:(r=(a=e.readableObjectMode)!==null&&a!==undefined?a:e.objectMode)!==null&&r!==undefined?r:!0,...t,destroy(t,r){v.destroyer(e,t),r(t)}}).wrap(e)}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},680190(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(477868);let{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:n,ObjectDefineProperties:s,ObjectSetPrototypeOf:o,StringPrototypeToLowerCase:i,Symbol:l,SymbolHasInstance:c}=__webpack_require__(981452);module.exports=L,L.WritableState=R;let{EventEmitter:u}=__webpack_require__(120337);let m=__webpack_require__(482109).Stream;let{Buffer:h}=__webpack_require__(275321);let d=__webpack_require__(207978);let{addAbortSignal:f}=__webpack_require__(717765);let{getHighWaterMark:p,getDefaultHighWaterMark:g}=__webpack_require__(176613);let{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:y,ERR_MULTIPLE_CALLBACK:k,ERR_STREAM_CANNOT_PIPE:w,ERR_STREAM_DESTROYED:v,ERR_STREAM_ALREADY_FINISHED:_,ERR_STREAM_NULL_VALUES:j,ERR_STREAM_WRITE_AFTER_END:S,ERR_UNKNOWN_ENCODING:E}=__webpack_require__(499497).codes;let{errorOrDestroy:x}=d;function T(){}o(L.prototype,m.prototype),o(L,m);let A=l("kOnFinished");function R(e,t,r){typeof r!=="boolean"&&(r=t instanceof __webpack_require__(218244)),this.objectMode=!!(e&&e.objectMode),r&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?p(this,e,"writableHighWaterMark",r):g(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let a=!!(e&&e.decodeStrings===!1);this.decodeStrings=!a,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=N.bind(undefined,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,M(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[A]=[]}function M(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function L(e){let t=this instanceof __webpack_require__(218244);if(!t&&!a(L,this))return new L(e);this._writableState=new R(e,this,t),e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final),typeof e.construct=="function"&&(this._construct=e.construct),e.signal&&f(e.signal,this)),m.call(this,e),d.construct(this,()=>{let e=this._writableState;!e.writing&&F(this,e),z(this,e)})}function O(t,r,a,n){let s=t._writableState;if(typeof a=="function")n=a,a=s.defaultEncoding;else{if(a){if(a!=="buffer"&&!h.isEncoding(a))throw new E(a)}else a=s.defaultEncoding;typeof n!=="function"&&(n=T)}if(r===null)throw new j;if(!s.objectMode)if(typeof r=="string")s.decodeStrings!==!1&&(r=h.from(r,a),a="buffer");else if(r instanceof h)a="buffer";else if(m._isUint8Array(r))r=m._uint8ArrayToBuffer(r),a="buffer";else throw new b("chunk",["string","Buffer","Uint8Array"],r);let o;return(s.ending?o=new S:s.destroyed&&(o=new v("write")),o)?(e.nextTick(n,o),x(t,o,!0),o):(s.pendingcb++,P(t,s,r,a,n))}function P(e,t,r,a,n){let s=t.objectMode?1:r.length;t.length+=s;let o=t.length<t.highWaterMark;return!o&&(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:a,callback:n}),t.allBuffers&&a!=="buffer"&&(t.allBuffers=!1),t.allNoop&&n!==T&&(t.allNoop=!1)):(t.writelen=s,t.writecb=n,t.writing=!0,t.sync=!0,e._write(r,a,t.onwrite),t.sync=!1),o&&!t.errored&&!t.destroyed}function B(e,t,r,a,n,s,o){t.writelen=a,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(n,t.onwrite):e._write(n,s,t.onwrite),t.sync=!1}function C(e,t,r,a){--t.pendingcb,a(r),q(t),x(e,r)}function N(t,r){let a=t._writableState;let n=a.sync;let s=a.writecb;if(typeof s!=="function"){x(t,new k);return}a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0,r?(r.stack,!a.errored&&(a.errored=r),t._readableState&&!t._readableState.errored&&(t._readableState.errored=r),n?e.nextTick(C,t,a,r,s):C(t,a,r,s)):(a.buffered.length>a.bufferedIndex&&F(t,a),n?a.afterWriteTickInfo!==null&&a.afterWriteTickInfo.cb===s?a.afterWriteTickInfo.count++:(a.afterWriteTickInfo={count:1,cb:s,stream:t,state:a},e.nextTick(I,a.afterWriteTickInfo)):D(t,a,1,s))}function I({stream:e,state:t,count:r,cb:a}){return t.afterWriteTickInfo=null,D(e,t,r,a)}function D(e,t,r,a){!t.ending&&!e.destroyed&&t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));while(r-- >0)t.pendingcb--,a();t.destroyed&&q(t),z(e,t)}function q(e){if(e.writing)return;for(let r=e.bufferedIndex;r<e.buffered.length;++r){var t;let{chunk:a,callback:n}=e.buffered[r];let s=e.objectMode?1:a.length;e.length-=s,n((t=e.errored)!==null&&t!==undefined?t:new v("write"))}let r=e[A].splice(0);for(let t=0;t<r.length;t++){var a;r[t]((a=e.errored)!==null&&a!==undefined?a:new v("end"))}M(e)}function F(e,r){if(r.corked||r.bufferProcessing||r.destroyed||!r.constructed)return;let{buffered:a,bufferedIndex:n,objectMode:s}=r;let o=a.length-n;if(!o)return;let i=n;if(r.bufferProcessing=!0,o>1&&e._writev){r.pendingcb-=o-1;let n=r.allNoop?T:e=>{for(let t=i;t<a.length;++t)a[t].callback(e)};let s=r.allNoop&&i===0?a:t(a,i);s.allBuffers=r.allBuffers,B(e,r,!0,r.length,s,"",n),M(r)}else{do{let{chunk:t,encoding:n,callback:o}=a[i];a[i++]=null,B(e,r,!1,s?1:t.length,t,n,o)}while(i<a.length&&!r.writing)i===a.length?M(r):i>256?(a.splice(0,i),r.bufferedIndex=0):r.bufferedIndex=i}r.bufferProcessing=!1}function U(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function W(t,r){let a=!1;function n(n){if(a){x(t,n!==null&&n!==undefined?n:k());return}if(a=!0,r.pendingcb--,n){let e=r[A].splice(0);for(let t=0;t<e.length;t++)e[t](n);x(t,n,r.sync)}else U(r)&&(r.prefinished=!0,t.emit("prefinish"),r.pendingcb++,e.nextTick($,t,r))}r.sync=!0,r.pendingcb++;try{t._final(n)}catch(e){n(e)}r.sync=!1}function H(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final!="function"||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,W(e,t)))}function z(t,r,a){U(r)&&(H(t,r),r.pendingcb===0&&(a?(r.pendingcb++,e.nextTick((e,t)=>{U(t)?$(e,t):t.pendingcb--},t,r)):U(r)&&(r.pendingcb++,$(t,r))))}function $(e,t){t.pendingcb--,t.finished=!0;let r=t[A].splice(0);for(let e=0;e<r.length;e++)r[e]();if(e.emit("finish"),t.autoDestroy){let t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||t.readable===!1))&&e.destroy()}}R.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},n(R.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),n(L,c,{__proto__:null,value:function(e){return a(this,e)?!0:(0,this!==L)?!1:(0,e&&e._writableState instanceof R)}}),L.prototype.pipe=function(){x(this,new w)},L.prototype.write=function(e,t,r){return O(this,e,t,r)===!0},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,!e.writing&&F(this,e))},L.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=i(e)),!h.isEncoding(e))throw new E(e);return this._writableState.defaultEncoding=e,this},L.prototype._write=function(e,t,r){if(this._writev)this._writev([{chunk:e,encoding:t}],r);else throw new y("_write()")},L.prototype._writev=null,L.prototype.end=function(t,a,n){let s=this._writableState;typeof t=="function"?(n=t,t=null,a=null):typeof a=="function"&&(n=a,a=null);let o;if(t!==null&&t!==undefined){let e=O(this,t,a);e instanceof r&&(o=e)}return s.corked&&(s.corked=1,this.uncork()),o||(s.errored||s.ending?s.finished?o=new _("end"):s.destroyed&&(o=new v("end")):(s.ending=!0,z(this,s,!0),s.ended=!0)),typeof n=="function"&&(o||s.finished?e.nextTick(n,o):s[A].push(n)),this},s(L.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&e.writable!==!1&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let e=this._writableState;return!e?!1:(0,!e.destroyed&&!e.ending&&e.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});let G=d.destroy;L.prototype.destroy=function(t,r){let a=this._writableState;return!a.destroyed&&(a.bufferedIndex<a.buffered.length||a[A].length)&&e.nextTick(q,a),G.call(this,t,r),this},L.prototype._undestroy=d.undestroy,L.prototype._destroy=function(e,t){t(e)},L.prototype[u.captureRejectionSymbol]=function(e){this.destroy(e)};let V;function Y(){return V===undefined&&(V={}),V}L.fromWeb=function(e,t){return Y().newStreamWritableFromWritableStream(e,t)},L.toWeb=function(e){return Y().newWritableStreamFromStreamWritable(e)}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},688723(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e;var t;t=function(){var e=function(){};var t="undefined";var r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent);var a=["trace","debug","info","warn","error"];var n={};var s=null;function o(e,t){var r=e[t];if(typeof r.bind=="function")return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(a){return(a==="debug"&&(a="log"),typeof console===t)?!1:(0,a==="trace"&&r)?i:(0,console[a]!==undefined)?o(console,a):(0,console.log!==undefined)?o(console,"log"):e}function c(){var r=this.getLevel();for(var n=0;n<a.length;n++){var s=a[n];this[s]=n<r?e:this.methodFactory(s,r,this.name)}if(this.log=this.debug,typeof console===t&&r<this.levels.SILENT)return"No console available for logging"}function u(e){return function(){typeof console!==t&&(c.call(this),this[e].apply(this,arguments))}}function m(e,t,r){return l(e)||u.apply(this,arguments)}function h(e,r){var o=this;var i;var l;var u;var h="loglevel";function d(e){var r=(a[e]||"silent").toUpperCase();if(typeof window===t||!h)return;try{window.localStorage[h]=r;return}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"="+r+";"}catch(e){}}function f(){var e;if(typeof window===t||!h)return;try{e=window.localStorage[h]}catch(e){}if(typeof e===t)try{var r=window.document.cookie;var a=encodeURIComponent(h);var n=r.indexOf(a+"=");n!==-1&&(e=/^([^;]+)/.exec(r.slice(n+a.length+1))[1])}catch(e){}return o.levels[e]===undefined&&(e=undefined),e}function p(){if(typeof window===t||!h)return;try{window.localStorage.removeItem(h)}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}function g(e){var t=e;if(typeof t=="string"&&o.levels[t.toUpperCase()]!==undefined&&(t=o.levels[t.toUpperCase()]),typeof t=="number"&&t>=0&&t<=o.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}typeof e=="string"?h+=":"+e:typeof e=="symbol"&&(h=undefined),o.name=e,o.levels={"TRACE":0,"DEBUG":1,"INFO":2,"WARN":3,"ERROR":4,"SILENT":5},o.methodFactory=r||m,o.getLevel=function(){return u!=null?u:(0,l!=null)?l:i},o.setLevel=function(e,t){return u=g(e),t!==!1&&d(u),c.call(o)},o.setDefaultLevel=function(e){l=g(e),!f()&&o.setLevel(e,!1)},o.resetLevel=function(){u=null,p(),c.call(o)},o.enableAll=function(e){o.setLevel(o.levels.TRACE,e)},o.disableAll=function(e){o.setLevel(o.levels.SILENT,e)},o.rebuild=function(){if(s!==o&&(i=g(s.getLevel())),c.call(o),s===o)for(var e in n)n[e].rebuild()},i=g(s?s.getLevel():"WARN");var b=f();b!=null&&(u=g(b)),c.call(o)}(s=new h).getLogger=function(e){if(typeof e!=="symbol"&&typeof e!=="string"||e==="")throw new TypeError("You must supply a name when creating a logger.");var t=n[e];return!t&&(t=n[e]=new h(e,s.methodFactory)),t};var d=typeof window!==t?window.log:undefined;return s.noConflict=function(){return typeof window!==t&&window.log===s&&(window.log=d),s},s.getLoggers=function(){return n},s["default"]=s,s},!0&&(e="function"=="function"?t.call(exports,__webpack_require__,exports,module):t)!==undefined&&(module.exports=e)}}).call(__webpack_require__._LM_("loglevel",{__webpack_require__,exports,module})).bind(exports)()},689572(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{ObjectSetPrototypeOf:e,Symbol:t}=__webpack_require__(981452);module.exports=o;let{ERR_METHOD_NOT_IMPLEMENTED:r}=__webpack_require__(499497).codes;let a=__webpack_require__(218244);let{getHighWaterMark:n}=__webpack_require__(176613);e(o.prototype,a.prototype),e(o,a);let s=t("kCallback");function o(e){if(!(this instanceof o))return new o(e);let t=e?n(this,e,"readableHighWaterMark",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),a.call(this,e),this._readableState.sync=!1,this[s]=null,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",l)}function i(e){typeof this._flush!="function"||this.destroyed?(this.push(null),e&&e()):this._flush((t,r)=>{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()})}function l(){this._final!==i&&i.call(this)}o.prototype._final=i,o.prototype._transform=function(e,t,a){throw new r("_transform()")},o.prototype._write=function(e,t,r){let a=this._readableState;let n=this._writableState;let o=a.length;this._transform(e,t,(e,t)=>{if(e){r(e);return}t!=null&&this.push(t),n.ended||o===a.length||a.length<a.highWaterMark?r():this[s]=r})},o.prototype._read=function(){if(this[s]){let e=this[s];this[s]=null,e()}}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},692196(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function t(t){for(var a=1;a<arguments.length;a++){var n=null!=arguments[a]?arguments[a]:{};a%2?e(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,o(a.key),a)}}function s(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=i(e,"string");return typeof t=="symbol"?t:String(t)}function i(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var a=r.call(e,t||"default");if(typeof a!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=__webpack_require__(275321).Buffer;var c=__webpack_require__(902731).inspect;var u=c&&c.custom||"inspect";function m(e,t,r){l.prototype.copy.call(e,t,r)}module.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return s(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next)r+=e+t.data;return r}},{key:"concat",value:function(e){if(this.length===0)return l.alloc(0);var t=l.allocUnsafe(e>>>0);var r=this.head;var a=0;while(r)m(r.data,t,a),a+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head;var r=1;var a=t.data;e-=a.length;while(t=t.next){var n=t.data;var s=e>n.length?n.length:e;if(s===n.length?a+=n:a+=n.slice(0,e),(e-=s)==0){s===n.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(s));break}++r}return this.length-=r,a}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e);var r=this.head;var a=1;r.data.copy(t),e-=r.data.length;while(r=r.next){var n=r.data;var s=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,s),(e-=s)==0){s===n.length?(++a,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=n.slice(s));break}++a}return this.length-=a,t}},{key:u,value:function(e,r){return c(this,t(t({},r),{},{depth:0,customInspect:!1}))}}]),e}()}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},706912(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(544866).F.ERR_STREAM_PREMATURE_CLOSE;function t(e){var t=!1;return function(){if(t)return;t=!0;for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];e.apply(this,a)}}function r(){}function a(e){return e.setHeader&&typeof e.abort=="function"}function n(s,o,i){if(typeof o=="function")return n(s,null,o);!o&&(o={}),i=t(i||r);var l=o.readable||o.readable!==!1&&s.readable;var c=o.writable||o.writable!==!1&&s.writable;var u=function(){!s.writable&&h()};var m=s._writableState&&s._writableState.finished;var h=function(){c=!1,m=!0,!l&&i.call(s)};var d=s._readableState&&s._readableState.endEmitted;var f=function(){l=!1,d=!0,!c&&i.call(s)};var p=function(e){i.call(s,e)};var g=function(){var t;return l&&!d?((!s._readableState||!s._readableState.ended)&&(t=new e),i.call(s,t)):(0,c&&!m)?((!s._writableState||!s._writableState.ended)&&(t=new e),i.call(s,t)):void 0};var b=function(){s.req.on("finish",h)};return a(s)?(s.on("complete",h),s.on("abort",g),s.req?b():s.on("request",b)):c&&!s._writableState&&(s.on("end",u),s.on("close",u)),s.on("end",f),s.on("finish",h),o.error!==!1&&s.on("error",p),s.on("close",g),function(){s.removeListener("complete",h),s.removeListener("abort",g),s.removeListener("request",b),s.req&&s.req.removeListener("finish",h),s.removeListener("end",u),s.removeListener("close",u),s.removeListener("finish",h),s.removeListener("end",f),s.removeListener("error",p),s.removeListener("close",g)}}module.exports=n}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{__webpack_require__,module}))()},717765(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{SymbolDispose:e}=__webpack_require__(981452);let{AbortError:t,codes:r}=__webpack_require__(499497);let{isNodeStream:a,isWebStream:n,kControllerErrorFunction:s}=__webpack_require__(249341);let o=__webpack_require__(108496);let{ERR_INVALID_ARG_TYPE:i}=r;let l;module.exports.addAbortSignal=function(e,t){if(typeof e!=="object"||!("aborted"in e))throw new i("signal","AbortSignal",e);if(!a(t)&&!n(t))throw new i("stream",["ReadableStream","WritableStream","Stream"],t);return module.exports.addAbortSignalNoValidate(e,t)},module.exports.addAbortSignalNoValidate=function(r,n){if(typeof r!=="object"||!("aborted"in r))return n;let i=a(n)?()=>{n.destroy(new t(undefined,{cause:r.reason}))}:()=>{n[s](new t(undefined,{cause:r.reason}))};return r.aborted?i():o(n,(l=l||__webpack_require__(70034).addAbortListener)(r,i)[e]),n}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},734757(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";(exports=module.exports=__webpack_require__(930042)).Stream=exports,exports.Readable=exports,exports.Writable=__webpack_require__(598846),exports.Duplex=__webpack_require__(275204),exports.Transform=__webpack_require__(440164),exports.PassThrough=__webpack_require__(570638),exports.finished=__webpack_require__(706912),exports.pipeline=__webpack_require__(23004)}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{exports,module,__webpack_require__}))()},749233(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(838757);function t(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function r(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+" shouldn't be called more than once",t.called=!1,t}module.exports=e(t),module.exports.strict=e(r),t.proto=t(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return t(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return r(this)},configurable:!0})})}}).call(__webpack_require__._LM_("@metamask/object-multiplex>once",{module,__webpack_require__}))()},767931(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(275321);var t=e.Buffer;function r(e,t){for(var r in e)t[r]=e[r]}function a(e,r,a){return t(e,r,a)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?module.exports=e:(r(e,exports),exports.Buffer=a),a.prototype=Object.create(t.prototype),r(t,a),a.from=function(e,r,a){if(typeof e=="number")throw new TypeError("Argument must not be a number");return t(e,r,a)},a.alloc=function(e,r,a){if(typeof e!=="number")throw new TypeError("Argument must be a number");var n=t(e);return r!==undefined?typeof a=="string"?n.fill(r,a):n.fill(r):n.fill(0),n},a.allocUnsafe=function(e){if(typeof e!=="number")throw new TypeError("Argument must be a number");return t(e)},a.allocUnsafeSlow=function(t){if(typeof t!=="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(t)}}}).call(__webpack_require__._LM_("koa>content-disposition>safe-buffer",{module,exports,__webpack_require__}))()},769333(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(544866).F.ERR_INVALID_OPT_VALUE;function t(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}module.exports={getHighWaterMark:function(r,a,n,s){var o=t(a,s,n);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new e(s?n:"highWaterMark",o);return Math.floor(o)}return r.objectMode?16:16*1024}}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{__webpack_require__,module}))()},794071(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{U:()=>l});var e=__webpack_require__(811921);var t=__webpack_require__(620949);var r=__webpack_require__(598404);var a=undefined||function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r};var n,s;let o=(n=Object.getOwnPropertyDescriptor(MessageEvent.prototype,"source"))===null||n===void 0?void 0:n.get;(0,e.vA)(o,"MessageEvent.prototype.source getter is not defined.");let i=(s=Object.getOwnPropertyDescriptor(MessageEvent.prototype,"origin"))===null||s===void 0?void 0:s.get;(0,e.vA)(i,"MessageEvent.prototype.origin getter is not defined.");class l extends t.l{_postMessage(e){this._targetWindow.postMessage({target:this._target,data:e},this._targetOrigin)}_onMessage(e){let t=e.data;if(this._targetOrigin!=="*"&&i.call(e)!==this._targetOrigin||o.call(e)!==this._targetWindow||!(0,r.E)(t)||t.target!==this._name)return;this._onData(t.data)}_destroy(){window.removeEventListener("message",this._onMessage,!1)}constructor(e){var{name:t,target:r,targetOrigin:n=location.origin,targetWindow:s=window}=e;if(super(a(e,["name","target","targetOrigin","targetWindow"])),typeof window=="undefined"||typeof window.postMessage!=="function")throw new Error("window.postMessage is not a function. This class should only be instantiated in a Window.");this._name=t,this._target=r,this._targetOrigin=n,this._targetWindow=s,this._onMessage=this._onMessage.bind(this),window.addEventListener("message",this._onMessage,!1),this._handshake()}}}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},803972(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(477868);let t=__webpack_require__(275321);let{isReadable:r,isWritable:a,isIterable:n,isNodeStream:s,isReadableNodeStream:o,isWritableNodeStream:i,isDuplexNodeStream:l,isReadableStream:c,isWritableStream:u}=__webpack_require__(249341);let m=__webpack_require__(108496);let{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:f}}=__webpack_require__(499497);let{destroyer:p}=__webpack_require__(207978);let g=__webpack_require__(218244);let b=__webpack_require__(671610);let y=__webpack_require__(680190);let{createDeferredPromise:k}=__webpack_require__(70034);let w=__webpack_require__(622442);let v=globalThis.Blob||t.Blob;let _=v!==void 0?function(e){return e instanceof v}:function(e){return!1};let j=globalThis.AbortController||__webpack_require__(978066).AbortController;let{FunctionPrototypeCall:S}=__webpack_require__(981452);class E extends g{constructor(e){super(e),(e===null||e===undefined?undefined:e.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(e===null||e===undefined?undefined:e.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function x(t){let{promise:r,resolve:a}=k();let n=new j;let s=n.signal;return{value:t(async function*(){while(!0){let t=r;r=null;let{chunk:n,done:o,cb:i}=await t;if(e.nextTick(i),o)return;if(s.aborted)throw new h(undefined,{cause:s.reason});({promise:r,resolve:a}=k()),yield n}}(),{signal:s}),write(e,t,r){let n=a;a=null,n({chunk:e,done:!1,cb:r})},final(e){let t=a;a=null,t({done:!0,cb:e})},destroy(e,t){n.abort(),t(e)}}}function T(e){let t=e.readable&&typeof e.readable.read!=="function"?b.wrap(e.readable):e.readable;let n=e.writable;let s=!!r(t);let o=!!a(n);let i;let l;let c;let u;let d;function f(e){let t=u;u=null,t?t(e):e&&d.destroy(e)}return d=new E({readableObjectMode:!!(t!==null&&t!==undefined&&t.readableObjectMode),writableObjectMode:!!(n!==null&&n!==undefined&&n.writableObjectMode),readable:s,writable:o}),o&&(m(n,e=>{o=!1,e&&p(t,e),f(e)}),d._write=function(e,t,r){n.write(e,t)?r():i=r},d._final=function(e){n.end(),l=e},n.on("drain",function(){if(i){let e=i;i=null,e()}}),n.on("finish",function(){if(l){let e=l;l=null,e()}})),s&&(m(t,e=>{s=!1,e&&p(t,e),f(e)}),t.on("readable",function(){if(c){let e=c;c=null,e()}}),t.on("end",function(){d.push(null)}),d._read=function(){while(!0){let e=t.read();if(e===null){c=d._read;return}if(!d.push(e))return}}),d._destroy=function(e,r){!e&&u!==null&&(e=new h),c=null,i=null,l=null,u===null?r(e):(u=r,p(n,e),p(t,e))},d}module.exports=function t(r,a){if(l(r))return r;if(o(r))return T({readable:r});if(i(r))return T({writable:r});if(s(r))return T({writable:!1,readable:!1});if(c(r))return T({readable:b.fromWeb(r)});if(u(r))return T({writable:y.fromWeb(r)});if(typeof r=="function"){let{value:t,write:s,final:o,destroy:i}=x(r);if(n(t))return w(E,t,{objectMode:!0,write:s,final:o,destroy:i});let l=t===null||t===undefined?undefined:t.then;if(typeof l=="function"){let r;let a=S(l,t,e=>{if(e!=null)throw new f("nully","body",e)},e=>{p(r,e)});return r=new E({objectMode:!0,readable:!1,write:s,final(t){o(async()=>{try{await a,e.nextTick(t,null)}catch(r){e.nextTick(t,r)}})},destroy:i})}throw new f("Iterable, AsyncIterable or AsyncFunction",a,t)}if(_(r))return t(r.arrayBuffer());if(n(r))return w(E,r,{objectMode:!0,writable:!1});if(c(r===null||r===undefined?undefined:r.readable)&&u(r===null||r===undefined?undefined:r.writable))return E.fromWeb(r);if(typeof(r===null||r===undefined?undefined:r.writable)=="object"||typeof(r===null||r===undefined?undefined:r.readable)=="object")return T({readable:r!==null&&r!==undefined&&r.readable?o(r===null||r===undefined?undefined:r.readable)?r===null||r===undefined?undefined:r.readable:t(r.readable):undefined,writable:r!==null&&r!==undefined&&r.writable?i(r===null||r===undefined?undefined:r.writable)?r===null||r===undefined?undefined:r.writable:t(r.writable):undefined});let m=r===null||r===undefined?undefined:r.then;if(typeof m=="function"){let e;return S(m,r,t=>{t!=null&&e.push(t),e.push(null)},t=>{p(e,t)}),e=new E({objectMode:!0,writable:!1,read(){}})}throw new d(a,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],r)}}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},810958(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{ObjectSetPrototypeOf:e}=__webpack_require__(981452);module.exports=r;let t=__webpack_require__(689572);function r(e){if(!(this instanceof r))return new r(e);t.call(this,e)}e(r.prototype,t.prototype),e(r,t),r.prototype._transform=function(e,t,r){r(null,e)}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},811921(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){var t,r;return Boolean(typeof(e===null||e===void 0||(r=e.prototype)===null||r===void 0||(t=r.constructor)===null||t===void 0?void 0:t.name)=="string")}function t(t,r){return e(t)?new t({message:r}):(0,t({message:r}))}__webpack_require__.d(__webpack_exports__,{vA:()=>a});class r extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}function a(e,n="Assertion failed.",s=r){if(!e){if(n instanceof Error)throw n;throw t(s,n)}}}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_exports__,__webpack_require__}))()},828233(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(477868);function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){U(t,e)}}var r;module.exports=S,S.WritableState=_;var a={deprecate:__webpack_require__(401329)};var n=__webpack_require__(606438);var s=__webpack_require__(275321).Buffer;var o=(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:self!==void 0?self:{}).Uint8Array||function(){};function i(e){return s.from(e)}function l(e){return s.isBuffer(e)||e instanceof o}var c=__webpack_require__(941573);var u=__webpack_require__(414198).getHighWaterMark;var m=__webpack_require__(843105).F,h=m.ERR_INVALID_ARG_TYPE,d=m.ERR_METHOD_NOT_IMPLEMENTED,f=m.ERR_MULTIPLE_CALLBACK,p=m.ERR_STREAM_CANNOT_PIPE,g=m.ERR_STREAM_DESTROYED,b=m.ERR_STREAM_NULL_VALUES,y=m.ERR_STREAM_WRITE_AFTER_END,k=m.ERR_UNKNOWN_ENCODING;var w=c.errorOrDestroy;function v(){}function _(e,a,n){r=r||__webpack_require__(643163),e=e||{},typeof n!=="boolean"&&(n=a instanceof r),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=u(this,e,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=e.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){O(a,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}__webpack_require__(129848)(S,n),_.prototype.getBuffer=function(){var e=this.bufferedRequest;var t=[];while(e)t.push(e),e=e.next;return t};try{Object.defineProperty(_.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}var j;function S(e){var t=this instanceof(r=r||__webpack_require__(643163));if(!t&&!j.call(S,this))return new S(e);this._writableState=new _(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),n.call(this)}function E(t,r){var a=new y;w(t,a),e.nextTick(r,a)}function x(t,r,a,n){var s;return(a===null?s=new b:typeof a!=="string"&&!r.objectMode&&(s=new h("chunk",["string","Buffer"],a)),s)?(w(t,s),e.nextTick(n,s),!1):(0,!0)}function T(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=s.from(t,r)),t}function A(e,t,r,a,n,s){if(!r){var o=T(t,a,n);a!==o&&(r=!0,n="buffer",a=o)}var i=t.objectMode?1:a.length;t.length+=i;var l=t.length<t.highWaterMark;if(!l&&(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:a,encoding:n,isBuf:r,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,i,a,n,s);return l}function R(e,t,r,a,n,s,o){t.writelen=a,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):r?e._writev(n,t.onwrite):e._write(n,s,t.onwrite),t.sync=!1}function M(t,r,a,n,s){--r.pendingcb,a?(e.nextTick(s,n),e.nextTick(q,t,r),t._writableState.errorEmitted=!0,w(t,n)):(s(n),t._writableState.errorEmitted=!0,w(t,n),q(t,r))}function L(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function O(t,r){var a=t._writableState;var n=a.sync;var s=a.writecb;if(typeof s!=="function")throw new f;if(L(a),r)M(t,a,n,r,s);else{var o=N(a)||t.destroyed;!o&&!a.corked&&!a.bufferProcessing&&a.bufferedRequest&&C(t,a),n?e.nextTick(P,t,a,o,s):P(t,a,o,s)}}function P(e,t,r,a){!r&&B(e,t),t.pendingcb--,a(),q(e,t)}function B(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function C(e,r){r.bufferProcessing=!0;var a=r.bufferedRequest;if(e._writev&&a&&a.next){var n=new Array(r.bufferedRequestCount);var s=r.corkedRequestsFree;s.entry=a;var o=0;var i=!0;while(a)n[o]=a,!a.isBuf&&(i=!1),a=a.next,o+=1;n.allBuffers=i,R(e,r,!0,r.length,n,"",s.finish),r.pendingcb++,r.lastBufferedRequest=null,s.next?(r.corkedRequestsFree=s.next,s.next=null):r.corkedRequestsFree=new t(r),r.bufferedRequestCount=0}else{while(a){var l=a.chunk;var c=a.encoding;var u=a.callback;var m=r.objectMode?1:l.length;if(R(e,r,!1,m,l,c,u),a=a.next,r.bufferedRequestCount--,r.writing)break}a===null&&(r.lastBufferedRequest=null)}r.bufferedRequest=a,r.bufferProcessing=!1}function N(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function I(e,t){e._final(function(r){t.pendingcb--,r&&w(e,r),t.prefinished=!0,e.emit("prefinish"),q(e,t)})}function D(t,r){!r.prefinished&&!r.finalCalled&&(typeof t._final!="function"||r.destroyed?(r.prefinished=!0,t.emit("prefinish")):(r.pendingcb++,r.finalCalled=!0,e.nextTick(I,t,r)))}function q(e,t){var r=N(t);if(r){if(D(e,t),t.pendingcb===0){if(t.finished=!0,e.emit("finish"),t.autoDestroy){var a=e._readableState;(!a||a.autoDestroy&&a.endEmitted)&&e.destroy()}}}return r}function F(t,r,a){r.ending=!0,q(t,r),a&&(r.finished?e.nextTick(a):t.once("finish",a)),r.ended=!0,t.writable=!1}function U(e,t,r){var a=e.entry;e.entry=null;while(a){var n=a.callback;t.pendingcb--,n(r),a=a.next}t.corkedRequestsFree.next=e}typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return j.call(this,e)?!0:(0,this!==S)?!1:(0,e&&e._writableState instanceof _)}})):j=function(e){return e instanceof this},S.prototype.pipe=function(){w(this,new p)},S.prototype.write=function(e,t,r){var a=this._writableState;var n=!1;var o=!a.objectMode&&l(e);return o&&!s.isBuffer(e)&&(e=i(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":!t&&(t=a.defaultEncoding),typeof r!=="function"&&(r=v),a.ending?E(this,r):(o||x(this,a,e,r))&&(a.pendingcb++,n=A(this,a,o,e,t,r)),n},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&C(this,e))},S.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new d("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var a=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!==null&&e!==undefined&&this.write(e,t),a.corked&&(a.corked=1,this.uncork()),!a.ending&&F(this,a,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===undefined?!1:(0,this._writableState.destroyed)},set:function(e){if(!this._writableState)return;this._writableState.destroyed=e}}),S.prototype.destroy=c.destroy,S.prototype._undestroy=c.undestroy,S.prototype._destroy=function(e,t){t(e)}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},835183(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{UI:()=>e.U});var e=__webpack_require__(794071);__webpack_require__(318804),__webpack_require__(259868),__webpack_require__(948613),__webpack_require__(620949)}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},838757(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(t,r){if(t&&r)return e(t)(r);if(typeof t!=="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){a[e]=t[e]}),a;function a(){var e=new Array(arguments.length);for(var r=0;r<e.length;r++)e[r]=arguments[r];var a=t.apply(this,e);var n=e[e.length-1];return typeof a=="function"&&a!==n&&Object.keys(n).forEach(function(e){a[e]=n[e]}),a}}module.exports=e}}).call(__webpack_require__._LM_("@metamask/object-multiplex>once>wrappy",{module,__webpack_require__}))()},843105(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var t={};function r(r,a,n){function s(e,t,r){return typeof a=="string"?a:(0,a(e,t,r))}!n&&(n=Error);var o=function(t){function r(e,r,a){return t.call(this,s(e,r,a))||this}return e(r,t),r}(n);o.prototype.name=n.name,o.prototype.code=r,t[r]=o}function a(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));{var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:(0,r===2)?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}}function n(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function s(e,t,r){return(r===undefined||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function o(e,t,r){return(typeof r!=="number"&&(r=0),r+t.length>e.length)?!1:(0,e.indexOf(t,r)!==-1)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;var l;if(typeof t=="string"&&n(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be",s(e," argument"))l="The ".concat(e," ").concat(i," ").concat(a(t,"type"));else{var c=o(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(a(t,"type"))}return l+". Received type ".concat(typeof r)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),module.exports.F=t}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},844313(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e;function t(e){var t=!1;return function(){if(t)return;t=!0,e.apply(void 0,arguments)}}var r=__webpack_require__(843105).F,a=r.ERR_MISSING_ARGS,n=r.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function o(e){return e.setHeader&&typeof e.abort=="function"}function i(r,a,s,i){i=t(i);var l=!1;r.on("close",function(){l=!0}),e===undefined&&(e=__webpack_require__(912595)),e(r,{readable:a,writable:s},function(e){if(e)return i(e);l=!0,i()});var c=!1;return function(e){return l||c?void 0:(c=!0,o(r))?r.abort():(0,typeof r.destroy=="function")?r.destroy():(0,void i(e||new n("pipe")))}}function l(e){e()}function c(e,t){return e.pipe(t)}function u(e){return!e.length||typeof e[e.length-1]!=="function"?s:(0,e.pop())}module.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=u(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var s;var o=t.map(function(e,r){var a=r<t.length-1;return i(e,a,r>0,function(e){if(!s&&(s=e),e&&o.forEach(l),a)return;o.forEach(l),n(s)})});return t.reduce(c)}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{__webpack_require__,module}))()},849567(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function t(t){for(var a=1;a<arguments.length;a++){var n=null!=arguments[a]?arguments[a]:{};a%2?e(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,o(a.key),a)}}function s(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=i(e,"string");return typeof t=="symbol"?t:String(t)}function i(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var a=r.call(e,t||"default");if(typeof a!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=__webpack_require__(275321).Buffer;var c=__webpack_require__(667544).inspect;var u=c&&c.custom||"inspect";function m(e,t,r){l.prototype.copy.call(e,t,r)}module.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return s(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next)r+=e+t.data;return r}},{key:"concat",value:function(e){if(this.length===0)return l.alloc(0);var t=l.allocUnsafe(e>>>0);var r=this.head;var a=0;while(r)m(r.data,t,a),a+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head;var r=1;var a=t.data;e-=a.length;while(t=t.next){var n=t.data;var s=e>n.length?n.length:e;if(s===n.length?a+=n:a+=n.slice(0,e),(e-=s)==0){s===n.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(s));break}++r}return this.length-=r,a}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e);var r=this.head;var a=1;r.data.copy(t),e-=r.data.length;while(r=r.next){var n=r.data;var s=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,s),(e-=s)==0){s===n.length?(++a,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=n.slice(s));break}++a}return this.length-=a,t}},{key:u,value:function(e,r){return c(this,t(t({},r),{},{depth:0,customInspect:!1}))}}]),e}()}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},860583(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=t;var e=__webpack_require__(348605);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}__webpack_require__(129848)(t,e),t.prototype._transform=function(e,t,r){r(null,e)}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},869443(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=function(){throw new Error("Readable.from is not available in the browser")}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},879697(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports={format(e,...t){return e.replace(/%([sdifj])/g,function(...[e,r]){let a=t.shift();if(r==="f")return a.toFixed(6);if(r==="j")return JSON.stringify(a);if(r!=="s"||typeof a!="object")return a.toString();{let e=a.constructor!==Object?a.constructor.name:"";return`${e} {}`.trim()}})},inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":if(isNaN(e))return"NaN";if(Object.is(e,-0))return String(e);return e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},892035(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return Boolean(e)&&typeof e=="object"&&!Array.isArray(e)}var t;var r;__webpack_require__.d(__webpack_exports__,{Gv:()=>e}),(r=t=t||(t={}))[r["Null"]=4]="Null",r[r["Comma"]=1]="Comma",r[r["Wrapper"]=1]="Wrapper",r[r["True"]=4]="True",r[r["False"]=5]="False",r[r["Quote"]=1]="Quote",r[r["Colon"]=1]="Colon",r[r["Date"]=24]="Date"}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_exports__,__webpack_require__}))()},902731(){},909807(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{M6:()=>E,MB:()=>j,qS:()=>x});var e=__webpack_require__(835183);var t=__webpack_require__(272864);var r=__webpack_require__.n(t);var a=__webpack_require__(410276);__webpack_require__.n(a);var n=__webpack_require__(190937);var s=__webpack_require__.n(n);var o=__webpack_require__(230700);__webpack_require__.n(o);var i=__webpack_require__(221057);var l=__webpack_require__(658457);var c=__webpack_require__(625430);var u=__webpack_require__(384666);let m=new URL("https://metamask.github.io/phishing-warning/v5.1.0/");let h,d,f,p,g,b,y;function k(){var t,n;let s=new e.UI({name:c.SM,target:c.uA});(b=new(r())).setMaxListeners(25);let o=()=>{!b.destroyed&&!b.writableEnded&&b.end()};(t=s.once)===null||t===void 0||t.call(s,"close",o),(n=s.once)===null||n===void 0||n.call(s,"end",o),(0,a.pipeline)(b,s,b,e=>(0,u.R)("MetaMask Inpage Multiplex",e)),g=b.createStream(c.VD),b.ignoreStream(c.em),b.ignoreStream(c.xQ),b.ignoreStream(c.om),b.ignoreStream(c.s$),b.ignoreStream(c.ZU),b.ignoreStream(c.Yo)}let w=()=>{var e,t;f=s().runtime.connect({name:c.SM}),p=new o.ExtensionPortStream(f,{chunkSize:0}),(d=new(r())).setMaxListeners(25);let n=()=>{!d.destroyed&&!d.writableEnded&&d.end()};p===null||p===void 0||(e=p.once)===null||e===void 0||e.call(p,"close",n),p===null||p===void 0||(t=p.once)===null||t===void 0||t.call(p,"end",n),(0,a.pipeline)(d,p,d,e=>{(0,u.R)("MetaMask Background Multiplex",e),window.postMessage({target:c.uA,data:{name:c.VD,data:{jsonrpc:"2.0",method:"METAMASK_STREAM_FAILURE"}}},window.location.origin)}),h=d.createStream(c.VD),(0,a.pipeline)(g,h,g,e=>console.debug(`MetaMask: Muxed traffic for channel "${c.VD}" failed.`,e)),d.ignoreStream(c.em),d.ignoreStream(c.xQ),d.ignoreStream(c.om),d.ignoreStream(c.s$),d.ignoreStream(c.ZU),d.ignoreStream(c.Yo),f.onDisconnect.addListener(v)};let v=()=>{let e=(0,i.Cg)();f.onDisconnect.removeListener(v),g.removeAllListeners(),d.removeAllListeners(),d.destroy(),h.removeAllListeners(),h.destroy(),p=null,e&&(console.warn(`${e} Resetting the phishing streams.`),setTimeout(w,1e3))};let _=e=>{return e.name===l.X.READY?(!p&&w(),Promise.resolve(`MetaMask: handled "${l.X.READY}" for phishing streams`)):(0,undefined)};let j=window.location.origin===m.origin&&window.location.pathname===m.pathname;function S(){console.debug("MetaMask: Routing to Phishing Warning page.");let{hostname:e,href:t}=window.location;let r=new URLSearchParams({hostname:e,href:t});window.location.href=`${"https://metamask.github.io/phishing-warning/v5.1.0/"}#${r}`;while(1)console.log("MetaMask: Locking js execution, redirection will complete shortly")}function E(e){y=e.createStream(c.Yo),e.ignoreStream(c.em),e.ignoreStream(c.om),e.ignoreStream(c.VD),y.once("data",S)}let x=()=>{k(),w(),s().runtime.onMessage.addListener(_)}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},912595(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(843105).F.ERR_STREAM_PREMATURE_CLOSE;function t(e){var t=!1;return function(){if(t)return;t=!0;for(var r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];e.apply(this,a)}}function r(){}function a(e){return e.setHeader&&typeof e.abort=="function"}function n(s,o,i){if(typeof o=="function")return n(s,null,o);!o&&(o={}),i=t(i||r);var l=o.readable||o.readable!==!1&&s.readable;var c=o.writable||o.writable!==!1&&s.writable;var u=function(){!s.writable&&h()};var m=s._writableState&&s._writableState.finished;var h=function(){c=!1,m=!0,!l&&i.call(s)};var d=s._readableState&&s._readableState.endEmitted;var f=function(){l=!1,d=!0,!c&&i.call(s)};var p=function(e){i.call(s,e)};var g=function(){var t;return l&&!d?((!s._readableState||!s._readableState.ended)&&(t=new e),i.call(s,t)):(0,c&&!m)?((!s._writableState||!s._writableState.ended)&&(t=new e),i.call(s,t)):void 0};var b=function(){s.req.on("finish",h)};return a(s)?(s.on("complete",h),s.on("abort",g),s.req?b():s.on("request",b)):c&&!s._writableState&&(s.on("end",u),s.on("close",u)),s.on("end",f),s.on("finish",h),o.error!==!1&&s.on("error",p),s.on("close",g),function(){s.removeListener("complete",h),s.removeListener("abort",g),s.removeListener("request",b),s.req&&s.req.removeListener("finish",h),s.removeListener("end",u),s.removeListener("close",u),s.removeListener("finish",h),s.removeListener("end",f),s.removeListener("error",p),s.removeListener("close",g)}}module.exports=n}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{__webpack_require__,module}))()},930042(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(477868);var t;module.exports=E,E.ReadableState=S,__webpack_require__(120337).EventEmitter;var r=function(e,t){return e.listeners(t).length};var a=__webpack_require__(579811);var n=__webpack_require__(275321).Buffer;var s=(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:self!==void 0?self:{}).Uint8Array||function(){};function o(e){return n.from(e)}function i(e){return n.isBuffer(e)||e instanceof s}var l=__webpack_require__(639266);var c;c=l&&l.debuglog?l.debuglog("stream"):function(){};var u=__webpack_require__(849567);var m=__webpack_require__(975322);var h=__webpack_require__(769333).getHighWaterMark;var d=__webpack_require__(544866).F,f=d.ERR_INVALID_ARG_TYPE,p=d.ERR_STREAM_PUSH_AFTER_EOF,g=d.ERR_METHOD_NOT_IMPLEMENTED,b=d.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var y;var k;var w;__webpack_require__(129848)(E,a);var v=m.errorOrDestroy;var _=["error","close","destroy","pause","resume"];function j(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function S(e,r,a){t=t||__webpack_require__(275204),e=e||{},typeof a!=="boolean"&&(a=r instanceof t),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=h(this,e,"readableHighWaterMark",a),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(!y&&(y=__webpack_require__(480935).StringDecoder),this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(t=t||__webpack_require__(275204),!(this instanceof E))return new E(e);var r=this instanceof t;this._readableState=new S(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),a.call(this)}function x(e,t,r,a,s){c("readableAddChunk",t);var i=e._readableState;if(t===null)i.reading=!1,L(e,i);else{var l;if(!s&&(l=A(i,t)),l)v(e,l);else if(i.objectMode||t&&t.length>0)if(typeof t!=="string"&&!i.objectMode&&Object.getPrototypeOf(t)!==n.prototype&&(t=o(t)),a)i.endEmitted?v(e,new b):T(e,i,t,!0);else if(i.ended)v(e,new p);else if(i.destroyed)return!1;else i.reading=!1,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||t.length!==0?T(e,i,t,!1):B(e,i)):T(e,i,t,!1);else!a&&(i.reading=!1,B(e,i))}return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function T(e,t,r,a){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,a?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&O(e)),B(e,t)}function A(e,t){var r;return!i(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode&&(r=new f("chunk",["string","Buffer","Uint8Array"],t)),r}function R(e){return e>=0x40000000?e=0x40000000:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||t.length===0&&t.ended?0:(0,t.objectMode)?1:(0,e!=e)?t.flowing&&t.length?t.buffer.head.data.length:(0,t.length):(0,(e>t.highWaterMark&&(t.highWaterMark=R(e)),e<=t.length)?e:(0,!t.ended)?(t.needReadable=!0,0):(0,t.length))}function L(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,!t.emittedReadable&&(t.emittedReadable=!0,P(e)))}function O(t){var r=t._readableState;c("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,!r.emittedReadable&&(c("emitReadable",r.flowing),r.emittedReadable=!0,e.nextTick(P,t))}function P(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,U(e)}function B(t,r){!r.readingMore&&(r.readingMore=!0,e.nextTick(C,t,r))}function C(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0)){var r=t.length;if(c("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function N(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,"data")&&(t.flowing=!0,U(e))}}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){c("readable nexttick read 0"),e.read(0)}function q(t,r){!r.resumeScheduled&&(r.resumeScheduled=!0,e.nextTick(F,t,r))}function F(e,t){c("resume",t.reading),!t.reading&&e.read(0),t.resumeScheduled=!1,e.emit("resume"),U(e),t.flowing&&!t.reading&&e.read(0)}function U(e){var t=e._readableState;c("flow",t.flowing);while(t.flowing&&e.read()!==null);}function W(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function H(t){var r=t._readableState;c("endReadable",r.endEmitted),!r.endEmitted&&(r.ended=!0,e.nextTick(z,r,t))}function z(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}}function $(e,t){for(var r=0,a=e.length;r<a;r++)if(e[r]===t)return r;return-1}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===undefined?!1:(0,this._readableState.destroyed)},set:function(e){if(!this._readableState)return;this._readableState.destroyed=e}}),E.prototype.destroy=m.destroy,E.prototype._undestroy=m.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var r=this._readableState;var a;return r.objectMode?a=!0:typeof e=="string"&&((t=t||r.defaultEncoding)!==r.encoding&&(e=n.from(e,t),t=""),a=!0),x(this,e,t,!1,a)},E.prototype.unshift=function(e){return x(this,e,null,!0,!1)},E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(e){!y&&(y=__webpack_require__(480935).StringDecoder);var t=new y(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head;var a="";while(r!==null)a+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),a!==""&&this._readableState.buffer.push(a),this._readableState.length=a.length,this},E.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?H(this):O(this),null;if((e=M(e,t))===0&&t.ended)return t.length===0&&H(this),null;var a=t.needReadable;var n;return c("need readable",a),(t.length===0||t.length-e<t.highWaterMark)&&c("length less than watermark",a=!0),t.ended||t.reading?c("reading or ended",a=!1):a&&(c("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,!t.reading&&(e=M(r,t))),(n=e>0?W(e,t):null)===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(!t.ended&&(t.needReadable=!0),r!==e&&t.ended&&H(this)),n!==null&&this.emit("data",n),n},E.prototype._read=function(e){v(this,new g("_read()"))},E.prototype.pipe=function(t,a){var n=this;var s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t);break}s.pipesCount+=1,c("pipe count=%d opts=%j",s.pipesCount,a);var o=(!a||a.end!==!1)&&t!==e.stdout&&t!==e.stderr?l:b;function i(e,t){c("onunpipe"),e===n&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,h())}function l(){c("onend"),t.end()}s.endEmitted?e.nextTick(o):n.once("end",o),t.on("unpipe",i);var u=N(n);t.on("drain",u);var m=!1;function h(){c("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),t.removeListener("drain",u),t.removeListener("error",f),t.removeListener("unpipe",i),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",d),m=!0,s.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}function d(e){c("ondata");var r=t.write(e);c("dest.write",r),r===!1&&((s.pipesCount===1&&s.pipes===t||s.pipesCount>1&&$(s.pipes,t)!==-1)&&!m&&(c("false write response, pause",s.awaitDrain),s.awaitDrain++),n.pause())}function f(e){c("onerror",e),b(),t.removeListener("error",f),r(t,"error")===0&&v(t,e)}function p(){t.removeListener("finish",g),b()}function g(){c("onfinish"),t.removeListener("close",p),b()}function b(){c("unpipe"),n.unpipe(t)}return n.on("data",d),j(t,"error",f),t.once("close",p),t.once("finish",g),t.emit("pipe",n),!s.flowing&&(c("pipe resume"),n.resume()),t},E.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes||(!e&&(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var a=t.pipes;var n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<n;s++)a[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=$(t.pipes,e);return o===-1||(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},E.prototype.on=function(t,r){var n=a.prototype.on.call(this,t,r);var s=this._readableState;return t==="data"?(s.readableListening=this.listenerCount("readable")>0,s.flowing!==!1&&this.resume()):t==="readable"&&!s.endEmitted&&!s.readableListening&&(s.readableListening=s.needReadable=!0,s.flowing=!1,s.emittedReadable=!1,c("on readable",s.length,s.reading),s.length?O(this):!s.reading&&e.nextTick(D,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,r){var n=a.prototype.removeListener.call(this,t,r);return t==="readable"&&e.nextTick(I,this),n},E.prototype.removeAllListeners=function(t){var r=a.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===undefined)&&e.nextTick(I,this),r},E.prototype.resume=function(){var e=this._readableState;return!e.flowing&&(c("resume"),e.flowing=!e.readableListening,q(this,e)),e.paused=!1,this},E.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this;var r=this._readableState;var a=!1;for(var n in e.on("end",function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(n){if((c("wrapped data"),r.decoder&&(n=r.decoder.write(n)),r.objectMode&&(n===null||n===undefined))||!r.objectMode&&(!n||!n.length))return;!t.push(n)&&(a=!0,e.pause())}),e)this[n]===undefined&&typeof e[n]=="function"&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var s=0;s<_.length;s++)e.on(_[s],this.emit.bind(this,_[s]));return this._read=function(t){c("wrapped _read",t),a&&(a=!1,e.resume())},this},typeof Symbol=="function"&&(E.prototype[Symbol.asyncIterator]=function(){return k===undefined&&(k=__webpack_require__(983409)),k(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=W,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(E.from=function(e,t){return w===undefined&&(w=__webpack_require__(869443)),w(E,e,t)})}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},941573(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(477868);function t(e,t){a(e,t),r(e)}function r(e){if(e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function a(e,t){e.emit("error",t)}module.exports={destroy:function(n,s){var o=this;var i=this._readableState&&this._readableState.destroyed;var l=this._writableState&&this._writableState.destroyed;return i||l?s?s(n):n&&(this._writableState?!this._writableState.errorEmitted&&(this._writableState.errorEmitted=!0,e.nextTick(a,this,n)):e.nextTick(a,this,n)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(a){!s&&a?o._writableState?o._writableState.errorEmitted?e.nextTick(r,o):(o._writableState.errorEmitted=!0,e.nextTick(t,o,a)):e.nextTick(t,o,a):s?(e.nextTick(r,o),s(a)):e.nextTick(r,o)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState;var a=e._writableState;r&&r.autoDestroy||a&&a.autoDestroy?e.destroy(t):e.emit("error",t)}}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{__webpack_require__,module}))()},948613(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(620949);__webpack_require__(598404);var t,r;e.l,t=new WeakMap,r=new WeakMap}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},948637(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{"default":e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ObjectMultiplex=void 0;let t=__webpack_require__(734757);let r=e(__webpack_require__(749233));let a=__webpack_require__(138942);let n=Symbol("IGNORE_SUBSTREAM");class s extends t.Duplex{createStream(e,t={}){if(this.destroyed)throw new Error(`ObjectMultiplex - parent stream for name "${e}" already destroyed`);if(this._readableState.ended||this._writableState.ended)throw new Error(`ObjectMultiplex - parent stream for name "${e}" already ended`);if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name "${e}" already exists`);let r=new a.Substream(Object.assign({name:e,parent:this},t));return this._substreams[e]=r,o(this,e=>{return r.destroy(e||undefined)}),r}ignoreStream(e){if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name "${e}" already exists`);this._substreams[e]=n}_read(){return undefined}_write(e,t,r){let{name:a,data:s}=e;if(!a)return console.warn(`ObjectMultiplex - malformed chunk without name "${e}"`),r();let o=this._substreams[a];return!o?console.warn(`ObjectMultiplex - orphaned data for stream "${a}"`):(0,o!==n&&o.push(s)),r()}constructor(e={}){super(Object.assign({objectMode:!0},e)),this._substreams={}}}function o(e,a){let n=(0,r.default)(a);(0,t.finished)(e,{readable:!1},n),(0,t.finished)(e,{writable:!1},n)}exports.ObjectMultiplex=s}}).call(__webpack_require__._LM_("@metamask/object-multiplex",{exports,__webpack_require__})).bind(exports)()},975322(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(477868);function t(e,t){a(e,t),r(e)}function r(e){if(e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function a(e,t){e.emit("error",t)}module.exports={destroy:function(n,s){var o=this;var i=this._readableState&&this._readableState.destroyed;var l=this._writableState&&this._writableState.destroyed;return i||l?s?s(n):n&&(this._writableState?!this._writableState.errorEmitted&&(this._writableState.errorEmitted=!0,e.nextTick(a,this,n)):e.nextTick(a,this,n)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(a){!s&&a?o._writableState?o._writableState.errorEmitted?e.nextTick(r,o):(o._writableState.errorEmitted=!0,e.nextTick(t,o,a)):e.nextTick(t,o,a):s?(e.nextTick(r,o),s(a)):e.nextTick(r,o)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState;var a=e._writableState;r&&r.autoDestroy||a&&a.autoDestroy?e.destroy(t):e.emit("error",t)}}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{__webpack_require__,module}))()},978066(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{AbortController:e}=globalThis;module.exports={AbortController:e}}}).call(__webpack_require__._LM_("openai>abort-controller",{module,__webpack_require__}))()},981452(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";class e extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let t="";for(let r=0;r<e.length;r++)t+=`    ${e[r].stack}
`;super(t),this.name="AggregateError",this.errors=e}}module.exports={AggregateError:e,ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},983409(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(477868);var t;function r(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){var t=n(e,"string");return typeof t=="symbol"?t:String(t)}function n(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var a=r.call(e,t||"default");if(typeof a!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var s=__webpack_require__(706912);var o=Symbol("lastResolve");var i=Symbol("lastReject");var l=Symbol("error");var c=Symbol("ended");var u=Symbol("lastPromise");var m=Symbol("handlePromise");var h=Symbol("stream");function d(e,t){return{value:e,done:t}}function f(e){var t=e[o];if(t!==null){var r=e[h].read();r!==null&&(e[u]=null,e[o]=null,e[i]=null,t(d(r,!1)))}}function p(t){e.nextTick(f,t)}function g(e,t){return function(r,a){e.then(function(){if(t[c]){r(d(undefined,!0));return}t[m](r,a)},a)}}var b=Object.getPrototypeOf(function(){});var y=Object.setPrototypeOf((r(t={get stream(){return this[h]},next:function(){var t=this;var r=this[l];if(r!==null)return Promise.reject(r);if(this[c])return Promise.resolve(d(undefined,!0));if(this[h].destroyed)return new Promise(function(r,a){e.nextTick(function(){t[l]?a(t[l]):r(d(undefined,!0))})});var a=this[u];var n;if(a)n=new Promise(g(a,this));else{var s=this[h].read();if(s!==null)return Promise.resolve(d(s,!1));n=new Promise(this[m])}return this[u]=n,n}},Symbol.asyncIterator,function(){return this}),r(t,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(d(undefined,!0))})})}),t),b);module.exports=function(e){var t;var a=Object.create(y,(r(t={},h,{value:e,writable:!0}),r(t,o,{value:null,writable:!0}),r(t,i,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,c,{value:e._readableState.endEmitted,writable:!0}),r(t,m,{value:function(e,t){var r=a[h].read();r?(a[u]=null,a[o]=null,a[i]=null,e(d(r,!1))):(a[o]=e,a[i]=t)},writable:!0}),t));return a[u]=null,s(e,function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=a[i];t!==null&&(a[u]=null,a[o]=null,a[i]=null,t(e)),a[l]=e;return}var r=a[o];r!==null&&(a[u]=null,a[o]=null,a[i]=null,r(d(undefined,!0))),a[c]=!0}),e.on("readable",p.bind(null,a)),a}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{__webpack_require__,module}))()},999767(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{ArrayIsArray:e,ArrayPrototypeIncludes:t,ArrayPrototypeJoin:r,ArrayPrototypeMap:a,NumberIsInteger:n,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:o,NumberMIN_SAFE_INTEGER:i,NumberParseInt:l,ObjectPrototypeHasOwnProperty:c,RegExpPrototypeExec:u,String:m,StringPrototypeToUpperCase:h,StringPrototypeTrim:d}=__webpack_require__(981452);let{hideStackFrames:f,codes:{ERR_SOCKET_BAD_PORT:p,ERR_INVALID_ARG_TYPE:g,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:y,ERR_UNKNOWN_SIGNAL:k}}=__webpack_require__(499497);let{normalizeEncoding:w}=__webpack_require__(70034);let{isAsyncFunction:v,isArrayBufferView:_}=__webpack_require__(70034).types;let j={};function S(e){return e===(e|0)}function E(e){return e===e>>>0}let x=/^[0-7]+$/;function T(e,t,r){if(e===void 0&&(e=r),typeof e=="string"){if(u(x,e)===null)throw new b(t,e,"must be a 32-bit unsigned integer or an octal string");e=l(e,8)}return M(e,t),e}let A=f((e,t,r=i,a=o)=>{if(typeof e!=="number")throw new g(t,"number",e);if(!n(e))throw new y(t,"an integer",e);if(e<r||e>a)throw new y(t,`>= ${r} && <= ${a}`,e)});let R=f((e,t,r=-0x80000000,a=0x7fffffff)=>{if(typeof e!=="number")throw new g(t,"number",e);if(!n(e))throw new y(t,"an integer",e);if(e<r||e>a)throw new y(t,`>= ${r} && <= ${a}`,e)});let M=f((e,t,r=!1)=>{if(typeof e!=="number")throw new g(t,"number",e);if(!n(e))throw new y(t,"an integer",e);let a=r?1:0;if(e<a||e>0xffffffff)throw new y(t,`>= ${a} && <= ${"4294967295"}`,e)});function L(e,t){if(typeof e!=="string")throw new g(t,"string",e)}function O(e,t,r=undefined,a){if(typeof e!=="number")throw new g(t,"number",e);if(r!=null&&e<r||a!=null&&e>a||(r!=null||a!=null)&&s(e))throw new y(t,`${r!=null?`>= ${r}`:""}${r!=null&&a!=null?" && ":""}${a!=null?`<= ${a}`:""}`,e)}let P=f((e,n,s)=>{if(!t(s,e))throw new b(n,e,"must be one of: "+r(a(s,e=>typeof e=="string"?`'${e}'`:m(e)),", "))});function B(e,t){if(typeof e!=="boolean")throw new g(t,"boolean",e)}function C(e,t,r){return e==null||!c(e,t)?r:e[t]}let N=f((t,r,a=null)=>{let n=C(a,"allowArray",!1);let s=C(a,"allowFunction",!1);if(!C(a,"nullable",!1)&&t===null||!n&&e(t)||typeof t!=="object"&&(!s||typeof t!=="function"))throw new g(r,"Object",t)});let I=f((e,t)=>{if(e!=null&&typeof e!=="object"&&typeof e!=="function")throw new g(t,"a dictionary",e)});let D=f((t,r,a=0)=>{if(!e(t))throw new g(r,"Array",t);if(t.length<a)throw new b(r,t,`must be longer than ${a}`)});function q(e,t){D(e,t);for(let r=0;r<e.length;r++)L(e[r],`${t}[${r}]`)}function F(e,t){D(e,t);for(let r=0;r<e.length;r++)B(e[r],`${t}[${r}]`)}function U(e,t){D(e,t);for(let r=0;r<e.length;r++){let a=e[r];let n=`${t}[${r}]`;if(a==null)throw new g(n,"AbortSignal",a);G(a,n)}}function W(e,t="signal"){if(L(e,t),j[e]===undefined){if(j[h(e)]!==undefined)throw new k(e+" (signals must use all capital letters)");throw new k(e)}}let H=f((e,t="buffer")=>{if(!_(e))throw new g(t,["Buffer","TypedArray","DataView"],e)});function z(e,t){let r=w(t);let a=e.length;if(r==="hex"&&a%2!==0)throw new b("encoding",t,`is invalid for data of length ${a}`)}function $(e,t="Port",r=!0){if(typeof e!=="number"&&typeof e!=="string"||typeof e=="string"&&d(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new p(t,e,r);return e|0}let G=f((e,t)=>{if(e!==undefined&&(e===null||typeof e!=="object"||!("aborted"in e)))throw new g(t,"AbortSignal",e)});let V=f((e,t)=>{if(typeof e!=="function")throw new g(t,"Function",e)});let Y=f((e,t)=>{if(typeof e!=="function"||v(e))throw new g(t,"Function",e)});let K=f((e,t)=>{if(e!==undefined)throw new g(t,"undefined",e)});let X=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Z(e,t){if(e===void 0||!u(X,e))throw new b(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}module.exports={isInt32:S,isUint32:E,parseFileMode:T,validateArray:D,validateStringArray:q,validateBooleanArray:F,validateAbortSignalArray:U,validateBoolean:B,validateBuffer:H,validateDictionary:I,validateEncoding:z,validateFunction:V,validateInt32:R,validateInteger:A,validateNumber:O,validateObject:N,validateOneOf:P,validatePlainFunction:Y,validatePort:$,validateSignalName:W,validateString:L,validateUint32:M,validateUndefined:K,validateUnion:function(e,a,n){if(!t(n,e))throw new g(a,`('${r(n,"|")}')`,e)},validateAbortSignal:G,validateLinkHeaderValue:function(t){if(typeof t=="string")return Z(t,"hints"),t;if(e(t)){let e=t.length;let r="";if(e===0)return r;for(let a=0;a<e;a++){let n=t[a];Z(n,"hints"),r+=n,a!==e-1&&(r+=", ")}return r}throw new b("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}var location=globalThis.location,setTimeout=globalThis.setTimeout,clearTimeout=globalThis.clearTimeout,document=globalThis.document,trustedTypes=globalThis.trustedTypes,self=globalThis.self;let LOCKDOWN_SHIMS=[];__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{let e=Object.create(null);e.root="$root$",e.idmap=[["$root$",[762224,221057,221057,454179,454179,514952,514952,187362,654523,226104,625430,311755,625430,658457,658457,384666,909807,314598,265662,265662,628609,311530,443179,218033,218033,218033,218033,218033,218033,218033,894521,894521,894521,894521,894521,894521,894521,9510,9510,9510,9510,9510,9510,9510,796404,796404,796404,796404,796404,796404,796404,870717,671196,671196,671196,671196,816402,816402,816402,816402,686898,686898,686898,686898,32667,32667,32667,32667,30943,30943,30943,30943,574127,574127,574127,574127,562099,562099,562099,562099,226535,226535,226535,226535,586297,586297,586297,586297,284999,284999,284999,284999,434062,434062,434062,434062,149235,149235,149235,149235,636925,636925,636925,636925,640469,640469,640469,640469,593029,203531,70423,285624,956738,70846,994922,341210,133361,827426,840001,483503,122648,971857,423236,914307,352268,127942,171283,373973,415748,368859,975110,330295,447966,471575,365162,26833,365174,346696,376161,927158,330643,723816,989799,23560,386074,402329,150283,112976,837505,566301,646562,791222,490758,376271,829574,582222,166553,646453,165047,412806,46803,217281,752596,484256,638987,326420,75214,740907,290159,623926,560947,962792,662588,422991,442106,546794,49783,533454,71277,272993,825569,724618,176033,654167,759145,675598,29999,658154,240741,19290,836243,55120,110959,218221,3242,747883,911631,394248,59284,160657,766105,576029,959810,249330,777624,541569,788977,559548,7144,567102,717754,495869,172589,129173,398545,299256,480981,559463,822120,278943,739378,555711,314307,551827,70822,726865,101366,420517,86493,486010,899804,553025,764734,127581,385631,637981,539162,67484,505664,178628,402325,768665,731468,110489,184391,233300,349642,786674,373543,880717,948459,525194,744615,880817,522690,754395,557e3,775991,416157,658104,213550,93124,17092,525134,435339,626460,901313,37858,393699,856400,678999,311046,850174,469141,738246,506995,465283,533645,906229,605482,258446,112268,930572,654254,365502,653888,904296,816776,151286,914189,125290,64099,240225,702348,543694,299068,98101,912101,694426,303134,61923,16736,38927,512123,760178,472607,539541,709071,733946,904121,691634,672783,710341,718986,692246,641218,486438,993253,750462,426955,297006,805080,308746,178953,202479,943343,350352,392123,673555,55153,632561,770650,775501,676472,117448,918384,324810,353576,186790,668402,600008,947802,590524,510056,111915,781776,741175,829059,729494,30852,960835,896685,320154,37975,965349,615360,246405,731098,973131,753115,500212,459315,939495,368531,161923,834510,458830,330485,464607,180561,630543,877008,609233,741534,857228,903935,415118,403024,373300,657356,247982,705636,524866,252734,894957,559219,852273,290589,868332,519288,553625,119231,263837,755887,854135,629437,151203,935660,586495,682601,655674,371143,481388,7413,981312,68570,772728,750901,155109,480222,338533,325937,435852,258636,304515,384946,630577,724786,5766,792848,986608,157581,875555,390342,211514,560151,478805,428163,71512,532909,566185,614335,133196,6788,557301,207996,414995,790701,488268,714515,824840,644254,224148,239020,59063,714632,88051,25700,242930,512313,376634,885349,662386,557879,693260,968227,291961,437383,125021,165801,276811,898293,99130,328731,68459,523055,148326,395899,229740,799701,578636,502687,951631,974660,42116,723146,127419,77383,353234,777535,271716,630213,346914,41253,457025,128576,355455,905183,7836,423760,547150,739520,721559,717372,740899,893484,245953,840424,576986,406552,340789,553146,663527,838325,787240,856817,473549,646670,665447,2814,155044,381534,700585,455910,755877,560009,723629,294977,111970,638844,71428,994348,418525,671101,718376,728722,351142,724137,478544,650212,129219,280541,103922,434792,546111,955614,65533,67412,66939,278442,548697,120175,676248,890577,22690,166123,360452,508333,859022,298503,91632,977184,566903,307978,697465,761932,962195,592022,720213,41032,575647,969157,885062,678531,523068,13545,601018,904743,880592,114573,53870,543718,574437,810012,414947,311258,558473,857584,614983,860065,308461,675027,474764,433045,304854,279735,690016,410297,20810,809307,861364,121588,585883,123518,749789,953736,945823,739026,206657,708812,874899,891353,594922,595479,496704,697205,878966,698611,408539,990849,942335,250821,790508,97001,27506,820938,622645,728884,162739,368210,235097,721352,465879,151958,724653,617575,580888,866016,230257,471050,187689,85474,456707,588420,339909,818702,515071,150128,332693,617630,655891,387348,893561,484146,675747,854696,217805,378358,328004,196291,558286,79493,320472,357159,825058,927273,672156,720859,616162,148263,870597,349390,987395,596255,390045,303996,309072,107745,371578,114043,703009,390972,778092,477021,555654,292871,548344,612406,263228,417677,908332,854198,679339,437547,638971,454506,996817,632576,113615,877854,990037,709649,167338,826447,276333,345408,130509,808886,716086,150379,621164,382969,396850,286064,744063,562699,427606,684698,250049,161564,91035,680463,214310,670909,690648,846567,939339,48337,816012,376941,380950,450095,591840,956081,196874,84526,391731,838644,124547,486542,18370,404745,314296,92999,726190,815333,411001,304420,766819,714234,873697,898157,325462,460555,839761,337228,19825,718090,394607,655584,279797,272574,678140,401211,842822,764189,596240,883423,658746,918504,394913,791460,253859,427669,93010,955743,562903,839520,76168,880770,799391,557977,19298,305237,711082,918670,225490,408360,125010,560268,12670,531345,502415,94002,85362,934944,671988,527096,806213,35045,800828,38530,616361,779148,522262,166950,400490,881972,850658,73214,262867,971122,875079,158077,410347,217313,245,530756,13143,477325,776777,311565,589382,408785,68055,949672,862619,541,409086,405556,909895,426533,554300,439563,312862,113396,547330,424887,744780,945702,580957,271459,876896,974355,44625,617568,427429,10291,330278,460963,694247,948031,249369,556977,101240,133516,566852,967630,569972,596971,989267,338589,505497,988361,537631,520408,977398,97157,996576,449400,73650,685789,620912,246179,277292,654309,792332,323237,446232,349250,709584,11891,161879,671621,727895,114047,705867,846941,382081,403955,425915,723572,844720,319830,57388,28096,843212,136506,809088,772746,562615,748760,110166,233723,104187,581709,280287,60454,659045,358277,920891,579133,575803,343458,825694,612933,31408,191544,462374,413631,530827,495467,478139,691078,481783,323905,615547,570172,848772,666822,683627,954918,102352,861249,327358,73011,365958,497220,538125,800800,407426,692119,967747,738921,453228,528422,662514,720375,347003,903270,142477,252636,116327,323084,348413,866556,974560,781856,540684,945590,599222,937327,294372,337619,757971,156454,734713,480137,683988,979595,185513,55653,746785,97237,920012,610281,901701,823661,548688,124058,210308,111138,670042,405044,788794,867133,699491,983643,620879,602945,483248,871931,203649,865729,86195,65379,722878,885813,488401,436612,204795,57225,854612,306592,6042,21342,447919,436710,929154,828214,825405,91814,823426,846388,124345,943134,145183,110409,785392,842064,472089,972014,651866,74975,220750,955985,68954,641771,165883,707080,923618,692100,804749,508394,277986,745713,660204,583747,213434,19444,725084,747160,84244,785484,364952,824954,759215,878860,731766,948996,798713,891314,811266,234955,906450,291556,508150,167788,455529,651117,723289,821038,13984,693111,746254,77927,752917,619384,517400,801884,182044,396465,868964,202577,795404,380748,867265,486743,424298,439319,441255,349085,926689,572436,928017,168655,291951,599662,193930,40635,727343,786025,223337,699463,181267,370321,988539,944492,226981,427893,26180,893819,16693,492799,920232,545485,7081,583626,897436,551356,898524,282586,777930,294016,476446,786409,494689,34321,653233,604097,998769,956630,181608,940084,27152,103464,3972,100421,6189,81645,684279,26060,751858,780511,575330,180129,263655,474030,907421,366542,327690,551700,338929,104347,200004,871425,955959,793875,737333,769559,959811,842840,933538,92272,982872,953098,386225,32251,10308,949432,151434,165184,934715,662932,794629,36275,636447,56518,597819,873591,709218,686210,280634,49746,403069,808731,367593,119493,67531,770817,676120,225402,964648,476872,493660,818477,641631,928519,465462,614040,322179,476832,993911,690645,615976,713143,149782,185335,803984,954736,258593,238980,299246,712941,666833,936307,259352,445608,210952,87924,657417,77203,528676,576902,594973,73645,442789,703040,834332,882416,822751,899650,963707,268040,948251,191524,731565,217866,663562,610758,213380,440924,744850,58192,970112,883032,422280,207482,647943,912279,95988,867262,985376,994171,257947,229089,21129,630177,607939,127417,285777,163612,668472,444073,200183,186662,5671,220110,661299,17363,458888,671921,914623,665070,905869,872346,471927,62129,647651,214368,510058,385030,740499,137976,273062,873885,66614,58268,938734,563315,986258,550004,10140,354571,354040,70891,193843,64293,496348,714731,37411,747041,906923,454123,318367,768204,2959,780017,676303,294026,812792,58513,203601,337098,812868,363287,831884,237995,452175,354061,777206,547415,395937,908821,638772,19053,565864,188517,196900,225306,154261,328024,662260,377828,695858,258144,869708,752997,857355,145777,422447,959693,307225,760382,102151,899206,2198,744183,533375,443309,531555,402837,357944,510437,118188,324146,857224,635431,397722,170614,255548,524260,170148,325396,815390,912400,807171,126838,177999,636401,435906,95529,107426,259386,575353,383676,242251,393872,329225,938111,376285,956829,896688,248214,596339,177286,427955,103754,881206,731640,413176,640367,917298,432310,426116,458078,344776,708108,259196,485554,899068,865734,299738,204532,935352,577214,395432,239322,621737,618142,246144,574634,2447,796230,749192,265146,872492,5162,167493,126190,542738,216938,119350,8728,545823,147246,878216,740844,420977,972358,380795,983662,92202,318982,445744,476996,305347,1391,393106,56496,61276,372014,636788,228176,583628,646935,883742,399813,167238,454739,275790,728965,253302,406276,341574,595688,37752,682663,763550,140307,573194,330334,961034,719710,40608,458907,764022,179059,127946,70015,506043,417230,400962,198313,401250,22907,255391,488996,538530,221533,371821,262633,408903,149931,608509,806698,654131,398039,997498,251320,684453,508855,295590,767446,925880,799844,992378,242910,269689,340041,715739,315331,243715,461029,913167,397289,589422,565084,851323,439906,620537,387622,549731,27402,894603,775889,708878,669676,246420,231964,488358,391302,21764,140494,969908,569230,109715,89142,403411,539412,789246,416378,349590,94634,919161,235322,542946,49038,571158,36344,575292,904225,903307,65370,17946,905986,237225,170379,18340,95117,102697,748493,985074,361380,52120,892573,144826,764908,494974,877188,218311,239877,336548,969454,99453,266363,945556,3023,355570,403626,386153,500631,263380,198991,947896,297686,206917,387883,837474,946785,222967,695302,989941,169503,862206,600514,757128,107779,362764,925670,367635,358526,442317,418332,790994,978961,423976,243910,728949,6697,714902,795653,294101,59478,933893,499265,946888,44675,564474,920270,364251,767638,298565,784713,839638,711489,1792,345751,217926,949,292377,610674,708775,492914,879793,381730,920958,375053,420483,845342,406445,110651,235505,134994,810526,890669,716820,285226,179138,658856,566782,217060,598973,654872,830515,258346,509481,100794,797402,28953,318214,841629,885656,960659,306586,823202,834410,875627,552563,68762,372063,894490,801887,630518,618031,914230,684581,234409,236918,388453,952e3,687914,707332,864381,845576,851326,189544,851171,789177,387014,487783,805598,644270,581226,969926,263994,876205,52592,847387,486238,275821,372176,112252,812023,135873,310326,806437,975776,233484,467143,284466,184055,80588,446368,618152,399020,357554,224473,570698,873169,770610,282465,391338,400805,713826,919466,325674,729998,753535,656806,134903,780454,252379,319538,397762,344418,136210,387976,670048,72219,797994,149243,137982,440073,684199,592638,749008,221307,429951,861675,145746,34177,515354,997771,545118,680355,775093,528575,970093,46939,812941,143957,141590,642735,877831,713809,414501,865072,430804,671654,658030,500487,679059,47406,768838,557291,412683,645319,865395,887811,804095,343847,7685,321716,969665,296361,394770,488746,653877,389228,967223,661264,408933,23684,633873,709973,229920,951574,696990,419149,111825,359841,128070,895495,158305,868063,662938,498272,40393,802595,455720,586853,31983,373479,803527,96129,434124,6461,129891,542250,83823,309794,830525,314722,781687,494378,462873,983291,522001,878097,916047,619083,44007,611252,697047,777640,856933,698190,939921,44358,450895,408119,755732,898419,984959,391330,559547,36897,850316,416007,26638,968353,917285,665479,189479,768309,819191,266922,360651,219054,945917,199921,234385,274280,632800,987797,840205,365972,186184,894601,700107,205294,268253,471554,680313,361062,207038,995189,741725,517009,352471,55277,782617,523226,821109,316426,44423,151639,712995,362015,39454,290361,597543,285387,646495,977604,73329,542178,904081,57497,781289,876967,995616,766763,937520,270781,729902,593434,501787,344873,458551,672892,425931,357773,13903,913667,786995,180511,337417,464243,614881,615833,38801,32865,583007,669631,280765,168109,558436,346735,613155,916807,337129,91767,302926,762183,582937,336887,452312,927771,125247,593791,192233,983153,723399,483837,14569,903673,950608,411267,538833,680959,189278,421687,179329,910291,337436,982342,618236,444061,607136,585884,71127,76699,773983,42072,383691,795672,481303,406670,653341,883982,416753,508220,177030,411817,203427,607063,832116,62229,616518,781399,600749,890391,293988,950996,977275,212548,337643,423135,236651,222057,225348,338698,244879,919713,6421,454835,449261,658648,206217,101607,68513,438950,864425,551786,122307,921437,60637,271195,987794,227590,170923,68210,944473,390406,57073,183694,270853,689469,903629,634784,494040,688056,555739,439277,385292,579590,624801,449681,333497,187033,536887,604186,426717,835069,508651,211176,660745,615813,525876,823692,106426,953415,282351,106890,487540,818404,530372,25059,678705,375753,38345,601350,633695,341154,734836,975995,427366,391122,610624,322188,716364,470084,963844,971620,933240,773465,171312,375723,956718,740044,740377,58912,612069,94129,572129,182408,6860,218511,524825,145754,839307,338459,377379,857436,584097,184021,145030,395460,244019,585738,906652,103549,158177,943806,874721,270451,682974,612145,937106,844665,624901,373790,858713,466893,771794,311624,178596,835936,770981,154381,783667,764506,308344,936364,532406,982746,529666,684020,6535,271207,14610,685199,187058,626617,453693,179390,844416,86099,55942,896872,949686,932014,323571,370147,49245,545464,283380,370965,162729,661276,101775,83035,387117,459983,54038,154710,329627,948054,853724,510868,3822,961417,826034,450380,926711,606104,822861,22787,597006,228173,585880,139842,658324,599086,688120,598754,796839,709622,568758,765384,649375,269356,136046,499472,828802,649916,629763,250953,341964,691851,268520,434859,510293,871770,475001,543712,172979,840974,976254,945825,216910,868542,35833,984990,624243,309209,743087,120914,829345,589631,201893,450045,311480,638153,472278,253113,683203,711773,611365,383087,929769,488753,10427,686631,392031,856051,762889,142040,273260,809488,892336,144581,779429,399635,132610,511735,483806,701501,204586,770247,246166,810907,857390,328058,309881,879881,264488,903372,641513,18295,879729,590374,473700,148670,833335,3309,417582,977672,751997,823558,203066,374804,992877,489630,550351,10306,542710,396071,905474,581298,457078,422332,554499,113956,881371,675204,202550,661557,419817,215364,720464,445603,169345,107859,679659,367521,993453,21484,608225,206897,306225,931366,747079,232100,842850,973155,778211,940759,172309,949992,239160,344227,632537,968243,755119,154193,538914,304644,359891,38485,500383,954597,259248,800400,75856,509699,152949,279418,634570,125623,191131,720821,818668,223813,458027,495493,475898,83030,623192,22999,42004,762387,195927,463662,121743,979738,538804,165075,277857,45555,922361,459656,719856,137726,64613,773815,908516,568878,920203,158053,720170,618134,75933,546141,771677,805868,526853,967992,924860,194250,535774,28811,320196,86969,441852,121977,250036,754040,155611,447311,856914,208981,707654,132352,61472,5439,736809,112684,881970,694227,89536,544766,532795,246679,571137,702901,356370,418921,663540,435270,314571,40077,556821,72031,411255,869615,956398,264646,475894,585541,254588,712826,880283,973426,526929,52294,373245,437154,411519,46044,428733,563887,700442,442001,390700,500450,391767,500029,761730,752785,440584,365173,415209,790388,267540,223014,655405,80805,860322,265161,160543,928517,266515,221532,540687,105887,896442,442774,836388,130407,982773,781918,664400,7495,227432,980472,662436,892366,379060,479372,337772,739848,180972,311387,875652,527118,612039,473834,545111,751684,223547,854560,62237,317326,938978,95994,414783,305262,80500,638387,965705,774763,292319,776326,777510,780160,890844,273145,255231,674145,16611,244832,469578,199976,844345,165373,182937,111764,126964,133648,965558,389250,351915,189350,702054,418331,223268,544672,338763,862451,277421,283938,947342,176803,639842,674754,739287,570078,665406,482767,373608,83995,784933,52156,815037,251393,437312,370357,47327,856516,941297,274150,344441,216968,978186,710603,157876,4904,947515,14636,877593,15444,626159,194012,868114,180414,439815,863620,908388,615028,612918,758052,196006,931680,990169,576152,339962,316944,321169,867616,229547,505420,773265,485160,309760,253843,601421,56575,388449,480873,228299,477543,825172,34187,303574,464423,63153,698115,607930,935551,534254,486147,54870,166146,610517,546462,288530,607640,517986,857717,66847,875442,993802,433572,732173,837241,126474,270149,889010,548979,301249,872516,197149,205945,672231,482971,337938,187585,59108,597077,779878,220336,825678,407573,532059,900893,434232,800334,745808,552654,676880,110767,909719,58364,373660,256292,310202,634538,179976,318864,462182,541057,637804,702608,512530,562467,822970,480642,973150,272936,910656,239502,751182,374390,216248,633346,378246,429660,888398,135130,999542,993478,977926,981286,461452,262963,160837,786530,632888,466753,495917,742396,418958,899932,604784,905456,176975,652683,22624,774056,122545,566418,86486,273065,717464,912486,20809,244505,214538,413389,477516,950251,254323,364783,322010,825922,206356,575411,521522,226851,936407,694453,784734,460184,933151,606329,716415,686984,803925,709457,890132,180783,870999,706375,752432,585450,363861,910069,43249,766664,641666,849141,244569,982571,882643,330197,565726,733722,666033,915077,318028,337485,767478,370636,647684,222530,906562,109682,748881,775180,782720,635615,839098,58214,255749,564071,352020,175072,83731,494096,207703,93040,802277,755419,77157,924033,279148,237437,180194,857630,21048,733660,920312,66114,566172,663436,341204,274366,748006,474814,512827,723236,795188,532348,399563,209003,472351,585319,375086,562845,350130,204057,450067,521285,40940,133151,654241,389970,521193,425982,695957,99536,585397,932591,443381,507529,556723,725259,26408,363061,812604,153533,191838,500592,569856,454478,889297,557211,747486,176212,788541,814471,630500,668252,195961,824379,771442,800225,458255,520527,844788,58791,299846,24388,542715,631360,213528,134893,760413,327281,152705,162461,684295,827642,74901,311654,544483,411851,931768,273073,175643,344770,858096,474609,155687,231997,789085,333617,769727,566421,378215,54730,615134,339951,37910,627109,336688,218332,517768,219698,261367,116917,310918,439381,848301,919333,13115,182278,564266,128155,19545,525305,521647,767973,754147,654085,147033,858585,640025,998320,776670,801846,548702,454592,767371,158740,33701,412938,942953,489552,395372,673093,871300,839405,795728,835701,422438,963472,291510,889881,626489,873005,459394,289830,276322,411934,861520,348300,750911,100315,827383,96370,773666,305252,633767,965630,139663,711982,65315,987026,597070,420214,171160,307616,531295,976072,22602,200870,154677,611969,929289,326258,404939,205301,258895,805297,939477,447356,42645,640290,101418,506753,762614,886329,181735,596190,154237,215657,63738,890193,669210,323501,832182,6732,231345,746664,801455,547383,965786,46284,496431,380945,213974,468611,791974,441313,192698,407903,844700,504987,300792,11887,675850,197908,593962,173398,713203,585015,945770,702694,802214,644455,395268,294167,633865,338007,281248,635952,497770,284428,687997,883457,502316,115737,231891,151856,388088,38580,44189,896504,828906,560990,231804,83676,917756,950377,187793,400901,646888,242870,332217,928013,685669,953791,68158,220806,443531,560508,387447,54326,866969,285042,930987,599990,643510,168272,834021,166068,302930,733617,290839,52777,364089,965059,400964,831291,500557,794664,999271,419011,41403,819202,916185,426412,65758,265754,269390,107513,525470,549996,659831,293958,999817,748464,77208,787383,380885,344581,177382,54401,129774,876575,449726,420955,600230,991640,68299,363771,381072,177827,755949,303601,254757,383479,300537,829749,504464,918610,538252,138321,258429,729017,523529,129033,854114,621697,203356,482002,687046,630379,553868,706609,323456,938822,580085,402053,273468,146537,896404,392854,507705,919180,912978,746848,449099,84065,696721,147007,855730,913947,364547,941099,840224,408709,415863,486284,220892,36632,236458,402254,760852,537468,126476,95800,275947,258734,20915,238018,14452,519727,255433,725803,264346,183740,339636,60162,69037,646361,70345,356536,326105,951530,725631,210831,713343,21176,382023,954067,729625,25105,42183,625610,206679,452699,86291,624886,434629,84651,527756,451676,86497,407209,561518,668885,608245,168561,63633,319660,136199,25715,343717,470960,750544,686265,17581,710982,563014,367001,517458,157074,219818,230072,251602,505744,425598,691564,195679,593534,976055,581878,886479,164281,715398,680631,191894,285283,795874,946568,614494,804583,410384,394131,452487,674724,688791,353235,493522,201300,305606,314810,792284,477100,13403,929525,399571,552876,100116,502693,847517,320007,559470,461774,125093,999318,581847,73666,718431,16247,803414,967326,441567,230445,86742,996942,283193,715707,893101,788661,280463,561352,536299,925727,3779,460160,468315,77434,343815,860688,251143,725589,854866,327514,375435,770367,35506,581558,648637,549066,907094,35300,233197,380006,80756,515979,141679,612737,945680,829116,786452,461326,331347,500472,614200,428345,823064,593643,383578,767008,638943,337394,5686,487990,67574,335286,329918,620470,744725,868221,306875,257743,326572,283712,124001,291429,661285,666739,29789,916403,933056,516760,348212,812175,835509,98743,712353,285303,509369,22389,756246,58363,160341,553650,212801,459400,269337,436752,912685,969603,478482,108148,771256,120023,24681,787867,518001,404522,193676,38112,577393,707913,92919,173633,566411,298172,506813,801945,774145,841062,91415,485712,946363,146171,757576,552394,476917,274237,443954,280623,192818,177471,978934,248416,323356,658156,808883,220791,813905,827946,502803,268077,592454,930985,994957,544389,421357,342582,596664,269201,714311,795831,195362,305288,581431,308457,600192,484538,126869,840802,10273,705629,506404,971072,272002,959410,972482,711498,455326,2202,690401,941012,347191,47250,290293,863191,362571,596786,124553,509124,129989,328955,293870,315615,353699,603626,338878,167301,435819,964076,346456,710792,427634,510732,583124,811105,230755,447480,935898,248565,78366,986787,380665,210760,636127,470355,716034,981789,846979,280620,936869,3705,723229,106778,286189,458190,778115,717771]],["bowser",[541150,541150]],["webextension-polyfill",[190937,517910,190937]],["loglevel",[688723,415480,688723]],["@metamask/object-multiplex",[272864,981593,272864,948637,607214,948637,138942,311375,138942]],["@metamask/object-multiplex>readable-stream",[734757,307500,734757,930042,526293,930042,579811,594796,579811,849567,610242,849567,975322,227425,975322,769333,36348,769333,544866,967309,544866,275204,51823,275204,598846,171253,598846,983409,796350,983409,706912,92167,706912,869443,671548,869443,440164,87785,440164,570638,448859,570638,23004,785269,23004]],["webpack>events",[120337,514102,120337]],["buffer",[275321,896264,275321]],["base64-js",[600408,206149,600408]],["buffer>ieee754",[628229,682606,628229]],["process",[477868,614309,614309,477868]],["pumpify>inherits",[129848,298377,129848]],["@storybook/react>util-deprecate",[401329,742216,401329]],["browserify>string_decoder",[480935,168320,480935]],["koa>content-disposition>safe-buffer",[767931,300072,767931]],["@metamask/object-multiplex>once",[749233,719270,749233]],["@metamask/object-multiplex>once>wrappy",[838757,935158,838757]],["@metamask/post-message-stream",[835183,368967,835183,794071,723327,794071,620949,140077,620949,598404,774390,598404,318804,962758,318804,259868,67398,259868,948613,112677,948613]],["@metamask/utils",[811921,867521,867521,811921,892035,935907,935907,892035,698165,698165,665093,727312,727312,727312,727312,727312,727312,727312,161394,161394,161394,161394,161394,161394,161394,946009,946009,946009,946009,946009,946009,946009,737620,737620,737620,737620,737620,737620,737620,496809,496809,496809,496809,496809,496809,496809,775357,775357,775357,775357,775357,775357,775357,535739,535739,535739,535739,535739,535739,535739,859355,859355,859355,859355,859355,859355,859355,37410,37410,37410,37410,37410,37410,37410,342501,342501,342501,342501,342501,342501,342501,841658,841658,841658,841658,841658,841658,841658,783307,783307,783307,783307,783307,783307,783307,728931,728931,728931,728931,728931,728931,728931,502788,502788,502788,502788,502788,502788,502788,999570,999570,999570,999570,999570,999570,999570,516927,516927,516927,516927,516927,516927,516927,774367,774367,774367,774367,774367,774367,774367,205215,205215,205215,205215,205215,205215,205215,914869,914869,914869,914869,914869,914869,914869,115975,115975,115975,115975,115975,115975,115975,61455,61455,61455,61455,61455,61455,61455,779688,779688,779688,779688,779688,779688,779688,827515,827515,827515,827515,827515,827515,827515,41777,41777,41777,41777,41777,41777,41777,325572,488018,584754,537272,763767,250335,134140,906290,59642,531788,862806,865462,471057,578608,749918,835816,458712]],["@metamask/post-message-stream>readable-stream",[161398,212023,161398,599993,311086,599993,606438,848729,606438,692196,784241,692196,941573,771706,941573,414198,252923,414198,843105,258338,843105,643163,68216,643163,828233,519998,828233,578064,82475,578064,912595,352120,912595,520966,747093,520966,348605,77268,348605,860583,292770,860583,844313,486016,844313]],["readable-stream",[410276,416115,410276,626936,521291,626936,981452,977931,981452,70034,65175,70034,879697,133134,879697,499497,678754,499497,190993,890812,190993,999767,783832,999767,108496,285443,108496,249341,754664,249341,602908,467019,602908,117644,142393,117644,207978,539773,207978,218244,884925,218244,671610,565579,671610,482109,24510,482109,717765,668890,717765,652431,645478,652431,176613,328496,176613,622442,49671,622442,680190,603231,680190,803972,47595,803972,810958,208273,810958,689572,317195,689572,215813,786638,215813]],["openai>abort-controller",[978066,600169,978066]],["extension-port-stream",[230700,230700,490449,490449,327400,327400,169557,169557]],["uuid",[997731,261220,189938,122861,243358,463837,881143,406632,648364,944167,388336,420104,163963,377203,760827,762959,402818,8241,826315,406236]],["@metamask/providers",[181639,998720,966821,401933,362268,796013,216952,358134,173336,185388,576458,123973,280949,78808,535694,613350]],["@metamask/json-rpc-engine",[407255,551719,413255,907031,631754,593832,438249,836065,756160,756160,756160,756160,756160,756160,756160,19540,19540,19540,19540,19540,19540,19540,806600,806600,806600,806600,806600,806600,806600,332785,332785,332785,332785,332785,332785,332785,442990,442990,442990,442990,442990,442990,442990,998377,998377,998377,998377,998377,998377,998377,169288,169288,169288,169288,169288,169288,169288,304700,304700,304700,304700,304700,304700,304700,146362,146362,146362,146362,146362,146362,146362,944294,944294,944294,944294,944294,944294,944294,150046,150046,150046,150046,150046,150046,150046,331471,86113,47845,745837,269919,437183,297883,249334,251832]],["@metamask/rpc-errors",[701472,701472,601518,55797,55797,542453,248220,248220,57786,458775,458775,833823,26154,26154,26154,26154,26154,26154,26154,926806,926806,926806,926806,926806,926806,926806,861789,861789,861789,861789,861789,861789,861789,646348,646348,646348,646348,646348,646348,646348,372455,372455,372455,372455,372455,372455,372455]],["@metamask/rpc-errors>fast-safe-stringify",[173082,173082,324681]],["@metamask/superstruct",[167713,167713,867385,571138,571138,476680,899341,899341,444173,743468,743468,401786,544403,544403,839955,212084,212084,284066,601365,601365,811381,487703,487703,487703,487703,487703,487703,487703,789533,789533,789533,789533,789533,789533,789533,802546,802546,802546,802546,802546,802546,802546,154640,154640,154640,154640,154640,154640,154640,979495,979495,979495,979495,979495,979495,979495,73979,73979,73979,73979,73979,73979,73979,64588,64588,64588,64588,64588,64588,64588,513682,513682,513682,513682,513682,513682,513682]],["@metamask/json-rpc-middleware-stream",[864968,943150,705880]],["@metamask/safe-event-emitter",[451015,726999,431178]],["@metamask/json-rpc-middleware-stream>readable-stream",[524600,556725,67241,696106,117992,687699,970086,332079,462397,850506,222896,233605,189433,305362,520435,782004,619993,447918,192386,32993,49987,892016,790424,649139,502893,659412,805079,739582,617145,804460]],["@metamask/providers>is-stream",[962787,533042]],["@metamask/providers>readable-stream",[234032,311691,945153,161528,332432,985573,228862,838861,999973,57460,957208,811327,177937,516780,458363,411946,182209,722568,728010,991855,456539,771306,986640,333057,130965,529334,906495,178092,850385,7426]],["eslint>fast-deep-equal",[850124,570271]],["@metamask/multichain-api-client",[946969,457102,484045,311752,370691,406330,257240,378074]],["@metamask/solana-wallet-standard",[291222,693191,453275,719087,171643]],["@metamask/solana-wallet-standard>@wallet-standard/wallet",[197866,805897]],["@metamask/test-dapp-solana>@solana/wallet-standard-chains",[138853]],["@metamask/solana-wallet-standard>@solana/wallet-standard-features",[938656,208774,157326,308263]],["@metamask/solana-wallet-standard>@wallet-standard/features",[388245,804049,530480]],["bs58",[401737,932633]],["bs58>base-x",[843829,369085]],["@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/eth-json-rpc-provider",[858835,858835,858835,858835,858835,858835,858835,82446,82446,82446,82446,82446,82446,82446,667274,667274,667274,667274,667274,667274,667274,548288,548288,548288,548288,548288,548288,548288]],["@metamask/chain-agnostic-permission>@metamask/api-specs",[99790,99790,99790,99790,99790,99790,99790,934683,934683,934683,934683,934683,934683,934683,687935]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>ethjs-schema",[613122,613122,613122,613122,613122,613122,613122]],["eth-method-registry",[852032,852032,852032,852032,852032,852032,852032,243922,243922,243922,243922,243922,243922,243922,9381]],["@toruslabs/eccrypto>elliptic",[917768,917768,917768,917768,917768,917768,917768,926351,485556,535824,434732,548350,852514,38781,994590,417267,89124,587783,915778,860787,781733,597589]],["crypto-browserify>browserify-sign",[184715,184715,184715,184715,184715,184715,184715,661841,661841,661841,661841,661841,661841,661841,231809,119814,599725,847373]],["ethereumjs-util>ethereum-cryptography>browserify-aes",[589543,589543,589543,589543,589543,589543,589543,526296,86798,454359,973445,465661,187322,230480,46330,129906,993753,767565,486735,194058,762352,256369,72172]],["crypto-browserify>diffie-hellman",[53365,53365,53365,53365,53365,53365,53365,160366,1628,870944]],["crypto-browserify>public-encrypt>parse-asn1",[890535,890535,890535,890535,890535,890535,890535,491331,204059,744331,693660]],["@ledgerhq/hw-app-eth>@ledgerhq/cryptoassets-evm-signatures",[938612,938612,848707,848707,477649,477649,130680,130680,696055,696055,480075,480075,668059,668059,89350,89350,867849,867849,745686,745686,274109,274109,743225,743225,366551,366551,443852,443852,762051,762051,895421,895421,334270,334270,67928,67928,950401,950401,384717,384717,610625,610625,95776,95776,579237,579237,594750,594750,419682,419682,255154,255154,199597,199597,248848,248848,250685,250685,258052,258052,116736,116736,462622,462622,124859,124859,404282,404282,626884,626884,78373,78373,163015,163015,590888,590888,37908,37908,591272,591272,9231,9231,347020,347020,819889,819889,416093,416093,605933,605933,527390,527390,236883,236883,616814,616814,210703,210703,518851,518851,787985,787985,519988,519988,169781,169781,524815,524815,902902,902902,545688,545688,730571,730571,322847,322847,983883,983883,835776,835776,672311,672311,279673,717580,197252]],["@metamask/snaps-sdk",[564534,564534,792567,782695,816121,255161,234555,942139,940116,34242,560627,959875,928544,182326,272711,374087,78906,10064,437057,132649,84704,204926,558245,83717,122090,831704,50553,823425,867084,114178,922462,382924,193310,640716,504798,351476,753867,28139,398703,40639,366776,773430,648226,935216,275488,450590,532623,331735,303546,930048,794801,704281,66251,359939,139815,474569,165270,153039,399512,382494,53466,347060,842137,26816,740101,189383,391492,368940,300986,183602,512348,195914,590562,286491,189342,368758,622820,745552,524766,732976]],["@metamask/multichain-api-middleware>@metamask/api-specs",[340968,340968,89361,89361,709701]],["eslint>ajv",[194730,194730,862680,862680,994261,558536,835656,828665,793348,127676,521908,978539,139051,55235,493694,535508,793119,349401,873705,246284,8597,216875,138550,963428,259346,336156,184882,701132,92776,941514,383006,281505,793609,956572,844044,929632,917135,897884,604270,680136,946864,917876,235899,764669]],["@metamask/contract-metadata",[243179,243179,243179,243179,243179,243179,243179,282423]],["currency-formatter",[758533,758533,758533,758533,758533,758533,758533,888624,888624,888624,888624,888624,888624,888624,192172,158831]],["@metamask/assets-controllers>@metamask/abi-utils>@metamask/utils",[370561,370561,370561,370561,370561,370561,370561,19249,19249,19249,19249,19249,19249,19249,19810,19810,19810,19810,19810,19810,19810,79171,79171,79171,79171,79171,79171,79171,524054,524054,524054,524054,524054,524054,524054,365844,365844,365844,365844,365844,365844,365844,682374,682374,682374,682374,682374,682374,682374,221492,221492,221492,221492,221492,221492,221492,165662,165662,165662,165662,165662,165662,165662,923533,923533,923533,923533,923533,923533,923533,131170,131170,131170,131170,131170,131170,131170,306104,306104,306104,306104,306104,306104,306104,295593,295593,295593,295593,295593,295593,295593,523426,523426,523426,523426,523426,523426,523426,106282,106282,106282,106282,106282,106282,106282,429328,429328,429328,429328,429328,429328,429328,133994,133994,133994,133994,133994,133994,133994,637422,637422,637422,637422,637422,637422,637422,521332,521332,521332,521332,521332,521332,521332,877777,877777,877777,877777,877777,877777,877777,210028,210028,210028,210028,210028,210028,210028]],["@metamask/perps-controller>@metamask/abi-utils>@metamask/utils",[431321,431321,414121,414121,889706,889706,557563,557563,983342,983342,839308,839308,283278,283278,366524,366524,547398,547398,352629,352629,670378,670378,36128,36128,82257,82257,289514,289514,924242,924242,36072,36072,434962,434962,33894,33894,115532,115532,884313,884313,198196,198196]],["@metamask/base-controller",[82173,82173,243020,243020,320098,410432,541299,988251]],["@metamask/controller-utils",[261459,261459,325514,325514,520540,520540,150040,150040,39229,39229,650265,650265,617009,617009,637691,647017,679104,260668,312547,279048]],["@blockaid/ppom_release",[635675,635675,89962]],["@metamask/smart-transactions-controller",[729118,729118,20240,743275,684986,891815,999046,257939,955295]],["@metamask/snaps-utils>@metamask/slip44",[847408,847408,847408]],["@metamask/permissions-kernel-snap",[18171,18171]],["@metamask/gator-permissions-snap",[454989,454989]],["@metamask/message-signing-snap",[423752,423752]],["@metamask/ens-resolver-snap",[830316,830316]],["@metamask/institutional-wallet-snap",[654294,654294]],["@metamask/bitcoin-wallet-snap",[709397,709397]],["@metamask/solana-wallet-snap",[245743,245743]],["@metamask/tron-wallet-snap",[990306,990306]],["@fortawesome/fontawesome-free",[411525,411525,411525,411525,1527,1527,1527,1527,70035,70035,70035,70035]],["@rive-app/react-canvas>@rive-app/canvas",[236494,236494,236494,236494,236494,824890]],["unicode-confusables",[531743,531743,531743,531743,531743,147308]],["react-markdown>property-information",[709064,709064,709064,709064,709064,281386,67856,91292,871640,767971,360873,582724,595212,850768,788168,32270,746687,406187,917549,407592,669739,564150,960155]],["nock>debug",[307892,728619,904301,245910]],["mocha>ms",[790022,680679]],["@sentry/browser",[733827,948003,320308,693058,582038,268332,953081,274409,32566,341284,34868,674855,769628,474250,330788,848034,290763,176027,31085,876261,776642,776072,463605,602949,87502,294876,876393,998313,523221,145677,58227,602955,507746,651824,741101,129101,790372,91026,673951,724007,353128,200326,945199,980647,12300,848762,679829,485877,864937,694009,511122,395704,150360,216406,940659,50675]],["@sentry/browser>@sentry/core",[306814,989564,810070,413804,353245,353541,446722,628160,242240,776870,42885,694245,84568,769750,803784,149158,794156,561890,783103,489255,867840,151742,799619,238867,215429,356541,424661,917061,695620,284666,909804,590602,99426,875872,415183,461535,665918,842444,657135,279703,362074,288984,23104,721398,753299,407123,169444,924922,558266,783320,504378,577680,912723,809699,946120,866286,47933,411629,16755,717107,587683,129939,198367,250575,480228,835786,619538,804840,905822,939508,944784,475518,251902,143292,351877,626189,778810,488688,552608,979190,655480,874958,305603,795659,582901,171117,66437,478605,640811,343107,58037,55109,133100,331722,795767,270482,646408,34022,930648,319502,49641,724633,129235,858907,3780,701887,403876,752114,282369,540201,554423,761047,932575,337543,472173,400685,158846,522300,261304,684950,555089,882081,396397,615741,87356,491554,648453,430037,267020,686602]],["@sentry/utils",[124003,644299,843783,536863,984138,871104,282195,150131,38068,274834,904436,346498,481935,754159,655219,957779,101265,319721,345530,999608,537868,221346,842611,717043,467927,989367,862328,695102,359948,800378,654880,881358,935003,673987,288401,629529,651156,446818,258279,197951,41542,842852,310070,124508,462744,224534,53991,759711,558769,65169,343977,955249,104785,843393,10405,703149,313279,857183,199103,775687,45659,522630,703019,564891,409547,464307,30678,697356,567165,245493,565975,549831,417328,956238,982179,370643,187546,558344,597956,92794]],["@sentry/browser>@sentry-internal/browser-utils",[719630,283236,45523,183051,917438,626044,981367,592167,187347,51227,641945,189521,937112,50158,116906,957024,236992,574078,442216,325934,642837,109765,99042,686328,967588,201058,76332,854322,862741,758621,582060,795290,352010,542864,384610,689184,817545,17513,147507,531771,180789,646189,521909,529573,701943,483767,184601,365801,460196,401922,896159,238367,590596,727186,433620,182866]],["@sentry/browser>@sentry-internal/replay",[25546,28760]],["@sentry/browser>@sentry-internal/replay-canvas",[670417,807169]],["@sentry/browser>@sentry-internal/feedback",[38638,851980]],["@metamask/snaps-rpc-methods",[635236,439290,560956,603004,295443,740200,488388,174766,769270,238633,195066,360806,747373,573217,158142,419047,326424,475868,92748,273278,387036,818312,223283,626216,32131,728245,291210,944704,406589,710773,403434,408278,249599,822831,605561,42480,688500,620549,189712,169918,160191,489216,693479,641228,633845,146950,268172,782147,207600,338016,95834,341764,509149,486872,619470,791789,465322,929855,544664,617674,618685,136264,442888,498222,766158,516275,760786,874233,500995]],["@metamask/permission-controller",[960211,726691,543877,368605,898078,864607,314891,167116,159705]],["immer",[512981,620101,296959,262308]],["@noble/hashes",[772962,856568,272721,210633,608396,553754,453472,127012,339323,67508,191727,456614,174516,374940,97480,352682,380607,572036,844560,990927,482725,690233,74617,894666,284153,547317]],["lodash",[722226,623729,968558,310091,161905,884615,67693,313358,502969,397995,655635,589863,21298,538373,300007,520331,277272,907663,518327,362193,331342,343602,264161,8707,696341,141599,964676,40594,206047,64977,955978,255953,491973,384654,272443,859499,853685,498538,868288,753259,104684,871701,154008,689510,789032,355430,617597,609689,279081,878516,691147,994507,50173,328122,357820,128485,771406,601232,173997,248003,284736,279144,652098,255186,396750,889035,619299,458913,765603,27747,452628,968987,900955,786574,11475,905749,380129,983094,570405,399551,421325,316007,154143,857873,714849,201636,787271,524734,820015,847776,918945,15250,117024,612257,693945,603169,988822,280199,642402,316504,693578,511500,905119,655715,358651,754167,80249,491607,749441,230519,170798,374656,902772,402726,59509,211654,859276,416138,667301,577993,498273,993262,374632,860171,404007,558479,957499,939095,295930,42892,421387,18148,449643,827452,638793,547011,772115,135032,195830,459057,447857,709735,420765,890674,13540,887831,362891,541587,671013,342072,303611,489223,326498,834337,95564,507531,630842,824478,541773,585942,677614,564398,357659,531980,555155,915518,389995,124622,661188,928756,285068,112308,385964,763507,178281,855974,564500,522565,863047,557336,967474,971398,434178,787380,264997,971447,303453,828206,29335,848176,559546,631316,209965]],["luxon",[695431,744367,752324,949234,982883,478731,15938,878280,369338,712024,535424,664550,308180,216074,501762,880928,454228,39754,261206,817116,829037,758189,967792,396670,839252,281714,333508,10114,94386,91864,280904,542966,728596,637930,52611,582699,975841,53585,157004,209378,778232,170766,383447,313247,865731,416043,385194,704512,828187]],["@metamask/logo",[663411,366643,457083]],["viem>abitype",[21082,997521,962559,155754,516908,825803,30531,325375,930306,24979,23148,184002,804045]],["currency-formatter>accounting",[403817]],["eth-lattice-keyring>gridplus-sdk>aes-js",[377498]],["eslint>ajv>json-schema-traverse",[107717]],["chalk>ansi-styles",[719241]],["@metamask/controller-utils>@spruceid/siwe-parser>apg-js",[936740,913099,317837,715028,520468,476542,527215,418066,158158,888971,902453,913444,232151,589875,55131,614285,500377,567279,80609,171476,475688,157246,966226,846155]],["string.prototype.matchall>es-abstract>array-buffer-byte-length",[97477]],["crypto-browserify>public-encrypt>parse-asn1>asn1.js",[946697,321509,857643,168459,986598,773228,143039,920676,464455,431925,604024,121763,478489,830914]],["@ngraveio/bc-ur>assert",[729878,89640,663179,907293]],["string.prototype.matchall>get-intrinsic>async-function",[397840]],["string.prototype.matchall>get-intrinsic>async-generator-function",[166856]],["@metamask/keyring-api>async-mutex",[615451,276924,629233,895856,95703,391232,913684]],["string.prototype.matchall>es-abstract>available-typed-arrays",[183771]],["await-semaphore",[25508]],["axios",[100113,431433,52767,586262,174132,483712,466661,495988,554716,545292,897510,554904,712797,197660,922575,455002,477839,594869,72542,295289,761075,318203,318845,836189,708529,984757,783957,53952,451956,50399,587833,135755,767369,148839,403700,21527,366483,639928,357407,941562,66333,64204,218007,902462,600717,696849,62151,791570,662333]],["@metamask/snaps-controllers>tar-stream>b4a",[286352,487399,63941,958349,144633,116829]],["@babel/runtime",[955669,573751,272781,809703,919185,6585,693655,464563,966629,217043,353583,820139,903845,777458,645144,455333,674559,651900,57411,813856,733125,414793,326418,283647,895420,719916,696635,775956,633549,666464,626114,490042,830270,383953,689988,618217,326227,917954,144927,586802,68918,223499,426758,461608,44796,367090]],["react-markdown>unified>bail",[656559]],["@ensdomains/content-hash>multihashes>multibase>base-x",[765022]],["base32-encode",[322620]],["bitcoin-address-validation>bech32",[625213]],["bignumber.js",[587044]],["bitcoin-address-validation",[315239]],["@metamask/design-system-react>blo",[995851,82758,981903,586192]],["ethereumjs-util>bn.js",[689262]],["@toruslabs/eccrypto>elliptic>brorand",[692295]],["crypto-browserify>browserify-cipher",[818795]],["crypto-browserify>browserify-cipher>browserify-des",[281444,278716]],["crypto-browserify>public-encrypt>browserify-rsa",[27898]],["crypto-browserify>browserify-sign>readable-stream>isarray",[494130]],["crypto-browserify>browserify-sign>readable-stream",[441902,492856,822428,37786,841932,158606,198400,589857,597831]],["crypto-browserify>browserify-sign>readable-stream>safe-buffer",[566338]],["crypto-browserify>browserify-sign>readable-stream>string_decoder",[791197]],["crypto-browserify>browserify-sign>readable-stream>string_decoder>safe-buffer",[811139]],["ethereumjs-util>ethereum-cryptography>bs58check",[704998,555691]],["ethereumjs-util>ethereum-cryptography>bs58check>bs58",[83781]],["terser>source-map-support>buffer-from",[631700]],["ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor",[324545]],["stream-http>builtin-status-codes",[978868]],["@metamask/snaps-utils>validate-npm-package-name>builtins",[788783]],["string.prototype.matchall>call-bind>call-bind-apply-helpers",[223882,382763,797996,611262,131664,263093]],["string.prototype.matchall>call-bind",[301257,794505]],["string.prototype.matchall>call-bound",[154102]],["@ngraveio/bc-ur>cbor-sync",[142056]],["eth-lattice-keyring>gridplus-sdk>cbor",[860072,524503,695514,127139,15179,821259,925237,237638,101885,59025,198023,8482,256663]],["chalk>supports-color",[794272]],["chalk",[982918,997557,821816]],["chart.js",[973640,831125]],["@ensdomains/content-hash>cids>uint8arrays",[933758,557787,710553]],["@ensdomains/content-hash>cids",[123800,567927]],["ethereumjs-util>create-hash>cipher-base",[962790]],["@metamask/jazzicon>color>clone",[333645]],["clsx",[836474]],["cockatiel",[742869,191354,368573,167391,576115,6413,198908,85162,244238,483003,31347,973757,735112,283238,455766,73625,455579,148498,339497,649895,750479,561463,709842,525309,460691,257705]],["chalk>ansi-styles>color-convert",[558333,851600,757969]],["jest-canvas-mock>moo-color>color-name",[610290]],["@metamask/jazzicon>color>color-string",[7773]],["react-markdown>comma-separated-tokens",[356673]],["@segment/loosely-validate-event>component-type",[999281]],["@metamask/notification-services-controller>@contentful/rich-text-html-renderer",[355154]],["copy-to-clipboard",[588239]],["core-js-pure",[424669,341961,803650,689817,235929,718816,224299,300086,982117,633678,640899,254940,112020,902680,254190,310789,194106,143086,324789,40663,745344,477347,830425,701628,207817,338933,752058,723978,295710,853352,979236,112385,11654,932679,173854,342744,4266,521392,949978,617992,131591,917448,163149,279419,916174,124546,342472,898330,118132,62388,256490,820256,210046,534873,844697,803531,53053,353314,464209,497513,832364,976884]],["readable-stream-2>core-util-is",[153152]],["eth-lattice-keyring>gridplus-sdk>crc-32",[514868]],["@ngraveio/bc-ur>crc",[956018,626549,938826,213460,583296,154070,289943,534012,442307,822429,274073,139292,688429,143235]],["@ngraveio/bc-ur>crc>buffer",[677041]],["crypto-browserify>create-ecdh",[820346]],["ethereumjs-util>create-hash",[287682,432910]],["crypto-browserify>create-hmac",[408873,203602]],["cron-parser",[346457,86351,929490,903359,850382]],["crypto-browserify",[392067]],["@metamask/ppom-validator>crypto-js",[24429,325598,773039,50203,183776,434635,106949,100056,109671,918687,924006,747622,430978,626067,314650,48513,900636,282487,329219,974987,895772,556250,319213,60477,813522,290936,41383,261110,210621,599666,664159,700935,212027,771638,58978,524674]],["react-beautiful-dnd>css-box-model",[915057]],["@material-ui/core>@material-ui/styles>jss-plugin-vendor-prefixer>css-vendor",[735839]],["@date-io/luxon",[880613]],["@metamask/eth-token-tracker>deep-equal",[177056]],["deep-freeze-strict",[265023]],["addons-linter>deepmerge",[252082]],["string.prototype.matchall>define-properties>define-data-property",[743919]],["string.prototype.matchall>define-properties",[465418]],["crypto-browserify>browserify-cipher>browserify-des>des.js",[64039,574866,744861,670053,750994,41660]],["react-transition-group>dom-helpers",[942568,179981,550609]],["dompurify",[742380]],["eslint-plugin-react>es-iterator-helpers>has-proto>dunder-proto",[420630]],["@ensdomains/content-hash>multihashes>buffer",[99691]],["@ensdomains/content-hash>multihashes>multibase",[318709,725759,122510,140917,171104]],["@ensdomains/content-hash>multihashes",[504618,345319]],["@ensdomains/content-hash>multihashes>varint",[564937,380289,295815,545879]],["@ensdomains/content-hash",[9509,650616,441212]],["string.prototype.matchall>call-bind>es-define-property",[802409]],["string.prototype.matchall>es-errors",[922207,383197,86792,903452,189098,806289,709607]],["@metamask/eth-token-tracker>deep-equal>es-get-iterator",[933886]],["string.prototype.matchall>es-object-atoms",[740902]],["eth-chainlist",[158686,699178]],["eth-ens-namehash",[887361]],["eth-lattice-keyring",[581011]],["eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography",[56715,11657,215864]],["eth-lattice-keyring>@ethereumjs/util>@ethereumjs/rlp",[201401]],["eth-lattice-keyring>@ethereumjs/util",[750100,522687,155197,155560,591350,124942,647794,781971,936402,539700,531694,611037,931954,26948,994044]],["eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/curves",[502802,854382,285849,109615,844948,627809,961094]],["eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/hashes",[324557,56298,837542,81697,10919,169367,532403,546943]],["eth-lattice-keyring>rlp",[567154]],["ethereum-cryptography",[752104,762565]],["ethereumjs-util",[620556,173015,873552,351838,415307,130391,892554,996027,918234,87220,167733,796410]],["ethereumjs-util>ethereum-cryptography",[758676,940710,807115,38574]],["@metamask/keyring-controller>ethereumjs-wallet",[920735,596184,881981]],["@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography",[638493,252183,350171,903920,385353,106278,976500,137119,747294,449629,46409]],["@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util",[963978,718793,455830,983092,11381,426781,694104,961533,358152,826926,566003,937892]],["@ethereumjs/tx>@ethereumjs/common",[831747,704840,752919,538230,814823,492043,530545,637596]],["@ethereumjs/tx>@ethereumjs/rlp",[823865,147094]],["@ethereumjs/tx",[395001,213043,675821,172913,44647,474454,292607,709934,655460,553406,764482,308305,546958,589711,273178,316547,142880]],["@ethereumjs/tx>ethereum-cryptography",[353675,24056]],["@ethereumjs/tx>ethereum-cryptography>@noble/hashes",[767109,471918,841307,176839]],["@ethereumjs/tx>@ethereumjs/util",[926070,911517,961615,994977,134741,549992,177575,358427,271708,50209,14660,800195,690254,569793,609356,419467,935511,468336,365238,865784,599646,104037,790718,400256,592162,403013,393959,49770,741924,301703,337782,787097,49562,412121,922498,378840,296011,612317,715161,90567]],["@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography",[572739,303874,508288,762190,715363,361718,918723,761675]],["@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves",[920725,761415,779244,423870,653189,171996,15322,528438,27943,147580,586873,150750,659849]],["@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/hashes",[178486,178765,165879,282288,492013,158858,982406,208385,312263,743095,839699,107551,534974,53858,311174,476768]],["ethers",[499660,423386,419931,463046,427655]],["@ethersproject/abi",[771698,454155,162008,196836,229941,626253,97144,703815,260216,817479,962923,478403,507814,385656,388905,255690]],["ethers>@ethersproject/abstract-provider",[988580,44403]],["ethers>@ethersproject/abstract-signer",[517293,432304]],["ethers>@ethersproject/address",[373592,347583]],["ethers>@ethersproject/base64",[90757,885664]],["ethers>@ethersproject/basex",[316832]],["@ethersproject/bignumber",[313453,33083,150539,754544]],["@ethersproject/bytes",[88665,323588]],["ethers>@ethersproject/constants",[167598,110288,286104,93162,563044]],["@ethersproject/contracts",[268625,601660]],["ethers>@ethersproject/hash",[625644,694370,367686,619769,624430,34427,515652,429560,246304]],["@ethersproject/hdnode",[2144,73479]],["ethers>@ethersproject/json-wallets",[282763,11316,895622,734450,874068,205063]],["ethers>@ethersproject/json-wallets>aes-js",[454058]],["ethers>@ethersproject/keccak256",[501800]],["ethers>@ethersproject/logger",[589324,805915]],["ethers>@ethersproject/networks",[130065,543612]],["ethers>@ethersproject/pbkdf2",[914037]],["ethers>@ethersproject/properties",[658267,24726]],["@ethersproject/providers",[160534,929510,239485,560476,884714,98348,731061,931087,96917,812414,206613,759564,212851,639214,99845,396226,620323,162154,422906,465071]],["@ethersproject/providers>bech32",[36535]],["ethers>@ethersproject/random",[373285,8968,625901,477073]],["ethers>@ethersproject/rlp",[904422,123493]],["ethers>@ethersproject/sha2",[773884,72907,346923,199786]],["ethers>@ethersproject/signing-key",[778535,658142,130010]],["ethers>@ethersproject/solidity",[169263,566594]],["ethers>@ethersproject/strings",[500330,362139,165889,720289,135470]],["@ethersproject/transactions",[533995,66854]],["ethers>@ethersproject/units",[38477,336336]],["ethers>@ethersproject/wallet",[963303,727834]],["ethers>@ethersproject/web",[538550,721120,509493]],["ethers>@ethersproject/wordlists",[105671,306026,420084,323195]],["eth-method-registry>@metamask/ethjs-contract>ethjs-abi",[284510,759464]],["crypto-browserify>browserify-cipher>evp_bytestokey",[112072]],["react-markdown>unified>extend",[569287]],["lightweight-charts>fancy-canvas",[384438,757294,826584,579993,227396]],["@metamask/snaps-controllers>tar-stream>fast-fifo",[72972,550642]],["fast-json-patch",[116769,721647,328780,41553]],["fast-json-stable-stringify",[468858]],["@metamask/snaps-utils>fast-xml-parser",[353122,670189,209776,496765,516067,569719,371182,663908,235161]],["webpack-cli>fastest-levenshtein",[538557]],["@metamask/notification-services-controller>firebase>@firebase/app",[581191]],["@metamask/notification-services-controller>firebase",[314725,790672,994185]],["@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component",[893923]],["@metamask/notification-services-controller>firebase>@firebase/installations",[953405]],["@metamask/notification-services-controller>firebase>@firebase/app>@firebase/logger",[477454]],["@metamask/notification-services-controller>firebase>@firebase/messaging",[483426,550822]],["@metamask/notification-services-controller>firebase>@firebase/util",[687625]],["react-focus-lock>focus-lock",[963864,224141,432581,325305,204776,5233,338585,293790,875378,868541,811190,943965,719349,618365,580137,904775,856951,25486,918314,810935,973423]],["browserify>util>which-typed-array>for-each",[977908]],["browserify>has>function-bind",[440495,638393]],["string.prototype.matchall>set-function-name>functions-have-names",[599356]],["fuse.js",[825823]],["string.prototype.matchall>get-intrinsic>generator-function",[22419]],["string.prototype.matchall>get-intrinsic",[261995]],["@metamask/snaps-controllers>get-npm-tarball-url",[825458]],["remote-redux-devtools>redux-devtools-core>get-params",[295434]],["string.prototype.matchall>es-abstract>get-proto",[379270,946374,555010]],["@metamask/logo>gl-mat4",[655347,202361,497455,827233,449915,221398]],["@metamask/logo>gl-vec3",[288586]],["string.prototype.matchall>gopd",[218079,911373]],["eth-lattice-keyring>gridplus-sdk",[444123]],["eth-lattice-keyring>gridplus-sdk>bignumber.js",[30845,761663]],["eth-lattice-keyring>gridplus-sdk>bs58check",[859029,752238]],["eth-lattice-keyring>gridplus-sdk>cbor-bigdecimal",[378335]],["eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp",[160428,304163]],["eth-lattice-keyring>gridplus-sdk>ox",[810394,858238,38873,207592,303931,547208,198332,153918,930713]],["eth-lattice-keyring>gridplus-sdk>secp256k1",[30482,436806,279970]],["string.prototype.matchall>es-abstract>unbox-primitive>has-bigints",[865272]],["eslint-plugin-react>es-iterator-helpers>has-property-descriptors",[617450]],["string.prototype.matchall>has-symbols",[756297,179531]],["axios>form-data>es-set-tostringtag>has-tostringtag",[691682]],["ethers>@ethersproject/sha2>hash.js",[830368,619050,29402,345750,264883,412320,296741,611873,658576,127387,986655,779796]],["eslint-plugin-react>hasown",[381871]],["@metamask/eth-qr-keyring>hdkey",[990829]],["he",[19485]],["@toruslabs/eccrypto>elliptic>hmac-drbg",[929725]],["react-redux>hoist-non-react-statics",[781336]],["react-redux>hoist-non-react-statics>react-is",[77910,385178]],["https-browserify",[67573]],["human-standard-token-abi",[811805]],["humanize-duration",[956613]],["@material-ui/core>@material-ui/styles>jss-plugin-camel-case>hyphenate-style-name",[589963]],["@metamask/notification-services-controller>firebase>@firebase/app>idb",[253440,424194]],["eth-ens-namehash>idna-uts46-hx",[544046,778081]],["eth-ens-namehash>idna-uts46-hx>punycode",[360411]],["react-markdown>style-to-object>inline-style-parser",[545874]],["string.prototype.matchall>internal-slot",[49417]],["ip-regex",[838488]],["browserify>util>is-arguments",[829922]],["string.prototype.matchall>es-abstract>is-array-buffer",[300464]],["@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-bigint",[603545]],["@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-boolean-object",[701858]],["string.prototype.matchall>es-abstract>is-callable",[170434]],["@metamask/eth-token-tracker>deep-equal>is-date-object",[588062]],["eth-method-registry>@metamask/ethjs-query>promise-to-callback>is-fn",[894774]],["browserify>util>is-generator-function",[593954]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>is-hex-prefixed",[532350]],["@material-ui/core>@material-ui/styles>jss>is-in-browser",[162517]],["@metamask/eth-token-tracker>deep-equal>es-get-iterator>is-map",[284328]],["@ngraveio/bc-ur>assert>is-nan",[647677,733707,329224,510754]],["@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-number-object",[227329]],["mocha>yargs-unparser>is-plain-obj",[505958]],["string.prototype.matchall>es-abstract>is-regex",[164841]],["is-retry-allowed",[57189]],["string.prototype.matchall>es-abstract>is-set",[622282]],["string.prototype.matchall>es-abstract>is-shared-array-buffer",[525756]],["eslint-plugin-react>array-includes>is-string",[630915]],["string.prototype.matchall>es-abstract>es-to-primitive>is-symbol",[633130]],["browserify>util>is-typed-array",[62926]],["@open-rpc/schema-utils-js>is-url",[130835]],["@metamask/eth-token-tracker>deep-equal>which-collection>is-weakmap",[679288]],["@metamask/eth-token-tracker>deep-equal>which-collection>is-weakset",[621306]],["@lavamoat/webpack>json-stable-stringify>isarray",[556132]],["@open-rpc/test-coverage>isomorphic-fetch",[778958]],["@segment/loosely-validate-event>join-component",[181641]],["@ensdomains/content-hash>js-base64",[653509]],["eth-ens-namehash>js-sha3",[894350]],["remote-redux-devtools>jsan",[832035,31009,73123,580462,962846]],["@ngraveio/bc-ur>jsbi",[371421]],["@metamask/ppom-validator>json-rpc-random-id",[515641]],["@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver>@json-schema-spec/json-pointer",[109922]],["@open-rpc/schema-utils-js>@json-schema-tools/dereferencer",[906631,723345]],["@open-rpc/schema-utils-js>@json-schema-tools/meta-schema",[701311]],["@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver",[834251,384210,762498,961335,201537]],["@open-rpc/schema-utils-js>@json-schema-tools/dereferencer>@json-schema-tools/traverse",[909785]],["eslint>json-stable-stringify-without-jsonify",[6595]],["@metamask/message-manager>jsonschema",[195930,483227,297706,410277,808988]],["@material-ui/core>@material-ui/styles>jss-plugin-camel-case",[292727]],["@material-ui/core>@material-ui/styles>jss-plugin-default-unit",[863385]],["@material-ui/core>@material-ui/styles>jss-plugin-global",[988651]],["@material-ui/core>@material-ui/styles>jss-plugin-nested",[972011]],["@material-ui/core>@material-ui/styles>jss-plugin-props-sort",[459787]],["@material-ui/core>@material-ui/styles>jss-plugin-rule-value-function",[379195]],["@material-ui/core>@material-ui/styles>jss-plugin-vendor-prefixer",[405051]],["@material-ui/core>@material-ui/styles>jss",[156715]],["ethereumjs-util>ethereum-cryptography>keccak",[185334,475950,170122,815960,425956,843539]],["ethereumjs-util>ethereum-cryptography>keccak>readable-stream",[402904,756398,96696,71708,855642,400652,835443,685457,242496,618550,951917,888182,187955,733217,819911]],["@ngraveio/bc-ur>@keystonehq/alias-sampling",[283486]],["@keystonehq/bc-ur-registry-eth",[783831,240299]],["@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry",[925354,487453,806237,545257,790509,199566,189589,392811,175766,682909,961971,809549,990122,552412,367613,745105,958057,25297,404872,471689,445962,943845,685681,11983,162904,873700]],["@metamask/json-rpc-engine>klona",[351413,998455]],["chart.js>@kurkle/color",[175953]],["@lavamoat/lavadome-react",[972070]],["@ledgerhq/hw-app-eth>@ledgerhq/domain-service",[264065,171937,631727]],["@ledgerhq/errors",[928375,228838]],["@ledgerhq/hw-app-eth>@ledgerhq/evm-tools",[816736,581047,372730]],["@ledgerhq/hw-app-eth",[411783,304741,288636,333899,517878,529589,403707,426272,506228,403749,4175,220185,341694,30221]],["@ledgerhq/hw-app-eth>bignumber.js",[493558]],["@ledgerhq/hw-transport",[386245]],["@ledgerhq/hw-app-eth>@ledgerhq/evm-tools>@ledgerhq/live-env",[18192,192455]],["@ledgerhq/hw-app-eth>@ledgerhq/logs",[269466]],["lightweight-charts",[487689]],["remote-redux-devtools>socketcluster-client>linked-list",[39790,398517]],["currency-formatter>locale-currency",[585711,270093]],["localforage",[186268]],["@google/genai>protobufjs>long",[252383]],["lottie-web",[358838]],["@metamask/snaps-utils>marked",[913141]],["@material-ui/core",[679148,790762,820461,259614,53540,128768,482186,158842,189696,293420,40854,179335,398602,402965,674135,220662,356670,557072,998282,370830,283496,128606,194482,228380,717530,322877,841864,284346,252226,40619,293766,78291,897868,276962,32717,756574,506606,382970,86292,360968,413350,73668,583326,856154,723994,347702,919210,771757,312700,165760,329286,45324,710746,492042,731618,428600,150080,897489,844881,724687,967234,686734,922036,535825,384220,746125,635658,578445,360331,219656,338748,315587,226605,965360,746553,905735,92288,10126,487069,883661,290420,290966,415772,913668,661219,780981,347859,715884,721952,237032,920196,259021,275196,409699,944214,682790,27266,294357,447759,2326]],["@material-ui/core>clsx",[738093]],["@material-ui/pickers",[665690,652676,984562,516367,754,501227,664645,70635,818278,305246,171837,318883]],["@material-ui/pickers>clsx",[855969]],["@material-ui/core>@material-ui/styles",[654155,372347,783640,989991,691657,365665,259954,654855,595095,466721,85173,286088,891449,785621,721701,155777]],["@material-ui/core>@material-ui/system",[375587,748515,265123,38218]],["@material-ui/core>@material-ui/utils",[382061,897134]],["eslint-plugin-react>array-includes>math-intrinsics",[584060,942506,875769,353470,497248,609218,284348,362903]],["ethereumjs-util>create-hash>md5.js",[99914]],["ethereumjs-util>create-hash>md5.js>hash-base",[495032]],["ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",[112515,149953,657877,579847,470455,378763,187350,248114,568079,570293,881020,840847,904800,147192,291212]],["@storybook/addon-docs>remark-external-links>mdast-util-definitions",[156346]],["react-markdown>remark-parse>mdast-util-from-markdown",[913139,215510]],["react-markdown>remark-parse>mdast-util-from-markdown>mdast-util-to-string",[271e3]],["react-markdown>remark-rehype>mdast-util-to-hast",[283448,335311,207881,551237,679011,861687,614537,262320,226590,709414,316594,986875,104745,455417,87420,334401,799190,969822,238636,454390,656654,717954,459001,404088,210661,641616,111732,521424,112332,860570]],["react-markdown>remark-rehype>mdast-util-to-hast>mdurl",[273577]],["react-beautiful-dnd>memoize-one",[599081]],["@metamask/jazzicon>mersenne-twister",[476924]],["@metamask/abi-utils",[722264,133811,611566,647278,510558,600757,96008,539273,386410,271489,805241,214633,534628,706470,658864,577163,366558,397132,585336,59544]],["@metamask/account-api",[61862,73382,87539,791112,823939,793790,599237,489470,409262,633286]],["@metamask/account-tree-controller",[989884,703844,295323,144768,934913,425558,416997,621049,298927,86907,223629,321593,211275,960495,12432,942271,591060,687532,813467,574469,329102,895478,738431]],["@metamask/account-tree-controller>@metamask/snaps-utils",[113535,390947]],["@metamask/accounts-controller",[901177,456461,328120]],["@metamask/accounts-controller>ethereum-cryptography",[926312,105682]],["@metamask/accounts-controller>ethereum-cryptography>@noble/hashes",[813171,688844,35205,422305]],["@metamask/address-book-controller",[297534]],["@metamask/announcement-controller",[884127]],["@metamask/approval-controller",[104095,379375]],["@metamask/assets-controller",[596007,638625,232487,796426,811988,647210,47311,452041,226936,734679,499810,944436,885492,670670,156606,217759,567444,350483,800103,369115,607335,396517,686229,615446]],["@metamask/assets-controller>bignumber.js",[963946]],["@metamask/assets-controller>@metamask/snaps-utils",[3728,254232]],["@metamask/assets-controllers",[381932,244246,871864,593644,632857,707133,656069,734148,788388,227700,592122,84304,117029,319698,447444,122983,469535,542541,637957,217603,440046,97259,640377,399692,129676,697666,734490,902729,858404,389578,634535,709466,850940,389847,280264,645260,673494]],["@metamask/assets-controllers>@metamask/abi-utils",[382967,623646,448377,735631,286215,585902,464219,643288,796405,279890,86188,827174,214201,822311,215621,796812,171269,552831,277989,788651]],["@metamask/assets-controllers>@metamask/phishing-controller",[755429]],["@metamask/assets-controllers>@metamask/snaps-utils",[82687,153857]],["@metamask/seedless-onboarding-controller>@metamask/auth-network-utils",[426380]],["@metamask/bridge-controller",[611828,984497,456980,362158,583952,553780,302550,891683,256561,936798,527357,852563,187554,792280,480810,168431,301651,860040,27062,58677,518197,369972,937967]],["@metamask/bridge-controller>bignumber.js",[239910]],["@metamask/bridge-status-controller",[611400,234664,654166,79874,48213,525152,99836,774844,474760,593729,929847,496332]],["@metamask/bridge-status-controller>bignumber.js",[359445]],["@metamask/bridge-status-controller>@metamask/bridge-controller",[899654,179395,675167,834477,640038,604846,110975,377986,112680,947829,208260]],["@metamask/browser-passworder",[22853]],["@metamask/chain-agnostic-permission",[718737,898123,872129,962817,510647,282741,566406,307110,901930,82237,321023,963237,622674,335518]],["@metamask/claims-controller",[165387,288988,677547,840880,739871]],["@metamask/client-controller",[454735,957800]],["@metamask/connectivity-controller",[628791,440829]],["@metamask/core-backend",[167821,331932,866175,13613,690722,411795,355794,179578,660451,394670]],["@metamask/delegation-controller",[83489,994170,315562]],["@metamask/delegation-core",[476470]],["@metamask/delegation-deployments",[976983]],["@metamask/design-system-react",[292699,438810,585585,753268,420766,58009,416508,593154,900206,649975,7574,775732,360559,490638,855911,358598,547183,380686,418968,949622,253062,52196,763966,416927,542590,663240,213307,389023,368921,783704,46765,914275,533630,661890,536573,883244,19607,159076,260583,499518,295168,235623,984432,556587,3150,976255,384700,387164,71455,21640,388045,872667,563413,895523,94163,466410,643617,3907,163808,750839,781148,435285,713616,754620,417752,924650,389244,667477,658446,514021,994752,987238,892081,872264,814076,832769,538832,219644,175,735410,602242,167476,507463,843400,75603,265523,974027,651055,408673,903999,352014,347699,535467,820281,704789,250043,627631,219981,461386,402885,424101,467904,675828,124608,97882,308910,812487,107780,171584,748789,569975,856953,86564,52501,750980,137834,746443,587143,275586,47052,545413,185689,328622,985367,493978,171943,171212,460525,223402,661218,649816,932556,794711,415298,514581,956550,223941,132989,548472,71247,468007,787087,411862,564741,889145,721960,133948,56380,853835,350492,360993,831461,862585,809059,256840,243788,856762,370827,21139,543965,770265,748120,352572,37384,120924,421397,639792,399593,863226,453155,195154,932869,238930,83585,529685,262276,290332,769193,278813,337641,912724,103834,883546,784568,98570,552359,933001,739079,142077,896469,262117,623593,439605,429441,488501,89725,578669,871331,636800,334001,310512,716698,312465,872092,374223,325797,207341,940982,963688,2099,527773,785453,59632,884294,596976,81363,219627,268838,187929,293917,45635,530968,98392,827690,933887,227774,634065,495253,450185,457291,192018,240382,217259,552932,431905,546997,898448,131652,911469,233062,470606,895802,949397,230874,560851,520767,834629,894439,34393,325499,378281,197680,171994,80593,172083,647781,37150,535148,221560,96616,675872,622021,90221,141519,47339,195864,26108,863144,983356,393480,978755,898523,162047,339949,795470,674742,736257,114366,95614,96812,495219,475262,450109,494067,216062,752035,728478,397197,377213,988033,45804,886008,872206,167429,873487,998557,949853,695759,643359,465092,494409,332579,262818,743083,980580,206732,440311,636438,52243,494002,197926,603346,695376,372718,76216,639284]],["@metamask/design-system-react>@radix-ui/react-slot>@radix-ui/react-compose-refs",[195345]],["@metamask/design-system-react>@radix-ui/react-slot",[45672]],["@metamask/design-system-react>@metamask/design-system-shared",[372328,430872]],["@metamask/design-tokens",[323891,205088,530087,355058,91198,31230,809126,66325,792838,28489,220510,151085,998384,947846,581790,510473,157741,736700,574126,150679,759053,62970,115635,678188]],["@metamask/eip-5792-middleware",[410550,225385,482598,495504,96149,568394,651457,263458,141638]],["@metamask/eip-5792-middleware>@metamask/transaction-controller",[108187]],["@metamask/eip-7702-internal-rpc-middleware",[175025,757925,953449,56229,992389]],["@metamask/ens-controller",[360011]],["@metamask/error-reporting-service",[127438]],["@metamask/network-controller>@metamask/eth-block-tracker",[739822,387677]],["@metamask/eth-hd-keyring",[162635,338538,609806]],["@metamask/eth-hd-keyring>ethereum-cryptography",[504080,552317]],["@metamask/eth-hd-keyring>ethereum-cryptography>@noble/curves",[34823,676257,961956,550191,546058,665091]],["@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes",[752620,75703,772721,836638,692820,317255,847800,813056,859565,892130]],["@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32>@scure/base",[740086]],["@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32",[331431]],["@metamask/eth-json-rpc-filters",[237334,939488,748155,138823,963327,566325,523510,264173,881860]],["@metamask/network-controller>@metamask/eth-json-rpc-infura",[855707,91268,977571,708218,272883]],["@metamask/eth-json-rpc-middleware",[151999,952293,444054,107505,380237,663169,960862,969634,621785,452887,97967,843288,788555,143281,681930,881589,472130,23885,918214,305432,196312]],["@metamask/eth-json-rpc-provider",[448483,527101]],["@metamask/eth-ledger-bridge-keyring",[928760,913163,523532,251038,300895,340835,954338,426037,341895]],["@metamask/eth-ledger-bridge-keyring>@metamask/hw-wallet-sdk",[933420,459020,884834,465011,516452]],["@metamask/eth-qr-keyring",[141373,382541,688448,583011,515534]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography",[634722,832210,369191]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth",[432186,230714]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>@ethereumjs/rlp",[142941]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util",[335976,884251,608665,212044,124050,558442,526110,373807,115782,295248,999530,720089,415014,6992,256e3]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>uuid",[503294,56858,861521,529805,157921,243723,15749,402851,290089,886100,638759,161606,279877,353098,951114]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry",[959351,299e3,843098,927140,706788,970083,948874,922568,400423,680286,421554,757274,842482,520339,683270,338498,256440,942566,854841,624716,224689,191080,542872,192046,493321,215461]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/curves",[549353,259251,847624,558394,418049,796752,595557]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/hashes",[471426,203033,828115,862908,237938,391118,529490,299916]],["@metamask/eth-qr-keyring>uuid",[265794,921378,296632,506884,604827,331095]],["@metamask/controller-utils>@metamask/eth-query",[73853]],["@metamask/eth-sig-util",[104431,118028,101590,641628,944235,4197]],["@metamask/eth-sig-util>ethereum-cryptography",[464077,538563,447490]],["@metamask/eth-sig-util>@ethereumjs/rlp",[151619]],["@metamask/eth-sig-util>@ethereumjs/util",[662978,910497,859107,681598,21148,913132,623056,996165,954672,414658,608160,153227,979020,555530,408650]],["@metamask/eth-sig-util>ethereum-cryptography>@noble/curves",[630828,368368,653027,7829,436222,178151,432880]],["@metamask/eth-sig-util>ethereum-cryptography>@noble/hashes",[101379,121244,461856,37204,662269,272917,702181,657457]],["@metamask/eth-sig-util>@scure/base",[36069]],["@metamask/keyring-controller>@metamask/eth-simple-keyring",[504908,22554]],["@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography",[619246,966123]],["@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography>@noble/hashes",[25798,141063,438806,931440]],["@metamask/eth-snap-keyring",[545373,588266,271701,541646,801293,110439,264305,495830,417654,361804,585011,703552,982271,627473,409662]],["@metamask/eth-snap-keyring>@metamask/keyring-internal-snap-client",[207357,422868]],["@metamask/eth-snap-keyring>uuid",[174777,865793,956289,121712]],["@metamask/eth-token-tracker",[445782,79475,402824]],["@metamask/eth-token-tracker>@metamask/eth-block-tracker",[828425,513960,593723,917596,583681]],["@metamask/eth-trezor-keyring",[162294,404455,461471,479730]],["@metamask/etherscan-link",[945970,949976,617983,201502,921286,258005,20567]],["eth-method-registry>@metamask/ethjs-contract",[212136,820225,24352]],["eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-filter",[902484]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format",[471581]],["eth-method-registry>@metamask/ethjs-query",[434690]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-rpc",[93541]],["@metamask/controller-utils>@metamask/ethjs-unit",[216940]],["eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-util",[222314]],["@metamask/gas-fee-controller",[882816,182771,954133]],["@metamask/gator-permissions-controller",[776116,960652,303122,934263,69672,189004,693763,598096,291732,968847,769248,648760,233989,400348,613248]],["@metamask/gator-permissions-controller>@metamask/delegation-deployments",[232386]],["@metamask/gator-permissions-controller>@metamask/snaps-utils",[550703]],["@metamask/hw-wallet-sdk",[259859,752473,119421,723268,644495]],["@metamask/jazzicon",[863057,129533,253495]],["@metamask/jazzicon>color>color-convert",[574355,240182,79715]],["@metamask/jazzicon>color>color-convert>color-name",[998868]],["@metamask/jazzicon>color",[157424]],["@metamask/snaps-sdk>@metamask/key-tree",[756024,372879,857063,778165,8224,140950,752946,7856,917499,309111,873933,384233,544834,143022,431359,686410,522168,41506,106901,889846,999117]],["@metamask/keyring-api",[401765,46804,697565,432009,619405,117376,828608,799703,235285,951829,131755,828299,169690,371846,69321,119464,894622,50189,703998,100183,91728,722146,967024,419058,361165,963270,264033,12463,872243,529208,383355,883615,341752,679547,882468,466292,482950,728431,267827,999606,547929,50259,295628,867757,138784,404511,237016,254080,647039,397944]],["@metamask/keyring-api>uuid",[754829,739341,559677,674180]],["@metamask/keyring-controller",[951391,455103,473273]],["@metamask/keyring-internal-api",[653853,982102,636304,150163]],["@metamask/keyring-internal-snap-client",[275293,834356]],["@metamask/keyring-snap-client",[605778,726689,635249,217840]],["@metamask/keyring-snap-client>uuid",[706245,476325,917733,762940]],["@metamask/eth-snap-keyring>@metamask/keyring-snap-sdk",[503865,630067,847079,445623]],["@metamask/keyring-utils",[714681,64973,691653,973193,397744,118683,24330]],["@metamask/logging-controller",[828323,128632,810470]],["@metamask/message-manager",[970475,835600,138601,252754]],["@metamask/messenger",[715766]],["@metamask/metamask-eth-abis",[467413,811491,127305,826694,362371]],["@metamask/multichain-account-service",[502266,511218,365882,433599,384714,808814,31144,19877,99458,317647,945903,650463,838867,749434,457195,595157]],["@metamask/multichain-account-service>@metamask/snaps-utils",[380074]],["@metamask/multichain-api-middleware",[266031,861456,198456,257347,272954,480519,525546,63449]],["@metamask/multichain-network-controller",[582621,831981,463304,556967,107063,562635]],["@metamask/multichain-transactions-controller",[920360]],["@metamask/multichain-transactions-controller>@metamask/snaps-utils",[51991]],["@metamask/name-controller",[958303,59701,779286,81985,3642,85623,704110,515761,633054]],["@metamask/network-controller",[152627,505266,791124,530366,548655,421928,195476,925142]],["@metamask/network-enablement-controller",[127002,344182,846445,426502]],["@metamask/transaction-controller>@metamask/nonce-tracker",[148393,482782]],["@metamask/transaction-controller>@metamask/nonce-tracker>async-mutex",[847006,463895,145194,190405,992826,938870]],["@metamask/notification-services-controller",[290320,909993,715294,704444,811607,370543,758198,732203,740577,821269,227408,583791,525514,579426,904324,563650,23140,29544,321221,617496,423210,86747]],["@metamask/notification-services-controller>bignumber.js",[328197]],["@metamask/controller-utils>@metamask/ethjs-unit>@metamask/number-to-bn",[174028]],["@metamask/obs-store",[321335,143987,283760,812264,609550,92050]],["@metamask/obs-store>readable-stream",[570080,268454,275152,85668,600818,223716,831147,175449,681496,561726,442389,445630,366571,114201,688623]],["@metamask/permission-log-controller",[118090,214697]],["@metamask/perps-controller",[593083,647550,918005,501793,454311,949202,153716,187459,752372,49511,983898,914019,28146,708508,221072,585365,387770,673345,789346,303500,86640,656019,178309,904383,291170,365107,580981,169808,704238,148016,987180,52753,969351,459291,333840,765097,472690,623877,118665,520774,674020,587702]],["@metamask/perps-controller>@metamask/abi-utils",[423631,579206,69937,477607,571503,159462,270115,394320,186141,447114,762196,613806,120289,488687,420557,968372,75325,448599,145805,702355]],["@metamask/phishing-controller",[565026,864964,19489,412447,979896,430740]],["@metamask/phishing-controller>ethereum-cryptography",[454716,833958]],["@metamask/phishing-controller>ethereum-cryptography>@noble/hashes",[418887,988640,220025,43061]],["@metamask/polling-controller",[283397,904628,641584]],["@metamask/ppom-validator",[463215,436668,400911,953903]],["@metamask/profile-metrics-controller",[14322,981163]],["@metamask/profile-sync-controller",[695859,886597,988568,606339,806430,239802,226903,37294,851742,485921,612254,152144,419235,405577,54629,590432,638732,219220,666010,460735,420267,247680,109657,528661,907258,127553,681033,981717,730228]],["@metamask/rate-limit-controller",[249276]],["@metamask/remote-feature-flag-controller",[743908,915506,19612,426564,494955,705159]],["@metamask/scure-bip39",[644622,64816]],["@metamask/scure-bip39>@noble/hashes",[814149,313827,771374,546841,815295,314781,270911,626646,795911]],["@metamask/scure-bip39>@scure/base",[907171]],["@metamask/seedless-onboarding-controller",[665852,991020,421472,895354,539998,842103,83498]],["@metamask/selected-network-controller",[31178,849986]],["@metamask/shield-controller",[136207,642484,722991,108940,403885]],["@metamask/shield-controller>@metamask/transaction-controller",[947982]],["@metamask/signature-controller",[334296,977291,911106,379153,706522,511906,556536]],["@metamask/smart-transactions-controller>bignumber.js",[514934]],["@metamask/snaps-controllers",[316272,745182,331931,132360,427240,860210,172750,784361,224623,483577,645154,338904,591936,401145,507004,127884,581107,314380,995438,87226,727705,426598,775221,358006,181997]],["@metamask/snaps-controllers>concat-stream",[155365]],["@metamask/snaps-controllers>@metamask/approval-controller",[741020,491340]],["@metamask/snaps-controllers>readable-stream",[348407,468189,748281,958912,699203,324807,748802,667374,934531,533017,266272,604443,938572,105260,994272]],["@metamask/snaps-utils>@metamask/snaps-registry",[549443,232358]],["@metamask/snaps-utils",[348580,25278,662015,78162,372292,156030,764702,648730,531668,453505,497171,638707,243614,800510,197670,610333,204918,776014,93353,65252,91031,565957,91666,901080,69987,18515,151693,789040,32954,571770,763826,501185,687510,136147,94631,310899,318368,379230,836973,280050,317202,274336,996353]],["@metamask/storage-service",[336313,215237,330084]],["@metamask/subscription-controller",[297727,33752,252119,612417,26964,87719]],["@metamask/subscription-controller>bignumber.js",[835178]],["@metamask/subscription-controller>@metamask/transaction-controller",[684438]],["@metamask/network-controller>@metamask/swappable-obj-proxy",[373174,24929,986188,338441]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup",[317366,902870,287135,271065,302449,38550,520635,429797,834271,487986,974530,629880,379763]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@metamask/auth-network-utils",[761778,962177,487444,404352,877060,706285,16431,93294]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/http-helpers",[963289]],["@metamask/transaction-controller",[400835,419261,435952,705480,683556,677667,173111,170036,126540,458050,21649,107450,767866,37972,652597,907144,817430,526024,404970,271399,253928,226221,58249,694825,553792,285977,447389,158153,431951,766508,768437,51892,227892,42548,720467,941722,759917,703576,307204,466167,917451,933353,280742,812810,346386]],["@metamask/transaction-controller>bignumber.js",[164755]],["@metamask/transaction-pay-controller",[349588,700651,477388,895497,502468,715130,300642,785562,181209,446222,972922,634809,73518,253590,972577,99186,949722,391071,948773,333362,899640,182967,503508,433043,826647,591990,261611,378579,194239,656637,847688]],["@metamask/transaction-pay-controller>bignumber.js",[623280]],["@metamask/transaction-pay-controller>@metamask/bridge-controller",[962767,816379]],["@metamask/user-operation-controller",[889102,63897,340254,198045,208994,767346,867853,571451,213179,535523,565496,869593]],["eth-lattice-keyring>@ethereumjs/util>micro-ftch",[838965]],["react-markdown>remark-parse>mdast-util-from-markdown>micromark",[589623,443920,687383,280482,477506,814850,964139,304530,887111,466095,690255,668110,518885,163539,495141,41888,319591,191736,707806,215891,446625,87959,307314,836690,751730,976382,423195,392141,692620,952635,353790,920743,180632,339368,609064,248610,248470,2967,434214,35710,272274,509095,555918,786295,859531,705784,827253,373680,978537,731245,130899,784848,282709,922206,675491,239071,914064,77522,878816,96068,850622,918409,574560,499936,894780,508306,66243,617086,766052,264519,335805]],["crypto-browserify>diffie-hellman>miller-rabin",[130170]],["@toruslabs/eccrypto>elliptic>minimalistic-assert",[736531]],["@toruslabs/eccrypto>elliptic>minimalistic-crypto-utils",[723529]],["@ensdomains/content-hash>cids>multibase",[492687,772613,461072,618899,450330]],["@ensdomains/content-hash>multicodec>uint8arrays",[2763,422916,261976,583327,577861,721361]],["@ensdomains/content-hash>multicodec",[498295,406147,561332,219467]],["@ensdomains/content-hash>cids>multibase>@multiformats/base-x",[418578]],["@metamask/assets-controllers>multiformats",[776209,51755,569993,781012,396557,512049,16757,994006,792438,754996,210559,512469,319147,824692,36070,962452,896913,940214,141699,749244,594168,83756,284406,607220]],["@ensdomains/content-hash>cids>multihashes>uint8arrays",[994552,127796,63779]],["@ensdomains/content-hash>cids>multihashes>varint",[577774,408898,569266,600280]],["@ensdomains/content-hash>cids>multihashes",[702976,367961]],["nanoid",[641919]],["@ngraveio/bc-ur",[332466,596357,37614,618521,435949,623632,828681,384548,628156,593814,747044,844203]],["@ngraveio/bc-ur>bignumber.js",[777019]],["@metamask/perps-controller>@nktkas/hyperliquid",[720442,561466,223976,211144,237572,663598,600515,88431,698901,291547,466810,325849,546375,499021,714279,300006,384322,425624,861996,890663,376889,995827,92184,372334,159643,306788,357369,565429,137163,997411,533877,172505,586730,274132,916777,513498,235684,346108,928765,907020,112092,793085,859621,736121,941433,446435,450875,651509,712940,321765,70283,830480,675474,838568,499121,70320,793692,900350,507190,817245,471441,500192,389346,908419,946443,565412,14199,456940,712095,941969,13929,64837,39417,696044,652115,397049,965109,248907,30563,813109,581771,499969,934267,674546,51671,842427,816990,933499,859803,820030,341725,790626,114504,994241,139481,707548,430128,876762,54210,489155,716900,386948,655638,2003,626910,259890,418338,127411,492512,745270,218635,444819,440618,442212,448795,835231,773280,735732,403500,356633,165011,879113,95753,14818,537024,935720,594648,307274,20710,369637,919720,756057,720552,86338,439780,642459,930925,259266,605326,827289,589071,849919,282396,815956,279522,236945,501413,316958,475116,51181,902185,321704,387278,554697,380595,865058,441972,283955,495084,212226,425072,69198,357061,51068,818822,884439,148163,647366,303376,924480,157107,4330]],["@metamask/perps-controller>@nktkas/hyperliquid>@noble/hashes",[40182,102019,562191]],["@metamask/perps-controller>@nktkas/hyperliquid>@nktkas/rews",[105022]],["@noble/ciphers",[450443,83374,837428,143124,542566]],["@noble/curves",[622696,335236,568983,632185,259139,748991,99737,339610,340854,785132,405575,887730,121642,864395,304154,106788,819713]],["eth-lattice-keyring>gridplus-sdk>cbor>nofilter",[54178]],["eth-method-registry>@metamask/ethjs-contract>ethjs-abi>number-to-bn",[647114]],["react>object-assign",[5642]],["string.prototype.matchall>es-abstract>object-inspect",[732769]],["@ngraveio/bc-ur>assert>object-is",[309009,366431,51652,413038]],["@lavamoat/webpack>json-stable-stringify>object-keys",[303085,602331,764131]],["gulp>vinyl-fs>object.assign",[564297,313335,22460,893174]],["@open-rpc/meta-schema",[70723]],["@open-rpc/schema-utils-js",[729582,140304,720255]],["@metamask/assets-controller>p-limit",[164835]],["react-syntax-highlighter>refractor>parse-entities",[16166]],["path-browserify",[15201]],["@metamask/snaps-utils>fast-xml-parser>path-expression-matcher",[673740,409702]],["crypto-browserify>pbkdf2",[880106,251266,322409,604750,758230,885864]],["crypto-browserify>pbkdf2>create-hash",[535444,401317]],["crypto-browserify>pbkdf2>ripemd160",[867538]],["crypto-browserify>pbkdf2>ripemd160>hash-base",[848544]],["pify",[265913]],["@metamask/utils>pony-cause",[556517,883659,505534,390264,605336]],["@material-ui/core>popper.js",[326865]],["@popperjs/core",[94114,642232,539164,222965,818656,54029,317986,969314,462447,162525,83766,76788,842014,608745,47672,842493,312183,893020,264369,685211,745425,127120,971441,63351,962876,447497,880834,106592,738138,523224,673703,759288,224425,805751,106674,210919,548725,853693,582831,796001,307308,251926,372930,106953,601842,964681,11371,501428,587034,783912,147836,100304,390452,212861]],["string.prototype.matchall>es-abstract>typed-array-length>possible-typed-array-names",[570436]],["readable-stream-2>process-nextick-args",[260631]],["eth-method-registry>@metamask/ethjs-query>promise-to-callback",[514378]],["prop-types",[76708,107154,760147]],["@google/genai>protobufjs>@protobufjs/aspromise",[593379]],["@google/genai>protobufjs>@protobufjs/base64",[24485]],["@google/genai>protobufjs>@protobufjs/codegen",[683759]],["@google/genai>protobufjs>@protobufjs/eventemitter",[495356]],["@google/genai>protobufjs>@protobufjs/fetch",[899050]],["@google/genai>protobufjs>@protobufjs/float",[398352]],["@google/genai>protobufjs>@protobufjs/inquire",[325855]],["@google/genai>protobufjs>@protobufjs/path",[726641]],["@google/genai>protobufjs>@protobufjs/pool",[85840]],["@google/genai>protobufjs>@protobufjs/utf8",[326621]],["crypto-browserify>public-encrypt",[769794,555320,153024,812148,856321,128263]],["punycode",[730569]],["qrcode-generator",[832534]],["qrcode.react",[326833]],["mockttp>express>qs",[869151,24347,764356,757210,297670]],["@metamask/snaps-controllers>tar-stream>streamx>queue-tick",[424295]],["react-beautiful-dnd>raf-schd",[693579]],["crypto-browserify>randombytes",[401727]],["crypto-browserify>randomfill",[675277]],["react-beautiful-dnd",[974259]],["react-chartjs-2",[888573]],["react-focus-lock>react-clientside-effect",[908911]],["react-compiler-runtime",[982050]],["react-devtools-core",[889630]],["react-dom",[773909,590387]],["react-dom>scheduler",[491861,814224]],["react-popper>react-fast-compare",[877929]],["react-focus-lock",[29948,248174,282740,295952,542707,427060,166971]],["react-idle-timer",[688388]],["react-redux>react-is",[296557,891681]],["react-markdown",[237165,406394,889891,863249]],["react-popper",[768646,146310]],["react-redux",[974352,343062,128379,502449,341222,705859,1213,924758,604928,128641,988572,735739,82975,975861,811930,340591,969860,80282,246250,176774,183645]],["react-router-dom",[230686]],["react-router-dom>react-router",[499953]],["react-simple-file-input",[142665]],["react-tippy",[602898]],["react-tippy>popper.js",[878271]],["react-toggle-button",[629844]],["react-transition-group",[766860,852503,992538,880329,857896,878992,787149]],["react",[476178,437885,469842,647962]],["@metamask/snaps-controllers>readable-web-to-node-stream",[857280]],["@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",[998121,795507,366751,701121,716917,680289,416392,869900,861245,477659,510158,768225,982158,780350,600190]],["remote-redux-devtools>redux-devtools-core",[972710,792089,349902]],["remote-redux-devtools>redux-devtools-core>nanoid",[896683]],["remote-redux-devtools>redux-devtools-instrument",[917813]],["redux-thunk",[654015]],["redux",[201934]],["@reduxjs/toolkit",[352082]],["@reduxjs/toolkit>reselect",[501220,833583]],["string.prototype.matchall>regexp.prototype.flags",[708049,692383,836996,500718]],["react-markdown>remark-parse",[867773]],["react-markdown>remark-rehype",[421871]],["react-router-dom>@remix-run/router",[292862]],["remote-redux-devtools",[306954,600282,745653,798775]],["remote-redux-devtools>redux-devtools-core>remotedev-serialize",[89643,612109,843122]],["remove-trailing-slash",[657410]],["reselect",[990418]],["@metamask/snaps-utils>rfdc",[399986]],["@material-ui/pickers>rifm",[307011]],["ethereumjs-util>create-hash>ripemd160",[205281]],["ethereumjs-util>create-hash>ripemd160>hash-base",[627605]],["ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",[483260,952762,73596,387912,780486,461400,827839,10557,534148,21850,743185,982322,159407,985013,418171]],["@rive-app/react-canvas",[134351]],["ethereumjs-util>rlp",[418898]],["remote-redux-devtools>rn-host-detect",[645592]],["wait-on>rxjs",[666753,806613,39902,542802,359893,977998,770394,987314,664377,242603,757528,982817,741158,472257,111931,40171,459455,753242]],["string.prototype.matchall>es-abstract>safe-regex-test",[623899]],["@metamask/eth-json-rpc-middleware>safe-stable-stringify",[968886,763998]],["remote-redux-devtools>socketcluster-client>sc-channel",[391571]],["remote-redux-devtools>socketcluster-client>sc-channel>component-emitter",[71113]],["remote-redux-devtools>socketcluster-client>sc-errors",[821204,10527]],["remote-redux-devtools>socketcluster-client>sc-formatter",[599958]],["ethers>@ethersproject/json-wallets>scrypt-js",[206445]],["@scure/base",[48286,721161]],["ganache>secp256k1",[755203,562235,314893]],["@segment/loosely-validate-event",[938352]],["semver",[769462,566265,777362,838076,884457,746948,138131,794529,989442,539466,186171,460026,608691,239053,712589,650702,867356,50608,60793,693814,871095,868847,373652,285835,114924,748469,468763,585971,140568,151342,841673,522968,697961,468532,351341,332190,748404,268318,502940,170687,664845,79427,366562,905233,377232]],["string.prototype.matchall>call-bind>set-function-length",[926319]],["string.prototype.matchall>set-function-name",[182920]],["eth-method-registry>@metamask/ethjs-query>promise-to-callback>set-immediate-shim",[377701]],["@ngraveio/bc-ur>sha.js",[439358,147956,372831,697428,381601,550677,165796,357122]],["string.prototype.matchall>side-channel>side-channel-list",[59973]],["string.prototype.matchall>side-channel>side-channel-map",[265749]],["string.prototype.matchall>side-channel>side-channel-weakmap",[673601]],["string.prototype.matchall>side-channel",[418]],["@metamask/assets-controllers>single-call-balance-checker-abi",[535494]],["@metamask/profile-sync-controller>siwe",[750021,39785,635186,990489,270549]],["@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser",[532311,507942,689243]],["remote-redux-devtools>socketcluster-client",[360436,187996,724910,724553,433182,533823,401461]],["remote-redux-devtools>socketcluster-client>buffer",[557830]],["remote-redux-devtools>socketcluster-client>clone",[152216]],["remote-redux-devtools>socketcluster-client>component-emitter",[527780]],["remote-redux-devtools>socketcluster-client>querystring",[207647,532472,175429]],["remote-redux-devtools>socketcluster-client>uuid",[284583,5830,569787,489478,617961]],["@solana/addresses",[694259]],["@solana/addresses>@solana/codecs-core",[799547]],["@solana/addresses>@solana/codecs-strings",[621602]],["@solana/addresses>@solana/errors",[3709]],["react-markdown>space-separated-tokens",[369942]],["@metamask/controller-utils>@spruceid/siwe-parser",[124283,595226,698223]],["@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary",[138170]],["@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary>@stablelib/int",[478758]],["@metamask/profile-sync-controller>siwe>@stablelib/random",[360146,843211,352999,972910]],["@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/wipe",[369930]],["string.prototype.matchall>es-abstract>stop-iteration-iterator",[868250]],["stream-browserify",[981024]],["stream-browserify>readable-stream",[275765,189207,6043,625381,833081,466901,817468,371920,372489,564615,142458,185045,113090,36810]],["stream-http",[751062,52838,436227,278391]],["stream-http>readable-stream",[979343,405797,889601,556107,363595,788527,954762,736550,590731,673233,682648,208179,296980,193300,400408]],["@metamask/snaps-controllers>tar-stream>streamx",[988153]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix",[114571]],["@metamask/snaps-utils>fast-xml-parser>strnum",[114810]],["react-markdown>style-to-object",[736498]],["@swc/helpers",[942796,606260,757232,894267,213081,908687,697641,169392,698724,823092,521623,158321,161903,890957,954441,598293,394696,327221,992959]],["mockttp>@httptoolkit/subscriptions-transport-ws>symbol-observable",[331224,175419]],["@metamask/design-system-react>tailwind-merge",[456838]],["@metamask/core-backend>@tanstack/query-core",[332212,910881,738552,438652,712999,943117,141161,931992,12667,794574,192094,303390,346640,950957,458246]],["@tanstack/react-query",[770054,432721,263775,310807,858944,11918,795643,835243,39092,724511]],["@tanstack/react-query>@tanstack/query-core",[326195,411020,384180,540618,748175,197907,107110,561120,713380,105159,26452,398138,3497,82913,186153,422665]],["@tanstack/react-virtual",[562254]],["@tanstack/react-virtual>@tanstack/virtual-core",[948942,442591]],["@metamask/snaps-controllers>tar-stream",[208908,23048,120347,313877,337060]],["react-beautiful-dnd>css-box-model>tiny-invariant",[172635]],["@ngraveio/bc-ur>sha.js>to-buffer",[140907]],["base32-encode>to-data-view",[40597]],["copy-to-clipboard>toggle-selection",[890832]],["@metamask/seedless-onboarding-controller>@metamask/auth-network-utils>@toruslabs/constants",[615257]],["@toruslabs/eccrypto",[453802]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details",[593]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/http-helpers",[331645]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/fnd-base",[887185,816644,664737,451318]],["@trezor/connect-web>@trezor/connect-common",[30473,332184,30020,310356]],["@metamask/eth-trezor-keyring>@trezor/connect-plugin-ethereum",[937187]],["@trezor/connect-web",[433631,628704,227273,963871,467120,472209,598407,57528,797070,960547,286953,529411]],["@trezor/connect-web>@trezor/connect",[659325,664292,528906,10347,110055,30233,254003,30338,25565,986727,545315,74682,530270,354473,902963,449376,431009,40835,111527,880921,910282,164641,384017,963589,258864,497790,146551,976669,560652,27301,271897,932550,757456,531976,355571,440473,775718,660726,21790,132837,126322,362298,646203,715665,18286,182624,583133,214233]],["@trezor/connect-web>@trezor/connect>@trezor/device-utils",[952639,947164,498101,84337,786319,18495,258630]],["@trezor/connect-web>@trezor/connect-common>@trezor/env-utils",[216686,735348,322792]],["@trezor/connect-web>@trezor/connect>@trezor/protobuf",[442702,888098,803154,985935,270318,576288,165235]],["@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs",[828274,893791,655379,939451,39074,515879,201490,200229,589769,957016,178734,962208,812728,995034,848093,592252,930827,909438,106764,407304,399276,702635,277854,581511,659324,261463,281805,924939,285209,254008]],["@trezor/connect-web>@trezor/connect>@trezor/schema-utils",[795052,258064,132272,282638,79362,33539,813502,164623]],["@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",[811346,913821,300157,562377,225879,895681,446158,243069,268099,951445,179396,63637,731906,34237,789402,698045,589864,413161,21293,934916,326658,781169,691965,53358,502013,149542,190021,13108,791321,318829,57819,59379,443911,635223,192031,772029,841953,331185,376919,586261,703530,212305,479755,281308,910111,980121,256895,539636,680018,119584,968208,51037,94132,264472,123227,126645,24748,688359,352803,996972,358468,59226,987993,217389,560464,9052,539006,8940,868840,380265,797719,95273,765411,658877,864772,234094,540901,85398,597093,599550,641150,714434,283597,660495,576565,9142,970421,337611,482411,676400,936054,235308,939309,353730,981981,3340,772151,593519,949153,194431,52169,11576,469797,744814,980605,460018,213493,230308,217921,944942,89010,851904,739389,929187,521894,255723,456075,185683,254700,527724,224105,525220,114893,82174,127938,481808,306765,322236,766657,896412,946805,418741,391906,231783,981074,719949,134537,329841,415808,211485,222590,548669,878509,688504,902934,244662,893696,874045,584217,559831,558624,950625,847089,350216,209177,568318,651590,710709,892115,474358,507261,858158,261261,600851,997331,891164,377101,630076,949412,28091,8676,618573,867032,626555,805364,208137,959525,460419,350057,171211,560912,554621,943727,400242,728301,829797,140453,373682,744246,498061,342382,781453,893059,862725,149757,996295,756849,932171,781320,250356,777584,650584,759992,61641,538566,792732]],["@trezor/connect-web>@trezor/connect>@trezor/transport",[583943]],["@trezor/connect-web>@trezor/utils",[396587,598631,209393,108282,505258,80084,7813,87037,854899,139628,409254,939108,604685,118319,449288,34841,678672,59091,258874,586524,456266,577488,54835,633970,798424,986662,945624,793852,215614,807368,83571,320516,904458,268129,778826,267223,696707,790447,803696,896340,483647,224167,471025,703195,589944,23853,929365,661650,514255,870012,530760,231200,63578,325297,104924,412481,405217,43361,744465,626613]],["@trezor/connect-web>@trezor/utils>bignumber.js",[970597]],["@trezor/connect-web>@trezor/connect>@trezor/blockchain-link>@trezor/websocket-client",[20025,675264,84677]],["react-markdown>unified>trough",[620698]],["@zxing/library>ts-custom-error",[532462]],["ts-mixer",[400175]],["tslib",[474241]],["tweetnacl",[136945]],["string.prototype.matchall>es-abstract>typed-array-buffer",[525062]],["browserify>concat-stream>typedarray",[442690]],["@trezor/connect-web>@trezor/connect-common>@trezor/env-utils>ua-parser-js",[385643]],["@metamask/keyring-controller>ulid",[704097,685400]],["react-markdown>unified",[796875]],["react-markdown>unified>is-buffer",[922024]],["react-markdown>remark-rehype>mdast-util-to-hast>unist-builder",[452986]],["react-markdown>remark-rehype>mdast-util-to-hast>unist-util-generated",[734223]],["react-markdown>unist-util-visit>unist-util-is",[497425]],["react-markdown>remark-rehype>mdast-util-to-hast>unist-util-position",[327709]],["react-markdown>vfile>unist-util-stringify-position",[333253]],["react-markdown>unist-util-visit>unist-util-visit-parents",[911276,838397]],["react-markdown>unist-util-visit",[2073]],["uri-js",[874393]],["browserify>url>punycode",[262092]],["browserify>url",[842589]],["react-focus-lock>use-callback-ref",[1062,673282,223902]],["react-beautiful-dnd>use-memo-one",[428375]],["react-focus-lock>use-sidecar",[481175]],["@tanstack/react-query>use-sync-external-store",[627203,423222]],["@metamask/keyring-controller>ethereumjs-wallet>utf8",[442961]],["browserify>util",[185329,591506,62080]],["@metamask/perps-controller>@nktkas/hyperliquid>valibot",[763557]],["@metamask/controller-utils>@spruceid/siwe-parser>valid-url",[488411]],["@metamask/snaps-utils>validate-npm-package-name",[921340]],["sass-embedded>varint",[727651,448927,937537,135289]],["react-markdown>vfile>vfile-message",[242071]],["react-markdown>vfile",[292094,777049]],["react-markdown>vfile>is-buffer",[699762]],["react-markdown>vfile>replace-ext",[890205]],["viem",[669585,91050,591923,534856,433682,438336,376871,215717,967433,754372,609182,504471,896342,597408,897844,378737,958693,302733,827923,579399,921123,326041,879704,633735,346720,942170,233317,161984,463861,472004,810208,796448,13095,305597,436391,404681,311622,119088,141846,413893,277129,657706,563658,724369,844953,735705,460611,626410,959551,893141,254798,713432,623141]],["@ensdomains/content-hash>multihashes>web-encoding",[930273]],["@open-rpc/test-coverage>isomorphic-fetch>whatwg-fetch",[90114]],["@metamask/eth-token-tracker>deep-equal>which-boxed-primitive",[366393]],["@metamask/eth-token-tracker>deep-equal>which-collection",[827119]],["browserify>util>which-typed-array",[514645]],["@metamask/snaps-controllers>@xstate/fsm",[221418]],["watchify>xtend",[49336]],["@metamask/assets-controller>p-limit>yocto-queue",[940735]],["openai>zod",[563148,330016,869223,129082,406406,396958,620356,433098,600897,685132,750139,114009,605598,805569,598768,471694,219582,587635,736011,570305,818868,559620,132026,375635,639975,169487,641801,214663,167340,773798,259479,362611,491407,357048,992012,636609,74297,364649,503800,248247,352807,463499,620973,352950,694184,774397,921149,898980,703875,905936,626362,91444,851596,332900,663902,775227,31324,882928,487229,407016,751721,476975,52249,942471,320216,69162,983606,488532,439715,956843,570217,843340,93494,29074]],["@zxing/browser",[282274,163919,45290,16786,344159,785594,732276,244596,292384,254e3,621403,219770]],["@zxing/library",[722511,977799,793620,919501,885205,694931,872095,899003,746722,375879,61138,280865,643788,3919,610506,883095,755575,561961,938918,667234,95352,51517,89899,494149,930708,811725,607174,584860,98456,966429,957970,532433,433294,808363,374361,787625,680881,510320,636504,983380,974137,360173,164077,385017,188652,743050,634620,473350,559154,329415,530716,302292,34924,25802,545003,639569,34788,271837,922243,564237,681629,410947,371350,560364,737712,225108,30560,2452,571299,209783,544081,856489,342025,141509,839668,253689,564533,464443,50942,93754,223613,390665,93913,311037,84816,732628,981804,535890,712007,738532,328685,886394,31896,996729,10174,633116,181367,302970,576237,71431,729405,300808,622331,812467,543087,745054,214886,568229,677155,438732,481919,784253,54875,174610,902756,839119,133954,460385,953702,685488,391154,630647,309601,818023,470108,398712,69962,972488,348789,9453,654605,57156,522435,328572,801523,615354,650762,723902,342664,877404,516377,217052,663431,999821,627364,663944,68462,669975,58461,521979,57476,66810,851534,246170,598918,117125,575535,418298,277501,668562,122424,585258,605496,692460,538855,53985,939666,464983,160935,139010,47490,946335,607301,196311,988445,392509,492679,737660,206880,987892,347875,69010,689098,107105,109561,514621,112045,752246,548548,616967,427067,51294,955925,513762,510248,636978,870543,131492,18076,508592,495494,81217,794876,957322,70660,561085,346581]]],e.unenforceable=[639266,667544,201783,902731,201783,902731,950514,20168,68724,440830,639266,667544,343966,685066,792981,623661,762634,638581,980564,245672,337994,490513,901409,383972,531854,744643,400495,588776,733258,715050,960548,950514,20168,619200,74754,794832,236305,639266,667544,201783,902731,439181,371173,121455,446179,492752,705444,343966,685066,792981,623661,762634,638581,980564,245672,337994,490513,901409,383972,531854,744643,400495,588776,733258,715050,950514,20168,68724,440830,960548,639266,667544,343966,685066,792981,623661,762634,638581,980564,245672,337994,490513,901409,383972,531854,744643,400495,588776,733258,715050,950514,20168,68724,440830,960548,639266,667544,343966,685066,792981,623661,762634,638581,980564,245672,337994,490513,901409,383972,531854,744643,400495,588776,733258,715050,950514,20168,68724,440830,960548,639266,667544,343966,685066,792981,623661,762634,638581,980564,245672,337994,490513,901409,383972,531854,744643,400495,588776,733258,715050,950514,20168,68724,440830,960548,639266,667544,343966,685066,792981,623661,762634,638581,980564,245672,337994,490513,901409,383972,531854,744643,400495,588776,733258,715050,950514,20168,68724,440830,960548,639266,667544,343966,685066,792981,623661,762634,638581,980564,245672,337994,490513,901409,383972,531854,744643,400495,588776,733258,715050,960548,950514,20168,619200,74754,794832,236305,639266,667544,201783,902731,439181,371173,121455,446179,492752,705444,833028],e.ctxm=[],e.kch=[2669,7091,7145,6471,7962,4549,3602,2118,887,5796,4377,7547,6209,7480,2776,9121,3411,3028,7408,3560,682,9962,528,5059,9738,9932,929,2977,5079,8130,6898,5396,2336,9976,2434,1602,9755,9421,5882,3076,3962,2610,1127,7367,5952,7179,6291,4587,507,899,2604,6915,614,2027,6325,6660,6026,9278,4651,7675,9553],e.externals={},e.options={scuttleGlobalThis:{enabled:!0,exceptions:["browser","chrome","btoa","webpackChunk"]},lockdown:{consoleTaming:"unsafe",errorTaming:"unsafe",stackFiltering:"verbose",overrideTaming:"severe",localeTaming:"unsafe",errorTrapping:"none",reporting:"none"}},(()=>{let t={exports:{}};t.exports;let{Object:r,Array:a,Error:n,RegExp:s,Set:o,console:i,Proxy:l,Reflect:c}=globalThis,{assign:u,getOwnPropertyNames:m,getOwnPropertyDescriptor:h,create:d,defineProperty:f}=r,p=function(e,t){return r.getOwnPropertyNames(e).filter(r=>e[r]===t[r]).concat(["Compartment","Error","globalThis"])}(new Compartment().globalThis,globalThis),{isArray:g,from:b}=a,{getPrototypeOf:y}=c,{warn:k}=i;function w(e){return{get:r,set:t};function t(){k(`LavaMoat - property "${e}" of globalThis cannot be set under scuttling mode. To learn more visit https://github.com/LavaMoat/LavaMoat/pull/360.`)}function r(){throw new n(`LavaMoat - property "${e}" of globalThis is inaccessible under scuttling mode. To learn more visit https://github.com/LavaMoat/LavaMoat/pull/360.`)}}function v(e,t=d(null)){let r={enabled:!0,exceptions:[],scuttlerName:""},a=u(d(null),!0===t?r:t,{scuttlerFunc:(e,t)=>t(e)},{exceptions:(t?.exceptions||r.exceptions).map(e=>o(e))});if(a.scuttlerName){if(!e[a.scuttlerName])throw new n(`LavaMoat - 'scuttlerName' function "${a.scuttlerName}" expected on globalRef.To learn more visit https://github.com/LavaMoat/LavaMoat/pull/462.`);a.scuttlerFunc=e[a.scuttlerName]}return a;function o(e){if(!e.startsWith("/"))return e;let t=e.split("/");return new s(t.slice(1,-1).join("/"),t[t.length-1])}}function _(e,t=[]){let r=[];S(e).forEach(e=>r.push(...m(e)));let a=new o([...p,...t]),n=d(null);r.forEach(t=>{let{get:r,set:s}=w(t);if(j(a,t))return;let o=h(e,t);if(o?.configurable===!0)o={configurable:!1,set:s,get:r};else{if(o?.writable!==!0)return;o={configurable:!1,writable:!1,value:new l(n,{getPrototypeOf:r,get:r,set:s})}}f(e,t,o)})}let j=(e,t)=>b(e).some(e=>"string"==typeof e&&e===t||e instanceof s&&e.test(t));function S(e){let t=[],r=e;for(;r&&("object"==typeof r||"function"==typeof r);)t.push(r),r=y(r);return t}t.exports={scuttle:function(e,t){let r=v(e,t);if(r.enabled){if(!g(r.exceptions))throw new n(`LavaMoat - exceptions must be an array, got ${typeof r.exceptions}`);r.scuttlerFunc(e,e=>_(e,r.exceptions))}}},e.scuttling=t.exports})(),e.policy={resources:{"@babel/runtime":{globals:{regeneratorRuntime:"write"}},"@metamask/notification-services-controller>@contentful/rich-text-html-renderer":{globals:{SuppressedError:!0}},"@date-io/luxon":{packages:{luxon:!0}},"@ensdomains/content-hash":{globals:{"Buffer.from":!0,"console.warn":!0},packages:{"@ensdomains/content-hash>multihashes>buffer":!0,"@ensdomains/content-hash>cids":!0,"@ensdomains/content-hash>js-base64":!0,"@ensdomains/content-hash>multicodec":!0,"@ensdomains/content-hash>multihashes":!0}},"@ethereumjs/tx>@ethereumjs/common":{packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"webpack>events":!0}},"@ethereumjs/tx>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"eth-lattice-keyring>@ethereumjs/util>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"@metamask/eth-sig-util>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"@ethereumjs/tx":{packages:{"@ethereumjs/tx>@ethereumjs/common":!0,"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@ethereumjs/tx>ethereum-cryptography":!0}},"@ethereumjs/tx>@ethereumjs/util":{globals:{"console.warn":!0,fetch:!0},packages:{"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves":!0,"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography":!0,"webpack>events":!0,"@ethereumjs/tx>ethereum-cryptography>@noble/curves":!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util":{globals:{"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Buffer.byteLength":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,"console.warn":!0},packages:{"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>@ethereumjs/rlp":!0,buffer:!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography":!0,"webpack>events":!0,"eth-lattice-keyring>@ethereumjs/util>micro-ftch":!0}},"@metamask/eth-sig-util>@ethereumjs/util":{globals:{"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Buffer.byteLength":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,"console.warn":!0},packages:{"@metamask/eth-sig-util>@ethereumjs/rlp":!0,buffer:!0,"@metamask/eth-sig-util>ethereum-cryptography":!0,"webpack>events":!0,"eth-lattice-keyring>@ethereumjs/util>micro-ftch":!0}},"eth-lattice-keyring>@ethereumjs/util":{globals:{"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Buffer.byteLength":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,"console.warn":!0},packages:{"eth-lattice-keyring>@ethereumjs/util>@ethereumjs/rlp":!0,buffer:!0,"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography":!0,"webpack>events":!0,"eth-lattice-keyring>@ethereumjs/util>micro-ftch":!0}},"@ethersproject/abi":{globals:{"console.log":!0},packages:{"ethers>@ethersproject/address":!0,"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/strings":!0}},"ethers>@ethersproject/abstract-provider":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0}},"ethers>@ethersproject/abstract-signer":{packages:{"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0}},"ethers>@ethersproject/address":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/rlp":!0}},"ethers>@ethersproject/base64":{globals:{atob:!0,btoa:!0},packages:{"@ethersproject/bytes":!0}},"ethers>@ethersproject/basex":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/properties":!0}},"@ethersproject/bignumber":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0,"ethereumjs-util>bn.js":!0}},"@ethersproject/bytes":{packages:{"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/constants":{packages:{"@ethersproject/bignumber":!0}},"@ethersproject/contracts":{globals:{setTimeout:!0},packages:{"@ethersproject/abi":!0,"ethers>@ethersproject/abstract-provider":!0,"ethers>@ethersproject/abstract-signer":!0,"ethers>@ethersproject/address":!0,"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"@ethersproject/transactions":!0}},"ethers>@ethersproject/hash":{packages:{"ethers>@ethersproject/address":!0,"ethers>@ethersproject/base64":!0,"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/strings":!0}},"@ethersproject/hdnode":{packages:{"ethers>@ethersproject/basex":!0,"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/pbkdf2":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/sha2":!0,"ethers>@ethersproject/signing-key":!0,"ethers>@ethersproject/strings":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/wordlists":!0}},"ethers>@ethersproject/json-wallets":{packages:{"ethers>@ethersproject/address":!0,"@ethersproject/bytes":!0,"@ethersproject/hdnode":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/pbkdf2":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/random":!0,"ethers>@ethersproject/strings":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/json-wallets>aes-js":!0,"ethers>@ethersproject/json-wallets>scrypt-js":!0}},"ethers>@ethersproject/keccak256":{packages:{"@ethersproject/bytes":!0,"eth-ens-namehash>js-sha3":!0}},"ethers>@ethersproject/logger":{globals:{console:!0}},"ethers>@ethersproject/networks":{packages:{"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/pbkdf2":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/sha2":!0}},"ethers>@ethersproject/properties":{packages:{"ethers>@ethersproject/logger":!0}},"@ethersproject/providers":{globals:{WebSocket:!0,clearInterval:!0,clearTimeout:!0,"console.log":!0,"console.warn":!0,setInterval:!0,setTimeout:!0},packages:{"ethers>@ethersproject/abstract-provider":!0,"ethers>@ethersproject/abstract-signer":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/base64":!0,"ethers>@ethersproject/basex":!0,"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/networks":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/random":!0,"ethers>@ethersproject/sha2":!0,"ethers>@ethersproject/strings":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/web":!0,"@ethersproject/providers>bech32":!0}},"ethers>@ethersproject/random":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0},globals:{"crypto.getRandomValues":!0}},"ethers>@ethersproject/rlp":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/sha2":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/sha2>hash.js":!0}},"ethers>@ethersproject/signing-key":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/sha2>hash.js":!0}},"ethers>@ethersproject/solidity":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/sha2":!0,"ethers>@ethersproject/strings":!0}},"ethers>@ethersproject/strings":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/logger":!0}},"@ethersproject/transactions":{packages:{"ethers>@ethersproject/address":!0,"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/rlp":!0,"ethers>@ethersproject/signing-key":!0}},"ethers>@ethersproject/units":{packages:{"@ethersproject/bignumber":!0,"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/wallet":{packages:{"ethers>@ethersproject/abstract-provider":!0,"ethers>@ethersproject/abstract-signer":!0,"ethers>@ethersproject/address":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/hash":!0,"@ethersproject/hdnode":!0,"ethers>@ethersproject/json-wallets":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/random":!0,"ethers>@ethersproject/signing-key":!0,"@ethersproject/transactions":!0}},"ethers>@ethersproject/web":{globals:{clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"ethers>@ethersproject/base64":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/strings":!0}},"ethers>@ethersproject/wordlists":{packages:{"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0}},"@metamask/notification-services-controller>firebase>@firebase/app":{globals:{FinalizationRegistry:!0,"console.warn":!0},packages:{"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component":!0,"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/logger":!0,"@metamask/notification-services-controller>firebase>@firebase/util":!0,"@metamask/notification-services-controller>firebase>@firebase/app>idb":!0}},"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component":{packages:{"@metamask/notification-services-controller>firebase>@firebase/util":!0}},"@metamask/notification-services-controller>firebase>@firebase/installations":{globals:{BroadcastChannel:!0,Headers:!0,btoa:!0,"console.error":!0,crypto:!0,fetch:!0,msCrypto:!0,"navigator.onLine":!0,setTimeout:!0},packages:{"@metamask/notification-services-controller>firebase>@firebase/app":!0,"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component":!0,"@metamask/notification-services-controller>firebase>@firebase/util":!0,"@metamask/notification-services-controller>firebase>@firebase/app>idb":!0}},"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/logger":{globals:{console:!0}},"@metamask/notification-services-controller>firebase>@firebase/messaging":{globals:{Headers:!0,"Notification.maxActions":!0,"Notification.permission":!0,"Notification.requestPermission":!0,"PushSubscription.prototype.hasOwnProperty":!0,ServiceWorkerRegistration:!0,URL:!0,addEventListener:!0,atob:!0,btoa:!0,clearTimeout:!0,"clients.matchAll":!0,"clients.openWindow":!0,"console.warn":!0,document:!0,fetch:!0,indexedDB:!0,"location.href":!0,"location.origin":!0,navigator:!0,"origin.replace":!0,"registration.showNotification":!0,setTimeout:!0},packages:{"@metamask/notification-services-controller>firebase>@firebase/app":!0,"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component":!0,"@metamask/notification-services-controller>firebase>@firebase/installations":!0,"@metamask/notification-services-controller>firebase>@firebase/util":!0,"@metamask/notification-services-controller>firebase>@firebase/app>idb":!0}},"@metamask/notification-services-controller>firebase>@firebase/util":{globals:{WorkerGlobalScope:!0,atob:!0,browser:!0,btoa:!0,chrome:!0,console:!0,document:!0,indexedDB:!0,navigator:!0,process:!0,setTimeout:!0},packages:{process:!0}},"@open-rpc/schema-utils-js>@json-schema-tools/dereferencer":{packages:{"@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver":!0,"@open-rpc/schema-utils-js>@json-schema-tools/dereferencer>@json-schema-tools/traverse":!0,"@metamask/rpc-errors>fast-safe-stringify":!0}},"@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver":{packages:{"@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver>@json-schema-spec/json-pointer":!0,"@open-rpc/test-coverage>isomorphic-fetch":!0}},"@keystonehq/bc-ur-registry-eth":{globals:{"Buffer.from":!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry":!0,buffer:!0,"@metamask/eth-qr-keyring>hdkey":!0,uuid:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth":{globals:{"Buffer.from":!0},packages:{"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry":!0,buffer:!0,"@metamask/eth-qr-keyring>hdkey":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>uuid":!0}},"@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry":{globals:{Buffer:!0,define:!0},packages:{"@ngraveio/bc-ur":!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,buffer:!0,tslib:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry":{globals:{Buffer:!0,define:!0},packages:{"@ngraveio/bc-ur":!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,buffer:!0,tslib:!0}},"@lavamoat/lavadome-react":{globals:{"console.warn":!0,document:!0,navigation:!0,Array:!0,Clipboard:!0,Document:!0,DocumentFragment:!0,Element:!0,Event:!0,EventTarget:!0,Function:!0,JSON:!0,NavigateEvent:!0,NavigationDestination:!0,Node:!0,Number:!0,Object:!0,String:!0,Weakmap:!0},packages:{react:!0}},"@ledgerhq/hw-app-eth>@ledgerhq/domain-service":{packages:{"@ledgerhq/hw-app-eth>@ledgerhq/logs":!0,axios:!0}},"@ledgerhq/errors":{globals:{"console.warn":!0},packages:{"@swc/helpers":!0}},"@ledgerhq/hw-app-eth>@ledgerhq/evm-tools":{packages:{"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/hash":!0,"@ledgerhq/hw-app-eth>@ledgerhq/cryptoassets-evm-signatures":!0,"@ledgerhq/hw-app-eth>@ledgerhq/evm-tools>@ledgerhq/live-env":!0,axios:!0,"@metamask/ppom-validator>crypto-js":!0}},"@ledgerhq/hw-app-eth":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,"console.warn":!0},packages:{"@ethersproject/abi":!0,"ethers>@ethersproject/rlp":!0,"@ethersproject/transactions":!0,"@ledgerhq/hw-app-eth>@ledgerhq/cryptoassets-evm-signatures":!0,"@ledgerhq/hw-app-eth>@ledgerhq/domain-service":!0,"@ledgerhq/errors":!0,"@ledgerhq/hw-app-eth>@ledgerhq/evm-tools":!0,"@ledgerhq/hw-app-eth>@ledgerhq/logs":!0,axios:!0,"@ledgerhq/hw-app-eth>bignumber.js":!0,buffer:!0,semver:!0}},"@ledgerhq/hw-transport":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,clearTimeout:!0,"console.warn":!0,setTimeout:!0},packages:{"@ledgerhq/errors":!0,"@ledgerhq/hw-app-eth>@ledgerhq/logs":!0,"@swc/helpers":!0,buffer:!0,"webpack>events":!0}},"@ledgerhq/hw-app-eth>@ledgerhq/evm-tools>@ledgerhq/live-env":{globals:{"console.warn":!0},packages:{"wait-on>rxjs":!0}},"@ledgerhq/hw-app-eth>@ledgerhq/logs":{globals:{__ledgerLogsListen:"write","console.error":!0},packages:{"@swc/helpers":!0}},"@material-ui/core":{globals:{addEventListener:!0,clearInterval:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,document:!0,getComputedStyle:!0,getSelection:!0,"performance.now":!0,removeEventListener:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"@material-ui/core>@material-ui/styles":!0,"@material-ui/core>@material-ui/system":!0,"@material-ui/core>@material-ui/utils":!0,"@material-ui/core>clsx":!0,"@material-ui/core>popper.js":!0,"prop-types":!0,react:!0,"react-dom":!0,"react-redux>react-is":!0,"react-transition-group":!0}},"@material-ui/pickers":{globals:{addEventListener:!0,innerHeight:!0,orientation:!0,removeEventListener:!0,screen:!0},packages:{"@babel/runtime":!0,"@material-ui/core":!0,"@material-ui/pickers>clsx":!0,"prop-types":!0,react:!0,"react-transition-group":!0,"@material-ui/pickers>rifm":!0}},"@material-ui/core>@material-ui/styles":{globals:{"console.error":!0,"console.warn":!0,"document.createComment":!0,"document.head":!0},packages:{"@babel/runtime":!0,"@material-ui/core>@material-ui/utils":!0,"react-redux>hoist-non-react-statics":!0,"@material-ui/core>@material-ui/styles>jss-plugin-camel-case":!0,"@material-ui/core>@material-ui/styles>jss-plugin-default-unit":!0,"@material-ui/core>@material-ui/styles>jss-plugin-global":!0,"@material-ui/core>@material-ui/styles>jss-plugin-nested":!0,"@material-ui/core>@material-ui/styles>jss-plugin-props-sort":!0,"@material-ui/core>@material-ui/styles>jss-plugin-rule-value-function":!0,"@material-ui/core>@material-ui/styles>jss-plugin-vendor-prefixer":!0,"@material-ui/core>@material-ui/styles>jss":!0,"prop-types":!0,react:!0}},"@material-ui/core>@material-ui/system":{globals:{"console.error":!0},packages:{"@babel/runtime":!0,"@material-ui/core>@material-ui/utils":!0,"prop-types":!0}},"@material-ui/core>@material-ui/utils":{packages:{"@babel/runtime":!0}},"@metamask/abi-utils":{packages:{"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/assets-controllers>@metamask/abi-utils":{packages:{"@metamask/superstruct":!0,"@metamask/assets-controllers>@metamask/abi-utils>@metamask/utils":!0}},"@metamask/perps-controller>@metamask/abi-utils":{packages:{"@metamask/superstruct":!0,"@metamask/perps-controller>@metamask/abi-utils>@metamask/utils":!0}},"@metamask/account-api":{packages:{"@metamask/keyring-utils":!0}},"@metamask/account-tree-controller":{globals:{"console.warn":!0,setTimeout:!0},packages:{"@metamask/account-api":!0,"@metamask/accounts-controller":!0,"@metamask/base-controller":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller":!0,"@metamask/profile-sync-controller":!0,"@metamask/account-tree-controller>@metamask/snaps-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"eslint>fast-deep-equal":!0}},"@metamask/accounts-controller":{globals:{"console.warn":!0},packages:{"@metamask/base-controller":!0,"@metamask/eth-snap-keyring":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@metamask/accounts-controller>ethereum-cryptography":!0,lodash:!0,uuid:!0}},"@metamask/address-book-controller":{packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0}},"@metamask/announcement-controller":{packages:{"@metamask/base-controller":!0}},"@metamask/approval-controller":{globals:{"console.info":!0},packages:{"@metamask/base-controller":!0,"@metamask/rpc-errors":!0,nanoid:!0}},"@metamask/snaps-controllers>@metamask/approval-controller":{globals:{"console.info":!0},packages:{"@metamask/base-controller":!0,"@metamask/rpc-errors":!0,nanoid:!0}},"@metamask/assets-controller":{globals:{clearInterval:!0,"console.error":!0,setInterval:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@ethersproject/abi":!0,"@ethersproject/providers":!0,"@metamask/assets-controllers":!0,"@metamask/base-controller":!0,"@metamask/client-controller":!0,"@metamask/controller-utils":!0,"@metamask/core-backend":!0,"@metamask/keyring-snap-client":!0,"@metamask/polling-controller":!0,"@metamask/assets-controller>@metamask/snaps-utils":!0,"@metamask/utils":!0,"@metamask/keyring-api>async-mutex":!0,"@metamask/assets-controller>bignumber.js":!0,lodash:!0,"@metamask/assets-controller>p-limit":!0}},"@metamask/assets-controllers":{globals:{AbortController:!0,"Intl.NumberFormat":!0,URL:!0,URLSearchParams:!0,clearInterval:!0,clearTimeout:!0,"console.error":!0,"console.log":!0,"console.warn":!0,fetch:!0,setInterval:!0,setTimeout:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"ethers>@ethersproject/address":!0,"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"@metamask/assets-controllers>@metamask/abi-utils":!0,"@metamask/account-api":!0,"@metamask/base-controller":!0,"@metamask/contract-metadata":!0,"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/keyring-api":!0,"@metamask/keyring-snap-client":!0,"@metamask/metamask-eth-abis":!0,"@metamask/assets-controllers>@metamask/phishing-controller":!0,"@metamask/polling-controller":!0,"@metamask/rpc-errors":!0,"@metamask/assets-controllers>@metamask/snaps-utils":!0,"@metamask/utils":!0,"@metamask/keyring-api>async-mutex":!0,"ethereumjs-util>bn.js":!0,immer:!0,lodash:!0,"@metamask/assets-controllers>multiformats":!0,reselect:!0,"@metamask/assets-controllers>single-call-balance-checker-abi":!0,uuid:!0}},"@metamask/seedless-onboarding-controller>@metamask/auth-network-utils":{globals:{"Buffer.from":!0,clearTimeout:!0,setTimeout:!0},packages:{"@noble/hashes":!0,"ethereumjs-util>bn.js":!0,buffer:!0,"eslint>json-stable-stringify-without-jsonify":!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@metamask/auth-network-utils":{globals:{"Buffer.concat":!0,"Buffer.from":!0,clearTimeout:!0,setTimeout:!0},packages:{"@noble/curves":!0,"@noble/hashes":!0,"ethereumjs-util>bn.js":!0,buffer:!0,"@toruslabs/eccrypto>elliptic":!0,"eslint>json-stable-stringify-without-jsonify":!0}},"@metamask/base-controller":{globals:{"console.error":!0},packages:{immer:!0}},"@metamask/bridge-controller":{globals:{AbortController:!0,"Buffer.from":!0,TextDecoder:!0,URLSearchParams:!0,"console.error":!0,"console.log":!0,"console.warn":!0},packages:{"ethers>@ethersproject/address":!0,"@ethersproject/bignumber":!0,"ethers>@ethersproject/constants":!0,"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"@metamask/controller-utils":!0,"@metamask/keyring-api":!0,"@metamask/metamask-eth-abis":!0,"@metamask/multichain-network-controller":!0,"@metamask/polling-controller":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@metamask/bridge-controller>bignumber.js":!0,buffer:!0,lodash:!0,reselect:!0,uuid:!0,"@metamask/bridge-controller>@metamask/multichain-network-controller":!0}},"@metamask/bridge-status-controller>@metamask/bridge-controller":{globals:{"Buffer.from":!0,URLSearchParams:!0,"console.warn":!0},packages:{"ethers>@ethersproject/address":!0,"ethers>@ethersproject/constants":!0,"@ethersproject/contracts":!0,"@metamask/controller-utils":!0,"@metamask/keyring-api":!0,"@metamask/metamask-eth-abis":!0,"@metamask/multichain-network-controller":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,buffer:!0}},"@metamask/transaction-pay-controller>@metamask/bridge-controller":{packages:{"@metamask/controller-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/bridge-status-controller":{globals:{URLSearchParams:!0,"console.error":!0,"console.warn":!0,setTimeout:!0},packages:{"@metamask/bridge-status-controller>@metamask/bridge-controller":!0,"@metamask/controller-utils":!0,"@metamask/keyring-controller":!0,"@metamask/polling-controller":!0,"@metamask/superstruct":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0,"@metamask/bridge-status-controller>bignumber.js":!0,uuid:!0}},"@metamask/browser-passworder":{globals:{"Buffer.from":!0,CryptoKey:!0,btoa:!0,"crypto.getRandomValues":!0,"crypto.subtle.decrypt":!0,"crypto.subtle.deriveKey":!0,"crypto.subtle.encrypt":!0,"crypto.subtle.exportKey":!0,"crypto.subtle.importKey":!0},packages:{"@metamask/utils":!0,buffer:!0}},"@metamask/chain-agnostic-permission":{packages:{"@metamask/chain-agnostic-permission>@metamask/api-specs":!0,"@metamask/controller-utils":!0,"@metamask/permission-controller":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0,lodash:!0}},"@metamask/claims-controller":{packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/utils":!0}},"@metamask/client-controller":{packages:{"@metamask/base-controller":!0}},"@metamask/connectivity-controller":{packages:{"@metamask/base-controller":!0}},"@metamask/controller-utils":{globals:{"Buffer.from":!0,URL:!0,"console.error":!0,fetch:!0,setTimeout:!0},packages:{"@metamask/controller-utils>@metamask/ethjs-unit":!0,"@metamask/utils":!0,"@metamask/controller-utils>@spruceid/siwe-parser":!0,"ethereumjs-util>bn.js":!0,buffer:!0,cockatiel:!0,"eth-ens-namehash":!0,"eslint>fast-deep-equal":!0,lodash:!0}},"@metamask/core-backend":{globals:{URL:!0,WebSocket:!0,clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@metamask/controller-utils":!0,"@metamask/utils":!0,"@metamask/core-backend>@tanstack/query-core":!0,cockatiel:!0,uuid:!0}},"@metamask/delegation-controller":{packages:{"@metamask/base-controller":!0,"@metamask/keyring-controller":!0,"@metamask/utils":!0}},"@metamask/delegation-core":{packages:{"@metamask/abi-utils":!0,"@metamask/utils":!0,"@noble/hashes":!0}},"@metamask/design-system-react":{globals:{"console.warn":!0},packages:{"@metamask/design-system-react>@metamask/design-system-shared":!0,"@metamask/jazzicon":!0,"@metamask/design-system-react>@radix-ui/react-slot":!0,"@metamask/design-system-react>blo":!0,react:!0,"@metamask/design-system-react>tailwind-merge":!0}},"@metamask/design-system-react>@metamask/design-system-shared":{packages:{"@metamask/utils":!0}},"@metamask/eip-5792-middleware":{packages:{"@metamask/keyring-controller":!0,"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/eip-5792-middleware>@metamask/transaction-controller":!0,"@metamask/utils":!0,lodash:!0,uuid:!0}},"@metamask/eip-7702-internal-rpc-middleware":{packages:{"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/ens-controller":{packages:{"@ethersproject/providers":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/utils":!0,punycode:!0}},"@metamask/eth-token-tracker>@metamask/eth-block-tracker":{globals:{clearTimeout:!0,"console.error":!0,setTimeout:!0},packages:{"@metamask/safe-event-emitter":!0,"@metamask/utils":!0,"@metamask/ppom-validator>json-rpc-random-id":!0}},"@metamask/network-controller>@metamask/eth-block-tracker":{globals:{clearTimeout:!0,"console.error":!0,setTimeout:!0},packages:{"@metamask/safe-event-emitter":!0,"@metamask/utils":!0,"@metamask/ppom-validator>json-rpc-random-id":!0}},"@metamask/eth-hd-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,TextEncoder:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-sig-util":!0,"@metamask/snaps-sdk>@metamask/key-tree":!0,"@metamask/keyring-api":!0,"@metamask/scure-bip39":!0,"@metamask/utils":!0,"@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32":!0,buffer:!0,"@metamask/eth-hd-keyring>ethereum-cryptography":!0}},"@metamask/eth-json-rpc-filters":{globals:{"console.error":!0},packages:{"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/json-rpc-engine":!0,"@metamask/safe-event-emitter":!0,"@metamask/keyring-api>async-mutex":!0,pify:!0}},"@metamask/network-controller>@metamask/eth-json-rpc-infura":{globals:{fetch:!0,setTimeout:!0},packages:{"@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/eth-json-rpc-provider":!0,"@metamask/json-rpc-engine":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0}},"@metamask/eth-json-rpc-middleware":{globals:{setTimeout:!0},packages:{"@metamask/eth-sig-util":!0,"@metamask/json-rpc-engine":!0,"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@metamask/json-rpc-engine>klona":!0,"@metamask/eth-json-rpc-middleware>safe-stable-stringify":!0}},"@metamask/eth-json-rpc-provider":{packages:{"@metamask/json-rpc-engine":!0,nanoid:!0}},"@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/eth-json-rpc-provider":{packages:{"@metamask/json-rpc-engine":!0,"@metamask/rpc-errors":!0,"@metamask/safe-event-emitter":!0,uuid:!0}},"@metamask/eth-ledger-bridge-keyring":{globals:{addEventListener:!0,"console.error":!0,"document.createElement":!0,"document.head.appendChild":!0,fetch:!0,removeEventListener:!0,setTimeout:!0},packages:{"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@ledgerhq/hw-app-eth":!0,"@ledgerhq/hw-transport":!0,"@metamask/eth-sig-util":!0,"@metamask/eth-ledger-bridge-keyring>@metamask/hw-wallet-sdk":!0,"@metamask/keyring-api":!0,"@metamask/utils":!0,buffer:!0,"@metamask/eth-qr-keyring>hdkey":!0}},"@metamask/eth-qr-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0},packages:{"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth":!0,"@metamask/utils":!0,"@metamask/keyring-api>async-mutex":!0,buffer:!0,"@metamask/eth-qr-keyring>hdkey":!0,"@metamask/eth-qr-keyring>uuid":!0}},"@metamask/controller-utils>@metamask/eth-query":{packages:{"@metamask/ppom-validator>json-rpc-random-id":!0,"watchify>xtend":!0}},"@metamask/eth-sig-util":{globals:{"Buffer.byteLength":!0,"Buffer.concat":!0,"Buffer.from":!0},packages:{"@metamask/eth-sig-util>@ethereumjs/rlp":!0,"@metamask/eth-sig-util>@ethereumjs/util":!0,"@metamask/abi-utils":!0,"@metamask/utils":!0,"@metamask/eth-sig-util>@scure/base":!0,buffer:!0,"@metamask/eth-sig-util>ethereum-cryptography":!0,tweetnacl:!0}},"@metamask/keyring-controller>@metamask/eth-simple-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-sig-util":!0,"@metamask/utils":!0,buffer:!0,"@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography":!0,"crypto-browserify>randombytes":!0}},"@metamask/eth-snap-keyring":{globals:{URL:!0,"console.error":!0,"console.info":!0,"console.warn":!0},packages:{"@ethereumjs/tx":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-api":!0,"@metamask/keyring-internal-api":!0,"@metamask/eth-snap-keyring>@metamask/keyring-internal-snap-client":!0,"@metamask/eth-snap-keyring>@metamask/keyring-snap-sdk":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@metamask/keyring-api>async-mutex":!0,"@metamask/eth-snap-keyring>uuid":!0}},"@metamask/eth-token-tracker":{globals:{"console.warn":!0},packages:{"@babel/runtime":!0,"@ethersproject/bignumber":!0,"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"@metamask/eth-token-tracker>@metamask/eth-block-tracker":!0,"@metamask/safe-event-emitter":!0,"ethereumjs-util>bn.js":!0,"@metamask/eth-token-tracker>deep-equal":!0,"human-standard-token-abi":!0}},"@metamask/eth-trezor-keyring":{globals:{"Buffer.from":!0,setTimeout:!0},packages:{"@ethereumjs/tx":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-sig-util":!0,"@metamask/utils":!0,"@metamask/eth-trezor-keyring>@trezor/connect-plugin-ethereum":!0,"@trezor/connect-web":!0,buffer:!0,"@metamask/eth-qr-keyring>hdkey":!0}},"@metamask/etherscan-link":{globals:{URL:!0}},"eth-method-registry>@metamask/ethjs-contract":{packages:{"@babel/runtime":!0,"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-filter":!0,"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-util":!0,"eth-method-registry>@metamask/ethjs-contract>ethjs-abi":!0,"eth-ens-namehash>js-sha3":!0,"eth-method-registry>@metamask/ethjs-query>promise-to-callback":!0}},"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-filter":{globals:{clearInterval:!0,setInterval:!0}},"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format":{packages:{"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-util":!0,"@metamask/controller-utils>@metamask/ethjs-unit>@metamask/number-to-bn":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>ethjs-schema":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":!0}},"eth-method-registry>@metamask/ethjs-query":{globals:{console:!0},packages:{"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-rpc":!0,"eth-method-registry>@metamask/ethjs-query>promise-to-callback":!0}},"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-rpc":{packages:{"eth-method-registry>@metamask/ethjs-query>promise-to-callback":!0}},"@metamask/controller-utils>@metamask/ethjs-unit":{packages:{"@metamask/controller-utils>@metamask/ethjs-unit>@metamask/number-to-bn":!0,"ethereumjs-util>bn.js":!0}},"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-util":{globals:{"Buffer.byteLength":!0,"Buffer.from":!0},packages:{buffer:!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>is-hex-prefixed":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":!0}},"@metamask/gas-fee-controller":{globals:{clearInterval:!0,"console.error":!0,setInterval:!0},packages:{"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/polling-controller":!0,"ethereumjs-util>bn.js":!0,uuid:!0}},"@metamask/gator-permissions-controller":{globals:{clearTimeout:!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/delegation-core":!0,"@metamask/gator-permissions-controller>@metamask/delegation-deployments":!0,"@metamask/gator-permissions-controller>@metamask/snaps-utils":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0}},"@metamask/jazzicon":{globals:{"document.createElement":!0,"document.createElementNS":!0},packages:{"@metamask/jazzicon>color":!0,"@metamask/jazzicon>mersenne-twister":!0}},"@metamask/json-rpc-engine":{packages:{"@metamask/rpc-errors":!0,"@metamask/safe-event-emitter":!0,"@metamask/utils":!0,"deep-freeze-strict":!0,"@metamask/json-rpc-engine>klona":!0}},"@metamask/json-rpc-middleware-stream":{globals:{"console.warn":!0,setTimeout:!0},packages:{"@metamask/safe-event-emitter":!0,"@metamask/utils":!0,"@metamask/json-rpc-middleware-stream>readable-stream":!0}},"@metamask/snaps-sdk>@metamask/key-tree":{globals:{crypto:!0,ed25519:!0,ed25519Bip32:!0,secp256k1:!0},packages:{"@metamask/scure-bip39":!0,"@metamask/utils":!0,"@noble/curves":!0,"@noble/hashes":!0,"@scure/base":!0}},"@metamask/keyring-api":{packages:{"@ethereumjs/tx":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@metamask/keyring-api>async-mutex":!0,"bitcoin-address-validation":!0,"@metamask/keyring-api>uuid":!0}},"@metamask/keyring-controller":{globals:{"console.error":!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/base-controller":!0,"@metamask/eth-hd-keyring":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-controller>@metamask/eth-simple-keyring":!0,"@metamask/utils":!0,"@metamask/keyring-api>async-mutex":!0,"@metamask/keyring-controller>ethereumjs-wallet":!0,lodash:!0,"@metamask/keyring-controller>ulid":!0}},"@metamask/keyring-internal-api":{packages:{"@metamask/keyring-api":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0}},"@metamask/keyring-internal-snap-client":{packages:{"@metamask/keyring-api":!0,"@metamask/keyring-internal-api":!0,"@metamask/keyring-snap-client":!0,"@metamask/keyring-utils":!0}},"@metamask/eth-snap-keyring>@metamask/keyring-internal-snap-client":{packages:{"@metamask/keyring-api":!0,"@metamask/keyring-internal-api":!0,"@metamask/keyring-snap-client":!0,"@metamask/keyring-utils":!0}},"@metamask/keyring-snap-client":{packages:{"@metamask/keyring-api":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0,"@metamask/keyring-snap-client>uuid":!0}},"@metamask/eth-snap-keyring>@metamask/keyring-snap-sdk":{packages:{"@metamask/keyring-api":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0}},"@metamask/keyring-utils":{globals:{URL:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils":!0,"bitcoin-address-validation":!0}},"@metamask/logging-controller":{packages:{"@metamask/base-controller":!0,uuid:!0}},"@metamask/logo":{globals:{addEventListener:!0,"document.body.appendChild":!0,"document.createElementNS":!0,innerHeight:!0,innerWidth:!0,requestAnimationFrame:!0},packages:{"@metamask/logo>gl-mat4":!0,"@metamask/logo>gl-vec3":!0}},"@metamask/message-manager":{globals:{"Buffer.from":!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/utils":!0,buffer:!0,"webpack>events":!0,uuid:!0}},"@metamask/messenger":{globals:{"console.error":!0}},"@metamask/multichain-account-service":{globals:{clearTimeout:!0,"console.error":!0,"console.warn":!0,setTimeout:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/account-api":!0,"@metamask/accounts-controller":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller":!0,"@metamask/keyring-snap-client":!0,"@metamask/multichain-account-service>@metamask/snaps-utils":!0,"@metamask/utils":!0,"@metamask/keyring-api>async-mutex":!0,lodash:!0}},"@metamask/multichain-api-middleware":{globals:{"console.error":!0},packages:{"@metamask/multichain-api-middleware>@metamask/api-specs":!0,"@metamask/chain-agnostic-permission":!0,"@metamask/controller-utils":!0,"@metamask/eth-json-rpc-filters":!0,"@metamask/json-rpc-engine":!0,"@metamask/permission-controller":!0,"@metamask/rpc-errors":!0,"@metamask/safe-event-emitter":!0,"@metamask/utils":!0,"@open-rpc/schema-utils-js":!0,"@metamask/message-manager>jsonschema":!0}},"@metamask/multichain-network-controller":{globals:{URL:!0},packages:{"@metamask/base-controller":!0,"@metamask/keyring-api":!0,"@metamask/network-controller":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,lodash:!0,"@metamask/multichain-network-controller>@metamask/keyring-api":!0}},"@metamask/multichain-transactions-controller":{globals:{"console.error":!0},packages:{"@metamask/base-controller":!0,"@metamask/keyring-api":!0,"@metamask/keyring-snap-client":!0,"@metamask/multichain-transactions-controller>@metamask/snaps-utils":!0}},"@metamask/name-controller":{globals:{fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/utils":!0,"@metamask/keyring-api>async-mutex":!0}},"@metamask/network-controller":{globals:{"Intl.NumberFormat":!0,URL:!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/connectivity-controller":!0,"@metamask/controller-utils":!0,"@metamask/network-controller>@metamask/eth-block-tracker":!0,"@metamask/network-controller>@metamask/eth-json-rpc-infura":!0,"@metamask/eth-json-rpc-middleware":!0,"@metamask/eth-json-rpc-provider":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/json-rpc-engine":!0,"@metamask/rpc-errors":!0,"@metamask/network-controller>@metamask/swappable-obj-proxy":!0,"@metamask/utils":!0,cockatiel:!0,"addons-linter>deepmerge":!0,"eslint>fast-deep-equal":!0,immer:!0,lodash:!0,reselect:!0,"uri-js":!0,uuid:!0}},"@metamask/network-enablement-controller":{packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/keyring-api":!0,"@metamask/multichain-network-controller":!0,"@metamask/snaps-utils>@metamask/slip44":!0,"@metamask/utils":!0}},"@metamask/transaction-controller>@metamask/nonce-tracker":{packages:{"@ethersproject/providers":!0,"@ngraveio/bc-ur>assert":!0,"@metamask/transaction-controller>@metamask/nonce-tracker>async-mutex":!0}},"@metamask/notification-services-controller":{globals:{"Intl.NumberFormat":!0,addEventListener:!0,"console.error":!0,fetch:!0,registration:!0,removeEventListener:!0},packages:{"@metamask/notification-services-controller>@contentful/rich-text-html-renderer":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/keyring-controller":!0,"@metamask/utils":!0,"@metamask/notification-services-controller>bignumber.js":!0,"@metamask/notification-services-controller>firebase":!0,loglevel:!0,semver:!0,uuid:!0}},"@metamask/controller-utils>@metamask/ethjs-unit>@metamask/number-to-bn":{packages:{"ethereumjs-util>bn.js":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":!0}},"@metamask/object-multiplex":{globals:{"console.warn":!0},packages:{"@metamask/object-multiplex>once":!0,"@metamask/object-multiplex>readable-stream":!0}},"@metamask/obs-store":{packages:{"@metamask/safe-event-emitter":!0,"@metamask/obs-store>readable-stream":!0}},"@metamask/permission-controller":{globals:{"console.error":!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/json-rpc-engine":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0,"deep-freeze-strict":!0,immer:!0,nanoid:!0}},"@metamask/permission-log-controller":{packages:{"@metamask/base-controller":!0,"@metamask/utils":!0}},"@metamask/perps-controller":{globals:{AbortController:!0,WebSocket:!0,clearInterval:!0,clearTimeout:!0,fetch:!0,"performance.now":!0,process:!0,setInterval:!0,setTimeout:!0},packages:{"@metamask/perps-controller>@metamask/abi-utils":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/utils":!0,"@metamask/perps-controller>@nktkas/hyperliquid":!0,uuid:!0}},"@metamask/phishing-controller":{globals:{TextEncoder:!0,URL:!0,"console.error":!0,"console.warn":!0,fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@noble/hashes":!0,"@metamask/phishing-controller>ethereum-cryptography":!0,"webpack-cli>fastest-levenshtein":!0,punycode:!0}},"@metamask/polling-controller":{globals:{clearTimeout:!0,"console.error":!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"fast-json-stable-stringify":!0,uuid:!0}},"@metamask/post-message-stream":{globals:{"MessageEvent.prototype":!0,WorkerGlobalScope:!0,addEventListener:!0,browser:!0,chrome:!0,"location.origin":!0,postMessage:!0,removeEventListener:!0},packages:{"@metamask/utils":!0,"@metamask/post-message-stream>readable-stream":!0}},"@metamask/ppom-validator":{globals:{"Buffer.from":!0,URL:!0,"console.error":!0,crypto:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"await-semaphore":!0,buffer:!0,"@metamask/ppom-validator>crypto-js":!0,"@toruslabs/eccrypto>elliptic":!0,"@metamask/ppom-validator>json-rpc-random-id":!0}},"@metamask/profile-metrics-controller":{globals:{URL:!0,"console.error":!0},packages:{"@metamask/controller-utils":!0,"@metamask/polling-controller":!0,"@metamask/profile-sync-controller":!0,"@metamask/utils":!0,"@metamask/keyring-api>async-mutex":!0}},"@metamask/profile-sync-controller":{globals:{"Buffer.from":!0,Event:!0,TextDecoder:!0,TextEncoder:!0,URL:!0,URLSearchParams:!0,addEventListener:!0,atob:!0,"console.error":!0,"console.warn":!0,dispatchEvent:!0,fetch:!0,removeEventListener:!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/keyring-controller":!0,"@noble/ciphers":!0,"@noble/hashes":!0,buffer:!0,"@metamask/profile-sync-controller>siwe":!0}},"@metamask/providers":{globals:{console:!0},packages:{"@metamask/json-rpc-engine":!0,"@metamask/json-rpc-middleware-stream":!0,"@metamask/rpc-errors":!0,"@metamask/safe-event-emitter":!0,"eslint>fast-deep-equal":!0,"@metamask/providers>is-stream":!0,"@metamask/providers>readable-stream":!0}},"@metamask/rate-limit-controller":{globals:{setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0}},"@metamask/remote-feature-flag-controller":{globals:{TextEncoder:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/utils":!0,uuid:!0}},"@metamask/rpc-errors":{packages:{"@metamask/utils":!0,"@metamask/rpc-errors>fast-safe-stringify":!0}},"@metamask/safe-event-emitter":{globals:{setTimeout:!0},packages:{"webpack>events":!0}},"@metamask/scure-bip39":{globals:{TextEncoder:!0},packages:{"@metamask/scure-bip39>@noble/hashes":!0,"@metamask/scure-bip39>@scure/base":!0}},"@metamask/seedless-onboarding-controller":{packages:{"@metamask/seedless-onboarding-controller>@metamask/auth-network-utils":!0,"@metamask/base-controller":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup":!0,"@metamask/utils":!0,"@noble/ciphers":!0,"@noble/curves":!0,"@metamask/keyring-api>async-mutex":!0}},"@metamask/selected-network-controller":{packages:{"@metamask/base-controller":!0,"@metamask/network-controller>@metamask/swappable-obj-proxy":!0}},"@metamask/shield-controller":{globals:{AbortController:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/signature-controller":!0,"@metamask/shield-controller>@metamask/transaction-controller":!0,"@metamask/utils":!0,cockatiel:!0,lodash:!0}},"@metamask/signature-controller":{globals:{"Buffer.from":!0,fetch:!0},packages:{"@metamask/approval-controller":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-controller":!0,"@metamask/logging-controller":!0,"@metamask/utils":!0,buffer:!0,"webpack>events":!0,"@metamask/message-manager>jsonschema":!0,uuid:!0}},"@metamask/smart-transactions-controller":{globals:{URLSearchParams:!0,clearInterval:!0,"console.error":!0,"console.log":!0,fetch:!0,setInterval:!0},packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/keccak256":!0,"@ethersproject/transactions":!0,"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/polling-controller":!0,"@metamask/superstruct":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0,"@metamask/smart-transactions-controller>bignumber.js":!0,lodash:!0,reselect:!0}},"@metamask/snaps-controllers":{globals:{DecompressionStream:!0,URL:!0,WebSocket:!0,clearTimeout:!0,"document.getElementById":!0,"fetch.bind":!0,setTimeout:!0},packages:{"@metamask/snaps-controllers>@metamask/approval-controller":!0,"@metamask/base-controller":!0,"@metamask/json-rpc-engine":!0,"@metamask/json-rpc-middleware-stream":!0,"@metamask/object-multiplex":!0,"@metamask/permission-controller":!0,"@metamask/post-message-stream":!0,"@metamask/rpc-errors":!0,"@metamask/snaps-utils>@metamask/snaps-registry":!0,"@metamask/snaps-rpc-methods":!0,"@metamask/snaps-sdk":!0,"@metamask/snaps-utils":!0,"@metamask/utils":!0,"@swc/helpers":!0,"@metamask/snaps-controllers>@xstate/fsm":!0,"@metamask/keyring-api>async-mutex":!0,"@metamask/snaps-controllers>concat-stream":!0,"cron-parser":!0,"eslint>fast-deep-equal":!0,"@metamask/snaps-controllers>get-npm-tarball-url":!0,immer:!0,luxon:!0,nanoid:!0,"@metamask/snaps-controllers>readable-stream":!0,"@metamask/snaps-controllers>readable-web-to-node-stream":!0,semver:!0,"@metamask/snaps-controllers>tar-stream":!0}},"@metamask/snaps-utils>@metamask/snaps-registry":{globals:{crypto:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils":!0,"@noble/curves":!0,"@noble/hashes":!0}},"@metamask/snaps-rpc-methods":{packages:{"@metamask/snaps-sdk>@metamask/key-tree":!0,"@metamask/permission-controller":!0,"@metamask/rpc-errors":!0,"@metamask/snaps-sdk":!0,"@metamask/snaps-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@noble/hashes":!0,"@metamask/keyring-api>async-mutex":!0}},"@metamask/snaps-sdk":{globals:{URL:!0},packages:{"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@swc/helpers":!0,luxon:!0}},"@metamask/snaps-utils":{globals:{File:!0,FileReader:!0,TextDecoder:!0,TextEncoder:!0,URL:!0,"console.error":!0,"console.log":!0,"console.warn":!0,"document.body.appendChild":!0,"document.createElement":!0,fetch:!0,navigator:!0},packages:{"@metamask/snaps-sdk>@metamask/key-tree":!0,"@metamask/permission-controller":!0,"@metamask/rpc-errors":!0,"@metamask/snaps-utils>@metamask/slip44":!0,"@metamask/snaps-sdk":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@scure/base":!0,"@swc/helpers":!0,chalk:!0,"cron-parser":!0,"fast-json-stable-stringify":!0,"@metamask/snaps-utils>fast-xml-parser":!0,luxon:!0,"@metamask/snaps-utils>marked":!0,"@metamask/snaps-utils>rfdc":!0,semver:!0,"@metamask/snaps-utils>validate-npm-package-name":!0}},"@metamask/account-tree-controller>@metamask/snaps-utils":{packages:{"@metamask/snaps-sdk":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@scure/base":!0,"fast-json-stable-stringify":!0,"@metamask/snaps-utils>validate-npm-package-name":!0}},"@metamask/storage-service":{globals:{"console.error":!0,"console.warn":!0}},"@metamask/subscription-controller":{globals:{URL:!0},packages:{"@metamask/polling-controller":!0,"@metamask/subscription-controller>@metamask/transaction-controller":!0,"@metamask/utils":!0,"@metamask/subscription-controller>bignumber.js":!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup":{globals:{Buffer:!0,URL:!0,"console.error":!0,fetch:!0},packages:{"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@metamask/auth-network-utils":!0,"@noble/ciphers":!0,"@noble/curves":!0,"@noble/hashes":!0,"@toruslabs/eccrypto":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/http-helpers":!0,"ethereumjs-util>bn.js":!0,buffer:!0}},"@metamask/transaction-controller":{globals:{"Buffer.from":!0,clearTimeout:!0,"console.error":!0,fetch:!0,setTimeout:!0},packages:{"@ethereumjs/tx>@ethereumjs/common":!0,"@ethereumjs/tx":!0,"@ethersproject/abi":!0,"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"ethers>@ethersproject/wallet":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/gas-fee-controller":!0,"@metamask/metamask-eth-abis":!0,"@metamask/network-controller":!0,"@metamask/transaction-controller>@metamask/nonce-tracker":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0,"@metamask/keyring-api>async-mutex":!0,"@metamask/transaction-controller>bignumber.js":!0,"ethereumjs-util>bn.js":!0,buffer:!0,"eth-method-registry":!0,"webpack>events":!0,lodash:!0,uuid:!0}},"@metamask/transaction-pay-controller":{globals:{URLSearchParams:!0,clearTimeout:!0,setTimeout:!0},packages:{"@ethersproject/abi":!0,"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"@metamask/base-controller":!0,"@metamask/transaction-pay-controller>@metamask/bridge-controller":!0,"@metamask/controller-utils":!0,"@metamask/metamask-eth-abis":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0,"@metamask/transaction-pay-controller>bignumber.js":!0,lodash:!0}},"@metamask/user-operation-controller":{globals:{fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/gas-fee-controller":!0,"@metamask/polling-controller":!0,"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0,"ethereumjs-util>bn.js":!0,"webpack>events":!0,lodash:!0,uuid:!0}},"@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0,crypto:!0},packages:{"@metamask/superstruct":!0,"@noble/hashes":!0,"@scure/base":!0,buffer:!0,"nock>debug":!0,lodash:!0,"@metamask/utils>pony-cause":!0,semver:!0}},"@metamask/assets-controllers>@metamask/abi-utils>@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/superstruct":!0,"@noble/hashes":!0,"@scure/base":!0,buffer:!0,"nock>debug":!0,"@metamask/utils>pony-cause":!0,semver:!0}},"@metamask/perps-controller>@metamask/abi-utils>@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/superstruct":!0,"@noble/hashes":!0,"@scure/base":!0,buffer:!0,"nock>debug":!0,"@metamask/utils>pony-cause":!0,semver:!0}},"@ngraveio/bc-ur":{globals:{"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{"@ngraveio/bc-ur>@keystonehq/alias-sampling":!0,"@ngraveio/bc-ur>assert":!0,"@ngraveio/bc-ur>bignumber.js":!0,buffer:!0,"@ngraveio/bc-ur>cbor-sync":!0,"@ngraveio/bc-ur>crc":!0,"@ngraveio/bc-ur>jsbi":!0,"@ngraveio/bc-ur>sha.js":!0}},"@metamask/perps-controller>@nktkas/hyperliquid":{globals:{AbortController:!0,AbortSignal:!0,CustomEvent:!0,DOMException:!0,Event:!0,EventTarget:!0,Headers:!0,TextEncoder:!0,URL:!0,clearInterval:!0,fetch:!0,setInterval:!0,setTimeout:!0},packages:{"@metamask/perps-controller>@nktkas/hyperliquid>@nktkas/rews":!0,"@metamask/perps-controller>@nktkas/hyperliquid>@noble/hashes":!0,"@swc/helpers":!0,"@metamask/perps-controller>@nktkas/hyperliquid>micro-eth-signer":!0,"@metamask/perps-controller>@nktkas/hyperliquid>valibot":!0}},"@metamask/perps-controller>@nktkas/hyperliquid>@nktkas/rews":{globals:{AbortController:!0,AbortSignal:!0,CustomEvent:!0,DOMException:!0,WebSocket:!0,clearTimeout:!0,setTimeout:!0},packages:{"@swc/helpers":!0}},"@noble/ciphers":{globals:{TextDecoder:!0,TextEncoder:!0,crypto:!0}},"@noble/curves":{packages:{"@noble/hashes":!0}},"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-sig-util>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@metamask/eth-sig-util>ethereum-cryptography>@noble/hashes":!0}},"@noble/hashes":{globals:{TextDecoder:!0,TextEncoder:!0,crypto:!0}},"@metamask/scure-bip39>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/perps-controller>@nktkas/hyperliquid>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0},packages:{"@swc/helpers":!0}},"@ethereumjs/tx>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/accounts-controller>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/eth-sig-util>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@metamask/phishing-controller>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@open-rpc/schema-utils-js":{packages:{"@open-rpc/schema-utils-js>@json-schema-tools/dereferencer":!0,"@open-rpc/schema-utils-js>@json-schema-tools/meta-schema":!0,"@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver":!0,"@open-rpc/meta-schema":!0,"eslint>ajv":!0,"@metamask/rpc-errors>fast-safe-stringify":!0,"@open-rpc/schema-utils-js>is-url":!0}},"@popperjs/core":{globals:{Element:!0,HTMLElement:!0,ShadowRoot:!0,document:!0,"navigator.userAgent":!0,"navigator.userAgentData":!0,devicePixelRatio:!0}},"@google/genai>protobufjs>@protobufjs/codegen":{globals:{"console.log":!0}},"@google/genai>protobufjs>@protobufjs/fetch":{globals:{XMLHttpRequest:!0},packages:{"@google/genai>protobufjs>@protobufjs/aspromise":!0,"@google/genai>protobufjs>@protobufjs/inquire":!0}},"@metamask/design-system-react>@radix-ui/react-slot>@radix-ui/react-compose-refs":{packages:{react:!0}},"@metamask/design-system-react>@radix-ui/react-slot":{packages:{"@metamask/design-system-react>@radix-ui/react-slot>@radix-ui/react-compose-refs":!0,react:!0}},"@reduxjs/toolkit":{globals:{AbortController:!0,__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:!0,__REDUX_DEVTOOLS_EXTENSION__:!0,console:!0,process:!0,queueMicrotask:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{immer:!0,process:!0,redux:!0,"redux-thunk":!0,"@reduxjs/toolkit>reselect":!0}},"react-router-dom>@remix-run/router":{globals:{AbortController:!0,DOMException:!0,FormData:!0,Headers:!0,Request:!0,Response:!0,URL:!0,URLSearchParams:!0,console:!0,"document.defaultView":!0,history:!0}},"@rive-app/react-canvas>@rive-app/canvas":{globals:{AudioContext:!1,Blob:!0,DOMMatrix:!1,FinalizationRegistry:!1,HTMLCanvasElement:!0,Image:!0,Iterator:!1,MouseEvent:!1,Path2D:!0,Request:!0,ResizeObserver:!1,TextDecoder:!0,"URL.createObjectURL":!0,"URL.revokeObjectURL":!0,WebAssembly:!0,XMLHttpRequest:!1,cancelAnimationFrame:!0,clearInterval:!0,clearTimeout:!0,console:!0,crypto:!1,define:!1,devicePixelRatio:!0,document:!1,fetch:!1,h:!1,importScripts:!1,navigator:!1,"performance.now":!0,prompt:!1,readline:!1,requestAnimationFrame:!0,setTimeout:!0,webkitAudioContext:!1,location:!1,"document.createElement":!0,"navigator.userAgent":!0}},"@rive-app/react-canvas":{globals:{IntersectionObserver:!0,ResizeObserver:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,devicePixelRatio:!0,"document.documentElement.clientHeight":!0,"document.documentElement.clientWidth":!0,innerHeight:!0,innerWidth:!0,matchMedia:!0,removeEventListener:!0,setTimeout:!0},packages:{"@rive-app/react-canvas>@rive-app/canvas":!0,react:!0}},"@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/eth-sig-util>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/scure-bip39>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32":{packages:{"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/curves":!0,"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":!0,"@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32>@scure/base":!0}},"@segment/loosely-validate-event":{globals:{"Buffer.byteLength":!0},packages:{"@ngraveio/bc-ur>assert":!0,buffer:!0,"@segment/loosely-validate-event>component-type":!0,"@segment/loosely-validate-event>join-component":!0}},"@sentry/browser>@sentry-internal/browser-utils":{globals:{"PerformanceEventTiming.prototype":!0,PerformanceObserver:!0,"XMLHttpRequest.prototype":!0,__SENTRY_DEBUG__:!0,addEventListener:!0,clearTimeout:!0,performance:!0,removeEventListener:!0,setTimeout:!0},packages:{"@sentry/browser>@sentry/core":!0,"@sentry/utils":!0}},"@sentry/browser>@sentry-internal/feedback":{globals:{FormData:!0,HTMLFormElement:!0,__SENTRY_DEBUG__:!0,cancelAnimationFrame:!0,clearTimeout:!0,"document.createElement":!0,"document.createElementNS":!0,"document.createTextNode":!0,isSecureContext:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{"@sentry/browser>@sentry/core":!0,"@sentry/utils":!0}},"@sentry/browser>@sentry-internal/replay-canvas":{globals:{Blob:!0,HTMLCanvasElement:!0,HTMLImageElement:!0,ImageData:!0,"URL.createObjectURL":!0,WeakRef:!0,Worker:!0,cancelAnimationFrame:!0,"console.error":!0,createImageBitmap:!0,document:!0},packages:{"@sentry/browser>@sentry/core":!0,"@sentry/utils":!0}},"@sentry/browser>@sentry-internal/replay":{globals:{Blob:!0,CSSConditionRule:!0,CSSGroupingRule:!0,CSSMediaRule:!0,CSSRule:!0,CSSSupportsRule:!0,Document:!0,DragEvent:!0,Element:!0,FormData:!0,HTMLElement:!0,HTMLFormElement:!0,Headers:!0,MouseEvent:!0,MutationObserver:!0,"Node.DOCUMENT_FRAGMENT_NODE":!0,"Node.prototype.contains":!0,PointerEvent:!0,TextEncoder:!0,URL:!0,URLSearchParams:!0,Worker:!0,__RRWEB_EXCLUDE_IFRAME__:!0,__RRWEB_EXCLUDE_SHADOW_DOM__:!0,__SENTRY_DEBUG__:!0,__SENTRY_EXCLUDE_REPLAY_WORKER__:!0,__rrMutationObserver:!0,addEventListener:!0,clearTimeout:!0,"console.debug":!0,"console.error":!0,"console.warn":!0,"customElements.get":!0,document:!0,innerHeight:!0,innerWidth:!0,"location.href":!0,"location.origin":!0,parent:!0,setTimeout:!0},packages:{"@sentry/browser>@sentry-internal/browser-utils":!0,"@sentry/browser>@sentry/core":!0,"@sentry/utils":!0}},"@sentry/browser":{globals:{"PerformanceObserver.supportedEntryTypes":!0,Request:!0,URL:!0,"XMLHttpRequest.prototype":!0,__SENTRY_DEBUG__:!0,__SENTRY_RELEASE__:!0,addEventListener:!0,"console.error":!0,"indexedDB.open":!0,"performance.timeOrigin":!0,setTimeout:!0},packages:{"@sentry/browser>@sentry-internal/browser-utils":!0,"@sentry/browser>@sentry-internal/feedback":!0,"@sentry/browser>@sentry-internal/replay-canvas":!0,"@sentry/browser>@sentry-internal/replay":!0,"@sentry/browser>@sentry/core":!0,"@sentry/utils":!0}},"@sentry/browser>@sentry/core":{globals:{Headers:!0,Request:!0,URL:!0,__SENTRY_DEBUG__:!0,__SENTRY_TRACING__:!0,clearInterval:!0,clearTimeout:!0,"console.log":!0,"console.warn":!0,setInterval:!0,setTimeout:!0},packages:{"@sentry/utils":!0}},"@sentry/utils":{globals:{CustomEvent:!0,DOMError:!0,DOMException:!0,EdgeRuntime:!0,Element:!0,ErrorEvent:!0,Event:!0,HTMLElement:!0,Headers:!0,Request:!0,Response:!0,TextDecoder:!0,TextEncoder:!0,__SENTRY_BROWSER_BUNDLE__:!0,__SENTRY_DEBUG__:!0,clearTimeout:!0,"console.error":!0,document:!0,module:!0,process:!0,setTimeout:!0,"performance.now":!0,"performance.timeOrigin":!0,devicePixelRatio:!0,"navigator.userAgent":!0,"navigator.language":!0,"navigator.userAgentData":!0,crypto:!0,onunhandledrejection:!0,addEventListener:!0,PerformanceObserver:!0,"chrome.app":!0,"chrome.runtime":!0,location:!1,top:!0,"location.href":!0},packages:{process:!0}},"@solana/addresses":{globals:{"Intl.Collator":!0,TextEncoder:!0,"crypto.subtle.digest":!0,"crypto.subtle.exportKey":!0},packages:{"@solana/addresses>@solana/assertions":!0,"@solana/addresses>@solana/codecs-core":!0,"@solana/addresses>@solana/codecs-strings":!0,"@solana/addresses>@solana/errors":!0}},"@solana/addresses>@solana/codecs-core":{packages:{"@solana/addresses>@solana/errors":!0}},"@solana/addresses>@solana/codecs-strings":{globals:{TextDecoder:!0,TextEncoder:!0,atob:!0,btoa:!0},packages:{"@solana/addresses>@solana/codecs-core":!0,"@solana/addresses>@solana/errors":!0}},"@solana/addresses>@solana/errors":{globals:{btoa:!0},packages:{"@swc/helpers":!0}},"@metamask/controller-utils>@spruceid/siwe-parser":{globals:{"console.error":!0,"console.log":!0},packages:{"@noble/hashes":!0,"@metamask/controller-utils>@spruceid/siwe-parser>apg-js":!0}},"@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser":{globals:{"console.error":!0,"console.log":!0},packages:{"@noble/hashes":!0,"@metamask/controller-utils>@spruceid/siwe-parser>apg-js":!0}},"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary":{packages:{"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary>@stablelib/int":!0}},"@metamask/profile-sync-controller>siwe>@stablelib/random":{globals:{crypto:!0,msCrypto:!0},packages:{"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary":!0,"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/wipe":!0}},"@metamask/core-backend>@tanstack/query-core":{globals:{AbortController:!0,addEventListener:!1,clearInterval:!0,clearTimeout:!0,"console.error":!0,document:!1,removeEventListener:!0,setInterval:!0,setTimeout:!0,"document.visibilityState":!0},packages:{"@swc/helpers":!0}},"@tanstack/react-query>@tanstack/query-core":{globals:{AbortController:!0,addEventListener:!1,clearInterval:!0,clearTimeout:!0,console:!0,document:!1,navigator:!0,removeEventListener:!0,setInterval:!0,setTimeout:!0}},"@tanstack/react-query":{globals:{ReactQueryClientContext:"write"},packages:{"@tanstack/react-query>@tanstack/query-core":!0,react:!0,"@tanstack/react-query>use-sync-external-store":!0}},"@tanstack/react-virtual":{globals:{document:!0,scrollY:!0},packages:{"@tanstack/react-virtual>@tanstack/virtual-core":!0,react:!0,"react-dom":!0}},"@tanstack/react-virtual>@tanstack/virtual-core":{globals:{"console.info":!0,"console.warn":!0,requestAnimationFrame:!0}},"@toruslabs/eccrypto":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,crypto:!0,msCrypto:!0},packages:{buffer:!0,"@toruslabs/eccrypto>elliptic":!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details":{packages:{"@babel/runtime":!0,"@metamask/seedless-onboarding-controller>@metamask/auth-network-utils>@toruslabs/constants":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/fnd-base":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/http-helpers":!0,loglevel:!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/fnd-base":{packages:{"@metamask/seedless-onboarding-controller>@metamask/auth-network-utils>@toruslabs/constants":!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/http-helpers":{globals:{URL:!0,clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"addons-linter>deepmerge":!0,loglevel:!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/http-helpers":{globals:{URL:!0,clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"addons-linter>deepmerge":!0,loglevel:!0}},"@trezor/connect-web>@trezor/connect-common":{globals:{"console.warn":!0,"localStorage.getItem":!0,"localStorage.setItem":!0,navigator:!0,setTimeout:!0,window:!0},packages:{"@swc/helpers":!0,"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils":!0,"@trezor/connect-web>@trezor/utils":!0,tslib:!0}},"@metamask/eth-trezor-keyring>@trezor/connect-plugin-ethereum":{packages:{"@metamask/eth-sig-util":!0,tslib:!0}},"@trezor/connect-web":{globals:{URLSearchParams:!0,__TREZOR_CONNECT_SRC:!0,addEventListener:!0,btoa:!0,chrome:!0,clearInterval:!0,clearTimeout:!0,"console.warn":!0,"document.body":!0,"document.createElement":!0,"document.createTextNode":!0,"document.getElementById":!0,"document.querySelectorAll":!0,"location.origin":!0,navigator:!0,open:!0,origin:!0,removeEventListener:!0,setInterval:!0,setTimeout:!0},packages:{"@swc/helpers":!0,"@trezor/connect-web>@trezor/connect-common":!0,"@trezor/connect-web>@trezor/connect":!0,"@trezor/connect-web>@trezor/utils":!0,"@trezor/connect-web>@trezor/connect>@trezor/blockchain-link>@trezor/websocket-client":!0,"webpack>events":!0,tslib:!0}},"@trezor/connect-web>@trezor/connect":{packages:{"@swc/helpers":!0,"@trezor/connect-web>@trezor/connect>@trezor/device-utils":!0,"@trezor/connect-web>@trezor/connect>@trezor/protobuf":!0,"@trezor/connect-web>@trezor/connect>@trezor/schema-utils":!0,"@trezor/connect-web>@trezor/connect>@trezor/transport":!0,"@trezor/connect-web>@trezor/utils":!0,tslib:!0}},"@trezor/connect-web>@trezor/connect>@trezor/device-utils":{packages:{tslib:!0}},"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils":{globals:{innerHeight:!0,innerWidth:!0,"location.hostname":!0,"location.origin":!0,"navigator.languages":!0,"navigator.platform":!0,"navigator.userAgent":!0,process:!0,"screen.height":!0,"screen.width":!0},packages:{process:!0,"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils>ua-parser-js":!0}},"@trezor/connect-web>@trezor/connect>@trezor/protobuf":{globals:{"Buffer.from":!0},packages:{"@trezor/connect-web>@trezor/connect>@trezor/schema-utils":!0,buffer:!0,"@google/genai>protobufjs>long":!0,"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs":!0,tslib:!0}},"@trezor/connect-web>@trezor/connect>@trezor/schema-utils":{globals:{Buffer:!0,"console.warn":!0},packages:{"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox":!0,"@swc/helpers":!0,buffer:!0,"ts-mixer":!0}},"@trezor/connect-web>@trezor/utils":{globals:{AbortController:!0,Blob:!0,"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Intl.NumberFormat":!0,TextEncoder:!0,clearInterval:!0,clearTimeout:!0,"console.error":!0,"console.info":!0,"console.log":!0,"console.warn":!0,"crypto.getRandomValues":!0,setInterval:!0,setTimeout:!0},packages:{"@swc/helpers":!0,"@trezor/connect-web>@trezor/utils>bignumber.js":!0,buffer:!0,"webpack>events":!0,tslib:!0}},"@trezor/connect-web>@trezor/connect>@trezor/blockchain-link>@trezor/websocket-client":{globals:{WebSocket:!0,clearTimeout:!0,setTimeout:!0},packages:{"@swc/helpers":!0,"@trezor/connect-web>@trezor/utils":!0,"webpack>events":!0,tslib:!0}},"@zxing/browser":{globals:{HTMLElement:!0,HTMLImageElement:!0,HTMLVideoElement:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,document:!0,navigator:!0,setTimeout:!0},packages:{"@zxing/library":!0}},"@zxing/library":{globals:{HTMLImageElement:!0,HTMLVideoElement:!0,TextDecoder:!0,TextEncoder:!0,"URL.createObjectURL":!0,btoa:!0,"console.log":!0,"console.warn":!0,document:!0,navigator:!0,setTimeout:!0},packages:{"@zxing/library>ts-custom-error":!0}},"openai>abort-controller":{globals:{AbortController:!0}},"currency-formatter>accounting":{globals:{define:!0}},"ethers>@ethersproject/json-wallets>aes-js":{globals:{define:!0}},"eth-lattice-keyring>gridplus-sdk>aes-js":{globals:{define:!0}},"eslint>ajv":{globals:{console:!0},packages:{"eslint>fast-deep-equal":!0,"fast-json-stable-stringify":!0,"eslint>ajv>json-schema-traverse":!0,"uri-js":!0}},"chalk>ansi-styles":{packages:{"chalk>ansi-styles>color-convert":!0}},"@metamask/controller-utils>@spruceid/siwe-parser>apg-js":{packages:{buffer:!0}},"string.prototype.matchall>es-abstract>array-buffer-byte-length":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>is-array-buffer":!0}},"crypto-browserify>public-encrypt>parse-asn1>asn1.js":{packages:{"ethereumjs-util>bn.js":!0,buffer:!0,"pumpify>inherits":!0,"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0}},"@ngraveio/bc-ur>assert":{globals:{console:!0,"process.emitWarning":!0,"process.stderr":!0},packages:{"string.prototype.matchall>call-bind":!0,"@ngraveio/bc-ur>assert>is-nan":!0,"@ngraveio/bc-ur>assert>object-is":!0,"gulp>vinyl-fs>object.assign":!0,process:!0,"browserify>util":!0}},"@metamask/keyring-api>async-mutex":{globals:{clearTimeout:!0,setTimeout:!0},packages:{tslib:!0}},"@metamask/transaction-controller>@metamask/nonce-tracker>async-mutex":{globals:{clearTimeout:!0,setTimeout:!0},packages:{tslib:!0}},"string.prototype.matchall>es-abstract>available-typed-arrays":{packages:{"string.prototype.matchall>es-abstract>typed-array-length>possible-typed-array-names":!0}},"await-semaphore":{globals:{process:!0,setImmediate:!0},packages:{"core-js-pure":!0,process:!0}},axios:{globals:{AbortController:!0,Blob:!0,"Buffer.from":!0,FormData:!0,ReadableStream:!0,URL:!0,URLSearchParams:!0,WorkerGlobalScope:!0,XMLHttpRequest:!0,btoa:!0,clearTimeout:!0,"console.warn":!0,document:!0,fetch:!0,importScripts:!0,"location.href":!0,navigator:!0,process:!0,queueMicrotask:!0,setImmediate:!0,setTimeout:!0,postMessage:!0,Request:!0,Response:!0,TextEncoder:!0},packages:{buffer:!0,"core-js-pure":!0,process:!0}},"@metamask/snaps-controllers>tar-stream>b4a":{globals:{TextDecoder:!0,TextEncoder:!0}},"@ensdomains/content-hash>multihashes>multibase>base-x":{packages:{"koa>content-disposition>safe-buffer":!0}},"base32-encode":{packages:{"base32-encode>to-data-view":!0}},"bignumber.js":{globals:{crypto:!0,define:!0}},"@ledgerhq/hw-app-eth>bignumber.js":{globals:{crypto:!0}},"@metamask/assets-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/bridge-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/bridge-status-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/notification-services-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/smart-transactions-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/subscription-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/transaction-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/transaction-pay-controller>bignumber.js":{globals:{crypto:!0}},"@ngraveio/bc-ur>bignumber.js":{globals:{crypto:!0,define:!0}},"@trezor/connect-web>@trezor/utils>bignumber.js":{globals:{crypto:!0,define:!0}},"eth-lattice-keyring>gridplus-sdk>bignumber.js":{globals:{crypto:!0,define:!0}},"@metamask/design-system-react>blo":{globals:{btoa:!0}},"ethereumjs-util>bn.js":{globals:{Buffer:!0}},bowser:{globals:{define:!0}},"@toruslabs/eccrypto>elliptic>brorand":{globals:{crypto:!0,msCrypto:!0}},"ethereumjs-util>ethereum-cryptography>browserify-aes":{globals:{"Buffer.concat":!0},packages:{buffer:!0,"ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor":!0,"ethereumjs-util>create-hash>cipher-base":!0,"crypto-browserify>browserify-cipher>evp_bytestokey":!0,"pumpify>inherits":!0,"koa>content-disposition>safe-buffer":!0}},"crypto-browserify>browserify-cipher":{packages:{"ethereumjs-util>ethereum-cryptography>browserify-aes":!0,"crypto-browserify>browserify-cipher>browserify-des":!0,"crypto-browserify>browserify-cipher>evp_bytestokey":!0}},"crypto-browserify>browserify-cipher>browserify-des":{globals:{Buffer:!0},packages:{buffer:!0,"ethereumjs-util>create-hash>cipher-base":!0,"crypto-browserify>browserify-cipher>browserify-des>des.js":!0,"pumpify>inherits":!0}},"crypto-browserify>public-encrypt>browserify-rsa":{packages:{"ethereumjs-util>bn.js":!0,"crypto-browserify>randombytes":!0,"koa>content-disposition>safe-buffer":!0}},"crypto-browserify>browserify-sign":{packages:{"ethereumjs-util>bn.js":!0,"crypto-browserify>public-encrypt>browserify-rsa":!0,"ethereumjs-util>create-hash":!0,"crypto-browserify>create-hmac":!0,"@toruslabs/eccrypto>elliptic":!0,"pumpify>inherits":!0,"crypto-browserify>public-encrypt>parse-asn1":!0,"crypto-browserify>browserify-sign>readable-stream":!0,"koa>content-disposition>safe-buffer":!0}},bs58:{packages:{"bs58>base-x":!0}},"ethereumjs-util>ethereum-cryptography>bs58check>bs58":{packages:{"@ensdomains/content-hash>multihashes>multibase>base-x":!0}},"ethereumjs-util>ethereum-cryptography>bs58check":{packages:{"ethereumjs-util>ethereum-cryptography>bs58check>bs58":!0,"ethereumjs-util>create-hash":!0,"koa>content-disposition>safe-buffer":!0}},"eth-lattice-keyring>gridplus-sdk>bs58check":{packages:{"@noble/hashes":!0,bs58:!0}},buffer:{globals:{console:!0,SharedArrayBuffer:!0},packages:{"base64-js":!0,"buffer>ieee754":!0}},"terser>source-map-support>buffer-from":{globals:{Buffer:!0},packages:{buffer:!0}},"ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor":{globals:{Buffer:!0},packages:{buffer:!0}},"@ngraveio/bc-ur>crc>buffer":{globals:{console:!0},packages:{"base64-js":!0,"buffer>ieee754":!0}},"@ensdomains/content-hash>multihashes>buffer":{globals:{console:!0},packages:{"base64-js":!0,"buffer>ieee754":!0}},"remote-redux-devtools>socketcluster-client>buffer":{globals:{console:!0},packages:{"base64-js":!0,"buffer>ieee754":!0}},"@metamask/snaps-utils>validate-npm-package-name>builtins":{globals:{"process.version":!0},packages:{process:!0,semver:!0}},"string.prototype.matchall>call-bind>call-bind-apply-helpers":{packages:{"string.prototype.matchall>es-errors":!0,"browserify>has>function-bind":!0}},"string.prototype.matchall>call-bind":{packages:{"string.prototype.matchall>call-bind>call-bind-apply-helpers":!0,"string.prototype.matchall>call-bind>es-define-property":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>call-bind>set-function-length":!0}},"string.prototype.matchall>call-bound":{packages:{"string.prototype.matchall>call-bind>call-bind-apply-helpers":!0,"string.prototype.matchall>get-intrinsic":!0}},"eth-lattice-keyring>gridplus-sdk>cbor-bigdecimal":{globals:{define:!0},packages:{"eth-lattice-keyring>gridplus-sdk>bignumber.js":!0}},"@ngraveio/bc-ur>cbor-sync":{globals:{Buffer:!0,define:!0},packages:{buffer:!0}},"eth-lattice-keyring>gridplus-sdk>cbor":{globals:{TextDecoder:!0,URL:!0},packages:{buffer:!0,"eth-lattice-keyring>gridplus-sdk>cbor>nofilter":!0,"stream-browserify":!0}},chalk:{packages:{"chalk>ansi-styles":!0,"chalk>supports-color":!0}},"chart.js":{globals:{"Intl.NumberFormat":!0,MutationObserver:!0,OffscreenCanvas:!0,Path2D:!0,ResizeObserver:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,devicePixelRatio:!0,document:!0,removeEventListener:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{"chart.js>@kurkle/color":!0,"@swc/helpers":!0}},"@ensdomains/content-hash>cids":{packages:{"@ensdomains/content-hash>cids>multibase":!0,"@ensdomains/content-hash>multicodec":!0,"@ensdomains/content-hash>cids>multihashes":!0,"@ensdomains/content-hash>cids>uint8arrays":!0}},"ethereumjs-util>create-hash>cipher-base":{packages:{"pumpify>inherits":!0,"koa>content-disposition>safe-buffer":!0,"stream-browserify":!0,"browserify>string_decoder":!0}},"@metamask/jazzicon>color>clone":{globals:{Buffer:!0},packages:{buffer:!0}},"remote-redux-devtools>socketcluster-client>clone":{globals:{Buffer:!0},packages:{"remote-redux-devtools>socketcluster-client>buffer":!0}},cockatiel:{globals:{AbortController:!0,AbortSignal:!0,WeakRef:!0,clearTimeout:!0,performance:!0,"process.hrtime.bigint":!0,setTimeout:!0},packages:{process:!0}},"chalk>ansi-styles>color-convert":{packages:{"jest-canvas-mock>moo-color>color-name":!0}},"@metamask/jazzicon>color>color-convert":{packages:{"@metamask/jazzicon>color>color-convert>color-name":!0}},"@metamask/jazzicon>color>color-string":{packages:{"jest-canvas-mock>moo-color>color-name":!0}},"@metamask/jazzicon>color":{packages:{"@metamask/jazzicon>color>clone":!0,"@metamask/jazzicon>color>color-convert":!0,"@metamask/jazzicon>color>color-string":!0}},"@metamask/snaps-controllers>concat-stream":{globals:{"Buffer.concat":!0,"Buffer.isBuffer":!0},packages:{buffer:!0,"terser>source-map-support>buffer-from":!0,"pumpify>inherits":!0,"@metamask/snaps-controllers>readable-stream":!0,"browserify>concat-stream>typedarray":!0}},"copy-to-clipboard":{globals:{clipboardData:!0,"console.error":!0,"console.warn":!0,"document.body.appendChild":!0,"document.body.removeChild":!0,"document.createElement":!0,"document.createRange":!0,"document.execCommand":!0,"document.getSelection":!0,"navigator.userAgent":!0,prompt:!0},packages:{"copy-to-clipboard>toggle-selection":!0}},"core-js-pure":{globals:{"Bun.version":!0,"Deno.version":!0,document:!0,setTimeout:!0,"navigator.userAgent":!0,MessageChannel:!0,location:!0}},"readable-stream-2>core-util-is":{globals:{"Buffer.isBuffer":!0},packages:{buffer:!0}},"eth-lattice-keyring>gridplus-sdk>crc-32":{globals:{DO_NOT_EXPORT_CRC:!0,define:!0}},"@ngraveio/bc-ur>crc":{packages:{"@ngraveio/bc-ur>crc>buffer":!0}},"crypto-browserify>create-ecdh":{globals:{Buffer:!0},packages:{"ethereumjs-util>bn.js":!0,buffer:!0,"@toruslabs/eccrypto>elliptic":!0}},"ethereumjs-util>create-hash":{packages:{"ethereumjs-util>create-hash>cipher-base":!0,"pumpify>inherits":!0,"ethereumjs-util>create-hash>md5.js":!0,"ethereumjs-util>create-hash>ripemd160":!0,"@ngraveio/bc-ur>sha.js":!0}},"crypto-browserify>pbkdf2>create-hash":{globals:{Buffer:!0},packages:{buffer:!0}},"crypto-browserify>create-hmac":{packages:{"ethereumjs-util>create-hash>cipher-base":!0,"ethereumjs-util>create-hash":!0,"pumpify>inherits":!0,"ethereumjs-util>create-hash>ripemd160":!0,"koa>content-disposition>safe-buffer":!0,"@ngraveio/bc-ur>sha.js":!0}},"cron-parser":{packages:{luxon:!0}},"crypto-browserify":{packages:{"crypto-browserify>browserify-cipher":!0,"crypto-browserify>browserify-sign":!0,"crypto-browserify>create-ecdh":!0,"ethereumjs-util>create-hash":!0,"crypto-browserify>create-hmac":!0,"crypto-browserify>diffie-hellman":!0,"crypto-browserify>pbkdf2":!0,"crypto-browserify>public-encrypt":!0,"crypto-browserify>randombytes":!0,"crypto-browserify>randomfill":!0}},"@metamask/ppom-validator>crypto-js":{globals:{crypto:!0,define:!0,msCrypto:!0}},"react-beautiful-dnd>css-box-model":{globals:{getComputedStyle:!0,pageXOffset:!0,pageYOffset:!0},packages:{"react-beautiful-dnd>css-box-model>tiny-invariant":!0}},"@material-ui/core>@material-ui/styles>jss-plugin-vendor-prefixer>css-vendor":{globals:{"document.createElement":!0,"document.documentElement":!0,getComputedStyle:!0},packages:{"@babel/runtime":!0,"@material-ui/core>@material-ui/styles>jss>is-in-browser":!0}},"currency-formatter":{packages:{"currency-formatter>accounting":!0,"currency-formatter>locale-currency":!0,"react>object-assign":!0}},"nock>debug":{globals:{console:!0,document:!0,localStorage:!0,navigator:!0,process:!0},packages:{"mocha>ms":!0,process:!0}},"@metamask/eth-token-tracker>deep-equal":{packages:{"string.prototype.matchall>es-abstract>array-buffer-byte-length":!0,"string.prototype.matchall>call-bind":!0,"@metamask/eth-token-tracker>deep-equal>es-get-iterator":!0,"string.prototype.matchall>get-intrinsic":!0,"browserify>util>is-arguments":!0,"string.prototype.matchall>es-abstract>is-array-buffer":!0,"@metamask/eth-token-tracker>deep-equal>is-date-object":!0,"string.prototype.matchall>es-abstract>is-regex":!0,"string.prototype.matchall>es-abstract>is-shared-array-buffer":!0,"@lavamoat/webpack>json-stable-stringify>isarray":!0,"@ngraveio/bc-ur>assert>object-is":!0,"@lavamoat/webpack>json-stable-stringify>object-keys":!0,"gulp>vinyl-fs>object.assign":!0,"string.prototype.matchall>regexp.prototype.flags":!0,"string.prototype.matchall>side-channel":!0,"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive":!0,"@metamask/eth-token-tracker>deep-equal>which-collection":!0,"browserify>util>which-typed-array":!0}},"string.prototype.matchall>define-properties>define-data-property":{packages:{"string.prototype.matchall>call-bind>es-define-property":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>gopd":!0}},"string.prototype.matchall>define-properties":{packages:{"string.prototype.matchall>define-properties>define-data-property":!0,"eslint-plugin-react>es-iterator-helpers>has-property-descriptors":!0,"@lavamoat/webpack>json-stable-stringify>object-keys":!0}},"crypto-browserify>browserify-cipher>browserify-des>des.js":{packages:{"pumpify>inherits":!0,"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0}},"crypto-browserify>diffie-hellman":{globals:{Buffer:!0},packages:{"ethereumjs-util>bn.js":!0,buffer:!0,"crypto-browserify>diffie-hellman>miller-rabin":!0,"crypto-browserify>randombytes":!0}},dompurify:{globals:{"console.warn":!0}},"eslint-plugin-react>es-iterator-helpers>has-proto>dunder-proto":{packages:{"string.prototype.matchall>call-bind>call-bind-apply-helpers":!0,"string.prototype.matchall>gopd":!0}},"@toruslabs/eccrypto>elliptic":{packages:{"ethereumjs-util>bn.js":!0,"@toruslabs/eccrypto>elliptic>brorand":!0,"ethers>@ethersproject/sha2>hash.js":!0,"@toruslabs/eccrypto>elliptic>hmac-drbg":!0,"pumpify>inherits":!0,"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0,"@toruslabs/eccrypto>elliptic>minimalistic-crypto-utils":!0}},"@metamask/eth-token-tracker>deep-equal>es-get-iterator":{globals:{process:!0},packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>has-symbols":!0,"browserify>util>is-arguments":!0,"@metamask/eth-token-tracker>deep-equal>es-get-iterator>is-map":!0,"string.prototype.matchall>es-abstract>is-set":!0,"eslint-plugin-react>array-includes>is-string":!0,"@lavamoat/webpack>json-stable-stringify>isarray":!0,process:!0,"string.prototype.matchall>es-abstract>stop-iteration-iterator":!0}},"eth-ens-namehash":{globals:{Buffer:!0,name:"write"},packages:{buffer:!0,"eth-ens-namehash>idna-uts46-hx":!0,"eth-ens-namehash>js-sha3":!0}},"eth-lattice-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,addEventListener:!0,browser:!0,clearInterval:!0,open:!0,setInterval:!0},packages:{"@ethereumjs/tx":!0,"eth-lattice-keyring>@ethereumjs/util":!0,"ethereumjs-util>bn.js":!0,buffer:!0,"crypto-browserify":!0,"webpack>events":!0,"eth-lattice-keyring>gridplus-sdk":!0,"eth-lattice-keyring>rlp":!0}},"eth-method-registry":{packages:{"eth-method-registry>@metamask/ethjs-contract":!0,"eth-method-registry>@metamask/ethjs-query":!0}},"ethereum-cryptography":{globals:{TextDecoder:!0},packages:{"ethereum-cryptography>@noble/curves":!0,"@noble/hashes":!0}},"@ethereumjs/tx>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@ethereumjs/tx>ethereum-cryptography>@noble/hashes":!0}},"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves":!0,"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0},packages:{"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/curves":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0},packages:{"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/curves":!0,"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/accounts-controller>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/accounts-controller>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-hd-keyring>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-sig-util>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0},packages:{"@metamask/eth-sig-util>ethereum-cryptography>@noble/curves":!0,"@metamask/eth-sig-util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography>@noble/hashes":!0}},"@metamask/phishing-controller>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/phishing-controller>ethereum-cryptography>@noble/hashes":!0}},"ethereumjs-util>ethereum-cryptography":{globals:{"Buffer.from":!0},packages:{buffer:!0,"ethereumjs-util>ethereum-cryptography>keccak":!0,"crypto-browserify>randombytes":!0,"ganache>secp256k1":!0}},"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{"@ngraveio/bc-ur>assert":!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,buffer:!0,"crypto-browserify>create-hmac":!0,"ethers>@ethersproject/sha2>hash.js":!0,"ethereumjs-util>ethereum-cryptography>keccak":!0,"crypto-browserify>randombytes":!0,"koa>content-disposition>safe-buffer":!0,"ganache>secp256k1":!0}},"ethereumjs-util":{globals:{Buffer:!0},packages:{"@ngraveio/bc-ur>assert":!0,"ethereumjs-util>bn.js":!0,buffer:!0,"ethereumjs-util>create-hash":!0,"ethereumjs-util>ethereum-cryptography":!0,"ethereumjs-util>rlp":!0}},"@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util":{globals:{Buffer:!0},packages:{"@ngraveio/bc-ur>assert":!0,"ethereumjs-util>bn.js":!0,buffer:!0,"ethereumjs-util>create-hash":!0,"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography":!0,"ethereumjs-util>rlp":!0}},"@metamask/keyring-controller>ethereumjs-wallet":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{"eth-lattice-keyring>gridplus-sdk>aes-js":!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,buffer:!0,"crypto-browserify":!0,"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography":!0,"@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util":!0,"crypto-browserify>randombytes":!0,"ethers>@ethersproject/json-wallets>scrypt-js":!0,"@metamask/keyring-controller>ethereumjs-wallet>utf8":!0,uuid:!0}},ethers:{packages:{"@ethersproject/abi":!0,"ethers>@ethersproject/abstract-signer":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/base64":!0,"ethers>@ethersproject/basex":!0,"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/constants":!0,"@ethersproject/contracts":!0,"ethers>@ethersproject/hash":!0,"@ethersproject/hdnode":!0,"ethers>@ethersproject/json-wallets":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"@ethersproject/providers":!0,"ethers>@ethersproject/random":!0,"ethers>@ethersproject/rlp":!0,"ethers>@ethersproject/sha2":!0,"ethers>@ethersproject/signing-key":!0,"ethers>@ethersproject/solidity":!0,"ethers>@ethersproject/strings":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/units":!0,"ethers>@ethersproject/wallet":!0,"ethers>@ethersproject/web":!0,"ethers>@ethersproject/wordlists":!0}},"eth-method-registry>@metamask/ethjs-contract>ethjs-abi":{globals:{Buffer:!0},packages:{"ethereumjs-util>bn.js":!0,buffer:!0,"eth-ens-namehash>js-sha3":!0,"eth-method-registry>@metamask/ethjs-contract>ethjs-abi>number-to-bn":!0}},"webpack>events":{globals:{console:!0}},"crypto-browserify>browserify-cipher>evp_bytestokey":{packages:{"ethereumjs-util>create-hash>md5.js":!0,"koa>content-disposition>safe-buffer":!0}},"extension-port-stream":{globals:{AggregateError:!0,"navigator.userAgent.includes":!0,"performance.now":!0,queueMicrotask:!0,scheduler:!0,setTimeout:!0},packages:{"readable-stream":!0}},"lightweight-charts>fancy-canvas":{globals:{ResizeObserver:!0,"document.body":!0}},"fast-json-patch":{globals:{addEventListener:!0,clearTimeout:!0,removeEventListener:!0,setTimeout:!0}},"@metamask/snaps-utils>fast-xml-parser":{globals:{"exports.isExist":!0},packages:{"@metamask/snaps-utils>fast-xml-parser>path-expression-matcher":!0,"@metamask/snaps-utils>fast-xml-parser>strnum":!0}},"@metamask/notification-services-controller>firebase":{packages:{"@metamask/notification-services-controller>firebase>@firebase/app":!0,"@metamask/notification-services-controller>firebase>@firebase/messaging":!0}},"react-focus-lock>focus-lock":{globals:{HTMLIFrameElement:!0,"Node.DOCUMENT_FRAGMENT_NODE":!0,"Node.DOCUMENT_NODE":!0,"Node.DOCUMENT_POSITION_CONTAINED_BY":!0,"Node.DOCUMENT_POSITION_CONTAINS":!0,"Node.ELEMENT_NODE":!0,"console.error":!0,"console.warn":!0,document:!0,getComputedStyle:!0,setTimeout:!0}},"browserify>util>which-typed-array>for-each":{packages:{"string.prototype.matchall>es-abstract>is-callable":!0}},"fuse.js":{globals:{console:!0,define:!0}},"string.prototype.matchall>get-intrinsic":{globals:{AggregateError:!0,FinalizationRegistry:!0,Float16Array:!0,WeakRef:!0,Atomics:!0,SharedArrayBuffer:!0},packages:{"string.prototype.matchall>get-intrinsic>async-function":!0,"string.prototype.matchall>get-intrinsic>async-generator-function":!0,"string.prototype.matchall>call-bind>call-bind-apply-helpers":!0,"string.prototype.matchall>call-bind>es-define-property":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>es-object-atoms":!0,"browserify>has>function-bind":!0,"string.prototype.matchall>get-intrinsic>generator-function":!0,"string.prototype.matchall>es-abstract>get-proto":!0,"string.prototype.matchall>gopd":!0,"string.prototype.matchall>has-symbols":!0,"eslint-plugin-react>hasown":!0,"eslint-plugin-react>array-includes>math-intrinsics":!0}},"remote-redux-devtools>redux-devtools-core>get-params":{globals:{GetParams:"write"}},"string.prototype.matchall>es-abstract>get-proto":{packages:{"eslint-plugin-react>es-iterator-helpers>has-proto>dunder-proto":!0,"string.prototype.matchall>es-object-atoms":!0}},"eth-lattice-keyring>gridplus-sdk":{globals:{AbortController:!0,"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,Request:!0,URL:!0,caches:!0,clearTimeout:!0,"console.debug":!0,"console.error":!0,"console.log":!0,"console.warn":!0,fetch:!0,setTimeout:!0,structuredClone:!0},packages:{"eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp":!0,"@metamask/eth-sig-util":!0,"@swc/helpers":!0,"viem>abitype":!0,"eth-lattice-keyring>gridplus-sdk>aes-js":!0,"bitcoin-address-validation>bech32":!0,"eth-lattice-keyring>gridplus-sdk>bignumber.js":!0,"ethereumjs-util>bn.js":!0,"eth-lattice-keyring>gridplus-sdk>bs58check":!0,buffer:!0,"eth-lattice-keyring>gridplus-sdk>cbor-bigdecimal":!0,"eth-lattice-keyring>gridplus-sdk>cbor":!0,"eth-lattice-keyring>gridplus-sdk>crc-32":!0,"@toruslabs/eccrypto>elliptic":!0,"ethers>@ethersproject/sha2>hash.js":!0,lodash:!0,"eth-lattice-keyring>gridplus-sdk>ox":!0,"eth-lattice-keyring>gridplus-sdk>secp256k1":!0,uuid:!0,viem:!0,"openai>zod":!0}},"eslint-plugin-react>es-iterator-helpers>has-property-descriptors":{packages:{"string.prototype.matchall>call-bind>es-define-property":!0}},"axios>form-data>es-set-tostringtag>has-tostringtag":{packages:{"string.prototype.matchall>has-symbols":!0}},"ethereumjs-util>create-hash>md5.js>hash-base":{packages:{"pumpify>inherits":!0,"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream":!0,"koa>content-disposition>safe-buffer":!0}},"ethereumjs-util>create-hash>ripemd160>hash-base":{packages:{"pumpify>inherits":!0,"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream":!0,"koa>content-disposition>safe-buffer":!0}},"crypto-browserify>pbkdf2>ripemd160>hash-base":{globals:{Buffer:!0},packages:{buffer:!0,"pumpify>inherits":!0,"stream-browserify":!0}},"ethers>@ethersproject/sha2>hash.js":{packages:{"pumpify>inherits":!0,"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0}},"eslint-plugin-react>hasown":{packages:{"browserify>has>function-bind":!0}},"@metamask/eth-qr-keyring>hdkey":{packages:{"@ngraveio/bc-ur>assert":!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,"crypto-browserify":!0,"ethereumjs-util>create-hash>ripemd160":!0,"koa>content-disposition>safe-buffer":!0,"ganache>secp256k1":!0}},he:{globals:{define:!0}},"@toruslabs/eccrypto>elliptic>hmac-drbg":{packages:{"ethers>@ethersproject/sha2>hash.js":!0,"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0,"@toruslabs/eccrypto>elliptic>minimalistic-crypto-utils":!0}},"react-redux>hoist-non-react-statics":{packages:{"react-redux>hoist-non-react-statics>react-is":!0}},"https-browserify":{packages:{"stream-http":!0,"browserify>url":!0}},"humanize-duration":{globals:{define:!0}},"@metamask/notification-services-controller>firebase>@firebase/app>idb":{globals:{DOMException:!0,IDBCursor:!0,IDBDatabase:!0,IDBIndex:!0,IDBObjectStore:!0,IDBRequest:!0,IDBTransaction:!0,"indexedDB.deleteDatabase":!0,"indexedDB.open":!0}},"eth-ens-namehash>idna-uts46-hx":{globals:{define:!0},packages:{"eth-ens-namehash>idna-uts46-hx>punycode":!0}},"string.prototype.matchall>internal-slot":{packages:{"string.prototype.matchall>es-errors":!0,"eslint-plugin-react>hasown":!0,"string.prototype.matchall>side-channel":!0}},"browserify>util>is-arguments":{packages:{"string.prototype.matchall>call-bind":!0,"axios>form-data>es-set-tostringtag>has-tostringtag":!0}},"string.prototype.matchall>es-abstract>is-array-buffer":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>get-intrinsic":!0}},"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-bigint":{packages:{"string.prototype.matchall>es-abstract>unbox-primitive>has-bigints":!0}},"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-boolean-object":{packages:{"string.prototype.matchall>call-bound":!0,"axios>form-data>es-set-tostringtag>has-tostringtag":!0}},"string.prototype.matchall>es-abstract>is-callable":{globals:{document:!0}},"@metamask/eth-token-tracker>deep-equal>is-date-object":{packages:{"string.prototype.matchall>call-bound":!0,"axios>form-data>es-set-tostringtag>has-tostringtag":!0}},"browserify>util>is-generator-function":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>get-intrinsic>generator-function":!0,"string.prototype.matchall>es-abstract>get-proto":!0,"axios>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>es-abstract>safe-regex-test":!0}},"@material-ui/core>@material-ui/styles>jss>is-in-browser":{globals:{document:!0}},"@ngraveio/bc-ur>assert>is-nan":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>define-properties":!0}},"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-number-object":{packages:{"string.prototype.matchall>call-bound":!0,"axios>form-data>es-set-tostringtag>has-tostringtag":!0}},"string.prototype.matchall>es-abstract>is-regex":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>gopd":!0,"axios>form-data>es-set-tostringtag>has-tostringtag":!0,"eslint-plugin-react>hasown":!0}},"string.prototype.matchall>es-abstract>is-shared-array-buffer":{packages:{"string.prototype.matchall>call-bound":!0}},"eslint-plugin-react>array-includes>is-string":{packages:{"string.prototype.matchall>call-bound":!0,"axios>form-data>es-set-tostringtag>has-tostringtag":!0}},"string.prototype.matchall>es-abstract>es-to-primitive>is-symbol":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>has-symbols":!0,"string.prototype.matchall>es-abstract>safe-regex-test":!0}},"browserify>util>is-typed-array":{packages:{"browserify>util>which-typed-array":!0}},"@metamask/eth-token-tracker>deep-equal>which-collection>is-weakset":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>get-intrinsic":!0}},"@open-rpc/test-coverage>isomorphic-fetch":{globals:{"fetch.bind":!0},packages:{"@open-rpc/test-coverage>isomorphic-fetch>whatwg-fetch":!0}},"@ensdomains/content-hash>js-base64":{globals:{Base64:"write",Buffer:!0,TextDecoder:!0,TextEncoder:!0,atob:!0,btoa:!0,define:!0},packages:{buffer:!0}},"eth-ens-namehash>js-sha3":{globals:{define:!0,process:!0},packages:{process:!0}},"remote-redux-devtools>jsan":{globals:{"console.warn":!0}},"@ngraveio/bc-ur>jsbi":{globals:{define:!0}},"@metamask/message-manager>jsonschema":{packages:{"browserify>url":!0}},"@material-ui/core>@material-ui/styles>jss-plugin-camel-case":{packages:{"@material-ui/core>@material-ui/styles>jss-plugin-camel-case>hyphenate-style-name":!0}},"@material-ui/core>@material-ui/styles>jss-plugin-default-unit":{globals:{CSS:!0},packages:{"@material-ui/core>@material-ui/styles>jss":!0}},"@material-ui/core>@material-ui/styles>jss-plugin-global":{packages:{"@babel/runtime":!0,"@material-ui/core>@material-ui/styles>jss":!0}},"@material-ui/core>@material-ui/styles>jss-plugin-nested":{packages:{"@babel/runtime":!0,"@material-ui/core>@material-ui/styles>jss>tiny-warning":!0}},"@material-ui/core>@material-ui/styles>jss-plugin-rule-value-function":{packages:{"@material-ui/core>@material-ui/styles>jss":!0,"@material-ui/core>@material-ui/styles>jss>tiny-warning":!0}},"@material-ui/core>@material-ui/styles>jss-plugin-vendor-prefixer":{packages:{"@material-ui/core>@material-ui/styles>jss-plugin-vendor-prefixer>css-vendor":!0,"@material-ui/core>@material-ui/styles>jss":!0}},"@material-ui/core>@material-ui/styles>jss":{globals:{CSS:!0,"document.createElement":!0,"document.querySelector":!0},packages:{"@babel/runtime":!0,"@material-ui/core>@material-ui/styles>jss>is-in-browser":!0,"@material-ui/core>@material-ui/styles>jss>tiny-warning":!0}},"ethereumjs-util>ethereum-cryptography>keccak":{globals:{"Buffer.alloc":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{buffer:!0,"ethereumjs-util>ethereum-cryptography>keccak>readable-stream":!0}},"lightweight-charts":{globals:{Image:!0,ResizeObserver:!0,URL:!0,cancelAnimationFrame:!0,chrome:!0,clearTimeout:!0,devicePixelRatio:!0,"document.activeElement":!0,"document.body":!0,"document.createElement":!0,"document.documentElement":!0,"document.getElementById":!0,"document.getSelection":!0,getComputedStyle:!0,"location.href":!0,navigator:!0,"performance.now":!0,queueMicrotask:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{"lightweight-charts>fancy-canvas":!0}},"currency-formatter>locale-currency":{globals:{countryCode:!0}},localforage:{globals:{Blob:!0,BlobBuilder:!0,FileReader:!0,IDBKeyRange:!0,MSBlobBuilder:!0,MozBlobBuilder:!0,OIndexedDB:!0,WebKitBlobBuilder:!0,atob:!0,btoa:!0,"console.error":!0,"console.info":!0,"console.warn":!0,define:!0,fetch:!0,indexedDB:!0,localStorage:!0,mozIndexedDB:!0,msIndexedDB:!0,"navigator.platform":!0,"navigator.userAgent":!0,openDatabase:!0,setTimeout:!0,webkitIndexedDB:!0}},lodash:{globals:{define:!0,_:!0,setTimeout:!0,clearTimeout:!0}},loglevel:{globals:{console:!0,define:!0,"document.cookie":!0,localStorage:!0,log:"write",navigator:!0}},"@google/genai>protobufjs>long":{globals:{"WebAssembly.Instance":!0,"WebAssembly.Module":!0,define:!0}},"lottie-web":{globals:{Blob:!0,Howl:!0,OffscreenCanvas:!0,"URL.createObjectURL":!0,Worker:!0,XMLHttpRequest:!0,bodymovin:"write",clearInterval:!0,console:!0,define:!0,"document.body":!0,"document.createElement":!0,"document.createElementNS":!0,"document.getElementsByClassName":!0,"document.getElementsByTagName":!0,"document.querySelectorAll":!0,"document.readyState":!0,"location.origin":!0,"location.pathname":!0,navigator:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0}},luxon:{globals:{Intl:!0}},"@metamask/snaps-utils>marked":{globals:{"console.error":!0,"console.warn":!0},packages:{"@swc/helpers":!0}},"ethereumjs-util>create-hash>md5.js":{packages:{"ethereumjs-util>create-hash>md5.js>hash-base":!0,"pumpify>inherits":!0,"koa>content-disposition>safe-buffer":!0}},"@storybook/addon-docs>remark-external-links>mdast-util-definitions":{packages:{"react-markdown>unist-util-visit":!0}},"react-markdown>remark-parse>mdast-util-from-markdown":{packages:{"react-markdown>remark-parse>mdast-util-from-markdown>mdast-util-to-string":!0,"react-markdown>remark-parse>mdast-util-from-markdown>micromark":!0,"react-syntax-highlighter>refractor>parse-entities":!0,"react-markdown>vfile>unist-util-stringify-position":!0}},"react-markdown>remark-rehype>mdast-util-to-hast":{globals:{"console.warn":!0},packages:{"@storybook/addon-docs>remark-external-links>mdast-util-definitions":!0,"react-markdown>remark-rehype>mdast-util-to-hast>mdurl":!0,"react-markdown>remark-rehype>mdast-util-to-hast>unist-builder":!0,"react-markdown>remark-rehype>mdast-util-to-hast>unist-util-generated":!0,"react-markdown>remark-rehype>mdast-util-to-hast>unist-util-position":!0,"react-markdown>unist-util-visit":!0}},"eth-lattice-keyring>@ethereumjs/util>micro-ftch":{globals:{"Buffer.concat":!0,Headers:!0,TextDecoder:!0,URL:!0,btoa:!0,fetch:!0,process:!0},packages:{buffer:!0,"https-browserify":!0,process:!0,"stream-http":!0,"browserify>url":!0,"browserify>util":!0}},"react-markdown>remark-parse>mdast-util-from-markdown>micromark":{packages:{"react-syntax-highlighter>refractor>parse-entities":!0}},"crypto-browserify>diffie-hellman>miller-rabin":{packages:{"ethereumjs-util>bn.js":!0,"@toruslabs/eccrypto>elliptic>brorand":!0}},"@ensdomains/content-hash>cids>multibase":{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@ensdomains/content-hash>cids>multibase>@multiformats/base-x":!0}},"@ensdomains/content-hash>multihashes>multibase":{packages:{"@ensdomains/content-hash>multihashes>multibase>base-x":!0,"@ensdomains/content-hash>multihashes>buffer":!0,"@ensdomains/content-hash>multihashes>web-encoding":!0}},"@ensdomains/content-hash>multicodec":{packages:{"@ensdomains/content-hash>multicodec>uint8arrays":!0,"sass-embedded>varint":!0}},"@metamask/assets-controllers>multiformats":{globals:{TextDecoder:!0,TextEncoder:!0,"console.warn":!0,"crypto.subtle.digest":!0}},"@ensdomains/content-hash>multihashes":{packages:{"@ensdomains/content-hash>multihashes>buffer":!0,"@ensdomains/content-hash>multihashes>multibase":!0,"@ensdomains/content-hash>multihashes>varint":!0,"@ensdomains/content-hash>multihashes>web-encoding":!0}},"@ensdomains/content-hash>cids>multihashes":{packages:{"@ensdomains/content-hash>cids>multibase":!0,"@ensdomains/content-hash>cids>multihashes>uint8arrays":!0,"@ensdomains/content-hash>cids>multihashes>varint":!0}},nanoid:{globals:{"crypto.getRandomValues":!0}},"eth-lattice-keyring>gridplus-sdk>cbor>nofilter":{globals:{TextDecoder:!0},packages:{buffer:!0,"stream-browserify":!0}},"eth-method-registry>@metamask/ethjs-contract>ethjs-abi>number-to-bn":{packages:{"ethereumjs-util>bn.js":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":!0}},"string.prototype.matchall>es-abstract>object-inspect":{globals:{HTMLElement:!0,WeakRef:!0}},"@ngraveio/bc-ur>assert>object-is":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>define-properties":!0}},"gulp>vinyl-fs>object.assign":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>define-properties":!0,"string.prototype.matchall>es-object-atoms":!0,"string.prototype.matchall>has-symbols":!0,"@lavamoat/webpack>json-stable-stringify>object-keys":!0}},"@metamask/object-multiplex>once":{packages:{"@metamask/object-multiplex>once>wrappy":!0}},"eth-lattice-keyring>gridplus-sdk>ox":{globals:{TextDecoder:!0,TextEncoder:!0,"crypto.getRandomValues":!0},packages:{"eth-lattice-keyring>gridplus-sdk>ox>@noble/curves":!0,"@noble/hashes":!0}},"@metamask/assets-controller>p-limit":{packages:{"@metamask/assets-controller>p-limit>yocto-queue":!0}},"crypto-browserify>public-encrypt>parse-asn1":{packages:{"crypto-browserify>public-encrypt>parse-asn1>asn1.js":!0,"ethereumjs-util>ethereum-cryptography>browserify-aes":!0,"crypto-browserify>browserify-cipher>evp_bytestokey":!0,"crypto-browserify>pbkdf2":!0,"koa>content-disposition>safe-buffer":!0}},"react-syntax-highlighter>refractor>parse-entities":{globals:{"document.createElement":!0}},"path-browserify":{globals:{"process.cwd":!0},packages:{process:!0}},"crypto-browserify>pbkdf2":{globals:{crypto:!0,process:!0,queueMicrotask:!0,setImmediate:!0,setTimeout:!0},packages:{"crypto-browserify>pbkdf2>create-hash":!0,process:!0,"crypto-browserify>pbkdf2>ripemd160":!0,"koa>content-disposition>safe-buffer":!0,"@ngraveio/bc-ur>sha.js":!0,"@ngraveio/bc-ur>sha.js>to-buffer":!0}},"@material-ui/core>popper.js":{globals:{MSInputMethodContext:!0,"Node.DOCUMENT_POSITION_FOLLOWING":!0,cancelAnimationFrame:!0,"console.warn":!0,devicePixelRatio:!0,document:!0,getComputedStyle:!0,innerHeight:!0,innerWidth:!0,navigator:!0,requestAnimationFrame:!0,setTimeout:!0}},"react-tippy>popper.js":{globals:{MSInputMethodContext:!0,"Node.DOCUMENT_POSITION_FOLLOWING":!0,cancelAnimationFrame:!0,"console.warn":!0,devicePixelRatio:!0,document:!0,getComputedStyle:!0,innerHeight:!0,innerWidth:!0,"navigator.userAgent":!0,requestAnimationFrame:!0,setTimeout:!0}},process:{globals:{clearTimeout:!0,setTimeout:!0}},"readable-stream-2>process-nextick-args":{globals:{process:!0},packages:{process:!0}},"eth-method-registry>@metamask/ethjs-query>promise-to-callback":{packages:{"eth-method-registry>@metamask/ethjs-query>promise-to-callback>is-fn":!0,"eth-method-registry>@metamask/ethjs-query>promise-to-callback>set-immediate-shim":!0}},"react-markdown>property-information":{packages:{"watchify>xtend":!0}},"@trezor/connect-web>@trezor/connect>@trezor/protobuf>protobufjs":{globals:{process:!0,setTimeout:!0},packages:{"@google/genai>protobufjs>@protobufjs/aspromise":!0,"@google/genai>protobufjs>@protobufjs/base64":!0,"@google/genai>protobufjs>@protobufjs/codegen":!0,"@google/genai>protobufjs>@protobufjs/eventemitter":!0,"@google/genai>protobufjs>@protobufjs/fetch":!0,"@google/genai>protobufjs>@protobufjs/float":!0,"@google/genai>protobufjs>@protobufjs/inquire":!0,"@google/genai>protobufjs>@protobufjs/path":!0,"@google/genai>protobufjs>@protobufjs/pool":!0,"@google/genai>protobufjs>@protobufjs/utf8":!0}},"crypto-browserify>public-encrypt":{packages:{"ethereumjs-util>bn.js":!0,"crypto-browserify>public-encrypt>browserify-rsa":!0,"ethereumjs-util>create-hash":!0,"crypto-browserify>public-encrypt>parse-asn1":!0,"crypto-browserify>randombytes":!0,"koa>content-disposition>safe-buffer":!0}},"browserify>url>punycode":{globals:{define:!0}},"qrcode.react":{globals:{Path2D:!0,devicePixelRatio:!0},packages:{react:!0}},"mockttp>express>qs":{packages:{"string.prototype.matchall>side-channel":!0}},"@metamask/snaps-controllers>tar-stream>streamx>queue-tick":{globals:{queueMicrotask:!0}},"react-beautiful-dnd>raf-schd":{globals:{cancelAnimationFrame:!0,requestAnimationFrame:!0}},"crypto-browserify>randombytes":{globals:{crypto:!0,msCrypto:!0,"process.nextTick":!0},packages:{process:!0,"koa>content-disposition>safe-buffer":!0}},"crypto-browserify>randomfill":{globals:{crypto:!0,msCrypto:!0,"process.browser":!0,"process.nextTick":!0},packages:{process:!0,"crypto-browserify>randombytes":!0,"koa>content-disposition>safe-buffer":!0}},react:{packages:{"react>object-assign":!0}},"react-beautiful-dnd":{globals:{"Element.prototype":!0,__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:!0,cancelAnimationFrame:!0,clearTimeout:!0,console:!0,document:!0,getComputedStyle:!0,pageXOffset:!0,pageYOffset:!0,requestAnimationFrame:!0,scrollBy:!0,setTimeout:!0,addEventListener:!0,removeEventListener:!0},packages:{"@babel/runtime":!0,"react-beautiful-dnd>css-box-model":!0,"react-beautiful-dnd>memoize-one":!0,"react-beautiful-dnd>raf-schd":!0,react:!0,"react-dom":!0,"react-redux":!0,redux:!0,"react-beautiful-dnd>use-memo-one":!0}},"react-chartjs-2":{globals:{setTimeout:!0},packages:{"chart.js":!0,react:!0}},"react-focus-lock>react-clientside-effect":{packages:{"@babel/runtime":!0,react:!0}},"react-compiler-runtime":{globals:{"console.error":!0},packages:{react:!0}},"react-devtools-core":{globals:{CSSStyleRule:!0,ElementTypeClass:!0,ElementTypeForwardRef:!0,ElementTypeFunction:!0,ElementTypeMemo:!0,ElementTypeVirtual:!0,ErrorEvent:!0,HTMLElement:!0,LOCAL_STORAGE_COMPONENT_FILTER_PREFERENCES_KEY:!0,LOCAL_STORAGE_OPEN_IN_EDITOR_URL:!0,"Node.ELEMENT_NODE":!0,SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY:!0,SESSION_STORAGE_RECORD_TIMELINE_KEY:!0,SESSION_STORAGE_RELOAD_AND_PROFILE_KEY:!0,URL:!0,WebSocket:!0,__REACT_DEVTOOLS_COMPONENT_FILTERS__:!0,__REACT_DEVTOOLS_GLOBAL_HOOK__:!0,__REACT_DEVTOOLS_TARGET_WINDOW__:!0,cancelAnimationFrame:!0,chrome:!0,clearTimeout:!0,console:!0,define:!0,devicePixelRatio:!0,devtoolsJestTestScheduler:!0,dispatchEvent:!0,document:!0,getComputedStyle:!0,getInObject:!0,innerHeight:!0,innerWidth:!0,"localStorage.getItem":!0,"localStorage.removeItem":!0,"localStorage.setItem":!0,localStorageGetItem:!0,localStorageSetItem:!0,"navigator.userAgent":!0,performance:!0,queueMicrotask:!0,"regeneratorRuntime.mark":!0,"regeneratorRuntime.wrap":!0,reportError:!0,requestAnimationFrame:!0,"sessionStorage.getItem":!0,"sessionStorage.removeItem":!0,"sessionStorage.setItem":!0,sessionStorageGetItem:!0,sessionStorageRemoveItem:!0,sessionStorageSetItem:!0,setInObject:!0,setTimeout:!0}},"react-dom":{globals:{MSApp:!0,__REACT_DEVTOOLS_GLOBAL_HOOK__:!0,addEventListener:!0,clearTimeout:!0,clipboardData:!0,"console.error":!0,document:!0,removeEventListener:!0,setTimeout:!0,event:!1,HTMLIFrameElement:!0},packages:{"react>object-assign":!0,react:!0,"react-dom>scheduler":!0}},"react-popper>react-fast-compare":{globals:{Element:!0,"console.warn":!0}},"react-focus-lock":{globals:{addEventListener:!0,"console.error":!0,"console.warn":!0,document:!0,removeEventListener:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"react-focus-lock>focus-lock":!0,"prop-types":!0,react:!0,"react-focus-lock>react-clientside-effect":!0,"react-focus-lock>use-callback-ref":!0,"react-focus-lock>use-sidecar":!0}},"react-idle-timer":{globals:{clearTimeout:!0,document:!0,setTimeout:!0},packages:{"prop-types":!0,react:!0}},"react-markdown":{globals:{"console.warn":!0},packages:{"react-markdown>comma-separated-tokens":!0,"prop-types":!0,"react-markdown>property-information":!0,react:!0,"react-redux>react-is":!0,"react-markdown>remark-parse":!0,"react-markdown>remark-rehype":!0,"react-markdown>space-separated-tokens":!0,"react-markdown>style-to-object":!0,"react-markdown>unified":!0,"react-markdown>unist-util-visit":!0,"react-markdown>vfile":!0}},"react-popper":{globals:{document:!0},packages:{"@popperjs/core":!0,react:!0,"react-popper>react-fast-compare":!0}},"react-redux":{globals:{document:!0},packages:{"@babel/runtime":!0,"react-redux>hoist-non-react-statics":!0,"prop-types":!0,react:!0,"react-dom":!0,"react-redux>react-is":!0}},"react-router-dom":{globals:{FormData:!0,URL:!0,URLSearchParams:!0,__reactRouterVersion:"write",addEventListener:!0,confirm:!0,document:!0,"location.href":!0,removeEventListener:!0,scrollTo:!0,scrollY:!0,"sessionStorage.getItem":!0,"sessionStorage.setItem":!0,setTimeout:!0,history:!0},packages:{"react-router-dom>@remix-run/router":!0,react:!0,"react-dom":!0,"react-router-dom>react-router":!0}},"react-router-dom>react-router":{globals:{"console.error":!0,"console.warn":!0},packages:{"react-router-dom>@remix-run/router":!0,react:!0}},"react-simple-file-input":{globals:{File:!0,FileReader:!0,"console.warn":!0},packages:{"prop-types":!0,react:!0}},"react-tippy":{globals:{Element:!0,MSStream:!0,MutationObserver:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,define:!0,document:!0,getComputedStyle:!0,innerHeight:!0,innerWidth:!0,"navigator.maxTouchPoints":!0,"navigator.msMaxTouchPoints":!0,"navigator.userAgent":!0,performance:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{"react-tippy>popper.js":!0,react:!0,"react-dom":!0}},"react-toggle-button":{globals:{clearTimeout:!0,"console.warn":!0,define:!0,performance:!0,setTimeout:!0,requestAnimationFrame:!0,cancelAnimationFrame:!0},packages:{react:!0}},"react-transition-group":{globals:{Element:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"react-transition-group>dom-helpers":!0,"prop-types":!0,react:!0,"react-dom":!0}},"readable-stream":{globals:{AbortController:!0,AbortSignal:!0,AggregateError:!0,Blob:!0,queueMicrotask:!0},packages:{"openai>abort-controller":!0,buffer:!0,"webpack>events":!0,process:!0,"browserify>string_decoder":!0}},"@metamask/json-rpc-middleware-stream>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{buffer:!0,"webpack>events":!0,"pumpify>inherits":!0,process:!0,"browserify>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"@metamask/object-multiplex>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{buffer:!0,"webpack>events":!0,"pumpify>inherits":!0,process:!0,"browserify>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"@metamask/obs-store>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{buffer:!0,"webpack>events":!0,"pumpify>inherits":!0,process:!0,"browserify>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"@metamask/post-message-stream>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{buffer:!0,"webpack>events":!0,"pumpify>inherits":!0,process:!0,"browserify>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"@metamask/providers>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{buffer:!0,"webpack>events":!0,"pumpify>inherits":!0,process:!0,"browserify>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"@metamask/snaps-controllers>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{buffer:!0,"webpack>events":!0,"pumpify>inherits":!0,process:!0,"browserify>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"crypto-browserify>browserify-sign>readable-stream":{globals:{"process.browser":!0,"process.stderr":!0,"process.stdout":!0,"process.version.slice":!0,setImmediate:!0},packages:{"core-js-pure":!0,"readable-stream-2>core-util-is":!0,"webpack>events":!0,"pumpify>inherits":!0,"crypto-browserify>browserify-sign>readable-stream>isarray":!0,process:!0,"readable-stream-2>process-nextick-args":!0,"crypto-browserify>browserify-sign>readable-stream>safe-buffer":!0,"crypto-browserify>browserify-sign>readable-stream>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{buffer:!0,"webpack>events":!0,"pumpify>inherits":!0,process:!0,"browserify>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{buffer:!0,"webpack>events":!0,"pumpify>inherits":!0,process:!0,"browserify>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"ethereumjs-util>ethereum-cryptography>keccak>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{buffer:!0,"webpack>events":!0,"pumpify>inherits":!0,process:!0,"browserify>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{buffer:!0,"webpack>events":!0,"pumpify>inherits":!0,process:!0,"browserify>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"stream-browserify>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{buffer:!0,"webpack>events":!0,"pumpify>inherits":!0,process:!0,"browserify>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"stream-http>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{buffer:!0,"webpack>events":!0,"pumpify>inherits":!0,process:!0,"browserify>string_decoder":!0,"@storybook/react>util-deprecate":!0}},"@metamask/snaps-controllers>readable-web-to-node-stream":{packages:{"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream":!0}},redux:{globals:{console:!0},packages:{"@babel/runtime":!0}},"remote-redux-devtools>redux-devtools-core":{globals:{ErrorUtils:!0,console:!0,devToolsOptions:!0,onerror:"write",serializeState:!0},packages:{"remote-redux-devtools>redux-devtools-core>get-params":!0,"remote-redux-devtools>jsan":!0,lodash:!0,"remote-redux-devtools>redux-devtools-core>nanoid":!0,"remote-redux-devtools>redux-devtools-core>remotedev-serialize":!0}},"remote-redux-devtools>redux-devtools-instrument":{globals:{chrome:!0,"console.error":!0,process:!0,setTimeout:!0},packages:{lodash:!0,process:!0,"mockttp>@httptoolkit/subscriptions-transport-ws>symbol-observable":!0}},"string.prototype.matchall>regexp.prototype.flags":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>define-properties":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>es-abstract>get-proto":!0,"string.prototype.matchall>gopd":!0,"string.prototype.matchall>set-function-name":!0}},"react-markdown>remark-parse":{packages:{"react-markdown>remark-parse>mdast-util-from-markdown":!0}},"react-markdown>remark-rehype":{packages:{"react-markdown>remark-rehype>mdast-util-to-hast":!0}},"remote-redux-devtools":{globals:{"console.log":!0,"console.warn":!0,fetch:!0,setTimeout:!0},packages:{"remote-redux-devtools>jsan":!0,"remote-redux-devtools>redux-devtools-core":!0,"remote-redux-devtools>redux-devtools-instrument":!0,"remote-redux-devtools>rn-host-detect":!0,"remote-redux-devtools>socketcluster-client":!0}},"react-markdown>vfile>replace-ext":{packages:{"path-browserify":!0}},reselect:{globals:{WeakRef:!0,"console.warn":!0},packages:{"@swc/helpers":!0}},"@metamask/snaps-utils>rfdc":{globals:{Buffer:!0},packages:{buffer:!0}},"@material-ui/pickers>rifm":{globals:{"console.error":!0,"document.addEventListener":!0,"document.removeEventListener":!0},packages:{"@babel/runtime":!0,react:!0}},"ethereumjs-util>create-hash>ripemd160":{packages:{buffer:!0,"ethereumjs-util>create-hash>ripemd160>hash-base":!0,"pumpify>inherits":!0}},"crypto-browserify>pbkdf2>ripemd160":{globals:{Buffer:!0},packages:{buffer:!0,"crypto-browserify>pbkdf2>ripemd160>hash-base":!0,"pumpify>inherits":!0}},"eth-lattice-keyring>rlp":{globals:{TextEncoder:!0}},"ethereumjs-util>rlp":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{"ethereumjs-util>bn.js":!0,buffer:!0}},"remote-redux-devtools>rn-host-detect":{globals:{__DEV__:!0,__fbBatchedBridgeConfig:!0,console:!0}},"wait-on>rxjs":{globals:{clearTimeout:!0,"setTimeout.apply":!0},packages:{tslib:!0}},"koa>content-disposition>safe-buffer":{packages:{buffer:!0}},"crypto-browserify>browserify-sign>readable-stream>safe-buffer":{packages:{buffer:!0}},"crypto-browserify>browserify-sign>readable-stream>string_decoder>safe-buffer":{packages:{buffer:!0}},"string.prototype.matchall>es-abstract>safe-regex-test":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>es-abstract>is-regex":!0}},"remote-redux-devtools>socketcluster-client>sc-channel":{packages:{"remote-redux-devtools>socketcluster-client>sc-channel>component-emitter":!0}},"remote-redux-devtools>socketcluster-client>sc-formatter":{globals:{Buffer:!0}},"react-dom>scheduler":{globals:{MessageChannel:!0,cancelAnimationFrame:!0,clearTimeout:!0,console:!0,performance:!0,requestAnimationFrame:!0,setTimeout:!0,SharedArrayBuffer:!0}},"ethers>@ethersproject/json-wallets>scrypt-js":{globals:{define:!0,setImmediate:!0,setTimeout:!0},packages:{"core-js-pure":!0}},"ganache>secp256k1":{packages:{"@toruslabs/eccrypto>elliptic":!0}},"eth-lattice-keyring>gridplus-sdk>secp256k1":{packages:{"@toruslabs/eccrypto>elliptic":!0}},semver:{globals:{"console.error":!0,process:!0},packages:{process:!0}},"string.prototype.matchall>call-bind>set-function-length":{packages:{"string.prototype.matchall>define-properties>define-data-property":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>gopd":!0,"eslint-plugin-react>es-iterator-helpers>has-property-descriptors":!0}},"string.prototype.matchall>set-function-name":{packages:{"string.prototype.matchall>define-properties>define-data-property":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>set-function-name>functions-have-names":!0,"eslint-plugin-react>es-iterator-helpers>has-property-descriptors":!0}},"eth-method-registry>@metamask/ethjs-query>promise-to-callback>set-immediate-shim":{globals:{setImmediate:!0,"setTimeout.apply":!0},packages:{"core-js-pure":!0}},"@ngraveio/bc-ur>sha.js":{packages:{"pumpify>inherits":!0,"koa>content-disposition>safe-buffer":!0,"@ngraveio/bc-ur>sha.js>to-buffer":!0}},"string.prototype.matchall>side-channel>side-channel-list":{packages:{"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>es-abstract>object-inspect":!0}},"string.prototype.matchall>side-channel>side-channel-map":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>es-abstract>object-inspect":!0}},"string.prototype.matchall>side-channel>side-channel-weakmap":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>es-abstract>object-inspect":!0,"string.prototype.matchall>side-channel>side-channel-map":!0}},"string.prototype.matchall>side-channel":{packages:{"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>es-abstract>object-inspect":!0,"string.prototype.matchall>side-channel>side-channel-list":!0,"string.prototype.matchall>side-channel>side-channel-map":!0,"string.prototype.matchall>side-channel>side-channel-weakmap":!0}},"@metamask/profile-sync-controller>siwe":{globals:{"console.error":!0,"console.warn":!0},packages:{"@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser":!0,"@metamask/profile-sync-controller>siwe>@stablelib/random":!0,ethers:!0,"@metamask/controller-utils>@spruceid/siwe-parser>valid-url":!0}},"remote-redux-devtools>socketcluster-client":{globals:{WebSocket:!0,WorkerGlobalScope:!0,addEventListener:!0,clearTimeout:!0,localStorage:!0,location:!0,removeEventListener:!0,setTimeout:!0},packages:{"remote-redux-devtools>socketcluster-client>buffer":!0,"remote-redux-devtools>socketcluster-client>clone":!0,"remote-redux-devtools>socketcluster-client>component-emitter":!0,"remote-redux-devtools>socketcluster-client>linked-list":!0,"remote-redux-devtools>socketcluster-client>querystring":!0,"remote-redux-devtools>socketcluster-client>sc-channel":!0,"remote-redux-devtools>socketcluster-client>sc-errors":!0,"remote-redux-devtools>socketcluster-client>sc-formatter":!0,"remote-redux-devtools>socketcluster-client>uuid":!0}},"string.prototype.matchall>es-abstract>stop-iteration-iterator":{globals:{StopIteration:!0},packages:{"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>internal-slot":!0}},"stream-browserify":{packages:{"webpack>events":!0,"pumpify>inherits":!0,"stream-browserify>readable-stream":!0}},"stream-http":{globals:{AbortController:!0,Blob:!0,"Buffer.alloc":!0,"Buffer.from":!0,MSStreamReader:!0,ReadableStream:!0,WritableStream:!0,XDomainRequest:!0,XMLHttpRequest:!0,clearTimeout:!0,fetch:!0,"location.protocol.search":!0,"process.nextTick":!0,setTimeout:!0},packages:{buffer:!0,"stream-http>builtin-status-codes":!0,"pumpify>inherits":!0,process:!0,"stream-http>readable-stream":!0,"browserify>url":!0,"watchify>xtend":!0}},"@metamask/snaps-controllers>tar-stream>streamx":{packages:{"webpack>events":!0,"@metamask/snaps-controllers>tar-stream>fast-fifo":!0,"@metamask/snaps-controllers>tar-stream>streamx>queue-tick":!0}},"browserify>string_decoder":{packages:{"koa>content-disposition>safe-buffer":!0}},"crypto-browserify>browserify-sign>readable-stream>string_decoder":{packages:{"crypto-browserify>browserify-sign>readable-stream>string_decoder>safe-buffer":!0}},"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":{packages:{"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>is-hex-prefixed":!0}},"react-markdown>style-to-object":{packages:{"react-markdown>style-to-object>inline-style-parser":!0}},"mockttp>@httptoolkit/subscriptions-transport-ws>symbol-observable":{globals:{module:!0}},"@metamask/snaps-controllers>tar-stream":{packages:{"@metamask/snaps-controllers>tar-stream>b4a":!0,"@metamask/snaps-controllers>tar-stream>fast-fifo":!0,"@metamask/snaps-controllers>tar-stream>streamx":!0}},"@ngraveio/bc-ur>sha.js>to-buffer":{packages:{"@lavamoat/webpack>json-stable-stringify>isarray":!0,"koa>content-disposition>safe-buffer":!0,"string.prototype.matchall>es-abstract>typed-array-buffer":!0}},"copy-to-clipboard>toggle-selection":{globals:{"document.activeElement":!0,"document.getSelection":!0}},tslib:{globals:{SuppressedError:!0}},tweetnacl:{globals:{crypto:!0,msCrypto:!0,nacl:"write"}},"string.prototype.matchall>es-abstract>typed-array-buffer":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-errors":!0,"browserify>util>is-typed-array":!0}},"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils>ua-parser-js":{globals:{define:!0,"navigator.userAgentData":!0}},"@ensdomains/content-hash>cids>uint8arrays":{globals:{TextDecoder:!0},packages:{"@ensdomains/content-hash>cids>multibase":!0}},"@ensdomains/content-hash>multicodec>uint8arrays":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/assets-controllers>multiformats":!0}},"@ensdomains/content-hash>cids>multihashes>uint8arrays":{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@ensdomains/content-hash>cids>multibase":!0}},"@metamask/keyring-controller>ulid":{globals:{"console.error":!0,require:!0,crypto:!0}},"react-markdown>unified":{packages:{"react-markdown>unified>bail":!0,"react-markdown>unified>extend":!0,"react-markdown>unified>is-buffer":!0,"mocha>yargs-unparser>is-plain-obj":!0,"react-markdown>unified>trough":!0,"react-markdown>vfile":!0}},"react-markdown>unist-util-visit>unist-util-visit-parents":{packages:{"react-markdown>unist-util-visit>unist-util-is":!0}},"react-markdown>unist-util-visit":{packages:{"react-markdown>unist-util-visit>unist-util-visit-parents":!0}},"uri-js":{globals:{define:!0}},"browserify>url":{packages:{"browserify>url>punycode":!0,"mockttp>express>qs":!0}},"react-focus-lock>use-callback-ref":{packages:{react:!0}},"react-beautiful-dnd>use-memo-one":{packages:{react:!0}},"react-focus-lock>use-sidecar":{packages:{tslib:!0}},"@tanstack/react-query>use-sync-external-store":{globals:{document:!1,__REACT_DEVTOOLS_GLOBAL_HOOK__:!1,"document.createElement":!0},packages:{react:!0}},"@storybook/react>util-deprecate":{globals:{"console.trace":!0,"console.warn":!0,localStorage:!0}},"browserify>util":{globals:{"console.error":!0,"console.log":!0,"console.trace":!0,process:!0,SharedArrayBuffer:!0},packages:{"pumpify>inherits":!0,"browserify>util>is-arguments":!0,"browserify>util>is-generator-function":!0,"browserify>util>is-typed-array":!0,process:!0,"browserify>util>which-typed-array":!0}},uuid:{globals:{crypto:!0,msCrypto:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>uuid":{globals:{crypto:!0,msCrypto:!0}},"@metamask/eth-qr-keyring>uuid":{globals:{crypto:!0}},"@metamask/eth-snap-keyring>uuid":{globals:{crypto:!0}},"@metamask/keyring-api>uuid":{globals:{crypto:!0}},"@metamask/keyring-snap-client>uuid":{globals:{crypto:!0}},"remote-redux-devtools>socketcluster-client>uuid":{globals:{crypto:!0,msCrypto:!0}},"@metamask/perps-controller>@nktkas/hyperliquid>valibot":{globals:{Blob:!0,File:!0,"Intl.Segmenter":!0,TextEncoder:!0,URL:!0}},"@metamask/snaps-utils>validate-npm-package-name":{packages:{"@metamask/snaps-utils>validate-npm-package-name>builtins":!0}},"react-markdown>vfile>vfile-message":{packages:{"react-markdown>vfile>unist-util-stringify-position":!0}},"react-markdown>vfile":{globals:{"process.cwd":!0},packages:{"react-markdown>vfile>is-buffer":!0,"path-browserify":!0,process:!0,"react-markdown>vfile>replace-ext":!0,"react-markdown>vfile>vfile-message":!0}},viem:{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@noble/hashes":!0}},"@ensdomains/content-hash>multihashes>web-encoding":{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"browserify>util":!0}},"webextension-polyfill":{globals:{browser:!0,chrome:!0,"console.error":!0,"console.warn":!0,define:!0}},"@open-rpc/test-coverage>isomorphic-fetch>whatwg-fetch":{globals:{AbortController:!0,Blob:!0,FileReader:!0,FormData:!0,"URLSearchParams.prototype.isPrototypeOf":!0,XMLHttpRequest:!0,"console.warn":!0,setTimeout:!0,DOMException:!0,fetch:!0}},"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive":{packages:{"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-bigint":!0,"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-boolean-object":!0,"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-number-object":!0,"eslint-plugin-react>array-includes>is-string":!0,"string.prototype.matchall>es-abstract>es-to-primitive>is-symbol":!0}},"@metamask/eth-token-tracker>deep-equal>which-collection":{packages:{"@metamask/eth-token-tracker>deep-equal>es-get-iterator>is-map":!0,"string.prototype.matchall>es-abstract>is-set":!0,"@metamask/eth-token-tracker>deep-equal>which-collection>is-weakmap":!0,"@metamask/eth-token-tracker>deep-equal>which-collection>is-weakset":!0}},"browserify>util>which-typed-array":{packages:{"string.prototype.matchall>es-abstract>available-typed-arrays":!0,"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>call-bound":!0,"browserify>util>which-typed-array>for-each":!0,"string.prototype.matchall>es-abstract>get-proto":!0,"string.prototype.matchall>gopd":!0,"axios>form-data>es-set-tostringtag>has-tostringtag":!0}},"openai>zod":{globals:{File:!0,JSONSchema:!0,URL:!0,__zod_globalRegistry:!0,atob:!0,btoa:!0,coerce:!0,core:!0,iso:!0,locales:!0,navigator:!0,regexes:!0,util:!0}}}},e.ENUM={NAME_globalThis:"G",NAME_scopeTerminator:"ST",NAME_runtimeHandler:"RH",RUNTIME_KEY:"_LM_"},(()=>{let t={exports:{}};function r({createFunctionWrapper:e=l,handleGlobalWrite:t=!1,knownWritableFields:c=new Set}={}){return{getEndowmentsForConfig:u,copyWrappedGlobals:y,getBuiltinForConfig:h,createFunctionWrapper:e,makeMinimalViewOfRef:m,copyValueAtPath:d,applyGetSetPropDescTransforms:p,applyEndowmentPropDescTransforms:f};function u(e,r,a,n){if(!r.globals)return{};let s=[],o=new Set,i=[];return Object.entries(r.globals).forEach(([e,r])=>{let a=e.split(".");if(a.some(e=>"__proto__"===e))throw Error(`Lavamoat - "__proto__" disallowed when creating minimal view. saw "${e}"`);if(!1===r)return void i.push(e);if("write"===r){if(!t)return;if(a.length>1)throw Error(`LavaMoat - write access is only allowed at the top level, saw "${e}"`);o.add(e),s.push(e);return}if(!0!==r)throw Error(`LavaMoat - unrecognizable policy value (${typeof r}) for path "${e}"`);s.push(e)}),s.sort((e,t)=>e.length-t.length),m(e,s,a,n,i,o)}function m(e,t,r,a,n=[],s=new Set){let l={};return t.forEach(t=>{let u=t.split(".");c.has(u[0])?s.has(u[0])?o(u[0],e,l):i(u,e,l):d("",u,n,e,l,r,a)}),l}function h(e,t,r){let a=[],n=[];return Object.entries(r).forEach(([e,r])=>{let s=e.split(".");if(t===s[0]){let e=s.slice(1).join(".");!0===r?a.push(e):!1===r&&n.push(e)}}),m(e,a.sort(),void 0,void 0,n)}function d(t,r,a,o,i,l=o,c=i){if(0===r.length)throw Error("unable to copy, must have pathParts, was empty");let[u,...m]=r,h=n(t,u),{prop:f}=b(o,u);if(s(f))return;let g=Reflect.getOwnPropertyDescriptor(i,u);if(g){if(!("value"in g))throw Error(`unable to copy on to targetRef, targetRef has a getter at "${h}"`);let e=typeof g.value;if("object"!==e&&"function"!==e)throw Error(`unable to copy on to targetRef, targetRef value is not an obj or func at "${h}"`)}if(m.length>0){let e,{sourceValue:t,sourceWritable:r}=w(f);if(g&&!a.includes(h))e=g.value;else{let t={};Reflect.defineProperty(i,u,{value:t,writable:r,enumerable:f.enumerable,configurable:f.configurable}),e=t}d(h,m,a,t,e);return}if(a.includes(h))return void console.warn(`LavaMoat - conflicting rules exist for "${h}"`);if(!("value"in f))return void Reflect.defineProperty(i,u,p(f,c,l));let{sourceValue:y,sourceWritable:k}=w(f);if("function"!=typeof y)return void Reflect.defineProperty(i,u,f);function w(e){let t,r;if("value"in e)t=e.value,r=e.writable;else if("get"in e&&e.get)t=e.get.call(l),r="set"in e;else throw Error("getEndowmentsForConfig - property descriptor missing a getter");return{sourceValue:t,sourceWritable:r}}Reflect.defineProperty(i,u,{value:e(y,e=>e===c,l),writable:k,enumerable:f.enumerable,configurable:f.configurable})}function f(e,t,r){let a=e;return p(a=g(a,t,r),t,r)}function p(t,r,a){let n={...t};return t.get&&(n.get=function(){let n=Reflect.apply(t.get,this===r?a:this,[]);return"function"==typeof n?e(n,e=>e===r,a):n}),t.set&&(n.set=function(e){let n=this===r?a:this;return Reflect.apply(t.set,n,[e])}),n}function g(t,r,a){if(!("value"in t&&"function"==typeof t.value))return t;let n=e(t.value,e=>e===r,a);return{...t,value:n}}function b(e,t){let r=e;for(;;){if(!r)return{prop:null,receiver:null};let e=typeof r;if("object"===e||"function"===e){let e=Reflect.getOwnPropertyDescriptor(r,t);if(e)return{receiver:r,prop:e};r=Reflect.getPrototypeOf(r)}else r=r.__proto__}}function y(e,t,r=["globalThis"]){let n=a(e),s=n.findIndex(e=>e===Object.prototype),o=-1===s;o&&(s=n.length);let i=n.slice(0,s);i.forEach(t=>{Object.values(Object.getOwnPropertyDescriptors(t)).forEach(t=>{if("get"in t&&t.get)try{Reflect.apply(t.get,e,[])}catch{}})});let l=i.map((e,t)=>{let r=Object.getOwnPropertyDescriptors(e);return o&&t===i.length-1?Object.fromEntries(Object.entries(r).filter(([e])=>!(e in Object.prototype))):r});for(let a of(Object.entries(Object.assign(Object.create(null),...l.reverse())).filter(([e])=>!(e in t)).filter(([e])=>!r.includes(e)).forEach(([r,a])=>{let n=f(a,t,e);Reflect.defineProperty(t,r,n)}),r))a in t||(t[a]=t);return t}}function a(e){let t=[],r=e;for(;r&&("object"==typeof r||"function"==typeof r);)t.push(r),r=Reflect.getPrototypeOf(r);return t}function n(e,t){return e&&0!==e.length?`${e}.${t}`:t}function s(e){return!e}function o(e,t,r){let a=Reflect.getOwnPropertyDescriptor(t,e)?.enumerable;Reflect.defineProperty(r,e,{configurable:!1,enumerable:a,set(r){t[e]=r},get:()=>t[e]})}function i(e,t,r){let a=Reflect.getOwnPropertyDescriptor(t,e[0])?.enumerable,s=r,o="";for(let t=0;t<e.length-1;t++){o=n(o,e[t]);let r=e[t];if(Reflect.getOwnPropertyDescriptor(s,r)?.get)throw Error(`LavaMoat - "${e[0]}" is writeable elsewhere and both "${o}" and "${e.join(".")}" are allowed for one package. One of these entries is redundant.`);"object"!=typeof s[r]&&(s[r]={}),s=s[r]}Reflect.defineProperty(s,e[e.length-1],{get:()=>{let r=t[e[0]],a=t;for(let t=1;t<e.length;t++)a=r,r=r[e[t]];return"function"==typeof r&&(r=r.bind(a)),r},writeable:!1,enumerable:a,configurable:!1})}function l(e,t,r){let a=function(...a){return new.target?Reflect.construct(e,a,new.target):Reflect.apply(e,t(this)?r:this,a)};return Object.defineProperties(a,Object.getOwnPropertyDescriptors(e)),Reflect.getPrototypeOf(a)!==Reflect.getPrototypeOf(e)&&Object.setPrototypeOf(a,Reflect.getPrototypeOf(e)),a}t.exports,t.exports=r,t.exports._test={instrumentDynamicValueAtPath:i},e.endowmentsToolkit=t.exports})(),(()=>{let t={exports:{}},r=t.exports,{defineProperty:a}=Object,{call:n}=Function.prototype,s=new WeakMap,o=globalThis,i=MessageEvent.prototype,l=new Compartment().globalThis,c=Object.getOwnPropertyDescriptor(i,"source");if(c&&c.get){let e=n.bind(c.get);a(i,"source",{...c,get(){let t=e(this);return t===o||t===o.window?s.get(this)||l:t}})}r.MessageEvent=(e,t,r)=>{let a=e.MessageEvent;a&&(e.MessageEvent=function(e,t){let n=new a(e,t);return s.set(n,r),n},e.MessageEvent.prototype=a.prototype)},r.addEventListener=(e,t,r)=>{let a=e.addEventListener;a&&(e.addEventListener=(e,n,o)=>"message"===e?a.call(t,e,e=>(s.set(e,r),n.call(r,e)),o):a.call(r,e,n,o))},"event"in globalThis&&(globalThis.event=void 0);let{getOwnPropertyNames:u}=Object;function m(e){let t=[],r=e;for(;r&&("object"==typeof r||"function"==typeof r);)t.push(r),r=Reflect.getPrototypeOf(r);return t}(function(e){if("window"in e&&"object"==typeof e.window&&e!==e.window){let t=e.window,r=m(t),a=m(e);r.pop();let n=r.flatMap(e=>u(e)),s=new Set(a.flatMap(e=>u(e)));for(let r of n)if(!s.has(r)&&r in globalThis&&void 0!==t[r])try{e[r]=e[r]}catch(e){}}})(globalThis),e.repairs=t.exports})(),(()=>{let t,r={exports:{}};r.exports;let{repairIntrinsics:a}=globalThis,n="object"==typeof console?console.warn:()=>{},s=void 0!==a;s?(a(e.options.lockdown),LOCKDOWN_SHIMS.forEach(e=>{e()}),hardenIntrinsics()):n("LavaMoatPlugin: runtime execution started without SES present, switching to no-op.");let{keys:o,create:i,freeze:l,assign:c,defineProperty:u,defineProperties:m,getOwnPropertyDescriptors:h,fromEntries:d,entries:f,values:p}=Object,{Proxy:g,Math:b,Date:y}=globalThis,{harden:k}=globalThis,w=new Set;p(e.policy.resources).forEach(e=>{e.globals&&"object"==typeof e.globals&&f(e.globals).forEach(([e,t])=>{"write"===t&&w.add(e)})});let{getEndowmentsForConfig:v,copyWrappedGlobals:_,getBuiltinForConfig:j}=e.endowmentsToolkit({handleGlobalWrite:!0,knownWritableFields:w}),{NAME_globalThis:S,NAME_scopeTerminator:E,NAME_runtimeHandler:x}=e.ENUM,T=l(new g(l(i(null)),l({has:l(()=>!0)}))),A=globalThis,R=["window","self","global","globalThis","frames"],M=o(e.repairs||{}),L=new Map,O=t=>{let r=e.idmap.find(([,e])=>e.includes(t));if(r)return r[0]};e.defaultExport=l((r,a)=>{if(!s)return i(null);if(!L.has(r)){let a=new Compartment({Math:b,Date:y});((r,a)=>{if(r===e.root)_(A,t=a,R),e?.scuttling?.scuttle(A,e.options?.scuttleGlobalThis);else{let n=e.policy.resources[r]||{},s=v(t,n,globalThis,a);M.length>0&&n.globals&&o(n.globals).length>0&&M.forEach(t=>{if(s[t]){let r=e.repairs[t];r&&r(s,A,a)}}),m(a,{...h(s),...d(R.map(e=>[e,{value:a}]))}),e.debug&&e.debug.debugProxy(a,t,r)}})(r,a.globalThis),L.set(r,a)}let f=i(null),{__webpack_require__:p}=a,{module:w}=a;if(p){let t=function(t,...a){"number"!=typeof t&&(t=`${t}`);let n=p.bind(this,t,...a);var s=t;if(void 0===s)throw Error("Requested specifier is undefined");if(e.unenforceable.includes(s)||r===e.root)return n();let i=e.policy.resources[r]||{};if(e.externals[s]){let t=e.externals[s];if(i.builtin){if(i.builtin[t])return n();if(t&&!t.includes(".")&&o(i.builtin).some(e=>e.startsWith(`${t}.`)))return j(n(),t,i.builtin)}if(i.packages){let e=O(t);if(e&&i.packages[e])return n()}}let l=O(s);if(!l){if(e.ctxm.includes(s))throw Error(`'${r}' is trying to load a module dynamically from a dependency it has not been allowed using the following Webpack Context Module: '${s}'`);throw Error(`Requested specifier '${s}' is not allowed as a builtin and is not a known dependency of '${r}'; regenerate policy or add it to policy-override.json.`)}if(l===r||i.packages?.[l])return n();throw Error(`Policy does not allow importing ${l} from ${r}`)};for(let a of(t.e=t=>{if(!e.kch.includes(t))throw Error(`Attempt to load a chunk that was not known at compile time: ${t} from ${r}`);return p.e(t)},["O","n","d","o","r","s","t","b","j"]))t[a]=k(p[a]);t.m=new g({},{has:(e,t)=>(n(`A module attempted to read ${String(t)} directly from webpack's module cache`),!1)}),t.g=L.get(r).globalThis,t.nmd=e=>e===w?p.nmd(w):e,t.hmd=e=>e===w?p.hmd(w):e,f.__webpack_require__=t}let P=c(i(null),a,f);u(P,"module",{get:()=>w,set:()=>{}});let B=P.exports;return u(P,"exports",{get:()=>B,set:e=>{B=e}}),l(P),l(c(i(null),{[E]:T,[x]:P,[S]:L.get(r).globalThis}))}),e.runtime=r.exports})(),__webpack_require__._LM_=e.defaultExport,"undefined"!=typeof harden&&harden(__webpack_require__._LM_)})(),(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(221057);var t=__webpack_require__(187362);var r=__webpack_require__(226104);var a=__webpack_require__(909807);var n=__webpack_require__(314598);(()=>{if(a.MB){(0,a.qS)();return}n.Q$&&(0,n.bp)(),(0,t.Ay)()&&((0,r.Qf)(),document.prerendering&&(0,e.zM)()&&document.addEventListener("prerenderingchange",()=>{(0,r.jf)(new Error("Prerendered page has become active."))}),window.addEventListener("pageshow",e=>{e.persisted&&(console.warn("BFCached page has become active. Restoring the streams."),(0,r.O_)())}),window.addEventListener("pagehide",e=>{e.persisted&&(console.warn("Page may become BFCached. Destroying the streams."),(0,r.co)())}))})()}}).call(__webpack_require__._LM_("$root$",{__webpack_require__}))()})();