@iconoma/cli 0.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +374 -0
  2. package/bin/run.cmd +3 -0
  3. package/bin/run.js +5 -0
  4. package/dist/commands/studio.d.ts +11 -0
  5. package/dist/commands/studio.d.ts.map +1 -0
  6. package/dist/commands/studio.js +34 -0
  7. package/dist/get-studio.d.ts +9 -0
  8. package/dist/get-studio.d.ts.map +1 -0
  9. package/dist/get-studio.js +4 -0
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +1 -0
  13. package/dist/studio/128.index.js +55 -0
  14. package/dist/studio/143.index.js +2457 -0
  15. package/dist/studio/148.index.js +744 -0
  16. package/dist/studio/211.index.js +47186 -0
  17. package/dist/studio/22.index.js +5942 -0
  18. package/dist/studio/437.index.js +20 -0
  19. package/dist/studio/509.index.js +2240 -0
  20. package/dist/studio/533.index.js +883 -0
  21. package/dist/studio/537.index.js +62 -0
  22. package/dist/studio/542.index.js +22 -0
  23. package/dist/studio/543.index.js +8172 -0
  24. package/dist/studio/593.index.js +38099 -0
  25. package/dist/studio/777.index.js +24 -0
  26. package/dist/studio/786.index.js +1065 -0
  27. package/dist/studio/860.index.js +13 -0
  28. package/dist/studio/876.index.js +3848 -0
  29. package/dist/studio/940.index.js +6772 -0
  30. package/dist/studio/951.index.js +98 -0
  31. package/dist/studio/c4c9b2153fb0d143f75f.js +1 -0
  32. package/dist/studio/client/assets/index-BD3Y-97G.css +2 -0
  33. package/dist/studio/client/assets/index-Dk8OjIgh.js +53 -0
  34. package/dist/studio/client/favicon.ico +0 -0
  35. package/dist/studio/client/index.html +21 -0
  36. package/dist/studio/index.js +22188 -0
  37. package/dist/studio/package.json +3 -0
  38. package/dist/tsconfig.tsbuildinfo +1 -0
  39. package/oclif.manifest.json +37 -0
  40. package/package.json +75 -0
@@ -0,0 +1,744 @@
1
+ export const id = 148;
2
+ export const ids = [148];
3
+ export const modules = {
4
+
5
+ /***/ 8148:
6
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
7
+
8
+ // ESM COMPAT FLAG
9
+ __webpack_require__.r(__webpack_exports__);
10
+
11
+ // EXPORTS
12
+ __webpack_require__.d(__webpack_exports__, {
13
+ "default": () => (/* binding */ build)
14
+ });
15
+
16
+ // EXTERNAL MODULE: external "node:fs"
17
+ var external_node_fs_ = __webpack_require__(3024);
18
+ // EXTERNAL MODULE: external "node:path"
19
+ var external_node_path_ = __webpack_require__(6760);
20
+ // EXTERNAL MODULE: external "path"
21
+ var external_path_ = __webpack_require__(6928);
22
+ // EXTERNAL MODULE: external "fs"
23
+ var external_fs_ = __webpack_require__(9896);
24
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/totalist@3.0.1/node_modules/totalist/sync/index.mjs
25
+
26
+
27
+
28
+ function totalist(dir, callback, pre='') {
29
+ dir = (0,external_path_.resolve)('.', dir);
30
+ let arr = (0,external_fs_.readdirSync)(dir);
31
+ let i=0, abs, stats;
32
+ for (; i < arr.length; i++) {
33
+ abs = (0,external_path_.join)(dir, arr[i]);
34
+ stats = (0,external_fs_.statSync)(abs);
35
+ stats.isDirectory()
36
+ ? totalist(abs, callback, (0,external_path_.join)(pre, arr[i]))
37
+ : callback((0,external_path_.join)(pre, arr[i]), abs, stats);
38
+ }
39
+ }
40
+
41
+ // EXTERNAL MODULE: external "node:querystring"
42
+ var external_node_querystring_ = __webpack_require__(1792);
43
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/build.mjs
44
+
45
+
46
+ /**
47
+ * @typedef ParsedURL
48
+ * @type {import('.').ParsedURL}
49
+ */
50
+
51
+ /**
52
+ * @typedef Request
53
+ * @property {string} url
54
+ * @property {ParsedURL} _parsedUrl
55
+ */
56
+
57
+ /**
58
+ * @param {Request} req
59
+ * @returns {ParsedURL|void}
60
+ */
61
+ function parse(req) {
62
+ let raw = req.url;
63
+ if (raw == null) return;
64
+
65
+ let prev = req._parsedUrl;
66
+ if (prev && prev.raw === raw) return prev;
67
+
68
+ let pathname=raw, search='', query, hash;
69
+
70
+ if (raw.length > 1) {
71
+ let idx = raw.indexOf('#', 1);
72
+
73
+ if (idx !== -1) {
74
+ hash = raw.substring(idx);
75
+ pathname = raw.substring(0, idx);
76
+ }
77
+
78
+ idx = pathname.indexOf('?', 1);
79
+
80
+ if (idx !== -1) {
81
+ search = pathname.substring(idx);
82
+ pathname = pathname.substring(0, idx);
83
+ if (search.length > 1) {
84
+ query = external_node_querystring_.parse(search.substring(1));
85
+ }
86
+ }
87
+ }
88
+
89
+ return req._parsedUrl = { pathname, search, query, hash, raw };
90
+ }
91
+
92
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/mrmime@2.0.1/node_modules/mrmime/index.mjs
93
+ const mimes = {
94
+ "3g2": "video/3gpp2",
95
+ "3gp": "video/3gpp",
96
+ "3gpp": "video/3gpp",
97
+ "3mf": "model/3mf",
98
+ "aac": "audio/aac",
99
+ "ac": "application/pkix-attr-cert",
100
+ "adp": "audio/adpcm",
101
+ "adts": "audio/aac",
102
+ "ai": "application/postscript",
103
+ "aml": "application/automationml-aml+xml",
104
+ "amlx": "application/automationml-amlx+zip",
105
+ "amr": "audio/amr",
106
+ "apng": "image/apng",
107
+ "appcache": "text/cache-manifest",
108
+ "appinstaller": "application/appinstaller",
109
+ "appx": "application/appx",
110
+ "appxbundle": "application/appxbundle",
111
+ "asc": "application/pgp-keys",
112
+ "atom": "application/atom+xml",
113
+ "atomcat": "application/atomcat+xml",
114
+ "atomdeleted": "application/atomdeleted+xml",
115
+ "atomsvc": "application/atomsvc+xml",
116
+ "au": "audio/basic",
117
+ "avci": "image/avci",
118
+ "avcs": "image/avcs",
119
+ "avif": "image/avif",
120
+ "aw": "application/applixware",
121
+ "bdoc": "application/bdoc",
122
+ "bin": "application/octet-stream",
123
+ "bmp": "image/bmp",
124
+ "bpk": "application/octet-stream",
125
+ "btf": "image/prs.btif",
126
+ "btif": "image/prs.btif",
127
+ "buffer": "application/octet-stream",
128
+ "ccxml": "application/ccxml+xml",
129
+ "cdfx": "application/cdfx+xml",
130
+ "cdmia": "application/cdmi-capability",
131
+ "cdmic": "application/cdmi-container",
132
+ "cdmid": "application/cdmi-domain",
133
+ "cdmio": "application/cdmi-object",
134
+ "cdmiq": "application/cdmi-queue",
135
+ "cer": "application/pkix-cert",
136
+ "cgm": "image/cgm",
137
+ "cjs": "application/node",
138
+ "class": "application/java-vm",
139
+ "coffee": "text/coffeescript",
140
+ "conf": "text/plain",
141
+ "cpl": "application/cpl+xml",
142
+ "cpt": "application/mac-compactpro",
143
+ "crl": "application/pkix-crl",
144
+ "css": "text/css",
145
+ "csv": "text/csv",
146
+ "cu": "application/cu-seeme",
147
+ "cwl": "application/cwl",
148
+ "cww": "application/prs.cww",
149
+ "davmount": "application/davmount+xml",
150
+ "dbk": "application/docbook+xml",
151
+ "deb": "application/octet-stream",
152
+ "def": "text/plain",
153
+ "deploy": "application/octet-stream",
154
+ "dib": "image/bmp",
155
+ "disposition-notification": "message/disposition-notification",
156
+ "dist": "application/octet-stream",
157
+ "distz": "application/octet-stream",
158
+ "dll": "application/octet-stream",
159
+ "dmg": "application/octet-stream",
160
+ "dms": "application/octet-stream",
161
+ "doc": "application/msword",
162
+ "dot": "application/msword",
163
+ "dpx": "image/dpx",
164
+ "drle": "image/dicom-rle",
165
+ "dsc": "text/prs.lines.tag",
166
+ "dssc": "application/dssc+der",
167
+ "dtd": "application/xml-dtd",
168
+ "dump": "application/octet-stream",
169
+ "dwd": "application/atsc-dwd+xml",
170
+ "ear": "application/java-archive",
171
+ "ecma": "application/ecmascript",
172
+ "elc": "application/octet-stream",
173
+ "emf": "image/emf",
174
+ "eml": "message/rfc822",
175
+ "emma": "application/emma+xml",
176
+ "emotionml": "application/emotionml+xml",
177
+ "eps": "application/postscript",
178
+ "epub": "application/epub+zip",
179
+ "exe": "application/octet-stream",
180
+ "exi": "application/exi",
181
+ "exp": "application/express",
182
+ "exr": "image/aces",
183
+ "ez": "application/andrew-inset",
184
+ "fdf": "application/fdf",
185
+ "fdt": "application/fdt+xml",
186
+ "fits": "image/fits",
187
+ "g3": "image/g3fax",
188
+ "gbr": "application/rpki-ghostbusters",
189
+ "geojson": "application/geo+json",
190
+ "gif": "image/gif",
191
+ "glb": "model/gltf-binary",
192
+ "gltf": "model/gltf+json",
193
+ "gml": "application/gml+xml",
194
+ "gpx": "application/gpx+xml",
195
+ "gram": "application/srgs",
196
+ "grxml": "application/srgs+xml",
197
+ "gxf": "application/gxf",
198
+ "gz": "application/gzip",
199
+ "h261": "video/h261",
200
+ "h263": "video/h263",
201
+ "h264": "video/h264",
202
+ "heic": "image/heic",
203
+ "heics": "image/heic-sequence",
204
+ "heif": "image/heif",
205
+ "heifs": "image/heif-sequence",
206
+ "hej2": "image/hej2k",
207
+ "held": "application/atsc-held+xml",
208
+ "hjson": "application/hjson",
209
+ "hlp": "application/winhlp",
210
+ "hqx": "application/mac-binhex40",
211
+ "hsj2": "image/hsj2",
212
+ "htm": "text/html",
213
+ "html": "text/html",
214
+ "ics": "text/calendar",
215
+ "ief": "image/ief",
216
+ "ifb": "text/calendar",
217
+ "iges": "model/iges",
218
+ "igs": "model/iges",
219
+ "img": "application/octet-stream",
220
+ "in": "text/plain",
221
+ "ini": "text/plain",
222
+ "ink": "application/inkml+xml",
223
+ "inkml": "application/inkml+xml",
224
+ "ipfix": "application/ipfix",
225
+ "iso": "application/octet-stream",
226
+ "its": "application/its+xml",
227
+ "jade": "text/jade",
228
+ "jar": "application/java-archive",
229
+ "jhc": "image/jphc",
230
+ "jls": "image/jls",
231
+ "jp2": "image/jp2",
232
+ "jpe": "image/jpeg",
233
+ "jpeg": "image/jpeg",
234
+ "jpf": "image/jpx",
235
+ "jpg": "image/jpeg",
236
+ "jpg2": "image/jp2",
237
+ "jpgm": "image/jpm",
238
+ "jpgv": "video/jpeg",
239
+ "jph": "image/jph",
240
+ "jpm": "image/jpm",
241
+ "jpx": "image/jpx",
242
+ "js": "text/javascript",
243
+ "json": "application/json",
244
+ "json5": "application/json5",
245
+ "jsonld": "application/ld+json",
246
+ "jsonml": "application/jsonml+json",
247
+ "jsx": "text/jsx",
248
+ "jt": "model/jt",
249
+ "jxl": "image/jxl",
250
+ "jxr": "image/jxr",
251
+ "jxra": "image/jxra",
252
+ "jxrs": "image/jxrs",
253
+ "jxs": "image/jxs",
254
+ "jxsc": "image/jxsc",
255
+ "jxsi": "image/jxsi",
256
+ "jxss": "image/jxss",
257
+ "kar": "audio/midi",
258
+ "ktx": "image/ktx",
259
+ "ktx2": "image/ktx2",
260
+ "less": "text/less",
261
+ "lgr": "application/lgr+xml",
262
+ "list": "text/plain",
263
+ "litcoffee": "text/coffeescript",
264
+ "log": "text/plain",
265
+ "lostxml": "application/lost+xml",
266
+ "lrf": "application/octet-stream",
267
+ "m1v": "video/mpeg",
268
+ "m21": "application/mp21",
269
+ "m2a": "audio/mpeg",
270
+ "m2t": "video/mp2t",
271
+ "m2ts": "video/mp2t",
272
+ "m2v": "video/mpeg",
273
+ "m3a": "audio/mpeg",
274
+ "m4a": "audio/mp4",
275
+ "m4p": "application/mp4",
276
+ "m4s": "video/iso.segment",
277
+ "ma": "application/mathematica",
278
+ "mads": "application/mads+xml",
279
+ "maei": "application/mmt-aei+xml",
280
+ "man": "text/troff",
281
+ "manifest": "text/cache-manifest",
282
+ "map": "application/json",
283
+ "mar": "application/octet-stream",
284
+ "markdown": "text/markdown",
285
+ "mathml": "application/mathml+xml",
286
+ "mb": "application/mathematica",
287
+ "mbox": "application/mbox",
288
+ "md": "text/markdown",
289
+ "mdx": "text/mdx",
290
+ "me": "text/troff",
291
+ "mesh": "model/mesh",
292
+ "meta4": "application/metalink4+xml",
293
+ "metalink": "application/metalink+xml",
294
+ "mets": "application/mets+xml",
295
+ "mft": "application/rpki-manifest",
296
+ "mid": "audio/midi",
297
+ "midi": "audio/midi",
298
+ "mime": "message/rfc822",
299
+ "mj2": "video/mj2",
300
+ "mjp2": "video/mj2",
301
+ "mjs": "text/javascript",
302
+ "mml": "text/mathml",
303
+ "mods": "application/mods+xml",
304
+ "mov": "video/quicktime",
305
+ "mp2": "audio/mpeg",
306
+ "mp21": "application/mp21",
307
+ "mp2a": "audio/mpeg",
308
+ "mp3": "audio/mpeg",
309
+ "mp4": "video/mp4",
310
+ "mp4a": "audio/mp4",
311
+ "mp4s": "application/mp4",
312
+ "mp4v": "video/mp4",
313
+ "mpd": "application/dash+xml",
314
+ "mpe": "video/mpeg",
315
+ "mpeg": "video/mpeg",
316
+ "mpf": "application/media-policy-dataset+xml",
317
+ "mpg": "video/mpeg",
318
+ "mpg4": "video/mp4",
319
+ "mpga": "audio/mpeg",
320
+ "mpp": "application/dash-patch+xml",
321
+ "mrc": "application/marc",
322
+ "mrcx": "application/marcxml+xml",
323
+ "ms": "text/troff",
324
+ "mscml": "application/mediaservercontrol+xml",
325
+ "msh": "model/mesh",
326
+ "msi": "application/octet-stream",
327
+ "msix": "application/msix",
328
+ "msixbundle": "application/msixbundle",
329
+ "msm": "application/octet-stream",
330
+ "msp": "application/octet-stream",
331
+ "mtl": "model/mtl",
332
+ "mts": "video/mp2t",
333
+ "musd": "application/mmt-usd+xml",
334
+ "mxf": "application/mxf",
335
+ "mxmf": "audio/mobile-xmf",
336
+ "mxml": "application/xv+xml",
337
+ "n3": "text/n3",
338
+ "nb": "application/mathematica",
339
+ "nq": "application/n-quads",
340
+ "nt": "application/n-triples",
341
+ "obj": "model/obj",
342
+ "oda": "application/oda",
343
+ "oga": "audio/ogg",
344
+ "ogg": "audio/ogg",
345
+ "ogv": "video/ogg",
346
+ "ogx": "application/ogg",
347
+ "omdoc": "application/omdoc+xml",
348
+ "onepkg": "application/onenote",
349
+ "onetmp": "application/onenote",
350
+ "onetoc": "application/onenote",
351
+ "onetoc2": "application/onenote",
352
+ "opf": "application/oebps-package+xml",
353
+ "opus": "audio/ogg",
354
+ "otf": "font/otf",
355
+ "owl": "application/rdf+xml",
356
+ "oxps": "application/oxps",
357
+ "p10": "application/pkcs10",
358
+ "p7c": "application/pkcs7-mime",
359
+ "p7m": "application/pkcs7-mime",
360
+ "p7s": "application/pkcs7-signature",
361
+ "p8": "application/pkcs8",
362
+ "pdf": "application/pdf",
363
+ "pfr": "application/font-tdpfr",
364
+ "pgp": "application/pgp-encrypted",
365
+ "pkg": "application/octet-stream",
366
+ "pki": "application/pkixcmp",
367
+ "pkipath": "application/pkix-pkipath",
368
+ "pls": "application/pls+xml",
369
+ "png": "image/png",
370
+ "prc": "model/prc",
371
+ "prf": "application/pics-rules",
372
+ "provx": "application/provenance+xml",
373
+ "ps": "application/postscript",
374
+ "pskcxml": "application/pskc+xml",
375
+ "pti": "image/prs.pti",
376
+ "qt": "video/quicktime",
377
+ "raml": "application/raml+yaml",
378
+ "rapd": "application/route-apd+xml",
379
+ "rdf": "application/rdf+xml",
380
+ "relo": "application/p2p-overlay+xml",
381
+ "rif": "application/reginfo+xml",
382
+ "rl": "application/resource-lists+xml",
383
+ "rld": "application/resource-lists-diff+xml",
384
+ "rmi": "audio/midi",
385
+ "rnc": "application/relax-ng-compact-syntax",
386
+ "rng": "application/xml",
387
+ "roa": "application/rpki-roa",
388
+ "roff": "text/troff",
389
+ "rq": "application/sparql-query",
390
+ "rs": "application/rls-services+xml",
391
+ "rsat": "application/atsc-rsat+xml",
392
+ "rsd": "application/rsd+xml",
393
+ "rsheet": "application/urc-ressheet+xml",
394
+ "rss": "application/rss+xml",
395
+ "rtf": "text/rtf",
396
+ "rtx": "text/richtext",
397
+ "rusd": "application/route-usd+xml",
398
+ "s3m": "audio/s3m",
399
+ "sbml": "application/sbml+xml",
400
+ "scq": "application/scvp-cv-request",
401
+ "scs": "application/scvp-cv-response",
402
+ "sdp": "application/sdp",
403
+ "senmlx": "application/senml+xml",
404
+ "sensmlx": "application/sensml+xml",
405
+ "ser": "application/java-serialized-object",
406
+ "setpay": "application/set-payment-initiation",
407
+ "setreg": "application/set-registration-initiation",
408
+ "sgi": "image/sgi",
409
+ "sgm": "text/sgml",
410
+ "sgml": "text/sgml",
411
+ "shex": "text/shex",
412
+ "shf": "application/shf+xml",
413
+ "shtml": "text/html",
414
+ "sieve": "application/sieve",
415
+ "sig": "application/pgp-signature",
416
+ "sil": "audio/silk",
417
+ "silo": "model/mesh",
418
+ "siv": "application/sieve",
419
+ "slim": "text/slim",
420
+ "slm": "text/slim",
421
+ "sls": "application/route-s-tsid+xml",
422
+ "smi": "application/smil+xml",
423
+ "smil": "application/smil+xml",
424
+ "snd": "audio/basic",
425
+ "so": "application/octet-stream",
426
+ "spdx": "text/spdx",
427
+ "spp": "application/scvp-vp-response",
428
+ "spq": "application/scvp-vp-request",
429
+ "spx": "audio/ogg",
430
+ "sql": "application/sql",
431
+ "sru": "application/sru+xml",
432
+ "srx": "application/sparql-results+xml",
433
+ "ssdl": "application/ssdl+xml",
434
+ "ssml": "application/ssml+xml",
435
+ "stk": "application/hyperstudio",
436
+ "stl": "model/stl",
437
+ "stpx": "model/step+xml",
438
+ "stpxz": "model/step-xml+zip",
439
+ "stpz": "model/step+zip",
440
+ "styl": "text/stylus",
441
+ "stylus": "text/stylus",
442
+ "svg": "image/svg+xml",
443
+ "svgz": "image/svg+xml",
444
+ "swidtag": "application/swid+xml",
445
+ "t": "text/troff",
446
+ "t38": "image/t38",
447
+ "td": "application/urc-targetdesc+xml",
448
+ "tei": "application/tei+xml",
449
+ "teicorpus": "application/tei+xml",
450
+ "text": "text/plain",
451
+ "tfi": "application/thraud+xml",
452
+ "tfx": "image/tiff-fx",
453
+ "tif": "image/tiff",
454
+ "tiff": "image/tiff",
455
+ "toml": "application/toml",
456
+ "tr": "text/troff",
457
+ "trig": "application/trig",
458
+ "ts": "video/mp2t",
459
+ "tsd": "application/timestamped-data",
460
+ "tsv": "text/tab-separated-values",
461
+ "ttc": "font/collection",
462
+ "ttf": "font/ttf",
463
+ "ttl": "text/turtle",
464
+ "ttml": "application/ttml+xml",
465
+ "txt": "text/plain",
466
+ "u3d": "model/u3d",
467
+ "u8dsn": "message/global-delivery-status",
468
+ "u8hdr": "message/global-headers",
469
+ "u8mdn": "message/global-disposition-notification",
470
+ "u8msg": "message/global",
471
+ "ubj": "application/ubjson",
472
+ "uri": "text/uri-list",
473
+ "uris": "text/uri-list",
474
+ "urls": "text/uri-list",
475
+ "vcard": "text/vcard",
476
+ "vrml": "model/vrml",
477
+ "vtt": "text/vtt",
478
+ "vxml": "application/voicexml+xml",
479
+ "war": "application/java-archive",
480
+ "wasm": "application/wasm",
481
+ "wav": "audio/wav",
482
+ "weba": "audio/webm",
483
+ "webm": "video/webm",
484
+ "webmanifest": "application/manifest+json",
485
+ "webp": "image/webp",
486
+ "wgsl": "text/wgsl",
487
+ "wgt": "application/widget",
488
+ "wif": "application/watcherinfo+xml",
489
+ "wmf": "image/wmf",
490
+ "woff": "font/woff",
491
+ "woff2": "font/woff2",
492
+ "wrl": "model/vrml",
493
+ "wsdl": "application/wsdl+xml",
494
+ "wspolicy": "application/wspolicy+xml",
495
+ "x3d": "model/x3d+xml",
496
+ "x3db": "model/x3d+fastinfoset",
497
+ "x3dbz": "model/x3d+binary",
498
+ "x3dv": "model/x3d-vrml",
499
+ "x3dvz": "model/x3d+vrml",
500
+ "x3dz": "model/x3d+xml",
501
+ "xaml": "application/xaml+xml",
502
+ "xav": "application/xcap-att+xml",
503
+ "xca": "application/xcap-caps+xml",
504
+ "xcs": "application/calendar+xml",
505
+ "xdf": "application/xcap-diff+xml",
506
+ "xdssc": "application/dssc+xml",
507
+ "xel": "application/xcap-el+xml",
508
+ "xenc": "application/xenc+xml",
509
+ "xer": "application/patch-ops-error+xml",
510
+ "xfdf": "application/xfdf",
511
+ "xht": "application/xhtml+xml",
512
+ "xhtml": "application/xhtml+xml",
513
+ "xhvml": "application/xv+xml",
514
+ "xlf": "application/xliff+xml",
515
+ "xm": "audio/xm",
516
+ "xml": "text/xml",
517
+ "xns": "application/xcap-ns+xml",
518
+ "xop": "application/xop+xml",
519
+ "xpl": "application/xproc+xml",
520
+ "xsd": "application/xml",
521
+ "xsf": "application/prs.xsf+xml",
522
+ "xsl": "application/xml",
523
+ "xslt": "application/xml",
524
+ "xspf": "application/xspf+xml",
525
+ "xvm": "application/xv+xml",
526
+ "xvml": "application/xv+xml",
527
+ "yaml": "text/yaml",
528
+ "yang": "application/yang",
529
+ "yin": "application/yin+xml",
530
+ "yml": "text/yaml",
531
+ "zip": "application/zip"
532
+ };
533
+
534
+ function lookup(extn) {
535
+ let tmp = ('' + extn).trim().toLowerCase();
536
+ let idx = tmp.lastIndexOf('.');
537
+ return mimes[!~idx ? tmp : tmp.substring(++idx)];
538
+ }
539
+
540
+
541
+
542
+ ;// CONCATENATED MODULE: ../../node_modules/.pnpm/sirv@3.0.2/node_modules/sirv/build.mjs
543
+
544
+
545
+
546
+
547
+
548
+
549
+ const noop = () => {};
550
+
551
+ function isMatch(uri, arr) {
552
+ for (let i=0; i < arr.length; i++) {
553
+ if (arr[i].test(uri)) return true;
554
+ }
555
+ }
556
+
557
+ function toAssume(uri, extns) {
558
+ let i=0, x, len=uri.length - 1;
559
+ if (uri.charCodeAt(len) === 47) {
560
+ uri = uri.substring(0, len);
561
+ }
562
+
563
+ let arr=[], tmp=`${uri}/index`;
564
+ for (; i < extns.length; i++) {
565
+ x = extns[i] ? `.${extns[i]}` : '';
566
+ if (uri) arr.push(uri + x);
567
+ arr.push(tmp + x);
568
+ }
569
+
570
+ return arr;
571
+ }
572
+
573
+ function viaCache(cache, uri, extns) {
574
+ let i=0, data, arr=toAssume(uri, extns);
575
+ for (; i < arr.length; i++) {
576
+ if (data = cache[arr[i]]) return data;
577
+ }
578
+ }
579
+
580
+ function viaLocal(dir, isEtag, uri, extns) {
581
+ let i=0, arr=toAssume(uri, extns);
582
+ let abs, stats, name, headers;
583
+ for (; i < arr.length; i++) {
584
+ abs = (0,external_node_path_.normalize)(
585
+ (0,external_node_path_.join)(dir, name=arr[i])
586
+ );
587
+
588
+ if (abs.startsWith(dir) && external_node_fs_.existsSync(abs)) {
589
+ stats = external_node_fs_.statSync(abs);
590
+ if (stats.isDirectory()) continue;
591
+ headers = toHeaders(name, stats, isEtag);
592
+ headers['Cache-Control'] = isEtag ? 'no-cache' : 'no-store';
593
+ return { abs, stats, headers };
594
+ }
595
+ }
596
+ }
597
+
598
+ function is404(req, res) {
599
+ return (res.statusCode=404,res.end());
600
+ }
601
+
602
+ function send(req, res, file, stats, headers) {
603
+ let code=200, tmp, opts={};
604
+ headers = { ...headers };
605
+
606
+ for (let key in headers) {
607
+ tmp = res.getHeader(key);
608
+ if (tmp) headers[key] = tmp;
609
+ }
610
+
611
+ if (tmp = res.getHeader('content-type')) {
612
+ headers['Content-Type'] = tmp;
613
+ }
614
+
615
+ if (req.headers.range) {
616
+ code = 206;
617
+ let [x, y] = req.headers.range.replace('bytes=', '').split('-');
618
+ let end = opts.end = parseInt(y, 10) || stats.size - 1;
619
+ let start = opts.start = parseInt(x, 10) || 0;
620
+
621
+ if (end >= stats.size) {
622
+ end = stats.size - 1;
623
+ }
624
+
625
+ if (start >= stats.size) {
626
+ res.setHeader('Content-Range', `bytes */${stats.size}`);
627
+ res.statusCode = 416;
628
+ return res.end();
629
+ }
630
+
631
+ headers['Content-Range'] = `bytes ${start}-${end}/${stats.size}`;
632
+ headers['Content-Length'] = (end - start + 1);
633
+ headers['Accept-Ranges'] = 'bytes';
634
+ }
635
+
636
+ res.writeHead(code, headers);
637
+ external_node_fs_.createReadStream(file, opts).pipe(res);
638
+ }
639
+
640
+ const ENCODING = {
641
+ '.br': 'br',
642
+ '.gz': 'gzip',
643
+ };
644
+
645
+ function toHeaders(name, stats, isEtag) {
646
+ let enc = ENCODING[name.slice(-3)];
647
+
648
+ let ctype = lookup(name.slice(0, enc && -3)) || '';
649
+ if (ctype === 'text/html') ctype += ';charset=utf-8';
650
+
651
+ let headers = {
652
+ 'Content-Length': stats.size,
653
+ 'Content-Type': ctype,
654
+ 'Last-Modified': stats.mtime.toUTCString(),
655
+ };
656
+
657
+ if (enc) headers['Content-Encoding'] = enc;
658
+ if (isEtag) headers['ETag'] = `W/"${stats.size}-${stats.mtime.getTime()}"`;
659
+
660
+ return headers;
661
+ }
662
+
663
+ /* harmony default export */ function build(dir, opts={}) {
664
+ dir = (0,external_node_path_.resolve)(dir || '.');
665
+
666
+ let isNotFound = opts.onNoMatch || is404;
667
+ let setHeaders = opts.setHeaders || noop;
668
+
669
+ let extensions = opts.extensions || ['html', 'htm'];
670
+ let gzips = opts.gzip && extensions.map(x => `${x}.gz`).concat('gz');
671
+ let brots = opts.brotli && extensions.map(x => `${x}.br`).concat('br');
672
+
673
+ const FILES = {};
674
+
675
+ let fallback = '/';
676
+ let isEtag = !!opts.etag;
677
+ let isSPA = !!opts.single;
678
+ if (typeof opts.single === 'string') {
679
+ let idx = opts.single.lastIndexOf('.');
680
+ fallback += !!~idx ? opts.single.substring(0, idx) : opts.single;
681
+ }
682
+
683
+ let ignores = [];
684
+ if (opts.ignores !== false) {
685
+ ignores.push(/[/]([A-Za-z\s\d~$._-]+\.\w+){1,}$/); // any extn
686
+ if (opts.dotfiles) ignores.push(/\/\.\w/);
687
+ else ignores.push(/\/\.well-known/);
688
+ [].concat(opts.ignores || []).forEach(x => {
689
+ ignores.push(new RegExp(x, 'i'));
690
+ });
691
+ }
692
+
693
+ let cc = opts.maxAge != null && `public,max-age=${opts.maxAge}`;
694
+ if (cc && opts.immutable) cc += ',immutable';
695
+ else if (cc && opts.maxAge === 0) cc += ',must-revalidate';
696
+
697
+ if (!opts.dev) {
698
+ totalist(dir, (name, abs, stats) => {
699
+ if (/\.well-known[\\+\/]/.test(name)) {} // keep
700
+ else if (!opts.dotfiles && /(^\.|[\\+|\/+]\.)/.test(name)) return;
701
+
702
+ let headers = toHeaders(name, stats, isEtag);
703
+ if (cc) headers['Cache-Control'] = cc;
704
+
705
+ FILES['/' + name.normalize().replace(/\\+/g, '/')] = { abs, stats, headers };
706
+ });
707
+ }
708
+
709
+ let lookup = opts.dev ? viaLocal.bind(0, dir + external_node_path_.sep, isEtag) : viaCache.bind(0, FILES);
710
+
711
+ return function (req, res, next) {
712
+ let extns = [''];
713
+ let pathname = parse(req).pathname;
714
+ let val = req.headers['accept-encoding'] || '';
715
+ if (gzips && val.includes('gzip')) extns.unshift(...gzips);
716
+ if (brots && /(br|brotli)/i.test(val)) extns.unshift(...brots);
717
+ extns.push(...extensions); // [...br, ...gz, orig, ...exts]
718
+
719
+ if (pathname.indexOf('%') !== -1) {
720
+ try { pathname = decodeURI(pathname) }
721
+ catch (err) { /* malform uri */ }
722
+ }
723
+
724
+ let data = lookup(pathname, extns) || isSPA && !isMatch(pathname, ignores) && lookup(fallback, extns);
725
+ if (!data) return next ? next() : isNotFound(req, res);
726
+
727
+ if (isEtag && req.headers['if-none-match'] === data.headers['ETag']) {
728
+ res.writeHead(304);
729
+ return res.end();
730
+ }
731
+
732
+ if (gzips || brots) {
733
+ res.setHeader('Vary', 'Accept-Encoding');
734
+ }
735
+
736
+ setHeaders(res, pathname, data.stats);
737
+ send(req, res, data.abs, data.stats, data.headers);
738
+ };
739
+ }
740
+
741
+
742
+ /***/ })
743
+
744
+ };