@hot-updater/supabase 0.12.7 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,3445 +1,240 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__supabase_supabase_js_06b6e9fe__ from "@supabase/supabase-js";
2
- import * as __WEBPACK_EXTERNAL_MODULE_path__ from "path";
3
- import * as __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__ from "fs/promises";
4
- const supabaseDatabase = (config, hooks)=>(_)=>{
5
- const supabase = (0, __WEBPACK_EXTERNAL_MODULE__supabase_supabase_js_06b6e9fe__.createClient)(config.supabaseUrl, config.supabaseAnonKey);
6
- let bundles = [];
7
- const changedIds = new Set();
8
- function markChanged(id) {
9
- changedIds.add(id);
1
+ import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
+
3
+ // src/supabaseDatabase.ts
4
+ import { createDatabasePlugin } from "@hot-updater/plugin-core";
5
+ 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;
10
18
  }
11
19
  return {
12
- name: "supabaseDatabase",
13
- async commitBundle () {
14
- if (0 === changedIds.size) return;
15
- const changedBundles = bundles.filter((b)=>changedIds.has(b.id));
16
- if (0 === changedBundles.length) return;
17
- await supabase.from("bundles").upsert(changedBundles.map((bundle)=>({
18
- id: bundle.id,
19
- enabled: bundle.enabled,
20
- file_url: bundle.fileUrl,
21
- should_force_update: bundle.shouldForceUpdate,
22
- file_hash: bundle.fileHash,
23
- git_commit_hash: bundle.gitCommitHash,
24
- message: bundle.message,
25
- platform: bundle.platform,
26
- target_app_version: bundle.targetAppVersion
27
- })), {
28
- onConflict: "id"
29
- });
30
- changedIds.clear();
31
- hooks?.onDatabaseUpdated?.();
32
- },
33
- async updateBundle (targetBundleId, newBundle) {
34
- bundles = await this.getBundles();
35
- const targetIndex = bundles.findIndex((u)=>u.id === targetBundleId);
36
- if (-1 === targetIndex) throw new Error("target bundle version not found");
37
- Object.assign(bundles[targetIndex], newBundle);
38
- markChanged(targetBundleId);
39
- },
40
- async appendBundle (inputBundle) {
41
- bundles = await this.getBundles();
42
- bundles.unshift(inputBundle);
43
- markChanged(inputBundle.id);
44
- },
45
- async getBundleById (bundleId) {
46
- const { data } = await supabase.from("bundles").select("*").eq("id", bundleId).single();
47
- if (!data) return null;
48
- return {
49
- enabled: data.enabled,
50
- fileUrl: data.file_url,
51
- shouldForceUpdate: data.should_force_update,
52
- fileHash: data.file_hash,
53
- gitCommitHash: data.git_commit_hash,
54
- id: data.id,
55
- message: data.message,
56
- platform: data.platform,
57
- targetAppVersion: data.target_app_version
58
- };
59
- },
60
- async getBundles (refresh = false) {
61
- if (bundles.length > 0 && !refresh) return bundles;
62
- const { data } = await supabase.from("bundles").select("*").order("id", {
63
- ascending: false
64
- });
65
- if (!data) return [];
66
- return data.map((bundle)=>({
67
- enabled: bundle.enabled,
68
- fileUrl: bundle.file_url,
69
- shouldForceUpdate: bundle.should_force_update,
70
- fileHash: bundle.file_hash,
71
- gitCommitHash: bundle.git_commit_hash,
72
- id: bundle.id,
73
- message: bundle.message,
74
- platform: bundle.platform,
75
- targetAppVersion: bundle.target_app_version
76
- }));
77
- }
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
78
29
  };
79
- };
80
- const types = {
81
- "application/prs.cww": [
82
- "cww"
83
- ],
84
- "application/prs.xsf+xml": [
85
- "xsf"
86
- ],
87
- "application/vnd.1000minds.decision-model+xml": [
88
- "1km"
89
- ],
90
- "application/vnd.3gpp.pic-bw-large": [
91
- "plb"
92
- ],
93
- "application/vnd.3gpp.pic-bw-small": [
94
- "psb"
95
- ],
96
- "application/vnd.3gpp.pic-bw-var": [
97
- "pvb"
98
- ],
99
- "application/vnd.3gpp2.tcap": [
100
- "tcap"
101
- ],
102
- "application/vnd.3m.post-it-notes": [
103
- "pwn"
104
- ],
105
- "application/vnd.accpac.simply.aso": [
106
- "aso"
107
- ],
108
- "application/vnd.accpac.simply.imp": [
109
- "imp"
110
- ],
111
- "application/vnd.acucobol": [
112
- "acu"
113
- ],
114
- "application/vnd.acucorp": [
115
- "atc",
116
- "acutc"
117
- ],
118
- "application/vnd.adobe.air-application-installer-package+zip": [
119
- "air"
120
- ],
121
- "application/vnd.adobe.formscentral.fcdt": [
122
- "fcdt"
123
- ],
124
- "application/vnd.adobe.fxp": [
125
- "fxp",
126
- "fxpl"
127
- ],
128
- "application/vnd.adobe.xdp+xml": [
129
- "xdp"
130
- ],
131
- "application/vnd.adobe.xfdf": [
132
- "*xfdf"
133
- ],
134
- "application/vnd.age": [
135
- "age"
136
- ],
137
- "application/vnd.ahead.space": [
138
- "ahead"
139
- ],
140
- "application/vnd.airzip.filesecure.azf": [
141
- "azf"
142
- ],
143
- "application/vnd.airzip.filesecure.azs": [
144
- "azs"
145
- ],
146
- "application/vnd.amazon.ebook": [
147
- "azw"
148
- ],
149
- "application/vnd.americandynamics.acc": [
150
- "acc"
151
- ],
152
- "application/vnd.amiga.ami": [
153
- "ami"
154
- ],
155
- "application/vnd.android.package-archive": [
156
- "apk"
157
- ],
158
- "application/vnd.anser-web-certificate-issue-initiation": [
159
- "cii"
160
- ],
161
- "application/vnd.anser-web-funds-transfer-initiation": [
162
- "fti"
163
- ],
164
- "application/vnd.antix.game-component": [
165
- "atx"
166
- ],
167
- "application/vnd.apple.installer+xml": [
168
- "mpkg"
169
- ],
170
- "application/vnd.apple.keynote": [
171
- "key"
172
- ],
173
- "application/vnd.apple.mpegurl": [
174
- "m3u8"
175
- ],
176
- "application/vnd.apple.numbers": [
177
- "numbers"
178
- ],
179
- "application/vnd.apple.pages": [
180
- "pages"
181
- ],
182
- "application/vnd.apple.pkpass": [
183
- "pkpass"
184
- ],
185
- "application/vnd.aristanetworks.swi": [
186
- "swi"
187
- ],
188
- "application/vnd.astraea-software.iota": [
189
- "iota"
190
- ],
191
- "application/vnd.audiograph": [
192
- "aep"
193
- ],
194
- "application/vnd.balsamiq.bmml+xml": [
195
- "bmml"
196
- ],
197
- "application/vnd.blueice.multipass": [
198
- "mpm"
199
- ],
200
- "application/vnd.bmi": [
201
- "bmi"
202
- ],
203
- "application/vnd.businessobjects": [
204
- "rep"
205
- ],
206
- "application/vnd.chemdraw+xml": [
207
- "cdxml"
208
- ],
209
- "application/vnd.chipnuts.karaoke-mmd": [
210
- "mmd"
211
- ],
212
- "application/vnd.cinderella": [
213
- "cdy"
214
- ],
215
- "application/vnd.citationstyles.style+xml": [
216
- "csl"
217
- ],
218
- "application/vnd.claymore": [
219
- "cla"
220
- ],
221
- "application/vnd.cloanto.rp9": [
222
- "rp9"
223
- ],
224
- "application/vnd.clonk.c4group": [
225
- "c4g",
226
- "c4d",
227
- "c4f",
228
- "c4p",
229
- "c4u"
230
- ],
231
- "application/vnd.cluetrust.cartomobile-config": [
232
- "c11amc"
233
- ],
234
- "application/vnd.cluetrust.cartomobile-config-pkg": [
235
- "c11amz"
236
- ],
237
- "application/vnd.commonspace": [
238
- "csp"
239
- ],
240
- "application/vnd.contact.cmsg": [
241
- "cdbcmsg"
242
- ],
243
- "application/vnd.cosmocaller": [
244
- "cmc"
245
- ],
246
- "application/vnd.crick.clicker": [
247
- "clkx"
248
- ],
249
- "application/vnd.crick.clicker.keyboard": [
250
- "clkk"
251
- ],
252
- "application/vnd.crick.clicker.palette": [
253
- "clkp"
254
- ],
255
- "application/vnd.crick.clicker.template": [
256
- "clkt"
257
- ],
258
- "application/vnd.crick.clicker.wordbank": [
259
- "clkw"
260
- ],
261
- "application/vnd.criticaltools.wbs+xml": [
262
- "wbs"
263
- ],
264
- "application/vnd.ctc-posml": [
265
- "pml"
266
- ],
267
- "application/vnd.cups-ppd": [
268
- "ppd"
269
- ],
270
- "application/vnd.curl.car": [
271
- "car"
272
- ],
273
- "application/vnd.curl.pcurl": [
274
- "pcurl"
275
- ],
276
- "application/vnd.dart": [
277
- "dart"
278
- ],
279
- "application/vnd.data-vision.rdz": [
280
- "rdz"
281
- ],
282
- "application/vnd.dbf": [
283
- "dbf"
284
- ],
285
- "application/vnd.dece.data": [
286
- "uvf",
287
- "uvvf",
288
- "uvd",
289
- "uvvd"
290
- ],
291
- "application/vnd.dece.ttml+xml": [
292
- "uvt",
293
- "uvvt"
294
- ],
295
- "application/vnd.dece.unspecified": [
296
- "uvx",
297
- "uvvx"
298
- ],
299
- "application/vnd.dece.zip": [
300
- "uvz",
301
- "uvvz"
302
- ],
303
- "application/vnd.denovo.fcselayout-link": [
304
- "fe_launch"
305
- ],
306
- "application/vnd.dna": [
307
- "dna"
308
- ],
309
- "application/vnd.dolby.mlp": [
310
- "mlp"
311
- ],
312
- "application/vnd.dpgraph": [
313
- "dpg"
314
- ],
315
- "application/vnd.dreamfactory": [
316
- "dfac"
317
- ],
318
- "application/vnd.ds-keypoint": [
319
- "kpxx"
320
- ],
321
- "application/vnd.dvb.ait": [
322
- "ait"
323
- ],
324
- "application/vnd.dvb.service": [
325
- "svc"
326
- ],
327
- "application/vnd.dynageo": [
328
- "geo"
329
- ],
330
- "application/vnd.ecowin.chart": [
331
- "mag"
332
- ],
333
- "application/vnd.enliven": [
334
- "nml"
335
- ],
336
- "application/vnd.epson.esf": [
337
- "esf"
338
- ],
339
- "application/vnd.epson.msf": [
340
- "msf"
341
- ],
342
- "application/vnd.epson.quickanime": [
343
- "qam"
344
- ],
345
- "application/vnd.epson.salt": [
346
- "slt"
347
- ],
348
- "application/vnd.epson.ssf": [
349
- "ssf"
350
- ],
351
- "application/vnd.eszigno3+xml": [
352
- "es3",
353
- "et3"
354
- ],
355
- "application/vnd.ezpix-album": [
356
- "ez2"
357
- ],
358
- "application/vnd.ezpix-package": [
359
- "ez3"
360
- ],
361
- "application/vnd.fdf": [
362
- "*fdf"
363
- ],
364
- "application/vnd.fdsn.mseed": [
365
- "mseed"
366
- ],
367
- "application/vnd.fdsn.seed": [
368
- "seed",
369
- "dataless"
370
- ],
371
- "application/vnd.flographit": [
372
- "gph"
373
- ],
374
- "application/vnd.fluxtime.clip": [
375
- "ftc"
376
- ],
377
- "application/vnd.framemaker": [
378
- "fm",
379
- "frame",
380
- "maker",
381
- "book"
382
- ],
383
- "application/vnd.frogans.fnc": [
384
- "fnc"
385
- ],
386
- "application/vnd.frogans.ltf": [
387
- "ltf"
388
- ],
389
- "application/vnd.fsc.weblaunch": [
390
- "fsc"
391
- ],
392
- "application/vnd.fujitsu.oasys": [
393
- "oas"
394
- ],
395
- "application/vnd.fujitsu.oasys2": [
396
- "oa2"
397
- ],
398
- "application/vnd.fujitsu.oasys3": [
399
- "oa3"
400
- ],
401
- "application/vnd.fujitsu.oasysgp": [
402
- "fg5"
403
- ],
404
- "application/vnd.fujitsu.oasysprs": [
405
- "bh2"
406
- ],
407
- "application/vnd.fujixerox.ddd": [
408
- "ddd"
409
- ],
410
- "application/vnd.fujixerox.docuworks": [
411
- "xdw"
412
- ],
413
- "application/vnd.fujixerox.docuworks.binder": [
414
- "xbd"
415
- ],
416
- "application/vnd.fuzzysheet": [
417
- "fzs"
418
- ],
419
- "application/vnd.genomatix.tuxedo": [
420
- "txd"
421
- ],
422
- "application/vnd.geogebra.file": [
423
- "ggb"
424
- ],
425
- "application/vnd.geogebra.tool": [
426
- "ggt"
427
- ],
428
- "application/vnd.geometry-explorer": [
429
- "gex",
430
- "gre"
431
- ],
432
- "application/vnd.geonext": [
433
- "gxt"
434
- ],
435
- "application/vnd.geoplan": [
436
- "g2w"
437
- ],
438
- "application/vnd.geospace": [
439
- "g3w"
440
- ],
441
- "application/vnd.gmx": [
442
- "gmx"
443
- ],
444
- "application/vnd.google-apps.document": [
445
- "gdoc"
446
- ],
447
- "application/vnd.google-apps.presentation": [
448
- "gslides"
449
- ],
450
- "application/vnd.google-apps.spreadsheet": [
451
- "gsheet"
452
- ],
453
- "application/vnd.google-earth.kml+xml": [
454
- "kml"
455
- ],
456
- "application/vnd.google-earth.kmz": [
457
- "kmz"
458
- ],
459
- "application/vnd.grafeq": [
460
- "gqf",
461
- "gqs"
462
- ],
463
- "application/vnd.groove-account": [
464
- "gac"
465
- ],
466
- "application/vnd.groove-help": [
467
- "ghf"
468
- ],
469
- "application/vnd.groove-identity-message": [
470
- "gim"
471
- ],
472
- "application/vnd.groove-injector": [
473
- "grv"
474
- ],
475
- "application/vnd.groove-tool-message": [
476
- "gtm"
477
- ],
478
- "application/vnd.groove-tool-template": [
479
- "tpl"
480
- ],
481
- "application/vnd.groove-vcard": [
482
- "vcg"
483
- ],
484
- "application/vnd.hal+xml": [
485
- "hal"
486
- ],
487
- "application/vnd.handheld-entertainment+xml": [
488
- "zmm"
489
- ],
490
- "application/vnd.hbci": [
491
- "hbci"
492
- ],
493
- "application/vnd.hhe.lesson-player": [
494
- "les"
495
- ],
496
- "application/vnd.hp-hpgl": [
497
- "hpgl"
498
- ],
499
- "application/vnd.hp-hpid": [
500
- "hpid"
501
- ],
502
- "application/vnd.hp-hps": [
503
- "hps"
504
- ],
505
- "application/vnd.hp-jlyt": [
506
- "jlt"
507
- ],
508
- "application/vnd.hp-pcl": [
509
- "pcl"
510
- ],
511
- "application/vnd.hp-pclxl": [
512
- "pclxl"
513
- ],
514
- "application/vnd.hydrostatix.sof-data": [
515
- "sfd-hdstx"
516
- ],
517
- "application/vnd.ibm.minipay": [
518
- "mpy"
519
- ],
520
- "application/vnd.ibm.modcap": [
521
- "afp",
522
- "listafp",
523
- "list3820"
524
- ],
525
- "application/vnd.ibm.rights-management": [
526
- "irm"
527
- ],
528
- "application/vnd.ibm.secure-container": [
529
- "sc"
530
- ],
531
- "application/vnd.iccprofile": [
532
- "icc",
533
- "icm"
534
- ],
535
- "application/vnd.igloader": [
536
- "igl"
537
- ],
538
- "application/vnd.immervision-ivp": [
539
- "ivp"
540
- ],
541
- "application/vnd.immervision-ivu": [
542
- "ivu"
543
- ],
544
- "application/vnd.insors.igm": [
545
- "igm"
546
- ],
547
- "application/vnd.intercon.formnet": [
548
- "xpw",
549
- "xpx"
550
- ],
551
- "application/vnd.intergeo": [
552
- "i2g"
553
- ],
554
- "application/vnd.intu.qbo": [
555
- "qbo"
556
- ],
557
- "application/vnd.intu.qfx": [
558
- "qfx"
559
- ],
560
- "application/vnd.ipunplugged.rcprofile": [
561
- "rcprofile"
562
- ],
563
- "application/vnd.irepository.package+xml": [
564
- "irp"
565
- ],
566
- "application/vnd.is-xpr": [
567
- "xpr"
568
- ],
569
- "application/vnd.isac.fcs": [
570
- "fcs"
571
- ],
572
- "application/vnd.jam": [
573
- "jam"
574
- ],
575
- "application/vnd.jcp.javame.midlet-rms": [
576
- "rms"
577
- ],
578
- "application/vnd.jisp": [
579
- "jisp"
580
- ],
581
- "application/vnd.joost.joda-archive": [
582
- "joda"
583
- ],
584
- "application/vnd.kahootz": [
585
- "ktz",
586
- "ktr"
587
- ],
588
- "application/vnd.kde.karbon": [
589
- "karbon"
590
- ],
591
- "application/vnd.kde.kchart": [
592
- "chrt"
593
- ],
594
- "application/vnd.kde.kformula": [
595
- "kfo"
596
- ],
597
- "application/vnd.kde.kivio": [
598
- "flw"
599
- ],
600
- "application/vnd.kde.kontour": [
601
- "kon"
602
- ],
603
- "application/vnd.kde.kpresenter": [
604
- "kpr",
605
- "kpt"
606
- ],
607
- "application/vnd.kde.kspread": [
608
- "ksp"
609
- ],
610
- "application/vnd.kde.kword": [
611
- "kwd",
612
- "kwt"
613
- ],
614
- "application/vnd.kenameaapp": [
615
- "htke"
616
- ],
617
- "application/vnd.kidspiration": [
618
- "kia"
619
- ],
620
- "application/vnd.kinar": [
621
- "kne",
622
- "knp"
623
- ],
624
- "application/vnd.koan": [
625
- "skp",
626
- "skd",
627
- "skt",
628
- "skm"
629
- ],
630
- "application/vnd.kodak-descriptor": [
631
- "sse"
632
- ],
633
- "application/vnd.las.las+xml": [
634
- "lasxml"
635
- ],
636
- "application/vnd.llamagraphics.life-balance.desktop": [
637
- "lbd"
638
- ],
639
- "application/vnd.llamagraphics.life-balance.exchange+xml": [
640
- "lbe"
641
- ],
642
- "application/vnd.lotus-1-2-3": [
643
- "123"
644
- ],
645
- "application/vnd.lotus-approach": [
646
- "apr"
647
- ],
648
- "application/vnd.lotus-freelance": [
649
- "pre"
650
- ],
651
- "application/vnd.lotus-notes": [
652
- "nsf"
653
- ],
654
- "application/vnd.lotus-organizer": [
655
- "org"
656
- ],
657
- "application/vnd.lotus-screencam": [
658
- "scm"
659
- ],
660
- "application/vnd.lotus-wordpro": [
661
- "lwp"
662
- ],
663
- "application/vnd.macports.portpkg": [
664
- "portpkg"
665
- ],
666
- "application/vnd.mapbox-vector-tile": [
667
- "mvt"
668
- ],
669
- "application/vnd.mcd": [
670
- "mcd"
671
- ],
672
- "application/vnd.medcalcdata": [
673
- "mc1"
674
- ],
675
- "application/vnd.mediastation.cdkey": [
676
- "cdkey"
677
- ],
678
- "application/vnd.mfer": [
679
- "mwf"
680
- ],
681
- "application/vnd.mfmp": [
682
- "mfm"
683
- ],
684
- "application/vnd.micrografx.flo": [
685
- "flo"
686
- ],
687
- "application/vnd.micrografx.igx": [
688
- "igx"
689
- ],
690
- "application/vnd.mif": [
691
- "mif"
692
- ],
693
- "application/vnd.mobius.daf": [
694
- "daf"
695
- ],
696
- "application/vnd.mobius.dis": [
697
- "dis"
698
- ],
699
- "application/vnd.mobius.mbk": [
700
- "mbk"
701
- ],
702
- "application/vnd.mobius.mqy": [
703
- "mqy"
704
- ],
705
- "application/vnd.mobius.msl": [
706
- "msl"
707
- ],
708
- "application/vnd.mobius.plc": [
709
- "plc"
710
- ],
711
- "application/vnd.mobius.txf": [
712
- "txf"
713
- ],
714
- "application/vnd.mophun.application": [
715
- "mpn"
716
- ],
717
- "application/vnd.mophun.certificate": [
718
- "mpc"
719
- ],
720
- "application/vnd.mozilla.xul+xml": [
721
- "xul"
722
- ],
723
- "application/vnd.ms-artgalry": [
724
- "cil"
725
- ],
726
- "application/vnd.ms-cab-compressed": [
727
- "cab"
728
- ],
729
- "application/vnd.ms-excel": [
730
- "xls",
731
- "xlm",
732
- "xla",
733
- "xlc",
734
- "xlt",
735
- "xlw"
736
- ],
737
- "application/vnd.ms-excel.addin.macroenabled.12": [
738
- "xlam"
739
- ],
740
- "application/vnd.ms-excel.sheet.binary.macroenabled.12": [
741
- "xlsb"
742
- ],
743
- "application/vnd.ms-excel.sheet.macroenabled.12": [
744
- "xlsm"
745
- ],
746
- "application/vnd.ms-excel.template.macroenabled.12": [
747
- "xltm"
748
- ],
749
- "application/vnd.ms-fontobject": [
750
- "eot"
751
- ],
752
- "application/vnd.ms-htmlhelp": [
753
- "chm"
754
- ],
755
- "application/vnd.ms-ims": [
756
- "ims"
757
- ],
758
- "application/vnd.ms-lrm": [
759
- "lrm"
760
- ],
761
- "application/vnd.ms-officetheme": [
762
- "thmx"
763
- ],
764
- "application/vnd.ms-outlook": [
765
- "msg"
766
- ],
767
- "application/vnd.ms-pki.seccat": [
768
- "cat"
769
- ],
770
- "application/vnd.ms-pki.stl": [
771
- "*stl"
772
- ],
773
- "application/vnd.ms-powerpoint": [
774
- "ppt",
775
- "pps",
776
- "pot"
777
- ],
778
- "application/vnd.ms-powerpoint.addin.macroenabled.12": [
779
- "ppam"
780
- ],
781
- "application/vnd.ms-powerpoint.presentation.macroenabled.12": [
782
- "pptm"
783
- ],
784
- "application/vnd.ms-powerpoint.slide.macroenabled.12": [
785
- "sldm"
786
- ],
787
- "application/vnd.ms-powerpoint.slideshow.macroenabled.12": [
788
- "ppsm"
789
- ],
790
- "application/vnd.ms-powerpoint.template.macroenabled.12": [
791
- "potm"
792
- ],
793
- "application/vnd.ms-project": [
794
- "*mpp",
795
- "mpt"
796
- ],
797
- "application/vnd.ms-word.document.macroenabled.12": [
798
- "docm"
799
- ],
800
- "application/vnd.ms-word.template.macroenabled.12": [
801
- "dotm"
802
- ],
803
- "application/vnd.ms-works": [
804
- "wps",
805
- "wks",
806
- "wcm",
807
- "wdb"
808
- ],
809
- "application/vnd.ms-wpl": [
810
- "wpl"
811
- ],
812
- "application/vnd.ms-xpsdocument": [
813
- "xps"
814
- ],
815
- "application/vnd.mseq": [
816
- "mseq"
817
- ],
818
- "application/vnd.musician": [
819
- "mus"
820
- ],
821
- "application/vnd.muvee.style": [
822
- "msty"
823
- ],
824
- "application/vnd.mynfc": [
825
- "taglet"
826
- ],
827
- "application/vnd.neurolanguage.nlu": [
828
- "nlu"
829
- ],
830
- "application/vnd.nitf": [
831
- "ntf",
832
- "nitf"
833
- ],
834
- "application/vnd.noblenet-directory": [
835
- "nnd"
836
- ],
837
- "application/vnd.noblenet-sealer": [
838
- "nns"
839
- ],
840
- "application/vnd.noblenet-web": [
841
- "nnw"
842
- ],
843
- "application/vnd.nokia.n-gage.ac+xml": [
844
- "*ac"
845
- ],
846
- "application/vnd.nokia.n-gage.data": [
847
- "ngdat"
848
- ],
849
- "application/vnd.nokia.n-gage.symbian.install": [
850
- "n-gage"
851
- ],
852
- "application/vnd.nokia.radio-preset": [
853
- "rpst"
854
- ],
855
- "application/vnd.nokia.radio-presets": [
856
- "rpss"
857
- ],
858
- "application/vnd.novadigm.edm": [
859
- "edm"
860
- ],
861
- "application/vnd.novadigm.edx": [
862
- "edx"
863
- ],
864
- "application/vnd.novadigm.ext": [
865
- "ext"
866
- ],
867
- "application/vnd.oasis.opendocument.chart": [
868
- "odc"
869
- ],
870
- "application/vnd.oasis.opendocument.chart-template": [
871
- "otc"
872
- ],
873
- "application/vnd.oasis.opendocument.database": [
874
- "odb"
875
- ],
876
- "application/vnd.oasis.opendocument.formula": [
877
- "odf"
878
- ],
879
- "application/vnd.oasis.opendocument.formula-template": [
880
- "odft"
881
- ],
882
- "application/vnd.oasis.opendocument.graphics": [
883
- "odg"
884
- ],
885
- "application/vnd.oasis.opendocument.graphics-template": [
886
- "otg"
887
- ],
888
- "application/vnd.oasis.opendocument.image": [
889
- "odi"
890
- ],
891
- "application/vnd.oasis.opendocument.image-template": [
892
- "oti"
893
- ],
894
- "application/vnd.oasis.opendocument.presentation": [
895
- "odp"
896
- ],
897
- "application/vnd.oasis.opendocument.presentation-template": [
898
- "otp"
899
- ],
900
- "application/vnd.oasis.opendocument.spreadsheet": [
901
- "ods"
902
- ],
903
- "application/vnd.oasis.opendocument.spreadsheet-template": [
904
- "ots"
905
- ],
906
- "application/vnd.oasis.opendocument.text": [
907
- "odt"
908
- ],
909
- "application/vnd.oasis.opendocument.text-master": [
910
- "odm"
911
- ],
912
- "application/vnd.oasis.opendocument.text-template": [
913
- "ott"
914
- ],
915
- "application/vnd.oasis.opendocument.text-web": [
916
- "oth"
917
- ],
918
- "application/vnd.olpc-sugar": [
919
- "xo"
920
- ],
921
- "application/vnd.oma.dd2+xml": [
922
- "dd2"
923
- ],
924
- "application/vnd.openblox.game+xml": [
925
- "obgx"
926
- ],
927
- "application/vnd.openofficeorg.extension": [
928
- "oxt"
929
- ],
930
- "application/vnd.openstreetmap.data+xml": [
931
- "osm"
932
- ],
933
- "application/vnd.openxmlformats-officedocument.presentationml.presentation": [
934
- "pptx"
935
- ],
936
- "application/vnd.openxmlformats-officedocument.presentationml.slide": [
937
- "sldx"
938
- ],
939
- "application/vnd.openxmlformats-officedocument.presentationml.slideshow": [
940
- "ppsx"
941
- ],
942
- "application/vnd.openxmlformats-officedocument.presentationml.template": [
943
- "potx"
944
- ],
945
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [
946
- "xlsx"
947
- ],
948
- "application/vnd.openxmlformats-officedocument.spreadsheetml.template": [
949
- "xltx"
950
- ],
951
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document": [
952
- "docx"
953
- ],
954
- "application/vnd.openxmlformats-officedocument.wordprocessingml.template": [
955
- "dotx"
956
- ],
957
- "application/vnd.osgeo.mapguide.package": [
958
- "mgp"
959
- ],
960
- "application/vnd.osgi.dp": [
961
- "dp"
962
- ],
963
- "application/vnd.osgi.subsystem": [
964
- "esa"
965
- ],
966
- "application/vnd.palm": [
967
- "pdb",
968
- "pqa",
969
- "oprc"
970
- ],
971
- "application/vnd.pawaafile": [
972
- "paw"
973
- ],
974
- "application/vnd.pg.format": [
975
- "str"
976
- ],
977
- "application/vnd.pg.osasli": [
978
- "ei6"
979
- ],
980
- "application/vnd.picsel": [
981
- "efif"
982
- ],
983
- "application/vnd.pmi.widget": [
984
- "wg"
985
- ],
986
- "application/vnd.pocketlearn": [
987
- "plf"
988
- ],
989
- "application/vnd.powerbuilder6": [
990
- "pbd"
991
- ],
992
- "application/vnd.previewsystems.box": [
993
- "box"
994
- ],
995
- "application/vnd.proteus.magazine": [
996
- "mgz"
997
- ],
998
- "application/vnd.publishare-delta-tree": [
999
- "qps"
1000
- ],
1001
- "application/vnd.pvi.ptid1": [
1002
- "ptid"
1003
- ],
1004
- "application/vnd.pwg-xhtml-print+xml": [
1005
- "xhtm"
1006
- ],
1007
- "application/vnd.quark.quarkxpress": [
1008
- "qxd",
1009
- "qxt",
1010
- "qwd",
1011
- "qwt",
1012
- "qxl",
1013
- "qxb"
1014
- ],
1015
- "application/vnd.rar": [
1016
- "rar"
1017
- ],
1018
- "application/vnd.realvnc.bed": [
1019
- "bed"
1020
- ],
1021
- "application/vnd.recordare.musicxml": [
1022
- "mxl"
1023
- ],
1024
- "application/vnd.recordare.musicxml+xml": [
1025
- "musicxml"
1026
- ],
1027
- "application/vnd.rig.cryptonote": [
1028
- "cryptonote"
1029
- ],
1030
- "application/vnd.rim.cod": [
1031
- "cod"
1032
- ],
1033
- "application/vnd.rn-realmedia": [
1034
- "rm"
1035
- ],
1036
- "application/vnd.rn-realmedia-vbr": [
1037
- "rmvb"
1038
- ],
1039
- "application/vnd.route66.link66+xml": [
1040
- "link66"
1041
- ],
1042
- "application/vnd.sailingtracker.track": [
1043
- "st"
1044
- ],
1045
- "application/vnd.seemail": [
1046
- "see"
1047
- ],
1048
- "application/vnd.sema": [
1049
- "sema"
1050
- ],
1051
- "application/vnd.semd": [
1052
- "semd"
1053
- ],
1054
- "application/vnd.semf": [
1055
- "semf"
1056
- ],
1057
- "application/vnd.shana.informed.formdata": [
1058
- "ifm"
1059
- ],
1060
- "application/vnd.shana.informed.formtemplate": [
1061
- "itp"
1062
- ],
1063
- "application/vnd.shana.informed.interchange": [
1064
- "iif"
1065
- ],
1066
- "application/vnd.shana.informed.package": [
1067
- "ipk"
1068
- ],
1069
- "application/vnd.simtech-mindmapper": [
1070
- "twd",
1071
- "twds"
1072
- ],
1073
- "application/vnd.smaf": [
1074
- "mmf"
1075
- ],
1076
- "application/vnd.smart.teacher": [
1077
- "teacher"
1078
- ],
1079
- "application/vnd.software602.filler.form+xml": [
1080
- "fo"
1081
- ],
1082
- "application/vnd.solent.sdkm+xml": [
1083
- "sdkm",
1084
- "sdkd"
1085
- ],
1086
- "application/vnd.spotfire.dxp": [
1087
- "dxp"
1088
- ],
1089
- "application/vnd.spotfire.sfs": [
1090
- "sfs"
1091
- ],
1092
- "application/vnd.stardivision.calc": [
1093
- "sdc"
1094
- ],
1095
- "application/vnd.stardivision.draw": [
1096
- "sda"
1097
- ],
1098
- "application/vnd.stardivision.impress": [
1099
- "sdd"
1100
- ],
1101
- "application/vnd.stardivision.math": [
1102
- "smf"
1103
- ],
1104
- "application/vnd.stardivision.writer": [
1105
- "sdw",
1106
- "vor"
1107
- ],
1108
- "application/vnd.stardivision.writer-global": [
1109
- "sgl"
1110
- ],
1111
- "application/vnd.stepmania.package": [
1112
- "smzip"
1113
- ],
1114
- "application/vnd.stepmania.stepchart": [
1115
- "sm"
1116
- ],
1117
- "application/vnd.sun.wadl+xml": [
1118
- "wadl"
1119
- ],
1120
- "application/vnd.sun.xml.calc": [
1121
- "sxc"
1122
- ],
1123
- "application/vnd.sun.xml.calc.template": [
1124
- "stc"
1125
- ],
1126
- "application/vnd.sun.xml.draw": [
1127
- "sxd"
1128
- ],
1129
- "application/vnd.sun.xml.draw.template": [
1130
- "std"
1131
- ],
1132
- "application/vnd.sun.xml.impress": [
1133
- "sxi"
1134
- ],
1135
- "application/vnd.sun.xml.impress.template": [
1136
- "sti"
1137
- ],
1138
- "application/vnd.sun.xml.math": [
1139
- "sxm"
1140
- ],
1141
- "application/vnd.sun.xml.writer": [
1142
- "sxw"
1143
- ],
1144
- "application/vnd.sun.xml.writer.global": [
1145
- "sxg"
1146
- ],
1147
- "application/vnd.sun.xml.writer.template": [
1148
- "stw"
1149
- ],
1150
- "application/vnd.sus-calendar": [
1151
- "sus",
1152
- "susp"
1153
- ],
1154
- "application/vnd.svd": [
1155
- "svd"
1156
- ],
1157
- "application/vnd.symbian.install": [
1158
- "sis",
1159
- "sisx"
1160
- ],
1161
- "application/vnd.syncml+xml": [
1162
- "xsm"
1163
- ],
1164
- "application/vnd.syncml.dm+wbxml": [
1165
- "bdm"
1166
- ],
1167
- "application/vnd.syncml.dm+xml": [
1168
- "xdm"
1169
- ],
1170
- "application/vnd.syncml.dmddf+xml": [
1171
- "ddf"
1172
- ],
1173
- "application/vnd.tao.intent-module-archive": [
1174
- "tao"
1175
- ],
1176
- "application/vnd.tcpdump.pcap": [
1177
- "pcap",
1178
- "cap",
1179
- "dmp"
1180
- ],
1181
- "application/vnd.tmobile-livetv": [
1182
- "tmo"
1183
- ],
1184
- "application/vnd.trid.tpt": [
1185
- "tpt"
1186
- ],
1187
- "application/vnd.triscape.mxs": [
1188
- "mxs"
1189
- ],
1190
- "application/vnd.trueapp": [
1191
- "tra"
1192
- ],
1193
- "application/vnd.ufdl": [
1194
- "ufd",
1195
- "ufdl"
1196
- ],
1197
- "application/vnd.uiq.theme": [
1198
- "utz"
1199
- ],
1200
- "application/vnd.umajin": [
1201
- "umj"
1202
- ],
1203
- "application/vnd.unity": [
1204
- "unityweb"
1205
- ],
1206
- "application/vnd.uoml+xml": [
1207
- "uoml",
1208
- "uo"
1209
- ],
1210
- "application/vnd.vcx": [
1211
- "vcx"
1212
- ],
1213
- "application/vnd.visio": [
1214
- "vsd",
1215
- "vst",
1216
- "vss",
1217
- "vsw"
1218
- ],
1219
- "application/vnd.visionary": [
1220
- "vis"
1221
- ],
1222
- "application/vnd.vsf": [
1223
- "vsf"
1224
- ],
1225
- "application/vnd.wap.wbxml": [
1226
- "wbxml"
1227
- ],
1228
- "application/vnd.wap.wmlc": [
1229
- "wmlc"
1230
- ],
1231
- "application/vnd.wap.wmlscriptc": [
1232
- "wmlsc"
1233
- ],
1234
- "application/vnd.webturbo": [
1235
- "wtb"
1236
- ],
1237
- "application/vnd.wolfram.player": [
1238
- "nbp"
1239
- ],
1240
- "application/vnd.wordperfect": [
1241
- "wpd"
1242
- ],
1243
- "application/vnd.wqd": [
1244
- "wqd"
1245
- ],
1246
- "application/vnd.wt.stf": [
1247
- "stf"
1248
- ],
1249
- "application/vnd.xara": [
1250
- "xar"
1251
- ],
1252
- "application/vnd.xfdl": [
1253
- "xfdl"
1254
- ],
1255
- "application/vnd.yamaha.hv-dic": [
1256
- "hvd"
1257
- ],
1258
- "application/vnd.yamaha.hv-script": [
1259
- "hvs"
1260
- ],
1261
- "application/vnd.yamaha.hv-voice": [
1262
- "hvp"
1263
- ],
1264
- "application/vnd.yamaha.openscoreformat": [
1265
- "osf"
1266
- ],
1267
- "application/vnd.yamaha.openscoreformat.osfpvg+xml": [
1268
- "osfpvg"
1269
- ],
1270
- "application/vnd.yamaha.smaf-audio": [
1271
- "saf"
1272
- ],
1273
- "application/vnd.yamaha.smaf-phrase": [
1274
- "spf"
1275
- ],
1276
- "application/vnd.yellowriver-custom-menu": [
1277
- "cmp"
1278
- ],
1279
- "application/vnd.zul": [
1280
- "zir",
1281
- "zirz"
1282
- ],
1283
- "application/vnd.zzazz.deck+xml": [
1284
- "zaz"
1285
- ],
1286
- "application/x-7z-compressed": [
1287
- "7z"
1288
- ],
1289
- "application/x-abiword": [
1290
- "abw"
1291
- ],
1292
- "application/x-ace-compressed": [
1293
- "ace"
1294
- ],
1295
- "application/x-apple-diskimage": [
1296
- "*dmg"
1297
- ],
1298
- "application/x-arj": [
1299
- "arj"
1300
- ],
1301
- "application/x-authorware-bin": [
1302
- "aab",
1303
- "x32",
1304
- "u32",
1305
- "vox"
1306
- ],
1307
- "application/x-authorware-map": [
1308
- "aam"
1309
- ],
1310
- "application/x-authorware-seg": [
1311
- "aas"
1312
- ],
1313
- "application/x-bcpio": [
1314
- "bcpio"
1315
- ],
1316
- "application/x-bdoc": [
1317
- "*bdoc"
1318
- ],
1319
- "application/x-bittorrent": [
1320
- "torrent"
1321
- ],
1322
- "application/x-blorb": [
1323
- "blb",
1324
- "blorb"
1325
- ],
1326
- "application/x-bzip": [
1327
- "bz"
1328
- ],
1329
- "application/x-bzip2": [
1330
- "bz2",
1331
- "boz"
1332
- ],
1333
- "application/x-cbr": [
1334
- "cbr",
1335
- "cba",
1336
- "cbt",
1337
- "cbz",
1338
- "cb7"
1339
- ],
1340
- "application/x-cdlink": [
1341
- "vcd"
1342
- ],
1343
- "application/x-cfs-compressed": [
1344
- "cfs"
1345
- ],
1346
- "application/x-chat": [
1347
- "chat"
1348
- ],
1349
- "application/x-chess-pgn": [
1350
- "pgn"
1351
- ],
1352
- "application/x-chrome-extension": [
1353
- "crx"
1354
- ],
1355
- "application/x-cocoa": [
1356
- "cco"
1357
- ],
1358
- "application/x-conference": [
1359
- "nsc"
1360
- ],
1361
- "application/x-cpio": [
1362
- "cpio"
1363
- ],
1364
- "application/x-csh": [
1365
- "csh"
1366
- ],
1367
- "application/x-debian-package": [
1368
- "*deb",
1369
- "udeb"
1370
- ],
1371
- "application/x-dgc-compressed": [
1372
- "dgc"
1373
- ],
1374
- "application/x-director": [
1375
- "dir",
1376
- "dcr",
1377
- "dxr",
1378
- "cst",
1379
- "cct",
1380
- "cxt",
1381
- "w3d",
1382
- "fgd",
1383
- "swa"
1384
- ],
1385
- "application/x-doom": [
1386
- "wad"
1387
- ],
1388
- "application/x-dtbncx+xml": [
1389
- "ncx"
1390
- ],
1391
- "application/x-dtbook+xml": [
1392
- "dtb"
1393
- ],
1394
- "application/x-dtbresource+xml": [
1395
- "res"
1396
- ],
1397
- "application/x-dvi": [
1398
- "dvi"
1399
- ],
1400
- "application/x-envoy": [
1401
- "evy"
1402
- ],
1403
- "application/x-eva": [
1404
- "eva"
1405
- ],
1406
- "application/x-font-bdf": [
1407
- "bdf"
1408
- ],
1409
- "application/x-font-ghostscript": [
1410
- "gsf"
1411
- ],
1412
- "application/x-font-linux-psf": [
1413
- "psf"
1414
- ],
1415
- "application/x-font-pcf": [
1416
- "pcf"
1417
- ],
1418
- "application/x-font-snf": [
1419
- "snf"
1420
- ],
1421
- "application/x-font-type1": [
1422
- "pfa",
1423
- "pfb",
1424
- "pfm",
1425
- "afm"
1426
- ],
1427
- "application/x-freearc": [
1428
- "arc"
1429
- ],
1430
- "application/x-futuresplash": [
1431
- "spl"
1432
- ],
1433
- "application/x-gca-compressed": [
1434
- "gca"
1435
- ],
1436
- "application/x-glulx": [
1437
- "ulx"
1438
- ],
1439
- "application/x-gnumeric": [
1440
- "gnumeric"
1441
- ],
1442
- "application/x-gramps-xml": [
1443
- "gramps"
1444
- ],
1445
- "application/x-gtar": [
1446
- "gtar"
1447
- ],
1448
- "application/x-hdf": [
1449
- "hdf"
1450
- ],
1451
- "application/x-httpd-php": [
1452
- "php"
1453
- ],
1454
- "application/x-install-instructions": [
1455
- "install"
1456
- ],
1457
- "application/x-iso9660-image": [
1458
- "*iso"
1459
- ],
1460
- "application/x-iwork-keynote-sffkey": [
1461
- "*key"
1462
- ],
1463
- "application/x-iwork-numbers-sffnumbers": [
1464
- "*numbers"
1465
- ],
1466
- "application/x-iwork-pages-sffpages": [
1467
- "*pages"
1468
- ],
1469
- "application/x-java-archive-diff": [
1470
- "jardiff"
1471
- ],
1472
- "application/x-java-jnlp-file": [
1473
- "jnlp"
1474
- ],
1475
- "application/x-keepass2": [
1476
- "kdbx"
1477
- ],
1478
- "application/x-latex": [
1479
- "latex"
1480
- ],
1481
- "application/x-lua-bytecode": [
1482
- "luac"
1483
- ],
1484
- "application/x-lzh-compressed": [
1485
- "lzh",
1486
- "lha"
1487
- ],
1488
- "application/x-makeself": [
1489
- "run"
1490
- ],
1491
- "application/x-mie": [
1492
- "mie"
1493
- ],
1494
- "application/x-mobipocket-ebook": [
1495
- "*prc",
1496
- "mobi"
1497
- ],
1498
- "application/x-ms-application": [
1499
- "application"
1500
- ],
1501
- "application/x-ms-shortcut": [
1502
- "lnk"
1503
- ],
1504
- "application/x-ms-wmd": [
1505
- "wmd"
1506
- ],
1507
- "application/x-ms-wmz": [
1508
- "wmz"
1509
- ],
1510
- "application/x-ms-xbap": [
1511
- "xbap"
1512
- ],
1513
- "application/x-msaccess": [
1514
- "mdb"
1515
- ],
1516
- "application/x-msbinder": [
1517
- "obd"
1518
- ],
1519
- "application/x-mscardfile": [
1520
- "crd"
1521
- ],
1522
- "application/x-msclip": [
1523
- "clp"
1524
- ],
1525
- "application/x-msdos-program": [
1526
- "*exe"
1527
- ],
1528
- "application/x-msdownload": [
1529
- "*exe",
1530
- "*dll",
1531
- "com",
1532
- "bat",
1533
- "*msi"
1534
- ],
1535
- "application/x-msmediaview": [
1536
- "mvb",
1537
- "m13",
1538
- "m14"
1539
- ],
1540
- "application/x-msmetafile": [
1541
- "*wmf",
1542
- "*wmz",
1543
- "*emf",
1544
- "emz"
1545
- ],
1546
- "application/x-msmoney": [
1547
- "mny"
1548
- ],
1549
- "application/x-mspublisher": [
1550
- "pub"
1551
- ],
1552
- "application/x-msschedule": [
1553
- "scd"
1554
- ],
1555
- "application/x-msterminal": [
1556
- "trm"
1557
- ],
1558
- "application/x-mswrite": [
1559
- "wri"
1560
- ],
1561
- "application/x-netcdf": [
1562
- "nc",
1563
- "cdf"
1564
- ],
1565
- "application/x-ns-proxy-autoconfig": [
1566
- "pac"
1567
- ],
1568
- "application/x-nzb": [
1569
- "nzb"
1570
- ],
1571
- "application/x-perl": [
1572
- "pl",
1573
- "pm"
1574
- ],
1575
- "application/x-pilot": [
1576
- "*prc",
1577
- "*pdb"
1578
- ],
1579
- "application/x-pkcs12": [
1580
- "p12",
1581
- "pfx"
1582
- ],
1583
- "application/x-pkcs7-certificates": [
1584
- "p7b",
1585
- "spc"
1586
- ],
1587
- "application/x-pkcs7-certreqresp": [
1588
- "p7r"
1589
- ],
1590
- "application/x-rar-compressed": [
1591
- "*rar"
1592
- ],
1593
- "application/x-redhat-package-manager": [
1594
- "rpm"
1595
- ],
1596
- "application/x-research-info-systems": [
1597
- "ris"
1598
- ],
1599
- "application/x-sea": [
1600
- "sea"
1601
- ],
1602
- "application/x-sh": [
1603
- "sh"
1604
- ],
1605
- "application/x-shar": [
1606
- "shar"
1607
- ],
1608
- "application/x-shockwave-flash": [
1609
- "swf"
1610
- ],
1611
- "application/x-silverlight-app": [
1612
- "xap"
1613
- ],
1614
- "application/x-sql": [
1615
- "*sql"
1616
- ],
1617
- "application/x-stuffit": [
1618
- "sit"
1619
- ],
1620
- "application/x-stuffitx": [
1621
- "sitx"
1622
- ],
1623
- "application/x-subrip": [
1624
- "srt"
1625
- ],
1626
- "application/x-sv4cpio": [
1627
- "sv4cpio"
1628
- ],
1629
- "application/x-sv4crc": [
1630
- "sv4crc"
1631
- ],
1632
- "application/x-t3vm-image": [
1633
- "t3"
1634
- ],
1635
- "application/x-tads": [
1636
- "gam"
1637
- ],
1638
- "application/x-tar": [
1639
- "tar"
1640
- ],
1641
- "application/x-tcl": [
1642
- "tcl",
1643
- "tk"
1644
- ],
1645
- "application/x-tex": [
1646
- "tex"
1647
- ],
1648
- "application/x-tex-tfm": [
1649
- "tfm"
1650
- ],
1651
- "application/x-texinfo": [
1652
- "texinfo",
1653
- "texi"
1654
- ],
1655
- "application/x-tgif": [
1656
- "*obj"
1657
- ],
1658
- "application/x-ustar": [
1659
- "ustar"
1660
- ],
1661
- "application/x-virtualbox-hdd": [
1662
- "hdd"
1663
- ],
1664
- "application/x-virtualbox-ova": [
1665
- "ova"
1666
- ],
1667
- "application/x-virtualbox-ovf": [
1668
- "ovf"
1669
- ],
1670
- "application/x-virtualbox-vbox": [
1671
- "vbox"
1672
- ],
1673
- "application/x-virtualbox-vbox-extpack": [
1674
- "vbox-extpack"
1675
- ],
1676
- "application/x-virtualbox-vdi": [
1677
- "vdi"
1678
- ],
1679
- "application/x-virtualbox-vhd": [
1680
- "vhd"
1681
- ],
1682
- "application/x-virtualbox-vmdk": [
1683
- "vmdk"
1684
- ],
1685
- "application/x-wais-source": [
1686
- "src"
1687
- ],
1688
- "application/x-web-app-manifest+json": [
1689
- "webapp"
1690
- ],
1691
- "application/x-x509-ca-cert": [
1692
- "der",
1693
- "crt",
1694
- "pem"
1695
- ],
1696
- "application/x-xfig": [
1697
- "fig"
1698
- ],
1699
- "application/x-xliff+xml": [
1700
- "*xlf"
1701
- ],
1702
- "application/x-xpinstall": [
1703
- "xpi"
1704
- ],
1705
- "application/x-xz": [
1706
- "xz"
1707
- ],
1708
- "application/x-zmachine": [
1709
- "z1",
1710
- "z2",
1711
- "z3",
1712
- "z4",
1713
- "z5",
1714
- "z6",
1715
- "z7",
1716
- "z8"
1717
- ],
1718
- "audio/vnd.dece.audio": [
1719
- "uva",
1720
- "uvva"
1721
- ],
1722
- "audio/vnd.digital-winds": [
1723
- "eol"
1724
- ],
1725
- "audio/vnd.dra": [
1726
- "dra"
1727
- ],
1728
- "audio/vnd.dts": [
1729
- "dts"
1730
- ],
1731
- "audio/vnd.dts.hd": [
1732
- "dtshd"
1733
- ],
1734
- "audio/vnd.lucent.voice": [
1735
- "lvp"
1736
- ],
1737
- "audio/vnd.ms-playready.media.pya": [
1738
- "pya"
1739
- ],
1740
- "audio/vnd.nuera.ecelp4800": [
1741
- "ecelp4800"
1742
- ],
1743
- "audio/vnd.nuera.ecelp7470": [
1744
- "ecelp7470"
1745
- ],
1746
- "audio/vnd.nuera.ecelp9600": [
1747
- "ecelp9600"
1748
- ],
1749
- "audio/vnd.rip": [
1750
- "rip"
1751
- ],
1752
- "audio/x-aac": [
1753
- "*aac"
1754
- ],
1755
- "audio/x-aiff": [
1756
- "aif",
1757
- "aiff",
1758
- "aifc"
1759
- ],
1760
- "audio/x-caf": [
1761
- "caf"
1762
- ],
1763
- "audio/x-flac": [
1764
- "flac"
1765
- ],
1766
- "audio/x-m4a": [
1767
- "*m4a"
1768
- ],
1769
- "audio/x-matroska": [
1770
- "mka"
1771
- ],
1772
- "audio/x-mpegurl": [
1773
- "m3u"
1774
- ],
1775
- "audio/x-ms-wax": [
1776
- "wax"
1777
- ],
1778
- "audio/x-ms-wma": [
1779
- "wma"
1780
- ],
1781
- "audio/x-pn-realaudio": [
1782
- "ram",
1783
- "ra"
1784
- ],
1785
- "audio/x-pn-realaudio-plugin": [
1786
- "rmp"
1787
- ],
1788
- "audio/x-realaudio": [
1789
- "*ra"
1790
- ],
1791
- "audio/x-wav": [
1792
- "*wav"
1793
- ],
1794
- "chemical/x-cdx": [
1795
- "cdx"
1796
- ],
1797
- "chemical/x-cif": [
1798
- "cif"
1799
- ],
1800
- "chemical/x-cmdf": [
1801
- "cmdf"
1802
- ],
1803
- "chemical/x-cml": [
1804
- "cml"
1805
- ],
1806
- "chemical/x-csml": [
1807
- "csml"
1808
- ],
1809
- "chemical/x-xyz": [
1810
- "xyz"
1811
- ],
1812
- "image/prs.btif": [
1813
- "btif",
1814
- "btf"
1815
- ],
1816
- "image/prs.pti": [
1817
- "pti"
1818
- ],
1819
- "image/vnd.adobe.photoshop": [
1820
- "psd"
1821
- ],
1822
- "image/vnd.airzip.accelerator.azv": [
1823
- "azv"
1824
- ],
1825
- "image/vnd.dece.graphic": [
1826
- "uvi",
1827
- "uvvi",
1828
- "uvg",
1829
- "uvvg"
1830
- ],
1831
- "image/vnd.djvu": [
1832
- "djvu",
1833
- "djv"
1834
- ],
1835
- "image/vnd.dvb.subtitle": [
1836
- "*sub"
1837
- ],
1838
- "image/vnd.dwg": [
1839
- "dwg"
1840
- ],
1841
- "image/vnd.dxf": [
1842
- "dxf"
1843
- ],
1844
- "image/vnd.fastbidsheet": [
1845
- "fbs"
1846
- ],
1847
- "image/vnd.fpx": [
1848
- "fpx"
1849
- ],
1850
- "image/vnd.fst": [
1851
- "fst"
1852
- ],
1853
- "image/vnd.fujixerox.edmics-mmr": [
1854
- "mmr"
1855
- ],
1856
- "image/vnd.fujixerox.edmics-rlc": [
1857
- "rlc"
1858
- ],
1859
- "image/vnd.microsoft.icon": [
1860
- "ico"
1861
- ],
1862
- "image/vnd.ms-dds": [
1863
- "dds"
1864
- ],
1865
- "image/vnd.ms-modi": [
1866
- "mdi"
1867
- ],
1868
- "image/vnd.ms-photo": [
1869
- "wdp"
1870
- ],
1871
- "image/vnd.net-fpx": [
1872
- "npx"
1873
- ],
1874
- "image/vnd.pco.b16": [
1875
- "b16"
1876
- ],
1877
- "image/vnd.tencent.tap": [
1878
- "tap"
1879
- ],
1880
- "image/vnd.valve.source.texture": [
1881
- "vtf"
1882
- ],
1883
- "image/vnd.wap.wbmp": [
1884
- "wbmp"
1885
- ],
1886
- "image/vnd.xiff": [
1887
- "xif"
1888
- ],
1889
- "image/vnd.zbrush.pcx": [
1890
- "pcx"
1891
- ],
1892
- "image/x-3ds": [
1893
- "3ds"
1894
- ],
1895
- "image/x-cmu-raster": [
1896
- "ras"
1897
- ],
1898
- "image/x-cmx": [
1899
- "cmx"
1900
- ],
1901
- "image/x-freehand": [
1902
- "fh",
1903
- "fhc",
1904
- "fh4",
1905
- "fh5",
1906
- "fh7"
1907
- ],
1908
- "image/x-icon": [
1909
- "*ico"
1910
- ],
1911
- "image/x-jng": [
1912
- "jng"
1913
- ],
1914
- "image/x-mrsid-image": [
1915
- "sid"
1916
- ],
1917
- "image/x-ms-bmp": [
1918
- "*bmp"
1919
- ],
1920
- "image/x-pcx": [
1921
- "*pcx"
1922
- ],
1923
- "image/x-pict": [
1924
- "pic",
1925
- "pct"
1926
- ],
1927
- "image/x-portable-anymap": [
1928
- "pnm"
1929
- ],
1930
- "image/x-portable-bitmap": [
1931
- "pbm"
1932
- ],
1933
- "image/x-portable-graymap": [
1934
- "pgm"
1935
- ],
1936
- "image/x-portable-pixmap": [
1937
- "ppm"
1938
- ],
1939
- "image/x-rgb": [
1940
- "rgb"
1941
- ],
1942
- "image/x-tga": [
1943
- "tga"
1944
- ],
1945
- "image/x-xbitmap": [
1946
- "xbm"
1947
- ],
1948
- "image/x-xpixmap": [
1949
- "xpm"
1950
- ],
1951
- "image/x-xwindowdump": [
1952
- "xwd"
1953
- ],
1954
- "message/vnd.wfa.wsc": [
1955
- "wsc"
1956
- ],
1957
- "model/vnd.cld": [
1958
- "cld"
1959
- ],
1960
- "model/vnd.collada+xml": [
1961
- "dae"
1962
- ],
1963
- "model/vnd.dwf": [
1964
- "dwf"
1965
- ],
1966
- "model/vnd.gdl": [
1967
- "gdl"
1968
- ],
1969
- "model/vnd.gtw": [
1970
- "gtw"
1971
- ],
1972
- "model/vnd.mts": [
1973
- "mts"
1974
- ],
1975
- "model/vnd.opengex": [
1976
- "ogex"
1977
- ],
1978
- "model/vnd.parasolid.transmit.binary": [
1979
- "x_b"
1980
- ],
1981
- "model/vnd.parasolid.transmit.text": [
1982
- "x_t"
1983
- ],
1984
- "model/vnd.pytha.pyox": [
1985
- "pyo",
1986
- "pyox"
1987
- ],
1988
- "model/vnd.sap.vds": [
1989
- "vds"
1990
- ],
1991
- "model/vnd.usda": [
1992
- "usda"
1993
- ],
1994
- "model/vnd.usdz+zip": [
1995
- "usdz"
1996
- ],
1997
- "model/vnd.valve.source.compiled-map": [
1998
- "bsp"
1999
- ],
2000
- "model/vnd.vtu": [
2001
- "vtu"
2002
- ],
2003
- "text/prs.lines.tag": [
2004
- "dsc"
2005
- ],
2006
- "text/vnd.curl": [
2007
- "curl"
2008
- ],
2009
- "text/vnd.curl.dcurl": [
2010
- "dcurl"
2011
- ],
2012
- "text/vnd.curl.mcurl": [
2013
- "mcurl"
2014
- ],
2015
- "text/vnd.curl.scurl": [
2016
- "scurl"
2017
- ],
2018
- "text/vnd.dvb.subtitle": [
2019
- "sub"
2020
- ],
2021
- "text/vnd.familysearch.gedcom": [
2022
- "ged"
2023
- ],
2024
- "text/vnd.fly": [
2025
- "fly"
2026
- ],
2027
- "text/vnd.fmi.flexstor": [
2028
- "flx"
2029
- ],
2030
- "text/vnd.graphviz": [
2031
- "gv"
2032
- ],
2033
- "text/vnd.in3d.3dml": [
2034
- "3dml"
2035
- ],
2036
- "text/vnd.in3d.spot": [
2037
- "spot"
2038
- ],
2039
- "text/vnd.sun.j2me.app-descriptor": [
2040
- "jad"
2041
- ],
2042
- "text/vnd.wap.wml": [
2043
- "wml"
2044
- ],
2045
- "text/vnd.wap.wmlscript": [
2046
- "wmls"
2047
- ],
2048
- "text/x-asm": [
2049
- "s",
2050
- "asm"
2051
- ],
2052
- "text/x-c": [
2053
- "c",
2054
- "cc",
2055
- "cxx",
2056
- "cpp",
2057
- "h",
2058
- "hh",
2059
- "dic"
2060
- ],
2061
- "text/x-component": [
2062
- "htc"
2063
- ],
2064
- "text/x-fortran": [
2065
- "f",
2066
- "for",
2067
- "f77",
2068
- "f90"
2069
- ],
2070
- "text/x-handlebars-template": [
2071
- "hbs"
2072
- ],
2073
- "text/x-java-source": [
2074
- "java"
2075
- ],
2076
- "text/x-lua": [
2077
- "lua"
2078
- ],
2079
- "text/x-markdown": [
2080
- "mkd"
2081
- ],
2082
- "text/x-nfo": [
2083
- "nfo"
2084
- ],
2085
- "text/x-opml": [
2086
- "opml"
2087
- ],
2088
- "text/x-org": [
2089
- "*org"
2090
- ],
2091
- "text/x-pascal": [
2092
- "p",
2093
- "pas"
2094
- ],
2095
- "text/x-processing": [
2096
- "pde"
2097
- ],
2098
- "text/x-sass": [
2099
- "sass"
2100
- ],
2101
- "text/x-scss": [
2102
- "scss"
2103
- ],
2104
- "text/x-setext": [
2105
- "etx"
2106
- ],
2107
- "text/x-sfv": [
2108
- "sfv"
2109
- ],
2110
- "text/x-suse-ymp": [
2111
- "ymp"
2112
- ],
2113
- "text/x-uuencode": [
2114
- "uu"
2115
- ],
2116
- "text/x-vcalendar": [
2117
- "vcs"
2118
- ],
2119
- "text/x-vcard": [
2120
- "vcf"
2121
- ],
2122
- "video/vnd.dece.hd": [
2123
- "uvh",
2124
- "uvvh"
2125
- ],
2126
- "video/vnd.dece.mobile": [
2127
- "uvm",
2128
- "uvvm"
2129
- ],
2130
- "video/vnd.dece.pd": [
2131
- "uvp",
2132
- "uvvp"
2133
- ],
2134
- "video/vnd.dece.sd": [
2135
- "uvs",
2136
- "uvvs"
2137
- ],
2138
- "video/vnd.dece.video": [
2139
- "uvv",
2140
- "uvvv"
2141
- ],
2142
- "video/vnd.dvb.file": [
2143
- "dvb"
2144
- ],
2145
- "video/vnd.fvt": [
2146
- "fvt"
2147
- ],
2148
- "video/vnd.mpegurl": [
2149
- "mxu",
2150
- "m4u"
2151
- ],
2152
- "video/vnd.ms-playready.media.pyv": [
2153
- "pyv"
2154
- ],
2155
- "video/vnd.uvvu.mp4": [
2156
- "uvu",
2157
- "uvvu"
2158
- ],
2159
- "video/vnd.vivo": [
2160
- "viv"
2161
- ],
2162
- "video/x-f4v": [
2163
- "f4v"
2164
- ],
2165
- "video/x-fli": [
2166
- "fli"
2167
- ],
2168
- "video/x-flv": [
2169
- "flv"
2170
- ],
2171
- "video/x-m4v": [
2172
- "m4v"
2173
- ],
2174
- "video/x-matroska": [
2175
- "mkv",
2176
- "mk3d",
2177
- "mks"
2178
- ],
2179
- "video/x-mng": [
2180
- "mng"
2181
- ],
2182
- "video/x-ms-asf": [
2183
- "asf",
2184
- "asx"
2185
- ],
2186
- "video/x-ms-vob": [
2187
- "vob"
2188
- ],
2189
- "video/x-ms-wm": [
2190
- "wm"
2191
- ],
2192
- "video/x-ms-wmv": [
2193
- "wmv"
2194
- ],
2195
- "video/x-ms-wmx": [
2196
- "wmx"
2197
- ],
2198
- "video/x-ms-wvx": [
2199
- "wvx"
2200
- ],
2201
- "video/x-msvideo": [
2202
- "avi"
2203
- ],
2204
- "video/x-sgi-movie": [
2205
- "movie"
2206
- ],
2207
- "video/x-smv": [
2208
- "smv"
2209
- ],
2210
- "x-conference/x-cooltalk": [
2211
- "ice"
2212
- ]
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
+ );
2213
95
  };
96
+
97
+ // src/supabaseStorage.ts
98
+ import path from "path";
99
+ import { createClient as createClient2 } from "@supabase/supabase-js";
100
+ import fs from "fs/promises";
101
+
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"] };
2214
104
  Object.freeze(types);
2215
- const other = types;
2216
- const standard_types = {
2217
- "application/andrew-inset": [
2218
- "ez"
2219
- ],
2220
- "application/appinstaller": [
2221
- "appinstaller"
2222
- ],
2223
- "application/applixware": [
2224
- "aw"
2225
- ],
2226
- "application/appx": [
2227
- "appx"
2228
- ],
2229
- "application/appxbundle": [
2230
- "appxbundle"
2231
- ],
2232
- "application/atom+xml": [
2233
- "atom"
2234
- ],
2235
- "application/atomcat+xml": [
2236
- "atomcat"
2237
- ],
2238
- "application/atomdeleted+xml": [
2239
- "atomdeleted"
2240
- ],
2241
- "application/atomsvc+xml": [
2242
- "atomsvc"
2243
- ],
2244
- "application/atsc-dwd+xml": [
2245
- "dwd"
2246
- ],
2247
- "application/atsc-held+xml": [
2248
- "held"
2249
- ],
2250
- "application/atsc-rsat+xml": [
2251
- "rsat"
2252
- ],
2253
- "application/automationml-aml+xml": [
2254
- "aml"
2255
- ],
2256
- "application/automationml-amlx+zip": [
2257
- "amlx"
2258
- ],
2259
- "application/bdoc": [
2260
- "bdoc"
2261
- ],
2262
- "application/calendar+xml": [
2263
- "xcs"
2264
- ],
2265
- "application/ccxml+xml": [
2266
- "ccxml"
2267
- ],
2268
- "application/cdfx+xml": [
2269
- "cdfx"
2270
- ],
2271
- "application/cdmi-capability": [
2272
- "cdmia"
2273
- ],
2274
- "application/cdmi-container": [
2275
- "cdmic"
2276
- ],
2277
- "application/cdmi-domain": [
2278
- "cdmid"
2279
- ],
2280
- "application/cdmi-object": [
2281
- "cdmio"
2282
- ],
2283
- "application/cdmi-queue": [
2284
- "cdmiq"
2285
- ],
2286
- "application/cpl+xml": [
2287
- "cpl"
2288
- ],
2289
- "application/cu-seeme": [
2290
- "cu"
2291
- ],
2292
- "application/cwl": [
2293
- "cwl"
2294
- ],
2295
- "application/dash+xml": [
2296
- "mpd"
2297
- ],
2298
- "application/dash-patch+xml": [
2299
- "mpp"
2300
- ],
2301
- "application/davmount+xml": [
2302
- "davmount"
2303
- ],
2304
- "application/docbook+xml": [
2305
- "dbk"
2306
- ],
2307
- "application/dssc+der": [
2308
- "dssc"
2309
- ],
2310
- "application/dssc+xml": [
2311
- "xdssc"
2312
- ],
2313
- "application/ecmascript": [
2314
- "ecma"
2315
- ],
2316
- "application/emma+xml": [
2317
- "emma"
2318
- ],
2319
- "application/emotionml+xml": [
2320
- "emotionml"
2321
- ],
2322
- "application/epub+zip": [
2323
- "epub"
2324
- ],
2325
- "application/exi": [
2326
- "exi"
2327
- ],
2328
- "application/express": [
2329
- "exp"
2330
- ],
2331
- "application/fdf": [
2332
- "fdf"
2333
- ],
2334
- "application/fdt+xml": [
2335
- "fdt"
2336
- ],
2337
- "application/font-tdpfr": [
2338
- "pfr"
2339
- ],
2340
- "application/geo+json": [
2341
- "geojson"
2342
- ],
2343
- "application/gml+xml": [
2344
- "gml"
2345
- ],
2346
- "application/gpx+xml": [
2347
- "gpx"
2348
- ],
2349
- "application/gxf": [
2350
- "gxf"
2351
- ],
2352
- "application/gzip": [
2353
- "gz"
2354
- ],
2355
- "application/hjson": [
2356
- "hjson"
2357
- ],
2358
- "application/hyperstudio": [
2359
- "stk"
2360
- ],
2361
- "application/inkml+xml": [
2362
- "ink",
2363
- "inkml"
2364
- ],
2365
- "application/ipfix": [
2366
- "ipfix"
2367
- ],
2368
- "application/its+xml": [
2369
- "its"
2370
- ],
2371
- "application/java-archive": [
2372
- "jar",
2373
- "war",
2374
- "ear"
2375
- ],
2376
- "application/java-serialized-object": [
2377
- "ser"
2378
- ],
2379
- "application/java-vm": [
2380
- "class"
2381
- ],
2382
- "application/javascript": [
2383
- "*js"
2384
- ],
2385
- "application/json": [
2386
- "json",
2387
- "map"
2388
- ],
2389
- "application/json5": [
2390
- "json5"
2391
- ],
2392
- "application/jsonml+json": [
2393
- "jsonml"
2394
- ],
2395
- "application/ld+json": [
2396
- "jsonld"
2397
- ],
2398
- "application/lgr+xml": [
2399
- "lgr"
2400
- ],
2401
- "application/lost+xml": [
2402
- "lostxml"
2403
- ],
2404
- "application/mac-binhex40": [
2405
- "hqx"
2406
- ],
2407
- "application/mac-compactpro": [
2408
- "cpt"
2409
- ],
2410
- "application/mads+xml": [
2411
- "mads"
2412
- ],
2413
- "application/manifest+json": [
2414
- "webmanifest"
2415
- ],
2416
- "application/marc": [
2417
- "mrc"
2418
- ],
2419
- "application/marcxml+xml": [
2420
- "mrcx"
2421
- ],
2422
- "application/mathematica": [
2423
- "ma",
2424
- "nb",
2425
- "mb"
2426
- ],
2427
- "application/mathml+xml": [
2428
- "mathml"
2429
- ],
2430
- "application/mbox": [
2431
- "mbox"
2432
- ],
2433
- "application/media-policy-dataset+xml": [
2434
- "mpf"
2435
- ],
2436
- "application/mediaservercontrol+xml": [
2437
- "mscml"
2438
- ],
2439
- "application/metalink+xml": [
2440
- "metalink"
2441
- ],
2442
- "application/metalink4+xml": [
2443
- "meta4"
2444
- ],
2445
- "application/mets+xml": [
2446
- "mets"
2447
- ],
2448
- "application/mmt-aei+xml": [
2449
- "maei"
2450
- ],
2451
- "application/mmt-usd+xml": [
2452
- "musd"
2453
- ],
2454
- "application/mods+xml": [
2455
- "mods"
2456
- ],
2457
- "application/mp21": [
2458
- "m21",
2459
- "mp21"
2460
- ],
2461
- "application/mp4": [
2462
- "*mp4",
2463
- "*mpg4",
2464
- "mp4s",
2465
- "m4p"
2466
- ],
2467
- "application/msix": [
2468
- "msix"
2469
- ],
2470
- "application/msixbundle": [
2471
- "msixbundle"
2472
- ],
2473
- "application/msword": [
2474
- "doc",
2475
- "dot"
2476
- ],
2477
- "application/mxf": [
2478
- "mxf"
2479
- ],
2480
- "application/n-quads": [
2481
- "nq"
2482
- ],
2483
- "application/n-triples": [
2484
- "nt"
2485
- ],
2486
- "application/node": [
2487
- "cjs"
2488
- ],
2489
- "application/octet-stream": [
2490
- "bin",
2491
- "dms",
2492
- "lrf",
2493
- "mar",
2494
- "so",
2495
- "dist",
2496
- "distz",
2497
- "pkg",
2498
- "bpk",
2499
- "dump",
2500
- "elc",
2501
- "deploy",
2502
- "exe",
2503
- "dll",
2504
- "deb",
2505
- "dmg",
2506
- "iso",
2507
- "img",
2508
- "msi",
2509
- "msp",
2510
- "msm",
2511
- "buffer"
2512
- ],
2513
- "application/oda": [
2514
- "oda"
2515
- ],
2516
- "application/oebps-package+xml": [
2517
- "opf"
2518
- ],
2519
- "application/ogg": [
2520
- "ogx"
2521
- ],
2522
- "application/omdoc+xml": [
2523
- "omdoc"
2524
- ],
2525
- "application/onenote": [
2526
- "onetoc",
2527
- "onetoc2",
2528
- "onetmp",
2529
- "onepkg"
2530
- ],
2531
- "application/oxps": [
2532
- "oxps"
2533
- ],
2534
- "application/p2p-overlay+xml": [
2535
- "relo"
2536
- ],
2537
- "application/patch-ops-error+xml": [
2538
- "xer"
2539
- ],
2540
- "application/pdf": [
2541
- "pdf"
2542
- ],
2543
- "application/pgp-encrypted": [
2544
- "pgp"
2545
- ],
2546
- "application/pgp-keys": [
2547
- "asc"
2548
- ],
2549
- "application/pgp-signature": [
2550
- "sig",
2551
- "*asc"
2552
- ],
2553
- "application/pics-rules": [
2554
- "prf"
2555
- ],
2556
- "application/pkcs10": [
2557
- "p10"
2558
- ],
2559
- "application/pkcs7-mime": [
2560
- "p7m",
2561
- "p7c"
2562
- ],
2563
- "application/pkcs7-signature": [
2564
- "p7s"
2565
- ],
2566
- "application/pkcs8": [
2567
- "p8"
2568
- ],
2569
- "application/pkix-attr-cert": [
2570
- "ac"
2571
- ],
2572
- "application/pkix-cert": [
2573
- "cer"
2574
- ],
2575
- "application/pkix-crl": [
2576
- "crl"
2577
- ],
2578
- "application/pkix-pkipath": [
2579
- "pkipath"
2580
- ],
2581
- "application/pkixcmp": [
2582
- "pki"
2583
- ],
2584
- "application/pls+xml": [
2585
- "pls"
2586
- ],
2587
- "application/postscript": [
2588
- "ai",
2589
- "eps",
2590
- "ps"
2591
- ],
2592
- "application/provenance+xml": [
2593
- "provx"
2594
- ],
2595
- "application/pskc+xml": [
2596
- "pskcxml"
2597
- ],
2598
- "application/raml+yaml": [
2599
- "raml"
2600
- ],
2601
- "application/rdf+xml": [
2602
- "rdf",
2603
- "owl"
2604
- ],
2605
- "application/reginfo+xml": [
2606
- "rif"
2607
- ],
2608
- "application/relax-ng-compact-syntax": [
2609
- "rnc"
2610
- ],
2611
- "application/resource-lists+xml": [
2612
- "rl"
2613
- ],
2614
- "application/resource-lists-diff+xml": [
2615
- "rld"
2616
- ],
2617
- "application/rls-services+xml": [
2618
- "rs"
2619
- ],
2620
- "application/route-apd+xml": [
2621
- "rapd"
2622
- ],
2623
- "application/route-s-tsid+xml": [
2624
- "sls"
2625
- ],
2626
- "application/route-usd+xml": [
2627
- "rusd"
2628
- ],
2629
- "application/rpki-ghostbusters": [
2630
- "gbr"
2631
- ],
2632
- "application/rpki-manifest": [
2633
- "mft"
2634
- ],
2635
- "application/rpki-roa": [
2636
- "roa"
2637
- ],
2638
- "application/rsd+xml": [
2639
- "rsd"
2640
- ],
2641
- "application/rss+xml": [
2642
- "rss"
2643
- ],
2644
- "application/rtf": [
2645
- "rtf"
2646
- ],
2647
- "application/sbml+xml": [
2648
- "sbml"
2649
- ],
2650
- "application/scvp-cv-request": [
2651
- "scq"
2652
- ],
2653
- "application/scvp-cv-response": [
2654
- "scs"
2655
- ],
2656
- "application/scvp-vp-request": [
2657
- "spq"
2658
- ],
2659
- "application/scvp-vp-response": [
2660
- "spp"
2661
- ],
2662
- "application/sdp": [
2663
- "sdp"
2664
- ],
2665
- "application/senml+xml": [
2666
- "senmlx"
2667
- ],
2668
- "application/sensml+xml": [
2669
- "sensmlx"
2670
- ],
2671
- "application/set-payment-initiation": [
2672
- "setpay"
2673
- ],
2674
- "application/set-registration-initiation": [
2675
- "setreg"
2676
- ],
2677
- "application/shf+xml": [
2678
- "shf"
2679
- ],
2680
- "application/sieve": [
2681
- "siv",
2682
- "sieve"
2683
- ],
2684
- "application/smil+xml": [
2685
- "smi",
2686
- "smil"
2687
- ],
2688
- "application/sparql-query": [
2689
- "rq"
2690
- ],
2691
- "application/sparql-results+xml": [
2692
- "srx"
2693
- ],
2694
- "application/sql": [
2695
- "sql"
2696
- ],
2697
- "application/srgs": [
2698
- "gram"
2699
- ],
2700
- "application/srgs+xml": [
2701
- "grxml"
2702
- ],
2703
- "application/sru+xml": [
2704
- "sru"
2705
- ],
2706
- "application/ssdl+xml": [
2707
- "ssdl"
2708
- ],
2709
- "application/ssml+xml": [
2710
- "ssml"
2711
- ],
2712
- "application/swid+xml": [
2713
- "swidtag"
2714
- ],
2715
- "application/tei+xml": [
2716
- "tei",
2717
- "teicorpus"
2718
- ],
2719
- "application/thraud+xml": [
2720
- "tfi"
2721
- ],
2722
- "application/timestamped-data": [
2723
- "tsd"
2724
- ],
2725
- "application/toml": [
2726
- "toml"
2727
- ],
2728
- "application/trig": [
2729
- "trig"
2730
- ],
2731
- "application/ttml+xml": [
2732
- "ttml"
2733
- ],
2734
- "application/ubjson": [
2735
- "ubj"
2736
- ],
2737
- "application/urc-ressheet+xml": [
2738
- "rsheet"
2739
- ],
2740
- "application/urc-targetdesc+xml": [
2741
- "td"
2742
- ],
2743
- "application/voicexml+xml": [
2744
- "vxml"
2745
- ],
2746
- "application/wasm": [
2747
- "wasm"
2748
- ],
2749
- "application/watcherinfo+xml": [
2750
- "wif"
2751
- ],
2752
- "application/widget": [
2753
- "wgt"
2754
- ],
2755
- "application/winhlp": [
2756
- "hlp"
2757
- ],
2758
- "application/wsdl+xml": [
2759
- "wsdl"
2760
- ],
2761
- "application/wspolicy+xml": [
2762
- "wspolicy"
2763
- ],
2764
- "application/xaml+xml": [
2765
- "xaml"
2766
- ],
2767
- "application/xcap-att+xml": [
2768
- "xav"
2769
- ],
2770
- "application/xcap-caps+xml": [
2771
- "xca"
2772
- ],
2773
- "application/xcap-diff+xml": [
2774
- "xdf"
2775
- ],
2776
- "application/xcap-el+xml": [
2777
- "xel"
2778
- ],
2779
- "application/xcap-ns+xml": [
2780
- "xns"
2781
- ],
2782
- "application/xenc+xml": [
2783
- "xenc"
2784
- ],
2785
- "application/xfdf": [
2786
- "xfdf"
2787
- ],
2788
- "application/xhtml+xml": [
2789
- "xhtml",
2790
- "xht"
2791
- ],
2792
- "application/xliff+xml": [
2793
- "xlf"
2794
- ],
2795
- "application/xml": [
2796
- "xml",
2797
- "xsl",
2798
- "xsd",
2799
- "rng"
2800
- ],
2801
- "application/xml-dtd": [
2802
- "dtd"
2803
- ],
2804
- "application/xop+xml": [
2805
- "xop"
2806
- ],
2807
- "application/xproc+xml": [
2808
- "xpl"
2809
- ],
2810
- "application/xslt+xml": [
2811
- "*xsl",
2812
- "xslt"
2813
- ],
2814
- "application/xspf+xml": [
2815
- "xspf"
2816
- ],
2817
- "application/xv+xml": [
2818
- "mxml",
2819
- "xhvml",
2820
- "xvml",
2821
- "xvm"
2822
- ],
2823
- "application/yang": [
2824
- "yang"
2825
- ],
2826
- "application/yin+xml": [
2827
- "yin"
2828
- ],
2829
- "application/zip": [
2830
- "zip"
2831
- ],
2832
- "audio/3gpp": [
2833
- "*3gpp"
2834
- ],
2835
- "audio/aac": [
2836
- "adts",
2837
- "aac"
2838
- ],
2839
- "audio/adpcm": [
2840
- "adp"
2841
- ],
2842
- "audio/amr": [
2843
- "amr"
2844
- ],
2845
- "audio/basic": [
2846
- "au",
2847
- "snd"
2848
- ],
2849
- "audio/midi": [
2850
- "mid",
2851
- "midi",
2852
- "kar",
2853
- "rmi"
2854
- ],
2855
- "audio/mobile-xmf": [
2856
- "mxmf"
2857
- ],
2858
- "audio/mp3": [
2859
- "*mp3"
2860
- ],
2861
- "audio/mp4": [
2862
- "m4a",
2863
- "mp4a"
2864
- ],
2865
- "audio/mpeg": [
2866
- "mpga",
2867
- "mp2",
2868
- "mp2a",
2869
- "mp3",
2870
- "m2a",
2871
- "m3a"
2872
- ],
2873
- "audio/ogg": [
2874
- "oga",
2875
- "ogg",
2876
- "spx",
2877
- "opus"
2878
- ],
2879
- "audio/s3m": [
2880
- "s3m"
2881
- ],
2882
- "audio/silk": [
2883
- "sil"
2884
- ],
2885
- "audio/wav": [
2886
- "wav"
2887
- ],
2888
- "audio/wave": [
2889
- "*wav"
2890
- ],
2891
- "audio/webm": [
2892
- "weba"
2893
- ],
2894
- "audio/xm": [
2895
- "xm"
2896
- ],
2897
- "font/collection": [
2898
- "ttc"
2899
- ],
2900
- "font/otf": [
2901
- "otf"
2902
- ],
2903
- "font/ttf": [
2904
- "ttf"
2905
- ],
2906
- "font/woff": [
2907
- "woff"
2908
- ],
2909
- "font/woff2": [
2910
- "woff2"
2911
- ],
2912
- "image/aces": [
2913
- "exr"
2914
- ],
2915
- "image/apng": [
2916
- "apng"
2917
- ],
2918
- "image/avci": [
2919
- "avci"
2920
- ],
2921
- "image/avcs": [
2922
- "avcs"
2923
- ],
2924
- "image/avif": [
2925
- "avif"
2926
- ],
2927
- "image/bmp": [
2928
- "bmp",
2929
- "dib"
2930
- ],
2931
- "image/cgm": [
2932
- "cgm"
2933
- ],
2934
- "image/dicom-rle": [
2935
- "drle"
2936
- ],
2937
- "image/dpx": [
2938
- "dpx"
2939
- ],
2940
- "image/emf": [
2941
- "emf"
2942
- ],
2943
- "image/fits": [
2944
- "fits"
2945
- ],
2946
- "image/g3fax": [
2947
- "g3"
2948
- ],
2949
- "image/gif": [
2950
- "gif"
2951
- ],
2952
- "image/heic": [
2953
- "heic"
2954
- ],
2955
- "image/heic-sequence": [
2956
- "heics"
2957
- ],
2958
- "image/heif": [
2959
- "heif"
2960
- ],
2961
- "image/heif-sequence": [
2962
- "heifs"
2963
- ],
2964
- "image/hej2k": [
2965
- "hej2"
2966
- ],
2967
- "image/hsj2": [
2968
- "hsj2"
2969
- ],
2970
- "image/ief": [
2971
- "ief"
2972
- ],
2973
- "image/jls": [
2974
- "jls"
2975
- ],
2976
- "image/jp2": [
2977
- "jp2",
2978
- "jpg2"
2979
- ],
2980
- "image/jpeg": [
2981
- "jpeg",
2982
- "jpg",
2983
- "jpe"
2984
- ],
2985
- "image/jph": [
2986
- "jph"
2987
- ],
2988
- "image/jphc": [
2989
- "jhc"
2990
- ],
2991
- "image/jpm": [
2992
- "jpm",
2993
- "jpgm"
2994
- ],
2995
- "image/jpx": [
2996
- "jpx",
2997
- "jpf"
2998
- ],
2999
- "image/jxr": [
3000
- "jxr"
3001
- ],
3002
- "image/jxra": [
3003
- "jxra"
3004
- ],
3005
- "image/jxrs": [
3006
- "jxrs"
3007
- ],
3008
- "image/jxs": [
3009
- "jxs"
3010
- ],
3011
- "image/jxsc": [
3012
- "jxsc"
3013
- ],
3014
- "image/jxsi": [
3015
- "jxsi"
3016
- ],
3017
- "image/jxss": [
3018
- "jxss"
3019
- ],
3020
- "image/ktx": [
3021
- "ktx"
3022
- ],
3023
- "image/ktx2": [
3024
- "ktx2"
3025
- ],
3026
- "image/png": [
3027
- "png"
3028
- ],
3029
- "image/sgi": [
3030
- "sgi"
3031
- ],
3032
- "image/svg+xml": [
3033
- "svg",
3034
- "svgz"
3035
- ],
3036
- "image/t38": [
3037
- "t38"
3038
- ],
3039
- "image/tiff": [
3040
- "tif",
3041
- "tiff"
3042
- ],
3043
- "image/tiff-fx": [
3044
- "tfx"
3045
- ],
3046
- "image/webp": [
3047
- "webp"
3048
- ],
3049
- "image/wmf": [
3050
- "wmf"
3051
- ],
3052
- "message/disposition-notification": [
3053
- "disposition-notification"
3054
- ],
3055
- "message/global": [
3056
- "u8msg"
3057
- ],
3058
- "message/global-delivery-status": [
3059
- "u8dsn"
3060
- ],
3061
- "message/global-disposition-notification": [
3062
- "u8mdn"
3063
- ],
3064
- "message/global-headers": [
3065
- "u8hdr"
3066
- ],
3067
- "message/rfc822": [
3068
- "eml",
3069
- "mime"
3070
- ],
3071
- "model/3mf": [
3072
- "3mf"
3073
- ],
3074
- "model/gltf+json": [
3075
- "gltf"
3076
- ],
3077
- "model/gltf-binary": [
3078
- "glb"
3079
- ],
3080
- "model/iges": [
3081
- "igs",
3082
- "iges"
3083
- ],
3084
- "model/jt": [
3085
- "jt"
3086
- ],
3087
- "model/mesh": [
3088
- "msh",
3089
- "mesh",
3090
- "silo"
3091
- ],
3092
- "model/mtl": [
3093
- "mtl"
3094
- ],
3095
- "model/obj": [
3096
- "obj"
3097
- ],
3098
- "model/prc": [
3099
- "prc"
3100
- ],
3101
- "model/step+xml": [
3102
- "stpx"
3103
- ],
3104
- "model/step+zip": [
3105
- "stpz"
3106
- ],
3107
- "model/step-xml+zip": [
3108
- "stpxz"
3109
- ],
3110
- "model/stl": [
3111
- "stl"
3112
- ],
3113
- "model/u3d": [
3114
- "u3d"
3115
- ],
3116
- "model/vrml": [
3117
- "wrl",
3118
- "vrml"
3119
- ],
3120
- "model/x3d+binary": [
3121
- "*x3db",
3122
- "x3dbz"
3123
- ],
3124
- "model/x3d+fastinfoset": [
3125
- "x3db"
3126
- ],
3127
- "model/x3d+vrml": [
3128
- "*x3dv",
3129
- "x3dvz"
3130
- ],
3131
- "model/x3d+xml": [
3132
- "x3d",
3133
- "x3dz"
3134
- ],
3135
- "model/x3d-vrml": [
3136
- "x3dv"
3137
- ],
3138
- "text/cache-manifest": [
3139
- "appcache",
3140
- "manifest"
3141
- ],
3142
- "text/calendar": [
3143
- "ics",
3144
- "ifb"
3145
- ],
3146
- "text/coffeescript": [
3147
- "coffee",
3148
- "litcoffee"
3149
- ],
3150
- "text/css": [
3151
- "css"
3152
- ],
3153
- "text/csv": [
3154
- "csv"
3155
- ],
3156
- "text/html": [
3157
- "html",
3158
- "htm",
3159
- "shtml"
3160
- ],
3161
- "text/jade": [
3162
- "jade"
3163
- ],
3164
- "text/javascript": [
3165
- "js",
3166
- "mjs"
3167
- ],
3168
- "text/jsx": [
3169
- "jsx"
3170
- ],
3171
- "text/less": [
3172
- "less"
3173
- ],
3174
- "text/markdown": [
3175
- "md",
3176
- "markdown"
3177
- ],
3178
- "text/mathml": [
3179
- "mml"
3180
- ],
3181
- "text/mdx": [
3182
- "mdx"
3183
- ],
3184
- "text/n3": [
3185
- "n3"
3186
- ],
3187
- "text/plain": [
3188
- "txt",
3189
- "text",
3190
- "conf",
3191
- "def",
3192
- "list",
3193
- "log",
3194
- "in",
3195
- "ini"
3196
- ],
3197
- "text/richtext": [
3198
- "rtx"
3199
- ],
3200
- "text/rtf": [
3201
- "*rtf"
3202
- ],
3203
- "text/sgml": [
3204
- "sgml",
3205
- "sgm"
3206
- ],
3207
- "text/shex": [
3208
- "shex"
3209
- ],
3210
- "text/slim": [
3211
- "slim",
3212
- "slm"
3213
- ],
3214
- "text/spdx": [
3215
- "spdx"
3216
- ],
3217
- "text/stylus": [
3218
- "stylus",
3219
- "styl"
3220
- ],
3221
- "text/tab-separated-values": [
3222
- "tsv"
3223
- ],
3224
- "text/troff": [
3225
- "t",
3226
- "tr",
3227
- "roff",
3228
- "man",
3229
- "me",
3230
- "ms"
3231
- ],
3232
- "text/turtle": [
3233
- "ttl"
3234
- ],
3235
- "text/uri-list": [
3236
- "uri",
3237
- "uris",
3238
- "urls"
3239
- ],
3240
- "text/vcard": [
3241
- "vcard"
3242
- ],
3243
- "text/vtt": [
3244
- "vtt"
3245
- ],
3246
- "text/wgsl": [
3247
- "wgsl"
3248
- ],
3249
- "text/xml": [
3250
- "*xml"
3251
- ],
3252
- "text/yaml": [
3253
- "yaml",
3254
- "yml"
3255
- ],
3256
- "video/3gpp": [
3257
- "3gp",
3258
- "3gpp"
3259
- ],
3260
- "video/3gpp2": [
3261
- "3g2"
3262
- ],
3263
- "video/h261": [
3264
- "h261"
3265
- ],
3266
- "video/h263": [
3267
- "h263"
3268
- ],
3269
- "video/h264": [
3270
- "h264"
3271
- ],
3272
- "video/iso.segment": [
3273
- "m4s"
3274
- ],
3275
- "video/jpeg": [
3276
- "jpgv"
3277
- ],
3278
- "video/jpm": [
3279
- "*jpm",
3280
- "*jpgm"
3281
- ],
3282
- "video/mj2": [
3283
- "mj2",
3284
- "mjp2"
3285
- ],
3286
- "video/mp2t": [
3287
- "ts"
3288
- ],
3289
- "video/mp4": [
3290
- "mp4",
3291
- "mp4v",
3292
- "mpg4"
3293
- ],
3294
- "video/mpeg": [
3295
- "mpeg",
3296
- "mpg",
3297
- "mpe",
3298
- "m1v",
3299
- "m2v"
3300
- ],
3301
- "video/ogg": [
3302
- "ogv"
3303
- ],
3304
- "video/quicktime": [
3305
- "qt",
3306
- "mov"
3307
- ],
3308
- "video/webm": [
3309
- "webm"
3310
- ]
3311
- };
3312
- Object.freeze(standard_types);
3313
- const standard = standard_types;
105
+ var other_default = types;
106
+
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;
111
+
112
+ // ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/Mime.js
3314
113
  var __classPrivateFieldGet = function(receiver, state, kind, f) {
3315
- if ("a" === kind && !f) throw new TypeError("Private accessor was defined without a getter");
3316
- if ("function" == typeof state ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
3317
- return "m" === kind ? f : "a" === kind ? f.call(receiver) : f ? f.value : state.get(receiver);
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);
3318
117
  };
3319
- var _Mime_extensionToType, _Mime_typeToExtension, _Mime_typeToExtensions;
3320
- class Mime {
3321
- constructor(...args){
3322
- _Mime_extensionToType.set(this, new Map());
3323
- _Mime_typeToExtension.set(this, new Map());
3324
- _Mime_typeToExtensions.set(this, new Map());
3325
- for (const arg of args)this.define(arg);
118
+ var _Mime_extensionToType;
119
+ var _Mime_typeToExtension;
120
+ var _Mime_typeToExtensions;
121
+ 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);
3326
128
  }
3327
- define(typeMap, force = false) {
3328
- for (let [type, extensions] of Object.entries(typeMap)){
3329
- type = type.toLowerCase();
3330
- extensions = extensions.map((ext)=>ext.toLowerCase());
3331
- if (!__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").has(type)) __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").set(type, new Set());
3332
- const allExtensions = __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type);
3333
- let first = true;
3334
- for (let extension of extensions){
3335
- const starred = extension.startsWith('*');
3336
- extension = starred ? extension.slice(1) : extension;
3337
- allExtensions?.add(extension);
3338
- if (first) __classPrivateFieldGet(this, _Mime_typeToExtension, "f").set(type, extension);
3339
- first = false;
3340
- if (starred) continue;
3341
- const currentType = __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(extension);
3342
- if (currentType && currentType != type && !force) throw new Error(`"${type} -> ${extension}" conflicts with "${currentType} -> ${extension}". Pass \`force=true\` to override this definition.`);
3343
- __classPrivateFieldGet(this, _Mime_extensionToType, "f").set(extension, type);
3344
- }
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);
3345
145
  }
3346
- return this;
3347
- }
3348
- getType(path) {
3349
- if ('string' != typeof path) return null;
3350
- const last = path.replace(/^.*[/\\]/, '').toLowerCase();
3351
- const ext = last.replace(/^.*\./, '').toLowerCase();
3352
- const hasPath = last.length < path.length;
3353
- const hasDot = ext.length < last.length - 1;
3354
- if (!hasDot && hasPath) return null;
3355
- return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext) ?? null;
3356
- }
3357
- getExtension(type) {
3358
- if ('string' != typeof type) return null;
3359
- type = type?.split?.(';')[0];
3360
- return (type && __classPrivateFieldGet(this, _Mime_typeToExtension, "f").get(type.trim().toLowerCase())) ?? null;
3361
- }
3362
- getAllExtensions(type) {
3363
- if ('string' != typeof type) return null;
3364
- return __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type.toLowerCase()) ?? null;
3365
- }
3366
- _freeze() {
3367
- this.define = ()=>{
3368
- throw new Error('define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances');
3369
- };
3370
- Object.freeze(this);
3371
- for (const extensions of __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").values())Object.freeze(extensions);
3372
- return this;
3373
- }
3374
- _getTestState() {
3375
- return {
3376
- types: __classPrivateFieldGet(this, _Mime_extensionToType, "f"),
3377
- extensions: __classPrivateFieldGet(this, _Mime_typeToExtension, "f")
3378
- };
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
+ }
3379
155
  }
3380
- }
3381
- _Mime_extensionToType = new WeakMap(), _Mime_typeToExtension = new WeakMap(), _Mime_typeToExtensions = new WeakMap();
3382
- const src_Mime = Mime;
3383
- const src = new src_Mime(standard, other)._freeze();
3384
- const supabaseStorage = (config, hooks)=>(_)=>{
3385
- const supabase = (0, __WEBPACK_EXTERNAL_MODULE__supabase_supabase_js_06b6e9fe__.createClient)(config.supabaseUrl, config.supabaseAnonKey);
3386
- const bucket = supabase.storage.from(config.bucketName);
3387
- return {
3388
- name: "supabaseStorage",
3389
- async deleteBundle (bundleId) {
3390
- const Key = [
3391
- bundleId
3392
- ].join("/");
3393
- await bucket.remove([
3394
- Key
3395
- ]);
3396
- return Key;
3397
- },
3398
- async uploadBundle (bundleId, bundlePath) {
3399
- const Body = await __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__["default"].readFile(bundlePath);
3400
- const ContentType = src.getType(bundlePath) ?? void 0;
3401
- const filename = __WEBPACK_EXTERNAL_MODULE_path__["default"].basename(bundlePath);
3402
- const Key = [
3403
- bundleId,
3404
- filename
3405
- ].join("/");
3406
- const upload = await bucket.upload(Key, Body, {
3407
- contentType: ContentType
3408
- });
3409
- if (upload.error) throw upload.error;
3410
- const fullPath = upload.data.fullPath;
3411
- hooks?.onStorageUploaded?.();
3412
- const fileUrl = new URL(`storage/v1/object/public/${fullPath}`, config.supabaseUrl).toString();
3413
- return {
3414
- fileUrl: hooks?.transformFileUrl?.(fullPath) ?? fileUrl
3415
- };
3416
- }
3417
- };
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");
3418
183
  };
3419
- const supabaseApi = (supabaseUrl, supabaseAnonKey)=>{
3420
- const supabase = (0, __WEBPACK_EXTERNAL_MODULE__supabase_supabase_js_06b6e9fe__.createClient)(supabaseUrl, supabaseAnonKey);
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() {
3421
191
  return {
3422
- listBuckets: async ()=>{
3423
- const { data, error } = await supabase.storage.listBuckets();
3424
- if (error) throw error;
3425
- return data.map((file)=>({
3426
- id: file.id,
3427
- name: file.name,
3428
- isPublic: file.public,
3429
- createdAt: file.created_at
3430
- }));
3431
- },
3432
- createBucket: async (bucketName, options)=>{
3433
- const { data, error } = await supabase.storage.createBucket(bucketName, options);
3434
- if (error) throw error;
3435
- return data;
3436
- }
192
+ types: __classPrivateFieldGet(this, _Mime_extensionToType, "f"),
193
+ extensions: __classPrivateFieldGet(this, _Mime_typeToExtension, "f")
3437
194
  };
195
+ }
3438
196
  };
3439
- const supabaseConfigTomlTemplate = `
3440
- project_id = "%%projectId%%"
197
+ _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
198
+ var Mime_default = Mime;
3441
199
 
3442
- [db.seed]
3443
- enabled = false
3444
- `;
3445
- export { supabaseApi, supabaseConfigTomlTemplate, supabaseDatabase, supabaseStorage };
200
+ // ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/index.js
201
+ var src_default = new Mime_default(standard_default, other_default)._freeze();
202
+
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
240
+ };