@clary-so/measure 0.4.5 → 0.4.7
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/dist/bin-bundled.js +12 -59445
- package/dist/react-bundled.js +305 -0
- package/esbuild-bin.mjs +32 -14
- package/node_modules/@types/yoga-layout/LICENSE +21 -0
- package/node_modules/@types/yoga-layout/README.md +16 -0
- package/node_modules/@types/yoga-layout/index.d.ts +413 -0
- package/node_modules/@types/yoga-layout/package.json +24 -0
- package/node_modules/ansi-escapes/index.d.ts +248 -0
- package/node_modules/ansi-escapes/index.js +157 -0
- package/node_modules/ansi-escapes/license +9 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/base.d.ts +39 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/index.d.ts +2 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/license +9 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/package.json +58 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/readme.md +760 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/async-return-type.d.ts +23 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/asyncify.d.ts +31 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/basic.d.ts +51 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/conditional-except.d.ts +43 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/conditional-keys.d.ts +43 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/conditional-pick.d.ts +42 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/entries.d.ts +57 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/entry.d.ts +60 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/except.d.ts +22 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/fixed-length-array.d.ts +38 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/iterable-element.d.ts +46 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/literal-union.d.ts +33 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/merge-exclusive.d.ts +39 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/merge.d.ts +25 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/mutable.d.ts +38 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/opaque.d.ts +65 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/package-json.d.ts +611 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/partial-deep.d.ts +72 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/promisable.d.ts +23 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/promise-value.d.ts +27 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/readonly-deep.d.ts +59 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/require-at-least-one.d.ts +33 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/require-exactly-one.d.ts +35 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/set-optional.d.ts +33 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/set-required.d.ts +33 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/set-return-type.d.ts +29 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/simplify.d.ts +4 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/stringified.d.ts +21 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/tsconfig-json.d.ts +870 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/typed-array.d.ts +15 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/union-to-intersection.d.ts +58 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/utilities.d.ts +5 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/source/value-of.d.ts +40 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/ts41/camel-case.d.ts +64 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/ts41/delimiter-case.d.ts +85 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/ts41/get.d.ts +131 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/ts41/index.d.ts +10 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/ts41/kebab-case.d.ts +36 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/ts41/pascal-case.d.ts +36 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/ts41/snake-case.d.ts +35 -0
- package/node_modules/ansi-escapes/node_modules/type-fest/ts41/utilities.d.ts +8 -0
- package/node_modules/ansi-escapes/package.json +57 -0
- package/node_modules/ansi-escapes/readme.md +245 -0
- package/node_modules/ansi-regex/index.d.ts +37 -0
- package/node_modules/ansi-regex/index.js +10 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +55 -0
- package/node_modules/ansi-regex/readme.md +78 -0
- package/node_modules/ansi-styles/index.d.ts +345 -0
- package/node_modules/ansi-styles/index.js +163 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +56 -0
- package/node_modules/ansi-styles/readme.md +152 -0
- package/node_modules/astral-regex/index.d.ts +28 -0
- package/node_modules/astral-regex/index.js +6 -0
- package/node_modules/astral-regex/license +9 -0
- package/node_modules/astral-regex/package.json +33 -0
- package/node_modules/astral-regex/readme.md +46 -0
- package/node_modules/auto-bind/index.d.ts +54 -0
- package/node_modules/auto-bind/index.js +43 -0
- package/node_modules/auto-bind/license +9 -0
- package/node_modules/auto-bind/package.json +46 -0
- package/node_modules/auto-bind/react.d.ts +28 -0
- package/node_modules/auto-bind/react.js +29 -0
- package/node_modules/auto-bind/readme.md +92 -0
- package/node_modules/chalk/index.d.ts +415 -0
- package/node_modules/chalk/license +9 -0
- package/node_modules/chalk/package.json +68 -0
- package/node_modules/chalk/readme.md +341 -0
- package/node_modules/chalk/source/index.js +229 -0
- package/node_modules/chalk/source/templates.js +134 -0
- package/node_modules/chalk/source/util.js +39 -0
- package/node_modules/ci-info/CHANGELOG.md +78 -0
- package/node_modules/ci-info/LICENSE +21 -0
- package/node_modules/ci-info/README.md +108 -0
- package/node_modules/ci-info/index.js +66 -0
- package/node_modules/ci-info/package.json +36 -0
- package/node_modules/ci-info/vendors.json +153 -0
- package/node_modules/cli-boxes/boxes.json +58 -0
- package/node_modules/cli-boxes/index.d.ts +113 -0
- package/node_modules/cli-boxes/index.js +6 -0
- package/node_modules/cli-boxes/license +9 -0
- package/node_modules/cli-boxes/package.json +42 -0
- package/node_modules/cli-boxes/readme.md +105 -0
- package/node_modules/cli-cursor/index.d.ts +45 -0
- package/node_modules/cli-cursor/index.js +35 -0
- package/node_modules/cli-cursor/license +9 -0
- package/node_modules/cli-cursor/package.json +46 -0
- package/node_modules/cli-cursor/readme.md +55 -0
- package/node_modules/cli-truncate/index.d.ts +96 -0
- package/node_modules/cli-truncate/index.js +106 -0
- package/node_modules/cli-truncate/license +9 -0
- package/node_modules/cli-truncate/package.json +46 -0
- package/node_modules/cli-truncate/readme.md +139 -0
- package/node_modules/code-excerpt/index.d.ts +44 -0
- package/node_modules/code-excerpt/index.js +40 -0
- package/node_modules/code-excerpt/license +21 -0
- package/node_modules/code-excerpt/package.json +30 -0
- package/node_modules/code-excerpt/readme.md +65 -0
- package/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/color-convert/README.md +68 -0
- package/node_modules/color-convert/conversions.js +839 -0
- package/node_modules/color-convert/index.js +81 -0
- package/node_modules/color-convert/package.json +48 -0
- package/node_modules/color-convert/route.js +97 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +152 -0
- package/node_modules/color-name/package.json +28 -0
- package/node_modules/convert-to-spaces/index.js +5 -0
- package/node_modules/convert-to-spaces/license +21 -0
- package/node_modules/convert-to-spaces/package.json +25 -0
- package/node_modules/convert-to-spaces/readme.md +48 -0
- package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/emoji-regex/README.md +73 -0
- package/node_modules/emoji-regex/es2015/index.js +6 -0
- package/node_modules/emoji-regex/es2015/text.js +6 -0
- package/node_modules/emoji-regex/index.d.ts +23 -0
- package/node_modules/emoji-regex/index.js +6 -0
- package/node_modules/emoji-regex/package.json +50 -0
- package/node_modules/emoji-regex/text.js +6 -0
- package/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/node_modules/escape-string-regexp/index.js +11 -0
- package/node_modules/escape-string-regexp/license +9 -0
- package/node_modules/escape-string-regexp/package.json +43 -0
- package/node_modules/escape-string-regexp/readme.md +29 -0
- package/node_modules/has-flag/index.d.ts +39 -0
- package/node_modules/has-flag/index.js +8 -0
- package/node_modules/has-flag/license +9 -0
- package/node_modules/has-flag/package.json +46 -0
- package/node_modules/has-flag/readme.md +89 -0
- package/node_modules/indent-string/index.d.ts +42 -0
- package/node_modules/indent-string/index.js +35 -0
- package/node_modules/indent-string/license +9 -0
- package/node_modules/indent-string/package.json +37 -0
- package/node_modules/indent-string/readme.md +70 -0
- package/node_modules/ink/build/colorize.d.ts +3 -0
- package/node_modules/ink/build/colorize.js +53 -0
- package/node_modules/ink/build/colorize.js.map +1 -0
- package/node_modules/ink/build/components/App.d.ts +57 -0
- package/node_modules/ink/build/components/App.js +282 -0
- package/node_modules/ink/build/components/App.js.map +1 -0
- package/node_modules/ink/build/components/AppContext.d.ts +12 -0
- package/node_modules/ink/build/components/AppContext.js +12 -0
- package/node_modules/ink/build/components/AppContext.js.map +1 -0
- package/node_modules/ink/build/components/Box.d.ts +86 -0
- package/node_modules/ink/build/components/Box.js +50 -0
- package/node_modules/ink/build/components/Box.js.map +1 -0
- package/node_modules/ink/build/components/ErrorOverview.d.ts +6 -0
- package/node_modules/ink/build/components/ErrorOverview.js +97 -0
- package/node_modules/ink/build/components/ErrorOverview.js.map +1 -0
- package/node_modules/ink/build/components/FocusContext.d.ts +17 -0
- package/node_modules/ink/build/components/FocusContext.js +18 -0
- package/node_modules/ink/build/components/FocusContext.js.map +1 -0
- package/node_modules/ink/build/components/Newline.d.ts +14 -0
- package/node_modules/ink/build/components/Newline.js +13 -0
- package/node_modules/ink/build/components/Newline.js.map +1 -0
- package/node_modules/ink/build/components/Spacer.d.ts +7 -0
- package/node_modules/ink/build/components/Spacer.js +15 -0
- package/node_modules/ink/build/components/Spacer.js.map +1 -0
- package/node_modules/ink/build/components/Static.d.ts +35 -0
- package/node_modules/ink/build/components/Static.js +54 -0
- package/node_modules/ink/build/components/Static.js.map +1 -0
- package/node_modules/ink/build/components/StderrContext.d.ts +19 -0
- package/node_modules/ink/build/components/StderrContext.js +13 -0
- package/node_modules/ink/build/components/StderrContext.js.map +1 -0
- package/node_modules/ink/build/components/StdinContext.d.ts +23 -0
- package/node_modules/ink/build/components/StdinContext.js +15 -0
- package/node_modules/ink/build/components/StdinContext.js.map +1 -0
- package/node_modules/ink/build/components/StdoutContext.d.ts +19 -0
- package/node_modules/ink/build/components/StdoutContext.js +13 -0
- package/node_modules/ink/build/components/StdoutContext.js.map +1 -0
- package/node_modules/ink/build/components/Text.d.ts +50 -0
- package/node_modules/ink/build/components/Text.js +55 -0
- package/node_modules/ink/build/components/Text.js.map +1 -0
- package/node_modules/ink/build/components/Transform.d.ts +16 -0
- package/node_modules/ink/build/components/Transform.js +21 -0
- package/node_modules/ink/build/components/Transform.js.map +1 -0
- package/node_modules/ink/build/devtools-window-polyfill.d.ts +1 -0
- package/node_modules/ink/build/devtools-window-polyfill.js +72 -0
- package/node_modules/ink/build/devtools-window-polyfill.js.map +1 -0
- package/node_modules/ink/build/devtools.d.ts +1 -0
- package/node_modules/ink/build/devtools.js +8 -0
- package/node_modules/ink/build/devtools.js.map +1 -0
- package/node_modules/ink/build/dom.d.ts +45 -0
- package/node_modules/ink/build/dom.js +134 -0
- package/node_modules/ink/build/dom.js.map +1 -0
- package/node_modules/ink/build/get-max-width.d.ts +3 -0
- package/node_modules/ink/build/get-max-width.js +14 -0
- package/node_modules/ink/build/get-max-width.js.map +1 -0
- package/node_modules/ink/build/hooks/use-app.d.ts +5 -0
- package/node_modules/ink/build/hooks/use-app.js +13 -0
- package/node_modules/ink/build/hooks/use-app.js.map +1 -0
- package/node_modules/ink/build/hooks/use-focus-manager.d.ts +34 -0
- package/node_modules/ink/build/hooks/use-focus-manager.js +23 -0
- package/node_modules/ink/build/hooks/use-focus-manager.js.map +1 -0
- package/node_modules/ink/build/hooks/use-focus.d.ts +34 -0
- package/node_modules/ink/build/hooks/use-focus.js +52 -0
- package/node_modules/ink/build/hooks/use-focus.js.map +1 -0
- package/node_modules/ink/build/hooks/use-input.d.ts +97 -0
- package/node_modules/ink/build/hooks/use-input.js +98 -0
- package/node_modules/ink/build/hooks/use-input.js.map +1 -0
- package/node_modules/ink/build/hooks/use-stderr.d.ts +5 -0
- package/node_modules/ink/build/hooks/use-stderr.js +13 -0
- package/node_modules/ink/build/hooks/use-stderr.js.map +1 -0
- package/node_modules/ink/build/hooks/use-stdin.d.ts +5 -0
- package/node_modules/ink/build/hooks/use-stdin.js +13 -0
- package/node_modules/ink/build/hooks/use-stdin.js.map +1 -0
- package/node_modules/ink/build/hooks/use-stdout.d.ts +5 -0
- package/node_modules/ink/build/hooks/use-stdout.js +13 -0
- package/node_modules/ink/build/hooks/use-stdout.js.map +1 -0
- package/node_modules/ink/build/index.d.ts +20 -0
- package/node_modules/ink/build/index.js +33 -0
- package/node_modules/ink/build/index.js.map +1 -0
- package/node_modules/ink/build/ink.d.ts +36 -0
- package/node_modules/ink/build/ink.js +235 -0
- package/node_modules/ink/build/ink.js.map +1 -0
- package/node_modules/ink/build/instances.d.ts +2 -0
- package/node_modules/ink/build/instances.js +9 -0
- package/node_modules/ink/build/instances.js.map +1 -0
- package/node_modules/ink/build/log-update.d.ts +13 -0
- package/node_modules/ink/build/log-update.js +41 -0
- package/node_modules/ink/build/log-update.js.map +1 -0
- package/node_modules/ink/build/measure-element.d.ts +16 -0
- package/node_modules/ink/build/measure-element.js +13 -0
- package/node_modules/ink/build/measure-element.js.map +1 -0
- package/node_modules/ink/build/measure-text.d.ts +6 -0
- package/node_modules/ink/build/measure-text.js +23 -0
- package/node_modules/ink/build/measure-text.js.map +1 -0
- package/node_modules/ink/build/output.d.ts +27 -0
- package/node_modules/ink/build/output.js +58 -0
- package/node_modules/ink/build/output.js.map +1 -0
- package/node_modules/ink/build/reconciler.d.ts +4 -0
- package/node_modules/ink/build/reconciler.js +196 -0
- package/node_modules/ink/build/reconciler.js.map +1 -0
- package/node_modules/ink/build/render-border.d.ts +4 -0
- package/node_modules/ink/build/render-border.js +23 -0
- package/node_modules/ink/build/render-border.js.map +1 -0
- package/node_modules/ink/build/render-node-to-output.d.ts +10 -0
- package/node_modules/ink/build/render-node-to-output.js +80 -0
- package/node_modules/ink/build/render-node-to-output.js.map +1 -0
- package/node_modules/ink/build/render.d.ts +65 -0
- package/node_modules/ink/build/render.js +45 -0
- package/node_modules/ink/build/render.js.map +1 -0
- package/node_modules/ink/build/renderer.d.ts +8 -0
- package/node_modules/ink/build/renderer.js +44 -0
- package/node_modules/ink/build/renderer.js.map +1 -0
- package/node_modules/ink/build/squash-text-nodes.d.ts +3 -0
- package/node_modules/ink/build/squash-text-nodes.js +35 -0
- package/node_modules/ink/build/squash-text-nodes.js.map +1 -0
- package/node_modules/ink/build/styles.d.ts +109 -0
- package/node_modules/ink/build/styles.js +187 -0
- package/node_modules/ink/build/styles.js.map +1 -0
- package/node_modules/ink/build/wrap-text.d.ts +3 -0
- package/node_modules/ink/build/wrap-text.js +34 -0
- package/node_modules/ink/build/wrap-text.js.map +1 -0
- package/node_modules/ink/license +9 -0
- package/node_modules/ink/node_modules/react-reconciler/LICENSE +21 -0
- package/node_modules/ink/node_modules/react-reconciler/README.md +64 -0
- package/node_modules/ink/node_modules/react-reconciler/build-info.json +8 -0
- package/node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler-reflection.development.js +603 -0
- package/node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler-reflection.production.min.js +15 -0
- package/node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler.development.js +18644 -0
- package/node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler.production.min.js +216 -0
- package/node_modules/ink/node_modules/react-reconciler/cjs/react-reconciler.profiling.min.js +224 -0
- package/node_modules/ink/node_modules/react-reconciler/index.js +7 -0
- package/node_modules/ink/node_modules/react-reconciler/package.json +41 -0
- package/node_modules/ink/node_modules/react-reconciler/reflection.js +7 -0
- package/node_modules/ink/package.json +172 -0
- package/node_modules/ink/readme.md +1810 -0
- package/node_modules/is-ci/CHANGELOG.md +14 -0
- package/node_modules/is-ci/LICENSE +21 -0
- package/node_modules/is-ci/README.md +50 -0
- package/node_modules/is-ci/bin.js +4 -0
- package/node_modules/is-ci/index.js +3 -0
- package/node_modules/is-ci/package.json +38 -0
- package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/node_modules/is-fullwidth-code-point/index.js +50 -0
- package/node_modules/is-fullwidth-code-point/license +9 -0
- package/node_modules/is-fullwidth-code-point/package.json +42 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/js-tokens/LICENSE +21 -0
- package/node_modules/js-tokens/README.md +240 -0
- package/node_modules/js-tokens/index.js +23 -0
- package/node_modules/js-tokens/package.json +30 -0
- package/node_modules/lodash/LICENSE +47 -0
- package/node_modules/lodash/README.md +39 -0
- package/node_modules/lodash/_DataView.js +7 -0
- package/node_modules/lodash/_Hash.js +32 -0
- package/node_modules/lodash/_LazyWrapper.js +28 -0
- package/node_modules/lodash/_ListCache.js +32 -0
- package/node_modules/lodash/_LodashWrapper.js +22 -0
- package/node_modules/lodash/_Map.js +7 -0
- package/node_modules/lodash/_MapCache.js +32 -0
- package/node_modules/lodash/_Promise.js +7 -0
- package/node_modules/lodash/_Set.js +7 -0
- package/node_modules/lodash/_SetCache.js +27 -0
- package/node_modules/lodash/_Stack.js +27 -0
- package/node_modules/lodash/_Symbol.js +6 -0
- package/node_modules/lodash/_Uint8Array.js +6 -0
- package/node_modules/lodash/_WeakMap.js +7 -0
- package/node_modules/lodash/_apply.js +21 -0
- package/node_modules/lodash/_arrayAggregator.js +22 -0
- package/node_modules/lodash/_arrayEach.js +22 -0
- package/node_modules/lodash/_arrayEachRight.js +21 -0
- package/node_modules/lodash/_arrayEvery.js +23 -0
- package/node_modules/lodash/_arrayFilter.js +25 -0
- package/node_modules/lodash/_arrayIncludes.js +17 -0
- package/node_modules/lodash/_arrayIncludesWith.js +22 -0
- package/node_modules/lodash/_arrayLikeKeys.js +49 -0
- package/node_modules/lodash/_arrayMap.js +21 -0
- package/node_modules/lodash/_arrayPush.js +20 -0
- package/node_modules/lodash/_arrayReduce.js +26 -0
- package/node_modules/lodash/_arrayReduceRight.js +24 -0
- package/node_modules/lodash/_arraySample.js +15 -0
- package/node_modules/lodash/_arraySampleSize.js +17 -0
- package/node_modules/lodash/_arrayShuffle.js +15 -0
- package/node_modules/lodash/_arraySome.js +23 -0
- package/node_modules/lodash/_asciiSize.js +12 -0
- package/node_modules/lodash/_asciiToArray.js +12 -0
- package/node_modules/lodash/_asciiWords.js +15 -0
- package/node_modules/lodash/_assignMergeValue.js +20 -0
- package/node_modules/lodash/_assignValue.js +28 -0
- package/node_modules/lodash/_assocIndexOf.js +21 -0
- package/node_modules/lodash/_baseAggregator.js +21 -0
- package/node_modules/lodash/_baseAssign.js +17 -0
- package/node_modules/lodash/_baseAssignIn.js +17 -0
- package/node_modules/lodash/_baseAssignValue.js +25 -0
- package/node_modules/lodash/_baseAt.js +23 -0
- package/node_modules/lodash/_baseClamp.js +22 -0
- package/node_modules/lodash/_baseClone.js +166 -0
- package/node_modules/lodash/_baseConforms.js +18 -0
- package/node_modules/lodash/_baseConformsTo.js +27 -0
- package/node_modules/lodash/_baseCreate.js +30 -0
- package/node_modules/lodash/_baseDelay.js +21 -0
- package/node_modules/lodash/_baseDifference.js +67 -0
- package/node_modules/lodash/_baseEach.js +14 -0
- package/node_modules/lodash/_baseEachRight.js +14 -0
- package/node_modules/lodash/_baseEvery.js +21 -0
- package/node_modules/lodash/_baseExtremum.js +32 -0
- package/node_modules/lodash/_baseFill.js +32 -0
- package/node_modules/lodash/_baseFilter.js +21 -0
- package/node_modules/lodash/_baseFindIndex.js +24 -0
- package/node_modules/lodash/_baseFindKey.js +23 -0
- package/node_modules/lodash/_baseFlatten.js +38 -0
- package/node_modules/lodash/_baseFor.js +16 -0
- package/node_modules/lodash/_baseForOwn.js +16 -0
- package/node_modules/lodash/_baseForOwnRight.js +16 -0
- package/node_modules/lodash/_baseForRight.js +15 -0
- package/node_modules/lodash/_baseFunctions.js +19 -0
- package/node_modules/lodash/_baseGet.js +24 -0
- package/node_modules/lodash/_baseGetAllKeys.js +20 -0
- package/node_modules/lodash/_baseGetTag.js +28 -0
- package/node_modules/lodash/_baseGt.js +14 -0
- package/node_modules/lodash/_baseHas.js +19 -0
- package/node_modules/lodash/_baseHasIn.js +13 -0
- package/node_modules/lodash/_baseInRange.js +18 -0
- package/node_modules/lodash/_baseIndexOf.js +20 -0
- package/node_modules/lodash/_baseIndexOfWith.js +23 -0
- package/node_modules/lodash/_baseIntersection.js +74 -0
- package/node_modules/lodash/_baseInverter.js +21 -0
- package/node_modules/lodash/_baseInvoke.js +24 -0
- package/node_modules/lodash/_baseIsArguments.js +18 -0
- package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
- package/node_modules/lodash/_baseIsDate.js +18 -0
- package/node_modules/lodash/_baseIsEqual.js +28 -0
- package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
- package/node_modules/lodash/_baseIsMap.js +18 -0
- package/node_modules/lodash/_baseIsMatch.js +62 -0
- package/node_modules/lodash/_baseIsNaN.js +12 -0
- package/node_modules/lodash/_baseIsNative.js +47 -0
- package/node_modules/lodash/_baseIsRegExp.js +18 -0
- package/node_modules/lodash/_baseIsSet.js +18 -0
- package/node_modules/lodash/_baseIsTypedArray.js +60 -0
- package/node_modules/lodash/_baseIteratee.js +31 -0
- package/node_modules/lodash/_baseKeys.js +30 -0
- package/node_modules/lodash/_baseKeysIn.js +33 -0
- package/node_modules/lodash/_baseLodash.js +10 -0
- package/node_modules/lodash/_baseLt.js +14 -0
- package/node_modules/lodash/_baseMap.js +22 -0
- package/node_modules/lodash/_baseMatches.js +22 -0
- package/node_modules/lodash/_baseMatchesProperty.js +33 -0
- package/node_modules/lodash/_baseMean.js +20 -0
- package/node_modules/lodash/_baseMerge.js +42 -0
- package/node_modules/lodash/_baseMergeDeep.js +94 -0
- package/node_modules/lodash/_baseNth.js +20 -0
- package/node_modules/lodash/_baseOrderBy.js +49 -0
- package/node_modules/lodash/_basePick.js +19 -0
- package/node_modules/lodash/_basePickBy.js +30 -0
- package/node_modules/lodash/_baseProperty.js +14 -0
- package/node_modules/lodash/_basePropertyDeep.js +16 -0
- package/node_modules/lodash/_basePropertyOf.js +14 -0
- package/node_modules/lodash/_basePullAll.js +51 -0
- package/node_modules/lodash/_basePullAt.js +37 -0
- package/node_modules/lodash/_baseRandom.js +18 -0
- package/node_modules/lodash/_baseRange.js +28 -0
- package/node_modules/lodash/_baseReduce.js +23 -0
- package/node_modules/lodash/_baseRepeat.js +35 -0
- package/node_modules/lodash/_baseRest.js +17 -0
- package/node_modules/lodash/_baseSample.js +15 -0
- package/node_modules/lodash/_baseSampleSize.js +18 -0
- package/node_modules/lodash/_baseSet.js +51 -0
- package/node_modules/lodash/_baseSetData.js +17 -0
- package/node_modules/lodash/_baseSetToString.js +22 -0
- package/node_modules/lodash/_baseShuffle.js +15 -0
- package/node_modules/lodash/_baseSlice.js +31 -0
- package/node_modules/lodash/_baseSome.js +22 -0
- package/node_modules/lodash/_baseSortBy.js +21 -0
- package/node_modules/lodash/_baseSortedIndex.js +42 -0
- package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
- package/node_modules/lodash/_baseSortedUniq.js +30 -0
- package/node_modules/lodash/_baseSum.js +24 -0
- package/node_modules/lodash/_baseTimes.js +20 -0
- package/node_modules/lodash/_baseToNumber.js +24 -0
- package/node_modules/lodash/_baseToPairs.js +18 -0
- package/node_modules/lodash/_baseToString.js +37 -0
- package/node_modules/lodash/_baseTrim.js +19 -0
- package/node_modules/lodash/_baseUnary.js +14 -0
- package/node_modules/lodash/_baseUniq.js +72 -0
- package/node_modules/lodash/_baseUnset.js +65 -0
- package/node_modules/lodash/_baseUpdate.js +18 -0
- package/node_modules/lodash/_baseValues.js +19 -0
- package/node_modules/lodash/_baseWhile.js +26 -0
- package/node_modules/lodash/_baseWrapperValue.js +25 -0
- package/node_modules/lodash/_baseXor.js +36 -0
- package/node_modules/lodash/_baseZipObject.js +23 -0
- package/node_modules/lodash/_cacheHas.js +13 -0
- package/node_modules/lodash/_castArrayLikeObject.js +14 -0
- package/node_modules/lodash/_castFunction.js +14 -0
- package/node_modules/lodash/_castPath.js +21 -0
- package/node_modules/lodash/_castRest.js +14 -0
- package/node_modules/lodash/_castSlice.js +18 -0
- package/node_modules/lodash/_charsEndIndex.js +19 -0
- package/node_modules/lodash/_charsStartIndex.js +20 -0
- package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/node_modules/lodash/_cloneBuffer.js +35 -0
- package/node_modules/lodash/_cloneDataView.js +16 -0
- package/node_modules/lodash/_cloneRegExp.js +17 -0
- package/node_modules/lodash/_cloneSymbol.js +18 -0
- package/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/node_modules/lodash/_compareAscending.js +41 -0
- package/node_modules/lodash/_compareMultiple.js +44 -0
- package/node_modules/lodash/_composeArgs.js +39 -0
- package/node_modules/lodash/_composeArgsRight.js +41 -0
- package/node_modules/lodash/_copyArray.js +20 -0
- package/node_modules/lodash/_copyObject.js +40 -0
- package/node_modules/lodash/_copySymbols.js +16 -0
- package/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/node_modules/lodash/_coreJsData.js +6 -0
- package/node_modules/lodash/_countHolders.js +21 -0
- package/node_modules/lodash/_createAggregator.js +23 -0
- package/node_modules/lodash/_createAssigner.js +37 -0
- package/node_modules/lodash/_createBaseEach.js +32 -0
- package/node_modules/lodash/_createBaseFor.js +25 -0
- package/node_modules/lodash/_createBind.js +28 -0
- package/node_modules/lodash/_createCaseFirst.js +33 -0
- package/node_modules/lodash/_createCompounder.js +24 -0
- package/node_modules/lodash/_createCtor.js +37 -0
- package/node_modules/lodash/_createCurry.js +46 -0
- package/node_modules/lodash/_createFind.js +25 -0
- package/node_modules/lodash/_createFlow.js +78 -0
- package/node_modules/lodash/_createHybrid.js +92 -0
- package/node_modules/lodash/_createInverter.js +17 -0
- package/node_modules/lodash/_createMathOperation.js +38 -0
- package/node_modules/lodash/_createOver.js +27 -0
- package/node_modules/lodash/_createPadding.js +33 -0
- package/node_modules/lodash/_createPartial.js +43 -0
- package/node_modules/lodash/_createRange.js +30 -0
- package/node_modules/lodash/_createRecurry.js +56 -0
- package/node_modules/lodash/_createRelationalOperation.js +20 -0
- package/node_modules/lodash/_createRound.js +35 -0
- package/node_modules/lodash/_createSet.js +19 -0
- package/node_modules/lodash/_createToPairs.js +30 -0
- package/node_modules/lodash/_createWrap.js +106 -0
- package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
- package/node_modules/lodash/_customDefaultsMerge.js +28 -0
- package/node_modules/lodash/_customOmitClone.js +16 -0
- package/node_modules/lodash/_deburrLetter.js +71 -0
- package/node_modules/lodash/_defineProperty.js +11 -0
- package/node_modules/lodash/_equalArrays.js +84 -0
- package/node_modules/lodash/_equalByTag.js +112 -0
- package/node_modules/lodash/_equalObjects.js +90 -0
- package/node_modules/lodash/_escapeHtmlChar.js +21 -0
- package/node_modules/lodash/_escapeStringChar.js +22 -0
- package/node_modules/lodash/_flatRest.js +16 -0
- package/node_modules/lodash/_freeGlobal.js +4 -0
- package/node_modules/lodash/_getAllKeys.js +16 -0
- package/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/node_modules/lodash/_getData.js +15 -0
- package/node_modules/lodash/_getFuncName.js +31 -0
- package/node_modules/lodash/_getHolder.js +13 -0
- package/node_modules/lodash/_getMapData.js +18 -0
- package/node_modules/lodash/_getMatchData.js +24 -0
- package/node_modules/lodash/_getNative.js +17 -0
- package/node_modules/lodash/_getPrototype.js +6 -0
- package/node_modules/lodash/_getRawTag.js +46 -0
- package/node_modules/lodash/_getSymbols.js +30 -0
- package/node_modules/lodash/_getSymbolsIn.js +25 -0
- package/node_modules/lodash/_getTag.js +58 -0
- package/node_modules/lodash/_getValue.js +13 -0
- package/node_modules/lodash/_getView.js +33 -0
- package/node_modules/lodash/_getWrapDetails.js +17 -0
- package/node_modules/lodash/_hasPath.js +39 -0
- package/node_modules/lodash/_hasUnicode.js +26 -0
- package/node_modules/lodash/_hasUnicodeWord.js +15 -0
- package/node_modules/lodash/_hashClear.js +15 -0
- package/node_modules/lodash/_hashDelete.js +17 -0
- package/node_modules/lodash/_hashGet.js +30 -0
- package/node_modules/lodash/_hashHas.js +23 -0
- package/node_modules/lodash/_hashSet.js +23 -0
- package/node_modules/lodash/_initCloneArray.js +26 -0
- package/node_modules/lodash/_initCloneByTag.js +77 -0
- package/node_modules/lodash/_initCloneObject.js +18 -0
- package/node_modules/lodash/_insertWrapDetails.js +23 -0
- package/node_modules/lodash/_isFlattenable.js +20 -0
- package/node_modules/lodash/_isIndex.js +25 -0
- package/node_modules/lodash/_isIterateeCall.js +30 -0
- package/node_modules/lodash/_isKey.js +29 -0
- package/node_modules/lodash/_isKeyable.js +15 -0
- package/node_modules/lodash/_isLaziable.js +28 -0
- package/node_modules/lodash/_isMaskable.js +14 -0
- package/node_modules/lodash/_isMasked.js +20 -0
- package/node_modules/lodash/_isPrototype.js +18 -0
- package/node_modules/lodash/_isStrictComparable.js +15 -0
- package/node_modules/lodash/_iteratorToArray.js +18 -0
- package/node_modules/lodash/_lazyClone.js +23 -0
- package/node_modules/lodash/_lazyReverse.js +23 -0
- package/node_modules/lodash/_lazyValue.js +69 -0
- package/node_modules/lodash/_listCacheClear.js +13 -0
- package/node_modules/lodash/_listCacheDelete.js +35 -0
- package/node_modules/lodash/_listCacheGet.js +19 -0
- package/node_modules/lodash/_listCacheHas.js +16 -0
- package/node_modules/lodash/_listCacheSet.js +26 -0
- package/node_modules/lodash/_mapCacheClear.js +21 -0
- package/node_modules/lodash/_mapCacheDelete.js +18 -0
- package/node_modules/lodash/_mapCacheGet.js +16 -0
- package/node_modules/lodash/_mapCacheHas.js +16 -0
- package/node_modules/lodash/_mapCacheSet.js +22 -0
- package/node_modules/lodash/_mapToArray.js +18 -0
- package/node_modules/lodash/_matchesStrictComparable.js +20 -0
- package/node_modules/lodash/_memoizeCapped.js +26 -0
- package/node_modules/lodash/_mergeData.js +90 -0
- package/node_modules/lodash/_metaMap.js +6 -0
- package/node_modules/lodash/_nativeCreate.js +6 -0
- package/node_modules/lodash/_nativeKeys.js +6 -0
- package/node_modules/lodash/_nativeKeysIn.js +20 -0
- package/node_modules/lodash/_nodeUtil.js +30 -0
- package/node_modules/lodash/_objectToString.js +22 -0
- package/node_modules/lodash/_overArg.js +15 -0
- package/node_modules/lodash/_overRest.js +36 -0
- package/node_modules/lodash/_parent.js +16 -0
- package/node_modules/lodash/_reEscape.js +4 -0
- package/node_modules/lodash/_reEvaluate.js +4 -0
- package/node_modules/lodash/_reInterpolate.js +4 -0
- package/node_modules/lodash/_realNames.js +4 -0
- package/node_modules/lodash/_reorder.js +29 -0
- package/node_modules/lodash/_replaceHolders.js +29 -0
- package/node_modules/lodash/_root.js +9 -0
- package/node_modules/lodash/_safeGet.js +21 -0
- package/node_modules/lodash/_setCacheAdd.js +19 -0
- package/node_modules/lodash/_setCacheHas.js +14 -0
- package/node_modules/lodash/_setData.js +20 -0
- package/node_modules/lodash/_setToArray.js +18 -0
- package/node_modules/lodash/_setToPairs.js +18 -0
- package/node_modules/lodash/_setToString.js +14 -0
- package/node_modules/lodash/_setWrapToString.js +21 -0
- package/node_modules/lodash/_shortOut.js +37 -0
- package/node_modules/lodash/_shuffleSelf.js +28 -0
- package/node_modules/lodash/_stackClear.js +15 -0
- package/node_modules/lodash/_stackDelete.js +18 -0
- package/node_modules/lodash/_stackGet.js +14 -0
- package/node_modules/lodash/_stackHas.js +14 -0
- package/node_modules/lodash/_stackSet.js +34 -0
- package/node_modules/lodash/_strictIndexOf.js +23 -0
- package/node_modules/lodash/_strictLastIndexOf.js +21 -0
- package/node_modules/lodash/_stringSize.js +18 -0
- package/node_modules/lodash/_stringToArray.js +18 -0
- package/node_modules/lodash/_stringToPath.js +27 -0
- package/node_modules/lodash/_toKey.js +21 -0
- package/node_modules/lodash/_toSource.js +26 -0
- package/node_modules/lodash/_trimmedEndIndex.js +19 -0
- package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
- package/node_modules/lodash/_unicodeSize.js +44 -0
- package/node_modules/lodash/_unicodeToArray.js +40 -0
- package/node_modules/lodash/_unicodeWords.js +69 -0
- package/node_modules/lodash/_updateWrapDetails.js +46 -0
- package/node_modules/lodash/_wrapperClone.js +23 -0
- package/node_modules/lodash/add.js +22 -0
- package/node_modules/lodash/after.js +42 -0
- package/node_modules/lodash/array.js +67 -0
- package/node_modules/lodash/ary.js +29 -0
- package/node_modules/lodash/assign.js +58 -0
- package/node_modules/lodash/assignIn.js +40 -0
- package/node_modules/lodash/assignInWith.js +38 -0
- package/node_modules/lodash/assignWith.js +37 -0
- package/node_modules/lodash/at.js +23 -0
- package/node_modules/lodash/attempt.js +35 -0
- package/node_modules/lodash/before.js +40 -0
- package/node_modules/lodash/bind.js +57 -0
- package/node_modules/lodash/bindAll.js +41 -0
- package/node_modules/lodash/bindKey.js +68 -0
- package/node_modules/lodash/camelCase.js +29 -0
- package/node_modules/lodash/capitalize.js +23 -0
- package/node_modules/lodash/castArray.js +44 -0
- package/node_modules/lodash/ceil.js +26 -0
- package/node_modules/lodash/chain.js +38 -0
- package/node_modules/lodash/chunk.js +50 -0
- package/node_modules/lodash/clamp.js +39 -0
- package/node_modules/lodash/clone.js +36 -0
- package/node_modules/lodash/cloneDeep.js +29 -0
- package/node_modules/lodash/cloneDeepWith.js +40 -0
- package/node_modules/lodash/cloneWith.js +42 -0
- package/node_modules/lodash/collection.js +30 -0
- package/node_modules/lodash/commit.js +33 -0
- package/node_modules/lodash/compact.js +31 -0
- package/node_modules/lodash/concat.js +43 -0
- package/node_modules/lodash/cond.js +60 -0
- package/node_modules/lodash/conforms.js +35 -0
- package/node_modules/lodash/conformsTo.js +32 -0
- package/node_modules/lodash/constant.js +26 -0
- package/node_modules/lodash/core.js +3877 -0
- package/node_modules/lodash/core.min.js +29 -0
- package/node_modules/lodash/countBy.js +40 -0
- package/node_modules/lodash/create.js +43 -0
- package/node_modules/lodash/curry.js +57 -0
- package/node_modules/lodash/curryRight.js +54 -0
- package/node_modules/lodash/date.js +3 -0
- package/node_modules/lodash/debounce.js +191 -0
- package/node_modules/lodash/deburr.js +45 -0
- package/node_modules/lodash/defaultTo.js +25 -0
- package/node_modules/lodash/defaults.js +64 -0
- package/node_modules/lodash/defaultsDeep.js +30 -0
- package/node_modules/lodash/defer.js +26 -0
- package/node_modules/lodash/delay.js +28 -0
- package/node_modules/lodash/difference.js +33 -0
- package/node_modules/lodash/differenceBy.js +44 -0
- package/node_modules/lodash/differenceWith.js +40 -0
- package/node_modules/lodash/divide.js +22 -0
- package/node_modules/lodash/drop.js +38 -0
- package/node_modules/lodash/dropRight.js +39 -0
- package/node_modules/lodash/dropRightWhile.js +45 -0
- package/node_modules/lodash/dropWhile.js +45 -0
- package/node_modules/lodash/each.js +1 -0
- package/node_modules/lodash/eachRight.js +1 -0
- package/node_modules/lodash/endsWith.js +43 -0
- package/node_modules/lodash/entries.js +1 -0
- package/node_modules/lodash/entriesIn.js +1 -0
- package/node_modules/lodash/eq.js +37 -0
- package/node_modules/lodash/escape.js +43 -0
- package/node_modules/lodash/escapeRegExp.js +32 -0
- package/node_modules/lodash/every.js +56 -0
- package/node_modules/lodash/extend.js +1 -0
- package/node_modules/lodash/extendWith.js +1 -0
- package/node_modules/lodash/fill.js +45 -0
- package/node_modules/lodash/filter.js +52 -0
- package/node_modules/lodash/find.js +42 -0
- package/node_modules/lodash/findIndex.js +55 -0
- package/node_modules/lodash/findKey.js +44 -0
- package/node_modules/lodash/findLast.js +25 -0
- package/node_modules/lodash/findLastIndex.js +59 -0
- package/node_modules/lodash/findLastKey.js +44 -0
- package/node_modules/lodash/first.js +1 -0
- package/node_modules/lodash/flatMap.js +29 -0
- package/node_modules/lodash/flatMapDeep.js +31 -0
- package/node_modules/lodash/flatMapDepth.js +31 -0
- package/node_modules/lodash/flatten.js +22 -0
- package/node_modules/lodash/flattenDeep.js +25 -0
- package/node_modules/lodash/flattenDepth.js +33 -0
- package/node_modules/lodash/flip.js +28 -0
- package/node_modules/lodash/floor.js +26 -0
- package/node_modules/lodash/flow.js +27 -0
- package/node_modules/lodash/flowRight.js +26 -0
- package/node_modules/lodash/forEach.js +41 -0
- package/node_modules/lodash/forEachRight.js +31 -0
- package/node_modules/lodash/forIn.js +39 -0
- package/node_modules/lodash/forInRight.js +37 -0
- package/node_modules/lodash/forOwn.js +36 -0
- package/node_modules/lodash/forOwnRight.js +34 -0
- package/node_modules/lodash/fp/F.js +1 -0
- package/node_modules/lodash/fp/T.js +1 -0
- package/node_modules/lodash/fp/__.js +1 -0
- package/node_modules/lodash/fp/_baseConvert.js +569 -0
- package/node_modules/lodash/fp/_convertBrowser.js +18 -0
- package/node_modules/lodash/fp/_falseOptions.js +7 -0
- package/node_modules/lodash/fp/_mapping.js +358 -0
- package/node_modules/lodash/fp/_util.js +16 -0
- package/node_modules/lodash/fp/add.js +5 -0
- package/node_modules/lodash/fp/after.js +5 -0
- package/node_modules/lodash/fp/all.js +1 -0
- package/node_modules/lodash/fp/allPass.js +1 -0
- package/node_modules/lodash/fp/always.js +1 -0
- package/node_modules/lodash/fp/any.js +1 -0
- package/node_modules/lodash/fp/anyPass.js +1 -0
- package/node_modules/lodash/fp/apply.js +1 -0
- package/node_modules/lodash/fp/array.js +2 -0
- package/node_modules/lodash/fp/ary.js +5 -0
- package/node_modules/lodash/fp/assign.js +5 -0
- package/node_modules/lodash/fp/assignAll.js +5 -0
- package/node_modules/lodash/fp/assignAllWith.js +5 -0
- package/node_modules/lodash/fp/assignIn.js +5 -0
- package/node_modules/lodash/fp/assignInAll.js +5 -0
- package/node_modules/lodash/fp/assignInAllWith.js +5 -0
- package/node_modules/lodash/fp/assignInWith.js +5 -0
- package/node_modules/lodash/fp/assignWith.js +5 -0
- package/node_modules/lodash/fp/assoc.js +1 -0
- package/node_modules/lodash/fp/assocPath.js +1 -0
- package/node_modules/lodash/fp/at.js +5 -0
- package/node_modules/lodash/fp/attempt.js +5 -0
- package/node_modules/lodash/fp/before.js +5 -0
- package/node_modules/lodash/fp/bind.js +5 -0
- package/node_modules/lodash/fp/bindAll.js +5 -0
- package/node_modules/lodash/fp/bindKey.js +5 -0
- package/node_modules/lodash/fp/camelCase.js +5 -0
- package/node_modules/lodash/fp/capitalize.js +5 -0
- package/node_modules/lodash/fp/castArray.js +5 -0
- package/node_modules/lodash/fp/ceil.js +5 -0
- package/node_modules/lodash/fp/chain.js +5 -0
- package/node_modules/lodash/fp/chunk.js +5 -0
- package/node_modules/lodash/fp/clamp.js +5 -0
- package/node_modules/lodash/fp/clone.js +5 -0
- package/node_modules/lodash/fp/cloneDeep.js +5 -0
- package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
- package/node_modules/lodash/fp/cloneWith.js +5 -0
- package/node_modules/lodash/fp/collection.js +2 -0
- package/node_modules/lodash/fp/commit.js +5 -0
- package/node_modules/lodash/fp/compact.js +5 -0
- package/node_modules/lodash/fp/complement.js +1 -0
- package/node_modules/lodash/fp/compose.js +1 -0
- package/node_modules/lodash/fp/concat.js +5 -0
- package/node_modules/lodash/fp/cond.js +5 -0
- package/node_modules/lodash/fp/conforms.js +1 -0
- package/node_modules/lodash/fp/conformsTo.js +5 -0
- package/node_modules/lodash/fp/constant.js +5 -0
- package/node_modules/lodash/fp/contains.js +1 -0
- package/node_modules/lodash/fp/convert.js +18 -0
- package/node_modules/lodash/fp/countBy.js +5 -0
- package/node_modules/lodash/fp/create.js +5 -0
- package/node_modules/lodash/fp/curry.js +5 -0
- package/node_modules/lodash/fp/curryN.js +5 -0
- package/node_modules/lodash/fp/curryRight.js +5 -0
- package/node_modules/lodash/fp/curryRightN.js +5 -0
- package/node_modules/lodash/fp/date.js +2 -0
- package/node_modules/lodash/fp/debounce.js +5 -0
- package/node_modules/lodash/fp/deburr.js +5 -0
- package/node_modules/lodash/fp/defaultTo.js +5 -0
- package/node_modules/lodash/fp/defaults.js +5 -0
- package/node_modules/lodash/fp/defaultsAll.js +5 -0
- package/node_modules/lodash/fp/defaultsDeep.js +5 -0
- package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
- package/node_modules/lodash/fp/defer.js +5 -0
- package/node_modules/lodash/fp/delay.js +5 -0
- package/node_modules/lodash/fp/difference.js +5 -0
- package/node_modules/lodash/fp/differenceBy.js +5 -0
- package/node_modules/lodash/fp/differenceWith.js +5 -0
- package/node_modules/lodash/fp/dissoc.js +1 -0
- package/node_modules/lodash/fp/dissocPath.js +1 -0
- package/node_modules/lodash/fp/divide.js +5 -0
- package/node_modules/lodash/fp/drop.js +5 -0
- package/node_modules/lodash/fp/dropLast.js +1 -0
- package/node_modules/lodash/fp/dropLastWhile.js +1 -0
- package/node_modules/lodash/fp/dropRight.js +5 -0
- package/node_modules/lodash/fp/dropRightWhile.js +5 -0
- package/node_modules/lodash/fp/dropWhile.js +5 -0
- package/node_modules/lodash/fp/each.js +1 -0
- package/node_modules/lodash/fp/eachRight.js +1 -0
- package/node_modules/lodash/fp/endsWith.js +5 -0
- package/node_modules/lodash/fp/entries.js +1 -0
- package/node_modules/lodash/fp/entriesIn.js +1 -0
- package/node_modules/lodash/fp/eq.js +5 -0
- package/node_modules/lodash/fp/equals.js +1 -0
- package/node_modules/lodash/fp/escape.js +5 -0
- package/node_modules/lodash/fp/escapeRegExp.js +5 -0
- package/node_modules/lodash/fp/every.js +5 -0
- package/node_modules/lodash/fp/extend.js +1 -0
- package/node_modules/lodash/fp/extendAll.js +1 -0
- package/node_modules/lodash/fp/extendAllWith.js +1 -0
- package/node_modules/lodash/fp/extendWith.js +1 -0
- package/node_modules/lodash/fp/fill.js +5 -0
- package/node_modules/lodash/fp/filter.js +5 -0
- package/node_modules/lodash/fp/find.js +5 -0
- package/node_modules/lodash/fp/findFrom.js +5 -0
- package/node_modules/lodash/fp/findIndex.js +5 -0
- package/node_modules/lodash/fp/findIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findKey.js +5 -0
- package/node_modules/lodash/fp/findLast.js +5 -0
- package/node_modules/lodash/fp/findLastFrom.js +5 -0
- package/node_modules/lodash/fp/findLastIndex.js +5 -0
- package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findLastKey.js +5 -0
- package/node_modules/lodash/fp/first.js +1 -0
- package/node_modules/lodash/fp/flatMap.js +5 -0
- package/node_modules/lodash/fp/flatMapDeep.js +5 -0
- package/node_modules/lodash/fp/flatMapDepth.js +5 -0
- package/node_modules/lodash/fp/flatten.js +5 -0
- package/node_modules/lodash/fp/flattenDeep.js +5 -0
- package/node_modules/lodash/fp/flattenDepth.js +5 -0
- package/node_modules/lodash/fp/flip.js +5 -0
- package/node_modules/lodash/fp/floor.js +5 -0
- package/node_modules/lodash/fp/flow.js +5 -0
- package/node_modules/lodash/fp/flowRight.js +5 -0
- package/node_modules/lodash/fp/forEach.js +5 -0
- package/node_modules/lodash/fp/forEachRight.js +5 -0
- package/node_modules/lodash/fp/forIn.js +5 -0
- package/node_modules/lodash/fp/forInRight.js +5 -0
- package/node_modules/lodash/fp/forOwn.js +5 -0
- package/node_modules/lodash/fp/forOwnRight.js +5 -0
- package/node_modules/lodash/fp/fromPairs.js +5 -0
- package/node_modules/lodash/fp/function.js +2 -0
- package/node_modules/lodash/fp/functions.js +5 -0
- package/node_modules/lodash/fp/functionsIn.js +5 -0
- package/node_modules/lodash/fp/get.js +5 -0
- package/node_modules/lodash/fp/getOr.js +5 -0
- package/node_modules/lodash/fp/groupBy.js +5 -0
- package/node_modules/lodash/fp/gt.js +5 -0
- package/node_modules/lodash/fp/gte.js +5 -0
- package/node_modules/lodash/fp/has.js +5 -0
- package/node_modules/lodash/fp/hasIn.js +5 -0
- package/node_modules/lodash/fp/head.js +5 -0
- package/node_modules/lodash/fp/identical.js +1 -0
- package/node_modules/lodash/fp/identity.js +5 -0
- package/node_modules/lodash/fp/inRange.js +5 -0
- package/node_modules/lodash/fp/includes.js +5 -0
- package/node_modules/lodash/fp/includesFrom.js +5 -0
- package/node_modules/lodash/fp/indexBy.js +1 -0
- package/node_modules/lodash/fp/indexOf.js +5 -0
- package/node_modules/lodash/fp/indexOfFrom.js +5 -0
- package/node_modules/lodash/fp/init.js +1 -0
- package/node_modules/lodash/fp/initial.js +5 -0
- package/node_modules/lodash/fp/intersection.js +5 -0
- package/node_modules/lodash/fp/intersectionBy.js +5 -0
- package/node_modules/lodash/fp/intersectionWith.js +5 -0
- package/node_modules/lodash/fp/invert.js +5 -0
- package/node_modules/lodash/fp/invertBy.js +5 -0
- package/node_modules/lodash/fp/invertObj.js +1 -0
- package/node_modules/lodash/fp/invoke.js +5 -0
- package/node_modules/lodash/fp/invokeArgs.js +5 -0
- package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
- package/node_modules/lodash/fp/invokeMap.js +5 -0
- package/node_modules/lodash/fp/isArguments.js +5 -0
- package/node_modules/lodash/fp/isArray.js +5 -0
- package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
- package/node_modules/lodash/fp/isArrayLike.js +5 -0
- package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
- package/node_modules/lodash/fp/isBoolean.js +5 -0
- package/node_modules/lodash/fp/isBuffer.js +5 -0
- package/node_modules/lodash/fp/isDate.js +5 -0
- package/node_modules/lodash/fp/isElement.js +5 -0
- package/node_modules/lodash/fp/isEmpty.js +5 -0
- package/node_modules/lodash/fp/isEqual.js +5 -0
- package/node_modules/lodash/fp/isEqualWith.js +5 -0
- package/node_modules/lodash/fp/isError.js +5 -0
- package/node_modules/lodash/fp/isFinite.js +5 -0
- package/node_modules/lodash/fp/isFunction.js +5 -0
- package/node_modules/lodash/fp/isInteger.js +5 -0
- package/node_modules/lodash/fp/isLength.js +5 -0
- package/node_modules/lodash/fp/isMap.js +5 -0
- package/node_modules/lodash/fp/isMatch.js +5 -0
- package/node_modules/lodash/fp/isMatchWith.js +5 -0
- package/node_modules/lodash/fp/isNaN.js +5 -0
- package/node_modules/lodash/fp/isNative.js +5 -0
- package/node_modules/lodash/fp/isNil.js +5 -0
- package/node_modules/lodash/fp/isNull.js +5 -0
- package/node_modules/lodash/fp/isNumber.js +5 -0
- package/node_modules/lodash/fp/isObject.js +5 -0
- package/node_modules/lodash/fp/isObjectLike.js +5 -0
- package/node_modules/lodash/fp/isPlainObject.js +5 -0
- package/node_modules/lodash/fp/isRegExp.js +5 -0
- package/node_modules/lodash/fp/isSafeInteger.js +5 -0
- package/node_modules/lodash/fp/isSet.js +5 -0
- package/node_modules/lodash/fp/isString.js +5 -0
- package/node_modules/lodash/fp/isSymbol.js +5 -0
- package/node_modules/lodash/fp/isTypedArray.js +5 -0
- package/node_modules/lodash/fp/isUndefined.js +5 -0
- package/node_modules/lodash/fp/isWeakMap.js +5 -0
- package/node_modules/lodash/fp/isWeakSet.js +5 -0
- package/node_modules/lodash/fp/iteratee.js +5 -0
- package/node_modules/lodash/fp/join.js +5 -0
- package/node_modules/lodash/fp/juxt.js +1 -0
- package/node_modules/lodash/fp/kebabCase.js +5 -0
- package/node_modules/lodash/fp/keyBy.js +5 -0
- package/node_modules/lodash/fp/keys.js +5 -0
- package/node_modules/lodash/fp/keysIn.js +5 -0
- package/node_modules/lodash/fp/lang.js +2 -0
- package/node_modules/lodash/fp/last.js +5 -0
- package/node_modules/lodash/fp/lastIndexOf.js +5 -0
- package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
- package/node_modules/lodash/fp/lowerCase.js +5 -0
- package/node_modules/lodash/fp/lowerFirst.js +5 -0
- package/node_modules/lodash/fp/lt.js +5 -0
- package/node_modules/lodash/fp/lte.js +5 -0
- package/node_modules/lodash/fp/map.js +5 -0
- package/node_modules/lodash/fp/mapKeys.js +5 -0
- package/node_modules/lodash/fp/mapValues.js +5 -0
- package/node_modules/lodash/fp/matches.js +1 -0
- package/node_modules/lodash/fp/matchesProperty.js +5 -0
- package/node_modules/lodash/fp/math.js +2 -0
- package/node_modules/lodash/fp/max.js +5 -0
- package/node_modules/lodash/fp/maxBy.js +5 -0
- package/node_modules/lodash/fp/mean.js +5 -0
- package/node_modules/lodash/fp/meanBy.js +5 -0
- package/node_modules/lodash/fp/memoize.js +5 -0
- package/node_modules/lodash/fp/merge.js +5 -0
- package/node_modules/lodash/fp/mergeAll.js +5 -0
- package/node_modules/lodash/fp/mergeAllWith.js +5 -0
- package/node_modules/lodash/fp/mergeWith.js +5 -0
- package/node_modules/lodash/fp/method.js +5 -0
- package/node_modules/lodash/fp/methodOf.js +5 -0
- package/node_modules/lodash/fp/min.js +5 -0
- package/node_modules/lodash/fp/minBy.js +5 -0
- package/node_modules/lodash/fp/mixin.js +5 -0
- package/node_modules/lodash/fp/multiply.js +5 -0
- package/node_modules/lodash/fp/nAry.js +1 -0
- package/node_modules/lodash/fp/negate.js +5 -0
- package/node_modules/lodash/fp/next.js +5 -0
- package/node_modules/lodash/fp/noop.js +5 -0
- package/node_modules/lodash/fp/now.js +5 -0
- package/node_modules/lodash/fp/nth.js +5 -0
- package/node_modules/lodash/fp/nthArg.js +5 -0
- package/node_modules/lodash/fp/number.js +2 -0
- package/node_modules/lodash/fp/object.js +2 -0
- package/node_modules/lodash/fp/omit.js +5 -0
- package/node_modules/lodash/fp/omitAll.js +1 -0
- package/node_modules/lodash/fp/omitBy.js +5 -0
- package/node_modules/lodash/fp/once.js +5 -0
- package/node_modules/lodash/fp/orderBy.js +5 -0
- package/node_modules/lodash/fp/over.js +5 -0
- package/node_modules/lodash/fp/overArgs.js +5 -0
- package/node_modules/lodash/fp/overEvery.js +5 -0
- package/node_modules/lodash/fp/overSome.js +5 -0
- package/node_modules/lodash/fp/pad.js +5 -0
- package/node_modules/lodash/fp/padChars.js +5 -0
- package/node_modules/lodash/fp/padCharsEnd.js +5 -0
- package/node_modules/lodash/fp/padCharsStart.js +5 -0
- package/node_modules/lodash/fp/padEnd.js +5 -0
- package/node_modules/lodash/fp/padStart.js +5 -0
- package/node_modules/lodash/fp/parseInt.js +5 -0
- package/node_modules/lodash/fp/partial.js +5 -0
- package/node_modules/lodash/fp/partialRight.js +5 -0
- package/node_modules/lodash/fp/partition.js +5 -0
- package/node_modules/lodash/fp/path.js +1 -0
- package/node_modules/lodash/fp/pathEq.js +1 -0
- package/node_modules/lodash/fp/pathOr.js +1 -0
- package/node_modules/lodash/fp/paths.js +1 -0
- package/node_modules/lodash/fp/pick.js +5 -0
- package/node_modules/lodash/fp/pickAll.js +1 -0
- package/node_modules/lodash/fp/pickBy.js +5 -0
- package/node_modules/lodash/fp/pipe.js +1 -0
- package/node_modules/lodash/fp/placeholder.js +6 -0
- package/node_modules/lodash/fp/plant.js +5 -0
- package/node_modules/lodash/fp/pluck.js +1 -0
- package/node_modules/lodash/fp/prop.js +1 -0
- package/node_modules/lodash/fp/propEq.js +1 -0
- package/node_modules/lodash/fp/propOr.js +1 -0
- package/node_modules/lodash/fp/property.js +1 -0
- package/node_modules/lodash/fp/propertyOf.js +5 -0
- package/node_modules/lodash/fp/props.js +1 -0
- package/node_modules/lodash/fp/pull.js +5 -0
- package/node_modules/lodash/fp/pullAll.js +5 -0
- package/node_modules/lodash/fp/pullAllBy.js +5 -0
- package/node_modules/lodash/fp/pullAllWith.js +5 -0
- package/node_modules/lodash/fp/pullAt.js +5 -0
- package/node_modules/lodash/fp/random.js +5 -0
- package/node_modules/lodash/fp/range.js +5 -0
- package/node_modules/lodash/fp/rangeRight.js +5 -0
- package/node_modules/lodash/fp/rangeStep.js +5 -0
- package/node_modules/lodash/fp/rangeStepRight.js +5 -0
- package/node_modules/lodash/fp/rearg.js +5 -0
- package/node_modules/lodash/fp/reduce.js +5 -0
- package/node_modules/lodash/fp/reduceRight.js +5 -0
- package/node_modules/lodash/fp/reject.js +5 -0
- package/node_modules/lodash/fp/remove.js +5 -0
- package/node_modules/lodash/fp/repeat.js +5 -0
- package/node_modules/lodash/fp/replace.js +5 -0
- package/node_modules/lodash/fp/rest.js +5 -0
- package/node_modules/lodash/fp/restFrom.js +5 -0
- package/node_modules/lodash/fp/result.js +5 -0
- package/node_modules/lodash/fp/reverse.js +5 -0
- package/node_modules/lodash/fp/round.js +5 -0
- package/node_modules/lodash/fp/sample.js +5 -0
- package/node_modules/lodash/fp/sampleSize.js +5 -0
- package/node_modules/lodash/fp/seq.js +2 -0
- package/node_modules/lodash/fp/set.js +5 -0
- package/node_modules/lodash/fp/setWith.js +5 -0
- package/node_modules/lodash/fp/shuffle.js +5 -0
- package/node_modules/lodash/fp/size.js +5 -0
- package/node_modules/lodash/fp/slice.js +5 -0
- package/node_modules/lodash/fp/snakeCase.js +5 -0
- package/node_modules/lodash/fp/some.js +5 -0
- package/node_modules/lodash/fp/sortBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndex.js +5 -0
- package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedUniq.js +5 -0
- package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
- package/node_modules/lodash/fp/split.js +5 -0
- package/node_modules/lodash/fp/spread.js +5 -0
- package/node_modules/lodash/fp/spreadFrom.js +5 -0
- package/node_modules/lodash/fp/startCase.js +5 -0
- package/node_modules/lodash/fp/startsWith.js +5 -0
- package/node_modules/lodash/fp/string.js +2 -0
- package/node_modules/lodash/fp/stubArray.js +5 -0
- package/node_modules/lodash/fp/stubFalse.js +5 -0
- package/node_modules/lodash/fp/stubObject.js +5 -0
- package/node_modules/lodash/fp/stubString.js +5 -0
- package/node_modules/lodash/fp/stubTrue.js +5 -0
- package/node_modules/lodash/fp/subtract.js +5 -0
- package/node_modules/lodash/fp/sum.js +5 -0
- package/node_modules/lodash/fp/sumBy.js +5 -0
- package/node_modules/lodash/fp/symmetricDifference.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
- package/node_modules/lodash/fp/tail.js +5 -0
- package/node_modules/lodash/fp/take.js +5 -0
- package/node_modules/lodash/fp/takeLast.js +1 -0
- package/node_modules/lodash/fp/takeLastWhile.js +1 -0
- package/node_modules/lodash/fp/takeRight.js +5 -0
- package/node_modules/lodash/fp/takeRightWhile.js +5 -0
- package/node_modules/lodash/fp/takeWhile.js +5 -0
- package/node_modules/lodash/fp/tap.js +5 -0
- package/node_modules/lodash/fp/template.js +5 -0
- package/node_modules/lodash/fp/templateSettings.js +5 -0
- package/node_modules/lodash/fp/throttle.js +5 -0
- package/node_modules/lodash/fp/thru.js +5 -0
- package/node_modules/lodash/fp/times.js +5 -0
- package/node_modules/lodash/fp/toArray.js +5 -0
- package/node_modules/lodash/fp/toFinite.js +5 -0
- package/node_modules/lodash/fp/toInteger.js +5 -0
- package/node_modules/lodash/fp/toIterator.js +5 -0
- package/node_modules/lodash/fp/toJSON.js +5 -0
- package/node_modules/lodash/fp/toLength.js +5 -0
- package/node_modules/lodash/fp/toLower.js +5 -0
- package/node_modules/lodash/fp/toNumber.js +5 -0
- package/node_modules/lodash/fp/toPairs.js +5 -0
- package/node_modules/lodash/fp/toPairsIn.js +5 -0
- package/node_modules/lodash/fp/toPath.js +5 -0
- package/node_modules/lodash/fp/toPlainObject.js +5 -0
- package/node_modules/lodash/fp/toSafeInteger.js +5 -0
- package/node_modules/lodash/fp/toString.js +5 -0
- package/node_modules/lodash/fp/toUpper.js +5 -0
- package/node_modules/lodash/fp/transform.js +5 -0
- package/node_modules/lodash/fp/trim.js +5 -0
- package/node_modules/lodash/fp/trimChars.js +5 -0
- package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
- package/node_modules/lodash/fp/trimCharsStart.js +5 -0
- package/node_modules/lodash/fp/trimEnd.js +5 -0
- package/node_modules/lodash/fp/trimStart.js +5 -0
- package/node_modules/lodash/fp/truncate.js +5 -0
- package/node_modules/lodash/fp/unapply.js +1 -0
- package/node_modules/lodash/fp/unary.js +5 -0
- package/node_modules/lodash/fp/unescape.js +5 -0
- package/node_modules/lodash/fp/union.js +5 -0
- package/node_modules/lodash/fp/unionBy.js +5 -0
- package/node_modules/lodash/fp/unionWith.js +5 -0
- package/node_modules/lodash/fp/uniq.js +5 -0
- package/node_modules/lodash/fp/uniqBy.js +5 -0
- package/node_modules/lodash/fp/uniqWith.js +5 -0
- package/node_modules/lodash/fp/uniqueId.js +5 -0
- package/node_modules/lodash/fp/unnest.js +1 -0
- package/node_modules/lodash/fp/unset.js +5 -0
- package/node_modules/lodash/fp/unzip.js +5 -0
- package/node_modules/lodash/fp/unzipWith.js +5 -0
- package/node_modules/lodash/fp/update.js +5 -0
- package/node_modules/lodash/fp/updateWith.js +5 -0
- package/node_modules/lodash/fp/upperCase.js +5 -0
- package/node_modules/lodash/fp/upperFirst.js +5 -0
- package/node_modules/lodash/fp/useWith.js +1 -0
- package/node_modules/lodash/fp/util.js +2 -0
- package/node_modules/lodash/fp/value.js +5 -0
- package/node_modules/lodash/fp/valueOf.js +5 -0
- package/node_modules/lodash/fp/values.js +5 -0
- package/node_modules/lodash/fp/valuesIn.js +5 -0
- package/node_modules/lodash/fp/where.js +1 -0
- package/node_modules/lodash/fp/whereEq.js +1 -0
- package/node_modules/lodash/fp/without.js +5 -0
- package/node_modules/lodash/fp/words.js +5 -0
- package/node_modules/lodash/fp/wrap.js +5 -0
- package/node_modules/lodash/fp/wrapperAt.js +5 -0
- package/node_modules/lodash/fp/wrapperChain.js +5 -0
- package/node_modules/lodash/fp/wrapperLodash.js +5 -0
- package/node_modules/lodash/fp/wrapperReverse.js +5 -0
- package/node_modules/lodash/fp/wrapperValue.js +5 -0
- package/node_modules/lodash/fp/xor.js +5 -0
- package/node_modules/lodash/fp/xorBy.js +5 -0
- package/node_modules/lodash/fp/xorWith.js +5 -0
- package/node_modules/lodash/fp/zip.js +5 -0
- package/node_modules/lodash/fp/zipAll.js +5 -0
- package/node_modules/lodash/fp/zipObj.js +1 -0
- package/node_modules/lodash/fp/zipObject.js +5 -0
- package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
- package/node_modules/lodash/fp/zipWith.js +5 -0
- package/node_modules/lodash/fp.js +2 -0
- package/node_modules/lodash/fromPairs.js +28 -0
- package/node_modules/lodash/function.js +25 -0
- package/node_modules/lodash/functions.js +31 -0
- package/node_modules/lodash/functionsIn.js +31 -0
- package/node_modules/lodash/get.js +33 -0
- package/node_modules/lodash/groupBy.js +41 -0
- package/node_modules/lodash/gt.js +29 -0
- package/node_modules/lodash/gte.js +30 -0
- package/node_modules/lodash/has.js +35 -0
- package/node_modules/lodash/hasIn.js +34 -0
- package/node_modules/lodash/head.js +23 -0
- package/node_modules/lodash/identity.js +21 -0
- package/node_modules/lodash/inRange.js +55 -0
- package/node_modules/lodash/includes.js +53 -0
- package/node_modules/lodash/index.js +1 -0
- package/node_modules/lodash/indexOf.js +42 -0
- package/node_modules/lodash/initial.js +22 -0
- package/node_modules/lodash/intersection.js +30 -0
- package/node_modules/lodash/intersectionBy.js +45 -0
- package/node_modules/lodash/intersectionWith.js +41 -0
- package/node_modules/lodash/invert.js +42 -0
- package/node_modules/lodash/invertBy.js +56 -0
- package/node_modules/lodash/invoke.js +24 -0
- package/node_modules/lodash/invokeMap.js +41 -0
- package/node_modules/lodash/isArguments.js +36 -0
- package/node_modules/lodash/isArray.js +26 -0
- package/node_modules/lodash/isArrayBuffer.js +27 -0
- package/node_modules/lodash/isArrayLike.js +33 -0
- package/node_modules/lodash/isArrayLikeObject.js +33 -0
- package/node_modules/lodash/isBoolean.js +29 -0
- package/node_modules/lodash/isBuffer.js +38 -0
- package/node_modules/lodash/isDate.js +27 -0
- package/node_modules/lodash/isElement.js +25 -0
- package/node_modules/lodash/isEmpty.js +77 -0
- package/node_modules/lodash/isEqual.js +35 -0
- package/node_modules/lodash/isEqualWith.js +41 -0
- package/node_modules/lodash/isError.js +36 -0
- package/node_modules/lodash/isFinite.js +36 -0
- package/node_modules/lodash/isFunction.js +37 -0
- package/node_modules/lodash/isInteger.js +33 -0
- package/node_modules/lodash/isLength.js +35 -0
- package/node_modules/lodash/isMap.js +27 -0
- package/node_modules/lodash/isMatch.js +36 -0
- package/node_modules/lodash/isMatchWith.js +41 -0
- package/node_modules/lodash/isNaN.js +38 -0
- package/node_modules/lodash/isNative.js +40 -0
- package/node_modules/lodash/isNil.js +25 -0
- package/node_modules/lodash/isNull.js +22 -0
- package/node_modules/lodash/isNumber.js +38 -0
- package/node_modules/lodash/isObject.js +31 -0
- package/node_modules/lodash/isObjectLike.js +29 -0
- package/node_modules/lodash/isPlainObject.js +62 -0
- package/node_modules/lodash/isRegExp.js +27 -0
- package/node_modules/lodash/isSafeInteger.js +37 -0
- package/node_modules/lodash/isSet.js +27 -0
- package/node_modules/lodash/isString.js +30 -0
- package/node_modules/lodash/isSymbol.js +29 -0
- package/node_modules/lodash/isTypedArray.js +27 -0
- package/node_modules/lodash/isUndefined.js +22 -0
- package/node_modules/lodash/isWeakMap.js +28 -0
- package/node_modules/lodash/isWeakSet.js +28 -0
- package/node_modules/lodash/iteratee.js +53 -0
- package/node_modules/lodash/join.js +26 -0
- package/node_modules/lodash/kebabCase.js +28 -0
- package/node_modules/lodash/keyBy.js +36 -0
- package/node_modules/lodash/keys.js +37 -0
- package/node_modules/lodash/keysIn.js +32 -0
- package/node_modules/lodash/lang.js +58 -0
- package/node_modules/lodash/last.js +20 -0
- package/node_modules/lodash/lastIndexOf.js +46 -0
- package/node_modules/lodash/lodash.js +17248 -0
- package/node_modules/lodash/lodash.min.js +140 -0
- package/node_modules/lodash/lowerCase.js +27 -0
- package/node_modules/lodash/lowerFirst.js +22 -0
- package/node_modules/lodash/lt.js +29 -0
- package/node_modules/lodash/lte.js +30 -0
- package/node_modules/lodash/map.js +53 -0
- package/node_modules/lodash/mapKeys.js +36 -0
- package/node_modules/lodash/mapValues.js +43 -0
- package/node_modules/lodash/matches.js +46 -0
- package/node_modules/lodash/matchesProperty.js +44 -0
- package/node_modules/lodash/math.js +17 -0
- package/node_modules/lodash/max.js +29 -0
- package/node_modules/lodash/maxBy.js +34 -0
- package/node_modules/lodash/mean.js +22 -0
- package/node_modules/lodash/meanBy.js +31 -0
- package/node_modules/lodash/memoize.js +73 -0
- package/node_modules/lodash/merge.js +39 -0
- package/node_modules/lodash/mergeWith.js +39 -0
- package/node_modules/lodash/method.js +34 -0
- package/node_modules/lodash/methodOf.js +33 -0
- package/node_modules/lodash/min.js +29 -0
- package/node_modules/lodash/minBy.js +34 -0
- package/node_modules/lodash/mixin.js +74 -0
- package/node_modules/lodash/multiply.js +22 -0
- package/node_modules/lodash/negate.js +40 -0
- package/node_modules/lodash/next.js +35 -0
- package/node_modules/lodash/noop.js +17 -0
- package/node_modules/lodash/now.js +23 -0
- package/node_modules/lodash/nth.js +29 -0
- package/node_modules/lodash/nthArg.js +32 -0
- package/node_modules/lodash/number.js +5 -0
- package/node_modules/lodash/object.js +49 -0
- package/node_modules/lodash/omit.js +57 -0
- package/node_modules/lodash/omitBy.js +29 -0
- package/node_modules/lodash/once.js +25 -0
- package/node_modules/lodash/orderBy.js +47 -0
- package/node_modules/lodash/over.js +24 -0
- package/node_modules/lodash/overArgs.js +61 -0
- package/node_modules/lodash/overEvery.js +34 -0
- package/node_modules/lodash/overSome.js +37 -0
- package/node_modules/lodash/package.json +17 -0
- package/node_modules/lodash/pad.js +49 -0
- package/node_modules/lodash/padEnd.js +39 -0
- package/node_modules/lodash/padStart.js +39 -0
- package/node_modules/lodash/parseInt.js +43 -0
- package/node_modules/lodash/partial.js +50 -0
- package/node_modules/lodash/partialRight.js +49 -0
- package/node_modules/lodash/partition.js +43 -0
- package/node_modules/lodash/pick.js +25 -0
- package/node_modules/lodash/pickBy.js +37 -0
- package/node_modules/lodash/plant.js +48 -0
- package/node_modules/lodash/property.js +32 -0
- package/node_modules/lodash/propertyOf.js +30 -0
- package/node_modules/lodash/pull.js +29 -0
- package/node_modules/lodash/pullAll.js +29 -0
- package/node_modules/lodash/pullAllBy.js +33 -0
- package/node_modules/lodash/pullAllWith.js +32 -0
- package/node_modules/lodash/pullAt.js +43 -0
- package/node_modules/lodash/random.js +82 -0
- package/node_modules/lodash/range.js +46 -0
- package/node_modules/lodash/rangeRight.js +41 -0
- package/node_modules/lodash/rearg.js +33 -0
- package/node_modules/lodash/reduce.js +51 -0
- package/node_modules/lodash/reduceRight.js +36 -0
- package/node_modules/lodash/reject.js +46 -0
- package/node_modules/lodash/remove.js +53 -0
- package/node_modules/lodash/repeat.js +37 -0
- package/node_modules/lodash/replace.js +29 -0
- package/node_modules/lodash/rest.js +40 -0
- package/node_modules/lodash/result.js +56 -0
- package/node_modules/lodash/reverse.js +34 -0
- package/node_modules/lodash/round.js +26 -0
- package/node_modules/lodash/sample.js +24 -0
- package/node_modules/lodash/sampleSize.js +37 -0
- package/node_modules/lodash/seq.js +16 -0
- package/node_modules/lodash/set.js +35 -0
- package/node_modules/lodash/setWith.js +32 -0
- package/node_modules/lodash/shuffle.js +25 -0
- package/node_modules/lodash/size.js +46 -0
- package/node_modules/lodash/slice.js +37 -0
- package/node_modules/lodash/snakeCase.js +28 -0
- package/node_modules/lodash/some.js +51 -0
- package/node_modules/lodash/sortBy.js +48 -0
- package/node_modules/lodash/sortedIndex.js +24 -0
- package/node_modules/lodash/sortedIndexBy.js +33 -0
- package/node_modules/lodash/sortedIndexOf.js +31 -0
- package/node_modules/lodash/sortedLastIndex.js +25 -0
- package/node_modules/lodash/sortedLastIndexBy.js +33 -0
- package/node_modules/lodash/sortedLastIndexOf.js +31 -0
- package/node_modules/lodash/sortedUniq.js +24 -0
- package/node_modules/lodash/sortedUniqBy.js +26 -0
- package/node_modules/lodash/split.js +52 -0
- package/node_modules/lodash/spread.js +63 -0
- package/node_modules/lodash/startCase.js +29 -0
- package/node_modules/lodash/startsWith.js +39 -0
- package/node_modules/lodash/string.js +33 -0
- package/node_modules/lodash/stubArray.js +23 -0
- package/node_modules/lodash/stubFalse.js +18 -0
- package/node_modules/lodash/stubObject.js +23 -0
- package/node_modules/lodash/stubString.js +18 -0
- package/node_modules/lodash/stubTrue.js +18 -0
- package/node_modules/lodash/subtract.js +22 -0
- package/node_modules/lodash/sum.js +24 -0
- package/node_modules/lodash/sumBy.js +33 -0
- package/node_modules/lodash/tail.js +22 -0
- package/node_modules/lodash/take.js +37 -0
- package/node_modules/lodash/takeRight.js +39 -0
- package/node_modules/lodash/takeRightWhile.js +45 -0
- package/node_modules/lodash/takeWhile.js +45 -0
- package/node_modules/lodash/tap.js +29 -0
- package/node_modules/lodash/template.js +272 -0
- package/node_modules/lodash/templateSettings.js +67 -0
- package/node_modules/lodash/throttle.js +69 -0
- package/node_modules/lodash/thru.js +28 -0
- package/node_modules/lodash/times.js +51 -0
- package/node_modules/lodash/toArray.js +58 -0
- package/node_modules/lodash/toFinite.js +42 -0
- package/node_modules/lodash/toInteger.js +36 -0
- package/node_modules/lodash/toIterator.js +23 -0
- package/node_modules/lodash/toJSON.js +1 -0
- package/node_modules/lodash/toLength.js +38 -0
- package/node_modules/lodash/toLower.js +28 -0
- package/node_modules/lodash/toNumber.js +64 -0
- package/node_modules/lodash/toPairs.js +30 -0
- package/node_modules/lodash/toPairsIn.js +30 -0
- package/node_modules/lodash/toPath.js +33 -0
- package/node_modules/lodash/toPlainObject.js +32 -0
- package/node_modules/lodash/toSafeInteger.js +37 -0
- package/node_modules/lodash/toString.js +28 -0
- package/node_modules/lodash/toUpper.js +28 -0
- package/node_modules/lodash/transform.js +65 -0
- package/node_modules/lodash/trim.js +47 -0
- package/node_modules/lodash/trimEnd.js +41 -0
- package/node_modules/lodash/trimStart.js +43 -0
- package/node_modules/lodash/truncate.js +111 -0
- package/node_modules/lodash/unary.js +22 -0
- package/node_modules/lodash/unescape.js +34 -0
- package/node_modules/lodash/union.js +26 -0
- package/node_modules/lodash/unionBy.js +39 -0
- package/node_modules/lodash/unionWith.js +34 -0
- package/node_modules/lodash/uniq.js +25 -0
- package/node_modules/lodash/uniqBy.js +31 -0
- package/node_modules/lodash/uniqWith.js +28 -0
- package/node_modules/lodash/uniqueId.js +28 -0
- package/node_modules/lodash/unset.js +34 -0
- package/node_modules/lodash/unzip.js +45 -0
- package/node_modules/lodash/unzipWith.js +39 -0
- package/node_modules/lodash/update.js +35 -0
- package/node_modules/lodash/updateWith.js +33 -0
- package/node_modules/lodash/upperCase.js +27 -0
- package/node_modules/lodash/upperFirst.js +22 -0
- package/node_modules/lodash/util.js +34 -0
- package/node_modules/lodash/value.js +1 -0
- package/node_modules/lodash/valueOf.js +1 -0
- package/node_modules/lodash/values.js +34 -0
- package/node_modules/lodash/valuesIn.js +32 -0
- package/node_modules/lodash/without.js +31 -0
- package/node_modules/lodash/words.js +35 -0
- package/node_modules/lodash/wrap.js +30 -0
- package/node_modules/lodash/wrapperAt.js +48 -0
- package/node_modules/lodash/wrapperChain.js +34 -0
- package/node_modules/lodash/wrapperLodash.js +147 -0
- package/node_modules/lodash/wrapperReverse.js +44 -0
- package/node_modules/lodash/wrapperValue.js +21 -0
- package/node_modules/lodash/xor.js +28 -0
- package/node_modules/lodash/xorBy.js +39 -0
- package/node_modules/lodash/xorWith.js +34 -0
- package/node_modules/lodash/zip.js +22 -0
- package/node_modules/lodash/zipObject.js +24 -0
- package/node_modules/lodash/zipObjectDeep.js +23 -0
- package/node_modules/lodash/zipWith.js +32 -0
- package/node_modules/loose-envify/LICENSE +21 -0
- package/node_modules/loose-envify/README.md +45 -0
- package/node_modules/loose-envify/cli.js +16 -0
- package/node_modules/loose-envify/custom.js +4 -0
- package/node_modules/loose-envify/index.js +3 -0
- package/node_modules/loose-envify/loose-envify.js +36 -0
- package/node_modules/loose-envify/package.json +36 -0
- package/node_modules/loose-envify/replace.js +65 -0
- package/node_modules/mimic-fn/index.d.ts +54 -0
- package/node_modules/mimic-fn/index.js +13 -0
- package/node_modules/mimic-fn/license +9 -0
- package/node_modules/mimic-fn/package.json +42 -0
- package/node_modules/mimic-fn/readme.md +69 -0
- package/node_modules/object-assign/index.js +90 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +42 -0
- package/node_modules/object-assign/readme.md +61 -0
- package/node_modules/onetime/index.d.ts +64 -0
- package/node_modules/onetime/index.js +44 -0
- package/node_modules/onetime/license +9 -0
- package/node_modules/onetime/package.json +43 -0
- package/node_modules/onetime/readme.md +94 -0
- package/node_modules/patch-console/build/index.d.ts +4 -0
- package/node_modules/patch-console/build/index.js +42 -0
- package/node_modules/patch-console/build/index.js.map +1 -0
- package/node_modules/patch-console/package.json +56 -0
- package/node_modules/patch-console/readme.md +62 -0
- package/node_modules/react-devtools-core/README.md +131 -0
- package/node_modules/react-devtools-core/backend.js +1 -0
- package/node_modules/react-devtools-core/dist/backend.js +16888 -0
- package/node_modules/react-devtools-core/dist/backend.js.map +1 -0
- package/node_modules/react-devtools-core/dist/importFile.worker.worker.js +2 -0
- package/node_modules/react-devtools-core/dist/importFile.worker.worker.js.map +1 -0
- package/node_modules/react-devtools-core/dist/parseHookNames.chunk.js +2 -0
- package/node_modules/react-devtools-core/dist/parseHookNames.chunk.js.map +1 -0
- package/node_modules/react-devtools-core/dist/parseSourceAndMetadata.worker.worker.js +2 -0
- package/node_modules/react-devtools-core/dist/parseSourceAndMetadata.worker.worker.js.map +1 -0
- package/node_modules/react-devtools-core/dist/standalone.js +3 -0
- package/node_modules/react-devtools-core/dist/standalone.js.LICENSE.txt +41 -0
- package/node_modules/react-devtools-core/dist/standalone.js.map +1 -0
- package/node_modules/react-devtools-core/package.json +38 -0
- package/node_modules/react-devtools-core/standalone.js +1 -0
- package/node_modules/restore-cursor/index.d.ts +13 -0
- package/node_modules/restore-cursor/index.js +9 -0
- package/node_modules/restore-cursor/license +9 -0
- package/node_modules/restore-cursor/package.json +52 -0
- package/node_modules/restore-cursor/readme.md +26 -0
- package/node_modules/scheduler/LICENSE +21 -0
- package/node_modules/scheduler/README.md +9 -0
- package/node_modules/scheduler/build-info.json +8 -0
- package/node_modules/scheduler/cjs/scheduler-tracing.development.js +347 -0
- package/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +9 -0
- package/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +16 -0
- package/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +665 -0
- package/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +19 -0
- package/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +206 -0
- package/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +13 -0
- package/node_modules/scheduler/cjs/scheduler.development.js +646 -0
- package/node_modules/scheduler/cjs/scheduler.production.min.js +20 -0
- package/node_modules/scheduler/index.js +7 -0
- package/node_modules/scheduler/package.json +40 -0
- package/node_modules/scheduler/tracing-profiling.js +7 -0
- package/node_modules/scheduler/tracing.js +7 -0
- package/node_modules/scheduler/umd/scheduler-tracing.development.js +80 -0
- package/node_modules/scheduler/umd/scheduler-tracing.production.min.js +80 -0
- package/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +80 -0
- package/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +664 -0
- package/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +18 -0
- package/node_modules/scheduler/umd/scheduler.development.js +152 -0
- package/node_modules/scheduler/umd/scheduler.production.min.js +146 -0
- package/node_modules/scheduler/umd/scheduler.profiling.min.js +146 -0
- package/node_modules/scheduler/unstable_mock.js +7 -0
- package/node_modules/scheduler/unstable_post_task.js +7 -0
- package/node_modules/shell-quote/.eslintrc +30 -0
- package/node_modules/shell-quote/.github/FUNDING.yml +12 -0
- package/node_modules/shell-quote/.nycrc +14 -0
- package/node_modules/shell-quote/LICENSE +24 -0
- package/node_modules/shell-quote/README.md +161 -0
- package/node_modules/shell-quote/index.js +4 -0
- package/node_modules/shell-quote/package.json +72 -0
- package/node_modules/shell-quote/parse.js +226 -0
- package/node_modules/shell-quote/print.py +3 -0
- package/node_modules/shell-quote/quote.js +19 -0
- package/node_modules/shell-quote/security.md +11 -0
- package/node_modules/shell-quote/test/comment.js +16 -0
- package/node_modules/shell-quote/test/env.js +52 -0
- package/node_modules/shell-quote/test/env_fn.js +21 -0
- package/node_modules/shell-quote/test/op.js +102 -0
- package/node_modules/shell-quote/test/parse.js +44 -0
- package/node_modules/shell-quote/test/quote.js +60 -0
- package/node_modules/shell-quote/test/set.js +31 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +39 -0
- package/node_modules/signal-exit/index.js +202 -0
- package/node_modules/signal-exit/package.json +38 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/slice-ansi/index.js +97 -0
- package/node_modules/slice-ansi/license +9 -0
- package/node_modules/slice-ansi/package.json +51 -0
- package/node_modules/slice-ansi/readme.md +72 -0
- package/node_modules/stack-utils/LICENSE.md +21 -0
- package/node_modules/stack-utils/index.js +344 -0
- package/node_modules/stack-utils/package.json +39 -0
- package/node_modules/stack-utils/readme.md +143 -0
- package/node_modules/string-width/index.d.ts +29 -0
- package/node_modules/string-width/index.js +47 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +56 -0
- package/node_modules/string-width/readme.md +50 -0
- package/node_modules/strip-ansi/index.d.ts +17 -0
- package/node_modules/strip-ansi/index.js +4 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +54 -0
- package/node_modules/strip-ansi/readme.md +46 -0
- package/node_modules/supports-color/browser.js +5 -0
- package/node_modules/supports-color/index.js +135 -0
- package/node_modules/supports-color/license +9 -0
- package/node_modules/supports-color/package.json +53 -0
- package/node_modules/supports-color/readme.md +76 -0
- package/node_modules/type-fest/index.d.ts +27 -0
- package/node_modules/type-fest/license +9 -0
- package/node_modules/type-fest/package.json +49 -0
- package/node_modules/type-fest/readme.md +640 -0
- package/node_modules/type-fest/source/async-return-type.d.ts +23 -0
- package/node_modules/type-fest/source/basic.d.ts +67 -0
- package/node_modules/type-fest/source/conditional-except.d.ts +43 -0
- package/node_modules/type-fest/source/conditional-keys.d.ts +43 -0
- package/node_modules/type-fest/source/conditional-pick.d.ts +42 -0
- package/node_modules/type-fest/source/except.d.ts +22 -0
- package/node_modules/type-fest/source/literal-union.d.ts +33 -0
- package/node_modules/type-fest/source/merge-exclusive.d.ts +39 -0
- package/node_modules/type-fest/source/merge.d.ts +22 -0
- package/node_modules/type-fest/source/mutable.d.ts +22 -0
- package/node_modules/type-fest/source/opaque.d.ts +65 -0
- package/node_modules/type-fest/source/package-json.d.ts +585 -0
- package/node_modules/type-fest/source/partial-deep.d.ts +72 -0
- package/node_modules/type-fest/source/promisable.d.ts +23 -0
- package/node_modules/type-fest/source/promise-value.d.ts +20 -0
- package/node_modules/type-fest/source/readonly-deep.d.ts +59 -0
- package/node_modules/type-fest/source/require-at-least-one.d.ts +32 -0
- package/node_modules/type-fest/source/require-exactly-one.d.ts +35 -0
- package/node_modules/type-fest/source/set-optional.d.ts +34 -0
- package/node_modules/type-fest/source/set-required.d.ts +34 -0
- package/node_modules/type-fest/source/tsconfig-json.d.ts +872 -0
- package/node_modules/type-fest/source/union-to-intersection.d.ts +58 -0
- package/node_modules/widest-line/index.d.ts +21 -0
- package/node_modules/widest-line/index.js +16 -0
- package/node_modules/widest-line/license +9 -0
- package/node_modules/widest-line/package.json +54 -0
- package/node_modules/widest-line/readme.md +34 -0
- package/node_modules/wrap-ansi/index.js +186 -0
- package/node_modules/wrap-ansi/license +9 -0
- package/node_modules/wrap-ansi/package.json +61 -0
- package/node_modules/wrap-ansi/readme.md +97 -0
- package/node_modules/ws/LICENSE +21 -0
- package/node_modules/ws/README.md +495 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +10 -0
- package/node_modules/ws/lib/buffer-util.js +129 -0
- package/node_modules/ws/lib/constants.js +10 -0
- package/node_modules/ws/lib/event-target.js +184 -0
- package/node_modules/ws/lib/extension.js +223 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +518 -0
- package/node_modules/ws/lib/receiver.js +607 -0
- package/node_modules/ws/lib/sender.js +409 -0
- package/node_modules/ws/lib/stream.js +180 -0
- package/node_modules/ws/lib/validation.js +104 -0
- package/node_modules/ws/lib/websocket-server.js +449 -0
- package/node_modules/ws/lib/websocket.js +1197 -0
- package/node_modules/ws/package.json +56 -0
- package/node_modules/yoga-layout-prebuilt/index.d.ts +3 -0
- package/node_modules/yoga-layout-prebuilt/license +9 -0
- package/node_modules/yoga-layout-prebuilt/package.json +42 -0
- package/node_modules/yoga-layout-prebuilt/readme.md +23 -0
- package/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js +9820 -0
- package/node_modules/yoga-layout-prebuilt/yoga-layout/dist/YGEnums.js +110 -0
- package/node_modules/yoga-layout-prebuilt/yoga-layout/dist/YGEnums.js.flow +175 -0
- package/node_modules/yoga-layout-prebuilt/yoga-layout/dist/entry-browser.js +40 -0
- package/node_modules/yoga-layout-prebuilt/yoga-layout/dist/entry-browser.js.flow +56 -0
- package/node_modules/yoga-layout-prebuilt/yoga-layout/dist/entry-common.js +247 -0
- package/node_modules/yoga-layout-prebuilt/yoga-layout/dist/entry-common.js.flow +360 -0
- package/package.json +8 -4
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const widest_line_1 = __importDefault(require("widest-line"));
|
|
7
|
+
const cache = {};
|
|
8
|
+
exports.default = (text) => {
|
|
9
|
+
if (text.length === 0) {
|
|
10
|
+
return {
|
|
11
|
+
width: 0,
|
|
12
|
+
height: 0
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
if (cache[text]) {
|
|
16
|
+
return cache[text];
|
|
17
|
+
}
|
|
18
|
+
const width = widest_line_1.default(text);
|
|
19
|
+
const height = text.split('\n').length;
|
|
20
|
+
cache[text] = { width, height };
|
|
21
|
+
return { width, height };
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=measure-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measure-text.js","sourceRoot":"","sources":["../src/measure-text.ts"],"names":[],"mappings":";;;;;AAAA,8DAAqC;AAErC,MAAM,KAAK,GAA2B,EAAE,CAAC;AAOzC,kBAAe,CAAC,IAAY,EAAU,EAAE;IACvC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,OAAO;YACN,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;SACT,CAAC;KACF;IAED,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE;QAChB,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;KACnB;IAED,MAAM,KAAK,GAAG,qBAAU,CAAC,IAAI,CAAC,CAAC;IAC/B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;IACvC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC;IAE9B,OAAO,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC;AACxB,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OutputTransformer } from './render-node-to-output';
|
|
2
|
+
/**
|
|
3
|
+
* "Virtual" output class
|
|
4
|
+
*
|
|
5
|
+
* Handles the positioning and saving of the output of each node in the tree.
|
|
6
|
+
* Also responsible for applying transformations to each character of the output.
|
|
7
|
+
*
|
|
8
|
+
* Used to generate the final output of all nodes before writing it to actual output stream (e.g. stdout)
|
|
9
|
+
*/
|
|
10
|
+
interface Options {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
}
|
|
14
|
+
export default class Output {
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
private readonly writes;
|
|
18
|
+
constructor(options: Options);
|
|
19
|
+
write(x: number, y: number, text: string, options: {
|
|
20
|
+
transformers: OutputTransformer[];
|
|
21
|
+
}): void;
|
|
22
|
+
get(): {
|
|
23
|
+
output: string;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const slice_ansi_1 = __importDefault(require("slice-ansi"));
|
|
7
|
+
const string_width_1 = __importDefault(require("string-width"));
|
|
8
|
+
class Output {
|
|
9
|
+
constructor(options) {
|
|
10
|
+
// Initialize output array with a specific set of rows, so that margin/padding at the bottom is preserved
|
|
11
|
+
this.writes = [];
|
|
12
|
+
const { width, height } = options;
|
|
13
|
+
this.width = width;
|
|
14
|
+
this.height = height;
|
|
15
|
+
}
|
|
16
|
+
write(x, y, text, options) {
|
|
17
|
+
const { transformers } = options;
|
|
18
|
+
if (!text) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
this.writes.push({ x, y, text, transformers });
|
|
22
|
+
}
|
|
23
|
+
get() {
|
|
24
|
+
const output = [];
|
|
25
|
+
for (let y = 0; y < this.height; y++) {
|
|
26
|
+
output.push(' '.repeat(this.width));
|
|
27
|
+
}
|
|
28
|
+
for (const write of this.writes) {
|
|
29
|
+
const { x, y, text, transformers } = write;
|
|
30
|
+
const lines = text.split('\n');
|
|
31
|
+
let offsetY = 0;
|
|
32
|
+
for (let line of lines) {
|
|
33
|
+
const currentLine = output[y + offsetY];
|
|
34
|
+
// Line can be missing if `text` is taller than height of pre-initialized `this.output`
|
|
35
|
+
if (!currentLine) {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
const width = string_width_1.default(line);
|
|
39
|
+
for (const transformer of transformers) {
|
|
40
|
+
line = transformer(line);
|
|
41
|
+
}
|
|
42
|
+
output[y + offsetY] =
|
|
43
|
+
slice_ansi_1.default(currentLine, 0, x) +
|
|
44
|
+
line +
|
|
45
|
+
slice_ansi_1.default(currentLine, x + width);
|
|
46
|
+
offsetY++;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
// eslint-disable-next-line unicorn/prefer-trim-start-end
|
|
50
|
+
const generatedOutput = output.map(line => line.trimRight()).join('\n');
|
|
51
|
+
return {
|
|
52
|
+
output: generatedOutput,
|
|
53
|
+
height: output.length
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.default = Output;
|
|
58
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":";;;;;AAAA,4DAAmC;AACnC,gEAAuC;AAwBvC,MAAqB,MAAM;IAO1B,YAAY,OAAgB;QAH5B,yGAAyG;QACxF,WAAM,GAAa,EAAE,CAAC;QAGtC,MAAM,EAAC,KAAK,EAAE,MAAM,EAAC,GAAG,OAAO,CAAC;QAEhC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IAED,KAAK,CACJ,CAAS,EACT,CAAS,EACT,IAAY,EACZ,OAA4C;QAE5C,MAAM,EAAC,YAAY,EAAC,GAAG,OAAO,CAAC;QAE/B,IAAI,CAAC,IAAI,EAAE;YACV,OAAO;SACP;QAED,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,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CAAC,IAAI,CAAC,CAAC;QAExE,OAAO;YACN,MAAM,EAAE,eAAe;YACvB,MAAM,EAAE,MAAM,CAAC,MAAM;SACrB,CAAC;IACH,CAAC;CACD;AAxED,yBAwEC"}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const scheduler_1 = require("scheduler");
|
|
7
|
+
const react_reconciler_1 = __importDefault(require("react-reconciler"));
|
|
8
|
+
const yoga_layout_prebuilt_1 = __importDefault(require("yoga-layout-prebuilt"));
|
|
9
|
+
const dom_1 = require("./dom");
|
|
10
|
+
// We need to conditionally perform devtools connection to avoid
|
|
11
|
+
// accidentally breaking other third-party code.
|
|
12
|
+
// See https://github.com/vadimdemedes/ink/issues/384
|
|
13
|
+
if (process.env.DEV === 'true') {
|
|
14
|
+
// eslint-disable-next-line import/no-unassigned-import
|
|
15
|
+
require('./devtools');
|
|
16
|
+
}
|
|
17
|
+
const cleanupYogaNode = (node) => {
|
|
18
|
+
node === null || node === void 0 ? void 0 : node.unsetMeasureFunc();
|
|
19
|
+
node === null || node === void 0 ? void 0 : node.freeRecursive();
|
|
20
|
+
};
|
|
21
|
+
exports.default = react_reconciler_1.default({
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
schedulePassiveEffects: scheduler_1.unstable_scheduleCallback,
|
|
24
|
+
cancelPassiveEffects: scheduler_1.unstable_cancelCallback,
|
|
25
|
+
now: Date.now,
|
|
26
|
+
getRootHostContext: () => ({
|
|
27
|
+
isInsideText: false
|
|
28
|
+
}),
|
|
29
|
+
prepareForCommit: () => null,
|
|
30
|
+
preparePortalMount: () => null,
|
|
31
|
+
clearContainer: () => false,
|
|
32
|
+
shouldDeprioritizeSubtree: () => false,
|
|
33
|
+
resetAfterCommit: rootNode => {
|
|
34
|
+
// Since renders are throttled at the instance level and <Static> component children
|
|
35
|
+
// are rendered only once and then get deleted, we need an escape hatch to
|
|
36
|
+
// trigger an immediate render to ensure <Static> children are written to output before they get erased
|
|
37
|
+
if (rootNode.isStaticDirty) {
|
|
38
|
+
rootNode.isStaticDirty = false;
|
|
39
|
+
if (typeof rootNode.onImmediateRender === 'function') {
|
|
40
|
+
rootNode.onImmediateRender();
|
|
41
|
+
}
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (typeof rootNode.onRender === 'function') {
|
|
45
|
+
rootNode.onRender();
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
getChildHostContext: (parentHostContext, type) => {
|
|
49
|
+
const previousIsInsideText = parentHostContext.isInsideText;
|
|
50
|
+
const isInsideText = type === 'ink-text' || type === 'ink-virtual-text';
|
|
51
|
+
if (previousIsInsideText === isInsideText) {
|
|
52
|
+
return parentHostContext;
|
|
53
|
+
}
|
|
54
|
+
return { isInsideText };
|
|
55
|
+
},
|
|
56
|
+
shouldSetTextContent: () => false,
|
|
57
|
+
createInstance: (originalType, newProps, _root, hostContext) => {
|
|
58
|
+
if (hostContext.isInsideText && originalType === 'ink-box') {
|
|
59
|
+
throw new Error(`<Box> can’t be nested inside <Text> component`);
|
|
60
|
+
}
|
|
61
|
+
const type = originalType === 'ink-text' && hostContext.isInsideText
|
|
62
|
+
? 'ink-virtual-text'
|
|
63
|
+
: originalType;
|
|
64
|
+
const node = dom_1.createNode(type);
|
|
65
|
+
for (const [key, value] of Object.entries(newProps)) {
|
|
66
|
+
if (key === 'children') {
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
else if (key === 'style') {
|
|
70
|
+
dom_1.setStyle(node, value);
|
|
71
|
+
}
|
|
72
|
+
else if (key === 'internal_transform') {
|
|
73
|
+
node.internal_transform = value;
|
|
74
|
+
}
|
|
75
|
+
else if (key === 'internal_static') {
|
|
76
|
+
node.internal_static = true;
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
dom_1.setAttribute(node, key, value);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return node;
|
|
83
|
+
},
|
|
84
|
+
createTextInstance: (text, _root, hostContext) => {
|
|
85
|
+
if (!hostContext.isInsideText) {
|
|
86
|
+
throw new Error(`Text string "${text}" must be rendered inside <Text> component`);
|
|
87
|
+
}
|
|
88
|
+
return dom_1.createTextNode(text);
|
|
89
|
+
},
|
|
90
|
+
resetTextContent: () => { },
|
|
91
|
+
hideTextInstance: node => {
|
|
92
|
+
dom_1.setTextNodeValue(node, '');
|
|
93
|
+
},
|
|
94
|
+
unhideTextInstance: (node, text) => {
|
|
95
|
+
dom_1.setTextNodeValue(node, text);
|
|
96
|
+
},
|
|
97
|
+
getPublicInstance: instance => instance,
|
|
98
|
+
hideInstance: node => {
|
|
99
|
+
var _a;
|
|
100
|
+
(_a = node.yogaNode) === null || _a === void 0 ? void 0 : _a.setDisplay(yoga_layout_prebuilt_1.default.DISPLAY_NONE);
|
|
101
|
+
},
|
|
102
|
+
unhideInstance: node => {
|
|
103
|
+
var _a;
|
|
104
|
+
(_a = node.yogaNode) === null || _a === void 0 ? void 0 : _a.setDisplay(yoga_layout_prebuilt_1.default.DISPLAY_FLEX);
|
|
105
|
+
},
|
|
106
|
+
appendInitialChild: dom_1.appendChildNode,
|
|
107
|
+
appendChild: dom_1.appendChildNode,
|
|
108
|
+
insertBefore: dom_1.insertBeforeNode,
|
|
109
|
+
finalizeInitialChildren: (node, _type, _props, rootNode) => {
|
|
110
|
+
if (node.internal_static) {
|
|
111
|
+
rootNode.isStaticDirty = true;
|
|
112
|
+
// Save reference to <Static> node to skip traversal of entire
|
|
113
|
+
// node tree to find it
|
|
114
|
+
rootNode.staticNode = node;
|
|
115
|
+
}
|
|
116
|
+
return false;
|
|
117
|
+
},
|
|
118
|
+
supportsMutation: true,
|
|
119
|
+
appendChildToContainer: dom_1.appendChildNode,
|
|
120
|
+
insertInContainerBefore: dom_1.insertBeforeNode,
|
|
121
|
+
removeChildFromContainer: (node, removeNode) => {
|
|
122
|
+
dom_1.removeChildNode(node, removeNode);
|
|
123
|
+
cleanupYogaNode(removeNode.yogaNode);
|
|
124
|
+
},
|
|
125
|
+
prepareUpdate: (node, _type, oldProps, newProps, rootNode) => {
|
|
126
|
+
if (node.internal_static) {
|
|
127
|
+
rootNode.isStaticDirty = true;
|
|
128
|
+
}
|
|
129
|
+
const updatePayload = {};
|
|
130
|
+
const keys = Object.keys(newProps);
|
|
131
|
+
for (const key of keys) {
|
|
132
|
+
if (newProps[key] !== oldProps[key]) {
|
|
133
|
+
const isStyle = key === 'style' &&
|
|
134
|
+
typeof newProps.style === 'object' &&
|
|
135
|
+
typeof oldProps.style === 'object';
|
|
136
|
+
if (isStyle) {
|
|
137
|
+
const newStyle = newProps.style;
|
|
138
|
+
const oldStyle = oldProps.style;
|
|
139
|
+
const styleKeys = Object.keys(newStyle);
|
|
140
|
+
for (const styleKey of styleKeys) {
|
|
141
|
+
// Always include `borderColor` and `borderStyle` to ensure border is rendered,
|
|
142
|
+
// otherwise resulting `updatePayload` may not contain them
|
|
143
|
+
// if they weren't changed during this update
|
|
144
|
+
if (styleKey === 'borderStyle' || styleKey === 'borderColor') {
|
|
145
|
+
if (typeof updatePayload.style !== 'object') {
|
|
146
|
+
// Linter didn't like `= {} as Style`
|
|
147
|
+
const style = {};
|
|
148
|
+
updatePayload.style = style;
|
|
149
|
+
}
|
|
150
|
+
updatePayload.style.borderStyle = newStyle.borderStyle;
|
|
151
|
+
updatePayload.style.borderColor = newStyle.borderColor;
|
|
152
|
+
}
|
|
153
|
+
if (newStyle[styleKey] !== oldStyle[styleKey]) {
|
|
154
|
+
if (typeof updatePayload.style !== 'object') {
|
|
155
|
+
// Linter didn't like `= {} as Style`
|
|
156
|
+
const style = {};
|
|
157
|
+
updatePayload.style = style;
|
|
158
|
+
}
|
|
159
|
+
updatePayload.style[styleKey] = newStyle[styleKey];
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
updatePayload[key] = newProps[key];
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return updatePayload;
|
|
168
|
+
},
|
|
169
|
+
commitUpdate: (node, updatePayload) => {
|
|
170
|
+
for (const [key, value] of Object.entries(updatePayload)) {
|
|
171
|
+
if (key === 'children') {
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
else if (key === 'style') {
|
|
175
|
+
dom_1.setStyle(node, value);
|
|
176
|
+
}
|
|
177
|
+
else if (key === 'internal_transform') {
|
|
178
|
+
node.internal_transform = value;
|
|
179
|
+
}
|
|
180
|
+
else if (key === 'internal_static') {
|
|
181
|
+
node.internal_static = true;
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
dom_1.setAttribute(node, key, value);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
commitTextUpdate: (node, _oldText, newText) => {
|
|
189
|
+
dom_1.setTextNodeValue(node, newText);
|
|
190
|
+
},
|
|
191
|
+
removeChild: (node, removeNode) => {
|
|
192
|
+
dom_1.removeChildNode(node, removeNode);
|
|
193
|
+
cleanupYogaNode(removeNode.yogaNode);
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
//# sourceMappingURL=reconciler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconciler.js","sourceRoot":"","sources":["../src/reconciler.ts"],"names":[],"mappings":";;;;;AAAA,yCAGmB;AACnB,wEAAgD;AAChD,gFAAwC;AACxC,+BAae;AAIf,gEAAgE;AAChE,gDAAgD;AAChD,qDAAqD;AACrD,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,MAAM,EAAE;IAC/B,uDAAuD;IACvD,OAAO,CAAC,YAAY,CAAC,CAAC;CACtB;AAED,MAAM,eAAe,GAAG,CAAC,IAAoB,EAAQ,EAAE;IACtD,IAAI,aAAJ,IAAI,uBAAJ,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0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const cli_boxes_1 = __importDefault(require("cli-boxes"));
|
|
7
|
+
const colorize_1 = __importDefault(require("./colorize"));
|
|
8
|
+
exports.default = (x, y, node, output) => {
|
|
9
|
+
if (typeof node.style.borderStyle === 'string') {
|
|
10
|
+
const width = node.yogaNode.getComputedWidth();
|
|
11
|
+
const height = node.yogaNode.getComputedHeight();
|
|
12
|
+
const color = node.style.borderColor;
|
|
13
|
+
const box = cli_boxes_1.default[node.style.borderStyle];
|
|
14
|
+
const topBorder = colorize_1.default(box.topLeft + box.horizontal.repeat(width - 2) + box.topRight, color, 'foreground');
|
|
15
|
+
const verticalBorder = (colorize_1.default(box.vertical, color, 'foreground') + '\n').repeat(height - 2);
|
|
16
|
+
const bottomBorder = colorize_1.default(box.bottomLeft + box.horizontal.repeat(width - 2) + box.bottomRight, color, 'foreground');
|
|
17
|
+
output.write(x, y, topBorder, { transformers: [] });
|
|
18
|
+
output.write(x, y + 1, verticalBorder, { transformers: [] });
|
|
19
|
+
output.write(x + width - 1, y + 1, verticalBorder, { transformers: [] });
|
|
20
|
+
output.write(x, y + height - 1, bottomBorder, { transformers: [] });
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=render-border.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-border.js","sourceRoot":"","sources":["../src/render-border.ts"],"names":[],"mappings":";;;;;AAAA,0DAAiC;AACjC,0DAAkC;AAIlC,kBAAe,CAAC,CAAS,EAAE,CAAS,EAAE,IAAa,EAAE,MAAc,EAAQ,EAAE;IAC5E,IAAI,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,KAAK,QAAQ,EAAE;QAC/C,MAA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AAG,CAAC,EAAE,YAAY,EAAE,EAAC,YAAY,EAAE,EAAE,EAAC,CAAC,CAAC;KAClE;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DOMElement } from './dom';
|
|
2
|
+
import Output from './output';
|
|
3
|
+
export declare type OutputTransformer = (s: string) => string;
|
|
4
|
+
declare const renderNodeToOutput: (node: DOMElement, output: Output, options: {
|
|
5
|
+
offsetX?: number;
|
|
6
|
+
offsetY?: number;
|
|
7
|
+
transformers?: OutputTransformer[];
|
|
8
|
+
skipStaticElements: boolean;
|
|
9
|
+
}) => void;
|
|
10
|
+
export default renderNodeToOutput;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const yoga_layout_prebuilt_1 = __importDefault(require("yoga-layout-prebuilt"));
|
|
7
|
+
const widest_line_1 = __importDefault(require("widest-line"));
|
|
8
|
+
const indent_string_1 = __importDefault(require("indent-string"));
|
|
9
|
+
const wrap_text_1 = __importDefault(require("./wrap-text"));
|
|
10
|
+
const get_max_width_1 = __importDefault(require("./get-max-width"));
|
|
11
|
+
const squash_text_nodes_1 = __importDefault(require("./squash-text-nodes"));
|
|
12
|
+
const render_border_1 = __importDefault(require("./render-border"));
|
|
13
|
+
// If parent container is `<Box>`, text nodes will be treated as separate nodes in
|
|
14
|
+
// the tree and will have their own coordinates in the layout.
|
|
15
|
+
// To ensure text nodes are aligned correctly, take X and Y of the first text node
|
|
16
|
+
// and use it as offset for the rest of the nodes
|
|
17
|
+
// Only first node is taken into account, because other text nodes can't have margin or padding,
|
|
18
|
+
// so their coordinates will be relative to the first node anyway
|
|
19
|
+
const applyPaddingToText = (node, text) => {
|
|
20
|
+
var _a;
|
|
21
|
+
const yogaNode = (_a = node.childNodes[0]) === null || _a === void 0 ? void 0 : _a.yogaNode;
|
|
22
|
+
if (yogaNode) {
|
|
23
|
+
const offsetX = yogaNode.getComputedLeft();
|
|
24
|
+
const offsetY = yogaNode.getComputedTop();
|
|
25
|
+
text = '\n'.repeat(offsetY) + indent_string_1.default(text, offsetX);
|
|
26
|
+
}
|
|
27
|
+
return text;
|
|
28
|
+
};
|
|
29
|
+
// After nodes are laid out, render each to output object, which later gets rendered to terminal
|
|
30
|
+
const renderNodeToOutput = (node, output, options) => {
|
|
31
|
+
var _a;
|
|
32
|
+
const { offsetX = 0, offsetY = 0, transformers = [], skipStaticElements } = options;
|
|
33
|
+
if (skipStaticElements && node.internal_static) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const { yogaNode } = node;
|
|
37
|
+
if (yogaNode) {
|
|
38
|
+
if (yogaNode.getDisplay() === yoga_layout_prebuilt_1.default.DISPLAY_NONE) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
// Left and top positions in Yoga are relative to their parent node
|
|
42
|
+
const x = offsetX + yogaNode.getComputedLeft();
|
|
43
|
+
const y = offsetY + yogaNode.getComputedTop();
|
|
44
|
+
// Transformers are functions that transform final text output of each component
|
|
45
|
+
// See Output class for logic that applies transformers
|
|
46
|
+
let newTransformers = transformers;
|
|
47
|
+
if (typeof node.internal_transform === 'function') {
|
|
48
|
+
newTransformers = [node.internal_transform, ...transformers];
|
|
49
|
+
}
|
|
50
|
+
if (node.nodeName === 'ink-text') {
|
|
51
|
+
let text = squash_text_nodes_1.default(node);
|
|
52
|
+
if (text.length > 0) {
|
|
53
|
+
const currentWidth = widest_line_1.default(text);
|
|
54
|
+
const maxWidth = get_max_width_1.default(yogaNode);
|
|
55
|
+
if (currentWidth > maxWidth) {
|
|
56
|
+
const textWrap = (_a = node.style.textWrap) !== null && _a !== void 0 ? _a : 'wrap';
|
|
57
|
+
text = wrap_text_1.default(text, maxWidth, textWrap);
|
|
58
|
+
}
|
|
59
|
+
text = applyPaddingToText(node, text);
|
|
60
|
+
output.write(x, y, text, { transformers: newTransformers });
|
|
61
|
+
}
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (node.nodeName === 'ink-box') {
|
|
65
|
+
render_border_1.default(x, y, node, output);
|
|
66
|
+
}
|
|
67
|
+
if (node.nodeName === 'ink-root' || node.nodeName === 'ink-box') {
|
|
68
|
+
for (const childNode of node.childNodes) {
|
|
69
|
+
renderNodeToOutput(childNode, output, {
|
|
70
|
+
offsetX: x,
|
|
71
|
+
offsetY: y,
|
|
72
|
+
transformers: newTransformers,
|
|
73
|
+
skipStaticElements
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
exports.default = renderNodeToOutput;
|
|
80
|
+
//# sourceMappingURL=render-node-to-output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-node-to-output.js","sourceRoot":"","sources":["../src/render-node-to-output.ts"],"names":[],"mappings":";;;;;AAAA,gFAAwC;AACxC,8DAAqC;AACrC,kEAAyC;AACzC,4DAAmC;AACnC,oEAA0C;AAC1C,4EAAkD;AAClD,oEAA2C;AAI3C,kFAAkF;AAClF,8DAA8D;AAC9D,kFAAkF;AAClF,iDAAiD;AACjD,gGAAgG;AAChG,iEAAiE;AACjE,MAAM,kBAAkB,GAAG,CAAC,IAAgB,EAAE,IAAY,EAAU,EAAE;;IACrE,MAAM,QAAQ,SAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,0CAAE,QAAQ,CAAC;IAE9C,IAAI,QAAQ,EAAE;QACb,MAAM,OAAO,GAAG,QAAQ,CAAC,eAAe,EAAE,CAAC;QAC3C,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;QAC1C,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,uBAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAA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C,IAAI,GAAG,mBAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;iBAC1C;gBAED,IAAI,GAAG,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBACtC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,EAAC,YAAY,EAAE,eAAe,EAAC,CAAC,CAAC;aAC1D;YAED,OAAO;SACP;QAED,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;YAChC,uBAAY,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;SACjC;QAED,IAAI,IAAI,CAAC,QAAQ,KAAK,UAAU,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE;YAChE,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE;gBACxC,kBAAkB,CAAC,SAAuB,EAAE,MAAM,EAAE;oBACnD,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,CAAC;oBACV,YAAY,EAAE,eAAe;oBAC7B,kBAAkB;iBAClB,CAAC,CAAC;aACH;SACD;KACD;AACF,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
import Ink from './ink';
|
|
4
|
+
export interface RenderOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Output stream where app will be rendered.
|
|
7
|
+
*
|
|
8
|
+
* @default process.stdout
|
|
9
|
+
*/
|
|
10
|
+
stdout?: NodeJS.WriteStream;
|
|
11
|
+
/**
|
|
12
|
+
* Input stream where app will listen for input.
|
|
13
|
+
*
|
|
14
|
+
* @default process.stdin
|
|
15
|
+
*/
|
|
16
|
+
stdin?: NodeJS.ReadStream;
|
|
17
|
+
/**
|
|
18
|
+
* Error stream.
|
|
19
|
+
* @default process.stderr
|
|
20
|
+
*/
|
|
21
|
+
stderr?: NodeJS.WriteStream;
|
|
22
|
+
/**
|
|
23
|
+
* If true, each update will be rendered as a separate output, without replacing the previous one.
|
|
24
|
+
*
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
debug?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Configure whether Ink should listen to Ctrl+C keyboard input and exit the app. This is needed in case `process.stdin` is in raw mode, because then Ctrl+C is ignored by default and process is expected to handle it manually.
|
|
30
|
+
*
|
|
31
|
+
* @default true
|
|
32
|
+
*/
|
|
33
|
+
exitOnCtrlC?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Patch console methods to ensure console output doesn't mix with Ink output.
|
|
36
|
+
*
|
|
37
|
+
* @default true
|
|
38
|
+
*/
|
|
39
|
+
patchConsole?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface Instance {
|
|
42
|
+
/**
|
|
43
|
+
* Replace previous root node with a new one or update props of the current root node.
|
|
44
|
+
*/
|
|
45
|
+
rerender: Ink['render'];
|
|
46
|
+
/**
|
|
47
|
+
* Manually unmount the whole Ink app.
|
|
48
|
+
*/
|
|
49
|
+
unmount: Ink['unmount'];
|
|
50
|
+
/**
|
|
51
|
+
* Returns a promise, which resolves when app is unmounted.
|
|
52
|
+
*/
|
|
53
|
+
waitUntilExit: Ink['waitUntilExit'];
|
|
54
|
+
cleanup: () => void;
|
|
55
|
+
/**
|
|
56
|
+
* Clear output.
|
|
57
|
+
*/
|
|
58
|
+
clear: () => void;
|
|
59
|
+
}
|
|
60
|
+
declare type RenderFunction = <Props, K extends NodeJS.WriteStream | RenderOptions>(tree: ReactElement<Props>, options?: K) => Instance;
|
|
61
|
+
/**
|
|
62
|
+
* Mount a component and render the output.
|
|
63
|
+
*/
|
|
64
|
+
declare const render: RenderFunction;
|
|
65
|
+
export default render;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ink_1 = __importDefault(require("./ink"));
|
|
7
|
+
const instances_1 = __importDefault(require("./instances"));
|
|
8
|
+
const stream_1 = require("stream");
|
|
9
|
+
/**
|
|
10
|
+
* Mount a component and render the output.
|
|
11
|
+
*/
|
|
12
|
+
const render = (node, options) => {
|
|
13
|
+
const inkOptions = Object.assign({ stdout: process.stdout, stdin: process.stdin, stderr: process.stderr, debug: false, exitOnCtrlC: true, patchConsole: true }, getOptions(options));
|
|
14
|
+
const instance = getInstance(inkOptions.stdout, () => new ink_1.default(inkOptions));
|
|
15
|
+
instance.render(node);
|
|
16
|
+
return {
|
|
17
|
+
rerender: instance.render,
|
|
18
|
+
unmount: () => instance.unmount(),
|
|
19
|
+
waitUntilExit: instance.waitUntilExit,
|
|
20
|
+
cleanup: () => instances_1.default.delete(inkOptions.stdout),
|
|
21
|
+
clear: instance.clear
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
exports.default = render;
|
|
25
|
+
const getOptions = (stdout = {}) => {
|
|
26
|
+
if (stdout instanceof stream_1.Stream) {
|
|
27
|
+
return {
|
|
28
|
+
stdout,
|
|
29
|
+
stdin: process.stdin
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return stdout;
|
|
33
|
+
};
|
|
34
|
+
const getInstance = (stdout, createInstance) => {
|
|
35
|
+
let instance;
|
|
36
|
+
if (instances_1.default.has(stdout)) {
|
|
37
|
+
instance = instances_1.default.get(stdout);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
instance = createInstance();
|
|
41
|
+
instances_1.default.set(stdout, instance);
|
|
42
|
+
}
|
|
43
|
+
return instance;
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.js","sourceRoot":"","sources":["../src/render.ts"],"names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AAQ,GAAG,mBAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KACjC;SAAM;QACN,QAAQ,GAAG,cAAc,EAAE,CAAC;QAC5B,mBAAS,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;KAChC;IAED,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const yoga_layout_prebuilt_1 = __importDefault(require("yoga-layout-prebuilt"));
|
|
7
|
+
const render_node_to_output_1 = __importDefault(require("./render-node-to-output"));
|
|
8
|
+
const output_1 = __importDefault(require("./output"));
|
|
9
|
+
exports.default = (node, terminalWidth) => {
|
|
10
|
+
var _a;
|
|
11
|
+
node.yogaNode.setWidth(terminalWidth);
|
|
12
|
+
if (node.yogaNode) {
|
|
13
|
+
node.yogaNode.calculateLayout(undefined, undefined, yoga_layout_prebuilt_1.default.DIRECTION_LTR);
|
|
14
|
+
const output = new output_1.default({
|
|
15
|
+
width: node.yogaNode.getComputedWidth(),
|
|
16
|
+
height: node.yogaNode.getComputedHeight()
|
|
17
|
+
});
|
|
18
|
+
render_node_to_output_1.default(node, output, { skipStaticElements: true });
|
|
19
|
+
let staticOutput;
|
|
20
|
+
if ((_a = node.staticNode) === null || _a === void 0 ? void 0 : _a.yogaNode) {
|
|
21
|
+
staticOutput = new output_1.default({
|
|
22
|
+
width: node.staticNode.yogaNode.getComputedWidth(),
|
|
23
|
+
height: node.staticNode.yogaNode.getComputedHeight()
|
|
24
|
+
});
|
|
25
|
+
render_node_to_output_1.default(node.staticNode, staticOutput, {
|
|
26
|
+
skipStaticElements: false
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
const { output: generatedOutput, height: outputHeight } = output.get();
|
|
30
|
+
return {
|
|
31
|
+
output: generatedOutput,
|
|
32
|
+
outputHeight,
|
|
33
|
+
// Newline at the end is needed, because static output doesn't have one, so
|
|
34
|
+
// interactive output will override last line of static output
|
|
35
|
+
staticOutput: staticOutput ? `${staticOutput.get().output}\n` : ''
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
output: '',
|
|
40
|
+
outputHeight: 0,
|
|
41
|
+
staticOutput: ''
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":";;;;;AAAA,gFAAwC;AACxC,oFAAyD;AACzD,sDAA8B;AAS9B,kBAAe,CAAC,IAAgB,EAAE,aAAqB,EAAU,EAAE;;IAClE,IAAI,CAAC,QAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;IAEvC,IAAI,IAAI,CAAC,QAAQ,EAAE;QAClB,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,SAAS,EAAE,SAAS,EAAE,8BAAI,CAAC,aAAa,CAAC,CAAC;QAExE,MAAM,MAAM,GAAG,IAAI,gBAAM,CAAC;YACzB,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE;YACvC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,iBAAiB,EAAE;SACzC,CAAC,CAAC;QAEH,+BAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAC,kBAAkB,EAAE,IAAI,EAAC,CAAC,CAAC;QAE7D,IAAI,YAAY,CAAC;QAEjB,UAAI,IAAI,CAAC,UAAU,0CAAE,QAAQ,EAAE;YAC9B,YAAY,GAAG,IAAI,gBAAM,CAAC;gBACzB,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,gBAAgB,EAAE;gBAClD,MAAM,EAA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