wrangler 3.114.14 → 3.114.15

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.
@@ -19840,670 +19840,6 @@ var require_cli_table3 = __commonJS({
19840
19840
  }
19841
19841
  });
19842
19842
 
19843
- // ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js
19844
- var require_signals = __commonJS({
19845
- "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports2, module3) {
19846
- init_import_meta_url();
19847
- module3.exports = [
19848
- "SIGABRT",
19849
- "SIGALRM",
19850
- "SIGHUP",
19851
- "SIGINT",
19852
- "SIGTERM"
19853
- ];
19854
- if (process.platform !== "win32") {
19855
- module3.exports.push(
19856
- "SIGVTALRM",
19857
- "SIGXCPU",
19858
- "SIGXFSZ",
19859
- "SIGUSR2",
19860
- "SIGTRAP",
19861
- "SIGSYS",
19862
- "SIGQUIT",
19863
- "SIGIOT"
19864
- // should detect profiler and enable/disable accordingly.
19865
- // see #21
19866
- // 'SIGPROF'
19867
- );
19868
- }
19869
- if (process.platform === "linux") {
19870
- module3.exports.push(
19871
- "SIGIO",
19872
- "SIGPOLL",
19873
- "SIGPWR",
19874
- "SIGSTKFLT",
19875
- "SIGUNUSED"
19876
- );
19877
- }
19878
- }
19879
- });
19880
-
19881
- // ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
19882
- var require_signal_exit = __commonJS({
19883
- "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module3) {
19884
- init_import_meta_url();
19885
- var process11 = global.process;
19886
- var processOk = /* @__PURE__ */ __name(function(process12) {
19887
- return process12 && typeof process12 === "object" && typeof process12.removeListener === "function" && typeof process12.emit === "function" && typeof process12.reallyExit === "function" && typeof process12.listeners === "function" && typeof process12.kill === "function" && typeof process12.pid === "number" && typeof process12.on === "function";
19888
- }, "processOk");
19889
- if (!processOk(process11)) {
19890
- module3.exports = function() {
19891
- return function() {
19892
- };
19893
- };
19894
- } else {
19895
- assert38 = require("assert");
19896
- signals = require_signals();
19897
- isWin = /^win/i.test(process11.platform);
19898
- EE = require("events");
19899
- if (typeof EE !== "function") {
19900
- EE = EE.EventEmitter;
19901
- }
19902
- if (process11.__signal_exit_emitter__) {
19903
- emitter = process11.__signal_exit_emitter__;
19904
- } else {
19905
- emitter = process11.__signal_exit_emitter__ = new EE();
19906
- emitter.count = 0;
19907
- emitter.emitted = {};
19908
- }
19909
- if (!emitter.infinite) {
19910
- emitter.setMaxListeners(Infinity);
19911
- emitter.infinite = true;
19912
- }
19913
- module3.exports = function(cb2, opts) {
19914
- if (!processOk(global.process)) {
19915
- return function() {
19916
- };
19917
- }
19918
- assert38.equal(typeof cb2, "function", "a callback must be provided for exit handler");
19919
- if (loaded === false) {
19920
- load();
19921
- }
19922
- var ev = "exit";
19923
- if (opts && opts.alwaysLast) {
19924
- ev = "afterexit";
19925
- }
19926
- var remove = /* @__PURE__ */ __name(function() {
19927
- emitter.removeListener(ev, cb2);
19928
- if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
19929
- unload();
19930
- }
19931
- }, "remove");
19932
- emitter.on(ev, cb2);
19933
- return remove;
19934
- };
19935
- unload = /* @__PURE__ */ __name(function unload2() {
19936
- if (!loaded || !processOk(global.process)) {
19937
- return;
19938
- }
19939
- loaded = false;
19940
- signals.forEach(function(sig) {
19941
- try {
19942
- process11.removeListener(sig, sigListeners[sig]);
19943
- } catch (er) {
19944
- }
19945
- });
19946
- process11.emit = originalProcessEmit;
19947
- process11.reallyExit = originalProcessReallyExit;
19948
- emitter.count -= 1;
19949
- }, "unload");
19950
- module3.exports.unload = unload;
19951
- emit = /* @__PURE__ */ __name(function emit2(event, code, signal) {
19952
- if (emitter.emitted[event]) {
19953
- return;
19954
- }
19955
- emitter.emitted[event] = true;
19956
- emitter.emit(event, code, signal);
19957
- }, "emit");
19958
- sigListeners = {};
19959
- signals.forEach(function(sig) {
19960
- sigListeners[sig] = /* @__PURE__ */ __name(function listener() {
19961
- if (!processOk(global.process)) {
19962
- return;
19963
- }
19964
- var listeners = process11.listeners(sig);
19965
- if (listeners.length === emitter.count) {
19966
- unload();
19967
- emit("exit", null, sig);
19968
- emit("afterexit", null, sig);
19969
- if (isWin && sig === "SIGHUP") {
19970
- sig = "SIGINT";
19971
- }
19972
- process11.kill(process11.pid, sig);
19973
- }
19974
- }, "listener");
19975
- });
19976
- module3.exports.signals = function() {
19977
- return signals;
19978
- };
19979
- loaded = false;
19980
- load = /* @__PURE__ */ __name(function load2() {
19981
- if (loaded || !processOk(global.process)) {
19982
- return;
19983
- }
19984
- loaded = true;
19985
- emitter.count += 1;
19986
- signals = signals.filter(function(sig) {
19987
- try {
19988
- process11.on(sig, sigListeners[sig]);
19989
- return true;
19990
- } catch (er) {
19991
- return false;
19992
- }
19993
- });
19994
- process11.emit = processEmit;
19995
- process11.reallyExit = processReallyExit;
19996
- }, "load");
19997
- module3.exports.load = load;
19998
- originalProcessReallyExit = process11.reallyExit;
19999
- processReallyExit = /* @__PURE__ */ __name(function processReallyExit2(code) {
20000
- if (!processOk(global.process)) {
20001
- return;
20002
- }
20003
- process11.exitCode = code || /* istanbul ignore next */
20004
- 0;
20005
- emit("exit", process11.exitCode, null);
20006
- emit("afterexit", process11.exitCode, null);
20007
- originalProcessReallyExit.call(process11, process11.exitCode);
20008
- }, "processReallyExit");
20009
- originalProcessEmit = process11.emit;
20010
- processEmit = /* @__PURE__ */ __name(function processEmit2(ev, arg) {
20011
- if (ev === "exit" && processOk(global.process)) {
20012
- if (arg !== void 0) {
20013
- process11.exitCode = arg;
20014
- }
20015
- var ret = originalProcessEmit.apply(this, arguments);
20016
- emit("exit", process11.exitCode, null);
20017
- emit("afterexit", process11.exitCode, null);
20018
- return ret;
20019
- } else {
20020
- return originalProcessEmit.apply(this, arguments);
20021
- }
20022
- }, "processEmit");
20023
- }
20024
- var assert38;
20025
- var signals;
20026
- var isWin;
20027
- var EE;
20028
- var emitter;
20029
- var unload;
20030
- var emit;
20031
- var sigListeners;
20032
- var loaded;
20033
- var load;
20034
- var originalProcessReallyExit;
20035
- var processReallyExit;
20036
- var originalProcessEmit;
20037
- var processEmit;
20038
- }
20039
- });
20040
-
20041
- // ../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js
20042
- var require_ignore = __commonJS({
20043
- "../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(exports2, module3) {
20044
- init_import_meta_url();
20045
- function makeArray(subject) {
20046
- return Array.isArray(subject) ? subject : [subject];
20047
- }
20048
- __name(makeArray, "makeArray");
20049
- var EMPTY = "";
20050
- var SPACE2 = " ";
20051
- var ESCAPE = "\\";
20052
- var REGEX_TEST_BLANK_LINE = /^\s+$/;
20053
- var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
20054
- var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
20055
- var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
20056
- var REGEX_SPLITALL_CRLF = /\r?\n/g;
20057
- var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
20058
- var SLASH2 = "/";
20059
- var TMP_KEY_IGNORE = "node-ignore";
20060
- if (typeof Symbol !== "undefined") {
20061
- TMP_KEY_IGNORE = Symbol.for("node-ignore");
20062
- }
20063
- var KEY_IGNORE = TMP_KEY_IGNORE;
20064
- var define = /* @__PURE__ */ __name((object, key, value) => Object.defineProperty(object, key, { value }), "define");
20065
- var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
20066
- var RETURN_FALSE = /* @__PURE__ */ __name(() => false, "RETURN_FALSE");
20067
- var sanitizeRange = /* @__PURE__ */ __name((range) => range.replace(
20068
- REGEX_REGEXP_RANGE,
20069
- (match2, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match2 : EMPTY
20070
- ), "sanitizeRange");
20071
- var cleanRangeBackSlash = /* @__PURE__ */ __name((slashes) => {
20072
- const { length } = slashes;
20073
- return slashes.slice(0, length - length % 2);
20074
- }, "cleanRangeBackSlash");
20075
- var REPLACERS = [
20076
- [
20077
- // remove BOM
20078
- // TODO:
20079
- // Other similar zero-width characters?
20080
- /^\uFEFF/,
20081
- () => EMPTY
20082
- ],
20083
- // > Trailing spaces are ignored unless they are quoted with backslash ("\")
20084
- [
20085
- // (a\ ) -> (a )
20086
- // (a ) -> (a)
20087
- // (a \ ) -> (a )
20088
- /\\?\s+$/,
20089
- (match2) => match2.indexOf("\\") === 0 ? SPACE2 : EMPTY
20090
- ],
20091
- // replace (\ ) with ' '
20092
- [
20093
- /\\\s/g,
20094
- () => SPACE2
20095
- ],
20096
- // Escape metacharacters
20097
- // which is written down by users but means special for regular expressions.
20098
- // > There are 12 characters with special meanings:
20099
- // > - the backslash \,
20100
- // > - the caret ^,
20101
- // > - the dollar sign $,
20102
- // > - the period or dot .,
20103
- // > - the vertical bar or pipe symbol |,
20104
- // > - the question mark ?,
20105
- // > - the asterisk or star *,
20106
- // > - the plus sign +,
20107
- // > - the opening parenthesis (,
20108
- // > - the closing parenthesis ),
20109
- // > - and the opening square bracket [,
20110
- // > - the opening curly brace {,
20111
- // > These special characters are often called "metacharacters".
20112
- [
20113
- /[\\$.|*+(){^]/g,
20114
- (match2) => `\\${match2}`
20115
- ],
20116
- [
20117
- // > a question mark (?) matches a single character
20118
- /(?!\\)\?/g,
20119
- () => "[^/]"
20120
- ],
20121
- // leading slash
20122
- [
20123
- // > A leading slash matches the beginning of the pathname.
20124
- // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
20125
- // A leading slash matches the beginning of the pathname
20126
- /^\//,
20127
- () => "^"
20128
- ],
20129
- // replace special metacharacter slash after the leading slash
20130
- [
20131
- /\//g,
20132
- () => "\\/"
20133
- ],
20134
- [
20135
- // > A leading "**" followed by a slash means match in all directories.
20136
- // > For example, "**/foo" matches file or directory "foo" anywhere,
20137
- // > the same as pattern "foo".
20138
- // > "**/foo/bar" matches file or directory "bar" anywhere that is directly
20139
- // > under directory "foo".
20140
- // Notice that the '*'s have been replaced as '\\*'
20141
- /^\^*\\\*\\\*\\\//,
20142
- // '**/foo' <-> 'foo'
20143
- () => "^(?:.*\\/)?"
20144
- ],
20145
- // starting
20146
- [
20147
- // there will be no leading '/'
20148
- // (which has been replaced by section "leading slash")
20149
- // If starts with '**', adding a '^' to the regular expression also works
20150
- /^(?=[^^])/,
20151
- /* @__PURE__ */ __name(function startingReplacer() {
20152
- return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^";
20153
- }, "startingReplacer")
20154
- ],
20155
- // two globstars
20156
- [
20157
- // Use lookahead assertions so that we could match more than one `'/**'`
20158
- /\\\/\\\*\\\*(?=\\\/|$)/g,
20159
- // Zero, one or several directories
20160
- // should not use '*', or it will be replaced by the next replacer
20161
- // Check if it is not the last `'/**'`
20162
- (_4, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
20163
- ],
20164
- // normal intermediate wildcards
20165
- [
20166
- // Never replace escaped '*'
20167
- // ignore rule '\*' will match the path '*'
20168
- // 'abc.*/' -> go
20169
- // 'abc.*' -> skip this rule,
20170
- // coz trailing single wildcard will be handed by [trailing wildcard]
20171
- /(^|[^\\]+)(\\\*)+(?=.+)/g,
20172
- // '*.js' matches '.js'
20173
- // '*.js' doesn't match 'abc'
20174
- (_4, p1, p22) => {
20175
- const unescaped = p22.replace(/\\\*/g, "[^\\/]*");
20176
- return p1 + unescaped;
20177
- }
20178
- ],
20179
- [
20180
- // unescape, revert step 3 except for back slash
20181
- // For example, if a user escape a '\\*',
20182
- // after step 3, the result will be '\\\\\\*'
20183
- /\\\\\\(?=[$.|*+(){^])/g,
20184
- () => ESCAPE
20185
- ],
20186
- [
20187
- // '\\\\' -> '\\'
20188
- /\\\\/g,
20189
- () => ESCAPE
20190
- ],
20191
- [
20192
- // > The range notation, e.g. [a-zA-Z],
20193
- // > can be used to match one of the characters in a range.
20194
- // `\` is escaped by step 3
20195
- /(\\)?\[([^\]/]*?)(\\*)($|\])/g,
20196
- (match2, leadEscape, range, endEscape, close2) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close2}` : close2 === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
20197
- ],
20198
- // ending
20199
- [
20200
- // 'js' will not match 'js.'
20201
- // 'ab' will not match 'abc'
20202
- /(?:[^*])$/,
20203
- // WTF!
20204
- // https://git-scm.com/docs/gitignore
20205
- // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
20206
- // which re-fixes #24, #38
20207
- // > If there is a separator at the end of the pattern then the pattern
20208
- // > will only match directories, otherwise the pattern can match both
20209
- // > files and directories.
20210
- // 'js*' will not match 'a.js'
20211
- // 'js/' will not match 'a.js'
20212
- // 'js' will match 'a.js' and 'a.js/'
20213
- (match2) => /\/$/.test(match2) ? `${match2}$` : `${match2}(?=$|\\/$)`
20214
- ],
20215
- // trailing wildcard
20216
- [
20217
- /(\^|\\\/)?\\\*$/,
20218
- (_4, p1) => {
20219
- const prefix = p1 ? `${p1}[^/]+` : "[^/]*";
20220
- return `${prefix}(?=$|\\/$)`;
20221
- }
20222
- ]
20223
- ];
20224
- var regexCache = /* @__PURE__ */ Object.create(null);
20225
- var makeRegex = /* @__PURE__ */ __name((pattern, ignoreCase) => {
20226
- let source = regexCache[pattern];
20227
- if (!source) {
20228
- source = REPLACERS.reduce(
20229
- (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
20230
- pattern
20231
- );
20232
- regexCache[pattern] = source;
20233
- }
20234
- return ignoreCase ? new RegExp(source, "i") : new RegExp(source);
20235
- }, "makeRegex");
20236
- var isString4 = /* @__PURE__ */ __name((subject) => typeof subject === "string", "isString");
20237
- var checkPattern = /* @__PURE__ */ __name((pattern) => pattern && isString4(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0, "checkPattern");
20238
- var splitPattern = /* @__PURE__ */ __name((pattern) => pattern.split(REGEX_SPLITALL_CRLF), "splitPattern");
20239
- var IgnoreRule = class {
20240
- constructor(origin, pattern, negative, regex2) {
20241
- this.origin = origin;
20242
- this.pattern = pattern;
20243
- this.negative = negative;
20244
- this.regex = regex2;
20245
- }
20246
- };
20247
- __name(IgnoreRule, "IgnoreRule");
20248
- var createRule = /* @__PURE__ */ __name((pattern, ignoreCase) => {
20249
- const origin = pattern;
20250
- let negative = false;
20251
- if (pattern.indexOf("!") === 0) {
20252
- negative = true;
20253
- pattern = pattern.substr(1);
20254
- }
20255
- pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
20256
- const regex2 = makeRegex(pattern, ignoreCase);
20257
- return new IgnoreRule(
20258
- origin,
20259
- pattern,
20260
- negative,
20261
- regex2
20262
- );
20263
- }, "createRule");
20264
- var throwError = /* @__PURE__ */ __name((message, Ctor) => {
20265
- throw new Ctor(message);
20266
- }, "throwError");
20267
- var checkPath = /* @__PURE__ */ __name((path72, originalPath, doThrow) => {
20268
- if (!isString4(path72)) {
20269
- return doThrow(
20270
- `path must be a string, but got \`${originalPath}\``,
20271
- TypeError
20272
- );
20273
- }
20274
- if (!path72) {
20275
- return doThrow(`path must not be empty`, TypeError);
20276
- }
20277
- if (checkPath.isNotRelative(path72)) {
20278
- const r7 = "`path.relative()`d";
20279
- return doThrow(
20280
- `path should be a ${r7} string, but got "${originalPath}"`,
20281
- RangeError
20282
- );
20283
- }
20284
- return true;
20285
- }, "checkPath");
20286
- var isNotRelative = /* @__PURE__ */ __name((path72) => REGEX_TEST_INVALID_PATH.test(path72), "isNotRelative");
20287
- checkPath.isNotRelative = isNotRelative;
20288
- checkPath.convert = (p6) => p6;
20289
- var Ignore = class {
20290
- constructor({
20291
- ignorecase = true,
20292
- ignoreCase = ignorecase,
20293
- allowRelativePaths = false
20294
- } = {}) {
20295
- define(this, KEY_IGNORE, true);
20296
- this._rules = [];
20297
- this._ignoreCase = ignoreCase;
20298
- this._allowRelativePaths = allowRelativePaths;
20299
- this._initCache();
20300
- }
20301
- _initCache() {
20302
- this._ignoreCache = /* @__PURE__ */ Object.create(null);
20303
- this._testCache = /* @__PURE__ */ Object.create(null);
20304
- }
20305
- _addPattern(pattern) {
20306
- if (pattern && pattern[KEY_IGNORE]) {
20307
- this._rules = this._rules.concat(pattern._rules);
20308
- this._added = true;
20309
- return;
20310
- }
20311
- if (checkPattern(pattern)) {
20312
- const rule = createRule(pattern, this._ignoreCase);
20313
- this._added = true;
20314
- this._rules.push(rule);
20315
- }
20316
- }
20317
- // @param {Array<string> | string | Ignore} pattern
20318
- add(pattern) {
20319
- this._added = false;
20320
- makeArray(
20321
- isString4(pattern) ? splitPattern(pattern) : pattern
20322
- ).forEach(this._addPattern, this);
20323
- if (this._added) {
20324
- this._initCache();
20325
- }
20326
- return this;
20327
- }
20328
- // legacy
20329
- addPattern(pattern) {
20330
- return this.add(pattern);
20331
- }
20332
- // | ignored : unignored
20333
- // negative | 0:0 | 0:1 | 1:0 | 1:1
20334
- // -------- | ------- | ------- | ------- | --------
20335
- // 0 | TEST | TEST | SKIP | X
20336
- // 1 | TESTIF | SKIP | TEST | X
20337
- // - SKIP: always skip
20338
- // - TEST: always test
20339
- // - TESTIF: only test if checkUnignored
20340
- // - X: that never happen
20341
- // @param {boolean} whether should check if the path is unignored,
20342
- // setting `checkUnignored` to `false` could reduce additional
20343
- // path matching.
20344
- // @returns {TestResult} true if a file is ignored
20345
- _testOne(path72, checkUnignored) {
20346
- let ignored = false;
20347
- let unignored = false;
20348
- this._rules.forEach((rule) => {
20349
- const { negative } = rule;
20350
- if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
20351
- return;
20352
- }
20353
- const matched = rule.regex.test(path72);
20354
- if (matched) {
20355
- ignored = !negative;
20356
- unignored = negative;
20357
- }
20358
- });
20359
- return {
20360
- ignored,
20361
- unignored
20362
- };
20363
- }
20364
- // @returns {TestResult}
20365
- _test(originalPath, cache6, checkUnignored, slices) {
20366
- const path72 = originalPath && checkPath.convert(originalPath);
20367
- checkPath(
20368
- path72,
20369
- originalPath,
20370
- this._allowRelativePaths ? RETURN_FALSE : throwError
20371
- );
20372
- return this._t(path72, cache6, checkUnignored, slices);
20373
- }
20374
- _t(path72, cache6, checkUnignored, slices) {
20375
- if (path72 in cache6) {
20376
- return cache6[path72];
20377
- }
20378
- if (!slices) {
20379
- slices = path72.split(SLASH2);
20380
- }
20381
- slices.pop();
20382
- if (!slices.length) {
20383
- return cache6[path72] = this._testOne(path72, checkUnignored);
20384
- }
20385
- const parent = this._t(
20386
- slices.join(SLASH2) + SLASH2,
20387
- cache6,
20388
- checkUnignored,
20389
- slices
20390
- );
20391
- return cache6[path72] = parent.ignored ? parent : this._testOne(path72, checkUnignored);
20392
- }
20393
- ignores(path72) {
20394
- return this._test(path72, this._ignoreCache, false).ignored;
20395
- }
20396
- createFilter() {
20397
- return (path72) => !this.ignores(path72);
20398
- }
20399
- filter(paths) {
20400
- return makeArray(paths).filter(this.createFilter());
20401
- }
20402
- // @returns {TestResult}
20403
- test(path72) {
20404
- return this._test(path72, this._testCache, true);
20405
- }
20406
- };
20407
- __name(Ignore, "Ignore");
20408
- var factory = /* @__PURE__ */ __name((options32) => new Ignore(options32), "factory");
20409
- var isPathValid = /* @__PURE__ */ __name((path72) => checkPath(path72 && checkPath.convert(path72), path72, RETURN_FALSE), "isPathValid");
20410
- factory.isPathValid = isPathValid;
20411
- factory.default = factory;
20412
- module3.exports = factory;
20413
- if (
20414
- // Detect `process` so that it can run in browsers.
20415
- typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
20416
- ) {
20417
- const makePosix = /* @__PURE__ */ __name((str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"), "makePosix");
20418
- checkPath.convert = makePosix;
20419
- const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
20420
- checkPath.isNotRelative = (path72) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path72) || isNotRelative(path72);
20421
- }
20422
- }
20423
- });
20424
-
20425
- // ../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/Mime.js
20426
- var require_Mime = __commonJS({
20427
- "../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/Mime.js"(exports2, module3) {
20428
- "use strict";
20429
- init_import_meta_url();
20430
- function Mime() {
20431
- this._types = /* @__PURE__ */ Object.create(null);
20432
- this._extensions = /* @__PURE__ */ Object.create(null);
20433
- for (let i5 = 0; i5 < arguments.length; i5++) {
20434
- this.define(arguments[i5]);
20435
- }
20436
- this.define = this.define.bind(this);
20437
- this.getType = this.getType.bind(this);
20438
- this.getExtension = this.getExtension.bind(this);
20439
- }
20440
- __name(Mime, "Mime");
20441
- Mime.prototype.define = function(typeMap, force) {
20442
- for (let type in typeMap) {
20443
- let extensions = typeMap[type].map(function(t7) {
20444
- return t7.toLowerCase();
20445
- });
20446
- type = type.toLowerCase();
20447
- for (let i5 = 0; i5 < extensions.length; i5++) {
20448
- const ext = extensions[i5];
20449
- if (ext[0] === "*") {
20450
- continue;
20451
- }
20452
- if (!force && ext in this._types) {
20453
- throw new Error(
20454
- '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 + '".'
20455
- );
20456
- }
20457
- this._types[ext] = type;
20458
- }
20459
- if (force || !this._extensions[type]) {
20460
- const ext = extensions[0];
20461
- this._extensions[type] = ext[0] !== "*" ? ext : ext.substr(1);
20462
- }
20463
- }
20464
- };
20465
- Mime.prototype.getType = function(path72) {
20466
- path72 = String(path72);
20467
- let last = path72.replace(/^.*[/\\]/, "").toLowerCase();
20468
- let ext = last.replace(/^.*\./, "").toLowerCase();
20469
- let hasPath = last.length < path72.length;
20470
- let hasDot = ext.length < last.length - 1;
20471
- return (hasDot || !hasPath) && this._types[ext] || null;
20472
- };
20473
- Mime.prototype.getExtension = function(type) {
20474
- type = /^\s*([^;\s]*)/.test(type) && RegExp.$1;
20475
- return type && this._extensions[type.toLowerCase()] || null;
20476
- };
20477
- module3.exports = Mime;
20478
- }
20479
- });
20480
-
20481
- // ../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/types/standard.js
20482
- var require_standard = __commonJS({
20483
- "../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/types/standard.js"(exports2, module3) {
20484
- init_import_meta_url();
20485
- module3.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"] };
20486
- }
20487
- });
20488
-
20489
- // ../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/types/other.js
20490
- var require_other = __commonJS({
20491
- "../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/types/other.js"(exports2, module3) {
20492
- init_import_meta_url();
20493
- module3.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"] };
20494
- }
20495
- });
20496
-
20497
- // ../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/index.js
20498
- var require_mime = __commonJS({
20499
- "../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/index.js"(exports2, module3) {
20500
- "use strict";
20501
- init_import_meta_url();
20502
- var Mime = require_Mime();
20503
- module3.exports = new Mime(require_standard(), require_other());
20504
- }
20505
- });
20506
-
20507
19843
  // ../../node_modules/.pnpm/@iarna+toml@3.0.0/node_modules/@iarna/toml/lib/parser.js
20508
19844
  var require_parser = __commonJS({
20509
19845
  "../../node_modules/.pnpm/@iarna+toml@3.0.0/node_modules/@iarna/toml/lib/parser.js"(exports2, module3) {
@@ -22639,6 +21975,670 @@ var require_toml = __commonJS({
22639
21975
  }
22640
21976
  });
22641
21977
 
21978
+ // ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js
21979
+ var require_signals = __commonJS({
21980
+ "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports2, module3) {
21981
+ init_import_meta_url();
21982
+ module3.exports = [
21983
+ "SIGABRT",
21984
+ "SIGALRM",
21985
+ "SIGHUP",
21986
+ "SIGINT",
21987
+ "SIGTERM"
21988
+ ];
21989
+ if (process.platform !== "win32") {
21990
+ module3.exports.push(
21991
+ "SIGVTALRM",
21992
+ "SIGXCPU",
21993
+ "SIGXFSZ",
21994
+ "SIGUSR2",
21995
+ "SIGTRAP",
21996
+ "SIGSYS",
21997
+ "SIGQUIT",
21998
+ "SIGIOT"
21999
+ // should detect profiler and enable/disable accordingly.
22000
+ // see #21
22001
+ // 'SIGPROF'
22002
+ );
22003
+ }
22004
+ if (process.platform === "linux") {
22005
+ module3.exports.push(
22006
+ "SIGIO",
22007
+ "SIGPOLL",
22008
+ "SIGPWR",
22009
+ "SIGSTKFLT",
22010
+ "SIGUNUSED"
22011
+ );
22012
+ }
22013
+ }
22014
+ });
22015
+
22016
+ // ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
22017
+ var require_signal_exit = __commonJS({
22018
+ "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module3) {
22019
+ init_import_meta_url();
22020
+ var process11 = global.process;
22021
+ var processOk = /* @__PURE__ */ __name(function(process12) {
22022
+ return process12 && typeof process12 === "object" && typeof process12.removeListener === "function" && typeof process12.emit === "function" && typeof process12.reallyExit === "function" && typeof process12.listeners === "function" && typeof process12.kill === "function" && typeof process12.pid === "number" && typeof process12.on === "function";
22023
+ }, "processOk");
22024
+ if (!processOk(process11)) {
22025
+ module3.exports = function() {
22026
+ return function() {
22027
+ };
22028
+ };
22029
+ } else {
22030
+ assert38 = require("assert");
22031
+ signals = require_signals();
22032
+ isWin = /^win/i.test(process11.platform);
22033
+ EE = require("events");
22034
+ if (typeof EE !== "function") {
22035
+ EE = EE.EventEmitter;
22036
+ }
22037
+ if (process11.__signal_exit_emitter__) {
22038
+ emitter = process11.__signal_exit_emitter__;
22039
+ } else {
22040
+ emitter = process11.__signal_exit_emitter__ = new EE();
22041
+ emitter.count = 0;
22042
+ emitter.emitted = {};
22043
+ }
22044
+ if (!emitter.infinite) {
22045
+ emitter.setMaxListeners(Infinity);
22046
+ emitter.infinite = true;
22047
+ }
22048
+ module3.exports = function(cb2, opts) {
22049
+ if (!processOk(global.process)) {
22050
+ return function() {
22051
+ };
22052
+ }
22053
+ assert38.equal(typeof cb2, "function", "a callback must be provided for exit handler");
22054
+ if (loaded === false) {
22055
+ load();
22056
+ }
22057
+ var ev = "exit";
22058
+ if (opts && opts.alwaysLast) {
22059
+ ev = "afterexit";
22060
+ }
22061
+ var remove = /* @__PURE__ */ __name(function() {
22062
+ emitter.removeListener(ev, cb2);
22063
+ if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
22064
+ unload();
22065
+ }
22066
+ }, "remove");
22067
+ emitter.on(ev, cb2);
22068
+ return remove;
22069
+ };
22070
+ unload = /* @__PURE__ */ __name(function unload2() {
22071
+ if (!loaded || !processOk(global.process)) {
22072
+ return;
22073
+ }
22074
+ loaded = false;
22075
+ signals.forEach(function(sig) {
22076
+ try {
22077
+ process11.removeListener(sig, sigListeners[sig]);
22078
+ } catch (er) {
22079
+ }
22080
+ });
22081
+ process11.emit = originalProcessEmit;
22082
+ process11.reallyExit = originalProcessReallyExit;
22083
+ emitter.count -= 1;
22084
+ }, "unload");
22085
+ module3.exports.unload = unload;
22086
+ emit = /* @__PURE__ */ __name(function emit2(event, code, signal) {
22087
+ if (emitter.emitted[event]) {
22088
+ return;
22089
+ }
22090
+ emitter.emitted[event] = true;
22091
+ emitter.emit(event, code, signal);
22092
+ }, "emit");
22093
+ sigListeners = {};
22094
+ signals.forEach(function(sig) {
22095
+ sigListeners[sig] = /* @__PURE__ */ __name(function listener() {
22096
+ if (!processOk(global.process)) {
22097
+ return;
22098
+ }
22099
+ var listeners = process11.listeners(sig);
22100
+ if (listeners.length === emitter.count) {
22101
+ unload();
22102
+ emit("exit", null, sig);
22103
+ emit("afterexit", null, sig);
22104
+ if (isWin && sig === "SIGHUP") {
22105
+ sig = "SIGINT";
22106
+ }
22107
+ process11.kill(process11.pid, sig);
22108
+ }
22109
+ }, "listener");
22110
+ });
22111
+ module3.exports.signals = function() {
22112
+ return signals;
22113
+ };
22114
+ loaded = false;
22115
+ load = /* @__PURE__ */ __name(function load2() {
22116
+ if (loaded || !processOk(global.process)) {
22117
+ return;
22118
+ }
22119
+ loaded = true;
22120
+ emitter.count += 1;
22121
+ signals = signals.filter(function(sig) {
22122
+ try {
22123
+ process11.on(sig, sigListeners[sig]);
22124
+ return true;
22125
+ } catch (er) {
22126
+ return false;
22127
+ }
22128
+ });
22129
+ process11.emit = processEmit;
22130
+ process11.reallyExit = processReallyExit;
22131
+ }, "load");
22132
+ module3.exports.load = load;
22133
+ originalProcessReallyExit = process11.reallyExit;
22134
+ processReallyExit = /* @__PURE__ */ __name(function processReallyExit2(code) {
22135
+ if (!processOk(global.process)) {
22136
+ return;
22137
+ }
22138
+ process11.exitCode = code || /* istanbul ignore next */
22139
+ 0;
22140
+ emit("exit", process11.exitCode, null);
22141
+ emit("afterexit", process11.exitCode, null);
22142
+ originalProcessReallyExit.call(process11, process11.exitCode);
22143
+ }, "processReallyExit");
22144
+ originalProcessEmit = process11.emit;
22145
+ processEmit = /* @__PURE__ */ __name(function processEmit2(ev, arg) {
22146
+ if (ev === "exit" && processOk(global.process)) {
22147
+ if (arg !== void 0) {
22148
+ process11.exitCode = arg;
22149
+ }
22150
+ var ret = originalProcessEmit.apply(this, arguments);
22151
+ emit("exit", process11.exitCode, null);
22152
+ emit("afterexit", process11.exitCode, null);
22153
+ return ret;
22154
+ } else {
22155
+ return originalProcessEmit.apply(this, arguments);
22156
+ }
22157
+ }, "processEmit");
22158
+ }
22159
+ var assert38;
22160
+ var signals;
22161
+ var isWin;
22162
+ var EE;
22163
+ var emitter;
22164
+ var unload;
22165
+ var emit;
22166
+ var sigListeners;
22167
+ var loaded;
22168
+ var load;
22169
+ var originalProcessReallyExit;
22170
+ var processReallyExit;
22171
+ var originalProcessEmit;
22172
+ var processEmit;
22173
+ }
22174
+ });
22175
+
22176
+ // ../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js
22177
+ var require_ignore = __commonJS({
22178
+ "../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(exports2, module3) {
22179
+ init_import_meta_url();
22180
+ function makeArray(subject) {
22181
+ return Array.isArray(subject) ? subject : [subject];
22182
+ }
22183
+ __name(makeArray, "makeArray");
22184
+ var EMPTY = "";
22185
+ var SPACE2 = " ";
22186
+ var ESCAPE = "\\";
22187
+ var REGEX_TEST_BLANK_LINE = /^\s+$/;
22188
+ var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
22189
+ var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
22190
+ var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
22191
+ var REGEX_SPLITALL_CRLF = /\r?\n/g;
22192
+ var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
22193
+ var SLASH2 = "/";
22194
+ var TMP_KEY_IGNORE = "node-ignore";
22195
+ if (typeof Symbol !== "undefined") {
22196
+ TMP_KEY_IGNORE = Symbol.for("node-ignore");
22197
+ }
22198
+ var KEY_IGNORE = TMP_KEY_IGNORE;
22199
+ var define = /* @__PURE__ */ __name((object, key, value) => Object.defineProperty(object, key, { value }), "define");
22200
+ var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
22201
+ var RETURN_FALSE = /* @__PURE__ */ __name(() => false, "RETURN_FALSE");
22202
+ var sanitizeRange = /* @__PURE__ */ __name((range) => range.replace(
22203
+ REGEX_REGEXP_RANGE,
22204
+ (match2, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match2 : EMPTY
22205
+ ), "sanitizeRange");
22206
+ var cleanRangeBackSlash = /* @__PURE__ */ __name((slashes) => {
22207
+ const { length } = slashes;
22208
+ return slashes.slice(0, length - length % 2);
22209
+ }, "cleanRangeBackSlash");
22210
+ var REPLACERS = [
22211
+ [
22212
+ // remove BOM
22213
+ // TODO:
22214
+ // Other similar zero-width characters?
22215
+ /^\uFEFF/,
22216
+ () => EMPTY
22217
+ ],
22218
+ // > Trailing spaces are ignored unless they are quoted with backslash ("\")
22219
+ [
22220
+ // (a\ ) -> (a )
22221
+ // (a ) -> (a)
22222
+ // (a \ ) -> (a )
22223
+ /\\?\s+$/,
22224
+ (match2) => match2.indexOf("\\") === 0 ? SPACE2 : EMPTY
22225
+ ],
22226
+ // replace (\ ) with ' '
22227
+ [
22228
+ /\\\s/g,
22229
+ () => SPACE2
22230
+ ],
22231
+ // Escape metacharacters
22232
+ // which is written down by users but means special for regular expressions.
22233
+ // > There are 12 characters with special meanings:
22234
+ // > - the backslash \,
22235
+ // > - the caret ^,
22236
+ // > - the dollar sign $,
22237
+ // > - the period or dot .,
22238
+ // > - the vertical bar or pipe symbol |,
22239
+ // > - the question mark ?,
22240
+ // > - the asterisk or star *,
22241
+ // > - the plus sign +,
22242
+ // > - the opening parenthesis (,
22243
+ // > - the closing parenthesis ),
22244
+ // > - and the opening square bracket [,
22245
+ // > - the opening curly brace {,
22246
+ // > These special characters are often called "metacharacters".
22247
+ [
22248
+ /[\\$.|*+(){^]/g,
22249
+ (match2) => `\\${match2}`
22250
+ ],
22251
+ [
22252
+ // > a question mark (?) matches a single character
22253
+ /(?!\\)\?/g,
22254
+ () => "[^/]"
22255
+ ],
22256
+ // leading slash
22257
+ [
22258
+ // > A leading slash matches the beginning of the pathname.
22259
+ // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
22260
+ // A leading slash matches the beginning of the pathname
22261
+ /^\//,
22262
+ () => "^"
22263
+ ],
22264
+ // replace special metacharacter slash after the leading slash
22265
+ [
22266
+ /\//g,
22267
+ () => "\\/"
22268
+ ],
22269
+ [
22270
+ // > A leading "**" followed by a slash means match in all directories.
22271
+ // > For example, "**/foo" matches file or directory "foo" anywhere,
22272
+ // > the same as pattern "foo".
22273
+ // > "**/foo/bar" matches file or directory "bar" anywhere that is directly
22274
+ // > under directory "foo".
22275
+ // Notice that the '*'s have been replaced as '\\*'
22276
+ /^\^*\\\*\\\*\\\//,
22277
+ // '**/foo' <-> 'foo'
22278
+ () => "^(?:.*\\/)?"
22279
+ ],
22280
+ // starting
22281
+ [
22282
+ // there will be no leading '/'
22283
+ // (which has been replaced by section "leading slash")
22284
+ // If starts with '**', adding a '^' to the regular expression also works
22285
+ /^(?=[^^])/,
22286
+ /* @__PURE__ */ __name(function startingReplacer() {
22287
+ return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^";
22288
+ }, "startingReplacer")
22289
+ ],
22290
+ // two globstars
22291
+ [
22292
+ // Use lookahead assertions so that we could match more than one `'/**'`
22293
+ /\\\/\\\*\\\*(?=\\\/|$)/g,
22294
+ // Zero, one or several directories
22295
+ // should not use '*', or it will be replaced by the next replacer
22296
+ // Check if it is not the last `'/**'`
22297
+ (_4, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
22298
+ ],
22299
+ // normal intermediate wildcards
22300
+ [
22301
+ // Never replace escaped '*'
22302
+ // ignore rule '\*' will match the path '*'
22303
+ // 'abc.*/' -> go
22304
+ // 'abc.*' -> skip this rule,
22305
+ // coz trailing single wildcard will be handed by [trailing wildcard]
22306
+ /(^|[^\\]+)(\\\*)+(?=.+)/g,
22307
+ // '*.js' matches '.js'
22308
+ // '*.js' doesn't match 'abc'
22309
+ (_4, p1, p22) => {
22310
+ const unescaped = p22.replace(/\\\*/g, "[^\\/]*");
22311
+ return p1 + unescaped;
22312
+ }
22313
+ ],
22314
+ [
22315
+ // unescape, revert step 3 except for back slash
22316
+ // For example, if a user escape a '\\*',
22317
+ // after step 3, the result will be '\\\\\\*'
22318
+ /\\\\\\(?=[$.|*+(){^])/g,
22319
+ () => ESCAPE
22320
+ ],
22321
+ [
22322
+ // '\\\\' -> '\\'
22323
+ /\\\\/g,
22324
+ () => ESCAPE
22325
+ ],
22326
+ [
22327
+ // > The range notation, e.g. [a-zA-Z],
22328
+ // > can be used to match one of the characters in a range.
22329
+ // `\` is escaped by step 3
22330
+ /(\\)?\[([^\]/]*?)(\\*)($|\])/g,
22331
+ (match2, leadEscape, range, endEscape, close2) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close2}` : close2 === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
22332
+ ],
22333
+ // ending
22334
+ [
22335
+ // 'js' will not match 'js.'
22336
+ // 'ab' will not match 'abc'
22337
+ /(?:[^*])$/,
22338
+ // WTF!
22339
+ // https://git-scm.com/docs/gitignore
22340
+ // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
22341
+ // which re-fixes #24, #38
22342
+ // > If there is a separator at the end of the pattern then the pattern
22343
+ // > will only match directories, otherwise the pattern can match both
22344
+ // > files and directories.
22345
+ // 'js*' will not match 'a.js'
22346
+ // 'js/' will not match 'a.js'
22347
+ // 'js' will match 'a.js' and 'a.js/'
22348
+ (match2) => /\/$/.test(match2) ? `${match2}$` : `${match2}(?=$|\\/$)`
22349
+ ],
22350
+ // trailing wildcard
22351
+ [
22352
+ /(\^|\\\/)?\\\*$/,
22353
+ (_4, p1) => {
22354
+ const prefix = p1 ? `${p1}[^/]+` : "[^/]*";
22355
+ return `${prefix}(?=$|\\/$)`;
22356
+ }
22357
+ ]
22358
+ ];
22359
+ var regexCache = /* @__PURE__ */ Object.create(null);
22360
+ var makeRegex = /* @__PURE__ */ __name((pattern, ignoreCase) => {
22361
+ let source = regexCache[pattern];
22362
+ if (!source) {
22363
+ source = REPLACERS.reduce(
22364
+ (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
22365
+ pattern
22366
+ );
22367
+ regexCache[pattern] = source;
22368
+ }
22369
+ return ignoreCase ? new RegExp(source, "i") : new RegExp(source);
22370
+ }, "makeRegex");
22371
+ var isString4 = /* @__PURE__ */ __name((subject) => typeof subject === "string", "isString");
22372
+ var checkPattern = /* @__PURE__ */ __name((pattern) => pattern && isString4(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0, "checkPattern");
22373
+ var splitPattern = /* @__PURE__ */ __name((pattern) => pattern.split(REGEX_SPLITALL_CRLF), "splitPattern");
22374
+ var IgnoreRule = class {
22375
+ constructor(origin, pattern, negative, regex2) {
22376
+ this.origin = origin;
22377
+ this.pattern = pattern;
22378
+ this.negative = negative;
22379
+ this.regex = regex2;
22380
+ }
22381
+ };
22382
+ __name(IgnoreRule, "IgnoreRule");
22383
+ var createRule = /* @__PURE__ */ __name((pattern, ignoreCase) => {
22384
+ const origin = pattern;
22385
+ let negative = false;
22386
+ if (pattern.indexOf("!") === 0) {
22387
+ negative = true;
22388
+ pattern = pattern.substr(1);
22389
+ }
22390
+ pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
22391
+ const regex2 = makeRegex(pattern, ignoreCase);
22392
+ return new IgnoreRule(
22393
+ origin,
22394
+ pattern,
22395
+ negative,
22396
+ regex2
22397
+ );
22398
+ }, "createRule");
22399
+ var throwError = /* @__PURE__ */ __name((message, Ctor) => {
22400
+ throw new Ctor(message);
22401
+ }, "throwError");
22402
+ var checkPath = /* @__PURE__ */ __name((path72, originalPath, doThrow) => {
22403
+ if (!isString4(path72)) {
22404
+ return doThrow(
22405
+ `path must be a string, but got \`${originalPath}\``,
22406
+ TypeError
22407
+ );
22408
+ }
22409
+ if (!path72) {
22410
+ return doThrow(`path must not be empty`, TypeError);
22411
+ }
22412
+ if (checkPath.isNotRelative(path72)) {
22413
+ const r7 = "`path.relative()`d";
22414
+ return doThrow(
22415
+ `path should be a ${r7} string, but got "${originalPath}"`,
22416
+ RangeError
22417
+ );
22418
+ }
22419
+ return true;
22420
+ }, "checkPath");
22421
+ var isNotRelative = /* @__PURE__ */ __name((path72) => REGEX_TEST_INVALID_PATH.test(path72), "isNotRelative");
22422
+ checkPath.isNotRelative = isNotRelative;
22423
+ checkPath.convert = (p6) => p6;
22424
+ var Ignore = class {
22425
+ constructor({
22426
+ ignorecase = true,
22427
+ ignoreCase = ignorecase,
22428
+ allowRelativePaths = false
22429
+ } = {}) {
22430
+ define(this, KEY_IGNORE, true);
22431
+ this._rules = [];
22432
+ this._ignoreCase = ignoreCase;
22433
+ this._allowRelativePaths = allowRelativePaths;
22434
+ this._initCache();
22435
+ }
22436
+ _initCache() {
22437
+ this._ignoreCache = /* @__PURE__ */ Object.create(null);
22438
+ this._testCache = /* @__PURE__ */ Object.create(null);
22439
+ }
22440
+ _addPattern(pattern) {
22441
+ if (pattern && pattern[KEY_IGNORE]) {
22442
+ this._rules = this._rules.concat(pattern._rules);
22443
+ this._added = true;
22444
+ return;
22445
+ }
22446
+ if (checkPattern(pattern)) {
22447
+ const rule = createRule(pattern, this._ignoreCase);
22448
+ this._added = true;
22449
+ this._rules.push(rule);
22450
+ }
22451
+ }
22452
+ // @param {Array<string> | string | Ignore} pattern
22453
+ add(pattern) {
22454
+ this._added = false;
22455
+ makeArray(
22456
+ isString4(pattern) ? splitPattern(pattern) : pattern
22457
+ ).forEach(this._addPattern, this);
22458
+ if (this._added) {
22459
+ this._initCache();
22460
+ }
22461
+ return this;
22462
+ }
22463
+ // legacy
22464
+ addPattern(pattern) {
22465
+ return this.add(pattern);
22466
+ }
22467
+ // | ignored : unignored
22468
+ // negative | 0:0 | 0:1 | 1:0 | 1:1
22469
+ // -------- | ------- | ------- | ------- | --------
22470
+ // 0 | TEST | TEST | SKIP | X
22471
+ // 1 | TESTIF | SKIP | TEST | X
22472
+ // - SKIP: always skip
22473
+ // - TEST: always test
22474
+ // - TESTIF: only test if checkUnignored
22475
+ // - X: that never happen
22476
+ // @param {boolean} whether should check if the path is unignored,
22477
+ // setting `checkUnignored` to `false` could reduce additional
22478
+ // path matching.
22479
+ // @returns {TestResult} true if a file is ignored
22480
+ _testOne(path72, checkUnignored) {
22481
+ let ignored = false;
22482
+ let unignored = false;
22483
+ this._rules.forEach((rule) => {
22484
+ const { negative } = rule;
22485
+ if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
22486
+ return;
22487
+ }
22488
+ const matched = rule.regex.test(path72);
22489
+ if (matched) {
22490
+ ignored = !negative;
22491
+ unignored = negative;
22492
+ }
22493
+ });
22494
+ return {
22495
+ ignored,
22496
+ unignored
22497
+ };
22498
+ }
22499
+ // @returns {TestResult}
22500
+ _test(originalPath, cache6, checkUnignored, slices) {
22501
+ const path72 = originalPath && checkPath.convert(originalPath);
22502
+ checkPath(
22503
+ path72,
22504
+ originalPath,
22505
+ this._allowRelativePaths ? RETURN_FALSE : throwError
22506
+ );
22507
+ return this._t(path72, cache6, checkUnignored, slices);
22508
+ }
22509
+ _t(path72, cache6, checkUnignored, slices) {
22510
+ if (path72 in cache6) {
22511
+ return cache6[path72];
22512
+ }
22513
+ if (!slices) {
22514
+ slices = path72.split(SLASH2);
22515
+ }
22516
+ slices.pop();
22517
+ if (!slices.length) {
22518
+ return cache6[path72] = this._testOne(path72, checkUnignored);
22519
+ }
22520
+ const parent = this._t(
22521
+ slices.join(SLASH2) + SLASH2,
22522
+ cache6,
22523
+ checkUnignored,
22524
+ slices
22525
+ );
22526
+ return cache6[path72] = parent.ignored ? parent : this._testOne(path72, checkUnignored);
22527
+ }
22528
+ ignores(path72) {
22529
+ return this._test(path72, this._ignoreCache, false).ignored;
22530
+ }
22531
+ createFilter() {
22532
+ return (path72) => !this.ignores(path72);
22533
+ }
22534
+ filter(paths) {
22535
+ return makeArray(paths).filter(this.createFilter());
22536
+ }
22537
+ // @returns {TestResult}
22538
+ test(path72) {
22539
+ return this._test(path72, this._testCache, true);
22540
+ }
22541
+ };
22542
+ __name(Ignore, "Ignore");
22543
+ var factory = /* @__PURE__ */ __name((options32) => new Ignore(options32), "factory");
22544
+ var isPathValid = /* @__PURE__ */ __name((path72) => checkPath(path72 && checkPath.convert(path72), path72, RETURN_FALSE), "isPathValid");
22545
+ factory.isPathValid = isPathValid;
22546
+ factory.default = factory;
22547
+ module3.exports = factory;
22548
+ if (
22549
+ // Detect `process` so that it can run in browsers.
22550
+ typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
22551
+ ) {
22552
+ const makePosix = /* @__PURE__ */ __name((str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/"), "makePosix");
22553
+ checkPath.convert = makePosix;
22554
+ const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
22555
+ checkPath.isNotRelative = (path72) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path72) || isNotRelative(path72);
22556
+ }
22557
+ }
22558
+ });
22559
+
22560
+ // ../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/Mime.js
22561
+ var require_Mime = __commonJS({
22562
+ "../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/Mime.js"(exports2, module3) {
22563
+ "use strict";
22564
+ init_import_meta_url();
22565
+ function Mime() {
22566
+ this._types = /* @__PURE__ */ Object.create(null);
22567
+ this._extensions = /* @__PURE__ */ Object.create(null);
22568
+ for (let i5 = 0; i5 < arguments.length; i5++) {
22569
+ this.define(arguments[i5]);
22570
+ }
22571
+ this.define = this.define.bind(this);
22572
+ this.getType = this.getType.bind(this);
22573
+ this.getExtension = this.getExtension.bind(this);
22574
+ }
22575
+ __name(Mime, "Mime");
22576
+ Mime.prototype.define = function(typeMap, force) {
22577
+ for (let type in typeMap) {
22578
+ let extensions = typeMap[type].map(function(t7) {
22579
+ return t7.toLowerCase();
22580
+ });
22581
+ type = type.toLowerCase();
22582
+ for (let i5 = 0; i5 < extensions.length; i5++) {
22583
+ const ext = extensions[i5];
22584
+ if (ext[0] === "*") {
22585
+ continue;
22586
+ }
22587
+ if (!force && ext in this._types) {
22588
+ throw new Error(
22589
+ '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 + '".'
22590
+ );
22591
+ }
22592
+ this._types[ext] = type;
22593
+ }
22594
+ if (force || !this._extensions[type]) {
22595
+ const ext = extensions[0];
22596
+ this._extensions[type] = ext[0] !== "*" ? ext : ext.substr(1);
22597
+ }
22598
+ }
22599
+ };
22600
+ Mime.prototype.getType = function(path72) {
22601
+ path72 = String(path72);
22602
+ let last = path72.replace(/^.*[/\\]/, "").toLowerCase();
22603
+ let ext = last.replace(/^.*\./, "").toLowerCase();
22604
+ let hasPath = last.length < path72.length;
22605
+ let hasDot = ext.length < last.length - 1;
22606
+ return (hasDot || !hasPath) && this._types[ext] || null;
22607
+ };
22608
+ Mime.prototype.getExtension = function(type) {
22609
+ type = /^\s*([^;\s]*)/.test(type) && RegExp.$1;
22610
+ return type && this._extensions[type.toLowerCase()] || null;
22611
+ };
22612
+ module3.exports = Mime;
22613
+ }
22614
+ });
22615
+
22616
+ // ../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/types/standard.js
22617
+ var require_standard = __commonJS({
22618
+ "../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/types/standard.js"(exports2, module3) {
22619
+ init_import_meta_url();
22620
+ module3.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"] };
22621
+ }
22622
+ });
22623
+
22624
+ // ../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/types/other.js
22625
+ var require_other = __commonJS({
22626
+ "../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/types/other.js"(exports2, module3) {
22627
+ init_import_meta_url();
22628
+ module3.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"] };
22629
+ }
22630
+ });
22631
+
22632
+ // ../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/index.js
22633
+ var require_mime = __commonJS({
22634
+ "../../node_modules/.pnpm/mime@3.0.0/node_modules/mime/index.js"(exports2, module3) {
22635
+ "use strict";
22636
+ init_import_meta_url();
22637
+ var Mime = require_Mime();
22638
+ module3.exports = new Mime(require_standard(), require_other());
22639
+ }
22640
+ });
22641
+
22642
22642
  // ../../node_modules/.pnpm/dotenv@16.3.1/node_modules/dotenv/package.json
22643
22643
  var require_package = __commonJS({
22644
22644
  "../../node_modules/.pnpm/dotenv@16.3.1/node_modules/dotenv/package.json"(exports2, module3) {
@@ -81450,7 +81450,7 @@ var import_undici3 = __toESM(require_undici());
81450
81450
 
81451
81451
  // package.json
81452
81452
  var name = "wrangler";
81453
- var version = "3.114.14";
81453
+ var version = "3.114.15";
81454
81454
 
81455
81455
  // src/environment-variables/misc-variables.ts
81456
81456
  init_import_meta_url();
@@ -81628,363 +81628,14 @@ __name(createFatalError, "createFatalError");
81628
81628
  init_import_meta_url();
81629
81629
  var import_node_util = require("node:util");
81630
81630
  var import_cli_table3 = __toESM(require_cli_table3());
81631
- var import_esbuild = require("esbuild");
81632
-
81633
- // src/utils/log-file.ts
81634
- init_import_meta_url();
81635
- var import_promises2 = require("node:fs/promises");
81636
- var import_node_path4 = __toESM(require("node:path"));
81637
- var import_miniflare = require("miniflare");
81638
- var import_signal_exit = __toESM(require_signal_exit());
81639
-
81640
- // ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
81641
- init_import_meta_url();
81642
-
81643
- // ../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js
81644
- init_import_meta_url();
81645
- function ansiRegex({ onlyFirst = false } = {}) {
81646
- const pattern = [
81647
- "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
81648
- "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
81649
- ].join("|");
81650
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
81651
- }
81652
- __name(ansiRegex, "ansiRegex");
81653
-
81654
- // ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
81655
- var regex = ansiRegex();
81656
- function stripAnsi2(string) {
81657
- if (typeof string !== "string") {
81658
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
81659
- }
81660
- return string.replace(regex, "");
81661
- }
81662
- __name(stripAnsi2, "stripAnsi");
81663
-
81664
- // src/utils/filesystem.ts
81665
- init_import_meta_url();
81666
- var import_fs5 = require("fs");
81667
- var import_promises = require("fs/promises");
81668
- var import_path5 = __toESM(require("path"));
81669
-
81670
- // ../workers-shared/utils/helpers.ts
81671
- init_import_meta_url();
81672
- var import_node_fs2 = require("node:fs");
81673
- var import_node_path3 = require("node:path");
81674
- var import_ignore = __toESM(require_ignore());
81675
- var import_mime = __toESM(require_mime());
81676
-
81677
- // ../workers-shared/utils/constants.ts
81678
- init_import_meta_url();
81679
- var PATH_HASH_SIZE = 16;
81680
- var CONTENT_HASH_SIZE = 16;
81681
- var TAIL_SIZE = 8;
81682
- var ENTRY_SIZE = PATH_HASH_SIZE + CONTENT_HASH_SIZE + TAIL_SIZE;
81683
- var MAX_ASSET_COUNT = 2e4;
81684
- var MAX_ASSET_SIZE = 25 * 1024 * 1024;
81685
- var CF_ASSETS_IGNORE_FILENAME = ".assetsignore";
81686
- var REDIRECTS_FILENAME = "_redirects";
81687
- var HEADERS_FILENAME = "_headers";
81688
-
81689
- // ../workers-shared/utils/helpers.ts
81690
- var normalizeFilePath = /* @__PURE__ */ __name((relativeFilepath) => {
81691
- if ((0, import_node_path3.isAbsolute)(relativeFilepath)) {
81692
- throw new Error(`Expected relative path`);
81693
- }
81694
- return "/" + relativeFilepath.split(import_node_path3.sep).join("/");
81695
- }, "normalizeFilePath");
81696
- var getContentType = /* @__PURE__ */ __name((absFilePath) => {
81697
- let contentType = (0, import_mime.getType)(absFilePath);
81698
- if (contentType && contentType.startsWith("text/") && !contentType.includes("charset")) {
81699
- contentType = `${contentType}; charset=utf-8`;
81700
- }
81701
- return contentType;
81702
- }, "getContentType");
81703
- function createPatternMatcher(patterns, exclude2) {
81704
- if (patterns.length === 0) {
81705
- return (_filePath) => !exclude2;
81706
- } else {
81707
- const ignorer = (0, import_ignore.default)().add(patterns);
81708
- return (filePath) => ignorer.test(filePath).ignored;
81709
- }
81710
- }
81711
- __name(createPatternMatcher, "createPatternMatcher");
81712
- function thrownIsDoesNotExistError(thrown) {
81713
- return thrown instanceof Error && "code" in thrown && thrown.code === "ENOENT";
81714
- }
81715
- __name(thrownIsDoesNotExistError, "thrownIsDoesNotExistError");
81716
- function maybeGetFile(filePath) {
81717
- try {
81718
- return (0, import_node_fs2.readFileSync)(filePath, "utf8");
81719
- } catch (e7) {
81720
- if (!thrownIsDoesNotExistError(e7)) {
81721
- throw e7;
81722
- }
81723
- }
81724
- }
81725
- __name(maybeGetFile, "maybeGetFile");
81726
- async function createAssetsIgnoreFunction(dir) {
81727
- const cfAssetIgnorePath = (0, import_node_path3.resolve)(dir, CF_ASSETS_IGNORE_FILENAME);
81728
- const ignorePatterns = [
81729
- // Ignore the `.assetsignore` file and other metafiles by default.
81730
- // The ignore lib expects unix-style paths for its patterns
81731
- `/${CF_ASSETS_IGNORE_FILENAME}`,
81732
- `/${REDIRECTS_FILENAME}`,
81733
- `/${HEADERS_FILENAME}`
81734
- ];
81735
- let assetsIgnoreFilePresent = false;
81736
- const assetsIgnore = maybeGetFile(cfAssetIgnorePath);
81737
- if (assetsIgnore !== void 0) {
81738
- assetsIgnoreFilePresent = true;
81739
- ignorePatterns.push(...assetsIgnore.split("\n"));
81740
- }
81741
- return {
81742
- assetsIgnoreFunction: createPatternMatcher(ignorePatterns, true),
81743
- assetsIgnoreFilePresent
81744
- };
81745
- }
81746
- __name(createAssetsIgnoreFunction, "createAssetsIgnoreFunction");
81747
-
81748
- // src/utils/filesystem.ts
81749
- async function ensureDirectoryExists(filepath) {
81750
- const dirpath = import_path5.default.dirname(filepath);
81751
- await (0, import_promises.mkdir)(dirpath, { recursive: true });
81752
- }
81753
- __name(ensureDirectoryExists, "ensureDirectoryExists");
81754
- function ensureDirectoryExistsSync(filepath) {
81755
- const dirpath = import_path5.default.dirname(filepath);
81756
- (0, import_fs5.mkdirSync)(dirpath, { recursive: true });
81757
- }
81758
- __name(ensureDirectoryExistsSync, "ensureDirectoryExistsSync");
81759
-
81760
- // src/utils/log-file.ts
81761
- var getDebugFileDir = getEnvironmentVariableFactory({
81762
- variableName: "WRANGLER_LOG_PATH",
81763
- defaultValue() {
81764
- const gobalWranglerConfigDir = getGlobalWranglerConfigPath();
81765
- return import_node_path4.default.join(gobalWranglerConfigDir, "logs");
81766
- }
81767
- });
81768
- function getDebugFilepath() {
81769
- const dir = getDebugFileDir();
81770
- const date = (/* @__PURE__ */ new Date()).toISOString().replaceAll(":", "-").replace(".", "_").replace("T", "_").replace("Z", "");
81771
- const filepath = dir.endsWith(".log") ? dir : import_node_path4.default.join(dir, `wrangler-${date}.log`);
81772
- return import_node_path4.default.resolve(filepath);
81773
- }
81774
- __name(getDebugFilepath, "getDebugFilepath");
81775
- var debugLogFilepath = getDebugFilepath();
81776
- var mutex = new import_miniflare.Mutex();
81777
- var hasLoggedLocation = false;
81778
- var hasLoggedError = false;
81779
- var hasSeenErrorMessage = false;
81780
- async function appendToDebugLogFile(messageLevel, message) {
81781
- const entry = `
81782
- --- ${(/* @__PURE__ */ new Date()).toISOString()} ${messageLevel}
81783
- ${stripAnsi2(message)}
81784
- ---
81785
- `;
81786
- if (!hasLoggedLocation) {
81787
- hasLoggedLocation = true;
81788
- logger.debug(`\u{1FAB5} Writing logs to "${debugLogFilepath}"`);
81789
- (0, import_signal_exit.default)(() => {
81790
- if (hasSeenErrorMessage) {
81791
- logger.console(
81792
- "warn",
81793
- `\u{1FAB5} Logs were written to "${debugLogFilepath}"`
81794
- );
81795
- }
81796
- });
81797
- }
81798
- if (!hasSeenErrorMessage) {
81799
- hasSeenErrorMessage = messageLevel === "error";
81800
- }
81801
- await mutex.runWith(async () => {
81802
- try {
81803
- await ensureDirectoryExists(debugLogFilepath);
81804
- await (0, import_promises2.appendFile)(debugLogFilepath, entry);
81805
- } catch (err) {
81806
- if (!hasLoggedError) {
81807
- hasLoggedError = true;
81808
- logger.error(`Failed to write to log file`, err);
81809
- logger.error(`Would have written:`, entry);
81810
- }
81811
- }
81812
- });
81813
- }
81814
- __name(appendToDebugLogFile, "appendToDebugLogFile");
81815
-
81816
- // src/logger.ts
81817
- var LOGGER_LEVELS = {
81818
- none: -1,
81819
- error: 0,
81820
- warn: 1,
81821
- info: 2,
81822
- log: 3,
81823
- debug: 4
81824
- };
81825
- var LOGGER_LEVEL_FORMAT_TYPE_MAP = {
81826
- error: "error",
81827
- warn: "warning",
81828
- info: void 0,
81829
- log: void 0,
81830
- debug: void 0
81831
- };
81832
- var getLogLevelFromEnv = getEnvironmentVariableFactory({
81833
- variableName: "WRANGLER_LOG"
81834
- });
81835
- function getLoggerLevel() {
81836
- const fromEnv3 = getLogLevelFromEnv()?.toLowerCase();
81837
- if (fromEnv3 !== void 0) {
81838
- if (fromEnv3 in LOGGER_LEVELS) {
81839
- return fromEnv3;
81840
- }
81841
- const expected = Object.keys(LOGGER_LEVELS).map((level) => `"${level}"`).join(" | ");
81842
- logger.once.warn(
81843
- `Unrecognised WRANGLER_LOG value ${JSON.stringify(
81844
- fromEnv3
81845
- )}, expected ${expected}, defaulting to "log"...`
81846
- );
81847
- }
81848
- return "log";
81849
- }
81850
- __name(getLoggerLevel, "getLoggerLevel");
81851
- var _beforeLogHook, _afterLogHook;
81852
- var _Logger = class {
81853
- constructor() {
81854
- }
81855
- overrideLoggerLevel;
81856
- onceHistory = /* @__PURE__ */ new Set();
81857
- get loggerLevel() {
81858
- return this.overrideLoggerLevel ?? getLoggerLevel();
81859
- }
81860
- set loggerLevel(val2) {
81861
- this.overrideLoggerLevel = val2;
81862
- }
81863
- resetLoggerLevel() {
81864
- this.overrideLoggerLevel = void 0;
81865
- }
81866
- columns = process.stdout.columns;
81867
- debug = (...args) => this.doLog("debug", args);
81868
- debugWithSanitization = (label, ...args) => {
81869
- if (getSanitizeLogs() === "false") {
81870
- this.doLog("debug", [label, ...args]);
81871
- } else {
81872
- this.doLog("debug", [
81873
- label,
81874
- "omitted; set WRANGLER_LOG_SANITIZE=false to include sanitized data"
81875
- ]);
81876
- }
81877
- };
81878
- info = (...args) => this.doLog("info", args);
81879
- log = (...args) => this.doLog("log", args);
81880
- warn = (...args) => this.doLog("warn", args);
81881
- error = (...args) => this.doLog("error", args);
81882
- table(data) {
81883
- const keys = data.length === 0 ? [] : Object.keys(data[0]);
81884
- const t7 = new import_cli_table3.default({
81885
- head: keys,
81886
- style: {
81887
- head: source_default.level ? ["blue"] : [],
81888
- border: source_default.level ? ["gray"] : []
81889
- }
81890
- });
81891
- t7.push(...data.map((row) => keys.map((k6) => row[k6])));
81892
- return this.doLog("log", [t7.toString()]);
81893
- }
81894
- console(method, ...args) {
81895
- var _a3, _b2;
81896
- if (typeof console[method] !== "function") {
81897
- throw new Error(`console.${method}() is not a function`);
81898
- }
81899
- (_a3 = __privateGet(_Logger, _beforeLogHook)) == null ? void 0 : _a3.call(_Logger);
81900
- console[method].apply(console, args);
81901
- (_b2 = __privateGet(_Logger, _afterLogHook)) == null ? void 0 : _b2.call(_Logger);
81902
- }
81903
- get once() {
81904
- return {
81905
- info: (...args) => this.doLogOnce("info", args),
81906
- log: (...args) => this.doLogOnce("log", args),
81907
- warn: (...args) => this.doLogOnce("warn", args),
81908
- error: (...args) => this.doLogOnce("error", args)
81909
- };
81910
- }
81911
- clearHistory() {
81912
- this.onceHistory.clear();
81913
- }
81914
- doLogOnce(messageLevel, args) {
81915
- const cacheKey = `${messageLevel}: ${args.join(" ")}`;
81916
- if (!this.onceHistory.has(cacheKey)) {
81917
- this.onceHistory.add(cacheKey);
81918
- this.doLog(messageLevel, args);
81919
- }
81920
- }
81921
- doLog(messageLevel, args) {
81922
- var _a3, _b2;
81923
- const message = this.formatMessage(messageLevel, (0, import_node_util.format)(...args));
81924
- const inUnitTests = typeof vitest !== "undefined";
81925
- if (!inUnitTests) {
81926
- void appendToDebugLogFile(messageLevel, message);
81927
- }
81928
- if (LOGGER_LEVELS[this.loggerLevel] >= LOGGER_LEVELS[messageLevel]) {
81929
- (_a3 = __privateGet(_Logger, _beforeLogHook)) == null ? void 0 : _a3.call(_Logger);
81930
- console[messageLevel](message);
81931
- (_b2 = __privateGet(_Logger, _afterLogHook)) == null ? void 0 : _b2.call(_Logger);
81932
- }
81933
- }
81934
- static registerBeforeLogHook(callback) {
81935
- __privateSet(this, _beforeLogHook, callback);
81936
- }
81937
- static registerAfterLogHook(callback) {
81938
- __privateSet(this, _afterLogHook, callback);
81939
- }
81940
- formatMessage(level, message) {
81941
- const kind = LOGGER_LEVEL_FORMAT_TYPE_MAP[level];
81942
- if (kind) {
81943
- const [firstLine, ...otherLines] = message.split("\n");
81944
- const notes = otherLines.length > 0 ? otherLines.map((text) => ({ text })) : void 0;
81945
- return (0, import_esbuild.formatMessagesSync)([{ text: firstLine, notes }], {
81946
- color: true,
81947
- kind,
81948
- terminalWidth: this.columns
81949
- })[0];
81950
- } else {
81951
- return message;
81952
- }
81953
- }
81954
- };
81955
- var Logger = _Logger;
81956
- __name(Logger, "Logger");
81957
- _beforeLogHook = new WeakMap();
81958
- _afterLogHook = new WeakMap();
81959
- __privateAdd(Logger, _beforeLogHook, void 0);
81960
- __privateAdd(Logger, _afterLogHook, void 0);
81961
- var logger = new Logger();
81962
- function logBuildWarnings(warnings) {
81963
- const logs = (0, import_esbuild.formatMessagesSync)(warnings, { kind: "warning", color: true });
81964
- for (const log2 of logs) {
81965
- logger.console("warn", log2);
81966
- }
81967
- }
81968
- __name(logBuildWarnings, "logBuildWarnings");
81969
- function logBuildFailure(errors, warnings) {
81970
- if (errors.length > 0) {
81971
- const logs = (0, import_esbuild.formatMessagesSync)(errors, { kind: "error", color: true });
81972
- const errorStr = errors.length > 1 ? "errors" : "error";
81973
- logger.error(
81974
- `Build failed with ${errors.length} ${errorStr}:
81975
- ` + logs.join("\n")
81976
- );
81977
- }
81978
- logBuildWarnings(warnings);
81979
- }
81980
- __name(logBuildFailure, "logBuildFailure");
81631
+ var import_esbuild2 = require("esbuild");
81981
81632
 
81982
81633
  // src/parse.ts
81983
81634
  init_import_meta_url();
81984
81635
  var fs2 = __toESM(require("node:fs"));
81985
- var import_node_path5 = require("node:path");
81636
+ var import_node_path3 = require("node:path");
81986
81637
  var import_toml = __toESM(require_toml());
81987
- var import_esbuild2 = require("esbuild");
81638
+ var import_esbuild = require("esbuild");
81988
81639
 
81989
81640
  // ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/main.js
81990
81641
  init_import_meta_url();
@@ -82418,7 +82069,7 @@ var CharacterCodes;
82418
82069
  })(CharacterCodes || (CharacterCodes = {}));
82419
82070
 
82420
82071
  // ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/format.js
82421
- function format4(documentText, range, options32) {
82072
+ function format3(documentText, range, options32) {
82422
82073
  let initialIndentLevel;
82423
82074
  let formatText;
82424
82075
  let formatTextStart;
@@ -82606,7 +82257,7 @@ function format4(documentText, range, options32) {
82606
82257
  }
82607
82258
  return editOperations;
82608
82259
  }
82609
- __name(format4, "format");
82260
+ __name(format3, "format");
82610
82261
  function repeat(s5, count) {
82611
82262
  let result = "";
82612
82263
  for (let i5 = 0; i5 < count; i5++) {
@@ -83252,7 +82903,7 @@ function withFormatting(text, edit, options32) {
83252
82903
  end++;
83253
82904
  }
83254
82905
  }
83255
- const edits = format4(newText, { offset: begin, length: end - begin }, { ...options32.formattingOptions, keepLines: false });
82906
+ const edits = format3(newText, { offset: begin, length: end - begin }, { ...options32.formattingOptions, keepLines: false });
83256
82907
  for (let i5 = edits.length - 1; i5 >= 0; i5--) {
83257
82908
  const edit2 = edits[i5];
83258
82909
  newText = applyEdit(newText, edit2);
@@ -83358,10 +83009,10 @@ function printParseErrorCode(code) {
83358
83009
  return "<unknown ParseErrorCode>";
83359
83010
  }
83360
83011
  __name(printParseErrorCode, "printParseErrorCode");
83361
- function format5(documentText, range, options32) {
83362
- return format4(documentText, range, options32);
83012
+ function format4(documentText, range, options32) {
83013
+ return format3(documentText, range, options32);
83363
83014
  }
83364
- __name(format5, "format");
83015
+ __name(format4, "format");
83365
83016
  function modify(text, path72, value, options32) {
83366
83017
  return setProperty(text, path72, value, options32);
83367
83018
  }
@@ -83395,7 +83046,7 @@ function formatMessage({ text, notes, location, kind = "error" }, color = true)
83395
83046
  for (const note of notes ?? []) {
83396
83047
  delete note.location?.fileText;
83397
83048
  }
83398
- const lines = (0, import_esbuild2.formatMessagesSync)([input], {
83049
+ const lines = (0, import_esbuild.formatMessagesSync)([input], {
83399
83050
  color,
83400
83051
  kind,
83401
83052
  terminalWidth: logger.columns
@@ -83511,14 +83162,14 @@ function readFileSyncToBuffer(file) {
83511
83162
  text: `Could not read file: ${file}`,
83512
83163
  notes: [
83513
83164
  {
83514
- text: message.replace(file, (0, import_node_path5.resolve)(file))
83165
+ text: message.replace(file, (0, import_node_path3.resolve)(file))
83515
83166
  }
83516
83167
  ]
83517
83168
  });
83518
83169
  }
83519
83170
  }
83520
83171
  __name(readFileSyncToBuffer, "readFileSyncToBuffer");
83521
- function readFileSync6(file) {
83172
+ function readFileSync5(file) {
83522
83173
  try {
83523
83174
  const buffer = fs2.readFileSync(file);
83524
83175
  return removeBOMAndValidate(buffer, file);
@@ -83531,14 +83182,14 @@ function readFileSync6(file) {
83531
83182
  text: `Could not read file: ${file}`,
83532
83183
  notes: [
83533
83184
  {
83534
- text: message.replace(file, (0, import_node_path5.resolve)(file))
83185
+ text: message.replace(file, (0, import_node_path3.resolve)(file))
83535
83186
  }
83536
83187
  ],
83537
83188
  telemetryMessage: "Could not read file"
83538
83189
  });
83539
83190
  }
83540
83191
  }
83541
- __name(readFileSync6, "readFileSync");
83192
+ __name(readFileSync5, "readFileSync");
83542
83193
  function indexLocation(file, index) {
83543
83194
  let lineText, line = 0, column = 0, cursor = 0;
83544
83195
  const { fileText = "" } = file;
@@ -83668,6 +83319,361 @@ function removeBOMAndValidate(buffer, file) {
83668
83319
  }
83669
83320
  __name(removeBOMAndValidate, "removeBOMAndValidate");
83670
83321
 
83322
+ // src/utils/log-file.ts
83323
+ init_import_meta_url();
83324
+ var import_promises2 = require("node:fs/promises");
83325
+ var import_node_path5 = __toESM(require("node:path"));
83326
+ var import_miniflare = require("miniflare");
83327
+ var import_signal_exit = __toESM(require_signal_exit());
83328
+
83329
+ // ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
83330
+ init_import_meta_url();
83331
+
83332
+ // ../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js
83333
+ init_import_meta_url();
83334
+ function ansiRegex({ onlyFirst = false } = {}) {
83335
+ const pattern = [
83336
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
83337
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
83338
+ ].join("|");
83339
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
83340
+ }
83341
+ __name(ansiRegex, "ansiRegex");
83342
+
83343
+ // ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
83344
+ var regex = ansiRegex();
83345
+ function stripAnsi2(string) {
83346
+ if (typeof string !== "string") {
83347
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
83348
+ }
83349
+ return string.replace(regex, "");
83350
+ }
83351
+ __name(stripAnsi2, "stripAnsi");
83352
+
83353
+ // src/utils/filesystem.ts
83354
+ init_import_meta_url();
83355
+ var import_fs5 = require("fs");
83356
+ var import_promises = require("fs/promises");
83357
+ var import_path5 = __toESM(require("path"));
83358
+
83359
+ // ../workers-shared/utils/helpers.ts
83360
+ init_import_meta_url();
83361
+ var import_node_fs2 = require("node:fs");
83362
+ var import_node_path4 = require("node:path");
83363
+ var import_ignore = __toESM(require_ignore());
83364
+ var import_mime = __toESM(require_mime());
83365
+
83366
+ // ../workers-shared/utils/constants.ts
83367
+ init_import_meta_url();
83368
+ var PATH_HASH_SIZE = 16;
83369
+ var CONTENT_HASH_SIZE = 16;
83370
+ var TAIL_SIZE = 8;
83371
+ var ENTRY_SIZE = PATH_HASH_SIZE + CONTENT_HASH_SIZE + TAIL_SIZE;
83372
+ var MAX_ASSET_COUNT = 2e4;
83373
+ var MAX_ASSET_SIZE = 25 * 1024 * 1024;
83374
+ var CF_ASSETS_IGNORE_FILENAME = ".assetsignore";
83375
+ var REDIRECTS_FILENAME = "_redirects";
83376
+ var HEADERS_FILENAME = "_headers";
83377
+
83378
+ // ../workers-shared/utils/helpers.ts
83379
+ var normalizeFilePath = /* @__PURE__ */ __name((relativeFilepath) => {
83380
+ if ((0, import_node_path4.isAbsolute)(relativeFilepath)) {
83381
+ throw new Error(`Expected relative path`);
83382
+ }
83383
+ return "/" + relativeFilepath.split(import_node_path4.sep).join("/");
83384
+ }, "normalizeFilePath");
83385
+ var getContentType = /* @__PURE__ */ __name((absFilePath) => {
83386
+ let contentType = (0, import_mime.getType)(absFilePath);
83387
+ if (contentType && contentType.startsWith("text/") && !contentType.includes("charset")) {
83388
+ contentType = `${contentType}; charset=utf-8`;
83389
+ }
83390
+ return contentType;
83391
+ }, "getContentType");
83392
+ function createPatternMatcher(patterns, exclude2) {
83393
+ if (patterns.length === 0) {
83394
+ return (_filePath) => !exclude2;
83395
+ } else {
83396
+ const ignorer = (0, import_ignore.default)().add(patterns);
83397
+ return (filePath) => ignorer.test(filePath).ignored;
83398
+ }
83399
+ }
83400
+ __name(createPatternMatcher, "createPatternMatcher");
83401
+ function thrownIsDoesNotExistError(thrown) {
83402
+ return thrown instanceof Error && "code" in thrown && thrown.code === "ENOENT";
83403
+ }
83404
+ __name(thrownIsDoesNotExistError, "thrownIsDoesNotExistError");
83405
+ function maybeGetFile(filePath) {
83406
+ try {
83407
+ return (0, import_node_fs2.readFileSync)(filePath, "utf8");
83408
+ } catch (e7) {
83409
+ if (!thrownIsDoesNotExistError(e7)) {
83410
+ throw e7;
83411
+ }
83412
+ }
83413
+ }
83414
+ __name(maybeGetFile, "maybeGetFile");
83415
+ async function createAssetsIgnoreFunction(dir) {
83416
+ const cfAssetIgnorePath = (0, import_node_path4.resolve)(dir, CF_ASSETS_IGNORE_FILENAME);
83417
+ const ignorePatterns = [
83418
+ // Ignore the `.assetsignore` file and other metafiles by default.
83419
+ // The ignore lib expects unix-style paths for its patterns
83420
+ `/${CF_ASSETS_IGNORE_FILENAME}`,
83421
+ `/${REDIRECTS_FILENAME}`,
83422
+ `/${HEADERS_FILENAME}`
83423
+ ];
83424
+ let assetsIgnoreFilePresent = false;
83425
+ const assetsIgnore = maybeGetFile(cfAssetIgnorePath);
83426
+ if (assetsIgnore !== void 0) {
83427
+ assetsIgnoreFilePresent = true;
83428
+ ignorePatterns.push(...assetsIgnore.split("\n"));
83429
+ }
83430
+ return {
83431
+ assetsIgnoreFunction: createPatternMatcher(ignorePatterns, true),
83432
+ assetsIgnoreFilePresent
83433
+ };
83434
+ }
83435
+ __name(createAssetsIgnoreFunction, "createAssetsIgnoreFunction");
83436
+
83437
+ // src/utils/filesystem.ts
83438
+ async function ensureDirectoryExists(filepath) {
83439
+ const dirpath = import_path5.default.dirname(filepath);
83440
+ await (0, import_promises.mkdir)(dirpath, { recursive: true });
83441
+ }
83442
+ __name(ensureDirectoryExists, "ensureDirectoryExists");
83443
+ function ensureDirectoryExistsSync(filepath) {
83444
+ const dirpath = import_path5.default.dirname(filepath);
83445
+ (0, import_fs5.mkdirSync)(dirpath, { recursive: true });
83446
+ }
83447
+ __name(ensureDirectoryExistsSync, "ensureDirectoryExistsSync");
83448
+
83449
+ // src/utils/log-file.ts
83450
+ var getDebugFileDir = getEnvironmentVariableFactory({
83451
+ variableName: "WRANGLER_LOG_PATH",
83452
+ defaultValue() {
83453
+ const gobalWranglerConfigDir = getGlobalWranglerConfigPath();
83454
+ return import_node_path5.default.join(gobalWranglerConfigDir, "logs");
83455
+ }
83456
+ });
83457
+ function getDebugFilepath() {
83458
+ const dir = getDebugFileDir();
83459
+ const date = (/* @__PURE__ */ new Date()).toISOString().replaceAll(":", "-").replace(".", "_").replace("T", "_").replace("Z", "");
83460
+ const filepath = dir.endsWith(".log") ? dir : import_node_path5.default.join(dir, `wrangler-${date}.log`);
83461
+ return import_node_path5.default.resolve(filepath);
83462
+ }
83463
+ __name(getDebugFilepath, "getDebugFilepath");
83464
+ var debugLogFilepath = getDebugFilepath();
83465
+ var mutex = new import_miniflare.Mutex();
83466
+ var hasLoggedLocation = false;
83467
+ var hasLoggedError = false;
83468
+ var hasSeenErrorMessage = false;
83469
+ async function appendToDebugLogFile(messageLevel, message) {
83470
+ const entry = `
83471
+ --- ${(/* @__PURE__ */ new Date()).toISOString()} ${messageLevel}
83472
+ ${stripAnsi2(message)}
83473
+ ---
83474
+ `;
83475
+ if (!hasLoggedLocation) {
83476
+ hasLoggedLocation = true;
83477
+ logger.debug(`\u{1FAB5} Writing logs to "${debugLogFilepath}"`);
83478
+ (0, import_signal_exit.default)(() => {
83479
+ if (hasSeenErrorMessage) {
83480
+ logger.console(
83481
+ "warn",
83482
+ `\u{1FAB5} Logs were written to "${debugLogFilepath}"`
83483
+ );
83484
+ }
83485
+ });
83486
+ }
83487
+ if (!hasSeenErrorMessage) {
83488
+ hasSeenErrorMessage = messageLevel === "error";
83489
+ }
83490
+ await mutex.runWith(async () => {
83491
+ try {
83492
+ await ensureDirectoryExists(debugLogFilepath);
83493
+ await (0, import_promises2.appendFile)(debugLogFilepath, entry);
83494
+ } catch (err) {
83495
+ if (!hasLoggedError) {
83496
+ hasLoggedError = true;
83497
+ logger.error(`Failed to write to log file`, err);
83498
+ logger.error(`Would have written:`, entry);
83499
+ }
83500
+ }
83501
+ });
83502
+ }
83503
+ __name(appendToDebugLogFile, "appendToDebugLogFile");
83504
+
83505
+ // src/logger.ts
83506
+ var LOGGER_LEVELS = {
83507
+ none: -1,
83508
+ error: 0,
83509
+ warn: 1,
83510
+ info: 2,
83511
+ log: 3,
83512
+ debug: 4
83513
+ };
83514
+ var LOGGER_LEVEL_FORMAT_TYPE_MAP = {
83515
+ error: "error",
83516
+ warn: "warning",
83517
+ info: void 0,
83518
+ log: void 0,
83519
+ debug: void 0
83520
+ };
83521
+ var getLogLevelFromEnv = getEnvironmentVariableFactory({
83522
+ variableName: "WRANGLER_LOG"
83523
+ });
83524
+ function getLoggerLevel() {
83525
+ const fromEnv3 = getLogLevelFromEnv()?.toLowerCase();
83526
+ if (fromEnv3 !== void 0) {
83527
+ if (fromEnv3 in LOGGER_LEVELS) {
83528
+ return fromEnv3;
83529
+ }
83530
+ const expected = Object.keys(LOGGER_LEVELS).map((level) => `"${level}"`).join(" | ");
83531
+ logger.once.warn(
83532
+ `Unrecognised WRANGLER_LOG value ${JSON.stringify(
83533
+ fromEnv3
83534
+ )}, expected ${expected}, defaulting to "log"...`
83535
+ );
83536
+ }
83537
+ return "log";
83538
+ }
83539
+ __name(getLoggerLevel, "getLoggerLevel");
83540
+ var _beforeLogHook, _afterLogHook;
83541
+ var _Logger = class {
83542
+ constructor() {
83543
+ }
83544
+ overrideLoggerLevel;
83545
+ onceHistory = /* @__PURE__ */ new Set();
83546
+ get loggerLevel() {
83547
+ return this.overrideLoggerLevel ?? getLoggerLevel();
83548
+ }
83549
+ set loggerLevel(val2) {
83550
+ this.overrideLoggerLevel = val2;
83551
+ }
83552
+ resetLoggerLevel() {
83553
+ this.overrideLoggerLevel = void 0;
83554
+ }
83555
+ columns = process.stdout.columns;
83556
+ debug = (...args) => this.doLog("debug", args);
83557
+ debugWithSanitization = (label, ...args) => {
83558
+ if (getSanitizeLogs() === "false") {
83559
+ this.doLog("debug", [label, ...args]);
83560
+ } else {
83561
+ this.doLog("debug", [
83562
+ label,
83563
+ "omitted; set WRANGLER_LOG_SANITIZE=false to include sanitized data"
83564
+ ]);
83565
+ }
83566
+ };
83567
+ info = (...args) => this.doLog("info", args);
83568
+ log = (...args) => this.doLog("log", args);
83569
+ warn = (...args) => this.doLog("warn", args);
83570
+ error(...args) {
83571
+ if (args.length === 1 && args[0] instanceof ParseError) {
83572
+ this.doLog("error", formatMessage(args[0]));
83573
+ } else {
83574
+ this.doLog("error", args);
83575
+ }
83576
+ }
83577
+ table(data) {
83578
+ const keys = data.length === 0 ? [] : Object.keys(data[0]);
83579
+ const t7 = new import_cli_table3.default({
83580
+ head: keys,
83581
+ style: {
83582
+ head: source_default.level ? ["blue"] : [],
83583
+ border: source_default.level ? ["gray"] : []
83584
+ }
83585
+ });
83586
+ t7.push(...data.map((row) => keys.map((k6) => row[k6])));
83587
+ return this.doLog("log", [t7.toString()]);
83588
+ }
83589
+ console(method, ...args) {
83590
+ var _a3, _b2;
83591
+ if (typeof console[method] !== "function") {
83592
+ throw new Error(`console.${method}() is not a function`);
83593
+ }
83594
+ (_a3 = __privateGet(_Logger, _beforeLogHook)) == null ? void 0 : _a3.call(_Logger);
83595
+ console[method].apply(console, args);
83596
+ (_b2 = __privateGet(_Logger, _afterLogHook)) == null ? void 0 : _b2.call(_Logger);
83597
+ }
83598
+ get once() {
83599
+ return {
83600
+ info: (...args) => this.doLogOnce("info", args),
83601
+ log: (...args) => this.doLogOnce("log", args),
83602
+ warn: (...args) => this.doLogOnce("warn", args),
83603
+ error: (...args) => this.doLogOnce("error", args)
83604
+ };
83605
+ }
83606
+ clearHistory() {
83607
+ this.onceHistory.clear();
83608
+ }
83609
+ doLogOnce(messageLevel, args) {
83610
+ const cacheKey = `${messageLevel}: ${args.join(" ")}`;
83611
+ if (!this.onceHistory.has(cacheKey)) {
83612
+ this.onceHistory.add(cacheKey);
83613
+ this.doLog(messageLevel, args);
83614
+ }
83615
+ }
83616
+ doLog(messageLevel, args) {
83617
+ var _a3, _b2;
83618
+ const message = Array.isArray(args) ? this.formatMessage(messageLevel, (0, import_node_util.format)(...args)) : args;
83619
+ const inUnitTests = typeof vitest !== "undefined";
83620
+ if (!inUnitTests) {
83621
+ void appendToDebugLogFile(messageLevel, message);
83622
+ }
83623
+ if (LOGGER_LEVELS[this.loggerLevel] >= LOGGER_LEVELS[messageLevel]) {
83624
+ (_a3 = __privateGet(_Logger, _beforeLogHook)) == null ? void 0 : _a3.call(_Logger);
83625
+ console[messageLevel](message);
83626
+ (_b2 = __privateGet(_Logger, _afterLogHook)) == null ? void 0 : _b2.call(_Logger);
83627
+ }
83628
+ }
83629
+ static registerBeforeLogHook(callback) {
83630
+ __privateSet(this, _beforeLogHook, callback);
83631
+ }
83632
+ static registerAfterLogHook(callback) {
83633
+ __privateSet(this, _afterLogHook, callback);
83634
+ }
83635
+ formatMessage(level, message) {
83636
+ const kind = LOGGER_LEVEL_FORMAT_TYPE_MAP[level];
83637
+ if (kind) {
83638
+ const [firstLine, ...otherLines] = message.split("\n");
83639
+ const notes = otherLines.length > 0 ? otherLines.map((text) => ({ text })) : void 0;
83640
+ return (0, import_esbuild2.formatMessagesSync)([{ text: firstLine, notes }], {
83641
+ color: true,
83642
+ kind,
83643
+ terminalWidth: this.columns
83644
+ })[0];
83645
+ } else {
83646
+ return message;
83647
+ }
83648
+ }
83649
+ };
83650
+ var Logger = _Logger;
83651
+ __name(Logger, "Logger");
83652
+ _beforeLogHook = new WeakMap();
83653
+ _afterLogHook = new WeakMap();
83654
+ __privateAdd(Logger, _beforeLogHook, void 0);
83655
+ __privateAdd(Logger, _afterLogHook, void 0);
83656
+ var logger = new Logger();
83657
+ function logBuildWarnings(warnings) {
83658
+ const logs = (0, import_esbuild2.formatMessagesSync)(warnings, { kind: "warning", color: true });
83659
+ for (const log2 of logs) {
83660
+ logger.console("warn", log2);
83661
+ }
83662
+ }
83663
+ __name(logBuildWarnings, "logBuildWarnings");
83664
+ function logBuildFailure(errors, warnings) {
83665
+ if (errors.length > 0) {
83666
+ const logs = (0, import_esbuild2.formatMessagesSync)(errors, { kind: "error", color: true });
83667
+ const errorStr = errors.length > 1 ? "errors" : "error";
83668
+ logger.error(
83669
+ `Build failed with ${errors.length} ${errorStr}:
83670
+ ` + logs.join("\n")
83671
+ );
83672
+ }
83673
+ logBuildWarnings(warnings);
83674
+ }
83675
+ __name(logBuildFailure, "logBuildFailure");
83676
+
83671
83677
  // src/user/index.ts
83672
83678
  init_import_meta_url();
83673
83679
 
@@ -84258,7 +84264,7 @@ function findRedirectedWranglerConfig(cwd2, userConfigPath) {
84258
84264
  return userConfigPath;
84259
84265
  }
84260
84266
  let redirectedConfigPath;
84261
- const deployConfigFile = readFileSync6(deployConfigPath);
84267
+ const deployConfigFile = readFileSync5(deployConfigPath);
84262
84268
  try {
84263
84269
  const deployConfig = parseJSONC(deployConfigFile, deployConfigPath);
84264
84270
  redirectedConfigPath = deployConfig.configPath && import_node_path8.default.resolve(import_node_path8.default.dirname(deployConfigPath), deployConfig.configPath);
@@ -89794,9 +89800,9 @@ var experimental_readRawConfig = /* @__PURE__ */ __name((args, options32 = {}) =
89794
89800
  );
89795
89801
  let rawConfig = {};
89796
89802
  if (configPath?.endsWith("toml")) {
89797
- rawConfig = parseTOML(readFileSync6(configPath), configPath);
89803
+ rawConfig = parseTOML(readFileSync5(configPath), configPath);
89798
89804
  } else if (configPath?.endsWith("json") || configPath?.endsWith("jsonc")) {
89799
- rawConfig = parseJSONC(readFileSync6(configPath), configPath);
89805
+ rawConfig = parseJSONC(readFileSync5(configPath), configPath);
89800
89806
  }
89801
89807
  return { rawConfig, configPath, userConfigPath };
89802
89808
  }, "experimental_readRawConfig");
@@ -92617,7 +92623,7 @@ function writeAuthConfigFile(config) {
92617
92623
  }
92618
92624
  __name(writeAuthConfigFile, "writeAuthConfigFile");
92619
92625
  function readAuthConfigFile() {
92620
- const toml = parseTOML(readFileSync6(getAuthConfigFilePath()));
92626
+ const toml = parseTOML(readFileSync5(getAuthConfigFilePath()));
92621
92627
  return toml;
92622
92628
  }
92623
92629
  __name(readAuthConfigFile, "readAuthConfigFile");
@@ -94513,7 +94519,7 @@ function logStructuredLog({ level, message }, processStream) {
94513
94519
  return logger.info(message);
94514
94520
  }
94515
94521
  if (level === "debug") {
94516
- return logger.debug(message);
94522
+ return logger.info(message);
94517
94523
  }
94518
94524
  if (level === "error") {
94519
94525
  return logger.error(getSourceMappedString(message));
@@ -109795,8 +109801,8 @@ var ErrorMTlsCertificateManyNamesMatch = class extends UserError {
109795
109801
  __name(ErrorMTlsCertificateManyNamesMatch, "ErrorMTlsCertificateManyNamesMatch");
109796
109802
  async function uploadMTlsCertificateFromFs(accountId, details) {
109797
109803
  return await uploadMTlsCertificate(accountId, {
109798
- certificateChain: readFileSync6(details.certificateChainFilename),
109799
- privateKey: readFileSync6(details.privateKeyFilename),
109804
+ certificateChain: readFileSync5(details.certificateChainFilename),
109805
+ privateKey: readFileSync5(details.privateKeyFilename),
109800
109806
  name: details.name
109801
109807
  });
109802
109808
  }
@@ -109806,7 +109812,7 @@ async function uploadCaCertificateFromFs(accountId, details) {
109806
109812
  method: "POST",
109807
109813
  body: JSON.stringify({
109808
109814
  name: details.name,
109809
- certificates: readFileSync6(details.certificates),
109815
+ certificates: readFileSync5(details.certificates),
109810
109816
  ca: details.ca
109811
109817
  })
109812
109818
  });
@@ -118478,7 +118484,7 @@ async function executeLocally({
118478
118484
  d1Databases: { DATABASE: id }
118479
118485
  });
118480
118486
  const db = await mf.getD1Database("DATABASE");
118481
- const sql = input.file ? readFileSync6(input.file) : input.command;
118487
+ const sql = input.file ? readFileSync5(input.file) : input.command;
118482
118488
  const queries = splitSqlQuery(sql);
118483
118489
  let results;
118484
118490
  try {
@@ -121693,7 +121699,7 @@ ${err.message ?? err}`
121693
121699
  await initializeGit(creationDirectory);
121694
121700
  await (0, import_promises13.writeFile)(
121695
121701
  import_node_path37.default.join(creationDirectory, ".gitignore"),
121696
- readFileSync6(import_node_path37.default.join(getBasePath(), "templates/gitignore"))
121702
+ readFileSync5(import_node_path37.default.join(getBasePath(), "templates/gitignore"))
121697
121703
  );
121698
121704
  logger.log(
121699
121705
  args.name && args.name !== "." ? `\u2728 Initialized git repository at ${import_node_path37.default.relative(
@@ -121740,7 +121746,7 @@ ${err.message ?? err}`
121740
121746
  }
121741
121747
  } else {
121742
121748
  const packageJson = parsePackageJSON(
121743
- readFileSync6(pathToPackageJson),
121749
+ readFileSync5(pathToPackageJson),
121744
121750
  pathToPackageJson
121745
121751
  );
121746
121752
  if (!(packageJson.devDependencies?.wrangler || packageJson.dependencies?.wrangler)) {
@@ -121767,7 +121773,7 @@ ${err.message ?? err}`
121767
121773
  isTypescriptProject = true;
121768
121774
  await (0, import_promises13.writeFile)(
121769
121775
  import_node_path37.default.join(creationDirectory, "./tsconfig.json"),
121770
- readFileSync6(import_node_path37.default.join(getBasePath(), "templates/tsconfig.init.json"))
121776
+ readFileSync5(import_node_path37.default.join(getBasePath(), "templates/tsconfig.init.json"))
121771
121777
  );
121772
121778
  devDepsToInstall.push("@cloudflare/workers-types");
121773
121779
  devDepsToInstall.push("typescript");
@@ -121779,7 +121785,7 @@ ${err.message ?? err}`
121779
121785
  } else {
121780
121786
  isTypescriptProject = true;
121781
121787
  const packageJson = parsePackageJSON(
121782
- readFileSync6(pathToPackageJson),
121788
+ readFileSync5(pathToPackageJson),
121783
121789
  pathToPackageJson
121784
121790
  );
121785
121791
  if (!(packageJson.devDependencies?.["@cloudflare/workers-types"] || packageJson.dependencies?.["@cloudflare/workers-types"])) {
@@ -121799,7 +121805,7 @@ ${err.message ?? err}`
121799
121805
  }
121800
121806
  }
121801
121807
  const packageJsonContent = parsePackageJSON(
121802
- readFileSync6(pathToPackageJson),
121808
+ readFileSync5(pathToPackageJson),
121803
121809
  pathToPackageJson
121804
121810
  );
121805
121811
  const shouldWritePackageJsonScripts = !packageJsonContent.scripts?.start && !packageJsonContent.scripts?.publish && shouldCreatePackageJson;
@@ -121817,7 +121823,7 @@ ${err.message ?? err}`
121817
121823
  }
121818
121824
  if (isCreatingWranglerToml) {
121819
121825
  const parsedWranglerToml = parseTOML(
121820
- readFileSync6(wranglerTomlDestination)
121826
+ readFileSync5(wranglerTomlDestination)
121821
121827
  );
121822
121828
  const newToml = {
121823
121829
  name: parsedWranglerToml.name,
@@ -121881,7 +121887,7 @@ To start developing your Worker, run \`npx wrangler dev\`${isCreatingWranglerTom
121881
121887
  });
121882
121888
  await (0, import_promises13.writeFile)(
121883
121889
  import_node_path37.default.join(creationDirectory, "./src/index.ts"),
121884
- readFileSync6(import_node_path37.default.join(getBasePath(), `templates/${template}`))
121890
+ readFileSync5(import_node_path37.default.join(getBasePath(), `templates/${template}`))
121885
121891
  );
121886
121892
  logger.log(
121887
121893
  `\u2728 Created ${import_node_path37.default.relative(
@@ -121900,7 +121906,7 @@ To start developing your Worker, run \`npx wrangler dev\`${isCreatingWranglerTom
121900
121906
  devDepsToInstall.push(newWorkerTestType);
121901
121907
  await (0, import_promises13.writeFile)(
121902
121908
  import_node_path37.default.join(creationDirectory, "./src/index.test.ts"),
121903
- readFileSync6(
121909
+ readFileSync5(
121904
121910
  import_node_path37.default.join(
121905
121911
  getBasePath(),
121906
121912
  `templates/init-tests/test-${newWorkerTestType}-new-worker.ts`
@@ -121974,7 +121980,7 @@ To start developing your Worker, run \`npx wrangler dev\`${isCreatingWranglerTom
121974
121980
  });
121975
121981
  await (0, import_promises13.writeFile)(
121976
121982
  import_node_path37.default.join(creationDirectory, "./src/index.js"),
121977
- readFileSync6(import_node_path37.default.join(getBasePath(), `templates/${template}`))
121983
+ readFileSync5(import_node_path37.default.join(getBasePath(), `templates/${template}`))
121978
121984
  );
121979
121985
  logger.log(
121980
121986
  `\u2728 Created ${import_node_path37.default.relative(
@@ -121988,7 +121994,7 @@ To start developing your Worker, run \`npx wrangler dev\`${isCreatingWranglerTom
121988
121994
  devDepsToInstall.push(newWorkerTestType);
121989
121995
  await (0, import_promises13.writeFile)(
121990
121996
  import_node_path37.default.join(creationDirectory, "./src/index.test.js"),
121991
- readFileSync6(
121997
+ readFileSync5(
121992
121998
  import_node_path37.default.join(
121993
121999
  getBasePath(),
121994
122000
  `templates/init-tests/test-${newWorkerTestType}-new-worker.js`
@@ -123683,7 +123689,7 @@ var kvBulkPutCommand = createCommand({
123683
123689
  async handler({ filename, ...args }) {
123684
123690
  const config = readConfig(args);
123685
123691
  const namespaceId = getKVNamespaceId(args, config);
123686
- const content = parseJSON(readFileSync6(filename), filename);
123692
+ const content = parseJSON(readFileSync5(filename), filename);
123687
123693
  if (!Array.isArray(content)) {
123688
123694
  throw new UserError(
123689
123695
  `Unexpected JSON input from "${filename}".
@@ -123827,7 +123833,7 @@ var kvBulkDeleteCommand = createCommand({
123827
123833
  return;
123828
123834
  }
123829
123835
  }
123830
- const content = parseJSON(readFileSync6(filename), filename);
123836
+ const content = parseJSON(readFileSync5(filename), filename);
123831
123837
  if (!Array.isArray(content)) {
123832
123838
  throw new UserError(
123833
123839
  `Unexpected JSON input from "${filename}".
@@ -129046,7 +129052,13 @@ var secretDeleteCommand = createCommand({
129046
129052
  `\u{1F300} Deleting the secret ${args.key} on the Worker ${scriptName}${args.env && !isLegacyEnv(config) ? ` (${args.env})` : ""}`
129047
129053
  );
129048
129054
  const url4 = !args.env || isLegacyEnv(config) ? `/accounts/${accountId}/workers/scripts/${scriptName}/secrets` : `/accounts/${accountId}/workers/services/${scriptName}/environments/${args.env}/secrets`;
129049
- await fetchResult(`${url4}/${args.key}`, { method: "DELETE" });
129055
+ await fetchResult(
129056
+ `${url4}/${encodeURIComponent(args.key)}`,
129057
+ { method: "DELETE" },
129058
+ new URLSearchParams({
129059
+ url_encoded: "true"
129060
+ })
129061
+ );
129050
129062
  sendMetricsEvent("delete encrypted variable", {
129051
129063
  sendMetrics: config.send_metrics
129052
129064
  });
@@ -129246,7 +129258,7 @@ async function parseBulkInputToObject(input) {
129246
129258
  if (input) {
129247
129259
  const jsonFilePath = import_node_path56.default.resolve(input);
129248
129260
  try {
129249
- const fileContent = readFileSync6(jsonFilePath);
129261
+ const fileContent = readFileSync5(jsonFilePath);
129250
129262
  try {
129251
129263
  content = parseJSON(fileContent);
129252
129264
  } catch (e7) {
@@ -135670,7 +135682,7 @@ var r2BucketCORSSetCommand = createCommand({
135670
135682
  async handler({ bucket, file, jurisdiction, force }, { config }) {
135671
135683
  const accountId = await requireAuth(config);
135672
135684
  const jsonFilePath = import_node_path57.default.resolve(file);
135673
- const corsConfig = parseJSON(readFileSync6(jsonFilePath), jsonFilePath);
135685
+ const corsConfig = parseJSON(readFileSync5(jsonFilePath), jsonFilePath);
135674
135686
  if (!corsConfig.rules || !Array.isArray(corsConfig.rules)) {
135675
135687
  throw new UserError(
135676
135688
  `The CORS configuration file must contain a 'rules' array as expected by the request body of the CORS API: https://developers.cloudflare.com/api/operations/r2-put-bucket-cors-policy`
@@ -136339,7 +136351,7 @@ var r2BucketLifecycleSetCommand = createCommand({
136339
136351
  const { bucket, file, jurisdiction, force } = args;
136340
136352
  let lifecyclePolicy;
136341
136353
  try {
136342
- lifecyclePolicy = JSON.parse(readFileSync6(file));
136354
+ lifecyclePolicy = JSON.parse(readFileSync5(file));
136343
136355
  } catch (e7) {
136344
136356
  if (e7 instanceof Error) {
136345
136357
  throw new UserError(
@@ -136663,7 +136675,7 @@ var r2BucketLockSetCommand = createCommand({
136663
136675
  const { bucket, file, jurisdiction, force } = args;
136664
136676
  let lockRule;
136665
136677
  try {
136666
- lockRule = JSON.parse(readFileSync6(file));
136678
+ lockRule = JSON.parse(readFileSync5(file));
136667
136679
  } catch (e7) {
136668
136680
  if (e7 instanceof Error) {
136669
136681
  throw new ParseError({
@@ -137537,7 +137549,7 @@ var r2BucketSippyEnableCommand = createCommand({
137537
137549
  } else if (args.provider === "GCS") {
137538
137550
  if (args.serviceAccountKeyFile) {
137539
137551
  const serviceAccount = JSON.parse(
137540
- readFileSync6(args.serviceAccountKeyFile)
137552
+ readFileSync5(args.serviceAccountKeyFile)
137541
137553
  );
137542
137554
  if ("client_email" in serviceAccount && "private_key" in serviceAccount) {
137543
137555
  args.clientEmail = serviceAccount.client_email;
@@ -150664,6 +150676,7 @@ var versionsUploadCommand = createCommand({
150664
150676
  owner: "Workers: Authoring and Testing",
150665
150677
  status: "stable"
150666
150678
  },
150679
+ positionalArgs: ["script"],
150667
150680
  args: {
150668
150681
  script: {
150669
150682
  describe: "The path to an entry point for your Worker",
@@ -153664,7 +153677,7 @@ async function main(argv) {
153664
153677
  } else if (isAuthenticationError(e7)) {
153665
153678
  mayReport = false;
153666
153679
  errorType = "AuthenticationError";
153667
- logger.log(formatMessage(e7));
153680
+ logger.error(e7);
153668
153681
  const envAuth = getAuthFromEnv();
153669
153682
  if (envAuth !== void 0 && "apiToken" in envAuth) {
153670
153683
  const message = "\u{1F4CE} It looks like you are authenticating Wrangler via a custom API token set in an environment variable.\nPlease ensure it has the correct permissions for this operation.\n";
@@ -153676,7 +153689,7 @@ async function main(argv) {
153676
153689
  e7.notes.push({
153677
153690
  text: "\nIf you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose"
153678
153691
  });
153679
- logger.log(formatMessage(e7));
153692
+ logger.error(e7);
153680
153693
  } else if (e7 instanceof JsonFriendlyFatalError) {
153681
153694
  logger.log(e7.message);
153682
153695
  } else if (e7 instanceof Error && e7.message.includes("Raw mode is not supported on")) {
@@ -153882,7 +153895,9 @@ function getModuleType(entry) {
153882
153895
  __name(getModuleType, "getModuleType");
153883
153896
  async function convertWorkerBundleToModules(workerBundle) {
153884
153897
  return await Promise.all(
153885
- [...workerBundle.entries()].map(
153898
+ [...workerBundle.entries()].filter(
153899
+ (m6) => m6[1] instanceof Blob && m6[1].type !== "application/source-map"
153900
+ ).map(
153886
153901
  async (m6) => ({
153887
153902
  type: getModuleType(m6[1]),
153888
153903
  path: m6[0],
@@ -154738,7 +154753,7 @@ async function publishRoutesFallback(routes, {
154738
154753
  { telemetryMessage: true }
154739
154754
  );
154740
154755
  }
154741
- logger.warn(
154756
+ logger.info(
154742
154757
  "The current authentication token does not have 'All Zones' permissions.\nFalling back to using the zone-based API endpoint to update each route individually.\nNote that there is no access to routes associated with zones that the API token does not have permission for.\nExisting routes for this Worker in such zones will not be deleted."
154743
154758
  );
154744
154759
  const deployedRoutes = [];
@@ -157665,7 +157680,7 @@ var import_undici25 = __toESM(require_undici());
157665
157680
  // src/utils/isAbortError.ts
157666
157681
  init_import_meta_url();
157667
157682
  function isAbortError(err) {
157668
- const legacyAbortErroCheck = err.code !== "ABORT_ERR";
157683
+ const legacyAbortErroCheck = err.code == "ABORT_ERR";
157669
157684
  const abortErrorCheck = err instanceof Error && err.name == "AbortError";
157670
157685
  return legacyAbortErroCheck || abortErrorCheck;
157671
157686
  }
@@ -157813,7 +157828,7 @@ var import_node_assert30 = __toESM(require("node:assert"));
157813
157828
  var import_node_path68 = __toESM(require("node:path"));
157814
157829
  function handlePreviewSessionUploadError(err, accountId) {
157815
157830
  (0, import_node_assert30.default)(err && typeof err === "object");
157816
- if (isAbortError(err)) {
157831
+ if (!isAbortError(err)) {
157817
157832
  if ("code" in err && err.code === 10049) {
157818
157833
  logger.log("Preview token expired, fetching a new one");
157819
157834
  return true;
@@ -157840,7 +157855,7 @@ For more details, refer to https://developers.cloudflare.com/workers/configurati
157840
157855
  );
157841
157856
  } else if (err instanceof UserError) {
157842
157857
  logger.error(err.message);
157843
- } else if (isAbortError(err)) {
157858
+ } else if (!isAbortError(err)) {
157844
157859
  logger.error("Error while creating remote dev session:", err);
157845
157860
  }
157846
157861
  }
@@ -157949,32 +157964,35 @@ async function getWorkerAccountAndContext(props) {
157949
157964
  }
157950
157965
  __name(getWorkerAccountAndContext, "getWorkerAccountAndContext");
157951
157966
  function handleUserFriendlyError(error2, accountId) {
157952
- switch (error2.code) {
157953
- case 10021: {
157954
- if (error2.notes[0].text === "binding DB of type d1 must have a valid `id` specified [code: 10021]") {
157955
- const errorMessage = "Error: You must use a real database in the preview_database_id configuration.";
157956
- const solutionMessage = "You can find your databases using 'wrangler d1 list', or read how to develop locally with D1 here:";
157957
- const documentationLink = `https://developers.cloudflare.com/d1/configuration/local-development`;
157958
- logger.error(
157959
- `${errorMessage}
157967
+ if (error2 instanceof APIError) {
157968
+ switch (error2.code) {
157969
+ case 10021: {
157970
+ if (error2.notes[0].text === "binding DB of type d1 must have a valid `id` specified [code: 10021]") {
157971
+ const errorMessage = "Error: You must use a real database in the preview_database_id configuration.";
157972
+ const solutionMessage = "You can find your databases using 'wrangler d1 list', or read how to develop locally with D1 here:";
157973
+ const documentationLink = `https://developers.cloudflare.com/d1/configuration/local-development`;
157974
+ logger.error(
157975
+ `${errorMessage}
157960
157976
  ${solutionMessage}
157961
157977
  ${documentationLink}`
157962
- );
157963
- return true;
157978
+ );
157979
+ return true;
157980
+ }
157981
+ return false;
157964
157982
  }
157965
- return false;
157966
- }
157967
- case 10063: {
157968
- const errorMessage = "Error: You need to register a workers.dev subdomain before running the dev command in remote mode";
157969
- const solutionMessage = "You can either enable local mode by pressing l, or register a workers.dev subdomain here:";
157970
- const onboardingLink = accountId ? `https://dash.cloudflare.com/${accountId}/workers/onboarding` : "https://dash.cloudflare.com/?to=/:account/workers/onboarding";
157971
- logger.error(`${errorMessage}
157983
+ case 10063: {
157984
+ const errorMessage = "Error: You need to register a workers.dev subdomain before running the dev command in remote mode";
157985
+ const solutionMessage = "You can either enable local mode by pressing l, or register a workers.dev subdomain here:";
157986
+ const onboardingLink = accountId ? `https://dash.cloudflare.com/${accountId}/workers/onboarding` : "https://dash.cloudflare.com/?to=/:account/workers/onboarding";
157987
+ logger.error(`${errorMessage}
157972
157988
  ${solutionMessage}
157973
157989
  ${onboardingLink}`);
157974
- return true;
157975
- }
157976
- default: {
157977
- return false;
157990
+ return true;
157991
+ }
157992
+ default: {
157993
+ logger.error(error2);
157994
+ return true;
157995
+ }
157978
157996
  }
157979
157997
  }
157980
157998
  }
@@ -158324,7 +158342,7 @@ var DevEnv = class extends import_node_events7.EventEmitter {
158324
158342
  `, ev.cause);
158325
158343
  logger.debug("=> Error contextual data:", ev.data);
158326
158344
  } else if (ev.source === "ConfigController" && ev.cause instanceof ParseError) {
158327
- logger.log(formatMessage(ev.cause));
158345
+ logger.error(ev.cause);
158328
158346
  } else {
158329
158347
  this.emit("error", ev);
158330
158348
  }
@@ -158738,7 +158756,7 @@ init_import_meta_url();
158738
158756
  var import_fs24 = require("fs");
158739
158757
  var import_toml8 = __toESM(require_toml());
158740
158758
  var experimental_patchConfig = /* @__PURE__ */ __name((configPath, patch, isArrayInsertion = true) => {
158741
- let configString = readFileSync6(configPath);
158759
+ let configString = readFileSync5(configPath);
158742
158760
  if (configPath.endsWith("toml")) {
158743
158761
  if (configString.includes("#")) {
158744
158762
  throw new PatchConfigError(
@@ -158757,7 +158775,7 @@ var experimental_patchConfig = /* @__PURE__ */ __name((configPath, patch, isArra
158757
158775
  });
158758
158776
  configString = applyEdits(configString, edit);
158759
158777
  }
158760
- const formatEdit = format5(configString, void 0, {});
158778
+ const formatEdit = format4(configString, void 0, {});
158761
158779
  configString = applyEdits(configString, formatEdit);
158762
158780
  if (configPath.endsWith(".toml")) {
158763
158781
  configString = import_toml8.default.stringify(parseJSONC(configString));