pi-lean-dimension 0.2.4 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/node_modules/pi-lean-portal/AGENTS.md +15 -23
- package/node_modules/pi-lean-portal/README.md +35 -7
- package/node_modules/pi-lean-portal/__tests__/browser-toggle-profile.test.ts +12 -1
- package/node_modules/pi-lean-portal/__tests__/browser-toggle.test.ts +263 -1126
- package/node_modules/pi-lean-portal/__tests__/fetch-backend.test.ts +6 -32
- package/node_modules/pi-lean-portal/__tests__/helpers/mock-python-bridge.py +1 -1
- package/node_modules/pi-lean-portal/__tests__/helpers/probe-user-backend.ts +1 -2
- package/node_modules/pi-lean-portal/__tests__/helpers/setup-temp-dir.ts +26 -0
- package/node_modules/pi-lean-portal/__tests__/plugin-config-browser.test.ts +1 -1
- package/node_modules/pi-lean-portal/__tests__/plugin-contract.test.ts +1 -1
- package/node_modules/pi-lean-portal/__tests__/plugin-loading.test.ts +1 -1
- package/node_modules/pi-lean-portal/__tests__/probe-user-backend.test.ts +1 -1
- package/node_modules/pi-lean-portal/__tests__/python-adapter.test.ts +65 -69
- package/node_modules/pi-lean-portal/__tests__/router-dispatch.test.ts +1 -14
- package/node_modules/pi-lean-portal/__tests__/run-contributed-suites.test.ts +31 -16
- package/node_modules/pi-lean-portal/__tests__/snapshot-cache.test.ts +1 -1
- package/node_modules/pi-lean-portal/__tests__/web-guides.test.ts +146 -19
- package/node_modules/pi-lean-portal/backends/playwright-base/playwright-plugin.ts +1 -1
- package/node_modules/pi-lean-portal/backends/python-adapter.ts +3 -3
- package/node_modules/pi-lean-portal/backends/python-base/pi_browser_bridge/__init__.py +2 -4
- package/node_modules/pi-lean-portal/backends/python-base/pi_browser_bridge/__pycache__/__init__.cpython-312.pyc +0 -0
- package/node_modules/pi-lean-portal/backends/python-base/pi_browser_bridge/__pycache__/__init__.cpython-313.pyc +0 -0
- package/node_modules/pi-lean-portal/backends/python-base/pi_browser_bridge/__pycache__/playwright_base.cpython-312.pyc +0 -0
- package/node_modules/pi-lean-portal/backends/python-base/pi_browser_bridge/__pycache__/playwright_base.cpython-313.pyc +0 -0
- package/node_modules/pi-lean-portal/backends/python-base/pi_browser_bridge/playwright_base.py +572 -81
- package/node_modules/pi-lean-portal/backends/python-base/tests/__pycache__/test_playwright_base_quirks.cpython-313-pytest-9.1.1.pyc +0 -0
- package/node_modules/pi-lean-portal/backends/python-base/tests/test_playwright_base_quirks.py +13 -43
- package/node_modules/pi-lean-portal/browser-profile.ts +2 -3
- package/node_modules/pi-lean-portal/browser-toggle.ts +168 -385
- package/node_modules/pi-lean-portal/contributed/CHOOSING.md +2 -2
- package/node_modules/pi-lean-portal/contributed/README.md +65 -6
- package/node_modules/pi-lean-portal/contributed/camoufox-py/__pycache__/bridge.cpython-312.pyc +0 -0
- package/node_modules/pi-lean-portal/contributed/camoufox-py/bridge.py +108 -14
- package/node_modules/pi-lean-portal/contributed/camoufox-py/pin.json +4 -0
- package/node_modules/pi-lean-portal/core/fetch-backend.ts +10 -30
- package/node_modules/pi-lean-portal/core/guides.ts +14 -18
- package/node_modules/pi-lean-portal/core/router.ts +2 -20
- package/node_modules/pi-lean-portal/core/shared/bot-detection.ts +19 -30
- package/node_modules/pi-lean-portal/core/shared/browser-data.ts +4 -4
- package/node_modules/pi-lean-portal/core/shared/nav-settle.ts +2 -2
- package/node_modules/pi-lean-portal/core/shared/paths.ts +16 -2
- package/node_modules/pi-lean-portal/core/shared/settings-reader.ts +2 -7
- package/node_modules/pi-lean-portal/core/shared/snapshot-cache.ts +1 -1
- package/node_modules/pi-lean-portal/index.ts +8 -1
- package/node_modules/pi-lean-portal/package.json +2 -1
- package/node_modules/pi-lean-portal/tools/web-learn.ts +1 -4
- package/node_modules/pi-lean-search/__tests__/web-search.test.ts +87 -0
- package/node_modules/pi-lean-search/index.ts +134 -64
- package/node_modules/pi-lean-search/package.json +2 -1
- package/node_modules/playwright/README.md +3 -3
- package/node_modules/playwright/lib/agents/copilot-setup-steps.yml +2 -2
- package/node_modules/playwright/lib/cli/reportActions.js +2 -2
- package/node_modules/playwright/lib/common/index.js +77 -52
- package/node_modules/playwright/lib/common/index.js.txt +10 -11
- package/node_modules/playwright/lib/errorContext.js +2 -3
- package/node_modules/playwright/lib/index.js +30 -8
- package/node_modules/playwright/lib/matchers/expect.js +4811 -4379
- package/node_modules/playwright/lib/matchers/expect.js.LICENSE +87 -140
- package/node_modules/playwright/lib/matchers/expect.js.txt +30 -35
- package/node_modules/playwright/lib/program.js +19 -0
- package/node_modules/playwright/lib/runner/index.js +309 -153
- package/node_modules/playwright/lib/runner/index.js.txt +13 -12
- package/node_modules/playwright/lib/transform/babelBundle.js +12899 -11654
- package/node_modules/playwright/lib/transform/babelBundle.js.LICENSE +379 -354
- package/node_modules/playwright/lib/transform/babelBundle.js.txt +39 -39
- package/node_modules/playwright/lib/transform/esmLoader.js +3129 -1116
- package/node_modules/playwright/lib/transform/esmLoader.js.LICENSE +81 -61
- package/node_modules/playwright/lib/transform/esmLoader.js.txt +21 -18
- package/node_modules/playwright/lib/util.js +2 -29
- package/node_modules/playwright/lib/worker/workerProcessEntry.js +14 -32
- package/node_modules/playwright/lib/worker/workerProcessEntry.js.txt +7 -8
- package/node_modules/playwright/package.json +3 -6
- package/node_modules/playwright/types/test.d.ts +391 -4
- package/node_modules/playwright/types/testReporter.d.ts +79 -4
- package/node_modules/playwright-core/browsers.json +12 -18
- package/node_modules/playwright-core/lib/bootstrap.js +1 -1
- package/node_modules/playwright-core/lib/coreBundle.js +11344 -9900
- package/node_modules/playwright-core/lib/server/electron/loader.js +5 -2
- package/node_modules/playwright-core/lib/serverRegistry.js +5 -1
- package/node_modules/playwright-core/lib/tools/cli-client/help.json +21 -6
- package/node_modules/playwright-core/lib/tools/cli-client/program.js +1 -1
- package/node_modules/playwright-core/lib/tools/cli-client/session.js +4 -0
- package/node_modules/playwright-core/lib/tools/{cli-client/skill → skills/playwright-cli}/SKILL.md +21 -5
- package/node_modules/playwright-core/lib/tools/{cli-client/skill/references/spec-driven-testing.md → skills/playwright-cli/references/test-generation.md} +135 -7
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/SKILL.md +143 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +144 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/migration.md +85 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/react.md +67 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-component-testing/references/vue.md +75 -0
- package/node_modules/playwright-core/lib/tools/utils/extension.js +31 -8
- package/node_modules/playwright-core/lib/utilsBundle.js +37698 -33670
- package/node_modules/playwright-core/lib/utilsBundle.js.LICENSE +391 -268
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-CyWAfh-p.js +11 -0
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-DhC616m4.css +1 -0
- package/node_modules/playwright-core/lib/vite/dashboard/index.html +2 -2
- package/node_modules/playwright-core/lib/vite/htmlReport/report.css +2 -1
- package/node_modules/playwright-core/lib/vite/htmlReport/report.js +15 -55
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-CwYYHbcZ.js +32 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-DYjdXIbE.js +129 -0
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-l_lX622x.css +1 -0
- package/node_modules/playwright-core/lib/vite/recorder/index.html +2 -2
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-By56iMx7.js +32 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-B34OrIms.js +181 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-COQkjINf.js +7 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.BLFoOugd.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.B_TqY17P.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.Dl36UVQT.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/index.html +5 -5
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +2 -2
- package/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +3 -4
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.C7UW1sC9.css +1 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.D962mr9b.js +5 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +5 -5
- package/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +1 -0
- package/node_modules/playwright-core/lib/webp_codec.LICENSE +173 -0
- package/node_modules/playwright-core/lib/webp_codec.wasm +0 -0
- package/node_modules/playwright-core/lib/xdg-open +338 -137
- package/node_modules/playwright-core/package.json +2 -2
- package/node_modules/playwright-core/types/protocol.d.ts +249 -36
- package/node_modules/playwright-core/types/structs.d.ts +3 -1
- package/node_modules/playwright-core/types/types.d.ts +2009 -266
- package/package.json +3 -3
- package/node_modules/pi-lean-portal/__tests__/url-safety.test.ts +0 -188
- package/node_modules/pi-lean-portal/backends/python-base/pi_browser_bridge/bridge.py +0 -525
- package/node_modules/pi-lean-portal/core/shared/url-safety.ts +0 -164
- package/node_modules/playwright-core/lib/server/deviceDescriptorsSource.json +0 -2739
- package/node_modules/playwright-core/lib/tools/cli-client/skill/references/test-generation.md +0 -134
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-BY2S1tHT.css +0 -1
- package/node_modules/playwright-core/lib/vite/dashboard/assets/index-C_5TMfeg.js +0 -52
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css +0 -1
- package/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DeBYQozu.js +0 -32
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-4ZiSSCmn.css +0 -1
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-Bq-mQf8S.js +0 -193
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-LEHpjmcn.js +0 -32
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-BNmKHKpQ.js +0 -264
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/urlMatch-BYQrIQwR.js +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +0 -9
- package/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.DYBRYzYX.css +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.CjdS-WJx.css +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/index.CzXZzn5A.css +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/index.DMMX1gXU.js +0 -2
- package/node_modules/playwright-core/lib/vite/traceViewer/snapshot.v8KI4P3m.js +0 -2
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.BZQ54Kgt.css +0 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Ut8wwJNp.js +0 -6
- package/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +0 -32
- /package/node_modules/playwright-core/lib/tools/{cli-client/skill → skills/playwright-cli}/references/element-attributes.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{cli-client/skill → skills/playwright-cli}/references/playwright-tests.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{cli-client/skill → skills/playwright-cli}/references/request-mocking.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{cli-client/skill → skills/playwright-cli}/references/running-code.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{cli-client/skill → skills/playwright-cli}/references/session-management.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{cli-client/skill → skills/playwright-cli}/references/storage-state.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{cli-client/skill → skills/playwright-cli}/references/tracing.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{cli-client/skill → skills/playwright-cli}/references/video-recording.md +0 -0
- /package/node_modules/playwright-core/lib/tools/{trace → skills/playwright-trace}/SKILL.md +0 -0
|
@@ -6,7 +6,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
|
|
9
|
+
try {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
throw mod = 0, e;
|
|
13
|
+
}
|
|
10
14
|
};
|
|
11
15
|
var __copyProps = (to, from, except, desc) => {
|
|
12
16
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -136,16 +140,16 @@ var require_util = __commonJS({
|
|
|
136
140
|
var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
|
|
137
141
|
var dataUrlRegexp = /^data:.+\,.+$/;
|
|
138
142
|
function urlParse(aUrl) {
|
|
139
|
-
var
|
|
140
|
-
if (!
|
|
143
|
+
var match2 = aUrl.match(urlRegexp);
|
|
144
|
+
if (!match2) {
|
|
141
145
|
return null;
|
|
142
146
|
}
|
|
143
147
|
return {
|
|
144
|
-
scheme:
|
|
145
|
-
auth:
|
|
146
|
-
host:
|
|
147
|
-
port:
|
|
148
|
-
path:
|
|
148
|
+
scheme: match2[1],
|
|
149
|
+
auth: match2[2],
|
|
150
|
+
host: match2[3],
|
|
151
|
+
port: match2[4],
|
|
152
|
+
path: match2[5]
|
|
149
153
|
};
|
|
150
154
|
}
|
|
151
155
|
exports2.urlParse = urlParse;
|
|
@@ -171,16 +175,16 @@ var require_util = __commonJS({
|
|
|
171
175
|
}
|
|
172
176
|
exports2.urlGenerate = urlGenerate;
|
|
173
177
|
function normalize(aPath) {
|
|
174
|
-
var
|
|
178
|
+
var path7 = aPath;
|
|
175
179
|
var url4 = urlParse(aPath);
|
|
176
180
|
if (url4) {
|
|
177
181
|
if (!url4.path) {
|
|
178
182
|
return aPath;
|
|
179
183
|
}
|
|
180
|
-
|
|
184
|
+
path7 = url4.path;
|
|
181
185
|
}
|
|
182
|
-
var isAbsolute = exports2.isAbsolute(
|
|
183
|
-
var parts =
|
|
186
|
+
var isAbsolute = exports2.isAbsolute(path7);
|
|
187
|
+
var parts = path7.split(/\/+/);
|
|
184
188
|
for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
|
|
185
189
|
part = parts[i];
|
|
186
190
|
if (part === ".") {
|
|
@@ -197,15 +201,15 @@ var require_util = __commonJS({
|
|
|
197
201
|
}
|
|
198
202
|
}
|
|
199
203
|
}
|
|
200
|
-
|
|
201
|
-
if (
|
|
202
|
-
|
|
204
|
+
path7 = parts.join("/");
|
|
205
|
+
if (path7 === "") {
|
|
206
|
+
path7 = isAbsolute ? "/" : ".";
|
|
203
207
|
}
|
|
204
208
|
if (url4) {
|
|
205
|
-
url4.path =
|
|
209
|
+
url4.path = path7;
|
|
206
210
|
return urlGenerate(url4);
|
|
207
211
|
}
|
|
208
|
-
return
|
|
212
|
+
return path7;
|
|
209
213
|
}
|
|
210
214
|
exports2.normalize = normalize;
|
|
211
215
|
function join(aRoot, aPath) {
|
|
@@ -1825,7 +1829,7 @@ var require_buffer_from = __commonJS({
|
|
|
1825
1829
|
var require_source_map_support = __commonJS({
|
|
1826
1830
|
"node_modules/source-map-support/source-map-support.js"(exports2, module2) {
|
|
1827
1831
|
var SourceMapConsumer = require_source_map().SourceMapConsumer;
|
|
1828
|
-
var
|
|
1832
|
+
var path7 = require("path");
|
|
1829
1833
|
var fs7;
|
|
1830
1834
|
try {
|
|
1831
1835
|
fs7 = require("fs");
|
|
@@ -1886,18 +1890,18 @@ var require_source_map_support = __commonJS({
|
|
|
1886
1890
|
};
|
|
1887
1891
|
}
|
|
1888
1892
|
var retrieveFile = handlerExec(retrieveFileHandlers);
|
|
1889
|
-
retrieveFileHandlers.push(function(
|
|
1890
|
-
|
|
1891
|
-
if (/^file:/.test(
|
|
1892
|
-
|
|
1893
|
+
retrieveFileHandlers.push(function(path8) {
|
|
1894
|
+
path8 = path8.trim();
|
|
1895
|
+
if (/^file:/.test(path8)) {
|
|
1896
|
+
path8 = path8.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
|
|
1893
1897
|
return drive ? "" : (
|
|
1894
1898
|
// file:///C:/dir/file -> C:/dir/file
|
|
1895
1899
|
"/"
|
|
1896
1900
|
);
|
|
1897
1901
|
});
|
|
1898
1902
|
}
|
|
1899
|
-
if (
|
|
1900
|
-
return fileContentsCache[
|
|
1903
|
+
if (path8 in fileContentsCache) {
|
|
1904
|
+
return fileContentsCache[path8];
|
|
1901
1905
|
}
|
|
1902
1906
|
var contents = "";
|
|
1903
1907
|
try {
|
|
@@ -1905,7 +1909,7 @@ var require_source_map_support = __commonJS({
|
|
|
1905
1909
|
var xhr = new XMLHttpRequest();
|
|
1906
1910
|
xhr.open(
|
|
1907
1911
|
"GET",
|
|
1908
|
-
|
|
1912
|
+
path8,
|
|
1909
1913
|
/** async */
|
|
1910
1914
|
false
|
|
1911
1915
|
);
|
|
@@ -1913,24 +1917,24 @@ var require_source_map_support = __commonJS({
|
|
|
1913
1917
|
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
1914
1918
|
contents = xhr.responseText;
|
|
1915
1919
|
}
|
|
1916
|
-
} else if (fs7.existsSync(
|
|
1917
|
-
contents = fs7.readFileSync(
|
|
1920
|
+
} else if (fs7.existsSync(path8)) {
|
|
1921
|
+
contents = fs7.readFileSync(path8, "utf8");
|
|
1918
1922
|
}
|
|
1919
1923
|
} catch (er) {
|
|
1920
1924
|
}
|
|
1921
|
-
return fileContentsCache[
|
|
1925
|
+
return fileContentsCache[path8] = contents;
|
|
1922
1926
|
});
|
|
1923
1927
|
function supportRelativeURL(file2, url4) {
|
|
1924
1928
|
if (!file2) return url4;
|
|
1925
|
-
var dir =
|
|
1926
|
-
var
|
|
1927
|
-
var protocol =
|
|
1929
|
+
var dir = path7.dirname(file2);
|
|
1930
|
+
var match2 = /^\w+:\/\/[^\/]*/.exec(dir);
|
|
1931
|
+
var protocol = match2 ? match2[0] : "";
|
|
1928
1932
|
var startPath = dir.slice(protocol.length);
|
|
1929
1933
|
if (protocol && /^\/\w\:/.test(startPath)) {
|
|
1930
1934
|
protocol += "/";
|
|
1931
|
-
return protocol +
|
|
1935
|
+
return protocol + path7.resolve(dir.slice(protocol.length), url4).replace(/\\/g, "/");
|
|
1932
1936
|
}
|
|
1933
|
-
return protocol +
|
|
1937
|
+
return protocol + path7.resolve(dir.slice(protocol.length), url4);
|
|
1934
1938
|
}
|
|
1935
1939
|
function retrieveSourceMapURL(source) {
|
|
1936
1940
|
var fileData;
|
|
@@ -1949,8 +1953,8 @@ var require_source_map_support = __commonJS({
|
|
|
1949
1953
|
}
|
|
1950
1954
|
fileData = retrieveFile(source);
|
|
1951
1955
|
var re2 = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;
|
|
1952
|
-
var lastMatch,
|
|
1953
|
-
while (
|
|
1956
|
+
var lastMatch, match2;
|
|
1957
|
+
while (match2 = re2.exec(fileData)) lastMatch = match2;
|
|
1954
1958
|
if (!lastMatch) return null;
|
|
1955
1959
|
return lastMatch[1];
|
|
1956
1960
|
}
|
|
@@ -2013,18 +2017,18 @@ var require_source_map_support = __commonJS({
|
|
|
2013
2017
|
return position;
|
|
2014
2018
|
}
|
|
2015
2019
|
function mapEvalOrigin(origin) {
|
|
2016
|
-
var
|
|
2017
|
-
if (
|
|
2020
|
+
var match2 = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin);
|
|
2021
|
+
if (match2) {
|
|
2018
2022
|
var position = mapSourcePosition({
|
|
2019
|
-
source:
|
|
2020
|
-
line: +
|
|
2021
|
-
column:
|
|
2023
|
+
source: match2[2],
|
|
2024
|
+
line: +match2[3],
|
|
2025
|
+
column: match2[4] - 1
|
|
2022
2026
|
});
|
|
2023
|
-
return "eval at " +
|
|
2027
|
+
return "eval at " + match2[1] + " (" + position.source + ":" + position.line + ":" + (position.column + 1) + ")";
|
|
2024
2028
|
}
|
|
2025
|
-
|
|
2026
|
-
if (
|
|
2027
|
-
return "eval at " +
|
|
2029
|
+
match2 = /^eval at ([^(]+) \((.+)\)$/.exec(origin);
|
|
2030
|
+
if (match2) {
|
|
2031
|
+
return "eval at " + match2[1] + " (" + mapEvalOrigin(match2[2]) + ")";
|
|
2028
2032
|
}
|
|
2029
2033
|
return origin;
|
|
2030
2034
|
}
|
|
@@ -2172,11 +2176,11 @@ var require_source_map_support = __commonJS({
|
|
|
2172
2176
|
return errorString + processedStack.reverse().join("");
|
|
2173
2177
|
}
|
|
2174
2178
|
function getErrorSource(error) {
|
|
2175
|
-
var
|
|
2176
|
-
if (
|
|
2177
|
-
var source =
|
|
2178
|
-
var line = +
|
|
2179
|
-
var column = +
|
|
2179
|
+
var match2 = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack);
|
|
2180
|
+
if (match2) {
|
|
2181
|
+
var source = match2[1];
|
|
2182
|
+
var line = +match2[2];
|
|
2183
|
+
var column = +match2[3];
|
|
2180
2184
|
var contents = fileContentsCache[source];
|
|
2181
2185
|
if (!contents && fs7 && fs7.existsSync(source)) {
|
|
2182
2186
|
try {
|
|
@@ -2789,7 +2793,7 @@ var require_parse = __commonJS({
|
|
|
2789
2793
|
switch (c) {
|
|
2790
2794
|
case "\\":
|
|
2791
2795
|
read();
|
|
2792
|
-
buffer +=
|
|
2796
|
+
buffer += escape2();
|
|
2793
2797
|
return;
|
|
2794
2798
|
case '"':
|
|
2795
2799
|
if (doubleQuote) {
|
|
@@ -2903,7 +2907,7 @@ var require_parse = __commonJS({
|
|
|
2903
2907
|
read();
|
|
2904
2908
|
}
|
|
2905
2909
|
}
|
|
2906
|
-
function
|
|
2910
|
+
function escape2() {
|
|
2907
2911
|
const c2 = peek();
|
|
2908
2912
|
switch (c2) {
|
|
2909
2913
|
case "b":
|
|
@@ -3429,14 +3433,14 @@ var require_ms = __commonJS({
|
|
|
3429
3433
|
if (str.length > 100) {
|
|
3430
3434
|
return;
|
|
3431
3435
|
}
|
|
3432
|
-
var
|
|
3436
|
+
var match2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
3433
3437
|
str
|
|
3434
3438
|
);
|
|
3435
|
-
if (!
|
|
3439
|
+
if (!match2) {
|
|
3436
3440
|
return;
|
|
3437
3441
|
}
|
|
3438
|
-
var n = parseFloat(
|
|
3439
|
-
var type = (
|
|
3442
|
+
var n = parseFloat(match2[1]);
|
|
3443
|
+
var type = (match2[2] || "ms").toLowerCase();
|
|
3440
3444
|
switch (type) {
|
|
3441
3445
|
case "years":
|
|
3442
3446
|
case "year":
|
|
@@ -3567,19 +3571,19 @@ var require_common = __commonJS({
|
|
|
3567
3571
|
args.unshift("%O");
|
|
3568
3572
|
}
|
|
3569
3573
|
let index = 0;
|
|
3570
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (
|
|
3571
|
-
if (
|
|
3574
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
|
|
3575
|
+
if (match2 === "%%") {
|
|
3572
3576
|
return "%";
|
|
3573
3577
|
}
|
|
3574
3578
|
index++;
|
|
3575
3579
|
const formatter = createDebug.formatters[format];
|
|
3576
3580
|
if (typeof formatter === "function") {
|
|
3577
3581
|
const val = args[index];
|
|
3578
|
-
|
|
3582
|
+
match2 = formatter.call(self, val);
|
|
3579
3583
|
args.splice(index, 1);
|
|
3580
3584
|
index--;
|
|
3581
3585
|
}
|
|
3582
|
-
return
|
|
3586
|
+
return match2;
|
|
3583
3587
|
});
|
|
3584
3588
|
createDebug.formatArgs.call(self, args);
|
|
3585
3589
|
const logFn = self.log || createDebug.log;
|
|
@@ -3814,12 +3818,12 @@ var require_browser = __commonJS({
|
|
|
3814
3818
|
args.splice(1, 0, c, "color: inherit");
|
|
3815
3819
|
let index = 0;
|
|
3816
3820
|
let lastC = 0;
|
|
3817
|
-
args[0].replace(/%[a-zA-Z%]/g, (
|
|
3818
|
-
if (
|
|
3821
|
+
args[0].replace(/%[a-zA-Z%]/g, (match2) => {
|
|
3822
|
+
if (match2 === "%%") {
|
|
3819
3823
|
return;
|
|
3820
3824
|
}
|
|
3821
3825
|
index++;
|
|
3822
|
-
if (
|
|
3826
|
+
if (match2 === "%c") {
|
|
3823
3827
|
lastC = index;
|
|
3824
3828
|
}
|
|
3825
3829
|
});
|
|
@@ -3887,21 +3891,19 @@ var require_supports_color = __commonJS({
|
|
|
3887
3891
|
var tty = require("tty");
|
|
3888
3892
|
var hasFlag = require_has_flag();
|
|
3889
3893
|
var { env } = process;
|
|
3890
|
-
var
|
|
3894
|
+
var forceColor;
|
|
3891
3895
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
3892
|
-
|
|
3896
|
+
forceColor = 0;
|
|
3893
3897
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
3894
|
-
|
|
3898
|
+
forceColor = 1;
|
|
3895
3899
|
}
|
|
3896
|
-
|
|
3897
|
-
if (
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
}
|
|
3904
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
3900
|
+
if ("FORCE_COLOR" in env) {
|
|
3901
|
+
if (env.FORCE_COLOR === "true") {
|
|
3902
|
+
forceColor = 1;
|
|
3903
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
3904
|
+
forceColor = 0;
|
|
3905
|
+
} else {
|
|
3906
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
3905
3907
|
}
|
|
3906
3908
|
}
|
|
3907
3909
|
function translateLevel(level) {
|
|
@@ -3915,22 +3917,15 @@ var require_supports_color = __commonJS({
|
|
|
3915
3917
|
has16m: level >= 3
|
|
3916
3918
|
};
|
|
3917
3919
|
}
|
|
3918
|
-
function supportsColor(haveStream,
|
|
3919
|
-
const noFlagForceColor = envForceColor();
|
|
3920
|
-
if (noFlagForceColor !== void 0) {
|
|
3921
|
-
flagForceColor = noFlagForceColor;
|
|
3922
|
-
}
|
|
3923
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
3920
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
3924
3921
|
if (forceColor === 0) {
|
|
3925
3922
|
return 0;
|
|
3926
3923
|
}
|
|
3927
|
-
if (
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
return 2;
|
|
3933
|
-
}
|
|
3924
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
3925
|
+
return 3;
|
|
3926
|
+
}
|
|
3927
|
+
if (hasFlag("color=256")) {
|
|
3928
|
+
return 2;
|
|
3934
3929
|
}
|
|
3935
3930
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
3936
3931
|
return 0;
|
|
@@ -3947,7 +3942,7 @@ var require_supports_color = __commonJS({
|
|
|
3947
3942
|
return 1;
|
|
3948
3943
|
}
|
|
3949
3944
|
if ("CI" in env) {
|
|
3950
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"
|
|
3945
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
3951
3946
|
return 1;
|
|
3952
3947
|
}
|
|
3953
3948
|
return min;
|
|
@@ -3959,7 +3954,7 @@ var require_supports_color = __commonJS({
|
|
|
3959
3954
|
return 3;
|
|
3960
3955
|
}
|
|
3961
3956
|
if ("TERM_PROGRAM" in env) {
|
|
3962
|
-
const version2 =
|
|
3957
|
+
const version2 = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
3963
3958
|
switch (env.TERM_PROGRAM) {
|
|
3964
3959
|
case "iTerm.app":
|
|
3965
3960
|
return version2 >= 3 ? 3 : 2;
|
|
@@ -3978,17 +3973,14 @@ var require_supports_color = __commonJS({
|
|
|
3978
3973
|
}
|
|
3979
3974
|
return min;
|
|
3980
3975
|
}
|
|
3981
|
-
function getSupportLevel(stream
|
|
3982
|
-
const level = supportsColor(stream,
|
|
3983
|
-
streamIsTTY: stream && stream.isTTY,
|
|
3984
|
-
...options
|
|
3985
|
-
});
|
|
3976
|
+
function getSupportLevel(stream) {
|
|
3977
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
3986
3978
|
return translateLevel(level);
|
|
3987
3979
|
}
|
|
3988
3980
|
module2.exports = {
|
|
3989
3981
|
supportsColor: getSupportLevel,
|
|
3990
|
-
stdout:
|
|
3991
|
-
stderr:
|
|
3982
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
3983
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
3992
3984
|
};
|
|
3993
3985
|
}
|
|
3994
3986
|
});
|
|
@@ -4178,975 +4170,6 @@ var require_src = __commonJS({
|
|
|
4178
4170
|
}
|
|
4179
4171
|
});
|
|
4180
4172
|
|
|
4181
|
-
// node_modules/mime/Mime.js
|
|
4182
|
-
var require_Mime = __commonJS({
|
|
4183
|
-
"node_modules/mime/Mime.js"(exports2, module2) {
|
|
4184
|
-
"use strict";
|
|
4185
|
-
function Mime() {
|
|
4186
|
-
this._types = /* @__PURE__ */ Object.create(null);
|
|
4187
|
-
this._extensions = /* @__PURE__ */ Object.create(null);
|
|
4188
|
-
for (let i = 0; i < arguments.length; i++) {
|
|
4189
|
-
this.define(arguments[i]);
|
|
4190
|
-
}
|
|
4191
|
-
this.define = this.define.bind(this);
|
|
4192
|
-
this.getType = this.getType.bind(this);
|
|
4193
|
-
this.getExtension = this.getExtension.bind(this);
|
|
4194
|
-
}
|
|
4195
|
-
Mime.prototype.define = function(typeMap, force) {
|
|
4196
|
-
for (let type in typeMap) {
|
|
4197
|
-
let extensions = typeMap[type].map(function(t) {
|
|
4198
|
-
return t.toLowerCase();
|
|
4199
|
-
});
|
|
4200
|
-
type = type.toLowerCase();
|
|
4201
|
-
for (let i = 0; i < extensions.length; i++) {
|
|
4202
|
-
const ext = extensions[i];
|
|
4203
|
-
if (ext[0] === "*") {
|
|
4204
|
-
continue;
|
|
4205
|
-
}
|
|
4206
|
-
if (!force && ext in this._types) {
|
|
4207
|
-
throw new Error(
|
|
4208
|
-
'Attempt to change mapping for "' + ext + '" extension from "' + this._types[ext] + '" to "' + type + '". Pass `force=true` to allow this, otherwise remove "' + ext + '" from the list of extensions for "' + type + '".'
|
|
4209
|
-
);
|
|
4210
|
-
}
|
|
4211
|
-
this._types[ext] = type;
|
|
4212
|
-
}
|
|
4213
|
-
if (force || !this._extensions[type]) {
|
|
4214
|
-
const ext = extensions[0];
|
|
4215
|
-
this._extensions[type] = ext[0] !== "*" ? ext : ext.substr(1);
|
|
4216
|
-
}
|
|
4217
|
-
}
|
|
4218
|
-
};
|
|
4219
|
-
Mime.prototype.getType = function(path6) {
|
|
4220
|
-
path6 = String(path6);
|
|
4221
|
-
let last = path6.replace(/^.*[/\\]/, "").toLowerCase();
|
|
4222
|
-
let ext = last.replace(/^.*\./, "").toLowerCase();
|
|
4223
|
-
let hasPath = last.length < path6.length;
|
|
4224
|
-
let hasDot = ext.length < last.length - 1;
|
|
4225
|
-
return (hasDot || !hasPath) && this._types[ext] || null;
|
|
4226
|
-
};
|
|
4227
|
-
Mime.prototype.getExtension = function(type) {
|
|
4228
|
-
type = /^\s*([^;\s]*)/.test(type) && RegExp.$1;
|
|
4229
|
-
return type && this._extensions[type.toLowerCase()] || null;
|
|
4230
|
-
};
|
|
4231
|
-
module2.exports = Mime;
|
|
4232
|
-
}
|
|
4233
|
-
});
|
|
4234
|
-
|
|
4235
|
-
// node_modules/mime/types/standard.js
|
|
4236
|
-
var require_standard = __commonJS({
|
|
4237
|
-
"node_modules/mime/types/standard.js"(exports2, module2) {
|
|
4238
|
-
module2.exports = { "application/andrew-inset": ["ez"], "application/applixware": ["aw"], "application/atom+xml": ["atom"], "application/atomcat+xml": ["atomcat"], "application/atomdeleted+xml": ["atomdeleted"], "application/atomsvc+xml": ["atomsvc"], "application/atsc-dwd+xml": ["dwd"], "application/atsc-held+xml": ["held"], "application/atsc-rsat+xml": ["rsat"], "application/bdoc": ["bdoc"], "application/calendar+xml": ["xcs"], "application/ccxml+xml": ["ccxml"], "application/cdfx+xml": ["cdfx"], "application/cdmi-capability": ["cdmia"], "application/cdmi-container": ["cdmic"], "application/cdmi-domain": ["cdmid"], "application/cdmi-object": ["cdmio"], "application/cdmi-queue": ["cdmiq"], "application/cu-seeme": ["cu"], "application/dash+xml": ["mpd"], "application/davmount+xml": ["davmount"], "application/docbook+xml": ["dbk"], "application/dssc+der": ["dssc"], "application/dssc+xml": ["xdssc"], "application/ecmascript": ["es", "ecma"], "application/emma+xml": ["emma"], "application/emotionml+xml": ["emotionml"], "application/epub+zip": ["epub"], "application/exi": ["exi"], "application/express": ["exp"], "application/fdt+xml": ["fdt"], "application/font-tdpfr": ["pfr"], "application/geo+json": ["geojson"], "application/gml+xml": ["gml"], "application/gpx+xml": ["gpx"], "application/gxf": ["gxf"], "application/gzip": ["gz"], "application/hjson": ["hjson"], "application/hyperstudio": ["stk"], "application/inkml+xml": ["ink", "inkml"], "application/ipfix": ["ipfix"], "application/its+xml": ["its"], "application/java-archive": ["jar", "war", "ear"], "application/java-serialized-object": ["ser"], "application/java-vm": ["class"], "application/javascript": ["js", "mjs"], "application/json": ["json", "map"], "application/json5": ["json5"], "application/jsonml+json": ["jsonml"], "application/ld+json": ["jsonld"], "application/lgr+xml": ["lgr"], "application/lost+xml": ["lostxml"], "application/mac-binhex40": ["hqx"], "application/mac-compactpro": ["cpt"], "application/mads+xml": ["mads"], "application/manifest+json": ["webmanifest"], "application/marc": ["mrc"], "application/marcxml+xml": ["mrcx"], "application/mathematica": ["ma", "nb", "mb"], "application/mathml+xml": ["mathml"], "application/mbox": ["mbox"], "application/mediaservercontrol+xml": ["mscml"], "application/metalink+xml": ["metalink"], "application/metalink4+xml": ["meta4"], "application/mets+xml": ["mets"], "application/mmt-aei+xml": ["maei"], "application/mmt-usd+xml": ["musd"], "application/mods+xml": ["mods"], "application/mp21": ["m21", "mp21"], "application/mp4": ["mp4s", "m4p"], "application/msword": ["doc", "dot"], "application/mxf": ["mxf"], "application/n-quads": ["nq"], "application/n-triples": ["nt"], "application/node": ["cjs"], "application/octet-stream": ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"], "application/oda": ["oda"], "application/oebps-package+xml": ["opf"], "application/ogg": ["ogx"], "application/omdoc+xml": ["omdoc"], "application/onenote": ["onetoc", "onetoc2", "onetmp", "onepkg"], "application/oxps": ["oxps"], "application/p2p-overlay+xml": ["relo"], "application/patch-ops-error+xml": ["xer"], "application/pdf": ["pdf"], "application/pgp-encrypted": ["pgp"], "application/pgp-signature": ["asc", "sig"], "application/pics-rules": ["prf"], "application/pkcs10": ["p10"], "application/pkcs7-mime": ["p7m", "p7c"], "application/pkcs7-signature": ["p7s"], "application/pkcs8": ["p8"], "application/pkix-attr-cert": ["ac"], "application/pkix-cert": ["cer"], "application/pkix-crl": ["crl"], "application/pkix-pkipath": ["pkipath"], "application/pkixcmp": ["pki"], "application/pls+xml": ["pls"], "application/postscript": ["ai", "eps", "ps"], "application/provenance+xml": ["provx"], "application/pskc+xml": ["pskcxml"], "application/raml+yaml": ["raml"], "application/rdf+xml": ["rdf", "owl"], "application/reginfo+xml": ["rif"], "application/relax-ng-compact-syntax": ["rnc"], "application/resource-lists+xml": ["rl"], "application/resource-lists-diff+xml": ["rld"], "application/rls-services+xml": ["rs"], "application/route-apd+xml": ["rapd"], "application/route-s-tsid+xml": ["sls"], "application/route-usd+xml": ["rusd"], "application/rpki-ghostbusters": ["gbr"], "application/rpki-manifest": ["mft"], "application/rpki-roa": ["roa"], "application/rsd+xml": ["rsd"], "application/rss+xml": ["rss"], "application/rtf": ["rtf"], "application/sbml+xml": ["sbml"], "application/scvp-cv-request": ["scq"], "application/scvp-cv-response": ["scs"], "application/scvp-vp-request": ["spq"], "application/scvp-vp-response": ["spp"], "application/sdp": ["sdp"], "application/senml+xml": ["senmlx"], "application/sensml+xml": ["sensmlx"], "application/set-payment-initiation": ["setpay"], "application/set-registration-initiation": ["setreg"], "application/shf+xml": ["shf"], "application/sieve": ["siv", "sieve"], "application/smil+xml": ["smi", "smil"], "application/sparql-query": ["rq"], "application/sparql-results+xml": ["srx"], "application/srgs": ["gram"], "application/srgs+xml": ["grxml"], "application/sru+xml": ["sru"], "application/ssdl+xml": ["ssdl"], "application/ssml+xml": ["ssml"], "application/swid+xml": ["swidtag"], "application/tei+xml": ["tei", "teicorpus"], "application/thraud+xml": ["tfi"], "application/timestamped-data": ["tsd"], "application/toml": ["toml"], "application/trig": ["trig"], "application/ttml+xml": ["ttml"], "application/ubjson": ["ubj"], "application/urc-ressheet+xml": ["rsheet"], "application/urc-targetdesc+xml": ["td"], "application/voicexml+xml": ["vxml"], "application/wasm": ["wasm"], "application/widget": ["wgt"], "application/winhlp": ["hlp"], "application/wsdl+xml": ["wsdl"], "application/wspolicy+xml": ["wspolicy"], "application/xaml+xml": ["xaml"], "application/xcap-att+xml": ["xav"], "application/xcap-caps+xml": ["xca"], "application/xcap-diff+xml": ["xdf"], "application/xcap-el+xml": ["xel"], "application/xcap-ns+xml": ["xns"], "application/xenc+xml": ["xenc"], "application/xhtml+xml": ["xhtml", "xht"], "application/xliff+xml": ["xlf"], "application/xml": ["xml", "xsl", "xsd", "rng"], "application/xml-dtd": ["dtd"], "application/xop+xml": ["xop"], "application/xproc+xml": ["xpl"], "application/xslt+xml": ["*xsl", "xslt"], "application/xspf+xml": ["xspf"], "application/xv+xml": ["mxml", "xhvml", "xvml", "xvm"], "application/yang": ["yang"], "application/yin+xml": ["yin"], "application/zip": ["zip"], "audio/3gpp": ["*3gpp"], "audio/adpcm": ["adp"], "audio/amr": ["amr"], "audio/basic": ["au", "snd"], "audio/midi": ["mid", "midi", "kar", "rmi"], "audio/mobile-xmf": ["mxmf"], "audio/mp3": ["*mp3"], "audio/mp4": ["m4a", "mp4a"], "audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"], "audio/ogg": ["oga", "ogg", "spx", "opus"], "audio/s3m": ["s3m"], "audio/silk": ["sil"], "audio/wav": ["wav"], "audio/wave": ["*wav"], "audio/webm": ["weba"], "audio/xm": ["xm"], "font/collection": ["ttc"], "font/otf": ["otf"], "font/ttf": ["ttf"], "font/woff": ["woff"], "font/woff2": ["woff2"], "image/aces": ["exr"], "image/apng": ["apng"], "image/avif": ["avif"], "image/bmp": ["bmp"], "image/cgm": ["cgm"], "image/dicom-rle": ["drle"], "image/emf": ["emf"], "image/fits": ["fits"], "image/g3fax": ["g3"], "image/gif": ["gif"], "image/heic": ["heic"], "image/heic-sequence": ["heics"], "image/heif": ["heif"], "image/heif-sequence": ["heifs"], "image/hej2k": ["hej2"], "image/hsj2": ["hsj2"], "image/ief": ["ief"], "image/jls": ["jls"], "image/jp2": ["jp2", "jpg2"], "image/jpeg": ["jpeg", "jpg", "jpe"], "image/jph": ["jph"], "image/jphc": ["jhc"], "image/jpm": ["jpm"], "image/jpx": ["jpx", "jpf"], "image/jxr": ["jxr"], "image/jxra": ["jxra"], "image/jxrs": ["jxrs"], "image/jxs": ["jxs"], "image/jxsc": ["jxsc"], "image/jxsi": ["jxsi"], "image/jxss": ["jxss"], "image/ktx": ["ktx"], "image/ktx2": ["ktx2"], "image/png": ["png"], "image/sgi": ["sgi"], "image/svg+xml": ["svg", "svgz"], "image/t38": ["t38"], "image/tiff": ["tif", "tiff"], "image/tiff-fx": ["tfx"], "image/webp": ["webp"], "image/wmf": ["wmf"], "message/disposition-notification": ["disposition-notification"], "message/global": ["u8msg"], "message/global-delivery-status": ["u8dsn"], "message/global-disposition-notification": ["u8mdn"], "message/global-headers": ["u8hdr"], "message/rfc822": ["eml", "mime"], "model/3mf": ["3mf"], "model/gltf+json": ["gltf"], "model/gltf-binary": ["glb"], "model/iges": ["igs", "iges"], "model/mesh": ["msh", "mesh", "silo"], "model/mtl": ["mtl"], "model/obj": ["obj"], "model/step+xml": ["stpx"], "model/step+zip": ["stpz"], "model/step-xml+zip": ["stpxz"], "model/stl": ["stl"], "model/vrml": ["wrl", "vrml"], "model/x3d+binary": ["*x3db", "x3dbz"], "model/x3d+fastinfoset": ["x3db"], "model/x3d+vrml": ["*x3dv", "x3dvz"], "model/x3d+xml": ["x3d", "x3dz"], "model/x3d-vrml": ["x3dv"], "text/cache-manifest": ["appcache", "manifest"], "text/calendar": ["ics", "ifb"], "text/coffeescript": ["coffee", "litcoffee"], "text/css": ["css"], "text/csv": ["csv"], "text/html": ["html", "htm", "shtml"], "text/jade": ["jade"], "text/jsx": ["jsx"], "text/less": ["less"], "text/markdown": ["markdown", "md"], "text/mathml": ["mml"], "text/mdx": ["mdx"], "text/n3": ["n3"], "text/plain": ["txt", "text", "conf", "def", "list", "log", "in", "ini"], "text/richtext": ["rtx"], "text/rtf": ["*rtf"], "text/sgml": ["sgml", "sgm"], "text/shex": ["shex"], "text/slim": ["slim", "slm"], "text/spdx": ["spdx"], "text/stylus": ["stylus", "styl"], "text/tab-separated-values": ["tsv"], "text/troff": ["t", "tr", "roff", "man", "me", "ms"], "text/turtle": ["ttl"], "text/uri-list": ["uri", "uris", "urls"], "text/vcard": ["vcard"], "text/vtt": ["vtt"], "text/xml": ["*xml"], "text/yaml": ["yaml", "yml"], "video/3gpp": ["3gp", "3gpp"], "video/3gpp2": ["3g2"], "video/h261": ["h261"], "video/h263": ["h263"], "video/h264": ["h264"], "video/iso.segment": ["m4s"], "video/jpeg": ["jpgv"], "video/jpm": ["*jpm", "jpgm"], "video/mj2": ["mj2", "mjp2"], "video/mp2t": ["ts"], "video/mp4": ["mp4", "mp4v", "mpg4"], "video/mpeg": ["mpeg", "mpg", "mpe", "m1v", "m2v"], "video/ogg": ["ogv"], "video/quicktime": ["qt", "mov"], "video/webm": ["webm"] };
|
|
4239
|
-
}
|
|
4240
|
-
});
|
|
4241
|
-
|
|
4242
|
-
// node_modules/mime/types/other.js
|
|
4243
|
-
var require_other = __commonJS({
|
|
4244
|
-
"node_modules/mime/types/other.js"(exports2, module2) {
|
|
4245
|
-
module2.exports = { "application/prs.cww": ["cww"], "application/vnd.1000minds.decision-model+xml": ["1km"], "application/vnd.3gpp.pic-bw-large": ["plb"], "application/vnd.3gpp.pic-bw-small": ["psb"], "application/vnd.3gpp.pic-bw-var": ["pvb"], "application/vnd.3gpp2.tcap": ["tcap"], "application/vnd.3m.post-it-notes": ["pwn"], "application/vnd.accpac.simply.aso": ["aso"], "application/vnd.accpac.simply.imp": ["imp"], "application/vnd.acucobol": ["acu"], "application/vnd.acucorp": ["atc", "acutc"], "application/vnd.adobe.air-application-installer-package+zip": ["air"], "application/vnd.adobe.formscentral.fcdt": ["fcdt"], "application/vnd.adobe.fxp": ["fxp", "fxpl"], "application/vnd.adobe.xdp+xml": ["xdp"], "application/vnd.adobe.xfdf": ["xfdf"], "application/vnd.ahead.space": ["ahead"], "application/vnd.airzip.filesecure.azf": ["azf"], "application/vnd.airzip.filesecure.azs": ["azs"], "application/vnd.amazon.ebook": ["azw"], "application/vnd.americandynamics.acc": ["acc"], "application/vnd.amiga.ami": ["ami"], "application/vnd.android.package-archive": ["apk"], "application/vnd.anser-web-certificate-issue-initiation": ["cii"], "application/vnd.anser-web-funds-transfer-initiation": ["fti"], "application/vnd.antix.game-component": ["atx"], "application/vnd.apple.installer+xml": ["mpkg"], "application/vnd.apple.keynote": ["key"], "application/vnd.apple.mpegurl": ["m3u8"], "application/vnd.apple.numbers": ["numbers"], "application/vnd.apple.pages": ["pages"], "application/vnd.apple.pkpass": ["pkpass"], "application/vnd.aristanetworks.swi": ["swi"], "application/vnd.astraea-software.iota": ["iota"], "application/vnd.audiograph": ["aep"], "application/vnd.balsamiq.bmml+xml": ["bmml"], "application/vnd.blueice.multipass": ["mpm"], "application/vnd.bmi": ["bmi"], "application/vnd.businessobjects": ["rep"], "application/vnd.chemdraw+xml": ["cdxml"], "application/vnd.chipnuts.karaoke-mmd": ["mmd"], "application/vnd.cinderella": ["cdy"], "application/vnd.citationstyles.style+xml": ["csl"], "application/vnd.claymore": ["cla"], "application/vnd.cloanto.rp9": ["rp9"], "application/vnd.clonk.c4group": ["c4g", "c4d", "c4f", "c4p", "c4u"], "application/vnd.cluetrust.cartomobile-config": ["c11amc"], "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"], "application/vnd.commonspace": ["csp"], "application/vnd.contact.cmsg": ["cdbcmsg"], "application/vnd.cosmocaller": ["cmc"], "application/vnd.crick.clicker": ["clkx"], "application/vnd.crick.clicker.keyboard": ["clkk"], "application/vnd.crick.clicker.palette": ["clkp"], "application/vnd.crick.clicker.template": ["clkt"], "application/vnd.crick.clicker.wordbank": ["clkw"], "application/vnd.criticaltools.wbs+xml": ["wbs"], "application/vnd.ctc-posml": ["pml"], "application/vnd.cups-ppd": ["ppd"], "application/vnd.curl.car": ["car"], "application/vnd.curl.pcurl": ["pcurl"], "application/vnd.dart": ["dart"], "application/vnd.data-vision.rdz": ["rdz"], "application/vnd.dbf": ["dbf"], "application/vnd.dece.data": ["uvf", "uvvf", "uvd", "uvvd"], "application/vnd.dece.ttml+xml": ["uvt", "uvvt"], "application/vnd.dece.unspecified": ["uvx", "uvvx"], "application/vnd.dece.zip": ["uvz", "uvvz"], "application/vnd.denovo.fcselayout-link": ["fe_launch"], "application/vnd.dna": ["dna"], "application/vnd.dolby.mlp": ["mlp"], "application/vnd.dpgraph": ["dpg"], "application/vnd.dreamfactory": ["dfac"], "application/vnd.ds-keypoint": ["kpxx"], "application/vnd.dvb.ait": ["ait"], "application/vnd.dvb.service": ["svc"], "application/vnd.dynageo": ["geo"], "application/vnd.ecowin.chart": ["mag"], "application/vnd.enliven": ["nml"], "application/vnd.epson.esf": ["esf"], "application/vnd.epson.msf": ["msf"], "application/vnd.epson.quickanime": ["qam"], "application/vnd.epson.salt": ["slt"], "application/vnd.epson.ssf": ["ssf"], "application/vnd.eszigno3+xml": ["es3", "et3"], "application/vnd.ezpix-album": ["ez2"], "application/vnd.ezpix-package": ["ez3"], "application/vnd.fdf": ["fdf"], "application/vnd.fdsn.mseed": ["mseed"], "application/vnd.fdsn.seed": ["seed", "dataless"], "application/vnd.flographit": ["gph"], "application/vnd.fluxtime.clip": ["ftc"], "application/vnd.framemaker": ["fm", "frame", "maker", "book"], "application/vnd.frogans.fnc": ["fnc"], "application/vnd.frogans.ltf": ["ltf"], "application/vnd.fsc.weblaunch": ["fsc"], "application/vnd.fujitsu.oasys": ["oas"], "application/vnd.fujitsu.oasys2": ["oa2"], "application/vnd.fujitsu.oasys3": ["oa3"], "application/vnd.fujitsu.oasysgp": ["fg5"], "application/vnd.fujitsu.oasysprs": ["bh2"], "application/vnd.fujixerox.ddd": ["ddd"], "application/vnd.fujixerox.docuworks": ["xdw"], "application/vnd.fujixerox.docuworks.binder": ["xbd"], "application/vnd.fuzzysheet": ["fzs"], "application/vnd.genomatix.tuxedo": ["txd"], "application/vnd.geogebra.file": ["ggb"], "application/vnd.geogebra.tool": ["ggt"], "application/vnd.geometry-explorer": ["gex", "gre"], "application/vnd.geonext": ["gxt"], "application/vnd.geoplan": ["g2w"], "application/vnd.geospace": ["g3w"], "application/vnd.gmx": ["gmx"], "application/vnd.google-apps.document": ["gdoc"], "application/vnd.google-apps.presentation": ["gslides"], "application/vnd.google-apps.spreadsheet": ["gsheet"], "application/vnd.google-earth.kml+xml": ["kml"], "application/vnd.google-earth.kmz": ["kmz"], "application/vnd.grafeq": ["gqf", "gqs"], "application/vnd.groove-account": ["gac"], "application/vnd.groove-help": ["ghf"], "application/vnd.groove-identity-message": ["gim"], "application/vnd.groove-injector": ["grv"], "application/vnd.groove-tool-message": ["gtm"], "application/vnd.groove-tool-template": ["tpl"], "application/vnd.groove-vcard": ["vcg"], "application/vnd.hal+xml": ["hal"], "application/vnd.handheld-entertainment+xml": ["zmm"], "application/vnd.hbci": ["hbci"], "application/vnd.hhe.lesson-player": ["les"], "application/vnd.hp-hpgl": ["hpgl"], "application/vnd.hp-hpid": ["hpid"], "application/vnd.hp-hps": ["hps"], "application/vnd.hp-jlyt": ["jlt"], "application/vnd.hp-pcl": ["pcl"], "application/vnd.hp-pclxl": ["pclxl"], "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"], "application/vnd.ibm.minipay": ["mpy"], "application/vnd.ibm.modcap": ["afp", "listafp", "list3820"], "application/vnd.ibm.rights-management": ["irm"], "application/vnd.ibm.secure-container": ["sc"], "application/vnd.iccprofile": ["icc", "icm"], "application/vnd.igloader": ["igl"], "application/vnd.immervision-ivp": ["ivp"], "application/vnd.immervision-ivu": ["ivu"], "application/vnd.insors.igm": ["igm"], "application/vnd.intercon.formnet": ["xpw", "xpx"], "application/vnd.intergeo": ["i2g"], "application/vnd.intu.qbo": ["qbo"], "application/vnd.intu.qfx": ["qfx"], "application/vnd.ipunplugged.rcprofile": ["rcprofile"], "application/vnd.irepository.package+xml": ["irp"], "application/vnd.is-xpr": ["xpr"], "application/vnd.isac.fcs": ["fcs"], "application/vnd.jam": ["jam"], "application/vnd.jcp.javame.midlet-rms": ["rms"], "application/vnd.jisp": ["jisp"], "application/vnd.joost.joda-archive": ["joda"], "application/vnd.kahootz": ["ktz", "ktr"], "application/vnd.kde.karbon": ["karbon"], "application/vnd.kde.kchart": ["chrt"], "application/vnd.kde.kformula": ["kfo"], "application/vnd.kde.kivio": ["flw"], "application/vnd.kde.kontour": ["kon"], "application/vnd.kde.kpresenter": ["kpr", "kpt"], "application/vnd.kde.kspread": ["ksp"], "application/vnd.kde.kword": ["kwd", "kwt"], "application/vnd.kenameaapp": ["htke"], "application/vnd.kidspiration": ["kia"], "application/vnd.kinar": ["kne", "knp"], "application/vnd.koan": ["skp", "skd", "skt", "skm"], "application/vnd.kodak-descriptor": ["sse"], "application/vnd.las.las+xml": ["lasxml"], "application/vnd.llamagraphics.life-balance.desktop": ["lbd"], "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"], "application/vnd.lotus-1-2-3": ["123"], "application/vnd.lotus-approach": ["apr"], "application/vnd.lotus-freelance": ["pre"], "application/vnd.lotus-notes": ["nsf"], "application/vnd.lotus-organizer": ["org"], "application/vnd.lotus-screencam": ["scm"], "application/vnd.lotus-wordpro": ["lwp"], "application/vnd.macports.portpkg": ["portpkg"], "application/vnd.mapbox-vector-tile": ["mvt"], "application/vnd.mcd": ["mcd"], "application/vnd.medcalcdata": ["mc1"], "application/vnd.mediastation.cdkey": ["cdkey"], "application/vnd.mfer": ["mwf"], "application/vnd.mfmp": ["mfm"], "application/vnd.micrografx.flo": ["flo"], "application/vnd.micrografx.igx": ["igx"], "application/vnd.mif": ["mif"], "application/vnd.mobius.daf": ["daf"], "application/vnd.mobius.dis": ["dis"], "application/vnd.mobius.mbk": ["mbk"], "application/vnd.mobius.mqy": ["mqy"], "application/vnd.mobius.msl": ["msl"], "application/vnd.mobius.plc": ["plc"], "application/vnd.mobius.txf": ["txf"], "application/vnd.mophun.application": ["mpn"], "application/vnd.mophun.certificate": ["mpc"], "application/vnd.mozilla.xul+xml": ["xul"], "application/vnd.ms-artgalry": ["cil"], "application/vnd.ms-cab-compressed": ["cab"], "application/vnd.ms-excel": ["xls", "xlm", "xla", "xlc", "xlt", "xlw"], "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"], "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"], "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"], "application/vnd.ms-excel.template.macroenabled.12": ["xltm"], "application/vnd.ms-fontobject": ["eot"], "application/vnd.ms-htmlhelp": ["chm"], "application/vnd.ms-ims": ["ims"], "application/vnd.ms-lrm": ["lrm"], "application/vnd.ms-officetheme": ["thmx"], "application/vnd.ms-outlook": ["msg"], "application/vnd.ms-pki.seccat": ["cat"], "application/vnd.ms-pki.stl": ["*stl"], "application/vnd.ms-powerpoint": ["ppt", "pps", "pot"], "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"], "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"], "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"], "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"], "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"], "application/vnd.ms-project": ["mpp", "mpt"], "application/vnd.ms-word.document.macroenabled.12": ["docm"], "application/vnd.ms-word.template.macroenabled.12": ["dotm"], "application/vnd.ms-works": ["wps", "wks", "wcm", "wdb"], "application/vnd.ms-wpl": ["wpl"], "application/vnd.ms-xpsdocument": ["xps"], "application/vnd.mseq": ["mseq"], "application/vnd.musician": ["mus"], "application/vnd.muvee.style": ["msty"], "application/vnd.mynfc": ["taglet"], "application/vnd.neurolanguage.nlu": ["nlu"], "application/vnd.nitf": ["ntf", "nitf"], "application/vnd.noblenet-directory": ["nnd"], "application/vnd.noblenet-sealer": ["nns"], "application/vnd.noblenet-web": ["nnw"], "application/vnd.nokia.n-gage.ac+xml": ["*ac"], "application/vnd.nokia.n-gage.data": ["ngdat"], "application/vnd.nokia.n-gage.symbian.install": ["n-gage"], "application/vnd.nokia.radio-preset": ["rpst"], "application/vnd.nokia.radio-presets": ["rpss"], "application/vnd.novadigm.edm": ["edm"], "application/vnd.novadigm.edx": ["edx"], "application/vnd.novadigm.ext": ["ext"], "application/vnd.oasis.opendocument.chart": ["odc"], "application/vnd.oasis.opendocument.chart-template": ["otc"], "application/vnd.oasis.opendocument.database": ["odb"], "application/vnd.oasis.opendocument.formula": ["odf"], "application/vnd.oasis.opendocument.formula-template": ["odft"], "application/vnd.oasis.opendocument.graphics": ["odg"], "application/vnd.oasis.opendocument.graphics-template": ["otg"], "application/vnd.oasis.opendocument.image": ["odi"], "application/vnd.oasis.opendocument.image-template": ["oti"], "application/vnd.oasis.opendocument.presentation": ["odp"], "application/vnd.oasis.opendocument.presentation-template": ["otp"], "application/vnd.oasis.opendocument.spreadsheet": ["ods"], "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"], "application/vnd.oasis.opendocument.text": ["odt"], "application/vnd.oasis.opendocument.text-master": ["odm"], "application/vnd.oasis.opendocument.text-template": ["ott"], "application/vnd.oasis.opendocument.text-web": ["oth"], "application/vnd.olpc-sugar": ["xo"], "application/vnd.oma.dd2+xml": ["dd2"], "application/vnd.openblox.game+xml": ["obgx"], "application/vnd.openofficeorg.extension": ["oxt"], "application/vnd.openstreetmap.data+xml": ["osm"], "application/vnd.openxmlformats-officedocument.presentationml.presentation": ["pptx"], "application/vnd.openxmlformats-officedocument.presentationml.slide": ["sldx"], "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ["ppsx"], "application/vnd.openxmlformats-officedocument.presentationml.template": ["potx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ["xltx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ["docx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ["dotx"], "application/vnd.osgeo.mapguide.package": ["mgp"], "application/vnd.osgi.dp": ["dp"], "application/vnd.osgi.subsystem": ["esa"], "application/vnd.palm": ["pdb", "pqa", "oprc"], "application/vnd.pawaafile": ["paw"], "application/vnd.pg.format": ["str"], "application/vnd.pg.osasli": ["ei6"], "application/vnd.picsel": ["efif"], "application/vnd.pmi.widget": ["wg"], "application/vnd.pocketlearn": ["plf"], "application/vnd.powerbuilder6": ["pbd"], "application/vnd.previewsystems.box": ["box"], "application/vnd.proteus.magazine": ["mgz"], "application/vnd.publishare-delta-tree": ["qps"], "application/vnd.pvi.ptid1": ["ptid"], "application/vnd.quark.quarkxpress": ["qxd", "qxt", "qwd", "qwt", "qxl", "qxb"], "application/vnd.rar": ["rar"], "application/vnd.realvnc.bed": ["bed"], "application/vnd.recordare.musicxml": ["mxl"], "application/vnd.recordare.musicxml+xml": ["musicxml"], "application/vnd.rig.cryptonote": ["cryptonote"], "application/vnd.rim.cod": ["cod"], "application/vnd.rn-realmedia": ["rm"], "application/vnd.rn-realmedia-vbr": ["rmvb"], "application/vnd.route66.link66+xml": ["link66"], "application/vnd.sailingtracker.track": ["st"], "application/vnd.seemail": ["see"], "application/vnd.sema": ["sema"], "application/vnd.semd": ["semd"], "application/vnd.semf": ["semf"], "application/vnd.shana.informed.formdata": ["ifm"], "application/vnd.shana.informed.formtemplate": ["itp"], "application/vnd.shana.informed.interchange": ["iif"], "application/vnd.shana.informed.package": ["ipk"], "application/vnd.simtech-mindmapper": ["twd", "twds"], "application/vnd.smaf": ["mmf"], "application/vnd.smart.teacher": ["teacher"], "application/vnd.software602.filler.form+xml": ["fo"], "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"], "application/vnd.spotfire.dxp": ["dxp"], "application/vnd.spotfire.sfs": ["sfs"], "application/vnd.stardivision.calc": ["sdc"], "application/vnd.stardivision.draw": ["sda"], "application/vnd.stardivision.impress": ["sdd"], "application/vnd.stardivision.math": ["smf"], "application/vnd.stardivision.writer": ["sdw", "vor"], "application/vnd.stardivision.writer-global": ["sgl"], "application/vnd.stepmania.package": ["smzip"], "application/vnd.stepmania.stepchart": ["sm"], "application/vnd.sun.wadl+xml": ["wadl"], "application/vnd.sun.xml.calc": ["sxc"], "application/vnd.sun.xml.calc.template": ["stc"], "application/vnd.sun.xml.draw": ["sxd"], "application/vnd.sun.xml.draw.template": ["std"], "application/vnd.sun.xml.impress": ["sxi"], "application/vnd.sun.xml.impress.template": ["sti"], "application/vnd.sun.xml.math": ["sxm"], "application/vnd.sun.xml.writer": ["sxw"], "application/vnd.sun.xml.writer.global": ["sxg"], "application/vnd.sun.xml.writer.template": ["stw"], "application/vnd.sus-calendar": ["sus", "susp"], "application/vnd.svd": ["svd"], "application/vnd.symbian.install": ["sis", "sisx"], "application/vnd.syncml+xml": ["xsm"], "application/vnd.syncml.dm+wbxml": ["bdm"], "application/vnd.syncml.dm+xml": ["xdm"], "application/vnd.syncml.dmddf+xml": ["ddf"], "application/vnd.tao.intent-module-archive": ["tao"], "application/vnd.tcpdump.pcap": ["pcap", "cap", "dmp"], "application/vnd.tmobile-livetv": ["tmo"], "application/vnd.trid.tpt": ["tpt"], "application/vnd.triscape.mxs": ["mxs"], "application/vnd.trueapp": ["tra"], "application/vnd.ufdl": ["ufd", "ufdl"], "application/vnd.uiq.theme": ["utz"], "application/vnd.umajin": ["umj"], "application/vnd.unity": ["unityweb"], "application/vnd.uoml+xml": ["uoml"], "application/vnd.vcx": ["vcx"], "application/vnd.visio": ["vsd", "vst", "vss", "vsw"], "application/vnd.visionary": ["vis"], "application/vnd.vsf": ["vsf"], "application/vnd.wap.wbxml": ["wbxml"], "application/vnd.wap.wmlc": ["wmlc"], "application/vnd.wap.wmlscriptc": ["wmlsc"], "application/vnd.webturbo": ["wtb"], "application/vnd.wolfram.player": ["nbp"], "application/vnd.wordperfect": ["wpd"], "application/vnd.wqd": ["wqd"], "application/vnd.wt.stf": ["stf"], "application/vnd.xara": ["xar"], "application/vnd.xfdl": ["xfdl"], "application/vnd.yamaha.hv-dic": ["hvd"], "application/vnd.yamaha.hv-script": ["hvs"], "application/vnd.yamaha.hv-voice": ["hvp"], "application/vnd.yamaha.openscoreformat": ["osf"], "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"], "application/vnd.yamaha.smaf-audio": ["saf"], "application/vnd.yamaha.smaf-phrase": ["spf"], "application/vnd.yellowriver-custom-menu": ["cmp"], "application/vnd.zul": ["zir", "zirz"], "application/vnd.zzazz.deck+xml": ["zaz"], "application/x-7z-compressed": ["7z"], "application/x-abiword": ["abw"], "application/x-ace-compressed": ["ace"], "application/x-apple-diskimage": ["*dmg"], "application/x-arj": ["arj"], "application/x-authorware-bin": ["aab", "x32", "u32", "vox"], "application/x-authorware-map": ["aam"], "application/x-authorware-seg": ["aas"], "application/x-bcpio": ["bcpio"], "application/x-bdoc": ["*bdoc"], "application/x-bittorrent": ["torrent"], "application/x-blorb": ["blb", "blorb"], "application/x-bzip": ["bz"], "application/x-bzip2": ["bz2", "boz"], "application/x-cbr": ["cbr", "cba", "cbt", "cbz", "cb7"], "application/x-cdlink": ["vcd"], "application/x-cfs-compressed": ["cfs"], "application/x-chat": ["chat"], "application/x-chess-pgn": ["pgn"], "application/x-chrome-extension": ["crx"], "application/x-cocoa": ["cco"], "application/x-conference": ["nsc"], "application/x-cpio": ["cpio"], "application/x-csh": ["csh"], "application/x-debian-package": ["*deb", "udeb"], "application/x-dgc-compressed": ["dgc"], "application/x-director": ["dir", "dcr", "dxr", "cst", "cct", "cxt", "w3d", "fgd", "swa"], "application/x-doom": ["wad"], "application/x-dtbncx+xml": ["ncx"], "application/x-dtbook+xml": ["dtb"], "application/x-dtbresource+xml": ["res"], "application/x-dvi": ["dvi"], "application/x-envoy": ["evy"], "application/x-eva": ["eva"], "application/x-font-bdf": ["bdf"], "application/x-font-ghostscript": ["gsf"], "application/x-font-linux-psf": ["psf"], "application/x-font-pcf": ["pcf"], "application/x-font-snf": ["snf"], "application/x-font-type1": ["pfa", "pfb", "pfm", "afm"], "application/x-freearc": ["arc"], "application/x-futuresplash": ["spl"], "application/x-gca-compressed": ["gca"], "application/x-glulx": ["ulx"], "application/x-gnumeric": ["gnumeric"], "application/x-gramps-xml": ["gramps"], "application/x-gtar": ["gtar"], "application/x-hdf": ["hdf"], "application/x-httpd-php": ["php"], "application/x-install-instructions": ["install"], "application/x-iso9660-image": ["*iso"], "application/x-iwork-keynote-sffkey": ["*key"], "application/x-iwork-numbers-sffnumbers": ["*numbers"], "application/x-iwork-pages-sffpages": ["*pages"], "application/x-java-archive-diff": ["jardiff"], "application/x-java-jnlp-file": ["jnlp"], "application/x-keepass2": ["kdbx"], "application/x-latex": ["latex"], "application/x-lua-bytecode": ["luac"], "application/x-lzh-compressed": ["lzh", "lha"], "application/x-makeself": ["run"], "application/x-mie": ["mie"], "application/x-mobipocket-ebook": ["prc", "mobi"], "application/x-ms-application": ["application"], "application/x-ms-shortcut": ["lnk"], "application/x-ms-wmd": ["wmd"], "application/x-ms-wmz": ["wmz"], "application/x-ms-xbap": ["xbap"], "application/x-msaccess": ["mdb"], "application/x-msbinder": ["obd"], "application/x-mscardfile": ["crd"], "application/x-msclip": ["clp"], "application/x-msdos-program": ["*exe"], "application/x-msdownload": ["*exe", "*dll", "com", "bat", "*msi"], "application/x-msmediaview": ["mvb", "m13", "m14"], "application/x-msmetafile": ["*wmf", "*wmz", "*emf", "emz"], "application/x-msmoney": ["mny"], "application/x-mspublisher": ["pub"], "application/x-msschedule": ["scd"], "application/x-msterminal": ["trm"], "application/x-mswrite": ["wri"], "application/x-netcdf": ["nc", "cdf"], "application/x-ns-proxy-autoconfig": ["pac"], "application/x-nzb": ["nzb"], "application/x-perl": ["pl", "pm"], "application/x-pilot": ["*prc", "*pdb"], "application/x-pkcs12": ["p12", "pfx"], "application/x-pkcs7-certificates": ["p7b", "spc"], "application/x-pkcs7-certreqresp": ["p7r"], "application/x-rar-compressed": ["*rar"], "application/x-redhat-package-manager": ["rpm"], "application/x-research-info-systems": ["ris"], "application/x-sea": ["sea"], "application/x-sh": ["sh"], "application/x-shar": ["shar"], "application/x-shockwave-flash": ["swf"], "application/x-silverlight-app": ["xap"], "application/x-sql": ["sql"], "application/x-stuffit": ["sit"], "application/x-stuffitx": ["sitx"], "application/x-subrip": ["srt"], "application/x-sv4cpio": ["sv4cpio"], "application/x-sv4crc": ["sv4crc"], "application/x-t3vm-image": ["t3"], "application/x-tads": ["gam"], "application/x-tar": ["tar"], "application/x-tcl": ["tcl", "tk"], "application/x-tex": ["tex"], "application/x-tex-tfm": ["tfm"], "application/x-texinfo": ["texinfo", "texi"], "application/x-tgif": ["*obj"], "application/x-ustar": ["ustar"], "application/x-virtualbox-hdd": ["hdd"], "application/x-virtualbox-ova": ["ova"], "application/x-virtualbox-ovf": ["ovf"], "application/x-virtualbox-vbox": ["vbox"], "application/x-virtualbox-vbox-extpack": ["vbox-extpack"], "application/x-virtualbox-vdi": ["vdi"], "application/x-virtualbox-vhd": ["vhd"], "application/x-virtualbox-vmdk": ["vmdk"], "application/x-wais-source": ["src"], "application/x-web-app-manifest+json": ["webapp"], "application/x-x509-ca-cert": ["der", "crt", "pem"], "application/x-xfig": ["fig"], "application/x-xliff+xml": ["*xlf"], "application/x-xpinstall": ["xpi"], "application/x-xz": ["xz"], "application/x-zmachine": ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"], "audio/vnd.dece.audio": ["uva", "uvva"], "audio/vnd.digital-winds": ["eol"], "audio/vnd.dra": ["dra"], "audio/vnd.dts": ["dts"], "audio/vnd.dts.hd": ["dtshd"], "audio/vnd.lucent.voice": ["lvp"], "audio/vnd.ms-playready.media.pya": ["pya"], "audio/vnd.nuera.ecelp4800": ["ecelp4800"], "audio/vnd.nuera.ecelp7470": ["ecelp7470"], "audio/vnd.nuera.ecelp9600": ["ecelp9600"], "audio/vnd.rip": ["rip"], "audio/x-aac": ["aac"], "audio/x-aiff": ["aif", "aiff", "aifc"], "audio/x-caf": ["caf"], "audio/x-flac": ["flac"], "audio/x-m4a": ["*m4a"], "audio/x-matroska": ["mka"], "audio/x-mpegurl": ["m3u"], "audio/x-ms-wax": ["wax"], "audio/x-ms-wma": ["wma"], "audio/x-pn-realaudio": ["ram", "ra"], "audio/x-pn-realaudio-plugin": ["rmp"], "audio/x-realaudio": ["*ra"], "audio/x-wav": ["*wav"], "chemical/x-cdx": ["cdx"], "chemical/x-cif": ["cif"], "chemical/x-cmdf": ["cmdf"], "chemical/x-cml": ["cml"], "chemical/x-csml": ["csml"], "chemical/x-xyz": ["xyz"], "image/prs.btif": ["btif"], "image/prs.pti": ["pti"], "image/vnd.adobe.photoshop": ["psd"], "image/vnd.airzip.accelerator.azv": ["azv"], "image/vnd.dece.graphic": ["uvi", "uvvi", "uvg", "uvvg"], "image/vnd.djvu": ["djvu", "djv"], "image/vnd.dvb.subtitle": ["*sub"], "image/vnd.dwg": ["dwg"], "image/vnd.dxf": ["dxf"], "image/vnd.fastbidsheet": ["fbs"], "image/vnd.fpx": ["fpx"], "image/vnd.fst": ["fst"], "image/vnd.fujixerox.edmics-mmr": ["mmr"], "image/vnd.fujixerox.edmics-rlc": ["rlc"], "image/vnd.microsoft.icon": ["ico"], "image/vnd.ms-dds": ["dds"], "image/vnd.ms-modi": ["mdi"], "image/vnd.ms-photo": ["wdp"], "image/vnd.net-fpx": ["npx"], "image/vnd.pco.b16": ["b16"], "image/vnd.tencent.tap": ["tap"], "image/vnd.valve.source.texture": ["vtf"], "image/vnd.wap.wbmp": ["wbmp"], "image/vnd.xiff": ["xif"], "image/vnd.zbrush.pcx": ["pcx"], "image/x-3ds": ["3ds"], "image/x-cmu-raster": ["ras"], "image/x-cmx": ["cmx"], "image/x-freehand": ["fh", "fhc", "fh4", "fh5", "fh7"], "image/x-icon": ["*ico"], "image/x-jng": ["jng"], "image/x-mrsid-image": ["sid"], "image/x-ms-bmp": ["*bmp"], "image/x-pcx": ["*pcx"], "image/x-pict": ["pic", "pct"], "image/x-portable-anymap": ["pnm"], "image/x-portable-bitmap": ["pbm"], "image/x-portable-graymap": ["pgm"], "image/x-portable-pixmap": ["ppm"], "image/x-rgb": ["rgb"], "image/x-tga": ["tga"], "image/x-xbitmap": ["xbm"], "image/x-xpixmap": ["xpm"], "image/x-xwindowdump": ["xwd"], "message/vnd.wfa.wsc": ["wsc"], "model/vnd.collada+xml": ["dae"], "model/vnd.dwf": ["dwf"], "model/vnd.gdl": ["gdl"], "model/vnd.gtw": ["gtw"], "model/vnd.mts": ["mts"], "model/vnd.opengex": ["ogex"], "model/vnd.parasolid.transmit.binary": ["x_b"], "model/vnd.parasolid.transmit.text": ["x_t"], "model/vnd.sap.vds": ["vds"], "model/vnd.usdz+zip": ["usdz"], "model/vnd.valve.source.compiled-map": ["bsp"], "model/vnd.vtu": ["vtu"], "text/prs.lines.tag": ["dsc"], "text/vnd.curl": ["curl"], "text/vnd.curl.dcurl": ["dcurl"], "text/vnd.curl.mcurl": ["mcurl"], "text/vnd.curl.scurl": ["scurl"], "text/vnd.dvb.subtitle": ["sub"], "text/vnd.fly": ["fly"], "text/vnd.fmi.flexstor": ["flx"], "text/vnd.graphviz": ["gv"], "text/vnd.in3d.3dml": ["3dml"], "text/vnd.in3d.spot": ["spot"], "text/vnd.sun.j2me.app-descriptor": ["jad"], "text/vnd.wap.wml": ["wml"], "text/vnd.wap.wmlscript": ["wmls"], "text/x-asm": ["s", "asm"], "text/x-c": ["c", "cc", "cxx", "cpp", "h", "hh", "dic"], "text/x-component": ["htc"], "text/x-fortran": ["f", "for", "f77", "f90"], "text/x-handlebars-template": ["hbs"], "text/x-java-source": ["java"], "text/x-lua": ["lua"], "text/x-markdown": ["mkd"], "text/x-nfo": ["nfo"], "text/x-opml": ["opml"], "text/x-org": ["*org"], "text/x-pascal": ["p", "pas"], "text/x-processing": ["pde"], "text/x-sass": ["sass"], "text/x-scss": ["scss"], "text/x-setext": ["etx"], "text/x-sfv": ["sfv"], "text/x-suse-ymp": ["ymp"], "text/x-uuencode": ["uu"], "text/x-vcalendar": ["vcs"], "text/x-vcard": ["vcf"], "video/vnd.dece.hd": ["uvh", "uvvh"], "video/vnd.dece.mobile": ["uvm", "uvvm"], "video/vnd.dece.pd": ["uvp", "uvvp"], "video/vnd.dece.sd": ["uvs", "uvvs"], "video/vnd.dece.video": ["uvv", "uvvv"], "video/vnd.dvb.file": ["dvb"], "video/vnd.fvt": ["fvt"], "video/vnd.mpegurl": ["mxu", "m4u"], "video/vnd.ms-playready.media.pyv": ["pyv"], "video/vnd.uvvu.mp4": ["uvu", "uvvu"], "video/vnd.vivo": ["viv"], "video/x-f4v": ["f4v"], "video/x-fli": ["fli"], "video/x-flv": ["flv"], "video/x-m4v": ["m4v"], "video/x-matroska": ["mkv", "mk3d", "mks"], "video/x-mng": ["mng"], "video/x-ms-asf": ["asf", "asx"], "video/x-ms-vob": ["vob"], "video/x-ms-wm": ["wm"], "video/x-ms-wmv": ["wmv"], "video/x-ms-wmx": ["wmx"], "video/x-ms-wvx": ["wvx"], "video/x-msvideo": ["avi"], "video/x-sgi-movie": ["movie"], "video/x-smv": ["smv"], "x-conference/x-cooltalk": ["ice"] };
|
|
4246
|
-
}
|
|
4247
|
-
});
|
|
4248
|
-
|
|
4249
|
-
// node_modules/mime/index.js
|
|
4250
|
-
var require_mime = __commonJS({
|
|
4251
|
-
"node_modules/mime/index.js"(exports2, module2) {
|
|
4252
|
-
"use strict";
|
|
4253
|
-
var Mime = require_Mime();
|
|
4254
|
-
module2.exports = new Mime(require_standard(), require_other());
|
|
4255
|
-
}
|
|
4256
|
-
});
|
|
4257
|
-
|
|
4258
|
-
// node_modules/concat-map/index.js
|
|
4259
|
-
var require_concat_map = __commonJS({
|
|
4260
|
-
"node_modules/concat-map/index.js"(exports2, module2) {
|
|
4261
|
-
module2.exports = function(xs, fn) {
|
|
4262
|
-
var res = [];
|
|
4263
|
-
for (var i = 0; i < xs.length; i++) {
|
|
4264
|
-
var x = fn(xs[i], i);
|
|
4265
|
-
if (isArray(x)) res.push.apply(res, x);
|
|
4266
|
-
else res.push(x);
|
|
4267
|
-
}
|
|
4268
|
-
return res;
|
|
4269
|
-
};
|
|
4270
|
-
var isArray = Array.isArray || function(xs) {
|
|
4271
|
-
return Object.prototype.toString.call(xs) === "[object Array]";
|
|
4272
|
-
};
|
|
4273
|
-
}
|
|
4274
|
-
});
|
|
4275
|
-
|
|
4276
|
-
// node_modules/balanced-match/index.js
|
|
4277
|
-
var require_balanced_match = __commonJS({
|
|
4278
|
-
"node_modules/balanced-match/index.js"(exports2, module2) {
|
|
4279
|
-
"use strict";
|
|
4280
|
-
module2.exports = balanced;
|
|
4281
|
-
function balanced(a, b, str) {
|
|
4282
|
-
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
4283
|
-
if (b instanceof RegExp) b = maybeMatch(b, str);
|
|
4284
|
-
var r = range(a, b, str);
|
|
4285
|
-
return r && {
|
|
4286
|
-
start: r[0],
|
|
4287
|
-
end: r[1],
|
|
4288
|
-
pre: str.slice(0, r[0]),
|
|
4289
|
-
body: str.slice(r[0] + a.length, r[1]),
|
|
4290
|
-
post: str.slice(r[1] + b.length)
|
|
4291
|
-
};
|
|
4292
|
-
}
|
|
4293
|
-
function maybeMatch(reg, str) {
|
|
4294
|
-
var m = str.match(reg);
|
|
4295
|
-
return m ? m[0] : null;
|
|
4296
|
-
}
|
|
4297
|
-
balanced.range = range;
|
|
4298
|
-
function range(a, b, str) {
|
|
4299
|
-
var begs, beg, left, right, result2;
|
|
4300
|
-
var ai = str.indexOf(a);
|
|
4301
|
-
var bi = str.indexOf(b, ai + 1);
|
|
4302
|
-
var i = ai;
|
|
4303
|
-
if (ai >= 0 && bi > 0) {
|
|
4304
|
-
if (a === b) {
|
|
4305
|
-
return [ai, bi];
|
|
4306
|
-
}
|
|
4307
|
-
begs = [];
|
|
4308
|
-
left = str.length;
|
|
4309
|
-
while (i >= 0 && !result2) {
|
|
4310
|
-
if (i == ai) {
|
|
4311
|
-
begs.push(i);
|
|
4312
|
-
ai = str.indexOf(a, i + 1);
|
|
4313
|
-
} else if (begs.length == 1) {
|
|
4314
|
-
result2 = [begs.pop(), bi];
|
|
4315
|
-
} else {
|
|
4316
|
-
beg = begs.pop();
|
|
4317
|
-
if (beg < left) {
|
|
4318
|
-
left = beg;
|
|
4319
|
-
right = bi;
|
|
4320
|
-
}
|
|
4321
|
-
bi = str.indexOf(b, i + 1);
|
|
4322
|
-
}
|
|
4323
|
-
i = ai < bi && ai >= 0 ? ai : bi;
|
|
4324
|
-
}
|
|
4325
|
-
if (begs.length) {
|
|
4326
|
-
result2 = [left, right];
|
|
4327
|
-
}
|
|
4328
|
-
}
|
|
4329
|
-
return result2;
|
|
4330
|
-
}
|
|
4331
|
-
}
|
|
4332
|
-
});
|
|
4333
|
-
|
|
4334
|
-
// node_modules/brace-expansion/index.js
|
|
4335
|
-
var require_brace_expansion = __commonJS({
|
|
4336
|
-
"node_modules/brace-expansion/index.js"(exports2, module2) {
|
|
4337
|
-
var concatMap = require_concat_map();
|
|
4338
|
-
var balanced = require_balanced_match();
|
|
4339
|
-
module2.exports = expandTop;
|
|
4340
|
-
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
4341
|
-
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
4342
|
-
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
4343
|
-
var escComma = "\0COMMA" + Math.random() + "\0";
|
|
4344
|
-
var escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
4345
|
-
function numeric(str) {
|
|
4346
|
-
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
4347
|
-
}
|
|
4348
|
-
function escapeBraces(str) {
|
|
4349
|
-
return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
|
|
4350
|
-
}
|
|
4351
|
-
function unescapeBraces(str) {
|
|
4352
|
-
return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
|
|
4353
|
-
}
|
|
4354
|
-
function parseCommaParts(str) {
|
|
4355
|
-
if (!str)
|
|
4356
|
-
return [""];
|
|
4357
|
-
var parts = [];
|
|
4358
|
-
var m = balanced("{", "}", str);
|
|
4359
|
-
if (!m)
|
|
4360
|
-
return str.split(",");
|
|
4361
|
-
var pre = m.pre;
|
|
4362
|
-
var body = m.body;
|
|
4363
|
-
var post = m.post;
|
|
4364
|
-
var p = pre.split(",");
|
|
4365
|
-
p[p.length - 1] += "{" + body + "}";
|
|
4366
|
-
var postParts = parseCommaParts(post);
|
|
4367
|
-
if (post.length) {
|
|
4368
|
-
p[p.length - 1] += postParts.shift();
|
|
4369
|
-
p.push.apply(p, postParts);
|
|
4370
|
-
}
|
|
4371
|
-
parts.push.apply(parts, p);
|
|
4372
|
-
return parts;
|
|
4373
|
-
}
|
|
4374
|
-
function expandTop(str) {
|
|
4375
|
-
if (!str)
|
|
4376
|
-
return [];
|
|
4377
|
-
if (str.substr(0, 2) === "{}") {
|
|
4378
|
-
str = "\\{\\}" + str.substr(2);
|
|
4379
|
-
}
|
|
4380
|
-
return expand(escapeBraces(str), true).map(unescapeBraces);
|
|
4381
|
-
}
|
|
4382
|
-
function embrace(str) {
|
|
4383
|
-
return "{" + str + "}";
|
|
4384
|
-
}
|
|
4385
|
-
function isPadded(el) {
|
|
4386
|
-
return /^-?0\d/.test(el);
|
|
4387
|
-
}
|
|
4388
|
-
function lte(i, y) {
|
|
4389
|
-
return i <= y;
|
|
4390
|
-
}
|
|
4391
|
-
function gte(i, y) {
|
|
4392
|
-
return i >= y;
|
|
4393
|
-
}
|
|
4394
|
-
function expand(str, isTop) {
|
|
4395
|
-
var expansions = [];
|
|
4396
|
-
var m = balanced("{", "}", str);
|
|
4397
|
-
if (!m || /\$$/.test(m.pre)) return [str];
|
|
4398
|
-
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
4399
|
-
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
4400
|
-
var isSequence = isNumericSequence || isAlphaSequence;
|
|
4401
|
-
var isOptions = m.body.indexOf(",") >= 0;
|
|
4402
|
-
if (!isSequence && !isOptions) {
|
|
4403
|
-
if (m.post.match(/,(?!,).*\}/)) {
|
|
4404
|
-
str = m.pre + "{" + m.body + escClose + m.post;
|
|
4405
|
-
return expand(str);
|
|
4406
|
-
}
|
|
4407
|
-
return [str];
|
|
4408
|
-
}
|
|
4409
|
-
var n;
|
|
4410
|
-
if (isSequence) {
|
|
4411
|
-
n = m.body.split(/\.\./);
|
|
4412
|
-
} else {
|
|
4413
|
-
n = parseCommaParts(m.body);
|
|
4414
|
-
if (n.length === 1) {
|
|
4415
|
-
n = expand(n[0], false).map(embrace);
|
|
4416
|
-
if (n.length === 1) {
|
|
4417
|
-
var post = m.post.length ? expand(m.post, false) : [""];
|
|
4418
|
-
return post.map(function(p) {
|
|
4419
|
-
return m.pre + n[0] + p;
|
|
4420
|
-
});
|
|
4421
|
-
}
|
|
4422
|
-
}
|
|
4423
|
-
}
|
|
4424
|
-
var pre = m.pre;
|
|
4425
|
-
var post = m.post.length ? expand(m.post, false) : [""];
|
|
4426
|
-
var N;
|
|
4427
|
-
if (isSequence) {
|
|
4428
|
-
var x = numeric(n[0]);
|
|
4429
|
-
var y = numeric(n[1]);
|
|
4430
|
-
var width = Math.max(n[0].length, n[1].length);
|
|
4431
|
-
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
4432
|
-
var test = lte;
|
|
4433
|
-
var reverse = y < x;
|
|
4434
|
-
if (reverse) {
|
|
4435
|
-
incr *= -1;
|
|
4436
|
-
test = gte;
|
|
4437
|
-
}
|
|
4438
|
-
var pad = n.some(isPadded);
|
|
4439
|
-
N = [];
|
|
4440
|
-
for (var i = x; test(i, y); i += incr) {
|
|
4441
|
-
var c;
|
|
4442
|
-
if (isAlphaSequence) {
|
|
4443
|
-
c = String.fromCharCode(i);
|
|
4444
|
-
if (c === "\\")
|
|
4445
|
-
c = "";
|
|
4446
|
-
} else {
|
|
4447
|
-
c = String(i);
|
|
4448
|
-
if (pad) {
|
|
4449
|
-
var need = width - c.length;
|
|
4450
|
-
if (need > 0) {
|
|
4451
|
-
var z = new Array(need + 1).join("0");
|
|
4452
|
-
if (i < 0)
|
|
4453
|
-
c = "-" + z + c.slice(1);
|
|
4454
|
-
else
|
|
4455
|
-
c = z + c;
|
|
4456
|
-
}
|
|
4457
|
-
}
|
|
4458
|
-
}
|
|
4459
|
-
N.push(c);
|
|
4460
|
-
}
|
|
4461
|
-
} else {
|
|
4462
|
-
N = concatMap(n, function(el) {
|
|
4463
|
-
return expand(el, false);
|
|
4464
|
-
});
|
|
4465
|
-
}
|
|
4466
|
-
for (var j = 0; j < N.length; j++) {
|
|
4467
|
-
for (var k = 0; k < post.length; k++) {
|
|
4468
|
-
var expansion = pre + N[j] + post[k];
|
|
4469
|
-
if (!isTop || isSequence || expansion)
|
|
4470
|
-
expansions.push(expansion);
|
|
4471
|
-
}
|
|
4472
|
-
}
|
|
4473
|
-
return expansions;
|
|
4474
|
-
}
|
|
4475
|
-
}
|
|
4476
|
-
});
|
|
4477
|
-
|
|
4478
|
-
// node_modules/minimatch/minimatch.js
|
|
4479
|
-
var require_minimatch = __commonJS({
|
|
4480
|
-
"node_modules/minimatch/minimatch.js"(exports2, module2) {
|
|
4481
|
-
module2.exports = minimatch2;
|
|
4482
|
-
minimatch2.Minimatch = Minimatch;
|
|
4483
|
-
var path6 = (function() {
|
|
4484
|
-
try {
|
|
4485
|
-
return require("path");
|
|
4486
|
-
} catch (e) {
|
|
4487
|
-
}
|
|
4488
|
-
})() || {
|
|
4489
|
-
sep: "/"
|
|
4490
|
-
};
|
|
4491
|
-
minimatch2.sep = path6.sep;
|
|
4492
|
-
var GLOBSTAR = minimatch2.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
4493
|
-
var expand = require_brace_expansion();
|
|
4494
|
-
var plTypes = {
|
|
4495
|
-
"!": { open: "(?:(?!(?:", close: "))[^/]*?)" },
|
|
4496
|
-
"?": { open: "(?:", close: ")?" },
|
|
4497
|
-
"+": { open: "(?:", close: ")+" },
|
|
4498
|
-
"*": { open: "(?:", close: ")*" },
|
|
4499
|
-
"@": { open: "(?:", close: ")" }
|
|
4500
|
-
};
|
|
4501
|
-
var qmark = "[^/]";
|
|
4502
|
-
var star = qmark + "*?";
|
|
4503
|
-
var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
4504
|
-
var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
4505
|
-
var reSpecials = charSet("().*{}+?[]^$\\!");
|
|
4506
|
-
function charSet(s) {
|
|
4507
|
-
return s.split("").reduce(function(set, c) {
|
|
4508
|
-
set[c] = true;
|
|
4509
|
-
return set;
|
|
4510
|
-
}, {});
|
|
4511
|
-
}
|
|
4512
|
-
var slashSplit = /\/+/;
|
|
4513
|
-
minimatch2.filter = filter;
|
|
4514
|
-
function filter(pattern, options) {
|
|
4515
|
-
options = options || {};
|
|
4516
|
-
return function(p, i, list) {
|
|
4517
|
-
return minimatch2(p, pattern, options);
|
|
4518
|
-
};
|
|
4519
|
-
}
|
|
4520
|
-
function ext(a, b) {
|
|
4521
|
-
b = b || {};
|
|
4522
|
-
var t = {};
|
|
4523
|
-
Object.keys(a).forEach(function(k) {
|
|
4524
|
-
t[k] = a[k];
|
|
4525
|
-
});
|
|
4526
|
-
Object.keys(b).forEach(function(k) {
|
|
4527
|
-
t[k] = b[k];
|
|
4528
|
-
});
|
|
4529
|
-
return t;
|
|
4530
|
-
}
|
|
4531
|
-
minimatch2.defaults = function(def) {
|
|
4532
|
-
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
4533
|
-
return minimatch2;
|
|
4534
|
-
}
|
|
4535
|
-
var orig = minimatch2;
|
|
4536
|
-
var m = function minimatch3(p, pattern, options) {
|
|
4537
|
-
return orig(p, pattern, ext(def, options));
|
|
4538
|
-
};
|
|
4539
|
-
m.Minimatch = function Minimatch2(pattern, options) {
|
|
4540
|
-
return new orig.Minimatch(pattern, ext(def, options));
|
|
4541
|
-
};
|
|
4542
|
-
m.Minimatch.defaults = function defaults(options) {
|
|
4543
|
-
return orig.defaults(ext(def, options)).Minimatch;
|
|
4544
|
-
};
|
|
4545
|
-
m.filter = function filter2(pattern, options) {
|
|
4546
|
-
return orig.filter(pattern, ext(def, options));
|
|
4547
|
-
};
|
|
4548
|
-
m.defaults = function defaults(options) {
|
|
4549
|
-
return orig.defaults(ext(def, options));
|
|
4550
|
-
};
|
|
4551
|
-
m.makeRe = function makeRe2(pattern, options) {
|
|
4552
|
-
return orig.makeRe(pattern, ext(def, options));
|
|
4553
|
-
};
|
|
4554
|
-
m.braceExpand = function braceExpand2(pattern, options) {
|
|
4555
|
-
return orig.braceExpand(pattern, ext(def, options));
|
|
4556
|
-
};
|
|
4557
|
-
m.match = function(list, pattern, options) {
|
|
4558
|
-
return orig.match(list, pattern, ext(def, options));
|
|
4559
|
-
};
|
|
4560
|
-
return m;
|
|
4561
|
-
};
|
|
4562
|
-
Minimatch.defaults = function(def) {
|
|
4563
|
-
return minimatch2.defaults(def).Minimatch;
|
|
4564
|
-
};
|
|
4565
|
-
function minimatch2(p, pattern, options) {
|
|
4566
|
-
assertValidPattern(pattern);
|
|
4567
|
-
if (!options) options = {};
|
|
4568
|
-
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
4569
|
-
return false;
|
|
4570
|
-
}
|
|
4571
|
-
return new Minimatch(pattern, options).match(p);
|
|
4572
|
-
}
|
|
4573
|
-
function Minimatch(pattern, options) {
|
|
4574
|
-
if (!(this instanceof Minimatch)) {
|
|
4575
|
-
return new Minimatch(pattern, options);
|
|
4576
|
-
}
|
|
4577
|
-
assertValidPattern(pattern);
|
|
4578
|
-
if (!options) options = {};
|
|
4579
|
-
pattern = pattern.trim();
|
|
4580
|
-
if (!options.allowWindowsEscape && path6.sep !== "/") {
|
|
4581
|
-
pattern = pattern.split(path6.sep).join("/");
|
|
4582
|
-
}
|
|
4583
|
-
this.options = options;
|
|
4584
|
-
this.maxGlobstarRecursion = options.maxGlobstarRecursion !== void 0 ? options.maxGlobstarRecursion : 200;
|
|
4585
|
-
this.set = [];
|
|
4586
|
-
this.pattern = pattern;
|
|
4587
|
-
this.regexp = null;
|
|
4588
|
-
this.negate = false;
|
|
4589
|
-
this.comment = false;
|
|
4590
|
-
this.empty = false;
|
|
4591
|
-
this.partial = !!options.partial;
|
|
4592
|
-
this.make();
|
|
4593
|
-
}
|
|
4594
|
-
Minimatch.prototype.debug = function() {
|
|
4595
|
-
};
|
|
4596
|
-
Minimatch.prototype.make = make;
|
|
4597
|
-
function make() {
|
|
4598
|
-
var pattern = this.pattern;
|
|
4599
|
-
var options = this.options;
|
|
4600
|
-
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
4601
|
-
this.comment = true;
|
|
4602
|
-
return;
|
|
4603
|
-
}
|
|
4604
|
-
if (!pattern) {
|
|
4605
|
-
this.empty = true;
|
|
4606
|
-
return;
|
|
4607
|
-
}
|
|
4608
|
-
this.parseNegate();
|
|
4609
|
-
var set = this.globSet = this.braceExpand();
|
|
4610
|
-
if (options.debug) this.debug = function debug2() {
|
|
4611
|
-
console.error.apply(console, arguments);
|
|
4612
|
-
};
|
|
4613
|
-
this.debug(this.pattern, set);
|
|
4614
|
-
set = this.globParts = set.map(function(s) {
|
|
4615
|
-
return s.split(slashSplit);
|
|
4616
|
-
});
|
|
4617
|
-
this.debug(this.pattern, set);
|
|
4618
|
-
set = set.map(function(s, si, set2) {
|
|
4619
|
-
return s.map(this.parse, this);
|
|
4620
|
-
}, this);
|
|
4621
|
-
this.debug(this.pattern, set);
|
|
4622
|
-
set = set.filter(function(s) {
|
|
4623
|
-
return s.indexOf(false) === -1;
|
|
4624
|
-
});
|
|
4625
|
-
this.debug(this.pattern, set);
|
|
4626
|
-
this.set = set;
|
|
4627
|
-
}
|
|
4628
|
-
Minimatch.prototype.parseNegate = parseNegate;
|
|
4629
|
-
function parseNegate() {
|
|
4630
|
-
var pattern = this.pattern;
|
|
4631
|
-
var negate = false;
|
|
4632
|
-
var options = this.options;
|
|
4633
|
-
var negateOffset = 0;
|
|
4634
|
-
if (options.nonegate) return;
|
|
4635
|
-
for (var i = 0, l = pattern.length; i < l && pattern.charAt(i) === "!"; i++) {
|
|
4636
|
-
negate = !negate;
|
|
4637
|
-
negateOffset++;
|
|
4638
|
-
}
|
|
4639
|
-
if (negateOffset) this.pattern = pattern.substr(negateOffset);
|
|
4640
|
-
this.negate = negate;
|
|
4641
|
-
}
|
|
4642
|
-
minimatch2.braceExpand = function(pattern, options) {
|
|
4643
|
-
return braceExpand(pattern, options);
|
|
4644
|
-
};
|
|
4645
|
-
Minimatch.prototype.braceExpand = braceExpand;
|
|
4646
|
-
function braceExpand(pattern, options) {
|
|
4647
|
-
if (!options) {
|
|
4648
|
-
if (this instanceof Minimatch) {
|
|
4649
|
-
options = this.options;
|
|
4650
|
-
} else {
|
|
4651
|
-
options = {};
|
|
4652
|
-
}
|
|
4653
|
-
}
|
|
4654
|
-
pattern = typeof pattern === "undefined" ? this.pattern : pattern;
|
|
4655
|
-
assertValidPattern(pattern);
|
|
4656
|
-
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
4657
|
-
return [pattern];
|
|
4658
|
-
}
|
|
4659
|
-
return expand(pattern);
|
|
4660
|
-
}
|
|
4661
|
-
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
4662
|
-
var assertValidPattern = function(pattern) {
|
|
4663
|
-
if (typeof pattern !== "string") {
|
|
4664
|
-
throw new TypeError("invalid pattern");
|
|
4665
|
-
}
|
|
4666
|
-
if (pattern.length > MAX_PATTERN_LENGTH) {
|
|
4667
|
-
throw new TypeError("pattern is too long");
|
|
4668
|
-
}
|
|
4669
|
-
};
|
|
4670
|
-
Minimatch.prototype.parse = parse;
|
|
4671
|
-
var SUBPARSE = {};
|
|
4672
|
-
function parse(pattern, isSub) {
|
|
4673
|
-
assertValidPattern(pattern);
|
|
4674
|
-
var options = this.options;
|
|
4675
|
-
if (pattern === "**") {
|
|
4676
|
-
if (!options.noglobstar)
|
|
4677
|
-
return GLOBSTAR;
|
|
4678
|
-
else
|
|
4679
|
-
pattern = "*";
|
|
4680
|
-
}
|
|
4681
|
-
if (pattern === "") return "";
|
|
4682
|
-
var re2 = "";
|
|
4683
|
-
var hasMagic = !!options.nocase;
|
|
4684
|
-
var escaping = false;
|
|
4685
|
-
var patternListStack = [];
|
|
4686
|
-
var negativeLists = [];
|
|
4687
|
-
var stateChar;
|
|
4688
|
-
var inClass = false;
|
|
4689
|
-
var reClassStart = -1;
|
|
4690
|
-
var classStart = -1;
|
|
4691
|
-
var patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
4692
|
-
var self = this;
|
|
4693
|
-
function clearStateChar() {
|
|
4694
|
-
if (stateChar) {
|
|
4695
|
-
switch (stateChar) {
|
|
4696
|
-
case "*":
|
|
4697
|
-
re2 += star;
|
|
4698
|
-
hasMagic = true;
|
|
4699
|
-
break;
|
|
4700
|
-
case "?":
|
|
4701
|
-
re2 += qmark;
|
|
4702
|
-
hasMagic = true;
|
|
4703
|
-
break;
|
|
4704
|
-
default:
|
|
4705
|
-
re2 += "\\" + stateChar;
|
|
4706
|
-
break;
|
|
4707
|
-
}
|
|
4708
|
-
self.debug("clearStateChar %j %j", stateChar, re2);
|
|
4709
|
-
stateChar = false;
|
|
4710
|
-
}
|
|
4711
|
-
}
|
|
4712
|
-
for (var i = 0, len = pattern.length, c; i < len && (c = pattern.charAt(i)); i++) {
|
|
4713
|
-
this.debug("%s %s %s %j", pattern, i, re2, c);
|
|
4714
|
-
if (escaping && reSpecials[c]) {
|
|
4715
|
-
re2 += "\\" + c;
|
|
4716
|
-
escaping = false;
|
|
4717
|
-
continue;
|
|
4718
|
-
}
|
|
4719
|
-
switch (c) {
|
|
4720
|
-
/* istanbul ignore next */
|
|
4721
|
-
case "/": {
|
|
4722
|
-
return false;
|
|
4723
|
-
}
|
|
4724
|
-
case "\\":
|
|
4725
|
-
clearStateChar();
|
|
4726
|
-
escaping = true;
|
|
4727
|
-
continue;
|
|
4728
|
-
// the various stateChar values
|
|
4729
|
-
// for the "extglob" stuff.
|
|
4730
|
-
case "?":
|
|
4731
|
-
case "*":
|
|
4732
|
-
case "+":
|
|
4733
|
-
case "@":
|
|
4734
|
-
case "!":
|
|
4735
|
-
this.debug("%s %s %s %j <-- stateChar", pattern, i, re2, c);
|
|
4736
|
-
if (inClass) {
|
|
4737
|
-
this.debug(" in class");
|
|
4738
|
-
if (c === "!" && i === classStart + 1) c = "^";
|
|
4739
|
-
re2 += c;
|
|
4740
|
-
continue;
|
|
4741
|
-
}
|
|
4742
|
-
if (c === "*" && stateChar === "*") continue;
|
|
4743
|
-
self.debug("call clearStateChar %j", stateChar);
|
|
4744
|
-
clearStateChar();
|
|
4745
|
-
stateChar = c;
|
|
4746
|
-
if (options.noext) clearStateChar();
|
|
4747
|
-
continue;
|
|
4748
|
-
case "(":
|
|
4749
|
-
if (inClass) {
|
|
4750
|
-
re2 += "(";
|
|
4751
|
-
continue;
|
|
4752
|
-
}
|
|
4753
|
-
if (!stateChar) {
|
|
4754
|
-
re2 += "\\(";
|
|
4755
|
-
continue;
|
|
4756
|
-
}
|
|
4757
|
-
patternListStack.push({
|
|
4758
|
-
type: stateChar,
|
|
4759
|
-
start: i - 1,
|
|
4760
|
-
reStart: re2.length,
|
|
4761
|
-
open: plTypes[stateChar].open,
|
|
4762
|
-
close: plTypes[stateChar].close
|
|
4763
|
-
});
|
|
4764
|
-
re2 += stateChar === "!" ? "(?:(?!(?:" : "(?:";
|
|
4765
|
-
this.debug("plType %j %j", stateChar, re2);
|
|
4766
|
-
stateChar = false;
|
|
4767
|
-
continue;
|
|
4768
|
-
case ")":
|
|
4769
|
-
if (inClass || !patternListStack.length) {
|
|
4770
|
-
re2 += "\\)";
|
|
4771
|
-
continue;
|
|
4772
|
-
}
|
|
4773
|
-
clearStateChar();
|
|
4774
|
-
hasMagic = true;
|
|
4775
|
-
var pl = patternListStack.pop();
|
|
4776
|
-
re2 += pl.close;
|
|
4777
|
-
if (pl.type === "!") {
|
|
4778
|
-
negativeLists.push(pl);
|
|
4779
|
-
}
|
|
4780
|
-
pl.reEnd = re2.length;
|
|
4781
|
-
continue;
|
|
4782
|
-
case "|":
|
|
4783
|
-
if (inClass || !patternListStack.length || escaping) {
|
|
4784
|
-
re2 += "\\|";
|
|
4785
|
-
escaping = false;
|
|
4786
|
-
continue;
|
|
4787
|
-
}
|
|
4788
|
-
clearStateChar();
|
|
4789
|
-
re2 += "|";
|
|
4790
|
-
continue;
|
|
4791
|
-
// these are mostly the same in regexp and glob
|
|
4792
|
-
case "[":
|
|
4793
|
-
clearStateChar();
|
|
4794
|
-
if (inClass) {
|
|
4795
|
-
re2 += "\\" + c;
|
|
4796
|
-
continue;
|
|
4797
|
-
}
|
|
4798
|
-
inClass = true;
|
|
4799
|
-
classStart = i;
|
|
4800
|
-
reClassStart = re2.length;
|
|
4801
|
-
re2 += c;
|
|
4802
|
-
continue;
|
|
4803
|
-
case "]":
|
|
4804
|
-
if (i === classStart + 1 || !inClass) {
|
|
4805
|
-
re2 += "\\" + c;
|
|
4806
|
-
escaping = false;
|
|
4807
|
-
continue;
|
|
4808
|
-
}
|
|
4809
|
-
var cs = pattern.substring(classStart + 1, i);
|
|
4810
|
-
try {
|
|
4811
|
-
RegExp("[" + cs + "]");
|
|
4812
|
-
} catch (er) {
|
|
4813
|
-
var sp = this.parse(cs, SUBPARSE);
|
|
4814
|
-
re2 = re2.substr(0, reClassStart) + "\\[" + sp[0] + "\\]";
|
|
4815
|
-
hasMagic = hasMagic || sp[1];
|
|
4816
|
-
inClass = false;
|
|
4817
|
-
continue;
|
|
4818
|
-
}
|
|
4819
|
-
hasMagic = true;
|
|
4820
|
-
inClass = false;
|
|
4821
|
-
re2 += c;
|
|
4822
|
-
continue;
|
|
4823
|
-
default:
|
|
4824
|
-
clearStateChar();
|
|
4825
|
-
if (escaping) {
|
|
4826
|
-
escaping = false;
|
|
4827
|
-
} else if (reSpecials[c] && !(c === "^" && inClass)) {
|
|
4828
|
-
re2 += "\\";
|
|
4829
|
-
}
|
|
4830
|
-
re2 += c;
|
|
4831
|
-
}
|
|
4832
|
-
}
|
|
4833
|
-
if (inClass) {
|
|
4834
|
-
cs = pattern.substr(classStart + 1);
|
|
4835
|
-
sp = this.parse(cs, SUBPARSE);
|
|
4836
|
-
re2 = re2.substr(0, reClassStart) + "\\[" + sp[0];
|
|
4837
|
-
hasMagic = hasMagic || sp[1];
|
|
4838
|
-
}
|
|
4839
|
-
for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
|
|
4840
|
-
var tail = re2.slice(pl.reStart + pl.open.length);
|
|
4841
|
-
this.debug("setting tail", re2, pl);
|
|
4842
|
-
tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function(_, $1, $2) {
|
|
4843
|
-
if (!$2) {
|
|
4844
|
-
$2 = "\\";
|
|
4845
|
-
}
|
|
4846
|
-
return $1 + $1 + $2 + "|";
|
|
4847
|
-
});
|
|
4848
|
-
this.debug("tail=%j\n %s", tail, tail, pl, re2);
|
|
4849
|
-
var t = pl.type === "*" ? star : pl.type === "?" ? qmark : "\\" + pl.type;
|
|
4850
|
-
hasMagic = true;
|
|
4851
|
-
re2 = re2.slice(0, pl.reStart) + t + "\\(" + tail;
|
|
4852
|
-
}
|
|
4853
|
-
clearStateChar();
|
|
4854
|
-
if (escaping) {
|
|
4855
|
-
re2 += "\\\\";
|
|
4856
|
-
}
|
|
4857
|
-
var addPatternStart = false;
|
|
4858
|
-
switch (re2.charAt(0)) {
|
|
4859
|
-
case "[":
|
|
4860
|
-
case ".":
|
|
4861
|
-
case "(":
|
|
4862
|
-
addPatternStart = true;
|
|
4863
|
-
}
|
|
4864
|
-
for (var n = negativeLists.length - 1; n > -1; n--) {
|
|
4865
|
-
var nl = negativeLists[n];
|
|
4866
|
-
var nlBefore = re2.slice(0, nl.reStart);
|
|
4867
|
-
var nlFirst = re2.slice(nl.reStart, nl.reEnd - 8);
|
|
4868
|
-
var nlLast = re2.slice(nl.reEnd - 8, nl.reEnd);
|
|
4869
|
-
var nlAfter = re2.slice(nl.reEnd);
|
|
4870
|
-
nlLast += nlAfter;
|
|
4871
|
-
var openParensBefore = nlBefore.split("(").length - 1;
|
|
4872
|
-
var cleanAfter = nlAfter;
|
|
4873
|
-
for (i = 0; i < openParensBefore; i++) {
|
|
4874
|
-
cleanAfter = cleanAfter.replace(/\)[+*?]?/, "");
|
|
4875
|
-
}
|
|
4876
|
-
nlAfter = cleanAfter;
|
|
4877
|
-
var dollar = "";
|
|
4878
|
-
if (nlAfter === "" && isSub !== SUBPARSE) {
|
|
4879
|
-
dollar = "$";
|
|
4880
|
-
}
|
|
4881
|
-
var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast;
|
|
4882
|
-
re2 = newRe;
|
|
4883
|
-
}
|
|
4884
|
-
if (re2 !== "" && hasMagic) {
|
|
4885
|
-
re2 = "(?=.)" + re2;
|
|
4886
|
-
}
|
|
4887
|
-
if (addPatternStart) {
|
|
4888
|
-
re2 = patternStart + re2;
|
|
4889
|
-
}
|
|
4890
|
-
if (isSub === SUBPARSE) {
|
|
4891
|
-
return [re2, hasMagic];
|
|
4892
|
-
}
|
|
4893
|
-
if (!hasMagic) {
|
|
4894
|
-
return globUnescape(pattern);
|
|
4895
|
-
}
|
|
4896
|
-
var flags = options.nocase ? "i" : "";
|
|
4897
|
-
try {
|
|
4898
|
-
var regExp = new RegExp("^" + re2 + "$", flags);
|
|
4899
|
-
} catch (er) {
|
|
4900
|
-
return new RegExp("$.");
|
|
4901
|
-
}
|
|
4902
|
-
regExp._glob = pattern;
|
|
4903
|
-
regExp._src = re2;
|
|
4904
|
-
return regExp;
|
|
4905
|
-
}
|
|
4906
|
-
minimatch2.makeRe = function(pattern, options) {
|
|
4907
|
-
return new Minimatch(pattern, options || {}).makeRe();
|
|
4908
|
-
};
|
|
4909
|
-
Minimatch.prototype.makeRe = makeRe;
|
|
4910
|
-
function makeRe() {
|
|
4911
|
-
if (this.regexp || this.regexp === false) return this.regexp;
|
|
4912
|
-
var set = this.set;
|
|
4913
|
-
if (!set.length) {
|
|
4914
|
-
this.regexp = false;
|
|
4915
|
-
return this.regexp;
|
|
4916
|
-
}
|
|
4917
|
-
var options = this.options;
|
|
4918
|
-
var twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot;
|
|
4919
|
-
var flags = options.nocase ? "i" : "";
|
|
4920
|
-
var re2 = set.map(function(pattern) {
|
|
4921
|
-
return pattern.map(function(p) {
|
|
4922
|
-
return p === GLOBSTAR ? twoStar : typeof p === "string" ? regExpEscape(p) : p._src;
|
|
4923
|
-
}).join("\\/");
|
|
4924
|
-
}).join("|");
|
|
4925
|
-
re2 = "^(?:" + re2 + ")$";
|
|
4926
|
-
if (this.negate) re2 = "^(?!" + re2 + ").*$";
|
|
4927
|
-
try {
|
|
4928
|
-
this.regexp = new RegExp(re2, flags);
|
|
4929
|
-
} catch (ex) {
|
|
4930
|
-
this.regexp = false;
|
|
4931
|
-
}
|
|
4932
|
-
return this.regexp;
|
|
4933
|
-
}
|
|
4934
|
-
minimatch2.match = function(list, pattern, options) {
|
|
4935
|
-
options = options || {};
|
|
4936
|
-
var mm = new Minimatch(pattern, options);
|
|
4937
|
-
list = list.filter(function(f) {
|
|
4938
|
-
return mm.match(f);
|
|
4939
|
-
});
|
|
4940
|
-
if (mm.options.nonull && !list.length) {
|
|
4941
|
-
list.push(pattern);
|
|
4942
|
-
}
|
|
4943
|
-
return list;
|
|
4944
|
-
};
|
|
4945
|
-
Minimatch.prototype.match = function match(f, partial) {
|
|
4946
|
-
if (typeof partial === "undefined") partial = this.partial;
|
|
4947
|
-
this.debug("match", f, this.pattern);
|
|
4948
|
-
if (this.comment) return false;
|
|
4949
|
-
if (this.empty) return f === "";
|
|
4950
|
-
if (f === "/" && partial) return true;
|
|
4951
|
-
var options = this.options;
|
|
4952
|
-
if (path6.sep !== "/") {
|
|
4953
|
-
f = f.split(path6.sep).join("/");
|
|
4954
|
-
}
|
|
4955
|
-
f = f.split(slashSplit);
|
|
4956
|
-
this.debug(this.pattern, "split", f);
|
|
4957
|
-
var set = this.set;
|
|
4958
|
-
this.debug(this.pattern, "set", set);
|
|
4959
|
-
var filename;
|
|
4960
|
-
var i;
|
|
4961
|
-
for (i = f.length - 1; i >= 0; i--) {
|
|
4962
|
-
filename = f[i];
|
|
4963
|
-
if (filename) break;
|
|
4964
|
-
}
|
|
4965
|
-
for (i = 0; i < set.length; i++) {
|
|
4966
|
-
var pattern = set[i];
|
|
4967
|
-
var file2 = f;
|
|
4968
|
-
if (options.matchBase && pattern.length === 1) {
|
|
4969
|
-
file2 = [filename];
|
|
4970
|
-
}
|
|
4971
|
-
var hit = this.matchOne(file2, pattern, partial);
|
|
4972
|
-
if (hit) {
|
|
4973
|
-
if (options.flipNegate) return true;
|
|
4974
|
-
return !this.negate;
|
|
4975
|
-
}
|
|
4976
|
-
}
|
|
4977
|
-
if (options.flipNegate) return false;
|
|
4978
|
-
return this.negate;
|
|
4979
|
-
};
|
|
4980
|
-
Minimatch.prototype.matchOne = function(file2, pattern, partial) {
|
|
4981
|
-
if (pattern.indexOf(GLOBSTAR) !== -1) {
|
|
4982
|
-
return this._matchGlobstar(file2, pattern, partial, 0, 0);
|
|
4983
|
-
}
|
|
4984
|
-
return this._matchOne(file2, pattern, partial, 0, 0);
|
|
4985
|
-
};
|
|
4986
|
-
Minimatch.prototype._matchGlobstar = function(file2, pattern, partial, fileIndex, patternIndex) {
|
|
4987
|
-
var i;
|
|
4988
|
-
var firstgs = -1;
|
|
4989
|
-
for (i = patternIndex; i < pattern.length; i++) {
|
|
4990
|
-
if (pattern[i] === GLOBSTAR) {
|
|
4991
|
-
firstgs = i;
|
|
4992
|
-
break;
|
|
4993
|
-
}
|
|
4994
|
-
}
|
|
4995
|
-
var lastgs = -1;
|
|
4996
|
-
for (i = pattern.length - 1; i >= 0; i--) {
|
|
4997
|
-
if (pattern[i] === GLOBSTAR) {
|
|
4998
|
-
lastgs = i;
|
|
4999
|
-
break;
|
|
5000
|
-
}
|
|
5001
|
-
}
|
|
5002
|
-
var head = pattern.slice(patternIndex, firstgs);
|
|
5003
|
-
var body = partial ? pattern.slice(firstgs + 1) : pattern.slice(firstgs + 1, lastgs);
|
|
5004
|
-
var tail = partial ? [] : pattern.slice(lastgs + 1);
|
|
5005
|
-
if (head.length) {
|
|
5006
|
-
var fileHead = file2.slice(fileIndex, fileIndex + head.length);
|
|
5007
|
-
if (!this._matchOne(fileHead, head, partial, 0, 0)) {
|
|
5008
|
-
return false;
|
|
5009
|
-
}
|
|
5010
|
-
fileIndex += head.length;
|
|
5011
|
-
}
|
|
5012
|
-
var fileTailMatch = 0;
|
|
5013
|
-
if (tail.length) {
|
|
5014
|
-
if (tail.length + fileIndex > file2.length) return false;
|
|
5015
|
-
var tailStart = file2.length - tail.length;
|
|
5016
|
-
if (this._matchOne(file2, tail, partial, tailStart, 0)) {
|
|
5017
|
-
fileTailMatch = tail.length;
|
|
5018
|
-
} else {
|
|
5019
|
-
if (file2[file2.length - 1] !== "" || fileIndex + tail.length === file2.length) {
|
|
5020
|
-
return false;
|
|
5021
|
-
}
|
|
5022
|
-
tailStart--;
|
|
5023
|
-
if (!this._matchOne(file2, tail, partial, tailStart, 0)) {
|
|
5024
|
-
return false;
|
|
5025
|
-
}
|
|
5026
|
-
fileTailMatch = tail.length + 1;
|
|
5027
|
-
}
|
|
5028
|
-
}
|
|
5029
|
-
if (!body.length) {
|
|
5030
|
-
var sawSome = !!fileTailMatch;
|
|
5031
|
-
for (i = fileIndex; i < file2.length - fileTailMatch; i++) {
|
|
5032
|
-
var f = String(file2[i]);
|
|
5033
|
-
sawSome = true;
|
|
5034
|
-
if (f === "." || f === ".." || !this.options.dot && f.charAt(0) === ".") {
|
|
5035
|
-
return false;
|
|
5036
|
-
}
|
|
5037
|
-
}
|
|
5038
|
-
return partial || sawSome;
|
|
5039
|
-
}
|
|
5040
|
-
var bodySegments = [[[], 0]];
|
|
5041
|
-
var currentBody = bodySegments[0];
|
|
5042
|
-
var nonGsParts = 0;
|
|
5043
|
-
var nonGsPartsSums = [0];
|
|
5044
|
-
for (var bi = 0; bi < body.length; bi++) {
|
|
5045
|
-
var b = body[bi];
|
|
5046
|
-
if (b === GLOBSTAR) {
|
|
5047
|
-
nonGsPartsSums.push(nonGsParts);
|
|
5048
|
-
currentBody = [[], 0];
|
|
5049
|
-
bodySegments.push(currentBody);
|
|
5050
|
-
} else {
|
|
5051
|
-
currentBody[0].push(b);
|
|
5052
|
-
nonGsParts++;
|
|
5053
|
-
}
|
|
5054
|
-
}
|
|
5055
|
-
var idx = bodySegments.length - 1;
|
|
5056
|
-
var fileLength = file2.length - fileTailMatch;
|
|
5057
|
-
for (var si = 0; si < bodySegments.length; si++) {
|
|
5058
|
-
bodySegments[si][1] = fileLength - (nonGsPartsSums[idx--] + bodySegments[si][0].length);
|
|
5059
|
-
}
|
|
5060
|
-
return !!this._matchGlobStarBodySections(
|
|
5061
|
-
file2,
|
|
5062
|
-
bodySegments,
|
|
5063
|
-
fileIndex,
|
|
5064
|
-
0,
|
|
5065
|
-
partial,
|
|
5066
|
-
0,
|
|
5067
|
-
!!fileTailMatch
|
|
5068
|
-
);
|
|
5069
|
-
};
|
|
5070
|
-
Minimatch.prototype._matchGlobStarBodySections = function(file2, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
|
|
5071
|
-
var bs = bodySegments[bodyIndex];
|
|
5072
|
-
if (!bs) {
|
|
5073
|
-
for (var i = fileIndex; i < file2.length; i++) {
|
|
5074
|
-
sawTail = true;
|
|
5075
|
-
var f = file2[i];
|
|
5076
|
-
if (f === "." || f === ".." || !this.options.dot && f.charAt(0) === ".") {
|
|
5077
|
-
return false;
|
|
5078
|
-
}
|
|
5079
|
-
}
|
|
5080
|
-
return sawTail;
|
|
5081
|
-
}
|
|
5082
|
-
var body = bs[0];
|
|
5083
|
-
var after = bs[1];
|
|
5084
|
-
while (fileIndex <= after) {
|
|
5085
|
-
var m = this._matchOne(
|
|
5086
|
-
file2.slice(0, fileIndex + body.length),
|
|
5087
|
-
body,
|
|
5088
|
-
partial,
|
|
5089
|
-
fileIndex,
|
|
5090
|
-
0
|
|
5091
|
-
);
|
|
5092
|
-
if (m && globStarDepth < this.maxGlobstarRecursion) {
|
|
5093
|
-
var sub = this._matchGlobStarBodySections(
|
|
5094
|
-
file2,
|
|
5095
|
-
bodySegments,
|
|
5096
|
-
fileIndex + body.length,
|
|
5097
|
-
bodyIndex + 1,
|
|
5098
|
-
partial,
|
|
5099
|
-
globStarDepth + 1,
|
|
5100
|
-
sawTail
|
|
5101
|
-
);
|
|
5102
|
-
if (sub !== false) {
|
|
5103
|
-
return sub;
|
|
5104
|
-
}
|
|
5105
|
-
}
|
|
5106
|
-
var f = file2[fileIndex];
|
|
5107
|
-
if (f === "." || f === ".." || !this.options.dot && f.charAt(0) === ".") {
|
|
5108
|
-
return false;
|
|
5109
|
-
}
|
|
5110
|
-
fileIndex++;
|
|
5111
|
-
}
|
|
5112
|
-
return partial || null;
|
|
5113
|
-
};
|
|
5114
|
-
Minimatch.prototype._matchOne = function(file2, pattern, partial, fileIndex, patternIndex) {
|
|
5115
|
-
var fi, pi, fl, pl;
|
|
5116
|
-
for (fi = fileIndex, pi = patternIndex, fl = file2.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
5117
|
-
this.debug("matchOne loop");
|
|
5118
|
-
var p = pattern[pi];
|
|
5119
|
-
var f = file2[fi];
|
|
5120
|
-
this.debug(pattern, p, f);
|
|
5121
|
-
if (p === false || p === GLOBSTAR) return false;
|
|
5122
|
-
var hit;
|
|
5123
|
-
if (typeof p === "string") {
|
|
5124
|
-
hit = f === p;
|
|
5125
|
-
this.debug("string match", p, f, hit);
|
|
5126
|
-
} else {
|
|
5127
|
-
hit = f.match(p);
|
|
5128
|
-
this.debug("pattern match", p, f, hit);
|
|
5129
|
-
}
|
|
5130
|
-
if (!hit) return false;
|
|
5131
|
-
}
|
|
5132
|
-
if (fi === fl && pi === pl) {
|
|
5133
|
-
return true;
|
|
5134
|
-
} else if (fi === fl) {
|
|
5135
|
-
return partial;
|
|
5136
|
-
} else if (pi === pl) {
|
|
5137
|
-
return fi === fl - 1 && file2[fi] === "";
|
|
5138
|
-
}
|
|
5139
|
-
throw new Error("wtf?");
|
|
5140
|
-
};
|
|
5141
|
-
function globUnescape(s) {
|
|
5142
|
-
return s.replace(/\\(.)/g, "$1");
|
|
5143
|
-
}
|
|
5144
|
-
function regExpEscape(s) {
|
|
5145
|
-
return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
5146
|
-
}
|
|
5147
|
-
}
|
|
5148
|
-
});
|
|
5149
|
-
|
|
5150
4173
|
// packages/playwright/src/transform/esmLoader.ts
|
|
5151
4174
|
var import_fs6 = __toESM(require("fs"));
|
|
5152
4175
|
var import_url3 = __toESM(require("url"));
|
|
@@ -5165,29 +4188,6 @@ function calculateSha1(buffer) {
|
|
|
5165
4188
|
return hash.digest("hex");
|
|
5166
4189
|
}
|
|
5167
4190
|
|
|
5168
|
-
// packages/utils/env.ts
|
|
5169
|
-
function getFromENV(name) {
|
|
5170
|
-
let value = process.env[name];
|
|
5171
|
-
value = value === void 0 ? process.env[`npm_config_${name.toLowerCase()}`] : value;
|
|
5172
|
-
value = value === void 0 ? process.env[`npm_package_config_${name.toLowerCase()}`] : value;
|
|
5173
|
-
return value;
|
|
5174
|
-
}
|
|
5175
|
-
function getAsBooleanFromENV(name, defaultValue) {
|
|
5176
|
-
const value = getFromENV(name);
|
|
5177
|
-
if (value === "false" || value === "0")
|
|
5178
|
-
return false;
|
|
5179
|
-
if (value)
|
|
5180
|
-
return true;
|
|
5181
|
-
return !!defaultValue;
|
|
5182
|
-
}
|
|
5183
|
-
|
|
5184
|
-
// packages/utils/debug.ts
|
|
5185
|
-
var _debugMode = getFromENV("PWDEBUG") || "";
|
|
5186
|
-
var _isUnderTest = getAsBooleanFromENV("PWTEST_UNDER_TEST");
|
|
5187
|
-
function isUnderTest() {
|
|
5188
|
-
return _isUnderTest;
|
|
5189
|
-
}
|
|
5190
|
-
|
|
5191
4191
|
// packages/playwright/src/transform/compilationCache.ts
|
|
5192
4192
|
var import_globals = require("../globals");
|
|
5193
4193
|
var import_package = require("../package");
|
|
@@ -5200,15 +4200,12 @@ var sourceMaps = /* @__PURE__ */ new Map();
|
|
|
5200
4200
|
var memoryCache = /* @__PURE__ */ new Map();
|
|
5201
4201
|
var fileDependencies = /* @__PURE__ */ new Map();
|
|
5202
4202
|
var externalDependencies = /* @__PURE__ */ new Map();
|
|
5203
|
-
var devSourceInfix = import_path.default.sep + "playwright" + import_path.default.sep + "packages" + import_path.default.sep;
|
|
5204
4203
|
function installSourceMapSupport() {
|
|
5205
4204
|
Error.stackTraceLimit = 200;
|
|
5206
4205
|
import_source_map_support.default.install({
|
|
5207
4206
|
environment: "node",
|
|
5208
4207
|
handleUncaughtExceptions: false,
|
|
5209
4208
|
retrieveSourceMap(source) {
|
|
5210
|
-
if (!process.env.PWDEBUGIMPL && isUnderTest() && source.includes(devSourceInfix))
|
|
5211
|
-
return { map: identitySourceMap(source), url: source };
|
|
5212
4209
|
if (!sourceMaps.has(source))
|
|
5213
4210
|
return null;
|
|
5214
4211
|
const sourceMapPath = sourceMaps.get(source);
|
|
@@ -5223,14 +4220,6 @@ function installSourceMapSupport() {
|
|
|
5223
4220
|
}
|
|
5224
4221
|
});
|
|
5225
4222
|
}
|
|
5226
|
-
function identitySourceMap(source) {
|
|
5227
|
-
const lineCount = import_fs.default.readFileSync(source, "utf8").split("\n").length;
|
|
5228
|
-
return {
|
|
5229
|
-
version: 3,
|
|
5230
|
-
sources: [source],
|
|
5231
|
-
mappings: lineCount ? "AAAA" + ";AACA".repeat(lineCount - 1) : ""
|
|
5232
|
-
};
|
|
5233
|
-
}
|
|
5234
4223
|
function _innerAddToCompilationCacheAndSerialize(filename, entry) {
|
|
5235
4224
|
sourceMaps.set(entry.moduleUrl || filename, entry.sourceMapPath);
|
|
5236
4225
|
memoryCache.set(filename, entry);
|
|
@@ -5241,11 +4230,29 @@ function _innerAddToCompilationCacheAndSerialize(filename, entry) {
|
|
|
5241
4230
|
externalDependencies: []
|
|
5242
4231
|
};
|
|
5243
4232
|
}
|
|
4233
|
+
function writeCodeCache(codePath, code) {
|
|
4234
|
+
import_fs.default.writeFileSync(codePath, `// ${calculateSha1(code)}
|
|
4235
|
+
${code}`, "utf8");
|
|
4236
|
+
}
|
|
4237
|
+
function readCodeCache(codePath) {
|
|
4238
|
+
const content = import_fs.default.readFileSync(codePath, "utf8");
|
|
4239
|
+
const newLineIndex = content.indexOf("\n");
|
|
4240
|
+
if (newLineIndex === -1)
|
|
4241
|
+
throw new Error(`Cache file is missing the hash header`);
|
|
4242
|
+
const firstLine = content.substring(0, newLineIndex);
|
|
4243
|
+
const sha1Length = 40;
|
|
4244
|
+
if (firstLine.length !== "// ".length + sha1Length || !firstLine.startsWith("// "))
|
|
4245
|
+
throw new Error(`Cache file has a malformed hash header`);
|
|
4246
|
+
const code = content.substring(newLineIndex + 1);
|
|
4247
|
+
if (calculateSha1(code) !== firstLine.substring("// ".length))
|
|
4248
|
+
throw new Error(`Cache file content does not match the hash header`);
|
|
4249
|
+
return code;
|
|
4250
|
+
}
|
|
5244
4251
|
function getFromCompilationCache(filename, contentHash, moduleUrl) {
|
|
5245
4252
|
const cache = memoryCache.get(filename);
|
|
5246
4253
|
if (cache?.codePath) {
|
|
5247
4254
|
try {
|
|
5248
|
-
return { cachedCode:
|
|
4255
|
+
return { cachedCode: readCodeCache(cache.codePath) };
|
|
5249
4256
|
} catch {
|
|
5250
4257
|
}
|
|
5251
4258
|
}
|
|
@@ -5257,7 +4264,7 @@ function getFromCompilationCache(filename, contentHash, moduleUrl) {
|
|
|
5257
4264
|
const sourceMapPath = cachePath + ".map";
|
|
5258
4265
|
const dataPath = cachePath + ".data";
|
|
5259
4266
|
try {
|
|
5260
|
-
const cachedCode =
|
|
4267
|
+
const cachedCode = readCodeCache(codePath);
|
|
5261
4268
|
const serializedCache = _innerAddToCompilationCacheAndSerialize(filename, { codePath, sourceMapPath, dataPath, moduleUrl });
|
|
5262
4269
|
return { cachedCode, serializedCache };
|
|
5263
4270
|
} catch {
|
|
@@ -5272,7 +4279,7 @@ function getFromCompilationCache(filename, contentHash, moduleUrl) {
|
|
|
5272
4279
|
import_fs.default.writeFileSync(sourceMapPath, JSON.stringify(map), "utf8");
|
|
5273
4280
|
if (data.size)
|
|
5274
4281
|
import_fs.default.writeFileSync(dataPath, JSON.stringify(Object.fromEntries(data.entries()), void 0, 2), "utf8");
|
|
5275
|
-
|
|
4282
|
+
writeCodeCache(codePath, code);
|
|
5276
4283
|
const serializedCache = _innerAddToCompilationCacheAndSerialize(filename, { codePath, sourceMapPath, dataPath, moduleUrl });
|
|
5277
4284
|
return { serializedCache };
|
|
5278
4285
|
}
|
|
@@ -5407,13 +4414,16 @@ function loadTsConfig(configPath) {
|
|
|
5407
4414
|
${e.message}`);
|
|
5408
4415
|
}
|
|
5409
4416
|
}
|
|
5410
|
-
function resolveConfigFile(baseConfigFile, referencedConfigFile) {
|
|
4417
|
+
function resolveConfigFile(baseConfigFile, referencedConfigFile, kind) {
|
|
4418
|
+
const originalReferencedConfigFile = referencedConfigFile;
|
|
5411
4419
|
if (!referencedConfigFile.endsWith(".json"))
|
|
5412
4420
|
referencedConfigFile += ".json";
|
|
5413
4421
|
const currentDir = import_path2.default.dirname(baseConfigFile);
|
|
5414
4422
|
let resolvedConfigFile = import_path2.default.resolve(currentDir, referencedConfigFile);
|
|
5415
4423
|
if (referencedConfigFile.includes("/") && referencedConfigFile.includes(".") && !import_fs2.default.existsSync(resolvedConfigFile))
|
|
5416
4424
|
resolvedConfigFile = import_path2.default.join(currentDir, "node_modules", referencedConfigFile);
|
|
4425
|
+
if (!import_fs2.default.existsSync(resolvedConfigFile))
|
|
4426
|
+
throw new Error(`Failed to resolve "${kind}" path "${originalReferencedConfigFile}" referenced from ${baseConfigFile}`);
|
|
5417
4427
|
return resolvedConfigFile;
|
|
5418
4428
|
}
|
|
5419
4429
|
function innerLoadTsConfig(configFilePath, references, visited = /* @__PURE__ */ new Map()) {
|
|
@@ -5430,7 +4440,7 @@ function innerLoadTsConfig(configFilePath, references, visited = /* @__PURE__ */
|
|
|
5430
4440
|
const parsedConfig = import_json5.default.parse(cleanedJson);
|
|
5431
4441
|
const extendsArray = Array.isArray(parsedConfig.extends) ? parsedConfig.extends : parsedConfig.extends ? [parsedConfig.extends] : [];
|
|
5432
4442
|
for (const extendedConfig of extendsArray) {
|
|
5433
|
-
const extendedConfigPath = resolveConfigFile(configFilePath, extendedConfig);
|
|
4443
|
+
const extendedConfigPath = resolveConfigFile(configFilePath, extendedConfig, "extends");
|
|
5434
4444
|
const base = innerLoadTsConfig(extendedConfigPath, references, visited);
|
|
5435
4445
|
Object.assign(result2, base, { tsConfigPath: configFilePath });
|
|
5436
4446
|
}
|
|
@@ -5446,7 +4456,7 @@ function innerLoadTsConfig(configFilePath, references, visited = /* @__PURE__ */
|
|
|
5446
4456
|
result2.absoluteBaseUrl = import_path2.default.resolve(import_path2.default.dirname(configFilePath), parsedConfig.compilerOptions.baseUrl);
|
|
5447
4457
|
}
|
|
5448
4458
|
for (const ref of parsedConfig.references || [])
|
|
5449
|
-
references.push(innerLoadTsConfig(resolveConfigFile(configFilePath, ref.path), references, visited));
|
|
4459
|
+
references.push(innerLoadTsConfig(resolveConfigFile(configFilePath, ref.path, "references"), references, visited));
|
|
5450
4460
|
if (import_path2.default.basename(configFilePath) === "jsconfig.json" && result2.allowJs === void 0)
|
|
5451
4461
|
result2.allowJs = true;
|
|
5452
4462
|
return result2;
|
|
@@ -5468,8 +4478,2992 @@ var import_package2 = require("../package");
|
|
|
5468
4478
|
var import_fs3 = __toESM(require("fs"));
|
|
5469
4479
|
var import_path3 = __toESM(require("path"));
|
|
5470
4480
|
var import_debug2 = __toESM(require_src());
|
|
5471
|
-
|
|
5472
|
-
|
|
4481
|
+
|
|
4482
|
+
// node_modules/mime/dist/types/other.js
|
|
4483
|
+
var types = {
|
|
4484
|
+
"application/prs.cww": ["cww"],
|
|
4485
|
+
"application/prs.xsf+xml": ["xsf"],
|
|
4486
|
+
"application/vnd.1000minds.decision-model+xml": ["1km"],
|
|
4487
|
+
"application/vnd.3gpp.pic-bw-large": ["plb"],
|
|
4488
|
+
"application/vnd.3gpp.pic-bw-small": ["psb"],
|
|
4489
|
+
"application/vnd.3gpp.pic-bw-var": ["pvb"],
|
|
4490
|
+
"application/vnd.3gpp2.tcap": ["tcap"],
|
|
4491
|
+
"application/vnd.3m.post-it-notes": ["pwn"],
|
|
4492
|
+
"application/vnd.accpac.simply.aso": ["aso"],
|
|
4493
|
+
"application/vnd.accpac.simply.imp": ["imp"],
|
|
4494
|
+
"application/vnd.acucobol": ["acu"],
|
|
4495
|
+
"application/vnd.acucorp": ["atc", "acutc"],
|
|
4496
|
+
"application/vnd.adobe.air-application-installer-package+zip": ["air"],
|
|
4497
|
+
"application/vnd.adobe.formscentral.fcdt": ["fcdt"],
|
|
4498
|
+
"application/vnd.adobe.fxp": ["fxp", "fxpl"],
|
|
4499
|
+
"application/vnd.adobe.xdp+xml": ["xdp"],
|
|
4500
|
+
"application/vnd.adobe.xfdf": ["*xfdf"],
|
|
4501
|
+
"application/vnd.age": ["age"],
|
|
4502
|
+
"application/vnd.ahead.space": ["ahead"],
|
|
4503
|
+
"application/vnd.airzip.filesecure.azf": ["azf"],
|
|
4504
|
+
"application/vnd.airzip.filesecure.azs": ["azs"],
|
|
4505
|
+
"application/vnd.amazon.ebook": ["azw"],
|
|
4506
|
+
"application/vnd.americandynamics.acc": ["acc"],
|
|
4507
|
+
"application/vnd.amiga.ami": ["ami"],
|
|
4508
|
+
"application/vnd.android.package-archive": ["apk"],
|
|
4509
|
+
"application/vnd.anser-web-certificate-issue-initiation": ["cii"],
|
|
4510
|
+
"application/vnd.anser-web-funds-transfer-initiation": ["fti"],
|
|
4511
|
+
"application/vnd.antix.game-component": ["atx"],
|
|
4512
|
+
"application/vnd.apple.installer+xml": ["mpkg"],
|
|
4513
|
+
"application/vnd.apple.keynote": ["key"],
|
|
4514
|
+
"application/vnd.apple.mpegurl": ["m3u8"],
|
|
4515
|
+
"application/vnd.apple.numbers": ["numbers"],
|
|
4516
|
+
"application/vnd.apple.pages": ["pages"],
|
|
4517
|
+
"application/vnd.apple.pkpass": ["pkpass"],
|
|
4518
|
+
"application/vnd.aristanetworks.swi": ["swi"],
|
|
4519
|
+
"application/vnd.astraea-software.iota": ["iota"],
|
|
4520
|
+
"application/vnd.audiograph": ["aep"],
|
|
4521
|
+
"application/vnd.autodesk.fbx": ["fbx"],
|
|
4522
|
+
"application/vnd.balsamiq.bmml+xml": ["bmml"],
|
|
4523
|
+
"application/vnd.blueice.multipass": ["mpm"],
|
|
4524
|
+
"application/vnd.bmi": ["bmi"],
|
|
4525
|
+
"application/vnd.businessobjects": ["rep"],
|
|
4526
|
+
"application/vnd.chemdraw+xml": ["cdxml"],
|
|
4527
|
+
"application/vnd.chipnuts.karaoke-mmd": ["mmd"],
|
|
4528
|
+
"application/vnd.cinderella": ["cdy"],
|
|
4529
|
+
"application/vnd.citationstyles.style+xml": ["csl"],
|
|
4530
|
+
"application/vnd.claymore": ["cla"],
|
|
4531
|
+
"application/vnd.cloanto.rp9": ["rp9"],
|
|
4532
|
+
"application/vnd.clonk.c4group": ["c4g", "c4d", "c4f", "c4p", "c4u"],
|
|
4533
|
+
"application/vnd.cluetrust.cartomobile-config": ["c11amc"],
|
|
4534
|
+
"application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"],
|
|
4535
|
+
"application/vnd.commonspace": ["csp"],
|
|
4536
|
+
"application/vnd.contact.cmsg": ["cdbcmsg"],
|
|
4537
|
+
"application/vnd.cosmocaller": ["cmc"],
|
|
4538
|
+
"application/vnd.crick.clicker": ["clkx"],
|
|
4539
|
+
"application/vnd.crick.clicker.keyboard": ["clkk"],
|
|
4540
|
+
"application/vnd.crick.clicker.palette": ["clkp"],
|
|
4541
|
+
"application/vnd.crick.clicker.template": ["clkt"],
|
|
4542
|
+
"application/vnd.crick.clicker.wordbank": ["clkw"],
|
|
4543
|
+
"application/vnd.criticaltools.wbs+xml": ["wbs"],
|
|
4544
|
+
"application/vnd.ctc-posml": ["pml"],
|
|
4545
|
+
"application/vnd.cups-ppd": ["ppd"],
|
|
4546
|
+
"application/vnd.curl.car": ["car"],
|
|
4547
|
+
"application/vnd.curl.pcurl": ["pcurl"],
|
|
4548
|
+
"application/vnd.dart": ["dart"],
|
|
4549
|
+
"application/vnd.data-vision.rdz": ["rdz"],
|
|
4550
|
+
"application/vnd.dbf": ["dbf"],
|
|
4551
|
+
"application/vnd.dcmp+xml": ["dcmp"],
|
|
4552
|
+
"application/vnd.dece.data": ["uvf", "uvvf", "uvd", "uvvd"],
|
|
4553
|
+
"application/vnd.dece.ttml+xml": ["uvt", "uvvt"],
|
|
4554
|
+
"application/vnd.dece.unspecified": ["uvx", "uvvx"],
|
|
4555
|
+
"application/vnd.dece.zip": ["uvz", "uvvz"],
|
|
4556
|
+
"application/vnd.denovo.fcselayout-link": ["fe_launch"],
|
|
4557
|
+
"application/vnd.dna": ["dna"],
|
|
4558
|
+
"application/vnd.dolby.mlp": ["mlp"],
|
|
4559
|
+
"application/vnd.dpgraph": ["dpg"],
|
|
4560
|
+
"application/vnd.dreamfactory": ["dfac"],
|
|
4561
|
+
"application/vnd.ds-keypoint": ["kpxx"],
|
|
4562
|
+
"application/vnd.dvb.ait": ["ait"],
|
|
4563
|
+
"application/vnd.dvb.service": ["svc"],
|
|
4564
|
+
"application/vnd.dynageo": ["geo"],
|
|
4565
|
+
"application/vnd.ecowin.chart": ["mag"],
|
|
4566
|
+
"application/vnd.enliven": ["nml"],
|
|
4567
|
+
"application/vnd.epson.esf": ["esf"],
|
|
4568
|
+
"application/vnd.epson.msf": ["msf"],
|
|
4569
|
+
"application/vnd.epson.quickanime": ["qam"],
|
|
4570
|
+
"application/vnd.epson.salt": ["slt"],
|
|
4571
|
+
"application/vnd.epson.ssf": ["ssf"],
|
|
4572
|
+
"application/vnd.eszigno3+xml": ["es3", "et3"],
|
|
4573
|
+
"application/vnd.ezpix-album": ["ez2"],
|
|
4574
|
+
"application/vnd.ezpix-package": ["ez3"],
|
|
4575
|
+
"application/vnd.fdf": ["*fdf"],
|
|
4576
|
+
"application/vnd.fdsn.mseed": ["mseed"],
|
|
4577
|
+
"application/vnd.fdsn.seed": ["seed", "dataless"],
|
|
4578
|
+
"application/vnd.flographit": ["gph"],
|
|
4579
|
+
"application/vnd.fluxtime.clip": ["ftc"],
|
|
4580
|
+
"application/vnd.framemaker": ["fm", "frame", "maker", "book"],
|
|
4581
|
+
"application/vnd.frogans.fnc": ["fnc"],
|
|
4582
|
+
"application/vnd.frogans.ltf": ["ltf"],
|
|
4583
|
+
"application/vnd.fsc.weblaunch": ["fsc"],
|
|
4584
|
+
"application/vnd.fujitsu.oasys": ["oas"],
|
|
4585
|
+
"application/vnd.fujitsu.oasys2": ["oa2"],
|
|
4586
|
+
"application/vnd.fujitsu.oasys3": ["oa3"],
|
|
4587
|
+
"application/vnd.fujitsu.oasysgp": ["fg5"],
|
|
4588
|
+
"application/vnd.fujitsu.oasysprs": ["bh2"],
|
|
4589
|
+
"application/vnd.fujixerox.ddd": ["ddd"],
|
|
4590
|
+
"application/vnd.fujixerox.docuworks": ["xdw"],
|
|
4591
|
+
"application/vnd.fujixerox.docuworks.binder": ["xbd"],
|
|
4592
|
+
"application/vnd.fuzzysheet": ["fzs"],
|
|
4593
|
+
"application/vnd.genomatix.tuxedo": ["txd"],
|
|
4594
|
+
"application/vnd.geogebra.file": ["ggb"],
|
|
4595
|
+
"application/vnd.geogebra.slides": ["ggs"],
|
|
4596
|
+
"application/vnd.geogebra.tool": ["ggt"],
|
|
4597
|
+
"application/vnd.geometry-explorer": ["gex", "gre"],
|
|
4598
|
+
"application/vnd.geonext": ["gxt"],
|
|
4599
|
+
"application/vnd.geoplan": ["g2w"],
|
|
4600
|
+
"application/vnd.geospace": ["g3w"],
|
|
4601
|
+
"application/vnd.gmx": ["gmx"],
|
|
4602
|
+
"application/vnd.google-apps.document": ["gdoc"],
|
|
4603
|
+
"application/vnd.google-apps.drawing": ["gdraw"],
|
|
4604
|
+
"application/vnd.google-apps.form": ["gform"],
|
|
4605
|
+
"application/vnd.google-apps.jam": ["gjam"],
|
|
4606
|
+
"application/vnd.google-apps.map": ["gmap"],
|
|
4607
|
+
"application/vnd.google-apps.presentation": ["gslides"],
|
|
4608
|
+
"application/vnd.google-apps.script": ["gscript"],
|
|
4609
|
+
"application/vnd.google-apps.site": ["gsite"],
|
|
4610
|
+
"application/vnd.google-apps.spreadsheet": ["gsheet"],
|
|
4611
|
+
"application/vnd.google-earth.kml+xml": ["kml"],
|
|
4612
|
+
"application/vnd.google-earth.kmz": ["kmz"],
|
|
4613
|
+
"application/vnd.gov.sk.xmldatacontainer+xml": ["xdcf"],
|
|
4614
|
+
"application/vnd.grafeq": ["gqf", "gqs"],
|
|
4615
|
+
"application/vnd.groove-account": ["gac"],
|
|
4616
|
+
"application/vnd.groove-help": ["ghf"],
|
|
4617
|
+
"application/vnd.groove-identity-message": ["gim"],
|
|
4618
|
+
"application/vnd.groove-injector": ["grv"],
|
|
4619
|
+
"application/vnd.groove-tool-message": ["gtm"],
|
|
4620
|
+
"application/vnd.groove-tool-template": ["tpl"],
|
|
4621
|
+
"application/vnd.groove-vcard": ["vcg"],
|
|
4622
|
+
"application/vnd.hal+xml": ["hal"],
|
|
4623
|
+
"application/vnd.handheld-entertainment+xml": ["zmm"],
|
|
4624
|
+
"application/vnd.hbci": ["hbci"],
|
|
4625
|
+
"application/vnd.hhe.lesson-player": ["les"],
|
|
4626
|
+
"application/vnd.hp-hpgl": ["hpgl"],
|
|
4627
|
+
"application/vnd.hp-hpid": ["hpid"],
|
|
4628
|
+
"application/vnd.hp-hps": ["hps"],
|
|
4629
|
+
"application/vnd.hp-jlyt": ["jlt"],
|
|
4630
|
+
"application/vnd.hp-pcl": ["pcl"],
|
|
4631
|
+
"application/vnd.hp-pclxl": ["pclxl"],
|
|
4632
|
+
"application/vnd.hydrostatix.sof-data": ["sfd-hdstx"],
|
|
4633
|
+
"application/vnd.ibm.minipay": ["mpy"],
|
|
4634
|
+
"application/vnd.ibm.modcap": ["afp", "listafp", "list3820"],
|
|
4635
|
+
"application/vnd.ibm.rights-management": ["irm"],
|
|
4636
|
+
"application/vnd.ibm.secure-container": ["sc"],
|
|
4637
|
+
"application/vnd.iccprofile": ["icc", "icm"],
|
|
4638
|
+
"application/vnd.igloader": ["igl"],
|
|
4639
|
+
"application/vnd.immervision-ivp": ["ivp"],
|
|
4640
|
+
"application/vnd.immervision-ivu": ["ivu"],
|
|
4641
|
+
"application/vnd.insors.igm": ["igm"],
|
|
4642
|
+
"application/vnd.intercon.formnet": ["xpw", "xpx"],
|
|
4643
|
+
"application/vnd.intergeo": ["i2g"],
|
|
4644
|
+
"application/vnd.intu.qbo": ["qbo"],
|
|
4645
|
+
"application/vnd.intu.qfx": ["qfx"],
|
|
4646
|
+
"application/vnd.ipunplugged.rcprofile": ["rcprofile"],
|
|
4647
|
+
"application/vnd.irepository.package+xml": ["irp"],
|
|
4648
|
+
"application/vnd.is-xpr": ["xpr"],
|
|
4649
|
+
"application/vnd.isac.fcs": ["fcs"],
|
|
4650
|
+
"application/vnd.jam": ["jam"],
|
|
4651
|
+
"application/vnd.jcp.javame.midlet-rms": ["rms"],
|
|
4652
|
+
"application/vnd.jisp": ["jisp"],
|
|
4653
|
+
"application/vnd.joost.joda-archive": ["joda"],
|
|
4654
|
+
"application/vnd.kahootz": ["ktz", "ktr"],
|
|
4655
|
+
"application/vnd.kde.karbon": ["karbon"],
|
|
4656
|
+
"application/vnd.kde.kchart": ["chrt"],
|
|
4657
|
+
"application/vnd.kde.kformula": ["kfo"],
|
|
4658
|
+
"application/vnd.kde.kivio": ["flw"],
|
|
4659
|
+
"application/vnd.kde.kontour": ["kon"],
|
|
4660
|
+
"application/vnd.kde.kpresenter": ["kpr", "kpt"],
|
|
4661
|
+
"application/vnd.kde.kspread": ["ksp"],
|
|
4662
|
+
"application/vnd.kde.kword": ["kwd", "kwt"],
|
|
4663
|
+
"application/vnd.kenameaapp": ["htke"],
|
|
4664
|
+
"application/vnd.kidspiration": ["kia"],
|
|
4665
|
+
"application/vnd.kinar": ["kne", "knp"],
|
|
4666
|
+
"application/vnd.koan": ["skp", "skd", "skt", "skm"],
|
|
4667
|
+
"application/vnd.kodak-descriptor": ["sse"],
|
|
4668
|
+
"application/vnd.las.las+xml": ["lasxml"],
|
|
4669
|
+
"application/vnd.llamagraphics.life-balance.desktop": ["lbd"],
|
|
4670
|
+
"application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"],
|
|
4671
|
+
"application/vnd.lotus-1-2-3": ["123"],
|
|
4672
|
+
"application/vnd.lotus-approach": ["apr"],
|
|
4673
|
+
"application/vnd.lotus-freelance": ["pre"],
|
|
4674
|
+
"application/vnd.lotus-notes": ["nsf"],
|
|
4675
|
+
"application/vnd.lotus-organizer": ["org"],
|
|
4676
|
+
"application/vnd.lotus-screencam": ["scm"],
|
|
4677
|
+
"application/vnd.lotus-wordpro": ["lwp"],
|
|
4678
|
+
"application/vnd.macports.portpkg": ["portpkg"],
|
|
4679
|
+
"application/vnd.mapbox-vector-tile": ["mvt"],
|
|
4680
|
+
"application/vnd.mcd": ["mcd"],
|
|
4681
|
+
"application/vnd.medcalcdata": ["mc1"],
|
|
4682
|
+
"application/vnd.mediastation.cdkey": ["cdkey"],
|
|
4683
|
+
"application/vnd.mfer": ["mwf"],
|
|
4684
|
+
"application/vnd.mfmp": ["mfm"],
|
|
4685
|
+
"application/vnd.micrografx.flo": ["flo"],
|
|
4686
|
+
"application/vnd.micrografx.igx": ["igx"],
|
|
4687
|
+
"application/vnd.mif": ["mif"],
|
|
4688
|
+
"application/vnd.mobius.daf": ["daf"],
|
|
4689
|
+
"application/vnd.mobius.dis": ["dis"],
|
|
4690
|
+
"application/vnd.mobius.mbk": ["mbk"],
|
|
4691
|
+
"application/vnd.mobius.mqy": ["mqy"],
|
|
4692
|
+
"application/vnd.mobius.msl": ["msl"],
|
|
4693
|
+
"application/vnd.mobius.plc": ["plc"],
|
|
4694
|
+
"application/vnd.mobius.txf": ["txf"],
|
|
4695
|
+
"application/vnd.mophun.application": ["mpn"],
|
|
4696
|
+
"application/vnd.mophun.certificate": ["mpc"],
|
|
4697
|
+
"application/vnd.mozilla.xul+xml": ["xul"],
|
|
4698
|
+
"application/vnd.ms-artgalry": ["cil"],
|
|
4699
|
+
"application/vnd.ms-cab-compressed": ["cab"],
|
|
4700
|
+
"application/vnd.ms-excel": ["xls", "xlm", "xla", "xlc", "xlt", "xlw"],
|
|
4701
|
+
"application/vnd.ms-excel.addin.macroenabled.12": ["xlam"],
|
|
4702
|
+
"application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"],
|
|
4703
|
+
"application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"],
|
|
4704
|
+
"application/vnd.ms-excel.template.macroenabled.12": ["xltm"],
|
|
4705
|
+
"application/vnd.ms-fontobject": ["eot"],
|
|
4706
|
+
"application/vnd.ms-htmlhelp": ["chm"],
|
|
4707
|
+
"application/vnd.ms-ims": ["ims"],
|
|
4708
|
+
"application/vnd.ms-lrm": ["lrm"],
|
|
4709
|
+
"application/vnd.ms-officetheme": ["thmx"],
|
|
4710
|
+
"application/vnd.ms-outlook": ["msg"],
|
|
4711
|
+
"application/vnd.ms-pki.seccat": ["cat"],
|
|
4712
|
+
"application/vnd.ms-pki.stl": ["*stl"],
|
|
4713
|
+
"application/vnd.ms-powerpoint": ["ppt", "pps", "pot"],
|
|
4714
|
+
"application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"],
|
|
4715
|
+
"application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"],
|
|
4716
|
+
"application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"],
|
|
4717
|
+
"application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"],
|
|
4718
|
+
"application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"],
|
|
4719
|
+
"application/vnd.ms-project": ["*mpp", "mpt"],
|
|
4720
|
+
"application/vnd.ms-visio.viewer": ["vdx"],
|
|
4721
|
+
"application/vnd.ms-word.document.macroenabled.12": ["docm"],
|
|
4722
|
+
"application/vnd.ms-word.template.macroenabled.12": ["dotm"],
|
|
4723
|
+
"application/vnd.ms-works": ["wps", "wks", "wcm", "wdb"],
|
|
4724
|
+
"application/vnd.ms-wpl": ["wpl"],
|
|
4725
|
+
"application/vnd.ms-xpsdocument": ["xps"],
|
|
4726
|
+
"application/vnd.mseq": ["mseq"],
|
|
4727
|
+
"application/vnd.musician": ["mus"],
|
|
4728
|
+
"application/vnd.muvee.style": ["msty"],
|
|
4729
|
+
"application/vnd.mynfc": ["taglet"],
|
|
4730
|
+
"application/vnd.nato.bindingdataobject+xml": ["bdo"],
|
|
4731
|
+
"application/vnd.neurolanguage.nlu": ["nlu"],
|
|
4732
|
+
"application/vnd.nitf": ["ntf", "nitf"],
|
|
4733
|
+
"application/vnd.noblenet-directory": ["nnd"],
|
|
4734
|
+
"application/vnd.noblenet-sealer": ["nns"],
|
|
4735
|
+
"application/vnd.noblenet-web": ["nnw"],
|
|
4736
|
+
"application/vnd.nokia.n-gage.ac+xml": ["*ac"],
|
|
4737
|
+
"application/vnd.nokia.n-gage.data": ["ngdat"],
|
|
4738
|
+
"application/vnd.nokia.n-gage.symbian.install": ["n-gage"],
|
|
4739
|
+
"application/vnd.nokia.radio-preset": ["rpst"],
|
|
4740
|
+
"application/vnd.nokia.radio-presets": ["rpss"],
|
|
4741
|
+
"application/vnd.novadigm.edm": ["edm"],
|
|
4742
|
+
"application/vnd.novadigm.edx": ["edx"],
|
|
4743
|
+
"application/vnd.novadigm.ext": ["ext"],
|
|
4744
|
+
"application/vnd.oasis.opendocument.chart": ["odc"],
|
|
4745
|
+
"application/vnd.oasis.opendocument.chart-template": ["otc"],
|
|
4746
|
+
"application/vnd.oasis.opendocument.database": ["odb"],
|
|
4747
|
+
"application/vnd.oasis.opendocument.formula": ["odf"],
|
|
4748
|
+
"application/vnd.oasis.opendocument.formula-template": ["odft"],
|
|
4749
|
+
"application/vnd.oasis.opendocument.graphics": ["odg"],
|
|
4750
|
+
"application/vnd.oasis.opendocument.graphics-template": ["otg"],
|
|
4751
|
+
"application/vnd.oasis.opendocument.image": ["odi"],
|
|
4752
|
+
"application/vnd.oasis.opendocument.image-template": ["oti"],
|
|
4753
|
+
"application/vnd.oasis.opendocument.presentation": ["odp"],
|
|
4754
|
+
"application/vnd.oasis.opendocument.presentation-template": ["otp"],
|
|
4755
|
+
"application/vnd.oasis.opendocument.spreadsheet": ["ods"],
|
|
4756
|
+
"application/vnd.oasis.opendocument.spreadsheet-template": ["ots"],
|
|
4757
|
+
"application/vnd.oasis.opendocument.text": ["odt"],
|
|
4758
|
+
"application/vnd.oasis.opendocument.text-master": ["odm"],
|
|
4759
|
+
"application/vnd.oasis.opendocument.text-template": ["ott"],
|
|
4760
|
+
"application/vnd.oasis.opendocument.text-web": ["oth"],
|
|
4761
|
+
"application/vnd.olpc-sugar": ["xo"],
|
|
4762
|
+
"application/vnd.oma.dd2+xml": ["dd2"],
|
|
4763
|
+
"application/vnd.openblox.game+xml": ["obgx"],
|
|
4764
|
+
"application/vnd.openofficeorg.extension": ["oxt"],
|
|
4765
|
+
"application/vnd.openstreetmap.data+xml": ["osm"],
|
|
4766
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation": [
|
|
4767
|
+
"pptx"
|
|
4768
|
+
],
|
|
4769
|
+
"application/vnd.openxmlformats-officedocument.presentationml.slide": [
|
|
4770
|
+
"sldx"
|
|
4771
|
+
],
|
|
4772
|
+
"application/vnd.openxmlformats-officedocument.presentationml.slideshow": [
|
|
4773
|
+
"ppsx"
|
|
4774
|
+
],
|
|
4775
|
+
"application/vnd.openxmlformats-officedocument.presentationml.template": [
|
|
4776
|
+
"potx"
|
|
4777
|
+
],
|
|
4778
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"],
|
|
4779
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.template": [
|
|
4780
|
+
"xltx"
|
|
4781
|
+
],
|
|
4782
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": [
|
|
4783
|
+
"docx"
|
|
4784
|
+
],
|
|
4785
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.template": [
|
|
4786
|
+
"dotx"
|
|
4787
|
+
],
|
|
4788
|
+
"application/vnd.osgeo.mapguide.package": ["mgp"],
|
|
4789
|
+
"application/vnd.osgi.dp": ["dp"],
|
|
4790
|
+
"application/vnd.osgi.subsystem": ["esa"],
|
|
4791
|
+
"application/vnd.palm": ["pdb", "pqa", "oprc"],
|
|
4792
|
+
"application/vnd.pawaafile": ["paw"],
|
|
4793
|
+
"application/vnd.pg.format": ["str"],
|
|
4794
|
+
"application/vnd.pg.osasli": ["ei6"],
|
|
4795
|
+
"application/vnd.picsel": ["efif"],
|
|
4796
|
+
"application/vnd.pmi.widget": ["wg"],
|
|
4797
|
+
"application/vnd.pocketlearn": ["plf"],
|
|
4798
|
+
"application/vnd.powerbuilder6": ["pbd"],
|
|
4799
|
+
"application/vnd.previewsystems.box": ["box"],
|
|
4800
|
+
"application/vnd.procrate.brushset": ["brushset"],
|
|
4801
|
+
"application/vnd.procreate.brush": ["brush"],
|
|
4802
|
+
"application/vnd.procreate.dream": ["drm"],
|
|
4803
|
+
"application/vnd.proteus.magazine": ["mgz"],
|
|
4804
|
+
"application/vnd.publishare-delta-tree": ["qps"],
|
|
4805
|
+
"application/vnd.pvi.ptid1": ["ptid"],
|
|
4806
|
+
"application/vnd.pwg-xhtml-print+xml": ["xhtm"],
|
|
4807
|
+
"application/vnd.quark.quarkxpress": [
|
|
4808
|
+
"qxd",
|
|
4809
|
+
"qxt",
|
|
4810
|
+
"qwd",
|
|
4811
|
+
"qwt",
|
|
4812
|
+
"qxl",
|
|
4813
|
+
"qxb"
|
|
4814
|
+
],
|
|
4815
|
+
"application/vnd.rar": ["rar"],
|
|
4816
|
+
"application/vnd.realvnc.bed": ["bed"],
|
|
4817
|
+
"application/vnd.recordare.musicxml": ["mxl"],
|
|
4818
|
+
"application/vnd.recordare.musicxml+xml": ["musicxml"],
|
|
4819
|
+
"application/vnd.rig.cryptonote": ["cryptonote"],
|
|
4820
|
+
"application/vnd.rim.cod": ["cod"],
|
|
4821
|
+
"application/vnd.rn-realmedia": ["rm"],
|
|
4822
|
+
"application/vnd.rn-realmedia-vbr": ["rmvb"],
|
|
4823
|
+
"application/vnd.route66.link66+xml": ["link66"],
|
|
4824
|
+
"application/vnd.sailingtracker.track": ["st"],
|
|
4825
|
+
"application/vnd.seemail": ["see"],
|
|
4826
|
+
"application/vnd.sema": ["sema"],
|
|
4827
|
+
"application/vnd.semd": ["semd"],
|
|
4828
|
+
"application/vnd.semf": ["semf"],
|
|
4829
|
+
"application/vnd.shana.informed.formdata": ["ifm"],
|
|
4830
|
+
"application/vnd.shana.informed.formtemplate": ["itp"],
|
|
4831
|
+
"application/vnd.shana.informed.interchange": ["iif"],
|
|
4832
|
+
"application/vnd.shana.informed.package": ["ipk"],
|
|
4833
|
+
"application/vnd.simtech-mindmapper": ["twd", "twds"],
|
|
4834
|
+
"application/vnd.smaf": ["mmf"],
|
|
4835
|
+
"application/vnd.smart.teacher": ["teacher"],
|
|
4836
|
+
"application/vnd.software602.filler.form+xml": ["fo"],
|
|
4837
|
+
"application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"],
|
|
4838
|
+
"application/vnd.spotfire.dxp": ["dxp"],
|
|
4839
|
+
"application/vnd.spotfire.sfs": ["sfs"],
|
|
4840
|
+
"application/vnd.stardivision.calc": ["sdc"],
|
|
4841
|
+
"application/vnd.stardivision.draw": ["sda"],
|
|
4842
|
+
"application/vnd.stardivision.impress": ["sdd"],
|
|
4843
|
+
"application/vnd.stardivision.math": ["smf"],
|
|
4844
|
+
"application/vnd.stardivision.writer": ["sdw", "vor"],
|
|
4845
|
+
"application/vnd.stardivision.writer-global": ["sgl"],
|
|
4846
|
+
"application/vnd.stepmania.package": ["smzip"],
|
|
4847
|
+
"application/vnd.stepmania.stepchart": ["sm"],
|
|
4848
|
+
"application/vnd.sun.wadl+xml": ["wadl"],
|
|
4849
|
+
"application/vnd.sun.xml.calc": ["sxc"],
|
|
4850
|
+
"application/vnd.sun.xml.calc.template": ["stc"],
|
|
4851
|
+
"application/vnd.sun.xml.draw": ["sxd"],
|
|
4852
|
+
"application/vnd.sun.xml.draw.template": ["std"],
|
|
4853
|
+
"application/vnd.sun.xml.impress": ["sxi"],
|
|
4854
|
+
"application/vnd.sun.xml.impress.template": ["sti"],
|
|
4855
|
+
"application/vnd.sun.xml.math": ["sxm"],
|
|
4856
|
+
"application/vnd.sun.xml.writer": ["sxw"],
|
|
4857
|
+
"application/vnd.sun.xml.writer.global": ["sxg"],
|
|
4858
|
+
"application/vnd.sun.xml.writer.template": ["stw"],
|
|
4859
|
+
"application/vnd.sus-calendar": ["sus", "susp"],
|
|
4860
|
+
"application/vnd.svd": ["svd"],
|
|
4861
|
+
"application/vnd.symbian.install": ["sis", "sisx"],
|
|
4862
|
+
"application/vnd.syncml+xml": ["xsm"],
|
|
4863
|
+
"application/vnd.syncml.dm+wbxml": ["bdm"],
|
|
4864
|
+
"application/vnd.syncml.dm+xml": ["xdm"],
|
|
4865
|
+
"application/vnd.syncml.dmddf+xml": ["ddf"],
|
|
4866
|
+
"application/vnd.tao.intent-module-archive": ["tao"],
|
|
4867
|
+
"application/vnd.tcpdump.pcap": ["pcap", "cap", "dmp"],
|
|
4868
|
+
"application/vnd.tmobile-livetv": ["tmo"],
|
|
4869
|
+
"application/vnd.trid.tpt": ["tpt"],
|
|
4870
|
+
"application/vnd.triscape.mxs": ["mxs"],
|
|
4871
|
+
"application/vnd.trueapp": ["tra"],
|
|
4872
|
+
"application/vnd.ufdl": ["ufd", "ufdl"],
|
|
4873
|
+
"application/vnd.uiq.theme": ["utz"],
|
|
4874
|
+
"application/vnd.umajin": ["umj"],
|
|
4875
|
+
"application/vnd.unity": ["unityweb"],
|
|
4876
|
+
"application/vnd.uoml+xml": ["uoml", "uo"],
|
|
4877
|
+
"application/vnd.vcx": ["vcx"],
|
|
4878
|
+
"application/vnd.visio": ["vsd", "vst", "vss", "vsw", "vsdx", "vtx"],
|
|
4879
|
+
"application/vnd.visionary": ["vis"],
|
|
4880
|
+
"application/vnd.vsf": ["vsf"],
|
|
4881
|
+
"application/vnd.wap.wbxml": ["wbxml"],
|
|
4882
|
+
"application/vnd.wap.wmlc": ["wmlc"],
|
|
4883
|
+
"application/vnd.wap.wmlscriptc": ["wmlsc"],
|
|
4884
|
+
"application/vnd.webturbo": ["wtb"],
|
|
4885
|
+
"application/vnd.wolfram.player": ["nbp"],
|
|
4886
|
+
"application/vnd.wordperfect": ["wpd"],
|
|
4887
|
+
"application/vnd.wqd": ["wqd"],
|
|
4888
|
+
"application/vnd.wt.stf": ["stf"],
|
|
4889
|
+
"application/vnd.xara": ["xar"],
|
|
4890
|
+
"application/vnd.xfdl": ["xfdl"],
|
|
4891
|
+
"application/vnd.yamaha.hv-dic": ["hvd"],
|
|
4892
|
+
"application/vnd.yamaha.hv-script": ["hvs"],
|
|
4893
|
+
"application/vnd.yamaha.hv-voice": ["hvp"],
|
|
4894
|
+
"application/vnd.yamaha.openscoreformat": ["osf"],
|
|
4895
|
+
"application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"],
|
|
4896
|
+
"application/vnd.yamaha.smaf-audio": ["saf"],
|
|
4897
|
+
"application/vnd.yamaha.smaf-phrase": ["spf"],
|
|
4898
|
+
"application/vnd.yellowriver-custom-menu": ["cmp"],
|
|
4899
|
+
"application/vnd.zul": ["zir", "zirz"],
|
|
4900
|
+
"application/vnd.zzazz.deck+xml": ["zaz"],
|
|
4901
|
+
"application/x-7z-compressed": ["7z"],
|
|
4902
|
+
"application/x-abiword": ["abw"],
|
|
4903
|
+
"application/x-ace-compressed": ["ace"],
|
|
4904
|
+
"application/x-apple-diskimage": ["*dmg"],
|
|
4905
|
+
"application/x-arj": ["arj"],
|
|
4906
|
+
"application/x-authorware-bin": ["aab", "x32", "u32", "vox"],
|
|
4907
|
+
"application/x-authorware-map": ["aam"],
|
|
4908
|
+
"application/x-authorware-seg": ["aas"],
|
|
4909
|
+
"application/x-bcpio": ["bcpio"],
|
|
4910
|
+
"application/x-bdoc": ["*bdoc"],
|
|
4911
|
+
"application/x-bittorrent": ["torrent"],
|
|
4912
|
+
"application/x-blender": ["blend"],
|
|
4913
|
+
"application/x-blorb": ["blb", "blorb"],
|
|
4914
|
+
"application/x-bzip": ["bz"],
|
|
4915
|
+
"application/x-bzip2": ["bz2", "boz"],
|
|
4916
|
+
"application/x-cbr": ["cbr", "cba", "cbt", "cbz", "cb7"],
|
|
4917
|
+
"application/x-cdlink": ["vcd"],
|
|
4918
|
+
"application/x-cfs-compressed": ["cfs"],
|
|
4919
|
+
"application/x-chat": ["chat"],
|
|
4920
|
+
"application/x-chess-pgn": ["pgn"],
|
|
4921
|
+
"application/x-chrome-extension": ["crx"],
|
|
4922
|
+
"application/x-cocoa": ["cco"],
|
|
4923
|
+
"application/x-compressed": ["*rar"],
|
|
4924
|
+
"application/x-conference": ["nsc"],
|
|
4925
|
+
"application/x-cpio": ["cpio"],
|
|
4926
|
+
"application/x-csh": ["csh"],
|
|
4927
|
+
"application/x-debian-package": ["*deb", "udeb"],
|
|
4928
|
+
"application/x-dgc-compressed": ["dgc"],
|
|
4929
|
+
"application/x-director": [
|
|
4930
|
+
"dir",
|
|
4931
|
+
"dcr",
|
|
4932
|
+
"dxr",
|
|
4933
|
+
"cst",
|
|
4934
|
+
"cct",
|
|
4935
|
+
"cxt",
|
|
4936
|
+
"w3d",
|
|
4937
|
+
"fgd",
|
|
4938
|
+
"swa"
|
|
4939
|
+
],
|
|
4940
|
+
"application/x-doom": ["wad"],
|
|
4941
|
+
"application/x-dtbncx+xml": ["ncx"],
|
|
4942
|
+
"application/x-dtbook+xml": ["dtb"],
|
|
4943
|
+
"application/x-dtbresource+xml": ["res"],
|
|
4944
|
+
"application/x-dvi": ["dvi"],
|
|
4945
|
+
"application/x-envoy": ["evy"],
|
|
4946
|
+
"application/x-eva": ["eva"],
|
|
4947
|
+
"application/x-font-bdf": ["bdf"],
|
|
4948
|
+
"application/x-font-ghostscript": ["gsf"],
|
|
4949
|
+
"application/x-font-linux-psf": ["psf"],
|
|
4950
|
+
"application/x-font-pcf": ["pcf"],
|
|
4951
|
+
"application/x-font-snf": ["snf"],
|
|
4952
|
+
"application/x-font-type1": ["pfa", "pfb", "pfm", "afm"],
|
|
4953
|
+
"application/x-freearc": ["arc"],
|
|
4954
|
+
"application/x-futuresplash": ["spl"],
|
|
4955
|
+
"application/x-gca-compressed": ["gca"],
|
|
4956
|
+
"application/x-glulx": ["ulx"],
|
|
4957
|
+
"application/x-gnumeric": ["gnumeric"],
|
|
4958
|
+
"application/x-gramps-xml": ["gramps"],
|
|
4959
|
+
"application/x-gtar": ["gtar"],
|
|
4960
|
+
"application/x-hdf": ["hdf"],
|
|
4961
|
+
"application/x-httpd-php": ["php"],
|
|
4962
|
+
"application/x-install-instructions": ["install"],
|
|
4963
|
+
"application/x-ipynb+json": ["ipynb"],
|
|
4964
|
+
"application/x-iso9660-image": ["*iso"],
|
|
4965
|
+
"application/x-iwork-keynote-sffkey": ["*key"],
|
|
4966
|
+
"application/x-iwork-numbers-sffnumbers": ["*numbers"],
|
|
4967
|
+
"application/x-iwork-pages-sffpages": ["*pages"],
|
|
4968
|
+
"application/x-java-archive-diff": ["jardiff"],
|
|
4969
|
+
"application/x-java-jnlp-file": ["jnlp"],
|
|
4970
|
+
"application/x-keepass2": ["kdbx"],
|
|
4971
|
+
"application/x-latex": ["latex"],
|
|
4972
|
+
"application/x-lua-bytecode": ["luac"],
|
|
4973
|
+
"application/x-lzh-compressed": ["lzh", "lha"],
|
|
4974
|
+
"application/x-makeself": ["run"],
|
|
4975
|
+
"application/x-mie": ["mie"],
|
|
4976
|
+
"application/x-mobipocket-ebook": ["*prc", "mobi"],
|
|
4977
|
+
"application/x-ms-application": ["application"],
|
|
4978
|
+
"application/x-ms-shortcut": ["lnk"],
|
|
4979
|
+
"application/x-ms-wmd": ["wmd"],
|
|
4980
|
+
"application/x-ms-wmz": ["wmz"],
|
|
4981
|
+
"application/x-ms-xbap": ["xbap"],
|
|
4982
|
+
"application/x-msaccess": ["mdb"],
|
|
4983
|
+
"application/x-msbinder": ["obd"],
|
|
4984
|
+
"application/x-mscardfile": ["crd"],
|
|
4985
|
+
"application/x-msclip": ["clp"],
|
|
4986
|
+
"application/x-msdos-program": ["*exe"],
|
|
4987
|
+
"application/x-msdownload": ["*exe", "*dll", "com", "bat", "*msi"],
|
|
4988
|
+
"application/x-msmediaview": ["mvb", "m13", "m14"],
|
|
4989
|
+
"application/x-msmetafile": ["*wmf", "*wmz", "*emf", "emz"],
|
|
4990
|
+
"application/x-msmoney": ["mny"],
|
|
4991
|
+
"application/x-mspublisher": ["pub"],
|
|
4992
|
+
"application/x-msschedule": ["scd"],
|
|
4993
|
+
"application/x-msterminal": ["trm"],
|
|
4994
|
+
"application/x-mswrite": ["wri"],
|
|
4995
|
+
"application/x-netcdf": ["nc", "cdf"],
|
|
4996
|
+
"application/x-ns-proxy-autoconfig": ["pac"],
|
|
4997
|
+
"application/x-nzb": ["nzb"],
|
|
4998
|
+
"application/x-perl": ["pl", "pm"],
|
|
4999
|
+
"application/x-pilot": ["*prc", "*pdb"],
|
|
5000
|
+
"application/x-pkcs12": ["p12", "pfx"],
|
|
5001
|
+
"application/x-pkcs7-certificates": ["p7b", "spc"],
|
|
5002
|
+
"application/x-pkcs7-certreqresp": ["p7r"],
|
|
5003
|
+
"application/x-rar-compressed": ["*rar"],
|
|
5004
|
+
"application/x-redhat-package-manager": ["rpm"],
|
|
5005
|
+
"application/x-research-info-systems": ["ris"],
|
|
5006
|
+
"application/x-sea": ["sea"],
|
|
5007
|
+
"application/x-sh": ["sh"],
|
|
5008
|
+
"application/x-shar": ["shar"],
|
|
5009
|
+
"application/x-shockwave-flash": ["swf"],
|
|
5010
|
+
"application/x-silverlight-app": ["xap"],
|
|
5011
|
+
"application/x-sql": ["*sql"],
|
|
5012
|
+
"application/x-stuffit": ["sit"],
|
|
5013
|
+
"application/x-stuffitx": ["sitx"],
|
|
5014
|
+
"application/x-subrip": ["srt"],
|
|
5015
|
+
"application/x-sv4cpio": ["sv4cpio"],
|
|
5016
|
+
"application/x-sv4crc": ["sv4crc"],
|
|
5017
|
+
"application/x-t3vm-image": ["t3"],
|
|
5018
|
+
"application/x-tads": ["gam"],
|
|
5019
|
+
"application/x-tar": ["tar"],
|
|
5020
|
+
"application/x-tcl": ["tcl", "tk"],
|
|
5021
|
+
"application/x-tex": ["tex"],
|
|
5022
|
+
"application/x-tex-tfm": ["tfm"],
|
|
5023
|
+
"application/x-texinfo": ["texinfo", "texi"],
|
|
5024
|
+
"application/x-tgif": ["*obj"],
|
|
5025
|
+
"application/x-ustar": ["ustar"],
|
|
5026
|
+
"application/x-virtualbox-hdd": ["hdd"],
|
|
5027
|
+
"application/x-virtualbox-ova": ["ova"],
|
|
5028
|
+
"application/x-virtualbox-ovf": ["ovf"],
|
|
5029
|
+
"application/x-virtualbox-vbox": ["vbox"],
|
|
5030
|
+
"application/x-virtualbox-vbox-extpack": ["vbox-extpack"],
|
|
5031
|
+
"application/x-virtualbox-vdi": ["vdi"],
|
|
5032
|
+
"application/x-virtualbox-vhd": ["vhd"],
|
|
5033
|
+
"application/x-virtualbox-vmdk": ["vmdk"],
|
|
5034
|
+
"application/x-wais-source": ["src"],
|
|
5035
|
+
"application/x-web-app-manifest+json": ["webapp"],
|
|
5036
|
+
"application/x-x509-ca-cert": ["der", "crt", "pem"],
|
|
5037
|
+
"application/x-xfig": ["fig"],
|
|
5038
|
+
"application/x-xliff+xml": ["*xlf"],
|
|
5039
|
+
"application/x-xpinstall": ["xpi"],
|
|
5040
|
+
"application/x-xz": ["xz"],
|
|
5041
|
+
"application/x-zip-compressed": ["*zip"],
|
|
5042
|
+
"application/x-zmachine": ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"],
|
|
5043
|
+
"audio/vnd.dece.audio": ["uva", "uvva"],
|
|
5044
|
+
"audio/vnd.digital-winds": ["eol"],
|
|
5045
|
+
"audio/vnd.dra": ["dra"],
|
|
5046
|
+
"audio/vnd.dts": ["dts"],
|
|
5047
|
+
"audio/vnd.dts.hd": ["dtshd"],
|
|
5048
|
+
"audio/vnd.lucent.voice": ["lvp"],
|
|
5049
|
+
"audio/vnd.ms-playready.media.pya": ["pya"],
|
|
5050
|
+
"audio/vnd.nuera.ecelp4800": ["ecelp4800"],
|
|
5051
|
+
"audio/vnd.nuera.ecelp7470": ["ecelp7470"],
|
|
5052
|
+
"audio/vnd.nuera.ecelp9600": ["ecelp9600"],
|
|
5053
|
+
"audio/vnd.rip": ["rip"],
|
|
5054
|
+
"audio/x-aac": ["*aac"],
|
|
5055
|
+
"audio/x-aiff": ["aif", "aiff", "aifc"],
|
|
5056
|
+
"audio/x-caf": ["caf"],
|
|
5057
|
+
"audio/x-flac": ["flac"],
|
|
5058
|
+
"audio/x-m4a": ["*m4a"],
|
|
5059
|
+
"audio/x-matroska": ["mka"],
|
|
5060
|
+
"audio/x-mpegurl": ["m3u"],
|
|
5061
|
+
"audio/x-ms-wax": ["wax"],
|
|
5062
|
+
"audio/x-ms-wma": ["wma"],
|
|
5063
|
+
"audio/x-pn-realaudio": ["ram", "ra"],
|
|
5064
|
+
"audio/x-pn-realaudio-plugin": ["rmp"],
|
|
5065
|
+
"audio/x-realaudio": ["*ra"],
|
|
5066
|
+
"audio/x-wav": ["*wav"],
|
|
5067
|
+
"chemical/x-cdx": ["cdx"],
|
|
5068
|
+
"chemical/x-cif": ["cif"],
|
|
5069
|
+
"chemical/x-cmdf": ["cmdf"],
|
|
5070
|
+
"chemical/x-cml": ["cml"],
|
|
5071
|
+
"chemical/x-csml": ["csml"],
|
|
5072
|
+
"chemical/x-xyz": ["xyz"],
|
|
5073
|
+
"image/prs.btif": ["btif", "btf"],
|
|
5074
|
+
"image/prs.pti": ["pti"],
|
|
5075
|
+
"image/vnd.adobe.photoshop": ["psd"],
|
|
5076
|
+
"image/vnd.airzip.accelerator.azv": ["azv"],
|
|
5077
|
+
"image/vnd.blockfact.facti": ["facti"],
|
|
5078
|
+
"image/vnd.dece.graphic": ["uvi", "uvvi", "uvg", "uvvg"],
|
|
5079
|
+
"image/vnd.djvu": ["djvu", "djv"],
|
|
5080
|
+
"image/vnd.dvb.subtitle": ["*sub"],
|
|
5081
|
+
"image/vnd.dwg": ["dwg"],
|
|
5082
|
+
"image/vnd.dxf": ["dxf"],
|
|
5083
|
+
"image/vnd.fastbidsheet": ["fbs"],
|
|
5084
|
+
"image/vnd.fpx": ["fpx"],
|
|
5085
|
+
"image/vnd.fst": ["fst"],
|
|
5086
|
+
"image/vnd.fujixerox.edmics-mmr": ["mmr"],
|
|
5087
|
+
"image/vnd.fujixerox.edmics-rlc": ["rlc"],
|
|
5088
|
+
"image/vnd.microsoft.icon": ["ico"],
|
|
5089
|
+
"image/vnd.ms-dds": ["dds"],
|
|
5090
|
+
"image/vnd.ms-modi": ["mdi"],
|
|
5091
|
+
"image/vnd.ms-photo": ["wdp"],
|
|
5092
|
+
"image/vnd.net-fpx": ["npx"],
|
|
5093
|
+
"image/vnd.pco.b16": ["b16"],
|
|
5094
|
+
"image/vnd.tencent.tap": ["tap"],
|
|
5095
|
+
"image/vnd.valve.source.texture": ["vtf"],
|
|
5096
|
+
"image/vnd.wap.wbmp": ["wbmp"],
|
|
5097
|
+
"image/vnd.xiff": ["xif"],
|
|
5098
|
+
"image/vnd.zbrush.pcx": ["pcx"],
|
|
5099
|
+
"image/x-3ds": ["3ds"],
|
|
5100
|
+
"image/x-adobe-dng": ["dng"],
|
|
5101
|
+
"image/x-cmu-raster": ["ras"],
|
|
5102
|
+
"image/x-cmx": ["cmx"],
|
|
5103
|
+
"image/x-freehand": ["fh", "fhc", "fh4", "fh5", "fh7"],
|
|
5104
|
+
"image/x-icon": ["*ico"],
|
|
5105
|
+
"image/x-jng": ["jng"],
|
|
5106
|
+
"image/x-mrsid-image": ["sid"],
|
|
5107
|
+
"image/x-ms-bmp": ["*bmp"],
|
|
5108
|
+
"image/x-pcx": ["*pcx"],
|
|
5109
|
+
"image/x-pict": ["pic", "pct"],
|
|
5110
|
+
"image/x-portable-anymap": ["pnm"],
|
|
5111
|
+
"image/x-portable-bitmap": ["pbm"],
|
|
5112
|
+
"image/x-portable-graymap": ["pgm"],
|
|
5113
|
+
"image/x-portable-pixmap": ["ppm"],
|
|
5114
|
+
"image/x-rgb": ["rgb"],
|
|
5115
|
+
"image/x-tga": ["tga"],
|
|
5116
|
+
"image/x-xbitmap": ["xbm"],
|
|
5117
|
+
"image/x-xpixmap": ["xpm"],
|
|
5118
|
+
"image/x-xwindowdump": ["xwd"],
|
|
5119
|
+
"message/vnd.wfa.wsc": ["wsc"],
|
|
5120
|
+
"model/vnd.bary": ["bary"],
|
|
5121
|
+
"model/vnd.cld": ["cld"],
|
|
5122
|
+
"model/vnd.collada+xml": ["dae"],
|
|
5123
|
+
"model/vnd.dwf": ["dwf"],
|
|
5124
|
+
"model/vnd.gdl": ["gdl"],
|
|
5125
|
+
"model/vnd.gtw": ["gtw"],
|
|
5126
|
+
"model/vnd.mts": ["*mts"],
|
|
5127
|
+
"model/vnd.opengex": ["ogex"],
|
|
5128
|
+
"model/vnd.parasolid.transmit.binary": ["x_b"],
|
|
5129
|
+
"model/vnd.parasolid.transmit.text": ["x_t"],
|
|
5130
|
+
"model/vnd.pytha.pyox": ["pyo", "pyox"],
|
|
5131
|
+
"model/vnd.sap.vds": ["vds"],
|
|
5132
|
+
"model/vnd.usda": ["usda"],
|
|
5133
|
+
"model/vnd.usdz+zip": ["usdz"],
|
|
5134
|
+
"model/vnd.valve.source.compiled-map": ["bsp"],
|
|
5135
|
+
"model/vnd.vtu": ["vtu"],
|
|
5136
|
+
"text/prs.lines.tag": ["dsc"],
|
|
5137
|
+
"text/vnd.curl": ["curl"],
|
|
5138
|
+
"text/vnd.curl.dcurl": ["dcurl"],
|
|
5139
|
+
"text/vnd.curl.mcurl": ["mcurl"],
|
|
5140
|
+
"text/vnd.curl.scurl": ["scurl"],
|
|
5141
|
+
"text/vnd.dvb.subtitle": ["sub"],
|
|
5142
|
+
"text/vnd.familysearch.gedcom": ["ged"],
|
|
5143
|
+
"text/vnd.fly": ["fly"],
|
|
5144
|
+
"text/vnd.fmi.flexstor": ["flx"],
|
|
5145
|
+
"text/vnd.graphviz": ["gv"],
|
|
5146
|
+
"text/vnd.in3d.3dml": ["3dml"],
|
|
5147
|
+
"text/vnd.in3d.spot": ["spot"],
|
|
5148
|
+
"text/vnd.sun.j2me.app-descriptor": ["jad"],
|
|
5149
|
+
"text/vnd.wap.wml": ["wml"],
|
|
5150
|
+
"text/vnd.wap.wmlscript": ["wmls"],
|
|
5151
|
+
"text/x-asm": ["s", "asm"],
|
|
5152
|
+
"text/x-c": ["c", "cc", "cxx", "cpp", "h", "hh", "dic"],
|
|
5153
|
+
"text/x-component": ["htc"],
|
|
5154
|
+
"text/x-fortran": ["f", "for", "f77", "f90"],
|
|
5155
|
+
"text/x-handlebars-template": ["hbs"],
|
|
5156
|
+
"text/x-java-source": ["java"],
|
|
5157
|
+
"text/x-lua": ["lua"],
|
|
5158
|
+
"text/x-markdown": ["mkd"],
|
|
5159
|
+
"text/x-nfo": ["nfo"],
|
|
5160
|
+
"text/x-opml": ["opml"],
|
|
5161
|
+
"text/x-org": ["*org"],
|
|
5162
|
+
"text/x-pascal": ["p", "pas"],
|
|
5163
|
+
"text/x-processing": ["pde"],
|
|
5164
|
+
"text/x-sass": ["sass"],
|
|
5165
|
+
"text/x-scss": ["scss"],
|
|
5166
|
+
"text/x-setext": ["etx"],
|
|
5167
|
+
"text/x-sfv": ["sfv"],
|
|
5168
|
+
"text/x-suse-ymp": ["ymp"],
|
|
5169
|
+
"text/x-uuencode": ["uu"],
|
|
5170
|
+
"text/x-vcalendar": ["vcs"],
|
|
5171
|
+
"text/x-vcard": ["vcf"],
|
|
5172
|
+
"video/vnd.dece.hd": ["uvh", "uvvh"],
|
|
5173
|
+
"video/vnd.dece.mobile": ["uvm", "uvvm"],
|
|
5174
|
+
"video/vnd.dece.pd": ["uvp", "uvvp"],
|
|
5175
|
+
"video/vnd.dece.sd": ["uvs", "uvvs"],
|
|
5176
|
+
"video/vnd.dece.video": ["uvv", "uvvv"],
|
|
5177
|
+
"video/vnd.dvb.file": ["dvb"],
|
|
5178
|
+
"video/vnd.fvt": ["fvt"],
|
|
5179
|
+
"video/vnd.mpegurl": ["mxu", "m4u"],
|
|
5180
|
+
"video/vnd.ms-playready.media.pyv": ["pyv"],
|
|
5181
|
+
"video/vnd.uvvu.mp4": ["uvu", "uvvu"],
|
|
5182
|
+
"video/vnd.vivo": ["viv"],
|
|
5183
|
+
"video/x-f4v": ["f4v"],
|
|
5184
|
+
"video/x-fli": ["fli"],
|
|
5185
|
+
"video/x-flv": ["flv"],
|
|
5186
|
+
"video/x-m4v": ["m4v"],
|
|
5187
|
+
"video/x-matroska": ["mkv", "mk3d", "mks"],
|
|
5188
|
+
"video/x-mng": ["mng"],
|
|
5189
|
+
"video/x-ms-asf": ["asf", "asx"],
|
|
5190
|
+
"video/x-ms-vob": ["vob"],
|
|
5191
|
+
"video/x-ms-wm": ["wm"],
|
|
5192
|
+
"video/x-ms-wmv": ["wmv"],
|
|
5193
|
+
"video/x-ms-wmx": ["wmx"],
|
|
5194
|
+
"video/x-ms-wvx": ["wvx"],
|
|
5195
|
+
"video/x-msvideo": ["avi"],
|
|
5196
|
+
"video/x-sgi-movie": ["movie"],
|
|
5197
|
+
"video/x-smv": ["smv"],
|
|
5198
|
+
"x-conference/x-cooltalk": ["ice"]
|
|
5199
|
+
};
|
|
5200
|
+
Object.freeze(types);
|
|
5201
|
+
var other_default = types;
|
|
5202
|
+
|
|
5203
|
+
// node_modules/mime/dist/types/standard.js
|
|
5204
|
+
var types2 = {
|
|
5205
|
+
"application/andrew-inset": ["ez"],
|
|
5206
|
+
"application/appinstaller": ["appinstaller"],
|
|
5207
|
+
"application/applixware": ["aw"],
|
|
5208
|
+
"application/appx": ["appx"],
|
|
5209
|
+
"application/appxbundle": ["appxbundle"],
|
|
5210
|
+
"application/atom+xml": ["atom"],
|
|
5211
|
+
"application/atomcat+xml": ["atomcat"],
|
|
5212
|
+
"application/atomdeleted+xml": ["atomdeleted"],
|
|
5213
|
+
"application/atomsvc+xml": ["atomsvc"],
|
|
5214
|
+
"application/atsc-dwd+xml": ["dwd"],
|
|
5215
|
+
"application/atsc-held+xml": ["held"],
|
|
5216
|
+
"application/atsc-rsat+xml": ["rsat"],
|
|
5217
|
+
"application/automationml-aml+xml": ["aml"],
|
|
5218
|
+
"application/automationml-amlx+zip": ["amlx"],
|
|
5219
|
+
"application/bdoc": ["bdoc"],
|
|
5220
|
+
"application/calendar+xml": ["xcs"],
|
|
5221
|
+
"application/ccxml+xml": ["ccxml"],
|
|
5222
|
+
"application/cdfx+xml": ["cdfx"],
|
|
5223
|
+
"application/cdmi-capability": ["cdmia"],
|
|
5224
|
+
"application/cdmi-container": ["cdmic"],
|
|
5225
|
+
"application/cdmi-domain": ["cdmid"],
|
|
5226
|
+
"application/cdmi-object": ["cdmio"],
|
|
5227
|
+
"application/cdmi-queue": ["cdmiq"],
|
|
5228
|
+
"application/cpl+xml": ["cpl"],
|
|
5229
|
+
"application/cu-seeme": ["cu"],
|
|
5230
|
+
"application/cwl": ["cwl"],
|
|
5231
|
+
"application/dash+xml": ["mpd"],
|
|
5232
|
+
"application/dash-patch+xml": ["mpp"],
|
|
5233
|
+
"application/davmount+xml": ["davmount"],
|
|
5234
|
+
"application/dicom": ["dcm"],
|
|
5235
|
+
"application/docbook+xml": ["dbk"],
|
|
5236
|
+
"application/dssc+der": ["dssc"],
|
|
5237
|
+
"application/dssc+xml": ["xdssc"],
|
|
5238
|
+
"application/ecmascript": ["ecma"],
|
|
5239
|
+
"application/emma+xml": ["emma"],
|
|
5240
|
+
"application/emotionml+xml": ["emotionml"],
|
|
5241
|
+
"application/epub+zip": ["epub"],
|
|
5242
|
+
"application/exi": ["exi"],
|
|
5243
|
+
"application/express": ["exp"],
|
|
5244
|
+
"application/fdf": ["fdf"],
|
|
5245
|
+
"application/fdt+xml": ["fdt"],
|
|
5246
|
+
"application/font-tdpfr": ["pfr"],
|
|
5247
|
+
"application/geo+json": ["geojson"],
|
|
5248
|
+
"application/gml+xml": ["gml"],
|
|
5249
|
+
"application/gpx+xml": ["gpx"],
|
|
5250
|
+
"application/gxf": ["gxf"],
|
|
5251
|
+
"application/gzip": ["gz"],
|
|
5252
|
+
"application/hjson": ["hjson"],
|
|
5253
|
+
"application/hyperstudio": ["stk"],
|
|
5254
|
+
"application/inkml+xml": ["ink", "inkml"],
|
|
5255
|
+
"application/ipfix": ["ipfix"],
|
|
5256
|
+
"application/its+xml": ["its"],
|
|
5257
|
+
"application/java-archive": ["jar", "war", "ear"],
|
|
5258
|
+
"application/java-serialized-object": ["ser"],
|
|
5259
|
+
"application/java-vm": ["class"],
|
|
5260
|
+
"application/javascript": ["*js"],
|
|
5261
|
+
"application/json": ["json", "map"],
|
|
5262
|
+
"application/json5": ["json5"],
|
|
5263
|
+
"application/jsonml+json": ["jsonml"],
|
|
5264
|
+
"application/ld+json": ["jsonld"],
|
|
5265
|
+
"application/lgr+xml": ["lgr"],
|
|
5266
|
+
"application/lost+xml": ["lostxml"],
|
|
5267
|
+
"application/mac-binhex40": ["hqx"],
|
|
5268
|
+
"application/mac-compactpro": ["cpt"],
|
|
5269
|
+
"application/mads+xml": ["mads"],
|
|
5270
|
+
"application/manifest+json": ["webmanifest"],
|
|
5271
|
+
"application/marc": ["mrc"],
|
|
5272
|
+
"application/marcxml+xml": ["mrcx"],
|
|
5273
|
+
"application/mathematica": ["ma", "nb", "mb"],
|
|
5274
|
+
"application/mathml+xml": ["mathml"],
|
|
5275
|
+
"application/mbox": ["mbox"],
|
|
5276
|
+
"application/media-policy-dataset+xml": ["mpf"],
|
|
5277
|
+
"application/mediaservercontrol+xml": ["mscml"],
|
|
5278
|
+
"application/metalink+xml": ["metalink"],
|
|
5279
|
+
"application/metalink4+xml": ["meta4"],
|
|
5280
|
+
"application/mets+xml": ["mets"],
|
|
5281
|
+
"application/mmt-aei+xml": ["maei"],
|
|
5282
|
+
"application/mmt-usd+xml": ["musd"],
|
|
5283
|
+
"application/mods+xml": ["mods"],
|
|
5284
|
+
"application/mp21": ["m21", "mp21"],
|
|
5285
|
+
"application/mp4": ["*mp4", "*mpg4", "mp4s", "m4p"],
|
|
5286
|
+
"application/msix": ["msix"],
|
|
5287
|
+
"application/msixbundle": ["msixbundle"],
|
|
5288
|
+
"application/msword": ["doc", "dot"],
|
|
5289
|
+
"application/mxf": ["mxf"],
|
|
5290
|
+
"application/n-quads": ["nq"],
|
|
5291
|
+
"application/n-triples": ["nt"],
|
|
5292
|
+
"application/node": ["cjs"],
|
|
5293
|
+
"application/octet-stream": [
|
|
5294
|
+
"bin",
|
|
5295
|
+
"dms",
|
|
5296
|
+
"lrf",
|
|
5297
|
+
"mar",
|
|
5298
|
+
"so",
|
|
5299
|
+
"dist",
|
|
5300
|
+
"distz",
|
|
5301
|
+
"pkg",
|
|
5302
|
+
"bpk",
|
|
5303
|
+
"dump",
|
|
5304
|
+
"elc",
|
|
5305
|
+
"deploy",
|
|
5306
|
+
"exe",
|
|
5307
|
+
"dll",
|
|
5308
|
+
"deb",
|
|
5309
|
+
"dmg",
|
|
5310
|
+
"iso",
|
|
5311
|
+
"img",
|
|
5312
|
+
"msi",
|
|
5313
|
+
"msp",
|
|
5314
|
+
"msm",
|
|
5315
|
+
"buffer"
|
|
5316
|
+
],
|
|
5317
|
+
"application/oda": ["oda"],
|
|
5318
|
+
"application/oebps-package+xml": ["opf"],
|
|
5319
|
+
"application/ogg": ["ogx"],
|
|
5320
|
+
"application/omdoc+xml": ["omdoc"],
|
|
5321
|
+
"application/onenote": [
|
|
5322
|
+
"onetoc",
|
|
5323
|
+
"onetoc2",
|
|
5324
|
+
"onetmp",
|
|
5325
|
+
"onepkg",
|
|
5326
|
+
"one",
|
|
5327
|
+
"onea"
|
|
5328
|
+
],
|
|
5329
|
+
"application/oxps": ["oxps"],
|
|
5330
|
+
"application/p2p-overlay+xml": ["relo"],
|
|
5331
|
+
"application/patch-ops-error+xml": ["xer"],
|
|
5332
|
+
"application/pdf": ["pdf"],
|
|
5333
|
+
"application/pgp-encrypted": ["pgp"],
|
|
5334
|
+
"application/pgp-keys": ["asc"],
|
|
5335
|
+
"application/pgp-signature": ["sig", "*asc"],
|
|
5336
|
+
"application/pics-rules": ["prf"],
|
|
5337
|
+
"application/pkcs10": ["p10"],
|
|
5338
|
+
"application/pkcs7-mime": ["p7m", "p7c"],
|
|
5339
|
+
"application/pkcs7-signature": ["p7s"],
|
|
5340
|
+
"application/pkcs8": ["p8"],
|
|
5341
|
+
"application/pkix-attr-cert": ["ac"],
|
|
5342
|
+
"application/pkix-cert": ["cer"],
|
|
5343
|
+
"application/pkix-crl": ["crl"],
|
|
5344
|
+
"application/pkix-pkipath": ["pkipath"],
|
|
5345
|
+
"application/pkixcmp": ["pki"],
|
|
5346
|
+
"application/pls+xml": ["pls"],
|
|
5347
|
+
"application/postscript": ["ai", "eps", "ps"],
|
|
5348
|
+
"application/provenance+xml": ["provx"],
|
|
5349
|
+
"application/pskc+xml": ["pskcxml"],
|
|
5350
|
+
"application/raml+yaml": ["raml"],
|
|
5351
|
+
"application/rdf+xml": ["rdf", "owl"],
|
|
5352
|
+
"application/reginfo+xml": ["rif"],
|
|
5353
|
+
"application/relax-ng-compact-syntax": ["rnc"],
|
|
5354
|
+
"application/resource-lists+xml": ["rl"],
|
|
5355
|
+
"application/resource-lists-diff+xml": ["rld"],
|
|
5356
|
+
"application/rls-services+xml": ["rs"],
|
|
5357
|
+
"application/route-apd+xml": ["rapd"],
|
|
5358
|
+
"application/route-s-tsid+xml": ["sls"],
|
|
5359
|
+
"application/route-usd+xml": ["rusd"],
|
|
5360
|
+
"application/rpki-ghostbusters": ["gbr"],
|
|
5361
|
+
"application/rpki-manifest": ["mft"],
|
|
5362
|
+
"application/rpki-roa": ["roa"],
|
|
5363
|
+
"application/rsd+xml": ["rsd"],
|
|
5364
|
+
"application/rss+xml": ["rss"],
|
|
5365
|
+
"application/rtf": ["rtf"],
|
|
5366
|
+
"application/sbml+xml": ["sbml"],
|
|
5367
|
+
"application/scvp-cv-request": ["scq"],
|
|
5368
|
+
"application/scvp-cv-response": ["scs"],
|
|
5369
|
+
"application/scvp-vp-request": ["spq"],
|
|
5370
|
+
"application/scvp-vp-response": ["spp"],
|
|
5371
|
+
"application/sdp": ["sdp"],
|
|
5372
|
+
"application/senml+xml": ["senmlx"],
|
|
5373
|
+
"application/sensml+xml": ["sensmlx"],
|
|
5374
|
+
"application/set-payment-initiation": ["setpay"],
|
|
5375
|
+
"application/set-registration-initiation": ["setreg"],
|
|
5376
|
+
"application/shf+xml": ["shf"],
|
|
5377
|
+
"application/sieve": ["siv", "sieve"],
|
|
5378
|
+
"application/smil+xml": ["smi", "smil"],
|
|
5379
|
+
"application/sparql-query": ["rq"],
|
|
5380
|
+
"application/sparql-results+xml": ["srx"],
|
|
5381
|
+
"application/sql": ["sql"],
|
|
5382
|
+
"application/srgs": ["gram"],
|
|
5383
|
+
"application/srgs+xml": ["grxml"],
|
|
5384
|
+
"application/sru+xml": ["sru"],
|
|
5385
|
+
"application/ssdl+xml": ["ssdl"],
|
|
5386
|
+
"application/ssml+xml": ["ssml"],
|
|
5387
|
+
"application/swid+xml": ["swidtag"],
|
|
5388
|
+
"application/tei+xml": ["tei", "teicorpus"],
|
|
5389
|
+
"application/thraud+xml": ["tfi"],
|
|
5390
|
+
"application/timestamped-data": ["tsd"],
|
|
5391
|
+
"application/toml": ["toml"],
|
|
5392
|
+
"application/trig": ["trig"],
|
|
5393
|
+
"application/ttml+xml": ["ttml"],
|
|
5394
|
+
"application/ubjson": ["ubj"],
|
|
5395
|
+
"application/urc-ressheet+xml": ["rsheet"],
|
|
5396
|
+
"application/urc-targetdesc+xml": ["td"],
|
|
5397
|
+
"application/voicexml+xml": ["vxml"],
|
|
5398
|
+
"application/wasm": ["wasm"],
|
|
5399
|
+
"application/watcherinfo+xml": ["wif"],
|
|
5400
|
+
"application/widget": ["wgt"],
|
|
5401
|
+
"application/winhlp": ["hlp"],
|
|
5402
|
+
"application/wsdl+xml": ["wsdl"],
|
|
5403
|
+
"application/wspolicy+xml": ["wspolicy"],
|
|
5404
|
+
"application/xaml+xml": ["xaml"],
|
|
5405
|
+
"application/xcap-att+xml": ["xav"],
|
|
5406
|
+
"application/xcap-caps+xml": ["xca"],
|
|
5407
|
+
"application/xcap-diff+xml": ["xdf"],
|
|
5408
|
+
"application/xcap-el+xml": ["xel"],
|
|
5409
|
+
"application/xcap-ns+xml": ["xns"],
|
|
5410
|
+
"application/xenc+xml": ["xenc"],
|
|
5411
|
+
"application/xfdf": ["xfdf"],
|
|
5412
|
+
"application/xhtml+xml": ["xhtml", "xht"],
|
|
5413
|
+
"application/xliff+xml": ["xlf"],
|
|
5414
|
+
"application/xml": ["xml", "xsl", "xsd", "rng"],
|
|
5415
|
+
"application/xml-dtd": ["dtd"],
|
|
5416
|
+
"application/xop+xml": ["xop"],
|
|
5417
|
+
"application/xproc+xml": ["xpl"],
|
|
5418
|
+
"application/xslt+xml": ["*xsl", "xslt"],
|
|
5419
|
+
"application/xspf+xml": ["xspf"],
|
|
5420
|
+
"application/xv+xml": ["mxml", "xhvml", "xvml", "xvm"],
|
|
5421
|
+
"application/yang": ["yang"],
|
|
5422
|
+
"application/yin+xml": ["yin"],
|
|
5423
|
+
"application/zip": ["zip"],
|
|
5424
|
+
"application/zip+dotlottie": ["lottie"],
|
|
5425
|
+
"audio/3gpp": ["*3gpp"],
|
|
5426
|
+
"audio/aac": ["adts", "aac"],
|
|
5427
|
+
"audio/adpcm": ["adp"],
|
|
5428
|
+
"audio/amr": ["amr"],
|
|
5429
|
+
"audio/basic": ["au", "snd"],
|
|
5430
|
+
"audio/midi": ["mid", "midi", "kar", "rmi"],
|
|
5431
|
+
"audio/mobile-xmf": ["mxmf"],
|
|
5432
|
+
"audio/mp3": ["*mp3"],
|
|
5433
|
+
"audio/mp4": ["m4a", "mp4a", "m4b"],
|
|
5434
|
+
"audio/mpeg": ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"],
|
|
5435
|
+
"audio/ogg": ["oga", "ogg", "spx", "opus"],
|
|
5436
|
+
"audio/s3m": ["s3m"],
|
|
5437
|
+
"audio/silk": ["sil"],
|
|
5438
|
+
"audio/wav": ["wav"],
|
|
5439
|
+
"audio/wave": ["*wav"],
|
|
5440
|
+
"audio/webm": ["weba"],
|
|
5441
|
+
"audio/xm": ["xm"],
|
|
5442
|
+
"font/collection": ["ttc"],
|
|
5443
|
+
"font/otf": ["otf"],
|
|
5444
|
+
"font/ttf": ["ttf"],
|
|
5445
|
+
"font/woff": ["woff"],
|
|
5446
|
+
"font/woff2": ["woff2"],
|
|
5447
|
+
"image/aces": ["exr"],
|
|
5448
|
+
"image/apng": ["apng"],
|
|
5449
|
+
"image/avci": ["avci"],
|
|
5450
|
+
"image/avcs": ["avcs"],
|
|
5451
|
+
"image/avif": ["avif"],
|
|
5452
|
+
"image/bmp": ["bmp", "dib"],
|
|
5453
|
+
"image/cgm": ["cgm"],
|
|
5454
|
+
"image/dicom-rle": ["drle"],
|
|
5455
|
+
"image/dpx": ["dpx"],
|
|
5456
|
+
"image/emf": ["emf"],
|
|
5457
|
+
"image/fits": ["fits"],
|
|
5458
|
+
"image/g3fax": ["g3"],
|
|
5459
|
+
"image/gif": ["gif"],
|
|
5460
|
+
"image/heic": ["heic"],
|
|
5461
|
+
"image/heic-sequence": ["heics"],
|
|
5462
|
+
"image/heif": ["heif"],
|
|
5463
|
+
"image/heif-sequence": ["heifs"],
|
|
5464
|
+
"image/hej2k": ["hej2"],
|
|
5465
|
+
"image/ief": ["ief"],
|
|
5466
|
+
"image/jaii": ["jaii"],
|
|
5467
|
+
"image/jais": ["jais"],
|
|
5468
|
+
"image/jls": ["jls"],
|
|
5469
|
+
"image/jp2": ["jp2", "jpg2"],
|
|
5470
|
+
"image/jpeg": ["jpg", "jpeg", "jpe"],
|
|
5471
|
+
"image/jph": ["jph"],
|
|
5472
|
+
"image/jphc": ["jhc"],
|
|
5473
|
+
"image/jpm": ["jpm", "jpgm"],
|
|
5474
|
+
"image/jpx": ["jpx", "jpf"],
|
|
5475
|
+
"image/jxl": ["jxl"],
|
|
5476
|
+
"image/jxr": ["jxr"],
|
|
5477
|
+
"image/jxra": ["jxra"],
|
|
5478
|
+
"image/jxrs": ["jxrs"],
|
|
5479
|
+
"image/jxs": ["jxs"],
|
|
5480
|
+
"image/jxsc": ["jxsc"],
|
|
5481
|
+
"image/jxsi": ["jxsi"],
|
|
5482
|
+
"image/jxss": ["jxss"],
|
|
5483
|
+
"image/ktx": ["ktx"],
|
|
5484
|
+
"image/ktx2": ["ktx2"],
|
|
5485
|
+
"image/pjpeg": ["jfif"],
|
|
5486
|
+
"image/png": ["png"],
|
|
5487
|
+
"image/sgi": ["sgi"],
|
|
5488
|
+
"image/svg+xml": ["svg", "svgz"],
|
|
5489
|
+
"image/t38": ["t38"],
|
|
5490
|
+
"image/tiff": ["tif", "tiff"],
|
|
5491
|
+
"image/tiff-fx": ["tfx"],
|
|
5492
|
+
"image/webp": ["webp"],
|
|
5493
|
+
"image/wmf": ["wmf"],
|
|
5494
|
+
"message/disposition-notification": ["disposition-notification"],
|
|
5495
|
+
"message/global": ["u8msg"],
|
|
5496
|
+
"message/global-delivery-status": ["u8dsn"],
|
|
5497
|
+
"message/global-disposition-notification": ["u8mdn"],
|
|
5498
|
+
"message/global-headers": ["u8hdr"],
|
|
5499
|
+
"message/rfc822": ["eml", "mime", "mht", "mhtml"],
|
|
5500
|
+
"model/3mf": ["3mf"],
|
|
5501
|
+
"model/gltf+json": ["gltf"],
|
|
5502
|
+
"model/gltf-binary": ["glb"],
|
|
5503
|
+
"model/iges": ["igs", "iges"],
|
|
5504
|
+
"model/jt": ["jt"],
|
|
5505
|
+
"model/mesh": ["msh", "mesh", "silo"],
|
|
5506
|
+
"model/mtl": ["mtl"],
|
|
5507
|
+
"model/obj": ["obj"],
|
|
5508
|
+
"model/prc": ["prc"],
|
|
5509
|
+
"model/step": ["step", "stp", "stpnc", "p21", "210"],
|
|
5510
|
+
"model/step+xml": ["stpx"],
|
|
5511
|
+
"model/step+zip": ["stpz"],
|
|
5512
|
+
"model/step-xml+zip": ["stpxz"],
|
|
5513
|
+
"model/stl": ["stl"],
|
|
5514
|
+
"model/u3d": ["u3d"],
|
|
5515
|
+
"model/vrml": ["wrl", "vrml"],
|
|
5516
|
+
"model/x3d+binary": ["*x3db", "x3dbz"],
|
|
5517
|
+
"model/x3d+fastinfoset": ["x3db"],
|
|
5518
|
+
"model/x3d+vrml": ["*x3dv", "x3dvz"],
|
|
5519
|
+
"model/x3d+xml": ["x3d", "x3dz"],
|
|
5520
|
+
"model/x3d-vrml": ["x3dv"],
|
|
5521
|
+
"text/cache-manifest": ["appcache", "manifest"],
|
|
5522
|
+
"text/calendar": ["ics", "ifb"],
|
|
5523
|
+
"text/coffeescript": ["coffee", "litcoffee"],
|
|
5524
|
+
"text/css": ["css"],
|
|
5525
|
+
"text/csv": ["csv"],
|
|
5526
|
+
"text/html": ["html", "htm", "shtml"],
|
|
5527
|
+
"text/jade": ["jade"],
|
|
5528
|
+
"text/javascript": ["js", "mjs"],
|
|
5529
|
+
"text/jsx": ["jsx"],
|
|
5530
|
+
"text/less": ["less"],
|
|
5531
|
+
"text/markdown": ["md", "markdown"],
|
|
5532
|
+
"text/mathml": ["mml"],
|
|
5533
|
+
"text/mdx": ["mdx"],
|
|
5534
|
+
"text/n3": ["n3"],
|
|
5535
|
+
"text/plain": ["txt", "text", "conf", "def", "list", "log", "in", "ini"],
|
|
5536
|
+
"text/richtext": ["rtx"],
|
|
5537
|
+
"text/rtf": ["*rtf"],
|
|
5538
|
+
"text/sgml": ["sgml", "sgm"],
|
|
5539
|
+
"text/shex": ["shex"],
|
|
5540
|
+
"text/slim": ["slim", "slm"],
|
|
5541
|
+
"text/spdx": ["spdx"],
|
|
5542
|
+
"text/stylus": ["stylus", "styl"],
|
|
5543
|
+
"text/tab-separated-values": ["tsv"],
|
|
5544
|
+
"text/troff": ["t", "tr", "roff", "man", "me", "ms"],
|
|
5545
|
+
"text/turtle": ["ttl"],
|
|
5546
|
+
"text/uri-list": ["uri", "uris", "urls"],
|
|
5547
|
+
"text/vcard": ["vcard"],
|
|
5548
|
+
"text/vtt": ["vtt"],
|
|
5549
|
+
"text/wgsl": ["wgsl"],
|
|
5550
|
+
"text/xml": ["*xml"],
|
|
5551
|
+
"text/yaml": ["yaml", "yml"],
|
|
5552
|
+
"video/3gpp": ["3gp", "3gpp"],
|
|
5553
|
+
"video/3gpp2": ["3g2"],
|
|
5554
|
+
"video/h261": ["h261"],
|
|
5555
|
+
"video/h263": ["h263"],
|
|
5556
|
+
"video/h264": ["h264"],
|
|
5557
|
+
"video/iso.segment": ["m4s"],
|
|
5558
|
+
"video/jpeg": ["jpgv"],
|
|
5559
|
+
"video/jpm": ["*jpm", "*jpgm"],
|
|
5560
|
+
"video/mj2": ["mj2", "mjp2"],
|
|
5561
|
+
"video/mp2t": ["ts", "m2t", "m2ts", "mts"],
|
|
5562
|
+
"video/mp4": ["mp4", "mp4v", "mpg4"],
|
|
5563
|
+
"video/mpeg": ["mpeg", "mpg", "mpe", "m1v", "m2v"],
|
|
5564
|
+
"video/ogg": ["ogv"],
|
|
5565
|
+
"video/quicktime": ["qt", "mov"],
|
|
5566
|
+
"video/webm": ["webm"]
|
|
5567
|
+
};
|
|
5568
|
+
Object.freeze(types2);
|
|
5569
|
+
var standard_default = types2;
|
|
5570
|
+
|
|
5571
|
+
// node_modules/mime/dist/src/Mime.js
|
|
5572
|
+
var __classPrivateFieldGet = function(receiver, state, kind, f) {
|
|
5573
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
5574
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5575
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5576
|
+
};
|
|
5577
|
+
var _Mime_extensionToType;
|
|
5578
|
+
var _Mime_typeToExtension;
|
|
5579
|
+
var _Mime_typeToExtensions;
|
|
5580
|
+
var Mime = class {
|
|
5581
|
+
constructor(...args) {
|
|
5582
|
+
_Mime_extensionToType.set(this, /* @__PURE__ */ new Map());
|
|
5583
|
+
_Mime_typeToExtension.set(this, /* @__PURE__ */ new Map());
|
|
5584
|
+
_Mime_typeToExtensions.set(this, /* @__PURE__ */ new Map());
|
|
5585
|
+
for (const arg of args) {
|
|
5586
|
+
this.define(arg);
|
|
5587
|
+
}
|
|
5588
|
+
}
|
|
5589
|
+
define(typeMap, force = false) {
|
|
5590
|
+
for (let [type, extensions] of Object.entries(typeMap)) {
|
|
5591
|
+
type = type.toLowerCase();
|
|
5592
|
+
extensions = extensions.map((ext2) => ext2.toLowerCase());
|
|
5593
|
+
if (!__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").has(type)) {
|
|
5594
|
+
__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").set(type, /* @__PURE__ */ new Set());
|
|
5595
|
+
}
|
|
5596
|
+
const allExtensions = __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type);
|
|
5597
|
+
let first = true;
|
|
5598
|
+
for (let extension of extensions) {
|
|
5599
|
+
const starred = extension.startsWith("*");
|
|
5600
|
+
extension = starred ? extension.slice(1) : extension;
|
|
5601
|
+
allExtensions?.add(extension);
|
|
5602
|
+
if (first) {
|
|
5603
|
+
__classPrivateFieldGet(this, _Mime_typeToExtension, "f").set(type, extension);
|
|
5604
|
+
}
|
|
5605
|
+
first = false;
|
|
5606
|
+
if (starred)
|
|
5607
|
+
continue;
|
|
5608
|
+
const currentType = __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(extension);
|
|
5609
|
+
if (currentType && currentType != type && !force) {
|
|
5610
|
+
throw new Error(`"${type} -> ${extension}" conflicts with "${currentType} -> ${extension}". Pass \`force=true\` to override this definition.`);
|
|
5611
|
+
}
|
|
5612
|
+
__classPrivateFieldGet(this, _Mime_extensionToType, "f").set(extension, type);
|
|
5613
|
+
}
|
|
5614
|
+
}
|
|
5615
|
+
return this;
|
|
5616
|
+
}
|
|
5617
|
+
getType(path7) {
|
|
5618
|
+
if (typeof path7 !== "string")
|
|
5619
|
+
return null;
|
|
5620
|
+
const last = path7.replace(/^.*[/\\]/s, "").toLowerCase();
|
|
5621
|
+
const ext2 = last.replace(/^.*\./s, "").toLowerCase();
|
|
5622
|
+
const hasPath = last.length < path7.length;
|
|
5623
|
+
const hasDot = ext2.length < last.length - 1;
|
|
5624
|
+
if (!hasDot && hasPath)
|
|
5625
|
+
return null;
|
|
5626
|
+
return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext2) ?? null;
|
|
5627
|
+
}
|
|
5628
|
+
getExtension(type) {
|
|
5629
|
+
if (typeof type !== "string")
|
|
5630
|
+
return null;
|
|
5631
|
+
type = type?.split?.(";")[0];
|
|
5632
|
+
return (type && __classPrivateFieldGet(this, _Mime_typeToExtension, "f").get(type.trim().toLowerCase())) ?? null;
|
|
5633
|
+
}
|
|
5634
|
+
getAllExtensions(type) {
|
|
5635
|
+
if (typeof type !== "string")
|
|
5636
|
+
return null;
|
|
5637
|
+
return __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type.toLowerCase()) ?? null;
|
|
5638
|
+
}
|
|
5639
|
+
_freeze() {
|
|
5640
|
+
this.define = () => {
|
|
5641
|
+
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
|
5642
|
+
};
|
|
5643
|
+
Object.freeze(this);
|
|
5644
|
+
for (const extensions of __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").values()) {
|
|
5645
|
+
Object.freeze(extensions);
|
|
5646
|
+
}
|
|
5647
|
+
return this;
|
|
5648
|
+
}
|
|
5649
|
+
_getTestState() {
|
|
5650
|
+
return {
|
|
5651
|
+
types: __classPrivateFieldGet(this, _Mime_extensionToType, "f"),
|
|
5652
|
+
extensions: __classPrivateFieldGet(this, _Mime_typeToExtension, "f")
|
|
5653
|
+
};
|
|
5654
|
+
}
|
|
5655
|
+
};
|
|
5656
|
+
_Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
|
|
5657
|
+
var Mime_default = Mime;
|
|
5658
|
+
|
|
5659
|
+
// node_modules/mime/dist/src/index.js
|
|
5660
|
+
var src_default = new Mime_default(standard_default, other_default)._freeze();
|
|
5661
|
+
|
|
5662
|
+
// node_modules/balanced-match/dist/esm/index.js
|
|
5663
|
+
var balanced = (a, b, str) => {
|
|
5664
|
+
const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
|
|
5665
|
+
const mb = b instanceof RegExp ? maybeMatch(b, str) : b;
|
|
5666
|
+
const r = ma !== null && mb != null && range(ma, mb, str);
|
|
5667
|
+
return r && {
|
|
5668
|
+
start: r[0],
|
|
5669
|
+
end: r[1],
|
|
5670
|
+
pre: str.slice(0, r[0]),
|
|
5671
|
+
body: str.slice(r[0] + ma.length, r[1]),
|
|
5672
|
+
post: str.slice(r[1] + mb.length)
|
|
5673
|
+
};
|
|
5674
|
+
};
|
|
5675
|
+
var maybeMatch = (reg, str) => {
|
|
5676
|
+
const m = str.match(reg);
|
|
5677
|
+
return m ? m[0] : null;
|
|
5678
|
+
};
|
|
5679
|
+
var range = (a, b, str) => {
|
|
5680
|
+
let begs, beg, left, right = void 0, result2;
|
|
5681
|
+
let ai = str.indexOf(a);
|
|
5682
|
+
let bi = str.indexOf(b, ai + 1);
|
|
5683
|
+
let i = ai;
|
|
5684
|
+
if (ai >= 0 && bi > 0) {
|
|
5685
|
+
if (a === b) {
|
|
5686
|
+
return [ai, bi];
|
|
5687
|
+
}
|
|
5688
|
+
begs = [];
|
|
5689
|
+
left = str.length;
|
|
5690
|
+
while (i >= 0 && !result2) {
|
|
5691
|
+
if (i === ai) {
|
|
5692
|
+
begs.push(i);
|
|
5693
|
+
ai = str.indexOf(a, i + 1);
|
|
5694
|
+
} else if (begs.length === 1) {
|
|
5695
|
+
const r = begs.pop();
|
|
5696
|
+
if (r !== void 0)
|
|
5697
|
+
result2 = [r, bi];
|
|
5698
|
+
} else {
|
|
5699
|
+
beg = begs.pop();
|
|
5700
|
+
if (beg !== void 0 && beg < left) {
|
|
5701
|
+
left = beg;
|
|
5702
|
+
right = bi;
|
|
5703
|
+
}
|
|
5704
|
+
bi = str.indexOf(b, i + 1);
|
|
5705
|
+
}
|
|
5706
|
+
i = ai < bi && ai >= 0 ? ai : bi;
|
|
5707
|
+
}
|
|
5708
|
+
if (begs.length && right !== void 0) {
|
|
5709
|
+
result2 = [left, right];
|
|
5710
|
+
}
|
|
5711
|
+
}
|
|
5712
|
+
return result2;
|
|
5713
|
+
};
|
|
5714
|
+
|
|
5715
|
+
// node_modules/brace-expansion/dist/esm/index.js
|
|
5716
|
+
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
5717
|
+
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
5718
|
+
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
5719
|
+
var escComma = "\0COMMA" + Math.random() + "\0";
|
|
5720
|
+
var escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
5721
|
+
var escSlashPattern = new RegExp(escSlash, "g");
|
|
5722
|
+
var escOpenPattern = new RegExp(escOpen, "g");
|
|
5723
|
+
var escClosePattern = new RegExp(escClose, "g");
|
|
5724
|
+
var escCommaPattern = new RegExp(escComma, "g");
|
|
5725
|
+
var escPeriodPattern = new RegExp(escPeriod, "g");
|
|
5726
|
+
var slashPattern = /\\\\/g;
|
|
5727
|
+
var openPattern = /\\{/g;
|
|
5728
|
+
var closePattern = /\\}/g;
|
|
5729
|
+
var commaPattern = /\\,/g;
|
|
5730
|
+
var periodPattern = /\\\./g;
|
|
5731
|
+
var EXPANSION_MAX = 1e5;
|
|
5732
|
+
function numeric(str) {
|
|
5733
|
+
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
|
5734
|
+
}
|
|
5735
|
+
function escapeBraces(str) {
|
|
5736
|
+
return str.replace(slashPattern, escSlash).replace(openPattern, escOpen).replace(closePattern, escClose).replace(commaPattern, escComma).replace(periodPattern, escPeriod);
|
|
5737
|
+
}
|
|
5738
|
+
function unescapeBraces(str) {
|
|
5739
|
+
return str.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
|
|
5740
|
+
}
|
|
5741
|
+
function parseCommaParts(str) {
|
|
5742
|
+
if (!str) {
|
|
5743
|
+
return [""];
|
|
5744
|
+
}
|
|
5745
|
+
const parts = [];
|
|
5746
|
+
const m = balanced("{", "}", str);
|
|
5747
|
+
if (!m) {
|
|
5748
|
+
return str.split(",");
|
|
5749
|
+
}
|
|
5750
|
+
const { pre, body, post } = m;
|
|
5751
|
+
const p = pre.split(",");
|
|
5752
|
+
p[p.length - 1] += "{" + body + "}";
|
|
5753
|
+
const postParts = parseCommaParts(post);
|
|
5754
|
+
if (post.length) {
|
|
5755
|
+
;
|
|
5756
|
+
p[p.length - 1] += postParts.shift();
|
|
5757
|
+
p.push.apply(p, postParts);
|
|
5758
|
+
}
|
|
5759
|
+
parts.push.apply(parts, p);
|
|
5760
|
+
return parts;
|
|
5761
|
+
}
|
|
5762
|
+
function expand(str, options = {}) {
|
|
5763
|
+
if (!str) {
|
|
5764
|
+
return [];
|
|
5765
|
+
}
|
|
5766
|
+
const { max = EXPANSION_MAX } = options;
|
|
5767
|
+
if (str.slice(0, 2) === "{}") {
|
|
5768
|
+
str = "\\{\\}" + str.slice(2);
|
|
5769
|
+
}
|
|
5770
|
+
return expand_(escapeBraces(str), max, true).map(unescapeBraces);
|
|
5771
|
+
}
|
|
5772
|
+
function embrace(str) {
|
|
5773
|
+
return "{" + str + "}";
|
|
5774
|
+
}
|
|
5775
|
+
function isPadded(el) {
|
|
5776
|
+
return /^-?0\d/.test(el);
|
|
5777
|
+
}
|
|
5778
|
+
function lte(i, y) {
|
|
5779
|
+
return i <= y;
|
|
5780
|
+
}
|
|
5781
|
+
function gte(i, y) {
|
|
5782
|
+
return i >= y;
|
|
5783
|
+
}
|
|
5784
|
+
function expand_(str, max, isTop) {
|
|
5785
|
+
const expansions = [];
|
|
5786
|
+
for (; ; ) {
|
|
5787
|
+
const m = balanced("{", "}", str);
|
|
5788
|
+
if (!m)
|
|
5789
|
+
return [str];
|
|
5790
|
+
const pre = m.pre;
|
|
5791
|
+
if (/\$$/.test(m.pre)) {
|
|
5792
|
+
const post2 = m.post.length ? expand_(m.post, max, false) : [""];
|
|
5793
|
+
for (let k = 0; k < post2.length && k < max; k++) {
|
|
5794
|
+
const expansion = pre + "{" + m.body + "}" + post2[k];
|
|
5795
|
+
expansions.push(expansion);
|
|
5796
|
+
}
|
|
5797
|
+
return expansions;
|
|
5798
|
+
}
|
|
5799
|
+
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
5800
|
+
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
5801
|
+
const isSequence = isNumericSequence || isAlphaSequence;
|
|
5802
|
+
const isOptions = m.body.indexOf(",") >= 0;
|
|
5803
|
+
if (!isSequence && !isOptions) {
|
|
5804
|
+
if (m.post.match(/,(?!,).*\}/)) {
|
|
5805
|
+
str = m.pre + "{" + m.body + escClose + m.post;
|
|
5806
|
+
isTop = true;
|
|
5807
|
+
continue;
|
|
5808
|
+
}
|
|
5809
|
+
return [str];
|
|
5810
|
+
}
|
|
5811
|
+
const post = m.post.length ? expand_(m.post, max, false) : [""];
|
|
5812
|
+
let n;
|
|
5813
|
+
if (isSequence) {
|
|
5814
|
+
n = m.body.split(/\.\./);
|
|
5815
|
+
} else {
|
|
5816
|
+
n = parseCommaParts(m.body);
|
|
5817
|
+
if (n.length === 1 && n[0] !== void 0) {
|
|
5818
|
+
n = expand_(n[0], max, false).map(embrace);
|
|
5819
|
+
if (n.length === 1) {
|
|
5820
|
+
return post.map((p) => m.pre + n[0] + p);
|
|
5821
|
+
}
|
|
5822
|
+
}
|
|
5823
|
+
}
|
|
5824
|
+
let N;
|
|
5825
|
+
if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
|
|
5826
|
+
const x = numeric(n[0]);
|
|
5827
|
+
const y = numeric(n[1]);
|
|
5828
|
+
const width = Math.max(n[0].length, n[1].length);
|
|
5829
|
+
let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
|
|
5830
|
+
let test = lte;
|
|
5831
|
+
const reverse = y < x;
|
|
5832
|
+
if (reverse) {
|
|
5833
|
+
incr *= -1;
|
|
5834
|
+
test = gte;
|
|
5835
|
+
}
|
|
5836
|
+
const pad = n.some(isPadded);
|
|
5837
|
+
N = [];
|
|
5838
|
+
for (let i = x; test(i, y) && N.length < max; i += incr) {
|
|
5839
|
+
let c;
|
|
5840
|
+
if (isAlphaSequence) {
|
|
5841
|
+
c = String.fromCharCode(i);
|
|
5842
|
+
if (c === "\\") {
|
|
5843
|
+
c = "";
|
|
5844
|
+
}
|
|
5845
|
+
} else {
|
|
5846
|
+
c = String(i);
|
|
5847
|
+
if (pad) {
|
|
5848
|
+
const need = width - c.length;
|
|
5849
|
+
if (need > 0) {
|
|
5850
|
+
const z = new Array(need + 1).join("0");
|
|
5851
|
+
if (i < 0) {
|
|
5852
|
+
c = "-" + z + c.slice(1);
|
|
5853
|
+
} else {
|
|
5854
|
+
c = z + c;
|
|
5855
|
+
}
|
|
5856
|
+
}
|
|
5857
|
+
}
|
|
5858
|
+
}
|
|
5859
|
+
N.push(c);
|
|
5860
|
+
}
|
|
5861
|
+
} else {
|
|
5862
|
+
N = [];
|
|
5863
|
+
for (let j = 0; j < n.length; j++) {
|
|
5864
|
+
N.push.apply(N, expand_(n[j], max, false));
|
|
5865
|
+
}
|
|
5866
|
+
}
|
|
5867
|
+
for (let j = 0; j < N.length; j++) {
|
|
5868
|
+
for (let k = 0; k < post.length && expansions.length < max; k++) {
|
|
5869
|
+
const expansion = pre + N[j] + post[k];
|
|
5870
|
+
if (!isTop || isSequence || expansion) {
|
|
5871
|
+
expansions.push(expansion);
|
|
5872
|
+
}
|
|
5873
|
+
}
|
|
5874
|
+
}
|
|
5875
|
+
return expansions;
|
|
5876
|
+
}
|
|
5877
|
+
}
|
|
5878
|
+
|
|
5879
|
+
// node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
5880
|
+
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
5881
|
+
var assertValidPattern = (pattern) => {
|
|
5882
|
+
if (typeof pattern !== "string") {
|
|
5883
|
+
throw new TypeError("invalid pattern");
|
|
5884
|
+
}
|
|
5885
|
+
if (pattern.length > MAX_PATTERN_LENGTH) {
|
|
5886
|
+
throw new TypeError("pattern is too long");
|
|
5887
|
+
}
|
|
5888
|
+
};
|
|
5889
|
+
|
|
5890
|
+
// node_modules/minimatch/dist/esm/brace-expressions.js
|
|
5891
|
+
var posixClasses = {
|
|
5892
|
+
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
5893
|
+
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
5894
|
+
"[:ascii:]": ["\\x00-\\x7f", false],
|
|
5895
|
+
"[:blank:]": ["\\p{Zs}\\t", true],
|
|
5896
|
+
"[:cntrl:]": ["\\p{Cc}", true],
|
|
5897
|
+
"[:digit:]": ["\\p{Nd}", true],
|
|
5898
|
+
"[:graph:]": ["\\p{Z}\\p{C}", true, true],
|
|
5899
|
+
"[:lower:]": ["\\p{Ll}", true],
|
|
5900
|
+
"[:print:]": ["\\p{C}", true],
|
|
5901
|
+
"[:punct:]": ["\\p{P}", true],
|
|
5902
|
+
"[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
|
|
5903
|
+
"[:upper:]": ["\\p{Lu}", true],
|
|
5904
|
+
"[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
|
|
5905
|
+
"[:xdigit:]": ["A-Fa-f0-9", false]
|
|
5906
|
+
};
|
|
5907
|
+
var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
|
|
5908
|
+
var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
5909
|
+
var rangesToString = (ranges) => ranges.join("");
|
|
5910
|
+
var parseClass = (glob, position) => {
|
|
5911
|
+
const pos = position;
|
|
5912
|
+
if (glob.charAt(pos) !== "[") {
|
|
5913
|
+
throw new Error("not in a brace expression");
|
|
5914
|
+
}
|
|
5915
|
+
const ranges = [];
|
|
5916
|
+
const negs = [];
|
|
5917
|
+
let i = pos + 1;
|
|
5918
|
+
let sawStart = false;
|
|
5919
|
+
let uflag = false;
|
|
5920
|
+
let escaping = false;
|
|
5921
|
+
let negate = false;
|
|
5922
|
+
let endPos = pos;
|
|
5923
|
+
let rangeStart = "";
|
|
5924
|
+
WHILE: while (i < glob.length) {
|
|
5925
|
+
const c = glob.charAt(i);
|
|
5926
|
+
if ((c === "!" || c === "^") && i === pos + 1) {
|
|
5927
|
+
negate = true;
|
|
5928
|
+
i++;
|
|
5929
|
+
continue;
|
|
5930
|
+
}
|
|
5931
|
+
if (c === "]" && sawStart && !escaping) {
|
|
5932
|
+
endPos = i + 1;
|
|
5933
|
+
break;
|
|
5934
|
+
}
|
|
5935
|
+
sawStart = true;
|
|
5936
|
+
if (c === "\\") {
|
|
5937
|
+
if (!escaping) {
|
|
5938
|
+
escaping = true;
|
|
5939
|
+
i++;
|
|
5940
|
+
continue;
|
|
5941
|
+
}
|
|
5942
|
+
}
|
|
5943
|
+
if (c === "[" && !escaping) {
|
|
5944
|
+
for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
|
|
5945
|
+
if (glob.startsWith(cls, i)) {
|
|
5946
|
+
if (rangeStart) {
|
|
5947
|
+
return ["$.", false, glob.length - pos, true];
|
|
5948
|
+
}
|
|
5949
|
+
i += cls.length;
|
|
5950
|
+
if (neg)
|
|
5951
|
+
negs.push(unip);
|
|
5952
|
+
else
|
|
5953
|
+
ranges.push(unip);
|
|
5954
|
+
uflag = uflag || u;
|
|
5955
|
+
continue WHILE;
|
|
5956
|
+
}
|
|
5957
|
+
}
|
|
5958
|
+
}
|
|
5959
|
+
escaping = false;
|
|
5960
|
+
if (rangeStart) {
|
|
5961
|
+
if (c > rangeStart) {
|
|
5962
|
+
ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
|
|
5963
|
+
} else if (c === rangeStart) {
|
|
5964
|
+
ranges.push(braceEscape(c));
|
|
5965
|
+
}
|
|
5966
|
+
rangeStart = "";
|
|
5967
|
+
i++;
|
|
5968
|
+
continue;
|
|
5969
|
+
}
|
|
5970
|
+
if (glob.startsWith("-]", i + 1)) {
|
|
5971
|
+
ranges.push(braceEscape(c + "-"));
|
|
5972
|
+
i += 2;
|
|
5973
|
+
continue;
|
|
5974
|
+
}
|
|
5975
|
+
if (glob.startsWith("-", i + 1)) {
|
|
5976
|
+
rangeStart = c;
|
|
5977
|
+
i += 2;
|
|
5978
|
+
continue;
|
|
5979
|
+
}
|
|
5980
|
+
ranges.push(braceEscape(c));
|
|
5981
|
+
i++;
|
|
5982
|
+
}
|
|
5983
|
+
if (endPos < i) {
|
|
5984
|
+
return ["", false, 0, false];
|
|
5985
|
+
}
|
|
5986
|
+
if (!ranges.length && !negs.length) {
|
|
5987
|
+
return ["$.", false, glob.length - pos, true];
|
|
5988
|
+
}
|
|
5989
|
+
if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
|
|
5990
|
+
const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
|
|
5991
|
+
return [regexpEscape(r), false, endPos - pos, false];
|
|
5992
|
+
}
|
|
5993
|
+
const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
|
|
5994
|
+
const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
|
|
5995
|
+
const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
|
|
5996
|
+
return [comb, uflag, endPos - pos, true];
|
|
5997
|
+
};
|
|
5998
|
+
|
|
5999
|
+
// node_modules/minimatch/dist/esm/unescape.js
|
|
6000
|
+
var unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
|
|
6001
|
+
if (magicalBraces) {
|
|
6002
|
+
return windowsPathsNoEscape ? s.replace(/\[([^/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1");
|
|
6003
|
+
}
|
|
6004
|
+
return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
|
|
6005
|
+
};
|
|
6006
|
+
|
|
6007
|
+
// node_modules/minimatch/dist/esm/ast.js
|
|
6008
|
+
var _a;
|
|
6009
|
+
var types3 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
6010
|
+
var isExtglobType = (c) => types3.has(c);
|
|
6011
|
+
var isExtglobAST = (c) => isExtglobType(c.type);
|
|
6012
|
+
var adoptionMap = /* @__PURE__ */ new Map([
|
|
6013
|
+
["!", ["@"]],
|
|
6014
|
+
["?", ["?", "@"]],
|
|
6015
|
+
["@", ["@"]],
|
|
6016
|
+
["*", ["*", "+", "?", "@"]],
|
|
6017
|
+
["+", ["+", "@"]]
|
|
6018
|
+
]);
|
|
6019
|
+
var adoptionWithSpaceMap = /* @__PURE__ */ new Map([
|
|
6020
|
+
["!", ["?"]],
|
|
6021
|
+
["@", ["?"]],
|
|
6022
|
+
["+", ["?", "*"]]
|
|
6023
|
+
]);
|
|
6024
|
+
var adoptionAnyMap = /* @__PURE__ */ new Map([
|
|
6025
|
+
["!", ["?", "@"]],
|
|
6026
|
+
["?", ["?", "@"]],
|
|
6027
|
+
["@", ["?", "@"]],
|
|
6028
|
+
["*", ["*", "+", "?", "@"]],
|
|
6029
|
+
["+", ["+", "@", "?", "*"]]
|
|
6030
|
+
]);
|
|
6031
|
+
var usurpMap = /* @__PURE__ */ new Map([
|
|
6032
|
+
["!", /* @__PURE__ */ new Map([["!", "@"]])],
|
|
6033
|
+
[
|
|
6034
|
+
"?",
|
|
6035
|
+
/* @__PURE__ */ new Map([
|
|
6036
|
+
["*", "*"],
|
|
6037
|
+
["+", "*"]
|
|
6038
|
+
])
|
|
6039
|
+
],
|
|
6040
|
+
[
|
|
6041
|
+
"@",
|
|
6042
|
+
/* @__PURE__ */ new Map([
|
|
6043
|
+
["!", "!"],
|
|
6044
|
+
["?", "?"],
|
|
6045
|
+
["@", "@"],
|
|
6046
|
+
["*", "*"],
|
|
6047
|
+
["+", "+"]
|
|
6048
|
+
])
|
|
6049
|
+
],
|
|
6050
|
+
[
|
|
6051
|
+
"+",
|
|
6052
|
+
/* @__PURE__ */ new Map([
|
|
6053
|
+
["?", "*"],
|
|
6054
|
+
["*", "*"]
|
|
6055
|
+
])
|
|
6056
|
+
]
|
|
6057
|
+
]);
|
|
6058
|
+
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
6059
|
+
var startNoDot = "(?!\\.)";
|
|
6060
|
+
var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
|
|
6061
|
+
var justDots = /* @__PURE__ */ new Set(["..", "."]);
|
|
6062
|
+
var reSpecials = new Set("().*{}+?[]^$\\!");
|
|
6063
|
+
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
6064
|
+
var qmark = "[^/]";
|
|
6065
|
+
var star = qmark + "*?";
|
|
6066
|
+
var starNoEmpty = qmark + "+?";
|
|
6067
|
+
var ID = 0;
|
|
6068
|
+
var AST = class {
|
|
6069
|
+
type;
|
|
6070
|
+
#root;
|
|
6071
|
+
#hasMagic;
|
|
6072
|
+
#uflag = false;
|
|
6073
|
+
#parts = [];
|
|
6074
|
+
#parent;
|
|
6075
|
+
#parentIndex;
|
|
6076
|
+
#negs;
|
|
6077
|
+
#filledNegs = false;
|
|
6078
|
+
#options;
|
|
6079
|
+
#toString;
|
|
6080
|
+
// set to true if it's an extglob with no children
|
|
6081
|
+
// (which really means one child of '')
|
|
6082
|
+
#emptyExt = false;
|
|
6083
|
+
id = ++ID;
|
|
6084
|
+
get depth() {
|
|
6085
|
+
return (this.#parent?.depth ?? -1) + 1;
|
|
6086
|
+
}
|
|
6087
|
+
[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")]() {
|
|
6088
|
+
return {
|
|
6089
|
+
"@@type": "AST",
|
|
6090
|
+
id: this.id,
|
|
6091
|
+
type: this.type,
|
|
6092
|
+
root: this.#root.id,
|
|
6093
|
+
parent: this.#parent?.id,
|
|
6094
|
+
depth: this.depth,
|
|
6095
|
+
partsLength: this.#parts.length,
|
|
6096
|
+
parts: this.#parts
|
|
6097
|
+
};
|
|
6098
|
+
}
|
|
6099
|
+
constructor(type, parent, options = {}) {
|
|
6100
|
+
this.type = type;
|
|
6101
|
+
if (type)
|
|
6102
|
+
this.#hasMagic = true;
|
|
6103
|
+
this.#parent = parent;
|
|
6104
|
+
this.#root = this.#parent ? this.#parent.#root : this;
|
|
6105
|
+
this.#options = this.#root === this ? options : this.#root.#options;
|
|
6106
|
+
this.#negs = this.#root === this ? [] : this.#root.#negs;
|
|
6107
|
+
if (type === "!" && !this.#root.#filledNegs)
|
|
6108
|
+
this.#negs.push(this);
|
|
6109
|
+
this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0;
|
|
6110
|
+
}
|
|
6111
|
+
get hasMagic() {
|
|
6112
|
+
if (this.#hasMagic !== void 0)
|
|
6113
|
+
return this.#hasMagic;
|
|
6114
|
+
for (const p of this.#parts) {
|
|
6115
|
+
if (typeof p === "string")
|
|
6116
|
+
continue;
|
|
6117
|
+
if (p.type || p.hasMagic)
|
|
6118
|
+
return this.#hasMagic = true;
|
|
6119
|
+
}
|
|
6120
|
+
return this.#hasMagic;
|
|
6121
|
+
}
|
|
6122
|
+
// reconstructs the pattern
|
|
6123
|
+
toString() {
|
|
6124
|
+
return this.#toString !== void 0 ? this.#toString : !this.type ? this.#toString = this.#parts.map((p) => String(p)).join("") : this.#toString = this.type + "(" + this.#parts.map((p) => String(p)).join("|") + ")";
|
|
6125
|
+
}
|
|
6126
|
+
#fillNegs() {
|
|
6127
|
+
if (this !== this.#root)
|
|
6128
|
+
throw new Error("should only call on root");
|
|
6129
|
+
if (this.#filledNegs)
|
|
6130
|
+
return this;
|
|
6131
|
+
this.toString();
|
|
6132
|
+
this.#filledNegs = true;
|
|
6133
|
+
let n;
|
|
6134
|
+
while (n = this.#negs.pop()) {
|
|
6135
|
+
if (n.type !== "!")
|
|
6136
|
+
continue;
|
|
6137
|
+
let p = n;
|
|
6138
|
+
let pp = p.#parent;
|
|
6139
|
+
while (pp) {
|
|
6140
|
+
for (let i = p.#parentIndex + 1; !pp.type && i < pp.#parts.length; i++) {
|
|
6141
|
+
for (const part of n.#parts) {
|
|
6142
|
+
if (typeof part === "string") {
|
|
6143
|
+
throw new Error("string part in extglob AST??");
|
|
6144
|
+
}
|
|
6145
|
+
part.copyIn(pp.#parts[i]);
|
|
6146
|
+
}
|
|
6147
|
+
}
|
|
6148
|
+
p = pp;
|
|
6149
|
+
pp = p.#parent;
|
|
6150
|
+
}
|
|
6151
|
+
}
|
|
6152
|
+
return this;
|
|
6153
|
+
}
|
|
6154
|
+
push(...parts) {
|
|
6155
|
+
for (const p of parts) {
|
|
6156
|
+
if (p === "")
|
|
6157
|
+
continue;
|
|
6158
|
+
if (typeof p !== "string" && !(p instanceof _a && p.#parent === this)) {
|
|
6159
|
+
throw new Error("invalid part: " + p);
|
|
6160
|
+
}
|
|
6161
|
+
this.#parts.push(p);
|
|
6162
|
+
}
|
|
6163
|
+
}
|
|
6164
|
+
toJSON() {
|
|
6165
|
+
const ret = this.type === null ? this.#parts.slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...this.#parts.map((p) => p.toJSON())];
|
|
6166
|
+
if (this.isStart() && !this.type)
|
|
6167
|
+
ret.unshift([]);
|
|
6168
|
+
if (this.isEnd() && (this === this.#root || this.#root.#filledNegs && this.#parent?.type === "!")) {
|
|
6169
|
+
ret.push({});
|
|
6170
|
+
}
|
|
6171
|
+
return ret;
|
|
6172
|
+
}
|
|
6173
|
+
isStart() {
|
|
6174
|
+
if (this.#root === this)
|
|
6175
|
+
return true;
|
|
6176
|
+
if (!this.#parent?.isStart())
|
|
6177
|
+
return false;
|
|
6178
|
+
if (this.#parentIndex === 0)
|
|
6179
|
+
return true;
|
|
6180
|
+
const p = this.#parent;
|
|
6181
|
+
for (let i = 0; i < this.#parentIndex; i++) {
|
|
6182
|
+
const pp = p.#parts[i];
|
|
6183
|
+
if (!(pp instanceof _a && pp.type === "!")) {
|
|
6184
|
+
return false;
|
|
6185
|
+
}
|
|
6186
|
+
}
|
|
6187
|
+
return true;
|
|
6188
|
+
}
|
|
6189
|
+
isEnd() {
|
|
6190
|
+
if (this.#root === this)
|
|
6191
|
+
return true;
|
|
6192
|
+
if (this.#parent?.type === "!")
|
|
6193
|
+
return true;
|
|
6194
|
+
if (!this.#parent?.isEnd())
|
|
6195
|
+
return false;
|
|
6196
|
+
if (!this.type)
|
|
6197
|
+
return this.#parent?.isEnd();
|
|
6198
|
+
const pl = this.#parent ? this.#parent.#parts.length : 0;
|
|
6199
|
+
return this.#parentIndex === pl - 1;
|
|
6200
|
+
}
|
|
6201
|
+
copyIn(part) {
|
|
6202
|
+
if (typeof part === "string")
|
|
6203
|
+
this.push(part);
|
|
6204
|
+
else
|
|
6205
|
+
this.push(part.clone(this));
|
|
6206
|
+
}
|
|
6207
|
+
clone(parent) {
|
|
6208
|
+
const c = new _a(this.type, parent);
|
|
6209
|
+
for (const p of this.#parts) {
|
|
6210
|
+
c.copyIn(p);
|
|
6211
|
+
}
|
|
6212
|
+
return c;
|
|
6213
|
+
}
|
|
6214
|
+
static #parseAST(str, ast, pos, opt, extDepth) {
|
|
6215
|
+
const maxDepth = opt.maxExtglobRecursion ?? 2;
|
|
6216
|
+
let escaping = false;
|
|
6217
|
+
let inBrace = false;
|
|
6218
|
+
let braceStart = -1;
|
|
6219
|
+
let braceNeg = false;
|
|
6220
|
+
if (ast.type === null) {
|
|
6221
|
+
let i2 = pos;
|
|
6222
|
+
let acc2 = "";
|
|
6223
|
+
while (i2 < str.length) {
|
|
6224
|
+
const c = str.charAt(i2++);
|
|
6225
|
+
if (escaping || c === "\\") {
|
|
6226
|
+
escaping = !escaping;
|
|
6227
|
+
acc2 += c;
|
|
6228
|
+
continue;
|
|
6229
|
+
}
|
|
6230
|
+
if (inBrace) {
|
|
6231
|
+
if (i2 === braceStart + 1) {
|
|
6232
|
+
if (c === "^" || c === "!") {
|
|
6233
|
+
braceNeg = true;
|
|
6234
|
+
}
|
|
6235
|
+
} else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) {
|
|
6236
|
+
inBrace = false;
|
|
6237
|
+
}
|
|
6238
|
+
acc2 += c;
|
|
6239
|
+
continue;
|
|
6240
|
+
} else if (c === "[") {
|
|
6241
|
+
inBrace = true;
|
|
6242
|
+
braceStart = i2;
|
|
6243
|
+
braceNeg = false;
|
|
6244
|
+
acc2 += c;
|
|
6245
|
+
continue;
|
|
6246
|
+
}
|
|
6247
|
+
const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i2) === "(" && extDepth <= maxDepth;
|
|
6248
|
+
if (doRecurse) {
|
|
6249
|
+
ast.push(acc2);
|
|
6250
|
+
acc2 = "";
|
|
6251
|
+
const ext2 = new _a(c, ast);
|
|
6252
|
+
i2 = _a.#parseAST(str, ext2, i2, opt, extDepth + 1);
|
|
6253
|
+
ast.push(ext2);
|
|
6254
|
+
continue;
|
|
6255
|
+
}
|
|
6256
|
+
acc2 += c;
|
|
6257
|
+
}
|
|
6258
|
+
ast.push(acc2);
|
|
6259
|
+
return i2;
|
|
6260
|
+
}
|
|
6261
|
+
let i = pos + 1;
|
|
6262
|
+
let part = new _a(null, ast);
|
|
6263
|
+
const parts = [];
|
|
6264
|
+
let acc = "";
|
|
6265
|
+
while (i < str.length) {
|
|
6266
|
+
const c = str.charAt(i++);
|
|
6267
|
+
if (escaping || c === "\\") {
|
|
6268
|
+
escaping = !escaping;
|
|
6269
|
+
acc += c;
|
|
6270
|
+
continue;
|
|
6271
|
+
}
|
|
6272
|
+
if (inBrace) {
|
|
6273
|
+
if (i === braceStart + 1) {
|
|
6274
|
+
if (c === "^" || c === "!") {
|
|
6275
|
+
braceNeg = true;
|
|
6276
|
+
}
|
|
6277
|
+
} else if (c === "]" && !(i === braceStart + 2 && braceNeg)) {
|
|
6278
|
+
inBrace = false;
|
|
6279
|
+
}
|
|
6280
|
+
acc += c;
|
|
6281
|
+
continue;
|
|
6282
|
+
} else if (c === "[") {
|
|
6283
|
+
inBrace = true;
|
|
6284
|
+
braceStart = i;
|
|
6285
|
+
braceNeg = false;
|
|
6286
|
+
acc += c;
|
|
6287
|
+
continue;
|
|
6288
|
+
}
|
|
6289
|
+
const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
|
|
6290
|
+
(extDepth <= maxDepth || ast && ast.#canAdoptType(c));
|
|
6291
|
+
if (doRecurse) {
|
|
6292
|
+
const depthAdd = ast && ast.#canAdoptType(c) ? 0 : 1;
|
|
6293
|
+
part.push(acc);
|
|
6294
|
+
acc = "";
|
|
6295
|
+
const ext2 = new _a(c, part);
|
|
6296
|
+
part.push(ext2);
|
|
6297
|
+
i = _a.#parseAST(str, ext2, i, opt, extDepth + depthAdd);
|
|
6298
|
+
continue;
|
|
6299
|
+
}
|
|
6300
|
+
if (c === "|") {
|
|
6301
|
+
part.push(acc);
|
|
6302
|
+
acc = "";
|
|
6303
|
+
parts.push(part);
|
|
6304
|
+
part = new _a(null, ast);
|
|
6305
|
+
continue;
|
|
6306
|
+
}
|
|
6307
|
+
if (c === ")") {
|
|
6308
|
+
if (acc === "" && ast.#parts.length === 0) {
|
|
6309
|
+
ast.#emptyExt = true;
|
|
6310
|
+
}
|
|
6311
|
+
part.push(acc);
|
|
6312
|
+
acc = "";
|
|
6313
|
+
ast.push(...parts, part);
|
|
6314
|
+
return i;
|
|
6315
|
+
}
|
|
6316
|
+
acc += c;
|
|
6317
|
+
}
|
|
6318
|
+
ast.type = null;
|
|
6319
|
+
ast.#hasMagic = void 0;
|
|
6320
|
+
ast.#parts = [str.substring(pos - 1)];
|
|
6321
|
+
return i;
|
|
6322
|
+
}
|
|
6323
|
+
#canAdoptWithSpace(child) {
|
|
6324
|
+
return this.#canAdopt(child, adoptionWithSpaceMap);
|
|
6325
|
+
}
|
|
6326
|
+
#canAdopt(child, map = adoptionMap) {
|
|
6327
|
+
if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null) {
|
|
6328
|
+
return false;
|
|
6329
|
+
}
|
|
6330
|
+
const gc = child.#parts[0];
|
|
6331
|
+
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
6332
|
+
return false;
|
|
6333
|
+
}
|
|
6334
|
+
return this.#canAdoptType(gc.type, map);
|
|
6335
|
+
}
|
|
6336
|
+
#canAdoptType(c, map = adoptionAnyMap) {
|
|
6337
|
+
return !!map.get(this.type)?.includes(c);
|
|
6338
|
+
}
|
|
6339
|
+
#adoptWithSpace(child, index) {
|
|
6340
|
+
const gc = child.#parts[0];
|
|
6341
|
+
const blank = new _a(null, gc, this.options);
|
|
6342
|
+
blank.#parts.push("");
|
|
6343
|
+
gc.push(blank);
|
|
6344
|
+
this.#adopt(child, index);
|
|
6345
|
+
}
|
|
6346
|
+
#adopt(child, index) {
|
|
6347
|
+
const gc = child.#parts[0];
|
|
6348
|
+
this.#parts.splice(index, 1, ...gc.#parts);
|
|
6349
|
+
for (const p of gc.#parts) {
|
|
6350
|
+
if (typeof p === "object")
|
|
6351
|
+
p.#parent = this;
|
|
6352
|
+
}
|
|
6353
|
+
this.#toString = void 0;
|
|
6354
|
+
}
|
|
6355
|
+
#canUsurpType(c) {
|
|
6356
|
+
const m = usurpMap.get(this.type);
|
|
6357
|
+
return !!m?.has(c);
|
|
6358
|
+
}
|
|
6359
|
+
#canUsurp(child) {
|
|
6360
|
+
if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null || this.#parts.length !== 1) {
|
|
6361
|
+
return false;
|
|
6362
|
+
}
|
|
6363
|
+
const gc = child.#parts[0];
|
|
6364
|
+
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
6365
|
+
return false;
|
|
6366
|
+
}
|
|
6367
|
+
return this.#canUsurpType(gc.type);
|
|
6368
|
+
}
|
|
6369
|
+
#usurp(child) {
|
|
6370
|
+
const m = usurpMap.get(this.type);
|
|
6371
|
+
const gc = child.#parts[0];
|
|
6372
|
+
const nt = m?.get(gc.type);
|
|
6373
|
+
if (!nt)
|
|
6374
|
+
return false;
|
|
6375
|
+
this.#parts = gc.#parts;
|
|
6376
|
+
for (const p of this.#parts) {
|
|
6377
|
+
if (typeof p === "object") {
|
|
6378
|
+
p.#parent = this;
|
|
6379
|
+
}
|
|
6380
|
+
}
|
|
6381
|
+
this.type = nt;
|
|
6382
|
+
this.#toString = void 0;
|
|
6383
|
+
this.#emptyExt = false;
|
|
6384
|
+
}
|
|
6385
|
+
static fromGlob(pattern, options = {}) {
|
|
6386
|
+
const ast = new _a(null, void 0, options);
|
|
6387
|
+
_a.#parseAST(pattern, ast, 0, options, 0);
|
|
6388
|
+
return ast;
|
|
6389
|
+
}
|
|
6390
|
+
// returns the regular expression if there's magic, or the unescaped
|
|
6391
|
+
// string if not.
|
|
6392
|
+
toMMPattern() {
|
|
6393
|
+
if (this !== this.#root)
|
|
6394
|
+
return this.#root.toMMPattern();
|
|
6395
|
+
const glob = this.toString();
|
|
6396
|
+
const [re2, body, hasMagic, uflag] = this.toRegExpSource();
|
|
6397
|
+
const anyMagic = hasMagic || this.#hasMagic || this.#options.nocase && !this.#options.nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase();
|
|
6398
|
+
if (!anyMagic) {
|
|
6399
|
+
return body;
|
|
6400
|
+
}
|
|
6401
|
+
const flags = (this.#options.nocase ? "i" : "") + (uflag ? "u" : "");
|
|
6402
|
+
return Object.assign(new RegExp(`^${re2}$`, flags), {
|
|
6403
|
+
_src: re2,
|
|
6404
|
+
_glob: glob
|
|
6405
|
+
});
|
|
6406
|
+
}
|
|
6407
|
+
get options() {
|
|
6408
|
+
return this.#options;
|
|
6409
|
+
}
|
|
6410
|
+
// returns the string match, the regexp source, whether there's magic
|
|
6411
|
+
// in the regexp (so a regular expression is required) and whether or
|
|
6412
|
+
// not the uflag is needed for the regular expression (for posix classes)
|
|
6413
|
+
// TODO: instead of injecting the start/end at this point, just return
|
|
6414
|
+
// the BODY of the regexp, along with the start/end portions suitable
|
|
6415
|
+
// for binding the start/end in either a joined full-path makeRe context
|
|
6416
|
+
// (where we bind to (^|/), or a standalone matchPart context (where
|
|
6417
|
+
// we bind to ^, and not /). Otherwise slashes get duped!
|
|
6418
|
+
//
|
|
6419
|
+
// In part-matching mode, the start is:
|
|
6420
|
+
// - if not isStart: nothing
|
|
6421
|
+
// - if traversal possible, but not allowed: ^(?!\.\.?$)
|
|
6422
|
+
// - if dots allowed or not possible: ^
|
|
6423
|
+
// - if dots possible and not allowed: ^(?!\.)
|
|
6424
|
+
// end is:
|
|
6425
|
+
// - if not isEnd(): nothing
|
|
6426
|
+
// - else: $
|
|
6427
|
+
//
|
|
6428
|
+
// In full-path matching mode, we put the slash at the START of the
|
|
6429
|
+
// pattern, so start is:
|
|
6430
|
+
// - if first pattern: same as part-matching mode
|
|
6431
|
+
// - if not isStart(): nothing
|
|
6432
|
+
// - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
|
|
6433
|
+
// - if dots allowed or not possible: /
|
|
6434
|
+
// - if dots possible and not allowed: /(?!\.)
|
|
6435
|
+
// end is:
|
|
6436
|
+
// - if last pattern, same as part-matching mode
|
|
6437
|
+
// - else nothing
|
|
6438
|
+
//
|
|
6439
|
+
// Always put the (?:$|/) on negated tails, though, because that has to be
|
|
6440
|
+
// there to bind the end of the negated pattern portion, and it's easier to
|
|
6441
|
+
// just stick it in now rather than try to inject it later in the middle of
|
|
6442
|
+
// the pattern.
|
|
6443
|
+
//
|
|
6444
|
+
// We can just always return the same end, and leave it up to the caller
|
|
6445
|
+
// to know whether it's going to be used joined or in parts.
|
|
6446
|
+
// And, if the start is adjusted slightly, can do the same there:
|
|
6447
|
+
// - if not isStart: nothing
|
|
6448
|
+
// - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
|
|
6449
|
+
// - if dots allowed or not possible: (?:/|^)
|
|
6450
|
+
// - if dots possible and not allowed: (?:/|^)(?!\.)
|
|
6451
|
+
//
|
|
6452
|
+
// But it's better to have a simpler binding without a conditional, for
|
|
6453
|
+
// performance, so probably better to return both start options.
|
|
6454
|
+
//
|
|
6455
|
+
// Then the caller just ignores the end if it's not the first pattern,
|
|
6456
|
+
// and the start always gets applied.
|
|
6457
|
+
//
|
|
6458
|
+
// But that's always going to be $ if it's the ending pattern, or nothing,
|
|
6459
|
+
// so the caller can just attach $ at the end of the pattern when building.
|
|
6460
|
+
//
|
|
6461
|
+
// So the todo is:
|
|
6462
|
+
// - better detect what kind of start is needed
|
|
6463
|
+
// - return both flavors of starting pattern
|
|
6464
|
+
// - attach $ at the end of the pattern when creating the actual RegExp
|
|
6465
|
+
//
|
|
6466
|
+
// Ah, but wait, no, that all only applies to the root when the first pattern
|
|
6467
|
+
// is not an extglob. If the first pattern IS an extglob, then we need all
|
|
6468
|
+
// that dot prevention biz to live in the extglob portions, because eg
|
|
6469
|
+
// +(*|.x*) can match .xy but not .yx.
|
|
6470
|
+
//
|
|
6471
|
+
// So, return the two flavors if it's #root and the first child is not an
|
|
6472
|
+
// AST, otherwise leave it to the child AST to handle it, and there,
|
|
6473
|
+
// use the (?:^|/) style of start binding.
|
|
6474
|
+
//
|
|
6475
|
+
// Even simplified further:
|
|
6476
|
+
// - Since the start for a join is eg /(?!\.) and the start for a part
|
|
6477
|
+
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
6478
|
+
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
6479
|
+
toRegExpSource(allowDot) {
|
|
6480
|
+
const dot = allowDot ?? !!this.#options.dot;
|
|
6481
|
+
if (this.#root === this) {
|
|
6482
|
+
this.#flatten();
|
|
6483
|
+
this.#fillNegs();
|
|
6484
|
+
}
|
|
6485
|
+
if (!isExtglobAST(this)) {
|
|
6486
|
+
const noEmpty = this.isStart() && this.isEnd() && !this.#parts.some((s) => typeof s !== "string");
|
|
6487
|
+
const src = this.#parts.map((p) => {
|
|
6488
|
+
const [re2, _, hasMagic, uflag] = typeof p === "string" ? _a.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
|
|
6489
|
+
this.#hasMagic = this.#hasMagic || hasMagic;
|
|
6490
|
+
this.#uflag = this.#uflag || uflag;
|
|
6491
|
+
return re2;
|
|
6492
|
+
}).join("");
|
|
6493
|
+
let start2 = "";
|
|
6494
|
+
if (this.isStart()) {
|
|
6495
|
+
if (typeof this.#parts[0] === "string") {
|
|
6496
|
+
const dotTravAllowed = this.#parts.length === 1 && justDots.has(this.#parts[0]);
|
|
6497
|
+
if (!dotTravAllowed) {
|
|
6498
|
+
const aps = addPatternStart;
|
|
6499
|
+
const needNoTrav = (
|
|
6500
|
+
// dots are allowed, and the pattern starts with [ or .
|
|
6501
|
+
dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
|
|
6502
|
+
src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
|
|
6503
|
+
src.startsWith("\\.\\.") && aps.has(src.charAt(4))
|
|
6504
|
+
);
|
|
6505
|
+
const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
|
|
6506
|
+
start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
|
|
6507
|
+
}
|
|
6508
|
+
}
|
|
6509
|
+
}
|
|
6510
|
+
let end = "";
|
|
6511
|
+
if (this.isEnd() && this.#root.#filledNegs && this.#parent?.type === "!") {
|
|
6512
|
+
end = "(?:$|\\/)";
|
|
6513
|
+
}
|
|
6514
|
+
const final2 = start2 + src + end;
|
|
6515
|
+
return [
|
|
6516
|
+
final2,
|
|
6517
|
+
unescape(src),
|
|
6518
|
+
this.#hasMagic = !!this.#hasMagic,
|
|
6519
|
+
this.#uflag
|
|
6520
|
+
];
|
|
6521
|
+
}
|
|
6522
|
+
const repeated = this.type === "*" || this.type === "+";
|
|
6523
|
+
const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
|
|
6524
|
+
let body = this.#partsToRegExp(dot);
|
|
6525
|
+
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
6526
|
+
const s = this.toString();
|
|
6527
|
+
const me = this;
|
|
6528
|
+
me.#parts = [s];
|
|
6529
|
+
me.type = null;
|
|
6530
|
+
me.#hasMagic = void 0;
|
|
6531
|
+
return [s, unescape(this.toString()), false, false];
|
|
6532
|
+
}
|
|
6533
|
+
let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : this.#partsToRegExp(true);
|
|
6534
|
+
if (bodyDotAllowed === body) {
|
|
6535
|
+
bodyDotAllowed = "";
|
|
6536
|
+
}
|
|
6537
|
+
if (bodyDotAllowed) {
|
|
6538
|
+
body = `(?:${body})(?:${bodyDotAllowed})*?`;
|
|
6539
|
+
}
|
|
6540
|
+
let final = "";
|
|
6541
|
+
if (this.type === "!" && this.#emptyExt) {
|
|
6542
|
+
final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
|
|
6543
|
+
} else {
|
|
6544
|
+
const close = this.type === "!" ? (
|
|
6545
|
+
// !() must match something,but !(x) can match ''
|
|
6546
|
+
"))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
|
|
6547
|
+
) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
|
|
6548
|
+
final = start + body + close;
|
|
6549
|
+
}
|
|
6550
|
+
return [
|
|
6551
|
+
final,
|
|
6552
|
+
unescape(body),
|
|
6553
|
+
this.#hasMagic = !!this.#hasMagic,
|
|
6554
|
+
this.#uflag
|
|
6555
|
+
];
|
|
6556
|
+
}
|
|
6557
|
+
#flatten() {
|
|
6558
|
+
if (!isExtglobAST(this)) {
|
|
6559
|
+
for (const p of this.#parts) {
|
|
6560
|
+
if (typeof p === "object") {
|
|
6561
|
+
p.#flatten();
|
|
6562
|
+
}
|
|
6563
|
+
}
|
|
6564
|
+
} else {
|
|
6565
|
+
let iterations = 0;
|
|
6566
|
+
let done = false;
|
|
6567
|
+
do {
|
|
6568
|
+
done = true;
|
|
6569
|
+
for (let i = 0; i < this.#parts.length; i++) {
|
|
6570
|
+
const c = this.#parts[i];
|
|
6571
|
+
if (typeof c === "object") {
|
|
6572
|
+
c.#flatten();
|
|
6573
|
+
if (this.#canAdopt(c)) {
|
|
6574
|
+
done = false;
|
|
6575
|
+
this.#adopt(c, i);
|
|
6576
|
+
} else if (this.#canAdoptWithSpace(c)) {
|
|
6577
|
+
done = false;
|
|
6578
|
+
this.#adoptWithSpace(c, i);
|
|
6579
|
+
} else if (this.#canUsurp(c)) {
|
|
6580
|
+
done = false;
|
|
6581
|
+
this.#usurp(c);
|
|
6582
|
+
}
|
|
6583
|
+
}
|
|
6584
|
+
}
|
|
6585
|
+
} while (!done && ++iterations < 10);
|
|
6586
|
+
}
|
|
6587
|
+
this.#toString = void 0;
|
|
6588
|
+
}
|
|
6589
|
+
#partsToRegExp(dot) {
|
|
6590
|
+
return this.#parts.map((p) => {
|
|
6591
|
+
if (typeof p === "string") {
|
|
6592
|
+
throw new Error("string type in extglob ast??");
|
|
6593
|
+
}
|
|
6594
|
+
const [re2, _, _hasMagic, uflag] = p.toRegExpSource(dot);
|
|
6595
|
+
this.#uflag = this.#uflag || uflag;
|
|
6596
|
+
return re2;
|
|
6597
|
+
}).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
|
|
6598
|
+
}
|
|
6599
|
+
static #parseGlob(glob, hasMagic, noEmpty = false) {
|
|
6600
|
+
let escaping = false;
|
|
6601
|
+
let re2 = "";
|
|
6602
|
+
let uflag = false;
|
|
6603
|
+
let inStar = false;
|
|
6604
|
+
for (let i = 0; i < glob.length; i++) {
|
|
6605
|
+
const c = glob.charAt(i);
|
|
6606
|
+
if (escaping) {
|
|
6607
|
+
escaping = false;
|
|
6608
|
+
re2 += (reSpecials.has(c) ? "\\" : "") + c;
|
|
6609
|
+
continue;
|
|
6610
|
+
}
|
|
6611
|
+
if (c === "*") {
|
|
6612
|
+
if (inStar)
|
|
6613
|
+
continue;
|
|
6614
|
+
inStar = true;
|
|
6615
|
+
re2 += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
|
|
6616
|
+
hasMagic = true;
|
|
6617
|
+
continue;
|
|
6618
|
+
} else {
|
|
6619
|
+
inStar = false;
|
|
6620
|
+
}
|
|
6621
|
+
if (c === "\\") {
|
|
6622
|
+
if (i === glob.length - 1) {
|
|
6623
|
+
re2 += "\\\\";
|
|
6624
|
+
} else {
|
|
6625
|
+
escaping = true;
|
|
6626
|
+
}
|
|
6627
|
+
continue;
|
|
6628
|
+
}
|
|
6629
|
+
if (c === "[") {
|
|
6630
|
+
const [src, needUflag, consumed, magic] = parseClass(glob, i);
|
|
6631
|
+
if (consumed) {
|
|
6632
|
+
re2 += src;
|
|
6633
|
+
uflag = uflag || needUflag;
|
|
6634
|
+
i += consumed - 1;
|
|
6635
|
+
hasMagic = hasMagic || magic;
|
|
6636
|
+
continue;
|
|
6637
|
+
}
|
|
6638
|
+
}
|
|
6639
|
+
if (c === "?") {
|
|
6640
|
+
re2 += qmark;
|
|
6641
|
+
hasMagic = true;
|
|
6642
|
+
continue;
|
|
6643
|
+
}
|
|
6644
|
+
re2 += regExpEscape(c);
|
|
6645
|
+
}
|
|
6646
|
+
return [re2, unescape(glob), !!hasMagic, uflag];
|
|
6647
|
+
}
|
|
6648
|
+
};
|
|
6649
|
+
_a = AST;
|
|
6650
|
+
|
|
6651
|
+
// node_modules/minimatch/dist/esm/escape.js
|
|
6652
|
+
var escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
|
|
6653
|
+
if (magicalBraces) {
|
|
6654
|
+
return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
|
|
6655
|
+
}
|
|
6656
|
+
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
6657
|
+
};
|
|
6658
|
+
|
|
6659
|
+
// node_modules/minimatch/dist/esm/index.js
|
|
6660
|
+
var minimatch = (p, pattern, options = {}) => {
|
|
6661
|
+
assertValidPattern(pattern);
|
|
6662
|
+
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
6663
|
+
return false;
|
|
6664
|
+
}
|
|
6665
|
+
return new Minimatch(pattern, options).match(p);
|
|
6666
|
+
};
|
|
6667
|
+
var starDotExtRE = /^\*+([^+@!?*[(]*)$/;
|
|
6668
|
+
var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
|
|
6669
|
+
var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
|
|
6670
|
+
var starDotExtTestNocase = (ext2) => {
|
|
6671
|
+
ext2 = ext2.toLowerCase();
|
|
6672
|
+
return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
|
|
6673
|
+
};
|
|
6674
|
+
var starDotExtTestNocaseDot = (ext2) => {
|
|
6675
|
+
ext2 = ext2.toLowerCase();
|
|
6676
|
+
return (f) => f.toLowerCase().endsWith(ext2);
|
|
6677
|
+
};
|
|
6678
|
+
var starDotStarRE = /^\*+\.\*+$/;
|
|
6679
|
+
var starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
|
|
6680
|
+
var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
|
|
6681
|
+
var dotStarRE = /^\.\*+$/;
|
|
6682
|
+
var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
|
|
6683
|
+
var starRE = /^\*+$/;
|
|
6684
|
+
var starTest = (f) => f.length !== 0 && !f.startsWith(".");
|
|
6685
|
+
var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
|
|
6686
|
+
var qmarksRE = /^\?+([^+@!?*[(]*)?$/;
|
|
6687
|
+
var qmarksTestNocase = ([$0, ext2 = ""]) => {
|
|
6688
|
+
const noext = qmarksTestNoExt([$0]);
|
|
6689
|
+
if (!ext2)
|
|
6690
|
+
return noext;
|
|
6691
|
+
ext2 = ext2.toLowerCase();
|
|
6692
|
+
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
6693
|
+
};
|
|
6694
|
+
var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
|
|
6695
|
+
const noext = qmarksTestNoExtDot([$0]);
|
|
6696
|
+
if (!ext2)
|
|
6697
|
+
return noext;
|
|
6698
|
+
ext2 = ext2.toLowerCase();
|
|
6699
|
+
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
6700
|
+
};
|
|
6701
|
+
var qmarksTestDot = ([$0, ext2 = ""]) => {
|
|
6702
|
+
const noext = qmarksTestNoExtDot([$0]);
|
|
6703
|
+
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
6704
|
+
};
|
|
6705
|
+
var qmarksTest = ([$0, ext2 = ""]) => {
|
|
6706
|
+
const noext = qmarksTestNoExt([$0]);
|
|
6707
|
+
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
6708
|
+
};
|
|
6709
|
+
var qmarksTestNoExt = ([$0]) => {
|
|
6710
|
+
const len = $0.length;
|
|
6711
|
+
return (f) => f.length === len && !f.startsWith(".");
|
|
6712
|
+
};
|
|
6713
|
+
var qmarksTestNoExtDot = ([$0]) => {
|
|
6714
|
+
const len = $0.length;
|
|
6715
|
+
return (f) => f.length === len && f !== "." && f !== "..";
|
|
6716
|
+
};
|
|
6717
|
+
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
6718
|
+
var path3 = {
|
|
6719
|
+
win32: { sep: "\\" },
|
|
6720
|
+
posix: { sep: "/" }
|
|
6721
|
+
};
|
|
6722
|
+
var sep = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
|
|
6723
|
+
minimatch.sep = sep;
|
|
6724
|
+
var GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
|
|
6725
|
+
minimatch.GLOBSTAR = GLOBSTAR;
|
|
6726
|
+
var qmark2 = "[^/]";
|
|
6727
|
+
var star2 = qmark2 + "*?";
|
|
6728
|
+
var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
6729
|
+
var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
6730
|
+
var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
|
|
6731
|
+
minimatch.filter = filter;
|
|
6732
|
+
var ext = (a, b = {}) => Object.assign({}, a, b);
|
|
6733
|
+
var defaults = (def) => {
|
|
6734
|
+
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
6735
|
+
return minimatch;
|
|
6736
|
+
}
|
|
6737
|
+
const orig = minimatch;
|
|
6738
|
+
const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
|
|
6739
|
+
return Object.assign(m, {
|
|
6740
|
+
Minimatch: class Minimatch extends orig.Minimatch {
|
|
6741
|
+
constructor(pattern, options = {}) {
|
|
6742
|
+
super(pattern, ext(def, options));
|
|
6743
|
+
}
|
|
6744
|
+
static defaults(options) {
|
|
6745
|
+
return orig.defaults(ext(def, options)).Minimatch;
|
|
6746
|
+
}
|
|
6747
|
+
},
|
|
6748
|
+
AST: class AST extends orig.AST {
|
|
6749
|
+
/* c8 ignore start */
|
|
6750
|
+
constructor(type, parent, options = {}) {
|
|
6751
|
+
super(type, parent, ext(def, options));
|
|
6752
|
+
}
|
|
6753
|
+
/* c8 ignore stop */
|
|
6754
|
+
static fromGlob(pattern, options = {}) {
|
|
6755
|
+
return orig.AST.fromGlob(pattern, ext(def, options));
|
|
6756
|
+
}
|
|
6757
|
+
},
|
|
6758
|
+
unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
|
|
6759
|
+
escape: (s, options = {}) => orig.escape(s, ext(def, options)),
|
|
6760
|
+
filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
|
|
6761
|
+
defaults: (options) => orig.defaults(ext(def, options)),
|
|
6762
|
+
makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
|
|
6763
|
+
braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
|
|
6764
|
+
match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
|
|
6765
|
+
sep: orig.sep,
|
|
6766
|
+
GLOBSTAR
|
|
6767
|
+
});
|
|
6768
|
+
};
|
|
6769
|
+
minimatch.defaults = defaults;
|
|
6770
|
+
var braceExpand = (pattern, options = {}) => {
|
|
6771
|
+
assertValidPattern(pattern);
|
|
6772
|
+
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
6773
|
+
return [pattern];
|
|
6774
|
+
}
|
|
6775
|
+
return expand(pattern, { max: options.braceExpandMax });
|
|
6776
|
+
};
|
|
6777
|
+
minimatch.braceExpand = braceExpand;
|
|
6778
|
+
var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
6779
|
+
minimatch.makeRe = makeRe;
|
|
6780
|
+
var match = (list, pattern, options = {}) => {
|
|
6781
|
+
const mm = new Minimatch(pattern, options);
|
|
6782
|
+
list = list.filter((f) => mm.match(f));
|
|
6783
|
+
if (mm.options.nonull && !list.length) {
|
|
6784
|
+
list.push(pattern);
|
|
6785
|
+
}
|
|
6786
|
+
return list;
|
|
6787
|
+
};
|
|
6788
|
+
minimatch.match = match;
|
|
6789
|
+
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
6790
|
+
var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
6791
|
+
var Minimatch = class {
|
|
6792
|
+
options;
|
|
6793
|
+
set;
|
|
6794
|
+
pattern;
|
|
6795
|
+
windowsPathsNoEscape;
|
|
6796
|
+
nonegate;
|
|
6797
|
+
negate;
|
|
6798
|
+
comment;
|
|
6799
|
+
empty;
|
|
6800
|
+
preserveMultipleSlashes;
|
|
6801
|
+
partial;
|
|
6802
|
+
globSet;
|
|
6803
|
+
globParts;
|
|
6804
|
+
nocase;
|
|
6805
|
+
isWindows;
|
|
6806
|
+
platform;
|
|
6807
|
+
windowsNoMagicRoot;
|
|
6808
|
+
maxGlobstarRecursion;
|
|
6809
|
+
regexp;
|
|
6810
|
+
constructor(pattern, options = {}) {
|
|
6811
|
+
assertValidPattern(pattern);
|
|
6812
|
+
options = options || {};
|
|
6813
|
+
this.options = options;
|
|
6814
|
+
this.maxGlobstarRecursion = options.maxGlobstarRecursion ?? 200;
|
|
6815
|
+
this.pattern = pattern;
|
|
6816
|
+
this.platform = options.platform || defaultPlatform;
|
|
6817
|
+
this.isWindows = this.platform === "win32";
|
|
6818
|
+
const awe = "allowWindowsEscape";
|
|
6819
|
+
this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options[awe] === false;
|
|
6820
|
+
if (this.windowsPathsNoEscape) {
|
|
6821
|
+
this.pattern = this.pattern.replace(/\\/g, "/");
|
|
6822
|
+
}
|
|
6823
|
+
this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
|
|
6824
|
+
this.regexp = null;
|
|
6825
|
+
this.negate = false;
|
|
6826
|
+
this.nonegate = !!options.nonegate;
|
|
6827
|
+
this.comment = false;
|
|
6828
|
+
this.empty = false;
|
|
6829
|
+
this.partial = !!options.partial;
|
|
6830
|
+
this.nocase = !!this.options.nocase;
|
|
6831
|
+
this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
|
|
6832
|
+
this.globSet = [];
|
|
6833
|
+
this.globParts = [];
|
|
6834
|
+
this.set = [];
|
|
6835
|
+
this.make();
|
|
6836
|
+
}
|
|
6837
|
+
hasMagic() {
|
|
6838
|
+
if (this.options.magicalBraces && this.set.length > 1) {
|
|
6839
|
+
return true;
|
|
6840
|
+
}
|
|
6841
|
+
for (const pattern of this.set) {
|
|
6842
|
+
for (const part of pattern) {
|
|
6843
|
+
if (typeof part !== "string")
|
|
6844
|
+
return true;
|
|
6845
|
+
}
|
|
6846
|
+
}
|
|
6847
|
+
return false;
|
|
6848
|
+
}
|
|
6849
|
+
debug(..._) {
|
|
6850
|
+
}
|
|
6851
|
+
make() {
|
|
6852
|
+
const pattern = this.pattern;
|
|
6853
|
+
const options = this.options;
|
|
6854
|
+
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
6855
|
+
this.comment = true;
|
|
6856
|
+
return;
|
|
6857
|
+
}
|
|
6858
|
+
if (!pattern) {
|
|
6859
|
+
this.empty = true;
|
|
6860
|
+
return;
|
|
6861
|
+
}
|
|
6862
|
+
this.parseNegate();
|
|
6863
|
+
this.globSet = [...new Set(this.braceExpand())];
|
|
6864
|
+
if (options.debug) {
|
|
6865
|
+
this.debug = (...args) => console.error(...args);
|
|
6866
|
+
}
|
|
6867
|
+
this.debug(this.pattern, this.globSet);
|
|
6868
|
+
const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
|
|
6869
|
+
this.globParts = this.preprocess(rawGlobParts);
|
|
6870
|
+
this.debug(this.pattern, this.globParts);
|
|
6871
|
+
let set = this.globParts.map((s, _, __) => {
|
|
6872
|
+
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
6873
|
+
const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
|
|
6874
|
+
const isDrive = /^[a-z]:/i.test(s[0]);
|
|
6875
|
+
if (isUNC) {
|
|
6876
|
+
return [
|
|
6877
|
+
...s.slice(0, 4),
|
|
6878
|
+
...s.slice(4).map((ss) => this.parse(ss))
|
|
6879
|
+
];
|
|
6880
|
+
} else if (isDrive) {
|
|
6881
|
+
return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
|
|
6882
|
+
}
|
|
6883
|
+
}
|
|
6884
|
+
return s.map((ss) => this.parse(ss));
|
|
6885
|
+
});
|
|
6886
|
+
this.debug(this.pattern, set);
|
|
6887
|
+
this.set = set.filter((s) => s.indexOf(false) === -1);
|
|
6888
|
+
if (this.isWindows) {
|
|
6889
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
6890
|
+
const p = this.set[i];
|
|
6891
|
+
if (p[0] === "" && p[1] === "" && this.globParts[i][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
|
|
6892
|
+
p[2] = "?";
|
|
6893
|
+
}
|
|
6894
|
+
}
|
|
6895
|
+
}
|
|
6896
|
+
this.debug(this.pattern, this.set);
|
|
6897
|
+
}
|
|
6898
|
+
// various transforms to equivalent pattern sets that are
|
|
6899
|
+
// faster to process in a filesystem walk. The goal is to
|
|
6900
|
+
// eliminate what we can, and push all ** patterns as far
|
|
6901
|
+
// to the right as possible, even if it increases the number
|
|
6902
|
+
// of patterns that we have to process.
|
|
6903
|
+
preprocess(globParts) {
|
|
6904
|
+
if (this.options.noglobstar) {
|
|
6905
|
+
for (const partset of globParts) {
|
|
6906
|
+
for (let j = 0; j < partset.length; j++) {
|
|
6907
|
+
if (partset[j] === "**") {
|
|
6908
|
+
partset[j] = "*";
|
|
6909
|
+
}
|
|
6910
|
+
}
|
|
6911
|
+
}
|
|
6912
|
+
}
|
|
6913
|
+
const { optimizationLevel = 1 } = this.options;
|
|
6914
|
+
if (optimizationLevel >= 2) {
|
|
6915
|
+
globParts = this.firstPhasePreProcess(globParts);
|
|
6916
|
+
globParts = this.secondPhasePreProcess(globParts);
|
|
6917
|
+
} else if (optimizationLevel >= 1) {
|
|
6918
|
+
globParts = this.levelOneOptimize(globParts);
|
|
6919
|
+
} else {
|
|
6920
|
+
globParts = this.adjascentGlobstarOptimize(globParts);
|
|
6921
|
+
}
|
|
6922
|
+
return globParts;
|
|
6923
|
+
}
|
|
6924
|
+
// just get rid of adjascent ** portions
|
|
6925
|
+
adjascentGlobstarOptimize(globParts) {
|
|
6926
|
+
return globParts.map((parts) => {
|
|
6927
|
+
let gs = -1;
|
|
6928
|
+
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
6929
|
+
let i = gs;
|
|
6930
|
+
while (parts[i + 1] === "**") {
|
|
6931
|
+
i++;
|
|
6932
|
+
}
|
|
6933
|
+
if (i !== gs) {
|
|
6934
|
+
parts.splice(gs, i - gs);
|
|
6935
|
+
}
|
|
6936
|
+
}
|
|
6937
|
+
return parts;
|
|
6938
|
+
});
|
|
6939
|
+
}
|
|
6940
|
+
// get rid of adjascent ** and resolve .. portions
|
|
6941
|
+
levelOneOptimize(globParts) {
|
|
6942
|
+
return globParts.map((parts) => {
|
|
6943
|
+
parts = parts.reduce((set, part) => {
|
|
6944
|
+
const prev = set[set.length - 1];
|
|
6945
|
+
if (part === "**" && prev === "**") {
|
|
6946
|
+
return set;
|
|
6947
|
+
}
|
|
6948
|
+
if (part === "..") {
|
|
6949
|
+
if (prev && prev !== ".." && prev !== "." && prev !== "**") {
|
|
6950
|
+
set.pop();
|
|
6951
|
+
return set;
|
|
6952
|
+
}
|
|
6953
|
+
}
|
|
6954
|
+
set.push(part);
|
|
6955
|
+
return set;
|
|
6956
|
+
}, []);
|
|
6957
|
+
return parts.length === 0 ? [""] : parts;
|
|
6958
|
+
});
|
|
6959
|
+
}
|
|
6960
|
+
levelTwoFileOptimize(parts) {
|
|
6961
|
+
if (!Array.isArray(parts)) {
|
|
6962
|
+
parts = this.slashSplit(parts);
|
|
6963
|
+
}
|
|
6964
|
+
let didSomething = false;
|
|
6965
|
+
do {
|
|
6966
|
+
didSomething = false;
|
|
6967
|
+
if (!this.preserveMultipleSlashes) {
|
|
6968
|
+
for (let i = 1; i < parts.length - 1; i++) {
|
|
6969
|
+
const p = parts[i];
|
|
6970
|
+
if (i === 1 && p === "" && parts[0] === "")
|
|
6971
|
+
continue;
|
|
6972
|
+
if (p === "." || p === "") {
|
|
6973
|
+
didSomething = true;
|
|
6974
|
+
parts.splice(i, 1);
|
|
6975
|
+
i--;
|
|
6976
|
+
}
|
|
6977
|
+
}
|
|
6978
|
+
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
6979
|
+
didSomething = true;
|
|
6980
|
+
parts.pop();
|
|
6981
|
+
}
|
|
6982
|
+
}
|
|
6983
|
+
let dd = 0;
|
|
6984
|
+
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
6985
|
+
const p = parts[dd - 1];
|
|
6986
|
+
if (p && p !== "." && p !== ".." && p !== "**" && !(this.isWindows && /^[a-z]:$/i.test(p))) {
|
|
6987
|
+
didSomething = true;
|
|
6988
|
+
parts.splice(dd - 1, 2);
|
|
6989
|
+
dd -= 2;
|
|
6990
|
+
}
|
|
6991
|
+
}
|
|
6992
|
+
} while (didSomething);
|
|
6993
|
+
return parts.length === 0 ? [""] : parts;
|
|
6994
|
+
}
|
|
6995
|
+
// First phase: single-pattern processing
|
|
6996
|
+
// <pre> is 1 or more portions
|
|
6997
|
+
// <rest> is 1 or more portions
|
|
6998
|
+
// <p> is any portion other than ., .., '', or **
|
|
6999
|
+
// <e> is . or ''
|
|
7000
|
+
//
|
|
7001
|
+
// **/.. is *brutal* for filesystem walking performance, because
|
|
7002
|
+
// it effectively resets the recursive walk each time it occurs,
|
|
7003
|
+
// and ** cannot be reduced out by a .. pattern part like a regexp
|
|
7004
|
+
// or most strings (other than .., ., and '') can be.
|
|
7005
|
+
//
|
|
7006
|
+
// <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
|
|
7007
|
+
// <pre>/<e>/<rest> -> <pre>/<rest>
|
|
7008
|
+
// <pre>/<p>/../<rest> -> <pre>/<rest>
|
|
7009
|
+
// **/**/<rest> -> **/<rest>
|
|
7010
|
+
//
|
|
7011
|
+
// **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
|
|
7012
|
+
// this WOULD be allowed if ** did follow symlinks, or * didn't
|
|
7013
|
+
firstPhasePreProcess(globParts) {
|
|
7014
|
+
let didSomething = false;
|
|
7015
|
+
do {
|
|
7016
|
+
didSomething = false;
|
|
7017
|
+
for (let parts of globParts) {
|
|
7018
|
+
let gs = -1;
|
|
7019
|
+
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
7020
|
+
let gss = gs;
|
|
7021
|
+
while (parts[gss + 1] === "**") {
|
|
7022
|
+
gss++;
|
|
7023
|
+
}
|
|
7024
|
+
if (gss > gs) {
|
|
7025
|
+
parts.splice(gs + 1, gss - gs);
|
|
7026
|
+
}
|
|
7027
|
+
let next = parts[gs + 1];
|
|
7028
|
+
const p = parts[gs + 2];
|
|
7029
|
+
const p2 = parts[gs + 3];
|
|
7030
|
+
if (next !== "..")
|
|
7031
|
+
continue;
|
|
7032
|
+
if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
|
|
7033
|
+
continue;
|
|
7034
|
+
}
|
|
7035
|
+
didSomething = true;
|
|
7036
|
+
parts.splice(gs, 1);
|
|
7037
|
+
const other = parts.slice(0);
|
|
7038
|
+
other[gs] = "**";
|
|
7039
|
+
globParts.push(other);
|
|
7040
|
+
gs--;
|
|
7041
|
+
}
|
|
7042
|
+
if (!this.preserveMultipleSlashes) {
|
|
7043
|
+
for (let i = 1; i < parts.length - 1; i++) {
|
|
7044
|
+
const p = parts[i];
|
|
7045
|
+
if (i === 1 && p === "" && parts[0] === "")
|
|
7046
|
+
continue;
|
|
7047
|
+
if (p === "." || p === "") {
|
|
7048
|
+
didSomething = true;
|
|
7049
|
+
parts.splice(i, 1);
|
|
7050
|
+
i--;
|
|
7051
|
+
}
|
|
7052
|
+
}
|
|
7053
|
+
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
7054
|
+
didSomething = true;
|
|
7055
|
+
parts.pop();
|
|
7056
|
+
}
|
|
7057
|
+
}
|
|
7058
|
+
let dd = 0;
|
|
7059
|
+
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
7060
|
+
const p = parts[dd - 1];
|
|
7061
|
+
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
7062
|
+
didSomething = true;
|
|
7063
|
+
const needDot = dd === 1 && parts[dd + 1] === "**";
|
|
7064
|
+
const splin = needDot ? ["."] : [];
|
|
7065
|
+
parts.splice(dd - 1, 2, ...splin);
|
|
7066
|
+
if (parts.length === 0)
|
|
7067
|
+
parts.push("");
|
|
7068
|
+
dd -= 2;
|
|
7069
|
+
}
|
|
7070
|
+
}
|
|
7071
|
+
}
|
|
7072
|
+
} while (didSomething);
|
|
7073
|
+
return globParts;
|
|
7074
|
+
}
|
|
7075
|
+
// second phase: multi-pattern dedupes
|
|
7076
|
+
// {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
|
|
7077
|
+
// {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
|
|
7078
|
+
// {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
|
|
7079
|
+
//
|
|
7080
|
+
// {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
|
|
7081
|
+
// ^-- not valid because ** doens't follow symlinks
|
|
7082
|
+
secondPhasePreProcess(globParts) {
|
|
7083
|
+
for (let i = 0; i < globParts.length - 1; i++) {
|
|
7084
|
+
for (let j = i + 1; j < globParts.length; j++) {
|
|
7085
|
+
const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
|
|
7086
|
+
if (matched) {
|
|
7087
|
+
globParts[i] = [];
|
|
7088
|
+
globParts[j] = matched;
|
|
7089
|
+
break;
|
|
7090
|
+
}
|
|
7091
|
+
}
|
|
7092
|
+
}
|
|
7093
|
+
return globParts.filter((gs) => gs.length);
|
|
7094
|
+
}
|
|
7095
|
+
partsMatch(a, b, emptyGSMatch = false) {
|
|
7096
|
+
let ai = 0;
|
|
7097
|
+
let bi = 0;
|
|
7098
|
+
let result2 = [];
|
|
7099
|
+
let which = "";
|
|
7100
|
+
while (ai < a.length && bi < b.length) {
|
|
7101
|
+
if (a[ai] === b[bi]) {
|
|
7102
|
+
result2.push(which === "b" ? b[bi] : a[ai]);
|
|
7103
|
+
ai++;
|
|
7104
|
+
bi++;
|
|
7105
|
+
} else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
|
|
7106
|
+
result2.push(a[ai]);
|
|
7107
|
+
ai++;
|
|
7108
|
+
} else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
|
|
7109
|
+
result2.push(b[bi]);
|
|
7110
|
+
bi++;
|
|
7111
|
+
} else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
|
|
7112
|
+
if (which === "b")
|
|
7113
|
+
return false;
|
|
7114
|
+
which = "a";
|
|
7115
|
+
result2.push(a[ai]);
|
|
7116
|
+
ai++;
|
|
7117
|
+
bi++;
|
|
7118
|
+
} else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
|
|
7119
|
+
if (which === "a")
|
|
7120
|
+
return false;
|
|
7121
|
+
which = "b";
|
|
7122
|
+
result2.push(b[bi]);
|
|
7123
|
+
ai++;
|
|
7124
|
+
bi++;
|
|
7125
|
+
} else {
|
|
7126
|
+
return false;
|
|
7127
|
+
}
|
|
7128
|
+
}
|
|
7129
|
+
return a.length === b.length && result2;
|
|
7130
|
+
}
|
|
7131
|
+
parseNegate() {
|
|
7132
|
+
if (this.nonegate)
|
|
7133
|
+
return;
|
|
7134
|
+
const pattern = this.pattern;
|
|
7135
|
+
let negate = false;
|
|
7136
|
+
let negateOffset = 0;
|
|
7137
|
+
for (let i = 0; i < pattern.length && pattern.charAt(i) === "!"; i++) {
|
|
7138
|
+
negate = !negate;
|
|
7139
|
+
negateOffset++;
|
|
7140
|
+
}
|
|
7141
|
+
if (negateOffset)
|
|
7142
|
+
this.pattern = pattern.slice(negateOffset);
|
|
7143
|
+
this.negate = negate;
|
|
7144
|
+
}
|
|
7145
|
+
// set partial to true to test if, for example,
|
|
7146
|
+
// "/a/b" matches the start of "/*/b/*/d"
|
|
7147
|
+
// Partial means, if you run out of file before you run
|
|
7148
|
+
// out of pattern, then that's fine, as long as all
|
|
7149
|
+
// the parts match.
|
|
7150
|
+
matchOne(file2, pattern, partial = false) {
|
|
7151
|
+
let fileStartIndex = 0;
|
|
7152
|
+
let patternStartIndex = 0;
|
|
7153
|
+
if (this.isWindows) {
|
|
7154
|
+
const fileDrive = typeof file2[0] === "string" && /^[a-z]:$/i.test(file2[0]);
|
|
7155
|
+
const fileUNC = !fileDrive && file2[0] === "" && file2[1] === "" && file2[2] === "?" && /^[a-z]:$/i.test(file2[3]);
|
|
7156
|
+
const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
|
|
7157
|
+
const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
|
|
7158
|
+
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
7159
|
+
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
7160
|
+
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
7161
|
+
const [fd, pd] = [
|
|
7162
|
+
file2[fdi],
|
|
7163
|
+
pattern[pdi]
|
|
7164
|
+
];
|
|
7165
|
+
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
7166
|
+
pattern[pdi] = fd;
|
|
7167
|
+
patternStartIndex = pdi;
|
|
7168
|
+
fileStartIndex = fdi;
|
|
7169
|
+
}
|
|
7170
|
+
}
|
|
7171
|
+
}
|
|
7172
|
+
const { optimizationLevel = 1 } = this.options;
|
|
7173
|
+
if (optimizationLevel >= 2) {
|
|
7174
|
+
file2 = this.levelTwoFileOptimize(file2);
|
|
7175
|
+
}
|
|
7176
|
+
if (pattern.includes(GLOBSTAR)) {
|
|
7177
|
+
return this.#matchGlobstar(file2, pattern, partial, fileStartIndex, patternStartIndex);
|
|
7178
|
+
}
|
|
7179
|
+
return this.#matchOne(file2, pattern, partial, fileStartIndex, patternStartIndex);
|
|
7180
|
+
}
|
|
7181
|
+
#matchGlobstar(file2, pattern, partial, fileIndex, patternIndex) {
|
|
7182
|
+
const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
|
|
7183
|
+
const lastgs = pattern.lastIndexOf(GLOBSTAR);
|
|
7184
|
+
const [head, body, tail] = partial ? [
|
|
7185
|
+
pattern.slice(patternIndex, firstgs),
|
|
7186
|
+
pattern.slice(firstgs + 1),
|
|
7187
|
+
[]
|
|
7188
|
+
] : [
|
|
7189
|
+
pattern.slice(patternIndex, firstgs),
|
|
7190
|
+
pattern.slice(firstgs + 1, lastgs),
|
|
7191
|
+
pattern.slice(lastgs + 1)
|
|
7192
|
+
];
|
|
7193
|
+
if (head.length) {
|
|
7194
|
+
const fileHead = file2.slice(fileIndex, fileIndex + head.length);
|
|
7195
|
+
if (!this.#matchOne(fileHead, head, partial, 0, 0)) {
|
|
7196
|
+
return false;
|
|
7197
|
+
}
|
|
7198
|
+
fileIndex += head.length;
|
|
7199
|
+
patternIndex += head.length;
|
|
7200
|
+
}
|
|
7201
|
+
let fileTailMatch = 0;
|
|
7202
|
+
if (tail.length) {
|
|
7203
|
+
if (tail.length + fileIndex > file2.length)
|
|
7204
|
+
return false;
|
|
7205
|
+
let tailStart = file2.length - tail.length;
|
|
7206
|
+
if (this.#matchOne(file2, tail, partial, tailStart, 0)) {
|
|
7207
|
+
fileTailMatch = tail.length;
|
|
7208
|
+
} else {
|
|
7209
|
+
if (file2[file2.length - 1] !== "" || fileIndex + tail.length === file2.length) {
|
|
7210
|
+
return false;
|
|
7211
|
+
}
|
|
7212
|
+
tailStart--;
|
|
7213
|
+
if (!this.#matchOne(file2, tail, partial, tailStart, 0)) {
|
|
7214
|
+
return false;
|
|
7215
|
+
}
|
|
7216
|
+
fileTailMatch = tail.length + 1;
|
|
7217
|
+
}
|
|
7218
|
+
}
|
|
7219
|
+
if (!body.length) {
|
|
7220
|
+
let sawSome = !!fileTailMatch;
|
|
7221
|
+
for (let i2 = fileIndex; i2 < file2.length - fileTailMatch; i2++) {
|
|
7222
|
+
const f = String(file2[i2]);
|
|
7223
|
+
sawSome = true;
|
|
7224
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
7225
|
+
return false;
|
|
7226
|
+
}
|
|
7227
|
+
}
|
|
7228
|
+
return partial || sawSome;
|
|
7229
|
+
}
|
|
7230
|
+
const bodySegments = [[[], 0]];
|
|
7231
|
+
let currentBody = bodySegments[0];
|
|
7232
|
+
let nonGsParts = 0;
|
|
7233
|
+
const nonGsPartsSums = [0];
|
|
7234
|
+
for (const b of body) {
|
|
7235
|
+
if (b === GLOBSTAR) {
|
|
7236
|
+
nonGsPartsSums.push(nonGsParts);
|
|
7237
|
+
currentBody = [[], 0];
|
|
7238
|
+
bodySegments.push(currentBody);
|
|
7239
|
+
} else {
|
|
7240
|
+
currentBody[0].push(b);
|
|
7241
|
+
nonGsParts++;
|
|
7242
|
+
}
|
|
7243
|
+
}
|
|
7244
|
+
let i = bodySegments.length - 1;
|
|
7245
|
+
const fileLength = file2.length - fileTailMatch;
|
|
7246
|
+
for (const b of bodySegments) {
|
|
7247
|
+
b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
|
|
7248
|
+
}
|
|
7249
|
+
return !!this.#matchGlobStarBodySections(file2, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
|
|
7250
|
+
}
|
|
7251
|
+
// return false for "nope, not matching"
|
|
7252
|
+
// return null for "not matching, cannot keep trying"
|
|
7253
|
+
#matchGlobStarBodySections(file2, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
|
|
7254
|
+
const bs = bodySegments[bodyIndex];
|
|
7255
|
+
if (!bs) {
|
|
7256
|
+
for (let i = fileIndex; i < file2.length; i++) {
|
|
7257
|
+
sawTail = true;
|
|
7258
|
+
const f = file2[i];
|
|
7259
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
7260
|
+
return false;
|
|
7261
|
+
}
|
|
7262
|
+
}
|
|
7263
|
+
return sawTail;
|
|
7264
|
+
}
|
|
7265
|
+
const [body, after] = bs;
|
|
7266
|
+
while (fileIndex <= after) {
|
|
7267
|
+
const m = this.#matchOne(file2.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
|
|
7268
|
+
if (m && globStarDepth < this.maxGlobstarRecursion) {
|
|
7269
|
+
const sub = this.#matchGlobStarBodySections(file2, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
|
|
7270
|
+
if (sub !== false) {
|
|
7271
|
+
return sub;
|
|
7272
|
+
}
|
|
7273
|
+
}
|
|
7274
|
+
const f = file2[fileIndex];
|
|
7275
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
7276
|
+
return false;
|
|
7277
|
+
}
|
|
7278
|
+
fileIndex++;
|
|
7279
|
+
}
|
|
7280
|
+
return partial || null;
|
|
7281
|
+
}
|
|
7282
|
+
#matchOne(file2, pattern, partial, fileIndex, patternIndex) {
|
|
7283
|
+
let fi;
|
|
7284
|
+
let pi;
|
|
7285
|
+
let pl;
|
|
7286
|
+
let fl;
|
|
7287
|
+
for (fi = fileIndex, pi = patternIndex, fl = file2.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
7288
|
+
this.debug("matchOne loop");
|
|
7289
|
+
let p = pattern[pi];
|
|
7290
|
+
let f = file2[fi];
|
|
7291
|
+
this.debug(pattern, p, f);
|
|
7292
|
+
if (p === false || p === GLOBSTAR) {
|
|
7293
|
+
return false;
|
|
7294
|
+
}
|
|
7295
|
+
let hit;
|
|
7296
|
+
if (typeof p === "string") {
|
|
7297
|
+
hit = f === p;
|
|
7298
|
+
this.debug("string match", p, f, hit);
|
|
7299
|
+
} else {
|
|
7300
|
+
hit = p.test(f);
|
|
7301
|
+
this.debug("pattern match", p, f, hit);
|
|
7302
|
+
}
|
|
7303
|
+
if (!hit)
|
|
7304
|
+
return false;
|
|
7305
|
+
}
|
|
7306
|
+
if (fi === fl && pi === pl) {
|
|
7307
|
+
return true;
|
|
7308
|
+
} else if (fi === fl) {
|
|
7309
|
+
return partial;
|
|
7310
|
+
} else if (pi === pl) {
|
|
7311
|
+
return fi === fl - 1 && file2[fi] === "";
|
|
7312
|
+
} else {
|
|
7313
|
+
throw new Error("wtf?");
|
|
7314
|
+
}
|
|
7315
|
+
}
|
|
7316
|
+
braceExpand() {
|
|
7317
|
+
return braceExpand(this.pattern, this.options);
|
|
7318
|
+
}
|
|
7319
|
+
parse(pattern) {
|
|
7320
|
+
assertValidPattern(pattern);
|
|
7321
|
+
const options = this.options;
|
|
7322
|
+
if (pattern === "**")
|
|
7323
|
+
return GLOBSTAR;
|
|
7324
|
+
if (pattern === "")
|
|
7325
|
+
return "";
|
|
7326
|
+
let m;
|
|
7327
|
+
let fastTest = null;
|
|
7328
|
+
if (m = pattern.match(starRE)) {
|
|
7329
|
+
fastTest = options.dot ? starTestDot : starTest;
|
|
7330
|
+
} else if (m = pattern.match(starDotExtRE)) {
|
|
7331
|
+
fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
|
|
7332
|
+
} else if (m = pattern.match(qmarksRE)) {
|
|
7333
|
+
fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
|
|
7334
|
+
} else if (m = pattern.match(starDotStarRE)) {
|
|
7335
|
+
fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
|
|
7336
|
+
} else if (m = pattern.match(dotStarRE)) {
|
|
7337
|
+
fastTest = dotStarTest;
|
|
7338
|
+
}
|
|
7339
|
+
const re2 = AST.fromGlob(pattern, this.options).toMMPattern();
|
|
7340
|
+
if (fastTest && typeof re2 === "object") {
|
|
7341
|
+
Reflect.defineProperty(re2, "test", { value: fastTest });
|
|
7342
|
+
}
|
|
7343
|
+
return re2;
|
|
7344
|
+
}
|
|
7345
|
+
makeRe() {
|
|
7346
|
+
if (this.regexp || this.regexp === false)
|
|
7347
|
+
return this.regexp;
|
|
7348
|
+
const set = this.set;
|
|
7349
|
+
if (!set.length) {
|
|
7350
|
+
this.regexp = false;
|
|
7351
|
+
return this.regexp;
|
|
7352
|
+
}
|
|
7353
|
+
const options = this.options;
|
|
7354
|
+
const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
|
|
7355
|
+
const flags = new Set(options.nocase ? ["i"] : []);
|
|
7356
|
+
let re2 = set.map((pattern) => {
|
|
7357
|
+
const pp = pattern.map((p) => {
|
|
7358
|
+
if (p instanceof RegExp) {
|
|
7359
|
+
for (const f of p.flags.split(""))
|
|
7360
|
+
flags.add(f);
|
|
7361
|
+
}
|
|
7362
|
+
return typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
|
|
7363
|
+
});
|
|
7364
|
+
pp.forEach((p, i) => {
|
|
7365
|
+
const next = pp[i + 1];
|
|
7366
|
+
const prev = pp[i - 1];
|
|
7367
|
+
if (p !== GLOBSTAR || prev === GLOBSTAR) {
|
|
7368
|
+
return;
|
|
7369
|
+
}
|
|
7370
|
+
if (prev === void 0) {
|
|
7371
|
+
if (next !== void 0 && next !== GLOBSTAR) {
|
|
7372
|
+
pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
|
|
7373
|
+
} else {
|
|
7374
|
+
pp[i] = twoStar;
|
|
7375
|
+
}
|
|
7376
|
+
} else if (next === void 0) {
|
|
7377
|
+
pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
|
|
7378
|
+
} else if (next !== GLOBSTAR) {
|
|
7379
|
+
pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
7380
|
+
pp[i + 1] = GLOBSTAR;
|
|
7381
|
+
}
|
|
7382
|
+
});
|
|
7383
|
+
const filtered = pp.filter((p) => p !== GLOBSTAR);
|
|
7384
|
+
if (this.partial && filtered.length >= 1) {
|
|
7385
|
+
const prefixes = [];
|
|
7386
|
+
for (let i = 1; i <= filtered.length; i++) {
|
|
7387
|
+
prefixes.push(filtered.slice(0, i).join("/"));
|
|
7388
|
+
}
|
|
7389
|
+
return "(?:" + prefixes.join("|") + ")";
|
|
7390
|
+
}
|
|
7391
|
+
return filtered.join("/");
|
|
7392
|
+
}).join("|");
|
|
7393
|
+
const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
7394
|
+
re2 = "^" + open + re2 + close + "$";
|
|
7395
|
+
if (this.partial) {
|
|
7396
|
+
re2 = "^(?:\\/|" + open + re2.slice(1, -1) + close + ")$";
|
|
7397
|
+
}
|
|
7398
|
+
if (this.negate)
|
|
7399
|
+
re2 = "^(?!" + re2 + ").+$";
|
|
7400
|
+
try {
|
|
7401
|
+
this.regexp = new RegExp(re2, [...flags].join(""));
|
|
7402
|
+
} catch {
|
|
7403
|
+
this.regexp = false;
|
|
7404
|
+
}
|
|
7405
|
+
return this.regexp;
|
|
7406
|
+
}
|
|
7407
|
+
slashSplit(p) {
|
|
7408
|
+
if (this.preserveMultipleSlashes) {
|
|
7409
|
+
return p.split("/");
|
|
7410
|
+
} else if (this.isWindows && /^\/\/[^/]+/.test(p)) {
|
|
7411
|
+
return ["", ...p.split(/\/+/)];
|
|
7412
|
+
} else {
|
|
7413
|
+
return p.split(/\/+/);
|
|
7414
|
+
}
|
|
7415
|
+
}
|
|
7416
|
+
match(f, partial = this.partial) {
|
|
7417
|
+
this.debug("match", f, this.pattern);
|
|
7418
|
+
if (this.comment) {
|
|
7419
|
+
return false;
|
|
7420
|
+
}
|
|
7421
|
+
if (this.empty) {
|
|
7422
|
+
return f === "";
|
|
7423
|
+
}
|
|
7424
|
+
if (f === "/" && partial) {
|
|
7425
|
+
return true;
|
|
7426
|
+
}
|
|
7427
|
+
const options = this.options;
|
|
7428
|
+
if (this.isWindows) {
|
|
7429
|
+
f = f.split("\\").join("/");
|
|
7430
|
+
}
|
|
7431
|
+
const ff = this.slashSplit(f);
|
|
7432
|
+
this.debug(this.pattern, "split", ff);
|
|
7433
|
+
const set = this.set;
|
|
7434
|
+
this.debug(this.pattern, "set", set);
|
|
7435
|
+
let filename = ff[ff.length - 1];
|
|
7436
|
+
if (!filename) {
|
|
7437
|
+
for (let i = ff.length - 2; !filename && i >= 0; i--) {
|
|
7438
|
+
filename = ff[i];
|
|
7439
|
+
}
|
|
7440
|
+
}
|
|
7441
|
+
for (const pattern of set) {
|
|
7442
|
+
let file2 = ff;
|
|
7443
|
+
if (options.matchBase && pattern.length === 1) {
|
|
7444
|
+
file2 = [filename];
|
|
7445
|
+
}
|
|
7446
|
+
const hit = this.matchOne(file2, pattern, partial);
|
|
7447
|
+
if (hit) {
|
|
7448
|
+
if (options.flipNegate) {
|
|
7449
|
+
return true;
|
|
7450
|
+
}
|
|
7451
|
+
return !this.negate;
|
|
7452
|
+
}
|
|
7453
|
+
}
|
|
7454
|
+
if (options.flipNegate) {
|
|
7455
|
+
return false;
|
|
7456
|
+
}
|
|
7457
|
+
return this.negate;
|
|
7458
|
+
}
|
|
7459
|
+
static defaults(def) {
|
|
7460
|
+
return minimatch.defaults(def).Minimatch;
|
|
7461
|
+
}
|
|
7462
|
+
};
|
|
7463
|
+
minimatch.AST = AST;
|
|
7464
|
+
minimatch.Minimatch = Minimatch;
|
|
7465
|
+
minimatch.escape = escape;
|
|
7466
|
+
minimatch.unescape = unescape;
|
|
5473
7467
|
|
|
5474
7468
|
// packages/isomorphic/stringUtils.ts
|
|
5475
7469
|
var ansiRegex = new RegExp("([\\u001B\\u009B][[\\]()#?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{0,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~])))", "g");
|
|
@@ -5479,14 +7473,33 @@ function isRegExp(obj) {
|
|
|
5479
7473
|
return obj instanceof RegExp || Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
5480
7474
|
}
|
|
5481
7475
|
|
|
5482
|
-
// packages/
|
|
7476
|
+
// packages/utils/env.ts
|
|
7477
|
+
function getFromENV(name) {
|
|
7478
|
+
let value = process.env[name];
|
|
7479
|
+
value = value === void 0 ? process.env[`npm_config_${name.toLowerCase()}`] : value;
|
|
7480
|
+
value = value === void 0 ? process.env[`npm_package_config_${name.toLowerCase()}`] : value;
|
|
7481
|
+
return value;
|
|
7482
|
+
}
|
|
7483
|
+
function getAsBooleanFromENV(name, defaultValue) {
|
|
7484
|
+
const value = getFromENV(name);
|
|
7485
|
+
if (value === "false" || value === "0")
|
|
7486
|
+
return false;
|
|
7487
|
+
if (value)
|
|
7488
|
+
return true;
|
|
7489
|
+
return !!defaultValue;
|
|
7490
|
+
}
|
|
7491
|
+
|
|
7492
|
+
// packages/utils/debug.ts
|
|
7493
|
+
var _debugMode = getFromENV("PWDEBUG") || "";
|
|
7494
|
+
var _isUnderTest = getAsBooleanFromENV("PWTEST_UNDER_TEST");
|
|
7495
|
+
|
|
7496
|
+
// packages/utils/stackTrace.ts
|
|
5483
7497
|
var re = new RegExp(
|
|
5484
7498
|
"^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"
|
|
5485
7499
|
);
|
|
7500
|
+
var _showInternalStackFrames = getAsBooleanFromENV("PWDEBUGIMPL");
|
|
5486
7501
|
|
|
5487
7502
|
// packages/playwright/src/util.ts
|
|
5488
|
-
var PLAYWRIGHT_TEST_PATH = import_path3.default.join(__dirname, "..");
|
|
5489
|
-
var PLAYWRIGHT_CORE_PATH = import_path3.default.dirname(require.resolve("playwright-core/package.json"));
|
|
5490
7503
|
function createFileMatcher(patterns) {
|
|
5491
7504
|
const reList = [];
|
|
5492
7505
|
const filePatterns = [];
|
|
@@ -5515,7 +7528,7 @@ function createFileMatcher(patterns) {
|
|
|
5515
7528
|
}
|
|
5516
7529
|
}
|
|
5517
7530
|
for (const pattern of filePatterns) {
|
|
5518
|
-
if ((
|
|
7531
|
+
if (minimatch(filePath, pattern, { nocase: true, dot: true }))
|
|
5519
7532
|
return true;
|
|
5520
7533
|
}
|
|
5521
7534
|
return false;
|
|
@@ -5586,11 +7599,11 @@ var kExtLookups = /* @__PURE__ */ new Map([
|
|
|
5586
7599
|
function resolveImportSpecifierExtension(resolved) {
|
|
5587
7600
|
if (fileExists(resolved))
|
|
5588
7601
|
return resolved;
|
|
5589
|
-
for (const [
|
|
5590
|
-
if (!resolved.endsWith(
|
|
7602
|
+
for (const [ext2, others] of kExtLookups) {
|
|
7603
|
+
if (!resolved.endsWith(ext2))
|
|
5591
7604
|
continue;
|
|
5592
7605
|
for (const other of others) {
|
|
5593
|
-
const modified = resolved.substring(0, resolved.length -
|
|
7606
|
+
const modified = resolved.substring(0, resolved.length - ext2.length) + other;
|
|
5594
7607
|
if (fileExists(modified))
|
|
5595
7608
|
return modified;
|
|
5596
7609
|
}
|
|
@@ -5888,8 +7901,8 @@ function installTransformIfNeeded() {
|
|
|
5888
7901
|
return;
|
|
5889
7902
|
}
|
|
5890
7903
|
const extensions = import_module2.default._extensions;
|
|
5891
|
-
for (const
|
|
5892
|
-
extensions[
|
|
7904
|
+
for (const ext2 of [".ts", ".cts", ".tsx", ".jsx"])
|
|
7905
|
+
extensions[ext2] = extensions[".js"];
|
|
5893
7906
|
}
|
|
5894
7907
|
function installCJSHooks() {
|
|
5895
7908
|
const originalResolveFilename = import_module2.default._resolveFilename;
|