@l1yp/file-viewer 0.1.4 → 0.1.6

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 (177) hide show
  1. package/README.md +57 -6
  2. package/dist/assets/step.worker-CfDTYOf_.js.map +1 -0
  3. package/dist/components/AnsiText.d.ts +47 -0
  4. package/dist/components/AnsiText.js +41 -0
  5. package/dist/components/AnsiText.js.map +1 -0
  6. package/dist/components/CertViewer.js +1 -1
  7. package/dist/components/CertViewer.js.map +1 -1
  8. package/dist/components/CertViewer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  9. package/dist/components/CodeView.js +1 -1
  10. package/dist/components/CodeView.js.map +1 -1
  11. package/dist/components/CodeView.vue_vue_type_script_setup_true_lang.js +80 -71
  12. package/dist/components/CodeView.vue_vue_type_script_setup_true_lang.js.map +1 -1
  13. package/dist/components/DocxEmbeddedFiles.js +9 -0
  14. package/dist/components/DocxEmbeddedFiles.js.map +1 -0
  15. package/dist/components/DocxEmbeddedFiles.vue.d.ts +15 -0
  16. package/dist/components/DocxEmbeddedFiles.vue_vue_type_script_setup_true_lang.js +69 -0
  17. package/dist/components/DocxEmbeddedFiles.vue_vue_type_script_setup_true_lang.js.map +1 -0
  18. package/dist/components/DocxNavigationPane.js +1 -1
  19. package/dist/components/DocxNavigationPane.js.map +1 -1
  20. package/dist/components/DocxNavigationPane.vue_vue_type_script_setup_true_lang.js.map +1 -1
  21. package/dist/components/DocxViewer.js +1 -1
  22. package/dist/components/DocxViewer.js.map +1 -1
  23. package/dist/components/DocxViewer.vue.d.ts +1 -1
  24. package/dist/components/DocxViewer.vue_vue_type_script_setup_true_lang.js +182 -50
  25. package/dist/components/DocxViewer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  26. package/dist/components/EplViewer.js +1 -1
  27. package/dist/components/EplViewer.js.map +1 -1
  28. package/dist/components/EplViewer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  29. package/dist/components/FileViewerBody.js +1 -1
  30. package/dist/components/FileViewerBody.js.map +1 -1
  31. package/dist/components/FileViewerBody.vue.d.ts +1 -0
  32. package/dist/components/FileViewerBody.vue_vue_type_script_setup_true_lang.js +292 -281
  33. package/dist/components/FileViewerBody.vue_vue_type_script_setup_true_lang.js.map +1 -1
  34. package/dist/components/FileViewerPanel.js +1 -1
  35. package/dist/components/FileViewerPanel.js.map +1 -1
  36. package/dist/components/FileViewerPanel.vue.d.ts +6 -1
  37. package/dist/components/FileViewerPanel.vue_vue_type_script_setup_true_lang.js +53 -51
  38. package/dist/components/FileViewerPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  39. package/dist/components/HarViewer.js +1 -1
  40. package/dist/components/HarViewer.js.map +1 -1
  41. package/dist/components/HarViewer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  42. package/dist/components/JksViewer.js +1 -1
  43. package/dist/components/JksViewer.js.map +1 -1
  44. package/dist/components/JksViewer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  45. package/dist/components/LogViewer.js +1 -1
  46. package/dist/components/LogViewer.js.map +1 -1
  47. package/dist/components/LogViewer.vue.d.ts +3 -1
  48. package/dist/components/LogViewer.vue_vue_type_script_setup_true_lang.js +284 -280
  49. package/dist/components/LogViewer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  50. package/dist/components/ModelViewModes.js +9 -0
  51. package/dist/components/ModelViewModes.js.map +1 -0
  52. package/dist/components/ModelViewModes.vue.d.ts +11 -0
  53. package/dist/components/ModelViewModes.vue_vue_type_script_setup_true_lang.js +49 -0
  54. package/dist/components/ModelViewModes.vue_vue_type_script_setup_true_lang.js.map +1 -0
  55. package/dist/components/ModelViewer.js +1 -1
  56. package/dist/components/ModelViewer.js.map +1 -1
  57. package/dist/components/ModelViewer.vue.d.ts +2 -1
  58. package/dist/components/ModelViewer.vue_vue_type_script_setup_true_lang.js +183 -96
  59. package/dist/components/ModelViewer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  60. package/dist/components/PdfNavigationPane.js +1 -1
  61. package/dist/components/PdfNavigationPane.js.map +1 -1
  62. package/dist/components/PdfNavigationPane.vue_vue_type_script_setup_true_lang.js.map +1 -1
  63. package/dist/components/PdfViewer.js +1 -1
  64. package/dist/components/PdfViewer.js.map +1 -1
  65. package/dist/components/PdfViewer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  66. package/dist/components/PptxNavigationPane.js +1 -1
  67. package/dist/components/PptxNavigationPane.js.map +1 -1
  68. package/dist/components/PptxNavigationPane.vue_vue_type_script_setup_true_lang.js.map +1 -1
  69. package/dist/components/PsdViewer.js +1 -1
  70. package/dist/components/PsdViewer.js.map +1 -1
  71. package/dist/components/PsdViewer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  72. package/dist/components/SqliteViewer.js +1 -1
  73. package/dist/components/SqliteViewer.js.map +1 -1
  74. package/dist/components/SqliteViewer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  75. package/dist/components/ViewerLoadError.js +9 -0
  76. package/dist/components/ViewerLoadError.js.map +1 -0
  77. package/dist/components/ViewerLoadError.vue.d.ts +17 -0
  78. package/dist/components/ViewerLoadError.vue_vue_type_script_setup_true_lang.js +58 -0
  79. package/dist/components/ViewerLoadError.vue_vue_type_script_setup_true_lang.js.map +1 -0
  80. package/dist/components/XlsxChart.js +1 -1
  81. package/dist/components/XlsxChart.js.map +1 -1
  82. package/dist/components/XlsxChart.vue_vue_type_script_setup_true_lang.js +9 -9
  83. package/dist/components/XlsxChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
  84. package/dist/components/XlsxImageLayer.js +9 -0
  85. package/dist/components/XlsxImageLayer.js.map +1 -0
  86. package/dist/components/XlsxImageLayer.vue.d.ts +9 -0
  87. package/dist/components/XlsxImageLayer.vue_vue_type_script_setup_true_lang.js +46 -0
  88. package/dist/components/XlsxImageLayer.vue_vue_type_script_setup_true_lang.js.map +1 -0
  89. package/dist/components/XlsxViewer.js +1 -1
  90. package/dist/components/XlsxViewer.js.map +1 -1
  91. package/dist/components/XlsxViewer.vue_vue_type_script_setup_true_lang.js +230 -216
  92. package/dist/components/XlsxViewer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  93. package/dist/components/epl/EplResource.js +1 -1
  94. package/dist/components/epl/EplResource.js.map +1 -1
  95. package/dist/components/epl/EplResource.vue_vue_type_script_setup_true_lang.js.map +1 -1
  96. package/dist/components/optionalViewer.d.ts +3 -2
  97. package/dist/components/optionalViewer.js +6 -3
  98. package/dist/components/optionalViewer.js.map +1 -1
  99. package/dist/composables/useFileViewer.d.ts +11 -3
  100. package/dist/composables/useFileViewer.js.map +1 -1
  101. package/dist/composables/useTeleportTheme.d.ts +7 -0
  102. package/dist/composables/useTeleportTheme.js +42 -0
  103. package/dist/composables/useTeleportTheme.js.map +1 -0
  104. package/dist/index.d.ts +1 -0
  105. package/dist/index.js +29 -28
  106. package/dist/lib/ansi.d.ts +44 -0
  107. package/dist/lib/ansi.js +224 -0
  108. package/dist/lib/ansi.js.map +1 -0
  109. package/dist/lib/cfb.d.ts +37 -0
  110. package/dist/lib/cfb.js +112 -0
  111. package/dist/lib/cfb.js.map +1 -0
  112. package/dist/lib/docxEmbeddedDom.d.ts +22 -0
  113. package/dist/lib/docxEmbeddedDom.js +128 -0
  114. package/dist/lib/docxEmbeddedDom.js.map +1 -0
  115. package/dist/lib/docxEmbeddings.d.ts +41 -0
  116. package/dist/lib/docxEmbeddings.js +226 -0
  117. package/dist/lib/docxEmbeddings.js.map +1 -0
  118. package/dist/lib/docxTheme.d.ts +6 -0
  119. package/dist/lib/docxTheme.js +64 -0
  120. package/dist/lib/docxTheme.js.map +1 -0
  121. package/dist/lib/epl/code/structures.js +82 -0
  122. package/dist/lib/epl/code/structures.js.map +1 -0
  123. package/dist/lib/epl/code/variable.js +16 -0
  124. package/dist/lib/epl/code/variable.js.map +1 -0
  125. package/dist/lib/epl/eplDocument.js +28 -22
  126. package/dist/lib/epl/eplDocument.js.map +1 -1
  127. package/dist/lib/epl/index.d.ts +2 -1
  128. package/dist/lib/epl/index.js.map +1 -1
  129. package/dist/lib/epl/sections/code.js +37 -0
  130. package/dist/lib/epl/sections/code.js.map +1 -0
  131. package/dist/lib/epl/sections/esystemInfo.js +29 -0
  132. package/dist/lib/epl/sections/esystemInfo.js.map +1 -0
  133. package/dist/lib/epl/sections/losable.js +33 -0
  134. package/dist/lib/epl/sections/losable.js.map +1 -0
  135. package/dist/lib/epl/sections/projectConfig.js +39 -0
  136. package/dist/lib/epl/sections/projectConfig.js.map +1 -0
  137. package/dist/lib/epl/sections/resource.js +84 -0
  138. package/dist/lib/epl/sections/resource.js.map +1 -0
  139. package/dist/lib/fileType.d.ts +3 -1
  140. package/dist/lib/fileType.js +150 -137
  141. package/dist/lib/fileType.js.map +1 -1
  142. package/dist/lib/modelAppearance.d.ts +7 -0
  143. package/dist/lib/modelAppearance.js +41 -0
  144. package/dist/lib/modelAppearance.js.map +1 -0
  145. package/dist/lib/msi.js +62 -154
  146. package/dist/lib/msi.js.map +1 -1
  147. package/dist/lib/olePackage.d.ts +8 -0
  148. package/dist/lib/olePackage.js +37 -0
  149. package/dist/lib/olePackage.js.map +1 -0
  150. package/dist/lib/pptxFirstSlide.d.ts +11 -0
  151. package/dist/lib/pptxFirstSlide.js +34 -0
  152. package/dist/lib/pptxFirstSlide.js.map +1 -0
  153. package/dist/lib/step.d.ts +10 -0
  154. package/dist/lib/step.js +35 -0
  155. package/dist/lib/step.js.map +1 -0
  156. package/dist/lib/step.worker.d.ts +1 -0
  157. package/dist/lib/step.worker.js +18 -0
  158. package/dist/lib/step.worker.js.map +1 -0
  159. package/dist/lib/stepObject.d.ts +4 -0
  160. package/dist/lib/stepObject.js +52 -0
  161. package/dist/lib/stepObject.js.map +1 -0
  162. package/dist/lib/stepTypes.d.ts +60 -0
  163. package/dist/lib/viewerKind.js +10 -5
  164. package/dist/lib/viewerKind.js.map +1 -1
  165. package/dist/lib/xlsx.d.ts +1 -1
  166. package/dist/lib/xlsx.js +106 -89
  167. package/dist/lib/xlsx.js.map +1 -1
  168. package/dist/lib/xlsxCharts.js +71 -119
  169. package/dist/lib/xlsxCharts.js.map +1 -1
  170. package/dist/lib/xlsxImages.d.ts +43 -0
  171. package/dist/lib/xlsxImages.js +114 -0
  172. package/dist/lib/xlsxImages.js.map +1 -0
  173. package/dist/lib/xlsxParts.d.ts +17 -0
  174. package/dist/lib/xlsxParts.js +86 -0
  175. package/dist/lib/xlsxParts.js.map +1 -0
  176. package/dist/style.css +1 -1
  177. package/package.json +8 -3
@@ -140,7 +140,7 @@ function te(t, n) {
140
140
  }
141
141
  return c.has(e(t));
142
142
  }
143
- var ne = new Set(["jsonl", "ndjson"]), l = new Set([
143
+ var ne = new Set(["jsonl", "ndjson"]), re = new Set([
144
144
  "application/jsonl",
145
145
  "application/x-jsonl",
146
146
  "application/jsonlines",
@@ -148,15 +148,15 @@ var ne = new Set(["jsonl", "ndjson"]), l = new Set([
148
148
  "application/x-ndjson",
149
149
  "application/ndjson"
150
150
  ]);
151
- function u(t, n) {
151
+ function l(t, n) {
152
152
  let r = (n || "").toLowerCase().trim();
153
153
  if (r && r !== "application/octet-stream") {
154
- if (l.has(r)) return !0;
154
+ if (re.has(r)) return !0;
155
155
  if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
156
156
  }
157
157
  return ne.has(e(t));
158
158
  }
159
- var d = new Set([
159
+ var u = new Set([
160
160
  "application/zip",
161
161
  "application/x-zip",
162
162
  "application/x-zip-compressed",
@@ -164,7 +164,7 @@ var d = new Set([
164
164
  "application/java-archive",
165
165
  "application/x-java-archive",
166
166
  "application/vnd.android.package-archive"
167
- ]), f = new Set([
167
+ ]), d = new Set([
168
168
  "zip",
169
169
  "jar",
170
170
  "war",
@@ -172,24 +172,24 @@ var d = new Set([
172
172
  "apk",
173
173
  "aar"
174
174
  ]);
175
- function p(t, n) {
175
+ function f(t, n) {
176
176
  let r = (n || "").toLowerCase().trim();
177
177
  if (r && r !== "application/octet-stream") {
178
- if (d.has(r)) return !0;
178
+ if (u.has(r)) return !0;
179
179
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
180
180
  }
181
- return f.has(e(t));
181
+ return d.has(e(t));
182
182
  }
183
- var m = new Set(["application/x-7z-compressed", "application/x-7z"]);
184
- function h(t, n) {
183
+ var p = new Set(["application/x-7z-compressed", "application/x-7z"]);
184
+ function m(t, n) {
185
185
  let r = (n || "").toLowerCase().trim();
186
186
  if (r && r !== "application/octet-stream") {
187
- if (m.has(r)) return !0;
187
+ if (p.has(r)) return !0;
188
188
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
189
189
  }
190
190
  return e(t) === "7z";
191
191
  }
192
- var g = new Set([
192
+ var h = new Set([
193
193
  "application/x-tar",
194
194
  "application/gzip",
195
195
  "application/x-gzip",
@@ -198,7 +198,7 @@ var g = new Set([
198
198
  "application/x-bzip",
199
199
  "application/x-xz",
200
200
  "application/x-brotli"
201
- ]), _ = new Set([
201
+ ]), g = new Set([
202
202
  "tar",
203
203
  "gz",
204
204
  "tgz",
@@ -212,42 +212,42 @@ var g = new Set([
212
212
  "br",
213
213
  "tbr"
214
214
  ]);
215
- function v(t, n) {
215
+ function _(t, n) {
216
216
  let r = (n || "").toLowerCase().trim();
217
217
  if (r && r !== "application/octet-stream") {
218
- if (g.has(r)) return !0;
218
+ if (h.has(r)) return !0;
219
219
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
220
220
  }
221
- return _.has(e(t));
221
+ return g.has(e(t));
222
222
  }
223
- var y = new Set([
223
+ var v = new Set([
224
224
  "application/vnd.rar",
225
225
  "application/x-rar-compressed",
226
226
  "application/x-rar"
227
227
  ]);
228
- function b(t, n) {
228
+ function y(t, n) {
229
229
  let r = (n || "").toLowerCase().trim();
230
230
  if (r && r !== "application/octet-stream") {
231
- if (y.has(r)) return !0;
231
+ if (v.has(r)) return !0;
232
232
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
233
233
  }
234
234
  return e(t) === "rar";
235
235
  }
236
- var x = new Set([
236
+ var b = new Set([
237
237
  "application/dicom",
238
238
  "application/dicom+json",
239
239
  "image/dicom"
240
240
  ]);
241
- function S(t, n) {
241
+ function x(t, n) {
242
242
  let r = (n || "").toLowerCase().trim();
243
243
  if (r && r !== "application/octet-stream") {
244
- if (x.has(r)) return !0;
244
+ if (b.has(r)) return !0;
245
245
  if (r.startsWith("text/") || r.startsWith("image/") && r !== "image/dicom" || r.startsWith("audio/") || r.startsWith("video/")) return !1;
246
246
  }
247
247
  let i = e(t);
248
248
  return i === "dcm" || i === "dicom";
249
249
  }
250
- var C = new Set([
250
+ var S = new Set([
251
251
  "png",
252
252
  "jpg",
253
253
  "jpeg",
@@ -258,7 +258,7 @@ var C = new Set([
258
258
  "avif",
259
259
  "apng",
260
260
  "jfif"
261
- ]), w = new Set([
261
+ ]), C = new Set([
262
262
  "mp4",
263
263
  "m4v",
264
264
  "webm",
@@ -267,20 +267,20 @@ var C = new Set([
267
267
  "mkv",
268
268
  "avi"
269
269
  ]);
270
- function T(t, n) {
270
+ function w(t, n) {
271
271
  let r = (n || "").toLowerCase().trim();
272
272
  if (r && r !== "application/octet-stream") {
273
273
  if (r === "image/svg+xml") return !1;
274
274
  if (r.startsWith("image/")) return !0;
275
275
  if (r.startsWith("text/") || r.startsWith("video/") || r.startsWith("audio/")) return !1;
276
276
  }
277
- return C.has(e(t));
277
+ return S.has(e(t));
278
278
  }
279
- var E = new Set(["tif", "tiff"]), D = new Set(["psd", "psb"]), O = new Set([
279
+ var T = new Set(["tif", "tiff"]), E = new Set(["psd", "psb"]), D = new Set([
280
280
  "heic",
281
281
  "heif",
282
282
  "hif"
283
- ]), k = new Set([
283
+ ]), O = new Set([
284
284
  "cr2",
285
285
  "cr3",
286
286
  "crw",
@@ -297,7 +297,7 @@ var E = new Set(["tif", "tiff"]), D = new Set(["psd", "psb"]), O = new Set([
297
297
  "pef",
298
298
  "x3f"
299
299
  ]);
300
- function A(t, n) {
300
+ function k(t, n) {
301
301
  let r = (n || "").toLowerCase().trim();
302
302
  if (r && r !== "application/octet-stream") {
303
303
  if (r === "image/tiff" || r === "image/x-tiff") return "tiff";
@@ -305,9 +305,9 @@ function A(t, n) {
305
305
  if (r.startsWith("image/heic") || r.startsWith("image/heif")) return "heic";
306
306
  }
307
307
  let i = e(t);
308
- return E.has(i) ? "tiff" : D.has(i) ? "psd" : O.has(i) ? "heic" : k.has(i) ? "raw" : null;
308
+ return T.has(i) ? "tiff" : E.has(i) ? "psd" : D.has(i) ? "heic" : O.has(i) ? "raw" : null;
309
309
  }
310
- function j(t, n) {
310
+ function A(t, n) {
311
311
  let r = (n || "").toLowerCase().trim();
312
312
  if (r && r !== "application/octet-stream") {
313
313
  if (r === "application/epub+zip") return "epub";
@@ -318,25 +318,25 @@ function j(t, n) {
318
318
  let i = e(t);
319
319
  return i === "epub" ? "epub" : i === "fb2" ? "fb2" : i === "mobi" || i === "azw" || i === "azw3" || i === "prc" ? "mobi" : i === "djvu" || i === "djv" ? "djvu" : null;
320
320
  }
321
- function M(t, n) {
321
+ function j(t, n) {
322
322
  let r = (n || "").toLowerCase().trim();
323
323
  return r && r !== "application/octet-stream" ? r === "image/svg+xml" : e(t) === "svg";
324
324
  }
325
- function N(t, n) {
325
+ function M(t, n) {
326
326
  let r = (n || "").toLowerCase().trim();
327
327
  if (r && r !== "application/octet-stream") {
328
328
  if (r.startsWith("video/")) return !0;
329
329
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/")) return !1;
330
330
  }
331
- return w.has(e(t));
331
+ return C.has(e(t));
332
332
  }
333
- function P(t, n) {
333
+ function N(t, n) {
334
334
  let r = (n || "").toLowerCase().trim();
335
335
  if (r && r !== "application/octet-stream") return r === "text/html" || r === "application/xhtml+xml";
336
336
  let i = e(t);
337
337
  return i === "html" || i === "htm";
338
338
  }
339
- var F = [
339
+ var P = [
340
340
  "exe",
341
341
  "dll",
342
342
  "sys",
@@ -347,241 +347,241 @@ var F = [
347
347
  "drv",
348
348
  "mui",
349
349
  "node"
350
- ], I = [
350
+ ], F = [
351
351
  "elf",
352
352
  "ko",
353
353
  "o"
354
354
  ];
355
- function L(t, n) {
355
+ function I(t, n) {
356
356
  let r = (n || "").toLowerCase().trim();
357
357
  if (r && r !== "application/octet-stream" && (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/"))) return !1;
358
358
  let i = e(t);
359
- return F.includes(i) || I.includes(i) ? !0 : /\.so(\.\d+)*$/.test((t || "").toLowerCase());
359
+ return P.includes(i) || F.includes(i) ? !0 : /\.so(\.\d+)*$/.test((t || "").toLowerCase());
360
360
  }
361
- function R(t, n) {
361
+ function L(t, n) {
362
362
  let r = (n || "").toLowerCase().trim();
363
363
  if (r && r !== "application/octet-stream" && (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/"))) return !1;
364
364
  let i = e(t);
365
365
  return i === "e" || i === "ec";
366
366
  }
367
- var z = new Set([
367
+ var R = new Set([
368
368
  "application/java-vm",
369
369
  "application/x-java-vm",
370
370
  "application/java",
371
371
  "application/x-java-class",
372
372
  "application/java-byte-code"
373
373
  ]);
374
- function B(t, n) {
374
+ function z(t, n) {
375
375
  let r = (n || "").toLowerCase().trim();
376
376
  if (r && r !== "application/octet-stream") {
377
- if (z.has(r)) return !0;
377
+ if (R.has(r)) return !0;
378
378
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
379
379
  }
380
380
  return e(t) === "class";
381
381
  }
382
- var V = new Set(["application/vnd.java.hprof", "application/x-hprof"]);
383
- function H(t, n) {
382
+ var B = new Set(["application/vnd.java.hprof", "application/x-hprof"]);
383
+ function V(t, n) {
384
384
  let r = (n || "").toLowerCase().trim();
385
385
  if (r && r !== "application/octet-stream") {
386
- if (V.has(r)) return !0;
386
+ if (B.has(r)) return !0;
387
387
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
388
388
  }
389
389
  return e(t) === "hprof";
390
390
  }
391
- var U = new Set(["application/x-msi", "application/vnd.ms-msi"]), W = new Set([
391
+ var H = new Set(["application/x-msi", "application/vnd.ms-msi"]), U = new Set([
392
392
  "msi",
393
393
  "msp",
394
394
  "msm"
395
395
  ]);
396
- function G(t, n) {
396
+ function W(t, n) {
397
397
  let r = (n || "").toLowerCase().trim();
398
398
  if (r && r !== "application/octet-stream") {
399
- if (U.has(r)) return !0;
399
+ if (H.has(r)) return !0;
400
400
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
401
401
  }
402
- return W.has(e(t));
402
+ return U.has(e(t));
403
403
  }
404
- var K = new Set([
404
+ var G = new Set([
405
405
  "application/appx",
406
406
  "application/msix",
407
407
  "application/appxbundle",
408
408
  "application/msixbundle",
409
409
  "application/vnd.ms-appx",
410
410
  "application/windows.appx"
411
- ]), q = new Set([
411
+ ]), K = new Set([
412
412
  "appx",
413
413
  "msix",
414
414
  "appxbundle",
415
415
  "msixbundle"
416
416
  ]);
417
- function J(t, n) {
417
+ function q(t, n) {
418
418
  let r = (n || "").toLowerCase().trim();
419
419
  if (r && r !== "application/octet-stream") {
420
- if (K.has(r)) return !0;
420
+ if (G.has(r)) return !0;
421
421
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/")) return !1;
422
422
  }
423
- return q.has(e(t));
423
+ return K.has(e(t));
424
424
  }
425
- var Y = new Set(["application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"]);
426
- function X(t, n) {
425
+ var J = new Set(["application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"]);
426
+ function Y(t, n) {
427
427
  let r = (n || "").toLowerCase().trim();
428
428
  if (r && r !== "application/octet-stream") {
429
- if (Y.has(r)) return !0;
429
+ if (J.has(r)) return !0;
430
430
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
431
431
  }
432
432
  return e(t) === "docx";
433
433
  }
434
- var Z = new Set([
434
+ var X = new Set([
435
435
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
436
436
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",
437
437
  "application/vnd.ms-excel.sheet.macroenabled.12"
438
438
  ]);
439
- function re(t, n) {
439
+ function ie(t, n) {
440
440
  let r = (n || "").toLowerCase().trim();
441
441
  if (r && r !== "application/octet-stream") {
442
- if (Z.has(r)) return !0;
442
+ if (X.has(r)) return !0;
443
443
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
444
444
  }
445
445
  let i = e(t);
446
446
  return i === "xlsx" || i === "xlsm";
447
447
  }
448
- var ie = new Set([
448
+ var ae = new Set([
449
449
  "application/vnd.openxmlformats-officedocument.presentationml.presentation",
450
450
  "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml",
451
451
  "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
452
452
  "application/vnd.ms-powerpoint.presentation.macroenabled.12",
453
453
  "application/vnd.ms-powerpoint.slideshow.macroenabled.12"
454
454
  ]);
455
- function ae(t, n) {
455
+ function oe(t, n) {
456
456
  let r = (n || "").toLowerCase().trim();
457
457
  if (r && r !== "application/octet-stream") {
458
- if (ie.has(r)) return !0;
458
+ if (ae.has(r)) return !0;
459
459
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
460
460
  }
461
461
  let i = e(t);
462
462
  return i === "pptx" || i === "pptm" || i === "ppsx";
463
463
  }
464
- var oe = new Set([
464
+ var se = new Set([
465
465
  "application/rtf",
466
466
  "text/rtf",
467
467
  "application/x-rtf",
468
468
  "text/richtext"
469
469
  ]);
470
- function se(t, n) {
470
+ function ce(t, n) {
471
471
  let r = (n || "").toLowerCase().trim();
472
472
  if (r && r !== "application/octet-stream") {
473
- if (oe.has(r)) return !0;
473
+ if (se.has(r)) return !0;
474
474
  if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
475
475
  }
476
476
  return e(t) === "rtf";
477
477
  }
478
- var ce = new Set([
478
+ var le = new Set([
479
479
  "application/pdf",
480
480
  "application/x-pdf",
481
481
  "application/acrobat"
482
482
  ]);
483
- function le(t, n) {
483
+ function ue(t, n) {
484
484
  let r = (n || "").toLowerCase().trim();
485
485
  if (r && r !== "application/octet-stream") {
486
- if (ce.has(r)) return !0;
486
+ if (le.has(r)) return !0;
487
487
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
488
488
  }
489
489
  return e(t) === "pdf";
490
490
  }
491
- var ue = new Set([
491
+ var de = new Set([
492
492
  "text/x-opml",
493
493
  "text/x-opml+xml",
494
494
  "application/xml+opml",
495
495
  "application/x-freemind",
496
496
  "application/x-freeplane"
497
497
  ]);
498
- function de(t, n) {
498
+ function fe(t, n) {
499
499
  let r = (n || "").toLowerCase().trim();
500
500
  if (r && r !== "application/octet-stream") {
501
- if (ue.has(r)) return !0;
501
+ if (de.has(r)) return !0;
502
502
  if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/") || r === "text/html") return !1;
503
503
  }
504
504
  let i = e(t);
505
505
  return i === "opml" || i === "mm";
506
506
  }
507
- var fe = new Set([
507
+ var pe = new Set([
508
508
  "application/vnd.xmind.workbook",
509
509
  "application/x-xmind",
510
510
  "application/xmind"
511
511
  ]);
512
- function pe(t, n) {
512
+ function me(t, n) {
513
513
  let r = (n || "").toLowerCase().trim();
514
514
  if (r && r !== "application/octet-stream") {
515
- if (fe.has(r)) return !0;
515
+ if (pe.has(r)) return !0;
516
516
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
517
517
  }
518
518
  return e(t) === "xmind";
519
519
  }
520
- var Q = new Set([
520
+ var Z = new Set([
521
521
  "image/vnd.dxf",
522
522
  "application/dxf",
523
523
  "application/x-dxf",
524
524
  "drawing/x-dxf"
525
525
  ]);
526
- function me(t, n) {
526
+ function he(t, n) {
527
527
  let r = (n || "").toLowerCase().trim();
528
528
  if (r && r !== "application/octet-stream") {
529
- if (Q.has(r)) return !0;
530
- if ((r.startsWith("audio/") || r.startsWith("video/") || r.startsWith("image/")) && !Q.has(r)) return !1;
529
+ if (Z.has(r)) return !0;
530
+ if ((r.startsWith("audio/") || r.startsWith("video/") || r.startsWith("image/")) && !Z.has(r)) return !1;
531
531
  }
532
532
  return e(t) === "dxf";
533
533
  }
534
- var he = new Set([
534
+ var ge = new Set([
535
535
  "message/rfc822",
536
536
  "application/eml",
537
537
  "text/eml",
538
538
  "message/global"
539
539
  ]);
540
- function ge(t, n) {
540
+ function _e(t, n) {
541
541
  let r = e(t);
542
542
  if (r === "mht" || r === "mhtml") return !1;
543
543
  let i = (n || "").toLowerCase().trim();
544
544
  if (i && i !== "application/octet-stream") {
545
- if (he.has(i)) return !0;
545
+ if (ge.has(i)) return !0;
546
546
  if (i.startsWith("image/") || i.startsWith("audio/") || i.startsWith("video/")) return !1;
547
547
  }
548
548
  return r === "eml";
549
549
  }
550
- function _e(t, n) {
550
+ function ve(t, n) {
551
551
  let r = e(t);
552
552
  if (r === "mht" || r === "mhtml") return !0;
553
553
  let i = (n || "").toLowerCase().trim();
554
554
  return i === "multipart/related" || i === "application/x-mimearchive";
555
555
  }
556
- var ve = new Set(["application/har+json", "application/x-har"]);
557
- function ye(t, n) {
556
+ var ye = new Set(["application/har+json", "application/x-har"]);
557
+ function be(t, n) {
558
558
  let r = (n || "").toLowerCase().trim();
559
559
  if (r && r !== "application/octet-stream") {
560
- if (ve.has(r)) return !0;
560
+ if (ye.has(r)) return !0;
561
561
  if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
562
562
  }
563
563
  return e(t) === "har";
564
564
  }
565
- var be = new Set([
565
+ var xe = new Set([
566
566
  "application/x-sqlite3",
567
567
  "application/vnd.sqlite3",
568
568
  "application/x-sqlite"
569
- ]), xe = new Set([
569
+ ]), Se = new Set([
570
570
  "sqlite",
571
571
  "sqlite3",
572
572
  "db",
573
573
  "db3",
574
574
  "sqlitedb"
575
575
  ]);
576
- function Se(t, n) {
576
+ function Ce(t, n) {
577
577
  let r = (n || "").toLowerCase().trim();
578
578
  if (r && r !== "application/octet-stream") {
579
- if (be.has(r)) return !0;
579
+ if (xe.has(r)) return !0;
580
580
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
581
581
  }
582
- return xe.has(e(t));
582
+ return Se.has(e(t));
583
583
  }
584
- var Ce = new Set([
584
+ var we = new Set([
585
585
  "pem",
586
586
  "crt",
587
587
  "cer",
@@ -591,7 +591,7 @@ var Ce = new Set([
591
591
  "key",
592
592
  "p7b",
593
593
  "p7c"
594
- ]), we = new Set([
594
+ ]), Te = new Set([
595
595
  "application/x-x509-ca-cert",
596
596
  "application/x-x509-user-cert",
597
597
  "application/x-x509-cert",
@@ -602,20 +602,20 @@ var Ce = new Set([
602
602
  "application/pkcs10",
603
603
  "application/x-pkcs7-certificates"
604
604
  ]);
605
- function Te(t, n) {
605
+ function Ee(t, n) {
606
606
  let r = (n || "").toLowerCase().trim();
607
607
  if (r && r !== "application/octet-stream") {
608
- if (we.has(r)) return !0;
608
+ if (Te.has(r)) return !0;
609
609
  if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
610
610
  }
611
- return Ce.has(e(t));
611
+ return we.has(e(t));
612
612
  }
613
- var Ee = new Set([
613
+ var De = new Set([
614
614
  "application/x-java-keystore",
615
615
  "application/x-java-jce-keystore",
616
616
  "application/x-pkcs12",
617
617
  "application/pkcs12"
618
- ]), De = new Set([
618
+ ]), Oe = new Set([
619
619
  "jks",
620
620
  "keystore",
621
621
  "ks",
@@ -624,60 +624,72 @@ var Ee = new Set([
624
624
  "p12",
625
625
  "pfx"
626
626
  ]);
627
- function Oe(t, n) {
627
+ function ke(t, n) {
628
628
  let r = (n || "").toLowerCase().trim();
629
629
  if (r && r !== "application/octet-stream") {
630
- if (Ee.has(r)) return !0;
630
+ if (De.has(r)) return !0;
631
631
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
632
632
  }
633
- return De.has(e(t));
633
+ return Oe.has(e(t));
634
634
  }
635
- var ke = new Set([
635
+ var Ae = new Set([
636
636
  "geojson",
637
637
  "kml",
638
638
  "gpx"
639
- ]), Ae = new Set([
639
+ ]), je = new Set([
640
640
  "application/geo+json",
641
641
  "application/vnd.geo+json",
642
642
  "application/vnd.google-earth.kml+xml",
643
643
  "application/gpx+xml",
644
644
  "application/x-gpx+xml"
645
645
  ]);
646
- function je(t, n) {
646
+ function Me(t, n) {
647
647
  let r = (n || "").toLowerCase().trim();
648
648
  if (r && r !== "application/octet-stream") {
649
- if (Ae.has(r)) return !0;
649
+ if (je.has(r)) return !0;
650
650
  if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
651
651
  }
652
- return ke.has(e(t));
652
+ return Ae.has(e(t));
653
653
  }
654
- var Me = new Set([
654
+ var Ne = new Set([
655
655
  "srt",
656
656
  "vtt",
657
657
  "ass",
658
658
  "ssa"
659
- ]), Ne = new Set([
659
+ ]), Pe = new Set([
660
660
  "application/x-subrip",
661
661
  "application/x-subrip+srt",
662
662
  "text/vtt",
663
663
  "text/x-ssa",
664
664
  "text/x-ass"
665
665
  ]);
666
- function Pe(t, n) {
666
+ function Fe(t, n) {
667
667
  let r = (n || "").toLowerCase().trim();
668
668
  if (r && r !== "application/octet-stream") {
669
- if (Ne.has(r)) return !0;
669
+ if (Pe.has(r)) return !0;
670
670
  if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
671
671
  }
672
- return Me.has(e(t));
672
+ return Ne.has(e(t));
673
673
  }
674
- var $ = new Set([
674
+ var Ie = new Set([
675
675
  "stl",
676
676
  "obj",
677
677
  "ply",
678
678
  "glb",
679
- "gltf"
680
- ]), Fe = new Set([
679
+ "gltf",
680
+ "stp",
681
+ "step"
682
+ ]), Le = new Set([
683
+ "model/step",
684
+ "application/step",
685
+ "application/x-step",
686
+ "application/stp"
687
+ ]);
688
+ function Q(t, n) {
689
+ let r = e(t);
690
+ return r === "stp" || r === "step" || Le.has((n ?? "").split(";")[0].trim().toLowerCase());
691
+ }
692
+ var Re = new Set([
681
693
  "model/gltf-binary",
682
694
  "model/gltf+json",
683
695
  "model/stl",
@@ -686,15 +698,16 @@ var $ = new Set([
686
698
  "model/obj",
687
699
  "model/ply"
688
700
  ]);
689
- function Ie(t, n) {
701
+ function ze(t, n) {
702
+ if (Q(t, n)) return !0;
690
703
  let r = (n || "").toLowerCase().trim();
691
704
  if (r && r !== "application/octet-stream") {
692
- if (Fe.has(r) || r.startsWith("model/")) return !0;
705
+ if (Re.has(r) || r.startsWith("model/")) return !0;
693
706
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
694
707
  }
695
- return $.has(e(t));
708
+ return Ie.has(e(t));
696
709
  }
697
- var Le = new Set([
710
+ var Be = new Set([
698
711
  "mp3",
699
712
  "wav",
700
713
  "flac",
@@ -711,29 +724,29 @@ var Le = new Set([
711
724
  "silk",
712
725
  "slk"
713
726
  ]);
714
- function Re(t, n) {
727
+ function Ve(t, n) {
715
728
  let r = (n || "").toLowerCase().trim();
716
729
  if (r && r !== "application/octet-stream") {
717
730
  if (r.startsWith("audio/")) return !0;
718
731
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("video/")) return !1;
719
732
  }
720
- return Le.has(e(t));
733
+ return Be.has(e(t));
721
734
  }
722
- var ze = new Set(["application/x-ipynb+json", "application/ipynb+json"]);
723
- function Be(t, n) {
735
+ var $ = new Set(["application/x-ipynb+json", "application/ipynb+json"]);
736
+ function He(t, n) {
724
737
  let r = (n || "").toLowerCase().trim();
725
738
  if (r && r !== "application/octet-stream") {
726
- if (ze.has(r)) return !0;
739
+ if ($.has(r)) return !0;
727
740
  if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
728
741
  }
729
742
  return e(t) === "ipynb";
730
743
  }
731
- var Ve = new Set([
744
+ var Ue = new Set([
732
745
  "ttf",
733
746
  "otf",
734
747
  "woff",
735
748
  "woff2"
736
- ]), He = new Set([
749
+ ]), We = new Set([
737
750
  "font/ttf",
738
751
  "font/otf",
739
752
  "font/woff",
@@ -748,15 +761,15 @@ var Ve = new Set([
748
761
  "application/font-sfnt",
749
762
  "application/vnd.ms-opentype"
750
763
  ]);
751
- function Ue(t, n) {
764
+ function Ge(t, n) {
752
765
  let r = (n || "").toLowerCase().trim();
753
766
  if (r && r !== "application/octet-stream") {
754
- if (He.has(r)) return !0;
767
+ if (We.has(r)) return !0;
755
768
  if (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
756
769
  }
757
- return Ve.has(e(t));
770
+ return Ue.has(e(t));
758
771
  }
759
- var We = new Set([
772
+ var Ke = new Set([
760
773
  "mflac",
761
774
  "mflac0",
762
775
  "mflac1",
@@ -766,24 +779,24 @@ var We = new Set([
766
779
  "mgg1",
767
780
  "mggl"
768
781
  ]);
769
- function Ge(t, n) {
782
+ function qe(t, n) {
770
783
  let r = (n || "").toLowerCase().trim();
771
- return r && r !== "application/octet-stream" && (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("video/")) ? !1 : We.has(e(t));
784
+ return r && r !== "application/octet-stream" && (r.startsWith("text/") || r.startsWith("image/") || r.startsWith("video/")) ? !1 : Ke.has(e(t));
772
785
  }
773
- var Ke = new Set([
786
+ var Je = new Set([
774
787
  "application/lrc",
775
788
  "text/lrc",
776
789
  "application/x-lrc"
777
790
  ]);
778
- function qe(t, n) {
791
+ function Ye(t, n) {
779
792
  let r = (n || "").toLowerCase().trim();
780
793
  if (r && r !== "application/octet-stream") {
781
- if (Ke.has(r)) return !0;
794
+ if (Je.has(r)) return !0;
782
795
  if (r.startsWith("image/") || r.startsWith("audio/") || r.startsWith("video/")) return !1;
783
796
  }
784
797
  return e(t) === "lrc";
785
798
  }
786
- function Je(n, r) {
799
+ function Xe(n, r) {
787
800
  let i = e(n);
788
801
  if (i && i in t) return t[i];
789
802
  let a = (r || "").toLowerCase().trim();
@@ -797,6 +810,6 @@ function Je(n, r) {
797
810
  return o === "dockerfile" ? "dockerfile" : o === "makefile" ? "makefile" : "";
798
811
  }
799
812
  //#endregion
800
- export { o as LARGE_TEXT_BYTES, j as ebookKind, e as fileExt, Je as hljsLang, J as isAppxFile, Re as isAudioFile, L as isBinaryObjFile, Te as isCertFile, te as isCsvFile, S as isDicomFile, X as isDocxFile, me as isDxfFile, ge as isEmlFile, R as isEplFile, Ue as isFontFile, je as isGeoFile, ye as isHarFile, H as isHprofFile, P as isHtmlFile, T as isImageFile, B as isJavaClassFile, Oe as isJksFile, u as isJsonlFile, s as isLogFile, qe as isLrcFile, _e as isMhtFile, de as isMindMapFile, Ie as isModelFile, G as isMsiFile, Be as isNotebookFile, le as isPdfFile, ae as isPptxFile, Ge as isQmcAudioFile, b as isRarFile, se as isRtfFile, h as isSevenZipFile, Se as isSqliteFile, Pe as isSubtitleFile, M as isSvgFile, v as isTarballFile, a as isTextFile, N as isVideoFile, re as isXlsxFile, pe as isXmindFile, p as isZipFile, A as rasterImageKind };
813
+ export { o as LARGE_TEXT_BYTES, A as ebookKind, e as fileExt, Xe as hljsLang, q as isAppxFile, Ve as isAudioFile, I as isBinaryObjFile, Ee as isCertFile, te as isCsvFile, x as isDicomFile, Y as isDocxFile, he as isDxfFile, _e as isEmlFile, L as isEplFile, Ge as isFontFile, Me as isGeoFile, be as isHarFile, V as isHprofFile, N as isHtmlFile, w as isImageFile, z as isJavaClassFile, ke as isJksFile, l as isJsonlFile, s as isLogFile, Ye as isLrcFile, ve as isMhtFile, fe as isMindMapFile, ze as isModelFile, W as isMsiFile, He as isNotebookFile, ue as isPdfFile, oe as isPptxFile, qe as isQmcAudioFile, y as isRarFile, ce as isRtfFile, m as isSevenZipFile, Ce as isSqliteFile, Q as isStepFile, Fe as isSubtitleFile, j as isSvgFile, _ as isTarballFile, a as isTextFile, M as isVideoFile, ie as isXlsxFile, me as isXmindFile, f as isZipFile, k as rasterImageKind };
801
814
 
802
815
  //# sourceMappingURL=fileType.js.map