@design-edito/tools 0.2.39 → 0.2.40
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.
- package/agnostic/arrays/dedupe/index.d.ts +7 -0
- package/agnostic/arrays/dedupe/index.js +10 -0
- package/agnostic/arrays/find-duplicates/index.d.ts +14 -0
- package/agnostic/arrays/find-duplicates/index.js +24 -5
- package/agnostic/arrays/find-duplicates/index.test.d.ts +1 -0
- package/agnostic/arrays/is-array-of/index.d.ts +15 -4
- package/agnostic/arrays/is-array-of/index.js +23 -4
- package/agnostic/arrays/is-array-of/index.test.d.ts +1 -0
- package/agnostic/arrays/make/index.d.ts +8 -0
- package/agnostic/arrays/make/index.js +6 -4
- package/agnostic/arrays/make/index.test.d.ts +1 -0
- package/agnostic/arrays/random-pick/index.d.ts +20 -0
- package/agnostic/arrays/random-pick/index.js +2 -10
- package/agnostic/arrays/random-pick/index.test.d.ts +1 -0
- package/agnostic/arrays/shuffle/index.d.ts +8 -0
- package/agnostic/arrays/shuffle/index.js +11 -4
- package/agnostic/arrays/shuffle/index.test.d.ts +1 -0
- package/agnostic/booleans/is-falsy/index.d.ts +17 -0
- package/agnostic/booleans/is-falsy/index.js +1 -1
- package/agnostic/colors/channels/index.d.ts +34 -0
- package/agnostic/colors/channels/index.js +6 -6
- package/agnostic/colors/contrast/index.d.ts +8 -0
- package/agnostic/colors/contrast/index.js +27 -8
- package/agnostic/colors/convert/index.d.ts +144 -0
- package/agnostic/colors/convert/index.js +5 -5
- package/agnostic/colors/distance/index.d.ts +8 -0
- package/agnostic/colors/distance/index.js +50 -7
- package/agnostic/colors/grayscale/index.d.ts +9 -1
- package/agnostic/colors/grayscale/index.js +156 -7
- package/agnostic/colors/invert/index.d.ts +8 -0
- package/agnostic/colors/invert/index.js +45 -7
- package/agnostic/colors/lerp/index.d.ts +12 -1
- package/agnostic/colors/lerp/index.js +97 -7
- package/agnostic/colors/luminance/index.d.ts +7 -0
- package/agnostic/colors/luminance/index.js +6 -6
- package/agnostic/colors/palette/index.d.ts +10 -1
- package/agnostic/colors/palette/index.js +104 -9
- package/agnostic/colors/rotate/index.d.ts +10 -1
- package/agnostic/colors/rotate/index.js +7 -7
- package/agnostic/colors/tidy/index.d.ts +9 -1
- package/agnostic/colors/tidy/index.js +5 -5
- package/agnostic/colors/typechecks/index.d.ts +60 -0
- package/agnostic/colors/typechecks/index.js +3 -3
- package/agnostic/colors/types.d.ts +106 -0
- package/agnostic/colors/types.js +2 -2
- package/agnostic/css/bem/index.d.ts +29 -6
- package/agnostic/css/bem/index.js +155 -6
- package/agnostic/css/generate-nice-color/index.d.ts +8 -2
- package/agnostic/css/generate-nice-color/index.js +70 -5
- package/agnostic/css/is-valid-css-class-name/index.d.ts +11 -0
- package/agnostic/css/is-valid-css-class-name/index.js +1 -1
- package/agnostic/css/styles-set/index.js +167 -15
- package/agnostic/errors/register/index.d.ts +31 -33
- package/agnostic/errors/register/index.js +49 -5
- package/agnostic/errors/unknown-to-string/index.d.ts +6 -0
- package/agnostic/errors/unknown-to-string/index.js +1 -1
- package/agnostic/html/get-node-ancestors/index.d.ts +12 -0
- package/agnostic/html/get-node-ancestors/index.js +1 -1
- package/agnostic/html/get-position-inside-parent/index.d.ts +8 -0
- package/agnostic/html/get-position-inside-parent/index.js +8 -4
- package/agnostic/html/hyper-json/cast/index.js +12 -12
- package/agnostic/html/hyper-json/index.js +40 -16
- package/agnostic/html/hyper-json/method/index.js +1 -1
- package/agnostic/html/hyper-json/serialize/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +12 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +12 -12
- package/agnostic/html/hyper-json/transformer/index.d.ts +1 -1
- package/agnostic/html/hyper-json/transformer/index.js +3 -3
- package/agnostic/html/hyper-json/tree/index.js +12 -12
- package/agnostic/html/hyper-json/types/index.d.ts +1 -1
- package/agnostic/html/hyper-json/types/index.js +1 -1
- package/agnostic/html/hyper-json/utils/index.d.ts +1 -1
- package/agnostic/html/hyper-json/utils/index.js +12 -12
- package/agnostic/html/insert-node/index.d.ts +17 -0
- package/agnostic/html/insert-node/index.js +1 -1
- package/agnostic/html/placeholders/index.d.ts +7 -9
- package/agnostic/html/placeholders/index.js +37 -5
- package/agnostic/html/replace-in-element/index.d.ts +14 -0
- package/agnostic/html/replace-in-element/index.js +1 -1
- package/agnostic/html/selector-to-element/index.d.ts +16 -1
- package/agnostic/html/selector-to-element/index.js +29 -11
- package/agnostic/html/string-to-nodes/index.d.ts +14 -7
- package/agnostic/html/string-to-nodes/index.js +14 -12
- package/agnostic/misc/assert/index.d.ts +5 -7
- package/agnostic/misc/assert/index.js +61 -8
- package/agnostic/misc/cast/index.d.ts +81 -10
- package/agnostic/misc/cast/index.js +18 -4
- package/agnostic/misc/connection/index.d.ts +26 -0
- package/agnostic/misc/connection/index.js +39 -0
- package/agnostic/misc/crawler/index.d.ts +63 -16
- package/agnostic/misc/crawler/index.js +36 -5
- package/agnostic/misc/crossenv/detect-runtime/index.d.ts +12 -2
- package/agnostic/misc/crossenv/detect-runtime/index.js +14 -5
- package/agnostic/misc/crossenv/types.d.ts +39 -0
- package/agnostic/misc/crossenv/types.js +7 -0
- package/agnostic/misc/crossenv/window/index.d.ts +28 -7
- package/agnostic/misc/crossenv/window/index.js +10 -4
- package/agnostic/misc/crossenv/window/index.test.d.ts +1 -0
- package/agnostic/misc/data-size/index.d.ts +43 -21
- package/agnostic/misc/data-size/index.js +270 -34
- package/agnostic/misc/data-size/types.d.ts +37 -0
- package/agnostic/misc/elo/index.d.ts +28 -30
- package/agnostic/misc/elo/index.js +27 -30
- package/agnostic/misc/is-constructor-function/index.d.ts +11 -0
- package/agnostic/misc/is-constructor-function/index.js +1 -1
- package/agnostic/misc/is-nullish/index.d.ts +22 -0
- package/agnostic/misc/is-nullish/index.js +1 -1
- package/agnostic/misc/logs/logger/index.js +109 -4
- package/agnostic/misc/logs/make-text-block/index.js +1 -1
- package/agnostic/misc/logs/styles/index.js +1 -1
- package/agnostic/misc/lorem-ipsum/index.d.ts +3 -5
- package/agnostic/misc/lorem-ipsum/index.js +187 -23
- package/agnostic/misc/normalize-extension/index.d.ts +10 -0
- package/agnostic/misc/normalize-extension/index.js +1 -1
- package/agnostic/misc/outcome/index.d.ts +56 -15
- package/agnostic/misc/outcome/index.js +8 -4
- package/agnostic/numbers/absolute-modulo/index.d.ts +7 -0
- package/agnostic/numbers/absolute-modulo/index.js +1 -1
- package/agnostic/numbers/clamp/index.d.ts +8 -0
- package/agnostic/numbers/clamp/index.js +1 -1
- package/agnostic/numbers/interpolate/index.d.ts +20 -1
- package/agnostic/numbers/interpolate/index.js +12 -7
- package/agnostic/numbers/responsive-harmonics/index.d.ts +20 -0
- package/agnostic/numbers/responsive-harmonics/index.js +49 -5
- package/agnostic/numbers/round/index.d.ts +24 -3
- package/agnostic/numbers/round/index.js +2 -2
- package/agnostic/objects/deep-get-property/index.d.ts +8 -0
- package/agnostic/objects/deep-get-property/index.js +23 -4
- package/agnostic/objects/enums/is-in-enum/index.d.ts +10 -0
- package/agnostic/objects/enums/is-in-enum/index.js +1 -1
- package/agnostic/objects/flatten-getters/index.d.ts +6 -0
- package/agnostic/objects/flatten-getters/index.js +19 -4
- package/agnostic/objects/is-object/index.d.ts +12 -0
- package/agnostic/objects/is-object/index.js +1 -1
- package/agnostic/objects/is-record/index.d.ts +6 -0
- package/agnostic/objects/is-record/index.js +1 -1
- package/agnostic/objects/record-format/index.d.ts +27 -0
- package/agnostic/objects/record-format/index.js +15 -4
- package/agnostic/objects/record-map/index.d.ts +9 -0
- package/agnostic/objects/record-map/index.js +1 -1
- package/agnostic/objects/validation/index.d.ts +11 -3
- package/agnostic/objects/validation/index.js +9 -5
- package/agnostic/optim/memoize/index.d.ts +10 -1
- package/agnostic/optim/memoize/index.js +16 -4
- package/agnostic/optim/throttle-debounce/index.js +110 -5
- package/agnostic/optim/throttle-debounce/types.d.ts +1 -1
- package/agnostic/random/hex-char/index.d.ts +2 -0
- package/agnostic/random/hex-char/index.js +1 -1
- package/agnostic/random/random/index.d.ts +14 -0
- package/agnostic/random/random/index.js +1 -1
- package/agnostic/random/uuid/index.d.ts +18 -0
- package/agnostic/random/uuid/index.js +1 -1
- package/agnostic/regexps/index.d.ts +95 -24
- package/agnostic/regexps/index.js +86 -5
- package/agnostic/sanitization/file-name/index.d.ts +13 -0
- package/agnostic/sanitization/file-name/index.js +7 -0
- package/agnostic/sanitization/html/index.d.ts +61 -0
- package/agnostic/sanitization/html/index.js +121 -0
- package/agnostic/sanitization/path/index.d.ts +11 -0
- package/agnostic/sanitization/path/index.js +14 -0
- package/agnostic/sanitization/types.d.ts +37 -0
- package/agnostic/sanitization/types.js +0 -0
- package/agnostic/sanitization/user-input/index.d.ts +13 -0
- package/agnostic/sanitization/user-input/index.js +23 -0
- package/agnostic/strings/char-codes/index.d.ts +82 -17
- package/agnostic/strings/char-codes/index.js +68 -5
- package/agnostic/strings/matches/index.d.ts +24 -0
- package/agnostic/strings/matches/index.js +1 -1
- package/agnostic/strings/normalize-indent/index.d.ts +22 -0
- package/agnostic/strings/normalize-indent/index.js +16 -4
- package/agnostic/strings/parse-table/index.d.ts +123 -66
- package/agnostic/strings/parse-table/index.js +83 -4
- package/agnostic/strings/replace-all/index.d.ts +20 -0
- package/agnostic/strings/replace-all/index.js +2 -2
- package/agnostic/strings/to-alphanum/index.d.ts +18 -0
- package/agnostic/strings/to-alphanum/index.js +8 -4
- package/agnostic/strings/trim/index.d.ts +18 -0
- package/agnostic/strings/trim/index.js +1 -1
- package/agnostic/time/dates/format-date/index.d.ts +47 -0
- package/agnostic/time/dates/format-date/index.js +58 -4
- package/agnostic/time/duration/index.d.ts +38 -25
- package/agnostic/time/duration/index.js +110 -5
- package/agnostic/time/timeout/index.d.ts +8 -0
- package/agnostic/time/timeout/index.js +16 -4
- package/agnostic/time/transitions/index.d.ts +73 -40
- package/agnostic/time/transitions/index.js +158 -5
- package/agnostic/time/wait/index.d.ts +6 -0
- package/agnostic/time/wait/index.js +1 -1
- package/chunks/{chunk-CLLJV343.js → chunk-27SSMK5F.js} +8 -7
- package/chunks/{chunk-FNQAF6CQ.js → chunk-2QDYPY2O.js} +5 -5
- package/chunks/{chunk-ON6LC3HE.js → chunk-2WSVYQ5Q.js} +6 -13
- package/chunks/chunk-4WE2WEXL.js +12 -0
- package/chunks/{chunk-QWNWZBIO.js → chunk-53ILYMIY.js} +8 -7
- package/chunks/{chunk-FF5NURFO.js → chunk-54KPQCVI.js} +6 -13
- package/chunks/{chunk-SRXNICSE.js → chunk-5CFQCSKJ.js} +6 -5
- package/chunks/{chunk-FKDPPFHV.js → chunk-5NTPCRFH.js} +1 -11
- package/chunks/{chunk-IV75M3KE.js → chunk-5O52VUI6.js} +6 -13
- package/chunks/{chunk-4XSDRT23.js → chunk-5X76KDYN.js} +7 -14
- package/chunks/{chunk-RHKFMXM3.js → chunk-65BFQP3T.js} +6 -5
- package/chunks/{chunk-7J7CYOXU.js → chunk-66BURDRK.js} +8 -15
- package/chunks/{chunk-ZEZCYPLQ.js → chunk-6BGIDRU5.js} +7 -14
- package/chunks/{chunk-5ZJ3KJPK.js → chunk-6YVXSCRH.js} +7 -14
- package/chunks/{chunk-NMYVJJXV.js → chunk-7B2E2NGH.js} +7 -14
- package/chunks/{chunk-YXLHZ2KW.js → chunk-AKFDKOHE.js} +2 -2
- package/chunks/{chunk-QAVYONH6.js → chunk-AKNR3U25.js} +5 -5
- package/chunks/{chunk-CVDCTI7F.js → chunk-AOEOW5XW.js} +7 -14
- package/chunks/{chunk-QSU3CVGF.js → chunk-ASWI3EO6.js} +6 -5
- package/chunks/{chunk-QWZ4ZNFA.js → chunk-AV373PHY.js} +8 -15
- package/chunks/{chunk-VROZGPC5.js → chunk-AXMAF3J2.js} +7 -14
- package/chunks/{chunk-QTA7ZEVX.js → chunk-AYGAQQXD.js} +6 -5
- package/chunks/chunk-BHGRXDTS.js +28 -0
- package/chunks/{chunk-CNYSX2L2.js → chunk-BQABPH3I.js} +7 -14
- package/chunks/{chunk-WV5N7ESL.js → chunk-BQXTV2GG.js} +9 -16
- package/chunks/{chunk-37TRFYZT.js → chunk-BXFRBV67.js} +6 -13
- package/chunks/{chunk-3LCD73SB.js → chunk-C4VX4TTP.js} +1 -1
- package/chunks/{chunk-3CLGBOHN.js → chunk-DBNCEHTT.js} +6 -13
- package/chunks/{chunk-HRNDUTZE.js → chunk-DBZAJJUF.js} +8 -15
- package/chunks/{chunk-SXRWMH3U.js → chunk-DUCLFPGE.js} +5 -5
- package/chunks/{chunk-UK2F7CWI.js → chunk-EBQRPRRC.js} +6 -13
- package/chunks/{chunk-TGVYEQIA.js → chunk-EEPLTO3E.js} +7 -14
- package/chunks/{chunk-D5CCWCEI.js → chunk-ENOTZXFS.js} +1 -1
- package/chunks/{chunk-ZTDVUXPR.js → chunk-EPUHVR7J.js} +1 -0
- package/chunks/{chunk-NCYE5WML.js → chunk-FAAIUU6V.js} +4 -4
- package/chunks/{chunk-REZC75LB.js → chunk-FH74QWR6.js} +10 -18
- package/chunks/{chunk-FD5WR2A5.js → chunk-FM3HGCFL.js} +8 -15
- package/chunks/{chunk-W3RXHN5I.js → chunk-FSI422YG.js} +6 -13
- package/chunks/{chunk-UT2J62LH.js → chunk-HEY7J6GI.js} +1 -1
- package/chunks/chunk-HOFEVF7T.js +61 -0
- package/chunks/chunk-HYPEWMYZ.js +10 -0
- package/chunks/{chunk-V3L55I2S.js → chunk-IBQQCUYV.js} +6 -13
- package/chunks/{chunk-2HJPX7E3.js → chunk-IK2S6ZYP.js} +6 -5
- package/chunks/{chunk-V3GX7SIJ.js → chunk-ISJONMNA.js} +1 -13
- package/chunks/{chunk-ZJTWDCNZ.js → chunk-J5D4OQ5U.js} +6 -13
- package/chunks/{chunk-67V4BGOB.js → chunk-JDINERKY.js} +1 -1
- package/chunks/{chunk-ZSUG52DO.js → chunk-JFXEMK66.js} +6 -13
- package/chunks/{chunk-RWO53U4X.js → chunk-JN2UETL4.js} +7 -14
- package/chunks/chunk-JU23NBY2.js +22 -0
- package/chunks/{chunk-BKO7GLC2.js → chunk-JVMFT3IT.js} +7 -6
- package/chunks/{chunk-AQBJ6HNB.js → chunk-K5UF634H.js} +1 -5
- package/chunks/{chunk-7UGMWTP5.js → chunk-KRYJVBO5.js} +1 -10
- package/chunks/{chunk-DZ2T5DTY.js → chunk-LFHDJTZJ.js} +1 -1
- package/chunks/{chunk-3G6FOHII.js → chunk-MHNUCHPP.js} +6 -5
- package/chunks/{chunk-P5JJOC5K.js → chunk-MSJ7WDFX.js} +8 -7
- package/chunks/{chunk-5VHFXWFM.js → chunk-NEMHJSNM.js} +6 -13
- package/chunks/{chunk-BWYH445G.js → chunk-NIIAUOBO.js} +6 -13
- package/chunks/{chunk-HFZGH6V2.js → chunk-NR7STUY3.js} +6 -5
- package/chunks/{chunk-2JH4TCT2.js → chunk-O66PEU62.js} +6 -13
- package/chunks/{chunk-QH64MYGA.js → chunk-O7UCJNVF.js} +7 -14
- package/chunks/{chunk-WAHPAZQS.js → chunk-OF2W4ZRG.js} +6 -13
- package/chunks/{chunk-P26Y7YUA.js → chunk-PTJO2TGI.js} +6 -5
- package/chunks/{chunk-BE7OXZRK.js → chunk-PTN2V757.js} +7 -14
- package/chunks/chunk-QEKI6WGQ.js +27 -0
- package/chunks/{chunk-EOE2ODJR.js → chunk-QHEWBOQI.js} +3 -3
- package/chunks/{chunk-N2T672IG.js → chunk-RGQNRTBI.js} +6 -13
- package/chunks/chunk-ROWPCMQY.js +29 -0
- package/chunks/{chunk-KJAEVOIW.js → chunk-S2I77NEE.js} +8 -15
- package/chunks/{chunk-CWZFRUBS.js → chunk-S6ZFFGWH.js} +7 -14
- package/chunks/{chunk-6IYUA43Q.js → chunk-SBBIQ5UH.js} +7 -14
- package/chunks/{chunk-IYQV2LP4.js → chunk-SGGJJ46D.js} +321 -319
- package/chunks/{chunk-YVKM7N55.js → chunk-U225LGOV.js} +8 -7
- package/chunks/{chunk-HWEGQVBQ.js → chunk-ULYGDEW2.js} +6 -13
- package/chunks/{chunk-QAQZEKIF.js → chunk-USIYKRNX.js} +6 -6
- package/chunks/{chunk-FB3GNE2B.js → chunk-UZ4SWSOZ.js} +8 -15
- package/chunks/{chunk-4XBUJAQU.js → chunk-VU6JYR3W.js} +7 -14
- package/chunks/{chunk-FE4DECBU.js → chunk-VYDUHDXW.js} +7 -14
- package/chunks/{chunk-BSUQNHAM.js → chunk-W5VY535B.js} +7 -14
- package/chunks/{chunk-STPN5KZL.js → chunk-WF2JNQV4.js} +8 -7
- package/chunks/chunk-XCBH6NLF.js +42 -0
- package/chunks/chunk-XIIJYVJZ.js +15 -0
- package/chunks/{chunk-QDVDHFMZ.js → chunk-Y6FD4ASO.js} +7 -14
- package/chunks/{chunk-C6QTHDDM.js → chunk-YOP6WVCF.js} +7 -14
- package/chunks/chunk-ZKIQ753F.js +23 -0
- package/chunks/{chunk-QLDN574K.js → chunk-ZTPRFEPV.js} +7 -14
- package/components/Comp/index.js +7 -4
- package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +4 -12
- package/node/@aws-s3/storage/directory/copy-dir/index.js +3 -3
- package/node/@aws-s3/storage/directory/list/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/list/index.js +3 -3
- package/node/@aws-s3/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/move-dir/index.js +3 -3
- package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/remove-dir/index.js +3 -3
- package/node/@aws-s3/storage/file/copy/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/copy/index.js +3 -3
- package/node/@aws-s3/storage/file/download/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/download/index.js +3 -3
- package/node/@aws-s3/storage/file/exists/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/exists/index.js +3 -3
- package/node/@aws-s3/storage/file/move/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/move/index.js +3 -3
- package/node/@aws-s3/storage/file/remove/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/remove/index.js +3 -3
- package/node/@aws-s3/storage/file/stat/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/stat/index.js +3 -3
- package/node/@aws-s3/storage/file/upload/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/upload/index.js +3 -3
- package/node/@design-edito/index.d.ts +1 -2
- package/node/@design-edito/index.js +0 -8
- package/node/@express/@multer/index.d.ts +34 -1
- package/node/@express/@multer/index.js +43 -5
- package/node/@google-cloud/storage/bucket/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/bucket/get-metadata/index.js +18 -5
- package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/copy-dir/index.js +3 -3
- package/node/@google-cloud/storage/directory/list/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/list/index.js +3 -3
- package/node/@google-cloud/storage/directory/move-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/move-dir/index.js +3 -3
- package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/remove-dir/index.js +3 -3
- package/node/@google-cloud/storage/file/copy/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/copy/index.js +3 -3
- package/node/@google-cloud/storage/file/download/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/download/index.js +3 -3
- package/node/@google-cloud/storage/file/exists/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/exists/index.js +3 -3
- package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/generate-signed-url/index.js +24 -5
- package/node/@google-cloud/storage/file/get-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-metadata/index.js +20 -5
- package/node/@google-cloud/storage/file/get-permissions/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/get-permissions/index.js +20 -5
- package/node/@google-cloud/storage/file/move/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/move/index.js +3 -3
- package/node/@google-cloud/storage/file/remove/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/remove/index.js +3 -3
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +25 -7
- package/node/@google-cloud/storage/file/stat/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/stat/index.js +3 -3
- package/node/@google-cloud/storage/file/update-metadata/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/update-metadata/index.js +20 -5
- package/node/@google-cloud/storage/file/upload/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/upload/index.js +3 -3
- package/node/cloud-storage/clients/index.d.ts +27 -0
- package/node/cloud-storage/clients/index.js +2 -2
- package/node/cloud-storage/operations/copy-dir/index.d.ts +46 -1
- package/node/cloud-storage/operations/copy-dir/index.js +30 -9
- package/node/cloud-storage/operations/copy-file/index.d.ts +46 -1
- package/node/cloud-storage/operations/copy-file/index.js +30 -9
- package/node/cloud-storage/operations/download-file/index.d.ts +50 -1
- package/node/cloud-storage/operations/download-file/index.js +30 -9
- package/node/cloud-storage/operations/exists-file/index.d.ts +44 -1
- package/node/cloud-storage/operations/exists-file/index.js +30 -9
- package/node/cloud-storage/operations/list-dir/index.d.ts +40 -1
- package/node/cloud-storage/operations/list-dir/index.js +30 -9
- package/node/cloud-storage/operations/move-dir/index.d.ts +46 -1
- package/node/cloud-storage/operations/move-dir/index.js +30 -9
- package/node/cloud-storage/operations/move-file/index.d.ts +46 -1
- package/node/cloud-storage/operations/move-file/index.js +30 -9
- package/node/cloud-storage/operations/remove-dir/index.d.ts +42 -1
- package/node/cloud-storage/operations/remove-dir/index.js +30 -9
- package/node/cloud-storage/operations/remove-file/index.d.ts +42 -1
- package/node/cloud-storage/operations/remove-file/index.js +30 -9
- package/node/cloud-storage/operations/stat-file/index.d.ts +40 -1
- package/node/cloud-storage/operations/stat-file/index.js +30 -9
- package/node/cloud-storage/operations/upload-file/index.d.ts +46 -1
- package/node/cloud-storage/operations/upload-file/index.js +30 -9
- package/node/encryption/@aes-256-gcm/buffer/index.d.ts +1 -1
- package/node/encryption/@aes-256-gcm/buffer/index.js +22 -6
- package/node/encryption/@aes-256-gcm/uint8-array/index.d.ts +1 -1
- package/node/encryption/@aes-256-gcm/uint8-array/index.js +3 -3
- package/node/encryption/key/index.js +12 -4
- package/node/files/is-in-directory/index.d.ts +7 -0
- package/node/files/is-in-directory/index.js +8 -4
- package/node/files/read-write/index.d.ts +48 -4
- package/node/files/read-write/index.js +15 -4
- package/node/files/subpaths/index.d.ts +62 -33
- package/node/files/subpaths/index.js +119 -5
- package/node/ftps/directory/copy-dir/index.d.ts +1 -1
- package/node/ftps/directory/copy-dir/index.js +3 -3
- package/node/ftps/directory/list/index.d.ts +1 -1
- package/node/ftps/directory/list/index.js +3 -3
- package/node/ftps/directory/move-dir/index.d.ts +1 -1
- package/node/ftps/directory/move-dir/index.js +3 -3
- package/node/ftps/directory/remove-dir/index.d.ts +1 -1
- package/node/ftps/directory/remove-dir/index.js +3 -3
- package/node/ftps/file/copy/index.d.ts +1 -1
- package/node/ftps/file/copy/index.js +3 -3
- package/node/ftps/file/download/index.d.ts +1 -1
- package/node/ftps/file/download/index.js +3 -3
- package/node/ftps/file/exists/index.d.ts +1 -1
- package/node/ftps/file/exists/index.js +3 -3
- package/node/ftps/file/move/index.d.ts +1 -1
- package/node/ftps/file/move/index.js +3 -3
- package/node/ftps/file/remove/index.d.ts +1 -1
- package/node/ftps/file/remove/index.js +3 -3
- package/node/ftps/file/stat/index.d.ts +1 -1
- package/node/ftps/file/stat/index.js +3 -3
- package/node/ftps/file/upload/index.d.ts +1 -1
- package/node/ftps/file/upload/index.js +3 -3
- package/node/images/create/index.d.ts +6 -0
- package/node/images/create/index.js +13 -18
- package/node/images/format/index.d.ts +36 -1
- package/node/images/format/index.js +241 -44
- package/node/images/metadata/index.d.ts +6 -0
- package/node/images/metadata/index.js +13 -18
- package/node/images/transform/index.d.ts +23 -1
- package/node/images/transform/index.js +199 -39
- package/node/images/transform/operations/blur/index.d.ts +1 -1
- package/node/images/transform/operations/blur/index.js +4 -4
- package/node/images/transform/operations/brighten/index.d.ts +1 -1
- package/node/images/transform/operations/brighten/index.js +4 -4
- package/node/images/transform/operations/extend/index.d.ts +1 -1
- package/node/images/transform/operations/extend/index.js +9 -19
- package/node/images/transform/operations/extract/index.d.ts +1 -1
- package/node/images/transform/operations/extract/index.js +4 -4
- package/node/images/transform/operations/flatten/index.d.ts +1 -1
- package/node/images/transform/operations/flatten/index.js +9 -19
- package/node/images/transform/operations/flip/index.js +1 -1
- package/node/images/transform/operations/flop/index.js +1 -1
- package/node/images/transform/operations/hue/index.d.ts +1 -1
- package/node/images/transform/operations/hue/index.js +4 -4
- package/node/images/transform/operations/level/index.d.ts +1 -1
- package/node/images/transform/operations/level/index.js +4 -4
- package/node/images/transform/operations/lighten/index.d.ts +1 -1
- package/node/images/transform/operations/lighten/index.js +4 -4
- package/node/images/transform/operations/normalize/index.d.ts +1 -1
- package/node/images/transform/operations/normalize/index.js +4 -4
- package/node/images/transform/operations/overlay/index.d.ts +1 -1
- package/node/images/transform/operations/overlay/index.js +9 -19
- package/node/images/transform/operations/resize/index.d.ts +1 -1
- package/node/images/transform/operations/resize/index.js +9 -19
- package/node/images/transform/operations/rotate/index.d.ts +1 -1
- package/node/images/transform/operations/rotate/index.js +9 -19
- package/node/images/transform/operations/saturate/index.d.ts +1 -1
- package/node/images/transform/operations/saturate/index.js +4 -4
- package/node/images/types.d.ts +136 -1
- package/node/images/types.js +2 -2
- package/node/images/utils/index.d.ts +20 -0
- package/node/images/utils/index.js +6 -16
- package/node/process/on-exit/index.d.ts +23 -0
- package/node/process/on-exit/index.js +25 -8
- package/node/process/prompt-continue/index.d.ts +18 -0
- package/node/process/prompt-continue/index.js +1680 -0
- package/node/process/spawner/index.d.ts +18 -0
- package/node/process/spawner/index.js +83 -0
- package/node/sftp/directory/copy-dir/index.d.ts +1 -1
- package/node/sftp/directory/copy-dir/index.js +3 -3
- package/node/sftp/directory/list/index.d.ts +1 -1
- package/node/sftp/directory/list/index.js +3 -3
- package/node/sftp/directory/move-dir/index.d.ts +1 -1
- package/node/sftp/directory/move-dir/index.js +3 -3
- package/node/sftp/directory/remove-dir/index.d.ts +1 -1
- package/node/sftp/directory/remove-dir/index.js +3 -3
- package/node/sftp/file/copy/index.d.ts +1 -1
- package/node/sftp/file/copy/index.js +3 -3
- package/node/sftp/file/download/index.d.ts +1 -1
- package/node/sftp/file/download/index.js +3 -3
- package/node/sftp/file/exists/index.d.ts +1 -1
- package/node/sftp/file/exists/index.js +3 -3
- package/node/sftp/file/move/index.d.ts +1 -1
- package/node/sftp/file/move/index.js +3 -3
- package/node/sftp/file/remove/index.d.ts +1 -1
- package/node/sftp/file/remove/index.js +3 -3
- package/node/sftp/file/stat/index.d.ts +1 -1
- package/node/sftp/file/stat/index.js +3 -3
- package/node/sftp/file/upload/index.d.ts +1 -1
- package/node/sftp/file/upload/index.js +3 -3
- package/package.json +11 -3
- package/agnostic/arrays/index.d.ts +0 -13
- package/agnostic/arrays/index.js +0 -21
- package/agnostic/booleans/index.d.ts +0 -8
- package/agnostic/booleans/index.js +0 -9
- package/agnostic/colors/index.d.ts +0 -14
- package/agnostic/colors/index.js +0 -107
- package/agnostic/css/bem/BEM.d.ts +0 -29
- package/agnostic/css/bem/getNamesArr.d.ts +0 -2
- package/agnostic/css/index.d.ts +0 -14
- package/agnostic/css/index.js +0 -25
- package/agnostic/errors/index.d.ts +0 -6
- package/agnostic/errors/index.js +0 -9
- package/agnostic/html/index.d.ts +0 -19
- package/agnostic/html/index.js +0 -39
- package/agnostic/html/sanitize/index.d.ts +0 -24
- package/agnostic/html/sanitize/index.js +0 -15
- package/agnostic/index.d.ts +0 -26
- package/agnostic/index.js +0 -144
- package/agnostic/misc/crossenv/index.d.ts +0 -8
- package/agnostic/misc/crossenv/index.js +0 -10
- package/agnostic/misc/crossenv/types/index.d.ts +0 -19
- package/agnostic/misc/crossenv/types/index.js +0 -7
- package/agnostic/misc/get-current-downlink/index.d.ts +0 -1
- package/agnostic/misc/get-current-downlink/index.js +0 -7
- package/agnostic/misc/index.d.ts +0 -25
- package/agnostic/misc/index.js +0 -65
- package/agnostic/misc/logs/index.d.ts +0 -17
- package/agnostic/misc/logs/index.js +0 -10
- package/agnostic/numbers/index.d.ts +0 -13
- package/agnostic/numbers/index.js +0 -12
- package/agnostic/objects/enums/index.d.ts +0 -4
- package/agnostic/objects/enums/index.js +0 -8
- package/agnostic/objects/index.d.ts +0 -19
- package/agnostic/objects/index.js +0 -19
- package/agnostic/optim/index.d.ts +0 -7
- package/agnostic/optim/index.js +0 -9
- package/agnostic/random/index.d.ts +0 -12
- package/agnostic/random/index.js +0 -10
- package/agnostic/sanitization/index.d.ts +0 -3
- package/agnostic/sanitization/index.js +0 -35
- package/agnostic/strings/index.d.ts +0 -19
- package/agnostic/strings/index.js +0 -15
- package/agnostic/time/dates/index.d.ts +0 -4
- package/agnostic/time/dates/index.js +0 -8
- package/agnostic/time/index.d.ts +0 -12
- package/agnostic/time/index.js +0 -30
- package/chunks/chunk-26T64AEI.js +0 -28
- package/chunks/chunk-34U4HX4V.js +0 -73
- package/chunks/chunk-3KZNRSDD.js +0 -112
- package/chunks/chunk-3USAHFOX.js +0 -31
- package/chunks/chunk-42K3MQQ5.js +0 -31
- package/chunks/chunk-45E3E4KW.js +0 -43
- package/chunks/chunk-4RPGLKRQ.js +0 -43
- package/chunks/chunk-536IRELM.js +0 -40
- package/chunks/chunk-5CTAKAIP.js +0 -28
- package/chunks/chunk-6KM4UT6T.js +0 -34
- package/chunks/chunk-6NYUQXJT.js +0 -109
- package/chunks/chunk-6RGDWX4A.js +0 -24
- package/chunks/chunk-6YQGM6N6.js +0 -19
- package/chunks/chunk-7AWTHZLY.js +0 -12
- package/chunks/chunk-7DBNMU6N.js +0 -14
- package/chunks/chunk-7YJ4BB73.js +0 -20
- package/chunks/chunk-A3CDUWGR.js +0 -73
- package/chunks/chunk-AL7ESVX4.js +0 -42
- package/chunks/chunk-ALAGBHFV.js +0 -42
- package/chunks/chunk-ANPXBD2G.js +0 -35
- package/chunks/chunk-AZD3VUWK.js +0 -84
- package/chunks/chunk-B43NYQDI.js +0 -16
- package/chunks/chunk-BDGFY3GP.js +0 -42
- package/chunks/chunk-BGSJ5XCH.js +0 -20
- package/chunks/chunk-BJAYUP7M.js +0 -13
- package/chunks/chunk-BLDUC7TT.js +0 -17
- package/chunks/chunk-COVPTTAD.js +0 -10
- package/chunks/chunk-DKITT7OT.js +0 -296
- package/chunks/chunk-EDVNAV3G.js +0 -72
- package/chunks/chunk-EGBJXHCW.js +0 -47
- package/chunks/chunk-EIIADR7E.js +0 -24
- package/chunks/chunk-ENMBK6H7.js +0 -162
- package/chunks/chunk-EUQFWLAH.js +0 -20
- package/chunks/chunk-F3WCF6DL.js +0 -122
- package/chunks/chunk-FEIKHYDQ.js +0 -20
- package/chunks/chunk-FHLCPVND.js +0 -23
- package/chunks/chunk-FPEW3A27.js +0 -14
- package/chunks/chunk-FR5H2OCV.js +0 -21
- package/chunks/chunk-FVFVKL54.js +0 -32
- package/chunks/chunk-FZOU4OAW.js +0 -13
- package/chunks/chunk-G4ZB72XY.js +0 -257
- package/chunks/chunk-G5RRNREY.js +0 -37
- package/chunks/chunk-GABKKGNI.js +0 -206
- package/chunks/chunk-GL42Q643.js +0 -42
- package/chunks/chunk-GTVOFJKO.js +0 -20
- package/chunks/chunk-HKTNK262.js +0 -23
- package/chunks/chunk-HWVEI3RH.js +0 -31
- package/chunks/chunk-IRTPQATN.js +0 -16
- package/chunks/chunk-JBSS64SA.js +0 -6
- package/chunks/chunk-JMU5PDBD.js +0 -20
- package/chunks/chunk-JQXNEJAP.js +0 -18
- package/chunks/chunk-JTJA7DGW.js +0 -36
- package/chunks/chunk-JWBDZPQG.js +0 -18
- package/chunks/chunk-JZ5MFJQB.js +0 -37
- package/chunks/chunk-KIONYWA7.js +0 -168
- package/chunks/chunk-KWQ4K4GN.js +0 -28
- package/chunks/chunk-KXIA3YGF.js +0 -54
- package/chunks/chunk-KXIEPXDI.js +0 -40
- package/chunks/chunk-L7PIZQFC.js +0 -51
- package/chunks/chunk-LEXQ6E6L.js +0 -31
- package/chunks/chunk-LV2VMOWR.js +0 -18
- package/chunks/chunk-MFIGSRSO.js +0 -103
- package/chunks/chunk-MJQF3YZO.js +0 -21
- package/chunks/chunk-MV473S2C.js +0 -28
- package/chunks/chunk-MVYH3CSJ.js +0 -42
- package/chunks/chunk-N4JGLSGA.js +0 -28
- package/chunks/chunk-NRITRUZW.js +0 -10
- package/chunks/chunk-OC4VIF3N.js +0 -42
- package/chunks/chunk-OJCVOSWP.js +0 -41
- package/chunks/chunk-OKCPVFQW.js +0 -56
- package/chunks/chunk-OKFZJ6DJ.js +0 -9
- package/chunks/chunk-PAIUCLVK.js +0 -35
- package/chunks/chunk-PU7NOIJB.js +0 -16
- package/chunks/chunk-PVRYR5KX.js +0 -21
- package/chunks/chunk-PWNX5TWJ.js +0 -60
- package/chunks/chunk-QCOO4PV5.js +0 -54
- package/chunks/chunk-QHAB6XYD.js +0 -30
- package/chunks/chunk-QHLQVR3E.js +0 -54
- package/chunks/chunk-QKE2IYT5.js +0 -42
- package/chunks/chunk-QVPS2BCJ.js +0 -29
- package/chunks/chunk-R4DZKWSR.js +0 -42
- package/chunks/chunk-RASMASS4.js +0 -111
- package/chunks/chunk-RLAZR3NL.js +0 -8
- package/chunks/chunk-RLJOYG64.js +0 -33
- package/chunks/chunk-S2NMAH7K.js +0 -19
- package/chunks/chunk-S32K7POB.js +0 -29
- package/chunks/chunk-SKBOSWM2.js +0 -35
- package/chunks/chunk-SKMCIFS3.js +0 -27
- package/chunks/chunk-SNJJII7A.js +0 -65
- package/chunks/chunk-STW5RKR7.js +0 -175
- package/chunks/chunk-TIER4TF4.js +0 -26
- package/chunks/chunk-UNXRB2AV.js +0 -16
- package/chunks/chunk-UXEKCYL7.js +0 -28
- package/chunks/chunk-VFJYLXCI.js +0 -23
- package/chunks/chunk-VJJIYJMY.js +0 -13
- package/chunks/chunk-VLC7LRED.js +0 -191
- package/chunks/chunk-VTPRO4NJ.js +0 -10
- package/chunks/chunk-VYW4IADX.js +0 -35
- package/chunks/chunk-VZDUZTW6.js +0 -113
- package/chunks/chunk-WAMSK4A3.js +0 -67
- package/chunks/chunk-WH6BPDAC.js +0 -17
- package/chunks/chunk-WOAYU6LB.js +0 -13
- package/chunks/chunk-WOYF3N4A.js +0 -31
- package/chunks/chunk-WSC3WODJ.js +0 -157
- package/chunks/chunk-WSFCRVEQ.js +0 -9
- package/chunks/chunk-X53BGT33.js +0 -42
- package/chunks/chunk-XB3EGDBI.js +0 -127
- package/chunks/chunk-XBA26Z7E.js +0 -42
- package/chunks/chunk-XPGAVZGK.js +0 -98
- package/chunks/chunk-XR2LNUGW.js +0 -42
- package/chunks/chunk-Y5GGIBPI.js +0 -31
- package/chunks/chunk-YKPA3MQL.js +0 -31
- package/chunks/chunk-YP64J65L.js +0 -17
- package/chunks/chunk-YPTFPS76.js +0 -91
- package/chunks/chunk-YQWZ3EP2.js +0 -60
- package/chunks/chunk-YS6WMSWC.js +0 -15
- package/chunks/chunk-YUP434IY.js +0 -43
- package/chunks/chunk-Z7ZDDBV5.js +0 -18
- package/chunks/chunk-ZBBU2P4D.js +0 -28
- package/chunks/chunk-ZLBSI4TR.js +0 -21
- package/chunks/chunk-ZMT6S52U.js +0 -40
- package/chunks/chunk-ZNA7SWFK.js +0 -29
- package/chunks/chunk-ZYTGT7AE.js +0 -20
- package/components/index.d.ts +0 -4
- package/components/index.js +0 -13
- package/node/@aws-s3/index.d.ts +0 -2
- package/node/@aws-s3/index.js +0 -23
- package/node/@aws-s3/storage/directory/index.d.ts +0 -5
- package/node/@aws-s3/storage/directory/index.js +0 -22
- package/node/@aws-s3/storage/file/index.d.ts +0 -8
- package/node/@aws-s3/storage/file/index.js +0 -34
- package/node/@aws-s3/storage/index.d.ts +0 -3
- package/node/@aws-s3/storage/index.js +0 -25
- package/node/@design-edito/thumbnails/index.js +0 -1
- package/node/@express/index.d.ts +0 -2
- package/node/@express/index.js +0 -10
- package/node/@google-cloud/index.d.ts +0 -2
- package/node/@google-cloud/index.js +0 -30
- package/node/@google-cloud/storage/bucket/index.d.ts +0 -5
- package/node/@google-cloud/storage/bucket/index.js +0 -22
- package/node/@google-cloud/storage/directory/index.d.ts +0 -5
- package/node/@google-cloud/storage/directory/index.js +0 -22
- package/node/@google-cloud/storage/file/index.d.ts +0 -13
- package/node/@google-cloud/storage/file/index.js +0 -54
- package/node/@google-cloud/storage/index.d.ts +0 -4
- package/node/@google-cloud/storage/index.js +0 -35
- package/node/cloud-storage/index.d.ts +0 -3
- package/node/cloud-storage/index.js +0 -69
- package/node/cloud-storage/operations/index.d.ts +0 -12
- package/node/cloud-storage/operations/index.js +0 -95
- package/node/encryption/@aes-256-gcm/index.d.ts +0 -3
- package/node/encryption/@aes-256-gcm/index.js +0 -14
- package/node/encryption/index.d.ts +0 -3
- package/node/encryption/index.js +0 -16
- package/node/files/index.d.ts +0 -7
- package/node/files/index.js +0 -15
- package/node/ftps/directory/index.d.ts +0 -5
- package/node/ftps/directory/index.js +0 -22
- package/node/ftps/file/index.d.ts +0 -8
- package/node/ftps/file/index.js +0 -34
- package/node/ftps/index.d.ts +0 -3
- package/node/ftps/index.js +0 -25
- package/node/images/index.d.ts +0 -6
- package/node/images/index.js +0 -59
- package/node/index.d.ts +0 -12
- package/node/index.js +0 -172
- package/node/process/index.d.ts +0 -6
- package/node/process/index.js +0 -16
- package/node/sftp/directory/index.d.ts +0 -5
- package/node/sftp/directory/index.js +0 -22
- package/node/sftp/file/index.d.ts +0 -8
- package/node/sftp/file/index.js +0 -34
- package/node/sftp/index.d.ts +0 -3
- package/node/sftp/index.js +0 -25
- package/shared/errors/index.d.ts +0 -138
- /package/{node/@design-edito/thumbnails/index.d.ts → agnostic/arrays/dedupe/index.test.d.ts} +0 -0
- /package/{shared/index.d.ts → agnostic/misc/data-size/types.js} +0 -0
|
@@ -1,34 +1,243 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
+
|
|
3
|
+
// src/agnostic/misc/data-size/index.ts
|
|
4
|
+
var DataSize = class {
|
|
5
|
+
value;
|
|
6
|
+
unit;
|
|
7
|
+
constructor(value, unit) {
|
|
8
|
+
this.value = value;
|
|
9
|
+
if (unit === "b" || unit === "bit") {
|
|
10
|
+
this.unit = "bit";
|
|
11
|
+
} else if (unit === "B" || unit === "byte") {
|
|
12
|
+
this.unit = "byte";
|
|
13
|
+
} else if (unit === "KB" || unit === "kilobyte") {
|
|
14
|
+
this.unit = "kilobyte";
|
|
15
|
+
} else if (unit === "MB" || unit === "megabyte") {
|
|
16
|
+
this.unit = "megabyte";
|
|
17
|
+
} else if (unit === "GB" || unit === "gigabyte") {
|
|
18
|
+
this.unit = "gigabyte";
|
|
19
|
+
} else if (unit === "TB" || unit === "terabyte") {
|
|
20
|
+
this.unit = "terabyte";
|
|
21
|
+
} else if (unit === "PB" || unit === "petabyte") {
|
|
22
|
+
this.unit = "petabyte";
|
|
23
|
+
} else if (unit === "EB" || unit === "exabyte") {
|
|
24
|
+
this.unit = "exabyte";
|
|
25
|
+
} else if (unit === "KiB" || unit === "kibibyte") {
|
|
26
|
+
this.unit = "kibibyte";
|
|
27
|
+
} else if (unit === "MiB" || unit === "mebibyte") {
|
|
28
|
+
this.unit = "mebibyte";
|
|
29
|
+
} else if (unit === "GiB" || unit === "gibibyte") {
|
|
30
|
+
this.unit = "gibibyte";
|
|
31
|
+
} else if (unit === "TiB" || unit === "tebibyte") {
|
|
32
|
+
this.unit = "tebibyte";
|
|
33
|
+
} else if (unit === "PiB" || unit === "pebibyte") {
|
|
34
|
+
this.unit = "pebibyte";
|
|
35
|
+
} else if (unit === "EiB" || unit === "exbibyte") {
|
|
36
|
+
this.unit = "exbibyte";
|
|
37
|
+
} else {
|
|
38
|
+
this.unit = "byte";
|
|
39
|
+
}
|
|
40
|
+
this.toBits = this.toBits.bind(this);
|
|
41
|
+
this.toBytes = this.toBytes.bind(this);
|
|
42
|
+
this.toKilobytes = this.toKilobytes.bind(this);
|
|
43
|
+
this.toMegabytes = this.toMegabytes.bind(this);
|
|
44
|
+
this.toGigabytes = this.toGigabytes.bind(this);
|
|
45
|
+
this.toTerabytes = this.toTerabytes.bind(this);
|
|
46
|
+
this.toPetabytes = this.toPetabytes.bind(this);
|
|
47
|
+
this.toExabytes = this.toExabytes.bind(this);
|
|
48
|
+
this.toKibibytes = this.toKibibytes.bind(this);
|
|
49
|
+
this.toMebibytes = this.toMebibytes.bind(this);
|
|
50
|
+
this.toGibibytes = this.toGibibytes.bind(this);
|
|
51
|
+
this.toTebibytes = this.toTebibytes.bind(this);
|
|
52
|
+
this.toPebibytes = this.toPebibytes.bind(this);
|
|
53
|
+
this.toExbibytes = this.toExbibytes.bind(this);
|
|
54
|
+
}
|
|
55
|
+
toBits() {
|
|
56
|
+
if (this.unit === "bit") return this.value;
|
|
57
|
+
if (this.unit === "byte") return this.value * 8;
|
|
58
|
+
if (this.unit === "kilobyte") return this.value * 8 * 1e3;
|
|
59
|
+
if (this.unit === "megabyte") return this.value * 8 * 1e6;
|
|
60
|
+
if (this.unit === "gigabyte") return this.value * 8 * 1e9;
|
|
61
|
+
if (this.unit === "terabyte") return this.value * 8 * 1e12;
|
|
62
|
+
if (this.unit === "petabyte") return this.value * 8 * 1e15;
|
|
63
|
+
if (this.unit === "exabyte") return this.value * 8 * 1e18;
|
|
64
|
+
if (this.unit === "kibibyte") return this.value * 8 * 1024;
|
|
65
|
+
if (this.unit === "mebibyte") return this.value * 8 * Math.pow(1024, 2);
|
|
66
|
+
if (this.unit === "gibibyte") return this.value * 8 * Math.pow(1024, 3);
|
|
67
|
+
if (this.unit === "tebibyte") return this.value * 8 * Math.pow(1024, 4);
|
|
68
|
+
if (this.unit === "pebibyte") return this.value * 8 * Math.pow(1024, 5);
|
|
69
|
+
if (this.unit === "exbibyte") return this.value * 8 * Math.pow(1024, 6);
|
|
70
|
+
return this.value;
|
|
71
|
+
}
|
|
72
|
+
/* * * * * * * * * * * * * * * * * *
|
|
73
|
+
* Decimal unit converters
|
|
74
|
+
* * * * * * * * * * * * * * * * * */
|
|
75
|
+
toBytes() {
|
|
76
|
+
return this.toBits() / 8;
|
|
77
|
+
}
|
|
78
|
+
toB = this.toBytes.bind(this);
|
|
79
|
+
toKilobytes() {
|
|
80
|
+
return this.toBytes() / 1e3;
|
|
81
|
+
}
|
|
82
|
+
toKB = this.toKilobytes.bind(this);
|
|
83
|
+
toMegabytes() {
|
|
84
|
+
return this.toBytes() / 1e6;
|
|
85
|
+
}
|
|
86
|
+
toMB = this.toMegabytes.bind(this);
|
|
87
|
+
toGigabytes() {
|
|
88
|
+
return this.toBytes() / 1e9;
|
|
89
|
+
}
|
|
90
|
+
toGB = this.toGigabytes.bind(this);
|
|
91
|
+
toTerabytes() {
|
|
92
|
+
return this.toBytes() / 1e12;
|
|
93
|
+
}
|
|
94
|
+
toTB = this.toTerabytes.bind(this);
|
|
95
|
+
toPetabytes() {
|
|
96
|
+
return this.toBytes() / 1e15;
|
|
97
|
+
}
|
|
98
|
+
toPB = this.toPetabytes.bind(this);
|
|
99
|
+
toExabytes() {
|
|
100
|
+
return this.toBytes() / 1e18;
|
|
101
|
+
}
|
|
102
|
+
toEB = this.toExabytes.bind(this);
|
|
103
|
+
/* * * * * * * * * * * * * * * * * *
|
|
104
|
+
* Binary unit converters
|
|
105
|
+
* * * * * * * * * * * * * * * * * */
|
|
106
|
+
toKibibytes() {
|
|
107
|
+
return this.toBytes() / 1024;
|
|
108
|
+
}
|
|
109
|
+
toKiB = this.toKibibytes.bind(this);
|
|
110
|
+
toMebibytes() {
|
|
111
|
+
return this.toBytes() / Math.pow(1024, 2);
|
|
112
|
+
}
|
|
113
|
+
toMiB = this.toMebibytes.bind(this);
|
|
114
|
+
toGibibytes() {
|
|
115
|
+
return this.toBytes() / Math.pow(1024, 3);
|
|
116
|
+
}
|
|
117
|
+
toGiB = this.toGibibytes.bind(this);
|
|
118
|
+
toTebibytes() {
|
|
119
|
+
return this.toBytes() / Math.pow(1024, 4);
|
|
120
|
+
}
|
|
121
|
+
toTiB = this.toTebibytes.bind(this);
|
|
122
|
+
toPebibytes() {
|
|
123
|
+
return this.toBytes() / Math.pow(1024, 5);
|
|
124
|
+
}
|
|
125
|
+
toPiB = this.toPebibytes.bind(this);
|
|
126
|
+
toExbibytes() {
|
|
127
|
+
return this.toBytes() / Math.pow(1024, 6);
|
|
128
|
+
}
|
|
129
|
+
toEiB = this.toExbibytes.bind(this);
|
|
130
|
+
};
|
|
131
|
+
function bits(value) {
|
|
132
|
+
return new DataSize(value, "bit");
|
|
133
|
+
}
|
|
134
|
+
function bytes(value) {
|
|
135
|
+
return new DataSize(value, "byte");
|
|
136
|
+
}
|
|
137
|
+
function kilobytes(value) {
|
|
138
|
+
return new DataSize(value, "kilobyte");
|
|
139
|
+
}
|
|
140
|
+
function megabytes(value) {
|
|
141
|
+
return new DataSize(value, "megabyte");
|
|
142
|
+
}
|
|
143
|
+
function gigabytes(value) {
|
|
144
|
+
return new DataSize(value, "gigabyte");
|
|
145
|
+
}
|
|
146
|
+
function terabytes(value) {
|
|
147
|
+
return new DataSize(value, "terabyte");
|
|
148
|
+
}
|
|
149
|
+
function petabytes(value) {
|
|
150
|
+
return new DataSize(value, "petabyte");
|
|
151
|
+
}
|
|
152
|
+
function exabytes(value) {
|
|
153
|
+
return new DataSize(value, "exabyte");
|
|
154
|
+
}
|
|
155
|
+
function kibibytes(value) {
|
|
156
|
+
return new DataSize(value, "kibibyte");
|
|
157
|
+
}
|
|
158
|
+
function mebibytes(value) {
|
|
159
|
+
return new DataSize(value, "mebibyte");
|
|
160
|
+
}
|
|
161
|
+
function gibibytes(value) {
|
|
162
|
+
return new DataSize(value, "gibibyte");
|
|
163
|
+
}
|
|
164
|
+
function tebibytes(value) {
|
|
165
|
+
return new DataSize(value, "tebibyte");
|
|
166
|
+
}
|
|
167
|
+
function pebibytes(value) {
|
|
168
|
+
return new DataSize(value, "pebibyte");
|
|
169
|
+
}
|
|
170
|
+
function exbibytes(value) {
|
|
171
|
+
return new DataSize(value, "exbibyte");
|
|
172
|
+
}
|
|
173
|
+
var B = bytes;
|
|
174
|
+
var KB = kilobytes;
|
|
175
|
+
var MB = megabytes;
|
|
176
|
+
var GB = gigabytes;
|
|
177
|
+
var TB = terabytes;
|
|
178
|
+
var PB = petabytes;
|
|
179
|
+
var EB = exabytes;
|
|
180
|
+
var KiB = kibibytes;
|
|
181
|
+
var MiB = mebibytes;
|
|
182
|
+
var GiB = gibibytes;
|
|
183
|
+
var TiB = tebibytes;
|
|
184
|
+
var PiB = pebibytes;
|
|
185
|
+
var EiB = exbibytes;
|
|
186
|
+
function toBits(value, unit) {
|
|
187
|
+
return new DataSize(value, unit).toBits();
|
|
188
|
+
}
|
|
189
|
+
function toBytes(value, unit) {
|
|
190
|
+
return new DataSize(value, unit).toBytes();
|
|
191
|
+
}
|
|
192
|
+
function toKilobytes(value, unit) {
|
|
193
|
+
return new DataSize(value, unit).toKilobytes();
|
|
194
|
+
}
|
|
195
|
+
function toMegabytes(value, unit) {
|
|
196
|
+
return new DataSize(value, unit).toMegabytes();
|
|
197
|
+
}
|
|
198
|
+
function toGigabytes(value, unit) {
|
|
199
|
+
return new DataSize(value, unit).toGigabytes();
|
|
200
|
+
}
|
|
201
|
+
function toTerabytes(value, unit) {
|
|
202
|
+
return new DataSize(value, unit).toTerabytes();
|
|
203
|
+
}
|
|
204
|
+
function toPetabytes(value, unit) {
|
|
205
|
+
return new DataSize(value, unit).toPetabytes();
|
|
206
|
+
}
|
|
207
|
+
function toExabytes(value, unit) {
|
|
208
|
+
return new DataSize(value, unit).toExabytes();
|
|
209
|
+
}
|
|
210
|
+
function toKibibytes(value, unit) {
|
|
211
|
+
return new DataSize(value, unit).toKibibytes();
|
|
212
|
+
}
|
|
213
|
+
function toMebibytes(value, unit) {
|
|
214
|
+
return new DataSize(value, unit).toMebibytes();
|
|
215
|
+
}
|
|
216
|
+
function toGibibytes(value, unit) {
|
|
217
|
+
return new DataSize(value, unit).toGibibytes();
|
|
218
|
+
}
|
|
219
|
+
function toTebibytes(value, unit) {
|
|
220
|
+
return new DataSize(value, unit).toTebibytes();
|
|
221
|
+
}
|
|
222
|
+
function toPebibytes(value, unit) {
|
|
223
|
+
return new DataSize(value, unit).toPebibytes();
|
|
224
|
+
}
|
|
225
|
+
function toExbibytes(value, unit) {
|
|
226
|
+
return new DataSize(value, unit).toExbibytes();
|
|
227
|
+
}
|
|
228
|
+
var toB = toBytes;
|
|
229
|
+
var toKB = toKilobytes;
|
|
230
|
+
var toMB = toMegabytes;
|
|
231
|
+
var toGB = toGigabytes;
|
|
232
|
+
var toTB = toTerabytes;
|
|
233
|
+
var toPB = toPetabytes;
|
|
234
|
+
var toEB = toExabytes;
|
|
235
|
+
var toKiB = toKibibytes;
|
|
236
|
+
var toMiB = toMebibytes;
|
|
237
|
+
var toGiB = toGibibytes;
|
|
238
|
+
var toTiB = toTebibytes;
|
|
239
|
+
var toPiB = toPebibytes;
|
|
240
|
+
var toEiB = toExbibytes;
|
|
32
241
|
export {
|
|
33
242
|
B,
|
|
34
243
|
DataSize,
|
|
@@ -51,11 +260,38 @@ export {
|
|
|
51
260
|
gibibytes,
|
|
52
261
|
gigabytes,
|
|
53
262
|
kibibytes,
|
|
54
|
-
|
|
263
|
+
kilobytes,
|
|
55
264
|
mebibytes,
|
|
56
|
-
|
|
265
|
+
megabytes,
|
|
57
266
|
pebibytes,
|
|
58
267
|
petabytes,
|
|
59
268
|
tebibytes,
|
|
60
|
-
terabytes
|
|
269
|
+
terabytes,
|
|
270
|
+
toB,
|
|
271
|
+
toBits,
|
|
272
|
+
toBytes,
|
|
273
|
+
toEB,
|
|
274
|
+
toEiB,
|
|
275
|
+
toExabytes,
|
|
276
|
+
toExbibytes,
|
|
277
|
+
toGB,
|
|
278
|
+
toGiB,
|
|
279
|
+
toGibibytes,
|
|
280
|
+
toGigabytes,
|
|
281
|
+
toKB,
|
|
282
|
+
toKiB,
|
|
283
|
+
toKibibytes,
|
|
284
|
+
toKilobytes,
|
|
285
|
+
toMB,
|
|
286
|
+
toMebibytes,
|
|
287
|
+
toMegabytes,
|
|
288
|
+
toMiB,
|
|
289
|
+
toPB,
|
|
290
|
+
toPebibytes,
|
|
291
|
+
toPetabytes,
|
|
292
|
+
toPiB,
|
|
293
|
+
toTB,
|
|
294
|
+
toTebibytes,
|
|
295
|
+
toTerabytes,
|
|
296
|
+
toTiB
|
|
61
297
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Binary data units (base 1024).
|
|
3
|
+
*
|
|
4
|
+
* - `'kibibyte'` : 1024 bytes
|
|
5
|
+
* - `'mebibyte'` : 1024² bytes
|
|
6
|
+
* - `'gibibyte'` : 1024³ bytes
|
|
7
|
+
* - `'tebibyte'` : 1024⁴ bytes
|
|
8
|
+
* - `'pebibyte'` : 1024⁵ bytes
|
|
9
|
+
* - `'exbibyte'` : 1024⁶ bytes
|
|
10
|
+
*/
|
|
11
|
+
export type BinaryUnit = 'kibibyte' | 'mebibyte' | 'gibibyte' | 'tebibyte' | 'pebibyte' | 'exbibyte';
|
|
12
|
+
/**
|
|
13
|
+
* Short forms of binary data units.
|
|
14
|
+
*
|
|
15
|
+
* - `'KiB'`, `'MiB'`, `'GiB'`, `'TiB'`, `'PiB'`, `'EiB'`
|
|
16
|
+
*/
|
|
17
|
+
export type BinaryUnitShort = 'KiB' | 'MiB' | 'GiB' | 'TiB' | 'PiB' | 'EiB';
|
|
18
|
+
/**
|
|
19
|
+
* Decimal data units (base 1000).
|
|
20
|
+
*
|
|
21
|
+
* - `'bit'`, `'byte'`, `'kilobyte'`, `'megabyte'`, `'gigabyte'`, `'terabyte'`, `'petabyte'`, `'exabyte'`
|
|
22
|
+
*/
|
|
23
|
+
export type DecimalUnit = 'bit' | 'byte' | 'kilobyte' | 'megabyte' | 'gigabyte' | 'terabyte' | 'petabyte' | 'exabyte';
|
|
24
|
+
/**
|
|
25
|
+
* Short forms of decimal data units.
|
|
26
|
+
*
|
|
27
|
+
* - `'b'`, `'B'`, `'KB'`, `'MB'`, `'GB'`, `'TB'`, `'PB'`, `'EB'`
|
|
28
|
+
*/
|
|
29
|
+
export type DecimalUnitShort = 'b' | 'B' | 'KB' | 'MB' | 'GB' | 'TB' | 'PB' | 'EB';
|
|
30
|
+
/**
|
|
31
|
+
* Any supported data unit (binary or decimal).
|
|
32
|
+
*/
|
|
33
|
+
export type Unit = BinaryUnit | DecimalUnit;
|
|
34
|
+
/**
|
|
35
|
+
* Any supported short-form data unit (binary or decimal).
|
|
36
|
+
*/
|
|
37
|
+
export type UnitShort = BinaryUnitShort | DecimalUnitShort;
|
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
eloB: number;
|
|
21
|
-
};
|
|
22
|
-
bWins: {
|
|
23
|
-
eloA: number;
|
|
24
|
-
eloB: number;
|
|
25
|
-
};
|
|
26
|
-
null: {
|
|
27
|
-
eloA: number;
|
|
28
|
-
eloB: number;
|
|
29
|
-
};
|
|
1
|
+
export declare const K_FACTOR = 32;
|
|
2
|
+
/**
|
|
3
|
+
* Calcule la probabilité de gain de A en fonction des scores Elo de A et B.
|
|
4
|
+
* @param eloA Le score Elo du joueur A.
|
|
5
|
+
* @param eloB Le score Elo du joueur B.
|
|
6
|
+
* @returns La probabilité que le joueur A gagne contre le joueur B.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getWinProbability(eloA: number, eloB: number): number;
|
|
9
|
+
/**
|
|
10
|
+
* Calcule les nouveaux classements Elo pour les scénarios de victoire de A, de B et de match nul.
|
|
11
|
+
* @param eloA Le score Elo actuel du joueur A.
|
|
12
|
+
* @param eloB Le score Elo actuel du joueur B.
|
|
13
|
+
* @param kFactor Facteur K pour les calculs Elo (facultatif, valeur par défaut = 32).
|
|
14
|
+
* @returns Un objet contenant les nouveaux classements Elo pour chaque scénario de résultat.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getOutcome(eloA: number, eloB: number, kFactor?: number): {
|
|
17
|
+
aWins: {
|
|
18
|
+
eloA: number;
|
|
19
|
+
eloB: number;
|
|
30
20
|
};
|
|
31
|
-
|
|
21
|
+
bWins: {
|
|
22
|
+
eloA: number;
|
|
23
|
+
eloB: number;
|
|
24
|
+
};
|
|
25
|
+
null: {
|
|
26
|
+
eloA: number;
|
|
27
|
+
eloB: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
import "../../../chunks/chunk-
|
|
1
|
+
import "../../../chunks/chunk-XCBH6NLF.js";
|
|
2
2
|
|
|
3
3
|
// src/agnostic/misc/elo/index.ts
|
|
4
|
-
var
|
|
5
|
-
(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
Elo2.getOutcome = getOutcome;
|
|
31
|
-
})(Elo || (Elo = {}));
|
|
4
|
+
var K_FACTOR = 32;
|
|
5
|
+
function getWinProbability(eloA, eloB) {
|
|
6
|
+
const exponent = (eloB - eloA) / 400;
|
|
7
|
+
return 1 / (1 + Math.pow(10, exponent));
|
|
8
|
+
}
|
|
9
|
+
function getOutcome(eloA, eloB, kFactor = K_FACTOR) {
|
|
10
|
+
const probA = getWinProbability(eloA, eloB);
|
|
11
|
+
const probB = 1 - probA;
|
|
12
|
+
return {
|
|
13
|
+
aWins: {
|
|
14
|
+
eloA: Math.round(eloA + kFactor * (1 - probA)),
|
|
15
|
+
eloB: Math.round(eloB + kFactor * (0 - probB))
|
|
16
|
+
},
|
|
17
|
+
bWins: {
|
|
18
|
+
eloA: Math.round(eloA + kFactor * (0 - probA)),
|
|
19
|
+
eloB: Math.round(eloB + kFactor * (1 - probB))
|
|
20
|
+
},
|
|
21
|
+
null: {
|
|
22
|
+
eloA: Math.round(eloA + kFactor * (0.5 - probA)),
|
|
23
|
+
eloB: Math.round(eloB + kFactor * (0.5 - probB))
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
32
27
|
export {
|
|
33
|
-
|
|
28
|
+
K_FACTOR,
|
|
29
|
+
getOutcome,
|
|
30
|
+
getWinProbability
|
|
34
31
|
};
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a class or constructor function.
|
|
3
|
+
*
|
|
4
|
+
* @template T - The type of object constructed by the function.
|
|
5
|
+
*/
|
|
1
6
|
export type ConstructorFunction<T extends any = any> = new (...args: any[]) => T;
|
|
7
|
+
/**
|
|
8
|
+
* Checks whether a given value is a constructor function (i.e., a class or function with a prototype).
|
|
9
|
+
*
|
|
10
|
+
* @param {unknown} input - The value to check.
|
|
11
|
+
* @returns {input is ConstructorFunction} `true` if the input is a constructor function, otherwise `false`.
|
|
12
|
+
*/
|
|
2
13
|
export declare function isConstructorFunction(input: unknown): input is ConstructorFunction;
|
|
@@ -1,4 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Array of values considered "nullish".
|
|
3
|
+
*
|
|
4
|
+
* Contains `null` and `undefined`.
|
|
5
|
+
*/
|
|
1
6
|
export declare const nullishValues: (null | undefined)[];
|
|
7
|
+
/**
|
|
8
|
+
* Represents a nullish value (`null` or `undefined`).
|
|
9
|
+
*/
|
|
2
10
|
export type Nullish = null | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Checks whether a value is nullish (`null` or `undefined`).
|
|
13
|
+
*
|
|
14
|
+
* @template T
|
|
15
|
+
* @param {T | Nullish} val - The value to check.
|
|
16
|
+
* @returns {val is Nullish} `true` if the value is nullish, otherwise `false`.
|
|
17
|
+
*/
|
|
3
18
|
export declare function isNullish<T>(val: T | Nullish): val is Nullish;
|
|
19
|
+
/**
|
|
20
|
+
* Checks whether a value is not nullish (`null` or `undefined`).
|
|
21
|
+
*
|
|
22
|
+
* @template T
|
|
23
|
+
* @param {T} val - The value to check.
|
|
24
|
+
* @returns {val is Exclude<T, Nullish>} `true` if the value is not nullish, otherwise `false`.
|
|
25
|
+
*/
|
|
4
26
|
export declare function isNotNullish<T>(val: T): val is Exclude<T, Nullish>;
|
|
@@ -1,7 +1,112 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import "../../../../chunks/chunk-XCBH6NLF.js";
|
|
2
|
+
|
|
3
|
+
// src/agnostic/misc/logs/logger/index.ts
|
|
4
|
+
var logsTimeOrigin = /* @__PURE__ */ new Date();
|
|
5
|
+
var Log = class {
|
|
6
|
+
type;
|
|
7
|
+
data;
|
|
8
|
+
time;
|
|
9
|
+
stack;
|
|
10
|
+
constructor(type, data) {
|
|
11
|
+
this.type = type;
|
|
12
|
+
this.data = data;
|
|
13
|
+
this.time = /* @__PURE__ */ new Date();
|
|
14
|
+
this.stack = new Error().stack ?? "";
|
|
15
|
+
}
|
|
16
|
+
get displayTime() {
|
|
17
|
+
return this.time.toLocaleDateString("en-US", {
|
|
18
|
+
year: "numeric",
|
|
19
|
+
month: "short",
|
|
20
|
+
day: "numeric",
|
|
21
|
+
weekday: "short",
|
|
22
|
+
hour: "numeric",
|
|
23
|
+
minute: "numeric",
|
|
24
|
+
second: "numeric"
|
|
25
|
+
}) + `:${this.time.getMilliseconds()}`;
|
|
26
|
+
}
|
|
27
|
+
get elapsedTimeMs() {
|
|
28
|
+
return (this.time.getTime() - logsTimeOrigin.getTime()) / 1e3;
|
|
29
|
+
}
|
|
30
|
+
get displayStack() {
|
|
31
|
+
return this.stack.split("\n").map((line) => line.trim()).slice(4).join("\n");
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var Logger = class {
|
|
35
|
+
_private_threads = /* @__PURE__ */ new Map();
|
|
36
|
+
constructor() {
|
|
37
|
+
this.dir = this.dir.bind(this);
|
|
38
|
+
this.error = this.error.bind(this);
|
|
39
|
+
this.group = this.group.bind(this);
|
|
40
|
+
this.groupEnd = this.groupEnd.bind(this);
|
|
41
|
+
this.log = this.log.bind(this);
|
|
42
|
+
this.table = this.table.bind(this);
|
|
43
|
+
this.warn = this.warn.bind(this);
|
|
44
|
+
this.setLog = this.setLog.bind(this);
|
|
45
|
+
this.print = this.print.bind(this);
|
|
46
|
+
this.printThreads = this.printThreads.bind(this);
|
|
47
|
+
}
|
|
48
|
+
// assert (thread: string = '', ...args: ConsoleMethodsParams['assert']) { this.setLog(thread, 'assert', args) }
|
|
49
|
+
// count (thread: string = '', ...args: ConsoleMethodsParams['count']) { this.setLog(thread, 'count', args) }
|
|
50
|
+
// countReset (thread: string = '', ...args: ConsoleMethodsParams['countReset']) { this.setLog(thread, 'countReset', args) }
|
|
51
|
+
// debug (thread: string = '', ...args: ConsoleMethodsParams['debug']) { this.setLog(thread, 'debug', args) }
|
|
52
|
+
dir(thread = "", ...args) {
|
|
53
|
+
this.setLog(thread, "dir", args);
|
|
54
|
+
}
|
|
55
|
+
// dirxml (thread: string = '', ...args: ConsoleMethodsParams['dirxml']) { this.setLog(thread, 'dirxml', args) }
|
|
56
|
+
error(thread = "", ...args) {
|
|
57
|
+
this.setLog(thread, "error", args);
|
|
58
|
+
}
|
|
59
|
+
group(thread = "", ...args) {
|
|
60
|
+
this.setLog(thread, "group", args);
|
|
61
|
+
}
|
|
62
|
+
// groupCollapsed (thread: string = '', ...args: ConsoleMethodsParams['groupCollapsed']) { this.setLog(thread, 'groupCollapsed', args) }
|
|
63
|
+
groupEnd(thread = "", ...args) {
|
|
64
|
+
this.setLog(thread, "groupEnd", args);
|
|
65
|
+
}
|
|
66
|
+
// info (thread: string = '', ...args: ConsoleMethodsParams['info']) { this.setLog(thread, 'info', args) }
|
|
67
|
+
log(thread = "", ...args) {
|
|
68
|
+
this.setLog(thread, "log", args);
|
|
69
|
+
}
|
|
70
|
+
table(thread = "", ...args) {
|
|
71
|
+
this.setLog(thread, "table", args);
|
|
72
|
+
}
|
|
73
|
+
// time (thread: string = '', ...args: ConsoleMethodsParams['time']) { this.setLog(thread, 'time', args) }
|
|
74
|
+
// timeEnd (thread: string = '', ...args: ConsoleMethodsParams['timeEnd']) { this.setLog(thread, 'timeEnd', args) }
|
|
75
|
+
// trace (thread: string = '', ...args: ConsoleMethodsParams['trace']) { this.setLog(thread, 'trace', args) }
|
|
76
|
+
warn(thread = "", ...args) {
|
|
77
|
+
this.setLog(thread, "warn", args);
|
|
78
|
+
}
|
|
79
|
+
setLog(threadName, type, data) {
|
|
80
|
+
const log = new Log(type, data);
|
|
81
|
+
const thread = this._private_threads.get(threadName) ?? [];
|
|
82
|
+
this._private_threads.set(threadName, [...thread, log]);
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
print(threadFilter, withStack) {
|
|
86
|
+
const allLogs = Array.from(this._private_threads.entries()).map(([threadName, logs]) => logs.map((log) => ({ threadName, log }))).flat().sort((eltA, eltB) => eltA.log.time.getTime() - eltB.log.time.getTime()).filter(({ threadName }) => {
|
|
87
|
+
if (threadFilter === void 0) return true;
|
|
88
|
+
return threadName === threadFilter;
|
|
89
|
+
});
|
|
90
|
+
allLogs.forEach(({ threadName, log }) => {
|
|
91
|
+
console.log(`%c${threadName}`, "font-weight: 800; color: white; background: black; padding: 4px;", `+${log.elapsedTimeMs}s \u2013`, log.displayTime);
|
|
92
|
+
if (withStack === true) console.log(`%c${log.displayStack}`, "color: grey; font-size: inherit;");
|
|
93
|
+
console[log.type](...log.data);
|
|
94
|
+
console.log("");
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
printThreads(withStack) {
|
|
98
|
+
Array.from(this._private_threads.entries()).forEach(([threadName, logs]) => {
|
|
99
|
+
console.group(`%c${threadName}`, "font-weight: 800; color: white; background: black; padding: 4px;");
|
|
100
|
+
logs.forEach((log) => {
|
|
101
|
+
console.log(`+${log.elapsedTimeMs}s \u2013`, log.displayTime);
|
|
102
|
+
if (withStack === true) console.log(`%c${log.displayStack}`, "color: grey; font-size: inherit;");
|
|
103
|
+
console[log.type](...log.data);
|
|
104
|
+
console.log("");
|
|
105
|
+
});
|
|
106
|
+
console.groupEnd();
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
};
|
|
5
110
|
export {
|
|
6
111
|
Logger
|
|
7
112
|
};
|