@hot-updater/supabase 0.17.0 → 0.18.1

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