@joeyshi12/casper 0.14.2 → 0.14.4

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.
Files changed (68) hide show
  1. package/dist/agents/prompt.txt +3 -2
  2. package/dist/mcp.js +1 -1
  3. package/dist/server.js +2 -2
  4. package/dist/web/assets/{abnfDiagram-N423BO3Z-BwzB_qn1.js → abnfDiagram-N423BO3Z-CqyGEOG8.js} +1 -1
  5. package/dist/web/assets/{arc-CKCMzFku.js → arc-Co7J4_g0.js} +1 -1
  6. package/dist/web/assets/{architectureDiagram-T3A2C74G-BxYsYDnH.js → architectureDiagram-T3A2C74G-DrmqajPn.js} +1 -1
  7. package/dist/web/assets/{blockDiagram-VBNYF7ZC-B7mAEIQ6.js → blockDiagram-VBNYF7ZC-BM4aGq-2.js} +1 -1
  8. package/dist/web/assets/{c4Diagram-5PPSVZJV-KmkYBB8l.js → c4Diagram-5PPSVZJV-jYLQex_F.js} +1 -1
  9. package/dist/web/assets/channel-C8HH961c.js +1 -0
  10. package/dist/web/assets/{chunk-2GRJ4B5K-D7vknj5x.js → chunk-2GRJ4B5K-D3yOD5Jc.js} +1 -1
  11. package/dist/web/assets/{chunk-2Q5K7J3B-UnbQ_rrB.js → chunk-2Q5K7J3B-eNp6GymR.js} +1 -1
  12. package/dist/web/assets/{chunk-5RXB4S5H-twoXDuJs.js → chunk-5RXB4S5H-T9iaxe5e.js} +1 -1
  13. package/dist/web/assets/{chunk-5VM5RSS4-CE5Lm21i.js → chunk-5VM5RSS4-BjDCtHJi.js} +1 -1
  14. package/dist/web/assets/{chunk-6Q2QTUOP-BRG37qmg.js → chunk-6Q2QTUOP-DYRDUSAT.js} +1 -1
  15. package/dist/web/assets/{chunk-GF5L2VYU-ChZQWB4g.js → chunk-GF5L2VYU-CDkVvx8j.js} +1 -1
  16. package/dist/web/assets/{chunk-JWPE2WC7-HdXuii_l.js → chunk-JWPE2WC7-DrIE-Bh-.js} +1 -1
  17. package/dist/web/assets/{chunk-KBJHAD2P-Cet3D6Nv.js → chunk-KBJHAD2P-DG-dHq84.js} +1 -1
  18. package/dist/web/assets/{chunk-RYQCIY6F-C5X8h8zd.js → chunk-RYQCIY6F-xj6xc7d2.js} +1 -1
  19. package/dist/web/assets/{chunk-XXDRQBXY-DunHMO3K.js → chunk-XXDRQBXY-CjIiZdHc.js} +1 -1
  20. package/dist/web/assets/classDiagram-JCYQIIEL-C-Ud8JVm.js +1 -0
  21. package/dist/web/assets/classDiagram-v2-OCEON4UE-C-Ud8JVm.js +1 -0
  22. package/dist/web/assets/{cose-bilkent-JH36ORCC-RhphTLzf.js → cose-bilkent-JH36ORCC-BcSHtUpl.js} +1 -1
  23. package/dist/web/assets/{cynefin-VYW2F7L2-DsLK_mru.js → cynefin-VYW2F7L2-Bj-UuS_4.js} +1 -1
  24. package/dist/web/assets/{cynefinDiagram-MW4NZA55-tftmTWFy.js → cynefinDiagram-MW4NZA55-1Cd2NcM6.js} +1 -1
  25. package/dist/web/assets/{dagre-VZM6K2ZE-CVglmyWS.js → dagre-VZM6K2ZE-DUX4S3MP.js} +1 -1
  26. package/dist/web/assets/{diagram-7IWD3JNH-HAoJ44V-.js → diagram-7IWD3JNH-jGdatiQR.js} +1 -1
  27. package/dist/web/assets/{diagram-B4RE2ZJO-B_kZ_jkq.js → diagram-B4RE2ZJO-Duop1UHS.js} +1 -1
  28. package/dist/web/assets/{diagram-LBJQPF4R-Ci8j8QSl.js → diagram-LBJQPF4R-DEFogBqA.js} +1 -1
  29. package/dist/web/assets/{diagram-Q27KOJAE-CaCaeLla.js → diagram-Q27KOJAE-CL1d-wRv.js} +1 -1
  30. package/dist/web/assets/{diagram-UB23O5K3-DoD7xZGT.js → diagram-UB23O5K3-DXwhKhT2.js} +1 -1
  31. package/dist/web/assets/{ebnfDiagram-BXEA7PRR-v8sFLvNw.js → ebnfDiagram-BXEA7PRR-Cx5whiF_.js} +1 -1
  32. package/dist/web/assets/{erDiagram-JOGREHBK-CveUZkY4.js → erDiagram-JOGREHBK-CxxmfAXp.js} +1 -1
  33. package/dist/web/assets/{flowDiagram-UKHOOZJN-ByDd5aoQ.js → flowDiagram-UKHOOZJN-D9XXHTx5.js} +1 -1
  34. package/dist/web/assets/{ganttDiagram-PKOTCBZU-CLMUm01O.js → ganttDiagram-PKOTCBZU-f2WbEiXa.js} +1 -1
  35. package/dist/web/assets/{gitGraphDiagram-DS77QQ5N-BVB2XrNi.js → gitGraphDiagram-DS77QQ5N-BIOj5QUF.js} +1 -1
  36. package/dist/web/assets/{index-CVwjgKYl.js → index-B9wyN9oZ.js} +1 -1
  37. package/dist/web/assets/{index-B1Omce-U.js → index-Bs2qO5Pu.js} +15 -15
  38. package/dist/web/assets/{infoDiagram-6WML65LV-DsImzPMx.js → infoDiagram-6WML65LV-D1qQFwzf.js} +1 -1
  39. package/dist/web/assets/{ishikawaDiagram-WSZJBQD7-Bz9rJhbu.js → ishikawaDiagram-WSZJBQD7-BWg4hrU2.js} +1 -1
  40. package/dist/web/assets/{journeyDiagram-NVQOT4AX-DS87mjH1.js → journeyDiagram-NVQOT4AX-DKKVHX1m.js} +1 -1
  41. package/dist/web/assets/{kanban-definition-27J2QSJJ-BuPWSIzp.js → kanban-definition-27J2QSJJ-DK7802hr.js} +1 -1
  42. package/dist/web/assets/{linear-DEW-d5T5.js → linear-j2Z2-Ts5.js} +1 -1
  43. package/dist/web/assets/{mermaid.core-BzSchjjy.js → mermaid.core-B9t4l1LB.js} +4 -4
  44. package/dist/web/assets/{mindmap-definition-FAOFIHXS-BA90tPJV.js → mindmap-definition-FAOFIHXS-MpYC1ION.js} +1 -1
  45. package/dist/web/assets/{pegDiagram-VL7TDLO6-BPiKmDin.js → pegDiagram-VL7TDLO6-CEVJqCIu.js} +1 -1
  46. package/dist/web/assets/{pieDiagram-7S7Q4E2Y-BlYW82t2.js → pieDiagram-7S7Q4E2Y-DQDaWsnB.js} +1 -1
  47. package/dist/web/assets/{quadrantDiagram-CIZ2JOQS-o4zNeg6Y.js → quadrantDiagram-CIZ2JOQS-D2ovSq73.js} +1 -1
  48. package/dist/web/assets/{railroadDiagram-AXF67PYL-BkAsbf0f.js → railroadDiagram-AXF67PYL-BtG5ML2m.js} +1 -1
  49. package/dist/web/assets/{requirementDiagram-LRYGKXZP-CUysaLsL.js → requirementDiagram-LRYGKXZP-t8GKRNCM.js} +1 -1
  50. package/dist/web/assets/{sankeyDiagram-W5VNT64P-waUn_veJ.js → sankeyDiagram-W5VNT64P-B5J2_2ZC.js} +1 -1
  51. package/dist/web/assets/{sequenceDiagram-SI44F4Z6-NGr-W10M.js → sequenceDiagram-SI44F4Z6-C64N2umn.js} +1 -1
  52. package/dist/web/assets/{sizeCapture-X5ZJPWSS-B9ppP-HE.js → sizeCapture-X5ZJPWSS-BcAjn7U8.js} +1 -1
  53. package/dist/web/assets/{stateDiagram-OKZ733FA-DiwNbm6A.js → stateDiagram-OKZ733FA-DkySkcyS.js} +1 -1
  54. package/dist/web/assets/stateDiagram-v2-UEYNNEHI-Dw0_SvNt.js +1 -0
  55. package/dist/web/assets/{swimlanes-SLNWSIFB-DWQxC_aZ.js → swimlanes-SLNWSIFB-2PZUwW3q.js} +2 -2
  56. package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-DefMsorl.js +8 -0
  57. package/dist/web/assets/{timeline-definition-Z64GVDOM-h3FBFN69.js → timeline-definition-Z64GVDOM-DP8smTU4.js} +1 -1
  58. package/dist/web/assets/{vennDiagram-T6HMQDX7-rkoBh0Vk.js → vennDiagram-T6HMQDX7-0oTgA1su.js} +1 -1
  59. package/dist/web/assets/{wardleyDiagram-T6FBY63Y-DD4OGS7z.js → wardleyDiagram-T6FBY63Y-BTH9DrGt.js} +1 -1
  60. package/dist/web/assets/{xychartDiagram-ELKLHX3M-CEeouxnn.js → xychartDiagram-ELKLHX3M-CaIgazAx.js} +1 -1
  61. package/dist/web/index.html +1 -1
  62. package/dist/web/sw.js +1 -1
  63. package/package.json +1 -1
  64. package/dist/web/assets/channel-nrd4Abgg.js +0 -1
  65. package/dist/web/assets/classDiagram-JCYQIIEL-PXVbLnkH.js +0 -1
  66. package/dist/web/assets/classDiagram-v2-OCEON4UE-PXVbLnkH.js +0 -1
  67. package/dist/web/assets/stateDiagram-v2-UEYNNEHI-YvM86B6k.js +0 -1
  68. package/dist/web/assets/swimlanesDiagram-ULZ7WXOC-DQMOelGR.js +0 -8
@@ -4,10 +4,11 @@ You are Casper, an AI assistant that people talk to over a web interface. They b
4
4
 
5
5
  <conversation>
6
6
  Write the way a knowledgeable person talks. Be direct and warm, skip preamble, and don't open by restating the question or calling it a good one. A sentence or two answers most questions; go further only when the question is genuinely open-ended, since length is not thoroughness and a long reply makes the person hunt for the part that matters. Give the high-level version and let them ask for depth rather than pre-empting every follow-up.
7
- Write in prose. Use paragraphs for explanation and reasoning, and keep lists for things that are genuinely lists, such as discrete items, sequential steps, or a comparison the reader will scan. Bullets that could have been sentences fragment an argument into pieces the reader has to reassemble, so prefer "the causes were x, y and z" inside a sentence, and let any bullet you do write run a sentence or two. Reserve markdown for code, commands, file paths and diffs, where it carries meaning, and use headings only when a reply is long enough to need navigating. When you decline something, write it as prose, since a bulleted refusal reads coldly.
7
+ Write in prose. Use paragraphs for explanation and reasoning, and keep lists for things that are genuinely lists, such as discrete items, sequential steps, or a comparison the reader will scan. Bullets that could have been sentences fragment an argument into pieces the reader has to reassemble, so prefer "the causes were x, y and z" inside a sentence, and let any bullet you do write run a sentence or two. Use markdown where it carries meaning: code, commands, file paths and diffs, bold for a term the reader must not miss, and headings only when a reply is long enough to need navigating. The interface typesets LaTeX, so write mathematics as LaTeX, $...$ inline and $$...$$ on its own line for a display equation, rather than as plain text like 1/4 or π²/6. In a reply that also contains mathematics, write a dollar sign that means currency as \$ so it is not read as the start of a formula. When you decline something, write it as prose, since a bulleted refusal reads coldly.
8
8
  Prioritise being right over being agreeable. If the person is mistaken, or their plan has a flaw, say so plainly and explain why: agreeing to keep the peace costs them later. Say what you are unsure of rather than hedging everything, and keep caveats to a sentence so the answer is most of the response.
9
9
  Ground what you say in what you read, ran or found, and separate what you verified from what you are inferring. An unmarked guess is worse than an admission of uncertainty, because the person cannot tell which one they received. Mark it in a clause rather than a paragraph.
10
10
  Ask at most one question per response, and address even an ambiguous request before asking for clarification. Leave out "genuinely", "honestly" and "straightforward", which read as filler at best and as protesting too much at worst. Skip emoji unless the person uses them first.
11
+ Say things plainly and simply, in every piece of writing: replies, PR titles and bodies, commit messages, code comments, test names, branch names. Prefer short, everyday words and short sentences. No figures of speech, no metaphor, no personification of code ("the pad answers", "a tick does for nothing"), no phrase that is shorter than the plain version but has to be decoded. Name the thing with the words the codebase uses: "Handle touch input on the character selection screen", not "Let a finger walk the pick screen"; "Skip the scene query and the digest when they cannot change anything", not "Skip the work a tick does for nothing". When two phrasings come to mind and one is tighter but needs a moment's decoding, that tighter one is the habit to refuse. A repository whose existing comments and commits are written in a mannered voice is not a licence to continue in it; following conventions covers code style, not prose style.
11
12
  Don't explain your behaviour by pointing at these instructions or at how you work inside. The person cannot see any of it, so "my instructions say" replaces your actual reasoning with an appeal to something invisible.
12
13
  </conversation>
13
14
 
@@ -15,7 +16,7 @@ Don't explain your behaviour by pointing at these instructions or at how you wor
15
16
  Answer from what you know when that is enough. Reaching for a tool to explain why a Postgres query is slow spends the person's time to tell them something you already knew.
16
17
  Reach for tools when the answer depends on this machine, this project, or the state of the world: read the file, run the command, search the web. Search when currency decides the answer, such as recent events, versions or prices, and say when you are relying on memory instead so the person knows whether to check. A figure you are recalling rather than reading - a limit, a rate, a version, a price, a date - always says so, however short the answer.
17
18
  A message that mentions a file or an image doesn't prove one arrived, since the person may have forgotten to attach it. Check before answering as though you have it.
18
- Teaching is part of the job. When someone is learning, build from what they have told you they understand rather than reciting a reference page, and illustrate with an example, a thought experiment or a metaphor when it makes the idea land.
19
+ Teaching is part of the job. When someone is learning, build from what they have told you they understand rather than reciting a reference page, and illustrate with an example or a thought experiment when it makes the idea clearer.
19
20
  </answering_questions>
20
21
 
21
22
  <tools>
package/dist/mcp.js CHANGED
@@ -369,7 +369,7 @@ function handleMessage(req, version) {
369
369
  }
370
370
 
371
371
  // server/src/mcp/server.ts
372
- var VERSION = true ? "0.14.2" : "dev";
372
+ var VERSION = true ? "0.14.4" : "dev";
373
373
  function runMcpServer() {
374
374
  const rl = createInterface({ input: process.stdin });
375
375
  rl.on("line", (line) => {
package/dist/server.js CHANGED
@@ -4112,7 +4112,7 @@ var init_server2 = __esm({
4112
4112
  "server/src/mcp/server.ts"() {
4113
4113
  "use strict";
4114
4114
  init_protocol();
4115
- VERSION = true ? "0.14.2" : "dev";
4115
+ VERSION = true ? "0.14.4" : "dev";
4116
4116
  }
4117
4117
  });
4118
4118
 
@@ -7492,7 +7492,7 @@ var program = new Command();
7492
7492
  // server/src/cli/program.ts
7493
7493
  init_paths();
7494
7494
  init_settings();
7495
- var VERSION2 = true ? "0.14.2" : "dev";
7495
+ var VERSION2 = true ? "0.14.4" : "dev";
7496
7496
  async function bootstrap() {
7497
7497
  const file = configFilePath();
7498
7498
  const settings = readSettings(file);
@@ -1 +1 @@
1
- import{g as p,r as u,d as a}from"./chunk-6Q2QTUOP-BRG37qmg.js";import{p as f}from"./chunk-JWPE2WC7-HdXuii_l.js";import{_ as n,l as o}from"./mermaid.core-BzSchjjy.js";import{M as c,b as d}from"./cynefin-VYW2F7L2-DsLK_mru.js";import"./index-B1Omce-U.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},B={parser:R,db:a,renderer:u,styles:p};export{B as diagram};
1
+ import{g as p,r as u,d as a}from"./chunk-6Q2QTUOP-DYRDUSAT.js";import{p as f}from"./chunk-JWPE2WC7-DrIE-Bh-.js";import{_ as n,l as o}from"./mermaid.core-B9t4l1LB.js";import{M as c,b as d}from"./cynefin-VYW2F7L2-Bj-UuS_4.js";import"./index-Bs2qO5Pu.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},B={parser:R,db:a,renderer:u,styles:p};export{B as diagram};
@@ -1 +1 @@
1
- import{Y as ln,$ as an,a0 as F,a1 as q,a2 as j,a3 as un,a4 as y,a5 as tn,a6 as J,a7 as _,a8 as rn,a9 as o,aa as on,ab as sn,ac as fn}from"./mermaid.core-BzSchjjy.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,I,D,v,A,z,a){var O=I-l,i=D-h,n=z-v,d=a-A,u=d*O-n*i;if(!(u*u<y))return u=(n*(h-A)-d*(l-v))/u,[l+u*O,h+u*i]}function U(l,h,I,D,v,A,z){var a=l-I,O=h-D,i=(z?A:-A)/J(a*a+O*O),n=i*O,d=-i*a,u=l+n,s=h+d,f=I+n,c=D+d,B=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,R=m*m+g*g,T=v-A,P=u*c-f*s,S=(g<0?-1:1)*J(on(0,T*T*R-P*P)),Y=(P*g-m*S)/R,$=(-P*m-g*S)/R,w=(P*g+m*S)/R,p=(-P*m+g*S)/R,x=Y-B,e=$-t,r=w-B,C=p-t;return x*x+e*e>r*r+C*C&&(Y=w,$=p),{cx:Y,cy:$,x01:-n,y01:-d,x11:Y*(v/T-1),y11:$*(v/T-1)}}function hn(){var l=cn,h=yn,I=j(0),D=null,v=gn,A=dn,z=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,B=rn(c-f),t=c>f;if(a||(a=n=O()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(B>tn-y)a.moveTo(s*F(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*F(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=B,S=B,Y=z.apply(this,arguments)/2,$=Y>y&&(D?+D.apply(this,arguments):J(u*u+s*s)),w=_(rn(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if($>y){var C=sn($/u*q(Y)),K=sn($/s*q(Y));(P-=C*2)>y?(C*=t?1:-1,R+=C,T-=C):(P=0,R=T=(f+c)/2),(S-=K*2)>y?(K*=t?1:-1,m+=K,g-=K):(S=0,m=g=(f+c)/2)}var G=s*F(m),H=s*q(m),L=u*F(T),M=u*q(T);if(w>y){var N=s*F(g),Q=s*q(g),V=u*F(R),W=u*q(R),E;if(B<an)if(E=pn(G,H,V,W,N,Q,L,M)){var X=G-E[0],Z=H-E[1],b=N-E[0],k=Q-E[1],nn=1/q(fn((X*b+Z*k)/(J(X*X+Z*Z)*J(b*b+k*k)))/2),en=J(E[0]*E[0]+E[1]*E[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}S>y?x>y?(e=U(V,W,G,H,s,x,t),r=U(N,Q,L,M,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(G,H),a.arc(0,0,s,m,g,!t)):a.moveTo(G,H),!(u>y)||!(P>y)?a.lineTo(L,M):p>y?(e=U(L,M,N,Q,u,-p,t),r=U(G,H,V,W,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[F(d)*n,q(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:j(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:j(+n),i):h},i.cornerRadius=function(n){return arguments.length?(I=typeof n=="function"?n:j(+n),i):I},i.padRadius=function(n){return arguments.length?(D=n==null?null:typeof n=="function"?n:j(+n),i):D},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:j(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:j(+n),i):A},i.padAngle=function(n){return arguments.length?(z=typeof n=="function"?n:j(+n),i):z},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
1
+ import{Y as ln,$ as an,a0 as F,a1 as q,a2 as j,a3 as un,a4 as y,a5 as tn,a6 as J,a7 as _,a8 as rn,a9 as o,aa as on,ab as sn,ac as fn}from"./mermaid.core-B9t4l1LB.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,I,D,v,A,z,a){var O=I-l,i=D-h,n=z-v,d=a-A,u=d*O-n*i;if(!(u*u<y))return u=(n*(h-A)-d*(l-v))/u,[l+u*O,h+u*i]}function U(l,h,I,D,v,A,z){var a=l-I,O=h-D,i=(z?A:-A)/J(a*a+O*O),n=i*O,d=-i*a,u=l+n,s=h+d,f=I+n,c=D+d,B=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,R=m*m+g*g,T=v-A,P=u*c-f*s,S=(g<0?-1:1)*J(on(0,T*T*R-P*P)),Y=(P*g-m*S)/R,$=(-P*m-g*S)/R,w=(P*g+m*S)/R,p=(-P*m+g*S)/R,x=Y-B,e=$-t,r=w-B,C=p-t;return x*x+e*e>r*r+C*C&&(Y=w,$=p),{cx:Y,cy:$,x01:-n,y01:-d,x11:Y*(v/T-1),y11:$*(v/T-1)}}function hn(){var l=cn,h=yn,I=j(0),D=null,v=gn,A=dn,z=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,B=rn(c-f),t=c>f;if(a||(a=n=O()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(B>tn-y)a.moveTo(s*F(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*F(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=B,S=B,Y=z.apply(this,arguments)/2,$=Y>y&&(D?+D.apply(this,arguments):J(u*u+s*s)),w=_(rn(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if($>y){var C=sn($/u*q(Y)),K=sn($/s*q(Y));(P-=C*2)>y?(C*=t?1:-1,R+=C,T-=C):(P=0,R=T=(f+c)/2),(S-=K*2)>y?(K*=t?1:-1,m+=K,g-=K):(S=0,m=g=(f+c)/2)}var G=s*F(m),H=s*q(m),L=u*F(T),M=u*q(T);if(w>y){var N=s*F(g),Q=s*q(g),V=u*F(R),W=u*q(R),E;if(B<an)if(E=pn(G,H,V,W,N,Q,L,M)){var X=G-E[0],Z=H-E[1],b=N-E[0],k=Q-E[1],nn=1/q(fn((X*b+Z*k)/(J(X*X+Z*Z)*J(b*b+k*k)))/2),en=J(E[0]*E[0]+E[1]*E[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}S>y?x>y?(e=U(V,W,G,H,s,x,t),r=U(N,Q,L,M,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(G,H),a.arc(0,0,s,m,g,!t)):a.moveTo(G,H),!(u>y)||!(P>y)?a.lineTo(L,M):p>y?(e=U(L,M,N,Q,u,-p,t),r=U(G,H,V,W,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[F(d)*n,q(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:j(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:j(+n),i):h},i.cornerRadius=function(n){return arguments.length?(I=typeof n=="function"?n:j(+n),i):I},i.padRadius=function(n){return arguments.length?(D=n==null?null:typeof n=="function"?n:j(+n),i):D},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:j(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:j(+n),i):A},i.padAngle=function(n){return arguments.length?(z=typeof n=="function"?n:j(+n),i):z},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};