pi-app 0.7.2 → 0.7.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 +3 -3
- package/.next/build-manifest.json +4 -4
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +3 -3
- package/.next/react-loadable-manifest.json +17 -17
- package/.next/required-server-files.js +6 -6
- package/.next/required-server-files.json +6 -6
- package/.next/server/app/_global-error/page.js +3 -3
- 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/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page.js.nft.json +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/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/export.html/route.js +1 -1
- package/.next/server/app/api/agent/[id]/export.html/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/[id]/export.html/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.js.nft.json +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.js.nft.json +1 -1
- package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/all-providers/route.js +1 -1
- package/.next/server/app/api/auth/all-providers/route.js.nft.json +1 -1
- package/.next/server/app/api/auth/all-providers/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.js.nft.json +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.js.nft.json +1 -1
- 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.js.nft.json +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.js.nft.json +1 -1
- package/.next/server/app/api/auth/providers/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/extensions/route.js +1 -1
- package/.next/server/app/api/extensions/route.js.nft.json +1 -1
- package/.next/server/app/api/extensions/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.js.nft.json +1 -1
- package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/files/stage/route.js +1 -1
- package/.next/server/app/api/files/stage/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git-branch/route.js +1 -1
- package/.next/server/app/api/git-branch/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/health/route.js +1 -1
- package/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/history/[id]/route.js +2 -2
- package/.next/server/app/api/history/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/history/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/history/route.js +2 -2
- package/.next/server/app/api/history/route.js.nft.json +1 -1
- package/.next/server/app/api/history/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.js.nft.json +1 -1
- package/.next/server/app/api/models/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.js.nft.json +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.js.nft.json +1 -1
- package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/notifications/agent-end/route.js +3 -3
- package/.next/server/app/api/notifications/agent-end/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/preferences/route.js +1 -1
- package/.next/server/app/api/preferences/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/product-sessions/[id]/route.js +1 -1
- package/.next/server/app/api/product-sessions/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/product-sessions/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/push/route.js +2 -2
- package/.next/server/app/api/push/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/remote/audit/route.js +1 -1
- package/.next/server/app/api/remote/audit/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/remote/client/route.js +1 -1
- package/.next/server/app/api/remote/client/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/remote/pair/route.js +1 -1
- package/.next/server/app/api/remote/pair/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/remote/route.js +1 -1
- package/.next/server/app/api/remote/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/scene-overrides/[sceneId]/route.js +2 -2
- package/.next/server/app/api/scene-overrides/[sceneId]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/scene-overrides/export/route.js +4 -4
- package/.next/server/app/api/scene-overrides/export/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/scene-overrides/import/route.js +2 -2
- package/.next/server/app/api/scene-overrides/import/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/scene-overrides/route.js +1 -1
- package/.next/server/app/api/scene-overrides/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/context/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/context/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/context/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.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/share/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/share/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/new/route.js +1 -1
- package/.next/server/app/api/sessions/new/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/route.js +2 -2
- package/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/settings/default-model/route.js +1 -1
- package/.next/server/app/api/settings/default-model/route.js.nft.json +1 -1
- package/.next/server/app/api/settings/default-model/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/share/[token]/route.js +1 -1
- package/.next/server/app/api/share/[token]/route.js.nft.json +1 -1
- package/.next/server/app/api/share/[token]/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 +2 -2
- package/.next/server/app/api/skills/route.js.nft.json +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/usage/route.js +2 -2
- package/.next/server/app/api/usage/route.js.nft.json +1 -1
- package/.next/server/app/api/usage/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/web-fetch/install-agent-browser/route.js +2 -2
- package/.next/server/app/api/web-fetch/install-agent-browser/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/web-fetch/preferences/route.js +1 -1
- package/.next/server/app/api/web-fetch/preferences/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/web-fetch/status/route.js +1 -1
- package/.next/server/app/api/web-fetch/status/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 +3 -3
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/page.js +5 -5
- 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/share/[token]/page.js +2 -2
- package/.next/server/app/share/[token]/page.js.nft.json +1 -1
- package/.next/server/app/share/[token]/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +3 -3
- package/.next/server/chunks/1381.js +1 -1
- package/.next/server/chunks/1703.js +1 -1
- package/.next/server/chunks/319.js +3 -3
- package/.next/server/chunks/3284.js +1 -0
- package/.next/server/chunks/3379.js +1 -1
- package/.next/server/chunks/3493.js +1 -1
- package/.next/server/chunks/4035.js +1 -1
- package/.next/server/chunks/4367.js +1 -1
- package/.next/server/chunks/4406.js +1 -1
- package/.next/server/chunks/4980.js +1 -1
- package/.next/server/chunks/5293.js +1 -1
- package/.next/server/chunks/5797.js +1 -1
- package/.next/server/chunks/5851.js +1 -1
- package/.next/server/chunks/6206.js +1 -1
- package/.next/server/chunks/7270.js +1 -1
- package/.next/server/chunks/8916.js +1 -1
- package/.next/server/chunks/9280.js +62 -62
- package/.next/server/chunks/9315.js +1 -1
- package/.next/server/chunks/9537.js +90 -0
- package/.next/server/chunks/966.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-manifest.json +5 -5
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/middleware.js +2 -2
- 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/{0b9a0da7.915b07ceecd18755.js → 0b9a0da7.9075af772487e743.js} +2 -2
- package/.next/static/chunks/{1852.4afb7f7ef17737c1.js → 1852.5543122f11aa7fed.js} +1 -1
- package/.next/static/chunks/{2419.fb50b8bb1874d556.js → 2419.347fdfe3c170854d.js} +1 -1
- package/.next/static/chunks/{3079.90c6008a4bba4ee1.js → 3079.4c511fa1144e3adf.js} +1 -1
- package/.next/static/chunks/{3308.115707ee3fd446be.js → 3308.1964a3fa76cba02f.js} +16 -16
- package/.next/static/chunks/{3325.01cdecedf0fb6d62.js → 3325.e4bfe1ca657f3b5b.js} +1 -1
- package/.next/static/chunks/3506.2a7eaa08b9f55337.js +90 -0
- package/.next/static/chunks/{394.2860c5a408dc8801.js → 394.91597771688df6d0.js} +1 -1
- package/.next/static/chunks/{3997.42e942ad02cc6f4b.js → 3997.1009c06025691712.js} +1 -1
- package/.next/static/chunks/{5034.cbaaf32db6d2086d.js → 5034.8f16c3fa3ce75411.js} +1 -1
- package/.next/static/chunks/{5074.fc63ed48a3b1a61f.js → 5074.d16651da01ec4e02.js} +1 -1
- package/.next/static/chunks/{6696.c05e02f280b8186b.js → 6696.a41aec266e657d54.js} +2 -2
- package/.next/static/chunks/{7343.9574ac32b87d5050.js → 7343.9fbb58204d8ac681.js} +1 -1
- package/.next/static/chunks/{7547.8caf31f3b18ded65.js → 7547.58bda8a2aabba0d4.js} +1 -1
- package/.next/static/chunks/{8489.fd81b5e4de9f8431.js → 8489.45f22859734f514f.js} +1 -1
- package/.next/static/chunks/9b0008ae.46f64400562a173e.js +2 -0
- package/.next/static/chunks/app/_not-found/page-433674846cbe1a12.js +1 -0
- package/.next/static/chunks/app/{layout-e74bc51db18cfddb.js → layout-dee60f48aba33b70.js} +1 -1
- package/.next/static/chunks/app/{page-16d9d8fcb33b2a19.js → page-9ea7c5df0546e3fb.js} +2 -2
- package/.next/static/chunks/app/share/[token]/{page-801df8f03e50e9cc.js → page-d022d0fda2951611.js} +1 -1
- package/.next/static/chunks/{main-app-4543b2d36de0bf44.js → main-app-a8eaf0472b160e89.js} +1 -1
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-e9772fcbe090eed4.js +1 -0
- package/.next/static/chunks/webpack-3c29a7a6de61bd6b.js +1 -0
- package/.next/trace +82 -6
- package/.next/trace-build +1 -1
- package/.next/types/app/api/agent/[id]/events/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/export.html/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/auth/all-providers/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/validate/route.ts +1 -1
- package/.next/types/app/api/default-cwd/route.ts +1 -1
- package/.next/types/app/api/extensions/route.ts +1 -1
- package/.next/types/app/api/files/[...path]/route.ts +1 -1
- package/.next/types/app/api/files/stage/route.ts +1 -1
- package/.next/types/app/api/git-branch/route.ts +1 -1
- package/.next/types/app/api/health/route.ts +1 -1
- package/.next/types/app/api/history/[id]/route.ts +1 -1
- package/.next/types/app/api/history/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/route.ts +1 -1
- package/.next/types/app/api/models-config/test/route.ts +1 -1
- package/.next/types/app/api/notifications/agent-end/route.ts +1 -1
- package/.next/types/app/api/preferences/route.ts +1 -1
- package/.next/types/app/api/product-sessions/[id]/route.ts +1 -1
- package/.next/types/app/api/push/route.ts +1 -1
- package/.next/types/app/api/remote/audit/route.ts +1 -1
- package/.next/types/app/api/remote/client/route.ts +1 -1
- package/.next/types/app/api/remote/pair/route.ts +1 -1
- package/.next/types/app/api/remote/route.ts +1 -1
- package/.next/types/app/api/scene-overrides/[sceneId]/route.ts +1 -1
- package/.next/types/app/api/scene-overrides/export/route.ts +1 -1
- package/.next/types/app/api/scene-overrides/import/route.ts +1 -1
- package/.next/types/app/api/scene-overrides/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/context/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/share/route.ts +1 -1
- package/.next/types/app/api/sessions/new/route.ts +1 -1
- package/.next/types/app/api/sessions/route.ts +1 -1
- package/.next/types/app/api/settings/default-model/route.ts +1 -1
- package/.next/types/app/api/share/[token]/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/usage/route.ts +1 -1
- package/.next/types/app/api/web-fetch/install-agent-browser/route.ts +1 -1
- package/.next/types/app/api/web-fetch/preferences/route.ts +1 -1
- package/.next/types/app/api/web-fetch/status/route.ts +1 -1
- package/.next/types/app/page.ts +1 -1
- package/.next/types/app/share/[token]/page.ts +1 -1
- package/package.json +1 -1
- package/.next/server/chunks/4325.js +0 -90
- package/.next/server/chunks/4880.js +0 -1
- package/.next/static/chunks/5035.3755dbc45ec0eb8d.js +0 -90
- package/.next/static/chunks/9b0008ae.3afefd8b13735168.js +0 -2
- package/.next/static/chunks/app/_not-found/page-647d65d4d44f4663.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-7fe17cf3265b4136.js +0 -1
- package/.next/static/chunks/webpack-bef1f311e5b374f6.js +0 -1
- /package/.next/static/{g5lgqsoouzYM8ahLSJb8- → qDeNXpEzVER9ldna4emiI}/_buildManifest.js +0 -0
- /package/.next/static/{g5lgqsoouzYM8ahLSJb8- → qDeNXpEzVER9ldna4emiI}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=3493,exports.ids=[3493],exports.modules={63493:(a,b,c)=>{c.d(b,{diagram:()=>f});var d=c(83031);c(80339),c(34091),c(44906),c(73865),c(65144),c(30800),c(90355),c(19203),c(
|
|
1
|
+
"use strict";exports.id=3493,exports.ids=[3493],exports.modules={63493:(a,b,c)=>{c.d(b,{diagram:()=>f});var d=c(83031);c(80339),c(34091),c(44906),c(73865),c(65144),c(30800),c(90355),c(19203),c(31792),c(70400),c(65246);var e=c(21143),f={parser:d.Zk,get db(){return new d.u4(2)},renderer:d.q7,styles:d.tM,init:(0,e.K2)(a=>{a.state||(a.state={}),a.state.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")}}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";exports.id=4035,exports.ids=[4035],exports.modules={34091:(a,b,c)=>{c.d(b,{P:()=>f});var d=c(65246),e=c(21143),f=(0,e.K2)((a,b,c,f)=>{a.attr("class",c);let{width:i,height:j,x:k,y:l}=g(a,b);(0,d.a$)(a,j,i,f);let m=h(k,l,i,j,b);a.attr("viewBox",m),e.Rm.debug(`viewBox configured: ${m} with padding: ${b}`)},"setupViewPortForSVG"),g=(0,e.K2)((a,b)=>{let c=a.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:c.width+2*b,height:c.height+2*b,x:c.x,y:c.y}},"calculateDimensionsWithPadding"),h=(0,e.K2)((a,b,c,d,e)=>`${a-e} ${b-e} ${c} ${d}`,"createViewBox")},75899:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(73946),e=c(363);let f=(a,b)=>d.A.lang.round(e.A.parse(a)[b])},80339:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(21143),e=c(69085),f=(0,d.K2)((a,b)=>{let c;return"sandbox"===b&&(c=(0,e.Ltv)("#i"+a)),("sandbox"===b?(0,e.Ltv)(c.nodes()[0].contentDocument.body):(0,e.Ltv)("body")).select(`[id="${a}"]`)},"getDiagramElement")},94035:(a,b,c)=>{c.d(b,{diagram:()=>t});var d=c(80339),e=c(34091),f=c(44906);c(73865),c(65144),c(30800),c(90355),c(19203),c(551);var g=c(70400),h=c(65246),i=c(21143),j=c(69085),k=c(75899),l=c(14120),m=function(){var a=(0,i.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],c=[1,10],d=[1,11],e=[1,12],f=[1,13],g=[1,23],h=[1,24],j=[1,25],k=[1,26],l=[1,27],m=[1,19],n=[1,28],o=[1,29],p=[1,20],q=[1,18],r=[1,21],s=[1,22],t=[1,36],u=[1,37],v=[1,38],w=[1,39],x=[1,40],y=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],z=[1,45],A=[1,46],B=[1,55],C=[40,48,50,51,52,70,71],D=[1,66],E=[1,64],F=[1,61],G=[1,65],H=[1,67],I=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],J=[65,66,67,68,69],K=[1,84],L=[1,83],M=[1,81],N=[1,82],O=[6,10,42,47],P=[6,10,13,41,42,47,48,49],Q=[1,92],R=[1,91],S=[1,90],T=[19,58],U=[1,101],V=[1,100],W=[19,58,60,62],X={trace:(0,i.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:(0,i.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:f[h-1].push(f[h]),this.$=f[h-1];break;case 4:case 5:case 55:case 56:case 57:case 58:case 81:case 65:case 66:case 69:this.$=f[h];break;case 8:d.addEntity(f[h-4]),d.addEntity(f[h-2]),d.addRelationship(f[h-4],f[h],f[h-2],f[h-3]);break;case 9:d.addEntity(f[h-8]),d.addEntity(f[h-4]),d.addRelationship(f[h-8],f[h],f[h-4],f[h-5]),d.setClass([f[h-8]],f[h-6]),d.setClass([f[h-4]],f[h-2]);break;case 10:d.addEntity(f[h-6]),d.addEntity(f[h-2]),d.addRelationship(f[h-6],f[h],f[h-2],f[h-3]),d.setClass([f[h-6]],f[h-4]);break;case 11:d.addEntity(f[h-6]),d.addEntity(f[h-4]),d.addRelationship(f[h-6],f[h],f[h-4],f[h-5]),d.setClass([f[h-4]],f[h-2]);break;case 12:d.addEntity(f[h-3]),d.addAttributes(f[h-3],f[h-1]);break;case 13:d.addEntity(f[h-5]),d.addAttributes(f[h-5],f[h-1]),d.setClass([f[h-5]],f[h-3]);break;case 14:d.addEntity(f[h-2]);break;case 15:d.addEntity(f[h-4]),d.setClass([f[h-4]],f[h-2]);break;case 16:d.addEntity(f[h]);break;case 17:d.addEntity(f[h-2]),d.setClass([f[h-2]],f[h]);break;case 18:d.addEntity(f[h-6],f[h-4]),d.addAttributes(f[h-6],f[h-1]);break;case 19:d.addEntity(f[h-8],f[h-6]),d.addAttributes(f[h-8],f[h-1]),d.setClass([f[h-8]],f[h-3]);break;case 20:d.addEntity(f[h-5],f[h-3]);break;case 21:d.addEntity(f[h-7],f[h-5]),d.setClass([f[h-7]],f[h-2]);break;case 22:d.addEntity(f[h-3],f[h-1]);break;case 23:d.addEntity(f[h-5],f[h-3]),d.setClass([f[h-5]],f[h]);break;case 24:case 25:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 26:case 27:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 32:d.setDirection("TB");break;case 33:d.setDirection("BT");break;case 34:d.setDirection("RL");break;case 35:d.setDirection("LR");break;case 36:this.$=f[h-3],d.addClass(f[h-2],f[h-1]);break;case 37:case 38:case 59:case 67:case 43:this.$=[f[h]];break;case 39:case 40:this.$=f[h-2].concat([f[h]]);break;case 41:this.$=f[h-2],d.setClass(f[h-1],f[h]);break;case 42:this.$=f[h-3],d.addCssStyles(f[h-2],f[h-1]);break;case 44:case 68:f[h-2].push(f[h]),this.$=f[h-2];break;case 46:this.$=f[h-1]+f[h];break;case 54:case 79:case 80:case 70:this.$=f[h].replace(/"/g,"");break;case 60:f[h].push(f[h-1]),this.$=f[h];break;case 61:this.$={type:f[h-1],name:f[h]};break;case 62:this.$={type:f[h-2],name:f[h-1],keys:f[h]};break;case 63:this.$={type:f[h-2],name:f[h-1],comment:f[h]};break;case 64:this.$={type:f[h-3],name:f[h-2],keys:f[h-1],comment:f[h]};break;case 71:this.$={cardA:f[h],relType:f[h-1],cardB:f[h-2]};break;case 72:this.$=d.Cardinality.ZERO_OR_ONE;break;case 73:this.$=d.Cardinality.ZERO_OR_MORE;break;case 74:this.$=d.Cardinality.ONE_OR_MORE;break;case 75:this.$=d.Cardinality.ONLY_ONE;break;case 76:this.$=d.Cardinality.MD_PARENT;break;case 77:this.$=d.Identification.NON_IDENTIFYING;break;case 78:this.$=d.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},a(b,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:c,24:d,26:e,28:f,29:14,30:15,31:16,32:17,33:g,34:h,35:j,36:k,37:l,40:m,43:n,44:o,48:p,50:q,51:r,52:s},a(b,[2,7],{1:[2,1]}),a(b,[2,3]),{9:30,11:9,22:c,24:d,26:e,28:f,29:14,30:15,31:16,32:17,33:g,34:h,35:j,36:k,37:l,40:m,43:n,44:o,48:p,50:q,51:r,52:s},a(b,[2,5]),a(b,[2,6]),a(b,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:t,66:u,67:v,68:w,69:x}),{23:[1,41]},{25:[1,42]},{27:[1,43]},a(b,[2,27]),a(b,[2,28]),a(b,[2,29]),a(b,[2,30]),a(b,[2,31]),a(y,[2,54]),a(y,[2,55]),a(y,[2,56]),a(y,[2,57]),a(y,[2,58]),a(b,[2,32]),a(b,[2,33]),a(b,[2,34]),a(b,[2,35]),{16:44,40:z,41:A},{16:47,40:z,41:A},{16:48,40:z,41:A},a(b,[2,4]),{11:49,40:m,48:p,50:q,51:r,52:s},{16:50,40:z,41:A},{18:51,19:[1,52],53:53,54:54,58:B},{11:56,40:m,48:p,50:q,51:r,52:s},{64:57,70:[1,58],71:[1,59]},a(C,[2,72]),a(C,[2,73]),a(C,[2,74]),a(C,[2,75]),a(C,[2,76]),a(b,[2,24]),a(b,[2,25]),a(b,[2,26]),{13:D,38:60,41:E,42:F,45:62,46:63,48:G,49:H},a(I,[2,37]),a(I,[2,38]),{16:68,40:z,41:A,42:F},{13:D,38:69,41:E,42:F,45:62,46:63,48:G,49:H},{13:[1,70],15:[1,71]},a(b,[2,17],{63:35,12:72,17:[1,73],42:F,65:t,66:u,67:v,68:w,69:x}),{19:[1,74]},a(b,[2,14]),{18:75,19:[2,59],53:53,54:54,58:B},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:t,66:u,67:v,68:w,69:x},a(J,[2,77]),a(J,[2,78]),{6:K,10:L,39:80,42:M,47:N},{40:[1,85],41:[1,86]},a(O,[2,43],{46:87,13:D,41:E,48:G,49:H}),a(P,[2,45]),a(P,[2,50]),a(P,[2,51]),a(P,[2,52]),a(P,[2,53]),a(b,[2,41],{42:F}),{6:K,10:L,39:88,42:M,47:N},{14:89,40:Q,50:R,72:S},{16:93,40:z,41:A},{11:94,40:m,48:p,50:q,51:r,52:s},{18:95,19:[1,96],53:53,54:54,58:B},a(b,[2,12]),{19:[2,60]},a(T,[2,61],{56:97,57:98,59:99,61:U,62:V}),a([19,58,61,62],[2,66]),a(b,[2,22],{15:[1,103],17:[1,102]}),a([40,48,50,51,52],[2,71]),a(b,[2,36]),{13:D,41:E,45:104,46:63,48:G,49:H},a(b,[2,47]),a(b,[2,48]),a(b,[2,49]),a(I,[2,39]),a(I,[2,40]),a(P,[2,46]),a(b,[2,42]),a(b,[2,8]),a(b,[2,79]),a(b,[2,80]),a(b,[2,81]),{13:[1,105],42:F},{13:[1,107],15:[1,106]},{19:[1,108]},a(b,[2,15]),a(T,[2,62],{57:109,60:[1,110],62:V}),a(T,[2,63]),a(W,[2,67]),a(T,[2,70]),a(W,[2,69]),{18:111,19:[1,112],53:53,54:54,58:B},{16:113,40:z,41:A},a(O,[2,44],{46:87,13:D,41:E,48:G,49:H}),{14:114,40:Q,50:R,72:S},{16:115,40:z,41:A},{14:116,40:Q,50:R,72:S},a(b,[2,13]),a(T,[2,64]),{59:117,61:U},{19:[1,118]},a(b,[2,20]),a(b,[2,23],{17:[1,119],42:F}),a(b,[2,11]),{13:[1,120],42:F},a(b,[2,10]),a(W,[2,68]),a(b,[2,18]),{18:121,19:[1,122],53:53,54:54,58:B},{14:123,40:Q,50:R,72:S},{19:[1,124]},a(b,[2,21]),a(b,[2,9]),a(b,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:(0,i.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,i.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",j=0,k=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,i.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,i.K2)(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 "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+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):(k=n.yyleng,h=n.yytext,j=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,k,j,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 Y(){this.yy={}}return X.lexer={EOF:1,parseError:(0,i.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,i.K2)(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,i.K2)(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,i.K2)(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,i.K2)(function(){return this._more=!0,this},"more"),reject:(0,i.K2)(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,i.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,i.K2)(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,i.K2)(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,i.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,i.K2)(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,i.K2)(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,i.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,i.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,i.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,i.K2)(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,i.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,i.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,i.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K2)(function(a,b,c,d){switch(c){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:case 23:case 28:case 35:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:case 38:return 49;case 20:case 37:return 42;case 21:return 15;case 22:case 36:return 13;case 24:return 61;case 25:case 26:return 58;case 27:return 62;case 29:return this.popState(),19;case 30:case 77:return b.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 39:return this.begin("style"),37;case 40:return 43;case 41:case 45:case 46:case 64:return 65;case 42:case 43:case 44:case 52:case 54:case 66:return 67;case 47:case 48:case 49:case 50:case 51:case 53:case 65:return 66;case 55:case 56:case 58:case 59:case 60:case 63:return 68;case 57:return 51;case 61:return 52;case 62:return 48;case 67:return 69;case 68:case 71:case 72:case 73:return 70;case 69:case 70:return 71;case 74:return 41;case 75:return 47;case 76:return 40;case 78:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,76,77,78],inclusive:!0}}},(0,i.K2)(Y,"Parser"),Y.prototype=X,X.Parser=Y,new Y}();m.parser=m;var n=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=h.SV,this.getAccTitle=h.iN,this.setAccDescription=h.EI,this.getAccDescription=h.m7,this.setDiagramTitle=h.ke,this.getDiagramTitle=h.ab,this.getConfig=(0,i.K2)(()=>(0,h.D7)().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{(0,i.K2)(this,"ErDB")}addEntity(a,b=""){return this.entities.has(a)?!this.entities.get(a)?.alias&&b&&(this.entities.get(a).alias=b,i.Rm.info(`Add alias '${b}' to entity '${a}'`)):(this.entities.set(a,{id:`entity-${a}-${this.entities.size}`,label:a,attributes:[],alias:b,shape:"erBox",look:(0,h.D7)().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),i.Rm.info("Added new entity :",a)),this.entities.get(a)}getEntity(a){return this.entities.get(a)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(a,b){let c,d=this.addEntity(a);for(c=b.length-1;c>=0;c--)b[c].keys||(b[c].keys=[]),b[c].comment||(b[c].comment=""),d.attributes.push(b[c]),i.Rm.debug("Added attribute ",b[c].name)}addRelationship(a,b,c,d){let e=this.entities.get(a),f=this.entities.get(c);if(!e||!f)return;let g={entityA:e.id,roleA:b,entityB:f.id,relSpec:d};this.relationships.push(g),i.Rm.debug("Added new relationship :",g)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(a){this.direction=a}getCompiledStyles(a){let b=[];for(let c of a){let a=this.classes.get(c);a?.styles&&(b=[...b,...a.styles??[]].map(a=>a.trim())),a?.textStyles&&(b=[...b,...a.textStyles??[]].map(a=>a.trim()))}return b}addCssStyles(a,b){for(let c of a){let a=this.entities.get(c);if(!b||!a)return;for(let c of b)a.cssStyles.push(c)}}addClass(a,b){a.forEach(a=>{let c=this.classes.get(a);void 0===c&&(c={id:a,styles:[],textStyles:[]},this.classes.set(a,c)),b&&b.forEach(function(a){if(/color/.exec(a)){let b=a.replace("fill","bgFill");c.textStyles.push(b)}c.styles.push(a)})})}setClass(a,b){for(let c of a){let a=this.entities.get(c);if(a)for(let c of b)a.cssClasses+=" "+c}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],(0,h.IU)()}getData(){let a=[],b=[],c=(0,h.D7)(),d=0;for(let b of this.entities.keys()){let c=this.entities.get(b);c&&(c.cssCompiledStyles=this.getCompiledStyles(c.cssClasses.split(" ")),c.colorIndex=d++,a.push(c))}let e=0;for(let a of this.relationships){let d={id:(0,g.rY)(a.entityA,a.entityB,{prefix:"id",counter:e++}),type:"normal",curve:"basis",start:a.entityA,end:a.entityB,label:a.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:a.relSpec.cardB.toLowerCase(),arrowTypeEnd:a.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==a.relSpec.relType?"solid":"dashed",look:c.look,labelType:"markdown"};b.push(d)}return{nodes:a,edges:b,other:{},config:c,direction:"TB"}}},o={};(0,i.VA)(o,{draw:()=>p});var p=(0,i.K2)(async function(a,b,c,k){i.Rm.info("REF0:"),i.Rm.info("Drawing er diagram (unified)",b);let{securityLevel:l,er:m,layout:n}=(0,h.D7)(),o=k.db.getData(),p=(0,d.A)(b,l);o.type=k.type,o.layoutAlgorithm=(0,f.q7)(n),o.config.flowchart.nodeSpacing=m?.nodeSpacing||140,o.config.flowchart.rankSpacing=m?.rankSpacing||80,o.direction=k.db.getDirection();let{config:q}=o,{look:r}=q;"neo"===r?o.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:o.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],o.diagramId=b,await (0,f.XX)(o,p),"elk"===o.layoutAlgorithm&&p.select(".edges").lower();let s=p.selectAll('[id*="-background"]');Array.from(s).length>0&&s.each(function(){let a=(0,j.Ltv)(this),b=a.attr("id").replace("-background",""),c=p.select(`#${CSS.escape(b)}`);if(!c.empty()){let b=c.attr("transform");a.attr("transform",b)}}),g._K.insertTitle(p,"erDiagramTitleText",m?.titleTopMargin??25,k.db.getDiagramTitle()),(0,e.P)(p,8,"erDiagram",m?.useMaxWidth??!0)},"draw"),q=(0,i.K2)((a,b)=>{let c=k.A,d=c(a,"r"),e=c(a,"g"),f=c(a,"b");return l.A(d,e,f,b)},"fade"),r=new Set(["redux-color","redux-dark-color"]),s=(0,i.K2)(a=>{let{theme:b,look:c,bkgColorArray:d,borderColorArray:e}=a;if(!r.has(b))return"";let f=d?.length>0,g="";for(let b=0;b<a.THEME_COLOR_LIMIT;b++)g+=`
|
|
1
|
+
"use strict";exports.id=4035,exports.ids=[4035],exports.modules={34091:(a,b,c)=>{c.d(b,{P:()=>f});var d=c(65246),e=c(21143),f=(0,e.K2)((a,b,c,f)=>{a.attr("class",c);let{width:i,height:j,x:k,y:l}=g(a,b);(0,d.a$)(a,j,i,f);let m=h(k,l,i,j,b);a.attr("viewBox",m),e.Rm.debug(`viewBox configured: ${m} with padding: ${b}`)},"setupViewPortForSVG"),g=(0,e.K2)((a,b)=>{let c=a.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:c.width+2*b,height:c.height+2*b,x:c.x,y:c.y}},"calculateDimensionsWithPadding"),h=(0,e.K2)((a,b,c,d,e)=>`${a-e} ${b-e} ${c} ${d}`,"createViewBox")},75899:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(73946),e=c(363);let f=(a,b)=>d.A.lang.round(e.A.parse(a)[b])},80339:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(21143),e=c(69085),f=(0,d.K2)((a,b)=>{let c;return"sandbox"===b&&(c=(0,e.Ltv)("#i"+a)),("sandbox"===b?(0,e.Ltv)(c.nodes()[0].contentDocument.body):(0,e.Ltv)("body")).select(`[id="${a}"]`)},"getDiagramElement")},94035:(a,b,c)=>{c.d(b,{diagram:()=>t});var d=c(80339),e=c(34091),f=c(44906);c(73865),c(65144),c(30800),c(90355),c(19203),c(31792);var g=c(70400),h=c(65246),i=c(21143),j=c(69085),k=c(75899),l=c(14120),m=function(){var a=(0,i.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],c=[1,10],d=[1,11],e=[1,12],f=[1,13],g=[1,23],h=[1,24],j=[1,25],k=[1,26],l=[1,27],m=[1,19],n=[1,28],o=[1,29],p=[1,20],q=[1,18],r=[1,21],s=[1,22],t=[1,36],u=[1,37],v=[1,38],w=[1,39],x=[1,40],y=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],z=[1,45],A=[1,46],B=[1,55],C=[40,48,50,51,52,70,71],D=[1,66],E=[1,64],F=[1,61],G=[1,65],H=[1,67],I=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],J=[65,66,67,68,69],K=[1,84],L=[1,83],M=[1,81],N=[1,82],O=[6,10,42,47],P=[6,10,13,41,42,47,48,49],Q=[1,92],R=[1,91],S=[1,90],T=[19,58],U=[1,101],V=[1,100],W=[19,58,60,62],X={trace:(0,i.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:(0,i.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:f[h-1].push(f[h]),this.$=f[h-1];break;case 4:case 5:case 55:case 56:case 57:case 58:case 81:case 65:case 66:case 69:this.$=f[h];break;case 8:d.addEntity(f[h-4]),d.addEntity(f[h-2]),d.addRelationship(f[h-4],f[h],f[h-2],f[h-3]);break;case 9:d.addEntity(f[h-8]),d.addEntity(f[h-4]),d.addRelationship(f[h-8],f[h],f[h-4],f[h-5]),d.setClass([f[h-8]],f[h-6]),d.setClass([f[h-4]],f[h-2]);break;case 10:d.addEntity(f[h-6]),d.addEntity(f[h-2]),d.addRelationship(f[h-6],f[h],f[h-2],f[h-3]),d.setClass([f[h-6]],f[h-4]);break;case 11:d.addEntity(f[h-6]),d.addEntity(f[h-4]),d.addRelationship(f[h-6],f[h],f[h-4],f[h-5]),d.setClass([f[h-4]],f[h-2]);break;case 12:d.addEntity(f[h-3]),d.addAttributes(f[h-3],f[h-1]);break;case 13:d.addEntity(f[h-5]),d.addAttributes(f[h-5],f[h-1]),d.setClass([f[h-5]],f[h-3]);break;case 14:d.addEntity(f[h-2]);break;case 15:d.addEntity(f[h-4]),d.setClass([f[h-4]],f[h-2]);break;case 16:d.addEntity(f[h]);break;case 17:d.addEntity(f[h-2]),d.setClass([f[h-2]],f[h]);break;case 18:d.addEntity(f[h-6],f[h-4]),d.addAttributes(f[h-6],f[h-1]);break;case 19:d.addEntity(f[h-8],f[h-6]),d.addAttributes(f[h-8],f[h-1]),d.setClass([f[h-8]],f[h-3]);break;case 20:d.addEntity(f[h-5],f[h-3]);break;case 21:d.addEntity(f[h-7],f[h-5]),d.setClass([f[h-7]],f[h-2]);break;case 22:d.addEntity(f[h-3],f[h-1]);break;case 23:d.addEntity(f[h-5],f[h-3]),d.setClass([f[h-5]],f[h]);break;case 24:case 25:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 26:case 27:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 32:d.setDirection("TB");break;case 33:d.setDirection("BT");break;case 34:d.setDirection("RL");break;case 35:d.setDirection("LR");break;case 36:this.$=f[h-3],d.addClass(f[h-2],f[h-1]);break;case 37:case 38:case 59:case 67:case 43:this.$=[f[h]];break;case 39:case 40:this.$=f[h-2].concat([f[h]]);break;case 41:this.$=f[h-2],d.setClass(f[h-1],f[h]);break;case 42:this.$=f[h-3],d.addCssStyles(f[h-2],f[h-1]);break;case 44:case 68:f[h-2].push(f[h]),this.$=f[h-2];break;case 46:this.$=f[h-1]+f[h];break;case 54:case 79:case 80:case 70:this.$=f[h].replace(/"/g,"");break;case 60:f[h].push(f[h-1]),this.$=f[h];break;case 61:this.$={type:f[h-1],name:f[h]};break;case 62:this.$={type:f[h-2],name:f[h-1],keys:f[h]};break;case 63:this.$={type:f[h-2],name:f[h-1],comment:f[h]};break;case 64:this.$={type:f[h-3],name:f[h-2],keys:f[h-1],comment:f[h]};break;case 71:this.$={cardA:f[h],relType:f[h-1],cardB:f[h-2]};break;case 72:this.$=d.Cardinality.ZERO_OR_ONE;break;case 73:this.$=d.Cardinality.ZERO_OR_MORE;break;case 74:this.$=d.Cardinality.ONE_OR_MORE;break;case 75:this.$=d.Cardinality.ONLY_ONE;break;case 76:this.$=d.Cardinality.MD_PARENT;break;case 77:this.$=d.Identification.NON_IDENTIFYING;break;case 78:this.$=d.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},a(b,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:c,24:d,26:e,28:f,29:14,30:15,31:16,32:17,33:g,34:h,35:j,36:k,37:l,40:m,43:n,44:o,48:p,50:q,51:r,52:s},a(b,[2,7],{1:[2,1]}),a(b,[2,3]),{9:30,11:9,22:c,24:d,26:e,28:f,29:14,30:15,31:16,32:17,33:g,34:h,35:j,36:k,37:l,40:m,43:n,44:o,48:p,50:q,51:r,52:s},a(b,[2,5]),a(b,[2,6]),a(b,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:t,66:u,67:v,68:w,69:x}),{23:[1,41]},{25:[1,42]},{27:[1,43]},a(b,[2,27]),a(b,[2,28]),a(b,[2,29]),a(b,[2,30]),a(b,[2,31]),a(y,[2,54]),a(y,[2,55]),a(y,[2,56]),a(y,[2,57]),a(y,[2,58]),a(b,[2,32]),a(b,[2,33]),a(b,[2,34]),a(b,[2,35]),{16:44,40:z,41:A},{16:47,40:z,41:A},{16:48,40:z,41:A},a(b,[2,4]),{11:49,40:m,48:p,50:q,51:r,52:s},{16:50,40:z,41:A},{18:51,19:[1,52],53:53,54:54,58:B},{11:56,40:m,48:p,50:q,51:r,52:s},{64:57,70:[1,58],71:[1,59]},a(C,[2,72]),a(C,[2,73]),a(C,[2,74]),a(C,[2,75]),a(C,[2,76]),a(b,[2,24]),a(b,[2,25]),a(b,[2,26]),{13:D,38:60,41:E,42:F,45:62,46:63,48:G,49:H},a(I,[2,37]),a(I,[2,38]),{16:68,40:z,41:A,42:F},{13:D,38:69,41:E,42:F,45:62,46:63,48:G,49:H},{13:[1,70],15:[1,71]},a(b,[2,17],{63:35,12:72,17:[1,73],42:F,65:t,66:u,67:v,68:w,69:x}),{19:[1,74]},a(b,[2,14]),{18:75,19:[2,59],53:53,54:54,58:B},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:t,66:u,67:v,68:w,69:x},a(J,[2,77]),a(J,[2,78]),{6:K,10:L,39:80,42:M,47:N},{40:[1,85],41:[1,86]},a(O,[2,43],{46:87,13:D,41:E,48:G,49:H}),a(P,[2,45]),a(P,[2,50]),a(P,[2,51]),a(P,[2,52]),a(P,[2,53]),a(b,[2,41],{42:F}),{6:K,10:L,39:88,42:M,47:N},{14:89,40:Q,50:R,72:S},{16:93,40:z,41:A},{11:94,40:m,48:p,50:q,51:r,52:s},{18:95,19:[1,96],53:53,54:54,58:B},a(b,[2,12]),{19:[2,60]},a(T,[2,61],{56:97,57:98,59:99,61:U,62:V}),a([19,58,61,62],[2,66]),a(b,[2,22],{15:[1,103],17:[1,102]}),a([40,48,50,51,52],[2,71]),a(b,[2,36]),{13:D,41:E,45:104,46:63,48:G,49:H},a(b,[2,47]),a(b,[2,48]),a(b,[2,49]),a(I,[2,39]),a(I,[2,40]),a(P,[2,46]),a(b,[2,42]),a(b,[2,8]),a(b,[2,79]),a(b,[2,80]),a(b,[2,81]),{13:[1,105],42:F},{13:[1,107],15:[1,106]},{19:[1,108]},a(b,[2,15]),a(T,[2,62],{57:109,60:[1,110],62:V}),a(T,[2,63]),a(W,[2,67]),a(T,[2,70]),a(W,[2,69]),{18:111,19:[1,112],53:53,54:54,58:B},{16:113,40:z,41:A},a(O,[2,44],{46:87,13:D,41:E,48:G,49:H}),{14:114,40:Q,50:R,72:S},{16:115,40:z,41:A},{14:116,40:Q,50:R,72:S},a(b,[2,13]),a(T,[2,64]),{59:117,61:U},{19:[1,118]},a(b,[2,20]),a(b,[2,23],{17:[1,119],42:F}),a(b,[2,11]),{13:[1,120],42:F},a(b,[2,10]),a(W,[2,68]),a(b,[2,18]),{18:121,19:[1,122],53:53,54:54,58:B},{14:123,40:Q,50:R,72:S},{19:[1,124]},a(b,[2,21]),a(b,[2,9]),a(b,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:(0,i.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,i.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",j=0,k=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,i.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,i.K2)(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 "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+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):(k=n.yyleng,h=n.yytext,j=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,k,j,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 Y(){this.yy={}}return X.lexer={EOF:1,parseError:(0,i.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,i.K2)(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,i.K2)(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,i.K2)(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,i.K2)(function(){return this._more=!0,this},"more"),reject:(0,i.K2)(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,i.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,i.K2)(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,i.K2)(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,i.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,i.K2)(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,i.K2)(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,i.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,i.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,i.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,i.K2)(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,i.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,i.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,i.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K2)(function(a,b,c,d){switch(c){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:case 23:case 28:case 35:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:case 38:return 49;case 20:case 37:return 42;case 21:return 15;case 22:case 36:return 13;case 24:return 61;case 25:case 26:return 58;case 27:return 62;case 29:return this.popState(),19;case 30:case 77:return b.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 39:return this.begin("style"),37;case 40:return 43;case 41:case 45:case 46:case 64:return 65;case 42:case 43:case 44:case 52:case 54:case 66:return 67;case 47:case 48:case 49:case 50:case 51:case 53:case 65:return 66;case 55:case 56:case 58:case 59:case 60:case 63:return 68;case 57:return 51;case 61:return 52;case 62:return 48;case 67:return 69;case 68:case 71:case 72:case 73:return 70;case 69:case 70:return 71;case 74:return 41;case 75:return 47;case 76:return 40;case 78:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,76,77,78],inclusive:!0}}},(0,i.K2)(Y,"Parser"),Y.prototype=X,X.Parser=Y,new Y}();m.parser=m;var n=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=h.SV,this.getAccTitle=h.iN,this.setAccDescription=h.EI,this.getAccDescription=h.m7,this.setDiagramTitle=h.ke,this.getDiagramTitle=h.ab,this.getConfig=(0,i.K2)(()=>(0,h.D7)().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{(0,i.K2)(this,"ErDB")}addEntity(a,b=""){return this.entities.has(a)?!this.entities.get(a)?.alias&&b&&(this.entities.get(a).alias=b,i.Rm.info(`Add alias '${b}' to entity '${a}'`)):(this.entities.set(a,{id:`entity-${a}-${this.entities.size}`,label:a,attributes:[],alias:b,shape:"erBox",look:(0,h.D7)().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),i.Rm.info("Added new entity :",a)),this.entities.get(a)}getEntity(a){return this.entities.get(a)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(a,b){let c,d=this.addEntity(a);for(c=b.length-1;c>=0;c--)b[c].keys||(b[c].keys=[]),b[c].comment||(b[c].comment=""),d.attributes.push(b[c]),i.Rm.debug("Added attribute ",b[c].name)}addRelationship(a,b,c,d){let e=this.entities.get(a),f=this.entities.get(c);if(!e||!f)return;let g={entityA:e.id,roleA:b,entityB:f.id,relSpec:d};this.relationships.push(g),i.Rm.debug("Added new relationship :",g)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(a){this.direction=a}getCompiledStyles(a){let b=[];for(let c of a){let a=this.classes.get(c);a?.styles&&(b=[...b,...a.styles??[]].map(a=>a.trim())),a?.textStyles&&(b=[...b,...a.textStyles??[]].map(a=>a.trim()))}return b}addCssStyles(a,b){for(let c of a){let a=this.entities.get(c);if(!b||!a)return;for(let c of b)a.cssStyles.push(c)}}addClass(a,b){a.forEach(a=>{let c=this.classes.get(a);void 0===c&&(c={id:a,styles:[],textStyles:[]},this.classes.set(a,c)),b&&b.forEach(function(a){if(/color/.exec(a)){let b=a.replace("fill","bgFill");c.textStyles.push(b)}c.styles.push(a)})})}setClass(a,b){for(let c of a){let a=this.entities.get(c);if(a)for(let c of b)a.cssClasses+=" "+c}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],(0,h.IU)()}getData(){let a=[],b=[],c=(0,h.D7)(),d=0;for(let b of this.entities.keys()){let c=this.entities.get(b);c&&(c.cssCompiledStyles=this.getCompiledStyles(c.cssClasses.split(" ")),c.colorIndex=d++,a.push(c))}let e=0;for(let a of this.relationships){let d={id:(0,g.rY)(a.entityA,a.entityB,{prefix:"id",counter:e++}),type:"normal",curve:"basis",start:a.entityA,end:a.entityB,label:a.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:a.relSpec.cardB.toLowerCase(),arrowTypeEnd:a.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==a.relSpec.relType?"solid":"dashed",look:c.look,labelType:"markdown"};b.push(d)}return{nodes:a,edges:b,other:{},config:c,direction:"TB"}}},o={};(0,i.VA)(o,{draw:()=>p});var p=(0,i.K2)(async function(a,b,c,k){i.Rm.info("REF0:"),i.Rm.info("Drawing er diagram (unified)",b);let{securityLevel:l,er:m,layout:n}=(0,h.D7)(),o=k.db.getData(),p=(0,d.A)(b,l);o.type=k.type,o.layoutAlgorithm=(0,f.q7)(n),o.config.flowchart.nodeSpacing=m?.nodeSpacing||140,o.config.flowchart.rankSpacing=m?.rankSpacing||80,o.direction=k.db.getDirection();let{config:q}=o,{look:r}=q;"neo"===r?o.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:o.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],o.diagramId=b,await (0,f.XX)(o,p),"elk"===o.layoutAlgorithm&&p.select(".edges").lower();let s=p.selectAll('[id*="-background"]');Array.from(s).length>0&&s.each(function(){let a=(0,j.Ltv)(this),b=a.attr("id").replace("-background",""),c=p.select(`#${CSS.escape(b)}`);if(!c.empty()){let b=c.attr("transform");a.attr("transform",b)}}),g._K.insertTitle(p,"erDiagramTitleText",m?.titleTopMargin??25,k.db.getDiagramTitle()),(0,e.P)(p,8,"erDiagram",m?.useMaxWidth??!0)},"draw"),q=(0,i.K2)((a,b)=>{let c=k.A,d=c(a,"r"),e=c(a,"g"),f=c(a,"b");return l.A(d,e,f,b)},"fade"),r=new Set(["redux-color","redux-dark-color"]),s=(0,i.K2)(a=>{let{theme:b,look:c,bkgColorArray:d,borderColorArray:e}=a;if(!r.has(b))return"";let f=d?.length>0,g="";for(let b=0;b<a.THEME_COLOR_LIMIT;b++)g+=`
|
|
2
2
|
|
|
3
3
|
[data-look="${c}"][data-color-id="color-${b}"].node path {
|
|
4
4
|
stroke: ${e[b]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=4367,exports.ids=[4367],exports.modules={1443:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(18623),e="object"==typeof exports&&exports&&!exports.nodeType&&exports,f=e&&"object"==typeof module&&module&&!module.nodeType&&module,g=f&&f.exports===e?d.A.Buffer:void 0;let h=(g?g.isBuffer:void 0)||function(){return!1}},4591:(a,b,c)=>{c.d(b,{A:()=>d});let d=Array.isArray},9672:(a,b,c)=>{c.d(b,{A:()=>g});var d=c(66994),e=c(50989),f=c(10874);let g=function(a,b){return(0,f.A)((0,e.A)(a,b,d.A),a+"")}},9938:(a,b,c)=>{c.d(b,{A:()=>m});var d=(0,c(27667).A)(Object,"create"),e=Object.prototype.hasOwnProperty,f=Object.prototype.hasOwnProperty;function g(a){var b=-1,c=null==a?0:a.length;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}g.prototype.clear=function(){this.__data__=d?d(null):{},this.size=0},g.prototype.delete=function(a){var b=this.has(a)&&delete this.__data__[a];return this.size-=!!b,b},g.prototype.get=function(a){var b=this.__data__;if(d){var c=b[a];return"__lodash_hash_undefined__"===c?void 0:c}return e.call(b,a)?b[a]:void 0},g.prototype.has=function(a){var b=this.__data__;return d?void 0!==b[a]:f.call(b,a)},g.prototype.set=function(a,b){var c=this.__data__;return this.size+=+!this.has(a),c[a]=d&&void 0===b?"__lodash_hash_undefined__":b,this};var h=c(67927),i=c(29189);let j=function(a){var b=typeof a;return"string"==b||"number"==b||"symbol"==b||"boolean"==b?"__proto__"!==a:null===a},k=function(a,b){var c=a.__data__;return j(b)?c["string"==typeof b?"string":"hash"]:c.map};function l(a){var b=-1,c=null==a?0:a.length;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}l.prototype.clear=function(){this.size=0,this.__data__={hash:new g,map:new(i.A||h.A),string:new g}},l.prototype.delete=function(a){var b=k(this,a).delete(a);return this.size-=!!b,b},l.prototype.get=function(a){return k(this,a).get(a)},l.prototype.has=function(a){return k(this,a).has(a)},l.prototype.set=function(a,b){var c=k(this,a),d=c.size;return c.set(a,b),this.size+=+(c.size!=d),this};let m=l},10228:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(64910),e=c(18671);let f=function(a){if(!(0,e.A)(a))return!1;var b=(0,d.A)(a);return"[object Function]"==b||"[object GeneratorFunction]"==b||"[object AsyncFunction]"==b||"[object Proxy]"==b}},10874:(a,b,c)=>{c.d(b,{A:()=>k});var d,e,f=c(86060),g=c(11873),h=c(66994),i=g.A?function(a,b){return(0,g.A)(a,"toString",{configurable:!0,enumerable:!1,value:(0,f.A)(b),writable:!0})}:h.A,j=Date.now;let k=(d=0,e=0,function(){var a=j(),b=16-(a-e);if(e=a,b>0){if(++d>=800)return arguments[0]}else d=0;return i.apply(void 0,arguments)})},11017:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){return function(c){return a(b(c))}}},11873:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(27667);let e=function(){try{var a=(0,d.A)(Object,"defineProperty");return a({},"",{}),a}catch(a){}}()},12022:(a,b,c)=>{c.d(b,{A:()=>d});let d=c(18623).A.Uint8Array},15016:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(4591),e=c(86340),f=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/;let h=function(a,b){if((0,d.A)(a))return!1;var c=typeof a;return!!("number"==c||"symbol"==c||"boolean"==c||null==a||(0,e.A)(a))||g.test(a)||!f.test(a)||null!=b&&a in Object(b)}},15078:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){for(var c=-1,d=b.length,e=a.length;++c<d;)a[e+c]=b[c];return a}},15357:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(15078),e=c(4591);let f=function(a,b,c){var f=b(a);return(0,e.A)(a)?f:(0,d.A)(f,c(a))}},16730:(a,b,c)=>{c.d(b,{A:()=>g});var d,e=c(62023),f=c(93884);let g=(d=e.A,function(a,b){if(null==a)return a;if(!(0,f.A)(a))return d(a,b);for(var c=a.length,e=-1,g=Object(a);++e<c&&!1!==b(g[e],e,g););return a})},17904:(a,b,c)=>{c.d(b,{A:()=>l});var d=c(85291),e=c(44090),f=c(4591),g=c(86340),h=1/0,i=d.A?d.A.prototype:void 0,j=i?i.toString:void 0;let k=function a(b){if("string"==typeof b)return b;if((0,f.A)(b))return(0,e.A)(b,a)+"";if((0,g.A)(b))return j?j.call(b):"";var c=b+"";return"0"==c&&1/b==-h?"-0":c},l=function(a){return null==a?"":k(a)}},18623:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(50586),e="object"==typeof self&&self&&self.Object===Object&&self;let f=d.A||e||Function("return this")()},18671:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){var b=typeof a;return null!=a&&("object"==b||"function"==b)}},18765:(a,b,c)=>{c.d(b,{A:()=>e});var d=Object.prototype;let e=function(a){var b=a&&a.constructor;return a===("function"==typeof b&&b.prototype||d)}},19919:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return function(b){return null==b?void 0:b[a]}}},20720:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){for(var c=-1,d=null==a?0:a.length,e=0,f=[];++c<d;){var g=a[c];b(g,c,a)&&(f[e++]=g)}return f}},21152:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(44090),e=c(45680);let f=function(a){var b;return null==a?[]:(b=(0,e.A)(a),(0,d.A)(b,function(b){return a[b]}))}},23009:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){var b=-1,c=Array(a.size);return a.forEach(function(a){c[++b]=a}),c}},23589:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(9938);function e(a){var b=-1,c=null==a?0:a.length;for(this.__data__=new d.A;++b<c;)this.add(a[b])}e.prototype.add=e.prototype.push=function(a){return this.__data__.set(a,"__lodash_hash_undefined__"),this},e.prototype.has=function(a){return this.__data__.has(a)};let f=e},27667:(a,b,c)=>{c.d(b,{A:()=>p});var d,e=c(10228),f=c(18623).A["__core-js_shared__"],g=(d=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",h=c(18671),i=c(41131),j=/^\[object .+?Constructor\]$/,k=Object.prototype,l=Function.prototype.toString,m=k.hasOwnProperty,n=RegExp("^"+l.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let o=function(a){return!!(0,h.A)(a)&&(!g||!(g in a))&&((0,e.A)(a)?n:j).test((0,i.A)(a))},p=function(a,b){var c=null==a?void 0:a[b];return o(c)?c:void 0}},29163:(a,b,c)=>{c.d(b,{A:()=>e});var d=/^(?:0|[1-9]\d*)$/;let e=function(a,b){var c=typeof a;return!!(b=null==b?0x1fffffffffffff:b)&&("number"==c||"symbol"!=c&&d.test(a))&&a>-1&&a%1==0&&a<b}},29189:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(27667),e=c(18623);let f=(0,d.A)(e.A,"Map")},33456:(a,b,c)=>{c.d(b,{T:()=>K});var d=c(86060),e=c(10228),f=c(45680),g=c(58617),h=c(61137),i=c(91680),j=c(73769),k=c(4591),l=c(93884),m=c(1443),n=c(18765),o=c(38426),p=Object.prototype.hasOwnProperty;let q=function(a){if(null==a)return!0;if((0,l.A)(a)&&((0,k.A)(a)||"string"==typeof a||"function"==typeof a.splice||(0,m.A)(a)||(0,o.A)(a)||(0,j.A)(a)))return!a.length;var b=(0,i.A)(a);if("[object Map]"==b||"[object Set]"==b)return!a.size;if((0,n.A)(a))return!(0,h.A)(a).length;for(var c in a)if(p.call(a,c))return!1;return!0};var r=c(85992),s=c(98122),t=c(78959),u=c(9672),v=c(23589),w=c(67853);let x=function(a){return a!=a},y=function(a,b,c){for(var d=c-1,e=a.length;++d<e;)if(a[d]===b)return d;return -1},z=function(a,b){return!!(null==a?0:a.length)&&(b==b?y(a,b,0):(0,w.A)(a,x,0))>-1},A=function(a,b,c){for(var d=-1,e=null==a?0:a.length;++d<e;)if(c(b,a[d]))return!0;return!1};var B=c(76625),C=c(65719),D=c(23009),E=C.A&&1/(0,D.A)(new C.A([,-0]))[1]==1/0?function(a){return new C.A(a)}:function(){};let F=function(a,b,c){var d=-1,e=z,f=a.length,g=!0,h=[],i=h;if(c)g=!1,e=A;else if(f>=200){var j=b?null:E(a);if(j)return(0,D.A)(j);g=!1,e=B.A,i=new v.A}else i=b?[]:h;a:for(;++d<f;){var k=a[d],l=b?b(k):k;if(k=c||0!==k?k:0,g&&l==l){for(var m=i.length;m--;)if(i[m]===l)continue a;b&&i.push(l),h.push(k)}else e(i,l,c)||(i!==h&&i.push(l),h.push(k))}return h};var G=c(45015),H=(0,u.A)(function(a){return F((0,t.A)(a,1,G.A,!0))}),I=c(21152),J=c(46171);class K{constructor(a={}){this._isDirected=!Object.prototype.hasOwnProperty.call(a,"directed")||a.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(a,"multigraph")&&a.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(a,"compound")&&a.compound,this._label=void 0,this._defaultNodeLabelFn=d.A(void 0),this._defaultEdgeLabelFn=d.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(a){return this._label=a,this}graph(){return this._label}setDefaultNodeLabel(a){return e.A(a)||(a=d.A(a)),this._defaultNodeLabelFn=a,this}nodeCount(){return this._nodeCount}nodes(){return f.A(this._nodes)}sources(){var a=this;return g.A(this.nodes(),function(b){return q(a._in[b])})}sinks(){var a=this;return g.A(this.nodes(),function(b){return q(a._out[b])})}setNodes(a,b){var c=arguments,d=this;return r.A(a,function(a){c.length>1?d.setNode(a,b):d.setNode(a)}),this}setNode(a,b){return Object.prototype.hasOwnProperty.call(this._nodes,a)?arguments.length>1&&(this._nodes[a]=b):(this._nodes[a]=arguments.length>1?b:this._defaultNodeLabelFn(a),this._isCompound&&(this._parent[a]="\0",this._children[a]={},this._children["\0"][a]=!0),this._in[a]={},this._preds[a]={},this._out[a]={},this._sucs[a]={},++this._nodeCount),this}node(a){return this._nodes[a]}hasNode(a){return Object.prototype.hasOwnProperty.call(this._nodes,a)}removeNode(a){if(Object.prototype.hasOwnProperty.call(this._nodes,a)){var b=a=>this.removeEdge(this._edgeObjs[a]);delete this._nodes[a],this._isCompound&&(this._removeFromParentsChildList(a),delete this._parent[a],r.A(this.children(a),a=>{this.setParent(a)}),delete this._children[a]),r.A(f.A(this._in[a]),b),delete this._in[a],delete this._preds[a],r.A(f.A(this._out[a]),b),delete this._out[a],delete this._sucs[a],--this._nodeCount}return this}setParent(a,b){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(s.A(b))b="\0";else{b+="";for(var c=b;!s.A(c);c=this.parent(c))if(c===a)throw Error("Setting "+b+" as parent of "+a+" would create a cycle");this.setNode(b)}return this.setNode(a),this._removeFromParentsChildList(a),this._parent[a]=b,this._children[b][a]=!0,this}_removeFromParentsChildList(a){delete this._children[this._parent[a]][a]}parent(a){if(this._isCompound){var b=this._parent[a];if("\0"!==b)return b}}children(a){if(s.A(a)&&(a="\0"),this._isCompound){var b=this._children[a];if(b)return f.A(b)}else if("\0"===a)return this.nodes();else if(this.hasNode(a))return[]}predecessors(a){var b=this._preds[a];if(b)return f.A(b)}successors(a){var b=this._sucs[a];if(b)return f.A(b)}neighbors(a){var b=this.predecessors(a);if(b)return H(b,this.successors(a))}isLeaf(a){return 0===(this.isDirected()?this.successors(a):this.neighbors(a)).length}filterNodes(a){var b=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});b.setGraph(this.graph());var c=this;r.A(this._nodes,function(c,d){a(d)&&b.setNode(d,c)}),r.A(this._edgeObjs,function(a){b.hasNode(a.v)&&b.hasNode(a.w)&&b.setEdge(a,c.edge(a))});var d={};return this._isCompound&&r.A(b.nodes(),function(a){b.setParent(a,function a(e){var f=c.parent(e);return void 0===f||b.hasNode(f)?(d[e]=f,f):f in d?d[f]:a(f)}(a))}),b}setDefaultEdgeLabel(a){return e.A(a)||(a=d.A(a)),this._defaultEdgeLabelFn=a,this}edgeCount(){return this._edgeCount}edges(){return I.A(this._edgeObjs)}setPath(a,b){var c=this,d=arguments;return J.A(a,function(a,e){return d.length>1?c.setEdge(a,e,b):c.setEdge(a,e),e}),this}setEdge(){var a,b,c,d,e=!1,f=arguments[0];"object"==typeof f&&null!==f&&"v"in f?(a=f.v,b=f.w,c=f.name,2==arguments.length&&(d=arguments[1],e=!0)):(a=f,b=arguments[1],c=arguments[3],arguments.length>2&&(d=arguments[2],e=!0)),a=""+a,b=""+b,s.A(c)||(c=""+c);var g=N(this._isDirected,a,b,c);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,g))return e&&(this._edgeLabels[g]=d),this;if(!s.A(c)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(a),this.setNode(b),this._edgeLabels[g]=e?d:this._defaultEdgeLabelFn(a,b,c);var h=function(a,b,c,d){var e=""+b,f=""+c;if(!a&&e>f){var g=e;e=f,f=g}var h={v:e,w:f};return d&&(h.name=d),h}(this._isDirected,a,b,c);return a=h.v,b=h.w,Object.freeze(h),this._edgeObjs[g]=h,L(this._preds[b],a),L(this._sucs[a],b),this._in[b][g]=h,this._out[a][g]=h,this._edgeCount++,this}edge(a,b,c){var d=1==arguments.length?O(this._isDirected,arguments[0]):N(this._isDirected,a,b,c);return this._edgeLabels[d]}hasEdge(a,b,c){var d=1==arguments.length?O(this._isDirected,arguments[0]):N(this._isDirected,a,b,c);return Object.prototype.hasOwnProperty.call(this._edgeLabels,d)}removeEdge(a,b,c){var d=1==arguments.length?O(this._isDirected,arguments[0]):N(this._isDirected,a,b,c),e=this._edgeObjs[d];return e&&(a=e.v,b=e.w,delete this._edgeLabels[d],delete this._edgeObjs[d],M(this._preds[b],a),M(this._sucs[a],b),delete this._in[b][d],delete this._out[a][d],this._edgeCount--),this}inEdges(a,b){var c=this._in[a];if(c){var d=I.A(c);return b?g.A(d,function(a){return a.v===b}):d}}outEdges(a,b){var c=this._out[a];if(c){var d=I.A(c);return b?g.A(d,function(a){return a.w===b}):d}}nodeEdges(a,b){var c=this.inEdges(a,b);if(c)return c.concat(this.outEdges(a,b))}}function L(a,b){a[b]?a[b]++:a[b]=1}function M(a,b){--a[b]||delete a[b]}function N(a,b,c,d){var e=""+b,f=""+c;if(!a&&e>f){var g=e;e=f,f=g}return e+"\x01"+f+"\x01"+(s.A(d)?"\0":d)}function O(a,b){return N(a,b.v,b.w,b.name)}K.prototype._nodeCount=0,K.prototype._edgeCount=0},38426:(a,b,c)=>{c.d(b,{A:()=>k});var d=c(64910),e=c(90684),f=c(93820),g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g["[object Arguments]"]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g["[object Map]"]=g["[object Number]"]=g["[object Object]"]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var h=c(63095),i=c(77127),j=i.A&&i.A.isTypedArray;let k=j?(0,h.A)(j):function(a){return(0,f.A)(a)&&(0,e.A)(a.length)&&!!g[(0,d.A)(a)]}},41131:(a,b,c)=>{c.d(b,{A:()=>e});var d=Function.prototype.toString;let e=function(a){if(null!=a){try{return d.call(a)}catch(a){}try{return a+""}catch(a){}}return""}},41573:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(67927),e=c(29189),f=c(9938);function g(a){var b=this.__data__=new d.A(a);this.size=b.size}g.prototype.clear=function(){this.__data__=new d.A,this.size=0},g.prototype.delete=function(a){var b=this.__data__,c=b.delete(a);return this.size=b.size,c},g.prototype.get=function(a){return this.__data__.get(a)},g.prototype.has=function(a){return this.__data__.has(a)},g.prototype.set=function(a,b){var c=this.__data__;if(c instanceof d.A){var g=c.__data__;if(!e.A||g.length<199)return g.push([a,b]),this.size=++c.size,this;c=this.__data__=new f.A(g)}return c.set(a,b),this.size=c.size,this};let h=g},44090:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){for(var c=-1,d=null==a?0:a.length,e=Array(d);++c<d;)e[c]=b(a[c],c,a);return e}},44878:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){return a===b||a!=a&&b!=b}},45015:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(93884),e=c(93820);let f=function(a){return(0,e.A)(a)&&(0,d.A)(a)}},45680:(a,b,c)=>{c.d(b,{A:()=>g});var d=c(79524),e=c(61137),f=c(93884);let g=function(a){return(0,f.A)(a)?(0,d.A)(a):(0,e.A)(a)}},46171:(a,b,c)=>{c.d(b,{A:()=>i});let d=function(a,b,c,d){var e=-1,f=null==a?0:a.length;for(d&&f&&(c=a[++e]);++e<f;)c=b(c,a[e],e,a);return c};var e=c(16730),f=c(78803);let g=function(a,b,c,d,e){return e(a,function(a,e,f){c=d?(d=!1,a):b(c,a,e,f)}),c};var h=c(4591);let i=function(a,b,c){var i=(0,h.A)(a)?d:g,j=arguments.length<3;return i(a,(0,f.A)(b,4),c,j,e.A)}},47927:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(86340),e=1/0;let f=function(a){if("string"==typeof a||(0,d.A)(a))return a;var b=a+"";return"0"==b&&1/a==-e?"-0":b}},48242:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(20720),e=c(71963),f=Object.prototype.propertyIsEnumerable,g=Object.getOwnPropertySymbols;let h=g?function(a){return null==a?[]:(a=Object(a),(0,d.A)(g(a),function(b){return f.call(a,b)}))}:e.A},50586:(a,b,c)=>{c.d(b,{A:()=>d});let d="object"==typeof global&&global&&global.Object===Object&&global},50989:(a,b,c)=>{c.d(b,{A:()=>f});let d=function(a,b,c){switch(c.length){case 0:return a.call(b);case 1:return a.call(b,c[0]);case 2:return a.call(b,c[0],c[1]);case 3:return a.call(b,c[0],c[1],c[2])}return a.apply(b,c)};var e=Math.max;let f=function(a,b,c){return b=e(void 0===b?a.length-1:b,0),function(){for(var f=arguments,g=-1,h=e(f.length-b,0),i=Array(h);++g<h;)i[g]=f[b+g];g=-1;for(var j=Array(b+1);++g<b;)j[g]=f[g];return j[b]=c(i),d(a,this,j)}}},58560:(a,b,c)=>{c.d(b,{A:()=>j});var d=c(67285),e=c(73769),f=c(4591),g=c(29163),h=c(90684),i=c(47927);let j=function(a,b,c){b=(0,d.A)(b,a);for(var j=-1,k=b.length,l=!1;++j<k;){var m=(0,i.A)(b[j]);if(!(l=null!=a&&c(a,m)))break;a=a[m]}return l||++j!=k?l:!!(k=null==a?0:a.length)&&(0,h.A)(k)&&(0,g.A)(m,k)&&((0,f.A)(a)||(0,e.A)(a))}},58617:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(20720),e=c(16730);let f=function(a,b){var c=[];return(0,e.A)(a,function(a,d,e){b(a,d,e)&&c.push(a)}),c};var g=c(78803),h=c(4591);let i=function(a,b){return((0,h.A)(a)?d.A:f)(a,(0,g.A)(b,3))}},61137:(a,b,c)=>{c.d(b,{A:()=>g});var d=c(18765),e=(0,c(11017).A)(Object.keys,Object),f=Object.prototype.hasOwnProperty;let g=function(a){if(!(0,d.A)(a))return e(a);var b=[];for(var c in Object(a))f.call(a,c)&&"constructor"!=c&&b.push(c);return b}},62023:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(78832),e=c(45680);let f=function(a,b){return a&&(0,d.A)(a,b,e.A)}},62320:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(66994);let e=function(a){return"function"==typeof a?a:d.A}},63095:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return function(b){return a(b)}}},64910:(a,b,c)=>{c.d(b,{A:()=>l});var d=c(85291),e=Object.prototype,f=e.hasOwnProperty,g=e.toString,h=d.A?d.A.toStringTag:void 0;let i=function(a){var b=f.call(a,h),c=a[h];try{a[h]=void 0;var d=!0}catch(a){}var e=g.call(a);return d&&(b?a[h]=c:delete a[h]),e};var j=Object.prototype.toString,k=d.A?d.A.toStringTag:void 0;let l=function(a){return null==a?void 0===a?"[object Undefined]":"[object Null]":k&&k in Object(a)?i(a):j.call(a)}},65719:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(27667),e=c(18623);let f=(0,d.A)(e.A,"Set")},66994:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return a}},67109:(a,b,c)=>{c.d(b,{A:()=>f});let d=function(a,b){return null!=a&&b in Object(a)};var e=c(58560);let f=function(a,b){return null!=a&&(0,e.A)(a,b,d)}},67285:(a,b,c)=>{c.d(b,{A:()=>n});var d,e,f=c(4591),g=c(15016),h=c(9938);function i(a,b){if("function"!=typeof a||null!=b&&"function"!=typeof b)throw TypeError("Expected a function");var c=function(){var d=arguments,e=b?b.apply(this,d):d[0],f=c.cache;if(f.has(e))return f.get(e);var g=a.apply(this,d);return c.cache=f.set(e,g)||f,g};return c.cache=new(i.Cache||h.A),c}i.Cache=h.A;var j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,l=(e=(d=i(function(a){var b=[];return 46===a.charCodeAt(0)&&b.push(""),a.replace(j,function(a,c,d,e){b.push(d?e.replace(k,"$1"):c||a)}),b},function(a){return 500===e.size&&e.clear(),a})).cache,d),m=c(17904);let n=function(a,b){return(0,f.A)(a)?a:(0,g.A)(a,b)?[a]:l((0,m.A)(a))}},67853:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b,c,d){for(var e=a.length,f=c+(d?1:-1);d?f--:++f<e;)if(b(a[f],f,a))return f;return -1}},67927:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(44878);let e=function(a,b){for(var c=a.length;c--;)if((0,d.A)(a[c][0],b))return c;return -1};var f=Array.prototype.splice;function g(a){var b=-1,c=null==a?0:a.length;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}g.prototype.clear=function(){this.__data__=[],this.size=0},g.prototype.delete=function(a){var b=this.__data__,c=e(b,a);return!(c<0)&&(c==b.length-1?b.pop():f.call(b,c,1),--this.size,!0)},g.prototype.get=function(a){var b=this.__data__,c=e(b,a);return c<0?void 0:b[c][1]},g.prototype.has=function(a){return e(this.__data__,a)>-1},g.prototype.set=function(a,b){var c=this.__data__,d=e(c,a);return d<0?(++this.size,c.push([a,b])):c[d][1]=b,this};let h=g},71963:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(){return[]}},73416:(a,b,c)=>{c.d(b,{A:()=>g});var d=c(15357),e=c(48242),f=c(45680);let g=function(a){return(0,d.A)(a,f.A,e.A)}},73769:(a,b,c)=>{c.d(b,{A:()=>j});var d=c(64910),e=c(93820);let f=function(a){return(0,e.A)(a)&&"[object Arguments]"==(0,d.A)(a)};var g=Object.prototype,h=g.hasOwnProperty,i=g.propertyIsEnumerable;let j=f(function(){return arguments}())?f:function(a){return(0,e.A)(a)&&h.call(a,"callee")&&!i.call(a,"callee")}},74367:(a,b,c)=>{c.d(b,{T:()=>d.T});var d=c(33456)},76625:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){return a.has(b)}},77127:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(50586),e="object"==typeof exports&&exports&&!exports.nodeType&&exports,f=e&&"object"==typeof module&&module&&!module.nodeType&&module,g=f&&f.exports===e&&d.A.process;let h=function(){try{var a=f&&f.require&&f.require("util").types;if(a)return a;return g&&g.binding&&g.binding("util")}catch(a){}}()},78803:(a,b,c)=>{c.d(b,{A:()=>T});var d=c(41573),e=c(23589);let f=function(a,b){for(var c=-1,d=null==a?0:a.length;++c<d;)if(b(a[c],c,a))return!0;return!1};var g=c(76625);let h=function(a,b,c,d,h,i){var j=1&c,k=a.length,l=b.length;if(k!=l&&!(j&&l>k))return!1;var m=i.get(a),n=i.get(b);if(m&&n)return m==b&&n==a;var o=-1,p=!0,q=2&c?new e.A:void 0;for(i.set(a,b),i.set(b,a);++o<k;){var r=a[o],s=b[o];if(d)var t=j?d(s,r,o,b,a,i):d(r,s,o,a,b,i);if(void 0!==t){if(t)continue;p=!1;break}if(q){if(!f(b,function(a,b){if(!(0,g.A)(q,b)&&(r===a||h(r,a,c,d,i)))return q.push(b)})){p=!1;break}}else if(!(r===s||h(r,s,c,d,i))){p=!1;break}}return i.delete(a),i.delete(b),p};var i=c(85291),j=c(12022),k=c(44878);let l=function(a){var b=-1,c=Array(a.size);return a.forEach(function(a,d){c[++b]=[d,a]}),c};var m=c(23009),n=i.A?i.A.prototype:void 0,o=n?n.valueOf:void 0;let p=function(a,b,c,d,e,f,g){switch(c){case"[object DataView]":if(a.byteLength!=b.byteLength||a.byteOffset!=b.byteOffset)break;a=a.buffer,b=b.buffer;case"[object ArrayBuffer]":if(a.byteLength!=b.byteLength||!f(new j.A(a),new j.A(b)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,k.A)(+a,+b);case"[object Error]":return a.name==b.name&&a.message==b.message;case"[object RegExp]":case"[object String]":return a==b+"";case"[object Map]":var i=l;case"[object Set]":var n=1&d;if(i||(i=m.A),a.size!=b.size&&!n)break;var p=g.get(a);if(p)return p==b;d|=2,g.set(a,b);var q=h(i(a),i(b),d,e,f,g);return g.delete(a),q;case"[object Symbol]":if(o)return o.call(a)==o.call(b)}return!1};var q=c(73416),r=Object.prototype.hasOwnProperty;let s=function(a,b,c,d,e,f){var g=1&c,h=(0,q.A)(a),i=h.length;if(i!=(0,q.A)(b).length&&!g)return!1;for(var j=i;j--;){var k=h[j];if(!(g?k in b:r.call(b,k)))return!1}var l=f.get(a),m=f.get(b);if(l&&m)return l==b&&m==a;var n=!0;f.set(a,b),f.set(b,a);for(var o=g;++j<i;){var p=a[k=h[j]],s=b[k];if(d)var t=g?d(s,p,k,b,a,f):d(p,s,k,a,b,f);if(!(void 0===t?p===s||e(p,s,c,d,f):t)){n=!1;break}o||(o="constructor"==k)}if(n&&!o){var u=a.constructor,v=b.constructor;u!=v&&"constructor"in a&&"constructor"in b&&!("function"==typeof u&&u instanceof u&&"function"==typeof v&&v instanceof v)&&(n=!1)}return f.delete(a),f.delete(b),n};var t=c(91680),u=c(4591),v=c(1443),w=c(38426),x="[object Arguments]",y="[object Array]",z="[object Object]",A=Object.prototype.hasOwnProperty;let B=function(a,b,c,e,f,g){var i=(0,u.A)(a),j=(0,u.A)(b),k=i?y:(0,t.A)(a),l=j?y:(0,t.A)(b);k=k==x?z:k,l=l==x?z:l;var m=k==z,n=l==z,o=k==l;if(o&&(0,v.A)(a)){if(!(0,v.A)(b))return!1;i=!0,m=!1}if(o&&!m)return g||(g=new d.A),i||(0,w.A)(a)?h(a,b,c,e,f,g):p(a,b,k,c,e,f,g);if(!(1&c)){var q=m&&A.call(a,"__wrapped__"),r=n&&A.call(b,"__wrapped__");if(q||r){var B=q?a.value():a,C=r?b.value():b;return g||(g=new d.A),f(B,C,c,e,g)}}return!!o&&(g||(g=new d.A),s(a,b,c,e,f,g))};var C=c(93820);let D=function a(b,c,d,e,f){return b===c||(null!=b&&null!=c&&((0,C.A)(b)||(0,C.A)(c))?B(b,c,d,e,a,f):b!=b&&c!=c)},E=function(a,b,c,e){var f=c.length,g=f,h=!e;if(null==a)return!g;for(a=Object(a);f--;){var i=c[f];if(h&&i[2]?i[1]!==a[i[0]]:!(i[0]in a))return!1}for(;++f<g;){var j=(i=c[f])[0],k=a[j],l=i[1];if(h&&i[2]){if(void 0===k&&!(j in a))return!1}else{var m=new d.A;if(e)var n=e(k,l,j,a,b,m);if(!(void 0===n?D(l,k,3,e,m):n))return!1}}return!0};var F=c(18671);let G=function(a){return a==a&&!(0,F.A)(a)};var H=c(45680);let I=function(a){for(var b=(0,H.A)(a),c=b.length;c--;){var d=b[c],e=a[d];b[c]=[d,e,G(e)]}return b},J=function(a,b){return function(c){return null!=c&&c[a]===b&&(void 0!==b||a in Object(c))}},K=function(a){var b=I(a);return 1==b.length&&b[0][2]?J(b[0][0],b[0][1]):function(c){return c===a||E(c,a,b)}};var L=c(86296);let M=function(a,b,c){var d=null==a?void 0:(0,L.A)(a,b);return void 0===d?c:d};var N=c(67109),O=c(15016),P=c(47927),Q=c(66994),R=c(19919);let S=function(a){return(0,O.A)(a)?(0,R.A)((0,P.A)(a)):function(b){return(0,L.A)(b,a)}},T=function(a){if("function"==typeof a)return a;if(null==a)return Q.A;if("object"==typeof a){var b,c;return(0,u.A)(a)?(b=a[0],c=a[1],(0,O.A)(b)&&G(c)?J((0,P.A)(b),c):function(a){var d=M(a,b);return void 0===d&&d===c?(0,N.A)(a,b):D(c,d,3)}):K(a)}return S(a)}},78832:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b,c){for(var d=-1,e=Object(a),f=c(a),g=f.length;g--;){var h=f[++d];if(!1===b(e[h],h,e))break}return a}},78959:(a,b,c)=>{c.d(b,{A:()=>j});var d=c(15078),e=c(85291),f=c(73769),g=c(4591),h=e.A?e.A.isConcatSpreadable:void 0;let i=function(a){return(0,g.A)(a)||(0,f.A)(a)||!!(h&&a&&a[h])},j=function a(b,c,e,f,g){var h=-1,j=b.length;for(e||(e=i),g||(g=[]);++h<j;){var k=b[h];c>0&&e(k)?c>1?a(k,c-1,e,f,g):(0,d.A)(g,k):f||(g[g.length]=k)}return g}},79524:(a,b,c)=>{c.d(b,{A:()=>k});let d=function(a,b){for(var c=-1,d=Array(a);++c<a;)d[c]=b(c);return d};var e=c(73769),f=c(4591),g=c(1443),h=c(29163),i=c(38426),j=Object.prototype.hasOwnProperty;let k=function(a,b){var c=(0,f.A)(a),k=!c&&(0,e.A)(a),l=!c&&!k&&(0,g.A)(a),m=!c&&!k&&!l&&(0,i.A)(a),n=c||k||l||m,o=n?d(a.length,String):[],p=o.length;for(var q in a)(b||j.call(a,q))&&!(n&&("length"==q||l&&("offset"==q||"parent"==q)||m&&("buffer"==q||"byteLength"==q||"byteOffset"==q)||(0,h.A)(q,p)))&&o.push(q);return o}},85291:(a,b,c)=>{c.d(b,{A:()=>d});let d=c(18623).A.Symbol},85992:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(98007),e=c(16730),f=c(62320),g=c(4591);let h=function(a,b){return((0,g.A)(a)?d.A:e.A)(a,(0,f.A)(b))}},86060:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return function(){return a}}},86296:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(67285),e=c(47927);let f=function(a,b){b=(0,d.A)(b,a);for(var c=0,f=b.length;null!=a&&c<f;)a=a[(0,e.A)(b[c++])];return c&&c==f?a:void 0}},86340:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(64910),e=c(93820);let f=function(a){return"symbol"==typeof a||(0,e.A)(a)&&"[object Symbol]"==(0,d.A)(a)}},90684:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return"number"==typeof a&&a>-1&&a%1==0&&a<=0x1fffffffffffff}},91680:(a,b,c)=>{c.d(b,{A:()=>x});var d=c(27667),e=c(18623),f=(0,d.A)(e.A,"DataView"),g=c(29189),h=(0,d.A)(e.A,"Promise"),i=c(65719),j=(0,d.A)(e.A,"WeakMap"),k=c(64910),l=c(41131),m="[object Map]",n="[object Promise]",o="[object Set]",p="[object WeakMap]",q="[object DataView]",r=(0,l.A)(f),s=(0,l.A)(g.A),t=(0,l.A)(h),u=(0,l.A)(i.A),v=(0,l.A)(j),w=k.A;(f&&w(new f(new ArrayBuffer(1)))!=q||g.A&&w(new g.A)!=m||h&&w(h.resolve())!=n||i.A&&w(new i.A)!=o||j&&w(new j)!=p)&&(w=function(a){var b=(0,k.A)(a),c="[object Object]"==b?a.constructor:void 0,d=c?(0,l.A)(c):"";if(d)switch(d){case r:return q;case s:return m;case t:return n;case u:return o;case v:return p}return b});let x=w},93820:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return null!=a&&"object"==typeof a}},93884:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(10228),e=c(90684);let f=function(a){return null!=a&&(0,e.A)(a.length)&&!(0,d.A)(a)}},98007:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){for(var c=-1,d=null==a?0:a.length;++c<d&&!1!==b(a[c],c,a););return a}},98122:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return void 0===a}}};
|
|
1
|
+
"use strict";exports.id=4367,exports.ids=[4367],exports.modules={1443:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(18623),e="object"==typeof exports&&exports&&!exports.nodeType&&exports,f=e&&"object"==typeof module&&module&&!module.nodeType&&module,g=f&&f.exports===e?d.A.Buffer:void 0;let h=(g?g.isBuffer:void 0)||function(){return!1}},4591:(a,b,c)=>{c.d(b,{A:()=>d});let d=Array.isArray},9672:(a,b,c)=>{c.d(b,{A:()=>g});var d=c(66994),e=c(50989),f=c(10874);let g=function(a,b){return(0,f.A)((0,e.A)(a,b,d.A),a+"")}},9938:(a,b,c)=>{c.d(b,{A:()=>m});var d=(0,c(27667).A)(Object,"create"),e=Object.prototype.hasOwnProperty,f=Object.prototype.hasOwnProperty;function g(a){var b=-1,c=null==a?0:a.length;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}g.prototype.clear=function(){this.__data__=d?d(null):{},this.size=0},g.prototype.delete=function(a){var b=this.has(a)&&delete this.__data__[a];return this.size-=!!b,b},g.prototype.get=function(a){var b=this.__data__;if(d){var c=b[a];return"__lodash_hash_undefined__"===c?void 0:c}return e.call(b,a)?b[a]:void 0},g.prototype.has=function(a){var b=this.__data__;return d?void 0!==b[a]:f.call(b,a)},g.prototype.set=function(a,b){var c=this.__data__;return this.size+=+!this.has(a),c[a]=d&&void 0===b?"__lodash_hash_undefined__":b,this};var h=c(67927),i=c(29189);let j=function(a){var b=typeof a;return"string"==b||"number"==b||"symbol"==b||"boolean"==b?"__proto__"!==a:null===a},k=function(a,b){var c=a.__data__;return j(b)?c["string"==typeof b?"string":"hash"]:c.map};function l(a){var b=-1,c=null==a?0:a.length;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}l.prototype.clear=function(){this.size=0,this.__data__={hash:new g,map:new(i.A||h.A),string:new g}},l.prototype.delete=function(a){var b=k(this,a).delete(a);return this.size-=!!b,b},l.prototype.get=function(a){return k(this,a).get(a)},l.prototype.has=function(a){return k(this,a).has(a)},l.prototype.set=function(a,b){var c=k(this,a),d=c.size;return c.set(a,b),this.size+=+(c.size!=d),this};let m=l},10228:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(64910),e=c(18671);let f=function(a){if(!(0,e.A)(a))return!1;var b=(0,d.A)(a);return"[object Function]"==b||"[object GeneratorFunction]"==b||"[object AsyncFunction]"==b||"[object Proxy]"==b}},10874:(a,b,c)=>{c.d(b,{A:()=>k});var d,e,f=c(86060),g=c(11873),h=c(66994),i=g.A?function(a,b){return(0,g.A)(a,"toString",{configurable:!0,enumerable:!1,value:(0,f.A)(b),writable:!0})}:h.A,j=Date.now;let k=(d=0,e=0,function(){var a=j(),b=16-(a-e);if(e=a,b>0){if(++d>=800)return arguments[0]}else d=0;return i.apply(void 0,arguments)})},11017:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){return function(c){return a(b(c))}}},11873:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(27667);let e=function(){try{var a=(0,d.A)(Object,"defineProperty");return a({},"",{}),a}catch(a){}}()},12022:(a,b,c)=>{c.d(b,{A:()=>d});let d=c(18623).A.Uint8Array},15016:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(4591),e=c(86340),f=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/;let h=function(a,b){if((0,d.A)(a))return!1;var c=typeof a;return!!("number"==c||"symbol"==c||"boolean"==c||null==a||(0,e.A)(a))||g.test(a)||!f.test(a)||null!=b&&a in Object(b)}},15078:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){for(var c=-1,d=b.length,e=a.length;++c<d;)a[e+c]=b[c];return a}},15357:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(15078),e=c(4591);let f=function(a,b,c){var f=b(a);return(0,e.A)(a)?f:(0,d.A)(f,c(a))}},16730:(a,b,c)=>{c.d(b,{A:()=>g});var d,e=c(62023),f=c(71503);let g=(d=e.A,function(a,b){if(null==a)return a;if(!(0,f.A)(a))return d(a,b);for(var c=a.length,e=-1,g=Object(a);++e<c&&!1!==b(g[e],e,g););return a})},17904:(a,b,c)=>{c.d(b,{A:()=>l});var d=c(85291),e=c(44090),f=c(4591),g=c(86340),h=1/0,i=d.A?d.A.prototype:void 0,j=i?i.toString:void 0;let k=function a(b){if("string"==typeof b)return b;if((0,f.A)(b))return(0,e.A)(b,a)+"";if((0,g.A)(b))return j?j.call(b):"";var c=b+"";return"0"==c&&1/b==-h?"-0":c},l=function(a){return null==a?"":k(a)}},18623:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(50586),e="object"==typeof self&&self&&self.Object===Object&&self;let f=d.A||e||Function("return this")()},18671:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){var b=typeof a;return null!=a&&("object"==b||"function"==b)}},18765:(a,b,c)=>{c.d(b,{A:()=>e});var d=Object.prototype;let e=function(a){var b=a&&a.constructor;return a===("function"==typeof b&&b.prototype||d)}},19919:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return function(b){return null==b?void 0:b[a]}}},20720:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){for(var c=-1,d=null==a?0:a.length,e=0,f=[];++c<d;){var g=a[c];b(g,c,a)&&(f[e++]=g)}return f}},21152:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(44090),e=c(45680);let f=function(a){var b;return null==a?[]:(b=(0,e.A)(a),(0,d.A)(b,function(b){return a[b]}))}},23009:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){var b=-1,c=Array(a.size);return a.forEach(function(a){c[++b]=a}),c}},23589:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(9938);function e(a){var b=-1,c=null==a?0:a.length;for(this.__data__=new d.A;++b<c;)this.add(a[b])}e.prototype.add=e.prototype.push=function(a){return this.__data__.set(a,"__lodash_hash_undefined__"),this},e.prototype.has=function(a){return this.__data__.has(a)};let f=e},27667:(a,b,c)=>{c.d(b,{A:()=>p});var d,e=c(10228),f=c(18623).A["__core-js_shared__"],g=(d=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",h=c(18671),i=c(41131),j=/^\[object .+?Constructor\]$/,k=Object.prototype,l=Function.prototype.toString,m=k.hasOwnProperty,n=RegExp("^"+l.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let o=function(a){return!!(0,h.A)(a)&&(!g||!(g in a))&&((0,e.A)(a)?n:j).test((0,i.A)(a))},p=function(a,b){var c=null==a?void 0:a[b];return o(c)?c:void 0}},29163:(a,b,c)=>{c.d(b,{A:()=>e});var d=/^(?:0|[1-9]\d*)$/;let e=function(a,b){var c=typeof a;return!!(b=null==b?0x1fffffffffffff:b)&&("number"==c||"symbol"!=c&&d.test(a))&&a>-1&&a%1==0&&a<b}},29189:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(27667),e=c(18623);let f=(0,d.A)(e.A,"Map")},33456:(a,b,c)=>{c.d(b,{T:()=>K});var d=c(86060),e=c(10228),f=c(45680),g=c(58617),h=c(61137),i=c(91680),j=c(73769),k=c(4591),l=c(71503),m=c(1443),n=c(18765),o=c(38426),p=Object.prototype.hasOwnProperty;let q=function(a){if(null==a)return!0;if((0,l.A)(a)&&((0,k.A)(a)||"string"==typeof a||"function"==typeof a.splice||(0,m.A)(a)||(0,o.A)(a)||(0,j.A)(a)))return!a.length;var b=(0,i.A)(a);if("[object Map]"==b||"[object Set]"==b)return!a.size;if((0,n.A)(a))return!(0,h.A)(a).length;for(var c in a)if(p.call(a,c))return!1;return!0};var r=c(85992),s=c(98122),t=c(78959),u=c(9672),v=c(23589),w=c(67853);let x=function(a){return a!=a},y=function(a,b,c){for(var d=c-1,e=a.length;++d<e;)if(a[d]===b)return d;return -1},z=function(a,b){return!!(null==a?0:a.length)&&(b==b?y(a,b,0):(0,w.A)(a,x,0))>-1},A=function(a,b,c){for(var d=-1,e=null==a?0:a.length;++d<e;)if(c(b,a[d]))return!0;return!1};var B=c(76625),C=c(65719),D=c(23009),E=C.A&&1/(0,D.A)(new C.A([,-0]))[1]==1/0?function(a){return new C.A(a)}:function(){};let F=function(a,b,c){var d=-1,e=z,f=a.length,g=!0,h=[],i=h;if(c)g=!1,e=A;else if(f>=200){var j=b?null:E(a);if(j)return(0,D.A)(j);g=!1,e=B.A,i=new v.A}else i=b?[]:h;a:for(;++d<f;){var k=a[d],l=b?b(k):k;if(k=c||0!==k?k:0,g&&l==l){for(var m=i.length;m--;)if(i[m]===l)continue a;b&&i.push(l),h.push(k)}else e(i,l,c)||(i!==h&&i.push(l),h.push(k))}return h};var G=c(45015),H=(0,u.A)(function(a){return F((0,t.A)(a,1,G.A,!0))}),I=c(21152),J=c(46171);class K{constructor(a={}){this._isDirected=!Object.prototype.hasOwnProperty.call(a,"directed")||a.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(a,"multigraph")&&a.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(a,"compound")&&a.compound,this._label=void 0,this._defaultNodeLabelFn=d.A(void 0),this._defaultEdgeLabelFn=d.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(a){return this._label=a,this}graph(){return this._label}setDefaultNodeLabel(a){return e.A(a)||(a=d.A(a)),this._defaultNodeLabelFn=a,this}nodeCount(){return this._nodeCount}nodes(){return f.A(this._nodes)}sources(){var a=this;return g.A(this.nodes(),function(b){return q(a._in[b])})}sinks(){var a=this;return g.A(this.nodes(),function(b){return q(a._out[b])})}setNodes(a,b){var c=arguments,d=this;return r.A(a,function(a){c.length>1?d.setNode(a,b):d.setNode(a)}),this}setNode(a,b){return Object.prototype.hasOwnProperty.call(this._nodes,a)?arguments.length>1&&(this._nodes[a]=b):(this._nodes[a]=arguments.length>1?b:this._defaultNodeLabelFn(a),this._isCompound&&(this._parent[a]="\0",this._children[a]={},this._children["\0"][a]=!0),this._in[a]={},this._preds[a]={},this._out[a]={},this._sucs[a]={},++this._nodeCount),this}node(a){return this._nodes[a]}hasNode(a){return Object.prototype.hasOwnProperty.call(this._nodes,a)}removeNode(a){if(Object.prototype.hasOwnProperty.call(this._nodes,a)){var b=a=>this.removeEdge(this._edgeObjs[a]);delete this._nodes[a],this._isCompound&&(this._removeFromParentsChildList(a),delete this._parent[a],r.A(this.children(a),a=>{this.setParent(a)}),delete this._children[a]),r.A(f.A(this._in[a]),b),delete this._in[a],delete this._preds[a],r.A(f.A(this._out[a]),b),delete this._out[a],delete this._sucs[a],--this._nodeCount}return this}setParent(a,b){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(s.A(b))b="\0";else{b+="";for(var c=b;!s.A(c);c=this.parent(c))if(c===a)throw Error("Setting "+b+" as parent of "+a+" would create a cycle");this.setNode(b)}return this.setNode(a),this._removeFromParentsChildList(a),this._parent[a]=b,this._children[b][a]=!0,this}_removeFromParentsChildList(a){delete this._children[this._parent[a]][a]}parent(a){if(this._isCompound){var b=this._parent[a];if("\0"!==b)return b}}children(a){if(s.A(a)&&(a="\0"),this._isCompound){var b=this._children[a];if(b)return f.A(b)}else if("\0"===a)return this.nodes();else if(this.hasNode(a))return[]}predecessors(a){var b=this._preds[a];if(b)return f.A(b)}successors(a){var b=this._sucs[a];if(b)return f.A(b)}neighbors(a){var b=this.predecessors(a);if(b)return H(b,this.successors(a))}isLeaf(a){return 0===(this.isDirected()?this.successors(a):this.neighbors(a)).length}filterNodes(a){var b=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});b.setGraph(this.graph());var c=this;r.A(this._nodes,function(c,d){a(d)&&b.setNode(d,c)}),r.A(this._edgeObjs,function(a){b.hasNode(a.v)&&b.hasNode(a.w)&&b.setEdge(a,c.edge(a))});var d={};return this._isCompound&&r.A(b.nodes(),function(a){b.setParent(a,function a(e){var f=c.parent(e);return void 0===f||b.hasNode(f)?(d[e]=f,f):f in d?d[f]:a(f)}(a))}),b}setDefaultEdgeLabel(a){return e.A(a)||(a=d.A(a)),this._defaultEdgeLabelFn=a,this}edgeCount(){return this._edgeCount}edges(){return I.A(this._edgeObjs)}setPath(a,b){var c=this,d=arguments;return J.A(a,function(a,e){return d.length>1?c.setEdge(a,e,b):c.setEdge(a,e),e}),this}setEdge(){var a,b,c,d,e=!1,f=arguments[0];"object"==typeof f&&null!==f&&"v"in f?(a=f.v,b=f.w,c=f.name,2==arguments.length&&(d=arguments[1],e=!0)):(a=f,b=arguments[1],c=arguments[3],arguments.length>2&&(d=arguments[2],e=!0)),a=""+a,b=""+b,s.A(c)||(c=""+c);var g=N(this._isDirected,a,b,c);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,g))return e&&(this._edgeLabels[g]=d),this;if(!s.A(c)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(a),this.setNode(b),this._edgeLabels[g]=e?d:this._defaultEdgeLabelFn(a,b,c);var h=function(a,b,c,d){var e=""+b,f=""+c;if(!a&&e>f){var g=e;e=f,f=g}var h={v:e,w:f};return d&&(h.name=d),h}(this._isDirected,a,b,c);return a=h.v,b=h.w,Object.freeze(h),this._edgeObjs[g]=h,L(this._preds[b],a),L(this._sucs[a],b),this._in[b][g]=h,this._out[a][g]=h,this._edgeCount++,this}edge(a,b,c){var d=1==arguments.length?O(this._isDirected,arguments[0]):N(this._isDirected,a,b,c);return this._edgeLabels[d]}hasEdge(a,b,c){var d=1==arguments.length?O(this._isDirected,arguments[0]):N(this._isDirected,a,b,c);return Object.prototype.hasOwnProperty.call(this._edgeLabels,d)}removeEdge(a,b,c){var d=1==arguments.length?O(this._isDirected,arguments[0]):N(this._isDirected,a,b,c),e=this._edgeObjs[d];return e&&(a=e.v,b=e.w,delete this._edgeLabels[d],delete this._edgeObjs[d],M(this._preds[b],a),M(this._sucs[a],b),delete this._in[b][d],delete this._out[a][d],this._edgeCount--),this}inEdges(a,b){var c=this._in[a];if(c){var d=I.A(c);return b?g.A(d,function(a){return a.v===b}):d}}outEdges(a,b){var c=this._out[a];if(c){var d=I.A(c);return b?g.A(d,function(a){return a.w===b}):d}}nodeEdges(a,b){var c=this.inEdges(a,b);if(c)return c.concat(this.outEdges(a,b))}}function L(a,b){a[b]?a[b]++:a[b]=1}function M(a,b){--a[b]||delete a[b]}function N(a,b,c,d){var e=""+b,f=""+c;if(!a&&e>f){var g=e;e=f,f=g}return e+"\x01"+f+"\x01"+(s.A(d)?"\0":d)}function O(a,b){return N(a,b.v,b.w,b.name)}K.prototype._nodeCount=0,K.prototype._edgeCount=0},38426:(a,b,c)=>{c.d(b,{A:()=>k});var d=c(64910),e=c(90684),f=c(93820),g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g["[object Arguments]"]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g["[object Map]"]=g["[object Number]"]=g["[object Object]"]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var h=c(63095),i=c(77127),j=i.A&&i.A.isTypedArray;let k=j?(0,h.A)(j):function(a){return(0,f.A)(a)&&(0,e.A)(a.length)&&!!g[(0,d.A)(a)]}},41131:(a,b,c)=>{c.d(b,{A:()=>e});var d=Function.prototype.toString;let e=function(a){if(null!=a){try{return d.call(a)}catch(a){}try{return a+""}catch(a){}}return""}},41573:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(67927),e=c(29189),f=c(9938);function g(a){var b=this.__data__=new d.A(a);this.size=b.size}g.prototype.clear=function(){this.__data__=new d.A,this.size=0},g.prototype.delete=function(a){var b=this.__data__,c=b.delete(a);return this.size=b.size,c},g.prototype.get=function(a){return this.__data__.get(a)},g.prototype.has=function(a){return this.__data__.has(a)},g.prototype.set=function(a,b){var c=this.__data__;if(c instanceof d.A){var g=c.__data__;if(!e.A||g.length<199)return g.push([a,b]),this.size=++c.size,this;c=this.__data__=new f.A(g)}return c.set(a,b),this.size=c.size,this};let h=g},44090:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){for(var c=-1,d=null==a?0:a.length,e=Array(d);++c<d;)e[c]=b(a[c],c,a);return e}},44878:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){return a===b||a!=a&&b!=b}},45015:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(71503),e=c(93820);let f=function(a){return(0,e.A)(a)&&(0,d.A)(a)}},45680:(a,b,c)=>{c.d(b,{A:()=>g});var d=c(79524),e=c(61137),f=c(71503);let g=function(a){return(0,f.A)(a)?(0,d.A)(a):(0,e.A)(a)}},46171:(a,b,c)=>{c.d(b,{A:()=>i});let d=function(a,b,c,d){var e=-1,f=null==a?0:a.length;for(d&&f&&(c=a[++e]);++e<f;)c=b(c,a[e],e,a);return c};var e=c(16730),f=c(78803);let g=function(a,b,c,d,e){return e(a,function(a,e,f){c=d?(d=!1,a):b(c,a,e,f)}),c};var h=c(4591);let i=function(a,b,c){var i=(0,h.A)(a)?d:g,j=arguments.length<3;return i(a,(0,f.A)(b,4),c,j,e.A)}},47927:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(86340),e=1/0;let f=function(a){if("string"==typeof a||(0,d.A)(a))return a;var b=a+"";return"0"==b&&1/a==-e?"-0":b}},48242:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(20720),e=c(71963),f=Object.prototype.propertyIsEnumerable,g=Object.getOwnPropertySymbols;let h=g?function(a){return null==a?[]:(a=Object(a),(0,d.A)(g(a),function(b){return f.call(a,b)}))}:e.A},50586:(a,b,c)=>{c.d(b,{A:()=>d});let d="object"==typeof global&&global&&global.Object===Object&&global},50989:(a,b,c)=>{c.d(b,{A:()=>f});let d=function(a,b,c){switch(c.length){case 0:return a.call(b);case 1:return a.call(b,c[0]);case 2:return a.call(b,c[0],c[1]);case 3:return a.call(b,c[0],c[1],c[2])}return a.apply(b,c)};var e=Math.max;let f=function(a,b,c){return b=e(void 0===b?a.length-1:b,0),function(){for(var f=arguments,g=-1,h=e(f.length-b,0),i=Array(h);++g<h;)i[g]=f[b+g];g=-1;for(var j=Array(b+1);++g<b;)j[g]=f[g];return j[b]=c(i),d(a,this,j)}}},58560:(a,b,c)=>{c.d(b,{A:()=>j});var d=c(67285),e=c(73769),f=c(4591),g=c(29163),h=c(90684),i=c(47927);let j=function(a,b,c){b=(0,d.A)(b,a);for(var j=-1,k=b.length,l=!1;++j<k;){var m=(0,i.A)(b[j]);if(!(l=null!=a&&c(a,m)))break;a=a[m]}return l||++j!=k?l:!!(k=null==a?0:a.length)&&(0,h.A)(k)&&(0,g.A)(m,k)&&((0,f.A)(a)||(0,e.A)(a))}},58617:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(20720),e=c(16730);let f=function(a,b){var c=[];return(0,e.A)(a,function(a,d,e){b(a,d,e)&&c.push(a)}),c};var g=c(78803),h=c(4591);let i=function(a,b){return((0,h.A)(a)?d.A:f)(a,(0,g.A)(b,3))}},61137:(a,b,c)=>{c.d(b,{A:()=>g});var d=c(18765),e=(0,c(11017).A)(Object.keys,Object),f=Object.prototype.hasOwnProperty;let g=function(a){if(!(0,d.A)(a))return e(a);var b=[];for(var c in Object(a))f.call(a,c)&&"constructor"!=c&&b.push(c);return b}},62023:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(78832),e=c(45680);let f=function(a,b){return a&&(0,d.A)(a,b,e.A)}},62320:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(66994);let e=function(a){return"function"==typeof a?a:d.A}},63095:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return function(b){return a(b)}}},64910:(a,b,c)=>{c.d(b,{A:()=>l});var d=c(85291),e=Object.prototype,f=e.hasOwnProperty,g=e.toString,h=d.A?d.A.toStringTag:void 0;let i=function(a){var b=f.call(a,h),c=a[h];try{a[h]=void 0;var d=!0}catch(a){}var e=g.call(a);return d&&(b?a[h]=c:delete a[h]),e};var j=Object.prototype.toString,k=d.A?d.A.toStringTag:void 0;let l=function(a){return null==a?void 0===a?"[object Undefined]":"[object Null]":k&&k in Object(a)?i(a):j.call(a)}},65719:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(27667),e=c(18623);let f=(0,d.A)(e.A,"Set")},66994:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return a}},67109:(a,b,c)=>{c.d(b,{A:()=>f});let d=function(a,b){return null!=a&&b in Object(a)};var e=c(58560);let f=function(a,b){return null!=a&&(0,e.A)(a,b,d)}},67285:(a,b,c)=>{c.d(b,{A:()=>n});var d,e,f=c(4591),g=c(15016),h=c(9938);function i(a,b){if("function"!=typeof a||null!=b&&"function"!=typeof b)throw TypeError("Expected a function");var c=function(){var d=arguments,e=b?b.apply(this,d):d[0],f=c.cache;if(f.has(e))return f.get(e);var g=a.apply(this,d);return c.cache=f.set(e,g)||f,g};return c.cache=new(i.Cache||h.A),c}i.Cache=h.A;var j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,l=(e=(d=i(function(a){var b=[];return 46===a.charCodeAt(0)&&b.push(""),a.replace(j,function(a,c,d,e){b.push(d?e.replace(k,"$1"):c||a)}),b},function(a){return 500===e.size&&e.clear(),a})).cache,d),m=c(17904);let n=function(a,b){return(0,f.A)(a)?a:(0,g.A)(a,b)?[a]:l((0,m.A)(a))}},67853:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b,c,d){for(var e=a.length,f=c+(d?1:-1);d?f--:++f<e;)if(b(a[f],f,a))return f;return -1}},67927:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(44878);let e=function(a,b){for(var c=a.length;c--;)if((0,d.A)(a[c][0],b))return c;return -1};var f=Array.prototype.splice;function g(a){var b=-1,c=null==a?0:a.length;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}g.prototype.clear=function(){this.__data__=[],this.size=0},g.prototype.delete=function(a){var b=this.__data__,c=e(b,a);return!(c<0)&&(c==b.length-1?b.pop():f.call(b,c,1),--this.size,!0)},g.prototype.get=function(a){var b=this.__data__,c=e(b,a);return c<0?void 0:b[c][1]},g.prototype.has=function(a){return e(this.__data__,a)>-1},g.prototype.set=function(a,b){var c=this.__data__,d=e(c,a);return d<0?(++this.size,c.push([a,b])):c[d][1]=b,this};let h=g},71503:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(10228),e=c(90684);let f=function(a){return null!=a&&(0,e.A)(a.length)&&!(0,d.A)(a)}},71963:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(){return[]}},73416:(a,b,c)=>{c.d(b,{A:()=>g});var d=c(15357),e=c(48242),f=c(45680);let g=function(a){return(0,d.A)(a,f.A,e.A)}},73769:(a,b,c)=>{c.d(b,{A:()=>j});var d=c(64910),e=c(93820);let f=function(a){return(0,e.A)(a)&&"[object Arguments]"==(0,d.A)(a)};var g=Object.prototype,h=g.hasOwnProperty,i=g.propertyIsEnumerable;let j=f(function(){return arguments}())?f:function(a){return(0,e.A)(a)&&h.call(a,"callee")&&!i.call(a,"callee")}},74367:(a,b,c)=>{c.d(b,{T:()=>d.T});var d=c(33456)},76625:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){return a.has(b)}},77127:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(50586),e="object"==typeof exports&&exports&&!exports.nodeType&&exports,f=e&&"object"==typeof module&&module&&!module.nodeType&&module,g=f&&f.exports===e&&d.A.process;let h=function(){try{var a=f&&f.require&&f.require("util").types;if(a)return a;return g&&g.binding&&g.binding("util")}catch(a){}}()},78803:(a,b,c)=>{c.d(b,{A:()=>T});var d=c(41573),e=c(23589);let f=function(a,b){for(var c=-1,d=null==a?0:a.length;++c<d;)if(b(a[c],c,a))return!0;return!1};var g=c(76625);let h=function(a,b,c,d,h,i){var j=1&c,k=a.length,l=b.length;if(k!=l&&!(j&&l>k))return!1;var m=i.get(a),n=i.get(b);if(m&&n)return m==b&&n==a;var o=-1,p=!0,q=2&c?new e.A:void 0;for(i.set(a,b),i.set(b,a);++o<k;){var r=a[o],s=b[o];if(d)var t=j?d(s,r,o,b,a,i):d(r,s,o,a,b,i);if(void 0!==t){if(t)continue;p=!1;break}if(q){if(!f(b,function(a,b){if(!(0,g.A)(q,b)&&(r===a||h(r,a,c,d,i)))return q.push(b)})){p=!1;break}}else if(!(r===s||h(r,s,c,d,i))){p=!1;break}}return i.delete(a),i.delete(b),p};var i=c(85291),j=c(12022),k=c(44878);let l=function(a){var b=-1,c=Array(a.size);return a.forEach(function(a,d){c[++b]=[d,a]}),c};var m=c(23009),n=i.A?i.A.prototype:void 0,o=n?n.valueOf:void 0;let p=function(a,b,c,d,e,f,g){switch(c){case"[object DataView]":if(a.byteLength!=b.byteLength||a.byteOffset!=b.byteOffset)break;a=a.buffer,b=b.buffer;case"[object ArrayBuffer]":if(a.byteLength!=b.byteLength||!f(new j.A(a),new j.A(b)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,k.A)(+a,+b);case"[object Error]":return a.name==b.name&&a.message==b.message;case"[object RegExp]":case"[object String]":return a==b+"";case"[object Map]":var i=l;case"[object Set]":var n=1&d;if(i||(i=m.A),a.size!=b.size&&!n)break;var p=g.get(a);if(p)return p==b;d|=2,g.set(a,b);var q=h(i(a),i(b),d,e,f,g);return g.delete(a),q;case"[object Symbol]":if(o)return o.call(a)==o.call(b)}return!1};var q=c(73416),r=Object.prototype.hasOwnProperty;let s=function(a,b,c,d,e,f){var g=1&c,h=(0,q.A)(a),i=h.length;if(i!=(0,q.A)(b).length&&!g)return!1;for(var j=i;j--;){var k=h[j];if(!(g?k in b:r.call(b,k)))return!1}var l=f.get(a),m=f.get(b);if(l&&m)return l==b&&m==a;var n=!0;f.set(a,b),f.set(b,a);for(var o=g;++j<i;){var p=a[k=h[j]],s=b[k];if(d)var t=g?d(s,p,k,b,a,f):d(p,s,k,a,b,f);if(!(void 0===t?p===s||e(p,s,c,d,f):t)){n=!1;break}o||(o="constructor"==k)}if(n&&!o){var u=a.constructor,v=b.constructor;u!=v&&"constructor"in a&&"constructor"in b&&!("function"==typeof u&&u instanceof u&&"function"==typeof v&&v instanceof v)&&(n=!1)}return f.delete(a),f.delete(b),n};var t=c(91680),u=c(4591),v=c(1443),w=c(38426),x="[object Arguments]",y="[object Array]",z="[object Object]",A=Object.prototype.hasOwnProperty;let B=function(a,b,c,e,f,g){var i=(0,u.A)(a),j=(0,u.A)(b),k=i?y:(0,t.A)(a),l=j?y:(0,t.A)(b);k=k==x?z:k,l=l==x?z:l;var m=k==z,n=l==z,o=k==l;if(o&&(0,v.A)(a)){if(!(0,v.A)(b))return!1;i=!0,m=!1}if(o&&!m)return g||(g=new d.A),i||(0,w.A)(a)?h(a,b,c,e,f,g):p(a,b,k,c,e,f,g);if(!(1&c)){var q=m&&A.call(a,"__wrapped__"),r=n&&A.call(b,"__wrapped__");if(q||r){var B=q?a.value():a,C=r?b.value():b;return g||(g=new d.A),f(B,C,c,e,g)}}return!!o&&(g||(g=new d.A),s(a,b,c,e,f,g))};var C=c(93820);let D=function a(b,c,d,e,f){return b===c||(null!=b&&null!=c&&((0,C.A)(b)||(0,C.A)(c))?B(b,c,d,e,a,f):b!=b&&c!=c)},E=function(a,b,c,e){var f=c.length,g=f,h=!e;if(null==a)return!g;for(a=Object(a);f--;){var i=c[f];if(h&&i[2]?i[1]!==a[i[0]]:!(i[0]in a))return!1}for(;++f<g;){var j=(i=c[f])[0],k=a[j],l=i[1];if(h&&i[2]){if(void 0===k&&!(j in a))return!1}else{var m=new d.A;if(e)var n=e(k,l,j,a,b,m);if(!(void 0===n?D(l,k,3,e,m):n))return!1}}return!0};var F=c(18671);let G=function(a){return a==a&&!(0,F.A)(a)};var H=c(45680);let I=function(a){for(var b=(0,H.A)(a),c=b.length;c--;){var d=b[c],e=a[d];b[c]=[d,e,G(e)]}return b},J=function(a,b){return function(c){return null!=c&&c[a]===b&&(void 0!==b||a in Object(c))}},K=function(a){var b=I(a);return 1==b.length&&b[0][2]?J(b[0][0],b[0][1]):function(c){return c===a||E(c,a,b)}};var L=c(86296);let M=function(a,b,c){var d=null==a?void 0:(0,L.A)(a,b);return void 0===d?c:d};var N=c(67109),O=c(15016),P=c(47927),Q=c(66994),R=c(19919);let S=function(a){return(0,O.A)(a)?(0,R.A)((0,P.A)(a)):function(b){return(0,L.A)(b,a)}},T=function(a){if("function"==typeof a)return a;if(null==a)return Q.A;if("object"==typeof a){var b,c;return(0,u.A)(a)?(b=a[0],c=a[1],(0,O.A)(b)&&G(c)?J((0,P.A)(b),c):function(a){var d=M(a,b);return void 0===d&&d===c?(0,N.A)(a,b):D(c,d,3)}):K(a)}return S(a)}},78832:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b,c){for(var d=-1,e=Object(a),f=c(a),g=f.length;g--;){var h=f[++d];if(!1===b(e[h],h,e))break}return a}},78959:(a,b,c)=>{c.d(b,{A:()=>j});var d=c(15078),e=c(85291),f=c(73769),g=c(4591),h=e.A?e.A.isConcatSpreadable:void 0;let i=function(a){return(0,g.A)(a)||(0,f.A)(a)||!!(h&&a&&a[h])},j=function a(b,c,e,f,g){var h=-1,j=b.length;for(e||(e=i),g||(g=[]);++h<j;){var k=b[h];c>0&&e(k)?c>1?a(k,c-1,e,f,g):(0,d.A)(g,k):f||(g[g.length]=k)}return g}},79524:(a,b,c)=>{c.d(b,{A:()=>k});let d=function(a,b){for(var c=-1,d=Array(a);++c<a;)d[c]=b(c);return d};var e=c(73769),f=c(4591),g=c(1443),h=c(29163),i=c(38426),j=Object.prototype.hasOwnProperty;let k=function(a,b){var c=(0,f.A)(a),k=!c&&(0,e.A)(a),l=!c&&!k&&(0,g.A)(a),m=!c&&!k&&!l&&(0,i.A)(a),n=c||k||l||m,o=n?d(a.length,String):[],p=o.length;for(var q in a)(b||j.call(a,q))&&!(n&&("length"==q||l&&("offset"==q||"parent"==q)||m&&("buffer"==q||"byteLength"==q||"byteOffset"==q)||(0,h.A)(q,p)))&&o.push(q);return o}},85291:(a,b,c)=>{c.d(b,{A:()=>d});let d=c(18623).A.Symbol},85992:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(98007),e=c(16730),f=c(62320),g=c(4591);let h=function(a,b){return((0,g.A)(a)?d.A:e.A)(a,(0,f.A)(b))}},86060:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return function(){return a}}},86296:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(67285),e=c(47927);let f=function(a,b){b=(0,d.A)(b,a);for(var c=0,f=b.length;null!=a&&c<f;)a=a[(0,e.A)(b[c++])];return c&&c==f?a:void 0}},86340:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(64910),e=c(93820);let f=function(a){return"symbol"==typeof a||(0,e.A)(a)&&"[object Symbol]"==(0,d.A)(a)}},90684:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return"number"==typeof a&&a>-1&&a%1==0&&a<=0x1fffffffffffff}},91680:(a,b,c)=>{c.d(b,{A:()=>x});var d=c(27667),e=c(18623),f=(0,d.A)(e.A,"DataView"),g=c(29189),h=(0,d.A)(e.A,"Promise"),i=c(65719),j=(0,d.A)(e.A,"WeakMap"),k=c(64910),l=c(41131),m="[object Map]",n="[object Promise]",o="[object Set]",p="[object WeakMap]",q="[object DataView]",r=(0,l.A)(f),s=(0,l.A)(g.A),t=(0,l.A)(h),u=(0,l.A)(i.A),v=(0,l.A)(j),w=k.A;(f&&w(new f(new ArrayBuffer(1)))!=q||g.A&&w(new g.A)!=m||h&&w(h.resolve())!=n||i.A&&w(new i.A)!=o||j&&w(new j)!=p)&&(w=function(a){var b=(0,k.A)(a),c="[object Object]"==b?a.constructor:void 0,d=c?(0,l.A)(c):"";if(d)switch(d){case r:return q;case s:return m;case t:return n;case u:return o;case v:return p}return b});let x=w},93820:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return null!=a&&"object"==typeof a}},98007:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a,b){for(var c=-1,d=null==a?0:a.length;++c<d&&!1!==b(a[c],c,a););return a}},98122:(a,b,c)=>{c.d(b,{A:()=>d});let d=function(a){return void 0===a}}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";exports.id=4406,exports.ids=[4406],exports.modules={34406:(a,b,c)=>{c.d(b,{diagram:()=>br});var d=c(61827),e=c(65144),f=c(90355),g=c(551),h=c(70400),i=c(65246),j=c(21143),k=c(11732),l=c(18847),m=c(32112),n=c(22729);function o(a,b){for(let c in b)Object.hasOwn(b,c)&&(a[c]=b[c])}var p=c(75899),q=c(14120),r=c(69085),s=c(74367),t=function(){var a=(0,j.K2)(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],k=[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,j.K2)(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,j.K2)(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(k,[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(k,[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,j.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,j.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",i=0,k=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,j.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,j.K2)(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):(k=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,k,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,j.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,j.K2)(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,j.K2)(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,j.K2)(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,j.K2)(function(){return this._more=!0,this},"more"),reject:(0,j.K2)(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,j.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,j.K2)(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,j.K2)(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,j.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,j.K2)(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,j.K2)(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,j.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,j.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,j.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,j.K2)(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,j.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,j.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,j.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,j.K2)(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,j.K2)(s,"Parser"),s.prototype=r,r.Parser=s,new s}();t.parser=t;var u=new Map,v=[],w=new Map,x="color",y="fill",z=(0,i.D7)(),A=new Map,B="",C=(0,j.K2)(a=>i.Y2.sanitizeText(a,z),"sanitizeText"),D=(0,j.K2)(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(x).exec(a)){let a=b.replace(y,"bgFill").replace(x,y);c.textStyles.push(a)}c.styles.push(b)})},"addStyleClass"),E=(0,j.K2)(function(a,b=""){let c=u.get(a);null!=b&&(c.styles=b.split(","))},"addStyle2Node"),F=(0,j.K2)(function(a,b){a.split(",").forEach(function(a){let c=u.get(a);if(void 0===c){let b=a.trim();c={id:b,type:"na",children:[]},u.set(b,c)}c.classes||(c.classes=[]),c.classes.push(b)})},"setCssClass"),G=(0,j.K2)((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.Rm.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=(w.get(a.id)??0)+1;w.set(a.id,b),a.id=b+"-"+a.id,v.push(a)}else{a.label||("composite"===a.type?a.label="":a.label=a.id);let b=u.get(a.id);if(void 0===b?u.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,k.s)(a))return a;let b=(0,l.b)(a);if(!function(a){switch((0,l.b)(a)){case m.R_:case m.Uw:case m.cT:case m.iq:case m.$V:case m.vC:case m.ri:case m.ML:case m.XZ:case m.i1:case m._u:case m.pj:case m.kj:case m.GX:case m.Av:case m.NA:case m.OG:case m.VP:case m.Qb:case m.q:case m.x6:case m.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,n.i)(a))return new a.constructor(a.buffer,a.byteOffset,a.length);if("[object ArrayBuffer]"===b)return new ArrayBuffer(a.byteLength);if("[object DataView]"===b){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("[object Boolean]"===b||"[object Number]"===b||"[object String]"===b){let c=new a.constructor(a.valueOf());return"[object String]"===b?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):o(c,a),c}if("[object Date]"===b)return new Date(Number(a));if("[object RegExp]"===b){let b=new RegExp(a.source,a.flags);return b.lastIndex=a.lastIndex,b}if("[object Symbol]"===b)return Object(Symbol.prototype.valueOf.call(a));if("[object Map]"===b){let b=new Map;return a.forEach((a,c)=>{b.set(c,a)}),b}if("[object Set]"===b){let b=new Set;return a.forEach(a=>{b.add(a)}),b}if("[object Arguments]"===b){let b={};return o(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),o(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,u.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,j.K2)(()=>{j.Rm.debug("Clear called"),(0,i.IU)(),u=new Map([["root",I={id:"root",type:"composite",children:[],columns:-1}]]),H=[],A=new Map,v=[],w=new Map,B=""},"clear");function K(a){switch(j.Rm.debug("typeStr2Type",a),a){case"[]":return"square";case"()":return j.Rm.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.Rm.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,j.K2)(K,"typeStr2Type"),(0,j.K2)(L,"edgeTypeStr2Type"),(0,j.K2)(M,"edgeStrToEdgeData"),(0,j.K2)(N,"edgeStrToEdgeStartData"),(0,j.K2)(O,"edgeStrToThickness"),(0,j.K2)(P,"edgeStrToPattern");var Q=0,R=(0,j.K2)(()=>(Q++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Q),"generateId"),S=(0,j.K2)(a=>{I.children=a,G(a,I),H=I.children},"setHierarchy"),T=(0,j.K2)(a=>{let b=u.get(a);return b?b.columns?b.columns:b.children?b.children.length:-1:-1},"getColumns"),U=(0,j.K2)(()=>[...u.values()],"getBlocksFlat"),V=(0,j.K2)(()=>H||[],"getBlocks"),W=(0,j.K2)(()=>v,"getEdges"),X=(0,j.K2)(a=>u.get(a),"getBlock"),Y=(0,j.K2)(a=>{u.set(a.id,a)},"setBlock"),Z=(0,j.K2)(a=>{B=a},"setDiagramId"),$=(0,j.K2)(()=>B,"getDiagramId"),_=(0,j.K2)(()=>j.Rm,"getLogger"),aa=(0,j.K2)(function(){return A},"getClasses"),ab={getConfig:(0,j.K2)(()=>(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,j.K2)((a,b)=>{let c=p.A,d=c(a,"r"),e=c(a,"g"),f=c(a,"b");return q.A(d,e,f,b)},"fade"),ad=(0,j.K2)(a=>`.label {
|
|
1
|
+
"use strict";exports.id=4406,exports.ids=[4406],exports.modules={34406:(a,b,c)=>{c.d(b,{diagram:()=>br});var d=c(61827),e=c(65144),f=c(90355),g=c(31792),h=c(70400),i=c(65246),j=c(21143),k=c(11732),l=c(18847),m=c(32112),n=c(22729);function o(a,b){for(let c in b)Object.hasOwn(b,c)&&(a[c]=b[c])}var p=c(75899),q=c(14120),r=c(69085),s=c(74367),t=function(){var a=(0,j.K2)(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],k=[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,j.K2)(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,j.K2)(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(k,[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(k,[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,j.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,j.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",i=0,k=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,j.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,j.K2)(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):(k=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,k,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,j.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,j.K2)(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,j.K2)(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,j.K2)(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,j.K2)(function(){return this._more=!0,this},"more"),reject:(0,j.K2)(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,j.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,j.K2)(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,j.K2)(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,j.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,j.K2)(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,j.K2)(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,j.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,j.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,j.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,j.K2)(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,j.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,j.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,j.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,j.K2)(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,j.K2)(s,"Parser"),s.prototype=r,r.Parser=s,new s}();t.parser=t;var u=new Map,v=[],w=new Map,x="color",y="fill",z=(0,i.D7)(),A=new Map,B="",C=(0,j.K2)(a=>i.Y2.sanitizeText(a,z),"sanitizeText"),D=(0,j.K2)(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(x).exec(a)){let a=b.replace(y,"bgFill").replace(x,y);c.textStyles.push(a)}c.styles.push(b)})},"addStyleClass"),E=(0,j.K2)(function(a,b=""){let c=u.get(a);null!=b&&(c.styles=b.split(","))},"addStyle2Node"),F=(0,j.K2)(function(a,b){a.split(",").forEach(function(a){let c=u.get(a);if(void 0===c){let b=a.trim();c={id:b,type:"na",children:[]},u.set(b,c)}c.classes||(c.classes=[]),c.classes.push(b)})},"setCssClass"),G=(0,j.K2)((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.Rm.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=(w.get(a.id)??0)+1;w.set(a.id,b),a.id=b+"-"+a.id,v.push(a)}else{a.label||("composite"===a.type?a.label="":a.label=a.id);let b=u.get(a.id);if(void 0===b?u.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,k.s)(a))return a;let b=(0,l.b)(a);if(!function(a){switch((0,l.b)(a)){case m.R_:case m.Uw:case m.cT:case m.iq:case m.$V:case m.vC:case m.ri:case m.ML:case m.XZ:case m.i1:case m._u:case m.pj:case m.kj:case m.GX:case m.Av:case m.NA:case m.OG:case m.VP:case m.Qb:case m.q:case m.x6:case m.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,n.i)(a))return new a.constructor(a.buffer,a.byteOffset,a.length);if("[object ArrayBuffer]"===b)return new ArrayBuffer(a.byteLength);if("[object DataView]"===b){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("[object Boolean]"===b||"[object Number]"===b||"[object String]"===b){let c=new a.constructor(a.valueOf());return"[object String]"===b?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):o(c,a),c}if("[object Date]"===b)return new Date(Number(a));if("[object RegExp]"===b){let b=new RegExp(a.source,a.flags);return b.lastIndex=a.lastIndex,b}if("[object Symbol]"===b)return Object(Symbol.prototype.valueOf.call(a));if("[object Map]"===b){let b=new Map;return a.forEach((a,c)=>{b.set(c,a)}),b}if("[object Set]"===b){let b=new Set;return a.forEach(a=>{b.add(a)}),b}if("[object Arguments]"===b){let b={};return o(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),o(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,u.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,j.K2)(()=>{j.Rm.debug("Clear called"),(0,i.IU)(),u=new Map([["root",I={id:"root",type:"composite",children:[],columns:-1}]]),H=[],A=new Map,v=[],w=new Map,B=""},"clear");function K(a){switch(j.Rm.debug("typeStr2Type",a),a){case"[]":return"square";case"()":return j.Rm.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.Rm.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,j.K2)(K,"typeStr2Type"),(0,j.K2)(L,"edgeTypeStr2Type"),(0,j.K2)(M,"edgeStrToEdgeData"),(0,j.K2)(N,"edgeStrToEdgeStartData"),(0,j.K2)(O,"edgeStrToThickness"),(0,j.K2)(P,"edgeStrToPattern");var Q=0,R=(0,j.K2)(()=>(Q++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Q),"generateId"),S=(0,j.K2)(a=>{I.children=a,G(a,I),H=I.children},"setHierarchy"),T=(0,j.K2)(a=>{let b=u.get(a);return b?b.columns?b.columns:b.children?b.children.length:-1:-1},"getColumns"),U=(0,j.K2)(()=>[...u.values()],"getBlocksFlat"),V=(0,j.K2)(()=>H||[],"getBlocks"),W=(0,j.K2)(()=>v,"getEdges"),X=(0,j.K2)(a=>u.get(a),"getBlock"),Y=(0,j.K2)(a=>{u.set(a.id,a)},"setBlock"),Z=(0,j.K2)(a=>{B=a},"setDiagramId"),$=(0,j.K2)(()=>B,"getDiagramId"),_=(0,j.K2)(()=>j.Rm,"getLogger"),aa=(0,j.K2)(function(){return A},"getClasses"),ab={getConfig:(0,j.K2)(()=>(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,j.K2)((a,b)=>{let c=p.A,d=c(a,"r"),e=c(a,"g"),f=c(a,"b");return q.A(d,e,f,b)},"fade"),ad=(0,j.K2)(a=>`.label {
|
|
2
2
|
font-family: ${a.fontFamily};
|
|
3
3
|
color: ${a.nodeTextColor||a.textColor};
|
|
4
4
|
}
|