From 1f517292a892ab34a715bdafaec44b6b34fdd57b Mon Sep 17 00:00:00 2001 From: Khasbulat Abdullin Date: Mon, 23 Feb 2026 08:34:59 +0300 Subject: [PATCH 1/2] docs: add indexed client-side search for documentation --- .github/workflows/docs.yml | 5 + ...By-Dm_sMLMB.js => _basePickBy-Btg4tW5o.js} | 2 +- ...Uniq-UvPYksec.js => _baseUniq-yJVicqoM.js} | 2 +- .../{arc-CFZlwBOQ.js => arc-Es-5b2v7.js} | 2 +- ... architectureDiagram-VXUJARFQ-BYkUm9CT.js} | 2 +- ...Z.js => blockDiagram-VD42YOAC-CQJ3-geB.js} | 2 +- ...OfmS.js => c4Diagram-YG6GDRKO-BNoG-4Gz.js} | 2 +- docs/dist/assets/channel-92COyuQS.js | 1 - docs/dist/assets/channel-Bosr5z2r.js | 1 + ...DQFJwyRw.js => chunk-4BX2VUAB-B95fRcaE.js} | 2 +- ...k1CzMQx-.js => chunk-55IACEB6-DLzn1p-J.js} | 2 +- ...BM5l_f1F.js => chunk-B4BG7PRW-Di5rbL9q.js} | 2 +- ...J7umTVjb.js => chunk-DI55MBZ5-DrHaHgYN.js} | 2 +- ...mpZRA3cF.js => chunk-FMBD7UC4-D1HxKLa4.js} | 2 +- ...Ee1tIsWT.js => chunk-QN33PNHL-DLlZQk9s.js} | 2 +- ...DPxP3j_u.js => chunk-QZHKN3VN-D4v8tIvn.js} | 2 +- ...DET7R8sF.js => chunk-TZMSLE5B-Cts944Q5.js} | 2 +- .../assets/classDiagram-2ON5EDUG-B2e87Lie.js | 1 - .../assets/classDiagram-2ON5EDUG-C5mq3x3r.js | 1 + .../classDiagram-v2-WZHVMYZB-B2e87Lie.js | 1 - .../classDiagram-v2-WZHVMYZB-C5mq3x3r.js | 1 + docs/dist/assets/clone-D4gAIgVI.js | 1 + docs/dist/assets/clone-uEwA9FQU.js | 1 - ...d.js => cose-bilkent-S5V4N54A-Bff6yNx5.js} | 2 +- ...DAENmghR.js => dagre-6UL2VRFP-cBGB7W-l.js} | 2 +- ...9fGZyn.js => diagram-PSM6KHXK-Btluh1d8.js} | 2 +- ...QHmCXL.js => diagram-QEK2KX5R-DmJ77IJR.js} | 2 +- ...IQ2nC9.js => diagram-S2PKOQOG-DCVa0H4K.js} | 2 +- ...FPuZ.js => erDiagram-Q2GNP2WA-B-egxCPq.js} | 2 +- ...1n.js => flowDiagram-NV44I4VS-D9dHHG_5.js} | 2 +- ...W.js => ganttDiagram-LVOFAZNH-S9Yz38r1.js} | 2 +- ...s => gitGraphDiagram-NY62KEGX-BIKTiv6F.js} | 2 +- .../{graph-B7dpUAh4.js => graph-CrBOm174.js} | 2 +- .../{index-BtiIqbpV.js => index-Cbm2MoYO.js} | 282 ++++++------ ...{index-DfEK4y8B.css => index-XBJ_3B8T.css} | 2 +- ...AB.js => infoDiagram-ER5ION4S-Dl81q7zV.js} | 2 +- ...js => journeyDiagram-XKPGCS4Q-DhGQTeQD.js} | 2 +- ...=> kanban-definition-3W4ZIXB7-Cg8AryWs.js} | 2 +- ...{layout-B_-UBl_B.js => layout-CFaLQrVQ.js} | 2 +- ...{linear-DIZeUs0A.js => linear-BbiIBUnh.js} | 2 +- ...> mindmap-definition-VGOIOE7T-Cwfz-Ut0.js} | 2 +- ...Nkj.js => pieDiagram-ADFJNKIX-BSNa_u98.js} | 2 +- ...s => quadrantDiagram-AYHSOK5B-B7tcxOk5.js} | 2 +- ...> requirementDiagram-UZGBJVZJ-B3hcCcs-.js} | 2 +- ....js => sankeyDiagram-TZEHDZUN-CAR3q8U4.js} | 2 +- ...s => sequenceDiagram-WL72ISMW-BE2QpNFa.js} | 2 +- ...6.js => stateDiagram-FKZM4ZOC-BD85zAza.js} | 2 +- .../stateDiagram-v2-4FDKWEC3-BaoOWtKj.js | 1 - .../stateDiagram-v2-4FDKWEC3-DNMcmT_F.js | 1 + ... timeline-definition-IT6M3QCI-C8Qmd4yr.js} | 2 +- ...BrUw5q.js => treemap-KMMF4GRG-Bqtmffqa.js} | 2 +- ...js => xychartDiagram-PRI3JC2R-CbeGLtbk.js} | 2 +- .../cli/package-manager/package-manager.md | 2 +- .../cli/package-manager/package-manager.md | 2 +- docs/dist/index.html | 4 +- docs/dist/search/index.en.json | 1 + docs/dist/search/index.ru.json | 1 + docs/package.json | 5 +- docs/public/search/index.en.json | 1 + docs/public/search/index.ru.json | 1 + docs/scripts/generate-search-index.mjs | 232 ++++++++++ docs/src/components/docs/DocsHeader.tsx | 2 + docs/src/components/docs/DocsSearch.tsx | 400 ++++++++++++++++++ docs/src/components/docs/MarkdownPage.tsx | 128 ++++++ docs/src/i18n/locales/en.json | 16 +- docs/src/i18n/locales/ru.json | 14 + docs/src/index.css | 238 +++++++++++ docs/src/lib/search/search.ts | 214 ++++++++++ docs/src/lib/search/types.ts | 27 ++ docs/tsconfig.tsbuildinfo | 2 +- 70 files changed, 1475 insertions(+), 192 deletions(-) rename docs/dist/assets/{_basePickBy-Dm_sMLMB.js => _basePickBy-Btg4tW5o.js} (95%) rename docs/dist/assets/{_baseUniq-UvPYksec.js => _baseUniq-yJVicqoM.js} (99%) rename docs/dist/assets/{arc-CFZlwBOQ.js => arc-Es-5b2v7.js} (98%) rename docs/dist/assets/{architectureDiagram-VXUJARFQ-B0cQz-oU.js => architectureDiagram-VXUJARFQ-BYkUm9CT.js} (99%) rename docs/dist/assets/{blockDiagram-VD42YOAC-CuS2rFPZ.js => blockDiagram-VD42YOAC-CQJ3-geB.js} (99%) rename docs/dist/assets/{c4Diagram-YG6GDRKO-DoDAOfmS.js => c4Diagram-YG6GDRKO-BNoG-4Gz.js} (99%) delete mode 100644 docs/dist/assets/channel-92COyuQS.js create mode 100644 docs/dist/assets/channel-Bosr5z2r.js rename docs/dist/assets/{chunk-4BX2VUAB-DQFJwyRw.js => chunk-4BX2VUAB-B95fRcaE.js} (70%) rename docs/dist/assets/{chunk-55IACEB6-k1CzMQx-.js => chunk-55IACEB6-DLzn1p-J.js} (71%) rename docs/dist/assets/{chunk-B4BG7PRW-BM5l_f1F.js => chunk-B4BG7PRW-Di5rbL9q.js} (99%) rename docs/dist/assets/{chunk-DI55MBZ5-J7umTVjb.js => chunk-DI55MBZ5-DrHaHgYN.js} (99%) rename docs/dist/assets/{chunk-FMBD7UC4-mpZRA3cF.js => chunk-FMBD7UC4-D1HxKLa4.js} (84%) rename docs/dist/assets/{chunk-QN33PNHL-Ee1tIsWT.js => chunk-QN33PNHL-DLlZQk9s.js} (87%) rename docs/dist/assets/{chunk-QZHKN3VN-DPxP3j_u.js => chunk-QZHKN3VN-D4v8tIvn.js} (65%) rename docs/dist/assets/{chunk-TZMSLE5B-DET7R8sF.js => chunk-TZMSLE5B-Cts944Q5.js} (95%) delete mode 100644 docs/dist/assets/classDiagram-2ON5EDUG-B2e87Lie.js create mode 100644 docs/dist/assets/classDiagram-2ON5EDUG-C5mq3x3r.js delete mode 100644 docs/dist/assets/classDiagram-v2-WZHVMYZB-B2e87Lie.js create mode 100644 docs/dist/assets/classDiagram-v2-WZHVMYZB-C5mq3x3r.js create mode 100644 docs/dist/assets/clone-D4gAIgVI.js delete mode 100644 docs/dist/assets/clone-uEwA9FQU.js rename docs/dist/assets/{cose-bilkent-S5V4N54A-DwegvPdd.js => cose-bilkent-S5V4N54A-Bff6yNx5.js} (99%) rename docs/dist/assets/{dagre-6UL2VRFP-DAENmghR.js => dagre-6UL2VRFP-cBGB7W-l.js} (97%) rename docs/dist/assets/{diagram-PSM6KHXK-BM9fGZyn.js => diagram-PSM6KHXK-Btluh1d8.js} (97%) rename docs/dist/assets/{diagram-QEK2KX5R-FYQHmCXL.js => diagram-QEK2KX5R-DmJ77IJR.js} (95%) rename docs/dist/assets/{diagram-S2PKOQOG-CiIQ2nC9.js => diagram-S2PKOQOG-DCVa0H4K.js} (94%) rename docs/dist/assets/{erDiagram-Q2GNP2WA-RPj5FPuZ.js => erDiagram-Q2GNP2WA-B-egxCPq.js} (98%) rename docs/dist/assets/{flowDiagram-NV44I4VS-kx5p1N1n.js => flowDiagram-NV44I4VS-D9dHHG_5.js} (99%) rename docs/dist/assets/{ganttDiagram-LVOFAZNH-C1uRgA1W.js => ganttDiagram-LVOFAZNH-S9Yz38r1.js} (99%) rename docs/dist/assets/{gitGraphDiagram-NY62KEGX-C5UcOD27.js => gitGraphDiagram-NY62KEGX-BIKTiv6F.js} (98%) rename docs/dist/assets/{graph-B7dpUAh4.js => graph-CrBOm174.js} (96%) rename docs/dist/assets/{index-BtiIqbpV.js => index-Cbm2MoYO.js} (72%) rename docs/dist/assets/{index-DfEK4y8B.css => index-XBJ_3B8T.css} (63%) rename docs/dist/assets/{infoDiagram-ER5ION4S-Ba3AJNAB.js => infoDiagram-ER5ION4S-Dl81q7zV.js} (60%) rename docs/dist/assets/{journeyDiagram-XKPGCS4Q-arI6-S00.js => journeyDiagram-XKPGCS4Q-DhGQTeQD.js} (98%) rename docs/dist/assets/{kanban-definition-3W4ZIXB7-CzDXUcaj.js => kanban-definition-3W4ZIXB7-Cg8AryWs.js} (99%) rename docs/dist/assets/{layout-B_-UBl_B.js => layout-CFaLQrVQ.js} (99%) rename docs/dist/assets/{linear-DIZeUs0A.js => linear-BbiIBUnh.js} (97%) rename docs/dist/assets/{mindmap-definition-VGOIOE7T-D_KtVAfA.js => mindmap-definition-VGOIOE7T-Cwfz-Ut0.js} (99%) rename docs/dist/assets/{pieDiagram-ADFJNKIX-BCH2WNkj.js => pieDiagram-ADFJNKIX-BSNa_u98.js} (93%) rename docs/dist/assets/{quadrantDiagram-AYHSOK5B-BrYUoIUK.js => quadrantDiagram-AYHSOK5B-B7tcxOk5.js} (99%) rename docs/dist/assets/{requirementDiagram-UZGBJVZJ-Cyv_arKH.js => requirementDiagram-UZGBJVZJ-B3hcCcs-.js} (99%) rename docs/dist/assets/{sankeyDiagram-TZEHDZUN-D-pyaHYp.js => sankeyDiagram-TZEHDZUN-CAR3q8U4.js} (99%) rename docs/dist/assets/{sequenceDiagram-WL72ISMW-Dh5e4L85.js => sequenceDiagram-WL72ISMW-BE2QpNFa.js} (99%) rename docs/dist/assets/{stateDiagram-FKZM4ZOC-C2mlkll6.js => stateDiagram-FKZM4ZOC-BD85zAza.js} (96%) delete mode 100644 docs/dist/assets/stateDiagram-v2-4FDKWEC3-BaoOWtKj.js create mode 100644 docs/dist/assets/stateDiagram-v2-4FDKWEC3-DNMcmT_F.js rename docs/dist/assets/{timeline-definition-IT6M3QCI-Czw3v9K4.js => timeline-definition-IT6M3QCI-C8Qmd4yr.js} (99%) rename docs/dist/assets/{treemap-KMMF4GRG-BdBrUw5q.js => treemap-KMMF4GRG-Bqtmffqa.js} (99%) rename docs/dist/assets/{xychartDiagram-PRI3JC2R-mB92NfON.js => xychartDiagram-PRI3JC2R-CbeGLtbk.js} (99%) create mode 100644 docs/dist/search/index.en.json create mode 100644 docs/dist/search/index.ru.json create mode 100644 docs/public/search/index.en.json create mode 100644 docs/public/search/index.ru.json create mode 100644 docs/scripts/generate-search-index.mjs create mode 100644 docs/src/components/docs/DocsSearch.tsx create mode 100644 docs/src/lib/search/search.ts create mode 100644 docs/src/lib/search/types.ts diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index beba27b2..a7fa836d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -33,6 +33,11 @@ jobs: cd docs npm run build + - name: Verify search index artifacts + run: | + test -f docs/dist/search/index.en.json + test -f docs/dist/search/index.ru.json + - name: Check for changes id: verify-changed-files run: | diff --git a/docs/dist/assets/_basePickBy-Dm_sMLMB.js b/docs/dist/assets/_basePickBy-Btg4tW5o.js similarity index 95% rename from docs/dist/assets/_basePickBy-Dm_sMLMB.js rename to docs/dist/assets/_basePickBy-Btg4tW5o.js index d738110c..d27ca017 100644 --- a/docs/dist/assets/_basePickBy-Dm_sMLMB.js +++ b/docs/dist/assets/_basePickBy-Btg4tW5o.js @@ -1 +1 @@ -import{e as x,c as O,g as m,k as P,h as p,j as w,l as A,m as c,n as I,t as N,o as E}from"./_baseUniq-UvPYksec.js";import{aR as g,aA as F,aS as M,aT as T,aU as _,aV as l,aW as $,aX as B,aY as S,aZ as y}from"./index-BtiIqbpV.js";var R=/\s/;function G(n){for(var r=n.length;r--&&R.test(n.charAt(r)););return r}var H=/^\s+/;function L(n){return n&&n.slice(0,G(n)+1).replace(H,"")}var o=NaN,W=/^[-+]0x[0-9a-f]+$/i,X=/^0b[01]+$/i,Y=/^0o[0-7]+$/i,q=parseInt;function z(n){if(typeof n=="number")return n;if(x(n))return o;if(g(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=g(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=L(n);var t=X.test(n);return t||Y.test(n)?q(n.slice(2),t?2:8):W.test(n)?o:+n}var v=1/0,C=17976931348623157e292;function K(n){if(!n)return n===0?n:0;if(n=z(n),n===v||n===-v){var r=n<0?-1:1;return r*C}return n===n?n:0}function U(n){var r=K(n),t=r%1;return r===r?t?r-t:r:0}function fn(n){var r=n==null?0:n.length;return r?O(n):[]}var b=Object.prototype,Z=b.hasOwnProperty,dn=F(function(n,r){n=Object(n);var t=-1,i=r.length,a=i>2?r[2]:void 0;for(a&&M(r[0],r[1],a)&&(i=1);++t-1?a[f?r[e]:e]:void 0}}var J=Math.max;function Q(n,r,t){var i=n==null?0:n.length;if(!i)return-1;var a=t==null?0:U(t);return a<0&&(a=J(i+a,0)),p(n,m(r),a)}var hn=D(Q);function V(n,r){var t=-1,i=l(n)?Array(n.length):[];return w(n,function(a,f,e){i[++t]=r(a,f,e)}),i}function gn(n,r){var t=$(n)?A:V;return t(n,m(r))}var j=Object.prototype,k=j.hasOwnProperty;function nn(n,r){return n!=null&&k.call(n,r)}function mn(n,r){return n!=null&&c(n,r,nn)}function rn(n,r){return n2?r[2]:void 0;for(a&&M(r[0],r[1],a)&&(i=1);++t-1?a[f?r[e]:e]:void 0}}var J=Math.max;function Q(n,r,t){var i=n==null?0:n.length;if(!i)return-1;var a=t==null?0:U(t);return a<0&&(a=J(i+a,0)),p(n,m(r),a)}var hn=D(Q);function V(n,r){var t=-1,i=l(n)?Array(n.length):[];return w(n,function(a,f,e){i[++t]=r(a,f,e)}),i}function gn(n,r){var t=$(n)?A:V;return t(n,m(r))}var j=Object.prototype,k=j.hasOwnProperty;function nn(n,r){return n!=null&&k.call(n,r)}function mn(n,r){return n!=null&&c(n,r,nn)}function rn(n,r){return n-1}function $(n){return sn(n)?xn(n):mn(n)}var kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nr=/^\w*$/;function N(n,r){if(T(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||B(n)?!0:nr.test(n)||!kn.test(n)||r!=null&&n in Object(r)}var rr=500;function er(n){var r=Mn(n,function(t){return e.size===rr&&e.clear(),t}),e=r.cache;return r}var tr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ir=/\\(\\)?/g,fr=er(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(tr,function(e,t,f,i){r.push(f?i.replace(ir,"$1"):t||e)}),r});function ar(n){return n==null?"":dn(n)}function An(n,r){return T(n)?n:N(n,r)?[n]:fr(ar(n))}function m(n){if(typeof n=="string"||B(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function yn(n,r){r=An(r,n);for(var e=0,t=r.length;n!=null&&es))return!1;var b=i.get(n),l=i.get(r);if(b&&l)return b==r&&l==n;var o=-1,c=!0,h=e&ve?new I:void 0;for(i.set(n,r),i.set(r,n);++o=ht){var b=r?null:Tt(n);if(b)return H(b);a=!1,f=En,u=new I}else u=r?[]:s;n:for(;++t-1}function $(n){return sn(n)?xn(n):mn(n)}var kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nr=/^\w*$/;function N(n,r){if(T(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||B(n)?!0:nr.test(n)||!kn.test(n)||r!=null&&n in Object(r)}var rr=500;function er(n){var r=Mn(n,function(t){return e.size===rr&&e.clear(),t}),e=r.cache;return r}var tr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ir=/\\(\\)?/g,fr=er(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(tr,function(e,t,f,i){r.push(f?i.replace(ir,"$1"):t||e)}),r});function ar(n){return n==null?"":dn(n)}function An(n,r){return T(n)?n:N(n,r)?[n]:fr(ar(n))}function m(n){if(typeof n=="string"||B(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function yn(n,r){r=An(r,n);for(var e=0,t=r.length;n!=null&&es))return!1;var b=i.get(n),l=i.get(r);if(b&&l)return b==r&&l==n;var o=-1,c=!0,h=e&ve?new I:void 0;for(i.set(n,r),i.set(r,n);++o=ht){var b=r?null:Tt(n);if(b)return H(b);a=!1,f=En,u=new I}else u=r?[]:s;n:for(;++tr*r+G*G&&(j=w,z=p),{cx:j,cy:z,x01:-n,y01:-d,x11:j*(v/T-1),y11:z*(v/T-1)}}function hn(){var l=cn,h=yn,I=B(0),D=null,v=gn,A=dn,C=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)-an,c=A.apply(this,arguments)-an,F=un(c-f),t=c>f;if(a||(a=n=O()),sy))a.moveTo(0,0);else if(F>tn-y)a.moveTo(s*H(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*H(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=F,S=F,j=C.apply(this,arguments)/2,z=j>y&&(D?+D.apply(this,arguments):L(u*u+s*s)),w=_(un(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(z>y){var G=sn(z/u*q(j)),M=sn(z/s*q(j));(P-=G*2)>y?(G*=t?1:-1,R+=G,T-=G):(P=0,R=T=(f+c)/2),(S-=M*2)>y?(M*=t?1:-1,m+=M,g-=M):(S=0,m=g=(f+c)/2)}var J=s*H(m),K=s*q(m),N=u*H(T),Q=u*q(T);if(w>y){var U=s*H(g),V=s*q(g),X=u*H(R),Y=u*q(R),E;if(Fy?x>y?(e=W(X,Y,J,K,s,x,t),r=W(U,V,N,Q,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(N,Q):p>y?(e=W(N,Q,U,V,u,-p,t),r=W(J,K,X,Y,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),pr*r+G*G&&(j=w,z=p),{cx:j,cy:z,x01:-n,y01:-d,x11:j*(v/T-1),y11:z*(v/T-1)}}function hn(){var l=cn,h=yn,I=B(0),D=null,v=gn,A=dn,C=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)-an,c=A.apply(this,arguments)-an,F=un(c-f),t=c>f;if(a||(a=n=O()),sy))a.moveTo(0,0);else if(F>tn-y)a.moveTo(s*H(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*H(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=F,S=F,j=C.apply(this,arguments)/2,z=j>y&&(D?+D.apply(this,arguments):L(u*u+s*s)),w=_(un(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(z>y){var G=sn(z/u*q(j)),M=sn(z/s*q(j));(P-=G*2)>y?(G*=t?1:-1,R+=G,T-=G):(P=0,R=T=(f+c)/2),(S-=M*2)>y?(M*=t?1:-1,m+=M,g-=M):(S=0,m=g=(f+c)/2)}var J=s*H(m),K=s*q(m),N=u*H(T),Q=u*q(T);if(w>y){var U=s*H(g),V=s*q(g),X=u*H(R),Y=u*q(R),E;if(Fy?x>y?(e=W(X,Y,J,K,s,x,t),r=W(U,V,N,Q,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(N,Q):p>y?(e=W(N,Q,U,V,u,-p,t),r=W(J,K,X,Y,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),po?(this.rect.x-=(this.labelWidth-o)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(o+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(s+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>s?(this.rect.y-=(this.labelHeight-s)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(s+this.labelHeight))}}},i.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==h.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},i.prototype.transform=function(t){var o=this.rect.x;o>e.WORLD_BOUNDARY?o=e.WORLD_BOUNDARY:o<-e.WORLD_BOUNDARY&&(o=-e.WORLD_BOUNDARY);var s=this.rect.y;s>e.WORLD_BOUNDARY?s=e.WORLD_BOUNDARY:s<-e.WORLD_BOUNDARY&&(s=-e.WORLD_BOUNDARY);var c=new l(o,s),f=t.inverseTransformPoint(c);this.setLocation(f.x,f.y)},i.prototype.getLeft=function(){return this.rect.x},i.prototype.getRight=function(){return this.rect.x+this.rect.width},i.prototype.getTop=function(){return this.rect.y},i.prototype.getBottom=function(){return this.rect.y+this.rect.height},i.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},A.exports=i}),(function(A,P,N){var u=N(0);function h(){}for(var a in u)h[a]=u[a];h.MAX_ITERATIONS=2500,h.DEFAULT_EDGE_LENGTH=50,h.DEFAULT_SPRING_STRENGTH=.45,h.DEFAULT_REPULSION_STRENGTH=4500,h.DEFAULT_GRAVITY_STRENGTH=.4,h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,h.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,h.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,h.COOLING_ADAPTATION_FACTOR=.33,h.ADAPTATION_LOWER_NODE_LIMIT=1e3,h.ADAPTATION_UPPER_NODE_LIMIT=5e3,h.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,h.MAX_NODE_DISPLACEMENT=h.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,h.CONVERGENCE_CHECK_PERIOD=100,h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,h.MIN_EDGE_LENGTH=1,h.GRID_CALCULATION_CHECK_PERIOD=10,A.exports=h}),(function(A,P,N){function u(h,a){h==null&&a==null?(this.x=0,this.y=0):(this.x=h,this.y=a)}u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(h){this.x=h},u.prototype.setY=function(h){this.y=h},u.prototype.getDifference=function(h){return new DimensionD(this.x-h.x,this.y-h.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(h){return this.x+=h.width,this.y+=h.height,this},A.exports=u}),(function(A,P,N){var u=N(2),h=N(10),a=N(0),e=N(7),r=N(3),l=N(1),i=N(13),g=N(12),t=N(11);function o(c,f,T){u.call(this,T),this.estimatedSize=h.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,f!=null&&f instanceof e?this.graphManager=f:f!=null&&f instanceof Layout&&(this.graphManager=f.graphManager)}o.prototype=Object.create(u.prototype);for(var s in u)o[s]=u[s];o.prototype.getNodes=function(){return this.nodes},o.prototype.getEdges=function(){return this.edges},o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getParent=function(){return this.parent},o.prototype.getLeft=function(){return this.left},o.prototype.getRight=function(){return this.right},o.prototype.getTop=function(){return this.top},o.prototype.getBottom=function(){return this.bottom},o.prototype.isConnected=function(){return this.isConnected},o.prototype.add=function(c,f,T){if(f==null&&T==null){var v=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(v)>-1)throw"Node already in graph!";return v.owner=this,this.getNodes().push(v),v}else{var d=c;if(!(this.getNodes().indexOf(f)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(f.owner==T.owner&&f.owner==this))throw"Both owners must be this graph!";return f.owner!=T.owner?null:(d.source=f,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),f.edges.push(d),T!=f&&T.edges.push(d),d)}},o.prototype.remove=function(c){var f=c;if(c instanceof r){if(f==null)throw"Node is null!";if(!(f.owner!=null&&f.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=f.edges.slice(),v,d=T.length,L=0;L-1&&G>-1))throw"Source and/or target doesn't know this edge!";v.source.edges.splice(C,1),v.target!=v.source&&v.target.edges.splice(G,1);var b=v.source.owner.getEdges().indexOf(v);if(b==-1)throw"Not in owner's edge list!";v.source.owner.getEdges().splice(b,1)}},o.prototype.updateLeftTop=function(){for(var c=h.MAX_VALUE,f=h.MAX_VALUE,T,v,d,L=this.getNodes(),b=L.length,C=0;CT&&(c=T),f>v&&(f=v)}return c==h.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?d=L[0].getParent().paddingLeft:d=this.margin,this.left=f-d,this.top=c-d,new g(this.left,this.top))},o.prototype.updateBounds=function(c){for(var f=h.MAX_VALUE,T=-h.MAX_VALUE,v=h.MAX_VALUE,d=-h.MAX_VALUE,L,b,C,G,k,Y=this.nodes,K=Y.length,O=0;OL&&(f=L),TC&&(v=C),dL&&(f=L),TC&&(v=C),d=this.nodes.length){var K=0;T.forEach(function(O){O.owner==c&&K++}),K==this.nodes.length&&(this.isConnected=!0)}},A.exports=o}),(function(A,P,N){var u,h=N(1);function a(e){u=N(6),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),r=this.layout.newNode(null),l=this.add(e,r);return this.setRootGraph(l),this.rootGraph},a.prototype.add=function(e,r,l,i,g){if(l==null&&i==null&&g==null){if(e==null)throw"Graph is null!";if(r==null)throw"Parent node is null!";if(this.graphs.indexOf(e)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(e),e.parent!=null)throw"Already has a parent!";if(r.child!=null)throw"Already has a child!";return e.parent=r,r.child=e,e}else{g=l,i=r,l=e;var t=i.getOwner(),o=g.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(o!=null&&o.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==o)return l.isInterGraph=!1,t.add(l,i,g);if(l.isInterGraph=!0,l.source=i,l.target=g,this.edges.indexOf(l)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(l),!(l.source!=null&&l.target!=null))throw"Edge source and/or target is null!";if(!(l.source.edges.indexOf(l)==-1&&l.target.edges.indexOf(l)==-1))throw"Edge already in source and/or target incidency list!";return l.source.edges.push(l),l.target.edges.push(l),l}},a.prototype.remove=function(e){if(e instanceof u){var r=e;if(r.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(r==this.rootGraph||r.parent!=null&&r.parent.graphManager==this))throw"Invalid parent node!";var l=[];l=l.concat(r.getEdges());for(var i,g=l.length,t=0;t=e.getRight()?r[0]+=Math.min(e.getX()-a.getX(),a.getRight()-e.getRight()):e.getX()<=a.getX()&&e.getRight()>=a.getRight()&&(r[0]+=Math.min(a.getX()-e.getX(),e.getRight()-a.getRight())),a.getY()<=e.getY()&&a.getBottom()>=e.getBottom()?r[1]+=Math.min(e.getY()-a.getY(),a.getBottom()-e.getBottom()):e.getY()<=a.getY()&&e.getBottom()>=a.getBottom()&&(r[1]+=Math.min(a.getY()-e.getY(),e.getBottom()-a.getBottom()));var g=Math.abs((e.getCenterY()-a.getCenterY())/(e.getCenterX()-a.getCenterX()));e.getCenterY()===a.getCenterY()&&e.getCenterX()===a.getCenterX()&&(g=1);var t=g*r[0],o=r[1]/g;r[0]t)return r[0]=l,r[1]=s,r[2]=g,r[3]=Y,!1;if(ig)return r[0]=o,r[1]=i,r[2]=G,r[3]=t,!1;if(lg?(r[0]=f,r[1]=T,n=!0):(r[0]=c,r[1]=s,n=!0):p===y&&(l>g?(r[0]=o,r[1]=s,n=!0):(r[0]=v,r[1]=T,n=!0)),-E===y?g>l?(r[2]=k,r[3]=Y,m=!0):(r[2]=G,r[3]=C,m=!0):E===y&&(g>l?(r[2]=b,r[3]=C,m=!0):(r[2]=K,r[3]=Y,m=!0)),n&&m)return!1;if(l>g?i>t?(R=this.getCardinalDirection(p,y,4),M=this.getCardinalDirection(E,y,2)):(R=this.getCardinalDirection(-p,y,3),M=this.getCardinalDirection(-E,y,1)):i>t?(R=this.getCardinalDirection(-p,y,1),M=this.getCardinalDirection(-E,y,3)):(R=this.getCardinalDirection(p,y,2),M=this.getCardinalDirection(E,y,4)),!n)switch(R){case 1:W=s,S=l+-L/y,r[0]=S,r[1]=W;break;case 2:S=v,W=i+d*y,r[0]=S,r[1]=W;break;case 3:W=T,S=l+L/y,r[0]=S,r[1]=W;break;case 4:S=f,W=i+-d*y,r[0]=S,r[1]=W;break}if(!m)switch(M){case 1:q=C,D=g+-it/y,r[2]=D,r[3]=q;break;case 2:D=K,q=t+O*y,r[2]=D,r[3]=q;break;case 3:q=Y,D=g+it/y,r[2]=D,r[3]=q;break;case 4:D=k,q=t+-O*y,r[2]=D,r[3]=q;break}}return!1},h.getCardinalDirection=function(a,e,r){return a>e?r:1+r%4},h.getIntersection=function(a,e,r,l){if(l==null)return this.getIntersection2(a,e,r);var i=a.x,g=a.y,t=e.x,o=e.y,s=r.x,c=r.y,f=l.x,T=l.y,v=void 0,d=void 0,L=void 0,b=void 0,C=void 0,G=void 0,k=void 0,Y=void 0,K=void 0;return L=o-g,C=i-t,k=t*g-i*o,b=T-c,G=s-f,Y=f*c-s*T,K=L*G-b*C,K===0?null:(v=(C*Y-G*k)/K,d=(b*k-L*Y)/K,new u(v,d))},h.angleOfVector=function(a,e,r,l){var i=void 0;return a!==r?(i=Math.atan((l-e)/(r-a)),r=0){var T=(-s+Math.sqrt(s*s-4*o*c))/(2*o),v=(-s-Math.sqrt(s*s-4*o*c))/(2*o),d=null;return T>=0&&T<=1?[T]:v>=0&&v<=1?[v]:d}else return null},h.HALF_PI=.5*Math.PI,h.ONE_AND_HALF_PI=1.5*Math.PI,h.TWO_PI=2*Math.PI,h.THREE_PI=3*Math.PI,A.exports=h}),(function(A,P,N){function u(){}u.sign=function(h){return h>0?1:h<0?-1:0},u.floor=function(h){return h<0?Math.ceil(h):Math.floor(h)},u.ceil=function(h){return h<0?Math.floor(h):Math.ceil(h)},A.exports=u}),(function(A,P,N){function u(){}u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,A.exports=u}),(function(A,P,N){var u=(function(){function i(g,t){for(var o=0;o"u"?"undefined":u(a);return a==null||e!="object"&&e!="function"},A.exports=h}),(function(A,P,N){function u(s){if(Array.isArray(s)){for(var c=0,f=Array(s.length);c0&&c;){for(L.push(C[0]);L.length>0&&c;){var G=L[0];L.splice(0,1),d.add(G);for(var k=G.getEdges(),v=0;v-1&&C.splice(it,1)}d=new Set,b=new Map}}return s},o.prototype.createDummyNodesForBendpoints=function(s){for(var c=[],f=s.source,T=this.graphManager.calcLowestCommonAncestor(s.source,s.target),v=0;v0){for(var T=this.edgeToDummyNodes.get(f),v=0;v=0&&c.splice(Y,1);var K=b.getNeighborsList();K.forEach(function(n){if(f.indexOf(n)<0){var m=T.get(n),p=m-1;p==1&&G.push(n),T.set(n,p)}})}f=f.concat(G),(c.length==1||c.length==2)&&(v=!0,d=c[0])}return d},o.prototype.setGraphManager=function(s){this.graphManager=s},A.exports=o}),(function(A,P,N){function u(){}u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},A.exports=u}),(function(A,P,N){var u=N(5);function h(a,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}h.prototype.getWorldOrgX=function(){return this.lworldOrgX},h.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},h.prototype.getWorldOrgY=function(){return this.lworldOrgY},h.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},h.prototype.getWorldExtX=function(){return this.lworldExtX},h.prototype.setWorldExtX=function(a){this.lworldExtX=a},h.prototype.getWorldExtY=function(){return this.lworldExtY},h.prototype.setWorldExtY=function(a){this.lworldExtY=a},h.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},h.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},h.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},h.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},h.prototype.getDeviceExtX=function(){return this.ldeviceExtX},h.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},h.prototype.getDeviceExtY=function(){return this.ldeviceExtY},h.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},h.prototype.transformX=function(a){var e=0,r=this.lworldExtX;return r!=0&&(e=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/r),e},h.prototype.transformY=function(a){var e=0,r=this.lworldExtY;return r!=0&&(e=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/r),e},h.prototype.inverseTransformX=function(a){var e=0,r=this.ldeviceExtX;return r!=0&&(e=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/r),e},h.prototype.inverseTransformY=function(a){var e=0,r=this.ldeviceExtY;return r!=0&&(e=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/r),e},h.prototype.inverseTransformPoint=function(a){var e=new u(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return e},A.exports=h}),(function(A,P,N){function u(t){if(Array.isArray(t)){for(var o=0,s=Array(t.length);oa.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},i.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),o,s=0;s0&&arguments[0]!==void 0?arguments[0]:!0,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s,c,f,T,v=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,s=0;sL||d>L)&&(t.gravitationForceX=-this.gravityConstant*f,t.gravitationForceY=-this.gravityConstant*T)):(L=o.getEstimatedSize()*this.compoundGravityRangeFactor,(v>L||d>L)&&(t.gravitationForceX=-this.gravityConstant*f*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},i.prototype.isConverged=function(){var t,o=!1;return this.totalIterations>this.maxIterations/3&&(o=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=v.length||L>=v[0].length)){for(var b=0;bi}}]),r})();A.exports=e}),(function(A,P,N){function u(){}u.svd=function(h){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=h.length,this.n=h[0].length;var a=Math.min(this.m,this.n);this.s=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(Math.min(this.m+1,this.n)),this.U=(function(Tt){var Ct=function Bt(bt){if(bt.length==0)return 0;for(var zt=[],St=0;St0;)Ct.push(0);return Ct})(this.n),r=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(this.m),l=!0,i=Math.min(this.m-1,this.n),g=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var y=E+1;y=0;V--){if((function(Tt,Ct){return Tt&&Ct})(V0;){var Q=void 0,It=void 0;for(Q=n-2;Q>=-1&&Q!==-1;Q--)if(Math.abs(e[Q])<=ht+_*(Math.abs(this.s[Q])+Math.abs(this.s[Q+1]))){e[Q]=0;break}if(Q===n-2)It=4;else{var Nt=void 0;for(Nt=n-1;Nt>=Q&&Nt!==Q;Nt--){var dt=(Nt!==n?Math.abs(e[Nt]):0)+(Nt!==Q+1?Math.abs(e[Nt-1]):0);if(Math.abs(this.s[Nt])<=ht+_*dt){this.s[Nt]=0;break}}Nt===Q?It=3:Nt===n-1?It=1:(It=2,Q=Nt)}switch(Q++,It){case 1:{var rt=e[n-2];e[n-2]=0;for(var gt=n-2;gt>=Q;gt--){var mt=u.hypot(this.s[gt],rt),At=this.s[gt]/mt,Ot=rt/mt;this.s[gt]=mt,gt!==Q&&(rt=-Ot*e[gt-1],e[gt-1]=At*e[gt-1]);for(var Et=0;Et=this.s[Q+1]);){var Lt=this.s[Q];if(this.s[Q]=this.s[Q+1],this.s[Q+1]=Lt,QMath.abs(a)?(e=a/h,e=Math.abs(h)*Math.sqrt(1+e*e)):a!=0?(e=h/a,e=Math.abs(a)*Math.sqrt(1+e*e)):e=0,e},A.exports=u}),(function(A,P,N){var u=(function(){function e(r,l){for(var i=0;i2&&arguments[2]!==void 0?arguments[2]:1,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;h(this,e),this.sequence1=r,this.sequence2=l,this.match_score=i,this.mismatch_penalty=g,this.gap_penalty=t,this.iMax=r.length+1,this.jMax=l.length+1,this.grid=new Array(this.iMax);for(var o=0;o=0;r--){var l=this.listeners[r];l.event===a&&l.callback===e&&this.listeners.splice(r,1)}},h.emit=function(a,e){for(var r=0;r{var P={45:((a,e,r)=>{var l={};l.layoutBase=r(551),l.CoSEConstants=r(806),l.CoSEEdge=r(767),l.CoSEGraph=r(880),l.CoSEGraphManager=r(578),l.CoSELayout=r(765),l.CoSENode=r(991),l.ConstraintHandler=r(902),a.exports=l}),806:((a,e,r)=>{var l=r(551).FDLayoutConstants;function i(){}for(var g in l)i[g]=l[g];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=l.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!0,i.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,i.TREE_REDUCTION_ON_INCREMENTAL=!0,i.PURE_INCREMENTAL=i.DEFAULT_INCREMENTAL,a.exports=i}),767:((a,e,r)=>{var l=r(551).FDLayoutEdge;function i(t,o,s){l.call(this,t,o,s)}i.prototype=Object.create(l.prototype);for(var g in l)i[g]=l[g];a.exports=i}),880:((a,e,r)=>{var l=r(551).LGraph;function i(t,o,s){l.call(this,t,o,s)}i.prototype=Object.create(l.prototype);for(var g in l)i[g]=l[g];a.exports=i}),578:((a,e,r)=>{var l=r(551).LGraphManager;function i(t){l.call(this,t)}i.prototype=Object.create(l.prototype);for(var g in l)i[g]=l[g];a.exports=i}),765:((a,e,r)=>{var l=r(551).FDLayout,i=r(578),g=r(880),t=r(991),o=r(767),s=r(806),c=r(902),f=r(551).FDLayoutConstants,T=r(551).LayoutConstants,v=r(551).Point,d=r(551).PointD,L=r(551).DimensionD,b=r(551).Layout,C=r(551).Integer,G=r(551).IGeometry,k=r(551).LGraph,Y=r(551).Transform,K=r(551).LinkedList;function O(){l.call(this),this.toBeTiled={},this.constraints={}}O.prototype=Object.create(l.prototype);for(var it in l)O[it]=l[it];O.prototype.newGraphManager=function(){var n=new i(this);return this.graphManager=n,n},O.prototype.newGraph=function(n){return new g(null,this.graphManager,n)},O.prototype.newNode=function(n){return new t(this.graphManager,n)},O.prototype.newEdge=function(n){return new o(null,null,n)},O.prototype.initParameters=function(){l.prototype.initParameters.call(this,arguments),this.isSubLayout||(s.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=s.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=f.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=f.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=f.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},O.prototype.initSpringEmbedder=function(){l.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/f.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},O.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},O.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(s.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(R){return m.has(R)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),s.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},O.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%f.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),s.PURE_INCREMENTAL?this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),s.PURE_INCREMENTAL?this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},O.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},p=0;p0&&this.updateDisplacements();for(var p=0;p0&&(E.fixedNodeWeight=R)}}if(this.constraints.relativePlacementConstraint){var M=new Map,S=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(w){n.fixedNodesOnHorizontal.add(w),n.fixedNodesOnVertical.add(w)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,p=0;p=2*w.length/3;_--)H=Math.floor(Math.random()*(_+1)),B=w[_],w[_]=w[H],w[H]=B;return w},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(w){if(w.left){var H=M.has(w.left)?M.get(w.left):w.left,B=M.has(w.right)?M.get(w.right):w.right;n.nodesInRelativeHorizontal.includes(H)||(n.nodesInRelativeHorizontal.push(H),n.nodeToRelativeConstraintMapHorizontal.set(H,[]),n.dummyToNodeForVerticalAlignment.has(H)?n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(H).getCenterX())),n.nodesInRelativeHorizontal.includes(B)||(n.nodesInRelativeHorizontal.push(B),n.nodeToRelativeConstraintMapHorizontal.set(B,[]),n.dummyToNodeForVerticalAlignment.has(B)?n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(B).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(H).push({right:B,gap:w.gap}),n.nodeToRelativeConstraintMapHorizontal.get(B).push({left:H,gap:w.gap})}else{var _=S.has(w.top)?S.get(w.top):w.top,ht=S.has(w.bottom)?S.get(w.bottom):w.bottom;n.nodesInRelativeVertical.includes(_)||(n.nodesInRelativeVertical.push(_),n.nodeToRelativeConstraintMapVertical.set(_,[]),n.dummyToNodeForHorizontalAlignment.has(_)?n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(_).getCenterY())),n.nodesInRelativeVertical.includes(ht)||(n.nodesInRelativeVertical.push(ht),n.nodeToRelativeConstraintMapVertical.set(ht,[]),n.dummyToNodeForHorizontalAlignment.has(ht)?n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(ht).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(_).push({bottom:ht,gap:w.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:_,gap:w.gap})}});else{var q=new Map,V=new Map;this.constraints.relativePlacementConstraint.forEach(function(w){if(w.left){var H=M.has(w.left)?M.get(w.left):w.left,B=M.has(w.right)?M.get(w.right):w.right;q.has(H)?q.get(H).push(B):q.set(H,[B]),q.has(B)?q.get(B).push(H):q.set(B,[H])}else{var _=S.has(w.top)?S.get(w.top):w.top,ht=S.has(w.bottom)?S.get(w.bottom):w.bottom;V.has(_)?V.get(_).push(ht):V.set(_,[ht]),V.has(ht)?V.get(ht).push(_):V.set(ht,[_])}});var X=function(H,B){var _=[],ht=[],Q=new K,It=new Set,Nt=0;return H.forEach(function(dt,rt){if(!It.has(rt)){_[Nt]=[],ht[Nt]=!1;var gt=rt;for(Q.push(gt),It.add(gt),_[Nt].push(gt);Q.length!=0;){gt=Q.shift(),B.has(gt)&&(ht[Nt]=!0);var mt=H.get(gt);mt.forEach(function(At){It.has(At)||(Q.push(At),It.add(At),_[Nt].push(At))})}Nt++}}),{components:_,isFixed:ht}},et=X(q,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=X(V,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},O.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var w=n.idToNodeMap.get(z.nodeId);w.displacementX=0,w.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,p=0;p1){var S;for(S=0;SE&&(E=Math.floor(M.y)),R=Math.floor(M.x+s.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-M.x/2,T.WORLD_CENTER_Y-M.y/2))},O.radialLayout=function(n,m,p){var E=Math.max(this.maxDiagonalInTree(n),s.DEFAULT_RADIAL_SEPARATION);O.branchRadialLayout(m,null,0,359,0,E);var y=k.calculateBounds(n),R=new Y;R.setDeviceOrgX(y.getMinX()),R.setDeviceOrgY(y.getMinY()),R.setWorldOrgX(p.x),R.setWorldOrgY(p.y);for(var M=0;M1;){var B=H[0];H.splice(0,1);var _=V.indexOf(B);_>=0&&V.splice(_,1),z--,X--}m!=null?w=(V.indexOf(H[0])+1)%z:w=0;for(var ht=Math.abs(E-p)/X,Q=w;et!=X;Q=++Q%z){var It=V[Q].getOtherEnd(n);if(It!=m){var Nt=(p+et*ht)%360,dt=(Nt+ht)%360;O.branchRadialLayout(It,n,Nt,dt,y+R,R),et++}}},O.maxDiagonalInTree=function(n){for(var m=C.MIN_VALUE,p=0;pm&&(m=y)}return m},O.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},O.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var p=[],E=this.graphManager.getAllNodes(),y=0;y"u"&&(m[S]=[]),m[S]=m[S].concat(R)}Object.keys(m).forEach(function(W){if(m[W].length>1){var D="DummyCompound_"+W;n.memberGroups[D]=m[W];var q=m[W][0].getParent(),V=new t(n.graphManager);V.id=D,V.paddingLeft=q.paddingLeft||0,V.paddingRight=q.paddingRight||0,V.paddingBottom=q.paddingBottom||0,V.paddingTop=q.paddingTop||0,n.idToDummyNode[D]=V;var X=n.getGraphManager().add(n.newGraph(),V),et=q.getChild();et.add(V);for(var z=0;zy?(E.rect.x-=(E.labelWidth-y)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-y)/2):E.labelPosHorizontal=="right"&&E.setWidth(y+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(R+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>R?(E.rect.y-=(E.labelHeight-R)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-R)/2):E.labelPosVertical=="bottom"&&E.setHeight(R+E.labelHeight))}})},O.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],p=m.id,E=m.paddingLeft,y=m.paddingTop,R=m.labelMarginLeft,M=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],m.rect.x,m.rect.y,E,y,R,M)}},O.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(p){var E=n.idToDummyNode[p],y=E.paddingLeft,R=E.paddingTop,M=E.labelMarginLeft,S=E.labelMarginTop;n.adjustLocations(m[p],E.rect.x,E.rect.y,y,R,M,S)})},O.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var p=n.getChild();if(p==null)return this.toBeTiled[m]=!1,!1;for(var E=p.getNodes(),y=0;y0)return this.toBeTiled[m]=!1,!1;if(R.getChild()==null){this.toBeTiled[R.id]=!1;continue}if(!this.getToBeTiled(R))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},O.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),p=0,E=0;Eq&&(q=X.rect.height)}p+=q+n.verticalPadding}},O.prototype.tileCompoundMembers=function(n,m){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var y=m[E];if(p.tiledMemberPack[E]=p.tileNodes(n[E],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[E].width,y.rect.height=p.tiledMemberPack[E].height,y.setCenter(p.tiledMemberPack[E].centerX,p.tiledMemberPack[E].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,s.NODE_DIMENSIONS_INCLUDE_LABELS){var R=y.rect.width,M=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(R+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>R?(y.rect.x-=(y.labelWidth-R)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-R)/2):y.labelPosHorizontal=="right"&&y.setWidth(R+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(M+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>M?(y.rect.y-=(y.labelHeight-M)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-M)/2):y.labelPosVertical=="bottom"&&y.setHeight(M+y.labelHeight))}})},O.prototype.tileNodes=function(n,m){var p=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),y=this.getOrgRatio(p),R=this.getOrgRatio(E),M;return RS&&(S=z.getWidth())});var W=R/y,D=M/y,q=Math.pow(p-E,2)+4*(W+E)*(D+p)*y,V=(E-p+Math.sqrt(q))/(2*(W+E)),X;m?(X=Math.ceil(V),X==V&&X++):X=Math.floor(V);var et=X*(W+E)-E;return S>et&&(et=S),et+=E*2,et},O.prototype.tileNodesByFavoringDim=function(n,m,p){var E=s.TILING_PADDING_VERTICAL,y=s.TILING_PADDING_HORIZONTAL,R=s.TILING_COMPARE_BY,M={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:y,centerX:0,centerY:0};R&&(M.idealRowWidth=this.calcIdealRowWidth(n,p));var S=function(w){return w.rect.width*w.rect.height},W=function(w,H){return S(H)-S(w)};n.sort(function(z,w){var H=W;return M.idealRowWidth?(H=R,H(z.id,w.id)):H(z,w)});for(var D=0,q=0,V=0;V0&&(M+=n.horizontalPadding),n.rowWidth[p]=M,n.width0&&(S+=n.verticalPadding);var W=0;S>n.rowHeight[p]&&(W=n.rowHeight[p],n.rowHeight[p]=S,W=n.rowHeight[p]-W),n.height+=W,n.rows[p].push(m)},O.prototype.getShortestRowIndex=function(n){for(var m=-1,p=Number.MAX_VALUE,E=0;Ep&&(m=E,p=n.rowWidth[E]);return m},O.prototype.canAddHorizontal=function(n,m,p){if(n.idealRowWidth){var E=n.rows.length-1,y=n.rowWidth[E];return y+m+n.horizontalPadding<=n.idealRowWidth}var R=this.getShortestRowIndex(n);if(R<0)return!0;var M=n.rowWidth[R];if(M+n.horizontalPadding+m<=n.width)return!0;var S=0;n.rowHeight[R]0&&(S=p+n.verticalPadding-n.rowHeight[R]);var W;n.width-M>=m+n.horizontalPadding?W=(n.height+S)/(M+m+n.horizontalPadding):W=(n.height+S)/n.width,S=p+n.verticalPadding;var D;return n.widthR&&m!=p){E.splice(-1,1),n.rows[p].push(y),n.rowWidth[m]=n.rowWidth[m]-R,n.rowWidth[p]=n.rowWidth[p]+R,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var M=Number.MIN_VALUE,S=0;SM&&(M=E[S].height);m>0&&(M+=n.verticalPadding);var W=n.rowHeight[m]+n.rowHeight[p];n.rowHeight[m]=M,n.rowHeight[p]0)for(var et=y;et<=R;et++)X[0]+=this.grid[et][M-1].length+this.grid[et][M].length-1;if(R0)for(var et=M;et<=S;et++)X[3]+=this.grid[y-1][et].length+this.grid[y][et].length-1;for(var z=C.MAX_VALUE,w,H,B=0;B{var l=r(551).FDLayoutNode,i=r(551).IMath;function g(o,s,c,f){l.call(this,o,s,c,f)}g.prototype=Object.create(l.prototype);for(var t in l)g[t]=l[t];g.prototype.calculateDisplacement=function(){var o=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementX=o.coolingFactor*o.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementY=o.coolingFactor*o.maxNodeDisplacement*i.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},g.prototype.propogateDisplacementToChildren=function(o,s){for(var c=this.getChild().getNodes(),f,T=0;T{function l(c){if(Array.isArray(c)){for(var f=0,T=Array(c.length);f0){var Lt=0;ot.forEach(function(st){$=="horizontal"?(tt.set(st,v.has(st)?d[v.get(st)]:Z.get(st)),Lt+=tt.get(st)):(tt.set(st,v.has(st)?L[v.get(st)]:Z.get(st)),Lt+=tt.get(st))}),Lt=Lt/ot.length,lt.forEach(function(st){J.has(st)||tt.set(st,Lt)})}else{var ft=0;lt.forEach(function(st){$=="horizontal"?ft+=v.has(st)?d[v.get(st)]:Z.get(st):ft+=v.has(st)?L[v.get(st)]:Z.get(st)}),ft=ft/lt.length,lt.forEach(function(st){tt.set(st,ft)})}});for(var Mt=function(){var ot=ut.shift(),Lt=U.get(ot);Lt.forEach(function(ft){if(tt.get(ft.id)st&&(st=Zt),KtXt&&(Xt=Kt)}}catch(ee){Ct=!0,Bt=ee}finally{try{!Tt&&bt.return&&bt.return()}finally{if(Ct)throw Bt}}var ce=(Lt+st)/2-(ft+Xt)/2,Qt=!0,jt=!1,_t=void 0;try{for(var Jt=lt[Symbol.iterator](),oe;!(Qt=(oe=Jt.next()).done);Qt=!0){var te=oe.value;tt.set(te,tt.get(te)+ce)}}catch(ee){jt=!0,_t=ee}finally{try{!Qt&&Jt.return&&Jt.return()}finally{if(jt)throw _t}}})}return tt},it=function(U){var $=0,J=0,Z=0,at=0;if(U.forEach(function(j){j.left?d[v.get(j.left)]-d[v.get(j.right)]>=0?$++:J++:L[v.get(j.top)]-L[v.get(j.bottom)]>=0?Z++:at++}),$>J&&Z>at)for(var ct=0;ctJ)for(var nt=0;ntat)for(var tt=0;tt1)f.fixedNodeConstraint.forEach(function(F,U){E[U]=[F.position.x,F.position.y],y[U]=[d[v.get(F.nodeId)],L[v.get(F.nodeId)]]}),R=!0;else if(f.alignmentConstraint)(function(){var F=0;if(f.alignmentConstraint.vertical){for(var U=f.alignmentConstraint.vertical,$=function(tt){var j=new Set;U[tt].forEach(function(pt){j.add(pt)});var ut=new Set([].concat(l(j)).filter(function(pt){return S.has(pt)})),Mt=void 0;ut.size>0?Mt=d[v.get(ut.values().next().value)]:Mt=K(j).x,U[tt].forEach(function(pt){E[F]=[Mt,L[v.get(pt)]],y[F]=[d[v.get(pt)],L[v.get(pt)]],F++})},J=0;J0?Mt=d[v.get(ut.values().next().value)]:Mt=K(j).y,Z[tt].forEach(function(pt){E[F]=[d[v.get(pt)],Mt],y[F]=[d[v.get(pt)],L[v.get(pt)]],F++})},ct=0;ctV&&(V=q[et].length,X=et);if(V0){var Et={x:0,y:0};f.fixedNodeConstraint.forEach(function(F,U){var $={x:d[v.get(F.nodeId)],y:L[v.get(F.nodeId)]},J=F.position,Z=Y(J,$);Et.x+=Z.x,Et.y+=Z.y}),Et.x/=f.fixedNodeConstraint.length,Et.y/=f.fixedNodeConstraint.length,d.forEach(function(F,U){d[U]+=Et.x}),L.forEach(function(F,U){L[U]+=Et.y}),f.fixedNodeConstraint.forEach(function(F){d[v.get(F.nodeId)]=F.position.x,L[v.get(F.nodeId)]=F.position.y})}if(f.alignmentConstraint){if(f.alignmentConstraint.vertical)for(var Dt=f.alignmentConstraint.vertical,Rt=function(U){var $=new Set;Dt[U].forEach(function(at){$.add(at)});var J=new Set([].concat(l($)).filter(function(at){return S.has(at)})),Z=void 0;J.size>0?Z=d[v.get(J.values().next().value)]:Z=K($).x,$.forEach(function(at){S.has(at)||(d[v.get(at)]=Z)})},Ht=0;Ht0?Z=L[v.get(J.values().next().value)]:Z=K($).y,$.forEach(function(at){S.has(at)||(L[v.get(at)]=Z)})},Ft=0;Ft{a.exports=A})},N={};function u(a){var e=N[a];if(e!==void 0)return e.exports;var r=N[a]={exports:{}};return P[a](r,r.exports,u),r.exports}var h=u(45);return h})()})})(le)),le.exports}var pr=he.exports,De;function yr(){return De||(De=1,(function(I,x){(function(P,N){I.exports=N(dr())})(pr,function(A){return(()=>{var P={658:(a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(e){for(var r=arguments.length,l=Array(r>1?r-1:0),i=1;i{var l=(function(){function t(o,s){var c=[],f=!0,T=!1,v=void 0;try{for(var d=o[Symbol.iterator](),L;!(f=(L=d.next()).done)&&(c.push(L.value),!(s&&c.length===s));f=!0);}catch(b){T=!0,v=b}finally{try{!f&&d.return&&d.return()}finally{if(T)throw v}}return c}return function(o,s){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return t(o,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),i=r(140).layoutBase.LinkedList,g={};g.getTopMostNodes=function(t){for(var o={},s=0;s0&&R.merge(D)});for(var M=0;M1){L=v[0],b=L.connectedEdges().length,v.forEach(function(y){y.connectedEdges().length0&&c.set("dummy"+(c.size+1),k),Y},g.relocateComponent=function(t,o,s){if(!s.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,f=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY;if(s.quality=="draft"){var d=!0,L=!1,b=void 0;try{for(var C=o.nodeIndexes[Symbol.iterator](),G;!(d=(G=C.next()).done);d=!0){var k=G.value,Y=l(k,2),K=Y[0],O=Y[1],it=s.cy.getElementById(K);if(it){var n=it.boundingBox(),m=o.xCoords[O]-n.w/2,p=o.xCoords[O]+n.w/2,E=o.yCoords[O]-n.h/2,y=o.yCoords[O]+n.h/2;mf&&(f=p),Ev&&(v=y)}}}catch(D){L=!0,b=D}finally{try{!d&&C.return&&C.return()}finally{if(L)throw b}}var R=t.x-(f+c)/2,M=t.y-(v+T)/2;o.xCoords=o.xCoords.map(function(D){return D+R}),o.yCoords=o.yCoords.map(function(D){return D+M})}else{Object.keys(o).forEach(function(D){var q=o[D],V=q.getRect().x,X=q.getRect().x+q.getRect().width,et=q.getRect().y,z=q.getRect().y+q.getRect().height;Vf&&(f=X),etv&&(v=z)});var S=t.x-(f+c)/2,W=t.y-(v+T)/2;Object.keys(o).forEach(function(D){var q=o[D];q.setCenter(q.getCenterX()+S,q.getCenterY()+W)})}}},g.calcBoundingBox=function(t,o,s,c){for(var f=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,v=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,L=void 0,b=void 0,C=void 0,G=void 0,k=t.descendants().not(":parent"),Y=k.length,K=0;KL&&(f=L),TC&&(v=C),d{var l=r(548),i=r(140).CoSELayout,g=r(140).CoSENode,t=r(140).layoutBase.PointD,o=r(140).layoutBase.DimensionD,s=r(140).layoutBase.LayoutConstants,c=r(140).layoutBase.FDLayoutConstants,f=r(140).CoSEConstants,T=function(d,L){var b=d.cy,C=d.eles,G=C.nodes(),k=C.edges(),Y=void 0,K=void 0,O=void 0,it={};d.randomize&&(Y=L.nodeIndexes,K=L.xCoords,O=L.yCoords);var n=function(D){return typeof D=="function"},m=function(D,q){return n(D)?D(q):D},p=l.calcParentsWithoutChildren(b,C),E=function W(D,q,V,X){for(var et=q.length,z=0;z0){var Q=void 0;Q=V.getGraphManager().add(V.newGraph(),B),W(Q,H,V,X)}}},y=function(D,q,V){for(var X=0,et=0,z=0;z0?f.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=X/et:n(d.idealEdgeLength)?f.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:f.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,f.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,f.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},R=function(D,q){q.fixedNodeConstraint&&(D.constraints.fixedNodeConstraint=q.fixedNodeConstraint),q.alignmentConstraint&&(D.constraints.alignmentConstraint=q.alignmentConstraint),q.relativePlacementConstraint&&(D.constraints.relativePlacementConstraint=q.relativePlacementConstraint)};d.nestingFactor!=null&&(f.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(f.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(f.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(f.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(f.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(f.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(f.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?s.QUALITY=2:s.QUALITY=0,f.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=s.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,f.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!d.randomize,f.ANIMATE=c.ANIMATE=s.ANIMATE=d.animate,f.TILE=d.tile,f.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,f.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,f.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!0,f.PURE_INCREMENTAL=!d.randomize,s.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(f.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,f.ENFORCE_CONSTRAINTS=!1,f.APPLY_LAYOUT=!1),d.step=="enforced"&&(f.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,f.ENFORCE_CONSTRAINTS=!0,f.APPLY_LAYOUT=!1),d.step=="cose"&&(f.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,f.ENFORCE_CONSTRAINTS=!1,f.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?f.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:f.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,f.ENFORCE_CONSTRAINTS=!0,f.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?f.TREE_REDUCTION_ON_INCREMENTAL=!1:f.TREE_REDUCTION_ON_INCREMENTAL=!0;var M=new i,S=M.newGraphManager();return E(S.addRoot(),l.getTopMostNodes(G),M,d),y(M,S,k),R(M,d),M.runLayout(),it};a.exports={coseLayout:T}}),212:((a,e,r)=>{var l=(function(){function d(L,b){for(var C=0;C0)if(p){var R=t.getTopMostNodes(C.eles.nodes());if(O=t.connectComponents(G,C.eles,R),O.forEach(function(dt){var rt=dt.boundingBox();it.push({x:rt.x1+rt.w/2,y:rt.y1+rt.h/2})}),C.randomize&&O.forEach(function(dt){C.eles=dt,Y.push(s(C))}),C.quality=="default"||C.quality=="proof"){var M=G.collection();if(C.tile){var S=new Map,W=[],D=[],q=0,V={nodeIndexes:S,xCoords:W,yCoords:D},X=[];if(O.forEach(function(dt,rt){dt.edges().length==0&&(dt.nodes().forEach(function(gt,mt){M.merge(dt.nodes()[mt]),gt.isParent()||(V.nodeIndexes.set(dt.nodes()[mt].id(),q++),V.xCoords.push(dt.nodes()[0].position().x),V.yCoords.push(dt.nodes()[0].position().y))}),X.push(rt))}),M.length>1){var et=M.boundingBox();it.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),O.push(M),Y.push(V);for(var z=X.length-1;z>=0;z--)O.splice(X[z],1),Y.splice(X[z],1),it.splice(X[z],1)}}O.forEach(function(dt,rt){C.eles=dt,K.push(f(C,Y[rt])),t.relocateComponent(it[rt],K[rt],C)})}else O.forEach(function(dt,rt){t.relocateComponent(it[rt],Y[rt],C)});var w=new Set;if(O.length>1){var H=[],B=k.filter(function(dt){return dt.css("display")=="none"});O.forEach(function(dt,rt){var gt=void 0;if(C.quality=="draft"&&(gt=Y[rt].nodeIndexes),dt.nodes().not(B).length>0){var mt={};mt.edges=[],mt.nodes=[];var At=void 0;dt.nodes().not(B).forEach(function(Ot){if(C.quality=="draft")if(!Ot.isParent())At=gt.get(Ot.id()),mt.nodes.push({x:Y[rt].xCoords[At]-Ot.boundingbox().w/2,y:Y[rt].yCoords[At]-Ot.boundingbox().h/2,width:Ot.boundingbox().w,height:Ot.boundingbox().h});else{var Et=t.calcBoundingBox(Ot,Y[rt].xCoords,Y[rt].yCoords,gt);mt.nodes.push({x:Et.topLeftX,y:Et.topLeftY,width:Et.width,height:Et.height})}else K[rt][Ot.id()]&&mt.nodes.push({x:K[rt][Ot.id()].getLeft(),y:K[rt][Ot.id()].getTop(),width:K[rt][Ot.id()].getWidth(),height:K[rt][Ot.id()].getHeight()})}),dt.edges().forEach(function(Ot){var Et=Ot.source(),Dt=Ot.target();if(Et.css("display")!="none"&&Dt.css("display")!="none")if(C.quality=="draft"){var Rt=gt.get(Et.id()),Ht=gt.get(Dt.id()),Ut=[],Pt=[];if(Et.isParent()){var Ft=t.calcBoundingBox(Et,Y[rt].xCoords,Y[rt].yCoords,gt);Ut.push(Ft.topLeftX+Ft.width/2),Ut.push(Ft.topLeftY+Ft.height/2)}else Ut.push(Y[rt].xCoords[Rt]),Ut.push(Y[rt].yCoords[Rt]);if(Dt.isParent()){var Yt=t.calcBoundingBox(Dt,Y[rt].xCoords,Y[rt].yCoords,gt);Pt.push(Yt.topLeftX+Yt.width/2),Pt.push(Yt.topLeftY+Yt.height/2)}else Pt.push(Y[rt].xCoords[Ht]),Pt.push(Y[rt].yCoords[Ht]);mt.edges.push({startX:Ut[0],startY:Ut[1],endX:Pt[0],endY:Pt[1]})}else K[rt][Et.id()]&&K[rt][Dt.id()]&&mt.edges.push({startX:K[rt][Et.id()].getCenterX(),startY:K[rt][Et.id()].getCenterY(),endX:K[rt][Dt.id()].getCenterX(),endY:K[rt][Dt.id()].getCenterY()})}),mt.nodes.length>0&&(H.push(mt),w.add(rt))}});var _=m.packComponents(H,C.randomize).shifts;if(C.quality=="draft")Y.forEach(function(dt,rt){var gt=dt.xCoords.map(function(At){return At+_[rt].dx}),mt=dt.yCoords.map(function(At){return At+_[rt].dy});dt.xCoords=gt,dt.yCoords=mt});else{var ht=0;w.forEach(function(dt){Object.keys(K[dt]).forEach(function(rt){var gt=K[dt][rt];gt.setCenter(gt.getCenterX()+_[ht].dx,gt.getCenterY()+_[ht].dy)}),ht++})}}}else{var E=C.eles.boundingBox();if(it.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),C.randomize){var y=s(C);Y.push(y)}C.quality=="default"||C.quality=="proof"?(K.push(f(C,Y[0])),t.relocateComponent(it[0],K[0],C)):t.relocateComponent(it[0],Y[0],C)}var Q=function(rt,gt){if(C.quality=="default"||C.quality=="proof"){typeof rt=="number"&&(rt=gt);var mt=void 0,At=void 0,Ot=rt.data("id");return K.forEach(function(Dt){Ot in Dt&&(mt={x:Dt[Ot].getRect().getCenterX(),y:Dt[Ot].getRect().getCenterY()},At=Dt[Ot])}),C.nodeDimensionsIncludeLabels&&(At.labelWidth&&(At.labelPosHorizontal=="left"?mt.x+=At.labelWidth/2:At.labelPosHorizontal=="right"&&(mt.x-=At.labelWidth/2)),At.labelHeight&&(At.labelPosVertical=="top"?mt.y+=At.labelHeight/2:At.labelPosVertical=="bottom"&&(mt.y-=At.labelHeight/2))),mt==null&&(mt={x:rt.position("x"),y:rt.position("y")}),{x:mt.x,y:mt.y}}else{var Et=void 0;return Y.forEach(function(Dt){var Rt=Dt.nodeIndexes.get(rt.id());Rt!=null&&(Et={x:Dt.xCoords[Rt],y:Dt.yCoords[Rt]})}),Et==null&&(Et={x:rt.position("x"),y:rt.position("y")}),{x:Et.x,y:Et.y}}};if(C.quality=="default"||C.quality=="proof"||C.randomize){var It=t.calcParentsWithoutChildren(G,k),Nt=k.filter(function(dt){return dt.css("display")=="none"});C.eles=k.not(Nt),k.nodes().not(":parent").not(Nt).layoutPositions(b,C,Q),It.length>0&&It.forEach(function(dt){dt.position(Q(dt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d})();a.exports=v}),657:((a,e,r)=>{var l=r(548),i=r(140).layoutBase.Matrix,g=r(140).layoutBase.SVD,t=function(s){var c=s.cy,f=s.eles,T=f.nodes(),v=f.nodes(":parent"),d=new Map,L=new Map,b=new Map,C=[],G=[],k=[],Y=[],K=[],O=[],it=[],n=[],m=void 0,p=1e8,E=1e-9,y=s.piTol,R=s.samplingType,M=s.nodeSeparation,S=void 0,W=function(){for(var U=0,$=0,J=!1;$=at;){nt=Z[at++];for(var xt=C[nt],lt=0;ltut&&(ut=K[Lt],Mt=Lt)}return Mt},q=function(U){var $=void 0;if(U){$=Math.floor(Math.random()*m);for(var Z=0;Z=1)break;j=tt}for(var pt=0;pt=1)break;j=tt}for(var lt=0;lt0&&($.isParent()?C[U].push(b.get($.id())):C[U].push($.id()))})});var Nt=function(U){var $=L.get(U),J=void 0;d.get(U).forEach(function(Z){c.getElementById(Z).isParent()?J=b.get(Z):J=Z,C[$].push(J),C[L.get(J)].push(U)})},dt=!0,rt=!1,gt=void 0;try{for(var mt=d.keys()[Symbol.iterator](),At;!(dt=(At=mt.next()).done);dt=!0){var Ot=At.value;Nt(Ot)}}catch(F){rt=!0,gt=F}finally{try{!dt&&mt.return&&mt.return()}finally{if(rt)throw gt}}m=L.size;var Et=void 0;if(m>2){S=m{var l=r(212),i=function(t){t&&t("layout","fcose",l)};typeof cytoscape<"u"&&i(cytoscape),a.exports=i}),140:(a=>{a.exports=A})},N={};function u(a){var e=N[a];if(e!==void 0)return e.exports;var r=N[a]={exports:{}};return P[a](r,r.exports,u),r.exports}var h=u(579);return h})()})})(he)),he.exports}var Er=yr();const mr=Ze(Er);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:vt(I=>`${I},${I/2} 0,${I} 0,0`,"L"),R:vt(I=>`0,${I/2} ${I},0 ${I},${I}`,"R"),T:vt(I=>`0,0 ${I},0 ${I/2},${I}`,"T"),B:vt(I=>`${I/2},0 ${I},${I} 0,${I}`,"B")},se={L:vt((I,x)=>I-x+2,"L"),R:vt((I,x)=>I-2,"R"),T:vt((I,x)=>I-x+2,"T"),B:vt((I,x)=>I-2,"B")},Tr=vt(function(I){return Wt(I)?I==="L"?"R":"L":I==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=vt(function(I){const x=I;return x==="L"||x==="R"||x==="T"||x==="B"},"isArchitectureDirection"),Wt=vt(function(I){const x=I;return x==="L"||x==="R"},"isArchitectureDirectionX"),qt=vt(function(I){const x=I;return x==="T"||x==="B"},"isArchitectureDirectionY"),Te=vt(function(I,x){const A=Wt(I)&&qt(x),P=qt(I)&&Wt(x);return A||P},"isArchitectureDirectionXY"),Nr=vt(function(I){const x=I[0],A=I[1],P=Wt(x)&&qt(A),N=qt(x)&&Wt(A);return P||N},"isArchitecturePairXY"),Lr=vt(function(I){return I!=="LL"&&I!=="RR"&&I!=="TT"&&I!=="BB"},"isValidArchitectureDirectionPair"),ye=vt(function(I,x){const A=`${I}${x}`;return Lr(A)?A:void 0},"getArchitectureDirectionPair"),Cr=vt(function([I,x],A){const P=A[0],N=A[1];return Wt(P)?qt(N)?[I+(P==="L"?-1:1),x+(N==="T"?1:-1)]:[I+(P==="L"?-1:1),x]:Wt(N)?[I+(N==="L"?1:-1),x+(P==="T"?1:-1)]:[I,x+(P==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Ar=vt(function(I){return I==="LT"||I==="TL"?[1,1]:I==="BL"||I==="LB"?[1,-1]:I==="BR"||I==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Mr=vt(function(I,x){return Te(I,x)?"bend":Wt(I)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),wr=vt(function(I){return I.type==="service"},"isArchitectureService"),Or=vt(function(I){return I.type==="junction"},"isArchitectureJunction"),be=vt(I=>I.data(),"edgeData"),ie=vt(I=>I.data(),"nodeData"),Dr=ar.architecture,ae,Pe=(ae=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.setAccTitle=Qe,this.getAccTitle=Je,this.setDiagramTitle=Ke,this.getDiagramTitle=je,this.getAccDescription=_e,this.setAccDescription=tr,this.clear()}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},er()}addService({id:x,icon:A,in:P,title:N,iconText:u}){if(this.registeredIds[x]!==void 0)throw new Error(`The service id [${x}] is already in use by another ${this.registeredIds[x]}`);if(P!==void 0){if(x===P)throw new Error(`The service [${x}] cannot be placed within itself`);if(this.registeredIds[P]===void 0)throw new Error(`The service [${x}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[P]==="node")throw new Error(`The service [${x}]'s parent is not a group`)}this.registeredIds[x]="node",this.nodes[x]={id:x,type:"service",icon:A,iconText:u,title:N,edges:[],in:P}}getServices(){return Object.values(this.nodes).filter(wr)}addJunction({id:x,in:A}){this.registeredIds[x]="node",this.nodes[x]={id:x,type:"junction",edges:[],in:A}}getJunctions(){return Object.values(this.nodes).filter(Or)}getNodes(){return Object.values(this.nodes)}getNode(x){return this.nodes[x]??null}addGroup({id:x,icon:A,in:P,title:N}){if(this.registeredIds?.[x]!==void 0)throw new Error(`The group id [${x}] is already in use by another ${this.registeredIds[x]}`);if(P!==void 0){if(x===P)throw new Error(`The group [${x}] cannot be placed within itself`);if(this.registeredIds?.[P]===void 0)throw new Error(`The group [${x}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[P]==="node")throw new Error(`The group [${x}]'s parent is not a group`)}this.registeredIds[x]="group",this.groups[x]={id:x,icon:A,title:N,in:P}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:x,rhsId:A,lhsDir:P,rhsDir:N,lhsInto:u,rhsInto:h,lhsGroup:a,rhsGroup:e,title:r}){if(!Re(P))throw new Error(`Invalid direction given for left hand side of edge ${x}--${A}. Expected (L,R,T,B) got ${String(P)}`);if(!Re(N))throw new Error(`Invalid direction given for right hand side of edge ${x}--${A}. Expected (L,R,T,B) got ${String(N)}`);if(this.nodes[x]===void 0&&this.groups[x]===void 0)throw new Error(`The left-hand id [${x}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[A]===void 0&&this.groups[A]===void 0)throw new Error(`The right-hand id [${A}] does not yet exist. Please create the service/group before declaring an edge to it.`);const l=this.nodes[x].in,i=this.nodes[A].in;if(a&&l&&i&&l==i)throw new Error(`The left-hand id [${x}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(e&&l&&i&&l==i)throw new Error(`The right-hand id [${A}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const g={lhsId:x,lhsDir:P,lhsInto:u,lhsGroup:a,rhsId:A,rhsDir:N,rhsInto:h,rhsGroup:e,title:r};this.edges.push(g),this.nodes[x]&&this.nodes[A]&&(this.nodes[x].edges.push(this.edges[this.edges.length-1]),this.nodes[A].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){const x={},A=Object.entries(this.nodes).reduce((e,[r,l])=>(e[r]=l.edges.reduce((i,g)=>{const t=this.getNode(g.lhsId)?.in,o=this.getNode(g.rhsId)?.in;if(t&&o&&t!==o){const s=Mr(g.lhsDir,g.rhsDir);s!=="bend"&&(x[t]??={},x[t][o]=s,x[o]??={},x[o][t]=s)}if(g.lhsId===r){const s=ye(g.lhsDir,g.rhsDir);s&&(i[s]=g.rhsId)}else{const s=ye(g.rhsDir,g.lhsDir);s&&(i[s]=g.lhsId)}return i},{}),e),{}),P=Object.keys(A)[0],N={[P]:1},u=Object.keys(A).reduce((e,r)=>r===P?e:{...e,[r]:1},{}),h=vt(e=>{const r={[e]:[0,0]},l=[e];for(;l.length>0;){const i=l.shift();if(i){N[i]=1,delete u[i];const g=A[i],[t,o]=r[i];Object.entries(g).forEach(([s,c])=>{N[c]||(r[c]=Cr([t,o],s),l.push(c))})}}return r},"BFS"),a=[h(P)];for(;Object.keys(u).length>0;)a.push(h(Object.keys(u)[0]));this.dataStructures={adjList:A,spatialMaps:a,groupAlignments:x}}return this.dataStructures}setElementForId(x,A){this.elements[x]=A}getElementById(x){return this.elements[x]}getConfig(){return rr({...Dr,...ir().architecture})}getConfigField(x){return this.getConfig()[x]}},vt(ae,"ArchitectureDB"),ae),xr=vt((I,x)=>{fr(I,x),I.groups.map(A=>x.addGroup(A)),I.services.map(A=>x.addService({...A,type:"service"})),I.junctions.map(A=>x.addJunction({...A,type:"junction"})),I.edges.map(A=>x.addEdge(A))},"populateDb"),Ge={parser:{yy:void 0},parse:vt(async I=>{const x=await cr("architecture",I);Se.debug(x);const A=Ge.parser?.yy;if(!(A instanceof Pe))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");xr(x,A)},"parse")},Ir=vt(I=>` +import{aI as Ze,_ as vt,H as ke,V as qe,l as Se,b as Qe,a as Je,p as Ke,q as je,g as _e,s as tr,y as er,D as rr,E as ir,F as ar,c as Ee,ak as me,aJ as pe,i as nr,d as or,x as sr,aK as hr,aL as lr}from"./index-Cbm2MoYO.js";import{p as fr}from"./chunk-4BX2VUAB-B95fRcaE.js";import{p as cr}from"./treemap-KMMF4GRG-Bqtmffqa.js";import{c as Fe}from"./cytoscape.esm-CF_z7lu9.js";import"./_baseUniq-yJVicqoM.js";import"./_basePickBy-Btg4tW5o.js";import"./clone-D4gAIgVI.js";var he={exports:{}},le={exports:{}},fe={exports:{}},gr=fe.exports,we;function ur(){return we||(we=1,(function(I,x){(function(P,N){I.exports=N()})(gr,function(){return(function(A){var P={};function N(u){if(P[u])return P[u].exports;var h=P[u]={i:u,l:!1,exports:{}};return A[u].call(h.exports,h,h.exports,N),h.l=!0,h.exports}return N.m=A,N.c=P,N.i=function(u){return u},N.d=function(u,h,a){N.o(u,h)||Object.defineProperty(u,h,{configurable:!1,enumerable:!0,get:a})},N.n=function(u){var h=u&&u.__esModule?(function(){return u.default}):(function(){return u});return N.d(h,"a",h),h},N.o=function(u,h){return Object.prototype.hasOwnProperty.call(u,h)},N.p="",N(N.s=28)})([(function(A,P,N){function u(){}u.QUALITY=1,u.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,u.DEFAULT_INCREMENTAL=!1,u.DEFAULT_ANIMATION_ON_LAYOUT=!0,u.DEFAULT_ANIMATION_DURING_LAYOUT=!1,u.DEFAULT_ANIMATION_PERIOD=50,u.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,u.DEFAULT_GRAPH_MARGIN=15,u.NODE_DIMENSIONS_INCLUDE_LABELS=!1,u.SIMPLE_NODE_SIZE=40,u.SIMPLE_NODE_HALF_SIZE=u.SIMPLE_NODE_SIZE/2,u.EMPTY_COMPOUND_NODE_SIZE=40,u.MIN_EDGE_LENGTH=1,u.WORLD_BOUNDARY=1e6,u.INITIAL_WORLD_BOUNDARY=u.WORLD_BOUNDARY/1e3,u.WORLD_CENTER_X=1200,u.WORLD_CENTER_Y=900,A.exports=u}),(function(A,P,N){var u=N(2),h=N(8),a=N(9);function e(l,i,g){u.call(this,g),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=g,this.bendpoints=[],this.source=l,this.target=i}e.prototype=Object.create(u.prototype);for(var r in u)e[r]=u[r];e.prototype.getSource=function(){return this.source},e.prototype.getTarget=function(){return this.target},e.prototype.isInterGraph=function(){return this.isInterGraph},e.prototype.getLength=function(){return this.length},e.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},e.prototype.getBendpoints=function(){return this.bendpoints},e.prototype.getLca=function(){return this.lca},e.prototype.getSourceInLca=function(){return this.sourceInLca},e.prototype.getTargetInLca=function(){return this.targetInLca},e.prototype.getOtherEnd=function(l){if(this.source===l)return this.target;if(this.target===l)return this.source;throw"Node is not incident with this edge"},e.prototype.getOtherEndInGraph=function(l,i){for(var g=this.getOtherEnd(l),t=i.getGraphManager().getRoot();;){if(g.getOwner()==i)return g;if(g.getOwner()==t)break;g=g.getOwner().getParent()}return null},e.prototype.updateLength=function(){var l=new Array(4);this.isOverlapingSourceAndTarget=h.getIntersection(this.target.getRect(),this.source.getRect(),l),this.isOverlapingSourceAndTarget||(this.lengthX=l[0]-l[2],this.lengthY=l[1]-l[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},e.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},A.exports=e}),(function(A,P,N){function u(h){this.vGraphObject=h}A.exports=u}),(function(A,P,N){var u=N(2),h=N(10),a=N(13),e=N(0),r=N(16),l=N(5);function i(t,o,s,c){s==null&&c==null&&(c=o),u.call(this,c),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=h.MIN_VALUE,this.inclusionTreeDepth=h.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=t,s!=null&&o!=null?this.rect=new a(o.x,o.y,s.width,s.height):this.rect=new a}i.prototype=Object.create(u.prototype);for(var g in u)i[g]=u[g];i.prototype.getEdges=function(){return this.edges},i.prototype.getChild=function(){return this.child},i.prototype.getOwner=function(){return this.owner},i.prototype.getWidth=function(){return this.rect.width},i.prototype.setWidth=function(t){this.rect.width=t},i.prototype.getHeight=function(){return this.rect.height},i.prototype.setHeight=function(t){this.rect.height=t},i.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},i.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},i.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},i.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},i.prototype.getRect=function(){return this.rect},i.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},i.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},i.prototype.setRect=function(t,o){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=o.width,this.rect.height=o.height},i.prototype.setCenter=function(t,o){this.rect.x=t-this.rect.width/2,this.rect.y=o-this.rect.height/2},i.prototype.setLocation=function(t,o){this.rect.x=t,this.rect.y=o},i.prototype.moveBy=function(t,o){this.rect.x+=t,this.rect.y+=o},i.prototype.getEdgeListToNode=function(t){var o=[],s=this;return s.edges.forEach(function(c){if(c.target==t){if(c.source!=s)throw"Incorrect edge source!";o.push(c)}}),o},i.prototype.getEdgesBetween=function(t){var o=[],s=this;return s.edges.forEach(function(c){if(!(c.source==s||c.target==s))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&o.push(c)}),o},i.prototype.getNeighborsList=function(){var t=new Set,o=this;return o.edges.forEach(function(s){if(s.source==o)t.add(s.target);else{if(s.target!=o)throw"Incorrect incidency!";t.add(s.source)}}),t},i.prototype.withChildren=function(){var t=new Set,o,s;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),f=0;fo?(this.rect.x-=(this.labelWidth-o)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(o+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(s+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>s?(this.rect.y-=(this.labelHeight-s)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(s+this.labelHeight))}}},i.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==h.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},i.prototype.transform=function(t){var o=this.rect.x;o>e.WORLD_BOUNDARY?o=e.WORLD_BOUNDARY:o<-e.WORLD_BOUNDARY&&(o=-e.WORLD_BOUNDARY);var s=this.rect.y;s>e.WORLD_BOUNDARY?s=e.WORLD_BOUNDARY:s<-e.WORLD_BOUNDARY&&(s=-e.WORLD_BOUNDARY);var c=new l(o,s),f=t.inverseTransformPoint(c);this.setLocation(f.x,f.y)},i.prototype.getLeft=function(){return this.rect.x},i.prototype.getRight=function(){return this.rect.x+this.rect.width},i.prototype.getTop=function(){return this.rect.y},i.prototype.getBottom=function(){return this.rect.y+this.rect.height},i.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},A.exports=i}),(function(A,P,N){var u=N(0);function h(){}for(var a in u)h[a]=u[a];h.MAX_ITERATIONS=2500,h.DEFAULT_EDGE_LENGTH=50,h.DEFAULT_SPRING_STRENGTH=.45,h.DEFAULT_REPULSION_STRENGTH=4500,h.DEFAULT_GRAVITY_STRENGTH=.4,h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,h.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,h.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,h.COOLING_ADAPTATION_FACTOR=.33,h.ADAPTATION_LOWER_NODE_LIMIT=1e3,h.ADAPTATION_UPPER_NODE_LIMIT=5e3,h.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,h.MAX_NODE_DISPLACEMENT=h.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,h.CONVERGENCE_CHECK_PERIOD=100,h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,h.MIN_EDGE_LENGTH=1,h.GRID_CALCULATION_CHECK_PERIOD=10,A.exports=h}),(function(A,P,N){function u(h,a){h==null&&a==null?(this.x=0,this.y=0):(this.x=h,this.y=a)}u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(h){this.x=h},u.prototype.setY=function(h){this.y=h},u.prototype.getDifference=function(h){return new DimensionD(this.x-h.x,this.y-h.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(h){return this.x+=h.width,this.y+=h.height,this},A.exports=u}),(function(A,P,N){var u=N(2),h=N(10),a=N(0),e=N(7),r=N(3),l=N(1),i=N(13),g=N(12),t=N(11);function o(c,f,T){u.call(this,T),this.estimatedSize=h.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,f!=null&&f instanceof e?this.graphManager=f:f!=null&&f instanceof Layout&&(this.graphManager=f.graphManager)}o.prototype=Object.create(u.prototype);for(var s in u)o[s]=u[s];o.prototype.getNodes=function(){return this.nodes},o.prototype.getEdges=function(){return this.edges},o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getParent=function(){return this.parent},o.prototype.getLeft=function(){return this.left},o.prototype.getRight=function(){return this.right},o.prototype.getTop=function(){return this.top},o.prototype.getBottom=function(){return this.bottom},o.prototype.isConnected=function(){return this.isConnected},o.prototype.add=function(c,f,T){if(f==null&&T==null){var v=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(v)>-1)throw"Node already in graph!";return v.owner=this,this.getNodes().push(v),v}else{var d=c;if(!(this.getNodes().indexOf(f)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(f.owner==T.owner&&f.owner==this))throw"Both owners must be this graph!";return f.owner!=T.owner?null:(d.source=f,d.target=T,d.isInterGraph=!1,this.getEdges().push(d),f.edges.push(d),T!=f&&T.edges.push(d),d)}},o.prototype.remove=function(c){var f=c;if(c instanceof r){if(f==null)throw"Node is null!";if(!(f.owner!=null&&f.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=f.edges.slice(),v,d=T.length,L=0;L-1&&G>-1))throw"Source and/or target doesn't know this edge!";v.source.edges.splice(C,1),v.target!=v.source&&v.target.edges.splice(G,1);var b=v.source.owner.getEdges().indexOf(v);if(b==-1)throw"Not in owner's edge list!";v.source.owner.getEdges().splice(b,1)}},o.prototype.updateLeftTop=function(){for(var c=h.MAX_VALUE,f=h.MAX_VALUE,T,v,d,L=this.getNodes(),b=L.length,C=0;CT&&(c=T),f>v&&(f=v)}return c==h.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?d=L[0].getParent().paddingLeft:d=this.margin,this.left=f-d,this.top=c-d,new g(this.left,this.top))},o.prototype.updateBounds=function(c){for(var f=h.MAX_VALUE,T=-h.MAX_VALUE,v=h.MAX_VALUE,d=-h.MAX_VALUE,L,b,C,G,k,Y=this.nodes,K=Y.length,O=0;OL&&(f=L),TC&&(v=C),dL&&(f=L),TC&&(v=C),d=this.nodes.length){var K=0;T.forEach(function(O){O.owner==c&&K++}),K==this.nodes.length&&(this.isConnected=!0)}},A.exports=o}),(function(A,P,N){var u,h=N(1);function a(e){u=N(6),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),r=this.layout.newNode(null),l=this.add(e,r);return this.setRootGraph(l),this.rootGraph},a.prototype.add=function(e,r,l,i,g){if(l==null&&i==null&&g==null){if(e==null)throw"Graph is null!";if(r==null)throw"Parent node is null!";if(this.graphs.indexOf(e)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(e),e.parent!=null)throw"Already has a parent!";if(r.child!=null)throw"Already has a child!";return e.parent=r,r.child=e,e}else{g=l,i=r,l=e;var t=i.getOwner(),o=g.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(o!=null&&o.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==o)return l.isInterGraph=!1,t.add(l,i,g);if(l.isInterGraph=!0,l.source=i,l.target=g,this.edges.indexOf(l)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(l),!(l.source!=null&&l.target!=null))throw"Edge source and/or target is null!";if(!(l.source.edges.indexOf(l)==-1&&l.target.edges.indexOf(l)==-1))throw"Edge already in source and/or target incidency list!";return l.source.edges.push(l),l.target.edges.push(l),l}},a.prototype.remove=function(e){if(e instanceof u){var r=e;if(r.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(r==this.rootGraph||r.parent!=null&&r.parent.graphManager==this))throw"Invalid parent node!";var l=[];l=l.concat(r.getEdges());for(var i,g=l.length,t=0;t=e.getRight()?r[0]+=Math.min(e.getX()-a.getX(),a.getRight()-e.getRight()):e.getX()<=a.getX()&&e.getRight()>=a.getRight()&&(r[0]+=Math.min(a.getX()-e.getX(),e.getRight()-a.getRight())),a.getY()<=e.getY()&&a.getBottom()>=e.getBottom()?r[1]+=Math.min(e.getY()-a.getY(),a.getBottom()-e.getBottom()):e.getY()<=a.getY()&&e.getBottom()>=a.getBottom()&&(r[1]+=Math.min(a.getY()-e.getY(),e.getBottom()-a.getBottom()));var g=Math.abs((e.getCenterY()-a.getCenterY())/(e.getCenterX()-a.getCenterX()));e.getCenterY()===a.getCenterY()&&e.getCenterX()===a.getCenterX()&&(g=1);var t=g*r[0],o=r[1]/g;r[0]t)return r[0]=l,r[1]=s,r[2]=g,r[3]=Y,!1;if(ig)return r[0]=o,r[1]=i,r[2]=G,r[3]=t,!1;if(lg?(r[0]=f,r[1]=T,n=!0):(r[0]=c,r[1]=s,n=!0):p===y&&(l>g?(r[0]=o,r[1]=s,n=!0):(r[0]=v,r[1]=T,n=!0)),-E===y?g>l?(r[2]=k,r[3]=Y,m=!0):(r[2]=G,r[3]=C,m=!0):E===y&&(g>l?(r[2]=b,r[3]=C,m=!0):(r[2]=K,r[3]=Y,m=!0)),n&&m)return!1;if(l>g?i>t?(R=this.getCardinalDirection(p,y,4),M=this.getCardinalDirection(E,y,2)):(R=this.getCardinalDirection(-p,y,3),M=this.getCardinalDirection(-E,y,1)):i>t?(R=this.getCardinalDirection(-p,y,1),M=this.getCardinalDirection(-E,y,3)):(R=this.getCardinalDirection(p,y,2),M=this.getCardinalDirection(E,y,4)),!n)switch(R){case 1:W=s,S=l+-L/y,r[0]=S,r[1]=W;break;case 2:S=v,W=i+d*y,r[0]=S,r[1]=W;break;case 3:W=T,S=l+L/y,r[0]=S,r[1]=W;break;case 4:S=f,W=i+-d*y,r[0]=S,r[1]=W;break}if(!m)switch(M){case 1:q=C,D=g+-it/y,r[2]=D,r[3]=q;break;case 2:D=K,q=t+O*y,r[2]=D,r[3]=q;break;case 3:q=Y,D=g+it/y,r[2]=D,r[3]=q;break;case 4:D=k,q=t+-O*y,r[2]=D,r[3]=q;break}}return!1},h.getCardinalDirection=function(a,e,r){return a>e?r:1+r%4},h.getIntersection=function(a,e,r,l){if(l==null)return this.getIntersection2(a,e,r);var i=a.x,g=a.y,t=e.x,o=e.y,s=r.x,c=r.y,f=l.x,T=l.y,v=void 0,d=void 0,L=void 0,b=void 0,C=void 0,G=void 0,k=void 0,Y=void 0,K=void 0;return L=o-g,C=i-t,k=t*g-i*o,b=T-c,G=s-f,Y=f*c-s*T,K=L*G-b*C,K===0?null:(v=(C*Y-G*k)/K,d=(b*k-L*Y)/K,new u(v,d))},h.angleOfVector=function(a,e,r,l){var i=void 0;return a!==r?(i=Math.atan((l-e)/(r-a)),r=0){var T=(-s+Math.sqrt(s*s-4*o*c))/(2*o),v=(-s-Math.sqrt(s*s-4*o*c))/(2*o),d=null;return T>=0&&T<=1?[T]:v>=0&&v<=1?[v]:d}else return null},h.HALF_PI=.5*Math.PI,h.ONE_AND_HALF_PI=1.5*Math.PI,h.TWO_PI=2*Math.PI,h.THREE_PI=3*Math.PI,A.exports=h}),(function(A,P,N){function u(){}u.sign=function(h){return h>0?1:h<0?-1:0},u.floor=function(h){return h<0?Math.ceil(h):Math.floor(h)},u.ceil=function(h){return h<0?Math.floor(h):Math.ceil(h)},A.exports=u}),(function(A,P,N){function u(){}u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,A.exports=u}),(function(A,P,N){var u=(function(){function i(g,t){for(var o=0;o"u"?"undefined":u(a);return a==null||e!="object"&&e!="function"},A.exports=h}),(function(A,P,N){function u(s){if(Array.isArray(s)){for(var c=0,f=Array(s.length);c0&&c;){for(L.push(C[0]);L.length>0&&c;){var G=L[0];L.splice(0,1),d.add(G);for(var k=G.getEdges(),v=0;v-1&&C.splice(it,1)}d=new Set,b=new Map}}return s},o.prototype.createDummyNodesForBendpoints=function(s){for(var c=[],f=s.source,T=this.graphManager.calcLowestCommonAncestor(s.source,s.target),v=0;v0){for(var T=this.edgeToDummyNodes.get(f),v=0;v=0&&c.splice(Y,1);var K=b.getNeighborsList();K.forEach(function(n){if(f.indexOf(n)<0){var m=T.get(n),p=m-1;p==1&&G.push(n),T.set(n,p)}})}f=f.concat(G),(c.length==1||c.length==2)&&(v=!0,d=c[0])}return d},o.prototype.setGraphManager=function(s){this.graphManager=s},A.exports=o}),(function(A,P,N){function u(){}u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},A.exports=u}),(function(A,P,N){var u=N(5);function h(a,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}h.prototype.getWorldOrgX=function(){return this.lworldOrgX},h.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},h.prototype.getWorldOrgY=function(){return this.lworldOrgY},h.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},h.prototype.getWorldExtX=function(){return this.lworldExtX},h.prototype.setWorldExtX=function(a){this.lworldExtX=a},h.prototype.getWorldExtY=function(){return this.lworldExtY},h.prototype.setWorldExtY=function(a){this.lworldExtY=a},h.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},h.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},h.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},h.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},h.prototype.getDeviceExtX=function(){return this.ldeviceExtX},h.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},h.prototype.getDeviceExtY=function(){return this.ldeviceExtY},h.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},h.prototype.transformX=function(a){var e=0,r=this.lworldExtX;return r!=0&&(e=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/r),e},h.prototype.transformY=function(a){var e=0,r=this.lworldExtY;return r!=0&&(e=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/r),e},h.prototype.inverseTransformX=function(a){var e=0,r=this.ldeviceExtX;return r!=0&&(e=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/r),e},h.prototype.inverseTransformY=function(a){var e=0,r=this.ldeviceExtY;return r!=0&&(e=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/r),e},h.prototype.inverseTransformPoint=function(a){var e=new u(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return e},A.exports=h}),(function(A,P,N){function u(t){if(Array.isArray(t)){for(var o=0,s=Array(t.length);oa.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},i.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),o,s=0;s0&&arguments[0]!==void 0?arguments[0]:!0,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s,c,f,T,v=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,s=0;sL||d>L)&&(t.gravitationForceX=-this.gravityConstant*f,t.gravitationForceY=-this.gravityConstant*T)):(L=o.getEstimatedSize()*this.compoundGravityRangeFactor,(v>L||d>L)&&(t.gravitationForceX=-this.gravityConstant*f*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},i.prototype.isConverged=function(){var t,o=!1;return this.totalIterations>this.maxIterations/3&&(o=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=v.length||L>=v[0].length)){for(var b=0;bi}}]),r})();A.exports=e}),(function(A,P,N){function u(){}u.svd=function(h){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=h.length,this.n=h[0].length;var a=Math.min(this.m,this.n);this.s=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(Math.min(this.m+1,this.n)),this.U=(function(Tt){var Ct=function Bt(bt){if(bt.length==0)return 0;for(var zt=[],St=0;St0;)Ct.push(0);return Ct})(this.n),r=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(this.m),l=!0,i=Math.min(this.m-1,this.n),g=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var y=E+1;y=0;V--){if((function(Tt,Ct){return Tt&&Ct})(V0;){var Q=void 0,It=void 0;for(Q=n-2;Q>=-1&&Q!==-1;Q--)if(Math.abs(e[Q])<=ht+_*(Math.abs(this.s[Q])+Math.abs(this.s[Q+1]))){e[Q]=0;break}if(Q===n-2)It=4;else{var Nt=void 0;for(Nt=n-1;Nt>=Q&&Nt!==Q;Nt--){var dt=(Nt!==n?Math.abs(e[Nt]):0)+(Nt!==Q+1?Math.abs(e[Nt-1]):0);if(Math.abs(this.s[Nt])<=ht+_*dt){this.s[Nt]=0;break}}Nt===Q?It=3:Nt===n-1?It=1:(It=2,Q=Nt)}switch(Q++,It){case 1:{var rt=e[n-2];e[n-2]=0;for(var gt=n-2;gt>=Q;gt--){var mt=u.hypot(this.s[gt],rt),At=this.s[gt]/mt,Ot=rt/mt;this.s[gt]=mt,gt!==Q&&(rt=-Ot*e[gt-1],e[gt-1]=At*e[gt-1]);for(var Et=0;Et=this.s[Q+1]);){var Lt=this.s[Q];if(this.s[Q]=this.s[Q+1],this.s[Q+1]=Lt,QMath.abs(a)?(e=a/h,e=Math.abs(h)*Math.sqrt(1+e*e)):a!=0?(e=h/a,e=Math.abs(a)*Math.sqrt(1+e*e)):e=0,e},A.exports=u}),(function(A,P,N){var u=(function(){function e(r,l){for(var i=0;i2&&arguments[2]!==void 0?arguments[2]:1,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;h(this,e),this.sequence1=r,this.sequence2=l,this.match_score=i,this.mismatch_penalty=g,this.gap_penalty=t,this.iMax=r.length+1,this.jMax=l.length+1,this.grid=new Array(this.iMax);for(var o=0;o=0;r--){var l=this.listeners[r];l.event===a&&l.callback===e&&this.listeners.splice(r,1)}},h.emit=function(a,e){for(var r=0;r{var P={45:((a,e,r)=>{var l={};l.layoutBase=r(551),l.CoSEConstants=r(806),l.CoSEEdge=r(767),l.CoSEGraph=r(880),l.CoSEGraphManager=r(578),l.CoSELayout=r(765),l.CoSENode=r(991),l.ConstraintHandler=r(902),a.exports=l}),806:((a,e,r)=>{var l=r(551).FDLayoutConstants;function i(){}for(var g in l)i[g]=l[g];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=l.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!0,i.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,i.TREE_REDUCTION_ON_INCREMENTAL=!0,i.PURE_INCREMENTAL=i.DEFAULT_INCREMENTAL,a.exports=i}),767:((a,e,r)=>{var l=r(551).FDLayoutEdge;function i(t,o,s){l.call(this,t,o,s)}i.prototype=Object.create(l.prototype);for(var g in l)i[g]=l[g];a.exports=i}),880:((a,e,r)=>{var l=r(551).LGraph;function i(t,o,s){l.call(this,t,o,s)}i.prototype=Object.create(l.prototype);for(var g in l)i[g]=l[g];a.exports=i}),578:((a,e,r)=>{var l=r(551).LGraphManager;function i(t){l.call(this,t)}i.prototype=Object.create(l.prototype);for(var g in l)i[g]=l[g];a.exports=i}),765:((a,e,r)=>{var l=r(551).FDLayout,i=r(578),g=r(880),t=r(991),o=r(767),s=r(806),c=r(902),f=r(551).FDLayoutConstants,T=r(551).LayoutConstants,v=r(551).Point,d=r(551).PointD,L=r(551).DimensionD,b=r(551).Layout,C=r(551).Integer,G=r(551).IGeometry,k=r(551).LGraph,Y=r(551).Transform,K=r(551).LinkedList;function O(){l.call(this),this.toBeTiled={},this.constraints={}}O.prototype=Object.create(l.prototype);for(var it in l)O[it]=l[it];O.prototype.newGraphManager=function(){var n=new i(this);return this.graphManager=n,n},O.prototype.newGraph=function(n){return new g(null,this.graphManager,n)},O.prototype.newNode=function(n){return new t(this.graphManager,n)},O.prototype.newEdge=function(n){return new o(null,null,n)},O.prototype.initParameters=function(){l.prototype.initParameters.call(this,arguments),this.isSubLayout||(s.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=s.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=f.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=f.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=f.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},O.prototype.initSpringEmbedder=function(){l.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/f.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},O.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},O.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(s.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(R){return m.has(R)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),s.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},O.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%f.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),s.PURE_INCREMENTAL?this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),s.PURE_INCREMENTAL?this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=f.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},O.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},p=0;p0&&this.updateDisplacements();for(var p=0;p0&&(E.fixedNodeWeight=R)}}if(this.constraints.relativePlacementConstraint){var M=new Map,S=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(w){n.fixedNodesOnHorizontal.add(w),n.fixedNodesOnVertical.add(w)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,p=0;p=2*w.length/3;_--)H=Math.floor(Math.random()*(_+1)),B=w[_],w[_]=w[H],w[H]=B;return w},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(w){if(w.left){var H=M.has(w.left)?M.get(w.left):w.left,B=M.has(w.right)?M.get(w.right):w.right;n.nodesInRelativeHorizontal.includes(H)||(n.nodesInRelativeHorizontal.push(H),n.nodeToRelativeConstraintMapHorizontal.set(H,[]),n.dummyToNodeForVerticalAlignment.has(H)?n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(H).getCenterX())),n.nodesInRelativeHorizontal.includes(B)||(n.nodesInRelativeHorizontal.push(B),n.nodeToRelativeConstraintMapHorizontal.set(B,[]),n.dummyToNodeForVerticalAlignment.has(B)?n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(B).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(H).push({right:B,gap:w.gap}),n.nodeToRelativeConstraintMapHorizontal.get(B).push({left:H,gap:w.gap})}else{var _=S.has(w.top)?S.get(w.top):w.top,ht=S.has(w.bottom)?S.get(w.bottom):w.bottom;n.nodesInRelativeVertical.includes(_)||(n.nodesInRelativeVertical.push(_),n.nodeToRelativeConstraintMapVertical.set(_,[]),n.dummyToNodeForHorizontalAlignment.has(_)?n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(_).getCenterY())),n.nodesInRelativeVertical.includes(ht)||(n.nodesInRelativeVertical.push(ht),n.nodeToRelativeConstraintMapVertical.set(ht,[]),n.dummyToNodeForHorizontalAlignment.has(ht)?n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(ht).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(_).push({bottom:ht,gap:w.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:_,gap:w.gap})}});else{var q=new Map,V=new Map;this.constraints.relativePlacementConstraint.forEach(function(w){if(w.left){var H=M.has(w.left)?M.get(w.left):w.left,B=M.has(w.right)?M.get(w.right):w.right;q.has(H)?q.get(H).push(B):q.set(H,[B]),q.has(B)?q.get(B).push(H):q.set(B,[H])}else{var _=S.has(w.top)?S.get(w.top):w.top,ht=S.has(w.bottom)?S.get(w.bottom):w.bottom;V.has(_)?V.get(_).push(ht):V.set(_,[ht]),V.has(ht)?V.get(ht).push(_):V.set(ht,[_])}});var X=function(H,B){var _=[],ht=[],Q=new K,It=new Set,Nt=0;return H.forEach(function(dt,rt){if(!It.has(rt)){_[Nt]=[],ht[Nt]=!1;var gt=rt;for(Q.push(gt),It.add(gt),_[Nt].push(gt);Q.length!=0;){gt=Q.shift(),B.has(gt)&&(ht[Nt]=!0);var mt=H.get(gt);mt.forEach(function(At){It.has(At)||(Q.push(At),It.add(At),_[Nt].push(At))})}Nt++}}),{components:_,isFixed:ht}},et=X(q,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=X(V,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},O.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var w=n.idToNodeMap.get(z.nodeId);w.displacementX=0,w.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,p=0;p1){var S;for(S=0;SE&&(E=Math.floor(M.y)),R=Math.floor(M.x+s.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(T.WORLD_CENTER_X-M.x/2,T.WORLD_CENTER_Y-M.y/2))},O.radialLayout=function(n,m,p){var E=Math.max(this.maxDiagonalInTree(n),s.DEFAULT_RADIAL_SEPARATION);O.branchRadialLayout(m,null,0,359,0,E);var y=k.calculateBounds(n),R=new Y;R.setDeviceOrgX(y.getMinX()),R.setDeviceOrgY(y.getMinY()),R.setWorldOrgX(p.x),R.setWorldOrgY(p.y);for(var M=0;M1;){var B=H[0];H.splice(0,1);var _=V.indexOf(B);_>=0&&V.splice(_,1),z--,X--}m!=null?w=(V.indexOf(H[0])+1)%z:w=0;for(var ht=Math.abs(E-p)/X,Q=w;et!=X;Q=++Q%z){var It=V[Q].getOtherEnd(n);if(It!=m){var Nt=(p+et*ht)%360,dt=(Nt+ht)%360;O.branchRadialLayout(It,n,Nt,dt,y+R,R),et++}}},O.maxDiagonalInTree=function(n){for(var m=C.MIN_VALUE,p=0;pm&&(m=y)}return m},O.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},O.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var p=[],E=this.graphManager.getAllNodes(),y=0;y"u"&&(m[S]=[]),m[S]=m[S].concat(R)}Object.keys(m).forEach(function(W){if(m[W].length>1){var D="DummyCompound_"+W;n.memberGroups[D]=m[W];var q=m[W][0].getParent(),V=new t(n.graphManager);V.id=D,V.paddingLeft=q.paddingLeft||0,V.paddingRight=q.paddingRight||0,V.paddingBottom=q.paddingBottom||0,V.paddingTop=q.paddingTop||0,n.idToDummyNode[D]=V;var X=n.getGraphManager().add(n.newGraph(),V),et=q.getChild();et.add(V);for(var z=0;zy?(E.rect.x-=(E.labelWidth-y)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-y)/2):E.labelPosHorizontal=="right"&&E.setWidth(y+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(R+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>R?(E.rect.y-=(E.labelHeight-R)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-R)/2):E.labelPosVertical=="bottom"&&E.setHeight(R+E.labelHeight))}})},O.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],p=m.id,E=m.paddingLeft,y=m.paddingTop,R=m.labelMarginLeft,M=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],m.rect.x,m.rect.y,E,y,R,M)}},O.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(p){var E=n.idToDummyNode[p],y=E.paddingLeft,R=E.paddingTop,M=E.labelMarginLeft,S=E.labelMarginTop;n.adjustLocations(m[p],E.rect.x,E.rect.y,y,R,M,S)})},O.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var p=n.getChild();if(p==null)return this.toBeTiled[m]=!1,!1;for(var E=p.getNodes(),y=0;y0)return this.toBeTiled[m]=!1,!1;if(R.getChild()==null){this.toBeTiled[R.id]=!1;continue}if(!this.getToBeTiled(R))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},O.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),p=0,E=0;Eq&&(q=X.rect.height)}p+=q+n.verticalPadding}},O.prototype.tileCompoundMembers=function(n,m){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var y=m[E];if(p.tiledMemberPack[E]=p.tileNodes(n[E],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[E].width,y.rect.height=p.tiledMemberPack[E].height,y.setCenter(p.tiledMemberPack[E].centerX,p.tiledMemberPack[E].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,s.NODE_DIMENSIONS_INCLUDE_LABELS){var R=y.rect.width,M=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(R+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>R?(y.rect.x-=(y.labelWidth-R)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-R)/2):y.labelPosHorizontal=="right"&&y.setWidth(R+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(M+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>M?(y.rect.y-=(y.labelHeight-M)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-M)/2):y.labelPosVertical=="bottom"&&y.setHeight(M+y.labelHeight))}})},O.prototype.tileNodes=function(n,m){var p=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),y=this.getOrgRatio(p),R=this.getOrgRatio(E),M;return RS&&(S=z.getWidth())});var W=R/y,D=M/y,q=Math.pow(p-E,2)+4*(W+E)*(D+p)*y,V=(E-p+Math.sqrt(q))/(2*(W+E)),X;m?(X=Math.ceil(V),X==V&&X++):X=Math.floor(V);var et=X*(W+E)-E;return S>et&&(et=S),et+=E*2,et},O.prototype.tileNodesByFavoringDim=function(n,m,p){var E=s.TILING_PADDING_VERTICAL,y=s.TILING_PADDING_HORIZONTAL,R=s.TILING_COMPARE_BY,M={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:y,centerX:0,centerY:0};R&&(M.idealRowWidth=this.calcIdealRowWidth(n,p));var S=function(w){return w.rect.width*w.rect.height},W=function(w,H){return S(H)-S(w)};n.sort(function(z,w){var H=W;return M.idealRowWidth?(H=R,H(z.id,w.id)):H(z,w)});for(var D=0,q=0,V=0;V0&&(M+=n.horizontalPadding),n.rowWidth[p]=M,n.width0&&(S+=n.verticalPadding);var W=0;S>n.rowHeight[p]&&(W=n.rowHeight[p],n.rowHeight[p]=S,W=n.rowHeight[p]-W),n.height+=W,n.rows[p].push(m)},O.prototype.getShortestRowIndex=function(n){for(var m=-1,p=Number.MAX_VALUE,E=0;Ep&&(m=E,p=n.rowWidth[E]);return m},O.prototype.canAddHorizontal=function(n,m,p){if(n.idealRowWidth){var E=n.rows.length-1,y=n.rowWidth[E];return y+m+n.horizontalPadding<=n.idealRowWidth}var R=this.getShortestRowIndex(n);if(R<0)return!0;var M=n.rowWidth[R];if(M+n.horizontalPadding+m<=n.width)return!0;var S=0;n.rowHeight[R]0&&(S=p+n.verticalPadding-n.rowHeight[R]);var W;n.width-M>=m+n.horizontalPadding?W=(n.height+S)/(M+m+n.horizontalPadding):W=(n.height+S)/n.width,S=p+n.verticalPadding;var D;return n.widthR&&m!=p){E.splice(-1,1),n.rows[p].push(y),n.rowWidth[m]=n.rowWidth[m]-R,n.rowWidth[p]=n.rowWidth[p]+R,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var M=Number.MIN_VALUE,S=0;SM&&(M=E[S].height);m>0&&(M+=n.verticalPadding);var W=n.rowHeight[m]+n.rowHeight[p];n.rowHeight[m]=M,n.rowHeight[p]0)for(var et=y;et<=R;et++)X[0]+=this.grid[et][M-1].length+this.grid[et][M].length-1;if(R0)for(var et=M;et<=S;et++)X[3]+=this.grid[y-1][et].length+this.grid[y][et].length-1;for(var z=C.MAX_VALUE,w,H,B=0;B{var l=r(551).FDLayoutNode,i=r(551).IMath;function g(o,s,c,f){l.call(this,o,s,c,f)}g.prototype=Object.create(l.prototype);for(var t in l)g[t]=l[t];g.prototype.calculateDisplacement=function(){var o=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementX=o.coolingFactor*o.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementY=o.coolingFactor*o.maxNodeDisplacement*i.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},g.prototype.propogateDisplacementToChildren=function(o,s){for(var c=this.getChild().getNodes(),f,T=0;T{function l(c){if(Array.isArray(c)){for(var f=0,T=Array(c.length);f0){var Lt=0;ot.forEach(function(st){$=="horizontal"?(tt.set(st,v.has(st)?d[v.get(st)]:Z.get(st)),Lt+=tt.get(st)):(tt.set(st,v.has(st)?L[v.get(st)]:Z.get(st)),Lt+=tt.get(st))}),Lt=Lt/ot.length,lt.forEach(function(st){J.has(st)||tt.set(st,Lt)})}else{var ft=0;lt.forEach(function(st){$=="horizontal"?ft+=v.has(st)?d[v.get(st)]:Z.get(st):ft+=v.has(st)?L[v.get(st)]:Z.get(st)}),ft=ft/lt.length,lt.forEach(function(st){tt.set(st,ft)})}});for(var Mt=function(){var ot=ut.shift(),Lt=U.get(ot);Lt.forEach(function(ft){if(tt.get(ft.id)st&&(st=Zt),KtXt&&(Xt=Kt)}}catch(ee){Ct=!0,Bt=ee}finally{try{!Tt&&bt.return&&bt.return()}finally{if(Ct)throw Bt}}var ce=(Lt+st)/2-(ft+Xt)/2,Qt=!0,jt=!1,_t=void 0;try{for(var Jt=lt[Symbol.iterator](),oe;!(Qt=(oe=Jt.next()).done);Qt=!0){var te=oe.value;tt.set(te,tt.get(te)+ce)}}catch(ee){jt=!0,_t=ee}finally{try{!Qt&&Jt.return&&Jt.return()}finally{if(jt)throw _t}}})}return tt},it=function(U){var $=0,J=0,Z=0,at=0;if(U.forEach(function(j){j.left?d[v.get(j.left)]-d[v.get(j.right)]>=0?$++:J++:L[v.get(j.top)]-L[v.get(j.bottom)]>=0?Z++:at++}),$>J&&Z>at)for(var ct=0;ctJ)for(var nt=0;ntat)for(var tt=0;tt1)f.fixedNodeConstraint.forEach(function(F,U){E[U]=[F.position.x,F.position.y],y[U]=[d[v.get(F.nodeId)],L[v.get(F.nodeId)]]}),R=!0;else if(f.alignmentConstraint)(function(){var F=0;if(f.alignmentConstraint.vertical){for(var U=f.alignmentConstraint.vertical,$=function(tt){var j=new Set;U[tt].forEach(function(pt){j.add(pt)});var ut=new Set([].concat(l(j)).filter(function(pt){return S.has(pt)})),Mt=void 0;ut.size>0?Mt=d[v.get(ut.values().next().value)]:Mt=K(j).x,U[tt].forEach(function(pt){E[F]=[Mt,L[v.get(pt)]],y[F]=[d[v.get(pt)],L[v.get(pt)]],F++})},J=0;J0?Mt=d[v.get(ut.values().next().value)]:Mt=K(j).y,Z[tt].forEach(function(pt){E[F]=[d[v.get(pt)],Mt],y[F]=[d[v.get(pt)],L[v.get(pt)]],F++})},ct=0;ctV&&(V=q[et].length,X=et);if(V0){var Et={x:0,y:0};f.fixedNodeConstraint.forEach(function(F,U){var $={x:d[v.get(F.nodeId)],y:L[v.get(F.nodeId)]},J=F.position,Z=Y(J,$);Et.x+=Z.x,Et.y+=Z.y}),Et.x/=f.fixedNodeConstraint.length,Et.y/=f.fixedNodeConstraint.length,d.forEach(function(F,U){d[U]+=Et.x}),L.forEach(function(F,U){L[U]+=Et.y}),f.fixedNodeConstraint.forEach(function(F){d[v.get(F.nodeId)]=F.position.x,L[v.get(F.nodeId)]=F.position.y})}if(f.alignmentConstraint){if(f.alignmentConstraint.vertical)for(var Dt=f.alignmentConstraint.vertical,Rt=function(U){var $=new Set;Dt[U].forEach(function(at){$.add(at)});var J=new Set([].concat(l($)).filter(function(at){return S.has(at)})),Z=void 0;J.size>0?Z=d[v.get(J.values().next().value)]:Z=K($).x,$.forEach(function(at){S.has(at)||(d[v.get(at)]=Z)})},Ht=0;Ht0?Z=L[v.get(J.values().next().value)]:Z=K($).y,$.forEach(function(at){S.has(at)||(L[v.get(at)]=Z)})},Ft=0;Ft{a.exports=A})},N={};function u(a){var e=N[a];if(e!==void 0)return e.exports;var r=N[a]={exports:{}};return P[a](r,r.exports,u),r.exports}var h=u(45);return h})()})})(le)),le.exports}var pr=he.exports,De;function yr(){return De||(De=1,(function(I,x){(function(P,N){I.exports=N(dr())})(pr,function(A){return(()=>{var P={658:(a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(e){for(var r=arguments.length,l=Array(r>1?r-1:0),i=1;i{var l=(function(){function t(o,s){var c=[],f=!0,T=!1,v=void 0;try{for(var d=o[Symbol.iterator](),L;!(f=(L=d.next()).done)&&(c.push(L.value),!(s&&c.length===s));f=!0);}catch(b){T=!0,v=b}finally{try{!f&&d.return&&d.return()}finally{if(T)throw v}}return c}return function(o,s){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return t(o,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),i=r(140).layoutBase.LinkedList,g={};g.getTopMostNodes=function(t){for(var o={},s=0;s0&&R.merge(D)});for(var M=0;M1){L=v[0],b=L.connectedEdges().length,v.forEach(function(y){y.connectedEdges().length0&&c.set("dummy"+(c.size+1),k),Y},g.relocateComponent=function(t,o,s){if(!s.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,f=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY;if(s.quality=="draft"){var d=!0,L=!1,b=void 0;try{for(var C=o.nodeIndexes[Symbol.iterator](),G;!(d=(G=C.next()).done);d=!0){var k=G.value,Y=l(k,2),K=Y[0],O=Y[1],it=s.cy.getElementById(K);if(it){var n=it.boundingBox(),m=o.xCoords[O]-n.w/2,p=o.xCoords[O]+n.w/2,E=o.yCoords[O]-n.h/2,y=o.yCoords[O]+n.h/2;mf&&(f=p),Ev&&(v=y)}}}catch(D){L=!0,b=D}finally{try{!d&&C.return&&C.return()}finally{if(L)throw b}}var R=t.x-(f+c)/2,M=t.y-(v+T)/2;o.xCoords=o.xCoords.map(function(D){return D+R}),o.yCoords=o.yCoords.map(function(D){return D+M})}else{Object.keys(o).forEach(function(D){var q=o[D],V=q.getRect().x,X=q.getRect().x+q.getRect().width,et=q.getRect().y,z=q.getRect().y+q.getRect().height;Vf&&(f=X),etv&&(v=z)});var S=t.x-(f+c)/2,W=t.y-(v+T)/2;Object.keys(o).forEach(function(D){var q=o[D];q.setCenter(q.getCenterX()+S,q.getCenterY()+W)})}}},g.calcBoundingBox=function(t,o,s,c){for(var f=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,v=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,L=void 0,b=void 0,C=void 0,G=void 0,k=t.descendants().not(":parent"),Y=k.length,K=0;KL&&(f=L),TC&&(v=C),d{var l=r(548),i=r(140).CoSELayout,g=r(140).CoSENode,t=r(140).layoutBase.PointD,o=r(140).layoutBase.DimensionD,s=r(140).layoutBase.LayoutConstants,c=r(140).layoutBase.FDLayoutConstants,f=r(140).CoSEConstants,T=function(d,L){var b=d.cy,C=d.eles,G=C.nodes(),k=C.edges(),Y=void 0,K=void 0,O=void 0,it={};d.randomize&&(Y=L.nodeIndexes,K=L.xCoords,O=L.yCoords);var n=function(D){return typeof D=="function"},m=function(D,q){return n(D)?D(q):D},p=l.calcParentsWithoutChildren(b,C),E=function W(D,q,V,X){for(var et=q.length,z=0;z0){var Q=void 0;Q=V.getGraphManager().add(V.newGraph(),B),W(Q,H,V,X)}}},y=function(D,q,V){for(var X=0,et=0,z=0;z0?f.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=X/et:n(d.idealEdgeLength)?f.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:f.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,f.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,f.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},R=function(D,q){q.fixedNodeConstraint&&(D.constraints.fixedNodeConstraint=q.fixedNodeConstraint),q.alignmentConstraint&&(D.constraints.alignmentConstraint=q.alignmentConstraint),q.relativePlacementConstraint&&(D.constraints.relativePlacementConstraint=q.relativePlacementConstraint)};d.nestingFactor!=null&&(f.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(f.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(f.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(f.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(f.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(f.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(f.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?s.QUALITY=2:s.QUALITY=0,f.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=s.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,f.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!d.randomize,f.ANIMATE=c.ANIMATE=s.ANIMATE=d.animate,f.TILE=d.tile,f.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,f.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,f.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!0,f.PURE_INCREMENTAL=!d.randomize,s.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(f.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,f.ENFORCE_CONSTRAINTS=!1,f.APPLY_LAYOUT=!1),d.step=="enforced"&&(f.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,f.ENFORCE_CONSTRAINTS=!0,f.APPLY_LAYOUT=!1),d.step=="cose"&&(f.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,f.ENFORCE_CONSTRAINTS=!1,f.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?f.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:f.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,f.ENFORCE_CONSTRAINTS=!0,f.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?f.TREE_REDUCTION_ON_INCREMENTAL=!1:f.TREE_REDUCTION_ON_INCREMENTAL=!0;var M=new i,S=M.newGraphManager();return E(S.addRoot(),l.getTopMostNodes(G),M,d),y(M,S,k),R(M,d),M.runLayout(),it};a.exports={coseLayout:T}}),212:((a,e,r)=>{var l=(function(){function d(L,b){for(var C=0;C0)if(p){var R=t.getTopMostNodes(C.eles.nodes());if(O=t.connectComponents(G,C.eles,R),O.forEach(function(dt){var rt=dt.boundingBox();it.push({x:rt.x1+rt.w/2,y:rt.y1+rt.h/2})}),C.randomize&&O.forEach(function(dt){C.eles=dt,Y.push(s(C))}),C.quality=="default"||C.quality=="proof"){var M=G.collection();if(C.tile){var S=new Map,W=[],D=[],q=0,V={nodeIndexes:S,xCoords:W,yCoords:D},X=[];if(O.forEach(function(dt,rt){dt.edges().length==0&&(dt.nodes().forEach(function(gt,mt){M.merge(dt.nodes()[mt]),gt.isParent()||(V.nodeIndexes.set(dt.nodes()[mt].id(),q++),V.xCoords.push(dt.nodes()[0].position().x),V.yCoords.push(dt.nodes()[0].position().y))}),X.push(rt))}),M.length>1){var et=M.boundingBox();it.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),O.push(M),Y.push(V);for(var z=X.length-1;z>=0;z--)O.splice(X[z],1),Y.splice(X[z],1),it.splice(X[z],1)}}O.forEach(function(dt,rt){C.eles=dt,K.push(f(C,Y[rt])),t.relocateComponent(it[rt],K[rt],C)})}else O.forEach(function(dt,rt){t.relocateComponent(it[rt],Y[rt],C)});var w=new Set;if(O.length>1){var H=[],B=k.filter(function(dt){return dt.css("display")=="none"});O.forEach(function(dt,rt){var gt=void 0;if(C.quality=="draft"&&(gt=Y[rt].nodeIndexes),dt.nodes().not(B).length>0){var mt={};mt.edges=[],mt.nodes=[];var At=void 0;dt.nodes().not(B).forEach(function(Ot){if(C.quality=="draft")if(!Ot.isParent())At=gt.get(Ot.id()),mt.nodes.push({x:Y[rt].xCoords[At]-Ot.boundingbox().w/2,y:Y[rt].yCoords[At]-Ot.boundingbox().h/2,width:Ot.boundingbox().w,height:Ot.boundingbox().h});else{var Et=t.calcBoundingBox(Ot,Y[rt].xCoords,Y[rt].yCoords,gt);mt.nodes.push({x:Et.topLeftX,y:Et.topLeftY,width:Et.width,height:Et.height})}else K[rt][Ot.id()]&&mt.nodes.push({x:K[rt][Ot.id()].getLeft(),y:K[rt][Ot.id()].getTop(),width:K[rt][Ot.id()].getWidth(),height:K[rt][Ot.id()].getHeight()})}),dt.edges().forEach(function(Ot){var Et=Ot.source(),Dt=Ot.target();if(Et.css("display")!="none"&&Dt.css("display")!="none")if(C.quality=="draft"){var Rt=gt.get(Et.id()),Ht=gt.get(Dt.id()),Ut=[],Pt=[];if(Et.isParent()){var Ft=t.calcBoundingBox(Et,Y[rt].xCoords,Y[rt].yCoords,gt);Ut.push(Ft.topLeftX+Ft.width/2),Ut.push(Ft.topLeftY+Ft.height/2)}else Ut.push(Y[rt].xCoords[Rt]),Ut.push(Y[rt].yCoords[Rt]);if(Dt.isParent()){var Yt=t.calcBoundingBox(Dt,Y[rt].xCoords,Y[rt].yCoords,gt);Pt.push(Yt.topLeftX+Yt.width/2),Pt.push(Yt.topLeftY+Yt.height/2)}else Pt.push(Y[rt].xCoords[Ht]),Pt.push(Y[rt].yCoords[Ht]);mt.edges.push({startX:Ut[0],startY:Ut[1],endX:Pt[0],endY:Pt[1]})}else K[rt][Et.id()]&&K[rt][Dt.id()]&&mt.edges.push({startX:K[rt][Et.id()].getCenterX(),startY:K[rt][Et.id()].getCenterY(),endX:K[rt][Dt.id()].getCenterX(),endY:K[rt][Dt.id()].getCenterY()})}),mt.nodes.length>0&&(H.push(mt),w.add(rt))}});var _=m.packComponents(H,C.randomize).shifts;if(C.quality=="draft")Y.forEach(function(dt,rt){var gt=dt.xCoords.map(function(At){return At+_[rt].dx}),mt=dt.yCoords.map(function(At){return At+_[rt].dy});dt.xCoords=gt,dt.yCoords=mt});else{var ht=0;w.forEach(function(dt){Object.keys(K[dt]).forEach(function(rt){var gt=K[dt][rt];gt.setCenter(gt.getCenterX()+_[ht].dx,gt.getCenterY()+_[ht].dy)}),ht++})}}}else{var E=C.eles.boundingBox();if(it.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),C.randomize){var y=s(C);Y.push(y)}C.quality=="default"||C.quality=="proof"?(K.push(f(C,Y[0])),t.relocateComponent(it[0],K[0],C)):t.relocateComponent(it[0],Y[0],C)}var Q=function(rt,gt){if(C.quality=="default"||C.quality=="proof"){typeof rt=="number"&&(rt=gt);var mt=void 0,At=void 0,Ot=rt.data("id");return K.forEach(function(Dt){Ot in Dt&&(mt={x:Dt[Ot].getRect().getCenterX(),y:Dt[Ot].getRect().getCenterY()},At=Dt[Ot])}),C.nodeDimensionsIncludeLabels&&(At.labelWidth&&(At.labelPosHorizontal=="left"?mt.x+=At.labelWidth/2:At.labelPosHorizontal=="right"&&(mt.x-=At.labelWidth/2)),At.labelHeight&&(At.labelPosVertical=="top"?mt.y+=At.labelHeight/2:At.labelPosVertical=="bottom"&&(mt.y-=At.labelHeight/2))),mt==null&&(mt={x:rt.position("x"),y:rt.position("y")}),{x:mt.x,y:mt.y}}else{var Et=void 0;return Y.forEach(function(Dt){var Rt=Dt.nodeIndexes.get(rt.id());Rt!=null&&(Et={x:Dt.xCoords[Rt],y:Dt.yCoords[Rt]})}),Et==null&&(Et={x:rt.position("x"),y:rt.position("y")}),{x:Et.x,y:Et.y}}};if(C.quality=="default"||C.quality=="proof"||C.randomize){var It=t.calcParentsWithoutChildren(G,k),Nt=k.filter(function(dt){return dt.css("display")=="none"});C.eles=k.not(Nt),k.nodes().not(":parent").not(Nt).layoutPositions(b,C,Q),It.length>0&&It.forEach(function(dt){dt.position(Q(dt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),d})();a.exports=v}),657:((a,e,r)=>{var l=r(548),i=r(140).layoutBase.Matrix,g=r(140).layoutBase.SVD,t=function(s){var c=s.cy,f=s.eles,T=f.nodes(),v=f.nodes(":parent"),d=new Map,L=new Map,b=new Map,C=[],G=[],k=[],Y=[],K=[],O=[],it=[],n=[],m=void 0,p=1e8,E=1e-9,y=s.piTol,R=s.samplingType,M=s.nodeSeparation,S=void 0,W=function(){for(var U=0,$=0,J=!1;$=at;){nt=Z[at++];for(var xt=C[nt],lt=0;ltut&&(ut=K[Lt],Mt=Lt)}return Mt},q=function(U){var $=void 0;if(U){$=Math.floor(Math.random()*m);for(var Z=0;Z=1)break;j=tt}for(var pt=0;pt=1)break;j=tt}for(var lt=0;lt0&&($.isParent()?C[U].push(b.get($.id())):C[U].push($.id()))})});var Nt=function(U){var $=L.get(U),J=void 0;d.get(U).forEach(function(Z){c.getElementById(Z).isParent()?J=b.get(Z):J=Z,C[$].push(J),C[L.get(J)].push(U)})},dt=!0,rt=!1,gt=void 0;try{for(var mt=d.keys()[Symbol.iterator](),At;!(dt=(At=mt.next()).done);dt=!0){var Ot=At.value;Nt(Ot)}}catch(F){rt=!0,gt=F}finally{try{!dt&&mt.return&&mt.return()}finally{if(rt)throw gt}}m=L.size;var Et=void 0;if(m>2){S=m{var l=r(212),i=function(t){t&&t("layout","fcose",l)};typeof cytoscape<"u"&&i(cytoscape),a.exports=i}),140:(a=>{a.exports=A})},N={};function u(a){var e=N[a];if(e!==void 0)return e.exports;var r=N[a]={exports:{}};return P[a](r,r.exports,u),r.exports}var h=u(579);return h})()})})(he)),he.exports}var Er=yr();const mr=Ze(Er);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:vt(I=>`${I},${I/2} 0,${I} 0,0`,"L"),R:vt(I=>`0,${I/2} ${I},0 ${I},${I}`,"R"),T:vt(I=>`0,0 ${I},0 ${I/2},${I}`,"T"),B:vt(I=>`${I/2},0 ${I},${I} 0,${I}`,"B")},se={L:vt((I,x)=>I-x+2,"L"),R:vt((I,x)=>I-2,"R"),T:vt((I,x)=>I-x+2,"T"),B:vt((I,x)=>I-2,"B")},Tr=vt(function(I){return Wt(I)?I==="L"?"R":"L":I==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=vt(function(I){const x=I;return x==="L"||x==="R"||x==="T"||x==="B"},"isArchitectureDirection"),Wt=vt(function(I){const x=I;return x==="L"||x==="R"},"isArchitectureDirectionX"),qt=vt(function(I){const x=I;return x==="T"||x==="B"},"isArchitectureDirectionY"),Te=vt(function(I,x){const A=Wt(I)&&qt(x),P=qt(I)&&Wt(x);return A||P},"isArchitectureDirectionXY"),Nr=vt(function(I){const x=I[0],A=I[1],P=Wt(x)&&qt(A),N=qt(x)&&Wt(A);return P||N},"isArchitecturePairXY"),Lr=vt(function(I){return I!=="LL"&&I!=="RR"&&I!=="TT"&&I!=="BB"},"isValidArchitectureDirectionPair"),ye=vt(function(I,x){const A=`${I}${x}`;return Lr(A)?A:void 0},"getArchitectureDirectionPair"),Cr=vt(function([I,x],A){const P=A[0],N=A[1];return Wt(P)?qt(N)?[I+(P==="L"?-1:1),x+(N==="T"?1:-1)]:[I+(P==="L"?-1:1),x]:Wt(N)?[I+(N==="L"?1:-1),x+(P==="T"?1:-1)]:[I,x+(P==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Ar=vt(function(I){return I==="LT"||I==="TL"?[1,1]:I==="BL"||I==="LB"?[1,-1]:I==="BR"||I==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Mr=vt(function(I,x){return Te(I,x)?"bend":Wt(I)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),wr=vt(function(I){return I.type==="service"},"isArchitectureService"),Or=vt(function(I){return I.type==="junction"},"isArchitectureJunction"),be=vt(I=>I.data(),"edgeData"),ie=vt(I=>I.data(),"nodeData"),Dr=ar.architecture,ae,Pe=(ae=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.setAccTitle=Qe,this.getAccTitle=Je,this.setDiagramTitle=Ke,this.getDiagramTitle=je,this.getAccDescription=_e,this.setAccDescription=tr,this.clear()}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},er()}addService({id:x,icon:A,in:P,title:N,iconText:u}){if(this.registeredIds[x]!==void 0)throw new Error(`The service id [${x}] is already in use by another ${this.registeredIds[x]}`);if(P!==void 0){if(x===P)throw new Error(`The service [${x}] cannot be placed within itself`);if(this.registeredIds[P]===void 0)throw new Error(`The service [${x}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[P]==="node")throw new Error(`The service [${x}]'s parent is not a group`)}this.registeredIds[x]="node",this.nodes[x]={id:x,type:"service",icon:A,iconText:u,title:N,edges:[],in:P}}getServices(){return Object.values(this.nodes).filter(wr)}addJunction({id:x,in:A}){this.registeredIds[x]="node",this.nodes[x]={id:x,type:"junction",edges:[],in:A}}getJunctions(){return Object.values(this.nodes).filter(Or)}getNodes(){return Object.values(this.nodes)}getNode(x){return this.nodes[x]??null}addGroup({id:x,icon:A,in:P,title:N}){if(this.registeredIds?.[x]!==void 0)throw new Error(`The group id [${x}] is already in use by another ${this.registeredIds[x]}`);if(P!==void 0){if(x===P)throw new Error(`The group [${x}] cannot be placed within itself`);if(this.registeredIds?.[P]===void 0)throw new Error(`The group [${x}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds?.[P]==="node")throw new Error(`The group [${x}]'s parent is not a group`)}this.registeredIds[x]="group",this.groups[x]={id:x,icon:A,title:N,in:P}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:x,rhsId:A,lhsDir:P,rhsDir:N,lhsInto:u,rhsInto:h,lhsGroup:a,rhsGroup:e,title:r}){if(!Re(P))throw new Error(`Invalid direction given for left hand side of edge ${x}--${A}. Expected (L,R,T,B) got ${String(P)}`);if(!Re(N))throw new Error(`Invalid direction given for right hand side of edge ${x}--${A}. Expected (L,R,T,B) got ${String(N)}`);if(this.nodes[x]===void 0&&this.groups[x]===void 0)throw new Error(`The left-hand id [${x}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[A]===void 0&&this.groups[A]===void 0)throw new Error(`The right-hand id [${A}] does not yet exist. Please create the service/group before declaring an edge to it.`);const l=this.nodes[x].in,i=this.nodes[A].in;if(a&&l&&i&&l==i)throw new Error(`The left-hand id [${x}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(e&&l&&i&&l==i)throw new Error(`The right-hand id [${A}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const g={lhsId:x,lhsDir:P,lhsInto:u,lhsGroup:a,rhsId:A,rhsDir:N,rhsInto:h,rhsGroup:e,title:r};this.edges.push(g),this.nodes[x]&&this.nodes[A]&&(this.nodes[x].edges.push(this.edges[this.edges.length-1]),this.nodes[A].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){const x={},A=Object.entries(this.nodes).reduce((e,[r,l])=>(e[r]=l.edges.reduce((i,g)=>{const t=this.getNode(g.lhsId)?.in,o=this.getNode(g.rhsId)?.in;if(t&&o&&t!==o){const s=Mr(g.lhsDir,g.rhsDir);s!=="bend"&&(x[t]??={},x[t][o]=s,x[o]??={},x[o][t]=s)}if(g.lhsId===r){const s=ye(g.lhsDir,g.rhsDir);s&&(i[s]=g.rhsId)}else{const s=ye(g.rhsDir,g.lhsDir);s&&(i[s]=g.lhsId)}return i},{}),e),{}),P=Object.keys(A)[0],N={[P]:1},u=Object.keys(A).reduce((e,r)=>r===P?e:{...e,[r]:1},{}),h=vt(e=>{const r={[e]:[0,0]},l=[e];for(;l.length>0;){const i=l.shift();if(i){N[i]=1,delete u[i];const g=A[i],[t,o]=r[i];Object.entries(g).forEach(([s,c])=>{N[c]||(r[c]=Cr([t,o],s),l.push(c))})}}return r},"BFS"),a=[h(P)];for(;Object.keys(u).length>0;)a.push(h(Object.keys(u)[0]));this.dataStructures={adjList:A,spatialMaps:a,groupAlignments:x}}return this.dataStructures}setElementForId(x,A){this.elements[x]=A}getElementById(x){return this.elements[x]}getConfig(){return rr({...Dr,...ir().architecture})}getConfigField(x){return this.getConfig()[x]}},vt(ae,"ArchitectureDB"),ae),xr=vt((I,x)=>{fr(I,x),I.groups.map(A=>x.addGroup(A)),I.services.map(A=>x.addService({...A,type:"service"})),I.junctions.map(A=>x.addJunction({...A,type:"junction"})),I.edges.map(A=>x.addEdge(A))},"populateDb"),Ge={parser:{yy:void 0},parse:vt(async I=>{const x=await cr("architecture",I);Se.debug(x);const A=Ge.parser?.yy;if(!(A instanceof Pe))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");xr(x,A)},"parse")},Ir=vt(I=>` .edge { stroke-width: ${I.archEdgeWidth}; stroke: ${I.archEdgeColor}; diff --git a/docs/dist/assets/blockDiagram-VD42YOAC-CuS2rFPZ.js b/docs/dist/assets/blockDiagram-VD42YOAC-CQJ3-geB.js similarity index 99% rename from docs/dist/assets/blockDiagram-VD42YOAC-CuS2rFPZ.js rename to docs/dist/assets/blockDiagram-VD42YOAC-CQJ3-geB.js index e7b23f7d..74fc7a82 100644 --- a/docs/dist/assets/blockDiagram-VD42YOAC-CuS2rFPZ.js +++ b/docs/dist/assets/blockDiagram-VD42YOAC-CQJ3-geB.js @@ -1,4 +1,4 @@ -import{g as oe}from"./chunk-FMBD7UC4-mpZRA3cF.js";import{_ as d,E as rt,d as O,e as he,l as L,y as de,A as ge,c as R,ai as ue,R as pe,S as fe,O as xe,aj as j,ak as Wt,al as ye,u as $,k as be,am as we,an as xt,i as yt,ao as me}from"./index-BtiIqbpV.js";import{c as Le}from"./clone-uEwA9FQU.js";import{G as Se}from"./graph-B7dpUAh4.js";import{c as ke}from"./channel-92COyuQS.js";import"./_baseUniq-UvPYksec.js";var bt=(function(){var e=d(function(D,y,g,f){for(g=g||{},f=D.length;f--;g[D[f]]=y);return g},"o"),t=[1,15],a=[1,7],i=[1,13],l=[1,14],s=[1,19],r=[1,16],n=[1,17],c=[1,18],u=[8,30],o=[8,10,21,28,29,30,31,39,43,46],x=[1,23],w=[1,24],b=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],v=[1,49],k={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(y,g,f,m,E,h,W){var p=h.length-1;switch(E){case 4:m.getLogger().debug("Rule: separator (NL) ");break;case 5:m.getLogger().debug("Rule: separator (Space) ");break;case 6:m.getLogger().debug("Rule: separator (EOF) ");break;case 7:m.getLogger().debug("Rule: hierarchy: ",h[p-1]),m.setHierarchy(h[p-1]);break;case 8:m.getLogger().debug("Stop NL ");break;case 9:m.getLogger().debug("Stop EOF ");break;case 10:m.getLogger().debug("Stop NL2 ");break;case 11:m.getLogger().debug("Stop EOF2 ");break;case 12:m.getLogger().debug("Rule: statement: ",h[p]),typeof h[p].length=="number"?this.$=h[p]:this.$=[h[p]];break;case 13:m.getLogger().debug("Rule: statement #2: ",h[p-1]),this.$=[h[p-1]].concat(h[p]);break;case 14:m.getLogger().debug("Rule: link: ",h[p],y),this.$={edgeTypeStr:h[p],label:""};break;case 15:m.getLogger().debug("Rule: LABEL link: ",h[p-3],h[p-1],h[p]),this.$={edgeTypeStr:h[p],label:h[p-1]};break;case 18:const I=parseInt(h[p]),Z=m.generateId();this.$={id:Z,type:"space",label:"",width:I,children:[]};break;case 23:m.getLogger().debug("Rule: (nodeStatement link node) ",h[p-2],h[p-1],h[p]," typestr: ",h[p-1].edgeTypeStr);const V=m.edgeStrToEdgeData(h[p-1].edgeTypeStr);this.$=[{id:h[p-2].id,label:h[p-2].label,type:h[p-2].type,directions:h[p-2].directions},{id:h[p-2].id+"-"+h[p].id,start:h[p-2].id,end:h[p].id,label:h[p-1].label,type:"edge",directions:h[p].directions,arrowTypeEnd:V,arrowTypeStart:"arrow_open"},{id:h[p].id,label:h[p].label,type:m.typeStr2Type(h[p].typeStr),directions:h[p].directions}];break;case 24:m.getLogger().debug("Rule: nodeStatement (abc88 node size) ",h[p-1],h[p]),this.$={id:h[p-1].id,label:h[p-1].label,type:m.typeStr2Type(h[p-1].typeStr),directions:h[p-1].directions,widthInColumns:parseInt(h[p],10)};break;case 25:m.getLogger().debug("Rule: nodeStatement (node) ",h[p]),this.$={id:h[p].id,label:h[p].label,type:m.typeStr2Type(h[p].typeStr),directions:h[p].directions,widthInColumns:1};break;case 26:m.getLogger().debug("APA123",this?this:"na"),m.getLogger().debug("COLUMNS: ",h[p]),this.$={type:"column-setting",columns:h[p]==="auto"?-1:parseInt(h[p])};break;case 27:m.getLogger().debug("Rule: id-block statement : ",h[p-2],h[p-1]),m.generateId(),this.$={...h[p-2],type:"composite",children:h[p-1]};break;case 28:m.getLogger().debug("Rule: blockStatement : ",h[p-2],h[p-1],h[p]);const at=m.generateId();this.$={id:at,type:"composite",label:"",children:h[p-1]};break;case 29:m.getLogger().debug("Rule: node (NODE_ID separator): ",h[p]),this.$={id:h[p]};break;case 30:m.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",h[p-1],h[p]),this.$={id:h[p-1],label:h[p].label,typeStr:h[p].typeStr,directions:h[p].directions};break;case 31:m.getLogger().debug("Rule: dirList: ",h[p]),this.$=[h[p]];break;case 32:m.getLogger().debug("Rule: dirList: ",h[p-1],h[p]),this.$=[h[p-1]].concat(h[p]);break;case 33:m.getLogger().debug("Rule: nodeShapeNLabel: ",h[p-2],h[p-1],h[p]),this.$={typeStr:h[p-2]+h[p],label:h[p-1]};break;case 34:m.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",h[p-3],h[p-2]," #3:",h[p-1],h[p]),this.$={typeStr:h[p-3]+h[p],label:h[p-2],directions:h[p-1]};break;case 35:case 36:this.$={type:"classDef",id:h[p-1].trim(),css:h[p].trim()};break;case 37:this.$={type:"applyClass",id:h[p-1].trim(),styleClass:h[p].trim()};break;case 38:this.$={type:"applyStyles",id:h[p-1].trim(),stylesStr:h[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:i,29:l,31:s,39:r,43:n,46:c}),e(o,[2,16],{14:22,15:x,16:w}),e(o,[2,17]),e(o,[2,18]),e(o,[2,19]),e(o,[2,20]),e(o,[2,21]),e(o,[2,22]),e(b,[2,25],{27:[1,25]}),e(o,[2,26]),{19:26,26:12,31:s},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:s},{31:[2,14]},{17:[1,36]},e(b,[2,24]),{10:t,11:37,13:4,14:22,15:x,16:w,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(b,[2,23]),{18:[1,45]},{30:[1,46]},e(o,[2,28]),e(o,[2,35]),e(o,[2,36]),e(o,[2,37]),e(o,[2,38]),{36:[1,47]},{33:48,34:v},{15:[1,50]},e(o,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:v,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(y,g){if(g.recoverable)this.trace(y);else{var f=new Error(y);throw f.hash=g,f}},"parseError"),parse:d(function(y){var g=this,f=[0],m=[],E=[null],h=[],W=this.table,p="",I=0,Z=0,V=2,at=1,ne=h.slice.call(arguments,1),z=Object.create(this.lexer),q={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(q.yy[gt]=this.yy[gt]);z.setInput(y,q.yy),q.yy.lexer=z,q.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var ut=z.yylloc;h.push(ut);var le=z.options&&z.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(P){f.length=f.length-2*P,E.length=E.length-P,h.length=h.length-P}d(ce,"popStack");function Nt(){var P;return P=m.pop()||z.lex()||at,typeof P!="number"&&(P instanceof Array&&(m=P,P=m.pop()),P=g.symbols_[P]||P),P}d(Nt,"lex");for(var F,J,H,pt,Q={},st,G,Tt,it;;){if(J=f[f.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((F===null||typeof F>"u")&&(F=Nt()),H=W[J]&&W[J][F]),typeof H>"u"||!H.length||!H[0]){var ft="";it=[];for(st in W[J])this.terminals_[st]&&st>V&&it.push("'"+this.terminals_[st]+"'");z.showPosition?ft="Parse error on line "+(I+1)+`: +import{g as oe}from"./chunk-FMBD7UC4-D1HxKLa4.js";import{_ as d,E as rt,d as O,e as he,l as L,y as de,A as ge,c as R,ai as ue,R as pe,S as fe,O as xe,aj as j,ak as Wt,al as ye,u as $,k as be,am as we,an as xt,i as yt,ao as me}from"./index-Cbm2MoYO.js";import{c as Le}from"./clone-D4gAIgVI.js";import{G as Se}from"./graph-CrBOm174.js";import{c as ke}from"./channel-Bosr5z2r.js";import"./_baseUniq-yJVicqoM.js";var bt=(function(){var e=d(function(D,y,g,f){for(g=g||{},f=D.length;f--;g[D[f]]=y);return g},"o"),t=[1,15],a=[1,7],i=[1,13],l=[1,14],s=[1,19],r=[1,16],n=[1,17],c=[1,18],u=[8,30],o=[8,10,21,28,29,30,31,39,43,46],x=[1,23],w=[1,24],b=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],v=[1,49],k={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(y,g,f,m,E,h,W){var p=h.length-1;switch(E){case 4:m.getLogger().debug("Rule: separator (NL) ");break;case 5:m.getLogger().debug("Rule: separator (Space) ");break;case 6:m.getLogger().debug("Rule: separator (EOF) ");break;case 7:m.getLogger().debug("Rule: hierarchy: ",h[p-1]),m.setHierarchy(h[p-1]);break;case 8:m.getLogger().debug("Stop NL ");break;case 9:m.getLogger().debug("Stop EOF ");break;case 10:m.getLogger().debug("Stop NL2 ");break;case 11:m.getLogger().debug("Stop EOF2 ");break;case 12:m.getLogger().debug("Rule: statement: ",h[p]),typeof h[p].length=="number"?this.$=h[p]:this.$=[h[p]];break;case 13:m.getLogger().debug("Rule: statement #2: ",h[p-1]),this.$=[h[p-1]].concat(h[p]);break;case 14:m.getLogger().debug("Rule: link: ",h[p],y),this.$={edgeTypeStr:h[p],label:""};break;case 15:m.getLogger().debug("Rule: LABEL link: ",h[p-3],h[p-1],h[p]),this.$={edgeTypeStr:h[p],label:h[p-1]};break;case 18:const I=parseInt(h[p]),Z=m.generateId();this.$={id:Z,type:"space",label:"",width:I,children:[]};break;case 23:m.getLogger().debug("Rule: (nodeStatement link node) ",h[p-2],h[p-1],h[p]," typestr: ",h[p-1].edgeTypeStr);const V=m.edgeStrToEdgeData(h[p-1].edgeTypeStr);this.$=[{id:h[p-2].id,label:h[p-2].label,type:h[p-2].type,directions:h[p-2].directions},{id:h[p-2].id+"-"+h[p].id,start:h[p-2].id,end:h[p].id,label:h[p-1].label,type:"edge",directions:h[p].directions,arrowTypeEnd:V,arrowTypeStart:"arrow_open"},{id:h[p].id,label:h[p].label,type:m.typeStr2Type(h[p].typeStr),directions:h[p].directions}];break;case 24:m.getLogger().debug("Rule: nodeStatement (abc88 node size) ",h[p-1],h[p]),this.$={id:h[p-1].id,label:h[p-1].label,type:m.typeStr2Type(h[p-1].typeStr),directions:h[p-1].directions,widthInColumns:parseInt(h[p],10)};break;case 25:m.getLogger().debug("Rule: nodeStatement (node) ",h[p]),this.$={id:h[p].id,label:h[p].label,type:m.typeStr2Type(h[p].typeStr),directions:h[p].directions,widthInColumns:1};break;case 26:m.getLogger().debug("APA123",this?this:"na"),m.getLogger().debug("COLUMNS: ",h[p]),this.$={type:"column-setting",columns:h[p]==="auto"?-1:parseInt(h[p])};break;case 27:m.getLogger().debug("Rule: id-block statement : ",h[p-2],h[p-1]),m.generateId(),this.$={...h[p-2],type:"composite",children:h[p-1]};break;case 28:m.getLogger().debug("Rule: blockStatement : ",h[p-2],h[p-1],h[p]);const at=m.generateId();this.$={id:at,type:"composite",label:"",children:h[p-1]};break;case 29:m.getLogger().debug("Rule: node (NODE_ID separator): ",h[p]),this.$={id:h[p]};break;case 30:m.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",h[p-1],h[p]),this.$={id:h[p-1],label:h[p].label,typeStr:h[p].typeStr,directions:h[p].directions};break;case 31:m.getLogger().debug("Rule: dirList: ",h[p]),this.$=[h[p]];break;case 32:m.getLogger().debug("Rule: dirList: ",h[p-1],h[p]),this.$=[h[p-1]].concat(h[p]);break;case 33:m.getLogger().debug("Rule: nodeShapeNLabel: ",h[p-2],h[p-1],h[p]),this.$={typeStr:h[p-2]+h[p],label:h[p-1]};break;case 34:m.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",h[p-3],h[p-2]," #3:",h[p-1],h[p]),this.$={typeStr:h[p-3]+h[p],label:h[p-2],directions:h[p-1]};break;case 35:case 36:this.$={type:"classDef",id:h[p-1].trim(),css:h[p].trim()};break;case 37:this.$={type:"applyClass",id:h[p-1].trim(),styleClass:h[p].trim()};break;case 38:this.$={type:"applyStyles",id:h[p-1].trim(),stylesStr:h[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:i,29:l,31:s,39:r,43:n,46:c}),e(o,[2,16],{14:22,15:x,16:w}),e(o,[2,17]),e(o,[2,18]),e(o,[2,19]),e(o,[2,20]),e(o,[2,21]),e(o,[2,22]),e(b,[2,25],{27:[1,25]}),e(o,[2,26]),{19:26,26:12,31:s},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:s},{31:[2,14]},{17:[1,36]},e(b,[2,24]),{10:t,11:37,13:4,14:22,15:x,16:w,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(b,[2,23]),{18:[1,45]},{30:[1,46]},e(o,[2,28]),e(o,[2,35]),e(o,[2,36]),e(o,[2,37]),e(o,[2,38]),{36:[1,47]},{33:48,34:v},{15:[1,50]},e(o,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:v,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(y,g){if(g.recoverable)this.trace(y);else{var f=new Error(y);throw f.hash=g,f}},"parseError"),parse:d(function(y){var g=this,f=[0],m=[],E=[null],h=[],W=this.table,p="",I=0,Z=0,V=2,at=1,ne=h.slice.call(arguments,1),z=Object.create(this.lexer),q={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(q.yy[gt]=this.yy[gt]);z.setInput(y,q.yy),q.yy.lexer=z,q.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var ut=z.yylloc;h.push(ut);var le=z.options&&z.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(P){f.length=f.length-2*P,E.length=E.length-P,h.length=h.length-P}d(ce,"popStack");function Nt(){var P;return P=m.pop()||z.lex()||at,typeof P!="number"&&(P instanceof Array&&(m=P,P=m.pop()),P=g.symbols_[P]||P),P}d(Nt,"lex");for(var F,J,H,pt,Q={},st,G,Tt,it;;){if(J=f[f.length-1],this.defaultActions[J]?H=this.defaultActions[J]:((F===null||typeof F>"u")&&(F=Nt()),H=W[J]&&W[J][F]),typeof H>"u"||!H.length||!H[0]){var ft="";it=[];for(st in W[J])this.terminals_[st]&&st>V&&it.push("'"+this.terminals_[st]+"'");z.showPosition?ft="Parse error on line "+(I+1)+`: `+z.showPosition()+` Expecting `+it.join(", ")+", got '"+(this.terminals_[F]||F)+"'":ft="Parse error on line "+(I+1)+": Unexpected "+(F==at?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(ft,{text:z.match,token:this.terminals_[F]||F,line:z.yylineno,loc:ut,expected:it})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+F);switch(H[0]){case 1:f.push(F),E.push(z.yytext),h.push(z.yylloc),f.push(H[1]),F=null,Z=z.yyleng,p=z.yytext,I=z.yylineno,ut=z.yylloc;break;case 2:if(G=this.productions_[H[1]][1],Q.$=E[E.length-G],Q._$={first_line:h[h.length-(G||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(G||1)].first_column,last_column:h[h.length-1].last_column},le&&(Q._$.range=[h[h.length-(G||1)].range[0],h[h.length-1].range[1]]),pt=this.performAction.apply(Q,[p,Z,I,q.yy,H[1],E,h].concat(ne)),typeof pt<"u")return pt;G&&(f=f.slice(0,-1*G*2),E=E.slice(0,-1*G),h=h.slice(0,-1*G)),f.push(this.productions_[H[1]][0]),E.push(Q.$),h.push(Q._$),Tt=W[f[f.length-2]][f[f.length-1]],f.push(Tt);break;case 3:return!0}}return!0},"parse")},B=(function(){var D={EOF:1,parseError:d(function(g,f){if(this.yy.parser)this.yy.parser.parseError(g,f);else throw new Error(g)},"parseError"),setInput:d(function(y,g){return this.yy=g||this.yy||{},this._input=y,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var y=this._input[0];this.yytext+=y,this.yyleng++,this.offset++,this.match+=y,this.matched+=y;var g=y.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),y},"input"),unput:d(function(y){var g=y.length,f=y.split(/(?:\r\n?|\n)/g);this._input=y+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===m.length?this.yylloc.first_column:0)+m[m.length-f.length].length-f[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(y){this.unput(this.match.slice(y))},"less"),pastInput:d(function(){var y=this.matched.substr(0,this.matched.length-this.match.length);return(y.length>20?"...":"")+y.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var y=this.match;return y.length<20&&(y+=this._input.substr(0,20-y.length)),(y.substr(0,20)+(y.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var y=this.pastInput(),g=new Array(y.length+1).join("-");return y+this.upcomingInput()+` diff --git a/docs/dist/assets/c4Diagram-YG6GDRKO-DoDAOfmS.js b/docs/dist/assets/c4Diagram-YG6GDRKO-BNoG-4Gz.js similarity index 99% rename from docs/dist/assets/c4Diagram-YG6GDRKO-DoDAOfmS.js rename to docs/dist/assets/c4Diagram-YG6GDRKO-BNoG-4Gz.js index ec274c63..1f8f569d 100644 --- a/docs/dist/assets/c4Diagram-YG6GDRKO-DoDAOfmS.js +++ b/docs/dist/assets/c4Diagram-YG6GDRKO-BNoG-4Gz.js @@ -1,4 +1,4 @@ -import{g as Se,d as De}from"./chunk-TZMSLE5B-DET7R8sF.js";import{_ as g,s as Pe,g as Be,a as Ie,b as Me,c as Bt,d as jt,l as de,e as Le,f as Ne,h as Tt,i as ge,j as Ye,w as je,k as $t,m as fe}from"./index-BtiIqbpV.js";var Ft=(function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],y=[1,68],p=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,f="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`: +import{g as Se,d as De}from"./chunk-TZMSLE5B-Cts944Q5.js";import{_ as g,s as Pe,g as Be,a as Ie,b as Me,c as Bt,d as jt,l as de,e as Le,f as Ne,h as Tt,i as ge,j as Ye,w as je,k as $t,m as fe}from"./index-Cbm2MoYO.js";var Ft=(function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],y=[1,68],p=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,f="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`: `+D.showPosition()+` Expecting `+Yt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Zt="Parse error on line "+(Et+1)+": Unexpected "+(I==ce?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Zt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:Kt,expected:Yt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+I);switch(N[0]){case 1:v.push(I),R.push(D.yytext),h.push(D.yylloc),v.push(N[1]),I=null,oe=D.yyleng,f=D.yytext,Et=D.yylineno,Kt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},Oe&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Jt=this.performAction.apply(wt,[f,oe,Et,kt.yy,N[1],R,h].concat(Te)),typeof Jt<"u")return Jt;W&&(v=v.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),v.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ue=Dt[v[v.length-2]][v[v.length-1]],v.push(ue);break;case 3:return!0}}return!0},"parse")},Ce=(function(){var _t={EOF:1,parseError:g(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:g(function(x,m){return this.yy=m||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var m=x.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:g(function(x){var m=x.length,v=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===b.length?this.yylloc.first_column:0)+b[b.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(x){this.unput(this.match.slice(x))},"less"),pastInput:g(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var x=this.pastInput(),m=new Array(x.length+1).join("-");return x+this.upcomingInput()+` diff --git a/docs/dist/assets/channel-92COyuQS.js b/docs/dist/assets/channel-92COyuQS.js deleted file mode 100644 index 9cad66a3..00000000 --- a/docs/dist/assets/channel-92COyuQS.js +++ /dev/null @@ -1 +0,0 @@ -import{ap as o,aq as n}from"./index-BtiIqbpV.js";const t=(a,r)=>o.lang.round(n.parse(a)[r]);export{t as c}; diff --git a/docs/dist/assets/channel-Bosr5z2r.js b/docs/dist/assets/channel-Bosr5z2r.js new file mode 100644 index 00000000..ab9d9807 --- /dev/null +++ b/docs/dist/assets/channel-Bosr5z2r.js @@ -0,0 +1 @@ +import{ap as o,aq as n}from"./index-Cbm2MoYO.js";const t=(a,r)=>o.lang.round(n.parse(a)[r]);export{t as c}; diff --git a/docs/dist/assets/chunk-4BX2VUAB-DQFJwyRw.js b/docs/dist/assets/chunk-4BX2VUAB-B95fRcaE.js similarity index 70% rename from docs/dist/assets/chunk-4BX2VUAB-DQFJwyRw.js rename to docs/dist/assets/chunk-4BX2VUAB-B95fRcaE.js index 7b48a352..d1d166f9 100644 --- a/docs/dist/assets/chunk-4BX2VUAB-DQFJwyRw.js +++ b/docs/dist/assets/chunk-4BX2VUAB-B95fRcaE.js @@ -1 +1 @@ -import{_ as i}from"./index-BtiIqbpV.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p}; +import{_ as i}from"./index-Cbm2MoYO.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p}; diff --git a/docs/dist/assets/chunk-55IACEB6-k1CzMQx-.js b/docs/dist/assets/chunk-55IACEB6-DLzn1p-J.js similarity index 71% rename from docs/dist/assets/chunk-55IACEB6-k1CzMQx-.js rename to docs/dist/assets/chunk-55IACEB6-DLzn1p-J.js index 28820b4d..b9ca64ae 100644 --- a/docs/dist/assets/chunk-55IACEB6-k1CzMQx-.js +++ b/docs/dist/assets/chunk-55IACEB6-DLzn1p-J.js @@ -1 +1 @@ -import{_ as a,d as o}from"./index-BtiIqbpV.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g}; +import{_ as a,d as o}from"./index-Cbm2MoYO.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g}; diff --git a/docs/dist/assets/chunk-B4BG7PRW-BM5l_f1F.js b/docs/dist/assets/chunk-B4BG7PRW-Di5rbL9q.js similarity index 99% rename from docs/dist/assets/chunk-B4BG7PRW-BM5l_f1F.js rename to docs/dist/assets/chunk-B4BG7PRW-Di5rbL9q.js index 2b3f7d85..87b9b42e 100644 --- a/docs/dist/assets/chunk-B4BG7PRW-BM5l_f1F.js +++ b/docs/dist/assets/chunk-B4BG7PRW-Di5rbL9q.js @@ -1,4 +1,4 @@ -import{g as et}from"./chunk-FMBD7UC4-mpZRA3cF.js";import{g as tt}from"./chunk-55IACEB6-k1CzMQx-.js";import{s as st}from"./chunk-QN33PNHL-Ee1tIsWT.js";import{_ as A,l as Oe,c as D,o as it,r as at,u as we,d as ee,b as nt,a as rt,s as ut,g as lt,p as ot,q as ct,k as v,y as ht,x as dt,i as pt,Q as R}from"./index-BtiIqbpV.js";var Ve=(function(){var s=A(function(I,o,c,d){for(c=c||{},d=I.length;d--;c[I[d]]=o);return c},"o"),i=[1,18],a=[1,19],u=[1,20],l=[1,41],n=[1,42],p=[1,26],f=[1,24],C=[1,25],B=[1,32],L=[1,33],Ae=[1,34],m=[1,45],fe=[1,35],ge=[1,36],Ce=[1,37],me=[1,38],be=[1,27],Ee=[1,28],ye=[1,29],Te=[1,30],ke=[1,31],b=[1,44],E=[1,46],y=[1,43],T=[1,47],De=[1,9],h=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],ne=[1,62],Fe=[1,63],Be=[1,64],z=[1,8,9,41],Pe=[1,76],P=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],re=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ue=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Me=[13,60,68,69,70,71,72,86,100,102,103],_e=[1,100],Y=[1,117],Q=[1,113],W=[1,109],j=[1,115],X=[1,110],q=[1,111],H=[1,112],J=[1,114],Z=[1,116],Re=[22,48,60,61,82,86,87,88,89,90],Se=[1,8,9,39,41,44],le=[1,8,9,22],Ge=[1,145],Ue=[1,8,9,61],N=[1,8,9,22,48,60,61,82,86,87,88,89,90],Ne={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:A(function(o,c,d,r,g,e,$){var t=e.length-1;switch(g){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:r.addRelation(e[t]);break;case 20:e[t-1].title=r.cleanupLabel(e[t]),r.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(e[t-3],e[t-1]);break;case 35:r.addClassesToNamespace(e[t-4],e[t-1]);break;case 36:this.$=e[t],r.addNamespace(e[t]);break;case 37:this.$=[e[t]];break;case 38:this.$=[e[t-1]];break;case 39:e[t].unshift(e[t-2]),this.$=e[t];break;case 41:r.setCssClass(e[t-2],e[t]);break;case 42:r.addMembers(e[t-3],e[t-1]);break;case 44:r.setCssClass(e[t-5],e[t-3]),r.addMembers(e[t-5],e[t-1]);break;case 45:this.$=e[t],r.addClass(e[t]);break;case 46:this.$=e[t-1],r.addClass(e[t-1]),r.setClassLabel(e[t-1],e[t]);break;case 50:r.addAnnotation(e[t],e[t-2]);break;case 51:case 64:this.$=[e[t]];break;case 52:e[t].push(e[t-1]),this.$=e[t];break;case 53:break;case 54:r.addMember(e[t-1],r.cleanupLabel(e[t]));break;case 55:break;case 56:break;case 57:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 59:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 60:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 61:r.addNote(e[t],e[t-1]);break;case 62:r.addNote(e[t]);break;case 63:this.$=e[t-2],r.defineClass(e[t-1],e[t]);break;case 65:this.$=e[t-2].concat([e[t]]);break;case 66:r.setDirection("TB");break;case 67:r.setDirection("BT");break;case 68:r.setDirection("RL");break;case 69:r.setDirection("LR");break;case 70:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 71:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 72:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 73:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 74:this.$=r.relationType.AGGREGATION;break;case 75:this.$=r.relationType.EXTENSION;break;case 76:this.$=r.relationType.COMPOSITION;break;case 77:this.$=r.relationType.DEPENDENCY;break;case 78:this.$=r.relationType.LOLLIPOP;break;case 79:this.$=r.lineType.LINE;break;case 80:this.$=r.lineType.DOTTED_LINE;break;case 81:case 87:this.$=e[t-2],r.setClickEvent(e[t-1],e[t]);break;case 82:case 88:this.$=e[t-3],r.setClickEvent(e[t-2],e[t-1]),r.setTooltip(e[t-2],e[t]);break;case 83:this.$=e[t-2],r.setLink(e[t-1],e[t]);break;case 84:this.$=e[t-3],r.setLink(e[t-2],e[t-1],e[t]);break;case 85:this.$=e[t-3],r.setLink(e[t-2],e[t-1]),r.setTooltip(e[t-2],e[t]);break;case 86:this.$=e[t-4],r.setLink(e[t-3],e[t-2],e[t]),r.setTooltip(e[t-3],e[t-1]);break;case 89:this.$=e[t-3],r.setClickEvent(e[t-2],e[t-1],e[t]);break;case 90:this.$=e[t-4],r.setClickEvent(e[t-3],e[t-2],e[t-1]),r.setTooltip(e[t-3],e[t]);break;case 91:this.$=e[t-3],r.setLink(e[t-2],e[t]);break;case 92:this.$=e[t-4],r.setLink(e[t-3],e[t-1],e[t]);break;case 93:this.$=e[t-4],r.setLink(e[t-3],e[t-1]),r.setTooltip(e[t-3],e[t]);break;case 94:this.$=e[t-5],r.setLink(e[t-4],e[t-2],e[t]),r.setTooltip(e[t-4],e[t-1]);break;case 95:this.$=e[t-2],r.setCssStyle(e[t-1],e[t]);break;case 96:r.setCssClass(e[t-1],e[t]);break;case 97:this.$=[e[t]];break;case 98:e[t-2].push(e[t]),this.$=e[t-2];break;case 100:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:u,38:22,42:l,43:23,46:n,49:p,51:f,52:C,54:B,56:L,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:Te,83:ke,86:b,100:E,102:y,103:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(De,[2,5],{8:[1,48]}),{8:[1,49]},s(h,[2,19],{22:[1,50]}),s(h,[2,21]),s(h,[2,22]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),{34:[1,51]},{36:[1,52]},s(h,[2,33]),s(h,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:ne,73:Fe,74:Be}),{39:[1,65]},s(z,[2,40],{39:[1,67],44:[1,66]}),s(h,[2,55]),s(h,[2,56]),{16:68,60:m,86:b,100:E,102:y},{16:39,17:40,19:69,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:70,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:71,60:m,86:b,100:E,102:y,103:T},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:m,86:b,100:E,102:y,103:T},{13:Pe,55:75},{58:77,60:[1,78]},s(h,[2,66]),s(h,[2,67]),s(h,[2,68]),s(h,[2,69]),s(P,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:m,86:b,100:E,102:y,103:T}),s(P,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:86,60:m,86:b,100:E,102:y,103:T},s(re,[2,123]),s(re,[2,124]),s(re,[2,125]),s(re,[2,126]),s([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),s(De,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:a,37:u,42:l,46:n,49:p,51:f,52:C,54:B,56:L,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:Te,83:ke,86:b,100:E,102:y,103:T}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:u,38:22,42:l,43:23,46:n,49:p,51:f,52:C,54:B,56:L,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:Te,83:ke,86:b,100:E,102:y,103:T},s(h,[2,20]),s(h,[2,31]),s(h,[2,32]),{13:[1,90],16:39,17:40,19:89,60:m,86:b,100:E,102:y,103:T},{53:91,66:56,67:57,68:te,69:se,70:ie,71:ae,72:ne,73:Fe,74:Be},s(h,[2,54]),{67:92,73:Fe,74:Be},s(ue,[2,73],{66:93,68:te,69:se,70:ie,71:ae,72:ne}),s(K,[2,74]),s(K,[2,75]),s(K,[2,76]),s(K,[2,77]),s(K,[2,78]),s(Me,[2,79]),s(Me,[2,80]),{8:[1,95],24:96,40:94,43:23,46:n},{16:97,60:m,86:b,100:E,102:y},{41:[1,99],45:98,51:_e},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:Y,48:Q,59:106,60:W,82:j,84:107,85:108,86:X,87:q,88:H,89:J,90:Z},{60:[1,118]},{13:Pe,55:119},s(h,[2,62]),s(h,[2,128]),{22:Y,48:Q,59:120,60:W,61:[1,121],82:j,84:107,85:108,86:X,87:q,88:H,89:J,90:Z},s(Re,[2,64]),{16:39,17:40,19:122,60:m,86:b,100:E,102:y,103:T},s(P,[2,16]),s(P,[2,17]),s(P,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:m,86:b,100:E,102:y,103:T},{39:[2,10]},s(Se,[2,45],{11:125,12:[1,126]}),s(De,[2,7]),{9:[1,127]},s(le,[2,57]),{16:39,17:40,19:128,60:m,86:b,100:E,102:y,103:T},{13:[1,130],16:39,17:40,19:129,60:m,86:b,100:E,102:y,103:T},s(ue,[2,72],{66:131,68:te,69:se,70:ie,71:ae,72:ne}),s(ue,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:n},{8:[1,134],41:[2,37]},s(z,[2,41],{39:[1,135]}),{41:[1,136]},s(z,[2,43]),{41:[2,51],45:137,51:_e},{16:39,17:40,19:138,60:m,86:b,100:E,102:y,103:T},s(h,[2,81],{13:[1,139]}),s(h,[2,83],{13:[1,141],77:[1,140]}),s(h,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},s(h,[2,95],{61:Ge}),s(Ue,[2,97],{85:146,22:Y,48:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(N,[2,99]),s(N,[2,101]),s(N,[2,102]),s(N,[2,103]),s(N,[2,104]),s(N,[2,105]),s(N,[2,106]),s(N,[2,107]),s(N,[2,108]),s(N,[2,109]),s(h,[2,96]),s(h,[2,61]),s(h,[2,63],{61:Ge}),{60:[1,147]},s(P,[2,14]),{15:148,16:84,17:85,60:m,86:b,100:E,102:y,103:T},{39:[2,12]},s(Se,[2,46]),{13:[1,149]},{1:[2,4]},s(le,[2,59]),s(le,[2,58]),{16:39,17:40,19:150,60:m,86:b,100:E,102:y,103:T},s(ue,[2,70]),s(h,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:n},{45:153,51:_e},s(z,[2,42]),{41:[2,52]},s(h,[2,50]),s(h,[2,82]),s(h,[2,84]),s(h,[2,85],{77:[1,154]}),s(h,[2,88]),s(h,[2,89],{13:[1,155]}),s(h,[2,91],{13:[1,157],77:[1,156]}),{22:Y,48:Q,60:W,82:j,84:158,85:108,86:X,87:q,88:H,89:J,90:Z},s(N,[2,100]),s(Re,[2,65]),{39:[2,11]},{14:[1,159]},s(le,[2,60]),s(h,[2,35]),{41:[2,39]},{41:[1,160]},s(h,[2,86]),s(h,[2,90]),s(h,[2,92]),s(h,[2,93],{77:[1,161]}),s(Ue,[2,98],{85:146,22:Y,48:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(Se,[2,8]),s(z,[2,44]),s(h,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:A(function(o,c){if(c.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=c,d}},"parseError"),parse:A(function(o){var c=this,d=[0],r=[],g=[null],e=[],$=this.table,t="",ce=0,ze=0,He=2,Ke=1,Je=e.slice.call(arguments,1),k=Object.create(this.lexer),O={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(O.yy[Le]=this.yy[Le]);k.setInput(o,O.yy),O.yy.lexer=k,O.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var xe=k.yylloc;e.push(xe);var Ze=k.options&&k.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $e(_){d.length=d.length-2*_,g.length=g.length-_,e.length=e.length-_}A($e,"popStack");function Ye(){var _;return _=r.pop()||k.lex()||Ke,typeof _!="number"&&(_ instanceof Array&&(r=_,_=r.pop()),_=c.symbols_[_]||_),_}A(Ye,"lex");for(var F,w,S,ve,M={},he,x,Qe,de;;){if(w=d[d.length-1],this.defaultActions[w]?S=this.defaultActions[w]:((F===null||typeof F>"u")&&(F=Ye()),S=$[w]&&$[w][F]),typeof S>"u"||!S.length||!S[0]){var Ie="";de=[];for(he in $[w])this.terminals_[he]&&he>He&&de.push("'"+this.terminals_[he]+"'");k.showPosition?Ie="Parse error on line "+(ce+1)+`: +import{g as et}from"./chunk-FMBD7UC4-D1HxKLa4.js";import{g as tt}from"./chunk-55IACEB6-DLzn1p-J.js";import{s as st}from"./chunk-QN33PNHL-DLlZQk9s.js";import{_ as A,l as Oe,c as D,o as it,r as at,u as we,d as ee,b as nt,a as rt,s as ut,g as lt,p as ot,q as ct,k as v,y as ht,x as dt,i as pt,Q as R}from"./index-Cbm2MoYO.js";var Ve=(function(){var s=A(function(I,o,c,d){for(c=c||{},d=I.length;d--;c[I[d]]=o);return c},"o"),i=[1,18],a=[1,19],u=[1,20],l=[1,41],n=[1,42],p=[1,26],f=[1,24],C=[1,25],B=[1,32],L=[1,33],Ae=[1,34],m=[1,45],fe=[1,35],ge=[1,36],Ce=[1,37],me=[1,38],be=[1,27],Ee=[1,28],ye=[1,29],Te=[1,30],ke=[1,31],b=[1,44],E=[1,46],y=[1,43],T=[1,47],De=[1,9],h=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],ne=[1,62],Fe=[1,63],Be=[1,64],z=[1,8,9,41],Pe=[1,76],P=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],re=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ue=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Me=[13,60,68,69,70,71,72,86,100,102,103],_e=[1,100],Y=[1,117],Q=[1,113],W=[1,109],j=[1,115],X=[1,110],q=[1,111],H=[1,112],J=[1,114],Z=[1,116],Re=[22,48,60,61,82,86,87,88,89,90],Se=[1,8,9,39,41,44],le=[1,8,9,22],Ge=[1,145],Ue=[1,8,9,61],N=[1,8,9,22,48,60,61,82,86,87,88,89,90],Ne={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:A(function(o,c,d,r,g,e,$){var t=e.length-1;switch(g){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:r.addRelation(e[t]);break;case 20:e[t-1].title=r.cleanupLabel(e[t]),r.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),r.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),r.setAccDescription(this.$);break;case 34:r.addClassesToNamespace(e[t-3],e[t-1]);break;case 35:r.addClassesToNamespace(e[t-4],e[t-1]);break;case 36:this.$=e[t],r.addNamespace(e[t]);break;case 37:this.$=[e[t]];break;case 38:this.$=[e[t-1]];break;case 39:e[t].unshift(e[t-2]),this.$=e[t];break;case 41:r.setCssClass(e[t-2],e[t]);break;case 42:r.addMembers(e[t-3],e[t-1]);break;case 44:r.setCssClass(e[t-5],e[t-3]),r.addMembers(e[t-5],e[t-1]);break;case 45:this.$=e[t],r.addClass(e[t]);break;case 46:this.$=e[t-1],r.addClass(e[t-1]),r.setClassLabel(e[t-1],e[t]);break;case 50:r.addAnnotation(e[t],e[t-2]);break;case 51:case 64:this.$=[e[t]];break;case 52:e[t].push(e[t-1]),this.$=e[t];break;case 53:break;case 54:r.addMember(e[t-1],r.cleanupLabel(e[t]));break;case 55:break;case 56:break;case 57:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 59:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 60:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 61:r.addNote(e[t],e[t-1]);break;case 62:r.addNote(e[t]);break;case 63:this.$=e[t-2],r.defineClass(e[t-1],e[t]);break;case 65:this.$=e[t-2].concat([e[t]]);break;case 66:r.setDirection("TB");break;case 67:r.setDirection("BT");break;case 68:r.setDirection("RL");break;case 69:r.setDirection("LR");break;case 70:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 71:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 72:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 73:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 74:this.$=r.relationType.AGGREGATION;break;case 75:this.$=r.relationType.EXTENSION;break;case 76:this.$=r.relationType.COMPOSITION;break;case 77:this.$=r.relationType.DEPENDENCY;break;case 78:this.$=r.relationType.LOLLIPOP;break;case 79:this.$=r.lineType.LINE;break;case 80:this.$=r.lineType.DOTTED_LINE;break;case 81:case 87:this.$=e[t-2],r.setClickEvent(e[t-1],e[t]);break;case 82:case 88:this.$=e[t-3],r.setClickEvent(e[t-2],e[t-1]),r.setTooltip(e[t-2],e[t]);break;case 83:this.$=e[t-2],r.setLink(e[t-1],e[t]);break;case 84:this.$=e[t-3],r.setLink(e[t-2],e[t-1],e[t]);break;case 85:this.$=e[t-3],r.setLink(e[t-2],e[t-1]),r.setTooltip(e[t-2],e[t]);break;case 86:this.$=e[t-4],r.setLink(e[t-3],e[t-2],e[t]),r.setTooltip(e[t-3],e[t-1]);break;case 89:this.$=e[t-3],r.setClickEvent(e[t-2],e[t-1],e[t]);break;case 90:this.$=e[t-4],r.setClickEvent(e[t-3],e[t-2],e[t-1]),r.setTooltip(e[t-3],e[t]);break;case 91:this.$=e[t-3],r.setLink(e[t-2],e[t]);break;case 92:this.$=e[t-4],r.setLink(e[t-3],e[t-1],e[t]);break;case 93:this.$=e[t-4],r.setLink(e[t-3],e[t-1]),r.setTooltip(e[t-3],e[t]);break;case 94:this.$=e[t-5],r.setLink(e[t-4],e[t-2],e[t]),r.setTooltip(e[t-4],e[t-1]);break;case 95:this.$=e[t-2],r.setCssStyle(e[t-1],e[t]);break;case 96:r.setCssClass(e[t-1],e[t]);break;case 97:this.$=[e[t]];break;case 98:e[t-2].push(e[t]),this.$=e[t-2];break;case 100:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:u,38:22,42:l,43:23,46:n,49:p,51:f,52:C,54:B,56:L,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:Te,83:ke,86:b,100:E,102:y,103:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(De,[2,5],{8:[1,48]}),{8:[1,49]},s(h,[2,19],{22:[1,50]}),s(h,[2,21]),s(h,[2,22]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),{34:[1,51]},{36:[1,52]},s(h,[2,33]),s(h,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:ne,73:Fe,74:Be}),{39:[1,65]},s(z,[2,40],{39:[1,67],44:[1,66]}),s(h,[2,55]),s(h,[2,56]),{16:68,60:m,86:b,100:E,102:y},{16:39,17:40,19:69,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:70,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:71,60:m,86:b,100:E,102:y,103:T},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:m,86:b,100:E,102:y,103:T},{13:Pe,55:75},{58:77,60:[1,78]},s(h,[2,66]),s(h,[2,67]),s(h,[2,68]),s(h,[2,69]),s(P,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:m,86:b,100:E,102:y,103:T}),s(P,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:86,60:m,86:b,100:E,102:y,103:T},s(re,[2,123]),s(re,[2,124]),s(re,[2,125]),s(re,[2,126]),s([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),s(De,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:a,37:u,42:l,46:n,49:p,51:f,52:C,54:B,56:L,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:Te,83:ke,86:b,100:E,102:y,103:T}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:u,38:22,42:l,43:23,46:n,49:p,51:f,52:C,54:B,56:L,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:Te,83:ke,86:b,100:E,102:y,103:T},s(h,[2,20]),s(h,[2,31]),s(h,[2,32]),{13:[1,90],16:39,17:40,19:89,60:m,86:b,100:E,102:y,103:T},{53:91,66:56,67:57,68:te,69:se,70:ie,71:ae,72:ne,73:Fe,74:Be},s(h,[2,54]),{67:92,73:Fe,74:Be},s(ue,[2,73],{66:93,68:te,69:se,70:ie,71:ae,72:ne}),s(K,[2,74]),s(K,[2,75]),s(K,[2,76]),s(K,[2,77]),s(K,[2,78]),s(Me,[2,79]),s(Me,[2,80]),{8:[1,95],24:96,40:94,43:23,46:n},{16:97,60:m,86:b,100:E,102:y},{41:[1,99],45:98,51:_e},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:Y,48:Q,59:106,60:W,82:j,84:107,85:108,86:X,87:q,88:H,89:J,90:Z},{60:[1,118]},{13:Pe,55:119},s(h,[2,62]),s(h,[2,128]),{22:Y,48:Q,59:120,60:W,61:[1,121],82:j,84:107,85:108,86:X,87:q,88:H,89:J,90:Z},s(Re,[2,64]),{16:39,17:40,19:122,60:m,86:b,100:E,102:y,103:T},s(P,[2,16]),s(P,[2,17]),s(P,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:m,86:b,100:E,102:y,103:T},{39:[2,10]},s(Se,[2,45],{11:125,12:[1,126]}),s(De,[2,7]),{9:[1,127]},s(le,[2,57]),{16:39,17:40,19:128,60:m,86:b,100:E,102:y,103:T},{13:[1,130],16:39,17:40,19:129,60:m,86:b,100:E,102:y,103:T},s(ue,[2,72],{66:131,68:te,69:se,70:ie,71:ae,72:ne}),s(ue,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:n},{8:[1,134],41:[2,37]},s(z,[2,41],{39:[1,135]}),{41:[1,136]},s(z,[2,43]),{41:[2,51],45:137,51:_e},{16:39,17:40,19:138,60:m,86:b,100:E,102:y,103:T},s(h,[2,81],{13:[1,139]}),s(h,[2,83],{13:[1,141],77:[1,140]}),s(h,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},s(h,[2,95],{61:Ge}),s(Ue,[2,97],{85:146,22:Y,48:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(N,[2,99]),s(N,[2,101]),s(N,[2,102]),s(N,[2,103]),s(N,[2,104]),s(N,[2,105]),s(N,[2,106]),s(N,[2,107]),s(N,[2,108]),s(N,[2,109]),s(h,[2,96]),s(h,[2,61]),s(h,[2,63],{61:Ge}),{60:[1,147]},s(P,[2,14]),{15:148,16:84,17:85,60:m,86:b,100:E,102:y,103:T},{39:[2,12]},s(Se,[2,46]),{13:[1,149]},{1:[2,4]},s(le,[2,59]),s(le,[2,58]),{16:39,17:40,19:150,60:m,86:b,100:E,102:y,103:T},s(ue,[2,70]),s(h,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:n},{45:153,51:_e},s(z,[2,42]),{41:[2,52]},s(h,[2,50]),s(h,[2,82]),s(h,[2,84]),s(h,[2,85],{77:[1,154]}),s(h,[2,88]),s(h,[2,89],{13:[1,155]}),s(h,[2,91],{13:[1,157],77:[1,156]}),{22:Y,48:Q,60:W,82:j,84:158,85:108,86:X,87:q,88:H,89:J,90:Z},s(N,[2,100]),s(Re,[2,65]),{39:[2,11]},{14:[1,159]},s(le,[2,60]),s(h,[2,35]),{41:[2,39]},{41:[1,160]},s(h,[2,86]),s(h,[2,90]),s(h,[2,92]),s(h,[2,93],{77:[1,161]}),s(Ue,[2,98],{85:146,22:Y,48:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(Se,[2,8]),s(z,[2,44]),s(h,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:A(function(o,c){if(c.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=c,d}},"parseError"),parse:A(function(o){var c=this,d=[0],r=[],g=[null],e=[],$=this.table,t="",ce=0,ze=0,He=2,Ke=1,Je=e.slice.call(arguments,1),k=Object.create(this.lexer),O={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(O.yy[Le]=this.yy[Le]);k.setInput(o,O.yy),O.yy.lexer=k,O.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var xe=k.yylloc;e.push(xe);var Ze=k.options&&k.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $e(_){d.length=d.length-2*_,g.length=g.length-_,e.length=e.length-_}A($e,"popStack");function Ye(){var _;return _=r.pop()||k.lex()||Ke,typeof _!="number"&&(_ instanceof Array&&(r=_,_=r.pop()),_=c.symbols_[_]||_),_}A(Ye,"lex");for(var F,w,S,ve,M={},he,x,Qe,de;;){if(w=d[d.length-1],this.defaultActions[w]?S=this.defaultActions[w]:((F===null||typeof F>"u")&&(F=Ye()),S=$[w]&&$[w][F]),typeof S>"u"||!S.length||!S[0]){var Ie="";de=[];for(he in $[w])this.terminals_[he]&&he>He&&de.push("'"+this.terminals_[he]+"'");k.showPosition?Ie="Parse error on line "+(ce+1)+`: `+k.showPosition()+` Expecting `+de.join(", ")+", got '"+(this.terminals_[F]||F)+"'":Ie="Parse error on line "+(ce+1)+": Unexpected "+(F==Ke?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(Ie,{text:k.match,token:this.terminals_[F]||F,line:k.yylineno,loc:xe,expected:de})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+F);switch(S[0]){case 1:d.push(F),g.push(k.yytext),e.push(k.yylloc),d.push(S[1]),F=null,ze=k.yyleng,t=k.yytext,ce=k.yylineno,xe=k.yylloc;break;case 2:if(x=this.productions_[S[1]][1],M.$=g[g.length-x],M._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},Ze&&(M._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),ve=this.performAction.apply(M,[t,ze,ce,O.yy,S[1],g,e].concat(Je)),typeof ve<"u")return ve;x&&(d=d.slice(0,-1*x*2),g=g.slice(0,-1*x),e=e.slice(0,-1*x)),d.push(this.productions_[S[1]][0]),g.push(M.$),e.push(M._$),Qe=$[d[d.length-2]][d[d.length-1]],d.push(Qe);break;case 3:return!0}}return!0},"parse")},qe=(function(){var I={EOF:1,parseError:A(function(c,d){if(this.yy.parser)this.yy.parser.parseError(c,d);else throw new Error(c)},"parseError"),setInput:A(function(o,c){return this.yy=c||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:A(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:A(function(o){var c=o.length,d=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===r.length?this.yylloc.first_column:0)+r[r.length-d.length].length-d[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:A(function(){return this._more=!0,this},"more"),reject:A(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:A(function(o){this.unput(this.match.slice(o))},"less"),pastInput:A(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:A(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:A(function(){var o=this.pastInput(),c=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/docs/dist/assets/chunk-DI55MBZ5-J7umTVjb.js b/docs/dist/assets/chunk-DI55MBZ5-DrHaHgYN.js similarity index 99% rename from docs/dist/assets/chunk-DI55MBZ5-J7umTVjb.js rename to docs/dist/assets/chunk-DI55MBZ5-DrHaHgYN.js index e92388e0..43ea2f33 100644 --- a/docs/dist/assets/chunk-DI55MBZ5-J7umTVjb.js +++ b/docs/dist/assets/chunk-DI55MBZ5-DrHaHgYN.js @@ -1,4 +1,4 @@ -import{g as te}from"./chunk-55IACEB6-k1CzMQx-.js";import{s as ee}from"./chunk-QN33PNHL-Ee1tIsWT.js";import{_ as u,l as b,c as w,r as se,u as ie,a as re,b as ae,g as ne,s as oe,p as le,q as ce,T as he,k as U,y as ue}from"./index-BtiIqbpV.js";var vt=(function(){var t=u(function(Y,o,c,n){for(c=c||{},n=Y.length;n--;c[Y[n]]=o);return c},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],h=[1,9],d=[1,11],S=[1,16],f=[1,17],T=[1,18],_=[1,19],m=[1,33],A=[1,20],v=[1,21],p=[1,22],k=[1,23],R=[1,24],L=[1,26],$=[1,27],I=[1,28],P=[1,29],st=[1,30],it=[1,31],rt=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],H=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:u(function(o,c,n,g,E,i,J){var l=i.length-1;switch(E){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const q=i[l-1];q.description=g.trimColon(i[l]),this.$=q;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Tt=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var B=i[l],W=i[l-2].trim();if(i[l].match(":")){var ut=i[l].split(":");B=ut[0],W=[W,ut[1]]}this.$={stmt:"state",id:B,type:"default",description:W};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:T,22:_,24:m,25:A,26:v,27:p,28:k,29:R,32:25,33:L,35:$,37:I,38:P,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:f,19:T,22:_,24:m,25:A,26:v,27:p,28:k,29:R,32:25,33:L,35:$,37:I,38:P,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:m,57:H},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ct,[2,44],{58:[1,56]}),t(ct,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:m,57:H},t(y,[2,17]),t(xt,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:h,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:T,21:[1,72],22:_,24:m,25:A,26:v,27:p,28:k,29:R,32:25,33:L,35:$,37:I,38:P,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(ct,[2,46]),t(ct,[2,47]),t(y,[2,15]),t(y,[2,19]),t(xt,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:h,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:T,21:[1,81],22:_,24:m,25:A,26:v,27:p,28:k,29:R,32:25,33:L,35:$,37:I,38:P,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:u(function(o,c){if(c.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=c,n}},"parseError"),parse:u(function(o){var c=this,n=[0],g=[],E=[null],i=[],J=this.table,l="",B=0,W=0,ut=2,q=1,Tt=i.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(V.yy[Et]=this.yy[Et]);D.setInput(o,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var _t=D.yylloc;i.push(_t);var Qt=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(O){n.length=n.length-2*O,E.length=E.length-O,i.length=i.length-O}u(Zt,"popStack");function Lt(){var O;return O=g.pop()||D.lex()||q,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=c.symbols_[O]||O),O}u(Lt,"lex");for(var x,M,N,mt,z={},dt,F,It,ft;;){if(M=n[n.length-1],this.defaultActions[M]?N=this.defaultActions[M]:((x===null||typeof x>"u")&&(x=Lt()),N=J[M]&&J[M][x]),typeof N>"u"||!N.length||!N[0]){var bt="";ft=[];for(dt in J[M])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");D.showPosition?bt="Parse error on line "+(B+1)+`: +import{g as te}from"./chunk-55IACEB6-DLzn1p-J.js";import{s as ee}from"./chunk-QN33PNHL-DLlZQk9s.js";import{_ as u,l as b,c as w,r as se,u as ie,a as re,b as ae,g as ne,s as oe,p as le,q as ce,T as he,k as U,y as ue}from"./index-Cbm2MoYO.js";var vt=(function(){var t=u(function(Y,o,c,n){for(c=c||{},n=Y.length;n--;c[Y[n]]=o);return c},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],h=[1,9],d=[1,11],S=[1,16],f=[1,17],T=[1,18],_=[1,19],m=[1,33],A=[1,20],v=[1,21],p=[1,22],k=[1,23],R=[1,24],L=[1,26],$=[1,27],I=[1,28],P=[1,29],st=[1,30],it=[1,31],rt=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],H=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:u(function(o,c,n,g,E,i,J){var l=i.length-1;switch(E){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const q=i[l-1];q.description=g.trimColon(i[l]),this.$=q;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Tt=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var B=i[l],W=i[l-2].trim();if(i[l].match(":")){var ut=i[l].split(":");B=ut[0],W=[W,ut[1]]}this.$={stmt:"state",id:B,type:"default",description:W};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:h,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:T,22:_,24:m,25:A,26:v,27:p,28:k,29:R,32:25,33:L,35:$,37:I,38:P,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:f,19:T,22:_,24:m,25:A,26:v,27:p,28:k,29:R,32:25,33:L,35:$,37:I,38:P,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:m,57:H},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ct,[2,44],{58:[1,56]}),t(ct,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:m,57:H},t(y,[2,17]),t(xt,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:h,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:T,21:[1,72],22:_,24:m,25:A,26:v,27:p,28:k,29:R,32:25,33:L,35:$,37:I,38:P,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(ct,[2,46]),t(ct,[2,47]),t(y,[2,15]),t(y,[2,19]),t(xt,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:h,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:f,19:T,21:[1,81],22:_,24:m,25:A,26:v,27:p,28:k,29:R,32:25,33:L,35:$,37:I,38:P,41:st,45:it,48:rt,51:at,52:nt,53:ot,54:lt,57:H},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:u(function(o,c){if(c.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=c,n}},"parseError"),parse:u(function(o){var c=this,n=[0],g=[],E=[null],i=[],J=this.table,l="",B=0,W=0,ut=2,q=1,Tt=i.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(V.yy[Et]=this.yy[Et]);D.setInput(o,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var _t=D.yylloc;i.push(_t);var Qt=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(O){n.length=n.length-2*O,E.length=E.length-O,i.length=i.length-O}u(Zt,"popStack");function Lt(){var O;return O=g.pop()||D.lex()||q,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=c.symbols_[O]||O),O}u(Lt,"lex");for(var x,M,N,mt,z={},dt,F,It,ft;;){if(M=n[n.length-1],this.defaultActions[M]?N=this.defaultActions[M]:((x===null||typeof x>"u")&&(x=Lt()),N=J[M]&&J[M][x]),typeof N>"u"||!N.length||!N[0]){var bt="";ft=[];for(dt in J[M])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");D.showPosition?bt="Parse error on line "+(B+1)+`: `+D.showPosition()+` Expecting `+ft.join(", ")+", got '"+(this.terminals_[x]||x)+"'":bt="Parse error on line "+(B+1)+": Unexpected "+(x==q?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(bt,{text:D.match,token:this.terminals_[x]||x,line:D.yylineno,loc:_t,expected:ft})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+x);switch(N[0]){case 1:n.push(x),E.push(D.yytext),i.push(D.yylloc),n.push(N[1]),x=null,W=D.yyleng,l=D.yytext,B=D.yylineno,_t=D.yylloc;break;case 2:if(F=this.productions_[N[1]][1],z.$=E[E.length-F],z._$={first_line:i[i.length-(F||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(F||1)].first_column,last_column:i[i.length-1].last_column},Qt&&(z._$.range=[i[i.length-(F||1)].range[0],i[i.length-1].range[1]]),mt=this.performAction.apply(z,[l,W,B,V.yy,N[1],E,i].concat(Tt)),typeof mt<"u")return mt;F&&(n=n.slice(0,-1*F*2),E=E.slice(0,-1*F),i=i.slice(0,-1*F)),n.push(this.productions_[N[1]][0]),E.push(z.$),i.push(z._$),It=J[n[n.length-2]][n[n.length-1]],n.push(It);break;case 3:return!0}}return!0},"parse")},qt=(function(){var Y={EOF:1,parseError:u(function(c,n){if(this.yy.parser)this.yy.parser.parseError(c,n);else throw new Error(c)},"parseError"),setInput:u(function(o,c){return this.yy=c||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:u(function(o){var c=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===g.length?this.yylloc.first_column:0)+g[g.length-n.length].length-n[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(o){this.unput(this.match.slice(o))},"less"),pastInput:u(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var o=this.pastInput(),c=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/docs/dist/assets/chunk-FMBD7UC4-mpZRA3cF.js b/docs/dist/assets/chunk-FMBD7UC4-D1HxKLa4.js similarity index 84% rename from docs/dist/assets/chunk-FMBD7UC4-mpZRA3cF.js rename to docs/dist/assets/chunk-FMBD7UC4-D1HxKLa4.js index 72108106..3a482db5 100644 --- a/docs/dist/assets/chunk-FMBD7UC4-mpZRA3cF.js +++ b/docs/dist/assets/chunk-FMBD7UC4-D1HxKLa4.js @@ -1,4 +1,4 @@ -import{_ as e}from"./index-BtiIqbpV.js";var l=e(()=>` +import{_ as e}from"./index-Cbm2MoYO.js";var l=e(()=>` /* Font Awesome icon styling - consolidated */ .label-icon { display: inline-block; diff --git a/docs/dist/assets/chunk-QN33PNHL-Ee1tIsWT.js b/docs/dist/assets/chunk-QN33PNHL-DLlZQk9s.js similarity index 87% rename from docs/dist/assets/chunk-QN33PNHL-Ee1tIsWT.js rename to docs/dist/assets/chunk-QN33PNHL-DLlZQk9s.js index 80601928..0ae8a957 100644 --- a/docs/dist/assets/chunk-QN33PNHL-Ee1tIsWT.js +++ b/docs/dist/assets/chunk-QN33PNHL-DLlZQk9s.js @@ -1 +1 @@ -import{_ as a,e as w,l as x}from"./index-BtiIqbpV.js";var d=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=l(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{d as s}; +import{_ as a,e as w,l as x}from"./index-Cbm2MoYO.js";var d=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=l(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{d as s}; diff --git a/docs/dist/assets/chunk-QZHKN3VN-DPxP3j_u.js b/docs/dist/assets/chunk-QZHKN3VN-D4v8tIvn.js similarity index 65% rename from docs/dist/assets/chunk-QZHKN3VN-DPxP3j_u.js rename to docs/dist/assets/chunk-QZHKN3VN-D4v8tIvn.js index 9f86a4e8..ab7224f4 100644 --- a/docs/dist/assets/chunk-QZHKN3VN-DPxP3j_u.js +++ b/docs/dist/assets/chunk-QZHKN3VN-D4v8tIvn.js @@ -1 +1 @@ -import{_ as s}from"./index-BtiIqbpV.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I}; +import{_ as s}from"./index-Cbm2MoYO.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I}; diff --git a/docs/dist/assets/chunk-TZMSLE5B-DET7R8sF.js b/docs/dist/assets/chunk-TZMSLE5B-Cts944Q5.js similarity index 95% rename from docs/dist/assets/chunk-TZMSLE5B-DET7R8sF.js rename to docs/dist/assets/chunk-TZMSLE5B-Cts944Q5.js index b9b96629..e002cfdc 100644 --- a/docs/dist/assets/chunk-TZMSLE5B-DET7R8sF.js +++ b/docs/dist/assets/chunk-TZMSLE5B-Cts944Q5.js @@ -1 +1 @@ -import{_ as n,U as o,j as l}from"./index-BtiIqbpV.js";var x=n((s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(s,e).lower()},"drawBackgroundRect"),g=n((s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const a=r.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),r},"drawText"),h=n((s,t,e,r)=>{const a=s.append("image");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",i)},"drawImage"),m=n((s,t,e,r)=>{const a=s.append("use");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{d as a,p as b,m as c,x as d,h as e,g as f,y as g}; +import{_ as n,U as o,j as l}from"./index-Cbm2MoYO.js";var x=n((s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(s,e).lower()},"drawBackgroundRect"),g=n((s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const a=r.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),r},"drawText"),h=n((s,t,e,r)=>{const a=s.append("image");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",i)},"drawImage"),m=n((s,t,e,r)=>{const a=s.append("use");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{d as a,p as b,m as c,x as d,h as e,g as f,y as g}; diff --git a/docs/dist/assets/classDiagram-2ON5EDUG-B2e87Lie.js b/docs/dist/assets/classDiagram-2ON5EDUG-B2e87Lie.js deleted file mode 100644 index cea8c9e7..00000000 --- a/docs/dist/assets/classDiagram-2ON5EDUG-B2e87Lie.js +++ /dev/null @@ -1 +0,0 @@ -import{s as a,c as s,a as e,C as t}from"./chunk-B4BG7PRW-BM5l_f1F.js";import{_ as i}from"./index-BtiIqbpV.js";import"./chunk-FMBD7UC4-mpZRA3cF.js";import"./chunk-55IACEB6-k1CzMQx-.js";import"./chunk-QN33PNHL-Ee1tIsWT.js";var p={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{p as diagram}; diff --git a/docs/dist/assets/classDiagram-2ON5EDUG-C5mq3x3r.js b/docs/dist/assets/classDiagram-2ON5EDUG-C5mq3x3r.js new file mode 100644 index 00000000..dc931e2b --- /dev/null +++ b/docs/dist/assets/classDiagram-2ON5EDUG-C5mq3x3r.js @@ -0,0 +1 @@ +import{s as a,c as s,a as e,C as t}from"./chunk-B4BG7PRW-Di5rbL9q.js";import{_ as i}from"./index-Cbm2MoYO.js";import"./chunk-FMBD7UC4-D1HxKLa4.js";import"./chunk-55IACEB6-DLzn1p-J.js";import"./chunk-QN33PNHL-DLlZQk9s.js";var p={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{p as diagram}; diff --git a/docs/dist/assets/classDiagram-v2-WZHVMYZB-B2e87Lie.js b/docs/dist/assets/classDiagram-v2-WZHVMYZB-B2e87Lie.js deleted file mode 100644 index cea8c9e7..00000000 --- a/docs/dist/assets/classDiagram-v2-WZHVMYZB-B2e87Lie.js +++ /dev/null @@ -1 +0,0 @@ -import{s as a,c as s,a as e,C as t}from"./chunk-B4BG7PRW-BM5l_f1F.js";import{_ as i}from"./index-BtiIqbpV.js";import"./chunk-FMBD7UC4-mpZRA3cF.js";import"./chunk-55IACEB6-k1CzMQx-.js";import"./chunk-QN33PNHL-Ee1tIsWT.js";var p={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{p as diagram}; diff --git a/docs/dist/assets/classDiagram-v2-WZHVMYZB-C5mq3x3r.js b/docs/dist/assets/classDiagram-v2-WZHVMYZB-C5mq3x3r.js new file mode 100644 index 00000000..dc931e2b --- /dev/null +++ b/docs/dist/assets/classDiagram-v2-WZHVMYZB-C5mq3x3r.js @@ -0,0 +1 @@ +import{s as a,c as s,a as e,C as t}from"./chunk-B4BG7PRW-Di5rbL9q.js";import{_ as i}from"./index-Cbm2MoYO.js";import"./chunk-FMBD7UC4-D1HxKLa4.js";import"./chunk-55IACEB6-DLzn1p-J.js";import"./chunk-QN33PNHL-DLlZQk9s.js";var p={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{p as diagram}; diff --git a/docs/dist/assets/clone-D4gAIgVI.js b/docs/dist/assets/clone-D4gAIgVI.js new file mode 100644 index 00000000..0bcb04d6 --- /dev/null +++ b/docs/dist/assets/clone-D4gAIgVI.js @@ -0,0 +1 @@ +import{b as r}from"./_baseUniq-yJVicqoM.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/docs/dist/assets/clone-uEwA9FQU.js b/docs/dist/assets/clone-uEwA9FQU.js deleted file mode 100644 index 136d0a4c..00000000 --- a/docs/dist/assets/clone-uEwA9FQU.js +++ /dev/null @@ -1 +0,0 @@ -import{b as r}from"./_baseUniq-UvPYksec.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/docs/dist/assets/cose-bilkent-S5V4N54A-DwegvPdd.js b/docs/dist/assets/cose-bilkent-S5V4N54A-Bff6yNx5.js similarity index 99% rename from docs/dist/assets/cose-bilkent-S5V4N54A-DwegvPdd.js rename to docs/dist/assets/cose-bilkent-S5V4N54A-Bff6yNx5.js index 633f645c..4a1a436c 100644 --- a/docs/dist/assets/cose-bilkent-S5V4N54A-DwegvPdd.js +++ b/docs/dist/assets/cose-bilkent-S5V4N54A-Bff6yNx5.js @@ -1 +1 @@ -import{aI as lt,_ as V,l as k,d as gt}from"./index-BtiIqbpV.js";import{c as tt}from"./cytoscape.esm-CF_z7lu9.js";var $={exports:{}},Z={exports:{}},Q={exports:{}},ut=Q.exports,j;function ft(){return j||(j=1,(function(G,b){(function(I,L){G.exports=L()})(ut,function(){return(function(N){var I={};function L(o){if(I[o])return I[o].exports;var e=I[o]={i:o,l:!1,exports:{}};return N[o].call(e.exports,e,e.exports,L),e.l=!0,e.exports}return L.m=N,L.c=I,L.i=function(o){return o},L.d=function(o,e,t){L.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},L.n=function(o){var e=o&&o.__esModule?(function(){return o.default}):(function(){return o});return L.d(e,"a",e),e},L.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},L.p="",L(L.s=26)})([(function(N,I,L){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,N.exports=o}),(function(N,I,L){var o=L(2),e=L(8),t=L(9);function i(g,n,d){o.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=n}i.prototype=Object.create(o.prototype);for(var l in o)i[l]=o[l];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,n){for(var d=this.getOtherEnd(g),r=n.getGraphManager().getRoot();;){if(d.getOwner()==n)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=i}),(function(N,I,L){function o(e){this.vGraphObject=e}N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(13),i=L(0),l=L(16),g=L(4);function n(r,h,a,p){a==null&&p==null&&(p=h),o.call(this,p),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=r,a!=null&&h!=null?this.rect=new t(h.x,h.y,a.width,a.height):this.rect=new t}n.prototype=Object.create(o.prototype);for(var d in o)n[d]=o[d];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,h){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=h.width,this.rect.height=h.height},n.prototype.setCenter=function(r,h){this.rect.x=r-this.rect.width/2,this.rect.y=h-this.rect.height/2},n.prototype.setLocation=function(r,h){this.rect.x=r,this.rect.y=h},n.prototype.moveBy=function(r,h){this.rect.x+=r,this.rect.y+=h},n.prototype.getEdgeListToNode=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(p.target==r){if(p.source!=a)throw"Incorrect edge source!";h.push(p)}}),h},n.prototype.getEdgesBetween=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(!(p.source==a||p.target==a))throw"Incorrect edge source and/or target";(p.target==r||p.source==r)&&h.push(p)}),h},n.prototype.getNeighborsList=function(){var r=new Set,h=this;return h.edges.forEach(function(a){if(a.source==h)r.add(a.target);else{if(a.target!=h)throw"Incorrect incidency!";r.add(a.source)}}),r},n.prototype.withChildren=function(){var r=new Set,h,a;if(r.add(this),this.child!=null)for(var p=this.child.getNodes(),v=0;vh&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var p=new g(h,a),v=r.inverseTransformPoint(p);this.setLocation(v.x,v.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=n}),(function(N,I,L){function o(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(e){this.x=e},o.prototype.setY=function(e){this.y=e},o.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(0),i=L(6),l=L(3),g=L(1),n=L(13),d=L(12),r=L(11);function h(p,v,D){o.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,v!=null&&v instanceof i?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}h.prototype=Object.create(o.prototype);for(var a in o)h[a]=o[a];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(p,v,D){if(v==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var T=p;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(v.owner==D.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=D.owner?null:(T.source=v,T.target=D,T.isInterGraph=!1,this.getEdges().push(T),v.edges.push(T),D!=v&&D.edges.push(T),T)}},h.prototype.remove=function(p){var v=p;if(p instanceof l){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=v.edges.slice(),u,T=D.length,y=0;y-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var O=u.source.owner.getEdges().indexOf(u);if(O==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(O,1)}},h.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,v=e.MAX_VALUE,D,u,T,y=this.getNodes(),O=y.length,s=0;sD&&(p=D),v>u&&(v=u)}return p==e.MAX_VALUE?null:(y[0].getParent().paddingLeft!=null?T=y[0].getParent().paddingLeft:T=this.margin,this.left=v-T,this.top=p-T,new d(this.left,this.top))},h.prototype.updateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,T=-e.MAX_VALUE,y,O,s,f,c,E=this.nodes,A=E.length,m=0;my&&(v=y),Ds&&(u=s),Ty&&(v=y),Ds&&(u=s),T=this.nodes.length){var A=0;D.forEach(function(m){m.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,I,L){var o,e=L(1);function t(i){o=L(5),this.layout=i,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var i=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(i,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(i,l,g,n,d){if(g==null&&n==null&&d==null){if(i==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return i.parent=l,l.child=i,i}else{d=g,n=l,g=i;var r=n.getOwner(),h=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==h)return g.isInterGraph=!1,r.add(g,n,d);if(g.isInterGraph=!0,g.source=n,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(i){if(i instanceof o){var l=i;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var n,d=g.length,r=0;r=i.getRight()?l[0]+=Math.min(i.getX()-t.getX(),t.getRight()-i.getRight()):i.getX()<=t.getX()&&i.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-i.getX(),i.getRight()-t.getRight())),t.getY()<=i.getY()&&t.getBottom()>=i.getBottom()?l[1]+=Math.min(i.getY()-t.getY(),t.getBottom()-i.getBottom()):i.getY()<=t.getY()&&i.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-i.getY(),i.getBottom()-t.getBottom()));var d=Math.abs((i.getCenterY()-t.getCenterY())/(i.getCenterX()-t.getCenterX()));i.getCenterY()===t.getCenterY()&&i.getCenterX()===t.getCenterX()&&(d=1);var r=d*l[0],h=l[1]/d;l[0]r)return l[0]=g,l[1]=a,l[2]=d,l[3]=E,!1;if(nd)return l[0]=h,l[1]=n,l[2]=f,l[3]=r,!1;if(gd?(l[0]=v,l[1]=D,R=!0):(l[0]=p,l[1]=a,R=!0):S===w&&(g>d?(l[0]=h,l[1]=a,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===w?d>g?(l[2]=c,l[3]=E,M=!0):(l[2]=f,l[3]=s,M=!0):Y===w&&(d>g?(l[2]=O,l[3]=s,M=!0):(l[2]=A,l[3]=E,M=!0)),R&&M)return!1;if(g>d?n>r?(x=this.getCardinalDirection(S,w,4),F=this.getCardinalDirection(Y,w,2)):(x=this.getCardinalDirection(-S,w,3),F=this.getCardinalDirection(-Y,w,1)):n>r?(x=this.getCardinalDirection(-S,w,1),F=this.getCardinalDirection(-Y,w,3)):(x=this.getCardinalDirection(S,w,2),F=this.getCardinalDirection(Y,w,4)),!R)switch(x){case 1:P=a,U=g+-y/w,l[0]=U,l[1]=P;break;case 2:U=u,P=n+T*w,l[0]=U,l[1]=P;break;case 3:P=D,U=g+y/w,l[0]=U,l[1]=P;break;case 4:U=v,P=n+-T*w,l[0]=U,l[1]=P;break}if(!M)switch(F){case 1:X=s,_=d+-C/w,l[2]=_,l[3]=X;break;case 2:_=A,X=r+m*w,l[2]=_,l[3]=X;break;case 3:X=E,_=d+C/w,l[2]=_,l[3]=X;break;case 4:_=c,X=r+-m*w,l[2]=_,l[3]=X;break}}return!1},e.getCardinalDirection=function(t,i,l){return t>i?l:1+l%4},e.getIntersection=function(t,i,l,g){if(g==null)return this.getIntersection2(t,i,l);var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=void 0,T=void 0,y=void 0,O=void 0,s=void 0,f=void 0,c=void 0,E=void 0,A=void 0;return y=h-d,s=n-r,c=r*d-n*h,O=D-p,f=a-v,E=v*p-a*D,A=y*f-O*s,A===0?null:(u=(s*E-f*c)/A,T=(O*c-y*E)/A,new o(u,T))},e.angleOfVector=function(t,i,l,g){var n=void 0;return t!==l?(n=Math.atan((g-i)/(l-t)),l0?1:e<0?-1:0},o.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},o.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=o}),(function(N,I,L){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,N.exports=o}),(function(N,I,L){var o=(function(){function n(d,r){for(var h=0;h"u"?"undefined":o(t);return t==null||i!="object"&&i!="function"},N.exports=e}),(function(N,I,L){function o(a){if(Array.isArray(a)){for(var p=0,v=Array(a.length);p0&&p;){for(y.push(s[0]);y.length>0&&p;){var f=y[0];y.splice(0,1),T.add(f);for(var c=f.getEdges(),u=0;u-1&&s.splice(C,1)}T=new Set,O=new Map}}return a},h.prototype.createDummyNodesForBendpoints=function(a){for(var p=[],v=a.source,D=this.graphManager.calcLowestCommonAncestor(a.source,a.target),u=0;u0){for(var D=this.edgeToDummyNodes.get(v),u=0;u=0&&p.splice(E,1);var A=O.getNeighborsList();A.forEach(function(R){if(v.indexOf(R)<0){var M=D.get(R),S=M-1;S==1&&f.push(R),D.set(R,S)}})}v=v.concat(f),(p.length==1||p.length==2)&&(u=!0,T=p[0])}return T},h.prototype.setGraphManager=function(a){this.graphManager=a},N.exports=h}),(function(N,I,L){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},N.exports=o}),(function(N,I,L){var o=L(4);function e(t,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var i=0,l=this.lworldExtX;return l!=0&&(i=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),i},e.prototype.transformY=function(t){var i=0,l=this.lworldExtY;return l!=0&&(i=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),i},e.prototype.inverseTransformX=function(t){var i=0,l=this.ldeviceExtX;return l!=0&&(i=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),i},e.prototype.inverseTransformY=function(t){var i=0,l=this.ldeviceExtY;return l!=0&&(i=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),i},e.prototype.inverseTransformPoint=function(t){var i=new o(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return i},N.exports=e}),(function(N,I,L){function o(r){if(Array.isArray(r)){for(var h=0,a=Array(r.length);ht.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),h,a=0;a0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,p,v,D,u=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),T=new Set,a=0;ay||T>y)&&(r.gravitationForceX=-this.gravityConstant*v,r.gravitationForceY=-this.gravityConstant*D)):(y=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>y||T>y)&&(r.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement=u.length||y>=u[0].length)){for(var O=0;On}}]),l})();N.exports=i}),(function(N,I,L){var o=(function(){function i(l,g){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,i),this.sequence1=l,this.sequence2=g,this.match_score=n,this.mismatch_penalty=d,this.gap_penalty=r,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;l--){var g=this.listeners[l];g.event===t&&g.callback===i&&this.listeners.splice(l,1)}},e.emit=function(t,i){for(var l=0;lg.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,n){for(var d=this.getChild().getNodes(),r,h=0;h0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(E){return f.has(E)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c1){var R;for(R=0;RE&&(E=Math.floor(C.y)),m=Math.floor(C.x+n.DEFAULT_COMPONENT_SEPERATION)}this.transform(new a(r.WORLD_CENTER_X-C.x/2,r.WORLD_CENTER_Y-C.y/2))},y.radialLayout=function(s,f,c){var E=Math.max(this.maxDiagonalInTree(s),n.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(f,null,0,359,0,E);var A=u.calculateBounds(s),m=new T;m.setDeviceOrgX(A.getMinX()),m.setDeviceOrgY(A.getMinY()),m.setWorldOrgX(c.x),m.setWorldOrgY(c.y);for(var C=0;C1;){var X=_[0];_.splice(0,1);var H=w.indexOf(X);H>=0&&w.splice(H,1),U--,x--}f!=null?P=(w.indexOf(_[0])+1)%U:P=0;for(var W=Math.abs(E-c)/x,B=P;F!=x;B=++B%U){var K=w[B].getOtherEnd(s);if(K!=f){var q=(c+F*W)%360,ht=(q+W)%360;y.branchRadialLayout(K,s,q,ht,A+m,m),F++}}},y.maxDiagonalInTree=function(s){for(var f=v.MIN_VALUE,c=0;cf&&(f=A)}return f},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],E=this.graphManager.getAllNodes(),A=0;A"u"&&(f[R]=[]),f[R]=f[R].concat(m)}Object.keys(f).forEach(function(M){if(f[M].length>1){var S="DummyCompound_"+M;s.memberGroups[S]=f[M];var Y=f[M][0].getParent(),w=new l(s.graphManager);w.id=S,w.paddingLeft=Y.paddingLeft||0,w.paddingRight=Y.paddingRight||0,w.paddingBottom=Y.paddingBottom||0,w.paddingTop=Y.paddingTop||0,s.idToDummyNode[S]=w;var x=s.getGraphManager().add(s.newGraph(),w),F=Y.getChild();F.add(w);for(var U=0;U=0;s--){var f=this.compoundOrder[s],c=f.id,E=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,E,A)}},y.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var E=s.idToDummyNode[c],A=E.paddingLeft,m=E.paddingTop;s.adjustLocations(f[c],E.rect.x,E.rect.y,A,m)})},y.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var E=c.getNodes(),A=0;A0)return this.toBeTiled[f]=!1,!1;if(m.getChild()==null){this.toBeTiled[m.id]=!1;continue}if(!this.getToBeTiled(m))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},y.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,E=0;EM&&(M=Y.rect.height)}c+=M+s.verticalPadding}},y.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(E){var A=f[E];c.tiledMemberPack[E]=c.tileNodes(s[E],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[E].width,A.rect.height=c.tiledMemberPack[E].height})},y.prototype.tileNodes=function(s,f){var c=n.TILING_PADDING_VERTICAL,E=n.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:E};s.sort(function(R,M){return R.rect.width*R.rect.height>M.rect.width*M.rect.height?-1:R.rect.width*R.rect.height0&&(C+=s.horizontalPadding),s.rowWidth[c]=C,s.width0&&(R+=s.verticalPadding);var M=0;R>s.rowHeight[c]&&(M=s.rowHeight[c],s.rowHeight[c]=R,M=s.rowHeight[c]-M),s.height+=M,s.rows[c].push(f)},y.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,E=0;Ec&&(f=E,c=s.rowWidth[E]);return f},y.prototype.canAddHorizontal=function(s,f,c){var E=this.getShortestRowIndex(s);if(E<0)return!0;var A=s.rowWidth[E];if(A+s.horizontalPadding+f<=s.width)return!0;var m=0;s.rowHeight[E]0&&(m=c+s.verticalPadding-s.rowHeight[E]);var C;s.width-A>=f+s.horizontalPadding?C=(s.height+m)/(A+f+s.horizontalPadding):C=(s.height+m)/s.width,m=c+s.verticalPadding;var R;return s.widthm&&f!=c){E.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-m,s.rowWidth[c]=s.rowWidth[c]+m,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var C=Number.MIN_VALUE,R=0;RC&&(C=E[R].height);f>0&&(C+=s.verticalPadding);var M=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=C,s.rowHeight[c]0)for(var F=A;F<=m;F++)x[0]+=this.grid[F][C-1].length+this.grid[F][C].length-1;if(m0)for(var F=C;F<=R;F++)x[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var U=v.MAX_VALUE,P,_,X=0;X0){var R;R=T.getGraphManager().add(T.newGraph(),c),this.processChildrenList(R,f,T)}}},a.prototype.stop=function(){return this.stopped=!0,this};var v=function(u){u("layout","cose-bilkent",a)};typeof cytoscape<"u"&&v(cytoscape),I.exports=v})])})})($)),$.exports}var yt=vt();const Et=lt(yt);tt.use(Et);function et(G,b){G.forEach(N=>{const I={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(L=>{["id","label","height","width","padding","x","y"].includes(L)||(I[L]=N[L])}),b.add({group:"nodes",data:I,position:{x:N.x??0,y:N.y??0}})})}V(et,"addNodes");function rt(G,b){G.forEach(N=>{const I={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(L=>{["id","start","end"].includes(L)||(I[L]=N[L])}),b.add({group:"edges",data:I})})}V(rt,"addEdges");function it(G){return new Promise(b=>{const N=gt("body").append("div").attr("id","cy").attr("style","display:none"),I=tt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),et(G.nodes,I),rt(G.edges,I),I.nodes().forEach(function(o){o.layoutDimensions=()=>{const e=o.data();return{w:e.width,h:e.height}}});const L={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};I.layout(L).run(),I.ready(o=>{k.info("Cytoscape ready",o),b(I)})})}V(it,"createCytoscapeInstance");function nt(G){return G.nodes().map(b=>{const N=b.data(),I=b.position(),L={id:N.id,x:I.x,y:I.y};return Object.keys(N).forEach(o=>{o!=="id"&&(L[o]=N[o])}),L})}V(nt,"extractPositionedNodes");function ot(G){return G.edges().map(b=>{const N=b.data(),I=b._private.rscratch,L={id:N.id,source:N.source,target:N.target,startX:I.startX,startY:I.startY,midX:I.midX,midY:I.midY,endX:I.endX,endY:I.endY};return Object.keys(N).forEach(o=>{["id","source","target"].includes(o)||(L[o]=N[o])}),L})}V(ot,"extractPositionedEdges");async function st(G,b){k.debug("Starting cose-bilkent layout algorithm");try{at(G);const N=await it(G),I=nt(N),L=ot(N);return k.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`),{nodes:I,edges:L}}catch(N){throw k.error("Error in cose-bilkent layout algorithm:",N),N}}V(st,"executeCoseBilkentLayout");function at(G){if(!G)throw new Error("Layout data is required");if(!G.config)throw new Error("Configuration is required in layout data");if(!G.rootNode)throw new Error("Root node is required");if(!G.nodes||!Array.isArray(G.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(G.edges))throw new Error("Edges array is required in layout data");return!0}V(at,"validateLayoutData");var Lt=V(async(G,b,{insertCluster:N,insertEdge:I,insertEdgeLabel:L,insertMarkers:o,insertNode:e,log:t,positionEdgeLabel:i},{algorithm:l})=>{const g={},n={},d=b.select("g");o(d,G.markers,G.type,G.diagramId);const r=d.insert("g").attr("class","subgraphs"),h=d.insert("g").attr("class","edgePaths"),a=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(G.nodes.map(async u=>{if(u.isGroup){const T={...u};n[u.id]=T,g[u.id]=T,await N(r,u)}else{const T={...u};g[u.id]=T;const y=await e(p,u,{config:G.config,dir:G.direction||"TB"}),O=y.node().getBBox();T.width=O.width,T.height=O.height,T.domId=y,t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const v={...G,nodes:G.nodes.map(u=>{const T=g[u.id];return{...u,width:T.width,height:T.height}})},D=await st(v,G.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const T=g[u.id];T?.domId&&(T.domId.attr("transform",`translate(${u.x}, ${u.y})`),T.x=u.x,T.y=u.y,t.debug(`Positioned node ${T.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const T=G.edges.find(y=>y.id===u.id);T&&(T.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(G.edges.map(async u=>{await L(a,u);const T=g[u.start??""],y=g[u.end??""];if(T&&y){const O=D.edges.find(s=>s.id===u.id);if(O){t.debug("APA01 positionedEdge",O);const s={...u},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}else{const s={...u,points:[{x:T.x||0,y:T.y||0},{x:y.x||0,y:y.y||0}]},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),At=Lt;export{At as render}; +import{aI as lt,_ as V,l as k,d as gt}from"./index-Cbm2MoYO.js";import{c as tt}from"./cytoscape.esm-CF_z7lu9.js";var $={exports:{}},Z={exports:{}},Q={exports:{}},ut=Q.exports,j;function ft(){return j||(j=1,(function(G,b){(function(I,L){G.exports=L()})(ut,function(){return(function(N){var I={};function L(o){if(I[o])return I[o].exports;var e=I[o]={i:o,l:!1,exports:{}};return N[o].call(e.exports,e,e.exports,L),e.l=!0,e.exports}return L.m=N,L.c=I,L.i=function(o){return o},L.d=function(o,e,t){L.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},L.n=function(o){var e=o&&o.__esModule?(function(){return o.default}):(function(){return o});return L.d(e,"a",e),e},L.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},L.p="",L(L.s=26)})([(function(N,I,L){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,N.exports=o}),(function(N,I,L){var o=L(2),e=L(8),t=L(9);function i(g,n,d){o.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=n}i.prototype=Object.create(o.prototype);for(var l in o)i[l]=o[l];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,n){for(var d=this.getOtherEnd(g),r=n.getGraphManager().getRoot();;){if(d.getOwner()==n)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=i}),(function(N,I,L){function o(e){this.vGraphObject=e}N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(13),i=L(0),l=L(16),g=L(4);function n(r,h,a,p){a==null&&p==null&&(p=h),o.call(this,p),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=r,a!=null&&h!=null?this.rect=new t(h.x,h.y,a.width,a.height):this.rect=new t}n.prototype=Object.create(o.prototype);for(var d in o)n[d]=o[d];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,h){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=h.width,this.rect.height=h.height},n.prototype.setCenter=function(r,h){this.rect.x=r-this.rect.width/2,this.rect.y=h-this.rect.height/2},n.prototype.setLocation=function(r,h){this.rect.x=r,this.rect.y=h},n.prototype.moveBy=function(r,h){this.rect.x+=r,this.rect.y+=h},n.prototype.getEdgeListToNode=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(p.target==r){if(p.source!=a)throw"Incorrect edge source!";h.push(p)}}),h},n.prototype.getEdgesBetween=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(!(p.source==a||p.target==a))throw"Incorrect edge source and/or target";(p.target==r||p.source==r)&&h.push(p)}),h},n.prototype.getNeighborsList=function(){var r=new Set,h=this;return h.edges.forEach(function(a){if(a.source==h)r.add(a.target);else{if(a.target!=h)throw"Incorrect incidency!";r.add(a.source)}}),r},n.prototype.withChildren=function(){var r=new Set,h,a;if(r.add(this),this.child!=null)for(var p=this.child.getNodes(),v=0;vh&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var p=new g(h,a),v=r.inverseTransformPoint(p);this.setLocation(v.x,v.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=n}),(function(N,I,L){function o(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(e){this.x=e},o.prototype.setY=function(e){this.y=e},o.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(0),i=L(6),l=L(3),g=L(1),n=L(13),d=L(12),r=L(11);function h(p,v,D){o.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,v!=null&&v instanceof i?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}h.prototype=Object.create(o.prototype);for(var a in o)h[a]=o[a];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(p,v,D){if(v==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var T=p;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(v.owner==D.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=D.owner?null:(T.source=v,T.target=D,T.isInterGraph=!1,this.getEdges().push(T),v.edges.push(T),D!=v&&D.edges.push(T),T)}},h.prototype.remove=function(p){var v=p;if(p instanceof l){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=v.edges.slice(),u,T=D.length,y=0;y-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var O=u.source.owner.getEdges().indexOf(u);if(O==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(O,1)}},h.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,v=e.MAX_VALUE,D,u,T,y=this.getNodes(),O=y.length,s=0;sD&&(p=D),v>u&&(v=u)}return p==e.MAX_VALUE?null:(y[0].getParent().paddingLeft!=null?T=y[0].getParent().paddingLeft:T=this.margin,this.left=v-T,this.top=p-T,new d(this.left,this.top))},h.prototype.updateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,T=-e.MAX_VALUE,y,O,s,f,c,E=this.nodes,A=E.length,m=0;my&&(v=y),Ds&&(u=s),Ty&&(v=y),Ds&&(u=s),T=this.nodes.length){var A=0;D.forEach(function(m){m.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,I,L){var o,e=L(1);function t(i){o=L(5),this.layout=i,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var i=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(i,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(i,l,g,n,d){if(g==null&&n==null&&d==null){if(i==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return i.parent=l,l.child=i,i}else{d=g,n=l,g=i;var r=n.getOwner(),h=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==h)return g.isInterGraph=!1,r.add(g,n,d);if(g.isInterGraph=!0,g.source=n,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(i){if(i instanceof o){var l=i;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var n,d=g.length,r=0;r=i.getRight()?l[0]+=Math.min(i.getX()-t.getX(),t.getRight()-i.getRight()):i.getX()<=t.getX()&&i.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-i.getX(),i.getRight()-t.getRight())),t.getY()<=i.getY()&&t.getBottom()>=i.getBottom()?l[1]+=Math.min(i.getY()-t.getY(),t.getBottom()-i.getBottom()):i.getY()<=t.getY()&&i.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-i.getY(),i.getBottom()-t.getBottom()));var d=Math.abs((i.getCenterY()-t.getCenterY())/(i.getCenterX()-t.getCenterX()));i.getCenterY()===t.getCenterY()&&i.getCenterX()===t.getCenterX()&&(d=1);var r=d*l[0],h=l[1]/d;l[0]r)return l[0]=g,l[1]=a,l[2]=d,l[3]=E,!1;if(nd)return l[0]=h,l[1]=n,l[2]=f,l[3]=r,!1;if(gd?(l[0]=v,l[1]=D,R=!0):(l[0]=p,l[1]=a,R=!0):S===w&&(g>d?(l[0]=h,l[1]=a,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===w?d>g?(l[2]=c,l[3]=E,M=!0):(l[2]=f,l[3]=s,M=!0):Y===w&&(d>g?(l[2]=O,l[3]=s,M=!0):(l[2]=A,l[3]=E,M=!0)),R&&M)return!1;if(g>d?n>r?(x=this.getCardinalDirection(S,w,4),F=this.getCardinalDirection(Y,w,2)):(x=this.getCardinalDirection(-S,w,3),F=this.getCardinalDirection(-Y,w,1)):n>r?(x=this.getCardinalDirection(-S,w,1),F=this.getCardinalDirection(-Y,w,3)):(x=this.getCardinalDirection(S,w,2),F=this.getCardinalDirection(Y,w,4)),!R)switch(x){case 1:P=a,U=g+-y/w,l[0]=U,l[1]=P;break;case 2:U=u,P=n+T*w,l[0]=U,l[1]=P;break;case 3:P=D,U=g+y/w,l[0]=U,l[1]=P;break;case 4:U=v,P=n+-T*w,l[0]=U,l[1]=P;break}if(!M)switch(F){case 1:X=s,_=d+-C/w,l[2]=_,l[3]=X;break;case 2:_=A,X=r+m*w,l[2]=_,l[3]=X;break;case 3:X=E,_=d+C/w,l[2]=_,l[3]=X;break;case 4:_=c,X=r+-m*w,l[2]=_,l[3]=X;break}}return!1},e.getCardinalDirection=function(t,i,l){return t>i?l:1+l%4},e.getIntersection=function(t,i,l,g){if(g==null)return this.getIntersection2(t,i,l);var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=void 0,T=void 0,y=void 0,O=void 0,s=void 0,f=void 0,c=void 0,E=void 0,A=void 0;return y=h-d,s=n-r,c=r*d-n*h,O=D-p,f=a-v,E=v*p-a*D,A=y*f-O*s,A===0?null:(u=(s*E-f*c)/A,T=(O*c-y*E)/A,new o(u,T))},e.angleOfVector=function(t,i,l,g){var n=void 0;return t!==l?(n=Math.atan((g-i)/(l-t)),l0?1:e<0?-1:0},o.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},o.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=o}),(function(N,I,L){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,N.exports=o}),(function(N,I,L){var o=(function(){function n(d,r){for(var h=0;h"u"?"undefined":o(t);return t==null||i!="object"&&i!="function"},N.exports=e}),(function(N,I,L){function o(a){if(Array.isArray(a)){for(var p=0,v=Array(a.length);p0&&p;){for(y.push(s[0]);y.length>0&&p;){var f=y[0];y.splice(0,1),T.add(f);for(var c=f.getEdges(),u=0;u-1&&s.splice(C,1)}T=new Set,O=new Map}}return a},h.prototype.createDummyNodesForBendpoints=function(a){for(var p=[],v=a.source,D=this.graphManager.calcLowestCommonAncestor(a.source,a.target),u=0;u0){for(var D=this.edgeToDummyNodes.get(v),u=0;u=0&&p.splice(E,1);var A=O.getNeighborsList();A.forEach(function(R){if(v.indexOf(R)<0){var M=D.get(R),S=M-1;S==1&&f.push(R),D.set(R,S)}})}v=v.concat(f),(p.length==1||p.length==2)&&(u=!0,T=p[0])}return T},h.prototype.setGraphManager=function(a){this.graphManager=a},N.exports=h}),(function(N,I,L){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},N.exports=o}),(function(N,I,L){var o=L(4);function e(t,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var i=0,l=this.lworldExtX;return l!=0&&(i=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),i},e.prototype.transformY=function(t){var i=0,l=this.lworldExtY;return l!=0&&(i=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),i},e.prototype.inverseTransformX=function(t){var i=0,l=this.ldeviceExtX;return l!=0&&(i=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),i},e.prototype.inverseTransformY=function(t){var i=0,l=this.ldeviceExtY;return l!=0&&(i=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),i},e.prototype.inverseTransformPoint=function(t){var i=new o(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return i},N.exports=e}),(function(N,I,L){function o(r){if(Array.isArray(r)){for(var h=0,a=Array(r.length);ht.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),h,a=0;a0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,p,v,D,u=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),T=new Set,a=0;ay||T>y)&&(r.gravitationForceX=-this.gravityConstant*v,r.gravitationForceY=-this.gravityConstant*D)):(y=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>y||T>y)&&(r.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement=u.length||y>=u[0].length)){for(var O=0;On}}]),l})();N.exports=i}),(function(N,I,L){var o=(function(){function i(l,g){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,i),this.sequence1=l,this.sequence2=g,this.match_score=n,this.mismatch_penalty=d,this.gap_penalty=r,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;l--){var g=this.listeners[l];g.event===t&&g.callback===i&&this.listeners.splice(l,1)}},e.emit=function(t,i){for(var l=0;lg.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,n){for(var d=this.getChild().getNodes(),r,h=0;h0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(E){return f.has(E)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c1){var R;for(R=0;RE&&(E=Math.floor(C.y)),m=Math.floor(C.x+n.DEFAULT_COMPONENT_SEPERATION)}this.transform(new a(r.WORLD_CENTER_X-C.x/2,r.WORLD_CENTER_Y-C.y/2))},y.radialLayout=function(s,f,c){var E=Math.max(this.maxDiagonalInTree(s),n.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(f,null,0,359,0,E);var A=u.calculateBounds(s),m=new T;m.setDeviceOrgX(A.getMinX()),m.setDeviceOrgY(A.getMinY()),m.setWorldOrgX(c.x),m.setWorldOrgY(c.y);for(var C=0;C1;){var X=_[0];_.splice(0,1);var H=w.indexOf(X);H>=0&&w.splice(H,1),U--,x--}f!=null?P=(w.indexOf(_[0])+1)%U:P=0;for(var W=Math.abs(E-c)/x,B=P;F!=x;B=++B%U){var K=w[B].getOtherEnd(s);if(K!=f){var q=(c+F*W)%360,ht=(q+W)%360;y.branchRadialLayout(K,s,q,ht,A+m,m),F++}}},y.maxDiagonalInTree=function(s){for(var f=v.MIN_VALUE,c=0;cf&&(f=A)}return f},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],E=this.graphManager.getAllNodes(),A=0;A"u"&&(f[R]=[]),f[R]=f[R].concat(m)}Object.keys(f).forEach(function(M){if(f[M].length>1){var S="DummyCompound_"+M;s.memberGroups[S]=f[M];var Y=f[M][0].getParent(),w=new l(s.graphManager);w.id=S,w.paddingLeft=Y.paddingLeft||0,w.paddingRight=Y.paddingRight||0,w.paddingBottom=Y.paddingBottom||0,w.paddingTop=Y.paddingTop||0,s.idToDummyNode[S]=w;var x=s.getGraphManager().add(s.newGraph(),w),F=Y.getChild();F.add(w);for(var U=0;U=0;s--){var f=this.compoundOrder[s],c=f.id,E=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,E,A)}},y.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var E=s.idToDummyNode[c],A=E.paddingLeft,m=E.paddingTop;s.adjustLocations(f[c],E.rect.x,E.rect.y,A,m)})},y.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var E=c.getNodes(),A=0;A0)return this.toBeTiled[f]=!1,!1;if(m.getChild()==null){this.toBeTiled[m.id]=!1;continue}if(!this.getToBeTiled(m))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},y.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,E=0;EM&&(M=Y.rect.height)}c+=M+s.verticalPadding}},y.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(E){var A=f[E];c.tiledMemberPack[E]=c.tileNodes(s[E],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[E].width,A.rect.height=c.tiledMemberPack[E].height})},y.prototype.tileNodes=function(s,f){var c=n.TILING_PADDING_VERTICAL,E=n.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:E};s.sort(function(R,M){return R.rect.width*R.rect.height>M.rect.width*M.rect.height?-1:R.rect.width*R.rect.height0&&(C+=s.horizontalPadding),s.rowWidth[c]=C,s.width0&&(R+=s.verticalPadding);var M=0;R>s.rowHeight[c]&&(M=s.rowHeight[c],s.rowHeight[c]=R,M=s.rowHeight[c]-M),s.height+=M,s.rows[c].push(f)},y.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,E=0;Ec&&(f=E,c=s.rowWidth[E]);return f},y.prototype.canAddHorizontal=function(s,f,c){var E=this.getShortestRowIndex(s);if(E<0)return!0;var A=s.rowWidth[E];if(A+s.horizontalPadding+f<=s.width)return!0;var m=0;s.rowHeight[E]0&&(m=c+s.verticalPadding-s.rowHeight[E]);var C;s.width-A>=f+s.horizontalPadding?C=(s.height+m)/(A+f+s.horizontalPadding):C=(s.height+m)/s.width,m=c+s.verticalPadding;var R;return s.widthm&&f!=c){E.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-m,s.rowWidth[c]=s.rowWidth[c]+m,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var C=Number.MIN_VALUE,R=0;RC&&(C=E[R].height);f>0&&(C+=s.verticalPadding);var M=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=C,s.rowHeight[c]0)for(var F=A;F<=m;F++)x[0]+=this.grid[F][C-1].length+this.grid[F][C].length-1;if(m0)for(var F=C;F<=R;F++)x[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var U=v.MAX_VALUE,P,_,X=0;X0){var R;R=T.getGraphManager().add(T.newGraph(),c),this.processChildrenList(R,f,T)}}},a.prototype.stop=function(){return this.stopped=!0,this};var v=function(u){u("layout","cose-bilkent",a)};typeof cytoscape<"u"&&v(cytoscape),I.exports=v})])})})($)),$.exports}var yt=vt();const Et=lt(yt);tt.use(Et);function et(G,b){G.forEach(N=>{const I={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(L=>{["id","label","height","width","padding","x","y"].includes(L)||(I[L]=N[L])}),b.add({group:"nodes",data:I,position:{x:N.x??0,y:N.y??0}})})}V(et,"addNodes");function rt(G,b){G.forEach(N=>{const I={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(L=>{["id","start","end"].includes(L)||(I[L]=N[L])}),b.add({group:"edges",data:I})})}V(rt,"addEdges");function it(G){return new Promise(b=>{const N=gt("body").append("div").attr("id","cy").attr("style","display:none"),I=tt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),et(G.nodes,I),rt(G.edges,I),I.nodes().forEach(function(o){o.layoutDimensions=()=>{const e=o.data();return{w:e.width,h:e.height}}});const L={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};I.layout(L).run(),I.ready(o=>{k.info("Cytoscape ready",o),b(I)})})}V(it,"createCytoscapeInstance");function nt(G){return G.nodes().map(b=>{const N=b.data(),I=b.position(),L={id:N.id,x:I.x,y:I.y};return Object.keys(N).forEach(o=>{o!=="id"&&(L[o]=N[o])}),L})}V(nt,"extractPositionedNodes");function ot(G){return G.edges().map(b=>{const N=b.data(),I=b._private.rscratch,L={id:N.id,source:N.source,target:N.target,startX:I.startX,startY:I.startY,midX:I.midX,midY:I.midY,endX:I.endX,endY:I.endY};return Object.keys(N).forEach(o=>{["id","source","target"].includes(o)||(L[o]=N[o])}),L})}V(ot,"extractPositionedEdges");async function st(G,b){k.debug("Starting cose-bilkent layout algorithm");try{at(G);const N=await it(G),I=nt(N),L=ot(N);return k.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`),{nodes:I,edges:L}}catch(N){throw k.error("Error in cose-bilkent layout algorithm:",N),N}}V(st,"executeCoseBilkentLayout");function at(G){if(!G)throw new Error("Layout data is required");if(!G.config)throw new Error("Configuration is required in layout data");if(!G.rootNode)throw new Error("Root node is required");if(!G.nodes||!Array.isArray(G.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(G.edges))throw new Error("Edges array is required in layout data");return!0}V(at,"validateLayoutData");var Lt=V(async(G,b,{insertCluster:N,insertEdge:I,insertEdgeLabel:L,insertMarkers:o,insertNode:e,log:t,positionEdgeLabel:i},{algorithm:l})=>{const g={},n={},d=b.select("g");o(d,G.markers,G.type,G.diagramId);const r=d.insert("g").attr("class","subgraphs"),h=d.insert("g").attr("class","edgePaths"),a=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(G.nodes.map(async u=>{if(u.isGroup){const T={...u};n[u.id]=T,g[u.id]=T,await N(r,u)}else{const T={...u};g[u.id]=T;const y=await e(p,u,{config:G.config,dir:G.direction||"TB"}),O=y.node().getBBox();T.width=O.width,T.height=O.height,T.domId=y,t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const v={...G,nodes:G.nodes.map(u=>{const T=g[u.id];return{...u,width:T.width,height:T.height}})},D=await st(v,G.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const T=g[u.id];T?.domId&&(T.domId.attr("transform",`translate(${u.x}, ${u.y})`),T.x=u.x,T.y=u.y,t.debug(`Positioned node ${T.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const T=G.edges.find(y=>y.id===u.id);T&&(T.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(G.edges.map(async u=>{await L(a,u);const T=g[u.start??""],y=g[u.end??""];if(T&&y){const O=D.edges.find(s=>s.id===u.id);if(O){t.debug("APA01 positionedEdge",O);const s={...u},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}else{const s={...u,points:[{x:T.x||0,y:T.y||0},{x:y.x||0,y:y.y||0}]},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),At=Lt;export{At as render}; diff --git a/docs/dist/assets/dagre-6UL2VRFP-DAENmghR.js b/docs/dist/assets/dagre-6UL2VRFP-cBGB7W-l.js similarity index 97% rename from docs/dist/assets/dagre-6UL2VRFP-DAENmghR.js rename to docs/dist/assets/dagre-6UL2VRFP-cBGB7W-l.js index e4819173..69f03019 100644 --- a/docs/dist/assets/dagre-6UL2VRFP-DAENmghR.js +++ b/docs/dist/assets/dagre-6UL2VRFP-cBGB7W-l.js @@ -1,4 +1,4 @@ -import{_ as w,ar as F,as as Y,at as _,au as H,l as r,c as V,av as z,aw as U,ag as $,al as q,ah as P,af as K,ax as Q,ay as W,az as Z}from"./index-BtiIqbpV.js";import{G as B}from"./graph-B7dpUAh4.js";import{l as I}from"./layout-B_-UBl_B.js";import{i as b}from"./_baseUniq-UvPYksec.js";import{c as L}from"./clone-uEwA9FQU.js";import{m as A}from"./_basePickBy-Dm_sMLMB.js";function h(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ee(e),edges:ne(e)};return b(e.graph())||(t.value=L(e.graph())),t}function ee(e){return A(e.nodes(),function(t){var n=e.node(t),a=e.parent(t),i={v:t};return b(n)||(i.value=n),b(a)||(i.parent=a),i})}function ne(e){return A(e.edges(),function(t){var n=e.edge(t),a={v:t.v,w:t.w};return b(t.name)||(a.name=t.name),b(n)||(a.value=n),a})}var d=new Map,y=new Map,J=new Map,te=w(()=>{y.clear(),J.clear(),d.clear()},"clear"),D=w((e,t)=>{const n=y.get(t)||[];return r.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),se=w((e,t)=>{const n=y.get(t)||[];return r.info("Descendants of ",t," is ",n),r.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||D(e.v,t)||D(e.w,t)||n.includes(e.w):(r.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),G=w((e,t,n,a)=>{r.warn("Copying children of ",e,"root",a,"data",t.node(e),a);const i=t.children(e)||[];e!==a&&i.push(e),r.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(o=>{if(t.children(o).length>0)G(o,t,n,a);else{const l=t.node(o);r.info("cp ",o," to ",a," with parent ",e),n.setNode(o,l),a!==t.parent(o)&&(r.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==a&&o!==e?(r.debug("Setting parent",o,e),n.setParent(o,e)):(r.info("In copy ",e,"root",a,"data",t.node(e),a),r.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==a,"node!==clusterId",o!==e));const u=t.edges(o);r.debug("Copying Edges",u),u.forEach(c=>{r.info("Edge",c);const m=t.edge(c.v,c.w,c.name);r.info("Edge data",m,a);try{se(c,a)?(r.info("Copying as ",c.v,c.w,m,c.name),n.setEdge(c.v,c.w,m,c.name),r.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):r.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",a," clusterId:",e)}catch(v){r.error(v)}})}r.debug("Removing node",o),t.removeNode(o)})},"copy"),R=w((e,t)=>{const n=t.children(e);let a=[...n];for(const i of n)J.set(i,e),a=[...a,...R(i,t)];return a},"extractDescendants"),re=w((e,t,n)=>{const a=e.edges().filter(c=>c.v===t||c.w===t),i=e.edges().filter(c=>c.v===n||c.w===n),o=a.map(c=>({v:c.v===t?n:c.v,w:c.w===t?t:c.w})),l=i.map(c=>({v:c.v,w:c.w}));return o.filter(c=>l.some(m=>c.v===m.v&&c.w===m.w))},"findCommonEdges"),C=w((e,t,n)=>{const a=t.children(e);if(r.trace("Searching children of id ",e,a),a.length<1)return e;let i;for(const o of a){const l=C(o,t,n),u=re(t,n,l);if(l)if(u.length>0)i=l;else return l}return i},"findNonClusterChild"),k=w(e=>!d.has(e)||!d.get(e).externalConnections?e:d.has(e)?d.get(e).id:e,"getAnchorId"),ie=w((e,t)=>{if(!e||t>10){r.debug("Opting out, no graph ");return}else r.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(r.warn("Cluster identified",n," Replacement id in edges: ",C(n,e,n)),y.set(n,R(n,e)),d.set(n,{id:C(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const a=e.children(n),i=e.edges();a.length>0?(r.debug("Cluster identified",n,y),i.forEach(o=>{const l=D(o.v,n),u=D(o.w,n);l^u&&(r.warn("Edge: ",o," leaves cluster ",n),r.warn("Descendants of XXX ",n,": ",y.get(n)),d.get(n).externalConnections=!0)})):r.debug("Not a cluster ",n,y)});for(let n of d.keys()){const a=d.get(n).id,i=e.parent(a);i!==n&&d.has(i)&&!d.get(i).externalConnections&&(d.get(n).id=i)}e.edges().forEach(function(n){const a=e.edge(n);r.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),r.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,o=n.w;if(r.warn("Fix XXX",d,"ids:",n.v,n.w,"Translating: ",d.get(n.v)," --- ",d.get(n.w)),d.get(n.v)||d.get(n.w)){if(r.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),i=k(n.v),o=k(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const l=e.parent(i);d.get(l).externalConnections=!0,a.fromCluster=n.v}if(o!==n.w){const l=e.parent(o);d.get(l).externalConnections=!0,a.toCluster=n.w}r.warn("Fix Replacing with XXX",i,o,n.name),e.setEdge(i,o,a,n.name)}}),r.warn("Adjusted Graph",h(e)),T(e,0),r.trace(d)},"adjustClustersAndEdges"),T=w((e,t)=>{if(r.warn("extractor - ",t,h(e),e.children("D")),t>10){r.error("Bailing out");return}let n=e.nodes(),a=!1;for(const i of n){const o=e.children(i);a=a||o.length>0}if(!a){r.debug("Done, no node has children",e.nodes());return}r.debug("Nodes = ",n,t);for(const i of n)if(r.debug("Extracting node",i,d,d.has(i)&&!d.get(i).externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!d.has(i))r.debug("Not a cluster",i,t);else if(!d.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){r.warn("Cluster without external connections, without a parent and with children",i,t);let l=e.graph().rankdir==="TB"?"LR":"TB";d.get(i)?.clusterData?.dir&&(l=d.get(i).clusterData.dir,r.warn("Fixing dir",d.get(i).clusterData.dir,l));const u=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});r.warn("Old graph before copy",h(e)),G(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:d.get(i).clusterData,label:d.get(i).label,graph:u}),r.warn("New graph after copy node: (",i,")",h(u)),r.debug("Old graph after copy",h(e))}else r.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!d.get(i).externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),r.debug(d);n=e.nodes(),r.warn("New list of nodes",n);for(const i of n){const o=e.node(i);r.warn(" Now next level",i,o),o?.clusterNode&&T(o.graph,t+1)}},"extractor"),M=w((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(a=>{const i=e.children(a),o=M(e,i);n=[...n,...o]}),n},"sorter"),oe=w(e=>M(e,e.children()),"sortNodesByHierarchy"),j=w(async(e,t,n,a,i,o)=>{r.warn("Graph in recursive render:XAX",h(t),i);const l=t.graph().rankdir;r.trace("Dir in recursive render - dir:",l);const u=e.insert("g").attr("class","root");t.nodes()?r.info("Recursive render XXX",t.nodes()):r.info("No nodes found for",t),t.edges().length>0&&r.info("Recursive edges",t.edge(t.edges()[0]));const c=u.insert("g").attr("class","clusters"),m=u.insert("g").attr("class","edgePaths"),v=u.insert("g").attr("class","edgeLabels"),X=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(f){const s=t.node(f);if(i!==void 0){const g=JSON.parse(JSON.stringify(i.clusterData));r.trace(`Setting data for parent cluster XXX +import{_ as w,ar as F,as as Y,at as _,au as H,l as r,c as V,av as z,aw as U,ag as $,al as q,ah as P,af as K,ax as Q,ay as W,az as Z}from"./index-Cbm2MoYO.js";import{G as B}from"./graph-CrBOm174.js";import{l as I}from"./layout-CFaLQrVQ.js";import{i as b}from"./_baseUniq-yJVicqoM.js";import{c as L}from"./clone-D4gAIgVI.js";import{m as A}from"./_basePickBy-Btg4tW5o.js";function h(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ee(e),edges:ne(e)};return b(e.graph())||(t.value=L(e.graph())),t}function ee(e){return A(e.nodes(),function(t){var n=e.node(t),a=e.parent(t),i={v:t};return b(n)||(i.value=n),b(a)||(i.parent=a),i})}function ne(e){return A(e.edges(),function(t){var n=e.edge(t),a={v:t.v,w:t.w};return b(t.name)||(a.name=t.name),b(n)||(a.value=n),a})}var d=new Map,y=new Map,J=new Map,te=w(()=>{y.clear(),J.clear(),d.clear()},"clear"),D=w((e,t)=>{const n=y.get(t)||[];return r.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),se=w((e,t)=>{const n=y.get(t)||[];return r.info("Descendants of ",t," is ",n),r.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||D(e.v,t)||D(e.w,t)||n.includes(e.w):(r.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),G=w((e,t,n,a)=>{r.warn("Copying children of ",e,"root",a,"data",t.node(e),a);const i=t.children(e)||[];e!==a&&i.push(e),r.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(o=>{if(t.children(o).length>0)G(o,t,n,a);else{const l=t.node(o);r.info("cp ",o," to ",a," with parent ",e),n.setNode(o,l),a!==t.parent(o)&&(r.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==a&&o!==e?(r.debug("Setting parent",o,e),n.setParent(o,e)):(r.info("In copy ",e,"root",a,"data",t.node(e),a),r.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==a,"node!==clusterId",o!==e));const u=t.edges(o);r.debug("Copying Edges",u),u.forEach(c=>{r.info("Edge",c);const m=t.edge(c.v,c.w,c.name);r.info("Edge data",m,a);try{se(c,a)?(r.info("Copying as ",c.v,c.w,m,c.name),n.setEdge(c.v,c.w,m,c.name),r.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):r.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",a," clusterId:",e)}catch(v){r.error(v)}})}r.debug("Removing node",o),t.removeNode(o)})},"copy"),R=w((e,t)=>{const n=t.children(e);let a=[...n];for(const i of n)J.set(i,e),a=[...a,...R(i,t)];return a},"extractDescendants"),re=w((e,t,n)=>{const a=e.edges().filter(c=>c.v===t||c.w===t),i=e.edges().filter(c=>c.v===n||c.w===n),o=a.map(c=>({v:c.v===t?n:c.v,w:c.w===t?t:c.w})),l=i.map(c=>({v:c.v,w:c.w}));return o.filter(c=>l.some(m=>c.v===m.v&&c.w===m.w))},"findCommonEdges"),C=w((e,t,n)=>{const a=t.children(e);if(r.trace("Searching children of id ",e,a),a.length<1)return e;let i;for(const o of a){const l=C(o,t,n),u=re(t,n,l);if(l)if(u.length>0)i=l;else return l}return i},"findNonClusterChild"),k=w(e=>!d.has(e)||!d.get(e).externalConnections?e:d.has(e)?d.get(e).id:e,"getAnchorId"),ie=w((e,t)=>{if(!e||t>10){r.debug("Opting out, no graph ");return}else r.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(r.warn("Cluster identified",n," Replacement id in edges: ",C(n,e,n)),y.set(n,R(n,e)),d.set(n,{id:C(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const a=e.children(n),i=e.edges();a.length>0?(r.debug("Cluster identified",n,y),i.forEach(o=>{const l=D(o.v,n),u=D(o.w,n);l^u&&(r.warn("Edge: ",o," leaves cluster ",n),r.warn("Descendants of XXX ",n,": ",y.get(n)),d.get(n).externalConnections=!0)})):r.debug("Not a cluster ",n,y)});for(let n of d.keys()){const a=d.get(n).id,i=e.parent(a);i!==n&&d.has(i)&&!d.get(i).externalConnections&&(d.get(n).id=i)}e.edges().forEach(function(n){const a=e.edge(n);r.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),r.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let i=n.v,o=n.w;if(r.warn("Fix XXX",d,"ids:",n.v,n.w,"Translating: ",d.get(n.v)," --- ",d.get(n.w)),d.get(n.v)||d.get(n.w)){if(r.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),i=k(n.v),o=k(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){const l=e.parent(i);d.get(l).externalConnections=!0,a.fromCluster=n.v}if(o!==n.w){const l=e.parent(o);d.get(l).externalConnections=!0,a.toCluster=n.w}r.warn("Fix Replacing with XXX",i,o,n.name),e.setEdge(i,o,a,n.name)}}),r.warn("Adjusted Graph",h(e)),T(e,0),r.trace(d)},"adjustClustersAndEdges"),T=w((e,t)=>{if(r.warn("extractor - ",t,h(e),e.children("D")),t>10){r.error("Bailing out");return}let n=e.nodes(),a=!1;for(const i of n){const o=e.children(i);a=a||o.length>0}if(!a){r.debug("Done, no node has children",e.nodes());return}r.debug("Nodes = ",n,t);for(const i of n)if(r.debug("Extracting node",i,d,d.has(i)&&!d.get(i).externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!d.has(i))r.debug("Not a cluster",i,t);else if(!d.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){r.warn("Cluster without external connections, without a parent and with children",i,t);let l=e.graph().rankdir==="TB"?"LR":"TB";d.get(i)?.clusterData?.dir&&(l=d.get(i).clusterData.dir,r.warn("Fixing dir",d.get(i).clusterData.dir,l));const u=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});r.warn("Old graph before copy",h(e)),G(i,e,u,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:d.get(i).clusterData,label:d.get(i).label,graph:u}),r.warn("New graph after copy node: (",i,")",h(u)),r.debug("Old graph after copy",h(e))}else r.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!d.get(i).externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),r.debug(d);n=e.nodes(),r.warn("New list of nodes",n);for(const i of n){const o=e.node(i);r.warn(" Now next level",i,o),o?.clusterNode&&T(o.graph,t+1)}},"extractor"),M=w((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(a=>{const i=e.children(a),o=M(e,i);n=[...n,...o]}),n},"sorter"),oe=w(e=>M(e,e.children()),"sortNodesByHierarchy"),j=w(async(e,t,n,a,i,o)=>{r.warn("Graph in recursive render:XAX",h(t),i);const l=t.graph().rankdir;r.trace("Dir in recursive render - dir:",l);const u=e.insert("g").attr("class","root");t.nodes()?r.info("Recursive render XXX",t.nodes()):r.info("No nodes found for",t),t.edges().length>0&&r.info("Recursive edges",t.edge(t.edges()[0]));const c=u.insert("g").attr("class","clusters"),m=u.insert("g").attr("class","edgePaths"),v=u.insert("g").attr("class","edgeLabels"),X=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(f){const s=t.node(f);if(i!==void 0){const g=JSON.parse(JSON.stringify(i.clusterData));r.trace(`Setting data for parent cluster XXX Node.id = `,f,` data=`,g.height,` Parent cluster`,i.height),t.setNode(i.id,g),t.parent(f)||(r.trace("Setting parent",f,i.id),t.setParent(f,i.id,g))}if(r.info("(Insert) Node XXX"+f+": "+JSON.stringify(t.node(f))),s?.clusterNode){r.info("Cluster identified XBX",f,s.width,t.node(f));const{ranksep:g,nodesep:E}=t.graph();s.graph.setGraph({...s.graph.graph(),ranksep:g+25,nodesep:E});const N=await j(X,s.graph,n,a,t.node(f),o),x=N.elem;z(s,x),s.diff=N.diff||0,r.info("New compound node after recursive render XAX",f,"width",s.width,"height",s.height),U(x,s)}else t.children(f).length>0?(r.trace("Cluster - the non recursive path XBX",f,s.id,s,s.width,"Graph:",t),r.trace(C(s.id,t)),d.set(s.id,{id:C(s.id,t),node:s})):(r.trace("Node - the non recursive path XAX",f,X,t.node(f),l),await $(X,t.node(f),{config:o,dir:l}))})),await w(async()=>{const f=t.edges().map(async function(s){const g=t.edge(s.v,s.w,s.name);r.info("Edge "+s.v+" -> "+s.w+": "+JSON.stringify(s)),r.info("Edge "+s.v+" -> "+s.w+": ",s," ",JSON.stringify(t.edge(s))),r.info("Fix",d,"ids:",s.v,s.w,"Translating: ",d.get(s.v),d.get(s.w)),await Z(v,g)});await Promise.all(f)},"processEdges")(),r.info("Graph before layout:",JSON.stringify(h(t))),r.info("############################################# XXX"),r.info("### Layout ### XXX"),r.info("############################################# XXX"),I(t),r.info("Graph after layout:",JSON.stringify(h(t)));let O=0,{subGraphTitleTotalMargin:S}=q(o);return await Promise.all(oe(t).map(async function(f){const s=t.node(f);if(r.info("Position XBX => "+f+": ("+s.x,","+s.y,") width: ",s.width," height: ",s.height),s?.clusterNode)s.y+=S,r.info("A tainted cluster node XBX1",f,s.id,s.width,s.height,s.x,s.y,t.parent(f)),d.get(s.id).node=s,P(s);else if(t.children(f).length>0){r.info("A pure cluster node XBX1",f,s.id,s.x,s.y,s.width,s.height,t.parent(f)),s.height+=S,t.node(s.parentId);const g=s?.padding/2||0,E=s?.labelBBox?.height||0,N=E-g||0;r.debug("OffsetY",N,"labelHeight",E,"halfPadding",g),await K(c,s),d.get(s.id).node=s}else{const g=t.node(s.parentId);s.y+=S/2,r.info("A regular node XBX1 - using the padding",s.id,"parent",s.parentId,s.width,s.height,s.x,s.y,"offsetY",s.offsetY,"parent",g,g?.offsetY,s),P(s)}})),t.edges().forEach(function(f){const s=t.edge(f);r.info("Edge "+f.v+" -> "+f.w+": "+JSON.stringify(s),s),s.points.forEach(x=>x.y+=S/2);const g=t.node(f.v);var E=t.node(f.w);const N=Q(m,s,d,n,g,E,a);W(s,N)}),t.nodes().forEach(function(f){const s=t.node(f);r.info(f,s.type,s.diff),s.isGroup&&(O=s.diff)}),r.warn("Returning from recursive render XAX",u,O),{elem:u,diff:O}},"recursiveRender"),ge=w(async(e,t)=>{const n=new B({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=t.select("g");F(a,e.markers,e.type,e.diagramId),Y(),_(),H(),te(),e.nodes.forEach(o=>{n.setNode(o.id,{...o}),o.parentId&&n.setParent(o.id,o.parentId)}),r.debug("Edges:",e.edges),e.edges.forEach(o=>{if(o.start===o.end){const l=o.start,u=l+"---"+l+"---1",c=l+"---"+l+"---2",m=n.node(l);n.setNode(u,{domId:u,id:u,parentId:m.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(u,m.parentId),n.setNode(c,{domId:c,id:c,parentId:m.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(c,m.parentId);const v=structuredClone(o),X=structuredClone(o),p=structuredClone(o);v.label="",v.arrowTypeEnd="none",v.id=l+"-cyclic-special-1",X.arrowTypeStart="none",X.arrowTypeEnd="none",X.id=l+"-cyclic-special-mid",p.label="",m.isGroup&&(v.fromCluster=l,p.toCluster=l),p.id=l+"-cyclic-special-2",p.arrowTypeStart="none",n.setEdge(l,u,v,l+"-cyclic-special-0"),n.setEdge(u,c,X,l+"-cyclic-special-1"),n.setEdge(c,l,p,l+"-cyc=0;)a+=l[n].value;t.value=a}function $e(){return this.eachAfter(Le)}function Ae(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function Fe(t,a){for(var l=this,n=[l],o,s,d=-1;l=n.pop();)if(t.call(a,l,++d,this),o=l.children)for(s=o.length-1;s>=0;--s)n.push(o[s]);return this}function ke(t,a){for(var l=this,n=[l],o=[],s,d,h,m=-1;l=n.pop();)if(o.push(l),s=l.children)for(d=0,h=s.length;d=0;)l+=n[o].value;a.value=l})}function _e(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function ze(t){for(var a=this,l=Ve(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var o=n.length;t!==l;)n.splice(o,0,t),t=t.parent;return n}function Ve(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),o=null;for(t=l.pop(),a=n.pop();t===a;)o=t,t=l.pop(),a=n.pop();return o}function De(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Pe(){return Array.from(this)}function Be(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function Ee(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Re(){var t=this,a,l=[t],n,o,s;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(o=0,s=n.length;o=0;--h)o.push(s=d[h]=new U(d[h])),s.parent=n,s.depth=n.depth+1;return l.eachBefore(qe)}function We(){return Q(this).eachBefore(Oe)}function He(t){return t.children}function Ie(t){return Array.isArray(t)?t[1]:null}function Oe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function qe(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function U(t){this.data=t,this.depth=this.height=0,this.parent=null}U.prototype=Q.prototype={constructor:U,count:$e,each:Ae,eachAfter:ke,eachBefore:Fe,find:Ne,sum:Me,sort:_e,path:ze,ancestors:De,descendants:Pe,leaves:Be,links:Ee,copy:We,[Symbol.iterator]:Re};function Ge(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function Xe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function je(t,a,l,n,o){for(var s=t.children,d,h=-1,m=s.length,c=t.value&&(n-a)/t.value;++hN&&(N=c),M=p*p*R,k=Math.max(N/M,M/g),k>V){p-=c;break}V=k}d.push(m={value:p,dice:x1?n:1)},l})(Ue);function Ke(){var t=Je,a=!1,l=1,n=1,o=[0],s=q,d=q,h=q,m=q,c=q;function u(r){return r.x0=r.y0=0,r.x1=l,r.y1=n,r.eachBefore(b),o=[0],a&&r.eachBefore(Xe),r}function b(r){var x=o[r.depth],S=r.x0+x,v=r.y0+x,p=r.x1-x,g=r.y1-x;p{xe(s)&&(n?.textStyles?n.textStyles.push(s):n.textStyles=[s]),n?.styles?n.styles.push(s):n.styles=[s]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){be(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},w(E,"TreeMapDB"),E);function le(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const o={name:n.name,children:n.type==="Leaf"?void 0:[]};for(o.classSelector=n?.classSelector,n?.cssCompiledStyles&&(o.cssCompiledStyles=[n.cssCompiledStyles]),n.type==="Leaf"&&n.value!==void 0&&(o.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(o);else{const s=l[l.length-1].node;s.children?s.children.push(o):s.children=[o]}n.type!=="Leaf"&&l.push({node:o,level:n.level})}),a}w(le,"buildHierarchy");var Qe=w((t,a)=>{Ce(t,a);const l=[];for(const s of t.TreemapRows??[])s.$type==="ClassDefStatement"&&a.addClass(s.className??"",s.styleText??"");for(const s of t.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,m=et(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],u=c.length>0?c.join(";"):void 0,b={level:h,name:m,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:u};l.push(b)}const n=le(l),o=w((s,d)=>{for(const h of s)a.addNode(h,d),h.children&&h.children.length>0&&o(h.children,d+1)},"addNodesRecursively");o(n,0)},"populate"),et=w(t=>t.name?String(t.name):"","getItemName"),re={parser:{yy:void 0},parse:w(async t=>{try{const l=await Te("treemap",t);K.debug("Treemap AST:",l);const n=re.parser?.yy;if(!(n instanceof ne))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Qe(l,n)}catch(a){throw K.error("Error parsing treemap:",a),a}},"parse")},tt=10,B=10,X=25,at=w((t,a,l,n)=>{const o=n.db,s=o.getConfig(),d=s.padding??tt,h=o.getDiagramTitle(),m=o.getRoot(),{themeVariables:c}=ae();if(!m)return;const u=h?30:0,b=he(a),r=s.nodeWidth?s.nodeWidth*B:960,x=s.nodeHeight?s.nodeHeight*B:500,S=r,v=x+u;b.attr("viewBox",`0 0 ${S} ${v}`),ue(b,v,S,s.useMaxWidth);let p;try{const e=s.valueFormat||",";if(e==="$0,0")p=w(i=>"$"+O(",")(i),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const i=/\.\d+/.exec(e),f=i?i[0]:"";p=w(C=>"$"+O(","+f)(C),"valueFormat")}else if(e.startsWith("$")){const i=e.substring(1);p=w(f=>"$"+O(i||"")(f),"valueFormat")}else p=O(e)}catch(e){K.error("Error creating format function:",e),p=O(",")}const g=J().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=J().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),k=J().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);h&&b.append("text").attr("x",S/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const V=b.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=Q(m).sum(e=>e.value??0).sort((e,i)=>(i.value??0)-(e.value??0)),ee=Ke().size([r,x]).paddingTop(e=>e.children&&e.children.length>0?X+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(R),se=ee.descendants().filter(e=>e.children&&e.children.length>0),W=V.selectAll(".treemapSection").data(se).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),W.append("clipPath").attr("id",(e,i)=>`clip-section-${a}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,i)=>`treemapSection section${i}`).attr("fill",e=>g(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>N(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const i=P({cssCompiledStyles:e.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),W.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const i=Y(this),f=e.data.name;i.text(f);const C=e.x1-e.x0,L=6;let $;s.showValues!==!1&&e.value?$=C-10-30-10-L:$=C-L-6;const A=Math.max(15,$),y=i.node();if(y.getComputedTextLength()>A){let T=f;for(;T.length>0;){if(T=f.substring(0,T.length-1),T.length===0){i.text("..."),y.getComputedTextLength()>A&&i.text("");break}if(i.text(T+"..."),y.getComputedTextLength()<=A)break}}}),s.showValues!==!1&&W.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const ie=ee.leaves(),j=V.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class",(e,i)=>`treemapNode treemapLeafGroup leaf${i}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);j.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?g(e.parent.data.name):g(e.data.name)).attr("style",e=>P({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?g(e.parent.data.name):g(e.data.name)).attr("stroke-width",3),j.append("clipPath").attr("id",(e,i)=>`clip-${a}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),j.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const i="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+k(e.data.name)+";",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,i)=>`url(#clip-${a}-${i})`).text(e=>e.data.name).each(function(e){const i=Y(this),f=e.x1-e.x0,C=e.y1-e.y0,L=i.node(),$=4,D=f-2*$,A=C-2*$;if(D<10||A<10){i.style("display","none");return}let y=parseInt(i.style("font-size"),10);const _=8,F=28,T=.6,z=6,H=2;for(;L.getComputedTextLength()>D&&y>_;)y--,i.style("font-size",`${y}px`);let I=Math.max(z,Math.min(F,Math.round(y*T))),Z=y+H+I;for(;Z>A&&y>_&&(y--,I=Math.max(z,Math.min(F,Math.round(y*T))),!(ID||y<_||A(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+k(i.data.name)+";",C=P({cssCompiledStyles:i.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${a}-${f})`).text(i=>i.value?p(i.value):"").each(function(i){const f=Y(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=Y(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const $=parseFloat(L.style("font-size")),D=28,A=.6,y=6,_=2,F=Math.max(y,Math.min(D,Math.round($*A)));f.style("font-size",`${F}px`);const z=(i.y1-i.y0)/2+$/2+_;f.attr("y",z);const H=i.x1-i.x0,ce=i.y1-i.y0-4,de=H-8;f.node().getComputedTextLength()>de||z+F>ce||F{const a=te(rt,t);return` +import{_ as w,D as te,E as ae,H as he,e as ue,l as K,a_ as P,d as Y,b as pe,a as fe,p as me,q as ge,g as ye,s as Se,F as ve,a$ as xe,y as be}from"./index-Cbm2MoYO.js";import{s as we}from"./chunk-QN33PNHL-DLlZQk9s.js";import{p as Ce}from"./chunk-4BX2VUAB-B95fRcaE.js";import{p as Te}from"./treemap-KMMF4GRG-Bqtmffqa.js";import{b as O}from"./defaultLocale-C4B-KCzX.js";import{o as J}from"./ordinal-Cboi1Yqb.js";import"./_baseUniq-yJVicqoM.js";import"./_basePickBy-Btg4tW5o.js";import"./clone-D4gAIgVI.js";import"./init-Gi6I4Gst.js";function Le(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function $e(){return this.eachAfter(Le)}function Ae(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function Fe(t,a){for(var l=this,n=[l],o,s,d=-1;l=n.pop();)if(t.call(a,l,++d,this),o=l.children)for(s=o.length-1;s>=0;--s)n.push(o[s]);return this}function ke(t,a){for(var l=this,n=[l],o=[],s,d,h,m=-1;l=n.pop();)if(o.push(l),s=l.children)for(d=0,h=s.length;d=0;)l+=n[o].value;a.value=l})}function _e(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function ze(t){for(var a=this,l=Ve(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var o=n.length;t!==l;)n.splice(o,0,t),t=t.parent;return n}function Ve(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),o=null;for(t=l.pop(),a=n.pop();t===a;)o=t,t=l.pop(),a=n.pop();return o}function De(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Pe(){return Array.from(this)}function Be(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function Ee(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Re(){var t=this,a,l=[t],n,o,s;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(o=0,s=n.length;o=0;--h)o.push(s=d[h]=new U(d[h])),s.parent=n,s.depth=n.depth+1;return l.eachBefore(qe)}function We(){return Q(this).eachBefore(Oe)}function He(t){return t.children}function Ie(t){return Array.isArray(t)?t[1]:null}function Oe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function qe(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function U(t){this.data=t,this.depth=this.height=0,this.parent=null}U.prototype=Q.prototype={constructor:U,count:$e,each:Ae,eachAfter:ke,eachBefore:Fe,find:Ne,sum:Me,sort:_e,path:ze,ancestors:De,descendants:Pe,leaves:Be,links:Ee,copy:We,[Symbol.iterator]:Re};function Ge(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function Xe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function je(t,a,l,n,o){for(var s=t.children,d,h=-1,m=s.length,c=t.value&&(n-a)/t.value;++hN&&(N=c),M=p*p*R,k=Math.max(N/M,M/g),k>V){p-=c;break}V=k}d.push(m={value:p,dice:x1?n:1)},l})(Ue);function Ke(){var t=Je,a=!1,l=1,n=1,o=[0],s=q,d=q,h=q,m=q,c=q;function u(r){return r.x0=r.y0=0,r.x1=l,r.y1=n,r.eachBefore(b),o=[0],a&&r.eachBefore(Xe),r}function b(r){var x=o[r.depth],S=r.x0+x,v=r.y0+x,p=r.x1-x,g=r.y1-x;p{xe(s)&&(n?.textStyles?n.textStyles.push(s):n.textStyles=[s]),n?.styles?n.styles.push(s):n.styles=[s]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){be(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},w(E,"TreeMapDB"),E);function le(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const o={name:n.name,children:n.type==="Leaf"?void 0:[]};for(o.classSelector=n?.classSelector,n?.cssCompiledStyles&&(o.cssCompiledStyles=[n.cssCompiledStyles]),n.type==="Leaf"&&n.value!==void 0&&(o.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(o);else{const s=l[l.length-1].node;s.children?s.children.push(o):s.children=[o]}n.type!=="Leaf"&&l.push({node:o,level:n.level})}),a}w(le,"buildHierarchy");var Qe=w((t,a)=>{Ce(t,a);const l=[];for(const s of t.TreemapRows??[])s.$type==="ClassDefStatement"&&a.addClass(s.className??"",s.styleText??"");for(const s of t.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,m=et(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],u=c.length>0?c.join(";"):void 0,b={level:h,name:m,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:u};l.push(b)}const n=le(l),o=w((s,d)=>{for(const h of s)a.addNode(h,d),h.children&&h.children.length>0&&o(h.children,d+1)},"addNodesRecursively");o(n,0)},"populate"),et=w(t=>t.name?String(t.name):"","getItemName"),re={parser:{yy:void 0},parse:w(async t=>{try{const l=await Te("treemap",t);K.debug("Treemap AST:",l);const n=re.parser?.yy;if(!(n instanceof ne))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Qe(l,n)}catch(a){throw K.error("Error parsing treemap:",a),a}},"parse")},tt=10,B=10,X=25,at=w((t,a,l,n)=>{const o=n.db,s=o.getConfig(),d=s.padding??tt,h=o.getDiagramTitle(),m=o.getRoot(),{themeVariables:c}=ae();if(!m)return;const u=h?30:0,b=he(a),r=s.nodeWidth?s.nodeWidth*B:960,x=s.nodeHeight?s.nodeHeight*B:500,S=r,v=x+u;b.attr("viewBox",`0 0 ${S} ${v}`),ue(b,v,S,s.useMaxWidth);let p;try{const e=s.valueFormat||",";if(e==="$0,0")p=w(i=>"$"+O(",")(i),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const i=/\.\d+/.exec(e),f=i?i[0]:"";p=w(C=>"$"+O(","+f)(C),"valueFormat")}else if(e.startsWith("$")){const i=e.substring(1);p=w(f=>"$"+O(i||"")(f),"valueFormat")}else p=O(e)}catch(e){K.error("Error creating format function:",e),p=O(",")}const g=J().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=J().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),k=J().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);h&&b.append("text").attr("x",S/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const V=b.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=Q(m).sum(e=>e.value??0).sort((e,i)=>(i.value??0)-(e.value??0)),ee=Ke().size([r,x]).paddingTop(e=>e.children&&e.children.length>0?X+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(R),se=ee.descendants().filter(e=>e.children&&e.children.length>0),W=V.selectAll(".treemapSection").data(se).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),W.append("clipPath").attr("id",(e,i)=>`clip-section-${a}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,i)=>`treemapSection section${i}`).attr("fill",e=>g(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>N(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const i=P({cssCompiledStyles:e.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),W.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const i=Y(this),f=e.data.name;i.text(f);const C=e.x1-e.x0,L=6;let $;s.showValues!==!1&&e.value?$=C-10-30-10-L:$=C-L-6;const A=Math.max(15,$),y=i.node();if(y.getComputedTextLength()>A){let T=f;for(;T.length>0;){if(T=f.substring(0,T.length-1),T.length===0){i.text("..."),y.getComputedTextLength()>A&&i.text("");break}if(i.text(T+"..."),y.getComputedTextLength()<=A)break}}}),s.showValues!==!1&&W.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const ie=ee.leaves(),j=V.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class",(e,i)=>`treemapNode treemapLeafGroup leaf${i}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);j.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?g(e.parent.data.name):g(e.data.name)).attr("style",e=>P({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?g(e.parent.data.name):g(e.data.name)).attr("stroke-width",3),j.append("clipPath").attr("id",(e,i)=>`clip-${a}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),j.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const i="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+k(e.data.name)+";",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,i)=>`url(#clip-${a}-${i})`).text(e=>e.data.name).each(function(e){const i=Y(this),f=e.x1-e.x0,C=e.y1-e.y0,L=i.node(),$=4,D=f-2*$,A=C-2*$;if(D<10||A<10){i.style("display","none");return}let y=parseInt(i.style("font-size"),10);const _=8,F=28,T=.6,z=6,H=2;for(;L.getComputedTextLength()>D&&y>_;)y--,i.style("font-size",`${y}px`);let I=Math.max(z,Math.min(F,Math.round(y*T))),Z=y+H+I;for(;Z>A&&y>_&&(y--,I=Math.max(z,Math.min(F,Math.round(y*T))),!(ID||y<_||A(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+k(i.data.name)+";",C=P({cssCompiledStyles:i.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${a}-${f})`).text(i=>i.value?p(i.value):"").each(function(i){const f=Y(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=Y(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const $=parseFloat(L.style("font-size")),D=28,A=.6,y=6,_=2,F=Math.max(y,Math.min(D,Math.round($*A)));f.style("font-size",`${F}px`);const z=(i.y1-i.y0)/2+$/2+_;f.attr("y",z);const H=i.x1-i.x0,ce=i.y1-i.y0-4,de=H-8;f.node().getComputedTextLength()>de||z+F>ce||F{const a=te(rt,t);return` .treemapNode.section { stroke: ${a.sectionStrokeColor}; stroke-width: ${a.sectionStrokeWidth}; diff --git a/docs/dist/assets/diagram-QEK2KX5R-FYQHmCXL.js b/docs/dist/assets/diagram-QEK2KX5R-DmJ77IJR.js similarity index 95% rename from docs/dist/assets/diagram-QEK2KX5R-FYQHmCXL.js rename to docs/dist/assets/diagram-QEK2KX5R-DmJ77IJR.js index 52b07598..e19c8b1f 100644 --- a/docs/dist/assets/diagram-QEK2KX5R-FYQHmCXL.js +++ b/docs/dist/assets/diagram-QEK2KX5R-DmJ77IJR.js @@ -1,4 +1,4 @@ -import{_ as l,s as k,g as R,q as E,p as F,a as I,b as _,H as D,y as G,D as f,E as C,F as P,l as z,K as H}from"./index-BtiIqbpV.js";import{p as V}from"./chunk-4BX2VUAB-DQFJwyRw.js";import{p as W}from"./treemap-KMMF4GRG-BdBrUw5q.js";import"./_baseUniq-UvPYksec.js";import"./_basePickBy-Dm_sMLMB.js";import"./clone-uEwA9FQU.js";var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},w={axes:[],curves:[],options:h},m=structuredClone(w),B=P.radar,j=l(()=>f({...B,...C().radar}),"getConfig"),b=l(()=>m.axes,"getAxes"),q=l(()=>m.curves,"getCurves"),K=l(()=>m.options,"getOptions"),N=l(a=>{m.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),U=l(a=>{m.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:X(t.entries)}))},"setCurves"),X=l(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=b();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),Y=l(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});m.options={showLegend:t.showLegend?.value??h.showLegend,ticks:t.ticks?.value??h.ticks,max:t.max?.value??h.max,min:t.min?.value??h.min,graticule:t.graticule?.value??h.graticule}},"setOptions"),Z=l(()=>{G(),m=structuredClone(w)},"clear"),$={getAxes:b,getCurves:q,getOptions:K,setAxes:N,setCurves:U,setOptions:Y,getConfig:j,clear:Z,setAccTitle:_,getAccTitle:I,setDiagramTitle:F,getDiagramTitle:E,getAccDescription:R,setAccDescription:k},J=l(a=>{V(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),Q={parse:l(async a=>{const t=await W("radar",a);z.debug(t),J(t)},"parse")},tt=l((a,t,e,r)=>{const s=r.db,o=s.getAxes(),i=s.getCurves(),n=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),u=D(t),p=et(u,c),g=n.max??Math.max(...i.map(y=>Math.max(...y.entries))),x=n.min,v=Math.min(c.width,c.height)/2;at(p,o,v,n.ticks,n.graticule),rt(p,o,v,c),M(p,o,i,x,g,n.graticule,c),T(p,i,n.showLegend,c),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),et=l((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return a.attr("viewbox",`0 0 ${e} ${r}`).attr("width",e).attr("height",r),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),at=l((a,t,e,r,s)=>{if(s==="circle")for(let o=0;o{const p=2*u*Math.PI/o-Math.PI/2,g=n*Math.cos(p),x=n*Math.sin(p);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),rt=l((a,t,e,r)=>{const s=t.length;for(let o=0;o{if(d.entries.length!==n)return;const p=d.entries.map((g,x)=>{const v=2*Math.PI*x/n-Math.PI/2,y=A(g,r,s,c),O=y*Math.cos(v),S=y*Math.sin(v);return{x:O,y:S}});o==="circle"?a.append("path").attr("d",L(p,i.curveTension)).attr("class",`radarCurve-${u}`):o==="polygon"&&a.append("polygon").attr("points",p.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}l(M,"drawCurves");function A(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}l(A,"relativeRadius");function L(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s{const d=a.append("g").attr("transform",`translate(${s}, ${o+c*i})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}l(T,"drawLegend");var st={draw:tt},nt=l((a,t)=>{let e="";for(let r=0;rf({...B,...C().radar}),"getConfig"),b=l(()=>m.axes,"getAxes"),q=l(()=>m.curves,"getCurves"),K=l(()=>m.options,"getOptions"),N=l(a=>{m.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),U=l(a=>{m.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:X(t.entries)}))},"setCurves"),X=l(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=b();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),Y=l(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});m.options={showLegend:t.showLegend?.value??h.showLegend,ticks:t.ticks?.value??h.ticks,max:t.max?.value??h.max,min:t.min?.value??h.min,graticule:t.graticule?.value??h.graticule}},"setOptions"),Z=l(()=>{G(),m=structuredClone(w)},"clear"),$={getAxes:b,getCurves:q,getOptions:K,setAxes:N,setCurves:U,setOptions:Y,getConfig:j,clear:Z,setAccTitle:_,getAccTitle:I,setDiagramTitle:F,getDiagramTitle:E,getAccDescription:R,setAccDescription:k},J=l(a=>{V(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),Q={parse:l(async a=>{const t=await W("radar",a);z.debug(t),J(t)},"parse")},tt=l((a,t,e,r)=>{const s=r.db,o=s.getAxes(),i=s.getCurves(),n=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),u=D(t),p=et(u,c),g=n.max??Math.max(...i.map(y=>Math.max(...y.entries))),x=n.min,v=Math.min(c.width,c.height)/2;at(p,o,v,n.ticks,n.graticule),rt(p,o,v,c),M(p,o,i,x,g,n.graticule,c),T(p,i,n.showLegend,c),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),et=l((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return a.attr("viewbox",`0 0 ${e} ${r}`).attr("width",e).attr("height",r),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),at=l((a,t,e,r,s)=>{if(s==="circle")for(let o=0;o{const p=2*u*Math.PI/o-Math.PI/2,g=n*Math.cos(p),x=n*Math.sin(p);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),rt=l((a,t,e,r)=>{const s=t.length;for(let o=0;o{if(d.entries.length!==n)return;const p=d.entries.map((g,x)=>{const v=2*Math.PI*x/n-Math.PI/2,y=A(g,r,s,c),O=y*Math.cos(v),S=y*Math.sin(v);return{x:O,y:S}});o==="circle"?a.append("path").attr("d",L(p,i.curveTension)).attr("class",`radarCurve-${u}`):o==="polygon"&&a.append("polygon").attr("points",p.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}l(M,"drawCurves");function A(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}l(A,"relativeRadius");function L(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s{const d=a.append("g").attr("transform",`translate(${s}, ${o+c*i})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}l(T,"drawLegend");var st={draw:tt},nt=l((a,t)=>{let e="";for(let r=0;r0&&this.packet.push(t)}clear(){W(),this.packet=[]}},b(u,"PacketDB"),u),M=1e4,Y=b((e,t)=>{_(e,t);let r=-1,o=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const o=t*r-1,n=t*r;return[{start:e.start,end:o,label:e.label,bits:o-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:b(async e=>{const t=await N("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,r)},"parse")},I=b((e,t,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=B(t);f.attr("viewbox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[y,$]of p.entries())O(f,$,y,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((e,t,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=r*(o+l)+l;for(const s of t){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=b(({packet:e}={})=>{const t=m(q,e);return` +import{_ as b,D as m,H as B,e as C,l as w,b as S,a as D,p as T,q as E,g as F,s as P,E as z,F as A,y as W}from"./index-Cbm2MoYO.js";import{p as _}from"./chunk-4BX2VUAB-B95fRcaE.js";import{p as N}from"./treemap-KMMF4GRG-Bqtmffqa.js";import"./_baseUniq-yJVicqoM.js";import"./_basePickBy-Btg4tW5o.js";import"./clone-D4gAIgVI.js";var L=A.packet,u,v=(u=class{constructor(){this.packet=[],this.setAccTitle=S,this.getAccTitle=D,this.setDiagramTitle=T,this.getDiagramTitle=E,this.getAccDescription=F,this.setAccDescription=P}getConfig(){const t=m({...L,...z().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){W(),this.packet=[]}},b(u,"PacketDB"),u),M=1e4,Y=b((e,t)=>{_(e,t);let r=-1,o=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const o=t*r-1,n=t*r;return[{start:e.start,end:o,label:e.label,bits:o-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:b(async e=>{const t=await N("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,r)},"parse")},I=b((e,t,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=B(t);f.attr("viewbox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[y,$]of p.entries())O(f,$,y,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((e,t,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=r*(o+l)+l;for(const s of t){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=b(({packet:e}={})=>{const t=m(q,e);return` .packetByte { font-size: ${t.byteFontSize}; } diff --git a/docs/dist/assets/erDiagram-Q2GNP2WA-RPj5FPuZ.js b/docs/dist/assets/erDiagram-Q2GNP2WA-B-egxCPq.js similarity index 98% rename from docs/dist/assets/erDiagram-Q2GNP2WA-RPj5FPuZ.js rename to docs/dist/assets/erDiagram-Q2GNP2WA-B-egxCPq.js index afe96bbe..8c0836b6 100644 --- a/docs/dist/assets/erDiagram-Q2GNP2WA-RPj5FPuZ.js +++ b/docs/dist/assets/erDiagram-Q2GNP2WA-B-egxCPq.js @@ -1,4 +1,4 @@ -import{g as Dt}from"./chunk-55IACEB6-k1CzMQx-.js";import{s as wt}from"./chunk-QN33PNHL-Ee1tIsWT.js";import{_ as u,b as Vt,a as Lt,s as Mt,g as Bt,p as Ft,q as Yt,c as tt,l as D,y as Pt,x as zt,A as Gt,B as Kt,o as Zt,r as Ut,d as jt,u as Wt}from"./index-BtiIqbpV.js";import{c as Qt}from"./channel-92COyuQS.js";var dt=(function(){var s=u(function(R,n,a,c){for(a=a||{},c=R.length;c--;a[R[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],l=[1,10],d=[1,11],o=[1,12],h=[1,13],y=[1,20],_=[1,21],E=[1,22],V=[1,23],Z=[1,24],S=[1,19],et=[1,25],U=[1,26],T=[1,18],L=[1,33],st=[1,34],it=[1,35],rt=[1,36],nt=[1,37],pt=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],A=[1,43],M=[1,52],B=[40,50,68,69],F=[1,63],Y=[1,61],N=[1,58],P=[1,62],z=[1,64],j=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],ft=[63,64,65,66,67],yt=[1,81],_t=[1,80],gt=[1,78],bt=[1,79],mt=[6,10,42,47],C=[6,10,13,41,42,47,48,49],W=[1,89],Q=[1,88],X=[1,87],G=[19,56],Et=[1,98],kt=[1,97],at=[19,56,58,60],ct={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:u(function(n,a,c,r,p,t,K){var e=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:this.$=t[e].replace(/"/g,"");break;case 55:case 78:this.$=t[e];break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 62:case 63:case 66:this.$=t[e];break;case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 67:this.$=t[e].replace(/"/g,"");break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=r.Cardinality.ZERO_OR_ONE;break;case 70:this.$=r.Cardinality.ZERO_OR_MORE;break;case 71:this.$=r.Cardinality.ONE_OR_MORE;break;case 72:this.$=r.Cardinality.ONLY_ONE;break;case 73:this.$=r.Cardinality.MD_PARENT;break;case 74:this.$=r.Identification.NON_IDENTIFYING;break;case 75:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:l,24:d,26:o,28:h,29:14,30:15,31:16,32:17,33:y,34:_,35:E,36:V,37:Z,40:S,43:et,44:U,50:T},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:l,24:d,26:o,28:h,29:14,30:15,31:16,32:17,33:y,34:_,35:E,36:V,37:Z,40:S,43:et,44:U,50:T},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:L,64:st,65:it,66:rt,67:nt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(pt,[2,54]),s(pt,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:A},{16:44,40:O,41:A},{16:45,40:O,41:A},s(i,[2,4]),{11:46,40:S,50:T},{16:47,40:O,41:A},{18:48,19:[1,49],51:50,52:51,56:M},{11:53,40:S,50:T},{62:54,68:[1,55],69:[1,56]},s(B,[2,69]),s(B,[2,70]),s(B,[2,71]),s(B,[2,72]),s(B,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:F,38:57,41:Y,42:N,45:59,46:60,48:P,49:z},s(j,[2,37]),s(j,[2,38]),{16:65,40:O,41:A,42:N},{13:F,38:66,41:Y,42:N,45:59,46:60,48:P,49:z},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:N,63:L,64:st,65:it,66:rt,67:nt}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:M},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:L,64:st,65:it,66:rt,67:nt},s(ft,[2,74]),s(ft,[2,75]),{6:yt,10:_t,39:77,42:gt,47:bt},{40:[1,82],41:[1,83]},s(mt,[2,43],{46:84,13:F,41:Y,48:P,49:z}),s(C,[2,45]),s(C,[2,50]),s(C,[2,51]),s(C,[2,52]),s(C,[2,53]),s(i,[2,41],{42:N}),{6:yt,10:_t,39:85,42:gt,47:bt},{14:86,40:W,50:Q,70:X},{16:90,40:O,41:A},{11:91,40:S,50:T},{18:92,19:[1,93],51:50,52:51,56:M},s(i,[2,12]),{19:[2,57]},s(G,[2,58],{54:94,55:95,57:96,59:Et,60:kt}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:F,41:Y,45:101,46:60,48:P,49:z},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(j,[2,39]),s(j,[2,40]),s(C,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:N},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(G,[2,59],{55:106,58:[1,107],60:kt}),s(G,[2,60]),s(at,[2,64]),s(G,[2,67]),s(at,[2,66]),{18:108,19:[1,109],51:50,52:51,56:M},{16:110,40:O,41:A},s(mt,[2,44],{46:84,13:F,41:Y,48:P,49:z}),{14:111,40:W,50:Q,70:X},{16:112,40:O,41:A},{14:113,40:W,50:Q,70:X},s(i,[2,13]),s(G,[2,61]),{57:114,59:Et},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:N}),s(i,[2,11]),{13:[1,117],42:N},s(i,[2,10]),s(at,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:M},{14:120,40:W,50:Q,70:X},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:u(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:u(function(n){var a=this,c=[0],r=[],p=[null],t=[],K=this.table,e="",H=0,St=0,xt=2,Tt=1,It=t.slice.call(arguments,1),f=Object.create(this.lexer),x={yy:{}};for(var lt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,lt)&&(x.yy[lt]=this.yy[lt]);f.setInput(n,x.yy),x.yy.lexer=f,x.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var ot=f.yylloc;t.push(ot);var Ct=f.options&&f.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function vt(b){c.length=c.length-2*b,p.length=p.length-b,t.length=t.length-b}u(vt,"popStack");function Ot(){var b;return b=r.pop()||f.lex()||Tt,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}u(Ot,"lex");for(var g,I,m,ht,v={},J,k,At,$;;){if(I=c[c.length-1],this.defaultActions[I]?m=this.defaultActions[I]:((g===null||typeof g>"u")&&(g=Ot()),m=K[I]&&K[I][g]),typeof m>"u"||!m.length||!m[0]){var ut="";$=[];for(J in K[I])this.terminals_[J]&&J>xt&&$.push("'"+this.terminals_[J]+"'");f.showPosition?ut="Parse error on line "+(H+1)+`: +import{g as Dt}from"./chunk-55IACEB6-DLzn1p-J.js";import{s as wt}from"./chunk-QN33PNHL-DLlZQk9s.js";import{_ as u,b as Vt,a as Lt,s as Mt,g as Bt,p as Ft,q as Yt,c as tt,l as D,y as Pt,x as zt,A as Gt,B as Kt,o as Zt,r as Ut,d as jt,u as Wt}from"./index-Cbm2MoYO.js";import{c as Qt}from"./channel-Bosr5z2r.js";var dt=(function(){var s=u(function(R,n,a,c){for(a=a||{},c=R.length;c--;a[R[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],l=[1,10],d=[1,11],o=[1,12],h=[1,13],y=[1,20],_=[1,21],E=[1,22],V=[1,23],Z=[1,24],S=[1,19],et=[1,25],U=[1,26],T=[1,18],L=[1,33],st=[1,34],it=[1,35],rt=[1,36],nt=[1,37],pt=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],A=[1,43],M=[1,52],B=[40,50,68,69],F=[1,63],Y=[1,61],N=[1,58],P=[1,62],z=[1,64],j=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],ft=[63,64,65,66,67],yt=[1,81],_t=[1,80],gt=[1,78],bt=[1,79],mt=[6,10,42,47],C=[6,10,13,41,42,47,48,49],W=[1,89],Q=[1,88],X=[1,87],G=[19,56],Et=[1,98],kt=[1,97],at=[19,56,58,60],ct={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:u(function(n,a,c,r,p,t,K){var e=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:this.$=t[e].replace(/"/g,"");break;case 55:case 78:this.$=t[e];break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 62:case 63:case 66:this.$=t[e];break;case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 67:this.$=t[e].replace(/"/g,"");break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=r.Cardinality.ZERO_OR_ONE;break;case 70:this.$=r.Cardinality.ZERO_OR_MORE;break;case 71:this.$=r.Cardinality.ONE_OR_MORE;break;case 72:this.$=r.Cardinality.ONLY_ONE;break;case 73:this.$=r.Cardinality.MD_PARENT;break;case 74:this.$=r.Identification.NON_IDENTIFYING;break;case 75:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:l,24:d,26:o,28:h,29:14,30:15,31:16,32:17,33:y,34:_,35:E,36:V,37:Z,40:S,43:et,44:U,50:T},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:l,24:d,26:o,28:h,29:14,30:15,31:16,32:17,33:y,34:_,35:E,36:V,37:Z,40:S,43:et,44:U,50:T},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:L,64:st,65:it,66:rt,67:nt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(pt,[2,54]),s(pt,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:A},{16:44,40:O,41:A},{16:45,40:O,41:A},s(i,[2,4]),{11:46,40:S,50:T},{16:47,40:O,41:A},{18:48,19:[1,49],51:50,52:51,56:M},{11:53,40:S,50:T},{62:54,68:[1,55],69:[1,56]},s(B,[2,69]),s(B,[2,70]),s(B,[2,71]),s(B,[2,72]),s(B,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:F,38:57,41:Y,42:N,45:59,46:60,48:P,49:z},s(j,[2,37]),s(j,[2,38]),{16:65,40:O,41:A,42:N},{13:F,38:66,41:Y,42:N,45:59,46:60,48:P,49:z},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:N,63:L,64:st,65:it,66:rt,67:nt}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:M},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:L,64:st,65:it,66:rt,67:nt},s(ft,[2,74]),s(ft,[2,75]),{6:yt,10:_t,39:77,42:gt,47:bt},{40:[1,82],41:[1,83]},s(mt,[2,43],{46:84,13:F,41:Y,48:P,49:z}),s(C,[2,45]),s(C,[2,50]),s(C,[2,51]),s(C,[2,52]),s(C,[2,53]),s(i,[2,41],{42:N}),{6:yt,10:_t,39:85,42:gt,47:bt},{14:86,40:W,50:Q,70:X},{16:90,40:O,41:A},{11:91,40:S,50:T},{18:92,19:[1,93],51:50,52:51,56:M},s(i,[2,12]),{19:[2,57]},s(G,[2,58],{54:94,55:95,57:96,59:Et,60:kt}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:F,41:Y,45:101,46:60,48:P,49:z},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(j,[2,39]),s(j,[2,40]),s(C,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:N},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(G,[2,59],{55:106,58:[1,107],60:kt}),s(G,[2,60]),s(at,[2,64]),s(G,[2,67]),s(at,[2,66]),{18:108,19:[1,109],51:50,52:51,56:M},{16:110,40:O,41:A},s(mt,[2,44],{46:84,13:F,41:Y,48:P,49:z}),{14:111,40:W,50:Q,70:X},{16:112,40:O,41:A},{14:113,40:W,50:Q,70:X},s(i,[2,13]),s(G,[2,61]),{57:114,59:Et},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:N}),s(i,[2,11]),{13:[1,117],42:N},s(i,[2,10]),s(at,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:M},{14:120,40:W,50:Q,70:X},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:u(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:u(function(n){var a=this,c=[0],r=[],p=[null],t=[],K=this.table,e="",H=0,St=0,xt=2,Tt=1,It=t.slice.call(arguments,1),f=Object.create(this.lexer),x={yy:{}};for(var lt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,lt)&&(x.yy[lt]=this.yy[lt]);f.setInput(n,x.yy),x.yy.lexer=f,x.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var ot=f.yylloc;t.push(ot);var Ct=f.options&&f.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function vt(b){c.length=c.length-2*b,p.length=p.length-b,t.length=t.length-b}u(vt,"popStack");function Ot(){var b;return b=r.pop()||f.lex()||Tt,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}u(Ot,"lex");for(var g,I,m,ht,v={},J,k,At,$;;){if(I=c[c.length-1],this.defaultActions[I]?m=this.defaultActions[I]:((g===null||typeof g>"u")&&(g=Ot()),m=K[I]&&K[I][g]),typeof m>"u"||!m.length||!m[0]){var ut="";$=[];for(J in K[I])this.terminals_[J]&&J>xt&&$.push("'"+this.terminals_[J]+"'");f.showPosition?ut="Parse error on line "+(H+1)+`: `+f.showPosition()+` Expecting `+$.join(", ")+", got '"+(this.terminals_[g]||g)+"'":ut="Parse error on line "+(H+1)+": Unexpected "+(g==Tt?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(ut,{text:f.match,token:this.terminals_[g]||g,line:f.yylineno,loc:ot,expected:$})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+g);switch(m[0]){case 1:c.push(g),p.push(f.yytext),t.push(f.yylloc),c.push(m[1]),g=null,St=f.yyleng,e=f.yytext,H=f.yylineno,ot=f.yylloc;break;case 2:if(k=this.productions_[m[1]][1],v.$=p[p.length-k],v._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},Ct&&(v._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),ht=this.performAction.apply(v,[e,St,H,x.yy,m[1],p,t].concat(It)),typeof ht<"u")return ht;k&&(c=c.slice(0,-1*k*2),p=p.slice(0,-1*k),t=t.slice(0,-1*k)),c.push(this.productions_[m[1]][0]),p.push(v.$),t.push(v._$),At=K[c[c.length-2]][c[c.length-1]],c.push(At);break;case 3:return!0}}return!0},"parse")},Rt=(function(){var R={EOF:1,parseError:u(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:u(function(n,a){return this.yy=a||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:u(function(n){var a=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===r.length?this.yylloc.first_column:0)+r[r.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(n){this.unput(this.match.slice(n))},"less"),pastInput:u(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/docs/dist/assets/flowDiagram-NV44I4VS-kx5p1N1n.js b/docs/dist/assets/flowDiagram-NV44I4VS-D9dHHG_5.js similarity index 99% rename from docs/dist/assets/flowDiagram-NV44I4VS-kx5p1N1n.js rename to docs/dist/assets/flowDiagram-NV44I4VS-D9dHHG_5.js index 4b42acbd..e2aa9085 100644 --- a/docs/dist/assets/flowDiagram-NV44I4VS-kx5p1N1n.js +++ b/docs/dist/assets/flowDiagram-NV44I4VS-D9dHHG_5.js @@ -1,4 +1,4 @@ -import{g as qt}from"./chunk-FMBD7UC4-mpZRA3cF.js";import{_ as m,n as Ot,l as $,c as b1,d as E1,o as Ht,r as Xt,u as it,b as Qt,s as Jt,p as Zt,a as $t,g as te,q as ee,k as se,t as ie,J as re,v as ae,x as st,y as ne,z as ue,A as oe}from"./index-BtiIqbpV.js";import{g as le}from"./chunk-55IACEB6-k1CzMQx-.js";import{s as ce}from"./chunk-QN33PNHL-Ee1tIsWT.js";import{c as he}from"./channel-92COyuQS.js";var de="flowchart-",G1,pe=(G1=class{constructor(){this.vertexCounter=0,this.config=b1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Qt,this.setAccDescription=Jt,this.setDiagramTitle=Zt,this.getAccTitle=$t,this.getAccDescription=te,this.getDiagramTitle=ee,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return se.sanitizeText(i,this.config)}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return r.domId;return i}addVertex(i,r,a,n,l,g,c={},b){if(!i||i.trim().length===0)return;let u;if(b!==void 0){let k;b.includes(` +import{g as qt}from"./chunk-FMBD7UC4-D1HxKLa4.js";import{_ as m,n as Ot,l as $,c as b1,d as E1,o as Ht,r as Xt,u as it,b as Qt,s as Jt,p as Zt,a as $t,g as te,q as ee,k as se,t as ie,J as re,v as ae,x as st,y as ne,z as ue,A as oe}from"./index-Cbm2MoYO.js";import{g as le}from"./chunk-55IACEB6-DLzn1p-J.js";import{s as ce}from"./chunk-QN33PNHL-DLlZQk9s.js";import{c as he}from"./channel-Bosr5z2r.js";var de="flowchart-",G1,pe=(G1=class{constructor(){this.vertexCounter=0,this.config=b1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Qt,this.setAccDescription=Jt,this.setDiagramTitle=Zt,this.getAccTitle=$t,this.getAccDescription=te,this.getDiagramTitle=ee,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return se.sanitizeText(i,this.config)}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return r.domId;return i}addVertex(i,r,a,n,l,g,c={},b){if(!i||i.trim().length===0)return;let u;if(b!==void 0){let k;b.includes(` `)?k=b+` `:k=`{ `+b+` diff --git a/docs/dist/assets/ganttDiagram-LVOFAZNH-C1uRgA1W.js b/docs/dist/assets/ganttDiagram-LVOFAZNH-S9Yz38r1.js similarity index 99% rename from docs/dist/assets/ganttDiagram-LVOFAZNH-C1uRgA1W.js rename to docs/dist/assets/ganttDiagram-LVOFAZNH-S9Yz38r1.js index bb6a1a64..4034d0c8 100644 --- a/docs/dist/assets/ganttDiagram-LVOFAZNH-C1uRgA1W.js +++ b/docs/dist/assets/ganttDiagram-LVOFAZNH-S9Yz38r1.js @@ -1,4 +1,4 @@ -import{b0 as nn,b1 as Ln,b2 as rn,b3 as an,b4 as sn,b5 as se,b6 as An,aI as we,_ as h,g as In,s as Wn,q as On,p as Hn,a as Nn,b as Vn,c as _t,d as Bt,e as Pn,b7 as at,l as Kt,k as zn,j as Rn,y as qn,u as Bn}from"./index-BtiIqbpV.js";import{b as Zn,t as Oe,c as Xn,a as Gn,l as $n}from"./linear-DIZeUs0A.js";import{i as Qn}from"./init-Gi6I4Gst.js";import"./defaultLocale-C4B-KCzX.js";function jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(n=a)&&(n=a)}return n}function Jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Kn(t){return t}var Xt=1,oe=2,ke=3,Zt=4,He=1e-6;function tr(t){return"translate("+t+",0)"}function er(t){return"translate(0,"+t+")"}function nr(t){return e=>+t(e)}function rr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function ar(){return!this.__axis}function on(t,e){var n=[],r=null,a=null,i=6,s=6,y=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=t===Xt||t===Zt?-1:1,g=t===Zt||t===oe?"x":"y",E=t===Xt||t===ke?tr:er;function C(b){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),O=a??(e.tickFormat?e.tickFormat.apply(e,n):Kn),M=Math.max(i,0)+y,I=e.range(),V=+I[0]+_,W=+I[I.length-1]+_,B=(e.bandwidth?rr:nr)(e.copy(),_),Q=b.selection?b.selection():b,D=Q.selectAll(".domain").data([null]),H=Q.selectAll(".tick").data(X,e).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),F=H.select("line"),S=H.select("text");D=D.merge(D.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),F=F.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",p*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,p*M).attr("dy",t===Xt?"0em":t===ke?"0.71em":"0.32em")),b!==Q&&(D=D.transition(b),H=H.transition(b),F=F.transition(b),S=S.transition(b),x=x.transition(b).attr("opacity",He).attr("transform",function(v){return isFinite(v=B(v))?E(v+_):this.getAttribute("transform")}),Y.attr("opacity",He).attr("transform",function(v){var U=this.parentNode.__axis;return E((U&&isFinite(U=U(v))?U:B(v))+_)})),x.remove(),D.attr("d",t===Zt||t===oe?s?"M"+p*s+","+V+"H"+_+"V"+W+"H"+p*s:"M"+_+","+V+"V"+W:s?"M"+V+","+p*s+"V"+_+"H"+W+"V"+p*s:"M"+V+","+_+"H"+W),H.attr("opacity",1).attr("transform",function(v){return E(B(v)+_)}),F.attr(g+"2",p*i),S.attr(g,p*M).text(O),Q.filter(ar).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===oe?"start":t===Zt?"end":"middle"),Q.each(function(){this.__axis=B})}return C.scale=function(b){return arguments.length?(e=b,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),C):n.slice()},C.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),C):r&&r.slice()},C.tickFormat=function(b){return arguments.length?(a=b,C):a},C.tickSize=function(b){return arguments.length?(i=s=+b,C):i},C.tickSizeInner=function(b){return arguments.length?(i=+b,C):i},C.tickSizeOuter=function(b){return arguments.length?(s=+b,C):s},C.tickPadding=function(b){return arguments.length?(y=+b,C):y},C.offset=function(b){return arguments.length?(_=+b,C):_},C}function ir(t){return on(Xt,t)}function sr(t){return on(ke,t)}const or=Math.PI/180,cr=180/Math.PI,te=18,cn=.96422,un=1,ln=.82521,fn=4/29,St=6/29,hn=3*St*St,ur=St*St*St;function dn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof dt)return mn(t);t instanceof nn||(t=Ln(t));var e=fe(t.r),n=fe(t.g),r=fe(t.b),a=ce((.2225045*e+.7168786*n+.0606169*r)/un),i,s;return e===n&&n===r?i=s=a:(i=ce((.4360747*e+.3850649*n+.1430804*r)/cn),s=ce((.0139322*e+.0971045*n+.7141733*r)/ln)),new ft(116*a-16,500*(i-a),200*(a-s),t.opacity)}function lr(t,e,n,r){return arguments.length===1?dn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}rn(ft,lr,an(sn,{brighter(t){return new ft(this.l+te*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-te*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=cn*ue(e),t=un*ue(t),n=ln*ue(n),new nn(le(3.1338561*e-1.6168667*t-.4906146*n),le(-.9787684*e+1.9161415*t+.033454*n),le(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ce(t){return t>ur?Math.pow(t,1/3):t/hn+fn}function ue(t){return t>St?t*t*t:hn*(t-fn)}function le(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function fe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function fr(t){if(t instanceof dt)return new dt(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=dn(t)),t.a===0&&t.b===0)return new dt(NaN,0(t(i=new Date(+i)),i),a.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),a.round=i=>{const s=a(i),y=a.ceil(i);return i-s(e(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,y)=>{const _=[];if(i=a.ceil(i),y=y==null?1:Math.floor(y),!(i0))return _;let p;do _.push(p=new Date(+i)),e(i,y),t(i);while(pet(s=>{if(s>=s)for(;t(s),!i(s);)s.setTime(s-1)},(s,y)=>{if(s>=s)if(y<0)for(;++y<=0;)for(;e(s,-1),!i(s););else for(;--y>=0;)for(;e(s,1),!i(s););}),n&&(a.count=(i,s)=>(he.setTime(+i),de.setTime(+s),t(he),t(de),Math.floor(n(he,de))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?s=>r(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const Yt=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Yt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Yt);Yt.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,De=yt*7,Ne=yt*30,me=yt*365,vt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const Wt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());Wt.range;const gr=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());gr.range;const Ot=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ot.range;const yr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());yr.range;const Tt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);Tt.range;const Ce=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);Ce.range;const kr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));kr.range;function wt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/De)}const Vt=wt(0),Ht=wt(1),gn=wt(2),yn=wt(3),bt=wt(4),kn=wt(5),pn=wt(6);Vt.range;Ht.range;gn.range;yn.range;bt.range;kn.range;pn.range;function Dt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/De)}const vn=Dt(0),ee=Dt(1),pr=Dt(2),vr=Dt(3),Ut=Dt(4),Tr=Dt(5),br=Dt(6);vn.range;ee.range;pr.range;vr.range;Ut.range;Tr.range;br.range;const Nt=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nt.range;const xr=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());xr.range;const kt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const xt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());xt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});xt.range;function wr(t,e,n,r,a,i){const s=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[i,1,ct],[i,5,5*ct],[i,15,15*ct],[i,30,30*ct],[a,1,gt],[a,3,3*gt],[a,6,6*gt],[a,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,De],[e,1,Ne],[e,3,3*Ne],[t,1,me]];function y(p,g,E){const C=gM).right(s,C);if(b===s.length)return t.every(Oe(p/me,g/me,E));if(b===0)return Yt.every(Math.max(Oe(p,g,E),1));const[X,O]=s[C/s[b-1][2]53)return null;"w"in f||(f.w=1),"Z"in f?(L=ye(Lt(f.y,0,1)),$=L.getUTCDay(),L=$>4||$===0?ee.ceil(L):ee(L),L=Ce.offset(L,(f.V-1)*7),f.y=L.getUTCFullYear(),f.m=L.getUTCMonth(),f.d=L.getUTCDate()+(f.w+6)%7):(L=ge(Lt(f.y,0,1)),$=L.getDay(),L=$>4||$===0?Ht.ceil(L):Ht(L),L=Tt.offset(L,(f.V-1)*7),f.y=L.getFullYear(),f.m=L.getMonth(),f.d=L.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),$="Z"in f?ye(Lt(f.y,0,1)).getUTCDay():ge(Lt(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+f.W*7-($+5)%7:f.w+f.U*7-($+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,ye(f)):ge(f)}}function x(k,A,N,f){for(var J=0,L=A.length,$=N.length,Z,rt;J=$)return-1;if(Z=A.charCodeAt(J++),Z===37){if(Z=A.charAt(J++),rt=Q[Z in Ve?A.charAt(J++):Z],!rt||(f=rt(k,N,f))<0)return-1}else if(Z!=N.charCodeAt(f++))return-1}return f}function Y(k,A,N){var f=p.exec(A.slice(N));return f?(k.p=g.get(f[0].toLowerCase()),N+f[0].length):-1}function F(k,A,N){var f=b.exec(A.slice(N));return f?(k.w=X.get(f[0].toLowerCase()),N+f[0].length):-1}function S(k,A,N){var f=E.exec(A.slice(N));return f?(k.w=C.get(f[0].toLowerCase()),N+f[0].length):-1}function v(k,A,N){var f=I.exec(A.slice(N));return f?(k.m=V.get(f[0].toLowerCase()),N+f[0].length):-1}function U(k,A,N){var f=O.exec(A.slice(N));return f?(k.m=M.get(f[0].toLowerCase()),N+f[0].length):-1}function l(k,A,N){return x(k,e,A,N)}function m(k,A,N){return x(k,n,A,N)}function T(k,A,N){return x(k,r,A,N)}function d(k){return s[k.getDay()]}function w(k){return i[k.getDay()]}function c(k){return _[k.getMonth()]}function u(k){return y[k.getMonth()]}function o(k){return a[+(k.getHours()>=12)]}function z(k){return 1+~~(k.getMonth()/3)}function P(k){return s[k.getUTCDay()]}function R(k){return i[k.getUTCDay()]}function K(k){return _[k.getUTCMonth()]}function G(k){return y[k.getUTCMonth()]}function j(k){return a[+(k.getUTCHours()>=12)]}function it(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var A=D(k+="",W);return A.toString=function(){return k},A},parse:function(k){var A=H(k+="",!1);return A.toString=function(){return k},A},utcFormat:function(k){var A=D(k+="",B);return A.toString=function(){return k},A},utcParse:function(k){var A=H(k+="",!0);return A.toString=function(){return k},A}}}var Ve={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,_r=/^%/,Sr=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",i=a.length;return r+(i[e.toLowerCase(),n]))}function Yr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ze(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ir(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Wr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Or(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Re(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function qe(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Rr(t,e,n){var r=_r.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function qr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Be(t,e){return q(t.getDate(),e,2)}function Zr(t,e){return q(t.getHours(),e,2)}function Xr(t,e){return q(t.getHours()%12||12,e,2)}function Gr(t,e){return q(1+Tt.count(kt(t),t),e,3)}function Tn(t,e){return q(t.getMilliseconds(),e,3)}function $r(t,e){return Tn(t,e)+"000"}function Qr(t,e){return q(t.getMonth()+1,e,2)}function jr(t,e){return q(t.getMinutes(),e,2)}function Jr(t,e){return q(t.getSeconds(),e,2)}function Kr(t){var e=t.getDay();return e===0?7:e}function ta(t,e){return q(Vt.count(kt(t)-1,t),e,2)}function bn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function ea(t,e){return t=bn(t),q(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function na(t){return t.getDay()}function ra(t,e){return q(Ht.count(kt(t)-1,t),e,2)}function aa(t,e){return q(t.getFullYear()%100,e,2)}function ia(t,e){return t=bn(t),q(t.getFullYear()%100,e,2)}function sa(t,e){return q(t.getFullYear()%1e4,e,4)}function oa(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),q(t.getFullYear()%1e4,e,4)}function ca(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Ze(t,e){return q(t.getUTCDate(),e,2)}function ua(t,e){return q(t.getUTCHours(),e,2)}function la(t,e){return q(t.getUTCHours()%12||12,e,2)}function fa(t,e){return q(1+Ce.count(xt(t),t),e,3)}function xn(t,e){return q(t.getUTCMilliseconds(),e,3)}function ha(t,e){return xn(t,e)+"000"}function da(t,e){return q(t.getUTCMonth()+1,e,2)}function ma(t,e){return q(t.getUTCMinutes(),e,2)}function ga(t,e){return q(t.getUTCSeconds(),e,2)}function ya(t){var e=t.getUTCDay();return e===0?7:e}function ka(t,e){return q(vn.count(xt(t)-1,t),e,2)}function wn(t){var e=t.getUTCDay();return e>=4||e===0?Ut(t):Ut.ceil(t)}function pa(t,e){return t=wn(t),q(Ut.count(xt(t),t)+(xt(t).getUTCDay()===4),e,2)}function va(t){return t.getUTCDay()}function Ta(t,e){return q(ee.count(xt(t)-1,t),e,2)}function ba(t,e){return q(t.getUTCFullYear()%100,e,2)}function xa(t,e){return t=wn(t),q(t.getUTCFullYear()%100,e,2)}function wa(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Da(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ut(t):Ut.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Ca(){return"+0000"}function Xe(){return"%"}function Ge(t){return+t}function $e(t){return Math.floor(+t/1e3)}var Mt,ne;Ma({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ma(t){return Mt=Mr(t),ne=Mt.format,Mt.parse,Mt.utcFormat,Mt.utcParse,Mt}function _a(t){return new Date(t)}function Sa(t){return t instanceof Date?+t:+new Date(+t)}function Dn(t,e,n,r,a,i,s,y,_,p){var g=Xn(),E=g.invert,C=g.domain,b=p(".%L"),X=p(":%S"),O=p("%I:%M"),M=p("%I %p"),I=p("%a %d"),V=p("%b %d"),W=p("%B"),B=p("%Y");function Q(D){return(_(D)4&&(b+=7),C.add(b,n));return X.diff(O,"week")+1},y.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var _=y.startOf;y.startOf=function(p,g){var E=this.$utils(),C=!!E.u(g)||g;return E.p(p)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):_.bind(this)(p,g)}}}))})(Gt)),Gt.exports}var Ea=Ua();const La=we(Ea);var $t={exports:{}},Aa=$t.exports,je;function Ia(){return je||(je=1,(function(t,e){(function(n,r){t.exports=r()})(Aa,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,s=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,_={},p=function(M){return(M=+M)+(M>68?1900:2e3)},g=function(M){return function(I){this[M]=+I}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(M){(this.zone||(this.zone={})).offset=(function(I){if(!I||I==="Z")return 0;var V=I.match(/([+-]|\d\d)/g),W=60*V[1]+(+V[2]||0);return W===0?0:V[0]==="+"?-W:W})(M)}],C=function(M){var I=_[M];return I&&(I.indexOf?I:I.s.concat(I.f))},b=function(M,I){var V,W=_.meridiem;if(W){for(var B=1;B<=24;B+=1)if(M.indexOf(W(B,0,I))>-1){V=B>12;break}}else V=M===(I?"pm":"PM");return V},X={A:[y,function(M){this.afternoon=b(M,!1)}],a:[y,function(M){this.afternoon=b(M,!0)}],Q:[a,function(M){this.month=3*(M-1)+1}],S:[a,function(M){this.milliseconds=100*+M}],SS:[i,function(M){this.milliseconds=10*+M}],SSS:[/\d{3}/,function(M){this.milliseconds=+M}],s:[s,g("seconds")],ss:[s,g("seconds")],m:[s,g("minutes")],mm:[s,g("minutes")],H:[s,g("hours")],h:[s,g("hours")],HH:[s,g("hours")],hh:[s,g("hours")],D:[s,g("day")],DD:[i,g("day")],Do:[y,function(M){var I=_.ordinal,V=M.match(/\d+/);if(this.day=V[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===M&&(this.day=W)}],w:[s,g("week")],ww:[i,g("week")],M:[s,g("month")],MM:[i,g("month")],MMM:[y,function(M){var I=C("months"),V=(C("monthsShort")||I.map((function(W){return W.slice(0,3)}))).indexOf(M)+1;if(V<1)throw new Error;this.month=V%12||V}],MMMM:[y,function(M){var I=C("months").indexOf(M)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(M){this.year=p(M)}],YYYY:[/\d{4}/,g("year")],Z:E,ZZ:E};function O(M){var I,V;I=M,V=_&&_.formats;for(var W=(M=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(F,S,v){var U=v&&v.toUpperCase();return S||V[v]||n[v]||V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(l,m,T){return m||T.slice(1)}))}))).match(r),B=W.length,Q=0;Q-1)return new Date((w==="X"?1e3:1)*d);var o=O(w)(d),z=o.year,P=o.month,R=o.day,K=o.hours,G=o.minutes,j=o.seconds,it=o.milliseconds,k=o.zone,A=o.week,N=new Date,f=R||(z||P?1:N.getDate()),J=z||N.getFullYear(),L=0;z&&!P||(L=P>0?P-1:N.getMonth());var $,Z=K||0,rt=G||0,st=j||0,pt=it||0;return k?new Date(Date.UTC(J,L,f,Z,rt,st,pt+60*k.offset*1e3)):c?new Date(Date.UTC(J,L,f,Z,rt,st,pt)):($=new Date(J,L,f,Z,rt,st,pt),A&&($=u($).week(A).toDate()),$)}catch{return new Date("")}})(D,Y,H,V),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),v&&D!=this.format(Y)&&(this.$d=new Date("")),_={}}else if(Y instanceof Array)for(var l=Y.length,m=1;m<=l;m+=1){x[1]=Y[m-1];var T=V.apply(this,x);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}m===l&&(this.$d=new Date(""))}else B.call(this,Q)}}}))})($t)),$t.exports}var Wa=Ia();const Oa=we(Wa);var Qt={exports:{}},Ha=Qt.exports,Je;function Na(){return Je||(Je=1,(function(t,e){(function(n,r){t.exports=r()})(Ha,(function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(s){var y=this,_=this.$locale();if(!this.isValid())return i.bind(this)(s);var p=this.$utils(),g=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(E){switch(E){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return _.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return _.ordinal(y.week(),"W");case"w":case"ww":return p.s(y.week(),E==="w"?1:2,"0");case"W":case"WW":return p.s(y.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return p.s(String(y.$H===0?24:y.$H),E==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return E}}));return i.bind(this)(g)}}}))})(Qt)),Qt.exports}var Va=Na();const Pa=we(Va);var ve=(function(){var t=h(function(U,l,m,T){for(m=m||{},T=U.length;T--;m[U[T]]=l);return m},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],a=[1,28],i=[1,29],s=[1,30],y=[1,31],_=[1,32],p=[1,33],g=[1,34],E=[1,9],C=[1,10],b=[1,11],X=[1,12],O=[1,13],M=[1,14],I=[1,15],V=[1,16],W=[1,19],B=[1,20],Q=[1,21],D=[1,22],H=[1,23],x=[1,25],Y=[1,35],F={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:h(function(l,m,T,d,w,c,u){var o=c.length-1;switch(w){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:d.setWeekday("monday");break;case 9:d.setWeekday("tuesday");break;case 10:d.setWeekday("wednesday");break;case 11:d.setWeekday("thursday");break;case 12:d.setWeekday("friday");break;case 13:d.setWeekday("saturday");break;case 14:d.setWeekday("sunday");break;case 15:d.setWeekend("friday");break;case 16:d.setWeekend("saturday");break;case 17:d.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:d.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:d.TopAxis(),this.$=c[o].substr(8);break;case 20:d.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:d.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:d.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:d.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:d.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:d.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),d.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),d.setAccDescription(this.$);break;case 31:d.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:d.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],d.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],d.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],d.setClickEvent(c[o-2],c[o-1],null),d.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],d.setClickEvent(c[o-3],c[o-2],c[o-1]),d.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],d.setClickEvent(c[o-2],c[o],null),d.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],d.setClickEvent(c[o-3],c[o-1],c[o]),d.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],d.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:i,16:s,17:y,18:_,19:18,20:p,21:g,22:E,23:C,24:b,25:X,26:O,27:M,28:I,29:V,30:W,31:B,33:Q,35:D,36:H,37:24,38:x,40:Y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:s,17:y,18:_,19:18,20:p,21:g,22:E,23:C,24:b,25:X,26:O,27:M,28:I,29:V,30:W,31:B,33:Q,35:D,36:H,37:24,38:x,40:Y},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:h(function(l,m){if(m.recoverable)this.trace(l);else{var T=new Error(l);throw T.hash=m,T}},"parseError"),parse:h(function(l){var m=this,T=[0],d=[],w=[null],c=[],u=this.table,o="",z=0,P=0,R=2,K=1,G=c.slice.call(arguments,1),j=Object.create(this.lexer),it={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(it.yy[k]=this.yy[k]);j.setInput(l,it.yy),it.yy.lexer=j,it.yy.parser=this,typeof j.yylloc>"u"&&(j.yylloc={});var A=j.yylloc;c.push(A);var N=j.options&&j.options.ranges;typeof it.yy.parseError=="function"?this.parseError=it.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function f(ot){T.length=T.length-2*ot,w.length=w.length-ot,c.length=c.length-ot}h(f,"popStack");function J(){var ot;return ot=d.pop()||j.lex()||K,typeof ot!="number"&&(ot instanceof Array&&(d=ot,ot=d.pop()),ot=m.symbols_[ot]||ot),ot}h(J,"lex");for(var L,$,Z,rt,st={},pt,ut,We,qt;;){if($=T[T.length-1],this.defaultActions[$]?Z=this.defaultActions[$]:((L===null||typeof L>"u")&&(L=J()),Z=u[$]&&u[$][L]),typeof Z>"u"||!Z.length||!Z[0]){var ie="";qt=[];for(pt in u[$])this.terminals_[pt]&&pt>R&&qt.push("'"+this.terminals_[pt]+"'");j.showPosition?ie="Parse error on line "+(z+1)+`: +import{b0 as nn,b1 as Ln,b2 as rn,b3 as an,b4 as sn,b5 as se,b6 as An,aI as we,_ as h,g as In,s as Wn,q as On,p as Hn,a as Nn,b as Vn,c as _t,d as Bt,e as Pn,b7 as at,l as Kt,k as zn,j as Rn,y as qn,u as Bn}from"./index-Cbm2MoYO.js";import{b as Zn,t as Oe,c as Xn,a as Gn,l as $n}from"./linear-BbiIBUnh.js";import{i as Qn}from"./init-Gi6I4Gst.js";import"./defaultLocale-C4B-KCzX.js";function jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(n=a)&&(n=a)}return n}function Jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Kn(t){return t}var Xt=1,oe=2,ke=3,Zt=4,He=1e-6;function tr(t){return"translate("+t+",0)"}function er(t){return"translate(0,"+t+")"}function nr(t){return e=>+t(e)}function rr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function ar(){return!this.__axis}function on(t,e){var n=[],r=null,a=null,i=6,s=6,y=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=t===Xt||t===Zt?-1:1,g=t===Zt||t===oe?"x":"y",E=t===Xt||t===ke?tr:er;function C(b){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),O=a??(e.tickFormat?e.tickFormat.apply(e,n):Kn),M=Math.max(i,0)+y,I=e.range(),V=+I[0]+_,W=+I[I.length-1]+_,B=(e.bandwidth?rr:nr)(e.copy(),_),Q=b.selection?b.selection():b,D=Q.selectAll(".domain").data([null]),H=Q.selectAll(".tick").data(X,e).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),F=H.select("line"),S=H.select("text");D=D.merge(D.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),F=F.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",p*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,p*M).attr("dy",t===Xt?"0em":t===ke?"0.71em":"0.32em")),b!==Q&&(D=D.transition(b),H=H.transition(b),F=F.transition(b),S=S.transition(b),x=x.transition(b).attr("opacity",He).attr("transform",function(v){return isFinite(v=B(v))?E(v+_):this.getAttribute("transform")}),Y.attr("opacity",He).attr("transform",function(v){var U=this.parentNode.__axis;return E((U&&isFinite(U=U(v))?U:B(v))+_)})),x.remove(),D.attr("d",t===Zt||t===oe?s?"M"+p*s+","+V+"H"+_+"V"+W+"H"+p*s:"M"+_+","+V+"V"+W:s?"M"+V+","+p*s+"V"+_+"H"+W+"V"+p*s:"M"+V+","+_+"H"+W),H.attr("opacity",1).attr("transform",function(v){return E(B(v)+_)}),F.attr(g+"2",p*i),S.attr(g,p*M).text(O),Q.filter(ar).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===oe?"start":t===Zt?"end":"middle"),Q.each(function(){this.__axis=B})}return C.scale=function(b){return arguments.length?(e=b,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),C):n.slice()},C.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),C):r&&r.slice()},C.tickFormat=function(b){return arguments.length?(a=b,C):a},C.tickSize=function(b){return arguments.length?(i=s=+b,C):i},C.tickSizeInner=function(b){return arguments.length?(i=+b,C):i},C.tickSizeOuter=function(b){return arguments.length?(s=+b,C):s},C.tickPadding=function(b){return arguments.length?(y=+b,C):y},C.offset=function(b){return arguments.length?(_=+b,C):_},C}function ir(t){return on(Xt,t)}function sr(t){return on(ke,t)}const or=Math.PI/180,cr=180/Math.PI,te=18,cn=.96422,un=1,ln=.82521,fn=4/29,St=6/29,hn=3*St*St,ur=St*St*St;function dn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof dt)return mn(t);t instanceof nn||(t=Ln(t));var e=fe(t.r),n=fe(t.g),r=fe(t.b),a=ce((.2225045*e+.7168786*n+.0606169*r)/un),i,s;return e===n&&n===r?i=s=a:(i=ce((.4360747*e+.3850649*n+.1430804*r)/cn),s=ce((.0139322*e+.0971045*n+.7141733*r)/ln)),new ft(116*a-16,500*(i-a),200*(a-s),t.opacity)}function lr(t,e,n,r){return arguments.length===1?dn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}rn(ft,lr,an(sn,{brighter(t){return new ft(this.l+te*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-te*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=cn*ue(e),t=un*ue(t),n=ln*ue(n),new nn(le(3.1338561*e-1.6168667*t-.4906146*n),le(-.9787684*e+1.9161415*t+.033454*n),le(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ce(t){return t>ur?Math.pow(t,1/3):t/hn+fn}function ue(t){return t>St?t*t*t:hn*(t-fn)}function le(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function fe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function fr(t){if(t instanceof dt)return new dt(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=dn(t)),t.a===0&&t.b===0)return new dt(NaN,0(t(i=new Date(+i)),i),a.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),a.round=i=>{const s=a(i),y=a.ceil(i);return i-s(e(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,y)=>{const _=[];if(i=a.ceil(i),y=y==null?1:Math.floor(y),!(i0))return _;let p;do _.push(p=new Date(+i)),e(i,y),t(i);while(pet(s=>{if(s>=s)for(;t(s),!i(s);)s.setTime(s-1)},(s,y)=>{if(s>=s)if(y<0)for(;++y<=0;)for(;e(s,-1),!i(s););else for(;--y>=0;)for(;e(s,1),!i(s););}),n&&(a.count=(i,s)=>(he.setTime(+i),de.setTime(+s),t(he),t(de),Math.floor(n(he,de))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?s=>r(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const Yt=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Yt.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Yt);Yt.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,De=yt*7,Ne=yt*30,me=yt*365,vt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const Wt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());Wt.range;const gr=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());gr.range;const Ot=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ot.range;const yr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());yr.range;const Tt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);Tt.range;const Ce=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);Ce.range;const kr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));kr.range;function wt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/De)}const Vt=wt(0),Ht=wt(1),gn=wt(2),yn=wt(3),bt=wt(4),kn=wt(5),pn=wt(6);Vt.range;Ht.range;gn.range;yn.range;bt.range;kn.range;pn.range;function Dt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/De)}const vn=Dt(0),ee=Dt(1),pr=Dt(2),vr=Dt(3),Ut=Dt(4),Tr=Dt(5),br=Dt(6);vn.range;ee.range;pr.range;vr.range;Ut.range;Tr.range;br.range;const Nt=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nt.range;const xr=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());xr.range;const kt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const xt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());xt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});xt.range;function wr(t,e,n,r,a,i){const s=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[i,1,ct],[i,5,5*ct],[i,15,15*ct],[i,30,30*ct],[a,1,gt],[a,3,3*gt],[a,6,6*gt],[a,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,De],[e,1,Ne],[e,3,3*Ne],[t,1,me]];function y(p,g,E){const C=gM).right(s,C);if(b===s.length)return t.every(Oe(p/me,g/me,E));if(b===0)return Yt.every(Math.max(Oe(p,g,E),1));const[X,O]=s[C/s[b-1][2]53)return null;"w"in f||(f.w=1),"Z"in f?(L=ye(Lt(f.y,0,1)),$=L.getUTCDay(),L=$>4||$===0?ee.ceil(L):ee(L),L=Ce.offset(L,(f.V-1)*7),f.y=L.getUTCFullYear(),f.m=L.getUTCMonth(),f.d=L.getUTCDate()+(f.w+6)%7):(L=ge(Lt(f.y,0,1)),$=L.getDay(),L=$>4||$===0?Ht.ceil(L):Ht(L),L=Tt.offset(L,(f.V-1)*7),f.y=L.getFullYear(),f.m=L.getMonth(),f.d=L.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),$="Z"in f?ye(Lt(f.y,0,1)).getUTCDay():ge(Lt(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+f.W*7-($+5)%7:f.w+f.U*7-($+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,ye(f)):ge(f)}}function x(k,A,N,f){for(var J=0,L=A.length,$=N.length,Z,rt;J=$)return-1;if(Z=A.charCodeAt(J++),Z===37){if(Z=A.charAt(J++),rt=Q[Z in Ve?A.charAt(J++):Z],!rt||(f=rt(k,N,f))<0)return-1}else if(Z!=N.charCodeAt(f++))return-1}return f}function Y(k,A,N){var f=p.exec(A.slice(N));return f?(k.p=g.get(f[0].toLowerCase()),N+f[0].length):-1}function F(k,A,N){var f=b.exec(A.slice(N));return f?(k.w=X.get(f[0].toLowerCase()),N+f[0].length):-1}function S(k,A,N){var f=E.exec(A.slice(N));return f?(k.w=C.get(f[0].toLowerCase()),N+f[0].length):-1}function v(k,A,N){var f=I.exec(A.slice(N));return f?(k.m=V.get(f[0].toLowerCase()),N+f[0].length):-1}function U(k,A,N){var f=O.exec(A.slice(N));return f?(k.m=M.get(f[0].toLowerCase()),N+f[0].length):-1}function l(k,A,N){return x(k,e,A,N)}function m(k,A,N){return x(k,n,A,N)}function T(k,A,N){return x(k,r,A,N)}function d(k){return s[k.getDay()]}function w(k){return i[k.getDay()]}function c(k){return _[k.getMonth()]}function u(k){return y[k.getMonth()]}function o(k){return a[+(k.getHours()>=12)]}function z(k){return 1+~~(k.getMonth()/3)}function P(k){return s[k.getUTCDay()]}function R(k){return i[k.getUTCDay()]}function K(k){return _[k.getUTCMonth()]}function G(k){return y[k.getUTCMonth()]}function j(k){return a[+(k.getUTCHours()>=12)]}function it(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var A=D(k+="",W);return A.toString=function(){return k},A},parse:function(k){var A=H(k+="",!1);return A.toString=function(){return k},A},utcFormat:function(k){var A=D(k+="",B);return A.toString=function(){return k},A},utcParse:function(k){var A=H(k+="",!0);return A.toString=function(){return k},A}}}var Ve={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,_r=/^%/,Sr=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",i=a.length;return r+(i[e.toLowerCase(),n]))}function Yr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ze(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ir(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Wr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Or(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Re(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function qe(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Rr(t,e,n){var r=_r.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function qr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Be(t,e){return q(t.getDate(),e,2)}function Zr(t,e){return q(t.getHours(),e,2)}function Xr(t,e){return q(t.getHours()%12||12,e,2)}function Gr(t,e){return q(1+Tt.count(kt(t),t),e,3)}function Tn(t,e){return q(t.getMilliseconds(),e,3)}function $r(t,e){return Tn(t,e)+"000"}function Qr(t,e){return q(t.getMonth()+1,e,2)}function jr(t,e){return q(t.getMinutes(),e,2)}function Jr(t,e){return q(t.getSeconds(),e,2)}function Kr(t){var e=t.getDay();return e===0?7:e}function ta(t,e){return q(Vt.count(kt(t)-1,t),e,2)}function bn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function ea(t,e){return t=bn(t),q(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function na(t){return t.getDay()}function ra(t,e){return q(Ht.count(kt(t)-1,t),e,2)}function aa(t,e){return q(t.getFullYear()%100,e,2)}function ia(t,e){return t=bn(t),q(t.getFullYear()%100,e,2)}function sa(t,e){return q(t.getFullYear()%1e4,e,4)}function oa(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),q(t.getFullYear()%1e4,e,4)}function ca(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Ze(t,e){return q(t.getUTCDate(),e,2)}function ua(t,e){return q(t.getUTCHours(),e,2)}function la(t,e){return q(t.getUTCHours()%12||12,e,2)}function fa(t,e){return q(1+Ce.count(xt(t),t),e,3)}function xn(t,e){return q(t.getUTCMilliseconds(),e,3)}function ha(t,e){return xn(t,e)+"000"}function da(t,e){return q(t.getUTCMonth()+1,e,2)}function ma(t,e){return q(t.getUTCMinutes(),e,2)}function ga(t,e){return q(t.getUTCSeconds(),e,2)}function ya(t){var e=t.getUTCDay();return e===0?7:e}function ka(t,e){return q(vn.count(xt(t)-1,t),e,2)}function wn(t){var e=t.getUTCDay();return e>=4||e===0?Ut(t):Ut.ceil(t)}function pa(t,e){return t=wn(t),q(Ut.count(xt(t),t)+(xt(t).getUTCDay()===4),e,2)}function va(t){return t.getUTCDay()}function Ta(t,e){return q(ee.count(xt(t)-1,t),e,2)}function ba(t,e){return q(t.getUTCFullYear()%100,e,2)}function xa(t,e){return t=wn(t),q(t.getUTCFullYear()%100,e,2)}function wa(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Da(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ut(t):Ut.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Ca(){return"+0000"}function Xe(){return"%"}function Ge(t){return+t}function $e(t){return Math.floor(+t/1e3)}var Mt,ne;Ma({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ma(t){return Mt=Mr(t),ne=Mt.format,Mt.parse,Mt.utcFormat,Mt.utcParse,Mt}function _a(t){return new Date(t)}function Sa(t){return t instanceof Date?+t:+new Date(+t)}function Dn(t,e,n,r,a,i,s,y,_,p){var g=Xn(),E=g.invert,C=g.domain,b=p(".%L"),X=p(":%S"),O=p("%I:%M"),M=p("%I %p"),I=p("%a %d"),V=p("%b %d"),W=p("%B"),B=p("%Y");function Q(D){return(_(D)4&&(b+=7),C.add(b,n));return X.diff(O,"week")+1},y.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var _=y.startOf;y.startOf=function(p,g){var E=this.$utils(),C=!!E.u(g)||g;return E.p(p)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):_.bind(this)(p,g)}}}))})(Gt)),Gt.exports}var Ea=Ua();const La=we(Ea);var $t={exports:{}},Aa=$t.exports,je;function Ia(){return je||(je=1,(function(t,e){(function(n,r){t.exports=r()})(Aa,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,s=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,_={},p=function(M){return(M=+M)+(M>68?1900:2e3)},g=function(M){return function(I){this[M]=+I}},E=[/[+-]\d\d:?(\d\d)?|Z/,function(M){(this.zone||(this.zone={})).offset=(function(I){if(!I||I==="Z")return 0;var V=I.match(/([+-]|\d\d)/g),W=60*V[1]+(+V[2]||0);return W===0?0:V[0]==="+"?-W:W})(M)}],C=function(M){var I=_[M];return I&&(I.indexOf?I:I.s.concat(I.f))},b=function(M,I){var V,W=_.meridiem;if(W){for(var B=1;B<=24;B+=1)if(M.indexOf(W(B,0,I))>-1){V=B>12;break}}else V=M===(I?"pm":"PM");return V},X={A:[y,function(M){this.afternoon=b(M,!1)}],a:[y,function(M){this.afternoon=b(M,!0)}],Q:[a,function(M){this.month=3*(M-1)+1}],S:[a,function(M){this.milliseconds=100*+M}],SS:[i,function(M){this.milliseconds=10*+M}],SSS:[/\d{3}/,function(M){this.milliseconds=+M}],s:[s,g("seconds")],ss:[s,g("seconds")],m:[s,g("minutes")],mm:[s,g("minutes")],H:[s,g("hours")],h:[s,g("hours")],HH:[s,g("hours")],hh:[s,g("hours")],D:[s,g("day")],DD:[i,g("day")],Do:[y,function(M){var I=_.ordinal,V=M.match(/\d+/);if(this.day=V[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===M&&(this.day=W)}],w:[s,g("week")],ww:[i,g("week")],M:[s,g("month")],MM:[i,g("month")],MMM:[y,function(M){var I=C("months"),V=(C("monthsShort")||I.map((function(W){return W.slice(0,3)}))).indexOf(M)+1;if(V<1)throw new Error;this.month=V%12||V}],MMMM:[y,function(M){var I=C("months").indexOf(M)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(M){this.year=p(M)}],YYYY:[/\d{4}/,g("year")],Z:E,ZZ:E};function O(M){var I,V;I=M,V=_&&_.formats;for(var W=(M=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(F,S,v){var U=v&&v.toUpperCase();return S||V[v]||n[v]||V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(l,m,T){return m||T.slice(1)}))}))).match(r),B=W.length,Q=0;Q-1)return new Date((w==="X"?1e3:1)*d);var o=O(w)(d),z=o.year,P=o.month,R=o.day,K=o.hours,G=o.minutes,j=o.seconds,it=o.milliseconds,k=o.zone,A=o.week,N=new Date,f=R||(z||P?1:N.getDate()),J=z||N.getFullYear(),L=0;z&&!P||(L=P>0?P-1:N.getMonth());var $,Z=K||0,rt=G||0,st=j||0,pt=it||0;return k?new Date(Date.UTC(J,L,f,Z,rt,st,pt+60*k.offset*1e3)):c?new Date(Date.UTC(J,L,f,Z,rt,st,pt)):($=new Date(J,L,f,Z,rt,st,pt),A&&($=u($).week(A).toDate()),$)}catch{return new Date("")}})(D,Y,H,V),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),v&&D!=this.format(Y)&&(this.$d=new Date("")),_={}}else if(Y instanceof Array)for(var l=Y.length,m=1;m<=l;m+=1){x[1]=Y[m-1];var T=V.apply(this,x);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}m===l&&(this.$d=new Date(""))}else B.call(this,Q)}}}))})($t)),$t.exports}var Wa=Ia();const Oa=we(Wa);var Qt={exports:{}},Ha=Qt.exports,Je;function Na(){return Je||(Je=1,(function(t,e){(function(n,r){t.exports=r()})(Ha,(function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(s){var y=this,_=this.$locale();if(!this.isValid())return i.bind(this)(s);var p=this.$utils(),g=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(E){switch(E){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return _.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return _.ordinal(y.week(),"W");case"w":case"ww":return p.s(y.week(),E==="w"?1:2,"0");case"W":case"WW":return p.s(y.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return p.s(String(y.$H===0?24:y.$H),E==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return E}}));return i.bind(this)(g)}}}))})(Qt)),Qt.exports}var Va=Na();const Pa=we(Va);var ve=(function(){var t=h(function(U,l,m,T){for(m=m||{},T=U.length;T--;m[U[T]]=l);return m},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],a=[1,28],i=[1,29],s=[1,30],y=[1,31],_=[1,32],p=[1,33],g=[1,34],E=[1,9],C=[1,10],b=[1,11],X=[1,12],O=[1,13],M=[1,14],I=[1,15],V=[1,16],W=[1,19],B=[1,20],Q=[1,21],D=[1,22],H=[1,23],x=[1,25],Y=[1,35],F={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:h(function(l,m,T,d,w,c,u){var o=c.length-1;switch(w){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:d.setWeekday("monday");break;case 9:d.setWeekday("tuesday");break;case 10:d.setWeekday("wednesday");break;case 11:d.setWeekday("thursday");break;case 12:d.setWeekday("friday");break;case 13:d.setWeekday("saturday");break;case 14:d.setWeekday("sunday");break;case 15:d.setWeekend("friday");break;case 16:d.setWeekend("saturday");break;case 17:d.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:d.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:d.TopAxis(),this.$=c[o].substr(8);break;case 20:d.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:d.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:d.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:d.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:d.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:d.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),d.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),d.setAccDescription(this.$);break;case 31:d.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:d.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],d.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],d.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],d.setClickEvent(c[o-2],c[o-1],null),d.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],d.setClickEvent(c[o-3],c[o-2],c[o-1]),d.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],d.setClickEvent(c[o-2],c[o],null),d.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],d.setClickEvent(c[o-3],c[o-1],c[o]),d.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],d.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:i,16:s,17:y,18:_,19:18,20:p,21:g,22:E,23:C,24:b,25:X,26:O,27:M,28:I,29:V,30:W,31:B,33:Q,35:D,36:H,37:24,38:x,40:Y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:s,17:y,18:_,19:18,20:p,21:g,22:E,23:C,24:b,25:X,26:O,27:M,28:I,29:V,30:W,31:B,33:Q,35:D,36:H,37:24,38:x,40:Y},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:h(function(l,m){if(m.recoverable)this.trace(l);else{var T=new Error(l);throw T.hash=m,T}},"parseError"),parse:h(function(l){var m=this,T=[0],d=[],w=[null],c=[],u=this.table,o="",z=0,P=0,R=2,K=1,G=c.slice.call(arguments,1),j=Object.create(this.lexer),it={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(it.yy[k]=this.yy[k]);j.setInput(l,it.yy),it.yy.lexer=j,it.yy.parser=this,typeof j.yylloc>"u"&&(j.yylloc={});var A=j.yylloc;c.push(A);var N=j.options&&j.options.ranges;typeof it.yy.parseError=="function"?this.parseError=it.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function f(ot){T.length=T.length-2*ot,w.length=w.length-ot,c.length=c.length-ot}h(f,"popStack");function J(){var ot;return ot=d.pop()||j.lex()||K,typeof ot!="number"&&(ot instanceof Array&&(d=ot,ot=d.pop()),ot=m.symbols_[ot]||ot),ot}h(J,"lex");for(var L,$,Z,rt,st={},pt,ut,We,qt;;){if($=T[T.length-1],this.defaultActions[$]?Z=this.defaultActions[$]:((L===null||typeof L>"u")&&(L=J()),Z=u[$]&&u[$][L]),typeof Z>"u"||!Z.length||!Z[0]){var ie="";qt=[];for(pt in u[$])this.terminals_[pt]&&pt>R&&qt.push("'"+this.terminals_[pt]+"'");j.showPosition?ie="Parse error on line "+(z+1)+`: `+j.showPosition()+` Expecting `+qt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":ie="Parse error on line "+(z+1)+": Unexpected "+(L==K?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(ie,{text:j.match,token:this.terminals_[L]||L,line:j.yylineno,loc:A,expected:qt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+L);switch(Z[0]){case 1:T.push(L),w.push(j.yytext),c.push(j.yylloc),T.push(Z[1]),L=null,P=j.yyleng,o=j.yytext,z=j.yylineno,A=j.yylloc;break;case 2:if(ut=this.productions_[Z[1]][1],st.$=w[w.length-ut],st._$={first_line:c[c.length-(ut||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ut||1)].first_column,last_column:c[c.length-1].last_column},N&&(st._$.range=[c[c.length-(ut||1)].range[0],c[c.length-1].range[1]]),rt=this.performAction.apply(st,[o,P,z,it.yy,Z[1],w,c].concat(G)),typeof rt<"u")return rt;ut&&(T=T.slice(0,-1*ut*2),w=w.slice(0,-1*ut),c=c.slice(0,-1*ut)),T.push(this.productions_[Z[1]][0]),w.push(st.$),c.push(st._$),We=u[T[T.length-2]][T[T.length-1]],T.push(We);break;case 3:return!0}}return!0},"parse")},S=(function(){var U={EOF:1,parseError:h(function(m,T){if(this.yy.parser)this.yy.parser.parseError(m,T);else throw new Error(m)},"parseError"),setInput:h(function(l,m){return this.yy=m||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var m=l.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:h(function(l){var m=l.length,T=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),T.length-1&&(this.yylineno-=T.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:T?(T.length===d.length?this.yylloc.first_column:0)+d[d.length-T.length].length-T[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:h(function(l){this.unput(this.match.slice(l))},"less"),pastInput:h(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var l=this.pastInput(),m=new Array(l.length+1).join("-");return l+this.upcomingInput()+` diff --git a/docs/dist/assets/gitGraphDiagram-NY62KEGX-C5UcOD27.js b/docs/dist/assets/gitGraphDiagram-NY62KEGX-BIKTiv6F.js similarity index 98% rename from docs/dist/assets/gitGraphDiagram-NY62KEGX-C5UcOD27.js rename to docs/dist/assets/gitGraphDiagram-NY62KEGX-BIKTiv6F.js index 82fd1cc7..622f6b57 100644 --- a/docs/dist/assets/gitGraphDiagram-NY62KEGX-C5UcOD27.js +++ b/docs/dist/assets/gitGraphDiagram-NY62KEGX-BIKTiv6F.js @@ -1,4 +1,4 @@ -import{p as Y}from"./chunk-4BX2VUAB-DQFJwyRw.js";import{I as K}from"./chunk-QZHKN3VN-DPxP3j_u.js";import{_ as l,q as U,p as V,s as X,g as J,a as Q,b as Z,l as m,c as rr,d as er,u as tr,C as ar,y as sr,k as C,D as nr,E as or,F as cr,G as ir}from"./index-BtiIqbpV.js";import{p as dr}from"./treemap-KMMF4GRG-BdBrUw5q.js";import"./_baseUniq-UvPYksec.js";import"./_basePickBy-Dm_sMLMB.js";import"./clone-uEwA9FQU.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},hr=cr.gitGraph,I=l(()=>nr({...hr,...or().gitGraph}),"getConfig"),c=new K(()=>{const t=I(),r=t.mainBranchName,s=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:s}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function A(){return ir({length:7})}l(A,"getID");function F(t,r){const s=Object.create(null);return t.reduce((n,e)=>{const a=r(e);return s[a]||(s[a]=!0,n.push(e)),n},[])}l(F,"uniqBy");var lr=l(function(t){c.records.direction=t},"setDirection"),$r=l(function(t){m.debug("options str",t),t=t?.trim(),t=t||"{}";try{c.records.options=JSON.parse(t)}catch(r){m.error("error while parsing gitGraph options",r.message)}},"setOptions"),fr=l(function(){return c.records.options},"getOptions"),gr=l(function(t){let r=t.msg,s=t.id;const n=t.type;let e=t.tags;m.info("commit",r,s,n,e),m.debug("Entering commit:",r,s,n,e);const a=I();s=C.sanitizeText(s,a),r=C.sanitizeText(r,a),e=e?.map(o=>C.sanitizeText(o,a));const d={id:s||c.records.seq+"-"+A(),message:r,seq:c.records.seq++,type:n??x.NORMAL,tags:e??[],parents:c.records.head==null?[]:[c.records.head.id],branch:c.records.currBranch};c.records.head=d,m.info("main branch",a.mainBranchName),c.records.commits.has(d.id)&&m.warn(`Commit ID ${d.id} already exists`),c.records.commits.set(d.id,d),c.records.branches.set(c.records.currBranch,d.id),m.debug("in pushCommit "+d.id)},"commit"),yr=l(function(t){let r=t.name;const s=t.order;if(r=C.sanitizeText(r,I()),c.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);c.records.branches.set(r,c.records.head!=null?c.records.head.id:null),c.records.branchConfig.set(r,{name:r,order:s}),z(r),m.debug("in createBranch")},"branch"),ur=l(t=>{let r=t.branch,s=t.id;const n=t.type,e=t.tags,a=I();r=C.sanitizeText(r,a),s&&(s=C.sanitizeText(s,a));const d=c.records.branches.get(c.records.currBranch),o=c.records.branches.get(r),f=d?c.records.commits.get(d):void 0,h=o?c.records.commits.get(o):void 0;if(f&&h&&f.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(c.records.currBranch===r){const i=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(f===void 0||!f){const i=new Error(`Incorrect usage of "merge". Current branch (${c.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!c.records.branches.has(r)){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},i}if(h===void 0||!h){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},i}if(f===h){const i=new Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(s&&c.records.commits.has(s)){const i=new Error('Incorrect usage of "merge". Commit with id:'+s+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${s} ${n} ${e?.join(" ")}`,token:`merge ${r} ${s} ${n} ${e?.join(" ")}`,expected:[`merge ${r} ${s}_UNIQUE ${n} ${e?.join(" ")}`]},i}const $=o||"",g={id:s||`${c.records.seq}-${A()}`,message:`merged branch ${r} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,$],branch:c.records.currBranch,type:x.MERGE,customType:n,customId:!!s,tags:e??[]};c.records.head=g,c.records.commits.set(g.id,g),c.records.branches.set(c.records.currBranch,g.id),m.debug(c.records.branches),m.debug("in mergeBranch")},"merge"),pr=l(function(t){let r=t.id,s=t.targetId,n=t.tags,e=t.parent;m.debug("Entering cherryPick:",r,s,n);const a=I();if(r=C.sanitizeText(r,a),s=C.sanitizeText(s,a),n=n?.map(f=>C.sanitizeText(f,a)),e=C.sanitizeText(e,a),!r||!c.records.commits.has(r)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},f}const d=c.records.commits.get(r);if(d===void 0||!d)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(d.parents)&&d.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=d.branch;if(d.type===x.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!s||!c.records.commits.has(s)){if(o===c.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const f=c.records.branches.get(c.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const h=c.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const $={id:c.records.seq+"-"+A(),message:`cherry-picked ${d?.message} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,d.id],branch:c.records.currBranch,type:x.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${d.id}${d.type===x.MERGE?`|parent:${e}`:""}`]};c.records.head=$,c.records.commits.set($.id,$),c.records.branches.set(c.records.currBranch,$.id),m.debug(c.records.branches),m.debug("in cherryPick")}},"cherryPick"),z=l(function(t){if(t=C.sanitizeText(t,I()),c.records.branches.has(t)){c.records.currBranch=t;const r=c.records.branches.get(c.records.currBranch);r===void 0||!r?c.records.head=null:c.records.head=c.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function H(t,r,s){const n=t.indexOf(r);n===-1?t.push(s):t.splice(n,1,s)}l(H,"upsert");function P(t){const r=t.reduce((e,a)=>e.seq>a.seq?e:a,t[0]);let s="";t.forEach(function(e){e===r?s+=" *":s+=" |"});const n=[s,r.id,r.seq];for(const e in c.records.branches)c.records.branches.get(e)===r.id&&n.push(e);if(m.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=c.records.commits.get(r.parents[0]);H(t,r,e),r.parents[1]&&t.push(c.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=c.records.commits.get(r.parents[0]);H(t,r,e)}}t=F(t,e=>e.id),P(t)}l(P,"prettyPrintCommitHistory");var xr=l(function(){m.debug(c.records.commits);const t=N()[0];P([t])},"prettyPrint"),mr=l(function(){c.reset(),sr()},"clear"),br=l(function(){return[...c.records.branchConfig.values()].map((r,s)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${s}`)}).sort((r,s)=>(r.order??0)-(s.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),wr=l(function(){return c.records.branches},"getBranches"),vr=l(function(){return c.records.commits},"getCommits"),N=l(function(){const t=[...c.records.commits.values()];return t.forEach(function(r){m.debug(r.id)}),t.sort((r,s)=>r.seq-s.seq),t},"getCommitsArray"),Cr=l(function(){return c.records.currBranch},"getCurrentBranch"),Er=l(function(){return c.records.direction},"getDirection"),Tr=l(function(){return c.records.head},"getHead"),S={commitType:x,getConfig:I,setDirection:lr,setOptions:$r,getOptions:fr,commit:gr,branch:yr,merge:ur,cherryPick:pr,checkout:z,prettyPrint:xr,clear:mr,getBranchesAsObjArray:br,getBranches:wr,getCommits:vr,getCommitsArray:N,getCurrentBranch:Cr,getDirection:Er,getHead:Tr,setAccTitle:Z,getAccTitle:Q,getAccDescription:J,setAccDescription:X,setDiagramTitle:V,getDiagramTitle:U},Br=l((t,r)=>{Y(t,r),t.dir&&r.setDirection(t.dir);for(const s of t.statements)Lr(s,r)},"populate"),Lr=l((t,r)=>{const n={Commit:l(e=>r.commit(kr(e)),"Commit"),Branch:l(e=>r.branch(Mr(e)),"Branch"),Merge:l(e=>r.merge(Ir(e)),"Merge"),Checkout:l(e=>r.checkout(Rr(e)),"Checkout"),CherryPicking:l(e=>r.cherryPick(Gr(e)),"CherryPicking")}[t.$type];n?n(t):m.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),kr=l(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),Mr=l(t=>({name:t.name,order:t.order??0}),"parseBranch"),Ir=l(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Rr=l(t=>t.branch,"parseCheckout"),Gr=l(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Or={parse:l(async t=>{const r=await dr("gitGraph",t);m.debug(r),Br(r,S)},"parse")},qr=rr(),v=qr?.gitGraph,L=10,k=40,E=4,T=2,M=8,b=new Map,w=new Map,O=30,R=new Map,q=[],B=0,u="LR",Ar=l(()=>{b.clear(),w.clear(),R.clear(),B=0,q=[],u="LR"},"clear"),W=l(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(n=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=n.trim(),r.appendChild(e)}),r},"drawText"),j=l(t=>{let r,s,n;return u==="BT"?(s=l((e,a)=>e<=a,"comparisonFunc"),n=1/0):(s=l((e,a)=>e>=a,"comparisonFunc"),n=0),t.forEach(e=>{const a=u==="TB"||u=="BT"?w.get(e)?.y:w.get(e)?.x;a!==void 0&&s(a,n)&&(r=e,n=a)}),r},"findClosestParent"),_r=l(t=>{let r="",s=1/0;return t.forEach(n=>{const e=w.get(n).y;e<=s&&(r=n,s=e)}),r||void 0},"findClosestParentBT"),Hr=l((t,r,s)=>{let n=s,e=s;const a=[];t.forEach(d=>{const o=r.get(d);if(!o)throw new Error(`Commit not found for key ${d}`);o.parents.length?(n=Dr(o),e=Math.max(n,e)):a.push(o),Fr(o,n)}),n=e,a.forEach(d=>{zr(d,n,s)}),t.forEach(d=>{const o=r.get(d);if(o?.parents.length){const f=_r(o.parents);n=w.get(f).y-k,n<=e&&(e=n);const h=b.get(o.branch).pos,$=n-L;w.set(o.id,{x:h,y:$})}})},"setParallelBTPos"),Pr=l(t=>{const r=j(t.parents.filter(n=>n!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const s=w.get(r)?.y;if(s===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return s},"findClosestParentPos"),Dr=l(t=>Pr(t)+k,"calculateCommitPosition"),Fr=l((t,r)=>{const s=b.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const n=s.pos,e=r+L;return w.set(t.id,{x:n,y:e}),{x:n,y:e}},"setCommitPosition"),zr=l((t,r,s)=>{const n=b.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const e=r+s,a=n.pos;w.set(t.id,{x:a,y:e})},"setRootPosition"),Nr=l((t,r,s,n,e,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",s.x-10).attr("y",s.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%M} ${n}-outer`),t.append("rect").attr("x",s.x-6).attr("y",s.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%M} ${n}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",s.x).attr("cy",s.y).attr("r",10).attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",s.x-3).attr("cy",s.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",s.x+3).attr("cy",s.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",s.x+3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",s.x-3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`);else{const d=t.append("circle");if(d.attr("cx",s.x),d.attr("cy",s.y),d.attr("r",r.type===x.MERGE?9:10),d.attr("class",`commit ${r.id} commit${e%M}`),a===x.MERGE){const o=t.append("circle");o.attr("cx",s.x),o.attr("cy",s.y),o.attr("r",6),o.attr("class",`commit ${n} ${r.id} commit${e%M}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${s.x-5},${s.y-5}L${s.x+5},${s.y+5}M${s.x-5},${s.y+5}L${s.x+5},${s.y-5}`).attr("class",`commit ${n} ${r.id} commit${e%M}`)}},"drawCommitBullet"),Sr=l((t,r,s,n)=>{if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&v?.showCommitLabel){const e=t.append("g"),a=e.insert("rect").attr("class","commit-label-bkg"),d=e.append("text").attr("x",n).attr("y",s.y+25).attr("class","commit-label").text(r.id),o=d.node()?.getBBox();if(o&&(a.attr("x",s.posWithOffset-o.width/2-T).attr("y",s.y+13.5).attr("width",o.width+2*T).attr("height",o.height+2*T),u==="TB"||u==="BT"?(a.attr("x",s.x-(o.width+4*E+5)).attr("y",s.y-12),d.attr("x",s.x-(o.width+4*E)).attr("y",s.y+o.height-12)):d.attr("x",s.posWithOffset-o.width/2),v.rotateCommitLabel))if(u==="TB"||u==="BT")d.attr("transform","rotate(-45, "+s.x+", "+s.y+")"),a.attr("transform","rotate(-45, "+s.x+", "+s.y+")");else{const f=-7.5-(o.width+10)/25*9.5,h=10+o.width/25*8.5;e.attr("transform","translate("+f+", "+h+") rotate(-45, "+n+", "+s.y+")")}}},"drawCommitLabel"),Wr=l((t,r,s,n)=>{if(r.tags.length>0){let e=0,a=0,d=0;const o=[];for(const f of r.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",s.y-16-e).attr("class","tag-label").text(f),i=g.node()?.getBBox();if(!i)throw new Error("Tag bbox not found");a=Math.max(a,i.width),d=Math.max(d,i.height),g.attr("x",s.posWithOffset-i.width/2),o.push({tag:g,hole:$,rect:h,yOffset:e}),e+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of o){const i=d/2,y=s.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",` +import{p as Y}from"./chunk-4BX2VUAB-B95fRcaE.js";import{I as K}from"./chunk-QZHKN3VN-D4v8tIvn.js";import{_ as l,q as U,p as V,s as X,g as J,a as Q,b as Z,l as m,c as rr,d as er,u as tr,C as ar,y as sr,k as C,D as nr,E as or,F as cr,G as ir}from"./index-Cbm2MoYO.js";import{p as dr}from"./treemap-KMMF4GRG-Bqtmffqa.js";import"./_baseUniq-yJVicqoM.js";import"./_basePickBy-Btg4tW5o.js";import"./clone-D4gAIgVI.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},hr=cr.gitGraph,I=l(()=>nr({...hr,...or().gitGraph}),"getConfig"),c=new K(()=>{const t=I(),r=t.mainBranchName,s=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:s}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function A(){return ir({length:7})}l(A,"getID");function F(t,r){const s=Object.create(null);return t.reduce((n,e)=>{const a=r(e);return s[a]||(s[a]=!0,n.push(e)),n},[])}l(F,"uniqBy");var lr=l(function(t){c.records.direction=t},"setDirection"),$r=l(function(t){m.debug("options str",t),t=t?.trim(),t=t||"{}";try{c.records.options=JSON.parse(t)}catch(r){m.error("error while parsing gitGraph options",r.message)}},"setOptions"),fr=l(function(){return c.records.options},"getOptions"),gr=l(function(t){let r=t.msg,s=t.id;const n=t.type;let e=t.tags;m.info("commit",r,s,n,e),m.debug("Entering commit:",r,s,n,e);const a=I();s=C.sanitizeText(s,a),r=C.sanitizeText(r,a),e=e?.map(o=>C.sanitizeText(o,a));const d={id:s||c.records.seq+"-"+A(),message:r,seq:c.records.seq++,type:n??x.NORMAL,tags:e??[],parents:c.records.head==null?[]:[c.records.head.id],branch:c.records.currBranch};c.records.head=d,m.info("main branch",a.mainBranchName),c.records.commits.has(d.id)&&m.warn(`Commit ID ${d.id} already exists`),c.records.commits.set(d.id,d),c.records.branches.set(c.records.currBranch,d.id),m.debug("in pushCommit "+d.id)},"commit"),yr=l(function(t){let r=t.name;const s=t.order;if(r=C.sanitizeText(r,I()),c.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);c.records.branches.set(r,c.records.head!=null?c.records.head.id:null),c.records.branchConfig.set(r,{name:r,order:s}),z(r),m.debug("in createBranch")},"branch"),ur=l(t=>{let r=t.branch,s=t.id;const n=t.type,e=t.tags,a=I();r=C.sanitizeText(r,a),s&&(s=C.sanitizeText(s,a));const d=c.records.branches.get(c.records.currBranch),o=c.records.branches.get(r),f=d?c.records.commits.get(d):void 0,h=o?c.records.commits.get(o):void 0;if(f&&h&&f.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(c.records.currBranch===r){const i=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(f===void 0||!f){const i=new Error(`Incorrect usage of "merge". Current branch (${c.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!c.records.branches.has(r)){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},i}if(h===void 0||!h){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},i}if(f===h){const i=new Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(s&&c.records.commits.has(s)){const i=new Error('Incorrect usage of "merge". Commit with id:'+s+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${s} ${n} ${e?.join(" ")}`,token:`merge ${r} ${s} ${n} ${e?.join(" ")}`,expected:[`merge ${r} ${s}_UNIQUE ${n} ${e?.join(" ")}`]},i}const $=o||"",g={id:s||`${c.records.seq}-${A()}`,message:`merged branch ${r} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,$],branch:c.records.currBranch,type:x.MERGE,customType:n,customId:!!s,tags:e??[]};c.records.head=g,c.records.commits.set(g.id,g),c.records.branches.set(c.records.currBranch,g.id),m.debug(c.records.branches),m.debug("in mergeBranch")},"merge"),pr=l(function(t){let r=t.id,s=t.targetId,n=t.tags,e=t.parent;m.debug("Entering cherryPick:",r,s,n);const a=I();if(r=C.sanitizeText(r,a),s=C.sanitizeText(s,a),n=n?.map(f=>C.sanitizeText(f,a)),e=C.sanitizeText(e,a),!r||!c.records.commits.has(r)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},f}const d=c.records.commits.get(r);if(d===void 0||!d)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(d.parents)&&d.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=d.branch;if(d.type===x.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!s||!c.records.commits.has(s)){if(o===c.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const f=c.records.branches.get(c.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const h=c.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const $={id:c.records.seq+"-"+A(),message:`cherry-picked ${d?.message} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,d.id],branch:c.records.currBranch,type:x.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${d.id}${d.type===x.MERGE?`|parent:${e}`:""}`]};c.records.head=$,c.records.commits.set($.id,$),c.records.branches.set(c.records.currBranch,$.id),m.debug(c.records.branches),m.debug("in cherryPick")}},"cherryPick"),z=l(function(t){if(t=C.sanitizeText(t,I()),c.records.branches.has(t)){c.records.currBranch=t;const r=c.records.branches.get(c.records.currBranch);r===void 0||!r?c.records.head=null:c.records.head=c.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function H(t,r,s){const n=t.indexOf(r);n===-1?t.push(s):t.splice(n,1,s)}l(H,"upsert");function P(t){const r=t.reduce((e,a)=>e.seq>a.seq?e:a,t[0]);let s="";t.forEach(function(e){e===r?s+=" *":s+=" |"});const n=[s,r.id,r.seq];for(const e in c.records.branches)c.records.branches.get(e)===r.id&&n.push(e);if(m.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=c.records.commits.get(r.parents[0]);H(t,r,e),r.parents[1]&&t.push(c.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=c.records.commits.get(r.parents[0]);H(t,r,e)}}t=F(t,e=>e.id),P(t)}l(P,"prettyPrintCommitHistory");var xr=l(function(){m.debug(c.records.commits);const t=N()[0];P([t])},"prettyPrint"),mr=l(function(){c.reset(),sr()},"clear"),br=l(function(){return[...c.records.branchConfig.values()].map((r,s)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${s}`)}).sort((r,s)=>(r.order??0)-(s.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),wr=l(function(){return c.records.branches},"getBranches"),vr=l(function(){return c.records.commits},"getCommits"),N=l(function(){const t=[...c.records.commits.values()];return t.forEach(function(r){m.debug(r.id)}),t.sort((r,s)=>r.seq-s.seq),t},"getCommitsArray"),Cr=l(function(){return c.records.currBranch},"getCurrentBranch"),Er=l(function(){return c.records.direction},"getDirection"),Tr=l(function(){return c.records.head},"getHead"),S={commitType:x,getConfig:I,setDirection:lr,setOptions:$r,getOptions:fr,commit:gr,branch:yr,merge:ur,cherryPick:pr,checkout:z,prettyPrint:xr,clear:mr,getBranchesAsObjArray:br,getBranches:wr,getCommits:vr,getCommitsArray:N,getCurrentBranch:Cr,getDirection:Er,getHead:Tr,setAccTitle:Z,getAccTitle:Q,getAccDescription:J,setAccDescription:X,setDiagramTitle:V,getDiagramTitle:U},Br=l((t,r)=>{Y(t,r),t.dir&&r.setDirection(t.dir);for(const s of t.statements)Lr(s,r)},"populate"),Lr=l((t,r)=>{const n={Commit:l(e=>r.commit(kr(e)),"Commit"),Branch:l(e=>r.branch(Mr(e)),"Branch"),Merge:l(e=>r.merge(Ir(e)),"Merge"),Checkout:l(e=>r.checkout(Rr(e)),"Checkout"),CherryPicking:l(e=>r.cherryPick(Gr(e)),"CherryPicking")}[t.$type];n?n(t):m.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),kr=l(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),Mr=l(t=>({name:t.name,order:t.order??0}),"parseBranch"),Ir=l(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Rr=l(t=>t.branch,"parseCheckout"),Gr=l(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Or={parse:l(async t=>{const r=await dr("gitGraph",t);m.debug(r),Br(r,S)},"parse")},qr=rr(),v=qr?.gitGraph,L=10,k=40,E=4,T=2,M=8,b=new Map,w=new Map,O=30,R=new Map,q=[],B=0,u="LR",Ar=l(()=>{b.clear(),w.clear(),R.clear(),B=0,q=[],u="LR"},"clear"),W=l(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(n=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=n.trim(),r.appendChild(e)}),r},"drawText"),j=l(t=>{let r,s,n;return u==="BT"?(s=l((e,a)=>e<=a,"comparisonFunc"),n=1/0):(s=l((e,a)=>e>=a,"comparisonFunc"),n=0),t.forEach(e=>{const a=u==="TB"||u=="BT"?w.get(e)?.y:w.get(e)?.x;a!==void 0&&s(a,n)&&(r=e,n=a)}),r},"findClosestParent"),_r=l(t=>{let r="",s=1/0;return t.forEach(n=>{const e=w.get(n).y;e<=s&&(r=n,s=e)}),r||void 0},"findClosestParentBT"),Hr=l((t,r,s)=>{let n=s,e=s;const a=[];t.forEach(d=>{const o=r.get(d);if(!o)throw new Error(`Commit not found for key ${d}`);o.parents.length?(n=Dr(o),e=Math.max(n,e)):a.push(o),Fr(o,n)}),n=e,a.forEach(d=>{zr(d,n,s)}),t.forEach(d=>{const o=r.get(d);if(o?.parents.length){const f=_r(o.parents);n=w.get(f).y-k,n<=e&&(e=n);const h=b.get(o.branch).pos,$=n-L;w.set(o.id,{x:h,y:$})}})},"setParallelBTPos"),Pr=l(t=>{const r=j(t.parents.filter(n=>n!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const s=w.get(r)?.y;if(s===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return s},"findClosestParentPos"),Dr=l(t=>Pr(t)+k,"calculateCommitPosition"),Fr=l((t,r)=>{const s=b.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const n=s.pos,e=r+L;return w.set(t.id,{x:n,y:e}),{x:n,y:e}},"setCommitPosition"),zr=l((t,r,s)=>{const n=b.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const e=r+s,a=n.pos;w.set(t.id,{x:a,y:e})},"setRootPosition"),Nr=l((t,r,s,n,e,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",s.x-10).attr("y",s.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%M} ${n}-outer`),t.append("rect").attr("x",s.x-6).attr("y",s.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%M} ${n}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",s.x).attr("cy",s.y).attr("r",10).attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",s.x-3).attr("cy",s.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",s.x+3).attr("cy",s.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",s.x+3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",s.x-3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`);else{const d=t.append("circle");if(d.attr("cx",s.x),d.attr("cy",s.y),d.attr("r",r.type===x.MERGE?9:10),d.attr("class",`commit ${r.id} commit${e%M}`),a===x.MERGE){const o=t.append("circle");o.attr("cx",s.x),o.attr("cy",s.y),o.attr("r",6),o.attr("class",`commit ${n} ${r.id} commit${e%M}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${s.x-5},${s.y-5}L${s.x+5},${s.y+5}M${s.x-5},${s.y+5}L${s.x+5},${s.y-5}`).attr("class",`commit ${n} ${r.id} commit${e%M}`)}},"drawCommitBullet"),Sr=l((t,r,s,n)=>{if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&v?.showCommitLabel){const e=t.append("g"),a=e.insert("rect").attr("class","commit-label-bkg"),d=e.append("text").attr("x",n).attr("y",s.y+25).attr("class","commit-label").text(r.id),o=d.node()?.getBBox();if(o&&(a.attr("x",s.posWithOffset-o.width/2-T).attr("y",s.y+13.5).attr("width",o.width+2*T).attr("height",o.height+2*T),u==="TB"||u==="BT"?(a.attr("x",s.x-(o.width+4*E+5)).attr("y",s.y-12),d.attr("x",s.x-(o.width+4*E)).attr("y",s.y+o.height-12)):d.attr("x",s.posWithOffset-o.width/2),v.rotateCommitLabel))if(u==="TB"||u==="BT")d.attr("transform","rotate(-45, "+s.x+", "+s.y+")"),a.attr("transform","rotate(-45, "+s.x+", "+s.y+")");else{const f=-7.5-(o.width+10)/25*9.5,h=10+o.width/25*8.5;e.attr("transform","translate("+f+", "+h+") rotate(-45, "+n+", "+s.y+")")}}},"drawCommitLabel"),Wr=l((t,r,s,n)=>{if(r.tags.length>0){let e=0,a=0,d=0;const o=[];for(const f of r.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",s.y-16-e).attr("class","tag-label").text(f),i=g.node()?.getBBox();if(!i)throw new Error("Tag bbox not found");a=Math.max(a,i.width),d=Math.max(d,i.height),g.attr("x",s.posWithOffset-i.width/2),o.push({tag:g,hole:$,rect:h,yOffset:e}),e+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of o){const i=d/2,y=s.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",` ${n-a/2-E/2},${y+T} ${n-a/2-E/2},${y-T} ${s.posWithOffset-a/2-E},${y-i-T} diff --git a/docs/dist/assets/graph-B7dpUAh4.js b/docs/dist/assets/graph-CrBOm174.js similarity index 96% rename from docs/dist/assets/graph-B7dpUAh4.js rename to docs/dist/assets/graph-CrBOm174.js index b14d0f5e..db64480e 100644 --- a/docs/dist/assets/graph-B7dpUAh4.js +++ b/docs/dist/assets/graph-CrBOm174.js @@ -1 +1 @@ -import{aA as N,aB as j,aC as f,aD as b,aE as E}from"./index-BtiIqbpV.js";import{a as v,c as P,k as _,f as g,d,i as l,v as p,r as D}from"./_baseUniq-UvPYksec.js";var w=N(function(o){return v(P(o,1,j,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=M(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,C(this._preds[t],e),C(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],y(this._preds[t],e),y(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function C(o,e){o[e]?o[e]++:o[e]=1}function y(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function M(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G}; +import{aA as N,aB as j,aC as f,aD as b,aE as E}from"./index-Cbm2MoYO.js";import{a as v,c as P,k as _,f as g,d,i as l,v as p,r as D}from"./_baseUniq-yJVicqoM.js";var w=N(function(o){return v(P(o,1,j,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=M(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,C(this._preds[t],e),C(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],y(this._preds[t],e),y(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function C(o,e){o[e]?o[e]++:o[e]=1}function y(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function M(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G}; diff --git a/docs/dist/assets/index-BtiIqbpV.js b/docs/dist/assets/index-Cbm2MoYO.js similarity index 72% rename from docs/dist/assets/index-BtiIqbpV.js rename to docs/dist/assets/index-Cbm2MoYO.js index 832de314..893fd94d 100644 --- a/docs/dist/assets/index-BtiIqbpV.js +++ b/docs/dist/assets/index-Cbm2MoYO.js @@ -1,57 +1,57 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP-DAENmghR.js","assets/graph-B7dpUAh4.js","assets/_baseUniq-UvPYksec.js","assets/layout-B_-UBl_B.js","assets/_basePickBy-Dm_sMLMB.js","assets/clone-uEwA9FQU.js","assets/cose-bilkent-S5V4N54A-DwegvPdd.js","assets/cytoscape.esm-CF_z7lu9.js","assets/c4Diagram-YG6GDRKO-DoDAOfmS.js","assets/chunk-TZMSLE5B-DET7R8sF.js","assets/flowDiagram-NV44I4VS-kx5p1N1n.js","assets/chunk-FMBD7UC4-mpZRA3cF.js","assets/chunk-55IACEB6-k1CzMQx-.js","assets/chunk-QN33PNHL-Ee1tIsWT.js","assets/channel-92COyuQS.js","assets/erDiagram-Q2GNP2WA-RPj5FPuZ.js","assets/gitGraphDiagram-NY62KEGX-C5UcOD27.js","assets/chunk-4BX2VUAB-DQFJwyRw.js","assets/chunk-QZHKN3VN-DPxP3j_u.js","assets/treemap-KMMF4GRG-BdBrUw5q.js","assets/ganttDiagram-LVOFAZNH-C1uRgA1W.js","assets/linear-DIZeUs0A.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-C4B-KCzX.js","assets/infoDiagram-ER5ION4S-Ba3AJNAB.js","assets/pieDiagram-ADFJNKIX-BCH2WNkj.js","assets/arc-CFZlwBOQ.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-AYHSOK5B-BrYUoIUK.js","assets/xychartDiagram-PRI3JC2R-mB92NfON.js","assets/requirementDiagram-UZGBJVZJ-Cyv_arKH.js","assets/sequenceDiagram-WL72ISMW-Dh5e4L85.js","assets/classDiagram-2ON5EDUG-B2e87Lie.js","assets/chunk-B4BG7PRW-BM5l_f1F.js","assets/classDiagram-v2-WZHVMYZB-B2e87Lie.js","assets/stateDiagram-FKZM4ZOC-C2mlkll6.js","assets/chunk-DI55MBZ5-J7umTVjb.js","assets/stateDiagram-v2-4FDKWEC3-BaoOWtKj.js","assets/journeyDiagram-XKPGCS4Q-arI6-S00.js","assets/timeline-definition-IT6M3QCI-Czw3v9K4.js","assets/mindmap-definition-VGOIOE7T-D_KtVAfA.js","assets/kanban-definition-3W4ZIXB7-CzDXUcaj.js","assets/sankeyDiagram-TZEHDZUN-D-pyaHYp.js","assets/diagram-S2PKOQOG-CiIQ2nC9.js","assets/diagram-QEK2KX5R-FYQHmCXL.js","assets/blockDiagram-VD42YOAC-CuS2rFPZ.js","assets/architectureDiagram-VXUJARFQ-B0cQz-oU.js","assets/diagram-PSM6KHXK-BM9fGZyn.js"])))=>i.map(i=>d[i]); -(function(){const it=document.createElement("link").relList;if(it&&it.supports&&it.supports("modulepreload"))return;for(const ut of document.querySelectorAll('link[rel="modulepreload"]'))dt(ut);new MutationObserver(ut=>{for(const pt of ut)if(pt.type==="childList")for(const yt of pt.addedNodes)yt.tagName==="LINK"&&yt.rel==="modulepreload"&&dt(yt)}).observe(document,{childList:!0,subtree:!0});function ct(ut){const pt={};return ut.integrity&&(pt.integrity=ut.integrity),ut.referrerPolicy&&(pt.referrerPolicy=ut.referrerPolicy),ut.crossOrigin==="use-credentials"?pt.credentials="include":ut.crossOrigin==="anonymous"?pt.credentials="omit":pt.credentials="same-origin",pt}function dt(ut){if(ut.ep)return;ut.ep=!0;const pt=ct(ut);fetch(ut.href,pt)}})();function getDefaultExportFromCjs(rt){return rt&&rt.__esModule&&Object.prototype.hasOwnProperty.call(rt,"default")?rt.default:rt}function getAugmentedNamespace(rt){if(Object.prototype.hasOwnProperty.call(rt,"__esModule"))return rt;var it=rt.default;if(typeof it=="function"){var ct=function dt(){var ut=!1;try{ut=this instanceof dt}catch{}return ut?Reflect.construct(it,arguments,this.constructor):it.apply(this,arguments)};ct.prototype=it.prototype}else ct={};return Object.defineProperty(ct,"__esModule",{value:!0}),Object.keys(rt).forEach(function(dt){var ut=Object.getOwnPropertyDescriptor(rt,dt);Object.defineProperty(ct,dt,ut.get?ut:{enumerable:!0,get:function(){return rt[dt]}})}),ct}var jsxRuntime={exports:{}},reactJsxRuntime_production={};var hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var rt=Symbol.for("react.transitional.element"),it=Symbol.for("react.fragment");function ct(dt,ut,pt){var yt=null;if(pt!==void 0&&(yt=""+pt),ut.key!==void 0&&(yt=""+ut.key),"key"in ut){pt={};for(var ft in ut)ft!=="key"&&(pt[ft]=ut[ft])}else pt=ut;return ut=pt.ref,{$$typeof:rt,type:dt,key:yt,ref:ut!==void 0?ut:null,props:pt}}return reactJsxRuntime_production.Fragment=it,reactJsxRuntime_production.jsx=ct,reactJsxRuntime_production.jsxs=ct,reactJsxRuntime_production}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=ft,base64Js.toByteArray=kt,base64Js.fromByteArray=Ct;for(var rt=[],it=[],ct=typeof Uint8Array<"u"?Uint8Array:Array,dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ut=0,pt=dt.length;ut0)throw new Error("Invalid string. Length must be a multiple of 4");var St=Mt.indexOf("=");St===-1&&(St=Lt);var It=St===Lt?0:4-St%4;return[St,It]}function ft(Mt){var Lt=yt(Mt),St=Lt[0],It=Lt[1];return(St+It)*3/4-It}function mt(Mt,Lt,St){return(Lt+St)*3/4-St}function kt(Mt){var Lt,St=yt(Mt),It=St[0],Nt=St[1],$t=new ct(mt(Mt,It,Nt)),Rt=0,qt=Nt>0?It-4:It,Ft;for(Ft=0;Ft>16&255,$t[Rt++]=Lt>>8&255,$t[Rt++]=Lt&255;return Nt===2&&(Lt=it[Mt.charCodeAt(Ft)]<<2|it[Mt.charCodeAt(Ft+1)]>>4,$t[Rt++]=Lt&255),Nt===1&&(Lt=it[Mt.charCodeAt(Ft)]<<10|it[Mt.charCodeAt(Ft+1)]<<4|it[Mt.charCodeAt(Ft+2)]>>2,$t[Rt++]=Lt>>8&255,$t[Rt++]=Lt&255),$t}function xt(Mt){return rt[Mt>>18&63]+rt[Mt>>12&63]+rt[Mt>>6&63]+rt[Mt&63]}function vt(Mt,Lt,St){for(var It,Nt=[],$t=Lt;$tqt?qt:Rt+$t));return It===1?(Lt=Mt[St-1],Nt.push(rt[Lt>>2]+rt[Lt<<4&63]+"==")):It===2&&(Lt=(Mt[St-2]<<8)+Mt[St-1],Nt.push(rt[Lt>>10]+rt[Lt>>4&63]+rt[Lt<<2&63]+"=")),Nt.join("")}return base64Js}var ieee754={};var hasRequiredIeee754;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(rt,it,ct,dt,ut){var pt,yt,ft=ut*8-dt-1,mt=(1<>1,xt=-7,vt=ct?ut-1:0,Ct=ct?-1:1,Mt=rt[it+vt];for(vt+=Ct,pt=Mt&(1<<-xt)-1,Mt>>=-xt,xt+=ft;xt>0;pt=pt*256+rt[it+vt],vt+=Ct,xt-=8);for(yt=pt&(1<<-xt)-1,pt>>=-xt,xt+=dt;xt>0;yt=yt*256+rt[it+vt],vt+=Ct,xt-=8);if(pt===0)pt=1-kt;else{if(pt===mt)return yt?NaN:(Mt?-1:1)*(1/0);yt=yt+Math.pow(2,dt),pt=pt-kt}return(Mt?-1:1)*yt*Math.pow(2,pt-dt)},ieee754.write=function(rt,it,ct,dt,ut,pt){var yt,ft,mt,kt=pt*8-ut-1,xt=(1<>1,Ct=ut===23?Math.pow(2,-24)-Math.pow(2,-77):0,Mt=dt?0:pt-1,Lt=dt?1:-1,St=it<0||it===0&&1/it<0?1:0;for(it=Math.abs(it),isNaN(it)||it===1/0?(ft=isNaN(it)?1:0,yt=xt):(yt=Math.floor(Math.log(it)/Math.LN2),it*(mt=Math.pow(2,-yt))<1&&(yt--,mt*=2),yt+vt>=1?it+=Ct/mt:it+=Ct*Math.pow(2,1-vt),it*mt>=2&&(yt++,mt/=2),yt+vt>=xt?(ft=0,yt=xt):yt+vt>=1?(ft=(it*mt-1)*Math.pow(2,ut),yt=yt+vt):(ft=it*Math.pow(2,vt-1)*Math.pow(2,ut),yt=0));ut>=8;rt[ct+Mt]=ft&255,Mt+=Lt,ft/=256,ut-=8);for(yt=yt<0;rt[ct+Mt]=yt&255,Mt+=Lt,yt/=256,kt-=8);rt[ct+Mt-Lt]|=St*128}),ieee754}var hasRequiredBuffer;function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,(function(rt){const it=requireBase64Js(),ct=requireIeee754(),dt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;rt.Buffer=ft,rt.SlowBuffer=$t,rt.INSPECT_MAX_BYTES=50;const ut=2147483647;rt.kMaxLength=ut,ft.TYPED_ARRAY_SUPPORT=pt(),!ft.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function pt(){try{const Dt=new Uint8Array(1),At={foo:function(){return 42}};return Object.setPrototypeOf(At,Uint8Array.prototype),Object.setPrototypeOf(Dt,At),Dt.foo()===42}catch{return!1}}Object.defineProperty(ft.prototype,"parent",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.buffer}}),Object.defineProperty(ft.prototype,"offset",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.byteOffset}});function yt(Dt){if(Dt>ut)throw new RangeError('The value "'+Dt+'" is invalid for option "size"');const At=new Uint8Array(Dt);return Object.setPrototypeOf(At,ft.prototype),At}function ft(Dt,At,Et){if(typeof Dt=="number"){if(typeof At=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return vt(Dt)}return mt(Dt,At,Et)}ft.poolSize=8192;function mt(Dt,At,Et){if(typeof Dt=="string")return Ct(Dt,At);if(ArrayBuffer.isView(Dt))return Lt(Dt);if(Dt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Dt);if(Mn(Dt,ArrayBuffer)||Dt&&Mn(Dt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Mn(Dt,SharedArrayBuffer)||Dt&&Mn(Dt.buffer,SharedArrayBuffer)))return St(Dt,At,Et);if(typeof Dt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Bt=Dt.valueOf&&Dt.valueOf();if(Bt!=null&&Bt!==Dt)return ft.from(Bt,At,Et);const jt=It(Dt);if(jt)return jt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Dt[Symbol.toPrimitive]=="function")return ft.from(Dt[Symbol.toPrimitive]("string"),At,Et);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Dt)}ft.from=function(Dt,At,Et){return mt(Dt,At,Et)},Object.setPrototypeOf(ft.prototype,Uint8Array.prototype),Object.setPrototypeOf(ft,Uint8Array);function kt(Dt){if(typeof Dt!="number")throw new TypeError('"size" argument must be of type number');if(Dt<0)throw new RangeError('The value "'+Dt+'" is invalid for option "size"')}function xt(Dt,At,Et){return kt(Dt),Dt<=0?yt(Dt):At!==void 0?typeof Et=="string"?yt(Dt).fill(At,Et):yt(Dt).fill(At):yt(Dt)}ft.alloc=function(Dt,At,Et){return xt(Dt,At,Et)};function vt(Dt){return kt(Dt),yt(Dt<0?0:Nt(Dt)|0)}ft.allocUnsafe=function(Dt){return vt(Dt)},ft.allocUnsafeSlow=function(Dt){return vt(Dt)};function Ct(Dt,At){if((typeof At!="string"||At==="")&&(At="utf8"),!ft.isEncoding(At))throw new TypeError("Unknown encoding: "+At);const Et=Rt(Dt,At)|0;let Bt=yt(Et);const jt=Bt.write(Dt,At);return jt!==Et&&(Bt=Bt.slice(0,jt)),Bt}function Mt(Dt){const At=Dt.length<0?0:Nt(Dt.length)|0,Et=yt(At);for(let Bt=0;Bt=ut)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ut.toString(16)+" bytes");return Dt|0}function $t(Dt){return+Dt!=Dt&&(Dt=0),ft.alloc(+Dt)}ft.isBuffer=function(At){return At!=null&&At._isBuffer===!0&&At!==ft.prototype},ft.compare=function(At,Et){if(Mn(At,Uint8Array)&&(At=ft.from(At,At.offset,At.byteLength)),Mn(Et,Uint8Array)&&(Et=ft.from(Et,Et.offset,Et.byteLength)),!ft.isBuffer(At)||!ft.isBuffer(Et))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(At===Et)return 0;let Bt=At.length,jt=Et.length;for(let Wt=0,Xt=Math.min(Bt,jt);Wtjt.length?(ft.isBuffer(Xt)||(Xt=ft.from(Xt)),Xt.copy(jt,Wt)):Uint8Array.prototype.set.call(jt,Xt,Wt);else if(ft.isBuffer(Xt))Xt.copy(jt,Wt);else throw new TypeError('"list" argument must be an Array of Buffers');Wt+=Xt.length}return jt};function Rt(Dt,At){if(ft.isBuffer(Dt))return Dt.length;if(ArrayBuffer.isView(Dt)||Mn(Dt,ArrayBuffer))return Dt.byteLength;if(typeof Dt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Dt);const Et=Dt.length,Bt=arguments.length>2&&arguments[2]===!0;if(!Bt&&Et===0)return 0;let jt=!1;for(;;)switch(At){case"ascii":case"latin1":case"binary":return Et;case"utf8":case"utf-8":return Jn(Dt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Et*2;case"hex":return Et>>>1;case"base64":return jn(Dt).length;default:if(jt)return Bt?-1:Jn(Dt).length;At=(""+At).toLowerCase(),jt=!0}}ft.byteLength=Rt;function qt(Dt,At,Et){let Bt=!1;if((At===void 0||At<0)&&(At=0),At>this.length||((Et===void 0||Et>this.length)&&(Et=this.length),Et<=0)||(Et>>>=0,At>>>=0,Et<=At))return"";for(Dt||(Dt="utf8");;)switch(Dt){case"hex":return xa(this,At,Et);case"utf8":case"utf-8":return ta(this,At,Et);case"ascii":return Kt(this,At,Et);case"latin1":case"binary":return Gt(this,At,Et);case"base64":return ya(this,At,Et);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ca(this,At,Et);default:if(Bt)throw new TypeError("Unknown encoding: "+Dt);Dt=(Dt+"").toLowerCase(),Bt=!0}}ft.prototype._isBuffer=!0;function Ft(Dt,At,Et){const Bt=Dt[At];Dt[At]=Dt[Et],Dt[Et]=Bt}ft.prototype.swap16=function(){const At=this.length;if(At%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Et=0;EtEt&&(At+=" ... "),""},dt&&(ft.prototype[dt]=ft.prototype.inspect),ft.prototype.compare=function(At,Et,Bt,jt,Wt){if(Mn(At,Uint8Array)&&(At=ft.from(At,At.offset,At.byteLength)),!ft.isBuffer(At))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof At);if(Et===void 0&&(Et=0),Bt===void 0&&(Bt=At?At.length:0),jt===void 0&&(jt=0),Wt===void 0&&(Wt=this.length),Et<0||Bt>At.length||jt<0||Wt>this.length)throw new RangeError("out of range index");if(jt>=Wt&&Et>=Bt)return 0;if(jt>=Wt)return-1;if(Et>=Bt)return 1;if(Et>>>=0,Bt>>>=0,jt>>>=0,Wt>>>=0,this===At)return 0;let Xt=Wt-jt,sa=Bt-Et;const ma=Math.min(Xt,sa),ha=this.slice(jt,Wt),La=At.slice(Et,Bt);for(let ba=0;ba2147483647?Et=2147483647:Et<-2147483648&&(Et=-2147483648),Et=+Et,vi(Et)&&(Et=jt?0:Dt.length-1),Et<0&&(Et=Dt.length+Et),Et>=Dt.length){if(jt)return-1;Et=Dt.length-1}else if(Et<0)if(jt)Et=0;else return-1;if(typeof At=="string"&&(At=ft.from(At,Bt)),ft.isBuffer(At))return At.length===0?-1:zt(Dt,At,Et,Bt,jt);if(typeof At=="number")return At=At&255,typeof Uint8Array.prototype.indexOf=="function"?jt?Uint8Array.prototype.indexOf.call(Dt,At,Et):Uint8Array.prototype.lastIndexOf.call(Dt,At,Et):zt(Dt,[At],Et,Bt,jt);throw new TypeError("val must be string, number or Buffer")}function zt(Dt,At,Et,Bt,jt){let Wt=1,Xt=Dt.length,sa=At.length;if(Bt!==void 0&&(Bt=String(Bt).toLowerCase(),Bt==="ucs2"||Bt==="ucs-2"||Bt==="utf16le"||Bt==="utf-16le")){if(Dt.length<2||At.length<2)return-1;Wt=2,Xt/=2,sa/=2,Et/=2}function ma(La,ba){return Wt===1?La[ba]:La.readUInt16BE(ba*Wt)}let ha;if(jt){let La=-1;for(ha=Et;haXt&&(Et=Xt-sa),ha=Et;ha>=0;ha--){let La=!0;for(let ba=0;bajt&&(Bt=jt)):Bt=jt;const Wt=At.length;Bt>Wt/2&&(Bt=Wt/2);let Xt;for(Xt=0;Xt>>0,isFinite(Bt)?(Bt=Bt>>>0,jt===void 0&&(jt="utf8")):(jt=Bt,Bt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Wt=this.length-Et;if((Bt===void 0||Bt>Wt)&&(Bt=Wt),At.length>0&&(Bt<0||Et<0)||Et>this.length)throw new RangeError("Attempt to write outside buffer bounds");jt||(jt="utf8");let Xt=!1;for(;;)switch(jt){case"hex":return ea(this,At,Et,Bt);case"utf8":case"utf-8":return Yt(this,At,Et,Bt);case"ascii":case"latin1":case"binary":return na(this,At,Et,Bt);case"base64":return Jt(this,At,Et,Bt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ua(this,At,Et,Bt);default:if(Xt)throw new TypeError("Unknown encoding: "+jt);jt=(""+jt).toLowerCase(),Xt=!0}},ft.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ya(Dt,At,Et){return At===0&&Et===Dt.length?it.fromByteArray(Dt):it.fromByteArray(Dt.slice(At,Et))}function ta(Dt,At,Et){Et=Math.min(Dt.length,Et);const Bt=[];let jt=At;for(;jt239?4:Wt>223?3:Wt>191?2:1;if(jt+sa<=Et){let ma,ha,La,ba;switch(sa){case 1:Wt<128&&(Xt=Wt);break;case 2:ma=Dt[jt+1],(ma&192)===128&&(ba=(Wt&31)<<6|ma&63,ba>127&&(Xt=ba));break;case 3:ma=Dt[jt+1],ha=Dt[jt+2],(ma&192)===128&&(ha&192)===128&&(ba=(Wt&15)<<12|(ma&63)<<6|ha&63,ba>2047&&(ba<55296||ba>57343)&&(Xt=ba));break;case 4:ma=Dt[jt+1],ha=Dt[jt+2],La=Dt[jt+3],(ma&192)===128&&(ha&192)===128&&(La&192)===128&&(ba=(Wt&15)<<18|(ma&63)<<12|(ha&63)<<6|La&63,ba>65535&&ba<1114112&&(Xt=ba))}}Xt===null?(Xt=65533,sa=1):Xt>65535&&(Xt-=65536,Bt.push(Xt>>>10&1023|55296),Xt=56320|Xt&1023),Bt.push(Xt),jt+=sa}return Vt(Bt)}const ra=4096;function Vt(Dt){const At=Dt.length;if(At<=ra)return String.fromCharCode.apply(String,Dt);let Et="",Bt=0;for(;BtBt)&&(Et=Bt);let jt="";for(let Wt=At;WtBt&&(At=Bt),Et<0?(Et+=Bt,Et<0&&(Et=0)):Et>Bt&&(Et=Bt),EtEt)throw new RangeError("Trying to access beyond buffer length")}ft.prototype.readUintLE=ft.prototype.readUIntLE=function(At,Et,Bt){At=At>>>0,Et=Et>>>0,Bt||Ht(At,Et,this.length);let jt=this[At],Wt=1,Xt=0;for(;++Xt>>0,Et=Et>>>0,Bt||Ht(At,Et,this.length);let jt=this[At+--Et],Wt=1;for(;Et>0&&(Wt*=256);)jt+=this[At+--Et]*Wt;return jt},ft.prototype.readUint8=ft.prototype.readUInt8=function(At,Et){return At=At>>>0,Et||Ht(At,1,this.length),this[At]},ft.prototype.readUint16LE=ft.prototype.readUInt16LE=function(At,Et){return At=At>>>0,Et||Ht(At,2,this.length),this[At]|this[At+1]<<8},ft.prototype.readUint16BE=ft.prototype.readUInt16BE=function(At,Et){return At=At>>>0,Et||Ht(At,2,this.length),this[At]<<8|this[At+1]},ft.prototype.readUint32LE=ft.prototype.readUInt32LE=function(At,Et){return At=At>>>0,Et||Ht(At,4,this.length),(this[At]|this[At+1]<<8|this[At+2]<<16)+this[At+3]*16777216},ft.prototype.readUint32BE=ft.prototype.readUInt32BE=function(At,Et){return At=At>>>0,Et||Ht(At,4,this.length),this[At]*16777216+(this[At+1]<<16|this[At+2]<<8|this[At+3])},ft.prototype.readBigUInt64LE=Tt(function(At){At=At>>>0,Ja(At,"offset");const Et=this[At],Bt=this[At+7];(Et===void 0||Bt===void 0)&&kn(At,this.length-8);const jt=Et+this[++At]*2**8+this[++At]*2**16+this[++At]*2**24,Wt=this[++At]+this[++At]*2**8+this[++At]*2**16+Bt*2**24;return BigInt(jt)+(BigInt(Wt)<>>0,Ja(At,"offset");const Et=this[At],Bt=this[At+7];(Et===void 0||Bt===void 0)&&kn(At,this.length-8);const jt=Et*2**24+this[++At]*2**16+this[++At]*2**8+this[++At],Wt=this[++At]*2**24+this[++At]*2**16+this[++At]*2**8+Bt;return(BigInt(jt)<>>0,Et=Et>>>0,Bt||Ht(At,Et,this.length);let jt=this[At],Wt=1,Xt=0;for(;++Xt=Wt&&(jt-=Math.pow(2,8*Et)),jt},ft.prototype.readIntBE=function(At,Et,Bt){At=At>>>0,Et=Et>>>0,Bt||Ht(At,Et,this.length);let jt=Et,Wt=1,Xt=this[At+--jt];for(;jt>0&&(Wt*=256);)Xt+=this[At+--jt]*Wt;return Wt*=128,Xt>=Wt&&(Xt-=Math.pow(2,8*Et)),Xt},ft.prototype.readInt8=function(At,Et){return At=At>>>0,Et||Ht(At,1,this.length),this[At]&128?(255-this[At]+1)*-1:this[At]},ft.prototype.readInt16LE=function(At,Et){At=At>>>0,Et||Ht(At,2,this.length);const Bt=this[At]|this[At+1]<<8;return Bt&32768?Bt|4294901760:Bt},ft.prototype.readInt16BE=function(At,Et){At=At>>>0,Et||Ht(At,2,this.length);const Bt=this[At+1]|this[At]<<8;return Bt&32768?Bt|4294901760:Bt},ft.prototype.readInt32LE=function(At,Et){return At=At>>>0,Et||Ht(At,4,this.length),this[At]|this[At+1]<<8|this[At+2]<<16|this[At+3]<<24},ft.prototype.readInt32BE=function(At,Et){return At=At>>>0,Et||Ht(At,4,this.length),this[At]<<24|this[At+1]<<16|this[At+2]<<8|this[At+3]},ft.prototype.readBigInt64LE=Tt(function(At){At=At>>>0,Ja(At,"offset");const Et=this[At],Bt=this[At+7];(Et===void 0||Bt===void 0)&&kn(At,this.length-8);const jt=this[At+4]+this[At+5]*2**8+this[At+6]*2**16+(Bt<<24);return(BigInt(jt)<>>0,Ja(At,"offset");const Et=this[At],Bt=this[At+7];(Et===void 0||Bt===void 0)&&kn(At,this.length-8);const jt=(Et<<24)+this[++At]*2**16+this[++At]*2**8+this[++At];return(BigInt(jt)<>>0,Et||Ht(At,4,this.length),ct.read(this,At,!0,23,4)},ft.prototype.readFloatBE=function(At,Et){return At=At>>>0,Et||Ht(At,4,this.length),ct.read(this,At,!1,23,4)},ft.prototype.readDoubleLE=function(At,Et){return At=At>>>0,Et||Ht(At,8,this.length),ct.read(this,At,!0,52,8)},ft.prototype.readDoubleBE=function(At,Et){return At=At>>>0,Et||Ht(At,8,this.length),ct.read(this,At,!1,52,8)};function Qt(Dt,At,Et,Bt,jt,Wt){if(!ft.isBuffer(Dt))throw new TypeError('"buffer" argument must be a Buffer instance');if(At>jt||AtDt.length)throw new RangeError("Index out of range")}ft.prototype.writeUintLE=ft.prototype.writeUIntLE=function(At,Et,Bt,jt){if(At=+At,Et=Et>>>0,Bt=Bt>>>0,!jt){const sa=Math.pow(2,8*Bt)-1;Qt(this,At,Et,Bt,sa,0)}let Wt=1,Xt=0;for(this[Et]=At&255;++Xt>>0,Bt=Bt>>>0,!jt){const sa=Math.pow(2,8*Bt)-1;Qt(this,At,Et,Bt,sa,0)}let Wt=Bt-1,Xt=1;for(this[Et+Wt]=At&255;--Wt>=0&&(Xt*=256);)this[Et+Wt]=At/Xt&255;return Et+Bt},ft.prototype.writeUint8=ft.prototype.writeUInt8=function(At,Et,Bt){return At=+At,Et=Et>>>0,Bt||Qt(this,At,Et,1,255,0),this[Et]=At&255,Et+1},ft.prototype.writeUint16LE=ft.prototype.writeUInt16LE=function(At,Et,Bt){return At=+At,Et=Et>>>0,Bt||Qt(this,At,Et,2,65535,0),this[Et]=At&255,this[Et+1]=At>>>8,Et+2},ft.prototype.writeUint16BE=ft.prototype.writeUInt16BE=function(At,Et,Bt){return At=+At,Et=Et>>>0,Bt||Qt(this,At,Et,2,65535,0),this[Et]=At>>>8,this[Et+1]=At&255,Et+2},ft.prototype.writeUint32LE=ft.prototype.writeUInt32LE=function(At,Et,Bt){return At=+At,Et=Et>>>0,Bt||Qt(this,At,Et,4,4294967295,0),this[Et+3]=At>>>24,this[Et+2]=At>>>16,this[Et+1]=At>>>8,this[Et]=At&255,Et+4},ft.prototype.writeUint32BE=ft.prototype.writeUInt32BE=function(At,Et,Bt){return At=+At,Et=Et>>>0,Bt||Qt(this,At,Et,4,4294967295,0),this[Et]=At>>>24,this[Et+1]=At>>>16,this[Et+2]=At>>>8,this[Et+3]=At&255,Et+4};function ca(Dt,At,Et,Bt,jt){hn(At,Bt,jt,Dt,Et,7);let Wt=Number(At&BigInt(4294967295));Dt[Et++]=Wt,Wt=Wt>>8,Dt[Et++]=Wt,Wt=Wt>>8,Dt[Et++]=Wt,Wt=Wt>>8,Dt[Et++]=Wt;let Xt=Number(At>>BigInt(32)&BigInt(4294967295));return Dt[Et++]=Xt,Xt=Xt>>8,Dt[Et++]=Xt,Xt=Xt>>8,Dt[Et++]=Xt,Xt=Xt>>8,Dt[Et++]=Xt,Et}function _a(Dt,At,Et,Bt,jt){hn(At,Bt,jt,Dt,Et,7);let Wt=Number(At&BigInt(4294967295));Dt[Et+7]=Wt,Wt=Wt>>8,Dt[Et+6]=Wt,Wt=Wt>>8,Dt[Et+5]=Wt,Wt=Wt>>8,Dt[Et+4]=Wt;let Xt=Number(At>>BigInt(32)&BigInt(4294967295));return Dt[Et+3]=Xt,Xt=Xt>>8,Dt[Et+2]=Xt,Xt=Xt>>8,Dt[Et+1]=Xt,Xt=Xt>>8,Dt[Et]=Xt,Et+8}ft.prototype.writeBigUInt64LE=Tt(function(At,Et=0){return ca(this,At,Et,BigInt(0),BigInt("0xffffffffffffffff"))}),ft.prototype.writeBigUInt64BE=Tt(function(At,Et=0){return _a(this,At,Et,BigInt(0),BigInt("0xffffffffffffffff"))}),ft.prototype.writeIntLE=function(At,Et,Bt,jt){if(At=+At,Et=Et>>>0,!jt){const ma=Math.pow(2,8*Bt-1);Qt(this,At,Et,Bt,ma-1,-ma)}let Wt=0,Xt=1,sa=0;for(this[Et]=At&255;++Wt>0)-sa&255;return Et+Bt},ft.prototype.writeIntBE=function(At,Et,Bt,jt){if(At=+At,Et=Et>>>0,!jt){const ma=Math.pow(2,8*Bt-1);Qt(this,At,Et,Bt,ma-1,-ma)}let Wt=Bt-1,Xt=1,sa=0;for(this[Et+Wt]=At&255;--Wt>=0&&(Xt*=256);)At<0&&sa===0&&this[Et+Wt+1]!==0&&(sa=1),this[Et+Wt]=(At/Xt>>0)-sa&255;return Et+Bt},ft.prototype.writeInt8=function(At,Et,Bt){return At=+At,Et=Et>>>0,Bt||Qt(this,At,Et,1,127,-128),At<0&&(At=255+At+1),this[Et]=At&255,Et+1},ft.prototype.writeInt16LE=function(At,Et,Bt){return At=+At,Et=Et>>>0,Bt||Qt(this,At,Et,2,32767,-32768),this[Et]=At&255,this[Et+1]=At>>>8,Et+2},ft.prototype.writeInt16BE=function(At,Et,Bt){return At=+At,Et=Et>>>0,Bt||Qt(this,At,Et,2,32767,-32768),this[Et]=At>>>8,this[Et+1]=At&255,Et+2},ft.prototype.writeInt32LE=function(At,Et,Bt){return At=+At,Et=Et>>>0,Bt||Qt(this,At,Et,4,2147483647,-2147483648),this[Et]=At&255,this[Et+1]=At>>>8,this[Et+2]=At>>>16,this[Et+3]=At>>>24,Et+4},ft.prototype.writeInt32BE=function(At,Et,Bt){return At=+At,Et=Et>>>0,Bt||Qt(this,At,Et,4,2147483647,-2147483648),At<0&&(At=4294967295+At+1),this[Et]=At>>>24,this[Et+1]=At>>>16,this[Et+2]=At>>>8,this[Et+3]=At&255,Et+4},ft.prototype.writeBigInt64LE=Tt(function(At,Et=0){return ca(this,At,Et,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ft.prototype.writeBigInt64BE=Tt(function(At,Et=0){return _a(this,At,Et,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ka(Dt,At,Et,Bt,jt,Wt){if(Et+Bt>Dt.length)throw new RangeError("Index out of range");if(Et<0)throw new RangeError("Index out of range")}function $a(Dt,At,Et,Bt,jt){return At=+At,Et=Et>>>0,jt||ka(Dt,At,Et,4),ct.write(Dt,At,Et,Bt,23,4),Et+4}ft.prototype.writeFloatLE=function(At,Et,Bt){return $a(this,At,Et,!0,Bt)},ft.prototype.writeFloatBE=function(At,Et,Bt){return $a(this,At,Et,!1,Bt)};function Na(Dt,At,Et,Bt,jt){return At=+At,Et=Et>>>0,jt||ka(Dt,At,Et,8),ct.write(Dt,At,Et,Bt,52,8),Et+8}ft.prototype.writeDoubleLE=function(At,Et,Bt){return Na(this,At,Et,!0,Bt)},ft.prototype.writeDoubleBE=function(At,Et,Bt){return Na(this,At,Et,!1,Bt)},ft.prototype.copy=function(At,Et,Bt,jt){if(!ft.isBuffer(At))throw new TypeError("argument should be a Buffer");if(Bt||(Bt=0),!jt&&jt!==0&&(jt=this.length),Et>=At.length&&(Et=At.length),Et||(Et=0),jt>0&&jt=this.length)throw new RangeError("Index out of range");if(jt<0)throw new RangeError("sourceEnd out of bounds");jt>this.length&&(jt=this.length),At.length-Et>>0,Bt=Bt===void 0?this.length:Bt>>>0,At||(At=0);let Wt;if(typeof At=="number")for(Wt=Et;Wt2**32?jt=Ha(String(Et)):typeof Et=="bigint"&&(jt=String(Et),(Et>BigInt(2)**BigInt(32)||Et<-(BigInt(2)**BigInt(32)))&&(jt=Ha(jt)),jt+="n"),Bt+=` It must be ${At}. Received ${jt}`,Bt},RangeError);function Ha(Dt){let At="",Et=Dt.length;const Bt=Dt[0]==="-"?1:0;for(;Et>=Bt+4;Et-=3)At=`_${Dt.slice(Et-3,Et)}${At}`;return`${Dt.slice(0,Et)}${At}`}function rn(Dt,At,Et){Ja(At,"offset"),(Dt[At]===void 0||Dt[At+Et]===void 0)&&kn(At,Dt.length-(Et+1))}function hn(Dt,At,Et,Bt,jt,Wt){if(Dt>Et||Dt= 0${Xt} and < 2${Xt} ** ${(Wt+1)*8}${Xt}`:sa=`>= -(2${Xt} ** ${(Wt+1)*8-1}${Xt}) and < 2 ** ${(Wt+1)*8-1}${Xt}`,new qa.ERR_OUT_OF_RANGE("value",sa,Dt)}rn(Bt,jt,Wt)}function Ja(Dt,At){if(typeof Dt!="number")throw new qa.ERR_INVALID_ARG_TYPE(At,"number",Dt)}function kn(Dt,At,Et){throw Math.floor(Dt)!==Dt?(Ja(Dt,Et),new qa.ERR_OUT_OF_RANGE("offset","an integer",Dt)):At<0?new qa.ERR_BUFFER_OUT_OF_BOUNDS:new qa.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${At}`,Dt)}const En=/[^+/0-9A-Za-z-_]/g;function Hn(Dt){if(Dt=Dt.split("=")[0],Dt=Dt.trim().replace(En,""),Dt.length<2)return"";for(;Dt.length%4!==0;)Dt=Dt+"=";return Dt}function Jn(Dt,At){At=At||1/0;let Et;const Bt=Dt.length;let jt=null;const Wt=[];for(let Xt=0;Xt55295&&Et<57344){if(!jt){if(Et>56319){(At-=3)>-1&&Wt.push(239,191,189);continue}else if(Xt+1===Bt){(At-=3)>-1&&Wt.push(239,191,189);continue}jt=Et;continue}if(Et<56320){(At-=3)>-1&&Wt.push(239,191,189),jt=Et;continue}Et=(jt-55296<<10|Et-56320)+65536}else jt&&(At-=3)>-1&&Wt.push(239,191,189);if(jt=null,Et<128){if((At-=1)<0)break;Wt.push(Et)}else if(Et<2048){if((At-=2)<0)break;Wt.push(Et>>6|192,Et&63|128)}else if(Et<65536){if((At-=3)<0)break;Wt.push(Et>>12|224,Et>>6&63|128,Et&63|128)}else if(Et<1114112){if((At-=4)<0)break;Wt.push(Et>>18|240,Et>>12&63|128,Et>>6&63|128,Et&63|128)}else throw new Error("Invalid code point")}return Wt}function vn(Dt){const At=[];for(let Et=0;Et>8,jt=Et%256,Wt.push(jt),Wt.push(Bt);return Wt}function jn(Dt){return it.toByteArray(Hn(Dt))}function On(Dt,At,Et,Bt){let jt;for(jt=0;jt=At.length||jt>=Dt.length);++jt)At[jt+Et]=Dt[jt];return jt}function Mn(Dt,At){return Dt instanceof At||Dt!=null&&Dt.constructor!=null&&Dt.constructor.name!=null&&Dt.constructor.name===At.name}function vi(Dt){return Dt!==Dt}const pn=(function(){const Dt="0123456789abcdef",At=new Array(256);for(let Et=0;Et<16;++Et){const Bt=Et*16;for(let jt=0;jt<16;++jt)At[Bt+jt]=Dt[Et]+Dt[jt]}return At})();function Tt(Dt){return typeof BigInt>"u"?pa:Dt}function pa(){throw new Error("BigInt not supported")}})(buffer)),buffer}var bufferExports=requireBuffer(),react={exports:{}},react_production={};var hasRequiredReact_production;function requireReact_production(){if(hasRequiredReact_production)return react_production;hasRequiredReact_production=1;var rt=Symbol.for("react.transitional.element"),it=Symbol.for("react.portal"),ct=Symbol.for("react.fragment"),dt=Symbol.for("react.strict_mode"),ut=Symbol.for("react.profiler"),pt=Symbol.for("react.consumer"),yt=Symbol.for("react.context"),ft=Symbol.for("react.forward_ref"),mt=Symbol.for("react.suspense"),kt=Symbol.for("react.memo"),xt=Symbol.for("react.lazy"),vt=Symbol.for("react.activity"),Ct=Symbol.iterator;function Mt(Ht){return Ht===null||typeof Ht!="object"?null:(Ht=Ct&&Ht[Ct]||Ht["@@iterator"],typeof Ht=="function"?Ht:null)}var Lt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},St=Object.assign,It={};function Nt(Ht,Qt,ca){this.props=Ht,this.context=Qt,this.refs=It,this.updater=ca||Lt}Nt.prototype.isReactComponent={},Nt.prototype.setState=function(Ht,Qt){if(typeof Ht!="object"&&typeof Ht!="function"&&Ht!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Ht,Qt,"setState")},Nt.prototype.forceUpdate=function(Ht){this.updater.enqueueForceUpdate(this,Ht,"forceUpdate")};function $t(){}$t.prototype=Nt.prototype;function Rt(Ht,Qt,ca){this.props=Ht,this.context=Qt,this.refs=It,this.updater=ca||Lt}var qt=Rt.prototype=new $t;qt.constructor=Rt,St(qt,Nt.prototype),qt.isPureReactComponent=!0;var Ft=Array.isArray;function Ut(){}var zt={H:null,A:null,T:null,S:null},ea=Object.prototype.hasOwnProperty;function Yt(Ht,Qt,ca){var _a=ca.ref;return{$$typeof:rt,type:Ht,key:Qt,ref:_a!==void 0?_a:null,props:ca}}function na(Ht,Qt){return Yt(Ht.type,Qt,Ht.props)}function Jt(Ht){return typeof Ht=="object"&&Ht!==null&&Ht.$$typeof===rt}function ua(Ht){var Qt={"=":"=0",":":"=2"};return"$"+Ht.replace(/[=:]/g,function(ca){return Qt[ca]})}var ya=/\/+/g;function ta(Ht,Qt){return typeof Ht=="object"&&Ht!==null&&Ht.key!=null?ua(""+Ht.key):Qt.toString(36)}function ra(Ht){switch(Ht.status){case"fulfilled":return Ht.value;case"rejected":throw Ht.reason;default:switch(typeof Ht.status=="string"?Ht.then(Ut,Ut):(Ht.status="pending",Ht.then(function(Qt){Ht.status==="pending"&&(Ht.status="fulfilled",Ht.value=Qt)},function(Qt){Ht.status==="pending"&&(Ht.status="rejected",Ht.reason=Qt)})),Ht.status){case"fulfilled":return Ht.value;case"rejected":throw Ht.reason}}throw Ht}function Vt(Ht,Qt,ca,_a,ka){var $a=typeof Ht;($a==="undefined"||$a==="boolean")&&(Ht=null);var Na=!1;if(Ht===null)Na=!0;else switch($a){case"bigint":case"string":case"number":Na=!0;break;case"object":switch(Ht.$$typeof){case rt:case it:Na=!0;break;case xt:return Na=Ht._init,Vt(Na(Ht._payload),Qt,ca,_a,ka)}}if(Na)return ka=ka(Ht),Na=_a===""?"."+ta(Ht,0):_a,Ft(ka)?(ca="",Na!=null&&(ca=Na.replace(ya,"$&/")+"/"),Vt(ka,Qt,ca,"",function(Ha){return Ha})):ka!=null&&(Jt(ka)&&(ka=na(ka,ca+(ka.key==null||Ht&&Ht.key===ka.key?"":(""+ka.key).replace(ya,"$&/")+"/")+Na)),Qt.push(ka)),1;Na=0;var qa=_a===""?".":_a+":";if(Ft(Ht))for(var Fa=0;Fa>>1,Ca=Vt[xa];if(0>>1;xaut(ca,Gt))_aut(ka,ca)?(Vt[xa]=ka,Vt[_a]=Gt,xa=_a):(Vt[xa]=ca,Vt[Qt]=Gt,xa=Qt);else if(_aut(ka,Gt))Vt[xa]=ka,Vt[_a]=Gt,xa=_a;else break e}}return Kt}function ut(Vt,Kt){var Gt=Vt.sortIndex-Kt.sortIndex;return Gt!==0?Gt:Vt.id-Kt.id}if(rt.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var pt=performance;rt.unstable_now=function(){return pt.now()}}else{var yt=Date,ft=yt.now();rt.unstable_now=function(){return yt.now()-ft}}var mt=[],kt=[],xt=1,vt=null,Ct=3,Mt=!1,Lt=!1,St=!1,It=!1,Nt=typeof setTimeout=="function"?setTimeout:null,$t=typeof clearTimeout=="function"?clearTimeout:null,Rt=typeof setImmediate<"u"?setImmediate:null;function qt(Vt){for(var Kt=ct(kt);Kt!==null;){if(Kt.callback===null)dt(kt);else if(Kt.startTime<=Vt)dt(kt),Kt.sortIndex=Kt.expirationTime,it(mt,Kt);else break;Kt=ct(kt)}}function Ft(Vt){if(St=!1,qt(Vt),!Lt)if(ct(mt)!==null)Lt=!0,Ut||(Ut=!0,ua());else{var Kt=ct(kt);Kt!==null&&ra(Ft,Kt.startTime-Vt)}}var Ut=!1,zt=-1,ea=5,Yt=-1;function na(){return It?!0:!(rt.unstable_now()-YtVt&&na());){var xa=vt.callback;if(typeof xa=="function"){vt.callback=null,Ct=vt.priorityLevel;var Ca=xa(vt.expirationTime<=Vt);if(Vt=rt.unstable_now(),typeof Ca=="function"){vt.callback=Ca,qt(Vt),Kt=!0;break t}vt===ct(mt)&&dt(mt),qt(Vt)}else dt(mt);vt=ct(mt)}if(vt!==null)Kt=!0;else{var Ht=ct(kt);Ht!==null&&ra(Ft,Ht.startTime-Vt),Kt=!1}}break e}finally{vt=null,Ct=Gt,Mt=!1}Kt=void 0}}finally{Kt?ua():Ut=!1}}}var ua;if(typeof Rt=="function")ua=function(){Rt(Jt)};else if(typeof MessageChannel<"u"){var ya=new MessageChannel,ta=ya.port2;ya.port1.onmessage=Jt,ua=function(){ta.postMessage(null)}}else ua=function(){Nt(Jt,0)};function ra(Vt,Kt){zt=Nt(function(){Vt(rt.unstable_now())},Kt)}rt.unstable_IdlePriority=5,rt.unstable_ImmediatePriority=1,rt.unstable_LowPriority=4,rt.unstable_NormalPriority=3,rt.unstable_Profiling=null,rt.unstable_UserBlockingPriority=2,rt.unstable_cancelCallback=function(Vt){Vt.callback=null},rt.unstable_forceFrameRate=function(Vt){0>Vt||125xa?(Vt.sortIndex=Gt,it(kt,Vt),ct(mt)===null&&Vt===ct(kt)&&(St?($t(zt),zt=-1):St=!0,ra(Ft,Gt-xa))):(Vt.sortIndex=Ca,it(mt,Vt),Lt||Mt||(Lt=!0,Ut||(Ut=!0,ua()))),Vt},rt.unstable_shouldYield=na,rt.unstable_wrapCallback=function(Vt){var Kt=Ct;return function(){var Gt=Ct;Ct=Kt;try{return Vt.apply(this,arguments)}finally{Ct=Gt}}}})(scheduler_production)),scheduler_production}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production()),scheduler.exports}var reactDom={exports:{}},reactDom_production={};var hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var rt=requireReact();function it(mt){var kt="https://react.dev/errors/"+mt;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rt)}catch(it){console.error(it)}}return rt(),reactDom.exports=requireReactDom_production(),reactDom.exports}var hasRequiredReactDomClient_production;function requireReactDomClient_production(){if(hasRequiredReactDomClient_production)return reactDomClient_production;hasRequiredReactDomClient_production=1;var rt=requireScheduler(),it=requireReact(),ct=requireReactDom();function dt(lt){var ht="https://react.dev/errors/"+lt;if(1Ca||(lt.current=xa[Ca],xa[Ca]=null,Ca--)}function ca(lt,ht){Ca++,xa[Ca]=lt.current,lt.current=ht}var _a=Ht(null),ka=Ht(null),$a=Ht(null),Na=Ht(null);function qa(lt,ht){switch(ca($a,ht),ca(ka,lt),ca(_a,null),ht.nodeType){case 9:case 11:lt=(lt=ht.documentElement)&&(lt=lt.namespaceURI)?o0(lt):0;break;default:if(lt=ht.tagName,ht=ht.namespaceURI)ht=o0(ht),lt=c0(ht,lt);else switch(lt){case"svg":lt=1;break;case"math":lt=2;break;default:lt=0}}Qt(_a),ca(_a,lt)}function Fa(){Qt(_a),Qt(ka),Qt($a)}function Ha(lt){lt.memoizedState!==null&&ca(Na,lt);var ht=_a.current,gt=c0(ht,lt.type);ht!==gt&&(ca(ka,lt),ca(_a,gt))}function rn(lt){ka.current===lt&&(Qt(_a),Qt(ka)),Na.current===lt&&(Qt(Na),vc._currentValue=Gt)}var hn,Ja;function kn(lt){if(hn===void 0)try{throw Error()}catch(gt){var ht=gt.stack.trim().match(/\n( *(at )?)/);hn=ht&&ht[1]||"",Ja=-1i.map(i=>d[i]); +(function(){const it=document.createElement("link").relList;if(it&&it.supports&&it.supports("modulepreload"))return;for(const ut of document.querySelectorAll('link[rel="modulepreload"]'))dt(ut);new MutationObserver(ut=>{for(const pt of ut)if(pt.type==="childList")for(const yt of pt.addedNodes)yt.tagName==="LINK"&&yt.rel==="modulepreload"&&dt(yt)}).observe(document,{childList:!0,subtree:!0});function ct(ut){const pt={};return ut.integrity&&(pt.integrity=ut.integrity),ut.referrerPolicy&&(pt.referrerPolicy=ut.referrerPolicy),ut.crossOrigin==="use-credentials"?pt.credentials="include":ut.crossOrigin==="anonymous"?pt.credentials="omit":pt.credentials="same-origin",pt}function dt(ut){if(ut.ep)return;ut.ep=!0;const pt=ct(ut);fetch(ut.href,pt)}})();function getDefaultExportFromCjs(rt){return rt&&rt.__esModule&&Object.prototype.hasOwnProperty.call(rt,"default")?rt.default:rt}function getAugmentedNamespace(rt){if(Object.prototype.hasOwnProperty.call(rt,"__esModule"))return rt;var it=rt.default;if(typeof it=="function"){var ct=function dt(){var ut=!1;try{ut=this instanceof dt}catch{}return ut?Reflect.construct(it,arguments,this.constructor):it.apply(this,arguments)};ct.prototype=it.prototype}else ct={};return Object.defineProperty(ct,"__esModule",{value:!0}),Object.keys(rt).forEach(function(dt){var ut=Object.getOwnPropertyDescriptor(rt,dt);Object.defineProperty(ct,dt,ut.get?ut:{enumerable:!0,get:function(){return rt[dt]}})}),ct}var jsxRuntime={exports:{}},reactJsxRuntime_production={};var hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var rt=Symbol.for("react.transitional.element"),it=Symbol.for("react.fragment");function ct(dt,ut,pt){var yt=null;if(pt!==void 0&&(yt=""+pt),ut.key!==void 0&&(yt=""+ut.key),"key"in ut){pt={};for(var ft in ut)ft!=="key"&&(pt[ft]=ut[ft])}else pt=ut;return ut=pt.ref,{$$typeof:rt,type:dt,key:yt,ref:ut!==void 0?ut:null,props:pt}}return reactJsxRuntime_production.Fragment=it,reactJsxRuntime_production.jsx=ct,reactJsxRuntime_production.jsxs=ct,reactJsxRuntime_production}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=ft,base64Js.toByteArray=kt,base64Js.fromByteArray=bt;for(var rt=[],it=[],ct=typeof Uint8Array<"u"?Uint8Array:Array,dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ut=0,pt=dt.length;ut0)throw new Error("Invalid string. Length must be a multiple of 4");var St=Mt.indexOf("=");St===-1&&(St=wt);var It=St===wt?0:4-St%4;return[St,It]}function ft(Mt){var wt=yt(Mt),St=wt[0],It=wt[1];return(St+It)*3/4-It}function mt(Mt,wt,St){return(wt+St)*3/4-St}function kt(Mt){var wt,St=yt(Mt),It=St[0],Nt=St[1],$t=new ct(mt(Mt,It,Nt)),Et=0,Ft=Nt>0?It-4:It,qt;for(qt=0;qt>16&255,$t[Et++]=wt>>8&255,$t[Et++]=wt&255;return Nt===2&&(wt=it[Mt.charCodeAt(qt)]<<2|it[Mt.charCodeAt(qt+1)]>>4,$t[Et++]=wt&255),Nt===1&&(wt=it[Mt.charCodeAt(qt)]<<10|it[Mt.charCodeAt(qt+1)]<<4|it[Mt.charCodeAt(qt+2)]>>2,$t[Et++]=wt>>8&255,$t[Et++]=wt&255),$t}function _t(Mt){return rt[Mt>>18&63]+rt[Mt>>12&63]+rt[Mt>>6&63]+rt[Mt&63]}function vt(Mt,wt,St){for(var It,Nt=[],$t=wt;$tFt?Ft:Et+$t));return It===1?(wt=Mt[St-1],Nt.push(rt[wt>>2]+rt[wt<<4&63]+"==")):It===2&&(wt=(Mt[St-2]<<8)+Mt[St-1],Nt.push(rt[wt>>10]+rt[wt>>4&63]+rt[wt<<2&63]+"=")),Nt.join("")}return base64Js}var ieee754={};var hasRequiredIeee754;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(rt,it,ct,dt,ut){var pt,yt,ft=ut*8-dt-1,mt=(1<>1,_t=-7,vt=ct?ut-1:0,bt=ct?-1:1,Mt=rt[it+vt];for(vt+=bt,pt=Mt&(1<<-_t)-1,Mt>>=-_t,_t+=ft;_t>0;pt=pt*256+rt[it+vt],vt+=bt,_t-=8);for(yt=pt&(1<<-_t)-1,pt>>=-_t,_t+=dt;_t>0;yt=yt*256+rt[it+vt],vt+=bt,_t-=8);if(pt===0)pt=1-kt;else{if(pt===mt)return yt?NaN:(Mt?-1:1)*(1/0);yt=yt+Math.pow(2,dt),pt=pt-kt}return(Mt?-1:1)*yt*Math.pow(2,pt-dt)},ieee754.write=function(rt,it,ct,dt,ut,pt){var yt,ft,mt,kt=pt*8-ut-1,_t=(1<>1,bt=ut===23?Math.pow(2,-24)-Math.pow(2,-77):0,Mt=dt?0:pt-1,wt=dt?1:-1,St=it<0||it===0&&1/it<0?1:0;for(it=Math.abs(it),isNaN(it)||it===1/0?(ft=isNaN(it)?1:0,yt=_t):(yt=Math.floor(Math.log(it)/Math.LN2),it*(mt=Math.pow(2,-yt))<1&&(yt--,mt*=2),yt+vt>=1?it+=bt/mt:it+=bt*Math.pow(2,1-vt),it*mt>=2&&(yt++,mt/=2),yt+vt>=_t?(ft=0,yt=_t):yt+vt>=1?(ft=(it*mt-1)*Math.pow(2,ut),yt=yt+vt):(ft=it*Math.pow(2,vt-1)*Math.pow(2,ut),yt=0));ut>=8;rt[ct+Mt]=ft&255,Mt+=wt,ft/=256,ut-=8);for(yt=yt<0;rt[ct+Mt]=yt&255,Mt+=wt,yt/=256,kt-=8);rt[ct+Mt-wt]|=St*128}),ieee754}var hasRequiredBuffer;function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,(function(rt){const it=requireBase64Js(),ct=requireIeee754(),dt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;rt.Buffer=ft,rt.SlowBuffer=$t,rt.INSPECT_MAX_BYTES=50;const ut=2147483647;rt.kMaxLength=ut,ft.TYPED_ARRAY_SUPPORT=pt(),!ft.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function pt(){try{const Pt=new Uint8Array(1),At={foo:function(){return 42}};return Object.setPrototypeOf(At,Uint8Array.prototype),Object.setPrototypeOf(Pt,At),Pt.foo()===42}catch{return!1}}Object.defineProperty(ft.prototype,"parent",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.buffer}}),Object.defineProperty(ft.prototype,"offset",{enumerable:!0,get:function(){if(ft.isBuffer(this))return this.byteOffset}});function yt(Pt){if(Pt>ut)throw new RangeError('The value "'+Pt+'" is invalid for option "size"');const At=new Uint8Array(Pt);return Object.setPrototypeOf(At,ft.prototype),At}function ft(Pt,At,Rt){if(typeof Pt=="number"){if(typeof At=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return vt(Pt)}return mt(Pt,At,Rt)}ft.poolSize=8192;function mt(Pt,At,Rt){if(typeof Pt=="string")return bt(Pt,At);if(ArrayBuffer.isView(Pt))return wt(Pt);if(Pt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Pt);if(Mn(Pt,ArrayBuffer)||Pt&&Mn(Pt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Mn(Pt,SharedArrayBuffer)||Pt&&Mn(Pt.buffer,SharedArrayBuffer)))return St(Pt,At,Rt);if(typeof Pt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Bt=Pt.valueOf&&Pt.valueOf();if(Bt!=null&&Bt!==Pt)return ft.from(Bt,At,Rt);const jt=It(Pt);if(jt)return jt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Pt[Symbol.toPrimitive]=="function")return ft.from(Pt[Symbol.toPrimitive]("string"),At,Rt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Pt)}ft.from=function(Pt,At,Rt){return mt(Pt,At,Rt)},Object.setPrototypeOf(ft.prototype,Uint8Array.prototype),Object.setPrototypeOf(ft,Uint8Array);function kt(Pt){if(typeof Pt!="number")throw new TypeError('"size" argument must be of type number');if(Pt<0)throw new RangeError('The value "'+Pt+'" is invalid for option "size"')}function _t(Pt,At,Rt){return kt(Pt),Pt<=0?yt(Pt):At!==void 0?typeof Rt=="string"?yt(Pt).fill(At,Rt):yt(Pt).fill(At):yt(Pt)}ft.alloc=function(Pt,At,Rt){return _t(Pt,At,Rt)};function vt(Pt){return kt(Pt),yt(Pt<0?0:Nt(Pt)|0)}ft.allocUnsafe=function(Pt){return vt(Pt)},ft.allocUnsafeSlow=function(Pt){return vt(Pt)};function bt(Pt,At){if((typeof At!="string"||At==="")&&(At="utf8"),!ft.isEncoding(At))throw new TypeError("Unknown encoding: "+At);const Rt=Et(Pt,At)|0;let Bt=yt(Rt);const jt=Bt.write(Pt,At);return jt!==Rt&&(Bt=Bt.slice(0,jt)),Bt}function Mt(Pt){const At=Pt.length<0?0:Nt(Pt.length)|0,Rt=yt(At);for(let Bt=0;Bt=ut)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ut.toString(16)+" bytes");return Pt|0}function $t(Pt){return+Pt!=Pt&&(Pt=0),ft.alloc(+Pt)}ft.isBuffer=function(At){return At!=null&&At._isBuffer===!0&&At!==ft.prototype},ft.compare=function(At,Rt){if(Mn(At,Uint8Array)&&(At=ft.from(At,At.offset,At.byteLength)),Mn(Rt,Uint8Array)&&(Rt=ft.from(Rt,Rt.offset,Rt.byteLength)),!ft.isBuffer(At)||!ft.isBuffer(Rt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(At===Rt)return 0;let Bt=At.length,jt=Rt.length;for(let Wt=0,Xt=Math.min(Bt,jt);Wtjt.length?(ft.isBuffer(Xt)||(Xt=ft.from(Xt)),Xt.copy(jt,Wt)):Uint8Array.prototype.set.call(jt,Xt,Wt);else if(ft.isBuffer(Xt))Xt.copy(jt,Wt);else throw new TypeError('"list" argument must be an Array of Buffers');Wt+=Xt.length}return jt};function Et(Pt,At){if(ft.isBuffer(Pt))return Pt.length;if(ArrayBuffer.isView(Pt)||Mn(Pt,ArrayBuffer))return Pt.byteLength;if(typeof Pt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Pt);const Rt=Pt.length,Bt=arguments.length>2&&arguments[2]===!0;if(!Bt&&Rt===0)return 0;let jt=!1;for(;;)switch(At){case"ascii":case"latin1":case"binary":return Rt;case"utf8":case"utf-8":return Jn(Pt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rt*2;case"hex":return Rt>>>1;case"base64":return jn(Pt).length;default:if(jt)return Bt?-1:Jn(Pt).length;At=(""+At).toLowerCase(),jt=!0}}ft.byteLength=Et;function Ft(Pt,At,Rt){let Bt=!1;if((At===void 0||At<0)&&(At=0),At>this.length||((Rt===void 0||Rt>this.length)&&(Rt=this.length),Rt<=0)||(Rt>>>=0,At>>>=0,Rt<=At))return"";for(Pt||(Pt="utf8");;)switch(Pt){case"hex":return _a(this,At,Rt);case"utf8":case"utf-8":return Kt(this,At,Rt);case"ascii":return ea(this,At,Rt);case"latin1":case"binary":return Gt(this,At,Rt);case"base64":return la(this,At,Rt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ca(this,At,Rt);default:if(Bt)throw new TypeError("Unknown encoding: "+Pt);Pt=(Pt+"").toLowerCase(),Bt=!0}}ft.prototype._isBuffer=!0;function qt(Pt,At,Rt){const Bt=Pt[At];Pt[At]=Pt[Rt],Pt[Rt]=Bt}ft.prototype.swap16=function(){const At=this.length;if(At%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Rt=0;RtRt&&(At+=" ... "),""},dt&&(ft.prototype[dt]=ft.prototype.inspect),ft.prototype.compare=function(At,Rt,Bt,jt,Wt){if(Mn(At,Uint8Array)&&(At=ft.from(At,At.offset,At.byteLength)),!ft.isBuffer(At))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof At);if(Rt===void 0&&(Rt=0),Bt===void 0&&(Bt=At?At.length:0),jt===void 0&&(jt=0),Wt===void 0&&(Wt=this.length),Rt<0||Bt>At.length||jt<0||Wt>this.length)throw new RangeError("out of range index");if(jt>=Wt&&Rt>=Bt)return 0;if(jt>=Wt)return-1;if(Rt>=Bt)return 1;if(Rt>>>=0,Bt>>>=0,jt>>>=0,Wt>>>=0,this===At)return 0;let Xt=Wt-jt,da=Bt-Rt;const ma=Math.min(Xt,da),pa=this.slice(jt,Wt),La=At.slice(Rt,Bt);for(let ba=0;ba2147483647?Rt=2147483647:Rt<-2147483648&&(Rt=-2147483648),Rt=+Rt,vi(Rt)&&(Rt=jt?0:Pt.length-1),Rt<0&&(Rt=Pt.length+Rt),Rt>=Pt.length){if(jt)return-1;Rt=Pt.length-1}else if(Rt<0)if(jt)Rt=0;else return-1;if(typeof At=="string"&&(At=ft.from(At,Bt)),ft.isBuffer(At))return At.length===0?-1:Ot(Pt,At,Rt,Bt,jt);if(typeof At=="number")return At=At&255,typeof Uint8Array.prototype.indexOf=="function"?jt?Uint8Array.prototype.indexOf.call(Pt,At,Rt):Uint8Array.prototype.lastIndexOf.call(Pt,At,Rt):Ot(Pt,[At],Rt,Bt,jt);throw new TypeError("val must be string, number or Buffer")}function Ot(Pt,At,Rt,Bt,jt){let Wt=1,Xt=Pt.length,da=At.length;if(Bt!==void 0&&(Bt=String(Bt).toLowerCase(),Bt==="ucs2"||Bt==="ucs-2"||Bt==="utf16le"||Bt==="utf-16le")){if(Pt.length<2||At.length<2)return-1;Wt=2,Xt/=2,da/=2,Rt/=2}function ma(La,ba){return Wt===1?La[ba]:La.readUInt16BE(ba*Wt)}let pa;if(jt){let La=-1;for(pa=Rt;paXt&&(Rt=Xt-da),pa=Rt;pa>=0;pa--){let La=!0;for(let ba=0;bajt&&(Bt=jt)):Bt=jt;const Wt=At.length;Bt>Wt/2&&(Bt=Wt/2);let Xt;for(Xt=0;Xt>>0,isFinite(Bt)?(Bt=Bt>>>0,jt===void 0&&(jt="utf8")):(jt=Bt,Bt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Wt=this.length-Rt;if((Bt===void 0||Bt>Wt)&&(Bt=Wt),At.length>0&&(Bt<0||Rt<0)||Rt>this.length)throw new RangeError("Attempt to write outside buffer bounds");jt||(jt="utf8");let Xt=!1;for(;;)switch(jt){case"hex":return Zt(this,At,Rt,Bt);case"utf8":case"utf-8":return Yt(this,At,Rt,Bt);case"ascii":case"latin1":case"binary":return aa(this,At,Rt,Bt);case"base64":return Qt(this,At,Rt,Bt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oa(this,At,Rt,Bt);default:if(Xt)throw new TypeError("Unknown encoding: "+jt);jt=(""+jt).toLowerCase(),Xt=!0}},ft.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function la(Pt,At,Rt){return At===0&&Rt===Pt.length?it.fromByteArray(Pt):it.fromByteArray(Pt.slice(At,Rt))}function Kt(Pt,At,Rt){Rt=Math.min(Pt.length,Rt);const Bt=[];let jt=At;for(;jt239?4:Wt>223?3:Wt>191?2:1;if(jt+da<=Rt){let ma,pa,La,ba;switch(da){case 1:Wt<128&&(Xt=Wt);break;case 2:ma=Pt[jt+1],(ma&192)===128&&(ba=(Wt&31)<<6|ma&63,ba>127&&(Xt=ba));break;case 3:ma=Pt[jt+1],pa=Pt[jt+2],(ma&192)===128&&(pa&192)===128&&(ba=(Wt&15)<<12|(ma&63)<<6|pa&63,ba>2047&&(ba<55296||ba>57343)&&(Xt=ba));break;case 4:ma=Pt[jt+1],pa=Pt[jt+2],La=Pt[jt+3],(ma&192)===128&&(pa&192)===128&&(La&192)===128&&(ba=(Wt&15)<<18|(ma&63)<<12|(pa&63)<<6|La&63,ba>65535&&ba<1114112&&(Xt=ba))}}Xt===null?(Xt=65533,da=1):Xt>65535&&(Xt-=65536,Bt.push(Xt>>>10&1023|55296),Xt=56320|Xt&1023),Bt.push(Xt),jt+=da}return Ut(Bt)}const ra=4096;function Ut(Pt){const At=Pt.length;if(At<=ra)return String.fromCharCode.apply(String,Pt);let Rt="",Bt=0;for(;BtBt)&&(Rt=Bt);let jt="";for(let Wt=At;WtBt&&(At=Bt),Rt<0?(Rt+=Bt,Rt<0&&(Rt=0)):Rt>Bt&&(Rt=Bt),RtRt)throw new RangeError("Trying to access beyond buffer length")}ft.prototype.readUintLE=ft.prototype.readUIntLE=function(At,Rt,Bt){At=At>>>0,Rt=Rt>>>0,Bt||Vt(At,Rt,this.length);let jt=this[At],Wt=1,Xt=0;for(;++Xt>>0,Rt=Rt>>>0,Bt||Vt(At,Rt,this.length);let jt=this[At+--Rt],Wt=1;for(;Rt>0&&(Wt*=256);)jt+=this[At+--Rt]*Wt;return jt},ft.prototype.readUint8=ft.prototype.readUInt8=function(At,Rt){return At=At>>>0,Rt||Vt(At,1,this.length),this[At]},ft.prototype.readUint16LE=ft.prototype.readUInt16LE=function(At,Rt){return At=At>>>0,Rt||Vt(At,2,this.length),this[At]|this[At+1]<<8},ft.prototype.readUint16BE=ft.prototype.readUInt16BE=function(At,Rt){return At=At>>>0,Rt||Vt(At,2,this.length),this[At]<<8|this[At+1]},ft.prototype.readUint32LE=ft.prototype.readUInt32LE=function(At,Rt){return At=At>>>0,Rt||Vt(At,4,this.length),(this[At]|this[At+1]<<8|this[At+2]<<16)+this[At+3]*16777216},ft.prototype.readUint32BE=ft.prototype.readUInt32BE=function(At,Rt){return At=At>>>0,Rt||Vt(At,4,this.length),this[At]*16777216+(this[At+1]<<16|this[At+2]<<8|this[At+3])},ft.prototype.readBigUInt64LE=Tt(function(At){At=At>>>0,Ja(At,"offset");const Rt=this[At],Bt=this[At+7];(Rt===void 0||Bt===void 0)&&kn(At,this.length-8);const jt=Rt+this[++At]*2**8+this[++At]*2**16+this[++At]*2**24,Wt=this[++At]+this[++At]*2**8+this[++At]*2**16+Bt*2**24;return BigInt(jt)+(BigInt(Wt)<>>0,Ja(At,"offset");const Rt=this[At],Bt=this[At+7];(Rt===void 0||Bt===void 0)&&kn(At,this.length-8);const jt=Rt*2**24+this[++At]*2**16+this[++At]*2**8+this[++At],Wt=this[++At]*2**24+this[++At]*2**16+this[++At]*2**8+Bt;return(BigInt(jt)<>>0,Rt=Rt>>>0,Bt||Vt(At,Rt,this.length);let jt=this[At],Wt=1,Xt=0;for(;++Xt=Wt&&(jt-=Math.pow(2,8*Rt)),jt},ft.prototype.readIntBE=function(At,Rt,Bt){At=At>>>0,Rt=Rt>>>0,Bt||Vt(At,Rt,this.length);let jt=Rt,Wt=1,Xt=this[At+--jt];for(;jt>0&&(Wt*=256);)Xt+=this[At+--jt]*Wt;return Wt*=128,Xt>=Wt&&(Xt-=Math.pow(2,8*Rt)),Xt},ft.prototype.readInt8=function(At,Rt){return At=At>>>0,Rt||Vt(At,1,this.length),this[At]&128?(255-this[At]+1)*-1:this[At]},ft.prototype.readInt16LE=function(At,Rt){At=At>>>0,Rt||Vt(At,2,this.length);const Bt=this[At]|this[At+1]<<8;return Bt&32768?Bt|4294901760:Bt},ft.prototype.readInt16BE=function(At,Rt){At=At>>>0,Rt||Vt(At,2,this.length);const Bt=this[At+1]|this[At]<<8;return Bt&32768?Bt|4294901760:Bt},ft.prototype.readInt32LE=function(At,Rt){return At=At>>>0,Rt||Vt(At,4,this.length),this[At]|this[At+1]<<8|this[At+2]<<16|this[At+3]<<24},ft.prototype.readInt32BE=function(At,Rt){return At=At>>>0,Rt||Vt(At,4,this.length),this[At]<<24|this[At+1]<<16|this[At+2]<<8|this[At+3]},ft.prototype.readBigInt64LE=Tt(function(At){At=At>>>0,Ja(At,"offset");const Rt=this[At],Bt=this[At+7];(Rt===void 0||Bt===void 0)&&kn(At,this.length-8);const jt=this[At+4]+this[At+5]*2**8+this[At+6]*2**16+(Bt<<24);return(BigInt(jt)<>>0,Ja(At,"offset");const Rt=this[At],Bt=this[At+7];(Rt===void 0||Bt===void 0)&&kn(At,this.length-8);const jt=(Rt<<24)+this[++At]*2**16+this[++At]*2**8+this[++At];return(BigInt(jt)<>>0,Rt||Vt(At,4,this.length),ct.read(this,At,!0,23,4)},ft.prototype.readFloatBE=function(At,Rt){return At=At>>>0,Rt||Vt(At,4,this.length),ct.read(this,At,!1,23,4)},ft.prototype.readDoubleLE=function(At,Rt){return At=At>>>0,Rt||Vt(At,8,this.length),ct.read(this,At,!0,52,8)},ft.prototype.readDoubleBE=function(At,Rt){return At=At>>>0,Rt||Vt(At,8,this.length),ct.read(this,At,!1,52,8)};function ta(Pt,At,Rt,Bt,jt,Wt){if(!ft.isBuffer(Pt))throw new TypeError('"buffer" argument must be a Buffer instance');if(At>jt||AtPt.length)throw new RangeError("Index out of range")}ft.prototype.writeUintLE=ft.prototype.writeUIntLE=function(At,Rt,Bt,jt){if(At=+At,Rt=Rt>>>0,Bt=Bt>>>0,!jt){const da=Math.pow(2,8*Bt)-1;ta(this,At,Rt,Bt,da,0)}let Wt=1,Xt=0;for(this[Rt]=At&255;++Xt>>0,Bt=Bt>>>0,!jt){const da=Math.pow(2,8*Bt)-1;ta(this,At,Rt,Bt,da,0)}let Wt=Bt-1,Xt=1;for(this[Rt+Wt]=At&255;--Wt>=0&&(Xt*=256);)this[Rt+Wt]=At/Xt&255;return Rt+Bt},ft.prototype.writeUint8=ft.prototype.writeUInt8=function(At,Rt,Bt){return At=+At,Rt=Rt>>>0,Bt||ta(this,At,Rt,1,255,0),this[Rt]=At&255,Rt+1},ft.prototype.writeUint16LE=ft.prototype.writeUInt16LE=function(At,Rt,Bt){return At=+At,Rt=Rt>>>0,Bt||ta(this,At,Rt,2,65535,0),this[Rt]=At&255,this[Rt+1]=At>>>8,Rt+2},ft.prototype.writeUint16BE=ft.prototype.writeUInt16BE=function(At,Rt,Bt){return At=+At,Rt=Rt>>>0,Bt||ta(this,At,Rt,2,65535,0),this[Rt]=At>>>8,this[Rt+1]=At&255,Rt+2},ft.prototype.writeUint32LE=ft.prototype.writeUInt32LE=function(At,Rt,Bt){return At=+At,Rt=Rt>>>0,Bt||ta(this,At,Rt,4,4294967295,0),this[Rt+3]=At>>>24,this[Rt+2]=At>>>16,this[Rt+1]=At>>>8,this[Rt]=At&255,Rt+4},ft.prototype.writeUint32BE=ft.prototype.writeUInt32BE=function(At,Rt,Bt){return At=+At,Rt=Rt>>>0,Bt||ta(this,At,Rt,4,4294967295,0),this[Rt]=At>>>24,this[Rt+1]=At>>>16,this[Rt+2]=At>>>8,this[Rt+3]=At&255,Rt+4};function sa(Pt,At,Rt,Bt,jt){hn(At,Bt,jt,Pt,Rt,7);let Wt=Number(At&BigInt(4294967295));Pt[Rt++]=Wt,Wt=Wt>>8,Pt[Rt++]=Wt,Wt=Wt>>8,Pt[Rt++]=Wt,Wt=Wt>>8,Pt[Rt++]=Wt;let Xt=Number(At>>BigInt(32)&BigInt(4294967295));return Pt[Rt++]=Xt,Xt=Xt>>8,Pt[Rt++]=Xt,Xt=Xt>>8,Pt[Rt++]=Xt,Xt=Xt>>8,Pt[Rt++]=Xt,Rt}function xa(Pt,At,Rt,Bt,jt){hn(At,Bt,jt,Pt,Rt,7);let Wt=Number(At&BigInt(4294967295));Pt[Rt+7]=Wt,Wt=Wt>>8,Pt[Rt+6]=Wt,Wt=Wt>>8,Pt[Rt+5]=Wt,Wt=Wt>>8,Pt[Rt+4]=Wt;let Xt=Number(At>>BigInt(32)&BigInt(4294967295));return Pt[Rt+3]=Xt,Xt=Xt>>8,Pt[Rt+2]=Xt,Xt=Xt>>8,Pt[Rt+1]=Xt,Xt=Xt>>8,Pt[Rt]=Xt,Rt+8}ft.prototype.writeBigUInt64LE=Tt(function(At,Rt=0){return sa(this,At,Rt,BigInt(0),BigInt("0xffffffffffffffff"))}),ft.prototype.writeBigUInt64BE=Tt(function(At,Rt=0){return xa(this,At,Rt,BigInt(0),BigInt("0xffffffffffffffff"))}),ft.prototype.writeIntLE=function(At,Rt,Bt,jt){if(At=+At,Rt=Rt>>>0,!jt){const ma=Math.pow(2,8*Bt-1);ta(this,At,Rt,Bt,ma-1,-ma)}let Wt=0,Xt=1,da=0;for(this[Rt]=At&255;++Wt>0)-da&255;return Rt+Bt},ft.prototype.writeIntBE=function(At,Rt,Bt,jt){if(At=+At,Rt=Rt>>>0,!jt){const ma=Math.pow(2,8*Bt-1);ta(this,At,Rt,Bt,ma-1,-ma)}let Wt=Bt-1,Xt=1,da=0;for(this[Rt+Wt]=At&255;--Wt>=0&&(Xt*=256);)At<0&&da===0&&this[Rt+Wt+1]!==0&&(da=1),this[Rt+Wt]=(At/Xt>>0)-da&255;return Rt+Bt},ft.prototype.writeInt8=function(At,Rt,Bt){return At=+At,Rt=Rt>>>0,Bt||ta(this,At,Rt,1,127,-128),At<0&&(At=255+At+1),this[Rt]=At&255,Rt+1},ft.prototype.writeInt16LE=function(At,Rt,Bt){return At=+At,Rt=Rt>>>0,Bt||ta(this,At,Rt,2,32767,-32768),this[Rt]=At&255,this[Rt+1]=At>>>8,Rt+2},ft.prototype.writeInt16BE=function(At,Rt,Bt){return At=+At,Rt=Rt>>>0,Bt||ta(this,At,Rt,2,32767,-32768),this[Rt]=At>>>8,this[Rt+1]=At&255,Rt+2},ft.prototype.writeInt32LE=function(At,Rt,Bt){return At=+At,Rt=Rt>>>0,Bt||ta(this,At,Rt,4,2147483647,-2147483648),this[Rt]=At&255,this[Rt+1]=At>>>8,this[Rt+2]=At>>>16,this[Rt+3]=At>>>24,Rt+4},ft.prototype.writeInt32BE=function(At,Rt,Bt){return At=+At,Rt=Rt>>>0,Bt||ta(this,At,Rt,4,2147483647,-2147483648),At<0&&(At=4294967295+At+1),this[Rt]=At>>>24,this[Rt+1]=At>>>16,this[Rt+2]=At>>>8,this[Rt+3]=At&255,Rt+4},ft.prototype.writeBigInt64LE=Tt(function(At,Rt=0){return sa(this,At,Rt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ft.prototype.writeBigInt64BE=Tt(function(At,Rt=0){return xa(this,At,Rt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ka(Pt,At,Rt,Bt,jt,Wt){if(Rt+Bt>Pt.length)throw new RangeError("Index out of range");if(Rt<0)throw new RangeError("Index out of range")}function $a(Pt,At,Rt,Bt,jt){return At=+At,Rt=Rt>>>0,jt||ka(Pt,At,Rt,4),ct.write(Pt,At,Rt,Bt,23,4),Rt+4}ft.prototype.writeFloatLE=function(At,Rt,Bt){return $a(this,At,Rt,!0,Bt)},ft.prototype.writeFloatBE=function(At,Rt,Bt){return $a(this,At,Rt,!1,Bt)};function Na(Pt,At,Rt,Bt,jt){return At=+At,Rt=Rt>>>0,jt||ka(Pt,At,Rt,8),ct.write(Pt,At,Rt,Bt,52,8),Rt+8}ft.prototype.writeDoubleLE=function(At,Rt,Bt){return Na(this,At,Rt,!0,Bt)},ft.prototype.writeDoubleBE=function(At,Rt,Bt){return Na(this,At,Rt,!1,Bt)},ft.prototype.copy=function(At,Rt,Bt,jt){if(!ft.isBuffer(At))throw new TypeError("argument should be a Buffer");if(Bt||(Bt=0),!jt&&jt!==0&&(jt=this.length),Rt>=At.length&&(Rt=At.length),Rt||(Rt=0),jt>0&&jt=this.length)throw new RangeError("Index out of range");if(jt<0)throw new RangeError("sourceEnd out of bounds");jt>this.length&&(jt=this.length),At.length-Rt>>0,Bt=Bt===void 0?this.length:Bt>>>0,At||(At=0);let Wt;if(typeof At=="number")for(Wt=Rt;Wt2**32?jt=Ha(String(Rt)):typeof Rt=="bigint"&&(jt=String(Rt),(Rt>BigInt(2)**BigInt(32)||Rt<-(BigInt(2)**BigInt(32)))&&(jt=Ha(jt)),jt+="n"),Bt+=` It must be ${At}. Received ${jt}`,Bt},RangeError);function Ha(Pt){let At="",Rt=Pt.length;const Bt=Pt[0]==="-"?1:0;for(;Rt>=Bt+4;Rt-=3)At=`_${Pt.slice(Rt-3,Rt)}${At}`;return`${Pt.slice(0,Rt)}${At}`}function rn(Pt,At,Rt){Ja(At,"offset"),(Pt[At]===void 0||Pt[At+Rt]===void 0)&&kn(At,Pt.length-(Rt+1))}function hn(Pt,At,Rt,Bt,jt,Wt){if(Pt>Rt||Pt= 0${Xt} and < 2${Xt} ** ${(Wt+1)*8}${Xt}`:da=`>= -(2${Xt} ** ${(Wt+1)*8-1}${Xt}) and < 2 ** ${(Wt+1)*8-1}${Xt}`,new Fa.ERR_OUT_OF_RANGE("value",da,Pt)}rn(Bt,jt,Wt)}function Ja(Pt,At){if(typeof Pt!="number")throw new Fa.ERR_INVALID_ARG_TYPE(At,"number",Pt)}function kn(Pt,At,Rt){throw Math.floor(Pt)!==Pt?(Ja(Pt,Rt),new Fa.ERR_OUT_OF_RANGE("offset","an integer",Pt)):At<0?new Fa.ERR_BUFFER_OUT_OF_BOUNDS:new Fa.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${At}`,Pt)}const En=/[^+/0-9A-Za-z-_]/g;function Hn(Pt){if(Pt=Pt.split("=")[0],Pt=Pt.trim().replace(En,""),Pt.length<2)return"";for(;Pt.length%4!==0;)Pt=Pt+"=";return Pt}function Jn(Pt,At){At=At||1/0;let Rt;const Bt=Pt.length;let jt=null;const Wt=[];for(let Xt=0;Xt55295&&Rt<57344){if(!jt){if(Rt>56319){(At-=3)>-1&&Wt.push(239,191,189);continue}else if(Xt+1===Bt){(At-=3)>-1&&Wt.push(239,191,189);continue}jt=Rt;continue}if(Rt<56320){(At-=3)>-1&&Wt.push(239,191,189),jt=Rt;continue}Rt=(jt-55296<<10|Rt-56320)+65536}else jt&&(At-=3)>-1&&Wt.push(239,191,189);if(jt=null,Rt<128){if((At-=1)<0)break;Wt.push(Rt)}else if(Rt<2048){if((At-=2)<0)break;Wt.push(Rt>>6|192,Rt&63|128)}else if(Rt<65536){if((At-=3)<0)break;Wt.push(Rt>>12|224,Rt>>6&63|128,Rt&63|128)}else if(Rt<1114112){if((At-=4)<0)break;Wt.push(Rt>>18|240,Rt>>12&63|128,Rt>>6&63|128,Rt&63|128)}else throw new Error("Invalid code point")}return Wt}function vn(Pt){const At=[];for(let Rt=0;Rt>8,jt=Rt%256,Wt.push(jt),Wt.push(Bt);return Wt}function jn(Pt){return it.toByteArray(Hn(Pt))}function On(Pt,At,Rt,Bt){let jt;for(jt=0;jt=At.length||jt>=Pt.length);++jt)At[jt+Rt]=Pt[jt];return jt}function Mn(Pt,At){return Pt instanceof At||Pt!=null&&Pt.constructor!=null&&Pt.constructor.name!=null&&Pt.constructor.name===At.name}function vi(Pt){return Pt!==Pt}const pn=(function(){const Pt="0123456789abcdef",At=new Array(256);for(let Rt=0;Rt<16;++Rt){const Bt=Rt*16;for(let jt=0;jt<16;++jt)At[Bt+jt]=Pt[Rt]+Pt[jt]}return At})();function Tt(Pt){return typeof BigInt>"u"?fa:Pt}function fa(){throw new Error("BigInt not supported")}})(buffer)),buffer}var bufferExports=requireBuffer(),react={exports:{}},react_production={};var hasRequiredReact_production;function requireReact_production(){if(hasRequiredReact_production)return react_production;hasRequiredReact_production=1;var rt=Symbol.for("react.transitional.element"),it=Symbol.for("react.portal"),ct=Symbol.for("react.fragment"),dt=Symbol.for("react.strict_mode"),ut=Symbol.for("react.profiler"),pt=Symbol.for("react.consumer"),yt=Symbol.for("react.context"),ft=Symbol.for("react.forward_ref"),mt=Symbol.for("react.suspense"),kt=Symbol.for("react.memo"),_t=Symbol.for("react.lazy"),vt=Symbol.for("react.activity"),bt=Symbol.iterator;function Mt(Vt){return Vt===null||typeof Vt!="object"?null:(Vt=bt&&Vt[bt]||Vt["@@iterator"],typeof Vt=="function"?Vt:null)}var wt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},St=Object.assign,It={};function Nt(Vt,ta,sa){this.props=Vt,this.context=ta,this.refs=It,this.updater=sa||wt}Nt.prototype.isReactComponent={},Nt.prototype.setState=function(Vt,ta){if(typeof Vt!="object"&&typeof Vt!="function"&&Vt!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Vt,ta,"setState")},Nt.prototype.forceUpdate=function(Vt){this.updater.enqueueForceUpdate(this,Vt,"forceUpdate")};function $t(){}$t.prototype=Nt.prototype;function Et(Vt,ta,sa){this.props=Vt,this.context=ta,this.refs=It,this.updater=sa||wt}var Ft=Et.prototype=new $t;Ft.constructor=Et,St(Ft,Nt.prototype),Ft.isPureReactComponent=!0;var qt=Array.isArray;function Ht(){}var Ot={H:null,A:null,T:null,S:null},Zt=Object.prototype.hasOwnProperty;function Yt(Vt,ta,sa){var xa=sa.ref;return{$$typeof:rt,type:Vt,key:ta,ref:xa!==void 0?xa:null,props:sa}}function aa(Vt,ta){return Yt(Vt.type,ta,Vt.props)}function Qt(Vt){return typeof Vt=="object"&&Vt!==null&&Vt.$$typeof===rt}function oa(Vt){var ta={"=":"=0",":":"=2"};return"$"+Vt.replace(/[=:]/g,function(sa){return ta[sa]})}var la=/\/+/g;function Kt(Vt,ta){return typeof Vt=="object"&&Vt!==null&&Vt.key!=null?oa(""+Vt.key):ta.toString(36)}function ra(Vt){switch(Vt.status){case"fulfilled":return Vt.value;case"rejected":throw Vt.reason;default:switch(typeof Vt.status=="string"?Vt.then(Ht,Ht):(Vt.status="pending",Vt.then(function(ta){Vt.status==="pending"&&(Vt.status="fulfilled",Vt.value=ta)},function(ta){Vt.status==="pending"&&(Vt.status="rejected",Vt.reason=ta)})),Vt.status){case"fulfilled":return Vt.value;case"rejected":throw Vt.reason}}throw Vt}function Ut(Vt,ta,sa,xa,ka){var $a=typeof Vt;($a==="undefined"||$a==="boolean")&&(Vt=null);var Na=!1;if(Vt===null)Na=!0;else switch($a){case"bigint":case"string":case"number":Na=!0;break;case"object":switch(Vt.$$typeof){case rt:case it:Na=!0;break;case _t:return Na=Vt._init,Ut(Na(Vt._payload),ta,sa,xa,ka)}}if(Na)return ka=ka(Vt),Na=xa===""?"."+Kt(Vt,0):xa,qt(ka)?(sa="",Na!=null&&(sa=Na.replace(la,"$&/")+"/"),Ut(ka,ta,sa,"",function(Ha){return Ha})):ka!=null&&(Qt(ka)&&(ka=aa(ka,sa+(ka.key==null||Vt&&Vt.key===ka.key?"":(""+ka.key).replace(la,"$&/")+"/")+Na)),ta.push(ka)),1;Na=0;var Fa=xa===""?".":xa+":";if(qt(Vt))for(var qa=0;qa>>1,Ca=Ut[_a];if(0>>1;_aut(sa,Gt))xaut(ka,sa)?(Ut[_a]=ka,Ut[xa]=Gt,_a=xa):(Ut[_a]=sa,Ut[ta]=Gt,_a=ta);else if(xaut(ka,Gt))Ut[_a]=ka,Ut[xa]=Gt,_a=xa;else break e}}return ea}function ut(Ut,ea){var Gt=Ut.sortIndex-ea.sortIndex;return Gt!==0?Gt:Ut.id-ea.id}if(rt.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var pt=performance;rt.unstable_now=function(){return pt.now()}}else{var yt=Date,ft=yt.now();rt.unstable_now=function(){return yt.now()-ft}}var mt=[],kt=[],_t=1,vt=null,bt=3,Mt=!1,wt=!1,St=!1,It=!1,Nt=typeof setTimeout=="function"?setTimeout:null,$t=typeof clearTimeout=="function"?clearTimeout:null,Et=typeof setImmediate<"u"?setImmediate:null;function Ft(Ut){for(var ea=ct(kt);ea!==null;){if(ea.callback===null)dt(kt);else if(ea.startTime<=Ut)dt(kt),ea.sortIndex=ea.expirationTime,it(mt,ea);else break;ea=ct(kt)}}function qt(Ut){if(St=!1,Ft(Ut),!wt)if(ct(mt)!==null)wt=!0,Ht||(Ht=!0,oa());else{var ea=ct(kt);ea!==null&&ra(qt,ea.startTime-Ut)}}var Ht=!1,Ot=-1,Zt=5,Yt=-1;function aa(){return It?!0:!(rt.unstable_now()-YtUt&&aa());){var _a=vt.callback;if(typeof _a=="function"){vt.callback=null,bt=vt.priorityLevel;var Ca=_a(vt.expirationTime<=Ut);if(Ut=rt.unstable_now(),typeof Ca=="function"){vt.callback=Ca,Ft(Ut),ea=!0;break t}vt===ct(mt)&&dt(mt),Ft(Ut)}else dt(mt);vt=ct(mt)}if(vt!==null)ea=!0;else{var Vt=ct(kt);Vt!==null&&ra(qt,Vt.startTime-Ut),ea=!1}}break e}finally{vt=null,bt=Gt,Mt=!1}ea=void 0}}finally{ea?oa():Ht=!1}}}var oa;if(typeof Et=="function")oa=function(){Et(Qt)};else if(typeof MessageChannel<"u"){var la=new MessageChannel,Kt=la.port2;la.port1.onmessage=Qt,oa=function(){Kt.postMessage(null)}}else oa=function(){Nt(Qt,0)};function ra(Ut,ea){Ot=Nt(function(){Ut(rt.unstable_now())},ea)}rt.unstable_IdlePriority=5,rt.unstable_ImmediatePriority=1,rt.unstable_LowPriority=4,rt.unstable_NormalPriority=3,rt.unstable_Profiling=null,rt.unstable_UserBlockingPriority=2,rt.unstable_cancelCallback=function(Ut){Ut.callback=null},rt.unstable_forceFrameRate=function(Ut){0>Ut||125_a?(Ut.sortIndex=Gt,it(kt,Ut),ct(mt)===null&&Ut===ct(kt)&&(St?($t(Ot),Ot=-1):St=!0,ra(qt,Gt-_a))):(Ut.sortIndex=Ca,it(mt,Ut),wt||Mt||(wt=!0,Ht||(Ht=!0,oa()))),Ut},rt.unstable_shouldYield=aa,rt.unstable_wrapCallback=function(Ut){var ea=bt;return function(){var Gt=bt;bt=ea;try{return Ut.apply(this,arguments)}finally{bt=Gt}}}})(scheduler_production)),scheduler_production}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production()),scheduler.exports}var reactDom={exports:{}},reactDom_production={};var hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var rt=requireReact();function it(mt){var kt="https://react.dev/errors/"+mt;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rt)}catch(it){console.error(it)}}return rt(),reactDom.exports=requireReactDom_production(),reactDom.exports}var hasRequiredReactDomClient_production;function requireReactDomClient_production(){if(hasRequiredReactDomClient_production)return reactDomClient_production;hasRequiredReactDomClient_production=1;var rt=requireScheduler(),it=requireReact(),ct=requireReactDom();function dt(lt){var ht="https://react.dev/errors/"+lt;if(1Ca||(lt.current=_a[Ca],_a[Ca]=null,Ca--)}function sa(lt,ht){Ca++,_a[Ca]=lt.current,lt.current=ht}var xa=Vt(null),ka=Vt(null),$a=Vt(null),Na=Vt(null);function Fa(lt,ht){switch(sa($a,ht),sa(ka,lt),sa(xa,null),ht.nodeType){case 9:case 11:lt=(lt=ht.documentElement)&&(lt=lt.namespaceURI)?o0(lt):0;break;default:if(lt=ht.tagName,ht=ht.namespaceURI)ht=o0(ht),lt=c0(ht,lt);else switch(lt){case"svg":lt=1;break;case"math":lt=2;break;default:lt=0}}ta(xa),sa(xa,lt)}function qa(){ta(xa),ta(ka),ta($a)}function Ha(lt){lt.memoizedState!==null&&sa(Na,lt);var ht=xa.current,gt=c0(ht,lt.type);ht!==gt&&(sa(ka,lt),sa(xa,gt))}function rn(lt){ka.current===lt&&(ta(xa),ta(ka)),Na.current===lt&&(ta(Na),vc._currentValue=Gt)}var hn,Ja;function kn(lt){if(hn===void 0)try{throw Error()}catch(gt){var ht=gt.stack.trim().match(/\n( *(at )?)/);hn=ht&&ht[1]||"",Ja=-1)":-1bt||Zt[_t]!==da[bt]){var va=` -`+Zt[_t].replace(" at new "," at ");return lt.displayName&&va.includes("")&&(va=va.replace("",lt.displayName)),va}while(1<=_t&&0<=bt);break}}}finally{En=!1,Error.prepareStackTrace=gt}return(gt=lt?lt.displayName||lt.name:"")?kn(gt):""}function Jn(lt,ht){switch(lt.tag){case 26:case 27:case 5:return kn(lt.type);case 16:return kn("Lazy");case 13:return lt.child!==ht&&ht!==null?kn("Suspense Fallback"):kn("Suspense");case 19:return kn("SuspenseList");case 0:case 15:return Hn(lt.type,!1);case 11:return Hn(lt.type.render,!1);case 1:return Hn(lt.type,!0);case 31:return kn("Activity");default:return""}}function vn(lt){try{var ht="",gt=null;do ht+=Jn(lt,gt),gt=lt,lt=lt.return;while(lt);return ht}catch(_t){return` -Error generating stack: `+_t.message+` -`+_t.stack}}var Un=Object.prototype.hasOwnProperty,jn=rt.unstable_scheduleCallback,On=rt.unstable_cancelCallback,Mn=rt.unstable_shouldYield,vi=rt.unstable_requestPaint,pn=rt.unstable_now,Tt=rt.unstable_getCurrentPriorityLevel,pa=rt.unstable_ImmediatePriority,Dt=rt.unstable_UserBlockingPriority,At=rt.unstable_NormalPriority,Et=rt.unstable_LowPriority,Bt=rt.unstable_IdlePriority,jt=rt.log,Wt=rt.unstable_setDisableYieldValue,Xt=null,sa=null;function ma(lt){if(typeof jt=="function"&&Wt(lt),sa&&typeof sa.setStrictMode=="function")try{sa.setStrictMode(Xt,lt)}catch{}}var ha=Math.clz32?Math.clz32:Ra,La=Math.log,ba=Math.LN2;function Ra(lt){return lt>>>=0,lt===0?32:31-(La(lt)/ba|0)|0}var ja=256,Da=262144,gn=4194304;function ei(lt){var ht=lt&42;if(ht!==0)return ht;switch(lt&-lt){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return lt&261888;case 262144:case 524288:case 1048576:case 2097152:return lt&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return lt&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return lt}}function jr(lt,ht,gt){var _t=lt.pendingLanes;if(_t===0)return 0;var bt=0,wt=lt.suspendedLanes,Pt=lt.pingedLanes;lt=lt.warmLanes;var Ot=_t&134217727;return Ot!==0?(_t=Ot&~wt,_t!==0?bt=ei(_t):(Pt&=Ot,Pt!==0?bt=ei(Pt):gt||(gt=Ot&~lt,gt!==0&&(bt=ei(gt))))):(Ot=_t&~wt,Ot!==0?bt=ei(Ot):Pt!==0?bt=ei(Pt):gt||(gt=_t&~lt,gt!==0&&(bt=ei(gt)))),bt===0?0:ht!==0&&ht!==bt&&(ht&wt)===0&&(wt=bt&-bt,gt=ht&-ht,wt>=gt||wt===32&&(gt&4194048)!==0)?ht:bt}function br(lt,ht){return(lt.pendingLanes&~(lt.suspendedLanes&~lt.pingedLanes)&ht)===0}function wn(lt,ht){switch(lt){case 1:case 2:case 4:case 8:case 64:return ht+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return ht+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ai(){var lt=gn;return gn<<=1,(gn&62914560)===0&&(gn=4194304),lt}function Io(lt){for(var ht=[],gt=0;31>gt;gt++)ht.push(lt);return ht}function Qi(lt,ht){lt.pendingLanes|=ht,ht!==268435456&&(lt.suspendedLanes=0,lt.pingedLanes=0,lt.warmLanes=0)}function Ao(lt,ht,gt,_t,bt,wt){var Pt=lt.pendingLanes;lt.pendingLanes=gt,lt.suspendedLanes=0,lt.pingedLanes=0,lt.warmLanes=0,lt.expiredLanes&=gt,lt.entangledLanes&=gt,lt.errorRecoveryDisabledLanes&=gt,lt.shellSuspendCounter=0;var Ot=lt.entanglements,Zt=lt.expirationTimes,da=lt.hiddenUpdates;for(gt=Pt&~gt;0"u")return null;try{return lt.activeElement||lt.body}catch{return lt.body}}var F0=/[\n"\\]/g;function ui(lt){return lt.replace(F0,function(ht){return"\\"+ht.charCodeAt(0).toString(16)+" "})}function zs(lt,ht,gt,_t,bt,wt,Pt,Ot){lt.name="",Pt!=null&&typeof Pt!="function"&&typeof Pt!="symbol"&&typeof Pt!="boolean"?lt.type=Pt:lt.removeAttribute("type"),ht!=null?Pt==="number"?(ht===0&<.value===""||lt.value!=ht)&&(lt.value=""+di(ht)):lt.value!==""+di(ht)&&(lt.value=""+di(ht)):Pt!=="submit"&&Pt!=="reset"||lt.removeAttribute("value"),ht!=null?Hs(lt,Pt,di(ht)):gt!=null?Hs(lt,Pt,di(gt)):_t!=null&<.removeAttribute("value"),bt==null&&wt!=null&&(lt.defaultChecked=!!wt),bt!=null&&(lt.checked=bt&&typeof bt!="function"&&typeof bt!="symbol"),Ot!=null&&typeof Ot!="function"&&typeof Ot!="symbol"&&typeof Ot!="boolean"?lt.name=""+di(Ot):lt.removeAttribute("name")}function Q1(lt,ht,gt,_t,bt,wt,Pt,Ot){if(wt!=null&&typeof wt!="function"&&typeof wt!="symbol"&&typeof wt!="boolean"&&(lt.type=wt),ht!=null||gt!=null){if(!(wt!=="submit"&&wt!=="reset"||ht!=null)){Os(lt);return}gt=gt!=null?""+di(gt):"",ht=ht!=null?""+di(ht):gt,Ot||ht===lt.value||(lt.value=ht),lt.defaultValue=ht}_t=_t??bt,_t=typeof _t!="function"&&typeof _t!="symbol"&&!!_t,lt.checked=Ot?lt.checked:!!_t,lt.defaultChecked=!!_t,Pt!=null&&typeof Pt!="function"&&typeof Pt!="symbol"&&typeof Pt!="boolean"&&(lt.name=Pt),Os(lt)}function Hs(lt,ht,gt){ht==="number"&&Ac(lt.ownerDocument)===lt||lt.defaultValue===""+gt||(lt.defaultValue=""+gt)}function zr(lt,ht,gt,_t){if(lt=lt.options,ht){ht={};for(var bt=0;bt"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ys=!1;if(Bi)try{var Fo={};Object.defineProperty(Fo,"passive",{get:function(){Ys=!0}}),window.addEventListener("test",Fo,Fo),window.removeEventListener("test",Fo,Fo)}catch{Ys=!1}var Ji=null,Xs=null,Ec=null;function od(){if(Ec)return Ec;var lt,ht=Xs,gt=ht.length,_t,bt="value"in Ji?Ji.value:Ji.textContent,wt=bt.length;for(lt=0;lt=zo),hd=" ",pd=!1;function fd(lt,ht){switch(lt){case"keyup":return p2.indexOf(ht.keyCode)!==-1;case"keydown":return ht.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yd(lt){return lt=lt.detail,typeof lt=="object"&&"data"in lt?lt.data:null}var Gr=!1;function y2(lt,ht){switch(lt){case"compositionend":return yd(ht);case"keypress":return ht.which!==32?null:(pd=!0,hd);case"textInput":return lt=ht.data,lt===hd&&pd?null:lt;default:return null}}function g2(lt,ht){if(Gr)return lt==="compositionend"||!el&&fd(lt,ht)?(lt=od(),Ec=Xs=Ji=null,Gr=!1,lt):null;switch(lt){case"paste":return null;case"keypress":if(!(ht.ctrlKey||ht.altKey||ht.metaKey)||ht.ctrlKey&&ht.altKey){if(ht.char&&1=ht)return{node:gt,offset:ht-lt};lt=_t}e:{for(;gt;){if(gt.nextSibling){gt=gt.nextSibling;break e}gt=gt.parentNode}gt=void 0}gt=Cd(gt)}}function wd(lt,ht){return lt&&ht?lt===ht?!0:lt&<.nodeType===3?!1:ht&&ht.nodeType===3?wd(lt,ht.parentNode):"contains"in lt?lt.contains(ht):lt.compareDocumentPosition?!!(lt.compareDocumentPosition(ht)&16):!1:!1}function Ld(lt){lt=lt!=null&<.ownerDocument!=null&<.ownerDocument.defaultView!=null?lt.ownerDocument.defaultView:window;for(var ht=Ac(lt.document);ht instanceof lt.HTMLIFrameElement;){try{var gt=typeof ht.contentWindow.location.href=="string"}catch{gt=!1}if(gt)lt=ht.contentWindow;else break;ht=Ac(lt.document)}return ht}function nl(lt){var ht=lt&<.nodeName&<.nodeName.toLowerCase();return ht&&(ht==="input"&&(lt.type==="text"||lt.type==="search"||lt.type==="tel"||lt.type==="url"||lt.type==="password")||ht==="textarea"||lt.contentEditable==="true")}var M2=Bi&&"documentMode"in document&&11>=document.documentMode,Wr=null,il=null,Go=null,rl=!1;function Sd(lt,ht,gt){var _t=gt.window===gt?gt.document:gt.nodeType===9?gt:gt.ownerDocument;rl||Wr==null||Wr!==Ac(_t)||(_t=Wr,"selectionStart"in _t&&nl(_t)?_t={start:_t.selectionStart,end:_t.selectionEnd}:(_t=(_t.ownerDocument&&_t.ownerDocument.defaultView||window).getSelection(),_t={anchorNode:_t.anchorNode,anchorOffset:_t.anchorOffset,focusNode:_t.focusNode,focusOffset:_t.focusOffset}),Go&&Vo(Go,_t)||(Go=_t,_t=Ls(il,"onSelect"),0<_t.length&&(ht=new Pc("onSelect","select",null,ht,gt),lt.push({event:ht,listeners:_t}),ht.target=Wr)))}function Mr(lt,ht){var gt={};return gt[lt.toLowerCase()]=ht.toLowerCase(),gt["Webkit"+lt]="webkit"+ht,gt["Moz"+lt]="moz"+ht,gt}var Yr={animationend:Mr("Animation","AnimationEnd"),animationiteration:Mr("Animation","AnimationIteration"),animationstart:Mr("Animation","AnimationStart"),transitionrun:Mr("Transition","TransitionRun"),transitionstart:Mr("Transition","TransitionStart"),transitioncancel:Mr("Transition","TransitionCancel"),transitionend:Mr("Transition","TransitionEnd")},ol={},$d={};Bi&&($d=document.createElement("div").style,"AnimationEvent"in window||(delete Yr.animationend.animation,delete Yr.animationiteration.animation,delete Yr.animationstart.animation),"TransitionEvent"in window||delete Yr.transitionend.transition);function wr(lt){if(ol[lt])return ol[lt];if(!Yr[lt])return lt;var ht=Yr[lt],gt;for(gt in ht)if(ht.hasOwnProperty(gt)&> in $d)return ol[lt]=ht[gt];return lt}var Nd=wr("animationend"),Id=wr("animationiteration"),Ad=wr("animationstart"),w2=wr("transitionrun"),L2=wr("transitionstart"),S2=wr("transitioncancel"),Td=wr("transitionend"),Ed=new Map,cl="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");cl.push("scrollEnd");function Ci(lt,ht){Ed.set(lt,ht),Gn(ht,[lt])}var Fc=typeof reportError=="function"?reportError:function(lt){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ht=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof lt=="object"&<!==null&&typeof lt.message=="string"?String(lt.message):String(lt),error:lt});if(!window.dispatchEvent(ht))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",lt);return}console.error(lt)},hi=[],Xr=0,sl=0;function jc(){for(var lt=Xr,ht=sl=Xr=0;ht>=Pt,bt-=Pt,Si=1<<32-ha(ht)+bt|gt<za?(Ya=Ea,Ea=null):Ya=Ea.sibling;var Ka=fa(oa,Ea,la[za],Ma);if(Ka===null){Ea===null&&(Ea=Ya);break}lt&&Ea&&Ka.alternate===null&&ht(oa,Ea),ia=wt(Ka,ia,za),Za===null?Ba=Ka:Za.sibling=Ka,Za=Ka,Ea=Ya}if(za===la.length)return gt(oa,Ea),Xa&&qi(oa,za),Ba;if(Ea===null){for(;zaza?(Ya=Ea,Ea=null):Ya=Ea.sibling;var vr=fa(oa,Ea,Ka.value,Ma);if(vr===null){Ea===null&&(Ea=Ya);break}lt&&Ea&&vr.alternate===null&&ht(oa,Ea),ia=wt(vr,ia,za),Za===null?Ba=vr:Za.sibling=vr,Za=vr,Ea=Ya}if(Ka.done)return gt(oa,Ea),Xa&&qi(oa,za),Ba;if(Ea===null){for(;!Ka.done;za++,Ka=la.next())Ka=wa(oa,Ka.value,Ma),Ka!==null&&(ia=wt(Ka,ia,za),Za===null?Ba=Ka:Za.sibling=Ka,Za=Ka);return Xa&&qi(oa,za),Ba}for(Ea=_t(Ea);!Ka.done;za++,Ka=la.next())Ka=ga(Ea,oa,za,Ka.value,Ma),Ka!==null&&(lt&&Ka.alternate!==null&&Ea.delete(Ka.key===null?za:Ka.key),ia=wt(Ka,ia,za),Za===null?Ba=Ka:Za.sibling=Ka,Za=Ka);return lt&&Ea.forEach(function(Up){return ht(oa,Up)}),Xa&&qi(oa,za),Ba}function sn(oa,ia,la,Ma){if(typeof la=="object"&&la!==null&&la.type===St&&la.key===null&&(la=la.props.children),typeof la=="object"&&la!==null){switch(la.$$typeof){case Mt:e:{for(var Ba=la.key;ia!==null;){if(ia.key===Ba){if(Ba=la.type,Ba===St){if(ia.tag===7){gt(oa,ia.sibling),Ma=bt(ia,la.props.children),Ma.return=oa,oa=Ma;break e}}else if(ia.elementType===Ba||typeof Ba=="object"&&Ba!==null&&Ba.$$typeof===ea&&Tr(Ba)===ia.type){gt(oa,ia.sibling),Ma=bt(ia,la.props),Qo(Ma,la),Ma.return=oa,oa=Ma;break e}gt(oa,ia);break}else ht(oa,ia);ia=ia.sibling}la.type===St?(Ma=Sr(la.props.children,oa.mode,Ma,la.key),Ma.return=oa,oa=Ma):(Ma=Hc(la.type,la.key,la.props,null,oa.mode,Ma),Qo(Ma,la),Ma.return=oa,oa=Ma)}return Pt(oa);case Lt:e:{for(Ba=la.key;ia!==null;){if(ia.key===Ba)if(ia.tag===4&&ia.stateNode.containerInfo===la.containerInfo&&ia.stateNode.implementation===la.implementation){gt(oa,ia.sibling),Ma=bt(ia,la.children||[]),Ma.return=oa,oa=Ma;break e}else{gt(oa,ia);break}else ht(oa,ia);ia=ia.sibling}Ma=hl(la,oa.mode,Ma),Ma.return=oa,oa=Ma}return Pt(oa);case ea:return la=Tr(la),sn(oa,ia,la,Ma)}if(ra(la))return Aa(oa,ia,la,Ma);if(ua(la)){if(Ba=ua(la),typeof Ba!="function")throw Error(dt(150));return la=Ba.call(la),Pa(oa,ia,la,Ma)}if(typeof la.then=="function")return sn(oa,ia,Zc(la),Ma);if(la.$$typeof===Rt)return sn(oa,ia,Gc(oa,la),Ma);Kc(oa,la)}return typeof la=="string"&&la!==""||typeof la=="number"||typeof la=="bigint"?(la=""+la,ia!==null&&ia.tag===6?(gt(oa,ia.sibling),Ma=bt(ia,la),Ma.return=oa,oa=Ma):(gt(oa,ia),Ma=ul(la,oa.mode,Ma),Ma.return=oa,oa=Ma),Pt(oa)):gt(oa,ia)}return function(oa,ia,la,Ma){try{Ko=0;var Ba=sn(oa,ia,la,Ma);return io=null,Ba}catch(Ea){if(Ea===no||Ea===Yc)throw Ea;var Za=ai(29,Ea,null,oa.mode);return Za.lanes=Ma,Za.return=oa,Za}finally{}}}var Rr=Zd(!0),Kd=Zd(!1),ir=!1;function Ml(lt){lt.updateQueue={baseState:lt.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wl(lt,ht){lt=lt.updateQueue,ht.updateQueue===lt&&(ht.updateQueue={baseState:lt.baseState,firstBaseUpdate:lt.firstBaseUpdate,lastBaseUpdate:lt.lastBaseUpdate,shared:lt.shared,callbacks:null})}function rr(lt){return{lane:lt,tag:0,payload:null,callback:null,next:null}}function or(lt,ht,gt){var _t=lt.updateQueue;if(_t===null)return null;if(_t=_t.shared,(Qa&2)!==0){var bt=_t.pending;return bt===null?ht.next=ht:(ht.next=bt.next,bt.next=ht),_t.pending=ht,ht=zc(lt),Rd(lt,null,gt),ht}return Oc(lt,_t,ht,gt),zc(lt)}function Jo(lt,ht,gt){if(ht=ht.updateQueue,ht!==null&&(ht=ht.shared,(gt&4194048)!==0)){var _t=ht.lanes;_t&=lt.pendingLanes,gt|=_t,ht.lanes=gt,Eo(lt,gt)}}function Ll(lt,ht){var gt=lt.updateQueue,_t=lt.alternate;if(_t!==null&&(_t=_t.updateQueue,gt===_t)){var bt=null,wt=null;if(gt=gt.firstBaseUpdate,gt!==null){do{var Pt={lane:gt.lane,tag:gt.tag,payload:gt.payload,callback:null,next:null};wt===null?bt=wt=Pt:wt=wt.next=Pt,gt=gt.next}while(gt!==null);wt===null?bt=wt=ht:wt=wt.next=ht}else bt=wt=ht;gt={baseState:_t.baseState,firstBaseUpdate:bt,lastBaseUpdate:wt,shared:_t.shared,callbacks:_t.callbacks},lt.updateQueue=gt;return}lt=gt.lastBaseUpdate,lt===null?gt.firstBaseUpdate=ht:lt.next=ht,gt.lastBaseUpdate=ht}var Sl=!1;function ec(){if(Sl){var lt=ao;if(lt!==null)throw lt}}function tc(lt,ht,gt,_t){Sl=!1;var bt=lt.updateQueue;ir=!1;var wt=bt.firstBaseUpdate,Pt=bt.lastBaseUpdate,Ot=bt.shared.pending;if(Ot!==null){bt.shared.pending=null;var Zt=Ot,da=Zt.next;Zt.next=null,Pt===null?wt=da:Pt.next=da,Pt=Zt;var va=lt.alternate;va!==null&&(va=va.updateQueue,Ot=va.lastBaseUpdate,Ot!==Pt&&(Ot===null?va.firstBaseUpdate=da:Ot.next=da,va.lastBaseUpdate=Zt))}if(wt!==null){var wa=bt.baseState;Pt=0,va=da=Zt=null,Ot=wt;do{var fa=Ot.lane&-536870913,ga=fa!==Ot.lane;if(ga?(Wa&fa)===fa:(_t&fa)===fa){fa!==0&&fa===to&&(Sl=!0),va!==null&&(va=va.next={lane:0,tag:Ot.tag,payload:Ot.payload,callback:null,next:null});e:{var Aa=lt,Pa=Ot;fa=ht;var sn=gt;switch(Pa.tag){case 1:if(Aa=Pa.payload,typeof Aa=="function"){wa=Aa.call(sn,wa,fa);break e}wa=Aa;break e;case 3:Aa.flags=Aa.flags&-65537|128;case 0:if(Aa=Pa.payload,fa=typeof Aa=="function"?Aa.call(sn,wa,fa):Aa,fa==null)break e;wa=vt({},wa,fa);break e;case 2:ir=!0}}fa=Ot.callback,fa!==null&&(lt.flags|=64,ga&&(lt.flags|=8192),ga=bt.callbacks,ga===null?bt.callbacks=[fa]:ga.push(fa))}else ga={lane:fa,tag:Ot.tag,payload:Ot.payload,callback:Ot.callback,next:null},va===null?(da=va=ga,Zt=wa):va=va.next=ga,Pt|=fa;if(Ot=Ot.next,Ot===null){if(Ot=bt.shared.pending,Ot===null)break;ga=Ot,Ot=ga.next,ga.next=null,bt.lastBaseUpdate=ga,bt.shared.pending=null}}while(!0);va===null&&(Zt=wa),bt.baseState=Zt,bt.firstBaseUpdate=da,bt.lastBaseUpdate=va,wt===null&&(bt.shared.lanes=0),ur|=Pt,lt.lanes=Pt,lt.memoizedState=wa}}function Qd(lt,ht){if(typeof lt!="function")throw Error(dt(191,lt));lt.call(ht)}function Jd(lt,ht){var gt=lt.callbacks;if(gt!==null)for(lt.callbacks=null,lt=0;ltwt?wt:8;var Pt=Vt.T,Ot={};Vt.T=Ot,Gl(lt,!1,ht,gt);try{var Zt=bt(),da=Vt.S;if(da!==null&&da(Ot,Zt),Zt!==null&&typeof Zt=="object"&&typeof Zt.then=="function"){var va=E2(Zt,_t);ic(lt,ht,va,ci(lt))}else ic(lt,ht,_t,ci(lt))}catch(wa){ic(lt,ht,{then:function(){},status:"rejected",reason:wa},ci())}finally{Kt.p=wt,Pt!==null&&Ot.types!==null&&(Pt.types=Ot.types),Vt.T=Pt}}function F2(){}function Ul(lt,ht,gt,_t){if(lt.tag!==5)throw Error(dt(476));var bt=Tu(lt).queue;Au(lt,bt,ht,Gt,gt===null?F2:function(){return Eu(lt),gt(_t)})}function Tu(lt){var ht=lt.memoizedState;if(ht!==null)return ht;ht={memoizedState:Gt,baseState:Gt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:Gt},next:null};var gt={};return ht.next={memoizedState:gt,baseState:gt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:gt},next:null},lt.memoizedState=ht,lt=lt.alternate,lt!==null&&(lt.memoizedState=ht),ht}function Eu(lt){var ht=Tu(lt);ht.next===null&&(ht=lt.alternate.memoizedState),ic(lt,ht.next.queue,{},ci())}function Vl(){return Dn(vc)}function Ru(){return Cn().memoizedState}function Bu(){return Cn().memoizedState}function j2(lt){for(var ht=lt.return;ht!==null;){switch(ht.tag){case 24:case 3:var gt=ci();lt=rr(gt);var _t=or(ht,lt,gt);_t!==null&&(Qn(_t,ht,gt),Jo(_t,ht,gt)),ht={cache:xl()},lt.payload=ht;return}ht=ht.return}}function O2(lt,ht,gt){var _t=ci();gt={lane:_t,revertLane:0,gesture:null,action:gt,hasEagerState:!1,eagerState:null,next:null},cs(lt)?Du(ht,gt):(gt=ll(lt,ht,gt,_t),gt!==null&&(Qn(gt,lt,_t),qu(gt,ht,_t)))}function Pu(lt,ht,gt){var _t=ci();ic(lt,ht,gt,_t)}function ic(lt,ht,gt,_t){var bt={lane:_t,revertLane:0,gesture:null,action:gt,hasEagerState:!1,eagerState:null,next:null};if(cs(lt))Du(ht,bt);else{var wt=lt.alternate;if(lt.lanes===0&&(wt===null||wt.lanes===0)&&(wt=ht.lastRenderedReducer,wt!==null))try{var Pt=ht.lastRenderedState,Ot=wt(Pt,gt);if(bt.hasEagerState=!0,bt.eagerState=Ot,ti(Ot,Pt))return Oc(lt,ht,bt,0),ln===null&&jc(),!1}catch{}finally{}if(gt=ll(lt,ht,bt,_t),gt!==null)return Qn(gt,lt,_t),qu(gt,ht,_t),!0}return!1}function Gl(lt,ht,gt,_t){if(_t={lane:2,revertLane:M1(),gesture:null,action:_t,hasEagerState:!1,eagerState:null,next:null},cs(lt)){if(ht)throw Error(dt(479))}else ht=ll(lt,gt,_t,2),ht!==null&&Qn(ht,lt,2)}function cs(lt){var ht=lt.alternate;return lt===Oa||ht!==null&&ht===Oa}function Du(lt,ht){oo=es=!0;var gt=lt.pending;gt===null?ht.next=ht:(ht.next=gt.next,gt.next=ht),lt.pending=ht}function qu(lt,ht,gt){if((gt&4194048)!==0){var _t=ht.lanes;_t&=lt.pendingLanes,gt|=_t,ht.lanes=gt,Eo(lt,gt)}}var rc={readContext:Dn,use:ns,useCallback:_n,useContext:_n,useEffect:_n,useImperativeHandle:_n,useLayoutEffect:_n,useInsertionEffect:_n,useMemo:_n,useReducer:_n,useRef:_n,useState:_n,useDebugValue:_n,useDeferredValue:_n,useTransition:_n,useSyncExternalStore:_n,useId:_n,useHostTransitionStatus:_n,useFormState:_n,useActionState:_n,useOptimistic:_n,useMemoCache:_n,useCacheRefresh:_n};rc.useEffectEvent=_n;var Fu={readContext:Dn,use:ns,useCallback:function(lt,ht){return zn().memoizedState=[lt,ht===void 0?null:ht],lt},useContext:Dn,useEffect:bu,useImperativeHandle:function(lt,ht,gt){gt=gt!=null?gt.concat([lt]):null,rs(4194308,4,Lu.bind(null,ht,lt),gt)},useLayoutEffect:function(lt,ht){return rs(4194308,4,lt,ht)},useInsertionEffect:function(lt,ht){rs(4,2,lt,ht)},useMemo:function(lt,ht){var gt=zn();ht=ht===void 0?null:ht;var _t=lt();if(Br){ma(!0);try{lt()}finally{ma(!1)}}return gt.memoizedState=[_t,ht],_t},useReducer:function(lt,ht,gt){var _t=zn();if(gt!==void 0){var bt=gt(ht);if(Br){ma(!0);try{gt(ht)}finally{ma(!1)}}}else bt=ht;return _t.memoizedState=_t.baseState=bt,lt={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lt,lastRenderedState:bt},_t.queue=lt,lt=lt.dispatch=O2.bind(null,Oa,lt),[_t.memoizedState,lt]},useRef:function(lt){var ht=zn();return lt={current:lt},ht.memoizedState=lt},useState:function(lt){lt=Fl(lt);var ht=lt.queue,gt=Pu.bind(null,Oa,ht);return ht.dispatch=gt,[lt.memoizedState,gt]},useDebugValue:zl,useDeferredValue:function(lt,ht){var gt=zn();return Hl(gt,lt,ht)},useTransition:function(){var lt=Fl(!1);return lt=Au.bind(null,Oa,lt.queue,!0,!1),zn().memoizedState=lt,[!1,lt]},useSyncExternalStore:function(lt,ht,gt){var _t=Oa,bt=zn();if(Xa){if(gt===void 0)throw Error(dt(407));gt=gt()}else{if(gt=ht(),ln===null)throw Error(dt(349));(Wa&127)!==0||ou(_t,ht,gt)}bt.memoizedState=gt;var wt={value:gt,getSnapshot:ht};return bt.queue=wt,bu(su.bind(null,_t,wt,lt),[lt]),_t.flags|=2048,so(9,{destroy:void 0},cu.bind(null,_t,wt,gt,ht),null),gt},useId:function(){var lt=zn(),ht=ln.identifierPrefix;if(Xa){var gt=$i,_t=Si;gt=(_t&~(1<<32-ha(_t)-1)).toString(32)+gt,ht="_"+ht+"R_"+gt,gt=ts++,0<\/script>",wt=wt.removeChild(wt.firstChild);break;case"select":wt=typeof _t.is=="string"?Pt.createElement("select",{is:_t.is}):Pt.createElement("select"),_t.multiple?wt.multiple=!0:_t.size&&(wt.size=_t.size);break;default:wt=typeof _t.is=="string"?Pt.createElement(bt,{is:_t.is}):Pt.createElement(bt)}}wt[Ln]=ht,wt[fn]=_t;e:for(Pt=ht.child;Pt!==null;){if(Pt.tag===5||Pt.tag===6)wt.appendChild(Pt.stateNode);else if(Pt.tag!==4&&Pt.tag!==27&&Pt.child!==null){Pt.child.return=Pt,Pt=Pt.child;continue}if(Pt===ht)break e;for(;Pt.sibling===null;){if(Pt.return===null||Pt.return===ht)break e;Pt=Pt.return}Pt.sibling.return=Pt.return,Pt=Pt.sibling}ht.stateNode=wt;e:switch(Fn(wt,bt,_t),bt){case"button":case"input":case"select":case"textarea":_t=!!_t.autoFocus;break e;case"img":_t=!0;break e;default:_t=!1}_t&&Ui(ht)}}return un(ht),o1(ht,ht.type,lt===null?null:lt.memoizedProps,ht.pendingProps,gt),null;case 6:if(lt&&ht.stateNode!=null)lt.memoizedProps!==_t&&Ui(ht);else{if(typeof _t!="string"&&ht.stateNode===null)throw Error(dt(166));if(lt=$a.current,Jr(ht)){if(lt=ht.stateNode,gt=ht.memoizedProps,_t=null,bt=Pn,bt!==null)switch(bt.tag){case 27:case 5:_t=bt.memoizedProps}lt[Ln]=ht,lt=!!(lt.nodeValue===gt||_t!==null&&_t.suppressHydrationWarning===!0||i0(lt.nodeValue,gt)),lt||ar(ht,!0)}else lt=Ss(lt).createTextNode(_t),lt[Ln]=ht,ht.stateNode=lt}return un(ht),null;case 31:if(gt=ht.memoizedState,lt===null||lt.memoizedState!==null){if(_t=Jr(ht),gt!==null){if(lt===null){if(!_t)throw Error(dt(318));if(lt=ht.memoizedState,lt=lt!==null?lt.dehydrated:null,!lt)throw Error(dt(557));lt[Ln]=ht}else $r(),(ht.flags&128)===0&&(ht.memoizedState=null),ht.flags|=4;un(ht),lt=!1}else gt=gl(),lt!==null&<.memoizedState!==null&&(lt.memoizedState.hydrationErrors=gt),lt=!0;if(!lt)return ht.flags&256?(ii(ht),ht):(ii(ht),null);if((ht.flags&128)!==0)throw Error(dt(558))}return un(ht),null;case 13:if(_t=ht.memoizedState,lt===null||lt.memoizedState!==null&<.memoizedState.dehydrated!==null){if(bt=Jr(ht),_t!==null&&_t.dehydrated!==null){if(lt===null){if(!bt)throw Error(dt(318));if(bt=ht.memoizedState,bt=bt!==null?bt.dehydrated:null,!bt)throw Error(dt(317));bt[Ln]=ht}else $r(),(ht.flags&128)===0&&(ht.memoizedState=null),ht.flags|=4;un(ht),bt=!1}else bt=gl(),lt!==null&<.memoizedState!==null&&(lt.memoizedState.hydrationErrors=bt),bt=!0;if(!bt)return ht.flags&256?(ii(ht),ht):(ii(ht),null)}return ii(ht),(ht.flags&128)!==0?(ht.lanes=gt,ht):(gt=_t!==null,lt=lt!==null&<.memoizedState!==null,gt&&(_t=ht.child,bt=null,_t.alternate!==null&&_t.alternate.memoizedState!==null&&_t.alternate.memoizedState.cachePool!==null&&(bt=_t.alternate.memoizedState.cachePool.pool),wt=null,_t.memoizedState!==null&&_t.memoizedState.cachePool!==null&&(wt=_t.memoizedState.cachePool.pool),wt!==bt&&(_t.flags|=2048)),gt!==lt&>&&(ht.child.flags|=8192),hs(ht,ht.updateQueue),un(ht),null);case 4:return Fa(),lt===null&&$1(ht.stateNode.containerInfo),un(ht),null;case 10:return ji(ht.type),un(ht),null;case 19:if(Qt(bn),_t=ht.memoizedState,_t===null)return un(ht),null;if(bt=(ht.flags&128)!==0,wt=_t.rendering,wt===null)if(bt)cc(_t,!1);else{if(xn!==0||lt!==null&&(lt.flags&128)!==0)for(lt=ht.child;lt!==null;){if(wt=Jc(lt),wt!==null){for(ht.flags|=128,cc(_t,!1),lt=wt.updateQueue,ht.updateQueue=lt,hs(ht,lt),ht.subtreeFlags=0,lt=gt,gt=ht.child;gt!==null;)Bd(gt,lt),gt=gt.sibling;return ca(bn,bn.current&1|2),Xa&&qi(ht,_t.treeForkCount),ht.child}lt=lt.sibling}_t.tail!==null&&pn()>ms&&(ht.flags|=128,bt=!0,cc(_t,!1),ht.lanes=4194304)}else{if(!bt)if(lt=Jc(wt),lt!==null){if(ht.flags|=128,bt=!0,lt=lt.updateQueue,ht.updateQueue=lt,hs(ht,lt),cc(_t,!0),_t.tail===null&&_t.tailMode==="hidden"&&!wt.alternate&&!Xa)return un(ht),null}else 2*pn()-_t.renderingStartTime>ms&>!==536870912&&(ht.flags|=128,bt=!0,cc(_t,!1),ht.lanes=4194304);_t.isBackwards?(wt.sibling=ht.child,ht.child=wt):(lt=_t.last,lt!==null?lt.sibling=wt:ht.child=wt,_t.last=wt)}return _t.tail!==null?(lt=_t.tail,_t.rendering=lt,_t.tail=lt.sibling,_t.renderingStartTime=pn(),lt.sibling=null,gt=bn.current,ca(bn,bt?gt&1|2:gt&1),Xa&&qi(ht,_t.treeForkCount),lt):(un(ht),null);case 22:case 23:return ii(ht),Nl(),_t=ht.memoizedState!==null,lt!==null?lt.memoizedState!==null!==_t&&(ht.flags|=8192):_t&&(ht.flags|=8192),_t?(gt&536870912)!==0&&(ht.flags&128)===0&&(un(ht),ht.subtreeFlags&6&&(ht.flags|=8192)):un(ht),gt=ht.updateQueue,gt!==null&&hs(ht,gt.retryQueue),gt=null,lt!==null&<.memoizedState!==null&<.memoizedState.cachePool!==null&&(gt=lt.memoizedState.cachePool.pool),_t=null,ht.memoizedState!==null&&ht.memoizedState.cachePool!==null&&(_t=ht.memoizedState.cachePool.pool),_t!==gt&&(ht.flags|=2048),lt!==null&&Qt(Ar),null;case 24:return gt=null,lt!==null&&(gt=lt.memoizedState.cache),ht.memoizedState.cache!==gt&&(ht.flags|=2048),ji(Sn),un(ht),null;case 25:return null;case 30:return null}throw Error(dt(156,ht.tag))}function G2(lt,ht){switch(fl(ht),ht.tag){case 1:return lt=ht.flags,lt&65536?(ht.flags=lt&-65537|128,ht):null;case 3:return ji(Sn),Fa(),lt=ht.flags,(lt&65536)!==0&&(lt&128)===0?(ht.flags=lt&-65537|128,ht):null;case 26:case 27:case 5:return rn(ht),null;case 31:if(ht.memoizedState!==null){if(ii(ht),ht.alternate===null)throw Error(dt(340));$r()}return lt=ht.flags,lt&65536?(ht.flags=lt&-65537|128,ht):null;case 13:if(ii(ht),lt=ht.memoizedState,lt!==null&<.dehydrated!==null){if(ht.alternate===null)throw Error(dt(340));$r()}return lt=ht.flags,lt&65536?(ht.flags=lt&-65537|128,ht):null;case 19:return Qt(bn),null;case 4:return Fa(),null;case 10:return ji(ht.type),null;case 22:case 23:return ii(ht),Nl(),lt!==null&&Qt(Ar),lt=ht.flags,lt&65536?(ht.flags=lt&-65537|128,ht):null;case 24:return ji(Sn),null;case 25:return null;default:return null}}function lh(lt,ht){switch(fl(ht),ht.tag){case 3:ji(Sn),Fa();break;case 26:case 27:case 5:rn(ht);break;case 4:Fa();break;case 31:ht.memoizedState!==null&&ii(ht);break;case 13:ii(ht);break;case 19:Qt(bn);break;case 10:ji(ht.type);break;case 22:case 23:ii(ht),Nl(),lt!==null&&Qt(Ar);break;case 24:ji(Sn)}}function sc(lt,ht){try{var gt=ht.updateQueue,_t=gt!==null?gt.lastEffect:null;if(_t!==null){var bt=_t.next;gt=bt;do{if((gt.tag<)===lt){_t=void 0;var wt=gt.create,Pt=gt.inst;_t=wt(),Pt.destroy=_t}gt=gt.next}while(gt!==bt)}}catch(Ot){nn(ht,ht.return,Ot)}}function lr(lt,ht,gt){try{var _t=ht.updateQueue,bt=_t!==null?_t.lastEffect:null;if(bt!==null){var wt=bt.next;_t=wt;do{if((_t.tag<)===lt){var Pt=_t.inst,Ot=Pt.destroy;if(Ot!==void 0){Pt.destroy=void 0,bt=ht;var Zt=gt,da=Ot;try{da()}catch(va){nn(bt,Zt,va)}}}_t=_t.next}while(_t!==wt)}}catch(va){nn(ht,ht.return,va)}}function dh(lt){var ht=lt.updateQueue;if(ht!==null){var gt=lt.stateNode;try{Jd(ht,gt)}catch(_t){nn(lt,lt.return,_t)}}}function uh(lt,ht,gt){gt.props=Pr(lt.type,lt.memoizedProps),gt.state=lt.memoizedState;try{gt.componentWillUnmount()}catch(_t){nn(lt,ht,_t)}}function lc(lt,ht){try{var gt=lt.ref;if(gt!==null){switch(lt.tag){case 26:case 27:case 5:var _t=lt.stateNode;break;case 30:_t=lt.stateNode;break;default:_t=lt.stateNode}typeof gt=="function"?lt.refCleanup=gt(_t):gt.current=_t}}catch(bt){nn(lt,ht,bt)}}function Ni(lt,ht){var gt=lt.ref,_t=lt.refCleanup;if(gt!==null)if(typeof _t=="function")try{_t()}catch(bt){nn(lt,ht,bt)}finally{lt.refCleanup=null,lt=lt.alternate,lt!=null&&(lt.refCleanup=null)}else if(typeof gt=="function")try{gt(null)}catch(bt){nn(lt,ht,bt)}else gt.current=null}function hh(lt){var ht=lt.type,gt=lt.memoizedProps,_t=lt.stateNode;try{e:switch(ht){case"button":case"input":case"select":case"textarea":gt.autoFocus&&_t.focus();break e;case"img":gt.src?_t.src=gt.src:gt.srcSet&&(_t.srcset=gt.srcSet)}}catch(bt){nn(lt,lt.return,bt)}}function c1(lt,ht,gt){try{var _t=lt.stateNode;fp(_t,lt.type,gt,ht),_t[fn]=ht}catch(bt){nn(lt,lt.return,bt)}}function ph(lt){return lt.tag===5||lt.tag===3||lt.tag===26||lt.tag===27&&gr(lt.type)||lt.tag===4}function s1(lt){e:for(;;){for(;lt.sibling===null;){if(lt.return===null||ph(lt.return))return null;lt=lt.return}for(lt.sibling.return=lt.return,lt=lt.sibling;lt.tag!==5&<.tag!==6&<.tag!==18;){if(lt.tag===27&&gr(lt.type)||lt.flags&2||lt.child===null||lt.tag===4)continue e;lt.child.return=lt,lt=lt.child}if(!(lt.flags&2))return lt.stateNode}}function l1(lt,ht,gt){var _t=lt.tag;if(_t===5||_t===6)lt=lt.stateNode,ht?(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).insertBefore(lt,ht):(ht=gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt,ht.appendChild(lt),gt=gt._reactRootContainer,gt!=null||ht.onclick!==null||(ht.onclick=Ri));else if(_t!==4&&(_t===27&&gr(lt.type)&&(gt=lt.stateNode,ht=null),lt=lt.child,lt!==null))for(l1(lt,ht,gt),lt=lt.sibling;lt!==null;)l1(lt,ht,gt),lt=lt.sibling}function ps(lt,ht,gt){var _t=lt.tag;if(_t===5||_t===6)lt=lt.stateNode,ht?gt.insertBefore(lt,ht):gt.appendChild(lt);else if(_t!==4&&(_t===27&&gr(lt.type)&&(gt=lt.stateNode),lt=lt.child,lt!==null))for(ps(lt,ht,gt),lt=lt.sibling;lt!==null;)ps(lt,ht,gt),lt=lt.sibling}function fh(lt){var ht=lt.stateNode,gt=lt.memoizedProps;try{for(var _t=lt.type,bt=ht.attributes;bt.length;)ht.removeAttributeNode(bt[0]);Fn(ht,_t,gt),ht[Ln]=lt,ht[fn]=gt}catch(wt){nn(lt,lt.return,wt)}}var Vi=!1,In=!1,d1=!1,yh=typeof WeakSet=="function"?WeakSet:Set,Rn=null;function W2(lt,ht){if(lt=lt.containerInfo,A1=Rs,lt=Ld(lt),nl(lt)){if("selectionStart"in lt)var gt={start:lt.selectionStart,end:lt.selectionEnd};else e:{gt=(gt=lt.ownerDocument)&>.defaultView||window;var _t=gt.getSelection&>.getSelection();if(_t&&_t.rangeCount!==0){gt=_t.anchorNode;var bt=_t.anchorOffset,wt=_t.focusNode;_t=_t.focusOffset;try{gt.nodeType,wt.nodeType}catch{gt=null;break e}var Pt=0,Ot=-1,Zt=-1,da=0,va=0,wa=lt,fa=null;t:for(;;){for(var ga;wa!==gt||bt!==0&&wa.nodeType!==3||(Ot=Pt+bt),wa!==wt||_t!==0&&wa.nodeType!==3||(Zt=Pt+_t),wa.nodeType===3&&(Pt+=wa.nodeValue.length),(ga=wa.firstChild)!==null;)fa=wa,wa=ga;for(;;){if(wa===lt)break t;if(fa===gt&&++da===bt&&(Ot=Pt),fa===wt&&++va===_t&&(Zt=Pt),(ga=wa.nextSibling)!==null)break;wa=fa,fa=wa.parentNode}wa=ga}gt=Ot===-1||Zt===-1?null:{start:Ot,end:Zt}}else gt=null}gt=gt||{start:0,end:0}}else gt=null;for(T1={focusedElem:lt,selectionRange:gt},Rs=!1,Rn=ht;Rn!==null;)if(ht=Rn,lt=ht.child,(ht.subtreeFlags&1028)!==0&<!==null)lt.return=ht,Rn=lt;else for(;Rn!==null;){switch(ht=Rn,wt=ht.alternate,lt=ht.flags,ht.tag){case 0:if((lt&4)!==0&&(lt=ht.updateQueue,lt=lt!==null?lt.events:null,lt!==null))for(gt=0;gt title"))),Fn(wt,_t,gt),wt[Ln]=lt,Ua(wt),_t=wt;break e;case"link":var Pt=v0("link","href",bt).get(_t+(gt.href||""));if(Pt){for(var Ot=0;Otsn&&(Pt=sn,sn=Pa,Pa=Pt);var oa=Md(Ot,Pa),ia=Md(Ot,sn);if(oa&&ia&&(ga.rangeCount!==1||ga.anchorNode!==oa.node||ga.anchorOffset!==oa.offset||ga.focusNode!==ia.node||ga.focusOffset!==ia.offset)){var la=wa.createRange();la.setStart(oa.node,oa.offset),ga.removeAllRanges(),Pa>sn?(ga.addRange(la),ga.extend(ia.node,ia.offset)):(la.setEnd(ia.node,ia.offset),ga.addRange(la))}}}}for(wa=[],ga=Ot;ga=ga.parentNode;)ga.nodeType===1&&wa.push({element:ga,left:ga.scrollLeft,top:ga.scrollTop});for(typeof Ot.focus=="function"&&Ot.focus(),Ot=0;Otgt?32:gt,Vt.T=null,gt=m1,m1=null;var wt=pr,Pt=Zi;if(Tn=0,fo=pr=null,Zi=0,(Qa&6)!==0)throw Error(dt(331));var Ot=Qa;if(Qa|=4,Lh(wt.current),Ch(wt,wt.current,Pt,gt),Qa=Ot,yc(0,!1),sa&&typeof sa.onPostCommitFiberRoot=="function")try{sa.onPostCommitFiberRoot(Xt,wt)}catch{}return!0}finally{Kt.p=bt,Vt.T=_t,Uh(lt,ht)}}function Gh(lt,ht,gt){ht=fi(gt,ht),ht=Zl(lt.stateNode,ht,2),lt=or(lt,ht,2),lt!==null&&(Qi(lt,2),Ii(lt))}function nn(lt,ht,gt){if(lt.tag===3)Gh(lt,lt,gt);else for(;ht!==null;){if(ht.tag===3){Gh(ht,lt,gt);break}else if(ht.tag===1){var _t=ht.stateNode;if(typeof ht.type.getDerivedStateFromError=="function"||typeof _t.componentDidCatch=="function"&&(hr===null||!hr.has(_t))){lt=fi(gt,lt),gt=Wu(2),_t=or(ht,gt,2),_t!==null&&(Yu(gt,_t,ht,lt),Qi(_t,2),Ii(_t));break}}ht=ht.return}}function v1(lt,ht,gt){var _t=lt.pingCache;if(_t===null){_t=lt.pingCache=new Z2;var bt=new Set;_t.set(ht,bt)}else bt=_t.get(ht),bt===void 0&&(bt=new Set,_t.set(ht,bt));bt.has(gt)||(p1=!0,bt.add(gt),lt=tp.bind(null,lt,ht,gt),ht.then(lt,lt))}function tp(lt,ht,gt){var _t=lt.pingCache;_t!==null&&_t.delete(ht),lt.pingedLanes|=lt.suspendedLanes>,lt.warmLanes&=~gt,ln===lt&&(Wa>)===gt&&(xn===4||xn===3&&(Wa&62914560)===Wa&&300>pn()-gs?(Qa&2)===0&&yo(lt,0):f1|=gt,po===Wa&&(po=0)),Ii(lt)}function Wh(lt,ht){ht===0&&(ht=Ai()),lt=Lr(lt,ht),lt!==null&&(Qi(lt,ht),Ii(lt))}function ap(lt){var ht=lt.memoizedState,gt=0;ht!==null&&(gt=ht.retryLane),Wh(lt,gt)}function np(lt,ht){var gt=0;switch(lt.tag){case 31:case 13:var _t=lt.stateNode,bt=lt.memoizedState;bt!==null&&(gt=bt.retryLane);break;case 19:_t=lt.stateNode;break;case 22:_t=lt.stateNode._retryCache;break;default:throw Error(dt(314))}_t!==null&&_t.delete(ht),Wh(lt,gt)}function ip(lt,ht){return jn(lt,ht)}var Cs=null,mo=null,b1=!1,Ms=!1,C1=!1,yr=0;function Ii(lt){lt!==mo&<.next===null&&(mo===null?Cs=mo=lt:mo=mo.next=lt),Ms=!0,b1||(b1=!0,op())}function yc(lt,ht){if(!C1&&Ms){C1=!0;do for(var gt=!1,_t=Cs;_t!==null;){if(lt!==0){var bt=_t.pendingLanes;if(bt===0)var wt=0;else{var Pt=_t.suspendedLanes,Ot=_t.pingedLanes;wt=(1<<31-ha(42|lt)+1)-1,wt&=bt&~(Pt&~Ot),wt=wt&201326741?wt&201326741|1:wt?wt|2:0}wt!==0&&(gt=!0,Kh(_t,wt))}else wt=Wa,wt=jr(_t,_t===ln?wt:0,_t.cancelPendingCommit!==null||_t.timeoutHandle!==-1),(wt&3)===0||br(_t,wt)||(gt=!0,Kh(_t,wt));_t=_t.next}while(gt);C1=!1}}function rp(){Yh()}function Yh(){Ms=b1=!1;var lt=0;yr!==0&&gp()&&(lt=yr);for(var ht=pn(),gt=null,_t=Cs;_t!==null;){var bt=_t.next,wt=Xh(_t,ht);wt===0?(_t.next=null,gt===null?Cs=bt:gt.next=bt,bt===null&&(mo=gt)):(gt=_t,(lt!==0||(wt&3)!==0)&&(Ms=!0)),_t=bt}Tn!==0&&Tn!==5||yc(lt),yr!==0&&(yr=0)}function Xh(lt,ht){for(var gt=lt.suspendedLanes,_t=lt.pingedLanes,bt=lt.expirationTimes,wt=lt.pendingLanes&-62914561;0Ot)break;var va=Zt.transferSize,wa=Zt.initiatorType;va&&r0(wa)&&(Zt=Zt.responseEnd,Pt+=va*(Zt"u"?null:document;function m0(lt,ht,gt){var _t=ko;if(_t&&typeof ht=="string"&&ht){var bt=ui(ht);bt='link[rel="'+lt+'"][href="'+bt+'"]',typeof gt=="string"&&(bt+='[crossorigin="'+gt+'"]'),g0.has(bt)||(g0.add(bt),lt={rel:lt,crossOrigin:gt,href:ht},_t.querySelector(bt)===null&&(ht=_t.createElement("link"),Fn(ht,"link",lt),Ua(ht),_t.head.appendChild(ht)))}}function wp(lt){Ki.D(lt),m0("dns-prefetch",lt,null)}function Lp(lt,ht){Ki.C(lt,ht),m0("preconnect",lt,ht)}function Sp(lt,ht,gt){Ki.L(lt,ht,gt);var _t=ko;if(_t&<&&ht){var bt='link[rel="preload"][as="'+ui(ht)+'"]';ht==="image"&>&>.imageSrcSet?(bt+='[imagesrcset="'+ui(gt.imageSrcSet)+'"]',typeof gt.imageSizes=="string"&&(bt+='[imagesizes="'+ui(gt.imageSizes)+'"]')):bt+='[href="'+ui(lt)+'"]';var wt=bt;switch(ht){case"style":wt=_o(lt);break;case"script":wt=xo(lt)}xi.has(wt)||(lt=vt({rel:"preload",href:ht==="image"&>&>.imageSrcSet?void 0:lt,as:ht},gt),xi.set(wt,lt),_t.querySelector(bt)!==null||ht==="style"&&_t.querySelector(_c(wt))||ht==="script"&&_t.querySelector(xc(wt))||(ht=_t.createElement("link"),Fn(ht,"link",lt),Ua(ht),_t.head.appendChild(ht)))}}function $p(lt,ht){Ki.m(lt,ht);var gt=ko;if(gt&<){var _t=ht&&typeof ht.as=="string"?ht.as:"script",bt='link[rel="modulepreload"][as="'+ui(_t)+'"][href="'+ui(lt)+'"]',wt=bt;switch(_t){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":wt=xo(lt)}if(!xi.has(wt)&&(lt=vt({rel:"modulepreload",href:lt},ht),xi.set(wt,lt),gt.querySelector(bt)===null)){switch(_t){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(gt.querySelector(xc(wt)))return}_t=gt.createElement("link"),Fn(_t,"link",lt),Ua(_t),gt.head.appendChild(_t)}}}function Np(lt,ht,gt){Ki.S(lt,ht,gt);var _t=ko;if(_t&<){var bt=mn(_t).hoistableStyles,wt=_o(lt);ht=ht||"default";var Pt=bt.get(wt);if(!Pt){var Ot={loading:0,preload:null};if(Pt=_t.querySelector(_c(wt)))Ot.loading=5;else{lt=vt({rel:"stylesheet",href:lt,"data-precedence":ht},gt),(gt=xi.get(wt))&&F1(lt,gt);var Zt=Pt=_t.createElement("link");Ua(Zt),Fn(Zt,"link",lt),Zt._p=new Promise(function(da,va){Zt.onload=da,Zt.onerror=va}),Zt.addEventListener("load",function(){Ot.loading|=1}),Zt.addEventListener("error",function(){Ot.loading|=2}),Ot.loading|=4,Ns(Pt,ht,_t)}Pt={type:"stylesheet",instance:Pt,count:1,state:Ot},bt.set(wt,Pt)}}}function Ip(lt,ht){Ki.X(lt,ht);var gt=ko;if(gt&<){var _t=mn(gt).hoistableScripts,bt=xo(lt),wt=_t.get(bt);wt||(wt=gt.querySelector(xc(bt)),wt||(lt=vt({src:lt,async:!0},ht),(ht=xi.get(bt))&&j1(lt,ht),wt=gt.createElement("script"),Ua(wt),Fn(wt,"link",lt),gt.head.appendChild(wt)),wt={type:"script",instance:wt,count:1,state:null},_t.set(bt,wt))}}function Ap(lt,ht){Ki.M(lt,ht);var gt=ko;if(gt&<){var _t=mn(gt).hoistableScripts,bt=xo(lt),wt=_t.get(bt);wt||(wt=gt.querySelector(xc(bt)),wt||(lt=vt({src:lt,async:!0,type:"module"},ht),(ht=xi.get(bt))&&j1(lt,ht),wt=gt.createElement("script"),Ua(wt),Fn(wt,"link",lt),gt.head.appendChild(wt)),wt={type:"script",instance:wt,count:1,state:null},_t.set(bt,wt))}}function k0(lt,ht,gt,_t){var bt=(bt=$a.current)?$s(bt):null;if(!bt)throw Error(dt(446));switch(lt){case"meta":case"title":return null;case"style":return typeof gt.precedence=="string"&&typeof gt.href=="string"?(ht=_o(gt.href),gt=mn(bt).hoistableStyles,_t=gt.get(ht),_t||(_t={type:"style",instance:null,count:0,state:null},gt.set(ht,_t)),_t):{type:"void",instance:null,count:0,state:null};case"link":if(gt.rel==="stylesheet"&&typeof gt.href=="string"&&typeof gt.precedence=="string"){lt=_o(gt.href);var wt=mn(bt).hoistableStyles,Pt=wt.get(lt);if(Pt||(bt=bt.ownerDocument||bt,Pt={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},wt.set(lt,Pt),(wt=bt.querySelector(_c(lt)))&&!wt._p&&(Pt.instance=wt,Pt.state.loading=5),xi.has(lt)||(gt={rel:"preload",as:"style",href:gt.href,crossOrigin:gt.crossOrigin,integrity:gt.integrity,media:gt.media,hrefLang:gt.hrefLang,referrerPolicy:gt.referrerPolicy},xi.set(lt,gt),wt||Tp(bt,lt,gt,Pt.state))),ht&&_t===null)throw Error(dt(528,""));return Pt}if(ht&&_t!==null)throw Error(dt(529,""));return null;case"script":return ht=gt.async,gt=gt.src,typeof gt=="string"&&ht&&typeof ht!="function"&&typeof ht!="symbol"?(ht=xo(gt),gt=mn(bt).hoistableScripts,_t=gt.get(ht),_t||(_t={type:"script",instance:null,count:0,state:null},gt.set(ht,_t)),_t):{type:"void",instance:null,count:0,state:null};default:throw Error(dt(444,lt))}}function _o(lt){return'href="'+ui(lt)+'"'}function _c(lt){return'link[rel="stylesheet"]['+lt+"]"}function _0(lt){return vt({},lt,{"data-precedence":lt.precedence,precedence:null})}function Tp(lt,ht,gt,_t){lt.querySelector('link[rel="preload"][as="style"]['+ht+"]")?_t.loading=1:(ht=lt.createElement("link"),_t.preload=ht,ht.addEventListener("load",function(){return _t.loading|=1}),ht.addEventListener("error",function(){return _t.loading|=2}),Fn(ht,"link",gt),Ua(ht),lt.head.appendChild(ht))}function xo(lt){return'[src="'+ui(lt)+'"]'}function xc(lt){return"script[async]"+lt}function x0(lt,ht,gt){if(ht.count++,ht.instance===null)switch(ht.type){case"style":var _t=lt.querySelector('style[data-href~="'+ui(gt.href)+'"]');if(_t)return ht.instance=_t,Ua(_t),_t;var bt=vt({},gt,{"data-href":gt.href,"data-precedence":gt.precedence,href:null,precedence:null});return _t=(lt.ownerDocument||lt).createElement("style"),Ua(_t),Fn(_t,"style",bt),Ns(_t,gt.precedence,lt),ht.instance=_t;case"stylesheet":bt=_o(gt.href);var wt=lt.querySelector(_c(bt));if(wt)return ht.state.loading|=4,ht.instance=wt,Ua(wt),wt;_t=_0(gt),(bt=xi.get(bt))&&F1(_t,bt),wt=(lt.ownerDocument||lt).createElement("link"),Ua(wt);var Pt=wt;return Pt._p=new Promise(function(Ot,Zt){Pt.onload=Ot,Pt.onerror=Zt}),Fn(wt,"link",_t),ht.state.loading|=4,Ns(wt,gt.precedence,lt),ht.instance=wt;case"script":return wt=xo(gt.src),(bt=lt.querySelector(xc(wt)))?(ht.instance=bt,Ua(bt),bt):(_t=gt,(bt=xi.get(wt))&&(_t=vt({},gt),j1(_t,bt)),lt=lt.ownerDocument||lt,bt=lt.createElement("script"),Ua(bt),Fn(bt,"link",_t),lt.head.appendChild(bt),ht.instance=bt);case"void":return null;default:throw Error(dt(443,ht.type))}else ht.type==="stylesheet"&&(ht.state.loading&4)===0&&(_t=ht.instance,ht.state.loading|=4,Ns(_t,gt.precedence,lt));return ht.instance}function Ns(lt,ht,gt){for(var _t=gt.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),bt=_t.length?_t[_t.length-1]:null,wt=bt,Pt=0;Pt<_t.length;Pt++){var Ot=_t[Pt];if(Ot.dataset.precedence===ht)wt=Ot;else if(wt!==bt)break}wt?wt.parentNode.insertBefore(lt,wt.nextSibling):(ht=gt.nodeType===9?gt.head:gt,ht.insertBefore(lt,ht.firstChild))}function F1(lt,ht){lt.crossOrigin==null&&(lt.crossOrigin=ht.crossOrigin),lt.referrerPolicy==null&&(lt.referrerPolicy=ht.referrerPolicy),lt.title==null&&(lt.title=ht.title)}function j1(lt,ht){lt.crossOrigin==null&&(lt.crossOrigin=ht.crossOrigin),lt.referrerPolicy==null&&(lt.referrerPolicy=ht.referrerPolicy),lt.integrity==null&&(lt.integrity=ht.integrity)}var Is=null;function v0(lt,ht,gt){if(Is===null){var _t=new Map,bt=Is=new Map;bt.set(gt,_t)}else bt=Is,_t=bt.get(gt),_t||(_t=new Map,bt.set(gt,_t));if(_t.has(lt))return _t;for(_t.set(lt,null),gt=gt.getElementsByTagName(lt),bt=0;bt title"):null)}function Ep(lt,ht,gt){if(gt===1||ht.itemProp!=null)return!1;switch(lt){case"meta":case"title":return!0;case"style":if(typeof ht.precedence!="string"||typeof ht.href!="string"||ht.href==="")break;return!0;case"link":if(typeof ht.rel!="string"||typeof ht.href!="string"||ht.href===""||ht.onLoad||ht.onError)break;switch(ht.rel){case"stylesheet":return lt=ht.disabled,typeof ht.precedence=="string"&<==null;default:return!0}case"script":if(ht.async&&typeof ht.async!="function"&&typeof ht.async!="symbol"&&!ht.onLoad&&!ht.onError&&ht.src&&typeof ht.src=="string")return!0}return!1}function C0(lt){return!(lt.type==="stylesheet"&&(lt.state.loading&3)===0)}function Rp(lt,ht,gt,_t){if(gt.type==="stylesheet"&&(typeof _t.media!="string"||matchMedia(_t.media).matches!==!1)&&(gt.state.loading&4)===0){if(gt.instance===null){var bt=_o(_t.href),wt=ht.querySelector(_c(bt));if(wt){ht=wt._p,ht!==null&&typeof ht=="object"&&typeof ht.then=="function"&&(lt.count++,lt=As.bind(lt),ht.then(lt,lt)),gt.state.loading|=4,gt.instance=wt,Ua(wt);return}wt=ht.ownerDocument||ht,_t=_0(_t),(bt=xi.get(bt))&&F1(_t,bt),wt=wt.createElement("link"),Ua(wt);var Pt=wt;Pt._p=new Promise(function(Ot,Zt){Pt.onload=Ot,Pt.onerror=Zt}),Fn(wt,"link",_t),gt.instance=wt}lt.stylesheets===null&&(lt.stylesheets=new Map),lt.stylesheets.set(gt,ht),(ht=gt.state.preload)&&(gt.state.loading&3)===0&&(lt.count++,gt=As.bind(lt),ht.addEventListener("load",gt),ht.addEventListener("error",gt))}}var O1=0;function Bp(lt,ht){return lt.stylesheets&<.count===0&&Es(lt,lt.stylesheets),0O1?50:800)+ht);return lt.unsuspend=gt,function(){lt.unsuspend=null,clearTimeout(_t),clearTimeout(bt)}}:null}function As(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Es(this,this.stylesheets);else if(this.unsuspend){var lt=this.unsuspend;this.unsuspend=null,lt()}}}var Ts=null;function Es(lt,ht){lt.stylesheets=null,lt.unsuspend!==null&&(lt.count++,Ts=new Map,ht.forEach(Pp,lt),Ts=null,As.call(lt))}function Pp(lt,ht){if(!(ht.state.loading&4)){var gt=Ts.get(lt);if(gt)var _t=gt.get(null);else{gt=new Map,Ts.set(lt,gt);for(var bt=lt.querySelectorAll("link[data-precedence],style[data-precedence]"),wt=0;wt"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rt)}catch(it){console.error(it)}}return rt(),client.exports=requireReactDomClient_production(),client.exports}var clientExports=requireClient();var PopStateEventType="popstate";function createBrowserHistory(rt={}){function it(dt,ut){let{pathname:pt,search:yt,hash:ft}=dt.location;return createLocation("",{pathname:pt,search:yt,hash:ft},ut.state&&ut.state.usr||null,ut.state&&ut.state.key||"default")}function ct(dt,ut){return typeof ut=="string"?ut:createPath(ut)}return getUrlBasedHistory(it,ct,null,rt)}function invariant(rt,it){if(rt===!1||rt===null||typeof rt>"u")throw new Error(it)}function warning(rt,it){if(!rt){typeof console<"u"&&console.warn(it);try{throw new Error(it)}catch{}}}function createKey(){return Math.random().toString(36).substring(2,10)}function getHistoryState(rt,it){return{usr:rt.state,key:rt.key,idx:it}}function createLocation(rt,it,ct=null,dt){return{pathname:typeof rt=="string"?rt:rt.pathname,search:"",hash:"",...typeof it=="string"?parsePath(it):it,state:ct,key:it&&it.key||dt||createKey()}}function createPath({pathname:rt="/",search:it="",hash:ct=""}){return it&&it!=="?"&&(rt+=it.charAt(0)==="?"?it:"?"+it),ct&&ct!=="#"&&(rt+=ct.charAt(0)==="#"?ct:"#"+ct),rt}function parsePath(rt){let it={};if(rt){let ct=rt.indexOf("#");ct>=0&&(it.hash=rt.substring(ct),rt=rt.substring(0,ct));let dt=rt.indexOf("?");dt>=0&&(it.search=rt.substring(dt),rt=rt.substring(0,dt)),rt&&(it.pathname=rt)}return it}function getUrlBasedHistory(rt,it,ct,dt={}){let{window:ut=document.defaultView,v5Compat:pt=!1}=dt,yt=ut.history,ft="POP",mt=null,kt=xt();kt==null&&(kt=0,yt.replaceState({...yt.state,idx:kt},""));function xt(){return(yt.state||{idx:null}).idx}function vt(){ft="POP";let It=xt(),Nt=It==null?null:It-kt;kt=It,mt&&mt({action:ft,location:St.location,delta:Nt})}function Ct(It,Nt){ft="PUSH";let $t=createLocation(St.location,It,Nt);kt=xt()+1;let Rt=getHistoryState($t,kt),qt=St.createHref($t);try{yt.pushState(Rt,"",qt)}catch(Ft){if(Ft instanceof DOMException&&Ft.name==="DataCloneError")throw Ft;ut.location.assign(qt)}pt&&mt&&mt({action:ft,location:St.location,delta:1})}function Mt(It,Nt){ft="REPLACE";let $t=createLocation(St.location,It,Nt);kt=xt();let Rt=getHistoryState($t,kt),qt=St.createHref($t);yt.replaceState(Rt,"",qt),pt&&mt&&mt({action:ft,location:St.location,delta:0})}function Lt(It){return createBrowserURLImpl(It)}let St={get action(){return ft},get location(){return rt(ut,yt)},listen(It){if(mt)throw new Error("A history only accepts one active listener");return ut.addEventListener(PopStateEventType,vt),mt=It,()=>{ut.removeEventListener(PopStateEventType,vt),mt=null}},createHref(It){return it(ut,It)},createURL:Lt,encodeLocation(It){let Nt=Lt(It);return{pathname:Nt.pathname,search:Nt.search,hash:Nt.hash}},push:Ct,replace:Mt,go(It){return yt.go(It)}};return St}function createBrowserURLImpl(rt,it=!1){let ct="http://localhost";typeof window<"u"&&(ct=window.location.origin!=="null"?window.location.origin:window.location.href),invariant(ct,"No window.location.(origin|href) available to create URL");let dt=typeof rt=="string"?rt:createPath(rt);return dt=dt.replace(/ $/,"%20"),!it&&dt.startsWith("//")&&(dt=ct+dt),new URL(dt,ct)}function matchRoutes(rt,it,ct="/"){return matchRoutesImpl(rt,it,ct,!1)}function matchRoutesImpl(rt,it,ct,dt){let ut=typeof it=="string"?parsePath(it):it,pt=stripBasename(ut.pathname||"/",ct);if(pt==null)return null;let yt=flattenRoutes(rt);rankRouteBranches(yt);let ft=null;for(let mt=0;ft==null&&mt{let xt={relativePath:kt===void 0?yt.path||"":kt,caseSensitive:yt.caseSensitive===!0,childrenIndex:ft,route:yt};if(xt.relativePath.startsWith("/")){if(!xt.relativePath.startsWith(dt)&&mt)return;invariant(xt.relativePath.startsWith(dt),`Absolute route path "${xt.relativePath}" nested under path "${dt}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),xt.relativePath=xt.relativePath.slice(dt.length)}let vt=joinPaths([dt,xt.relativePath]),Ct=ct.concat(xt);yt.children&&yt.children.length>0&&(invariant(yt.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${vt}".`),flattenRoutes(yt.children,it,Ct,vt,mt)),!(yt.path==null&&!yt.index)&&it.push({path:vt,score:computeScore(vt,yt.index),routesMeta:Ct})};return rt.forEach((yt,ft)=>{if(yt.path===""||!yt.path?.includes("?"))pt(yt,ft);else for(let mt of explodeOptionalSegments(yt.path))pt(yt,ft,!0,mt)}),it}function explodeOptionalSegments(rt){let it=rt.split("/");if(it.length===0)return[];let[ct,...dt]=it,ut=ct.endsWith("?"),pt=ct.replace(/\?$/,"");if(dt.length===0)return ut?[pt,""]:[pt];let yt=explodeOptionalSegments(dt.join("/")),ft=[];return ft.push(...yt.map(mt=>mt===""?pt:[pt,mt].join("/"))),ut&&ft.push(...yt),ft.map(mt=>rt.startsWith("/")&&mt===""?"/":mt)}function rankRouteBranches(rt){rt.sort((it,ct)=>it.score!==ct.score?ct.score-it.score:compareIndexes(it.routesMeta.map(dt=>dt.childrenIndex),ct.routesMeta.map(dt=>dt.childrenIndex)))}var paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=rt=>rt==="*";function computeScore(rt,it){let ct=rt.split("/"),dt=ct.length;return ct.some(isSplat)&&(dt+=splatPenalty),it&&(dt+=indexRouteValue),ct.filter(ut=>!isSplat(ut)).reduce((ut,pt)=>ut+(paramRe.test(pt)?dynamicSegmentValue:pt===""?emptySegmentValue:staticSegmentValue),dt)}function compareIndexes(rt,it){return rt.length===it.length&&rt.slice(0,-1).every((dt,ut)=>dt===it[ut])?rt[rt.length-1]-it[it.length-1]:0}function matchRouteBranch(rt,it,ct=!1){let{routesMeta:dt}=rt,ut={},pt="/",yt=[];for(let ft=0;ft{if(xt==="*"){let Lt=ft[Ct]||"";yt=pt.slice(0,pt.length-Lt.length).replace(/(.)\/+$/,"$1")}const Mt=ft[Ct];return vt&&!Mt?kt[xt]=void 0:kt[xt]=(Mt||"").replace(/%2F/g,"/"),kt},{}),pathname:pt,pathnameBase:yt,pattern:rt}}function compilePath(rt,it=!1,ct=!0){warning(rt==="*"||!rt.endsWith("*")||rt.endsWith("/*"),`Route path "${rt}" will be treated as if it were "${rt.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${rt.replace(/\*$/,"/*")}".`);let dt=[],ut="^"+rt.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(yt,ft,mt)=>(dt.push({paramName:ft,isOptional:mt!=null}),mt?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return rt.endsWith("*")?(dt.push({paramName:"*"}),ut+=rt==="*"||rt==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):ct?ut+="\\/*$":rt!==""&&rt!=="/"&&(ut+="(?:(?=\\/|$))"),[new RegExp(ut,it?void 0:"i"),dt]}function decodePath(rt){try{return rt.split("/").map(it=>decodeURIComponent(it).replace(/\//g,"%2F")).join("/")}catch(it){return warning(!1,`The URL path "${rt}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${it}).`),rt}}function stripBasename(rt,it){if(it==="/")return rt;if(!rt.toLowerCase().startsWith(it.toLowerCase()))return null;let ct=it.endsWith("/")?it.length-1:it.length,dt=rt.charAt(ct);return dt&&dt!=="/"?null:rt.slice(ct)||"/"}var ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,isAbsoluteUrl=rt=>ABSOLUTE_URL_REGEX.test(rt);function resolvePath(rt,it="/"){let{pathname:ct,search:dt="",hash:ut=""}=typeof rt=="string"?parsePath(rt):rt,pt;if(ct)if(isAbsoluteUrl(ct))pt=ct;else{if(ct.includes("//")){let yt=ct;ct=ct.replace(/\/\/+/g,"/"),warning(!1,`Pathnames cannot have embedded double slashes - normalizing ${yt} -> ${ct}`)}ct.startsWith("/")?pt=resolvePathname(ct.substring(1),"/"):pt=resolvePathname(ct,it)}else pt=it;return{pathname:pt,search:normalizeSearch(dt),hash:normalizeHash(ut)}}function resolvePathname(rt,it){let ct=it.replace(/\/+$/,"").split("/");return rt.split("/").forEach(ut=>{ut===".."?ct.length>1&&ct.pop():ut!=="."&&ct.push(ut)}),ct.length>1?ct.join("/"):"/"}function getInvalidPathError(rt,it,ct,dt){return`Cannot include a '${rt}' character in a manually specified \`to.${it}\` field [${JSON.stringify(dt)}]. Please separate it out to the \`to.${ct}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function getPathContributingMatches(rt){return rt.filter((it,ct)=>ct===0||it.route.path&&it.route.path.length>0)}function getResolveToMatches(rt){let it=getPathContributingMatches(rt);return it.map((ct,dt)=>dt===it.length-1?ct.pathname:ct.pathnameBase)}function resolveTo(rt,it,ct,dt=!1){let ut;typeof rt=="string"?ut=parsePath(rt):(ut={...rt},invariant(!ut.pathname||!ut.pathname.includes("?"),getInvalidPathError("?","pathname","search",ut)),invariant(!ut.pathname||!ut.pathname.includes("#"),getInvalidPathError("#","pathname","hash",ut)),invariant(!ut.search||!ut.search.includes("#"),getInvalidPathError("#","search","hash",ut)));let pt=rt===""||ut.pathname==="",yt=pt?"/":ut.pathname,ft;if(yt==null)ft=ct;else{let vt=it.length-1;if(!dt&&yt.startsWith("..")){let Ct=yt.split("/");for(;Ct[0]==="..";)Ct.shift(),vt-=1;ut.pathname=Ct.join("/")}ft=vt>=0?it[vt]:"/"}let mt=resolvePath(ut,ft),kt=yt&&yt!=="/"&&yt.endsWith("/"),xt=(pt||yt===".")&&ct.endsWith("/");return!mt.pathname.endsWith("/")&&(kt||xt)&&(mt.pathname+="/"),mt}var joinPaths=rt=>rt.join("/").replace(/\/\/+/g,"/"),normalizePathname=rt=>rt.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=rt=>!rt||rt==="?"?"":rt.startsWith("?")?rt:"?"+rt,normalizeHash=rt=>!rt||rt==="#"?"":rt.startsWith("#")?rt:"#"+rt;function isRouteErrorResponse(rt){return rt!=null&&typeof rt.status=="number"&&typeof rt.statusText=="string"&&typeof rt.internal=="boolean"&&"data"in rt}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var validMutationMethodsArr=["POST","PUT","PATCH","DELETE"];new Set(validMutationMethodsArr);var validRequestMethodsArr=["GET",...validMutationMethodsArr];new Set(validRequestMethodsArr);var DataRouterContext=reactExports.createContext(null);DataRouterContext.displayName="DataRouter";var DataRouterStateContext=reactExports.createContext(null);DataRouterStateContext.displayName="DataRouterState";reactExports.createContext(!1);var ViewTransitionContext=reactExports.createContext({isTransitioning:!1});ViewTransitionContext.displayName="ViewTransition";var FetchersContext=reactExports.createContext(new Map);FetchersContext.displayName="Fetchers";var AwaitContext=reactExports.createContext(null);AwaitContext.displayName="Await";var NavigationContext=reactExports.createContext(null);NavigationContext.displayName="Navigation";var LocationContext=reactExports.createContext(null);LocationContext.displayName="Location";var RouteContext=reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});RouteContext.displayName="Route";var RouteErrorContext=reactExports.createContext(null);RouteErrorContext.displayName="RouteError";function useHref(rt,{relative:it}={}){invariant(useInRouterContext(),"useHref() may be used only in the context of a component.");let{basename:ct,navigator:dt}=reactExports.useContext(NavigationContext),{hash:ut,pathname:pt,search:yt}=useResolvedPath(rt,{relative:it}),ft=pt;return ct!=="/"&&(ft=pt==="/"?ct:joinPaths([ct,pt])),dt.createHref({pathname:ft,search:yt,hash:ut})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return invariant(useInRouterContext(),"useLocation() may be used only in the context of a component."),reactExports.useContext(LocationContext).location}var navigateEffectWarning="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function useIsomorphicLayoutEffect(rt){reactExports.useContext(NavigationContext).static||reactExports.useLayoutEffect(rt)}function useNavigate(){let{isDataRoute:rt}=reactExports.useContext(RouteContext);return rt?useNavigateStable():useNavigateUnstable()}function useNavigateUnstable(){invariant(useInRouterContext(),"useNavigate() may be used only in the context of a component.");let rt=reactExports.useContext(DataRouterContext),{basename:it,navigator:ct}=reactExports.useContext(NavigationContext),{matches:dt}=reactExports.useContext(RouteContext),{pathname:ut}=useLocation(),pt=JSON.stringify(getResolveToMatches(dt)),yt=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{yt.current=!0}),reactExports.useCallback((mt,kt={})=>{if(warning(yt.current,navigateEffectWarning),!yt.current)return;if(typeof mt=="number"){ct.go(mt);return}let xt=resolveTo(mt,JSON.parse(pt),ut,kt.relative==="path");rt==null&&it!=="/"&&(xt.pathname=xt.pathname==="/"?it:joinPaths([it,xt.pathname])),(kt.replace?ct.replace:ct.push)(xt,kt.state,kt)},[it,ct,pt,ut,rt])}var OutletContext=reactExports.createContext(null);function useOutlet(rt){let it=reactExports.useContext(RouteContext).outlet;return reactExports.useMemo(()=>it&&reactExports.createElement(OutletContext.Provider,{value:rt},it),[it,rt])}function useParams(){let{matches:rt}=reactExports.useContext(RouteContext),it=rt[rt.length-1];return it?it.params:{}}function useResolvedPath(rt,{relative:it}={}){let{matches:ct}=reactExports.useContext(RouteContext),{pathname:dt}=useLocation(),ut=JSON.stringify(getResolveToMatches(ct));return reactExports.useMemo(()=>resolveTo(rt,JSON.parse(ut),dt,it==="path"),[rt,ut,dt,it])}function useRoutes(rt,it){return useRoutesImpl(rt,it)}function useRoutesImpl(rt,it,ct,dt,ut){invariant(useInRouterContext(),"useRoutes() may be used only in the context of a component.");let{navigator:pt}=reactExports.useContext(NavigationContext),{matches:yt}=reactExports.useContext(RouteContext),ft=yt[yt.length-1],mt=ft?ft.params:{},kt=ft?ft.pathname:"/",xt=ft?ft.pathnameBase:"/",vt=ft&&ft.route;{let $t=vt&&vt.path||"";warningOnce(kt,!vt||$t.endsWith("*")||$t.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${kt}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. +`+hn+lt+Ja}var En=!1;function Hn(lt,ht){if(!lt||En)return"";En=!0;var gt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var xt={DetermineComponentFrameRoot:function(){try{if(ht){var wa=function(){throw Error()};if(Object.defineProperty(wa.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(wa,[])}catch(ga){var ya=ga}Reflect.construct(lt,[],wa)}else{try{wa.call()}catch(ga){ya=ga}lt.call(wa.prototype)}}else{try{throw Error()}catch(ga){ya=ga}(wa=lt())&&typeof wa.catch=="function"&&wa.catch(function(){})}}catch(ga){if(ga&&ya&&typeof ga.stack=="string")return[ga.stack,ya.stack]}return[null,null]}};xt.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Ct=Object.getOwnPropertyDescriptor(xt.DetermineComponentFrameRoot,"name");Ct&&Ct.configurable&&Object.defineProperty(xt.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Lt=xt.DetermineComponentFrameRoot(),Dt=Lt[0],zt=Lt[1];if(Dt&&zt){var Jt=Dt.split(` +`),ha=zt.split(` +`);for(Ct=xt=0;xtCt||Jt[xt]!==ha[Ct]){var va=` +`+Jt[xt].replace(" at new "," at ");return lt.displayName&&va.includes("")&&(va=va.replace("",lt.displayName)),va}while(1<=xt&&0<=Ct);break}}}finally{En=!1,Error.prepareStackTrace=gt}return(gt=lt?lt.displayName||lt.name:"")?kn(gt):""}function Jn(lt,ht){switch(lt.tag){case 26:case 27:case 5:return kn(lt.type);case 16:return kn("Lazy");case 13:return lt.child!==ht&&ht!==null?kn("Suspense Fallback"):kn("Suspense");case 19:return kn("SuspenseList");case 0:case 15:return Hn(lt.type,!1);case 11:return Hn(lt.type.render,!1);case 1:return Hn(lt.type,!0);case 31:return kn("Activity");default:return""}}function vn(lt){try{var ht="",gt=null;do ht+=Jn(lt,gt),gt=lt,lt=lt.return;while(lt);return ht}catch(xt){return` +Error generating stack: `+xt.message+` +`+xt.stack}}var Un=Object.prototype.hasOwnProperty,jn=rt.unstable_scheduleCallback,On=rt.unstable_cancelCallback,Mn=rt.unstable_shouldYield,vi=rt.unstable_requestPaint,pn=rt.unstable_now,Tt=rt.unstable_getCurrentPriorityLevel,fa=rt.unstable_ImmediatePriority,Pt=rt.unstable_UserBlockingPriority,At=rt.unstable_NormalPriority,Rt=rt.unstable_LowPriority,Bt=rt.unstable_IdlePriority,jt=rt.log,Wt=rt.unstable_setDisableYieldValue,Xt=null,da=null;function ma(lt){if(typeof jt=="function"&&Wt(lt),da&&typeof da.setStrictMode=="function")try{da.setStrictMode(Xt,lt)}catch{}}var pa=Math.clz32?Math.clz32:Ra,La=Math.log,ba=Math.LN2;function Ra(lt){return lt>>>=0,lt===0?32:31-(La(lt)/ba|0)|0}var ja=256,Pa=262144,gn=4194304;function ei(lt){var ht=lt&42;if(ht!==0)return ht;switch(lt&-lt){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return lt&261888;case 262144:case 524288:case 1048576:case 2097152:return lt&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return lt&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return lt}}function jr(lt,ht,gt){var xt=lt.pendingLanes;if(xt===0)return 0;var Ct=0,Lt=lt.suspendedLanes,Dt=lt.pingedLanes;lt=lt.warmLanes;var zt=xt&134217727;return zt!==0?(xt=zt&~Lt,xt!==0?Ct=ei(xt):(Dt&=zt,Dt!==0?Ct=ei(Dt):gt||(gt=zt&~lt,gt!==0&&(Ct=ei(gt))))):(zt=xt&~Lt,zt!==0?Ct=ei(zt):Dt!==0?Ct=ei(Dt):gt||(gt=xt&~lt,gt!==0&&(Ct=ei(gt)))),Ct===0?0:ht!==0&&ht!==Ct&&(ht&Lt)===0&&(Lt=Ct&-Ct,gt=ht&-ht,Lt>=gt||Lt===32&&(gt&4194048)!==0)?ht:Ct}function br(lt,ht){return(lt.pendingLanes&~(lt.suspendedLanes&~lt.pingedLanes)&ht)===0}function wn(lt,ht){switch(lt){case 1:case 2:case 4:case 8:case 64:return ht+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return ht+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ai(){var lt=gn;return gn<<=1,(gn&62914560)===0&&(gn=4194304),lt}function Io(lt){for(var ht=[],gt=0;31>gt;gt++)ht.push(lt);return ht}function Qi(lt,ht){lt.pendingLanes|=ht,ht!==268435456&&(lt.suspendedLanes=0,lt.pingedLanes=0,lt.warmLanes=0)}function Ao(lt,ht,gt,xt,Ct,Lt){var Dt=lt.pendingLanes;lt.pendingLanes=gt,lt.suspendedLanes=0,lt.pingedLanes=0,lt.warmLanes=0,lt.expiredLanes&=gt,lt.entangledLanes&=gt,lt.errorRecoveryDisabledLanes&=gt,lt.shellSuspendCounter=0;var zt=lt.entanglements,Jt=lt.expirationTimes,ha=lt.hiddenUpdates;for(gt=Dt&~gt;0"u")return null;try{return lt.activeElement||lt.body}catch{return lt.body}}var q0=/[\n"\\]/g;function ui(lt){return lt.replace(q0,function(ht){return"\\"+ht.charCodeAt(0).toString(16)+" "})}function zs(lt,ht,gt,xt,Ct,Lt,Dt,zt){lt.name="",Dt!=null&&typeof Dt!="function"&&typeof Dt!="symbol"&&typeof Dt!="boolean"?lt.type=Dt:lt.removeAttribute("type"),ht!=null?Dt==="number"?(ht===0&<.value===""||lt.value!=ht)&&(lt.value=""+di(ht)):lt.value!==""+di(ht)&&(lt.value=""+di(ht)):Dt!=="submit"&&Dt!=="reset"||lt.removeAttribute("value"),ht!=null?Hs(lt,Dt,di(ht)):gt!=null?Hs(lt,Dt,di(gt)):xt!=null&<.removeAttribute("value"),Ct==null&&Lt!=null&&(lt.defaultChecked=!!Lt),Ct!=null&&(lt.checked=Ct&&typeof Ct!="function"&&typeof Ct!="symbol"),zt!=null&&typeof zt!="function"&&typeof zt!="symbol"&&typeof zt!="boolean"?lt.name=""+di(zt):lt.removeAttribute("name")}function Q1(lt,ht,gt,xt,Ct,Lt,Dt,zt){if(Lt!=null&&typeof Lt!="function"&&typeof Lt!="symbol"&&typeof Lt!="boolean"&&(lt.type=Lt),ht!=null||gt!=null){if(!(Lt!=="submit"&&Lt!=="reset"||ht!=null)){Os(lt);return}gt=gt!=null?""+di(gt):"",ht=ht!=null?""+di(ht):gt,zt||ht===lt.value||(lt.value=ht),lt.defaultValue=ht}xt=xt??Ct,xt=typeof xt!="function"&&typeof xt!="symbol"&&!!xt,lt.checked=zt?lt.checked:!!xt,lt.defaultChecked=!!xt,Dt!=null&&typeof Dt!="function"&&typeof Dt!="symbol"&&typeof Dt!="boolean"&&(lt.name=Dt),Os(lt)}function Hs(lt,ht,gt){ht==="number"&&Ac(lt.ownerDocument)===lt||lt.defaultValue===""+gt||(lt.defaultValue=""+gt)}function zr(lt,ht,gt,xt){if(lt=lt.options,ht){ht={};for(var Ct=0;Ct"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ys=!1;if(Bi)try{var qo={};Object.defineProperty(qo,"passive",{get:function(){Ys=!0}}),window.addEventListener("test",qo,qo),window.removeEventListener("test",qo,qo)}catch{Ys=!1}var Ji=null,Xs=null,Ec=null;function od(){if(Ec)return Ec;var lt,ht=Xs,gt=ht.length,xt,Ct="value"in Ji?Ji.value:Ji.textContent,Lt=Ct.length;for(lt=0;lt=zo),hd=" ",pd=!1;function fd(lt,ht){switch(lt){case"keyup":return p2.indexOf(ht.keyCode)!==-1;case"keydown":return ht.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yd(lt){return lt=lt.detail,typeof lt=="object"&&"data"in lt?lt.data:null}var Gr=!1;function y2(lt,ht){switch(lt){case"compositionend":return yd(ht);case"keypress":return ht.which!==32?null:(pd=!0,hd);case"textInput":return lt=ht.data,lt===hd&&pd?null:lt;default:return null}}function g2(lt,ht){if(Gr)return lt==="compositionend"||!el&&fd(lt,ht)?(lt=od(),Ec=Xs=Ji=null,Gr=!1,lt):null;switch(lt){case"paste":return null;case"keypress":if(!(ht.ctrlKey||ht.altKey||ht.metaKey)||ht.ctrlKey&&ht.altKey){if(ht.char&&1=ht)return{node:gt,offset:ht-lt};lt=xt}e:{for(;gt;){if(gt.nextSibling){gt=gt.nextSibling;break e}gt=gt.parentNode}gt=void 0}gt=Cd(gt)}}function wd(lt,ht){return lt&&ht?lt===ht?!0:lt&<.nodeType===3?!1:ht&&ht.nodeType===3?wd(lt,ht.parentNode):"contains"in lt?lt.contains(ht):lt.compareDocumentPosition?!!(lt.compareDocumentPosition(ht)&16):!1:!1}function Ld(lt){lt=lt!=null&<.ownerDocument!=null&<.ownerDocument.defaultView!=null?lt.ownerDocument.defaultView:window;for(var ht=Ac(lt.document);ht instanceof lt.HTMLIFrameElement;){try{var gt=typeof ht.contentWindow.location.href=="string"}catch{gt=!1}if(gt)lt=ht.contentWindow;else break;ht=Ac(lt.document)}return ht}function nl(lt){var ht=lt&<.nodeName&<.nodeName.toLowerCase();return ht&&(ht==="input"&&(lt.type==="text"||lt.type==="search"||lt.type==="tel"||lt.type==="url"||lt.type==="password")||ht==="textarea"||lt.contentEditable==="true")}var M2=Bi&&"documentMode"in document&&11>=document.documentMode,Wr=null,il=null,Go=null,rl=!1;function Sd(lt,ht,gt){var xt=gt.window===gt?gt.document:gt.nodeType===9?gt:gt.ownerDocument;rl||Wr==null||Wr!==Ac(xt)||(xt=Wr,"selectionStart"in xt&&nl(xt)?xt={start:xt.selectionStart,end:xt.selectionEnd}:(xt=(xt.ownerDocument&&xt.ownerDocument.defaultView||window).getSelection(),xt={anchorNode:xt.anchorNode,anchorOffset:xt.anchorOffset,focusNode:xt.focusNode,focusOffset:xt.focusOffset}),Go&&Vo(Go,xt)||(Go=xt,xt=Ls(il,"onSelect"),0>=Dt,Ct-=Dt,Si=1<<32-pa(ht)+Ct|gt<za?(Ya=Ea,Ea=null):Ya=Ea.sibling;var Ka=ya(ca,Ea,ua[za],Ma);if(Ka===null){Ea===null&&(Ea=Ya);break}lt&&Ea&&Ka.alternate===null&&ht(ca,Ea),ia=Lt(Ka,ia,za),Za===null?Ba=Ka:Za.sibling=Ka,Za=Ka,Ea=Ya}if(za===ua.length)return gt(ca,Ea),Xa&&Fi(ca,za),Ba;if(Ea===null){for(;zaza?(Ya=Ea,Ea=null):Ya=Ea.sibling;var vr=ya(ca,Ea,Ka.value,Ma);if(vr===null){Ea===null&&(Ea=Ya);break}lt&&Ea&&vr.alternate===null&&ht(ca,Ea),ia=Lt(vr,ia,za),Za===null?Ba=vr:Za.sibling=vr,Za=vr,Ea=Ya}if(Ka.done)return gt(ca,Ea),Xa&&Fi(ca,za),Ba;if(Ea===null){for(;!Ka.done;za++,Ka=ua.next())Ka=wa(ca,Ka.value,Ma),Ka!==null&&(ia=Lt(Ka,ia,za),Za===null?Ba=Ka:Za.sibling=Ka,Za=Ka);return Xa&&Fi(ca,za),Ba}for(Ea=xt(Ea);!Ka.done;za++,Ka=ua.next())Ka=ga(Ea,ca,za,Ka.value,Ma),Ka!==null&&(lt&&Ka.alternate!==null&&Ea.delete(Ka.key===null?za:Ka.key),ia=Lt(Ka,ia,za),Za===null?Ba=Ka:Za.sibling=Ka,Za=Ka);return lt&&Ea.forEach(function(Up){return ht(ca,Up)}),Xa&&Fi(ca,za),Ba}function sn(ca,ia,ua,Ma){if(typeof ua=="object"&&ua!==null&&ua.type===St&&ua.key===null&&(ua=ua.props.children),typeof ua=="object"&&ua!==null){switch(ua.$$typeof){case Mt:e:{for(var Ba=ua.key;ia!==null;){if(ia.key===Ba){if(Ba=ua.type,Ba===St){if(ia.tag===7){gt(ca,ia.sibling),Ma=Ct(ia,ua.props.children),Ma.return=ca,ca=Ma;break e}}else if(ia.elementType===Ba||typeof Ba=="object"&&Ba!==null&&Ba.$$typeof===Zt&&Tr(Ba)===ia.type){gt(ca,ia.sibling),Ma=Ct(ia,ua.props),Qo(Ma,ua),Ma.return=ca,ca=Ma;break e}gt(ca,ia);break}else ht(ca,ia);ia=ia.sibling}ua.type===St?(Ma=Sr(ua.props.children,ca.mode,Ma,ua.key),Ma.return=ca,ca=Ma):(Ma=Hc(ua.type,ua.key,ua.props,null,ca.mode,Ma),Qo(Ma,ua),Ma.return=ca,ca=Ma)}return Dt(ca);case wt:e:{for(Ba=ua.key;ia!==null;){if(ia.key===Ba)if(ia.tag===4&&ia.stateNode.containerInfo===ua.containerInfo&&ia.stateNode.implementation===ua.implementation){gt(ca,ia.sibling),Ma=Ct(ia,ua.children||[]),Ma.return=ca,ca=Ma;break e}else{gt(ca,ia);break}else ht(ca,ia);ia=ia.sibling}Ma=hl(ua,ca.mode,Ma),Ma.return=ca,ca=Ma}return Dt(ca);case Zt:return ua=Tr(ua),sn(ca,ia,ua,Ma)}if(ra(ua))return Aa(ca,ia,ua,Ma);if(oa(ua)){if(Ba=oa(ua),typeof Ba!="function")throw Error(dt(150));return ua=Ba.call(ua),Da(ca,ia,ua,Ma)}if(typeof ua.then=="function")return sn(ca,ia,Zc(ua),Ma);if(ua.$$typeof===Et)return sn(ca,ia,Gc(ca,ua),Ma);Kc(ca,ua)}return typeof ua=="string"&&ua!==""||typeof ua=="number"||typeof ua=="bigint"?(ua=""+ua,ia!==null&&ia.tag===6?(gt(ca,ia.sibling),Ma=Ct(ia,ua),Ma.return=ca,ca=Ma):(gt(ca,ia),Ma=ul(ua,ca.mode,Ma),Ma.return=ca,ca=Ma),Dt(ca)):gt(ca,ia)}return function(ca,ia,ua,Ma){try{Ko=0;var Ba=sn(ca,ia,ua,Ma);return io=null,Ba}catch(Ea){if(Ea===no||Ea===Yc)throw Ea;var Za=ai(29,Ea,null,ca.mode);return Za.lanes=Ma,Za.return=ca,Za}finally{}}}var Rr=Zd(!0),Kd=Zd(!1),ir=!1;function Ml(lt){lt.updateQueue={baseState:lt.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wl(lt,ht){lt=lt.updateQueue,ht.updateQueue===lt&&(ht.updateQueue={baseState:lt.baseState,firstBaseUpdate:lt.firstBaseUpdate,lastBaseUpdate:lt.lastBaseUpdate,shared:lt.shared,callbacks:null})}function rr(lt){return{lane:lt,tag:0,payload:null,callback:null,next:null}}function or(lt,ht,gt){var xt=lt.updateQueue;if(xt===null)return null;if(xt=xt.shared,(Qa&2)!==0){var Ct=xt.pending;return Ct===null?ht.next=ht:(ht.next=Ct.next,Ct.next=ht),xt.pending=ht,ht=zc(lt),Rd(lt,null,gt),ht}return Oc(lt,xt,ht,gt),zc(lt)}function Jo(lt,ht,gt){if(ht=ht.updateQueue,ht!==null&&(ht=ht.shared,(gt&4194048)!==0)){var xt=ht.lanes;xt&=lt.pendingLanes,gt|=xt,ht.lanes=gt,Eo(lt,gt)}}function Ll(lt,ht){var gt=lt.updateQueue,xt=lt.alternate;if(xt!==null&&(xt=xt.updateQueue,gt===xt)){var Ct=null,Lt=null;if(gt=gt.firstBaseUpdate,gt!==null){do{var Dt={lane:gt.lane,tag:gt.tag,payload:gt.payload,callback:null,next:null};Lt===null?Ct=Lt=Dt:Lt=Lt.next=Dt,gt=gt.next}while(gt!==null);Lt===null?Ct=Lt=ht:Lt=Lt.next=ht}else Ct=Lt=ht;gt={baseState:xt.baseState,firstBaseUpdate:Ct,lastBaseUpdate:Lt,shared:xt.shared,callbacks:xt.callbacks},lt.updateQueue=gt;return}lt=gt.lastBaseUpdate,lt===null?gt.firstBaseUpdate=ht:lt.next=ht,gt.lastBaseUpdate=ht}var Sl=!1;function ec(){if(Sl){var lt=ao;if(lt!==null)throw lt}}function tc(lt,ht,gt,xt){Sl=!1;var Ct=lt.updateQueue;ir=!1;var Lt=Ct.firstBaseUpdate,Dt=Ct.lastBaseUpdate,zt=Ct.shared.pending;if(zt!==null){Ct.shared.pending=null;var Jt=zt,ha=Jt.next;Jt.next=null,Dt===null?Lt=ha:Dt.next=ha,Dt=Jt;var va=lt.alternate;va!==null&&(va=va.updateQueue,zt=va.lastBaseUpdate,zt!==Dt&&(zt===null?va.firstBaseUpdate=ha:zt.next=ha,va.lastBaseUpdate=Jt))}if(Lt!==null){var wa=Ct.baseState;Dt=0,va=ha=Jt=null,zt=Lt;do{var ya=zt.lane&-536870913,ga=ya!==zt.lane;if(ga?(Wa&ya)===ya:(xt&ya)===ya){ya!==0&&ya===to&&(Sl=!0),va!==null&&(va=va.next={lane:0,tag:zt.tag,payload:zt.payload,callback:null,next:null});e:{var Aa=lt,Da=zt;ya=ht;var sn=gt;switch(Da.tag){case 1:if(Aa=Da.payload,typeof Aa=="function"){wa=Aa.call(sn,wa,ya);break e}wa=Aa;break e;case 3:Aa.flags=Aa.flags&-65537|128;case 0:if(Aa=Da.payload,ya=typeof Aa=="function"?Aa.call(sn,wa,ya):Aa,ya==null)break e;wa=vt({},wa,ya);break e;case 2:ir=!0}}ya=zt.callback,ya!==null&&(lt.flags|=64,ga&&(lt.flags|=8192),ga=Ct.callbacks,ga===null?Ct.callbacks=[ya]:ga.push(ya))}else ga={lane:ya,tag:zt.tag,payload:zt.payload,callback:zt.callback,next:null},va===null?(ha=va=ga,Jt=wa):va=va.next=ga,Dt|=ya;if(zt=zt.next,zt===null){if(zt=Ct.shared.pending,zt===null)break;ga=zt,zt=ga.next,ga.next=null,Ct.lastBaseUpdate=ga,Ct.shared.pending=null}}while(!0);va===null&&(Jt=wa),Ct.baseState=Jt,Ct.firstBaseUpdate=ha,Ct.lastBaseUpdate=va,Lt===null&&(Ct.shared.lanes=0),ur|=Dt,lt.lanes=Dt,lt.memoizedState=wa}}function Qd(lt,ht){if(typeof lt!="function")throw Error(dt(191,lt));lt.call(ht)}function Jd(lt,ht){var gt=lt.callbacks;if(gt!==null)for(lt.callbacks=null,lt=0;ltLt?Lt:8;var Dt=Ut.T,zt={};Ut.T=zt,Gl(lt,!1,ht,gt);try{var Jt=Ct(),ha=Ut.S;if(ha!==null&&ha(zt,Jt),Jt!==null&&typeof Jt=="object"&&typeof Jt.then=="function"){var va=E2(Jt,xt);ic(lt,ht,va,ci(lt))}else ic(lt,ht,xt,ci(lt))}catch(wa){ic(lt,ht,{then:function(){},status:"rejected",reason:wa},ci())}finally{ea.p=Lt,Dt!==null&&zt.types!==null&&(Dt.types=zt.types),Ut.T=Dt}}function q2(){}function Ul(lt,ht,gt,xt){if(lt.tag!==5)throw Error(dt(476));var Ct=Tu(lt).queue;Au(lt,Ct,ht,Gt,gt===null?q2:function(){return Eu(lt),gt(xt)})}function Tu(lt){var ht=lt.memoizedState;if(ht!==null)return ht;ht={memoizedState:Gt,baseState:Gt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:Gt},next:null};var gt={};return ht.next={memoizedState:gt,baseState:gt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:gt},next:null},lt.memoizedState=ht,lt=lt.alternate,lt!==null&&(lt.memoizedState=ht),ht}function Eu(lt){var ht=Tu(lt);ht.next===null&&(ht=lt.alternate.memoizedState),ic(lt,ht.next.queue,{},ci())}function Vl(){return Pn(vc)}function Ru(){return Cn().memoizedState}function Bu(){return Cn().memoizedState}function j2(lt){for(var ht=lt.return;ht!==null;){switch(ht.tag){case 24:case 3:var gt=ci();lt=rr(gt);var xt=or(ht,lt,gt);xt!==null&&(Qn(xt,ht,gt),Jo(xt,ht,gt)),ht={cache:xl()},lt.payload=ht;return}ht=ht.return}}function O2(lt,ht,gt){var xt=ci();gt={lane:xt,revertLane:0,gesture:null,action:gt,hasEagerState:!1,eagerState:null,next:null},cs(lt)?Pu(ht,gt):(gt=ll(lt,ht,gt,xt),gt!==null&&(Qn(gt,lt,xt),Fu(gt,ht,xt)))}function Du(lt,ht,gt){var xt=ci();ic(lt,ht,gt,xt)}function ic(lt,ht,gt,xt){var Ct={lane:xt,revertLane:0,gesture:null,action:gt,hasEagerState:!1,eagerState:null,next:null};if(cs(lt))Pu(ht,Ct);else{var Lt=lt.alternate;if(lt.lanes===0&&(Lt===null||Lt.lanes===0)&&(Lt=ht.lastRenderedReducer,Lt!==null))try{var Dt=ht.lastRenderedState,zt=Lt(Dt,gt);if(Ct.hasEagerState=!0,Ct.eagerState=zt,ti(zt,Dt))return Oc(lt,ht,Ct,0),ln===null&&jc(),!1}catch{}finally{}if(gt=ll(lt,ht,Ct,xt),gt!==null)return Qn(gt,lt,xt),Fu(gt,ht,xt),!0}return!1}function Gl(lt,ht,gt,xt){if(xt={lane:2,revertLane:M1(),gesture:null,action:xt,hasEagerState:!1,eagerState:null,next:null},cs(lt)){if(ht)throw Error(dt(479))}else ht=ll(lt,gt,xt,2),ht!==null&&Qn(ht,lt,2)}function cs(lt){var ht=lt.alternate;return lt===Oa||ht!==null&&ht===Oa}function Pu(lt,ht){oo=es=!0;var gt=lt.pending;gt===null?ht.next=ht:(ht.next=gt.next,gt.next=ht),lt.pending=ht}function Fu(lt,ht,gt){if((gt&4194048)!==0){var xt=ht.lanes;xt&=lt.pendingLanes,gt|=xt,ht.lanes=gt,Eo(lt,gt)}}var rc={readContext:Pn,use:ns,useCallback:_n,useContext:_n,useEffect:_n,useImperativeHandle:_n,useLayoutEffect:_n,useInsertionEffect:_n,useMemo:_n,useReducer:_n,useRef:_n,useState:_n,useDebugValue:_n,useDeferredValue:_n,useTransition:_n,useSyncExternalStore:_n,useId:_n,useHostTransitionStatus:_n,useFormState:_n,useActionState:_n,useOptimistic:_n,useMemoCache:_n,useCacheRefresh:_n};rc.useEffectEvent=_n;var qu={readContext:Pn,use:ns,useCallback:function(lt,ht){return zn().memoizedState=[lt,ht===void 0?null:ht],lt},useContext:Pn,useEffect:bu,useImperativeHandle:function(lt,ht,gt){gt=gt!=null?gt.concat([lt]):null,rs(4194308,4,Lu.bind(null,ht,lt),gt)},useLayoutEffect:function(lt,ht){return rs(4194308,4,lt,ht)},useInsertionEffect:function(lt,ht){rs(4,2,lt,ht)},useMemo:function(lt,ht){var gt=zn();ht=ht===void 0?null:ht;var xt=lt();if(Br){ma(!0);try{lt()}finally{ma(!1)}}return gt.memoizedState=[xt,ht],xt},useReducer:function(lt,ht,gt){var xt=zn();if(gt!==void 0){var Ct=gt(ht);if(Br){ma(!0);try{gt(ht)}finally{ma(!1)}}}else Ct=ht;return xt.memoizedState=xt.baseState=Ct,lt={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lt,lastRenderedState:Ct},xt.queue=lt,lt=lt.dispatch=O2.bind(null,Oa,lt),[xt.memoizedState,lt]},useRef:function(lt){var ht=zn();return lt={current:lt},ht.memoizedState=lt},useState:function(lt){lt=ql(lt);var ht=lt.queue,gt=Du.bind(null,Oa,ht);return ht.dispatch=gt,[lt.memoizedState,gt]},useDebugValue:zl,useDeferredValue:function(lt,ht){var gt=zn();return Hl(gt,lt,ht)},useTransition:function(){var lt=ql(!1);return lt=Au.bind(null,Oa,lt.queue,!0,!1),zn().memoizedState=lt,[!1,lt]},useSyncExternalStore:function(lt,ht,gt){var xt=Oa,Ct=zn();if(Xa){if(gt===void 0)throw Error(dt(407));gt=gt()}else{if(gt=ht(),ln===null)throw Error(dt(349));(Wa&127)!==0||ou(xt,ht,gt)}Ct.memoizedState=gt;var Lt={value:gt,getSnapshot:ht};return Ct.queue=Lt,bu(su.bind(null,xt,Lt,lt),[lt]),xt.flags|=2048,so(9,{destroy:void 0},cu.bind(null,xt,Lt,gt,ht),null),gt},useId:function(){var lt=zn(),ht=ln.identifierPrefix;if(Xa){var gt=$i,xt=Si;gt=(xt&~(1<<32-pa(xt)-1)).toString(32)+gt,ht="_"+ht+"R_"+gt,gt=ts++,0<\/script>",Lt=Lt.removeChild(Lt.firstChild);break;case"select":Lt=typeof xt.is=="string"?Dt.createElement("select",{is:xt.is}):Dt.createElement("select"),xt.multiple?Lt.multiple=!0:xt.size&&(Lt.size=xt.size);break;default:Lt=typeof xt.is=="string"?Dt.createElement(Ct,{is:xt.is}):Dt.createElement(Ct)}}Lt[Ln]=ht,Lt[fn]=xt;e:for(Dt=ht.child;Dt!==null;){if(Dt.tag===5||Dt.tag===6)Lt.appendChild(Dt.stateNode);else if(Dt.tag!==4&&Dt.tag!==27&&Dt.child!==null){Dt.child.return=Dt,Dt=Dt.child;continue}if(Dt===ht)break e;for(;Dt.sibling===null;){if(Dt.return===null||Dt.return===ht)break e;Dt=Dt.return}Dt.sibling.return=Dt.return,Dt=Dt.sibling}ht.stateNode=Lt;e:switch(qn(Lt,Ct,xt),Ct){case"button":case"input":case"select":case"textarea":xt=!!xt.autoFocus;break e;case"img":xt=!0;break e;default:xt=!1}xt&&Ui(ht)}}return un(ht),o1(ht,ht.type,lt===null?null:lt.memoizedProps,ht.pendingProps,gt),null;case 6:if(lt&&ht.stateNode!=null)lt.memoizedProps!==xt&&Ui(ht);else{if(typeof xt!="string"&&ht.stateNode===null)throw Error(dt(166));if(lt=$a.current,Jr(ht)){if(lt=ht.stateNode,gt=ht.memoizedProps,xt=null,Ct=Dn,Ct!==null)switch(Ct.tag){case 27:case 5:xt=Ct.memoizedProps}lt[Ln]=ht,lt=!!(lt.nodeValue===gt||xt!==null&&xt.suppressHydrationWarning===!0||i0(lt.nodeValue,gt)),lt||ar(ht,!0)}else lt=Ss(lt).createTextNode(xt),lt[Ln]=ht,ht.stateNode=lt}return un(ht),null;case 31:if(gt=ht.memoizedState,lt===null||lt.memoizedState!==null){if(xt=Jr(ht),gt!==null){if(lt===null){if(!xt)throw Error(dt(318));if(lt=ht.memoizedState,lt=lt!==null?lt.dehydrated:null,!lt)throw Error(dt(557));lt[Ln]=ht}else $r(),(ht.flags&128)===0&&(ht.memoizedState=null),ht.flags|=4;un(ht),lt=!1}else gt=gl(),lt!==null&<.memoizedState!==null&&(lt.memoizedState.hydrationErrors=gt),lt=!0;if(!lt)return ht.flags&256?(ii(ht),ht):(ii(ht),null);if((ht.flags&128)!==0)throw Error(dt(558))}return un(ht),null;case 13:if(xt=ht.memoizedState,lt===null||lt.memoizedState!==null&<.memoizedState.dehydrated!==null){if(Ct=Jr(ht),xt!==null&&xt.dehydrated!==null){if(lt===null){if(!Ct)throw Error(dt(318));if(Ct=ht.memoizedState,Ct=Ct!==null?Ct.dehydrated:null,!Ct)throw Error(dt(317));Ct[Ln]=ht}else $r(),(ht.flags&128)===0&&(ht.memoizedState=null),ht.flags|=4;un(ht),Ct=!1}else Ct=gl(),lt!==null&<.memoizedState!==null&&(lt.memoizedState.hydrationErrors=Ct),Ct=!0;if(!Ct)return ht.flags&256?(ii(ht),ht):(ii(ht),null)}return ii(ht),(ht.flags&128)!==0?(ht.lanes=gt,ht):(gt=xt!==null,lt=lt!==null&<.memoizedState!==null,gt&&(xt=ht.child,Ct=null,xt.alternate!==null&&xt.alternate.memoizedState!==null&&xt.alternate.memoizedState.cachePool!==null&&(Ct=xt.alternate.memoizedState.cachePool.pool),Lt=null,xt.memoizedState!==null&&xt.memoizedState.cachePool!==null&&(Lt=xt.memoizedState.cachePool.pool),Lt!==Ct&&(xt.flags|=2048)),gt!==lt&>&&(ht.child.flags|=8192),hs(ht,ht.updateQueue),un(ht),null);case 4:return qa(),lt===null&&$1(ht.stateNode.containerInfo),un(ht),null;case 10:return ji(ht.type),un(ht),null;case 19:if(ta(bn),xt=ht.memoizedState,xt===null)return un(ht),null;if(Ct=(ht.flags&128)!==0,Lt=xt.rendering,Lt===null)if(Ct)cc(xt,!1);else{if(xn!==0||lt!==null&&(lt.flags&128)!==0)for(lt=ht.child;lt!==null;){if(Lt=Jc(lt),Lt!==null){for(ht.flags|=128,cc(xt,!1),lt=Lt.updateQueue,ht.updateQueue=lt,hs(ht,lt),ht.subtreeFlags=0,lt=gt,gt=ht.child;gt!==null;)Bd(gt,lt),gt=gt.sibling;return sa(bn,bn.current&1|2),Xa&&Fi(ht,xt.treeForkCount),ht.child}lt=lt.sibling}xt.tail!==null&&pn()>ms&&(ht.flags|=128,Ct=!0,cc(xt,!1),ht.lanes=4194304)}else{if(!Ct)if(lt=Jc(Lt),lt!==null){if(ht.flags|=128,Ct=!0,lt=lt.updateQueue,ht.updateQueue=lt,hs(ht,lt),cc(xt,!0),xt.tail===null&&xt.tailMode==="hidden"&&!Lt.alternate&&!Xa)return un(ht),null}else 2*pn()-xt.renderingStartTime>ms&>!==536870912&&(ht.flags|=128,Ct=!0,cc(xt,!1),ht.lanes=4194304);xt.isBackwards?(Lt.sibling=ht.child,ht.child=Lt):(lt=xt.last,lt!==null?lt.sibling=Lt:ht.child=Lt,xt.last=Lt)}return xt.tail!==null?(lt=xt.tail,xt.rendering=lt,xt.tail=lt.sibling,xt.renderingStartTime=pn(),lt.sibling=null,gt=bn.current,sa(bn,Ct?gt&1|2:gt&1),Xa&&Fi(ht,xt.treeForkCount),lt):(un(ht),null);case 22:case 23:return ii(ht),Nl(),xt=ht.memoizedState!==null,lt!==null?lt.memoizedState!==null!==xt&&(ht.flags|=8192):xt&&(ht.flags|=8192),xt?(gt&536870912)!==0&&(ht.flags&128)===0&&(un(ht),ht.subtreeFlags&6&&(ht.flags|=8192)):un(ht),gt=ht.updateQueue,gt!==null&&hs(ht,gt.retryQueue),gt=null,lt!==null&<.memoizedState!==null&<.memoizedState.cachePool!==null&&(gt=lt.memoizedState.cachePool.pool),xt=null,ht.memoizedState!==null&&ht.memoizedState.cachePool!==null&&(xt=ht.memoizedState.cachePool.pool),xt!==gt&&(ht.flags|=2048),lt!==null&&ta(Ar),null;case 24:return gt=null,lt!==null&&(gt=lt.memoizedState.cache),ht.memoizedState.cache!==gt&&(ht.flags|=2048),ji(Sn),un(ht),null;case 25:return null;case 30:return null}throw Error(dt(156,ht.tag))}function G2(lt,ht){switch(fl(ht),ht.tag){case 1:return lt=ht.flags,lt&65536?(ht.flags=lt&-65537|128,ht):null;case 3:return ji(Sn),qa(),lt=ht.flags,(lt&65536)!==0&&(lt&128)===0?(ht.flags=lt&-65537|128,ht):null;case 26:case 27:case 5:return rn(ht),null;case 31:if(ht.memoizedState!==null){if(ii(ht),ht.alternate===null)throw Error(dt(340));$r()}return lt=ht.flags,lt&65536?(ht.flags=lt&-65537|128,ht):null;case 13:if(ii(ht),lt=ht.memoizedState,lt!==null&<.dehydrated!==null){if(ht.alternate===null)throw Error(dt(340));$r()}return lt=ht.flags,lt&65536?(ht.flags=lt&-65537|128,ht):null;case 19:return ta(bn),null;case 4:return qa(),null;case 10:return ji(ht.type),null;case 22:case 23:return ii(ht),Nl(),lt!==null&&ta(Ar),lt=ht.flags,lt&65536?(ht.flags=lt&-65537|128,ht):null;case 24:return ji(Sn),null;case 25:return null;default:return null}}function lh(lt,ht){switch(fl(ht),ht.tag){case 3:ji(Sn),qa();break;case 26:case 27:case 5:rn(ht);break;case 4:qa();break;case 31:ht.memoizedState!==null&&ii(ht);break;case 13:ii(ht);break;case 19:ta(bn);break;case 10:ji(ht.type);break;case 22:case 23:ii(ht),Nl(),lt!==null&&ta(Ar);break;case 24:ji(Sn)}}function sc(lt,ht){try{var gt=ht.updateQueue,xt=gt!==null?gt.lastEffect:null;if(xt!==null){var Ct=xt.next;gt=Ct;do{if((gt.tag<)===lt){xt=void 0;var Lt=gt.create,Dt=gt.inst;xt=Lt(),Dt.destroy=xt}gt=gt.next}while(gt!==Ct)}}catch(zt){nn(ht,ht.return,zt)}}function lr(lt,ht,gt){try{var xt=ht.updateQueue,Ct=xt!==null?xt.lastEffect:null;if(Ct!==null){var Lt=Ct.next;xt=Lt;do{if((xt.tag<)===lt){var Dt=xt.inst,zt=Dt.destroy;if(zt!==void 0){Dt.destroy=void 0,Ct=ht;var Jt=gt,ha=zt;try{ha()}catch(va){nn(Ct,Jt,va)}}}xt=xt.next}while(xt!==Lt)}}catch(va){nn(ht,ht.return,va)}}function dh(lt){var ht=lt.updateQueue;if(ht!==null){var gt=lt.stateNode;try{Jd(ht,gt)}catch(xt){nn(lt,lt.return,xt)}}}function uh(lt,ht,gt){gt.props=Dr(lt.type,lt.memoizedProps),gt.state=lt.memoizedState;try{gt.componentWillUnmount()}catch(xt){nn(lt,ht,xt)}}function lc(lt,ht){try{var gt=lt.ref;if(gt!==null){switch(lt.tag){case 26:case 27:case 5:var xt=lt.stateNode;break;case 30:xt=lt.stateNode;break;default:xt=lt.stateNode}typeof gt=="function"?lt.refCleanup=gt(xt):gt.current=xt}}catch(Ct){nn(lt,ht,Ct)}}function Ni(lt,ht){var gt=lt.ref,xt=lt.refCleanup;if(gt!==null)if(typeof xt=="function")try{xt()}catch(Ct){nn(lt,ht,Ct)}finally{lt.refCleanup=null,lt=lt.alternate,lt!=null&&(lt.refCleanup=null)}else if(typeof gt=="function")try{gt(null)}catch(Ct){nn(lt,ht,Ct)}else gt.current=null}function hh(lt){var ht=lt.type,gt=lt.memoizedProps,xt=lt.stateNode;try{e:switch(ht){case"button":case"input":case"select":case"textarea":gt.autoFocus&&xt.focus();break e;case"img":gt.src?xt.src=gt.src:gt.srcSet&&(xt.srcset=gt.srcSet)}}catch(Ct){nn(lt,lt.return,Ct)}}function c1(lt,ht,gt){try{var xt=lt.stateNode;fp(xt,lt.type,gt,ht),xt[fn]=ht}catch(Ct){nn(lt,lt.return,Ct)}}function ph(lt){return lt.tag===5||lt.tag===3||lt.tag===26||lt.tag===27&&gr(lt.type)||lt.tag===4}function s1(lt){e:for(;;){for(;lt.sibling===null;){if(lt.return===null||ph(lt.return))return null;lt=lt.return}for(lt.sibling.return=lt.return,lt=lt.sibling;lt.tag!==5&<.tag!==6&<.tag!==18;){if(lt.tag===27&&gr(lt.type)||lt.flags&2||lt.child===null||lt.tag===4)continue e;lt.child.return=lt,lt=lt.child}if(!(lt.flags&2))return lt.stateNode}}function l1(lt,ht,gt){var xt=lt.tag;if(xt===5||xt===6)lt=lt.stateNode,ht?(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).insertBefore(lt,ht):(ht=gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt,ht.appendChild(lt),gt=gt._reactRootContainer,gt!=null||ht.onclick!==null||(ht.onclick=Ri));else if(xt!==4&&(xt===27&&gr(lt.type)&&(gt=lt.stateNode,ht=null),lt=lt.child,lt!==null))for(l1(lt,ht,gt),lt=lt.sibling;lt!==null;)l1(lt,ht,gt),lt=lt.sibling}function ps(lt,ht,gt){var xt=lt.tag;if(xt===5||xt===6)lt=lt.stateNode,ht?gt.insertBefore(lt,ht):gt.appendChild(lt);else if(xt!==4&&(xt===27&&gr(lt.type)&&(gt=lt.stateNode),lt=lt.child,lt!==null))for(ps(lt,ht,gt),lt=lt.sibling;lt!==null;)ps(lt,ht,gt),lt=lt.sibling}function fh(lt){var ht=lt.stateNode,gt=lt.memoizedProps;try{for(var xt=lt.type,Ct=ht.attributes;Ct.length;)ht.removeAttributeNode(Ct[0]);qn(ht,xt,gt),ht[Ln]=lt,ht[fn]=gt}catch(Lt){nn(lt,lt.return,Lt)}}var Vi=!1,In=!1,d1=!1,yh=typeof WeakSet=="function"?WeakSet:Set,Rn=null;function W2(lt,ht){if(lt=lt.containerInfo,A1=Rs,lt=Ld(lt),nl(lt)){if("selectionStart"in lt)var gt={start:lt.selectionStart,end:lt.selectionEnd};else e:{gt=(gt=lt.ownerDocument)&>.defaultView||window;var xt=gt.getSelection&>.getSelection();if(xt&&xt.rangeCount!==0){gt=xt.anchorNode;var Ct=xt.anchorOffset,Lt=xt.focusNode;xt=xt.focusOffset;try{gt.nodeType,Lt.nodeType}catch{gt=null;break e}var Dt=0,zt=-1,Jt=-1,ha=0,va=0,wa=lt,ya=null;t:for(;;){for(var ga;wa!==gt||Ct!==0&&wa.nodeType!==3||(zt=Dt+Ct),wa!==Lt||xt!==0&&wa.nodeType!==3||(Jt=Dt+xt),wa.nodeType===3&&(Dt+=wa.nodeValue.length),(ga=wa.firstChild)!==null;)ya=wa,wa=ga;for(;;){if(wa===lt)break t;if(ya===gt&&++ha===Ct&&(zt=Dt),ya===Lt&&++va===xt&&(Jt=Dt),(ga=wa.nextSibling)!==null)break;wa=ya,ya=wa.parentNode}wa=ga}gt=zt===-1||Jt===-1?null:{start:zt,end:Jt}}else gt=null}gt=gt||{start:0,end:0}}else gt=null;for(T1={focusedElem:lt,selectionRange:gt},Rs=!1,Rn=ht;Rn!==null;)if(ht=Rn,lt=ht.child,(ht.subtreeFlags&1028)!==0&<!==null)lt.return=ht,Rn=lt;else for(;Rn!==null;){switch(ht=Rn,Lt=ht.alternate,lt=ht.flags,ht.tag){case 0:if((lt&4)!==0&&(lt=ht.updateQueue,lt=lt!==null?lt.events:null,lt!==null))for(gt=0;gt title"))),qn(Lt,xt,gt),Lt[Ln]=lt,Ua(Lt),xt=Lt;break e;case"link":var Dt=v0("link","href",Ct).get(xt+(gt.href||""));if(Dt){for(var zt=0;ztsn&&(Dt=sn,sn=Da,Da=Dt);var ca=Md(zt,Da),ia=Md(zt,sn);if(ca&&ia&&(ga.rangeCount!==1||ga.anchorNode!==ca.node||ga.anchorOffset!==ca.offset||ga.focusNode!==ia.node||ga.focusOffset!==ia.offset)){var ua=wa.createRange();ua.setStart(ca.node,ca.offset),ga.removeAllRanges(),Da>sn?(ga.addRange(ua),ga.extend(ia.node,ia.offset)):(ua.setEnd(ia.node,ia.offset),ga.addRange(ua))}}}}for(wa=[],ga=zt;ga=ga.parentNode;)ga.nodeType===1&&wa.push({element:ga,left:ga.scrollLeft,top:ga.scrollTop});for(typeof zt.focus=="function"&&zt.focus(),zt=0;ztgt?32:gt,Ut.T=null,gt=m1,m1=null;var Lt=pr,Dt=Zi;if(Tn=0,fo=pr=null,Zi=0,(Qa&6)!==0)throw Error(dt(331));var zt=Qa;if(Qa|=4,Lh(Lt.current),Ch(Lt,Lt.current,Dt,gt),Qa=zt,yc(0,!1),da&&typeof da.onPostCommitFiberRoot=="function")try{da.onPostCommitFiberRoot(Xt,Lt)}catch{}return!0}finally{ea.p=Ct,Ut.T=xt,Uh(lt,ht)}}function Gh(lt,ht,gt){ht=fi(gt,ht),ht=Zl(lt.stateNode,ht,2),lt=or(lt,ht,2),lt!==null&&(Qi(lt,2),Ii(lt))}function nn(lt,ht,gt){if(lt.tag===3)Gh(lt,lt,gt);else for(;ht!==null;){if(ht.tag===3){Gh(ht,lt,gt);break}else if(ht.tag===1){var xt=ht.stateNode;if(typeof ht.type.getDerivedStateFromError=="function"||typeof xt.componentDidCatch=="function"&&(hr===null||!hr.has(xt))){lt=fi(gt,lt),gt=Wu(2),xt=or(ht,gt,2),xt!==null&&(Yu(gt,xt,ht,lt),Qi(xt,2),Ii(xt));break}}ht=ht.return}}function v1(lt,ht,gt){var xt=lt.pingCache;if(xt===null){xt=lt.pingCache=new Z2;var Ct=new Set;xt.set(ht,Ct)}else Ct=xt.get(ht),Ct===void 0&&(Ct=new Set,xt.set(ht,Ct));Ct.has(gt)||(p1=!0,Ct.add(gt),lt=tp.bind(null,lt,ht,gt),ht.then(lt,lt))}function tp(lt,ht,gt){var xt=lt.pingCache;xt!==null&&xt.delete(ht),lt.pingedLanes|=lt.suspendedLanes>,lt.warmLanes&=~gt,ln===lt&&(Wa>)===gt&&(xn===4||xn===3&&(Wa&62914560)===Wa&&300>pn()-gs?(Qa&2)===0&&yo(lt,0):f1|=gt,po===Wa&&(po=0)),Ii(lt)}function Wh(lt,ht){ht===0&&(ht=Ai()),lt=Lr(lt,ht),lt!==null&&(Qi(lt,ht),Ii(lt))}function ap(lt){var ht=lt.memoizedState,gt=0;ht!==null&&(gt=ht.retryLane),Wh(lt,gt)}function np(lt,ht){var gt=0;switch(lt.tag){case 31:case 13:var xt=lt.stateNode,Ct=lt.memoizedState;Ct!==null&&(gt=Ct.retryLane);break;case 19:xt=lt.stateNode;break;case 22:xt=lt.stateNode._retryCache;break;default:throw Error(dt(314))}xt!==null&&xt.delete(ht),Wh(lt,gt)}function ip(lt,ht){return jn(lt,ht)}var Cs=null,mo=null,b1=!1,Ms=!1,C1=!1,yr=0;function Ii(lt){lt!==mo&<.next===null&&(mo===null?Cs=mo=lt:mo=mo.next=lt),Ms=!0,b1||(b1=!0,op())}function yc(lt,ht){if(!C1&&Ms){C1=!0;do for(var gt=!1,xt=Cs;xt!==null;){if(lt!==0){var Ct=xt.pendingLanes;if(Ct===0)var Lt=0;else{var Dt=xt.suspendedLanes,zt=xt.pingedLanes;Lt=(1<<31-pa(42|lt)+1)-1,Lt&=Ct&~(Dt&~zt),Lt=Lt&201326741?Lt&201326741|1:Lt?Lt|2:0}Lt!==0&&(gt=!0,Kh(xt,Lt))}else Lt=Wa,Lt=jr(xt,xt===ln?Lt:0,xt.cancelPendingCommit!==null||xt.timeoutHandle!==-1),(Lt&3)===0||br(xt,Lt)||(gt=!0,Kh(xt,Lt));xt=xt.next}while(gt);C1=!1}}function rp(){Yh()}function Yh(){Ms=b1=!1;var lt=0;yr!==0&&gp()&&(lt=yr);for(var ht=pn(),gt=null,xt=Cs;xt!==null;){var Ct=xt.next,Lt=Xh(xt,ht);Lt===0?(xt.next=null,gt===null?Cs=Ct:gt.next=Ct,Ct===null&&(mo=gt)):(gt=xt,(lt!==0||(Lt&3)!==0)&&(Ms=!0)),xt=Ct}Tn!==0&&Tn!==5||yc(lt),yr!==0&&(yr=0)}function Xh(lt,ht){for(var gt=lt.suspendedLanes,xt=lt.pingedLanes,Ct=lt.expirationTimes,Lt=lt.pendingLanes&-62914561;0zt)break;var va=Jt.transferSize,wa=Jt.initiatorType;va&&r0(wa)&&(Jt=Jt.responseEnd,Dt+=va*(Jt"u"?null:document;function m0(lt,ht,gt){var xt=ko;if(xt&&typeof ht=="string"&&ht){var Ct=ui(ht);Ct='link[rel="'+lt+'"][href="'+Ct+'"]',typeof gt=="string"&&(Ct+='[crossorigin="'+gt+'"]'),g0.has(Ct)||(g0.add(Ct),lt={rel:lt,crossOrigin:gt,href:ht},xt.querySelector(Ct)===null&&(ht=xt.createElement("link"),qn(ht,"link",lt),Ua(ht),xt.head.appendChild(ht)))}}function wp(lt){Ki.D(lt),m0("dns-prefetch",lt,null)}function Lp(lt,ht){Ki.C(lt,ht),m0("preconnect",lt,ht)}function Sp(lt,ht,gt){Ki.L(lt,ht,gt);var xt=ko;if(xt&<&&ht){var Ct='link[rel="preload"][as="'+ui(ht)+'"]';ht==="image"&>&>.imageSrcSet?(Ct+='[imagesrcset="'+ui(gt.imageSrcSet)+'"]',typeof gt.imageSizes=="string"&&(Ct+='[imagesizes="'+ui(gt.imageSizes)+'"]')):Ct+='[href="'+ui(lt)+'"]';var Lt=Ct;switch(ht){case"style":Lt=_o(lt);break;case"script":Lt=xo(lt)}xi.has(Lt)||(lt=vt({rel:"preload",href:ht==="image"&>&>.imageSrcSet?void 0:lt,as:ht},gt),xi.set(Lt,lt),xt.querySelector(Ct)!==null||ht==="style"&&xt.querySelector(_c(Lt))||ht==="script"&&xt.querySelector(xc(Lt))||(ht=xt.createElement("link"),qn(ht,"link",lt),Ua(ht),xt.head.appendChild(ht)))}}function $p(lt,ht){Ki.m(lt,ht);var gt=ko;if(gt&<){var xt=ht&&typeof ht.as=="string"?ht.as:"script",Ct='link[rel="modulepreload"][as="'+ui(xt)+'"][href="'+ui(lt)+'"]',Lt=Ct;switch(xt){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":Lt=xo(lt)}if(!xi.has(Lt)&&(lt=vt({rel:"modulepreload",href:lt},ht),xi.set(Lt,lt),gt.querySelector(Ct)===null)){switch(xt){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(gt.querySelector(xc(Lt)))return}xt=gt.createElement("link"),qn(xt,"link",lt),Ua(xt),gt.head.appendChild(xt)}}}function Np(lt,ht,gt){Ki.S(lt,ht,gt);var xt=ko;if(xt&<){var Ct=mn(xt).hoistableStyles,Lt=_o(lt);ht=ht||"default";var Dt=Ct.get(Lt);if(!Dt){var zt={loading:0,preload:null};if(Dt=xt.querySelector(_c(Lt)))zt.loading=5;else{lt=vt({rel:"stylesheet",href:lt,"data-precedence":ht},gt),(gt=xi.get(Lt))&&q1(lt,gt);var Jt=Dt=xt.createElement("link");Ua(Jt),qn(Jt,"link",lt),Jt._p=new Promise(function(ha,va){Jt.onload=ha,Jt.onerror=va}),Jt.addEventListener("load",function(){zt.loading|=1}),Jt.addEventListener("error",function(){zt.loading|=2}),zt.loading|=4,Ns(Dt,ht,xt)}Dt={type:"stylesheet",instance:Dt,count:1,state:zt},Ct.set(Lt,Dt)}}}function Ip(lt,ht){Ki.X(lt,ht);var gt=ko;if(gt&<){var xt=mn(gt).hoistableScripts,Ct=xo(lt),Lt=xt.get(Ct);Lt||(Lt=gt.querySelector(xc(Ct)),Lt||(lt=vt({src:lt,async:!0},ht),(ht=xi.get(Ct))&&j1(lt,ht),Lt=gt.createElement("script"),Ua(Lt),qn(Lt,"link",lt),gt.head.appendChild(Lt)),Lt={type:"script",instance:Lt,count:1,state:null},xt.set(Ct,Lt))}}function Ap(lt,ht){Ki.M(lt,ht);var gt=ko;if(gt&<){var xt=mn(gt).hoistableScripts,Ct=xo(lt),Lt=xt.get(Ct);Lt||(Lt=gt.querySelector(xc(Ct)),Lt||(lt=vt({src:lt,async:!0,type:"module"},ht),(ht=xi.get(Ct))&&j1(lt,ht),Lt=gt.createElement("script"),Ua(Lt),qn(Lt,"link",lt),gt.head.appendChild(Lt)),Lt={type:"script",instance:Lt,count:1,state:null},xt.set(Ct,Lt))}}function k0(lt,ht,gt,xt){var Ct=(Ct=$a.current)?$s(Ct):null;if(!Ct)throw Error(dt(446));switch(lt){case"meta":case"title":return null;case"style":return typeof gt.precedence=="string"&&typeof gt.href=="string"?(ht=_o(gt.href),gt=mn(Ct).hoistableStyles,xt=gt.get(ht),xt||(xt={type:"style",instance:null,count:0,state:null},gt.set(ht,xt)),xt):{type:"void",instance:null,count:0,state:null};case"link":if(gt.rel==="stylesheet"&&typeof gt.href=="string"&&typeof gt.precedence=="string"){lt=_o(gt.href);var Lt=mn(Ct).hoistableStyles,Dt=Lt.get(lt);if(Dt||(Ct=Ct.ownerDocument||Ct,Dt={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},Lt.set(lt,Dt),(Lt=Ct.querySelector(_c(lt)))&&!Lt._p&&(Dt.instance=Lt,Dt.state.loading=5),xi.has(lt)||(gt={rel:"preload",as:"style",href:gt.href,crossOrigin:gt.crossOrigin,integrity:gt.integrity,media:gt.media,hrefLang:gt.hrefLang,referrerPolicy:gt.referrerPolicy},xi.set(lt,gt),Lt||Tp(Ct,lt,gt,Dt.state))),ht&&xt===null)throw Error(dt(528,""));return Dt}if(ht&&xt!==null)throw Error(dt(529,""));return null;case"script":return ht=gt.async,gt=gt.src,typeof gt=="string"&&ht&&typeof ht!="function"&&typeof ht!="symbol"?(ht=xo(gt),gt=mn(Ct).hoistableScripts,xt=gt.get(ht),xt||(xt={type:"script",instance:null,count:0,state:null},gt.set(ht,xt)),xt):{type:"void",instance:null,count:0,state:null};default:throw Error(dt(444,lt))}}function _o(lt){return'href="'+ui(lt)+'"'}function _c(lt){return'link[rel="stylesheet"]['+lt+"]"}function _0(lt){return vt({},lt,{"data-precedence":lt.precedence,precedence:null})}function Tp(lt,ht,gt,xt){lt.querySelector('link[rel="preload"][as="style"]['+ht+"]")?xt.loading=1:(ht=lt.createElement("link"),xt.preload=ht,ht.addEventListener("load",function(){return xt.loading|=1}),ht.addEventListener("error",function(){return xt.loading|=2}),qn(ht,"link",gt),Ua(ht),lt.head.appendChild(ht))}function xo(lt){return'[src="'+ui(lt)+'"]'}function xc(lt){return"script[async]"+lt}function x0(lt,ht,gt){if(ht.count++,ht.instance===null)switch(ht.type){case"style":var xt=lt.querySelector('style[data-href~="'+ui(gt.href)+'"]');if(xt)return ht.instance=xt,Ua(xt),xt;var Ct=vt({},gt,{"data-href":gt.href,"data-precedence":gt.precedence,href:null,precedence:null});return xt=(lt.ownerDocument||lt).createElement("style"),Ua(xt),qn(xt,"style",Ct),Ns(xt,gt.precedence,lt),ht.instance=xt;case"stylesheet":Ct=_o(gt.href);var Lt=lt.querySelector(_c(Ct));if(Lt)return ht.state.loading|=4,ht.instance=Lt,Ua(Lt),Lt;xt=_0(gt),(Ct=xi.get(Ct))&&q1(xt,Ct),Lt=(lt.ownerDocument||lt).createElement("link"),Ua(Lt);var Dt=Lt;return Dt._p=new Promise(function(zt,Jt){Dt.onload=zt,Dt.onerror=Jt}),qn(Lt,"link",xt),ht.state.loading|=4,Ns(Lt,gt.precedence,lt),ht.instance=Lt;case"script":return Lt=xo(gt.src),(Ct=lt.querySelector(xc(Lt)))?(ht.instance=Ct,Ua(Ct),Ct):(xt=gt,(Ct=xi.get(Lt))&&(xt=vt({},gt),j1(xt,Ct)),lt=lt.ownerDocument||lt,Ct=lt.createElement("script"),Ua(Ct),qn(Ct,"link",xt),lt.head.appendChild(Ct),ht.instance=Ct);case"void":return null;default:throw Error(dt(443,ht.type))}else ht.type==="stylesheet"&&(ht.state.loading&4)===0&&(xt=ht.instance,ht.state.loading|=4,Ns(xt,gt.precedence,lt));return ht.instance}function Ns(lt,ht,gt){for(var xt=gt.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),Ct=xt.length?xt[xt.length-1]:null,Lt=Ct,Dt=0;Dt title"):null)}function Ep(lt,ht,gt){if(gt===1||ht.itemProp!=null)return!1;switch(lt){case"meta":case"title":return!0;case"style":if(typeof ht.precedence!="string"||typeof ht.href!="string"||ht.href==="")break;return!0;case"link":if(typeof ht.rel!="string"||typeof ht.href!="string"||ht.href===""||ht.onLoad||ht.onError)break;switch(ht.rel){case"stylesheet":return lt=ht.disabled,typeof ht.precedence=="string"&<==null;default:return!0}case"script":if(ht.async&&typeof ht.async!="function"&&typeof ht.async!="symbol"&&!ht.onLoad&&!ht.onError&&ht.src&&typeof ht.src=="string")return!0}return!1}function C0(lt){return!(lt.type==="stylesheet"&&(lt.state.loading&3)===0)}function Rp(lt,ht,gt,xt){if(gt.type==="stylesheet"&&(typeof xt.media!="string"||matchMedia(xt.media).matches!==!1)&&(gt.state.loading&4)===0){if(gt.instance===null){var Ct=_o(xt.href),Lt=ht.querySelector(_c(Ct));if(Lt){ht=Lt._p,ht!==null&&typeof ht=="object"&&typeof ht.then=="function"&&(lt.count++,lt=As.bind(lt),ht.then(lt,lt)),gt.state.loading|=4,gt.instance=Lt,Ua(Lt);return}Lt=ht.ownerDocument||ht,xt=_0(xt),(Ct=xi.get(Ct))&&q1(xt,Ct),Lt=Lt.createElement("link"),Ua(Lt);var Dt=Lt;Dt._p=new Promise(function(zt,Jt){Dt.onload=zt,Dt.onerror=Jt}),qn(Lt,"link",xt),gt.instance=Lt}lt.stylesheets===null&&(lt.stylesheets=new Map),lt.stylesheets.set(gt,ht),(ht=gt.state.preload)&&(gt.state.loading&3)===0&&(lt.count++,gt=As.bind(lt),ht.addEventListener("load",gt),ht.addEventListener("error",gt))}}var O1=0;function Bp(lt,ht){return lt.stylesheets&<.count===0&&Es(lt,lt.stylesheets),0O1?50:800)+ht);return lt.unsuspend=gt,function(){lt.unsuspend=null,clearTimeout(xt),clearTimeout(Ct)}}:null}function As(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Es(this,this.stylesheets);else if(this.unsuspend){var lt=this.unsuspend;this.unsuspend=null,lt()}}}var Ts=null;function Es(lt,ht){lt.stylesheets=null,lt.unsuspend!==null&&(lt.count++,Ts=new Map,ht.forEach(Dp,lt),Ts=null,As.call(lt))}function Dp(lt,ht){if(!(ht.state.loading&4)){var gt=Ts.get(lt);if(gt)var xt=gt.get(null);else{gt=new Map,Ts.set(lt,gt);for(var Ct=lt.querySelectorAll("link[data-precedence],style[data-precedence]"),Lt=0;Lt"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rt)}catch(it){console.error(it)}}return rt(),client.exports=requireReactDomClient_production(),client.exports}var clientExports=requireClient();var PopStateEventType="popstate";function createBrowserHistory(rt={}){function it(dt,ut){let{pathname:pt,search:yt,hash:ft}=dt.location;return createLocation("",{pathname:pt,search:yt,hash:ft},ut.state&&ut.state.usr||null,ut.state&&ut.state.key||"default")}function ct(dt,ut){return typeof ut=="string"?ut:createPath(ut)}return getUrlBasedHistory(it,ct,null,rt)}function invariant(rt,it){if(rt===!1||rt===null||typeof rt>"u")throw new Error(it)}function warning(rt,it){if(!rt){typeof console<"u"&&console.warn(it);try{throw new Error(it)}catch{}}}function createKey$1(){return Math.random().toString(36).substring(2,10)}function getHistoryState(rt,it){return{usr:rt.state,key:rt.key,idx:it}}function createLocation(rt,it,ct=null,dt){return{pathname:typeof rt=="string"?rt:rt.pathname,search:"",hash:"",...typeof it=="string"?parsePath(it):it,state:ct,key:it&&it.key||dt||createKey$1()}}function createPath({pathname:rt="/",search:it="",hash:ct=""}){return it&&it!=="?"&&(rt+=it.charAt(0)==="?"?it:"?"+it),ct&&ct!=="#"&&(rt+=ct.charAt(0)==="#"?ct:"#"+ct),rt}function parsePath(rt){let it={};if(rt){let ct=rt.indexOf("#");ct>=0&&(it.hash=rt.substring(ct),rt=rt.substring(0,ct));let dt=rt.indexOf("?");dt>=0&&(it.search=rt.substring(dt),rt=rt.substring(0,dt)),rt&&(it.pathname=rt)}return it}function getUrlBasedHistory(rt,it,ct,dt={}){let{window:ut=document.defaultView,v5Compat:pt=!1}=dt,yt=ut.history,ft="POP",mt=null,kt=_t();kt==null&&(kt=0,yt.replaceState({...yt.state,idx:kt},""));function _t(){return(yt.state||{idx:null}).idx}function vt(){ft="POP";let It=_t(),Nt=It==null?null:It-kt;kt=It,mt&&mt({action:ft,location:St.location,delta:Nt})}function bt(It,Nt){ft="PUSH";let $t=createLocation(St.location,It,Nt);kt=_t()+1;let Et=getHistoryState($t,kt),Ft=St.createHref($t);try{yt.pushState(Et,"",Ft)}catch(qt){if(qt instanceof DOMException&&qt.name==="DataCloneError")throw qt;ut.location.assign(Ft)}pt&&mt&&mt({action:ft,location:St.location,delta:1})}function Mt(It,Nt){ft="REPLACE";let $t=createLocation(St.location,It,Nt);kt=_t();let Et=getHistoryState($t,kt),Ft=St.createHref($t);yt.replaceState(Et,"",Ft),pt&&mt&&mt({action:ft,location:St.location,delta:0})}function wt(It){return createBrowserURLImpl(It)}let St={get action(){return ft},get location(){return rt(ut,yt)},listen(It){if(mt)throw new Error("A history only accepts one active listener");return ut.addEventListener(PopStateEventType,vt),mt=It,()=>{ut.removeEventListener(PopStateEventType,vt),mt=null}},createHref(It){return it(ut,It)},createURL:wt,encodeLocation(It){let Nt=wt(It);return{pathname:Nt.pathname,search:Nt.search,hash:Nt.hash}},push:bt,replace:Mt,go(It){return yt.go(It)}};return St}function createBrowserURLImpl(rt,it=!1){let ct="http://localhost";typeof window<"u"&&(ct=window.location.origin!=="null"?window.location.origin:window.location.href),invariant(ct,"No window.location.(origin|href) available to create URL");let dt=typeof rt=="string"?rt:createPath(rt);return dt=dt.replace(/ $/,"%20"),!it&&dt.startsWith("//")&&(dt=ct+dt),new URL(dt,ct)}function matchRoutes(rt,it,ct="/"){return matchRoutesImpl(rt,it,ct,!1)}function matchRoutesImpl(rt,it,ct,dt){let ut=typeof it=="string"?parsePath(it):it,pt=stripBasename(ut.pathname||"/",ct);if(pt==null)return null;let yt=flattenRoutes(rt);rankRouteBranches(yt);let ft=null;for(let mt=0;ft==null&&mt{let _t={relativePath:kt===void 0?yt.path||"":kt,caseSensitive:yt.caseSensitive===!0,childrenIndex:ft,route:yt};if(_t.relativePath.startsWith("/")){if(!_t.relativePath.startsWith(dt)&&mt)return;invariant(_t.relativePath.startsWith(dt),`Absolute route path "${_t.relativePath}" nested under path "${dt}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),_t.relativePath=_t.relativePath.slice(dt.length)}let vt=joinPaths([dt,_t.relativePath]),bt=ct.concat(_t);yt.children&&yt.children.length>0&&(invariant(yt.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${vt}".`),flattenRoutes(yt.children,it,bt,vt,mt)),!(yt.path==null&&!yt.index)&&it.push({path:vt,score:computeScore$2(vt,yt.index),routesMeta:bt})};return rt.forEach((yt,ft)=>{if(yt.path===""||!yt.path?.includes("?"))pt(yt,ft);else for(let mt of explodeOptionalSegments(yt.path))pt(yt,ft,!0,mt)}),it}function explodeOptionalSegments(rt){let it=rt.split("/");if(it.length===0)return[];let[ct,...dt]=it,ut=ct.endsWith("?"),pt=ct.replace(/\?$/,"");if(dt.length===0)return ut?[pt,""]:[pt];let yt=explodeOptionalSegments(dt.join("/")),ft=[];return ft.push(...yt.map(mt=>mt===""?pt:[pt,mt].join("/"))),ut&&ft.push(...yt),ft.map(mt=>rt.startsWith("/")&&mt===""?"/":mt)}function rankRouteBranches(rt){rt.sort((it,ct)=>it.score!==ct.score?ct.score-it.score:compareIndexes(it.routesMeta.map(dt=>dt.childrenIndex),ct.routesMeta.map(dt=>dt.childrenIndex)))}var paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=rt=>rt==="*";function computeScore$2(rt,it){let ct=rt.split("/"),dt=ct.length;return ct.some(isSplat)&&(dt+=splatPenalty),it&&(dt+=indexRouteValue),ct.filter(ut=>!isSplat(ut)).reduce((ut,pt)=>ut+(paramRe.test(pt)?dynamicSegmentValue:pt===""?emptySegmentValue:staticSegmentValue),dt)}function compareIndexes(rt,it){return rt.length===it.length&&rt.slice(0,-1).every((dt,ut)=>dt===it[ut])?rt[rt.length-1]-it[it.length-1]:0}function matchRouteBranch(rt,it,ct=!1){let{routesMeta:dt}=rt,ut={},pt="/",yt=[];for(let ft=0;ft{if(_t==="*"){let wt=ft[bt]||"";yt=pt.slice(0,pt.length-wt.length).replace(/(.)\/+$/,"$1")}const Mt=ft[bt];return vt&&!Mt?kt[_t]=void 0:kt[_t]=(Mt||"").replace(/%2F/g,"/"),kt},{}),pathname:pt,pathnameBase:yt,pattern:rt}}function compilePath(rt,it=!1,ct=!0){warning(rt==="*"||!rt.endsWith("*")||rt.endsWith("/*"),`Route path "${rt}" will be treated as if it were "${rt.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${rt.replace(/\*$/,"/*")}".`);let dt=[],ut="^"+rt.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(yt,ft,mt)=>(dt.push({paramName:ft,isOptional:mt!=null}),mt?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return rt.endsWith("*")?(dt.push({paramName:"*"}),ut+=rt==="*"||rt==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):ct?ut+="\\/*$":rt!==""&&rt!=="/"&&(ut+="(?:(?=\\/|$))"),[new RegExp(ut,it?void 0:"i"),dt]}function decodePath(rt){try{return rt.split("/").map(it=>decodeURIComponent(it).replace(/\//g,"%2F")).join("/")}catch(it){return warning(!1,`The URL path "${rt}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${it}).`),rt}}function stripBasename(rt,it){if(it==="/")return rt;if(!rt.toLowerCase().startsWith(it.toLowerCase()))return null;let ct=it.endsWith("/")?it.length-1:it.length,dt=rt.charAt(ct);return dt&&dt!=="/"?null:rt.slice(ct)||"/"}var ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,isAbsoluteUrl=rt=>ABSOLUTE_URL_REGEX.test(rt);function resolvePath(rt,it="/"){let{pathname:ct,search:dt="",hash:ut=""}=typeof rt=="string"?parsePath(rt):rt,pt;if(ct)if(isAbsoluteUrl(ct))pt=ct;else{if(ct.includes("//")){let yt=ct;ct=ct.replace(/\/\/+/g,"/"),warning(!1,`Pathnames cannot have embedded double slashes - normalizing ${yt} -> ${ct}`)}ct.startsWith("/")?pt=resolvePathname(ct.substring(1),"/"):pt=resolvePathname(ct,it)}else pt=it;return{pathname:pt,search:normalizeSearch(dt),hash:normalizeHash(ut)}}function resolvePathname(rt,it){let ct=it.replace(/\/+$/,"").split("/");return rt.split("/").forEach(ut=>{ut===".."?ct.length>1&&ct.pop():ut!=="."&&ct.push(ut)}),ct.length>1?ct.join("/"):"/"}function getInvalidPathError(rt,it,ct,dt){return`Cannot include a '${rt}' character in a manually specified \`to.${it}\` field [${JSON.stringify(dt)}]. Please separate it out to the \`to.${ct}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function getPathContributingMatches(rt){return rt.filter((it,ct)=>ct===0||it.route.path&&it.route.path.length>0)}function getResolveToMatches(rt){let it=getPathContributingMatches(rt);return it.map((ct,dt)=>dt===it.length-1?ct.pathname:ct.pathnameBase)}function resolveTo(rt,it,ct,dt=!1){let ut;typeof rt=="string"?ut=parsePath(rt):(ut={...rt},invariant(!ut.pathname||!ut.pathname.includes("?"),getInvalidPathError("?","pathname","search",ut)),invariant(!ut.pathname||!ut.pathname.includes("#"),getInvalidPathError("#","pathname","hash",ut)),invariant(!ut.search||!ut.search.includes("#"),getInvalidPathError("#","search","hash",ut)));let pt=rt===""||ut.pathname==="",yt=pt?"/":ut.pathname,ft;if(yt==null)ft=ct;else{let vt=it.length-1;if(!dt&&yt.startsWith("..")){let bt=yt.split("/");for(;bt[0]==="..";)bt.shift(),vt-=1;ut.pathname=bt.join("/")}ft=vt>=0?it[vt]:"/"}let mt=resolvePath(ut,ft),kt=yt&&yt!=="/"&&yt.endsWith("/"),_t=(pt||yt===".")&&ct.endsWith("/");return!mt.pathname.endsWith("/")&&(kt||_t)&&(mt.pathname+="/"),mt}var joinPaths=rt=>rt.join("/").replace(/\/\/+/g,"/"),normalizePathname=rt=>rt.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=rt=>!rt||rt==="?"?"":rt.startsWith("?")?rt:"?"+rt,normalizeHash=rt=>!rt||rt==="#"?"":rt.startsWith("#")?rt:"#"+rt;function isRouteErrorResponse(rt){return rt!=null&&typeof rt.status=="number"&&typeof rt.statusText=="string"&&typeof rt.internal=="boolean"&&"data"in rt}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var validMutationMethodsArr=["POST","PUT","PATCH","DELETE"];new Set(validMutationMethodsArr);var validRequestMethodsArr=["GET",...validMutationMethodsArr];new Set(validRequestMethodsArr);var DataRouterContext=reactExports.createContext(null);DataRouterContext.displayName="DataRouter";var DataRouterStateContext=reactExports.createContext(null);DataRouterStateContext.displayName="DataRouterState";reactExports.createContext(!1);var ViewTransitionContext=reactExports.createContext({isTransitioning:!1});ViewTransitionContext.displayName="ViewTransition";var FetchersContext=reactExports.createContext(new Map);FetchersContext.displayName="Fetchers";var AwaitContext=reactExports.createContext(null);AwaitContext.displayName="Await";var NavigationContext=reactExports.createContext(null);NavigationContext.displayName="Navigation";var LocationContext=reactExports.createContext(null);LocationContext.displayName="Location";var RouteContext=reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});RouteContext.displayName="Route";var RouteErrorContext=reactExports.createContext(null);RouteErrorContext.displayName="RouteError";function useHref(rt,{relative:it}={}){invariant(useInRouterContext(),"useHref() may be used only in the context of a component.");let{basename:ct,navigator:dt}=reactExports.useContext(NavigationContext),{hash:ut,pathname:pt,search:yt}=useResolvedPath(rt,{relative:it}),ft=pt;return ct!=="/"&&(ft=pt==="/"?ct:joinPaths([ct,pt])),dt.createHref({pathname:ft,search:yt,hash:ut})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return invariant(useInRouterContext(),"useLocation() may be used only in the context of a component."),reactExports.useContext(LocationContext).location}var navigateEffectWarning="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function useIsomorphicLayoutEffect(rt){reactExports.useContext(NavigationContext).static||reactExports.useLayoutEffect(rt)}function useNavigate(){let{isDataRoute:rt}=reactExports.useContext(RouteContext);return rt?useNavigateStable():useNavigateUnstable()}function useNavigateUnstable(){invariant(useInRouterContext(),"useNavigate() may be used only in the context of a component.");let rt=reactExports.useContext(DataRouterContext),{basename:it,navigator:ct}=reactExports.useContext(NavigationContext),{matches:dt}=reactExports.useContext(RouteContext),{pathname:ut}=useLocation(),pt=JSON.stringify(getResolveToMatches(dt)),yt=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{yt.current=!0}),reactExports.useCallback((mt,kt={})=>{if(warning(yt.current,navigateEffectWarning),!yt.current)return;if(typeof mt=="number"){ct.go(mt);return}let _t=resolveTo(mt,JSON.parse(pt),ut,kt.relative==="path");rt==null&&it!=="/"&&(_t.pathname=_t.pathname==="/"?it:joinPaths([it,_t.pathname])),(kt.replace?ct.replace:ct.push)(_t,kt.state,kt)},[it,ct,pt,ut,rt])}var OutletContext=reactExports.createContext(null);function useOutlet(rt){let it=reactExports.useContext(RouteContext).outlet;return reactExports.useMemo(()=>it&&reactExports.createElement(OutletContext.Provider,{value:rt},it),[it,rt])}function useParams(){let{matches:rt}=reactExports.useContext(RouteContext),it=rt[rt.length-1];return it?it.params:{}}function useResolvedPath(rt,{relative:it}={}){let{matches:ct}=reactExports.useContext(RouteContext),{pathname:dt}=useLocation(),ut=JSON.stringify(getResolveToMatches(ct));return reactExports.useMemo(()=>resolveTo(rt,JSON.parse(ut),dt,it==="path"),[rt,ut,dt,it])}function useRoutes(rt,it){return useRoutesImpl(rt,it)}function useRoutesImpl(rt,it,ct,dt,ut){invariant(useInRouterContext(),"useRoutes() may be used only in the context of a component.");let{navigator:pt}=reactExports.useContext(NavigationContext),{matches:yt}=reactExports.useContext(RouteContext),ft=yt[yt.length-1],mt=ft?ft.params:{},kt=ft?ft.pathname:"/",_t=ft?ft.pathnameBase:"/",vt=ft&&ft.route;{let $t=vt&&vt.path||"";warningOnce(kt,!vt||$t.endsWith("*")||$t.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${kt}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. -Please change the parent to .`)}let Ct=useLocation(),Mt;if(it){let $t=typeof it=="string"?parsePath(it):it;invariant(xt==="/"||$t.pathname?.startsWith(xt),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${xt}" but pathname "${$t.pathname}" was given in the \`location\` prop.`),Mt=$t}else Mt=Ct;let Lt=Mt.pathname||"/",St=Lt;if(xt!=="/"){let $t=xt.replace(/^\//,"").split("/");St="/"+Lt.replace(/^\//,"").split("/").slice($t.length).join("/")}let It=matchRoutes(rt,{pathname:St});warning(vt||It!=null,`No routes matched location "${Mt.pathname}${Mt.search}${Mt.hash}" `),warning(It==null||It[It.length-1].route.element!==void 0||It[It.length-1].route.Component!==void 0||It[It.length-1].route.lazy!==void 0,`Matched leaf route at location "${Mt.pathname}${Mt.search}${Mt.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let Nt=_renderMatches(It&&It.map($t=>Object.assign({},$t,{params:Object.assign({},mt,$t.params),pathname:joinPaths([xt,pt.encodeLocation?pt.encodeLocation($t.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:$t.pathname]),pathnameBase:$t.pathnameBase==="/"?xt:joinPaths([xt,pt.encodeLocation?pt.encodeLocation($t.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:$t.pathnameBase])})),yt,ct,dt,ut);return it&&Nt?reactExports.createElement(LocationContext.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...Mt},navigationType:"POP"}},Nt):Nt}function DefaultErrorComponent(){let rt=useRouteError(),it=isRouteErrorResponse(rt)?`${rt.status} ${rt.statusText}`:rt instanceof Error?rt.message:JSON.stringify(rt),ct=rt instanceof Error?rt.stack:null,dt="rgba(200,200,200, 0.5)",ut={padding:"0.5rem",backgroundColor:dt},pt={padding:"2px 4px",backgroundColor:dt},yt=null;return console.error("Error handled by React Router default ErrorBoundary:",rt),yt=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("p",null,"💿 Hey developer 👋"),reactExports.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",reactExports.createElement("code",{style:pt},"ErrorBoundary")," or"," ",reactExports.createElement("code",{style:pt},"errorElement")," prop on your route.")),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},it),ct?reactExports.createElement("pre",{style:ut},ct):null,yt)}var defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null),RenderErrorBoundary=class extends reactExports.Component{constructor(rt){super(rt),this.state={location:rt.location,revalidation:rt.revalidation,error:rt.error}}static getDerivedStateFromError(rt){return{error:rt}}static getDerivedStateFromProps(rt,it){return it.location!==rt.location||it.revalidation!=="idle"&&rt.revalidation==="idle"?{error:rt.error,location:rt.location,revalidation:rt.revalidation}:{error:rt.error!==void 0?rt.error:it.error,location:it.location,revalidation:rt.revalidation||it.revalidation}}componentDidCatch(rt,it){this.props.onError?this.props.onError(rt,it):console.error("React Router caught the following error during render",rt)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function RenderedRoute({routeContext:rt,match:it,children:ct}){let dt=reactExports.useContext(DataRouterContext);return dt&&dt.static&&dt.staticContext&&(it.route.errorElement||it.route.ErrorBoundary)&&(dt.staticContext._deepestRenderedBoundaryId=it.route.id),reactExports.createElement(RouteContext.Provider,{value:rt},ct)}function _renderMatches(rt,it=[],ct=null,dt=null,ut=null){if(rt==null){if(!ct)return null;if(ct.errors)rt=ct.matches;else if(it.length===0&&!ct.initialized&&ct.matches.length>0)rt=ct.matches;else return null}let pt=rt,yt=ct?.errors;if(yt!=null){let xt=pt.findIndex(vt=>vt.route.id&&yt?.[vt.route.id]!==void 0);invariant(xt>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(yt).join(",")}`),pt=pt.slice(0,Math.min(pt.length,xt+1))}let ft=!1,mt=-1;if(ct)for(let xt=0;xt=0?pt=pt.slice(0,mt+1):pt=[pt[0]];break}}}let kt=ct&&dt?(xt,vt)=>{dt(xt,{location:ct.location,params:ct.matches?.[0]?.params??{},errorInfo:vt})}:void 0;return pt.reduceRight((xt,vt,Ct)=>{let Mt,Lt=!1,St=null,It=null;ct&&(Mt=yt&&vt.route.id?yt[vt.route.id]:void 0,St=vt.route.errorElement||defaultErrorElement,ft&&(mt<0&&Ct===0?(warningOnce("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Lt=!0,It=null):mt===Ct&&(Lt=!0,It=vt.route.hydrateFallbackElement||null)));let Nt=it.concat(pt.slice(0,Ct+1)),$t=()=>{let Rt;return Mt?Rt=St:Lt?Rt=It:vt.route.Component?Rt=reactExports.createElement(vt.route.Component,null):vt.route.element?Rt=vt.route.element:Rt=xt,reactExports.createElement(RenderedRoute,{match:vt,routeContext:{outlet:xt,matches:Nt,isDataRoute:ct!=null},children:Rt})};return ct&&(vt.route.ErrorBoundary||vt.route.errorElement||Ct===0)?reactExports.createElement(RenderErrorBoundary,{location:ct.location,revalidation:ct.revalidation,component:St,error:Mt,children:$t(),routeContext:{outlet:null,matches:Nt,isDataRoute:!0},onError:kt}):$t()},null)}function getDataRouterConsoleError(rt){return`${rt} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function useDataRouterContext(rt){let it=reactExports.useContext(DataRouterContext);return invariant(it,getDataRouterConsoleError(rt)),it}function useDataRouterState(rt){let it=reactExports.useContext(DataRouterStateContext);return invariant(it,getDataRouterConsoleError(rt)),it}function useRouteContext(rt){let it=reactExports.useContext(RouteContext);return invariant(it,getDataRouterConsoleError(rt)),it}function useCurrentRouteId(rt){let it=useRouteContext(rt),ct=it.matches[it.matches.length-1];return invariant(ct.route.id,`${rt} can only be used on routes that contain a unique "id"`),ct.route.id}function useRouteId(){return useCurrentRouteId("useRouteId")}function useRouteError(){let rt=reactExports.useContext(RouteErrorContext),it=useDataRouterState("useRouteError"),ct=useCurrentRouteId("useRouteError");return rt!==void 0?rt:it.errors?.[ct]}function useNavigateStable(){let{router:rt}=useDataRouterContext("useNavigate"),it=useCurrentRouteId("useNavigate"),ct=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{ct.current=!0}),reactExports.useCallback(async(ut,pt={})=>{warning(ct.current,navigateEffectWarning),ct.current&&(typeof ut=="number"?rt.navigate(ut):await rt.navigate(ut,{fromRouteId:it,...pt}))},[rt,it])}var alreadyWarned$1={};function warningOnce(rt,it,ct){!it&&!alreadyWarned$1[rt]&&(alreadyWarned$1[rt]=!0,warning(!1,ct))}reactExports.memo(DataRoutes);function DataRoutes({routes:rt,future:it,state:ct,unstable_onError:dt}){return useRoutesImpl(rt,void 0,ct,dt,it)}function Outlet(rt){return useOutlet(rt.context)}function Route$1(rt){invariant(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Router$1({basename:rt="/",children:it=null,location:ct,navigationType:dt="POP",navigator:ut,static:pt=!1}){invariant(!useInRouterContext(),"You cannot render a inside another . You should never have more than one in your app.");let yt=rt.replace(/^\/*/,"/"),ft=reactExports.useMemo(()=>({basename:yt,navigator:ut,static:pt,future:{}}),[yt,ut,pt]);typeof ct=="string"&&(ct=parsePath(ct));let{pathname:mt="/",search:kt="",hash:xt="",state:vt=null,key:Ct="default"}=ct,Mt=reactExports.useMemo(()=>{let Lt=stripBasename(mt,yt);return Lt==null?null:{location:{pathname:Lt,search:kt,hash:xt,state:vt,key:Ct},navigationType:dt}},[yt,mt,kt,xt,vt,Ct,dt]);return warning(Mt!=null,` is not able to match the URL "${mt}${kt}${xt}" because it does not start with the basename, so the won't render anything.`),Mt==null?null:reactExports.createElement(NavigationContext.Provider,{value:ft},reactExports.createElement(LocationContext.Provider,{children:it,value:Mt}))}function Routes({children:rt,location:it}){return useRoutes(createRoutesFromChildren(rt),it)}function createRoutesFromChildren(rt,it=[]){let ct=[];return reactExports.Children.forEach(rt,(dt,ut)=>{if(!reactExports.isValidElement(dt))return;let pt=[...it,ut];if(dt.type===reactExports.Fragment){ct.push.apply(ct,createRoutesFromChildren(dt.props.children,pt));return}invariant(dt.type===Route$1,`[${typeof dt.type=="string"?dt.type:dt.type.name}] is not a component. All component children of must be a or `),invariant(!dt.props.index||!dt.props.children,"An index route cannot have child routes.");let yt={id:dt.props.id||pt.join("-"),caseSensitive:dt.props.caseSensitive,element:dt.props.element,Component:dt.props.Component,index:dt.props.index,path:dt.props.path,middleware:dt.props.middleware,loader:dt.props.loader,action:dt.props.action,hydrateFallbackElement:dt.props.hydrateFallbackElement,HydrateFallback:dt.props.HydrateFallback,errorElement:dt.props.errorElement,ErrorBoundary:dt.props.ErrorBoundary,hasErrorBoundary:dt.props.hasErrorBoundary===!0||dt.props.ErrorBoundary!=null||dt.props.errorElement!=null,shouldRevalidate:dt.props.shouldRevalidate,handle:dt.props.handle,lazy:dt.props.lazy};dt.props.children&&(yt.children=createRoutesFromChildren(dt.props.children,pt)),ct.push(yt)}),ct}var defaultMethod="get",defaultEncType="application/x-www-form-urlencoded";function isHtmlElement(rt){return rt!=null&&typeof rt.tagName=="string"}function isButtonElement(rt){return isHtmlElement(rt)&&rt.tagName.toLowerCase()==="button"}function isFormElement(rt){return isHtmlElement(rt)&&rt.tagName.toLowerCase()==="form"}function isInputElement(rt){return isHtmlElement(rt)&&rt.tagName.toLowerCase()==="input"}function isModifiedEvent(rt){return!!(rt.metaKey||rt.altKey||rt.ctrlKey||rt.shiftKey)}function shouldProcessLinkClick(rt,it){return rt.button===0&&(!it||it==="_self")&&!isModifiedEvent(rt)}var _formDataSupportsSubmitter=null;function isFormDataSubmitterSupported(){if(_formDataSupportsSubmitter===null)try{new FormData(document.createElement("form"),0),_formDataSupportsSubmitter=!1}catch{_formDataSupportsSubmitter=!0}return _formDataSupportsSubmitter}var supportedFormEncTypes=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function getFormEncType(rt){return rt!=null&&!supportedFormEncTypes.has(rt)?(warning(!1,`"${rt}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${defaultEncType}"`),null):rt}function getFormSubmissionInfo(rt,it){let ct,dt,ut,pt,yt;if(isFormElement(rt)){let ft=rt.getAttribute("action");dt=ft?stripBasename(ft,it):null,ct=rt.getAttribute("method")||defaultMethod,ut=getFormEncType(rt.getAttribute("enctype"))||defaultEncType,pt=new FormData(rt)}else if(isButtonElement(rt)||isInputElement(rt)&&(rt.type==="submit"||rt.type==="image")){let ft=rt.form;if(ft==null)throw new Error('Cannot submit a + {result.moreMatches && result.moreMatches.length > 0 && ( +
+ + + {expandedPages.has(result.pagePath) && ( +
    + {result.moreMatches.map((match) => ( +
  • + +
  • + ))} +
+ )} +
+ )} + + ))} + + ) +} + +export default function DocsSearch() { + const navigate = useNavigate() + const { t, i18n } = useTranslation() + const desktopContainerRef = useRef(null) + const mobileInputRef = useRef(null) + + const [desktopQuery, setDesktopQuery] = useState('') + const [mobileQuery, setMobileQuery] = useState('') + const [mobileOpen, setMobileOpen] = useState(false) + const [showDesktopDropdown, setShowDesktopDropdown] = useState(false) + const [isLoading, setIsLoading] = useState(false) + const [hasError, setHasError] = useState(false) + const [results, setResults] = useState([]) + const [expandedPages, setExpandedPages] = useState>(new Set()) + + const searchLanguage = useMemo( + () => resolveSearchLanguage(i18n.language), + [i18n.language], + ) + + const activeQuery = mobileOpen ? mobileQuery : desktopQuery + + useEffect(() => { + const query = activeQuery.trim() + + if (query.length < MIN_QUERY_LENGTH) { + setResults([]) + setIsLoading(false) + setHasError(false) + setExpandedPages(new Set()) + return + } + + let cancelled = false + const timer = window.setTimeout(async () => { + setIsLoading(true) + setHasError(false) + + try { + const searchResults = await searchDocumentation({ + query, + language: searchLanguage, + limit: MAX_RESULTS, + }) + if (!cancelled) { + setResults(searchResults) + setExpandedPages(new Set()) + } + } catch (error) { + console.error('Search failed:', error) + if (!cancelled) { + setHasError(true) + setResults([]) + } + } finally { + if (!cancelled) { + setIsLoading(false) + } + } + }, SEARCH_DEBOUNCE_MS) + + return () => { + cancelled = true + window.clearTimeout(timer) + } + }, [activeQuery, searchLanguage]) + + useEffect(() => { + const onDocumentClick = (event: MouseEvent) => { + if (!desktopContainerRef.current) { + return + } + + if (!desktopContainerRef.current.contains(event.target as Node)) { + setShowDesktopDropdown(false) + } + } + + document.addEventListener('mousedown', onDocumentClick) + return () => { + document.removeEventListener('mousedown', onDocumentClick) + } + }, []) + + useEffect(() => { + const onEsc = (event: KeyboardEvent) => { + if (event.key !== 'Escape') { + return + } + setShowDesktopDropdown(false) + setMobileOpen(false) + } + + document.addEventListener('keydown', onEsc) + return () => { + document.removeEventListener('keydown', onEsc) + } + }, []) + + useEffect(() => { + if (!mobileOpen) { + return + } + + const frame = window.requestAnimationFrame(() => { + mobileInputRef.current?.focus() + }) + + return () => { + window.cancelAnimationFrame(frame) + } + }, [mobileOpen]) + + const selectResult = (result: SearchHit) => { + navigate(result.path, { + state: { + docSearchQuery: activeQuery.trim(), + }, + }) + setDesktopQuery('') + setMobileQuery('') + setResults([]) + setShowDesktopDropdown(false) + setMobileOpen(false) + setExpandedPages(new Set()) + } + + const togglePageMatches = (pagePath: string) => { + setExpandedPages((prev) => { + const next = new Set(prev) + if (next.has(pagePath)) { + next.delete(pagePath) + } else { + next.add(pagePath) + } + return next + }) + } + + const openMobileSearch = () => { + setMobileQuery(desktopQuery) + setMobileOpen(true) + } + + const closeMobileSearch = () => { + setMobileOpen(false) + } + + const showDropdown = showDesktopDropdown && desktopQuery.trim().length >= MIN_QUERY_LENGTH + + return ( + <> +
+
+ + { + const nextValue = event.target.value + setDesktopQuery(nextValue) + if (nextValue.trim().length >= MIN_QUERY_LENGTH) { + setShowDesktopDropdown(true) + } else { + setShowDesktopDropdown(false) + } + }} + onFocus={() => { + if (desktopQuery.trim().length >= MIN_QUERY_LENGTH) { + setShowDesktopDropdown(true) + } + }} + placeholder={t('docsSearch.placeholder')} + className="docs-search-input" + /> + {desktopQuery && ( + + )} +
+ + {showDropdown && ( +
+ +
+ )} +
+ +
+ +
+ + {mobileOpen && ( +
+ + )} +
+ + + + +
+ +
+ + + )} + + ) +} diff --git a/docs/src/components/docs/MarkdownPage.tsx b/docs/src/components/docs/MarkdownPage.tsx index 98f0ddc9..aedf62ae 100644 --- a/docs/src/components/docs/MarkdownPage.tsx +++ b/docs/src/components/docs/MarkdownPage.tsx @@ -143,6 +143,134 @@ export default function MarkdownPage({ path }: MarkdownPageProps) { setPrevNext({ prev, next }) }, [location.pathname]) + useEffect(() => { + if (isLoading || !content) { + return + } + + const rawHash = location.hash.replace(/^#/, '') + if (!rawHash) { + return + } + + const targetId = decodeURIComponent(rawHash) + let attempts = 0 + const maxAttempts = 20 + + const scrollToAnchor = () => { + const element = document.getElementById(targetId) + if (!element) { + return false + } + + const y = element.getBoundingClientRect().top + window.scrollY - 88 + window.scrollTo({ + top: Math.max(0, y), + behavior: 'smooth', + }) + return true + } + + if (scrollToAnchor()) { + return + } + + const intervalId = window.setInterval(() => { + attempts += 1 + if (scrollToAnchor() || attempts >= maxAttempts) { + window.clearInterval(intervalId) + } + }, 120) + + return () => { + window.clearInterval(intervalId) + } + }, [isLoading, content, location.hash]) + + useEffect(() => { + if (isLoading || !content) { + return + } + + const state = location.state as { docSearchQuery?: string } | null + const query = state?.docSearchQuery?.trim() + if (!query || query.length < 2) { + return + } + + const root = document.querySelector('.markdown-body') as HTMLElement | null + if (!root) { + return + } + + const clearMarks = () => { + const marks = root.querySelectorAll('mark.docs-search-hit') + marks.forEach((mark) => { + const parent = mark.parentNode + if (!parent) return + parent.replaceChild(document.createTextNode(mark.textContent || ''), mark) + parent.normalize() + }) + } + + const markFirstOccurrence = (startFromAnchor: boolean): HTMLElement | null => { + const target = query.toLowerCase() + const hashId = decodeURIComponent(location.hash.replace(/^#/, '')) + const anchor = hashId ? document.getElementById(hashId) : null + + const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT) + let reachedAnchor = !startFromAnchor || !anchor + + while (walker.nextNode()) { + const node = walker.currentNode as Text + const parent = node.parentElement + const value = node.nodeValue || '' + if (!parent || !value.trim()) { + continue + } + + if (!reachedAnchor && anchor) { + const relation = anchor.compareDocumentPosition(parent) + const isFollowing = (relation & Node.DOCUMENT_POSITION_FOLLOWING) !== 0 + const isInside = anchor.contains(parent) || anchor === parent + if (isFollowing || isInside) { + reachedAnchor = true + } else { + continue + } + } + + const index = value.toLowerCase().indexOf(target) + if (index === -1) { + continue + } + + const range = document.createRange() + range.setStart(node, index) + range.setEnd(node, index + query.length) + + const mark = document.createElement('mark') + mark.className = 'docs-search-hit' + range.surroundContents(mark) + return mark + } + + return null + } + + clearMarks() + const highlighted = markFirstOccurrence(true) || markFirstOccurrence(false) + if (!highlighted) { + return + } + + const y = highlighted.getBoundingClientRect().top + window.scrollY - 100 + window.scrollTo({ + top: Math.max(0, y), + behavior: 'smooth', + }) + }, [isLoading, content, location.hash, location.key, location.state]) + if (isLoading) { return (
diff --git a/docs/src/i18n/locales/en.json b/docs/src/i18n/locales/en.json index 29c8960f..96d344ad 100644 --- a/docs/src/i18n/locales/en.json +++ b/docs/src/i18n/locales/en.json @@ -19,6 +19,20 @@ "subtitle": "A unified Git-native toolkit for linting, code generation, and dependency management. Fully Open Source.", "exploreDocs": "Explore Documentation" }, + "docsSearch": { + "placeholder": "Search docs...", + "mobilePlaceholder": "Search documentation...", + "open": "Open search", + "close": "Close search", + "cancel": "Cancel", + "clear": "Clear search", + "loading": "Searching...", + "noResults": "No results found", + "showMoreMatches": "Show {{count}} more matches on this page", + "hideMoreMatches": "Hide additional matches", + "typeToSearch": "Type at least 2 characters to search", + "error": "Unable to load search index. Try again later." + }, "trustedBy": { "title": "Trusted by engineering teams at" }, @@ -98,4 +112,4 @@ "terms": "Terms", "license": "Licensed under Apache 2.0" } -} \ No newline at end of file +} diff --git a/docs/src/i18n/locales/ru.json b/docs/src/i18n/locales/ru.json index 4358d684..76758a83 100644 --- a/docs/src/i18n/locales/ru.json +++ b/docs/src/i18n/locales/ru.json @@ -19,6 +19,20 @@ "subtitle": "Единый Git-native инструментарий для линтинга, генерации кода и управления зависимостями. Полностью Open Source.", "exploreDocs": "Изучить документацию" }, + "docsSearch": { + "placeholder": "Поиск по документации...", + "mobilePlaceholder": "Введите запрос для поиска...", + "open": "Открыть поиск", + "close": "Закрыть поиск", + "cancel": "Отмена", + "clear": "Очистить поиск", + "loading": "Ищем...", + "noResults": "Ничего не найдено", + "showMoreMatches": "Показать ещё {{count}} совпадений на этой странице", + "hideMoreMatches": "Скрыть дополнительные совпадения", + "typeToSearch": "Введите минимум 2 символа", + "error": "Не удалось загрузить поисковый индекс. Попробуйте позже." + }, "trustedBy": { "title": "Нам доверяют команды разработчиков из" }, diff --git a/docs/src/index.css b/docs/src/index.css index 7bbfee6a..72ec2fe2 100644 --- a/docs/src/index.css +++ b/docs/src/index.css @@ -555,3 +555,241 @@ body { opacity: 0; } } + +/* Docs Search */ +.docs-search-desktop { + width: min(360px, 100%); +} + +.docs-search-input-wrapper { + position: relative; +} + +.docs-search-input-wrapper--mobile { + flex: 1; +} + +.docs-search-input-icon { + position: absolute; + left: 0.75rem; + top: 50%; + transform: translateY(-50%); + width: 1rem; + height: 1rem; + color: #94a3b8; + pointer-events: none; +} + +.docs-search-input { + width: 100%; + height: 2.3rem; + border-radius: 0.65rem; + border: 1px solid rgba(148, 163, 184, 0.35); + background: rgba(15, 23, 42, 0.72); + color: #f8fafc; + font-size: 0.875rem; + padding: 0 2.2rem 0 2.25rem; + transition: border-color 0.2s ease, box-shadow 0.2s ease; +} + +.docs-search-input::placeholder { + color: #94a3b8; +} + +.docs-search-input:focus { + outline: none; + border-color: #60a5fa; + box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2); +} + +.docs-search-clear { + position: absolute; + right: 0.45rem; + top: 50%; + transform: translateY(-50%); + border: none; + background: transparent; + color: #94a3b8; + cursor: pointer; + width: 1.6rem; + height: 1.6rem; + display: flex; + align-items: center; + justify-content: center; + border-radius: 0.35rem; +} + +.docs-search-clear:hover { + color: #e2e8f0; + background: rgba(148, 163, 184, 0.15); +} + +.docs-search-dropdown { + position: absolute; + top: calc(100% + 0.5rem); + left: 0; + right: 0; + border: 1px solid rgba(148, 163, 184, 0.3); + background: rgba(2, 6, 23, 0.98); + border-radius: 0.8rem; + box-shadow: 0 18px 42px rgba(2, 6, 23, 0.45); + max-height: 22rem; + overflow: auto; + z-index: 45; +} + +.docs-search-state { + padding: 0.9rem 1rem; + font-size: 0.875rem; + color: #94a3b8; +} + +.docs-search-state--loading { + display: flex; + align-items: center; + gap: 0.5rem; +} + +.docs-search-state--error { + color: #fda4af; +} + +.docs-search-results-list { + list-style: none; + margin: 0; + padding: 0.35rem; +} + +.docs-search-result-item { + width: 100%; + text-align: left; + border: none; + border-radius: 0.6rem; + background: transparent; + color: inherit; + cursor: pointer; + padding: 0.62rem 0.7rem; + display: flex; + flex-direction: column; + gap: 0.2rem; +} + +.docs-search-result-item:hover { + background: rgba(30, 41, 59, 0.85); +} + +.docs-search-result-item--nested { + margin-top: 0.25rem; + border: 1px solid rgba(148, 163, 184, 0.16); + background: rgba(15, 23, 42, 0.55); +} + +.docs-search-result-title { + font-size: 0.86rem; + font-weight: 600; + color: #e2e8f0; +} + +.docs-search-result-section { + font-size: 0.76rem; + font-weight: 500; + color: #93c5fd; + line-height: 1.25; +} + +.docs-search-result-excerpt { + font-size: 0.74rem; + color: #94a3b8; + line-height: 1.3; +} + +.docs-search-more-wrapper { + padding: 0 0.7rem 0.6rem 0.7rem; +} + +.docs-search-more-toggle { + border: none; + background: transparent; + color: #60a5fa; + font-size: 0.75rem; + font-weight: 600; + cursor: pointer; + padding: 0.15rem 0; +} + +.docs-search-more-toggle:hover { + color: #93c5fd; +} + +.docs-search-more-list { + list-style: none; + margin: 0.25rem 0 0; + padding: 0; +} + +.docs-search-mobile-trigger { + border: 1px solid rgba(148, 163, 184, 0.35); + background: rgba(15, 23, 42, 0.72); + color: #f8fafc; + width: 2.35rem; + height: 2.35rem; + border-radius: 0.7rem; + display: flex; + align-items: center; + justify-content: center; +} + +.docs-search-mobile-overlay { + position: fixed; + inset: 0; + z-index: 70; +} + +.docs-search-mobile-backdrop { + position: absolute; + inset: 0; + border: 0; + background: rgba(2, 6, 23, 0.62); +} + +.docs-search-mobile-sheet { + position: absolute; + top: 0; + left: 0; + right: 0; + border-bottom-left-radius: 1rem; + border-bottom-right-radius: 1rem; + border: 1px solid rgba(148, 163, 184, 0.25); + background: #020617; + box-shadow: 0 18px 42px rgba(2, 6, 23, 0.5); +} + +.docs-search-mobile-top { + display: flex; + align-items: center; + gap: 0.7rem; + padding: 0.75rem 0.85rem; + border-bottom: 1px solid rgba(148, 163, 184, 0.2); +} + +.docs-search-mobile-close { + border: none; + background: transparent; + color: #cbd5e1; + font-size: 0.85rem; + font-weight: 500; + padding: 0.3rem; +} + +.docs-search-mobile-results { + max-height: calc(100vh - 6rem); + overflow: auto; + padding: 0.3rem; +} + +.docs-search-hit { + background: rgba(250, 204, 21, 0.45); + color: #f8fafc; + padding: 0 0.1rem; + border-radius: 0.2rem; +} diff --git a/docs/src/lib/search/search.ts b/docs/src/lib/search/search.ts new file mode 100644 index 00000000..17f78f54 --- /dev/null +++ b/docs/src/lib/search/search.ts @@ -0,0 +1,214 @@ +import Fuse, { type FuseResult, type IFuseOptions } from 'fuse.js' +import type { SearchDocument, SearchHit, SearchLanguage, SearchParams, SearchResult } from './types' + +const INDEX_BY_LANGUAGE: Record = { + en: '/search/index.en.json', + ru: '/search/index.ru.json', +} + +const DEFAULT_LIMIT = 10 +const MIN_QUERY_LENGTH = 2 +const PREVIEW_CONTEXT_BEFORE = 55 +const PREVIEW_CONTEXT_AFTER = 145 +const MAX_RESULTS_PER_PAGE = 3 +const RAW_RESULT_MULTIPLIER = 12 +const RAW_RESULT_FLOOR = 120 + +const documentCache = new Map>() +const fuseCache = new Map>>() + +const fuseOptions: IFuseOptions = { + includeScore: true, + includeMatches: true, + ignoreLocation: true, + threshold: 0.35, + minMatchCharLength: MIN_QUERY_LENGTH, + keys: [ + { name: 'title', weight: 0.45 }, + { name: 'headings', weight: 0.3 }, + { name: 'content', weight: 0.25 }, + ], +} + +export function resolveSearchLanguage(language: string): SearchLanguage { + const normalized = language.toLowerCase() + if (normalized === 'ru' || normalized.startsWith('ru-')) { + return 'ru' + } + return 'en' +} + +async function fetchSearchIndex(language: SearchLanguage): Promise { + const response = await fetch(INDEX_BY_LANGUAGE[language], { + cache: 'no-cache', + }) + + if (!response.ok) { + throw new Error(`Failed to load search index for "${language}"`) + } + + const payload: unknown = await response.json() + + if (Array.isArray(payload)) { + return payload as SearchDocument[] + } + + if ( + payload && + typeof payload === 'object' && + 'documents' in payload && + Array.isArray((payload as { documents: unknown }).documents) + ) { + return (payload as { documents: SearchDocument[] }).documents + } + + throw new Error(`Invalid search index format for "${language}"`) +} + +async function getDocuments(language: SearchLanguage): Promise { + let loader = documentCache.get(language) + if (!loader) { + loader = fetchSearchIndex(language) + documentCache.set(language, loader) + } + return loader +} + +async function getFuseInstance(language: SearchLanguage): Promise> { + let fusePromise = fuseCache.get(language) + if (!fusePromise) { + fusePromise = getDocuments(language).then((documents) => new Fuse(documents, fuseOptions)) + fuseCache.set(language, fusePromise) + } + return fusePromise +} + +function getQueryTokens(query: string): string[] { + return query + .toLowerCase() + .split(/\s+/) + .map((token) => token.trim()) + .filter((token) => token.length >= MIN_QUERY_LENGTH) +} + +function documentContainsAllTokens(document: SearchDocument, tokens: string[]): boolean { + const haystack = `${document.title}\n${document.section || ''}\n${document.headings.join('\n')}\n${document.content}`.toLowerCase() + return tokens.every((token) => haystack.includes(token)) +} + +function buildSnippet(value: string, start: number, tokenLength: number): string { + const from = Math.max(0, start - PREVIEW_CONTEXT_BEFORE) + const to = Math.min(value.length, start + tokenLength + PREVIEW_CONTEXT_AFTER) + + const prefix = from > 0 ? '...' : '' + const suffix = to < value.length ? '...' : '' + const snippet = value.slice(from, to).trim() + + return snippet ? `${prefix}${snippet}${suffix}` : value.slice(0, PREVIEW_CONTEXT_AFTER).trim() +} + +function buildPreviewFromMatch(result: FuseResult, queryTokens: string[]): string { + const fallback = result.item.excerpt + const fields = [ + result.item.content, + result.item.section || '', + result.item.title, + ...result.item.headings, + ] + + for (const field of fields) { + const lowerField = field.toLowerCase() + for (const token of queryTokens) { + const exactIndex = lowerField.indexOf(token) + if (exactIndex >= 0) { + return buildSnippet(field, exactIndex, token.length) + } + } + } + + const match = result.matches?.find( + (entry) => typeof entry.value === 'string' && entry.indices && entry.indices.length > 0, + ) + if (!match || typeof match.value !== 'string' || !match.indices || match.indices.length === 0) { + return fallback + } + + const [start, end] = match.indices[0] + return buildSnippet(match.value, start, end - start + 1) || fallback +} + +export async function searchDocumentation({ + query, + language, + limit = DEFAULT_LIMIT, +}: SearchParams): Promise { + const normalizedQuery = query.trim() + if (normalizedQuery.length < MIN_QUERY_LENGTH) { + return [] + } + const queryTokens = getQueryTokens(normalizedQuery) + + const fuse = await getFuseInstance(language) + const rawLimit = Math.max(limit * RAW_RESULT_MULTIPLIER, RAW_RESULT_FLOOR) + const results = fuse.search(normalizedQuery, { limit: rawLimit }) + const dedupe = new Set() + + const hits: SearchHit[] = results + .filter((result) => documentContainsAllTokens(result.item, queryTokens)) + .map((result) => ({ + ...result.item, + score: result.score ?? 1, + preview: buildPreviewFromMatch(result, queryTokens), + pagePath: result.item.path.split('#')[0], + })) + .filter((result) => { + const key = `${result.path}::${result.preview}` + if (dedupe.has(key)) { + return false + } + dedupe.add(key) + return true + }) + + const perPageBuckets = new Map() + for (const hit of hits) { + const bucket = perPageBuckets.get(hit.pagePath) || { visible: [], hidden: [] } + if (bucket.visible.length < MAX_RESULTS_PER_PAGE) { + bucket.visible.push(hit) + } else { + bucket.hidden.push(hit) + } + perPageBuckets.set(hit.pagePath, bucket) + } + + const visibleHitIds = new Set() + for (const bucket of perPageBuckets.values()) { + for (const hit of bucket.visible) { + visibleHitIds.add(hit.id) + } + } + + const hiddenByPage = new Map() + for (const [pagePath, bucket] of perPageBuckets.entries()) { + hiddenByPage.set(pagePath, bucket.hidden) + } + + const attachedHiddenToPage = new Set() + const mapped: SearchResult[] = hits + .filter((hit) => visibleHitIds.has(hit.id)) + .map((hit) => { + if (!attachedHiddenToPage.has(hit.pagePath)) { + attachedHiddenToPage.add(hit.pagePath) + const hidden = hiddenByPage.get(hit.pagePath) || [] + if (hidden.length > 0) { + return { + ...hit, + moreMatches: hidden, + } + } + } + return hit + }) + + return mapped.slice(0, limit) +} diff --git a/docs/src/lib/search/types.ts b/docs/src/lib/search/types.ts new file mode 100644 index 00000000..09cfdcf4 --- /dev/null +++ b/docs/src/lib/search/types.ts @@ -0,0 +1,27 @@ +export type SearchLanguage = 'en' | 'ru' + +export interface SearchDocument { + id: string + title: string + section?: string + path: string + headings: string[] + excerpt: string + content: string +} + +export interface SearchHit extends SearchDocument { + score: number + preview: string + pagePath: string +} + +export interface SearchResult extends SearchHit { + moreMatches?: SearchHit[] +} + +export interface SearchParams { + query: string + language: SearchLanguage + limit?: number +} diff --git a/docs/tsconfig.tsbuildinfo b/docs/tsconfig.tsbuildinfo index 2adf622f..9f72b9b8 100644 --- a/docs/tsconfig.tsbuildinfo +++ b/docs/tsconfig.tsbuildinfo @@ -1 +1 @@ -{"root":["./src/app.tsx","./src/main.tsx","./src/components/architecturecomparison.tsx","./src/components/easyplogo.tsx","./src/components/errorboundary.tsx","./src/components/featureswitcher.tsx","./src/components/footer.tsx","./src/components/hero.tsx","./src/components/languageswitcher.tsx","./src/components/mermaid.tsx","./src/components/navbar.tsx","./src/components/registrypreview.tsx","./src/components/snowflakes.tsx","./src/components/trustedby.tsx","./src/components/docs/docsheader.tsx","./src/components/docs/docslayout.tsx","./src/components/docs/docssidebar.tsx","./src/components/docs/markdownpage.tsx","./src/components/docs/notfound.tsx","./src/components/docs/sidebaritem.tsx","./src/contexts/toccontext.tsx","./src/i18n/config.ts","./src/lib/markdown/exampleusage.tsx","./src/lib/markdown/demo.tsx","./src/lib/markdown/index.ts","./src/lib/markdown/processor.tsx","./src/lib/markdown/types.ts","./src/lib/markdown/components/codeblock.tsx","./src/lib/markdown/components/customblock.tsx","./src/lib/markdown/components/heading.tsx","./src/lib/markdown/components/markdowncontent.tsx","./src/lib/markdown/components/tableofcontents.tsx","./src/lib/markdown/plugins/codefocus.tsx","./src/lib/markdown/plugins/htmlblocks.tsx","./src/lib/markdown/plugins/links.tsx","./src/lib/markdown/plugins/mermaid.tsx","./src/lib/markdown/plugins/toc.tsx","./src/lib/markdown/utils/frontmatter.ts","./src/lib/markdown/utils/headings.ts","./src/lib/markdown/utils/paths.ts","./src/lib/markdown/utils/prismtheme.ts","./src/pages/blogpage.tsx","./src/pages/blogpostpage.tsx","./src/pages/homepage.tsx","./src/routes/docsroutes.tsx","./src/types/sidebar.ts","./src/utils/extractheadings.ts","./src/utils/github.ts","./src/utils/parsebadgood.ts","./src/utils/sidebarutils.ts","./src/utils/usemarkdown.ts"],"version":"5.9.3"} \ No newline at end of file +{"root":["./src/app.tsx","./src/main.tsx","./src/components/architecturecomparison.tsx","./src/components/easyplogo.tsx","./src/components/errorboundary.tsx","./src/components/featureswitcher.tsx","./src/components/footer.tsx","./src/components/hero.tsx","./src/components/languageswitcher.tsx","./src/components/mermaid.tsx","./src/components/navbar.tsx","./src/components/registrypreview.tsx","./src/components/snowflakes.tsx","./src/components/trustedby.tsx","./src/components/docs/docsheader.tsx","./src/components/docs/docslayout.tsx","./src/components/docs/docssearch.tsx","./src/components/docs/docssidebar.tsx","./src/components/docs/markdownpage.tsx","./src/components/docs/notfound.tsx","./src/components/docs/sidebaritem.tsx","./src/contexts/toccontext.tsx","./src/i18n/config.ts","./src/lib/markdown/exampleusage.tsx","./src/lib/markdown/demo.tsx","./src/lib/markdown/index.ts","./src/lib/markdown/processor.tsx","./src/lib/markdown/types.ts","./src/lib/markdown/components/codeblock.tsx","./src/lib/markdown/components/customblock.tsx","./src/lib/markdown/components/heading.tsx","./src/lib/markdown/components/markdowncontent.tsx","./src/lib/markdown/components/tableofcontents.tsx","./src/lib/markdown/plugins/codefocus.tsx","./src/lib/markdown/plugins/htmlblocks.tsx","./src/lib/markdown/plugins/links.tsx","./src/lib/markdown/plugins/mermaid.tsx","./src/lib/markdown/plugins/toc.tsx","./src/lib/markdown/utils/frontmatter.ts","./src/lib/markdown/utils/headings.ts","./src/lib/markdown/utils/paths.ts","./src/lib/markdown/utils/prismtheme.ts","./src/lib/search/search.ts","./src/lib/search/types.ts","./src/pages/blogpage.tsx","./src/pages/blogpostpage.tsx","./src/pages/homepage.tsx","./src/routes/docsroutes.tsx","./src/types/sidebar.ts","./src/utils/extractheadings.ts","./src/utils/github.ts","./src/utils/parsebadgood.ts","./src/utils/sidebarutils.ts","./src/utils/usemarkdown.ts"],"version":"5.9.3"} \ No newline at end of file From 36bd1e8cf107f3afe32050af9e70113ba7a2a801 Mon Sep 17 00:00:00 2001 From: Khasbulat Abdullin Date: Mon, 23 Feb 2026 08:49:38 +0300 Subject: [PATCH 2/2] version: derive compiler metadata from build info --- internal/core/generate.go | 6 +- .../core/generate_compiler_version_test.go | 221 ++++++++++++ internal/version/version.go | 314 ++++++++++++++++-- internal/version/version_test.go | 292 ++++++++++++++++ 4 files changed, 806 insertions(+), 27 deletions(-) create mode 100644 internal/core/generate_compiler_version_test.go create mode 100644 internal/version/version_test.go diff --git a/internal/core/generate.go b/internal/core/generate.go index 65e559db..0ec2327d 100644 --- a/internal/core/generate.go +++ b/internal/core/generate.go @@ -22,6 +22,7 @@ import ( pluginexecutor "github.com/easyp-tech/easyp/internal/adapters/plugin" "github.com/easyp-tech/easyp/internal/core/models" "github.com/easyp-tech/easyp/internal/fs/fs" + "github.com/easyp-tech/easyp/internal/version" ) // Generate generates files. @@ -270,8 +271,9 @@ func (c *Core) Generate(ctx context.Context, root, directory, descriptorSetOut s } req := &pluginpb.CodeGeneratorRequest{ - FileToGenerate: filesToGenerate, - ProtoFile: fileDescriptors, + FileToGenerate: filesToGenerate, + ProtoFile: fileDescriptors, + CompilerVersion: version.CompilerVersion(), } executor := c.getExecutor(plugin) diff --git a/internal/core/generate_compiler_version_test.go b/internal/core/generate_compiler_version_test.go new file mode 100644 index 00000000..ef7aa3d7 --- /dev/null +++ b/internal/core/generate_compiler_version_test.go @@ -0,0 +1,221 @@ +package core + +import ( + "context" + "errors" + "iter" + "os" + "os/exec" + "path/filepath" + "strings" + "testing" + + "github.com/easyp-tech/easyp/internal/adapters/console" + pluginexecutor "github.com/easyp-tech/easyp/internal/adapters/plugin" + "github.com/easyp-tech/easyp/internal/core/models" + "github.com/easyp-tech/easyp/internal/logger" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/pluginpb" +) + +type emptyLockFile struct{} + +func (emptyLockFile) Read(moduleName string) (models.LockFileInfo, error) { + return models.LockFileInfo{}, errors.New("lock file info not found") +} + +func (emptyLockFile) Write(moduleName string, revisionVersion string, installedPackageHash models.ModuleHash) error { + return nil +} + +func (emptyLockFile) IsEmpty() bool { + return true +} + +func (emptyLockFile) DepsIter() iter.Seq[models.LockFileInfo] { + return func(yield func(models.LockFileInfo) bool) {} +} + +type captureExecutor struct { + requests []*pluginpb.CodeGeneratorRequest +} + +func (c *captureExecutor) Execute(_ context.Context, _ pluginexecutor.Info, request *pluginpb.CodeGeneratorRequest) (*pluginpb.CodeGeneratorResponse, error) { + c.requests = append(c.requests, proto.Clone(request).(*pluginpb.CodeGeneratorRequest)) + return &pluginpb.CodeGeneratorResponse{}, nil +} + +func (c *captureExecutor) GetName() string { + return "captureExecutor" +} + +func TestGenerateSetsCompilerVersionInRequest(t *testing.T) { + t.Parallel() + + root := t.TempDir() + writeTestProto(t, root, "api/payment/v2/payment.proto") + + executor := &captureExecutor{} + app := testCoreWithPlugins( + []Plugin{ + { + Source: PluginSource{Name: "custom-plugin"}, + Out: ".", + }, + }, + executor, + ) + + if err := app.Generate(context.Background(), root, ".", "", false); err != nil { + t.Fatalf("Generate() error = %v", err) + } + + if len(executor.requests) != 1 { + t.Fatalf("expected one plugin request, got %d", len(executor.requests)) + } + + compilerVersion := executor.requests[0].GetCompilerVersion() + if compilerVersion == nil { + t.Fatalf("compiler_version is nil") + } + + suffix := compilerVersion.GetSuffix() + if !strings.Contains(suffix, "bufbuild-protocompile-") { + t.Fatalf("compiler_version suffix = %q, expected bufbuild-protocompile marker", suffix) + } + if !strings.Contains(suffix, "-easyp") { + t.Fatalf("compiler_version suffix = %q, expected easyp marker", suffix) + } +} + +func TestGenerateGoHeaderUsesCompilerVersion(t *testing.T) { + t.Parallel() + + if _, err := exec.LookPath("protoc-gen-go"); err != nil { + t.Skipf("protoc-gen-go not found in PATH: %v", err) + } + + root := t.TempDir() + writeTestProto(t, root, "api/payment/v2/payment.proto") + + plugins := []Plugin{ + { + Source: PluginSource{Name: "go"}, + Out: ".", + Options: map[string][]string{ + "paths": {"source_relative"}, + }, + }, + } + + checkGRPCFile := false + if _, err := exec.LookPath("protoc-gen-go-grpc"); err == nil { + checkGRPCFile = true + plugins = append(plugins, Plugin{ + Source: PluginSource{Name: "go-grpc"}, + Out: ".", + Options: map[string][]string{ + "paths": {"source_relative"}, + "require_unimplemented_servers": {"false"}, + }, + }) + } + + localExecutor := pluginexecutor.NewLocalPluginExecutor(console.New(), logger.NewNop()) + app := testCoreWithPlugins(plugins, localExecutor) + + if err := app.Generate(context.Background(), root, ".", "", false); err != nil { + t.Fatalf("Generate() error = %v", err) + } + + goFilePath := filepath.Join(root, "api/payment/v2/payment.pb.go") + goFileContent, err := os.ReadFile(goFilePath) + if err != nil { + t.Fatalf("os.ReadFile(%s): %v", goFilePath, err) + } + + assertNoUnknownCompilerVersion(t, string(goFileContent)) + assertCompilerVersionMarkerPresent(t, string(goFileContent)) + + if !checkGRPCFile { + t.Log("protoc-gen-go-grpc not found; gRPC file check skipped") + return + } + + grpcFilePath := filepath.Join(root, "api/payment/v2/payment_grpc.pb.go") + grpcFileContent, err := os.ReadFile(grpcFilePath) + if err != nil { + t.Fatalf("os.ReadFile(%s): %v", grpcFilePath, err) + } + + assertNoUnknownCompilerVersion(t, string(grpcFileContent)) + assertCompilerVersionMarkerPresent(t, string(grpcFileContent)) +} + +func testCoreWithPlugins(plugins []Plugin, localExecutor pluginexecutor.Executor) *Core { + return &Core{ + logger: logger.NewNop(), + plugins: plugins, + inputs: Inputs{ + InputFilesDir: []InputFilesDir{ + { + Path: "api", + Root: ".", + }, + }, + }, + lockFile: emptyLockFile{}, + localExecutor: localExecutor, + remoteExecutor: localExecutor, + builtinExecutor: localExecutor, + commandExecutor: localExecutor, + } +} + +func writeTestProto(t *testing.T, root string, relPath string) { + t.Helper() + + fullPath := filepath.Join(root, relPath) + if err := os.MkdirAll(filepath.Dir(fullPath), 0755); err != nil { + t.Fatalf("os.MkdirAll(%s): %v", filepath.Dir(fullPath), err) + } + + protoContent := `syntax = "proto3"; +package api.payment.v2; + +option go_package = "example.com/test/api/payment/v2;paymentv2"; + +message PingRequest {} +message PingResponse {} + +service PaymentService { + rpc Ping(PingRequest) returns (PingResponse); +} +` + + if err := os.WriteFile(fullPath, []byte(protoContent), 0644); err != nil { + t.Fatalf("os.WriteFile(%s): %v", fullPath, err) + } +} + +func assertNoUnknownCompilerVersion(t *testing.T, content string) { + t.Helper() + + if strings.Contains(content, "protoc (unknown)") { + t.Fatalf("generated file still contains protoc (unknown)") + } + if strings.Contains(content, "protoc (unknown)") { + t.Fatalf("generated file still contains protoc (unknown)") + } +} + +func assertCompilerVersionMarkerPresent(t *testing.T, content string) { + t.Helper() + + if !strings.Contains(content, "bufbuild-protocompile-") { + t.Fatalf("generated file does not contain bufbuild-protocompile marker") + } + if !strings.Contains(content, "-easyp") { + t.Fatalf("generated file does not contain easyp marker") + } +} diff --git a/internal/version/version.go b/internal/version/version.go index ac65c5de..d319be35 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -1,42 +1,306 @@ package version -import "runtime/debug" +import ( + "runtime/debug" + "strconv" + "strings" + "sync" -// System returns application version based on build info. + "golang.org/x/mod/semver" + "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/pluginpb" +) + +const ( + develVersion = "devel" + unknownVersion = "unknown" + develMainVersion = "(devel)" + protocompileModulePath = "github.com/bufbuild/protocompile" + revisionPrefix = 7 +) + +type buildMetadata struct { + easypVersion string + protocompileVersion string + compilerVersion *pluginpb.Version +} + +var ( + metadata buildMetadata + metadataOnce sync.Once +) + +// System returns application version based on build info embedded into binary. func System() string { - bi, ver := buildVersion() - switch { - case bi == nil: - return "(unknown)" - case ver == "" || bi.Main.Version != "(devel)": - return bi.Main.Version - default: - return ver - } + return getBuildMetadata().easypVersion } -func buildVersion() (bi *debug.BuildInfo, ver string) { +// CompilerVersion returns compiler metadata used in CodeGeneratorRequest. +func CompilerVersion() *pluginpb.Version { + return cloneVersion(getBuildMetadata().compilerVersion) +} + +func getBuildMetadata() buildMetadata { + metadataOnce.Do(func() { + metadata = readBuildMetadata() + }) + return metadata +} + +func readBuildMetadata() buildMetadata { bi, ok := debug.ReadBuildInfo() if !ok { - return nil, "" + return buildMetadataFromVersions(develVersion, unknownVersion) } - const revisionPrefix = 7 - revision := buildSetting(bi, "vcs.revision") - modified := buildSetting(bi, "vcs.modified") - time := buildSetting(bi, "vcs.time") - if revision == "" { - return bi, time - } else if len(revision) > revisionPrefix { + + easypVersion := easypVersionFromBuildInfo(bi) + protocompileVersion := dependencyVersion(bi, protocompileModulePath) + + return buildMetadataFromVersions(easypVersion, protocompileVersion) +} + +func buildMetadataFromVersions(easypVersion, protocompileVersion string) buildMetadata { + return buildMetadata{ + easypVersion: easypVersion, + protocompileVersion: protocompileVersion, + compilerVersion: compilerVersionFromVersions(protocompileVersion, easypVersion), + } +} + +func cloneVersion(version *pluginpb.Version) *pluginpb.Version { + if version == nil { + // Defensive fallback: in normal flow compilerVersion is always initialized. + return &pluginpb.Version{ + Major: proto.Int32(0), + Minor: proto.Int32(0), + Patch: proto.Int32(0), + Suffix: proto.String(buildCompilerSuffix(unknownVersion, "", "")), + } + } + + clone := &pluginpb.Version{ + Major: proto.Int32(version.GetMajor()), + Minor: proto.Int32(version.GetMinor()), + Patch: proto.Int32(version.GetPatch()), + } + if suffix := version.GetSuffix(); suffix != "" { + clone.Suffix = proto.String(suffix) + } + + return clone +} + +func compilerVersionFromVersions(protocompileVersion, easypVersion string) *pluginpb.Version { + major, minor, patch := semverMajorMinorPatch(protocompileVersion) + _, protocompileSuffix := splitVersionCoreAndSuffix(protocompileVersion) + easypCore, easypSuffix := splitVersionCoreAndSuffix(easypVersion) + + return &pluginpb.Version{ + Major: proto.Int32(major), + Minor: proto.Int32(minor), + Patch: proto.Int32(patch), + Suffix: proto.String(buildCompilerSuffix(easypCore, protocompileSuffix, easypSuffix)), + } +} + +func semverMajorMinorPatch(rawVersion string) (int32, int32, int32) { + version := strings.TrimSpace(rawVersion) + if version == "" { + return 0, 0, 0 + } + + version = strings.TrimPrefix(version, "v") + version = strings.SplitN(version, "-", 2)[0] + version = strings.SplitN(version, "+", 2)[0] + + parts := strings.Split(version, ".") + if len(parts) < 3 { + return 0, 0, 0 + } + + major, err := strconv.ParseInt(parts[0], 10, 32) + if err != nil { + return 0, 0, 0 + } + + minor, err := strconv.ParseInt(parts[1], 10, 32) + if err != nil { + return 0, 0, 0 + } + + patch, err := strconv.ParseInt(parts[2], 10, 32) + if err != nil { + return 0, 0, 0 + } + + return int32(major), int32(minor), int32(patch) +} + +func buildCompilerSuffix(easypCore, protocompileSuffix, easypSuffix string) string { + easypCore = sanitizeSuffixToken(easypCore) + + parts := []string{easypCore, "bufbuild-protocompile"} + if protocompileSuffix = sanitizeOptionalToken(protocompileSuffix); protocompileSuffix != "" { + parts = append(parts, protocompileSuffix) + } + + parts = append(parts, "easyp") + if easypSuffix = sanitizeOptionalToken(easypSuffix); easypSuffix != "" { + parts = append(parts, easypSuffix) + } + + return strings.Join(parts, "-") +} + +func sanitizeOptionalToken(raw string) string { + value := sanitizeSuffixToken(raw) + if value == unknownVersion { + return "" + } + return value +} + +func splitVersionCoreAndSuffix(raw string) (string, string) { + trimmed := strings.TrimSpace(raw) + if trimmed == "" { + return unknownVersion, "" + } + if trimmed == develMainVersion { + return develVersion, "" + } + + if semver.IsValid(trimmed) { + core := trimmed + if build := semver.Build(core); build != "" { + core = strings.TrimSuffix(core, build) + } + if pre := semver.Prerelease(core); pre != "" { + core = strings.TrimSuffix(core, pre) + } + + suffix := strings.TrimPrefix(trimmed[len(core):], "-") + suffix = strings.TrimPrefix(suffix, "+") + return core, suffix + } + + parts := strings.SplitN(trimmed, "-", 2) + if len(parts) == 2 { + return parts[0], parts[1] + } + + return trimmed, "" +} + +func sanitizeSuffixToken(raw string) string { + value := strings.TrimSpace(raw) + if value == "" { + return unknownVersion + } + if value == develMainVersion { + value = develVersion + } + + builder := strings.Builder{} + builder.Grow(len(value)) + for _, r := range value { + switch { + case r >= 'a' && r <= 'z': + builder.WriteRune(r) + case r >= 'A' && r <= 'Z': + builder.WriteRune(r) + case r >= '0' && r <= '9': + builder.WriteRune(r) + case r == '-', r == '_', r == '.': + builder.WriteRune(r) + default: + builder.WriteByte('_') + } + } + + result := strings.Trim(builder.String(), "_") + if result == "" { + return unknownVersion + } + return result +} + +func easypVersionFromBuildInfo(bi *debug.BuildInfo) string { + if bi == nil { + return develVersion + } + + if mainVersion := strings.TrimSpace(bi.Main.Version); mainVersion != "" && mainVersion != develMainVersion { + return replaceDirtyMarkers(mainVersion) + } + + return vcsDerivedVersion(bi) +} + +func vcsDerivedVersion(bi *debug.BuildInfo) string { + if bi == nil { + return develVersion + } + + revision := strings.TrimSpace(buildSetting(bi, "vcs.revision")) + if len(revision) > revisionPrefix { revision = revision[:revisionPrefix] } - if modified != "false" { - revision += "-modified" + if revision == "" { + return develVersion + } + + if buildSetting(bi, "vcs.modified") == "true" { + return revision + "-modified" + } + + return revision +} + +func replaceDirtyMarkers(value string) string { + if value == "" { + return value + } + + parts := strings.Split(value, "-") + for i, part := range parts { + if strings.EqualFold(part, "dirty") { + parts[i] = "modified" + } + } + + value = strings.Join(parts, "-") + value = strings.ReplaceAll(value, "+dirty", "+modified") + value = strings.ReplaceAll(value, "+DIRTY", "+modified") + value = strings.ReplaceAll(value, ".dirty", ".modified") + value = strings.ReplaceAll(value, ".DIRTY", ".modified") + + return value +} + +func dependencyVersion(bi *debug.BuildInfo, modulePath string) string { + if bi == nil { + return unknownVersion } - if time == "" { - return bi, revision + + for _, dep := range bi.Deps { + if dep.Path != modulePath { + continue + } + + if v := strings.TrimSpace(dep.Version); v != "" && v != develMainVersion { + return v + } + + if dep.Replace != nil { + if v := strings.TrimSpace(dep.Replace.Version); v != "" && v != develMainVersion { + return v + } + } + + return unknownVersion } - return bi, revision + " " + time + return unknownVersion } func buildSetting(bi *debug.BuildInfo, key string) string { diff --git a/internal/version/version_test.go b/internal/version/version_test.go new file mode 100644 index 00000000..56c3ff41 --- /dev/null +++ b/internal/version/version_test.go @@ -0,0 +1,292 @@ +package version + +import ( + "runtime/debug" + "testing" +) + +func TestEasypVersionFromBuildInfo(t *testing.T) { + t.Parallel() + + t.Run("stable main version", func(t *testing.T) { + t.Parallel() + + bi := &debug.BuildInfo{ + Main: debug.Module{Version: "v1.2.3"}, + } + + if got, want := easypVersionFromBuildInfo(bi), "v1.2.3"; got != want { + t.Fatalf("easypVersionFromBuildInfo() = %q, want %q", got, want) + } + }) + + t.Run("maps dirty marker to modified in main version", func(t *testing.T) { + t.Parallel() + + bi := &debug.BuildInfo{ + Main: debug.Module{Version: "v0.13.0-11-g6549e94-dirty"}, + } + + if got, want := easypVersionFromBuildInfo(bi), "v0.13.0-11-g6549e94-modified"; got != want { + t.Fatalf("easypVersionFromBuildInfo() = %q, want %q", got, want) + } + }) + + t.Run("devel main version with vcs fallback", func(t *testing.T) { + t.Parallel() + + bi := &debug.BuildInfo{ + Main: debug.Module{Version: develMainVersion}, + Settings: []debug.BuildSetting{ + {Key: "vcs.revision", Value: "1234567890abcdef"}, + {Key: "vcs.modified", Value: "true"}, + {Key: "vcs.time", Value: "2026-02-23T10:30:00Z"}, + }, + } + + if got, want := easypVersionFromBuildInfo(bi), "1234567-modified"; got != want { + t.Fatalf("easypVersionFromBuildInfo() = %q, want %q", got, want) + } + }) + + t.Run("devel main version with vcs revision", func(t *testing.T) { + t.Parallel() + + bi := &debug.BuildInfo{ + Main: debug.Module{Version: develMainVersion}, + Settings: []debug.BuildSetting{ + {Key: "vcs.revision", Value: "1234567890abcdef"}, + {Key: "vcs.modified", Value: "false"}, + }, + } + + if got, want := easypVersionFromBuildInfo(bi), "1234567"; got != want { + t.Fatalf("easypVersionFromBuildInfo() = %q, want %q", got, want) + } + }) + + t.Run("devel main version with no vcs metadata", func(t *testing.T) { + t.Parallel() + + bi := &debug.BuildInfo{ + Main: debug.Module{Version: develMainVersion}, + } + + if got, want := easypVersionFromBuildInfo(bi), develVersion; got != want { + t.Fatalf("easypVersionFromBuildInfo() = %q, want %q", got, want) + } + }) + + t.Run("nil build info", func(t *testing.T) { + t.Parallel() + + if got, want := easypVersionFromBuildInfo(nil), develVersion; got != want { + t.Fatalf("easypVersionFromBuildInfo(nil) = %q, want %q", got, want) + } + }) +} + +func TestDependencyVersion(t *testing.T) { + t.Parallel() + + t.Run("find dependency version", func(t *testing.T) { + t.Parallel() + + bi := &debug.BuildInfo{ + Deps: []*debug.Module{{Path: protocompileModulePath, Version: "v0.14.1"}}, + } + + if got, want := dependencyVersion(bi, protocompileModulePath), "v0.14.1"; got != want { + t.Fatalf("dependencyVersion() = %q, want %q", got, want) + } + }) + + t.Run("use replace version if direct is empty", func(t *testing.T) { + t.Parallel() + + bi := &debug.BuildInfo{ + Deps: []*debug.Module{{ + Path: protocompileModulePath, + Version: "", + Replace: &debug.Module{Version: "v0.15.0"}, + }}, + } + + if got, want := dependencyVersion(bi, protocompileModulePath), "v0.15.0"; got != want { + t.Fatalf("dependencyVersion() = %q, want %q", got, want) + } + }) + + t.Run("missing dependency", func(t *testing.T) { + t.Parallel() + + bi := &debug.BuildInfo{} + if got, want := dependencyVersion(bi, protocompileModulePath), unknownVersion; got != want { + t.Fatalf("dependencyVersion() = %q, want %q", got, want) + } + }) + + t.Run("nil build info", func(t *testing.T) { + t.Parallel() + + if got, want := dependencyVersion(nil, protocompileModulePath), unknownVersion; got != want { + t.Fatalf("dependencyVersion(nil) = %q, want %q", got, want) + } + }) +} + +func TestSemverMajorMinorPatch(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + rawVersion string + wantMajor int32 + wantMinor int32 + wantPatch int32 + }{ + { + name: "stable semver", + rawVersion: "v0.14.1", + wantMajor: 0, + wantMinor: 14, + wantPatch: 1, + }, + { + name: "without v prefix", + rawVersion: "1.2.3", + wantMajor: 1, + wantMinor: 2, + wantPatch: 3, + }, + { + name: "pseudo version", + rawVersion: "v0.0.0-20260223010101-abcdef123456", + wantMajor: 0, + wantMinor: 0, + wantPatch: 0, + }, + { + name: "invalid", + rawVersion: "oops", + wantMajor: 0, + wantMinor: 0, + wantPatch: 0, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + gotMajor, gotMinor, gotPatch := semverMajorMinorPatch(tt.rawVersion) + if gotMajor != tt.wantMajor || gotMinor != tt.wantMinor || gotPatch != tt.wantPatch { + t.Fatalf("semverMajorMinorPatch(%q) = (%d,%d,%d), want (%d,%d,%d)", + tt.rawVersion, + gotMajor, gotMinor, gotPatch, + tt.wantMajor, tt.wantMinor, tt.wantPatch, + ) + } + }) + } +} + +func TestCompilerVersionFromVersions(t *testing.T) { + t.Parallel() + + version := compilerVersionFromVersions("v0.14.1", "v0.13.1") + if got, want := version.GetMajor(), int32(0); got != want { + t.Fatalf("major = %d, want %d", got, want) + } + if got, want := version.GetMinor(), int32(14); got != want { + t.Fatalf("minor = %d, want %d", got, want) + } + if got, want := version.GetPatch(), int32(1); got != want { + t.Fatalf("patch = %d, want %d", got, want) + } + + wantSuffix := "v0.13.1-bufbuild-protocompile-easyp" + if got := version.GetSuffix(); got != wantSuffix { + t.Fatalf("suffix = %q, want %q", got, wantSuffix) + } +} + +func TestCompilerVersionFromVersionsWithSuffixes(t *testing.T) { + t.Parallel() + + version := compilerVersionFromVersions("v0.14.1-rc1", "v0.13.0-11-g6549e94-modified") + + if got, want := version.GetMajor(), int32(0); got != want { + t.Fatalf("major = %d, want %d", got, want) + } + if got, want := version.GetMinor(), int32(14); got != want { + t.Fatalf("minor = %d, want %d", got, want) + } + if got, want := version.GetPatch(), int32(1); got != want { + t.Fatalf("patch = %d, want %d", got, want) + } + + wantSuffix := "v0.13.0-bufbuild-protocompile-rc1-easyp-11-g6549e94-modified" + if got := version.GetSuffix(); got != wantSuffix { + t.Fatalf("suffix = %q, want %q", got, wantSuffix) + } +} + +func TestReplaceDirtyMarkers(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + raw string + want string + }{ + {name: "dash dirty", raw: "v0.13.0-11-g6549e94-dirty", want: "v0.13.0-11-g6549e94-modified"}, + {name: "build dirty", raw: "v0.13.0+dirty", want: "v0.13.0+modified"}, + {name: "dot dirty", raw: "v0.13.0+meta.dirty", want: "v0.13.0+meta.modified"}, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + if got := replaceDirtyMarkers(tt.raw); got != tt.want { + t.Fatalf("replaceDirtyMarkers(%q) = %q, want %q", tt.raw, got, tt.want) + } + }) + } +} + +func TestSanitizeSuffixToken(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + raw string + want string + }{ + { + name: "devel marker", + raw: develMainVersion, + want: develVersion, + }, + { + name: "special chars", + raw: "v1.2.3+meta data", + want: "v1.2.3_meta_data", + }, + { + name: "empty", + raw: "", + want: unknownVersion, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + if got := sanitizeSuffixToken(tt.raw); got != tt.want { + t.Fatalf("sanitizeSuffixToken(%q) = %q, want %q", tt.raw, got, tt.want) + } + }) + } +}