diff --git a/.gitignore b/.gitignore index f5cb6f369..6fb7e1e71 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,7 @@ venv/ tmp CLAUDE.md +pnpm-lock.yaml +package-lock.json +yarn.lock + diff --git a/cli/Cargo.toml b/cli/Cargo.toml index d04882710..bc1b10fa3 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -10,19 +10,13 @@ license = { workspace = true } authors = { workspace = true } repository = { workspace = true } -[target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dependencies] -duckdb = { version = "=1.2.2", features = ["bundled"] } - -[target.'cfg(all(target_arch = "aarch64", target_os = "macos"))'.dependencies] -duckdb = { version = "=1.2.2", features = ["bundled"] } - [dependencies] chrono = { workspace = true } databend-client = { workspace = true } databend-driver = { workspace = true, features = ["rustls", "flight-sql"] } tokio-stream = { workspace = true } -actix-web = "4.10" +actix-web = "4.11" anyhow = "1.0" arrow = { workspace = true } async-recursion = "1.1.1" diff --git a/cli/frontend/build/asset-manifest.json b/cli/frontend/build/asset-manifest.json index 4575b8abe..8c8732e87 100644 --- a/cli/frontend/build/asset-manifest.json +++ b/cli/frontend/build/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { - "main.css": "/static/css/main.a94f3081.css", - "main.js": "/static/js/main.900dc5c4.js", + "main.css": "/static/css/main.926ec5e8.css", + "main.js": "/static/js/main.23ca657c.js", "static/media/download.svg": "/static/media/download.1a2f96254a617a2765b0fca418a3e5bf.svg", "static/media/zoom-in.svg": "/static/media/zoom-in.b8e914df4e9fbb889ceec372b13f62d1.svg", "static/media/full-screen.svg": "/static/media/full-screen.972c352cc40ca74a17222b04ad2b1316.svg", @@ -9,7 +9,7 @@ "static/media/zoom-out.svg": "/static/media/zoom-out.9600557781b9acd42f24eddad00f6f36.svg" }, "entrypoints": [ - "static/css/main.a94f3081.css", - "static/js/main.900dc5c4.js" + "static/css/main.926ec5e8.css", + "static/js/main.23ca657c.js" ] } \ No newline at end of file diff --git a/cli/frontend/build/index.html b/cli/frontend/build/index.html index b30880288..7779f237f 100644 --- a/cli/frontend/build/index.html +++ b/cli/frontend/build/index.html @@ -1 +1 @@ -Databend
\ No newline at end of file +Databend
\ No newline at end of file diff --git a/cli/frontend/build/static/css/main.926ec5e8.css b/cli/frontend/build/static/css/main.926ec5e8.css new file mode 100644 index 000000000..75a8dec7f --- /dev/null +++ b/cli/frontend/build/static/css/main.926ec5e8.css @@ -0,0 +1,3 @@ +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* +! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com +*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-0{top:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mt-5{margin-top:1.25rem}.box-border{box-sizing:border-box}.flex{display:flex}.table{display:table}.h-4{height:1rem}.h-\[calc\(100vh-48px\)\]{height:calc(100vh - 48px)}.h-full{height:100%}.h-screen{height:100vh}.w-1{width:.25rem}.w-4{width:1rem}.w-\[100px\]{width:100px}.w-full{width:100%}.flex-1{flex:1 1}.border-collapse{border-collapse:collapse}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:#e5e7eb;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:#d1d5db;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-red-300{--tw-border-opacity:1;border-color:#fca5a5;border-color:rgb(252 165 165/var(--tw-border-opacity,1))}.border-white{--tw-border-opacity:1;border-color:#fff;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}.border-t-transparent{border-top-color:#0000}.bg-gray-100{--tw-bg-opacity:1;background-color:#f3f4f6;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:#d1d5db;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-50{--tw-bg-opacity:1;background-color:#f9fafb;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:#4f46e5;background-color:rgb(79 70 229/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:#fef2f2;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-yellow-400{--tw-bg-opacity:1;background-color:#facc15;background-color:rgb(250 204 21/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-gray-500{--tw-text-opacity:1;color:#6b7280;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:#374151;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:#111827;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:#b91c1c;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-red-800{--tw-text-opacity:1;color:#991b1b;color:rgb(153 27 27/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:#fff;color:rgb(255 255 255/var(--tw-text-opacity,1))}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:0 0 #0000,0 0 #0000,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline{outline-style:solid}.drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f)}.drop-shadow,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-gray-400:hover{--tw-bg-opacity:1;background-color:#9ca3af;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:#4338ca;background-color:rgb(67 56 202/var(--tw-bg-opacity,1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-60:disabled{opacity:.6}.expensive-nodes-card{background-color:#fff;border:1px solid #010e2914;border-radius:8px;box-shadow:0 3px 6px #010e291f;box-sizing:border-box;margin-top:20px;padding:24px;width:308px}.expensive-nodes-card-header{margin-bottom:8px}.expensive-nodes-card-header h2{color:#2c3e50;font-size:14px;margin:0}.expensive-nodes-card-header span{color:#bdc3c7;font-weight:400}.expensive-nodes-node{align-items:center;border-bottom:1px solid #ecf0f1;display:flex;font-size:12px;justify-content:space-between;padding:8px 6px}.expensive-nodes-node.selected{border:2px solid #0175f6!important;border-radius:8px}.expensive-nodes-node-name{color:#0c162b99;font-size:12px;font-weight:600}.block{display:block}.expensive-nodes-node-percentage{color:#0c162bcc;font-size:12px;font-weight:700}.expensive-nodes-progress{align-items:center;display:flex;margin-bottom:16px}.expensive-nodes-progress .ant-progress-line{flex:1 1}.expensive-nodes-percentage{color:#2c3e50;font-size:14px;font-weight:700;margin-left:8px}.expensive-nodes-node-attributes{display:block}.expensive-nodes-node-title{color:#0c162bcc;font-size:12px;font-weight:600;padding:8px 6px}.custom-statistic{align-items:center;display:flex;margin-bottom:8px}.custom-dot{border-radius:50%;display:inline-block;height:8px;margin-right:8px;width:8px}.statistic-title{color:#595959;font-size:14px} \ No newline at end of file diff --git a/cli/frontend/build/static/css/main.a94f3081.css b/cli/frontend/build/static/css/main.a94f3081.css deleted file mode 100644 index 72077e804..000000000 --- a/cli/frontend/build/static/css/main.a94f3081.css +++ /dev/null @@ -1,3 +0,0 @@ -*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* -! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com -*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.absolute{position:absolute}.left-0{left:0}.top-0{top:0}.mb-2{margin-bottom:.5rem}.mt-5{margin-top:1.25rem}.box-border{box-sizing:border-box}.flex{display:flex}.h-full{height:100%}.h-screen{height:100vh}.w-\[100px\]{width:100px}.w-full{width:100%}.flex-1{flex:1 1}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.justify-center{justify-content:center}.justify-around{justify-content:space-around}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:#e5e7eb;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:#fff;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-6{padding:1.5rem}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f)}.drop-shadow,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.expensive-nodes-card{background-color:#fff;border:1px solid #010e2914;border-radius:8px;box-shadow:0 3px 6px #010e291f;box-sizing:border-box;margin-top:20px;padding:24px;width:308px}.expensive-nodes-card-header{margin-bottom:8px}.expensive-nodes-card-header h2{color:#2c3e50;font-size:14px;margin:0}.expensive-nodes-card-header span{color:#bdc3c7;font-weight:400}.expensive-nodes-node{align-items:center;border-bottom:1px solid #ecf0f1;display:flex;font-size:12px;justify-content:space-between;padding:8px 6px}.expensive-nodes-node.selected{border:2px solid #0175f6!important;border-radius:8px}.expensive-nodes-node-name{color:#0c162b99;font-size:12px;font-weight:600}.block{display:block}.expensive-nodes-node-percentage{color:#0c162bcc;font-size:12px;font-weight:700}.expensive-nodes-progress{align-items:center;display:flex;margin-bottom:16px}.expensive-nodes-progress .ant-progress-line{flex:1 1}.expensive-nodes-percentage{color:#2c3e50;font-size:14px;font-weight:700;margin-left:8px}.expensive-nodes-node-attributes{display:block}.expensive-nodes-node-title{color:#0c162bcc;font-size:12px;font-weight:600;padding:8px 6px}.custom-statistic{align-items:center;display:flex;margin-bottom:8px}.custom-dot{border-radius:50%;display:inline-block;height:8px;margin-right:8px;width:8px}.statistic-title{color:#595959;font-size:14px} \ No newline at end of file diff --git a/cli/frontend/build/static/js/main.23ca657c.js b/cli/frontend/build/static/js/main.23ca657c.js new file mode 100644 index 000000000..1d091773b --- /dev/null +++ b/cli/frontend/build/static/js/main.23ca657c.js @@ -0,0 +1,2 @@ +/*! For license information please see main.23ca657c.js.LICENSE.txt */ +(()=>{var t={26:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=n(1428),o=(r=n(9796))&&r.__esModule?r:{default:r};var a=function(t){return function(){for(var e=[],n=0;n{"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{A:()=>r})},40:(t,e,n)=>{"use strict";t.exports=n(91)},78:t=>{t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},91:(t,e)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function m(t,e,n){this.props=t,this.context=e,this.refs=v,this.updater=n||p}function y(){}function b(t,e,n){this.props=t,this.context=e,this.refs=v,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(t,e){if("object"!==typeof t&&"function"!==typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},m.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},y.prototype=m.prototype;var x=b.prototype=new y;x.constructor=b,g(x,m.prototype),x.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,k={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function M(t,e,r){var i,o={},a=null,s=null;if(null!=e)for(i in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)S.call(e,i)&&!E.hasOwnProperty(i)&&(o[i]=e[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){if("next"!==t&&"prev"!==t)return e},r=function(t){t.prev.next=t.next,t.next.prev=t.prev,delete t.next,delete t.prev},i=function(){function t(){var t={};t.prev=t,t.next=t.prev,this.shortcut=t}return t.prototype.dequeue=function(){var t=this.shortcut,e=t.prev;if(e&&e!==t)return r(e),e},t.prototype.enqueue=function(t){var e=this.shortcut;t.prev&&t.next&&r(t),t.next=e.next,e.next.prev=t,e.next=t,t.prev=e},t.prototype.toString=function(){for(var t=[],e=this.shortcut,r=e.prev;r!==e;)t.push(JSON.stringify(r,n)),r=null===r||void 0===r?void 0:r.prev;return"[".concat(t.join(", "),"]")},t}();e.default=i},190:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach(function(t,e){o[t.id]=e;i.push([])}),r&&r.forEach(function(t){var n=t.source,r=t.target,a=o[n],s=o[r];!a&&0!==a||!s&&0!==s||(i[a][s]=1,e||(i[s][a]=1))}),i};e.default=n},213:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(8901),o=n(6637),a=r(n(944)),s=i.longestPath,l=function(t){(0,i.longestPathWithLayer)(t),(0,o.feasibleTreeWithLayer)(t)},u=function(t){(0,a.default)(t)};e.default=function(t){switch(t.graph().ranker){case"network-simplex":u(t);break;case"tight-tree":default:l(t);break;case"longest-path":s(t)}}},249:(t,e,n)=>{"use strict";var r=n(5628),i=n(5458),o=[].slice,a=["keyword","gray","hex"],s={};Object.keys(i).forEach(function(t){s[o.call(i[t].labels).sort().join("")]=t});var l={};function u(t,e){if(!(this instanceof u))return new u(t,e);if(e&&e in a&&(e=null),e&&!(e in i))throw new Error("Unknown model: "+e);var n,c;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof u)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"===typeof t){var h=r.get(t);if(null===h)throw new Error("Unable to parse color from string: "+t);this.model=h.model,c=i[this.model].channels,this.color=h.value.slice(0,c),this.valpha="number"===typeof h.value[c]?h.value[c]:1}else if(t.length){this.model=e||"rgb",c=i[this.model].channels;var f=o.call(t,0,c);this.color=d(f,c),this.valpha="number"===typeof t[c]?t[c]:1}else if("number"===typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var p=Object.keys(t);"alpha"in t&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"===typeof t.alpha?t.alpha:0);var g=p.sort().join("");if(!(g in s))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=s[g];var v=i[this.model].labels,m=[];for(n=0;nn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return u.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n=(n+t)%360)<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),r=this.rgb(),i=void 0===e?.5:e,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return u.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach(function(t){if(-1===a.indexOf(t)){var e=i[t].channels;u.prototype[t]=function(){if(this.model===t)return new u(this);if(arguments.length)return new u(arguments,t);var n,r="number"===typeof arguments[e]?e:this.valpha;return new u((n=i[this.model][t].raw(this.color),Array.isArray(n)?n:[n]).concat(r),t)},u[t]=function(n){return"number"===typeof n&&(n=d(o.call(arguments),e)),new u(n,t)}}}),t.exports=u},266:(t,e,n)=>{var r=n(2993),i=n(5700),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,r).replace(a,"")}},427:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}},527:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.xmid=t.xmid,this.ymid=t.ymid,this.length=t.length,this.massCenter=t.massCenter||[0,0],this.mass=t.mass||1}return t.prototype.getLength=function(){return this.length},t.prototype.contains=function(t,e){var n=this.length/2;return t<=this.xmid+n&&t>=this.xmid-n&&e<=this.ymid+n&&e>=this.ymid-n},t.prototype.NW=function(){return new t({xmid:this.xmid-this.length/4,ymid:this.ymid+this.length/4,length:this.length/2})},t.prototype.NE=function(){return new t({xmid:this.xmid+this.length/4,ymid:this.ymid+this.length/4,length:this.length/2})},t.prototype.SW=function(){return new t({xmid:this.xmid-this.length/4,ymid:this.ymid-this.length/4,length:this.length/2})},t.prototype.SE=function(){return new t({xmid:this.xmid+this.length/4,ymid:this.ymid-this.length/4,length:this.length/2})},t}();e.default=n},533:(t,e,n)=>{var r=n(763),i=n(4683),o=n(4155),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},535:(t,e,n)=>{"use strict";n.r(e),n.d(e,{add:()=>c,angle:()=>F,bezier:()=>N,ceil:()=>p,clone:()=>o,copy:()=>l,create:()=>i,cross:()=>A,dist:()=>q,distance:()=>w,div:()=>X,divide:()=>f,dot:()=>C,equals:()=>V,exactEquals:()=>W,floor:()=>g,forEach:()=>$,fromValues:()=>s,hermite:()=>I,inverse:()=>M,len:()=>Q,length:()=>a,lerp:()=>O,max:()=>m,min:()=>v,mul:()=>Y,multiply:()=>d,negate:()=>E,normalize:()=>_,random:()=>P,rotateX:()=>j,rotateY:()=>B,rotateZ:()=>z,round:()=>y,scale:()=>b,scaleAndAdd:()=>x,set:()=>u,slerp:()=>T,sqrDist:()=>K,sqrLen:()=>Z,squaredDistance:()=>S,squaredLength:()=>k,str:()=>U,sub:()=>H,subtract:()=>h,transformMat3:()=>L,transformMat4:()=>D,transformQuat:()=>R,zero:()=>G});var r=n(7705);function i(){var t=new r.ARRAY_TYPE(3);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new r.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e,n){var i=new r.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=n,i}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function d(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e){return t[0]=r.round(e[0]),t[1]=r.round(e[1]),t[2]=r.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function S(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function k(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function E(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function _(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=i*l-o*s,t[1]=o*a-r*l,t[2]=r*s-i*a,t}function O(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function T(t,e,n,r){var i=Math.acos(Math.min(Math.max(C(e,n),-1),1)),o=Math.sin(i),a=Math.sin((1-r)*i)/o,s=Math.sin(r*i)/o;return t[0]=a*e[0]+s*n[0],t[1]=a*e[1]+s*n[1],t[2]=a*e[2]+s*n[2],t}function I(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,l=a*(o-2)+o,u=a*(o-1),c=a*(3-2*o);return t[0]=e[0]*s+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*s+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*s+n[2]*l+r[2]*u+i[2]*c,t}function N(t,e,n,r,i,o){var a=1-o,s=a*a,l=o*o,u=s*a,c=3*o*s,h=3*l*a,d=l*o;return t[0]=e[0]*u+n[0]*c+r[0]*h+i[0]*d,t[1]=e[1]*u+n[1]*c+r[1]*h+i[1]*d,t[2]=e[2]*u+n[2]*c+r[2]*h+i[2]*d,t}function P(t,e){e=void 0===e?1:e;var n=2*r.RANDOM()*Math.PI,i=2*r.RANDOM()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t}function D(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function L(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function R(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],l=e[1],u=e[2],c=i*u-o*l,h=o*s-r*u,d=r*l-i*s;return c+=c,h+=h,d+=d,t[0]=s+a*c+i*d-o*h,t[1]=l+a*h+o*c-r*d,t[2]=u+a*d+r*h-i*c,t}function j(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function B(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function z(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function F(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],l=Math.sqrt((n*n+r*r+i*i)*(o*o+a*a+s*s)),u=l&&C(t,e)/l;return Math.acos(Math.min(Math.max(u,-1),1))}function G(t){return t[0]=0,t[1]=0,t[2]=0,t}function U(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function W(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function V(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],l=e[2];return Math.abs(n-a)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))}var H=h,Y=d,X=f,q=w,K=S,Q=a,Z=k,$=function(){var t=i();return function(e,n,r,i,o,a){var s,l;for(n||(n=3),r||(r=0),l=i?Math.min(i*n+r,e.length):e.length,s=r;sr?1:0}var s=function(t){function e(e){var n=t.call(this)||this;return n.radius=null,n.nodeSize=void 0,n.startRadius=null,n.endRadius=null,n.startAngle=0,n.endAngle=2*Math.PI,n.clockwise=!0,n.divisions=1,n.ordering=null,n.angleRatio=1,n.nodes=[],n.edges=[],n.nodeMap={},n.degrees=[],n.width=300,n.height=300,n.updateCfg(e),n}return r(e,t),e.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var t,e=this,n=e.nodes,r=e.edges,i=n.length;if(0!==i){e.width||"undefined"===typeof window||(e.width=window.innerWidth),e.height||"undefined"===typeof window||(e.height=window.innerHeight),e.center||(e.center=[e.width/2,e.height/2]);var a=e.center;if(1===i)return n[0].x=a[0],n[0].y=a[1],void(e.onLayoutEnd&&e.onLayoutEnd());var s=e.radius,l=e.startRadius,u=e.endRadius,c=e.divisions,h=e.startAngle,d=e.endAngle,f=e.angleRatio,p=e.ordering,g=e.clockwise,v=e.nodeSpacing,m=e.nodeSize,y=(d-h)/i,b={};n.forEach(function(t,e){b[t.id]=e}),e.nodeMap=b;var x=(0,o.getDegree)(n.length,b,r);if(e.degrees=x,v){var w=(0,o.getFuncByUnknownType)(10,v),S=(0,o.getFuncByUnknownType)(10,m),k=-1/0;n.forEach(function(t){var e=S(t);ke.width?e.width/2:e.height/2;var M=y*f,_=[];_="topology"===p?e.topologyOrdering():"topology-directed"===p?e.topologyOrdering(!0):"degree"===p?e.degreeOrdering():n;for(var C=Math.ceil(i/c),A=0;A{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},598:(t,e,n)=>{"use strict";var r=n(8898),i=n(906);Object.defineProperty(e,"__esModule",{value:!0}),e.generate=function t(e,n,r){if(!r)return l.default.createElement(e.tag,(0,o.default)({key:n},p(e.attrs)),(e.children||[]).map(function(r,i){return t(r,"".concat(n,"-").concat(e.tag,"-").concat(i))}));return l.default.createElement(e.tag,(0,o.default)((0,o.default)({key:n},p(e.attrs)),r),(e.children||[]).map(function(r,i){return t(r,"".concat(n,"-").concat(e.tag,"-").concat(i))}))},e.getSecondaryColor=function(t){return(0,s.generate)(t)[0]},e.iconStyles=void 0,e.isIconDefinition=function(t){return"object"===(0,a.default)(t)&&"string"===typeof t.name&&"string"===typeof t.theme&&("object"===(0,a.default)(t.icon)||"function"===typeof t.icon)},e.normalizeAttrs=p,e.normalizeTwoToneColors=function(t){if(!t)return[];return Array.isArray(t)?t:[t]},e.useInsertStyles=e.svgBaseProps=void 0,e.warning=function(t,e){(0,u.default)(t,"[@ant-design/icons] ".concat(e))};var o=r(n(8545)),a=r(n(906)),s=n(8948),l=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=f(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(40)),u=r(n(7547)),c=n(4906),h=r(n(5239)),d=r(n(4580));function f(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(f=function(t){return t?n:e})(t)}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).reduce(function(e,n){var r=t[n];if("class"===n)e.className=r,delete e.class;else delete e[n],e[(0,d.default)(n)]=r;return e},{})}e.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var g=e.iconStyles="\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";e.useInsertStyles=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,e=(0,l.useContext)(h.default).csp;(0,l.useEffect)(function(){(0,c.updateCSS)(t,"@ant-design-icons",{prepend:!0,csp:e})},[])}},625:(t,e,n)=>{var r=n(1978);function i(){var e,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function l(t,i,o,a){var s=i&&i.prototype instanceof c?i:c,l=Object.create(s.prototype);return r(l,"_invoke",function(t,r,i){var o,a,s,l=0,c=i||[],h=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,a=0,s=e,d.n=n,u}};function f(t,r){for(a=t,s=r,n=0;!h&&l&&!i&&n3?(i=p===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=t<2&&fr||r>p)&&(o[4]=t,o[5]=r,d.n=p,a=0))}if(i||t>1)return u;throw h=!0,r}return function(i,c,p){if(l>1)throw TypeError("Generator is already running");for(h&&1===c&&f(c,p),a=c,s=p;(n=a<2?e:s)||!h;){o||(a?a<3?(a>1&&(d.n=-1),f(a,s)):d.n=s:d.v=s);try{if(l=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((n=(h=d.n<0)?s:t.call(r,d))!==u)break}catch(n){o=e,a=1,s=n}finally{l=1}}return{value:n,done:h}}}(t,o,a),!0),l}var u={};function c(){}function h(){}function d(){}n=Object.getPrototypeOf;var f=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),p=d.prototype=c.prototype=Object.create(f);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,r(t,s,"GeneratorFunction")),t.prototype=Object.create(p),t}return h.prototype=d,r(p,"constructor",d),r(d,"constructor",h),h.displayName="GeneratorFunction",r(d,s,"GeneratorFunction"),r(p),r(p,s,"Generator"),r(p,a,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(t.exports=i=function(){return{w:l,m:g}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},634:function(t){t.exports=function(){"use strict";var t=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},e=function(t,e){for(var n=Object.keys(e),r=0;r=0&&(0|t)===t||i("invalid parameter type, ("+t+")"+a(e)+". must be a nonnegative integer")}function d(t,e,n){e.indexOf(t)<0&&i("invalid value"+a(n)+". must be one of: "+e)}var f=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function p(t){Object.keys(t).forEach(function(t){f.indexOf(t)<0&&i('invalid regl constructor argument "'+t+'". must be one of '+f)})}function g(t,e){for(t+="";t.length0&&e.push(new y("unknown",0,t))}}),e}function k(t,e){e.forEach(function(e){var n=t[e.file];if(n){var r=n.index[e.line];if(r)return r.errors.push(e),void(n.hasErrors=!0)}t.unknown.hasErrors=!0,t.unknown.lines[0].errors.push(e)})}function E(t,e,r,i,a){if(!t.getShaderParameter(e,t.COMPILE_STATUS)){var s=t.getShaderInfoLog(e),l=i===t.FRAGMENT_SHADER?"fragment":"vertex";I(r,"string",l+" shader source must be a string",a);var u=w(r,a),c=S(s);k(u,c),Object.keys(u).forEach(function(t){var e=u[t];if(e.hasErrors){var r=[""],i=[""];o("file number "+t+": "+e.name+"\n","color:red;text-decoration:underline;font-weight:bold"),e.lines.forEach(function(t){if(t.errors.length>0){o(g(t.number,4)+"| ","background-color:yellow; font-weight:bold"),o(t.line+n,"color:red; background-color:yellow; font-weight:bold");var e=0;t.errors.forEach(function(r){var i=r.message,a=/^\s*'(.*)'\s*:\s*(.*)$/.exec(i);if(a){var s=a[1];i=a[2],"assign"===s&&(s="="),e=Math.max(t.line.indexOf(s,e),0)}else e=0;o(g("| ",6)),o(g("^^^",e+3)+n,"font-weight:bold"),o(g("| ",6)),o(i+n,"font-weight:bold")}),o(g("| ",6)+n)}else o(g(t.number,4)+"| "),o(t.line+n,"color:red")}),"undefined"===typeof document||window.chrome?console.log(r.join("")):(i[0]=r.join("%c"),console.log.apply(console,i))}function o(t,e){r.push(t),i.push(e||"")}}),o.raise("Error compiling "+l+" shader, "+u[0].name)}}function M(t,e,r,i,a){if(!t.getProgramParameter(e,t.LINK_STATUS)){var s=t.getProgramInfoLog(e),l=w(r,a),u='Error linking program with vertex shader, "'+w(i,a)[0].name+'", and fragment shader "'+l[0].name+'"';"undefined"!==typeof document?console.log("%c"+u+n+"%c"+s,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(u+n+s),o.raise(u)}}function _(t){t._commandRef=b()}function C(t,e,n,r){function i(t){return t?r.id(t):0}function o(t,e){Object.keys(e).forEach(function(e){t[r.id(e)]=!0})}_(t),t._fragId=i(t.static.frag),t._vertId=i(t.static.vert);var a=t._uniformSet={};o(a,e.static),o(a,e.dynamic);var s=t._attributeSet={};o(s,n.static),o(s,n.dynamic),t._hasCount="count"in t.static||"count"in t.dynamic||"elements"in t.static||"elements"in t.dynamic}function A(t,e){var n=x();i(t+" in command "+(e||b())+("unknown"===n?"":" called from "+n))}function O(t,e,n){t||A(e,n||b())}function T(t,e,n,r){t in e||A("unknown parameter ("+t+")"+a(n)+". possible values: "+Object.keys(e).join(),r||b())}function I(t,e,n,r){u(t,e)||A("invalid parameter type"+a(n)+". expected "+e+", got "+typeof t,r||b())}function N(t){t()}function P(t,e,n){t.texture?d(t.texture._texture.internalformat,e,"unsupported texture format for attachment"):d(t.renderbuffer._renderbuffer.format,n,"unsupported renderbuffer format for attachment")}var D=33071,L=9728,R=9984,j=9985,B=9986,z=9987,F=5121,G=5122,U=5123,W=5124,V=5125,H=5126,Y=32819,X=32820,q=33635,K=34042,Q=36193,Z={};function $(t,e){return t===X||t===Y||t===q?2:t===K?4:Z[t]*e}function J(t){return!(t&t-1)&&!!t}function tt(t,e,n){var r,i=e.width,a=e.height,s=e.channels;o(i>0&&i<=n.maxTextureSize&&a>0&&a<=n.maxTextureSize,"invalid texture shape"),t.wrapS===D&&t.wrapT===D||o(J(i)&&J(a),"incompatible wrap mode for texture, both width and height must be power of 2"),1===e.mipmask?1!==i&&1!==a&&o(t.minFilter!==R&&t.minFilter!==B&&t.minFilter!==j&&t.minFilter!==z,"min filter requires mipmap"):(o(J(i)&&J(a),"texture must be a square power of 2 to support mipmapping"),o(e.mipmask===(i<<1)-1,"missing or incomplete mipmap data")),e.type===H&&(n.extensions.indexOf("oes_texture_float_linear")<0&&o(t.minFilter===L&&t.magFilter===L,"filter not supported, must enable oes_texture_float_linear"),o(!t.genMipmaps,"mipmap generation not supported with float textures"));var l=e.images;for(r=0;r<16;++r)if(l[r]){var u=i>>r,c=a>>r;o(e.mipmask&1<0&&i<=r.maxTextureSize&&a>0&&a<=r.maxTextureSize,"invalid texture shape"),o(i===a,"cube map must be square"),o(e.wrapS===D&&e.wrapT===D,"wrap mode not supported by cube map");for(var l=0;l>h,p=a>>h;o(u.mipmask&1<1&&e===n&&('"'===e||"'"===e))return['"'+lt(t.substr(1,t.length-2))+'"'];var r=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(t);if(r)return ut(t.substr(0,r.index)).concat(ut(r[1])).concat(ut(t.substr(r.index+r[0].length)));var i=t.split(".");if(1===i.length)return['"'+lt(t)+'"'];for(var o=[],a=0;aft(t,e+"["+n+"]"))):t instanceof st?t:void nt(!1,"invalid option type in uniform "+e)}var pt={DynamicVariable:st,define:ht,isDynamic:dt,unbox:ft,accessor:ct},gt={next:"function"===typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:"function"===typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},vt="undefined"!==typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date};function mt(){var t={"":0},e=[""];return{id:function(n){var r=t[n];return r||(r=t[n]=e.length,e.push(n),r)},str:function(t){return e[t]}}}function yt(t,n,r){var i,o=document.createElement("canvas");function a(){var n=window.innerWidth,i=window.innerHeight;if(t!==document.body){var a=t.getBoundingClientRect();n=a.right-a.left,i=a.bottom-a.top}o.width=r*n,o.height=r*i,e(o.style,{width:n+"px",height:i+"px"})}function s(){i?i.disconnect():window.removeEventListener("resize",a),t.removeChild(o)}return e(o.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(o),t===document.body&&(o.style.position="absolute",e(t.style,{margin:0,padding:0})),t!==document.body&&"function"===typeof ResizeObserver?(i=new ResizeObserver(function(){setTimeout(a)})).observe(t):window.addEventListener("resize",a,!1),a(),{canvas:o,onDestroy:s}}function bt(t,e){function n(n){try{return t.getContext(n,e)}catch(r){return null}}return n("webgl")||n("experimental-webgl")||n("webgl-experimental")}function xt(t){return"string"===typeof t.nodeName&&"function"===typeof t.appendChild&&"function"===typeof t.getBoundingClientRect}function wt(t){return"function"===typeof t.drawArrays||"function"===typeof t.drawElements}function St(t){return"string"===typeof t?t.split():(nt(Array.isArray(t),"invalid extension array"),t)}function kt(t){return"string"===typeof t?(nt("undefined"!==typeof document,"not supported outside of DOM"),document.querySelector(t)):t}function Et(t){var e,n,r,i,o=t||{},a={},s=[],l=[],u="undefined"===typeof window?1:window.devicePixelRatio,c=!1,h=function(t){t&&nt.raise(t)},d=function(){};if("string"===typeof o?(nt("undefined"!==typeof document,"selector queries only supported in DOM enviroments"),e=document.querySelector(o),nt(e,"invalid query string for element")):"object"===typeof o?xt(o)?e=o:wt(o)?r=(i=o).canvas:(nt.constructor(o),"gl"in o?i=o.gl:"canvas"in o?r=kt(o.canvas):"container"in o&&(n=kt(o.container)),"attributes"in o&&(a=o.attributes,nt.type(a,"object","invalid context attributes")),"extensions"in o&&(s=St(o.extensions)),"optionalExtensions"in o&&(l=St(o.optionalExtensions)),"onDone"in o&&(nt.type(o.onDone,"function","invalid or missing onDone callback"),h=o.onDone),"profile"in o&&(c=!!o.profile),"pixelRatio"in o&&(u=+o.pixelRatio,nt(u>0,"invalid pixel ratio"))):nt.raise("invalid arguments to regl"),e&&("canvas"===e.nodeName.toLowerCase()?r=e:n=e),!i){if(!r){nt("undefined"!==typeof document,"must manually specify webgl context outside of DOM environments");var f=yt(n||document.body,h,u);if(!f)return null;r=f.canvas,d=f.onDestroy}void 0===a.premultipliedAlpha&&(a.premultipliedAlpha=!0),i=bt(r,a)}return i?{gl:i,canvas:r,container:n,extensions:s,optionalExtensions:l,pixelRatio:u,profile:c,onDone:h,onDestroy:d}:(d(),h("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Mt(t,e){var n={};function r(e){nt.type(e,"string","extension name must be string");var r,i=e.toLowerCase();try{r=n[i]=t.getExtension(i)}catch(o){}return!!r}for(var i=0;i65535)<<4,e|=n=((t>>>=e)>255)<<3,e|=n=((t>>>=n)>15)<<2,(e|=n=((t>>>=n)>3)<<1)|(t>>>=n)>>1}function Rt(){var t=_t(8,function(){return[]});function e(e){var n=Dt(e),r=t[Lt(n)>>2];return r.length>0?r.pop():new ArrayBuffer(n)}function n(e){t[Lt(e.byteLength)>>2].push(e)}function r(t,n){var r=null;switch(t){case Ct:r=new Int8Array(e(n),0,n);break;case At:r=new Uint8Array(e(n),0,n);break;case Ot:r=new Int16Array(e(2*n),0,n);break;case Tt:r=new Uint16Array(e(2*n),0,n);break;case It:r=new Int32Array(e(4*n),0,n);break;case Nt:r=new Uint32Array(e(4*n),0,n);break;case Pt:r=new Float32Array(e(4*n),0,n);break;default:return null}return r.length!==n?r.subarray(0,n):r}function i(t){n(t.buffer)}return{alloc:e,free:n,allocType:r,freeType:i}}var jt=Rt();jt.zero=Rt();var Bt=3408,zt=3410,Ft=3411,Gt=3412,Ut=3413,Wt=3414,Vt=3415,Ht=33901,Yt=33902,Xt=3379,qt=3386,Kt=34921,Qt=36347,Zt=36348,$t=35661,Jt=35660,te=34930,ee=36349,ne=34076,re=34024,ie=7936,oe=7937,ae=7938,se=35724,le=34047,ue=36063,ce=34852,he=3553,de=34067,fe=34069,pe=33984,ge=6408,ve=5126,me=5121,ye=36160,be=36053,xe=36064,we=16384,Se=function(t,e){var n=1;e.ext_texture_filter_anisotropic&&(n=t.getParameter(le));var r=1,i=1;e.webgl_draw_buffers&&(r=t.getParameter(ce),i=t.getParameter(ue));var o=!!e.oes_texture_float;if(o){var a=t.createTexture();t.bindTexture(he,a),t.texImage2D(he,0,ge,1,1,0,ge,ve,null);var s=t.createFramebuffer();if(t.bindFramebuffer(ye,s),t.framebufferTexture2D(ye,xe,he,a,0),t.bindTexture(he,null),t.checkFramebufferStatus(ye)!==be)o=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(we);var l=jt.allocType(ve,4);t.readPixels(0,0,1,1,ge,ve,l),t.getError()?o=!1:(t.deleteFramebuffer(s),t.deleteTexture(a),o=1===l[0]),jt.freeType(l)}}var u=!0;if("undefined"===typeof navigator||!(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))){var c=t.createTexture(),h=jt.allocType(me,36);t.activeTexture(pe),t.bindTexture(de,c),t.texImage2D(fe,0,ge,3,3,0,ge,me,h),jt.freeType(h),t.bindTexture(de,null),t.deleteTexture(c),u=!t.getError()}return{colorBits:[t.getParameter(zt),t.getParameter(Ft),t.getParameter(Gt),t.getParameter(Ut)],depthBits:t.getParameter(Wt),stencilBits:t.getParameter(Vt),subpixelBits:t.getParameter(Bt),extensions:Object.keys(e).filter(function(t){return!!e[t]}),maxAnisotropic:n,maxDrawbuffers:r,maxColorAttachments:i,pointSizeDims:t.getParameter(Ht),lineWidthDims:t.getParameter(Yt),maxViewportDims:t.getParameter(qt),maxCombinedTextureUnits:t.getParameter($t),maxCubeMapSize:t.getParameter(ne),maxRenderbufferSize:t.getParameter(re),maxTextureUnits:t.getParameter(te),maxTextureSize:t.getParameter(Xt),maxAttributes:t.getParameter(Kt),maxVertexUniforms:t.getParameter(Qt),maxVertexTextureUnits:t.getParameter(Jt),maxVaryingVectors:t.getParameter(Zt),maxFragmentUniforms:t.getParameter(ee),glsl:t.getParameter(se),renderer:t.getParameter(oe),vendor:t.getParameter(ie),version:t.getParameter(ae),readFloat:o,npotTextureCube:u}};function ke(e){return!!e&&"object"===typeof e&&Array.isArray(e.shape)&&Array.isArray(e.stride)&&"number"===typeof e.offset&&e.shape.length===e.stride.length&&(Array.isArray(e.data)||t(e.data))}var Ee=function(t){return Object.keys(t).map(function(e){return t[e]})},Me={shape:Ie,flatten:Te};function _e(t,e,n){for(var r=0;r0)if(Array.isArray(n[0])){s=Re(n);for(var u=1,c=1;c0)if("number"===typeof e[0]){var o=jt.allocType(c.dtype,e.length);We(o,e),p(o,i),jt.freeType(o)}else if(Array.isArray(e[0])||t(e[0])){r=Re(e);var a=Le(e,r,c.dtype);p(a,i),jt.freeType(a)}else nt.raise("invalid buffer data")}else if(ke(e)){r=e.shape;var s=e.stride,l=0,u=0,d=0,f=0;1===r.length?(l=r[0],u=1,d=s[0],f=0):2===r.length?(l=r[0],u=r[1],d=s[0],f=s[1]):nt.raise("invalid shape");var g=Array.isArray(e.data)?c.dtype:Ue(e.data),v=jt.allocType(g,l*u);Ve(v,e.data,l,u,d,f,e.offset),p(v,i),jt.freeType(v)}else nt.raise("invalid data for buffer subdata");return h}return a[c.id]=c,l||h(i),h._reglType="buffer",h._buffer=c,h.subdata=g,r.profile&&(h.stats=c.stats),h.destroy=function(){f(c)},h}function g(){Ee(a).forEach(function(t){t.buffer=e.createBuffer(),e.bindBuffer(t.type,t.buffer),e.bufferData(t.type,t.persistentData||t.byteLength,t.usage)})}return r.profile&&(n.getTotalBufferSize=function(){var t=0;return Object.keys(a).forEach(function(e){t+=a[e].stats.size}),t}),{create:p,createStream:u,destroyStream:c,clear:function(){Ee(a).forEach(f),l.forEach(f)},getBuffer:function(t){return t&&t._buffer instanceof s?t._buffer:null},restore:g,_initBuffer:d}}Ge[5120]=1,Ge[5122]=2,Ge[5124]=4,Ge[5121]=1,Ge[5123]=2,Ge[5125]=4,Ge[5126]=4;var Ye={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Xe=0,qe=1,Ke=4,Qe=5120,Ze=5121,$e=5122,Je=5123,tn=5124,en=5125,nn=34963,rn=35040,on=35044;function an(e,n,r,i){var o={},a=0,s={uint8:Ze,uint16:Je};function l(t){this.id=a++,o[this.id]=this,this.buffer=t,this.primType=Ke,this.vertCount=0,this.type=0}n.oes_element_index_uint&&(s.uint32=en),l.prototype.bind=function(){this.buffer.bind()};var u=[];function c(t){var e=u.pop();return e||(e=new l(r.create(null,nn,!0,!1)._buffer)),d(e,t,rn,-1,-1,0,0),e}function h(t){u.push(t)}function d(i,o,a,s,l,u,c){var h;if(i.buffer.bind(),o){var d=c;c||t(o)&&(!ke(o)||t(o.data))||(d=n.oes_element_index_uint?en:Je),r._initBuffer(i.buffer,o,a,d,3)}else e.bufferData(nn,u,a),i.buffer.dtype=h||Ze,i.buffer.usage=a,i.buffer.dimension=3,i.buffer.byteLength=u;if(h=c,!c){switch(i.buffer.dtype){case Ze:case Qe:h=Ze;break;case Je:case $e:h=Je;break;case en:case tn:h=en;break;default:nt.raise("unsupported type for element array")}i.buffer.dtype=h}i.type=h,nt(h!==en||!!n.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var f=l;f<0&&(f=i.buffer.byteLength,h===Je?f>>=1:h===en&&(f>>=2)),i.vertCount=f;var p=s;if(s<0){p=Ke;var g=i.buffer.dimension;1===g&&(p=Xe),2===g&&(p=qe),3===g&&(p=Ke)}i.primType=p}function f(t){i.elementsCount--,nt(null!==t.buffer,"must not double destroy elements"),delete o[t.id],t.buffer.destroy(),t.buffer=null}function p(e,n){var o=r.create(null,nn,!0),a=new l(o._buffer);function u(e){if(e)if("number"===typeof e)o(e),a.primType=Ke,a.vertCount=0|e,a.type=Ze;else{var n=null,r=on,i=-1,l=-1,c=0,h=0;Array.isArray(e)||t(e)||ke(e)?n=e:(nt.type(e,"object","invalid arguments for elements"),"data"in e&&(n=e.data,nt(Array.isArray(n)||t(n)||ke(n),"invalid data for element buffer")),"usage"in e&&(nt.parameter(e.usage,De,"invalid element buffer usage"),r=De[e.usage]),"primitive"in e&&(nt.parameter(e.primitive,Ye,"invalid element buffer primitive"),i=Ye[e.primitive]),"count"in e&&(nt("number"===typeof e.count&&e.count>=0,"invalid vertex count for elements"),l=0|e.count),"type"in e&&(nt.parameter(e.type,s,"invalid buffer type"),h=s[e.type]),"length"in e?c=0|e.length:(c=l,h===Je||h===$e?c*=2:h!==en&&h!==tn||(c*=4))),d(a,n,r,i,l,c,h)}else o(),a.primType=Ke,a.vertCount=0,a.type=Ze;return u}return i.elementsCount++,u(e),u._reglType="elements",u._elements=a,u.subdata=function(t,e){return o.subdata(t,e),u},u.destroy=function(){f(a)},u}return{create:p,createStream:c,destroyStream:h,getElements:function(t){return"function"===typeof t&&t._elements instanceof l?t._elements:null},clear:function(){Ee(o).forEach(f)}}}var sn=new Float32Array(1),ln=new Uint32Array(sn.buffer),un=5123;function cn(t){for(var e=jt.allocType(un,t.length),n=0;n>>31<<15,o=(r<<1>>>24)-127,a=r>>13&1023;if(o<-24)e[n]=i;else if(o<-14){var s=-14-o;e[n]=i+(a+1024>>s)}else e[n]=o>15?i+31744:i+(o+15<<10)+a}return e}function hn(e){return Array.isArray(e)||t(e)}var dn=function(t){return!(t&t-1)&&!!t},fn=34467,pn=3553,gn=34067,vn=34069,mn=6408,yn=6406,bn=6407,xn=6409,wn=6410,Sn=32854,kn=32855,En=36194,Mn=32819,_n=32820,Cn=33635,An=34042,On=6402,Tn=34041,In=35904,Nn=35906,Pn=36193,Dn=33776,Ln=33777,Rn=33778,jn=33779,Bn=35986,zn=35987,Fn=34798,Gn=35840,Un=35841,Wn=35842,Vn=35843,Hn=36196,Yn=5121,Xn=5123,qn=5125,Kn=5126,Qn=10242,Zn=10243,$n=10497,Jn=33071,tr=33648,er=10240,nr=10241,rr=9728,ir=9729,or=9984,ar=9985,sr=9986,lr=9987,ur=33170,cr=4352,hr=4353,dr=4354,fr=34046,pr=3317,gr=37440,vr=37441,mr=37443,yr=37444,br=33984,xr=[or,sr,ar,lr],wr=[0,xn,wn,bn,mn],Sr={};function kr(t){return"[object "+t+"]"}Sr[xn]=Sr[yn]=Sr[On]=1,Sr[Tn]=Sr[wn]=2,Sr[bn]=Sr[In]=3,Sr[mn]=Sr[Nn]=4;var Er=kr("HTMLCanvasElement"),Mr=kr("OffscreenCanvas"),_r=kr("CanvasRenderingContext2D"),Cr=kr("ImageBitmap"),Ar=kr("HTMLImageElement"),Or=kr("HTMLVideoElement"),Tr=Object.keys(Ne).concat([Er,Mr,_r,Cr,Ar,Or]),Ir=[];Ir[Yn]=1,Ir[Kn]=4,Ir[Pn]=2,Ir[Xn]=2,Ir[qn]=4;var Nr=[];function Pr(t){return Array.isArray(t)&&(0===t.length||"number"===typeof t[0])}function Dr(t){return!!Array.isArray(t)&&!(0===t.length||!hn(t[0]))}function Lr(t){return Object.prototype.toString.call(t)}function Rr(t){return Lr(t)===Er}function jr(t){return Lr(t)===Mr}function Br(t){return Lr(t)===_r}function zr(t){return Lr(t)===Cr}function Fr(t){return Lr(t)===Ar}function Gr(t){return Lr(t)===Or}function Ur(t){if(!t)return!1;var e=Lr(t);return Tr.indexOf(e)>=0||Pr(t)||Dr(t)||ke(t)}function Wr(t){return 0|Ne[Object.prototype.toString.call(t)]}function Vr(t,e){var n=e.length;switch(t.type){case Yn:case Xn:case qn:case Kn:var r=jt.allocType(t.type,n);r.set(e),t.data=r;break;case Pn:t.data=cn(e);break;default:nt.raise("unsupported texture type, must specify a typed array")}}function Hr(t,e){return jt.allocType(t.type===Pn?Kn:t.type,e)}function Yr(t,e){t.type===Pn?(t.data=cn(e),jt.freeType(e)):t.data=e}function Xr(t,e,n,r,i,o){for(var a=t.width,s=t.height,l=t.channels,u=Hr(t,a*s*l),c=0,h=0;h=1;)s+=a*l*l,l/=2;return s}return a*n*r}function Kr(n,r,i,o,a,s,l){var u={"don't care":cr,"dont care":cr,nice:dr,fast:hr},c={repeat:$n,clamp:Jn,mirror:tr},h={nearest:rr,linear:ir},d=e({mipmap:lr,"nearest mipmap nearest":or,"linear mipmap nearest":ar,"nearest mipmap linear":sr,"linear mipmap linear":lr},h),f={none:0,browser:yr},p={uint8:Yn,rgba4:Mn,rgb565:Cn,"rgb5 a1":_n},g={alpha:yn,luminance:xn,"luminance alpha":wn,rgb:bn,rgba:mn,rgba4:Sn,"rgb5 a1":kn,rgb565:En},v={};r.ext_srgb&&(g.srgb=In,g.srgba=Nn),r.oes_texture_float&&(p.float32=p.float=Kn),r.oes_texture_half_float&&(p.float16=p["half float"]=Pn),r.webgl_depth_texture&&(e(g,{depth:On,"depth stencil":Tn}),e(p,{uint16:Xn,uint32:qn,"depth stencil":An})),r.webgl_compressed_texture_s3tc&&e(v,{"rgb s3tc dxt1":Dn,"rgba s3tc dxt1":Ln,"rgba s3tc dxt3":Rn,"rgba s3tc dxt5":jn}),r.webgl_compressed_texture_atc&&e(v,{"rgb atc":Bn,"rgba atc explicit alpha":zn,"rgba atc interpolated alpha":Fn}),r.webgl_compressed_texture_pvrtc&&e(v,{"rgb pvrtc 4bppv1":Gn,"rgb pvrtc 2bppv1":Un,"rgba pvrtc 4bppv1":Wn,"rgba pvrtc 2bppv1":Vn}),r.webgl_compressed_texture_etc1&&(v["rgb etc1"]=Hn);var m=Array.prototype.slice.call(n.getParameter(fn));Object.keys(v).forEach(function(t){var e=v[t];m.indexOf(e)>=0&&(g[t]=e)});var y=Object.keys(g);i.textureFormats=y;var b=[];Object.keys(g).forEach(function(t){var e=g[t];b[e]=t});var x=[];Object.keys(p).forEach(function(t){var e=p[t];x[e]=t});var w=[];Object.keys(h).forEach(function(t){var e=h[t];w[e]=t});var S=[];Object.keys(d).forEach(function(t){var e=d[t];S[e]=t});var k=[];Object.keys(c).forEach(function(t){var e=c[t];k[e]=t});var E=y.reduce(function(t,e){var n=g[e];return n===xn||n===yn||n===xn||n===wn||n===On||n===Tn||r.ext_srgb&&(n===In||n===Nn)?t[n]=n:n===kn||e.indexOf("rgba")>=0?t[n]=mn:t[n]=bn,t},{});function M(){this.internalformat=mn,this.format=mn,this.type=Yn,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=yr,this.width=0,this.height=0,this.channels=0}function _(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function C(t,e){if("object"===typeof e&&e){if("premultiplyAlpha"in e&&(nt.type(e.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),t.premultiplyAlpha=e.premultiplyAlpha),"flipY"in e&&(nt.type(e.flipY,"boolean","invalid texture flip"),t.flipY=e.flipY),"alignment"in e&&(nt.oneOf(e.alignment,[1,2,4,8],"invalid texture unpack alignment"),t.unpackAlignment=e.alignment),"colorSpace"in e&&(nt.parameter(e.colorSpace,f,"invalid colorSpace"),t.colorSpace=f[e.colorSpace]),"type"in e){var n=e.type;nt(r.oes_texture_float||!("float"===n||"float32"===n),"you must enable the OES_texture_float extension in order to use floating point textures."),nt(r.oes_texture_half_float||!("half float"===n||"float16"===n),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),nt(r.webgl_depth_texture||!("uint16"===n||"uint32"===n||"depth stencil"===n),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),nt.parameter(n,p,"invalid texture type"),t.type=p[n]}var o=t.width,a=t.height,s=t.channels,l=!1;"shape"in e?(nt(Array.isArray(e.shape)&&e.shape.length>=2,"shape must be an array"),o=e.shape[0],a=e.shape[1],3===e.shape.length&&(s=e.shape[2],nt(s>0&&s<=4,"invalid number of channels"),l=!0),nt(o>=0&&o<=i.maxTextureSize,"invalid width"),nt(a>=0&&a<=i.maxTextureSize,"invalid height")):("radius"in e&&(o=a=e.radius,nt(o>=0&&o<=i.maxTextureSize,"invalid radius")),"width"in e&&(o=e.width,nt(o>=0&&o<=i.maxTextureSize,"invalid width")),"height"in e&&(a=e.height,nt(a>=0&&a<=i.maxTextureSize,"invalid height")),"channels"in e&&(s=e.channels,nt(s>0&&s<=4,"invalid number of channels"),l=!0)),t.width=0|o,t.height=0|a,t.channels=0|s;var u=!1;if("format"in e){var c=e.format;nt(r.webgl_depth_texture||!("depth"===c||"depth stencil"===c),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),nt.parameter(c,g,"invalid texture format");var h=t.internalformat=g[c];t.format=E[h],c in p&&("type"in e||(t.type=p[c])),c in v&&(t.compressed=!0),u=!0}!l&&u?t.channels=Sr[t.format]:l&&!u?t.channels!==wr[t.format]&&(t.format=t.internalformat=wr[t.channels]):u&&l&&nt(t.channels===Sr[t.format],"number of channels inconsistent with specified format")}}function A(t){n.pixelStorei(gr,t.flipY),n.pixelStorei(vr,t.premultiplyAlpha),n.pixelStorei(mr,t.colorSpace),n.pixelStorei(pr,t.unpackAlignment)}function O(){M.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function T(e,n){var r=null;if(Ur(n)?r=n:n&&(nt.type(n,"object","invalid pixel data type"),C(e,n),"x"in n&&(e.xOffset=0|n.x),"y"in n&&(e.yOffset=0|n.y),Ur(n.data)&&(r=n.data)),nt(!e.compressed||r instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),n.copy){nt(!r,"can not specify copy and data field for the same texture");var o=a.viewportWidth,s=a.viewportHeight;e.width=e.width||o-e.xOffset,e.height=e.height||s-e.yOffset,e.needsCopy=!0,nt(e.xOffset>=0&&e.xOffset=0&&e.yOffset0&&e.width<=o&&e.height>0&&e.height<=s,"copy texture read out of bounds")}else if(r){if(t(r))e.channels=e.channels||4,e.data=r,"type"in n||e.type!==Yn||(e.type=Wr(r));else if(Pr(r))e.channels=e.channels||4,Vr(e,r),e.alignment=1,e.needsFree=!0;else if(ke(r)){var l=r.data;Array.isArray(l)||e.type!==Yn||(e.type=Wr(l));var u,c,h,d,f,p,g=r.shape,v=r.stride;3===g.length?(h=g[2],p=v[2]):(nt(2===g.length,"invalid ndarray pixel data, must be 2 or 3D"),h=1,p=1),u=g[0],c=g[1],d=v[0],f=v[1],e.alignment=1,e.width=u,e.height=c,e.channels=h,e.format=e.internalformat=wr[h],e.needsFree=!0,Xr(e,l,d,f,p,r.offset)}else if(Rr(r)||jr(r)||Br(r))Rr(r)||jr(r)?e.element=r:e.element=r.canvas,e.width=e.element.width,e.height=e.element.height,e.channels=4;else if(zr(r))e.element=r,e.width=r.width,e.height=r.height,e.channels=4;else if(Fr(r))e.element=r,e.width=r.naturalWidth,e.height=r.naturalHeight,e.channels=4;else if(Gr(r))e.element=r,e.width=r.videoWidth,e.height=r.videoHeight,e.channels=4;else if(Dr(r)){var m=e.width||r[0].length,y=e.height||r.length,b=e.channels;b=hn(r[0][0])?b||r[0][0].length:b||1;for(var x=Me.shape(r),w=1,S=0;S=0,"oes_texture_float extension not enabled"):e.type===Pn&&nt(i.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function I(t,e,r){var i=t.element,a=t.data,s=t.internalformat,l=t.format,u=t.type,c=t.width,h=t.height;A(t),i?n.texImage2D(e,r,l,l,u,i):t.compressed?n.compressedTexImage2D(e,r,s,c,h,0,a):t.needsCopy?(o(),n.copyTexImage2D(e,r,l,t.xOffset,t.yOffset,c,h,0)):n.texImage2D(e,r,l,c,h,0,l,u,a||null)}function N(t,e,r,i,a){var s=t.element,l=t.data,u=t.internalformat,c=t.format,h=t.type,d=t.width,f=t.height;A(t),s?n.texSubImage2D(e,a,r,i,c,h,s):t.compressed?n.compressedTexSubImage2D(e,a,r,i,u,d,f,l):t.needsCopy?(o(),n.copyTexSubImage2D(e,a,r,i,t.xOffset,t.yOffset,d,f)):n.texSubImage2D(e,a,r,i,d,f,c,h,l)}var P=[];function D(){return P.pop()||new O}function L(t){t.needsFree&&jt.freeType(t.data),O.call(t),P.push(t)}function R(){M.call(this),this.genMipmaps=!1,this.mipmapHint=cr,this.mipmask=0,this.images=Array(16)}function j(t,e,n){var r=t.images[0]=D();t.mipmask=1,r.width=t.width=e,r.height=t.height=n,r.channels=t.channels=4}function B(t,e){var n=null;if(Ur(e))_(n=t.images[0]=D(),t),T(n,e),t.mipmask=1;else if(C(t,e),Array.isArray(e.mipmap))for(var r=e.mipmap,i=0;i>=i,n.height>>=i,T(n,r[i]),t.mipmask|=1<=0&&!("faces"in e)&&(t.genMipmaps=!0)}if("mag"in e){var r=e.mag;nt.parameter(r,h),t.magFilter=h[r]}var o=t.wrapS,a=t.wrapT;if("wrap"in e){var s=e.wrap;"string"===typeof s?(nt.parameter(s,c),o=a=c[s]):Array.isArray(s)&&(nt.parameter(s[0],c),nt.parameter(s[1],c),o=c[s[0]],a=c[s[1]])}else{if("wrapS"in e){var l=e.wrapS;nt.parameter(l,c),o=c[l]}if("wrapT"in e){var f=e.wrapT;nt.parameter(f,c),a=c[f]}}if(t.wrapS=o,t.wrapT=a,"anisotropic"in e){var p=e.anisotropic;nt("number"===typeof p&&p>=1&&p<=i.maxAnisotropic,"aniso samples must be between 1 and "),t.anisotropic=e.anisotropic}if("mipmap"in e){var g=!1;switch(typeof e.mipmap){case"string":nt.parameter(e.mipmap,u,"invalid mipmap hint"),t.mipmapHint=u[e.mipmap],t.genMipmaps=!0,g=!0;break;case"boolean":g=t.genMipmaps=e.mipmap;break;case"object":nt(Array.isArray(e.mipmap),"invalid mipmap type"),t.genMipmaps=!1,g=!0;break;default:nt.raise("invalid mipmap type")}g&&!("min"in e)&&(t.minFilter=or)}}function H(t,e){n.texParameteri(e,nr,t.minFilter),n.texParameteri(e,er,t.magFilter),n.texParameteri(e,Qn,t.wrapS),n.texParameteri(e,Zn,t.wrapT),r.ext_texture_filter_anisotropic&&n.texParameteri(e,fr,t.anisotropic),t.genMipmaps&&(n.hint(ur,t.mipmapHint),n.generateMipmap(e))}var Y=0,X={},q=i.maxTextureUnits,K=Array(q).map(function(){return null});function Q(t){M.call(this),this.mipmask=0,this.internalformat=mn,this.id=Y++,this.refCount=1,this.target=t,this.texture=n.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new W,l.profile&&(this.stats={size:0})}function Z(t){n.activeTexture(br),n.bindTexture(t.target,t.texture)}function $(){var t=K[0];t?n.bindTexture(t.target,t.texture):n.bindTexture(pn,null)}function J(t){var e=t.texture;nt(e,"must not double destroy texture");var r=t.unit,i=t.target;r>=0&&(n.activeTexture(br+r),n.bindTexture(i,null),K[r]=null),n.deleteTexture(e),t.texture=null,t.params=null,t.pixels=null,t.refCount=0,delete X[t.id],s.textureCount--}function tt(t,e){var r=new Q(pn);function o(t,e){var n=r.texInfo;W.call(n);var a=G();return"number"===typeof t?j(a,0|t,"number"===typeof e?0|e:0|t):t?(nt.type(t,"object","invalid arguments to regl.texture"),V(n,t),B(a,t)):j(a,1,1),n.genMipmaps&&(a.mipmask=(a.width<<1)-1),r.mipmask=a.mipmask,_(r,a),nt.texture2D(n,a,i),r.internalformat=a.internalformat,o.width=a.width,o.height=a.height,Z(r),z(a,pn),H(n,pn),$(),U(a),l.profile&&(r.stats.size=qr(r.internalformat,r.type,a.width,a.height,n.genMipmaps,!1)),o.format=b[r.internalformat],o.type=x[r.type],o.mag=w[n.magFilter],o.min=S[n.minFilter],o.wrapS=k[n.wrapS],o.wrapT=k[n.wrapT],o}function a(t,e,n,i){nt(!!t,"must specify image data");var a=0|e,s=0|n,l=0|i,u=D();return _(u,r),u.width=0,u.height=0,T(u,t),u.width=u.width||(r.width>>l)-a,u.height=u.height||(r.height>>l)-s,nt(r.type===u.type&&r.format===u.format&&r.internalformat===u.internalformat,"incompatible format for texture.subimage"),nt(a>=0&&s>=0&&a+u.width<=r.width&&s+u.height<=r.height,"texture.subimage write out of bounds"),nt(r.mipmask&1<>s;++s){var u=i>>s,c=a>>s;if(!u||!c)break;n.texImage2D(pn,s,r.format,u,c,0,r.format,r.type,null)}return $(),l.profile&&(r.stats.size=qr(r.internalformat,r.type,i,a,!1,!1)),o}return X[r.id]=r,s.textureCount++,o(t,e),o.subimage=a,o.resize=u,o._reglType="texture2d",o._texture=r,l.profile&&(o.stats=r.stats),o.destroy=function(){r.decRef()},o}function et(t,e,r,o,a,u){var c=new Q(gn);X[c.id]=c,s.cubeCount++;var h=new Array(6);function d(t,e,n,r,o,a){var s,u=c.texInfo;for(W.call(u),s=0;s<6;++s)h[s]=G();if("number"!==typeof t&&t)if("object"===typeof t)if(e)B(h[0],t),B(h[1],e),B(h[2],n),B(h[3],r),B(h[4],o),B(h[5],a);else if(V(u,t),C(c,t),"faces"in t){var f=t.faces;for(nt(Array.isArray(f)&&6===f.length,"cube faces must be a length 6 array"),s=0;s<6;++s)nt("object"===typeof f[s]&&!!f[s],"invalid input for cube map face"),_(h[s],c),B(h[s],f[s])}else for(s=0;s<6;++s)B(h[s],t);else nt.raise("invalid arguments to cube map");else{var p=0|t||1;for(s=0;s<6;++s)j(h[s],p,p)}for(_(c,h[0]),i.npotTextureCube||nt(dn(c.width)&&dn(c.height),"your browser does not support non power or two texture dimensions"),u.genMipmaps?c.mipmask=(h[0].width<<1)-1:c.mipmask=h[0].mipmask,nt.textureCube(c,u,h,i),c.internalformat=h[0].internalformat,d.width=h[0].width,d.height=h[0].height,Z(c),s=0;s<6;++s)z(h[s],vn+s);for(H(u,gn),$(),l.profile&&(c.stats.size=qr(c.internalformat,c.type,d.width,d.height,u.genMipmaps,!0)),d.format=b[c.internalformat],d.type=x[c.type],d.mag=w[u.magFilter],d.min=S[u.minFilter],d.wrapS=k[u.wrapS],d.wrapT=k[u.wrapT],s=0;s<6;++s)U(h[s]);return d}function f(t,e,n,r,i){nt(!!e,"must specify image data"),nt("number"===typeof t&&t===(0|t)&&t>=0&&t<6,"invalid face");var o=0|n,a=0|r,s=0|i,l=D();return _(l,c),l.width=0,l.height=0,T(l,e),l.width=l.width||(c.width>>s)-o,l.height=l.height||(c.height>>s)-a,nt(c.type===l.type&&c.format===l.format&&c.internalformat===l.internalformat,"incompatible format for texture.subimage"),nt(o>=0&&a>=0&&o+l.width<=c.width&&a+l.height<=c.height,"texture.subimage write out of bounds"),nt(c.mipmask&1<>i;++i)n.texImage2D(vn+r,i,c.format,e>>i,e>>i,0,c.format,c.type,null);return $(),l.profile&&(c.stats.size=qr(c.internalformat,c.type,d.width,d.height,!1,!0)),d}}return d(t,e,r,o,a,u),d.subimage=f,d.resize=p,d._reglType="textureCube",d._texture=c,l.profile&&(d.stats=c.stats),d.destroy=function(){c.decRef()},d}function rt(){for(var t=0;t>e,t.height>>e,0,t.internalformat,t.type,null);else for(var r=0;r<6;++r)n.texImage2D(vn+r,e,t.internalformat,t.width>>e,t.height>>e,0,t.internalformat,t.type,null);H(t.texInfo,t.target)})}function ot(){for(var t=0;t0)continue;i.unit=-1}K[r]=t,e=r;break}e>=q&&nt.raise("insufficient number of texture units"),l.profile&&s.maxTextureUnits=2,"invalid renderbuffer shape"),s=0|f[0],l=0|f[1]}else"radius"in d&&(s=l=0|d.radius),"width"in d&&(s=0|d.width),"height"in d&&(l=0|d.height);"format"in d&&(nt.parameter(d.format,o,"invalid renderbuffer format"),u=o[d.format])}else"number"===typeof e?(s=0|e,l="number"===typeof r?0|r:s):e?nt.raise("invalid arguments to renderbuffer constructor"):s=l=1;if(nt(s>0&&l>0&&s<=n.maxRenderbufferSize&&l<=n.maxRenderbufferSize,"invalid renderbuffer size"),s!==c.width||l!==c.height||u!==c.format)return h.width=c.width=s,h.height=c.height=l,c.format=u,t.bindRenderbuffer(Qr,c.renderbuffer),t.renderbufferStorage(Qr,u,s,l),nt(0===t.getError(),"invalid render buffer format"),i.profile&&(c.stats.size=li(c.format,c.width,c.height)),h.format=a[c.format],h}function d(e,r){var o=0|e,a=0|r||o;return o===c.width&&a===c.height||(nt(o>0&&a>0&&o<=n.maxRenderbufferSize&&a<=n.maxRenderbufferSize,"invalid renderbuffer size"),h.width=c.width=o,h.height=c.height=a,t.bindRenderbuffer(Qr,c.renderbuffer),t.renderbufferStorage(Qr,c.format,o,a),nt(0===t.getError(),"invalid render buffer format"),i.profile&&(c.stats.size=li(c.format,c.width,c.height))),h}return l[c.id]=c,r.renderbufferCount++,h(e,s),h.resize=d,h._reglType="renderbuffer",h._renderbuffer=c,i.profile&&(h.stats=c.stats),h.destroy=function(){c.decRef()},h}function d(){Ee(l).forEach(function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(Qr,e.renderbuffer),t.renderbufferStorage(Qr,e.format,e.width,e.height)}),t.bindRenderbuffer(Qr,null)}return u.prototype.decRef=function(){--this.refCount<=0&&c(this)},i.profile&&(r.getTotalRenderbufferSize=function(){var t=0;return Object.keys(l).forEach(function(e){t+=l[e].stats.size}),t}),{create:h,clear:function(){Ee(l).forEach(c)},restore:d}},ci=36160,hi=36161,di=3553,fi=34069,pi=36064,gi=36096,vi=36128,mi=33306,yi=36053,bi=36054,xi=36055,wi=36057,Si=36061,ki=36193,Ei=5121,Mi=5126,_i=6407,Ci=6408,Ai=6402,Oi=[_i,Ci],Ti=[];Ti[Ci]=4,Ti[_i]=3;var Ii=[];Ii[Ei]=1,Ii[Mi]=4,Ii[ki]=2;var Ni=33189,Pi=36168,Di=34041,Li=[32854,32855,36194,35907,34842,34843,34836],Ri={};function ji(t,n,r,i,o,a){var s={cur:null,next:null,dirty:!1,setFBO:null},l=["rgba"],u=["rgba4","rgb565","rgb5 a1"];n.ext_srgb&&u.push("srgba"),n.ext_color_buffer_half_float&&u.push("rgba16f","rgb16f"),n.webgl_color_buffer_float&&u.push("rgba32f");var c=["uint8"];function h(t,e,n){this.target=t,this.texture=e,this.renderbuffer=n;var r=0,i=0;e?(r=e.width,i=e.height):n&&(r=n.width,i=n.height),this.width=r,this.height=i}function d(t){t&&(t.texture&&t.texture._texture.decRef(),t.renderbuffer&&t.renderbuffer._renderbuffer.decRef())}function f(t,e,n){if(t)if(t.texture){var r=t.texture._texture,i=Math.max(1,r.width),o=Math.max(1,r.height);nt(i===e&&o===n,"inconsistent width/height for supplied texture"),r.refCount+=1}else{var a=t.renderbuffer._renderbuffer;nt(a.width===e&&a.height===n,"inconsistent width/height for renderbuffer"),a.refCount+=1}}function p(e,n){n&&(n.texture?t.framebufferTexture2D(ci,e,n.target,n.texture._texture.texture,0):t.framebufferRenderbuffer(ci,e,hi,n.renderbuffer._renderbuffer.renderbuffer))}function g(t){var e=di,n=null,r=null,i=t;"object"===typeof t&&(i=t.data,"target"in t&&(e=0|t.target)),nt.type(i,"function","invalid attachment data");var o=i._reglType;return"texture2d"===o?(n=i,nt(e===di)):"textureCube"===o?(n=i,nt(e>=fi&&e=2,"invalid shape for framebuffer"),a=I[0],d=I[1]}else"radius"in T&&(a=d=T.radius),"width"in T&&(a=T.width),"height"in T&&(d=T.height);("color"in T||"colors"in T)&&(b=T.color||T.colors,Array.isArray(b)&&nt(1===b.length||n.webgl_draw_buffers,"multiple render targets not supported")),b||("colorCount"in T&&(M=0|T.colorCount,nt(M>0,"invalid color buffer count")),"colorTexture"in T&&(x=!!T.colorTexture,w="rgba4"),"colorType"in T&&(k=T.colorType,x?(nt(n.oes_texture_float||!("float"===k||"float32"===k),"you must enable OES_texture_float in order to use floating point framebuffer objects"),nt(n.oes_texture_half_float||!("half float"===k||"float16"===k),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):"half float"===k||"float16"===k?(nt(n.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),w="rgba16f"):"float"!==k&&"float32"!==k||(nt(n.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),w="rgba32f"),nt.oneOf(k,c,"invalid color type")),"colorFormat"in T&&(w=T.colorFormat,l.indexOf(w)>=0?x=!0:u.indexOf(w)>=0?x=!1:x?nt.oneOf(T.colorFormat,l,"invalid color format for texture"):nt.oneOf(T.colorFormat,u,"invalid color format for renderbuffer"))),("depthTexture"in T||"depthStencilTexture"in T)&&(O=!(!T.depthTexture&&!T.depthStencilTexture),nt(!O||n.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in T&&("boolean"===typeof T.depth?p=T.depth:(_=T.depth,y=!1)),"stencil"in T&&("boolean"===typeof T.stencil?y=T.stencil:(C=T.stencil,p=!1)),"depthStencil"in T&&("boolean"===typeof T.depthStencil?p=y=T.depthStencil:(A=T.depthStencil,p=!1,y=!1))}else a=d=1;var N=null,P=null,D=null,L=null;if(Array.isArray(b))N=b.map(g);else if(b)N=[g(b)];else for(N=new Array(M),i=0;i=0||N[i].renderbuffer&&Li.indexOf(N[i].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+i+" is invalid"),N[i]&&N[i].texture){var j=Ti[N[i].texture._texture.format]*Ii[N[i].texture._texture.type];null===R?R=j:nt(R===j,"all color attachments much have the same number of bits per pixel.")}return f(P,a,d),nt(!P||P.texture&&P.texture._texture.format===Ai||P.renderbuffer&&P.renderbuffer._renderbuffer.format===Ni,"invalid depth attachment for framebuffer object"),f(D,a,d),nt(!D||D.renderbuffer&&D.renderbuffer._renderbuffer.format===Pi,"invalid stencil attachment for framebuffer object"),f(L,a,d),nt(!L||L.texture&&L.texture._texture.format===Di||L.renderbuffer&&L.renderbuffer._renderbuffer.format===Di,"invalid depth-stencil attachment for framebuffer object"),S(o),o.width=a,o.height=d,o.colorAttachments=N,o.depthAttachment=P,o.stencilAttachment=D,o.depthStencilAttachment=L,h.color=N.map(m),h.depth=m(P),h.stencil=m(D),h.depthStencil=m(L),h.width=o.width,h.height=o.height,E(o),h}function d(t,e){nt(s.next!==o,"can not resize a framebuffer which is currently in use");var n=Math.max(0|t,1),r=Math.max(0|e||n,1);if(n===o.width&&r===o.height)return h;for(var i=o.colorAttachments,a=0;a=2,"invalid shape for framebuffer"),nt(y[0]===y[1],"cube framebuffer must be square"),d=y[0]}else"radius"in m&&(d=0|m.radius),"width"in m?(d=0|m.width,"height"in m&&nt(m.height===d,"must be square")):"height"in m&&(d=0|m.height);("color"in m||"colors"in m)&&(f=m.color||m.colors,Array.isArray(f)&&nt(1===f.length||n.webgl_draw_buffers,"multiple render targets not supported")),f||("colorCount"in m&&(v=0|m.colorCount,nt(v>0,"invalid color buffer count")),"colorType"in m&&(nt.oneOf(m.colorType,c,"invalid color type"),g=m.colorType),"colorFormat"in m&&(p=m.colorFormat,nt.oneOf(m.colorFormat,l,"invalid color format for texture"))),"depth"in m&&(h.depth=m.depth),"stencil"in m&&(h.stencil=m.stencil),"depthStencil"in m&&(h.depthStencil=m.depthStencil)}else d=1;if(f)if(Array.isArray(f))for(u=[],r=0;r0&&(h.depth=o[0].depth,h.stencil=o[0].stencil,h.depthStencil=o[0].depthStencil),o[r]?o[r](h):o[r]=M(h)}return e(a,{width:d,height:d,color:u})}function u(t){var e,n=0|t;if(nt(n>0&&n<=r.maxCubeMapSize,"invalid radius for cube fbo"),n===a.width)return a;var i=a.color;for(e=0;e0,"must specify at least one attribute");var i={},l=r.attributes;l.length=e.length;for(var u=0;u=f.byteLength?c.subdata(f):(c.destroy(),r.buffers[u]=null)),r.buffers[u]||(c=r.buffers[u]=o.create(h,zi,!1,!0)),d.buffer=o.getBuffer(c),d.size=0|d.buffer.dimension,d.normalized=!1,d.type=d.buffer.dtype,d.offset=0,d.stride=0,d.divisor=0,d.state=1,i[u]=1):o.getBuffer(h)?(d.buffer=o.getBuffer(h),d.size=0|d.buffer.dimension,d.normalized=!1,d.type=d.buffer.dtype,d.offset=0,d.stride=0,d.divisor=0,d.state=1):o.getBuffer(h.buffer)?(d.buffer=o.getBuffer(h.buffer),d.size=0|(+h.size||d.buffer.dimension),d.normalized=!!h.normalized||!1,"type"in h?(nt.parameter(h.type,Pe,"invalid buffer type"),d.type=Pe[h.type]):d.type=d.buffer.dtype,d.offset=0|(h.offset||0),d.stride=0|(h.stride||0),d.divisor=0|(h.divisor||0),d.state=1,nt(d.size>=1&&d.size<=4,"size must be between 1 and 4"),nt(d.offset>=0,"invalid offset"),nt(d.stride>=0&&d.stride<=255,"stride must be between 0 and 255"),nt(d.divisor>=0,"divisor must be positive"),nt(!d.divisor||!!n.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in h?(nt(u>0,"first attribute must not be a constant"),d.x=+h.x||0,d.y=+h.y||0,d.z=+h.z||0,d.w=+h.w||0,d.state=2):nt(!1,"invalid attribute spec for location "+u)}for(var p=0;p1)for(var m=0;mt&&(t=e.stats.uniformsCount)}),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach(function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount)}),t}),{clear:function(){var e=t.deleteShader.bind(t);Ee(o).forEach(e),o={},Ee(a).forEach(e),a={},h.forEach(function(e){t.deleteProgram(e.program)}),h.length=0,c={},r.shaderCount=0},program:function(n,i,s,l){nt.command(n>=0,"missing vertex shader",s),nt.command(i>=0,"missing fragment shader",s);var u=c[i];u||(u=c[i]={});var d=u[n];if(d&&(d.refCount++,!l))return d;var g=new f(i,n);return r.shaderCount++,p(g,s,l),d||(u[n]=g),h.push(g),e(g,{destroy:function(){if(g.refCount--,g.refCount<=0){t.deleteProgram(g.program);var e=h.indexOf(g);h.splice(e,1),r.shaderCount--}u[g.vertId].refCount<=0&&(t.deleteShader(a[g.vertId]),delete a[g.vertId],delete c[g.fragId][g.vertId]),Object.keys(c[g.fragId]).length||(t.deleteShader(o[g.fragId]),delete o[g.fragId],delete c[g.fragId])}})},restore:g,shader:u,frag:-1,vert:-1}}var Xi=6408,qi=5121,Ki=3333,Qi=5126;function Zi(e,n,r,i,o,a,s){function l(l){var u;null===n.next?(nt(o.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),u=qi):(nt(null!==n.next.colorAttachments[0].texture,"You cannot read from a renderbuffer"),u=n.next.colorAttachments[0].texture._texture.type,a.oes_texture_float?(nt(u===qi||u===Qi,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),u===Qi&&nt(s.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):nt(u===qi,"Reading from a framebuffer is only allowed for the type 'uint8'"));var c=0,h=0,d=i.framebufferWidth,f=i.framebufferHeight,p=null;t(l)?p=l:l&&(nt.type(l,"object","invalid arguments to regl.read()"),c=0|l.x,h=0|l.y,nt(c>=0&&c=0&&h0&&d+c<=i.framebufferWidth,"invalid width for read pixels"),nt(f>0&&f+h<=i.framebufferHeight,"invalid height for read pixels"),r();var g=d*f*4;return p||(u===qi?p=new Uint8Array(g):u===Qi&&(p=p||new Float32Array(g))),nt.isTypedArray(p,"data buffer for regl.read() must be a typedarray"),nt(p.byteLength>=g,"data buffer for regl.read() too small"),e.pixelStorei(Ki,4),e.readPixels(c,h,d,f,Xi,u,p),p}function u(t){var e;return n.setFBO({framebuffer:t.framebuffer},function(){e=l(t)}),e}function c(t){return t&&"framebuffer"in t?u(t):l(t)}return c}function $i(t){return Array.prototype.slice.call(t)}function Ji(t){return $i(t).join("")}function to(){var t=0,n=[],r=[];function i(e){for(var i=0;i0&&(n.push(e,"="),n.push.apply(n,$i(arguments)),n.push(";")),e}return e(r,{def:o,toString:function(){return Ji([i.length>0?"var "+i.join(",")+";":"",Ji(n)])}})}function a(){var t=o(),n=o(),r=t.toString,i=n.toString;function a(e,r){n(e,r,"=",t.def(e,r),";")}return e(function(){t.apply(t,$i(arguments))},{def:t.def,entry:t,exit:n,save:a,set:function(e,n,r){a(e,n),t(e,n,"=",r,";")},toString:function(){return r()+i()}})}function s(){var t=Ji(arguments),n=a(),r=a(),i=n.toString,o=r.toString;return e(n,{then:function(){return n.apply(n,$i(arguments)),this},else:function(){return r.apply(r,$i(arguments)),this},toString:function(){var e=o();return e&&(e="else{"+e+"}"),Ji(["if(",t,"){",i(),"}",e])}})}var l=o(),u={};function c(t,n){var r=[];function i(){var t="a"+r.length;return r.push(t),t}n=n||0;for(var o=0;o":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ts={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},es={frag:35632,vert:35633},ns={cw:za,ccw:Fa};function rs(e){return Array.isArray(e)||t(e)||ke(e)}function is(t){return t.sort(function(t,e){return t===zo?-1:e===zo?1:t=1,r>=2,e)}if(n===uo){var i=t.data;return new os(i.thisDep,i.contextDep,i.propDep,e)}if(n===co)return new os(!1,!1,!1,e);if(n===ho){for(var o=!1,a=!1,s=!1,l=0;l=1&&(a=!0),c>=2&&(s=!0)}else u.type===uo&&(o=o||u.data.thisDep,a=a||u.data.contextDep,s=s||u.data.propDep)}return new os(o,a,s,e)}return new os(n===lo,n===so,n===ao,e)}var us=new os(!1,!1,!1,function(){});function cs(t,n,r,i,o,a,s,l,u,c,h,d,f,p,g){var v=c.Record,m={add:32774,subtract:32778,"reverse subtract":32779};r.ext_blend_minmax&&(m.min=Ga,m.max=Ua);var y=r.angle_instanced_arrays,b=r.webgl_draw_buffers,x={dirty:!0,profile:g.profile},w={},S=[],k={},E={};function M(t){return t.replace(".","_")}function _(t,e,n){var r=M(t);S.push(t),w[r]=x[r]=!!n,k[r]=e}function C(t,e,n){var r=M(t);S.push(t),Array.isArray(n)?(x[r]=n.slice(),w[r]=n.slice()):x[r]=w[r]=n,E[r]=e}_(fo,da),_(po,ha),C(go,"blendColor",[0,0,0,0]),C(vo,"blendEquationSeparate",[Xa,Xa]),C(mo,"blendFuncSeparate",[Ya,Ha,Ya,Ha]),_(yo,pa,!0),C(bo,"depthFunc",qa),C(xo,"depthRange",[0,1]),C(wo,"depthMask",!0),C(So,So,[!0,!0,!0,!0]),_(ko,ca),C(Eo,"cullFace",Ba),C(Mo,Mo,Fa),C(_o,_o,1),_(Co,va),C(Ao,"polygonOffset",[0,0]),_(Oo,ma),_(To,ya),C(Io,"sampleCoverage",[1,!1]),_(No,fa),C(Po,"stencilMask",-1),C(Do,"stencilFunc",[Wa,0,-1]),C(Lo,"stencilOpSeparate",[ja,Va,Va,Va]),C(Ro,"stencilOpSeparate",[Ba,Va,Va,Va]),_(jo,ga),C(Bo,"scissor",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),C(zo,zo,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var A={gl:t,context:f,strings:n,next:w,current:x,draw:d,elements:a,buffer:o,shader:h,attributes:c.state,vao:c,uniforms:u,framebuffer:l,extensions:r,timer:p,isBufferArgs:rs},O={primTypes:Ye,compareFuncs:Ja,blendFuncs:Za,blendEquations:m,stencilOps:ts,glTypes:Pe,orientationType:ns};nt.optional(function(){A.isArrayLike=hn}),b&&(O.backBuffer=[Ba],O.drawBuffer=_t(i.maxDrawbuffers,function(t){return 0===t?[0]:_t(t,function(t){return Qa+t})}));var T=0;function I(){var t=to(),e=t.link,r=t.global;t.id=T++,t.batchId="0";var i=e(A),o=t.shared={props:"a0"};Object.keys(A).forEach(function(t){o[t]=r.def(i,".",t)}),nt.optional(function(){t.CHECK=e(nt),t.commandStr=nt.guessCommand(),t.command=e(t.commandStr),t.assert=function(t,n,r){t("if(!(",n,"))",this.CHECK,".commandRaise(",e(r),",",this.command,");")},O.invalidBlendCombinations=$a});var a=t.next={},s=t.current={};Object.keys(E).forEach(function(t){Array.isArray(x[t])&&(a[t]=r.def(o.next,".",t),s[t]=r.def(o.current,".",t))});var l=t.constants={};Object.keys(O).forEach(function(t){l[t]=r.def(JSON.stringify(O[t]))}),t.invoke=function(n,r){switch(r.type){case oo:var i=["this",o.context,o.props,t.batchId];return n.def(e(r.data),".call(",i.slice(0,Math.max(r.data.length+1,4)),")");case ao:return n.def(o.props,r.data);case so:return n.def(o.context,r.data);case lo:return n.def("this",r.data);case uo:return r.data.append(t,n),r.data.ref;case co:return r.data.toString();case ho:return r.data.map(function(e){return t.invoke(n,e)})}},t.attribCache={};var u={};return t.scopeAttrib=function(t){var r=n.id(t);if(r in u)return u[r];var i=c.scope[r];return i||(i=c.scope[r]=new v),u[r]=e(i)},t}function N(t){var e,n=t.static,r=t.dynamic;if(Fo in n){var i=!!n[Fo];(e=ss(function(t,e){return i})).enable=i}else if(Fo in r){var o=r[Fo];e=ls(o,function(t,e){return t.invoke(e,o)})}return e}function P(t,e){var n=t.static,r=t.dynamic;if(Go in n){var i=n[Go];return i?(i=l.getFramebuffer(i),nt.command(i,"invalid framebuffer object"),ss(function(t,e){var n=t.link(i),r=t.shared;e.set(r.framebuffer,".next",n);var o=r.context;return e.set(o,"."+$o,n+".width"),e.set(o,"."+Jo,n+".height"),n})):ss(function(t,e){var n=t.shared;e.set(n.framebuffer,".next","null");var r=n.context;return e.set(r,"."+$o,r+"."+ra),e.set(r,"."+Jo,r+"."+ia),"null"})}if(Go in r){var o=r[Go];return ls(o,function(t,e){var n=t.invoke(e,o),r=t.shared,i=r.framebuffer,a=e.def(i,".getFramebuffer(",n,")");nt.optional(function(){t.assert(e,"!"+n+"||"+a,"invalid framebuffer object")}),e.set(i,".next",a);var s=r.context;return e.set(s,"."+$o,a+"?"+a+".width:"+s+"."+ra),e.set(s,"."+Jo,a+"?"+a+".height:"+s+"."+ia),a})}return null}function D(t,e,n){var r=t.static,i=t.dynamic;function o(t){if(t in r){var o=r[t];nt.commandType(o,"object","invalid "+t,n.commandStr);var a,s,l=!0,u=0|o.x,c=0|o.y;return"width"in o?(a=0|o.width,nt.command(a>=0,"invalid "+t,n.commandStr)):l=!1,"height"in o?(s=0|o.height,nt.command(s>=0,"invalid "+t,n.commandStr)):l=!1,new os(!l&&e&&e.thisDep,!l&&e&&e.contextDep,!l&&e&&e.propDep,function(t,e){var n=t.shared.context,r=a;"width"in o||(r=e.def(n,".",$o,"-",u));var i=s;return"height"in o||(i=e.def(n,".",Jo,"-",c)),[u,c,r,i]})}if(t in i){var h=i[t],d=ls(h,function(e,n){var r=e.invoke(n,h);nt.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t)});var i=e.shared.context,o=n.def(r,".x|0"),a=n.def(r,".y|0"),s=n.def('"width" in ',r,"?",r,".width|0:","(",i,".",$o,"-",o,")"),l=n.def('"height" in ',r,"?",r,".height|0:","(",i,".",Jo,"-",a,")");return nt.optional(function(){e.assert(n,s+">=0&&"+l+">=0","invalid "+t)}),[o,a,s,l]});return e&&(d.thisDep=d.thisDep||e.thisDep,d.contextDep=d.contextDep||e.contextDep,d.propDep=d.propDep||e.propDep),d}return e?new os(e.thisDep,e.contextDep,e.propDep,function(t,e){var n=t.shared.context;return[0,0,e.def(n,".",$o),e.def(n,".",Jo)]}):null}var a=o(zo);if(a){var s=a;a=new os(a.thisDep,a.contextDep,a.propDep,function(t,e){var n=s.append(t,e),r=t.shared.context;return e.set(r,"."+ta,n[2]),e.set(r,"."+ea,n[3]),n})}return{viewport:a,scissor_box:o(Bo)}}function L(t,e){var n=t.static;if("string"===typeof n[Wo]&&"string"===typeof n[Uo]){if(Object.keys(e.dynamic).length>0)return null;var r=e.static,i=Object.keys(r);if(i.length>0&&"number"===typeof r[i[0]]){for(var o=[],a=0;a=0,"invalid "+t,e.commandStr),ss(function(t,e){return i&&(t.OFFSET=a),a})}if(t in r){var s=r[t];return ls(s,function(e,n){var r=e.invoke(n,s);return i&&(e.OFFSET=r,nt.optional(function(){e.assert(n,r+">=0","invalid "+t)})),r})}return i&&o?ss(function(t,e){return t.OFFSET="0",0}):null}var u=l(Xo,!0);function c(){if(Yo in n){var t=0|n[Yo];return nt.command("number"===typeof t&&t>=0,"invalid vertex count",e.commandStr),ss(function(){return t})}if(Yo in r){var i=r[Yo];return ls(i,function(t,e){var n=t.invoke(e,i);return nt.optional(function(){t.assert(e,"typeof "+n+'==="number"&&'+n+">=0&&"+n+"===("+n+"|0)","invalid vertex count")}),n})}if(o){if(as(o)){if(o)return u?new os(u.thisDep,u.contextDep,u.propDep,function(t,e){var n=e.def(t.ELEMENTS,".vertCount-",t.OFFSET);return nt.optional(function(){t.assert(e,n+">=0","invalid vertex offset/element buffer too small")}),n}):ss(function(t,e){return e.def(t.ELEMENTS,".vertCount")});var a=ss(function(){return-1});return nt.optional(function(){a.MISSING=!0}),a}var s=new os(o.thisDep||u.thisDep,o.contextDep||u.contextDep,o.propDep||u.propDep,function(t,e){var n=t.ELEMENTS;return t.OFFSET?e.def(n,"?",n,".vertCount-",t.OFFSET,":-1"):e.def(n,"?",n,".vertCount:-1")});return nt.optional(function(){s.DYNAMIC=!0}),s}return null}return{elements:o,primitive:s(),count:c(),instances:l(qo,!1),offset:u}}function B(t,e){var n=t.static,r=t.dynamic,o={};return S.forEach(function(t){var a=M(t);function s(e,i){if(t in n){var s=e(n[t]);o[a]=ss(function(){return s})}else if(t in r){var l=r[t];o[a]=ls(l,function(t,e){return i(t,e,t.invoke(e,l))})}}switch(t){case ko:case po:case fo:case No:case yo:case jo:case Co:case Oo:case To:case wo:return s(function(n){return nt.commandType(n,"boolean",t,e.commandStr),n},function(e,n,r){return nt.optional(function(){e.assert(n,"typeof "+r+'==="boolean"',"invalid flag "+t,e.commandStr)}),r});case bo:return s(function(n){return nt.commandParameter(n,Ja,"invalid "+t,e.commandStr),Ja[n]},function(e,n,r){var i=e.constants.compareFuncs;return nt.optional(function(){e.assert(n,r+" in "+i,"invalid "+t+", must be one of "+Object.keys(Ja))}),n.def(i,"[",r,"]")});case xo:return s(function(t){return nt.command(hn(t)&&2===t.length&&"number"===typeof t[0]&&"number"===typeof t[1]&&t[0]<=t[1],"depth range is 2d array",e.commandStr),t},function(t,e,n){return nt.optional(function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===2&&typeof "+n+'[0]==="number"&&typeof '+n+'[1]==="number"&&'+n+"[0]<="+n+"[1]","depth range must be a 2d array")}),[e.def("+",n,"[0]"),e.def("+",n,"[1]")]});case mo:return s(function(t){nt.commandType(t,"object","blend.func",e.commandStr);var n="srcRGB"in t?t.srcRGB:t.src,r="srcAlpha"in t?t.srcAlpha:t.src,i="dstRGB"in t?t.dstRGB:t.dst,o="dstAlpha"in t?t.dstAlpha:t.dst;return nt.commandParameter(n,Za,a+".srcRGB",e.commandStr),nt.commandParameter(r,Za,a+".srcAlpha",e.commandStr),nt.commandParameter(i,Za,a+".dstRGB",e.commandStr),nt.commandParameter(o,Za,a+".dstAlpha",e.commandStr),nt.command(-1===$a.indexOf(n+", "+i),"unallowed blending combination (srcRGB, dstRGB) = ("+n+", "+i+")",e.commandStr),[Za[n],Za[i],Za[r],Za[o]]},function(e,n,r){var i=e.constants.blendFuncs;function o(o,a){var s=n.def('"',o,a,'" in ',r,"?",r,".",o,a,":",r,".",o);return nt.optional(function(){e.assert(n,s+" in "+i,"invalid "+t+"."+o+a+", must be one of "+Object.keys(Za))}),s}nt.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid blend func, must be an object")});var a=o("src","RGB"),s=o("dst","RGB");nt.optional(function(){var t=e.constants.invalidBlendCombinations;e.assert(n,t+".indexOf("+a+'+", "+'+s+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var l=n.def(i,"[",a,"]"),u=n.def(i,"[",o("src","Alpha"),"]");return[l,n.def(i,"[",s,"]"),u,n.def(i,"[",o("dst","Alpha"),"]")]});case vo:return s(function(n){return"string"===typeof n?(nt.commandParameter(n,m,"invalid "+t,e.commandStr),[m[n],m[n]]):"object"===typeof n?(nt.commandParameter(n.rgb,m,t+".rgb",e.commandStr),nt.commandParameter(n.alpha,m,t+".alpha",e.commandStr),[m[n.rgb],m[n.alpha]]):void nt.commandRaise("invalid blend.equation",e.commandStr)},function(e,n,r){var i=e.constants.blendEquations,o=n.def(),a=n.def(),s=e.cond("typeof ",r,'==="string"');return nt.optional(function(){function n(t,n,r){e.assert(t,r+" in "+i,"invalid "+n+", must be one of "+Object.keys(m))}n(s.then,t,r),e.assert(s.else,r+"&&typeof "+r+'==="object"',"invalid "+t),n(s.else,t+".rgb",r+".rgb"),n(s.else,t+".alpha",r+".alpha")}),s.then(o,"=",a,"=",i,"[",r,"];"),s.else(o,"=",i,"[",r,".rgb];",a,"=",i,"[",r,".alpha];"),n(s),[o,a]});case go:return s(function(t){return nt.command(hn(t)&&4===t.length,"blend.color must be a 4d array",e.commandStr),_t(4,function(e){return+t[e]})},function(t,e,n){return nt.optional(function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===4","blend.color must be a 4d array")}),_t(4,function(t){return e.def("+",n,"[",t,"]")})});case Po:return s(function(t){return nt.commandType(t,"number",a,e.commandStr),0|t},function(t,e,n){return nt.optional(function(){t.assert(e,"typeof "+n+'==="number"',"invalid stencil.mask")}),e.def(n,"|0")});case Do:return s(function(n){nt.commandType(n,"object",a,e.commandStr);var r=n.cmp||"keep",i=n.ref||0,o="mask"in n?n.mask:-1;return nt.commandParameter(r,Ja,t+".cmp",e.commandStr),nt.commandType(i,"number",t+".ref",e.commandStr),nt.commandType(o,"number",t+".mask",e.commandStr),[Ja[r],i,o]},function(t,e,n){var r=t.constants.compareFuncs;return nt.optional(function(){function i(){t.assert(e,Array.prototype.join.call(arguments,""),"invalid stencil.func")}i(n+"&&typeof ",n,'==="object"'),i('!("cmp" in ',n,")||(",n,".cmp in ",r,")")}),[e.def('"cmp" in ',n,"?",r,"[",n,".cmp]",":",Va),e.def(n,".ref|0"),e.def('"mask" in ',n,"?",n,".mask|0:-1")]});case Lo:case Ro:return s(function(n){nt.commandType(n,"object",a,e.commandStr);var r=n.fail||"keep",i=n.zfail||"keep",o=n.zpass||"keep";return nt.commandParameter(r,ts,t+".fail",e.commandStr),nt.commandParameter(i,ts,t+".zfail",e.commandStr),nt.commandParameter(o,ts,t+".zpass",e.commandStr),[t===Ro?Ba:ja,ts[r],ts[i],ts[o]]},function(e,n,r){var i=e.constants.stencilOps;function o(o){return nt.optional(function(){e.assert(n,'!("'+o+'" in '+r+")||("+r+"."+o+" in "+i+")","invalid "+t+"."+o+", must be one of "+Object.keys(ts))}),n.def('"',o,'" in ',r,"?",i,"[",r,".",o,"]:",Va)}return nt.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t)}),[t===Ro?Ba:ja,o("fail"),o("zfail"),o("zpass")]});case Ao:return s(function(t){nt.commandType(t,"object",a,e.commandStr);var n=0|t.factor,r=0|t.units;return nt.commandType(n,"number",a+".factor",e.commandStr),nt.commandType(r,"number",a+".units",e.commandStr),[n,r]},function(e,n,r){return nt.optional(function(){e.assert(n,r+"&&typeof "+r+'==="object"',"invalid "+t)}),[n.def(r,".factor|0"),n.def(r,".units|0")]});case Eo:return s(function(t){var n=0;return"front"===t?n=ja:"back"===t&&(n=Ba),nt.command(!!n,a,e.commandStr),n},function(t,e,n){return nt.optional(function(){t.assert(e,n+'==="front"||'+n+'==="back"',"invalid cull.face")}),e.def(n,'==="front"?',ja,":",Ba)});case _o:return s(function(t){return nt.command("number"===typeof t&&t>=i.lineWidthDims[0]&&t<=i.lineWidthDims[1],"invalid line width, must be a positive number between "+i.lineWidthDims[0]+" and "+i.lineWidthDims[1],e.commandStr),t},function(t,e,n){return nt.optional(function(){t.assert(e,"typeof "+n+'==="number"&&'+n+">="+i.lineWidthDims[0]+"&&"+n+"<="+i.lineWidthDims[1],"invalid line width")}),n});case Mo:return s(function(t){return nt.commandParameter(t,ns,a,e.commandStr),ns[t]},function(t,e,n){return nt.optional(function(){t.assert(e,n+'==="cw"||'+n+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),e.def(n+'==="cw"?'+za+":"+Fa)});case So:return s(function(t){return nt.command(hn(t)&&4===t.length,"color.mask must be length 4 array",e.commandStr),t.map(function(t){return!!t})},function(t,e,n){return nt.optional(function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===4","invalid color.mask")}),_t(4,function(t){return"!!"+n+"["+t+"]"})});case Io:return s(function(t){nt.command("object"===typeof t&&t,a,e.commandStr);var n="value"in t?t.value:1,r=!!t.invert;return nt.command("number"===typeof n&&n>=0&&n<=1,"sample.coverage.value must be a number between 0 and 1",e.commandStr),[n,r]},function(t,e,n){return nt.optional(function(){t.assert(e,n+"&&typeof "+n+'==="object"',"invalid sample.coverage")}),[e.def('"value" in ',n,"?+",n,".value:1"),e.def("!!",n,".invert")]})}}),o}function z(t,e){var n=t.static,r=t.dynamic,i={};return Object.keys(n).forEach(function(t){var r,o=n[t];if("number"===typeof o||"boolean"===typeof o)r=ss(function(){return o});else if("function"===typeof o){var a=o._reglType;"texture2d"===a||"textureCube"===a?r=ss(function(t){return t.link(o)}):"framebuffer"===a||"framebufferCube"===a?(nt.command(o.color.length>0,'missing color attachment for framebuffer sent to uniform "'+t+'"',e.commandStr),r=ss(function(t){return t.link(o.color[0])})):nt.commandRaise('invalid data for uniform "'+t+'"',e.commandStr)}else hn(o)?r=ss(function(e){return e.global.def("[",_t(o.length,function(n){return nt.command("number"===typeof o[n]||"boolean"===typeof o[n],"invalid uniform "+t,e.commandStr),o[n]}),"]")}):nt.commandRaise('invalid or missing data for uniform "'+t+'"',e.commandStr);r.value=o,i[t]=r}),Object.keys(r).forEach(function(t){var e=r[t];i[t]=ls(e,function(t,n){return t.invoke(n,e)})}),i}function F(t,e){var r=t.static,i=t.dynamic,a={};return Object.keys(r).forEach(function(t){var i=r[t],s=n.id(t),l=new v;if(rs(i))l.state=ro,l.buffer=o.getBuffer(o.create(i,aa,!1,!0)),l.type=0;else{var u=o.getBuffer(i);if(u)l.state=ro,l.buffer=u,l.type=0;else if(nt.command("object"===typeof i&&i,"invalid data for attribute "+t,e.commandStr),"constant"in i){var c=i.constant;l.buffer="null",l.state=io,"number"===typeof c?l.x=c:(nt.command(hn(c)&&c.length>0&&c.length<=4,"invalid constant for attribute "+t,e.commandStr),eo.forEach(function(t,e){e=0,'invalid offset for attribute "'+t+'"',e.commandStr);var d=0|i.stride;nt.command(d>=0&&d<256,'invalid stride for attribute "'+t+'", must be integer betweeen [0, 255]',e.commandStr);var f=0|i.size;nt.command(!("size"in i)||f>0&&f<=4,'invalid size for attribute "'+t+'", must be 1,2,3,4',e.commandStr);var p=!!i.normalized,g=0;"type"in i&&(nt.commandParameter(i.type,Pe,"invalid type for attribute "+t,e.commandStr),g=Pe[i.type]);var m=0|i.divisor;"divisor"in i&&(nt.command(0===m||y,'cannot specify divisor for attribute "'+t+'", instancing not supported',e.commandStr),nt.command(m>=0,'invalid divisor for attribute "'+t+'"',e.commandStr)),nt.optional(function(){var n=e.commandStr,r=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(i).forEach(function(e){nt.command(r.indexOf(e)>=0,'unknown parameter "'+e+'" for attribute pointer "'+t+'" (valid parameters are '+r+")",n)})}),l.buffer=u,l.state=ro,l.size=f,l.normalized=p,l.type=g||u.dtype,l.offset=h,l.stride=d,l.divisor=m}}a[t]=ss(function(t,e){var n=t.attribCache;if(s in n)return n[s];var r={isStream:!1};return Object.keys(l).forEach(function(t){r[t]=l[t]}),l.buffer&&(r.buffer=t.link(l.buffer),r.type=r.type||r.buffer+".dtype"),n[s]=r,r})}),Object.keys(i).forEach(function(t){var e=i[t];function n(n,r){var i=n.invoke(r,e),o=n.shared,a=n.constants,s=o.isBufferArgs,l=o.buffer;nt.optional(function(){n.assert(r,i+"&&(typeof "+i+'==="object"||typeof '+i+'==="function")&&('+s+"("+i+")||"+l+".getBuffer("+i+")||"+l+".getBuffer("+i+".buffer)||"+s+"("+i+'.buffer)||("constant" in '+i+"&&(typeof "+i+'.constant==="number"||'+o.isArrayLike+"("+i+".constant))))",'invalid dynamic attribute "'+t+'"')});var u={isStream:r.def(!1)},c=new v;c.state=ro,Object.keys(c).forEach(function(t){u[t]=r.def(""+c[t])});var h=u.buffer,d=u.type;function f(t){r(u[t],"=",i,".",t,"|0;")}return r("if(",s,"(",i,")){",u.isStream,"=true;",h,"=",l,".createStream(",aa,",",i,");",d,"=",h,".dtype;","}else{",h,"=",l,".getBuffer(",i,");","if(",h,"){",d,"=",h,".dtype;",'}else if("constant" in ',i,"){",u.state,"=",io,";","if(typeof "+i+'.constant === "number"){',u[eo[0]],"=",i,".constant;",eo.slice(1).map(function(t){return u[t]}).join("="),"=0;","}else{",eo.map(function(t,e){return u[t]+"="+i+".constant.length>"+e+"?"+i+".constant["+e+"]:0;"}).join(""),"}}else{","if(",s,"(",i,".buffer)){",h,"=",l,".createStream(",aa,",",i,".buffer);","}else{",h,"=",l,".getBuffer(",i,".buffer);","}",d,'="type" in ',i,"?",a.glTypes,"[",i,".type]:",h,".dtype;",u.normalized,"=!!",i,".normalized;"),f("size"),f("offset"),f("stride"),f("divisor"),r("}}"),r.exit("if(",u.isStream,"){",l,".destroyStream(",h,");","}"),u}a[t]=ls(e,n)}),a}function G(t,e){var n=t.static,r=t.dynamic;if(Ko in n){var i=n[Ko];return null!==i&&null===c.getVAO(i)&&(i=c.createVAO(i)),ss(function(t){return t.link(c.getVAO(i))})}if(Ko in r){var o=r[Ko];return ls(o,function(t,e){var n=t.invoke(e,o);return e.def(t.shared.vao+".getVAO("+n+")")})}return null}function U(t){var e=t.static,n=t.dynamic,r={};return Object.keys(e).forEach(function(t){var n=e[t];r[t]=ss(function(t,e){return"number"===typeof n||"boolean"===typeof n?""+n:t.link(n)})}),Object.keys(n).forEach(function(t){var e=n[t];r[t]=ls(e,function(t,n){return t.invoke(n,e)})}),r}function W(t,e,n,i,o){var a=t.static,s=t.dynamic;nt.optional(function(){var t=[Go,Uo,Wo,Vo,Ho,Xo,Yo,qo,Fo,Ko].concat(S);function e(e){Object.keys(e).forEach(function(e){nt.command(t.indexOf(e)>=0,'unknown parameter "'+e+'"',o.commandStr)})}e(a),e(s)});var l=L(t,e),u=P(t,o),h=D(t,u,o),d=j(t,o),f=B(t,o),p=R(t,o,l);function g(t){var e=h[t];e&&(f[t]=e)}g(zo),g(M(Bo));var v=Object.keys(f).length>0,m={framebuffer:u,draw:d,shader:p,state:f,dirty:v,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(m.profile=N(t,o),m.uniforms=z(n,o),m.drawVAO=m.scopeVAO=G(t,o),!m.drawVAO&&p.program&&!l&&r.angle_instanced_arrays){var y=!0,b=p.program.attributes.map(function(t){var n=e.static[t];return y=y&&!!n,n});if(y&&b.length>0){var x=c.getVAO(c.createVAO(b));m.drawVAO=new os(null,null,null,function(t,e){return t.link(x)}),m.useVAO=!0}}return l?m.useVAO=!0:m.attributes=F(e,o),m.context=U(i,o),m}function V(t,e,n){var r=t.shared.context,i=t.scope();Object.keys(n).forEach(function(o){e.save(r,"."+o);var a=n[o].append(t,e);Array.isArray(a)?i(r,".",o,"=[",a.join(),"];"):i(r,".",o,"=",a,";")}),e(i)}function H(t,e,n,r){var i,o=t.shared,a=o.gl,s=o.framebuffer;b&&(i=e.def(o.extensions,".webgl_draw_buffers"));var l,u=t.constants,c=u.drawBuffer,h=u.backBuffer;l=n?n.append(t,e):e.def(s,".next"),r||e("if(",l,"!==",s,".cur){"),e("if(",l,"){",a,".bindFramebuffer(",Ka,",",l,".framebuffer);"),b&&e(i,".drawBuffersWEBGL(",c,"[",l,".colorAttachments.length]);"),e("}else{",a,".bindFramebuffer(",Ka,",null);"),b&&e(i,".drawBuffersWEBGL(",h,");"),e("}",s,".cur=",l,";"),r||e("}")}function Y(t,e,n){var r=t.shared,i=r.gl,o=t.current,a=t.next,s=r.current,l=r.next,u=t.cond(s,".dirty");S.forEach(function(e){var r,c,h=M(e);if(!(h in n.state))if(h in a){r=a[h],c=o[h];var d=_t(x[h].length,function(t){return u.def(r,"[",t,"]")});u(t.cond(d.map(function(t,e){return t+"!=="+c+"["+e+"]"}).join("||")).then(i,".",E[h],"(",d,");",d.map(function(t,e){return c+"["+e+"]="+t}).join(";"),";"))}else{r=u.def(l,".",h);var f=t.cond(r,"!==",s,".",h);u(f),h in k?f(t.cond(r).then(i,".enable(",k[h],");").else(i,".disable(",k[h],");"),s,".",h,"=",r,";"):f(i,".",E[h],"(",r,");",s,".",h,"=",r,";")}}),0===Object.keys(n.state).length&&u(s,".dirty=false;"),e(u)}function X(t,e,n,r){var i=t.shared,o=t.current,a=i.current,s=i.gl;is(Object.keys(n)).forEach(function(i){var l=n[i];if(!r||r(l)){var u=l.append(t,e);if(k[i]){var c=k[i];as(l)?e(s,u?".enable(":".disable(",c,");"):e(t.cond(u).then(s,".enable(",c,");").else(s,".disable(",c,");")),e(a,".",i,"=",u,";")}else if(hn(u)){var h=o[i];e(s,".",E[i],"(",u,");",u.map(function(t,e){return h+"["+e+"]="+t}).join(";"),";")}else e(s,".",E[i],"(",u,");",a,".",i,"=",u,";")}})}function q(t,e){y&&(t.instancing=e.def(t.shared.extensions,".angle_instanced_arrays"))}function K(t,e,n,r,i){var o,a,s,l=t.shared,u=t.stats,c=l.current,h=l.timer,d=n.profile;function f(){return"undefined"===typeof performance?"Date.now()":"performance.now()"}function g(t){t(o=e.def(),"=",f(),";"),"string"===typeof i?t(u,".count+=",i,";"):t(u,".count++;"),p&&(r?t(a=e.def(),"=",h,".getNumPendingQueries();"):t(h,".beginQuery(",u,");"))}function v(t){t(u,".cpuTime+=",f(),"-",o,";"),p&&(r?t(h,".pushScopeStats(",a,",",h,".getNumPendingQueries(),",u,");"):t(h,".endQuery();"))}function m(t){var n=e.def(c,".profile");e(c,".profile=",t,";"),e.exit(c,".profile=",n,";")}if(d){if(as(d))return void(d.enable?(g(e),v(e.exit),m("true")):m("false"));m(s=d.append(t,e))}else s=e.def(c,".profile");var y=t.block();g(y),e("if(",s,"){",y,"}");var b=t.block();v(b),e.exit("if(",s,"){",b,"}")}function Q(t,e,n,r,i){var o=t.shared;function a(t){switch(t){case xa:case Ea:case Aa:return 2;case wa:case Ma:case Oa:return 3;case Sa:case _a:case Ta:return 4;default:return 1}}function s(n,r,i){var a=o.gl,s=e.def(n,".location"),l=e.def(o.attributes,"[",s,"]"),u=i.state,c=i.buffer,h=[i.x,i.y,i.z,i.w],d=["buffer","normalized","offset","stride"];function f(){e("if(!",l,".buffer){",a,".enableVertexAttribArray(",s,");}");var n,o=i.type;if(n=i.size?e.def(i.size,"||",r):r,e("if(",l,".type!==",o,"||",l,".size!==",n,"||",d.map(function(t){return l+"."+t+"!=="+i[t]}).join("||"),"){",a,".bindBuffer(",aa,",",c,".buffer);",a,".vertexAttribPointer(",[s,n,o,i.normalized,i.stride,i.offset],");",l,".type=",o,";",l,".size=",n,";",d.map(function(t){return l+"."+t+"="+i[t]+";"}).join(""),"}"),y){var u=i.divisor;e("if(",l,".divisor!==",u,"){",t.instancing,".vertexAttribDivisorANGLE(",[s,u],");",l,".divisor=",u,";}")}}function p(){e("if(",l,".buffer){",a,".disableVertexAttribArray(",s,");",l,".buffer=null;","}if(",eo.map(function(t,e){return l+"."+t+"!=="+h[e]}).join("||"),"){",a,".vertexAttrib4f(",s,",",h,");",eo.map(function(t,e){return l+"."+t+"="+h[e]+";"}).join(""),"}")}u===ro?f():u===io?p():(e("if(",u,"===",ro,"){"),f(),e("}else{"),p(),e("}"))}r.forEach(function(r){var o,l=r.name,u=n.attributes[l];if(u){if(!i(u))return;o=u.append(t,e)}else{if(!i(us))return;var c=t.scopeAttrib(l);nt.optional(function(){t.assert(e,c+".state","missing attribute "+l)}),o={},Object.keys(new v).forEach(function(t){o[t]=e.def(c,".",t)})}s(t.link(r),a(r.info.type),o)})}function Z(t,e,r,i,o){for(var a,s=t.shared,l=s.gl,u=0;u1?e(_t(x,function(t){return Array.isArray(c)?c[t]:c+"["+t+"]"})):(nt(!Array.isArray(c),"uniform value must not be an array"),e(c));e(");")}}function $(t,e,n,r){var i=t.shared,o=i.gl,a=i.draw,s=r.draw;function l(){var i,l=s.elements,u=e;return l?((l.contextDep&&r.contextDynamic||l.propDep)&&(u=n),i=l.append(t,u)):i=u.def(a,".",Vo),i&&u("if("+i+")"+o+".bindBuffer("+sa+","+i+".buffer.buffer);"),i}function u(){var i,o=s.count,l=e;return o?((o.contextDep&&r.contextDynamic||o.propDep)&&(l=n),i=o.append(t,l),nt.optional(function(){o.MISSING&&t.assert(e,"false","missing vertex count"),o.DYNAMIC&&t.assert(l,i+">=0","missing vertex count")})):(i=l.def(a,".",Yo),nt.optional(function(){t.assert(l,i+">=0","missing vertex count")})),i}var c=l();function h(i){var o=s[i];return o?o.contextDep&&r.contextDynamic||o.propDep?o.append(t,n):o.append(t,e):e.def(a,".",i)}var d,f,p=h(Ho),g=h(Xo),v=u();if("number"===typeof v){if(0===v)return}else n("if(",v,"){"),n.exit("}");y&&(d=h(qo),f=t.instancing);var m=c+".type",b=s.elements&&as(s.elements);function x(){function t(){n(f,".drawElementsInstancedANGLE(",[p,v,m,g+"<<(("+m+"-"+no+")>>1)",d],");")}function e(){n(f,".drawArraysInstancedANGLE(",[p,g,v,d],");")}c?b?t():(n("if(",c,"){"),t(),n("}else{"),e(),n("}")):e()}function w(){function t(){n(o+".drawElements("+[p,v,m,g+"<<(("+m+"-"+no+")>>1)"]+");")}function e(){n(o+".drawArrays("+[p,g,v]+");")}c?b?t():(n("if(",c,"){"),t(),n("}else{"),e(),n("}")):e()}y&&("number"!==typeof d||d>=0)?"string"===typeof d?(n("if(",d,">0){"),x(),n("}else if(",d,"<0){"),w(),n("}")):x():w()}function J(t,e,n,r,i){var o=I(),a=o.proc("body",i);return nt.optional(function(){o.commandStr=e.commandStr,o.command=o.link(e.commandStr)}),y&&(o.instancing=a.def(o.shared.extensions,".angle_instanced_arrays")),t(o,a,n,r),o.compile().body}function tt(t,e,n,r){q(t,e),n.useVAO?n.drawVAO?e(t.shared.vao,".setVAO(",n.drawVAO.append(t,e),");"):e(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(e(t.shared.vao,".setVAO(null);"),Q(t,e,n,r.attributes,function(){return!0})),Z(t,e,n,r.uniforms,function(){return!0}),$(t,e,e,n)}function et(t,e){var n=t.proc("draw",1);q(t,n),V(t,n,e.context),H(t,n,e.framebuffer),Y(t,n,e),X(t,n,e.state),K(t,n,e,!1,!0);var r=e.shader.progVar.append(t,n);if(n(t.shared.gl,".useProgram(",r,".program);"),e.shader.program)tt(t,n,e,e.shader.program);else{n(t.shared.vao,".setVAO(null);");var i=t.global.def("{}"),o=n.def(r,".id"),a=n.def(i,"[",o,"]");n(t.cond(a).then(a,".call(this,a0);").else(a,"=",i,"[",o,"]=",t.link(function(n){return J(tt,t,e,n,1)}),"(",r,");",a,".call(this,a0);"))}Object.keys(e.state).length>0&&n(t.shared.current,".dirty=true;")}function rt(t,e,n,r){function i(){return!0}t.batchId="a1",q(t,e),Q(t,e,n,r.attributes,i),Z(t,e,n,r.uniforms,i),$(t,e,e,n)}function it(t,e,n,r){q(t,e);var i=n.contextDep,o=e.def(),a="a0",s="a1",l=e.def();t.shared.props=l,t.batchId=o;var u=t.scope(),c=t.scope();function h(t){return t.contextDep&&i||t.propDep}function d(t){return!h(t)}if(e(u.entry,"for(",o,"=0;",o,"<",s,";++",o,"){",l,"=",a,"[",o,"];",c,"}",u.exit),n.needsContext&&V(t,c,n.context),n.needsFramebuffer&&H(t,c,n.framebuffer),X(t,c,n.state,h),n.profile&&h(n.profile)&&K(t,c,n,!1,!0),r)n.useVAO?n.drawVAO?h(n.drawVAO)?c(t.shared.vao,".setVAO(",n.drawVAO.append(t,c),");"):u(t.shared.vao,".setVAO(",n.drawVAO.append(t,u),");"):u(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(u(t.shared.vao,".setVAO(null);"),Q(t,u,n,r.attributes,d),Q(t,c,n,r.attributes,h)),Z(t,u,n,r.uniforms,d),Z(t,c,n,r.uniforms,h),$(t,u,c,n);else{var f=t.global.def("{}"),p=n.shader.progVar.append(t,c),g=c.def(p,".id"),v=c.def(f,"[",g,"]");c(t.shared.gl,".useProgram(",p,".program);","if(!",v,"){",v,"=",f,"[",g,"]=",t.link(function(e){return J(rt,t,n,e,2)}),"(",p,");}",v,".call(this,a0[",o,"],",o,");")}}function ot(t,e){var n=t.proc("batch",2);t.batchId="0",q(t,n);var r=!1,i=!0;Object.keys(e.context).forEach(function(t){r=r||e.context[t].propDep}),r||(V(t,n,e.context),i=!1);var o=e.framebuffer,a=!1;function s(t){return t.contextDep&&r||t.propDep}o?(o.propDep?r=a=!0:o.contextDep&&r&&(a=!0),a||H(t,n,o)):H(t,n,null),e.state.viewport&&e.state.viewport.propDep&&(r=!0),Y(t,n,e),X(t,n,e.state,function(t){return!s(t)}),e.profile&&s(e.profile)||K(t,n,e,!1,"a1"),e.contextDep=r,e.needsContext=i,e.needsFramebuffer=a;var l=e.shader.progVar;if(l.contextDep&&r||l.propDep)it(t,n,e,null);else{var u=l.append(t,n);if(n(t.shared.gl,".useProgram(",u,".program);"),e.shader.program)it(t,n,e,e.shader.program);else{n(t.shared.vao,".setVAO(null);");var c=t.global.def("{}"),h=n.def(u,".id"),d=n.def(c,"[",h,"]");n(t.cond(d).then(d,".call(this,a0,a1);").else(d,"=",c,"[",h,"]=",t.link(function(n){return J(it,t,e,n,2)}),"(",u,");",d,".call(this,a0,a1);"))}}Object.keys(e.state).length>0&&n(t.shared.current,".dirty=true;")}function at(t,e){var r=t.proc("scope",3);t.batchId="a2";var i=t.shared,o=i.current;function a(n){var o=e.shader[n];o&&r.set(i.shader,"."+n,o.append(t,r))}V(t,r,e.context),e.framebuffer&&e.framebuffer.append(t,r),is(Object.keys(e.state)).forEach(function(n){var o=e.state[n].append(t,r);hn(o)?o.forEach(function(e,i){r.set(t.next[n],"["+i+"]",e)}):r.set(i.next,"."+n,o)}),K(t,r,e,!0,!0),[Vo,Xo,Yo,qo,Ho].forEach(function(n){var o=e.draw[n];o&&r.set(i.draw,"."+n,""+o.append(t,r))}),Object.keys(e.uniforms).forEach(function(o){var a=e.uniforms[o].append(t,r);Array.isArray(a)&&(a="["+a.join()+"]"),r.set(i.uniforms,"["+n.id(o)+"]",a)}),Object.keys(e.attributes).forEach(function(n){var i=e.attributes[n].append(t,r),o=t.scopeAttrib(n);Object.keys(new v).forEach(function(t){r.set(o,"."+t,i[t])})}),e.scopeVAO&&r.set(i.vao,".targetVAO",e.scopeVAO.append(t,r)),a(Uo),a(Wo),Object.keys(e.state).length>0&&(r(o,".dirty=true;"),r.exit(o,".dirty=true;")),r("a1(",t.shared.context,",a0,",t.batchId,");")}function st(t){if("object"===typeof t&&!hn(t)){for(var e=Object.keys(t),n=0;n=0;--t){var e=T[t];e&&e(p,null,0)}r.flush(),c&&c.update()}function R(){!D&&T.length>0&&(D=gt.next(L))}function j(){D&&(gt.cancel(L),D=null)}function B(t){t.preventDefault(),o=!0,j(),I.forEach(function(t){t()})}function z(t){r.getError(),o=!1,a.restore(),S.restore(),y.restore(),k.restore(),E.restore(),M.restore(),b.restore(),c&&c.restore(),_.procs.refresh(),R(),N.forEach(function(t){t()})}function F(){T.length=0,j(),O&&(O.removeEventListener(xs,B),O.removeEventListener(ws,z)),S.clear(),M.clear(),E.clear(),k.clear(),w.clear(),y.clear(),b.clear(),c&&c.clear(),P.forEach(function(t){t()})}function G(t){function n(t){var n=e({},t);function r(t){if(t in n){var e=n[t];delete n[t],Object.keys(e).forEach(function(r){n[t+"."+r]=e[r]})}}return delete n.uniforms,delete n.attributes,delete n.context,delete n.vao,"stencil"in n&&n.stencil.op&&(n.stencil.opBack=n.stencil.opFront=n.stencil.op,delete n.stencil.op),r("blend"),r("depth"),r("cull"),r("stencil"),r("polygonOffset"),r("scissor"),r("sample"),"vao"in t&&(n.vao=t.vao),n}function r(t,e){var n={},r={};return Object.keys(t).forEach(function(i){var o=t[i];if(pt.isDynamic(o))r[i]=pt.unbox(o,i);else{if(e&&Array.isArray(o))for(var a=0;a0)return d.call(this,g(0|t),0|t)}else{if(!Array.isArray(t))return h.call(this,t);if(t.length)return d.call(this,t,t.length)}}return e(v,{stats:u,destroy:function(){c.destroy()}})}O&&(O.addEventListener(xs,B,!1),O.addEventListener(ws,z,!1));var U=M.setFBO=G({framebuffer:pt.define.call(null,Ss,"framebuffer")});function W(t,e){var n=0;_.procs.poll();var i=e.color;i&&(r.clearColor(+i[0]||0,+i[1]||0,+i[2]||0,+i[3]||0),n|=vs),"depth"in e&&(r.clearDepth(+e.depth),n|=ms),"stencil"in e&&(r.clearStencil(0|e.stencil),n|=ys),nt(!!n,"called regl.clear with no buffer specified"),r.clear(n)}function V(t){if(nt("object"===typeof t&&t,"regl.clear() takes an object as input"),"framebuffer"in t)if(t.framebuffer&&"framebufferCube"===t.framebuffer_reglType)for(var n=0;n<6;++n)U(e({framebuffer:t.framebuffer.faces[n]},t),W);else U(t,W);else W(null,t)}function H(t){function e(){var e=Ms(T,t);function n(){var t=Ms(T,n);T[t]=T[T.length-1],T.length-=1,T.length<=0&&j()}nt(e>=0,"cannot cancel a frame twice"),T[e]=n}return nt.type(t,"function","regl.frame() callback must be a function"),T.push(t),R(),{cancel:e}}function Y(){var t=A.viewport,e=A.scissor_box;t[0]=t[1]=e[0]=e[1]=0,p.viewportWidth=p.framebufferWidth=p.drawingBufferWidth=t[2]=e[2]=r.drawingBufferWidth,p.viewportHeight=p.framebufferHeight=p.drawingBufferHeight=t[3]=e[3]=r.drawingBufferHeight}function X(){p.tick+=1,p.time=K(),Y(),_.procs.poll()}function q(){k.refresh(),Y(),_.procs.refresh(),c&&c.update()}function K(){return(vt()-h)/1e3}function Q(t,e){var n;switch(nt.type(e,"function","listener callback must be a function"),t){case"frame":return H(e);case"lost":n=I;break;case"restore":n=N;break;case"destroy":n=P;break;default:nt.raise("invalid event, must be one of frame,lost,restore,destroy")}return n.push(e),{cancel:function(){for(var t=0;t=0},read:C,destroy:F,_gl:r,_refresh:q,poll:function(){X(),c&&c.update()},now:K,stats:l});return n.onDone(null,Z),Z}return _s}()},649:(t,e,n)=>{"use strict";var r=n(6116),i=Array.prototype.concat,o=Array.prototype.slice,a=t.exports=function(t){for(var e=[],n=0,a=t.length;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"GADDIAsync",{enumerable:!0,get:function(){return r.GADDIAsync}}),Object.defineProperty(e,"connectedComponentAsync",{enumerable:!0,get:function(){return r.connectedComponentAsync}}),e.default=void 0,Object.defineProperty(e,"detectAllCyclesAsync",{enumerable:!0,get:function(){return r.detectAllCyclesAsync}}),Object.defineProperty(e,"detectAllDirectedCycleAsync",{enumerable:!0,get:function(){return r.detectAllDirectedCycleAsync}}),Object.defineProperty(e,"detectAllUndirectedCycleAsync",{enumerable:!0,get:function(){return r.detectAllUndirectedCycleAsync}}),Object.defineProperty(e,"detectCycleAsync",{enumerable:!0,get:function(){return r.detectCycleAsync}}),e.detectDirectedCycleAsync=void 0,Object.defineProperty(e,"dijkstraAsync",{enumerable:!0,get:function(){return r.dijkstraAsync}}),Object.defineProperty(e,"findAllPathAsync",{enumerable:!0,get:function(){return r.findAllPathAsync}}),Object.defineProperty(e,"findShortestPathAsync",{enumerable:!0,get:function(){return r.findShortestPathAsync}}),Object.defineProperty(e,"floydWarshallAsync",{enumerable:!0,get:function(){return r.floydWarshallAsync}}),Object.defineProperty(e,"getAdjMatrixAsync",{enumerable:!0,get:function(){return r.getAdjMatrixAsync}}),Object.defineProperty(e,"getDegreeAsync",{enumerable:!0,get:function(){return r.getDegreeAsync}}),Object.defineProperty(e,"getInDegreeAsync",{enumerable:!0,get:function(){return r.getInDegreeAsync}}),Object.defineProperty(e,"getNeighborsAsync",{enumerable:!0,get:function(){return r.getNeighborsAsync}}),Object.defineProperty(e,"getOutDegreeAsync",{enumerable:!0,get:function(){return r.getOutDegreeAsync}}),Object.defineProperty(e,"labelPropagationAsync",{enumerable:!0,get:function(){return r.labelPropagationAsync}}),Object.defineProperty(e,"louvainAsync",{enumerable:!0,get:function(){return r.louvainAsync}}),Object.defineProperty(e,"minimumSpanningTreeAsync",{enumerable:!0,get:function(){return r.minimumSpanningTreeAsync}}),Object.defineProperty(e,"pageRankAsync",{enumerable:!0,get:function(){return r.pageRankAsync}});var r=n(4714),i=r.detectCycleAsync;e.detectDirectedCycleAsync=i;var o={getAdjMatrixAsync:r.getAdjMatrixAsync,connectedComponentAsync:r.connectedComponentAsync,getDegreeAsync:r.getDegreeAsync,getInDegreeAsync:r.getInDegreeAsync,getOutDegreeAsync:r.getOutDegreeAsync,detectCycleAsync:r.detectCycleAsync,detectDirectedCycleAsync:i,detectAllCyclesAsync:r.detectAllCyclesAsync,detectAllDirectedCycleAsync:r.detectAllDirectedCycleAsync,detectAllUndirectedCycleAsync:r.detectAllUndirectedCycleAsync,dijkstraAsync:r.dijkstraAsync,findAllPathAsync:r.findAllPathAsync,findShortestPathAsync:r.findShortestPathAsync,floydWarshallAsync:r.floydWarshallAsync,labelPropagationAsync:r.labelPropagationAsync,louvainAsync:r.louvainAsync,minimumSpanningTreeAsync:r.minimumSpanningTreeAsync,pageRankAsync:r.pageRankAsync,getNeighborsAsync:r.getNeighborsAsync,GADDIAsync:r.GADDIAsync};e.default=o},675:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VACANT_NODE_LABEL=e.VACANT_NODE_ID=e.VACANT_GRAPH_ID=e.VACANT_EDGE_LABEL=e.VACANT_EDGE_ID=e.Node=e.Graph=e.Edge=e.AUTO_EDGE_ID=void 0;e.VACANT_EDGE_ID=-1;e.VACANT_NODE_ID=-1;e.VACANT_EDGE_LABEL="-1";e.VACANT_NODE_LABEL="-1";e.VACANT_GRAPH_ID=-1;e.AUTO_EDGE_ID="-1";var n=function(t,e,n,r){void 0===t&&(t=-1),void 0===e&&(e=-1),void 0===n&&(n=-1),void 0===r&&(r="-1"),this.id=t,this.from=e,this.to=n,this.label=r};e.Edge=n;var r=function(){function t(t,e){void 0===t&&(t=-1),void 0===e&&(e="-1"),this.id=t,this.label=e,this.edges=[],this.edgeMap={}}return t.prototype.addEdge=function(t){this.edges.push(t),this.edgeMap[t.id]=t},t}();e.Node=r;var i=function(){function t(t,e,n){void 0===t&&(t=-1),void 0===e&&(e=!0),void 0===n&&(n=!1),this.id=t,this.edgeIdAutoIncrease=e,this.edges=[],this.nodes=[],this.nodeMap={},this.edgeMap={},this.nodeLabelMap={},this.edgeLabelMap={},this.counter=0,this.directed=n}return t.prototype.getNodeNum=function(){return this.nodes.length},t.prototype.addNode=function(t,e){if(!this.nodeMap[t]){var n=new r(t,e);this.nodes.push(n),this.nodeMap[t]=n,this.nodeLabelMap[e]||(this.nodeLabelMap[e]=[]),this.nodeLabelMap[e].push(t)}},t.prototype.addEdge=function(t,e,r,i){if((this.edgeIdAutoIncrease||void 0===t)&&(t=this.counter++),!(this.nodeMap[e]&&this.nodeMap[r]&&this.nodeMap[r].edgeMap[t])){var o=new n(t,e,r,i);if(this.edges.push(o),this.edgeMap[t]=o,this.nodeMap[e].addEdge(o),this.edgeLabelMap[i]||(this.edgeLabelMap[i]=[]),this.edgeLabelMap[i].push(o),!this.directed){var a=new n(t,r,e,i);this.nodeMap[r].addEdge(a),this.edgeLabelMap[i].push(a)}}},t}();e.Graph=i},708:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueId=e.getOutEdgesNodeId=e.getNeighbors=e.getEdgesByNodeId=void 0;e.getNeighbors=function(t,e,n){void 0===e&&(e=[]);var r=e.filter(function(e){return e.source===t||e.target===t});if("target"===n){return r.filter(function(e){return e.source===t}).map(function(t){return t.target})}if("source"===n){return r.filter(function(e){return e.target===t}).map(function(t){return t.source})}return r.map(function(e){return e.source===t?e.target:e.source})};e.getOutEdgesNodeId=function(t,e){return e.filter(function(e){return e.source===t})};e.getEdgesByNodeId=function(t,e){return e.filter(function(e){return e.source===t||e.target===t})};e.uniqueId=function(t){void 0===t&&(t=0);var e="".concat(Math.random()).split(".")[1].substr(0,5),n="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(t,"-").concat(e).concat(n)}},755:function(t){var e;"undefined"!==typeof self&&self,e=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){t.exports={assign:Object.assign,getHeight:function(t,e,n,r){return void 0===r&&(r="height"),"center"===n?(t[r]+e[r])/2:t.height}}},function(t,e,n){var r=n(3),i=function(){function t(t,e){void 0===e&&(e={}),this.options=e,this.rootNode=r(t,e)}return t.prototype.execute=function(){throw new Error("please override this method")},t}();t.exports=i},function(t,e,n){var r=n(4),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=i[0];t.exports=function(t,e,n){var s=e.direction||a;if(e.isHorizontal=function(t){return o.indexOf(t)>-1}(s),s&&-1===i.indexOf(s))throw new TypeError("Invalid direction: "+s);if(s===i[0])n(t,e);else if(s===i[1])n(t,e),t.right2left();else if(s===i[2])n(t,e);else if(s===i[3])n(t,e),t.bottom2top();else if(s===i[4]||s===i[5]){var l=r(t,e),u=l.left,c=l.right;n(u,e),n(c,e),e.isHorizontal?u.right2left():u.bottom2top(),c.translate(u.x-c.x,u.y-c.y),t.x=u.x,t.y=c.y;var h=t.getBoundingBox();e.isHorizontal?h.top<0&&t.translate(0,-h.top):h.left<0&&t.translate(-h.left,0)}var d=e.fixedRoot;return void 0===d&&(d=!0),d&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),function(t,e){if(e.radial){var n=e.isHorizontal?["x","y"]:["y","x"],r=n[0],i=n[1],o={x:1/0,y:1/0},a={x:-1/0,y:-1/0},s=0;t.DFTraverse(function(t){s++;var e=t.x,n=t.y;o.x=Math.min(o.x,e),o.y=Math.min(o.y,n),a.x=Math.max(a.x,e),a.y=Math.max(a.y,n)});var l=a[i]-o[i];if(0===l)return;var u=2*Math.PI/s;t.DFTraverse(function(e){var n=(e[i]-o[i])/l*(2*Math.PI-u)+u,a=e[r]-t[r];e.x=Math.cos(n)*a,e.y=Math.sin(n)*a})}}(t,e),t}},function(t,e,n){var r=n(0),i={getId:function(t){return t.id||t.name},getPreH:function(t){return t.preH||0},getPreV:function(t){return t.preV||0},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){var e=t.label||" ";return t.width||18*e.split("").length}};function o(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof o)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.preH=e.getPreH(t),n.preV=e.getPreV(t),n.width=e.getWidth(t),n.height=e.getHeight(t),n.width+=n.preH,n.height+=n.preV,n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}r.assign(o.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){var n=this;n.hgap+=t,n.vgap+=e,n.width+=2*t,n.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.shift();)t(e),n=e.children.concat(n)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)}),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode(function(n){n.x+=t,n.y+=e,n.x+=n.preH,n.y+=n.preV})},right2left:function(){var t=this,e=t.getBoundingBox();t.eachNode(function(t){t.x=t.x-2*(t.x-e.left)-t.width}),t.translate(e.width,0)},bottom2top:function(){var t=this,e=t.getBoundingBox();t.eachNode(function(t){t.y=t.y-2*(t.y-e.top)-t.height}),t.translate(0,e.height)}}),t.exports=function(t,e,n){void 0===e&&(e={});var a,s=new o(t,e=r.assign({},i,e)),l=[s];if(!n&&!t.collapsed)for(;a=l.shift();)if(!a.data.collapsed){var u=e.getChildren(a.data),c=u?u.length:0;if(a.children=new Array(c),u&&c)for(var h=0;hn.low&&(n=n.nxt);var s=i+r.prelim+r.w-(a+o.prelim);s>0&&(a+=s,u(t,e,n.index,s));var l=d(r),f=d(o);l<=f&&null!==(r=h(r))&&(i+=r.mod),l>=f&&null!==(o=c(o))&&(a+=o.mod)}!r&&o?function(t,e,n,r){var i=t.c[0].el;i.tl=n;var o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,o,a):r&&!o&&function(t,e,n,r){var i=t.c[e].er;i.tr=n;var o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,r,i)}function u(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,function(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}(t,e,n,r)}function c(t){return 0===t.cs?t.tl:t.c[0]}function h(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function d(t){return t.y+t.h}function f(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,r);var p=n.fromNode(t,r);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n=f(d(e.c[0].el),0,null),r=1;rs&&(s=e.depth);var n=e.children,r=n.length,o=new i(e.height,[]);return n.forEach(function(e,n){var i=t(e);o.children.push(i),0===n&&(o.leftChild=i),n===r-1&&(o.rightChild=i)}),o.originNode=e,o.isLeaf=e.isLeaf(),o}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=s;else{var n=e.children.map(function(e){return t(e)}),r=Math.min.apply(null,n);e.drawingDepth=r-1}return e.drawingDepth}(l),function t(r){r.x=r.drawingDepth*e.rankSep,r.isLeaf?(r.y=0,n&&(r.y=n.y+n.height+e.nodeSep,r.originNode.parent!==n.originNode.parent&&(r.y+=e.subTreeSep)),n=r):(r.children.forEach(function(e){t(e)}),r.y=(r.leftChild.y+r.rightChild.y)/2)}(l),a(l,t,e.isHorizontal),t}},function(t,e,n){function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}var i=n(1),o=n(11),a=n(4),s=n(0),l=["LR","RL","H"],u=l[0],c=function(t){function e(){return t.apply(this,arguments)||this}var n,i;return i=t,(n=e).prototype=Object.create(i.prototype),n.prototype.constructor=n,r(n,i),e.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,r=void 0===n?20:n,i=t.dropCap,s=void 0===i||i,c=t.direction,h=void 0===c?u:c,d=t.align;if(h&&-1===l.indexOf(h))throw new TypeError("Invalid direction: "+h);if(h===l[0])o(e,r,s,d);else if(h===l[1])o(e,r,s,d),e.right2left();else if(h===l[2]){var f=a(e,t),p=f.left,g=f.right;o(p,r,s,d),p.right2left(),o(g,r,s,d);var v=p.getBoundingBox();g.translate(v.width,0),e.x=g.x-e.width/2}return e},e}(i),h={};t.exports=function(t,e){return e=s.assign({},h,e),new c(t,e).execute()}},function(t,e,n){var r=n(0);t.exports=function(t,e,n,i){var o=null;t.eachNode(function(t){!function(t,e,n,i,o){var a=("function"===typeof n?n(t):n)*t.depth;if(!i)try{if(t.id===t.parent.children[0].id)return t.x+=a,void(t.y=e?e.y:0)}catch(u){}if(t.x+=a,e){if(t.y=e.y+r.getHeight(e,t,o),e.parent&&t.parent.id!==e.parent.id){var s=e.parent,l=s.y+r.getHeight(s,t,o);t.y=l>t.y?l:t.y}}else t.y=0}(t,o,e,n,i),o=t})}},function(t,e,n){function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}var i=n(1),o=n(13),a=n(2),s=n(0),l=function(t){function e(){return t.apply(this,arguments)||this}var n,i;return i=t,(n=e).prototype=Object.create(i.prototype),n.prototype.constructor=n,r(n,i),e.prototype.execute=function(){return a(this.rootNode,this.options,o)},e}(i),u={};t.exports=function(t,e){return e=s.assign({},u,e),new l(t,e).execute()}},function(t,e,n){var r=n(0);function i(t,e){var n=0;return t.children.length?t.children.forEach(function(t){n+=i(t,e)}):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function o(t){var e=t.children,n=e.length;if(n){e.forEach(function(t){o(t)});var r=e[0],i=e[n-1],a=i.y-r.y+i.height,s=0;if(e.forEach(function(t){s+=t.totalHeight}),a>t.height)t.y=r.y+a/2-t.height/2;else if(1!==e.length||t.height>s){var l=t.y+(t.height-a)/2-r.y;e.forEach(function(t){t.translate(0,l)})}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}var a={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},a,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(function(t){t.x=t.parent.x+t.parent.width}),t.parent=null,i(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i{var r=n(2202),i=n(5084),o=n(6588),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},855:(t,e,n)=>{var r=n(5139).Symbol;t.exports=r},863:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,null!=t&&(this.quad=t)}return t.prototype.insert=function(e){null!=this.body?this._isExternal()?(this.quad&&(this.NW=new t(this.quad.NW()),this.NE=new t(this.quad.NE()),this.SW=new t(this.quad.SW()),this.SE=new t(this.quad.SE())),this._putBody(this.body),this._putBody(e),this.body=this.body.add(e)):(this.body=this.body.add(e),this._putBody(e)):this.body=e},t.prototype._putBody=function(t){this.quad&&(t.in(this.quad.NW())&&this.NW?this.NW.insert(t):t.in(this.quad.NE())&&this.NE?this.NE.insert(t):t.in(this.quad.SW())&&this.SW?this.SW.insert(t):t.in(this.quad.SE())&&this.SE&&this.SE.insert(t))},t.prototype._isExternal=function(){return null==this.NW&&null==this.NE&&null==this.SW&&null==this.SE},t.prototype.updateForce=function(t){null!=this.body&&t!==this.body&&(this._isExternal()||(this.quad?this.quad.getLength():0)/this.body.distanceTo(t){"use strict";var r=n(8898),i=n(906);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(8545)),a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(40)),s=r(n(9720)),l=r(n(3948));function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(u=function(t){return t?n:e})(t)}var c=function(t,e){return a.createElement(l.default,(0,o.default)((0,o.default)({},t),{},{ref:e,icon:s.default}))},h=a.forwardRef(c);e.default=h},902:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"}},906:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},944:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exchangeEdges=e.enterEdge=e.leaveEdge=e.initLowLimValues=e.calcCutValue=e.initCutValues=void 0;var r=n(6637),i=n(8901),o=n(2872),a=n(1925),s=a.algorithm.preorder,l=a.algorithm.postorder;e.initCutValues=function(t,e){var n=l(t,t.nodes());null===(n=null===n||void 0===n?void 0:n.slice(0,(null===n||void 0===n?void 0:n.length)-1))||void 0===n||n.forEach(function(n){u(t,e,n)})};var u=function(t,n,r){var i=t.node(r).parent;t.edgeFromArgs(r,i).cutvalue=(0,e.calcCutValue)(t,n,r)};e.calcCutValue=function(t,e,n){var r,i=t.node(n).parent,o=!0,a=e.edgeFromArgs(n,i),s=0;return a||(o=!1,a=e.edgeFromArgs(i,n)),s=a.weight,null===(r=e.nodeEdges(n))||void 0===r||r.forEach(function(r){var a=r.v===n,l=a?r.w:r.v;if(l!==i){var u=a===o,c=e.edge(r).weight;if(s+=u?c:-c,d(t,n,l)){var h=t.edgeFromArgs(n,l).cutvalue;s+=u?-h:h}}}),s};e.initLowLimValues=function(t,e){void 0===e&&(e=t.nodes()[0]),c(t,{},1,e)};var c=function(t,e,n,r,i){var o,a=n,s=n,l=t.node(r);return e[r]=!0,null===(o=t.neighbors(r))||void 0===o||o.forEach(function(n){e[n]||(s=c(t,e,s,n,r))}),l.low=a,l.lim=s++,i?l.parent=i:delete l.parent,s};e.leaveEdge=function(t){return t.edges().find(function(e){return t.edge(e).cutvalue<0})};e.enterEdge=function(t,e,n){var r=n.v,a=n.w;e.hasEdge(r,a)||(r=n.w,a=n.v);var s=t.node(r),l=t.node(a),u=s,c=!1;s.lim>l.lim&&(u=l,c=!0);var h=e.edges().filter(function(e){return c===f(t,t.node(e.v),u)&&c!==f(t,t.node(e.w),u)});return(0,o.minBy)(h,function(t){return(0,i.slack)(e,t)})};e.exchangeEdges=function(t,n,r,i){var o=r.v,a=r.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),(0,e.initLowLimValues)(t),(0,e.initCutValues)(t,n),h(t,n)};var h=function(t,e){var n=t.nodes().find(function(t){var n;return!(null===(n=e.node(t))||void 0===n?void 0:n.parent)}),r=s(t,n);null===(r=null===r||void 0===r?void 0:r.slice(1))||void 0===r||r.forEach(function(n){var r=t.node(n).parent,i=e.edgeFromArgs(n,r),o=!1;i||(i=e.edgeFromArgs(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})},d=function(t,e,n){return t.hasEdge(e,n)},f=function(t,e,n){return n.low<=e.lim&&e.lim<=n.lim};e.default=function(t){var n=(0,o.simplify)(t);(0,i.longestPath)(n);var a,s,l=(0,r.feasibleTree)(n);for((0,e.initLowLimValues)(l),(0,e.initCutValues)(l,n);a=(0,e.leaveEdge)(l);)s=(0,e.enterEdge)(l,n,a),(0,e.exchangeEdges)(l,n,a,s)}},994:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(e){o(e)}}function s(t){try{l(r.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((r=r.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]-1||(e[r]=t[r])}),e}),e.ticking=!1},e.prototype.execute=function(t){var e=this,n=e.nodes,r=e.edges;if(!e.ticking){var i=e.forceSimulation,o=e.alphaMin,a=e.alphaDecay,s=e.alpha;if(i){if(t)if(e.clustering&&e.clusterForce&&(e.clusterForce.nodes(n),e.clusterForce.links(r)),i.nodes(n),r&&e.edgeForce)e.edgeForce.links(r);else if(r&&!e.edgeForce){f=l.forceLink().id(function(t){return t.id}).links(r);e.edgeStrength&&f.strength(e.edgeStrength),e.linkDistance&&f.distance(e.linkDistance),e.edgeForce=f,i.force("link",f)}e.preventOverlap&&e.overlapProcess(i),i.alpha(s).restart(),this.ticking=!0}else try{var c=l.forceManyBody();if(e.nodeStrength&&c.strength(e.nodeStrength),i=l.forceSimulation().nodes(n),e.clustering){var h=(0,u.default)();h.centerX(e.center[0]).centerY(e.center[1]).template("force").strength(e.clusterFociStrength),r&&h.links(r),n&&h.nodes(n),h.forceLinkDistance(e.clusterEdgeDistance).forceLinkStrength(e.clusterEdgeStrength).forceCharge(e.clusterNodeStrength).forceNodeSize(e.clusterNodeSize),e.clusterForce=h,i.force("group",h)}if(i.force("center",l.forceCenter(e.center[0],e.center[1])).force("charge",c).alpha(s).alphaDecay(a).alphaMin(o),e.preventOverlap&&e.overlapProcess(i),r){var f=l.forceLink().id(function(t){return t.id}).links(r);e.edgeStrength&&f.strength(e.edgeStrength),e.linkDistance&&f.distance(e.linkDistance),e.edgeForce=f,i.force("link",f)}if(e.workerEnabled&&!p()&&(e.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),e.workerEnabled){i.stop();for(var g=function(t){var e=t.alphaMin(),n=t.alphaTarget(),r=t.alpha(),i=Math.log((e-n)/(r-n))/Math.log(1-t.alphaDecay()),o=Math.ceil(i);return o}(i),v=1;v<=g;v++)i.tick(),postMessage({nodes:n,currentTick:v,totalTicks:g,type:d.LAYOUT_MESSAGE.TICK},void 0);e.ticking=!1}else i.on("tick",function(){e.tick()}).on("end",function(){e.ticking=!1,e.onLayoutEnd&&e.onLayoutEnd()}),e.ticking=!0;e.forceSimulation=i,e.ticking=!0}catch(m){e.ticking=!1,console.warn(m)}}},e.prototype.overlapProcess=function(t){var e,n,r=this,i=r.nodeSize,o=r.nodeSpacing,a=r.collideStrength;if(n=(0,c.isNumber)(o)?function(){return o}:(0,c.isFunction)(o)?o:function(){return 0},i)if((0,c.isFunction)(i))e=function(t){return i(t)+n(t)};else if((0,c.isArray)(i)){var s=(i[0]>i[1]?i[0]:i[1])/2;e=function(t){return s+n(t)}}else if((0,c.isNumber)(i)){var u=i/2;e=function(t){return u+n(t)}}else e=function(){return 10};else e=function(t){return t.size?(0,c.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2+n(t):(0,c.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)/2+n(t):t.size/2+n(t):10+n(t)};t.force("collisionForce",l.forceCollide(e).strength(a))},e.prototype.updateCfg=function(t){var e=this;e.ticking&&(e.forceSimulation.stop(),e.ticking=!1),e.forceSimulation=null,Object.assign(e,t)},e.prototype.destroy=function(){var t=this;t.ticking&&(t.forceSimulation.stop(),t.ticking=!1),t.nodes=null,t.edges=null,t.destroyed=!0},e}(h.Base);function p(){return"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}e.ForceLayout=f},1093:t=>{t.exports=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},1208:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.getLayoutByName=e.unRegisterLayout=e.registerLayout=void 0;var i=n(2080),o=n(7007),a=new Map;e.registerLayout=function(t,e){if(a.get(t)&&console.warn("The layout with the name ".concat(t," exists already, it will be overridden")),(0,o.isObject)(e)){var n=function(t){function n(n){var r,i,o=r=t.call(this)||this,a={},s=Object.assign({},o.getDefaultCfg(),(null===(i=e.getDefaultCfg)||void 0===i?void 0:i.call(e))||{});return Object.assign(a,s,e,n),Object.keys(a).forEach(function(t){var e=a[t];o[t]=e}),r}return r(n,t),n}(i.Base);a.set(t,n)}else a.set(t,e);return a.get(t)};e.unRegisterLayout=function(t){a.has(t)&&a.delete(t)};e.getLayoutByName=function(t){return a.has(t)?a.get(t):null}},1229:t=>{t.exports=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports},1241:(t,e,n)=>{var r=n(1880),i=n(266),o=n(8507),a=RegExp("['\u2019]","g");t.exports=function(t){return function(e){return r(o(i(e).replace(a,"")),t,"")}}},1418:(t,e,n)=>{"use strict";var r=n(8898),i=n(906);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(8545)),a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(40)),s=r(n(4100)),l=r(n(3948));function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(u=function(t){return t?n:e})(t)}var c=function(t,e){return a.createElement(l.default,(0,o.default)((0,o.default)({},t),{},{ref:e,icon:s.default}))},h=a.forwardRef(c);e.default=h},1428:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MESSAGE=e.ALGORITHM=void 0;e.ALGORITHM={pageRank:"pageRank",breadthFirstSearch:"breadthFirstSearch",connectedComponent:"connectedComponent",depthFirstSearch:"depthFirstSearch",detectCycle:"detectCycle",detectDirectedCycle:"detectDirectedCycle",detectAllCycles:"detectAllCycles",detectAllDirectedCycle:"detectAllDirectedCycle",detectAllUndirectedCycle:"detectAllUndirectedCycle",dijkstra:"dijkstra",findAllPath:"findAllPath",findShortestPath:"findShortestPath",floydWarshall:"floydWarshall",getAdjMatrix:"getAdjMatrix",getDegree:"getDegree",getInDegree:"getInDegree",getNeighbors:"getNeighbors",getOutDegree:"getOutDegree",labelPropagation:"labelPropagation",louvain:"louvain",GADDI:"GADDI",minimumSpanningTree:"minimumSpanningTree",SUCCESS:"SUCCESS",FAILURE:"FAILURE"};e.MESSAGE={SUCCESS:"SUCCESS",FAILURE:"FAILURE"}},1441:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.GForceLayout=void 0;var i=n(2080),o=n(7007),a=function(t,e){return t?(0,o.isNumber)(t)?function(e){return t}:t:function(t){return e||1}},s=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=500,n.workerEnabled=!1,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=1e3,n.minMovement=.5,n.interval=.02,n.factor=1,n.linkDistance=1,n.gravity=10,n.preventOverlap=!0,n.collideStrength=1,n.tick=function(){},n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.animate=!0,n.updateCfg(e),n}return r(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t,e,n=this,r=n.nodes;if(void 0!==n.timeInterval&&"undefined"!==typeof window&&window.clearInterval(n.timeInterval),r&&0!==r.length){n.width||"undefined"===typeof window||(n.width=window.innerWidth),n.height||"undefined"===typeof window||(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var i=n.center;if(1===r.length)return r[0].x=i[0],r[0].y=i[1],void(null===(e=n.onLayoutEnd)||void 0===e||e.call(n));var s={},l={};r.forEach(function(t,e){(0,o.isNumber)(t.x)||(t.x=Math.random()*n.width),(0,o.isNumber)(t.y)||(t.y=Math.random()*n.height),s[t.id]=t,l[t.id]=e}),n.nodeMap=s,n.nodeIdxMap=l,n.linkDistance=a(n.linkDistance,1),n.nodeStrength=a(n.nodeStrength,1),n.edgeStrength=a(n.edgeStrength,1);var u,c=n.nodeSize;if(n.preventOverlap){var h,d=n.nodeSpacing;h=(0,o.isNumber)(d)?function(){return d}:(0,o.isFunction)(d)?d:function(){return 0},u=c?(0,o.isArray)(c)?function(t){return Math.max(c[0],c[1])+h(t)}:function(t){return c+h(t)}:function(t){return t.size?(0,o.isArray)(t.size)?Math.max(t.size[0],t.size[1])+h(t):(0,o.isObject)(t.size)?Math.max(t.size.width,t.size.height)+h(t):t.size+h(t):10+h(t)}}n.nodeSize=u;var f=n.edges;n.degrees=(0,o.getDegree)(r.length,n.nodeIdxMap,f),n.getMass||(n.getMass=function(t){return t.mass||n.degrees[n.nodeIdxMap[t.id]].all||1}),n.run()}else null===(t=n.onLayoutEnd)||void 0===t||t.call(n)},e.prototype.run=function(){var t,e=this,n=e.maxIteration,r=e.nodes,i=e.workerEnabled,o=e.minMovement,a=e.animate;if(r)if(i||!a){for(var s=0;s=n&&(null===(i=e.onLayoutEnd)||void 0===i||i.call(e),window.clearInterval(e.timeInterval))}},0)}},e.prototype.reachMoveThreshold=function(t,e,n){var r=0;return t.forEach(function(t,n){var i=t.x-e[n].x,o=t.y-e[n].y;r+=Math.sqrt(i*i+o*o)}),(r/=t.length)=d)){var f=n.x-e.x,p=n.y-e.y;0===f&&0===p&&(f=.01*Math.random(),p=.01*Math.random());var g=f*f+p*p,v=Math.sqrt(g),m=(v+.1)*o,y=f/v,b=p/v,x=.5*(u(n)+u(e))*i/(m*m),w=r?r(e):1;if(t[2*s]+=y*x,t[2*s+1]+=b*x,t[2*d]-=y*x,t[2*d+1]-=b*x,a&&(c(n)+c(e))/2>v){var S=l*(u(n)+u(e))*.5/g;t[2*s]+=y*S/h,t[2*s+1]+=b*S/h,t[2*d]-=y*S/w,t[2*d+1]-=b*S/w}}})})},e.prototype.calAttractive=function(t,e){var n=this,r=n.nodeMap,i=n.nodeIdxMap,a=n.linkDistance,s=n.edgeStrength,l=n.nodeSize,u=n.getMass;e.forEach(function(e,n){var c=(0,o.getEdgeTerminal)(e,"source"),h=(0,o.getEdgeTerminal)(e,"target"),d=r[c],f=r[h],p=f.x-d.x,g=f.y-d.y;0===p&&0===g&&(p=.01*Math.random(),g=.01*Math.random());var v=Math.sqrt(p*p+g*g),m=p/v,y=g/v,b=((a(e,d,f)||1+(l(d)+l(f)||0)/2)-v)*s(e),x=i[c],w=i[h],S=u?u(d):1,k=u?u(f):1;t[2*x]-=m*b/S,t[2*x+1]-=y*b/S,t[2*w]+=m*b/k,t[2*w+1]+=y*b/k})},e.prototype.calGravity=function(t,e){for(var n=this,r=n.center,i=n.gravity,a=n.degrees,s=e.length,l=0;li.maxSpeed){var u=i.maxSpeed/l;a*=u,s*=u}e[2*r]=a,e[2*r+1]=s})},e.prototype.updatePosition=function(t,e,n){n.forEach(function(n,r){if((0,o.isNumber)(n.fx)&&(0,o.isNumber)(n.fy))return n.x=n.fx,void(n.y=n.fy);var i=t[2*r]*e,a=t[2*r+1]*e;n.x+=i,n.y+=a})},e.prototype.stop=function(){this.timeInterval&&"undefined"!==typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"gForce"},e}(i.Base);e.GForceLayout=s},1484:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i{"use strict";n.r(e),n.d(e,{BRIDGE_GRAPH_NAME:()=>s,GraphType:()=>c,HierarchyNodeType:()=>h,InclusionType:()=>u,LAYOUT_CONFIG:()=>r,NodeType:()=>l,ROOT_NAME:()=>a,buildGraph:()=>da,flatGraph:()=>fa,getEdges:()=>pa,mergeConfig:()=>i});const r={graph:{meta:{rankDir:"TB",nodeSep:50,rankSep:50,edgeSep:5,align:void 0}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:100,maxLabelWidth:0,height:20},node:{width:80,height:20,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};function i(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;var n,i,o,a;const s=JSON.parse(JSON.stringify(e)),l=(null===(n=null==t?void 0:t.graph)||void 0===n?void 0:n.meta)||{},u=(null===(i=null==t?void 0:t.subScene)||void 0===i?void 0:i.meta)||{},c=(null===(o=null==t?void 0:t.nodeSize)||void 0===o?void 0:o.meta)||{},h=(null===(a=null==t?void 0:t.nodeSize)||void 0===a?void 0:a.node)||{},d=s.nodeSize.bridge;return{graph:{meta:Object.assign(s.graph.meta,l)},subScene:{meta:Object.assign(s.subScene.meta,u)},nodeSize:{meta:Object.assign(s.nodeSize.meta,c),node:Object.assign(s.nodeSize.node,h),bridge:d}}}function o(t){return"\u25ec".concat(t,"\u25ec")}const a=o("ROOT"),s=o("BRIDGE_GRAPH");var l,u,c,h;!function(t){t[t.META=0]="META",t[t.NODE=1]="NODE",t[t.BRIDGE=2]="BRIDGE"}(l||(l={})),function(t){t[t.INCLUDE=0]="INCLUDE",t[t.EXCLUDE=1]="EXCLUDE",t[t.UNSPECIFIED=2]="UNSPECIFIED"}(u||(u={})),function(t){t[t.META=0]="META",t[t.CORE=1]="CORE",t[t.BRIDGE=2]="BRIDGE"}(c||(c={})),function(t){t[t.META=0]="META",t[t.OP=1]="OP",t[t.SERIES=2]="SERIES"}(h||(h={}));var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function f(t,e){return t(e={exports:{}},e.exports),e.exports}var p=function(t,e){return t===e||t!=t&&e!=e},g=function(t,e){for(var n=t.length;n--;)if(p(t[n][0],e))return n;return-1},v=Array.prototype.splice;function m(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1},m.prototype.set=function(t,e){var n=this.__data__,r=g(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var y,b=m,x="object"==typeof d&&d&&d.Object===Object&&d,w="object"==typeof self&&self&&self.Object===Object&&self,S=x||w||Function("return this")(),k=S.Symbol,E=Object.prototype,M=E.hasOwnProperty,_=E.toString,C=k?k.toStringTag:void 0,A=Object.prototype.toString,O=k?k.toStringTag:void 0,T=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":O&&O in Object(t)?function(t){var e=M.call(t,C),n=t[C];try{t[C]=void 0;var r=!0}catch(t){}var i=_.call(t);return r&&(e?t[C]=n:delete t[C]),i}(t):function(t){return A.call(t)}(t)},I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},N=function(t){if(!I(t))return!1;var e=T(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},P=S["__core-js_shared__"],D=(y=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",L=Function.prototype.toString,R=function(t){if(null!=t){try{return L.call(t)}catch(t){}try{return t+""}catch(t){}}return""},j=/^\[object .+?Constructor\]$/,B=Function.prototype,z=Object.prototype,F=B.toString,G=z.hasOwnProperty,U=RegExp("^"+F.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=function(t){return!(!I(t)||function(t){return!!D&&D in t}(t))&&(N(t)?U:j).test(R(t))},V=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return W(n)?n:void 0},H=V(S,"Map"),Y=V(Object,"create"),X=Object.prototype.hasOwnProperty,q=Object.prototype.hasOwnProperty;function K(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991},xt={};xt["[object Float32Array]"]=xt["[object Float64Array]"]=xt["[object Int8Array]"]=xt["[object Int16Array]"]=xt["[object Int32Array]"]=xt["[object Uint8Array]"]=xt["[object Uint8ClampedArray]"]=xt["[object Uint16Array]"]=xt["[object Uint32Array]"]=!0,xt["[object Arguments]"]=xt["[object Array]"]=xt["[object ArrayBuffer]"]=xt["[object Boolean]"]=xt["[object DataView]"]=xt["[object Date]"]=xt["[object Error]"]=xt["[object Function]"]=xt["[object Map]"]=xt["[object Number]"]=xt["[object Object]"]=xt["[object RegExp]"]=xt["[object Set]"]=xt["[object String]"]=xt["[object WeakMap]"]=!1;var wt=function(t){return function(e){return t(e)}},St=f(function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n&&x.process,o=function(){try{return r&&r.require&&r.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=o}),kt=St&&St.isTypedArray,Et=kt?wt(kt):function(t){return lt(t)&&bt(t.length)&&!!xt[T(t)]},Mt=Object.prototype.hasOwnProperty,_t=function(t,e){var n=pt(t),r=!n&&ft(t),i=!n&&!r&&vt(t),o=!n&&!r&&!i&&Et(t),a=n||r||i||o,s=a?function(t,e){for(var n=-1,r=Array(t);++ns))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var h=-1,d=!0,f=2&n?new Le:void 0;for(o.set(t,e),o.set(e,t);++h0&&r(l)?n>1?t(l,n-1,r,i,o):Ht(o,l):i||(o[o.length]=l)}return o},Kn=Math.max,Qn=function(t,e,n){return e=Kn(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Kn(r.length-e,0),a=Array(o);++i0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Zn),tr=function(t,e){return Jn(Qn(t,e,Oe),t+"")},er=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o-1},ir=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r=200){var u=e?null:or(t);if(u)return Fe(u);a=!1,i=je,l=new Le}else l=e?[]:s;t:for(;++ro){var a=i;i=o,o=a}return i+"\x01"+o+"\x01"+(ur.isUndefined(r)?"\0":r)}function gr(t,e){return pr(t,e.v,e.w,e.name)}hr.prototype._nodeCount=0,hr.prototype._edgeCount=0,hr.prototype.isDirected=function(){return this._isDirected},hr.prototype.isMultigraph=function(){return this._isMultigraph},hr.prototype.isCompound=function(){return this._isCompound},hr.prototype.setGraph=function(t){return this._label=t,this},hr.prototype.graph=function(){return this._label},hr.prototype.setDefaultNodeLabel=function(t){return ur.isFunction(t)||(t=ur.constant(t)),this._defaultNodeLabelFn=t,this},hr.prototype.nodeCount=function(){return this._nodeCount},hr.prototype.nodes=function(){return ur.keys(this._nodes)},hr.prototype.sources=function(){var t=this;return ur.filter(this.nodes(),function(e){return ur.isEmpty(t._in[e])})},hr.prototype.sinks=function(){var t=this;return ur.filter(this.nodes(),function(e){return ur.isEmpty(t._out[e])})},hr.prototype.setNodes=function(t,e){var n=arguments,r=this;return ur.each(t,function(t){n.length>1?r.setNode(t,e):r.setNode(t)}),this},hr.prototype.setNode=function(t,e){return ur.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},hr.prototype.node=function(t){return this._nodes[t]},hr.prototype.hasNode=function(t){return ur.has(this._nodes,t)},hr.prototype.removeNode=function(t){var e=this;if(ur.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],ur.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),ur.each(ur.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],ur.each(ur.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},hr.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(ur.isUndefined(e))e="\0";else{for(var n=e+="";!ur.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},hr.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},hr.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},hr.prototype.children=function(t){if(ur.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return ur.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},hr.prototype.predecessors=function(t){var e=this._preds[t];if(e)return ur.keys(e)},hr.prototype.successors=function(t){var e=this._sucs[t];if(e)return ur.keys(e)},hr.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return ur.union(e,this.successors(t))},hr.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},hr.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;ur.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),ur.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var r={};function i(t){var o=n.parent(t);return void 0===o||e.hasNode(o)?(r[t]=o,o):o in r?r[o]:i(o)}return this._isCompound&&ur.each(e.nodes(),function(t){e.setParent(t,i(t))}),e},hr.prototype.setDefaultEdgeLabel=function(t){return ur.isFunction(t)||(t=ur.constant(t)),this._defaultEdgeLabelFn=t,this},hr.prototype.edgeCount=function(){return this._edgeCount},hr.prototype.edges=function(){return ur.values(this._edgeObjs)},hr.prototype.setPath=function(t,e){var n=this,r=arguments;return ur.reduce(t,function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i}),this},hr.prototype.setEdge=function(){var t,e,n,r,i=!1,o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,n=o.name,2===arguments.length&&(r=arguments[1],i=!0)):(t=o,e=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,e=""+e,ur.isUndefined(n)||(n=""+n);var a=pr(this._isDirected,t,e,n);if(ur.has(this._edgeLabels,a))return i&&(this._edgeLabels[a]=r),this;if(!ur.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[a]=i?r:this._defaultEdgeLabelFn(t,e,n);var s=function(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}(this._isDirected,t,e,n);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[a]=s,dr(this._preds[e],t),dr(this._sucs[t],e),this._in[e][a]=s,this._out[t][a]=s,this._edgeCount++,this},hr.prototype.edge=function(t,e,n){var r=1===arguments.length?gr(this._isDirected,arguments[0]):pr(this._isDirected,t,e,n);return this._edgeLabels[r]},hr.prototype.hasEdge=function(t,e,n){var r=1===arguments.length?gr(this._isDirected,arguments[0]):pr(this._isDirected,t,e,n);return ur.has(this._edgeLabels,r)},hr.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?gr(this._isDirected,arguments[0]):pr(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],fr(this._preds[e],t),fr(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},hr.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var r=ur.values(n);return e?ur.filter(r,function(t){return t.v===e}):r}},hr.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var r=ur.values(n);return e?ur.filter(r,function(t){return t.w===e}):r}},hr.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))};var vr={Graph:cr,version:"2.1.8"},mr={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:yr(t),edges:br(t)};return ur.isUndefined(t.graph())||(e.value=ur.clone(t.graph())),e},read:function(t){var e=new cr(t.options).setGraph(t.value);return ur.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),ur.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}};function yr(t){return ur.map(t.nodes(),function(e){var n=t.node(e),r=t.parent(e),i={v:e};return ur.isUndefined(n)||(i.value=n),ur.isUndefined(r)||(i.parent=r),i})}function br(t){return ur.map(t.edges(),function(e){var n=t.edge(e),r={v:e.v,w:e.w};return ur.isUndefined(e.name)||(r.name=e.name),ur.isUndefined(n)||(r.value=n),r})}var xr=wr;function wr(){this._arr=[],this._keyIndices={}}wr.prototype.size=function(){return this._arr.length},wr.prototype.keys=function(){return this._arr.map(function(t){return t.key})},wr.prototype.has=function(t){return ur.has(this._keyIndices,t)},wr.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},wr.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},wr.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!ur.has(n,t)){var r=this._arr,i=r.length;return n[t]=i,r.push({key:t,priority:e}),this._decrease(i),!0}return!1},wr.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},wr.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},wr.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].priority0&&(i=s.removeMin(),(o=a[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(l);return a}(t,String(e),n||kr,r||function(e){return t.outEdges(e)})},kr=ur.constant(1),Er=function(t){var e=0,n=[],r={},i=[];function o(a){var s=r[a]={onStack:!0,lowlink:e,index:e++};if(n.push(a),t.successors(a).forEach(function(t){ur.has(r,t)?r[t].onStack&&(s.lowlink=Math.min(s.lowlink,r[t].index)):(o(t),s.lowlink=Math.min(s.lowlink,r[t].lowlink))}),s.lowlink===s.index){var l,u=[];do{l=n.pop(),r[l].onStack=!1,u.push(l)}while(a!==l);i.push(u)}}return t.nodes().forEach(function(t){ur.has(r,t)||o(t)}),i},Mr=ur.constant(1),_r=Cr;function Cr(t){var e={},n={},r=[];if(ur.each(t.sinks(),function i(o){if(ur.has(n,o))throw new Ar;ur.has(e,o)||(n[o]=!0,e[o]=!0,ur.each(t.predecessors(o),i),delete n[o],r.push(o))}),ur.size(e)!==t.nodeCount())throw new Ar;return r}function Ar(){}Cr.CycleException=Ar,Ar.prototype=new Error;var Or=function(t,e,n){ur.isArray(e)||(e=[e]);var r=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],o={};return ur.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);Tr(t,e,"post"===n,o,r,i)}),i};function Tr(t,e,n,r,i,o){ur.has(r,e)||(r[e]=!0,n||o.push(e),ur.each(i(e),function(e){Tr(t,e,n,r,i,o)}),n&&o.push(e))}var Ir,Nr={Graph:vr.Graph,json:mr,alg:{components:function(t){var e,n={},r=[];function i(r){ur.has(n,r)||(n[r]=!0,e.push(r),ur.each(t.successors(r),i),ur.each(t.predecessors(r),i))}return ur.each(t.nodes(),function(t){e=[],i(t),e.length&&r.push(e)}),r},dijkstra:Sr,dijkstraAll:function(t,e,n){return ur.transform(t.nodes(),function(r,i){r[i]=Sr(t,i,e,n)},{})},findCycles:function(t){return ur.filter(Er(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})},floydWarshall:function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}})}),i.forEach(function(t){var e=r[t];i.forEach(function(n){var o=r[n];i.forEach(function(n){var r=o[t],i=e[n],a=o[n],s=r.distance+i.distance;s0;){if(n=o.removeMin(),ur.has(i,n))r.setEdge(n,i[n]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(n).forEach(a)}return r},tarjan:Er,topsort:_r},version:vr.version};try{Ir=Nr}catch(r){}Ir||(Ir=window.graphlib);var Pr,Dr=Ir,Lr=function(t,e,n){if(!I(n))return!1;var r=typeof e;return!!("number"==r?Pt(n)&&yt(e,n.length):"string"==r&&e in n)&&p(n[e],t)},Rr=Object.prototype,jr=Rr.hasOwnProperty,Br=tr(function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&Lr(e[0],e[1],i)&&(r=1);++n-1?i[o?e[a]:a]:void 0}}(function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:function(t){var e=Vr(t),n=e%1;return e==e?n?e-n:e:0}(n);return i<0&&(i=Hr(r+i,0)),er(t,Sn(e),i)}),Xr=function(t){return null!=t&&t.length?qn(t,1):[]},qr=function(t,e,n){for(var r=-1,i=t.length;++re},Qr=function(t,e,n){(void 0!==n&&!p(t[e],n)||void 0===n&&!(e in t))&&it(t,e,n)},Zr=Function.prototype,$r=Object.prototype,Jr=Zr.toString,ti=$r.hasOwnProperty,ei=Jr.call(Object),ni=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},ri=function(t,e,n,r,i,o,a){var s=ni(t,n),l=ni(e,n),u=a.get(l);if(u)Qr(t,n,u);else{var c=o?o(s,l,n+"",t,e,a):void 0,h=void 0===c;if(h){var d=pt(l),f=!d&&vt(l),p=!d&&!f&&Et(l);c=l,d||f||p?pt(s)?c=s:ar(s)?c=zt(s):f?(h=!1,c=Bt(l,!0)):p?(h=!1,c=pe(l,!0)):c=[]:function(t){if(!lt(t)||"[object Object]"!=T(t))return!1;var e=Yt(t);if(null===e)return!0;var n=ti.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Jr.call(n)==ei}(l)||ft(l)?(c=s,ft(s)?c=function(t){return st(t,jt(t))}(s):I(s)&&!N(s)||(c=ye(l))):h=!1}h&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),Qr(t,n,c)}},ii=function t(e,n,r,i,o){e!==n&&_e(n,function(a,s){if(o||(o=new et),I(a))ri(e,n,s,r,t,i,o);else{var l=i?i(ni(e,s),a,s+"",e,n,o):void 0;void 0===l&&(l=a),Qr(e,s,l)}},jt)},oi=function(t){return tr(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&Lr(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++re||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&t=s?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)})},gi=tr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Lr(t,e[0],e[1])?e=[]:n>2&&Lr(e[0],e[1],e[2])&&(e=[e[0]]),pi(t,qn(e,1),[])}),vi=0;try{Pr={cloneDeep:function(t){return Ee(t,5)},constant:Me,defaults:Br,each:Ne,filter:kn,find:Yr,flatten:Xr,forEach:Ie,forIn:function(t,e){return null==t?t:_e(t,Te(e),jt)},has:_n,isUndefined:An,last:function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},map:Tn,mapValues:function(t,e){var n={};return e=Sn(e),Ce(t,function(t,r,i){it(n,r,e(t,r,i))}),n},max:function(t){return t&&t.length?qr(t,Oe,Kr):void 0},merge:oi,min:function(t){return t&&t.length?qr(t,Oe,ai):void 0},minBy:function(t,e){return t&&t.length?qr(t,Sn(e),ai):void 0},now:function(){return S.Date.now()},pick:ui,range:di,reduce:Pn,sortBy:gi,uniqueId:function(t){var e=++vi;return dn(t)+e},values:lr,zipObject:function(t,e){return function(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r0;--s)if(r=e[s].dequeue()){i=i.concat(Ei(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return mi.flatten(mi.map(r,function(e){return t.outEdges(e.v,e.w)}),!0)}(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},r={};return mi.forEach(t.nodes(),function i(o){mi.has(r,o)||(r[o]=!0,n[o]=!0,mi.forEach(t.outEdges(o),function(t){mi.has(n,t.w)?e.push(t):i(t.w)}),delete n[o])}),e}(t);mi.forEach(e,function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,mi.uniqueId("rev"))})},Ci=function(t){mi.forEach(t.edges(),function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})},Ai=Dr.Graph,Oi={addDummyNode:Ti,simplify:function(t){var e=(new Ai).setGraph(t.graph());return mi.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),mi.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e},asNonCompoundGraph:function(t){var e=new Ai({multigraph:t.isMultigraph()}).setGraph(t.graph());return mi.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),mi.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=mi.map(t.nodes(),function(e){var n={};return mi.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return mi.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=mi.map(t.nodes(),function(e){var n={};return mi.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return mi.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,l=t.width/2,u=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),n=u*a/s,r=u):(a<0&&(l=-l),n=l,r=l*s/a),{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=mi.map(mi.range(Ii(t)+1),function(){return[]});return mi.forEach(t.nodes(),function(n){var r=t.node(n),i=r.rank;mi.isUndefined(i)||(e[i][r.order]=n)}),e},normalizeRanks:function(t){var e=mi.min(mi.map(t.nodes(),function(e){return t.node(e).rank}));mi.forEach(t.nodes(),function(n){var r=t.node(n);mi.has(r,"rank")&&(r.rank-=e)})},removeEmptyRanks:function(t){var e=mi.min(mi.map(t.nodes(),function(e){return t.node(e).rank})),n=[];mi.forEach(t.nodes(),function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=t.graph().nodeRankFactor;mi.forEach(n,function(e,n){mi.isUndefined(e)&&n%i!=0?--r:r&&mi.forEach(e,function(e){t.node(e).rank+=r})})},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),Ti(t,"border",i,e)},maxRank:Ii,partition:function(t,e){var n={lhs:[],rhs:[]};return mi.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=mi.now();try{return e()}finally{console.log(t+" time: "+(mi.now()-n)+"ms")}},notime:function(t,e){return e()}};function Ti(t,e,n,r){var i;do{i=mi.uniqueId(r)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function Ii(t){return mi.max(mi.map(t.nodes(),function(e){var n=t.node(e).rank;if(!mi.isUndefined(n))return n}))}var Ni=function(t){t.graph().dummyChains=[],mi.forEach(t.edges(),function(e){!function(t,e){var n,r,i,o=e.v,a=t.node(o).rank,s=e.w,l=t.node(s).rank,u=e.name,c=t.edge(e),h=c.labelRank;if(l!==a+1){for(t.removeEdge(e),i=0,++a;aa.lim&&(s=a,l=!0);var u=mi.filter(e.edges(),function(e){return l===no(t,t.node(e.v),s)&&l!==no(t,t.node(e.w),s)});return mi.minBy(u,function(t){return Ui(e,t)})}function eo(t,e,n,r){var i=n.v,o=n.w;t.removeEdge(i,o),t.setEdge(r.v,r.w,{}),Zi(t),Ki(t,e),function(t,e){var n=mi.find(t.nodes(),function(t){return!e.node(t).parent}),r=Vi(t,n);r=r.slice(1),mi.forEach(r,function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)})}(t,e)}function no(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}qi.initLowLimValues=Zi,qi.initCutValues=Ki,qi.calcCutValue=Qi,qi.leaveEdge=Ji,qi.enterEdge=to,qi.exchangeEdges=eo;var ro=Di,io=ro;function oo(t){Xi(t)}var ao=function(t){var e=Oi.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(r,i){var o=t.children(r);o&&o.length&&mi.forEach(o,function(t){n(t,i+1)}),e[r]=i}return mi.forEach(t.children(),function(t){n(t,1)}),e}(t),r=mi.max(mi.values(n))-1,i=2*r+1;t.graph().nestingRoot=e,mi.forEach(t.edges(),function(e){t.edge(e).minlen*=i});var o=function(t){return mi.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;mi.forEach(t.children(),function(a){lo(t,e,i,o,r,n,a)}),t.graph().nodeRankFactor=i},so=function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,mi.forEach(t.edges(),function(e){t.edge(e).nestingEdge&&t.removeEdge(e)})};function lo(t,e,n,r,i,o,a){var s=t.children(a);if(s.length){var l=Oi.addBorderNode(t,"_bt"),u=Oi.addBorderNode(t,"_bb"),c=t.node(a);t.setParent(l,a),c.borderTop=l,t.setParent(u,a),c.borderBottom=u,mi.forEach(s,function(s){lo(t,e,n,r,i,o,s);var c=t.node(s),h=c.borderTop?c.borderTop:s,d=c.borderBottom?c.borderBottom:s,f=c.borderTop?r:2*r,p=h!==d?1:i-o[a]+1;t.setEdge(l,h,{weight:f,minlen:p,nestingEdge:!0}),t.setEdge(d,u,{weight:f,minlen:p,nestingEdge:!0})}),t.parent(a)||t.setEdge(e,l,{weight:0,minlen:i+o[a]})}else a!==e&&t.setEdge(e,a,{weight:0,minlen:n})}function uo(t,e,n,r,i,o){var a={width:0,height:0,rank:o,borderType:e},s=i[e][o-1],l=Oi.addDummyNode(t,"border",a,n);i[e][o]=l,t.setParent(l,r),s&&t.setEdge(s,l,{weight:1})}var co=function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||fo(t)},ho=function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){mi.forEach(t.nodes(),function(e){go(t.node(e))}),mi.forEach(t.edges(),function(e){var n=t.edge(e);mi.forEach(n.points,go),mi.has(n,"y")&&go(n)})}(t),"lr"!==e&&"rl"!==e||(function(t){mi.forEach(t.nodes(),function(e){vo(t.node(e))}),mi.forEach(t.edges(),function(e){var n=t.edge(e);mi.forEach(n.points,vo),mi.has(n,"x")&&vo(n)})}(t),fo(t))};function fo(t){mi.forEach(t.nodes(),function(e){po(t.node(e))}),mi.forEach(t.edges(),function(e){po(t.edge(e))})}function po(t){var e=t.width;t.width=t.height,t.height=e}function go(t){t.y=-t.y}function vo(t){var e=t.x;t.x=t.y,t.y=e}var mo=function(t,e){for(var n=0,r=1;r0;)e%2&&(n+=s[e+1]),s[e=e-1>>1]+=t.weight;l+=t.weight*n})),l}function bo(t,e,n){for(var r;e.length&&(r=mi.last(e)).i<=n;)e.pop(),t.push(r.vs),n++;return n}var xo=function t(e,n,r,i){var o=e.children(n),a=e.node(n),s=a?a.borderLeft:void 0,l=a?a.borderRight:void 0,u={};s&&(o=mi.filter(o,function(t){return t!==s&&t!==l}));var c=function(t,e){return mi.map(e,function(e){var n=t.inEdges(e);if(n.length){var r=mi.reduce(n,function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}},{sum:0,weight:0});return{v:e,barycenter:r.sum/r.weight,weight:r.weight}}return{v:e}})}(e,o);mi.forEach(c,function(n){if(e.children(n.v).length){var o=t(e,n.v,r,i);u[n.v]=o,mi.has(o,"barycenter")&&(a=n,s=o,mi.isUndefined(a.barycenter)?(a.barycenter=s.barycenter,a.weight=s.weight):(a.barycenter=(a.barycenter*a.weight+s.barycenter*s.weight)/(a.weight+s.weight),a.weight+=s.weight))}var a,s});var h=function(t,e){var n={};return mi.forEach(t,function(t,e){var r=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};mi.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)}),mi.forEach(e.edges(),function(t){var e=n[t.v],r=n[t.w];mi.isUndefined(e)||mi.isUndefined(r)||(r.indegree++,e.out.push(n[t.w]))}),function(t){var e=[];function n(t){return function(e){e.merged||(mi.isUndefined(e.barycenter)||mi.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function r(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var i=t.pop();e.push(i),mi.forEach(i.in.reverse(),n(i)),mi.forEach(i.out,r(i))}return mi.map(mi.filter(e,function(t){return!t.merged}),function(t){return mi.pick(t,["vs","i","barycenter","weight"])})}(mi.filter(n,function(t){return!t.indegree}))}(c,r);!function(t,e){mi.forEach(t,function(t){t.vs=mi.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(h,u);var d=function(t,e){var n,r=Oi.partition(t,function(t){return mi.has(t,"barycenter")}),i=r.lhs,o=mi.sortBy(r.rhs,function(t){return-t.i}),a=[],s=0,l=0,u=0;i.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),u=bo(a,o,u),mi.forEach(i,function(t){u+=t.vs.length,a.push(t.vs),s+=t.barycenter*t.weight,l+=t.weight,u=bo(a,o,u)});var c={vs:mi.flatten(a,!0)};return l&&(c.barycenter=s/l,c.weight=l),c}(h,i);if(s&&(d.vs=mi.flatten([s,d.vs,l],!0),e.predecessors(s).length)){var f=e.node(e.predecessors(s)[0]),p=e.node(e.predecessors(l)[0]);mi.has(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+f.order+p.order)/(d.weight+2),d.weight+=2}return d},wo=Dr.Graph,So=Dr.Graph,ko=function(t){var e=Oi.maxRank(t),n=Eo(t,mi.range(1,e+1),"inEdges"),r=Eo(t,mi.range(e-1,-1,-1),"outEdges"),i=function(t){var e={},n=mi.filter(t.nodes(),function(e){return!t.children(e).length}),r=mi.max(mi.map(n,function(e){return t.node(e).rank})),i=mi.map(mi.range(r+1),function(){return[]}),o=mi.sortBy(n,function(e){return t.node(e).rank});return mi.forEach(o,function n(r){if(!mi.has(e,r)){e[r]=!0;var o=t.node(r);i[o.rank].push(r),mi.forEach(t.successors(r),n)}}),i}(t);_o(t,i);for(var o,a=Number.POSITIVE_INFINITY,s=0,l=0;l<4;++s,++l){Mo(s%2?n:r,s%4>=2),i=Oi.buildLayerMatrix(t);var u=mo(t,i);un){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function Oo(t,e,n){if(e>n){var r=e;e=n,n=r}return mi.has(t[e],n)}var To=function(t){var e,n=Oi.buildLayerMatrix(t),r=mi.merge(function(t,e){var n={};return mi.reduce(e,function(e,r){var i=0,o=0,a=e.length,s=mi.last(r);return mi.forEach(r,function(e,l){var u=function(t,e){if(t.node(e).dummy)return mi.find(t.predecessors(e),function(e){return t.node(e).dummy})}(t,e),c=u?t.node(u).order:a;(u||e===s)&&(mi.forEach(r.slice(o,l+1),function(e){mi.forEach(t.predecessors(e),function(r){var o=t.node(r),a=o.order;!(aa)&&Ao(n,e,s)})})}return mi.reduce(e,function(e,n){var i,o=-1,a=0;return mi.forEach(n,function(s,l){if("border"===t.node(s).dummy){var u=t.predecessors(s);u.length&&(i=t.node(u[0]).order,r(n,a,l,o,i),a=l,o=i)}r(n,a,n.length,i,e.length)}),n}),n}(t,n)),i={};mi.forEach(["u","d"],function(o){e="u"===o?n:mi.values(n).reverse(),mi.forEach(["l","r"],function(n){"r"===n&&(e=mi.map(e,function(t){return mi.values(t).reverse()}));var a=("u"===o?t.predecessors:t.successors).bind(t),s=function(t,e,n,r){var i={},o={},a={};return mi.forEach(e,function(t){mi.forEach(t,function(t,e){i[t]=t,o[t]=t,a[t]=e})}),mi.forEach(e,function(t){var e=-1;mi.forEach(t,function(t){var s=r(t);if(s.length)for(var l=((s=mi.sortBy(s,function(t){return a[t]})).length-1)/2,u=Math.floor(l),c=Math.ceil(l);u<=c;++u){var h=s[u];o[t]===t&&el||u>e[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,l=0,u=a[l],c=!0;n!==i.w;){if(r=t.node(n),c){for(;(u=a[l])!==s&&t.node(u).maxRank1&&void 0!==arguments[1]?arguments[1]:{};this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=u.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=l.META,this.path=[],this.name=t,this.metaGraph=ea(t,c.META,e)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(t=>this.metaGraph.node(t))}leaves(){let t,e=[],n=[this];for(;n.length;){let r=n.shift();r.isGroupNode?(t=r.metaGraph,t.nodes().forEach(e=>n.push(t.node(e)))):e.push(r.name)}return e}}class $o{constructor(t,e){this.v=t,this.w=e,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(t,e){this.baseEdgeList.push(t)}}function Jo(t){return new Zo(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function ta(t,e){return new $o(t,e)}function ea(t,e,n){const r=n||{},i=new Xo.Graph(r);return i.setGraph({name:t,rankdir:r.rankdir,type:e,align:r.align}),i}class na{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.graphOptions=t,this.index={},this.graphOptions.compound=!0,this.root=Jo(a,this.graphOptions),this.index[a]=this.root}getNodeMap(){return this.index}node(t){return this.index[t]}setNode(t,e){this.index[t]=e}getBridgeGraph(t){const e=this.index[t];if(!e)throw Error("Could not find node in hierarchy: "+t);if(!("metaGraph"in e))return null;const n=e;if(n.bridgeGraph)return n.bridgeGraph;const r=ea(s,c.BRIDGE,this.graphOptions);if(n.bridgeGraph=r,!e.parentNode||!("metaGraph"in e.parentNode))return r;const i=e.parentNode;return[i.metaGraph,this.getBridgeGraph(i.name)].forEach(e=>{e.edges().filter(e=>e.v===t||e.w===t).forEach(n=>{const i=n.w===t;e.edge(n).baseEdgeList.forEach(e=>{const[o,a]=i?[e.w,n.v]:[e.v,n.w],s=this.getChildName(t,o),l={v:i?a:s,w:i?s:a};let u=r.edge(l);u||(u=ta(l.v,l.w),u.inbound=i,r.setEdge(l.v,l.w,u)),u.addBaseEdge(e,this)})})}),r}getChildName(t,e){let n=this.index[e];for(;n;){if(n.parentNode&&n.parentNode.name===t)return n.name;n=n.parentNode}throw Error("Could not find immediate child for descendant: "+e)}getPredecessors(t){const e=this.index[t];if(!e)throw Error("Could not find node with name: "+t);return this.getOneWayEdges(e,!0)}getSuccessors(t){const e=this.index[t];if(!e)throw Error("Could not find node with name: "+t);return this.getOneWayEdges(e,!1)}getOneWayEdges(t,e){const n=[];if(!t.parentNode||!t.parentNode.isGroupNode)return n;const r=t.parentNode,i=r.metaGraph,o=this.getBridgeGraph(r.name);return ra(i,t,e,n),ra(o,t,e,n),n}}function ra(t,e,n,r){(n?t.inEdges(e.name):t.outEdges(e.name)).forEach(e=>{const n=t.edge(e);r.push(n)})}class ia{constructor(t){this.hierarchy=t,this.index={},this.hasSubHierarchy={},this.root=new sa(this.hierarchy.root,this.hierarchy.graphOptions),this.index[t.root.name]=this.root,this.buildSubHierarchy(t.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(t){if(t in this.hasSubHierarchy)return;this.hasSubHierarchy[t]=!0;const e=this.index[t];if(e.node.type!==l.META)return;const n=e,r=n.node.metaGraph,i=n.coreGraph;r.nodes().forEach(t=>{const e=this.getOrCreateRenderNodeByName(t);i.setNode(t,e)}),r.edges().forEach(t=>{const e=r.edge(t),n=new aa(e);i.setEdge(t.v,t.w,n)});const o=n.node.parentNode;if(!o)return;const a=this.getRenderNodeByName(o.name),s=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r{const n=c.edge(e),h=!!r.node(e.w),[d,f]=h?[e.w,e.v]:[e.v,e.w],p=e=>{const n=h?{v:e,w:t}:{v:t,w:e};return a.coreGraph.edge(n)};let g=p(f);g||(g=p(s(h,f,o.name)));const v=s(h,t),m=s(h,f,t);let y=i.node(m);if(!y){let t=i.node(v);if(!t){const e={name:v,type:l.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:u.UNSPECIFIED,inbound:h,attr:{}};t=new oa(e),this.index[v]=t,i.setNode(v,t)}const e={name:m,type:l.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:u.UNSPECIFIED,inbound:h,attr:{}};y=new oa(e),this.index[m]=y,i.setNode(m,y),i.setParent(m,v),t.node.cardinality++}const b=new aa(n);b.adjoiningMetaEdge=g,h?i.setEdge(m,d,b):i.setEdge(d,m,b)})}getOrCreateRenderNodeByName(t){if(!t)return null;if(t in this.index)return this.index[t];const e=this.getNodeByName(t);return e?(this.index[t]=e.isGroupNode?new sa(e,this.hierarchy.graphOptions):new oa(e),this.index[t]):null}getRenderNodeByName(t){return this.index[t]}getNodeByName(t){return this.hierarchy.node(t)}}class oa{constructor(t){this.node=t,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=t.width||0,this.height=t.height||0,this.displayName=t.name,this.attr=t.attr}}class aa{constructor(t){this.metaEdge=t,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class sa extends oa{constructor(t,e){super(t);const n=t.metaGraph.graph();e.compound=!0,this.coreGraph=ea(n.name,c.CORE,e)}}function la(t,e){t.node.isGroupNode&&function(t,e){const n=i(e);t.coreGraph.nodes().map(e=>t.coreGraph.node(e)).forEach(t=>{var r,i,o,a,s,u;const{height:c,width:h}=t;switch(t.node.type){case l.NODE:Object.assign(t,n.nodeSize.node),t.height=c||n.nodeSize.node.height,t.width=h||n.nodeSize.node.width;break;case l.BRIDGE:Object.assign(t,n.nodeSize.bridge);break;case l.META:t.expanded?la(t,e):(Object.assign(t,n.nodeSize.meta),t.height=n.nodeSize.meta.height,t.width=n.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+t.node.type)}if(!t.expanded){const n=t.attr;!function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.coreBox.width=t.width,t.coreBox.height=t.height,!e){const e="".concat(t.displayName).length,n=3;t.width=Math.max(t.coreBox.width,e*n)}}(t,e&&(0===t.node.type&&!!(null===(i=null===(r=null==e?void 0:e.nodeSize)||void 0===r?void 0:r.meta)||void 0===i?void 0:i.width)||1===t.node.type&&(!!(null===(a=null===(o=null==e?void 0:e.nodeSize)||void 0===o?void 0:o.node)||void 0===a?void 0:a.width)||!!n.width)||2===t.node.type&&!!(null===(u=null===(s=null==e?void 0:e.nodeSize)||void 0===s?void 0:s.bridge)||void 0===u?void 0:u.width)))}})}(t,e),t.node.type===l.META&&function(t,e){const n=i(e),r=n.subScene.meta;Object.assign(t,r);const{nodeSep:o,rankSep:a,edgeSep:s,align:u}=n.graph.meta,c={nodesep:o,ranksep:a,edgesep:s,align:u};Object.assign(t.coreBox,function(t,e){const{ranksep:n,nodesep:r,edgesep:i,align:o}=e;Object.assign(t.graph(),{ranksep:n,nodesep:r,edgesep:i,align:o});const a=[];if(t.nodes().forEach(e=>{t.node(e).node.type!==l.BRIDGE&&a.push(e)}),!a.length)return{width:0,height:0};qo(t);let s=1/0,u=1/0,c=-1/0,h=-1/0;return a.forEach(e=>{const n=t.node(e),r=.5*n.width,i=n.x-r,o=n.x+r;s=ic?o:c;const a=.5*n.height,l=n.y-a,d=n.y+a;u=lh?d:h}),t.edges().forEach(e=>{const n=t.edge(e),r=t.node(n.metaEdge.v),i=t.node(n.metaEdge.w);if(3===n.points.length&&function(t){let e=ua(t[0],t[1]);for(let n=1;n1)return!1;e=r}return!0}(n.points)){if(null!=r){const t=r.expanded?r.x:ca(r);n.points[0].x=t}if(null!=i){const t=i.expanded?i.x:ca(i);n.points[2].x=t}n.points=[n.points[0],n.points[1]]}const o=n.points[n.points.length-2];null!=i&&(n.points[n.points.length-1]=ha(o,i));const a=n.points[1];null!=r&&(n.points[0]=ha(a,r)),n.points.forEach(t=>{s=t.xc?t.x:c,u=t.yh?t.y:h})}),t.nodes().forEach(e=>{const n=t.node(e);n.x-=s,n.y-=u}),t.edges().forEach(e=>{t.edge(e).points.forEach(t=>{t.x-=s,t.y-=u})}),{width:c-s,height:h-u}}(t.coreGraph,c));let h=0;t.coreGraph.nodeCount()>0&&h++;const d=h<=1?0:h;t.coreBox.width+=d+d,t.coreBox.height=r.labelHeight+t.coreBox.height,t.width=t.coreBox.width+r.paddingLeft+r.paddingRight,t.height=t.paddingTop+t.coreBox.height+t.paddingBottom}(t,e)}function ua(t,e){const n=e.x-t.x,r=e.y-t.y;return 180*Math.atan(r/n)/Math.PI}function ca(t){return t.expanded?t.x:t.x-t.width/2+0+t.coreBox.width/2}function ha(t,e){const n=e.expanded?e.x:ca(e),r=e.y,i=t.x-n,o=t.y-r;let a,s,l=e.expanded?e.width:e.coreBox.width,u=e.expanded?e.height:e.coreBox.height;return Math.abs(o)*l/2>Math.abs(i)*u/2?(o<0&&(u=-u),a=0===o?0:u/2*i/o,s=u/2):(i<0&&(l=-l),a=l/2,s=0===i?0:l/2*o/i),{x:n+a,y:r+s}}function da(t,e,n){var i,o,a,s;const l=t.nodes.filter((t,e,n)=>n.findIndex(e=>e.id===t.id)!==e).map(t=>t.id);if(l.length)throw new Error("Duplicated ids found: ".concat(l.join(", ")));const u=function(t){const e={nodes:[]},n=t.compound,r=Object.keys(n||{}),i=new Map,o=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(i.has(t))return i.get(t);for(let i=0;it.edges.filter(t=>t.w===e).map(t=>({name:t.v}));return t.nodes.forEach(t=>{const n=t.id,r=[...o(n),n];let i=a(n);e.nodes.push({name:n,path:r,inputs:i,width:t.width,height:t.height,attr:Object.assign({},t)})}),e}(t),c=function(t,e){const n=(t,e)=>{for(let n of e.values())if(n.includes(t))return!0;return!1},r=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===Object.keys(t).length)return[...new Set(e)];const i=new Map(Object.keys(t).map(e=>[e,t[e]])),o={};for(let[r,a]of i)n(r,i)?o[r]=a:e=e.concat(r,a);return r(o,e)};return r(t).filter(t=>e.includes(t))}(t.compound||{},(null==e?void 0:e.expanded)||[]),h=function(t,e){return function(t){return new ia(t)}(function(t,e){const{rankDirection:n,align:r}=e,i=new na({rankdir:n,align:r});return function(t,e){Object.keys(e.nodes).forEach(n=>{const r=e.nodes[n],i=r.path;let o=t.root;o.depth=Math.max(i.length,o.depth);for(let e=0;e{let n=0;for(;t;)e[n++]=t.name,t=t.parentNode;return n-1};e.edges.forEach(a=>{r=[],i=[];let s=o(e.nodes[a.v],r),l=o(e.nodes[a.w],i);for(;r[s]===i[l];)if(s--,l--,s<0||l<0)throw Error("No difference found between ancestor paths.");const u=n[r[s+1]],c=r[s],h=i[l];let d=u.metaGraph.edge(c,h);d||(d=ta(c,h),u.metaGraph.setEdge(c,h,d)),d.addBaseEdge(a,t)})}(i,t),i}(function(t){const e=new Qo;return t.nodes.map(t=>new Ko(t)).forEach(t=>{e.nodes[t.name]=t,t.inputs.forEach(n=>{!function(t,e,n){n.name!==e.name&&t.edges.push(Object.assign(Object.assign({},n.attr),{v:n.name,w:e.name}))}(e,t,n)})}),e}(t),e))}(u,{rankDirection:(null===(o=null===(i=null==n?void 0:n.graph)||void 0===i?void 0:i.meta)||void 0===o?void 0:o.rankDir)||(null==e?void 0:e.rankDirection)||r.graph.meta.rankDir,align:(null===(s=null===(a=null==n?void 0:n.graph)||void 0===a?void 0:a.meta)||void 0===s?void 0:s.align)||r.graph.meta.align});return function(t,e){e.forEach(e=>{const n=t.getRenderInfoNodes().find(t=>t.displayName===e);let r=n&&n.node&&n.node.name||"";const i=t.getRenderNodeByName(r);if(!i)throw new Error("No nodes found: ".concat(r));i.expanded=!0,t.buildSubHierarchy(r)})}(h,c),la(h.root,n),ga(h.root)}function fa(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=JSON.parse(JSON.stringify(t)),r={nodes:[n],edges:[...n.edges]};return n.nodes.forEach(function t(e){(0===e.type||1===e.type)&&r.nodes.push(e),0===e.type&&(r.edges=r.edges.concat(e.edges)),Array.isArray(e.nodes)&&e.nodes.forEach(t)}),e&&r.nodes.forEach(t=>{const e=r.nodes.find(e=>e.id===t.parentNodeName);if(e){const n=e.x-e.width/2+e.paddingLeft,r=e.y-e.height/2+e.labelHeight+e.paddingTop;e.id!==a&&(t.x+=n,t.y+=r),0===t.type&&t.edges.forEach(e=>{e.points.forEach(e=>{e.x+=t.x-t.width/2+t.paddingLeft,e.y+=t.y-t.height/2+t.labelHeight+t.paddingTop})})}}),r}function pa(t,e,n,r){var i,o;let s=[];const l=(null===(i=n.find(e=>e.id===t))||void 0===i?void 0:i.path)||[],u=(null===(o=n.find(t=>t.id===e))||void 0===o?void 0:o.path)||[],c=[a,...l].slice(0,l.length).reverse(),h=[a,...u].slice(0,u.length);return c.forEach(i=>{const o=n.find(t=>t.id===i);s=s.concat(o.edges.filter(n=>n.baseEdgeList.some(n=>n.v===((null==r?void 0:r.v)||t)&&n.w===((null==r?void 0:r.w)||e))))}),h.filter(t=>!c.includes(t)).forEach(i=>{const o=n.find(t=>t.id===i);s=s.concat(o.edges.filter(n=>n.baseEdgeList.some(n=>n.v===((null==r?void 0:r.v)||t)&&n.w===((null==r?void 0:r.w)||e))))}),s}function ga(t){const e=t.coreGraph.nodes().map(e=>t.coreGraph.node(e));return Object.assign(Object.assign({},va(t)),{expanded:t.expanded,nodes:t.expanded?(n=e,n.map(t=>t.node.type===l.META?ga(t):va(t))):[],edges:t.expanded?ma(t):[]});var n}function va(t){return{id:t.node.name,name:t.node.name,type:t.node.type,cardinality:t.node.cardinality,attr:t.attr,parentNodeName:t.node.parentNode?t.node.parentNode.name:null,coreBox:Object.assign({},t.coreBox),x:t.x,y:t.y,width:t.width,height:t.height,radius:t.radius,labelHeight:t.labelHeight,labelOffset:t.labelOffset,outboxWidth:t.outboxWidth,paddingLeft:t.paddingLeft,paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom,path:t.node.path}}function ma(t){return t.coreGraph.edges().map(e=>({renderInfoEdge:t.coreGraph.edge(e),edge:e})).filter(t=>{let{renderInfoEdge:e}=t;return e.metaEdge}).map(e=>{let{edge:n,renderInfoEdge:r}=e;const i=function(t,e){const n=e.points.map(t=>Object.assign({},t));if(e.adjoiningMetaEdge){const r=e.adjoiningMetaEdge.points,i=e.metaEdge.inbound,o=i?r[r.length-1]:r[0],a=n[i?0:n.length-1],s=t.x-t.width/2,l=t.y-t.height/2,u=o.x-s,c=o.y-l,h=-t.paddingLeft,d=-(t.paddingTop+t.labelHeight);a.x=u+h,a.y=c+d}return n}(t,r);return{adjoiningEdge:r.adjoiningMetaEdge?{w:r.adjoiningMetaEdge.metaEdge.w,v:r.adjoiningMetaEdge.metaEdge.v}:null,inbound:r.metaEdge.inbound,w:n.w,v:n.v,points:i,weight:r.weight,baseEdgeList:r.metaEdge.baseEdgeList,parentNodeName:t.node.name}})}},1562:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=1e7,r=3.141592653589793,i=1.5707963267948966,o=.375*r,a=.625*r,s=new Map,l=.8;function u(t,e){var r=(s.get(t.id)||[]).find(function(t){return t.source===e.id||t.target===e.id}),l=t.size[0]*t.size[1],u=e.size[0]*e.size[1],c=l>u?e:t,h=l>u?t:e,d=c.x-c.size[0]/2,f=c.y-c.size[1]/2,p=c.x+c.size[0]/2,g=c.y+c.size[1]/2,v=h.x-h.size[0]/2,m=h.y-h.size[1]/2,y=h.x+h.size[0]/2,b=h.y+h.size[1]/2,x=c.x,w=c.y,S=h.x,k=h.y,E=0,M=0;if(p>=v&&y>=d&&g>=m&&b>=f){0===(M=Math.sqrt(Math.pow(S-x,2)+Math.pow(k-w,2)))&&(M=1e-7),E=10/M*100+((pv?d:v))*((gm?f:m)),E*=n}else{var _=!1,C=function(t,e,n){var r=t.x-t.size[0]/2,s=t.y-t.size[1]/2,l=t.x+t.size[0]/2,u=t.y+t.size[1]/2,c=e.x-e.size[0]/2,h=e.y-e.size[1]/2,d=e.x+e.size[0]/2,f=e.y+e.size[1]/2,p=t.x,g=t.y,v=e.x,m=e.y,y=v-p,b=Math.atan2(y,m-g),x=0,w=0,S=0,k=0;b>i?(w=s-f,x=c-l,S=parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)),k=parseFloat(x?(x/Math.sin(b)).toFixed(2):w.toFixed(2))):S=k=0(x=c-l)?parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x?(x/Math.sin(b)).toFixed(2):w.toFixed(2)):b<-i?(w=s-f)>(x=-(d-r))?parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x?(x/Math.sin(b)).toFixed(2):w.toFixed(2)):(w=h-u)>(x=Math.abs(y)>(l-r)/2?r-d:y)?parseFloat(w?(w/Math.cos(b)).toFixed(2):x.toFixed(2)):parseFloat(x&&0!==b?(x/Math.sin(b)).toFixed(2):w.toFixed(2));var E=parseFloat(b.toFixed(2)),M=n;return n&&(M=o1200||r.y>800)&&(e+=1e12);for(var i=n+1;i70&&c<110,f=h>70&&h<110;if((c<30||c>150)&&!(h<30||h>150)||c*h<0){s=!1;break}if(d&&!f||c*h<0){s=!1;break}if((u.x-t.x)*(u.x-e.x)<0){s=!1;break}if((u.y-t.y)*(u.y-e.y)<0){s=!1;break}}return s}function d(t,e){for(var n=!1,r=[10,-10,0,0],i=[0,0,10,-10],o=0;o.1?(s=d,n=!0):(a.x-=r[u],a.y-=i[u])}}return l>.1&&(l*=.5),n?c(t):0}function f(t,e){var n=0;(t.x<0||t.y<0||t.x+t.size[0]+20>1200||t.y+t.size[1]+20>800)&&(n+=1e12);for(var r=0;r0&&!(++a>=50);){var l=d(t,e);0!==l&&(o=l),i=o-n,n=o,0===i?--r:r=20}return t.forEach(function(t){t.x=t.x-t.size[0]/2,t.y=t.y-t.size[1]/2}),{nodes:t,edges:e}}},1576:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(9476);function i(t){var e=function(t,e){if("object"!=(0,r.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==(0,r.A)(e)?e:e+""}},1624:(t,e,n)=>{var r=n(7846);t.exports=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}},1653:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(9040),i=l(n(3904)),o=l(n(9869)),a=l(n(6882)),s=n(708);function l(t){return t&&t.__esModule?t:{default:t}}var u=function(t,e,n,r){void 0===n&&(n="cluster"),void 0===r&&(r=2);var i=[],o=t.nodes;return e.forEach(function(t,e){i.push(c(o,t,e,n,r))}),i},c=function(t,e,n,r,i){var o=[n],a=[],s={};return e.forEach(function(e,l){if(e<=i&&n!==l){o.push(l),a.push(t[l]);var u=t[l][r];s[u]?(s[u].count++,s[u].dists.push(e)):s[u]={count:1,dists:[e]}}}),Object.keys(s).forEach(function(t){s[t].dists=s[t].dists.sort(function(t,e){return t-e})}),{nodeIdx:n,nodeId:t[n].id,nodeIdxs:o,neighbors:a,neighborNum:o.length-1,nodeLabelCountMap:s}},h=function(t,e,n,r){var i=n.nodes;return r||(r={}),Object.keys(t).forEach(function(o){var a,s;if(!r||!r[o]){r[o]={nodes:[],edges:[]};var l=t[o],u=null===(a=e[l.start])||void 0===a?void 0:a.nodeIdxs,c=null===(s=e[l.end])||void 0===s?void 0:s.nodeIdxs;if(u&&c){var h=new Set(c),d=u.filter(function(t){return h.has(t)});if(d&&d.length){for(var f={},p=d.length,g=0;ge&&(s=e);var r=n[t.id].inDegree;l>r&&(l=r);var i=n[t.id].outDegree;u>i&&(u=i)}),t[e]={degree:s,inDegree:l,outDegree:u}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:l,minPatternNodeLabelOutDegree:u}},y=function(t,e,n,s,l,y,b){var x;if(void 0===n&&(n=!1),void 0===y&&(y="cluster"),void 0===b&&(b="cluster"),t&&t.nodes){var w=t.nodes.length;if(w){var S=(0,i.default)(t,n),k=(0,i.default)(e,n),E=g(t.nodes,S,n),M=g(e.nodes,k,n),_=f(t.nodes,y),C=_.nodeMap,A=_.nodeLabelMap,O=f(e.nodes,y),T=O.nodeMap,I=O.nodeLabelMap;p(t.edges,b,C);var N=p(e.edges,b,T).edgeLabelMap,P=[];null===k||void 0===k||k.forEach(function(t){P=P.concat(t)}),l||(l=Math.max.apply(Math,(0,r.__spreadArray)((0,r.__spreadArray)([],P,!1),[2],!1))),s||(s=l);var D=u(t,S,y,s),L=u(e,k,y,s),R=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach(function(t,r){for(var l=0,u=0,c=t.nodeIdxs,h=t.neighborNum-1;l2*e)););if(f<2*e&&(a["".concat(r,"-").concat(d)]={start:r,end:d,distance:i[r][d]},l++,++s>=n))return a;if(++u>2*e)break}lq&&(q=n.length,Y=n,X=e,H=t)});var K={},Q={},Z={},$={},J={},tt={};Object.keys(I).forEach(function(r,i){J[r]=[],n&&(tt[r]=[]);var o=-1/0,a=I[r],s={};a.forEach(function(t){var e=M["".concat(H.id,"-").concat(t.id)];if(e&&J[r].push(e),oJ[r][u]){s=!0;break}if(s)return Y.splice(e,1),"continue";var c={};i.neighbors.forEach(function(t){var e=E["".concat(n.id,"-").concat(t.id)];c["".concat(n.id,"-").concat(t.id)]={start:C[n.id].idx,end:C[t.id].idx,distance:e}}),j=h(c,D,t,j);var f=[];Object.keys(c).forEach(function(t){if(V[t])f.push(V[t]);else{var e=j[t];V[t]=d(e,W,y,b),f.push(V[t])}}),f=f.sort(function(t,e){return e-t});var p=!1;for(u=0;u=0;c--)u(c)});var et=[];null===Y||void 0===Y||Y.forEach(function(r){for(var i=C[r.id].idx,o=c(t.nodes,S[i],i,y,l).neighbors,a=!1,s=o.length-1;s>=0;s--){if(o.length+1J[h][p])o.splice(s,1);else{if(n){var g="".concat(u.id,"-").concat(r.id),x=E[g];if(p=tt[h].length-1,x>tt[h][p]){o.splice(s,1);continue}}var w=V[d]?V[d]:v(t,r,u,C,f,D,W,y,b,V,j),k="".concat(H.id,"-").concat(h);if(w<$[k][$[k].length-1])o.splice(s,1);else{var M=m(K,h,T,I),_=M.minPatternNodeLabelDegree;M.minPatternNodeLabelInDegree,M.minPatternNodeLabelOutDegree;C[u.id].degree<_&&o.splice(s,1)}}}else o.splice(s,1);else o.splice(s,1)}a||et.push({nodes:[r].concat(o)})});var nt=(0,a.default)(e,H.id,!1).length,rt={};n?(Object.keys(nt).forEach(function(t){var e=T[t].node[y];rt[e]?rt[e].push(nt[t]):rt[e]=[nt[t]]}),Object.keys(rt).forEach(function(t){rt[t].sort(function(t,e){return t-e})})):rt=J;for(var it=function(r){var i=et[r],o=i.nodes[0],s={},l={};i.nodes.forEach(function(t,e){l[t.id]={idx:e,node:t,degree:0,inDegree:0,outDegree:0};var n=t[y];s[n]?s[n]++:s[n]=1});var u=[],c={};t.edges.forEach(function(t){l[t.source]&&l[t.target]&&(u.push(t),c[t[b]]?c[t[b]]++:c[t[b]]=1,l[t.source].degree++,l[t.target].degree++,l[t.source].outDegree++,l[t.target].inDegree++)});for(var h=Object.keys(N).length,d=!1,f=0;f=0;f--){if("break"===x(f))break}if(v)return et.splice(r,1),"continue";i.edges=u;var w=(0,a.default)(i,i.nodes[0].id,!1).length;if(Object.keys(w).reverse().forEach(function(t){if(t!==i.nodes[0].id&&!v){if(w[t]===1/0){var e=l[t].node[y];if(s[e]--,s[e]rt[r][rt[r].length-1]){e=l[t].node[y];if(s[e]--,s[e]=0;E--){var M=i.nodes[E],_=l[M.id].degree,A=l[M.id].inDegree,O=l[M.id].outDegree,P=M[y],D=m(K,P,T,I),L=D.minPatternNodeLabelDegree,R=D.minPatternNodeLabelInDegree,j=D.minPatternNodeLabelOutDegree;if(n?_=0;B--){var z=u[B];if(!l[z.source]||!l[z.target]){u.splice(B,1);var F=z[b];if(c[F]--,l[z.source]&&(l[z.source].degree--,l[z.source].outDegree--),l[z.target]&&(l[z.target].degree--,l[z.target].inDegree--),N[F]&&c[F]=0;ot--){if("break"===it(ot))break}var at=et.length,st=function(t){var e=et[t],n={};e.edges.forEach(function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);n[e]?n[e]++:n[e]=1});for(var r=function(t){var e=et[t],r={};e.edges.forEach(function(t){var e="".concat(t.source,"-").concat(t.target,"-").concat(t.label);r[e]?r[e]++:r[e]=1});var i=!0;Object.keys(r).length!==Object.keys(n).length?i=!1:Object.keys(n).forEach(function(t){r[t]!==n[t]&&(i=!1)}),i&&et.splice(t,1)},i=at-1;i>t;i--)r(i);at=et.length};for(ot=0;ot<=at-1;ot++)st(ot);return et}}};e.default=y},1703:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=void 0;var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(n(1925).Graph);e.Graph=i},1772:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FORCE_LAYOUT_TYPE_MAP=e.LAYOUT_MESSAGE=void 0,e.LAYOUT_MESSAGE={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"},e.FORCE_LAYOUT_TYPE_MAP={gForce:!0,force2:!0,fruchterman:!0,forceAtlas2:!0,force:!0,"graphin-force":!0}},1780:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.id=t.id||0,this.rx=t.rx,this.ry=t.ry,this.fx=0,this.fy=0,this.mass=t.mass,this.degree=t.degree,this.g=t.g||0}return t.prototype.distanceTo=function(t){var e=this.rx-t.rx,n=this.ry-t.ry;return Math.hypot(e,n)},t.prototype.setPos=function(t,e){this.rx=t,this.ry=e},t.prototype.resetForce=function(){this.fx=0,this.fy=0},t.prototype.addForce=function(t){var e=t.rx-this.rx,n=t.ry-this.ry,r=Math.hypot(e,n);r=r<1e-4?1e-4:r;var i=this.g*(this.degree+1)*(t.degree+1)/r;this.fx+=i*e/r,this.fy+=i*n/r},t.prototype.in=function(t){return t.contains(this.rx,this.ry)},t.prototype.add=function(e){var n=this.mass+e.mass;return new t({rx:(this.rx*this.mass+e.rx*e.mass)/n,ry:(this.ry*this.mass+e.ry*e.mass)/n,mass:n,degree:this.degree+e.degree})},t}();e.default=n},1822:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(6149));e.default=function(t,e){if(!t.nodes||0===t.nodes.length)return t;var n=e.width,r=e.height,o=e.nodeMinGap,a=1e4,s=1e4;t.nodes.forEach(function(t){var e=t.size[0]||50,n=t.size[1]||50;a=Math.min(e,a),s=Math.min(n,s)});var l=new i.default;l.init(n,r,{CELL_H:s,CELL_W:a}),t.nodes.forEach(function(t){var e=l.occupyNearest(t);e&&(e.node={id:t.id,size:t.size},t.x=e.x,t.y=e.y,t.dx=e.dx,t.dy=e.dy)});for(var u=0;ua){for(var p=v=Math.ceil((c.size[0]+o)/a)-1,g=0;g-1)||l.cells[d+g+1][f].node)break;p--}l.insertColumn(d,p)}if(c.size[1]+o>s){var v;for(p=v=Math.ceil((c.size[1]+o)/s)-1,g=0;g-1)||l.cells[d][f+g+1].node)break;p--}l.insertRow(f,p)}}for(u=0;u{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(r=n(870))&&r.__esModule?r:{default:r};e.default=i,t.exports=i},1877:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;nt.x&&(i=t.x),o>t.y&&(o=t.y)}),e.forEach(function(t){t.points.forEach(function(t){i>t.x&&(i=t.x),o>t.y&&(o=t.y)})}),r[0]=n[0]-i,r[1]=n[1]-o}return r},e.prototype.updateNodePosition=function(t,e){var n=this,r=n.combos,i=n.nodes,o=n.edges,a=n.anchorPoint,l=n.graphSettings,u=this.getBegin(t,e);t.forEach(function(t){var n,c=t.x,h=t.y,d=t.id,f=t.type,p=t.coreBox;if(f===s.HierarchyNodeType.META&&d!==s.ROOT_NAME){var g=r.findIndex(function(t){return t.id===d}),v=null===(n=null===l||void 0===l?void 0:l.subScene)||void 0===n?void 0:n.meta;r[g].offsetX=c+u[0],r[g].offsetY=h+u[1],r[g].fixSize=[p.width,p.height],r[g].fixCollapseSize=[p.width,p.height],t.expanded?r[g].padding=[null===v||void 0===v?void 0:v.paddingTop,null===v||void 0===v?void 0:v.paddingRight,null===v||void 0===v?void 0:v.paddingBottom,null===v||void 0===v?void 0:v.paddingLeft]:r[g].padding=[0,0,0,0]}else if(f===s.HierarchyNodeType.OP){g=i.findIndex(function(t){return t.id===d});if(i[g].x=c+u[0],i[g].y=h+u[1],a){var m=[],y=e.filter(function(t){return t.v===d}),b=e.filter(function(t){return t.w===d});y.length>0&&y.forEach(function(e){var n=e.points[0],r=(n.x-c)/t.width+.5,i=(n.y-h)/t.height+.5;m.push([r,i]),e.baseEdgeList.forEach(function(t){var e=o.find(function(e){return e.source===t.v&&e.target===t.w});e&&(e.sourceAnchor=m.length-1)})}),b.length>0&&b.forEach(function(e){var n=e.points[e.points.length-1],r=(n.x-c)/t.width+.5,i=(n.y-h)/t.height+.5;m.push([r,i]),e.baseEdgeList.forEach(function(t){var e=o.find(function(e){return e.source===t.v&&e.target===t.w});e&&(e.targetAnchor=m.length-1)})}),i[g].anchorPoints=m.length>0?m:i[g].anchorPoints||[]}}})},e.prototype.updateEdgePosition=function(t,e){var n=this,r=n.combos,a=n.edges,l=n.controlPoints,u=this.getBegin(t,e);l&&(r.forEach(function(t){t.inEdges=[],t.outEdges=[]}),a.forEach(function(e){var a,l,c,h,d=t.find(function(t){return t.id===e.source}),f=t.find(function(t){return t.id===e.target}),p=[],g=[];if(d&&f)g=(0,s.getEdges)(null===d||void 0===d?void 0:d.id,null===f||void 0===f?void 0:f.id,t);else if(!d||!f){var v=n.getNodePath(e.source),m=n.getNodePath(e.target),y=v.reverse().slice(d?0:1).find(function(e){return t.find(function(t){return t.id===e})}),b=m.reverse().slice(f?0:1).find(function(e){return t.find(function(t){return t.id===e})});d=t.find(function(t){return t.id===y}),f=t.find(function(t){return t.id===b}),g=(0,s.getEdges)(null===d||void 0===d?void 0:d.id,null===f||void 0===f?void 0:f.id,t,{v:e.source,w:e.target})}if(p=(p=g.reduce(function(t,e){return o(o([],t,!0),e.points.map(function(t){return i(i({},t),{x:t.x+u[0],y:t.y+u[1]})}),!0)},[])).slice(1,-1),e.controlPoints=p,(null===f||void 0===f?void 0:f.type)===s.NodeType.META){var x=r.findIndex(function(t){return t.id===(null===f||void 0===f?void 0:f.id)});if(!r[x]||(null===(a=r[x].inEdges)||void 0===a?void 0:a.some(function(t){return t.source===d.id&&t.target===f.id})))return;null===(l=r[x].inEdges)||void 0===l||l.push({source:d.id,target:f.id,controlPoints:p})}if((null===d||void 0===d?void 0:d.type)===s.NodeType.META){x=r.findIndex(function(t){return t.id===(null===d||void 0===d?void 0:d.id)});if(!r[x]||(null===(c=r[x].outEdges)||void 0===c?void 0:c.some(function(t){return t.source===d.id&&t.target===f.id})))return;null===(h=r[x].outEdges)||void 0===h||h.push({source:d.id,target:f.id,controlPoints:p})}}))},e.prototype.getType=function(){return"dagreCompound"},e.prototype.getDataByOrder=function(t){return t.every(function(t){return void 0!==t.layoutOrder})||t.forEach(function(t,e){t.layoutOrder=e}),t.sort(function(t,e){return t.layoutOrder-e.layoutOrder})},e}(a.Base);e.DagreCompoundLayout=u},1880:t=>{t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i1){var e=r({},t);delete e.size,s.push(e)}});var d=[];i.forEach(function(t){var e=s.find(function(e){return e.id===t.source}),n=s.find(function(e){return e.id===t.target});e&&n&&d.push(t)});var f=new h.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}).layout({nodes:s,edges:d}).nodes;n.forEach(function(t){var e=(f||[]).find(function(e){return e.id===t.id});t.x=(null===e||void 0===e?void 0:e.x)||o/2,t.y=(null===e||void 0===e?void 0:e.y)||a/2});var p=JSON.parse(JSON.stringify(n)),g=JSON.parse(JSON.stringify(i)),v=l.forceSimulation().nodes(p).force("link",l.forceLink(g).id(function(t){return t.id}).distance(function(t){return d.find(function(e){return e.source===t.source&&e.target===t.target})?30:20})).force("charge",l.forceManyBody()).force("center",l.forceCenter(o/2,a/2)).force("x",l.forceX(o/2)).force("y",l.forceY(a/2)).alpha(.3).alphaDecay(.08).alphaMin(.001);return new Promise(function(t){v.on("end",function(){n.forEach(function(t){var e=p.find(function(e){return e.id===t.id});e&&(t.x=e.x,t.y=e.y)});var r=Math.min.apply(Math,n.map(function(t){return t.x})),s=Math.max.apply(Math,n.map(function(t){return t.x})),l=Math.min.apply(Math,n.map(function(t){return t.y})),h=Math.max.apply(Math,n.map(function(t){return t.y})),d=o/(s-r),f=a/(h-l);n.forEach(function(t){void 0!==t.x&&d<1&&(t.x=(t.x-r)*d),void 0!==t.y&&f<1&&(t.y=(t.y-l)*f)}),n.forEach(function(t){t.sizeTemp=t.size,t.size=[10,10]}),(0,c.default)(n,i),n.forEach(function(t){t.size=t.sizeTemp||[],delete t.sizeTemp}),(0,u.default)({nodes:n,edges:i},e),t()})})}},1912:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e,n=function(t){var e,n={},r=0,i=function(e){var o,a=r;null===(o=t.children(e))||void 0===o||o.forEach(i),n[e]={low:a,lim:r++}};return null===(e=t.children())||void 0===e||e.forEach(i),n}(t);null===(e=t.graph().dummyChains)||void 0===e||e.forEach(function(e){var r,i,o=e,a=t.node(o),s=a.edgeObj;if(s)for(var l=function(t,e,n,r){var i,o,a=[],s=[],l=Math.min(e[n].low,e[r].low),u=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>l||u>e[i].lim));for(o=i,i=r;i&&i!==o;)s.push(i),i=t.parent(i);return{lca:o,path:a.concat(s.reverse())}}(t,n,s.v,s.w),u=l.path,c=l.lca,h=0,d=u[h],f=!0;o!==s.w;){if(a=t.node(o),f){for(;d!==c&&(null===(r=t.node(d))||void 0===r?void 0:r.maxRank){"use strict";n.r(e),n.d(e,{Graph:()=>w,GraphWithEvent:()=>A,algorithm:()=>r,comparision:()=>o,essence:()=>i,generate:()=>s});var r={};n.r(r),n.d(r,{components:()=>P,dfs:()=>L,dijkstra:()=>F,dijkstraAll:()=>G,findCycles:()=>W,floydWarshall:()=>it,isAcyclic:()=>tt,postorder:()=>et,preorder:()=>nt,prim:()=>N,tarjan:()=>U,topsort:()=>J});var i={};n.r(i),n.d(i,{hasSelfLoop:()=>bt,isGraph:()=>vt,isNullGraph:()=>yt,isSimpleGraph:()=>mt});var o={};n.r(o),n.d(o,{containAllSameEdges:()=>ht,containAllSameNodes:()=>ct,containSameEdges:()=>at,containSameNodes:()=>ot,getSameEdges:()=>lt,getSameNodes:()=>st,isGraphComplement:()=>xt,isGraphContainsAnother:()=>ft,isGraphOptionSame:()=>ut,isGraphSame:()=>dt});var a,s={};function l(t,e){var n=t.get(e)||0;t.set(e,n+1)}function u(t,e){var n=t.get(e);void 0!==n&&((n-=1)>0?t.set(e,n):t.delete(e))}function c(t,e,n,r){var i=String(e),o=String(n);if(!t&&i>o){var s=i;i=o,o=s}return i+a.EDGE_KEY_DELIM+o+a.EDGE_KEY_DELIM+(void 0===r?a.DEFAULT_EDGE_NAME:r)}function h(t,e,n,r){var i=String(e),o=String(n),a={v:e,w:n};if(!t&&i>o){var s=a.v;a.v=a.w,a.w=s}return void 0!==r&&(a.name=r),a}function d(t,e){return c(t,e.v,e.w,e.name)}function f(t){return"function"===typeof t}n.r(s),n.d(s,{getGraphComplement:()=>wt}),function(t){t.DEFAULT_EDGE_NAME="\0",t.GRAPH_NODE="\0",t.EDGE_KEY_DELIM="\x01"}(a||(a={}));var p=function(t){return t.nodes().map(function(e){var n={id:e,value:t.node(e),parent:t.parent(e)};return void 0===n.value&&delete n.value,void 0===n.parent&&delete n.parent,n})},g=function(t){return t.edges().map(function(e){var n=t.edge(e),r={v:e.v,w:e.w,value:n,name:e.name};return void 0===r.name&&delete r.name,void 0===r.value&&delete r.value,r})};function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function m(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=a.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return e.directed},this.isMultigraph=function(){return e.multigraph},this.isCompound=function(){return e.compound},this.setGraph=function(t){return e.label=t,e},this.graph=function(){return e.label},this.setDefaultNodeLabel=function(t){return f(t)?e.defaultNodeLabelFn=t:e.defaultNodeLabelFn=function(){return t},e},this.nodeCount=function(){return e.nodeCountNum},this.node=function(t){return e.nodesLabelMap.get(t)},this.nodes=function(){return Array.from(e.nodesLabelMap.keys())},this.sources=function(){return e.nodes().filter(function(t){var n;return!(null===(n=e.inEdgesMap.get(t))||void 0===n?void 0:n.size)})},this.sinks=function(){return e.nodes().filter(function(t){var n;return!(null===(n=e.outEdgesMap.get(t))||void 0===n?void 0:n.size)})},this.setNodes=function(t,n){return t.map(function(t){return e.setNode(t,n)}),e},this.hasNode=function(t){return e.nodesLabelMap.has(t)},this.checkCompound=function(){if(!e.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(t){if(e.isCompound()){var n,r=null===(n=e.parentMap)||void 0===n?void 0:n.get(t);if(r!==e.GRAPH_NODE)return r}},this.removeFromParentsChildList=function(t){var n=e.parentMap.get(t);e.childrenMap.get(n).delete(t)},this.setParent=function(t,n){var r,i;e.checkCompound();for(var o=void 0===n?e.GRAPH_NODE:n,a=e.parent(o);a;){if(t===a)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");a=e.parent(a)}n&&e.setNode(n),e.setNode(t),e.removeFromParentsChildList(t),null===(r=e.parentMap)||void 0===r||r.set(t,o);var s=e.childrenMap.get(o);return s.set(t,!0),null===(i=e.childrenMap)||void 0===i||i.set(o,s),e},this.children=function(t){var n=void 0===t?e.GRAPH_NODE:t;if(e.isCompound()){var r,i=null===(r=e.childrenMap)||void 0===r?void 0:r.get(n);return i?Array.from(i.keys()):void 0}return n===e.GRAPH_NODE?e.nodes():t&&e.hasNode(t)?[]:void 0},this.predecessors=function(t){var n=e.predecessorsMap.get(t);return n?Array.from(n.keys()):void 0},this.successors=function(t){var n=e.successorsMap.get(t);return n?Array.from(n.keys()):void 0},this.neighbors=function(t){var n;if(e.hasNode(t))return Array.from(new Set(null===(n=e.predecessors(t))||void 0===n?void 0:n.concat(e.successors(t))))},this.isLeaf=function(t){var n,r;return e.isDirected()?!(null===(r=e.successors(t))||void 0===r?void 0:r.length):!(null===(n=e.neighbors(t))||void 0===n?void 0:n.length)},this.filterNodes=function(n){var r=e.directed,i=e.multigraph,o=e.compound,a=new t({directed:r,multigraph:i,compound:o});if(a.setGraph(e.graph()),e.nodes().forEach(function(t){n(t)&&a.setNode(t,e.node(t))}),e.edges().forEach(function(t){a.hasNode(t.v)&&a.hasNode(t.w)&&a.setEdgeObj(t,e.edge(t))}),o){a.nodes().forEach(function(t){a.setParent(t,function(t){for(var n=e.parent(t);void 0!==n&&!a.hasNode(n);)n=e.parent(n);return n}(t))})}return a},this.setDefaultEdgeLabel=function(t){return f(t)?e.defaultEdgeLabelFn=t:e.defaultEdgeLabelFn=function(){return t},e},this.edgeCount=function(){return e.edgeCountNum},this.setEdgeObj=function(t,n){return e.setEdge(t.v,t.w,n,t.name)},this.setPath=function(t,n){return t.reduce(function(t,r){return e.setEdge(t,r,n),r}),e},this.edgeFromArgs=function(t,n,r){return e.edge({v:t,w:n,name:r})},this.edge=function(t){return e.edgesLabelsMap.get(d(e.isDirected(),t))},this.hasEdge=function(t,n,r){return e.edgesLabelsMap.has(d(e.isDirected(),{v:t,w:n,name:r}))},this.removeEdgeObj=function(t){var n=t.v,r=t.w,i=t.name;return e.removeEdge(n,r,i)},this.edges=function(){return Array.from(e.edgesMap.values())},this.inEdges=function(t,n){var r=e.inEdgesMap.get(t);if(r)return Array.from(r.values()).filter(function(t){return!n||t.v===n})},this.outEdges=function(t,n){var r=e.outEdgesMap.get(t);if(r)return Array.from(r.values()).filter(function(t){return!n||t.w===n})},this.nodeEdges=function(t,n){var r;if(e.hasNode(t))return null===(r=e.inEdges(t,n))||void 0===r?void 0:r.concat(e.outEdges(t,n))},this.toJSON=function(){return function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:p(t),edges:g(t),value:t.graph()};return void 0===e.value&&delete e.value,e}(e)},this.nodeInDegree=function(t){var n=e.inEdgesMap.get(t);return n?n.size:0},this.nodeOutDegree=function(t){var n=e.outEdgesMap.get(t);return n?n.size:0},this.nodeDegree=function(t){return e.nodeInDegree(t)+e.nodeOutDegree(t)},this.source=function(t){return t.v},this.target=function(t){return t.w};var r=m(m({},x),n);this.compound=r.compound,this.directed=r.directed,this.multigraph=r.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}var e,n,r;return e=t,(n=[{key:"setNode",value:function(t,e){var n,r=this.nodesLabelMap,i=this.defaultNodeLabelFn,o=this.isCompound,a=this.parentMap,s=this.childrenMap,l=this.inEdgesMap,u=this.outEdgesMap,c=this.predecessorsMap,h=this.successorsMap;return r.has(t)?(void 0!==e&&r.set(t,e),this):(r.set(t,e||i(t)),o()&&(null===a||void 0===a||a.set(t,this.GRAPH_NODE),null===s||void 0===s||s.set(t,new Map),(null===s||void 0===s?void 0:s.has(this.GRAPH_NODE))||null===s||void 0===s||s.set(this.GRAPH_NODE,new Map),null===s||void 0===s||null===(n=s.get(this.GRAPH_NODE))||void 0===n||n.set(t,!0)),[l,u,c,h].forEach(function(e){return e.set(t,new Map)}),this.nodeCountNum+=1,this)}},{key:"removeNode",value:function(t){var e=this;if(this.hasNode(t)){var n,r,i,o=function(t){e.removeEdge(t.v,t.w,t.name)},a=this.inEdgesMap,s=this.outEdgesMap,l=this.predecessorsMap,u=this.successorsMap,c=this.nodesLabelMap;this.isCompound()&&(this.removeFromParentsChildList(t),null===(n=this.parentMap)||void 0===n||n.delete(t),null===(r=this.children(t))||void 0===r||r.forEach(function(t){return e.setParent(t)}),null===(i=this.childrenMap)||void 0===i||i.delete(t));var h=a.get(t),d=s.get(t);Array.from(h.values()).forEach(function(t){return o(t)}),Array.from(d.values()).forEach(function(t){return o(t)}),c.delete(t),a.delete(t),s.delete(t),l.delete(t),u.delete(t),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(t,e,n,r){var i,o,a=h(this.isDirected(),t,e,r),s=d(this.isDirected(),a),u=a.v,c=a.w;if(this.edgesLabelsMap.has(s))return this.edgesLabelsMap.set(s,n),this;if(void 0!==r&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(c),this.edgesLabelsMap.set(s,n||this.defaultEdgeLabelFn(u,c,r)),Object.freeze(a),this.edgesMap.set(s,a);var f=this.predecessorsMap.get(c),p=this.successorsMap.get(u);return l(f,u),l(p,c),null===(i=this.inEdgesMap.get(c))||void 0===i||i.set(s,a),null===(o=this.outEdgesMap.get(u))||void 0===o||o.set(s,a),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(t,e,n){var r=c(this.isDirected(),t,e,n);if(this.edgesMap.get(r)){var i=h(this.isDirected(),t,e,n),o=i.v,a=i.w;this.edgesLabelsMap.delete(r),this.edgesMap.delete(r);var s=this.predecessorsMap.get(a),l=this.successorsMap.get(o);u(s,o),u(l,a),this.inEdgesMap.get(a).delete(r),this.outEdgesMap.get(o).delete(r),this.edgeCountNum-=1}return this}}])&&b(e.prototype,n),r&&b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function k(t,e){for(var n=0;n-1&&this.eventPool[t].splice(n,1)}}},{key:"emitEvent",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r>1])||void 0===a?void 0:a.priority)e.arr[r].priority)throw new Error("New priority is greater than current priority.Key: ".concat(t," Old: + ").concat(e.arr[r].priority," New: ").concat(n));e.arr[r].priority=n,e.innerDecrease(r)}});const N=function(t,e){var n,r=new w,i=new Map,o=new I;function a(t){var r=t.v===n?t.w:t.v,a=o.priority(r);if(void 0!==a){var s=e(t);s0;){var l;if(n=o.removeMin(),i.has(n))r.setEdge(n,i.get(n));else{if(s)throw new Error("Input graph is not connected: "+t.graph());s=!0}null===(l=t.nodeEdges(n))||void 0===l||l.forEach(a)}return r};const P=function(t){var e=new Set,n=[];return t.nodes().forEach(function(r){for(var i=[],o=[r];o.length>0;){var a,s,l=o.pop();if(!e.has(l))e.add(l),i.push(l),null===(a=t.successors(l))||void 0===a||a.forEach(function(t){return o.push(t)}),null===(s=t.predecessors(l))||void 0===s||s.forEach(function(t){return o.push(t)})}i.length&&n.push(i)}),n};var D=function t(e,n,r,i,o,a){i.includes(n)||(i.push(n),r||a.push(n),o(n).forEach(function(n){return t(e,n,r,i,o,a)}),r&&a.push(n))};const L=function(t,e,n){var r=Array.isArray(e)?e:[e],i=function(e){return t.isDirected()?t.successors(e):t.neighbors(e)},o=[],a=[];return r.forEach(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);D(t,e,"post"===n,a,i,o)}),o};function R(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(i=s.removeMin(),!(o=a.get(i))||o.distance!==Number.POSITIVE_INFINITY);)r(i).forEach(l);var u={};return Array.from(a.entries()).forEach(function(t){var e=R(t,2),n=e[0],r=e[1];return u[String(n)]=r,u}),u};const F=function(t,e,n,r){return z(t,e,n||B,r||function(e){return t.outEdges(e)})};const G=function(t,e,n){var r={};return t.nodes().forEach(function(i){return r[String(i)]=F(t,i,e,n),r}),r};const U=function(t){var e=0,n=[],r=new Map,i=[];function o(a){var s,l={onStack:!0,lowlink:e,index:e};if(r.set(a,l),e+=1,n.push(a),null===(s=t.successors(a))||void 0===s||s.forEach(function(t){var e;if(r.has(t)){if(null===(e=r.get(t))||void 0===e?void 0:e.onStack){var n=r.get(t);l.lowlink=Math.min(l.lowlink,n.index)}}else{o(t);var i=r.get(t);l.lowlink=Math.min(l.lowlink,i.lowlink)}}),l.lowlink===l.index){var u,c=[];do{u=n.pop(),r.get(u).onStack=!1,c.push(u)}while(a!==u);i.push(c)}}return t.nodes().forEach(function(t){r.has(t)||o(t)}),i};const W=function(t){return U(t).filter(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})};function V(t){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(t)}function H(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n{function e(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}t.exports=e=function(t,n,r,i){function o(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?a?a(t,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):t[n]=r:(o("next",0),o("throw",1),o("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r,i,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},2021:(t,e,n)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(r=n(6404))&&r.__esModule?r:{default:r};e.default=i,t.exports=i},2080:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Base=void 0;var n=function(){function t(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return t.prototype.layout=function(t){return this.init(t),this.execute(!0)},t.prototype.init=function(t){this.nodes=t.nodes||[],this.edges=t.edges||[],this.combos=t.combos||[],this.comboEdges=t.comboEdges||[],this.hiddenNodes=t.hiddenNodes||[],this.hiddenEdges=t.hiddenEdges||[],this.hiddenCombos=t.hiddenCombos||[],this.vedges=t.vedges||[]},t.prototype.execute=function(t){},t.prototype.executeWithWorker=function(){},t.prototype.getDefaultCfg=function(){return{}},t.prototype.updateCfg=function(t){t&&Object.assign(this,t)},t.prototype.getType=function(){return"base"},t.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},t}();e.Base=n},2162:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forceNBody=void 0;var r=n(9666);function i(t){var e=0,n=0,r=0;if(t.length){for(var i=0;i<4;i++){(o=t[i])&&o.weight&&(e+=o.weight,n+=o.x*o.weight,r+=o.y*o.weight)}t.x=n/e,t.y=r/e,t.weight=e}else{var o=t;t.x=o.data.x,t.y=o.data.y,t.weight=o.data.weight}}e.forceNBody=function(t,e,n,a,s){var l=n/a,u=t.map(function(t,n){var r=e[t.id],i=r.data,o=r.x,a=r.y,s=r.size,u=i.layout.force.nodeStrength;return{x:o,y:a,size:s,index:n,vx:0,vy:0,weight:l*u}}),c=(0,r.quadtree)(u,function(t){return t.x},function(t){return t.y}).visitAfter(i);return u.forEach(function(t){!function(t,e){e.visit(function(e,n,r,i,a){return o(e,n,r,i,a,t)})}(t,c)}),u.map(function(n,r){var i=e[t[r].id].data.layout.force.mass,o=void 0===i?1:i;s[2*r]=n.vx/o,s[2*r+1]=n.vy/o}),s};var o=function(t,e,n,r,i,o){var a=o.x-t.x||.1,s=o.y-t.y||.1,l=r-e,u=a*a+s*s,c=Math.sqrt(u)*u;if(l*l*.81{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n(3310)),i=a(n(3205)),o=n(708);function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t,e){var n=[],r=t.nodes,a=void 0===r?[]:r,s=t.edges,l=void 0===s?[]:s;if(0===a.length)return n;var u=a[0],c=new Set;c.add(u);var h=new i.default(function(t,n){return e?t.weight-n.weight:0});for((0,o.getEdgesByNodeId)(u.id,l).forEach(function(t){h.insert(t)});!h.isEmpty();){var d=h.delMin(),f=d.source,p=d.target;c.has(f)&&c.has(p)||(n.push(d),c.has(f)||(c.add(f),(0,o.getEdgesByNodeId)(f,l).forEach(function(t){h.insert(t)})),c.has(p)||(c.add(p),(0,o.getEdgesByNodeId)(p,l).forEach(function(t){h.insert(t)})))}return n},l=function(t,e){var n=[],i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a;if(0===o.length)return n;var l=s.map(function(t){return t});e&&l.sort(function(t,e){return t.weight-e.weight});for(var u=new r.default(o.map(function(t){return t.id}));l.length>0;){var c=l.shift(),h=c.source,d=c.target;u.connected(h,d)||(n.push(c),u.union(h,d))}return n},u=function(t,e,n){return n?{prim:s,kruskal:l}[n](t,e):l(t,e)};e.default=u},2202:(t,e,n)=>{var r=n(855),i=n(2793),o=n(2396),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},2212:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;E--)k(E);return{nodes:n,edges:r,combos:a,comboEdges:u}},e.prototype.getInnerGraphs=function(t){var e=this,n=e.comboTrees,r=e.nodeSize,o=e.edges,a=e.comboPadding,u=e.spacing,c={},h=this.innerLayout||new l.ConcentricLayout({type:"concentric",sortBy:"id"});return h.center=[0,0],h.preventOverlap=!0,h.nodeSpacing=u,(n||[]).forEach(function(e){(0,s.traverseTreeUp)(e,function(e){var n,l=(null===a||void 0===a?void 0:a(e))||10;if((0,s.isArray)(l)&&(l=Math.max.apply(Math,l)),null===(n=e.children)||void 0===n?void 0:n.length){var u=e.children.map(function(e){if("combo"===e.itemType)return c[e.id];var n=t[e.id]||{};return i(i({},n),e)}),d=u.map(function(t){return t.id}),f={nodes:u,edges:o.filter(function(t){return d.includes(t.source)&&d.includes(t.target)})},p=1/0;u.forEach(function(t){var e;t.size||(t.size=(null===(e=c[t.id])||void 0===e?void 0:e.size)||(null===r||void 0===r?void 0:r(t))||[30,30]),(0,s.isNumber)(t.size)&&(t.size=[t.size,t.size]),p>t.size[0]&&(p=t.size[0]),p>t.size[1]&&(p=t.size[1])}),h.layout(f);var g=(0,s.getLayoutBBox)(u),v=g.minX,m=g.minY,y=g.maxX,b=g.maxY,x={x:(y+v)/2,y:(b+m)/2};f.nodes.forEach(function(t){t.x-=x.x,t.y-=x.y});var w=Math.max(y-v,p)+2*l,S=Math.max(b-m,p)+2*l;c[e.id]={id:e.id,nodes:u,size:[w,S]}}else if("combo"===e.itemType){var k=l?[2*l,2*l]:[30,30];c[e.id]={id:e.id,nodes:[],size:k}}return!0})}),c},e.prototype.initVals=function(){var t,e,n=this,r=n.nodeSize,i=n.spacing;if(e=(0,s.isNumber)(i)?function(){return i}:(0,s.isFunction)(i)?i:function(){return 0},this.spacing=e,r)if((0,s.isFunction)(r))t=function(t){var n=r(t),i=e(t);return(0,s.isArray)(t.size)?((t.size[0]>t.size[1]?t.size[0]:t.size[1])+i)/2:((n||10)+i)/2};else if((0,s.isArray)(r)){var o=(r[0]>r[1]?r[0]:r[1])/2;t=function(t){return o+e(t)/2}}else{var a=r/2;t=function(t){return a+e(t)/2}}else t=function(t){var n=e(t);return t.size?(0,s.isArray)(t.size)?((t.size[0]>t.size[1]?t.size[0]:t.size[1])+n)/2:(0,s.isObject)(t.size)?((t.size.width>t.size.height?t.size.width:t.size.height)+n)/2:(t.size+n)/2:10+n/2};this.nodeSize=t;var l,u=n.comboPadding;l=(0,s.isNumber)(u)?function(){return u}:(0,s.isArray)(u)?function(){return Math.max.apply(null,u)}:(0,s.isFunction)(u)?u:function(){return 0},this.comboPadding=l},e.prototype.getType=function(){return"comboCombined"},e}(a.Base);e.ComboCombinedLayout=u},2361:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},2389:(t,e,n)=>{var r=n(906).default;t.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},2396:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},2407:(t,e,n)=>{"use strict";var r=n(8898);Object.defineProperty(e,"__esModule",{value:!0}),e.getTwoToneColor=function(){var t=o.default.getTwoToneColors();if(!t.calculated)return t.primaryColor;return[t.primaryColor,t.secondaryColor]},e.setTwoToneColor=function(t){var e=(0,a.normalizeTwoToneColors)(t),n=(0,i.default)(e,2),r=n[0],s=n[1];return o.default.setTwoToneColors({primaryColor:r,secondaryColor:s})};var i=r(n(8115)),o=r(n(9562)),a=n(598)},2418:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.RandomLayout=void 0;var i=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(e),n}return r(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.center;return t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight),e&&e.forEach(function(e){e.x=.9*(Math.random()-.5)*t.width+n[0],e.y=.9*(Math.random()-.5)*t.height+n[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:this.edges}},e.prototype.getType=function(){return"random"},e}(n(2080).Base);e.RandomLayout=i},2423:(t,e,n)=>{var r=n(1229);t.exports=function(t,e){if(null==t)return{};var n,i,o=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=void 0,e.isArray=Array.isArray},2545:(t,e,n)=>{var r=n(2361)(Object.getPrototypeOf,Object);t.exports=r},2563:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2872),i=function(t,e,n){for(var i=(0,r.zipObject)(n,n.map(function(t,e){return e})),o=e.map(function(e){var n,r=null===(n=t.outEdges(e))||void 0===n?void 0:n.map(function(e){return{pos:i[e.w]||0,weight:t.edge(e).weight}});return null===r||void 0===r?void 0:r.sort(function(t,e){return t.pos-e.pos})}).flat().filter(function(t){return void 0!==t}),a=1;a0;)e%2&&(n+=l[e+1]),l[e=e-1>>1]+=t.weight;u+=t.weight*n}}),u};e.default=function(t,e){for(var n=0,r=1;r<(null===e||void 0===e?void 0:e.length);r+=1)n+=i(t,e[r-1],e[r]);return n}},2605:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2872),i=function(t,e,n){for(var r,i=n;e.length&&(r=e[e.length-1]).i<=i;)e.pop(),null===t||void 0===t||t.push(r.vs),i++;return i},o=function(t,e){return function(n,r){if(void 0!==n.fixorder&&void 0!==r.fixorder)return n.fixorder-r.fixorder;if(n.barycenterr.barycenter)return 1;if(e&&void 0!==n.order&&void 0!==r.order){if(n.orderr.order)return 1}return t?r.i-n.i:n.i-r.i}};e.default=function(t,e,n,a){var s=(0,r.partition)(t,function(t){var e=t.hasOwnProperty("fixorder")&&!isNaN(t.fixorder);return a?!e&&t.hasOwnProperty("barycenter"):e||t.hasOwnProperty("barycenter")}),l=s.lhs,u=s.rhs.sort(function(t,e){return-t.i- -e.i}),c=[],h=0,d=0,f=0;null===l||void 0===l||l.sort(o(!!e,!!n)),f=i(c,u,f),null===l||void 0===l||l.forEach(function(t){var e;f+=null===(e=t.vs)||void 0===e?void 0:e.length,c.push(t.vs),h+=t.barycenter*t.weight,d+=t.weight,f=i(c,u,f)});var p={vs:c.flat()};return d&&(p.barycenter=h/d,p.weight=d),p}},2656:(t,e,n)=>{"use strict";var r=n(8898),i=n(906);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(8545)),a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(40)),s=r(n(4074)),l=r(n(3948));function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(u=function(t){return t?n:e})(t)}var c=function(t,e){return a.createElement(l.default,(0,o.default)((0,o.default)({},t),{},{ref:e,icon:s.default}))},h=a.forwardRef(c);e.default=h},2659:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2872),i=function(t,e,n,i,o,a){var s={rank:a,borderType:e,width:0,height:0},l=o[e][a-1],u=(0,r.addDummyNode)(t,"border",s,n);o[e][a]=u,t.setParent(u,i),l&&t.setEdge(l,u,{weight:1})};e.default=function(t){var e,n=function(e){var r=t.children(e),o=t.node(e);if((null===r||void 0===r?void 0:r.length)&&r.forEach(function(t){return n(t)}),o.hasOwnProperty("minRank")){o.borderLeft=[],o.borderRight=[];for(var a=o.minRank,s=o.maxRank+1;a{var e=[],n=[];function r(t,r){if(r=r||{},void 0===t)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var i,o=!0===r.prepend?"prepend":"append",a=void 0!==r.container?r.container:document.querySelector("head"),s=e.indexOf(a);return-1===s&&(s=e.push(a)-1,n[s]={}),void 0!==n[s]&&void 0!==n[s][o]?i=n[s][o]:(i=n[s][o]=function(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}(),"prepend"===o?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),i.styleSheet?i.styleSheet.cssText+=t:i.textContent+=t,i}t.exports=r,t.exports.insertCss=r},2731:t=>{t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},2793:(t,e,n)=>{var r=n(855),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(l){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},2872:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.minBy=e.notime=e.time=e.partition=e.maxRank=e.addBorderNode=e.removeEmptyRanks=e.normalizeRanks=e.buildLayerMatrix=e.intersectRect=e.predecessorWeights=e.successorWeights=e.zipObject=e.asNonCompoundGraph=e.simplify=e.addDummyNode=void 0;var r=n(7007),i=n(1703);e.addDummyNode=function(t,e,n,r){var i;do{i="".concat(r).concat(Math.random())}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i};e.simplify=function(t){var e=(new i.Graph).setGraph(t.graph());return t.nodes().forEach(function(n){e.setNode(n,t.node(n))}),t.edges().forEach(function(n){var r=e.edgeFromArgs(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e};e.asNonCompoundGraph=function(t){var e=new i.Graph({multigraph:t.isMultigraph()}).setGraph(t.graph());return t.nodes().forEach(function(n){var r;(null===(r=t.children(n))||void 0===r?void 0:r.length)||e.setNode(n,t.node(n))}),t.edges().forEach(function(n){e.setEdgeObj(n,t.edge(n))}),e};e.zipObject=function(t,e){return null===t||void 0===t?void 0:t.reduce(function(t,n,r){return t[n]=e[r],t},{})};e.successorWeights=function(t){var e={};return t.nodes().forEach(function(n){var r,i={};null===(r=t.outEdges(n))||void 0===r||r.forEach(function(e){var n;i[e.w]=(i[e.w]||0)+((null===(n=t.edge(e))||void 0===n?void 0:n.weight)||0)}),e[n]=i}),e};e.predecessorWeights=function(t){var n=t.nodes(),r=n.map(function(e){var n,r={};return null===(n=t.inEdges(e))||void 0===n||n.forEach(function(e){r[e.v]=(r[e.v]||0)+t.edge(e).weight}),r});return(0,e.zipObject)(n,r)};e.intersectRect=function(t,e){var n,r,i=Number(t.x),o=Number(t.y),a=Number(e.x)-i,s=Number(e.y)-o,l=Number(t.width)/2,u=Number(t.height)/2;return a||s?(Math.abs(s)*l>Math.abs(a)*u?(s<0&&(u=-u),n=u*a/s,r=u):(a<0&&(l=-l),n=l,r=l*s/a),{x:i+n,y:o+r}):{x:0,y:0}};e.buildLayerMatrix=function(t){for(var n=[],r=(0,e.maxRank)(t)+1,i=0;ie)&&(e=i)}),e||(e=0),e};e.partition=function(t,e){var n={lhs:[],rhs:[]};return null===t||void 0===t||t.forEach(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n};e.time=function(t,e){var n=Date.now();try{return e()}finally{console.log("".concat(t," time: ").concat(Date.now()-n,"ms"))}};e.notime=function(t,e){return e()};e.minBy=function(t,e){return t.reduce(function(t,n){return e(t)>e(n)?n:t})}},2886:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RadialLayout=void 0;var o=n(7007),a=n(2080),s=i(n(6443)),l=i(n(4693));function u(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var c=function(t){function e(e){var n=t.call(this)||this;return n.maxIteration=1e3,n.focusNode=null,n.unitRadius=null,n.linkDistance=50,n.preventOverlap=!1,n.strictRadial=!0,n.maxPreventOverlapIteration=200,n.sortStrength=10,n.nodes=[],n.edges=[],n.updateCfg(e),n}return r(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,strictRadial:!0,maxPreventOverlapIteration:200,sortBy:void 0,sortStrength:10}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges||[];if(e&&0!==e.length){t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var r=t.center;if(1===e.length)return e[0].x=r[0],e[0].y=r[1],void(t.onLayoutEnd&&t.onLayoutEnd());var i=t.linkDistance,a=null;if((0,o.isString)(t.focusNode)){for(var u=!1,c=0;cr[0]?r[0]:v-r[0],b=m-r[1]>r[1]?r[1]:m-r[1];0===y&&(y=v/2),0===b&&(b=m/2);var x=b>y?y:b,w=Math.max.apply(Math,g),S=[];g.forEach(function(e,n){t.unitRadius||(t.unitRadius=x/w),S[n]=e*t.unitRadius}),t.radii=S;var k=t.eIdealDisMatrix();t.eIdealDistances=k;var E=function(t){for(var e=t.length,n=t[0].length,r=[],i=0;iA[1]?A[0]:A[1])+T(t)}:function(t){return A+T(t)}:function(t){return t.size?(0,o.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])+T(t):(0,o.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)+T(t):t.size+T(t):10+T(t)};var N={nodes:e,nodeSizeFunc:_,adjMatrix:d,positions:M,radii:S,height:m,width:v,strictRadial:O,focusID:h,iterations:t.maxPreventOverlapIteration||200,k:M.length/4.5},P=new l.default(N);M=P.layout()}return M.forEach(function(t,n){e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n}}t.onLayoutEnd&&t.onLayoutEnd()},e.prototype.run=function(){for(var t=this,e=t.maxIteration,n=t.positions||[],r=t.weights||[],i=t.eIdealDistances||[],o=t.radii||[],a=0;a<=e;a++){var s=a/e;t.oneIteration(s,n,o,i,r)}},e.prototype.oneIteration=function(t,e,n,r,i){var o=1-t,a=this.focusIndex;e.forEach(function(s,l){var c=u(s,[0,0]),h=0===c?0:1/c;if(l!==a){var d=0,f=0,p=0;e.forEach(function(t,e){if(l!==e){var n=u(s,t),o=0===n?0:1/n,a=r[e][l];p+=i[l][e],d+=i[l][e]*(t[0]+a*(s[0]-t[0])*o),f+=i[l][e]*(t[1]+a*(s[1]-t[1])*o)}});var g=0===n[l]?0:1/n[l];p*=o,p+=t*g*g,d*=o,d+=t*g*s[0]*h,s[0]=d/p,f*=o,f+=t*g*s[1]*h,s[1]=f/p}})},e.prototype.eIdealDisMatrix=function(){var t=this,e=t.nodes;if(!e)return[];var n=t.distances,r=t.linkDistance,i=t.radii||[],a=t.unitRadius||50,s=[];return n&&n.forEach(function(n,l){var u=[];n.forEach(function(n,s){if(l===s)u.push(0);else if(i[l]===i[s])if("data"===t.sortBy)u.push(n*(Math.abs(l-s)*t.sortStrength)/(i[l]/a));else if(t.sortBy){var c=e[l][t.sortBy]||0,h=e[s][t.sortBy]||0;(0,o.isString)(c)&&(c=c.charCodeAt(0)),(0,o.isString)(h)&&(h=h.charCodeAt(0)),u.push(n*(Math.abs(c-h)*t.sortStrength)/(i[l]/a))}else u.push(n*r/(i[l]/a));else{var d=(r+a)/2;u.push(n*d)}}),s.push(u)}),s},e.prototype.handleInfinity=function(t,e,n){for(var r=t.length,i=0;in?t[e][r]:n);return n},e.prototype.getType=function(){return"radial"},e}(a.Base);e.RadialLayout=c},2963:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Cache:()=>Ce,assign:()=>Xt,augment:()=>qt,clamp:()=>et,clearAnimationFrame:()=>Ht,clone:()=>Qt,contains:()=>i,debounce:()=>Zt,deepMix:()=>te,difference:()=>a,each:()=>f,endsWith:()=>W,every:()=>V,extend:()=>ee,filter:()=>o,find:()=>y,findIndex:()=>b,firstValue:()=>x,fixedBase:()=>nt,flatten:()=>w,flattenDeep:()=>k,forIn:()=>xt,get:()=>he,getEllipsisText:()=>_e,getRange:()=>_,getType:()=>Nt,getWrapBehavior:()=>Q,group:()=>K,groupBy:()=>X,groupToMap:()=>q,has:()=>wt,hasKey:()=>St,hasValue:()=>Et,head:()=>F,identity:()=>we,includes:()=>i,indexOf:()=>ne,isArguments:()=>Pt,isArray:()=>h,isArrayLike:()=>r,isBoolean:()=>Dt,isDate:()=>Lt,isDecimal:()=>it,isElement:()=>Wt,isEmpty:()=>ie,isEqual:()=>ae,isEqualWith:()=>se,isError:()=>Rt,isEven:()=>ot,isFinite:()=>jt,isFunction:()=>u,isInteger:()=>at,isMatch:()=>g,isNegative:()=>st,isNil:()=>c,isNull:()=>Bt,isNumber:()=>rt,isNumberEqual:()=>ut,isObject:()=>d,isObjectLike:()=>v,isOdd:()=>ct,isPlainObject:()=>m,isPositive:()=>ht,isPrototype:()=>Ft,isRegExp:()=>Gt,isString:()=>L,isType:()=>l,isUndefined:()=>Ut,keys:()=>p,last:()=>G,lowerCase:()=>_t,lowerFirst:()=>Ct,map:()=>le,mapValues:()=>ce,max:()=>E,maxBy:()=>dt,measureTextWidth:()=>Me,memoize:()=>$t,min:()=>M,minBy:()=>ft,mix:()=>Xt,mod:()=>pt,noop:()=>xe,number2color:()=>J,omit:()=>ge,parseRadius:()=>tt,pick:()=>pe,pull:()=>T,pullAt:()=>N,reduce:()=>P,remove:()=>D,requestAnimationFrame:()=>Vt,set:()=>de,size:()=>Se,some:()=>H,sortBy:()=>R,startsWith:()=>U,substitute:()=>At,throttle:()=>ve,toArray:()=>me,toDegree:()=>vt,toInteger:()=>mt,toRadian:()=>bt,toString:()=>Mt,union:()=>B,uniq:()=>j,uniqueId:()=>be,upperCase:()=>Ot,upperFirst:()=>Tt,values:()=>kt,valuesOfKey:()=>z,wrapBehavior:()=>Z});const r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};const i=function(t,e){return!!r(t)&&t.indexOf(e)>-1};const o=function(t,e){if(!r(t))return t;for(var n=[],i=0;i-1;)A.call(t,o,1);return t};var I=Array.prototype.splice;const N=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,i=n-1;n--;){var o=void 0,a=e[n];n!==i&&a===o||(o=a,I.call(t,a,1))}return t};const P=function(t,e,n){if(!h(t)&&!m(t))return t;var r=n;return f(t,function(t,n){r=e(r,t,n)}),r};const D=function(t,e){var n=[];if(!r(t))return n;for(var i=-1,o=[],a=t.length;++ie[i])return 1;if(t[i]n?n:t};const nt=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))};const rt=function(t){return l(t,"Number")};const it=function(t){return rt(t)&&t%1!==0};const ot=function(t){return rt(t)&&t%2===0};const at=Number.isInteger?Number.isInteger:function(t){return rt(t)&&t%1===0};const st=function(t){return rt(t)&&t<0};var lt=1e-5;function ut(t,e,n){return void 0===n&&(n=lt),Math.abs(t-e)0},dt=function(t,e){if(h(t)){for(var n,r=-1/0,i=0;ir&&(n=o,r=a)}return n}},ft=function(t,e){if(h(t)){for(var n,r=1/0,i=0;ie?(r&&(clearTimeout(r),r=null),s=u,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u},me=function(t){return r(t)?Array.prototype.slice.call(t):[]};var ye={};const be=function(t){return ye[t=t||"g"]?ye[t]+=1:ye[t]=1,t+ye[t]},xe=function(){},we=function(t){return t};function Se(t){return c(t)?0:r(t)?t.length:Object.keys(t).length}var ke,Ee=n(9040);const Me=$t(function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return ke||(ke=document.createElement("canvas").getContext("2d")),ke.font=[o,a,i,n+"px",r].join(" "),ke.measureText(L(t)?t:"").width},function(t,e){return void 0===e&&(e={}),(0,Ee.__spreadArrays)([t],kt(e)).join("")}),_e=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=Me(r,n),s=L(t)?t:Mt(t),l=e,u=[];if(Me(t,n)<=e)return t;for(;i=s.substr(0,16),!((o=Me(i,n))+a>l&&o>l);)if(u.push(i),l-=o,!(s=s.substr(16)))return u.join("");for(;i=s.substr(0,1),!((o=Me(i,n))+a>l);)if(u.push(i),l-=o,!(s=s.substr(1)))return u.join("");return""+u.join("")+r};const Ce=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},2983:(t,e,n)=>{"use strict";function r(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,s,l,u,c,h,d,f=t._root,p={data:r},g=t._x0,v=t._y0,m=t._x1,y=t._y1;if(!f)return t._root=p,t;for(;f.length;)if((u=e>=(o=(g+m)/2))?g=o:m=o,(c=n>=(a=(v+y)/2))?v=a:y=a,i=f,!(f=f[h=c<<1|u]))return i[h]=p,t;if(s=+t._x.call(null,f.data),l=+t._y.call(null,f.data),e===s&&n===l)return p.next=f,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(o=(g+m)/2))?g=o:m=o,(c=n>=(a=(v+y)/2))?v=a:y=a}while((h=c<<1|u)===(d=(l>=a)<<1|s>=o));return i[d]=f,i[h]=p,t}function i(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function o(t){return t[0]}function a(t){return t[1]}function s(t,e,n){var r=new l(null==e?o:e,null==n?a:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function l(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function u(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}n.d(e,{A:()=>s});var c=s.prototype=l.prototype;c.copy=function(){var t,e,n=new l(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=u(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=u(e));return n},c.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return r(this.cover(e,n),e,n,t)},c.addAll=function(t){var e,n,i,o,a=t.length,s=new Array(a),l=new Array(a),u=1/0,c=1/0,h=-1/0,d=-1/0;for(n=0;nh&&(h=i),od&&(d=o));if(u>h||c>d)return this;for(this.cover(u,c).cover(h,d),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ef||(a=u.y0)>p||(s=u.x1)=y)<<1|t>=m)&&(u=g[g.length-1],g[g.length-1]=g[g.length-1-c],g[g.length-1-c]=u)}else{var b=t-+this._x.call(null,v.data),x=e-+this._y.call(null,v.data),w=b*b+x*x;if(w=(s=(p+v)/2))?p=s:v=s,(c=a>=(l=(g+m)/2))?g=l:m=l,e=f,!(f=f[h=c<<1|u]))return this;if(!f.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,d=h)}for(;f.data!==t;)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[d]=f:this._root=f),this):(this._root=i,this)},c.removeAll=function(t){for(var e=0,n=t.length;e{var r=n(78)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});t.exports=r},3133:(t,e,n)=>{var r=n(1624),i=n(5340),o=n(9090),a=n(5700);t.exports=function(t){return function(e){e=a(e);var n=i(e)?o(e):void 0,s=n?n[0]:e.charAt(0),l=n?r(n,1).join(""):e.slice(1);return s[t]()+l}}},3136:(t,e,n)=>{"use strict";n.r(e),n.d(e,{add:()=>u,angle:()=>R,ceil:()=>f,clone:()=>o,copy:()=>s,create:()=>i,cross:()=>A,dist:()=>Y,distance:()=>x,div:()=>H,divide:()=>d,dot:()=>C,equals:()=>G,exactEquals:()=>F,floor:()=>p,forEach:()=>K,fromValues:()=>a,inverse:()=>M,len:()=>U,length:()=>S,lerp:()=>O,max:()=>v,min:()=>g,mul:()=>V,multiply:()=>h,negate:()=>E,normalize:()=>_,random:()=>T,rotate:()=>L,round:()=>m,scale:()=>y,scaleAndAdd:()=>b,set:()=>l,signedAngle:()=>j,sqrDist:()=>X,sqrLen:()=>q,squaredDistance:()=>w,squaredLength:()=>k,str:()=>z,sub:()=>W,subtract:()=>c,transformMat2:()=>I,transformMat2d:()=>N,transformMat3:()=>P,transformMat4:()=>D,zero:()=>B});var r=n(7705);function i(){var t=new r.ARRAY_TYPE(2);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new r.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new r.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function l(t,e,n){return t[0]=e,t[1]=n,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function f(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function m(t,e){return t[0]=r.round(e[0]),t[1]=r.round(e[1]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function S(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function k(t){var e=t[0],n=t[1];return e*e+n*n}function E(t,e){return t[0]=-e[0],t[1]=-e[1],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function _(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function C(t,e){return t[0]*e[0]+t[1]*e[1]}function A(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function O(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function T(t,e){e=void 0===e?1:e;var n=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function I(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function N(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function P(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function D(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function L(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=i*s-o*a+n[0],t[1]=i*a+o*s+n[1],t}function R(t,e){var n=t[0],r=t[1],i=e[0],o=e[1];return Math.abs(Math.atan2(r*i-n*o,n*i+r*o))}function j(t,e){var n=t[0],r=t[1],i=e[0],o=e[1];return Math.atan2(n*o-r*i,n*i+r*o)}function B(t){return t[0]=0,t[1]=0,t}function z(t){return"vec2("+t[0]+", "+t[1]+")"}function F(t,e){return t[0]===e[0]&&t[1]===e[1]}function G(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))}var U=S,W=c,V=h,H=d,Y=x,X=w,q=k,K=function(){var t=i();return function(e,n,r,i,o,a){var s,l;for(n||(n=2),r||(r=0),l=i?Math.min(i*n+r,e.length):e.length,s=r;s{"use strict";function n(t,e){var n=t.length;t.push(e);t:for(;0>>1,i=t[r];if(!(0>>1;ro(l,n))uo(c,l)?(t[r]=c,t[u]=n,r=u):(t[r]=l,t[s]=n,r=s);else{if(!(uo(c,n)))break t;t[r]=c,t[u]=n,r=u}}}return e}function o(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],c=[],h=1,d=null,f=3,p=!1,g=!1,v=!1,m="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(t){for(var e=r(c);null!==e;){if(null===e.callback)i(c);else{if(!(e.startTime<=t))break;i(c),e.sortIndex=e.expirationTime,n(u,e)}e=r(c)}}function w(t){if(v=!1,x(t),!g)if(null!==r(u))g=!0,P(S);else{var e=r(c);null!==e&&D(w,e.startTime-t)}}function S(t,n){g=!1,v&&(v=!1,y(_),_=-1),p=!0;var o=f;try{for(x(n),d=r(u);null!==d&&(!(d.expirationTime>n)||t&&!O());){var a=d.callback;if("function"===typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=n);n=e.unstable_now(),"function"===typeof s?d.callback=s:d===r(u)&&i(u),x(n)}else i(u);d=r(u)}if(null!==d)var l=!0;else{var h=r(c);null!==h&&D(w,h.startTime-n),l=!1}return l}finally{d=null,f=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,E=!1,M=null,_=-1,C=5,A=-1;function O(){return!(e.unstable_now()-At||125a?(t.sortIndex=o,n(c,t),null===r(u)&&t===r(c)&&(v?(y(_),_=-1):v=!0,D(w,o-a))):(t.sortIndex=s,n(u,t),g||p||(g=!0,P(S))),t},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(t){var e=f;return function(){var n=f;f=e;try{return t.apply(this,arguments)}finally{f=n}}}},3205:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){return t-e},r=function(){function t(t){void 0===t&&(t=n),this.compareFn=t,this.list=[]}return t.prototype.getLeft=function(t){return 2*t+1},t.prototype.getRight=function(t){return 2*t+2},t.prototype.getParent=function(t){return 0===t?null:Math.floor((t-1)/2)},t.prototype.isEmpty=function(){return this.list.length<=0},t.prototype.top=function(){return this.isEmpty()?void 0:this.list[0]},t.prototype.delMin=function(){var t=this.top(),e=this.list.pop();return this.list.length>0&&(this.list[0]=e,this.moveDown(0)),t},t.prototype.insert=function(t){if(null!==t){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},t.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var n=this.list[e];this.list[e]=this.list[t],this.list[t]=n,t=e,e=this.getParent(t)}},t.prototype.moveDown=function(t){var e,n=t,r=this.getLeft(t),i=this.getRight(t),o=this.list.length;null!==r&&r0?n=r:null!==i&&i0&&(n=i),t!==n&&(e=[this.list[n],this.list[t]],this.list[t]=e[0],this.list[n]=e[1],this.moveDown(n))},t}();e.default=r},3250:(t,e,n)=>{var r=n(855),i=n(4734),o=n(8403),a=n(9252),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},3310:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){function t(t){this.count=t.length,this.parent={};for(var e=0,n=t;e{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(r=n(1418))&&r.__esModule?r:{default:r};e.default=i,t.exports=i},3439:(t,e,n)=>{"use strict";var r=n(8898),i=n(906);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(8545)),a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(40)),s=r(n(8757)),l=r(n(3948));function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(u=function(t){return t?n:e})(t)}var c=function(t,e){return a.createElement(l.default,(0,o.default)((0,o.default)({},t),{},{ref:e,icon:s.default}))},h=a.forwardRef(c);e.default=h},3521:(t,e,n)=>{var r=n(2202),i=n(6588);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},3574:(t,e,n)=>{"use strict";var r=n(6397);e.H=r.createRoot,r.hydrateRoot},3629:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2872),i=function(t,e,n,o,a,s,l){var u=t.children(l);if(null===u||void 0===u?void 0:u.length){var c=(0,r.addBorderNode)(t,"_bt"),h=(0,r.addBorderNode)(t,"_bb"),d=t.node(l);t.setParent(c,l),d.borderTop=c,t.setParent(h,l),d.borderBottom=h,null===u||void 0===u||u.forEach(function(r){i(t,e,n,o,a,s,r);var u=t.node(r),d=u.borderTop?u.borderTop:r,f=u.borderBottom?u.borderBottom:r,p=u.borderTop?o:2*o,g=d!==f?1:a-s[l]+1;t.setEdge(c,d,{minlen:g,weight:p,nestingEdge:!0}),t.setEdge(f,h,{minlen:g,weight:p,nestingEdge:!0})}),t.parent(l)||t.setEdge(e,c,{weight:0,minlen:a+s[l]})}else l!==e&&t.setEdge(e,l,{weight:0,minlen:n})},o=function(t){var e,n={},r=function(e,i){var o=t.children(e);null===o||void 0===o||o.forEach(function(t){return r(t,i+1)}),n[e]=i};return null===(e=t.children())||void 0===e||e.forEach(function(t){return r(t,1)}),n},a=function(t){var e=0;return t.edges().forEach(function(n){e+=t.edge(n).weight}),e};e.default={run:function(t){var e,n=(0,r.addDummyNode)(t,"root",{},"_root"),s=o(t),l=Math.max.apply(Math,Object.values(s));Math.abs(l)===1/0&&(l=1);var u=l-1,c=2*u+1;t.graph().nestingRoot=n,t.edges().forEach(function(e){t.edge(e).minlen*=c});var h=a(t)+1;null===(e=t.children())||void 0===e||e.forEach(function(e){i(t,n,c,h,u,s,e)}),t.graph().nodeRankFactor=c},cleanup:function(t){var e=t.graph();e.nestingRoot&&t.removeNode(e.nestingRoot),delete e.nestingRoot,t.edges().forEach(function(e){t.edge(e).nestingEdge&&t.removeEdgeObj(e)})}}},3650:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(e){o(e)}}function s(t){try{l(r.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((r=r.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){t.nodes().forEach(function(e){r(t.node(e))}),t.edges().forEach(function(e){r(t.edge(e))})},r=function(t){var e=t.width;t.width=t.height,t.height=e},i=function(t){t.nodes().forEach(function(e){o(t.node(e))}),t.edges().forEach(function(e){var n,r=t.edge(e);null===(n=r.points)||void 0===n||n.forEach(function(t){return o(t)}),r.hasOwnProperty("y")&&o(r)})},o=function(t){(null===t||void 0===t?void 0:t.y)&&(t.y=-t.y)},a=function(t){t.nodes().forEach(function(e){s(t.node(e))}),t.edges().forEach(function(e){var n,r=t.edge(e);null===(n=r.points)||void 0===n||n.forEach(function(t){return s(t)}),r.hasOwnProperty("x")&&s(r)})},s=function(t){var e=t.x;t.x=t.y,t.y=e};e.default={adjust:function(t){var e,r=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();"lr"!==r&&"rl"!==r||n(t)},undo:function(t){var e,r=null===(e=t.graph().rankdir)||void 0===e?void 0:e.toLowerCase();"bt"!==r&&"rl"!==r||i(t),"lr"!==r&&"rl"!==r||(a(t),n(t))}}},3657:(t,e,n)=>{var r=n(2202),i=n(2545),o=n(6588),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},3679:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},3781:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.ERLayout=e.ForceAtlas2Layout=e.ComboCombinedLayout=e.ComboForceLayout=e.GForceGPULayout=e.FruchtermanGPULayout=e.FruchtermanLayout=e.MDSLayout=e.ConcentricLayout=e.RadialLayout=e.DagreCompoundLayout=e.DagreLayout=e.CircularLayout=e.ForceLayout=e.Force2Layout=e.GForceLayout=e.RandomLayout=e.GridLayout=e.Layouts=e.Layout=void 0;var o=n(7809);Object.defineProperty(e,"GridLayout",{enumerable:!0,get:function(){return o.GridLayout}});var a=n(2418);Object.defineProperty(e,"RandomLayout",{enumerable:!0,get:function(){return a.RandomLayout}});var s=n(1441);Object.defineProperty(e,"GForceLayout",{enumerable:!0,get:function(){return s.GForceLayout}});var l=n(5101);Object.defineProperty(e,"Force2Layout",{enumerable:!0,get:function(){return l.Force2Layout}});var u=n(1973);Object.defineProperty(e,"ForceLayout",{enumerable:!0,get:function(){return u.ForceLayout}});var c=n(584);Object.defineProperty(e,"CircularLayout",{enumerable:!0,get:function(){return c.CircularLayout}});var h=n(7e3);Object.defineProperty(e,"DagreLayout",{enumerable:!0,get:function(){return h.DagreLayout}});var d=n(1877);Object.defineProperty(e,"DagreCompoundLayout",{enumerable:!0,get:function(){return d.DagreCompoundLayout}});var f=n(9845);Object.defineProperty(e,"RadialLayout",{enumerable:!0,get:function(){return f.RadialLayout}});var p=n(4229);Object.defineProperty(e,"ConcentricLayout",{enumerable:!0,get:function(){return p.ConcentricLayout}});var g=n(4907);Object.defineProperty(e,"MDSLayout",{enumerable:!0,get:function(){return g.MDSLayout}});var v=n(9004);Object.defineProperty(e,"FruchtermanLayout",{enumerable:!0,get:function(){return v.FruchtermanLayout}});var m=n(994);Object.defineProperty(e,"FruchtermanGPULayout",{enumerable:!0,get:function(){return m.FruchtermanGPULayout}});var y=n(3650);Object.defineProperty(e,"GForceGPULayout",{enumerable:!0,get:function(){return y.GForceGPULayout}});var b=n(4e3);Object.defineProperty(e,"ComboForceLayout",{enumerable:!0,get:function(){return b.ComboForceLayout}});var x=n(2212);Object.defineProperty(e,"ComboCombinedLayout",{enumerable:!0,get:function(){return x.ComboCombinedLayout}});var w=n(4054);Object.defineProperty(e,"ForceAtlas2Layout",{enumerable:!0,get:function(){return w.ForceAtlas2Layout}});var S=n(6137);Object.defineProperty(e,"ERLayout",{enumerable:!0,get:function(){return S.ERLayout}});var k=n(6823);Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return k.Layout}}),Object.defineProperty(e,"Layouts",{enumerable:!0,get:function(){return k.Layouts}}),i(n(588),e)},3803:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(143)),a=n(1925),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o.default),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(a.Graph),u=function(){return 1},c=function(t,e,n){for(var r,i=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;r=a.dequeue();)h(t,e,n,r);for(;r=o.dequeue();)h(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue()){i=i.concat(h(t,e,n,r,!0));break}}return i},h=function(t,e,n,r,i){var o,a,s=[];return null===(o=t.inEdges(r.v))||void 0===o||o.forEach(function(r){var o=t.edge(r),a=t.node(r.v);i&&s.push({v:r.v,w:r.w,in:0,out:0}),void 0===a.out&&(a.out=0),a.out-=o,f(e,n,a)}),null===(a=t.outEdges(r.v))||void 0===a||a.forEach(function(r){var i=t.edge(r),o=r.w,a=t.node(o);void 0===a.in&&(a.in=0),a.in-=i,f(e,n,a)}),t.removeNode(r.v),i?s:void 0},d=function(t,e){var n=new l,r=0,i=0;t.nodes().forEach(function(t){n.setNode(t,{v:t,in:0,out:0})}),t.edges().forEach(function(t){var o=n.edge(t)||0,a=(null===e||void 0===e?void 0:e(t))||1,s=o+a;n.setEdge(t.v,t.w,s),i=Math.max(i,n.node(t.v).out+=a),r=Math.max(r,n.node(t.w).in+=a)});for(var o=[],a=i+r+3,u=0;u{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"}},3896:t=>{t.exports=function(t){return t.split("")}},3904:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=(r=n(190))&&r.__esModule?r:{default:r};var o=function(t,e){for(var n=(0,i.default)(t,e),r=[],o=n.length,a=0;ar[a][l]+r[l][s]&&(r[a][s]=r[a][l]+r[l][s]);return r};e.default=o},3905:(t,e,n)=>{"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nr})},3912:(t,e,n)=>{"use strict";var r=n(40),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(c=e.ref),e)a.call(e,r)&&!l.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:i,type:t,key:u,ref:c,props:o,_owner:s.current}}e.Fragment=o,e.jsx=u,e.jsxs=u},3948:(t,e,n)=>{"use strict";var r=n(8898),i=n(906);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(8545)),a=r(n(8115)),s=r(n(9901)),l=r(n(2423)),u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=v(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(40)),c=r(n(6170)),h=r(n(5239)),d=r(n(9562)),f=n(2407),p=n(598),g=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];function v(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(v=function(t){return t?n:e})(t)}(0,f.setTwoToneColor)("#1890ff");var m=u.forwardRef(function(t,e){var n=t.className,r=t.icon,i=t.spin,f=t.rotate,v=t.tabIndex,m=t.onClick,y=t.twoToneColor,b=(0,l.default)(t,g),x=u.useContext(h.default),w=x.prefixCls,S=void 0===w?"anticon":w,k=x.rootClassName,E=(0,c.default)(k,S,(0,s.default)((0,s.default)({},"".concat(S,"-").concat(r.name),!!r.name),"".concat(S,"-spin"),!!i||"loading"===r.name),n),M=v;void 0===M&&m&&(M=-1);var _=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,C=(0,p.normalizeTwoToneColors)(y),A=(0,a.default)(C,2),O=A[0],T=A[1];return u.createElement("span",(0,o.default)((0,o.default)({role:"img","aria-label":r.name},b),{},{ref:e,tabIndex:M,onClick:m,className:E}),u.createElement(d.default,{icon:r,primaryColor:O,secondaryColor:T,style:_}))});m.displayName="AntdIcon",m.getTwoToneColor=f.getTwoToneColor,m.setTwoToneColor=f.setTwoToneColor;e.default=m},3994:(t,e,n)=>{var r=n(3133)("toUpperCase");t.exports=r},4e3:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.ComboForceLayout=void 0;var i=n(2080),o=n(7007),a=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.maxIteration=100,n.gravity=10,n.comboGravity=10,n.linkDistance=10,n.alpha=1,n.alphaMin=.001,n.alphaDecay=1-Math.pow(n.alphaMin,1/300),n.alphaTarget=0,n.velocityDecay=.6,n.edgeStrength=.6,n.nodeStrength=30,n.preventOverlap=!1,n.preventNodeOverlap=!1,n.preventComboOverlap=!1,n.collideStrength=void 0,n.nodeCollideStrength=.5,n.comboCollideStrength=.5,n.comboSpacing=20,n.comboPadding=10,n.optimizeRangeFactor=1,n.onTick=function(){},n.onLayoutEnd=function(){},n.depthAttractiveForceScale=1,n.depthRepulsiveForceScale=2,n.nodes=[],n.edges=[],n.combos=[],n.comboTrees=[],n.width=300,n.height=300,n.bias=[],n.nodeMap={},n.oriComboMap={},n.indexMap={},n.comboMap={},n.previousLayouted=!1,n.updateCfg(e),n}return r(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.6,nodeStrength:30,linkDistance:10}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.center;if(t.comboTree={id:"comboTreeRoot",depth:-1,children:t.comboTrees},e&&0!==e.length){if(1===e.length)return e[0].x=n[0],e[0].y=n[1],void(t.onLayoutEnd&&t.onLayoutEnd());t.initVals(),t.run(),t.onLayoutEnd&&t.onLayoutEnd()}else t.onLayoutEnd&&t.onLayoutEnd()},e.prototype.run=function(){var t=this,e=t.nodes,n=t.previousLayouted?t.maxIteration/5:t.maxIteration;t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight);var r=t.center,i=t.velocityDecay,a=t.comboMap;t.previousLayouted||t.initPos(a);for(var s=function(n){var r=[];e.forEach(function(t,e){r[e]={x:0,y:0}}),t.applyCalculate(r),t.applyComboCenterForce(r),e.forEach(function(t,e){(0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)&&(t.x+=r[e].x*i,t.y+=r[e].y*i)}),t.alpha+=(t.alphaTarget-t.alpha)*t.alphaDecay,t.onTick()},l=0;lm[1]?m[0]:m[1])/2;g=function(t){return b}}else{var x=m/2;g=function(t){return x}}else g=function(t){return t.size?(0,o.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2:(0,o.isObject)(t.size)?(t.size.width>t.size.height?t.size.width:t.size.height)/2:t.size/2:10};this.nodeSize=g;var w,S=t.comboSpacing;w=(0,o.isNumber)(S)?function(){return S}:(0,o.isFunction)(S)?S:function(){return 0},this.comboSpacing=w;var k,E=t.comboPadding;k=(0,o.isNumber)(E)?function(){return E}:(0,o.isArray)(E)?function(){return Math.max.apply(null,E)}:(0,o.isFunction)(E)?E:function(){return 0},this.comboPadding=k;var M,_=this.linkDistance;_||(_=10),M=(0,o.isNumber)(_)?function(t){return _}:_,this.linkDistance=M;var C,A=this.edgeStrength;A||(A=1),C=(0,o.isNumber)(A)?function(t){return A}:A,this.edgeStrength=C;var O,T=this.nodeStrength;T||(T=30),O=(0,o.isNumber)(T)?function(t){return T}:T,this.nodeStrength=O},e.prototype.initPos=function(t){this.nodes.forEach(function(e,n){var r=e.comboId,i=t[r];r&&i?(e.x=i.cx+100/(n+1),e.y=i.cy+100/(n+1)):(e.x=100/(n+1),e.y=100/(n+1))})},e.prototype.getComboMap=function(){var t=this,e=t.nodeMap,n=t.comboTrees,r=t.oriComboMap,i={};return(n||[]).forEach(function(n){var a=[];(0,o.traverseTreeUp)(n,function(n){if("node"===n.itemType)return!0;if(!r[n.id])return!0;if(void 0===i[n.id]){var s={id:n.id,name:n.id,cx:0,cy:0,count:0,depth:t.oriComboMap[n.id].depth||0,children:[]};i[n.id]=s}var l=n.children;l&&l.forEach(function(t){if(!i[t.id]&&!e[t.id])return!0;a.push(t)});var u=i[n.id];if(u.cx=0,u.cy=0,0===a.length){u.empty=!0;var c=r[n.id];u.cx=c.x,u.cy=c.y}return a.forEach(function(t){if(u.count++,"node"!==t.itemType){var n=i[t.id];return(0,o.isNumber)(n.cx)&&(u.cx+=n.cx),void((0,o.isNumber)(n.cy)&&(u.cy+=n.cy))}var r=e[t.id];r&&((0,o.isNumber)(r.x)&&(u.cx+=r.x),(0,o.isNumber)(r.y)&&(u.cy+=r.y))}),u.cx/=u.count||1,u.cy/=u.count||1,u.children=a,!0})}),i},e.prototype.applyComboCenterForce=function(t){var e=this,n=e.gravity,r=e.comboGravity||n,i=this.alpha,a=e.comboTrees,s=e.indexMap,l=e.nodeMap,u=e.comboMap;(a||[]).forEach(function(e){(0,o.traverseTreeUp)(e,function(e){if("node"===e.itemType)return!0;if(!u[e.id])return!0;var n=u[e.id],a=(n.depth+1)/10*.5,c=n.cx,h=n.cy;return n.cx=0,n.cy=0,n.children.forEach(function(e){if("node"!==e.itemType){var d=u[e.id];return d&&(0,o.isNumber)(d.cx)&&(n.cx+=d.cx),void(d&&(0,o.isNumber)(d.cy)&&(n.cy+=d.cy))}var f=l[e.id],p=f.x-c||.005,g=f.y-h||.005,v=Math.sqrt(p*p+g*g),m=s[f.id],y=r*i/v*a;t[m].x-=p*y,t[m].y-=g*y,(0,o.isNumber)(f.x)&&(n.cx+=f.x),(0,o.isNumber)(f.y)&&(n.cy+=f.y)}),n.cx/=n.count||1,n.cy/=n.count||1,!0})})},e.prototype.applyCalculate=function(t){var e=this,n=e.comboMap,r=e.nodes,i={};r.forEach(function(t,e){r.forEach(function(n,r){if(!(eo&&(u.minX=o),u.minY>a&&(u.minY=a),u.maxX1&&r.forEach(function(n,o){if("node"===n.itemType)return!1;var l=e[n.id];l&&r.forEach(function(r,u){if(o<=u)return!1;if("node"===r.itemType)return!1;var c=e[r.id];if(!c)return!1;var h=l.cx-c.cx||.005,d=l.cy-c.cy||.005,f=h*h+d*d,p=l.r||1,g=c.r||1,v=p+g,m=g*g,y=p*p;if(fi)){var m=e["".concat(f.id,"-").concat(n.id)],y=m.vx,b=m.vy,x=Math.log(Math.abs(n.depth-f.depth)/10)+1||1;x=x<1?1:x,n.comboId!==f.comboId&&(x+=1);var w=x?Math.pow(h,x):1,S=o(n)*a/g*w;if(t[p].x+=y*S,t[p].y+=b*S,p{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},4054:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ForceAtlas2Layout=void 0;var o=n(2080),a=n(7007),s=i(n(1780)),l=i(n(527)),u=i(n(863)),c=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.kr=5,n.kg=1,n.mode="normal",n.preventOverlap=!1,n.dissuadeHubs=!1,n.barnesHut=void 0,n.maxIteration=0,n.ks=.1,n.ksmax=10,n.tao=.1,n.onLayoutEnd=function(){},n.prune=void 0,n.updateCfg(e),n}return r(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.onLayoutEnd,r=t.prune,i=t.maxIteration;t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight);for(var o=[],s=e.length,l=0;l250&&(t.barnesHut=!0),void 0===t.prune&&s>100&&(t.prune=!0),0!==this.maxIteration||t.prune?0===this.maxIteration&&r&&(i=100,s<=200&&s>100?i=500:s>200&&(i=950),this.maxIteration=i):(i=250,s<=200&&s>100?i=1e3:s>200&&(i=1200),this.maxIteration=i),t.kr||(t.kr=50,s>100&&s<=500?t.kr=20:s>500&&(t.kr=1)),t.kg||(t.kg=20,s>100&&s<=500?t.kg=10:s>500&&(t.kg=1)),this.nodes=t.updateNodesByForces(o),n()},e.prototype.updateNodesByForces=function(t){for(var e=this,n=e.edges,r=e.maxIteration,i=e.nodes,o=n.filter(function(t){return(0,a.getEdgeTerminal)(t,"source")!==(0,a.getEdgeTerminal)(t,"target")}),s=i.length,l=o.length,u=[],c={},h={},d=[],f=0;f0;){for(y=0;y50||!c)?this.getOptRepGraForces(g,m,i):this.getRepGraForces(p,50,g,100,o,i);var x=this.updatePos(g,v,f,i);l=x.nodes,f=x.sg,p--,a.tick&&a.tick()}return l},e.prototype.getAttrForces=function(t,e,n,r,i,o,a,s){for(var l=this,u=l.nodes,c=l.preventOverlap,h=l.dissuadeHubs,d=l.mode,f=l.prune,p=0;p0&&(w=x,S=x),s[2*r[g.id]]+=w*b[0],s[2*r[m.id]]-=S*b[0],s[2*r[g.id]+1]+=w*b[1],s[2*r[m.id]+1]-=S*b[1]}}return s},e.prototype.getRepGraForces=function(t,e,n,r,i,o){for(var a=this,s=a.nodes,l=a.preventOverlap,u=a.kr,c=a.kg,h=a.center,d=a.prune,f=s.length,p=0;p0&&(y=u*(o[p]+1)*(o[g]+1)/m),n[2*p]-=y*v[0],n[2*g]+=y*v[0],n[2*p+1]-=y*v[1],n[2*g+1]+=y*v[1]}var b=[s[p].x-h[0],s[p].y-h[1]],x=Math.hypot(b[0],b[1]);b[0]=b[0]/x,b[1]=b[1]/x;var w=c*(o[p]+1);n[2*p]-=w*b[0],n[2*p+1]-=w*b[1]}return n},e.prototype.getOptRepGraForces=function(t,e,n){for(var r=this,i=r.nodes,o=r.kg,a=r.center,s=r.prune,c=i.length,h=9e10,d=-9e10,f=9e10,p=-9e10,g=0;g=d&&(d=i[g].x),i[g].x<=h&&(h=i[g].x),i[g].y>=p&&(p=i[g].y),i[g].y<=f&&(f=i[g].y));var v={xmid:(d+h)/2,ymid:(p+f)/2,length:Math.max(d-h,p-f),massCenter:a,mass:c},m=new l.default(v),y=new u.default(m);for(g=0;g1.5*w?1.5*w:n);for(v=0;vE?E:S)*t[2*v],_=S*t[2*v+1];o[v].x+=M,o[v].y+=_}return{nodes:o,sg:n}},e}(o.Base);e.ForceAtlas2Layout=c},4074:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"}},4100:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"}},4155:(t,e,n)=>{t=n.nmd(t);var r=n(4046),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(e){}}();t.exports=s},4229:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.ConcentricLayout=void 0;var i=n(7007),o=function(t){function e(e){var n=t.call(this)||this;return n.nodeSize=30,n.minNodeSpacing=10,n.nodeSpacing=10,n.preventOverlap=!1,n.equidistant=!1,n.startAngle=1.5*Math.PI,n.clockwise=!0,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.onLayoutEnd=function(){},n.updateCfg(e),n}return r(e,t),e.prototype.getDefaultCfg=function(){return{nodeSize:30,minNodeSpacing:10,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},e.prototype.execute=function(){var t,e,n=this,r=n.nodes,o=n.edges,a=r.length;if(0!==a){n.width||"undefined"===typeof window||(n.width=window.innerWidth),n.height||"undefined"===typeof window||(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var s=n.center;if(1===a)return r[0].x=s[0],r[0].y=s[1],void(null===(e=n.onLayoutEnd)||void 0===e||e.call(n));var l,u=n.nodeSize,c=n.nodeSpacing,h=[],d=0;l=(0,i.isArray)(u)?Math.max(u[0],u[1]):u,(0,i.isArray)(c)?d=Math.max(c[0],c[1]):(0,i.isNumber)(c)&&(d=c),r.forEach(function(t){h.push(t);var e=l;(0,i.isArray)(t.size)?e=Math.max(t.size[0],t.size[1]):(0,i.isNumber)(t.size)?e=t.size:(0,i.isObject)(t.size)&&(e=Math.max(t.size.width,t.size.height)),l=Math.max(l,e),(0,i.isFunction)(c)&&(d=Math.max(c(t),d))}),n.clockwise=void 0!==n.counterclockwise?!n.counterclockwise:n.clockwise;var f={},p={};if(h.forEach(function(t,e){f[t.id]=t,p[t.id]=e}),("degree"===n.sortBy||!(0,i.isString)(n.sortBy)||void 0===h[0][n.sortBy])&&(n.sortBy="degree",!(0,i.isNumber)(r[0].degree))){var g=(0,i.getDegree)(r.length,p,o);h.forEach(function(t,e){t.degree=g[e].all})}h.sort(function(t,e){return e[n.sortBy]-t[n.sortBy]}),n.maxValueNode=h[0],n.maxLevelDiff=n.maxLevelDiff||n.maxValueNode[n.sortBy]/4;var v=[[]],m=v[0];h.forEach(function(t){if(m.length>0){var e=Math.abs(m[0][n.sortBy]-t[n.sortBy]);n.maxLevelDiff&&e>=n.maxLevelDiff&&(m=[],v.push(m))}m.push(t)});var y=l+(d||n.minNodeSpacing);if(!n.preventOverlap){var b=v.length>0&&v[0].length>1,x=(Math.min(n.width,n.height)/2-y)/(v.length+(b?1:0));y=Math.min(y,x)}var w=0;if(v.forEach(function(t){var e=n.sweep;void 0===e&&(e=2*Math.PI-2*Math.PI/t.length);var r=t.dTheta=e/Math.max(1,t.length-1);if(t.length>1&&n.preventOverlap){var i=Math.cos(r)-Math.cos(0),o=Math.sin(r)-Math.sin(0),a=Math.sqrt(y*y/(i*i+o*o));w=Math.max(a,w)}t.r=w,w+=y}),n.equidistant){for(var S=0,k=0,E=0;E{"use strict";t.exports=n(3139)},4503:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findShortestPath=e.findAllPath=void 0;var r,i=(r=n(6882))&&r.__esModule?r:{default:r},o=n(708);e.findShortestPath=function(t,e,n,r,o){var a=(0,i.default)(t,e,r,o),s=a.length,l=a.path,u=a.allPath;return{length:s[n],path:l[n],allPath:u[n]}};e.findAllPath=function(t,e,n,r){var i;if(e===n)return[[e]];var a=t.edges,s=void 0===a?[]:a,l=[e],u=((i={})[e]=!0,i),c=[],h=[],d=r?(0,o.getNeighbors)(e,s,"target"):(0,o.getNeighbors)(e,s);for(c.push(d);l.length>0&&c.length>0;){var f=c[c.length-1];if(f.length){var p=f.shift();if(p&&(l.push(p),u[p]=!0,d=r?(0,o.getNeighbors)(p,s,"target"):(0,o.getNeighbors)(p,s),c.push(d.filter(function(t){return!u[t]}))),l[l.length-1]===n){var g=l.map(function(t){return t});h.push(g);v=l.pop();u[v]=!1,c.pop()}}else{var v=l.pop();u[v]=!1,c.pop()}}return h}},4516:t=>{t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports},4580:(t,e,n)=>{var r=n(7498),i=n(1241)(function(t,e,n){return e=e.toLowerCase(),t+(n?r(e):e)});t.exports=i},4631:(t,e,n)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=(r=n(7208))&&r.__esModule?r:{default:r};e.default=i,t.exports=i},4665:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(6770)),o=r(n(2563)),a=r(n(7544)),s=r(n(6932)),l=r(n(8580)),u=n(7007),c=n(1703),h=n(2872),d=function(t,e,n){return e.map(function(e){return(0,a.default)(t,e,n)})},f=function(t,e,n,r){var i=new c.Graph;null===t||void 0===t||t.forEach(function(t){for(var o,a=t.graph().root,u=(0,l.default)(t,a,i,e,n,r),c=0;c<(null===(o=u.vs)||void 0===o?void 0:o.length);c++){var h=t.node(u.vs[c]);h&&(h.order=c)}(0,s.default)(t,i,u.vs)})},p=function(t,e){null===e||void 0===e||e.forEach(function(e){null===e||void 0===e||e.forEach(function(e,n){t.node(e).order=n})})};e.default=function(t,e){for(var n=(0,h.maxRank)(t),r=[],a=[],s=1;s-1;s--)a.push(s);var l=d(t,r,"inEdges"),c=d(t,a,"outEdges"),g=(0,i.default)(t);p(t,g);for(var v,m=Number.POSITIVE_INFINITY,y=(s=0,0);y<4;++s,++y){f(s%2?l:c,s%4>=2,!1,e),g=(0,h.buildLayerMatrix)(t),(b=(0,o.default)(t,g))=2,!0,e),g=(0,h.buildLayerMatrix)(t),(b=(0,o.default)(t,g)){t.exports=function(t){return function(e){return t(e)}}},4693:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.disp=[],this.positions=t.positions,this.adjMatrix=t.adjMatrix,this.focusID=t.focusID,this.radii=t.radii,this.iterations=t.iterations||10,this.height=t.height||10,this.width=t.width||10,this.speed=t.speed||100,this.gravity=t.gravity||10,this.nodeSizeFunc=t.nodeSizeFunc,this.k=t.k||5,this.strictRadial=t.strictRadial,this.nodes=t.nodes}return t.prototype.layout=function(){var t=this,e=t.positions,n=[],r=t.iterations,i=t.width/10;t.maxDisplace=i,t.disp=n;for(var o=0;ol?1:-1;u=.01*d,c=.01*d}if(hMath.PI/2&&(c-=Math.PI/2,s*=-1,l*=-1);var h=Math.cos(c)*u;t.x=s*h,t.y=l*h});var s=t.radii;e.forEach(function(t,l){if(l!==o){var u=Math.sqrt(n[l].x*n[l].x+n[l].y*n[l].y);if(u>0&&l!==o){var c=Math.min(a*(r/800),u);if(t[0]+=n[l].x/u*c,t[1]+=n[l].y/u*c,i){var h=t[0]-e[o][0],d=t[1]-e[o][1],f=Math.sqrt(h*h+d*d);h=h/f*s[l],d=d/f*s[l],t[0]=e[o][0]+h,t[1]=e[o][1]+d}}}})},t}();e.default=n},4714:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pageRankAsync=e.minimumSpanningTreeAsync=e.louvainAsync=e.labelPropagationAsync=e.getOutDegreeAsync=e.getNeighborsAsync=e.getInDegreeAsync=e.getDegreeAsync=e.getAdjMatrixAsync=e.floydWarshallAsync=e.findShortestPathAsync=e.findAllPathAsync=e.dijkstraAsync=e.detectCycleAsync=e.detectAllUndirectedCycleAsync=e.detectAllDirectedCycleAsync=e.detectAllCyclesAsync=e.connectedComponentAsync=e.GADDIAsync=void 0;var r,i=(r=n(26))&&r.__esModule?r:{default:r},o=n(1428);e.getAdjMatrixAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getAdjMatrix).apply(void 0,[t,e])};e.connectedComponentAsync=function(t,e){return(0,i.default)(o.ALGORITHM.connectedComponent).apply(void 0,[t,e])};e.getDegreeAsync=function(t){return(0,i.default)(o.ALGORITHM.getDegree)(t)};e.getInDegreeAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getInDegree)(t,e)};e.getOutDegreeAsync=function(t,e){return(0,i.default)(o.ALGORITHM.getOutDegree)(t,e)};e.detectCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectCycle)(t)};e.detectAllCyclesAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllCycles)(t)};e.detectAllDirectedCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllDirectedCycle)(t)};e.detectAllUndirectedCycleAsync=function(t){return(0,i.default)(o.ALGORITHM.detectAllUndirectedCycle)(t)};e.dijkstraAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.dijkstra).apply(void 0,[t,e,n,r])};e.findAllPathAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.findAllPath).apply(void 0,[t,e,n,r])};e.findShortestPathAsync=function(t,e,n,r,a){return(0,i.default)(o.ALGORITHM.findShortestPath).apply(void 0,[t,e,n,r,a])};e.floydWarshallAsync=function(t,e){return(0,i.default)(o.ALGORITHM.floydWarshall).apply(void 0,[t,e])};e.labelPropagationAsync=function(t,e,n,r){return void 0===r&&(r=1e3),(0,i.default)(o.ALGORITHM.labelPropagation)(t,e,n,r)};e.louvainAsync=function(t,e,n,r){return(0,i.default)(o.ALGORITHM.louvain)(t,e,n,r)};e.minimumSpanningTreeAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.minimumSpanningTree).apply(void 0,[t,e,n])};e.pageRankAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.pageRank).apply(void 0,[t,e,n])};e.getNeighborsAsync=function(t,e,n){return(0,i.default)(o.ALGORITHM.getNeighbors).apply(void 0,[t,e,n])};e.GADDIAsync=function(t,e,n,r,a,s,l){return void 0===n&&(n=!1),void 0===s&&(s="cluster"),void 0===l&&(l="cluster"),(0,i.default)(o.ALGORITHM.GADDI).apply(void 0,[t,e,n,r,a,s,l])}},4734:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},4864:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){return e.map(function(e){var n=t.inEdges(e);if(!(null===n||void 0===n?void 0:n.length))return{v:e};var r={sum:0,weight:0};return null===n||void 0===n||n.forEach(function(e){var n=t.edge(e),i=t.node(e.v);r.sum+=n.weight*i.order,r.weight+=n.weight}),{v:e,barycenter:r.sum/r.weight,weight:r.weight}})}},4906:(t,e,n)=>{"use strict";var r=n(8898).default;Object.defineProperty(e,"__esModule",{value:!0}),e.clearContainerCache=function(){c.clear()},e.injectCSS=p,e.removeCSS=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=g(t,e);if(n){d(e).removeChild(n)}},e.updateCSS=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=d(n),o=f(r),s=(0,i.default)((0,i.default)({},n),{},{styles:o});!function(t,e){var n=c.get(t);if(!n||!(0,a.default)(document,n)){var r=p("",e),i=r.parentNode;c.set(t,i),t.removeChild(r)}}(r,s);var l=g(e,s);if(l){var u,v,m;if(null!==(u=s.csp)&&void 0!==u&&u.nonce&&l.nonce!==(null===(v=s.csp)||void 0===v?void 0:v.nonce))l.nonce=null===(m=s.csp)||void 0===m?void 0:m.nonce;return l.innerHTML!==t&&(l.innerHTML=t),l}var y=p(t,s);return y.setAttribute(h(s),e),y};var i=r(n(8545)),o=r(n(427)),a=r(n(6883)),s="data-rc-order",l="data-rc-priority",u="rc-util-key",c=new Map;function h(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return t?t.startsWith("data-")?t:"data-".concat(t):u}function d(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function f(t){return Array.from((c.get(t)||t).children).filter(function(t){return"STYLE"===t.tagName})}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.default)())return null;var n=e.csp,r=e.prepend,i=e.priority,a=void 0===i?0:i,u=function(t){return"queue"===t?"prependQueue":t?"prepend":"append"}(r),c="prependQueue"===u,h=document.createElement("style");h.setAttribute(s,u),c&&a&&h.setAttribute(l,"".concat(a)),null!==n&&void 0!==n&&n.nonce&&(h.nonce=null===n||void 0===n?void 0:n.nonce),h.innerHTML=t;var p=d(e),g=p.firstChild;if(r){if(c){var v=(e.styles||f(p)).filter(function(t){if(!["prepend","prependQueue"].includes(t.getAttribute(s)))return!1;var e=Number(t.getAttribute(l)||0);return a>=e});if(v.length)return p.insertBefore(h,v[v.length-1].nextSibling),h}p.insertBefore(h,g)}else p.appendChild(h);return h}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(e);return(e.styles||f(n)).find(function(n){return n.getAttribute(h(e))===t})}},4907:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.MDSLayout=void 0;var i=n(7049),o=n(7007),a=function(t){function e(e){var n=t.call(this)||this;return n.center=[0,0],n.linkDistance=50,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(e),n}return r(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],linkDistance:50}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges,r=void 0===n?[]:n,i=t.center;if(e&&0!==e.length){if(1===e.length)return e[0].x=i[0],e[0].y=i[1],void(t.onLayoutEnd&&t.onLayoutEnd());var a=t.linkDistance,s=(0,o.getAdjMatrix)({nodes:e,edges:r},!1),l=(0,o.floydWarshall)(s);t.handleInfinity(l);var u=(0,o.scaleMatrix)(l,a);t.scaledDistances=u;var c=t.runMDS();return t.positions=c,c.forEach(function(t,n){e[n].x=t[0]+i[0],e[n].y=t[1]+i[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:r}}t.onLayoutEnd&&t.onLayoutEnd()},e.prototype.runMDS=function(){var t=this.scaledDistances,e=i.Matrix.mul(i.Matrix.pow(t,2),-.5),n=e.mean("row"),r=e.mean("column"),o=e.mean();e.add(o).subRowVector(n).subColumnVector(r);var a=new i.SingularValueDecomposition(e),s=i.Matrix.sqrt(a.diagonalMatrix).diagonal();return a.leftSingularVectors.toJSON().map(function(t){return i.Matrix.mul([t],[s]).toJSON()[0].splice(0,2)})},e.prototype.handleInfinity=function(t){var e=-999999;t.forEach(function(t){t.forEach(function(t){t!==1/0&&e{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5101:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1&&(o=(0,a.getAvgNodePosition)(u))}else o=void 0;return{x:null===o||void 0===o?void 0:o.x,y:null===o||void 0===o?void 0:o.y}}}}if(r){t||(t=this.getSameTypeLeafMap());var f=Array.from(new Set(s.map(function(t,e){return t[o]}))).filter(function(t){return void 0!==t}),p={};f.forEach(function(t){var e=s.filter(function(e){return e[o]===t}).map(function(t){return l[t.id]});p[t]=(0,a.getAvgNodePosition)(e)}),h={single:function(t){return c(t)},leaf:function(t){return c(t)},others:function(t){return c(t)},center:function(t,e,n){var r=p[t[o]];return{x:null===r||void 0===r?void 0:r.x,y:null===r||void 0===r?void 0:r.y}}}}this.centripetalOptions=i(i({},this.centripetalOptions),h);var g=this.centripetalOptions,v=g.leaf,m=g.single,y=g.others;v&&"function"!==typeof v&&(this.centripetalOptions.leaf=function(){return v}),m&&"function"!==typeof m&&(this.centripetalOptions.single=function(){return m}),y&&"function"!==typeof y&&(this.centripetalOptions.others=function(){return y})},e.prototype.updateCfg=function(t){t&&Object.assign(this,t)},e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t=this;t.stop();var e=t.nodes,n=t.edges,r=t.defSpringLen;if(t.judgingDistance=0,e&&0!==e.length){t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var o=t.center;if(1===e.length)return e[0].x=o[0],e[0].y=o[1],void t.onLayoutEnd([i({},e[0])]);t.degreesMap=(0,a.getDegreeMap)(e,n),t.propsGetMass?t.getMass=t.propsGetMass:t.getMass=function(e){var n=1;(0,a.isNumber)(e.mass)&&(n=e.mass);var r=t.degreesMap[e.id].all;return!r||r<5?n:5*r*n};var s,u=t.nodeSize;if(t.preventOverlap){var c,h=t.nodeSpacing;c=(0,a.isNumber)(h)?function(){return h}:(0,a.isFunction)(h)?h:function(){return 0},s=u?(0,a.isArray)(u)?function(t){return Math.max(u[0],u[1])+c(t)}:function(t){return u+c(t)}:function(t){return t.size?(0,a.isArray)(t.size)?Math.max(t.size[0],t.size[1])+c(t):(0,a.isObject)(t.size)?Math.max(t.size.width,t.size.height)+c(t):t.size+c(t):10+c(t)}}t.nodeSize=s,t.linkDistance=l(t.linkDistance,1),t.nodeStrength=l(t.nodeStrength,1),t.edgeStrength=l(t.edgeStrength,1);var d={},f={};e.forEach(function(e,r){(0,a.isNumber)(e.x)||(e.x=Math.random()*t.width),(0,a.isNumber)(e.y)||(e.y=Math.random()*t.height);var o=t.degreesMap[e.id];d[e.id]=i(i({},e),{data:i(i({},e.data),{size:t.nodeSize(e)||30,layout:{inDegree:o.in,outDegree:o.out,degree:o.all,tDegree:o.in,sDegree:o.out,force:{mass:t.getMass(e),nodeStrength:t.nodeStrength(e,n)}}})}),f[e.id]=r}),t.nodeMap=d,t.nodeIdxMap=f,t.edgeInfos=[],null===n||void 0===n||n.forEach(function(e){var n=d[e.source],o=d[e.target];n&&o?t.edgeInfos.push({edgeStrength:t.edgeStrength(e),linkDistance:r?r(i(i({},e),{source:n,target:o}),n,o):t.linkDistance(e,n,o)||1+(u(n)+u(n)||0)/2}):elf.edgeInfos.push({})}),this.getCentripetalOptions(),t.onLayoutEnd=t.onLayoutEnd||function(){},t.run()}else t.onLayoutEnd([])},e.prototype.run=function(){var t=this,e=t.maxIteration,n=t.nodes,r=t.edges,i=t.workerEnabled,o=t.minMovement,a=t.animate,s=t.nodeMap,l=t.height;if(t.currentMinY=0,t.currentMaxY=l,n){var u=[];if(n.forEach(function(t,e){u[2*e]=0,u[2*e+1]=0}),this.defSideCoe&&"function"===typeof this.defSideCoe){var c={};r.forEach(function(t){var e=t.source,n=t.target;c[e]=c[e]||[],c[e].push(t),c[n]=c[n]||[],c[n].push(t)}),this.relatedEdges=c}var h=e;if(i||!a){for(var d=0;(t.judgingDistance>o||d<1)&&d=h||t.judgingDistancea){var c=a/u;s*=c,l*=c}e[2*i]=s,e[2*i+1]=l})},e.prototype.updatePosition=function(t,e){var n=this,r=n.nodes,i=n.distanceThresholdMode,o=n.nodeMap;if(null===r||void 0===r?void 0:r.length){var s=0;"max"===i?n.judgingDistance=-1/0:"min"===i&&(n.judgingDistance=1/0);var l=1/0,u=-1/0;r.forEach(function(r,c){var h=o[r.id];if((0,a.isNumber)(r.fx)&&(0,a.isNumber)(r.fy))return r.x=r.fx,r.y=r.fy,h.x=r.x,void(h.y=r.y);var d=t[2*c]*e,f=t[2*c+1]*e;r.x+=d,r.y+=f,h.x=r.x,h.y=r.y,r.yu&&(u=r.y);var p=Math.sqrt(d*d+f*f);switch(i){case"max":n.judgingDistancep&&(n.judgingDistance=p);break;default:s+=p}}),this.currentMinY=l,this.currentMaxY=u,i&&"mean"!==i||(n.judgingDistance=s/r.length)}else this.judgingDistance=0},e.prototype.stop=function(){this.timeInterval&&"undefined"!==typeof window&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"force2"},e.prototype.getSameTypeLeafMap=function(){var t=this,e=t.nodeClusterBy,n=t.nodes,r=t.edges,i=t.nodeMap,o=t.degreesMap;if(null===n||void 0===n?void 0:n.length){var s={};return n.forEach(function(t,n){1===o[t.id].all&&(s[t.id]=(0,a.getCoreNodeAndRelativeLeafNodes)("leaf",t,r,e,o,i))}),s}},e}(o.Base);e.Force2Layout=u},5114:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(3905);var i=n(6944);function o(t){return function(t){if(Array.isArray(t))return(0,r.A)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,i.A)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5139:(t,e,n)=>{var r=n(4046),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},5227:(t,e,n)=>{"use strict";var r=n(40),i=n(4282);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n