@belonguniverseai/react-sdk 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/agent-grants.d.ts +6 -0
- package/dist/api/client.d.ts +30 -1
- package/dist/app/call-summary.d.ts +30 -0
- package/dist/component/abnfDiagram-N423BO3Z-C1O9dfJJ.js +90 -0
- package/dist/component/arc-Cpnt_LFj.js +86 -0
- package/dist/component/{architectureDiagram-3BPJPVTR-DYcaPx2M.js → architectureDiagram-T3A2C74G-iakL6yUj.js} +1872 -1785
- package/dist/component/{blockDiagram-GPEHLZMM-BdjruLO5.js → blockDiagram-VBNYF7ZC-D7t0jIvW.js} +895 -894
- package/dist/component/{c4Diagram-AAUBKEIU-Bd2ebSgB.js → c4Diagram-5PPSVZJV-CRX1o0CJ.js} +3 -3
- package/dist/component/{channel-CYFijF_t.js → channel-DnM50Ep0.js} +2 -2
- package/dist/component/{chunk-ND2GUHAM-OX1-DIU1.js → chunk-2GRJ4B5K-ChTMjM-v.js} +5 -5
- package/dist/component/{chunk-QZHKN3VN-DLQ8oUCc.js → chunk-2Q5K7J3B-F2Rpvtwm.js} +2 -2
- package/dist/component/{chunk-AQP2D5EJ-D4G4syYu.js → chunk-5RXB4S5H-B1WLx-ex.js} +399 -378
- package/dist/component/{chunk-FMBD7UC4-CbRxWx_A.js → chunk-5VM5RSS4-D35VMAuN.js} +2 -2
- package/dist/component/chunk-6Q2QTUOP-DGVp_gyk.js +673 -0
- package/dist/component/{chunk-727SXJPM-A5r5oL1_.js → chunk-GF5L2VYU-CZOQEv_q.js} +244 -239
- package/dist/component/{chunk-4BX2VUAB-DVpS0I_p.js → chunk-JWPE2WC7-BbwyDj9g.js} +2 -2
- package/dist/component/{chunk-2J33WTMH-B06Y_xVy.js → chunk-KBJHAD2P-B9qL0VLM.js} +2 -2
- package/dist/component/chunk-RYQCIY6F-5eaMbXXL.js +316 -0
- package/dist/component/{chunk-55IACEB6-DmZctFkK.js → chunk-XXDRQBXY-XJadTIK5.js} +2 -2
- package/dist/component/{classDiagram-4FO5ZUOK-4S9mdFC1.js → classDiagram-JCYQIIEL-DVaEk7uT.js} +3 -3
- package/dist/component/{classDiagram-v2-Q7XG4LA2-4S9mdFC1.js → classDiagram-v2-OCEON4UE-DVaEk7uT.js} +3 -3
- package/dist/component/{cose-bilkent-S5V4N54A-BIrVaakt.js → cose-bilkent-JH36ORCC-DZA30AqI.js} +2 -2
- package/dist/component/{wardley-L42UT6IY-HA1eSIS_.js → cynefin-VYW2F7L2-DAyxamLw.js} +9199 -7918
- package/dist/component/cynefinDiagram-MW4NZA55-CutZScTQ.js +302 -0
- package/dist/component/dagre-VZM6K2ZE-CelPLP8N.js +343 -0
- package/dist/component/diagram-7IWD3JNH-Cr5piwKc.js +353 -0
- package/dist/component/{diagram-KO2AKTUF-Da1E68Eo.js → diagram-B4RE2ZJO-DgLNdZkh.js} +24 -24
- package/dist/component/{diagram-LMA3HP47-dRbk5sBa.js → diagram-LBJQPF4R-DxeIMTjN.js} +23 -23
- package/dist/component/{diagram-OG6HWLK6-CcKT8mhn.js → diagram-Q27KOJAE-WACyk_gr.js} +197 -197
- package/dist/component/diagram-UB23O5K3-DbhVYU5T.js +222 -0
- package/dist/component/ebnfDiagram-BXEA7PRR-DoGrYW10.js +112 -0
- package/dist/component/{erDiagram-TEJ5UH35-3ATYT9J-.js → erDiagram-JOGREHBK-BgewA6fH.js} +142 -131
- package/dist/component/{flowDiagram-I6XJVG4X-D9PLm9Od.js → flowDiagram-UKHOOZJN-1YmYJYcE.js} +268 -258
- package/dist/component/ganttDiagram-PKOTCBZU-BFAEPYkH.js +2714 -0
- package/dist/component/{gitGraphDiagram-PVQCEYII-13gVhAGc.js → gitGraphDiagram-DS77QQ5N-CSiPuE-l.js} +33 -33
- package/dist/component/{graph-BZLHvygk.js → graph-CWpEkm4G.js} +35 -35
- package/dist/component/{highlighted-body-OFNGDK62-DCxRI4UV.js → highlighted-body-OFNGDK62-CSJNGt18.js} +2 -2
- package/dist/component/index.js +2 -2
- package/dist/component/{infoDiagram-5YYISTIA-DymxA7AN.js → infoDiagram-6WML65LV-CoMVfONe.js} +4 -4
- package/dist/component/{ishikawaDiagram-YF4QCWOH-C3sTn76C.js → ishikawaDiagram-WSZJBQD7-B2YEkQ4b.js} +27 -27
- package/dist/component/{journeyDiagram-JHISSGLW-Cq0hOAfJ.js → journeyDiagram-NVQOT4AX-B7b5ZwlF.js} +5 -5
- package/dist/component/{kanban-definition-UN3LZRKU-5tBWjkp7.js → kanban-definition-27J2QSJJ-C9GPAsBR.js} +35 -35
- package/dist/component/layout-Br2UjHRU.js +1522 -0
- package/dist/component/{linear-BT4blD8s.js → linear-Bi0C-9d1.js} +13 -13
- package/dist/component/map-CdwokNh2.js +227 -0
- package/dist/component/{mermaid-GHXKKRXX-DXPXjnb7.js → mermaid-GHXKKRXX-BaBCeViM.js} +25220 -24784
- package/dist/component/{mindmap-definition-RKZ34NQL-DO-OuAQQ.js → mindmap-definition-FAOFIHXS-tHIAo7Ms.js} +26 -26
- package/dist/component/pegDiagram-VL7TDLO6-Db_7lLRV.js +98 -0
- package/dist/component/pieDiagram-7S7Q4E2Y-C4fs4XCK.js +210 -0
- package/dist/component/{quadrantDiagram-W4KKPZXB-CaJWg9ep.js → quadrantDiagram-CIZ2JOQS-Bw7vXO0q.js} +14 -15
- package/dist/component/railroadDiagram-AXF67PYL-kY0VoZEg.js +80 -0
- package/dist/component/{requirementDiagram-4Y6WPE33-CmZrtZqe.js → requirementDiagram-LRYGKXZP-BkNtSZm5.js} +15 -15
- package/dist/component/{sankeyDiagram-5OEKKPKP-Cp95M1aj.js → sankeyDiagram-W5VNT64P-BK_C1BYE.js} +2 -2
- package/dist/component/{sequenceDiagram-3UESZ5HK-C0x0WvhR.js → sequenceDiagram-SI44F4Z6-CEmgVZaE.js} +960 -963
- package/dist/component/sizeCapture-X5ZJPWSS-J5ZNXT4c.js +49 -0
- package/dist/component/{stateDiagram-AJRCARHV-H10vaGL3.js → stateDiagram-OKZ733FA-DrwrNuNs.js} +5 -5
- package/dist/component/{stateDiagram-v2-BHNVJYJU-rj7ljkc-.js → stateDiagram-v2-UEYNNEHI-DHD85VTD.js} +3 -3
- package/dist/component/swimlanes-SLNWSIFB-FOK5tys1.js +5335 -0
- package/dist/component/swimlanesDiagram-ULZ7WXOC-edTvZTge.js +16 -0
- package/dist/component/{timeline-definition-PNZ67QCA-Cil1QaqZ.js → timeline-definition-Z64GVDOM-Cc4fTsjY.js} +15 -15
- package/dist/component/vennDiagram-T6HMQDX7-DYZl8srI.js +1581 -0
- package/dist/component/{wardleyDiagram-YWT4CUSO-Xq5Hnmio.js → wardleyDiagram-T6FBY63Y-BEvv3PjS.js} +15 -15
- package/dist/component/{xychartDiagram-2RQKCTM6-dinwR4Zm.js → xychartDiagram-ELKLHX3M-79AgTtk-.js} +464 -418
- package/dist/embed/voice/line-slots.d.ts +37 -2
- package/dist/embed/voice-call.d.ts +12 -0
- package/dist/i18n/messages/en.d.ts +1 -2
- package/dist/lib/web-storage.d.ts +8 -0
- package/dist/stream/stream-state-store.d.ts +13 -0
- package/dist/types/public.d.ts +3 -0
- package/package.json +1 -1
- package/dist/component/arc-TLcl3N8_.js +0 -86
- package/dist/component/dagre-BM42HDAG-BoPUzTvD.js +0 -448
- package/dist/component/diagram-2AECGRRQ-PIXCGxIt.js +0 -220
- package/dist/component/diagram-5GNKFQAL-CbJxbGBh.js +0 -126
- package/dist/component/ganttDiagram-6RSMTGT7-F_XUzD1p.js +0 -2709
- package/dist/component/layout-Bu6nRdWm.js +0 -1731
- package/dist/component/pieDiagram-4H26LBE5-BkEktPwZ.js +0 -166
- package/dist/component/vennDiagram-CIIHVFJN-Dk8PKmfb.js +0 -1560
|
@@ -45,6 +45,12 @@ export type GrantRetryOptions = {
|
|
|
45
45
|
* into a limiter that is, by then, demonstrably saturated.
|
|
46
46
|
*/
|
|
47
47
|
export declare const isRateLimitedGrantError: (error: unknown) => boolean;
|
|
48
|
+
/**
|
|
49
|
+
* A scope-cap error reaches callers only after the inner recovery attempt has
|
|
50
|
+
* either remained unconfirmed or retried once and still failed. Outer retry
|
|
51
|
+
* ladders must stop instead of repeating the whole mint + revoke pipeline.
|
|
52
|
+
*/
|
|
53
|
+
export declare const isSessionLimitedGrantError: (error: unknown) => boolean;
|
|
48
54
|
/**
|
|
49
55
|
* POST a grant create with two layers of self-heal:
|
|
50
56
|
* 1. Per attempt — the 409/429 anti-replay / session-cap force-mint retry
|
package/dist/api/client.d.ts
CHANGED
|
@@ -3273,7 +3273,23 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3273
3273
|
};
|
|
3274
3274
|
output: {
|
|
3275
3275
|
error: {
|
|
3276
|
-
type:
|
|
3276
|
+
type: "scope_session_limit";
|
|
3277
|
+
recovery: "provider_sessions_revoked" | "unconfirmed";
|
|
3278
|
+
};
|
|
3279
|
+
};
|
|
3280
|
+
outputFormat: "json";
|
|
3281
|
+
status: 429;
|
|
3282
|
+
} | {
|
|
3283
|
+
input: {
|
|
3284
|
+
json: {
|
|
3285
|
+
provider: string;
|
|
3286
|
+
scopeExternalId: string;
|
|
3287
|
+
};
|
|
3288
|
+
};
|
|
3289
|
+
output: {
|
|
3290
|
+
error: {
|
|
3291
|
+
type: "rate_limited";
|
|
3292
|
+
retryAfterMs: number;
|
|
3277
3293
|
};
|
|
3278
3294
|
};
|
|
3279
3295
|
outputFormat: "json";
|
|
@@ -3382,6 +3398,19 @@ export declare const createApiClient: (baseUrl: string) => {
|
|
|
3382
3398
|
};
|
|
3383
3399
|
outputFormat: "json";
|
|
3384
3400
|
status: 404;
|
|
3401
|
+
} | {
|
|
3402
|
+
input: {
|
|
3403
|
+
param: {
|
|
3404
|
+
grantId: string;
|
|
3405
|
+
};
|
|
3406
|
+
};
|
|
3407
|
+
output: {
|
|
3408
|
+
error: {
|
|
3409
|
+
type: string;
|
|
3410
|
+
};
|
|
3411
|
+
};
|
|
3412
|
+
outputFormat: "json";
|
|
3413
|
+
status: 503;
|
|
3385
3414
|
};
|
|
3386
3415
|
}>;
|
|
3387
3416
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the call screen says the agent is DOING — one sentence, resolved from
|
|
3
|
+
* data already on the wire. No new tool, no model round-trip.
|
|
4
|
+
*
|
|
5
|
+
* The cascade degrades in the right direction: the more the agent told us
|
|
6
|
+
* about its own work, the better the line reads, and it never asserts
|
|
7
|
+
* something the run cannot support.
|
|
8
|
+
*
|
|
9
|
+
* Deliberately NOT `planStepLabel()` from stream/plan-progress.ts: that helper
|
|
10
|
+
* renders hardcoded English scaffolding ("Step 2 of 5 — <title>"), which would
|
|
11
|
+
* ship untranslated prose onto a localized surface. The step's own title is the
|
|
12
|
+
* agent's words; the count belongs in the rollup, where it is a number inside a
|
|
13
|
+
* translated string.
|
|
14
|
+
*/
|
|
15
|
+
export type CallSummaryRollup = {
|
|
16
|
+
readonly key: string;
|
|
17
|
+
readonly params: Readonly<Record<string, number>>;
|
|
18
|
+
};
|
|
19
|
+
export type CallSummary = {
|
|
20
|
+
/** The sentence under the collapsed header, or null when there is nothing
|
|
21
|
+
* truthful to say. */
|
|
22
|
+
readonly headline: string | null;
|
|
23
|
+
/** i18n key + params for the rollup, or null before any action has run. */
|
|
24
|
+
readonly rollup: CallSummaryRollup | null;
|
|
25
|
+
};
|
|
26
|
+
export declare const callSummary: (input: {
|
|
27
|
+
readonly planStepTitle: string | null;
|
|
28
|
+
readonly dispatchedRequest: string | null;
|
|
29
|
+
readonly actionCount: number;
|
|
30
|
+
}) => CallSummary;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { g as p, r as u, d as n } from "./chunk-6Q2QTUOP-DGVp_gyk.js";
|
|
2
|
+
import { p as f } from "./chunk-JWPE2WC7-BbwyDj9g.js";
|
|
3
|
+
import { _ as a, l as o } from "./mermaid-GHXKKRXX-BaBCeViM.js";
|
|
4
|
+
import { M as c, b as g } from "./cynefin-VYW2F7L2-DAyxamLw.js";
|
|
5
|
+
globalThis.process = globalThis.process || { env: {} };
|
|
6
|
+
globalThis.global = globalThis.global || globalThis;
|
|
7
|
+
var b = g().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ a((e) => {
|
|
8
|
+
const r = e.alternatives.map(d);
|
|
9
|
+
return r.length === 1 ? r[0] : {
|
|
10
|
+
type: "choice",
|
|
11
|
+
alternatives: r
|
|
12
|
+
};
|
|
13
|
+
}, "transformAlternation"), d = /* @__PURE__ */ a((e) => {
|
|
14
|
+
const r = e.elements.map(h);
|
|
15
|
+
return r.length === 1 ? r[0] : {
|
|
16
|
+
type: "sequence",
|
|
17
|
+
elements: r
|
|
18
|
+
};
|
|
19
|
+
}, "transformConcatenation"), v = /* @__PURE__ */ a((e) => {
|
|
20
|
+
if (e.includes("*")) {
|
|
21
|
+
const [t, s] = e.split("*"), i = t ? parseInt(t, 10) : 0, m = s ? parseInt(s, 10) : 1 / 0;
|
|
22
|
+
return { min: i, max: m };
|
|
23
|
+
}
|
|
24
|
+
const r = parseInt(e, 10);
|
|
25
|
+
return { min: r, max: r };
|
|
26
|
+
}, "parseRepeat"), h = /* @__PURE__ */ a((e) => {
|
|
27
|
+
const r = y(e.primary);
|
|
28
|
+
if (!e.repeat)
|
|
29
|
+
return r;
|
|
30
|
+
const { min: t, max: s } = v(e.repeat);
|
|
31
|
+
return t === 0 && s === 1 ? { type: "optional", element: r } : {
|
|
32
|
+
type: "repetition",
|
|
33
|
+
element: r,
|
|
34
|
+
min: t,
|
|
35
|
+
max: s
|
|
36
|
+
};
|
|
37
|
+
}, "transformElement"), y = /* @__PURE__ */ a((e) => {
|
|
38
|
+
switch (e.$type) {
|
|
39
|
+
case "AbnfStringLiteral":
|
|
40
|
+
return {
|
|
41
|
+
type: "terminal",
|
|
42
|
+
value: e.value
|
|
43
|
+
};
|
|
44
|
+
case "AbnfNumVal":
|
|
45
|
+
return {
|
|
46
|
+
type: "terminal",
|
|
47
|
+
value: e.value
|
|
48
|
+
};
|
|
49
|
+
case "AbnfRuleName":
|
|
50
|
+
return {
|
|
51
|
+
type: "nonterminal",
|
|
52
|
+
name: e.name
|
|
53
|
+
};
|
|
54
|
+
case "AbnfGroup":
|
|
55
|
+
return l(e.element);
|
|
56
|
+
case "AbnfOptionalGroup":
|
|
57
|
+
return {
|
|
58
|
+
type: "optional",
|
|
59
|
+
element: l(e.element)
|
|
60
|
+
};
|
|
61
|
+
default:
|
|
62
|
+
throw new Error(`Unsupported ABNF primary node: ${e.$type}`);
|
|
63
|
+
}
|
|
64
|
+
}, "transformPrimary"), A = /* @__PURE__ */ a((e) => ({
|
|
65
|
+
name: e.name,
|
|
66
|
+
definition: l(e.definition)
|
|
67
|
+
}), "transformRule"), P = /* @__PURE__ */ a((e) => {
|
|
68
|
+
f(e, n), e.title && n.setTitle(e.title), e.rules.map((r) => n.addRule(A(r)));
|
|
69
|
+
}, "populateDb"), R = {
|
|
70
|
+
parse: /* @__PURE__ */ a((e) => {
|
|
71
|
+
n.clear(), o.debug("[ABNF Parser] Starting Langium parse");
|
|
72
|
+
const r = b.parse(e);
|
|
73
|
+
if (r.lexerErrors.length > 0 || r.parserErrors.length > 0)
|
|
74
|
+
throw new c(r);
|
|
75
|
+
const t = r.value;
|
|
76
|
+
o.debug("[ABNF Parser] Parsed rules:", t.rules.length), P(t), o.debug("[ABNF Parser] Parse complete");
|
|
77
|
+
}, "parse"),
|
|
78
|
+
parser: {
|
|
79
|
+
yy: n
|
|
80
|
+
}
|
|
81
|
+
}, T = {
|
|
82
|
+
parser: R,
|
|
83
|
+
db: n,
|
|
84
|
+
renderer: u,
|
|
85
|
+
styles: p
|
|
86
|
+
};
|
|
87
|
+
export {
|
|
88
|
+
T as diagram
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=abnfDiagram-N423BO3Z-C1O9dfJJ.js.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { H as ln, I as an, J as g, K as on, M as Q, N as w, O as _, P as sn, Q as rn, S as X, T as t, V as J, W as un, X as tn, Y as fn } from "./mermaid-GHXKKRXX-BaBCeViM.js";
|
|
2
|
+
globalThis.process = globalThis.process || { env: {} };
|
|
3
|
+
globalThis.global = globalThis.global || globalThis;
|
|
4
|
+
function cn(l) {
|
|
5
|
+
return l.innerRadius;
|
|
6
|
+
}
|
|
7
|
+
function gn(l) {
|
|
8
|
+
return l.outerRadius;
|
|
9
|
+
}
|
|
10
|
+
function yn(l) {
|
|
11
|
+
return l.startAngle;
|
|
12
|
+
}
|
|
13
|
+
function pn(l) {
|
|
14
|
+
return l.endAngle;
|
|
15
|
+
}
|
|
16
|
+
function dn(l) {
|
|
17
|
+
return l && l.padAngle;
|
|
18
|
+
}
|
|
19
|
+
function hn(l, x, S, I, v, T, K, a) {
|
|
20
|
+
var q = S - l, u = I - x, n = K - v, p = a - T, s = p * q - n * u;
|
|
21
|
+
if (!(s * s < g))
|
|
22
|
+
return s = (n * (x - T) - p * (l - v)) / s, [l + s * q, x + s * u];
|
|
23
|
+
}
|
|
24
|
+
function F(l, x, S, I, v, T, K) {
|
|
25
|
+
var a = l - S, q = x - I, u = (K ? T : -T) / X(a * a + q * q), n = u * q, p = -u * a, s = l + n, i = x + p, f = S + n, c = I + p, M = (s + f) / 2, o = (i + c) / 2, d = f - s, y = c - i, A = d * d + y * y, R = v - T, b = s * c - f * i, D = (y < 0 ? -1 : 1) * X(fn(0, R * R * A - b * b)), E = (b * y - d * D) / A, H = (-b * d - y * D) / A, P = (b * y + d * D) / A, h = (-b * d + y * D) / A, m = E - M, e = H - o, r = P - M, N = h - o;
|
|
26
|
+
return m * m + e * e > r * r + N * N && (E = P, H = h), {
|
|
27
|
+
cx: E,
|
|
28
|
+
cy: H,
|
|
29
|
+
x01: -n,
|
|
30
|
+
y01: -p,
|
|
31
|
+
x11: E * (v / R - 1),
|
|
32
|
+
y11: H * (v / R - 1)
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function xn() {
|
|
36
|
+
var l = cn, x = gn, S = J(0), I = null, v = yn, T = pn, K = dn, a = null, q = ln(u);
|
|
37
|
+
function u() {
|
|
38
|
+
var n, p, s = +l.apply(this, arguments), i = +x.apply(this, arguments), f = v.apply(this, arguments) - an, c = T.apply(this, arguments) - an, M = sn(c - f), o = c > f;
|
|
39
|
+
if (a || (a = n = q()), i < s && (p = i, i = s, s = p), !(i > g)) a.moveTo(0, 0);
|
|
40
|
+
else if (M > on - g)
|
|
41
|
+
a.moveTo(i * Q(f), i * w(f)), a.arc(0, 0, i, f, c, !o), s > g && (a.moveTo(s * Q(c), s * w(c)), a.arc(0, 0, s, c, f, o));
|
|
42
|
+
else {
|
|
43
|
+
var d = f, y = c, A = f, R = c, b = M, D = M, E = K.apply(this, arguments) / 2, H = E > g && (I ? +I.apply(this, arguments) : X(s * s + i * i)), P = _(sn(i - s) / 2, +S.apply(this, arguments)), h = P, m = P, e, r;
|
|
44
|
+
if (H > g) {
|
|
45
|
+
var N = un(H / s * w(E)), Y = un(H / i * w(E));
|
|
46
|
+
(b -= N * 2) > g ? (N *= o ? 1 : -1, A += N, R -= N) : (b = 0, A = R = (f + c) / 2), (D -= Y * 2) > g ? (Y *= o ? 1 : -1, d += Y, y -= Y) : (D = 0, d = y = (f + c) / 2);
|
|
47
|
+
}
|
|
48
|
+
var V = i * Q(d), W = i * w(d), j = s * Q(R), z = s * w(R);
|
|
49
|
+
if (P > g) {
|
|
50
|
+
var B = i * Q(y), C = i * w(y), G = s * Q(A), L = s * w(A), O;
|
|
51
|
+
if (M < rn)
|
|
52
|
+
if (O = hn(V, W, G, L, B, C, j, z)) {
|
|
53
|
+
var U = V - O[0], Z = W - O[1], $ = B - O[0], k = C - O[1], nn = 1 / w(tn((U * $ + Z * k) / (X(U * U + Z * Z) * X($ * $ + k * k))) / 2), en = X(O[0] * O[0] + O[1] * O[1]);
|
|
54
|
+
h = _(P, (s - en) / (nn - 1)), m = _(P, (i - en) / (nn + 1));
|
|
55
|
+
} else
|
|
56
|
+
h = m = 0;
|
|
57
|
+
}
|
|
58
|
+
D > g ? m > g ? (e = F(G, L, V, W, i, m, o), r = F(B, C, j, z, i, m, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), m < P ? a.arc(e.cx, e.cy, m, t(e.y01, e.x01), t(r.y01, r.x01), !o) : (a.arc(e.cx, e.cy, m, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, i, t(e.cy + e.y11, e.cx + e.x11), t(r.cy + r.y11, r.cx + r.x11), !o), a.arc(r.cx, r.cy, m, t(r.y11, r.x11), t(r.y01, r.x01), !o))) : (a.moveTo(V, W), a.arc(0, 0, i, d, y, !o)) : a.moveTo(V, W), !(s > g) || !(b > g) ? a.lineTo(j, z) : h > g ? (e = F(j, z, B, C, s, -h, o), r = F(V, W, G, L, s, -h, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), h < P ? a.arc(e.cx, e.cy, h, t(e.y01, e.x01), t(r.y01, r.x01), !o) : (a.arc(e.cx, e.cy, h, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, s, t(e.cy + e.y11, e.cx + e.x11), t(r.cy + r.y11, r.cx + r.x11), o), a.arc(r.cx, r.cy, h, t(r.y11, r.x11), t(r.y01, r.x01), !o))) : a.arc(0, 0, s, R, A, o);
|
|
59
|
+
}
|
|
60
|
+
if (a.closePath(), n) return a = null, n + "" || null;
|
|
61
|
+
}
|
|
62
|
+
return u.centroid = function() {
|
|
63
|
+
var n = (+l.apply(this, arguments) + +x.apply(this, arguments)) / 2, p = (+v.apply(this, arguments) + +T.apply(this, arguments)) / 2 - rn / 2;
|
|
64
|
+
return [Q(p) * n, w(p) * n];
|
|
65
|
+
}, u.innerRadius = function(n) {
|
|
66
|
+
return arguments.length ? (l = typeof n == "function" ? n : J(+n), u) : l;
|
|
67
|
+
}, u.outerRadius = function(n) {
|
|
68
|
+
return arguments.length ? (x = typeof n == "function" ? n : J(+n), u) : x;
|
|
69
|
+
}, u.cornerRadius = function(n) {
|
|
70
|
+
return arguments.length ? (S = typeof n == "function" ? n : J(+n), u) : S;
|
|
71
|
+
}, u.padRadius = function(n) {
|
|
72
|
+
return arguments.length ? (I = n == null ? null : typeof n == "function" ? n : J(+n), u) : I;
|
|
73
|
+
}, u.startAngle = function(n) {
|
|
74
|
+
return arguments.length ? (v = typeof n == "function" ? n : J(+n), u) : v;
|
|
75
|
+
}, u.endAngle = function(n) {
|
|
76
|
+
return arguments.length ? (T = typeof n == "function" ? n : J(+n), u) : T;
|
|
77
|
+
}, u.padAngle = function(n) {
|
|
78
|
+
return arguments.length ? (K = typeof n == "function" ? n : J(+n), u) : K;
|
|
79
|
+
}, u.context = function(n) {
|
|
80
|
+
return arguments.length ? (a = n ?? null, u) : a;
|
|
81
|
+
}, u;
|
|
82
|
+
}
|
|
83
|
+
export {
|
|
84
|
+
xn as d
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=arc-Cpnt_LFj.js.map
|