@rtorcato/js-common 1.8.1 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +77 -62
  3. package/dist/abortController/index.d.ts +29 -0
  4. package/dist/abortController/index.d.ts.map +1 -0
  5. package/dist/arrays/index.d.ts +134 -0
  6. package/dist/arrays/index.d.ts.map +1 -0
  7. package/dist/arrays/index.js +1 -1
  8. package/dist/boolean/index.d.ts +41 -0
  9. package/dist/boolean/index.d.ts.map +1 -0
  10. package/dist/boolean/index.js +1 -1
  11. package/dist/colors/index.d.ts +63 -0
  12. package/dist/colors/index.d.ts.map +1 -0
  13. package/dist/console/index.d.ts +16 -0
  14. package/dist/console/index.d.ts.map +1 -0
  15. package/dist/crypto/index.d.ts +34 -0
  16. package/dist/crypto/index.d.ts.map +1 -0
  17. package/dist/currency/currencies.d.ts +16 -0
  18. package/dist/currency/currencies.d.ts.map +1 -0
  19. package/dist/currency/index.d.ts +170 -0
  20. package/dist/currency/index.d.ts.map +1 -0
  21. package/dist/date/index.d.ts +44 -0
  22. package/dist/date/index.d.ts.map +1 -0
  23. package/dist/datetime/index.d.ts +52 -0
  24. package/dist/datetime/index.d.ts.map +1 -0
  25. package/dist/emails/banned/index.d.ts +9 -0
  26. package/dist/emails/banned/index.d.ts.map +1 -0
  27. package/dist/emails/index.d.ts +26 -0
  28. package/dist/emails/index.d.ts.map +1 -0
  29. package/dist/env/index.d.ts +63 -0
  30. package/dist/env/index.d.ts.map +1 -0
  31. package/dist/errors/index.d.ts +39 -0
  32. package/dist/errors/index.d.ts.map +1 -0
  33. package/dist/errors/index.js +1 -1
  34. package/dist/events/index.d.ts +35 -0
  35. package/dist/events/index.d.ts.map +1 -0
  36. package/dist/fetch/index.d.ts +38 -0
  37. package/dist/fetch/index.d.ts.map +1 -0
  38. package/dist/file/index.d.ts +32 -0
  39. package/dist/file/index.d.ts.map +1 -0
  40. package/dist/formatting/index.d.ts +40 -0
  41. package/dist/formatting/index.d.ts.map +1 -0
  42. package/dist/functions/index.d.ts +33 -0
  43. package/dist/functions/index.d.ts.map +1 -0
  44. package/dist/geometry/index.d.ts +58 -0
  45. package/dist/geometry/index.d.ts.map +1 -0
  46. package/dist/html/index.d.ts +31 -0
  47. package/dist/html/index.d.ts.map +1 -0
  48. package/dist/i18n/index.d.ts +37 -0
  49. package/dist/i18n/index.d.ts.map +1 -0
  50. package/dist/index.d.ts +2 -0
  51. package/dist/index.d.ts.map +1 -0
  52. package/dist/interval/index.d.ts +13 -0
  53. package/dist/interval/index.d.ts.map +1 -0
  54. package/dist/json/index.d.ts +28 -0
  55. package/dist/json/index.d.ts.map +1 -0
  56. package/dist/logger/index.d.ts +2 -0
  57. package/dist/logger/index.d.ts.map +1 -0
  58. package/dist/logger/logger.d.ts +3 -0
  59. package/dist/logger/logger.d.ts.map +1 -0
  60. package/dist/logging/index.d.ts +29 -0
  61. package/dist/logging/index.d.ts.map +1 -0
  62. package/dist/logging/index.js +1 -1
  63. package/dist/maps/index.d.ts +32 -0
  64. package/dist/maps/index.d.ts.map +1 -0
  65. package/dist/math/index.d.ts +37 -0
  66. package/dist/math/index.d.ts.map +1 -0
  67. package/dist/math/index.js +1 -1
  68. package/dist/mime-types/db.d.ts +4605 -0
  69. package/dist/mime-types/db.d.ts.map +1 -0
  70. package/dist/mime-types/index.d.ts +25 -0
  71. package/dist/mime-types/index.d.ts.map +1 -0
  72. package/dist/node/index.d.ts +52 -0
  73. package/dist/node/index.d.ts.map +1 -0
  74. package/dist/numbers/index.d.ts +82 -0
  75. package/dist/numbers/index.d.ts.map +1 -0
  76. package/dist/objects/index.d.ts +35 -0
  77. package/dist/objects/index.d.ts.map +1 -0
  78. package/dist/os/index.d.ts +26 -0
  79. package/dist/os/index.d.ts.map +1 -0
  80. package/dist/process/index.d.ts +31 -0
  81. package/dist/process/index.d.ts.map +1 -0
  82. package/dist/promises/index.d.ts +39 -0
  83. package/dist/promises/index.d.ts.map +1 -0
  84. package/dist/random/index.d.ts +33 -0
  85. package/dist/random/index.d.ts.map +1 -0
  86. package/dist/regex/index.d.ts +36 -0
  87. package/dist/regex/index.d.ts.map +1 -0
  88. package/dist/security/index.d.ts +14 -0
  89. package/dist/security/index.d.ts.map +1 -0
  90. package/dist/sets/index.d.ts +48 -0
  91. package/dist/sets/index.d.ts.map +1 -0
  92. package/dist/sleep/index.d.ts +27 -0
  93. package/dist/sleep/index.d.ts.map +1 -0
  94. package/dist/strings/index.d.ts +296 -0
  95. package/dist/strings/index.d.ts.map +1 -0
  96. package/dist/system/index.d.ts +36 -0
  97. package/dist/system/index.d.ts.map +1 -0
  98. package/dist/time/index.d.ts +36 -0
  99. package/dist/time/index.d.ts.map +1 -0
  100. package/dist/try/attempt.d.ts +8 -0
  101. package/dist/try/attempt.d.ts.map +1 -0
  102. package/dist/try/index.d.ts +2 -0
  103. package/dist/try/index.d.ts.map +1 -0
  104. package/dist/try/trycatch.d.ts +12 -0
  105. package/dist/try/trycatch.d.ts.map +1 -0
  106. package/dist/types/common/index.d.ts +9 -0
  107. package/dist/types/env.d.ts +5 -0
  108. package/dist/types/index.d.ts +3 -0
  109. package/dist/url/index.d.ts +40 -0
  110. package/dist/url/index.d.ts.map +1 -0
  111. package/dist/uuid/index.d.ts +99 -0
  112. package/dist/uuid/index.d.ts.map +1 -0
  113. package/dist/validation/index.d.ts +49 -0
  114. package/dist/validation/index.d.ts.map +1 -0
  115. package/dist/validation/index.js +1 -1
  116. package/package.json +3 -16
  117. package/dist/chunks/chunk-DCFILRIS.js +0 -1
  118. package/dist/math/math.js +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/mime-types/db.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0/Ib,CAAA;AAEV,MAAM,MAAM,aAAa,GACxB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjF,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAErD,KAAK,cAAc,GAAG,MAAM,CAC3B,QAAQ,EACR;IACC,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,aAAa,EAAE,CAAA;IAC3B,YAAY,EAAE,OAAO,GAAG,IAAI,CAAA;CAC5B,CACD,CAAA;AAED,eAAO,MAAM,SAAS,EAAmC,cAAc,CAAA;AAEvE,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAA"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Vendored version of mime-types that can run on the edge due to not using path.extname
3
+ *
4
+ * Also ported it to TypeScript cause it was easier than playing around with custom d.ts file
5
+ *
6
+ * Removed all the stuff we didn't use
7
+ */
8
+ /*!
9
+ * mime-types
10
+ * Copyright(c) 2014 Jonathan Ong
11
+ * Copyright(c) 2015 Douglas Christopher Wilson
12
+ * MIT Licensed
13
+ */
14
+ import type { FileExtension, MimeType } from './db.js';
15
+ export * from './db.js';
16
+ export declare const extensions: Record<MimeType, FileExtension[]>;
17
+ export declare const types: Record<FileExtension, MimeType>;
18
+ /**
19
+ * Lookup the MIME type for a file path/extension.
20
+ *
21
+ * @param {string} path
22
+ * @return {boolean|string}
23
+ */
24
+ export declare function lookup(path: string): false | "application/json" | "application/andrew-inset" | "application/applixware" | "application/atom+xml" | "application/atomcat+xml" | "application/atomdeleted+xml" | "application/atomsvc+xml" | "application/atsc-dwd+xml" | "application/atsc-held+xml" | "application/atsc-rsat+xml" | "application/calendar+xml" | "application/ccxml+xml" | "application/cdfx+xml" | "application/cdmi-capability" | "application/cdmi-container" | "application/cdmi-domain" | "application/cdmi-object" | "application/cdmi-queue" | "application/cpl+xml" | "application/cu-seeme" | "application/dash+xml" | "application/dash-patch+xml" | "application/davmount+xml" | "application/docbook+xml" | "application/dssc+der" | "application/dssc+xml" | "application/ecmascript" | "application/emma+xml" | "application/emotionml+xml" | "application/epub+zip" | "application/exi" | "application/express" | "application/fdt+xml" | "application/font-tdpfr" | "application/geo+json" | "application/gml+xml" | "application/gpx+xml" | "application/gxf" | "application/gzip" | "application/hyperstudio" | "application/inkml+xml" | "application/ipfix" | "application/its+xml" | "application/java-archive" | "application/java-serialized-object" | "application/java-vm" | "application/javascript" | "application/jsonml+json" | "application/ld+json" | "application/lgr+xml" | "application/lost+xml" | "application/mac-binhex40" | "application/mac-compactpro" | "application/mads+xml" | "application/manifest+json" | "application/marc" | "application/marcxml+xml" | "application/mathematica" | "application/mathml+xml" | "application/mbox" | "application/media-policy-dataset+xml" | "application/mediaservercontrol+xml" | "application/metalink+xml" | "application/metalink4+xml" | "application/mets+xml" | "application/mmt-aei+xml" | "application/mmt-usd+xml" | "application/mods+xml" | "application/mp21" | "application/mp4" | "application/msword" | "application/mxf" | "application/n-quads" | "application/n-triples" | "application/node" | "application/octet-stream" | "application/oda" | "application/oebps-package+xml" | "application/ogg" | "application/omdoc+xml" | "application/onenote" | "application/oxps" | "application/p2p-overlay+xml" | "application/patch-ops-error+xml" | "application/pdf" | "application/pgp-encrypted" | "application/pgp-keys" | "application/pgp-signature" | "application/pics-rules" | "application/pkcs10" | "application/pkcs7-mime" | "application/pkcs7-signature" | "application/pkcs8" | "application/pkix-attr-cert" | "application/pkix-cert" | "application/pkix-crl" | "application/pkix-pkipath" | "application/pkixcmp" | "application/pls+xml" | "application/postscript" | "application/provenance+xml" | "application/prs.cww" | "application/pskc+xml" | "application/rdf+xml" | "application/reginfo+xml" | "application/relax-ng-compact-syntax" | "application/resource-lists+xml" | "application/resource-lists-diff+xml" | "application/rls-services+xml" | "application/route-apd+xml" | "application/route-s-tsid+xml" | "application/route-usd+xml" | "application/rpki-ghostbusters" | "application/rpki-manifest" | "application/rpki-roa" | "application/rsd+xml" | "application/rss+xml" | "application/rtf" | "application/sbml+xml" | "application/scvp-cv-request" | "application/scvp-cv-response" | "application/scvp-vp-request" | "application/scvp-vp-response" | "application/sdp" | "application/senml+xml" | "application/sensml+xml" | "application/set-payment-initiation" | "application/set-registration-initiation" | "application/shf+xml" | "application/sieve" | "application/smil+xml" | "application/sparql-query" | "application/sparql-results+xml" | "application/srgs" | "application/srgs+xml" | "application/sru+xml" | "application/ssdl+xml" | "application/ssml+xml" | "application/swid+xml" | "application/tei+xml" | "application/thraud+xml" | "application/timestamped-data" | "application/trig" | "application/ttml+xml" | "application/urc-ressheet+xml" | "application/urc-targetdesc+xml" | "application/vnd.1000minds.decision-model+xml" | "application/vnd.3gpp.pic-bw-large" | "application/vnd.3gpp.pic-bw-small" | "application/vnd.3gpp.pic-bw-var" | "application/vnd.3gpp2.tcap" | "application/vnd.3m.post-it-notes" | "application/vnd.accpac.simply.aso" | "application/vnd.accpac.simply.imp" | "application/vnd.acucobol" | "application/vnd.acucorp" | "application/vnd.adobe.air-application-installer-package+zip" | "application/vnd.adobe.formscentral.fcdt" | "application/vnd.adobe.fxp" | "application/vnd.adobe.xdp+xml" | "application/vnd.adobe.xfdf" | "application/vnd.age" | "application/vnd.ahead.space" | "application/vnd.airzip.filesecure.azf" | "application/vnd.airzip.filesecure.azs" | "application/vnd.amazon.ebook" | "application/vnd.americandynamics.acc" | "application/vnd.amiga.ami" | "application/vnd.android.package-archive" | "application/vnd.anser-web-certificate-issue-initiation" | "application/vnd.anser-web-funds-transfer-initiation" | "application/vnd.antix.game-component" | "application/vnd.apple.installer+xml" | "application/vnd.apple.keynote" | "application/vnd.apple.mpegurl" | "application/vnd.apple.numbers" | "application/vnd.apple.pages" | "application/vnd.aristanetworks.swi" | "application/vnd.astraea-software.iota" | "application/vnd.audiograph" | "application/vnd.balsamiq.bmml+xml" | "application/vnd.blueice.multipass" | "application/vnd.bmi" | "application/vnd.businessobjects" | "application/vnd.chemdraw+xml" | "application/vnd.chipnuts.karaoke-mmd" | "application/vnd.cinderella" | "application/vnd.citationstyles.style+xml" | "application/vnd.claymore" | "application/vnd.cloanto.rp9" | "application/vnd.clonk.c4group" | "application/vnd.cluetrust.cartomobile-config" | "application/vnd.cluetrust.cartomobile-config-pkg" | "application/vnd.commonspace" | "application/vnd.contact.cmsg" | "application/vnd.cosmocaller" | "application/vnd.crick.clicker" | "application/vnd.crick.clicker.keyboard" | "application/vnd.crick.clicker.palette" | "application/vnd.crick.clicker.template" | "application/vnd.crick.clicker.wordbank" | "application/vnd.criticaltools.wbs+xml" | "application/vnd.ctc-posml" | "application/vnd.cups-ppd" | "application/vnd.curl.car" | "application/vnd.curl.pcurl" | "application/vnd.dart" | "application/vnd.data-vision.rdz" | "application/vnd.dbf" | "application/vnd.dece.data" | "application/vnd.dece.ttml+xml" | "application/vnd.dece.unspecified" | "application/vnd.dece.zip" | "application/vnd.denovo.fcselayout-link" | "application/vnd.dna" | "application/vnd.dolby.mlp" | "application/vnd.dpgraph" | "application/vnd.dreamfactory" | "application/vnd.ds-keypoint" | "application/vnd.dvb.ait" | "application/vnd.dvb.service" | "application/vnd.dynageo" | "application/vnd.ecowin.chart" | "application/vnd.enliven" | "application/vnd.epson.esf" | "application/vnd.epson.msf" | "application/vnd.epson.quickanime" | "application/vnd.epson.salt" | "application/vnd.epson.ssf" | "application/vnd.eszigno3+xml" | "application/vnd.ezpix-album" | "application/vnd.ezpix-package" | "application/vnd.fdf" | "application/vnd.fdsn.mseed" | "application/vnd.fdsn.seed" | "application/vnd.flographit" | "application/vnd.fluxtime.clip" | "application/vnd.framemaker" | "application/vnd.frogans.fnc" | "application/vnd.frogans.ltf" | "application/vnd.fsc.weblaunch" | "application/vnd.fujitsu.oasys" | "application/vnd.fujitsu.oasys2" | "application/vnd.fujitsu.oasys3" | "application/vnd.fujitsu.oasysgp" | "application/vnd.fujitsu.oasysprs" | "application/vnd.fujixerox.ddd" | "application/vnd.fujixerox.docuworks" | "application/vnd.fujixerox.docuworks.binder" | "application/vnd.fuzzysheet" | "application/vnd.genomatix.tuxedo" | "application/vnd.geogebra.file" | "application/vnd.geogebra.tool" | "application/vnd.geometry-explorer" | "application/vnd.geonext" | "application/vnd.geoplan" | "application/vnd.geospace" | "application/vnd.gmx" | "application/vnd.google-earth.kml+xml" | "application/vnd.google-earth.kmz" | "application/vnd.grafeq" | "application/vnd.groove-account" | "application/vnd.groove-help" | "application/vnd.groove-identity-message" | "application/vnd.groove-injector" | "application/vnd.groove-tool-message" | "application/vnd.groove-tool-template" | "application/vnd.groove-vcard" | "application/vnd.hal+xml" | "application/vnd.handheld-entertainment+xml" | "application/vnd.hbci" | "application/vnd.hhe.lesson-player" | "application/vnd.hp-hpgl" | "application/vnd.hp-hpid" | "application/vnd.hp-hps" | "application/vnd.hp-jlyt" | "application/vnd.hp-pcl" | "application/vnd.hp-pclxl" | "application/vnd.hydrostatix.sof-data" | "application/vnd.ibm.minipay" | "application/vnd.ibm.modcap" | "application/vnd.ibm.rights-management" | "application/vnd.ibm.secure-container" | "application/vnd.iccprofile" | "application/vnd.igloader" | "application/vnd.immervision-ivp" | "application/vnd.immervision-ivu" | "application/vnd.insors.igm" | "application/vnd.intercon.formnet" | "application/vnd.intergeo" | "application/vnd.intu.qbo" | "application/vnd.intu.qfx" | "application/vnd.ipunplugged.rcprofile" | "application/vnd.irepository.package+xml" | "application/vnd.is-xpr" | "application/vnd.isac.fcs" | "application/vnd.jam" | "application/vnd.jcp.javame.midlet-rms" | "application/vnd.jisp" | "application/vnd.joost.joda-archive" | "application/vnd.kahootz" | "application/vnd.kde.karbon" | "application/vnd.kde.kchart" | "application/vnd.kde.kformula" | "application/vnd.kde.kivio" | "application/vnd.kde.kontour" | "application/vnd.kde.kpresenter" | "application/vnd.kde.kspread" | "application/vnd.kde.kword" | "application/vnd.kenameaapp" | "application/vnd.kidspiration" | "application/vnd.kinar" | "application/vnd.koan" | "application/vnd.kodak-descriptor" | "application/vnd.las.las+xml" | "application/vnd.llamagraphics.life-balance.desktop" | "application/vnd.llamagraphics.life-balance.exchange+xml" | "application/vnd.lotus-1-2-3" | "application/vnd.lotus-approach" | "application/vnd.lotus-freelance" | "application/vnd.lotus-notes" | "application/vnd.lotus-organizer" | "application/vnd.lotus-screencam" | "application/vnd.lotus-wordpro" | "application/vnd.macports.portpkg" | "application/vnd.mapbox-vector-tile" | "application/vnd.mcd" | "application/vnd.medcalcdata" | "application/vnd.mediastation.cdkey" | "application/vnd.mfer" | "application/vnd.mfmp" | "application/vnd.micrografx.flo" | "application/vnd.micrografx.igx" | "application/vnd.mif" | "application/vnd.mobius.daf" | "application/vnd.mobius.dis" | "application/vnd.mobius.mbk" | "application/vnd.mobius.mqy" | "application/vnd.mobius.msl" | "application/vnd.mobius.plc" | "application/vnd.mobius.txf" | "application/vnd.mophun.application" | "application/vnd.mophun.certificate" | "application/vnd.mozilla.xul+xml" | "application/vnd.ms-artgalry" | "application/vnd.ms-cab-compressed" | "application/vnd.ms-excel" | "application/vnd.ms-excel.addin.macroenabled.12" | "application/vnd.ms-excel.sheet.binary.macroenabled.12" | "application/vnd.ms-excel.sheet.macroenabled.12" | "application/vnd.ms-excel.template.macroenabled.12" | "application/vnd.ms-fontobject" | "application/vnd.ms-htmlhelp" | "application/vnd.ms-ims" | "application/vnd.ms-lrm" | "application/vnd.ms-officetheme" | "application/vnd.ms-pki.seccat" | "application/vnd.ms-pki.stl" | "application/vnd.ms-powerpoint" | "application/vnd.ms-powerpoint.addin.macroenabled.12" | "application/vnd.ms-powerpoint.presentation.macroenabled.12" | "application/vnd.ms-powerpoint.slide.macroenabled.12" | "application/vnd.ms-powerpoint.slideshow.macroenabled.12" | "application/vnd.ms-powerpoint.template.macroenabled.12" | "application/vnd.ms-project" | "application/vnd.ms-word.document.macroenabled.12" | "application/vnd.ms-word.template.macroenabled.12" | "application/vnd.ms-works" | "application/vnd.ms-wpl" | "application/vnd.ms-xpsdocument" | "application/vnd.mseq" | "application/vnd.musician" | "application/vnd.muvee.style" | "application/vnd.mynfc" | "application/vnd.neurolanguage.nlu" | "application/vnd.nitf" | "application/vnd.noblenet-directory" | "application/vnd.noblenet-sealer" | "application/vnd.noblenet-web" | "application/vnd.nokia.n-gage.ac+xml" | "application/vnd.nokia.n-gage.data" | "application/vnd.nokia.n-gage.symbian.install" | "application/vnd.nokia.radio-preset" | "application/vnd.nokia.radio-presets" | "application/vnd.novadigm.edm" | "application/vnd.novadigm.edx" | "application/vnd.novadigm.ext" | "application/vnd.oasis.opendocument.chart" | "application/vnd.oasis.opendocument.chart-template" | "application/vnd.oasis.opendocument.database" | "application/vnd.oasis.opendocument.formula" | "application/vnd.oasis.opendocument.formula-template" | "application/vnd.oasis.opendocument.graphics" | "application/vnd.oasis.opendocument.graphics-template" | "application/vnd.oasis.opendocument.image" | "application/vnd.oasis.opendocument.image-template" | "application/vnd.oasis.opendocument.presentation" | "application/vnd.oasis.opendocument.presentation-template" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.spreadsheet-template" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.text-master" | "application/vnd.oasis.opendocument.text-template" | "application/vnd.oasis.opendocument.text-web" | "application/vnd.olpc-sugar" | "application/vnd.oma.dd2+xml" | "application/vnd.openblox.game+xml" | "application/vnd.openofficeorg.extension" | "application/vnd.openstreetmap.data+xml" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.openxmlformats-officedocument.presentationml.slide" | "application/vnd.openxmlformats-officedocument.presentationml.slideshow" | "application/vnd.openxmlformats-officedocument.presentationml.template" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.openxmlformats-officedocument.spreadsheetml.template" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.openxmlformats-officedocument.wordprocessingml.template" | "application/vnd.osgeo.mapguide.package" | "application/vnd.osgi.dp" | "application/vnd.osgi.subsystem" | "application/vnd.palm" | "application/vnd.pawaafile" | "application/vnd.pg.format" | "application/vnd.pg.osasli" | "application/vnd.picsel" | "application/vnd.pmi.widget" | "application/vnd.pocketlearn" | "application/vnd.powerbuilder6" | "application/vnd.previewsystems.box" | "application/vnd.proteus.magazine" | "application/vnd.publishare-delta-tree" | "application/vnd.pvi.ptid1" | "application/vnd.quark.quarkxpress" | "application/vnd.rar" | "application/vnd.realvnc.bed" | "application/vnd.recordare.musicxml" | "application/vnd.recordare.musicxml+xml" | "application/vnd.rig.cryptonote" | "application/vnd.rim.cod" | "application/vnd.rn-realmedia" | "application/vnd.rn-realmedia-vbr" | "application/vnd.route66.link66+xml" | "application/vnd.sailingtracker.track" | "application/vnd.seemail" | "application/vnd.sema" | "application/vnd.semd" | "application/vnd.semf" | "application/vnd.shana.informed.formdata" | "application/vnd.shana.informed.formtemplate" | "application/vnd.shana.informed.interchange" | "application/vnd.shana.informed.package" | "application/vnd.simtech-mindmapper" | "application/vnd.smaf" | "application/vnd.smart.teacher" | "application/vnd.software602.filler.form+xml" | "application/vnd.solent.sdkm+xml" | "application/vnd.spotfire.dxp" | "application/vnd.spotfire.sfs" | "application/vnd.stardivision.calc" | "application/vnd.stardivision.draw" | "application/vnd.stardivision.impress" | "application/vnd.stardivision.math" | "application/vnd.stardivision.writer" | "application/vnd.stardivision.writer-global" | "application/vnd.stepmania.package" | "application/vnd.stepmania.stepchart" | "application/vnd.sun.wadl+xml" | "application/vnd.sun.xml.calc" | "application/vnd.sun.xml.calc.template" | "application/vnd.sun.xml.draw" | "application/vnd.sun.xml.draw.template" | "application/vnd.sun.xml.impress" | "application/vnd.sun.xml.impress.template" | "application/vnd.sun.xml.math" | "application/vnd.sun.xml.writer" | "application/vnd.sun.xml.writer.global" | "application/vnd.sun.xml.writer.template" | "application/vnd.sus-calendar" | "application/vnd.svd" | "application/vnd.symbian.install" | "application/vnd.syncml+xml" | "application/vnd.syncml.dm+wbxml" | "application/vnd.syncml.dm+xml" | "application/vnd.syncml.dmddf+xml" | "application/vnd.tao.intent-module-archive" | "application/vnd.tcpdump.pcap" | "application/vnd.tmobile-livetv" | "application/vnd.trid.tpt" | "application/vnd.triscape.mxs" | "application/vnd.trueapp" | "application/vnd.ufdl" | "application/vnd.uiq.theme" | "application/vnd.umajin" | "application/vnd.unity" | "application/vnd.uoml+xml" | "application/vnd.vcx" | "application/vnd.visio" | "application/vnd.visionary" | "application/vnd.vsf" | "application/vnd.wap.wbxml" | "application/vnd.wap.wmlc" | "application/vnd.wap.wmlscriptc" | "application/vnd.webturbo" | "application/vnd.wolfram.player" | "application/vnd.wordperfect" | "application/vnd.wqd" | "application/vnd.wt.stf" | "application/vnd.xara" | "application/vnd.xfdl" | "application/vnd.yamaha.hv-dic" | "application/vnd.yamaha.hv-script" | "application/vnd.yamaha.hv-voice" | "application/vnd.yamaha.openscoreformat" | "application/vnd.yamaha.openscoreformat.osfpvg+xml" | "application/vnd.yamaha.smaf-audio" | "application/vnd.yamaha.smaf-phrase" | "application/vnd.yellowriver-custom-menu" | "application/vnd.zul" | "application/vnd.zzazz.deck+xml" | "application/voicexml+xml" | "application/wasm" | "application/watcherinfo+xml" | "application/widget" | "application/winhlp" | "application/wsdl+xml" | "application/wspolicy+xml" | "application/x-7z-compressed" | "application/x-abiword" | "application/x-ace-compressed" | "application/x-apple-diskimage" | "application/x-authorware-bin" | "application/x-authorware-map" | "application/x-authorware-seg" | "application/x-bcpio" | "application/x-bittorrent" | "application/x-blorb" | "application/x-bzip" | "application/x-bzip2" | "application/x-cbr" | "application/x-cdlink" | "application/x-cfs-compressed" | "application/x-chat" | "application/x-chess-pgn" | "application/x-cocoa" | "application/x-conference" | "application/x-cpio" | "application/x-csh" | "application/x-debian-package" | "application/x-dgc-compressed" | "application/x-director" | "application/x-doom" | "application/x-dtbncx+xml" | "application/x-dtbook+xml" | "application/x-dtbresource+xml" | "application/x-dvi" | "application/x-envoy" | "application/x-eva" | "application/x-font-bdf" | "application/x-font-ghostscript" | "application/x-font-linux-psf" | "application/x-font-pcf" | "application/x-font-snf" | "application/x-font-type1" | "application/x-freearc" | "application/x-futuresplash" | "application/x-gca-compressed" | "application/x-glulx" | "application/x-gnumeric" | "application/x-gramps-xml" | "application/x-gtar" | "application/x-hdf" | "application/x-install-instructions" | "application/x-iso9660-image" | "application/x-java-archive-diff" | "application/x-java-jnlp-file" | "application/x-latex" | "application/x-lzh-compressed" | "application/x-makeself" | "application/x-mie" | "application/x-mobipocket-ebook" | "application/x-ms-application" | "application/x-ms-shortcut" | "application/x-ms-wmd" | "application/x-ms-wmz" | "application/x-ms-xbap" | "application/x-msaccess" | "application/x-msbinder" | "application/x-mscardfile" | "application/x-msclip" | "application/x-msdownload" | "application/x-msmediaview" | "application/x-msmetafile" | "application/x-msmoney" | "application/x-mspublisher" | "application/x-msschedule" | "application/x-msterminal" | "application/x-mswrite" | "application/x-netcdf" | "application/x-nzb" | "application/x-perl" | "application/x-pilot" | "application/x-pkcs12" | "application/x-pkcs7-certificates" | "application/x-pkcs7-certreqresp" | "application/x-rar-compressed" | "application/x-redhat-package-manager" | "application/x-research-info-systems" | "application/x-sea" | "application/x-sh" | "application/x-shar" | "application/x-shockwave-flash" | "application/x-silverlight-app" | "application/x-sql" | "application/x-stuffit" | "application/x-stuffitx" | "application/x-subrip" | "application/x-sv4cpio" | "application/x-sv4crc" | "application/x-t3vm-image" | "application/x-tads" | "application/x-tar" | "application/x-tcl" | "application/x-tex" | "application/x-tex-tfm" | "application/x-texinfo" | "application/x-tgif" | "application/x-ustar" | "application/x-wais-source" | "application/x-x509-ca-cert" | "application/x-xfig" | "application/x-xliff+xml" | "application/x-xpinstall" | "application/x-xz" | "application/x-zmachine" | "application/xaml+xml" | "application/xcap-att+xml" | "application/xcap-caps+xml" | "application/xcap-diff+xml" | "application/xcap-el+xml" | "application/xcap-ns+xml" | "application/xenc+xml" | "application/xhtml+xml" | "application/xliff+xml" | "application/xml" | "application/xml-dtd" | "application/xop+xml" | "application/xproc+xml" | "application/xslt+xml" | "application/xspf+xml" | "application/xv+xml" | "application/yang" | "application/yin+xml" | "application/zip" | "audio/3gpp" | "audio/adpcm" | "audio/amr" | "audio/basic" | "audio/midi" | "audio/mobile-xmf" | "audio/mp4" | "audio/mpeg" | "audio/ogg" | "audio/s3m" | "audio/silk" | "audio/vnd.dece.audio" | "audio/vnd.digital-winds" | "audio/vnd.dra" | "audio/vnd.dts" | "audio/vnd.dts.hd" | "audio/vnd.lucent.voice" | "audio/vnd.ms-playready.media.pya" | "audio/vnd.nuera.ecelp4800" | "audio/vnd.nuera.ecelp7470" | "audio/vnd.nuera.ecelp9600" | "audio/vnd.rip" | "audio/webm" | "audio/x-aac" | "audio/x-aiff" | "audio/x-caf" | "audio/x-flac" | "audio/x-m4a" | "audio/x-matroska" | "audio/x-mpegurl" | "audio/x-ms-wax" | "audio/x-ms-wma" | "audio/x-pn-realaudio" | "audio/x-pn-realaudio-plugin" | "audio/x-realaudio" | "audio/x-wav" | "audio/xm" | "chemical/x-cdx" | "chemical/x-cif" | "chemical/x-cmdf" | "chemical/x-cml" | "chemical/x-csml" | "chemical/x-xyz" | "font/collection" | "font/otf" | "font/ttf" | "font/woff" | "font/woff2" | "image/aces" | "image/avci" | "image/avcs" | "image/avif" | "image/bmp" | "image/cgm" | "image/dicom-rle" | "image/emf" | "image/fits" | "image/g3fax" | "image/gif" | "image/heic" | "image/heic-sequence" | "image/heif" | "image/heif-sequence" | "image/hej2k" | "image/hsj2" | "image/ief" | "image/jls" | "image/jp2" | "image/jpeg" | "image/jph" | "image/jphc" | "image/jpm" | "image/jpx" | "image/jxr" | "image/jxra" | "image/jxrs" | "image/jxs" | "image/jxsc" | "image/jxsi" | "image/jxss" | "image/ktx" | "image/ktx2" | "image/png" | "image/prs.btif" | "image/prs.pti" | "image/sgi" | "image/svg+xml" | "image/t38" | "image/tiff" | "image/tiff-fx" | "image/vnd.adobe.photoshop" | "image/vnd.airzip.accelerator.azv" | "image/vnd.dece.graphic" | "image/vnd.djvu" | "image/vnd.dvb.subtitle" | "image/vnd.dwg" | "image/vnd.dxf" | "image/vnd.fastbidsheet" | "image/vnd.fpx" | "image/vnd.fst" | "image/vnd.fujixerox.edmics-mmr" | "image/vnd.fujixerox.edmics-rlc" | "image/vnd.microsoft.icon" | "image/vnd.ms-modi" | "image/vnd.ms-photo" | "image/vnd.net-fpx" | "image/vnd.pco.b16" | "image/vnd.tencent.tap" | "image/vnd.valve.source.texture" | "image/vnd.wap.wbmp" | "image/vnd.xiff" | "image/vnd.zbrush.pcx" | "image/webp" | "image/wmf" | "image/x-3ds" | "image/x-cmu-raster" | "image/x-cmx" | "image/x-freehand" | "image/x-icon" | "image/x-jng" | "image/x-mrsid-image" | "image/x-ms-bmp" | "image/x-pcx" | "image/x-pict" | "image/x-portable-anymap" | "image/x-portable-bitmap" | "image/x-portable-graymap" | "image/x-portable-pixmap" | "image/x-rgb" | "image/x-tga" | "image/x-xbitmap" | "image/x-xpixmap" | "image/x-xwindowdump" | "message/disposition-notification" | "message/global" | "message/global-delivery-status" | "message/global-disposition-notification" | "message/global-headers" | "message/rfc822" | "message/vnd.wfa.wsc" | "model/3mf" | "model/gltf+json" | "model/gltf-binary" | "model/iges" | "model/mesh" | "model/mtl" | "model/obj" | "model/step+xml" | "model/step+zip" | "model/step-xml+zip" | "model/stl" | "model/vnd.collada+xml" | "model/vnd.dwf" | "model/vnd.gdl" | "model/vnd.gtw" | "model/vnd.mts" | "model/vnd.opengex" | "model/vnd.parasolid.transmit.binary" | "model/vnd.parasolid.transmit.text" | "model/vnd.sap.vds" | "model/vnd.usdz+zip" | "model/vnd.valve.source.compiled-map" | "model/vnd.vtu" | "model/vrml" | "model/x3d+binary" | "model/x3d+fastinfoset" | "model/x3d+vrml" | "model/x3d+xml" | "model/x3d-vrml" | "text/cache-manifest" | "text/calendar" | "text/css" | "text/csv" | "text/html" | "text/markdown" | "text/mathml" | "text/n3" | "text/plain" | "text/prs.lines.tag" | "text/richtext" | "text/rtf" | "text/sgml" | "text/shex" | "text/spdx" | "text/tab-separated-values" | "text/troff" | "text/turtle" | "text/uri-list" | "text/vcard" | "text/vnd.curl" | "text/vnd.curl.dcurl" | "text/vnd.curl.mcurl" | "text/vnd.curl.scurl" | "text/vnd.dvb.subtitle" | "text/vnd.familysearch.gedcom" | "text/vnd.fly" | "text/vnd.fmi.flexstor" | "text/vnd.graphviz" | "text/vnd.in3d.3dml" | "text/vnd.in3d.spot" | "text/vnd.sun.j2me.app-descriptor" | "text/vnd.wap.wml" | "text/vnd.wap.wmlscript" | "text/vtt" | "text/x-asm" | "text/x-c" | "text/x-component" | "text/x-fortran" | "text/x-java-source" | "text/x-nfo" | "text/x-opml" | "text/x-pascal" | "text/x-setext" | "text/x-sfv" | "text/x-uuencode" | "text/x-vcalendar" | "text/x-vcard" | "text/xml" | "video/3gpp" | "video/3gpp2" | "video/h261" | "video/h263" | "video/h264" | "video/iso.segment" | "video/jpeg" | "video/jpm" | "video/mj2" | "video/mp2t" | "video/mp4" | "video/mpeg" | "video/ogg" | "video/quicktime" | "video/vnd.dece.hd" | "video/vnd.dece.mobile" | "video/vnd.dece.pd" | "video/vnd.dece.sd" | "video/vnd.dece.video" | "video/vnd.dvb.file" | "video/vnd.fvt" | "video/vnd.mpegurl" | "video/vnd.ms-playready.media.pyv" | "video/vnd.uvvu.mp4" | "video/vnd.vivo" | "video/webm" | "video/x-f4v" | "video/x-fli" | "video/x-flv" | "video/x-m4v" | "video/x-matroska" | "video/x-mng" | "video/x-ms-asf" | "video/x-ms-vob" | "video/x-ms-wm" | "video/x-ms-wmv" | "video/x-ms-wmx" | "video/x-ms-wvx" | "video/x-msvideo" | "video/x-sgi-movie" | "video/x-smv" | "x-conference/x-cooltalk";
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mime-types/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAOtD,cAAc,SAAS,CAAA;AAOvB,eAAO,MAAM,UAAU,EAAS,MAAM,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAC,CAAA;AACjE,eAAO,MAAM,KAAK,EAAS,MAAM,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAA;AAK1D;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,swzBAalC"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Checks if the current Node.js version is less than the specified version.
3
+ * If the version is insufficient, logs a message and exits the process.
4
+ *
5
+ * @param nodeVersion - The minimum required Node.js version as a number (e.g., 18).
6
+ *
7
+ * @remarks
8
+ * This function compares the current Node.js version (`process.version`) to the required version.
9
+ * If the current version is lower, it prompts the user to update Node.js and terminates the process.
10
+ *
11
+ * @example
12
+ * nodeVersionCheck(18); // Ensures Node.js version is at least 18
13
+ */
14
+ export declare const nodeVersionCheck: (nodeVersion: number) => void;
15
+ /**
16
+ * Returns the current Node.js major version as a number.
17
+ *
18
+ * @returns The major version number of the running Node.js process.
19
+ *
20
+ * @example
21
+ * const major = getNodeMajorVersion(); // e.g., 18
22
+ */
23
+ export declare const getNodeMajorVersion: () => number;
24
+ /**
25
+ * Checks if the current environment is Node.js.
26
+ *
27
+ * @returns `true` if running in Node.js, otherwise `false`.
28
+ *
29
+ * @example
30
+ * if (isNode()) { ... }
31
+ */
32
+ export declare const isNode: () => boolean;
33
+ /**
34
+ * Attempts to require a module, returning `undefined` if the module is not found.
35
+ *
36
+ * @param moduleName - The name of the module to require.
37
+ * @returns The required module, or `undefined` if it cannot be loaded.
38
+ *
39
+ * @example
40
+ * const optionalModule = requireOptional('some-module');
41
+ */
42
+ export declare function requireOptional(moduleName: string): any | undefined;
43
+ /**
44
+ * Returns the process uptime in seconds.
45
+ *
46
+ * @returns The number of seconds the current Node.js process has been running.
47
+ *
48
+ * @example
49
+ * const uptime = getProcessUptime();
50
+ */
51
+ export declare const getProcessUptime: () => number;
52
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,GAAI,aAAa,MAAM,KAAG,IAMtD,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,QAAO,MAEtC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,QAAO,OAEzB,CAAA;AAED;;;;;;;;GAQG;AAEH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAOnE;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,QAAO,MAEnC,CAAA"}
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Returns a random integer between min and max (inclusive).
3
+ * @param min The minimum value (inclusive).
4
+ * @param max The maximum value (inclusive).
5
+ * @returns A random integer.
6
+ */
7
+ export declare function getRandomInt(min: number, max: number): number;
8
+ /**
9
+ * Clamps a number between a minimum and maximum value.
10
+ * @param value The number to clamp.
11
+ * @param min The minimum value.
12
+ * @param max The maximum value.
13
+ * @returns The clamped value.
14
+ */
15
+ export declare function clamp(value: number, min: number, max: number): number;
16
+ /**
17
+ * Rounds a number to a specified number of decimal places.
18
+ * @param value The number to round.
19
+ * @param decimals The number of decimal places. Defaults to 2.
20
+ * @returns The rounded number.
21
+ */
22
+ export declare function roundTo(value: number, decimals?: number): number;
23
+ /**
24
+ * Checks if a value is a finite number.
25
+ * @param value The value to check.
26
+ * @returns True if the value is a finite number, false otherwise.
27
+ */
28
+ export declare function isFiniteNumber(value: unknown): value is number;
29
+ /**
30
+ * Generates a random float between min (inclusive) and max (exclusive).
31
+ * @param min The minimum value (inclusive).
32
+ * @param max The maximum value (exclusive).
33
+ * @returns A random float.
34
+ */
35
+ export declare function getRandomFloat(min: number, max: number): number;
36
+ /**
37
+ * Checks if a value is an integer.
38
+ * @param value The value to check.
39
+ * @returns True if the value is an integer, false otherwise.
40
+ */
41
+ export declare function isInteger(value: unknown): value is number;
42
+ /**
43
+ * Checks if a number is between two values.
44
+ * @param value The number to check.
45
+ * @param min The minimum value.
46
+ * @param max The maximum value.
47
+ * @param inclusive Whether the range is inclusive (default: true).
48
+ * @returns True if the number is between min and max, false otherwise.
49
+ */
50
+ export declare function between(value: number, min: number, max: number, inclusive?: boolean): boolean;
51
+ /**
52
+ * Returns the sum of an array of numbers.
53
+ * @param numbers The array of numbers to sum.
54
+ * @returns The sum of the numbers.
55
+ */
56
+ export declare function sum(numbers: number[]): number;
57
+ /**
58
+ * Returns the average of an array of numbers.
59
+ * @param numbers The array of numbers.
60
+ * @returns The average value, or 0 if the array is empty.
61
+ */
62
+ export declare function average(numbers: number[]): number;
63
+ /**
64
+ * Returns the true mathematical modulus, handling negative numbers correctly.
65
+ * @param n The dividend.
66
+ * @param m The divisor.
67
+ * @returns The modulus result.
68
+ */
69
+ export declare function mod(n: number, m: number): number;
70
+ /**
71
+ * Returns the smallest value in an array of numbers.
72
+ * @param numbers The array of numbers.
73
+ * @returns The minimum value.
74
+ */
75
+ export declare function min(numbers: number[]): number;
76
+ /**
77
+ * Returns the largest value in an array of numbers.
78
+ * @param numbers The array of numbers.
79
+ * @returns The maximum value.
80
+ */
81
+ export declare function max(numbers: number[]): number;
82
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/numbers/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAErE;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,SAAI,GAAG,MAAM,CAG3D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE9D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAEzD;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,UAAO,GAAG,OAAO,CAE1F;AAED;;;;GAIG;AACH,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAE7C;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAE7C;AAED;;;;GAIG;AACH,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAE7C"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Returns true if the value is a plain object (not null, not array, not function).
3
+ * @param value The value to check.
4
+ * @returns {boolean}
5
+ */
6
+ export declare function isPlainObject(value: any): value is Record<string, any>;
7
+ /**
8
+ * Deeply merges two objects. Does not mutate inputs.
9
+ * @param target The target object.
10
+ * @param source The source object.
11
+ * @returns {object} The merged object.
12
+ */
13
+ export declare function deepMerge<T extends object, U extends object>(target: T, source: U): T & U;
14
+ /**
15
+ * Returns a shallow copy of an object with the given keys omitted.
16
+ * @param obj The source object.
17
+ * @param keys Keys to omit.
18
+ * @returns {object}
19
+ */
20
+ export declare function omit<T extends object, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
21
+ /**
22
+ * Returns a shallow copy of an object with only the given keys.
23
+ * @param obj The source object.
24
+ * @param keys Keys to pick.
25
+ * @returns {object}
26
+ */
27
+ export declare function pick<T extends object, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
28
+ /**
29
+ * Deep clones a value using the native structuredClone algorithm.
30
+ * Correctly handles Date, Map, Set, ArrayBuffer, and circular references.
31
+ * @param obj The value to clone.
32
+ * @returns A deep clone of the value.
33
+ */
34
+ export declare function deepClone<T>(obj: T): T;
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAEtE;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAUzF;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAMvF;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAQvF;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAEtC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Returns the current operating system platform (Node.js only).
3
+ * @returns {string | undefined} The platform (e.g., 'darwin', 'win32', 'linux').
4
+ */
5
+ export declare function getOsPlatform(): string | undefined;
6
+ /**
7
+ * Returns the OS release/version (Node.js only).
8
+ * @returns {string | undefined}
9
+ */
10
+ export declare function getOsRelease(): string | undefined;
11
+ /**
12
+ * Returns the OS architecture (Node.js only).
13
+ * @returns {string | undefined}
14
+ */
15
+ export declare function getOsArch(): string | undefined;
16
+ /**
17
+ * Returns the user's home directory (Node.js only).
18
+ * @returns {string | undefined}
19
+ */
20
+ export declare function getHomeDir(): string | undefined;
21
+ /**
22
+ * Returns the system's temporary directory (Node.js only).
23
+ * @returns {string | undefined}
24
+ */
25
+ export declare function getTmpDir(): string | undefined;
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/os/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,aAAa,IAAI,MAAM,GAAG,SAAS,CAGlD;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAIjD;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,MAAM,GAAG,SAAS,CAG9C;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,GAAG,SAAS,CAM/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,MAAM,GAAG,SAAS,CAO9C"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Returns the current process ID (Node.js only).
3
+ * @returns {number | undefined}
4
+ */
5
+ export declare function getProcessId(): number | undefined;
6
+ /**
7
+ * Returns the current process uptime in seconds (Node.js only).
8
+ * @returns {number | undefined}
9
+ */
10
+ export declare function getProcessUptime(): number | undefined;
11
+ /**
12
+ * Returns the current working directory (Node.js only).
13
+ * @returns {string | undefined}
14
+ */
15
+ export declare function getCwd(): string | undefined;
16
+ /**
17
+ * Returns the current process platform (Node.js only).
18
+ * @returns {string | undefined}
19
+ */
20
+ export declare function getProcessPlatform(): string | undefined;
21
+ /**
22
+ * Exits the process with the given code (Node.js only).
23
+ * @param code Exit code (default 0).
24
+ */
25
+ export declare function exitProcess(code?: number): void;
26
+ /**
27
+ * Returns true if the process is running in a CI environment (Node.js only).
28
+ * @returns {boolean}
29
+ */
30
+ export declare function isCI(): boolean;
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/process/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAGjD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAIrD;AAED;;;GAGG;AACH,wBAAgB,MAAM,IAAI,MAAM,GAAG,SAAS,CAG3C;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,GAAG,SAAS,CAGvD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAU,GAAG,IAAI,CAElD;AAED;;;GAGG;AACH,wBAAgB,IAAI,IAAI,OAAO,CAS9B"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Returns a promise that resolves after a given delay (ms).
3
+ * @param ms Milliseconds to wait.
4
+ * @returns {Promise<void>}
5
+ */
6
+ export declare function delay(ms: number): Promise<void>;
7
+ /**
8
+ * Wraps a promise and returns a tuple [error, result].
9
+ * @param promise The promise to wrap.
10
+ * @returns {Promise<[any, T | undefined]>}
11
+ */
12
+ export declare function to<T>(promise: Promise<T>): Promise<[any, T | undefined]>;
13
+ /**
14
+ * Returns a promise that rejects after a timeout if the input promise does not resolve.
15
+ * @param promise The promise to race.
16
+ * @param ms Timeout in milliseconds.
17
+ * @param error Optional error to throw on timeout.
18
+ * @returns {Promise<T>}
19
+ */
20
+ export declare function withTimeout<T>(promise: Promise<T>, ms: number, error?: any): Promise<T>;
21
+ /**
22
+ * Returns a promise that resolves when all promises resolve, or rejects on the first rejection (like Promise.all).
23
+ * @param promises Array of promises.
24
+ * @returns {Promise<T[]>}
25
+ */
26
+ export declare function all<T>(promises: Promise<T>[]): Promise<T[]>;
27
+ /**
28
+ * Returns a promise that resolves when all promises settle (like Promise.allSettled).
29
+ * @param promises Array of promises.
30
+ * @returns {Promise<PromiseSettledResult<T>[]>}
31
+ */
32
+ export declare function allSettled<T>(promises: Promise<T>[]): Promise<PromiseSettledResult<T>[]>;
33
+ /**
34
+ * Returns a promise that resolves or rejects as soon as one of the promises resolves or rejects (like Promise.race).
35
+ * @param promises Array of promises.
36
+ * @returns {Promise<T>}
37
+ */
38
+ export declare function race<T>(promises: Promise<T>[]): Promise<T>;
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/promises/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C;AAED;;;;GAIG;AAEH,wBAAsB,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAO9E;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC5B,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EACnB,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,GAA0B,GAC/B,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED;;;;GAIG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAE3D;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,CAExF;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAE1D"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Returns a random integer between min (inclusive) and max (inclusive).
3
+ * @param min Minimum integer value.
4
+ * @param max Maximum integer value.
5
+ * @returns {number} Random integer between min and max.
6
+ */
7
+ export declare function randomInt(min: number, max: number): number;
8
+ /**
9
+ * Returns a random float between min (inclusive) and max (exclusive).
10
+ * @param min Minimum float value.
11
+ * @param max Maximum float value.
12
+ * @returns {number} Random float between min and max.
13
+ */
14
+ export declare function randomFloat(min: number, max: number): number;
15
+ /**
16
+ * Returns a random boolean value.
17
+ * @returns {boolean}
18
+ */
19
+ export declare function randomBool(): boolean;
20
+ /**
21
+ * Returns a random element from an array.
22
+ * @param arr The array to pick from.
23
+ * @returns {T | undefined} A random element from the array, or undefined if the array is empty.
24
+ */
25
+ export declare function randomElement<T>(arr: T[]): T | undefined;
26
+ /**
27
+ * Returns a random string of the given length using the given characters.
28
+ * @param length Length of the string.
29
+ * @param chars Characters to use (default: alphanumeric).
30
+ * @returns {string}
31
+ */
32
+ export declare function randomString(length: number, chars?: string): string;
33
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/random/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAEpC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,GAAG,SAAS,CAGxD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC3B,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,MAAyE,GAC9E,MAAM,CAMR"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Escapes special regex characters in a string so it can be used in a RegExp.
3
+ * @param str The string to escape.
4
+ * @returns The escaped string.
5
+ */
6
+ export declare function escapeRegExp(str: string): string;
7
+ /**
8
+ * Tests if a string matches a given regex pattern.
9
+ * @param str The string to test.
10
+ * @param pattern The regex pattern (string or RegExp).
11
+ * @returns True if the string matches, false otherwise.
12
+ */
13
+ export declare function testRegex(str: string, pattern: string | RegExp): boolean;
14
+ /**
15
+ * Returns all matches of a regex pattern in a string.
16
+ * @param str The string to search.
17
+ * @param pattern The regex pattern (string or RegExp).
18
+ * @returns An array of matches, or an empty array if none found.
19
+ */
20
+ export declare function matchAll(str: string, pattern: string | RegExp): RegExpMatchArray[];
21
+ /**
22
+ * Replaces all matches of a regex pattern in a string with a replacement.
23
+ * @param str The string to search.
24
+ * @param pattern The regex pattern (string or RegExp).
25
+ * @param replacement The replacement string or function.
26
+ * @returns The resulting string.
27
+ */
28
+ export declare function replaceAllRegex(str: string, pattern: string | RegExp, replacement: string | ((substring: string, ...args: any[]) => string)): string;
29
+ /**
30
+ * Splits a string by a regex pattern.
31
+ * @param str The string to split.
32
+ * @param pattern The regex pattern (string or RegExp).
33
+ * @returns An array of strings.
34
+ */
35
+ export declare function splitByRegex(str: string, pattern: string | RegExp): string[];
36
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/regex/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAGxE;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,EAAE,CASlF;AAED;;;;;;GAMG;AAEH,wBAAgB,eAAe,CAC9B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,WAAW,EAAE,MAAM,GAAG,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,GACnE,MAAM,CASR;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAG5E"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Sanitizes a string by removing script tags and event handlers.
3
+ * @param str The string to sanitize.
4
+ * @returns The sanitized string.
5
+ */
6
+ export declare function sanitizeString(str: string): string;
7
+ /**
8
+ * Checks if a password is strong (min 8 chars, upper, lower, number, special char).
9
+ * @param password The password to check.
10
+ * @returns True if the password is strong, false otherwise.
11
+ */
12
+ export declare function isStrongPassword(password: string): boolean;
13
+ export declare function generateSecureToken(length?: number): string;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAI1D;AAQD,wBAAgB,mBAAmB,CAAC,MAAM,SAAK,GAAG,MAAM,CAEvD"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Returns the union of two sets.
3
+ * @param a First set.
4
+ * @param b Second set.
5
+ * @returns {Set<T>} Union of a and b.
6
+ */
7
+ export declare function union<T>(a: Set<T>, b: Set<T>): Set<T>;
8
+ /**
9
+ * Returns the intersection of two sets.
10
+ * @param a First set.
11
+ * @param b Second set.
12
+ * @returns {Set<T>} Intersection of a and b.
13
+ */
14
+ export declare function intersection<T>(a: Set<T>, b: Set<T>): Set<T>;
15
+ /**
16
+ * Returns the difference of two sets (elements in a not in b).
17
+ * @param a First set.
18
+ * @param b Second set.
19
+ * @returns {Set<T>} Difference of a and b.
20
+ */
21
+ export declare function difference<T>(a: Set<T>, b: Set<T>): Set<T>;
22
+ /**
23
+ * Returns true if set a is a subset of set b.
24
+ * @param a First set.
25
+ * @param b Second set.
26
+ * @returns {boolean}
27
+ */
28
+ export declare function isSubset<T>(a: Set<T>, b: Set<T>): boolean;
29
+ /**
30
+ * Returns true if set a is a superset of set b.
31
+ * @param a First set.
32
+ * @param b Second set.
33
+ * @returns {boolean}
34
+ */
35
+ export declare function isSuperset<T>(a: Set<T>, b: Set<T>): boolean;
36
+ /**
37
+ * Converts a set to an array.
38
+ * @param set The set to convert.
39
+ * @returns {T[]}
40
+ */
41
+ export declare function setToArray<T>(set: Set<T>): T[];
42
+ /**
43
+ * Converts an array to a set.
44
+ * @param arr The array to convert.
45
+ * @returns {Set<T>}
46
+ */
47
+ export declare function arrayToSet<T>(arr: T[]): Set<T>;
48
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sets/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAErD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAE5D;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAE1D;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,OAAO,CAGzD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,OAAO,CAG3D;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAE9C;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAE9C"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Returns a promise that resolves after the specified number of milliseconds.
3
+ * @param ms Number of milliseconds to sleep.
4
+ * @returns Promise that resolves after ms milliseconds.
5
+ */
6
+ export declare const sleep: (ms: number) => Promise<void>;
7
+ /**
8
+ * Blocks the event loop for the specified number of milliseconds (synchronous sleep).
9
+ * Not recommended for production use, but useful for scripts or tests.
10
+ * @param ms Number of milliseconds to block.
11
+ */
12
+ export declare function sleepSync(ms: number): void;
13
+ /**
14
+ * Returns a promise that resolves after a random delay between min and max milliseconds.
15
+ * @param min Minimum milliseconds to sleep.
16
+ * @param max Maximum milliseconds to sleep.
17
+ * @returns Promise that resolves after a random delay.
18
+ */
19
+ export declare function sleepRandom(min: number, max: number): Promise<void>;
20
+ /**
21
+ * Returns a promise that resolves after ms, or rejects if aborted via AbortSignal.
22
+ * @param ms Milliseconds to sleep.
23
+ * @param signal Optional AbortSignal to cancel the sleep.
24
+ * @returns Promise that resolves after ms or rejects if aborted.
25
+ */
26
+ export declare function sleepWithAbort(ms: number, signal?: AbortSignal): Promise<void>;
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sleep/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,KAAG,OAAO,CAAC,IAAI,CACG,CAAA;AAElD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAG1C;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGnE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAU9E"}