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:
jtricerolph 2026-07-20 14:37:36 +00:00
parent cae411eae7
commit 1c411e402e
19809 changed files with 1962608 additions and 97 deletions

View file

@ -0,0 +1,19 @@
const require_isArrayLike = require("../predicate/isArrayLike.js");
//#region src/compat/array/flatten.ts
function flatten(value, depth = 1) {
const result = [];
const flooredDepth = Math.floor(depth);
if (!require_isArrayLike.isArrayLike(value)) return result;
const recursive = (arr, currentDepth) => {
for (let i = 0; i < arr.length; i++) {
const item = arr[i];
if (currentDepth < flooredDepth && (Array.isArray(item) || Boolean(item?.[Symbol.isConcatSpreadable]) || item !== null && typeof item === "object" && Object.prototype.toString.call(item) === "[object Arguments]")) if (Array.isArray(item)) recursive(item, currentDepth + 1);
else recursive(Array.from(item), currentDepth + 1);
else result.push(item);
}
};
recursive(Array.from(value), 0);
return result;
}
//#endregion
exports.flatten = flatten;