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ified by jsDelivr using Terser v5.48.0.\n * Original file: /npm/enhanced-resolve@5.26.1/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n\n\"use strict\";\n\nconst memoize = require(\"./util/memoize\");\n\n/** @typedef {import(\"./CachedInputFileSystem\")} CachedInputFileSystem */\n/** @typedef {import(\"./CachedInputFileSystem\").BaseFileSystem} BaseFileSystem */\n/** @typedef {import(\"./CloneBasenamePlugin\")} CloneBasenamePlugin */\n/** @typedef {import(\"./LogInfoPlugin\")} LogInfoPlugin */\n/** @typedef {import(\"./PnpPlugin\").PnpApiImpl} PnpApi */\n/** @typedef {import(\"./Resolver\")} Resolver */\n/** @typedef {import(\"./Resolver\").Context} Context */\n/** @typedef {import(\"./Resolver\").FileSystem} FileSystem */\n/** @typedef {import(\"./Resolver\").ResolveCallback} ResolveCallback */\n/** @typedef {import(\"./Resolver\").ResolveContext} ResolveContext */\n/** @typedef {import(\"./Resolver\").ResolveRequest} ResolveRequest */\n/** @typedef {import(\"./Resolver\").SyncFileSystem} SyncFileSystem */\n/** @typedef {import(\"./ResolverFactory\").Plugin} Plugin */\n/** @typedef {import(\"./ResolverFactory\").UserResolveOptions} ResolveOptions */\n/** @typedef {import(\"./TsconfigPathsPlugin\")} TsconfigPathsPlugin */\n\n/**\n * @typedef {{\n * (context: Context, parent: string | URL, specifier: string | URL, resolveContext: ResolveContext, callback: ResolveCallback): void,\n * (context: Context, parent: string | URL, specifier: string | URL, callback: ResolveCallback): void,\n * (parent: string | URL, specifier: string | URL, resolveContext: ResolveContext, callback: ResolveCallback): void,\n * (parent: string | URL, specifier: string | URL, callback: ResolveCallback): void,\n * }} ResolveFunctionAsync\n */\n\n/**\n * @typedef {{\n * (context: Context, parent: string | URL, specifier: string | URL, resolveContext?: ResolveContext): string | false,\n * (parent: string | URL, specifier: string | URL, resolveContext?: ResolveContext): string | false,\n * }} ResolveFunction\n */\n\n/**\n * @typedef {{\n * (context: Context, parent: string | URL, specifier: string | URL, resolveContext?: ResolveContext): Promise<string | false>,\n * (parent: string | URL, specifier: string | URL, resolveContext?: ResolveContext): Promise<string | false>,\n * }} ResolveFunctionPromise\n */\n\nconst getCachedFileSystem = memoize(() => require(\"./CachedInputFileSystem\"));\n\nconst getNodeFileSystem = memoize(() => {\n\tconst fs = require(\"graceful-fs\");\n\n\tconst CachedInputFileSystem = getCachedFileSystem();\n\n\treturn new CachedInputFileSystem(fs, 4000);\n});\nconst getNodeContext = memoize(() => ({\n\tenvironments: [\"node+es3+es5+process+native\"],\n}));\n\nconst getResolverFactory = memoize(() => require(\"./ResolverFactory\"));\n\nconst getAsyncResolver = memoize(() =>\n\tgetResolverFactory().createResolver({\n\t\tconditionNames: [\"node\"],\n\t\textensions: [\".js\", \".json\", \".node\"],\n\t\tfileSystem: getNodeFileSystem(),\n\t}),\n);\n\n/**\n * @type {ResolveFunctionAsync}\n */\nconst resolve =\n\t/**\n\t * @param {object | string | URL} context context\n\t * @param {string | URL} parent parent path\n\t * @param {string | URL | ResolveContext | ResolveCallback} specifier specifier to resolve\n\t * @param {ResolveContext | ResolveCallback=} resolveContext resolve context\n\t * @param {ResolveCallback=} callback callback\n\t */\n\t(context, parent, specifier, resolveContext, callback) => {\n\t\tif (typeof context === \"string\" || context instanceof URL) {\n\t\t\tcallback = /** @type {ResolveCallback} */ (resolveContext);\n\t\t\tresolveContext = /** @type {ResolveContext} */ (specifier);\n\t\t\tspecifier = parent;\n\t\t\tparent = context;\n\t\t\tcontext = getNodeContext();\n\t\t}\n\t\tif (typeof callback !== \"function\") {\n\t\t\tcallback = /** @type {ResolveCallback} */ (resolveContext);\n\t\t}\n\t\tgetAsyncResolver().resolve(\n\t\t\tcontext,\n\t\t\tparent,\n\t\t\t/** @type {string} */ (specifier),\n\t\t\t/** @type {ResolveContext} */ (resolveContext),\n\t\t\t/** @type {ResolveCallback} */ (callback),\n\t\t);\n\t};\n\nconst getSyncResolver = memoize(() =>\n\tgetResolverFactory().createResolver({\n\t\tconditionNames: [\"node\"],\n\t\textensions: [\".js\", \".json\", \".node\"],\n\t\tuseSyncFileSystemCalls: true,\n\t\tfileSystem: getNodeFileSystem(),\n\t}),\n);\n\n/**\n * @type {ResolveFunction}\n */\nconst resolveSync =\n\t/**\n\t * @param {object | string | URL} context context\n\t * @param {string | URL} parent parent path\n\t * @param {string | URL | ResolveContext | undefined} specifier specifier to resolve\n\t * @param {ResolveContext=} resolveContext resolve context\n\t * @returns {string | false} resolved path\n\t */\n\t(context, parent, specifier, resolveContext) => {\n\t\tif (typeof context === \"string\" || context instanceof URL) {\n\t\t\tresolveContext = /** @type {ResolveContext} */ (specifier);\n\t\t\tspecifier = parent;\n\t\t\tparent = context;\n\t\t\tcontext = getNodeContext();\n\t\t}\n\t\treturn getSyncResolver().resolveSync(\n\t\t\tcontext,\n\t\t\tparent,\n\t\t\t/** @type {string} */ (specifier),\n\t\t\t/** @type {ResolveContext} */ (resolveContext),\n\t\t);\n\t};\n\n/**\n * @type {ResolveFunctionPromise}\n */\nconst resolvePromise =\n\t/**\n\t * @param {object | string | URL} context context\n\t * @param {string | URL} parent parent path\n\t * @param {string | URL | ResolveContext | undefined} specifier specifier to resolve\n\t * @param {ResolveContext=} resolveContext resolve context\n\t * @returns {Promise<string | false>} resolved path\n\t */\n\t(context, parent, specifier, resolveContext) => {\n\t\tif (typeof context === \"string\" || context instanceof URL) {\n\t\t\tresolveContext = /** @type {ResolveContext} */ (specifier);\n\t\t\tspecifier = parent;\n\t\t\tparent = context;\n\t\t\tcontext = getNodeContext();\n\t\t}\n\t\treturn getAsyncResolver().resolvePromise(\n\t\t\tcontext,\n\t\t\tparent,\n\t\t\t/** @type {string} */ (specifier),\n\t\t\t/** @type {ResolveContext} */ (resolveContext),\n\t\t);\n\t};\n\n/** @typedef {Omit<ResolveOptions, \"fileSystem\"> & Partial<Pick<ResolveOptions, \"fileSystem\">>} ResolveOptionsOptionalFS */\n\n/**\n * @param {ResolveOptionsOptionalFS} options Resolver options\n * @returns {ResolveFunctionAsync} Resolver function\n */\nfunction create(options) {\n\tconst resolver = getResolverFactory().createResolver({\n\t\t...options,\n\t\tfileSystem: options.fileSystem || getNodeFileSystem(),\n\t});\n\t/**\n\t * @param {object | string | URL} context Custom context\n\t * @param {string | URL} parent Base/parent path\n\t * @param {string | URL | ResolveContext | ResolveCallback} specifier Specifier to resolve\n\t * @param {ResolveContext | ResolveCallback=} resolveContext Resolve context\n\t * @param {ResolveCallback=} callback Result callback\n\t */\n\treturn function create(context, parent, specifier, resolveContext, callback) {\n\t\tif (typeof context === \"string\" || context instanceof URL) {\n\t\t\tcallback = /** @type {ResolveCallback} */ (resolveContext);\n\t\t\tresolveContext = /** @type {ResolveContext} */ (specifier);\n\t\t\tspecifier = parent;\n\t\t\tparent = context;\n\t\t\tcontext = getNodeContext();\n\t\t}\n\t\tif (typeof callback !== \"function\") {\n\t\t\tcallback = /** @type {ResolveCallback} */ (resolveContext);\n\t\t}\n\t\tresolver.resolve(\n\t\t\tcontext,\n\t\t\tparent,\n\t\t\t/** @type {string} */ (specifier),\n\t\t\t/** @type {ResolveContext} */ (resolveContext),\n\t\t\tcallback,\n\t\t);\n\t};\n}\n\n/**\n * @param {ResolveOptionsOptionalFS} options Resolver options\n * @returns {ResolveFunction} Resolver function\n */\nfunction createSync(options) {\n\tconst resolver = getResolverFactory().createResolver({\n\t\tuseSyncFileSystemCalls: true,\n\t\t...options,\n\t\tfileSystem: options.fileSystem || getNodeFileSystem(),\n\t});\n\t/**\n\t * @param {object | string | URL} context custom context\n\t * @param {string | URL} parent base/parent path\n\t * @param {string | URL | ResolveContext | undefined} specifier specifier to resolve\n\t * @param {ResolveContext=} resolveContext Resolve context\n\t * @returns {string | false} Resolved path or false\n\t */\n\treturn function createSync(context, parent, specifier, resolveContext) {\n\t\tif (typeof context === \"string\" || context instanceof URL) {\n\t\t\tresolveContext = /** @type {ResolveContext} */ (specifier);\n\t\t\tspecifier = parent;\n\t\t\tparent = context;\n\t\t\tcontext = getNodeContext();\n\t\t}\n\t\treturn resolver.resolveSync(\n\t\t\tcontext,\n\t\t\tparent,\n\t\t\t/** @type {string} */ (specifier),\n\t\t\t/** @type {ResolveContext} */ (resolveContext),\n\t\t);\n\t};\n}\n\n/**\n * @param {ResolveOptionsOptionalFS} options Resolver options\n * @returns {ResolveFunctionPromise} Resolver function\n */\nfunction createPromise(options) {\n\tconst resolver = getResolverFactory().createResolver({\n\t\t...options,\n\t\tfileSystem: options.fileSystem || getNodeFileSystem(),\n\t});\n\t/**\n\t * @param {object | string | URL} context Custom context\n\t * @param {string | URL} parent Base/parent path\n\t * @param {string | URL | ResolveContext | undefined} specifier Specifier to resolve\n\t * @param {ResolveContext=} resolveContext Resolve context\n\t * @returns {Promise<string | false>} resolved path\n\t */\n\treturn function createPromise(context, parent, specifier, resolveContext) {\n\t\tif (typeof context === \"string\" || context instanceof URL) {\n\t\t\tresolveContext = /** @type {ResolveContext} */ (specifier);\n\t\t\tspecifier = parent;\n\t\t\tparent = context;\n\t\t\tcontext = getNodeContext();\n\t\t}\n\t\treturn resolver.resolvePromise(\n\t\t\tcontext,\n\t\t\tparent,\n\t\t\t/** @type {string} */ (specifier),\n\t\t\t/** @type {ResolveContext} */ (resolveContext),\n\t\t);\n\t};\n}\n\n/**\n * @template A\n * @template B\n * @param {A} obj input a\n * @param {B} exports input b\n * @returns {A & B} merged\n */\nconst mergeExports = (obj, exports) => {\n\tconst descriptors = Object.getOwnPropertyDescriptors(exports);\n\tObject.defineProperties(obj, descriptors);\n\treturn /** @type {A & B} */ (Object.freeze(obj));\n};\n\nmodule.exports = mergeExports(resolve, {\n\tget sync() {\n\t\treturn resolveSync;\n\t},\n\tget promise() {\n\t\treturn resolvePromise;\n\t},\n\tcreate: mergeExports(create, {\n\t\tget sync() {\n\t\t\treturn createSync;\n\t\t},\n\t\tget promise() {\n\t\t\treturn createPromise;\n\t\t},\n\t}),\n\tget ResolverFactory() {\n\t\treturn getResolverFactory();\n\t},\n\tget CachedInputFileSystem() {\n\t\treturn getCachedFileSystem();\n\t},\n\tget CloneBasenamePlugin() {\n\t\treturn require(\"./CloneBasenamePlugin\");\n\t},\n\tget LogInfoPlugin() {\n\t\treturn require(\"./LogInfoPlugin\");\n\t},\n\tget TsconfigPathsPlugin() {\n\t\treturn require(\"./TsconfigPathsPlugin\");\n\t},\n\tget forEachBail() {\n\t\treturn require(\"./forEachBail\");\n\t},\n});\n"]}