@stencil/core 4.43.2 → 4.43.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/index.cjs +379 -154
- package/cli/index.js +379 -154
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +2276 -2065
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +346 -137
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +423 -214
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +396 -189
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +1 -1
- package/internal/stencil-public-compiler.d.ts +61 -6
- package/internal/testing/index.js +410 -201
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +2 -4
- package/mock-doc/index.d.ts +1 -1
- package/mock-doc/index.js +2 -4
- package/mock-doc/package.json +1 -1
- package/package.json +2 -2
- package/screenshot/index.js +341 -132
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/glob.js +1 -1
- package/sys/node/index.js +44 -46
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +420 -211
- package/testing/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Dev Server Process v4.43.
|
|
2
|
+
Stencil Dev Server Process v4.43.3 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __create = Object.create;
|
|
@@ -7937,8 +7937,35 @@ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
|
7937
7937
|
};
|
|
7938
7938
|
|
|
7939
7939
|
// node_modules/minimatch/dist/esm/ast.js
|
|
7940
|
+
var _a;
|
|
7940
7941
|
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
7941
7942
|
var isExtglobType = (c) => types.has(c);
|
|
7943
|
+
var isExtglobAST = (c) => isExtglobType(c.type);
|
|
7944
|
+
var adoptionMap = /* @__PURE__ */ new Map([
|
|
7945
|
+
["!", ["@"]],
|
|
7946
|
+
["?", ["?", "@"]],
|
|
7947
|
+
["@", ["@"]],
|
|
7948
|
+
["*", ["*", "+", "?", "@"]],
|
|
7949
|
+
["+", ["+", "@"]]
|
|
7950
|
+
]);
|
|
7951
|
+
var adoptionWithSpaceMap = /* @__PURE__ */ new Map([
|
|
7952
|
+
["!", ["?"]],
|
|
7953
|
+
["@", ["?"]],
|
|
7954
|
+
["+", ["?", "*"]]
|
|
7955
|
+
]);
|
|
7956
|
+
var adoptionAnyMap = /* @__PURE__ */ new Map([
|
|
7957
|
+
["!", ["?", "@"]],
|
|
7958
|
+
["?", ["?", "@"]],
|
|
7959
|
+
["@", ["?", "@"]],
|
|
7960
|
+
["*", ["*", "+", "?", "@"]],
|
|
7961
|
+
["+", ["+", "@", "?", "*"]]
|
|
7962
|
+
]);
|
|
7963
|
+
var usurpMap = /* @__PURE__ */ new Map([
|
|
7964
|
+
["!", /* @__PURE__ */ new Map([["!", "@"]])],
|
|
7965
|
+
["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
|
|
7966
|
+
["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
|
|
7967
|
+
["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
|
|
7968
|
+
]);
|
|
7942
7969
|
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
7943
7970
|
var startNoDot = "(?!\\.)";
|
|
7944
7971
|
var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
|
|
@@ -7948,8 +7975,8 @@ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
|
7948
7975
|
var qmark = "[^/]";
|
|
7949
7976
|
var star = qmark + "*?";
|
|
7950
7977
|
var starNoEmpty = qmark + "+?";
|
|
7951
|
-
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
|
|
7952
|
-
var
|
|
7978
|
+
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, canAdoptWithSpace_fn, canAdopt_fn, canAdoptType_fn, adoptWithSpace_fn, adopt_fn, canUsurpType_fn, canUsurp_fn, usurp_fn, flatten_fn, partsToRegExp_fn, parseGlob_fn;
|
|
7979
|
+
var AST = class {
|
|
7953
7980
|
constructor(type, parent, options = {}) {
|
|
7954
7981
|
__privateAdd(this, _AST_instances);
|
|
7955
7982
|
__publicField(this, "type");
|
|
@@ -8002,44 +8029,44 @@ var _AST = class _AST {
|
|
|
8002
8029
|
for (const p of parts) {
|
|
8003
8030
|
if (p === "")
|
|
8004
8031
|
continue;
|
|
8005
|
-
if (typeof p !== "string" && !(p instanceof
|
|
8032
|
+
if (typeof p !== "string" && !(p instanceof _a && __privateGet(p, _parent) === this)) {
|
|
8006
8033
|
throw new Error("invalid part: " + p);
|
|
8007
8034
|
}
|
|
8008
8035
|
__privateGet(this, _parts).push(p);
|
|
8009
8036
|
}
|
|
8010
8037
|
}
|
|
8011
8038
|
toJSON() {
|
|
8012
|
-
var
|
|
8039
|
+
var _a2;
|
|
8013
8040
|
const ret = this.type === null ? __privateGet(this, _parts).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...__privateGet(this, _parts).map((p) => p.toJSON())];
|
|
8014
8041
|
if (this.isStart() && !this.type)
|
|
8015
8042
|
ret.unshift([]);
|
|
8016
|
-
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((
|
|
8043
|
+
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")) {
|
|
8017
8044
|
ret.push({});
|
|
8018
8045
|
}
|
|
8019
8046
|
return ret;
|
|
8020
8047
|
}
|
|
8021
8048
|
isStart() {
|
|
8022
|
-
var
|
|
8049
|
+
var _a2;
|
|
8023
8050
|
if (__privateGet(this, _root) === this)
|
|
8024
8051
|
return true;
|
|
8025
|
-
if (!((
|
|
8052
|
+
if (!((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.isStart()))
|
|
8026
8053
|
return false;
|
|
8027
8054
|
if (__privateGet(this, _parentIndex) === 0)
|
|
8028
8055
|
return true;
|
|
8029
8056
|
const p = __privateGet(this, _parent);
|
|
8030
8057
|
for (let i = 0; i < __privateGet(this, _parentIndex); i++) {
|
|
8031
8058
|
const pp = __privateGet(p, _parts)[i];
|
|
8032
|
-
if (!(pp instanceof
|
|
8059
|
+
if (!(pp instanceof _a && pp.type === "!")) {
|
|
8033
8060
|
return false;
|
|
8034
8061
|
}
|
|
8035
8062
|
}
|
|
8036
8063
|
return true;
|
|
8037
8064
|
}
|
|
8038
8065
|
isEnd() {
|
|
8039
|
-
var
|
|
8066
|
+
var _a2, _b, _c;
|
|
8040
8067
|
if (__privateGet(this, _root) === this)
|
|
8041
8068
|
return true;
|
|
8042
|
-
if (((
|
|
8069
|
+
if (((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")
|
|
8043
8070
|
return true;
|
|
8044
8071
|
if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
|
|
8045
8072
|
return false;
|
|
@@ -8055,16 +8082,16 @@ var _AST = class _AST {
|
|
|
8055
8082
|
this.push(part.clone(this));
|
|
8056
8083
|
}
|
|
8057
8084
|
clone(parent) {
|
|
8058
|
-
const c = new
|
|
8085
|
+
const c = new _a(this.type, parent);
|
|
8059
8086
|
for (const p of __privateGet(this, _parts)) {
|
|
8060
8087
|
c.copyIn(p);
|
|
8061
8088
|
}
|
|
8062
8089
|
return c;
|
|
8063
8090
|
}
|
|
8064
8091
|
static fromGlob(pattern, options = {}) {
|
|
8065
|
-
var
|
|
8066
|
-
const ast = new
|
|
8067
|
-
__privateMethod(
|
|
8092
|
+
var _a2;
|
|
8093
|
+
const ast = new _a(null, void 0, options);
|
|
8094
|
+
__privateMethod(_a2 = _a, _AST_static, parseAST_fn).call(_a2, pattern, ast, 0, options, 0);
|
|
8068
8095
|
return ast;
|
|
8069
8096
|
}
|
|
8070
8097
|
// returns the regular expression if there's magic, or the unescaped
|
|
@@ -8157,15 +8184,17 @@ var _AST = class _AST {
|
|
|
8157
8184
|
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
8158
8185
|
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
8159
8186
|
toRegExpSource(allowDot) {
|
|
8160
|
-
var
|
|
8187
|
+
var _a2;
|
|
8161
8188
|
const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
|
|
8162
|
-
if (__privateGet(this, _root) === this)
|
|
8189
|
+
if (__privateGet(this, _root) === this) {
|
|
8190
|
+
__privateMethod(this, _AST_instances, flatten_fn).call(this);
|
|
8163
8191
|
__privateMethod(this, _AST_instances, fillNegs_fn).call(this);
|
|
8164
|
-
|
|
8192
|
+
}
|
|
8193
|
+
if (!isExtglobAST(this)) {
|
|
8165
8194
|
const noEmpty = this.isStart() && this.isEnd();
|
|
8166
8195
|
const src = __privateGet(this, _parts).map((p) => {
|
|
8167
|
-
var
|
|
8168
|
-
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(
|
|
8196
|
+
var _a3;
|
|
8197
|
+
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a3 = _a, _AST_static, parseGlob_fn).call(_a3, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
|
|
8169
8198
|
__privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
|
|
8170
8199
|
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
8171
8200
|
return re;
|
|
@@ -8188,7 +8217,7 @@ var _AST = class _AST {
|
|
|
8188
8217
|
}
|
|
8189
8218
|
}
|
|
8190
8219
|
let end = "";
|
|
8191
|
-
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((
|
|
8220
|
+
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!") {
|
|
8192
8221
|
end = "(?:$|\\/)";
|
|
8193
8222
|
}
|
|
8194
8223
|
const final2 = start2 + src + end;
|
|
@@ -8204,9 +8233,10 @@ var _AST = class _AST {
|
|
|
8204
8233
|
let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
|
|
8205
8234
|
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
8206
8235
|
const s = this.toString();
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8236
|
+
const me = this;
|
|
8237
|
+
__privateSet(me, _parts, [s]);
|
|
8238
|
+
me.type = null;
|
|
8239
|
+
__privateSet(me, _hasMagic, void 0);
|
|
8210
8240
|
return [s, unescape(this.toString()), false, false];
|
|
8211
8241
|
}
|
|
8212
8242
|
let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
|
|
@@ -8275,8 +8305,9 @@ fillNegs_fn = function() {
|
|
|
8275
8305
|
return this;
|
|
8276
8306
|
};
|
|
8277
8307
|
_AST_static = new WeakSet();
|
|
8278
|
-
parseAST_fn = function(str, ast, pos, opt) {
|
|
8279
|
-
var
|
|
8308
|
+
parseAST_fn = function(str, ast, pos, opt, extDepth) {
|
|
8309
|
+
var _a2, _b, _c, _d, _e;
|
|
8310
|
+
const maxDepth = (_a2 = opt.maxExtglobRecursion) != null ? _a2 : 2;
|
|
8280
8311
|
let escaping = false;
|
|
8281
8312
|
let inBrace = false;
|
|
8282
8313
|
let braceStart = -1;
|
|
@@ -8308,11 +8339,12 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
8308
8339
|
acc2 += c;
|
|
8309
8340
|
continue;
|
|
8310
8341
|
}
|
|
8311
|
-
|
|
8342
|
+
const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i2) === "(" && extDepth <= maxDepth;
|
|
8343
|
+
if (doRecurse) {
|
|
8312
8344
|
ast.push(acc2);
|
|
8313
8345
|
acc2 = "";
|
|
8314
|
-
const ext2 = new
|
|
8315
|
-
i2 = __privateMethod(
|
|
8346
|
+
const ext2 = new _a(c, ast);
|
|
8347
|
+
i2 = __privateMethod(_b = _a, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt, extDepth + 1);
|
|
8316
8348
|
ast.push(ext2);
|
|
8317
8349
|
continue;
|
|
8318
8350
|
}
|
|
@@ -8322,7 +8354,7 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
8322
8354
|
return i2;
|
|
8323
8355
|
}
|
|
8324
8356
|
let i = pos + 1;
|
|
8325
|
-
let part = new
|
|
8357
|
+
let part = new _a(null, ast);
|
|
8326
8358
|
const parts = [];
|
|
8327
8359
|
let acc = "";
|
|
8328
8360
|
while (i < str.length) {
|
|
@@ -8349,19 +8381,22 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
8349
8381
|
acc += c;
|
|
8350
8382
|
continue;
|
|
8351
8383
|
}
|
|
8352
|
-
|
|
8384
|
+
const doRecurse = isExtglobType(c) && str.charAt(i) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
|
|
8385
|
+
(extDepth <= maxDepth || ast && __privateMethod(_c = ast, _AST_instances, canAdoptType_fn).call(_c, c));
|
|
8386
|
+
if (doRecurse) {
|
|
8387
|
+
const depthAdd = ast && __privateMethod(_d = ast, _AST_instances, canAdoptType_fn).call(_d, c) ? 0 : 1;
|
|
8353
8388
|
part.push(acc);
|
|
8354
8389
|
acc = "";
|
|
8355
|
-
const ext2 = new
|
|
8390
|
+
const ext2 = new _a(c, part);
|
|
8356
8391
|
part.push(ext2);
|
|
8357
|
-
i = __privateMethod(
|
|
8392
|
+
i = __privateMethod(_e = _a, _AST_static, parseAST_fn).call(_e, str, ext2, i, opt, extDepth + depthAdd);
|
|
8358
8393
|
continue;
|
|
8359
8394
|
}
|
|
8360
8395
|
if (c === "|") {
|
|
8361
8396
|
part.push(acc);
|
|
8362
8397
|
acc = "";
|
|
8363
8398
|
parts.push(part);
|
|
8364
|
-
part = new
|
|
8399
|
+
part = new _a(null, ast);
|
|
8365
8400
|
continue;
|
|
8366
8401
|
}
|
|
8367
8402
|
if (c === ")") {
|
|
@@ -8380,6 +8415,100 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
8380
8415
|
__privateSet(ast, _parts, [str.substring(pos - 1)]);
|
|
8381
8416
|
return i;
|
|
8382
8417
|
};
|
|
8418
|
+
canAdoptWithSpace_fn = function(child) {
|
|
8419
|
+
return __privateMethod(this, _AST_instances, canAdopt_fn).call(this, child, adoptionWithSpaceMap);
|
|
8420
|
+
};
|
|
8421
|
+
canAdopt_fn = function(child, map2 = adoptionMap) {
|
|
8422
|
+
if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null) {
|
|
8423
|
+
return false;
|
|
8424
|
+
}
|
|
8425
|
+
const gc = __privateGet(child, _parts)[0];
|
|
8426
|
+
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
8427
|
+
return false;
|
|
8428
|
+
}
|
|
8429
|
+
return __privateMethod(this, _AST_instances, canAdoptType_fn).call(this, gc.type, map2);
|
|
8430
|
+
};
|
|
8431
|
+
canAdoptType_fn = function(c, map2 = adoptionAnyMap) {
|
|
8432
|
+
var _a2;
|
|
8433
|
+
return !!((_a2 = map2.get(this.type)) == null ? void 0 : _a2.includes(c));
|
|
8434
|
+
};
|
|
8435
|
+
adoptWithSpace_fn = function(child, index) {
|
|
8436
|
+
const gc = __privateGet(child, _parts)[0];
|
|
8437
|
+
const blank = new _a(null, gc, this.options);
|
|
8438
|
+
__privateGet(blank, _parts).push("");
|
|
8439
|
+
gc.push(blank);
|
|
8440
|
+
__privateMethod(this, _AST_instances, adopt_fn).call(this, child, index);
|
|
8441
|
+
};
|
|
8442
|
+
adopt_fn = function(child, index) {
|
|
8443
|
+
const gc = __privateGet(child, _parts)[0];
|
|
8444
|
+
__privateGet(this, _parts).splice(index, 1, ...__privateGet(gc, _parts));
|
|
8445
|
+
for (const p of __privateGet(gc, _parts)) {
|
|
8446
|
+
if (typeof p === "object")
|
|
8447
|
+
__privateSet(p, _parent, this);
|
|
8448
|
+
}
|
|
8449
|
+
__privateSet(this, _toString, void 0);
|
|
8450
|
+
};
|
|
8451
|
+
canUsurpType_fn = function(c) {
|
|
8452
|
+
const m = usurpMap.get(this.type);
|
|
8453
|
+
return !!(m == null ? void 0 : m.has(c));
|
|
8454
|
+
};
|
|
8455
|
+
canUsurp_fn = function(child) {
|
|
8456
|
+
if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null || __privateGet(this, _parts).length !== 1) {
|
|
8457
|
+
return false;
|
|
8458
|
+
}
|
|
8459
|
+
const gc = __privateGet(child, _parts)[0];
|
|
8460
|
+
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
8461
|
+
return false;
|
|
8462
|
+
}
|
|
8463
|
+
return __privateMethod(this, _AST_instances, canUsurpType_fn).call(this, gc.type);
|
|
8464
|
+
};
|
|
8465
|
+
usurp_fn = function(child) {
|
|
8466
|
+
const m = usurpMap.get(this.type);
|
|
8467
|
+
const gc = __privateGet(child, _parts)[0];
|
|
8468
|
+
const nt = m == null ? void 0 : m.get(gc.type);
|
|
8469
|
+
if (!nt)
|
|
8470
|
+
return false;
|
|
8471
|
+
__privateSet(this, _parts, __privateGet(gc, _parts));
|
|
8472
|
+
for (const p of __privateGet(this, _parts)) {
|
|
8473
|
+
if (typeof p === "object")
|
|
8474
|
+
__privateSet(p, _parent, this);
|
|
8475
|
+
}
|
|
8476
|
+
this.type = nt;
|
|
8477
|
+
__privateSet(this, _toString, void 0);
|
|
8478
|
+
__privateSet(this, _emptyExt, false);
|
|
8479
|
+
};
|
|
8480
|
+
flatten_fn = function() {
|
|
8481
|
+
var _a2, _b;
|
|
8482
|
+
if (!isExtglobAST(this)) {
|
|
8483
|
+
for (const p of __privateGet(this, _parts)) {
|
|
8484
|
+
if (typeof p === "object")
|
|
8485
|
+
__privateMethod(_a2 = p, _AST_instances, flatten_fn).call(_a2);
|
|
8486
|
+
}
|
|
8487
|
+
} else {
|
|
8488
|
+
let iterations = 0;
|
|
8489
|
+
let done = false;
|
|
8490
|
+
do {
|
|
8491
|
+
done = true;
|
|
8492
|
+
for (let i = 0; i < __privateGet(this, _parts).length; i++) {
|
|
8493
|
+
const c = __privateGet(this, _parts)[i];
|
|
8494
|
+
if (typeof c === "object") {
|
|
8495
|
+
__privateMethod(_b = c, _AST_instances, flatten_fn).call(_b);
|
|
8496
|
+
if (__privateMethod(this, _AST_instances, canAdopt_fn).call(this, c)) {
|
|
8497
|
+
done = false;
|
|
8498
|
+
__privateMethod(this, _AST_instances, adopt_fn).call(this, c, i);
|
|
8499
|
+
} else if (__privateMethod(this, _AST_instances, canAdoptWithSpace_fn).call(this, c)) {
|
|
8500
|
+
done = false;
|
|
8501
|
+
__privateMethod(this, _AST_instances, adoptWithSpace_fn).call(this, c, i);
|
|
8502
|
+
} else if (__privateMethod(this, _AST_instances, canUsurp_fn).call(this, c)) {
|
|
8503
|
+
done = false;
|
|
8504
|
+
__privateMethod(this, _AST_instances, usurp_fn).call(this, c);
|
|
8505
|
+
}
|
|
8506
|
+
}
|
|
8507
|
+
}
|
|
8508
|
+
} while (!done && ++iterations < 10);
|
|
8509
|
+
}
|
|
8510
|
+
__privateSet(this, _toString, void 0);
|
|
8511
|
+
};
|
|
8383
8512
|
partsToRegExp_fn = function(dot) {
|
|
8384
8513
|
return __privateGet(this, _parts).map((p) => {
|
|
8385
8514
|
if (typeof p === "string") {
|
|
@@ -8394,11 +8523,13 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
|
8394
8523
|
let escaping = false;
|
|
8395
8524
|
let re = "";
|
|
8396
8525
|
let uflag = false;
|
|
8526
|
+
let inStar = false;
|
|
8397
8527
|
for (let i = 0; i < glob.length; i++) {
|
|
8398
8528
|
const c = glob.charAt(i);
|
|
8399
8529
|
if (escaping) {
|
|
8400
8530
|
escaping = false;
|
|
8401
8531
|
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
8532
|
+
inStar = false;
|
|
8402
8533
|
continue;
|
|
8403
8534
|
}
|
|
8404
8535
|
if (c === "\\") {
|
|
@@ -8416,16 +8547,19 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
|
8416
8547
|
uflag = uflag || needUflag;
|
|
8417
8548
|
i += consumed - 1;
|
|
8418
8549
|
hasMagic = hasMagic || magic;
|
|
8550
|
+
inStar = false;
|
|
8419
8551
|
continue;
|
|
8420
8552
|
}
|
|
8421
8553
|
}
|
|
8422
8554
|
if (c === "*") {
|
|
8423
|
-
if (
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8555
|
+
if (inStar)
|
|
8556
|
+
continue;
|
|
8557
|
+
inStar = true;
|
|
8558
|
+
re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
|
|
8427
8559
|
hasMagic = true;
|
|
8428
8560
|
continue;
|
|
8561
|
+
} else {
|
|
8562
|
+
inStar = false;
|
|
8429
8563
|
}
|
|
8430
8564
|
if (c === "?") {
|
|
8431
8565
|
re += qmark;
|
|
@@ -8436,8 +8570,8 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
|
8436
8570
|
}
|
|
8437
8571
|
return [re, unescape(glob), !!hasMagic, uflag];
|
|
8438
8572
|
};
|
|
8439
|
-
__privateAdd(
|
|
8440
|
-
|
|
8573
|
+
__privateAdd(AST, _AST_static);
|
|
8574
|
+
_a = AST;
|
|
8441
8575
|
|
|
8442
8576
|
// node_modules/minimatch/dist/esm/escape.js
|
|
8443
8577
|
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
@@ -8576,28 +8710,33 @@ var match = (list, pattern, options = {}) => {
|
|
|
8576
8710
|
minimatch.match = match;
|
|
8577
8711
|
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
8578
8712
|
var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
8713
|
+
var _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn;
|
|
8579
8714
|
var Minimatch = class {
|
|
8580
|
-
options;
|
|
8581
|
-
set;
|
|
8582
|
-
pattern;
|
|
8583
|
-
windowsPathsNoEscape;
|
|
8584
|
-
nonegate;
|
|
8585
|
-
negate;
|
|
8586
|
-
comment;
|
|
8587
|
-
empty;
|
|
8588
|
-
preserveMultipleSlashes;
|
|
8589
|
-
partial;
|
|
8590
|
-
globSet;
|
|
8591
|
-
globParts;
|
|
8592
|
-
nocase;
|
|
8593
|
-
isWindows;
|
|
8594
|
-
platform;
|
|
8595
|
-
windowsNoMagicRoot;
|
|
8596
|
-
regexp;
|
|
8597
8715
|
constructor(pattern, options = {}) {
|
|
8716
|
+
__privateAdd(this, _Minimatch_instances);
|
|
8717
|
+
__publicField(this, "options");
|
|
8718
|
+
__publicField(this, "set");
|
|
8719
|
+
__publicField(this, "pattern");
|
|
8720
|
+
__publicField(this, "windowsPathsNoEscape");
|
|
8721
|
+
__publicField(this, "nonegate");
|
|
8722
|
+
__publicField(this, "negate");
|
|
8723
|
+
__publicField(this, "comment");
|
|
8724
|
+
__publicField(this, "empty");
|
|
8725
|
+
__publicField(this, "preserveMultipleSlashes");
|
|
8726
|
+
__publicField(this, "partial");
|
|
8727
|
+
__publicField(this, "globSet");
|
|
8728
|
+
__publicField(this, "globParts");
|
|
8729
|
+
__publicField(this, "nocase");
|
|
8730
|
+
__publicField(this, "isWindows");
|
|
8731
|
+
__publicField(this, "platform");
|
|
8732
|
+
__publicField(this, "windowsNoMagicRoot");
|
|
8733
|
+
__publicField(this, "maxGlobstarRecursion");
|
|
8734
|
+
__publicField(this, "regexp");
|
|
8735
|
+
var _a2;
|
|
8598
8736
|
assertValidPattern(pattern);
|
|
8599
8737
|
options = options || {};
|
|
8600
8738
|
this.options = options;
|
|
8739
|
+
this.maxGlobstarRecursion = (_a2 = options.maxGlobstarRecursion) != null ? _a2 : 200;
|
|
8601
8740
|
this.pattern = pattern;
|
|
8602
8741
|
this.platform = options.platform || defaultPlatform;
|
|
8603
8742
|
this.isWindows = this.platform === "win32";
|
|
@@ -8865,10 +9004,11 @@ var Minimatch = class {
|
|
|
8865
9004
|
for (let i = 0; i < globParts.length - 1; i++) {
|
|
8866
9005
|
for (let j = i + 1; j < globParts.length; j++) {
|
|
8867
9006
|
const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
|
|
8868
|
-
if (
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
9007
|
+
if (matched) {
|
|
9008
|
+
globParts[i] = [];
|
|
9009
|
+
globParts[j] = matched;
|
|
9010
|
+
break;
|
|
9011
|
+
}
|
|
8872
9012
|
}
|
|
8873
9013
|
}
|
|
8874
9014
|
return globParts.filter((gs) => gs.length);
|
|
@@ -8929,7 +9069,8 @@ var Minimatch = class {
|
|
|
8929
9069
|
// out of pattern, then that's fine, as long as all
|
|
8930
9070
|
// the parts match.
|
|
8931
9071
|
matchOne(file, pattern, partial = false) {
|
|
8932
|
-
|
|
9072
|
+
let fileStartIndex = 0;
|
|
9073
|
+
let patternStartIndex = 0;
|
|
8933
9074
|
if (this.isWindows) {
|
|
8934
9075
|
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
8935
9076
|
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
@@ -8938,14 +9079,14 @@ var Minimatch = class {
|
|
|
8938
9079
|
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
8939
9080
|
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
8940
9081
|
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
8941
|
-
const [fd, pd] = [
|
|
9082
|
+
const [fd, pd] = [
|
|
9083
|
+
file[fdi],
|
|
9084
|
+
pattern[pdi]
|
|
9085
|
+
];
|
|
8942
9086
|
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
8943
9087
|
pattern[pdi] = fd;
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
} else if (fdi > pdi) {
|
|
8947
|
-
file = file.slice(fdi);
|
|
8948
|
-
}
|
|
9088
|
+
patternStartIndex = pdi;
|
|
9089
|
+
fileStartIndex = fdi;
|
|
8949
9090
|
}
|
|
8950
9091
|
}
|
|
8951
9092
|
}
|
|
@@ -8953,71 +9094,10 @@ var Minimatch = class {
|
|
|
8953
9094
|
if (optimizationLevel >= 2) {
|
|
8954
9095
|
file = this.levelTwoFileOptimize(file);
|
|
8955
9096
|
}
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
8959
|
-
this.debug("matchOne loop");
|
|
8960
|
-
var p = pattern[pi];
|
|
8961
|
-
var f = file[fi];
|
|
8962
|
-
this.debug(pattern, p, f);
|
|
8963
|
-
if (p === false) {
|
|
8964
|
-
return false;
|
|
8965
|
-
}
|
|
8966
|
-
if (p === GLOBSTAR) {
|
|
8967
|
-
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
8968
|
-
var fr = fi;
|
|
8969
|
-
var pr = pi + 1;
|
|
8970
|
-
if (pr === pl) {
|
|
8971
|
-
this.debug("** at the end");
|
|
8972
|
-
for (; fi < fl; fi++) {
|
|
8973
|
-
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
8974
|
-
return false;
|
|
8975
|
-
}
|
|
8976
|
-
return true;
|
|
8977
|
-
}
|
|
8978
|
-
while (fr < fl) {
|
|
8979
|
-
var swallowee = file[fr];
|
|
8980
|
-
this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
|
|
8981
|
-
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
|
8982
|
-
this.debug("globstar found match!", fr, fl, swallowee);
|
|
8983
|
-
return true;
|
|
8984
|
-
} else {
|
|
8985
|
-
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
8986
|
-
this.debug("dot detected!", file, fr, pattern, pr);
|
|
8987
|
-
break;
|
|
8988
|
-
}
|
|
8989
|
-
this.debug("globstar swallow a segment, and continue");
|
|
8990
|
-
fr++;
|
|
8991
|
-
}
|
|
8992
|
-
}
|
|
8993
|
-
if (partial) {
|
|
8994
|
-
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
8995
|
-
if (fr === fl) {
|
|
8996
|
-
return true;
|
|
8997
|
-
}
|
|
8998
|
-
}
|
|
8999
|
-
return false;
|
|
9000
|
-
}
|
|
9001
|
-
let hit;
|
|
9002
|
-
if (typeof p === "string") {
|
|
9003
|
-
hit = f === p;
|
|
9004
|
-
this.debug("string match", p, f, hit);
|
|
9005
|
-
} else {
|
|
9006
|
-
hit = p.test(f);
|
|
9007
|
-
this.debug("pattern match", p, f, hit);
|
|
9008
|
-
}
|
|
9009
|
-
if (!hit)
|
|
9010
|
-
return false;
|
|
9011
|
-
}
|
|
9012
|
-
if (fi === fl && pi === pl) {
|
|
9013
|
-
return true;
|
|
9014
|
-
} else if (fi === fl) {
|
|
9015
|
-
return partial;
|
|
9016
|
-
} else if (pi === pl) {
|
|
9017
|
-
return fi === fl - 1 && file[fi] === "";
|
|
9018
|
-
} else {
|
|
9019
|
-
throw new Error("wtf?");
|
|
9097
|
+
if (pattern.includes(GLOBSTAR)) {
|
|
9098
|
+
return __privateMethod(this, _Minimatch_instances, matchGlobstar_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
9020
9099
|
}
|
|
9100
|
+
return __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
9021
9101
|
}
|
|
9022
9102
|
braceExpand() {
|
|
9023
9103
|
return braceExpand(this.pattern, this.options);
|
|
@@ -9156,6 +9236,135 @@ var Minimatch = class {
|
|
|
9156
9236
|
return minimatch.defaults(def).Minimatch;
|
|
9157
9237
|
}
|
|
9158
9238
|
};
|
|
9239
|
+
_Minimatch_instances = new WeakSet();
|
|
9240
|
+
matchGlobstar_fn = function(file, pattern, partial, fileIndex, patternIndex) {
|
|
9241
|
+
const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
|
|
9242
|
+
const lastgs = pattern.lastIndexOf(GLOBSTAR);
|
|
9243
|
+
const [head, body, tail] = partial ? [
|
|
9244
|
+
pattern.slice(patternIndex, firstgs),
|
|
9245
|
+
pattern.slice(firstgs + 1),
|
|
9246
|
+
[]
|
|
9247
|
+
] : [
|
|
9248
|
+
pattern.slice(patternIndex, firstgs),
|
|
9249
|
+
pattern.slice(firstgs + 1, lastgs),
|
|
9250
|
+
pattern.slice(lastgs + 1)
|
|
9251
|
+
];
|
|
9252
|
+
if (head.length) {
|
|
9253
|
+
const fileHead = file.slice(fileIndex, fileIndex + head.length);
|
|
9254
|
+
if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, fileHead, head, partial, 0, 0))
|
|
9255
|
+
return false;
|
|
9256
|
+
fileIndex += head.length;
|
|
9257
|
+
}
|
|
9258
|
+
let fileTailMatch = 0;
|
|
9259
|
+
if (tail.length) {
|
|
9260
|
+
if (tail.length + fileIndex > file.length)
|
|
9261
|
+
return false;
|
|
9262
|
+
let tailStart = file.length - tail.length;
|
|
9263
|
+
if (__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0)) {
|
|
9264
|
+
fileTailMatch = tail.length;
|
|
9265
|
+
} else {
|
|
9266
|
+
if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
|
|
9267
|
+
return false;
|
|
9268
|
+
}
|
|
9269
|
+
tailStart--;
|
|
9270
|
+
if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0))
|
|
9271
|
+
return false;
|
|
9272
|
+
fileTailMatch = tail.length + 1;
|
|
9273
|
+
}
|
|
9274
|
+
}
|
|
9275
|
+
if (!body.length) {
|
|
9276
|
+
let sawSome = !!fileTailMatch;
|
|
9277
|
+
for (let i2 = fileIndex; i2 < file.length - fileTailMatch; i2++) {
|
|
9278
|
+
const f = String(file[i2]);
|
|
9279
|
+
sawSome = true;
|
|
9280
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
9281
|
+
return false;
|
|
9282
|
+
}
|
|
9283
|
+
}
|
|
9284
|
+
return partial || sawSome;
|
|
9285
|
+
}
|
|
9286
|
+
const bodySegments = [[[], 0]];
|
|
9287
|
+
let currentBody = bodySegments[0];
|
|
9288
|
+
let nonGsParts = 0;
|
|
9289
|
+
const nonGsPartsSums = [0];
|
|
9290
|
+
for (const b of body) {
|
|
9291
|
+
if (b === GLOBSTAR) {
|
|
9292
|
+
nonGsPartsSums.push(nonGsParts);
|
|
9293
|
+
currentBody = [[], 0];
|
|
9294
|
+
bodySegments.push(currentBody);
|
|
9295
|
+
} else {
|
|
9296
|
+
currentBody[0].push(b);
|
|
9297
|
+
nonGsParts++;
|
|
9298
|
+
}
|
|
9299
|
+
}
|
|
9300
|
+
let i = bodySegments.length - 1;
|
|
9301
|
+
const fileLength = file.length - fileTailMatch;
|
|
9302
|
+
for (const b of bodySegments) {
|
|
9303
|
+
b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
|
|
9304
|
+
}
|
|
9305
|
+
return !!__privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
|
|
9306
|
+
};
|
|
9307
|
+
matchGlobStarBodySections_fn = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
|
|
9308
|
+
const bs = bodySegments[bodyIndex];
|
|
9309
|
+
if (!bs) {
|
|
9310
|
+
for (let i = fileIndex; i < file.length; i++) {
|
|
9311
|
+
sawTail = true;
|
|
9312
|
+
const f = file[i];
|
|
9313
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
9314
|
+
return false;
|
|
9315
|
+
}
|
|
9316
|
+
}
|
|
9317
|
+
return sawTail;
|
|
9318
|
+
}
|
|
9319
|
+
const [body, after] = bs;
|
|
9320
|
+
while (fileIndex <= after) {
|
|
9321
|
+
const m = __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
|
|
9322
|
+
if (m && globStarDepth < this.maxGlobstarRecursion) {
|
|
9323
|
+
const sub = __privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
|
|
9324
|
+
if (sub !== false)
|
|
9325
|
+
return sub;
|
|
9326
|
+
}
|
|
9327
|
+
const f = file[fileIndex];
|
|
9328
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
9329
|
+
return false;
|
|
9330
|
+
}
|
|
9331
|
+
fileIndex++;
|
|
9332
|
+
}
|
|
9333
|
+
return partial || null;
|
|
9334
|
+
};
|
|
9335
|
+
matchOne_fn = function(file, pattern, partial, fileIndex, patternIndex) {
|
|
9336
|
+
let fi;
|
|
9337
|
+
let pi;
|
|
9338
|
+
let pl;
|
|
9339
|
+
let fl;
|
|
9340
|
+
for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
9341
|
+
this.debug("matchOne loop");
|
|
9342
|
+
let p = pattern[pi];
|
|
9343
|
+
let f = file[fi];
|
|
9344
|
+
this.debug(pattern, p, f);
|
|
9345
|
+
if (p === false || p === GLOBSTAR)
|
|
9346
|
+
return false;
|
|
9347
|
+
let hit;
|
|
9348
|
+
if (typeof p === "string") {
|
|
9349
|
+
hit = f === p;
|
|
9350
|
+
this.debug("string match", p, f, hit);
|
|
9351
|
+
} else {
|
|
9352
|
+
hit = p.test(f);
|
|
9353
|
+
this.debug("pattern match", p, f, hit);
|
|
9354
|
+
}
|
|
9355
|
+
if (!hit)
|
|
9356
|
+
return false;
|
|
9357
|
+
}
|
|
9358
|
+
if (fi === fl && pi === pl) {
|
|
9359
|
+
return true;
|
|
9360
|
+
} else if (fi === fl) {
|
|
9361
|
+
return partial;
|
|
9362
|
+
} else if (pi === pl) {
|
|
9363
|
+
return fi === fl - 1 && file[fi] === "";
|
|
9364
|
+
} else {
|
|
9365
|
+
throw new Error("wtf?");
|
|
9366
|
+
}
|
|
9367
|
+
};
|
|
9159
9368
|
minimatch.AST = AST;
|
|
9160
9369
|
minimatch.Minimatch = Minimatch;
|
|
9161
9370
|
minimatch.escape = escape;
|
|
@@ -9378,7 +9587,7 @@ var DEV_SERVER_INIT_URL = `${DEV_SERVER_URL}-init`;
|
|
|
9378
9587
|
var OPEN_IN_EDITOR_URL = `${DEV_SERVER_URL}-open-in-editor`;
|
|
9379
9588
|
|
|
9380
9589
|
// build/version.js
|
|
9381
|
-
var version = "4.43.
|
|
9590
|
+
var version = "4.43.3";
|
|
9382
9591
|
|
|
9383
9592
|
// build/dev-server/content-types-db.json
|
|
9384
9593
|
var content_types_db_default = { "123": "application/vnd.lotus-1-2-3", "210": "model/step", "1km": "application/vnd.1000minds.decision-model+xml", "3dml": "text/vnd.in3d.3dml", "3ds": "image/x-3ds", "3g2": "video/3gpp2", "3gp": "video/3gpp", "3gpp": "video/3gpp", "3mf": "model/3mf", "7z": "application/x-7z-compressed", "aab": "application/x-authorware-bin", "aac": "audio/x-aac", "aam": "application/x-authorware-map", "aas": "application/x-authorware-seg", "abw": "application/x-abiword", "ac": "application/vnd.nokia.n-gage.ac+xml", "acc": "application/vnd.americandynamics.acc", "ace": "application/x-ace-compressed", "acu": "application/vnd.acucobol", "acutc": "application/vnd.acucorp", "adp": "audio/adpcm", "adts": "audio/aac", "aep": "application/vnd.audiograph", "afm": "application/x-font-type1", "afp": "application/vnd.ibm.modcap", "age": "application/vnd.age", "ahead": "application/vnd.ahead.space", "ai": "application/postscript", "aif": "audio/x-aiff", "aifc": "audio/x-aiff", "aiff": "audio/x-aiff", "air": "application/vnd.adobe.air-application-installer-package+zip", "ait": "application/vnd.dvb.ait", "ami": "application/vnd.amiga.ami", "aml": "application/automationml-aml+xml", "amlx": "application/automationml-amlx+zip", "amr": "audio/amr", "apk": "application/vnd.android.package-archive", "apng": "image/apng", "appcache": "text/cache-manifest", "appinstaller": "application/appinstaller", "application": "application/x-ms-application", "appx": "application/appx", "appxbundle": "application/appxbundle", "apr": "application/vnd.lotus-approach", "arc": "application/x-freearc", "arj": "application/x-arj", "asc": "application/pgp-signature", "asf": "video/x-ms-asf", "asm": "text/x-asm", "aso": "application/vnd.accpac.simply.aso", "asx": "video/x-ms-asf", "atc": "application/vnd.acucorp", "atom": "application/atom+xml", "atomcat": "application/atomcat+xml", "atomdeleted": "application/atomdeleted+xml", "atomsvc": "application/atomsvc+xml", "atx": "application/vnd.antix.game-component", "au": "audio/basic", "avci": "image/avci", "avcs": "image/avcs", "avi": "video/x-msvideo", "avif": "image/avif", "aw": "application/applixware", "azf": "application/vnd.airzip.filesecure.azf", "azs": "application/vnd.airzip.filesecure.azs", "azv": "image/vnd.airzip.accelerator.azv", "azw": "application/vnd.amazon.ebook", "b16": "image/vnd.pco.b16", "bary": "model/vnd.bary", "bat": "application/x-msdownload", "bcpio": "application/x-bcpio", "bdf": "application/x-font-bdf", "bdm": "application/vnd.syncml.dm+wbxml", "bdo": "application/vnd.nato.bindingdataobject+xml", "bdoc": "application/x-bdoc", "bed": "application/vnd.realvnc.bed", "bh2": "application/vnd.fujitsu.oasysprs", "bin": "application/octet-stream", "blb": "application/x-blorb", "blend": "application/x-blender", "blorb": "application/x-blorb", "bmi": "application/vnd.bmi", "bmml": "application/vnd.balsamiq.bmml+xml", "bmp": "image/x-ms-bmp", "book": "application/vnd.framemaker", "box": "application/vnd.previewsystems.box", "boz": "application/x-bzip2", "bpk": "application/octet-stream", "brush": "application/vnd.procreate.brush", "brushset": "application/vnd.procrate.brushset", "bsp": "model/vnd.valve.source.compiled-map", "btf": "image/prs.btif", "btif": "image/prs.btif", "buffer": "application/octet-stream", "bz": "application/x-bzip", "bz2": "application/x-bzip2", "c": "text/x-c", "c11amc": "application/vnd.cluetrust.cartomobile-config", "c11amz": "application/vnd.cluetrust.cartomobile-config-pkg", "c4d": "application/vnd.clonk.c4group", "c4f": "application/vnd.clonk.c4group", "c4g": "application/vnd.clonk.c4group", "c4p": "application/vnd.clonk.c4group", "c4u": "application/vnd.clonk.c4group", "cab": "application/vnd.ms-cab-compressed", "caf": "audio/x-caf", "cap": "application/vnd.tcpdump.pcap", "car": "application/vnd.curl.car", "cat": "application/vnd.ms-pki.seccat", "cb7": "application/x-cbr", "cba": "application/x-cbr", "cbr": "application/x-cbr", "cbt": "application/x-cbr", "cbz": "application/x-cbr", "cc": "text/x-c", "cco": "application/x-cocoa", "cct": "application/x-director", "ccxml": "application/ccxml+xml", "cdbcmsg": "application/vnd.contact.cmsg", "cdf": "application/x-netcdf", "cdfx": "application/cdfx+xml", "cdkey": "application/vnd.mediastation.cdkey", "cdmia": "application/cdmi-capability", "cdmic": "application/cdmi-container", "cdmid": "application/cdmi-domain", "cdmio": "application/cdmi-object", "cdmiq": "application/cdmi-queue", "cdx": "chemical/x-cdx", "cdxml": "application/vnd.chemdraw+xml", "cdy": "application/vnd.cinderella", "cer": "application/pkix-cert", "cfs": "application/x-cfs-compressed", "cgm": "image/cgm", "chat": "application/x-chat", "chm": "application/vnd.ms-htmlhelp", "chrt": "application/vnd.kde.kchart", "cif": "chemical/x-cif", "cii": "application/vnd.anser-web-certificate-issue-initiation", "cil": "application/vnd.ms-artgalry", "cjs": "application/node", "cla": "application/vnd.claymore", "class": "application/java-vm", "cld": "model/vnd.cld", "clkk": "application/vnd.crick.clicker.keyboard", "clkp": "application/vnd.crick.clicker.palette", "clkt": "application/vnd.crick.clicker.template", "clkw": "application/vnd.crick.clicker.wordbank", "clkx": "application/vnd.crick.clicker", "clp": "application/x-msclip", "cmc": "application/vnd.cosmocaller", "cmdf": "chemical/x-cmdf", "cml": "chemical/x-cml", "cmp": "application/vnd.yellowriver-custom-menu", "cmx": "image/x-cmx", "cod": "application/vnd.rim.cod", "coffee": "text/coffeescript", "com": "application/x-msdownload", "conf": "text/plain", "cpio": "application/x-cpio", "cpl": "application/cpl+xml", "cpp": "text/x-c", "cpt": "application/mac-compactpro", "crd": "application/x-mscardfile", "crl": "application/pkix-crl", "crt": "application/x-x509-ca-cert", "crx": "application/x-chrome-extension", "cryptonote": "application/vnd.rig.cryptonote", "csh": "application/x-csh", "csl": "application/vnd.citationstyles.style+xml", "csml": "chemical/x-csml", "csp": "application/vnd.commonspace", "css": "text/css", "cst": "application/x-director", "csv": "text/csv", "cu": "application/cu-seeme", "curl": "text/vnd.curl", "cwl": "application/cwl", "cww": "application/prs.cww", "cxt": "application/x-director", "cxx": "text/x-c", "dae": "model/vnd.collada+xml", "daf": "application/vnd.mobius.daf", "dart": "application/vnd.dart", "dataless": "application/vnd.fdsn.seed", "davmount": "application/davmount+xml", "dbf": "application/vnd.dbf", "dbk": "application/docbook+xml", "dcm": "application/dicom", "dcmp": "application/vnd.dcmp+xml", "dcr": "application/x-director", "dcurl": "text/vnd.curl.dcurl", "dd2": "application/vnd.oma.dd2+xml", "ddd": "application/vnd.fujixerox.ddd", "ddf": "application/vnd.syncml.dmddf+xml", "dds": "image/vnd.ms-dds", "deb": "application/x-debian-package", "def": "text/plain", "deploy": "application/octet-stream", "der": "application/x-x509-ca-cert", "dfac": "application/vnd.dreamfactory", "dgc": "application/x-dgc-compressed", "dib": "image/bmp", "dic": "text/x-c", "dir": "application/x-director", "dis": "application/vnd.mobius.dis", "disposition-notification": "message/disposition-notification", "dist": "application/octet-stream", "distz": "application/octet-stream", "djv": "image/vnd.djvu", "djvu": "image/vnd.djvu", "dll": "application/x-msdownload", "dmg": "application/x-apple-diskimage", "dmp": "application/vnd.tcpdump.pcap", "dms": "application/octet-stream", "dna": "application/vnd.dna", "dng": "image/x-adobe-dng", "doc": "application/msword", "docm": "application/vnd.ms-word.document.macroenabled.12", "docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "dot": "application/msword", "dotm": "application/vnd.ms-word.template.macroenabled.12", "dotx": "application/vnd.openxmlformats-officedocument.wordprocessingml.template", "dp": "application/vnd.osgi.dp", "dpg": "application/vnd.dpgraph", "dpx": "image/dpx", "dra": "audio/vnd.dra", "drle": "image/dicom-rle", "drm": "application/vnd.procreate.dream", "dsc": "text/prs.lines.tag", "dssc": "application/dssc+der", "dtb": "application/x-dtbook+xml", "dtd": "application/xml-dtd", "dts": "audio/vnd.dts", "dtshd": "audio/vnd.dts.hd", "dump": "application/octet-stream", "dvb": "video/vnd.dvb.file", "dvi": "application/x-dvi", "dwd": "application/atsc-dwd+xml", "dwf": "model/vnd.dwf", "dwg": "image/vnd.dwg", "dxf": "image/vnd.dxf", "dxp": "application/vnd.spotfire.dxp", "dxr": "application/x-director", "ear": "application/java-archive", "ecelp4800": "audio/vnd.nuera.ecelp4800", "ecelp7470": "audio/vnd.nuera.ecelp7470", "ecelp9600": "audio/vnd.nuera.ecelp9600", "ecma": "application/ecmascript", "edm": "application/vnd.novadigm.edm", "edx": "application/vnd.novadigm.edx", "efif": "application/vnd.picsel", "ei6": "application/vnd.pg.osasli", "elc": "application/octet-stream", "emf": "image/emf", "eml": "message/rfc822", "emma": "application/emma+xml", "emotionml": "application/emotionml+xml", "emz": "application/x-msmetafile", "eol": "audio/vnd.digital-winds", "eot": "application/vnd.ms-fontobject", "eps": "application/postscript", "epub": "application/epub+zip", "es3": "application/vnd.eszigno3+xml", "esa": "application/vnd.osgi.subsystem", "esf": "application/vnd.epson.esf", "et3": "application/vnd.eszigno3+xml", "etx": "text/x-setext", "eva": "application/x-eva", "evy": "application/x-envoy", "exe": "application/x-msdownload", "exi": "application/exi", "exp": "application/express", "exr": "image/aces", "ext": "application/vnd.novadigm.ext", "ez": "application/andrew-inset", "ez2": "application/vnd.ezpix-album", "ez3": "application/vnd.ezpix-package", "f": "text/x-fortran", "f4v": "video/x-f4v", "f77": "text/x-fortran", "f90": "text/x-fortran", "fbs": "image/vnd.fastbidsheet", "fbx": "application/vnd.autodesk.fbx", "fcdt": "application/vnd.adobe.formscentral.fcdt", "fcs": "application/vnd.isac.fcs", "fdf": "application/vnd.fdf", "fdt": "application/fdt+xml", "fe_launch": "application/vnd.denovo.fcselayout-link", "fg5": "application/vnd.fujitsu.oasysgp", "fgd": "application/x-director", "fh": "image/x-freehand", "fh4": "image/x-freehand", "fh5": "image/x-freehand", "fh7": "image/x-freehand", "fhc": "image/x-freehand", "fig": "application/x-xfig", "fits": "image/fits", "flac": "audio/x-flac", "fli": "video/x-fli", "flo": "application/vnd.micrografx.flo", "flv": "video/x-flv", "flw": "application/vnd.kde.kivio", "flx": "text/vnd.fmi.flexstor", "fly": "text/vnd.fly", "fm": "application/vnd.framemaker", "fnc": "application/vnd.frogans.fnc", "fo": "application/vnd.software602.filler.form+xml", "for": "text/x-fortran", "fpx": "image/vnd.fpx", "frame": "application/vnd.framemaker", "fsc": "application/vnd.fsc.weblaunch", "fst": "image/vnd.fst", "ftc": "application/vnd.fluxtime.clip", "fti": "application/vnd.anser-web-funds-transfer-initiation", "fvt": "video/vnd.fvt", "fxp": "application/vnd.adobe.fxp", "fxpl": "application/vnd.adobe.fxp", "fzs": "application/vnd.fuzzysheet", "g2w": "application/vnd.geoplan", "g3": "image/g3fax", "g3w": "application/vnd.geospace", "gac": "application/vnd.groove-account", "gam": "application/x-tads", "gbr": "application/rpki-ghostbusters", "gca": "application/x-gca-compressed", "gdl": "model/vnd.gdl", "gdoc": "application/vnd.google-apps.document", "gdraw": "application/vnd.google-apps.drawing", "ged": "text/vnd.familysearch.gedcom", "geo": "application/vnd.dynageo", "geojson": "application/geo+json", "gex": "application/vnd.geometry-explorer", "gform": "application/vnd.google-apps.form", "ggb": "application/vnd.geogebra.file", "ggs": "application/vnd.geogebra.slides", "ggt": "application/vnd.geogebra.tool", "ghf": "application/vnd.groove-help", "gif": "image/gif", "gim": "application/vnd.groove-identity-message", "gjam": "application/vnd.google-apps.jam", "glb": "model/gltf-binary", "gltf": "model/gltf+json", "gmap": "application/vnd.google-apps.map", "gml": "application/gml+xml", "gmx": "application/vnd.gmx", "gnumeric": "application/x-gnumeric", "gph": "application/vnd.flographit", "gpx": "application/gpx+xml", "gqf": "application/vnd.grafeq", "gqs": "application/vnd.grafeq", "gram": "application/srgs", "gramps": "application/x-gramps-xml", "gre": "application/vnd.geometry-explorer", "grv": "application/vnd.groove-injector", "grxml": "application/srgs+xml", "gscript": "application/vnd.google-apps.script", "gsf": "application/x-font-ghostscript", "gsheet": "application/vnd.google-apps.spreadsheet", "gsite": "application/vnd.google-apps.site", "gslides": "application/vnd.google-apps.presentation", "gtar": "application/x-gtar", "gtm": "application/vnd.groove-tool-message", "gtw": "model/vnd.gtw", "gv": "text/vnd.graphviz", "gxf": "application/gxf", "gxt": "application/vnd.geonext", "gz": "application/gzip", "h": "text/x-c", "h261": "video/h261", "h263": "video/h263", "h264": "video/h264", "hal": "application/vnd.hal+xml", "hbci": "application/vnd.hbci", "hbs": "text/x-handlebars-template", "hdd": "application/x-virtualbox-hdd", "hdf": "application/x-hdf", "heic": "image/heic", "heics": "image/heic-sequence", "heif": "image/heif", "heifs": "image/heif-sequence", "hej2": "image/hej2k", "held": "application/atsc-held+xml", "hh": "text/x-c", "hjson": "application/hjson", "hlp": "application/winhlp", "hpgl": "application/vnd.hp-hpgl", "hpid": "application/vnd.hp-hpid", "hps": "application/vnd.hp-hps", "hqx": "application/mac-binhex40", "htc": "text/x-component", "htke": "application/vnd.kenameaapp", "htm": "text/html", "html": "text/html", "hvd": "application/vnd.yamaha.hv-dic", "hvp": "application/vnd.yamaha.hv-voice", "hvs": "application/vnd.yamaha.hv-script", "i2g": "application/vnd.intergeo", "icc": "application/vnd.iccprofile", "ice": "x-conference/x-cooltalk", "icm": "application/vnd.iccprofile", "ico": "image/x-icon", "ics": "text/calendar", "ief": "image/ief", "ifb": "text/calendar", "ifm": "application/vnd.shana.informed.formdata", "iges": "model/iges", "igl": "application/vnd.igloader", "igm": "application/vnd.insors.igm", "igs": "model/iges", "igx": "application/vnd.micrografx.igx", "iif": "application/vnd.shana.informed.interchange", "img": "application/octet-stream", "imp": "application/vnd.accpac.simply.imp", "ims": "application/vnd.ms-ims", "in": "text/plain", "ini": "text/plain", "ink": "application/inkml+xml", "inkml": "application/inkml+xml", "install": "application/x-install-instructions", "iota": "application/vnd.astraea-software.iota", "ipfix": "application/ipfix", "ipk": "application/vnd.shana.informed.package", "ipynb": "application/x-ipynb+json", "irm": "application/vnd.ibm.rights-management", "irp": "application/vnd.irepository.package+xml", "iso": "application/x-iso9660-image", "itp": "application/vnd.shana.informed.formtemplate", "its": "application/its+xml", "ivp": "application/vnd.immervision-ivp", "ivu": "application/vnd.immervision-ivu", "jad": "text/vnd.sun.j2me.app-descriptor", "jade": "text/jade", "jaii": "image/jaii", "jais": "image/jais", "jam": "application/vnd.jam", "jar": "application/java-archive", "jardiff": "application/x-java-archive-diff", "java": "text/x-java-source", "jfif": "image/pjpeg", "jhc": "image/jphc", "jisp": "application/vnd.jisp", "jls": "image/jls", "jlt": "application/vnd.hp-jlyt", "jng": "image/x-jng", "jnlp": "application/x-java-jnlp-file", "joda": "application/vnd.joost.joda-archive", "jp2": "image/jp2", "jpe": "image/jpeg", "jpeg": "image/jpeg", "jpf": "image/jpx", "jpg": "image/jpeg", "jpg2": "image/jp2", "jpgm": "video/jpm", "jpgv": "video/jpeg", "jph": "image/jph", "jpm": "video/jpm", "jpx": "image/jpx", "js": "text/javascript", "json": "application/json", "json5": "application/json5", "jsonld": "application/ld+json", "jsonml": "application/jsonml+json", "jsx": "text/jsx", "jt": "model/jt", "jxl": "image/jxl", "jxr": "image/jxr", "jxra": "image/jxra", "jxrs": "image/jxrs", "jxs": "image/jxs", "jxsc": "image/jxsc", "jxsi": "image/jxsi", "jxss": "image/jxss", "kar": "audio/midi", "karbon": "application/vnd.kde.karbon", "kdbx": "application/x-keepass2", "key": "application/x-iwork-keynote-sffkey", "kfo": "application/vnd.kde.kformula", "kia": "application/vnd.kidspiration", "kml": "application/vnd.google-earth.kml+xml", "kmz": "application/vnd.google-earth.kmz", "kne": "application/vnd.kinar", "knp": "application/vnd.kinar", "kon": "application/vnd.kde.kontour", "kpr": "application/vnd.kde.kpresenter", "kpt": "application/vnd.kde.kpresenter", "kpxx": "application/vnd.ds-keypoint", "ksp": "application/vnd.kde.kspread", "ktr": "application/vnd.kahootz", "ktx": "image/ktx", "ktx2": "image/ktx2", "ktz": "application/vnd.kahootz", "kwd": "application/vnd.kde.kword", "kwt": "application/vnd.kde.kword", "lasxml": "application/vnd.las.las+xml", "latex": "application/x-latex", "lbd": "application/vnd.llamagraphics.life-balance.desktop", "lbe": "application/vnd.llamagraphics.life-balance.exchange+xml", "les": "application/vnd.hhe.lesson-player", "less": "text/less", "lgr": "application/lgr+xml", "lha": "application/x-lzh-compressed", "link66": "application/vnd.route66.link66+xml", "list": "text/plain", "list3820": "application/vnd.ibm.modcap", "listafp": "application/vnd.ibm.modcap", "litcoffee": "text/coffeescript", "lnk": "application/x-ms-shortcut", "log": "text/plain", "lostxml": "application/lost+xml", "lottie": "application/zip+dotlottie", "lrf": "application/octet-stream", "lrm": "application/vnd.ms-lrm", "ltf": "application/vnd.frogans.ltf", "lua": "text/x-lua", "luac": "application/x-lua-bytecode", "lvp": "audio/vnd.lucent.voice", "lwp": "application/vnd.lotus-wordpro", "lzh": "application/x-lzh-compressed", "m13": "application/x-msmediaview", "m14": "application/x-msmediaview", "m1v": "video/mpeg", "m21": "application/mp21", "m2a": "audio/mpeg", "m2t": "video/mp2t", "m2ts": "video/mp2t", "m2v": "video/mpeg", "m3a": "audio/mpeg", "m3u": "audio/x-mpegurl", "m3u8": "application/vnd.apple.mpegurl", "m4a": "audio/x-m4a", "m4b": "audio/mp4", "m4p": "application/mp4", "m4s": "video/iso.segment", "m4u": "video/vnd.mpegurl", "m4v": "video/x-m4v", "ma": "application/mathematica", "mads": "application/mads+xml", "maei": "application/mmt-aei+xml", "mag": "application/vnd.ecowin.chart", "maker": "application/vnd.framemaker", "man": "text/troff", "manifest": "text/cache-manifest", "map": "application/json", "mar": "application/octet-stream", "markdown": "text/markdown", "mathml": "application/mathml+xml", "mb": "application/mathematica", "mbk": "application/vnd.mobius.mbk", "mbox": "application/mbox", "mc1": "application/vnd.medcalcdata", "mcd": "application/vnd.mcd", "mcurl": "text/vnd.curl.mcurl", "md": "text/markdown", "mdb": "application/x-msaccess", "mdi": "image/vnd.ms-modi", "mdx": "text/mdx", "me": "text/troff", "mesh": "model/mesh", "meta4": "application/metalink4+xml", "metalink": "application/metalink+xml", "mets": "application/mets+xml", "mfm": "application/vnd.mfmp", "mft": "application/rpki-manifest", "mgp": "application/vnd.osgeo.mapguide.package", "mgz": "application/vnd.proteus.magazine", "mht": "message/rfc822", "mhtml": "message/rfc822", "mid": "audio/midi", "midi": "audio/midi", "mie": "application/x-mie", "mif": "application/vnd.mif", "mime": "message/rfc822", "mj2": "video/mj2", "mjp2": "video/mj2", "mjs": "text/javascript", "mk3d": "video/x-matroska", "mka": "audio/x-matroska", "mkd": "text/x-markdown", "mks": "video/x-matroska", "mkv": "video/x-matroska", "mlp": "application/vnd.dolby.mlp", "mmd": "application/vnd.chipnuts.karaoke-mmd", "mmf": "application/vnd.smaf", "mml": "text/mathml", "mmr": "image/vnd.fujixerox.edmics-mmr", "mng": "video/x-mng", "mny": "application/x-msmoney", "mobi": "application/x-mobipocket-ebook", "mods": "application/mods+xml", "mov": "video/quicktime", "movie": "video/x-sgi-movie", "mp2": "audio/mpeg", "mp21": "application/mp21", "mp2a": "audio/mpeg", "mp3": "audio/mpeg", "mp4": "video/mp4", "mp4a": "audio/mp4", "mp4s": "application/mp4", "mp4v": "video/mp4", "mpc": "application/vnd.mophun.certificate", "mpd": "application/dash+xml", "mpe": "video/mpeg", "mpeg": "video/mpeg", "mpf": "application/media-policy-dataset+xml", "mpg": "video/mpeg", "mpg4": "video/mp4", "mpga": "audio/mpeg", "mpkg": "application/vnd.apple.installer+xml", "mpm": "application/vnd.blueice.multipass", "mpn": "application/vnd.mophun.application", "mpp": "application/vnd.ms-project", "mpt": "application/vnd.ms-project", "mpy": "application/vnd.ibm.minipay", "mqy": "application/vnd.mobius.mqy", "mrc": "application/marc", "mrcx": "application/marcxml+xml", "ms": "text/troff", "mscml": "application/mediaservercontrol+xml", "mseed": "application/vnd.fdsn.mseed", "mseq": "application/vnd.mseq", "msf": "application/vnd.epson.msf", "msg": "application/vnd.ms-outlook", "msh": "model/mesh", "msi": "application/x-msdownload", "msix": "application/msix", "msixbundle": "application/msixbundle", "msl": "application/vnd.mobius.msl", "msm": "application/octet-stream", "msp": "application/octet-stream", "msty": "application/vnd.muvee.style", "mtl": "model/mtl", "mts": "video/mp2t", "mus": "application/vnd.musician", "musd": "application/mmt-usd+xml", "musicxml": "application/vnd.recordare.musicxml+xml", "mvb": "application/x-msmediaview", "mvt": "application/vnd.mapbox-vector-tile", "mwf": "application/vnd.mfer", "mxf": "application/mxf", "mxl": "application/vnd.recordare.musicxml", "mxmf": "audio/mobile-xmf", "mxml": "application/xv+xml", "mxs": "application/vnd.triscape.mxs", "mxu": "video/vnd.mpegurl", "n-gage": "application/vnd.nokia.n-gage.symbian.install", "n3": "text/n3", "nb": "application/mathematica", "nbp": "application/vnd.wolfram.player", "nc": "application/x-netcdf", "ncx": "application/x-dtbncx+xml", "nfo": "text/x-nfo", "ngdat": "application/vnd.nokia.n-gage.data", "nitf": "application/vnd.nitf", "nlu": "application/vnd.neurolanguage.nlu", "nml": "application/vnd.enliven", "nnd": "application/vnd.noblenet-directory", "nns": "application/vnd.noblenet-sealer", "nnw": "application/vnd.noblenet-web", "npx": "image/vnd.net-fpx", "nq": "application/n-quads", "nsc": "application/x-conference", "nsf": "application/vnd.lotus-notes", "nt": "application/n-triples", "ntf": "application/vnd.nitf", "numbers": "application/x-iwork-numbers-sffnumbers", "nzb": "application/x-nzb", "oa2": "application/vnd.fujitsu.oasys2", "oa3": "application/vnd.fujitsu.oasys3", "oas": "application/vnd.fujitsu.oasys", "obd": "application/x-msbinder", "obgx": "application/vnd.openblox.game+xml", "obj": "model/obj", "oda": "application/oda", "odb": "application/vnd.oasis.opendocument.database", "odc": "application/vnd.oasis.opendocument.chart", "odf": "application/vnd.oasis.opendocument.formula", "odft": "application/vnd.oasis.opendocument.formula-template", "odg": "application/vnd.oasis.opendocument.graphics", "odi": "application/vnd.oasis.opendocument.image", "odm": "application/vnd.oasis.opendocument.text-master", "odp": "application/vnd.oasis.opendocument.presentation", "ods": "application/vnd.oasis.opendocument.spreadsheet", "odt": "application/vnd.oasis.opendocument.text", "oga": "audio/ogg", "ogex": "model/vnd.opengex", "ogg": "audio/ogg", "ogv": "video/ogg", "ogx": "application/ogg", "omdoc": "application/omdoc+xml", "one": "application/onenote", "onea": "application/onenote", "onepkg": "application/onenote", "onetmp": "application/onenote", "onetoc": "application/onenote", "onetoc2": "application/onenote", "opf": "application/oebps-package+xml", "opml": "text/x-opml", "oprc": "application/vnd.palm", "opus": "audio/ogg", "org": "text/x-org", "osf": "application/vnd.yamaha.openscoreformat", "osfpvg": "application/vnd.yamaha.openscoreformat.osfpvg+xml", "osm": "application/vnd.openstreetmap.data+xml", "otc": "application/vnd.oasis.opendocument.chart-template", "otf": "font/otf", "otg": "application/vnd.oasis.opendocument.graphics-template", "oth": "application/vnd.oasis.opendocument.text-web", "oti": "application/vnd.oasis.opendocument.image-template", "otp": "application/vnd.oasis.opendocument.presentation-template", "ots": "application/vnd.oasis.opendocument.spreadsheet-template", "ott": "application/vnd.oasis.opendocument.text-template", "ova": "application/x-virtualbox-ova", "ovf": "application/x-virtualbox-ovf", "owl": "application/rdf+xml", "oxps": "application/oxps", "oxt": "application/vnd.openofficeorg.extension", "p": "text/x-pascal", "p10": "application/pkcs10", "p12": "application/x-pkcs12", "p21": "model/step", "p7b": "application/x-pkcs7-certificates", "p7c": "application/pkcs7-mime", "p7m": "application/pkcs7-mime", "p7r": "application/x-pkcs7-certreqresp", "p7s": "application/pkcs7-signature", "p8": "application/pkcs8", "pac": "application/x-ns-proxy-autoconfig", "pages": "application/x-iwork-pages-sffpages", "pas": "text/x-pascal", "paw": "application/vnd.pawaafile", "pbd": "application/vnd.powerbuilder6", "pbm": "image/x-portable-bitmap", "pcap": "application/vnd.tcpdump.pcap", "pcf": "application/x-font-pcf", "pcl": "application/vnd.hp-pcl", "pclxl": "application/vnd.hp-pclxl", "pct": "image/x-pict", "pcurl": "application/vnd.curl.pcurl", "pcx": "image/x-pcx", "pdb": "application/x-pilot", "pde": "text/x-processing", "pdf": "application/pdf", "pem": "application/x-x509-ca-cert", "pfa": "application/x-font-type1", "pfb": "application/x-font-type1", "pfm": "application/x-font-type1", "pfr": "application/font-tdpfr", "pfx": "application/x-pkcs12", "pgm": "image/x-portable-graymap", "pgn": "application/x-chess-pgn", "pgp": "application/pgp-encrypted", "php": "application/x-httpd-php", "pic": "image/x-pict", "pkg": "application/octet-stream", "pki": "application/pkixcmp", "pkipath": "application/pkix-pkipath", "pkpass": "application/vnd.apple.pkpass", "pl": "application/x-perl", "plb": "application/vnd.3gpp.pic-bw-large", "plc": "application/vnd.mobius.plc", "plf": "application/vnd.pocketlearn", "pls": "application/pls+xml", "pm": "application/x-perl", "pml": "application/vnd.ctc-posml", "png": "image/png", "pnm": "image/x-portable-anymap", "portpkg": "application/vnd.macports.portpkg", "pot": "application/vnd.ms-powerpoint", "potm": "application/vnd.ms-powerpoint.template.macroenabled.12", "potx": "application/vnd.openxmlformats-officedocument.presentationml.template", "ppam": "application/vnd.ms-powerpoint.addin.macroenabled.12", "ppd": "application/vnd.cups-ppd", "ppm": "image/x-portable-pixmap", "pps": "application/vnd.ms-powerpoint", "ppsm": "application/vnd.ms-powerpoint.slideshow.macroenabled.12", "ppsx": "application/vnd.openxmlformats-officedocument.presentationml.slideshow", "ppt": "application/vnd.ms-powerpoint", "pptm": "application/vnd.ms-powerpoint.presentation.macroenabled.12", "pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation", "pqa": "application/vnd.palm", "prc": "model/prc", "pre": "application/vnd.lotus-freelance", "prf": "application/pics-rules", "provx": "application/provenance+xml", "ps": "application/postscript", "psb": "application/vnd.3gpp.pic-bw-small", "psd": "image/vnd.adobe.photoshop", "psf": "application/x-font-linux-psf", "pskcxml": "application/pskc+xml", "pti": "image/prs.pti", "ptid": "application/vnd.pvi.ptid1", "pub": "application/x-mspublisher", "pvb": "application/vnd.3gpp.pic-bw-var", "pwn": "application/vnd.3m.post-it-notes", "pya": "audio/vnd.ms-playready.media.pya", "pyo": "model/vnd.pytha.pyox", "pyox": "model/vnd.pytha.pyox", "pyv": "video/vnd.ms-playready.media.pyv", "qam": "application/vnd.epson.quickanime", "qbo": "application/vnd.intu.qbo", "qfx": "application/vnd.intu.qfx", "qps": "application/vnd.publishare-delta-tree", "qt": "video/quicktime", "qwd": "application/vnd.quark.quarkxpress", "qwt": "application/vnd.quark.quarkxpress", "qxb": "application/vnd.quark.quarkxpress", "qxd": "application/vnd.quark.quarkxpress", "qxl": "application/vnd.quark.quarkxpress", "qxt": "application/vnd.quark.quarkxpress", "ra": "audio/x-realaudio", "ram": "audio/x-pn-realaudio", "raml": "application/raml+yaml", "rapd": "application/route-apd+xml", "rar": "application/x-rar-compressed", "ras": "image/x-cmu-raster", "rcprofile": "application/vnd.ipunplugged.rcprofile", "rdf": "application/rdf+xml", "rdz": "application/vnd.data-vision.rdz", "relo": "application/p2p-overlay+xml", "rep": "application/vnd.businessobjects", "res": "application/x-dtbresource+xml", "rgb": "image/x-rgb", "rif": "application/reginfo+xml", "rip": "audio/vnd.rip", "ris": "application/x-research-info-systems", "rl": "application/resource-lists+xml", "rlc": "image/vnd.fujixerox.edmics-rlc", "rld": "application/resource-lists-diff+xml", "rm": "application/vnd.rn-realmedia", "rmi": "audio/midi", "rmp": "audio/x-pn-realaudio-plugin", "rms": "application/vnd.jcp.javame.midlet-rms", "rmvb": "application/vnd.rn-realmedia-vbr", "rnc": "application/relax-ng-compact-syntax", "rng": "application/xml", "roa": "application/rpki-roa", "roff": "text/troff", "rp9": "application/vnd.cloanto.rp9", "rpm": "application/x-redhat-package-manager", "rpss": "application/vnd.nokia.radio-presets", "rpst": "application/vnd.nokia.radio-preset", "rq": "application/sparql-query", "rs": "application/rls-services+xml", "rsat": "application/atsc-rsat+xml", "rsd": "application/rsd+xml", "rsheet": "application/urc-ressheet+xml", "rss": "application/rss+xml", "rtf": "text/rtf", "rtx": "text/richtext", "run": "application/x-makeself", "rusd": "application/route-usd+xml", "s": "text/x-asm", "s3m": "audio/s3m", "saf": "application/vnd.yamaha.smaf-audio", "sass": "text/x-sass", "sbml": "application/sbml+xml", "sc": "application/vnd.ibm.secure-container", "scd": "application/x-msschedule", "scm": "application/vnd.lotus-screencam", "scq": "application/scvp-cv-request", "scs": "application/scvp-cv-response", "scss": "text/x-scss", "scurl": "text/vnd.curl.scurl", "sda": "application/vnd.stardivision.draw", "sdc": "application/vnd.stardivision.calc", "sdd": "application/vnd.stardivision.impress", "sdkd": "application/vnd.solent.sdkm+xml", "sdkm": "application/vnd.solent.sdkm+xml", "sdp": "application/sdp", "sdw": "application/vnd.stardivision.writer", "sea": "application/x-sea", "see": "application/vnd.seemail", "seed": "application/vnd.fdsn.seed", "sema": "application/vnd.sema", "semd": "application/vnd.semd", "semf": "application/vnd.semf", "senmlx": "application/senml+xml", "sensmlx": "application/sensml+xml", "ser": "application/java-serialized-object", "setpay": "application/set-payment-initiation", "setreg": "application/set-registration-initiation", "sfd-hdstx": "application/vnd.hydrostatix.sof-data", "sfs": "application/vnd.spotfire.sfs", "sfv": "text/x-sfv", "sgi": "image/sgi", "sgl": "application/vnd.stardivision.writer-global", "sgm": "text/sgml", "sgml": "text/sgml", "sh": "application/x-sh", "shar": "application/x-shar", "shex": "text/shex", "shf": "application/shf+xml", "shtml": "text/html", "sid": "image/x-mrsid-image", "sieve": "application/sieve", "sig": "application/pgp-signature", "sil": "audio/silk", "silo": "model/mesh", "sis": "application/vnd.symbian.install", "sisx": "application/vnd.symbian.install", "sit": "application/x-stuffit", "sitx": "application/x-stuffitx", "siv": "application/sieve", "skd": "application/vnd.koan", "skm": "application/vnd.koan", "skp": "application/vnd.koan", "skt": "application/vnd.koan", "sldm": "application/vnd.ms-powerpoint.slide.macroenabled.12", "sldx": "application/vnd.openxmlformats-officedocument.presentationml.slide", "slim": "text/slim", "slm": "text/slim", "sls": "application/route-s-tsid+xml", "slt": "application/vnd.epson.salt", "sm": "application/vnd.stepmania.stepchart", "smf": "application/vnd.stardivision.math", "smi": "application/smil+xml", "smil": "application/smil+xml", "smv": "video/x-smv", "smzip": "application/vnd.stepmania.package", "snd": "audio/basic", "snf": "application/x-font-snf", "so": "application/octet-stream", "spc": "application/x-pkcs7-certificates", "spdx": "text/spdx", "spf": "application/vnd.yamaha.smaf-phrase", "spl": "application/x-futuresplash", "spot": "text/vnd.in3d.spot", "spp": "application/scvp-vp-response", "spq": "application/scvp-vp-request", "spx": "audio/ogg", "sql": "application/x-sql", "src": "application/x-wais-source", "srt": "application/x-subrip", "sru": "application/sru+xml", "srx": "application/sparql-results+xml", "ssdl": "application/ssdl+xml", "sse": "application/vnd.kodak-descriptor", "ssf": "application/vnd.epson.ssf", "ssml": "application/ssml+xml", "st": "application/vnd.sailingtracker.track", "stc": "application/vnd.sun.xml.calc.template", "std": "application/vnd.sun.xml.draw.template", "step": "model/step", "stf": "application/vnd.wt.stf", "sti": "application/vnd.sun.xml.impress.template", "stk": "application/hyperstudio", "stl": "model/stl", "stp": "model/step", "stpnc": "model/step", "stpx": "model/step+xml", "stpxz": "model/step-xml+zip", "stpz": "model/step+zip", "str": "application/vnd.pg.format", "stw": "application/vnd.sun.xml.writer.template", "styl": "text/stylus", "stylus": "text/stylus", "sub": "text/vnd.dvb.subtitle", "sus": "application/vnd.sus-calendar", "susp": "application/vnd.sus-calendar", "sv4cpio": "application/x-sv4cpio", "sv4crc": "application/x-sv4crc", "svc": "application/vnd.dvb.service", "svd": "application/vnd.svd", "svg": "image/svg+xml", "svgz": "image/svg+xml", "swa": "application/x-director", "swf": "application/x-shockwave-flash", "swi": "application/vnd.aristanetworks.swi", "swidtag": "application/swid+xml", "sxc": "application/vnd.sun.xml.calc", "sxd": "application/vnd.sun.xml.draw", "sxg": "application/vnd.sun.xml.writer.global", "sxi": "application/vnd.sun.xml.impress", "sxm": "application/vnd.sun.xml.math", "sxw": "application/vnd.sun.xml.writer", "t": "text/troff", "t3": "application/x-t3vm-image", "t38": "image/t38", "taglet": "application/vnd.mynfc", "tao": "application/vnd.tao.intent-module-archive", "tap": "image/vnd.tencent.tap", "tar": "application/x-tar", "tcap": "application/vnd.3gpp2.tcap", "tcl": "application/x-tcl", "td": "application/urc-targetdesc+xml", "teacher": "application/vnd.smart.teacher", "tei": "application/tei+xml", "teicorpus": "application/tei+xml", "tex": "application/x-tex", "texi": "application/x-texinfo", "texinfo": "application/x-texinfo", "text": "text/plain", "tfi": "application/thraud+xml", "tfm": "application/x-tex-tfm", "tfx": "image/tiff-fx", "tga": "image/x-tga", "thmx": "application/vnd.ms-officetheme", "tif": "image/tiff", "tiff": "image/tiff", "tk": "application/x-tcl", "tmo": "application/vnd.tmobile-livetv", "toml": "application/toml", "torrent": "application/x-bittorrent", "tpl": "application/vnd.groove-tool-template", "tpt": "application/vnd.trid.tpt", "tr": "text/troff", "tra": "application/vnd.trueapp", "trig": "application/trig", "trm": "application/x-msterminal", "ts": "video/mp2t", "tsd": "application/timestamped-data", "tsv": "text/tab-separated-values", "ttc": "font/collection", "ttf": "font/ttf", "ttl": "text/turtle", "ttml": "application/ttml+xml", "twd": "application/vnd.simtech-mindmapper", "twds": "application/vnd.simtech-mindmapper", "txd": "application/vnd.genomatix.tuxedo", "txf": "application/vnd.mobius.txf", "txt": "text/plain", "u32": "application/x-authorware-bin", "u3d": "model/u3d", "u8dsn": "message/global-delivery-status", "u8hdr": "message/global-headers", "u8mdn": "message/global-disposition-notification", "u8msg": "message/global", "ubj": "application/ubjson", "udeb": "application/x-debian-package", "ufd": "application/vnd.ufdl", "ufdl": "application/vnd.ufdl", "ulx": "application/x-glulx", "umj": "application/vnd.umajin", "unityweb": "application/vnd.unity", "uo": "application/vnd.uoml+xml", "uoml": "application/vnd.uoml+xml", "uri": "text/uri-list", "uris": "text/uri-list", "urls": "text/uri-list", "usda": "model/vnd.usda", "usdz": "model/vnd.usdz+zip", "ustar": "application/x-ustar", "utz": "application/vnd.uiq.theme", "uu": "text/x-uuencode", "uva": "audio/vnd.dece.audio", "uvd": "application/vnd.dece.data", "uvf": "application/vnd.dece.data", "uvg": "image/vnd.dece.graphic", "uvh": "video/vnd.dece.hd", "uvi": "image/vnd.dece.graphic", "uvm": "video/vnd.dece.mobile", "uvp": "video/vnd.dece.pd", "uvs": "video/vnd.dece.sd", "uvt": "application/vnd.dece.ttml+xml", "uvu": "video/vnd.uvvu.mp4", "uvv": "video/vnd.dece.video", "uvva": "audio/vnd.dece.audio", "uvvd": "application/vnd.dece.data", "uvvf": "application/vnd.dece.data", "uvvg": "image/vnd.dece.graphic", "uvvh": "video/vnd.dece.hd", "uvvi": "image/vnd.dece.graphic", "uvvm": "video/vnd.dece.mobile", "uvvp": "video/vnd.dece.pd", "uvvs": "video/vnd.dece.sd", "uvvt": "application/vnd.dece.ttml+xml", "uvvu": "video/vnd.uvvu.mp4", "uvvv": "video/vnd.dece.video", "uvvx": "application/vnd.dece.unspecified", "uvvz": "application/vnd.dece.zip", "uvx": "application/vnd.dece.unspecified", "uvz": "application/vnd.dece.zip", "vbox": "application/x-virtualbox-vbox", "vbox-extpack": "application/x-virtualbox-vbox-extpack", "vcard": "text/vcard", "vcd": "application/x-cdlink", "vcf": "text/x-vcard", "vcg": "application/vnd.groove-vcard", "vcs": "text/x-vcalendar", "vcx": "application/vnd.vcx", "vdi": "application/x-virtualbox-vdi", "vds": "model/vnd.sap.vds", "vdx": "application/vnd.ms-visio.viewer", "vhd": "application/x-virtualbox-vhd", "vis": "application/vnd.visionary", "viv": "video/vnd.vivo", "vmdk": "application/x-virtualbox-vmdk", "vob": "video/x-ms-vob", "vor": "application/vnd.stardivision.writer", "vox": "application/x-authorware-bin", "vrml": "model/vrml", "vsd": "application/vnd.visio", "vsdx": "application/vnd.visio", "vsf": "application/vnd.vsf", "vss": "application/vnd.visio", "vst": "application/vnd.visio", "vsw": "application/vnd.visio", "vtf": "image/vnd.valve.source.texture", "vtt": "text/vtt", "vtu": "model/vnd.vtu", "vtx": "application/vnd.visio", "vxml": "application/voicexml+xml", "w3d": "application/x-director", "wad": "application/x-doom", "wadl": "application/vnd.sun.wadl+xml", "war": "application/java-archive", "wasm": "application/wasm", "wav": "audio/x-wav", "wax": "audio/x-ms-wax", "wbmp": "image/vnd.wap.wbmp", "wbs": "application/vnd.criticaltools.wbs+xml", "wbxml": "application/vnd.wap.wbxml", "wcm": "application/vnd.ms-works", "wdb": "application/vnd.ms-works", "wdp": "image/vnd.ms-photo", "weba": "audio/webm", "webapp": "application/x-web-app-manifest+json", "webm": "video/webm", "webmanifest": "application/manifest+json", "webp": "image/webp", "wg": "application/vnd.pmi.widget", "wgsl": "text/wgsl", "wgt": "application/widget", "wif": "application/watcherinfo+xml", "wks": "application/vnd.ms-works", "wm": "video/x-ms-wm", "wma": "audio/x-ms-wma", "wmd": "application/x-ms-wmd", "wmf": "image/wmf", "wml": "text/vnd.wap.wml", "wmlc": "application/vnd.wap.wmlc", "wmls": "text/vnd.wap.wmlscript", "wmlsc": "application/vnd.wap.wmlscriptc", "wmv": "video/x-ms-wmv", "wmx": "video/x-ms-wmx", "wmz": "application/x-msmetafile", "woff": "font/woff", "woff2": "font/woff2", "wpd": "application/vnd.wordperfect", "wpl": "application/vnd.ms-wpl", "wps": "application/vnd.ms-works", "wqd": "application/vnd.wqd", "wri": "application/x-mswrite", "wrl": "model/vrml", "wsc": "message/vnd.wfa.wsc", "wsdl": "application/wsdl+xml", "wspolicy": "application/wspolicy+xml", "wtb": "application/vnd.webturbo", "wvx": "video/x-ms-wvx", "x32": "application/x-authorware-bin", "x3d": "model/x3d+xml", "x3db": "model/x3d+fastinfoset", "x3dbz": "model/x3d+binary", "x3dv": "model/x3d-vrml", "x3dvz": "model/x3d+vrml", "x3dz": "model/x3d+xml", "x_b": "model/vnd.parasolid.transmit.binary", "x_t": "model/vnd.parasolid.transmit.text", "xaml": "application/xaml+xml", "xap": "application/x-silverlight-app", "xar": "application/vnd.xara", "xav": "application/xcap-att+xml", "xbap": "application/x-ms-xbap", "xbd": "application/vnd.fujixerox.docuworks.binder", "xbm": "image/x-xbitmap", "xca": "application/xcap-caps+xml", "xcs": "application/calendar+xml", "xdcf": "application/vnd.gov.sk.xmldatacontainer+xml", "xdf": "application/xcap-diff+xml", "xdm": "application/vnd.syncml.dm+xml", "xdp": "application/vnd.adobe.xdp+xml", "xdssc": "application/dssc+xml", "xdw": "application/vnd.fujixerox.docuworks", "xel": "application/xcap-el+xml", "xenc": "application/xenc+xml", "xer": "application/patch-ops-error+xml", "xfdf": "application/xfdf", "xfdl": "application/vnd.xfdl", "xht": "application/xhtml+xml", "xhtm": "application/vnd.pwg-xhtml-print+xml", "xhtml": "application/xhtml+xml", "xhvml": "application/xv+xml", "xif": "image/vnd.xiff", "xla": "application/vnd.ms-excel", "xlam": "application/vnd.ms-excel.addin.macroenabled.12", "xlc": "application/vnd.ms-excel", "xlf": "application/xliff+xml", "xlm": "application/vnd.ms-excel", "xls": "application/vnd.ms-excel", "xlsb": "application/vnd.ms-excel.sheet.binary.macroenabled.12", "xlsm": "application/vnd.ms-excel.sheet.macroenabled.12", "xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "xlt": "application/vnd.ms-excel", "xltm": "application/vnd.ms-excel.template.macroenabled.12", "xltx": "application/vnd.openxmlformats-officedocument.spreadsheetml.template", "xlw": "application/vnd.ms-excel", "xm": "audio/xm", "xml": "text/xml", "xns": "application/xcap-ns+xml", "xo": "application/vnd.olpc-sugar", "xop": "application/xop+xml", "xpi": "application/x-xpinstall", "xpl": "application/xproc+xml", "xpm": "image/x-xpixmap", "xpr": "application/vnd.is-xpr", "xps": "application/vnd.ms-xpsdocument", "xpw": "application/vnd.intercon.formnet", "xpx": "application/vnd.intercon.formnet", "xsd": "application/xml", "xsf": "application/prs.xsf+xml", "xsl": "application/xslt+xml", "xslt": "application/xslt+xml", "xsm": "application/vnd.syncml+xml", "xspf": "application/xspf+xml", "xul": "application/vnd.mozilla.xul+xml", "xvm": "application/xv+xml", "xvml": "application/xv+xml", "xwd": "image/x-xwindowdump", "xyz": "chemical/x-xyz", "xz": "application/x-xz", "yaml": "text/yaml", "yang": "application/yang", "yin": "application/yin+xml", "yml": "text/yaml", "ymp": "text/x-suse-ymp", "z1": "application/x-zmachine", "z2": "application/x-zmachine", "z3": "application/x-zmachine", "z4": "application/x-zmachine", "z5": "application/x-zmachine", "z6": "application/x-zmachine", "z7": "application/x-zmachine", "z8": "application/x-zmachine", "zaz": "application/vnd.zzazz.deck+xml", "zip": "application/zip", "zir": "application/vnd.zul", "zirz": "application/vnd.zul", "zmm": "application/vnd.handheld-entertainment+xml" };
|
|
@@ -10875,7 +11084,7 @@ var pTryEach = async (array, mapper) => {
|
|
|
10875
11084
|
throw latestError;
|
|
10876
11085
|
};
|
|
10877
11086
|
var baseOpen = async (options) => {
|
|
10878
|
-
var
|
|
11087
|
+
var _a2, _b;
|
|
10879
11088
|
options = {
|
|
10880
11089
|
wait: false,
|
|
10881
11090
|
background: false,
|
|
@@ -10889,7 +11098,7 @@ var baseOpen = async (options) => {
|
|
|
10889
11098
|
app: singleApp
|
|
10890
11099
|
}));
|
|
10891
11100
|
}
|
|
10892
|
-
let { name: app, arguments: appArguments = [] } = (
|
|
11101
|
+
let { name: app, arguments: appArguments = [] } = (_a2 = options.app) != null ? _a2 : {};
|
|
10893
11102
|
appArguments = [...appArguments];
|
|
10894
11103
|
if (Array.isArray(app)) {
|
|
10895
11104
|
return pTryEach(app, (appName) => baseOpen({
|
|
@@ -11417,8 +11626,8 @@ function updateStyleUrls(url, oldCss) {
|
|
|
11417
11626
|
}
|
|
11418
11627
|
var urlVersionIds = /* @__PURE__ */ new Map();
|
|
11419
11628
|
function appendDevServerClientScript(devServerConfig, req, content) {
|
|
11420
|
-
var
|
|
11421
|
-
const devServerClientUrl = getDevServerClientUrl(devServerConfig, (_b = (
|
|
11629
|
+
var _a2, _b, _c;
|
|
11630
|
+
const devServerClientUrl = getDevServerClientUrl(devServerConfig, (_b = (_a2 = req.headers) == null ? void 0 : _a2["x-forwarded-host"]) != null ? _b : req.host, (_c = req.headers) == null ? void 0 : _c["x-forwarded-proto"]);
|
|
11422
11631
|
const iframe = `<iframe title="Stencil Dev Server Connector ${version} ⚡" src="${devServerClientUrl}" style="display:block;width:0;height:0;border:0;visibility:hidden" aria-hidden="true"></iframe>`;
|
|
11423
11632
|
return appendDevServerClientIframe(content, iframe);
|
|
11424
11633
|
}
|