@zip.js/zip.js 2.8.43 → 2.8.45

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 (56) hide show
  1. package/README.md +0 -37
  2. package/deno.json +21 -1
  3. package/dist/zip-core-external.js +194 -159
  4. package/dist/zip-core-external.min.js +1 -1
  5. package/dist/zip-core.js +194 -131
  6. package/dist/zip-core.min.js +1 -1
  7. package/dist/zip-fs-core-external.js +246 -167
  8. package/dist/zip-fs-core-external.min.js +1 -1
  9. package/dist/zip-fs-core.js +244 -139
  10. package/dist/zip-fs-core.min.js +1 -1
  11. package/dist/zip-fs-external.js +267 -1761
  12. package/dist/zip-fs-external.min.js +1 -1
  13. package/dist/zip-fs-native.js +269 -1735
  14. package/dist/zip-fs-native.min.js +1 -1
  15. package/dist/zip-fs.js +268 -1734
  16. package/dist/zip-fs.min.js +1 -1
  17. package/dist/zip-legacy.js +196 -133
  18. package/dist/zip-legacy.min.js +1 -1
  19. package/dist/zip-native.js +196 -133
  20. package/dist/zip-native.min.js +1 -1
  21. package/dist/zip-web-worker-native.js +1 -1
  22. package/dist/zip-web-worker.js +1 -1
  23. package/dist/zip.js +195 -132
  24. package/dist/zip.min.js +1 -1
  25. package/eslint.config.mjs +31 -2
  26. package/index-native.cjs +269 -1735
  27. package/index-native.min.js +1 -1
  28. package/index.cjs +268 -1734
  29. package/index.d.cts +129 -8
  30. package/index.d.ts +129 -8
  31. package/index.min.js +1 -1
  32. package/lib/core/codec-pool.js +6 -2
  33. package/lib/core/codec-worker.js +2 -2
  34. package/lib/core/constants.js +4 -0
  35. package/lib/core/options.js +6 -0
  36. package/lib/core/streams/aes-crypto-stream.js +18 -21
  37. package/lib/core/streams/codec-stream.js +6 -2
  38. package/lib/core/streams/common-crypto.js +2 -0
  39. package/lib/core/streams/zip-entry-stream.js +16 -17
  40. package/lib/core/util/mime-type-data.js +3 -0
  41. package/lib/core/util/mime-type.js +23 -1596
  42. package/lib/core/web-worker-base.js +2 -2
  43. package/lib/core/web-worker-inline-native.js +1 -1
  44. package/lib/core/web-worker-inline-wasm.js +1 -1
  45. package/lib/core/web-worker-wasm.js +4 -8
  46. package/lib/core/zip-entry.js +11 -1
  47. package/lib/core/zip-fs.js +62 -5
  48. package/lib/core/zip-reader.js +80 -43
  49. package/lib/core/zip-writer.js +68 -45
  50. package/lib/zip-core-external.js +2 -0
  51. package/lib/zip-core-reader.js +2 -0
  52. package/lib/zip-fs-core-external.js +2 -0
  53. package/lib/zip-fs-external.js +2 -0
  54. package/lib/zip-mime-types.js +2 -0
  55. package/package.json +9 -3
  56. package/worker-message-property-names.js +1 -1
@@ -62,6 +62,8 @@ const EXTRAFIELD_TYPE_UNICODE_COMMENT = 0x6375;
62
62
  const EXTRAFIELD_TYPE_USDZ = 0x1986;
63
63
  const EXTRAFIELD_TYPE_INFOZIP = 0x7875;
64
64
  const EXTRAFIELD_TYPE_UNIX = 0x7855;
65
+ const EXTRAFIELD_TYPE_UNIX_TYPE1 = 0x5855;
66
+ const EXTRAFIELD_TYPE_PKWARE_UNIX = 0x000d;
65
67
 
66
68
  const BITFLAG_ENCRYPTED = 0b1;
67
69
  const BITFLAG_LEVEL = 0b0110;
@@ -1396,6 +1398,7 @@ const GET_RANDOM_VALUES_SUPPORTED = typeof crypto != UNDEFINED_TYPE && typeof cr
1396
1398
 
1397
1399
  const ERR_INVALID_PASSWORD = "Invalid password";
1398
1400
  const ERR_INVALID_SIGNATURE = "Invalid signature";
1401
+ const ERR_INVALID_AUTHENTICATION_CODE = ERR_INVALID_SIGNATURE;
1399
1402
  const ERR_ABORT_CHECK_PASSWORD = "zipjs-abort-check-password";
1400
1403
  const ERR_UNSUPPORTED_CRYPTO_API = "Crypto API not supported";
1401
1404
 
@@ -1446,7 +1449,7 @@ const DERIVED_BITS_ALGORITHM = Object.assign({ iterations: 1000, hash: { name: H
1446
1449
  const DERIVED_BITS_USAGE = ["deriveBits"];
1447
1450
  const SALT_LENGTH = [8, 12, 16];
1448
1451
  const KEY_LENGTH = [16, 24, 32];
1449
- const SIGNATURE_LENGTH = 10;
1452
+ const AUTHENTICATION_CODE_LENGTH = 10;
1450
1453
  const COUNTER_DEFAULT_VALUE = [0, 0, 0, 0];
1451
1454
  // deno-lint-ignore valid-typeof
1452
1455
  const CRYPTO_API_SUPPORTED = typeof crypto != UNDEFINED_TYPE;
@@ -1462,7 +1465,7 @@ let DERIVE_BITS_SUPPORTED = CRYPTO_API_SUPPORTED && SUBTLE_API_SUPPORTED && type
1462
1465
 
1463
1466
  class AESDecryptionStream extends TransformStream {
1464
1467
 
1465
- constructor({ password, rawPassword, encryptionStrength, checkPasswordOnly }) {
1468
+ constructor({ password, rawPassword, encryptionStrength, checkPasswordOnly, checkAuthenticationCode = true }) {
1466
1469
  super({
1467
1470
  start() {
1468
1471
  initAesCrypto(this, password, rawPassword, encryptionStrength);
@@ -1486,8 +1489,8 @@ class AESDecryptionStream extends TransformStream {
1486
1489
  } else {
1487
1490
  await ready;
1488
1491
  }
1489
- const output = new Uint8Array(chunk.length - SIGNATURE_LENGTH - ((chunk.length - SIGNATURE_LENGTH) % BLOCK_LENGTH));
1490
- controller.enqueue(append(aesCrypto, chunk, output, 0, SIGNATURE_LENGTH, true));
1492
+ const output = new Uint8Array(chunk.length - AUTHENTICATION_CODE_LENGTH - ((chunk.length - AUTHENTICATION_CODE_LENGTH) % BLOCK_LENGTH));
1493
+ controller.enqueue(append(aesCrypto, chunk, output, 0, AUTHENTICATION_CODE_LENGTH, true));
1491
1494
  },
1492
1495
  async flush(controller) {
1493
1496
  const {
@@ -1498,8 +1501,8 @@ class AESDecryptionStream extends TransformStream {
1498
1501
  } = this;
1499
1502
  if (hmac && ctr) {
1500
1503
  await ready;
1501
- const chunkToDecrypt = subarray(pending, 0, pending.length - SIGNATURE_LENGTH);
1502
- const originalSignature = subarray(pending, pending.length - SIGNATURE_LENGTH);
1504
+ const chunkToDecrypt = subarray(pending, 0, pending.length - AUTHENTICATION_CODE_LENGTH);
1505
+ const originalAuthenticationCode = subarray(pending, pending.length - AUTHENTICATION_CODE_LENGTH);
1503
1506
  let decryptedChunkArray = EMPTY_UINT8_ARRAY;
1504
1507
  if (chunkToDecrypt.length) {
1505
1508
  const encryptedChunk = toBits(codecBytes, chunkToDecrypt);
@@ -1507,13 +1510,13 @@ class AESDecryptionStream extends TransformStream {
1507
1510
  const decryptedChunk = ctr.update(encryptedChunk);
1508
1511
  decryptedChunkArray = fromBits(codecBytes, decryptedChunk);
1509
1512
  }
1510
- const signature = subarray(fromBits(codecBytes, hmac.digest()), 0, SIGNATURE_LENGTH);
1511
- let invalidSignature = pending.length < SIGNATURE_LENGTH ? 1 : 0;
1512
- for (let indexSignature = 0; indexSignature < SIGNATURE_LENGTH; indexSignature++) {
1513
- invalidSignature |= signature[indexSignature] ^ originalSignature[indexSignature];
1513
+ const authenticationCode = subarray(fromBits(codecBytes, hmac.digest()), 0, AUTHENTICATION_CODE_LENGTH);
1514
+ let invalidAuthenticationCode = pending.length < AUTHENTICATION_CODE_LENGTH ? 1 : 0;
1515
+ for (let indexByte = 0; indexByte < AUTHENTICATION_CODE_LENGTH; indexByte++) {
1516
+ invalidAuthenticationCode |= authenticationCode[indexByte] ^ originalAuthenticationCode[indexByte];
1514
1517
  }
1515
- if (invalidSignature) {
1516
- throw new Error(ERR_INVALID_SIGNATURE);
1518
+ if (invalidAuthenticationCode && checkAuthenticationCode) {
1519
+ throw new Error(ERR_INVALID_AUTHENTICATION_CODE);
1517
1520
  }
1518
1521
  controller.enqueue(decryptedChunkArray);
1519
1522
  }
@@ -1525,8 +1528,6 @@ class AESDecryptionStream extends TransformStream {
1525
1528
  class AESEncryptionStream extends TransformStream {
1526
1529
 
1527
1530
  constructor({ password, rawPassword, encryptionStrength }) {
1528
- // deno-lint-ignore prefer-const
1529
- let stream;
1530
1531
  super({
1531
1532
  start() {
1532
1533
  initAesCrypto(this, password, rawPassword, encryptionStrength);
@@ -1565,12 +1566,11 @@ class AESEncryptionStream extends TransformStream {
1565
1566
  hmac.update(encryptedChunk);
1566
1567
  encryptedChunkArray = fromBits(codecBytes, encryptedChunk);
1567
1568
  }
1568
- stream.signature = fromBits(codecBytes, hmac.digest()).slice(0, SIGNATURE_LENGTH);
1569
- controller.enqueue(concat(encryptedChunkArray, stream.signature));
1569
+ const authenticationCode = fromBits(codecBytes, hmac.digest()).slice(0, AUTHENTICATION_CODE_LENGTH);
1570
+ controller.enqueue(concat(encryptedChunkArray, authenticationCode));
1570
1571
  }
1571
1572
  }
1572
1573
  });
1573
- stream = this;
1574
1574
  }
1575
1575
  }
1576
1576
 
@@ -1583,7 +1583,7 @@ function initAesCrypto(aesCrypto, password, rawPassword, encryptionStrength) {
1583
1583
  });
1584
1584
  }
1585
1585
 
1586
- function append(aesCrypto, input, output, paddingStart, paddingEnd, verifySignature) {
1586
+ function append(aesCrypto, input, output, paddingStart, paddingEnd, verifyAuthenticationCode) {
1587
1587
  const {
1588
1588
  ctr,
1589
1589
  hmac,
@@ -1597,11 +1597,11 @@ function append(aesCrypto, input, output, paddingStart, paddingEnd, verifySignat
1597
1597
  let offset;
1598
1598
  for (offset = 0; offset <= inputLength - BLOCK_LENGTH; offset += BLOCK_LENGTH) {
1599
1599
  const inputChunk = toBits(codecBytes, subarray(input, offset, offset + BLOCK_LENGTH));
1600
- if (verifySignature) {
1600
+ if (verifyAuthenticationCode) {
1601
1601
  hmac.update(inputChunk);
1602
1602
  }
1603
1603
  const outputChunk = ctr.update(inputChunk);
1604
- if (!verifySignature) {
1604
+ if (!verifyAuthenticationCode) {
1605
1605
  hmac.update(outputChunk);
1606
1606
  }
1607
1607
  output.set(fromBits(codecBytes, outputChunk), offset + paddingStart);
@@ -1951,6 +1951,7 @@ function toCompatibleWritable(writable) {
1951
1951
 
1952
1952
  const ERR_INVALID_UNCOMPRESSED_SIZE = "Invalid uncompressed size";
1953
1953
  const ERR_INVALID_COMPRESSED_DATA = "Invalid compressed data";
1954
+ const ERR_INVALID_CRC32 = ERR_INVALID_SIGNATURE;
1954
1955
  const ERR_UNSUPPORTED_COMPRESSION$2 = "Compression method not supported";
1955
1956
  const FORMAT_DEFLATE_RAW = "deflate-raw";
1956
1957
  const FORMAT_DEFLATE64_RAW = "deflate64-raw";
@@ -1964,14 +1965,14 @@ class DeflateStream extends TransformStream {
1964
1965
 
1965
1966
  constructor(options, { chunkSize, CompressionStreamZlib, CompressionStream }) {
1966
1967
  super({});
1967
- const { compressed, encrypted, useCompressionStream, zipCrypto, signed, level, deflate64, format, compressionMethod } = options;
1968
+ const { compressed, encrypted, useCompressionStream, zipCrypto, computeCrc32, level, deflate64, format, compressionMethod } = options;
1968
1969
  const stream = this;
1969
1970
  let crc32Stream, encryptionStream, gzipCrc32Stream;
1970
1971
  let readable = super.readable;
1971
1972
  const codecStreams = format && getCodecStreams(format);
1972
- const useGzipCrc32 = signed && compressed && !deflate64 && !codecStreams && (!encrypted || zipCrypto) &&
1973
+ const useGzipCrc32 = computeCrc32 && compressed && !deflate64 && !codecStreams && (!encrypted || zipCrypto) &&
1973
1974
  Boolean(useCompressionStream && CompressionStream);
1974
- if ((!encrypted || zipCrypto) && signed && !useGzipCrc32) {
1975
+ if ((!encrypted || zipCrypto) && computeCrc32 && !useGzipCrc32) {
1975
1976
  crc32Stream = new Crc32Stream();
1976
1977
  readable = pipeThrough(readable, crc32Stream);
1977
1978
  }
@@ -2006,14 +2007,9 @@ class DeflateStream extends TransformStream {
2006
2007
  }
2007
2008
  }
2008
2009
  setReadable(stream, readable, () => {
2009
- let signature;
2010
- if (encrypted && !zipCrypto) {
2011
- signature = encryptionStream.signature;
2012
- }
2013
- if ((!encrypted || zipCrypto) && signed) {
2014
- signature = useGzipCrc32 ? gzipCrc32Stream.signature : new DataView(crc32Stream.value.buffer).getUint32(0);
2010
+ if ((!encrypted || zipCrypto) && computeCrc32) {
2011
+ stream.crc32 = useGzipCrc32 ? gzipCrc32Stream.crc32 : new DataView(crc32Stream.value.buffer).getUint32(0);
2015
2012
  }
2016
- stream.signature = signature;
2017
2013
  });
2018
2014
  }
2019
2015
  }
@@ -2051,7 +2047,7 @@ class GzipToRawDeflateStream extends TransformStream {
2051
2047
  },
2052
2048
  flush() {
2053
2049
  const dataView = getDataView(trailerCandidate);
2054
- stream.signature = dataView.getUint32(0, true);
2050
+ stream.crc32 = dataView.getUint32(0, true);
2055
2051
  stream.uncompressedSize = dataView.getUint32(4, true);
2056
2052
  }
2057
2053
  });
@@ -2133,7 +2129,7 @@ class InflateStream extends TransformStream {
2133
2129
 
2134
2130
  constructor(options, { chunkSize, DecompressionStreamZlib, DecompressionStream }) {
2135
2131
  super({});
2136
- const { zipCrypto, encrypted, signed, signature, compressed, useCompressionStream, deflate64, format, compressionMethod, rawBitFlag, outputSize } = options;
2132
+ const { zipCrypto, encrypted, checkCrc32, crc32, compressed, useCompressionStream, deflate64, format, compressionMethod, rawBitFlag, outputSize } = options;
2137
2133
  let crc32Stream, decryptionStream;
2138
2134
  let readable = super.readable;
2139
2135
  if (encrypted) {
@@ -2166,15 +2162,15 @@ class InflateStream extends TransformStream {
2166
2162
  }
2167
2163
  readable = mapInflateStreamError(readable);
2168
2164
  }
2169
- if ((!encrypted || zipCrypto) && signed) {
2165
+ if (checkCrc32) {
2170
2166
  crc32Stream = new Crc32Stream();
2171
2167
  readable = pipeThrough(readable, crc32Stream);
2172
2168
  }
2173
2169
  setReadable(this, readable, () => {
2174
- if ((!encrypted || zipCrypto) && signed) {
2175
- const dataViewSignature = new DataView(crc32Stream.value.buffer);
2176
- if (signature != dataViewSignature.getUint32(0, false)) {
2177
- throw new Error(ERR_INVALID_SIGNATURE);
2170
+ if (checkCrc32) {
2171
+ const computedCrc32View = new DataView(crc32Stream.value.buffer);
2172
+ if (crc32 != computedCrc32View.getUint32(0, false)) {
2173
+ throw new Error(ERR_INVALID_CRC32);
2178
2174
  }
2179
2175
  }
2180
2176
  });
@@ -2398,9 +2394,9 @@ class CodecStream extends TransformStream {
2398
2394
  }
2399
2395
  },
2400
2396
  flush() {
2401
- const { signature } = stream;
2397
+ const { crc32 } = stream;
2402
2398
  Object.assign(codec, {
2403
- signature,
2399
+ crc32,
2404
2400
  inputSize
2405
2401
  });
2406
2402
  }
@@ -2703,12 +2699,12 @@ async function runWorker$1({ options, readable, writable, onTaskFinished }, conf
2703
2699
  .pipeThrough(new ChunkStream(getChunkSize(config)))
2704
2700
  .pipeTo(writable, { preventClose: true, preventAbort: true });
2705
2701
  const {
2706
- signature,
2702
+ crc32,
2707
2703
  inputSize,
2708
2704
  outputSize
2709
2705
  } = codecStream;
2710
2706
  return {
2711
- signature,
2707
+ crc32,
2712
2708
  inputSize,
2713
2709
  outputSize
2714
2710
  };
@@ -3069,7 +3065,7 @@ let indexWorker = 0;
3069
3065
 
3070
3066
  async function runWorker(stream, workerOptions) {
3071
3067
  const { options, config } = workerOptions;
3072
- const { transferStreams, useWebWorkers, useCompressionStream, compressed, signed, encrypted, format, codecURI } = options;
3068
+ const { transferStreams, useWebWorkers, useCompressionStream, compressed, checkCrc32, computeCrc32, encrypted, format, codecURI } = options;
3073
3069
  const { workerURI, maxWorkers } = config;
3074
3070
  if (format) {
3075
3071
  if (codecURI) {
@@ -3078,7 +3074,7 @@ async function runWorker(stream, workerOptions) {
3078
3074
  await ensureCodecStreams(format, options.codecURI);
3079
3075
  }
3080
3076
  workerOptions.transferStreams = transferStreams || (transferStreams === UNDEFINED_VALUE && config.transferStreams);
3081
- const streamCopy = !compressed && !signed && !encrypted;
3077
+ const streamCopy = !compressed && !checkCrc32 && !computeCrc32 && !encrypted;
3082
3078
  const workerSupported = format === UNDEFINED_VALUE || Boolean(options.codecURI);
3083
3079
  workerOptions.useWebWorkers = !streamCopy && workerSupported && (useWebWorkers || (useWebWorkers === UNDEFINED_VALUE && config.useWebWorkers));
3084
3080
  workerOptions.workerURI = workerOptions.useWebWorkers && workerURI ? workerURI : UNDEFINED_VALUE;
@@ -4302,9 +4298,12 @@ const PROPERTY_NAME_DIRECTORY = "directory";
4302
4298
  const PROPERTY_NAME_EXECUTABLE = "executable";
4303
4299
  const PROPERTY_NAME_COMPRESSION_METHOD = "compressionMethod";
4304
4300
  const PROPERTY_NAME_SIGNATURE = "signature";
4301
+ const PROPERTY_NAME_CRC32 = "crc32";
4305
4302
  const PROPERTY_NAME_EXTRA_FIELD = "extraField";
4306
4303
  const PROPERTY_NAME_EXTRA_FIELD_INFOZIP = "extraFieldInfoZip";
4307
4304
  const PROPERTY_NAME_EXTRA_FIELD_UNIX = "extraFieldUnix";
4305
+ const PROPERTY_NAME_EXTRA_FIELD_UNIX_TYPE1 = "extraFieldUnixType1";
4306
+ const PROPERTY_NAME_EXTRA_FIELD_PKWARE_UNIX = "extraFieldPkwareUnix";
4308
4307
  const PROPERTY_NAME_UID = "uid";
4309
4308
  const PROPERTY_NAME_GID = "gid";
4310
4309
  const PROPERTY_NAME_UNIX_MODE = "unixMode";
@@ -4321,6 +4320,7 @@ const PROPERTY_NAME_EXTRA_FIELD_UNICODE_COMMENT = "extraFieldUnicodeComment";
4321
4320
  const PROPERTY_NAME_EXTRA_FIELD_AES = "extraFieldAES";
4322
4321
  const PROPERTY_NAME_EXTRA_FIELD_NTFS = "extraFieldNTFS";
4323
4322
  const PROPERTY_NAME_EXTRA_FIELD_EXTENDED_TIMESTAMP = "extraFieldExtendedTimestamp";
4323
+ const PROPERTY_NAME_EXTRA_FIELD_USDZ = "extraFieldUSDZ";
4324
4324
 
4325
4325
  const PROPERTY_NAMES = [
4326
4326
  PROPERTY_NAME_FILENAME,
@@ -4332,6 +4332,7 @@ const PROPERTY_NAMES = [
4332
4332
  PROPERTY_NAME_COMMENT,
4333
4333
  PROPERTY_NAME_RAW_COMMENT,
4334
4334
  PROPERTY_NAME_LAST_ACCESS_DATE,
4335
+ PROPERTY_NAME_RAW_LAST_ACCESS_DATE,
4335
4336
  PROPERTY_NAME_CREATION_DATE,
4336
4337
  PROPERTY_NAME_RAW_CREATION_DATE,
4337
4338
  PROPERTY_NAME_OFFSET,
@@ -4350,9 +4351,12 @@ const PROPERTY_NAMES = [
4350
4351
  PROPERTY_NAME_EXECUTABLE,
4351
4352
  PROPERTY_NAME_COMPRESSION_METHOD,
4352
4353
  PROPERTY_NAME_SIGNATURE,
4354
+ PROPERTY_NAME_CRC32,
4353
4355
  PROPERTY_NAME_EXTRA_FIELD,
4354
4356
  PROPERTY_NAME_EXTRA_FIELD_UNIX,
4355
4357
  PROPERTY_NAME_EXTRA_FIELD_INFOZIP,
4358
+ PROPERTY_NAME_EXTRA_FIELD_UNIX_TYPE1,
4359
+ PROPERTY_NAME_EXTRA_FIELD_PKWARE_UNIX,
4356
4360
  PROPERTY_NAME_UID,
4357
4361
  PROPERTY_NAME_GID,
4358
4362
  PROPERTY_NAME_UNIX_MODE,
@@ -4368,7 +4372,8 @@ const PROPERTY_NAMES = [
4368
4372
  PROPERTY_NAME_EXTRA_FIELD_UNICODE_COMMENT,
4369
4373
  PROPERTY_NAME_EXTRA_FIELD_AES,
4370
4374
  PROPERTY_NAME_EXTRA_FIELD_NTFS,
4371
- PROPERTY_NAME_EXTRA_FIELD_EXTENDED_TIMESTAMP
4375
+ PROPERTY_NAME_EXTRA_FIELD_EXTENDED_TIMESTAMP,
4376
+ PROPERTY_NAME_EXTRA_FIELD_USDZ
4372
4377
  ];
4373
4378
 
4374
4379
  class Entry {
@@ -4421,6 +4426,8 @@ const OPTION_CHECK_OVERLAPPING_ENTRY_ONLY = "checkOverlappingEntryOnly";
4421
4426
  const OPTION_CHECK_OVERLAPPING_ENTRY = "checkOverlappingEntry";
4422
4427
  const OPTION_CHECK_AMBIGUITY = "checkAmbiguity";
4423
4428
  const OPTION_CHECK_SIGNATURE = "checkSignature";
4429
+ const OPTION_CHECK_CRC32 = "checkCrc32";
4430
+ const OPTION_CHECK_AUTHENTICATION_CODE = "checkAuthenticationCode";
4424
4431
  const OPTION_USE_WEB_WORKERS = "useWebWorkers";
4425
4432
  const OPTION_USE_COMPRESSION_STREAM = "useCompressionStream";
4426
4433
  const OPTION_TRANSFER_STREAMS = "transferStreams";
@@ -4440,6 +4447,7 @@ const OPTION_ENCODE_TEXT = "encodeText";
4440
4447
  const OPTION_OFFSET = "offset";
4441
4448
  const OPTION_USDZ = "usdz";
4442
4449
  const OPTION_UNIX_EXTRA_FIELD_TYPE = "unixExtraFieldType";
4450
+ const OPTION_LOCAL_EXTRA_FIELD = "localExtraField";
4443
4451
  const OPTION_STRICTNESS = "strictness";
4444
4452
  const OPTION_MAX_APPENDED_DATA_SIZE = "maxAppendedDataSize";
4445
4453
  const STRICTNESS_STRICT = "strict";
@@ -4492,6 +4500,7 @@ const CHARSET_UTF8 = "utf-8";
4492
4500
  const PROPERTY_NAME_UTF8_SUFFIX = "UTF8";
4493
4501
  const CHARSET_CP437 = "cp437";
4494
4502
  const BITFLAG_AMBIGUITY_MASK = BITFLAG_ENCRYPTED | BITFLAG_DATA_DESCRIPTOR | BITFLAG_LANG_ENCODING_FLAG;
4503
+ const VENDOR_VERSION_AE_1$1 = 1;
4495
4504
  const ZIP64_PROPERTIES = [
4496
4505
  [PROPERTY_NAME_UNCOMPRESSED_SIZE, MAX_32_BITS],
4497
4506
  [PROPERTY_NAME_COMPRESSED_SIZE, MAX_32_BITS],
@@ -4884,7 +4893,7 @@ let ZipEntry$1 = class ZipEntry {
4884
4893
  config,
4885
4894
  bitFlag,
4886
4895
  rawBitFlag,
4887
- signature,
4896
+ crc32,
4888
4897
  rawLastModDate,
4889
4898
  uncompressedSize,
4890
4899
  compressedSize
@@ -4971,6 +4980,11 @@ let ZipEntry$1 = class ZipEntry {
4971
4980
  if (deflate64) {
4972
4981
  useCompressionStream = false;
4973
4982
  }
4983
+ const checkCrc32Option = getOptionValue$1(zipEntry, options, OPTION_CHECK_CRC32);
4984
+ const checkCrc32 = (checkCrc32Option === UNDEFINED_VALUE ?
4985
+ getOptionValue$1(zipEntry, options, OPTION_CHECK_SIGNATURE) :
4986
+ checkCrc32Option) && !passThrough &&
4987
+ (!encrypted || zipCrypto || (extraFieldAES && extraFieldAES.vendorVersion == VENDOR_VERSION_AE_1$1));
4974
4988
  const workerOptions = {
4975
4989
  options: {
4976
4990
  codecType: CODEC_INFLATE,
@@ -4978,10 +4992,11 @@ let ZipEntry$1 = class ZipEntry {
4978
4992
  rawPassword,
4979
4993
  zipCrypto,
4980
4994
  encryptionStrength: extraFieldAES && extraFieldAES.strength,
4981
- signed: getOptionValue$1(zipEntry, options, OPTION_CHECK_SIGNATURE) && !passThrough,
4982
- passwordVerification: zipCrypto && (dataDescriptor ? ((rawLastModDate >>> 8) & MAX_8_BITS) : ((signature >>> 24) & MAX_8_BITS)),
4995
+ checkCrc32,
4996
+ checkAuthenticationCode: getOptionValue$1(zipEntry, options, OPTION_CHECK_AUTHENTICATION_CODE),
4997
+ passwordVerification: zipCrypto && (dataDescriptor ? ((rawLastModDate >>> 8) & MAX_8_BITS) : ((crc32 >>> 24) & MAX_8_BITS)),
4983
4998
  outputSize: passThrough ? compressedSize : uncompressedSize,
4984
- signature,
4999
+ crc32,
4985
5000
  compressed: compressionMethod != 0 && !passThrough,
4986
5001
  encrypted,
4987
5002
  useWebWorkers: getOptionValue$1(zipEntry, options, OPTION_USE_WEB_WORKERS),
@@ -5003,7 +5018,7 @@ let ZipEntry$1 = class ZipEntry {
5003
5018
  fileEntry,
5004
5019
  index,
5005
5020
  offset: localHeaderOffset,
5006
- signature,
5021
+ crc32,
5007
5022
  compressedSize,
5008
5023
  uncompressedSize,
5009
5024
  dataOffset,
@@ -5094,6 +5109,7 @@ function readCommonFooter(fileEntry, directory, dataView, offset, localDirectory
5094
5109
  const compressionMethod = getUint16(dataView, offset + 4);
5095
5110
  Object.assign(directory, {
5096
5111
  signature: getUint32(dataView, offset + HEADER_OFFSET_SIGNATURE),
5112
+ crc32: getUint32(dataView, offset + HEADER_OFFSET_SIGNATURE),
5097
5113
  compressedSize: getUint32(dataView, offset + HEADER_OFFSET_COMPRESSED_SIZE),
5098
5114
  uncompressedSize: getUint32(dataView, offset + HEADER_OFFSET_UNCOMPRESSED_SIZE)
5099
5115
  });
@@ -5119,6 +5135,16 @@ function readCommonFooter(fileEntry, directory, dataView, offset, localDirectory
5119
5135
  } else {
5120
5136
  directory.compressionMethod = compressionMethod;
5121
5137
  }
5138
+ const extraFieldPkwareUnix = extraField.get(EXTRAFIELD_TYPE_PKWARE_UNIX);
5139
+ if (extraFieldPkwareUnix) {
5140
+ readExtraFieldUnixDates(extraFieldPkwareUnix, directory);
5141
+ directory.extraFieldPkwareUnix = extraFieldPkwareUnix;
5142
+ }
5143
+ const extraFieldUnixType1 = extraField.get(EXTRAFIELD_TYPE_UNIX_TYPE1);
5144
+ if (extraFieldUnixType1) {
5145
+ readExtraFieldUnixDates(extraFieldUnixType1, directory);
5146
+ directory.extraFieldUnixType1 = extraFieldUnixType1;
5147
+ }
5122
5148
  const extraFieldNTFS = extraField.get(EXTRAFIELD_TYPE_NTFS);
5123
5149
  if (extraFieldNTFS) {
5124
5150
  readExtraFieldNTFS(extraFieldNTFS, directory);
@@ -5168,15 +5194,15 @@ function readExtraFieldUnicode(extraFieldUnicode, propertyName, rawPropertyName,
5168
5194
  return;
5169
5195
  }
5170
5196
  const extraFieldView = getDataView(extraFieldUnicode.data);
5171
- const crc32 = new Crc32();
5172
- crc32.append(fileEntry[rawPropertyName]);
5173
- const dataViewSignature = getDataView(new Uint8Array(4));
5174
- dataViewSignature.setUint32(0, crc32.get(), true);
5175
- const signature = getUint32(extraFieldView, 1);
5197
+ const computedCrc32 = new Crc32();
5198
+ computedCrc32.append(fileEntry[rawPropertyName]);
5199
+ const computedCrc32View = getDataView(new Uint8Array(4));
5200
+ computedCrc32View.setUint32(0, computedCrc32.get(), true);
5201
+ const nameCrc32 = getUint32(extraFieldView, 1);
5176
5202
  Object.assign(extraFieldUnicode, {
5177
5203
  version: getUint8(extraFieldView, 0),
5178
5204
  [propertyName]: decodeText(extraFieldUnicode.data.subarray(5)),
5179
- valid: !fileEntry.bitFlag.languageEncodingFlag && signature == getUint32(dataViewSignature, 0)
5205
+ valid: !fileEntry.bitFlag.languageEncodingFlag && nameCrc32 == getUint32(computedCrc32View, 0)
5180
5206
  });
5181
5207
  if (extraFieldUnicode.valid) {
5182
5208
  directory[propertyName] = extraFieldUnicode[propertyName];
@@ -5195,6 +5221,9 @@ function readExtraFieldAES(extraFieldAES, directory, compressionMethod) {
5195
5221
  compressionMethod: getUint16(extraFieldView, 5)
5196
5222
  });
5197
5223
  directory.compressionMethod = extraFieldAES.compressionMethod;
5224
+ if (extraFieldAES.vendorVersion != VENDOR_VERSION_AE_1$1) {
5225
+ directory.crc32 = UNDEFINED_VALUE;
5226
+ }
5198
5227
  }
5199
5228
 
5200
5229
  function readExtraFieldNTFS(extraFieldNTFS, directory) {
@@ -5213,27 +5242,39 @@ function readExtraFieldNTFS(extraFieldNTFS, directory) {
5213
5242
  } catch {
5214
5243
  // ignored
5215
5244
  }
5216
- try {
5217
- if (tag1Data && tag1Data.length == 24) {
5218
- const tag1View = getDataView(tag1Data);
5219
- const rawLastModDate = tag1View.getBigUint64(0, true);
5220
- const rawLastAccessDate = tag1View.getBigUint64(8, true);
5221
- const rawCreationDate = tag1View.getBigUint64(16, true);
5222
- Object.assign(extraFieldNTFS, {
5223
- rawLastModDate,
5224
- rawLastAccessDate,
5225
- rawCreationDate
5226
- });
5227
- const lastModDate = getDateNTFS(rawLastModDate);
5228
- const lastAccessDate = getDateNTFS(rawLastAccessDate);
5229
- const creationDate = getDateNTFS(rawCreationDate);
5230
- const extraFieldData = { lastModDate, lastAccessDate, creationDate };
5231
- Object.assign(extraFieldNTFS, extraFieldData);
5232
- Object.assign(directory, extraFieldData);
5233
- }
5234
- } catch {
5235
- // ignored
5245
+ if (tag1Data && tag1Data.length == 24) {
5246
+ const tag1View = getDataView(tag1Data);
5247
+ const rawLastModDate = tag1View.getBigUint64(0, true);
5248
+ const rawLastAccessDate = tag1View.getBigUint64(8, true);
5249
+ const rawCreationDate = tag1View.getBigUint64(16, true);
5250
+ Object.assign(extraFieldNTFS, {
5251
+ rawLastModDate,
5252
+ rawLastAccessDate,
5253
+ rawCreationDate
5254
+ });
5255
+ const lastModDate = getDateNTFS(rawLastModDate);
5256
+ const lastAccessDate = getDateNTFS(rawLastAccessDate);
5257
+ const creationDate = getDateNTFS(rawCreationDate);
5258
+ const extraFieldData = { lastModDate, lastAccessDate, creationDate };
5259
+ Object.assign(extraFieldNTFS, extraFieldData);
5260
+ Object.assign(directory, extraFieldData);
5261
+ }
5262
+ }
5263
+
5264
+ function readExtraFieldUnixDates(extraField, directory) {
5265
+ if (extraField.data.length < 8) {
5266
+ return;
5267
+ }
5268
+ const extraFieldView = getDataView(extraField.data);
5269
+ const lastAccessDate = new Date(getUint32(extraFieldView, 0) * 1000);
5270
+ const lastModDate = new Date(getUint32(extraFieldView, 4) * 1000);
5271
+ const extraFieldData = { lastAccessDate, lastModDate };
5272
+ if (extraField.data.length >= 12) {
5273
+ extraFieldData.uid = getUint16(extraFieldView, 8);
5274
+ extraFieldData.gid = getUint16(extraFieldView, 10);
5236
5275
  }
5276
+ Object.assign(extraField, extraFieldData);
5277
+ Object.assign(directory, extraFieldData);
5237
5278
  }
5238
5279
 
5239
5280
  function readExtraFieldUnix(extraField, directory, isInfoZip) {
@@ -5314,7 +5355,7 @@ async function detectOverlappingEntry({
5314
5355
  fileEntry,
5315
5356
  index,
5316
5357
  offset,
5317
- signature,
5358
+ crc32,
5318
5359
  compressedSize,
5319
5360
  uncompressedSize,
5320
5361
  dataOffset,
@@ -5335,7 +5376,7 @@ async function detectOverlappingEntry({
5335
5376
  const dataDescriptorSignature = dataDescriptorArray.length == dataDescriptorLength + DATA_DESCRIPTOR_RECORD_SIGNATURE_LENGTH &&
5336
5377
  getUint32(getDataView(dataDescriptorArray), 0) == DATA_DESCRIPTOR_RECORD_SIGNATURE;
5337
5378
  if (dataDescriptorSignature) {
5338
- const readSignature = getUint32(getDataView(dataDescriptorArray), 4);
5379
+ const readCrc32 = getUint32(getDataView(dataDescriptorArray), 4);
5339
5380
  let readCompressedSize;
5340
5381
  let readUncompressedSize;
5341
5382
  if (extraFieldZip64) {
@@ -5345,8 +5386,8 @@ async function detectOverlappingEntry({
5345
5386
  readCompressedSize = getUint32(getDataView(dataDescriptorArray), 8);
5346
5387
  readUncompressedSize = getUint32(getDataView(dataDescriptorArray), 12);
5347
5388
  }
5348
- const matchSignature = (fileEntry.encrypted && !fileEntry.zipCrypto) || readSignature == signature;
5349
- if (matchSignature &&
5389
+ const matchCrc32 = (fileEntry.encrypted && !fileEntry.zipCrypto) || readCrc32 == crc32;
5390
+ if (matchCrc32 &&
5350
5391
  readCompressedSize == compressedSize &&
5351
5392
  readUncompressedSize == uncompressedSize) {
5352
5393
  dataDescriptorLength += DATA_DESCRIPTOR_RECORD_SIGNATURE_LENGTH;
@@ -5515,11 +5556,11 @@ function checkLocalDirectory(zipEntry, localDirectory, rawLocalFilename) {
5515
5556
  throwAmbiguousArchive("mismatched local file header (compression method)");
5516
5557
  }
5517
5558
  if (!localDirectory.bitFlag.dataDescriptor &&
5518
- (localDirectory.signature || localDirectory.compressedSize || localDirectory.uncompressedSize) &&
5519
- (localDirectory.signature != zipEntry.signature ||
5559
+ (localDirectory.crc32 || localDirectory.compressedSize || localDirectory.uncompressedSize) &&
5560
+ (localDirectory.crc32 != zipEntry.crc32 ||
5520
5561
  localDirectory.compressedSize != zipEntry.compressedSize ||
5521
5562
  localDirectory.uncompressedSize != zipEntry.uncompressedSize)) {
5522
- throwAmbiguousArchive("mismatched local file header (signature or sizes)");
5563
+ throwAmbiguousArchive("mismatched local file header (crc32 or sizes)");
5523
5564
  }
5524
5565
  }
5525
5566
 
@@ -5535,11 +5576,7 @@ function getOptionValue$1(zipReader, options, name) {
5535
5576
 
5536
5577
  function getDate(timeRaw) {
5537
5578
  const date = (timeRaw & 0xffff0000) >> 16, time = timeRaw & MAX_16_BITS;
5538
- try {
5539
- return new Date(1980 + ((date & 0xFE00) >> 9), ((date & 0x01E0) >> 5) - 1, date & 0x001F, (time & 0xF800) >> 11, (time & 0x07E0) >> 5, (time & 0x001F) * 2, 0);
5540
- } catch {
5541
- // ignored
5542
- }
5579
+ return new Date(1980 + ((date & 0xFE00) >> 9), ((date & 0x01E0) >> 5) - 1, date & 0x001F, (time & 0xF800) >> 11, (time & 0x07E0) >> 5, (time & 0x001F) * 2, 0);
5543
5580
  }
5544
5581
 
5545
5582
  function getDateNTFS(timeRaw) {
@@ -5572,7 +5609,9 @@ var zipReader = /*#__PURE__*/Object.freeze({
5572
5609
  ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND: ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,
5573
5610
  ERR_EOCDR_NOT_FOUND: ERR_EOCDR_NOT_FOUND,
5574
5611
  ERR_EXTRAFIELD_ZIP64_NOT_FOUND: ERR_EXTRAFIELD_ZIP64_NOT_FOUND,
5612
+ ERR_INVALID_AUTHENTICATION_CODE: ERR_INVALID_AUTHENTICATION_CODE,
5575
5613
  ERR_INVALID_COMPRESSED_DATA: ERR_INVALID_COMPRESSED_DATA,
5614
+ ERR_INVALID_CRC32: ERR_INVALID_CRC32,
5576
5615
  ERR_INVALID_PASSWORD: ERR_INVALID_PASSWORD,
5577
5616
  ERR_INVALID_SIGNATURE: ERR_INVALID_SIGNATURE,
5578
5617
  ERR_INVALID_UNCOMPRESSED_SIZE: ERR_INVALID_UNCOMPRESSED_SIZE,
@@ -5626,6 +5665,8 @@ const ERR_INVALID_EXTRAFIELD_DATA = "Extra field data exceeds 64KB";
5626
5665
  const ERR_UNSUPPORTED_COMPRESSION = "Compression method not supported";
5627
5666
  const MIN_UNIX_TIME = -2147483648;
5628
5667
  const MAX_UNIX_TIME = 2147483647;
5668
+ const MIN_NTFS_TIME = BigInt(0);
5669
+ const MAX_NTFS_TIME = BigInt("0x7fffffffffffffff");
5629
5670
  const ERR_UNSUPPORTED_FORMAT = "Zip64 is not supported (set the 'zip64' option to 'true')";
5630
5671
  const ERR_UNDEFINED_UNCOMPRESSED_SIZE = "Undefined uncompressed size";
5631
5672
  const ERR_UNDEFINED_READER = "Undefined reader";
@@ -5639,7 +5680,9 @@ const ERR_INVALID_MSDOS_ATTRIBUTES = "Invalid msdosAttributesRaw (must be intege
5639
5680
  const ERR_INVALID_MSDOS_DATA = "Invalid msdosAttributes (must be an object with boolean flags)";
5640
5681
 
5641
5682
  const EXTRAFIELD_DATA_AES = new Uint8Array([0x07, 0x00, 0x02, 0x00, 0x41, 0x45, 0x03, 0x00, 0x00]);
5642
- const INFOZIP_EXTRA_FIELD_TYPE = "infozip";
5683
+ const EXTRAFIELD_OFFSET_AES_VENDOR_VERSION = 4;
5684
+ const VENDOR_VERSION_AE_1 = 1;
5685
+ const INFOZIP_EXTRA_FIELD_TYPE$1 = "infozip";
5643
5686
  const UNIX_EXTRA_FIELD_TYPE = "unix";
5644
5687
 
5645
5688
  let workers = 0;
@@ -5733,9 +5776,9 @@ class ZipWriter {
5733
5776
  zip64UncompressedSize,
5734
5777
  extraFieldLength
5735
5778
  });
5736
- const { signature } = entry;
5737
- if (signature !== UNDEFINED_VALUE) {
5738
- setUint32(headerView, HEADER_OFFSET_SIGNATURE, signature);
5779
+ const { crc32 } = entry;
5780
+ if (crc32 !== UNDEFINED_VALUE) {
5781
+ setUint32(headerView, HEADER_OFFSET_SIGNATURE, crc32);
5739
5782
  }
5740
5783
  Object.assign(entry, {
5741
5784
  zip64UncompressedSize,
@@ -5920,6 +5963,7 @@ async function addFile(zipWriter, name, reader, options) {
5920
5963
  internalFileAttribute: metadataInfo.resolvedOptions.internalFileAttributes,
5921
5964
  externalFileAttribute: attributesInfo.resolvedOptions.externalFileAttributes,
5922
5965
  signature: options[PROPERTY_NAME_SIGNATURE],
5966
+ crc32: options.crc32 === UNDEFINED_VALUE ? options[PROPERTY_NAME_SIGNATURE] : options.crc32,
5923
5967
  offset: zipWriter.offset - diskOffset,
5924
5968
  diskNumberStart: diskNumber
5925
5969
  });
@@ -5956,7 +6000,7 @@ function resolveAttributes(zipWriter, name, options) {
5956
6000
  if (unixMode !== UNDEFINED_VALUE && (unixMode < 0 || unixMode > MAX_16_BITS)) {
5957
6001
  throw new Error(ERR_INVALID_UNIX_MODE);
5958
6002
  }
5959
- if (unixExtraFieldType !== UNDEFINED_VALUE && unixExtraFieldType !== INFOZIP_EXTRA_FIELD_TYPE && unixExtraFieldType !== UNIX_EXTRA_FIELD_TYPE) {
6003
+ if (unixExtraFieldType !== UNDEFINED_VALUE && unixExtraFieldType !== INFOZIP_EXTRA_FIELD_TYPE$1 && unixExtraFieldType !== UNIX_EXTRA_FIELD_TYPE) {
5960
6004
  throw new Error(ERR_INVALID_UNIX_EXTRA_FIELD_TYPE);
5961
6005
  }
5962
6006
  if (unixExtraFieldType === UNIX_EXTRA_FIELD_TYPE &&
@@ -5964,7 +6008,7 @@ function resolveAttributes(zipWriter, name, options) {
5964
6008
  throw new Error(ERR_INVALID_UNIX_ID_SIZE);
5965
6009
  }
5966
6010
  if (unixExtraFieldType === UNDEFINED_VALUE && (uid !== UNDEFINED_VALUE || gid !== UNDEFINED_VALUE)) {
5967
- unixExtraFieldType = INFOZIP_EXTRA_FIELD_TYPE;
6011
+ unixExtraFieldType = INFOZIP_EXTRA_FIELD_TYPE$1;
5968
6012
  }
5969
6013
  let msdosAttributesRaw = getOptionValue(zipWriter, options, PROPERTY_NAME_MSDOS_ATTRIBUTES_RAW);
5970
6014
  let msdosAttributes = getOptionValue(zipWriter, options, PROPERTY_NAME_MSDOS_ATTRIBUTES);
@@ -6136,27 +6180,8 @@ function resolveMetadata(zipWriter, name, options) {
6136
6180
  if (!zipCrypto && (password !== UNDEFINED_VALUE || rawPassword !== UNDEFINED_VALUE) && !(encryptionStrength >= 1 && encryptionStrength <= 3)) {
6137
6181
  throw new Error(ERR_INVALID_ENCRYPTION_STRENGTH);
6138
6182
  }
6139
- let rawExtraField = EMPTY_UINT8_ARRAY;
6140
- const extraField = options[PROPERTY_NAME_EXTRA_FIELD];
6141
- if (extraField) {
6142
- let extraFieldSize = 0;
6143
- let offset = 0;
6144
- extraField.forEach(data => extraFieldSize += 4 + getLength(data));
6145
- rawExtraField = new Uint8Array(extraFieldSize);
6146
- const rawExtraFieldView = getDataView(rawExtraField);
6147
- extraField.forEach((data, type) => {
6148
- if (type > MAX_16_BITS) {
6149
- throw new Error(ERR_INVALID_EXTRAFIELD_TYPE);
6150
- }
6151
- if (getLength(data) > MAX_16_BITS) {
6152
- throw new Error(ERR_INVALID_EXTRAFIELD_DATA);
6153
- }
6154
- setUint16(rawExtraFieldView, offset, type);
6155
- setUint16(rawExtraFieldView, offset + 2, getLength(data));
6156
- arraySet(rawExtraField, data, offset + 4);
6157
- offset += 4 + getLength(data);
6158
- });
6159
- }
6183
+ const rawExtraField = serializeExtraField(options[PROPERTY_NAME_EXTRA_FIELD]);
6184
+ const rawLocalExtraField = serializeExtraField(options[OPTION_LOCAL_EXTRA_FIELD]);
6160
6185
  return {
6161
6186
  comment,
6162
6187
  resolvedOptions: {
@@ -6190,11 +6215,36 @@ function resolveMetadata(zipWriter, name, options) {
6190
6215
  useCompressionStream,
6191
6216
  dataDescriptor,
6192
6217
  zip64,
6193
- rawExtraField
6218
+ rawExtraField,
6219
+ rawLocalExtraField
6194
6220
  }
6195
6221
  };
6196
6222
  }
6197
6223
 
6224
+ function serializeExtraField(extraField) {
6225
+ if (!extraField) {
6226
+ return EMPTY_UINT8_ARRAY;
6227
+ }
6228
+ let extraFieldSize = 0;
6229
+ let offset = 0;
6230
+ extraField.forEach(data => extraFieldSize += 4 + getLength(data));
6231
+ const rawExtraField = new Uint8Array(extraFieldSize);
6232
+ const rawExtraFieldView = getDataView(rawExtraField);
6233
+ extraField.forEach((data, type) => {
6234
+ if (type > MAX_16_BITS) {
6235
+ throw new Error(ERR_INVALID_EXTRAFIELD_TYPE);
6236
+ }
6237
+ if (getLength(data) > MAX_16_BITS) {
6238
+ throw new Error(ERR_INVALID_EXTRAFIELD_DATA);
6239
+ }
6240
+ setUint16(rawExtraFieldView, offset, type);
6241
+ setUint16(rawExtraFieldView, offset + 2, getLength(data));
6242
+ arraySet(rawExtraField, data, offset + 4);
6243
+ offset += 4 + getLength(data);
6244
+ });
6245
+ return rawExtraField;
6246
+ }
6247
+
6198
6248
  async function resolveSizes(zipWriter, reader, { resolvedOptions: metadata }, options) {
6199
6249
  const { passThrough, zipCrypto, password, rawPassword, encryptionStrength } = metadata;
6200
6250
  let { dataDescriptor, zip64, level, compressionMethod } = metadata;
@@ -6519,7 +6569,7 @@ async function createFileEntry(reader, writer, { diskNumberStart, lock }, entryI
6519
6569
  msdosAttributes
6520
6570
  };
6521
6571
  let {
6522
- signature,
6572
+ crc32,
6523
6573
  uncompressedSize
6524
6574
  } = options;
6525
6575
  let compressedSize = 0;
@@ -6539,7 +6589,7 @@ async function createFileEntry(reader, writer, { diskNumberStart, lock }, entryI
6539
6589
  encryptionStrength,
6540
6590
  zipCrypto: encrypted && zipCrypto,
6541
6591
  passwordVerification: encrypted && zipCrypto && (rawLastModDate >> 8) & MAX_8_BITS,
6542
- signed: !passThrough,
6592
+ computeCrc32: !passThrough,
6543
6593
  compressed: compressed && !passThrough,
6544
6594
  encrypted: encrypted && !passThrough,
6545
6595
  useWebWorkers,
@@ -6558,7 +6608,9 @@ async function createFileEntry(reader, writer, { diskNumberStart, lock }, entryI
6558
6608
  writer.size += compressedSize;
6559
6609
  if (!passThrough) {
6560
6610
  uncompressedSize = result.inputSize;
6561
- signature = result.signature;
6611
+ if (!encrypted || zipCrypto) {
6612
+ crc32 = result.crc32;
6613
+ }
6562
6614
  }
6563
6615
  if ((!zip64CompressedSize && compressedSize >= MAX_32_BITS) ||
6564
6616
  (!zip64UncompressedSize && uncompressedSize >= MAX_32_BITS)) {
@@ -6573,7 +6625,7 @@ async function createFileEntry(reader, writer, { diskNumberStart, lock }, entryI
6573
6625
 
6574
6626
  }
6575
6627
  setEntryInfo({
6576
- signature,
6628
+ crc32,
6577
6629
  compressedSize,
6578
6630
  uncompressedSize,
6579
6631
  headerInfo,
@@ -6596,7 +6648,8 @@ async function createFileEntry(reader, writer, { diskNumberStart, lock }, entryI
6596
6648
  version,
6597
6649
  headerArray,
6598
6650
  headerView,
6599
- signature,
6651
+ signature: crc32,
6652
+ crc32: encrypted && !zipCrypto && !passThrough ? UNDEFINED_VALUE : crc32,
6600
6653
  extraFieldExtendedTimestampFlag,
6601
6654
  zip64UncompressedSize,
6602
6655
  zip64CompressedSize
@@ -6617,6 +6670,7 @@ function getHeaderInfo(options) {
6617
6670
  dataDescriptor,
6618
6671
  directory,
6619
6672
  rawExtraField,
6673
+ rawLocalExtraField,
6620
6674
  encryptionStrength,
6621
6675
  extendedTimestamp,
6622
6676
  ntfsTimestamp,
@@ -6624,7 +6678,8 @@ function getHeaderInfo(options) {
6624
6678
  encrypted,
6625
6679
  zip64UncompressedSize,
6626
6680
  zip64CompressedSize,
6627
- uncompressedSize
6681
+ uncompressedSize,
6682
+ crc32
6628
6683
  } = options;
6629
6684
  let { version, compressionMethod } = options;
6630
6685
  const compressed = !directory && (compressionMethod === UNDEFINED_VALUE
@@ -6697,8 +6752,8 @@ function getHeaderInfo(options) {
6697
6752
  extraFieldNTFS.uint16(EXTRAFIELD_TYPE_NTFS_TAG1);
6698
6753
  extraFieldNTFS.uint16(24);
6699
6754
  extraFieldNTFS.uint64(lastModTimeNTFS);
6700
- extraFieldNTFS.uint64(getTimeNTFS(lastAccessDate) || lastModTimeNTFS);
6701
- extraFieldNTFS.uint64(getTimeNTFS(creationDate) || lastModTimeNTFS);
6755
+ extraFieldNTFS.uint64(lastAccessDate ? getTimeNTFS(lastAccessDate) : lastModTimeNTFS);
6756
+ extraFieldNTFS.uint64(creationDate ? getTimeNTFS(creationDate) : lastModTimeNTFS);
6702
6757
  rawExtraFieldNTFS = extraFieldNTFS.array;
6703
6758
  } catch {
6704
6759
  rawExtraFieldNTFS = EMPTY_UINT8_ARRAY;
@@ -6712,7 +6767,7 @@ function getHeaderInfo(options) {
6712
6767
  let rawExtraFieldUnix;
6713
6768
  try {
6714
6769
  const { uid, gid, unixExtraFieldType } = options;
6715
- if (unixExtraFieldType == INFOZIP_EXTRA_FIELD_TYPE && (uid !== UNDEFINED_VALUE || gid !== UNDEFINED_VALUE)) {
6770
+ if (unixExtraFieldType == INFOZIP_EXTRA_FIELD_TYPE$1 && (uid !== UNDEFINED_VALUE || gid !== UNDEFINED_VALUE)) {
6716
6771
  const uidBytes = packUnixId(uid);
6717
6772
  const gidBytes = packUnixId(gid);
6718
6773
  const payloadLength = 3 + uidBytes.length + gidBytes.length;
@@ -6750,15 +6805,18 @@ function getHeaderInfo(options) {
6750
6805
  }
6751
6806
  if (encrypted && !zipCrypto) {
6752
6807
  version = version > VERSION_AES ? version : VERSION_AES;
6808
+ if (passThrough && crc32 !== UNDEFINED_VALUE) {
6809
+ rawExtraFieldAES[EXTRAFIELD_OFFSET_AES_VENDOR_VERSION] = VENDOR_VERSION_AE_1;
6810
+ }
6753
6811
  rawExtraFieldAES[9] = compressionMethod;
6754
6812
  compressionMethod = COMPRESSION_METHOD_AES;
6755
6813
  }
6756
6814
  const localExtraFieldZip64Length = writeLocalExtraFieldZip64 ? getLength(rawLocalExtraFieldZip64) : 0;
6757
- const extraFieldLength = localExtraFieldZip64Length + getLength(rawExtraFieldAES, rawExtraFieldExtendedTimestamp, rawExtraFieldNTFS, rawExtraFieldUnix, rawExtraField);
6815
+ const extraFieldLength = localExtraFieldZip64Length + getLength(rawExtraFieldAES, rawExtraFieldExtendedTimestamp, rawExtraFieldNTFS, rawExtraFieldUnix, rawExtraField, rawLocalExtraField);
6758
6816
  if (extraFieldLength > MAX_16_BITS) {
6759
6817
  throw new Error(ERR_INVALID_EXTRAFIELD_DATA);
6760
6818
  }
6761
- const dosLastModDate = new Date(Math.ceil(lastModDate.getTime() / 2000) * 2000);
6819
+ const dosLastModDate = new Date(Math.ceil(Math.floor(lastModDate.getTime() / 1000) / 2) * 2000);
6762
6820
  const {
6763
6821
  headerArray,
6764
6822
  headerView,
@@ -6788,6 +6846,7 @@ function getHeaderInfo(options) {
6788
6846
  localHeader.bytes(rawExtraFieldNTFS);
6789
6847
  localHeader.bytes(rawExtraFieldUnix);
6790
6848
  localHeader.bytes(rawExtraField);
6849
+ localHeader.bytes(rawLocalExtraField);
6791
6850
  if (dataDescriptor) {
6792
6851
  if (!zip64CompressedSize) {
6793
6852
  setUint32(localHeaderView, HEADER_OFFSET_COMPRESSED_SIZE + LOCAL_HEADER_COMMON_OFFSET, 0);
@@ -6906,7 +6965,7 @@ function getDataDescriptorInfo({
6906
6965
  }
6907
6966
 
6908
6967
  function setEntryInfo({
6909
- signature,
6968
+ crc32,
6910
6969
  compressedSize,
6911
6970
  uncompressedSize,
6912
6971
  headerInfo,
@@ -6914,6 +6973,7 @@ function setEntryInfo({
6914
6973
  }, {
6915
6974
  zip64,
6916
6975
  zipCrypto,
6976
+ passThrough,
6917
6977
  dataDescriptor
6918
6978
  }) {
6919
6979
  const {
@@ -6924,10 +6984,10 @@ function setEntryInfo({
6924
6984
  dataDescriptorView,
6925
6985
  dataDescriptorOffset
6926
6986
  } = dataDescriptorInfo;
6927
- if ((!encrypted || zipCrypto) && signature !== UNDEFINED_VALUE) {
6928
- setUint32(headerView, HEADER_OFFSET_SIGNATURE, signature);
6987
+ if ((!encrypted || zipCrypto || passThrough) && crc32 !== UNDEFINED_VALUE) {
6988
+ setUint32(headerView, HEADER_OFFSET_SIGNATURE, crc32);
6929
6989
  if (dataDescriptor) {
6930
- setUint32(dataDescriptorView, dataDescriptorOffset, signature);
6990
+ setUint32(dataDescriptorView, dataDescriptorOffset, crc32);
6931
6991
  }
6932
6992
  }
6933
6993
  if (zip64) {
@@ -6950,15 +7010,15 @@ function updateLocalHeader({
6950
7010
  encrypted,
6951
7011
  zip64,
6952
7012
  localExtraFieldZip64Length,
6953
- signature,
7013
+ crc32,
6954
7014
  compressedSize,
6955
7015
  uncompressedSize,
6956
7016
  zip64UncompressedSize,
6957
7017
  zip64CompressedSize
6958
- }, localHeaderView, { dataDescriptor }) {
7018
+ }, localHeaderView, { dataDescriptor, passThrough }) {
6959
7019
  if (!dataDescriptor) {
6960
- if (!encrypted) {
6961
- setUint32(localHeaderView, HEADER_OFFSET_SIGNATURE + LOCAL_HEADER_COMMON_OFFSET, signature);
7020
+ if (!encrypted || (passThrough && crc32 !== UNDEFINED_VALUE)) {
7021
+ setUint32(localHeaderView, HEADER_OFFSET_SIGNATURE + LOCAL_HEADER_COMMON_OFFSET, crc32);
6962
7022
  }
6963
7023
  if (!zip64CompressedSize) {
6964
7024
  setUint32(localHeaderView, HEADER_OFFSET_COMPRESSED_SIZE + LOCAL_HEADER_COMMON_OFFSET, compressedSize);
@@ -7267,7 +7327,8 @@ async function flushBufferedData(readable, writer, signal, onChunkWritten) {
7267
7327
 
7268
7328
  function getTimeNTFS(date) {
7269
7329
  if (date) {
7270
- return ((BigInt(date.getTime()) + BigInt(11644473600000)) * BigInt(10000));
7330
+ const timeNTFS = ((BigInt(date.getTime()) + BigInt(11644473600000)) * BigInt(10000));
7331
+ return timeNTFS < MIN_NTFS_TIME ? MIN_NTFS_TIME : timeNTFS > MAX_NTFS_TIME ? MAX_NTFS_TIME : timeNTFS;
7271
7332
  }
7272
7333
  }
7273
7334
 
@@ -8227,33 +8288,7 @@ function terminateWorkersAndModule() {
8227
8288
  resetWasmModule();
8228
8289
  }
8229
8290
 
8230
- /*
8231
- Copyright (c) 2025 Gildas Lormeau. All rights reserved.
8232
-
8233
- Redistribution and use in source and binary forms, with or without
8234
- modification, are permitted provided that the following conditions are met:
8235
-
8236
- 1. Redistributions of source code must retain the above copyright notice,
8237
- this list of conditions and the following disclaimer.
8238
-
8239
- 2. Redistributions in binary form must reproduce the above copyright
8240
- notice, this list of conditions and the following disclaimer in
8241
- the documentation and/or other materials provided with the distribution.
8242
-
8243
- 3. The names of the authors may not be used to endorse or promote products
8244
- derived from this software without specific prior written permission.
8245
-
8246
- THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
8247
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
8248
- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,
8249
- INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
8250
- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
8251
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
8252
- OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
8253
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
8254
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
8255
- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8256
- */
8291
+ /// <reference types="../index.d.ts" />
8257
8292
 
8258
8293
 
8259
8294
  configureExternalAssets();
@@ -8289,6 +8324,20 @@ configureExternalAssets();
8289
8324
 
8290
8325
  const ERR_ENTRY_EXISTS = "Entry filename already exists";
8291
8326
  const ERR_READABLE_CONSUMED = "Readable stream already consumed";
8327
+ const INFOZIP_EXTRA_FIELD_TYPE = "infozip";
8328
+ const INTERPRETED_EXTRA_FIELD_TYPES = new Set([
8329
+ EXTRAFIELD_TYPE_ZIP64,
8330
+ EXTRAFIELD_TYPE_AES,
8331
+ EXTRAFIELD_TYPE_NTFS,
8332
+ EXTRAFIELD_TYPE_EXTENDED_TIMESTAMP,
8333
+ EXTRAFIELD_TYPE_UNICODE_PATH,
8334
+ EXTRAFIELD_TYPE_UNICODE_COMMENT,
8335
+ EXTRAFIELD_TYPE_USDZ,
8336
+ EXTRAFIELD_TYPE_INFOZIP,
8337
+ EXTRAFIELD_TYPE_UNIX,
8338
+ EXTRAFIELD_TYPE_UNIX_TYPE1,
8339
+ EXTRAFIELD_TYPE_PKWARE_UNIX
8340
+ ]);
8292
8341
 
8293
8342
  class ZipEntry {
8294
8343
 
@@ -9026,6 +9075,20 @@ function detach(entry) {
9026
9075
  }
9027
9076
  }
9028
9077
 
9078
+ function getUserExtraField(extraField) {
9079
+ if (extraField) {
9080
+ const userExtraField = new Map();
9081
+ extraField.forEach((field, type) => {
9082
+ if (!INTERPRETED_EXTRA_FIELD_TYPES.has(type)) {
9083
+ userExtraField.set(type, field.data);
9084
+ }
9085
+ });
9086
+ if (userExtraField.size) {
9087
+ return userExtraField;
9088
+ }
9089
+ }
9090
+ }
9091
+
9029
9092
  async function exportZip(zipWriter, entry, totalSize, options, readers) {
9030
9093
  const selectedEntry = entry;
9031
9094
  const entryOffsets = new Map();
@@ -9063,9 +9126,13 @@ async function exportZip(zipWriter, entry, totalSize, options, readers) {
9063
9126
  uncompressedSize,
9064
9127
  encrypted,
9065
9128
  zipCrypto,
9066
- signature,
9129
+ crc32,
9067
9130
  compressionMethod,
9068
- extraFieldAES
9131
+ extraFieldAES,
9132
+ internalFileAttributes,
9133
+ extraField,
9134
+ uid,
9135
+ gid
9069
9136
  } = child.data;
9070
9137
  zipEntryOptions = {
9071
9138
  externalFileAttributes,
@@ -9073,8 +9140,20 @@ async function exportZip(zipWriter, entry, totalSize, options, readers) {
9073
9140
  comment,
9074
9141
  lastModDate,
9075
9142
  creationDate,
9076
- lastAccessDate
9143
+ lastAccessDate,
9144
+ internalFileAttributes
9077
9145
  };
9146
+ const userExtraField = getUserExtraField(extraField);
9147
+ if (userExtraField) {
9148
+ zipEntryOptions.extraField = userExtraField;
9149
+ }
9150
+ if (uid !== UNDEFINED_VALUE || gid !== UNDEFINED_VALUE) {
9151
+ Object.assign(zipEntryOptions, {
9152
+ uid,
9153
+ gid,
9154
+ unixExtraFieldType: options.unixExtraFieldType || INFOZIP_EXTRA_FIELD_TYPE
9155
+ });
9156
+ }
9078
9157
  if (child.passThrough) {
9079
9158
  let level, encryptionStrength;
9080
9159
  if (compressionMethod === 0) {
@@ -9087,7 +9166,7 @@ async function exportZip(zipWriter, entry, totalSize, options, readers) {
9087
9166
  passThrough: true,
9088
9167
  encrypted,
9089
9168
  zipCrypto,
9090
- signature,
9169
+ crc32,
9091
9170
  uncompressedSize,
9092
9171
  level,
9093
9172
  encryptionStrength,
@@ -9274,6 +9353,8 @@ function addChild(parent, name, params, directory) {
9274
9353
  }
9275
9354
  }
9276
9355
 
9356
+ const encodedMimeTypes = "application:0andrew-inset ez,2nodex anx,1pplixware aw,1tom!,4cat!,4serv! atomsrv,5vc!,0bbolin lin,0ccxml!,1dmi-capability cdmia,6ontainer cdmic,5domain cdmid,5object cdmio,5queue cdmiq,1u-seeme cu,0davmount!,1ocbook! dbk,1sptype tsp,2sc+der,4! xdssc,0ecmascript es ecma,1mma!,1nvoy evy,1pub+zip,1xi,0font-tdpfr pfr,1ractals fif,1uturesplash spl,0gml!,1px!,1xf,1zip gz tgz,0hta,1yperstudio stk,0inkml! ink inkml,2ternet-property-stream acx,1pfix,0java-archive jar,5serialized-object ser,5vm class,1sonml+json,0lost! lostxml,0m3g,1ac-binhex40 hqx,2ds!,2rc mrc,4xml! mrcx,2thematica nb ma mb,4ml! mathml mml,1box,1ediaservercontrol! mscml,2talink!,84! meta4,3s!,1ods!,1p21 m21 mp21,24 mp4s,1saccess mdb,2word doc dot wiz,1xf,0oda,1ebps-package! opf,1gg ogx,1lescript axs,1mdoc!,1nenote onetoc onetoc2 onetmp onepkg,1xps,0patch-ops-error! xer,1df,1gp-encrypted pgp,4keys key,4signature asc sig,1ics-rules prf,1kcs10 p10,47-mime p7m p7c,6signature p7s,48 p8,2ix-attr-cert ac,5crl crl,5pkipath pkipath,4cmp pki,1ls!,1ostscript ps ai eps epsi epsf eps2 eps3,1rs.cww cww,1skc! pskcxml,0rar,1df!,1eginfo! rif,2lax-ng-compact-syntax rnc,2source-lists! rl,e-diff! rld,1ls-services! rs,1pki-ghostbusters gbr,5manifest mft,5roa roa,1sd!,2s!,1tf,0sbml!,1cvp-cv-request scq,asponse scs,5vp-request spq,asponse spp,1dp,1et-payment-initiation setpay,4registration-initiation setreg,1hf!,1mil! smi smil,1parql-query rq,7results! srx,1rgs gram,4! grxml,2u!,1sdl!,2ml!,0tei! tei teicorpus,1hraud! tfi,1imestamped-data tsd,0vnd.3gpp.pic-bw-large plb,gsmall psb,gvar pvb,82.tcap tcap,5m.post-it-notes pwn,4accpac.simply.aso aso,iimp imp,6ucobol acu,9rp atc acutc,5dobe.air-application-installer-package+zip air,aformscentral.fcdt fcdt,bxp fxp fxpl,axdp! xdp,bfdf xfdf,5head.space ahead,5irzip.filesecure.azf azf,os azs,5mazon.ebook azw,6ericandynamics.acc acc,6iga.ami ami,5ndroid.package-archive apk,6ser-web-certificate-issue-initiation cii,efunds-transfer-initiation fti,6tix.game-component atx,5pple.installer! mpkg,ampegurl m3u8,5ristanetworks.swi swi,5straea-software.iota iota,5udiograph aep,4blueice.multipass mpm,5mi bmi,5usinessobjects rep,4chemdraw! cdxml,6ipnuts.karaoke-mmd mmd,5inderella cdy,5laymore cla,6oanto.rp9 rp9,7nk.c4group c4g c4d c4f c4p c4u,6uetrust.cartomobile-config c11amc,w-pkg c11amz,5ommonspace csp,6ntact.cmsg cdbcmsg,6smocaller cmc,5rick.clicker clkx,h.keyboard clkk,ipalette clkp,itemplate clkt,iwordbank clkw,7ticaltools.wbs! wbs,5tc-posml pml,5ups-ppd ppd,6rl.car car,9pcurl pcurl,4dart dart,6ta-vision.rdz rdz,5ebian.binary-package deb udeb,6ce.data uvf uvvf uvd uvvd,9ttml! uvt uvvt,9unspecified uvx uvvx,9zip uvz uvvz,6novo.fcselayout-link fe_launch,5na dna,5olby.mlp mlp,5pgraph dpg,5reamfactory dfac,5s-keypoint kpxx,5vb.ait ait,8service svc,5ynageo geo,4ecowin.chart mag,5nliven nml,5pson.esf esf,amsf msf,aquickanime qam,asalt slt,bsf ssf,5szigno3! es3 et3,5zpix-album ez2,apackage ez3,4fdf fdf,6sn.mseed mseed,9seed seed dataless,5lographit gph,6uxtime.clip ftc,5ramemaker fm frame maker book,6ogans.fnc fnc,cltf ltf,5sc.weblaunch fsc,5ujitsu.oasys oas,h2 oa2,h3 oa3,hgp fg5,hprs bh2,8xerox.ddd ddd,focuworks xdw,n.binder xbd,6zzysheet fzs,4genomatix.tuxedo txd,6ogebra.file ggb,dtool ggt,7metry-explorer gex gre,7next gxt,7plan g2w,7space g3w,5mx gmx,5oogle-earth.kml! kml,jz kmz,5rafeq gqf gqs,6oove-account gac,bhelp ghf,bidentity-message gim,cnjector grv,btool-message gtm,gtemplate tpl,bvcard vcg,4hal! hal,6ndheld-entertainment! zmm,5bci hbci,5he.lesson-player les,5p-hpgl hpgl,9id hpid,9s hps,7jlyt jlt,7pcl pcl,axl pclxl,5ydrostatix.sof-data sfd-hdstx,5zn-3d-crossword x3d,4ibm.minipay mpy,9odcap afp listafp list3820,8rights-management irm,8secure-container sc,5ccprofile icc icm,5gloader igl,5mmervision-ivp ivp,iu ivu,5nsors.igm igm,6tercon.formnet xpw xpx,9geo i2g,7u.qbo qbo,afx qfx,5punplugged.rcprofile rcprofile,5repository.package! irp,5s-xpr xpr,6ac.fcs fcs,4jam jam,5cp.javame.midlet-rms rms,5isp jisp,5oost.joda-archive joda,4kahootz ktz ktr,5de.karbon karbon,9chart chrt,9formula kfo,9ivio flw,9ontour kon,9presenter kpr kpt,9spread ksp,9word kwd kwt,5enameaapp htke,5idspiration kia,6nar kne knp,5oan skp skd skt skm,6dak-descriptor sse,4las.las! lasxml,5lamagraphics.life-balance.desktop lbd,vexchange! lbe,5otus-1-2-3 123,aapproach apr,afreelance pre,anotes nsf,aorganizer org,ascreencam scm,awordpro lwp,4macports.portpkg portpkg,5cd mcd,5edcalcdata mc1,7iastation.cdkey cdkey,5fer mwf,6mp mfm,5icrografx.flo flo,figx igx,6f mif,5obius.daf daf,cis dis,bmbk mbk,cqy mqy,csl msl,bplc plc,btxf txf,6phun.application mpn,bcertificate mpc,6zilla.xul! xul,5s-artgalry cil,7cab-compressed cab,7excel xls xlb xlt xlm xla xlc xlw,c.addin.macroenabled.12 xlam,dsheet.binary.macroenabled.12 xlsb,jmacroenabled.12 xlsm,dtemplate.macroenabled.12 xltm,7fontobject eot,7htmlhelp chm,7ims ims,7lrm lrm,7officetheme thmx,8utlook msg,7pki.seccat cat,ctl stl,acertstore sst,8owerpoint ppt pps pot ppa pwz,h.addin.macroenabled.12 ppam,ipresentation.macroenabled.12 pptm,islide.macroenabled.12 sldm,nshow.macroenabled.12 ppsm,itemplate.macroenabled.12 potm,8roject mpp mpt,7word.document.macroenabled.12 docm,ctemplate.macroenabled.12 dotm,aks wps wks wcm wdb,8pl wpl,7xpsdocument xps,6eq mseq,5usician mus,6vee.style msty,5ynfc taglet,4neurolanguage.nlu nlu,5itf ntf nitf,5oblenet-directory nnd,dsealer nns,dweb nnw,6kia.n-gage.data ngdat,hsymbian.install n-gage,aradio-preset rpst,ms rpss,6vadigm.edm edm,fx edx,ext ext,4oasis.opendocument.chart odc,s-template otc,ndatabase odb,nformula odf,u-template odft,ngraphics odg,v-template otg,nimage odi,s-template oti,npresentation odp,z-template otp,nspreadsheet ods,y-template ots,ntext odt,r-master odm otm,stemplate ott,sweb oth,5lpc-sugar xo,5ma.dd2! dd2,5penofficeorg.extension oxt,8xmlformats-officedocument.presentationml.presentation pptx,zresentationml.slide sldx,zresentationml.slideshow ppsx,zresentationml.template potx,yspreadsheetml.sheet xlsx,zpreadsheetml.template xltx,ywordprocessingml.document docx,zordprocessingml.template dotx,5sgeo.mapguide.package mgp,7i.dp dp,9subsystem esa,4palm pdb pqa oprc,6waafile paw,5g.format str,7osasli ei6,5icsel efif,5mi.widget wg,5ocketlearn plf,6werbuilder6 pbd,5reviewsystems.box box,6oteus.magazine mgz,5ublishare-delta-tree qps,5vi.ptid1 ptid,4quark.quarkxpress qxd qxt qwd qwt qxl qxb,4realvnc.bed bed,6cordare.musicxml mxl,m! musicxml,5ig.cryptonote cryptonote,5n-realmedia rm,g-vbr rmvb,5oute66.link66! link66,4sailingtracker.track st,5eemail see,6ma sema,7d semd,7f semf,5hana.informed.formdata ifm,ntemplate itp,jinterchange iif,jpackage ipk,5imtech-mindmapper twd twds,5maf mmf,7rt.teacher teacher,5olent.sdkm! sdkm sdkd,5potfire.dxp dxp,dsfs sfs,5qlite3 db sqlite sqlite3 db-wal sqlite-wal db-shm sqlite-shm,5tardivision.calc sdc,ihart sds,hdraw sda,himpress sdd,hmath sdf smf,hwriter sdw vor,n-global sgl,6epmania.package smzip,estepchart sm,5un.xml.calc sxc,g.template stc,cdraw sxd,g.template std,cimpress sxi,j.template sti,cmath sxm,cwriter sxw,i.global sxg,jtemplate stw,6s-calendar sus susp,5vd svd,5ymbian.install sis sisx,6ncml! xsm,a.dm+wbxml bdm,d! xdm,4tao.intent-module-archive tao,5cpdump.pcap pcap cap dmp,5mobile-livetv tmo,5rid.tpt tpt,7scape.mxs mxs,6ueapp tra,4ufdl ufd ufdl,5iq.theme utz,5majin umj,5nity unityweb,5oml! uoml,4vcx vcx,5isio vsd vst vss vsw vsdx vssx vstx vssm vstm,9nary vis,5sf vsf,4wap.sic sic,9lc slc,8wbxml wbxml,9mlc wmlc,bscriptc wmlsc,5ebturbo wtb,5olfram.player nbp,6rdperfect wpd,f5.1 wp5,5qd wqd,5t.stf stf,4xara xar,5fdl xfdl,4yamaha.hv-dic hvd,escript hvs,evoice hvp,bopenscoreformat osf,q.osfpvg! osfpvg,bsmaf-audio saf,gphrase spf,5ellowriver-custom-menu cmp,4zul zir zirz,5zazz.deck! zaz,1oicexml! vxml,0widget wgt,2nhlp hlp,1sdl!,2policy!,0x-123 wk,27z-compressed 7z,2abiword abw,3ce-compressed ace,3pple-diskimage dmg,3uthorware-bin aab x32 u32 vox,dmap aam,dseg aas,2bcpio bcpio,3ittorrent torrent,3lorb blb blorb,3zip bz,62 bz2 boz,2cbr cbr cba cbt cb7,4z cbz,3df cdf cda,4link vcd,3fs-compressed cfs,3hat chat,4ess-pgn pgn,3ompress z,4nference nsc,3pio cpio,3sh csh,2dgc-compressed dgc,3irector dir dxr cst cct cxt w3d fgd swa,3ms dms,3oom wad,3tbncx! ncx,5ook! dtb,5resource! res,3vi dvi,2eva eva,2font-bdf bdf,7ghostscript gsf,7linux-psf psf,7pcf pcf,7snf snf,7ttf ttf ttc,8ype1 pfa pfb pfm afm,3reearc arc,6mind mm,2gca-compressed gca,3lulx ulx,3numeric gnumeric,3o-sgf sgf,3ramps-xml gramps,5phing-calculator gcf,3tar gtar taz,2hdf hdf,3ttpd-eruby rhtml,8php phtml pht php,b-source phps,b3 php3,c-preprocessed php3p,b4 php4,b5 php5,2ica ica,3nfo info,4stall-instructions install,4ternet-signup ins isp,3phone iii,3so9660-image iso,2java-jnlp-file jnlp,3mol jmz,2killustrator kil,3rita kra krz,2latex latex,3yx lyx,3zh-compressed lzh lha,4x lzx,2maker frm fb fbdoc,3ie mie,3obipocket-ebook prc mobi,3s-application application,5installer msi,5shortcut lnk,5wmd wmd,5xbap xbap,4binder obd,4cardfile crd,5lip clp,4dos-program com exe bat dll,4mediaview mvb m13 m14,6tafile wmf wmz emf emz,5oney mny,4publisher pub,4schedule scd,4terminal trm,4write wri,2netcdf nc,3s-proxy-autoconfig pac dat,3wc nwc,3zb nzb,2object o,3z-application oza,2perfmon pma pmc pmr pmw,5l pm pl,3kcs12 p12 pfx,67-certificates p7b spc,creqresp p7r,3ython-code pyc pyo,2qgis qgs shp shx,3uicktimeplayer qtl,2redhat-package-manager rpm rpa,4search-info-systems ris,3uby rb,2sh sh,4ar shar,4ockwave-flash swf swfl,3ilverlight scr,d-app xap,3ql sql,3tuffit sit,9x sitx,3ubrip srt,3v4cpio sv4cpio,6rc sv4crc,2t3vm-image t3,3ar tar,3ex-gf gf,6pk pk,6tfm tfm,5info texinfo texi,3gif obj,3rash ~ % bak old sik,2ustar ustar,2wais-source src,3ingz wz,2x509-ca-cert crt der cer,3cf xcf,3fig fig,3liff! xlf,3pinstall xpi,3z xz,2zmachine z1 z2 z3 z4 z5 z6 z7 z8,1aml!,1cap-diff! xdf,1enc!,1html! xhtml xht,1ml xml xsl xsd xpdl,3-dtd dtd,1op!,1proc! xpl,1slt!,2pf!,1v! mxml xhvml xvml xvm,0yaml yaml yml,2ng,1in!,1nd.ms-pkipko pko,0zip;audio:0aac,1dpcm adp,1iff aiff aif aff,1mr,3-wb awb,1nnodex axa,0basic au snd,0flac,0midi mid midi kar rmi,1p4 mp4a,2eg mpga mpega mp3 m4a mp2a m2a m3a,4url m3u,0ogg oga ogg spx,1pus,0prs.sid sid,0s3m,1ilk sil,0vnd.dece.audio uva uvva,5igital-winds eol,5ra dra,5ts dts,7.hd dtshd,4lucent.voice lvp,4ms-playready.media.pya pya,4nuera.ecelp4800 ecelp4800,f7470 ecelp7470,f9600 ecelp9600,4rip rip,0wav,1ebm weba,0x-aiff aifc,2caf caf,2gsm gsm,2matroska mka,3s-wax wax,6ma wma,2pn-realaudio ram,e-plugin rmp,2realaudio ra,2sd2 sd2,1m;chemical:0x-alchemy alc,2cache cac cache,7-csf csf,5tvs-binary cbin cascii ctab,3dx cdx,3hem3d c3d,3if cif,3mdf cmdf,4l cml,3ompass cpa,3rossfire bsd,3sml csml csm,3tx ctx,3xf cxf cef,2embl-dl-nucleotide emb embl,2gamess-input inp gam gamin,4ussian-checkpoint fch fchk,cube cub,binput gau gjc gjf,blog gal,3cg8-sequence gcg,3enbank gen,2hin hin,2isostar istr ist,2jcamp-dx jdx dx,2kinemage kin,2macmolecule mcm,5romodel-input mmod,3dl-molfile mol,6rdfile rd,7xnfile rxn,6sdfile sd,6tgf tgf,3mcif mcif,3ol2 mol2,5conn-Z b,4pac-graph gpt,8input mop mopcrt zmt,8out moo,2ncbi-asn1 asn,b-ascii prt ent,cbinary val,2rosdal ros,2swissprot sw,2vamas-iso14976 vms,3md vmd,2xtel xtel,3yz xyz;font:0otf,0woff,42;image:0avif avif avifs,0bmp,0cgm,1is-cod cod,0g3fax g3,1if,0heic heif heic,0ief,0jpeg jpeg jpg jpe jfif jfif-tbnl jif,0ktx,0pcx,1jpeg pjpg,1ng,1rs.btif btif,0sgi,1vg! svg svgz,0tiff tiff tif,0vnd.adobe.photoshop psd,4dece.graphic uvi uvvi uvg uvvg,5jvu djvu djv,5wg dwg,5xf dxf,4fastbidsheet fbs,5px fpx,5st fst,5ujixerox.edmics-mmr mmr,lrlc rlc,4ms-modi mdi,7photo wdp,4net-fpx npx,4wap.wbmp wbmp,4xiff xif,0webp,0x-3ds 3ds,2adobe-dng dng,2canon-cr2 cr2,aw crw,3mu-raster ras,4x cmx,3oreldraw cdr,bpattern pat,btemplate cdt,7photopaint cpt,2epson-erf erf,2freehand fh fhc fh4 fh5 fh7,3uji-raf raf,2icns icns,4on ico,2jg art,3ng jng,2kodak-dcr dcr,8k25 k25,9dc kdc,2minolta-mrw mrw,2nikon-nef nef,2olympus-orf orf,2panasonic-raw raw rw2 rwl,3entax-pef pef ptx,3ict pic pct,3ortable-anymap pnm,bbitmap pbm,bgraymap pgm,bpixmap ppm,2rgb rgb,2sigma-x3f x3f,3ony-arw arw,7sr2 sr2,9f srf,2tga tga,2xbitmap xbm,3pixmap xpm,3windowdump xwd;message:0rfc822 eml mime mht mhtml nws;model:0iges igs iges,0mesh msh mesh silo,0vnd.collada! dae,4dwf dwf,4gdl gdl,5tw gtw,4mts mts,4usdz+zip usdz,4vtu vtu,1rml wrl vrml,0x3d+binary x3db x3dbz,4vrml x3dv x3dvz,3! x3dz;text:0cache-manifest manifest appcache,2lendar ics icz ifb,1ss,2v,0h323 323,1tml html htm shtml stm,0iuls uls,0javascript js,1son,0markdown md markdown mdown markdn,0n3,0plain txt text brf conf def list log in bas diff ksh,1rs.lines.tag dsc,0richtext rtx,0scriptlet sct wsc,1gml sgml sgm,0tab-separated-values tsv,1exmacs tm,1roff t tr roff man me ms,1urtle ttl,0uri-list uri uris urls,0vcard,1nd.curl curl,8.dcurl dcurl,9mcurl mcurl,9scurl scurl,4dvb.subtitle sub,4fly fly,5mi.flexstor flx,4graphviz gv,4in3d.3dml 3dml,9spot spot,4sun.j2me.app-descriptor jad,4wap.si si,9l sl,8wml wml,bscript wmls,0webviewhtml htt,0x-asm s asm,2bibtex bib,3oo boo,2c c h dic,3++hdr h++ hpp hxx hh,5src c++ cpp cxx cc,3omponent htc,2diff patch,3src d,2fortran f for f77 f90,2haskell hs,2java java,2literate-haskell lhs,2moc moc,2nfo nfo,2opml opml,2pascal p pas pp inc,3cs-gcd gcd,3ython py,2scala scala,3etext etx,3fv sfv,2tcl tcl tk,3ex tex ltx sty cls,2uuencode uu,2vcalendar vcs,5rd vcf;video:03gpp 3gp,42 3g2,0annodex axv,0dl,1v dif dv,0fli,0gl,0h261,33,34,0jpeg jpgv,2m jpm jpgm,0mj2 mj2 mjp2,1p2t ts,24 mp4 mp4v mpg4,2eg mpeg mpg mpe m1v m2v mp2 mpa mpv2,0ogg ogv,0quicktime qt mov,0vnd.dece.hd uvh uvvh,9mobile uvm uvvm,9pd uvp uvvp,9sd uvs uvvs,9video uvv uvvv,5vb.file dvb,4fvt fvt,4mpegurl mxu m4u,5s-playready.media.pyv pyv,4uvvu.mp4 uvu uvvu,4vivo viv,0webm,0x-f4v f4v,3lv flv,2la-asf lsf lsx,2m4v m4v,3atroska mpv mkv mk3d mks,3ng mng,3s-asf asf asx asr,5vob vob,5wm wm,7v wmv,7x wmx,6vx wvx,4video avi,2sgi-movie movie,3mv smv;x-conference:0x-cooltalk ice;x-world:0x-vrml vrm flr wrz xaf xof";
9357
+
9277
9358
  /*
9278
9359
  Copyright (c) 2022 Gildas Lormeau. All rights reserved.
9279
9360
 
@@ -9303,1589 +9384,6 @@ function addChild(parent, name, params, directory) {
9303
9384
  */
9304
9385
 
9305
9386
 
9306
- const table = {
9307
- "application": {
9308
- "andrew-inset": "ez",
9309
- "annodex": "anx",
9310
- "atom+xml": "atom",
9311
- "atomcat+xml": "atomcat",
9312
- "atomserv+xml": "atomsrv",
9313
- "bbolin": "lin",
9314
- "cu-seeme": "cu",
9315
- "davmount+xml": "davmount",
9316
- "dsptype": "tsp",
9317
- "ecmascript": [
9318
- "es",
9319
- "ecma"
9320
- ],
9321
- "futuresplash": "spl",
9322
- "hta": "hta",
9323
- "java-archive": "jar",
9324
- "java-serialized-object": "ser",
9325
- "java-vm": "class",
9326
- "m3g": "m3g",
9327
- "mac-binhex40": "hqx",
9328
- "mathematica": [
9329
- "nb",
9330
- "ma",
9331
- "mb"
9332
- ],
9333
- "msaccess": "mdb",
9334
- "msword": [
9335
- "doc",
9336
- "dot",
9337
- "wiz"
9338
- ],
9339
- "mxf": "mxf",
9340
- "oda": "oda",
9341
- "ogg": "ogx",
9342
- "pdf": "pdf",
9343
- "pgp-keys": "key",
9344
- "pgp-signature": [
9345
- "asc",
9346
- "sig"
9347
- ],
9348
- "pics-rules": "prf",
9349
- "postscript": [
9350
- "ps",
9351
- "ai",
9352
- "eps",
9353
- "epsi",
9354
- "epsf",
9355
- "eps2",
9356
- "eps3"
9357
- ],
9358
- "rar": "rar",
9359
- "rdf+xml": "rdf",
9360
- "rss+xml": "rss",
9361
- "rtf": "rtf",
9362
- "xhtml+xml": [
9363
- "xhtml",
9364
- "xht"
9365
- ],
9366
- "xml": [
9367
- "xml",
9368
- "xsl",
9369
- "xsd",
9370
- "xpdl"
9371
- ],
9372
- "xspf+xml": "xspf",
9373
- "zip": "zip",
9374
- "vnd.android.package-archive": "apk",
9375
- "vnd.cinderella": "cdy",
9376
- "vnd.google-earth.kml+xml": "kml",
9377
- "vnd.google-earth.kmz": "kmz",
9378
- "vnd.mozilla.xul+xml": "xul",
9379
- "vnd.ms-excel": [
9380
- "xls",
9381
- "xlb",
9382
- "xlt",
9383
- "xlm",
9384
- "xla",
9385
- "xlc",
9386
- "xlw"
9387
- ],
9388
- "vnd.ms-pki.seccat": "cat",
9389
- "vnd.ms-pki.stl": "stl",
9390
- "vnd.ms-powerpoint": [
9391
- "ppt",
9392
- "pps",
9393
- "pot",
9394
- "ppa",
9395
- "pwz"
9396
- ],
9397
- "vnd.oasis.opendocument.chart": "odc",
9398
- "vnd.oasis.opendocument.database": "odb",
9399
- "vnd.oasis.opendocument.formula": "odf",
9400
- "vnd.oasis.opendocument.graphics": "odg",
9401
- "vnd.oasis.opendocument.graphics-template": "otg",
9402
- "vnd.oasis.opendocument.image": "odi",
9403
- "vnd.oasis.opendocument.presentation": "odp",
9404
- "vnd.oasis.opendocument.presentation-template": "otp",
9405
- "vnd.oasis.opendocument.spreadsheet": "ods",
9406
- "vnd.oasis.opendocument.spreadsheet-template": "ots",
9407
- "vnd.oasis.opendocument.text": "odt",
9408
- "vnd.oasis.opendocument.text-master": [
9409
- "odm",
9410
- "otm"
9411
- ],
9412
- "vnd.oasis.opendocument.text-template": "ott",
9413
- "vnd.oasis.opendocument.text-web": "oth",
9414
- "vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
9415
- "vnd.openxmlformats-officedocument.spreadsheetml.template": "xltx",
9416
- "vnd.openxmlformats-officedocument.presentationml.presentation": "pptx",
9417
- "vnd.openxmlformats-officedocument.presentationml.slideshow": "ppsx",
9418
- "vnd.openxmlformats-officedocument.presentationml.template": "potx",
9419
- "vnd.openxmlformats-officedocument.wordprocessingml.document": "docx",
9420
- "vnd.openxmlformats-officedocument.wordprocessingml.template": "dotx",
9421
- "vnd.smaf": "mmf",
9422
- "vnd.stardivision.calc": "sdc",
9423
- "vnd.stardivision.chart": "sds",
9424
- "vnd.stardivision.draw": "sda",
9425
- "vnd.stardivision.impress": "sdd",
9426
- "vnd.stardivision.math": [
9427
- "sdf",
9428
- "smf"
9429
- ],
9430
- "vnd.stardivision.writer": [
9431
- "sdw",
9432
- "vor"
9433
- ],
9434
- "vnd.stardivision.writer-global": "sgl",
9435
- "vnd.sun.xml.calc": "sxc",
9436
- "vnd.sun.xml.calc.template": "stc",
9437
- "vnd.sun.xml.draw": "sxd",
9438
- "vnd.sun.xml.draw.template": "std",
9439
- "vnd.sun.xml.impress": "sxi",
9440
- "vnd.sun.xml.impress.template": "sti",
9441
- "vnd.sun.xml.math": "sxm",
9442
- "vnd.sun.xml.writer": "sxw",
9443
- "vnd.sun.xml.writer.global": "sxg",
9444
- "vnd.sun.xml.writer.template": "stw",
9445
- "vnd.symbian.install": [
9446
- "sis",
9447
- "sisx"
9448
- ],
9449
- "vnd.visio": [
9450
- "vsd",
9451
- "vst",
9452
- "vss",
9453
- "vsw",
9454
- "vsdx",
9455
- "vssx",
9456
- "vstx",
9457
- "vssm",
9458
- "vstm"
9459
- ],
9460
- "vnd.wap.wbxml": "wbxml",
9461
- "vnd.wap.wmlc": "wmlc",
9462
- "vnd.wap.wmlscriptc": "wmlsc",
9463
- "vnd.wordperfect": "wpd",
9464
- "vnd.wordperfect5.1": "wp5",
9465
- "x-123": "wk",
9466
- "x-7z-compressed": "7z",
9467
- "x-abiword": "abw",
9468
- "x-apple-diskimage": "dmg",
9469
- "x-bcpio": "bcpio",
9470
- "x-bittorrent": "torrent",
9471
- "x-cbr": [
9472
- "cbr",
9473
- "cba",
9474
- "cbt",
9475
- "cb7"
9476
- ],
9477
- "x-cbz": "cbz",
9478
- "x-cdf": [
9479
- "cdf",
9480
- "cda"
9481
- ],
9482
- "x-cdlink": "vcd",
9483
- "x-chess-pgn": "pgn",
9484
- "x-cpio": "cpio",
9485
- "x-csh": "csh",
9486
- "x-director": [
9487
- "dir",
9488
- "dxr",
9489
- "cst",
9490
- "cct",
9491
- "cxt",
9492
- "w3d",
9493
- "fgd",
9494
- "swa"
9495
- ],
9496
- "x-dms": "dms",
9497
- "x-doom": "wad",
9498
- "x-dvi": "dvi",
9499
- "x-httpd-eruby": "rhtml",
9500
- "x-freemind": "mm",
9501
- "x-gnumeric": "gnumeric",
9502
- "x-go-sgf": "sgf",
9503
- "x-graphing-calculator": "gcf",
9504
- "x-gtar": [
9505
- "gtar",
9506
- "taz"
9507
- ],
9508
- "x-hdf": "hdf",
9509
- "x-httpd-php": [
9510
- "phtml",
9511
- "pht",
9512
- "php"
9513
- ],
9514
- "x-httpd-php-source": "phps",
9515
- "x-httpd-php3": "php3",
9516
- "x-httpd-php3-preprocessed": "php3p",
9517
- "x-httpd-php4": "php4",
9518
- "x-httpd-php5": "php5",
9519
- "x-ica": "ica",
9520
- "x-info": "info",
9521
- "x-internet-signup": [
9522
- "ins",
9523
- "isp"
9524
- ],
9525
- "x-iphone": "iii",
9526
- "x-iso9660-image": "iso",
9527
- "x-java-jnlp-file": "jnlp",
9528
- "x-jmol": "jmz",
9529
- "x-killustrator": "kil",
9530
- "x-latex": "latex",
9531
- "x-lyx": "lyx",
9532
- "x-lzx": "lzx",
9533
- "x-maker": [
9534
- "frm",
9535
- "fb",
9536
- "fbdoc"
9537
- ],
9538
- "x-ms-wmd": "wmd",
9539
- "x-msdos-program": [
9540
- "com",
9541
- "exe",
9542
- "bat",
9543
- "dll"
9544
- ],
9545
- "x-netcdf": [
9546
- "nc"
9547
- ],
9548
- "x-ns-proxy-autoconfig": [
9549
- "pac",
9550
- "dat"
9551
- ],
9552
- "x-nwc": "nwc",
9553
- "x-object": "o",
9554
- "x-oz-application": "oza",
9555
- "x-pkcs7-certreqresp": "p7r",
9556
- "x-python-code": [
9557
- "pyc",
9558
- "pyo"
9559
- ],
9560
- "x-qgis": [
9561
- "qgs",
9562
- "shp",
9563
- "shx"
9564
- ],
9565
- "x-quicktimeplayer": "qtl",
9566
- "x-redhat-package-manager": [
9567
- "rpm",
9568
- "rpa"
9569
- ],
9570
- "x-ruby": "rb",
9571
- "x-sh": "sh",
9572
- "x-shar": "shar",
9573
- "x-shockwave-flash": [
9574
- "swf",
9575
- "swfl"
9576
- ],
9577
- "x-silverlight": "scr",
9578
- "x-stuffit": "sit",
9579
- "x-sv4cpio": "sv4cpio",
9580
- "x-sv4crc": "sv4crc",
9581
- "x-tar": "tar",
9582
- "x-tex-gf": "gf",
9583
- "x-tex-pk": "pk",
9584
- "x-texinfo": [
9585
- "texinfo",
9586
- "texi"
9587
- ],
9588
- "x-trash": [
9589
- "~",
9590
- "%",
9591
- "bak",
9592
- "old",
9593
- "sik"
9594
- ],
9595
- "x-ustar": "ustar",
9596
- "x-wais-source": "src",
9597
- "x-wingz": "wz",
9598
- "x-x509-ca-cert": [
9599
- "crt",
9600
- "der",
9601
- "cer"
9602
- ],
9603
- "x-xcf": "xcf",
9604
- "x-xfig": "fig",
9605
- "x-xpinstall": "xpi",
9606
- "applixware": "aw",
9607
- "atomsvc+xml": "atomsvc",
9608
- "ccxml+xml": "ccxml",
9609
- "cdmi-capability": "cdmia",
9610
- "cdmi-container": "cdmic",
9611
- "cdmi-domain": "cdmid",
9612
- "cdmi-object": "cdmio",
9613
- "cdmi-queue": "cdmiq",
9614
- "docbook+xml": "dbk",
9615
- "dssc+der": "dssc",
9616
- "dssc+xml": "xdssc",
9617
- "emma+xml": "emma",
9618
- "epub+zip": "epub",
9619
- "exi": "exi",
9620
- "font-tdpfr": "pfr",
9621
- "gml+xml": "gml",
9622
- "gpx+xml": "gpx",
9623
- "gxf": "gxf",
9624
- "hyperstudio": "stk",
9625
- "inkml+xml": [
9626
- "ink",
9627
- "inkml"
9628
- ],
9629
- "ipfix": "ipfix",
9630
- "jsonml+json": "jsonml",
9631
- "lost+xml": "lostxml",
9632
- "mads+xml": "mads",
9633
- "marc": "mrc",
9634
- "marcxml+xml": "mrcx",
9635
- "mathml+xml": [
9636
- "mathml",
9637
- "mml"
9638
- ],
9639
- "mbox": "mbox",
9640
- "mediaservercontrol+xml": "mscml",
9641
- "metalink+xml": "metalink",
9642
- "metalink4+xml": "meta4",
9643
- "mets+xml": "mets",
9644
- "mods+xml": "mods",
9645
- "mp21": [
9646
- "m21",
9647
- "mp21"
9648
- ],
9649
- "mp4": "mp4s",
9650
- "oebps-package+xml": "opf",
9651
- "omdoc+xml": "omdoc",
9652
- "onenote": [
9653
- "onetoc",
9654
- "onetoc2",
9655
- "onetmp",
9656
- "onepkg"
9657
- ],
9658
- "oxps": "oxps",
9659
- "patch-ops-error+xml": "xer",
9660
- "pgp-encrypted": "pgp",
9661
- "pkcs10": "p10",
9662
- "pkcs7-mime": [
9663
- "p7m",
9664
- "p7c"
9665
- ],
9666
- "pkcs7-signature": "p7s",
9667
- "pkcs8": "p8",
9668
- "pkix-attr-cert": "ac",
9669
- "pkix-crl": "crl",
9670
- "pkix-pkipath": "pkipath",
9671
- "pkixcmp": "pki",
9672
- "pls+xml": "pls",
9673
- "prs.cww": "cww",
9674
- "pskc+xml": "pskcxml",
9675
- "reginfo+xml": "rif",
9676
- "relax-ng-compact-syntax": "rnc",
9677
- "resource-lists+xml": "rl",
9678
- "resource-lists-diff+xml": "rld",
9679
- "rls-services+xml": "rs",
9680
- "rpki-ghostbusters": "gbr",
9681
- "rpki-manifest": "mft",
9682
- "rpki-roa": "roa",
9683
- "rsd+xml": "rsd",
9684
- "sbml+xml": "sbml",
9685
- "scvp-cv-request": "scq",
9686
- "scvp-cv-response": "scs",
9687
- "scvp-vp-request": "spq",
9688
- "scvp-vp-response": "spp",
9689
- "sdp": "sdp",
9690
- "set-payment-initiation": "setpay",
9691
- "set-registration-initiation": "setreg",
9692
- "shf+xml": "shf",
9693
- "sparql-query": "rq",
9694
- "sparql-results+xml": "srx",
9695
- "srgs": "gram",
9696
- "srgs+xml": "grxml",
9697
- "sru+xml": "sru",
9698
- "ssdl+xml": "ssdl",
9699
- "ssml+xml": "ssml",
9700
- "tei+xml": [
9701
- "tei",
9702
- "teicorpus"
9703
- ],
9704
- "thraud+xml": "tfi",
9705
- "timestamped-data": "tsd",
9706
- "vnd.3gpp.pic-bw-large": "plb",
9707
- "vnd.3gpp.pic-bw-small": "psb",
9708
- "vnd.3gpp.pic-bw-var": "pvb",
9709
- "vnd.3gpp2.tcap": "tcap",
9710
- "vnd.3m.post-it-notes": "pwn",
9711
- "vnd.accpac.simply.aso": "aso",
9712
- "vnd.accpac.simply.imp": "imp",
9713
- "vnd.acucobol": "acu",
9714
- "vnd.acucorp": [
9715
- "atc",
9716
- "acutc"
9717
- ],
9718
- "vnd.adobe.air-application-installer-package+zip": "air",
9719
- "vnd.adobe.formscentral.fcdt": "fcdt",
9720
- "vnd.adobe.fxp": [
9721
- "fxp",
9722
- "fxpl"
9723
- ],
9724
- "vnd.adobe.xdp+xml": "xdp",
9725
- "vnd.adobe.xfdf": "xfdf",
9726
- "vnd.ahead.space": "ahead",
9727
- "vnd.airzip.filesecure.azf": "azf",
9728
- "vnd.airzip.filesecure.azs": "azs",
9729
- "vnd.amazon.ebook": "azw",
9730
- "vnd.americandynamics.acc": "acc",
9731
- "vnd.amiga.ami": "ami",
9732
- "vnd.anser-web-certificate-issue-initiation": "cii",
9733
- "vnd.anser-web-funds-transfer-initiation": "fti",
9734
- "vnd.antix.game-component": "atx",
9735
- "vnd.apple.installer+xml": "mpkg",
9736
- "vnd.apple.mpegurl": "m3u8",
9737
- "vnd.aristanetworks.swi": "swi",
9738
- "vnd.astraea-software.iota": "iota",
9739
- "vnd.audiograph": "aep",
9740
- "vnd.blueice.multipass": "mpm",
9741
- "vnd.bmi": "bmi",
9742
- "vnd.businessobjects": "rep",
9743
- "vnd.chemdraw+xml": "cdxml",
9744
- "vnd.chipnuts.karaoke-mmd": "mmd",
9745
- "vnd.claymore": "cla",
9746
- "vnd.cloanto.rp9": "rp9",
9747
- "vnd.clonk.c4group": [
9748
- "c4g",
9749
- "c4d",
9750
- "c4f",
9751
- "c4p",
9752
- "c4u"
9753
- ],
9754
- "vnd.cluetrust.cartomobile-config": "c11amc",
9755
- "vnd.cluetrust.cartomobile-config-pkg": "c11amz",
9756
- "vnd.commonspace": "csp",
9757
- "vnd.contact.cmsg": "cdbcmsg",
9758
- "vnd.cosmocaller": "cmc",
9759
- "vnd.crick.clicker": "clkx",
9760
- "vnd.crick.clicker.keyboard": "clkk",
9761
- "vnd.crick.clicker.palette": "clkp",
9762
- "vnd.crick.clicker.template": "clkt",
9763
- "vnd.crick.clicker.wordbank": "clkw",
9764
- "vnd.criticaltools.wbs+xml": "wbs",
9765
- "vnd.ctc-posml": "pml",
9766
- "vnd.cups-ppd": "ppd",
9767
- "vnd.curl.car": "car",
9768
- "vnd.curl.pcurl": "pcurl",
9769
- "vnd.dart": "dart",
9770
- "vnd.data-vision.rdz": "rdz",
9771
- "vnd.dece.data": [
9772
- "uvf",
9773
- "uvvf",
9774
- "uvd",
9775
- "uvvd"
9776
- ],
9777
- "vnd.dece.ttml+xml": [
9778
- "uvt",
9779
- "uvvt"
9780
- ],
9781
- "vnd.dece.unspecified": [
9782
- "uvx",
9783
- "uvvx"
9784
- ],
9785
- "vnd.dece.zip": [
9786
- "uvz",
9787
- "uvvz"
9788
- ],
9789
- "vnd.denovo.fcselayout-link": "fe_launch",
9790
- "vnd.dna": "dna",
9791
- "vnd.dolby.mlp": "mlp",
9792
- "vnd.dpgraph": "dpg",
9793
- "vnd.dreamfactory": "dfac",
9794
- "vnd.ds-keypoint": "kpxx",
9795
- "vnd.dvb.ait": "ait",
9796
- "vnd.dvb.service": "svc",
9797
- "vnd.dynageo": "geo",
9798
- "vnd.ecowin.chart": "mag",
9799
- "vnd.enliven": "nml",
9800
- "vnd.epson.esf": "esf",
9801
- "vnd.epson.msf": "msf",
9802
- "vnd.epson.quickanime": "qam",
9803
- "vnd.epson.salt": "slt",
9804
- "vnd.epson.ssf": "ssf",
9805
- "vnd.eszigno3+xml": [
9806
- "es3",
9807
- "et3"
9808
- ],
9809
- "vnd.ezpix-album": "ez2",
9810
- "vnd.ezpix-package": "ez3",
9811
- "vnd.fdf": "fdf",
9812
- "vnd.fdsn.mseed": "mseed",
9813
- "vnd.fdsn.seed": [
9814
- "seed",
9815
- "dataless"
9816
- ],
9817
- "vnd.flographit": "gph",
9818
- "vnd.fluxtime.clip": "ftc",
9819
- "vnd.framemaker": [
9820
- "fm",
9821
- "frame",
9822
- "maker",
9823
- "book"
9824
- ],
9825
- "vnd.frogans.fnc": "fnc",
9826
- "vnd.frogans.ltf": "ltf",
9827
- "vnd.fsc.weblaunch": "fsc",
9828
- "vnd.fujitsu.oasys": "oas",
9829
- "vnd.fujitsu.oasys2": "oa2",
9830
- "vnd.fujitsu.oasys3": "oa3",
9831
- "vnd.fujitsu.oasysgp": "fg5",
9832
- "vnd.fujitsu.oasysprs": "bh2",
9833
- "vnd.fujixerox.ddd": "ddd",
9834
- "vnd.fujixerox.docuworks": "xdw",
9835
- "vnd.fujixerox.docuworks.binder": "xbd",
9836
- "vnd.fuzzysheet": "fzs",
9837
- "vnd.genomatix.tuxedo": "txd",
9838
- "vnd.geogebra.file": "ggb",
9839
- "vnd.geogebra.tool": "ggt",
9840
- "vnd.geometry-explorer": [
9841
- "gex",
9842
- "gre"
9843
- ],
9844
- "vnd.geonext": "gxt",
9845
- "vnd.geoplan": "g2w",
9846
- "vnd.geospace": "g3w",
9847
- "vnd.gmx": "gmx",
9848
- "vnd.grafeq": [
9849
- "gqf",
9850
- "gqs"
9851
- ],
9852
- "vnd.groove-account": "gac",
9853
- "vnd.groove-help": "ghf",
9854
- "vnd.groove-identity-message": "gim",
9855
- "vnd.groove-injector": "grv",
9856
- "vnd.groove-tool-message": "gtm",
9857
- "vnd.groove-tool-template": "tpl",
9858
- "vnd.groove-vcard": "vcg",
9859
- "vnd.hal+xml": "hal",
9860
- "vnd.handheld-entertainment+xml": "zmm",
9861
- "vnd.hbci": "hbci",
9862
- "vnd.hhe.lesson-player": "les",
9863
- "vnd.hp-hpgl": "hpgl",
9864
- "vnd.hp-hpid": "hpid",
9865
- "vnd.hp-hps": "hps",
9866
- "vnd.hp-jlyt": "jlt",
9867
- "vnd.hp-pcl": "pcl",
9868
- "vnd.hp-pclxl": "pclxl",
9869
- "vnd.hydrostatix.sof-data": "sfd-hdstx",
9870
- "vnd.ibm.minipay": "mpy",
9871
- "vnd.ibm.modcap": [
9872
- "afp",
9873
- "listafp",
9874
- "list3820"
9875
- ],
9876
- "vnd.ibm.rights-management": "irm",
9877
- "vnd.ibm.secure-container": "sc",
9878
- "vnd.iccprofile": [
9879
- "icc",
9880
- "icm"
9881
- ],
9882
- "vnd.igloader": "igl",
9883
- "vnd.immervision-ivp": "ivp",
9884
- "vnd.immervision-ivu": "ivu",
9885
- "vnd.insors.igm": "igm",
9886
- "vnd.intercon.formnet": [
9887
- "xpw",
9888
- "xpx"
9889
- ],
9890
- "vnd.intergeo": "i2g",
9891
- "vnd.intu.qbo": "qbo",
9892
- "vnd.intu.qfx": "qfx",
9893
- "vnd.ipunplugged.rcprofile": "rcprofile",
9894
- "vnd.irepository.package+xml": "irp",
9895
- "vnd.is-xpr": "xpr",
9896
- "vnd.isac.fcs": "fcs",
9897
- "vnd.jam": "jam",
9898
- "vnd.jcp.javame.midlet-rms": "rms",
9899
- "vnd.jisp": "jisp",
9900
- "vnd.joost.joda-archive": "joda",
9901
- "vnd.kahootz": [
9902
- "ktz",
9903
- "ktr"
9904
- ],
9905
- "vnd.kde.karbon": "karbon",
9906
- "vnd.kde.kchart": "chrt",
9907
- "vnd.kde.kformula": "kfo",
9908
- "vnd.kde.kivio": "flw",
9909
- "vnd.kde.kontour": "kon",
9910
- "vnd.kde.kpresenter": [
9911
- "kpr",
9912
- "kpt"
9913
- ],
9914
- "vnd.kde.kspread": "ksp",
9915
- "vnd.kde.kword": [
9916
- "kwd",
9917
- "kwt"
9918
- ],
9919
- "vnd.kenameaapp": "htke",
9920
- "vnd.kidspiration": "kia",
9921
- "vnd.kinar": [
9922
- "kne",
9923
- "knp"
9924
- ],
9925
- "vnd.koan": [
9926
- "skp",
9927
- "skd",
9928
- "skt",
9929
- "skm"
9930
- ],
9931
- "vnd.kodak-descriptor": "sse",
9932
- "vnd.las.las+xml": "lasxml",
9933
- "vnd.llamagraphics.life-balance.desktop": "lbd",
9934
- "vnd.llamagraphics.life-balance.exchange+xml": "lbe",
9935
- "vnd.lotus-1-2-3": "123",
9936
- "vnd.lotus-approach": "apr",
9937
- "vnd.lotus-freelance": "pre",
9938
- "vnd.lotus-notes": "nsf",
9939
- "vnd.lotus-organizer": "org",
9940
- "vnd.lotus-screencam": "scm",
9941
- "vnd.lotus-wordpro": "lwp",
9942
- "vnd.macports.portpkg": "portpkg",
9943
- "vnd.mcd": "mcd",
9944
- "vnd.medcalcdata": "mc1",
9945
- "vnd.mediastation.cdkey": "cdkey",
9946
- "vnd.mfer": "mwf",
9947
- "vnd.mfmp": "mfm",
9948
- "vnd.micrografx.flo": "flo",
9949
- "vnd.micrografx.igx": "igx",
9950
- "vnd.mif": "mif",
9951
- "vnd.mobius.daf": "daf",
9952
- "vnd.mobius.dis": "dis",
9953
- "vnd.mobius.mbk": "mbk",
9954
- "vnd.mobius.mqy": "mqy",
9955
- "vnd.mobius.msl": "msl",
9956
- "vnd.mobius.plc": "plc",
9957
- "vnd.mobius.txf": "txf",
9958
- "vnd.mophun.application": "mpn",
9959
- "vnd.mophun.certificate": "mpc",
9960
- "vnd.ms-artgalry": "cil",
9961
- "vnd.ms-cab-compressed": "cab",
9962
- "vnd.ms-excel.addin.macroenabled.12": "xlam",
9963
- "vnd.ms-excel.sheet.binary.macroenabled.12": "xlsb",
9964
- "vnd.ms-excel.sheet.macroenabled.12": "xlsm",
9965
- "vnd.ms-excel.template.macroenabled.12": "xltm",
9966
- "vnd.ms-fontobject": "eot",
9967
- "vnd.ms-htmlhelp": "chm",
9968
- "vnd.ms-ims": "ims",
9969
- "vnd.ms-lrm": "lrm",
9970
- "vnd.ms-officetheme": "thmx",
9971
- "vnd.ms-powerpoint.addin.macroenabled.12": "ppam",
9972
- "vnd.ms-powerpoint.presentation.macroenabled.12": "pptm",
9973
- "vnd.ms-powerpoint.slide.macroenabled.12": "sldm",
9974
- "vnd.ms-powerpoint.slideshow.macroenabled.12": "ppsm",
9975
- "vnd.ms-powerpoint.template.macroenabled.12": "potm",
9976
- "vnd.ms-project": [
9977
- "mpp",
9978
- "mpt"
9979
- ],
9980
- "vnd.ms-word.document.macroenabled.12": "docm",
9981
- "vnd.ms-word.template.macroenabled.12": "dotm",
9982
- "vnd.ms-works": [
9983
- "wps",
9984
- "wks",
9985
- "wcm",
9986
- "wdb"
9987
- ],
9988
- "vnd.ms-wpl": "wpl",
9989
- "vnd.ms-xpsdocument": "xps",
9990
- "vnd.mseq": "mseq",
9991
- "vnd.musician": "mus",
9992
- "vnd.muvee.style": "msty",
9993
- "vnd.mynfc": "taglet",
9994
- "vnd.neurolanguage.nlu": "nlu",
9995
- "vnd.nitf": [
9996
- "ntf",
9997
- "nitf"
9998
- ],
9999
- "vnd.noblenet-directory": "nnd",
10000
- "vnd.noblenet-sealer": "nns",
10001
- "vnd.noblenet-web": "nnw",
10002
- "vnd.nokia.n-gage.data": "ngdat",
10003
- "vnd.nokia.n-gage.symbian.install": "n-gage",
10004
- "vnd.nokia.radio-preset": "rpst",
10005
- "vnd.nokia.radio-presets": "rpss",
10006
- "vnd.novadigm.edm": "edm",
10007
- "vnd.novadigm.edx": "edx",
10008
- "vnd.novadigm.ext": "ext",
10009
- "vnd.oasis.opendocument.chart-template": "otc",
10010
- "vnd.oasis.opendocument.formula-template": "odft",
10011
- "vnd.oasis.opendocument.image-template": "oti",
10012
- "vnd.olpc-sugar": "xo",
10013
- "vnd.oma.dd2+xml": "dd2",
10014
- "vnd.openofficeorg.extension": "oxt",
10015
- "vnd.openxmlformats-officedocument.presentationml.slide": "sldx",
10016
- "vnd.osgeo.mapguide.package": "mgp",
10017
- "vnd.osgi.dp": "dp",
10018
- "vnd.osgi.subsystem": "esa",
10019
- "vnd.palm": [
10020
- "pdb",
10021
- "pqa",
10022
- "oprc"
10023
- ],
10024
- "vnd.pawaafile": "paw",
10025
- "vnd.pg.format": "str",
10026
- "vnd.pg.osasli": "ei6",
10027
- "vnd.picsel": "efif",
10028
- "vnd.pmi.widget": "wg",
10029
- "vnd.pocketlearn": "plf",
10030
- "vnd.powerbuilder6": "pbd",
10031
- "vnd.previewsystems.box": "box",
10032
- "vnd.proteus.magazine": "mgz",
10033
- "vnd.publishare-delta-tree": "qps",
10034
- "vnd.pvi.ptid1": "ptid",
10035
- "vnd.quark.quarkxpress": [
10036
- "qxd",
10037
- "qxt",
10038
- "qwd",
10039
- "qwt",
10040
- "qxl",
10041
- "qxb"
10042
- ],
10043
- "vnd.realvnc.bed": "bed",
10044
- "vnd.recordare.musicxml": "mxl",
10045
- "vnd.recordare.musicxml+xml": "musicxml",
10046
- "vnd.rig.cryptonote": "cryptonote",
10047
- "vnd.rn-realmedia": "rm",
10048
- "vnd.rn-realmedia-vbr": "rmvb",
10049
- "vnd.route66.link66+xml": "link66",
10050
- "vnd.sailingtracker.track": "st",
10051
- "vnd.seemail": "see",
10052
- "vnd.sema": "sema",
10053
- "vnd.semd": "semd",
10054
- "vnd.semf": "semf",
10055
- "vnd.shana.informed.formdata": "ifm",
10056
- "vnd.shana.informed.formtemplate": "itp",
10057
- "vnd.shana.informed.interchange": "iif",
10058
- "vnd.shana.informed.package": "ipk",
10059
- "vnd.simtech-mindmapper": [
10060
- "twd",
10061
- "twds"
10062
- ],
10063
- "vnd.smart.teacher": "teacher",
10064
- "vnd.solent.sdkm+xml": [
10065
- "sdkm",
10066
- "sdkd"
10067
- ],
10068
- "vnd.spotfire.dxp": "dxp",
10069
- "vnd.spotfire.sfs": "sfs",
10070
- "vnd.stepmania.package": "smzip",
10071
- "vnd.stepmania.stepchart": "sm",
10072
- "vnd.sus-calendar": [
10073
- "sus",
10074
- "susp"
10075
- ],
10076
- "vnd.svd": "svd",
10077
- "vnd.syncml+xml": "xsm",
10078
- "vnd.syncml.dm+wbxml": "bdm",
10079
- "vnd.syncml.dm+xml": "xdm",
10080
- "vnd.tao.intent-module-archive": "tao",
10081
- "vnd.tcpdump.pcap": [
10082
- "pcap",
10083
- "cap",
10084
- "dmp"
10085
- ],
10086
- "vnd.tmobile-livetv": "tmo",
10087
- "vnd.trid.tpt": "tpt",
10088
- "vnd.triscape.mxs": "mxs",
10089
- "vnd.trueapp": "tra",
10090
- "vnd.ufdl": [
10091
- "ufd",
10092
- "ufdl"
10093
- ],
10094
- "vnd.uiq.theme": "utz",
10095
- "vnd.umajin": "umj",
10096
- "vnd.unity": "unityweb",
10097
- "vnd.uoml+xml": "uoml",
10098
- "vnd.vcx": "vcx",
10099
- "vnd.visionary": "vis",
10100
- "vnd.vsf": "vsf",
10101
- "vnd.webturbo": "wtb",
10102
- "vnd.wolfram.player": "nbp",
10103
- "vnd.wqd": "wqd",
10104
- "vnd.wt.stf": "stf",
10105
- "vnd.xara": "xar",
10106
- "vnd.xfdl": "xfdl",
10107
- "vnd.yamaha.hv-dic": "hvd",
10108
- "vnd.yamaha.hv-script": "hvs",
10109
- "vnd.yamaha.hv-voice": "hvp",
10110
- "vnd.yamaha.openscoreformat": "osf",
10111
- "vnd.yamaha.openscoreformat.osfpvg+xml": "osfpvg",
10112
- "vnd.yamaha.smaf-audio": "saf",
10113
- "vnd.yamaha.smaf-phrase": "spf",
10114
- "vnd.yellowriver-custom-menu": "cmp",
10115
- "vnd.zul": [
10116
- "zir",
10117
- "zirz"
10118
- ],
10119
- "vnd.zzazz.deck+xml": "zaz",
10120
- "voicexml+xml": "vxml",
10121
- "widget": "wgt",
10122
- "winhlp": "hlp",
10123
- "wsdl+xml": "wsdl",
10124
- "wspolicy+xml": "wspolicy",
10125
- "x-ace-compressed": "ace",
10126
- "x-authorware-bin": [
10127
- "aab",
10128
- "x32",
10129
- "u32",
10130
- "vox"
10131
- ],
10132
- "x-authorware-map": "aam",
10133
- "x-authorware-seg": "aas",
10134
- "x-blorb": [
10135
- "blb",
10136
- "blorb"
10137
- ],
10138
- "x-bzip": "bz",
10139
- "x-bzip2": [
10140
- "bz2",
10141
- "boz"
10142
- ],
10143
- "x-cfs-compressed": "cfs",
10144
- "x-chat": "chat",
10145
- "x-conference": "nsc",
10146
- "x-dgc-compressed": "dgc",
10147
- "x-dtbncx+xml": "ncx",
10148
- "x-dtbook+xml": "dtb",
10149
- "x-dtbresource+xml": "res",
10150
- "x-eva": "eva",
10151
- "x-font-bdf": "bdf",
10152
- "x-font-ghostscript": "gsf",
10153
- "x-font-linux-psf": "psf",
10154
- "x-font-pcf": "pcf",
10155
- "x-font-snf": "snf",
10156
- "x-font-ttf": [
10157
- "ttf",
10158
- "ttc"
10159
- ],
10160
- "x-font-type1": [
10161
- "pfa",
10162
- "pfb",
10163
- "pfm",
10164
- "afm"
10165
- ],
10166
- "x-freearc": "arc",
10167
- "x-gca-compressed": "gca",
10168
- "x-glulx": "ulx",
10169
- "x-gramps-xml": "gramps",
10170
- "x-install-instructions": "install",
10171
- "x-lzh-compressed": [
10172
- "lzh",
10173
- "lha"
10174
- ],
10175
- "x-mie": "mie",
10176
- "x-mobipocket-ebook": [
10177
- "prc",
10178
- "mobi"
10179
- ],
10180
- "x-ms-application": "application",
10181
- "x-ms-shortcut": "lnk",
10182
- "x-ms-xbap": "xbap",
10183
- "x-msbinder": "obd",
10184
- "x-mscardfile": "crd",
10185
- "x-msclip": "clp",
10186
- "x-ms-installer": "msi",
10187
- "x-msmediaview": [
10188
- "mvb",
10189
- "m13",
10190
- "m14"
10191
- ],
10192
- "x-msmetafile": [
10193
- "wmf",
10194
- "wmz",
10195
- "emf",
10196
- "emz"
10197
- ],
10198
- "x-msmoney": "mny",
10199
- "x-mspublisher": "pub",
10200
- "x-msschedule": "scd",
10201
- "x-msterminal": "trm",
10202
- "x-mswrite": "wri",
10203
- "x-nzb": "nzb",
10204
- "x-pkcs12": [
10205
- "p12",
10206
- "pfx"
10207
- ],
10208
- "x-pkcs7-certificates": [
10209
- "p7b",
10210
- "spc"
10211
- ],
10212
- "x-research-info-systems": "ris",
10213
- "x-silverlight-app": "xap",
10214
- "x-sql": "sql",
10215
- "x-stuffitx": "sitx",
10216
- "x-subrip": "srt",
10217
- "x-t3vm-image": "t3",
10218
- "x-tex-tfm": "tfm",
10219
- "x-tgif": "obj",
10220
- "x-xliff+xml": "xlf",
10221
- "x-xz": "xz",
10222
- "x-zmachine": [
10223
- "z1",
10224
- "z2",
10225
- "z3",
10226
- "z4",
10227
- "z5",
10228
- "z6",
10229
- "z7",
10230
- "z8"
10231
- ],
10232
- "xaml+xml": "xaml",
10233
- "xcap-diff+xml": "xdf",
10234
- "xenc+xml": "xenc",
10235
- "xml-dtd": "dtd",
10236
- "xop+xml": "xop",
10237
- "xproc+xml": "xpl",
10238
- "xslt+xml": "xslt",
10239
- "xv+xml": [
10240
- "mxml",
10241
- "xhvml",
10242
- "xvml",
10243
- "xvm"
10244
- ],
10245
- "yang": "yang",
10246
- "yin+xml": "yin",
10247
- "envoy": "evy",
10248
- "fractals": "fif",
10249
- "internet-property-stream": "acx",
10250
- "olescript": "axs",
10251
- "vnd.ms-outlook": "msg",
10252
- "vnd.ms-pkicertstore": "sst",
10253
- "x-compress": "z",
10254
- "x-perfmon": [
10255
- "pma",
10256
- "pmc",
10257
- "pmr",
10258
- "pmw"
10259
- ],
10260
- "ynd.ms-pkipko": "pko",
10261
- "gzip": [
10262
- "gz",
10263
- "tgz"
10264
- ],
10265
- "smil+xml": [
10266
- "smi",
10267
- "smil"
10268
- ],
10269
- "vnd.debian.binary-package": [
10270
- "deb",
10271
- "udeb"
10272
- ],
10273
- "vnd.hzn-3d-crossword": "x3d",
10274
- "vnd.sqlite3": [
10275
- "db",
10276
- "sqlite",
10277
- "sqlite3",
10278
- "db-wal",
10279
- "sqlite-wal",
10280
- "db-shm",
10281
- "sqlite-shm"
10282
- ],
10283
- "vnd.wap.sic": "sic",
10284
- "vnd.wap.slc": "slc",
10285
- "x-krita": [
10286
- "kra",
10287
- "krz"
10288
- ],
10289
- "x-perl": [
10290
- "pm",
10291
- "pl"
10292
- ],
10293
- "yaml": [
10294
- "yaml",
10295
- "yml"
10296
- ]
10297
- },
10298
- "audio": {
10299
- "amr": "amr",
10300
- "amr-wb": "awb",
10301
- "annodex": "axa",
10302
- "basic": [
10303
- "au",
10304
- "snd"
10305
- ],
10306
- "flac": "flac",
10307
- "midi": [
10308
- "mid",
10309
- "midi",
10310
- "kar",
10311
- "rmi"
10312
- ],
10313
- "mpeg": [
10314
- "mpga",
10315
- "mpega",
10316
- "mp3",
10317
- "m4a",
10318
- "mp2a",
10319
- "m2a",
10320
- "m3a"
10321
- ],
10322
- "mpegurl": "m3u",
10323
- "ogg": [
10324
- "oga",
10325
- "ogg",
10326
- "spx"
10327
- ],
10328
- "prs.sid": "sid",
10329
- "x-aiff": "aifc",
10330
- "x-gsm": "gsm",
10331
- "x-ms-wma": "wma",
10332
- "x-ms-wax": "wax",
10333
- "x-pn-realaudio": "ram",
10334
- "x-realaudio": "ra",
10335
- "x-sd2": "sd2",
10336
- "adpcm": "adp",
10337
- "mp4": "mp4a",
10338
- "s3m": "s3m",
10339
- "silk": "sil",
10340
- "vnd.dece.audio": [
10341
- "uva",
10342
- "uvva"
10343
- ],
10344
- "vnd.digital-winds": "eol",
10345
- "vnd.dra": "dra",
10346
- "vnd.dts": "dts",
10347
- "vnd.dts.hd": "dtshd",
10348
- "vnd.lucent.voice": "lvp",
10349
- "vnd.ms-playready.media.pya": "pya",
10350
- "vnd.nuera.ecelp4800": "ecelp4800",
10351
- "vnd.nuera.ecelp7470": "ecelp7470",
10352
- "vnd.nuera.ecelp9600": "ecelp9600",
10353
- "vnd.rip": "rip",
10354
- "webm": "weba",
10355
- "x-caf": "caf",
10356
- "x-matroska": "mka",
10357
- "x-pn-realaudio-plugin": "rmp",
10358
- "xm": "xm",
10359
- "aac": "aac",
10360
- "aiff": [
10361
- "aiff",
10362
- "aif",
10363
- "aff"
10364
- ],
10365
- "opus": "opus",
10366
- "wav": "wav"
10367
- },
10368
- "chemical": {
10369
- "x-alchemy": "alc",
10370
- "x-cache": [
10371
- "cac",
10372
- "cache"
10373
- ],
10374
- "x-cache-csf": "csf",
10375
- "x-cactvs-binary": [
10376
- "cbin",
10377
- "cascii",
10378
- "ctab"
10379
- ],
10380
- "x-cdx": "cdx",
10381
- "x-chem3d": "c3d",
10382
- "x-cif": "cif",
10383
- "x-cmdf": "cmdf",
10384
- "x-cml": "cml",
10385
- "x-compass": "cpa",
10386
- "x-crossfire": "bsd",
10387
- "x-csml": [
10388
- "csml",
10389
- "csm"
10390
- ],
10391
- "x-ctx": "ctx",
10392
- "x-cxf": [
10393
- "cxf",
10394
- "cef"
10395
- ],
10396
- "x-embl-dl-nucleotide": [
10397
- "emb",
10398
- "embl"
10399
- ],
10400
- "x-gamess-input": [
10401
- "inp",
10402
- "gam",
10403
- "gamin"
10404
- ],
10405
- "x-gaussian-checkpoint": [
10406
- "fch",
10407
- "fchk"
10408
- ],
10409
- "x-gaussian-cube": "cub",
10410
- "x-gaussian-input": [
10411
- "gau",
10412
- "gjc",
10413
- "gjf"
10414
- ],
10415
- "x-gaussian-log": "gal",
10416
- "x-gcg8-sequence": "gcg",
10417
- "x-genbank": "gen",
10418
- "x-hin": "hin",
10419
- "x-isostar": [
10420
- "istr",
10421
- "ist"
10422
- ],
10423
- "x-jcamp-dx": [
10424
- "jdx",
10425
- "dx"
10426
- ],
10427
- "x-kinemage": "kin",
10428
- "x-macmolecule": "mcm",
10429
- "x-macromodel-input": "mmod",
10430
- "x-mdl-molfile": "mol",
10431
- "x-mdl-rdfile": "rd",
10432
- "x-mdl-rxnfile": "rxn",
10433
- "x-mdl-sdfile": "sd",
10434
- "x-mdl-tgf": "tgf",
10435
- "x-mmcif": "mcif",
10436
- "x-mol2": "mol2",
10437
- "x-molconn-Z": "b",
10438
- "x-mopac-graph": "gpt",
10439
- "x-mopac-input": [
10440
- "mop",
10441
- "mopcrt",
10442
- "zmt"
10443
- ],
10444
- "x-mopac-out": "moo",
10445
- "x-ncbi-asn1": "asn",
10446
- "x-ncbi-asn1-ascii": [
10447
- "prt",
10448
- "ent"
10449
- ],
10450
- "x-ncbi-asn1-binary": "val",
10451
- "x-rosdal": "ros",
10452
- "x-swissprot": "sw",
10453
- "x-vamas-iso14976": "vms",
10454
- "x-vmd": "vmd",
10455
- "x-xtel": "xtel",
10456
- "x-xyz": "xyz"
10457
- },
10458
- "font": {
10459
- "otf": "otf",
10460
- "woff": "woff",
10461
- "woff2": "woff2"
10462
- },
10463
- "image": {
10464
- "gif": "gif",
10465
- "ief": "ief",
10466
- "jpeg": [
10467
- "jpeg",
10468
- "jpg",
10469
- "jpe",
10470
- "jfif",
10471
- "jfif-tbnl",
10472
- "jif"
10473
- ],
10474
- "pcx": "pcx",
10475
- "png": "png",
10476
- "svg+xml": [
10477
- "svg",
10478
- "svgz"
10479
- ],
10480
- "tiff": [
10481
- "tiff",
10482
- "tif"
10483
- ],
10484
- "vnd.djvu": [
10485
- "djvu",
10486
- "djv"
10487
- ],
10488
- "vnd.wap.wbmp": "wbmp",
10489
- "x-canon-cr2": "cr2",
10490
- "x-canon-crw": "crw",
10491
- "x-cmu-raster": "ras",
10492
- "x-coreldraw": "cdr",
10493
- "x-coreldrawpattern": "pat",
10494
- "x-coreldrawtemplate": "cdt",
10495
- "x-corelphotopaint": "cpt",
10496
- "x-epson-erf": "erf",
10497
- "x-icon": "ico",
10498
- "x-jg": "art",
10499
- "x-jng": "jng",
10500
- "x-nikon-nef": "nef",
10501
- "x-olympus-orf": "orf",
10502
- "x-portable-anymap": "pnm",
10503
- "x-portable-bitmap": "pbm",
10504
- "x-portable-graymap": "pgm",
10505
- "x-portable-pixmap": "ppm",
10506
- "x-rgb": "rgb",
10507
- "x-xbitmap": "xbm",
10508
- "x-xpixmap": "xpm",
10509
- "x-xwindowdump": "xwd",
10510
- "bmp": "bmp",
10511
- "cgm": "cgm",
10512
- "g3fax": "g3",
10513
- "ktx": "ktx",
10514
- "prs.btif": "btif",
10515
- "sgi": "sgi",
10516
- "vnd.dece.graphic": [
10517
- "uvi",
10518
- "uvvi",
10519
- "uvg",
10520
- "uvvg"
10521
- ],
10522
- "vnd.dwg": "dwg",
10523
- "vnd.dxf": "dxf",
10524
- "vnd.fastbidsheet": "fbs",
10525
- "vnd.fpx": "fpx",
10526
- "vnd.fst": "fst",
10527
- "vnd.fujixerox.edmics-mmr": "mmr",
10528
- "vnd.fujixerox.edmics-rlc": "rlc",
10529
- "vnd.ms-modi": "mdi",
10530
- "vnd.ms-photo": "wdp",
10531
- "vnd.net-fpx": "npx",
10532
- "vnd.xiff": "xif",
10533
- "webp": "webp",
10534
- "x-3ds": "3ds",
10535
- "x-cmx": "cmx",
10536
- "x-freehand": [
10537
- "fh",
10538
- "fhc",
10539
- "fh4",
10540
- "fh5",
10541
- "fh7"
10542
- ],
10543
- "x-pict": [
10544
- "pic",
10545
- "pct"
10546
- ],
10547
- "x-tga": "tga",
10548
- "cis-cod": "cod",
10549
- "avif": [
10550
- "avif",
10551
- "avifs"
10552
- ],
10553
- "heic": [
10554
- "heif",
10555
- "heic"
10556
- ],
10557
- "pjpeg": [
10558
- "pjpg"
10559
- ],
10560
- "vnd.adobe.photoshop": "psd",
10561
- "x-adobe-dng": "dng",
10562
- "x-fuji-raf": "raf",
10563
- "x-icns": "icns",
10564
- "x-kodak-dcr": "dcr",
10565
- "x-kodak-k25": "k25",
10566
- "x-kodak-kdc": "kdc",
10567
- "x-minolta-mrw": "mrw",
10568
- "x-panasonic-raw": [
10569
- "raw",
10570
- "rw2",
10571
- "rwl"
10572
- ],
10573
- "x-pentax-pef": [
10574
- "pef",
10575
- "ptx"
10576
- ],
10577
- "x-sigma-x3f": "x3f",
10578
- "x-sony-arw": "arw",
10579
- "x-sony-sr2": "sr2",
10580
- "x-sony-srf": "srf"
10581
- },
10582
- "message": {
10583
- "rfc822": [
10584
- "eml",
10585
- "mime",
10586
- "mht",
10587
- "mhtml",
10588
- "nws"
10589
- ]
10590
- },
10591
- "model": {
10592
- "iges": [
10593
- "igs",
10594
- "iges"
10595
- ],
10596
- "mesh": [
10597
- "msh",
10598
- "mesh",
10599
- "silo"
10600
- ],
10601
- "vrml": [
10602
- "wrl",
10603
- "vrml"
10604
- ],
10605
- "x3d+vrml": [
10606
- "x3dv",
10607
- "x3dvz"
10608
- ],
10609
- "x3d+xml": "x3dz",
10610
- "x3d+binary": [
10611
- "x3db",
10612
- "x3dbz"
10613
- ],
10614
- "vnd.collada+xml": "dae",
10615
- "vnd.dwf": "dwf",
10616
- "vnd.gdl": "gdl",
10617
- "vnd.gtw": "gtw",
10618
- "vnd.mts": "mts",
10619
- "vnd.usdz+zip": "usdz",
10620
- "vnd.vtu": "vtu"
10621
- },
10622
- "text": {
10623
- "cache-manifest": [
10624
- "manifest",
10625
- "appcache"
10626
- ],
10627
- "calendar": [
10628
- "ics",
10629
- "icz",
10630
- "ifb"
10631
- ],
10632
- "css": "css",
10633
- "csv": "csv",
10634
- "h323": "323",
10635
- "html": [
10636
- "html",
10637
- "htm",
10638
- "shtml",
10639
- "stm"
10640
- ],
10641
- "iuls": "uls",
10642
- "plain": [
10643
- "txt",
10644
- "text",
10645
- "brf",
10646
- "conf",
10647
- "def",
10648
- "list",
10649
- "log",
10650
- "in",
10651
- "bas",
10652
- "diff",
10653
- "ksh"
10654
- ],
10655
- "richtext": "rtx",
10656
- "scriptlet": [
10657
- "sct",
10658
- "wsc"
10659
- ],
10660
- "texmacs": "tm",
10661
- "tab-separated-values": "tsv",
10662
- "vnd.sun.j2me.app-descriptor": "jad",
10663
- "vnd.wap.wml": "wml",
10664
- "vnd.wap.wmlscript": "wmls",
10665
- "x-bibtex": "bib",
10666
- "x-boo": "boo",
10667
- "x-c++hdr": [
10668
- "h++",
10669
- "hpp",
10670
- "hxx",
10671
- "hh"
10672
- ],
10673
- "x-c++src": [
10674
- "c++",
10675
- "cpp",
10676
- "cxx",
10677
- "cc"
10678
- ],
10679
- "x-component": "htc",
10680
- "x-dsrc": "d",
10681
- "x-diff": "patch",
10682
- "x-haskell": "hs",
10683
- "x-java": "java",
10684
- "x-literate-haskell": "lhs",
10685
- "x-moc": "moc",
10686
- "x-pascal": [
10687
- "p",
10688
- "pas",
10689
- "pp",
10690
- "inc"
10691
- ],
10692
- "x-pcs-gcd": "gcd",
10693
- "x-python": "py",
10694
- "x-scala": "scala",
10695
- "x-setext": "etx",
10696
- "x-tcl": [
10697
- "tcl",
10698
- "tk"
10699
- ],
10700
- "x-tex": [
10701
- "tex",
10702
- "ltx",
10703
- "sty",
10704
- "cls"
10705
- ],
10706
- "x-vcalendar": "vcs",
10707
- "x-vcard": "vcf",
10708
- "n3": "n3",
10709
- "prs.lines.tag": "dsc",
10710
- "sgml": [
10711
- "sgml",
10712
- "sgm"
10713
- ],
10714
- "troff": [
10715
- "t",
10716
- "tr",
10717
- "roff",
10718
- "man",
10719
- "me",
10720
- "ms"
10721
- ],
10722
- "turtle": "ttl",
10723
- "uri-list": [
10724
- "uri",
10725
- "uris",
10726
- "urls"
10727
- ],
10728
- "vcard": "vcard",
10729
- "vnd.curl": "curl",
10730
- "vnd.curl.dcurl": "dcurl",
10731
- "vnd.curl.scurl": "scurl",
10732
- "vnd.curl.mcurl": "mcurl",
10733
- "vnd.dvb.subtitle": "sub",
10734
- "vnd.fly": "fly",
10735
- "vnd.fmi.flexstor": "flx",
10736
- "vnd.graphviz": "gv",
10737
- "vnd.in3d.3dml": "3dml",
10738
- "vnd.in3d.spot": "spot",
10739
- "x-asm": [
10740
- "s",
10741
- "asm"
10742
- ],
10743
- "x-c": [
10744
- "c",
10745
- "h",
10746
- "dic"
10747
- ],
10748
- "x-fortran": [
10749
- "f",
10750
- "for",
10751
- "f77",
10752
- "f90"
10753
- ],
10754
- "x-opml": "opml",
10755
- "x-nfo": "nfo",
10756
- "x-sfv": "sfv",
10757
- "x-uuencode": "uu",
10758
- "webviewhtml": "htt",
10759
- "javascript": "js",
10760
- "json": "json",
10761
- "markdown": [
10762
- "md",
10763
- "markdown",
10764
- "mdown",
10765
- "markdn"
10766
- ],
10767
- "vnd.wap.si": "si",
10768
- "vnd.wap.sl": "sl"
10769
- },
10770
- "video": {
10771
- "3gpp": "3gp",
10772
- "annodex": "axv",
10773
- "dl": "dl",
10774
- "dv": [
10775
- "dif",
10776
- "dv"
10777
- ],
10778
- "fli": "fli",
10779
- "gl": "gl",
10780
- "mpeg": [
10781
- "mpeg",
10782
- "mpg",
10783
- "mpe",
10784
- "m1v",
10785
- "m2v",
10786
- "mp2",
10787
- "mpa",
10788
- "mpv2"
10789
- ],
10790
- "mp4": [
10791
- "mp4",
10792
- "mp4v",
10793
- "mpg4"
10794
- ],
10795
- "quicktime": [
10796
- "qt",
10797
- "mov"
10798
- ],
10799
- "ogg": "ogv",
10800
- "vnd.mpegurl": [
10801
- "mxu",
10802
- "m4u"
10803
- ],
10804
- "x-flv": "flv",
10805
- "x-la-asf": [
10806
- "lsf",
10807
- "lsx"
10808
- ],
10809
- "x-mng": "mng",
10810
- "x-ms-asf": [
10811
- "asf",
10812
- "asx",
10813
- "asr"
10814
- ],
10815
- "x-ms-wm": "wm",
10816
- "x-ms-wmv": "wmv",
10817
- "x-ms-wmx": "wmx",
10818
- "x-ms-wvx": "wvx",
10819
- "x-msvideo": "avi",
10820
- "x-sgi-movie": "movie",
10821
- "x-matroska": [
10822
- "mpv",
10823
- "mkv",
10824
- "mk3d",
10825
- "mks"
10826
- ],
10827
- "3gpp2": "3g2",
10828
- "h261": "h261",
10829
- "h263": "h263",
10830
- "h264": "h264",
10831
- "jpeg": "jpgv",
10832
- "jpm": [
10833
- "jpm",
10834
- "jpgm"
10835
- ],
10836
- "mj2": [
10837
- "mj2",
10838
- "mjp2"
10839
- ],
10840
- "vnd.dece.hd": [
10841
- "uvh",
10842
- "uvvh"
10843
- ],
10844
- "vnd.dece.mobile": [
10845
- "uvm",
10846
- "uvvm"
10847
- ],
10848
- "vnd.dece.pd": [
10849
- "uvp",
10850
- "uvvp"
10851
- ],
10852
- "vnd.dece.sd": [
10853
- "uvs",
10854
- "uvvs"
10855
- ],
10856
- "vnd.dece.video": [
10857
- "uvv",
10858
- "uvvv"
10859
- ],
10860
- "vnd.dvb.file": "dvb",
10861
- "vnd.fvt": "fvt",
10862
- "vnd.ms-playready.media.pyv": "pyv",
10863
- "vnd.uvvu.mp4": [
10864
- "uvu",
10865
- "uvvu"
10866
- ],
10867
- "vnd.vivo": "viv",
10868
- "webm": "webm",
10869
- "x-f4v": "f4v",
10870
- "x-m4v": "m4v",
10871
- "x-ms-vob": "vob",
10872
- "x-smv": "smv",
10873
- "mp2t": "ts"
10874
- },
10875
- "x-conference": {
10876
- "x-cooltalk": "ice"
10877
- },
10878
- "x-world": {
10879
- "x-vrml": [
10880
- "vrm",
10881
- "flr",
10882
- "wrz",
10883
- "xaf",
10884
- "xof"
10885
- ]
10886
- }
10887
- };
10888
-
10889
9387
  let mimeTypes;
10890
9388
 
10891
9389
  function getMimeType(filename) {
@@ -10894,21 +9392,29 @@ function getMimeType(filename) {
10894
9392
 
10895
9393
  function getMimeTypes() {
10896
9394
  if (!mimeTypes) {
10897
- mimeTypes = {};
10898
- for (const type of Object.keys(table)) {
10899
- for (const subtype of Object.keys(table[type])) {
10900
- const value = table[type][subtype];
10901
- if (typeof value == "string") {
10902
- mimeTypes[value] = type + "/" + subtype;
10903
- } else {
10904
- for (let indexMimeType = 0; indexMimeType < value.length; indexMimeType++) {
10905
- mimeTypes[value[indexMimeType]] = type + "/" + subtype;
10906
- }
10907
- }
9395
+ mimeTypes = decodeMimeTypes(encodedMimeTypes);
9396
+ }
9397
+ return mimeTypes;
9398
+ }
9399
+
9400
+ function decodeMimeTypes(data) {
9401
+ const mimeTypes = Object.create(null);
9402
+ for (const block of data.split(";")) {
9403
+ const colonIndex = block.indexOf(":");
9404
+ const type = block.slice(0, colonIndex);
9405
+ let previousSubtype = "";
9406
+ for (const entry of block.slice(colonIndex + 1).split(",")) {
9407
+ const tokens = entry.split(" ");
9408
+ const subtype = previousSubtype.slice(0, Number.parseInt(tokens[0][0], 36)) + tokens[0].slice(1);
9409
+ previousSubtype = subtype;
9410
+ const expandedSubtype = subtype.replace(/!/g, "+xml");
9411
+ const extensions = tokens.length > 1 ? tokens.slice(1) : [expandedSubtype.split("+")[0]];
9412
+ for (const extension of extensions) {
9413
+ mimeTypes[extension] = type + "/" + expandedSubtype;
10908
9414
  }
10909
9415
  }
10910
9416
  }
10911
9417
  return mimeTypes;
10912
9418
  }
10913
9419
 
10914
- export { BlobReader, BlobWriter, Data64URIReader, Data64URIWriter, ERR_AMBIGUOUS_ARCHIVE, ERR_BAD_FORMAT, ERR_CENTRAL_DIRECTORY_NOT_FOUND, ERR_DUPLICATED_NAME, ERR_ENCRYPTED, ERR_ENCRYPTED_CENTRAL_DIRECTORY, ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND, ERR_EOCDR_NOT_FOUND, ERR_EXTRAFIELD_ZIP64_NOT_FOUND, ERR_HTTP_RANGE, ERR_HTTP_RESOURCE_CHANGED, ERR_INVALID_CODEC_DEFINITION, ERR_INVALID_CODEC_MODULE, ERR_INVALID_COMMENT, ERR_INVALID_COMPRESSED_DATA, ERR_INVALID_ENCRYPTION_STRENGTH, ERR_INVALID_ENTRY_COMMENT, ERR_INVALID_ENTRY_NAME, ERR_INVALID_EXTRAFIELD_DATA, ERR_INVALID_EXTRAFIELD_TYPE, ERR_INVALID_PASSWORD, ERR_INVALID_SIGNATURE, ERR_INVALID_UNCOMPRESSED_SIZE, ERR_INVALID_VERSION, ERR_ITERATOR_COMPLETED_TOO_SOON, ERR_LOCAL_FILE_HEADER_NOT_FOUND, ERR_OVERLAPPING_ENTRY, ERR_RESERVED_COMPRESSION_METHOD, ERR_SPLIT_ZIP_FILE, ERR_UNDEFINED_READER, ERR_UNDEFINED_UNCOMPRESSED_SIZE, ERR_UNSUPPORTED_COMPRESSION$1 as ERR_UNSUPPORTED_COMPRESSION, ERR_UNSUPPORTED_ENCRYPTION, ERR_UNSUPPORTED_ENCRYPTION_USDZ, ERR_UNSUPPORTED_FORMAT, ERR_WRITER_NOT_INITIALIZED, ERR_ZIP_NOT_EMPTY, HttpRangeReader, HttpReader, Reader, SplitDataReader, SplitDataWriter, TextReader, TextWriter, Uint8ArrayReader, Uint8ArrayWriter, Writer, ZipReader, ZipReaderStream, ZipWriter, ZipWriterStream, configure, createBlobTempStream, createOPFSTempStream, createSyncAccessHandleTempStream, fs, getMimeType, registerCodec, resetConfiguration, terminateWorkersAndModule as terminateWorkers, unregisterCodec };
9420
+ export { BlobReader, BlobWriter, Data64URIReader, Data64URIWriter, ERR_AMBIGUOUS_ARCHIVE, ERR_BAD_FORMAT, ERR_CENTRAL_DIRECTORY_NOT_FOUND, ERR_DUPLICATED_NAME, ERR_ENCRYPTED, ERR_ENCRYPTED_CENTRAL_DIRECTORY, ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND, ERR_EOCDR_NOT_FOUND, ERR_EXTRAFIELD_ZIP64_NOT_FOUND, ERR_HTTP_RANGE, ERR_HTTP_RESOURCE_CHANGED, ERR_INVALID_AUTHENTICATION_CODE, ERR_INVALID_CODEC_DEFINITION, ERR_INVALID_CODEC_MODULE, ERR_INVALID_COMMENT, ERR_INVALID_COMPRESSED_DATA, ERR_INVALID_CRC32, ERR_INVALID_ENCRYPTION_STRENGTH, ERR_INVALID_ENTRY_COMMENT, ERR_INVALID_ENTRY_NAME, ERR_INVALID_EXTRAFIELD_DATA, ERR_INVALID_EXTRAFIELD_TYPE, ERR_INVALID_PASSWORD, ERR_INVALID_SIGNATURE, ERR_INVALID_UNCOMPRESSED_SIZE, ERR_INVALID_VERSION, ERR_ITERATOR_COMPLETED_TOO_SOON, ERR_LOCAL_FILE_HEADER_NOT_FOUND, ERR_OVERLAPPING_ENTRY, ERR_RESERVED_COMPRESSION_METHOD, ERR_SPLIT_ZIP_FILE, ERR_UNDEFINED_READER, ERR_UNDEFINED_UNCOMPRESSED_SIZE, ERR_UNSUPPORTED_COMPRESSION$1 as ERR_UNSUPPORTED_COMPRESSION, ERR_UNSUPPORTED_ENCRYPTION, ERR_UNSUPPORTED_ENCRYPTION_USDZ, ERR_UNSUPPORTED_FORMAT, ERR_WRITER_NOT_INITIALIZED, ERR_ZIP_NOT_EMPTY, HttpRangeReader, HttpReader, Reader, SplitDataReader, SplitDataWriter, TextReader, TextWriter, Uint8ArrayReader, Uint8ArrayWriter, Writer, ZipReader, ZipReaderStream, ZipWriter, ZipWriterStream, configure, createBlobTempStream, createOPFSTempStream, createSyncAccessHandleTempStream, fs, getMimeType, registerCodec, resetConfiguration, terminateWorkersAndModule as terminateWorkers, unregisterCodec };