Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
No EOL
705 B
Text
25 lines
No EOL
705 B
Text
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.basis = basis;
|
|
exports.default = _default;
|
|
|
|
function basis(t1, v0, v1, v2, v3) {
|
|
var t2 = t1 * t1,
|
|
t3 = t2 * t1;
|
|
return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6;
|
|
}
|
|
|
|
function _default(values) {
|
|
var n = values.length - 1;
|
|
return function (t) {
|
|
var i = t <= 0 ? t = 0 : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),
|
|
v1 = values[i],
|
|
v2 = values[i + 1],
|
|
v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,
|
|
v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;
|
|
return basis((t - i / n) * n, v0, v1, v2, v3);
|
|
};
|
|
} |