fca-shadow 0.0.1-security → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fca-shadow might be problematic. Click here for more details.
- package/.1obgge4cxlazf1346921747~ +0 -0
- package/CHANGELOG.md +2 -0
- package/DOCS.md +1738 -0
- package/GetThreads/GetThreadInfo.js +128 -0
- package/GetThreads/Last-Run.js +65 -0
- package/LICENSE-MIT +21 -0
- package/README.md +132 -3
- package/StateCrypt.js +96 -0
- package/broadcast.js +22 -0
- package/index.html +1200 -0
- package/index.js +684 -0
- package/languages/index.json +150 -0
- package/lib/getInfoNew.js +34 -0
- package/lib/getToken.js +44 -0
- package/logger.js +23 -0
- package/package/database/SyntheticDatabase.sqlite +0 -0
- package/package/database/index.js +358 -0
- package/package/database/node_modules/lodash/_baseGet/README.md +20 -0
- package/package/database/node_modules/lodash/_baseGet/index.js +74 -0
- package/package/database/node_modules/lodash/_baseGet/package.json +18 -0
- package/package/database/node_modules/lodash/add.js +22 -0
- package/package/database/node_modules/lodash/after.js +42 -0
- package/package/database/node_modules/lodash/array.js +67 -0
- package/package/database/node_modules/lodash/ary.js +29 -0
- package/package/database/node_modules/lodash/assign.js +58 -0
- package/package/database/node_modules/lodash/assignIn.js +40 -0
- package/package/database/node_modules/lodash/assignInWith.js +38 -0
- package/package/database/node_modules/lodash/assignWith.js +37 -0
- package/package/database/node_modules/lodash/at.js +23 -0
- package/package/database/node_modules/lodash/attempt.js +35 -0
- package/package/database/node_modules/lodash/before.js +40 -0
- package/package/database/node_modules/lodash/bind.js +57 -0
- package/package/database/node_modules/lodash/bindAll.js +41 -0
- package/package/database/node_modules/lodash/bindKey.js +68 -0
- package/package/database/node_modules/lodash/camelCase.js +29 -0
- package/package/database/node_modules/lodash/capitalize.js +23 -0
- package/package/database/node_modules/lodash/castArray.js +44 -0
- package/package/database/node_modules/lodash/ceil.js +26 -0
- package/package/database/node_modules/lodash/chain.js +38 -0
- package/package/database/node_modules/lodash/chunk.js +50 -0
- package/package/database/node_modules/lodash/clamp.js +39 -0
- package/package/database/node_modules/lodash/clone.js +36 -0
- package/package/database/node_modules/lodash/cloneDeep.js +29 -0
- package/package/database/node_modules/lodash/cloneDeepWith.js +40 -0
- package/package/database/node_modules/lodash/cloneWith.js +42 -0
- package/package/database/node_modules/lodash/collection.js +30 -0
- package/package/database/node_modules/lodash/commit.js +33 -0
- package/package/database/node_modules/lodash/compact.js +31 -0
- package/package/database/node_modules/lodash/concat.js +43 -0
- package/package/database/node_modules/lodash/cond.js +60 -0
- package/package/database/node_modules/lodash/conforms.js +35 -0
- package/package/database/node_modules/lodash/conformsTo.js +32 -0
- package/package/database/node_modules/lodash/constant.js +26 -0
- package/package/database/node_modules/lodash/core.js +3877 -0
- package/package/database/node_modules/lodash/core.min.js +29 -0
- package/package/database/node_modules/lodash/countBy.js +40 -0
- package/package/database/node_modules/lodash/create.js +43 -0
- package/package/database/node_modules/lodash/curry.js +57 -0
- package/package/database/node_modules/lodash/curryRight.js +54 -0
- package/package/database/node_modules/lodash/date.js +3 -0
- package/package/database/node_modules/lodash/debounce.js +191 -0
- package/package/database/node_modules/lodash/deburr.js +45 -0
- package/package/database/node_modules/lodash/defaultTo.js +25 -0
- package/package/database/node_modules/lodash/defaults.js +64 -0
- package/package/database/node_modules/lodash/defaultsDeep.js +30 -0
- package/package/database/node_modules/lodash/defer.js +26 -0
- package/package/database/node_modules/lodash/delay.js +28 -0
- package/package/database/node_modules/lodash/difference.js +33 -0
- package/package/database/node_modules/lodash/differenceBy.js +44 -0
- package/package/database/node_modules/lodash/differenceWith.js +40 -0
- package/package/database/node_modules/lodash/divide.js +22 -0
- package/package/database/node_modules/lodash/drop.js +38 -0
- package/package/database/node_modules/lodash/dropRight.js +39 -0
- package/package/database/node_modules/lodash/dropRightWhile.js +45 -0
- package/package/database/node_modules/lodash/dropWhile.js +45 -0
- package/package/database/node_modules/lodash/each.js +1 -0
- package/package/database/node_modules/lodash/eachRight.js +1 -0
- package/package/database/node_modules/lodash/endsWith.js +43 -0
- package/package/database/node_modules/lodash/entries.js +1 -0
- package/package/database/node_modules/lodash/entriesIn.js +1 -0
- package/package/database/node_modules/lodash/eq.js +37 -0
- package/package/database/node_modules/lodash/escape.js +43 -0
- package/package/database/node_modules/lodash/escapeRegExp.js +32 -0
- package/package/database/node_modules/lodash/every.js +56 -0
- package/package/database/node_modules/lodash/extend.js +1 -0
- package/package/database/node_modules/lodash/extendWith.js +1 -0
- package/package/database/node_modules/lodash/fill.js +45 -0
- package/package/database/node_modules/lodash/filter.js +52 -0
- package/package/database/node_modules/lodash/find.js +42 -0
- package/package/database/node_modules/lodash/findIndex.js +55 -0
- package/package/database/node_modules/lodash/findKey.js +44 -0
- package/package/database/node_modules/lodash/findLast.js +25 -0
- package/package/database/node_modules/lodash/findLastIndex.js +59 -0
- package/package/database/node_modules/lodash/findLastKey.js +44 -0
- package/package/database/node_modules/lodash/first.js +1 -0
- package/package/database/node_modules/lodash/flake.lock +40 -0
- package/package/database/node_modules/lodash/flake.nix +20 -0
- package/package/database/node_modules/lodash/flatMap.js +29 -0
- package/package/database/node_modules/lodash/flatMapDeep.js +31 -0
- package/package/database/node_modules/lodash/flatMapDepth.js +31 -0
- package/package/database/node_modules/lodash/flatten.js +22 -0
- package/package/database/node_modules/lodash/flattenDeep.js +25 -0
- package/package/database/node_modules/lodash/flattenDepth.js +33 -0
- package/package/database/node_modules/lodash/flip.js +28 -0
- package/package/database/node_modules/lodash/floor.js +26 -0
- package/package/database/node_modules/lodash/flow.js +27 -0
- package/package/database/node_modules/lodash/flowRight.js +26 -0
- package/package/database/node_modules/lodash/forEach.js +41 -0
- package/package/database/node_modules/lodash/forEachRight.js +31 -0
- package/package/database/node_modules/lodash/forIn.js +39 -0
- package/package/database/node_modules/lodash/forInRight.js +37 -0
- package/package/database/node_modules/lodash/forOwn.js +36 -0
- package/package/database/node_modules/lodash/forOwnRight.js +34 -0
- package/package/database/node_modules/lodash/fp/F.js +1 -0
- package/package/database/node_modules/lodash/fp/add.js +5 -0
- package/package/database/node_modules/lodash/fp/after.js +5 -0
- package/package/database/node_modules/lodash/fp/all.js +1 -0
- package/package/database/node_modules/lodash/fp/allPass.js +1 -0
- package/package/database/node_modules/lodash/fp/always.js +1 -0
- package/package/database/node_modules/lodash/fp/any.js +1 -0
- package/package/database/node_modules/lodash/fp/anyPass.js +1 -0
- package/package/database/node_modules/lodash/fp/apply.js +1 -0
- package/package/database/node_modules/lodash/fp/array.js +2 -0
- package/package/database/node_modules/lodash/fp/ary.js +5 -0
- package/package/database/node_modules/lodash/fp/assign.js +5 -0
- package/package/database/node_modules/lodash/fp/assignAll.js +5 -0
- package/package/database/node_modules/lodash/fp/assignAllWith.js +5 -0
- package/package/database/node_modules/lodash/fp/assignIn.js +5 -0
- package/package/database/node_modules/lodash/fp/assignInAll.js +5 -0
- package/package/database/node_modules/lodash/fp/assignInAllWith.js +5 -0
- package/package/database/node_modules/lodash/fp/assignInWith.js +5 -0
- package/package/database/node_modules/lodash/fp/assignWith.js +5 -0
- package/package/database/node_modules/lodash/fp/assoc.js +1 -0
- package/package/database/node_modules/lodash/fp/assocPath.js +1 -0
- package/package/database/node_modules/lodash/fp/at.js +5 -0
- package/package/database/node_modules/lodash/fp/attempt.js +5 -0
- package/package/database/node_modules/lodash/fp/before.js +5 -0
- package/package/database/node_modules/lodash/fp/bind.js +5 -0
- package/package/database/node_modules/lodash/fp/bindAll.js +5 -0
- package/package/database/node_modules/lodash/fp/bindKey.js +5 -0
- package/package/database/node_modules/lodash/fp/camelCase.js +5 -0
- package/package/database/node_modules/lodash/fp/capitalize.js +5 -0
- package/package/database/node_modules/lodash/fp/castArray.js +5 -0
- package/package/database/node_modules/lodash/fp/ceil.js +5 -0
- package/package/database/node_modules/lodash/fp/chain.js +5 -0
- package/package/database/node_modules/lodash/fp/chunk.js +5 -0
- package/package/database/node_modules/lodash/fp/clamp.js +5 -0
- package/package/database/node_modules/lodash/fp/clone.js +5 -0
- package/package/database/node_modules/lodash/fp/cloneDeep.js +5 -0
- package/package/database/node_modules/lodash/fp/cloneDeepWith.js +5 -0
- package/package/database/node_modules/lodash/fp/cloneWith.js +5 -0
- package/package/database/node_modules/lodash/fp/collection.js +2 -0
- package/package/database/node_modules/lodash/fp/commit.js +5 -0
- package/package/database/node_modules/lodash/fp/compact.js +5 -0
- package/package/database/node_modules/lodash/fp/complement.js +1 -0
- package/package/database/node_modules/lodash/fp/compose.js +1 -0
- package/package/database/node_modules/lodash/fp/concat.js +5 -0
- package/package/database/node_modules/lodash/fp/cond.js +5 -0
- package/package/database/node_modules/lodash/fp/conforms.js +1 -0
- package/package/database/node_modules/lodash/fp/conformsTo.js +5 -0
- package/package/database/node_modules/lodash/fp/constant.js +5 -0
- package/package/database/node_modules/lodash/fp/contains.js +1 -0
- package/package/database/node_modules/lodash/fp/convert.js +18 -0
- package/package/database/node_modules/lodash/fp/countBy.js +5 -0
- package/package/database/node_modules/lodash/fp/create.js +5 -0
- package/package/database/node_modules/lodash/fp/curry.js +5 -0
- package/package/database/node_modules/lodash/fp/curryN.js +5 -0
- package/package/database/node_modules/lodash/fp/curryRight.js +5 -0
- package/package/database/node_modules/lodash/fp/curryRightN.js +5 -0
- package/package/database/node_modules/lodash/fp/date.js +2 -0
- package/package/database/node_modules/lodash/fp/debounce.js +5 -0
- package/package/database/node_modules/lodash/fp/deburr.js +5 -0
- package/package/database/node_modules/lodash/fp/defaultTo.js +5 -0
- package/package/database/node_modules/lodash/fp/defaults.js +5 -0
- package/package/database/node_modules/lodash/fp/defaultsAll.js +5 -0
- package/package/database/node_modules/lodash/fp/defaultsDeep.js +5 -0
- package/package/database/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
- package/package/database/node_modules/lodash/fp/defer.js +5 -0
- package/package/database/node_modules/lodash/fp/delay.js +5 -0
- package/package/database/node_modules/lodash/fp/difference.js +5 -0
- package/package/database/node_modules/lodash/fp/differenceBy.js +5 -0
- package/package/database/node_modules/lodash/fp/differenceWith.js +5 -0
- package/package/database/node_modules/lodash/fp/dissoc.js +1 -0
- package/package/database/node_modules/lodash/fp/dissocPath.js +1 -0
- package/package/database/node_modules/lodash/fp/divide.js +5 -0
- package/package/database/node_modules/lodash/fp/drop.js +5 -0
- package/package/database/node_modules/lodash/fp/dropLast.js +1 -0
- package/package/database/node_modules/lodash/fp/dropLastWhile.js +1 -0
- package/package/database/node_modules/lodash/fp/dropRight.js +5 -0
- package/package/database/node_modules/lodash/fp/dropRightWhile.js +5 -0
- package/package/database/node_modules/lodash/fp/dropWhile.js +5 -0
- package/package/database/node_modules/lodash/fp/each.js +1 -0
- package/package/database/node_modules/lodash/fp/eachRight.js +1 -0
- package/package/database/node_modules/lodash/fp/endsWith.js +5 -0
- package/package/database/node_modules/lodash/fp/entries.js +1 -0
- package/package/database/node_modules/lodash/fp/entriesIn.js +1 -0
- package/package/database/node_modules/lodash/fp/eq.js +5 -0
- package/package/database/node_modules/lodash/fp/equals.js +1 -0
- package/package/database/node_modules/lodash/fp/escape.js +5 -0
- package/package/database/node_modules/lodash/fp/escapeRegExp.js +5 -0
- package/package/database/node_modules/lodash/fp/every.js +5 -0
- package/package/database/node_modules/lodash/fp/extend.js +1 -0
- package/package/database/node_modules/lodash/fp/extendAll.js +1 -0
- package/package/database/node_modules/lodash/fp/extendAllWith.js +1 -0
- package/package/database/node_modules/lodash/fp/extendWith.js +1 -0
- package/package/database/node_modules/lodash/fp/fill.js +5 -0
- package/package/database/node_modules/lodash/fp/filter.js +5 -0
- package/package/database/node_modules/lodash/fp/find.js +5 -0
- package/package/database/node_modules/lodash/fp/findFrom.js +5 -0
- package/package/database/node_modules/lodash/fp/findIndex.js +5 -0
- package/package/database/node_modules/lodash/fp/findIndexFrom.js +5 -0
- package/package/database/node_modules/lodash/fp/findKey.js +5 -0
- package/package/database/node_modules/lodash/fp/findLast.js +5 -0
- package/package/database/node_modules/lodash/fp.js +2 -0
- package/package/database/node_modules/lodash/fromPairs.js +28 -0
- package/package/database/node_modules/lodash/function.js +25 -0
- package/package/database/node_modules/lodash/functions.js +31 -0
- package/package/database/node_modules/lodash/functionsIn.js +31 -0
- package/package/database/node_modules/lodash/get.js +33 -0
- package/package/database/node_modules/node-fetch/CHANGELOG.md +266 -0
- package/package/database/node_modules/node-fetch/LICENSE.md +22 -0
- package/package/database/node_modules/node-fetch/README.md +583 -0
- package/package/database/node_modules/node-fetch/browser.js +23 -0
- package/package/database/node_modules/node-fetch/lib/index.es.js +1633 -0
- package/package/database/node_modules/node-fetch/lib/index.js +1642 -0
- package/package/database/node_modules/node-fetch/lib/index.mjs +1631 -0
- package/package/database/node_modules/node-fetch/package.json +70 -0
- package/package/database/node_modules/sqlite3/CHANGELOG.md +313 -0
- package/package/database/node_modules/sqlite3/CONTRIBUTING.md +57 -0
- package/package/database/node_modules/sqlite3/LICENSE +25 -0
- package/package/database/node_modules/sqlite3/README.md +259 -0
- package/package/database/node_modules/sqlite3/binding.gyp +66 -0
- package/package/database/node_modules/sqlite3/deps/common-sqlite.gypi +60 -0
- package/package/database/node_modules/sqlite3/deps/extract.js +10 -0
- package/package/database/node_modules/sqlite3/deps/sqlite-autoconf-3380200.tar.gz +0 -0
- package/package/database/node_modules/sqlite3/deps/sqlite3.gyp +121 -0
- package/package/database/node_modules/sqlite3/lib/binding/napi-v6-linux-x64/node_sqlite3.node +0 -0
- package/package/database/node_modules/sqlite3/lib/index.js +1 -0
- package/package/database/node_modules/sqlite3/lib/sqlite3-binding.js +5 -0
- package/package/database/node_modules/sqlite3/lib/sqlite3.js +205 -0
- package/package/database/node_modules/sqlite3/lib/trace.js +38 -0
- package/package/database/node_modules/sqlite3/package.json +82 -0
- package/package/database/node_modules/sqlite3/sqlite3.js +1 -0
- package/package/database/node_modules/sqlite3/src/async.h +82 -0
- package/package/database/node_modules/sqlite3/src/backup.cc +420 -0
- package/package/database/node_modules/sqlite3/src/backup.h +221 -0
- package/package/database/node_modules/sqlite3/src/database.cc +738 -0
- package/package/database/node_modules/sqlite3/src/database.h +206 -0
- package/package/database/node_modules/sqlite3/src/gcc-preinclude.h +6 -0
- package/package/database/node_modules/sqlite3/src/macros.h +212 -0
- package/package/database/node_modules/sqlite3/src/node_sqlite3.cc +115 -0
- package/package/database/node_modules/sqlite3/src/statement.cc +947 -0
- package/package/database/node_modules/sqlite3/src/statement.h +249 -0
- package/package/database/node_modules/sqlite3/src/threading.h +48 -0
- package/package/database/package.json +31 -0
- package/package/database/readme.md +8 -0
- package/package/database/test.js +3 -0
- package/package/horizon-sp/README.md +11 -0
- package/package/horizon-sp/index.js +41 -0
- package/package/horizon-sp/logger.js +16 -0
- package/package/horizon-sp/node_modules/.package-lock.json +140 -0
- package/package/horizon-sp/node_modules/asynckit/LICENSE +21 -0
- package/package/horizon-sp/node_modules/asynckit/README.md +233 -0
- package/package/horizon-sp/node_modules/asynckit/bench.js +76 -0
- package/package/horizon-sp/node_modules/asynckit/index.js +6 -0
- package/package/horizon-sp/node_modules/asynckit/lib/abort.js +29 -0
- package/package/horizon-sp/node_modules/asynckit/lib/async.js +34 -0
- package/package/horizon-sp/node_modules/asynckit/lib/defer.js +26 -0
- package/package/horizon-sp/node_modules/asynckit/lib/iterate.js +75 -0
- package/package/horizon-sp/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/package/horizon-sp/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/package/horizon-sp/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/package/horizon-sp/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/package/horizon-sp/node_modules/asynckit/lib/state.js +37 -0
- package/package/horizon-sp/node_modules/asynckit/lib/streamify.js +141 -0
- package/package/horizon-sp/node_modules/asynckit/lib/terminator.js +29 -0
- package/package/horizon-sp/node_modules/asynckit/package.json +63 -0
- package/package/horizon-sp/node_modules/asynckit/parallel.js +43 -0
- package/package/horizon-sp/node_modules/asynckit/serial.js +17 -0
- package/package/horizon-sp/node_modules/asynckit/serialOrdered.js +75 -0
- package/package/horizon-sp/node_modules/asynckit/stream.js +21 -0
- package/package/horizon-sp/node_modules/axios/CHANGELOG.md +410 -0
- package/package/horizon-sp/node_modules/axios/LICENSE +7 -0
- package/package/horizon-sp/node_modules/axios/MIGRATION_GUIDE.md +3 -0
- package/package/horizon-sp/node_modules/axios/README.md +1310 -0
- package/package/horizon-sp/node_modules/axios/SECURITY.md +6 -0
- package/package/horizon-sp/node_modules/axios/index.d.cts +524 -0
- package/package/horizon-sp/node_modules/axios/index.d.ts +539 -0
- package/package/horizon-sp/node_modules/axios/index.js +41 -0
- package/package/horizon-sp/node_modules/axios/lib/adapters/README.md +37 -0
- package/package/horizon-sp/node_modules/axios/lib/adapters/adapters.js +59 -0
- package/package/horizon-sp/node_modules/axios/lib/adapters/http.js +608 -0
- package/package/horizon-sp/node_modules/axios/lib/adapters/xhr.js +249 -0
- package/package/horizon-sp/node_modules/axios/lib/axios.js +86 -0
- package/package/horizon-sp/node_modules/axios/lib/cancel/CancelToken.js +121 -0
- package/package/horizon-sp/node_modules/axios/lib/cancel/CanceledError.js +25 -0
- package/package/horizon-sp/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/package/horizon-sp/node_modules/axios/lib/core/Axios.js +197 -0
- package/package/horizon-sp/node_modules/axios/lib/core/AxiosError.js +100 -0
- package/package/horizon-sp/node_modules/axios/lib/core/AxiosHeaders.js +274 -0
- package/package/horizon-sp/node_modules/axios/lib/core/InterceptorManager.js +71 -0
- package/package/horizon-sp/node_modules/axios/lib/core/README.md +8 -0
- package/package/horizon-sp/node_modules/axios/lib/core/buildFullPath.js +21 -0
- package/package/horizon-sp/node_modules/axios/lib/core/dispatchRequest.js +81 -0
- package/package/horizon-sp/node_modules/axios/lib/core/mergeConfig.js +105 -0
- package/package/horizon-sp/node_modules/axios/lib/core/settle.js +27 -0
- package/package/horizon-sp/node_modules/axios/lib/core/transformData.js +28 -0
- package/package/horizon-sp/node_modules/axios/lib/defaults/index.js +166 -0
- package/package/horizon-sp/node_modules/axios/lib/defaults/transitional.js +7 -0
- package/package/horizon-sp/node_modules/axios/lib/env/README.md +3 -0
- package/package/horizon-sp/node_modules/axios/lib/env/classes/FormData.js +2 -0
- package/package/horizon-sp/node_modules/axios/lib/env/data.js +1 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/AxiosTransformStream.js +191 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/README.md +7 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/bind.js +7 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/buildURL.js +63 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/combineURLs.js +15 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/cookies.js +52 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/deprecatedMethod.js +26 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/formDataToJSON.js +92 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/isAbsoluteURL.js +15 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/isURLSameOrigin.js +67 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/null.js +2 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/parseHeaders.js +55 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/spread.js +28 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/throttle.js +33 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/toFormData.js +229 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
- package/package/horizon-sp/node_modules/axios/lib/helpers/validator.js +91 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/browser/index.js +63 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/index.js +3 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/package/horizon-sp/node_modules/axios/lib/platform/node/index.js +12 -0
- package/package/horizon-sp/node_modules/axios/lib/utils.js +677 -0
- package/package/horizon-sp/node_modules/axios/package.json +197 -0
- package/package/horizon-sp/node_modules/child_process/README.md +9 -0
- package/package/horizon-sp/node_modules/child_process/package.json +20 -0
- package/package/horizon-sp/node_modules/combined-stream/License +19 -0
- package/package/horizon-sp/node_modules/combined-stream/Readme.md +138 -0
- package/package/horizon-sp/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/package/horizon-sp/node_modules/combined-stream/package.json +25 -0
- package/package/horizon-sp/node_modules/delayed-stream/License +19 -0
- package/package/horizon-sp/node_modules/delayed-stream/Makefile +7 -0
- package/package/horizon-sp/node_modules/delayed-stream/Readme.md +141 -0
- package/package/horizon-sp/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/package/horizon-sp/node_modules/delayed-stream/package.json +27 -0
- package/package/horizon-sp/node_modules/follow-redirects/LICENSE +18 -0
- package/package/horizon-sp/node_modules/follow-redirects/README.md +155 -0
- package/package/horizon-sp/node_modules/follow-redirects/debug.js +15 -0
- package/package/horizon-sp/node_modules/follow-redirects/http.js +1 -0
- package/package/horizon-sp/node_modules/follow-redirects/https.js +1 -0
- package/package/horizon-sp/node_modules/follow-redirects/index.js +621 -0
- package/package/horizon-sp/node_modules/follow-redirects/package.json +59 -0
- package/package/horizon-sp/node_modules/form-data/License +19 -0
- package/package/horizon-sp/node_modules/form-data/README.md.bak +358 -0
- package/package/horizon-sp/node_modules/form-data/Readme.md +358 -0
- package/package/horizon-sp/node_modules/form-data/index.d.ts +62 -0
- package/package/horizon-sp/node_modules/form-data/lib/browser.js +2 -0
- package/package/horizon-sp/node_modules/form-data/lib/form_data.js +501 -0
- package/package/horizon-sp/node_modules/form-data/lib/populate.js +10 -0
- package/package/horizon-sp/node_modules/form-data/package.json +68 -0
- package/package/horizon-sp/node_modules/fs-extra/LICENSE +15 -0
- package/package/horizon-sp/node_modules/fs-extra/README.md +290 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/copy/copy-sync.js +161 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/copy/copy.js +238 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/ensure/file.js +69 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/ensure/symlink.js +82 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/esm.mjs +68 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/fs/index.js +140 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/index.js +16 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/json/index.js +16 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/move/index.js +7 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/move/move-sync.js +54 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/move/move.js +75 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/output-file/index.js +40 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/remove/index.js +17 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/util/stat.js +154 -0
- package/package/horizon-sp/node_modules/fs-extra/lib/util/utimes.js +26 -0
- package/package/horizon-sp/node_modules/fs-extra/package.json +71 -0
- package/package/horizon-sp/node_modules/graceful-fs/LICENSE +15 -0
- package/package/horizon-sp/node_modules/graceful-fs/README.md +143 -0
- package/package/horizon-sp/node_modules/graceful-fs/clone.js +23 -0
- package/package/horizon-sp/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/package/horizon-sp/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/package/horizon-sp/node_modules/graceful-fs/package.json +50 -0
- package/package/horizon-sp/node_modules/graceful-fs/polyfills.js +355 -0
- package/package/horizon-sp/node_modules/jsonfile/CHANGELOG.md +171 -0
- package/package/horizon-sp/node_modules/jsonfile/LICENSE +15 -0
- package/package/horizon-sp/node_modules/jsonfile/README.md +230 -0
- package/package/horizon-sp/node_modules/jsonfile/index.js +88 -0
- package/package/horizon-sp/node_modules/jsonfile/package.json +40 -0
- package/package/horizon-sp/node_modules/jsonfile/utils.js +14 -0
- package/package/horizon-sp/node_modules/mime-db/HISTORY.md +507 -0
- package/package/horizon-sp/node_modules/mime-db/LICENSE +23 -0
- package/package/horizon-sp/node_modules/mime-db/README.md +100 -0
- package/package/horizon-sp/node_modules/mime-db/db.json +8519 -0
- package/package/horizon-sp/node_modules/mime-db/index.js +12 -0
- package/package/horizon-sp/node_modules/mime-db/package.json +60 -0
- package/package/horizon-sp/node_modules/mime-types/HISTORY.md +397 -0
- package/package/horizon-sp/node_modules/mime-types/LICENSE +23 -0
- package/package/horizon-sp/node_modules/mime-types/README.md +113 -0
- package/package/horizon-sp/node_modules/mime-types/index.js +188 -0
- package/package/horizon-sp/node_modules/mime-types/package.json +44 -0
- package/package/horizon-sp/node_modules/proxy-from-env/LICENSE +20 -0
- package/package/horizon-sp/node_modules/proxy-from-env/README.md +131 -0
- package/package/horizon-sp/node_modules/proxy-from-env/index.js +108 -0
- package/package/horizon-sp/node_modules/proxy-from-env/package.json +34 -0
- package/package/horizon-sp/node_modules/proxy-from-env/test.js +483 -0
- package/package/horizon-sp/node_modules/universalify/LICENSE +20 -0
- package/package/horizon-sp/node_modules/universalify/README.md +76 -0
- package/package/horizon-sp/node_modules/universalify/index.js +24 -0
- package/package/horizon-sp/node_modules/universalify/package.json +34 -0
- package/package/horizon-sp/package-lock.json +150 -0
- package/package/horizon-sp/package.json +20 -0
- package/package.json +134 -3
- package/src/ReportV1.js +55 -0
- package/src/addExternalModule.js +16 -0
- package/src/addUserToGroup.js +78 -0
- package/src/changeAdminStatus.js +79 -0
- package/src/changeArchivedStatus.js +41 -0
- package/src/changeAvt.js +86 -0
- package/src/changeBio.js +65 -0
- package/src/changeBlockedStatus.js +36 -0
- package/src/changeGroupImage.js +106 -0
- package/src/changeNickname.js +45 -0
- package/src/changeThreadColor.js +62 -0
- package/src/changeThreadEmoji.js +42 -0
- package/src/createNewGroup.js +70 -0
- package/src/createPoll.js +60 -0
- package/src/data/getThreadInfo.json +31985 -0
- package/src/deleteMessage.js +45 -0
- package/src/deleteThread.js +43 -0
- package/src/forwardAttachment.js +48 -0
- package/src/getAccessToken.js +33 -0
- package/src/getCurrentUserID.js +7 -0
- package/src/getEmojiUrl.js +27 -0
- package/src/getFriendsList.js +73 -0
- package/src/getMessage.js +80 -0
- package/src/getThreadHistory.js +537 -0
- package/src/getThreadHistoryDeprecated.js +71 -0
- package/src/getThreadInfo.js +193 -0
- package/src/getThreadInfoDeprecated.js +56 -0
- package/src/getThreadList.js +213 -0
- package/src/getThreadListDeprecated.js +46 -0
- package/src/getThreadMain.js +219 -0
- package/src/getThreadPictures.js +59 -0
- package/src/getUserID.js +62 -0
- package/src/getUserInfo.js +66 -0
- package/src/getUserInfoMain.js +65 -0
- package/src/getUserInfoV2.js +36 -0
- package/src/getUserInfoV3.js +63 -0
- package/src/getUserInfoV4.js +55 -0
- package/src/getUserInfoV5.js +61 -0
- package/src/handleFriendRequest.js +46 -0
- package/src/handleMessageRequest.js +49 -0
- package/src/httpGet.js +49 -0
- package/src/httpPost.js +48 -0
- package/src/httpPostFormData.js +41 -0
- package/src/listenMqtt.js +629 -0
- package/src/logout.js +68 -0
- package/src/markAsDelivered.js +48 -0
- package/src/markAsRead.js +70 -0
- package/src/markAsReadAll.js +43 -0
- package/src/markAsSeen.js +51 -0
- package/src/muteThread.js +47 -0
- package/src/removeUserFromGroup.js +49 -0
- package/src/resolvePhotoUrl.js +37 -0
- package/src/searchForThread.js +43 -0
- package/src/sendMessage.js +321 -0
- package/src/sendTypingIndicator.js +80 -0
- package/src/setMessageReaction.js +109 -0
- package/src/setPostReaction.js +102 -0
- package/src/setTitle.js +74 -0
- package/src/threadColors.js +39 -0
- package/src/unfriend.js +43 -0
- package/src/unsendMessage.js +40 -0
- package/test/example-config.json +18 -0
- package/test/test-page.js +140 -0
- package/test/test.js +385 -0
- package/utils.js +1246 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Lodash (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
|
4
|
+
* Build: `lodash core -o ./dist/lodash.core.js`
|
5
|
+
*/
|
6
|
+
;(function(){function n(n){return H(n)&&pn.call(n,"callee")&&!yn.call(n,"callee")}function t(n,t){return n.push.apply(n,t),n}function r(n){return function(t){return null==t?Z:t[n]}}function e(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function u(n,t){return j(t,function(t){return n[t]})}function o(n){return n instanceof i?n:new i(n)}function i(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function c(n,t,r){if(typeof n!="function")throw new TypeError("Expected a function");
|
7
|
+
return setTimeout(function(){n.apply(Z,r)},t)}function f(n,t){var r=true;return mn(n,function(n,e,u){return r=!!t(n,e,u)}),r}function a(n,t,r){for(var e=-1,u=n.length;++e<u;){var o=n[e],i=t(o);if(null!=i&&(c===Z?i===i:r(i,c)))var c=i,f=o}return f}function l(n,t){var r=[];return mn(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function p(n,r,e,u,o){var i=-1,c=n.length;for(e||(e=R),o||(o=[]);++i<c;){var f=n[i];0<r&&e(f)?1<r?p(f,r-1,e,u,o):t(o,f):u||(o[o.length]=f)}return o}function s(n,t){return n&&On(n,t,Dn);
|
8
|
+
}function h(n,t){return l(t,function(t){return U(n[t])})}function v(n,t){return n>t}function b(n,t,r,e,u){return n===t||(null==n||null==t||!H(n)&&!H(t)?n!==n&&t!==t:y(n,t,r,e,b,u))}function y(n,t,r,e,u,o){var i=Nn(n),c=Nn(t),f=i?"[object Array]":hn.call(n),a=c?"[object Array]":hn.call(t),f="[object Arguments]"==f?"[object Object]":f,a="[object Arguments]"==a?"[object Object]":a,l="[object Object]"==f,c="[object Object]"==a,a=f==a;o||(o=[]);var p=An(o,function(t){return t[0]==n}),s=An(o,function(n){
|
9
|
+
return n[0]==t});if(p&&s)return p[1]==t;if(o.push([n,t]),o.push([t,n]),a&&!l){if(i)r=T(n,t,r,e,u,o);else n:{switch(f){case"[object Boolean]":case"[object Date]":case"[object Number]":r=J(+n,+t);break n;case"[object Error]":r=n.name==t.name&&n.message==t.message;break n;case"[object RegExp]":case"[object String]":r=n==t+"";break n}r=false}return o.pop(),r}return 1&r||(i=l&&pn.call(n,"__wrapped__"),f=c&&pn.call(t,"__wrapped__"),!i&&!f)?!!a&&(r=B(n,t,r,e,u,o),o.pop(),r):(i=i?n.value():n,f=f?t.value():t,
|
10
|
+
r=u(i,f,r,e,o),o.pop(),r)}function g(n){return typeof n=="function"?n:null==n?X:(typeof n=="object"?d:r)(n)}function _(n,t){return n<t}function j(n,t){var r=-1,e=M(n)?Array(n.length):[];return mn(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function d(n){var t=_n(n);return function(r){var e=t.length;if(null==r)return!e;for(r=Object(r);e--;){var u=t[e];if(!(u in r&&b(n[u],r[u],3)))return false}return true}}function m(n,t){return n=Object(n),C(t,function(t,r){return r in n&&(t[r]=n[r]),t},{})}function O(n){return xn(I(n,void 0,X),n+"");
|
11
|
+
}function x(n,t,r){var e=-1,u=n.length;for(0>t&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++e<u;)r[e]=n[e+t];return r}function A(n){return x(n,0,n.length)}function E(n,t){var r;return mn(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function w(n,r){return C(r,function(n,r){return r.func.apply(r.thisArg,t([n],r.args))},n)}function k(n,t,r){var e=!r;r||(r={});for(var u=-1,o=t.length;++u<o;){var i=t[u],c=Z;if(c===Z&&(c=n[i]),e)r[i]=c;else{var f=r,a=f[i];pn.call(f,i)&&J(a,c)&&(c!==Z||i in f)||(f[i]=c);
|
12
|
+
}}return r}function N(n){return O(function(t,r){var e=-1,u=r.length,o=1<u?r[u-1]:Z,o=3<n.length&&typeof o=="function"?(u--,o):Z;for(t=Object(t);++e<u;){var i=r[e];i&&n(t,i,e,o)}return t})}function F(n){return function(){var t=arguments,r=dn(n.prototype),t=n.apply(r,t);return V(t)?t:r}}function S(n,t,r){function e(){for(var o=-1,i=arguments.length,c=-1,f=r.length,a=Array(f+i),l=this&&this!==on&&this instanceof e?u:n;++c<f;)a[c]=r[c];for(;i--;)a[c++]=arguments[++o];return l.apply(t,a)}if(typeof n!="function")throw new TypeError("Expected a function");
|
13
|
+
var u=F(n);return e}function T(n,t,r,e,u,o){var i=n.length,c=t.length;if(i!=c&&!(1&r&&c>i))return false;var c=o.get(n),f=o.get(t);if(c&&f)return c==t&&f==n;for(var c=-1,f=true,a=2&r?[]:Z;++c<i;){var l=n[c],p=t[c];if(void 0!==Z){f=false;break}if(a){if(!E(t,function(n,t){if(!P(a,t)&&(l===n||u(l,n,r,e,o)))return a.push(t)})){f=false;break}}else if(l!==p&&!u(l,p,r,e,o)){f=false;break}}return f}function B(n,t,r,e,u,o){var i=1&r,c=Dn(n),f=c.length,a=Dn(t).length;if(f!=a&&!i)return false;for(a=f;a--;){var l=c[a];if(!(i?l in t:pn.call(t,l)))return false;
|
14
|
+
}var p=o.get(n),l=o.get(t);if(p&&l)return p==t&&l==n;for(p=true;++a<f;){var l=c[a],s=n[l],h=t[l];if(void 0!==Z||s!==h&&!u(s,h,r,e,o)){p=false;break}i||(i="constructor"==l)}return p&&!i&&(r=n.constructor,e=t.constructor,r!=e&&"constructor"in n&&"constructor"in t&&!(typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)&&(p=false)),p}function R(t){return Nn(t)||n(t)}function D(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}function I(n,t,r){return t=jn(t===Z?n.length-1:t,0),
|
15
|
+
function(){for(var e=arguments,u=-1,o=jn(e.length-t,0),i=Array(o);++u<o;)i[u]=e[t+u];for(u=-1,o=Array(t+1);++u<t;)o[u]=e[u];return o[t]=r(i),n.apply(this,o)}}function $(n){return(null==n?0:n.length)?p(n,1):[]}function q(n){return n&&n.length?n[0]:Z}function P(n,t,r){var e=null==n?0:n.length;r=typeof r=="number"?0>r?jn(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++r<e;){var o=n[r];if(u?o===t:o!==o)return r}return-1}function z(n,t){return mn(n,g(t))}function C(n,t,r){return e(n,g(t),r,3>arguments.length,mn);
|
16
|
+
}function G(n,t){var r;if(typeof t!="function")throw new TypeError("Expected a function");return n=Fn(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=Z),r}}function J(n,t){return n===t||n!==n&&t!==t}function M(n){var t;return(t=null!=n)&&(t=n.length,t=typeof t=="number"&&-1<t&&0==t%1&&9007199254740991>=t),t&&!U(n)}function U(n){return!!V(n)&&(n=hn.call(n),"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n)}function V(n){var t=typeof n;
|
17
|
+
return null!=n&&("object"==t||"function"==t)}function H(n){return null!=n&&typeof n=="object"}function K(n){return typeof n=="number"||H(n)&&"[object Number]"==hn.call(n)}function L(n){return typeof n=="string"||!Nn(n)&&H(n)&&"[object String]"==hn.call(n)}function Q(n){return typeof n=="string"?n:null==n?"":n+""}function W(n){return null==n?[]:u(n,Dn(n))}function X(n){return n}function Y(n,r,e){var u=Dn(r),o=h(r,u);null!=e||V(r)&&(o.length||!u.length)||(e=r,r=n,n=this,o=h(r,Dn(r)));var i=!(V(e)&&"chain"in e&&!e.chain),c=U(n);
|
18
|
+
return mn(o,function(e){var u=r[e];n[e]=u,c&&(n.prototype[e]=function(){var r=this.__chain__;if(i||r){var e=n(this.__wrapped__);return(e.__actions__=A(this.__actions__)).push({func:u,args:arguments,thisArg:n}),e.__chain__=r,e}return u.apply(n,t([this.value()],arguments))})}),n}var Z,nn=1/0,tn=/[&<>"']/g,rn=RegExp(tn.source),en=/^(?:0|[1-9]\d*)$/,un=typeof self=="object"&&self&&self.Object===Object&&self,on=typeof global=="object"&&global&&global.Object===Object&&global||un||Function("return this")(),cn=(un=typeof exports=="object"&&exports&&!exports.nodeType&&exports)&&typeof module=="object"&&module&&!module.nodeType&&module,fn=function(n){
|
19
|
+
return function(t){return null==n?Z:n[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"}),an=Array.prototype,ln=Object.prototype,pn=ln.hasOwnProperty,sn=0,hn=ln.toString,vn=on._,bn=Object.create,yn=ln.propertyIsEnumerable,gn=on.isFinite,_n=function(n,t){return function(r){return n(t(r))}}(Object.keys,Object),jn=Math.max,dn=function(){function n(){}return function(t){return V(t)?bn?bn(t):(n.prototype=t,t=new n,n.prototype=Z,t):{}}}();i.prototype=dn(o.prototype),i.prototype.constructor=i;
|
20
|
+
var mn=function(n,t){return function(r,e){if(null==r)return r;if(!M(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++o<u)&&false!==e(i[o],o,i););return r}}(s),On=function(n){return function(t,r,e){var u=-1,o=Object(t);e=e(t);for(var i=e.length;i--;){var c=e[n?i:++u];if(false===r(o[c],c,o))break}return t}}(),xn=X,An=function(n){return function(t,r,e){var u=Object(t);if(!M(t)){var o=g(r);t=Dn(t),r=function(n){return o(u[n],n,u)}}return r=n(t,r,e),-1<r?u[o?t[r]:r]:Z}}(function(n,t,r){var e=null==n?0:n.length;
|
21
|
+
if(!e)return-1;r=null==r?0:Fn(r),0>r&&(r=jn(e+r,0));n:{for(t=g(t),e=n.length,r+=-1;++r<e;)if(t(n[r],r,n)){n=r;break n}n=-1}return n}),En=O(function(n,t,r){return S(n,t,r)}),wn=O(function(n,t){return c(n,1,t)}),kn=O(function(n,t,r){return c(n,Sn(t)||0,r)}),Nn=Array.isArray,Fn=Number,Sn=Number,Tn=N(function(n,t){k(t,_n(t),n)}),Bn=N(function(n,t){k(t,D(t),n)}),Rn=O(function(n,t){n=Object(n);var r,e=-1,u=t.length,o=2<u?t[2]:Z;if(r=o){r=t[0];var i=t[1];if(V(o)){var c=typeof i;if("number"==c){if(c=M(o))var c=o.length,f=typeof i,c=null==c?9007199254740991:c,c=!!c&&("number"==f||"symbol"!=f&&en.test(i))&&-1<i&&0==i%1&&i<c;
|
22
|
+
}else c="string"==c&&i in o;r=!!c&&J(o[i],r)}else r=false}for(r&&(u=1);++e<u;)for(o=t[e],r=In(o),i=-1,c=r.length;++i<c;){var f=r[i],a=n[f];(a===Z||J(a,ln[f])&&!pn.call(n,f))&&(n[f]=o[f])}return n}),Dn=_n,In=D,$n=function(n){return xn(I(n,Z,$),n+"")}(function(n,t){return null==n?{}:m(n,t)});o.assignIn=Bn,o.before=G,o.bind=En,o.chain=function(n){return n=o(n),n.__chain__=true,n},o.compact=function(n){return l(n,Boolean)},o.concat=function(){var n=arguments.length;if(!n)return[];for(var r=Array(n-1),e=arguments[0];n--;)r[n-1]=arguments[n];
|
23
|
+
return t(Nn(e)?A(e):[e],p(r,1))},o.create=function(n,t){var r=dn(n);return null==t?r:Tn(r,t)},o.defaults=Rn,o.defer=wn,o.delay=kn,o.filter=function(n,t){return l(n,g(t))},o.flatten=$,o.flattenDeep=function(n){return(null==n?0:n.length)?p(n,nn):[]},o.iteratee=g,o.keys=Dn,o.map=function(n,t){return j(n,g(t))},o.matches=function(n){return d(Tn({},n))},o.mixin=Y,o.negate=function(n){if(typeof n!="function")throw new TypeError("Expected a function");return function(){return!n.apply(this,arguments)}},o.once=function(n){
|
24
|
+
return G(2,n)},o.pick=$n,o.slice=function(n,t,r){var e=null==n?0:n.length;return r=r===Z?e:+r,e?x(n,null==t?0:+t,r):[]},o.sortBy=function(n,t){var e=0;return t=g(t),j(j(n,function(n,r,u){return{value:n,index:e++,criteria:t(n,r,u)}}).sort(function(n,t){var r;n:{r=n.criteria;var e=t.criteria;if(r!==e){var u=r!==Z,o=null===r,i=r===r,c=e!==Z,f=null===e,a=e===e;if(!f&&r>e||o&&c&&a||!u&&a||!i){r=1;break n}if(!o&&r<e||f&&u&&i||!c&&i||!a){r=-1;break n}}r=0}return r||n.index-t.index}),r("value"))},o.tap=function(n,t){
|
25
|
+
return t(n),n},o.thru=function(n,t){return t(n)},o.toArray=function(n){return M(n)?n.length?A(n):[]:W(n)},o.values=W,o.extend=Bn,Y(o,o),o.clone=function(n){return V(n)?Nn(n)?A(n):k(n,_n(n)):n},o.escape=function(n){return(n=Q(n))&&rn.test(n)?n.replace(tn,fn):n},o.every=function(n,t,r){return t=r?Z:t,f(n,g(t))},o.find=An,o.forEach=z,o.has=function(n,t){return null!=n&&pn.call(n,t)},o.head=q,o.identity=X,o.indexOf=P,o.isArguments=n,o.isArray=Nn,o.isBoolean=function(n){return true===n||false===n||H(n)&&"[object Boolean]"==hn.call(n);
|
26
|
+
},o.isDate=function(n){return H(n)&&"[object Date]"==hn.call(n)},o.isEmpty=function(t){return M(t)&&(Nn(t)||L(t)||U(t.splice)||n(t))?!t.length:!_n(t).length},o.isEqual=function(n,t){return b(n,t)},o.isFinite=function(n){return typeof n=="number"&&gn(n)},o.isFunction=U,o.isNaN=function(n){return K(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=K,o.isObject=V,o.isRegExp=function(n){return H(n)&&"[object RegExp]"==hn.call(n)},o.isString=L,o.isUndefined=function(n){return n===Z},o.last=function(n){
|
27
|
+
var t=null==n?0:n.length;return t?n[t-1]:Z},o.max=function(n){return n&&n.length?a(n,X,v):Z},o.min=function(n){return n&&n.length?a(n,X,_):Z},o.noConflict=function(){return on._===this&&(on._=vn),this},o.noop=function(){},o.reduce=C,o.result=function(n,t,r){return t=null==n?Z:n[t],t===Z&&(t=r),U(t)?t.call(n):t},o.size=function(n){return null==n?0:(n=M(n)?n:_n(n),n.length)},o.some=function(n,t,r){return t=r?Z:t,E(n,g(t))},o.uniqueId=function(n){var t=++sn;return Q(n)+t},o.each=z,o.first=q,Y(o,function(){
|
28
|
+
var n={};return s(o,function(t,r){pn.call(o.prototype,r)||(n[r]=t)}),n}(),{chain:false}),o.VERSION="4.17.21",mn("pop join replace reverse split push shift sort splice unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?String.prototype:an)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);o.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Nn(u)?u:[],n)}return this[r](function(r){return t.apply(Nn(r)?r:[],n);
|
29
|
+
})}}),o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=function(){return w(this.__wrapped__,this.__actions__)},typeof define=="function"&&typeof define.amd=="object"&&define.amd?(on._=o, define(function(){return o})):cn?((cn.exports=o)._=o,un._=o):on._=o}).call(this);
|
@@ -0,0 +1,40 @@
|
|
1
|
+
var baseAssignValue = require('./_baseAssignValue'),
|
2
|
+
createAggregator = require('./_createAggregator');
|
3
|
+
|
4
|
+
/** Used for built-in method references. */
|
5
|
+
var objectProto = Object.prototype;
|
6
|
+
|
7
|
+
/** Used to check objects for own properties. */
|
8
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Creates an object composed of keys generated from the results of running
|
12
|
+
* each element of `collection` thru `iteratee`. The corresponding value of
|
13
|
+
* each key is the number of times the key was returned by `iteratee`. The
|
14
|
+
* iteratee is invoked with one argument: (value).
|
15
|
+
*
|
16
|
+
* @static
|
17
|
+
* @memberOf _
|
18
|
+
* @since 0.5.0
|
19
|
+
* @category Collection
|
20
|
+
* @param {Array|Object} collection The collection to iterate over.
|
21
|
+
* @param {Function} [iteratee=_.identity] The iteratee to transform keys.
|
22
|
+
* @returns {Object} Returns the composed aggregate object.
|
23
|
+
* @example
|
24
|
+
*
|
25
|
+
* _.countBy([6.1, 4.2, 6.3], Math.floor);
|
26
|
+
* // => { '4': 1, '6': 2 }
|
27
|
+
*
|
28
|
+
* // The `_.property` iteratee shorthand.
|
29
|
+
* _.countBy(['one', 'two', 'three'], 'length');
|
30
|
+
* // => { '3': 2, '5': 1 }
|
31
|
+
*/
|
32
|
+
var countBy = createAggregator(function(result, value, key) {
|
33
|
+
if (hasOwnProperty.call(result, key)) {
|
34
|
+
++result[key];
|
35
|
+
} else {
|
36
|
+
baseAssignValue(result, key, 1);
|
37
|
+
}
|
38
|
+
});
|
39
|
+
|
40
|
+
module.exports = countBy;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
var baseAssign = require('./_baseAssign'),
|
2
|
+
baseCreate = require('./_baseCreate');
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Creates an object that inherits from the `prototype` object. If a
|
6
|
+
* `properties` object is given, its own enumerable string keyed properties
|
7
|
+
* are assigned to the created object.
|
8
|
+
*
|
9
|
+
* @static
|
10
|
+
* @memberOf _
|
11
|
+
* @since 2.3.0
|
12
|
+
* @category Object
|
13
|
+
* @param {Object} prototype The object to inherit from.
|
14
|
+
* @param {Object} [properties] The properties to assign to the object.
|
15
|
+
* @returns {Object} Returns the new object.
|
16
|
+
* @example
|
17
|
+
*
|
18
|
+
* function Shape() {
|
19
|
+
* this.x = 0;
|
20
|
+
* this.y = 0;
|
21
|
+
* }
|
22
|
+
*
|
23
|
+
* function Circle() {
|
24
|
+
* Shape.call(this);
|
25
|
+
* }
|
26
|
+
*
|
27
|
+
* Circle.prototype = _.create(Shape.prototype, {
|
28
|
+
* 'constructor': Circle
|
29
|
+
* });
|
30
|
+
*
|
31
|
+
* var circle = new Circle;
|
32
|
+
* circle instanceof Circle;
|
33
|
+
* // => true
|
34
|
+
*
|
35
|
+
* circle instanceof Shape;
|
36
|
+
* // => true
|
37
|
+
*/
|
38
|
+
function create(prototype, properties) {
|
39
|
+
var result = baseCreate(prototype);
|
40
|
+
return properties == null ? result : baseAssign(result, properties);
|
41
|
+
}
|
42
|
+
|
43
|
+
module.exports = create;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
var createWrap = require('./_createWrap');
|
2
|
+
|
3
|
+
/** Used to compose bitmasks for function metadata. */
|
4
|
+
var WRAP_CURRY_FLAG = 8;
|
5
|
+
|
6
|
+
/**
|
7
|
+
* Creates a function that accepts arguments of `func` and either invokes
|
8
|
+
* `func` returning its result, if at least `arity` number of arguments have
|
9
|
+
* been provided, or returns a function that accepts the remaining `func`
|
10
|
+
* arguments, and so on. The arity of `func` may be specified if `func.length`
|
11
|
+
* is not sufficient.
|
12
|
+
*
|
13
|
+
* The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
|
14
|
+
* may be used as a placeholder for provided arguments.
|
15
|
+
*
|
16
|
+
* **Note:** This method doesn't set the "length" property of curried functions.
|
17
|
+
*
|
18
|
+
* @static
|
19
|
+
* @memberOf _
|
20
|
+
* @since 2.0.0
|
21
|
+
* @category Function
|
22
|
+
* @param {Function} func The function to curry.
|
23
|
+
* @param {number} [arity=func.length] The arity of `func`.
|
24
|
+
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
25
|
+
* @returns {Function} Returns the new curried function.
|
26
|
+
* @example
|
27
|
+
*
|
28
|
+
* var abc = function(a, b, c) {
|
29
|
+
* return [a, b, c];
|
30
|
+
* };
|
31
|
+
*
|
32
|
+
* var curried = _.curry(abc);
|
33
|
+
*
|
34
|
+
* curried(1)(2)(3);
|
35
|
+
* // => [1, 2, 3]
|
36
|
+
*
|
37
|
+
* curried(1, 2)(3);
|
38
|
+
* // => [1, 2, 3]
|
39
|
+
*
|
40
|
+
* curried(1, 2, 3);
|
41
|
+
* // => [1, 2, 3]
|
42
|
+
*
|
43
|
+
* // Curried with placeholders.
|
44
|
+
* curried(1)(_, 3)(2);
|
45
|
+
* // => [1, 2, 3]
|
46
|
+
*/
|
47
|
+
function curry(func, arity, guard) {
|
48
|
+
arity = guard ? undefined : arity;
|
49
|
+
var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
|
50
|
+
result.placeholder = curry.placeholder;
|
51
|
+
return result;
|
52
|
+
}
|
53
|
+
|
54
|
+
// Assign default placeholders.
|
55
|
+
curry.placeholder = {};
|
56
|
+
|
57
|
+
module.exports = curry;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
var createWrap = require('./_createWrap');
|
2
|
+
|
3
|
+
/** Used to compose bitmasks for function metadata. */
|
4
|
+
var WRAP_CURRY_RIGHT_FLAG = 16;
|
5
|
+
|
6
|
+
/**
|
7
|
+
* This method is like `_.curry` except that arguments are applied to `func`
|
8
|
+
* in the manner of `_.partialRight` instead of `_.partial`.
|
9
|
+
*
|
10
|
+
* The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
|
11
|
+
* builds, may be used as a placeholder for provided arguments.
|
12
|
+
*
|
13
|
+
* **Note:** This method doesn't set the "length" property of curried functions.
|
14
|
+
*
|
15
|
+
* @static
|
16
|
+
* @memberOf _
|
17
|
+
* @since 3.0.0
|
18
|
+
* @category Function
|
19
|
+
* @param {Function} func The function to curry.
|
20
|
+
* @param {number} [arity=func.length] The arity of `func`.
|
21
|
+
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
22
|
+
* @returns {Function} Returns the new curried function.
|
23
|
+
* @example
|
24
|
+
*
|
25
|
+
* var abc = function(a, b, c) {
|
26
|
+
* return [a, b, c];
|
27
|
+
* };
|
28
|
+
*
|
29
|
+
* var curried = _.curryRight(abc);
|
30
|
+
*
|
31
|
+
* curried(3)(2)(1);
|
32
|
+
* // => [1, 2, 3]
|
33
|
+
*
|
34
|
+
* curried(2, 3)(1);
|
35
|
+
* // => [1, 2, 3]
|
36
|
+
*
|
37
|
+
* curried(1, 2, 3);
|
38
|
+
* // => [1, 2, 3]
|
39
|
+
*
|
40
|
+
* // Curried with placeholders.
|
41
|
+
* curried(3)(1, _)(2);
|
42
|
+
* // => [1, 2, 3]
|
43
|
+
*/
|
44
|
+
function curryRight(func, arity, guard) {
|
45
|
+
arity = guard ? undefined : arity;
|
46
|
+
var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
|
47
|
+
result.placeholder = curryRight.placeholder;
|
48
|
+
return result;
|
49
|
+
}
|
50
|
+
|
51
|
+
// Assign default placeholders.
|
52
|
+
curryRight.placeholder = {};
|
53
|
+
|
54
|
+
module.exports = curryRight;
|
@@ -0,0 +1,191 @@
|
|
1
|
+
var isObject = require('./isObject'),
|
2
|
+
now = require('./now'),
|
3
|
+
toNumber = require('./toNumber');
|
4
|
+
|
5
|
+
/** Error message constants. */
|
6
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
7
|
+
|
8
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
9
|
+
var nativeMax = Math.max,
|
10
|
+
nativeMin = Math.min;
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
14
|
+
* milliseconds have elapsed since the last time the debounced function was
|
15
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
16
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
17
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
18
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
19
|
+
* with the last arguments provided to the debounced function. Subsequent
|
20
|
+
* calls to the debounced function return the result of the last `func`
|
21
|
+
* invocation.
|
22
|
+
*
|
23
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
24
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
25
|
+
* is invoked more than once during the `wait` timeout.
|
26
|
+
*
|
27
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
28
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
29
|
+
*
|
30
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
31
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
32
|
+
*
|
33
|
+
* @static
|
34
|
+
* @memberOf _
|
35
|
+
* @since 0.1.0
|
36
|
+
* @category Function
|
37
|
+
* @param {Function} func The function to debounce.
|
38
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
39
|
+
* @param {Object} [options={}] The options object.
|
40
|
+
* @param {boolean} [options.leading=false]
|
41
|
+
* Specify invoking on the leading edge of the timeout.
|
42
|
+
* @param {number} [options.maxWait]
|
43
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
44
|
+
* @param {boolean} [options.trailing=true]
|
45
|
+
* Specify invoking on the trailing edge of the timeout.
|
46
|
+
* @returns {Function} Returns the new debounced function.
|
47
|
+
* @example
|
48
|
+
*
|
49
|
+
* // Avoid costly calculations while the window size is in flux.
|
50
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
51
|
+
*
|
52
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
53
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
54
|
+
* 'leading': true,
|
55
|
+
* 'trailing': false
|
56
|
+
* }));
|
57
|
+
*
|
58
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
59
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
60
|
+
* var source = new EventSource('/stream');
|
61
|
+
* jQuery(source).on('message', debounced);
|
62
|
+
*
|
63
|
+
* // Cancel the trailing debounced invocation.
|
64
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
65
|
+
*/
|
66
|
+
function debounce(func, wait, options) {
|
67
|
+
var lastArgs,
|
68
|
+
lastThis,
|
69
|
+
maxWait,
|
70
|
+
result,
|
71
|
+
timerId,
|
72
|
+
lastCallTime,
|
73
|
+
lastInvokeTime = 0,
|
74
|
+
leading = false,
|
75
|
+
maxing = false,
|
76
|
+
trailing = true;
|
77
|
+
|
78
|
+
if (typeof func != 'function') {
|
79
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
80
|
+
}
|
81
|
+
wait = toNumber(wait) || 0;
|
82
|
+
if (isObject(options)) {
|
83
|
+
leading = !!options.leading;
|
84
|
+
maxing = 'maxWait' in options;
|
85
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
86
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
87
|
+
}
|
88
|
+
|
89
|
+
function invokeFunc(time) {
|
90
|
+
var args = lastArgs,
|
91
|
+
thisArg = lastThis;
|
92
|
+
|
93
|
+
lastArgs = lastThis = undefined;
|
94
|
+
lastInvokeTime = time;
|
95
|
+
result = func.apply(thisArg, args);
|
96
|
+
return result;
|
97
|
+
}
|
98
|
+
|
99
|
+
function leadingEdge(time) {
|
100
|
+
// Reset any `maxWait` timer.
|
101
|
+
lastInvokeTime = time;
|
102
|
+
// Start the timer for the trailing edge.
|
103
|
+
timerId = setTimeout(timerExpired, wait);
|
104
|
+
// Invoke the leading edge.
|
105
|
+
return leading ? invokeFunc(time) : result;
|
106
|
+
}
|
107
|
+
|
108
|
+
function remainingWait(time) {
|
109
|
+
var timeSinceLastCall = time - lastCallTime,
|
110
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
111
|
+
timeWaiting = wait - timeSinceLastCall;
|
112
|
+
|
113
|
+
return maxing
|
114
|
+
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
115
|
+
: timeWaiting;
|
116
|
+
}
|
117
|
+
|
118
|
+
function shouldInvoke(time) {
|
119
|
+
var timeSinceLastCall = time - lastCallTime,
|
120
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
121
|
+
|
122
|
+
// Either this is the first call, activity has stopped and we're at the
|
123
|
+
// trailing edge, the system time has gone backwards and we're treating
|
124
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
125
|
+
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
126
|
+
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
127
|
+
}
|
128
|
+
|
129
|
+
function timerExpired() {
|
130
|
+
var time = now();
|
131
|
+
if (shouldInvoke(time)) {
|
132
|
+
return trailingEdge(time);
|
133
|
+
}
|
134
|
+
// Restart the timer.
|
135
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
136
|
+
}
|
137
|
+
|
138
|
+
function trailingEdge(time) {
|
139
|
+
timerId = undefined;
|
140
|
+
|
141
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
142
|
+
// debounced at least once.
|
143
|
+
if (trailing && lastArgs) {
|
144
|
+
return invokeFunc(time);
|
145
|
+
}
|
146
|
+
lastArgs = lastThis = undefined;
|
147
|
+
return result;
|
148
|
+
}
|
149
|
+
|
150
|
+
function cancel() {
|
151
|
+
if (timerId !== undefined) {
|
152
|
+
clearTimeout(timerId);
|
153
|
+
}
|
154
|
+
lastInvokeTime = 0;
|
155
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
156
|
+
}
|
157
|
+
|
158
|
+
function flush() {
|
159
|
+
return timerId === undefined ? result : trailingEdge(now());
|
160
|
+
}
|
161
|
+
|
162
|
+
function debounced() {
|
163
|
+
var time = now(),
|
164
|
+
isInvoking = shouldInvoke(time);
|
165
|
+
|
166
|
+
lastArgs = arguments;
|
167
|
+
lastThis = this;
|
168
|
+
lastCallTime = time;
|
169
|
+
|
170
|
+
if (isInvoking) {
|
171
|
+
if (timerId === undefined) {
|
172
|
+
return leadingEdge(lastCallTime);
|
173
|
+
}
|
174
|
+
if (maxing) {
|
175
|
+
// Handle invocations in a tight loop.
|
176
|
+
clearTimeout(timerId);
|
177
|
+
timerId = setTimeout(timerExpired, wait);
|
178
|
+
return invokeFunc(lastCallTime);
|
179
|
+
}
|
180
|
+
}
|
181
|
+
if (timerId === undefined) {
|
182
|
+
timerId = setTimeout(timerExpired, wait);
|
183
|
+
}
|
184
|
+
return result;
|
185
|
+
}
|
186
|
+
debounced.cancel = cancel;
|
187
|
+
debounced.flush = flush;
|
188
|
+
return debounced;
|
189
|
+
}
|
190
|
+
|
191
|
+
module.exports = debounce;
|
@@ -0,0 +1,45 @@
|
|
1
|
+
var deburrLetter = require('./_deburrLetter'),
|
2
|
+
toString = require('./toString');
|
3
|
+
|
4
|
+
/** Used to match Latin Unicode letters (excluding mathematical operators). */
|
5
|
+
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
6
|
+
|
7
|
+
/** Used to compose unicode character classes. */
|
8
|
+
var rsComboMarksRange = '\\u0300-\\u036f',
|
9
|
+
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
|
10
|
+
rsComboSymbolsRange = '\\u20d0-\\u20ff',
|
11
|
+
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
12
|
+
|
13
|
+
/** Used to compose unicode capture groups. */
|
14
|
+
var rsCombo = '[' + rsComboRange + ']';
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
|
18
|
+
* [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
|
19
|
+
*/
|
20
|
+
var reComboMark = RegExp(rsCombo, 'g');
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Deburrs `string` by converting
|
24
|
+
* [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
|
25
|
+
* and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
|
26
|
+
* letters to basic Latin letters and removing
|
27
|
+
* [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
|
28
|
+
*
|
29
|
+
* @static
|
30
|
+
* @memberOf _
|
31
|
+
* @since 3.0.0
|
32
|
+
* @category String
|
33
|
+
* @param {string} [string=''] The string to deburr.
|
34
|
+
* @returns {string} Returns the deburred string.
|
35
|
+
* @example
|
36
|
+
*
|
37
|
+
* _.deburr('déjà vu');
|
38
|
+
* // => 'deja vu'
|
39
|
+
*/
|
40
|
+
function deburr(string) {
|
41
|
+
string = toString(string);
|
42
|
+
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
|
43
|
+
}
|
44
|
+
|
45
|
+
module.exports = deburr;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* Checks `value` to determine whether a default value should be returned in
|
3
|
+
* its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
|
4
|
+
* or `undefined`.
|
5
|
+
*
|
6
|
+
* @static
|
7
|
+
* @memberOf _
|
8
|
+
* @since 4.14.0
|
9
|
+
* @category Util
|
10
|
+
* @param {*} value The value to check.
|
11
|
+
* @param {*} defaultValue The default value.
|
12
|
+
* @returns {*} Returns the resolved value.
|
13
|
+
* @example
|
14
|
+
*
|
15
|
+
* _.defaultTo(1, 10);
|
16
|
+
* // => 1
|
17
|
+
*
|
18
|
+
* _.defaultTo(undefined, 10);
|
19
|
+
* // => 10
|
20
|
+
*/
|
21
|
+
function defaultTo(value, defaultValue) {
|
22
|
+
return (value == null || value !== value) ? defaultValue : value;
|
23
|
+
}
|
24
|
+
|
25
|
+
module.exports = defaultTo;
|
@@ -0,0 +1,64 @@
|
|
1
|
+
var baseRest = require('./_baseRest'),
|
2
|
+
eq = require('./eq'),
|
3
|
+
isIterateeCall = require('./_isIterateeCall'),
|
4
|
+
keysIn = require('./keysIn');
|
5
|
+
|
6
|
+
/** Used for built-in method references. */
|
7
|
+
var objectProto = Object.prototype;
|
8
|
+
|
9
|
+
/** Used to check objects for own properties. */
|
10
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Assigns own and inherited enumerable string keyed properties of source
|
14
|
+
* objects to the destination object for all destination properties that
|
15
|
+
* resolve to `undefined`. Source objects are applied from left to right.
|
16
|
+
* Once a property is set, additional values of the same property are ignored.
|
17
|
+
*
|
18
|
+
* **Note:** This method mutates `object`.
|
19
|
+
*
|
20
|
+
* @static
|
21
|
+
* @since 0.1.0
|
22
|
+
* @memberOf _
|
23
|
+
* @category Object
|
24
|
+
* @param {Object} object The destination object.
|
25
|
+
* @param {...Object} [sources] The source objects.
|
26
|
+
* @returns {Object} Returns `object`.
|
27
|
+
* @see _.defaultsDeep
|
28
|
+
* @example
|
29
|
+
*
|
30
|
+
* _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
|
31
|
+
* // => { 'a': 1, 'b': 2 }
|
32
|
+
*/
|
33
|
+
var defaults = baseRest(function(object, sources) {
|
34
|
+
object = Object(object);
|
35
|
+
|
36
|
+
var index = -1;
|
37
|
+
var length = sources.length;
|
38
|
+
var guard = length > 2 ? sources[2] : undefined;
|
39
|
+
|
40
|
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
41
|
+
length = 1;
|
42
|
+
}
|
43
|
+
|
44
|
+
while (++index < length) {
|
45
|
+
var source = sources[index];
|
46
|
+
var props = keysIn(source);
|
47
|
+
var propsIndex = -1;
|
48
|
+
var propsLength = props.length;
|
49
|
+
|
50
|
+
while (++propsIndex < propsLength) {
|
51
|
+
var key = props[propsIndex];
|
52
|
+
var value = object[key];
|
53
|
+
|
54
|
+
if (value === undefined ||
|
55
|
+
(eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
|
56
|
+
object[key] = source[key];
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
return object;
|
62
|
+
});
|
63
|
+
|
64
|
+
module.exports = defaults;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
var apply = require('./_apply'),
|
2
|
+
baseRest = require('./_baseRest'),
|
3
|
+
customDefaultsMerge = require('./_customDefaultsMerge'),
|
4
|
+
mergeWith = require('./mergeWith');
|
5
|
+
|
6
|
+
/**
|
7
|
+
* This method is like `_.defaults` except that it recursively assigns
|
8
|
+
* default properties.
|
9
|
+
*
|
10
|
+
* **Note:** This method mutates `object`.
|
11
|
+
*
|
12
|
+
* @static
|
13
|
+
* @memberOf _
|
14
|
+
* @since 3.10.0
|
15
|
+
* @category Object
|
16
|
+
* @param {Object} object The destination object.
|
17
|
+
* @param {...Object} [sources] The source objects.
|
18
|
+
* @returns {Object} Returns `object`.
|
19
|
+
* @see _.defaults
|
20
|
+
* @example
|
21
|
+
*
|
22
|
+
* _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
|
23
|
+
* // => { 'a': { 'b': 2, 'c': 3 } }
|
24
|
+
*/
|
25
|
+
var defaultsDeep = baseRest(function(args) {
|
26
|
+
args.push(undefined, customDefaultsMerge);
|
27
|
+
return apply(mergeWith, undefined, args);
|
28
|
+
});
|
29
|
+
|
30
|
+
module.exports = defaultsDeep;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
var baseDelay = require('./_baseDelay'),
|
2
|
+
baseRest = require('./_baseRest');
|
3
|
+
|
4
|
+
/**
|
5
|
+
* Defers invoking the `func` until the current call stack has cleared. Any
|
6
|
+
* additional arguments are provided to `func` when it's invoked.
|
7
|
+
*
|
8
|
+
* @static
|
9
|
+
* @memberOf _
|
10
|
+
* @since 0.1.0
|
11
|
+
* @category Function
|
12
|
+
* @param {Function} func The function to defer.
|
13
|
+
* @param {...*} [args] The arguments to invoke `func` with.
|
14
|
+
* @returns {number} Returns the timer id.
|
15
|
+
* @example
|
16
|
+
*
|
17
|
+
* _.defer(function(text) {
|
18
|
+
* console.log(text);
|
19
|
+
* }, 'deferred');
|
20
|
+
* // => Logs 'deferred' after one millisecond.
|
21
|
+
*/
|
22
|
+
var defer = baseRest(function(func, args) {
|
23
|
+
return baseDelay(func, 1, args);
|
24
|
+
});
|
25
|
+
|
26
|
+
module.exports = defer;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
var baseDelay = require('./_baseDelay'),
|
2
|
+
baseRest = require('./_baseRest'),
|
3
|
+
toNumber = require('./toNumber');
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Invokes `func` after `wait` milliseconds. Any additional arguments are
|
7
|
+
* provided to `func` when it's invoked.
|
8
|
+
*
|
9
|
+
* @static
|
10
|
+
* @memberOf _
|
11
|
+
* @since 0.1.0
|
12
|
+
* @category Function
|
13
|
+
* @param {Function} func The function to delay.
|
14
|
+
* @param {number} wait The number of milliseconds to delay invocation.
|
15
|
+
* @param {...*} [args] The arguments to invoke `func` with.
|
16
|
+
* @returns {number} Returns the timer id.
|
17
|
+
* @example
|
18
|
+
*
|
19
|
+
* _.delay(function(text) {
|
20
|
+
* console.log(text);
|
21
|
+
* }, 1000, 'later');
|
22
|
+
* // => Logs 'later' after one second.
|
23
|
+
*/
|
24
|
+
var delay = baseRest(function(func, wait, args) {
|
25
|
+
return baseDelay(func, toNumber(wait) || 0, args);
|
26
|
+
});
|
27
|
+
|
28
|
+
module.exports = delay;
|