@dpuse/dpuse-tool-file-previewer 1.0.108 → 1.0.113

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.
@@ -1,5 +1,5 @@
1
- //#region \0rolldown/runtime.js
2
- var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
1
+ // \0rolldown/runtime.js
2
+ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, i, o, s) => {
3
3
  if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
4
4
  get: ((e) => i[e]).bind(null, d),
5
5
  enumerable: !(s = n(i, d)) || s.enumerable
@@ -26,9 +26,9 @@ d({}, {
26
26
  EncodingEra: () => w,
27
27
  LanguageFilter: () => ee,
28
28
  MINIMUM_THRESHOLD: () => C,
29
- UniversalDetector: () => Ta,
30
- detect: () => Ea,
31
- detectAll: () => Da
29
+ UniversalDetector: () => Ca,
30
+ detect: () => wa,
31
+ detectAll: () => Ta
32
32
  });
33
33
  var p = !1;
34
34
  function m() {
@@ -1690,57 +1690,57 @@ var T = [
1690
1690
  isMultibyte: !1,
1691
1691
  languages: ["de"]
1692
1692
  })
1693
- ], E = Object.freeze(Object.fromEntries(xe.map((e) => [e.name, e]))), Se = /* @__PURE__ */ new Map();
1694
- function Ce(e, t, n) {
1695
- let r = `${e}|${t ? [...t].sort().join(",") : ""}|${n ? [...n].sort().join(",") : ""}`, i = Se.get(r);
1693
+ ], Se = Object.freeze(Object.fromEntries(xe.map((e) => [e.name, e]))), Ce = /* @__PURE__ */ new Map();
1694
+ function we(e, t, n) {
1695
+ let r = `${e}|${t ? [...t].sort().join(",") : ""}|${n ? [...n].sort().join(",") : ""}`, i = Ce.get(r);
1696
1696
  if (i !== void 0) return i;
1697
- let a = Object.values(E).filter((t) => t.era & e);
1697
+ let a = Object.values(Se).filter((t) => t.era & e);
1698
1698
  t !== void 0 && (a = a.filter((e) => t.has(e.name))), n !== void 0 && (a = a.filter((e) => !n.has(e.name)));
1699
1699
  let o = Object.freeze(a);
1700
- return Se.set(r, o), o;
1700
+ return Ce.set(r, o), o;
1701
1701
  }
1702
- var we = /* @__PURE__ */ new Map();
1703
- function Te(e) {
1702
+ var Te = /* @__PURE__ */ new Map();
1703
+ function Ee(e) {
1704
1704
  let t = e.toLowerCase();
1705
- for (let e of Object.values(E)) {
1705
+ for (let e of Object.values(Se)) {
1706
1706
  if (e.name === t) return e.name;
1707
1707
  for (let n of e.aliases) if (n.toLowerCase() === t) return e.name;
1708
1708
  }
1709
1709
  let n = me(e);
1710
- return n === null || n === t ? null : D(n);
1710
+ return n === null || n === t ? null : E(n);
1711
1711
  }
1712
- function D(e) {
1713
- let t = we.get(e);
1712
+ function E(e) {
1713
+ let t = Te.get(e);
1714
1714
  if (t !== void 0) return t;
1715
- let n = Te(e);
1716
- return we.set(e, n), n;
1715
+ let n = Ee(e);
1716
+ return Te.set(e, n), n;
1717
1717
  }
1718
- function Ee(e, t) {
1719
- let n = D(e);
1718
+ function De(e, t) {
1719
+ let n = E(e);
1720
1720
  if (n === null) throw Error(`Unknown encoding ${JSON.stringify(e)} in ${t}`);
1721
1721
  return n;
1722
1722
  }
1723
- function De(e, t) {
1723
+ function Oe(e, t) {
1724
1724
  if (e == null) return null;
1725
- let n = new Set([...e].map((e) => Ee(e, t)));
1725
+ let n = new Set([...e].map((e) => De(e, t)));
1726
1726
  if (n.size === 0) throw Error(`${t} must not be empty; omit the argument or pass null to disable filtering`);
1727
1727
  return n;
1728
1728
  }
1729
- var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.Sm.Sc.Sk.So.Zs.Zl.Zp.Cc.Cf.Cs.Co.Cn".split("."), O = "\0\x07\b \n\v\f\r\x1B !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~", k = "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFAAACAAA=>ABA<AA8888888888AABBBAA00000000000000000000000000=A>D;D11111111111111111111111111=B>BI", ke = Object.freeze({
1729
+ var ke = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.Sm.Sc.Sk.So.Zs.Zl.Zp.Cc.Cf.Cs.Co.Cn".split("."), D = "\0\x07\b \n\v\f\r\x1B !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~", O = "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFAAACAAA=>ABA<AA8888888888AABBBAA00000000000000000000000000=A>D;D11111111111111111111111111=B>BI", Ae = Object.freeze({
1730
1730
  ascii: {
1731
1731
  singleByte: !0,
1732
- cps: O + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1733
- cats: k + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
1732
+ cps: D + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1733
+ cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
1734
1734
  },
1735
1735
  big5hkscs: {
1736
1736
  singleByte: !1,
1737
- cps: O + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1738
- cats: k + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
1737
+ cps: D + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1738
+ cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
1739
1739
  },
1740
1740
  cp1006: {
1741
1741
  singleByte: !0,
1742
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0۰۱۲۳۴۵۶۷۸۹،؛­؟ﺁﺍﺎﺎﺏﺑﭖﭘﺓﺕﺗﭦﭨﺙﺛﺝﺟﭺﭼﺡﺣﺥﺧﺩﮄﺫﺭﮌﺯﮊﺱﺳﺵﺷﺹﺻﺽﺿﻁﻅﻉﻊﻋﻌﻍﻎﻏﻐﻑﻓﻕﻗﻙﻛﮒﮔﻝﻟﻠﻡﻣﮞﻥﻧﺅﻭﮦﮨﮩﮪﺀﺉﺊﺋﻱﻲﻳﮰﮮﹼﹽ",
1743
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF8888888888AAJA444444444444444444444444444444444444444444444444444444444444444444444444444444444"
1742
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0۰۱۲۳۴۵۶۷۸۹،؛­؟ﺁﺍﺎﺎﺏﺑﭖﭘﺓﺕﺗﭦﭨﺙﺛﺝﺟﭺﭼﺡﺣﺥﺧﺩﮄﺫﺭﮌﺯﮊﺱﺳﺵﺷﺹﺻﺽﺿﻁﻅﻉﻊﻋﻌﻍﻎﻏﻐﻑﻓﻕﻗﻙﻛﮒﮔﻝﻟﻠﻡﻣﮞﻥﻧﺅﻭﮦﮨﮩﮪﺀﺉﺊﺋﻱﻲﻳﮰﮮﹼﹽ",
1743
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF8888888888AAJA444444444444444444444444444444444444444444444444444444444444444444444444444444444"
1744
1744
  },
1745
1745
  cp1026: {
1746
1746
  singleByte: !0,
@@ -1749,8 +1749,8 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
1749
1749
  },
1750
1750
  cp1125: {
1751
1751
  singleByte: !0,
1752
- cps: O + "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■\xA0",
1753
- cats: k + "000000000000000000000000000000001111111111111111EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE11111111111111110101010101ABECEF"
1752
+ cps: D + "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■\xA0",
1753
+ cats: O + "000000000000000000000000000000001111111111111111EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE11111111111111110101010101ABECEF"
1754
1754
  },
1755
1755
  cp1140: {
1756
1756
  singleByte: !0,
@@ -1759,48 +1759,48 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
1759
1759
  },
1760
1760
  cp1250: {
1761
1761
  singleByte: !0,
1762
- cps: O + "€￿‚￿„…†‡￿‰Š‹ŚŤŽŹ￿‘’“”•–—￿™š›śťžź\xA0ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙",
1763
- cats: k + "CM=M=AAAMA0?0000M?@?@A<<ME1@1111F3D0C0EADE0?BJE0EBD1D1AAD11@0D1100000000000000000000000B0000000111111111111111111111111B1111111D"
1762
+ cps: D + "€￿‚￿„…†‡￿‰Š‹ŚŤŽŹ￿‘’“”•–—￿™š›śťžź\xA0ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙",
1763
+ cats: O + "CM=M=AAAMA0?0000M?@?@A<<ME1@1111F3D0C0EADE0?BJE0EBD1D1AAD11@0D1100000000000000000000000B0000000111111111111111111111111B1111111D"
1764
1764
  },
1765
1765
  cp1251: {
1766
1766
  singleByte: !0,
1767
- cps: O + "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—￿™љ›њќћџ\xA0ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",
1768
- cats: k + "00=1=AAACA0?00001?@?@A<<ME1@1111F010C0EA0E0?BJE0EB0111AA1E1@10110000000000000000000000000000000011111111111111111111111111111111"
1767
+ cps: D + "ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—￿™љ›њќћџ\xA0ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",
1768
+ cats: O + "00=1=AAACA0?00001?@?@A<<ME1@1111F010C0EA0E0?BJE0EB0111AA1E1@10110000000000000000000000000000000011111111111111111111111111111111"
1769
1769
  },
1770
1770
  cp1252: {
1771
1771
  singleByte: !0,
1772
- cps: O + "€￿‚ƒ„…†‡ˆ‰Š‹Œ￿Ž￿￿‘’“”•–—˜™š›œ￿žŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ",
1773
- cats: k + "CM=1=AAA3A0?0M0MM?@?@A<<DE1@1M10FACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000000000000000B0000000111111111111111111111111B11111111"
1772
+ cps: D + "€￿‚ƒ„…†‡ˆ‰Š‹Œ￿Ž￿￿‘’“”•–—˜™š›œ￿žŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ",
1773
+ cats: O + "CM=1=AAA3A0?0M0MM?@?@A<<DE1@1M10FACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000000000000000B0000000111111111111111111111111B11111111"
1774
1774
  },
1775
1775
  cp1253: {
1776
1776
  singleByte: !0,
1777
- cps: O + "€￿‚ƒ„…†‡￿‰￿‹￿￿￿￿￿‘’“”•–—￿™￿›￿￿￿￿\xA0΅Ά£¤¥¦§¨©￿«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ￿ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ￿",
1778
- cats: k + "CM=1=AAAMAM?MMMMM?@?@A<<MEM@MMMMFD0CCCEADEM?BJE<EB::D1AA000@0:00100000000000000000M00000000011111111111111111111111111111111111M"
1777
+ cps: D + "€￿‚ƒ„…†‡￿‰￿‹￿￿￿￿￿‘’“”•–—￿™￿›￿￿￿￿\xA0΅Ά£¤¥¦§¨©￿«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ￿ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ￿",
1778
+ cats: O + "CM=1=AAAMAM?MMMMM?@?@A<<MEM@MMMMFD0CCCEADEM?BJE<EB::D1AA000@0:00100000000000000000M00000000011111111111111111111111111111111111M"
1779
1779
  },
1780
1780
  cp1254: {
1781
1781
  singleByte: !0,
1782
- cps: O + "€￿‚ƒ„…†‡ˆ‰Š‹Œ￿￿￿￿‘’“”•–—˜™š›œ￿￿Ÿ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ",
1783
- cats: k + "CM=1=AAA3A0?0MMMM?@?@A<<DE1@1MM0FACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000000000000000B0000000111111111111111111111111B11111111"
1782
+ cps: D + "€￿‚ƒ„…†‡ˆ‰Š‹Œ￿￿￿￿‘’“”•–—˜™š›œ￿￿Ÿ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ",
1783
+ cats: O + "CM=1=AAA3A0?0MMMM?@?@A<<DE1@1MM0FACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000000000000000B0000000111111111111111111111111B11111111"
1784
1784
  },
1785
1785
  cp1255: {
1786
1786
  singleByte: !0,
1787
- cps: O + "€￿‚ƒ„…†‡ˆ‰￿‹￿￿￿￿￿‘’“”•–—˜™￿›￿￿￿￿\xA0¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹ￿ֻּֽ־ֿ׀ׁׂ׃װױײ׳״￿￿￿￿￿￿￿אבגדהוזחטיךכלםמןנסעףפץצקרשת￿￿‎‏￿",
1788
- cats: k + "CM=1=AAA3AM?MMMMM?@?@A<<DEM@MMMMFACCCCEADEB?BJEDEB::D1AAD:B@:::A5555555555M555<5A55A444AAMMMMMMM444444444444444444444444444MMJJM"
1787
+ cps: D + "€￿‚ƒ„…†‡ˆ‰￿‹￿￿￿￿￿‘’“”•–—˜™￿›￿￿￿￿\xA0¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹ￿ֻּֽ־ֿ׀ׁׂ׃װױײ׳״￿￿￿￿￿￿￿אבגדהוזחטיךכלםמןנסעףפץצקרשת￿￿‎‏￿",
1788
+ cats: O + "CM=1=AAA3AM?MMMMM?@?@A<<DEM@MMMMFACCCCEADEB?BJEDEB::D1AAD:B@:::A5555555555M555<5A55A444AAMMMMMMM444444444444444444444444444MMJJM"
1789
1789
  },
1790
1790
  cp1256: {
1791
1791
  singleByte: !0,
1792
- cps: O + "€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں\xA0،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے",
1793
- cats: k + "C4=1=AAA3A4?04444?@?@A<<4E4@1JJ4FACCCCEADE4?BJEDEB::D1AAD:A@:::A44444444444444444444444B4444344414144441111144115555155B51511JJ4"
1792
+ cps: D + "€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں\xA0،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے",
1793
+ cats: O + "C4=1=AAA3A4?04444?@?@A<<4E4@1JJ4FACCCCEADE4?BJEDEB::D1AAD:A@:::A44444444444444444444444B4444344414144441111144115555155B51511JJ4"
1794
1794
  },
1795
1795
  cp1257: {
1796
1796
  singleByte: !0,
1797
- cps: O + "€￿‚￿„…†‡￿‰￿‹￿¨ˇ¸￿‘’“”•–—￿™￿›￿¯˛￿\xA0￿¢£¤￿¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙",
1798
- cats: k + "CM=M=AAAMAM?MD3DM?@?@A<<MEM@MDDMFMCCCMEA0E0?BJE0EB::D1AA1:1@:::100000000000000000000000B0000000111111111111111111111111B1111111D"
1797
+ cps: D + "€￿‚￿„…†‡￿‰￿‹￿¨ˇ¸￿‘’“”•–—￿™￿›￿¯˛￿\xA0￿¢£¤￿¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙",
1798
+ cats: O + "CM=M=AAAMAM?MD3DM?@?@A<<MEM@MDDMFMCCCMEA0E0?BJE0EB::D1AA1:1@:::100000000000000000000000B0000000111111111111111111111111B1111111D"
1799
1799
  },
1800
1800
  cp1258: {
1801
1801
  singleByte: !0,
1802
- cps: O + "€￿‚ƒ„…†‡ˆ‰￿‹Œ￿￿￿￿‘’“”•–—˜™￿›œ￿￿Ÿ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ",
1803
- cats: k + "CM=1=AAA3AM?0MMMM?@?@A<<DEM@1MM0FACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000050000050000B0000005111111111111151111151111B111111C1"
1802
+ cps: D + "€￿‚ƒ„…†‡ˆ‰￿‹Œ￿￿￿￿‘’“”•–—˜™￿›œ￿￿Ÿ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ",
1803
+ cats: O + "CM=1=AAA3AM?0MMMM?@?@A<<DEM@1MM0FACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000050000050000B0000005111111111111151111151111B111111C1"
1804
1804
  },
1805
1805
  cp273: {
1806
1806
  singleByte: !0,
@@ -1814,8 +1814,8 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
1814
1814
  },
1815
1815
  cp437: {
1816
1816
  singleByte: !0,
1817
- cps: O + "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
1818
- cats: k + "011111111111110001011111100CCCC111111044AEB::A?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
1817
+ cps: D + "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
1818
+ cats: O + "011111111111110001011111100CCCC111111044AEB::A?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
1819
1819
  },
1820
1820
  cp500: {
1821
1821
  singleByte: !0,
@@ -1824,93 +1824,93 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
1824
1824
  },
1825
1825
  cp720: {
1826
1826
  singleByte: !0,
1827
- cps: O + "€éâ„à†çêëèïّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■\xA0",
1828
- cats: k + "II11I1I111111IIII551C3114444C44444444444444444?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE4444441444444444B555555BEBAB3:EF"
1827
+ cps: D + "€éâ„à†çêëèïّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■\xA0",
1828
+ cats: O + "II11I1I111111IIII551C3114444C44444444444444444?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE4444441444444444B555555BEBAB3:EF"
1829
1829
  },
1830
1830
  cp737: {
1831
1831
  singleByte: !0,
1832
- cps: O + "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■\xA0",
1833
- cats: k + "000000000000000000000000111111111111111111111111EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE11111111110000000BBB00BBEBAB3:EF"
1832
+ cps: D + "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■\xA0",
1833
+ cats: O + "000000000000000000000000111111111111111111111111EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE11111111110000000BBB00BBEBAB3:EF"
1834
1834
  },
1835
1835
  cp775: {
1836
1836
  singleByte: !0,
1837
- cps: O + "ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■\xA0",
1838
- cats: k + "0111111111011000010110C01001C0BC001011@EEEB::0?@EEEEE0000EEEE00EEEEEEE00EEEEEEE0111111111EEEEEEE010010110101100@JB?:AAB=EBA:::EF"
1837
+ cps: D + "ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■\xA0",
1838
+ cats: O + "0111111111011000010110C01001C0BC001011@EEEB::0?@EEEEE0000EEEE00EEEEEEE00EEEEEEE0111111111EEEEEEE010010110101100@JB?:AAB=EBA:::EF"
1839
1839
  },
1840
1840
  cp850: {
1841
1841
  singleByte: !0,
1842
- cps: O + "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■\xA0",
1843
- cats: k + "0111111111111100010111111001C0B111111044AEB::A?@EEEEE000EEEEECCEEEEEEE10EEEEEEEC100001000EEEEE0E01001011000010DDJBA:AABDEDA:::EF"
1842
+ cps: D + "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■\xA0",
1843
+ cats: O + "0111111111111100010111111001C0B111111044AEB::A?@EEEEE000EEEEECCEEEEEEE10EEEEEEEC100001000EEEEE0E01001011000010DDJBA:AABDEDA:::EF"
1844
1844
  },
1845
1845
  cp852: {
1846
1846
  singleByte: !0,
1847
- cps: O + "ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■\xA0",
1848
- cats: k + "011111111101100000111010100010B11111010101B101?@EEEEE0000EEEE01EEEEEEE01EEEEEEEC100010001EEEE00E010011010010101DJDD3DABDEDD101EF"
1847
+ cps: D + "ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■\xA0",
1848
+ cats: O + "011111111101100000111010100010B11111010101B101?@EEEEE0000EEEE01EEEEEEE01EEEEEEEC100010001EEEE00E010011010010101DJDD3DABDEDD101EF"
1849
1849
  },
1850
1850
  cp855: {
1851
1851
  singleByte: !0,
1852
- cps: O + "ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■\xA0",
1853
- cats: k + "1010101010101010101010101010101010101010101010?@EEEEE1010EEEE10EEEEEEE10EEEEEEEC101010101EEEE01E010101010101010EJ101010101010AEF"
1852
+ cps: D + "ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■\xA0",
1853
+ cats: O + "1010101010101010101010101010101010101010101010?@EEEEE1010EEEE10EEEEEEE10EEEEEEEC101010101EEEE01E010101010101010EJ101010101010AEF"
1854
1854
  },
1855
1855
  cp856: {
1856
1856
  singleByte: !0,
1857
- cps: O + "אבגדהוזחטיךכלםמןנסעףפץצקרשת￿£￿×￿￿￿￿￿￿￿￿￿￿®¬½¼￿«»░▒▓│┤￿￿￿©╣║╗╝¢¥┐└┴┬├─┼￿￿╚╔╩╦╠═╬¤￿￿￿￿￿￿￿￿￿┘┌█▄¦￿▀￿￿￿￿￿￿µ￿￿￿￿￿￿￿¯´­±‗¾¶§÷¸°¨·¹³²■\xA0",
1858
- cats: k + "444444444444444444444444444MCMBMMMMMMMMMMEB::M?@EEEEEMMMEEEEECCEEEEEEEMMEEEEEEECMMMMMMMMMEEEEEMEMMMMMM1MMMMMMMDDJBA:AABDEDA:::EF"
1857
+ cps: D + "אבגדהוזחטיךכלםמןנסעףפץצקרשת￿£￿×￿￿￿￿￿￿￿￿￿￿®¬½¼￿«»░▒▓│┤￿￿￿©╣║╗╝¢¥┐└┴┬├─┼￿￿╚╔╩╦╠═╬¤￿￿￿￿￿￿￿￿￿┘┌█▄¦￿▀￿￿￿￿￿￿µ￿￿￿￿￿￿￿¯´­±‗¾¶§÷¸°¨·¹³²■\xA0",
1858
+ cats: O + "444444444444444444444444444MCMBMMMMMMMMMMEB::M?@EEEEEMMMEEEEECCEEEEEEEMMEEEEEEECMMMMMMMMMEEEEEMEMMMMMM1MMMMMMMDDJBA:AABDEDA:::EF"
1859
1859
  },
1860
1860
  cp857: {
1861
1861
  singleByte: !0,
1862
- cps: O + "ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ￿ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ￿×ÚÛÙìÿ¯´­±￿¾¶§÷¸°¨·¹³²■\xA0",
1863
- cats: k + "0111111111111100010111110001C00111111001AEB::A?@EEEEE000EEEEECCEEEEEEE10EEEEEEEC44000M000EEEEE0E0100101MB00011DDJBM:AABDEDA:::EF"
1862
+ cps: D + "ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ￿ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ￿×ÚÛÙìÿ¯´­±￿¾¶§÷¸°¨·¹³²■\xA0",
1863
+ cats: O + "0111111111111100010111110001C00111111001AEB::A?@EEEEE000EEEEECCEEEEEEE10EEEEEEEC44000M000EEEEE0E0100101MB00011DDJBM:AABDEDA:::EF"
1864
1864
  },
1865
1865
  cp858: {
1866
1866
  singleByte: !0,
1867
- cps: O + "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■\xA0",
1868
- cats: k + "0111111111111100010111111001C0B111111044AEB::A?@EEEEE000EEEEECCEEEEEEE10EEEEEEEC10000C000EEEEE0E01001011000010DDJBA:AABDEDA:::EF"
1867
+ cps: D + "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■\xA0",
1868
+ cats: O + "0111111111111100010111111001C0B111111044AEB::A?@EEEEE000EEEEECCEEEEEEE10EEEEEEEC10000C000EEEEE0E01001011000010DDJBA:AABDEDA:::EF"
1869
1869
  },
1870
1870
  cp860: {
1871
1871
  singleByte: !0,
1872
- cps: O + "ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
1873
- cats: k + "011111011010010000011101000CC0C011111044A0B::A?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
1872
+ cps: D + "ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
1873
+ cats: O + "011111011010010000011101000CC0C011111044A0B::A?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
1874
1874
  },
1875
1875
  cp861: {
1876
1876
  singleByte: !0,
1877
- cps: O + "ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
1878
- cats: k + "0111111111101000010111101001C0C111110000AEB::A?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
1877
+ cps: D + "ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
1878
+ cats: O + "0111111111101000010111101001C0C111110000AEB::A?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
1879
1879
  },
1880
1880
  cp862: {
1881
1881
  singleByte: !0,
1882
- cps: O + "אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
1883
- cats: k + "444444444444444444444444444CCCC111111044AEB::A?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
1882
+ cps: D + "אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
1883
+ cats: O + "444444444444444444444444444CCCC111111044AEB::A?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
1884
1884
  },
1885
1885
  cp863: {
1886
1886
  singleByte: !0,
1887
- cps: O + "ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
1888
- cats: k + "011101A111111A0A00010011C00CC001ED11DD:D0EB:::?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
1887
+ cps: D + "ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
1888
+ cats: O + "011101A111111A0A00010011C00CC001ED11DD:D0EB:::?@EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
1889
1889
  },
1890
1890
  cp864: {
1891
1891
  singleByte: !0,
1892
1892
  cps: "\0\x07\b \n\v\f\r\x1B !\"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ￿￿ﻻﻼ￿\xA0­ﺂ£¤ﺄ￿￿ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■￿",
1893
- cats: k + "EABBEEEEEEEEEEEE1B1B::B?@44MM44MFJ4CC4MM4444A44488888888884A444AC44444444444444444444444444EBBB4344444444444444445444444444444EM"
1893
+ cats: O + "EABBEEEEEEEEEEEE1B1B::B?@44MM44MFJ4CC4MM4444A44488888888884A444AC44444444444444444444444444EBBB4344444444444444445444444444444EM"
1894
1894
  },
1895
1895
  cp865: {
1896
1896
  singleByte: !0,
1897
- cps: O + "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
1898
- cats: k + "0111111111111100010111111001C0C111111044AEB::A?CEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
1897
+ cps: D + "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0",
1898
+ cats: O + "0111111111111100010111111001C0C111111044AEB::A?CEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE110101110001B11BBBBBBBBBEBAB3:EF"
1899
1899
  },
1900
1900
  cp866: {
1901
1901
  singleByte: !0,
1902
- cps: O + "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■\xA0",
1903
- cats: k + "000000000000000000000000000000001111111111111111EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE111111111111111101010101EBABECEF"
1902
+ cps: D + "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■\xA0",
1903
+ cats: O + "000000000000000000000000000000001111111111111111EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE111111111111111101010101EBABECEF"
1904
1904
  },
1905
1905
  cp869: {
1906
1906
  singleByte: !0,
1907
- cps: O + "￿￿￿￿￿￿Ά￿·¬¦‘’Έ―ΉΊΪΌ￿￿ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■\xA0",
1908
- cats: k + "MMMMMM0MABE?@0<0000MM00E0::1C11111110000000:00?@EEEEE0000EEEE00EEEEEEE00EEEEEEE0000000111EEEE11E111111111111111DJB111A1DED1111EF"
1907
+ cps: D + "￿￿￿￿￿￿Ά￿·¬¦‘’Έ―ΉΊΪΌ￿￿ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■\xA0",
1908
+ cats: O + "MMMMMM0MABE?@0<0000MM00E0::1C11111110000000:00?@EEEEE0000EEEE00EEEEEEE00EEEEEEE0000000111EEEE11E111111111111111DJB111A1DED1111EF"
1909
1909
  },
1910
1910
  cp874: {
1911
1911
  singleByte: !0,
1912
- cps: O + "€￿￿￿￿…￿￿￿￿￿￿￿￿￿￿￿‘’“”•–—￿￿￿￿￿￿￿￿\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู￿￿￿￿฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛￿￿￿￿",
1913
- cats: k + "CMMMMAMMMMMMMMMMM?@?@A<<MMMMMMMMF4444444444444444444444444444444444444444444444445445555555MMMMC444444355555555A8888888888AAMMMM"
1912
+ cps: D + "€￿￿￿￿…￿￿￿￿￿￿￿￿￿￿￿‘’“”•–—￿￿￿￿￿￿￿￿\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู￿￿￿￿฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛￿￿￿￿",
1913
+ cats: O + "CMMMMAMMMMMMMMMMM?@?@A<<MMMMMMMMF4444444444444444444444444444444444444444444444445445555555MMMMC444444355555555A8888888888AAMMMM"
1914
1914
  },
1915
1915
  cp875: {
1916
1916
  singleByte: !0,
@@ -1919,33 +1919,33 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
1919
1919
  },
1920
1920
  cp932: {
1921
1921
  singleByte: !1,
1922
- cps: O + "€￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1923
- cats: k + "IMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMLA=>AA4444444444344444444444444444444444444444444444444444444433MMMMMMMMMMMMMMMMMMMMMMMMMMMMMLLL"
1922
+ cps: D + "€￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1923
+ cats: O + "IMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMLA=>AA4444444444344444444444444444444444444444444444444444444433MMMMMMMMMMMMMMMMMMMMMMMMMMMMMLLL"
1924
1924
  },
1925
1925
  cp949: {
1926
1926
  singleByte: !1,
1927
- cps: O + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1928
- cats: k + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
1927
+ cps: D + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1928
+ cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
1929
1929
  },
1930
1930
  euc_jis_2004: {
1931
1931
  singleByte: !1,
1932
- cps: O + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1933
- cats: k + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
1932
+ cps: D + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1933
+ cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
1934
1934
  },
1935
1935
  euc_kr: {
1936
1936
  singleByte: !1,
1937
- cps: O + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1938
- cats: k + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
1937
+ cps: D + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1938
+ cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
1939
1939
  },
1940
1940
  gb18030: {
1941
1941
  singleByte: !1,
1942
- cps: O + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1943
- cats: k + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
1942
+ cps: D + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
1943
+ cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
1944
1944
  },
1945
1945
  "hp-roman8": {
1946
1946
  singleByte: !0,
1947
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±￿",
1948
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF0000000D33DD00CD01E0101AACCCA1C11111111111111110100111101000110001010000010100101A1A:<::44?E@BM"
1947
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ÀÂÈÊËÎÏ´ˋˆ¨˜ÙÛ₤¯Ýý°ÇçÑñ¡¿¤£¥§ƒ¢âêôûáéóúàèòùäëöüÅîØÆåíøæÄìÖÜÉïßÔÁÃãÐðÍÌÓÒÕõŠšÚŸÿÞþ·µ¶¾—¼½ªº«■»±￿",
1948
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF0000000D33DD00CD01E0101AACCCA1C11111111111111110100111101000110001010000010100101A1A:<::44?E@BM"
1949
1949
  },
1950
1950
  hz: {
1951
1951
  singleByte: !1,
@@ -1974,133 +1974,133 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
1974
1974
  },
1975
1975
  "iso8859-1": {
1976
1976
  singleByte: !0,
1977
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ",
1978
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000000000000000B0000000111111111111111111111111B11111111"
1977
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ",
1978
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000000000000000B0000000111111111111111111111111B11111111"
1979
1979
  },
1980
1980
  "iso8859-10": {
1981
1981
  singleByte: !0,
1982
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ",
1983
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF000000A00000J00E111111A11111<110000000000000000000000000000000111111111111111111111111111111111"
1982
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ",
1983
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF000000A00000J00E111111A11111<110000000000000000000000000000000111111111111111111111111111111111"
1984
1984
  },
1985
1985
  "iso8859-13": {
1986
1986
  singleByte: !0,
1987
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’",
1988
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF@CCC=EA0E0?BJE0EB::?1AA1:1@:::100000000000000000000000B0000000111111111111111111111111B1111111@"
1987
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’",
1988
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF@CCC=EA0E0?BJE0EB::?1AA1:1@:::100000000000000000000000B0000000111111111111111111111111B1111111@"
1989
1989
  },
1990
1990
  "iso8859-14": {
1991
1991
  singleByte: !0,
1992
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ",
1993
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF01C010A0E010JE0010101A0111010110000000000000000000000000000000111111111111111111111111111111111"
1992
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ",
1993
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF01C010A0E010JE0010101A0111010110000000000000000000000000000000111111111111111111111111111111111"
1994
1994
  },
1995
1995
  "iso8859-15": {
1996
1996
  singleByte: !0,
1997
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ",
1998
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFACCCC0A1E4?BJEDEB::01AA1:4@010A00000000000000000000000B0000000111111111111111111111111B11111111"
1997
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ",
1998
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFACCCC0A1E4?BJEDEB::01AA1:4@010A00000000000000000000000B0000000111111111111111111111111B11111111"
1999
1999
  },
2000
2000
  "iso8859-16": {
2001
2001
  singleByte: !0,
2002
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ",
2003
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF010C=0A1E0?0J10EB010@AA111@01010000000000000000000000000000000111111111111111111111111111111111"
2002
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ",
2003
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF010C=0A1E0?0J10EB010@AA111@01010000000000000000000000000000000111111111111111111111111111111111"
2004
2004
  },
2005
2005
  "iso8859-2": {
2006
2006
  singleByte: !0,
2007
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙",
2008
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF0D0C00AD0000J00E1D1D113D1111D1100000000000000000000000B0000000111111111111111111111111B1111111D"
2007
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙",
2008
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF0D0C00AD0000J00E1D1D113D1111D1100000000000000000000000B0000000111111111111111111111111B1111111D"
2009
2009
  },
2010
2010
  "iso8859-3": {
2011
2011
  singleByte: !0,
2012
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ħ˘£¤￿Ĥ§¨İŞĞĴ­￿ݰħ²³´µĥ·¸ışğĵ½￿żÀÁÂ￿ÄĊĈÇÈÉÊËÌÍÎÏ￿ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ￿äċĉçèéêëìíîï￿ñòóôġö÷ĝùúûüŭŝ˙",
2013
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF0DCCM0AD0000JM0E1::D11AD1111:M1000M000000000000M000000B00000001111M111111111111M111111B1111111D"
2012
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ħ˘£¤￿Ĥ§¨İŞĞĴ­￿ݰħ²³´µĥ·¸ışğĵ½￿żÀÁÂ￿ÄĊĈÇÈÉÊËÌÍÎÏ￿ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ￿äċĉçèéêëìíîï￿ñòóôġö÷ĝùúûüŭŝ˙",
2013
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF0DCCM0AD0000JM0E1::D11AD1111:M1000M000000000000M000000B00000001111M111111111111M111111B1111111D"
2014
2014
  },
2015
2015
  "iso8859-4": {
2016
2016
  singleByte: !0,
2017
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙",
2018
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF010C00AD0000J0DE1D1D113D111101100000000000000000000000B0000000111111111111111111111111B1111111D"
2017
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙",
2018
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF010C00AD0000J0DE1D1D113D111101100000000000000000000000B0000000111111111111111111111111B1111111D"
2019
2019
  },
2020
2020
  "iso8859-5": {
2021
2021
  singleByte: !0,
2022
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ",
2023
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF000000000000J000000000000000000000000000000000011111111111111111111111111111111E111111111111A11"
2022
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ",
2023
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF000000000000J000000000000000000000000000000000011111111111111111111111111111111E111111111111A11"
2024
2024
  },
2025
2025
  "iso8859-6": {
2026
2026
  singleByte: !0,
2027
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0￿￿￿¤￿￿￿￿￿￿￿،­￿￿￿￿￿￿￿￿￿￿￿￿￿؛￿￿￿؟￿ءآأؤإئابةتثجحخدذرزسشصضطظعغ￿￿￿￿￿ـفقكلمنهوىيًٌٍَُِّْ￿￿￿￿￿￿￿￿￿￿￿￿￿",
2028
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFMMMCMMMMMMMAJMMMMMMMMMMMMMAMMMAM44444444444444444444444444MMMMM3444444444455555555MMMMMMMMMMMMM"
2027
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0￿￿￿¤￿￿￿￿￿￿￿،­￿￿￿￿￿￿￿￿￿￿￿￿￿؛￿￿￿؟￿ءآأؤإئابةتثجحخدذرزسشصضطظعغ￿￿￿￿￿ـفقكلمنهوىيًٌٍَُِّْ￿￿￿￿￿￿￿￿￿￿￿￿￿",
2028
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFMMMCMMMMMMMAJMMMMMMMMMMMMMAMMMAM44444444444444444444444444MMMMM3444444444455555555MMMMMMMMMMMMM"
2029
2029
  },
2030
2030
  "iso8859-7": {
2031
2031
  singleByte: !0,
2032
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0‘’£€₯¦§¨©ͺ«¬­￿―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ￿ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ￿",
2033
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF?@CCCEADE3?BJM<EB::DD0A000@0:00100000000000000000M00000000011111111111111111111111111111111111M"
2032
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0‘’£€₯¦§¨©ͺ«¬­￿―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ￿ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ￿",
2033
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF?@CCCEADE3?BJM<EB::DD0A000@0:00100000000000000000M00000000011111111111111111111111111111111111M"
2034
2034
  },
2035
2035
  "iso8859-8": {
2036
2036
  singleByte: !0,
2037
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0￿¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿‗אבגדהוזחטיךכלםמןנסעףפץצקרשת￿￿‎‏￿",
2038
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFMCCCCEADEB?BJEDEB::D1AAD:B@:::MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMA444444444444444444444444444MMJJM"
2037
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0￿¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿‗אבגדהוזחטיךכלםמןנסעףפץצקרשת￿￿‎‏￿",
2038
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFMCCCCEADEB?BJEDEB::D1AAD:B@:::MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMA444444444444444444444444444MMJJM"
2039
2039
  },
2040
2040
  "iso8859-9": {
2041
2041
  singleByte: !0,
2042
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ",
2043
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000000000000000B0000000111111111111111111111111B11111111"
2042
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ",
2043
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFACCCCEADE4?BJEDEB::D1AAD:4@:::A00000000000000000000000B0000000111111111111111111111111B11111111"
2044
2044
  },
2045
2045
  johab: {
2046
2046
  singleByte: !1,
2047
- cps: O + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
2048
- cats: k + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
2047
+ cps: D + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
2048
+ cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
2049
2049
  },
2050
2050
  "koi8-r": {
2051
2051
  singleByte: !0,
2052
- cps: O + "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ",
2053
- cats: k + "EEEEEEEEEEEEEEEEEEEBEBBBBBFBE:ABEEE1EEEEEEEEEEEEEEE0EEEEEEEEEEEE1111111111111111111111111111111100000000000000000000000000000000"
2052
+ cps: D + "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ",
2053
+ cats: O + "EEEEEEEEEEEEEEEEEEEBEBBBBBFBE:ABEEE1EEEEEEEEEEEEEEE0EEEEEEEEEEEE1111111111111111111111111111111100000000000000000000000000000000"
2054
2054
  },
2055
2055
  "koi8-t": {
2056
2056
  singleByte: !0,
2057
- cps: O + "қғ‚Ғ„…†‡￿‰ҳ‹ҲҷҶ￿Қ‘’“”•–—￿™￿›￿￿￿￿￿ӯӮё¤ӣ¦§￿￿￿«¬­®￿°±²Ё￿Ӣ¶·￿№￿»￿￿￿©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ",
2058
- cats: k + "11=0=AAAMA1?010M0?@?@A<<MEM@MMMMM101C1EAMMM?BJEMEB:0M0AAMEM@MMME1111111111111111111111111111111100000000000000000000000000000000"
2057
+ cps: D + "қғ‚Ғ„…†‡￿‰ҳ‹ҲҷҶ￿Қ‘’“”•–—￿™￿›￿￿￿￿￿ӯӮё¤ӣ¦§￿￿￿«¬­®￿°±²Ё￿Ӣ¶·￿№￿»￿￿￿©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ",
2058
+ cats: O + "11=0=AAAMA1?010M0?@?@A<<MEM@MMMMM101C1EAMMM?BJEMEB:0M0AAMEM@MMME1111111111111111111111111111111100000000000000000000000000000000"
2059
2059
  },
2060
2060
  "koi8-u": {
2061
2061
  singleByte: !0,
2062
- cps: O + "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ",
2063
- cats: k + "EEEEEEEEEEEEEEEEEEEBEBBBBBFBE:ABEEE11E11EEEEE1EEEEE00E00EEEEE0EE1111111111111111111111111111111100000000000000000000000000000000"
2062
+ cps: D + "─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ",
2063
+ cats: O + "EEEEEEEEEEEEEEEEEEEBEBBBBBFBE:ABEEE11E11EEEEE1EEEEE00E00EEEEE0EE1111111111111111111111111111111100000000000000000000000000000000"
2064
2064
  },
2065
2065
  kz1048: {
2066
2066
  singleByte: !0,
2067
- cps: O + "ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—￿™љ›њқһџ\xA0ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",
2068
- cats: k + "00=1=AAACA0?00001?@?@A<<ME1@1111F010C0EA0E0?BJE0EB0111AA1E1@10110000000000000000000000000000000011111111111111111111111111111111"
2067
+ cps: D + "ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—￿™љ›њқһџ\xA0ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",
2068
+ cats: O + "00=1=AAACA0?00001?@?@A<<ME1@1111F010C0EA0E0?BJE0EB0111AA1E1@10110000000000000000000000000000000011111111111111111111111111111111"
2069
2069
  },
2070
2070
  "mac-cyrillic": {
2071
2071
  singleByte: !0,
2072
- cps: O + "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»…\xA0ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю€",
2073
- cats: k + "00000000000000000000000000000000AE0CAAA0EEE01B01BBBB11100101010110BB1BB?@AF01011<<?@?@B=0101E0111111111111111111111111111111111C"
2072
+ cps: D + "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»…\xA0ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю€",
2073
+ cats: O + "00000000000000000000000000000000AE0CAAA0EEE01B01BBBB11100101010110BB1BB?@AF01011<<?@?@B=0101E0111111111111111111111111111111111C"
2074
2074
  },
2075
2075
  "mac-greek": {
2076
2076
  singleByte: !0,
2077
- cps: O + "Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»…\xA0ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­",
2078
- cats: k + "0::0:00D111DD11111CE11A:A11EC111A0000001EE00ABEA0BBBC0000000000010B00B0?@AF00001<<?@?@B0000111101111111111111111111111111111111J"
2077
+ cps: D + "Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»…\xA0ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­",
2078
+ cats: O + "0::0:00D111DD11111CE11A:A11EC111A0000001EE00ABEA0BBBC0000000000010B00B0?@AF00001<<?@?@B0000111101111111111111111111111111111111J"
2079
2079
  },
2080
2080
  "mac-iceland": {
2081
2081
  singleByte: !0,
2082
- cps: O + "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",
2083
- cats: k + "000000011111111111111111111111110ECCAAA1EEEDDB00BBBBC1BBB1B44011AABB1BB?@AF00001<<?@?@BE10BC01011A==A00000000000L000013DDDDDDDD3"
2082
+ cps: D + "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",
2083
+ cats: O + "000000011111111111111111111111110ECCAAA1EEEDDB00BBBBC1BBB1B44011AABB1BB?@AF00001<<?@?@BE10BC01011A==A00000000000L000013DDDDDDDD3"
2084
2084
  },
2085
2085
  "mac-latin2": {
2086
2086
  singleByte: !0,
2087
- cps: O + "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»…\xA0ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",
2088
- cats: k + "00100001101101101011010111111011AE0CAAA1EEE1DB1010BB10BB1010101010BB10B?@AF10010<<?@?@BE1010?@1010==1010010010001001010101100103"
2087
+ cps: D + "ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»…\xA0ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",
2088
+ cats: O + "00100001101101101011010111111011AE0CAAA1EEE1DB1010BB10BB1010101010BB10B?@AF10010<<?@?@BE1010?@1010==1010010010001001010101100103"
2089
2089
  },
2090
2090
  "mac-roman": {
2091
2091
  singleByte: !0,
2092
- cps: O + "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",
2093
- cats: k + "00000001111111111111111111111111AECCAAA1EEEDDB00BBBBC1BBB1B44011AABB1BB?@AF00001<<?@?@BE10BC?@11AA==A00000000000L000013DDDDDDDD3"
2092
+ cps: D + "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ",
2093
+ cats: O + "00000001111111111111111111111111AECCAAA1EEEDDB00BBBBC1BBB1B44011AABB1BB?@AF00001<<?@?@BE10BC?@11AA==A00000000000L000013DDDDDDDD3"
2094
2094
  },
2095
2095
  "mac-turkish": {
2096
2096
  singleByte: !0,
2097
- cps: O + "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ",
2098
- cats: k + "00000001111111111111111111111111AECCAAA1EEEDDB00BBBBC1BBB1B44011AABB1BB?@AF00001<<?@?@BE10010101AA==A00000000000L0000L3DDDDDDDD3"
2097
+ cps: D + "ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ",
2098
+ cats: O + "00000001111111111111111111111111AECCAAA1EEEDDB00BBBBC1BBB1B44011AABB1BB?@AF00001<<?@?@BE10010101AA==A00000000000L0000L3DDDDDDDD3"
2099
2099
  },
2100
2100
  ptcp154: {
2101
2101
  singleByte: !0,
2102
- cps: O + "ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ\xA0ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",
2103
- cats: k + "0001=A00010000001?@?@A<<11111111F010000A0E0?B1E0E10111AA1E1@10110000000000000000000000000000000011111111111111111111111111111111"
2102
+ cps: D + "ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ\xA0ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",
2103
+ cats: O + "0001=A00010000001?@?@A<<11111111F010000A0E0?B1E0E10111AA1E1@10110000000000000000000000000000000011111111111111111111111111111111"
2104
2104
  },
2105
2105
  shift_jis_2004: {
2106
2106
  singleByte: !1,
@@ -2109,8 +2109,8 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
2109
2109
  },
2110
2110
  "tis-620": {
2111
2111
  singleByte: !0,
2112
- cps: O + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ￿กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู￿￿￿￿฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛￿￿￿￿",
2113
- cats: k + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIM4444444444444444444444444444444444444444444444445445555555MMMMC444444355555555A8888888888AAMMMM"
2112
+ cps: D + "€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ￿กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู￿￿￿￿฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛￿￿￿￿",
2113
+ cats: O + "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIM4444444444444444444444444444444444444444444444445445555555MMMMC444444355555555A8888888888AAMMMM"
2114
2114
  },
2115
2115
  "utf-16": {
2116
2116
  singleByte: !1,
@@ -2149,52 +2149,52 @@ var Oe = /* @__PURE__ */ "Lu.Ll.Lt.Lm.Lo.Mn.Mc.Me.Nd.Nl.No.Pc.Pd.Ps.Pe.Pi.Pf.Po.
2149
2149
  },
2150
2150
  "utf-8": {
2151
2151
  singleByte: !1,
2152
- cps: O + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
2153
- cats: k + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
2152
+ cps: D + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
2153
+ cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
2154
2154
  },
2155
2155
  "utf-8-sig": {
2156
2156
  singleByte: !1,
2157
- cps: O + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
2158
- cats: k + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
2157
+ cps: D + "￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿",
2158
+ cats: O + "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
2159
2159
  },
2160
2160
  cp037: {
2161
2161
  singleByte: !0,
2162
2162
  cps: "\0œ †—Ž\v\f\r…\b‡’€‚ƒ„\n\x1Bˆ‰Š‹Œ\x07‘“”•–˜™š›ž \xA0âäàáãåçñ¢.<(+|&éêëèíîïìß!$*);¬-/ÂÄÀÁÃÅÇѦ,%_>?øÉÊËÈÍÎÏÌ`:#@'=\"Øabcdefghi«»ðýþ±°jklmnopqrªºæ¸Æ¤µ~stuvwxyz¡¿ÐÝÞ®^£¥·©§¶¼½¾[]¯¨´×{ABCDEFGHI­ôöòóõ}JKLMNOPQR¹ûüùúÿ\\÷STUVWXYZ²ÔÖÒÓÕ0123456789³ÛÜÙڟ",
2163
2163
  cats: "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFF11111111CAB=BBA111111111ACA>AB<A00000000EAA;BA100000000DAAAABA0111111111?@111BE111111111441D0C1B11111111AA000EDCCAEAA:::=>DDDB=000000000J11111>000000000:11111AB00000000:000008888888888:0000I"
2164
2164
  }
2165
- }), Ae = 65535, je = new Map(Object.entries(ke));
2166
- function A(e) {
2167
- let t = je.get(e);
2165
+ }), je = 65535, Me = new Map(Object.entries(Ae));
2166
+ function k(e) {
2167
+ let t = Me.get(e);
2168
2168
  if (t !== void 0) return t;
2169
- let n = D(e);
2170
- return n === null ? null : je.get(n) ?? null;
2169
+ let n = E(e);
2170
+ return n === null ? null : Me.get(n) ?? null;
2171
2171
  }
2172
- function Me(e, t) {
2172
+ function Ne(e, t) {
2173
2173
  return e.cps.charCodeAt(t);
2174
2174
  }
2175
- function Ne(e, t) {
2175
+ function Pe(e, t) {
2176
2176
  return e.cats.charCodeAt(t) - 48;
2177
2177
  }
2178
- function Pe(e, t) {
2179
- return Oe[Ne(e, t)] ?? "Cn";
2178
+ function Fe(e, t) {
2179
+ return ke[Pe(e, t)] ?? "Cn";
2180
2180
  }
2181
- var Fe = /* @__PURE__ */ new Map();
2182
- function Ie(e) {
2183
- let t = Fe.get(e);
2181
+ var Ie = /* @__PURE__ */ new Map();
2182
+ function Le(e) {
2183
+ let t = Ie.get(e);
2184
2184
  if (t !== void 0) return t;
2185
2185
  t = null;
2186
- for (let n = 0; n < 256; n++) Me(e, n) === Ae && (t ??= /* @__PURE__ */ new Uint8Array(256), t[n] = 1);
2187
- return Fe.set(e, t), t;
2186
+ for (let n = 0; n < 256; n++) Ne(e, n) === je && (t ??= /* @__PURE__ */ new Uint8Array(256), t[n] = 1);
2187
+ return Ie.set(e, t), t;
2188
2188
  }
2189
- function Le(e, t) {
2190
- let n = A(e);
2189
+ function Re(e, t) {
2190
+ let n = k(e);
2191
2191
  if (n === null || !n.singleByte) return null;
2192
- let r = Ie(n);
2192
+ let r = Le(n);
2193
2193
  if (r === null) return !0;
2194
2194
  for (let e = 0; e < t.length; e++) if (r[t[e]] !== 0) return !1;
2195
2195
  return !0;
2196
2196
  }
2197
- function Re(e, t) {
2197
+ function ze(e, t) {
2198
2198
  let n = "";
2199
2199
  for (let r = 0; r < t.length; r++) {
2200
2200
  let i = e.cps[t[r]];
@@ -2202,20 +2202,20 @@ function Re(e, t) {
2202
2202
  }
2203
2203
  return n;
2204
2204
  }
2205
- function ze(e, t) {
2206
- let n = Le(e, t);
2205
+ function A(e, t) {
2206
+ let n = Re(e, t);
2207
2207
  if (n !== null) return n;
2208
2208
  let r = re(e);
2209
2209
  return r === null || oe(r, t);
2210
2210
  }
2211
2211
  function Be(e, t) {
2212
- let n = Le(e, t);
2212
+ let n = Re(e, t);
2213
2213
  if (n !== null) return n;
2214
2214
  let r = re(e);
2215
2215
  return r !== null && se(r, t);
2216
2216
  }
2217
2217
  function Ve(e, t) {
2218
- if (A(e)?.singleByte) return !1;
2218
+ if (k(e)?.singleByte) return !1;
2219
2219
  let n = re(e);
2220
2220
  return n !== null && le(n, t);
2221
2221
  }
@@ -2224,8 +2224,8 @@ function He(e, t) {
2224
2224
  return n === null ? null : ue(n, t);
2225
2225
  }
2226
2226
  function Ue(e, t) {
2227
- let n = Le(e, t);
2228
- if (n !== null) return n ? Re(A(e), t) : null;
2227
+ let n = Re(e, t);
2228
+ if (n !== null) return n ? ze(k(e), t) : null;
2229
2229
  let r = re(e);
2230
2230
  return r === null ? null : de(r, t);
2231
2231
  }
@@ -2250,7 +2250,7 @@ function Ke(e, t) {
2250
2250
  let n = e.encoding;
2251
2251
  if (n === null) return e;
2252
2252
  let r = We[n];
2253
- return r === void 0 || (t === void 0 || ze(r, t)) && (e.encoding = r), e;
2253
+ return r === void 0 || (t === void 0 || A(r, t)) && (e.encoding = r), e;
2254
2254
  }
2255
2255
  var qe = Object.freeze({
2256
2256
  big5hkscs: "Big5",
@@ -2604,7 +2604,7 @@ function ft() {
2604
2604
  return dt || (dt = ot(typeof Buffer < "u" ? new Uint8Array(Buffer.from(ut, "base64")) : Uint8Array.from(atob(ut), (e) => e.charCodeAt(0))), dt);
2605
2605
  }
2606
2606
  var pt = {};
2607
- for (let e of Object.values(E)) e.languages.length === 1 && (pt[e.name] = e.languages[0]);
2607
+ for (let e of Object.values(Se)) e.languages.length === 1 && (pt[e.name] = e.languages[0]);
2608
2608
  var mt = null;
2609
2609
  function ht() {
2610
2610
  if (mt) return mt;
@@ -2628,7 +2628,7 @@ function _t(e) {
2628
2628
  ]);
2629
2629
  }
2630
2630
  for (let e of [...t.keys()]) {
2631
- let n = D(e);
2631
+ let n = E(e);
2632
2632
  n !== null && !t.has(n) && t.set(n, t.get(e));
2633
2633
  }
2634
2634
  return t;
@@ -2957,11 +2957,8 @@ function an(e, t) {
2957
2957
  let n = 0, r = t - 1;
2958
2958
  for (; r >= 0;) {
2959
2959
  let t = e[r];
2960
- if (t === 10 || t === 13) {
2961
- r--;
2962
- continue;
2963
- }
2964
- if (nn.has(t)) {
2960
+ if (t === 10 || t === 13) r--;
2961
+ else if (nn.has(t)) {
2965
2962
  if (n++, n >= rn) return !0;
2966
2963
  r--;
2967
2964
  } else break;
@@ -2994,18 +2991,17 @@ function on(e, t, n) {
2994
2991
  continue;
2995
2992
  }
2996
2993
  let s = o - a, c = e.subarray(a, o);
2997
- if (s >= 3 && !c.some((e) => e >= 65 && e <= 90)) {
2998
- r = o;
2999
- continue;
3000
- }
3001
- if (s >= 3 && tn(c)) {
3002
- if (Math.floor(s * 6 / 16) === 1 && !cn(sn(c))) {
3003
- r = o;
3004
- continue;
2994
+ if (s >= 3 && !c.some((e) => e >= 65 && e <= 90)) r = o;
2995
+ else {
2996
+ if (s >= 3 && tn(c)) {
2997
+ if (Math.floor(s * 6 / 16) === 1 && !cn(sn(c))) {
2998
+ r = o;
2999
+ continue;
3000
+ }
3001
+ return !0;
3005
3002
  }
3006
- return !0;
3003
+ r = Math.max(a, o);
3007
3004
  }
3008
- r = Math.max(a, o);
3009
3005
  }
3010
3006
  }
3011
3007
  function sn(e) {
@@ -3813,17 +3809,17 @@ function pr(e) {
3813
3809
  return !0;
3814
3810
  }
3815
3811
  function mr(e, t) {
3816
- return ze(t, e.subarray(0, cr));
3812
+ return A(t, e.subarray(0, cr));
3817
3813
  }
3818
- var hr = /<(?:meta|\?xml)[^>]*/gi, gr = /(?:charset|encoding)\s*=\s*[^\sA-Za-z0-9._-]?\s*([A-Za-z][A-Za-z0-9._-]+)/gi, _r = .25, vr = A("cp037");
3814
+ var hr = /<(?:meta|\?xml)[^>]*/gi, gr = /(?:charset|encoding)\s*=\s*[^\sA-Za-z0-9._-]?\s*([A-Za-z][A-Za-z0-9._-]+)/gi, _r = .25, vr = k("cp037");
3819
3815
  function yr(e) {
3820
3816
  let t = 0;
3821
3817
  for (let n = 0; n < e.length; n++) e[n] >= 128 && t++;
3822
3818
  if (t < e.length * _r) return null;
3823
- let n = Re(vr, e);
3819
+ let n = ze(vr, e);
3824
3820
  for (let t of n.matchAll(hr)) for (let n of t[0].matchAll(gr)) {
3825
- let t = D(n[1].trim());
3826
- if (t !== null && (E[t].era & w.MAINFRAME) !== 0 && ze(t, e)) return {
3821
+ let t = E(n[1].trim());
3822
+ if (t !== null && (Se[t].era & w.MAINFRAME) !== 0 && A(t, e)) return {
3827
3823
  encoding: t,
3828
3824
  confidence: .95,
3829
3825
  language: null,
@@ -3838,7 +3834,7 @@ function br(e) {
3838
3834
  if (!n) return null;
3839
3835
  let r = n[1].trim();
3840
3836
  if (!pr(r)) return null;
3841
- let i = D(r);
3837
+ let i = E(r);
3842
3838
  return i === null || !mr(e, i) ? null : {
3843
3839
  encoding: i,
3844
3840
  confidence: .95,
@@ -3858,7 +3854,7 @@ function xr(e) {
3858
3854
  if (!r) continue;
3859
3855
  let a = r[1].trim();
3860
3856
  if (!pr(a)) continue;
3861
- let o = D(a);
3857
+ let o = E(a);
3862
3858
  if (o !== null && mr(e, o)) return {
3863
3859
  encoding: o,
3864
3860
  confidence: .95,
@@ -3877,9 +3873,9 @@ function Cr(e, t, n) {
3877
3873
  if (t.encoding === null) return t;
3878
3874
  let r = Sr[t.encoding];
3879
3875
  if (r === void 0 || !n.has(r)) return t;
3880
- let i = E[r];
3881
- if (i === void 0 || !ze(r, e)) return t;
3882
- let a = e.subarray(0, cr), o = new Nt(), s = E[t.encoding];
3876
+ let i = Se[r];
3877
+ if (i === void 0 || !A(r, e)) return t;
3878
+ let a = e.subarray(0, cr), o = new Nt(), s = Se[t.encoding];
3883
3879
  if (s === void 0) return t;
3884
3880
  let c = wr.computeStructuralScore(a, s, o);
3885
3881
  return wr.computeStructuralScore(a, i, o) > c ? {
@@ -3893,55 +3889,55 @@ var wr = { computeStructuralScore: ar }, Tr = "eAFjiGdNLE7OzGQtLUnTNWfUFpJF4lswQ
3893
3889
  function Dr() {
3894
3890
  return Er || (Er = ot(typeof Buffer < "u" ? new Uint8Array(Buffer.from(Tr, "base64")) : Uint8Array.from(atob(Tr), (e) => e.charCodeAt(0))), Er);
3895
3891
  }
3896
- function Or(e, t) {
3892
+ function P(e, t) {
3897
3893
  return `${e}\0${t}`;
3898
3894
  }
3899
- var kr = new TextDecoder("utf-8", { fatal: !0 });
3900
- function Ar(e) {
3895
+ var Or = new TextDecoder("utf-8", { fatal: !0 });
3896
+ function kr(e) {
3901
3897
  let t = /* @__PURE__ */ new Map(), n = new DataView(e.buffer, e.byteOffset, e.byteLength), r = 0, i = n.getUint16(r, !1);
3902
3898
  r += 2;
3903
3899
  for (let a = 0; a < i; a++) {
3904
3900
  let i = n.getUint8(r);
3905
3901
  r += 1;
3906
- let a = kr.decode(e.subarray(r, r + i));
3902
+ let a = Or.decode(e.subarray(r, r + i));
3907
3903
  r += i;
3908
3904
  let o = n.getUint8(r);
3909
3905
  r += 1;
3910
- let s = kr.decode(e.subarray(r, r + o));
3906
+ let s = Or.decode(e.subarray(r, r + o));
3911
3907
  r += o;
3912
3908
  let c = n.getUint8(r);
3913
3909
  r += 1;
3914
3910
  let l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
3915
3911
  for (let e = 0; e < c; e++) {
3916
3912
  let e = n.getUint8(r), t = n.getUint8(r + 1), i = n.getUint8(r + 2);
3917
- r += 3, l.add(e), u.set(e, [Oe[t] ?? "Cn", Oe[i] ?? "Cn"]);
3913
+ r += 3, l.add(e), u.set(e, [ke[t] ?? "Cn", ke[i] ?? "Cn"]);
3918
3914
  }
3919
- t.set(Or(a, s), {
3915
+ t.set(P(a, s), {
3920
3916
  diffBytes: l,
3921
3917
  categories: u
3922
3918
  });
3923
3919
  }
3924
3920
  return t;
3925
3921
  }
3926
- var jr = null;
3927
- function Mr() {
3928
- if (jr) return jr;
3922
+ var Ar = null;
3923
+ function jr() {
3924
+ if (Ar) return Ar;
3929
3925
  let e = Dr();
3930
- if (e.length === 0) return console.warn("jschardet confusion.bin is empty — confusion resolution disabled; reinstall jschardet to fix"), jr = /* @__PURE__ */ new Map(), jr;
3926
+ if (e.length === 0) return console.warn("jschardet confusion.bin is empty — confusion resolution disabled; reinstall jschardet to fix"), Ar = /* @__PURE__ */ new Map(), Ar;
3931
3927
  let t;
3932
3928
  try {
3933
- t = Ar(e);
3929
+ t = kr(e);
3934
3930
  } catch (e) {
3935
3931
  throw Error(`corrupt confusion.bin: ${e.message}`);
3936
3932
  }
3937
3933
  let n = /* @__PURE__ */ new Map();
3938
3934
  for (let [e, r] of t) {
3939
- let t = e.indexOf("\0"), i = e.slice(0, t), a = e.slice(t + 1), o = D(i) ?? i, s = D(a) ?? a;
3940
- n.set(Or(o, s), r);
3935
+ let t = e.indexOf("\0"), i = e.slice(0, t), a = e.slice(t + 1), o = E(i) ?? i, s = E(a) ?? a;
3936
+ n.set(P(o, s), r);
3941
3937
  }
3942
- return jr = n, jr;
3938
+ return Ar = n, Ar;
3943
3939
  }
3944
- var Nr = {
3940
+ var Mr = {
3945
3941
  Lu: 10,
3946
3942
  Ll: 10,
3947
3943
  Lt: 10,
@@ -3972,41 +3968,41 @@ var Nr = {
3972
3968
  Mn: 5,
3973
3969
  Mc: 5,
3974
3970
  Me: 5
3975
- }, Pr = 2, Fr = 8, Ir = 2, Lr = 256, Rr = { denseHitDivisor: 4 }, zr = /* @__PURE__ */ new Uint8Array(256), Br = /* @__PURE__ */ new Map(), Vr = (() => {
3976
- let e = new Uint8Array(Oe.length);
3977
- return Oe.forEach((t, n) => {
3971
+ }, Nr = 2, Pr = 8, Fr = 2, Ir = 256, Lr = { denseHitDivisor: 4 }, Rr = /* @__PURE__ */ new Uint8Array(256), zr = /* @__PURE__ */ new Map(), Br = (() => {
3972
+ let e = new Uint8Array(ke.length);
3973
+ return ke.forEach((t, n) => {
3978
3974
  e[n] = t === "Lu" ? 1 : t[0] === "L" || t[0] === "M" ? 2 : 0;
3979
3975
  }), e;
3980
3976
  })();
3981
- function Hr(e) {
3982
- let t = Br.get(e);
3977
+ function Vr(e) {
3978
+ let t = zr.get(e);
3983
3979
  if (t !== void 0) return t;
3984
- let n = A(e);
3985
- if (n === null) t = zr;
3980
+ let n = k(e);
3981
+ if (n === null) t = Rr;
3986
3982
  else {
3987
3983
  t = /* @__PURE__ */ new Uint8Array(256);
3988
- for (let e = 0; e < 256; e++) t[e] = Vr[Ne(n, e)] ?? 0;
3984
+ for (let e = 0; e < 256; e++) t[e] = Br[Pe(n, e)] ?? 0;
3989
3985
  }
3990
- return Br.set(e, t), t;
3986
+ return zr.set(e, t), t;
3991
3987
  }
3992
- function Ur(e, t, n, r) {
3993
- let i = Nr[e] ?? 0;
3988
+ function Hr(e, t, n, r) {
3989
+ let i = Mr[e] ?? 0;
3994
3990
  if (e[0] !== "L") return i;
3995
3991
  let a = r[t], o = r[n];
3996
- return a === 0 && o === 0 || e === "Ll" && o === 1 ? Pr : i;
3992
+ return a === 0 && o === 0 || e === "Ll" && o === 1 ? Nr : i;
3997
3993
  }
3998
- var Wr = /* @__PURE__ */ new WeakMap();
3999
- function Gr(e) {
4000
- let t = Wr.get(e);
3994
+ var Ur = /* @__PURE__ */ new WeakMap();
3995
+ function Wr(e) {
3996
+ let t = Ur.get(e);
4001
3997
  if (t === void 0) {
4002
3998
  t = /* @__PURE__ */ new Uint8Array(256);
4003
3999
  for (let n of e) t[n] = 1;
4004
- Wr.set(e, t);
4000
+ Ur.set(e, t);
4005
4001
  }
4006
4002
  return t;
4007
4003
  }
4008
- function Kr(e, t, n, r, i) {
4009
- let a = Gr(r), o = /* @__PURE__ */ new Set();
4004
+ function Gr(e, t, n, r, i) {
4005
+ let a = Wr(r), o = /* @__PURE__ */ new Set();
4010
4006
  for (let t = 0; t < e.length; t++) a[e[t]] && o.add(e[t]);
4011
4007
  if (o.size === 0) return {
4012
4008
  winner: null,
@@ -4014,14 +4010,14 @@ function Kr(e, t, n, r, i) {
4014
4010
  demotionMargin: 0,
4015
4011
  demotionEvents: 0
4016
4012
  };
4017
- let s = Hr(t), c = Hr(n), l = 0, u = 0, d = 0, f = 0, p = 0, m = 0, h = e.length - 1;
4013
+ let s = Vr(t), c = Vr(n), l = 0, u = 0, d = 0, f = 0, p = 0, m = 0, h = e.length - 1;
4018
4014
  for (let t of o) {
4019
4015
  let n = i.get(t);
4020
4016
  if (n === void 0) continue;
4021
4017
  let [r, a] = n, o = e.indexOf(t), g = 0;
4022
- for (; o >= 0 && g < Lr;) {
4023
- let n = o > 0 ? e[o - 1] : 0, i = o < h ? e[o + 1] : 0, _ = Ur(r, n, i, s), v = Ur(a, n, i, c);
4024
- _ > v ? r[0] === "L" && a[0] === "P" || (l += _ - v, a[0] === "L" && v === Pr && (d += _ - v, p += 1)) : v > _ && (a[0] === "L" && r[0] === "P" || (u += v - _, r[0] === "L" && _ === Pr && (f += v - _, m += 1))), g += 1, o = e.indexOf(t, o + 1);
4018
+ for (; o >= 0 && g < Ir;) {
4019
+ let n = o > 0 ? e[o - 1] : 0, i = o < h ? e[o + 1] : 0, _ = Hr(r, n, i, s), v = Hr(a, n, i, c);
4020
+ _ > v ? r[0] === "L" && a[0] === "P" || (l += _ - v, a[0] === "L" && v === Nr && (d += _ - v, p += 1)) : v > _ && (a[0] === "L" && r[0] === "P" || (u += v - _, r[0] === "L" && _ === Nr && (f += v - _, m += 1))), g += 1, o = e.indexOf(t, o + 1);
4025
4021
  }
4026
4022
  }
4027
4023
  return l > u ? {
@@ -4041,32 +4037,32 @@ function Kr(e, t, n, r, i) {
4041
4037
  demotionEvents: 0
4042
4038
  };
4043
4039
  }
4044
- function qr(e, t, n, r = /* @__PURE__ */ new Set()) {
4045
- let i = Mr(), a = ii(i, t, n);
4040
+ function Kr(e, t, n, r = /* @__PURE__ */ new Set()) {
4041
+ let i = jr(), a = ri(i, t, n);
4046
4042
  if (a === null) return null;
4047
- let [o, s] = a, { diffBytes: c, categories: l } = i.get(Or(o, s)), u = Kr(e, o, s, c, l);
4048
- if (u.winner !== null && u.demotionMargin >= Fr && u.demotionEvents >= Ir && c.size < ai) return u.winner;
4049
- let d = Qr(e, o, s, c, r);
4050
- return c.size >= ai ? d !== null && d === u.winner ? d : null : d === null ? u.winner : d;
4051
- }
4052
- var Jr = /* @__PURE__ */ new Map();
4053
- function Yr(e) {
4054
- let t = Jr.get(e);
4043
+ let [o, s] = a, { diffBytes: c, categories: l } = i.get(P(o, s)), u = Gr(e, o, s, c, l);
4044
+ if (u.winner !== null && u.demotionMargin >= Pr && u.demotionEvents >= Fr && c.size < ii) return u.winner;
4045
+ let d = Zr(e, o, s, c, r);
4046
+ return c.size >= ii ? d !== null && d === u.winner ? d : null : d === null ? u.winner : d;
4047
+ }
4048
+ var qr = /* @__PURE__ */ new Map();
4049
+ function Jr(e) {
4050
+ let t = qr.get(e);
4055
4051
  if (t === void 0) {
4056
4052
  let n = /* @__PURE__ */ new Set();
4057
4053
  for (let [t] of yt().get(e) ?? []) t !== null && n.add(t);
4058
- t = n, Jr.set(e, t);
4054
+ t = n, qr.set(e, t);
4059
4055
  }
4060
4056
  return t;
4061
4057
  }
4062
- function Xr(e, t, n) {
4058
+ function Yr(e, t, n) {
4063
4059
  if (n.size === 0) return null;
4064
- let r = Yr(e), i = Yr(t), a = /* @__PURE__ */ new Set();
4060
+ let r = Jr(e), i = Jr(t), a = /* @__PURE__ */ new Set();
4065
4061
  for (let e of r) i.has(e) && a.add(e);
4066
4062
  for (let e of n) if (!a.has(e)) return null;
4067
4063
  return (r.has(M) || i.has(M)) && a.add(M), a;
4068
4064
  }
4069
- function Zr(e, t, n) {
4065
+ function Xr(e, t, n) {
4070
4066
  let r = yt().get(t);
4071
4067
  if (r === void 0 || r.length === 0) return 0;
4072
4068
  let i = 0;
@@ -4077,22 +4073,22 @@ function Zr(e, t, n) {
4077
4073
  }
4078
4074
  return i;
4079
4075
  }
4080
- function Qr(e, t, n, r, i = /* @__PURE__ */ new Set()) {
4081
- let a = $r(e, r);
4076
+ function Zr(e, t, n, r, i = /* @__PURE__ */ new Set()) {
4077
+ let a = Qr(e, r);
4082
4078
  if (a === null) return null;
4083
- let o = Xr(t, n, i), s = Zr(a, t, o), c = Zr(a, n, o);
4079
+ let o = Yr(t, n, i), s = Xr(a, t, o), c = Xr(a, n, o);
4084
4080
  return s > c ? t : c > s ? n : null;
4085
4081
  }
4086
- function $r(e, t) {
4082
+ function Qr(e, t) {
4087
4083
  if (e.length < 2) return null;
4088
- let n = Gr(t), r = 0, i = /* @__PURE__ */ new Set();
4084
+ let n = Wr(t), r = 0, i = /* @__PURE__ */ new Set();
4089
4085
  for (let t = 0; t < e.length; t++) {
4090
4086
  let a = e[t];
4091
4087
  n[a] && (r += 1, i.add(a));
4092
4088
  }
4093
4089
  if (r === 0) return null;
4094
4090
  let a = Ct(), o = /* @__PURE__ */ new Map(), s = e.length - 1;
4095
- if (r * Rr.denseHitDivisor < e.length) {
4091
+ if (r * Lr.denseHitDivisor < e.length) {
4096
4092
  let t = /* @__PURE__ */ new Set();
4097
4093
  for (let n of i) {
4098
4094
  let r = e.indexOf(n);
@@ -4110,55 +4106,55 @@ function $r(e, t) {
4110
4106
  }
4111
4107
  return o.size === 0 ? null : Tt.fromWeightedFreq(o);
4112
4108
  }
4113
- var ei = /* @__PURE__ */ new Map();
4114
- function ti(e, t) {
4115
- let n = Or(e, t), r = ei.get(n);
4109
+ var $r = /* @__PURE__ */ new Map();
4110
+ function ei(e, t) {
4111
+ let n = P(e, t), r = $r.get(n);
4116
4112
  if (r !== void 0) return r;
4117
- let i = A(e), a = A(t), o = /* @__PURE__ */ new Set();
4118
- for (let e = 128; e < 256; e++) (i === null ? Ae : Me(i, e)) !== (a === null ? Ae : Me(a, e)) && o.add(e);
4119
- return ei.set(n, o), o;
4113
+ let i = k(e), a = k(t), o = /* @__PURE__ */ new Set();
4114
+ for (let e = 128; e < 256; e++) (i === null ? je : Ne(i, e)) !== (a === null ? je : Ne(a, e)) && o.add(e);
4115
+ return $r.set(n, o), o;
4120
4116
  }
4121
- function ni(e, t, n) {
4122
- let r = A(e), i = A(t), a = /* @__PURE__ */ new Map();
4117
+ function ti(e, t, n) {
4118
+ let r = k(e), i = k(t), a = /* @__PURE__ */ new Map();
4123
4119
  for (let e of n) {
4124
- let t = r === null ? "Cn" : Pe(r, e), n = i === null ? "Cn" : Pe(i, e);
4120
+ let t = r === null ? "Cn" : Fe(r, e), n = i === null ? "Cn" : Fe(i, e);
4125
4121
  a.set(e, [t, n]);
4126
4122
  }
4127
4123
  return a;
4128
4124
  }
4129
- function ri(e, t, n, r, i, a) {
4130
- let o = $r(e, r);
4125
+ function ni(e, t, n, r, i, a) {
4126
+ let o = Qr(e, r);
4131
4127
  if (o !== null) {
4132
- let e = Zr(o, t, i), r = Zr(o, n, a);
4128
+ let e = Xr(o, t, i), r = Xr(o, n, a);
4133
4129
  if (e > r) return t;
4134
4130
  if (r > e) return n;
4135
4131
  }
4136
- let { winner: s } = Kr(e, t, n, r, ni(t, n, r));
4132
+ let { winner: s } = Gr(e, t, n, r, ti(t, n, r));
4137
4133
  return s;
4138
4134
  }
4139
- function ii(e, t, n) {
4140
- return e.has(Or(t, n)) ? [t, n] : e.has(Or(n, t)) ? [n, t] : null;
4135
+ function ri(e, t, n) {
4136
+ return e.has(P(t, n)) ? [t, n] : e.has(P(n, t)) ? [n, t] : null;
4141
4137
  }
4142
- var ai = 52, oi = .005, si = .5, ci = .2;
4143
- function li(e, t) {
4138
+ var ii = 52, ai = .005, oi = .5, si = .2;
4139
+ function ci(e, t) {
4144
4140
  if (t.length < 2) return t;
4145
4141
  let n = t[0];
4146
4142
  if (n.encoding === null || n.language === M) return t;
4147
- let r = Mr(), i = n.confidence, a = i * si, o = 0, s = n, c = n.encoding;
4143
+ let r = jr(), i = n.confidence, a = i * oi, o = 0, s = n, c = n.encoding;
4148
4144
  for (let n = 1; n < t.length; n++) {
4149
4145
  let l = t[n];
4150
4146
  if (l.encoding === null) continue;
4151
- let u = n === 1 || i - l.confidence <= oi;
4152
- if (!u && (i >= ci || l.confidence < a)) break;
4153
- let d = ii(r, c, l.encoding);
4147
+ let u = n === 1 || i - l.confidence <= ai;
4148
+ if (!u && (i >= si || l.confidence < a)) break;
4149
+ let d = ri(r, c, l.encoding);
4154
4150
  if (d === null) continue;
4155
- let [f, p] = d, { diffBytes: m, categories: h } = r.get(Or(f, p)), g = Kr(e, f, p, m, h), _;
4156
- if (g.winner !== null && g.demotionMargin >= Fr && g.demotionEvents >= Ir && m.size < ai) _ = g.winner;
4151
+ let [f, p] = d, { diffBytes: m, categories: h } = r.get(P(f, p)), g = Gr(e, f, p, m, h), _;
4152
+ if (g.winner !== null && g.demotionMargin >= Pr && g.demotionEvents >= Fr && m.size < ii) _ = g.winner;
4157
4153
  else {
4158
4154
  let t = /* @__PURE__ */ new Set();
4159
4155
  s.language !== null && t.add(s.language), l.language !== null && t.add(l.language);
4160
- let n = Qr(e, f, p, m, t);
4161
- _ = u && m.size < ai ? n === null ? g.winner : n : n !== null && n === g.winner ? n : null;
4156
+ let n = Zr(e, f, p, m, t);
4157
+ _ = u && m.size < ii ? n === null ? g.winner : n : n !== null && n === g.winner ? n : null;
4162
4158
  }
4163
4159
  if (_ !== null && _ === l.encoding) {
4164
4160
  if (u) return [{
@@ -4177,11 +4173,11 @@ function li(e, t) {
4177
4173
  mimeType: s.mimeType
4178
4174
  }, ...t.filter((e, t) => t !== o)];
4179
4175
  }
4180
- var ui = /* @__PURE__ */ new Set([
4176
+ var li = /* @__PURE__ */ new Set([
4181
4177
  "iso8859-1",
4182
4178
  "iso8859-15",
4183
4179
  "cp1252"
4184
- ]), di = /* @__PURE__ */ new Map([
4180
+ ]), ui = /* @__PURE__ */ new Map([
4185
4181
  ["iso8859-10", /* @__PURE__ */ new Set([
4186
4182
  161,
4187
4183
  162,
@@ -4296,7 +4292,7 @@ var ui = /* @__PURE__ */ new Set([
4296
4292
  221,
4297
4293
  222
4298
4294
  ])]
4299
- ]), fi = /* @__PURE__ */ new Set([
4295
+ ]), di = /* @__PURE__ */ new Set([
4300
4296
  128,
4301
4297
  129,
4302
4298
  131,
@@ -4309,9 +4305,9 @@ var ui = /* @__PURE__ */ new Set([
4309
4305
  162,
4310
4306
  165,
4311
4307
  181
4312
- ]), pi = 1e-4;
4313
- function mi(e, t, n) {
4314
- let r = t.encoding ?? "", i = di.get(r);
4308
+ ]), fi = 1e-4;
4309
+ function pi(e, t, n) {
4310
+ let r = t.encoding ?? "", i = ui.get(r);
4315
4311
  if (i === void 0) return !1;
4316
4312
  let a = !1;
4317
4313
  for (let t = 0; t < e.length; t++) {
@@ -4321,25 +4317,25 @@ function mi(e, t, n) {
4321
4317
  break;
4322
4318
  }
4323
4319
  }
4324
- return a ? t.confidence - n.confidence > oi ? !1 : ri(e, r, n.encoding ?? "", new Set(i), t.language === null ? null : /* @__PURE__ */ new Set([t.language]), n.language === null ? null : /* @__PURE__ */ new Set([n.language])) !== r : !0;
4320
+ return a ? t.confidence - n.confidence > ai ? !1 : ni(e, r, n.encoding ?? "", new Set(i), t.language === null ? null : /* @__PURE__ */ new Set([t.language]), n.language === null ? null : /* @__PURE__ */ new Set([n.language])) !== r : !0;
4325
4321
  }
4326
- function hi(e) {
4322
+ function mi(e) {
4327
4323
  let t = e[0].confidence;
4328
4324
  for (let n of e) n.confidence > t && (t = n.confidence);
4329
4325
  let n = null, r = 0;
4330
4326
  for (let i of e) {
4331
- if (t - i.confidence > pi) continue;
4332
- let e = Ci(i.encoding ?? "");
4327
+ if (t - i.confidence > fi) continue;
4328
+ let e = Si(i.encoding ?? "");
4333
4329
  (n === null || e < r) && (n = i, r = e);
4334
4330
  }
4335
4331
  return n;
4336
4332
  }
4337
- function gi(e, t) {
4338
- if (t.length < 2 || !di.has(t[0].encoding ?? "")) return t;
4339
- let n = t.slice(1).filter((e) => e.encoding !== null && ui.has(e.encoding));
4333
+ function hi(e, t) {
4334
+ if (t.length < 2 || !ui.has(t[0].encoding ?? "")) return t;
4335
+ let n = t.slice(1).filter((e) => e.encoding !== null && li.has(e.encoding));
4340
4336
  if (n.length === 0) return t;
4341
- let r = hi(n);
4342
- if (!mi(e, t[0], r)) return t;
4337
+ let r = mi(n);
4338
+ if (!pi(e, t[0], r)) return t;
4343
4339
  let i = t[0].encoding, a = t[0].confidence, o = {
4344
4340
  encoding: r.encoding,
4345
4341
  confidence: a,
@@ -4357,30 +4353,30 @@ function gi(e, t) {
4357
4353
  ...l
4358
4354
  ];
4359
4355
  }
4360
- function _i(e, t) {
4356
+ function gi(e, t) {
4361
4357
  if (t.length === 0 || t[0].encoding !== "koi8-r") return t;
4362
4358
  let n = t.findIndex((e) => e.encoding === "koi8-t");
4363
4359
  if (n === -1) return t;
4364
4360
  for (let r = 0; r < e.length; r++) {
4365
4361
  let i = e[r];
4366
- if (i > 127 && fi.has(i)) return Ei(t, n);
4362
+ if (i > 127 && di.has(i)) return F(t, n);
4367
4363
  }
4368
4364
  return t;
4369
4365
  }
4370
- var vi = Object.freeze({
4366
+ var _i = Object.freeze({
4371
4367
  shift_jis_2004: "cp932",
4372
4368
  euc_kr: "cp949"
4373
- }), yi = oi, bi = 3, xi = 4, Si = 16384;
4374
- function Ci(e) {
4375
- let t = E[e];
4369
+ }), vi = ai, yi = 3, bi = 4, xi = 16384;
4370
+ function Si(e) {
4371
+ let t = Se[e];
4376
4372
  if (t === void 0) return 1 << 30;
4377
4373
  let n = t.era;
4378
4374
  return n & -n;
4379
4375
  }
4380
- function wi(e, t, n) {
4376
+ function Ci(e, t, n) {
4381
4377
  let r = yt().get(t);
4382
4378
  if (r === void 0 || r.length === 0) return !1;
4383
- let i = e.subarray(0, Si);
4379
+ let i = e.subarray(0, xi);
4384
4380
  if (i.length === 0) return !1;
4385
4381
  let a = /* @__PURE__ */ new Set(), o = i[0];
4386
4382
  for (let e = 1; e < i.length; e++) {
@@ -4393,25 +4389,25 @@ function wi(e, t, n) {
4393
4389
  }
4394
4390
  return !1;
4395
4391
  }
4396
- function Ti(e, t) {
4392
+ function wi(e, t) {
4397
4393
  let n = t.length > 0 ? t[0] : null;
4398
4394
  if (n === null || n.encoding === null || t.length < 2) return t;
4399
- let r = 0, i = Ci(n.encoding);
4395
+ let r = 0, i = Si(n.encoding);
4400
4396
  for (let e = 1; e < t.length; e++) {
4401
4397
  let a = t[e];
4402
4398
  if (a.encoding === null) continue;
4403
- if (n.confidence - a.confidence > pi) break;
4404
- let o = Ci(a.encoding);
4399
+ if (n.confidence - a.confidence > fi) break;
4400
+ let o = Si(a.encoding);
4405
4401
  o < i && (i = o, r = e);
4406
4402
  }
4407
4403
  if (r === 0) return t;
4408
- if (!wi(e, n.encoding, n.language)) return Ei(t, r);
4404
+ if (!Ci(e, n.encoding, n.language)) return F(t, r);
4409
4405
  let a = t[r].encoding ?? "", o = /* @__PURE__ */ new Set();
4410
4406
  n.language !== null && o.add(n.language), t[r].language !== null && o.add(t[r].language);
4411
- let s = Xr(n.encoding, a, o);
4412
- return ri(e, n.encoding, a, ti(n.encoding, a), s, s) === a ? Ei(t, r) : t;
4407
+ let s = Yr(n.encoding, a, o);
4408
+ return ni(e, n.encoding, a, ei(n.encoding, a), s, s) === a ? F(t, r) : t;
4413
4409
  }
4414
- function Ei(e, t) {
4410
+ function F(e, t) {
4415
4411
  let n = e[t];
4416
4412
  return [{
4417
4413
  encoding: n.encoding,
@@ -4420,52 +4416,52 @@ function Ei(e, t) {
4420
4416
  mimeType: n.mimeType
4421
4417
  }, ...e.filter((e, n) => n !== t)];
4422
4418
  }
4423
- function Di(e, t) {
4419
+ function Ti(e, t) {
4424
4420
  let n = t.length > 0 ? t[0] : null;
4425
4421
  if (n === null || n.encoding === null || t.length < 2) return t;
4426
- let r = vi[n.encoding];
4422
+ let r = _i[n.encoding];
4427
4423
  if (r === void 0) return t;
4428
4424
  for (let i = 1; i < t.length; i++) {
4429
4425
  let a = t[i];
4430
- if (n.confidence - a.confidence > pi) break;
4431
- if (a.encoding === r && ze(r, e)) return Ei(t, i);
4426
+ if (n.confidence - a.confidence > fi) break;
4427
+ if (a.encoding === r && A(r, e)) return F(t, i);
4432
4428
  }
4433
4429
  return t;
4434
4430
  }
4435
- var Oi = .02, ki = .15;
4436
- function Ai(e) {
4431
+ var Ei = .02, Di = .15;
4432
+ function Oi(e) {
4437
4433
  let t = e.length > 0 ? e[0] : null;
4438
- if (t === null || t.encoding === null || t.language === null || !j.has(t.language) || t.confidence >= ki || e.length < 2) return e;
4434
+ if (t === null || t.encoding === null || t.language === null || !j.has(t.language) || t.confidence >= Di || e.length < 2) return e;
4439
4435
  for (let n = 1; n < e.length; n++) {
4440
4436
  let r = e[n];
4441
- if (t.confidence - r.confidence > Oi) break;
4442
- if (r.encoding !== null && r.language !== null && !j.has(r.language)) return Ei(e, n);
4437
+ if (t.confidence - r.confidence > Ei) break;
4438
+ if (r.encoding !== null && r.language !== null && !j.has(r.language)) return F(e, n);
4443
4439
  }
4444
4440
  return e;
4445
4441
  }
4446
- function ji(e, t) {
4442
+ function ki(e, t) {
4447
4443
  let n = t.length > 0 ? t[0] : null;
4448
- if (n === null || n.encoding === null || t.length < 2 || Ci(n.encoding) === xi || n.language === M || e.indexOf(10) >= 0) return t;
4444
+ if (n === null || n.encoding === null || t.length < 2 || Si(n.encoding) === bi || n.language === M || e.indexOf(10) >= 0) return t;
4449
4445
  let r = 0;
4450
- for (let t = 0; t < e.length && r < bi; t++) e[t] === 13 && r++;
4451
- if (r < bi) return t;
4446
+ for (let t = 0; t < e.length && r < yi; t++) e[t] === 13 && r++;
4447
+ if (r < yi) return t;
4452
4448
  for (let r = 1; r < t.length; r++) {
4453
4449
  let i = t[r];
4454
- if (n.confidence - i.confidence > yi) break;
4455
- if (i.encoding !== null && Ci(i.encoding) === xi) {
4450
+ if (n.confidence - i.confidence > vi) break;
4451
+ if (i.encoding !== null && Si(i.encoding) === bi) {
4456
4452
  let a = /* @__PURE__ */ new Set();
4457
- if (n.language !== null && a.add(n.language), i.language !== null && a.add(i.language), P.confusionPairWinner(e, n.encoding, i.encoding, a) === n.encoding) break;
4458
- return Ei(t, r);
4453
+ if (n.language !== null && a.add(n.language), i.language !== null && a.add(i.language), I.confusionPairWinner(e, n.encoding, i.encoding, a) === n.encoding) break;
4454
+ return F(t, r);
4459
4455
  }
4460
4456
  }
4461
4457
  return t;
4462
4458
  }
4463
- function Mi(e, t) {
4459
+ function Ai(e, t) {
4464
4460
  if (!Be(t, e)) return !1;
4465
4461
  let n = qe[t];
4466
- return n === void 0 || Be(D(n) ?? n, e);
4462
+ return n === void 0 || Be(E(n) ?? n, e);
4467
4463
  }
4468
- function Ni(e, t, n) {
4464
+ function ji(e, t, n) {
4469
4465
  let r = t.length > 0 ? t[0] : null;
4470
4466
  if (n || r === null || r.encoding === null || t.length < 2) return t;
4471
4467
  let i = !1;
@@ -4476,26 +4472,26 @@ function Ni(e, t, n) {
4476
4472
  if (!i || !Ve(r.encoding, e)) return t;
4477
4473
  for (let n = 1; n < t.length; n++) {
4478
4474
  let r = t[n];
4479
- if (r.encoding !== null && Mi(e, r.encoding)) return Ei(t, n);
4475
+ if (r.encoding !== null && Ai(e, r.encoding)) return F(t, n);
4480
4476
  }
4481
4477
  return t;
4482
4478
  }
4483
- Oi + 2 * oi;
4484
- function Pi(e, t, { inputTruncated: n = !1 } = {}) {
4485
- return t = P._promoteSupersetOnDeadHeat(e, t), t = P._preferPrevalentOnDeadHeat(e, t), t = P._arbitrateRareLanguage(t), t = P.resolveConfusionGroups(e, t), t = P._demoteNicheLatin(e, t), t = P._promoteKoi8t(e, t), t = P._promoteMacOnCrLineEndings(e, t), P._preferDecodableOnTie(e, t, n);
4486
- }
4487
- var P = {
4488
- _promoteSupersetOnDeadHeat: Di,
4489
- _preferPrevalentOnDeadHeat: Ti,
4490
- _arbitrateRareLanguage: Ai,
4491
- resolveConfusionGroups: li,
4492
- _demoteNicheLatin: gi,
4493
- _promoteKoi8t: _i,
4494
- _promoteMacOnCrLineEndings: ji,
4495
- _preferDecodableOnTie: Ni,
4496
- confusionPairWinner: qr
4479
+ Ei + 2 * ai;
4480
+ function Mi(e, t, { inputTruncated: n = !1 } = {}) {
4481
+ return t = I._promoteSupersetOnDeadHeat(e, t), t = I._preferPrevalentOnDeadHeat(e, t), t = I._arbitrateRareLanguage(t), t = I.resolveConfusionGroups(e, t), t = I._demoteNicheLatin(e, t), t = I._promoteKoi8t(e, t), t = I._promoteMacOnCrLineEndings(e, t), I._preferDecodableOnTie(e, t, n);
4482
+ }
4483
+ var I = {
4484
+ _promoteSupersetOnDeadHeat: Ti,
4485
+ _preferPrevalentOnDeadHeat: wi,
4486
+ _arbitrateRareLanguage: Oi,
4487
+ resolveConfusionGroups: ci,
4488
+ _demoteNicheLatin: hi,
4489
+ _promoteKoi8t: gi,
4490
+ _promoteMacOnCrLineEndings: ki,
4491
+ _preferDecodableOnTie: ji,
4492
+ confusionPairWinner: Kr
4497
4493
  };
4498
- function Fi(e, t) {
4494
+ function Ni(e, t) {
4499
4495
  if (e.length === 0 || t.length === 0) return [];
4500
4496
  let n = new Tt(e), r = [];
4501
4497
  for (let i of t) {
@@ -4513,8 +4509,8 @@ function Fi(e, t) {
4513
4509
  mimeType: null
4514
4510
  }));
4515
4511
  }
4516
- var Ii = .8, Li = .99, Ri = 6;
4517
- function zi(e) {
4512
+ var Pi = .8, Fi = .99, Ii = 6;
4513
+ function Li(e) {
4518
4514
  if (e.length === 0) return [!0, null];
4519
4515
  let t = 0, n = e.length, r = 0, i = 0;
4520
4516
  for (; t < n;) {
@@ -4536,34 +4532,34 @@ function zi(e) {
4536
4532
  r++, i += o, t += o;
4537
4533
  }
4538
4534
  if (r === 0) return [!0, null];
4539
- let a = i / n, o = Li - Ii;
4535
+ let a = i / n, o = Fi - Pi;
4540
4536
  return [!0, {
4541
4537
  encoding: "utf-8",
4542
- confidence: Math.min(Li, Ii + o * Math.min(a * Ri, 1)),
4538
+ confidence: Math.min(Fi, Pi + o * Math.min(a * Ii, 1)),
4543
4539
  language: null,
4544
4540
  mimeType: null
4545
4541
  }];
4546
4542
  }
4547
- var Bi = 4096, Vi = 16, Hi = 10, Ui = .03, Wi = .5, Gi = .05, Ki = .7, qi = .15, Ji = /* @__PURE__ */ new Set([0, ...jt]), Yi = /^\p{L}$/u, Xi = /^\p{M}$/u, Zi = /^\p{Zs}$/u, Qi = /^\p{C}$/u;
4548
- function $i(e, t) {
4549
- if (t >= qi) return !1;
4550
- for (let t of e) if (!Ji.has(t)) return !1;
4543
+ var Ri = 4096, zi = 16, Bi = 10, Vi = .03, Hi = .5, Ui = .05, Wi = .7, Gi = .15, Ki = /* @__PURE__ */ new Set([0, ...jt]), qi = /^\p{L}$/u, Ji = /^\p{M}$/u, Yi = /^\p{Zs}$/u, Xi = /^\p{C}$/u;
4544
+ function Zi(e, t) {
4545
+ if (t >= Gi) return !1;
4546
+ for (let t of e) if (!Ki.has(t)) return !1;
4551
4547
  return !0;
4552
4548
  }
4553
- function ea(e) {
4554
- let t = e.subarray(0, Bi);
4555
- if (t.length < Hi) return null;
4556
- let n = ta(t);
4557
- return n === null ? na(t) : n;
4549
+ function Qi(e) {
4550
+ let t = e.subarray(0, Ri);
4551
+ if (t.length < Bi) return null;
4552
+ let n = $i(t);
4553
+ return n === null ? ea(t) : n;
4558
4554
  }
4559
- function ta(e) {
4555
+ function $i(e) {
4560
4556
  let t = e.length - e.length % 4;
4561
- if (t < Vi) return null;
4557
+ if (t < zi) return null;
4562
4558
  let n = e.subarray(0, t), r = t / 4, i = 0, a = 0;
4563
4559
  for (let e = 0; e < n.length; e += 4) n[e] === 0 && i++, n[e + 1] === 0 && a++;
4564
4560
  if (i === r && a / r > .5) try {
4565
- let e = oa(n);
4566
- if (e !== null && ia(e)) return {
4561
+ let e = ia(n);
4562
+ if (e !== null && na(e)) return {
4567
4563
  encoding: "utf-32-be",
4568
4564
  confidence: .95,
4569
4565
  language: null,
@@ -4573,8 +4569,8 @@ function ta(e) {
4573
4569
  let o = 0, s = 0;
4574
4570
  for (let e = 0; e < n.length; e += 4) n[e + 3] === 0 && o++, n[e + 2] === 0 && s++;
4575
4571
  if (o === r && s / r > .5) try {
4576
- let e = sa(n);
4577
- if (e !== null && ia(e)) return {
4572
+ let e = aa(n);
4573
+ if (e !== null && na(e)) return {
4578
4574
  encoding: "utf-32-le",
4579
4575
  confidence: .95,
4580
4576
  language: null,
@@ -4583,12 +4579,12 @@ function ta(e) {
4583
4579
  } catch {}
4584
4580
  return null;
4585
4581
  }
4586
- function na(e) {
4587
- let t = Math.min(e.length, Bi);
4588
- if (t -= t % 2, t < Hi) return null;
4582
+ function ea(e) {
4583
+ let t = Math.min(e.length, Ri);
4584
+ if (t -= t % 2, t < Bi) return null;
4589
4585
  let n = t / 2, r = 0, i = 0;
4590
4586
  for (let n = 0; n < t; n += 2) e[n] === 0 && r++, e[n + 1] === 0 && i++;
4591
- let a = r / n, o = i / n, s = o >= Ui && !$i(e.subarray(0, t), o), c = a >= Ui && !$i(e.subarray(0, t), a);
4587
+ let a = r / n, o = i / n, s = o >= Vi && !Zi(e.subarray(0, t), o), c = a >= Vi && !Zi(e.subarray(0, t), a);
4592
4588
  if (!s && !c) return null;
4593
4589
  let l = [{
4594
4590
  name: "utf-16-le",
@@ -4603,45 +4599,41 @@ function na(e) {
4603
4599
  let u = null, d = -2, f = !1, p = 0, m = !1;
4604
4600
  for (let { name: n, qualified: r } of l) {
4605
4601
  let i = Ue(n, e.subarray(0, t));
4606
- if (i === null || (r && (m = !0), !ia(i))) continue;
4602
+ if (i === null || (r && (m = !0), !na(i))) continue;
4607
4603
  p++;
4608
- let a = aa(i);
4609
- a > d + (p > 1 ? Gi : 0) && (d = a, u = n, f = r);
4604
+ let a = ra(i);
4605
+ a > d + (p > 1 ? Ui : 0) && (d = a, u = n, f = r);
4610
4606
  }
4611
4607
  if (u === null) return null;
4612
4608
  let h;
4613
- return h = f ? p === 1 || d >= Wi : m && d >= Wi, h ? {
4609
+ return h = f ? p === 1 || d >= Hi : m && d >= Hi, h ? {
4614
4610
  encoding: u,
4615
4611
  confidence: .95,
4616
4612
  language: null,
4617
4613
  mimeType: null
4618
4614
  } : null;
4619
4615
  }
4620
- var ra = /^[\p{C}\p{Z}]$/u;
4621
- function ia(e) {
4616
+ var ta = /^[\p{C}\p{Z}]$/u;
4617
+ function na(e) {
4622
4618
  if (!e) return !1;
4623
4619
  let t = 0, n = 0;
4624
4620
  for (let r of e) {
4625
4621
  if (t === 500) break;
4626
- if (t++, r === "\n" || r === "\r" || r === " " || r === " ") {
4627
- n++;
4628
- continue;
4629
- }
4630
- ra.test(r) || n++;
4622
+ t++, r === "\n" || r === "\r" || r === " " || r === " " ? n++ : ta.test(r) || n++;
4631
4623
  }
4632
- return n / t > Ki;
4624
+ return n / t > Wi;
4633
4625
  }
4634
- function aa(e, t = 500) {
4626
+ function ra(e, t = 500) {
4635
4627
  let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0;
4636
4628
  for (let c of e) {
4637
4629
  if (n === t) break;
4638
- n++, Yi.test(c) ? (r++, c.charCodeAt(0) < 128 && s++) : Xi.test(c) ? i++ : Zi.test(c) || c === "\n" || c === "\r" || c === " " ? a++ : Qi.test(c) && o++;
4630
+ n++, qi.test(c) ? (r++, c.charCodeAt(0) < 128 && s++) : Ji.test(c) ? i++ : Yi.test(c) || c === "\n" || c === "\r" || c === " " ? a++ : Xi.test(c) && o++;
4639
4631
  }
4640
4632
  if (n === 0 || o / n > .1 || i / n > .2) return -1;
4641
4633
  let c = r / n;
4642
4634
  return c += s / n * .5, n > 20 && a > 0 && (c += .1), c;
4643
4635
  }
4644
- function oa(e) {
4636
+ function ia(e) {
4645
4637
  let t = "";
4646
4638
  for (let n = 0; n < e.length; n += 4) {
4647
4639
  let r = (e[n] << 24 | e[n + 1] << 16 | e[n + 2] << 8 | e[n + 3]) >>> 0;
@@ -4650,7 +4642,7 @@ function oa(e) {
4650
4642
  }
4651
4643
  return t;
4652
4644
  }
4653
- function sa(e) {
4645
+ function aa(e) {
4654
4646
  let t = "";
4655
4647
  for (let n = 0; n < e.length; n += 4) {
4656
4648
  let r = (e[n] | e[n + 1] << 8 | e[n + 2] << 16 | e[n + 3] << 24) >>> 0;
@@ -4659,19 +4651,19 @@ function sa(e) {
4659
4651
  }
4660
4652
  return t;
4661
4653
  }
4662
- function ca(e, t) {
4654
+ function oa(e, t) {
4663
4655
  if (e.length === 0) return t;
4664
4656
  let n = [];
4665
- for (let r of t) ze(r.name, e) && n.push(r);
4657
+ for (let r of t) A(r.name, e) && n.push(r);
4666
4658
  return n;
4667
4659
  }
4668
- var la = Object.freeze({
4660
+ var sa = Object.freeze({
4669
4661
  encoding: null,
4670
4662
  confidence: .95,
4671
4663
  language: null,
4672
4664
  mimeType: "application/octet-stream"
4673
- }), ua = .85, da = 16384;
4674
- function fa(e, t, n) {
4665
+ }), ca = .85, la = 16384;
4666
+ function ua(e, t, n) {
4675
4667
  return t.has(e) ? [{
4676
4668
  encoding: e,
4677
4669
  confidence: .1,
@@ -4679,35 +4671,35 @@ function fa(e, t, n) {
4679
4671
  mimeType: null
4680
4672
  }] : (g(`${n} '${e}' is excluded by include_encodings/exclude_encodings; returning encoding=None`), [{ ...Mt }]);
4681
4673
  }
4682
- function pa(e, t, n, r, i) {
4674
+ function da(e, t, n, r, i) {
4683
4675
  if (e.length <= t.length) return n;
4684
4676
  for (let t = 0; t < n.length; t++) {
4685
4677
  let r = n[t].encoding;
4686
- if (r !== null && ze(r, e)) return t === 0 ? n : n.slice(t);
4678
+ if (r !== null && A(r, e)) return t === 0 ? n : n.slice(t);
4687
4679
  }
4688
- return fa(i, r, "no_match_encoding");
4680
+ return ua(i, r, "no_match_encoding");
4689
4681
  }
4690
- var ma = .05, ha = 2, ga = .35, _a = 4, va = 16;
4691
- function ya(e, t, n) {
4682
+ var fa = .05, pa = 2, ma = .35, ha = 4, ga = 16;
4683
+ function _a(e, t, n) {
4692
4684
  let r = [];
4693
4685
  for (let i of t) {
4694
4686
  if (i.isMultibyte) {
4695
4687
  let t = ar(e, i, n);
4696
- if (n.mbScores.set(i.name, t), t < ma) continue;
4688
+ if (n.mbScores.set(i.name, t), t < fa) continue;
4697
4689
  if (n.nonAsciiCount === null) {
4698
4690
  let t = 0;
4699
4691
  for (let n = 0; n < e.length; n++) e[n] > 127 && t++;
4700
4692
  n.nonAsciiCount = t;
4701
4693
  }
4702
- if (n.nonAsciiCount < ha) continue;
4694
+ if (n.nonAsciiCount < pa) continue;
4703
4695
  let r = or(e, i, n, n.nonAsciiCount);
4704
- if (n.mbCoverage.set(i.name, r), r < ga || n.nonAsciiCount >= va && sr(e, i, n) < _a) continue;
4696
+ if (n.mbCoverage.set(i.name, r), r < ma || n.nonAsciiCount >= ga && sr(e, i, n) < ha) continue;
4705
4697
  }
4706
4698
  r.push(i);
4707
4699
  }
4708
4700
  return r;
4709
4701
  }
4710
- function ba(e, t, n, r) {
4702
+ function va(e, t, n, r) {
4711
4703
  let i = /* @__PURE__ */ new Map();
4712
4704
  for (let e of n) e.isMultibyte && i.set(e.name, e);
4713
4705
  let a = [];
@@ -4715,7 +4707,7 @@ function ba(e, t, n, r) {
4715
4707
  let t = i.get(e);
4716
4708
  t !== void 0 && a.push(t);
4717
4709
  }
4718
- let o = n.filter((e) => !e.isMultibyte), s = Fi(e.subarray(0, da), [...a, ...o]), c = [];
4710
+ let o = n.filter((e) => !e.isMultibyte), s = Ni(e.subarray(0, la), [...a, ...o]), c = [];
4719
4711
  for (let e of s) {
4720
4712
  let t = e.encoding ? r.mbCoverage.get(e.encoding) ?? 0 : 0;
4721
4713
  t >= .95 ? c.push({
@@ -4727,7 +4719,7 @@ function ba(e, t, n, r) {
4727
4719
  }
4728
4720
  return c.sort((e, t) => t.confidence - e.confidence), c;
4729
4721
  }
4730
- function xa(e) {
4722
+ function ya(e) {
4731
4723
  if (e.mimeType !== null) return e;
4732
4724
  let t = e.encoding === null ? "application/octet-stream" : "text/plain";
4733
4725
  return {
@@ -4737,52 +4729,52 @@ function xa(e) {
4737
4729
  mimeType: t
4738
4730
  };
4739
4731
  }
4740
- function Sa(e, t, n, r, i, a, o, s) {
4732
+ function ba(e, t, n, r, i, a, o, s) {
4741
4733
  let c = new Nt();
4742
4734
  s ||= e.length > n, e = e.subarray(0, n);
4743
- let l = Ce(t, r ?? void 0, i ?? void 0), u = new Set(l.map((e) => e.name));
4744
- if (e.length === 0) return fa(o, u, "empty_input_encoding");
4735
+ let l = we(t, r ?? void 0, i ?? void 0), u = new Set(l.map((e) => e.name));
4736
+ if (e.length === 0) return ua(o, u, "empty_input_encoding");
4745
4737
  let d = Xt(e);
4746
4738
  if (d !== null && d.encoding !== null && u.has(d.encoding)) return [d];
4747
- let f = ea(e);
4739
+ let f = Qi(e);
4748
4740
  if (f !== null && f.encoding !== null && u.has(f.encoding)) return [f];
4749
4741
  let p = vn(e);
4750
4742
  if (p !== null && p.encoding !== null && u.has(p.encoding)) return [p];
4751
4743
  let m = Jn(e);
4752
4744
  if (m !== null) return [m];
4753
- let [h, g] = zi(e), _ = Ft(e);
4754
- if (g === null && _ === null && Vt(e, n)) return [{ ...la }];
4745
+ let [h, g] = Li(e), _ = Ft(e);
4746
+ if (g === null && _ === null && Vt(e, n)) return [{ ...sa }];
4755
4747
  let y = xr(e);
4756
4748
  if (y !== null && y.encoding !== null && u.has(y.encoding)) return g !== null && g.encoding !== null && g.encoding !== y.encoding && u.has(g.encoding) ? [{
4757
4749
  encoding: g.encoding,
4758
4750
  confidence: g.confidence,
4759
4751
  language: g.language,
4760
4752
  mimeType: y.mimeType
4761
- }] : (y = wa.promoteMarkupSuperset(e, y, u), [y]);
4753
+ }] : (y = Sa.promoteMarkupSuperset(e, y, u), [y]);
4762
4754
  if (_ !== null && _.encoding !== null && u.has(_.encoding)) return [_];
4763
4755
  if (g !== null && g.encoding !== null && u.has(g.encoding)) return [g];
4764
- let b = e.subarray(0, v), x = s || e.length > b.length, S = wa.filterByValidity(b, l);
4765
- if (!h && e.length > b.length && (S = S.filter((e) => e.name !== "utf-8")), S.length === 0 || (S = wa._gateCjkCandidates(b, S, c), S.length === 0)) return fa(a, u, "no_match_encoding");
4756
+ let b = e.subarray(0, v), x = s || e.length > b.length, S = Sa.filterByValidity(b, l);
4757
+ if (!h && e.length > b.length && (S = S.filter((e) => e.name !== "utf-8")), S.length === 0 || (S = Sa._gateCjkCandidates(b, S, c), S.length === 0)) return ua(a, u, "no_match_encoding");
4766
4758
  let C = [];
4767
4759
  for (let e of S) if (e.isMultibyte) {
4768
4760
  let t = c.mbScores.get(e.name);
4769
4761
  t === void 0 && (t = ar(b, e, c)), t > 0 && C.push([e.name, t]);
4770
4762
  }
4771
- if (C.length > 0 && (C.sort((e, t) => t[1] - e[1]), C[0][1] >= ua)) {
4772
- let t = ba(b, C, S, c);
4773
- if (t.length > 0) return t = wa.postprocessResults(b, t, { inputTruncated: x }), pa(e, b, t, u, a);
4763
+ if (C.length > 0 && (C.sort((e, t) => t[1] - e[1]), C[0][1] >= ca)) {
4764
+ let t = va(b, C, S, c);
4765
+ if (t.length > 0) return t = Sa.postprocessResults(b, t, { inputTruncated: x }), da(e, b, t, u, a);
4774
4766
  }
4775
- let w = Fi(b.subarray(0, da), S);
4776
- return w.length === 0 ? fa(a, u, "no_match_encoding") : (w = wa.postprocessResults(b, w, { inputTruncated: x }), pa(e, b, w, u, a));
4767
+ let w = Ni(b.subarray(0, la), S);
4768
+ return w.length === 0 ? ua(a, u, "no_match_encoding") : (w = Sa.postprocessResults(b, w, { inputTruncated: x }), da(e, b, w, u, a));
4777
4769
  }
4778
- function Ca(e, t, n) {
4779
- let r = n?.maxBytes ?? _, i = Sa(e, t, r, n?.includeEncodings ?? null, n?.excludeEncodings ?? null, n?.noMatchEncoding ?? "cp1252", n?.emptyInputEncoding ?? "utf-8", n?.inputTruncated ?? !1);
4780
- if (i = wa.fillLanguages(e.subarray(0, r), i), i = i.map((e) => e.language === M ? {
4770
+ function xa(e, t, n) {
4771
+ let r = n?.maxBytes ?? _, i = ba(e, t, r, n?.includeEncodings ?? null, n?.excludeEncodings ?? null, n?.noMatchEncoding ?? "cp1252", n?.emptyInputEncoding ?? "utf-8", n?.inputTruncated ?? !1);
4772
+ if (i = Sa.fillLanguages(e.subarray(0, r), i), i = i.map((e) => e.language === M ? {
4781
4773
  encoding: e.encoding,
4782
4774
  confidence: e.confidence,
4783
4775
  language: null,
4784
4776
  mimeType: e.mimeType
4785
- } : e), i = i.map(xa), i.length === 0) throw Error("pipeline must always return at least one result");
4777
+ } : e), i = i.map(ya), i.length === 0) throw Error("pipeline must always return at least one result");
4786
4778
  return i.map((e) => e.confidence > 1 ? {
4787
4779
  encoding: e.encoding,
4788
4780
  confidence: 1,
@@ -4790,20 +4782,20 @@ function Ca(e, t, n) {
4790
4782
  mimeType: e.mimeType
4791
4783
  } : e);
4792
4784
  }
4793
- var wa = {
4794
- filterByValidity: ca,
4785
+ var Sa = {
4786
+ filterByValidity: oa,
4795
4787
  promoteMarkupSuperset: Cr,
4796
- _makeFallbackOrNone: fa,
4797
- _gateCjkCandidates: ya,
4798
- _scoreStructuralCandidates: ba,
4799
- postprocessResults: Pi,
4788
+ _makeFallbackOrNone: ua,
4789
+ _gateCjkCandidates: _a,
4790
+ _scoreStructuralCandidates: va,
4791
+ postprocessResults: Mi,
4800
4792
  fillLanguages: xn,
4801
- _runPipelineCore: Sa
4802
- }, Ta = class {
4793
+ _runPipelineCore: ba
4794
+ }, Ca = class {
4803
4795
  constructor(e = {}) {
4804
4796
  f(this, "_preferSuperset"), f(this, "_compatNames"), f(this, "_encodingEra"), f(this, "_maxBytes"), f(this, "_includeEncodings"), f(this, "_excludeEncodings"), f(this, "_noMatchEncoding"), f(this, "_emptyInputEncoding"), f(this, "_chunks", []), f(this, "_bufferLength", 0), f(this, "_inputTruncated", !1), f(this, "_done", !1), f(this, "_closed", !1), f(this, "_detection", null), f(this, "_buffer", null), e.langFilter ?? ee.ALL;
4805
4797
  let t = e.shouldRenameLegacy ?? !1, n = e.encodingEra ?? w.ALL, r = e.maxBytes ?? _, i = e.preferSuperset ?? !1, a = e.compatNames ?? !0, o = e.includeEncodings ?? null, s = e.excludeEncodings ?? null, c = e.noMatchEncoding ?? "cp1252", l = e.emptyInputEncoding ?? "utf-8";
4806
- ee.ALL, this._preferSuperset = b(t, i), this._compatNames = a, y(r), this._encodingEra = n, this._maxBytes = r, this._includeEncodings = De(o, "include_encodings"), this._excludeEncodings = De(s, "exclude_encodings"), this._noMatchEncoding = Ee(c, "no_match_encoding"), this._emptyInputEncoding = Ee(l, "empty_input_encoding");
4798
+ ee.ALL, this._preferSuperset = b(t, i), this._compatNames = a, y(r), this._encodingEra = n, this._maxBytes = r, this._includeEncodings = Oe(o, "include_encodings"), this._excludeEncodings = Oe(s, "exclude_encodings"), this._noMatchEncoding = De(c, "no_match_encoding"), this._emptyInputEncoding = De(l, "empty_input_encoding");
4807
4799
  }
4808
4800
  feed(e) {
4809
4801
  if (this._closed) throw Error("feed() called after close() without reset()");
@@ -4824,7 +4816,7 @@ var wa = {
4824
4816
  let e = new Uint8Array(this._bufferLength), t = 0;
4825
4817
  for (let n of this._chunks) e.set(n, t), t += n.length;
4826
4818
  this._buffer = e;
4827
- let n = Ca(e, this._encodingEra, {
4819
+ let n = xa(e, this._encodingEra, {
4828
4820
  maxBytes: this._maxBytes,
4829
4821
  inputTruncated: this._inputTruncated,
4830
4822
  includeEncodings: this._includeEncodings,
@@ -4848,32 +4840,32 @@ var wa = {
4848
4840
  return this._preferSuperset && Ke(e, this._buffer ?? void 0), this._compatNames && Je(e), e;
4849
4841
  }
4850
4842
  };
4851
- f(Ta, "MINIMUM_THRESHOLD", C), f(Ta, "LEGACY_MAP", We);
4852
- function Ea(e, t = {}) {
4843
+ f(Ca, "MINIMUM_THRESHOLD", C), f(Ca, "LEGACY_MAP", We);
4844
+ function wa(e, t = {}) {
4853
4845
  let n = t.shouldRenameLegacy ?? !1, r = t.encodingEra ?? w.ALL;
4854
4846
  t.chunkSize;
4855
4847
  let i = t.maxBytes ?? _, a = t.preferSuperset ?? !1, o = t.compatNames ?? !0, s = t.includeEncodings ?? null, c = t.excludeEncodings ?? null, l = t.noMatchEncoding ?? "cp1252", u = t.emptyInputEncoding ?? "utf-8";
4856
4848
  y(i);
4857
- let d = b(n, a), f = { ...Ca(e, r, {
4849
+ let d = b(n, a), f = { ...xa(e, r, {
4858
4850
  maxBytes: i,
4859
- includeEncodings: De(s, "include_encodings"),
4860
- excludeEncodings: De(c, "exclude_encodings"),
4861
- noMatchEncoding: Ee(l, "no_match_encoding"),
4862
- emptyInputEncoding: Ee(u, "empty_input_encoding")
4851
+ includeEncodings: Oe(s, "include_encodings"),
4852
+ excludeEncodings: Oe(c, "exclude_encodings"),
4853
+ noMatchEncoding: De(l, "no_match_encoding"),
4854
+ emptyInputEncoding: De(u, "empty_input_encoding")
4863
4855
  })[0] };
4864
4856
  return d && Ke(f, e.subarray(0, i)), o && Je(f), f;
4865
4857
  }
4866
- function Da(e, t = {}) {
4858
+ function Ta(e, t = {}) {
4867
4859
  let n = t.ignoreThreshold ?? !1, r = t.shouldRenameLegacy ?? !1, i = t.encodingEra ?? w.ALL;
4868
4860
  t.chunkSize;
4869
4861
  let a = t.maxBytes ?? _, o = t.preferSuperset ?? !1, s = t.compatNames ?? !0, c = t.includeEncodings ?? null, l = t.excludeEncodings ?? null, u = t.noMatchEncoding ?? "cp1252", d = t.emptyInputEncoding ?? "utf-8";
4870
4862
  y(a);
4871
- let f = b(r, o), p = Ca(e, i, {
4863
+ let f = b(r, o), p = xa(e, i, {
4872
4864
  maxBytes: a,
4873
- includeEncodings: De(c, "include_encodings"),
4874
- excludeEncodings: De(l, "exclude_encodings"),
4875
- noMatchEncoding: Ee(u, "no_match_encoding"),
4876
- emptyInputEncoding: Ee(d, "empty_input_encoding")
4865
+ includeEncodings: Oe(c, "include_encodings"),
4866
+ excludeEncodings: Oe(l, "exclude_encodings"),
4867
+ noMatchEncoding: De(u, "no_match_encoding"),
4868
+ emptyInputEncoding: De(d, "empty_input_encoding")
4877
4869
  }).map((e) => ({ ...e }));
4878
4870
  if (!n) {
4879
4871
  let e = p.filter((e) => e.confidence > C);
@@ -4883,7 +4875,7 @@ function Da(e, t = {}) {
4883
4875
  for (let e of p) f && Ke(e, m), s && Je(e);
4884
4876
  return p.sort((e, t) => t.confidence - e.confidence), p;
4885
4877
  }
4886
- function Oa(e) {
4878
+ function Ea(e) {
4887
4879
  if (typeof e == "string") {
4888
4880
  let t = new Uint8Array(e.length);
4889
4881
  for (let n = 0; n < e.length; n++) t[n] = e.charCodeAt(n) & 255;
@@ -4891,11 +4883,11 @@ function Oa(e) {
4891
4883
  }
4892
4884
  return e instanceof Uint8Array ? e : ArrayBuffer.isView(e) ? new Uint8Array(e.buffer, e.byteOffset, e.byteLength) : new Uint8Array(e);
4893
4885
  }
4894
- function ka(e, t = {}) {
4895
- let n = Oa(e), r = {
4886
+ function Da(e, t = {}) {
4887
+ let n = Ea(e), r = {
4896
4888
  includeEncodings: t.detectEncodings ?? null,
4897
4889
  excludeEncodings: t.excludeEncodings ?? null
4898
- }, i = t.minimumThreshold !== void 0, a = t.minimumThreshold ?? C, o = m() || i, s = Da(n, {
4890
+ }, i = t.minimumThreshold !== void 0, a = t.minimumThreshold ?? C, o = m() || i, s = Ta(n, {
4899
4891
  ...r,
4900
4892
  ignoreThreshold: o
4901
4893
  });
@@ -4903,9 +4895,8 @@ function ka(e, t = {}) {
4903
4895
  let c = s.filter((e) => e.confidence >= a);
4904
4896
  return c.length > 0 ? c : s;
4905
4897
  }
4906
- //#endregion
4907
- //#region node_modules/@borewit/text-codec/lib/index.js
4908
- var Aa = {
4898
+ // node_modules/@borewit/text-codec/lib/index.js
4899
+ var Oa = {
4909
4900
  128: "€",
4910
4901
  130: "‚",
4911
4902
  131: "ƒ",
@@ -4933,215 +4924,217 @@ var Aa = {
4933
4924
  156: "œ",
4934
4925
  158: "ž",
4935
4926
  159: "Ÿ"
4936
- }, ja = {};
4937
- for (let [e, t] of Object.entries(Aa)) ja[t] = Number.parseInt(e, 10);
4938
- var Ma;
4939
- function Na() {
4940
- if (globalThis.TextDecoder !== void 0) return Ma ??= new globalThis.TextDecoder("utf-8");
4941
- }
4942
- var Pa = 32768, F = 65533;
4943
- function Fa(e, t = "utf-8") {
4927
+ }, ka = {};
4928
+ for (let [e, t] of Object.entries(Oa)) ka[t] = Number.parseInt(e, 10);
4929
+ var Aa;
4930
+ function ja() {
4931
+ if (globalThis.TextDecoder !== void 0) return Aa ??= new globalThis.TextDecoder("utf-8");
4932
+ }
4933
+ var Ma = 32768, L = 65533;
4934
+ function Na(e, t = "utf-8") {
4944
4935
  switch (t.toLowerCase()) {
4945
4936
  case "utf-8":
4946
4937
  case "utf8": {
4947
- let t = Na();
4948
- return t ? t.decode(e) : Ra(e);
4938
+ let t = ja();
4939
+ return t ? t.decode(e) : Ia(e);
4949
4940
  }
4950
- case "utf-16le": return za(e);
4941
+ case "utf-16le": return La(e);
4951
4942
  case "us-ascii":
4952
- case "ascii": return Ba(e);
4943
+ case "ascii": return Ra(e);
4953
4944
  case "latin1":
4954
- case "iso-8859-1": return Va(e);
4955
- case "windows-1252": return Ha(e);
4945
+ case "iso-8859-1": return za(e);
4946
+ case "windows-1252": return Ba(e);
4956
4947
  default: throw RangeError(`Encoding '${t}' not supported`);
4957
4948
  }
4958
4949
  }
4959
- function Ia(e, t) {
4950
+ function Pa(e, t) {
4960
4951
  t.length !== 0 && (e.push(String.fromCharCode.apply(null, t)), t.length = 0);
4961
4952
  }
4962
- function I(e, t, n) {
4963
- t.push(n), t.length >= Pa && Ia(e, t);
4953
+ function R(e, t, n) {
4954
+ t.push(n), t.length >= Ma && Pa(e, t);
4964
4955
  }
4965
- function La(e, t, n) {
4966
- if (n <= 65535) {
4967
- I(e, t, n);
4968
- return;
4969
- }
4970
- n -= 65536, I(e, t, 55296 + (n >> 10)), I(e, t, 56320 + (n & 1023));
4956
+ function Fa(e, t, n) {
4957
+ n <= 65535 ? R(e, t, n) : (n -= 65536, R(e, t, 55296 + (n >> 10)), R(e, t, 56320 + (n & 1023)));
4971
4958
  }
4972
- function Ra(e) {
4959
+ function Ia(e) {
4973
4960
  let t = [], n = [], r = 0;
4974
4961
  for (e.length >= 3 && e[0] === 239 && e[1] === 187 && e[2] === 191 && (r = 3); r < e.length;) {
4975
4962
  let i = e[r];
4976
4963
  if (i <= 127) {
4977
- I(t, n, i), r++;
4964
+ R(t, n, i), r++;
4978
4965
  continue;
4979
4966
  }
4980
4967
  if (i < 194 || i > 244) {
4981
- I(t, n, F), r++;
4968
+ R(t, n, L), r++;
4982
4969
  continue;
4983
4970
  }
4984
4971
  if (i <= 223) {
4985
4972
  if (r + 1 >= e.length) {
4986
- I(t, n, F), r++;
4973
+ R(t, n, L), r++;
4987
4974
  continue;
4988
4975
  }
4989
4976
  let a = e[r + 1];
4990
4977
  if ((a & 192) != 128) {
4991
- I(t, n, F), r++;
4978
+ R(t, n, L), r++;
4992
4979
  continue;
4993
4980
  }
4994
- I(t, n, (i & 31) << 6 | a & 63), r += 2;
4981
+ R(t, n, (i & 31) << 6 | a & 63), r += 2;
4995
4982
  continue;
4996
4983
  }
4997
4984
  if (i <= 239) {
4998
4985
  if (r + 2 >= e.length) {
4999
- I(t, n, F), r++;
4986
+ R(t, n, L), r++;
5000
4987
  continue;
5001
4988
  }
5002
4989
  let a = e[r + 1], o = e[r + 2];
5003
4990
  if ((a & 192) != 128 || (o & 192) != 128 || i === 224 && a < 160 || i === 237 && a >= 160) {
5004
- I(t, n, F), r++;
4991
+ R(t, n, L), r++;
5005
4992
  continue;
5006
4993
  }
5007
- I(t, n, (i & 15) << 12 | (a & 63) << 6 | o & 63), r += 3;
4994
+ R(t, n, (i & 15) << 12 | (a & 63) << 6 | o & 63), r += 3;
5008
4995
  continue;
5009
4996
  }
5010
4997
  if (r + 3 >= e.length) {
5011
- I(t, n, F), r++;
4998
+ R(t, n, L), r++;
5012
4999
  continue;
5013
5000
  }
5014
5001
  let a = e[r + 1], o = e[r + 2], s = e[r + 3];
5015
- if ((a & 192) != 128 || (o & 192) != 128 || (s & 192) != 128 || i === 240 && a < 144 || i === 244 && a > 143) {
5016
- I(t, n, F), r++;
5017
- continue;
5018
- }
5019
- La(t, n, (i & 7) << 18 | (a & 63) << 12 | (o & 63) << 6 | s & 63), r += 4;
5002
+ (a & 192) != 128 || (o & 192) != 128 || (s & 192) != 128 || i === 240 && a < 144 || i === 244 && a > 143 ? (R(t, n, L), r++) : (Fa(t, n, (i & 7) << 18 | (a & 63) << 12 | (o & 63) << 6 | s & 63), r += 4);
5020
5003
  }
5021
- return Ia(t, n), t.join("");
5004
+ return Pa(t, n), t.join("");
5022
5005
  }
5023
- function za(e) {
5006
+ function La(e) {
5024
5007
  let t = [], n = [], r = e.length, i = 0;
5025
5008
  for (; i + 1 < r;) {
5026
5009
  let a = e[i] | e[i + 1] << 8;
5027
5010
  if (i += 2, a >= 55296 && a <= 56319) {
5028
5011
  if (i + 1 < r) {
5029
5012
  let r = e[i] | e[i + 1] << 8;
5030
- r >= 56320 && r <= 57343 ? (I(t, n, a), I(t, n, r), i += 2) : I(t, n, F);
5031
- } else I(t, n, F);
5032
- continue;
5033
- }
5034
- if (a >= 56320 && a <= 57343) {
5035
- I(t, n, F);
5036
- continue;
5037
- }
5038
- I(t, n, a);
5013
+ r >= 56320 && r <= 57343 ? (R(t, n, a), R(t, n, r), i += 2) : R(t, n, L);
5014
+ } else R(t, n, L);
5015
+ } else a >= 56320 && a <= 57343 ? R(t, n, L) : R(t, n, a);
5039
5016
  }
5040
- return i < r && I(t, n, F), Ia(t, n), t.join("");
5017
+ return i < r && R(t, n, L), Pa(t, n), t.join("");
5041
5018
  }
5042
- function Ba(e) {
5019
+ function Ra(e) {
5043
5020
  let t = [];
5044
- for (let n = 0; n < e.length; n += Pa) {
5045
- let r = Math.min(e.length, n + Pa), i = Array(r - n);
5021
+ for (let n = 0; n < e.length; n += Ma) {
5022
+ let r = Math.min(e.length, n + Ma), i = Array(r - n);
5046
5023
  for (let t = n, a = 0; t < r; t++, a++) i[a] = e[t] & 127;
5047
5024
  t.push(String.fromCharCode.apply(null, i));
5048
5025
  }
5049
5026
  return t.join("");
5050
5027
  }
5051
- function Va(e) {
5028
+ function za(e) {
5052
5029
  let t = [];
5053
- for (let n = 0; n < e.length; n += Pa) {
5054
- let r = Math.min(e.length, n + Pa), i = Array(r - n);
5030
+ for (let n = 0; n < e.length; n += Ma) {
5031
+ let r = Math.min(e.length, n + Ma), i = Array(r - n);
5055
5032
  for (let t = n, a = 0; t < r; t++, a++) i[a] = e[t];
5056
5033
  t.push(String.fromCharCode.apply(null, i));
5057
5034
  }
5058
5035
  return t.join("");
5059
5036
  }
5060
- function Ha(e) {
5037
+ function Ba(e) {
5061
5038
  let t = [], n = "";
5062
5039
  for (let r = 0; r < e.length; r++) {
5063
- let i = e[r], a = i >= 128 && i <= 159 ? Aa[i] : void 0;
5064
- n += a ?? String.fromCharCode(i), n.length >= Pa && (t.push(n), n = "");
5040
+ let i = e[r], a = i >= 128 && i <= 159 ? Oa[i] : void 0;
5041
+ n += a ?? String.fromCharCode(i), n.length >= Ma && (t.push(n), n = "");
5065
5042
  }
5066
5043
  return n && t.push(n), t.join("");
5067
5044
  }
5068
- //#endregion
5069
- //#region node_modules/token-types/lib/index.js
5070
- function L(e) {
5045
+ // node_modules/token-types/lib/index.js
5046
+ function z(e) {
5071
5047
  return new DataView(e.buffer, e.byteOffset);
5072
5048
  }
5073
- var Ua = {
5049
+ var Va = {
5074
5050
  len: 1,
5075
5051
  get(e, t) {
5076
- return L(e).getUint8(t);
5052
+ return z(e).getUint8(t);
5077
5053
  },
5078
5054
  put(e, t, n) {
5079
- return L(e).setUint8(t, n), t + 1;
5055
+ return z(e).setUint8(t, n), t + 1;
5080
5056
  }
5081
- }, R = {
5057
+ }, B = {
5082
5058
  len: 2,
5083
5059
  get(e, t) {
5084
- return L(e).getUint16(t, !0);
5060
+ return z(e).getUint16(t, !0);
5085
5061
  },
5086
5062
  put(e, t, n) {
5087
- return L(e).setUint16(t, n, !0), t + 2;
5063
+ return z(e).setUint16(t, n, !0), t + 2;
5088
5064
  }
5089
- }, Wa = {
5065
+ }, Ha = {
5090
5066
  len: 2,
5091
5067
  get(e, t) {
5092
- return L(e).getUint16(t);
5068
+ return z(e).getUint16(t);
5093
5069
  },
5094
5070
  put(e, t, n) {
5095
- return L(e).setUint16(t, n), t + 2;
5071
+ return z(e).setUint16(t, n), t + 2;
5096
5072
  }
5097
- }, z = {
5073
+ }, V = {
5098
5074
  len: 4,
5099
5075
  get(e, t) {
5100
- return L(e).getUint32(t, !0);
5076
+ return z(e).getUint32(t, !0);
5101
5077
  },
5102
5078
  put(e, t, n) {
5103
- return L(e).setUint32(t, n, !0), t + 4;
5079
+ return z(e).setUint32(t, n, !0), t + 4;
5104
5080
  }
5105
- }, Ga = {
5081
+ }, Ua = {
5106
5082
  len: 4,
5107
5083
  get(e, t) {
5108
- return L(e).getUint32(t);
5084
+ return z(e).getUint32(t);
5109
5085
  },
5110
5086
  put(e, t, n) {
5111
- return L(e).setUint32(t, n), t + 4;
5087
+ return z(e).setUint32(t, n), t + 4;
5112
5088
  }
5113
- }, Ka = {
5089
+ }, Wa = {
5114
5090
  len: 4,
5115
5091
  get(e, t) {
5116
- return L(e).getInt32(t);
5092
+ return z(e).getInt32(t);
5117
5093
  },
5118
5094
  put(e, t, n) {
5119
- return L(e).setInt32(t, n), t + 4;
5095
+ return z(e).setInt32(t, n), t + 4;
5120
5096
  }
5121
- }, qa = {
5097
+ }, Ga = {
5122
5098
  len: 8,
5123
5099
  get(e, t) {
5124
- return L(e).getBigUint64(t, !0);
5100
+ return z(e).getBigUint64(t, !0);
5125
5101
  },
5126
5102
  put(e, t, n) {
5127
- return L(e).setBigUint64(t, n, !0), t + 8;
5103
+ return z(e).setBigUint64(t, n, !0), t + 8;
5128
5104
  }
5129
- }, B = class {
5105
+ }, H = class {
5130
5106
  constructor(e, t) {
5131
5107
  this.len = e, this.encoding = t;
5132
5108
  }
5133
5109
  get(e, t = 0) {
5134
- return Fa(e.subarray(t, t + this.len), this.encoding);
5110
+ return Na(e.subarray(t, t + this.len), this.encoding);
5135
5111
  }
5136
- }, Ja = "End-Of-Stream", V = class extends Error {
5112
+ }, Ka = "End-Of-Stream", U = class extends Error {
5137
5113
  constructor() {
5138
- super(Ja), this.name = "EndOfStreamError";
5114
+ super(Ka), this.name = "EndOfStreamError";
5139
5115
  }
5140
- }, Ya = class extends Error {
5116
+ }, qa = class extends Error {
5141
5117
  constructor(e = "The operation was aborted") {
5142
5118
  super(e), this.name = "AbortError";
5143
5119
  }
5144
- }, Xa = class {
5120
+ };
5121
+ // node_modules/strtok3/lib/AbortSignal.js
5122
+ function Ja(e) {
5123
+ if (e?.aborted) throw new qa();
5124
+ }
5125
+ // node_modules/strtok3/lib/BufferSizeError.js
5126
+ var Ya = class extends RangeError {
5127
+ constructor(e, t) {
5128
+ super(`Requested buffer size ${e} exceeds maxBufferSize ${t}`), this.requestedSize = e, this.maxBufferSize = t, this.name = "BufferSizeError";
5129
+ }
5130
+ };
5131
+ function Xa(e) {
5132
+ let t = e?.maxBufferSize ?? Infinity;
5133
+ if (t !== Infinity && (!Number.isSafeInteger(t) || t <= 0)) throw RangeError("maxBufferSize must be a positive safe integer or Infinity");
5134
+ return t;
5135
+ }
5136
+ // node_modules/strtok3/lib/stream/AbstractStreamReader.js
5137
+ var Za = class {
5145
5138
  constructor() {
5146
5139
  this.endOfStream = !1, this.interrupted = !1, this.peekQueue = [];
5147
5140
  }
@@ -5152,7 +5145,7 @@ var Ua = {
5152
5145
  async read(e, t = !1) {
5153
5146
  if (e.length === 0) return 0;
5154
5147
  let n = this.readFromPeekBuffer(e);
5155
- if (this.endOfStream || (n += await this.readRemainderFromStream(e.subarray(n), t)), n === 0 && !t) throw new V();
5148
+ if (this.endOfStream || (n += await this.readRemainderFromStream(e.subarray(n), t)), n === 0 && !t) throw new U();
5156
5149
  return n;
5157
5150
  }
5158
5151
  readFromPeekBuffer(e) {
@@ -5168,15 +5161,15 @@ var Ua = {
5168
5161
  async readRemainderFromStream(e, t) {
5169
5162
  let n = 0;
5170
5163
  for (; n < e.length && !this.endOfStream;) {
5171
- if (this.interrupted) throw new Ya();
5164
+ if (this.interrupted) throw new qa();
5172
5165
  let r = await this.readFromStream(e.subarray(n), t);
5173
5166
  if (r === 0) break;
5174
5167
  n += r;
5175
5168
  }
5176
- if (!t && n < e.length) throw new V();
5169
+ if (!t && n < e.length) throw new U();
5177
5170
  return n;
5178
5171
  }
5179
- }, Za = class extends Xa {
5172
+ }, Qa = class extends Za {
5180
5173
  constructor(e) {
5181
5174
  super(), this.reader = e;
5182
5175
  }
@@ -5186,13 +5179,13 @@ var Ua = {
5186
5179
  async close() {
5187
5180
  this.reader.releaseLock();
5188
5181
  }
5189
- }, Qa = class extends Za {
5182
+ }, $a = class extends Qa {
5190
5183
  async readFromStream(e, t) {
5191
5184
  if (e.length === 0) return 0;
5192
5185
  let n = await this.reader.read(new Uint8Array(e.length), { min: t ? void 0 : e.length });
5193
5186
  return n.done && (this.endOfStream = n.done), n.value ? (e.set(n.value), n.value.length) : 0;
5194
5187
  }
5195
- }, $a = class extends Xa {
5188
+ }, eo = class extends Za {
5196
5189
  constructor(e) {
5197
5190
  super(), this.reader = e, this.buffer = null;
5198
5191
  }
@@ -5211,131 +5204,129 @@ var Ua = {
5211
5204
  }
5212
5205
  t.value && (n += this.writeChunk(e.subarray(n), t.value));
5213
5206
  }
5214
- if (!t && n === 0 && this.endOfStream) throw new V();
5207
+ if (!t && n === 0 && this.endOfStream) throw new U();
5215
5208
  return n;
5216
5209
  }
5217
5210
  abort() {
5218
5211
  return this.interrupted = !0, this.reader.cancel();
5219
5212
  }
5220
5213
  async close() {
5221
- await this.abort(), this.reader.releaseLock();
5214
+ try {
5215
+ await this.abort();
5216
+ } finally {
5217
+ this.reader.releaseLock();
5218
+ }
5222
5219
  }
5223
5220
  };
5224
- //#endregion
5225
- //#region node_modules/strtok3/lib/stream/WebStreamReaderFactory.js
5226
- function eo(e) {
5221
+ // node_modules/strtok3/lib/stream/WebStreamReaderFactory.js
5222
+ function to(e) {
5227
5223
  try {
5228
5224
  let t = e.getReader({ mode: "byob" });
5229
- return t instanceof ReadableStreamDefaultReader ? new $a(t) : new Qa(t);
5225
+ return t instanceof ReadableStreamDefaultReader ? new eo(t) : new $a(t);
5230
5226
  } catch (t) {
5231
- if (t instanceof TypeError) return new $a(e.getReader());
5227
+ if (t instanceof TypeError) return new eo(e.getReader());
5232
5228
  throw t;
5233
5229
  }
5234
5230
  }
5235
- //#endregion
5236
- //#region node_modules/strtok3/lib/AbstractTokenizer.js
5237
- var to = class {
5231
+ // node_modules/strtok3/lib/AbstractTokenizer.js
5232
+ var no = class {
5238
5233
  constructor(e) {
5239
- this.numBuffer = /* @__PURE__ */ new Uint8Array(8), this.position = 0, this.onClose = e?.onClose, e?.abortSignal && e.abortSignal.addEventListener("abort", () => {
5240
- this.abort();
5234
+ this.numBuffer = /* @__PURE__ */ new Uint8Array(8), this.position = 0, this.maxBufferSize = Xa(e), Ja(e?.abortSignal), this.onClose = e?.onClose, e?.abortSignal && this.addAbortListener(e.abortSignal, () => {
5235
+ this.abort().catch(() => {});
5241
5236
  });
5242
5237
  }
5238
+ addAbortListener(e, t) {
5239
+ this.abortSignal = e, this.abortListener = t, e.addEventListener("abort", t, { once: !0 });
5240
+ }
5241
+ removeAbortListener() {
5242
+ this.abortListener && this.abortSignal?.removeEventListener("abort", this.abortListener), this.abortSignal = void 0, this.abortListener = void 0;
5243
+ }
5243
5244
  async readToken(e, t = this.position) {
5245
+ this.validateTokenRead(e.len, t);
5244
5246
  let n = new Uint8Array(e.len);
5245
- if (await this.readBuffer(n, { position: t }) < e.len) throw new V();
5247
+ if (await this.readBuffer(n, { position: t }) < e.len) throw new U();
5246
5248
  return e.get(n, 0);
5247
5249
  }
5248
5250
  async peekToken(e, t = this.position) {
5249
- let n = new Uint8Array(e.len);
5250
- if (await this.peekBuffer(n, { position: t }) < e.len) throw new V();
5251
- return e.get(n, 0);
5251
+ let n = t ?? this.position;
5252
+ this.validateTokenRead(e.len, n, !0);
5253
+ let r = new Uint8Array(e.len);
5254
+ if (await this.peekBuffer(r, { position: n }) < e.len) throw new U();
5255
+ return e.get(r, 0);
5252
5256
  }
5253
5257
  async readNumber(e) {
5254
- if (await this.readBuffer(this.numBuffer, { length: e.len }) < e.len) throw new V();
5258
+ if (await this.readBuffer(this.numBuffer, { length: e.len }) < e.len) throw new U();
5255
5259
  return e.get(this.numBuffer, 0);
5256
5260
  }
5257
5261
  async peekNumber(e) {
5258
- if (await this.peekBuffer(this.numBuffer, { length: e.len }) < e.len) throw new V();
5262
+ if (await this.peekBuffer(this.numBuffer, { length: e.len }) < e.len) throw new U();
5259
5263
  return e.get(this.numBuffer, 0);
5260
5264
  }
5261
5265
  async ignore(e) {
5262
5266
  if (e < 0) throw RangeError("ignore length must be ≥ 0 bytes");
5263
- if (this.fileInfo.size !== void 0) {
5267
+ if (this.validateLength(e, "ignore length"), this.validateLength(this.position + e, "end position"), this.fileInfo.size !== void 0) {
5264
5268
  let t = this.fileInfo.size - this.position;
5265
5269
  if (e > t) return this.position += t, t;
5266
5270
  }
5267
5271
  return this.position += e, e;
5268
5272
  }
5269
5273
  async close() {
5270
- await this.abort(), await this.onClose?.();
5274
+ this.removeAbortListener(), await this.abort(), await this.onClose?.();
5275
+ }
5276
+ validateLength(e, t) {
5277
+ if (!Number.isSafeInteger(e) || e < 0) throw RangeError(`${t} must be a non-negative safe integer`);
5278
+ }
5279
+ validateBufferSize(e) {
5280
+ if (this.validateLength(e, "buffer length"), e > this.maxBufferSize) throw new Ya(e, this.maxBufferSize);
5281
+ }
5282
+ validateTokenRead(e, t, n = !1) {
5283
+ if (this.validateBufferSize(e), this.validateLength(t, "position"), this.validateLength(t + e, "end position"), !this.supportsRandomAccess() && t < this.position) throw Error("`options.position` must be equal or greater than `tokenizer.position`");
5284
+ if (n && !this.supportsRandomAccess() && this.validateBufferSize(e + t - this.position), this.fileInfo.size !== void 0 && e > this.fileInfo.size - t) throw new U();
5271
5285
  }
5272
5286
  normalizeOptions(e, t) {
5273
- if (!this.supportsRandomAccess() && t && t.position !== void 0 && t.position < this.position) throw Error("`options.position` must be equal or greater than `tokenizer.position`");
5287
+ let n = t?.length ?? e.length, r = t?.position ?? this.position;
5288
+ if (this.validateLength(n, "length"), this.validateLength(r, "position"), this.validateLength(r + n, "end position"), n > e.length) throw RangeError("length must not exceed the target buffer length");
5289
+ if (!this.supportsRandomAccess() && r < this.position) throw Error("`options.position` must be equal or greater than `tokenizer.position`");
5274
5290
  return {
5275
- mayBeLess: !1,
5276
- offset: 0,
5277
- length: e.length,
5278
- position: this.position,
5279
- ...t
5291
+ length: n,
5292
+ position: r,
5293
+ mayBeLess: t?.mayBeLess ?? !1
5280
5294
  };
5281
5295
  }
5282
5296
  abort() {
5283
- return Promise.resolve();
5297
+ return this.removeAbortListener(), Promise.resolve();
5284
5298
  }
5285
- }, no = 256e3, ro = class extends to {
5299
+ }, ro = class extends no {
5286
5300
  constructor(e, t) {
5287
- super(t), this.streamReader = e, this.fileInfo = t?.fileInfo ?? {};
5301
+ super(t), this.blob = e, this.fileInfo = {
5302
+ ...t?.fileInfo ?? {},
5303
+ size: e.size,
5304
+ mimeType: e.type
5305
+ };
5288
5306
  }
5289
5307
  async readBuffer(e, t) {
5290
- let n = this.normalizeOptions(e, t), r = n.position - this.position;
5291
- if (r > 0) return await this.ignore(r), this.readBuffer(e, t);
5292
- if (r < 0) throw Error("`options.position` must be equal or greater than `tokenizer.position`");
5293
- if (n.length === 0) return 0;
5294
- let i = await this.streamReader.read(e.subarray(0, n.length), n.mayBeLess);
5295
- if (this.position += i, (!t || !t.mayBeLess) && i < n.length) throw new V();
5296
- return i;
5308
+ let n = this.normalizeOptions(e, t), r = await this.peekBuffer(e, n);
5309
+ return this.position = n.position + r, r;
5297
5310
  }
5298
5311
  async peekBuffer(e, t) {
5299
- let n = this.normalizeOptions(e, t), r = 0;
5300
- if (n.position) {
5301
- let t = n.position - this.position;
5302
- if (t > 0) {
5303
- let i = new Uint8Array(n.length + t);
5304
- return r = await this.peekBuffer(i, { mayBeLess: n.mayBeLess }), e.set(i.subarray(t)), r - t;
5305
- }
5306
- if (t < 0) throw Error("Cannot peek from a negative offset in a stream");
5307
- }
5308
- if (n.length > 0) {
5309
- try {
5310
- r = await this.streamReader.peek(e.subarray(0, n.length), n.mayBeLess);
5311
- } catch (e) {
5312
- if (t?.mayBeLess && e instanceof V) return 0;
5313
- throw e;
5314
- }
5315
- if (!n.mayBeLess && r < n.length) throw new V();
5312
+ let n = this.normalizeOptions(e, t), r = Math.max(0, Math.min(this.blob.size - n.position, n.length));
5313
+ if (!n.mayBeLess && r < n.length) throw new U();
5314
+ for (let t = 0; t < r;) {
5315
+ let i = Math.min(this.maxBufferSize, r - t), a = n.position + t, o = await this.blob.slice(a, a + i).arrayBuffer();
5316
+ e.set(new Uint8Array(o), t), t += i;
5316
5317
  }
5317
5318
  return r;
5318
5319
  }
5319
- async ignore(e) {
5320
- if (e < 0) throw RangeError("ignore length must be ≥ 0 bytes");
5321
- let t = Math.min(no, e), n = new Uint8Array(t), r = 0;
5322
- for (; r < e;) {
5323
- let i = e - r, a = await this.readBuffer(n, { length: Math.min(t, i) });
5324
- if (a < 0) return a;
5325
- r += a;
5326
- }
5327
- return r;
5328
- }
5329
- abort() {
5330
- return this.streamReader.abort();
5331
- }
5332
- async close() {
5333
- return this.streamReader.close();
5320
+ close() {
5321
+ return super.close();
5334
5322
  }
5335
5323
  supportsRandomAccess() {
5336
- return !1;
5324
+ return !0;
5325
+ }
5326
+ setPosition(e) {
5327
+ this.position = e;
5337
5328
  }
5338
- }, io = class extends to {
5329
+ }, io = class extends no {
5339
5330
  constructor(e, t) {
5340
5331
  super(t), this.uint8Array = e, this.fileInfo = {
5341
5332
  ...t?.fileInfo ?? {},
@@ -5343,13 +5334,12 @@ var to = class {
5343
5334
  };
5344
5335
  }
5345
5336
  async readBuffer(e, t) {
5346
- t?.position && (this.position = t.position);
5347
- let n = await this.peekBuffer(e, t);
5348
- return this.position += n, n;
5337
+ let n = this.normalizeOptions(e, t), r = await this.peekBuffer(e, n);
5338
+ return this.position = n.position + r, r;
5349
5339
  }
5350
5340
  async peekBuffer(e, t) {
5351
- let n = this.normalizeOptions(e, t), r = Math.min(this.uint8Array.length - n.position, n.length);
5352
- if (!n.mayBeLess && r < n.length) throw new V();
5341
+ let n = this.normalizeOptions(e, t), r = Math.max(0, Math.min(this.uint8Array.length - n.position, n.length));
5342
+ if (!n.mayBeLess && r < n.length) throw new U();
5353
5343
  return e.set(this.uint8Array.subarray(n.position, n.position + r)), r;
5354
5344
  }
5355
5345
  close() {
@@ -5361,52 +5351,95 @@ var to = class {
5361
5351
  setPosition(e) {
5362
5352
  this.position = e;
5363
5353
  }
5364
- }, ao = class extends to {
5354
+ }, ao = 256e3, oo = class extends no {
5365
5355
  constructor(e, t) {
5366
- super(t), this.blob = e, this.fileInfo = {
5367
- ...t?.fileInfo ?? {},
5368
- size: e.size,
5369
- mimeType: e.type
5370
- };
5356
+ super(t), this.streamReader = e, this.fileInfo = t?.fileInfo ?? {};
5371
5357
  }
5372
5358
  async readBuffer(e, t) {
5373
- t?.position && (this.position = t.position);
5374
- let n = await this.peekBuffer(e, t);
5375
- return this.position += n, n;
5359
+ let n = this.normalizeOptions(e, t), r = n.position - this.position;
5360
+ if (r > 0) return await this.ignore(r), this.readBuffer(e, t);
5361
+ if (r < 0) throw Error("`options.position` must be equal or greater than `tokenizer.position`");
5362
+ if (n.length === 0) return 0;
5363
+ let i = 0;
5364
+ for (; i < n.length;) {
5365
+ let t = Math.min(this.maxBufferSize, n.length - i), r = await this.streamReader.read(e.subarray(i, i + t), !0);
5366
+ if (i += r, this.position += r, r < t) break;
5367
+ }
5368
+ if (!n.mayBeLess && i < n.length) throw new U();
5369
+ return i;
5376
5370
  }
5377
5371
  async peekBuffer(e, t) {
5378
- let n = this.normalizeOptions(e, t), r = Math.min(this.blob.size - n.position, n.length);
5379
- if (!n.mayBeLess && r < n.length) throw new V();
5380
- let i = await this.blob.slice(n.position, n.position + r).arrayBuffer();
5381
- return e.set(new Uint8Array(i)), r;
5372
+ let n = this.normalizeOptions(e, t);
5373
+ if (n.length === 0) return 0;
5374
+ let r = n.length + n.position - this.position;
5375
+ this.validateBufferSize(r);
5376
+ let i = 0;
5377
+ if (n.position) {
5378
+ let t = n.position - this.position;
5379
+ if (t > 0) {
5380
+ let r = new Uint8Array(n.length + t);
5381
+ i = await this.peekBuffer(r, { mayBeLess: n.mayBeLess });
5382
+ let a = Math.max(0, i - t);
5383
+ return e.set(r.subarray(t, t + a)), a;
5384
+ }
5385
+ if (t < 0) throw Error("Cannot peek from a negative offset in a stream");
5386
+ }
5387
+ if (n.length > 0) {
5388
+ try {
5389
+ let t = new Uint8Array(n.length);
5390
+ i = await this.streamReader.peek(t, !0), e.set(t.subarray(0, i));
5391
+ } catch (e) {
5392
+ if (t?.mayBeLess && e instanceof U) return 0;
5393
+ throw e;
5394
+ }
5395
+ if (!n.mayBeLess && i < n.length) throw new U();
5396
+ }
5397
+ return i;
5382
5398
  }
5383
- close() {
5384
- return super.close();
5399
+ async ignore(e) {
5400
+ if (e < 0) throw RangeError("ignore length must be ≥ 0 bytes");
5401
+ this.validateLength(e, "ignore length"), this.validateLength(this.position + e, "end position");
5402
+ let t = Math.min(ao, this.maxBufferSize, e), n = new Uint8Array(t), r = 0;
5403
+ for (; r < e;) {
5404
+ let i = e - r, a = await this.readBuffer(n, { length: Math.min(t, i) });
5405
+ if (a < 0) return a;
5406
+ r += a;
5407
+ }
5408
+ return r;
5385
5409
  }
5386
- supportsRandomAccess() {
5387
- return !0;
5410
+ abort() {
5411
+ return this.removeAbortListener(), this.streamReader.abort();
5388
5412
  }
5389
- setPosition(e) {
5390
- this.position = e;
5413
+ async close() {
5414
+ return this.removeAbortListener(), this.streamReader.close();
5415
+ }
5416
+ supportsRandomAccess() {
5417
+ return !1;
5391
5418
  }
5392
5419
  };
5393
- //#endregion
5394
- //#region node_modules/strtok3/lib/core.js
5395
- function oo(e, t) {
5396
- let n = eo(e), r = t ?? {}, i = r.onClose;
5397
- return r.onClose = async () => {
5398
- if (await n.close(), i) return i();
5399
- }, new ro(n, r);
5400
- }
5420
+ // node_modules/strtok3/lib/core.js
5401
5421
  function so(e, t) {
5402
- return new io(e, t);
5422
+ return Xa(t), Ja(t?.abortSignal), new oo(to(e), t);
5403
5423
  }
5404
5424
  function co(e, t) {
5405
- return new ao(e, t);
5425
+ return new io(e, t);
5406
5426
  }
5407
- //#endregion
5408
- //#region node_modules/ms/index.js
5409
- var lo = /* @__PURE__ */ o(((e, t) => {
5427
+ function lo(e, t) {
5428
+ return new ro(e, t);
5429
+ }
5430
+ // node_modules/@tokenizer/inflate/lib/GzipHandler.js
5431
+ var uo = class {
5432
+ constructor(e) {
5433
+ this.tokenizer = e;
5434
+ }
5435
+ inflate() {
5436
+ let e = this.tokenizer;
5437
+ return new ReadableStream({ async pull(t) {
5438
+ let n = /* @__PURE__ */ new Uint8Array(1024), r = await e.readBuffer(n, { mayBeLess: !0 });
5439
+ r === 0 ? t.close() : t.enqueue(n.subarray(0, r));
5440
+ } }).pipeThrough(new DecompressionStream("gzip"));
5441
+ }
5442
+ }, fo = /* @__PURE__ */ o(((e, t) => {
5410
5443
  var n = 1e3, r = n * 60, i = r * 60, a = i * 24, o = a * 7, s = a * 365.25;
5411
5444
  t.exports = function(e, t) {
5412
5445
  t ||= {};
@@ -5469,9 +5502,9 @@ var lo = /* @__PURE__ */ o(((e, t) => {
5469
5502
  var i = t >= n * 1.5;
5470
5503
  return Math.round(e / n) + " " + r + (i ? "s" : "");
5471
5504
  }
5472
- })), uo = /* @__PURE__ */ o(((e, t) => {
5505
+ })), po = /* @__PURE__ */ o(((e, t) => {
5473
5506
  function n(e) {
5474
- n.debug = n, n.default = n, n.coerce = c, n.disable = o, n.enable = i, n.enabled = s, n.humanize = lo(), n.destroy = l, Object.keys(e).forEach((t) => {
5507
+ n.debug = n, n.default = n, n.coerce = c, n.disable = o, n.enable = i, n.enabled = s, n.humanize = fo(), n.destroy = l, Object.keys(e).forEach((t) => {
5475
5508
  n[t] = e[t];
5476
5509
  }), n.names = [], n.skips = [], n.formatters = {};
5477
5510
  function t(e) {
@@ -5542,7 +5575,7 @@ var lo = /* @__PURE__ */ o(((e, t) => {
5542
5575
  return n.enable(n.load()), n;
5543
5576
  }
5544
5577
  t.exports = n;
5545
- })), fo = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
5578
+ })), mo = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
5546
5579
  e.formatArgs = r, e.save = i, e.load = a, e.useColors = n, e.storage = o(), e.destroy = (() => {
5547
5580
  let e = !1;
5548
5581
  return () => {
@@ -5582,7 +5615,7 @@ var lo = /* @__PURE__ */ o(((e, t) => {
5582
5615
  return localStorage;
5583
5616
  } catch {}
5584
5617
  }
5585
- t.exports = uo()(e);
5618
+ t.exports = po()(e);
5586
5619
  var { formatters: s } = t.exports;
5587
5620
  s.j = function(e) {
5588
5621
  try {
@@ -5591,106 +5624,120 @@ var lo = /* @__PURE__ */ o(((e, t) => {
5591
5624
  return "[UnexpectedJSONParseError]: " + e.message;
5592
5625
  }
5593
5626
  };
5594
- })))(), 1), po = {
5627
+ })))(), 1), ho = class extends RangeError {
5628
+ constructor(e, t, n) {
5629
+ super(`ZIP ${e} exceeded: ${t} bytes exceeds limit of ${n} bytes`), this.limit = e, this.requestedSize = t, this.maxSize = n, this.name = "ZipLimitError";
5630
+ }
5631
+ }, go = {
5595
5632
  LocalFileHeader: 67324752,
5596
5633
  DataDescriptor: 134695760,
5597
5634
  CentralFileHeader: 33639248,
5598
5635
  EndOfCentralDirectory: 101010256
5599
- }, mo = {
5636
+ }, _o = {
5600
5637
  get(e) {
5601
5638
  return {
5602
- signature: z.get(e, 0),
5603
- compressedSize: z.get(e, 8),
5604
- uncompressedSize: z.get(e, 12)
5639
+ signature: V.get(e, 0),
5640
+ compressedSize: V.get(e, 8),
5641
+ uncompressedSize: V.get(e, 12)
5605
5642
  };
5606
5643
  },
5607
5644
  len: 16
5608
- }, ho = {
5645
+ }, vo = {
5609
5646
  get(e) {
5610
- let t = R.get(e, 6);
5647
+ let t = B.get(e, 6);
5611
5648
  return {
5612
- signature: z.get(e, 0),
5613
- minVersion: R.get(e, 4),
5649
+ signature: V.get(e, 0),
5650
+ minVersion: B.get(e, 4),
5614
5651
  dataDescriptor: !!(t & 8),
5615
- compressedMethod: R.get(e, 8),
5616
- compressedSize: z.get(e, 18),
5617
- uncompressedSize: z.get(e, 22),
5618
- filenameLength: R.get(e, 26),
5619
- extraFieldLength: R.get(e, 28),
5652
+ compressedMethod: B.get(e, 8),
5653
+ compressedSize: V.get(e, 18),
5654
+ uncompressedSize: V.get(e, 22),
5655
+ filenameLength: B.get(e, 26),
5656
+ extraFieldLength: B.get(e, 28),
5620
5657
  filename: null
5621
5658
  };
5622
5659
  },
5623
5660
  len: 30
5624
- }, go = {
5661
+ }, yo = {
5625
5662
  get(e) {
5626
5663
  return {
5627
- signature: z.get(e, 0),
5628
- nrOfThisDisk: R.get(e, 4),
5629
- nrOfThisDiskWithTheStart: R.get(e, 6),
5630
- nrOfEntriesOnThisDisk: R.get(e, 8),
5631
- nrOfEntriesOfSize: R.get(e, 10),
5632
- sizeOfCd: z.get(e, 12),
5633
- offsetOfStartOfCd: z.get(e, 16),
5634
- zipFileCommentLength: R.get(e, 20)
5664
+ signature: V.get(e, 0),
5665
+ nrOfThisDisk: B.get(e, 4),
5666
+ nrOfThisDiskWithTheStart: B.get(e, 6),
5667
+ nrOfEntriesOnThisDisk: B.get(e, 8),
5668
+ nrOfEntriesOfSize: B.get(e, 10),
5669
+ sizeOfCd: V.get(e, 12),
5670
+ offsetOfStartOfCd: V.get(e, 16),
5671
+ zipFileCommentLength: B.get(e, 20)
5635
5672
  };
5636
5673
  },
5637
5674
  len: 22
5638
- }, _o = {
5675
+ }, bo = {
5639
5676
  get(e) {
5640
- let t = R.get(e, 8);
5677
+ let t = B.get(e, 8);
5641
5678
  return {
5642
- signature: z.get(e, 0),
5643
- minVersion: R.get(e, 6),
5679
+ signature: V.get(e, 0),
5680
+ minVersion: B.get(e, 6),
5644
5681
  dataDescriptor: !!(t & 8),
5645
- compressedMethod: R.get(e, 10),
5646
- compressedSize: z.get(e, 20),
5647
- uncompressedSize: z.get(e, 24),
5648
- filenameLength: R.get(e, 28),
5649
- extraFieldLength: R.get(e, 30),
5650
- fileCommentLength: R.get(e, 32),
5651
- relativeOffsetOfLocalHeader: z.get(e, 42),
5682
+ compressedMethod: B.get(e, 10),
5683
+ compressedSize: V.get(e, 20),
5684
+ uncompressedSize: V.get(e, 24),
5685
+ filenameLength: B.get(e, 28),
5686
+ extraFieldLength: B.get(e, 30),
5687
+ fileCommentLength: B.get(e, 32),
5688
+ relativeOffsetOfLocalHeader: V.get(e, 42),
5652
5689
  filename: null
5653
5690
  };
5654
5691
  },
5655
5692
  len: 46
5656
5693
  };
5657
- //#endregion
5658
- //#region node_modules/@tokenizer/inflate/lib/ZipHandler.js
5659
- function vo(e) {
5660
- let t = new Uint8Array(z.len);
5661
- return z.put(t, 0, e), t;
5694
+ // node_modules/@tokenizer/inflate/lib/ZipHandler.js
5695
+ function xo(e) {
5696
+ let t = new Uint8Array(V.len);
5697
+ return V.put(t, 0, e), t;
5662
5698
  }
5663
- var H = (0, fo.default)("tokenizer:inflate"), yo = 262144, bo = vo(po.DataDescriptor), xo = vo(po.EndOfCentralDirectory), So = class e {
5664
- constructor(e) {
5665
- this.tokenizer = e, this.syncBuffer = new Uint8Array(yo);
5699
+ var W = (0, mo.default)("tokenizer:inflate"), So = 262144, Co = xo(go.DataDescriptor), wo = xo(go.EndOfCentralDirectory), To = class {
5700
+ constructor(e, t = {}) {
5701
+ this.tokenizer = e, this.syncBuffer = new Uint8Array(So), this.limits = {
5702
+ maxDataDescriptorScanBytes: t.maxDataDescriptorScanBytes ?? Infinity,
5703
+ maxCompressedSize: t.maxCompressedSize ?? Infinity,
5704
+ maxUncompressedSize: t.maxUncompressedSize ?? Infinity
5705
+ };
5706
+ for (let [e, t] of Object.entries(this.limits)) if (t !== Infinity && (!Number.isSafeInteger(t) || t <= 0)) throw RangeError(`${e} must be a positive safe integer or Infinity`);
5707
+ }
5708
+ checkLimit(e, t) {
5709
+ if (t > this.limits[e]) throw new ho(e, t, this.limits[e]);
5710
+ }
5711
+ checkEntrySize(e) {
5712
+ this.checkLimit("maxCompressedSize", e.compressedSize), this.checkLimit("maxUncompressedSize", e.uncompressedSize), e.compressedMethod === 0 && this.checkLimit("maxUncompressedSize", e.compressedSize);
5666
5713
  }
5667
5714
  async isZip() {
5668
- return await this.peekSignature() === po.LocalFileHeader;
5715
+ return await this.peekSignature() === go.LocalFileHeader;
5669
5716
  }
5670
5717
  peekSignature() {
5671
- return this.tokenizer.peekToken(z);
5718
+ return this.tokenizer.peekToken(V);
5672
5719
  }
5673
5720
  async findEndOfCentralDirectoryLocator() {
5674
5721
  let e = this.tokenizer, t = Math.min(16384, e.fileInfo.size), n = this.syncBuffer.subarray(0, t);
5675
5722
  await this.tokenizer.readBuffer(n, { position: e.fileInfo.size - t });
5676
- for (let r = n.length - 4; r >= 0; r--) if (n[r] === xo[0] && n[r + 1] === xo[1] && n[r + 2] === xo[2] && n[r + 3] === xo[3]) return e.fileInfo.size - t + r;
5723
+ for (let r = n.length - 4; r >= 0; r--) if (n[r] === wo[0] && n[r + 1] === wo[1] && n[r + 2] === wo[2] && n[r + 3] === wo[3]) return e.fileInfo.size - t + r;
5677
5724
  return -1;
5678
5725
  }
5679
5726
  async readCentralDirectory() {
5680
5727
  if (!this.tokenizer.supportsRandomAccess()) {
5681
- H("Cannot reading central-directory without random-read support");
5728
+ W("Cannot reading central-directory without random-read support");
5682
5729
  return;
5683
5730
  }
5684
- H("Reading central-directory...");
5731
+ W("Reading central-directory...");
5685
5732
  let e = this.tokenizer.position, t = await this.findEndOfCentralDirectoryLocator();
5686
5733
  if (t > 0) {
5687
- H("Central-directory 32-bit signature found");
5688
- let n = await this.tokenizer.readToken(go, t), r = [];
5734
+ W("Central-directory 32-bit signature found");
5735
+ let n = await this.tokenizer.readToken(yo, t), r = [];
5689
5736
  this.tokenizer.setPosition(n.offsetOfStartOfCd);
5690
5737
  for (let e = 0; e < n.nrOfEntriesOfSize; ++e) {
5691
- let t = await this.tokenizer.readToken(_o);
5692
- if (t.signature !== po.CentralFileHeader) throw Error("Expected Central-File-Header signature");
5693
- t.filename = await this.tokenizer.readToken(new B(t.filenameLength, "utf-8")), await this.tokenizer.ignore(t.extraFieldLength), await this.tokenizer.ignore(t.fileCommentLength), r.push(t), H(`Add central-directory file-entry: n=${e + 1}/${r.length}: filename=${r[e].filename}`);
5738
+ let t = await this.tokenizer.readToken(bo);
5739
+ if (t.signature !== go.CentralFileHeader) throw Error("Expected Central-File-Header signature");
5740
+ t.filename = await this.tokenizer.readToken(new H(t.filenameLength, "utf-8")), await this.tokenizer.ignore(t.extraFieldLength), await this.tokenizer.ignore(t.fileCommentLength), r.push(t), W(`Add central-directory file-entry: n=${e + 1}/${r.length}: filename=${r[e].filename}`);
5694
5741
  }
5695
5742
  return this.tokenizer.setPosition(e), r;
5696
5743
  }
@@ -5706,21 +5753,23 @@ var H = (0, fo.default)("tokenizer:inflate"), yo = 262144, bo = vo(po.DataDescri
5706
5753
  let r = e(t);
5707
5754
  n = !!r.stop;
5708
5755
  let i;
5709
- if (await this.tokenizer.ignore(t.extraFieldLength), t.dataDescriptor && t.compressedSize === 0) {
5710
- let e = [], n = yo;
5711
- H("Compressed-file-size unknown, scanning for next data-descriptor-signature....");
5712
- let i = -1;
5713
- for (; i < 0 && n === yo;) {
5714
- n = await this.tokenizer.peekBuffer(this.syncBuffer, { mayBeLess: !0 }), i = Co(this.syncBuffer.subarray(0, n), bo);
5715
- let t = i >= 0 ? i : n;
5716
- if (r.handler) {
5717
- let n = new Uint8Array(t);
5718
- await this.tokenizer.readBuffer(n), e.push(n);
5719
- } else await this.tokenizer.ignore(t);
5756
+ if (await this.tokenizer.ignore(t.extraFieldLength), r.handler && this.checkEntrySize(t), t.dataDescriptor && t.compressedSize === 0) {
5757
+ let e = [], n = 0, i = Math.min(this.limits.maxDataDescriptorScanBytes, r.handler ? this.limits.maxCompressedSize : Infinity, r.handler && t.compressedMethod === 0 ? this.limits.maxUncompressedSize : Infinity);
5758
+ for (W("Compressed-file-size unknown, scanning for next data-descriptor-signature....");;) {
5759
+ let a = Math.min(So, i - n + Co.length), o = await this.tokenizer.peekBuffer(this.syncBuffer.subarray(0, a), { mayBeLess: !0 }), s = Eo(this.syncBuffer.subarray(0, o), Co);
5760
+ if (s < 0 && o < Co.length) throw Error("Expected data-descriptor-signature before end of input");
5761
+ let c = s >= 0 ? s : o - Co.length + 1;
5762
+ if (this.checkLimit("maxDataDescriptorScanBytes", n + c), r.handler) {
5763
+ if (this.checkLimit("maxCompressedSize", n + c), t.compressedMethod === 0 && this.checkLimit("maxUncompressedSize", n + c), c > 0) {
5764
+ let t = new Uint8Array(c);
5765
+ await this.tokenizer.readBuffer(t), e.push(t);
5766
+ }
5767
+ } else await this.tokenizer.ignore(c);
5768
+ if (n += c, s >= 0) break;
5720
5769
  }
5721
- H(`Found data-descriptor-signature at pos=${this.tokenizer.position}`), r.handler && await this.inflate(t, wo(e), r.handler);
5722
- } else r.handler ? (H(`Reading compressed-file-data: ${t.compressedSize} bytes`), i = new Uint8Array(t.compressedSize), await this.tokenizer.readBuffer(i), await this.inflate(t, i, r.handler)) : (H(`Ignoring compressed-file-data: ${t.compressedSize} bytes`), await this.tokenizer.ignore(t.compressedSize));
5723
- if (H(`Reading data-descriptor at pos=${this.tokenizer.position}`), t.dataDescriptor && (await this.tokenizer.readToken(mo)).signature !== 134695760) throw Error(`Expected data-descriptor-signature at position ${this.tokenizer.position - mo.len}`);
5770
+ W(`Found data-descriptor-signature at pos=${this.tokenizer.position}`), r.handler && (this.checkLimit("maxCompressedSize", n), await this.inflate(t, Do(e), r.handler));
5771
+ } else r.handler ? (W(`Reading compressed-file-data: ${t.compressedSize} bytes`), i = new Uint8Array(t.compressedSize), await this.tokenizer.readBuffer(i), await this.inflate(t, i, r.handler)) : (W(`Ignoring compressed-file-data: ${t.compressedSize} bytes`), await this.tokenizer.ignore(t.compressedSize));
5772
+ if (W(`Reading data-descriptor at pos=${this.tokenizer.position}`), t.dataDescriptor && (await this.tokenizer.readToken(_o)).signature !== 134695760) throw Error(`Expected data-descriptor-signature at position ${this.tokenizer.position - _o.len}`);
5724
5773
  } while (!n);
5725
5774
  }
5726
5775
  async iterateOverCentralDirectory(e, t) {
@@ -5730,7 +5779,7 @@ var H = (0, fo.default)("tokenizer:inflate"), yo = 262144, bo = vo(po.DataDescri
5730
5779
  this.tokenizer.setPosition(n.relativeOffsetOfLocalHeader);
5731
5780
  let t = await this.readLocalFileHeader();
5732
5781
  if (t) {
5733
- await this.tokenizer.ignore(t.extraFieldLength);
5782
+ await this.tokenizer.ignore(t.extraFieldLength), this.checkEntrySize(n), this.checkEntrySize(t);
5734
5783
  let r = new Uint8Array(n.compressedSize);
5735
5784
  await this.tokenizer.readBuffer(r), await this.inflate(t, r, e.handler);
5736
5785
  }
@@ -5738,34 +5787,42 @@ var H = (0, fo.default)("tokenizer:inflate"), yo = 262144, bo = vo(po.DataDescri
5738
5787
  if (e.stop) break;
5739
5788
  }
5740
5789
  }
5741
- async inflate(t, n, r) {
5742
- if (t.compressedMethod === 0) return r(n);
5743
- if (t.compressedMethod !== 8) throw Error(`Unsupported ZIP compression method: ${t.compressedMethod}`);
5744
- return H(`Decompress filename=${t.filename}, compressed-size=${n.length}`), r(await e.decompressDeflateRaw(n));
5790
+ async inflate(e, t, n) {
5791
+ if (e.compressedMethod === 0) return this.checkLimit("maxUncompressedSize", t.length), n(t);
5792
+ if (e.compressedMethod !== 8) throw Error(`Unsupported ZIP compression method: ${e.compressedMethod}`);
5793
+ return W(`Decompress filename=${e.filename}, compressed-size=${t.length}`), n(await this.decompressDeflateRaw(t));
5745
5794
  }
5746
- static async decompressDeflateRaw(e) {
5795
+ async decompressDeflateRaw(e) {
5747
5796
  let t = new ReadableStream({ start(t) {
5748
5797
  t.enqueue(e), t.close();
5749
- } }), n = new DecompressionStream("deflate-raw"), r = t.pipeThrough(n);
5798
+ } }), n = new DecompressionStream("deflate-raw"), r = t.pipeThrough(n).getReader(), i = [], a = 0;
5750
5799
  try {
5751
- let e = await new Response(r).arrayBuffer();
5752
- return new Uint8Array(e);
5800
+ for (;;) {
5801
+ let { done: e, value: t } = await r.read();
5802
+ if (e) break;
5803
+ this.checkLimit("maxUncompressedSize", a + t.length), a += t.length, i.push(t);
5804
+ }
5805
+ return this.checkLimit("maxUncompressedSize", a), Do(i);
5753
5806
  } catch (e) {
5807
+ if (await r.cancel(e).catch(() => {}), e instanceof ho) throw e;
5808
+ if (e instanceof Error && "code" in e && e.code === "ERR_TRAILING_JUNK_AFTER_STREAM_END") return Do(i);
5754
5809
  let t = e instanceof Error ? `Failed to deflate ZIP entry: ${e.message}` : "Unknown decompression error in ZIP entry";
5755
5810
  throw TypeError(t);
5811
+ } finally {
5812
+ r.releaseLock();
5756
5813
  }
5757
5814
  }
5758
5815
  async readLocalFileHeader() {
5759
- let e = await this.tokenizer.peekToken(z);
5760
- if (e === po.LocalFileHeader) {
5761
- let e = await this.tokenizer.readToken(ho);
5762
- return e.filename = await this.tokenizer.readToken(new B(e.filenameLength, "utf-8")), e;
5816
+ let e = await this.tokenizer.peekToken(V);
5817
+ if (e === go.LocalFileHeader) {
5818
+ let e = await this.tokenizer.readToken(vo);
5819
+ return e.filename = await this.tokenizer.readToken(new H(e.filenameLength, "utf-8")), e;
5763
5820
  }
5764
- if (e === po.CentralFileHeader) return !1;
5821
+ if (e === go.CentralFileHeader) return !1;
5765
5822
  throw Error(e === 3759263696 ? "Encrypted ZIP" : "Unexpected signature");
5766
5823
  }
5767
5824
  };
5768
- function Co(e, t) {
5825
+ function Eo(e, t) {
5769
5826
  let n = e.length, r = t.length;
5770
5827
  if (r > n) return -1;
5771
5828
  for (let i = 0; i <= n - r; i++) {
@@ -5778,47 +5835,40 @@ function Co(e, t) {
5778
5835
  }
5779
5836
  return -1;
5780
5837
  }
5781
- function wo(e) {
5838
+ function Do(e) {
5782
5839
  let t = e.reduce((e, t) => e + t.length, 0), n = new Uint8Array(t), r = 0;
5783
5840
  for (let t of e) n.set(t, r), r += t.length;
5784
5841
  return n;
5785
5842
  }
5786
- //#endregion
5787
- //#region node_modules/@tokenizer/inflate/lib/GzipHandler.js
5788
- var To = class {
5789
- constructor(e) {
5790
- this.tokenizer = e;
5791
- }
5792
- inflate() {
5793
- let e = this.tokenizer;
5794
- return new ReadableStream({ async pull(t) {
5795
- let n = /* @__PURE__ */ new Uint8Array(1024), r = await e.readBuffer(n, { mayBeLess: !0 });
5796
- if (r === 0) {
5797
- t.close();
5798
- return;
5799
- }
5800
- t.enqueue(n.subarray(0, r));
5801
- } }).pipeThrough(new DecompressionStream("gzip"));
5802
- }
5803
- }, Eo = Object.prototype.toString, Do = "[object Uint8Array]";
5804
- function Oo(e, t, n) {
5805
- return e ? e.constructor === t || Eo.call(e) === n : !1;
5843
+ // node_modules/uint8array-extras/index.js
5844
+ var Oo = Object.prototype.toString, ko = "[object Uint8Array]", Ao = "[object ArrayBuffer]";
5845
+ function jo(e, t, n) {
5846
+ return e ? e.constructor === t || Oo.call(e) === n : !1;
5847
+ }
5848
+ function Mo(e) {
5849
+ return jo(e, Uint8Array, ko);
5850
+ }
5851
+ function No(e) {
5852
+ return jo(e, ArrayBuffer, Ao);
5853
+ }
5854
+ function Po(e) {
5855
+ return Mo(e) || No(e);
5806
5856
  }
5807
- function ko(e) {
5808
- return Oo(e, Uint8Array, Do);
5857
+ function Fo(e) {
5858
+ return No(e) ? new Uint8Array(e) : e;
5809
5859
  }
5810
- function Ao(e) {
5811
- if (!ko(e)) throw TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``);
5860
+ function Io(e) {
5861
+ if (!Po(e)) throw TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``);
5812
5862
  }
5813
- function jo(e, t) {
5863
+ function Lo(e, t) {
5814
5864
  if (e.length === 0) return /* @__PURE__ */ new Uint8Array();
5815
- t ??= e.reduce((e, t) => e + t.length, 0);
5865
+ t ??= e.reduce((e, t) => e + t.byteLength, 0);
5816
5866
  let n = new Uint8Array(t), r = 0;
5817
- for (let t of e) Ao(t), n.set(t, r), r += t.length;
5867
+ for (let t of e) Io(t), t = Fo(t), n.set(t, r), r += t.length;
5818
5868
  return n;
5819
5869
  }
5820
5870
  new globalThis.TextDecoder("utf8"), new globalThis.TextEncoder(), Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
5821
- function Mo(e) {
5871
+ function Ro(e) {
5822
5872
  let { byteLength: t } = e;
5823
5873
  if (t === 6) return e.getUint16(0) * 2 ** 32 + e.getUint32(2);
5824
5874
  if (t === 5) return e.getUint8(0) * 2 ** 32 + e.getUint32(1);
@@ -5827,9 +5877,8 @@ function Mo(e) {
5827
5877
  if (t === 2) return e.getUint16(0);
5828
5878
  if (t === 1) return e.getUint8(0);
5829
5879
  }
5830
- //#endregion
5831
- //#region node_modules/file-type/source/tokens.js
5832
- function No(e, t) {
5880
+ // node_modules/file-type/source/tokens.js
5881
+ function zo(e, t) {
5833
5882
  if (t === "utf-16le") {
5834
5883
  let t = [];
5835
5884
  for (let n = 0; n < e.length; n++) {
@@ -5848,34 +5897,34 @@ function No(e, t) {
5848
5897
  }
5849
5898
  return [...e].map((e) => e.charCodeAt(0));
5850
5899
  }
5851
- function Po(e, t = 0) {
5852
- let n = Number.parseInt(new B(6).get(e, 148).replace(/\0.*$/v, "").trim(), 8);
5900
+ function Bo(e, t = 0) {
5901
+ let n = Number.parseInt(new H(6).get(e, 148), 8);
5853
5902
  if (Number.isNaN(n)) return !1;
5854
5903
  let r = 256;
5855
5904
  for (let n = t; n < t + 148; n++) r += e[n];
5856
5905
  for (let n = t + 156; n < t + 512; n++) r += e[n];
5857
5906
  return n === r;
5858
5907
  }
5859
- var Fo = {
5908
+ var Vo = {
5860
5909
  get: (e, t) => e[t + 3] & 127 | (e[t + 2] & 127) << 7 | (e[t + 1] & 127) << 14 | (e[t] & 127) << 21,
5861
5910
  len: 4
5862
- }, Io = /* @__PURE__ */ "jpg,png,apng,gif,webp,flif,xcf,cr2,cr3,orf,arw,dng,nef,rw2,raf,tif,bmp,icns,jxr,psd,indd,zip,tar,rar,gz,bz2,7z,dmg,mp4,mid,mkv,webm,mov,avi,mpg,mp2,mp3,m4a,oga,ogg,ogv,opus,flac,wav,spx,amr,pdf,epub,elf,macho,exe,swf,rtf,wasm,woff,woff2,eot,ttf,otf,ttc,ico,flv,ps,xz,sqlite,nes,crx,xpi,cab,deb,ar,rpm,Z,lz,cfb,mxf,mts,blend,bpg,docx,pptx,xlsx,3gp,3g2,j2c,jp2,jpm,jpx,mj2,aif,qcp,odt,ods,odp,xml,mobi,heic,cur,ktx,ape,wv,dcm,ics,glb,pcap,dsf,lnk,alias,voc,ac3,m4v,m4p,m4b,f4v,f4p,f4b,f4a,mie,asf,ogm,ogx,mpc,arrow,shp,aac,mp1,it,s3m,xm,skp,avif,eps,lzh,pgp,asar,stl,chm,3mf,zst,jxl,vcf,jls,pst,dwg,parquet,class,arj,cpio,ace,avro,icc,fbx,vsdx,vtt,apk,drc,lz4,potx,xltx,dotx,xltm,ott,ots,otp,odg,otg,xlsm,docm,dotm,potm,pptm,jar,jmp,rm,sav,ppsm,ppsx,tar.gz,reg,dat,key,numbers,pages,iso".split(","), Lo = /* @__PURE__ */ "image/jpeg,image/png,image/gif,image/webp,image/flif,image/x-xcf,image/x-canon-cr2,image/x-canon-cr3,image/tiff,image/bmp,image/vnd.ms-photo,image/vnd.adobe.photoshop,application/x-indesign,application/epub+zip,application/x-xpinstall,application/vnd.ms-powerpoint.slideshow.macroenabled.12,application/vnd.oasis.opendocument.text,application/vnd.oasis.opendocument.spreadsheet,application/vnd.oasis.opendocument.presentation,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.slideshow,application/zip,application/x-tar,application/x-rar-compressed,application/gzip,application/x-bzip2,application/x-7z-compressed,application/x-apple-diskimage,application/vnd.apache.arrow.file,video/mp4,audio/midi,video/matroska,video/webm,video/quicktime,video/vnd.avi,audio/wav,audio/qcelp,audio/x-ms-asf,video/x-ms-asf,application/vnd.ms-asf,video/mpeg,video/3gpp,audio/mpeg,audio/mp4,video/ogg,audio/ogg,audio/ogg; codecs=opus,application/ogg,audio/flac,audio/ape,audio/wavpack,audio/amr,application/pdf,application/x-elf,application/x-mach-binary,application/x-msdownload,application/x-shockwave-flash,application/rtf,application/wasm,font/woff,font/woff2,application/vnd.ms-fontobject,font/ttf,font/otf,font/collection,image/x-icon,video/x-flv,application/postscript,application/eps,application/x-xz,application/x-sqlite3,application/x-nintendo-nes-rom,application/x-google-chrome-extension,application/vnd.ms-cab-compressed,application/x-deb,application/x-unix-archive,application/x-rpm,application/x-compress,application/lzip,application/x-cfb,application/x-mie,application/mxf,video/mp2t,application/x-blender,image/bpg,image/j2c,image/jp2,image/jpx,image/jpm,image/mj2,audio/aiff,application/xml,application/x-mobipocket-ebook,image/heif,image/heif-sequence,image/heic,image/heic-sequence,image/icns,image/ktx,application/dicom,audio/x-musepack,text/calendar,text/vcard,text/vtt,model/gltf-binary,application/vnd.tcpdump.pcap,audio/x-dsf,application/x-ms-shortcut,application/x-ft-apple.alias,audio/x-voc,audio/vnd.dolby.dd-raw,audio/x-m4a,image/apng,image/x-olympus-orf,image/x-sony-arw,image/x-adobe-dng,image/x-nikon-nef,image/x-panasonic-rw2,image/x-fujifilm-raf,video/x-m4v,video/3gpp2,application/x-esri-shape,audio/aac,audio/x-it,audio/x-s3m,audio/x-xm,video/MP1S,video/MP2P,application/vnd.sketchup.skp,image/avif,application/x-lzh-compressed,application/pgp-encrypted,application/x-asar,model/stl,application/vnd.ms-htmlhelp,model/3mf,image/jxl,application/zstd,image/jls,application/vnd.ms-outlook,image/vnd.dwg,application/vnd.apache.parquet,application/java-vm,application/x-arj,application/x-cpio,application/x-ace-compressed,application/avro,application/vnd.iccprofile,application/x-ft-fbx,application/vnd.visio,application/vnd.android.package-archive,application/x-ft-draco,application/x-lz4,application/vnd.openxmlformats-officedocument.presentationml.template,application/vnd.openxmlformats-officedocument.spreadsheetml.template,application/vnd.openxmlformats-officedocument.wordprocessingml.template,application/vnd.ms-excel.template.macroenabled.12,application/vnd.oasis.opendocument.text-template,application/vnd.oasis.opendocument.spreadsheet-template,application/vnd.oasis.opendocument.presentation-template,application/vnd.oasis.opendocument.graphics,application/vnd.oasis.opendocument.graphics-template,application/vnd.ms-excel.sheet.macroenabled.12,application/vnd.ms-word.document.macroenabled.12,application/vnd.ms-word.template.macroenabled.12,application/vnd.ms-powerpoint.template.macroenabled.12,application/vnd.ms-powerpoint.presentation.macroenabled.12,application/java-archive,application/vnd.rn-realmedia,application/x-spss-sav,application/x-ms-regedit,application/x-ft-windows-registry-hive,application/x-jmp-data,application/vnd.apple.keynote,application/vnd.apple.numbers,application/vnd.apple.pages,application/x-iso9660-image".split(","), U = 16777216, W = class extends Error {};
5863
- function Ro(e, t, n) {
5864
- if (!Number.isFinite(e) || e < 0 || e > t) throw new W(`${n} has invalid size ${e} (maximum ${t} bytes)`);
5911
+ }, Ho = /* @__PURE__ */ "jpg,png,apng,gif,webp,flif,xcf,cr2,cr3,orf,arw,dng,nef,rw2,raf,tif,bmp,icns,jxr,psd,indd,zip,tar,rar,gz,bz2,7z,dmg,mp4,mid,mkv,webm,mov,avi,mpg,mp2,mp3,m4a,oga,ogg,ogv,opus,flac,wav,spx,amr,pdf,epub,elf,macho,exe,swf,rtf,wasm,woff,woff2,eot,ttf,otf,ttc,ico,flv,ps,xz,sqlite,nes,crx,xpi,cab,deb,ar,rpm,Z,lz,cfb,mxf,mts,blend,bpg,docx,pptx,xlsx,3gp,3g2,j2c,jp2,jpm,jpx,mj2,aif,caf,qcp,odt,ods,odp,xml,mobi,heic,cur,ktx,ape,wv,dcm,ics,glb,pcap,dsf,dff,lnk,alias,voc,ac3,m4v,m4p,m4b,f4v,f4p,f4b,f4a,mie,asf,ogm,ogx,mpc,arrow,shp,aac,mp1,it,s3m,xm,skp,avif,eps,lzh,pgp,asar,stl,chm,3mf,zst,jxl,vcf,jls,pst,dwg,parquet,class,arj,cpio,ace,avro,icc,fbx,vsdx,vtt,apk,drc,lz4,potx,xltx,dotx,xltm,ott,ots,otp,odg,otg,xlsm,docm,dotm,potm,pptm,jar,jmp,rm,sav,ppsm,ppsx,tar.gz,reg,dat,key,numbers,pages,iso".split(","), Uo = /* @__PURE__ */ "image/jpeg,image/png,image/gif,image/webp,image/flif,image/x-xcf,image/x-canon-cr2,image/x-canon-cr3,image/tiff,image/bmp,image/vnd.ms-photo,image/vnd.adobe.photoshop,application/x-indesign,application/epub+zip,application/x-xpinstall,application/vnd.ms-powerpoint.slideshow.macroenabled.12,application/vnd.oasis.opendocument.text,application/vnd.oasis.opendocument.spreadsheet,application/vnd.oasis.opendocument.presentation,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.openxmlformats-officedocument.presentationml.slideshow,application/zip,application/x-tar,application/x-rar-compressed,application/gzip,application/x-bzip2,application/x-7z-compressed,application/x-apple-diskimage,application/vnd.apache.arrow.file,video/mp4,audio/midi,video/matroska,video/webm,video/quicktime,video/vnd.avi,audio/wav,audio/qcelp,audio/x-ms-asf,video/x-ms-asf,application/vnd.ms-asf,video/mpeg,video/3gpp,audio/mpeg,audio/mp4,video/ogg,audio/ogg,audio/ogg; codecs=opus,application/ogg,audio/flac,audio/ape,audio/wavpack,audio/amr,application/pdf,application/x-elf,application/x-mach-binary,application/x-msdownload,application/x-shockwave-flash,application/rtf,application/wasm,font/woff,font/woff2,application/vnd.ms-fontobject,font/ttf,font/otf,font/collection,image/x-icon,video/x-flv,application/postscript,application/eps,application/x-xz,application/x-sqlite3,application/x-nintendo-nes-rom,application/x-google-chrome-extension,application/vnd.ms-cab-compressed,application/x-deb,application/x-unix-archive,application/x-rpm,application/x-compress,application/lzip,application/x-cfb,application/x-mie,application/mxf,video/mp2t,application/x-blender,image/bpg,image/j2c,image/jp2,image/jpx,image/jpm,image/mj2,audio/aiff,audio/x-caf,application/xml,application/x-mobipocket-ebook,image/heif,image/heif-sequence,image/heic,image/heic-sequence,image/icns,image/ktx,application/dicom,audio/x-musepack,text/calendar,text/vcard,text/vtt,model/gltf-binary,application/vnd.tcpdump.pcap,audio/x-dsf,audio/x-dff,application/x-ms-shortcut,application/x-ft-apple.alias,audio/x-voc,audio/vnd.dolby.dd-raw,audio/x-m4a,image/apng,image/x-olympus-orf,image/x-sony-arw,image/x-adobe-dng,image/x-nikon-nef,image/x-panasonic-rw2,image/x-fujifilm-raf,video/x-m4v,video/3gpp2,application/x-esri-shape,audio/aac,audio/x-it,audio/x-s3m,audio/x-xm,video/MP1S,video/MP2P,application/vnd.sketchup.skp,image/avif,application/x-lzh-compressed,application/pgp-encrypted,application/x-asar,model/stl,application/vnd.ms-htmlhelp,model/3mf,image/jxl,application/zstd,image/jls,application/vnd.ms-outlook,image/vnd.dwg,application/vnd.apache.parquet,application/java-vm,application/x-arj,application/x-cpio,application/x-ace-compressed,application/avro,application/vnd.iccprofile,application/x-ft-fbx,application/vnd.visio,application/vnd.android.package-archive,application/x-ft-draco,application/x-lz4,application/vnd.openxmlformats-officedocument.presentationml.template,application/vnd.openxmlformats-officedocument.spreadsheetml.template,application/vnd.openxmlformats-officedocument.wordprocessingml.template,application/vnd.ms-excel.template.macroenabled.12,application/vnd.oasis.opendocument.text-template,application/vnd.oasis.opendocument.spreadsheet-template,application/vnd.oasis.opendocument.presentation-template,application/vnd.oasis.opendocument.graphics,application/vnd.oasis.opendocument.graphics-template,application/vnd.ms-excel.sheet.macroenabled.12,application/vnd.ms-word.document.macroenabled.12,application/vnd.ms-word.template.macroenabled.12,application/vnd.ms-powerpoint.template.macroenabled.12,application/vnd.ms-powerpoint.presentation.macroenabled.12,application/java-archive,application/vnd.rn-realmedia,application/x-spss-sav,application/x-ms-regedit,application/x-ft-windows-registry-hive,application/x-jmp-data,application/vnd.apple.keynote,application/vnd.apple.numbers,application/vnd.apple.pages,application/x-iso9660-image".split(","), Wo = 16777216, G = class extends Error {};
5912
+ function Go(e, t, n) {
5913
+ if (!Number.isFinite(e) || e < 0 || e > t) throw new G(`${n} has invalid size ${e} (maximum ${t} bytes)`);
5865
5914
  return e;
5866
5915
  }
5867
- async function G(e, t, { maximumLength: n = U, reason: r = "skip" } = {}) {
5868
- let i = Ro(t, n, r);
5916
+ async function K(e, t, { maximumLength: n = Wo, reason: r = "skip" } = {}) {
5917
+ let i = Go(t, n, r);
5869
5918
  await e.ignore(i);
5870
5919
  }
5871
- async function zo(e, t, n, { maximumLength: r = t.length, reason: i = "read" } = {}) {
5872
- let a = Ro(n?.length ?? t.length, r, i);
5920
+ async function Ko(e, t, n, { maximumLength: r = t.length, reason: i = "read" } = {}) {
5921
+ let a = Go(n?.length ?? t.length, r, i);
5873
5922
  return e.readBuffer(t, {
5874
5923
  ...n,
5875
5924
  length: a
5876
5925
  });
5877
5926
  }
5878
- function K(e, t, n) {
5927
+ function q(e, t, n) {
5879
5928
  n = {
5880
5929
  offset: 0,
5881
5930
  ...n
@@ -5885,72 +5934,51 @@ function K(e, t, n) {
5885
5934
  } else if (i !== e[r + n.offset]) return !1;
5886
5935
  return !0;
5887
5936
  }
5888
- function q(e) {
5937
+ function J(e) {
5889
5938
  let t = e.fileInfo.size;
5890
5939
  return !Number.isFinite(t) || t === 2 ** 53 - 1;
5891
5940
  }
5892
- function Bo(e, t, n) {
5893
- return q(e) && e.position - t > n;
5941
+ function qo(e, t, n) {
5942
+ return J(e) && e.position - t > n;
5894
5943
  }
5895
- //#endregion
5896
- //#region node_modules/file-type/source/detectors/zip.js
5897
- var J = 1048576, Vo = 1024, Ho = 2 ** 31 - 1, Uo = J, Wo = /* @__PURE__ */ new Set([
5944
+ // node_modules/file-type/source/detectors/zip.js
5945
+ var Jo = 1048576, Yo = 1024, Xo = 2 ** 31 - 1, Zo = Jo, Qo = /* @__PURE__ */ new Set([
5898
5946
  "Unexpected signature",
5899
5947
  "Encrypted ZIP",
5900
5948
  "Expected Central-File-Header signature"
5901
- ]), Go = [
5949
+ ]), $o = [
5902
5950
  "ZIP entry count exceeds ",
5903
5951
  "Unsupported ZIP compression method:",
5904
5952
  "ZIP entry compressed data exceeds ",
5905
5953
  "ZIP entry decompressed data exceeds ",
5906
5954
  "Expected data-descriptor-signature at position "
5907
- ], Ko = /* @__PURE__ */ new Set([
5955
+ ], es = /* @__PURE__ */ new Set([
5908
5956
  "Z_BUF_ERROR",
5909
5957
  "Z_DATA_ERROR",
5910
5958
  "ERR_INVALID_STATE"
5911
5959
  ]);
5912
- async function qo(e, { maximumLength: t = J } = {}) {
5913
- let n = new ReadableStream({ start(t) {
5914
- t.enqueue(e), t.close();
5915
- } }).pipeThrough(new DecompressionStream("deflate-raw")).getReader(), r = [], i = 0;
5916
- try {
5917
- for (;;) {
5918
- let { done: e, value: a } = await n.read();
5919
- if (e) break;
5920
- if (i += a.length, i > t) throw await n.cancel().catch(() => {}), Error(`ZIP entry decompressed data exceeds ${t} bytes`);
5921
- r.push(a);
5922
- }
5923
- } catch (e) {
5924
- if (e.code !== "ERR_TRAILING_JUNK_AFTER_STREAM_END") throw e;
5925
- } finally {
5926
- n.releaseLock();
5927
- }
5928
- let a = new Uint8Array(i), o = 0;
5929
- for (let e of r) a.set(e, o), o += e.length;
5930
- return a;
5931
- }
5932
- function Jo(e, t) {
5960
+ function ts(e, t) {
5933
5961
  let n = new Uint8Array(t), r = 0;
5934
5962
  for (let t of e) n.set(t, r), r += t.length;
5935
5963
  return n;
5936
5964
  }
5937
- function Yo(e) {
5965
+ function ns(e) {
5938
5966
  let t = e.fileInfo.size, n = Number.isFinite(t) ? Math.max(0, t - e.position) : 2 ** 53 - 1;
5939
- return Math.min(n, Ho);
5967
+ return Math.min(n, Xo);
5940
5968
  }
5941
- function Xo(e) {
5942
- if (e instanceof V || e instanceof W) return !0;
5969
+ function rs(e) {
5970
+ if (e instanceof U || e instanceof G || e instanceof ho) return !0;
5943
5971
  if (!(e instanceof Error)) return !1;
5944
- if (Wo.has(e.message) || Ko.has(e.code)) return !0;
5945
- for (let t of Go) if (e.message.startsWith(t)) return !0;
5972
+ if (e instanceof TypeError && e.message.startsWith("Failed to deflate ZIP entry:") || Qo.has(e.message) || es.has(e.code)) return !0;
5973
+ for (let t of $o) if (e.message.startsWith(t)) return !0;
5946
5974
  return !1;
5947
5975
  }
5948
- function Zo(e, t = J) {
5976
+ function is(e, t = Jo) {
5949
5977
  let n = [e.compressedSize, e.uncompressedSize];
5950
5978
  for (let e of n) if (!Number.isFinite(e) || e < 0 || e > t) return !1;
5951
5979
  return !0;
5952
5980
  }
5953
- function Qo() {
5981
+ function as() {
5954
5982
  return {
5955
5983
  hasDocumentEntry: !1,
5956
5984
  hasMasterSlideEntry: !1,
@@ -5958,10 +5986,10 @@ function Qo() {
5958
5986
  hasCalculationEngineEntry: !1
5959
5987
  };
5960
5988
  }
5961
- function $o(e, t) {
5989
+ function os(e, t) {
5962
5990
  t === "Index/Document.iwa" && (e.hasDocumentEntry = !0), t.startsWith("Index/MasterSlide") && (e.hasMasterSlideEntry = !0), t.startsWith("Index/Tables/") && (e.hasTablesEntry = !0), t === "Index/CalculationEngine.iwa" && (e.hasCalculationEngineEntry = !0);
5963
5991
  }
5964
- function es(e) {
5992
+ function ss(e) {
5965
5993
  if (e.hasDocumentEntry) return e.hasMasterSlideEntry ? {
5966
5994
  ext: "key",
5967
5995
  mime: "application/vnd.apple.keynote"
@@ -5973,7 +6001,7 @@ function es(e) {
5973
6001
  mime: "application/vnd.apple.pages"
5974
6002
  };
5975
6003
  }
5976
- function ts(e) {
6004
+ function cs(e) {
5977
6005
  switch (e = e.toLowerCase(), e) {
5978
6006
  case "application/epub+zip": return {
5979
6007
  ext: "epub",
@@ -6077,7 +6105,7 @@ function ts(e) {
6077
6105
  };
6078
6106
  }
6079
6107
  }
6080
- function ns() {
6108
+ function ls() {
6081
6109
  return {
6082
6110
  hasContentTypesEntry: !1,
6083
6111
  hasParsedContentTypesEntry: !1,
@@ -6089,10 +6117,10 @@ function ns() {
6089
6117
  hasThreeDimensionalModelEntry: !1
6090
6118
  };
6091
6119
  }
6092
- function rs(e, t) {
6120
+ function us(e, t) {
6093
6121
  t.startsWith("word/") && (e.hasWordDirectory = !0), t.startsWith("ppt/") && (e.hasPresentationDirectory = !0), t.startsWith("xl/") && (e.hasSpreadsheetDirectory = !0), t.startsWith("3D/") && t.endsWith(".model") && (e.hasThreeDimensionalModelEntry = !0);
6094
6122
  }
6095
- function is(e) {
6123
+ function ds(e) {
6096
6124
  if (e.hasWordDirectory) return {
6097
6125
  ext: "docx",
6098
6126
  mime: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
@@ -6110,10 +6138,10 @@ function is(e) {
6110
6138
  mime: "model/3mf"
6111
6139
  };
6112
6140
  }
6113
- function as(e) {
6114
- if (!(!e.hasContentTypesEntry || e.hasUnparseableContentTypes || e.isParsingContentTypes || e.hasParsedContentTypesEntry)) return is(e);
6141
+ function fs(e) {
6142
+ if (!(!e.hasContentTypesEntry || e.hasUnparseableContentTypes || e.isParsingContentTypes || e.hasParsedContentTypesEntry)) return ds(e);
6115
6143
  }
6116
- function os(e) {
6144
+ function ps(e) {
6117
6145
  let t = e.indexOf(".main+xml\"");
6118
6146
  if (t === -1) {
6119
6147
  let t = "application/vnd.ms-package.3dmanufacturing-3dmodel+xml";
@@ -6122,78 +6150,76 @@ function os(e) {
6122
6150
  let n = e.slice(0, t), r = n.lastIndexOf("\"");
6123
6151
  return n.slice(r + 1);
6124
6152
  }
6125
- var ss = 134695760, cs = 16, ls = 15;
6126
- function us(e, t) {
6127
- if (e.length < cs) return -1;
6128
- let n = e.length - cs;
6129
- for (let r = 0; r <= n; r++) if (z.get(e, r) === ss && z.get(e, r + 8) === t + r) return r;
6153
+ var ms = 134695760, hs = 16, gs = 15;
6154
+ function _s(e, t, { allowTruncated: n = !1 } = {}) {
6155
+ let r = e.length - (n ? 4 : hs);
6156
+ for (let n = 0; n <= r; n++) if (V.get(e, n) === ms && (e.length - n < 12 || V.get(e, n + 8) === t + n)) return n;
6130
6157
  return -1;
6131
6158
  }
6132
- async function ds(e, { shouldBuffer: t, maximumLength: n = J } = {}) {
6159
+ async function vs(e, { shouldBuffer: t, maximumLength: n = Jo } = {}) {
6133
6160
  let { syncBuffer: r } = e, { length: i } = r, a = [], o = 0;
6134
6161
  for (;;) {
6135
- let s = await e.tokenizer.peekBuffer(r, { mayBeLess: !0 }), c = us(r.subarray(0, s), o), l = c >= 0 ? 0 : s === i ? Math.min(ls, s - 1) : 0, u = c >= 0 ? c : s - l;
6162
+ let s = await e.tokenizer.peekBuffer(r, { mayBeLess: !0 }), c = _s(r.subarray(0, s), o, { allowTruncated: s < i }), l = c >= 0 ? 0 : s === i ? Math.min(gs, s - 1) : 0, u = c >= 0 ? c : s - l;
6136
6163
  if (u === 0) break;
6137
- if (o += u, o > n) throw new W(`ZIP entry data descriptor not found within ${n} bytes`);
6164
+ if (o += u, o > n) throw new G(`ZIP entry data descriptor not found within ${n} bytes`);
6138
6165
  if (t) {
6139
6166
  let t = new Uint8Array(u);
6140
6167
  await e.tokenizer.readBuffer(t), a.push(t);
6141
6168
  } else await e.tokenizer.ignore(u);
6142
6169
  if (c >= 0) break;
6143
6170
  }
6144
- if (q(e.tokenizer) || (e.knownSizeDescriptorScannedBytes += o), t) return Jo(a, o);
6171
+ if (J(e.tokenizer) || (e.knownSizeDescriptorScannedBytes += o), t) return ts(a, o);
6145
6172
  }
6146
- function fs(e, t) {
6147
- return q(e.tokenizer) ? Math.max(0, U - (e.tokenizer.position - t)) : Math.max(0, J - e.knownSizeDescriptorScannedBytes);
6173
+ function ys(e, t) {
6174
+ return J(e.tokenizer) ? Math.max(0, Wo - (e.tokenizer.position - t)) : Math.max(0, Jo - e.knownSizeDescriptorScannedBytes);
6148
6175
  }
6149
- async function ps(e, t, { shouldBuffer: n, maximumDescriptorLength: r = J } = {}) {
6150
- if (t.dataDescriptor && t.compressedSize === 0) return ds(e, {
6176
+ async function bs(e, t, { shouldBuffer: n, maximumDescriptorLength: r = Jo } = {}) {
6177
+ if (t.dataDescriptor && t.compressedSize === 0) return vs(e, {
6151
6178
  shouldBuffer: n,
6152
6179
  maximumLength: r
6153
6180
  });
6154
6181
  if (!n) {
6155
- await G(e.tokenizer, t.compressedSize, {
6156
- maximumLength: q(e.tokenizer) ? J : e.tokenizer.fileInfo.size,
6182
+ await K(e.tokenizer, t.compressedSize, {
6183
+ maximumLength: J(e.tokenizer) ? Jo : e.tokenizer.fileInfo.size,
6157
6184
  reason: "ZIP entry compressed data"
6158
6185
  });
6159
6186
  return;
6160
6187
  }
6161
- let i = Yo(e.tokenizer);
6188
+ if (t.compressedSize > Zo) throw new ho("maxCompressedSize", t.compressedSize, Zo);
6189
+ let i = ns(e.tokenizer);
6162
6190
  if (!Number.isFinite(t.compressedSize) || t.compressedSize < 0 || t.compressedSize > i) throw Error(`ZIP entry compressed data exceeds ${i} bytes`);
6163
6191
  let a = new Uint8Array(t.compressedSize);
6164
6192
  return await e.tokenizer.readBuffer(a), a;
6165
6193
  }
6166
- So.prototype.inflate = async function(e, t, n) {
6167
- if (e.compressedMethod === 0) return n(t);
6168
- if (e.compressedMethod !== 8) throw Error(`Unsupported ZIP compression method: ${e.compressedMethod}`);
6169
- return n(await qo(t, { maximumLength: J }));
6170
- }, So.prototype.unzip = async function(e) {
6171
- let t = !1, n = 0, r = this.tokenizer.position;
6172
- this.knownSizeDescriptorScannedBytes = 0;
6173
- do {
6174
- if (Bo(this.tokenizer, r, 16777216)) throw new W(`ZIP stream probing exceeds ${U} bytes`);
6175
- let i = await this.readLocalFileHeader();
6176
- if (!i) break;
6177
- if (n++, n > Vo) throw Error(`ZIP entry count exceeds ${Vo}`);
6178
- let a = e(i);
6179
- t = !!a.stop, await this.tokenizer.ignore(i.extraFieldLength);
6180
- let o = await ps(this, i, {
6181
- shouldBuffer: !!a.handler,
6182
- maximumDescriptorLength: Math.min(J, fs(this, r))
6183
- });
6184
- if (a.handler && await this.inflate(i, o, a.handler), i.dataDescriptor) {
6185
- let e = new Uint8Array(cs);
6186
- if (await this.tokenizer.readBuffer(e), z.get(e, 0) !== ss) throw Error(`Expected data-descriptor-signature at position ${this.tokenizer.position - e.length}`);
6187
- }
6188
- if (Bo(this.tokenizer, r, 16777216)) throw new W(`ZIP stream probing exceeds ${U} bytes`);
6189
- } while (!t);
6194
+ var xs = class extends To {
6195
+ async unzip(e) {
6196
+ let t = !1, n = 0, r = this.tokenizer.position;
6197
+ this.knownSizeDescriptorScannedBytes = 0;
6198
+ do {
6199
+ if (qo(this.tokenizer, r, 16777216)) throw new G(`ZIP stream probing exceeds ${Wo} bytes`);
6200
+ let i = await this.readLocalFileHeader();
6201
+ if (!i) break;
6202
+ if (n++, n > Yo) throw Error(`ZIP entry count exceeds ${Yo}`);
6203
+ let a = e(i);
6204
+ t = !!a.stop, await this.tokenizer.ignore(i.extraFieldLength);
6205
+ let o = await bs(this, i, {
6206
+ shouldBuffer: !!a.handler,
6207
+ maximumDescriptorLength: Math.min(Jo, ys(this, r))
6208
+ });
6209
+ if (a.handler && await this.inflate(i, o, a.handler), i.dataDescriptor) {
6210
+ let e = new Uint8Array(hs);
6211
+ if (await this.tokenizer.readBuffer(e), V.get(e, 0) !== ms) throw Error(`Expected data-descriptor-signature at position ${this.tokenizer.position - e.length}`);
6212
+ }
6213
+ if (qo(this.tokenizer, r, 16777216)) throw new G(`ZIP stream probing exceeds ${Wo} bytes`);
6214
+ } while (!t);
6215
+ }
6190
6216
  };
6191
- async function ms(e) {
6192
- let t, n = ns(), r = Qo();
6217
+ async function Ss(e) {
6218
+ let t, n = ls(), r = as();
6193
6219
  try {
6194
- await new So(e).unzip((e) => {
6195
- if (rs(n, e.filename), $o(r, e.filename), r.hasDocumentEntry && (r.hasMasterSlideEntry || r.hasTablesEntry)) return t = es(r), { stop: !0 };
6196
- let i = e.filename === "[Content_Types].xml", a = as(n);
6220
+ await new xs(e, { maxUncompressedSize: Zo }).unzip((e) => {
6221
+ if (us(n, e.filename), os(r, e.filename), r.hasDocumentEntry && (r.hasMasterSlideEntry || r.hasTablesEntry)) return t = ss(r), { stop: !0 };
6222
+ let i = e.filename === "[Content_Types].xml", a = fs(n);
6197
6223
  if (!i && a) return t = a, { stop: !0 };
6198
6224
  switch (e.filename) {
6199
6225
  case "META-INF/mozilla.rsa": return t = {
@@ -6204,16 +6230,16 @@ async function ms(e) {
6204
6230
  ext: "jar",
6205
6231
  mime: "application/java-archive"
6206
6232
  }, { stop: !0 };
6207
- case "mimetype": return Zo(e, Uo) ? {
6233
+ case "mimetype": return is(e, Zo) ? {
6208
6234
  async handler(e) {
6209
- t = ts(new TextDecoder("utf-8").decode(e).trim());
6235
+ t = cs(new TextDecoder("utf-8").decode(e).trim());
6210
6236
  },
6211
6237
  stop: !0
6212
6238
  } : {};
6213
- case "[Content_Types].xml": return n.hasContentTypesEntry = !0, Zo(e, Uo) ? (n.isParsingContentTypes = !0, {
6239
+ case "[Content_Types].xml": return n.hasContentTypesEntry = !0, is(e, Zo) ? (n.isParsingContentTypes = !0, {
6214
6240
  async handler(e) {
6215
- let r = os(new TextDecoder("utf-8").decode(e));
6216
- r && (t = ts(r)), n.hasParsedContentTypesEntry = !0, n.isParsingContentTypes = !1;
6241
+ let r = ps(new TextDecoder("utf-8").decode(e));
6242
+ r && (t = cs(r)), n.hasParsedContentTypesEntry = !0, n.isParsingContentTypes = !1;
6217
6243
  },
6218
6244
  stop: !0
6219
6245
  }) : (n.hasUnparseableContentTypes = !0, {});
@@ -6224,24 +6250,23 @@ async function ms(e) {
6224
6250
  }
6225
6251
  });
6226
6252
  } catch (e) {
6227
- if (!Xo(e)) throw e;
6228
- n.isParsingContentTypes && (n.isParsingContentTypes = !1, n.hasUnparseableContentTypes = !0), !t && (e instanceof V || e instanceof W) && !n.hasContentTypesEntry && (t = is(n));
6253
+ if (!rs(e)) throw e;
6254
+ n.isParsingContentTypes && (n.isParsingContentTypes = !1, n.hasUnparseableContentTypes = !0), !t && (e instanceof U || e instanceof G) && !n.hasContentTypesEntry && (t = ds(n));
6229
6255
  }
6230
- let i = q(e) && r.hasDocumentEntry && !r.hasMasterSlideEntry && !r.hasTablesEntry && !r.hasCalculationEngineEntry ? void 0 : es(r);
6231
- return t ?? as(n) ?? i ?? {
6256
+ let i = J(e) && r.hasDocumentEntry && !r.hasMasterSlideEntry && !r.hasTablesEntry && !r.hasCalculationEngineEntry ? void 0 : ss(r);
6257
+ return t ?? fs(n) ?? i ?? {
6232
6258
  ext: "zip",
6233
6259
  mime: "application/zip"
6234
6260
  };
6235
6261
  }
6236
- //#endregion
6237
- //#region node_modules/file-type/source/detectors/ebml.js
6238
- var hs = 64, gs = 1048576, _s = 256;
6239
- async function vs(e) {
6262
+ // node_modules/file-type/source/detectors/ebml.js
6263
+ var Cs = 64, ws = 1048576, Ts = 256;
6264
+ async function Es(e) {
6240
6265
  async function t() {
6241
- let t = await e.peekNumber(Ua), n = 128, r = 0;
6242
- for (; (t & n) === 0 && n !== 0;) ++r, n >>= 1;
6266
+ let t = await e.peekNumber(Va), n = 128, r = 0;
6267
+ for (; n !== 0 && (t & n) === 0;) ++r, n >>= 1;
6243
6268
  let i = new Uint8Array(r + 1);
6244
- return await zo(e, i, void 0, {
6269
+ return await Ko(e, i, void 0, {
6245
6270
  maximumLength: i.length,
6246
6271
  reason: "EBML field"
6247
6272
  }), i;
@@ -6251,22 +6276,22 @@ async function vs(e) {
6251
6276
  n[0] ^= 128 >> n.length - 1;
6252
6277
  let r = Math.min(6, n.length), i = new DataView(e.buffer), a = new DataView(n.buffer, n.length - r, r);
6253
6278
  return {
6254
- id: Mo(i),
6255
- len: Mo(a)
6279
+ id: Ro(i),
6280
+ len: Ro(a)
6256
6281
  };
6257
6282
  }
6258
6283
  async function r(t) {
6259
6284
  let r = 0;
6260
6285
  for (; t > 0;) {
6261
- if (r++, r > _s || Bo(e, a, 16777216)) return;
6286
+ if (r++, r > Ts || qo(e, a, 16777216)) return;
6262
6287
  let i = e.position, o = await n();
6263
6288
  if (o.id === 17026) {
6264
- if (o.len > hs) return;
6265
- let t = Ro(o.len, hs, "EBML DocType");
6266
- return (await e.readToken(new B(t))).replaceAll(/\0.*$/gv, "");
6289
+ if (o.len > Cs) return;
6290
+ let t = Go(o.len, Cs, "EBML DocType");
6291
+ return (await e.readToken(new H(t))).split("\0", 1)[0];
6267
6292
  }
6268
- if (q(e) && (!Number.isFinite(o.len) || o.len < 0 || o.len > gs) || (await G(e, o.len, {
6269
- maximumLength: q(e) ? gs : e.fileInfo.size,
6293
+ if (J(e) && (!Number.isFinite(o.len) || o.len < 0 || o.len > ws) || (await K(e, o.len, {
6294
+ maximumLength: J(e) ? ws : e.fileInfo.size,
6270
6295
  reason: "EBML payload"
6271
6296
  }), --t, e.position <= i)) return;
6272
6297
  }
@@ -6283,13 +6308,12 @@ async function vs(e) {
6283
6308
  };
6284
6309
  }
6285
6310
  }
6286
- //#endregion
6287
- //#region node_modules/file-type/source/detectors/png.js
6288
- var ys = 512, bs = 16777216, xs = 1048576;
6289
- function Ss(e) {
6311
+ // node_modules/file-type/source/detectors/png.js
6312
+ var Ds = 512, Os = 16777216, ks = 1048576;
6313
+ function As(e) {
6290
6314
  return !!(e.codePointAt(0) & 32);
6291
6315
  }
6292
- async function Cs(e) {
6316
+ async function js(e) {
6293
6317
  let t = {
6294
6318
  ext: "png",
6295
6319
  mime: "image/png"
@@ -6300,13 +6324,13 @@ async function Cs(e) {
6300
6324
  await e.ignore(8);
6301
6325
  async function r() {
6302
6326
  return {
6303
- length: await e.readToken(Ka),
6304
- type: await e.readToken(new B(4, "latin1"))
6327
+ length: await e.readToken(Wa),
6328
+ type: await e.readToken(new H(4, "latin1"))
6305
6329
  };
6306
6330
  }
6307
- let i = q(e), a = e.position, o = 0, s = !1;
6331
+ let i = J(e), a = e.position, o = 0, s = !1;
6308
6332
  do {
6309
- if (o++, o > ys || Bo(e, a, bs)) break;
6333
+ if (o++, o > Ds || qo(e, a, Os)) break;
6310
6334
  let c = e.position, l = await r();
6311
6335
  if (l.length < 0) return;
6312
6336
  if (l.type === "IHDR") {
@@ -6318,14 +6342,14 @@ async function Cs(e) {
6318
6342
  case "acTL": return n;
6319
6343
  default:
6320
6344
  if (!s && l.type !== "CgBI") return;
6321
- if (i && l.length > xs) return s && Ss(l.type) ? t : void 0;
6345
+ if (i && l.length > ks) return s && As(l.type) ? t : void 0;
6322
6346
  try {
6323
- await G(e, l.length + 4, {
6347
+ await K(e, l.length + 4, {
6324
6348
  maximumLength: i ? 1048580 : e.fileInfo.size,
6325
6349
  reason: "PNG chunk payload"
6326
6350
  });
6327
6351
  } catch (e) {
6328
- if (!i && (e instanceof W || e instanceof V)) return t;
6352
+ if (!i && (e instanceof G || e instanceof U)) return t;
6329
6353
  throw e;
6330
6354
  }
6331
6355
  }
@@ -6333,34 +6357,33 @@ async function Cs(e) {
6333
6357
  } while (e.position + 8 < e.fileInfo.size);
6334
6358
  return t;
6335
6359
  }
6336
- //#endregion
6337
- //#region node_modules/file-type/source/detectors/asf.js
6338
- var ws = 512, Ts = 1048576;
6339
- async function Es(e) {
6360
+ // node_modules/file-type/source/detectors/asf.js
6361
+ var Ms = 512, Ns = 1048576;
6362
+ async function Ps(e) {
6340
6363
  let t = !1;
6341
6364
  try {
6342
6365
  async function n() {
6343
6366
  let t = /* @__PURE__ */ new Uint8Array(16);
6344
- return await zo(e, t, void 0, {
6367
+ return await Ko(e, t, void 0, {
6345
6368
  maximumLength: t.length,
6346
6369
  reason: "ASF header GUID"
6347
6370
  }), {
6348
6371
  id: t,
6349
- size: Number(await e.readToken(qa))
6372
+ size: Number(await e.readToken(Ga))
6350
6373
  };
6351
6374
  }
6352
- await G(e, 30, {
6375
+ await K(e, 30, {
6353
6376
  maximumLength: 30,
6354
6377
  reason: "ASF header prelude"
6355
6378
  });
6356
- let r = q(e), i = e.position, a = 0;
6357
- for (; e.position + 24 < e.fileInfo.size && (a++, !(a > ws || Bo(e, i, 16777216)));) {
6379
+ let r = J(e), i = e.position, a = 0;
6380
+ for (; e.position + 24 < e.fileInfo.size && (a++, !(a > Ms || qo(e, i, 16777216)));) {
6358
6381
  let i = e.position, a = await n(), o = a.size - 24;
6359
6382
  if (!Number.isFinite(o) || o < 0) {
6360
6383
  t = !0;
6361
6384
  break;
6362
6385
  }
6363
- if (K(a.id, [
6386
+ if (q(a.id, [
6364
6387
  145,
6365
6388
  7,
6366
6389
  220,
@@ -6379,10 +6402,10 @@ async function Es(e) {
6379
6402
  101
6380
6403
  ])) {
6381
6404
  let t = /* @__PURE__ */ new Uint8Array(16);
6382
- if (o -= await zo(e, t, void 0, {
6405
+ if (o -= await Ko(e, t, void 0, {
6383
6406
  maximumLength: t.length,
6384
6407
  reason: "ASF stream type GUID"
6385
- }), K(t, [
6408
+ }), q(t, [
6386
6409
  64,
6387
6410
  158,
6388
6411
  105,
@@ -6403,7 +6426,7 @@ async function Es(e) {
6403
6426
  ext: "asf",
6404
6427
  mime: "audio/x-ms-asf"
6405
6428
  };
6406
- if (K(t, [
6429
+ if (q(t, [
6407
6430
  192,
6408
6431
  239,
6409
6432
  25,
@@ -6426,20 +6449,16 @@ async function Es(e) {
6426
6449
  };
6427
6450
  break;
6428
6451
  }
6429
- if (r && o > Ts) {
6430
- t = !0;
6431
- break;
6432
- }
6433
- if (await G(e, o, {
6434
- maximumLength: r ? Ts : e.fileInfo.size,
6452
+ if (r && o > Ns || (await K(e, o, {
6453
+ maximumLength: r ? Ns : e.fileInfo.size,
6435
6454
  reason: "ASF header payload"
6436
- }), e.position <= i) {
6455
+ }), e.position <= i)) {
6437
6456
  t = !0;
6438
6457
  break;
6439
6458
  }
6440
6459
  }
6441
6460
  } catch (n) {
6442
- if (n instanceof V || n instanceof W) q(e) && (t = !0);
6461
+ if (n instanceof U || n instanceof G) J(e) && (t = !0);
6443
6462
  else throw n;
6444
6463
  }
6445
6464
  if (!t) return {
@@ -6447,36 +6466,35 @@ async function Es(e) {
6447
6466
  mime: "application/vnd.ms-asf"
6448
6467
  };
6449
6468
  }
6450
- //#endregion
6451
- //#region node_modules/file-type/source/index.js
6452
- var Ds = 4100, Os = 4096, ks = U, As = 1, js = 100, Ms = U, Ns = 512, Ps = 256, Fs = 1048576, Is = U;
6453
- function Ls(e) {
6454
- return Number.isFinite(e) ? Math.max(1, Math.trunc(e)) : Ds;
6469
+ // node_modules/file-type/source/index.js
6470
+ var Fs = 4100, Is = 4096, Ls = Wo, Rs = 1, zs = 100, Bs = Wo, Vs = 512, Hs = 256, Us = 1048576, Ws = Wo;
6471
+ function Gs(e) {
6472
+ return Number.isFinite(e) ? Math.max(1, Math.trunc(e)) : Fs;
6455
6473
  }
6456
- function Rs(e) {
6457
- return Number.isFinite(e) ? Math.max(0, Math.min(Os, Math.trunc(e))) : 0;
6474
+ function Ks(e) {
6475
+ return Number.isFinite(e) ? Math.max(0, Math.min(Is, Math.trunc(e))) : 0;
6458
6476
  }
6459
- function zs(e) {
6477
+ function qs(e) {
6460
6478
  return Number.isFinite(e) ? Math.max(0, e) : 2 ** 53 - 1;
6461
6479
  }
6462
- function Bs(e) {
6480
+ function Js(e) {
6463
6481
  return import(
6464
6482
  /* @vite-ignore */
6465
6483
  /* webpackIgnore: true */
6466
6484
  e
6467
6485
  );
6468
6486
  }
6469
- function Vs(e) {
6487
+ function Ys(e) {
6470
6488
  return e.pipeThrough(new TransformStream());
6471
6489
  }
6472
- function Hs(e, t) {
6490
+ function Xs(e, t) {
6473
6491
  return t === void 0 ? e.read() : (t.throwIfAborted(), Promise.race([e.read(), new Promise((n, r) => {
6474
6492
  t.addEventListener("abort", () => {
6475
6493
  r(t.reason), e.cancel(t.reason).catch(() => {});
6476
6494
  }, { once: !0 });
6477
6495
  })]));
6478
6496
  }
6479
- function Us(e, t) {
6497
+ function Zs(e, t) {
6480
6498
  let n = e.getReader(), r = 0, i = !1, a = !1, o = async (e) => {
6481
6499
  i || a || (a = !0, await n.cancel(e));
6482
6500
  };
@@ -6492,23 +6510,23 @@ function Us(e, t) {
6492
6510
  return;
6493
6511
  }
6494
6512
  let c = t - r;
6495
- if (s.length > c) {
6496
- e.enqueue(s.subarray(0, c)), r += c, e.close(), await o();
6497
- return;
6498
- }
6499
- e.enqueue(s), r += s.length;
6513
+ s.length > c ? (e.enqueue(s.subarray(0, c)), r += c, e.close(), await o()) : (e.enqueue(s), r += s.length);
6500
6514
  },
6501
6515
  async cancel(e) {
6502
6516
  await o(e);
6503
6517
  }
6504
6518
  });
6505
6519
  }
6506
- async function Ws(e, t) {
6507
- return new Gs(t).fromBuffer(e);
6520
+ async function Qs(e, t) {
6521
+ return new $s(t).fromBuffer(e);
6508
6522
  }
6509
- var Gs = class e {
6523
+ var $s = class e {
6524
+ buffer;
6525
+ tokenizer;
6526
+ detectionReentryCount;
6510
6527
  constructor(e) {
6511
- let t = Rs(e?.mpegOffsetTolerance);
6528
+ let t = Ks(e?.mpegOffsetTolerance), n = e?.maxBufferSize ?? Infinity;
6529
+ if (n !== Infinity && (!Number.isSafeInteger(n) || n <= 0)) throw RangeError("maxBufferSize must be a positive safe integer or Infinity");
6512
6530
  this.options = {
6513
6531
  ...e,
6514
6532
  mpegOffsetTolerance: t
@@ -6516,19 +6534,22 @@ var Gs = class e {
6516
6534
  ...this.options.customDetectors ?? [],
6517
6535
  {
6518
6536
  id: "core",
6519
- detect: this.detectConfident
6537
+ detect: (e) => this.detectConfident(e)
6520
6538
  },
6521
6539
  {
6522
6540
  id: "core.imprecise",
6523
- detect: this.detectImprecise
6541
+ detect: (e) => this.detectImprecise(e)
6524
6542
  }
6525
- ], this.tokenizerOptions = { abortSignal: this.options.signal }, this.gzipProbeDepth = 0;
6543
+ ], this.tokenizerOptions = {
6544
+ abortSignal: this.options.signal,
6545
+ maxBufferSize: n
6546
+ }, this.gzipProbeDepth = 0;
6526
6547
  }
6527
6548
  getTokenizerOptions() {
6528
6549
  return { ...this.tokenizerOptions };
6529
6550
  }
6530
6551
  createTokenizerFromWebStream(e) {
6531
- return oo(Vs(e), this.getTokenizerOptions());
6552
+ return so(Ys(e), this.getTokenizerOptions());
6532
6553
  }
6533
6554
  async parseTokenizer(e, t = 0) {
6534
6555
  this.detectionReentryCount = t;
@@ -6538,7 +6559,7 @@ var Gs = class e {
6538
6559
  try {
6539
6560
  r = await t.detect(e);
6540
6561
  } catch (e) {
6541
- if (e instanceof V || e instanceof W) return;
6562
+ if (e instanceof U || e instanceof G) return;
6542
6563
  throw e;
6543
6564
  }
6544
6565
  if (r) return r;
@@ -6555,11 +6576,11 @@ var Gs = class e {
6555
6576
  async fromBuffer(e) {
6556
6577
  if (!(e instanceof Uint8Array || e instanceof ArrayBuffer)) throw TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``);
6557
6578
  let t = e instanceof Uint8Array ? e : new Uint8Array(e);
6558
- if (t?.length > 1) return this.fromTokenizer(so(t, this.getTokenizerOptions()));
6579
+ if (t?.length > 1) return this.fromTokenizer(co(t, this.getTokenizerOptions()));
6559
6580
  }
6560
6581
  async fromBlob(e) {
6561
6582
  this.options.signal?.throwIfAborted();
6562
- let t = co(e, this.getTokenizerOptions());
6583
+ let t = lo(e, this.getTokenizerOptions());
6563
6584
  return this.fromTokenizer(t);
6564
6585
  }
6565
6586
  async fromStream(e) {
@@ -6569,26 +6590,24 @@ var Gs = class e {
6569
6590
  }
6570
6591
  async fromFile(e) {
6571
6592
  this.options.signal?.throwIfAborted();
6572
- let [{ default: t }, { FileTokenizer: n }] = await Promise.all([Bs("node:fs/promises"), Bs("strtok3")]), r = await t.open(e, t.constants.O_RDONLY | t.constants.O_NONBLOCK), i = await r.stat();
6573
- if (!i.isFile()) {
6574
- await r.close();
6575
- return;
6593
+ let { fromFile: t, NotRegularFileError: n } = await Js("strtok3"), r;
6594
+ try {
6595
+ r = await t(e, {
6596
+ ...this.getTokenizerOptions(),
6597
+ regularFileOnly: !0
6598
+ });
6599
+ } catch (e) {
6600
+ if (e instanceof n) return;
6601
+ throw e;
6576
6602
  }
6577
- let a = new n(r, {
6578
- ...this.getTokenizerOptions(),
6579
- fileInfo: {
6580
- path: e,
6581
- size: i.size
6582
- }
6583
- });
6584
- return this.fromTokenizer(a);
6603
+ return this.fromTokenizer(r);
6585
6604
  }
6586
6605
  async toDetectionStream(e, t) {
6587
6606
  this.options.signal?.throwIfAborted();
6588
- let n = Ls(t?.sampleSize ?? 4100), r, i = !1, a = e.getReader(), o = [], s = 0;
6607
+ let n = Gs(t?.sampleSize ?? 4100), r, i = !1, a = e.getReader(), o = [], s = 0;
6589
6608
  try {
6590
6609
  for (; s < n;) {
6591
- let { value: e, done: t } = await Hs(a, this.options.signal);
6610
+ let { value: e, done: t } = await Xs(a, this.options.signal);
6592
6611
  if (t || !e) {
6593
6612
  i = !0;
6594
6613
  break;
@@ -6596,18 +6615,18 @@ var Gs = class e {
6596
6615
  o.push(e), s += e.length;
6597
6616
  }
6598
6617
  if (!i && s === n) {
6599
- let { value: e, done: t } = await Hs(a, this.options.signal);
6618
+ let { value: e, done: t } = await Xs(a, this.options.signal);
6600
6619
  t || !e ? i = !0 : (o.push(e), s += e.length);
6601
6620
  }
6602
6621
  } finally {
6603
6622
  a.releaseLock();
6604
6623
  }
6605
6624
  if (s > 0) {
6606
- let e = o.length === 1 ? o[0] : jo(o);
6625
+ let e = o.length === 1 ? o[0] : Lo(o);
6607
6626
  try {
6608
6627
  r = await this.fromBuffer(e.subarray(0, n));
6609
6628
  } catch (e) {
6610
- if (!(e instanceof V)) throw e;
6629
+ if (!(e instanceof U)) throw e;
6611
6630
  r = void 0;
6612
6631
  }
6613
6632
  !i && r?.ext === "pages" && (r = {
@@ -6626,16 +6645,16 @@ var Gs = class e {
6626
6645
  return l.fileType = r, l;
6627
6646
  }
6628
6647
  async detectGzip(t) {
6629
- if (this.gzipProbeDepth >= As) return {
6648
+ if (this.gzipProbeDepth >= Rs) return {
6630
6649
  ext: "gz",
6631
6650
  mime: "application/gzip"
6632
6651
  };
6633
- let n = Us(new To(t).inflate(), ks), r = q(t), i, a, o, s;
6652
+ let n = Zs(new uo(t).inflate(), Ls), r = J(t), i, a, o, s;
6634
6653
  if (r) {
6635
6654
  let t = new AbortController();
6636
6655
  i = setTimeout(() => {
6637
- t.abort(new DOMException(`Operation timed out after ${js} ms`, "TimeoutError"));
6638
- }, js), a = this.options.signal === void 0 ? t.signal : AbortSignal.any([this.options.signal, t.signal]), o = new e({
6656
+ t.abort(new DOMException(`Operation timed out after ${zs} ms`, "TimeoutError"));
6657
+ }, zs), a = this.options.signal === void 0 ? t.signal : AbortSignal.any([this.options.signal, t.signal]), o = new e({
6639
6658
  ...this.options,
6640
6659
  signal: a
6641
6660
  }), o.gzipProbeDepth = this.gzipProbeDepth + 1;
@@ -6656,13 +6675,13 @@ var Gs = class e {
6656
6675
  };
6657
6676
  }
6658
6677
  check(e, t) {
6659
- return K(this.buffer, e, t);
6678
+ return q(this.buffer, e, t);
6660
6679
  }
6661
6680
  checkString(e, t) {
6662
- return this.check(No(e, t?.encoding), t);
6681
+ return this.check(zo(e, t?.encoding), t);
6663
6682
  }
6664
- detectConfident = async (e) => {
6665
- if (this.buffer = new Uint8Array(Ds), e.fileInfo.size === void 0 && (e.fileInfo.size = 2 ** 53 - 1), this.tokenizer = e, q(e) && (await e.peekBuffer(this.buffer, {
6683
+ async detectConfident(e) {
6684
+ if (this.buffer = new Uint8Array(Fs), e.fileInfo.size === void 0 && (e.fileInfo.size = 2 ** 53 - 1), this.tokenizer = e, J(e) && (await e.peekBuffer(this.buffer, {
6666
6685
  length: 3,
6667
6686
  mayBeLess: !0
6668
6687
  }), this.check([
@@ -6715,7 +6734,7 @@ var Gs = class e {
6715
6734
  239,
6716
6735
  187,
6717
6736
  191
6718
- ])) return this.detectionReentryCount >= Ps ? void 0 : (this.detectionReentryCount++, await this.tokenizer.ignore(3), this.detectConfident(e));
6737
+ ])) return this.detectionReentryCount >= Hs ? void 0 : (this.detectionReentryCount++, await this.tokenizer.ignore(3), this.detectConfident(e));
6719
6738
  if (this.check([
6720
6739
  71,
6721
6740
  73,
@@ -6746,26 +6765,26 @@ var Gs = class e {
6746
6765
  mime: "application/x-bzip2"
6747
6766
  };
6748
6767
  if (this.checkString("ID3")) {
6749
- await G(e, 6, {
6768
+ await K(e, 6, {
6750
6769
  maximumLength: 6,
6751
6770
  reason: "ID3 header prefix"
6752
6771
  });
6753
- let t = await e.readToken(Fo), n = q(e);
6754
- if (!Number.isFinite(t) || t < 0 || n && (t > Ms || e.position + t > Ms)) return;
6772
+ let t = await e.readToken(Vo), n = J(e);
6773
+ if (!Number.isFinite(t) || t < 0 || n && (t > Bs || e.position + t > Bs)) return;
6755
6774
  if (e.position + t > e.fileInfo.size) return n ? void 0 : {
6756
6775
  ext: "mp3",
6757
6776
  mime: "audio/mpeg"
6758
6777
  };
6759
6778
  try {
6760
- await G(e, t, {
6761
- maximumLength: n ? Ms : e.fileInfo.size,
6779
+ await K(e, t, {
6780
+ maximumLength: n ? Bs : e.fileInfo.size,
6762
6781
  reason: "ID3 payload"
6763
6782
  });
6764
6783
  } catch (e) {
6765
- if (e instanceof V) return;
6784
+ if (e instanceof U) return;
6766
6785
  throw e;
6767
6786
  }
6768
- return this.detectionReentryCount >= Ps ? void 0 : (this.detectionReentryCount++, this.parseTokenizer(e, this.detectionReentryCount));
6787
+ return this.detectionReentryCount >= Hs ? void 0 : (this.detectionReentryCount++, this.parseTokenizer(e, this.detectionReentryCount));
6769
6788
  }
6770
6789
  if (this.checkString("MP+")) return {
6771
6790
  ext: "mpc",
@@ -6811,6 +6830,10 @@ var Gs = class e {
6811
6830
  ext: "aif",
6812
6831
  mime: "audio/aiff"
6813
6832
  };
6833
+ if (this.checkString("caff") && this.check([0, 1], { offset: 4 }) && this.checkString("desc", { offset: 8 })) return {
6834
+ ext: "caf",
6835
+ mime: "audio/x-caf"
6836
+ };
6814
6837
  if (this.checkString("icns", { offset: 0 })) return {
6815
6838
  ext: "icns",
6816
6839
  mime: "image/icns"
@@ -6820,11 +6843,11 @@ var Gs = class e {
6820
6843
  75,
6821
6844
  3,
6822
6845
  4
6823
- ])) return ms(e);
6846
+ ])) return Ss(e);
6824
6847
  if (this.checkString("OggS")) {
6825
6848
  await e.ignore(28);
6826
6849
  let t = /* @__PURE__ */ new Uint8Array(8);
6827
- return await e.readBuffer(t), K(t, [
6850
+ return await e.readBuffer(t), q(t, [
6828
6851
  79,
6829
6852
  112,
6830
6853
  117,
@@ -6836,7 +6859,7 @@ var Gs = class e {
6836
6859
  ]) ? {
6837
6860
  ext: "opus",
6838
6861
  mime: "audio/ogg; codecs=opus"
6839
- } : K(t, [
6862
+ } : q(t, [
6840
6863
  128,
6841
6864
  116,
6842
6865
  104,
@@ -6847,7 +6870,7 @@ var Gs = class e {
6847
6870
  ]) ? {
6848
6871
  ext: "ogv",
6849
6872
  mime: "video/ogg"
6850
- } : K(t, [
6873
+ } : q(t, [
6851
6874
  1,
6852
6875
  118,
6853
6876
  105,
@@ -6858,7 +6881,7 @@ var Gs = class e {
6858
6881
  ]) ? {
6859
6882
  ext: "ogm",
6860
6883
  mime: "video/ogg"
6861
- } : K(t, [
6884
+ } : q(t, [
6862
6885
  127,
6863
6886
  70,
6864
6887
  76,
@@ -6867,7 +6890,7 @@ var Gs = class e {
6867
6890
  ]) ? {
6868
6891
  ext: "oga",
6869
6892
  mime: "audio/ogg"
6870
- } : K(t, [
6893
+ } : q(t, [
6871
6894
  83,
6872
6895
  112,
6873
6896
  101,
@@ -6878,7 +6901,7 @@ var Gs = class e {
6878
6901
  ]) ? {
6879
6902
  ext: "spx",
6880
6903
  mime: "audio/ogg"
6881
- } : K(t, [
6904
+ } : q(t, [
6882
6905
  1,
6883
6906
  118,
6884
6907
  111,
@@ -6894,7 +6917,15 @@ var Gs = class e {
6894
6917
  mime: "application/ogg"
6895
6918
  };
6896
6919
  }
6897
- if (this.check([80, 75]) && (this.buffer[2] === 3 || this.buffer[2] === 5 || this.buffer[2] === 7) && (this.buffer[3] === 4 || this.buffer[3] === 6 || this.buffer[3] === 8)) return {
6920
+ if (this.check([80, 75]) && [
6921
+ 3,
6922
+ 5,
6923
+ 7
6924
+ ].includes(this.buffer[2]) && [
6925
+ 4,
6926
+ 6,
6927
+ 8
6928
+ ].includes(this.buffer[3])) return {
6898
6929
  ext: "zip",
6899
6930
  mime: "application/zip"
6900
6931
  };
@@ -6989,7 +7020,7 @@ var Gs = class e {
6989
7020
  69,
6990
7021
  223,
6991
7022
  163
6992
- ])) return vs(e);
7023
+ ])) return Es(e);
6993
7024
  if (this.checkString("SQLi")) return {
6994
7025
  ext: "sqlite",
6995
7026
  mime: "application/x-sqlite3"
@@ -7171,12 +7202,12 @@ var Gs = class e {
7171
7202
  186,
7172
7203
  190
7173
7204
  ])) {
7174
- let e = Ga.get(this.buffer, 4), t = Wa.get(this.buffer, 6);
7205
+ let e = Ua.get(this.buffer, 4);
7175
7206
  if (e > 0 && e <= 30) return {
7176
7207
  ext: "macho",
7177
7208
  mime: "application/x-mach-binary"
7178
7209
  };
7179
- if (t > 30) return {
7210
+ if (Ha.get(this.buffer, 6) > 30) return {
7180
7211
  ext: "class",
7181
7212
  mime: "application/java-vm"
7182
7213
  };
@@ -7231,7 +7262,7 @@ var Gs = class e {
7231
7262
  mime: "model/stl"
7232
7263
  };
7233
7264
  if (this.checkString("AC")) {
7234
- let e = new B(4, "latin1").get(this.buffer, 2);
7265
+ let e = new H(4, "latin1").get(this.buffer, 2);
7235
7266
  if (/^\d+$/v.test(e) && e >= 1e3 && e <= 1050) return {
7236
7267
  ext: "dwg",
7237
7268
  mime: "image/vnd.dwg"
@@ -7245,7 +7276,7 @@ var Gs = class e {
7245
7276
  ext: "blend",
7246
7277
  mime: "application/x-blender"
7247
7278
  };
7248
- if (this.checkString("!<arch>")) return await e.ignore(8), await e.readToken(new B(13, "ascii")) === "debian-binary" ? {
7279
+ if (this.checkString("!<arch>")) return await e.ignore(8), await e.readToken(new H(13, "ascii")) === "debian-binary" ? {
7249
7280
  ext: "deb",
7250
7281
  mime: "application/x-deb"
7251
7282
  } : {
@@ -7271,7 +7302,7 @@ var Gs = class e {
7271
7302
  10,
7272
7303
  26,
7273
7304
  10
7274
- ])) return Cs(e);
7305
+ ])) return js(e);
7275
7306
  if (this.check([
7276
7307
  65,
7277
7308
  82,
@@ -7341,7 +7372,7 @@ var Gs = class e {
7341
7372
  mime: "image/x-xcf"
7342
7373
  };
7343
7374
  if (this.checkString("ftyp", { offset: 4 }) && this.buffer[8] & 96) {
7344
- let e = new B(4, "latin1").get(this.buffer, 8).replace("\0", " ").trim();
7375
+ let e = new H(4, "latin1").get(this.buffer, 8).replace("\0", " ").trim();
7345
7376
  switch (e) {
7346
7377
  case "avif":
7347
7378
  case "avis": return {
@@ -7489,7 +7520,7 @@ var Gs = class e {
7489
7520
  17,
7490
7521
  166,
7491
7522
  217
7492
- ])) return Es(e);
7523
+ ])) return Ps(e);
7493
7524
  if (this.check([
7494
7525
  171,
7495
7526
  75,
@@ -7563,7 +7594,7 @@ var Gs = class e {
7563
7594
  10,
7564
7595
  135,
7565
7596
  10
7566
- ])) switch (await e.ignore(20), await e.readToken(new B(4, "ascii"))) {
7597
+ ])) switch (await e.ignore(20), await e.readToken(new H(4, "ascii"))) {
7567
7598
  case "jp2 ": return {
7568
7599
  ext: "jp2",
7569
7600
  mime: "image/jp2"
@@ -7619,6 +7650,10 @@ var Gs = class e {
7619
7650
  ext: "cfb",
7620
7651
  mime: "application/x-cfb"
7621
7652
  };
7653
+ if (this.checkString("FRM8") && this.checkString("DSD ", { offset: 12 })) return {
7654
+ ext: "dff",
7655
+ mime: "audio/x-dff"
7656
+ };
7622
7657
  if (await e.peekBuffer(this.buffer, {
7623
7658
  length: Math.min(256, e.fileInfo.size),
7624
7659
  mayBeLess: !0
@@ -7856,7 +7891,7 @@ var Gs = class e {
7856
7891
  0,
7857
7892
  0,
7858
7893
  0
7859
- ], { offset: 257 }) && Po(this.buffer)) return {
7894
+ ], { offset: 257 }) && Bo(this.buffer)) return {
7860
7895
  ext: "tar",
7861
7896
  mime: "application/x-tar"
7862
7897
  };
@@ -7892,15 +7927,15 @@ var Gs = class e {
7892
7927
  position: 32769,
7893
7928
  length: 5,
7894
7929
  mayBeLess: !0
7895
- }), K(t, No("CD001"))) return {
7930
+ }), q(t, zo("CD001"))) return {
7896
7931
  ext: "iso",
7897
7932
  mime: "application/x-iso9660-image"
7898
7933
  };
7899
7934
  }
7900
- };
7901
- detectImprecise = async (e) => {
7902
- this.buffer = new Uint8Array(Ds);
7903
- let t = zs(e.fileInfo.size);
7935
+ }
7936
+ async detectImprecise(e) {
7937
+ this.buffer = new Uint8Array(Fs);
7938
+ let t = qs(e.fileInfo.size);
7904
7939
  if (await e.peekBuffer(this.buffer, {
7905
7940
  length: Math.min(8, t),
7906
7941
  mayBeLess: !0
@@ -7953,9 +7988,9 @@ var Gs = class e {
7953
7988
  let t = this.scanMpeg(e);
7954
7989
  if (t) return t;
7955
7990
  }
7956
- };
7991
+ }
7957
7992
  async readTiffTag(e) {
7958
- let t = await this.tokenizer.readToken(e ? Wa : R);
7993
+ let t = await this.tokenizer.readToken(e ? Ha : B);
7959
7994
  switch (await this.tokenizer.ignore(10), t) {
7960
7995
  case 50341: return {
7961
7996
  ext: "arw",
@@ -7968,8 +8003,8 @@ var Gs = class e {
7968
8003
  }
7969
8004
  }
7970
8005
  async readTiffIFD(e) {
7971
- let t = await this.tokenizer.readToken(e ? Wa : R);
7972
- if (!(t > Ns) && !(q(this.tokenizer) && 2 + t * 12 > Is)) for (let n = 0; n < t; ++n) {
8006
+ let t = await this.tokenizer.readToken(e ? Ha : B);
8007
+ if (!(t > Vs) && !(J(this.tokenizer) && 2 + t * 12 > Ws)) for (let n = 0; n < t; ++n) {
7973
8008
  let t = await this.readTiffTag(e);
7974
8009
  if (t) return t;
7975
8010
  }
@@ -7978,7 +8013,7 @@ var Gs = class e {
7978
8013
  let t = {
7979
8014
  ext: "tif",
7980
8015
  mime: "image/tiff"
7981
- }, n = (e ? Wa : R).get(this.buffer, 2), r = (e ? Ga : z).get(this.buffer, 4);
8016
+ }, n = (e ? Ha : B).get(this.buffer, 2), r = (e ? Ua : V).get(this.buffer, 4);
7982
8017
  if (n === 42) {
7983
8018
  if (r >= 6) {
7984
8019
  if (this.checkString("CR", { offset: 8 })) return {
@@ -7986,29 +8021,29 @@ var Gs = class e {
7986
8021
  mime: "image/x-canon-cr2"
7987
8022
  };
7988
8023
  if (r >= 8) {
7989
- let t = (e ? Wa : R).get(this.buffer, 8), n = (e ? Wa : R).get(this.buffer, 10);
8024
+ let t = (e ? Ha : B).get(this.buffer, 8), n = (e ? Ha : B).get(this.buffer, 10);
7990
8025
  if (t === 28 && n === 254 || t === 31 && n === 11) return {
7991
8026
  ext: "nef",
7992
8027
  mime: "image/x-nikon-nef"
7993
8028
  };
7994
8029
  }
7995
8030
  }
7996
- if (q(this.tokenizer) && r > Fs) return t;
7997
- let n = q(this.tokenizer) ? Is : this.tokenizer.fileInfo.size;
8031
+ if (J(this.tokenizer) && r > Us) return t;
8032
+ let n = J(this.tokenizer) ? Ws : this.tokenizer.fileInfo.size;
7998
8033
  try {
7999
- await G(this.tokenizer, r, {
8034
+ await K(this.tokenizer, r, {
8000
8035
  maximumLength: n,
8001
8036
  reason: "TIFF IFD offset"
8002
8037
  });
8003
8038
  } catch (e) {
8004
- if (e instanceof V) return;
8039
+ if (e instanceof U) return;
8005
8040
  throw e;
8006
8041
  }
8007
8042
  let i;
8008
8043
  try {
8009
8044
  i = await this.readTiffIFD(e);
8010
8045
  } catch (e) {
8011
- if (e instanceof V) return;
8046
+ if (e instanceof U) return;
8012
8047
  throw e;
8013
8048
  }
8014
8049
  return i ?? t;
@@ -8061,34 +8096,33 @@ var Gs = class e {
8061
8096
  }
8062
8097
  }
8063
8098
  };
8064
- new Set(Io), new Set(Lo);
8065
- //#endregion
8066
- //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js
8099
+ new Set(Ho), new Set(Uo);
8100
+ // node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js
8067
8101
  function Y(e) {
8068
8102
  return new Map(Object.entries(e));
8069
8103
  }
8070
- var Ks = {
8104
+ var ec = {
8071
8105
  lang: void 0,
8072
8106
  message: void 0,
8073
8107
  abortEarly: void 0,
8074
8108
  abortPipeEarly: void 0
8075
8109
  };
8076
8110
  /* @__NO_SIDE_EFFECTS__ */
8077
- function qs(e) {
8111
+ function tc(e) {
8078
8112
  return e ? {
8079
8113
  lang: e?.lang ?? void 0,
8080
8114
  message: e?.message,
8081
8115
  abortEarly: e?.abortEarly ?? void 0,
8082
8116
  abortPipeEarly: e?.abortPipeEarly ?? void 0
8083
- } : Ks;
8117
+ } : ec;
8084
8118
  }
8085
8119
  /* @__NO_SIDE_EFFECTS__ */
8086
- function Js(e) {
8120
+ function nc(e) {
8087
8121
  let t = typeof e;
8088
8122
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
8089
8123
  }
8090
8124
  function X(e, t, n, r, i) {
8091
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Js(a), c = {
8125
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ nc(a), c = {
8092
8126
  kind: e.kind,
8093
8127
  type: e.type,
8094
8128
  input: a,
@@ -8105,47 +8139,47 @@ function X(e, t, n, r, i) {
8105
8139
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
8106
8140
  }
8107
8141
  /* @__NO_SIDE_EFFECTS__ */
8108
- function Ys(e, t) {
8142
+ function rc(e, t) {
8109
8143
  return e === t || Number.isNaN(e) && Number.isNaN(t);
8110
8144
  }
8111
8145
  /* @__NO_SIDE_EFFECTS__ */
8112
- function Xs(e, t) {
8146
+ function ic(e, t) {
8113
8147
  let n = [...new Set(e)];
8114
8148
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
8115
8149
  }
8116
- function Zs(e) {
8150
+ function ac(e) {
8117
8151
  return e["~standard"] = {
8118
8152
  version: 1,
8119
8153
  vendor: "valibot",
8120
- validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ qs())
8154
+ validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ tc())
8121
8155
  }, e;
8122
8156
  }
8123
8157
  /* @__NO_SIDE_EFFECTS__ */
8124
- function Qs(e, t, n) {
8158
+ function oc(e, t, n) {
8125
8159
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
8126
8160
  }
8127
8161
  /* @__NO_SIDE_EFFECTS__ */
8128
- function $s(e, t, n) {
8162
+ function sc(e, t, n) {
8129
8163
  return typeof e.default == "function" ? e.default(t, n) : e.default;
8130
8164
  }
8131
8165
  /* @__NO_SIDE_EFFECTS__ */
8132
- function ec(e, t) {
8133
- return Zs({
8166
+ function cc(e, t) {
8167
+ return ac({
8134
8168
  kind: "schema",
8135
8169
  type: "literal",
8136
- reference: ec,
8137
- expects: /* @__PURE__ */ Js(e),
8170
+ reference: cc,
8171
+ expects: /* @__PURE__ */ nc(e),
8138
8172
  async: !1,
8139
8173
  literal: e,
8140
8174
  message: t,
8141
8175
  "~run"(e, t) {
8142
- return /* @__PURE__ */ Ys(e.value, this.literal) ? e.typed = !0 : X(this, "type", e, t), e;
8176
+ return /* @__PURE__ */ rc(e.value, this.literal) ? e.typed = !0 : X(this, "type", e, t), e;
8143
8177
  }
8144
8178
  });
8145
8179
  }
8146
8180
  /* @__NO_SIDE_EFFECTS__ */
8147
8181
  function Z(e, t) {
8148
- return Zs({
8182
+ return ac({
8149
8183
  kind: "schema",
8150
8184
  type: "nullable",
8151
8185
  reference: Z,
@@ -8154,16 +8188,16 @@ function Z(e, t) {
8154
8188
  wrapped: e,
8155
8189
  default: t,
8156
8190
  "~run"(e, t) {
8157
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ $s(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
8191
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ sc(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
8158
8192
  }
8159
8193
  });
8160
8194
  }
8161
8195
  /* @__NO_SIDE_EFFECTS__ */
8162
- function tc(e) {
8163
- return Zs({
8196
+ function lc(e) {
8197
+ return ac({
8164
8198
  kind: "schema",
8165
8199
  type: "number",
8166
- reference: tc,
8200
+ reference: lc,
8167
8201
  expects: "number",
8168
8202
  async: !1,
8169
8203
  message: e,
@@ -8173,26 +8207,26 @@ function tc(e) {
8173
8207
  });
8174
8208
  }
8175
8209
  /* @__NO_SIDE_EFFECTS__ */
8176
- function nc(e, t) {
8177
- return Zs({
8210
+ function uc(e, t) {
8211
+ return ac({
8178
8212
  kind: "schema",
8179
8213
  type: "optional",
8180
- reference: nc,
8214
+ reference: uc,
8181
8215
  expects: `(${e.expects} | undefined)`,
8182
8216
  async: !1,
8183
8217
  wrapped: e,
8184
8218
  default: t,
8185
8219
  "~run"(e, t) {
8186
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ $s(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
8220
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ sc(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
8187
8221
  }
8188
8222
  });
8189
8223
  }
8190
8224
  /* @__NO_SIDE_EFFECTS__ */
8191
- function rc(e, t) {
8192
- return Zs({
8225
+ function dc(e, t) {
8226
+ return ac({
8193
8227
  kind: "schema",
8194
8228
  type: "strict_object",
8195
- reference: rc,
8229
+ reference: dc,
8196
8230
  expects: "Object",
8197
8231
  async: !1,
8198
8232
  entries: e,
@@ -8204,7 +8238,7 @@ function rc(e, t) {
8204
8238
  for (let r in this.entries) {
8205
8239
  let i = this.entries[r];
8206
8240
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
8207
- let a = r in n ? n[r] : /* @__PURE__ */ $s(i), o = i["~run"]({ value: a }, t);
8241
+ let a = r in n ? n[r] : /* @__PURE__ */ sc(i), o = i["~run"]({ value: a }, t);
8208
8242
  if (o.issues) {
8209
8243
  let i = {
8210
8244
  type: "object",
@@ -8220,7 +8254,7 @@ function rc(e, t) {
8220
8254
  }
8221
8255
  }
8222
8256
  o.typed || (e.typed = !1), e.value[r] = o.value;
8223
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ Qs(i);
8257
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ oc(i);
8224
8258
  else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (X(this, "key", e, t, {
8225
8259
  input: void 0,
8226
8260
  expected: `"${r}"`,
@@ -8256,7 +8290,7 @@ function rc(e, t) {
8256
8290
  }
8257
8291
  /* @__NO_SIDE_EFFECTS__ */
8258
8292
  function Q(e) {
8259
- return Zs({
8293
+ return ac({
8260
8294
  kind: "schema",
8261
8295
  type: "string",
8262
8296
  reference: Q,
@@ -8269,19 +8303,19 @@ function Q(e) {
8269
8303
  });
8270
8304
  }
8271
8305
  /* @__NO_SIDE_EFFECTS__ */
8272
- function ic(e) {
8306
+ function fc(e) {
8273
8307
  let t;
8274
8308
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
8275
8309
  else t = n.issues;
8276
8310
  return t;
8277
8311
  }
8278
8312
  /* @__NO_SIDE_EFFECTS__ */
8279
- function ac(e, t) {
8280
- return Zs({
8313
+ function pc(e, t) {
8314
+ return ac({
8281
8315
  kind: "schema",
8282
8316
  type: "union",
8283
- reference: ac,
8284
- expects: /* @__PURE__ */ Xs(e.map((e) => e.expects), "|"),
8317
+ reference: pc,
8318
+ expects: /* @__PURE__ */ ic(e.map((e) => e.expects), "|"),
8285
8319
  async: !1,
8286
8320
  options: e,
8287
8321
  message: t,
@@ -8300,26 +8334,26 @@ function ac(e, t) {
8300
8334
  if (n) return n;
8301
8335
  if (r) {
8302
8336
  if (r.length === 1) return r[0];
8303
- X(this, "type", e, t, { issues: /* @__PURE__ */ ic(r) }), e.typed = !0;
8337
+ X(this, "type", e, t, { issues: /* @__PURE__ */ fc(r) }), e.typed = !0;
8304
8338
  } else if (i?.length === 1) return i[0];
8305
- else X(this, "type", e, t, { issues: /* @__PURE__ */ ic(i) });
8339
+ else X(this, "type", e, t, { issues: /* @__PURE__ */ fc(i) });
8306
8340
  return e;
8307
8341
  }
8308
8342
  });
8309
8343
  }
8310
- var oc = {
8344
+ var mc = {
8311
8345
  id: /* @__PURE__ */ Q(),
8312
- label: /* @__PURE__ */ rc({
8313
- en: /* @__PURE__ */ nc(/* @__PURE__ */ Q()),
8314
- es: /* @__PURE__ */ nc(/* @__PURE__ */ Q())
8346
+ label: /* @__PURE__ */ dc({
8347
+ en: /* @__PURE__ */ uc(/* @__PURE__ */ Q()),
8348
+ es: /* @__PURE__ */ uc(/* @__PURE__ */ Q())
8315
8349
  }),
8316
- description: /* @__PURE__ */ rc({
8317
- en: /* @__PURE__ */ nc(/* @__PURE__ */ Q()),
8318
- es: /* @__PURE__ */ nc(/* @__PURE__ */ Q())
8350
+ description: /* @__PURE__ */ dc({
8351
+ en: /* @__PURE__ */ uc(/* @__PURE__ */ Q()),
8352
+ es: /* @__PURE__ */ uc(/* @__PURE__ */ Q())
8319
8353
  }),
8320
8354
  icon: /* @__PURE__ */ Z(/* @__PURE__ */ Q()),
8321
8355
  iconDark: /* @__PURE__ */ Z(/* @__PURE__ */ Q())
8322
- }, $ = (e) => /* @__PURE__ */ ac(e.map((e) => /* @__PURE__ */ ec(e))), sc = $([
8356
+ }, $ = (e) => /* @__PURE__ */ pc(e.map((e) => /* @__PURE__ */ cc(e))), hc = $([
8323
8357
  "app",
8324
8358
  "connector",
8325
8359
  "connectorConnection",
@@ -8341,31 +8375,31 @@ var oc = {
8341
8375
  "presenter",
8342
8376
  "presenterPresentation",
8343
8377
  "tool"
8344
- ]), cc = $([
8378
+ ]), gc = $([
8345
8379
  "danger",
8346
8380
  "success",
8347
8381
  "warning"
8348
- ]), lc = $([
8382
+ ]), _c = $([
8349
8383
  "alpha",
8350
8384
  "beta",
8351
8385
  "releaseCandidate",
8352
8386
  "generalAvailability"
8353
- ]), uc = /* @__PURE__ */ rc({
8354
- color: cc,
8387
+ ]), vc = /* @__PURE__ */ dc({
8388
+ color: gc,
8355
8389
  label: /* @__PURE__ */ Q()
8356
- }), dc = {
8357
- ...oc,
8358
- typeId: sc
8390
+ }), yc = {
8391
+ ...mc,
8392
+ typeId: hc
8359
8393
  };
8360
- ({ ...dc });
8361
- var fc = {
8362
- ...dc,
8363
- firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ tc()),
8364
- lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ tc()),
8365
- status: /* @__PURE__ */ Z(uc),
8366
- statusId: /* @__PURE__ */ Z(lc)
8394
+ ({ ...yc });
8395
+ var bc = {
8396
+ ...yc,
8397
+ firstCreatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ lc()),
8398
+ lastUpdatedAt: /* @__PURE__ */ Z(/* @__PURE__ */ lc()),
8399
+ status: /* @__PURE__ */ Z(vc),
8400
+ statusId: /* @__PURE__ */ Z(_c)
8367
8401
  };
8368
- ({ ...fc }), Y({ en: "Data Positioning Events" }), Y({ en: "Delimited Text" }), Y({ en: "JSON" }), Y({ en: "SPSS" }), Y({ en: "XLSX" }), Y({ en: "XML" }), Y({ en: "Newline" }), Y({ en: "Carriage Return" }), Y({ en: "Carriage Return/Newline" }), Y({ en: "Colon" }), Y({ en: "Comma" }), Y({ en: "Exclamation Mark" }), Y({ en: "Record Separator" }), Y({ en: "Semicolon" }), Y({ en: "Space" }), Y({ en: "Tab" }), Y({ en: "Underscore" }), Y({ en: "Unit Separator" }), Y({ en: "Vertical Bar" }), $([
8402
+ ({ ...bc }), Y({ en: "Data Positioning Events" }), Y({ en: "Delimited Text" }), Y({ en: "JSON" }), Y({ en: "Markdown" }), Y({ en: "SPSS" }), Y({ en: "Plain Text" }), Y({ en: "XLSX" }), Y({ en: "XML" }), Y({ en: "Newline" }), Y({ en: "Carriage Return" }), Y({ en: "Carriage Return/Newline" }), Y({ en: "Colon" }), Y({ en: "Comma" }), Y({ en: "Exclamation Mark" }), Y({ en: "Record Separator" }), Y({ en: "Semicolon" }), Y({ en: "Space" }), Y({ en: "Tab" }), Y({ en: "Underscore" }), Y({ en: "Unit Separator" }), Y({ en: "Vertical Bar" }), $([
8369
8403
  "app",
8370
8404
  "engine",
8371
8405
  "connector",
@@ -8373,14 +8407,14 @@ var fc = {
8373
8407
  "presenter",
8374
8408
  "tool"
8375
8409
  ]);
8376
- var pc = {
8377
- ...fc,
8410
+ var xc = {
8411
+ ...bc,
8378
8412
  vendorAccountURL: /* @__PURE__ */ Z(/* @__PURE__ */ Q()),
8379
8413
  vendorDocumentationURL: /* @__PURE__ */ Z(/* @__PURE__ */ Q()),
8380
8414
  vendorHomeURL: /* @__PURE__ */ Z(/* @__PURE__ */ Q()),
8381
8415
  version: /* @__PURE__ */ Q()
8382
8416
  };
8383
- ({ ...pc }), $([
8417
+ ({ ...xc }), $([
8384
8418
  "abortOperation",
8385
8419
  "auditObjectContent",
8386
8420
  "createObject",
@@ -8401,6 +8435,10 @@ var pc = {
8401
8435
  "curatedDataset",
8402
8436
  "database",
8403
8437
  "fileStore"
8438
+ ]), $([
8439
+ "apiEndpoint",
8440
+ "file",
8441
+ "table"
8404
8442
  ]), $([
8405
8443
  "bidirectional",
8406
8444
  "destination",
@@ -8411,32 +8449,28 @@ var pc = {
8411
8449
  "disabled",
8412
8450
  "oAuth2",
8413
8451
  "none"
8414
- ]), { ...pc }, $(["list"]), { ...pc }, $([
8415
- "list",
8416
- "render",
8417
- "setColorMode"
8418
- ]), { ...pc };
8419
- var mc = 2048, hc = class extends Error {
8452
+ ]), { ...xc }, $(["list"]), { ...xc };
8453
+ var Sc = 2048, Cc = class extends Error {
8420
8454
  data;
8421
8455
  locator;
8422
8456
  constructor(e, t, n, r) {
8423
8457
  super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
8424
8458
  }
8425
- }, gc = class extends hc {
8459
+ }, wc = class extends Cc {
8426
8460
  constructor(e, t, n, r) {
8427
8461
  super(e, t, n, r), this.name = "FetchError";
8428
8462
  }
8429
8463
  };
8430
- async function _c(e, t, n) {
8464
+ async function Tc(e, t, n) {
8431
8465
  let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
8432
8466
  try {
8433
8467
  a = await e.text();
8434
8468
  } catch (e) {
8435
- a = `<body unavailable: ${vc(e).message}>`;
8469
+ a = `<body unavailable: ${Ec(e).message}>`;
8436
8470
  }
8437
- return new gc(i, n, { body: yc(a) });
8471
+ return new wc(i, n, { body: Dc(a) });
8438
8472
  }
8439
- function vc(e) {
8473
+ function Ec(e) {
8440
8474
  if (e instanceof Error) return e;
8441
8475
  if (typeof e == "string") return Error(e);
8442
8476
  if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
@@ -8448,10 +8482,15 @@ function vc(e) {
8448
8482
  }
8449
8483
  return /* @__PURE__ */ Error("Unknown error");
8450
8484
  }
8451
- function yc(e) {
8452
- if (e != null && e !== "") return e.length > mc ? `${e.slice(0, mc)}... [truncated]` : e;
8485
+ function Dc(e) {
8486
+ if (e != null && e !== "") return e.length > Sc ? `${e.slice(0, Sc)}... [truncated]` : e;
8453
8487
  }
8454
- var bc = {
8488
+ $([
8489
+ "list",
8490
+ "render",
8491
+ "setColorMode"
8492
+ ]), { ...xc };
8493
+ var Oc = {
8455
8494
  ascii: {
8456
8495
  id: "ascii",
8457
8496
  groupId: null,
@@ -8883,193 +8922,185 @@ var bc = {
8883
8922
  decoderId: "windows-1257"
8884
8923
  }
8885
8924
  };
8886
- function xc(e) {
8887
- return Object.hasOwn(bc, e);
8925
+ function kc(e) {
8926
+ return Object.hasOwn(Oc, e);
8927
+ }
8928
+ function Ac(e) {
8929
+ return kc(e) ? Oc[e].decoderId ?? e : e;
8930
+ }
8931
+ new Set(Object.values({
8932
+ archives: [
8933
+ "7z",
8934
+ "bz2",
8935
+ "gz",
8936
+ "rar",
8937
+ "tar",
8938
+ "tgz",
8939
+ "xz",
8940
+ "zip"
8941
+ ],
8942
+ audio: [
8943
+ "aac",
8944
+ "flac",
8945
+ "m4a",
8946
+ "mp3",
8947
+ "ogg",
8948
+ "wav"
8949
+ ],
8950
+ documents: [
8951
+ "doc",
8952
+ "docx",
8953
+ "key",
8954
+ "numbers",
8955
+ "odp",
8956
+ "odt",
8957
+ "pages",
8958
+ "pdf",
8959
+ "ppt",
8960
+ "pptx",
8961
+ "rtf"
8962
+ ],
8963
+ images: [
8964
+ "bmp",
8965
+ "gif",
8966
+ "heic",
8967
+ "ico",
8968
+ "jpeg",
8969
+ "jpg",
8970
+ "png",
8971
+ "psd",
8972
+ "svg",
8973
+ "tif",
8974
+ "tiff",
8975
+ "webp"
8976
+ ],
8977
+ programs: [
8978
+ "app",
8979
+ "bin",
8980
+ "dll",
8981
+ "dmg",
8982
+ "exe",
8983
+ "iso",
8984
+ "msi",
8985
+ "so"
8986
+ ],
8987
+ unreadDataFormats: [
8988
+ "arrow",
8989
+ "avro",
8990
+ "db",
8991
+ "ods",
8992
+ "parquet",
8993
+ "por",
8994
+ "sav",
8995
+ "sqlite",
8996
+ "xls",
8997
+ "xlsm",
8998
+ "xlsx",
8999
+ "xltm",
9000
+ "xltx"
9001
+ ],
9002
+ video: [
9003
+ "avi",
9004
+ "m4v",
9005
+ "mkv",
9006
+ "mov",
9007
+ "mp4",
9008
+ "webm",
9009
+ "wmv"
9010
+ ]
9011
+ }).flat());
9012
+ function jc(e) {
9013
+ if (!e) return;
9014
+ let t = Mc(e);
9015
+ return t === void 0 ? void 0 : e.slice(t + 1);
8888
9016
  }
8889
- function Sc(e) {
8890
- return xc(e) ? bc[e].decoderId ?? e : e;
9017
+ function Mc(e) {
9018
+ let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
9019
+ return n > t && n < e.length - 1 ? n : void 0;
8891
9020
  }
8892
- //#endregion
8893
- //#region src/index.ts
8894
- var Cc = .2, wc = {
9021
+ // src/index.ts
9022
+ var Nc = .2, Pc = 4096, Fc = {
8895
9023
  id: "utf-8",
8896
9024
  confidenceLevel: void 0
8897
- }, Tc = {
9025
+ }, Ic = 256, Lc = /^<\?xml\s[^?]*?\bencoding\s*=\s*(["'])([A-Za-z][\w.:-]*)\1/, Rc = [
9026
+ "false",
9027
+ "null",
9028
+ "true"
9029
+ ], zc = /* @__PURE__ */ new Set([
9030
+ " ",
9031
+ " ",
9032
+ "\n",
9033
+ "\r"
9034
+ ]), Bc = {
9035
+ markdown: "markdown",
9036
+ md: "markdown"
9037
+ }, Vc = {
8898
9038
  arrow: {
8899
9039
  label: "Columnar format for tables of data.",
9040
+ structure: "table",
8900
9041
  isAutoDetectable: !0,
8901
- isSupported: !1,
8902
- notes: ""
9042
+ isSupported: !1
8903
9043
  },
8904
9044
  avro: {
8905
9045
  label: "Object container file developed by Apache Avro.",
9046
+ structure: "records",
8906
9047
  isAutoDetectable: !0,
8907
- isSupported: !1,
8908
- notes: ""
8909
- },
8910
- docx: {
8911
- label: "Microsoft Word document.",
8912
- isAutoDetectable: !0,
8913
- isSupported: !1,
8914
- notes: ""
8915
- },
8916
- ics: {
8917
- label: "iCalendar.",
8918
- isAutoDetectable: !0,
8919
- isSupported: !1,
8920
- notes: ""
8921
- },
8922
- jmp: {
8923
- label: "JMP data file format by SAS Institute.",
8924
- isAutoDetectable: !0,
8925
- isSupported: !1,
8926
- notes: ""
9048
+ isSupported: !1
8927
9049
  },
8928
9050
  ods: {
8929
9051
  label: "OpenDocument for spreadsheets.",
9052
+ structure: "workbook",
8930
9053
  isAutoDetectable: !0,
8931
- isSupported: !1,
8932
- notes: ""
8933
- },
8934
- ots: {
8935
- label: "OpenDocument for word processing.",
8936
- isAutoDetectable: !0,
8937
- isSupported: !1,
8938
- notes: ""
9054
+ isSupported: !1
8939
9055
  },
8940
9056
  parquet: {
8941
9057
  label: "Apache Parquet.",
9058
+ structure: "table",
8942
9059
  isAutoDetectable: !0,
8943
- isSupported: !1,
8944
- notes: ""
8945
- },
8946
- pcap: {
8947
- label: "Libpcap file format.",
8948
- isAutoDetectable: !0,
8949
- isSupported: !1,
8950
- notes: ""
8951
- },
8952
- pdf: {
8953
- label: "Portable document format.",
8954
- isAutoDetectable: !0,
8955
- isSupported: !1,
8956
- notes: ""
8957
- },
8958
- por: {
8959
- label: "SPSS portable file.",
8960
- isAutoDetectable: !1,
8961
- isSupported: !1,
8962
- magicBytes: [
8963
- 83,
8964
- 80,
8965
- 83,
8966
- 83,
8967
- 80,
8968
- 79,
8969
- 82,
8970
- 84
8971
- ],
8972
- notes: ""
9060
+ isSupported: !1
8973
9061
  },
8974
9062
  sav: {
8975
9063
  label: "SPSS statistical data file.",
9064
+ structure: "table",
8976
9065
  isAutoDetectable: !0,
8977
- isSupported: !1,
8978
- magicBytes: [
8979
- 36,
8980
- 70,
8981
- 76,
8982
- 50
8983
- ],
8984
- notes: ""
8985
- },
8986
- shp: {
8987
- label: "Geospatial vector data format.",
8988
- isAutoDetectable: !0,
8989
- isSupported: !1,
8990
- notes: ""
9066
+ isSupported: !1
8991
9067
  },
8992
9068
  sqlite: {
8993
9069
  label: "SQLite file.",
9070
+ structure: "database",
8994
9071
  isAutoDetectable: !0,
8995
- isSupported: !1,
8996
- notes: ""
8997
- },
8998
- vcf: {
8999
- label: "vCard.",
9000
- isAutoDetectable: !0,
9001
- isSupported: !1,
9002
- notes: ""
9003
- },
9004
- vtt: {
9005
- label: "WebVTT File (for video captions).",
9006
- isAutoDetectable: !0,
9007
- isSupported: !1,
9008
- notes: ""
9009
- },
9010
- xls: {
9011
- label: "Microsoft Excel legacy document.",
9012
- isAutoDetectable: !1,
9013
- isSupported: !1,
9014
- magicBytes: [
9015
- 208,
9016
- 207,
9017
- 17,
9018
- 224,
9019
- 161,
9020
- 177,
9021
- 26,
9022
- 225
9023
- ],
9024
- notes: ""
9072
+ isSupported: !1
9025
9073
  },
9026
9074
  xlsx: {
9027
9075
  label: "Microsoft Excel document.",
9076
+ structure: "workbook",
9028
9077
  isAutoDetectable: !0,
9029
- isSupported: !1,
9030
- magicBytes: [
9031
- 80,
9032
- 75,
9033
- 3,
9034
- 4
9035
- ],
9036
- notes: ""
9078
+ isSupported: !1
9037
9079
  },
9038
9080
  xlsm: {
9039
9081
  label: "Microsoft Excel macro-enabled document.",
9082
+ structure: "workbook",
9040
9083
  isAutoDetectable: !0,
9041
- isSupported: !1,
9042
- notes: ""
9043
- },
9044
- xltx: {
9045
- label: "Microsoft Excel template.",
9046
- isAutoDetectable: !0,
9047
- isSupported: !1,
9048
- notes: ""
9049
- },
9050
- xltm: {
9051
- label: "Microsoft Excel macro-enabled template.",
9052
- isAutoDetectable: !0,
9053
- isSupported: !1,
9054
- notes: ""
9084
+ isSupported: !1
9055
9085
  },
9056
9086
  xml: {
9057
9087
  label: "eXtensible markup language.",
9088
+ structure: "tree",
9058
9089
  isAutoDetectable: !0,
9059
- isSupported: !1,
9060
- notes: ""
9090
+ isSupported: !1
9061
9091
  }
9062
- }, Ec = class {
9063
- async previewFile(e, t, n, r = Cc) {
9092
+ }, Hc = class {
9093
+ async previewFile(e, t, n, r = Nc) {
9064
9094
  let i = await fetch(encodeURI(e), {
9065
- headers: { Range: `bytes=0-${String(n ?? 4095)}` },
9095
+ headers: { Range: `bytes=0-${String((n ?? Pc) - 1)}` },
9066
9096
  signal: t
9067
9097
  });
9068
- if (!i.ok) throw await _c(i, `Failed to fetch '${e}' file.`, "dpuse-tool-file-previewer.previewRemoteFile");
9069
- return await Dc(new Uint8Array(await i.arrayBuffer()), r);
9098
+ if (!i.ok) throw await Tc(i, `Failed to fetch '${e}' file.`, "dpuse-tool-file-previewer.previewRemoteFile");
9099
+ let a = new Uint8Array(await i.arrayBuffer()), o = jc(new URL(e).pathname)?.toLowerCase();
9100
+ return await Uc(a, o, r);
9070
9101
  }
9071
9102
  };
9072
- async function Dc(e, t) {
9103
+ async function Uc(e, t, n) {
9073
9104
  if (e.length === 0) return {
9074
9105
  bytes: e,
9075
9106
  dataFormatId: void 0,
@@ -9079,80 +9110,174 @@ async function Dc(e, t) {
9079
9110
  fileTypeConfig: void 0,
9080
9111
  text: void 0
9081
9112
  };
9082
- let n = await Ws(e);
9083
- if (n == null) {
9084
- let r = Oc(e, t), i = kc(e, r[0] ?? wc);
9113
+ let r = await Qs(e);
9114
+ if (r != null) return Wc(e, r);
9115
+ let i = Gc(e, n), a = Jc(e, i[0] ?? Fc), o = t == null ? void 0 : Bc[t];
9116
+ return {
9117
+ bytes: e,
9118
+ dataFormatId: Yc(a.text) ? "json" : o ?? "dtv",
9119
+ encodingId: a.encoding.id,
9120
+ encodingConfidenceLevel: a.encoding.confidenceLevel,
9121
+ encodingCandidates: i,
9122
+ fileTypeConfig: r,
9123
+ text: a.text
9124
+ };
9125
+ }
9126
+ function Wc(e, t) {
9127
+ let n = Vc[t.ext]?.isSupported === !0 ? t.ext : void 0;
9128
+ if (t.ext === "xml") {
9129
+ let r = Jc(e, {
9130
+ id: qc(e),
9131
+ confidenceLevel: 1
9132
+ });
9085
9133
  return {
9086
9134
  bytes: e,
9087
- dataFormatId: Ac(i.text) ? "json" : "dtv",
9088
- encodingId: i.encoding.id,
9089
- encodingConfidenceLevel: i.encoding.confidenceLevel,
9090
- encodingCandidates: r,
9091
- fileTypeConfig: n,
9092
- text: i.text
9135
+ dataFormatId: n,
9136
+ encodingId: r.encoding.id,
9137
+ encodingConfidenceLevel: r.encoding.confidenceLevel,
9138
+ encodingCandidates: void 0,
9139
+ fileTypeConfig: t,
9140
+ text: r.text
9093
9141
  };
9094
9142
  }
9095
- let r = Tc[n.ext];
9096
- return r == null ? {
9097
- bytes: e,
9098
- dataFormatId: void 0,
9099
- encodingId: void 0,
9100
- encodingConfidenceLevel: void 0,
9101
- encodingCandidates: void 0,
9102
- fileTypeConfig: n,
9103
- text: void 0
9104
- } : {
9143
+ return {
9105
9144
  bytes: e,
9106
- dataFormatId: r.isSupported ? n.ext : void 0,
9145
+ dataFormatId: n,
9107
9146
  encodingId: void 0,
9108
9147
  encodingConfidenceLevel: void 0,
9109
9148
  encodingCandidates: void 0,
9110
- fileTypeConfig: n,
9149
+ fileTypeConfig: t,
9111
9150
  text: void 0
9112
9151
  };
9113
9152
  }
9114
- function Oc(e, t) {
9115
- if (e[0] === 239 && e[1] === 187 && e[2] === 191) return [{
9153
+ function Gc(e, t) {
9154
+ let n = Kc(e);
9155
+ if (n != null) return [n];
9156
+ let r = Da(e, { minimumThreshold: 0 }), i = [];
9157
+ for (let { confidence: e, encoding: t } of r) t != null && kc(t) && i.push({
9158
+ confidenceLevel: e,
9159
+ id: t
9160
+ });
9161
+ return i.filter(({ confidenceLevel: e = 0 }, n) => n === 0 || e >= t);
9162
+ }
9163
+ function Kc(e) {
9164
+ return e[0] === 239 && e[1] === 187 && e[2] === 191 ? {
9116
9165
  confidenceLevel: 1,
9117
9166
  id: "UTF-8-SIG"
9118
- }];
9119
- if (e[0] === 254 && e[1] === 255) return [{
9167
+ } : e[0] === 254 && e[1] === 255 ? {
9120
9168
  confidenceLevel: 1,
9121
9169
  id: "utf-16-be"
9122
- }];
9123
- if (e[0] === 255 && e[1] === 254) return [{
9170
+ } : e[0] === 255 && e[1] === 254 ? {
9124
9171
  confidenceLevel: 1,
9125
9172
  id: "utf-16-le"
9126
- }];
9127
- let n = ka(e, { minimumThreshold: 0 }), r = [];
9128
- for (let { confidence: e, encoding: t } of n) t != null && xc(t) && r.push({
9129
- confidenceLevel: e,
9130
- id: t
9131
- });
9132
- return r.filter(({ confidenceLevel: e = 0 }, n) => n === 0 || e >= t);
9173
+ } : void 0;
9174
+ }
9175
+ function qc(e) {
9176
+ let t = new TextDecoder("ascii").decode(e.subarray(0, Ic));
9177
+ return Kc(e)?.id ?? Lc.exec(t)?.[2] ?? "utf-8";
9133
9178
  }
9134
- function kc(e, t) {
9179
+ function Jc(e, t) {
9135
9180
  try {
9136
9181
  return {
9137
9182
  encoding: t,
9138
- text: new TextDecoder(Sc(t.id)).decode(jc(e))
9183
+ text: new TextDecoder(Ac(t.id)).decode(il(e))
9139
9184
  };
9140
9185
  } catch {
9141
9186
  return {
9142
- encoding: wc,
9143
- text: new TextDecoder(wc.id, { fatal: !1 }).decode(jc(e))
9187
+ encoding: Fc,
9188
+ text: new TextDecoder(Fc.id, { fatal: !1 }).decode(il(e))
9144
9189
  };
9145
9190
  }
9146
9191
  }
9147
- function Ac(e) {
9148
- let t = e.trimStart();
9149
- if (t.length > 2) {
9150
- let e = t[0], n = e === "{", r = e === "[", i = /"\s*:\s*/.test(t), a = /\b(?:true|false|null)\b/.test(t), o = t.includes("\"");
9151
- return (n || r) && (i || a || o);
9192
+ function Yc(e) {
9193
+ let t = [], n = e.search(/\S/);
9194
+ if (e[n] !== "{" && e[n] !== "[") return !1;
9195
+ let r = {
9196
+ expectation: "value",
9197
+ index: n
9198
+ };
9199
+ for (; r != null && r.index < e.length;) r = Xc(e, r, t);
9200
+ return r != null;
9201
+ }
9202
+ function Xc(e, { expectation: t, index: n }, r) {
9203
+ let i = e.charAt(n);
9204
+ if (zc.has(i)) return {
9205
+ expectation: t,
9206
+ index: n + 1
9207
+ };
9208
+ switch (t) {
9209
+ case "closeOrKey": return i === "}" ? Zc(i, n, r) : Qc(e, n);
9210
+ case "closeOrValue": return i === "]" ? Zc(i, n, r) : $c(e, n, r);
9211
+ case "colon": return i === ":" ? {
9212
+ expectation: "value",
9213
+ index: n + 1
9214
+ } : void 0;
9215
+ case "commaOrClose": return i === "," ? {
9216
+ expectation: r.at(-1) === "{" ? "key" : "value",
9217
+ index: n + 1
9218
+ } : Zc(i, n, r);
9219
+ case "end": return;
9220
+ case "key": return Qc(e, n);
9221
+ case "value": return $c(e, n, r);
9222
+ }
9223
+ }
9224
+ function Zc(e, t, n) {
9225
+ if (e === (n.at(-1) === "{" ? "}" : "]")) return n.pop(), {
9226
+ expectation: n.length === 0 ? "end" : "commaOrClose",
9227
+ index: t + 1
9228
+ };
9229
+ }
9230
+ function Qc(e, t) {
9231
+ let n = e.charAt(t) === "\"" ? el(e, t) : void 0;
9232
+ return n == null ? void 0 : {
9233
+ expectation: "colon",
9234
+ index: n
9235
+ };
9236
+ }
9237
+ function $c(e, t, n) {
9238
+ let r = e.charAt(t);
9239
+ if (r === "{" || r === "[") return n.push(r), {
9240
+ expectation: r === "{" ? "closeOrKey" : "closeOrValue",
9241
+ index: t + 1
9242
+ };
9243
+ let i = r === "\"" ? el(e, t) : nl(e, t);
9244
+ return i == null ? void 0 : {
9245
+ expectation: "commaOrClose",
9246
+ index: i
9247
+ };
9248
+ }
9249
+ function el(e, t) {
9250
+ let n = t + 1;
9251
+ for (; n < e.length;) {
9252
+ let t = e.charAt(n);
9253
+ if (t === "\"") return n + 1;
9254
+ if (t < " ") return;
9255
+ if (t === "\\") {
9256
+ let t = tl(e, n);
9257
+ if (t == null) return;
9258
+ n = t;
9259
+ } else n++;
9260
+ }
9261
+ return e.length;
9262
+ }
9263
+ function tl(e, t) {
9264
+ let n = e.charAt(t + 1);
9265
+ return n === "u" ? /^[\da-f]*$/i.test(e.slice(t + 2, t + 6)) ? t + 6 : void 0 : n === "" || String.raw`"\/bfnrt`.includes(n) ? t + 2 : void 0;
9266
+ }
9267
+ function nl(e, t) {
9268
+ let n = /^[\w.+-]+/.exec(e.slice(t))?.[0];
9269
+ if (n == null) return;
9270
+ let r = t + n.length;
9271
+ return r === e.length ? Rc.some((e) => e.startsWith(n)) || /^[\d.e+-]*$/i.test(n) ? r : void 0 : Rc.includes(n) || rl(n) ? r : void 0;
9272
+ }
9273
+ function rl(e) {
9274
+ try {
9275
+ return typeof JSON.parse(e) == "number";
9276
+ } catch {
9277
+ return !1;
9152
9278
  }
9153
- return !1;
9154
9279
  }
9155
- function jc(e) {
9280
+ function il(e) {
9156
9281
  let t = e, n = t.length;
9157
9282
  for (let e = n - 1; e >= 0; e--) {
9158
9283
  let n = t[e];
@@ -9167,5 +9292,4 @@ function jc(e) {
9167
9292
  }
9168
9293
  return t;
9169
9294
  }
9170
- //#endregion
9171
- export { Ec as Tool };
9295
+ export { Hc as Tool };