vite 2.7.3 → 2.7.7
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.
Potentially problematic release.
This version of vite might be problematic. Click here for more details.
- package/CHANGELOG.md +42 -0
- package/LICENSE.md +41 -11
- package/dist/client/client.mjs +1 -1
- package/dist/client/client.mjs.map +1 -1
- package/dist/node/build.d.ts +6 -6
- package/dist/node/chunks/{dep-58399509.js → dep-2d8e2cb1.js} +1 -1
- package/dist/node/chunks/dep-2d8e2cb1.js.map +1 -0
- package/dist/node/chunks/{dep-5496817b.js → dep-4a9cff06.js} +505 -167
- package/dist/node/chunks/dep-4a9cff06.js.map +1 -0
- package/dist/node/chunks/{dep-cf2decec.js → dep-591fce67.js} +2 -2
- package/dist/node/chunks/dep-591fce67.js.map +1 -0
- package/dist/node/chunks/{dep-df937e9b.js → dep-67730f16.js} +2 -2
- package/dist/node/chunks/{dep-df937e9b.js.map → dep-67730f16.js.map} +1 -1
- package/dist/node/chunks/{dep-66abeb03.js → dep-f41a1db3.js} +79 -61
- package/dist/node/chunks/dep-f41a1db3.js.map +1 -0
- package/dist/node/cli.js +4 -4
- package/dist/node/cli.js.map +1 -1
- package/dist/node/config.d.ts +14 -14
- package/dist/node/http.d.ts +5 -5
- package/dist/node/index.d.ts +44 -44
- package/dist/node/index.js +1 -1
- package/dist/node/logger.d.ts +4 -4
- package/dist/node/optimizer/esbuildDepPlugin.d.ts +3 -3
- package/dist/node/optimizer/index.d.ts +2 -2
- package/dist/node/optimizer/registerMissing.d.ts +1 -1
- package/dist/node/optimizer/scan.d.ts +1 -1
- package/dist/node/packages.d.ts +2 -2
- package/dist/node/plugin.d.ts +7 -7
- package/dist/node/plugins/asset.d.ts +3 -3
- package/dist/node/plugins/assetImportMetaUrl.d.ts +2 -2
- package/dist/node/plugins/clientInjections.d.ts +2 -2
- package/dist/node/plugins/css.d.ts +7 -9
- package/dist/node/plugins/dataUri.d.ts +1 -1
- package/dist/node/plugins/define.d.ts +2 -2
- package/dist/node/plugins/esbuild.d.ts +4 -4
- package/dist/node/plugins/html.d.ts +5 -5
- package/dist/node/plugins/importAnalysis.d.ts +2 -2
- package/dist/node/plugins/importAnalysisBuild.d.ts +2 -2
- package/dist/node/plugins/index.d.ts +2 -2
- package/dist/node/plugins/json.d.ts +1 -1
- package/dist/node/plugins/loadFallback.d.ts +1 -1
- package/dist/node/plugins/manifest.d.ts +2 -2
- package/dist/node/plugins/modulePreloadPolyfill.d.ts +2 -2
- package/dist/node/plugins/preAlias.d.ts +1 -1
- package/dist/node/plugins/reporter.d.ts +2 -2
- package/dist/node/plugins/resolve.d.ts +4 -4
- package/dist/node/plugins/ssrRequireHook.d.ts +2 -2
- package/dist/node/plugins/terser.d.ts +2 -2
- package/dist/node/plugins/wasm.d.ts +2 -2
- package/dist/node/plugins/worker.d.ts +2 -2
- package/dist/node/preview.d.ts +4 -4
- package/dist/node/server/hmr.d.ts +3 -3
- package/dist/node/server/index.d.ts +15 -14
- package/dist/node/server/middlewares/base.d.ts +2 -2
- package/dist/node/server/middlewares/error.d.ts +4 -4
- package/dist/node/server/middlewares/indexHtml.d.ts +2 -2
- package/dist/node/server/middlewares/proxy.d.ts +4 -4
- package/dist/node/server/middlewares/spaFallback.d.ts +1 -1
- package/dist/node/server/middlewares/static.d.ts +2 -2
- package/dist/node/server/middlewares/time.d.ts +1 -1
- package/dist/node/server/middlewares/transform.d.ts +2 -2
- package/dist/node/server/moduleGraph.d.ts +2 -2
- package/dist/node/server/openBrowser.d.ts +1 -1
- package/dist/node/server/pluginContainer.d.ts +5 -5
- package/dist/node/server/send.d.ts +2 -2
- package/dist/node/server/sourcemap.d.ts +1 -1
- package/dist/node/server/transformRequest.d.ts +2 -2
- package/dist/node/server/ws.d.ts +5 -5
- package/dist/node/ssr/ssrExternal.d.ts +1 -1
- package/dist/node/ssr/ssrManifestPlugin.d.ts +2 -2
- package/dist/node/ssr/ssrModuleLoader.d.ts +1 -1
- package/dist/node/ssr/ssrStacktrace.d.ts +1 -1
- package/dist/node/ssr/ssrTransform.d.ts +2 -2
- package/dist/node/utils.d.ts +2 -2
- package/package.json +13 -13
- package/src/client/client.ts +3 -3
- package/src/client/overlay.ts +1 -1
- package/types/alias.d.ts +1 -1
- package/types/chokidar.d.ts +2 -2
- package/types/http-proxy.d.ts +4 -4
- package/types/importMeta.d.ts +6 -0
- package/types/shims.d.ts +5 -5
- package/types/ws.d.ts +6 -6
- package/dist/node/chunks/dep-5496817b.js.map +0 -1
- package/dist/node/chunks/dep-58399509.js.map +0 -1
- package/dist/node/chunks/dep-66abeb03.js.map +0 -1
- package/dist/node/chunks/dep-cf2decec.js.map +0 -1
|
@@ -2171,7 +2171,7 @@ function setup(env) {
|
|
|
2171
2171
|
|
|
2172
2172
|
/**
|
|
2173
2173
|
* Selects a color for a debug namespace
|
|
2174
|
-
* @param {String} namespace The namespace string for the
|
|
2174
|
+
* @param {String} namespace The namespace string for the debug instance to be colored
|
|
2175
2175
|
* @return {Number|String} An ANSI color code for the given namespace
|
|
2176
2176
|
* @api private
|
|
2177
2177
|
*/
|
|
@@ -3760,7 +3760,7 @@ function buildSourceMapTree(input, loader, relativeRoot) {
|
|
|
3760
3760
|
const maps = asArray(input).map(decodeSourceMap);
|
|
3761
3761
|
const map = maps.pop();
|
|
3762
3762
|
for (let i = 0; i < maps.length; i++) {
|
|
3763
|
-
if (maps[i].sources.length
|
|
3763
|
+
if (maps[i].sources.length > 1) {
|
|
3764
3764
|
throw new Error(`Transformation map ${i} must have exactly one source file.\n` +
|
|
3765
3765
|
'Did you specify these with the most recent transformation maps first?');
|
|
3766
3766
|
}
|
|
@@ -5712,7 +5712,7 @@ MagicString.prototype.trimStart = function trimStart (charType) {
|
|
|
5712
5712
|
* @param typeMap [Object] Map of MIME type -> Array[extensions]
|
|
5713
5713
|
* @param ...
|
|
5714
5714
|
*/
|
|
5715
|
-
function Mime$
|
|
5715
|
+
function Mime$1() {
|
|
5716
5716
|
this._types = Object.create(null);
|
|
5717
5717
|
this._extensions = Object.create(null);
|
|
5718
5718
|
|
|
@@ -5744,7 +5744,7 @@ function Mime$3() {
|
|
|
5744
5744
|
* @param map (Object) type definitions
|
|
5745
5745
|
* @param force (Boolean) if true, force overriding of existing definitions
|
|
5746
5746
|
*/
|
|
5747
|
-
Mime$
|
|
5747
|
+
Mime$1.prototype.define = function(typeMap, force) {
|
|
5748
5748
|
for (let type in typeMap) {
|
|
5749
5749
|
let extensions = typeMap[type].map(function(t) {
|
|
5750
5750
|
return t.toLowerCase();
|
|
@@ -5783,7 +5783,7 @@ Mime$3.prototype.define = function(typeMap, force) {
|
|
|
5783
5783
|
/**
|
|
5784
5784
|
* Lookup a mime type based on extension
|
|
5785
5785
|
*/
|
|
5786
|
-
Mime$
|
|
5786
|
+
Mime$1.prototype.getType = function(path) {
|
|
5787
5787
|
path = String(path);
|
|
5788
5788
|
let last = path.replace(/^.*[/\\]/, '').toLowerCase();
|
|
5789
5789
|
let ext = last.replace(/^.*\./, '').toLowerCase();
|
|
@@ -5797,17 +5797,17 @@ Mime$3.prototype.getType = function(path) {
|
|
|
5797
5797
|
/**
|
|
5798
5798
|
* Return file extension associated with a mime type
|
|
5799
5799
|
*/
|
|
5800
|
-
Mime$
|
|
5800
|
+
Mime$1.prototype.getExtension = function(type) {
|
|
5801
5801
|
type = /^\s*([^;\s]*)/.test(type) && RegExp.$1;
|
|
5802
5802
|
return type && this._extensions[type.toLowerCase()] || null;
|
|
5803
5803
|
};
|
|
5804
5804
|
|
|
5805
|
-
var Mime_1
|
|
5805
|
+
var Mime_1 = Mime$1;
|
|
5806
5806
|
|
|
5807
|
-
var standard
|
|
5807
|
+
var standard = {"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"]};
|
|
5808
5808
|
|
|
5809
|
-
let Mime
|
|
5810
|
-
var lite
|
|
5809
|
+
let Mime = Mime_1;
|
|
5810
|
+
var lite = new Mime(standard);
|
|
5811
5811
|
|
|
5812
5812
|
const assetUrlRE = /__VITE_ASSET__([a-z\d]{8})__(?:\$_(.*?)__)?/g;
|
|
5813
5813
|
const rawRE = /(\?|&)raw(?:&|$)/;
|
|
@@ -6033,7 +6033,7 @@ async function fileToBuiltUrl(id, config, pluginContext, skipPublicCheck = false
|
|
|
6033
6033
|
(!file.endsWith('.svg') &&
|
|
6034
6034
|
content.length < Number(config.build.assetsInlineLimit))) {
|
|
6035
6035
|
// base64 inlined as a string
|
|
6036
|
-
url = `data:${lite
|
|
6036
|
+
url = `data:${lite.getType(file)};base64,${content.toString('base64')}`;
|
|
6037
6037
|
}
|
|
6038
6038
|
else {
|
|
6039
6039
|
// emit as asset
|
|
@@ -20099,13 +20099,14 @@ function cssPostPlugin(config) {
|
|
|
20099
20099
|
return `export default ${JSON.stringify(css)}`;
|
|
20100
20100
|
}
|
|
20101
20101
|
return [
|
|
20102
|
-
`import { updateStyle, removeStyle } from ${JSON.stringify(path__default.posix.join(config.base, CLIENT_PUBLIC_PATH))}`,
|
|
20103
|
-
`const
|
|
20104
|
-
`const
|
|
20105
|
-
`
|
|
20102
|
+
`import { updateStyle as __vite__updateStyle, removeStyle as __vite__removeStyle } from ${JSON.stringify(path__default.posix.join(config.base, CLIENT_PUBLIC_PATH))}`,
|
|
20103
|
+
`const __vite__id = ${JSON.stringify(id)}`,
|
|
20104
|
+
`const __vite__css = ${JSON.stringify(css)}`,
|
|
20105
|
+
`__vite__updateStyle(__vite__id, __vite__css)`,
|
|
20106
20106
|
// css modules exports change on edit so it can't self accept
|
|
20107
|
-
`${modulesCode ||
|
|
20108
|
-
|
|
20107
|
+
`${modulesCode ||
|
|
20108
|
+
`import.meta.hot.accept()\nexport default __vite__css`}`,
|
|
20109
|
+
`import.meta.hot.prune(() => __vite__removeStyle(__vite__id))`
|
|
20109
20110
|
].join('\n');
|
|
20110
20111
|
}
|
|
20111
20112
|
}
|
|
@@ -20382,7 +20383,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
|
|
|
20382
20383
|
const postcssOptions = (postcssConfig && postcssConfig.options) || {};
|
|
20383
20384
|
const postcssPlugins = postcssConfig && postcssConfig.plugins ? postcssConfig.plugins.slice() : [];
|
|
20384
20385
|
if (needInlineImport) {
|
|
20385
|
-
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-
|
|
20386
|
+
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-2d8e2cb1.js'); }).then(function (n) { return n.index; })).default({
|
|
20386
20387
|
async resolve(id, basedir) {
|
|
20387
20388
|
const resolved = await atImportResolvers.css(id, path__default.join(basedir, '*'));
|
|
20388
20389
|
if (resolved) {
|
|
@@ -20396,7 +20397,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
|
|
|
20396
20397
|
replacer: urlReplacer
|
|
20397
20398
|
}));
|
|
20398
20399
|
if (isModule) {
|
|
20399
|
-
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-
|
|
20400
|
+
postcssPlugins.unshift((await Promise.resolve().then(function () { return require('./dep-591fce67.js'); }).then(function (n) { return n.index; })).default({
|
|
20400
20401
|
...modulesOptions,
|
|
20401
20402
|
getJSON(cssFileName, _modules, outputFileName) {
|
|
20402
20403
|
modules = _modules;
|
|
@@ -21401,7 +21402,7 @@ const assetAttrsConfig = {
|
|
|
21401
21402
|
const isAsyncScriptMap = new WeakMap();
|
|
21402
21403
|
async function traverseHtml(html, filePath, visitor) {
|
|
21403
21404
|
// lazy load compiler
|
|
21404
|
-
const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-
|
|
21405
|
+
const { parse, transform } = await Promise.resolve().then(function () { return require('./dep-f41a1db3.js'); }).then(function (n) { return n.compilerDom_cjs; });
|
|
21405
21406
|
// @vue/compiler-core doesn't like lowercase doctypes
|
|
21406
21407
|
html = html.replace(/<!doctype\s/i, '<!DOCTYPE ');
|
|
21407
21408
|
try {
|
|
@@ -21411,12 +21412,7 @@ async function traverseHtml(html, filePath, visitor) {
|
|
|
21411
21412
|
});
|
|
21412
21413
|
}
|
|
21413
21414
|
catch (e) {
|
|
21414
|
-
|
|
21415
|
-
loc: filePath,
|
|
21416
|
-
frame: '',
|
|
21417
|
-
...formatParseError(e, filePath, html)
|
|
21418
|
-
};
|
|
21419
|
-
throw new Error(`Unable to parse ${JSON.stringify(parseError.loc)}\n${parseError.frame}`);
|
|
21415
|
+
handleParseError(e, html, filePath);
|
|
21420
21416
|
}
|
|
21421
21417
|
}
|
|
21422
21418
|
function getScriptInfo(node) {
|
|
@@ -21439,17 +21435,28 @@ function getScriptInfo(node) {
|
|
|
21439
21435
|
}
|
|
21440
21436
|
return { src, isModule, isAsync };
|
|
21441
21437
|
}
|
|
21442
|
-
|
|
21443
|
-
|
|
21444
|
-
|
|
21445
|
-
|
|
21446
|
-
|
|
21438
|
+
/**
|
|
21439
|
+
* Format Vue @type {CompilerError} to @type {RollupError}
|
|
21440
|
+
*/
|
|
21441
|
+
function formatParseError(compilerError, id, html) {
|
|
21442
|
+
const formattedError = { ...compilerError };
|
|
21443
|
+
if (compilerError.loc) {
|
|
21444
|
+
formattedError.frame = generateCodeFrame(html, compilerError.loc.start.offset);
|
|
21445
|
+
formattedError.loc = {
|
|
21447
21446
|
file: id,
|
|
21448
|
-
line:
|
|
21449
|
-
column:
|
|
21447
|
+
line: compilerError.loc.start.line,
|
|
21448
|
+
column: compilerError.loc.start.column
|
|
21450
21449
|
};
|
|
21451
21450
|
}
|
|
21452
|
-
return
|
|
21451
|
+
return formattedError;
|
|
21452
|
+
}
|
|
21453
|
+
function handleParseError(compilerError, html, filePath) {
|
|
21454
|
+
const parseError = {
|
|
21455
|
+
loc: filePath,
|
|
21456
|
+
frame: '',
|
|
21457
|
+
...formatParseError(compilerError, filePath, html)
|
|
21458
|
+
};
|
|
21459
|
+
throw new Error(`Unable to parse HTML; ${compilerError.message}\n at ${JSON.stringify(parseError.loc)}\n${parseError.frame}`);
|
|
21453
21460
|
}
|
|
21454
21461
|
/**
|
|
21455
21462
|
* Compiles index.html into an entry js module
|
|
@@ -21530,7 +21537,8 @@ function buildHtmlPlugin(config) {
|
|
|
21530
21537
|
if (p.type === 6 /* ATTRIBUTE */ &&
|
|
21531
21538
|
p.value &&
|
|
21532
21539
|
assetAttrs.includes(p.name)) {
|
|
21533
|
-
|
|
21540
|
+
// assetsUrl may be encodeURI
|
|
21541
|
+
const url = decodeURI(p.value.content);
|
|
21534
21542
|
if (!isExcludedUrl(url)) {
|
|
21535
21543
|
if (node.tag === 'link' && isCSSRequest(url)) {
|
|
21536
21544
|
// CSS references, convert to import
|
|
@@ -21563,7 +21571,8 @@ function buildHtmlPlugin(config) {
|
|
|
21563
21571
|
const namedOutput = Object.keys(((_b = (_a = config === null || config === void 0 ? void 0 : config.build) === null || _a === void 0 ? void 0 : _a.rollupOptions) === null || _b === void 0 ? void 0 : _b.input) || {});
|
|
21564
21572
|
for (const attr of assetUrls) {
|
|
21565
21573
|
const value = attr.value;
|
|
21566
|
-
|
|
21574
|
+
// assetsUrl may be encodeURI
|
|
21575
|
+
const content = decodeURI(value.content);
|
|
21567
21576
|
if (content !== '' && // Empty attribute
|
|
21568
21577
|
!namedOutput.includes(content) && // Direct reference to named output
|
|
21569
21578
|
!namedOutput.includes(content.replace(/^\//, '')) // Allow for absolute references as named output can't be an absolute path
|
|
@@ -22743,7 +22752,7 @@ function manifestPlugin(config) {
|
|
|
22743
22752
|
const ext = path__default.extname(name);
|
|
22744
22753
|
name = name.slice(0, -ext.length) + `-legacy` + ext;
|
|
22745
22754
|
}
|
|
22746
|
-
return name;
|
|
22755
|
+
return name.replace(/\0/g, '');
|
|
22747
22756
|
}
|
|
22748
22757
|
else {
|
|
22749
22758
|
return `_` + path__default.basename(chunk.fileName);
|
|
@@ -49572,7 +49581,7 @@ function readFileIfExists(value) {
|
|
|
49572
49581
|
* https://github.com/webpack/webpack-dev-server/blob/master/LICENSE
|
|
49573
49582
|
*/
|
|
49574
49583
|
async function createCertificate() {
|
|
49575
|
-
const { generate } = await Promise.resolve().then(function () { return require('./dep-
|
|
49584
|
+
const { generate } = await Promise.resolve().then(function () { return require('./dep-67730f16.js'); }).then(function (n) { return n.index; });
|
|
49576
49585
|
const pems = generate(null, {
|
|
49577
49586
|
algorithm: 'sha256',
|
|
49578
49587
|
days: 30,
|
|
@@ -56714,6 +56723,7 @@ async function ssrTransform(code, inMap, url) {
|
|
|
56714
56723
|
// 3. convert references to import bindings & import.meta references
|
|
56715
56724
|
walk(ast, {
|
|
56716
56725
|
onIdentifier(id, parent, parentStack) {
|
|
56726
|
+
const grandparent = parentStack[parentStack.length - 2];
|
|
56717
56727
|
const binding = idToImportMap.get(id.name);
|
|
56718
56728
|
if (!binding) {
|
|
56719
56729
|
return;
|
|
@@ -56727,8 +56737,9 @@ async function ssrTransform(code, inMap, url) {
|
|
|
56727
56737
|
s.appendLeft(id.end, `: ${binding}`);
|
|
56728
56738
|
}
|
|
56729
56739
|
}
|
|
56730
|
-
else if (parent.type === '
|
|
56731
|
-
|
|
56740
|
+
else if ((parent.type === 'PropertyDefinition' &&
|
|
56741
|
+
(grandparent === null || grandparent === void 0 ? void 0 : grandparent.type) === 'ClassBody') ||
|
|
56742
|
+
(parent.type === 'ClassDeclaration' && id === parent.superClass)) {
|
|
56732
56743
|
if (!declaredConst.has(id.name)) {
|
|
56733
56744
|
declaredConst.add(id.name);
|
|
56734
56745
|
// locate the top-most node containing the class declaration
|
|
@@ -56837,7 +56848,8 @@ function walk(root, { onIdentifier, onImportMeta, onDynamicImport }) {
|
|
|
56837
56848
|
if (((parent === null || parent === void 0 ? void 0 : parent.type) === 'AssignmentPattern' &&
|
|
56838
56849
|
(parent === null || parent === void 0 ? void 0 : parent.right) === child) ||
|
|
56839
56850
|
((parent === null || parent === void 0 ? void 0 : parent.type) === 'TemplateLiteral' &&
|
|
56840
|
-
(parent === null || parent === void 0 ? void 0 : parent.expressions.includes(child)))
|
|
56851
|
+
(parent === null || parent === void 0 ? void 0 : parent.expressions.includes(child))) ||
|
|
56852
|
+
((parent === null || parent === void 0 ? void 0 : parent.type) === 'CallExpression' && (parent === null || parent === void 0 ? void 0 : parent.callee) === child)) {
|
|
56841
56853
|
return;
|
|
56842
56854
|
}
|
|
56843
56855
|
setScope(node, child.name);
|
|
@@ -56850,24 +56862,36 @@ function walk(root, { onIdentifier, onImportMeta, onDynamicImport }) {
|
|
|
56850
56862
|
else if (node.type === 'VariableDeclarator') {
|
|
56851
56863
|
const parentFunction = findParentFunction(parentStack);
|
|
56852
56864
|
if (parentFunction) {
|
|
56853
|
-
|
|
56854
|
-
|
|
56855
|
-
|
|
56856
|
-
|
|
56857
|
-
|
|
56858
|
-
|
|
56859
|
-
|
|
56860
|
-
|
|
56861
|
-
|
|
56862
|
-
|
|
56863
|
-
|
|
56864
|
-
|
|
56865
|
-
|
|
56866
|
-
|
|
56867
|
-
|
|
56868
|
-
|
|
56869
|
-
|
|
56870
|
-
|
|
56865
|
+
const handlePattern = (p) => {
|
|
56866
|
+
if (p.type === 'Identifier') {
|
|
56867
|
+
setScope(parentFunction, p.name);
|
|
56868
|
+
}
|
|
56869
|
+
else if (p.type === 'RestElement') {
|
|
56870
|
+
handlePattern(p.argument);
|
|
56871
|
+
}
|
|
56872
|
+
else if (p.type === 'ObjectPattern') {
|
|
56873
|
+
p.properties.forEach((property) => {
|
|
56874
|
+
if (property.type === 'RestElement') {
|
|
56875
|
+
setScope(parentFunction, property.argument.name);
|
|
56876
|
+
}
|
|
56877
|
+
else
|
|
56878
|
+
handlePattern(property.value);
|
|
56879
|
+
});
|
|
56880
|
+
}
|
|
56881
|
+
else if (p.type === 'ArrayPattern') {
|
|
56882
|
+
p.elements.forEach((element) => {
|
|
56883
|
+
if (element)
|
|
56884
|
+
handlePattern(element);
|
|
56885
|
+
});
|
|
56886
|
+
}
|
|
56887
|
+
else if (p.type === 'AssignmentPattern') {
|
|
56888
|
+
handlePattern(p.left);
|
|
56889
|
+
}
|
|
56890
|
+
else {
|
|
56891
|
+
setScope(parentFunction, p.name);
|
|
56892
|
+
}
|
|
56893
|
+
};
|
|
56894
|
+
handlePattern(node.id);
|
|
56871
56895
|
}
|
|
56872
56896
|
}
|
|
56873
56897
|
},
|
|
@@ -57052,107 +57076,421 @@ function list(dir, callback, pre='') {
|
|
|
57052
57076
|
}
|
|
57053
57077
|
}
|
|
57054
57078
|
|
|
57055
|
-
|
|
57056
|
-
|
|
57057
|
-
|
|
57058
|
-
|
|
57059
|
-
|
|
57060
|
-
|
|
57061
|
-
|
|
57062
|
-
|
|
57063
|
-
|
|
57064
|
-
|
|
57065
|
-
|
|
57066
|
-
|
|
57067
|
-
|
|
57068
|
-
|
|
57069
|
-
|
|
57079
|
+
const mimes = {
|
|
57080
|
+
"ez": "application/andrew-inset",
|
|
57081
|
+
"aw": "application/applixware",
|
|
57082
|
+
"atom": "application/atom+xml",
|
|
57083
|
+
"atomcat": "application/atomcat+xml",
|
|
57084
|
+
"atomdeleted": "application/atomdeleted+xml",
|
|
57085
|
+
"atomsvc": "application/atomsvc+xml",
|
|
57086
|
+
"dwd": "application/atsc-dwd+xml",
|
|
57087
|
+
"held": "application/atsc-held+xml",
|
|
57088
|
+
"rsat": "application/atsc-rsat+xml",
|
|
57089
|
+
"bdoc": "application/bdoc",
|
|
57090
|
+
"xcs": "application/calendar+xml",
|
|
57091
|
+
"ccxml": "application/ccxml+xml",
|
|
57092
|
+
"cdfx": "application/cdfx+xml",
|
|
57093
|
+
"cdmia": "application/cdmi-capability",
|
|
57094
|
+
"cdmic": "application/cdmi-container",
|
|
57095
|
+
"cdmid": "application/cdmi-domain",
|
|
57096
|
+
"cdmio": "application/cdmi-object",
|
|
57097
|
+
"cdmiq": "application/cdmi-queue",
|
|
57098
|
+
"cu": "application/cu-seeme",
|
|
57099
|
+
"mpd": "application/dash+xml",
|
|
57100
|
+
"davmount": "application/davmount+xml",
|
|
57101
|
+
"dbk": "application/docbook+xml",
|
|
57102
|
+
"dssc": "application/dssc+der",
|
|
57103
|
+
"xdssc": "application/dssc+xml",
|
|
57104
|
+
"es": "application/ecmascript",
|
|
57105
|
+
"ecma": "application/ecmascript",
|
|
57106
|
+
"emma": "application/emma+xml",
|
|
57107
|
+
"emotionml": "application/emotionml+xml",
|
|
57108
|
+
"epub": "application/epub+zip",
|
|
57109
|
+
"exi": "application/exi",
|
|
57110
|
+
"fdt": "application/fdt+xml",
|
|
57111
|
+
"pfr": "application/font-tdpfr",
|
|
57112
|
+
"geojson": "application/geo+json",
|
|
57113
|
+
"gml": "application/gml+xml",
|
|
57114
|
+
"gpx": "application/gpx+xml",
|
|
57115
|
+
"gxf": "application/gxf",
|
|
57116
|
+
"gz": "application/gzip",
|
|
57117
|
+
"hjson": "application/hjson",
|
|
57118
|
+
"stk": "application/hyperstudio",
|
|
57119
|
+
"ink": "application/inkml+xml",
|
|
57120
|
+
"inkml": "application/inkml+xml",
|
|
57121
|
+
"ipfix": "application/ipfix",
|
|
57122
|
+
"its": "application/its+xml",
|
|
57123
|
+
"jar": "application/java-archive",
|
|
57124
|
+
"war": "application/java-archive",
|
|
57125
|
+
"ear": "application/java-archive",
|
|
57126
|
+
"ser": "application/java-serialized-object",
|
|
57127
|
+
"class": "application/java-vm",
|
|
57128
|
+
"js": "application/javascript",
|
|
57129
|
+
"mjs": "application/javascript",
|
|
57130
|
+
"json": "application/json",
|
|
57131
|
+
"map": "application/json",
|
|
57132
|
+
"json5": "application/json5",
|
|
57133
|
+
"jsonml": "application/jsonml+json",
|
|
57134
|
+
"jsonld": "application/ld+json",
|
|
57135
|
+
"lgr": "application/lgr+xml",
|
|
57136
|
+
"lostxml": "application/lost+xml",
|
|
57137
|
+
"hqx": "application/mac-binhex40",
|
|
57138
|
+
"cpt": "application/mac-compactpro",
|
|
57139
|
+
"mads": "application/mads+xml",
|
|
57140
|
+
"webmanifest": "application/manifest+json",
|
|
57141
|
+
"mrc": "application/marc",
|
|
57142
|
+
"mrcx": "application/marcxml+xml",
|
|
57143
|
+
"ma": "application/mathematica",
|
|
57144
|
+
"nb": "application/mathematica",
|
|
57145
|
+
"mb": "application/mathematica",
|
|
57146
|
+
"mathml": "application/mathml+xml",
|
|
57147
|
+
"mbox": "application/mbox",
|
|
57148
|
+
"mscml": "application/mediaservercontrol+xml",
|
|
57149
|
+
"metalink": "application/metalink+xml",
|
|
57150
|
+
"meta4": "application/metalink4+xml",
|
|
57151
|
+
"mets": "application/mets+xml",
|
|
57152
|
+
"maei": "application/mmt-aei+xml",
|
|
57153
|
+
"musd": "application/mmt-usd+xml",
|
|
57154
|
+
"mods": "application/mods+xml",
|
|
57155
|
+
"m21": "application/mp21",
|
|
57156
|
+
"mp21": "application/mp21",
|
|
57157
|
+
"mp4s": "application/mp4",
|
|
57158
|
+
"m4p": "application/mp4",
|
|
57159
|
+
"doc": "application/msword",
|
|
57160
|
+
"dot": "application/msword",
|
|
57161
|
+
"mxf": "application/mxf",
|
|
57162
|
+
"nq": "application/n-quads",
|
|
57163
|
+
"nt": "application/n-triples",
|
|
57164
|
+
"cjs": "application/node",
|
|
57165
|
+
"bin": "application/octet-stream",
|
|
57166
|
+
"dms": "application/octet-stream",
|
|
57167
|
+
"lrf": "application/octet-stream",
|
|
57168
|
+
"mar": "application/octet-stream",
|
|
57169
|
+
"so": "application/octet-stream",
|
|
57170
|
+
"dist": "application/octet-stream",
|
|
57171
|
+
"distz": "application/octet-stream",
|
|
57172
|
+
"pkg": "application/octet-stream",
|
|
57173
|
+
"bpk": "application/octet-stream",
|
|
57174
|
+
"dump": "application/octet-stream",
|
|
57175
|
+
"elc": "application/octet-stream",
|
|
57176
|
+
"deploy": "application/octet-stream",
|
|
57177
|
+
"exe": "application/octet-stream",
|
|
57178
|
+
"dll": "application/octet-stream",
|
|
57179
|
+
"deb": "application/octet-stream",
|
|
57180
|
+
"dmg": "application/octet-stream",
|
|
57181
|
+
"iso": "application/octet-stream",
|
|
57182
|
+
"img": "application/octet-stream",
|
|
57183
|
+
"msi": "application/octet-stream",
|
|
57184
|
+
"msp": "application/octet-stream",
|
|
57185
|
+
"msm": "application/octet-stream",
|
|
57186
|
+
"buffer": "application/octet-stream",
|
|
57187
|
+
"oda": "application/oda",
|
|
57188
|
+
"opf": "application/oebps-package+xml",
|
|
57189
|
+
"ogx": "application/ogg",
|
|
57190
|
+
"omdoc": "application/omdoc+xml",
|
|
57191
|
+
"onetoc": "application/onenote",
|
|
57192
|
+
"onetoc2": "application/onenote",
|
|
57193
|
+
"onetmp": "application/onenote",
|
|
57194
|
+
"onepkg": "application/onenote",
|
|
57195
|
+
"oxps": "application/oxps",
|
|
57196
|
+
"relo": "application/p2p-overlay+xml",
|
|
57197
|
+
"xer": "application/patch-ops-error+xml",
|
|
57198
|
+
"pdf": "application/pdf",
|
|
57199
|
+
"pgp": "application/pgp-encrypted",
|
|
57200
|
+
"asc": "application/pgp-signature",
|
|
57201
|
+
"sig": "application/pgp-signature",
|
|
57202
|
+
"prf": "application/pics-rules",
|
|
57203
|
+
"p10": "application/pkcs10",
|
|
57204
|
+
"p7m": "application/pkcs7-mime",
|
|
57205
|
+
"p7c": "application/pkcs7-mime",
|
|
57206
|
+
"p7s": "application/pkcs7-signature",
|
|
57207
|
+
"p8": "application/pkcs8",
|
|
57208
|
+
"ac": "application/pkix-attr-cert",
|
|
57209
|
+
"cer": "application/pkix-cert",
|
|
57210
|
+
"crl": "application/pkix-crl",
|
|
57211
|
+
"pkipath": "application/pkix-pkipath",
|
|
57212
|
+
"pki": "application/pkixcmp",
|
|
57213
|
+
"pls": "application/pls+xml",
|
|
57214
|
+
"ai": "application/postscript",
|
|
57215
|
+
"eps": "application/postscript",
|
|
57216
|
+
"ps": "application/postscript",
|
|
57217
|
+
"provx": "application/provenance+xml",
|
|
57218
|
+
"cww": "application/prs.cww",
|
|
57219
|
+
"pskcxml": "application/pskc+xml",
|
|
57220
|
+
"raml": "application/raml+yaml",
|
|
57221
|
+
"rdf": "application/rdf+xml",
|
|
57222
|
+
"owl": "application/rdf+xml",
|
|
57223
|
+
"rif": "application/reginfo+xml",
|
|
57224
|
+
"rnc": "application/relax-ng-compact-syntax",
|
|
57225
|
+
"rl": "application/resource-lists+xml",
|
|
57226
|
+
"rld": "application/resource-lists-diff+xml",
|
|
57227
|
+
"rs": "application/rls-services+xml",
|
|
57228
|
+
"rapd": "application/route-apd+xml",
|
|
57229
|
+
"sls": "application/route-s-tsid+xml",
|
|
57230
|
+
"rusd": "application/route-usd+xml",
|
|
57231
|
+
"gbr": "application/rpki-ghostbusters",
|
|
57232
|
+
"mft": "application/rpki-manifest",
|
|
57233
|
+
"roa": "application/rpki-roa",
|
|
57234
|
+
"rsd": "application/rsd+xml",
|
|
57235
|
+
"rss": "application/rss+xml",
|
|
57236
|
+
"rtf": "application/rtf",
|
|
57237
|
+
"sbml": "application/sbml+xml",
|
|
57238
|
+
"scq": "application/scvp-cv-request",
|
|
57239
|
+
"scs": "application/scvp-cv-response",
|
|
57240
|
+
"spq": "application/scvp-vp-request",
|
|
57241
|
+
"spp": "application/scvp-vp-response",
|
|
57242
|
+
"sdp": "application/sdp",
|
|
57243
|
+
"senmlx": "application/senml+xml",
|
|
57244
|
+
"sensmlx": "application/sensml+xml",
|
|
57245
|
+
"setpay": "application/set-payment-initiation",
|
|
57246
|
+
"setreg": "application/set-registration-initiation",
|
|
57247
|
+
"shf": "application/shf+xml",
|
|
57248
|
+
"siv": "application/sieve",
|
|
57249
|
+
"sieve": "application/sieve",
|
|
57250
|
+
"smi": "application/smil+xml",
|
|
57251
|
+
"smil": "application/smil+xml",
|
|
57252
|
+
"rq": "application/sparql-query",
|
|
57253
|
+
"srx": "application/sparql-results+xml",
|
|
57254
|
+
"gram": "application/srgs",
|
|
57255
|
+
"grxml": "application/srgs+xml",
|
|
57256
|
+
"sru": "application/sru+xml",
|
|
57257
|
+
"ssdl": "application/ssdl+xml",
|
|
57258
|
+
"ssml": "application/ssml+xml",
|
|
57259
|
+
"swidtag": "application/swid+xml",
|
|
57260
|
+
"tei": "application/tei+xml",
|
|
57261
|
+
"teicorpus": "application/tei+xml",
|
|
57262
|
+
"tfi": "application/thraud+xml",
|
|
57263
|
+
"tsd": "application/timestamped-data",
|
|
57264
|
+
"toml": "application/toml",
|
|
57265
|
+
"trig": "application/trig",
|
|
57266
|
+
"ttml": "application/ttml+xml",
|
|
57267
|
+
"ubj": "application/ubjson",
|
|
57268
|
+
"rsheet": "application/urc-ressheet+xml",
|
|
57269
|
+
"td": "application/urc-targetdesc+xml",
|
|
57270
|
+
"vxml": "application/voicexml+xml",
|
|
57271
|
+
"wasm": "application/wasm",
|
|
57272
|
+
"wgt": "application/widget",
|
|
57273
|
+
"hlp": "application/winhlp",
|
|
57274
|
+
"wsdl": "application/wsdl+xml",
|
|
57275
|
+
"wspolicy": "application/wspolicy+xml",
|
|
57276
|
+
"xaml": "application/xaml+xml",
|
|
57277
|
+
"xav": "application/xcap-att+xml",
|
|
57278
|
+
"xca": "application/xcap-caps+xml",
|
|
57279
|
+
"xdf": "application/xcap-diff+xml",
|
|
57280
|
+
"xel": "application/xcap-el+xml",
|
|
57281
|
+
"xns": "application/xcap-ns+xml",
|
|
57282
|
+
"xenc": "application/xenc+xml",
|
|
57283
|
+
"xhtml": "application/xhtml+xml",
|
|
57284
|
+
"xht": "application/xhtml+xml",
|
|
57285
|
+
"xlf": "application/xliff+xml",
|
|
57286
|
+
"xml": "application/xml",
|
|
57287
|
+
"xsl": "application/xml",
|
|
57288
|
+
"xsd": "application/xml",
|
|
57289
|
+
"rng": "application/xml",
|
|
57290
|
+
"dtd": "application/xml-dtd",
|
|
57291
|
+
"xop": "application/xop+xml",
|
|
57292
|
+
"xpl": "application/xproc+xml",
|
|
57293
|
+
"xslt": "application/xml",
|
|
57294
|
+
"xspf": "application/xspf+xml",
|
|
57295
|
+
"mxml": "application/xv+xml",
|
|
57296
|
+
"xhvml": "application/xv+xml",
|
|
57297
|
+
"xvml": "application/xv+xml",
|
|
57298
|
+
"xvm": "application/xv+xml",
|
|
57299
|
+
"yang": "application/yang",
|
|
57300
|
+
"yin": "application/yin+xml",
|
|
57301
|
+
"zip": "application/zip",
|
|
57302
|
+
"3gpp": "video/3gpp",
|
|
57303
|
+
"adp": "audio/adpcm",
|
|
57304
|
+
"amr": "audio/amr",
|
|
57305
|
+
"au": "audio/basic",
|
|
57306
|
+
"snd": "audio/basic",
|
|
57307
|
+
"mid": "audio/midi",
|
|
57308
|
+
"midi": "audio/midi",
|
|
57309
|
+
"kar": "audio/midi",
|
|
57310
|
+
"rmi": "audio/midi",
|
|
57311
|
+
"mxmf": "audio/mobile-xmf",
|
|
57312
|
+
"mp3": "audio/mpeg",
|
|
57313
|
+
"m4a": "audio/mp4",
|
|
57314
|
+
"mp4a": "audio/mp4",
|
|
57315
|
+
"mpga": "audio/mpeg",
|
|
57316
|
+
"mp2": "audio/mpeg",
|
|
57317
|
+
"mp2a": "audio/mpeg",
|
|
57318
|
+
"m2a": "audio/mpeg",
|
|
57319
|
+
"m3a": "audio/mpeg",
|
|
57320
|
+
"oga": "audio/ogg",
|
|
57321
|
+
"ogg": "audio/ogg",
|
|
57322
|
+
"spx": "audio/ogg",
|
|
57323
|
+
"opus": "audio/ogg",
|
|
57324
|
+
"s3m": "audio/s3m",
|
|
57325
|
+
"sil": "audio/silk",
|
|
57326
|
+
"wav": "audio/wav",
|
|
57327
|
+
"weba": "audio/webm",
|
|
57328
|
+
"xm": "audio/xm",
|
|
57329
|
+
"ttc": "font/collection",
|
|
57330
|
+
"otf": "font/otf",
|
|
57331
|
+
"ttf": "font/ttf",
|
|
57332
|
+
"woff": "font/woff",
|
|
57333
|
+
"woff2": "font/woff2",
|
|
57334
|
+
"exr": "image/aces",
|
|
57335
|
+
"apng": "image/apng",
|
|
57336
|
+
"avif": "image/avif",
|
|
57337
|
+
"bmp": "image/bmp",
|
|
57338
|
+
"cgm": "image/cgm",
|
|
57339
|
+
"drle": "image/dicom-rle",
|
|
57340
|
+
"emf": "image/emf",
|
|
57341
|
+
"fits": "image/fits",
|
|
57342
|
+
"g3": "image/g3fax",
|
|
57343
|
+
"gif": "image/gif",
|
|
57344
|
+
"heic": "image/heic",
|
|
57345
|
+
"heics": "image/heic-sequence",
|
|
57346
|
+
"heif": "image/heif",
|
|
57347
|
+
"heifs": "image/heif-sequence",
|
|
57348
|
+
"hej2": "image/hej2k",
|
|
57349
|
+
"hsj2": "image/hsj2",
|
|
57350
|
+
"ief": "image/ief",
|
|
57351
|
+
"jls": "image/jls",
|
|
57352
|
+
"jp2": "image/jp2",
|
|
57353
|
+
"jpg2": "image/jp2",
|
|
57354
|
+
"jpeg": "image/jpeg",
|
|
57355
|
+
"jpg": "image/jpeg",
|
|
57356
|
+
"jpe": "image/jpeg",
|
|
57357
|
+
"jph": "image/jph",
|
|
57358
|
+
"jhc": "image/jphc",
|
|
57359
|
+
"jpm": "image/jpm",
|
|
57360
|
+
"jpx": "image/jpx",
|
|
57361
|
+
"jpf": "image/jpx",
|
|
57362
|
+
"jxr": "image/jxr",
|
|
57363
|
+
"jxra": "image/jxra",
|
|
57364
|
+
"jxrs": "image/jxrs",
|
|
57365
|
+
"jxs": "image/jxs",
|
|
57366
|
+
"jxsc": "image/jxsc",
|
|
57367
|
+
"jxsi": "image/jxsi",
|
|
57368
|
+
"jxss": "image/jxss",
|
|
57369
|
+
"ktx": "image/ktx",
|
|
57370
|
+
"ktx2": "image/ktx2",
|
|
57371
|
+
"png": "image/png",
|
|
57372
|
+
"btif": "image/prs.btif",
|
|
57373
|
+
"pti": "image/prs.pti",
|
|
57374
|
+
"sgi": "image/sgi",
|
|
57375
|
+
"svg": "image/svg+xml",
|
|
57376
|
+
"svgz": "image/svg+xml",
|
|
57377
|
+
"t38": "image/t38",
|
|
57378
|
+
"tif": "image/tiff",
|
|
57379
|
+
"tiff": "image/tiff",
|
|
57380
|
+
"tfx": "image/tiff-fx",
|
|
57381
|
+
"webp": "image/webp",
|
|
57382
|
+
"wmf": "image/wmf",
|
|
57383
|
+
"disposition-notification": "message/disposition-notification",
|
|
57384
|
+
"u8msg": "message/global",
|
|
57385
|
+
"u8dsn": "message/global-delivery-status",
|
|
57386
|
+
"u8mdn": "message/global-disposition-notification",
|
|
57387
|
+
"u8hdr": "message/global-headers",
|
|
57388
|
+
"eml": "message/rfc822",
|
|
57389
|
+
"mime": "message/rfc822",
|
|
57390
|
+
"3mf": "model/3mf",
|
|
57391
|
+
"gltf": "model/gltf+json",
|
|
57392
|
+
"glb": "model/gltf-binary",
|
|
57393
|
+
"igs": "model/iges",
|
|
57394
|
+
"iges": "model/iges",
|
|
57395
|
+
"msh": "model/mesh",
|
|
57396
|
+
"mesh": "model/mesh",
|
|
57397
|
+
"silo": "model/mesh",
|
|
57398
|
+
"mtl": "model/mtl",
|
|
57399
|
+
"obj": "model/obj",
|
|
57400
|
+
"stpz": "model/step+zip",
|
|
57401
|
+
"stpxz": "model/step-xml+zip",
|
|
57402
|
+
"stl": "model/stl",
|
|
57403
|
+
"wrl": "model/vrml",
|
|
57404
|
+
"vrml": "model/vrml",
|
|
57405
|
+
"x3db": "model/x3d+fastinfoset",
|
|
57406
|
+
"x3dbz": "model/x3d+binary",
|
|
57407
|
+
"x3dv": "model/x3d-vrml",
|
|
57408
|
+
"x3dvz": "model/x3d+vrml",
|
|
57409
|
+
"x3d": "model/x3d+xml",
|
|
57410
|
+
"x3dz": "model/x3d+xml",
|
|
57411
|
+
"appcache": "text/cache-manifest",
|
|
57412
|
+
"manifest": "text/cache-manifest",
|
|
57413
|
+
"ics": "text/calendar",
|
|
57414
|
+
"ifb": "text/calendar",
|
|
57415
|
+
"coffee": "text/coffeescript",
|
|
57416
|
+
"litcoffee": "text/coffeescript",
|
|
57417
|
+
"css": "text/css",
|
|
57418
|
+
"csv": "text/csv",
|
|
57419
|
+
"html": "text/html",
|
|
57420
|
+
"htm": "text/html",
|
|
57421
|
+
"shtml": "text/html",
|
|
57422
|
+
"jade": "text/jade",
|
|
57423
|
+
"jsx": "text/jsx",
|
|
57424
|
+
"less": "text/less",
|
|
57425
|
+
"markdown": "text/markdown",
|
|
57426
|
+
"md": "text/markdown",
|
|
57427
|
+
"mml": "text/mathml",
|
|
57428
|
+
"mdx": "text/mdx",
|
|
57429
|
+
"n3": "text/n3",
|
|
57430
|
+
"txt": "text/plain",
|
|
57431
|
+
"text": "text/plain",
|
|
57432
|
+
"conf": "text/plain",
|
|
57433
|
+
"def": "text/plain",
|
|
57434
|
+
"list": "text/plain",
|
|
57435
|
+
"log": "text/plain",
|
|
57436
|
+
"in": "text/plain",
|
|
57437
|
+
"ini": "text/plain",
|
|
57438
|
+
"dsc": "text/prs.lines.tag",
|
|
57439
|
+
"rtx": "text/richtext",
|
|
57440
|
+
"sgml": "text/sgml",
|
|
57441
|
+
"sgm": "text/sgml",
|
|
57442
|
+
"shex": "text/shex",
|
|
57443
|
+
"slim": "text/slim",
|
|
57444
|
+
"slm": "text/slim",
|
|
57445
|
+
"spdx": "text/spdx",
|
|
57446
|
+
"stylus": "text/stylus",
|
|
57447
|
+
"styl": "text/stylus",
|
|
57448
|
+
"tsv": "text/tab-separated-values",
|
|
57449
|
+
"t": "text/troff",
|
|
57450
|
+
"tr": "text/troff",
|
|
57451
|
+
"roff": "text/troff",
|
|
57452
|
+
"man": "text/troff",
|
|
57453
|
+
"me": "text/troff",
|
|
57454
|
+
"ms": "text/troff",
|
|
57455
|
+
"ttl": "text/turtle",
|
|
57456
|
+
"uri": "text/uri-list",
|
|
57457
|
+
"uris": "text/uri-list",
|
|
57458
|
+
"urls": "text/uri-list",
|
|
57459
|
+
"vcard": "text/vcard",
|
|
57460
|
+
"vtt": "text/vtt",
|
|
57461
|
+
"yaml": "text/yaml",
|
|
57462
|
+
"yml": "text/yaml",
|
|
57463
|
+
"3gp": "video/3gpp",
|
|
57464
|
+
"3g2": "video/3gpp2",
|
|
57465
|
+
"h261": "video/h261",
|
|
57466
|
+
"h263": "video/h263",
|
|
57467
|
+
"h264": "video/h264",
|
|
57468
|
+
"m4s": "video/iso.segment",
|
|
57469
|
+
"jpgv": "video/jpeg",
|
|
57470
|
+
"jpgm": "image/jpm",
|
|
57471
|
+
"mj2": "video/mj2",
|
|
57472
|
+
"mjp2": "video/mj2",
|
|
57473
|
+
"ts": "video/mp2t",
|
|
57474
|
+
"mp4": "video/mp4",
|
|
57475
|
+
"mp4v": "video/mp4",
|
|
57476
|
+
"mpg4": "video/mp4",
|
|
57477
|
+
"mpeg": "video/mpeg",
|
|
57478
|
+
"mpg": "video/mpeg",
|
|
57479
|
+
"mpe": "video/mpeg",
|
|
57480
|
+
"m1v": "video/mpeg",
|
|
57481
|
+
"m2v": "video/mpeg",
|
|
57482
|
+
"ogv": "video/ogg",
|
|
57483
|
+
"qt": "video/quicktime",
|
|
57484
|
+
"mov": "video/quicktime",
|
|
57485
|
+
"webm": "video/webm"
|
|
57486
|
+
};
|
|
57487
|
+
|
|
57488
|
+
function lookup(extn) {
|
|
57489
|
+
let tmp = ('' + extn).trim().toLowerCase();
|
|
57490
|
+
let idx = tmp.lastIndexOf('.');
|
|
57491
|
+
return mimes[!~idx ? tmp : tmp.substring(++idx)];
|
|
57070
57492
|
}
|
|
57071
57493
|
|
|
57072
|
-
/**
|
|
57073
|
-
* Define mimetype -> extension mappings. Each key is a mime-type that maps
|
|
57074
|
-
* to an array of extensions associated with the type. The first extension is
|
|
57075
|
-
* used as the default extension for the type.
|
|
57076
|
-
*
|
|
57077
|
-
* e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']});
|
|
57078
|
-
*
|
|
57079
|
-
* If a type declares an extension that has already been defined, an error will
|
|
57080
|
-
* be thrown. To suppress this error and force the extension to be associated
|
|
57081
|
-
* with the new type, pass `force`=true. Alternatively, you may prefix the
|
|
57082
|
-
* extension with "*" to map the type to extension, without mapping the
|
|
57083
|
-
* extension to the type.
|
|
57084
|
-
*
|
|
57085
|
-
* e.g. mime.define({'audio/wav', ['wav']}, {'audio/x-wav', ['*wav']});
|
|
57086
|
-
*
|
|
57087
|
-
*
|
|
57088
|
-
* @param map (Object) type definitions
|
|
57089
|
-
* @param force (Boolean) if true, force overriding of existing definitions
|
|
57090
|
-
*/
|
|
57091
|
-
Mime$1.prototype.define = function(typeMap, force) {
|
|
57092
|
-
for (let type in typeMap) {
|
|
57093
|
-
let extensions = typeMap[type].map(function(t) {
|
|
57094
|
-
return t.toLowerCase();
|
|
57095
|
-
});
|
|
57096
|
-
type = type.toLowerCase();
|
|
57097
|
-
|
|
57098
|
-
for (let i = 0; i < extensions.length; i++) {
|
|
57099
|
-
const ext = extensions[i];
|
|
57100
|
-
|
|
57101
|
-
// '*' prefix = not the preferred type for this extension. So fixup the
|
|
57102
|
-
// extension, and skip it.
|
|
57103
|
-
if (ext[0] === '*') {
|
|
57104
|
-
continue;
|
|
57105
|
-
}
|
|
57106
|
-
|
|
57107
|
-
if (!force && (ext in this._types)) {
|
|
57108
|
-
throw new Error(
|
|
57109
|
-
'Attempt to change mapping for "' + ext +
|
|
57110
|
-
'" extension from "' + this._types[ext] + '" to "' + type +
|
|
57111
|
-
'". Pass `force=true` to allow this, otherwise remove "' + ext +
|
|
57112
|
-
'" from the list of extensions for "' + type + '".'
|
|
57113
|
-
);
|
|
57114
|
-
}
|
|
57115
|
-
|
|
57116
|
-
this._types[ext] = type;
|
|
57117
|
-
}
|
|
57118
|
-
|
|
57119
|
-
// Use first extension as default
|
|
57120
|
-
if (force || !this._extensions[type]) {
|
|
57121
|
-
const ext = extensions[0];
|
|
57122
|
-
this._extensions[type] = (ext[0] !== '*') ? ext : ext.substr(1);
|
|
57123
|
-
}
|
|
57124
|
-
}
|
|
57125
|
-
};
|
|
57126
|
-
|
|
57127
|
-
/**
|
|
57128
|
-
* Lookup a mime type based on extension
|
|
57129
|
-
*/
|
|
57130
|
-
Mime$1.prototype.getType = function(path) {
|
|
57131
|
-
path = String(path);
|
|
57132
|
-
let last = path.replace(/^.*[/\\]/, '').toLowerCase();
|
|
57133
|
-
let ext = last.replace(/^.*\./, '').toLowerCase();
|
|
57134
|
-
|
|
57135
|
-
let hasPath = last.length < path.length;
|
|
57136
|
-
let hasDot = ext.length < last.length - 1;
|
|
57137
|
-
|
|
57138
|
-
return (hasDot || !hasPath) && this._types[ext] || null;
|
|
57139
|
-
};
|
|
57140
|
-
|
|
57141
|
-
/**
|
|
57142
|
-
* Return file extension associated with a mime type
|
|
57143
|
-
*/
|
|
57144
|
-
Mime$1.prototype.getExtension = function(type) {
|
|
57145
|
-
type = /^\s*([^;\s]*)/.test(type) && RegExp.$1;
|
|
57146
|
-
return type && this._extensions[type.toLowerCase()] || null;
|
|
57147
|
-
};
|
|
57148
|
-
|
|
57149
|
-
var Mime_1 = Mime$1;
|
|
57150
|
-
|
|
57151
|
-
var standard = {"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"]};
|
|
57152
|
-
|
|
57153
|
-
let Mime = Mime_1;
|
|
57154
|
-
var lite = new Mime(standard);
|
|
57155
|
-
|
|
57156
57494
|
const noop$1 = () => {};
|
|
57157
57495
|
|
|
57158
57496
|
function isMatch(uri, arr) {
|
|
@@ -57245,7 +57583,7 @@ const ENCODING = {
|
|
|
57245
57583
|
function toHeaders(name, stats, isEtag) {
|
|
57246
57584
|
let enc = ENCODING[name.slice(-3)];
|
|
57247
57585
|
|
|
57248
|
-
let ctype =
|
|
57586
|
+
let ctype = lookup(name.slice(0, enc && -3)) || '';
|
|
57249
57587
|
if (ctype === 'text/html') ctype += ';charset=utf-8';
|
|
57250
57588
|
|
|
57251
57589
|
let headers = {
|
|
@@ -68039,7 +68377,7 @@ async function restartServer(server) {
|
|
|
68039
68377
|
await server.listen(port, true);
|
|
68040
68378
|
logger.info('server restarted.', { timestamp: true });
|
|
68041
68379
|
if (port !== prevPort || host !== prevHost) {
|
|
68042
|
-
logger.info('
|
|
68380
|
+
logger.info('');
|
|
68043
68381
|
server.printUrls();
|
|
68044
68382
|
}
|
|
68045
68383
|
}
|
|
@@ -82265,10 +82603,10 @@ function resolveBaseUrl(base = '/', isBuild, logger) {
|
|
|
82265
82603
|
}
|
|
82266
82604
|
return base;
|
|
82267
82605
|
}
|
|
82268
|
-
function mergeConfigRecursively(
|
|
82269
|
-
const merged = { ...
|
|
82270
|
-
for (const key in
|
|
82271
|
-
const value =
|
|
82606
|
+
function mergeConfigRecursively(defaults, overrides, rootPath) {
|
|
82607
|
+
const merged = { ...defaults };
|
|
82608
|
+
for (const key in overrides) {
|
|
82609
|
+
const value = overrides[key];
|
|
82272
82610
|
if (value == null) {
|
|
82273
82611
|
continue;
|
|
82274
82612
|
}
|
|
@@ -82299,8 +82637,8 @@ function mergeConfigRecursively(a, b, rootPath) {
|
|
|
82299
82637
|
}
|
|
82300
82638
|
return merged;
|
|
82301
82639
|
}
|
|
82302
|
-
function mergeConfig(
|
|
82303
|
-
return mergeConfigRecursively(
|
|
82640
|
+
function mergeConfig(defaults, overrides, isRoot = true) {
|
|
82641
|
+
return mergeConfigRecursively(defaults, overrides, isRoot ? '' : '.');
|
|
82304
82642
|
}
|
|
82305
82643
|
function mergeAlias(a = [], b = []) {
|
|
82306
82644
|
return [...normalizeAlias(a), ...normalizeAlias(b)];
|
|
@@ -82586,4 +82924,4 @@ exports.send = send$1;
|
|
|
82586
82924
|
exports.sortUserPlugins = sortUserPlugins;
|
|
82587
82925
|
exports.source = source;
|
|
82588
82926
|
exports.transformWithEsbuild = transformWithEsbuild;
|
|
82589
|
-
//# sourceMappingURL=dep-
|
|
82927
|
+
//# sourceMappingURL=dep-4a9cff06.js.map
|