grimoire3d 0.4.1-dev.44cf0cb → 0.4.1
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/cli/static-pages.js +6 -9
- package/dist/site/assets/BookReader-SE4dJZfI.js +2 -0
- package/dist/site/assets/{BookScene-Djd774uv.js → BookScene-D66opUpT.js} +1 -1
- package/dist/site/assets/{DiagramViewer-Cey3Laup.js → DiagramViewer-D0KkUbyD.js} +1 -1
- package/dist/site/assets/{MermaidDiagram-CMU9o0u8.js → MermaidDiagram-ygffYb-m.js} +4 -4
- package/dist/site/assets/{PageMarkdown-BOsM_a3N.js → PageMarkdown-eYkrzJvo.js} +3 -3
- package/dist/site/assets/{SearchDialog-B2mvr9lr.js → SearchDialog-BGpJffal.js} +1 -1
- package/dist/site/assets/{abnfDiagram-S7VZAUFO-BWK4o7yf.js → abnfDiagram-S7VZAUFO-DjLpWCRL.js} +1 -1
- package/dist/site/assets/{architecture-WOLXFQ4H-99YBhkaP.js → architecture-WOLXFQ4H-DdaUWoL1.js} +1 -1
- package/dist/site/assets/{architectureDiagram-YGSQEFNW-CBM_vGMb.js → architectureDiagram-YGSQEFNW-Bw5QOeTQ.js} +1 -1
- package/dist/site/assets/{blockDiagram-APKKGZFW-DnRyW9DS.js → blockDiagram-APKKGZFW--LOo2MWq.js} +1 -1
- package/dist/site/assets/{c4Diagram-KJ2TOQU5-CjptGnYE.js → c4Diagram-KJ2TOQU5-Cc0ozzuL.js} +1 -1
- package/dist/site/assets/{chunk-6MUBBAK2-L99J15PY.js → chunk-6MUBBAK2-CWlgffVt.js} +1 -1
- package/dist/site/assets/{chunk-AXFCVDMN-ClIA_QS6.js → chunk-AXFCVDMN-BLcMGoIA.js} +1 -1
- package/dist/site/assets/{chunk-BG4553SI-DRCzH4Vl.js → chunk-BG4553SI-BcspVJor.js} +1 -1
- package/dist/site/assets/{chunk-DQASFODM-DBH5KGZg.js → chunk-DQASFODM-D0xZNdZz.js} +1 -1
- package/dist/site/assets/{chunk-HFQBQIA3-q0DxJVrb.js → chunk-HFQBQIA3-CwKG2G2g.js} +1 -1
- package/dist/site/assets/{chunk-KQLB2F66-C6NP4zKh.js → chunk-KQLB2F66-CSXTl6Hq.js} +1 -1
- package/dist/site/assets/{chunk-KS47KZWR-CKYFJwDW.js → chunk-KS47KZWR-DSCKZ1bH.js} +1 -1
- package/dist/site/assets/{chunk-LEVMRMFU-Ceuopf0R.js → chunk-LEVMRMFU-D2pNijXQ.js} +1 -1
- package/dist/site/assets/{chunk-M57EVK23-nTcEvFdU.js → chunk-M57EVK23-CenoL2DJ.js} +1 -1
- package/dist/site/assets/{chunk-OY52VR5R-B0M_850Q.js → chunk-OY52VR5R-XSlZiBnF.js} +1 -1
- package/dist/site/assets/{chunk-QB3YPZ4I-1Tnr2daA.js → chunk-QB3YPZ4I-B_9JHWDh.js} +1 -1
- package/dist/site/assets/{chunk-R3KSYZAL-BEJHXS4U.js → chunk-R3KSYZAL-B_uKHMt4.js} +1 -1
- package/dist/site/assets/{chunk-STOXU5M4-CUQJeN-M.js → chunk-STOXU5M4-CHtPv0Yd.js} +1 -1
- package/dist/site/assets/{chunk-TU62E6Q5-1pHEK7cM.js → chunk-TU62E6Q5-DS50zfhC.js} +1 -1
- package/dist/site/assets/{chunk-X4PVCEUW-BMIQ_VzT.js → chunk-X4PVCEUW-EYN8McR9.js} +1 -1
- package/dist/site/assets/{chunk-XXDRQBXY-BW4ka3Ht.js → chunk-XXDRQBXY-DZhGcTjI.js} +1 -1
- package/dist/site/assets/{classDiagram-v2-L25IHNXF-CZLEqvw2.js → classDiagram-v2-L25IHNXF-Ttm_J8E_.js} +1 -1
- package/dist/site/assets/{cose-bilkent-JH36ORCC-mwmc38V3.js → cose-bilkent-JH36ORCC-CbEULJ3K.js} +1 -1
- package/dist/site/assets/cynefin-EF2NZ3EQ-DAsXpmei.js +1 -0
- package/dist/site/assets/{cynefinDiagram-L36ESFBY-DtCEmbOX.js → cynefinDiagram-L36ESFBY-Dnau00Hs.js} +1 -1
- package/dist/site/assets/{d3-selection-DH-HRURv.js → d3-selection-B6Leru-d.js} +1 -1
- package/dist/site/assets/{dagre-SPEB5RXH-gJehBGmm.js → dagre-SPEB5RXH-CDwGREeE.js} +1 -1
- package/dist/site/assets/{diagram-3B7GL73J-XCJxECrO.js → diagram-3B7GL73J-CA1pGBb5.js} +1 -1
- package/dist/site/assets/{diagram-DNEMPZML-Di079n_V.js → diagram-DNEMPZML-yNx6L8u9.js} +1 -1
- package/dist/site/assets/{diagram-L3MUGCDN-Dt8_UnUs.js → diagram-L3MUGCDN-n6iu19Me.js} +1 -1
- package/dist/site/assets/{diagram-LA4NIPWU-DuTxWRKN.js → diagram-LA4NIPWU-DKjtOyDI.js} +1 -1
- package/dist/site/assets/{diagram-MHCOC4E2-9R8LhC5g.js → diagram-MHCOC4E2-xnmoraM_.js} +1 -1
- package/dist/site/assets/{diagram-XPFHEONP-CKCTgv5N.js → diagram-XPFHEONP-Ctn7xQOg.js} +1 -1
- package/dist/site/assets/{dist-XeriZr6I.js → dist-BXMzeT3a.js} +1 -1
- package/dist/site/assets/{ebnfDiagram-UZSYDL2S-DJpocIUJ.js → ebnfDiagram-UZSYDL2S-BEW44JPW.js} +1 -1
- package/dist/site/assets/{elk-XV6XMXQE-DuI6mebX.js → elk-XV6XMXQE-B0fAqyx5.js} +1 -1
- package/dist/site/assets/{erDiagram-EYBAPDEH-DJMGRxjW.js → erDiagram-EYBAPDEH-DpM7SiyR.js} +1 -1
- package/dist/site/assets/{eventmodeling-K75KTNOO-DqoWitVV.js → eventmodeling-K75KTNOO-C8T83l3X.js} +1 -1
- package/dist/site/assets/flowDiagram-MALGAFMO-T6NZR9vn.js +1 -0
- package/dist/site/assets/{ganttDiagram-23REXITY-C7GTawiB.js → ganttDiagram-23REXITY-DaJGMDM2.js} +1 -1
- package/dist/site/assets/gitGraph-VSP46ZUC-em89TqwX.js +1 -0
- package/dist/site/assets/{gitGraphDiagram-STJD7YCW-p6ia97cr.js → gitGraphDiagram-STJD7YCW-y0P4gPBL.js} +1 -1
- package/dist/site/assets/{index-BElFq0wQ.js → index-BrMNyMWf.js} +2 -2
- package/dist/site/assets/info-OHQRW6UA-CMdbrl3c.js +1 -0
- package/dist/site/assets/{infoDiagram-KBXO4MBG-BsqSfT9L.js → infoDiagram-KBXO4MBG-DnV-kliB.js} +1 -1
- package/dist/site/assets/{ishikawaDiagram-M35NCXHK-DSiub1jK.js → ishikawaDiagram-M35NCXHK-CMBU1p4z.js} +1 -1
- package/dist/site/assets/{journeyDiagram-OPLOXDXO-yk8C88Eq.js → journeyDiagram-OPLOXDXO-IeFOJ4uq.js} +1 -1
- package/dist/site/assets/{kanban-definition-BZKZHSQY-CTDSf6g7.js → kanban-definition-BZKZHSQY-BSB3BJom.js} +1 -1
- package/dist/site/assets/{mermaid-parser.core-CN1CG9zt.js → mermaid-parser.core-CmuythWW.js} +3 -3
- package/dist/site/assets/{mindmap-definition-I2QAS2VK-DC50sjpI.js → mindmap-definition-I2QAS2VK-Co9_BF4j.js} +1 -1
- package/dist/site/assets/packet-JDAUHWVQ-D9xTaS0e.js +1 -0
- package/dist/site/assets/{pegDiagram-FD4XPPHP-HC9eBMSM.js → pegDiagram-FD4XPPHP-DB5exPSQ.js} +1 -1
- package/dist/site/assets/pie-XZMESJXO-B6kvWsBj.js +1 -0
- package/dist/site/assets/{pieDiagram-J4AKIIQI-eWTnEiZ4.js → pieDiagram-J4AKIIQI-B6Z0Zb-I.js} +1 -1
- package/dist/site/assets/{quadrantDiagram-XTYBLID2-DymB5dax.js → quadrantDiagram-XTYBLID2-Dqim50_T.js} +1 -1
- package/dist/site/assets/radar-ABXABTNO-Cz83hQnV.js +1 -0
- package/dist/site/assets/railroad-I3PHUGI6-DM2Ofjr-.js +1 -0
- package/dist/site/assets/{railroad-abnf-LNEFI6M7-B9PJxN2B.js → railroad-abnf-LNEFI6M7-CZh1X2K8.js} +1 -1
- package/dist/site/assets/{railroad-ebnf-DWYD2UWJ-TFNJJ8on.js → railroad-ebnf-DWYD2UWJ-CunUK1NN.js} +1 -1
- package/dist/site/assets/{railroad-peg-JR7BVNR7-CwSAp_Mt.js → railroad-peg-JR7BVNR7-C2xx1CZE.js} +1 -1
- package/dist/site/assets/{railroadDiagram-MRQ6NCDL-B6C9x5Ve.js → railroadDiagram-MRQ6NCDL--zKhi2ZQ.js} +1 -1
- package/dist/site/assets/{requirementDiagram-Y7LWUY3S-AuVNlm8V.js → requirementDiagram-Y7LWUY3S-B-_VAhZV.js} +1 -1
- package/dist/site/assets/{sankeyDiagram-WGJFYUXA-BB8Gimgl.js → sankeyDiagram-WGJFYUXA-CqftTOgI.js} +1 -1
- package/dist/site/assets/{sequenceDiagram-5NDRBG5M-D_jKn_IU.js → sequenceDiagram-5NDRBG5M-BpiwP5hF.js} +1 -1
- package/dist/site/assets/{stateDiagram-v2-FJ4FJNEA-CRs7SbDo.js → stateDiagram-v2-FJ4FJNEA-C1diRqEB.js} +1 -1
- package/dist/site/assets/{swimlanes-UMQ2AFYF-Bo4tXTuH.js → swimlanes-UMQ2AFYF-C8Nr9mE2.js} +1 -1
- package/dist/site/assets/swimlanesDiagram-OMPLPG4O-Dt6psXVk.js +8 -0
- package/dist/site/assets/{timeline-definition-SEUHKTQE-DghWP2dN.js → timeline-definition-SEUHKTQE-B-_YLNbP.js} +1 -1
- package/dist/site/assets/treeView-D4JQ5SDB-Iyypracg.js +1 -0
- package/dist/site/assets/treemap-SAJKECNS-WKaBL1tm.js +1 -0
- package/dist/site/assets/{usecaseDiagram-AFA6YXN4-Dsxmm2_E.js → usecaseDiagram-AFA6YXN4-Dqqhdt26.js} +1 -1
- package/dist/site/assets/{vennDiagram-NNMJR3RB-Bco7a6Jk.js → vennDiagram-NNMJR3RB-D2Sl9h0a.js} +1 -1
- package/dist/site/assets/wardley-7MLQ67FV-LACIidNW.js +1 -0
- package/dist/site/assets/{wardleyDiagram-S7YFUSEH-IbNf4CB_.js → wardleyDiagram-S7YFUSEH-CyJ4Eojp.js} +1 -1
- package/dist/site/assets/{xychartDiagram-GGNKY7IX-BATZf5up.js → xychartDiagram-GGNKY7IX-C26zvBdA.js} +1 -1
- package/dist/site/index.html +1 -1
- package/package.json +1 -1
- package/dist/site/assets/BookReader-BW8eF_JO.js +0 -2
- package/dist/site/assets/cynefin-EF2NZ3EQ-D--Tu2zs.js +0 -1
- package/dist/site/assets/flowDiagram-MALGAFMO-BKi9642M.js +0 -1
- package/dist/site/assets/gitGraph-VSP46ZUC-CC0Rg_Up.js +0 -1
- package/dist/site/assets/info-OHQRW6UA-BeRqR5he.js +0 -1
- package/dist/site/assets/packet-JDAUHWVQ-C-OCJ_M6.js +0 -1
- package/dist/site/assets/pie-XZMESJXO-DIzysbs2.js +0 -1
- package/dist/site/assets/radar-ABXABTNO-B9Gttv9o.js +0 -1
- package/dist/site/assets/railroad-I3PHUGI6-BpSEeOCw.js +0 -1
- package/dist/site/assets/swimlanesDiagram-OMPLPG4O-D2zBVvNN.js +0 -8
- package/dist/site/assets/treeView-D4JQ5SDB-B7Cgb91z.js +0 -1
- package/dist/site/assets/treemap-SAJKECNS-BzenkytL.js +0 -1
- package/dist/site/assets/wardley-7MLQ67FV-vUqpgJ5_.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./PageMarkdown-BOsM_a3N.js";var t=Math.PI,n=2*t,r=1e-6,i=n-r;function a(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function o(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return a;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}function s(e,t,n,r){return e===n&&t===r}function c(e){let t=Math.floor(e);if(!(t<=15))return s;let n=10**t,r=function(e){return Math.round(e*n)};return function(e,t,n,i){return r(e)===r(n)&&r(t)===r(i)}}var l=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?a:o(e),this._equal=e==null?s:c(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,n,i,a,o){if(e=+e,n=+n,i=+i,a=+a,o=+o,o<0)throw Error(`negative radius: ${o}`);let s=this._x1,c=this._y1,l=i-e,u=a-n,d=s-e,f=c-n,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(p>r){if(!(Math.abs(f*l-u*d)>r)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let m=i-s,h=a-c,g=l*l+u*u,_=m*m+h*h,v=Math.sqrt(g),y=Math.sqrt(p),b=o*Math.tan((t-Math.acos((g+p-_)/(2*v*y)))/2),x=b/y,S=b/v;Math.abs(x-1)>r&&this._append`L${e+x*d},${n+x*f}`,this._append`A${o},${o},0,0,${+(f*m>d*h)},${this._x1=e+S*l},${this._y1=n+S*u}`}}}arc(e,a,o,s,c,l){if(e=+e,a=+a,o=+o,l=!!l,o<0)throw Error(`negative radius: ${o}`);let u=o*Math.cos(s),d=o*Math.sin(s),f=e+u,p=a+d,m=1^l,h=l?s-c:c-s;if(this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>r||Math.abs(this._y1-p)>r)&&this._append`L${f},${p}`,o){if(h<0&&(h=h%n+n),h>i)this._append`A${o},${o},0,1,${m},${e-u},${a-d}A${o},${o},0,1,${m},${this._x1=f},${this._y1=p}`;else if(h>r){let n=e+o*Math.cos(c),r=a+o*Math.sin(c);if(h>=t&&this._equal(f,p,n,r)){h/=2;let n=s+h;this._append`A${o},${o},0,${+(h>=t)},${m},${e+o*Math.cos(n)},${a+o*Math.sin(n)}`}this._append`A${o},${o},0,${+(h>=t)},${m},${this._x1=n},${this._y1=r}`}}}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};l.prototype;function u(e){return function(){return e}}var d=Math.abs,f=Math.atan2,p=Math.cos,m=Math.max,h=Math.min,g=Math.sin,_=Math.sqrt,v=1e-12,y=Math.PI,b=y/2,x=2*y;function S(e){return e>1?0:e<-1?y:Math.acos(e)}function C(e){return e>=1?b:e<=-1?-b:Math.asin(e)}function w(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new l(t)}function T(e){return e.innerRadius}function E(e){return e.outerRadius}function D(e){return e.startAngle}function O(e){return e.endAngle}function k(e){return e&&e.padAngle}function ee(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<v))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function A(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/_(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,h=n+u,g=r+d,v=(f+h)/2,y=(p+g)/2,b=h-f,x=g-p,S=b*b+x*x,C=i-a,w=f*g-h*p,T=(x<0?-1:1)*_(m(0,C*C*S-w*w)),E=(w*x-b*T)/S,D=(-w*b-x*T)/S,O=(w*x+b*T)/S,k=(-w*b+x*T)/S,ee=E-v,A=D-y,j=O-v,M=k-y;return ee*ee+A*A>j*j+M*M&&(E=O,D=k),{cx:E,cy:D,x01:-u,y01:-d,x11:E*(i/C-1),y11:D*(i/C-1)}}function j(){var e=T,t=E,n=u(0),r=null,i=D,a=O,o=k,s=null,c=w(l);function l(){var l,u,m=+e.apply(this,arguments),w=+t.apply(this,arguments),T=i.apply(this,arguments)-b,E=a.apply(this,arguments)-b,D=d(E-T),O=E>T;if(s||=l=c(),w<m&&(u=w,w=m,m=u),!(w>v))s.moveTo(0,0);else if(D>x-v)s.moveTo(w*p(T),w*g(T)),s.arc(0,0,w,T,E,!O),m>v&&(s.moveTo(m*p(E),m*g(E)),s.arc(0,0,m,E,T,O));else{var k=T,j=E,M=T,N=E,P=D,te=D,ne=o.apply(this,arguments)/2,F=ne>v&&(r?+r.apply(this,arguments):_(m*m+w*w)),I=h(d(w-m)/2,+n.apply(this,arguments)),L=I,R=I,z,B;if(F>v){var V=C(F/m*g(ne)),H=C(F/w*g(ne));(P-=V*2)>v?(V*=O?1:-1,M+=V,N-=V):(P=0,M=N=(T+E)/2),(te-=H*2)>v?(H*=O?1:-1,k+=H,j-=H):(te=0,k=j=(T+E)/2)}var U=w*p(k),W=w*g(k),G=m*p(N),K=m*g(N);if(I>v){var q=w*p(j),J=w*g(j),Y=m*p(M),re=m*g(M),X;if(D<y){if(X=ee(U,W,Y,re,q,J,G,K)){var ie=U-X[0],Z=W-X[1],ae=q-X[0],Q=J-X[1],$=1/g(S((ie*ae+Z*Q)/(_(ie*ie+Z*Z)*_(ae*ae+Q*Q)))/2),oe=_(X[0]*X[0]+X[1]*X[1]);L=h(I,(m-oe)/($-1)),R=h(I,(w-oe)/($+1))}else L=R=0}}te>v?R>v?(z=A(Y,re,U,W,w,R,O),B=A(q,J,G,K,w,R,O),s.moveTo(z.cx+z.x01,z.cy+z.y01),R<I?s.arc(z.cx,z.cy,R,f(z.y01,z.x01),f(B.y01,B.x01),!O):(s.arc(z.cx,z.cy,R,f(z.y01,z.x01),f(z.y11,z.x11),!O),s.arc(0,0,w,f(z.cy+z.y11,z.cx+z.x11),f(B.cy+B.y11,B.cx+B.x11),!O),s.arc(B.cx,B.cy,R,f(B.y11,B.x11),f(B.y01,B.x01),!O))):(s.moveTo(U,W),s.arc(0,0,w,k,j,!O)):s.moveTo(U,W),!(m>v)||!(P>v)?s.lineTo(G,K):L>v?(z=A(G,K,q,J,m,-L,O),B=A(U,W,Y,re,m,-L,O),s.lineTo(z.cx+z.x01,z.cy+z.y01),L<I?s.arc(z.cx,z.cy,L,f(z.y01,z.x01),f(B.y01,B.x01),!O):(s.arc(z.cx,z.cy,L,f(z.y01,z.x01),f(z.y11,z.x11),!O),s.arc(0,0,m,f(z.cy+z.y11,z.cx+z.x11),f(B.cy+B.y11,B.cx+B.x11),O),s.arc(B.cx,B.cy,L,f(B.y11,B.x11),f(B.y01,B.x01),!O))):s.arc(0,0,m,N,M,O)}if(s.closePath(),l)return s=null,l+``||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-y/2;return[p(r)*n,g(r)*n]},l.innerRadius=function(t){return arguments.length?(e=typeof t==`function`?t:u(+t),l):e},l.outerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:u(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n=typeof e==`function`?e:u(+e),l):n},l.padRadius=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:u(+e),l):r},l.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:u(+e),l):i},l.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:u(+e),l):a},l.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:u(+e),l):o},l.context=function(e){return arguments.length?(s=e??null,l):s},l}Array.prototype.slice;function M(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function N(e){this._context=e}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function P(e){return new N(e)}function te(e){return e[0]}function ne(e){return e[1]}function F(e,t){var n=u(!0),r=null,i=P,a=null,o=w(s);e=typeof e==`function`?e:e===void 0?te:u(e),t=typeof t==`function`?t:t===void 0?ne:u(t);function s(s){var c,l=(s=M(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:u(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:u(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:u(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function I(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function L(e){return e}function R(){var e=L,t=I,n=null,r=u(0),i=u(x),a=u(0);function o(o){var s,c=(o=M(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),h=Math.min(x,Math.max(-x,i.apply(this,arguments)-m)),g,_=Math.min(Math.abs(h)/c,a.apply(this,arguments)),v=_*(h<0?-1:1),y;for(s=0;s<c;++s)(y=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=y);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(h-c*v)/d:0;s<c;++s,m=g)l=f[s],y=p[l],g=m+(y>0?y*u:0)+v,p[l]={data:o[l],index:s,value:y,startAngle:m,endAngle:g,padAngle:_};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:u(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:u(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:u(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:u(+e),o):a},o}B(P);function z(e){this._curve=e}z.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function B(e){function t(t){return new z(e(t))}return t._curve=e,t}var V=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function H(e){return new V(e,!0)}function U(e){return new V(e,!1)}_(3),_(1/3)*2;var W=g(y/10)/g(7*y/10);g(x/10)*W,-p(x/10)*W,_(3),_(3),_(3)/2,(1/_(12)/2+1)*3;function G(){}function K(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function q(e){this._context=e}q.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:K(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function J(e){return new q(e)}function Y(e){this._context=e}Y.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function re(e){return new Y(e)}function X(e){this._context=e}X.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ie(e){return new X(e)}function Z(e,t){this._basis=new q(e),this._beta=t}Z.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ae=(function e(t){function n(e){return t===1?new q(e):new Z(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function Q(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function $(e,t){this._context=e,this._k=(1-t)/6}$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Q(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Q(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var oe=(function e(t){function n(e){return new $(e,t)}return n.tension=function(t){return e(+t)},n})(0);function se(e,t){this._context=e,this._k=(1-t)/6}se.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Q(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ce=(function e(t){function n(e){return new se(e,t)}return n.tension=function(t){return e(+t)},n})(0);function le(e,t){this._context=e,this._k=(1-t)/6}le.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Q(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ue=(function e(t){function n(e){return new le(e,t)}return n.tension=function(t){return e(+t)},n})(0);function de(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>v){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>v){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function fe(e,t){this._context=e,this._alpha=t}fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:de(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var pe=(function e(t){function n(e){return t?new fe(e,t):new $(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function me(e,t){this._context=e,this._alpha=t}me.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:de(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var he=(function e(t){function n(e){return t?new me(e,t):new se(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ge(e,t){this._context=e,this._alpha=t}ge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:de(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var _e=(function e(t){function n(e){return t?new ge(e,t):new le(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ve(e){this._context=e}ve.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ye(e){return new ve(e)}function be(e){return e<0?-1:1}function xe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(be(a)+be(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Se(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ce(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function we(e){this._context=e}we.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ce(this,this._t0,Se(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ce(this,Se(this,n=xe(this,e,t)),n);break;default:Ce(this,this._t0,n=xe(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Te(e){this._context=new Ee(e)}(Te.prototype=Object.create(we.prototype)).point=function(e,t){we.prototype.point.call(this,t,e)};function Ee(e){this._context=e}Ee.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function De(e){return new we(e)}function Oe(e){return new Te(e)}function ke(e){this._context=e}ke.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Ae(e),i=Ae(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ae(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function je(e){return new ke(e)}function Me(e,t){this._context=e,this._t=t}Me.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Ne(e){return new Me(e,.5)}function Pe(e){return new Me(e,0)}function Fe(e){return new Me(e,1)}var Ie=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`})),Le=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=o;var t=Ie();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var c=s;if(!c)return t.BLANK_URL;if(n(c))return c;var l=c.trimStart(),u=l.match(t.urlSchemeRegex);if(!u)return c;var d=u[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(d))return t.BLANK_URL;var f=l.replace(/\\/g,`/`);if(d===`mailto:`||d.includes(`://`))return f;if(d===`http:`||d===`https:`){if(!i(f))return t.BLANK_URL;var p=new URL(f);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return f}}));export{Fe as C,Ne as S,ye as _,ie as a,je as b,ae as c,ue as d,pe as f,F as g,P as h,re as i,oe as l,_e as m,j as n,H as o,he as p,J as r,U as s,Le as t,ce as u,De as v,Pe as w,R as x,Oe as y};
|
|
1
|
+
import{t as e}from"./PageMarkdown-eYkrzJvo.js";var t=Math.PI,n=2*t,r=1e-6,i=n-r;function a(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function o(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return a;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}function s(e,t,n,r){return e===n&&t===r}function c(e){let t=Math.floor(e);if(!(t<=15))return s;let n=10**t,r=function(e){return Math.round(e*n)};return function(e,t,n,i){return r(e)===r(n)&&r(t)===r(i)}}var l=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?a:o(e),this._equal=e==null?s:c(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,n,i,a,o){if(e=+e,n=+n,i=+i,a=+a,o=+o,o<0)throw Error(`negative radius: ${o}`);let s=this._x1,c=this._y1,l=i-e,u=a-n,d=s-e,f=c-n,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(p>r){if(!(Math.abs(f*l-u*d)>r)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let m=i-s,h=a-c,g=l*l+u*u,_=m*m+h*h,v=Math.sqrt(g),y=Math.sqrt(p),b=o*Math.tan((t-Math.acos((g+p-_)/(2*v*y)))/2),x=b/y,S=b/v;Math.abs(x-1)>r&&this._append`L${e+x*d},${n+x*f}`,this._append`A${o},${o},0,0,${+(f*m>d*h)},${this._x1=e+S*l},${this._y1=n+S*u}`}}}arc(e,a,o,s,c,l){if(e=+e,a=+a,o=+o,l=!!l,o<0)throw Error(`negative radius: ${o}`);let u=o*Math.cos(s),d=o*Math.sin(s),f=e+u,p=a+d,m=1^l,h=l?s-c:c-s;if(this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>r||Math.abs(this._y1-p)>r)&&this._append`L${f},${p}`,o){if(h<0&&(h=h%n+n),h>i)this._append`A${o},${o},0,1,${m},${e-u},${a-d}A${o},${o},0,1,${m},${this._x1=f},${this._y1=p}`;else if(h>r){let n=e+o*Math.cos(c),r=a+o*Math.sin(c);if(h>=t&&this._equal(f,p,n,r)){h/=2;let n=s+h;this._append`A${o},${o},0,${+(h>=t)},${m},${e+o*Math.cos(n)},${a+o*Math.sin(n)}`}this._append`A${o},${o},0,${+(h>=t)},${m},${this._x1=n},${this._y1=r}`}}}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};l.prototype;function u(e){return function(){return e}}var d=Math.abs,f=Math.atan2,p=Math.cos,m=Math.max,h=Math.min,g=Math.sin,_=Math.sqrt,v=1e-12,y=Math.PI,b=y/2,x=2*y;function S(e){return e>1?0:e<-1?y:Math.acos(e)}function C(e){return e>=1?b:e<=-1?-b:Math.asin(e)}function w(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new l(t)}function T(e){return e.innerRadius}function E(e){return e.outerRadius}function D(e){return e.startAngle}function O(e){return e.endAngle}function k(e){return e&&e.padAngle}function ee(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<v))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function A(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/_(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,h=n+u,g=r+d,v=(f+h)/2,y=(p+g)/2,b=h-f,x=g-p,S=b*b+x*x,C=i-a,w=f*g-h*p,T=(x<0?-1:1)*_(m(0,C*C*S-w*w)),E=(w*x-b*T)/S,D=(-w*b-x*T)/S,O=(w*x+b*T)/S,k=(-w*b+x*T)/S,ee=E-v,A=D-y,j=O-v,M=k-y;return ee*ee+A*A>j*j+M*M&&(E=O,D=k),{cx:E,cy:D,x01:-u,y01:-d,x11:E*(i/C-1),y11:D*(i/C-1)}}function j(){var e=T,t=E,n=u(0),r=null,i=D,a=O,o=k,s=null,c=w(l);function l(){var l,u,m=+e.apply(this,arguments),w=+t.apply(this,arguments),T=i.apply(this,arguments)-b,E=a.apply(this,arguments)-b,D=d(E-T),O=E>T;if(s||=l=c(),w<m&&(u=w,w=m,m=u),!(w>v))s.moveTo(0,0);else if(D>x-v)s.moveTo(w*p(T),w*g(T)),s.arc(0,0,w,T,E,!O),m>v&&(s.moveTo(m*p(E),m*g(E)),s.arc(0,0,m,E,T,O));else{var k=T,j=E,M=T,N=E,P=D,te=D,ne=o.apply(this,arguments)/2,F=ne>v&&(r?+r.apply(this,arguments):_(m*m+w*w)),I=h(d(w-m)/2,+n.apply(this,arguments)),L=I,R=I,z,B;if(F>v){var V=C(F/m*g(ne)),H=C(F/w*g(ne));(P-=V*2)>v?(V*=O?1:-1,M+=V,N-=V):(P=0,M=N=(T+E)/2),(te-=H*2)>v?(H*=O?1:-1,k+=H,j-=H):(te=0,k=j=(T+E)/2)}var U=w*p(k),W=w*g(k),G=m*p(N),K=m*g(N);if(I>v){var q=w*p(j),J=w*g(j),Y=m*p(M),re=m*g(M),X;if(D<y){if(X=ee(U,W,Y,re,q,J,G,K)){var ie=U-X[0],Z=W-X[1],ae=q-X[0],Q=J-X[1],$=1/g(S((ie*ae+Z*Q)/(_(ie*ie+Z*Z)*_(ae*ae+Q*Q)))/2),oe=_(X[0]*X[0]+X[1]*X[1]);L=h(I,(m-oe)/($-1)),R=h(I,(w-oe)/($+1))}else L=R=0}}te>v?R>v?(z=A(Y,re,U,W,w,R,O),B=A(q,J,G,K,w,R,O),s.moveTo(z.cx+z.x01,z.cy+z.y01),R<I?s.arc(z.cx,z.cy,R,f(z.y01,z.x01),f(B.y01,B.x01),!O):(s.arc(z.cx,z.cy,R,f(z.y01,z.x01),f(z.y11,z.x11),!O),s.arc(0,0,w,f(z.cy+z.y11,z.cx+z.x11),f(B.cy+B.y11,B.cx+B.x11),!O),s.arc(B.cx,B.cy,R,f(B.y11,B.x11),f(B.y01,B.x01),!O))):(s.moveTo(U,W),s.arc(0,0,w,k,j,!O)):s.moveTo(U,W),!(m>v)||!(P>v)?s.lineTo(G,K):L>v?(z=A(G,K,q,J,m,-L,O),B=A(U,W,Y,re,m,-L,O),s.lineTo(z.cx+z.x01,z.cy+z.y01),L<I?s.arc(z.cx,z.cy,L,f(z.y01,z.x01),f(B.y01,B.x01),!O):(s.arc(z.cx,z.cy,L,f(z.y01,z.x01),f(z.y11,z.x11),!O),s.arc(0,0,m,f(z.cy+z.y11,z.cx+z.x11),f(B.cy+B.y11,B.cx+B.x11),O),s.arc(B.cx,B.cy,L,f(B.y11,B.x11),f(B.y01,B.x01),!O))):s.arc(0,0,m,N,M,O)}if(s.closePath(),l)return s=null,l+``||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-y/2;return[p(r)*n,g(r)*n]},l.innerRadius=function(t){return arguments.length?(e=typeof t==`function`?t:u(+t),l):e},l.outerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:u(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n=typeof e==`function`?e:u(+e),l):n},l.padRadius=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:u(+e),l):r},l.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:u(+e),l):i},l.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:u(+e),l):a},l.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:u(+e),l):o},l.context=function(e){return arguments.length?(s=e??null,l):s},l}Array.prototype.slice;function M(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function N(e){this._context=e}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function P(e){return new N(e)}function te(e){return e[0]}function ne(e){return e[1]}function F(e,t){var n=u(!0),r=null,i=P,a=null,o=w(s);e=typeof e==`function`?e:e===void 0?te:u(e),t=typeof t==`function`?t:t===void 0?ne:u(t);function s(s){var c,l=(s=M(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:u(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:u(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:u(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function I(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function L(e){return e}function R(){var e=L,t=I,n=null,r=u(0),i=u(x),a=u(0);function o(o){var s,c=(o=M(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),h=Math.min(x,Math.max(-x,i.apply(this,arguments)-m)),g,_=Math.min(Math.abs(h)/c,a.apply(this,arguments)),v=_*(h<0?-1:1),y;for(s=0;s<c;++s)(y=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=y);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(h-c*v)/d:0;s<c;++s,m=g)l=f[s],y=p[l],g=m+(y>0?y*u:0)+v,p[l]={data:o[l],index:s,value:y,startAngle:m,endAngle:g,padAngle:_};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:u(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:u(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:u(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:u(+e),o):a},o}B(P);function z(e){this._curve=e}z.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function B(e){function t(t){return new z(e(t))}return t._curve=e,t}var V=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function H(e){return new V(e,!0)}function U(e){return new V(e,!1)}_(3),_(1/3)*2;var W=g(y/10)/g(7*y/10);g(x/10)*W,-p(x/10)*W,_(3),_(3),_(3)/2,(1/_(12)/2+1)*3;function G(){}function K(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function q(e){this._context=e}q.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:K(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function J(e){return new q(e)}function Y(e){this._context=e}Y.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function re(e){return new Y(e)}function X(e){this._context=e}X.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:K(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ie(e){return new X(e)}function Z(e,t){this._basis=new q(e),this._beta=t}Z.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ae=(function e(t){function n(e){return t===1?new q(e):new Z(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function Q(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function $(e,t){this._context=e,this._k=(1-t)/6}$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Q(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Q(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var oe=(function e(t){function n(e){return new $(e,t)}return n.tension=function(t){return e(+t)},n})(0);function se(e,t){this._context=e,this._k=(1-t)/6}se.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Q(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ce=(function e(t){function n(e){return new se(e,t)}return n.tension=function(t){return e(+t)},n})(0);function le(e,t){this._context=e,this._k=(1-t)/6}le.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Q(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ue=(function e(t){function n(e){return new le(e,t)}return n.tension=function(t){return e(+t)},n})(0);function de(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>v){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>v){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function fe(e,t){this._context=e,this._alpha=t}fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:de(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var pe=(function e(t){function n(e){return t?new fe(e,t):new $(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function me(e,t){this._context=e,this._alpha=t}me.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:de(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var he=(function e(t){function n(e){return t?new me(e,t):new se(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ge(e,t){this._context=e,this._alpha=t}ge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:de(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var _e=(function e(t){function n(e){return t?new ge(e,t):new le(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ve(e){this._context=e}ve.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ye(e){return new ve(e)}function be(e){return e<0?-1:1}function xe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(be(a)+be(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Se(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ce(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function we(e){this._context=e}we.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ce(this,this._t0,Se(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ce(this,Se(this,n=xe(this,e,t)),n);break;default:Ce(this,this._t0,n=xe(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Te(e){this._context=new Ee(e)}(Te.prototype=Object.create(we.prototype)).point=function(e,t){we.prototype.point.call(this,t,e)};function Ee(e){this._context=e}Ee.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function De(e){return new we(e)}function Oe(e){return new Te(e)}function ke(e){this._context=e}ke.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Ae(e),i=Ae(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ae(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function je(e){return new ke(e)}function Me(e,t){this._context=e,this._t=t}Me.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Ne(e){return new Me(e,.5)}function Pe(e){return new Me(e,0)}function Fe(e){return new Me(e,1)}var Ie=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`})),Le=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=o;var t=Ie();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var c=s;if(!c)return t.BLANK_URL;if(n(c))return c;var l=c.trimStart(),u=l.match(t.urlSchemeRegex);if(!u)return c;var d=u[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(d))return t.BLANK_URL;var f=l.replace(/\\/g,`/`);if(d===`mailto:`||d.includes(`://`))return f;if(d===`http:`||d===`https:`){if(!i(f))return t.BLANK_URL;var p=new URL(f);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return f}}));export{Fe as C,Ne as S,ye as _,ie as a,je as b,ae as c,ue as d,pe as f,F as g,P as h,re as i,oe as l,_e as m,j as n,H as o,he as p,J as r,U as s,Le as t,ce as u,De as v,Pe as w,R as x,Oe as y};
|
package/dist/site/assets/{ebnfDiagram-UZSYDL2S-DJpocIUJ.js → ebnfDiagram-UZSYDL2S-BEW44JPW.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./chunk-OY52VR5R-
|
|
1
|
+
import{n as e,r as t,t as n}from"./chunk-OY52VR5R-XSlZiBnF.js";import{t as r}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./MermaidDiagram-ygffYb-m.js";import"./chunk-BG4553SI-BcspVJor.js";import{n as i}from"./d3-selection-B6Leru-d.js";import{n as a}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{f as o,t as s}from"./mermaid-parser.core-CmuythWW.js";var c=o().RailroadEbnf.parser.LangiumParser,l=a(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformChoice`),u=a(e=>{let t=e.elements.map(p);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=a(e=>{switch(e.$type){case`EbnfTerminal`:return{type:`terminal`,value:e.value};case`EbnfNonTerminal`:return{type:`nonterminal`,name:e.name};case`EbnfSpecial`:return{type:`special`,text:e.text};case`EbnfGroup`:return l(e.element);case`EbnfOptional`:return{type:`optional`,element:l(e.element)};case`EbnfRepetition`:return{type:`repetition`,element:l(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},`transformPrimary`),f=a((e,t)=>{switch(t.$type){case`EbnfOptionalPostfix`:return{type:`optional`,element:e};case`EbnfZeroOrMorePostfix`:return{type:`repetition`,element:e,min:0,max:1/0};case`EbnfOneOrMorePostfix`:return{type:`repetition`,element:e,min:1,max:1/0};case`EbnfExceptionPostfix`:return{type:`sequence`,elements:[e,{type:`terminal`,value:`-`},d(t.except)]};default:throw Error(`Unsupported EBNF postfix node: ${t.$type}`)}},`transformPostfix`),p=a(e=>e.postfixes.reduce((e,t)=>f(e,t),d(e.base)),`transformTerm`),m=a(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=a(e=>{r(e,n),e.title&&n.setTitle(e.title),e.rules.map(e=>n.addRule(m(e)))},`populateDb`),g={parser:{parse:a(e=>{n.clear(),i.debug(`[EBNF Parser] Starting Langium parse`);let t=c.parse(e);if(t.lexerErrors.length>0||t.parserErrors.length>0)throw new s(t);let r=t.value;i.debug(`[EBNF Parser] Parsed rules:`,r.rules.length),h(r),i.debug(`[EBNF Parser] Parse complete`)},`parse`),parser:{yy:n}},db:n,renderer:t,styles:e};export{g as diagram};
|