@hot-updater/aws 0.17.0 → 0.18.0

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/dist/index.js CHANGED
@@ -1,309 +1,1511 @@
1
- import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
-
3
- // src/s3Database.ts
4
- import {
5
- CloudFrontClient,
6
- CreateInvalidationCommand
7
- } from "@aws-sdk/client-cloudfront";
8
- import {
9
- DeleteObjectCommand,
10
- GetObjectCommand,
11
- ListObjectsV2Command,
12
- NoSuchKey,
13
- S3Client
14
- } from "@aws-sdk/client-s3";
1
+ import { CloudFrontClient, CreateInvalidationCommand } from "@aws-sdk/client-cloudfront";
2
+ import { DeleteObjectCommand, DeleteObjectsCommand, GetObjectCommand, ListObjectsV2Command, NoSuchKey, S3Client } from "@aws-sdk/client-s3";
15
3
  import { Upload } from "@aws-sdk/lib-storage";
16
4
  import { createBlobDatabasePlugin } from "@hot-updater/plugin-core";
5
+ import path from "path";
6
+ import fs from "fs/promises";
17
7
 
18
- // ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/other.js
19
- var types = { "application/prs.cww": ["cww"], "application/prs.xsf+xml": ["xsf"], "application/vnd.1000minds.decision-model+xml": ["1km"], "application/vnd.3gpp.pic-bw-large": ["plb"], "application/vnd.3gpp.pic-bw-small": ["psb"], "application/vnd.3gpp.pic-bw-var": ["pvb"], "application/vnd.3gpp2.tcap": ["tcap"], "application/vnd.3m.post-it-notes": ["pwn"], "application/vnd.accpac.simply.aso": ["aso"], "application/vnd.accpac.simply.imp": ["imp"], "application/vnd.acucobol": ["acu"], "application/vnd.acucorp": ["atc", "acutc"], "application/vnd.adobe.air-application-installer-package+zip": ["air"], "application/vnd.adobe.formscentral.fcdt": ["fcdt"], "application/vnd.adobe.fxp": ["fxp", "fxpl"], "application/vnd.adobe.xdp+xml": ["xdp"], "application/vnd.adobe.xfdf": ["*xfdf"], "application/vnd.age": ["age"], "application/vnd.ahead.space": ["ahead"], "application/vnd.airzip.filesecure.azf": ["azf"], "application/vnd.airzip.filesecure.azs": ["azs"], "application/vnd.amazon.ebook": ["azw"], "application/vnd.americandynamics.acc": ["acc"], "application/vnd.amiga.ami": ["ami"], "application/vnd.android.package-archive": ["apk"], "application/vnd.anser-web-certificate-issue-initiation": ["cii"], "application/vnd.anser-web-funds-transfer-initiation": ["fti"], "application/vnd.antix.game-component": ["atx"], "application/vnd.apple.installer+xml": ["mpkg"], "application/vnd.apple.keynote": ["key"], "application/vnd.apple.mpegurl": ["m3u8"], "application/vnd.apple.numbers": ["numbers"], "application/vnd.apple.pages": ["pages"], "application/vnd.apple.pkpass": ["pkpass"], "application/vnd.aristanetworks.swi": ["swi"], "application/vnd.astraea-software.iota": ["iota"], "application/vnd.audiograph": ["aep"], "application/vnd.balsamiq.bmml+xml": ["bmml"], "application/vnd.blueice.multipass": ["mpm"], "application/vnd.bmi": ["bmi"], "application/vnd.businessobjects": ["rep"], "application/vnd.chemdraw+xml": ["cdxml"], "application/vnd.chipnuts.karaoke-mmd": ["mmd"], "application/vnd.cinderella": ["cdy"], "application/vnd.citationstyles.style+xml": ["csl"], "application/vnd.claymore": ["cla"], "application/vnd.cloanto.rp9": ["rp9"], "application/vnd.clonk.c4group": ["c4g", "c4d", "c4f", "c4p", "c4u"], "application/vnd.cluetrust.cartomobile-config": ["c11amc"], "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"], "application/vnd.commonspace": ["csp"], "application/vnd.contact.cmsg": ["cdbcmsg"], "application/vnd.cosmocaller": ["cmc"], "application/vnd.crick.clicker": ["clkx"], "application/vnd.crick.clicker.keyboard": ["clkk"], "application/vnd.crick.clicker.palette": ["clkp"], "application/vnd.crick.clicker.template": ["clkt"], "application/vnd.crick.clicker.wordbank": ["clkw"], "application/vnd.criticaltools.wbs+xml": ["wbs"], "application/vnd.ctc-posml": ["pml"], "application/vnd.cups-ppd": ["ppd"], "application/vnd.curl.car": ["car"], "application/vnd.curl.pcurl": ["pcurl"], "application/vnd.dart": ["dart"], "application/vnd.data-vision.rdz": ["rdz"], "application/vnd.dbf": ["dbf"], "application/vnd.dece.data": ["uvf", "uvvf", "uvd", "uvvd"], "application/vnd.dece.ttml+xml": ["uvt", "uvvt"], "application/vnd.dece.unspecified": ["uvx", "uvvx"], "application/vnd.dece.zip": ["uvz", "uvvz"], "application/vnd.denovo.fcselayout-link": ["fe_launch"], "application/vnd.dna": ["dna"], "application/vnd.dolby.mlp": ["mlp"], "application/vnd.dpgraph": ["dpg"], "application/vnd.dreamfactory": ["dfac"], "application/vnd.ds-keypoint": ["kpxx"], "application/vnd.dvb.ait": ["ait"], "application/vnd.dvb.service": ["svc"], "application/vnd.dynageo": ["geo"], "application/vnd.ecowin.chart": ["mag"], "application/vnd.enliven": ["nml"], "application/vnd.epson.esf": ["esf"], "application/vnd.epson.msf": ["msf"], "application/vnd.epson.quickanime": ["qam"], "application/vnd.epson.salt": ["slt"], "application/vnd.epson.ssf": ["ssf"], "application/vnd.eszigno3+xml": ["es3", "et3"], "application/vnd.ezpix-album": ["ez2"], "application/vnd.ezpix-package": ["ez3"], "application/vnd.fdf": ["*fdf"], "application/vnd.fdsn.mseed": ["mseed"], "application/vnd.fdsn.seed": ["seed", "dataless"], "application/vnd.flographit": ["gph"], "application/vnd.fluxtime.clip": ["ftc"], "application/vnd.framemaker": ["fm", "frame", "maker", "book"], "application/vnd.frogans.fnc": ["fnc"], "application/vnd.frogans.ltf": ["ltf"], "application/vnd.fsc.weblaunch": ["fsc"], "application/vnd.fujitsu.oasys": ["oas"], "application/vnd.fujitsu.oasys2": ["oa2"], "application/vnd.fujitsu.oasys3": ["oa3"], "application/vnd.fujitsu.oasysgp": ["fg5"], "application/vnd.fujitsu.oasysprs": ["bh2"], "application/vnd.fujixerox.ddd": ["ddd"], "application/vnd.fujixerox.docuworks": ["xdw"], "application/vnd.fujixerox.docuworks.binder": ["xbd"], "application/vnd.fuzzysheet": ["fzs"], "application/vnd.genomatix.tuxedo": ["txd"], "application/vnd.geogebra.file": ["ggb"], "application/vnd.geogebra.tool": ["ggt"], "application/vnd.geometry-explorer": ["gex", "gre"], "application/vnd.geonext": ["gxt"], "application/vnd.geoplan": ["g2w"], "application/vnd.geospace": ["g3w"], "application/vnd.gmx": ["gmx"], "application/vnd.google-apps.document": ["gdoc"], "application/vnd.google-apps.presentation": ["gslides"], "application/vnd.google-apps.spreadsheet": ["gsheet"], "application/vnd.google-earth.kml+xml": ["kml"], "application/vnd.google-earth.kmz": ["kmz"], "application/vnd.grafeq": ["gqf", "gqs"], "application/vnd.groove-account": ["gac"], "application/vnd.groove-help": ["ghf"], "application/vnd.groove-identity-message": ["gim"], "application/vnd.groove-injector": ["grv"], "application/vnd.groove-tool-message": ["gtm"], "application/vnd.groove-tool-template": ["tpl"], "application/vnd.groove-vcard": ["vcg"], "application/vnd.hal+xml": ["hal"], "application/vnd.handheld-entertainment+xml": ["zmm"], "application/vnd.hbci": ["hbci"], "application/vnd.hhe.lesson-player": ["les"], "application/vnd.hp-hpgl": ["hpgl"], "application/vnd.hp-hpid": ["hpid"], "application/vnd.hp-hps": ["hps"], "application/vnd.hp-jlyt": ["jlt"], "application/vnd.hp-pcl": ["pcl"], "application/vnd.hp-pclxl": ["pclxl"], "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"], "application/vnd.ibm.minipay": ["mpy"], "application/vnd.ibm.modcap": ["afp", "listafp", "list3820"], "application/vnd.ibm.rights-management": ["irm"], "application/vnd.ibm.secure-container": ["sc"], "application/vnd.iccprofile": ["icc", "icm"], "application/vnd.igloader": ["igl"], "application/vnd.immervision-ivp": ["ivp"], "application/vnd.immervision-ivu": ["ivu"], "application/vnd.insors.igm": ["igm"], "application/vnd.intercon.formnet": ["xpw", "xpx"], "application/vnd.intergeo": ["i2g"], "application/vnd.intu.qbo": ["qbo"], "application/vnd.intu.qfx": ["qfx"], "application/vnd.ipunplugged.rcprofile": ["rcprofile"], "application/vnd.irepository.package+xml": ["irp"], "application/vnd.is-xpr": ["xpr"], "application/vnd.isac.fcs": ["fcs"], "application/vnd.jam": ["jam"], "application/vnd.jcp.javame.midlet-rms": ["rms"], "application/vnd.jisp": ["jisp"], "application/vnd.joost.joda-archive": ["joda"], "application/vnd.kahootz": ["ktz", "ktr"], "application/vnd.kde.karbon": ["karbon"], "application/vnd.kde.kchart": ["chrt"], "application/vnd.kde.kformula": ["kfo"], "application/vnd.kde.kivio": ["flw"], "application/vnd.kde.kontour": ["kon"], "application/vnd.kde.kpresenter": ["kpr", "kpt"], "application/vnd.kde.kspread": ["ksp"], "application/vnd.kde.kword": ["kwd", "kwt"], "application/vnd.kenameaapp": ["htke"], "application/vnd.kidspiration": ["kia"], "application/vnd.kinar": ["kne", "knp"], "application/vnd.koan": ["skp", "skd", "skt", "skm"], "application/vnd.kodak-descriptor": ["sse"], "application/vnd.las.las+xml": ["lasxml"], "application/vnd.llamagraphics.life-balance.desktop": ["lbd"], "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"], "application/vnd.lotus-1-2-3": ["123"], "application/vnd.lotus-approach": ["apr"], "application/vnd.lotus-freelance": ["pre"], "application/vnd.lotus-notes": ["nsf"], "application/vnd.lotus-organizer": ["org"], "application/vnd.lotus-screencam": ["scm"], "application/vnd.lotus-wordpro": ["lwp"], "application/vnd.macports.portpkg": ["portpkg"], "application/vnd.mapbox-vector-tile": ["mvt"], "application/vnd.mcd": ["mcd"], "application/vnd.medcalcdata": ["mc1"], "application/vnd.mediastation.cdkey": ["cdkey"], "application/vnd.mfer": ["mwf"], "application/vnd.mfmp": ["mfm"], "application/vnd.micrografx.flo": ["flo"], "application/vnd.micrografx.igx": ["igx"], "application/vnd.mif": ["mif"], "application/vnd.mobius.daf": ["daf"], "application/vnd.mobius.dis": ["dis"], "application/vnd.mobius.mbk": ["mbk"], "application/vnd.mobius.mqy": ["mqy"], "application/vnd.mobius.msl": ["msl"], "application/vnd.mobius.plc": ["plc"], "application/vnd.mobius.txf": ["txf"], "application/vnd.mophun.application": ["mpn"], "application/vnd.mophun.certificate": ["mpc"], "application/vnd.mozilla.xul+xml": ["xul"], "application/vnd.ms-artgalry": ["cil"], "application/vnd.ms-cab-compressed": ["cab"], "application/vnd.ms-excel": ["xls", "xlm", "xla", "xlc", "xlt", "xlw"], "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"], "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"], "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"], "application/vnd.ms-excel.template.macroenabled.12": ["xltm"], "application/vnd.ms-fontobject": ["eot"], "application/vnd.ms-htmlhelp": ["chm"], "application/vnd.ms-ims": ["ims"], "application/vnd.ms-lrm": ["lrm"], "application/vnd.ms-officetheme": ["thmx"], "application/vnd.ms-outlook": ["msg"], "application/vnd.ms-pki.seccat": ["cat"], "application/vnd.ms-pki.stl": ["*stl"], "application/vnd.ms-powerpoint": ["ppt", "pps", "pot"], "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"], "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"], "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"], "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"], "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"], "application/vnd.ms-project": ["*mpp", "mpt"], "application/vnd.ms-word.document.macroenabled.12": ["docm"], "application/vnd.ms-word.template.macroenabled.12": ["dotm"], "application/vnd.ms-works": ["wps", "wks", "wcm", "wdb"], "application/vnd.ms-wpl": ["wpl"], "application/vnd.ms-xpsdocument": ["xps"], "application/vnd.mseq": ["mseq"], "application/vnd.musician": ["mus"], "application/vnd.muvee.style": ["msty"], "application/vnd.mynfc": ["taglet"], "application/vnd.neurolanguage.nlu": ["nlu"], "application/vnd.nitf": ["ntf", "nitf"], "application/vnd.noblenet-directory": ["nnd"], "application/vnd.noblenet-sealer": ["nns"], "application/vnd.noblenet-web": ["nnw"], "application/vnd.nokia.n-gage.ac+xml": ["*ac"], "application/vnd.nokia.n-gage.data": ["ngdat"], "application/vnd.nokia.n-gage.symbian.install": ["n-gage"], "application/vnd.nokia.radio-preset": ["rpst"], "application/vnd.nokia.radio-presets": ["rpss"], "application/vnd.novadigm.edm": ["edm"], "application/vnd.novadigm.edx": ["edx"], "application/vnd.novadigm.ext": ["ext"], "application/vnd.oasis.opendocument.chart": ["odc"], "application/vnd.oasis.opendocument.chart-template": ["otc"], "application/vnd.oasis.opendocument.database": ["odb"], "application/vnd.oasis.opendocument.formula": ["odf"], "application/vnd.oasis.opendocument.formula-template": ["odft"], "application/vnd.oasis.opendocument.graphics": ["odg"], "application/vnd.oasis.opendocument.graphics-template": ["otg"], "application/vnd.oasis.opendocument.image": ["odi"], "application/vnd.oasis.opendocument.image-template": ["oti"], "application/vnd.oasis.opendocument.presentation": ["odp"], "application/vnd.oasis.opendocument.presentation-template": ["otp"], "application/vnd.oasis.opendocument.spreadsheet": ["ods"], "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"], "application/vnd.oasis.opendocument.text": ["odt"], "application/vnd.oasis.opendocument.text-master": ["odm"], "application/vnd.oasis.opendocument.text-template": ["ott"], "application/vnd.oasis.opendocument.text-web": ["oth"], "application/vnd.olpc-sugar": ["xo"], "application/vnd.oma.dd2+xml": ["dd2"], "application/vnd.openblox.game+xml": ["obgx"], "application/vnd.openofficeorg.extension": ["oxt"], "application/vnd.openstreetmap.data+xml": ["osm"], "application/vnd.openxmlformats-officedocument.presentationml.presentation": ["pptx"], "application/vnd.openxmlformats-officedocument.presentationml.slide": ["sldx"], "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ["ppsx"], "application/vnd.openxmlformats-officedocument.presentationml.template": ["potx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"], "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ["xltx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ["docx"], "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ["dotx"], "application/vnd.osgeo.mapguide.package": ["mgp"], "application/vnd.osgi.dp": ["dp"], "application/vnd.osgi.subsystem": ["esa"], "application/vnd.palm": ["pdb", "pqa", "oprc"], "application/vnd.pawaafile": ["paw"], "application/vnd.pg.format": ["str"], "application/vnd.pg.osasli": ["ei6"], "application/vnd.picsel": ["efif"], "application/vnd.pmi.widget": ["wg"], "application/vnd.pocketlearn": ["plf"], "application/vnd.powerbuilder6": ["pbd"], "application/vnd.previewsystems.box": ["box"], "application/vnd.proteus.magazine": ["mgz"], "application/vnd.publishare-delta-tree": ["qps"], "application/vnd.pvi.ptid1": ["ptid"], "application/vnd.pwg-xhtml-print+xml": ["xhtm"], "application/vnd.quark.quarkxpress": ["qxd", "qxt", "qwd", "qwt", "qxl", "qxb"], "application/vnd.rar": ["rar"], "application/vnd.realvnc.bed": ["bed"], "application/vnd.recordare.musicxml": ["mxl"], "application/vnd.recordare.musicxml+xml": ["musicxml"], "application/vnd.rig.cryptonote": ["cryptonote"], "application/vnd.rim.cod": ["cod"], "application/vnd.rn-realmedia": ["rm"], "application/vnd.rn-realmedia-vbr": ["rmvb"], "application/vnd.route66.link66+xml": ["link66"], "application/vnd.sailingtracker.track": ["st"], "application/vnd.seemail": ["see"], "application/vnd.sema": ["sema"], "application/vnd.semd": ["semd"], "application/vnd.semf": ["semf"], "application/vnd.shana.informed.formdata": ["ifm"], "application/vnd.shana.informed.formtemplate": ["itp"], "application/vnd.shana.informed.interchange": ["iif"], "application/vnd.shana.informed.package": ["ipk"], "application/vnd.simtech-mindmapper": ["twd", "twds"], "application/vnd.smaf": ["mmf"], "application/vnd.smart.teacher": ["teacher"], "application/vnd.software602.filler.form+xml": ["fo"], "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"], "application/vnd.spotfire.dxp": ["dxp"], "application/vnd.spotfire.sfs": ["sfs"], "application/vnd.stardivision.calc": ["sdc"], "application/vnd.stardivision.draw": ["sda"], "application/vnd.stardivision.impress": ["sdd"], "application/vnd.stardivision.math": ["smf"], "application/vnd.stardivision.writer": ["sdw", "vor"], "application/vnd.stardivision.writer-global": ["sgl"], "application/vnd.stepmania.package": ["smzip"], "application/vnd.stepmania.stepchart": ["sm"], "application/vnd.sun.wadl+xml": ["wadl"], "application/vnd.sun.xml.calc": ["sxc"], "application/vnd.sun.xml.calc.template": ["stc"], "application/vnd.sun.xml.draw": ["sxd"], "application/vnd.sun.xml.draw.template": ["std"], "application/vnd.sun.xml.impress": ["sxi"], "application/vnd.sun.xml.impress.template": ["sti"], "application/vnd.sun.xml.math": ["sxm"], "application/vnd.sun.xml.writer": ["sxw"], "application/vnd.sun.xml.writer.global": ["sxg"], "application/vnd.sun.xml.writer.template": ["stw"], "application/vnd.sus-calendar": ["sus", "susp"], "application/vnd.svd": ["svd"], "application/vnd.symbian.install": ["sis", "sisx"], "application/vnd.syncml+xml": ["xsm"], "application/vnd.syncml.dm+wbxml": ["bdm"], "application/vnd.syncml.dm+xml": ["xdm"], "application/vnd.syncml.dmddf+xml": ["ddf"], "application/vnd.tao.intent-module-archive": ["tao"], "application/vnd.tcpdump.pcap": ["pcap", "cap", "dmp"], "application/vnd.tmobile-livetv": ["tmo"], "application/vnd.trid.tpt": ["tpt"], "application/vnd.triscape.mxs": ["mxs"], "application/vnd.trueapp": ["tra"], "application/vnd.ufdl": ["ufd", "ufdl"], "application/vnd.uiq.theme": ["utz"], "application/vnd.umajin": ["umj"], "application/vnd.unity": ["unityweb"], "application/vnd.uoml+xml": ["uoml", "uo"], "application/vnd.vcx": ["vcx"], "application/vnd.visio": ["vsd", "vst", "vss", "vsw"], "application/vnd.visionary": ["vis"], "application/vnd.vsf": ["vsf"], "application/vnd.wap.wbxml": ["wbxml"], "application/vnd.wap.wmlc": ["wmlc"], "application/vnd.wap.wmlscriptc": ["wmlsc"], "application/vnd.webturbo": ["wtb"], "application/vnd.wolfram.player": ["nbp"], "application/vnd.wordperfect": ["wpd"], "application/vnd.wqd": ["wqd"], "application/vnd.wt.stf": ["stf"], "application/vnd.xara": ["xar"], "application/vnd.xfdl": ["xfdl"], "application/vnd.yamaha.hv-dic": ["hvd"], "application/vnd.yamaha.hv-script": ["hvs"], "application/vnd.yamaha.hv-voice": ["hvp"], "application/vnd.yamaha.openscoreformat": ["osf"], "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"], "application/vnd.yamaha.smaf-audio": ["saf"], "application/vnd.yamaha.smaf-phrase": ["spf"], "application/vnd.yellowriver-custom-menu": ["cmp"], "application/vnd.zul": ["zir", "zirz"], "application/vnd.zzazz.deck+xml": ["zaz"], "application/x-7z-compressed": ["7z"], "application/x-abiword": ["abw"], "application/x-ace-compressed": ["ace"], "application/x-apple-diskimage": ["*dmg"], "application/x-arj": ["arj"], "application/x-authorware-bin": ["aab", "x32", "u32", "vox"], "application/x-authorware-map": ["aam"], "application/x-authorware-seg": ["aas"], "application/x-bcpio": ["bcpio"], "application/x-bdoc": ["*bdoc"], "application/x-bittorrent": ["torrent"], "application/x-blorb": ["blb", "blorb"], "application/x-bzip": ["bz"], "application/x-bzip2": ["bz2", "boz"], "application/x-cbr": ["cbr", "cba", "cbt", "cbz", "cb7"], "application/x-cdlink": ["vcd"], "application/x-cfs-compressed": ["cfs"], "application/x-chat": ["chat"], "application/x-chess-pgn": ["pgn"], "application/x-chrome-extension": ["crx"], "application/x-cocoa": ["cco"], "application/x-conference": ["nsc"], "application/x-cpio": ["cpio"], "application/x-csh": ["csh"], "application/x-debian-package": ["*deb", "udeb"], "application/x-dgc-compressed": ["dgc"], "application/x-director": ["dir", "dcr", "dxr", "cst", "cct", "cxt", "w3d", "fgd", "swa"], "application/x-doom": ["wad"], "application/x-dtbncx+xml": ["ncx"], "application/x-dtbook+xml": ["dtb"], "application/x-dtbresource+xml": ["res"], "application/x-dvi": ["dvi"], "application/x-envoy": ["evy"], "application/x-eva": ["eva"], "application/x-font-bdf": ["bdf"], "application/x-font-ghostscript": ["gsf"], "application/x-font-linux-psf": ["psf"], "application/x-font-pcf": ["pcf"], "application/x-font-snf": ["snf"], "application/x-font-type1": ["pfa", "pfb", "pfm", "afm"], "application/x-freearc": ["arc"], "application/x-futuresplash": ["spl"], "application/x-gca-compressed": ["gca"], "application/x-glulx": ["ulx"], "application/x-gnumeric": ["gnumeric"], "application/x-gramps-xml": ["gramps"], "application/x-gtar": ["gtar"], "application/x-hdf": ["hdf"], "application/x-httpd-php": ["php"], "application/x-install-instructions": ["install"], "application/x-iso9660-image": ["*iso"], "application/x-iwork-keynote-sffkey": ["*key"], "application/x-iwork-numbers-sffnumbers": ["*numbers"], "application/x-iwork-pages-sffpages": ["*pages"], "application/x-java-archive-diff": ["jardiff"], "application/x-java-jnlp-file": ["jnlp"], "application/x-keepass2": ["kdbx"], "application/x-latex": ["latex"], "application/x-lua-bytecode": ["luac"], "application/x-lzh-compressed": ["lzh", "lha"], "application/x-makeself": ["run"], "application/x-mie": ["mie"], "application/x-mobipocket-ebook": ["*prc", "mobi"], "application/x-ms-application": ["application"], "application/x-ms-shortcut": ["lnk"], "application/x-ms-wmd": ["wmd"], "application/x-ms-wmz": ["wmz"], "application/x-ms-xbap": ["xbap"], "application/x-msaccess": ["mdb"], "application/x-msbinder": ["obd"], "application/x-mscardfile": ["crd"], "application/x-msclip": ["clp"], "application/x-msdos-program": ["*exe"], "application/x-msdownload": ["*exe", "*dll", "com", "bat", "*msi"], "application/x-msmediaview": ["mvb", "m13", "m14"], "application/x-msmetafile": ["*wmf", "*wmz", "*emf", "emz"], "application/x-msmoney": ["mny"], "application/x-mspublisher": ["pub"], "application/x-msschedule": ["scd"], "application/x-msterminal": ["trm"], "application/x-mswrite": ["wri"], "application/x-netcdf": ["nc", "cdf"], "application/x-ns-proxy-autoconfig": ["pac"], "application/x-nzb": ["nzb"], "application/x-perl": ["pl", "pm"], "application/x-pilot": ["*prc", "*pdb"], "application/x-pkcs12": ["p12", "pfx"], "application/x-pkcs7-certificates": ["p7b", "spc"], "application/x-pkcs7-certreqresp": ["p7r"], "application/x-rar-compressed": ["*rar"], "application/x-redhat-package-manager": ["rpm"], "application/x-research-info-systems": ["ris"], "application/x-sea": ["sea"], "application/x-sh": ["sh"], "application/x-shar": ["shar"], "application/x-shockwave-flash": ["swf"], "application/x-silverlight-app": ["xap"], "application/x-sql": ["*sql"], "application/x-stuffit": ["sit"], "application/x-stuffitx": ["sitx"], "application/x-subrip": ["srt"], "application/x-sv4cpio": ["sv4cpio"], "application/x-sv4crc": ["sv4crc"], "application/x-t3vm-image": ["t3"], "application/x-tads": ["gam"], "application/x-tar": ["tar"], "application/x-tcl": ["tcl", "tk"], "application/x-tex": ["tex"], "application/x-tex-tfm": ["tfm"], "application/x-texinfo": ["texinfo", "texi"], "application/x-tgif": ["*obj"], "application/x-ustar": ["ustar"], "application/x-virtualbox-hdd": ["hdd"], "application/x-virtualbox-ova": ["ova"], "application/x-virtualbox-ovf": ["ovf"], "application/x-virtualbox-vbox": ["vbox"], "application/x-virtualbox-vbox-extpack": ["vbox-extpack"], "application/x-virtualbox-vdi": ["vdi"], "application/x-virtualbox-vhd": ["vhd"], "application/x-virtualbox-vmdk": ["vmdk"], "application/x-wais-source": ["src"], "application/x-web-app-manifest+json": ["webapp"], "application/x-x509-ca-cert": ["der", "crt", "pem"], "application/x-xfig": ["fig"], "application/x-xliff+xml": ["*xlf"], "application/x-xpinstall": ["xpi"], "application/x-xz": ["xz"], "application/x-zmachine": ["z1", "z2", "z3", "z4", "z5", "z6", "z7", "z8"], "audio/vnd.dece.audio": ["uva", "uvva"], "audio/vnd.digital-winds": ["eol"], "audio/vnd.dra": ["dra"], "audio/vnd.dts": ["dts"], "audio/vnd.dts.hd": ["dtshd"], "audio/vnd.lucent.voice": ["lvp"], "audio/vnd.ms-playready.media.pya": ["pya"], "audio/vnd.nuera.ecelp4800": ["ecelp4800"], "audio/vnd.nuera.ecelp7470": ["ecelp7470"], "audio/vnd.nuera.ecelp9600": ["ecelp9600"], "audio/vnd.rip": ["rip"], "audio/x-aac": ["*aac"], "audio/x-aiff": ["aif", "aiff", "aifc"], "audio/x-caf": ["caf"], "audio/x-flac": ["flac"], "audio/x-m4a": ["*m4a"], "audio/x-matroska": ["mka"], "audio/x-mpegurl": ["m3u"], "audio/x-ms-wax": ["wax"], "audio/x-ms-wma": ["wma"], "audio/x-pn-realaudio": ["ram", "ra"], "audio/x-pn-realaudio-plugin": ["rmp"], "audio/x-realaudio": ["*ra"], "audio/x-wav": ["*wav"], "chemical/x-cdx": ["cdx"], "chemical/x-cif": ["cif"], "chemical/x-cmdf": ["cmdf"], "chemical/x-cml": ["cml"], "chemical/x-csml": ["csml"], "chemical/x-xyz": ["xyz"], "image/prs.btif": ["btif", "btf"], "image/prs.pti": ["pti"], "image/vnd.adobe.photoshop": ["psd"], "image/vnd.airzip.accelerator.azv": ["azv"], "image/vnd.dece.graphic": ["uvi", "uvvi", "uvg", "uvvg"], "image/vnd.djvu": ["djvu", "djv"], "image/vnd.dvb.subtitle": ["*sub"], "image/vnd.dwg": ["dwg"], "image/vnd.dxf": ["dxf"], "image/vnd.fastbidsheet": ["fbs"], "image/vnd.fpx": ["fpx"], "image/vnd.fst": ["fst"], "image/vnd.fujixerox.edmics-mmr": ["mmr"], "image/vnd.fujixerox.edmics-rlc": ["rlc"], "image/vnd.microsoft.icon": ["ico"], "image/vnd.ms-dds": ["dds"], "image/vnd.ms-modi": ["mdi"], "image/vnd.ms-photo": ["wdp"], "image/vnd.net-fpx": ["npx"], "image/vnd.pco.b16": ["b16"], "image/vnd.tencent.tap": ["tap"], "image/vnd.valve.source.texture": ["vtf"], "image/vnd.wap.wbmp": ["wbmp"], "image/vnd.xiff": ["xif"], "image/vnd.zbrush.pcx": ["pcx"], "image/x-3ds": ["3ds"], "image/x-cmu-raster": ["ras"], "image/x-cmx": ["cmx"], "image/x-freehand": ["fh", "fhc", "fh4", "fh5", "fh7"], "image/x-icon": ["*ico"], "image/x-jng": ["jng"], "image/x-mrsid-image": ["sid"], "image/x-ms-bmp": ["*bmp"], "image/x-pcx": ["*pcx"], "image/x-pict": ["pic", "pct"], "image/x-portable-anymap": ["pnm"], "image/x-portable-bitmap": ["pbm"], "image/x-portable-graymap": ["pgm"], "image/x-portable-pixmap": ["ppm"], "image/x-rgb": ["rgb"], "image/x-tga": ["tga"], "image/x-xbitmap": ["xbm"], "image/x-xpixmap": ["xpm"], "image/x-xwindowdump": ["xwd"], "message/vnd.wfa.wsc": ["wsc"], "model/vnd.cld": ["cld"], "model/vnd.collada+xml": ["dae"], "model/vnd.dwf": ["dwf"], "model/vnd.gdl": ["gdl"], "model/vnd.gtw": ["gtw"], "model/vnd.mts": ["mts"], "model/vnd.opengex": ["ogex"], "model/vnd.parasolid.transmit.binary": ["x_b"], "model/vnd.parasolid.transmit.text": ["x_t"], "model/vnd.pytha.pyox": ["pyo", "pyox"], "model/vnd.sap.vds": ["vds"], "model/vnd.usda": ["usda"], "model/vnd.usdz+zip": ["usdz"], "model/vnd.valve.source.compiled-map": ["bsp"], "model/vnd.vtu": ["vtu"], "text/prs.lines.tag": ["dsc"], "text/vnd.curl": ["curl"], "text/vnd.curl.dcurl": ["dcurl"], "text/vnd.curl.mcurl": ["mcurl"], "text/vnd.curl.scurl": ["scurl"], "text/vnd.dvb.subtitle": ["sub"], "text/vnd.familysearch.gedcom": ["ged"], "text/vnd.fly": ["fly"], "text/vnd.fmi.flexstor": ["flx"], "text/vnd.graphviz": ["gv"], "text/vnd.in3d.3dml": ["3dml"], "text/vnd.in3d.spot": ["spot"], "text/vnd.sun.j2me.app-descriptor": ["jad"], "text/vnd.wap.wml": ["wml"], "text/vnd.wap.wmlscript": ["wmls"], "text/x-asm": ["s", "asm"], "text/x-c": ["c", "cc", "cxx", "cpp", "h", "hh", "dic"], "text/x-component": ["htc"], "text/x-fortran": ["f", "for", "f77", "f90"], "text/x-handlebars-template": ["hbs"], "text/x-java-source": ["java"], "text/x-lua": ["lua"], "text/x-markdown": ["mkd"], "text/x-nfo": ["nfo"], "text/x-opml": ["opml"], "text/x-org": ["*org"], "text/x-pascal": ["p", "pas"], "text/x-processing": ["pde"], "text/x-sass": ["sass"], "text/x-scss": ["scss"], "text/x-setext": ["etx"], "text/x-sfv": ["sfv"], "text/x-suse-ymp": ["ymp"], "text/x-uuencode": ["uu"], "text/x-vcalendar": ["vcs"], "text/x-vcard": ["vcf"], "video/vnd.dece.hd": ["uvh", "uvvh"], "video/vnd.dece.mobile": ["uvm", "uvvm"], "video/vnd.dece.pd": ["uvp", "uvvp"], "video/vnd.dece.sd": ["uvs", "uvvs"], "video/vnd.dece.video": ["uvv", "uvvv"], "video/vnd.dvb.file": ["dvb"], "video/vnd.fvt": ["fvt"], "video/vnd.mpegurl": ["mxu", "m4u"], "video/vnd.ms-playready.media.pyv": ["pyv"], "video/vnd.uvvu.mp4": ["uvu", "uvvu"], "video/vnd.vivo": ["viv"], "video/x-f4v": ["f4v"], "video/x-fli": ["fli"], "video/x-flv": ["flv"], "video/x-m4v": ["m4v"], "video/x-matroska": ["mkv", "mk3d", "mks"], "video/x-mng": ["mng"], "video/x-ms-asf": ["asf", "asx"], "video/x-ms-vob": ["vob"], "video/x-ms-wm": ["wm"], "video/x-ms-wmv": ["wmv"], "video/x-ms-wmx": ["wmx"], "video/x-ms-wvx": ["wvx"], "video/x-msvideo": ["avi"], "video/x-sgi-movie": ["movie"], "video/x-smv": ["smv"], "x-conference/x-cooltalk": ["ice"] };
20
- Object.freeze(types);
21
- var other_default = types;
8
+ //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/other.js
9
+ const types$1 = {
10
+ "application/prs.cww": ["cww"],
11
+ "application/prs.xsf+xml": ["xsf"],
12
+ "application/vnd.1000minds.decision-model+xml": ["1km"],
13
+ "application/vnd.3gpp.pic-bw-large": ["plb"],
14
+ "application/vnd.3gpp.pic-bw-small": ["psb"],
15
+ "application/vnd.3gpp.pic-bw-var": ["pvb"],
16
+ "application/vnd.3gpp2.tcap": ["tcap"],
17
+ "application/vnd.3m.post-it-notes": ["pwn"],
18
+ "application/vnd.accpac.simply.aso": ["aso"],
19
+ "application/vnd.accpac.simply.imp": ["imp"],
20
+ "application/vnd.acucobol": ["acu"],
21
+ "application/vnd.acucorp": ["atc", "acutc"],
22
+ "application/vnd.adobe.air-application-installer-package+zip": ["air"],
23
+ "application/vnd.adobe.formscentral.fcdt": ["fcdt"],
24
+ "application/vnd.adobe.fxp": ["fxp", "fxpl"],
25
+ "application/vnd.adobe.xdp+xml": ["xdp"],
26
+ "application/vnd.adobe.xfdf": ["*xfdf"],
27
+ "application/vnd.age": ["age"],
28
+ "application/vnd.ahead.space": ["ahead"],
29
+ "application/vnd.airzip.filesecure.azf": ["azf"],
30
+ "application/vnd.airzip.filesecure.azs": ["azs"],
31
+ "application/vnd.amazon.ebook": ["azw"],
32
+ "application/vnd.americandynamics.acc": ["acc"],
33
+ "application/vnd.amiga.ami": ["ami"],
34
+ "application/vnd.android.package-archive": ["apk"],
35
+ "application/vnd.anser-web-certificate-issue-initiation": ["cii"],
36
+ "application/vnd.anser-web-funds-transfer-initiation": ["fti"],
37
+ "application/vnd.antix.game-component": ["atx"],
38
+ "application/vnd.apple.installer+xml": ["mpkg"],
39
+ "application/vnd.apple.keynote": ["key"],
40
+ "application/vnd.apple.mpegurl": ["m3u8"],
41
+ "application/vnd.apple.numbers": ["numbers"],
42
+ "application/vnd.apple.pages": ["pages"],
43
+ "application/vnd.apple.pkpass": ["pkpass"],
44
+ "application/vnd.aristanetworks.swi": ["swi"],
45
+ "application/vnd.astraea-software.iota": ["iota"],
46
+ "application/vnd.audiograph": ["aep"],
47
+ "application/vnd.balsamiq.bmml+xml": ["bmml"],
48
+ "application/vnd.blueice.multipass": ["mpm"],
49
+ "application/vnd.bmi": ["bmi"],
50
+ "application/vnd.businessobjects": ["rep"],
51
+ "application/vnd.chemdraw+xml": ["cdxml"],
52
+ "application/vnd.chipnuts.karaoke-mmd": ["mmd"],
53
+ "application/vnd.cinderella": ["cdy"],
54
+ "application/vnd.citationstyles.style+xml": ["csl"],
55
+ "application/vnd.claymore": ["cla"],
56
+ "application/vnd.cloanto.rp9": ["rp9"],
57
+ "application/vnd.clonk.c4group": [
58
+ "c4g",
59
+ "c4d",
60
+ "c4f",
61
+ "c4p",
62
+ "c4u"
63
+ ],
64
+ "application/vnd.cluetrust.cartomobile-config": ["c11amc"],
65
+ "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"],
66
+ "application/vnd.commonspace": ["csp"],
67
+ "application/vnd.contact.cmsg": ["cdbcmsg"],
68
+ "application/vnd.cosmocaller": ["cmc"],
69
+ "application/vnd.crick.clicker": ["clkx"],
70
+ "application/vnd.crick.clicker.keyboard": ["clkk"],
71
+ "application/vnd.crick.clicker.palette": ["clkp"],
72
+ "application/vnd.crick.clicker.template": ["clkt"],
73
+ "application/vnd.crick.clicker.wordbank": ["clkw"],
74
+ "application/vnd.criticaltools.wbs+xml": ["wbs"],
75
+ "application/vnd.ctc-posml": ["pml"],
76
+ "application/vnd.cups-ppd": ["ppd"],
77
+ "application/vnd.curl.car": ["car"],
78
+ "application/vnd.curl.pcurl": ["pcurl"],
79
+ "application/vnd.dart": ["dart"],
80
+ "application/vnd.data-vision.rdz": ["rdz"],
81
+ "application/vnd.dbf": ["dbf"],
82
+ "application/vnd.dece.data": [
83
+ "uvf",
84
+ "uvvf",
85
+ "uvd",
86
+ "uvvd"
87
+ ],
88
+ "application/vnd.dece.ttml+xml": ["uvt", "uvvt"],
89
+ "application/vnd.dece.unspecified": ["uvx", "uvvx"],
90
+ "application/vnd.dece.zip": ["uvz", "uvvz"],
91
+ "application/vnd.denovo.fcselayout-link": ["fe_launch"],
92
+ "application/vnd.dna": ["dna"],
93
+ "application/vnd.dolby.mlp": ["mlp"],
94
+ "application/vnd.dpgraph": ["dpg"],
95
+ "application/vnd.dreamfactory": ["dfac"],
96
+ "application/vnd.ds-keypoint": ["kpxx"],
97
+ "application/vnd.dvb.ait": ["ait"],
98
+ "application/vnd.dvb.service": ["svc"],
99
+ "application/vnd.dynageo": ["geo"],
100
+ "application/vnd.ecowin.chart": ["mag"],
101
+ "application/vnd.enliven": ["nml"],
102
+ "application/vnd.epson.esf": ["esf"],
103
+ "application/vnd.epson.msf": ["msf"],
104
+ "application/vnd.epson.quickanime": ["qam"],
105
+ "application/vnd.epson.salt": ["slt"],
106
+ "application/vnd.epson.ssf": ["ssf"],
107
+ "application/vnd.eszigno3+xml": ["es3", "et3"],
108
+ "application/vnd.ezpix-album": ["ez2"],
109
+ "application/vnd.ezpix-package": ["ez3"],
110
+ "application/vnd.fdf": ["*fdf"],
111
+ "application/vnd.fdsn.mseed": ["mseed"],
112
+ "application/vnd.fdsn.seed": ["seed", "dataless"],
113
+ "application/vnd.flographit": ["gph"],
114
+ "application/vnd.fluxtime.clip": ["ftc"],
115
+ "application/vnd.framemaker": [
116
+ "fm",
117
+ "frame",
118
+ "maker",
119
+ "book"
120
+ ],
121
+ "application/vnd.frogans.fnc": ["fnc"],
122
+ "application/vnd.frogans.ltf": ["ltf"],
123
+ "application/vnd.fsc.weblaunch": ["fsc"],
124
+ "application/vnd.fujitsu.oasys": ["oas"],
125
+ "application/vnd.fujitsu.oasys2": ["oa2"],
126
+ "application/vnd.fujitsu.oasys3": ["oa3"],
127
+ "application/vnd.fujitsu.oasysgp": ["fg5"],
128
+ "application/vnd.fujitsu.oasysprs": ["bh2"],
129
+ "application/vnd.fujixerox.ddd": ["ddd"],
130
+ "application/vnd.fujixerox.docuworks": ["xdw"],
131
+ "application/vnd.fujixerox.docuworks.binder": ["xbd"],
132
+ "application/vnd.fuzzysheet": ["fzs"],
133
+ "application/vnd.genomatix.tuxedo": ["txd"],
134
+ "application/vnd.geogebra.file": ["ggb"],
135
+ "application/vnd.geogebra.tool": ["ggt"],
136
+ "application/vnd.geometry-explorer": ["gex", "gre"],
137
+ "application/vnd.geonext": ["gxt"],
138
+ "application/vnd.geoplan": ["g2w"],
139
+ "application/vnd.geospace": ["g3w"],
140
+ "application/vnd.gmx": ["gmx"],
141
+ "application/vnd.google-apps.document": ["gdoc"],
142
+ "application/vnd.google-apps.presentation": ["gslides"],
143
+ "application/vnd.google-apps.spreadsheet": ["gsheet"],
144
+ "application/vnd.google-earth.kml+xml": ["kml"],
145
+ "application/vnd.google-earth.kmz": ["kmz"],
146
+ "application/vnd.grafeq": ["gqf", "gqs"],
147
+ "application/vnd.groove-account": ["gac"],
148
+ "application/vnd.groove-help": ["ghf"],
149
+ "application/vnd.groove-identity-message": ["gim"],
150
+ "application/vnd.groove-injector": ["grv"],
151
+ "application/vnd.groove-tool-message": ["gtm"],
152
+ "application/vnd.groove-tool-template": ["tpl"],
153
+ "application/vnd.groove-vcard": ["vcg"],
154
+ "application/vnd.hal+xml": ["hal"],
155
+ "application/vnd.handheld-entertainment+xml": ["zmm"],
156
+ "application/vnd.hbci": ["hbci"],
157
+ "application/vnd.hhe.lesson-player": ["les"],
158
+ "application/vnd.hp-hpgl": ["hpgl"],
159
+ "application/vnd.hp-hpid": ["hpid"],
160
+ "application/vnd.hp-hps": ["hps"],
161
+ "application/vnd.hp-jlyt": ["jlt"],
162
+ "application/vnd.hp-pcl": ["pcl"],
163
+ "application/vnd.hp-pclxl": ["pclxl"],
164
+ "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"],
165
+ "application/vnd.ibm.minipay": ["mpy"],
166
+ "application/vnd.ibm.modcap": [
167
+ "afp",
168
+ "listafp",
169
+ "list3820"
170
+ ],
171
+ "application/vnd.ibm.rights-management": ["irm"],
172
+ "application/vnd.ibm.secure-container": ["sc"],
173
+ "application/vnd.iccprofile": ["icc", "icm"],
174
+ "application/vnd.igloader": ["igl"],
175
+ "application/vnd.immervision-ivp": ["ivp"],
176
+ "application/vnd.immervision-ivu": ["ivu"],
177
+ "application/vnd.insors.igm": ["igm"],
178
+ "application/vnd.intercon.formnet": ["xpw", "xpx"],
179
+ "application/vnd.intergeo": ["i2g"],
180
+ "application/vnd.intu.qbo": ["qbo"],
181
+ "application/vnd.intu.qfx": ["qfx"],
182
+ "application/vnd.ipunplugged.rcprofile": ["rcprofile"],
183
+ "application/vnd.irepository.package+xml": ["irp"],
184
+ "application/vnd.is-xpr": ["xpr"],
185
+ "application/vnd.isac.fcs": ["fcs"],
186
+ "application/vnd.jam": ["jam"],
187
+ "application/vnd.jcp.javame.midlet-rms": ["rms"],
188
+ "application/vnd.jisp": ["jisp"],
189
+ "application/vnd.joost.joda-archive": ["joda"],
190
+ "application/vnd.kahootz": ["ktz", "ktr"],
191
+ "application/vnd.kde.karbon": ["karbon"],
192
+ "application/vnd.kde.kchart": ["chrt"],
193
+ "application/vnd.kde.kformula": ["kfo"],
194
+ "application/vnd.kde.kivio": ["flw"],
195
+ "application/vnd.kde.kontour": ["kon"],
196
+ "application/vnd.kde.kpresenter": ["kpr", "kpt"],
197
+ "application/vnd.kde.kspread": ["ksp"],
198
+ "application/vnd.kde.kword": ["kwd", "kwt"],
199
+ "application/vnd.kenameaapp": ["htke"],
200
+ "application/vnd.kidspiration": ["kia"],
201
+ "application/vnd.kinar": ["kne", "knp"],
202
+ "application/vnd.koan": [
203
+ "skp",
204
+ "skd",
205
+ "skt",
206
+ "skm"
207
+ ],
208
+ "application/vnd.kodak-descriptor": ["sse"],
209
+ "application/vnd.las.las+xml": ["lasxml"],
210
+ "application/vnd.llamagraphics.life-balance.desktop": ["lbd"],
211
+ "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"],
212
+ "application/vnd.lotus-1-2-3": ["123"],
213
+ "application/vnd.lotus-approach": ["apr"],
214
+ "application/vnd.lotus-freelance": ["pre"],
215
+ "application/vnd.lotus-notes": ["nsf"],
216
+ "application/vnd.lotus-organizer": ["org"],
217
+ "application/vnd.lotus-screencam": ["scm"],
218
+ "application/vnd.lotus-wordpro": ["lwp"],
219
+ "application/vnd.macports.portpkg": ["portpkg"],
220
+ "application/vnd.mapbox-vector-tile": ["mvt"],
221
+ "application/vnd.mcd": ["mcd"],
222
+ "application/vnd.medcalcdata": ["mc1"],
223
+ "application/vnd.mediastation.cdkey": ["cdkey"],
224
+ "application/vnd.mfer": ["mwf"],
225
+ "application/vnd.mfmp": ["mfm"],
226
+ "application/vnd.micrografx.flo": ["flo"],
227
+ "application/vnd.micrografx.igx": ["igx"],
228
+ "application/vnd.mif": ["mif"],
229
+ "application/vnd.mobius.daf": ["daf"],
230
+ "application/vnd.mobius.dis": ["dis"],
231
+ "application/vnd.mobius.mbk": ["mbk"],
232
+ "application/vnd.mobius.mqy": ["mqy"],
233
+ "application/vnd.mobius.msl": ["msl"],
234
+ "application/vnd.mobius.plc": ["plc"],
235
+ "application/vnd.mobius.txf": ["txf"],
236
+ "application/vnd.mophun.application": ["mpn"],
237
+ "application/vnd.mophun.certificate": ["mpc"],
238
+ "application/vnd.mozilla.xul+xml": ["xul"],
239
+ "application/vnd.ms-artgalry": ["cil"],
240
+ "application/vnd.ms-cab-compressed": ["cab"],
241
+ "application/vnd.ms-excel": [
242
+ "xls",
243
+ "xlm",
244
+ "xla",
245
+ "xlc",
246
+ "xlt",
247
+ "xlw"
248
+ ],
249
+ "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"],
250
+ "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"],
251
+ "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"],
252
+ "application/vnd.ms-excel.template.macroenabled.12": ["xltm"],
253
+ "application/vnd.ms-fontobject": ["eot"],
254
+ "application/vnd.ms-htmlhelp": ["chm"],
255
+ "application/vnd.ms-ims": ["ims"],
256
+ "application/vnd.ms-lrm": ["lrm"],
257
+ "application/vnd.ms-officetheme": ["thmx"],
258
+ "application/vnd.ms-outlook": ["msg"],
259
+ "application/vnd.ms-pki.seccat": ["cat"],
260
+ "application/vnd.ms-pki.stl": ["*stl"],
261
+ "application/vnd.ms-powerpoint": [
262
+ "ppt",
263
+ "pps",
264
+ "pot"
265
+ ],
266
+ "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"],
267
+ "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"],
268
+ "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"],
269
+ "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"],
270
+ "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"],
271
+ "application/vnd.ms-project": ["*mpp", "mpt"],
272
+ "application/vnd.ms-word.document.macroenabled.12": ["docm"],
273
+ "application/vnd.ms-word.template.macroenabled.12": ["dotm"],
274
+ "application/vnd.ms-works": [
275
+ "wps",
276
+ "wks",
277
+ "wcm",
278
+ "wdb"
279
+ ],
280
+ "application/vnd.ms-wpl": ["wpl"],
281
+ "application/vnd.ms-xpsdocument": ["xps"],
282
+ "application/vnd.mseq": ["mseq"],
283
+ "application/vnd.musician": ["mus"],
284
+ "application/vnd.muvee.style": ["msty"],
285
+ "application/vnd.mynfc": ["taglet"],
286
+ "application/vnd.neurolanguage.nlu": ["nlu"],
287
+ "application/vnd.nitf": ["ntf", "nitf"],
288
+ "application/vnd.noblenet-directory": ["nnd"],
289
+ "application/vnd.noblenet-sealer": ["nns"],
290
+ "application/vnd.noblenet-web": ["nnw"],
291
+ "application/vnd.nokia.n-gage.ac+xml": ["*ac"],
292
+ "application/vnd.nokia.n-gage.data": ["ngdat"],
293
+ "application/vnd.nokia.n-gage.symbian.install": ["n-gage"],
294
+ "application/vnd.nokia.radio-preset": ["rpst"],
295
+ "application/vnd.nokia.radio-presets": ["rpss"],
296
+ "application/vnd.novadigm.edm": ["edm"],
297
+ "application/vnd.novadigm.edx": ["edx"],
298
+ "application/vnd.novadigm.ext": ["ext"],
299
+ "application/vnd.oasis.opendocument.chart": ["odc"],
300
+ "application/vnd.oasis.opendocument.chart-template": ["otc"],
301
+ "application/vnd.oasis.opendocument.database": ["odb"],
302
+ "application/vnd.oasis.opendocument.formula": ["odf"],
303
+ "application/vnd.oasis.opendocument.formula-template": ["odft"],
304
+ "application/vnd.oasis.opendocument.graphics": ["odg"],
305
+ "application/vnd.oasis.opendocument.graphics-template": ["otg"],
306
+ "application/vnd.oasis.opendocument.image": ["odi"],
307
+ "application/vnd.oasis.opendocument.image-template": ["oti"],
308
+ "application/vnd.oasis.opendocument.presentation": ["odp"],
309
+ "application/vnd.oasis.opendocument.presentation-template": ["otp"],
310
+ "application/vnd.oasis.opendocument.spreadsheet": ["ods"],
311
+ "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"],
312
+ "application/vnd.oasis.opendocument.text": ["odt"],
313
+ "application/vnd.oasis.opendocument.text-master": ["odm"],
314
+ "application/vnd.oasis.opendocument.text-template": ["ott"],
315
+ "application/vnd.oasis.opendocument.text-web": ["oth"],
316
+ "application/vnd.olpc-sugar": ["xo"],
317
+ "application/vnd.oma.dd2+xml": ["dd2"],
318
+ "application/vnd.openblox.game+xml": ["obgx"],
319
+ "application/vnd.openofficeorg.extension": ["oxt"],
320
+ "application/vnd.openstreetmap.data+xml": ["osm"],
321
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation": ["pptx"],
322
+ "application/vnd.openxmlformats-officedocument.presentationml.slide": ["sldx"],
323
+ "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ["ppsx"],
324
+ "application/vnd.openxmlformats-officedocument.presentationml.template": ["potx"],
325
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"],
326
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ["xltx"],
327
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ["docx"],
328
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ["dotx"],
329
+ "application/vnd.osgeo.mapguide.package": ["mgp"],
330
+ "application/vnd.osgi.dp": ["dp"],
331
+ "application/vnd.osgi.subsystem": ["esa"],
332
+ "application/vnd.palm": [
333
+ "pdb",
334
+ "pqa",
335
+ "oprc"
336
+ ],
337
+ "application/vnd.pawaafile": ["paw"],
338
+ "application/vnd.pg.format": ["str"],
339
+ "application/vnd.pg.osasli": ["ei6"],
340
+ "application/vnd.picsel": ["efif"],
341
+ "application/vnd.pmi.widget": ["wg"],
342
+ "application/vnd.pocketlearn": ["plf"],
343
+ "application/vnd.powerbuilder6": ["pbd"],
344
+ "application/vnd.previewsystems.box": ["box"],
345
+ "application/vnd.proteus.magazine": ["mgz"],
346
+ "application/vnd.publishare-delta-tree": ["qps"],
347
+ "application/vnd.pvi.ptid1": ["ptid"],
348
+ "application/vnd.pwg-xhtml-print+xml": ["xhtm"],
349
+ "application/vnd.quark.quarkxpress": [
350
+ "qxd",
351
+ "qxt",
352
+ "qwd",
353
+ "qwt",
354
+ "qxl",
355
+ "qxb"
356
+ ],
357
+ "application/vnd.rar": ["rar"],
358
+ "application/vnd.realvnc.bed": ["bed"],
359
+ "application/vnd.recordare.musicxml": ["mxl"],
360
+ "application/vnd.recordare.musicxml+xml": ["musicxml"],
361
+ "application/vnd.rig.cryptonote": ["cryptonote"],
362
+ "application/vnd.rim.cod": ["cod"],
363
+ "application/vnd.rn-realmedia": ["rm"],
364
+ "application/vnd.rn-realmedia-vbr": ["rmvb"],
365
+ "application/vnd.route66.link66+xml": ["link66"],
366
+ "application/vnd.sailingtracker.track": ["st"],
367
+ "application/vnd.seemail": ["see"],
368
+ "application/vnd.sema": ["sema"],
369
+ "application/vnd.semd": ["semd"],
370
+ "application/vnd.semf": ["semf"],
371
+ "application/vnd.shana.informed.formdata": ["ifm"],
372
+ "application/vnd.shana.informed.formtemplate": ["itp"],
373
+ "application/vnd.shana.informed.interchange": ["iif"],
374
+ "application/vnd.shana.informed.package": ["ipk"],
375
+ "application/vnd.simtech-mindmapper": ["twd", "twds"],
376
+ "application/vnd.smaf": ["mmf"],
377
+ "application/vnd.smart.teacher": ["teacher"],
378
+ "application/vnd.software602.filler.form+xml": ["fo"],
379
+ "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"],
380
+ "application/vnd.spotfire.dxp": ["dxp"],
381
+ "application/vnd.spotfire.sfs": ["sfs"],
382
+ "application/vnd.stardivision.calc": ["sdc"],
383
+ "application/vnd.stardivision.draw": ["sda"],
384
+ "application/vnd.stardivision.impress": ["sdd"],
385
+ "application/vnd.stardivision.math": ["smf"],
386
+ "application/vnd.stardivision.writer": ["sdw", "vor"],
387
+ "application/vnd.stardivision.writer-global": ["sgl"],
388
+ "application/vnd.stepmania.package": ["smzip"],
389
+ "application/vnd.stepmania.stepchart": ["sm"],
390
+ "application/vnd.sun.wadl+xml": ["wadl"],
391
+ "application/vnd.sun.xml.calc": ["sxc"],
392
+ "application/vnd.sun.xml.calc.template": ["stc"],
393
+ "application/vnd.sun.xml.draw": ["sxd"],
394
+ "application/vnd.sun.xml.draw.template": ["std"],
395
+ "application/vnd.sun.xml.impress": ["sxi"],
396
+ "application/vnd.sun.xml.impress.template": ["sti"],
397
+ "application/vnd.sun.xml.math": ["sxm"],
398
+ "application/vnd.sun.xml.writer": ["sxw"],
399
+ "application/vnd.sun.xml.writer.global": ["sxg"],
400
+ "application/vnd.sun.xml.writer.template": ["stw"],
401
+ "application/vnd.sus-calendar": ["sus", "susp"],
402
+ "application/vnd.svd": ["svd"],
403
+ "application/vnd.symbian.install": ["sis", "sisx"],
404
+ "application/vnd.syncml+xml": ["xsm"],
405
+ "application/vnd.syncml.dm+wbxml": ["bdm"],
406
+ "application/vnd.syncml.dm+xml": ["xdm"],
407
+ "application/vnd.syncml.dmddf+xml": ["ddf"],
408
+ "application/vnd.tao.intent-module-archive": ["tao"],
409
+ "application/vnd.tcpdump.pcap": [
410
+ "pcap",
411
+ "cap",
412
+ "dmp"
413
+ ],
414
+ "application/vnd.tmobile-livetv": ["tmo"],
415
+ "application/vnd.trid.tpt": ["tpt"],
416
+ "application/vnd.triscape.mxs": ["mxs"],
417
+ "application/vnd.trueapp": ["tra"],
418
+ "application/vnd.ufdl": ["ufd", "ufdl"],
419
+ "application/vnd.uiq.theme": ["utz"],
420
+ "application/vnd.umajin": ["umj"],
421
+ "application/vnd.unity": ["unityweb"],
422
+ "application/vnd.uoml+xml": ["uoml", "uo"],
423
+ "application/vnd.vcx": ["vcx"],
424
+ "application/vnd.visio": [
425
+ "vsd",
426
+ "vst",
427
+ "vss",
428
+ "vsw"
429
+ ],
430
+ "application/vnd.visionary": ["vis"],
431
+ "application/vnd.vsf": ["vsf"],
432
+ "application/vnd.wap.wbxml": ["wbxml"],
433
+ "application/vnd.wap.wmlc": ["wmlc"],
434
+ "application/vnd.wap.wmlscriptc": ["wmlsc"],
435
+ "application/vnd.webturbo": ["wtb"],
436
+ "application/vnd.wolfram.player": ["nbp"],
437
+ "application/vnd.wordperfect": ["wpd"],
438
+ "application/vnd.wqd": ["wqd"],
439
+ "application/vnd.wt.stf": ["stf"],
440
+ "application/vnd.xara": ["xar"],
441
+ "application/vnd.xfdl": ["xfdl"],
442
+ "application/vnd.yamaha.hv-dic": ["hvd"],
443
+ "application/vnd.yamaha.hv-script": ["hvs"],
444
+ "application/vnd.yamaha.hv-voice": ["hvp"],
445
+ "application/vnd.yamaha.openscoreformat": ["osf"],
446
+ "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"],
447
+ "application/vnd.yamaha.smaf-audio": ["saf"],
448
+ "application/vnd.yamaha.smaf-phrase": ["spf"],
449
+ "application/vnd.yellowriver-custom-menu": ["cmp"],
450
+ "application/vnd.zul": ["zir", "zirz"],
451
+ "application/vnd.zzazz.deck+xml": ["zaz"],
452
+ "application/x-7z-compressed": ["7z"],
453
+ "application/x-abiword": ["abw"],
454
+ "application/x-ace-compressed": ["ace"],
455
+ "application/x-apple-diskimage": ["*dmg"],
456
+ "application/x-arj": ["arj"],
457
+ "application/x-authorware-bin": [
458
+ "aab",
459
+ "x32",
460
+ "u32",
461
+ "vox"
462
+ ],
463
+ "application/x-authorware-map": ["aam"],
464
+ "application/x-authorware-seg": ["aas"],
465
+ "application/x-bcpio": ["bcpio"],
466
+ "application/x-bdoc": ["*bdoc"],
467
+ "application/x-bittorrent": ["torrent"],
468
+ "application/x-blorb": ["blb", "blorb"],
469
+ "application/x-bzip": ["bz"],
470
+ "application/x-bzip2": ["bz2", "boz"],
471
+ "application/x-cbr": [
472
+ "cbr",
473
+ "cba",
474
+ "cbt",
475
+ "cbz",
476
+ "cb7"
477
+ ],
478
+ "application/x-cdlink": ["vcd"],
479
+ "application/x-cfs-compressed": ["cfs"],
480
+ "application/x-chat": ["chat"],
481
+ "application/x-chess-pgn": ["pgn"],
482
+ "application/x-chrome-extension": ["crx"],
483
+ "application/x-cocoa": ["cco"],
484
+ "application/x-conference": ["nsc"],
485
+ "application/x-cpio": ["cpio"],
486
+ "application/x-csh": ["csh"],
487
+ "application/x-debian-package": ["*deb", "udeb"],
488
+ "application/x-dgc-compressed": ["dgc"],
489
+ "application/x-director": [
490
+ "dir",
491
+ "dcr",
492
+ "dxr",
493
+ "cst",
494
+ "cct",
495
+ "cxt",
496
+ "w3d",
497
+ "fgd",
498
+ "swa"
499
+ ],
500
+ "application/x-doom": ["wad"],
501
+ "application/x-dtbncx+xml": ["ncx"],
502
+ "application/x-dtbook+xml": ["dtb"],
503
+ "application/x-dtbresource+xml": ["res"],
504
+ "application/x-dvi": ["dvi"],
505
+ "application/x-envoy": ["evy"],
506
+ "application/x-eva": ["eva"],
507
+ "application/x-font-bdf": ["bdf"],
508
+ "application/x-font-ghostscript": ["gsf"],
509
+ "application/x-font-linux-psf": ["psf"],
510
+ "application/x-font-pcf": ["pcf"],
511
+ "application/x-font-snf": ["snf"],
512
+ "application/x-font-type1": [
513
+ "pfa",
514
+ "pfb",
515
+ "pfm",
516
+ "afm"
517
+ ],
518
+ "application/x-freearc": ["arc"],
519
+ "application/x-futuresplash": ["spl"],
520
+ "application/x-gca-compressed": ["gca"],
521
+ "application/x-glulx": ["ulx"],
522
+ "application/x-gnumeric": ["gnumeric"],
523
+ "application/x-gramps-xml": ["gramps"],
524
+ "application/x-gtar": ["gtar"],
525
+ "application/x-hdf": ["hdf"],
526
+ "application/x-httpd-php": ["php"],
527
+ "application/x-install-instructions": ["install"],
528
+ "application/x-iso9660-image": ["*iso"],
529
+ "application/x-iwork-keynote-sffkey": ["*key"],
530
+ "application/x-iwork-numbers-sffnumbers": ["*numbers"],
531
+ "application/x-iwork-pages-sffpages": ["*pages"],
532
+ "application/x-java-archive-diff": ["jardiff"],
533
+ "application/x-java-jnlp-file": ["jnlp"],
534
+ "application/x-keepass2": ["kdbx"],
535
+ "application/x-latex": ["latex"],
536
+ "application/x-lua-bytecode": ["luac"],
537
+ "application/x-lzh-compressed": ["lzh", "lha"],
538
+ "application/x-makeself": ["run"],
539
+ "application/x-mie": ["mie"],
540
+ "application/x-mobipocket-ebook": ["*prc", "mobi"],
541
+ "application/x-ms-application": ["application"],
542
+ "application/x-ms-shortcut": ["lnk"],
543
+ "application/x-ms-wmd": ["wmd"],
544
+ "application/x-ms-wmz": ["wmz"],
545
+ "application/x-ms-xbap": ["xbap"],
546
+ "application/x-msaccess": ["mdb"],
547
+ "application/x-msbinder": ["obd"],
548
+ "application/x-mscardfile": ["crd"],
549
+ "application/x-msclip": ["clp"],
550
+ "application/x-msdos-program": ["*exe"],
551
+ "application/x-msdownload": [
552
+ "*exe",
553
+ "*dll",
554
+ "com",
555
+ "bat",
556
+ "*msi"
557
+ ],
558
+ "application/x-msmediaview": [
559
+ "mvb",
560
+ "m13",
561
+ "m14"
562
+ ],
563
+ "application/x-msmetafile": [
564
+ "*wmf",
565
+ "*wmz",
566
+ "*emf",
567
+ "emz"
568
+ ],
569
+ "application/x-msmoney": ["mny"],
570
+ "application/x-mspublisher": ["pub"],
571
+ "application/x-msschedule": ["scd"],
572
+ "application/x-msterminal": ["trm"],
573
+ "application/x-mswrite": ["wri"],
574
+ "application/x-netcdf": ["nc", "cdf"],
575
+ "application/x-ns-proxy-autoconfig": ["pac"],
576
+ "application/x-nzb": ["nzb"],
577
+ "application/x-perl": ["pl", "pm"],
578
+ "application/x-pilot": ["*prc", "*pdb"],
579
+ "application/x-pkcs12": ["p12", "pfx"],
580
+ "application/x-pkcs7-certificates": ["p7b", "spc"],
581
+ "application/x-pkcs7-certreqresp": ["p7r"],
582
+ "application/x-rar-compressed": ["*rar"],
583
+ "application/x-redhat-package-manager": ["rpm"],
584
+ "application/x-research-info-systems": ["ris"],
585
+ "application/x-sea": ["sea"],
586
+ "application/x-sh": ["sh"],
587
+ "application/x-shar": ["shar"],
588
+ "application/x-shockwave-flash": ["swf"],
589
+ "application/x-silverlight-app": ["xap"],
590
+ "application/x-sql": ["*sql"],
591
+ "application/x-stuffit": ["sit"],
592
+ "application/x-stuffitx": ["sitx"],
593
+ "application/x-subrip": ["srt"],
594
+ "application/x-sv4cpio": ["sv4cpio"],
595
+ "application/x-sv4crc": ["sv4crc"],
596
+ "application/x-t3vm-image": ["t3"],
597
+ "application/x-tads": ["gam"],
598
+ "application/x-tar": ["tar"],
599
+ "application/x-tcl": ["tcl", "tk"],
600
+ "application/x-tex": ["tex"],
601
+ "application/x-tex-tfm": ["tfm"],
602
+ "application/x-texinfo": ["texinfo", "texi"],
603
+ "application/x-tgif": ["*obj"],
604
+ "application/x-ustar": ["ustar"],
605
+ "application/x-virtualbox-hdd": ["hdd"],
606
+ "application/x-virtualbox-ova": ["ova"],
607
+ "application/x-virtualbox-ovf": ["ovf"],
608
+ "application/x-virtualbox-vbox": ["vbox"],
609
+ "application/x-virtualbox-vbox-extpack": ["vbox-extpack"],
610
+ "application/x-virtualbox-vdi": ["vdi"],
611
+ "application/x-virtualbox-vhd": ["vhd"],
612
+ "application/x-virtualbox-vmdk": ["vmdk"],
613
+ "application/x-wais-source": ["src"],
614
+ "application/x-web-app-manifest+json": ["webapp"],
615
+ "application/x-x509-ca-cert": [
616
+ "der",
617
+ "crt",
618
+ "pem"
619
+ ],
620
+ "application/x-xfig": ["fig"],
621
+ "application/x-xliff+xml": ["*xlf"],
622
+ "application/x-xpinstall": ["xpi"],
623
+ "application/x-xz": ["xz"],
624
+ "application/x-zmachine": [
625
+ "z1",
626
+ "z2",
627
+ "z3",
628
+ "z4",
629
+ "z5",
630
+ "z6",
631
+ "z7",
632
+ "z8"
633
+ ],
634
+ "audio/vnd.dece.audio": ["uva", "uvva"],
635
+ "audio/vnd.digital-winds": ["eol"],
636
+ "audio/vnd.dra": ["dra"],
637
+ "audio/vnd.dts": ["dts"],
638
+ "audio/vnd.dts.hd": ["dtshd"],
639
+ "audio/vnd.lucent.voice": ["lvp"],
640
+ "audio/vnd.ms-playready.media.pya": ["pya"],
641
+ "audio/vnd.nuera.ecelp4800": ["ecelp4800"],
642
+ "audio/vnd.nuera.ecelp7470": ["ecelp7470"],
643
+ "audio/vnd.nuera.ecelp9600": ["ecelp9600"],
644
+ "audio/vnd.rip": ["rip"],
645
+ "audio/x-aac": ["*aac"],
646
+ "audio/x-aiff": [
647
+ "aif",
648
+ "aiff",
649
+ "aifc"
650
+ ],
651
+ "audio/x-caf": ["caf"],
652
+ "audio/x-flac": ["flac"],
653
+ "audio/x-m4a": ["*m4a"],
654
+ "audio/x-matroska": ["mka"],
655
+ "audio/x-mpegurl": ["m3u"],
656
+ "audio/x-ms-wax": ["wax"],
657
+ "audio/x-ms-wma": ["wma"],
658
+ "audio/x-pn-realaudio": ["ram", "ra"],
659
+ "audio/x-pn-realaudio-plugin": ["rmp"],
660
+ "audio/x-realaudio": ["*ra"],
661
+ "audio/x-wav": ["*wav"],
662
+ "chemical/x-cdx": ["cdx"],
663
+ "chemical/x-cif": ["cif"],
664
+ "chemical/x-cmdf": ["cmdf"],
665
+ "chemical/x-cml": ["cml"],
666
+ "chemical/x-csml": ["csml"],
667
+ "chemical/x-xyz": ["xyz"],
668
+ "image/prs.btif": ["btif", "btf"],
669
+ "image/prs.pti": ["pti"],
670
+ "image/vnd.adobe.photoshop": ["psd"],
671
+ "image/vnd.airzip.accelerator.azv": ["azv"],
672
+ "image/vnd.dece.graphic": [
673
+ "uvi",
674
+ "uvvi",
675
+ "uvg",
676
+ "uvvg"
677
+ ],
678
+ "image/vnd.djvu": ["djvu", "djv"],
679
+ "image/vnd.dvb.subtitle": ["*sub"],
680
+ "image/vnd.dwg": ["dwg"],
681
+ "image/vnd.dxf": ["dxf"],
682
+ "image/vnd.fastbidsheet": ["fbs"],
683
+ "image/vnd.fpx": ["fpx"],
684
+ "image/vnd.fst": ["fst"],
685
+ "image/vnd.fujixerox.edmics-mmr": ["mmr"],
686
+ "image/vnd.fujixerox.edmics-rlc": ["rlc"],
687
+ "image/vnd.microsoft.icon": ["ico"],
688
+ "image/vnd.ms-dds": ["dds"],
689
+ "image/vnd.ms-modi": ["mdi"],
690
+ "image/vnd.ms-photo": ["wdp"],
691
+ "image/vnd.net-fpx": ["npx"],
692
+ "image/vnd.pco.b16": ["b16"],
693
+ "image/vnd.tencent.tap": ["tap"],
694
+ "image/vnd.valve.source.texture": ["vtf"],
695
+ "image/vnd.wap.wbmp": ["wbmp"],
696
+ "image/vnd.xiff": ["xif"],
697
+ "image/vnd.zbrush.pcx": ["pcx"],
698
+ "image/x-3ds": ["3ds"],
699
+ "image/x-cmu-raster": ["ras"],
700
+ "image/x-cmx": ["cmx"],
701
+ "image/x-freehand": [
702
+ "fh",
703
+ "fhc",
704
+ "fh4",
705
+ "fh5",
706
+ "fh7"
707
+ ],
708
+ "image/x-icon": ["*ico"],
709
+ "image/x-jng": ["jng"],
710
+ "image/x-mrsid-image": ["sid"],
711
+ "image/x-ms-bmp": ["*bmp"],
712
+ "image/x-pcx": ["*pcx"],
713
+ "image/x-pict": ["pic", "pct"],
714
+ "image/x-portable-anymap": ["pnm"],
715
+ "image/x-portable-bitmap": ["pbm"],
716
+ "image/x-portable-graymap": ["pgm"],
717
+ "image/x-portable-pixmap": ["ppm"],
718
+ "image/x-rgb": ["rgb"],
719
+ "image/x-tga": ["tga"],
720
+ "image/x-xbitmap": ["xbm"],
721
+ "image/x-xpixmap": ["xpm"],
722
+ "image/x-xwindowdump": ["xwd"],
723
+ "message/vnd.wfa.wsc": ["wsc"],
724
+ "model/vnd.cld": ["cld"],
725
+ "model/vnd.collada+xml": ["dae"],
726
+ "model/vnd.dwf": ["dwf"],
727
+ "model/vnd.gdl": ["gdl"],
728
+ "model/vnd.gtw": ["gtw"],
729
+ "model/vnd.mts": ["mts"],
730
+ "model/vnd.opengex": ["ogex"],
731
+ "model/vnd.parasolid.transmit.binary": ["x_b"],
732
+ "model/vnd.parasolid.transmit.text": ["x_t"],
733
+ "model/vnd.pytha.pyox": ["pyo", "pyox"],
734
+ "model/vnd.sap.vds": ["vds"],
735
+ "model/vnd.usda": ["usda"],
736
+ "model/vnd.usdz+zip": ["usdz"],
737
+ "model/vnd.valve.source.compiled-map": ["bsp"],
738
+ "model/vnd.vtu": ["vtu"],
739
+ "text/prs.lines.tag": ["dsc"],
740
+ "text/vnd.curl": ["curl"],
741
+ "text/vnd.curl.dcurl": ["dcurl"],
742
+ "text/vnd.curl.mcurl": ["mcurl"],
743
+ "text/vnd.curl.scurl": ["scurl"],
744
+ "text/vnd.dvb.subtitle": ["sub"],
745
+ "text/vnd.familysearch.gedcom": ["ged"],
746
+ "text/vnd.fly": ["fly"],
747
+ "text/vnd.fmi.flexstor": ["flx"],
748
+ "text/vnd.graphviz": ["gv"],
749
+ "text/vnd.in3d.3dml": ["3dml"],
750
+ "text/vnd.in3d.spot": ["spot"],
751
+ "text/vnd.sun.j2me.app-descriptor": ["jad"],
752
+ "text/vnd.wap.wml": ["wml"],
753
+ "text/vnd.wap.wmlscript": ["wmls"],
754
+ "text/x-asm": ["s", "asm"],
755
+ "text/x-c": [
756
+ "c",
757
+ "cc",
758
+ "cxx",
759
+ "cpp",
760
+ "h",
761
+ "hh",
762
+ "dic"
763
+ ],
764
+ "text/x-component": ["htc"],
765
+ "text/x-fortran": [
766
+ "f",
767
+ "for",
768
+ "f77",
769
+ "f90"
770
+ ],
771
+ "text/x-handlebars-template": ["hbs"],
772
+ "text/x-java-source": ["java"],
773
+ "text/x-lua": ["lua"],
774
+ "text/x-markdown": ["mkd"],
775
+ "text/x-nfo": ["nfo"],
776
+ "text/x-opml": ["opml"],
777
+ "text/x-org": ["*org"],
778
+ "text/x-pascal": ["p", "pas"],
779
+ "text/x-processing": ["pde"],
780
+ "text/x-sass": ["sass"],
781
+ "text/x-scss": ["scss"],
782
+ "text/x-setext": ["etx"],
783
+ "text/x-sfv": ["sfv"],
784
+ "text/x-suse-ymp": ["ymp"],
785
+ "text/x-uuencode": ["uu"],
786
+ "text/x-vcalendar": ["vcs"],
787
+ "text/x-vcard": ["vcf"],
788
+ "video/vnd.dece.hd": ["uvh", "uvvh"],
789
+ "video/vnd.dece.mobile": ["uvm", "uvvm"],
790
+ "video/vnd.dece.pd": ["uvp", "uvvp"],
791
+ "video/vnd.dece.sd": ["uvs", "uvvs"],
792
+ "video/vnd.dece.video": ["uvv", "uvvv"],
793
+ "video/vnd.dvb.file": ["dvb"],
794
+ "video/vnd.fvt": ["fvt"],
795
+ "video/vnd.mpegurl": ["mxu", "m4u"],
796
+ "video/vnd.ms-playready.media.pyv": ["pyv"],
797
+ "video/vnd.uvvu.mp4": ["uvu", "uvvu"],
798
+ "video/vnd.vivo": ["viv"],
799
+ "video/x-f4v": ["f4v"],
800
+ "video/x-fli": ["fli"],
801
+ "video/x-flv": ["flv"],
802
+ "video/x-m4v": ["m4v"],
803
+ "video/x-matroska": [
804
+ "mkv",
805
+ "mk3d",
806
+ "mks"
807
+ ],
808
+ "video/x-mng": ["mng"],
809
+ "video/x-ms-asf": ["asf", "asx"],
810
+ "video/x-ms-vob": ["vob"],
811
+ "video/x-ms-wm": ["wm"],
812
+ "video/x-ms-wmv": ["wmv"],
813
+ "video/x-ms-wmx": ["wmx"],
814
+ "video/x-ms-wvx": ["wvx"],
815
+ "video/x-msvideo": ["avi"],
816
+ "video/x-sgi-movie": ["movie"],
817
+ "video/x-smv": ["smv"],
818
+ "x-conference/x-cooltalk": ["ice"]
819
+ };
820
+ Object.freeze(types$1);
821
+ var other_default = types$1;
22
822
 
23
- // ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/standard.js
24
- var types2 = { "application/andrew-inset": ["ez"], "application/appinstaller": ["appinstaller"], "application/applixware": ["aw"], "application/appx": ["appx"], "application/appxbundle": ["appxbundle"], "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/automationml-aml+xml": ["aml"], "application/automationml-amlx+zip": ["amlx"], "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/cpl+xml": ["cpl"], "application/cu-seeme": ["cu"], "application/cwl": ["cwl"], "application/dash+xml": ["mpd"], "application/dash-patch+xml": ["mpp"], "application/davmount+xml": ["davmount"], "application/docbook+xml": ["dbk"], "application/dssc+der": ["dssc"], "application/dssc+xml": ["xdssc"], "application/ecmascript": ["ecma"], "application/emma+xml": ["emma"], "application/emotionml+xml": ["emotionml"], "application/epub+zip": ["epub"], "application/exi": ["exi"], "application/express": ["exp"], "application/fdf": ["fdf"], "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"], "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/media-policy-dataset+xml": ["mpf"], "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": ["*mp4", "*mpg4", "mp4s", "m4p"], "application/msix": ["msix"], "application/msixbundle": ["msixbundle"], "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-keys": ["asc"], "application/pgp-signature": ["sig", "*asc"], "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/sql": ["sql"], "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/watcherinfo+xml": ["wif"], "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/xfdf": ["xfdf"], "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/aac": ["adts", "aac"], "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/avci": ["avci"], "image/avcs": ["avcs"], "image/avif": ["avif"], "image/bmp": ["bmp", "dib"], "image/cgm": ["cgm"], "image/dicom-rle": ["drle"], "image/dpx": ["dpx"], "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", "jpgm"], "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/jt": ["jt"], "model/mesh": ["msh", "mesh", "silo"], "model/mtl": ["mtl"], "model/obj": ["obj"], "model/prc": ["prc"], "model/step+xml": ["stpx"], "model/step+zip": ["stpz"], "model/step-xml+zip": ["stpxz"], "model/stl": ["stl"], "model/u3d": ["u3d"], "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/javascript": ["js", "mjs"], "text/jsx": ["jsx"], "text/less": ["less"], "text/markdown": ["md", "markdown"], "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/wgsl": ["wgsl"], "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"] };
25
- Object.freeze(types2);
26
- var standard_default = types2;
823
+ //#endregion
824
+ //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/standard.js
825
+ const types = {
826
+ "application/andrew-inset": ["ez"],
827
+ "application/appinstaller": ["appinstaller"],
828
+ "application/applixware": ["aw"],
829
+ "application/appx": ["appx"],
830
+ "application/appxbundle": ["appxbundle"],
831
+ "application/atom+xml": ["atom"],
832
+ "application/atomcat+xml": ["atomcat"],
833
+ "application/atomdeleted+xml": ["atomdeleted"],
834
+ "application/atomsvc+xml": ["atomsvc"],
835
+ "application/atsc-dwd+xml": ["dwd"],
836
+ "application/atsc-held+xml": ["held"],
837
+ "application/atsc-rsat+xml": ["rsat"],
838
+ "application/automationml-aml+xml": ["aml"],
839
+ "application/automationml-amlx+zip": ["amlx"],
840
+ "application/bdoc": ["bdoc"],
841
+ "application/calendar+xml": ["xcs"],
842
+ "application/ccxml+xml": ["ccxml"],
843
+ "application/cdfx+xml": ["cdfx"],
844
+ "application/cdmi-capability": ["cdmia"],
845
+ "application/cdmi-container": ["cdmic"],
846
+ "application/cdmi-domain": ["cdmid"],
847
+ "application/cdmi-object": ["cdmio"],
848
+ "application/cdmi-queue": ["cdmiq"],
849
+ "application/cpl+xml": ["cpl"],
850
+ "application/cu-seeme": ["cu"],
851
+ "application/cwl": ["cwl"],
852
+ "application/dash+xml": ["mpd"],
853
+ "application/dash-patch+xml": ["mpp"],
854
+ "application/davmount+xml": ["davmount"],
855
+ "application/docbook+xml": ["dbk"],
856
+ "application/dssc+der": ["dssc"],
857
+ "application/dssc+xml": ["xdssc"],
858
+ "application/ecmascript": ["ecma"],
859
+ "application/emma+xml": ["emma"],
860
+ "application/emotionml+xml": ["emotionml"],
861
+ "application/epub+zip": ["epub"],
862
+ "application/exi": ["exi"],
863
+ "application/express": ["exp"],
864
+ "application/fdf": ["fdf"],
865
+ "application/fdt+xml": ["fdt"],
866
+ "application/font-tdpfr": ["pfr"],
867
+ "application/geo+json": ["geojson"],
868
+ "application/gml+xml": ["gml"],
869
+ "application/gpx+xml": ["gpx"],
870
+ "application/gxf": ["gxf"],
871
+ "application/gzip": ["gz"],
872
+ "application/hjson": ["hjson"],
873
+ "application/hyperstudio": ["stk"],
874
+ "application/inkml+xml": ["ink", "inkml"],
875
+ "application/ipfix": ["ipfix"],
876
+ "application/its+xml": ["its"],
877
+ "application/java-archive": [
878
+ "jar",
879
+ "war",
880
+ "ear"
881
+ ],
882
+ "application/java-serialized-object": ["ser"],
883
+ "application/java-vm": ["class"],
884
+ "application/javascript": ["*js"],
885
+ "application/json": ["json", "map"],
886
+ "application/json5": ["json5"],
887
+ "application/jsonml+json": ["jsonml"],
888
+ "application/ld+json": ["jsonld"],
889
+ "application/lgr+xml": ["lgr"],
890
+ "application/lost+xml": ["lostxml"],
891
+ "application/mac-binhex40": ["hqx"],
892
+ "application/mac-compactpro": ["cpt"],
893
+ "application/mads+xml": ["mads"],
894
+ "application/manifest+json": ["webmanifest"],
895
+ "application/marc": ["mrc"],
896
+ "application/marcxml+xml": ["mrcx"],
897
+ "application/mathematica": [
898
+ "ma",
899
+ "nb",
900
+ "mb"
901
+ ],
902
+ "application/mathml+xml": ["mathml"],
903
+ "application/mbox": ["mbox"],
904
+ "application/media-policy-dataset+xml": ["mpf"],
905
+ "application/mediaservercontrol+xml": ["mscml"],
906
+ "application/metalink+xml": ["metalink"],
907
+ "application/metalink4+xml": ["meta4"],
908
+ "application/mets+xml": ["mets"],
909
+ "application/mmt-aei+xml": ["maei"],
910
+ "application/mmt-usd+xml": ["musd"],
911
+ "application/mods+xml": ["mods"],
912
+ "application/mp21": ["m21", "mp21"],
913
+ "application/mp4": [
914
+ "*mp4",
915
+ "*mpg4",
916
+ "mp4s",
917
+ "m4p"
918
+ ],
919
+ "application/msix": ["msix"],
920
+ "application/msixbundle": ["msixbundle"],
921
+ "application/msword": ["doc", "dot"],
922
+ "application/mxf": ["mxf"],
923
+ "application/n-quads": ["nq"],
924
+ "application/n-triples": ["nt"],
925
+ "application/node": ["cjs"],
926
+ "application/octet-stream": [
927
+ "bin",
928
+ "dms",
929
+ "lrf",
930
+ "mar",
931
+ "so",
932
+ "dist",
933
+ "distz",
934
+ "pkg",
935
+ "bpk",
936
+ "dump",
937
+ "elc",
938
+ "deploy",
939
+ "exe",
940
+ "dll",
941
+ "deb",
942
+ "dmg",
943
+ "iso",
944
+ "img",
945
+ "msi",
946
+ "msp",
947
+ "msm",
948
+ "buffer"
949
+ ],
950
+ "application/oda": ["oda"],
951
+ "application/oebps-package+xml": ["opf"],
952
+ "application/ogg": ["ogx"],
953
+ "application/omdoc+xml": ["omdoc"],
954
+ "application/onenote": [
955
+ "onetoc",
956
+ "onetoc2",
957
+ "onetmp",
958
+ "onepkg"
959
+ ],
960
+ "application/oxps": ["oxps"],
961
+ "application/p2p-overlay+xml": ["relo"],
962
+ "application/patch-ops-error+xml": ["xer"],
963
+ "application/pdf": ["pdf"],
964
+ "application/pgp-encrypted": ["pgp"],
965
+ "application/pgp-keys": ["asc"],
966
+ "application/pgp-signature": ["sig", "*asc"],
967
+ "application/pics-rules": ["prf"],
968
+ "application/pkcs10": ["p10"],
969
+ "application/pkcs7-mime": ["p7m", "p7c"],
970
+ "application/pkcs7-signature": ["p7s"],
971
+ "application/pkcs8": ["p8"],
972
+ "application/pkix-attr-cert": ["ac"],
973
+ "application/pkix-cert": ["cer"],
974
+ "application/pkix-crl": ["crl"],
975
+ "application/pkix-pkipath": ["pkipath"],
976
+ "application/pkixcmp": ["pki"],
977
+ "application/pls+xml": ["pls"],
978
+ "application/postscript": [
979
+ "ai",
980
+ "eps",
981
+ "ps"
982
+ ],
983
+ "application/provenance+xml": ["provx"],
984
+ "application/pskc+xml": ["pskcxml"],
985
+ "application/raml+yaml": ["raml"],
986
+ "application/rdf+xml": ["rdf", "owl"],
987
+ "application/reginfo+xml": ["rif"],
988
+ "application/relax-ng-compact-syntax": ["rnc"],
989
+ "application/resource-lists+xml": ["rl"],
990
+ "application/resource-lists-diff+xml": ["rld"],
991
+ "application/rls-services+xml": ["rs"],
992
+ "application/route-apd+xml": ["rapd"],
993
+ "application/route-s-tsid+xml": ["sls"],
994
+ "application/route-usd+xml": ["rusd"],
995
+ "application/rpki-ghostbusters": ["gbr"],
996
+ "application/rpki-manifest": ["mft"],
997
+ "application/rpki-roa": ["roa"],
998
+ "application/rsd+xml": ["rsd"],
999
+ "application/rss+xml": ["rss"],
1000
+ "application/rtf": ["rtf"],
1001
+ "application/sbml+xml": ["sbml"],
1002
+ "application/scvp-cv-request": ["scq"],
1003
+ "application/scvp-cv-response": ["scs"],
1004
+ "application/scvp-vp-request": ["spq"],
1005
+ "application/scvp-vp-response": ["spp"],
1006
+ "application/sdp": ["sdp"],
1007
+ "application/senml+xml": ["senmlx"],
1008
+ "application/sensml+xml": ["sensmlx"],
1009
+ "application/set-payment-initiation": ["setpay"],
1010
+ "application/set-registration-initiation": ["setreg"],
1011
+ "application/shf+xml": ["shf"],
1012
+ "application/sieve": ["siv", "sieve"],
1013
+ "application/smil+xml": ["smi", "smil"],
1014
+ "application/sparql-query": ["rq"],
1015
+ "application/sparql-results+xml": ["srx"],
1016
+ "application/sql": ["sql"],
1017
+ "application/srgs": ["gram"],
1018
+ "application/srgs+xml": ["grxml"],
1019
+ "application/sru+xml": ["sru"],
1020
+ "application/ssdl+xml": ["ssdl"],
1021
+ "application/ssml+xml": ["ssml"],
1022
+ "application/swid+xml": ["swidtag"],
1023
+ "application/tei+xml": ["tei", "teicorpus"],
1024
+ "application/thraud+xml": ["tfi"],
1025
+ "application/timestamped-data": ["tsd"],
1026
+ "application/toml": ["toml"],
1027
+ "application/trig": ["trig"],
1028
+ "application/ttml+xml": ["ttml"],
1029
+ "application/ubjson": ["ubj"],
1030
+ "application/urc-ressheet+xml": ["rsheet"],
1031
+ "application/urc-targetdesc+xml": ["td"],
1032
+ "application/voicexml+xml": ["vxml"],
1033
+ "application/wasm": ["wasm"],
1034
+ "application/watcherinfo+xml": ["wif"],
1035
+ "application/widget": ["wgt"],
1036
+ "application/winhlp": ["hlp"],
1037
+ "application/wsdl+xml": ["wsdl"],
1038
+ "application/wspolicy+xml": ["wspolicy"],
1039
+ "application/xaml+xml": ["xaml"],
1040
+ "application/xcap-att+xml": ["xav"],
1041
+ "application/xcap-caps+xml": ["xca"],
1042
+ "application/xcap-diff+xml": ["xdf"],
1043
+ "application/xcap-el+xml": ["xel"],
1044
+ "application/xcap-ns+xml": ["xns"],
1045
+ "application/xenc+xml": ["xenc"],
1046
+ "application/xfdf": ["xfdf"],
1047
+ "application/xhtml+xml": ["xhtml", "xht"],
1048
+ "application/xliff+xml": ["xlf"],
1049
+ "application/xml": [
1050
+ "xml",
1051
+ "xsl",
1052
+ "xsd",
1053
+ "rng"
1054
+ ],
1055
+ "application/xml-dtd": ["dtd"],
1056
+ "application/xop+xml": ["xop"],
1057
+ "application/xproc+xml": ["xpl"],
1058
+ "application/xslt+xml": ["*xsl", "xslt"],
1059
+ "application/xspf+xml": ["xspf"],
1060
+ "application/xv+xml": [
1061
+ "mxml",
1062
+ "xhvml",
1063
+ "xvml",
1064
+ "xvm"
1065
+ ],
1066
+ "application/yang": ["yang"],
1067
+ "application/yin+xml": ["yin"],
1068
+ "application/zip": ["zip"],
1069
+ "audio/3gpp": ["*3gpp"],
1070
+ "audio/aac": ["adts", "aac"],
1071
+ "audio/adpcm": ["adp"],
1072
+ "audio/amr": ["amr"],
1073
+ "audio/basic": ["au", "snd"],
1074
+ "audio/midi": [
1075
+ "mid",
1076
+ "midi",
1077
+ "kar",
1078
+ "rmi"
1079
+ ],
1080
+ "audio/mobile-xmf": ["mxmf"],
1081
+ "audio/mp3": ["*mp3"],
1082
+ "audio/mp4": ["m4a", "mp4a"],
1083
+ "audio/mpeg": [
1084
+ "mpga",
1085
+ "mp2",
1086
+ "mp2a",
1087
+ "mp3",
1088
+ "m2a",
1089
+ "m3a"
1090
+ ],
1091
+ "audio/ogg": [
1092
+ "oga",
1093
+ "ogg",
1094
+ "spx",
1095
+ "opus"
1096
+ ],
1097
+ "audio/s3m": ["s3m"],
1098
+ "audio/silk": ["sil"],
1099
+ "audio/wav": ["wav"],
1100
+ "audio/wave": ["*wav"],
1101
+ "audio/webm": ["weba"],
1102
+ "audio/xm": ["xm"],
1103
+ "font/collection": ["ttc"],
1104
+ "font/otf": ["otf"],
1105
+ "font/ttf": ["ttf"],
1106
+ "font/woff": ["woff"],
1107
+ "font/woff2": ["woff2"],
1108
+ "image/aces": ["exr"],
1109
+ "image/apng": ["apng"],
1110
+ "image/avci": ["avci"],
1111
+ "image/avcs": ["avcs"],
1112
+ "image/avif": ["avif"],
1113
+ "image/bmp": ["bmp", "dib"],
1114
+ "image/cgm": ["cgm"],
1115
+ "image/dicom-rle": ["drle"],
1116
+ "image/dpx": ["dpx"],
1117
+ "image/emf": ["emf"],
1118
+ "image/fits": ["fits"],
1119
+ "image/g3fax": ["g3"],
1120
+ "image/gif": ["gif"],
1121
+ "image/heic": ["heic"],
1122
+ "image/heic-sequence": ["heics"],
1123
+ "image/heif": ["heif"],
1124
+ "image/heif-sequence": ["heifs"],
1125
+ "image/hej2k": ["hej2"],
1126
+ "image/hsj2": ["hsj2"],
1127
+ "image/ief": ["ief"],
1128
+ "image/jls": ["jls"],
1129
+ "image/jp2": ["jp2", "jpg2"],
1130
+ "image/jpeg": [
1131
+ "jpeg",
1132
+ "jpg",
1133
+ "jpe"
1134
+ ],
1135
+ "image/jph": ["jph"],
1136
+ "image/jphc": ["jhc"],
1137
+ "image/jpm": ["jpm", "jpgm"],
1138
+ "image/jpx": ["jpx", "jpf"],
1139
+ "image/jxr": ["jxr"],
1140
+ "image/jxra": ["jxra"],
1141
+ "image/jxrs": ["jxrs"],
1142
+ "image/jxs": ["jxs"],
1143
+ "image/jxsc": ["jxsc"],
1144
+ "image/jxsi": ["jxsi"],
1145
+ "image/jxss": ["jxss"],
1146
+ "image/ktx": ["ktx"],
1147
+ "image/ktx2": ["ktx2"],
1148
+ "image/png": ["png"],
1149
+ "image/sgi": ["sgi"],
1150
+ "image/svg+xml": ["svg", "svgz"],
1151
+ "image/t38": ["t38"],
1152
+ "image/tiff": ["tif", "tiff"],
1153
+ "image/tiff-fx": ["tfx"],
1154
+ "image/webp": ["webp"],
1155
+ "image/wmf": ["wmf"],
1156
+ "message/disposition-notification": ["disposition-notification"],
1157
+ "message/global": ["u8msg"],
1158
+ "message/global-delivery-status": ["u8dsn"],
1159
+ "message/global-disposition-notification": ["u8mdn"],
1160
+ "message/global-headers": ["u8hdr"],
1161
+ "message/rfc822": ["eml", "mime"],
1162
+ "model/3mf": ["3mf"],
1163
+ "model/gltf+json": ["gltf"],
1164
+ "model/gltf-binary": ["glb"],
1165
+ "model/iges": ["igs", "iges"],
1166
+ "model/jt": ["jt"],
1167
+ "model/mesh": [
1168
+ "msh",
1169
+ "mesh",
1170
+ "silo"
1171
+ ],
1172
+ "model/mtl": ["mtl"],
1173
+ "model/obj": ["obj"],
1174
+ "model/prc": ["prc"],
1175
+ "model/step+xml": ["stpx"],
1176
+ "model/step+zip": ["stpz"],
1177
+ "model/step-xml+zip": ["stpxz"],
1178
+ "model/stl": ["stl"],
1179
+ "model/u3d": ["u3d"],
1180
+ "model/vrml": ["wrl", "vrml"],
1181
+ "model/x3d+binary": ["*x3db", "x3dbz"],
1182
+ "model/x3d+fastinfoset": ["x3db"],
1183
+ "model/x3d+vrml": ["*x3dv", "x3dvz"],
1184
+ "model/x3d+xml": ["x3d", "x3dz"],
1185
+ "model/x3d-vrml": ["x3dv"],
1186
+ "text/cache-manifest": ["appcache", "manifest"],
1187
+ "text/calendar": ["ics", "ifb"],
1188
+ "text/coffeescript": ["coffee", "litcoffee"],
1189
+ "text/css": ["css"],
1190
+ "text/csv": ["csv"],
1191
+ "text/html": [
1192
+ "html",
1193
+ "htm",
1194
+ "shtml"
1195
+ ],
1196
+ "text/jade": ["jade"],
1197
+ "text/javascript": ["js", "mjs"],
1198
+ "text/jsx": ["jsx"],
1199
+ "text/less": ["less"],
1200
+ "text/markdown": ["md", "markdown"],
1201
+ "text/mathml": ["mml"],
1202
+ "text/mdx": ["mdx"],
1203
+ "text/n3": ["n3"],
1204
+ "text/plain": [
1205
+ "txt",
1206
+ "text",
1207
+ "conf",
1208
+ "def",
1209
+ "list",
1210
+ "log",
1211
+ "in",
1212
+ "ini"
1213
+ ],
1214
+ "text/richtext": ["rtx"],
1215
+ "text/rtf": ["*rtf"],
1216
+ "text/sgml": ["sgml", "sgm"],
1217
+ "text/shex": ["shex"],
1218
+ "text/slim": ["slim", "slm"],
1219
+ "text/spdx": ["spdx"],
1220
+ "text/stylus": ["stylus", "styl"],
1221
+ "text/tab-separated-values": ["tsv"],
1222
+ "text/troff": [
1223
+ "t",
1224
+ "tr",
1225
+ "roff",
1226
+ "man",
1227
+ "me",
1228
+ "ms"
1229
+ ],
1230
+ "text/turtle": ["ttl"],
1231
+ "text/uri-list": [
1232
+ "uri",
1233
+ "uris",
1234
+ "urls"
1235
+ ],
1236
+ "text/vcard": ["vcard"],
1237
+ "text/vtt": ["vtt"],
1238
+ "text/wgsl": ["wgsl"],
1239
+ "text/xml": ["*xml"],
1240
+ "text/yaml": ["yaml", "yml"],
1241
+ "video/3gpp": ["3gp", "3gpp"],
1242
+ "video/3gpp2": ["3g2"],
1243
+ "video/h261": ["h261"],
1244
+ "video/h263": ["h263"],
1245
+ "video/h264": ["h264"],
1246
+ "video/iso.segment": ["m4s"],
1247
+ "video/jpeg": ["jpgv"],
1248
+ "video/jpm": ["*jpm", "*jpgm"],
1249
+ "video/mj2": ["mj2", "mjp2"],
1250
+ "video/mp2t": ["ts"],
1251
+ "video/mp4": [
1252
+ "mp4",
1253
+ "mp4v",
1254
+ "mpg4"
1255
+ ],
1256
+ "video/mpeg": [
1257
+ "mpeg",
1258
+ "mpg",
1259
+ "mpe",
1260
+ "m1v",
1261
+ "m2v"
1262
+ ],
1263
+ "video/ogg": ["ogv"],
1264
+ "video/quicktime": ["qt", "mov"],
1265
+ "video/webm": ["webm"]
1266
+ };
1267
+ Object.freeze(types);
1268
+ var standard_default = types;
27
1269
 
28
- // ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/Mime.js
29
- var __classPrivateFieldGet = function(receiver, state, kind, f) {
30
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
31
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
32
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
1270
+ //#endregion
1271
+ //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/Mime.js
1272
+ var __classPrivateFieldGet = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind, f) {
1273
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
1274
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1275
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
33
1276
  };
34
- var _Mime_extensionToType;
35
- var _Mime_typeToExtension;
36
- var _Mime_typeToExtensions;
1277
+ var _Mime_extensionToType, _Mime_typeToExtension, _Mime_typeToExtensions;
37
1278
  var Mime = class {
38
- constructor(...args) {
39
- _Mime_extensionToType.set(this, /* @__PURE__ */ new Map());
40
- _Mime_typeToExtension.set(this, /* @__PURE__ */ new Map());
41
- _Mime_typeToExtensions.set(this, /* @__PURE__ */ new Map());
42
- for (const arg of args) {
43
- this.define(arg);
44
- }
45
- }
46
- define(typeMap, force = false) {
47
- for (let [type, extensions] of Object.entries(typeMap)) {
48
- type = type.toLowerCase();
49
- extensions = extensions.map((ext) => ext.toLowerCase());
50
- if (!__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").has(type)) {
51
- __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").set(type, /* @__PURE__ */ new Set());
52
- }
53
- const allExtensions = __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type);
54
- let first = true;
55
- for (let extension of extensions) {
56
- const starred = extension.startsWith("*");
57
- extension = starred ? extension.slice(1) : extension;
58
- allExtensions?.add(extension);
59
- if (first) {
60
- __classPrivateFieldGet(this, _Mime_typeToExtension, "f").set(type, extension);
61
- }
62
- first = false;
63
- if (starred)
64
- continue;
65
- const currentType = __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(extension);
66
- if (currentType && currentType != type && !force) {
67
- throw new Error(`"${type} -> ${extension}" conflicts with "${currentType} -> ${extension}". Pass \`force=true\` to override this definition.`);
68
- }
69
- __classPrivateFieldGet(this, _Mime_extensionToType, "f").set(extension, type);
70
- }
71
- }
72
- return this;
73
- }
74
- getType(path2) {
75
- if (typeof path2 !== "string")
76
- return null;
77
- const last = path2.replace(/^.*[/\\]/, "").toLowerCase();
78
- const ext = last.replace(/^.*\./, "").toLowerCase();
79
- const hasPath = last.length < path2.length;
80
- const hasDot = ext.length < last.length - 1;
81
- if (!hasDot && hasPath)
82
- return null;
83
- return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext) ?? null;
84
- }
85
- getExtension(type) {
86
- if (typeof type !== "string")
87
- return null;
88
- type = type?.split?.(";")[0];
89
- return (type && __classPrivateFieldGet(this, _Mime_typeToExtension, "f").get(type.trim().toLowerCase())) ?? null;
90
- }
91
- getAllExtensions(type) {
92
- if (typeof type !== "string")
93
- return null;
94
- return __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type.toLowerCase()) ?? null;
95
- }
96
- _freeze() {
97
- this.define = () => {
98
- throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
99
- };
100
- Object.freeze(this);
101
- for (const extensions of __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").values()) {
102
- Object.freeze(extensions);
103
- }
104
- return this;
105
- }
106
- _getTestState() {
107
- return {
108
- types: __classPrivateFieldGet(this, _Mime_extensionToType, "f"),
109
- extensions: __classPrivateFieldGet(this, _Mime_typeToExtension, "f")
110
- };
111
- }
1279
+ constructor(...args) {
1280
+ _Mime_extensionToType.set(this, new Map());
1281
+ _Mime_typeToExtension.set(this, new Map());
1282
+ _Mime_typeToExtensions.set(this, new Map());
1283
+ for (const arg of args) this.define(arg);
1284
+ }
1285
+ define(typeMap, force = false) {
1286
+ for (let [type, extensions] of Object.entries(typeMap)) {
1287
+ type = type.toLowerCase();
1288
+ extensions = extensions.map((ext) => ext.toLowerCase());
1289
+ if (!__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").has(type)) __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").set(type, new Set());
1290
+ const allExtensions = __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type);
1291
+ let first = true;
1292
+ for (let extension of extensions) {
1293
+ const starred = extension.startsWith("*");
1294
+ extension = starred ? extension.slice(1) : extension;
1295
+ allExtensions?.add(extension);
1296
+ if (first) __classPrivateFieldGet(this, _Mime_typeToExtension, "f").set(type, extension);
1297
+ first = false;
1298
+ if (starred) continue;
1299
+ const currentType = __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(extension);
1300
+ if (currentType && currentType != type && !force) throw new Error(`"${type} -> ${extension}" conflicts with "${currentType} -> ${extension}". Pass \`force=true\` to override this definition.`);
1301
+ __classPrivateFieldGet(this, _Mime_extensionToType, "f").set(extension, type);
1302
+ }
1303
+ }
1304
+ return this;
1305
+ }
1306
+ getType(path$1) {
1307
+ if (typeof path$1 !== "string") return null;
1308
+ const last = path$1.replace(/^.*[/\\]/, "").toLowerCase();
1309
+ const ext = last.replace(/^.*\./, "").toLowerCase();
1310
+ const hasPath = last.length < path$1.length;
1311
+ const hasDot = ext.length < last.length - 1;
1312
+ if (!hasDot && hasPath) return null;
1313
+ return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext) ?? null;
1314
+ }
1315
+ getExtension(type) {
1316
+ if (typeof type !== "string") return null;
1317
+ type = type?.split?.(";")[0];
1318
+ return (type && __classPrivateFieldGet(this, _Mime_typeToExtension, "f").get(type.trim().toLowerCase())) ?? null;
1319
+ }
1320
+ getAllExtensions(type) {
1321
+ if (typeof type !== "string") return null;
1322
+ return __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type.toLowerCase()) ?? null;
1323
+ }
1324
+ _freeze() {
1325
+ this.define = () => {
1326
+ throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
1327
+ };
1328
+ Object.freeze(this);
1329
+ for (const extensions of __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").values()) Object.freeze(extensions);
1330
+ return this;
1331
+ }
1332
+ _getTestState() {
1333
+ return {
1334
+ types: __classPrivateFieldGet(this, _Mime_extensionToType, "f"),
1335
+ extensions: __classPrivateFieldGet(this, _Mime_typeToExtension, "f")
1336
+ };
1337
+ }
112
1338
  };
113
- _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
1339
+ _Mime_extensionToType = new WeakMap(), _Mime_typeToExtension = new WeakMap(), _Mime_typeToExtensions = new WeakMap();
114
1340
  var Mime_default = Mime;
115
1341
 
116
- // ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/index.js
1342
+ //#endregion
1343
+ //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/index.js
117
1344
  var src_default = new Mime_default(standard_default, other_default)._freeze();
118
1345
 
119
- // src/utils/streamToString.ts
120
- var streamToString = (stream) => {
121
- return new Promise((resolve, reject) => {
122
- const chunks = [];
123
- stream.on("data", (chunk) => chunks.push(chunk));
124
- stream.on("error", reject);
125
- stream.on("end", () => resolve(Buffer.concat(chunks).toString("utf8")));
126
- });
1346
+ //#endregion
1347
+ //#region src/utils/streamToString.ts
1348
+ const streamToString = (stream) => {
1349
+ return new Promise((resolve, reject) => {
1350
+ const chunks = [];
1351
+ stream.on("data", (chunk) => chunks.push(chunk));
1352
+ stream.on("error", reject);
1353
+ stream.on("end", () => resolve(Buffer.concat(chunks).toString("utf8")));
1354
+ });
127
1355
  };
128
1356
 
129
- // src/s3Database.ts
1357
+ //#endregion
1358
+ //#region src/s3Database.ts
1359
+ /**
1360
+ * Loads JSON data from S3.
1361
+ * Returns null if NoSuchKey error occurs.
1362
+ */
130
1363
  async function loadJsonFromS3(client, bucket, key) {
131
- try {
132
- const { Body } = await client.send(
133
- new GetObjectCommand({ Bucket: bucket, Key: key })
134
- );
135
- if (!Body) return null;
136
- const bodyContents = await streamToString(Body);
137
- return JSON.parse(bodyContents);
138
- } catch (e) {
139
- if (e instanceof NoSuchKey) return null;
140
- throw e;
141
- }
1364
+ try {
1365
+ const { Body } = await client.send(new GetObjectCommand({
1366
+ Bucket: bucket,
1367
+ Key: key
1368
+ }));
1369
+ if (!Body) return null;
1370
+ const bodyContents = await streamToString(Body);
1371
+ return JSON.parse(bodyContents);
1372
+ } catch (e) {
1373
+ if (e instanceof NoSuchKey) return null;
1374
+ throw e;
1375
+ }
142
1376
  }
1377
+ /**
1378
+ * Converts data to JSON string and uploads to S3.
1379
+ */
143
1380
  async function uploadJsonToS3(client, bucket, key, data) {
144
- const Body = JSON.stringify(data);
145
- const ContentType = src_default.getType(key) ?? "application/json";
146
- const upload = new Upload({
147
- client,
148
- params: {
149
- Bucket: bucket,
150
- Key: key,
151
- Body,
152
- ContentType,
153
- CacheControl: "max-age=31536000"
154
- }
155
- });
156
- await upload.done();
1381
+ const Body = JSON.stringify(data);
1382
+ const ContentType = src_default.getType(key) ?? "application/json";
1383
+ const upload = new Upload({
1384
+ client,
1385
+ params: {
1386
+ Bucket: bucket,
1387
+ Key: key,
1388
+ Body,
1389
+ ContentType,
1390
+ CacheControl: "max-age=31536000"
1391
+ }
1392
+ });
1393
+ await upload.done();
157
1394
  }
158
1395
  async function listObjectsInS3(client, bucketName, prefix) {
159
- let continuationToken;
160
- const keys = [];
161
- do {
162
- const response = await client.send(
163
- new ListObjectsV2Command({
164
- Bucket: bucketName,
165
- Prefix: prefix,
166
- ContinuationToken: continuationToken
167
- })
168
- );
169
- const found = (response.Contents ?? []).map((item) => item.Key).filter((key) => !!key);
170
- keys.push(...found);
171
- continuationToken = response.NextContinuationToken;
172
- } while (continuationToken);
173
- return keys;
1396
+ let continuationToken;
1397
+ const keys = [];
1398
+ do {
1399
+ const response = await client.send(new ListObjectsV2Command({
1400
+ Bucket: bucketName,
1401
+ Prefix: prefix,
1402
+ ContinuationToken: continuationToken
1403
+ }));
1404
+ const found = (response.Contents ?? []).map((item) => item.Key).filter((key) => !!key);
1405
+ keys.push(...found);
1406
+ continuationToken = response.NextContinuationToken;
1407
+ } while (continuationToken);
1408
+ return keys;
174
1409
  }
175
1410
  async function deleteObjectInS3(client, bucketName, key) {
176
- await client.send(
177
- new DeleteObjectCommand({
178
- Bucket: bucketName,
179
- Key: key
180
- })
181
- );
1411
+ await client.send(new DeleteObjectCommand({
1412
+ Bucket: bucketName,
1413
+ Key: key
1414
+ }));
182
1415
  }
1416
+ /**
1417
+ * Invalidates CloudFront cache for the given paths.
1418
+ */
183
1419
  async function invalidateCloudFront(client, distributionId, paths) {
184
- if (paths.length === 0) {
185
- return;
186
- }
187
- const timestamp = (/* @__PURE__ */ new Date()).getTime();
188
- await client.send(
189
- new CreateInvalidationCommand({
190
- DistributionId: distributionId,
191
- InvalidationBatch: {
192
- CallerReference: `invalidation-${timestamp}`,
193
- Paths: {
194
- Quantity: paths.length,
195
- Items: paths
196
- }
197
- }
198
- })
199
- );
1420
+ if (paths.length === 0) return;
1421
+ const timestamp = new Date().getTime();
1422
+ await client.send(new CreateInvalidationCommand({
1423
+ DistributionId: distributionId,
1424
+ InvalidationBatch: {
1425
+ CallerReference: `invalidation-${timestamp}`,
1426
+ Paths: {
1427
+ Quantity: paths.length,
1428
+ Items: paths
1429
+ }
1430
+ }
1431
+ }));
200
1432
  }
201
- var s3Database = (config, hooks) => {
202
- const { bucketName, cloudfrontDistributionId, ...s3Config } = config;
203
- if (!cloudfrontDistributionId) {
204
- throw new Error("cloudfrontDistributionId is missing in s3Database");
205
- }
206
- const client = new S3Client(s3Config);
207
- const cloudfrontClient = new CloudFrontClient({
208
- credentials: s3Config.credentials,
209
- region: s3Config.region
210
- });
211
- const listObjects = (prefix) => listObjectsInS3(client, bucketName, prefix);
212
- function loadObject(key) {
213
- return loadJsonFromS3(client, bucketName, key);
214
- }
215
- function uploadObject(key, data) {
216
- return uploadJsonToS3(client, bucketName, key, data);
217
- }
218
- function deleteObject(key) {
219
- return deleteObjectInS3(client, bucketName, key);
220
- }
221
- async function invalidatePaths(pathsToInvalidate) {
222
- if (cloudfrontClient && cloudfrontDistributionId && pathsToInvalidate.length > 0) {
223
- await invalidateCloudFront(
224
- cloudfrontClient,
225
- cloudfrontDistributionId,
226
- pathsToInvalidate
227
- );
228
- }
229
- }
230
- return createBlobDatabasePlugin({
231
- name: "s3Database",
232
- listObjects,
233
- loadObject,
234
- uploadObject,
235
- deleteObject,
236
- invalidatePaths,
237
- hooks
238
- });
1433
+ const s3Database = (config, hooks) => {
1434
+ const { bucketName, cloudfrontDistributionId, apiBasePath = "/api/check-update",...s3Config } = config;
1435
+ if (!cloudfrontDistributionId) throw new Error("cloudfrontDistributionId is missing in s3Database");
1436
+ return createBlobDatabasePlugin({
1437
+ name: "s3Database",
1438
+ apiBasePath,
1439
+ getContext: () => ({
1440
+ client: new S3Client(s3Config),
1441
+ cloudfrontClient: new CloudFrontClient({
1442
+ credentials: s3Config.credentials,
1443
+ region: s3Config.region
1444
+ })
1445
+ }),
1446
+ listObjects: (context, prefix) => listObjectsInS3(context.client, bucketName, prefix),
1447
+ loadObject: (context, key) => loadJsonFromS3(context.client, bucketName, key),
1448
+ uploadObject: (context, key, data) => uploadJsonToS3(context.client, bucketName, key, data),
1449
+ deleteObject: (context, key) => deleteObjectInS3(context.client, bucketName, key),
1450
+ invalidatePaths: (context, pathsToInvalidate) => {
1451
+ if (context.cloudfrontClient && cloudfrontDistributionId && pathsToInvalidate.length > 0) return invalidateCloudFront(context.cloudfrontClient, cloudfrontDistributionId, pathsToInvalidate);
1452
+ return Promise.resolve();
1453
+ },
1454
+ hooks
1455
+ });
239
1456
  };
240
1457
 
241
- // src/s3Storage.ts
242
- import path from "path";
243
- import {
244
- DeleteObjectsCommand,
245
- ListObjectsV2Command as ListObjectsV2Command2,
246
- S3Client as S3Client2
247
- } from "@aws-sdk/client-s3";
248
- import { Upload as Upload2 } from "@aws-sdk/lib-storage";
249
- import fs from "fs/promises";
250
- var s3Storage = (config, hooks) => (_) => {
251
- const { bucketName, ...s3Config } = config;
252
- const client = new S3Client2(s3Config);
253
- return {
254
- name: "s3Storage",
255
- async deleteBundle(bundleId) {
256
- const Key = [bundleId].join("/");
257
- const listCommand = new ListObjectsV2Command2({
258
- Bucket: bucketName,
259
- Prefix: bundleId
260
- });
261
- const listResponse = await client.send(listCommand);
262
- if (listResponse.Contents && listResponse.Contents.length > 0) {
263
- const objectsToDelete = listResponse.Contents.map((obj) => ({
264
- Key: obj.Key
265
- }));
266
- const deleteParams = {
267
- Bucket: bucketName,
268
- Delete: {
269
- Objects: objectsToDelete,
270
- Quiet: true
271
- }
272
- };
273
- const deleteCommand = new DeleteObjectsCommand(deleteParams);
274
- await client.send(deleteCommand);
275
- return Key;
276
- }
277
- throw new Error("Bundle Not Found");
278
- },
279
- async uploadBundle(bundleId, bundlePath) {
280
- const Body = await fs.readFile(bundlePath);
281
- const ContentType = src_default.getType(bundlePath) ?? void 0;
282
- const filename = path.basename(bundlePath);
283
- const Key = [bundleId, filename].join("/");
284
- const upload = new Upload2({
285
- client,
286
- params: {
287
- ContentType,
288
- Bucket: bucketName,
289
- Key,
290
- Body,
291
- CacheControl: "max-age=31536000"
292
- }
293
- });
294
- const response = await upload.done();
295
- if (!response.Bucket || !response.Key) {
296
- throw new Error("Upload Failed");
297
- }
298
- hooks?.onStorageUploaded?.();
299
- return {
300
- bucketName: response.Bucket,
301
- key: response.Key
302
- };
303
- }
304
- };
305
- };
306
- export {
307
- s3Database,
308
- s3Storage
1458
+ //#endregion
1459
+ //#region src/s3Storage.ts
1460
+ const s3Storage = (config, hooks) => (_) => {
1461
+ const { bucketName,...s3Config } = config;
1462
+ const client = new S3Client(s3Config);
1463
+ return {
1464
+ name: "s3Storage",
1465
+ async deleteBundle(bundleId) {
1466
+ const Key = [bundleId].join("/");
1467
+ const listCommand = new ListObjectsV2Command({
1468
+ Bucket: bucketName,
1469
+ Prefix: bundleId
1470
+ });
1471
+ const listResponse = await client.send(listCommand);
1472
+ if (listResponse.Contents && listResponse.Contents.length > 0) {
1473
+ const objectsToDelete = listResponse.Contents.map((obj) => ({ Key: obj.Key }));
1474
+ const deleteParams = {
1475
+ Bucket: bucketName,
1476
+ Delete: {
1477
+ Objects: objectsToDelete,
1478
+ Quiet: true
1479
+ }
1480
+ };
1481
+ const deleteCommand = new DeleteObjectsCommand(deleteParams);
1482
+ await client.send(deleteCommand);
1483
+ return Key;
1484
+ }
1485
+ throw new Error("Bundle Not Found");
1486
+ },
1487
+ async uploadBundle(bundleId, bundlePath) {
1488
+ const Body = await fs.readFile(bundlePath);
1489
+ const ContentType = src_default.getType(bundlePath) ?? void 0;
1490
+ const filename = path.basename(bundlePath);
1491
+ const Key = [bundleId, filename].join("/");
1492
+ const upload = new Upload({
1493
+ client,
1494
+ params: {
1495
+ ContentType,
1496
+ Bucket: bucketName,
1497
+ Key,
1498
+ Body,
1499
+ CacheControl: "max-age=31536000"
1500
+ }
1501
+ });
1502
+ const response = await upload.done();
1503
+ if (!response.Bucket || !response.Key) throw new Error("Upload Failed");
1504
+ hooks?.onStorageUploaded?.();
1505
+ return { storageUri: `s3://${bucketName}/${Key}` };
1506
+ }
1507
+ };
309
1508
  };
1509
+
1510
+ //#endregion
1511
+ export { s3Database, s3Storage };