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
37
frontend/node_modules/es-toolkit/dist/compat/math/range.js
generated
vendored
Normal file
37
frontend/node_modules/es-toolkit/dist/compat/math/range.js
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
const require_toFinite = require("../util/toFinite.js");
|
||||
const require_isIterateeCall = require("../_internal/isIterateeCall.js");
|
||||
//#region src/compat/math/range.ts
|
||||
/**
|
||||
* Returns an array of numbers from `start` (inclusive) to `end` (exclusive), incrementing by `step`.
|
||||
*
|
||||
* @param start - The starting number of the range (inclusive).
|
||||
* @param end - The end number of the range (exclusive).
|
||||
* @param step - The step value for the range.
|
||||
* @returns An array of numbers from `start` (inclusive) to `end` (exclusive) with the specified `step`.
|
||||
*
|
||||
* @example
|
||||
* // Returns [0, 1, 2, 3]
|
||||
* range(4);
|
||||
*
|
||||
* @example
|
||||
* // Returns [0, -1, -2, -3]
|
||||
* range(0, -4, -1);
|
||||
*/
|
||||
function range(start, end, step) {
|
||||
if (step && typeof step !== "number" && require_isIterateeCall.isIterateeCall(start, end, step)) end = step = void 0;
|
||||
start = require_toFinite.toFinite(start);
|
||||
if (end === void 0) {
|
||||
end = start;
|
||||
start = 0;
|
||||
} else end = require_toFinite.toFinite(end);
|
||||
step = step === void 0 ? start < end ? 1 : -1 : require_toFinite.toFinite(step);
|
||||
const length = Math.max(Math.ceil((end - start) / (step || 1)), 0);
|
||||
const result = new Array(length);
|
||||
for (let index = 0; index < length; index++) {
|
||||
result[index] = start;
|
||||
start += step;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
//#endregion
|
||||
exports.range = range;
|
||||
Loading…
Add table
Add a link
Reference in a new issue