Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cae411eae7
commit
1c411e402e
19809 changed files with 1962608 additions and 97 deletions
36
frontend/node_modules/es-toolkit/dist/fp/array/uniq.js
generated
vendored
Normal file
36
frontend/node_modules/es-toolkit/dist/fp/array/uniq.js
generated
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
const require_uniq = require("../../array/uniq.js");
|
||||
const require_lazy = require("../_internal/lazy.js");
|
||||
//#region src/fp/array/uniq.ts
|
||||
/**
|
||||
* Creates a function that removes duplicate values from an array, preserving
|
||||
* the order of first occurrence. Equality follows SameValueZero, matching
|
||||
* Set semantics. Use it with {@link pipe}.
|
||||
*
|
||||
* The returned function is lazy-capable inside {@link pipe}. It keeps a Set of
|
||||
* values already emitted during each pipeline run.
|
||||
*
|
||||
* @template T - The type of elements in the array.
|
||||
* @returns A function that maps a readonly array to a duplicate-free array.
|
||||
*
|
||||
* @example
|
||||
* import { pipe, uniq } from 'es-toolkit/fp';
|
||||
*
|
||||
* pipe([1, 2, 2, 3, 3, 3], uniq());
|
||||
* // => [1, 2, 3]
|
||||
*/
|
||||
function uniq() {
|
||||
function uniqEager(array) {
|
||||
return require_uniq.uniq(array);
|
||||
}
|
||||
const uniqLazy = (emit) => {
|
||||
const seen = /* @__PURE__ */ new Set();
|
||||
return (value) => {
|
||||
if (seen.has(value)) return true;
|
||||
seen.add(value);
|
||||
return emit(value);
|
||||
};
|
||||
};
|
||||
return require_lazy.combineEagerAndLazyFunctions(uniqEager, uniqLazy);
|
||||
}
|
||||
//#endregion
|
||||
exports.uniq = uniq;
|
||||
Loading…
Add table
Add a link
Reference in a new issue