1 | import { a as h } from "./array-2ff2c7a6.js";
|
2 | import { w as d, c as o } from "./path-428ebac9.js";
|
3 | import { n as v } from "./mermaid-9f2aa176.js";
|
4 | function w(t) {
|
5 | return t[0];
|
6 | }
|
7 | function b(t) {
|
8 | return t[1];
|
9 | }
|
10 | function P(t, u) {
|
11 | var s = o(!0), i = null, l = v, r = null, m = d(e);
|
12 | t = typeof t == "function" ? t : t === void 0 ? w : o(t), u = typeof u == "function" ? u : u === void 0 ? b : o(u);
|
13 | function e(n) {
|
14 | var f, g = (n = h(n)).length, p, c = !1, a;
|
15 | for (i == null && (r = l(a = m())), f = 0; f <= g; ++f)
|
16 | !(f < g && s(p = n[f], f, n)) === c && ((c = !c) ? r.lineStart() : r.lineEnd()), c && r.point(+t(p, f, n), +u(p, f, n));
|
17 | if (a)
|
18 | return r = null, a + "" || null;
|
19 | }
|
20 | return e.x = function(n) {
|
21 | return arguments.length ? (t = typeof n == "function" ? n : o(+n), e) : t;
|
22 | }, e.y = function(n) {
|
23 | return arguments.length ? (u = typeof n == "function" ? n : o(+n), e) : u;
|
24 | }, e.defined = function(n) {
|
25 | return arguments.length ? (s = typeof n == "function" ? n : o(!!n), e) : s;
|
26 | }, e.curve = function(n) {
|
27 | return arguments.length ? (l = n, i != null && (r = l(i)), e) : l;
|
28 | }, e.context = function(n) {
|
29 | return arguments.length ? (n == null ? i = r = null : r = l(i = n), e) : i;
|
30 | }, e;
|
31 | }
|
32 | export {
|
33 | P as l
|
34 | };
|