@silgrid/pi-web 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +9 -9
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.js +6 -6
- package/.next/required-server-files.json +6 -6
- package/.next/server/app/_global-error/page.js +2 -2
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
- package/.next/server/app/api/agent/[id]/bash-output/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/bg-tasks/[taskId]/kill/route.js +1 -1
- package/.next/server/app/api/agent/[id]/bg-tasks/[taskId]/kill/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/bg-tasks/[taskId]/logs/route.js +1 -1
- package/.next/server/app/api/agent/[id]/bg-tasks/[taskId]/logs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/bg-tasks/route.js +1 -1
- package/.next/server/app/api/agent/[id]/bg-tasks/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/lease/route.js +1 -1
- package/.next/server/app/api/agent/[id]/lease/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/route.js +1 -1
- package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/new/route.js +1 -1
- package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/running/route.js +1 -1
- package/.next/server/app/api/agent/running/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/app-update/route.js +1 -1
- package/.next/server/app/api/app-update/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
- package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/providers/route.js +1 -1
- package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/cwd/browse/route.js +1 -1
- package/.next/server/app/api/cwd/browse/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/cwd/validate/route.js +1 -1
- package/.next/server/app/api/cwd/validate/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/default-cwd/route.js +1 -1
- package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/file-index/route.js +1 -1
- package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/files/[...path]/route.js +1 -1
- package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git/diff/route.js +2 -2
- package/.next/server/app/api/git/diff/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git/status/route.js +1 -1
- package/.next/server/app/api/git/status/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/home/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models/route.js +1 -1
- package/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/catalog/route.js +1 -1
- package/.next/server/app/api/models-config/catalog/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/discover/route.js +1 -1
- package/.next/server/app/api/models-config/discover/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/route.js +1 -1
- package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/test/route.js +1 -1
- package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plugins/check/route.js +1 -1
- package/.next/server/app/api/plugins/check/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plugins/route.js +1 -1
- package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/project-trust/route.js +1 -1
- package/.next/server/app/api/project-trust/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/provider-usage/query/route.js +1 -1
- package/.next/server/app/api/provider-usage/query/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/push/config/route.js +1 -1
- package/.next/server/app/api/push/config/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/push/subscribe/route.js +1 -1
- package/.next/server/app/api/push/subscribe/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/auto-name/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/search/route.js +1 -1
- package/.next/server/app/api/sessions/search/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -1
- package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/install/route.js +1 -1
- package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/route.js +1 -1
- package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/search/route.js +1 -1
- package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/update/route.js +1 -1
- package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/subagents/[id]/route.js +1 -1
- package/.next/server/app/api/subagents/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/subagents/profiles/route.js +1 -1
- package/.next/server/app/api/subagents/profiles/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/subagents/settings/route.js +1 -1
- package/.next/server/app/api/subagents/settings/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/terminal/[id]/events/route.js +2 -2
- package/.next/server/app/api/terminal/[id]/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/terminal/[id]/route.js +1 -1
- package/.next/server/app/api/terminal/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/terminal/route.js +1 -1
- package/.next/server/app/api/terminal/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tools/settings/route.js +1 -1
- package/.next/server/app/api/tools/settings/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/web-auth/route.js +1 -1
- package/.next/server/app/api/web-auth/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/route.js +1 -1
- package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +4 -4
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login/page.js +1 -1
- package/.next/server/app/login/page.js.nft.json +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +3 -3
- package/.next/server/app/login.segments/_full.segment.rsc +3 -3
- package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js +20 -20
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +9 -9
- package/.next/server/chunks/1860.js +1 -1
- package/.next/server/chunks/2243.js +1 -1
- package/.next/server/chunks/2430.js +4 -4
- package/.next/server/chunks/3569.js +1 -1
- package/.next/server/chunks/3573.js +1 -0
- package/.next/server/chunks/4367.js +1 -1
- package/.next/server/chunks/4674.js +1 -1
- package/.next/server/chunks/4980.js +1 -1
- package/.next/server/chunks/6052.js +1 -1
- package/.next/server/chunks/7790.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware.js +3 -3
- package/.next/server/next-font-manifest.js +1 -1
- package/.next/server/next-font-manifest.json +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/1278-f833cc58666c594d.js +1 -0
- package/.next/static/chunks/app/_not-found/{page-4aac80d225231e36.js → page-aa3aeae20bff37cf.js} +1 -1
- package/.next/static/chunks/app/layout-f84ae55c3b3367ea.js +1 -0
- package/.next/static/chunks/app/login/{page-815e8450466affea.js → page-521a337b5ec4491e.js} +1 -1
- package/.next/static/chunks/app/page-59ed8079a95cad1b.js +283 -0
- package/.next/static/chunks/{main-app-14e4d7eee2133f9d.js → main-app-a98576891fdd8f60.js} +1 -1
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-30078bc26a2476fc.js +1 -0
- package/.next/trace +40 -40
- package/.next/trace-build +1 -1
- package/.next/types/app/api/agent/[id]/bash-output/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/bg-tasks/[taskId]/kill/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/bg-tasks/[taskId]/logs/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/bg-tasks/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/events/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/lease/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/route.ts +1 -1
- package/.next/types/app/api/agent/new/route.ts +1 -1
- package/.next/types/app/api/agent/running/route.ts +1 -1
- package/.next/types/app/api/app-update/route.ts +1 -1
- package/.next/types/app/api/auth/api-key/[provider]/route.ts +1 -1
- package/.next/types/app/api/auth/login/[provider]/route.ts +1 -1
- package/.next/types/app/api/auth/logout/[provider]/route.ts +1 -1
- package/.next/types/app/api/auth/providers/route.ts +1 -1
- package/.next/types/app/api/cwd/browse/route.ts +1 -1
- package/.next/types/app/api/cwd/validate/route.ts +1 -1
- package/.next/types/app/api/default-cwd/route.ts +1 -1
- package/.next/types/app/api/file-index/route.ts +1 -1
- package/.next/types/app/api/files/[...path]/route.ts +1 -1
- package/.next/types/app/api/git/diff/route.ts +1 -1
- package/.next/types/app/api/git/status/route.ts +1 -1
- package/.next/types/app/api/home/route.ts +1 -1
- package/.next/types/app/api/models/route.ts +1 -1
- package/.next/types/app/api/models-config/catalog/route.ts +1 -1
- package/.next/types/app/api/models-config/discover/route.ts +1 -1
- package/.next/types/app/api/models-config/route.ts +1 -1
- package/.next/types/app/api/models-config/test/route.ts +1 -1
- package/.next/types/app/api/plugins/check/route.ts +1 -1
- package/.next/types/app/api/plugins/route.ts +1 -1
- package/.next/types/app/api/project-trust/route.ts +1 -1
- package/.next/types/app/api/provider-usage/query/route.ts +1 -1
- package/.next/types/app/api/push/config/route.ts +1 -1
- package/.next/types/app/api/push/subscribe/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/auto-name/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/context/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/export/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/state/route.ts +1 -1
- package/.next/types/app/api/sessions/route.ts +1 -1
- package/.next/types/app/api/sessions/search/route.ts +1 -1
- package/.next/types/app/api/skills/check/route.ts +1 -1
- package/.next/types/app/api/skills/install/route.ts +1 -1
- package/.next/types/app/api/skills/route.ts +1 -1
- package/.next/types/app/api/skills/search/route.ts +1 -1
- package/.next/types/app/api/skills/update/route.ts +1 -1
- package/.next/types/app/api/subagents/[id]/route.ts +1 -1
- package/.next/types/app/api/subagents/profiles/route.ts +1 -1
- package/.next/types/app/api/subagents/settings/route.ts +1 -1
- package/.next/types/app/api/terminal/[id]/events/route.ts +1 -1
- package/.next/types/app/api/terminal/[id]/route.ts +1 -1
- package/.next/types/app/api/terminal/route.ts +1 -1
- package/.next/types/app/api/tools/settings/route.ts +1 -1
- package/.next/types/app/api/web-auth/route.ts +1 -1
- package/.next/types/app/api/worktrees/route.ts +1 -1
- package/.next/types/app/layout.ts +1 -1
- package/.next/types/app/login/page.ts +1 -1
- package/.next/types/app/page.ts +1 -1
- package/bin/pi-web-deploy.js +42 -0
- package/deploy-piweb.sh +53 -0
- package/package.json +5 -3
- package/.next/server/chunks/3907.js +0 -1
- package/.next/static/chunks/1278-efae9cc32e883ab7.js +0 -1
- package/.next/static/chunks/app/layout-a6caf92e84e665d2.js +0 -1
- package/.next/static/chunks/app/page-9c67870933d9ca8a.js +0 -283
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-eeb75bb921471360.js +0 -1
- /package/.next/static/{LjKuOrhAxmaoMmiEKpqEL → UvaNlkI1Ec_O35YDKRH9X}/_buildManifest.js +0 -0
- /package/.next/static/{LjKuOrhAxmaoMmiEKpqEL → UvaNlkI1Ec_O35YDKRH9X}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=4980,exports.ids=[4980],exports.modules={64980:(a,b,c)=>{c.d(b,{Zp:()=>bV});var d,e,f,g=c(85992),h=c(17904),i=0;let j=function(a){var b=++i;return(0,h.A)(a)+b};var k=c(86060),l=c(78959);let m=function(a){return(null==a?0:a.length)?(0,l.A)(a,1):[]};var n=c(38368),o=Math.ceil,p=Math.max;let q=function(a,b,c,d){for(var e=-1,f=p(o((b-a)/(c||1)),0),g=Array(f);f--;)g[d?f:++e]=a,a+=c;return g};var r=c(44878),s=c(93884),t=c(29163),u=c(18671);let v=function(a,b,c){if(!(0,u.A)(c))return!1;var d=typeof b;return("number"==d?!!((0,s.A)(c)&&(0,t.A)(b,c.length)):"string"==d&&b in c)&&(0,r.A)(c[b],a)};var w=/\s/;let x=function(a){for(var b=a.length;b--&&w.test(a.charAt(b)););return b};var y=/^\s+/,z=c(86340),A=0/0,B=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,D=/^0o[0-7]+$/i,E=parseInt;let F=function(a){if("number"==typeof a)return a;if((0,z.A)(a))return A;if((0,u.A)(a)){var b,c="function"==typeof a.valueOf?a.valueOf():a;a=(0,u.A)(c)?c+"":c}if("string"!=typeof a)return 0===a?a:+a;a=(b=a)?b.slice(0,x(b)+1).replace(y,""):b;var d=C.test(a);return d||D.test(a)?E(a.slice(2),d?2:8):B.test(a)?A:+a};var G=1/0;let H=function(a){return a?(a=F(a))===G||a===-G?(a<0?-1:1)*17976931348623157e292:a==a?a:0:0===a?a:0},I=function(a,b,c){return c&&"number"!=typeof c&&v(a,b,c)&&(b=c=void 0),a=H(a),void 0===b?(b=a,a=0):b=H(b),c=void 0===c?a<b?1:-1:H(c),q(a,b,c,void 0)};var J=c(96748);class K{constructor(){var a={};a._next=a._prev=a,this._sentinel=a}dequeue(){var a=this._sentinel,b=a._prev;if(b!==a)return L(b),b}enqueue(a){var b=this._sentinel;a._prev&&a._next&&L(a),a._next=b._next,b._next._prev=a,b._next=a,a._prev=b}toString(){for(var a=[],b=this._sentinel,c=b._prev;c!==b;)a.push(JSON.stringify(c,M)),c=c._prev;return"["+a.join(", ")+"]"}}function L(a){a._prev._next=a._next,a._next._prev=a._prev,delete a._next,delete a._prev}function M(a,b){if("_next"!==a&&"_prev"!==a)return b}var N=k.A(1);function O(a,b,c,d,e){var f=e?[]:void 0;return g.A(a.inEdges(d.v),function(d){var g=a.edge(d),h=a.node(d.v);e&&f.push({v:d.v,w:d.w}),h.out-=g,P(b,c,h)}),g.A(a.outEdges(d.v),function(d){var e=a.edge(d),f=d.w,g=a.node(f);g.in-=e,P(b,c,g)}),a.removeNode(d.v),f}function P(a,b,c){c.out?c.in?a[c.out-c.in+b].enqueue(c):a[a.length-1].enqueue(c):a[0].enqueue(c)}var Q=c(41573),R=c(71734);let S=function(a,b,c){(void 0===c||(0,r.A)(a[b],c))&&(void 0!==c||b in a)||(0,R.A)(a,b,c)};var T=c(56451),U=c(44564),V=c(43391),W=c(53149),X=c(65977),Y=c(73769),Z=c(4591),$=c(45015),_=c(1443),aa=c(10228),ab=c(64910),ac=c(91329),ad=c(93820),ae=Object.prototype,af=Function.prototype.toString,ag=ae.hasOwnProperty,ah=af.call(Object);let ai=function(a){if(!(0,ad.A)(a)||"[object Object]"!=(0,ab.A)(a))return!1;var b=(0,ac.A)(a);if(null===b)return!0;var c=ag.call(b,"constructor")&&b.constructor;return"function"==typeof c&&c instanceof c&&af.call(c)==ah};var aj=c(38426);let ak=function(a,b){if(("constructor"!==b||"function"!=typeof a[b])&&"__proto__"!=b)return a[b]};var al=c(19089),am=c(45092);let an=function(a,b,c,d,e,f,g){var h=ak(a,c),i=ak(b,c),j=g.get(i);if(j)return void S(a,c,j);var k=f?f(h,i,c+"",a,b,g):void 0,l=void 0===k;if(l){var m=(0,Z.A)(i),n=!m&&(0,_.A)(i),o=!m&&!n&&(0,aj.A)(i);(k=i,m||n||o)?(0,Z.A)(h)?k=h:(0,$.A)(h)?k=(0,W.A)(h):n?(l=!1,k=(0,U.A)(i,!0)):o?(l=!1,k=(0,V.A)(i,!0)):k=[]:ai(i)||(0,Y.A)(i)?(k=h,(0,Y.A)(h))?k=(0,al.A)(h,(0,am.A)(h)):(!(0,u.A)(h)||(0,aa.A)(h))&&(k=(0,X.A)(i)):l=!1}l&&(g.set(i,k),e(k,i,d,f,g),g.delete(i)),S(a,c,k)},ao=function a(b,c,d,e,f){b!==c&&(0,T.A)(c,function(g,h){if(f||(f=new Q.A),(0,u.A)(g))an(b,c,h,d,a,e,f);else{var i=e?e(ak(b,h),g,h+"",b,c,f):void 0;void 0===i&&(i=g),S(b,h,i)}},am.A)};var ap=c(9672),aq=(d=function(a,b,c){ao(a,b,c)},(0,ap.A)(function(a,b){var c=-1,e=b.length,f=e>1?b[e-1]:void 0,g=e>2?b[2]:void 0;for(f=d.length>3&&"function"==typeof f?(e--,f):void 0,g&&v(b[0],b[1],g)&&(f=e<3?void 0:f,e=1),a=Object(a);++c<e;){var h=b[c];h&&d(a,h,c)}return a})),ar=c(86296),as=c(17149),at=c(67285),au=c(47927);let av=function(a,b,c,d){if(!(0,u.A)(a))return a;b=(0,at.A)(b,a);for(var e=-1,f=b.length,g=f-1,h=a;null!=h&&++e<f;){var i=(0,au.A)(b[e]),j=c;if("__proto__"===i||"constructor"===i||"prototype"===i)break;if(e!=g){var k=h[i];void 0===(j=d?d(k,i,h):void 0)&&(j=(0,u.A)(k)?k:(0,t.A)(b[e+1])?[]:{})}(0,as.A)(h,i,j),h=h[i]}return a},aw=function(a,b,c){for(var d=-1,e=b.length,f={};++d<e;){var g=b[d],h=(0,ar.A)(a,g);c(h,g)&&av(f,(0,at.A)(g,a),h)}return f};var ax=c(67109),ay=c(50989),az=c(10874),aA=(e=function(a,b){return null==a?{}:aw(a,b,function(b,c){return(0,ax.A)(a,c)})},(0,az.A)((0,ay.A)(e,void 0,m),e+"")),aB=Object.prototype,aC=aB.hasOwnProperty,aD=(0,ap.A)(function(a,b){a=Object(a);var c=-1,d=b.length,e=d>2?b[2]:void 0;for(e&&v(b[0],b[1],e)&&(d=1);++c<d;)for(var f=b[c],g=(0,am.A)(f),h=-1,i=g.length;++h<i;){var j=g[h],k=a[j];(void 0===k||(0,r.A)(k,aB[j])&&!aC.call(a,j))&&(a[j]=f[j])}return a});let aE=function(a,b,c){for(var d=-1,e=a.length;++d<e;){var f=a[d],g=b(f);if(null!=g&&(void 0===h?g==g&&!(0,z.A)(g):c(g,h)))var h=g,i=f}return i},aF=function(a,b){return a>b};var aG=c(66994);let aH=function(a){return a&&a.length?aE(a,aG.A,aF):void 0},aI=function(a){var b=null==a?0:a.length;return b?a[b-1]:void 0};var aJ=c(62023),aK=c(78803);let aL=function(a,b){var c={};return b=(0,aK.A)(b,3),(0,aJ.A)(a,function(a,d,e){(0,R.A)(c,d,b(a,d,e))}),c};var aM=c(98122);let aN=function(a,b){return a<b},aO=function(a){return a&&a.length?aE(a,aG.A,aN):void 0};var aP=Object.prototype.hasOwnProperty;let aQ=function(a,b){return null!=a&&aP.call(a,b)};var aR=c(58560);let aS=function(a,b){return null!=a&&(0,aR.A)(a,b,aQ)};var aT=c(18623);let aU=function(){return aT.A.Date.now()};function aV(a,b,c,d){var e;do e=j(d);while(a.hasNode(e));return c.dummy=b,a.setNode(e,c),e}function aW(a){var b=new J.T({multigraph:a.isMultigraph()}).setGraph(a.graph());return g.A(a.nodes(),function(c){a.children(c).length||b.setNode(c,a.node(c))}),g.A(a.edges(),function(c){b.setEdge(c,a.edge(c))}),b}function aX(a,b){var c,d,e=a.x,f=a.y,g=b.x-e,h=b.y-f,i=a.width/2,j=a.height/2;if(!g&&!h)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(h)*i>Math.abs(g)*j?(h<0&&(j=-j),c=j*g/h,d=j):(g<0&&(i=-i),c=i,d=i*h/g),{x:e+c,y:f+d}}function aY(a){var b=n.A(I(a$(a)+1),function(){return[]});return g.A(a.nodes(),function(c){var d=a.node(c),e=d.rank;aM.A(e)||(b[e][d.order]=c)}),b}function aZ(a,b,c,d){var e={width:0,height:0};return arguments.length>=4&&(e.rank=c,e.order=d),aV(a,"border",e,b)}function a$(a){return aH(n.A(a.nodes(),function(b){var c=a.node(b).rank;if(!aM.A(c))return c}))}function a_(a,b){var c=aU();try{return b()}finally{console.log(a+" time: "+(aU()-c)+"ms")}}function a0(a,b){return b()}function a1(a,b,c,d,e,f){var g=e[b][f-1],h=aV(a,"border",{width:0,height:0,rank:f,borderType:b},c);e[b][f]=h,a.setParent(h,d),g&&a.setEdge(g,h,{weight:1})}function a2(a){g.A(a.nodes(),function(b){a3(a.node(b))}),g.A(a.edges(),function(b){a3(a.edge(b))})}function a3(a){var b=a.width;a.width=a.height,a.height=b}function a4(a){a.y=-a.y}function a5(a){var b=a.x;a.x=a.y,a.y=b}let a6=function(a,b){return a&&a.length?aE(a,(0,aK.A)(b,2),aN):void 0};function a7(a){var b={};g.A(a.sources(),function c(d){var e=a.node(d);if(Object.prototype.hasOwnProperty.call(b,d))return e.rank;b[d]=!0;var f=aO(n.A(a.outEdges(d),function(b){return c(b.w)-a.edge(b).minlen}));return(f===1/0||null==f)&&(f=0),e.rank=f})}function a8(a,b){return a.node(b.w).rank-a.node(b.v).rank-a.edge(b).minlen}function a9(a){var b,c,d,e,f=new J.T({directed:!1}),h=a.nodes()[0],i=a.nodeCount();for(f.setNode(h,{});b=f,c=a,g.A(b.nodes(),function a(d){g.A(c.nodeEdges(d),function(e){var f=e.v,g=d===f?e.w:f;b.hasNode(g)||a8(c,e)||(b.setNode(g,{}),b.setEdge(d,g,{}),a(g))})}),b.nodeCount()<i;)d=function(a,b){return a6(b.edges(),function(c){if(a.hasNode(c.v)!==a.hasNode(c.w))return a8(b,c)})}(f,a),e=f.hasNode(d.v)?a8(a,d):-a8(a,d),function(a,b,c){g.A(a.nodes(),function(a){b.node(a).rank+=c})}(f,a,e);return f}var ba=c(45680),bb=c(67853);let bc=function(a){var b=H(a),c=b%1;return b==b?c?b-c:b:0};var bd=Math.max,be=(f=function(a,b,c){var d=null==a?0:a.length;if(!d)return -1;var e=null==c?0:bc(c);return e<0&&(e=bd(d+e,0)),(0,bb.A)(a,(0,aK.A)(b,3),e)},function(a,b,c){var d=Object(a);if(!(0,s.A)(a)){var e=(0,aK.A)(b,3);a=(0,ba.A)(a),b=function(a){return e(d[a],a,d)}}var g=f(a,b,c);return g>-1?d[e?a[g]:g]:void 0}),bf=c(58617);k.A(1),k.A(1);var bg=c(61137),bh=c(91680),bi=(0,c(19919).A)("length"),bj=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),bk="\\ud800-\\udfff",bl="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",bm="\\ud83c[\\udffb-\\udfff]",bn="[^"+bk+"]",bo="(?:\\ud83c[\\udde6-\\uddff]){2}",bp="[\\ud800-\\udbff][\\udc00-\\udfff]",bq="(?:"+bl+"|"+bm+")?",br="[\\ufe0e\\ufe0f]?",bs="(?:\\u200d(?:"+[bn,bo,bp].join("|")+")"+br+bq+")*",bt=RegExp(bm+"(?="+bm+")|"+("(?:"+[bn+bl+"?",bl,bo,bp,"["+bk+"]"].join("|"))+")"+(br+bq+bs),"g");function bu(){}function bv(a,b,c){Z.A(b)||(b=[b]);var d=(a.isDirected()?a.successors:a.neighbors).bind(a),e=[],f={};return g.A(b,function(b){if(!a.hasNode(b))throw Error("Graph does not have node: "+b);!function a(b,c,d,e,f,h){!Object.prototype.hasOwnProperty.call(e,c)&&(e[c]=!0,d||h.push(c),g.A(f(c),function(c){a(b,c,d,e,f,h)}),d&&h.push(c))}(a,b,"post"===c,f,d,e)}),e}function bw(a){b=a,c=new J.T().setGraph(b.graph()),g.A(b.nodes(),function(a){c.setNode(a,b.node(a))}),g.A(b.edges(),function(a){var d=c.edge(a.v,a.w)||{weight:0,minlen:1},e=b.edge(a);c.setEdge(a.v,a.w,{weight:d.weight+e.weight,minlen:Math.max(d.minlen,e.minlen)})}),a7(a=c);var b,c,d,e,f=a9(a);for(bz(f),bx(f,a);d=bA(f);)e=bB(f,a,d),bC(f,a,d,e)}function bx(a,b){var c=bv(a,a.nodes(),"post");c=c.slice(0,c.length-1),g.A(c,function(c){var d,e,f,g;d=a,e=b,f=c,g=d.node(f).parent,d.edge(f,g).cutvalue=by(d,e,f)})}function by(a,b,c){var d=a.node(c).parent,e=!0,f=b.edge(c,d),h=0;return f||(e=!1,f=b.edge(d,c)),h=f.weight,g.A(b.nodeEdges(c),function(f){var g=f.v===c,i=g?f.w:f.v;if(i!==d){var j,k,l,m=g===e,n=b.edge(f).weight;if(h+=m?n:-n,j=a,k=c,l=i,j.hasEdge(k,l)){var o=a.edge(c,i).cutvalue;h+=m?-o:o}}}),h}function bz(a,b){arguments.length<2&&(b=a.nodes()[0]),function a(b,c,d,e,f){var h=d,i=b.node(e);return c[e]=!0,g.A(b.neighbors(e),function(f){Object.prototype.hasOwnProperty.call(c,f)||(d=a(b,c,d,f,e))}),i.low=h,i.lim=d++,f?i.parent=f:delete i.parent,d}(a,{},1,b)}function bA(a){return be(a.edges(),function(b){return a.edge(b).cutvalue<0})}function bB(a,b,c){var d=c.v,e=c.w;b.hasEdge(d,e)||(d=c.w,e=c.v);var f=a.node(d),g=a.node(e),h=f,i=!1;return f.lim>g.lim&&(h=g,i=!0),a6(bf.A(b.edges(),function(b){return i===bD(a,a.node(b.v),h)&&i!==bD(a,a.node(b.w),h)}),function(a){return a8(b,a)})}function bC(a,b,c,d){var e,f,h,i,j=c.v,k=c.w;a.removeEdge(j,k),a.setEdge(d.v,d.w,{}),bz(a),bx(a,b),e=a,f=b,h=be(e.nodes(),function(a){return!f.node(a).parent}),i=(i=bv(e,h,"pre")).slice(1),g.A(i,function(a){var b=e.node(a).parent,c=f.edge(a,b),d=!1;c||(c=f.edge(b,a),d=!0),f.node(a).rank=f.node(b).rank+(d?c.minlen:-c.minlen)})}function bD(a,b,c){return c.low<=b.lim&&b.lim<=c.lim}bu.prototype=Error(),c(33456),bw.initLowLimValues=bz,bw.initCutValues=bx,bw.calcCutValue=by,bw.leaveEdge=bA,bw.enterEdge=bB,bw.exchangeEdges=bC;var bE=c(21152),bF=c(46171),bG=c(30108);let bH=function(a,b,c){for(var d=-1,e=a.length,f=b.length,g={};++d<e;){var h=d<f?b[d]:void 0;c(g,a[d],h)}return g};var bI=c(44090),bJ=c(87826);let bK=function(a,b){var c=a.length;for(a.sort(b);c--;)a[c]=a[c].value;return a};var bL=c(63095);let bM=function(a,b){if(a!==b){var c=void 0!==a,d=null===a,e=a==a,f=(0,z.A)(a),g=void 0!==b,h=null===b,i=b==b,j=(0,z.A)(b);if(!h&&!j&&!f&&a>b||f&&g&&i&&!h&&!j||d&&g&&i||!c&&i||!e)return 1;if(!d&&!f&&!j&&a<b||j&&c&&e&&!d&&!f||h&&c&&e||!g&&e||!i)return -1}return 0},bN=function(a,b,c){for(var d=-1,e=a.criteria,f=b.criteria,g=e.length,h=c.length;++d<g;){var i=bM(e[d],f[d]);if(i){if(d>=h)return i;return i*("desc"==c[d]?-1:1)}}return a.index-b.index},bO=function(a,b,c){b=b.length?(0,bI.A)(b,function(a){return(0,Z.A)(a)?function(b){return(0,ar.A)(b,1===a.length?a[0]:a)}:a}):[aG.A];var d=-1;return b=(0,bI.A)(b,(0,bL.A)(aK.A)),bK((0,bJ.A)(a,function(a,c,e){return{criteria:(0,bI.A)(b,function(b){return b(a)}),index:++d,value:a}}),function(a,b){return bN(a,b,c)})};var bP=(0,ap.A)(function(a,b){if(null==a)return[];var c=b.length;return c>1&&v(a,b[0],b[1])?b=[]:c>2&&v(b[0],b[1],b[2])&&(b=[b[0]]),bO(a,(0,l.A)(b,1),[])});function bQ(a,b,c){for(var d;b.length&&(d=aI(b)).i<=c;)b.pop(),a.push(d.vs),c++;return c}function bR(a,b,c){return n.A(b,function(b){var d,e;return d=function(a){for(var b;a.hasNode(b=j("_root")););return b}(a),e=new J.T({compound:!0}).setGraph({root:d}).setDefaultNodeLabel(function(b){return a.node(b)}),g.A(a.nodes(),function(f){var h=a.node(f),i=a.parent(f);(h.rank===b||h.minRank<=b&&b<=h.maxRank)&&(e.setNode(f),e.setParent(f,i||d),g.A(a[c](f),function(b){var c=b.v===f?b.w:b.v,d=e.edge(c,f),g=aM.A(d)?0:d.weight;e.setEdge(c,f,{weight:a.edge(b).weight+g})}),Object.prototype.hasOwnProperty.call(h,"minRank")&&e.setNode(f,{borderLeft:h.borderLeft[b],borderRight:h.borderRight[b]}))}),e})}function bS(a,b){g.A(b,function(b){g.A(b,function(b,c){a.node(b).order=c})})}var bT=c(62320);function bU(a,b,c){if(b>c){var d=b;b=c,c=d}Object.prototype.hasOwnProperty.call(a,b)||Object.defineProperty(a,b,{enumerable:!0,configurable:!0,value:{},writable:!0}),Object.defineProperty(a[b],c,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function bV(a,b){var c=b&&b.debugTiming?a_:a0;c("layout",()=>{var b=c(" buildLayoutGraph",()=>{var b,c,d;return b=a,c=new J.T({multigraph:!0,compound:!0}),d=b3(b.graph()),c.setGraph(aq({},bX,b2(d,bW),aA(d,bY))),g.A(b.nodes(),function(a){var d=b3(b.node(a));c.setNode(a,aD(b2(d,bZ),b$)),c.setParent(a,b.parent(a))}),g.A(b.edges(),function(a){var d=b3(b.edge(a));c.setEdge(a,aq({},b0,b2(d,b_),aA(d,b1)))}),c});c(" runLayout",()=>{var a,d;return a=b,void((d=c)(" makeSpaceForEdgeLabels",()=>{var b,c;return c=(b=a).graph(),void(c.ranksep/=2,g.A(b.edges(),function(a){var d=b.edge(a);d.minlen*=2,"c"!==d.labelpos.toLowerCase()&&("TB"===c.rankdir||"BT"===c.rankdir?d.width+=d.labeloffset:d.height+=d.labeloffset)}))}),d(" removeSelfEdges",()=>{var b;return b=a,void g.A(b.edges(),function(a){if(a.v===a.w){var c=b.node(a.v);c.selfEdges||(c.selfEdges=[]),c.selfEdges.push({e:a,label:b.edge(a)}),b.removeEdge(a)}})}),d(" acyclic",()=>{var b,c,d,e,f,h;return b="greedy"===a.graph().acyclicer?function(a,b){if(1>=a.nodeCount())return[];var c,d,e,f,h,i,j,k=(c=a,d=b||N,e=new J.T,f=0,h=0,g.A(c.nodes(),function(a){e.setNode(a,{v:a,in:0,out:0})}),g.A(c.edges(),function(a){var b=e.edge(a.v,a.w)||0,c=d(a);e.setEdge(a.v,a.w,b+c),h=Math.max(h,e.node(a.v).out+=c),f=Math.max(f,e.node(a.w).in+=c)}),i=I(h+f+3).map(function(){return new K}),j=f+1,g.A(e.nodes(),function(a){P(i,j,e.node(a))}),{graph:e,buckets:i,zeroIdx:j}),l=function(a,b,c){for(var d,e=[],f=b[b.length-1],g=b[0];a.nodeCount();){for(;d=g.dequeue();)O(a,b,c,d);for(;d=f.dequeue();)O(a,b,c,d);if(a.nodeCount()){for(var h=b.length-2;h>0;--h)if(d=b[h].dequeue()){e=e.concat(O(a,b,c,d,!0));break}}}return e}(k.graph,k.buckets,k.zeroIdx);return m(n.A(l,function(b){return a.outEdges(b.v,b.w)}))}(a,(c=a,function(a){return c.edge(a).weight})):(d=a,e=[],f={},h={},g.A(d.nodes(),function a(b){Object.prototype.hasOwnProperty.call(h,b)||(h[b]=!0,f[b]=!0,g.A(d.outEdges(b),function(b){Object.prototype.hasOwnProperty.call(f,b.w)?e.push(b):a(b.w)}),delete f[b])}),e),void g.A(b,function(b){var c=a.edge(b);a.removeEdge(b),c.forwardName=b.name,c.reversed=!0,a.setEdge(b.w,b.v,c,j("rev"))})}),d(" nestingGraph.run",()=>{var b,c,d,e,f,h,i,j;return b=aV(a,"root",{},"_root"),h=a,i={},g.A(h.children(),function(a){!function a(b,c){var d=h.children(b);d&&d.length&&g.A(d,function(b){a(b,c+1)}),i[b]=c}(a,1)}),c=i,e=2*(d=aH(bE.A(c))-1)+1,a.graph().nestingRoot=b,g.A(a.edges(),function(b){a.edge(b).minlen*=e}),f=(j=a,bF.A(j.edges(),function(a,b){return a+j.edge(b).weight},0)+1),void(g.A(a.children(),function(h){!function a(b,c,d,e,f,h,i){var j=b.children(i);if(!j.length){i!==c&&b.setEdge(c,i,{weight:0,minlen:d});return}var k=aZ(b,"_bt"),l=aZ(b,"_bb"),m=b.node(i);b.setParent(k,i),m.borderTop=k,b.setParent(l,i),m.borderBottom=l,g.A(j,function(g){a(b,c,d,e,f,h,g);var j=b.node(g),m=j.borderTop?j.borderTop:g,n=j.borderBottom?j.borderBottom:g,o=j.borderTop?e:2*e,p=m!==n?1:f-h[i]+1;b.setEdge(k,m,{weight:o,minlen:p,nestingEdge:!0}),b.setEdge(n,l,{weight:o,minlen:p,nestingEdge:!0})}),b.parent(i)||b.setEdge(c,k,{weight:0,minlen:f+h[i]})}(a,b,e,f,d,c,h)}),a.graph().nodeRankFactor=e)}),d(" rank",()=>(function(a){switch(a.graph().ranker){case"network-simplex":default:bw(a);break;case"tight-tree":var b;a7(b=a),a9(b);break;case"longest-path":a7(a)}})(aW(a))),d(" injectEdgeLabelProxies",()=>{var b;return b=a,void g.A(b.edges(),function(a){var c=b.edge(a);if(c.width&&c.height){var d=b.node(a.v),e={rank:(b.node(a.w).rank-d.rank)/2+d.rank,e:a};aV(b,"edge-proxy",e,"_ep")}})}),d(" removeEmptyRanks",()=>{var b,c,d,e;return b=aO(n.A(a.nodes(),function(b){return a.node(b).rank})),c=[],g.A(a.nodes(),function(d){var e=a.node(d).rank-b;c[e]||(c[e]=[]),c[e].push(d)}),d=0,e=a.graph().nodeRankFactor,void g.A(c,function(b,c){aM.A(b)&&c%e!=0?--d:d&&g.A(b,function(b){a.node(b).rank+=d})})}),d(" nestingGraph.cleanup",()=>{var b;return b=a.graph(),void(a.removeNode(b.nestingRoot),delete b.nestingRoot,g.A(a.edges(),function(b){a.edge(b).nestingEdge&&a.removeEdge(b)}))}),d(" normalizeRanks",()=>{var b;return b=aO(n.A(a.nodes(),function(b){return a.node(b).rank})),void g.A(a.nodes(),function(c){var d=a.node(c);aS(d,"rank")&&(d.rank-=b)})}),d(" assignRankMinMax",()=>{var b,c;return b=a,c=0,void(g.A(b.nodes(),function(a){var d=b.node(a);d.borderTop&&(d.minRank=b.node(d.borderTop).rank,d.maxRank=b.node(d.borderBottom).rank,c=aH(c,d.maxRank))}),b.graph().maxRank=c)}),d(" removeEdgeLabelProxies",()=>{var b;return b=a,void g.A(b.nodes(),function(a){var c=b.node(a);"edge-proxy"===c.dummy&&(b.edge(c.e).labelRank=c.rank,b.removeNode(a))})}),d(" normalize.run",()=>{a.graph().dummyChains=[],g.A(a.edges(),function(b){!function(a,b){var c,d,e=b.v,f=a.node(e).rank,g=b.w,h=a.node(g).rank,i=b.name,j=a.edge(b),k=j.labelRank;if(h!==f+1){a.removeEdge(b);var l=void 0;for(d=0,++f;f<h;++d,++f)j.points=[],c=aV(a,"edge",l={width:0,height:0,edgeLabel:j,edgeObj:b,rank:f},"_d"),f===k&&(l.width=j.width,l.height=j.height,l.dummy="edge-label",l.labelpos=j.labelpos),a.setEdge(e,c,{weight:j.weight},i),0===d&&a.graph().dummyChains.push(c),e=c;a.setEdge(e,g,{weight:j.weight},i)}}(a,b)})}),d(" parentDummyChains",()=>{var b,c,d,e;return c=a,d={},e=0,g.A(c.children(),function a(b){var f=e;g.A(c.children(b),a),d[b]={low:f,lim:e++}}),b=d,void g.A(a.graph().dummyChains,function(c){for(var d=a.node(c),e=d.edgeObj,f=function(a,b,c,d){var e,f,g=[],h=[],i=Math.min(b[c].low,b[d].low),j=Math.max(b[c].lim,b[d].lim);e=c;do g.push(e=a.parent(e));while(e&&(b[e].low>i||j>b[e].lim));for(f=e,e=d;(e=a.parent(e))!==f;)h.push(e);return{path:g.concat(h.reverse()),lca:f}}(a,b,e.v,e.w),g=f.path,h=f.lca,i=0,j=g[0],k=!0;c!==e.w;){if(d=a.node(c),k){for(;(j=g[i])!==h&&a.node(j).maxRank<d.rank;)i++;j===h&&(k=!1)}if(!k){for(;i<g.length-1&&a.node(j=g[i+1]).minRank<=d.rank;)i++;j=g[i]}a.setParent(c,j),c=a.successors(c)[0]}})}),d(" addBorderSegments",()=>{g.A(a.children(),function b(c){var d=a.children(c),e=a.node(c);if(d.length&&g.A(d,b),Object.prototype.hasOwnProperty.call(e,"minRank")){e.borderLeft=[],e.borderRight=[];for(var f=e.minRank,h=e.maxRank+1;f<h;++f)a1(a,"borderLeft","_bl",c,e,f),a1(a,"borderRight","_br",c,e,f)}})}),d(" order",()=>(function(a){var b=a$(a),c=bR(a,I(1,b+1),"inEdges"),d=bR(a,I(b-1,-1,-1),"outEdges"),e=(f={},h=bf.A(a.nodes(),function(b){return!a.children(b).length}),i=aH(n.A(h,function(b){return a.node(b).rank})),j=n.A(I(i+1),function(){return[]}),k=bP(h,function(b){return a.node(b).rank}),g.A(k,function b(c){aS(f,c)||(f[c]=!0,j[a.node(c).rank].push(c),g.A(a.successors(c),b))}),j);bS(a,e);for(var f,h,i,j,k,l,o=1/0,p=0,q=0;q<4;++p,++q){(function(a,b){var c=new J.T;g.A(a,function(a){var d,e,f,h=a.graph().root,i=function a(b,c,d,e){var f,h,i,j,k,l,o,p,q,r,s,t,u=b.children(c),v=b.node(c),w=v?v.borderLeft:void 0,x=v?v.borderRight:void 0,y={};w&&(u=bf.A(u,function(a){return a!==w&&a!==x}));var z=(f=u,n.A(f,function(a){var c=b.inEdges(a);if(!c.length)return{v:a};var d=bF.A(c,function(a,c){var d=b.edge(c),e=b.node(c.v);return{sum:a.sum+d.weight*e.order,weight:a.weight+d.weight}},{sum:0,weight:0});return{v:a,barycenter:d.sum/d.weight,weight:d.weight}}));g.A(z,function(c){if(b.children(c.v).length){var f,g,h=a(b,c.v,d,e);y[c.v]=h,Object.prototype.hasOwnProperty.call(h,"barycenter")&&(f=c,g=h,aM.A(f.barycenter)?(f.barycenter=g.barycenter,f.weight=g.weight):(f.barycenter=(f.barycenter*f.weight+g.barycenter*g.weight)/(f.weight+g.weight),f.weight+=g.weight))}});var A=(h={},g.A(z,function(a,b){var c=h[a.v]={indegree:0,in:[],out:[],vs:[a.v],i:b};aM.A(a.barycenter)||(c.barycenter=a.barycenter,c.weight=a.weight)}),g.A(d.edges(),function(a){var b=h[a.v],c=h[a.w];aM.A(b)||aM.A(c)||(c.indegree++,b.out.push(h[a.w]))}),function(a){for(var b=[];a.length;){var c=a.pop();b.push(c),g.A(c.in.reverse(),function(a){return function(b){!b.merged&&(aM.A(b.barycenter)||aM.A(a.barycenter)||b.barycenter>=a.barycenter)&&function(a,b){var c=0,d=0;a.weight&&(c+=a.barycenter*a.weight,d+=a.weight),b.weight&&(c+=b.barycenter*b.weight,d+=b.weight),a.vs=b.vs.concat(a.vs),a.barycenter=c/d,a.weight=d,a.i=Math.min(b.i,a.i),b.merged=!0}(a,b)}}(c)),g.A(c.out,function(b){return function(c){c.in.push(b),0==--c.indegree&&a.push(c)}}(c))}return n.A(bf.A(b,function(a){return!a.merged}),function(a){return aA(a,["vs","i","barycenter","weight"])})}(bf.A(h,function(a){return!a.indegree})));!function(a,b){g.A(a,function(a){a.vs=m(a.vs.map(function(a){return b[a]?b[a].vs:a}))})}(A,y);var B=(l=(i=function(a){return Object.prototype.hasOwnProperty.call(a,"barycenter")},j={lhs:[],rhs:[]},g.A(A,function(a){i(a)?j.lhs.push(a):j.rhs.push(a)}),k=j).lhs,o=bP(k.rhs,function(a){return-a.i}),p=[],q=0,r=0,s=0,l.sort(function(a){return function(b,c){return b.barycenter<c.barycenter?-1:b.barycenter>c.barycenter?1:a?c.i-b.i:b.i-c.i}}(!!e)),s=bQ(p,o,s),g.A(l,function(a){s+=a.vs.length,p.push(a.vs),q+=a.barycenter*a.weight,r+=a.weight,s=bQ(p,o,s)}),t={vs:m(p)},r&&(t.barycenter=q/r,t.weight=r),t);if(w&&(B.vs=m([w,B.vs,x]),b.predecessors(w).length)){var C=b.node(b.predecessors(w)[0]),D=b.node(b.predecessors(x)[0]);Object.prototype.hasOwnProperty.call(B,"barycenter")||(B.barycenter=0,B.weight=0),B.barycenter=(B.barycenter*B.weight+C.order+D.order)/(B.weight+2),B.weight+=2}return B}(a,h,c,b);g.A(i.vs,function(b,c){a.node(b).order=c}),d=i.vs,f={},g.A(d,function(b){for(var d,g,h=a.parent(b);h;){if((d=a.parent(h))?(g=f[d],f[d]=h):(g=e,e=h),g&&g!==h)return void c.setEdge(g,h);h=d}})})})(p%2?c:d,p%4>=2),e=aY(a);var r,s=function(a,b){for(var c=0,d=1;d<b.length;++d)c+=function(a,b,c){for(var d=bH(c||[],n.A(c,function(a,b){return b})||[],as.A),e=m(n.A(b,function(b){return bP(n.A(a.outEdges(b),function(b){return{pos:d[b.w],weight:a.edge(b).weight}}),"pos")})),f=1;f<c.length;)f<<=1;var h=2*f-1;f-=1;var i=n.A(Array(h),function(){return 0}),j=0;return g.A(e.forEach(function(a){var b=a.pos+f;i[b]+=a.weight;for(var c=0;b>0;)b%2&&(c+=i[b+1]),b=b-1>>1,i[b]+=a.weight;j+=a.weight*c})),j}(a,b[d-1],b[d]);return c}(a,e);s<o&&(q=0,r=e,l=(0,bG.A)(r,5),o=s)}bS(a,l)})(a)),d(" insertSelfEdges",()=>{var b,c;return c=aY(b=a),void g.A(c,function(a){var c=0;g.A(a,function(a,d){var e=b.node(a);e.order=d+c,g.A(e.selfEdges,function(a){aV(b,"selfedge",{width:a.label.width,height:a.label.height,rank:e.rank,order:d+ ++c,e:a.e,label:a.label},"_se")}),delete e.selfEdges})})}),d(" adjustCoordinateSystem",()=>{var b;("lr"===(b=a.graph().rankdir.toLowerCase())||"rl"===b)&&a2(a)}),d(" position",()=>{var b,c,d,e,f,h,i,j,k,l,m,o,p,q,r,s,t;r=aY(q=b=aW(b=a)),s=q.graph().ranksep,t=0,g.A(r,function(a){var b=aH(n.A(a,function(a){return q.node(a).height}));g.A(a,function(a){q.node(a).y=t+b/2}),t+=b+s}),e=aY(c=b),h=aq((f={},bF.A(e,function(a,b){var d=0,e=0,h=a.length,i=aI(b);return g.A(b,function(a,j){var k=function(a,b){if(a.node(b).dummy)return be(a.predecessors(b),function(b){return a.node(b).dummy})}(c,a),l=k?c.node(k).order:h;(k||a===i)&&(g.A(b.slice(e,j+1),function(a){g.A(c.predecessors(a),function(b){var e=c.node(b),g=e.order;(g<d||l<g)&&!(e.dummy&&c.node(a).dummy)&&bU(f,b,a)})}),e=j+1,d=l)}),b}),f),function(a,b){var c={};function d(b,d,e,f,h){var i;g.A(I(d,e),function(d){i=b[d],a.node(i).dummy&&g.A(a.predecessors(i),function(b){var d=a.node(b);d.dummy&&(d.order<f||d.order>h)&&bU(c,b,i)})})}return bF.A(b,function(b,c){var e,f=-1,h=0;return g.A(c,function(g,i){if("border"===a.node(g).dummy){var j=a.predecessors(g);j.length&&(e=a.node(j[0]).order,d(c,h,i,f,e),h=i,f=e)}d(c,h,c.length,e,b.length)}),c}),c}(c,e)),i={},g.A(["u","d"],function(a){d="u"===a?e:bE.A(e).reverse(),g.A(["l","r"],function(b){"r"===b&&(d=n.A(d,function(a){return bE.A(a).reverse()}));var e,f,j,k,l=("u"===a?c.predecessors:c.successors).bind(c),m=(e=d,f={},j={},k={},g.A(e,function(a){g.A(a,function(a,b){f[a]=a,j[a]=a,k[a]=b})}),g.A(e,function(a){var b=-1;g.A(a,function(a){var c=l(a);if(c.length)for(var d=((c=bP(c,function(a){return k[a]})).length-1)/2,e=Math.floor(d),g=Math.ceil(d);e<=g;++e){var i=c[e];j[a]===a&&b<k[i]&&!function(a,b,c){if(b>c){var d=b;b=c,c=d}return!!a[b]&&Object.prototype.hasOwnProperty.call(a[b],c)}(h,a,i)&&(j[i]=a,j[a]=f[a]=f[i],b=k[i])}})}),{root:f,align:j}),o=function(a,b,c,d,e){var f,h,i,j,k,l,m,n,o,p,q={},r=(f=a,h=b,i=c,j=e,n=new J.T,p=(k=(o=f.graph()).nodesep,l=o.edgesep,m=j,function(a,b,c){var d,e,f=a.node(b),g=a.node(c);if(d=0+f.width/2,Object.prototype.hasOwnProperty.call(f,"labelpos"))switch(f.labelpos.toLowerCase()){case"l":e=-f.width/2;break;case"r":e=f.width/2}if(e&&(d+=m?e:-e),e=0,d+=(f.dummy?l:k)/2,d+=(g.dummy?l:k)/2,d+=g.width/2,Object.prototype.hasOwnProperty.call(g,"labelpos"))switch(g.labelpos.toLowerCase()){case"l":e=g.width/2;break;case"r":e=-g.width/2}return e&&(d+=m?e:-e),e=0,d}),g.A(h,function(a){var b;g.A(a,function(a){var c=i[a];if(n.setNode(c),b){var d=i[b],e=n.edge(d,c);n.setEdge(d,c,Math.max(p(f,a,b),e||0))}b=a})}),n),s=e?"borderLeft":"borderRight";function t(a,b){for(var c=r.nodes(),d=c.pop(),e={};d;)e[d]?a(d):(e[d]=!0,c.push(d),c=c.concat(b(d))),d=c.pop()}return t(function(a){q[a]=r.inEdges(a).reduce(function(a,b){return Math.max(a,q[b.v]+r.edge(b))},0)},r.predecessors.bind(r)),t(function(b){var c=r.outEdges(b).reduce(function(a,b){return Math.min(a,q[b.w]-r.edge(b))},1/0),d=a.node(b);c!==1/0&&d.borderType!==s&&(q[b]=Math.max(q[b],c))},r.successors.bind(r)),g.A(d,function(a){q[a]=q[c[a]]}),q}(c,d,m.root,m.align,"r"===b);"r"===b&&(o=aL(o,function(a){return-a})),i[a+b]=o})}),j=a6(bE.A(i),function(a){var b,d=-1/0,e=1/0;return b=function(a,b){var f,g,h=(f=c,g=b,f.node(g).width/2);d=Math.max(a+h,d),e=Math.min(a-h,e)},null==a||(0,T.A)(a,(0,bT.A)(b),am.A),d-e}),l=aO(k=bE.A(j)),m=aH(k),g.A(["u","d"],function(a){g.A(["l","r"],function(b){var c,d=a+b,e=i[d];if(e!==j){var f=bE.A(e);(c="l"===b?l-aO(f):m-aH(f))&&(i[d]=aL(e,function(a){return a+c}))}})}),o=c.graph().align,p=aL(i.ul,function(a,b){if(o)return i[o.toLowerCase()][b];var c=bP(n.A(i,b));return(c[1]+c[2])/2}),p&&(0,aJ.A)(p,(0,bT.A)(function(a,c){b.node(c).x=a}))}),d(" positionSelfEdges",()=>{var b;return b=a,void g.A(b.nodes(),function(a){var c=b.node(a);if("selfedge"===c.dummy){var d=b.node(c.e.v),e=d.x+d.width/2,f=d.y,g=c.x-e,h=d.height/2;b.setEdge(c.e,c.label),b.removeNode(a),c.label.points=[{x:e+2*g/3,y:f-h},{x:e+5*g/6,y:f-h},{x:e+g,y:f},{x:e+5*g/6,y:f+h},{x:e+2*g/3,y:f+h}],c.label.x=c.x,c.label.y=c.y}})}),d(" removeBorderNodes",()=>{var b;return b=a,void(g.A(b.nodes(),function(a){if(b.children(a).length){var c=b.node(a),d=b.node(c.borderTop),e=b.node(c.borderBottom),f=b.node(aI(c.borderLeft)),g=b.node(aI(c.borderRight));c.width=Math.abs(g.x-f.x),c.height=Math.abs(e.y-d.y),c.x=f.x+c.width/2,c.y=d.y+c.height/2}}),g.A(b.nodes(),function(a){"border"===b.node(a).dummy&&b.removeNode(a)}))}),d(" normalize.undo",()=>{g.A(a.graph().dummyChains,function(b){var c,d=a.node(b),e=d.edgeLabel;for(a.setEdge(d.edgeObj,e);d.dummy;)c=a.successors(b)[0],a.removeNode(b),e.points.push({x:d.x,y:d.y}),"edge-label"===d.dummy&&(e.x=d.x,e.y=d.y,e.width=d.width,e.height=d.height),b=c,d=a.node(b)})}),d(" fixupEdgeLabelCoords",()=>{var b;return b=a,void g.A(b.edges(),function(a){var c=b.edge(a);if(Object.prototype.hasOwnProperty.call(c,"x"))switch(("l"===c.labelpos||"r"===c.labelpos)&&(c.width-=c.labeloffset),c.labelpos){case"l":c.x-=c.width/2+c.labeloffset;break;case"r":c.x+=c.width/2+c.labeloffset}})}),d(" undoCoordinateSystem",()=>{var b,c,d;("bt"===(b=a.graph().rankdir.toLowerCase())||"rl"===b)&&(c=a,g.A(c.nodes(),function(a){a4(c.node(a))}),g.A(c.edges(),function(a){var b=c.edge(a);g.A(b.points,a4),Object.prototype.hasOwnProperty.call(b,"y")&&a4(b)})),("lr"===b||"rl"===b)&&(d=a,g.A(d.nodes(),function(a){a5(d.node(a))}),g.A(d.edges(),function(a){var b=d.edge(a);g.A(b.points,a5),Object.prototype.hasOwnProperty.call(b,"x")&&a5(b)}),a2(a))}),d(" translateGraph",()=>(function(a){var b=1/0,c=0,d=1/0,e=0,f=a.graph(),h=f.marginx||0,i=f.marginy||0;function j(a){var f=a.x,g=a.y,h=a.width,i=a.height;b=Math.min(b,f-h/2),c=Math.max(c,f+h/2),d=Math.min(d,g-i/2),e=Math.max(e,g+i/2)}g.A(a.nodes(),function(b){j(a.node(b))}),g.A(a.edges(),function(b){var c=a.edge(b);Object.prototype.hasOwnProperty.call(c,"x")&&j(c)}),b-=h,d-=i,g.A(a.nodes(),function(c){var e=a.node(c);e.x-=b,e.y-=d}),g.A(a.edges(),function(c){var e=a.edge(c);g.A(e.points,function(a){a.x-=b,a.y-=d}),Object.prototype.hasOwnProperty.call(e,"x")&&(e.x-=b),Object.prototype.hasOwnProperty.call(e,"y")&&(e.y-=d)}),f.width=c-b+h,f.height=e-d+i})(a)),d(" assignNodeIntersects",()=>{var b;return b=a,void g.A(b.edges(),function(a){var c,d,e=b.edge(a),f=b.node(a.v),g=b.node(a.w);e.points?(c=e.points[0],d=e.points[e.points.length-1]):(e.points=[],c=g,d=f),e.points.unshift(aX(f,c)),e.points.push(aX(g,d))})}),d(" reversePoints",()=>{var b;return b=a,void g.A(b.edges(),function(a){var c=b.edge(a);c.reversed&&c.points.reverse()})}),d(" acyclic.undo",()=>{g.A(a.edges(),function(b){var c=a.edge(b);if(c.reversed){a.removeEdge(b);var d=c.forwardName;delete c.reversed,delete c.forwardName,a.setEdge(b.w,b.v,c,d)}})}))}),c(" updateInputGraph",()=>{var c,d;return c=a,d=b,void(g.A(c.nodes(),function(a){var b=c.node(a),e=d.node(a);b&&(b.x=e.x,b.y=e.y,d.children(a).length&&(b.width=e.width,b.height=e.height))}),g.A(c.edges(),function(a){var b=c.edge(a),e=d.edge(a);b.points=e.points,Object.prototype.hasOwnProperty.call(e,"x")&&(b.x=e.x,b.y=e.y)}),c.graph().width=d.graph().width,c.graph().height=d.graph().height)})})}var bW=["nodesep","edgesep","ranksep","marginx","marginy"],bX={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},bY=["acyclicer","ranker","rankdir","align"],bZ=["width","height"],b$={width:0,height:0},b_=["minlen","weight","width","height","labeloffset"],b0={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},b1=["labelpos"];function b2(a,b){return aL(aA(a,b),Number)}function b3(a){var b={};return g.A(a,function(a,c){b[c.toLowerCase()]=a}),b}}};
|
|
1
|
+
"use strict";exports.id=4980,exports.ids=[4980],exports.modules={64980:(a,b,c)=>{c.d(b,{Zp:()=>bV});var d,e,f,g=c(85992),h=c(17904),i=0;let j=function(a){var b=++i;return(0,h.A)(a)+b};var k=c(86060),l=c(78959);let m=function(a){return(null==a?0:a.length)?(0,l.A)(a,1):[]};var n=c(38368),o=Math.ceil,p=Math.max;let q=function(a,b,c,d){for(var e=-1,f=p(o((b-a)/(c||1)),0),g=Array(f);f--;)g[d?f:++e]=a,a+=c;return g};var r=c(44878),s=c(93884),t=c(29163),u=c(18671);let v=function(a,b,c){if(!(0,u.A)(c))return!1;var d=typeof b;return("number"==d?!!((0,s.A)(c)&&(0,t.A)(b,c.length)):"string"==d&&b in c)&&(0,r.A)(c[b],a)};var w=/\s/;let x=function(a){for(var b=a.length;b--&&w.test(a.charAt(b)););return b};var y=/^\s+/,z=c(86340),A=0/0,B=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,D=/^0o[0-7]+$/i,E=parseInt;let F=function(a){if("number"==typeof a)return a;if((0,z.A)(a))return A;if((0,u.A)(a)){var b,c="function"==typeof a.valueOf?a.valueOf():a;a=(0,u.A)(c)?c+"":c}if("string"!=typeof a)return 0===a?a:+a;a=(b=a)?b.slice(0,x(b)+1).replace(y,""):b;var d=C.test(a);return d||D.test(a)?E(a.slice(2),d?2:8):B.test(a)?A:+a};var G=1/0;let H=function(a){return a?(a=F(a))===G||a===-G?(a<0?-1:1)*17976931348623157e292:a==a?a:0:0===a?a:0},I=function(a,b,c){return c&&"number"!=typeof c&&v(a,b,c)&&(b=c=void 0),a=H(a),void 0===b?(b=a,a=0):b=H(b),c=void 0===c?a<b?1:-1:H(c),q(a,b,c,void 0)};var J=c(74367);class K{constructor(){var a={};a._next=a._prev=a,this._sentinel=a}dequeue(){var a=this._sentinel,b=a._prev;if(b!==a)return L(b),b}enqueue(a){var b=this._sentinel;a._prev&&a._next&&L(a),a._next=b._next,b._next._prev=a,b._next=a,a._prev=b}toString(){for(var a=[],b=this._sentinel,c=b._prev;c!==b;)a.push(JSON.stringify(c,M)),c=c._prev;return"["+a.join(", ")+"]"}}function L(a){a._prev._next=a._next,a._next._prev=a._prev,delete a._next,delete a._prev}function M(a,b){if("_next"!==a&&"_prev"!==a)return b}var N=k.A(1);function O(a,b,c,d,e){var f=e?[]:void 0;return g.A(a.inEdges(d.v),function(d){var g=a.edge(d),h=a.node(d.v);e&&f.push({v:d.v,w:d.w}),h.out-=g,P(b,c,h)}),g.A(a.outEdges(d.v),function(d){var e=a.edge(d),f=d.w,g=a.node(f);g.in-=e,P(b,c,g)}),a.removeNode(d.v),f}function P(a,b,c){c.out?c.in?a[c.out-c.in+b].enqueue(c):a[a.length-1].enqueue(c):a[0].enqueue(c)}var Q=c(41573),R=c(71734);let S=function(a,b,c){(void 0===c||(0,r.A)(a[b],c))&&(void 0!==c||b in a)||(0,R.A)(a,b,c)};var T=c(56451),U=c(44564),V=c(43391),W=c(53149),X=c(65977),Y=c(73769),Z=c(4591),$=c(45015),_=c(1443),aa=c(10228),ab=c(64910),ac=c(91329),ad=c(93820),ae=Object.prototype,af=Function.prototype.toString,ag=ae.hasOwnProperty,ah=af.call(Object);let ai=function(a){if(!(0,ad.A)(a)||"[object Object]"!=(0,ab.A)(a))return!1;var b=(0,ac.A)(a);if(null===b)return!0;var c=ag.call(b,"constructor")&&b.constructor;return"function"==typeof c&&c instanceof c&&af.call(c)==ah};var aj=c(38426);let ak=function(a,b){if(("constructor"!==b||"function"!=typeof a[b])&&"__proto__"!=b)return a[b]};var al=c(19089),am=c(45092);let an=function(a,b,c,d,e,f,g){var h=ak(a,c),i=ak(b,c),j=g.get(i);if(j)return void S(a,c,j);var k=f?f(h,i,c+"",a,b,g):void 0,l=void 0===k;if(l){var m=(0,Z.A)(i),n=!m&&(0,_.A)(i),o=!m&&!n&&(0,aj.A)(i);(k=i,m||n||o)?(0,Z.A)(h)?k=h:(0,$.A)(h)?k=(0,W.A)(h):n?(l=!1,k=(0,U.A)(i,!0)):o?(l=!1,k=(0,V.A)(i,!0)):k=[]:ai(i)||(0,Y.A)(i)?(k=h,(0,Y.A)(h))?k=(0,al.A)(h,(0,am.A)(h)):(!(0,u.A)(h)||(0,aa.A)(h))&&(k=(0,X.A)(i)):l=!1}l&&(g.set(i,k),e(k,i,d,f,g),g.delete(i)),S(a,c,k)},ao=function a(b,c,d,e,f){b!==c&&(0,T.A)(c,function(g,h){if(f||(f=new Q.A),(0,u.A)(g))an(b,c,h,d,a,e,f);else{var i=e?e(ak(b,h),g,h+"",b,c,f):void 0;void 0===i&&(i=g),S(b,h,i)}},am.A)};var ap=c(9672),aq=(d=function(a,b,c){ao(a,b,c)},(0,ap.A)(function(a,b){var c=-1,e=b.length,f=e>1?b[e-1]:void 0,g=e>2?b[2]:void 0;for(f=d.length>3&&"function"==typeof f?(e--,f):void 0,g&&v(b[0],b[1],g)&&(f=e<3?void 0:f,e=1),a=Object(a);++c<e;){var h=b[c];h&&d(a,h,c)}return a})),ar=c(86296),as=c(17149),at=c(67285),au=c(47927);let av=function(a,b,c,d){if(!(0,u.A)(a))return a;b=(0,at.A)(b,a);for(var e=-1,f=b.length,g=f-1,h=a;null!=h&&++e<f;){var i=(0,au.A)(b[e]),j=c;if("__proto__"===i||"constructor"===i||"prototype"===i)break;if(e!=g){var k=h[i];void 0===(j=d?d(k,i,h):void 0)&&(j=(0,u.A)(k)?k:(0,t.A)(b[e+1])?[]:{})}(0,as.A)(h,i,j),h=h[i]}return a},aw=function(a,b,c){for(var d=-1,e=b.length,f={};++d<e;){var g=b[d],h=(0,ar.A)(a,g);c(h,g)&&av(f,(0,at.A)(g,a),h)}return f};var ax=c(67109),ay=c(50989),az=c(10874),aA=(e=function(a,b){return null==a?{}:aw(a,b,function(b,c){return(0,ax.A)(a,c)})},(0,az.A)((0,ay.A)(e,void 0,m),e+"")),aB=Object.prototype,aC=aB.hasOwnProperty,aD=(0,ap.A)(function(a,b){a=Object(a);var c=-1,d=b.length,e=d>2?b[2]:void 0;for(e&&v(b[0],b[1],e)&&(d=1);++c<d;)for(var f=b[c],g=(0,am.A)(f),h=-1,i=g.length;++h<i;){var j=g[h],k=a[j];(void 0===k||(0,r.A)(k,aB[j])&&!aC.call(a,j))&&(a[j]=f[j])}return a});let aE=function(a,b,c){for(var d=-1,e=a.length;++d<e;){var f=a[d],g=b(f);if(null!=g&&(void 0===h?g==g&&!(0,z.A)(g):c(g,h)))var h=g,i=f}return i},aF=function(a,b){return a>b};var aG=c(66994);let aH=function(a){return a&&a.length?aE(a,aG.A,aF):void 0},aI=function(a){var b=null==a?0:a.length;return b?a[b-1]:void 0};var aJ=c(62023),aK=c(78803);let aL=function(a,b){var c={};return b=(0,aK.A)(b,3),(0,aJ.A)(a,function(a,d,e){(0,R.A)(c,d,b(a,d,e))}),c};var aM=c(98122);let aN=function(a,b){return a<b},aO=function(a){return a&&a.length?aE(a,aG.A,aN):void 0};var aP=Object.prototype.hasOwnProperty;let aQ=function(a,b){return null!=a&&aP.call(a,b)};var aR=c(58560);let aS=function(a,b){return null!=a&&(0,aR.A)(a,b,aQ)};var aT=c(18623);let aU=function(){return aT.A.Date.now()};function aV(a,b,c,d){var e;do e=j(d);while(a.hasNode(e));return c.dummy=b,a.setNode(e,c),e}function aW(a){var b=new J.T({multigraph:a.isMultigraph()}).setGraph(a.graph());return g.A(a.nodes(),function(c){a.children(c).length||b.setNode(c,a.node(c))}),g.A(a.edges(),function(c){b.setEdge(c,a.edge(c))}),b}function aX(a,b){var c,d,e=a.x,f=a.y,g=b.x-e,h=b.y-f,i=a.width/2,j=a.height/2;if(!g&&!h)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(h)*i>Math.abs(g)*j?(h<0&&(j=-j),c=j*g/h,d=j):(g<0&&(i=-i),c=i,d=i*h/g),{x:e+c,y:f+d}}function aY(a){var b=n.A(I(a$(a)+1),function(){return[]});return g.A(a.nodes(),function(c){var d=a.node(c),e=d.rank;aM.A(e)||(b[e][d.order]=c)}),b}function aZ(a,b,c,d){var e={width:0,height:0};return arguments.length>=4&&(e.rank=c,e.order=d),aV(a,"border",e,b)}function a$(a){return aH(n.A(a.nodes(),function(b){var c=a.node(b).rank;if(!aM.A(c))return c}))}function a_(a,b){var c=aU();try{return b()}finally{console.log(a+" time: "+(aU()-c)+"ms")}}function a0(a,b){return b()}function a1(a,b,c,d,e,f){var g=e[b][f-1],h=aV(a,"border",{width:0,height:0,rank:f,borderType:b},c);e[b][f]=h,a.setParent(h,d),g&&a.setEdge(g,h,{weight:1})}function a2(a){g.A(a.nodes(),function(b){a3(a.node(b))}),g.A(a.edges(),function(b){a3(a.edge(b))})}function a3(a){var b=a.width;a.width=a.height,a.height=b}function a4(a){a.y=-a.y}function a5(a){var b=a.x;a.x=a.y,a.y=b}let a6=function(a,b){return a&&a.length?aE(a,(0,aK.A)(b,2),aN):void 0};function a7(a){var b={};g.A(a.sources(),function c(d){var e=a.node(d);if(Object.prototype.hasOwnProperty.call(b,d))return e.rank;b[d]=!0;var f=aO(n.A(a.outEdges(d),function(b){return c(b.w)-a.edge(b).minlen}));return(f===1/0||null==f)&&(f=0),e.rank=f})}function a8(a,b){return a.node(b.w).rank-a.node(b.v).rank-a.edge(b).minlen}function a9(a){var b,c,d,e,f=new J.T({directed:!1}),h=a.nodes()[0],i=a.nodeCount();for(f.setNode(h,{});b=f,c=a,g.A(b.nodes(),function a(d){g.A(c.nodeEdges(d),function(e){var f=e.v,g=d===f?e.w:f;b.hasNode(g)||a8(c,e)||(b.setNode(g,{}),b.setEdge(d,g,{}),a(g))})}),b.nodeCount()<i;)d=function(a,b){return a6(b.edges(),function(c){if(a.hasNode(c.v)!==a.hasNode(c.w))return a8(b,c)})}(f,a),e=f.hasNode(d.v)?a8(a,d):-a8(a,d),function(a,b,c){g.A(a.nodes(),function(a){b.node(a).rank+=c})}(f,a,e);return f}var ba=c(45680),bb=c(67853);let bc=function(a){var b=H(a),c=b%1;return b==b?c?b-c:b:0};var bd=Math.max,be=(f=function(a,b,c){var d=null==a?0:a.length;if(!d)return -1;var e=null==c?0:bc(c);return e<0&&(e=bd(d+e,0)),(0,bb.A)(a,(0,aK.A)(b,3),e)},function(a,b,c){var d=Object(a);if(!(0,s.A)(a)){var e=(0,aK.A)(b,3);a=(0,ba.A)(a),b=function(a){return e(d[a],a,d)}}var g=f(a,b,c);return g>-1?d[e?a[g]:g]:void 0}),bf=c(58617);k.A(1),k.A(1);var bg=c(61137),bh=c(91680),bi=(0,c(19919).A)("length"),bj=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),bk="\\ud800-\\udfff",bl="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",bm="\\ud83c[\\udffb-\\udfff]",bn="[^"+bk+"]",bo="(?:\\ud83c[\\udde6-\\uddff]){2}",bp="[\\ud800-\\udbff][\\udc00-\\udfff]",bq="(?:"+bl+"|"+bm+")?",br="[\\ufe0e\\ufe0f]?",bs="(?:\\u200d(?:"+[bn,bo,bp].join("|")+")"+br+bq+")*",bt=RegExp(bm+"(?="+bm+")|"+("(?:"+[bn+bl+"?",bl,bo,bp,"["+bk+"]"].join("|"))+")"+(br+bq+bs),"g");function bu(){}function bv(a,b,c){Z.A(b)||(b=[b]);var d=(a.isDirected()?a.successors:a.neighbors).bind(a),e=[],f={};return g.A(b,function(b){if(!a.hasNode(b))throw Error("Graph does not have node: "+b);!function a(b,c,d,e,f,h){!Object.prototype.hasOwnProperty.call(e,c)&&(e[c]=!0,d||h.push(c),g.A(f(c),function(c){a(b,c,d,e,f,h)}),d&&h.push(c))}(a,b,"post"===c,f,d,e)}),e}function bw(a){b=a,c=new J.T().setGraph(b.graph()),g.A(b.nodes(),function(a){c.setNode(a,b.node(a))}),g.A(b.edges(),function(a){var d=c.edge(a.v,a.w)||{weight:0,minlen:1},e=b.edge(a);c.setEdge(a.v,a.w,{weight:d.weight+e.weight,minlen:Math.max(d.minlen,e.minlen)})}),a7(a=c);var b,c,d,e,f=a9(a);for(bz(f),bx(f,a);d=bA(f);)e=bB(f,a,d),bC(f,a,d,e)}function bx(a,b){var c=bv(a,a.nodes(),"post");c=c.slice(0,c.length-1),g.A(c,function(c){var d,e,f,g;d=a,e=b,f=c,g=d.node(f).parent,d.edge(f,g).cutvalue=by(d,e,f)})}function by(a,b,c){var d=a.node(c).parent,e=!0,f=b.edge(c,d),h=0;return f||(e=!1,f=b.edge(d,c)),h=f.weight,g.A(b.nodeEdges(c),function(f){var g=f.v===c,i=g?f.w:f.v;if(i!==d){var j,k,l,m=g===e,n=b.edge(f).weight;if(h+=m?n:-n,j=a,k=c,l=i,j.hasEdge(k,l)){var o=a.edge(c,i).cutvalue;h+=m?-o:o}}}),h}function bz(a,b){arguments.length<2&&(b=a.nodes()[0]),function a(b,c,d,e,f){var h=d,i=b.node(e);return c[e]=!0,g.A(b.neighbors(e),function(f){Object.prototype.hasOwnProperty.call(c,f)||(d=a(b,c,d,f,e))}),i.low=h,i.lim=d++,f?i.parent=f:delete i.parent,d}(a,{},1,b)}function bA(a){return be(a.edges(),function(b){return a.edge(b).cutvalue<0})}function bB(a,b,c){var d=c.v,e=c.w;b.hasEdge(d,e)||(d=c.w,e=c.v);var f=a.node(d),g=a.node(e),h=f,i=!1;return f.lim>g.lim&&(h=g,i=!0),a6(bf.A(b.edges(),function(b){return i===bD(a,a.node(b.v),h)&&i!==bD(a,a.node(b.w),h)}),function(a){return a8(b,a)})}function bC(a,b,c,d){var e,f,h,i,j=c.v,k=c.w;a.removeEdge(j,k),a.setEdge(d.v,d.w,{}),bz(a),bx(a,b),e=a,f=b,h=be(e.nodes(),function(a){return!f.node(a).parent}),i=(i=bv(e,h,"pre")).slice(1),g.A(i,function(a){var b=e.node(a).parent,c=f.edge(a,b),d=!1;c||(c=f.edge(b,a),d=!0),f.node(a).rank=f.node(b).rank+(d?c.minlen:-c.minlen)})}function bD(a,b,c){return c.low<=b.lim&&b.lim<=c.lim}bu.prototype=Error(),c(33456),bw.initLowLimValues=bz,bw.initCutValues=bx,bw.calcCutValue=by,bw.leaveEdge=bA,bw.enterEdge=bB,bw.exchangeEdges=bC;var bE=c(21152),bF=c(46171),bG=c(30108);let bH=function(a,b,c){for(var d=-1,e=a.length,f=b.length,g={};++d<e;){var h=d<f?b[d]:void 0;c(g,a[d],h)}return g};var bI=c(44090),bJ=c(87826);let bK=function(a,b){var c=a.length;for(a.sort(b);c--;)a[c]=a[c].value;return a};var bL=c(63095);let bM=function(a,b){if(a!==b){var c=void 0!==a,d=null===a,e=a==a,f=(0,z.A)(a),g=void 0!==b,h=null===b,i=b==b,j=(0,z.A)(b);if(!h&&!j&&!f&&a>b||f&&g&&i&&!h&&!j||d&&g&&i||!c&&i||!e)return 1;if(!d&&!f&&!j&&a<b||j&&c&&e&&!d&&!f||h&&c&&e||!g&&e||!i)return -1}return 0},bN=function(a,b,c){for(var d=-1,e=a.criteria,f=b.criteria,g=e.length,h=c.length;++d<g;){var i=bM(e[d],f[d]);if(i){if(d>=h)return i;return i*("desc"==c[d]?-1:1)}}return a.index-b.index},bO=function(a,b,c){b=b.length?(0,bI.A)(b,function(a){return(0,Z.A)(a)?function(b){return(0,ar.A)(b,1===a.length?a[0]:a)}:a}):[aG.A];var d=-1;return b=(0,bI.A)(b,(0,bL.A)(aK.A)),bK((0,bJ.A)(a,function(a,c,e){return{criteria:(0,bI.A)(b,function(b){return b(a)}),index:++d,value:a}}),function(a,b){return bN(a,b,c)})};var bP=(0,ap.A)(function(a,b){if(null==a)return[];var c=b.length;return c>1&&v(a,b[0],b[1])?b=[]:c>2&&v(b[0],b[1],b[2])&&(b=[b[0]]),bO(a,(0,l.A)(b,1),[])});function bQ(a,b,c){for(var d;b.length&&(d=aI(b)).i<=c;)b.pop(),a.push(d.vs),c++;return c}function bR(a,b,c){return n.A(b,function(b){var d,e;return d=function(a){for(var b;a.hasNode(b=j("_root")););return b}(a),e=new J.T({compound:!0}).setGraph({root:d}).setDefaultNodeLabel(function(b){return a.node(b)}),g.A(a.nodes(),function(f){var h=a.node(f),i=a.parent(f);(h.rank===b||h.minRank<=b&&b<=h.maxRank)&&(e.setNode(f),e.setParent(f,i||d),g.A(a[c](f),function(b){var c=b.v===f?b.w:b.v,d=e.edge(c,f),g=aM.A(d)?0:d.weight;e.setEdge(c,f,{weight:a.edge(b).weight+g})}),Object.prototype.hasOwnProperty.call(h,"minRank")&&e.setNode(f,{borderLeft:h.borderLeft[b],borderRight:h.borderRight[b]}))}),e})}function bS(a,b){g.A(b,function(b){g.A(b,function(b,c){a.node(b).order=c})})}var bT=c(62320);function bU(a,b,c){if(b>c){var d=b;b=c,c=d}Object.prototype.hasOwnProperty.call(a,b)||Object.defineProperty(a,b,{enumerable:!0,configurable:!0,value:{},writable:!0}),Object.defineProperty(a[b],c,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function bV(a,b){var c=b&&b.debugTiming?a_:a0;c("layout",()=>{var b=c(" buildLayoutGraph",()=>{var b,c,d;return b=a,c=new J.T({multigraph:!0,compound:!0}),d=b3(b.graph()),c.setGraph(aq({},bX,b2(d,bW),aA(d,bY))),g.A(b.nodes(),function(a){var d=b3(b.node(a));c.setNode(a,aD(b2(d,bZ),b$)),c.setParent(a,b.parent(a))}),g.A(b.edges(),function(a){var d=b3(b.edge(a));c.setEdge(a,aq({},b0,b2(d,b_),aA(d,b1)))}),c});c(" runLayout",()=>{var a,d;return a=b,void((d=c)(" makeSpaceForEdgeLabels",()=>{var b,c;return c=(b=a).graph(),void(c.ranksep/=2,g.A(b.edges(),function(a){var d=b.edge(a);d.minlen*=2,"c"!==d.labelpos.toLowerCase()&&("TB"===c.rankdir||"BT"===c.rankdir?d.width+=d.labeloffset:d.height+=d.labeloffset)}))}),d(" removeSelfEdges",()=>{var b;return b=a,void g.A(b.edges(),function(a){if(a.v===a.w){var c=b.node(a.v);c.selfEdges||(c.selfEdges=[]),c.selfEdges.push({e:a,label:b.edge(a)}),b.removeEdge(a)}})}),d(" acyclic",()=>{var b,c,d,e,f,h;return b="greedy"===a.graph().acyclicer?function(a,b){if(1>=a.nodeCount())return[];var c,d,e,f,h,i,j,k=(c=a,d=b||N,e=new J.T,f=0,h=0,g.A(c.nodes(),function(a){e.setNode(a,{v:a,in:0,out:0})}),g.A(c.edges(),function(a){var b=e.edge(a.v,a.w)||0,c=d(a);e.setEdge(a.v,a.w,b+c),h=Math.max(h,e.node(a.v).out+=c),f=Math.max(f,e.node(a.w).in+=c)}),i=I(h+f+3).map(function(){return new K}),j=f+1,g.A(e.nodes(),function(a){P(i,j,e.node(a))}),{graph:e,buckets:i,zeroIdx:j}),l=function(a,b,c){for(var d,e=[],f=b[b.length-1],g=b[0];a.nodeCount();){for(;d=g.dequeue();)O(a,b,c,d);for(;d=f.dequeue();)O(a,b,c,d);if(a.nodeCount()){for(var h=b.length-2;h>0;--h)if(d=b[h].dequeue()){e=e.concat(O(a,b,c,d,!0));break}}}return e}(k.graph,k.buckets,k.zeroIdx);return m(n.A(l,function(b){return a.outEdges(b.v,b.w)}))}(a,(c=a,function(a){return c.edge(a).weight})):(d=a,e=[],f={},h={},g.A(d.nodes(),function a(b){Object.prototype.hasOwnProperty.call(h,b)||(h[b]=!0,f[b]=!0,g.A(d.outEdges(b),function(b){Object.prototype.hasOwnProperty.call(f,b.w)?e.push(b):a(b.w)}),delete f[b])}),e),void g.A(b,function(b){var c=a.edge(b);a.removeEdge(b),c.forwardName=b.name,c.reversed=!0,a.setEdge(b.w,b.v,c,j("rev"))})}),d(" nestingGraph.run",()=>{var b,c,d,e,f,h,i,j;return b=aV(a,"root",{},"_root"),h=a,i={},g.A(h.children(),function(a){!function a(b,c){var d=h.children(b);d&&d.length&&g.A(d,function(b){a(b,c+1)}),i[b]=c}(a,1)}),c=i,e=2*(d=aH(bE.A(c))-1)+1,a.graph().nestingRoot=b,g.A(a.edges(),function(b){a.edge(b).minlen*=e}),f=(j=a,bF.A(j.edges(),function(a,b){return a+j.edge(b).weight},0)+1),void(g.A(a.children(),function(h){!function a(b,c,d,e,f,h,i){var j=b.children(i);if(!j.length){i!==c&&b.setEdge(c,i,{weight:0,minlen:d});return}var k=aZ(b,"_bt"),l=aZ(b,"_bb"),m=b.node(i);b.setParent(k,i),m.borderTop=k,b.setParent(l,i),m.borderBottom=l,g.A(j,function(g){a(b,c,d,e,f,h,g);var j=b.node(g),m=j.borderTop?j.borderTop:g,n=j.borderBottom?j.borderBottom:g,o=j.borderTop?e:2*e,p=m!==n?1:f-h[i]+1;b.setEdge(k,m,{weight:o,minlen:p,nestingEdge:!0}),b.setEdge(n,l,{weight:o,minlen:p,nestingEdge:!0})}),b.parent(i)||b.setEdge(c,k,{weight:0,minlen:f+h[i]})}(a,b,e,f,d,c,h)}),a.graph().nodeRankFactor=e)}),d(" rank",()=>(function(a){switch(a.graph().ranker){case"network-simplex":default:bw(a);break;case"tight-tree":var b;a7(b=a),a9(b);break;case"longest-path":a7(a)}})(aW(a))),d(" injectEdgeLabelProxies",()=>{var b;return b=a,void g.A(b.edges(),function(a){var c=b.edge(a);if(c.width&&c.height){var d=b.node(a.v),e={rank:(b.node(a.w).rank-d.rank)/2+d.rank,e:a};aV(b,"edge-proxy",e,"_ep")}})}),d(" removeEmptyRanks",()=>{var b,c,d,e;return b=aO(n.A(a.nodes(),function(b){return a.node(b).rank})),c=[],g.A(a.nodes(),function(d){var e=a.node(d).rank-b;c[e]||(c[e]=[]),c[e].push(d)}),d=0,e=a.graph().nodeRankFactor,void g.A(c,function(b,c){aM.A(b)&&c%e!=0?--d:d&&g.A(b,function(b){a.node(b).rank+=d})})}),d(" nestingGraph.cleanup",()=>{var b;return b=a.graph(),void(a.removeNode(b.nestingRoot),delete b.nestingRoot,g.A(a.edges(),function(b){a.edge(b).nestingEdge&&a.removeEdge(b)}))}),d(" normalizeRanks",()=>{var b;return b=aO(n.A(a.nodes(),function(b){return a.node(b).rank})),void g.A(a.nodes(),function(c){var d=a.node(c);aS(d,"rank")&&(d.rank-=b)})}),d(" assignRankMinMax",()=>{var b,c;return b=a,c=0,void(g.A(b.nodes(),function(a){var d=b.node(a);d.borderTop&&(d.minRank=b.node(d.borderTop).rank,d.maxRank=b.node(d.borderBottom).rank,c=aH(c,d.maxRank))}),b.graph().maxRank=c)}),d(" removeEdgeLabelProxies",()=>{var b;return b=a,void g.A(b.nodes(),function(a){var c=b.node(a);"edge-proxy"===c.dummy&&(b.edge(c.e).labelRank=c.rank,b.removeNode(a))})}),d(" normalize.run",()=>{a.graph().dummyChains=[],g.A(a.edges(),function(b){!function(a,b){var c,d,e=b.v,f=a.node(e).rank,g=b.w,h=a.node(g).rank,i=b.name,j=a.edge(b),k=j.labelRank;if(h!==f+1){a.removeEdge(b);var l=void 0;for(d=0,++f;f<h;++d,++f)j.points=[],c=aV(a,"edge",l={width:0,height:0,edgeLabel:j,edgeObj:b,rank:f},"_d"),f===k&&(l.width=j.width,l.height=j.height,l.dummy="edge-label",l.labelpos=j.labelpos),a.setEdge(e,c,{weight:j.weight},i),0===d&&a.graph().dummyChains.push(c),e=c;a.setEdge(e,g,{weight:j.weight},i)}}(a,b)})}),d(" parentDummyChains",()=>{var b,c,d,e;return c=a,d={},e=0,g.A(c.children(),function a(b){var f=e;g.A(c.children(b),a),d[b]={low:f,lim:e++}}),b=d,void g.A(a.graph().dummyChains,function(c){for(var d=a.node(c),e=d.edgeObj,f=function(a,b,c,d){var e,f,g=[],h=[],i=Math.min(b[c].low,b[d].low),j=Math.max(b[c].lim,b[d].lim);e=c;do g.push(e=a.parent(e));while(e&&(b[e].low>i||j>b[e].lim));for(f=e,e=d;(e=a.parent(e))!==f;)h.push(e);return{path:g.concat(h.reverse()),lca:f}}(a,b,e.v,e.w),g=f.path,h=f.lca,i=0,j=g[0],k=!0;c!==e.w;){if(d=a.node(c),k){for(;(j=g[i])!==h&&a.node(j).maxRank<d.rank;)i++;j===h&&(k=!1)}if(!k){for(;i<g.length-1&&a.node(j=g[i+1]).minRank<=d.rank;)i++;j=g[i]}a.setParent(c,j),c=a.successors(c)[0]}})}),d(" addBorderSegments",()=>{g.A(a.children(),function b(c){var d=a.children(c),e=a.node(c);if(d.length&&g.A(d,b),Object.prototype.hasOwnProperty.call(e,"minRank")){e.borderLeft=[],e.borderRight=[];for(var f=e.minRank,h=e.maxRank+1;f<h;++f)a1(a,"borderLeft","_bl",c,e,f),a1(a,"borderRight","_br",c,e,f)}})}),d(" order",()=>(function(a){var b=a$(a),c=bR(a,I(1,b+1),"inEdges"),d=bR(a,I(b-1,-1,-1),"outEdges"),e=(f={},h=bf.A(a.nodes(),function(b){return!a.children(b).length}),i=aH(n.A(h,function(b){return a.node(b).rank})),j=n.A(I(i+1),function(){return[]}),k=bP(h,function(b){return a.node(b).rank}),g.A(k,function b(c){aS(f,c)||(f[c]=!0,j[a.node(c).rank].push(c),g.A(a.successors(c),b))}),j);bS(a,e);for(var f,h,i,j,k,l,o=1/0,p=0,q=0;q<4;++p,++q){(function(a,b){var c=new J.T;g.A(a,function(a){var d,e,f,h=a.graph().root,i=function a(b,c,d,e){var f,h,i,j,k,l,o,p,q,r,s,t,u=b.children(c),v=b.node(c),w=v?v.borderLeft:void 0,x=v?v.borderRight:void 0,y={};w&&(u=bf.A(u,function(a){return a!==w&&a!==x}));var z=(f=u,n.A(f,function(a){var c=b.inEdges(a);if(!c.length)return{v:a};var d=bF.A(c,function(a,c){var d=b.edge(c),e=b.node(c.v);return{sum:a.sum+d.weight*e.order,weight:a.weight+d.weight}},{sum:0,weight:0});return{v:a,barycenter:d.sum/d.weight,weight:d.weight}}));g.A(z,function(c){if(b.children(c.v).length){var f,g,h=a(b,c.v,d,e);y[c.v]=h,Object.prototype.hasOwnProperty.call(h,"barycenter")&&(f=c,g=h,aM.A(f.barycenter)?(f.barycenter=g.barycenter,f.weight=g.weight):(f.barycenter=(f.barycenter*f.weight+g.barycenter*g.weight)/(f.weight+g.weight),f.weight+=g.weight))}});var A=(h={},g.A(z,function(a,b){var c=h[a.v]={indegree:0,in:[],out:[],vs:[a.v],i:b};aM.A(a.barycenter)||(c.barycenter=a.barycenter,c.weight=a.weight)}),g.A(d.edges(),function(a){var b=h[a.v],c=h[a.w];aM.A(b)||aM.A(c)||(c.indegree++,b.out.push(h[a.w]))}),function(a){for(var b=[];a.length;){var c=a.pop();b.push(c),g.A(c.in.reverse(),function(a){return function(b){!b.merged&&(aM.A(b.barycenter)||aM.A(a.barycenter)||b.barycenter>=a.barycenter)&&function(a,b){var c=0,d=0;a.weight&&(c+=a.barycenter*a.weight,d+=a.weight),b.weight&&(c+=b.barycenter*b.weight,d+=b.weight),a.vs=b.vs.concat(a.vs),a.barycenter=c/d,a.weight=d,a.i=Math.min(b.i,a.i),b.merged=!0}(a,b)}}(c)),g.A(c.out,function(b){return function(c){c.in.push(b),0==--c.indegree&&a.push(c)}}(c))}return n.A(bf.A(b,function(a){return!a.merged}),function(a){return aA(a,["vs","i","barycenter","weight"])})}(bf.A(h,function(a){return!a.indegree})));!function(a,b){g.A(a,function(a){a.vs=m(a.vs.map(function(a){return b[a]?b[a].vs:a}))})}(A,y);var B=(l=(i=function(a){return Object.prototype.hasOwnProperty.call(a,"barycenter")},j={lhs:[],rhs:[]},g.A(A,function(a){i(a)?j.lhs.push(a):j.rhs.push(a)}),k=j).lhs,o=bP(k.rhs,function(a){return-a.i}),p=[],q=0,r=0,s=0,l.sort(function(a){return function(b,c){return b.barycenter<c.barycenter?-1:b.barycenter>c.barycenter?1:a?c.i-b.i:b.i-c.i}}(!!e)),s=bQ(p,o,s),g.A(l,function(a){s+=a.vs.length,p.push(a.vs),q+=a.barycenter*a.weight,r+=a.weight,s=bQ(p,o,s)}),t={vs:m(p)},r&&(t.barycenter=q/r,t.weight=r),t);if(w&&(B.vs=m([w,B.vs,x]),b.predecessors(w).length)){var C=b.node(b.predecessors(w)[0]),D=b.node(b.predecessors(x)[0]);Object.prototype.hasOwnProperty.call(B,"barycenter")||(B.barycenter=0,B.weight=0),B.barycenter=(B.barycenter*B.weight+C.order+D.order)/(B.weight+2),B.weight+=2}return B}(a,h,c,b);g.A(i.vs,function(b,c){a.node(b).order=c}),d=i.vs,f={},g.A(d,function(b){for(var d,g,h=a.parent(b);h;){if((d=a.parent(h))?(g=f[d],f[d]=h):(g=e,e=h),g&&g!==h)return void c.setEdge(g,h);h=d}})})})(p%2?c:d,p%4>=2),e=aY(a);var r,s=function(a,b){for(var c=0,d=1;d<b.length;++d)c+=function(a,b,c){for(var d=bH(c||[],n.A(c,function(a,b){return b})||[],as.A),e=m(n.A(b,function(b){return bP(n.A(a.outEdges(b),function(b){return{pos:d[b.w],weight:a.edge(b).weight}}),"pos")})),f=1;f<c.length;)f<<=1;var h=2*f-1;f-=1;var i=n.A(Array(h),function(){return 0}),j=0;return g.A(e.forEach(function(a){var b=a.pos+f;i[b]+=a.weight;for(var c=0;b>0;)b%2&&(c+=i[b+1]),b=b-1>>1,i[b]+=a.weight;j+=a.weight*c})),j}(a,b[d-1],b[d]);return c}(a,e);s<o&&(q=0,r=e,l=(0,bG.A)(r,5),o=s)}bS(a,l)})(a)),d(" insertSelfEdges",()=>{var b,c;return c=aY(b=a),void g.A(c,function(a){var c=0;g.A(a,function(a,d){var e=b.node(a);e.order=d+c,g.A(e.selfEdges,function(a){aV(b,"selfedge",{width:a.label.width,height:a.label.height,rank:e.rank,order:d+ ++c,e:a.e,label:a.label},"_se")}),delete e.selfEdges})})}),d(" adjustCoordinateSystem",()=>{var b;("lr"===(b=a.graph().rankdir.toLowerCase())||"rl"===b)&&a2(a)}),d(" position",()=>{var b,c,d,e,f,h,i,j,k,l,m,o,p,q,r,s,t;r=aY(q=b=aW(b=a)),s=q.graph().ranksep,t=0,g.A(r,function(a){var b=aH(n.A(a,function(a){return q.node(a).height}));g.A(a,function(a){q.node(a).y=t+b/2}),t+=b+s}),e=aY(c=b),h=aq((f={},bF.A(e,function(a,b){var d=0,e=0,h=a.length,i=aI(b);return g.A(b,function(a,j){var k=function(a,b){if(a.node(b).dummy)return be(a.predecessors(b),function(b){return a.node(b).dummy})}(c,a),l=k?c.node(k).order:h;(k||a===i)&&(g.A(b.slice(e,j+1),function(a){g.A(c.predecessors(a),function(b){var e=c.node(b),g=e.order;(g<d||l<g)&&!(e.dummy&&c.node(a).dummy)&&bU(f,b,a)})}),e=j+1,d=l)}),b}),f),function(a,b){var c={};function d(b,d,e,f,h){var i;g.A(I(d,e),function(d){i=b[d],a.node(i).dummy&&g.A(a.predecessors(i),function(b){var d=a.node(b);d.dummy&&(d.order<f||d.order>h)&&bU(c,b,i)})})}return bF.A(b,function(b,c){var e,f=-1,h=0;return g.A(c,function(g,i){if("border"===a.node(g).dummy){var j=a.predecessors(g);j.length&&(e=a.node(j[0]).order,d(c,h,i,f,e),h=i,f=e)}d(c,h,c.length,e,b.length)}),c}),c}(c,e)),i={},g.A(["u","d"],function(a){d="u"===a?e:bE.A(e).reverse(),g.A(["l","r"],function(b){"r"===b&&(d=n.A(d,function(a){return bE.A(a).reverse()}));var e,f,j,k,l=("u"===a?c.predecessors:c.successors).bind(c),m=(e=d,f={},j={},k={},g.A(e,function(a){g.A(a,function(a,b){f[a]=a,j[a]=a,k[a]=b})}),g.A(e,function(a){var b=-1;g.A(a,function(a){var c=l(a);if(c.length)for(var d=((c=bP(c,function(a){return k[a]})).length-1)/2,e=Math.floor(d),g=Math.ceil(d);e<=g;++e){var i=c[e];j[a]===a&&b<k[i]&&!function(a,b,c){if(b>c){var d=b;b=c,c=d}return!!a[b]&&Object.prototype.hasOwnProperty.call(a[b],c)}(h,a,i)&&(j[i]=a,j[a]=f[a]=f[i],b=k[i])}})}),{root:f,align:j}),o=function(a,b,c,d,e){var f,h,i,j,k,l,m,n,o,p,q={},r=(f=a,h=b,i=c,j=e,n=new J.T,p=(k=(o=f.graph()).nodesep,l=o.edgesep,m=j,function(a,b,c){var d,e,f=a.node(b),g=a.node(c);if(d=0+f.width/2,Object.prototype.hasOwnProperty.call(f,"labelpos"))switch(f.labelpos.toLowerCase()){case"l":e=-f.width/2;break;case"r":e=f.width/2}if(e&&(d+=m?e:-e),e=0,d+=(f.dummy?l:k)/2,d+=(g.dummy?l:k)/2,d+=g.width/2,Object.prototype.hasOwnProperty.call(g,"labelpos"))switch(g.labelpos.toLowerCase()){case"l":e=g.width/2;break;case"r":e=-g.width/2}return e&&(d+=m?e:-e),e=0,d}),g.A(h,function(a){var b;g.A(a,function(a){var c=i[a];if(n.setNode(c),b){var d=i[b],e=n.edge(d,c);n.setEdge(d,c,Math.max(p(f,a,b),e||0))}b=a})}),n),s=e?"borderLeft":"borderRight";function t(a,b){for(var c=r.nodes(),d=c.pop(),e={};d;)e[d]?a(d):(e[d]=!0,c.push(d),c=c.concat(b(d))),d=c.pop()}return t(function(a){q[a]=r.inEdges(a).reduce(function(a,b){return Math.max(a,q[b.v]+r.edge(b))},0)},r.predecessors.bind(r)),t(function(b){var c=r.outEdges(b).reduce(function(a,b){return Math.min(a,q[b.w]-r.edge(b))},1/0),d=a.node(b);c!==1/0&&d.borderType!==s&&(q[b]=Math.max(q[b],c))},r.successors.bind(r)),g.A(d,function(a){q[a]=q[c[a]]}),q}(c,d,m.root,m.align,"r"===b);"r"===b&&(o=aL(o,function(a){return-a})),i[a+b]=o})}),j=a6(bE.A(i),function(a){var b,d=-1/0,e=1/0;return b=function(a,b){var f,g,h=(f=c,g=b,f.node(g).width/2);d=Math.max(a+h,d),e=Math.min(a-h,e)},null==a||(0,T.A)(a,(0,bT.A)(b),am.A),d-e}),l=aO(k=bE.A(j)),m=aH(k),g.A(["u","d"],function(a){g.A(["l","r"],function(b){var c,d=a+b,e=i[d];if(e!==j){var f=bE.A(e);(c="l"===b?l-aO(f):m-aH(f))&&(i[d]=aL(e,function(a){return a+c}))}})}),o=c.graph().align,p=aL(i.ul,function(a,b){if(o)return i[o.toLowerCase()][b];var c=bP(n.A(i,b));return(c[1]+c[2])/2}),p&&(0,aJ.A)(p,(0,bT.A)(function(a,c){b.node(c).x=a}))}),d(" positionSelfEdges",()=>{var b;return b=a,void g.A(b.nodes(),function(a){var c=b.node(a);if("selfedge"===c.dummy){var d=b.node(c.e.v),e=d.x+d.width/2,f=d.y,g=c.x-e,h=d.height/2;b.setEdge(c.e,c.label),b.removeNode(a),c.label.points=[{x:e+2*g/3,y:f-h},{x:e+5*g/6,y:f-h},{x:e+g,y:f},{x:e+5*g/6,y:f+h},{x:e+2*g/3,y:f+h}],c.label.x=c.x,c.label.y=c.y}})}),d(" removeBorderNodes",()=>{var b;return b=a,void(g.A(b.nodes(),function(a){if(b.children(a).length){var c=b.node(a),d=b.node(c.borderTop),e=b.node(c.borderBottom),f=b.node(aI(c.borderLeft)),g=b.node(aI(c.borderRight));c.width=Math.abs(g.x-f.x),c.height=Math.abs(e.y-d.y),c.x=f.x+c.width/2,c.y=d.y+c.height/2}}),g.A(b.nodes(),function(a){"border"===b.node(a).dummy&&b.removeNode(a)}))}),d(" normalize.undo",()=>{g.A(a.graph().dummyChains,function(b){var c,d=a.node(b),e=d.edgeLabel;for(a.setEdge(d.edgeObj,e);d.dummy;)c=a.successors(b)[0],a.removeNode(b),e.points.push({x:d.x,y:d.y}),"edge-label"===d.dummy&&(e.x=d.x,e.y=d.y,e.width=d.width,e.height=d.height),b=c,d=a.node(b)})}),d(" fixupEdgeLabelCoords",()=>{var b;return b=a,void g.A(b.edges(),function(a){var c=b.edge(a);if(Object.prototype.hasOwnProperty.call(c,"x"))switch(("l"===c.labelpos||"r"===c.labelpos)&&(c.width-=c.labeloffset),c.labelpos){case"l":c.x-=c.width/2+c.labeloffset;break;case"r":c.x+=c.width/2+c.labeloffset}})}),d(" undoCoordinateSystem",()=>{var b,c,d;("bt"===(b=a.graph().rankdir.toLowerCase())||"rl"===b)&&(c=a,g.A(c.nodes(),function(a){a4(c.node(a))}),g.A(c.edges(),function(a){var b=c.edge(a);g.A(b.points,a4),Object.prototype.hasOwnProperty.call(b,"y")&&a4(b)})),("lr"===b||"rl"===b)&&(d=a,g.A(d.nodes(),function(a){a5(d.node(a))}),g.A(d.edges(),function(a){var b=d.edge(a);g.A(b.points,a5),Object.prototype.hasOwnProperty.call(b,"x")&&a5(b)}),a2(a))}),d(" translateGraph",()=>(function(a){var b=1/0,c=0,d=1/0,e=0,f=a.graph(),h=f.marginx||0,i=f.marginy||0;function j(a){var f=a.x,g=a.y,h=a.width,i=a.height;b=Math.min(b,f-h/2),c=Math.max(c,f+h/2),d=Math.min(d,g-i/2),e=Math.max(e,g+i/2)}g.A(a.nodes(),function(b){j(a.node(b))}),g.A(a.edges(),function(b){var c=a.edge(b);Object.prototype.hasOwnProperty.call(c,"x")&&j(c)}),b-=h,d-=i,g.A(a.nodes(),function(c){var e=a.node(c);e.x-=b,e.y-=d}),g.A(a.edges(),function(c){var e=a.edge(c);g.A(e.points,function(a){a.x-=b,a.y-=d}),Object.prototype.hasOwnProperty.call(e,"x")&&(e.x-=b),Object.prototype.hasOwnProperty.call(e,"y")&&(e.y-=d)}),f.width=c-b+h,f.height=e-d+i})(a)),d(" assignNodeIntersects",()=>{var b;return b=a,void g.A(b.edges(),function(a){var c,d,e=b.edge(a),f=b.node(a.v),g=b.node(a.w);e.points?(c=e.points[0],d=e.points[e.points.length-1]):(e.points=[],c=g,d=f),e.points.unshift(aX(f,c)),e.points.push(aX(g,d))})}),d(" reversePoints",()=>{var b;return b=a,void g.A(b.edges(),function(a){var c=b.edge(a);c.reversed&&c.points.reverse()})}),d(" acyclic.undo",()=>{g.A(a.edges(),function(b){var c=a.edge(b);if(c.reversed){a.removeEdge(b);var d=c.forwardName;delete c.reversed,delete c.forwardName,a.setEdge(b.w,b.v,c,d)}})}))}),c(" updateInputGraph",()=>{var c,d;return c=a,d=b,void(g.A(c.nodes(),function(a){var b=c.node(a),e=d.node(a);b&&(b.x=e.x,b.y=e.y,d.children(a).length&&(b.width=e.width,b.height=e.height))}),g.A(c.edges(),function(a){var b=c.edge(a),e=d.edge(a);b.points=e.points,Object.prototype.hasOwnProperty.call(e,"x")&&(b.x=e.x,b.y=e.y)}),c.graph().width=d.graph().width,c.graph().height=d.graph().height)})})}var bW=["nodesep","edgesep","ranksep","marginx","marginy"],bX={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},bY=["acyclicer","ranker","rankdir","align"],bZ=["width","height"],b$={width:0,height:0},b_=["minlen","weight","width","height","labeloffset"],b0={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},b1=["labelpos"];function b2(a,b){return aL(aA(a,b),Number)}function b3(a){var b={};return g.A(a,function(a,c){b[c.toLowerCase()]=a}),b}}};
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
stroke: revert;
|
|
13
13
|
stroke-width: revert;
|
|
14
14
|
}
|
|
15
|
-
`,"getIconStyles")},36052:(a,b,c)=>{c.d(b,{diagram:()=>bq});var d=c(23464),e=c(7423),f=c(69819),g=c(59343);c(73669);var h=c(64922),i=c(45313),j=c(58715),k=c(95097),l=c(11732),m=c(18847),n=c(32112),o=c(22729);function p(a,b){for(let c in b)Object.hasOwn(b,c)&&(a[c]=b[c])}var q=c(75899),r=c(14120),s=c(69085),t=c(96748),u=function(){var a=(0,k.K)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,15],c=[1,7],d=[1,13],e=[1,14],f=[1,19],g=[1,16],h=[1,17],i=[1,18],j=[8,30],l=[8,10,21,28,29,30,31,39,43,46],m=[1,23],n=[1,24],o=[8,10,15,16,21,28,29,30,31,39,43,46],p=[8,10,15,16,21,27,28,29,30,31,39,43,46],q=[1,49],r={trace:(0,k.K)(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:(0,k.K)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",f[h-1]),d.setHierarchy(f[h-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",f[h]),"number"==typeof f[h].length?this.$=f[h]:this.$=[f[h]];break;case 13:d.getLogger().debug("Rule: statement #2: ",f[h-1]),this.$=[f[h-1]].concat(f[h]);break;case 14:d.getLogger().debug("Rule: link: ",f[h],a),this.$={edgeTypeStr:f[h],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",f[h-3],f[h-1],f[h]),this.$={edgeTypeStr:f[h],label:f[h-1]};break;case 18:let i=parseInt(f[h]),j=d.generateId();this.$={id:j,type:"space",label:"",width:i,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",f[h-2],f[h-1],f[h]," typestr: ",f[h-1].edgeTypeStr);let k=d.edgeStrToEdgeData(f[h-1].edgeTypeStr),l=d.edgeStrToEdgeStartData(f[h-1].edgeTypeStr),m=d.edgeStrToThickness(f[h-1].edgeTypeStr),n=d.edgeStrToPattern(f[h-1].edgeTypeStr);this.$=[{id:f[h-2].id,label:f[h-2].label,type:f[h-2].type,directions:f[h-2].directions},{id:f[h-2].id+"-"+f[h].id,start:f[h-2].id,end:f[h].id,label:f[h-1].label,type:"edge",thickness:m,pattern:n,directions:f[h].directions,arrowTypeEnd:k,arrowTypeStart:l},{id:f[h].id,label:f[h].label,type:d.typeStr2Type(f[h].typeStr),directions:f[h].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",f[h-1],f[h]),this.$={id:f[h-1].id,label:f[h-1].label,type:d.typeStr2Type(f[h-1].typeStr),directions:f[h-1].directions,widthInColumns:parseInt(f[h],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",f[h]),this.$={id:f[h].id,label:f[h].label,type:d.typeStr2Type(f[h].typeStr),directions:f[h].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",f[h]),this.$={type:"column-setting",columns:"auto"===f[h]?-1:parseInt(f[h])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",f[h-2],f[h-1]),d.generateId(),this.$={...f[h-2],type:"composite",children:f[h-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",f[h-2],f[h-1],f[h]);let o=d.generateId();this.$={id:o,type:"composite",label:"",children:f[h-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",f[h]),this.$={id:f[h]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",f[h-1],f[h]),this.$={id:f[h-1],label:f[h].label,typeStr:f[h].typeStr,directions:f[h].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",f[h]),this.$=[f[h]];break;case 32:d.getLogger().debug("Rule: dirList: ",f[h-1],f[h]),this.$=[f[h-1]].concat(f[h]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",f[h-2],f[h-1],f[h]),this.$={typeStr:f[h-2]+f[h],label:f[h-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",f[h-3],f[h-2]," #3:",f[h-1],f[h]),this.$={typeStr:f[h-3]+f[h],label:f[h-2],directions:f[h-1]};break;case 35:case 36:this.$={type:"classDef",id:f[h-1].trim(),css:f[h].trim()};break;case 37:this.$={type:"applyClass",id:f[h-1].trim(),styleClass:f[h].trim()};break;case 38:this.$={type:"applyStyles",id:f[h-1].trim(),stylesStr:f[h].trim()}}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:b,11:3,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:d,29:e,31:f,39:g,43:h,46:i},{8:[1,20]},a(j,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:b,21:c,28:d,29:e,31:f,39:g,43:h,46:i}),a(l,[2,16],{14:22,15:m,16:n}),a(l,[2,17]),a(l,[2,18]),a(l,[2,19]),a(l,[2,20]),a(l,[2,21]),a(l,[2,22]),a(o,[2,25],{27:[1,25]}),a(l,[2,26]),{19:26,26:12,31:f},{10:b,11:27,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:d,29:e,31:f,39:g,43:h,46:i},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},a(p,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},a(j,[2,13]),{26:35,31:f},{31:[2,14]},{17:[1,36]},a(o,[2,24]),{10:b,11:37,13:4,14:22,15:m,16:n,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:d,29:e,31:f,39:g,43:h,46:i},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},a(p,[2,30]),{18:[1,43]},{18:[1,44]},a(o,[2,23]),{18:[1,45]},{30:[1,46]},a(l,[2,28]),a(l,[2,35]),a(l,[2,36]),a(l,[2,37]),a(l,[2,38]),{36:[1,47]},{33:48,34:q},{15:[1,50]},a(l,[2,27]),a(p,[2,33]),{38:[1,51]},{33:52,34:q,38:[2,31]},{31:[2,15]},a(p,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:(0,k.K)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,k.K)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",i=0,j=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,k.K)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,k.K)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=g[v]&&g[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],g[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(i+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(j=n.yyleng,h=n.yytext,i=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[h,j,i,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=g[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function s(){this.yy={}}return r.lexer={EOF:1,parseError:(0,k.K)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,k.K)(function(a,b){return this.yy=b||this.yy||{},this._input=a,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:(0,k.K)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,k.K)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;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),c.length-1&&(this.yylineno-=c.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:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,k.K)(function(){return this._more=!0,this},"more"),reject:(0,k.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,k.K)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,k.K)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,k.K)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,k.K)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,k.K)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,k.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,k.K)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,k.K)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,k.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,k.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,k.K)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,k.K)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,k.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,k.K)(function(a,b,c,d){switch(c){case 0:return a.getLogger().debug("Found block-beta"),10;case 1:return a.getLogger().debug("Found id-block"),29;case 2:return a.getLogger().debug("Found block"),10;case 3:a.getLogger().debug(".",b.yytext);break;case 4:a.getLogger().debug("_",b.yytext);break;case 5:return 5;case 6:return b.yytext=-1,28;case 7:return b.yytext=b.yytext.replace(/columns\s+/,""),a.getLogger().debug("COLUMNS (LEX)",b.yytext),28;case 8:case 76:case 77:case 99:this.pushState("md_string");break;case 9:return"MD_STR";case 10:case 34:case 79:this.popState();break;case 11:this.pushState("string");break;case 12:a.getLogger().debug("LEX: POPPING STR:",b.yytext),this.popState();break;case 13:return a.getLogger().debug("LEX: STR end:",b.yytext),"STR";case 14:return b.yytext=b.yytext.replace(/space\:/,""),a.getLogger().debug("SPACE NUM (LEX)",b.yytext),21;case 15:return b.yytext="1",a.getLogger().debug("COLUMNS (LEX)",b.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:case 38:case 40:case 41:case 44:return this.popState(),a.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),a.getLogger().debug("Lex: ))"),"NODE_DEND";case 42:return this.popState(),a.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),a.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),a.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),a.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),a.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:case 49:return this.popState(),a.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),a.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),a.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),a.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),a.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return a.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return a.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return a.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:case 59:case 60:case 61:case 64:return a.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return a.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 62:return a.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return a.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 65:case 66:case 67:case 68:case 69:case 70:case 71:return this.pushState("NODE"),35;case 72:return a.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),a.getLogger().debug("LEX ARR START"),37;case 74:return a.getLogger().debug("Lex: NODE_ID",b.yytext),31;case 75:return a.getLogger().debug("Lex: EOF",b.yytext),8;case 78:return"NODE_DESCR";case 80:a.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:a.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return a.getLogger().debug("LEX: NODE_DESCR:",b.yytext),"NODE_DESCR";case 83:a.getLogger().debug("LEX POPPING"),this.popState();break;case 84:a.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (right): dir:",b.yytext),"DIR";case 86:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (left):",b.yytext),"DIR";case 87:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (x):",b.yytext),"DIR";case 88:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (y):",b.yytext),"DIR";case 89:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (up):",b.yytext),"DIR";case 90:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (down):",b.yytext),"DIR";case 91:return b.yytext="]>",a.getLogger().debug("Lex (ARROW_DIR end):",b.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return a.getLogger().debug("Lex: LINK","#"+b.yytext+"#"),15;case 93:case 94:case 95:return a.getLogger().debug("Lex: LINK",b.yytext),15;case 96:case 97:case 98:return a.getLogger().debug("Lex: START_LINK",b.yytext),this.pushState("LLABEL"),16;case 100:return a.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),a.getLogger().debug("Lex: LINK","#"+b.yytext+"#"),15;case 102:case 103:return this.popState(),a.getLogger().debug("Lex: LINK",b.yytext),15;case 104:return a.getLogger().debug("Lex: COLON",b.yytext),b.yytext=b.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}},(0,k.K)(s,"Parser"),s.prototype=r,r.Parser=s,new s}();u.parser=u;var v=new Map,w=[],x=new Map,y="color",z="fill",A=new Map,B="",C=(0,k.K)(a=>i.Y2.sanitizeText(a,(0,i.D7)()),"sanitizeText"),D=(0,k.K)(function(a,b=""){let c=A.get(a);c||(c={id:a,styles:[],textStyles:[]},A.set(a,c)),null!=b&&b.split(",").forEach(a=>{let b=a.replace(/([^;]*);/,"$1").trim();if(RegExp(y).exec(a)){let a=b.replace(z,"bgFill").replace(y,z);c.textStyles.push(a)}c.styles.push(b)})},"addStyleClass"),E=(0,k.K)(function(a,b=""){let c=v.get(a);null!=b&&(c.styles=b.split(","))},"addStyle2Node"),F=(0,k.K)(function(a,b){a.split(",").forEach(function(a){let c=v.get(a);if(void 0===c){let b=a.trim();c={id:b,type:"na",children:[]},v.set(b,c)}c.classes||(c.classes=[]),c.classes.push(b)})},"setCssClass"),G=(0,k.K)((a,b)=>{let c=a.flat(),d=[],e=c.find(a=>a?.type==="column-setting"),f=e?.columns??-1;for(let a of c){if("number"==typeof f&&f>0&&"column-setting"!==a.type&&"number"==typeof a.widthInColumns&&a.widthInColumns>f&&j.R.warn(`Block ${a.id} width ${a.widthInColumns} exceeds configured column width ${f}`),a.label&&(a.label=C(a.label)),"classDef"===a.type){D(a.id,a.css);continue}if("applyClass"===a.type){F(a.id,a?.styleClass??"");continue}if("applyStyles"===a.type){a?.stylesStr&&E(a.id,a?.stylesStr);continue}if("column-setting"===a.type)b.columns=a.columns??-1;else if("edge"===a.type){let b=(x.get(a.id)??0)+1;x.set(a.id,b),a.id=b+"-"+a.id,w.push(a)}else{a.label||("composite"===a.type?a.label="":a.label=a.id);let b=v.get(a.id);if(void 0===b?v.set(a.id,a):("na"!==a.type&&(b.type=a.type),a.label!==a.id&&(b.label=a.label)),a.children&&G(a.children,a),"space"===a.type){let b=a.width??1;for(let c=0;c<b;c++){let b=function(a){if((0,l.s)(a))return a;let b=(0,m.b)(a);if(!function(a){switch((0,m.b)(a)){case n.R_:case n.Uw:case n.cT:case n.iq:case n.$V:case n.vC:case n.ri:case n.ML:case n.XZ:case n.i1:case n._u:case n.pj:case n.kj:case n.GX:case n.Av:case n.NA:case n.OG:case n.VP:case n.Qb:case n.q:case n.x6:case n.ZR:return!0;default:return!1}}(a))return{};if(Array.isArray(a)){let b=Array.from(a);return a.length>0&&"string"==typeof a[0]&&Object.hasOwn(a,"index")&&(b.index=a.index,b.input=a.input),b}if((0,o.i)(a))return new a.constructor(a.buffer,a.byteOffset,a.length);if(b===n.cT)return new ArrayBuffer(a.byteLength);if(b===n.iq){let b=a.buffer,c=a.byteOffset,d=a.byteLength,e=new ArrayBuffer(d),f=new Uint8Array(b,c,d);return new Uint8Array(e).set(f),new DataView(e)}if(b===n.$V||b===n.kj||b===n.OG){let c=new a.constructor(a.valueOf());return b===n.OG?function(a,b){let c=b.valueOf().length;for(let d in b)Object.hasOwn(b,d)&&(Number.isNaN(Number(d))||Number(d)>=c)&&(a[d]=b[d])}(c,a):p(c,a),c}if(b===n.vC)return new Date(Number(a));if(b===n.Av){let b=new RegExp(a.source,a.flags);return b.lastIndex=a.lastIndex,b}if(b===n.VP)return Object(Symbol.prototype.valueOf.call(a));if(b===n.pj){let b=new Map;return a.forEach((a,c)=>{b.set(c,a)}),b}if(b===n.NA){let b=new Set;return a.forEach(a=>{b.add(a)}),b}if(b===n.R_){let b={};return p(b,a),b.length=a.length,b[Symbol.iterator]=a[Symbol.iterator],b}let c={};return function(a,b){let c=Object.getPrototypeOf(b);null!==c&&"function"==typeof b.constructor&&Object.setPrototypeOf(a,c)}(c,a),p(c,a),function(a,b){let c=Object.getOwnPropertySymbols(b);for(let d=0;d<c.length;d++){let e=c[d];Object.prototype.propertyIsEnumerable.call(b,e)&&(a[e]=b[e])}}(c,a),c}(a);b.id=b.id+"-"+c,v.set(b.id,b),d.push(b)}}else void 0===b&&d.push(a)}}b.children=d},"populateBlockDatabase"),H=[],I={id:"root",type:"composite",children:[],columns:-1},J=(0,k.K)(()=>{j.R.debug("Clear called"),(0,i.IU)(),v=new Map([["root",I={id:"root",type:"composite",children:[],columns:-1}]]),H=[],A=new Map,w=[],x=new Map,B=""},"clear");function K(a){switch(j.R.debug("typeStr2Type",a),a){case"[]":return"square";case"()":return j.R.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function L(a){return(j.R.debug("typeStr2Type",a),"=="===a)?"thick":"normal"}function M(a){switch(a.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function N(a){switch(a.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function O(a){return a.includes("==")?"thick":"normal"}function P(a){return a.includes(".-")?"dotted":"solid"}(0,k.K)(K,"typeStr2Type"),(0,k.K)(L,"edgeTypeStr2Type"),(0,k.K)(M,"edgeStrToEdgeData"),(0,k.K)(N,"edgeStrToEdgeStartData"),(0,k.K)(O,"edgeStrToThickness"),(0,k.K)(P,"edgeStrToPattern");var Q=0,R=(0,k.K)(()=>(Q++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Q),"generateId"),S=(0,k.K)(a=>{I.children=a,G(a,I),H=I.children},"setHierarchy"),T=(0,k.K)(a=>{let b=v.get(a);return b?b.columns?b.columns:b.children?b.children.length:-1:-1},"getColumns"),U=(0,k.K)(()=>[...v.values()],"getBlocksFlat"),V=(0,k.K)(()=>H||[],"getBlocks"),W=(0,k.K)(()=>w,"getEdges"),X=(0,k.K)(a=>v.get(a),"getBlock"),Y=(0,k.K)(a=>{v.set(a.id,a)},"setBlock"),Z=(0,k.K)(a=>{B=a},"setDiagramId"),$=(0,k.K)(()=>B,"getDiagramId"),_=(0,k.K)(()=>j.R,"getLogger"),aa=(0,k.K)(function(){return A},"getClasses"),ab={getConfig:(0,k.K)(()=>(0,i.zj)().block,"getConfig"),typeStr2Type:K,edgeTypeStr2Type:L,edgeStrToEdgeData:M,edgeStrToEdgeStartData:N,edgeStrToThickness:O,edgeStrToPattern:P,getLogger:_,getBlocksFlat:U,getBlocks:V,getEdges:W,setHierarchy:S,getBlock:X,setBlock:Y,getColumns:T,getClasses:aa,clear:J,generateId:R,setDiagramId:Z,getDiagramId:$},ac=(0,k.K)((a,b)=>{let c=q.A,d=c(a,"r"),e=c(a,"g"),f=c(a,"b");return r.A(d,e,f,b)},"fade"),ad=(0,k.K)(a=>`.label {
|
|
15
|
+
`,"getIconStyles")},36052:(a,b,c)=>{c.d(b,{diagram:()=>bq});var d=c(23464),e=c(7423),f=c(69819),g=c(59343);c(73669);var h=c(64922),i=c(45313),j=c(58715),k=c(95097),l=c(11732),m=c(18847),n=c(32112),o=c(22729);function p(a,b){for(let c in b)Object.hasOwn(b,c)&&(a[c]=b[c])}var q=c(75899),r=c(14120),s=c(69085),t=c(74367),u=function(){var a=(0,k.K)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,15],c=[1,7],d=[1,13],e=[1,14],f=[1,19],g=[1,16],h=[1,17],i=[1,18],j=[8,30],l=[8,10,21,28,29,30,31,39,43,46],m=[1,23],n=[1,24],o=[8,10,15,16,21,28,29,30,31,39,43,46],p=[8,10,15,16,21,27,28,29,30,31,39,43,46],q=[1,49],r={trace:(0,k.K)(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:(0,k.K)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",f[h-1]),d.setHierarchy(f[h-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",f[h]),"number"==typeof f[h].length?this.$=f[h]:this.$=[f[h]];break;case 13:d.getLogger().debug("Rule: statement #2: ",f[h-1]),this.$=[f[h-1]].concat(f[h]);break;case 14:d.getLogger().debug("Rule: link: ",f[h],a),this.$={edgeTypeStr:f[h],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",f[h-3],f[h-1],f[h]),this.$={edgeTypeStr:f[h],label:f[h-1]};break;case 18:let i=parseInt(f[h]),j=d.generateId();this.$={id:j,type:"space",label:"",width:i,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",f[h-2],f[h-1],f[h]," typestr: ",f[h-1].edgeTypeStr);let k=d.edgeStrToEdgeData(f[h-1].edgeTypeStr),l=d.edgeStrToEdgeStartData(f[h-1].edgeTypeStr),m=d.edgeStrToThickness(f[h-1].edgeTypeStr),n=d.edgeStrToPattern(f[h-1].edgeTypeStr);this.$=[{id:f[h-2].id,label:f[h-2].label,type:f[h-2].type,directions:f[h-2].directions},{id:f[h-2].id+"-"+f[h].id,start:f[h-2].id,end:f[h].id,label:f[h-1].label,type:"edge",thickness:m,pattern:n,directions:f[h].directions,arrowTypeEnd:k,arrowTypeStart:l},{id:f[h].id,label:f[h].label,type:d.typeStr2Type(f[h].typeStr),directions:f[h].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",f[h-1],f[h]),this.$={id:f[h-1].id,label:f[h-1].label,type:d.typeStr2Type(f[h-1].typeStr),directions:f[h-1].directions,widthInColumns:parseInt(f[h],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",f[h]),this.$={id:f[h].id,label:f[h].label,type:d.typeStr2Type(f[h].typeStr),directions:f[h].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",f[h]),this.$={type:"column-setting",columns:"auto"===f[h]?-1:parseInt(f[h])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",f[h-2],f[h-1]),d.generateId(),this.$={...f[h-2],type:"composite",children:f[h-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",f[h-2],f[h-1],f[h]);let o=d.generateId();this.$={id:o,type:"composite",label:"",children:f[h-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",f[h]),this.$={id:f[h]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",f[h-1],f[h]),this.$={id:f[h-1],label:f[h].label,typeStr:f[h].typeStr,directions:f[h].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",f[h]),this.$=[f[h]];break;case 32:d.getLogger().debug("Rule: dirList: ",f[h-1],f[h]),this.$=[f[h-1]].concat(f[h]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",f[h-2],f[h-1],f[h]),this.$={typeStr:f[h-2]+f[h],label:f[h-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",f[h-3],f[h-2]," #3:",f[h-1],f[h]),this.$={typeStr:f[h-3]+f[h],label:f[h-2],directions:f[h-1]};break;case 35:case 36:this.$={type:"classDef",id:f[h-1].trim(),css:f[h].trim()};break;case 37:this.$={type:"applyClass",id:f[h-1].trim(),styleClass:f[h].trim()};break;case 38:this.$={type:"applyStyles",id:f[h-1].trim(),stylesStr:f[h].trim()}}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:b,11:3,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:d,29:e,31:f,39:g,43:h,46:i},{8:[1,20]},a(j,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:b,21:c,28:d,29:e,31:f,39:g,43:h,46:i}),a(l,[2,16],{14:22,15:m,16:n}),a(l,[2,17]),a(l,[2,18]),a(l,[2,19]),a(l,[2,20]),a(l,[2,21]),a(l,[2,22]),a(o,[2,25],{27:[1,25]}),a(l,[2,26]),{19:26,26:12,31:f},{10:b,11:27,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:d,29:e,31:f,39:g,43:h,46:i},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},a(p,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},a(j,[2,13]),{26:35,31:f},{31:[2,14]},{17:[1,36]},a(o,[2,24]),{10:b,11:37,13:4,14:22,15:m,16:n,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:d,29:e,31:f,39:g,43:h,46:i},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},a(p,[2,30]),{18:[1,43]},{18:[1,44]},a(o,[2,23]),{18:[1,45]},{30:[1,46]},a(l,[2,28]),a(l,[2,35]),a(l,[2,36]),a(l,[2,37]),a(l,[2,38]),{36:[1,47]},{33:48,34:q},{15:[1,50]},a(l,[2,27]),a(p,[2,33]),{38:[1,51]},{33:52,34:q,38:[2,31]},{31:[2,15]},a(p,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:(0,k.K)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,k.K)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",i=0,j=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,k.K)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,k.K)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=g[v]&&g[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],g[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(i+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(j=n.yyleng,h=n.yytext,i=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[h,j,i,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=g[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function s(){this.yy={}}return r.lexer={EOF:1,parseError:(0,k.K)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,k.K)(function(a,b){return this.yy=b||this.yy||{},this._input=a,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:(0,k.K)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,k.K)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;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),c.length-1&&(this.yylineno-=c.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:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,k.K)(function(){return this._more=!0,this},"more"),reject:(0,k.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,k.K)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,k.K)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,k.K)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,k.K)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,k.K)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,k.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,k.K)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,k.K)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,k.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,k.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,k.K)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,k.K)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,k.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,k.K)(function(a,b,c,d){switch(c){case 0:return a.getLogger().debug("Found block-beta"),10;case 1:return a.getLogger().debug("Found id-block"),29;case 2:return a.getLogger().debug("Found block"),10;case 3:a.getLogger().debug(".",b.yytext);break;case 4:a.getLogger().debug("_",b.yytext);break;case 5:return 5;case 6:return b.yytext=-1,28;case 7:return b.yytext=b.yytext.replace(/columns\s+/,""),a.getLogger().debug("COLUMNS (LEX)",b.yytext),28;case 8:case 76:case 77:case 99:this.pushState("md_string");break;case 9:return"MD_STR";case 10:case 34:case 79:this.popState();break;case 11:this.pushState("string");break;case 12:a.getLogger().debug("LEX: POPPING STR:",b.yytext),this.popState();break;case 13:return a.getLogger().debug("LEX: STR end:",b.yytext),"STR";case 14:return b.yytext=b.yytext.replace(/space\:/,""),a.getLogger().debug("SPACE NUM (LEX)",b.yytext),21;case 15:return b.yytext="1",a.getLogger().debug("COLUMNS (LEX)",b.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:case 38:case 40:case 41:case 44:return this.popState(),a.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),a.getLogger().debug("Lex: ))"),"NODE_DEND";case 42:return this.popState(),a.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),a.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),a.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),a.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),a.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:case 49:return this.popState(),a.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),a.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),a.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),a.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),a.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return a.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return a.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return a.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:case 59:case 60:case 61:case 64:return a.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return a.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 62:return a.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return a.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 65:case 66:case 67:case 68:case 69:case 70:case 71:return this.pushState("NODE"),35;case 72:return a.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),a.getLogger().debug("LEX ARR START"),37;case 74:return a.getLogger().debug("Lex: NODE_ID",b.yytext),31;case 75:return a.getLogger().debug("Lex: EOF",b.yytext),8;case 78:return"NODE_DESCR";case 80:a.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:a.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return a.getLogger().debug("LEX: NODE_DESCR:",b.yytext),"NODE_DESCR";case 83:a.getLogger().debug("LEX POPPING"),this.popState();break;case 84:a.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (right): dir:",b.yytext),"DIR";case 86:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (left):",b.yytext),"DIR";case 87:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (x):",b.yytext),"DIR";case 88:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (y):",b.yytext),"DIR";case 89:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (up):",b.yytext),"DIR";case 90:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (down):",b.yytext),"DIR";case 91:return b.yytext="]>",a.getLogger().debug("Lex (ARROW_DIR end):",b.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return a.getLogger().debug("Lex: LINK","#"+b.yytext+"#"),15;case 93:case 94:case 95:return a.getLogger().debug("Lex: LINK",b.yytext),15;case 96:case 97:case 98:return a.getLogger().debug("Lex: START_LINK",b.yytext),this.pushState("LLABEL"),16;case 100:return a.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),a.getLogger().debug("Lex: LINK","#"+b.yytext+"#"),15;case 102:case 103:return this.popState(),a.getLogger().debug("Lex: LINK",b.yytext),15;case 104:return a.getLogger().debug("Lex: COLON",b.yytext),b.yytext=b.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}},(0,k.K)(s,"Parser"),s.prototype=r,r.Parser=s,new s}();u.parser=u;var v=new Map,w=[],x=new Map,y="color",z="fill",A=new Map,B="",C=(0,k.K)(a=>i.Y2.sanitizeText(a,(0,i.D7)()),"sanitizeText"),D=(0,k.K)(function(a,b=""){let c=A.get(a);c||(c={id:a,styles:[],textStyles:[]},A.set(a,c)),null!=b&&b.split(",").forEach(a=>{let b=a.replace(/([^;]*);/,"$1").trim();if(RegExp(y).exec(a)){let a=b.replace(z,"bgFill").replace(y,z);c.textStyles.push(a)}c.styles.push(b)})},"addStyleClass"),E=(0,k.K)(function(a,b=""){let c=v.get(a);null!=b&&(c.styles=b.split(","))},"addStyle2Node"),F=(0,k.K)(function(a,b){a.split(",").forEach(function(a){let c=v.get(a);if(void 0===c){let b=a.trim();c={id:b,type:"na",children:[]},v.set(b,c)}c.classes||(c.classes=[]),c.classes.push(b)})},"setCssClass"),G=(0,k.K)((a,b)=>{let c=a.flat(),d=[],e=c.find(a=>a?.type==="column-setting"),f=e?.columns??-1;for(let a of c){if("number"==typeof f&&f>0&&"column-setting"!==a.type&&"number"==typeof a.widthInColumns&&a.widthInColumns>f&&j.R.warn(`Block ${a.id} width ${a.widthInColumns} exceeds configured column width ${f}`),a.label&&(a.label=C(a.label)),"classDef"===a.type){D(a.id,a.css);continue}if("applyClass"===a.type){F(a.id,a?.styleClass??"");continue}if("applyStyles"===a.type){a?.stylesStr&&E(a.id,a?.stylesStr);continue}if("column-setting"===a.type)b.columns=a.columns??-1;else if("edge"===a.type){let b=(x.get(a.id)??0)+1;x.set(a.id,b),a.id=b+"-"+a.id,w.push(a)}else{a.label||("composite"===a.type?a.label="":a.label=a.id);let b=v.get(a.id);if(void 0===b?v.set(a.id,a):("na"!==a.type&&(b.type=a.type),a.label!==a.id&&(b.label=a.label)),a.children&&G(a.children,a),"space"===a.type){let b=a.width??1;for(let c=0;c<b;c++){let b=function(a){if((0,l.s)(a))return a;let b=(0,m.b)(a);if(!function(a){switch((0,m.b)(a)){case n.R_:case n.Uw:case n.cT:case n.iq:case n.$V:case n.vC:case n.ri:case n.ML:case n.XZ:case n.i1:case n._u:case n.pj:case n.kj:case n.GX:case n.Av:case n.NA:case n.OG:case n.VP:case n.Qb:case n.q:case n.x6:case n.ZR:return!0;default:return!1}}(a))return{};if(Array.isArray(a)){let b=Array.from(a);return a.length>0&&"string"==typeof a[0]&&Object.hasOwn(a,"index")&&(b.index=a.index,b.input=a.input),b}if((0,o.i)(a))return new a.constructor(a.buffer,a.byteOffset,a.length);if(b===n.cT)return new ArrayBuffer(a.byteLength);if(b===n.iq){let b=a.buffer,c=a.byteOffset,d=a.byteLength,e=new ArrayBuffer(d),f=new Uint8Array(b,c,d);return new Uint8Array(e).set(f),new DataView(e)}if(b===n.$V||b===n.kj||b===n.OG){let c=new a.constructor(a.valueOf());return b===n.OG?function(a,b){let c=b.valueOf().length;for(let d in b)Object.hasOwn(b,d)&&(Number.isNaN(Number(d))||Number(d)>=c)&&(a[d]=b[d])}(c,a):p(c,a),c}if(b===n.vC)return new Date(Number(a));if(b===n.Av){let b=new RegExp(a.source,a.flags);return b.lastIndex=a.lastIndex,b}if(b===n.VP)return Object(Symbol.prototype.valueOf.call(a));if(b===n.pj){let b=new Map;return a.forEach((a,c)=>{b.set(c,a)}),b}if(b===n.NA){let b=new Set;return a.forEach(a=>{b.add(a)}),b}if(b===n.R_){let b={};return p(b,a),b.length=a.length,b[Symbol.iterator]=a[Symbol.iterator],b}let c={};return function(a,b){let c=Object.getPrototypeOf(b);null!==c&&"function"==typeof b.constructor&&Object.setPrototypeOf(a,c)}(c,a),p(c,a),function(a,b){let c=Object.getOwnPropertySymbols(b);for(let d=0;d<c.length;d++){let e=c[d];Object.prototype.propertyIsEnumerable.call(b,e)&&(a[e]=b[e])}}(c,a),c}(a);b.id=b.id+"-"+c,v.set(b.id,b),d.push(b)}}else void 0===b&&d.push(a)}}b.children=d},"populateBlockDatabase"),H=[],I={id:"root",type:"composite",children:[],columns:-1},J=(0,k.K)(()=>{j.R.debug("Clear called"),(0,i.IU)(),v=new Map([["root",I={id:"root",type:"composite",children:[],columns:-1}]]),H=[],A=new Map,w=[],x=new Map,B=""},"clear");function K(a){switch(j.R.debug("typeStr2Type",a),a){case"[]":return"square";case"()":return j.R.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function L(a){return(j.R.debug("typeStr2Type",a),"=="===a)?"thick":"normal"}function M(a){switch(a.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function N(a){switch(a.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function O(a){return a.includes("==")?"thick":"normal"}function P(a){return a.includes(".-")?"dotted":"solid"}(0,k.K)(K,"typeStr2Type"),(0,k.K)(L,"edgeTypeStr2Type"),(0,k.K)(M,"edgeStrToEdgeData"),(0,k.K)(N,"edgeStrToEdgeStartData"),(0,k.K)(O,"edgeStrToThickness"),(0,k.K)(P,"edgeStrToPattern");var Q=0,R=(0,k.K)(()=>(Q++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Q),"generateId"),S=(0,k.K)(a=>{I.children=a,G(a,I),H=I.children},"setHierarchy"),T=(0,k.K)(a=>{let b=v.get(a);return b?b.columns?b.columns:b.children?b.children.length:-1:-1},"getColumns"),U=(0,k.K)(()=>[...v.values()],"getBlocksFlat"),V=(0,k.K)(()=>H||[],"getBlocks"),W=(0,k.K)(()=>w,"getEdges"),X=(0,k.K)(a=>v.get(a),"getBlock"),Y=(0,k.K)(a=>{v.set(a.id,a)},"setBlock"),Z=(0,k.K)(a=>{B=a},"setDiagramId"),$=(0,k.K)(()=>B,"getDiagramId"),_=(0,k.K)(()=>j.R,"getLogger"),aa=(0,k.K)(function(){return A},"getClasses"),ab={getConfig:(0,k.K)(()=>(0,i.zj)().block,"getConfig"),typeStr2Type:K,edgeTypeStr2Type:L,edgeStrToEdgeData:M,edgeStrToEdgeStartData:N,edgeStrToThickness:O,edgeStrToPattern:P,getLogger:_,getBlocksFlat:U,getBlocks:V,getEdges:W,setHierarchy:S,getBlock:X,setBlock:Y,getColumns:T,getClasses:aa,clear:J,generateId:R,setDiagramId:Z,getDiagramId:$},ac=(0,k.K)((a,b)=>{let c=q.A,d=c(a,"r"),e=c(a,"g"),f=c(a,"b");return r.A(d,e,f,b)},"fade"),ad=(0,k.K)(a=>`.label {
|
|
16
16
|
font-family: ${a.fontFamily};
|
|
17
17
|
color: ${a.nodeTextColor||a.textColor};
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=7790,exports.ids=[7790],exports.modules={87790:(a,b,c)=>{c.r(b),c.d(b,{getEdgesToRender:()=>t,render:()=>v});var d=c(94674),e=c(32844),f=c(11878);c(8312),c(7423);var g=c(69819);c(59343),c(73669),c(64922);var h=c(45313),i=c(58715),j=c(95097),k=c(64980),l=c(82967),m=c(
|
|
1
|
+
"use strict";exports.id=7790,exports.ids=[7790],exports.modules={87790:(a,b,c)=>{c.r(b),c.d(b,{getEdgesToRender:()=>t,render:()=>v});var d=c(94674),e=c(32844),f=c(11878);c(8312),c(7423);var g=c(69819);c(59343),c(73669),c(64922);var h=c(45313),i=c(58715),j=c(95097),k=c(64980),l=c(82967),m=c(74367),n=(0,j.K)((a,b,c)=>Math.max(b,Math.min(c,a)),"clamp"),o=(0,j.K)((a="TB")=>{switch(a){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),p=(0,j.K)(a=>"flowchart"===a||"flowchart-v2"===a||"stateDiagram"===a,"shouldMergeSelfLoopSegments"),q=(0,j.K)((a,b,c,d,e)=>{let f=[],g=new Set;if(c.forEach(({start:a,end:b})=>{a!==d&&g.add(a),b!==d&&g.add(b)}),g.forEach(b=>{let c=a.node(b);"number"==typeof c?.x&&"number"==typeof c?.y&&f.push(c)}),0===f.length&&c.forEach(({edge:a})=>{(a.points??[]).forEach(a=>{"number"==typeof a?.x&&"number"==typeof a?.y&&f.push(a)})}),0===f.length)return o(e);let h=f.reduce((a,b)=>({x:a.x+b.x/f.length,y:a.y+b.y/f.length}),{x:0,y:0}),i=h.x-b.x,j=h.y-b.y;return Math.abs(i)>Math.abs(j)?i>0?"right":"left":Math.abs(j)>0?j>0?"bottom":"top":o(e)},"getSelfLoopSide"),r=(0,j.K)((a,b="top",c=0,d=0)=>{let e=a.x,f=a.y-c,g=a.width/2,h=a.height/2,i=Math.max(36,Math.min(100,.8*a.width)),j=n(Math.max(d,.35*a.width),36,i),k=n(.45*Math.min(a.width,a.height),24,48);switch(b){case"bottom":{let a=f+h;return[{x:e-j/2,y:a},{x:e-j/2,y:a+k},{x:e+j/2,y:a+k},{x:e+j/2,y:a}]}case"right":{let a=e+g;return[{x:a,y:f-j/2},{x:a+k,y:f-j/2},{x:a+k,y:f+j/2},{x:a,y:f+j/2}]}case"left":{let a=e-g;return[{x:a,y:f-j/2},{x:a-k,y:f-j/2},{x:a-k,y:f+j/2},{x:a,y:f+j/2}]}default:{let a=f-h;return[{x:e-j/2,y:a},{x:e-j/2,y:a-k},{x:e+j/2,y:a-k},{x:e+j/2,y:a}]}}},"getSelfLoopPoints"),s=(0,j.K)((a,b,c="top",d=0,e={})=>{let f=a.x,g=a.y-d,h=e.width??0,i=e.height??0;switch(c){case"bottom":return{x:f,y:Math.max(...b.map(a=>a.y))+i/2+4};case"right":return{x:Math.max(...b.map(a=>a.x))+h/2+4,y:g};case"left":return{x:Math.min(...b.map(a=>a.x))-h/2-4,y:g};default:return{x:f,y:Math.min(...b.map(a=>a.y))-i/2-4}}},"getSelfLoopLabelPosition"),t=(0,j.K)((a,b=0,{mergeSelfLoops:c=!0}={})=>{let d=new Map,e=[],f=a.graph()?.rankdir;return a.edges().forEach(b=>{let f=a.edge(b);if(c&&f.selfLoop){let a=f.selfLoop.id;d.has(a)||d.set(a,[]),d.get(a).push({edge:f,start:b.v,end:b.w})}else e.push({edge:f,start:b.v,end:b.w})}),d.forEach(c=>{if(3!==c.length)return void c.forEach(a=>e.push(a));c.sort((a,b)=>a.edge.selfLoop.order-b.edge.selfLoop.order);let[d,g,h]=c,i=d.edge.originalEdge??g.edge.originalEdge??h.edge.originalEdge??g.edge,j=a.node(i.start);if(!j)return void c.forEach(a=>e.push(a));let k={width:g.edge.width,height:g.edge.height},l=q(a,j,c,i.start,f),m=r(j,l,b,k.width??0),n=s(j,m,l,b,k),o={...g.edge,...i,id:i.id,points:m,start:i.start,end:i.end,x:n.x,y:n.y,width:k.width,height:k.height,labelStyle:g.edge.labelStyle,fromCluster:d.edge.fromCluster??g.edge.fromCluster??h.edge.fromCluster,toCluster:d.edge.toCluster??g.edge.toCluster??h.edge.toCluster};delete o.selfLoop,delete o.originalEdge,e.push({edge:o,start:o.start,end:o.end})}),e},"getEdgesToRender"),u=(0,j.K)(async(a,b,c,h,m,n)=>{i.R.warn("Graph in recursive render:XAX",l.M(b),m);let o=b.graph().rankdir;i.R.trace("Dir in recursive render - dir:",o);let q=a.insert("g").attr("class","root");b.nodes()?i.R.info("Recursive render XXX",b.nodes()):i.R.info("No nodes found for",b),b.edges().length>0&&i.R.info("Recursive edges",b.edge(b.edges()[0]));let r=q.insert("g").attr("class","clusters"),s=q.insert("g").attr("class","edgePaths"),v=q.insert("g").attr("class","edgeLabels"),w=q.insert("g").attr("class","nodes"),x=p(c);await Promise.all(b.nodes().map(async function(a){let e=b.node(a);if(void 0!==m){let c=JSON.parse(JSON.stringify(m.clusterData));i.R.trace("Setting data for parent cluster XXX\n Node.id = ",a,"\n data=",c.height,"\nParent cluster",m.height),b.setNode(m.id,c),b.parent(a)||(i.R.trace("Setting parent",a,m.id),b.setParent(a,m.id,c))}if(i.R.info("(Insert) Node XXX"+a+": "+JSON.stringify(b.node(a))),e?.clusterNode){i.R.info("Cluster identified XBX",a,e.width,b.node(a));let{ranksep:d,nodesep:g}=b.graph();e.graph.setGraph({...e.graph.graph(),ranksep:d+25,nodesep:g});let j=await u(w,e.graph,c,h,b.node(a),n),k=j.elem;(0,f.lC)(e,k),e.diff=j.diff||0,i.R.info("New compound node after recursive render XAX",a,"width",e.width,"height",e.height),(0,f.U7)(k,e)}else b.children(a).length>0?(i.R.trace("Cluster - the non recursive path XBX",a,e.id,e,e.width,"Graph:",b),i.R.trace((0,d.dc)(e.id,b)),d.ju.set(e.id,{id:(0,d.dc)(e.id,b),node:e})):(i.R.trace("Node - the non recursive path XAX",a,w,b.node(a),o),await (0,f.on)(w,b.node(a),{config:n,dir:o}))}));let y=(0,j.K)(async()=>{let a=b.edges().map(async function(a){let c=b.edge(a.v,a.w,a.name);if(i.R.info("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(a)),i.R.info("Edge "+a.v+" -> "+a.w+": ",a," ",JSON.stringify(b.edge(a))),i.R.info("Fix",d.ju,"ids:",a.v,a.w,"Translating: ",d.ju.get(a.v),d.ju.get(a.w)),x&&c.selfLoop){if(1!==c.selfLoop.order)return;let a=c.id;c.id=c.selfLoop.id,await (0,e.jP)(v,c),c.id=a;return}await (0,e.jP)(v,c)});await Promise.all(a)},"processEdges");await y(),i.R.info("Graph before layout:",JSON.stringify(l.M(b))),i.R.info("############################################# XXX"),i.R.info("### Layout ### XXX"),i.R.info("############################################# XXX"),(0,k.Zp)(b),i.R.info("Graph after layout:",JSON.stringify(l.M(b)));let z=0,{subGraphTitleTotalMargin:A}=(0,g.O)(n);await Promise.all((0,d.sc)(b).map(async function(a){let c=b.node(a);if(i.R.info("Position XBX => "+a+": ("+c.x,","+c.y,") width: ",c.width," height: ",c.height),c?.clusterNode)c.y+=A,i.R.info("A tainted cluster node XBX1",a,c.id,c.width,c.height,c.x,c.y,b.parent(a)),d.ju.get(c.id).node=c,(0,f.U_)(c);else if(b.children(a).length>0){i.R.info("A pure cluster node XBX1",a,c.id,c.x,c.y,c.width,c.height,b.parent(a)),c.height+=A,b.node(c.parentId);let e=c?.padding/2||0,g=c?.labelBBox?.height||0;i.R.debug("OffsetY",g-e||0,"labelHeight",g,"halfPadding",e),await (0,f.U)(r,c),d.ju.get(c.id).node=c}else{let a=b.node(c.parentId);c.y+=A/2,i.R.info("A regular node XBX1 - using the padding",c.id,"parent",c.parentId,c.width,c.height,c.x,c.y,"offsetY",c.offsetY,"parent",a,a?.offsetY,c),(0,f.U_)(c)}}));let B=A/2;return t(b,B,{mergeSelfLoops:x}).forEach(function({edge:a,start:f,end:g}){i.R.info("Edge "+f+" -> "+g+": "+JSON.stringify(a),a),a.points.forEach(a=>a.y+=B);let j=b.node(f),k=b.node(g),l=(0,e.Jo)(s,a,d.ju,c,j,k,h);(0,e.T_)(a,l)}),b.nodes().forEach(function(a){let c=b.node(a);i.R.info(a,c.type,c.diff),c.isGroup&&(z=c.diff)}),i.R.warn("Returning from recursive render XAX",q,z),{elem:q,diff:z}},"recursiveRender"),v=(0,j.K)(async(a,b)=>{let c=new m.T({multigraph:!0,compound:!0}).setGraph({rankdir:a.direction,nodesep:a.config?.nodeSpacing||a.config?.flowchart?.nodeSpacing||a.nodeSpacing,ranksep:a.config?.rankSpacing||a.config?.flowchart?.rankSpacing||a.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),g=b.select("g");(0,e.g0)(g,a.markers,a.type,a.diagramId),(0,f.gh)(),(0,e.IU)(),(0,f.IU)(),(0,d.IU)(),a.nodes.forEach(a=>{c.setNode(a.id,{...a}),a.parentId&&c.setParent(a.id,a.parentId)}),i.R.debug("Edges:",a.edges),a.edges.forEach(a=>{if(a.start===a.end){let b=a.start,d=b+"---"+b+"---1",e=b+"---"+b+"---2",f=c.node(b);c.setNode(d,{domId:d,id:d,parentId:f.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),c.setParent(d,f.parentId),c.setNode(e,{domId:e,id:e,parentId:f.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),c.setParent(e,f.parentId);let g=structuredClone(a),h=structuredClone(a),i=structuredClone(a),j=structuredClone(a);h.originalEdge=g,h.selfLoop={id:g.id,order:0},i.originalEdge=g,i.selfLoop={id:g.id,order:1},j.originalEdge=g,j.selfLoop={id:g.id,order:2},h.label="",h.arrowTypeEnd="none",h.endLabelLeft="",h.endLabelRight="",h.startLabelLeft="",h.id=b+"-cyclic-special-1",i.startLabelRight="",i.startLabelLeft="",i.endLabelLeft="",i.endLabelRight="",i.arrowTypeStart="none",i.arrowTypeEnd="none",i.id=b+"-cyclic-special-mid",j.label="",j.startLabelRight="",j.startLabelLeft="",j.arrowTypeStart="none",f.isGroup&&(h.fromCluster=b,j.toCluster=b),j.id=b+"-cyclic-special-2",j.arrowTypeStart="none",c.setEdge(b,d,h,b+"-cyclic-special-0"),c.setEdge(d,e,i,b+"-cyclic-special-1"),c.setEdge(e,b,j,b+"-cyclic-special-2")}else c.setEdge(a.start,a.end,{...a},a.id)}),i.R.warn("Graph at first:",JSON.stringify(l.M(c))),(0,d.OS)(c),i.R.warn("Graph after XAX:",JSON.stringify(l.M(c)));let j=(0,h.D7)();await u(g,c,a.type,a.diagramId,void 0,j)},"render")}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/
|
|
1
|
+
globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/UvaNlkI1Ec_O35YDKRH9X/_buildManifest.js","static/UvaNlkI1Ec_O35YDKRH9X/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-1b16208bb4ccd9c1.js","static/chunks/4bd1b696-8a4ab4fdf0ae305a.js","static/chunks/3794-6cecce02b123eb1f.js","static/chunks/main-app-a98576891fdd8f60.js"],rootMainFilesTree:{},pages:{"/_app":[]}};
|