diff --git a/_app/env.js b/_app/env.js new file mode 100644 index 0000000..f5427da --- /dev/null +++ b/_app/env.js @@ -0,0 +1 @@ +export const env={} \ No newline at end of file diff --git a/_app/immutable/assets/DragDrop.CUKWqqeK.css b/_app/immutable/assets/DragDrop.CUKWqqeK.css new file mode 100644 index 0000000..d946783 --- /dev/null +++ b/_app/immutable/assets/DragDrop.CUKWqqeK.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:SF Pro Text,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}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,samp,pre{font-family:SF Pro Mono,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color: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:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-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,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--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: rgb(59 130 246 / .5);--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: rgb(59 130 246 / .5);--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: }.container{width:100%;margin-right:auto;margin-left:auto}@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}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;text-align:start;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-x-0{left:0;right:0}.-top-40{top:-10rem}.left-0{left:0}.left-\[calc\(50\%\+3rem\)\]{left:calc(50% + 3rem)}.left-\[calc\(50\%-11rem\)\]{left:calc(50% - 11rem)}.top-0{top:0}.top-\[calc\(100\%-13rem\)\]{top:calc(100% - 13rem)}.isolate{isolation:isolate}.-z-10{z-index:-10}.z-50{z-index:50}.-m-1{margin:-.25rem}.-m-1\.5{margin:-.375rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-8{margin-bottom:2rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-\[1155\/678\]{aspect-ratio:1155/678}.h-10{height:2.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-full{height:100%}.h-screen{height:100vh}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-\[36\.125rem\]{width:36.125rem}.w-auto{width:auto}.w-full{width:100%}.\!max-w-none{max-width:none!important}.max-w-2xl{max-width:42rem}.max-w-7xl{max-width:80rem}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-xl{max-width:36rem}.grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-\[30deg\]{--tw-rotate: 30deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-10{row-gap:2.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity))}.border-violet-600{--tw-border-opacity: 1;border-color:rgb(124 58 237 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-violet-50{--tw-bg-opacity: 1;background-color:rgb(245 243 255 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-\[rgb\(237\,249\,239\)\]{--tw-gradient-from: rgb(237,249,239) var(--tw-gradient-from-position);--tw-gradient-to: rgb(237 249 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-\[rgb\(252\,236\,235\)\]{--tw-gradient-from: rgb(252,236,235) var(--tw-gradient-from-position);--tw-gradient-to: rgb(252 236 235 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[rgb\(113\,201\,117\)\]{--tw-gradient-to: rgb(113,201,117) var(--tw-gradient-to-position)}.to-\[rgb\(239\,90\,88\)\]{--tw-gradient-to: rgb(239,90,88) var(--tw-gradient-to-position)}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-16{padding-left:4rem}.pr-5{padding-right:1.25rem}.pt-14{padding-top:3.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-violet-800{--tw-text-opacity: 1;color:rgb(91 33 182 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity))}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);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 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blur{--tw-blur: blur(8px);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)}.blur-3xl{--tw-blur: blur(64px);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)}.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)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-blue-600:focus-visible{outline-color:#2563eb}@media (min-width: 640px){.sm\:-top-80{top:-20rem}.sm\:left-\[calc\(50\%\+36rem\)\]{left:calc(50% + 36rem)}.sm\:left-\[calc\(50\%-30rem\)\]{left:calc(50% - 30rem)}.sm\:top-\[calc\(100\%-30rem\)\]{top:calc(100% - 30rem)}.sm\:mt-20{margin-top:5rem}.sm\:mt-24{margin-top:6rem}.sm\:w-\[72\.1875rem\]{width:72.1875rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-32{padding-top:8rem;padding-bottom:8rem}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\:text-6xl{font-size:3.75rem;line-height:1}}@media (min-width: 1024px){.lg\:mx-32{margin-left:8rem;margin-right:8rem}.lg\:mt-24{margin-top:6rem}.lg\:flex{display:flex}.lg\:max-w-4xl{max-width:56rem}.lg\:max-w-none{max-width:none}.lg\:flex-1{flex:1 1 0%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:justify-end{justify-content:flex-end}.lg\:gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.lg\:gap-y-16{row-gap:4rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:pb-40{padding-bottom:10rem}.lg\:text-center{text-align:center}} diff --git a/_app/immutable/assets/Mycelium.BlCgbFGn.css b/_app/immutable/assets/Mycelium.BlCgbFGn.css new file mode 100644 index 0000000..e1a040e --- /dev/null +++ b/_app/immutable/assets/Mycelium.BlCgbFGn.css @@ -0,0 +1 @@ +.expand.svelte-76qmi8 rect.svelte-76qmi8{cursor:pointer}.expand.svelte-76qmi8 text.svelte-76qmi8{cursor:pointer}.expand.svelte-76qmi8:hover rect.svelte-76qmi8{stroke:var(--ios-blue)}.expand.svelte-76qmi8:hover text.svelte-76qmi8{fill:var(--ios-blue)}.container.svelte-133ndzu{position:relative;border:1px solid var(--gray-tertiary);border-radius:6px;overflow:hidden}canvas.svelte-133ndzu{vertical-align:middle}svg.svelte-133ndzu{position:absolute;left:0;top:0;cursor:crosshair}span.svelte-122vmdc{padding:0 10px}.myc-container{--black:black;--gray-tertiary:rgb(134, 134, 139);--ios-blue:rgb(0, 122, 255)}.myc-container.svelte-15hd81r.svelte-15hd81r{flex:1;position:relative}.myc-navigation.svelte-15hd81r.svelte-15hd81r{display:flex;place-items:center;justify-content:space-between;position:absolute;top:0;left:0;width:100%;height:2em;border-bottom:1px solid rgba(224,224,228,.5);background-color:#f0f0f580;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:13px;font-family:ui-sans-serif,system-ui,-apple-system,sans-serif}.myc-navigation.svelte-15hd81r .resetView.svelte-15hd81r{all:none;padding:0 10px}.myc-navigation.svelte-15hd81r button.svelte-15hd81r:hover,.myc-navigation.svelte-15hd81r button.svelte-15hd81r:visited{color:var(--ios-blue)}.myc-navigation-controls.svelte-15hd81r.svelte-15hd81r{display:flex}.myc-overlay.svelte-15hd81r.svelte-15hd81r{font-size:10px;font-family:SF Mono,ui-monospace,monospace;color:var(--gray-tertiary);position:absolute;bottom:10px;right:5px}.myc-overlay.svelte-15hd81r a.svelte-15hd81r{color:var(--ios-blue)}.myc-minimap.svelte-15hd81r.svelte-15hd81r{position:absolute;bottom:10px;left:10px} diff --git a/_app/immutable/assets/prism-one-light.BRPNifQ8.css b/_app/immutable/assets/prism-one-light.BRPNifQ8.css new file mode 100644 index 0000000..a61de2d --- /dev/null +++ b/_app/immutable/assets/prism-one-light.BRPNifQ8.css @@ -0,0 +1 @@ +code[class*=language-],pre[class*=language-]{background:#fafafa;color:#383a42;font-family:Fira Code,Fira Mono,Menlo,Consolas,DejaVu Sans Mono,monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] *::-moz-selection,pre[class*=language-] *::-moz-selection{background:#e5e5e6;color:inherit}code[class*=language-]::selection,code[class*=language-] *::selection,pre[class*=language-] *::selection{background:#e5e5e6;color:inherit}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.cdata{color:#a0a1a7}.token.doctype,.token.punctuation,.token.entity{color:#383a42}.token.attr-name,.token.class-name,.token.boolean,.token.constant,.token.number,.token.atrule{color:#b76b01}.token.keyword{color:#a626a4}.token.property,.token.tag,.token.symbol,.token.deleted,.token.important{color:#e45649}.token.selector,.token.string,.token.char,.token.builtin,.token.inserted,.token.regex,.token.attr-value,.token.attr-value>.token.punctuation{color:#50a14f}.token.variable,.token.operator,.token.function{color:#4078f2}.token.url{color:#0184bc}.token.attr-value>.token.punctuation.attr-equals,.token.special-attr>.token.attr-value>.token.value.css{color:#383a42}.language-css .token.selector{color:#e45649}.language-css .token.property{color:#383a42}.language-css .token.function,.language-css .token.url>.token.function{color:#0184bc}.language-css .token.url>.token.string.url{color:#50a14f}.language-css .token.important,.language-css .token.atrule .token.rule,.language-javascript .token.operator{color:#a626a4}.language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#ca1243}.language-json .token.operator{color:#383a42}.language-json .token.null.keyword{color:#b76b01}.language-markdown .token.url,.language-markdown .token.url>.token.operator,.language-markdown .token.url-reference.url>.token.string{color:#383a42}.language-markdown .token.url>.token.content{color:#4078f2}.language-markdown .token.url>.token.url,.language-markdown .token.url-reference.url{color:#0184bc}.language-markdown .token.blockquote.punctuation,.language-markdown .token.hr.punctuation{color:#a0a1a7;font-style:italic}.language-markdown .token.code-snippet{color:#50a14f}.language-markdown .token.bold .token.content{color:#b76b01}.language-markdown .token.italic .token.content{color:#a626a4}.language-markdown .token.strike .token.content,.language-markdown .token.strike .token.punctuation,.language-markdown .token.list.punctuation,.language-markdown .token.title.important>.token.punctuation{color:#e45649}.token.bold{font-weight:700}.token.comment,.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.8}.token.token.tab:not(:empty):before,.token.token.cr:before,.token.token.lf:before,.token.token.space:before{color:#383a4233}div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#e5e5e6;color:#696c77;padding:.1em .4em;border-radius:.3em}div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#c6c7c7;color:#383a42}.line-highlight.line-highlight{background:#383a420d}.line-highlight.line-highlight:before,.line-highlight.line-highlight[data-end]:after{background:#e5e5e6;color:#383a42;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px #0003}pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:#383a420d}.line-numbers.line-numbers .line-numbers-rows,.command-line .command-line-prompt{border-right-color:#383a4233}.line-numbers .line-numbers-rows>span:before,.command-line .command-line-prompt>span:before{color:#9d9d9f}.rainbow-braces .token.token.punctuation.brace-level-1,.rainbow-braces .token.token.punctuation.brace-level-5,.rainbow-braces .token.token.punctuation.brace-level-9{color:#e45649}.rainbow-braces .token.token.punctuation.brace-level-2,.rainbow-braces .token.token.punctuation.brace-level-6,.rainbow-braces .token.token.punctuation.brace-level-10{color:#50a14f}.rainbow-braces .token.token.punctuation.brace-level-3,.rainbow-braces .token.token.punctuation.brace-level-7,.rainbow-braces .token.token.punctuation.brace-level-11{color:#4078f2}.rainbow-braces .token.token.punctuation.brace-level-4,.rainbow-braces .token.token.punctuation.brace-level-8,.rainbow-braces .token.token.punctuation.brace-level-12{color:#a626a4}pre.diff-highlight>code .token.token.deleted:not(.prefix),pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:#ff526626}pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) *::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection{background-color:#fb566940}pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,pre.diff-highlight>code .token.token.deleted:not(.prefix) *::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,pre>code.diff-highlight .token.token.deleted:not(.prefix) *::selection{background-color:#fb566940}pre.diff-highlight>code .token.token.inserted:not(.prefix),pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:#1aff5b26}pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) *::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection{background-color:#38e06240}pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,pre.diff-highlight>code .token.token.inserted:not(.prefix) *::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,pre>code.diff-highlight .token.token.inserted:not(.prefix) *::selection{background-color:#38e06240}.prism-previewer.prism-previewer:before,.prism-previewer-gradient.prism-previewer-gradient div{border-color:hsl(0,0,95%)}.prism-previewer-color.prism-previewer-color:before,.prism-previewer-gradient.prism-previewer-gradient div,.prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}.prism-previewer.prism-previewer:after{border-top-color:hsl(0,0,95%)}.prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:hsl(0,0,95%)}.prism-previewer-angle.prism-previewer-angle:before,.prism-previewer-time.prism-previewer-time:before,.prism-previewer-easing.prism-previewer-easing{background:#fff}.prism-previewer-angle.prism-previewer-angle circle,.prism-previewer-time.prism-previewer-time circle{stroke:#383a42;stroke-opacity:1}.prism-previewer-easing.prism-previewer-easing circle,.prism-previewer-easing.prism-previewer-easing path,.prism-previewer-easing.prism-previewer-easing line{stroke:#383a42}.prism-previewer-easing.prism-previewer-easing circle{fill:transparent} diff --git a/_app/immutable/assets/viewer.BlCgbFGn.css b/_app/immutable/assets/viewer.BlCgbFGn.css new file mode 100644 index 0000000..e1a040e --- /dev/null +++ b/_app/immutable/assets/viewer.BlCgbFGn.css @@ -0,0 +1 @@ +.expand.svelte-76qmi8 rect.svelte-76qmi8{cursor:pointer}.expand.svelte-76qmi8 text.svelte-76qmi8{cursor:pointer}.expand.svelte-76qmi8:hover rect.svelte-76qmi8{stroke:var(--ios-blue)}.expand.svelte-76qmi8:hover text.svelte-76qmi8{fill:var(--ios-blue)}.container.svelte-133ndzu{position:relative;border:1px solid var(--gray-tertiary);border-radius:6px;overflow:hidden}canvas.svelte-133ndzu{vertical-align:middle}svg.svelte-133ndzu{position:absolute;left:0;top:0;cursor:crosshair}span.svelte-122vmdc{padding:0 10px}.myc-container{--black:black;--gray-tertiary:rgb(134, 134, 139);--ios-blue:rgb(0, 122, 255)}.myc-container.svelte-15hd81r.svelte-15hd81r{flex:1;position:relative}.myc-navigation.svelte-15hd81r.svelte-15hd81r{display:flex;place-items:center;justify-content:space-between;position:absolute;top:0;left:0;width:100%;height:2em;border-bottom:1px solid rgba(224,224,228,.5);background-color:#f0f0f580;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:13px;font-family:ui-sans-serif,system-ui,-apple-system,sans-serif}.myc-navigation.svelte-15hd81r .resetView.svelte-15hd81r{all:none;padding:0 10px}.myc-navigation.svelte-15hd81r button.svelte-15hd81r:hover,.myc-navigation.svelte-15hd81r button.svelte-15hd81r:visited{color:var(--ios-blue)}.myc-navigation-controls.svelte-15hd81r.svelte-15hd81r{display:flex}.myc-overlay.svelte-15hd81r.svelte-15hd81r{font-size:10px;font-family:SF Mono,ui-monospace,monospace;color:var(--gray-tertiary);position:absolute;bottom:10px;right:5px}.myc-overlay.svelte-15hd81r a.svelte-15hd81r{color:var(--ios-blue)}.myc-minimap.svelte-15hd81r.svelte-15hd81r{position:absolute;bottom:10px;left:10px} diff --git a/_app/immutable/chunks/DragDrop.BcO43fWJ.js b/_app/immutable/chunks/DragDrop.BcO43fWJ.js new file mode 100644 index 0000000..c4bba42 --- /dev/null +++ b/_app/immutable/chunks/DragDrop.BcO43fWJ.js @@ -0,0 +1 @@ +import{s as g,k as b,e as D,c as w,b as v,f as c,h as d,y as h,i as A,z as m,u as k,l as y,m as T,A as W}from"./scheduler.BZf3Antt.js";import{S as E,i as z,t as F,b as S}from"./index.C7bWdOrd.js";import{b as $}from"./paths.DMfsdrqg.js";import{g as q}from"./entry.EQ8aNA8H.js";import{v as p}from"./stores.BEpXIDt_.js";function B(r){let e,s,f,u;const l=r[4].default,t=b(l,r,r[3],null);return{c(){e=D("div"),t&&t.c(),this.h()},l(a){e=w(a,"DIV",{role:!0,tabindex:!0,"aria-label":!0,class:!0});var n=v(e);t&&t.l(n),n.forEach(c),this.h()},h(){d(e,"role","button"),d(e,"tabindex","0"),d(e,"aria-label","dropzone"),d(e,"class","grow"),h(e,"blur",r[0])},m(a,n){A(a,e,n),t&&t.m(e,null),s=!0,f||(u=[m(e,"dragenter",r[1]),m(e,"dragover",r[1]),m(e,"dragleave",r[5]),m(e,"drop",r[2])],f=!0)},p(a,[n]){t&&t.p&&(!s||n&8)&&k(t,l,a,a[3],s?T(l,a[3],n,null):y(a[3]),null),(!s||n&1)&&h(e,"blur",a[0])},i(a){s||(F(t,a),s=!0)},o(a){S(t,a),s=!1},d(a){a&&c(e),t&&t.d(a),f=!1,W(u)}}}function C(r,e,s){let{$$slots:f={},$$scope:u}=e,l=!1;function t(o){s(0,l=!0),o.preventDefault()}function a(o){s(0,l=!1);const _=new FileReader;if(o.dataTransfer!==null){const i=o.dataTransfer.files[0];if(_.onloadend=async function(){i.name.endsWith(".onnx")?p.set({kind:"onnx",data:new Uint8Array(this.result)}):i.name.endsWith(".dot")&&p.set({kind:"dot",data:this.result}),await q(`${$}/viewer`)},i.name.endsWith(".onnx"))_.readAsArrayBuffer(i);else if(i.name.endsWith(".dot"))_.readAsText(i);else throw new Error(`unknown extension: ${i.name}`)}s(0,l=!1),o.preventDefault()}const n=()=>s(0,l=!1);return r.$$set=o=>{"$$scope"in o&&s(3,u=o.$$scope)},[l,t,a,u,f,n]}class G extends E{constructor(e){super(),z(this,e,C,B,g,{})}}export{G as D}; diff --git a/_app/immutable/chunks/Viewer.C5t0eI9O.js b/_app/immutable/chunks/Viewer.C5t0eI9O.js new file mode 100644 index 0000000..37fa28a --- /dev/null +++ b/_app/immutable/chunks/Viewer.C5t0eI9O.js @@ -0,0 +1 @@ +import{s as _,a as k,e as v,o as b,f as r,d as y,c as g,b as C,h as u,i as h,n as f,p as E,q as S,r as V}from"./scheduler.BZf3Antt.js";import{S as D,i as M}from"./index.C7bWdOrd.js";import{b as N}from"./viewer.BYFc8Cdc.js";function q(o){let i,s,n;return document.title=i=o[0]+" • Mycelium",{c(){s=k(),n=v("div"),this.h()},l(e){b("svelte-1nyv8ri",document.head).forEach(r),s=y(e),n=g(e,"DIV",{class:!0,id:!0}),C(n).forEach(r),this.h()},h(){u(n,"class","w-full h-full"),u(n,"id","app")},m(e,a){h(e,s,a),h(e,n,a),o[3](n)},p(e,[a]){a&1&&i!==(i=e[0]+" • Mycelium")&&(document.title=i)},i:f,o:f,d(e){e&&(r(s),r(n)),o[3](null)}}}function I(o,i,s){const n=E();let{network:e}=i,{title:a}=i,l,c;async function m(t){if(console.info("Selection Changed Event",t),t.selections.length>0){const d=t.selections.map(p=>p.primaryNodeId);console.info(`New selected nodes: ${d.join(",")}.`),await c.setFocus(d,!0)}}S(()=>{c=N.create(e,l,{showBreadcrumbs:!0,watermark:!1}),c.onSelectionDidChange(t=>{m(t)}),n("created",{viewer:c})});function w(t){V[t?"unshift":"push"](()=>{l=t,s(1,l)})}return o.$$set=t=>{"network"in t&&s(2,e=t.network),"title"in t&&s(0,a=t.title)},[a,l,e,w]}class x extends D{constructor(i){super(),M(this,i,I,q,_,{network:2,title:0})}}export{x as V}; diff --git a/_app/immutable/chunks/dot.Bgkvpxeo.js b/_app/immutable/chunks/dot.Bgkvpxeo.js new file mode 100644 index 0000000..66f0490 --- /dev/null +++ b/_app/immutable/chunks/dot.Bgkvpxeo.js @@ -0,0 +1,17 @@ +import{N as Kt,a as pu,T as gu,c as Vt}from"./viewer.BYFc8Cdc.js";import"./index.C7bWdOrd.js";function Yt(...l){const[a,...c]=l;return(...g)=>c.reduce((i,F)=>F(i),a(...g))}function e0(l,...a){return Yt(l,...a)}const re=Object.seal({Graph:null,Digraph:null,Subgraph:null,Node:null,Edge:null});function Fu(l){return Object.assign(Object.seal(Object.assign({},re)),l)}function u0(l){return typeof l=="object"&&l!==null&&typeof l.id=="string"}function r0(l){return typeof l=="object"&&l!==null&&l.$$type==="Node"&&typeof l.id=="string"}function du(l){return r0(l)||u0(l)}function Z(l){return typeof l=="string"||du(l)}function t0(l){return Array.isArray(l)&&l.every(Z)}function s0(l){return["n","ne","e","se","s","sw","w","nw","c"].includes(l)}function hu(l){if(du(l))return l;const[a,c,g]=l.split(":");return s0(g)?{id:a,port:c,compass:g}:{id:a,port:c}}function n0(l){if(l.length<2&&(Z(l[0])&&Z(l[1]))===!1)throw Error("EdgeTargets must have at least 2 elements.");return l.map(a=>hu(a))}class Ce{}class Ee extends Ce{#u=new Map;constructor(a){super(),a!==void 0&&this.apply(a)}get values(){return Array.from(this.#u.entries())}get size(){return this.#u.size}get(a){return this.#u.get(a)}set(a,c){c!=null&&this.#u.set(a,c)}delete(a){this.#u.delete(a)}apply(a){const c=Array.isArray(a)?a:Object.entries(a);for(const[g,i]of c)this.set(g,i)}clear(){this.#u.clear()}}class de extends Ee{constructor(a,c){super(c),this.$$kind=a}get $$type(){return"AttributeList"}comment}class Cu extends Ee{#u=re;id;comment;attributes=Object.freeze({graph:new de("Graph"),edge:new de("Edge"),node:new de("Node")});get nodes(){return Array.from(this.#e.nodes.values())}get edges(){return Array.from(this.#e.edges.values())}get subgraphs(){return Array.from(this.#e.subgraphs.values())}#e={nodes:new Map,edges:new Set,subgraphs:new Set};with(a){this.#u=Fu(a)}addNode(a){this.#e.nodes.set(a.id,a)}addEdge(a){this.#e.edges.add(a)}addSubgraph(a){this.#e.subgraphs.add(a)}existNode(a){return this.#e.nodes.has(a)}existEdge(a){return this.#e.edges.has(a)}existSubgraph(a){return this.#e.subgraphs.has(a)}createSubgraph(...a){const c=new this.#u.Subgraph(...a);return c.with(this.#u),this.addSubgraph(c),c}removeNode(a){this.#e.nodes.delete(typeof a=="string"?a:a.id)}removeEdge(a){this.#e.edges.delete(a)}removeSubgraph(a){this.#e.subgraphs.delete(a)}createNode(a,c){const g=new this.#u.Node(a,c);return this.addNode(g),g}getSubgraph(a){return Array.from(this.#e.subgraphs.values()).find(c=>c.id===a)}getNode(a){return this.#e.nodes.get(a)}createEdge(a,c){const g=a.map(F=>t0(F)?n0(F):hu(F)),i=new this.#u.Edge(g,c);return this.addEdge(i),i}subgraph(...a){const c=a.find(u=>typeof u=="string"),g=a.find(u=>typeof u=="object"&&u!==null),i=a.find(u=>typeof u=="function"),F=c?this.getSubgraph(c)??this.createSubgraph(c):this.createSubgraph();return g!==void 0&&F.apply(g),i!==void 0&&i(F),F}node(a,...c){if(typeof a=="string"){const g=a,i=c.find(v=>typeof v=="object"&&v!==null),F=c.find(v=>typeof v=="function"),u=this.getNode(g)??this.createNode(g);return i!==void 0&&u.attributes.apply(i),F!==void 0&&F(u),u}typeof a=="object"&&a!==null&&this.attributes.node.apply(a)}edge(a,...c){if(Array.isArray(a)){const g=a,i=c.find(v=>typeof v=="object"),F=c.find(v=>typeof v=="function"),u=this.createEdge(g,i);return F!==void 0&&F(u),u}typeof a=="object"&&a!==null&&this.attributes.edge.apply(a)}graph(a){this.attributes.graph.apply(a)}}class Eu extends Cu{get $$type(){return"Graph"}id;strict;constructor(...a){super(),this.id=a.find(g=>typeof g=="string"),this.strict=a.find(g=>typeof g=="boolean")??!1;const c=a.find(g=>typeof g=="object"&&g!==null);c!==void 0&&this.apply(c)}}class i0 extends Eu{get directed(){return!0}}class vu extends Ee{comment}class a0 extends Ce{constructor(a,c){if(super(),this.targets=a,a.length<2&&(Z(a[0])&&Z(a[1]))===!1)throw Error("The element of Edge target is missing or not satisfied as Edge target.");this.attributes=new vu(c)}get $$type(){return"Edge"}comment;attributes}class o0 extends Eu{get directed(){return!1}}class f0 extends Ce{constructor(a,c){super(),this.id=a,this.attributes=new vu(c)}get $$type(){return"Node"}comment;attributes;port(a){return typeof a=="string"?{id:this.id,port:a}:{id:this.id,...a}}}class l0 extends Cu{get $$type(){return"Subgraph"}id;constructor(...a){super(),this.id=a.find(g=>typeof g=="string");const c=a.find(g=>typeof g=="object"&&g!==null);c!==void 0&&this.apply(c)}isSubgraphCluster(){return typeof this.id=="string"?this.id.startsWith("cluster"):!1}}function c0(){Object.assign(re,{Graph:o0,Digraph:i0,Subgraph:l0,Node:f0,Edge:a0})}class he{constructor(a){this.options=a}getLocation(){return this.options?.locationFunction?.()??null}createElement(a,c,g=[]){return{location:this.getLocation(),...c,type:a,children:g}}}he.prototype.createElement.bind(new he);function A0(l){return a=>l+a+l}const p0=l=>l.replace(/\\/g,"\\\\").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/"/g,'\\"');e0(p0,A0('"'));const ve=function(){function l(i,F){function u(){this.constructor=i}u.prototype=F.prototype,i.prototype=new u}function a(i,F,u,v){var B=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(B,a.prototype),B.expected=F,B.found=u,B.location=v,B.name="SyntaxError",B}l(a,Error);function c(i,F,u){return u=u||" ",i.length>F?i:(F-=i.length,u+=u.repeat(F),i+u.slice(0,F))}a.prototype.format=function(i){var F="Error: "+this.message;if(this.location){var u=null,v;for(v=0;v `+S+` +`+P+` | +`+w.line+" | "+D+` +`+P+" | "+c("",B.column-1," ")+c("",y,"^")}else F+=` + at `+S}return F},a.buildMessage=function(i,F){var u={literal:function(D){return'"'+B(D.text)+'"'},class:function(D){var E=D.parts.map(function(y){return Array.isArray(y)?w(y[0])+"-"+w(y[1]):w(y)});return"["+(D.inverted?"^":"")+E.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(D){return D.description}};function v(D){return D.charCodeAt(0).toString(16).toUpperCase()}function B(D){return D.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(E){return"\\x0"+v(E)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(E){return"\\x"+v(E)})}function w(D){return D.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(E){return"\\x0"+v(E)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(E){return"\\x"+v(E)})}function S(D){return u[D.type](D)}function G(D){var E=D.map(S),y,T;if(E.sort(),E.length>0){for(y=1,T=1;y",$e="--",me=":",Nu="subgraph",_u="n",be="ne",Su="e",ye="se",ku="s",we="sw",Ru="w",xe="nw",Q='"',Ne="/*",M="*/",_e="//",ju="#",Gu="-",Se=".",Lu="<",Pu=">",ke="\\",Tu=` +`,Re=`\r +`,X=/^[,;]/,Mu=/^[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58-\u0C59\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,Ou=/^[$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376-\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u0660-\u0669\u066E-\u066F\u0671-\u06D3\u06D5\u06E5-\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4-\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09E6-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AE6-\u0AEF\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BEF\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58-\u0C59\u0C60-\u0C61\u0C66-\u0C6F\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60-\u0D61\u0D66-\u0D6F\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F29\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u19D0-\u19D9\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,O=/^[0-9]/,je=/^[<>]/,Iu=/^[\n\r"\u2028-\u2029]/,zu=/^[\r\u2028-\u2029]/,Ge=/^[\t-\n\r ]/,Uu=/^[\n\r]/,qu=/^[ \t]/,Hu=h("strict",!0),Le=h("graph",!0),Wu=h("digraph",!0),te=h("{",!1),se=h("}",!1),J=h(";",!1),Zu=h("node",!0),Qu=h("edge",!0),Xu=h("=",!1),K=_([",",";"],!1,!1),Ju=h("[",!1),Ku=h("]",!1),Vu=h("->",!1),Yu=h("--",!1),er=U("port"),Pe=h(":",!1),ur=h("subgraph",!0),rr=h("n",!1),tr=h("ne",!1),sr=h("e",!1),nr=h("se",!1),ir=h("s",!1),ar=h("sw",!1),or=h("w",!1),fr=h("nw",!1),V=h('"',!1),lr=h("/*",!1),ne=h("*/",!1),N=Bt(),cr=h("//",!1),Ar=h("#",!1),pr=U("UNICODE_STRING"),gr=_(["$",["A","Z"],"_",["a","z"],"ª","µ","º",["À","Ö"],["Ø","ö"],["ø","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ",["Ͱ","ʹ"],["Ͷ","ͷ"],["ͺ","ͽ"],"Ά",["Έ","Ί"],"Ό",["Ύ","Ρ"],["Σ","ϵ"],["Ϸ","ҁ"],["Ҋ","ԧ"],["Ա","Ֆ"],"ՙ",["ա","և"],["א","ת"],["װ","ײ"],["ؠ","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۥ","ۦ"],["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ߴ","ߵ"],"ߺ",["ࠀ","ࠕ"],"ࠚ","ࠤ","ࠨ",["ࡀ","ࡘ"],"ࢠ",["ࢢ","ࢬ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॱ","ॷ"],["ॹ","ॿ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","ళ"],["వ","హ"],"ఽ",["ౘ","ౙ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൠ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๆ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],"ໆ",["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["ა","ჺ"],["ჼ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["Ꭰ","Ᏼ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛮ","ᛰ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៗ","ៜ",["ᠠ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤜ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᧁ","ᧇ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],"ᪧ",["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱽ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ᴀ","ᶿ"],["Ḁ","ἕ"],["Ἐ","Ἕ"],["ἠ","ὅ"],["Ὀ","Ὅ"],["ὐ","ὗ"],"Ὑ","Ὓ","Ὕ",["Ὗ","ώ"],["ᾀ","ᾴ"],["ᾶ","ᾼ"],"ι",["ῂ","ῄ"],["ῆ","ῌ"],["ῐ","ΐ"],["ῖ","Ί"],["ῠ","Ῥ"],["ῲ","ῴ"],["ῶ","ῼ"],"ⁱ","ⁿ",["ₐ","ₜ"],"ℂ","ℇ",["ℊ","ℓ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℯ","ℹ"],["ℼ","ℿ"],["ⅅ","ⅉ"],"ⅎ",["Ⅰ","ↈ"],["Ⰰ","Ⱞ"],["ⰰ","ⱞ"],["Ⱡ","ⳤ"],["Ⳬ","ⳮ"],["Ⳳ","ⳳ"],["ⴀ","ⴥ"],"ⴧ","ⴭ",["ⴰ","ⵧ"],"ⵯ",["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"ⸯ",["々","〇"],["〡","〩"],["〱","〵"],["〸","〼"],["ぁ","ゖ"],["ゝ","ゟ"],["ァ","ヺ"],["ー","ヿ"],["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿌"],["ꀀ","ꒌ"],["ꓐ","ꓽ"],["ꔀ","ꘌ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],["Ꙁ","ꙮ"],["ꙿ","ꚗ"],["ꚠ","ꛯ"],["ꜗ","ꜟ"],["Ꜣ","ꞈ"],["Ꞌ","ꞎ"],["Ꞑ","ꞓ"],["Ꞡ","Ɦ"],["ꟸ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],"ꧏ",["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩶ"],"ꩺ",["ꪀ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫝ"],["ꫠ","ꫪ"],["ꫲ","ꫴ"],["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],["ff","st"],["ﬓ","ﬗ"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["A","Z"],["a","z"],["ヲ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Fr=_(["$",["0","9"],["A","Z"],"_",["a","z"],"ª","µ","º",["À","Ö"],["Ø","ö"],["ø","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ",["Ͱ","ʹ"],["Ͷ","ͷ"],["ͺ","ͽ"],"Ά",["Έ","Ί"],"Ό",["Ύ","Ρ"],["Σ","ϵ"],["Ϸ","ҁ"],["Ҋ","ԧ"],["Ա","Ֆ"],"ՙ",["ա","և"],["א","ת"],["װ","ײ"],["ؠ","ي"],["٠","٩"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۥ","ۦ"],["ۮ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["߀","ߪ"],["ߴ","ߵ"],"ߺ",["ࠀ","ࠕ"],"ࠚ","ࠤ","ࠨ",["ࡀ","ࡘ"],"ࢠ",["ࢢ","ࢬ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["०","९"],["ॱ","ॷ"],["ॹ","ॿ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["০","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["੦","੯"],["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],["૦","૯"],["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],["୦","୯"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["௦","௯"],["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","ళ"],["వ","హ"],"ఽ",["ౘ","ౙ"],["ౠ","ౡ"],["౦","౯"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["೦","೯"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൠ","ൡ"],["൦","൯"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๆ"],["๐","๙"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],"ໆ",["໐","໙"],["ໜ","ໟ"],"ༀ",["༠","༩"],["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],["ဿ","၉"],["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["႐","႙"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["ა","ჺ"],["ჼ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["Ꭰ","Ᏼ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛮ","ᛰ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៗ","ៜ",["០","៩"],["᠐","᠙"],["ᠠ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤜ"],["᥆","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᧁ","ᧇ"],["᧐","᧙"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["᪀","᪉"],["᪐","᪙"],"ᪧ",["ᬅ","ᬳ"],["ᭅ","ᭋ"],["᭐","᭙"],["ᮃ","ᮠ"],["ᮮ","ᯥ"],["ᰀ","ᰣ"],["᱀","᱉"],["ᱍ","ᱽ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ᴀ","ᶿ"],["Ḁ","ἕ"],["Ἐ","Ἕ"],["ἠ","ὅ"],["Ὀ","Ὅ"],["ὐ","ὗ"],"Ὑ","Ὓ","Ὕ",["Ὗ","ώ"],["ᾀ","ᾴ"],["ᾶ","ᾼ"],"ι",["ῂ","ῄ"],["ῆ","ῌ"],["ῐ","ΐ"],["ῖ","Ί"],["ῠ","Ῥ"],["ῲ","ῴ"],["ῶ","ῼ"],"ⁱ","ⁿ",["ₐ","ₜ"],"ℂ","ℇ",["ℊ","ℓ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℯ","ℹ"],["ℼ","ℿ"],["ⅅ","ⅉ"],"ⅎ",["Ⅰ","ↈ"],["Ⰰ","Ⱞ"],["ⰰ","ⱞ"],["Ⱡ","ⳤ"],["Ⳬ","ⳮ"],["Ⳳ","ⳳ"],["ⴀ","ⴥ"],"ⴧ","ⴭ",["ⴰ","ⵧ"],"ⵯ",["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"ⸯ",["々","〇"],["〡","〩"],["〱","〵"],["〸","〼"],["ぁ","ゖ"],["ゝ","ゟ"],["ァ","ヺ"],["ー","ヿ"],["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿌"],["ꀀ","ꒌ"],["ꓐ","ꓽ"],["ꔀ","ꘌ"],["ꘐ","ꘫ"],["Ꙁ","ꙮ"],["ꙿ","ꚗ"],["ꚠ","ꛯ"],["ꜗ","ꜟ"],["Ꜣ","ꞈ"],["Ꞌ","ꞎ"],["Ꞑ","ꞓ"],["Ꞡ","Ɦ"],["ꟸ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["꣐","꣙"],["ꣲ","ꣷ"],"ꣻ",["꤀","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧏ","꧙"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["꩐","꩙"],["ꩠ","ꩶ"],"ꩺ",["ꪀ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫝ"],["ꫠ","ꫪ"],["ꫲ","ꫴ"],["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["꯰","꯹"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],["ff","st"],["ﬓ","ﬗ"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["0","9"],["A","Z"],["a","z"],["ヲ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),dr=U("NUMBER"),hr=h("-",!1),Te=h(".",!1),I=_([["0","9"]],!1,!1),Cr=h("<",!1),Er=h(">",!1),Me=_(["<",">"],!1,!1),vr=_([` +`,"\r",'"',["\u2028","\u2029"]],!1,!1),Oe=h("\\",!1),Br=U("end of line"),Dr=h(` +`,!1),$r=h(`\r +`,!1),mr=_(["\r",["\u2028","\u2029"]],!1,!1),br=U("whitespace"),yr=U("WHITESPACE"),Ie=_([[" ",` +`],"\r"," "],!1,!1),wr=_([` +`,"\r"],!1,!1),xr=_([" "," "],!1,!1),Nr=function(e){return e},_r=function(e){return e},Sr=function(e){return e},kr=function(e){return e},Rr=function(e){return e},jr=function(e){return e},Gr=function(e){return e},Lr=function(e){return e},Pr=function(e){return e},Tr=function(e){return e},Mr=function(e,r,s){return b.createElement("Dot",{},[...e,r,...s])},Or=function(e,r,s,n){const f=!!e,C=r.toLowerCase()==="digraph";for(const R of cu)C?R.operator!=="->"&&Qe(`In digraph, it's necessary to describe with "->" operator to create edge.`,R.location):R.operator!=="--"&&Qe(`In graph, it's necessary to describe with "--" operator to create edge.`,R.location);return b.createElement("Graph",s!==null?{id:s,directed:C,strict:f}:{directed:C,strict:f},n)},Ir=function(e){return b.createElement("Attribute",{...e},[])},zr=function(e,r){return b.createElement("AttributeList",{kind:`${e.slice(0,1).toUpperCase()}${e.slice(1).toLowerCase()}`},r)},Ur=function(e,r,s){return b.createElement("Edge",{targets:[e,...r]},s??[])},qr=function(e,r){return b.createElement("Node",{id:e},r??[])},Hr=function(e,r){return{key:e,value:r}},Wr=function(e){return b.createElement("Attribute",{...e,location:ie()},[])},Zr=function(e){return e},ze=function(e,r){return r},Qr=function(e,r){return b.createElement("NodeRefGroup",{},[e,...r])},Xr=function(e){return{operator:e,location:ie()}},Jr=function(e,r,s){return cu.push(e),[r].concat(s||[])},Kr=function(e,r){return b.createElement("NodeRef",{id:e,...r},[])},Vr=function(e,r){return r},Yr=function(e,r){return["n","ne","e","se","s","sw","w","nw"].includes(e)?{compass:e}:r?{port:e,compass:r}:{port:e}},et=function(e){return e},ut=function(e,r){const s=r??[];return b.createElement("Subgraph",e?{id:e}:{},s)},rt=function(e){return{value:e,quoted:!1}},tt=function(e){return{value:e,quoted:!0}},st=function(e){return b.createElement("Literal",{...e},[])},nt=function(e){return b.createElement("Literal",{value:e,quoted:!1},[])},Ue=function(e){return e},it=function(e){return b.createElement("Comment",{kind:"Block",value:Fe(e.join("").replace(/[ \t]*\*/g,""))},[])},at=function(e){return b.createElement("Comment",{kind:"Slash",value:Fe(e.join(` +`))},[])},qe=function(e){return e},ot=function(e){return e.join("")},ft=function(e){return b.createElement("Comment",{kind:"Macro",value:Fe(e.join(` +`))},[])},He=function(e){return e},lt=function(e){return e.join("")},ct=function(e,r){return e+r.join("")},At=function(e,r){return e+r},pt=function(e){return Ze()},gt=function(e){return b.createElement("Literal",{value:e.slice(1,e.length-1),quoted:"html"},[])},Ft=function(e){return"<"+e.join("")+">"},We=function(e){return e},dt=function(e){return e.join("")},ht=function(e){return b.createElement("Literal",{value:e.join(""),quoted:!0},[])},Ct=function(){return Ze()},Et=function(e){return e[1]==='"'?'"':e[0]+e[1]},vt=function(){return""},t=F.peg$currPos|0,d=t,z=[{line:1,column:1}],x=t,Y=F.peg$maxFailExpected||[],o=F.peg$silentFails|0,W;if(F.startRule){if(!(F.startRule in B))throw new Error(`Can't start parsing from rule "`+F.startRule+'".');w=B[F.startRule]}function Ze(){return i.substring(d,t)}function ie(){return ee(d,t)}function Qe(e,r){throw r=r!==void 0?r:ee(d,t),$t(e,r)}function h(e,r){return{type:"literal",text:e,ignoreCase:r}}function _(e,r,s){return{type:"class",parts:e,inverted:r,ignoreCase:s}}function Bt(){return{type:"any"}}function Dt(){return{type:"end"}}function U(e){return{type:"other",description:e}}function Xe(e){var r=z[e],s;if(r)return r;if(e>=z.length)s=z.length-1;else for(s=e;!z[--s];);for(r=z[s],r={line:r.line,column:r.column};sx&&(x=t,Y=[]),Y.push(e))}function $t(e,r){return new a(e,null,null,r)}function mt(e,r,s){return new a(a.buildMessage(e,r),e,r,s)}function Je(){var e,r;return e=t,$(),r=bt(),r!==u?($(),d=e,e=Nr(r)):(t=e,e=u),e}function Ke(){var e,r;return e=t,$(),r=yt(),r!==u?($(),d=e,e=_r(r)):(t=e,e=u),e}function ae(){var e,r;return e=t,$(),r=_t(),r!==u?($(),d=e,e=Sr(r)):(t=e,e=u),e}function oe(){var e,r;return e=t,$(),r=xt(),r!==u?($(),d=e,e=kr(r)):(t=e,e=u),e}function fe(){var e,r;return e=t,$(),r=wt(),r!==u?($(),d=e,e=Rr(r)):(t=e,e=u),e}function le(){var e,r;return e=t,$(),r=Nt(),r!==u?($(),d=e,e=jr(r)):(t=e,e=u),e}function ce(){var e,r;return e=t,$(),r=Pt(),r!==u?($(),d=e,e=Gr(r)):(t=e,e=u),e}function ue(){var e,r;return e=t,$(),r=jt(),r!==u?($(),d=e,e=Lr(r)):(t=e,e=u),e}function Ve(){var e,r;return e=t,$(),r=St(),r!==u?($(),d=e,e=Pr(r)):(t=e,e=u),e}function k(){var e,r;return e=t,$(),r=Mt(),r!==u?($(),d=e,e=Tr(r)):(t=e,e=u),e}function Ae(){var e,r;for(e=[],r=fe(),r===u&&(r=oe(),r===u&&(r=le(),r===u&&(r=ce(),r===u&&(r=ae(),r===u&&(r=k())))));r!==u;)e.push(r),r=fe(),r===u&&(r=oe(),r===u&&(r=le(),r===u&&(r=ce(),r===u&&(r=ae(),r===u&&(r=k())))));return e}function bt(){var e,r,s,n,f;for(e=t,r=[],s=k();s!==u;)r.push(s),s=k();if(s=Ke(),s!==u){for(n=[],f=k();f!==u;)n.push(f),f=k();d=e,e=Mr(r,s,n)}else t=e,e=u;return e}function yt(){var e,r,s,n,f,p,C;return e=t,r=i.substr(t,6),r.toLowerCase()===S?t+=6:(r=u,o===0&&A(Hu)),r===u&&(r=null),m(),s=i.substr(t,5),s.toLowerCase()===G?t+=5:(s=u,o===0&&A(Le)),s===u&&(s=i.substr(t,7),s.toLowerCase()===P?t+=7:(s=u,o===0&&A(Wu))),s!==u?(m(),n=L(),n===u&&(n=null),$(),i.charCodeAt(t)===123?(f=D,t++):(f=u,o===0&&A(te)),f!==u?(p=Ae(),$(),i.charCodeAt(t)===125?(C=E,t++):(C=u,o===0&&A(se)),C!==u?(d=e,e=Or(r,s,n,p)):(t=e,e=u)):(t=e,e=u)):(t=e,e=u),e}function wt(){var e,r;return e=t,r=Ye(),r!==u?(m(),i.charCodeAt(t)===59?t++:o===0&&A(J),d=e,e=Ir(r)):(t=e,e=u),e}function xt(){var e,r,s;return e=t,r=i.substr(t,5),r.toLowerCase()===G?t+=5:(r=u,o===0&&A(Le)),r===u&&(r=i.substr(t,4),r.toLowerCase()===y?t+=4:(r=u,o===0&&A(Zu)),r===u&&(r=i.substr(t,4),r.toLowerCase()===T?t+=4:(r=u,o===0&&A(Qu)))),r!==u?(s=pe(),s!==u?(m(),i.charCodeAt(t)===59?t++:o===0&&A(J),d=e,e=zr(r,s)):(t=e,e=u)):(t=e,e=u),e}function Nt(){var e,r,s,n;return e=t,r=eu(),r!==u?(s=uu(),s!==u?(n=pe(),n===u&&(n=null),m(),i.charCodeAt(t)===59?t++:o===0&&A(J),d=e,e=Ur(r,s,n)):(t=e,e=u)):(t=e,e=u),e}function _t(){var e,r,s;return e=t,r=L(),r!==u?(m(),s=pe(),s===u&&(s=null),m(),i.charCodeAt(t)===59?t++:o===0&&A(J),d=e,e=qr(r,s)):(t=e,e=u),e}function Ye(){var e,r,s,n;return e=t,r=L(),r!==u?(m(),i.charCodeAt(t)===61?(s=yu,t++):(s=u,o===0&&A(Xu)),s!==u?(m(),n=L(),n!==u?(d=e,e=Hr(r,n)):(t=e,e=u)):(t=e,e=u)):(t=e,e=u),e}function St(){var e,r,s;return e=t,r=Ye(),r!==u?(m(),s=i.charAt(t),X.test(s)?t++:(s=u,o===0&&A(K)),s===u&&(s=null),d=e,e=Wr(r)):(t=e,e=u),e}function pe(){var e,r,s,n,f;if(e=t,m(),i.charCodeAt(t)===91?(r=wu,t++):(r=u,o===0&&A(Ju)),r!==u){for(s=[],n=Ve(),n===u&&(n=k());n!==u;)s.push(n),n=Ve(),n===u&&(n=k());n=$(),i.charCodeAt(t)===93?(f=xu,t++):(f=u,o===0&&A(Ku)),f!==u?(d=e,e=Zr(s)):(t=e,e=u)}else t=e,e=u;return e}function kt(){var e,r,s,n,f,p,C;if(e=t,i.charCodeAt(t)===123?(r=D,t++):(r=u,o===0&&A(te)),r!==u)if(s=ue(),s!==u){for(n=[],f=t,p=i.charAt(t),X.test(p)?t++:(p=u,o===0&&A(K)),p===u&&(p=null),C=ue(),C!==u?(d=f,f=ze(s,C)):(t=f,f=u);f!==u;)n.push(f),f=t,p=i.charAt(t),X.test(p)?t++:(p=u,o===0&&A(K)),p===u&&(p=null),C=ue(),C!==u?(d=f,f=ze(s,C)):(t=f,f=u);f=i.charAt(t),X.test(f)?t++:(f=u,o===0&&A(K)),f===u&&(f=null),p=$(),i.charCodeAt(t)===125?(C=E,t++):(C=u,o===0&&A(se)),C!==u?(d=e,e=Qr(s,n)):(t=e,e=u)}else t=e,e=u;else t=e,e=u;return e}function eu(){var e;return e=kt(),e===u&&(e=ue()),e}function Rt(){var e,r;return e=t,i.substr(t,2)===De?(r=De,t+=2):(r=u,o===0&&A(Vu)),r===u&&(i.substr(t,2)===$e?(r=$e,t+=2):(r=u,o===0&&A(Yu))),r!==u&&(d=e,r=Xr(r)),e=r,e}function uu(){var e,r,s,n;return e=t,m(),r=Rt(),r!==u?(m(),s=eu(),s!==u?(m(),n=uu(),n===u&&(n=null),d=e,e=Jr(r,s,n)):(t=e,e=u)):(t=e,e=u),e}function jt(){var e,r,s;return e=t,r=L(),r!==u?(s=Gt(),s===u&&(s=null),d=e,e=Kr(r,s)):(t=e,e=u),e}function Gt(){var e,r,s,n,f,p;return o++,e=t,i.charCodeAt(t)===58?(r=me,t++):(r=u,o===0&&A(Pe)),r!==u?(s=L(),s!==u?(n=t,i.charCodeAt(t)===58?(f=me,t++):(f=u,o===0&&A(Pe)),f!==u?(p=Tt(),p!==u?(d=n,n=Vr(s,p)):(t=n,n=u)):(t=n,n=u),n===u&&(n=null),d=e,e=Yr(s,n)):(t=e,e=u)):(t=e,e=u),o--,e===u&&(r=u,o===0&&A(er)),e}function Lt(){var e,r,s;return e=t,r=i.substr(t,8),r.toLowerCase()===Nu?t+=8:(r=u,o===0&&A(ur)),r!==u?(m(),s=L(),s===u&&(s=null),m(),d=e,e=et(s)):(t=e,e=u),e}function Pt(){var e,r,s,n,f;return e=t,r=Lt(),r===u&&(r=null),i.charCodeAt(t)===123?(s=D,t++):(s=u,o===0&&A(te)),s!==u?(n=Ae(),n===u&&(n=null),$(),i.charCodeAt(t)===125?(f=E,t++):(f=u,o===0&&A(se)),f!==u?(d=e,e=ut(r,n)):(t=e,e=u)):(t=e,e=u),e}function ru(){var e;return i.charCodeAt(t)===110?(e=_u,t++):(e=u,o===0&&A(rr)),e===u&&(i.substr(t,2)===be?(e=be,t+=2):(e=u,o===0&&A(tr)),e===u&&(i.charCodeAt(t)===101?(e=Su,t++):(e=u,o===0&&A(sr)),e===u&&(i.substr(t,2)===ye?(e=ye,t+=2):(e=u,o===0&&A(nr)),e===u&&(i.charCodeAt(t)===115?(e=ku,t++):(e=u,o===0&&A(ir)),e===u&&(i.substr(t,2)===we?(e=we,t+=2):(e=u,o===0&&A(ar)),e===u&&(i.charCodeAt(t)===119?(e=Ru,t++):(e=u,o===0&&A(or)),e===u&&(i.substr(t,2)===xe?(e=xe,t+=2):(e=u,o===0&&A(fr))))))))),e}function Tt(){var e,r,s,n,f;return e=t,r=t,s=ru(),s!==u&&(d=r,s=rt(s)),r=s,r===u&&(r=t,i.charCodeAt(t)===34?(s=Q,t++):(s=u,o===0&&A(V)),s!==u?(n=ru(),n!==u?(i.charCodeAt(t)===34?(f=Q,t++):(f=u,o===0&&A(V)),f!==u?(d=r,r=tt(n)):(t=r,r=u)):(t=r,r=u)):(t=r,r=u)),r!==u&&(d=e,r=st(r)),e=r,e}function L(){var e,r;return e=Wt(),e===u&&(e=Ht(),e===u&&(e=t,r=nu(),r===u&&(r=Ut(),r===u&&(r=au())),r!==u&&(d=e,r=nt(r)),e=r)),e}function Mt(){var e;return e=Ot(),e===u&&(e=It(),e===u&&(e=zt())),e}function Ot(){var e,r,s,n,f,p;if(e=t,i.substr(t,2)===Ne?(r=Ne,t+=2):(r=u,o===0&&A(lr)),r!==u){for(s=[],n=t,f=t,o++,i.substr(t,2)===M?(p=M,t+=2):(p=u,o===0&&A(ne)),o--,p===u?f=void 0:(t=f,f=u),f!==u?(i.length>t?(p=i.charAt(t),t++):(p=u,o===0&&A(N)),p!==u?(d=n,n=Ue(p)):(t=n,n=u)):(t=n,n=u);n!==u;)s.push(n),n=t,f=t,o++,i.substr(t,2)===M?(p=M,t+=2):(p=u,o===0&&A(ne)),o--,p===u?f=void 0:(t=f,f=u),f!==u?(i.length>t?(p=i.charAt(t),t++):(p=u,o===0&&A(N)),p!==u?(d=n,n=Ue(p)):(t=n,n=u)):(t=n,n=u);i.substr(t,2)===M?(n=M,t+=2):(n=u,o===0&&A(ne)),n!==u?(d=e,e=it(s)):(t=e,e=u)}else t=e,e=u;return e}function It(){var e,r,s;if(e=t,r=[],s=tu(),s!==u)for(;s!==u;)r.push(s),s=tu();else r=u;return r!==u&&(d=e,r=at(r)),e=r,e}function tu(){var e,r,s,n,f,p;if(e=t,m(),i.substr(t,2)===_e?(r=_e,t+=2):(r=u,o===0&&A(cr)),r!==u){for(s=[],n=t,f=t,o++,p=q(),o--,p===u?f=void 0:(t=f,f=u),f!==u?(i.length>t?(p=i.charAt(t),t++):(p=u,o===0&&A(N)),p!==u?(d=n,n=qe(p)):(t=n,n=u)):(t=n,n=u);n!==u;)s.push(n),n=t,f=t,o++,p=q(),o--,p===u?f=void 0:(t=f,f=u),f!==u?(i.length>t?(p=i.charAt(t),t++):(p=u,o===0&&A(N)),p!==u?(d=n,n=qe(p)):(t=n,n=u)):(t=n,n=u);n=q(),n===u&&(n=null),d=e,e=ot(s)}else t=e,e=u;return e}function zt(){var e,r,s;if(e=t,r=[],s=su(),s!==u)for(;s!==u;)r.push(s),s=su();else r=u;return r!==u&&(d=e,r=ft(r)),e=r,e}function su(){var e,r,s,n,f,p;if(e=t,m(),i.charCodeAt(t)===35?(r=ju,t++):(r=u,o===0&&A(Ar)),r!==u){for(s=[],n=t,f=t,o++,p=q(),o--,p===u?f=void 0:(t=f,f=u),f!==u?(i.length>t?(p=i.charAt(t),t++):(p=u,o===0&&A(N)),p!==u?(d=n,n=He(p)):(t=n,n=u)):(t=n,n=u);n!==u;)s.push(n),n=t,f=t,o++,p=q(),o--,p===u?f=void 0:(t=f,f=u),f!==u?(i.length>t?(p=i.charAt(t),t++):(p=u,o===0&&A(N)),p!==u?(d=n,n=He(p)):(t=n,n=u)):(t=n,n=u);n=q(),n===u&&(n=null),d=e,e=lt(s)}else t=e,e=u;return e}function nu(){var e,r,s,n;if(o++,e=t,r=qt(),r!==u){for(s=[],n=iu();n!==u;)s.push(n),n=iu();d=e,e=ct(r,s)}else t=e,e=u;return o--,e===u&&(r=u,o===0&&A(pr)),e}function Ut(){var e,r,s;return e=t,r=au(),r!==u?(s=nu(),s!==u?(d=e,e=At(r,s)):(t=e,e=u)):(t=e,e=u),e}function qt(){var e;return e=i.charAt(t),Mu.test(e)?t++:(e=u,o===0&&A(gr)),e}function iu(){var e;return e=i.charAt(t),Ou.test(e)?t++:(e=u,o===0&&A(Fr)),e}function au(){var e,r,s,n,f,p,C,R,j;if(o++,e=t,r=t,i.charCodeAt(t)===45?(s=Gu,t++):(s=u,o===0&&A(hr)),s===u&&(s=null),n=t,i.charCodeAt(t)===46?(f=Se,t++):(f=u,o===0&&A(Te)),f!==u){if(p=[],C=i.charAt(t),O.test(C)?t++:(C=u,o===0&&A(I)),C!==u)for(;C!==u;)p.push(C),C=i.charAt(t),O.test(C)?t++:(C=u,o===0&&A(I));else p=u;p!==u?(f=[f,p],n=f):(t=n,n=u)}else t=n,n=u;if(n===u){if(n=t,f=[],p=i.charAt(t),O.test(p)?t++:(p=u,o===0&&A(I)),p!==u)for(;p!==u;)f.push(p),p=i.charAt(t),O.test(p)?t++:(p=u,o===0&&A(I));else f=u;if(f!==u){if(p=t,i.charCodeAt(t)===46?(C=Se,t++):(C=u,o===0&&A(Te)),C!==u){for(R=[],j=i.charAt(t),O.test(j)?t++:(j=u,o===0&&A(I));j!==u;)R.push(j),j=i.charAt(t),O.test(j)?t++:(j=u,o===0&&A(I));C=[C,R],p=C}else t=p,p=u;p===u&&(p=null),f=[f,p],n=f}else t=n,n=u}return n!==u?(s=[s,n],r=s):(t=r,r=u),r!==u&&(d=e,r=pt()),e=r,o--,e===u&&(r=u,o===0&&A(dr)),e}function Ht(){var e,r;return e=t,r=ge(),r!==u&&(d=e,r=gt(r)),e=r,e}function ge(){var e,r,s,n;if(e=t,i.charCodeAt(t)===60?(r=Lu,t++):(r=u,o===0&&A(Cr)),r!==u){for(s=[],n=ou(),n===u&&(n=ge());n!==u;)s.push(n),n=ou(),n===u&&(n=ge());i.charCodeAt(t)===62?(n=Pu,t++):(n=u,o===0&&A(Er)),n!==u?(d=e,e=Ft(s)):(t=e,e=u)}else t=e,e=u;return e}function ou(){var e,r,s,n,f;if(e=t,r=[],s=t,n=t,o++,f=i.charAt(t),je.test(f)?t++:(f=u,o===0&&A(Me)),o--,f===u?n=void 0:(t=n,n=u),n!==u?(i.length>t?(f=i.charAt(t),t++):(f=u,o===0&&A(N)),f!==u?(d=s,s=We(f)):(t=s,s=u)):(t=s,s=u),s!==u)for(;s!==u;)r.push(s),s=t,n=t,o++,f=i.charAt(t),je.test(f)?t++:(f=u,o===0&&A(Me)),o--,f===u?n=void 0:(t=n,n=u),n!==u?(i.length>t?(f=i.charAt(t),t++):(f=u,o===0&&A(N)),f!==u?(d=s,s=We(f)):(t=s,s=u)):(t=s,s=u);else r=u;return r!==u&&(d=e,r=dt(r)),e=r,e}function Wt(){var e,r,s,n;if(e=t,i.charCodeAt(t)===34?(r=Q,t++):(r=u,o===0&&A(V)),r!==u){for(s=[],n=fu();n!==u;)s.push(n),n=fu();i.charCodeAt(t)===34?(n=Q,t++):(n=u,o===0&&A(V)),n!==u?(d=e,e=ht(s)):(t=e,e=u)}else t=e,e=u;return e}function fu(){var e,r,s;return e=Zt(),e===u&&(e=t,r=t,o++,s=i.charAt(t),Iu.test(s)?t++:(s=u,o===0&&A(vr)),o--,s===u?r=void 0:(t=r,r=u),r!==u?(s=Jt(),s!==u?(d=e,e=Ct()):(t=e,e=u)):(t=e,e=u),e===u&&(e=Qt())),e}function Zt(){var e,r,s,n;return e=t,r=t,i.charCodeAt(t)===92?(s=ke,t++):(s=u,o===0&&A(Oe)),s!==u?(i.length>t?(n=i.charAt(t),t++):(n=u,o===0&&A(N)),n!==u?(s=[s,n],r=s):(t=r,r=u)):(t=r,r=u),r!==u&&(d=e,r=Et(r)),e=r,e}function Qt(){var e,r,s;return e=t,i.charCodeAt(t)===92?(r=ke,t++):(r=u,o===0&&A(Oe)),r!==u?(s=Xt(),s!==u?(d=e,e=vt()):(t=e,e=u)):(t=e,e=u),e}function Xt(){var e;return o++,i.charCodeAt(t)===10?(e=Tu,t++):(e=u,o===0&&A(Dr)),e===u&&(i.substr(t,2)===Re?(e=Re,t+=2):(e=u,o===0&&A($r)),e===u&&(e=i.charAt(t),zu.test(e)?t++:(e=u,o===0&&A(mr)))),o--,e===u&&o===0&&A(Br),e}function Jt(){var e;return i.length>t?(e=i.charAt(t),t++):(e=u,o===0&&A(N)),e}function m(){var e,r;for(o++,e=[],r=lu();r!==u;)e.push(r),r=lu();return o--,r=u,o===0&&A(br),e}function $(){var e,r;for(o++,e=[],r=i.charAt(t),Ge.test(r)?t++:(r=u,o===0&&A(Ie));r!==u;)e.push(r),r=i.charAt(t),Ge.test(r)?t++:(r=u,o===0&&A(Ie));return o--,r=u,o===0&&A(yr),e}function q(){var e;return e=i.charAt(t),Uu.test(e)?t++:(e=u,o===0&&A(wr)),e}function lu(){var e;return e=i.charAt(t),qu.test(e)?t++:(e=u,o===0&&A(xr)),e}function Fe(e){const r=e.trim(),s=r.match(/\n([\t ]+|(?!\s).)/g);if(s){const n=s.map(p=>p.match(/[\t ]/g)?.length??0),f=new RegExp(` +[ ]{${Math.min(...n)}}`,"g");return r.replace(f,` +`)}return r}const cu=[],b=new he({locationFunction:ie});if(W=w(),F.peg$library)return{peg$result:W,peg$currPos:t,peg$FAILED:u,peg$maxFailExpected:Y,peg$maxFailPos:x};if(W!==u&&t===i.length)return W;throw W!==u&&t{switch(a.type){case"NodeRef":return{id:a.id.value,port:a.port?.value,compass:a.compass?.value};case"NodeRefGroup":return a.children.map(c=>({id:c.id.value,port:c.port?.value,compass:c.compass?.value}))}})}const C0={match(l){return l.type==="Edge"},convert(l,a){return new l.models.Edge($u(a),a.children.filter(g=>g.type==="Attribute").reduce((g,i)=>(g[i.key.value]=i.value.value,g),{}))}};function Be(l,a){const c=new Du;for(const g of a)switch(g.type){case"Subgraph":{const i=g.id?l.subgraph(g.id.value):l.subgraph();Be(i,g.children),c.apply(i,g.location);break}case"Attribute":l.set(g.key.value,g.value.value),c.reset();break;case"Node":c.apply(l.node(g.id.value,g.children.filter(i=>i.type==="Attribute").reduce((i,F)=>(i[F.key.value]=F.value.value,i),{})),g.location);break;case"Edge":c.apply(l.edge($u(g),g.children.filter(i=>i.type==="Attribute").reduce((i,F)=>(i[F.key.value]=F.value.value,i),{})),g.location);break;case"AttributeList":{const i=g.children.filter(F=>F.type==="Attribute").reduce((F,u)=>(F[u.key.value]=u.value.value,F),{});switch(g.kind){case"Edge":l.edge(i);break;case"Node":l.node(i);break;case"Graph":l.graph(i);break}c.reset();break}case"Comment":c.set(g)}}const E0={match(l){return l.type==="Graph"},convert(l,a){const c=a.directed?l.models.Digraph:l.models.Graph,g=new c(a.id?.value,a.strict);return Be(g,a.children),g}},v0={match(l){return l.type==="Node"},convert(l,a){return new l.models.Node(a.id.value,a.children.filter(g=>g.type==="Attribute").reduce((g,i)=>(g[i.key.value]=i.value.value,g),{}))}},B0={match(l){return l.type==="Subgraph"},convert(l,a){const c=new l.models.Subgraph(a.id?.value);return Be(c,a.children),c}},D0=[v0,C0,B0,E0,h0];class $0{constructor(a={}){this.options=a}plugins=[...D0];convert(a){const c=[...this.plugins],g={models:Fu(this.options.models??{}),convert(i){for(const F of c)if(F.match(i))return F.convert(g,i);throw Error()}};return g.convert(a)}}function m0(l,a){return new $0(a).convert(l)}new Proxy(Object.freeze({}),{get:(l,a)=>a});function Au(l,a){return(...c)=>{const g=l?this.Digraph:this.Graph,i=c.find(B=>typeof B=="string"),F=c.find(B=>typeof B=="object"),u=c.find(B=>typeof B=="function"),v=new g(i,a,F);return v.with(this),typeof u=="function"&&u(v),v}}function mu(l,a=re){return Object.freeze({digraph:Au.call(a,!0,l),graph:Au.call(a,!1,l)})}const bu=mu(!1);bu.digraph;bu.graph;mu(!0);function b0(l,a){const c=F0(l,a?.parse);if(Array.isArray(c)||c.type==="Attribute"||c.type==="AttributeList"||c.type==="Comment"||c.type==="NodeRef"||c.type==="NodeRefGroup"||c.type==="Literal")throw new Error;return m0(c,a?.convert)}c0();function y0(l){return new pu(l,new gu(l).with({fontWeight:600})).with({selectable:!0})}function w0(l){return new pu(l,new gu(l).with({fontWeight:600})).with({selectable:!0,backgroundColor:Vt.background.gray})}function H(l){return l.id!==void 0}function _0(l){const a=b0(l),c=new Set;for(const i of a.edges)for(const F of i.targets)H(F)?c.add(F.id):console.warn("Node groups are currently node supported.");for(const i of a.subgraphs)for(const F of i.edges)for(const u of F.targets)H(u)?c.add(u.id):console.warn("Node groups are currently node supported.");const g=new Kt;for(const i of c)g.setNode(i,y0(i));for(const i of a.edges){const[F,u]=i.targets;H(F)&&H(u)?g.setEdge(F.id,u.id):console.warn("Node groups are currently node supported.")}for(const i of a.subgraphs){const F=i.id;g.setNode(F,w0(F));for(const u of i.edges){const[v,B]=u.targets;if(H(v)&&H(B)){const w=v.id,S=B.id;g.setEdge(w,S),g.setParent(w,F),g.setParent(S,F)}else console.warn("Node groups are currently node supported.")}}return g}export{_0 as c}; diff --git a/_app/immutable/chunks/entry.EQ8aNA8H.js b/_app/immutable/chunks/entry.EQ8aNA8H.js new file mode 100644 index 0000000..bad3927 --- /dev/null +++ b/_app/immutable/chunks/entry.EQ8aNA8H.js @@ -0,0 +1,3 @@ +import{O as rt}from"./scheduler.BZf3Antt.js";import{w as pe}from"./index.DrtbdpeK.js";import{a as at,b as I}from"./paths.DMfsdrqg.js";new URL("sveltekit-internal://");function ot(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function st(e){return e.split("%25").map(decodeURI).join("%25")}function it(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ce({href:e}){return e.split("#")[0]}const ct=["href","pathname","search","toString","toJSON"];function lt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),a[o](s));t();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of ct)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const ft="/__data.json",ut=".html__data.json";function dt(e){return e.endsWith(".html")?e.replace(/\.html$/,ut):e.replace(/\/$/,"")+ft}function ht(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function pt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&F.delete(ge(e)),Ne(e,t));const F=new Map;function gt(e,t){const n=ge(e,t),r=document.querySelector(n);if(r?.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&F.set(n,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=pt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,t)}function _t(e,t,n){if(F.size>0){const r=ge(e,n),a=F.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(g=>parseInt(g,16))));const d=mt.exec(c),[,h,u,f,p]=d;return t.push({name:f,matcher:p,optional:!!h,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:t}}function wt(e){return!/^\([^)]+\)$/.test(e)}function vt(e){return e.slice(1).split("/").filter(wt)}function bt(e,t,n){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[s+1],h=a[s+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Et({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:h,params:u}=yt(s),f={id:s,exec:p=>{const g=h.exec(p);if(g)return bt(g,u,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function Oe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const kt="1725543191050",je="sveltekit:snapshot",De="sveltekit:scroll",$e="sveltekit:states",St="sveltekit:pageurl",O="sveltekit:history",G="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},B=location.origin;function Ce(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function _e(){return{x:pageXOffset,y:pageYOffset}}function x(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Re={...J,"":J.hover};function Ve(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Fe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ve(e)}}function ue(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,a=!n||!!r||ne(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===B&&e.hasAttribute("download");return{url:n,external:a,target:r,download:o}}function W(e){let t=null,n=null,r=null,a=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=x(s,"preload-code")),a===null&&(a=x(s,"preload-data")),t===null&&(t=x(s,"keepfocus")),n===null&&(n=x(s,"noscroll")),o===null&&(o=x(s,"reload")),i===null&&(i=x(s,"replacestate")),s=Ve(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Re[r??"off"],preload_data:Re[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Ie(e){const t=pe(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function At(){const{set:e,subscribe:t}=pe(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${at}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==kt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function ne(e,t){return e.origin!==B||!e.pathname.startsWith(t)}const Rt=-1,It=-2,Lt=-3,Pt=-4,Tt=-5,Ut=-6;function xt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(o,i=!1){if(o===Rt)return;if(o===Lt)return NaN;if(o===Pt)return 1/0;if(o===Tt)return-1/0;if(o===Ut)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=n[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return r[o]=l(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const d=new Set;r[o]=d;for(let f=1;ft!=null)}class re{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ge{constructor(t,n){this.status=t,this.location=n}}class me extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}const jt="x-sveltekit-invalidated",Dt="x-sveltekit-trailing-slash";function z(e){return e instanceof re||e instanceof me?e.status:500}function $t(e){return e instanceof me?e.text:"Internal Error"}const U=Oe(De)??{},M=Oe(je)??{},T={url:Ie({}),page:Ie({}),navigating:pe(null),updated:At()};function ye(e){U[e]=_e()}function Ct(e,t){let n=e+1;for(;U[n];)delete U[n],n+=1;for(n=t+1;M[n];)delete M[n],n+=1}function D(e){return location.href=e.href,new Promise(()=>{})}function Le(){}let ae,de,X,L,he,$;const Me=[],Z=[];let P=null;const He=[],Vt=[];let N=[],m={branch:[],error:null,url:null},we=!1,Q=!1,Pe=!0,H=!1,V=!1,Be=!1,ve=!1,be,v,A,S,ee;const q=new Set;async function Zt(e,t,n){document.URL!==location.href&&(location.href=location.href),$=e,ae=Et(e),L=document.documentElement,he=t,de=e.nodes[0],X=e.nodes[1],de(),X(),v=history.state?.[O],A=history.state?.[G],v||(v=A=Date.now(),history.replaceState({...history.state,[O]:v,[G]:A},""));const r=U[v];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Yt(he,n):Bt(location.href,{replaceState:!0}),Kt()}function Ft(){Me.length=0,ve=!1}function Ke(e){Z.some(t=>t?.snapshot)&&(M[e]=Z.map(t=>t?.snapshot?.capture()))}function Ye(e){M[e]?.forEach((t,n)=>{Z[n]?.snapshot?.restore(t)})}function Te(){ye(v),Ae(De,U),Ke(A),Ae(je,M)}async function Je(e,t,n,r){return Y({type:"goto",url:Ce(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(ve=!0)}})}async function qt(e){if(e.id!==P?.id){const t={};q.add(t),P={id:e.id,token:t,promise:ze({...e,preload:t}).then(n=>(q.delete(t),n.type==="loaded"&&n.state.error&&(P=null),n))}}return P.promise}async function fe(e){const t=ae.find(n=>n.exec(Xe(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function We(e,t,n){m=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),S=e.props.page,be=new $.root({target:t,props:{...e.props,stores:T,components:Z},hydrate:n}),Ye(A);const a={from:null,to:{params:m.params,route:{id:m.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};N.forEach(o=>o(a)),Q=!0}function te({url:e,params:t,branch:n,status:r,error:a,route:o,form:i}){let s="never";if(I&&(e.pathname===I||e.pathname===I+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=ot(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Ot(n).map(f=>f.node.component),page:S}};i!==void 0&&(c.props.form=i);let l={},d=!S,h=0;for(let f=0;f(s&&(c.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:lt(n,()=>{s&&(c.url=!0)},u=>{s&&c.search_params.add(u)}),async fetch(u,f){let p;u instanceof Request?(p=u.url,f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:u.headers,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f}):p=u;const g=new URL(p,n);return s&&d(g.href),g.origin===n.origin&&(p=g.href.slice(n.origin.length)),Q?_t(p,g.href,f):gt(p,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,h)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Ue(e,t,n,r,a,o){if(ve)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==m.params[i])return!0;for(const i of a.dependencies)if(Me.some(s=>s(new URL(i))))return!0;return!1}function ke(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Gt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),o=t.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&n.delete(r)}return n}function xe({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:S,constructors:[]}}}async function ze({id:e,invalidating:t,url:n,params:r,route:a,preload:o}){if(P?.id===e)return q.delete(P.token),P.promise;const{errors:i,layouts:s,leaf:c}=a,l=[...s,c];i.forEach(_=>_?.().catch(()=>{})),l.forEach(_=>_?.[1]().catch(()=>{}));let d=null;const h=m.url?e!==m.url.pathname+m.url.search:!1,u=m.route?a.id!==m.route.id:!1,f=Gt(m.url,n);let p=!1;const g=l.map((_,y)=>{const k=m.branch[y],b=!!_?.[0]&&(k?.loader!==_[1]||Ue(p,u,h,f,k.server?.uses,r));return b&&(p=!0),b});if(g.some(Boolean)){try{d=await et(n,g)}catch(_){const y=await j(_,{url:n,params:r,route:{id:e}});return q.has(o)?xe({error:y,url:n,params:r,route:a}):oe({status:z(_),error:y,url:n,route:a})}if(d.type==="redirect")return d}const R=d?.nodes;let E=!1;const C=l.map(async(_,y)=>{if(!_)return;const k=m.branch[y],b=R?.[y];if((!b||b.type==="skip")&&_[1]===k?.loader&&!Ue(E,u,h,f,k.universal?.uses,r))return k;if(E=!0,b?.type==="error")throw b;return Ee({loader:_[1],url:n,params:r,route:a,parent:async()=>{const se={};for(let ie=0;ie{});const w=[];for(let _=0;_Promise.resolve({}),server_data_node:ke(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:n,params:a,branch:[s,c],status:e,error:t,route:null})}function Se(e,t){if(!e||ne(e,I))return;let n;try{n=$.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Xe(n);for(const a of ae){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:t,route:a,params:it(o),url:e}}}function Xe(e){return st(e.slice(I.length)||"/")}function Ze({url:e,type:t,intent:n,delta:r}){let a=!1;const o=nt(m,n,e,t);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return H||He.forEach(s=>s(i)),a?null:o}async function Y({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Le,block:d=Le}){const h=Se(t,!1),u=Ze({url:t,type:e,delta:n?.delta,intent:h});if(!u){d();return}const f=v,p=A;l(),H=!0,Q&&T.navigating.set(u.navigation),ee=c;let g=h&&await ze(h);if(!g){if(ne(t,I))return await D(t);g=await Qe(t,{id:null},await j(new me(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=h?.url||t,ee!==c)return u.reject(new Error("navigation aborted")),!1;if(g.type==="redirect")if(s>=20)g=await oe({status:500,error:await j(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Je(new URL(g.location,t).href,{},s+1,c),!1;else g.props.page.status>=400&&await T.updated.check()&&await D(t);if(Ft(),ye(f),Ke(p),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),i=n?n.state:i,!n){const w=o?0:1,_={[O]:v+=w,[G]:A+=w,[$e]:i};(o?history.replaceState:history.pushState).call(history,_,"",t),o||Ct(v,A)}if(P=null,g.props.page.state=i,Q){m=g.state,g.props.page&&(g.props.page.url=t);const w=(await Promise.all(Vt.map(_=>_(u.navigation)))).filter(_=>typeof _=="function");if(w.length>0){let _=function(){N=N.filter(y=>!w.includes(y))};w.push(_),N.push(...w)}be.$set(g.props),Be=!0}else We(g,he,!1);const{activeElement:R}=document;await rt();const E=n?n.scroll:a?_e():null;if(Pe){const w=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));E?scrollTo(E.x,E.y):w?w.scrollIntoView():scrollTo(0,0)}const C=document.activeElement!==R&&document.activeElement!==document.body;!r&&!C&&Jt(),Pe=!0,g.props.page&&(S=g.props.page),H=!1,e==="popstate"&&Ye(A),u.fulfil(void 0),N.forEach(w=>w(u.navigation)),T.navigating.set(null)}async function Qe(e,t,n,r){return e.origin===B&&e.pathname===location.pathname&&!we?await oe({status:r,error:n,url:e,route:t}):await D(e)}function Ht(){let e;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",t),L.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),n.unobserve(i.target))},{threshold:0});function r(o,i){const s=Fe(o,L);if(!s)return;const{url:c,external:l,download:d}=ue(s,I);if(l||d)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const u=Se(c,!1);u&&qt(u)}else i<=h.preload_code&&fe(c.pathname)}function a(){n.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,I);if(s||c)continue;const l=W(o);l.reload||(l.preload_code===J.viewport&&n.observe(o),l.preload_code===J.eager&&fe(i.pathname))}}N.push(a),a()}function j(e,t){if(e instanceof re)return e.body;const n=z(e),r=$t(e);return $.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Bt(e,t={}){return e=Ce(e),e.origin!==B?Promise.reject(new Error("goto: invalid URL")):Je(e,t,0)}function Kt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Te(),!H){const r=nt(m,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};He.forEach(o=>o(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Te()}),navigator.connection?.saveData||Ht(),L.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Fe(t.composedPath()[0],L);if(!n)return;const{url:r,external:a,target:o,download:i}=ue(n,I);if(!r)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=W(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;if(a||s.reload){Ze({url:r,type:"link"})?H=!0:t.preventDefault();return}const[l,d]=r.href.split("#");if(d!==void 0&&l===ce(location)){const[,h]=m.url.href.split("#");if(h===d){t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):n.ownerDocument.getElementById(d)?.scrollIntoView();return}if(V=!0,ye(v),e(r),!s.replace_state)return;V=!1}t.preventDefault(),await new Promise(h=>{requestAnimationFrame(()=>{setTimeout(h,0)}),setTimeout(h,100)}),Y({type:"link",url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href})}),L.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formMethod||n.method)!=="get")return;const o=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ne(o,I))return;const i=t.target,s=W(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=r?.getAttribute("name");l&&c.append(l,r?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),Y({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[O]){const n=t.state[O];if(ee={},n===v)return;const r=U[n],a=t.state[$e]??{},o=new URL(t.state[St]??location.href),i=t.state[G],s=ce(location)===ce(m.url);if(i===A&&(Be||s)){e(o),U[v]=_e(),r&&scrollTo(r.x,r.y),a!==S.state&&(S={...S,state:a},be.$set({page:S})),v=n;return}const l=n-v;await Y({type:"popstate",url:o,popped:{state:a,scroll:r,delta:l},accept:()=>{v=n,A=i},block:()=>{history.go(-l)},nav_token:ee})}else if(!V){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[O]:++v,[G]:A},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&T.navigating.set(null)});function e(t){m.url=t,T.page.set({...S,url:t}),T.page.notify()}}async function Yt(e,{status:t=200,error:n,node_ids:r,params:a,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Se(c,!1)||{});let l;try{const d=r.map(async(f,p)=>{const g=i[p];return g?.uses&&(g.uses=tt(g.uses)),Ee({loader:$.nodes[f],url:c,params:a,route:o,parent:async()=>{const R={};for(let E=0;Ef===o.id);if(u){const f=u.layouts;for(let p=0;pa?"1":"0").join(""));const r=await Ne(n.href);if(!r.ok){let a;throw r.headers.get("content-type")?.includes("application/json")?a=await r.json():r.status===404?a="Not Found":r.status===500&&(a="Internal Error"),new re(r.status,a)}return new Promise(async a=>{const o=new Map,i=r.body.getReader(),s=new TextDecoder;function c(d){return xt(d,{Promise:h=>new Promise((u,f)=>{o.set(h,{fulfil:u,reject:f})})})}let l="";for(;;){const{done:d,value:h}=await i.read();if(d&&!l)break;for(l+=!h&&l?` +`:s.decode(h,{stream:!0});;){const u=l.indexOf(` +`);if(u===-1)break;const f=JSON.parse(l.slice(0,u));if(l=l.slice(u+1),f.type==="redirect")return a(f);if(f.type==="data")f.nodes?.forEach(p=>{p?.type==="data"&&(p.uses=tt(p.uses),p.data=c(p.data))}),a(f);else if(f.type==="chunk"){const{id:p,data:g,error:R}=f,E=o.get(p);o.delete(p),R?E.reject(c(R)):E.fulfil(c(g))}}}})}function tt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}function Jt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let o=0;o{if(r.rangeCount===a.length){for(let o=0;o{a=c,o=l});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:o}}export{Zt as a,Bt as g,T as s}; diff --git a/_app/immutable/chunks/index.BeFZgILa.js b/_app/immutable/chunks/index.BeFZgILa.js new file mode 100644 index 0000000..08ac492 --- /dev/null +++ b/_app/immutable/chunks/index.BeFZgILa.js @@ -0,0 +1 @@ +import{d as commonjsGlobal,g as getDefaultExportFromCjs,V as VStack,H as HStack,T as Text,e as Tooltip,a as Node,c as colors,N as Network}from"./viewer.BYFc8Cdc.js";import"./index.C7bWdOrd.js";var indexMinimal={},minimal$1={},aspromise=asPromise;function asPromise(u,i){for(var e=new Array(arguments.length-1),t=0,r=2,n=!0;r1&&l.charAt(a)==="=";)++f;return Math.ceil(l.length*3)/4-f};for(var e=new Array(64),t=new Array(123),r=0;r<64;)t[e[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;i.encode=function(l,a,f){for(var d=null,p=[],c=0,h=0,y;a>2],y=(s&3)<<4,h=1;break;case 1:p[c++]=e[y|s>>4],y=(s&15)<<2,h=2;break;case 2:p[c++]=e[y|s>>6],p[c++]=e[s&63],h=0;break}c>8191&&((d||(d=[])).push(String.fromCharCode.apply(String,p)),c=0)}return h&&(p[c++]=e[y],p[c++]=61,h===1&&(p[c++]=61)),d?(c&&d.push(String.fromCharCode.apply(String,p.slice(0,c))),d.join("")):String.fromCharCode.apply(String,p.slice(0,c))};var n="invalid encoding";i.decode=function(l,a,f){for(var d=f,p=0,c,h=0;h1)break;if((y=t[y])===void 0)throw Error(n);switch(p){case 0:c=y,p=1;break;case 1:a[f++]=c<<2|(y&48)>>4,c=y,p=2;break;case 2:a[f++]=(c&15)<<4|(y&60)>>2,c=y,p=3;break;case 3:a[f++]=(c&3)<<6|y,p=0;break}}if(p===1)throw Error(n);return f-d},i.test=function(l){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(l)}})(base64$1);var eventemitter=EventEmitter;function EventEmitter(){this._listeners={}}EventEmitter.prototype.on=function(i,e,t){return(this._listeners[i]||(this._listeners[i]=[])).push({fn:e,ctx:t||this}),this};EventEmitter.prototype.off=function(i,e){if(i===void 0)this._listeners={};else if(e===void 0)this._listeners[i]=[];else for(var t=this._listeners[i],r=0;r0?0:2147483648,n,o);else if(isNaN(r))t(2143289344,n,o);else if(r>34028234663852886e22)t((l<<31|2139095040)>>>0,n,o);else if(r<11754943508222875e-54)t((l<<31|Math.round(r/1401298464324817e-60))>>>0,n,o);else{var a=Math.floor(Math.log(r)/Math.LN2),f=Math.round(r*Math.pow(2,-a)*8388608)&8388607;t((l<<31|a+127<<23|f)>>>0,n,o)}}u.writeFloatLE=i.bind(null,writeUintLE),u.writeFloatBE=i.bind(null,writeUintBE);function e(t,r,n){var o=t(r,n),l=(o>>31)*2+1,a=o>>>23&255,f=o&8388607;return a===255?f?NaN:l*(1/0):a===0?l*1401298464324817e-60*f:l*Math.pow(2,a-150)*(f+8388608)}u.readFloatLE=e.bind(null,readUintLE),u.readFloatBE=e.bind(null,readUintBE)}(),typeof Float64Array<"u"?function(){var i=new Float64Array([-0]),e=new Uint8Array(i.buffer),t=e[7]===128;function r(a,f,d){i[0]=a,f[d]=e[0],f[d+1]=e[1],f[d+2]=e[2],f[d+3]=e[3],f[d+4]=e[4],f[d+5]=e[5],f[d+6]=e[6],f[d+7]=e[7]}function n(a,f,d){i[0]=a,f[d]=e[7],f[d+1]=e[6],f[d+2]=e[5],f[d+3]=e[4],f[d+4]=e[3],f[d+5]=e[2],f[d+6]=e[1],f[d+7]=e[0]}u.writeDoubleLE=t?r:n,u.writeDoubleBE=t?n:r;function o(a,f){return e[0]=a[f],e[1]=a[f+1],e[2]=a[f+2],e[3]=a[f+3],e[4]=a[f+4],e[5]=a[f+5],e[6]=a[f+6],e[7]=a[f+7],i[0]}function l(a,f){return e[7]=a[f],e[6]=a[f+1],e[5]=a[f+2],e[4]=a[f+3],e[3]=a[f+4],e[2]=a[f+5],e[1]=a[f+6],e[0]=a[f+7],i[0]}u.readDoubleLE=t?o:l,u.readDoubleBE=t?l:o}():function(){function i(t,r,n,o,l,a){var f=o<0?1:0;if(f&&(o=-o),o===0)t(0,l,a+r),t(1/o>0?0:2147483648,l,a+n);else if(isNaN(o))t(0,l,a+r),t(2146959360,l,a+n);else if(o>17976931348623157e292)t(0,l,a+r),t((f<<31|2146435072)>>>0,l,a+n);else{var d;if(o<22250738585072014e-324)d=o/5e-324,t(d>>>0,l,a+r),t((f<<31|d/4294967296)>>>0,l,a+n);else{var p=Math.floor(Math.log(o)/Math.LN2);p===1024&&(p=1023),d=o*Math.pow(2,-p),t(d*4503599627370496>>>0,l,a+r),t((f<<31|p+1023<<20|d*1048576&1048575)>>>0,l,a+n)}}}u.writeDoubleLE=i.bind(null,writeUintLE,0,4),u.writeDoubleBE=i.bind(null,writeUintBE,4,0);function e(t,r,n,o,l){var a=t(o,l+r),f=t(o,l+n),d=(f>>31)*2+1,p=f>>>20&2047,c=4294967296*(f&1048575)+a;return p===2047?c?NaN:d*(1/0):p===0?d*5e-324*c:d*Math.pow(2,p-1075)*(c+4503599627370496)}u.readDoubleLE=e.bind(null,readUintLE,0,4),u.readDoubleBE=e.bind(null,readUintBE,4,0)}(),u}function writeUintLE(u,i,e){i[e]=u&255,i[e+1]=u>>>8&255,i[e+2]=u>>>16&255,i[e+3]=u>>>24}function writeUintBE(u,i,e){i[e]=u>>>24,i[e+1]=u>>>16&255,i[e+2]=u>>>8&255,i[e+3]=u&255}function readUintLE(u,i){return(u[i]|u[i+1]<<8|u[i+2]<<16|u[i+3]<<24)>>>0}function readUintBE(u,i){return(u[i]<<24|u[i+1]<<16|u[i+2]<<8|u[i+3])>>>0}var inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(u){}return null}var utf8$2={};(function(u){var i=u;i.length=function(t){for(var r=0,n=0,o=0;o191&&d<224?a[f++]=(d&31)<<6|t[r++]&63:d>239&&d<365?(d=((d&7)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63)-65536,a[f++]=55296+(d>>10),a[f++]=56320+(d&1023)):a[f++]=(d&15)<<12|(t[r++]&63)<<6|t[r++]&63,f>8191&&((l||(l=[])).push(String.fromCharCode.apply(String,a)),f=0);return l?(f&&l.push(String.fromCharCode.apply(String,a.slice(0,f))),l.join("")):String.fromCharCode.apply(String,a.slice(0,f))},i.write=function(t,r,n){for(var o=n,l,a,f=0;f>6|192,r[n++]=l&63|128):(l&64512)===55296&&((a=t.charCodeAt(f+1))&64512)===56320?(l=65536+((l&1023)<<10)+(a&1023),++f,r[n++]=l>>18|240,r[n++]=l>>12&63|128,r[n++]=l>>6&63|128,r[n++]=l&63|128):(r[n++]=l>>12|224,r[n++]=l>>6&63|128,r[n++]=l&63|128);return n-o}})(utf8$2);var pool_1=pool;function pool(u,i,e){var t=e||8192,r=t>>>1,n=null,o=t;return function(a){if(a<1||a>r)return u(a);o+a>t&&(n=u(t),o=0);var f=i.call(n,o,o+=a);return o&7&&(o=(o|7)+1),f}}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=i;var u=requireMinimal();function i(n,o){this.lo=n>>>0,this.hi=o>>>0}var e=i.zero=new i(0,0);e.toNumber=function(){return 0},e.zzEncode=e.zzDecode=function(){return this},e.length=function(){return 1};var t=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(o){if(o===0)return e;var l=o<0;l&&(o=-o);var a=o>>>0,f=(o-a)/4294967296>>>0;return l&&(f=~f>>>0,a=~a>>>0,++a>4294967295&&(a=0,++f>4294967295&&(f=0))),new i(a,f)},i.from=function(o){if(typeof o=="number")return i.fromNumber(o);if(u.isString(o))if(u.Long)o=u.Long.fromString(o);else return i.fromNumber(parseInt(o,10));return o.low||o.high?new i(o.low>>>0,o.high>>>0):e},i.prototype.toNumber=function(o){if(!o&&this.hi>>>31){var l=~this.lo+1>>>0,a=~this.hi>>>0;return l||(a=a+1>>>0),-(l+a*4294967296)}return this.lo+this.hi*4294967296},i.prototype.toLong=function(o){return u.Long?new u.Long(this.lo|0,this.hi|0,!!o):{low:this.lo|0,high:this.hi|0,unsigned:!!o}};var r=String.prototype.charCodeAt;return i.fromHash=function(o){return o===t?e:new i((r.call(o,0)|r.call(o,1)<<8|r.call(o,2)<<16|r.call(o,3)<<24)>>>0,(r.call(o,4)|r.call(o,5)<<8|r.call(o,6)<<16|r.call(o,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var o=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^o)>>>0,this.lo=(this.lo<<1^o)>>>0,this},i.prototype.zzDecode=function(){var o=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^o)>>>0,this.hi=(this.hi>>>1^o)>>>0,this},i.prototype.length=function(){var o=this.lo,l=(this.lo>>>28|this.hi<<4)>>>0,a=this.hi>>>24;return a===0?l===0?o<16384?o<128?1:2:o<2097152?3:4:l<16384?l<128?5:6:l<2097152?7:8:a<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(u){var i=u;i.asPromise=aspromise,i.base64=base64$1,i.EventEmitter=eventemitter,i.float=float,i.inquire=inquire_1,i.utf8=utf8$2,i.pool=pool_1,i.LongBits=requireLongbits(),i.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),i.global=i.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n},i.isString=function(n){return typeof n=="string"||n instanceof String},i.isObject=function(n){return n&&typeof n=="object"},i.isset=i.isSet=function(n,o){var l=n[o];return l!=null&&n.hasOwnProperty(o)?typeof l!="object"||(Array.isArray(l)?l.length:Object.keys(l).length)>0:!1},i.Buffer=function(){try{var r=i.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(n){return typeof n=="number"?i.Buffer?i._Buffer_allocUnsafe(n):new i.Array(n):i.Buffer?i._Buffer_from(n):typeof Uint8Array>"u"?n:new Uint8Array(n)},i.Array=typeof Uint8Array<"u"?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(n){return n?i.LongBits.from(n).toHash():i.LongBits.zeroHash},i.longFromHash=function(n,o){var l=i.LongBits.fromHash(n);return i.Long?i.Long.fromBits(l.lo,l.hi,o):l.toNumber(!!o)};function e(r,n,o){for(var l=Object.keys(n),a=0;a-1;--f)if(o[a[f]]===1&&this[a[f]]!==void 0&&this[a[f]]!==null)return a[f]}},i.oneOfSetter=function(n){return function(o){for(var l=0;l127;)i[e++]=u&127|128,u>>>=7;i[e]=u}function VarintOp(u,i){this.len=u,this.next=void 0,this.val=i}VarintOp.prototype=Object.create(Op.prototype);VarintOp.prototype.fn=writeVarint32;Writer$1.prototype.uint32=function u(i){return this.len+=(this.tail=this.tail.next=new VarintOp((i=i>>>0)<128?1:i<16384?2:i<2097152?3:i<268435456?4:5,i)).len,this};Writer$1.prototype.int32=function u(i){return i<0?this._push(writeVarint64,10,LongBits$1.fromNumber(i)):this.uint32(i)};Writer$1.prototype.sint32=function u(i){return this.uint32((i<<1^i>>31)>>>0)};function writeVarint64(u,i,e){for(;u.hi;)i[e++]=u.lo&127|128,u.lo=(u.lo>>>7|u.hi<<25)>>>0,u.hi>>>=7;for(;u.lo>127;)i[e++]=u.lo&127|128,u.lo=u.lo>>>7;i[e++]=u.lo}Writer$1.prototype.uint64=function u(i){var e=LongBits$1.from(i);return this._push(writeVarint64,e.length(),e)};Writer$1.prototype.int64=Writer$1.prototype.uint64;Writer$1.prototype.sint64=function u(i){var e=LongBits$1.from(i).zzEncode();return this._push(writeVarint64,e.length(),e)};Writer$1.prototype.bool=function u(i){return this._push(writeByte,1,i?1:0)};function writeFixed32(u,i,e){i[e]=u&255,i[e+1]=u>>>8&255,i[e+2]=u>>>16&255,i[e+3]=u>>>24}Writer$1.prototype.fixed32=function u(i){return this._push(writeFixed32,4,i>>>0)};Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32;Writer$1.prototype.fixed64=function u(i){var e=LongBits$1.from(i);return this._push(writeFixed32,4,e.lo)._push(writeFixed32,4,e.hi)};Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64;Writer$1.prototype.float=function u(i){return this._push(util$4.float.writeFloatLE,4,i)};Writer$1.prototype.double=function u(i){return this._push(util$4.float.writeDoubleLE,8,i)};var writeBytes=util$4.Array.prototype.set?function u(i,e,t){e.set(i,t)}:function u(i,e,t){for(var r=0;r>>0;if(!e)return this._push(writeByte,1,0);if(util$4.isString(i)){var t=Writer$1.alloc(e=base64.length(i));base64.decode(i,t,0),i=t}return this.uint32(e)._push(writeBytes,e,i)};Writer$1.prototype.string=function u(i){var e=utf8$1.length(i);return e?this.uint32(e)._push(utf8$1.write,e,i):this._push(writeByte,1,0)};Writer$1.prototype.fork=function u(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this};Writer$1.prototype.reset=function u(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this};Writer$1.prototype.ldelim=function u(){var i=this.head,e=this.tail,t=this.len;return this.reset().uint32(t),t&&(this.tail.next=i.next,this.tail=e,this.len+=t),this};Writer$1.prototype.finish=function u(){for(var i=this.head.next,e=this.constructor.alloc(this.len),t=0;i;)i.fn(i.val,e,t),t+=i.len,i=i.next;return e};Writer$1._configure=function(u){BufferWriter$1=u,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$3=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$3._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$3.Buffer&&util$3.Buffer.prototype instanceof Uint8Array&&util$3.Buffer.prototype.set.name==="set"?function(i,e,t){e.set(i,t)}:function(i,e,t){if(i.copy)i.copy(e,t,0,i.length);else for(var r=0;r>>0;return this.uint32(e),e&&this._push(BufferWriter.writeBytesBuffer,e,i),this};function writeStringBuffer(u,i,e){u.length<40?util$3.utf8.write(u,i,e):i.utf8Write?i.utf8Write(u,e):i.write(u,e)}BufferWriter.prototype.string=function u(i){var e=util$3.Buffer.byteLength(i);return this.uint32(e),e&&this._push(writeStringBuffer,e,i),this};BufferWriter._configure();var reader=Reader$1,util$2=requireMinimal(),BufferReader$1,LongBits=util$2.LongBits,utf8=util$2.utf8;function indexOutOfRange(u,i){return RangeError("index out of range: "+u.pos+" + "+(i||1)+" > "+u.len)}function Reader$1(u){this.buf=u,this.pos=0,this.len=u.length}var create_array=typeof Uint8Array<"u"?function u(i){if(i instanceof Uint8Array||Array.isArray(i))return new Reader$1(i);throw Error("illegal buffer")}:function u(i){if(Array.isArray(i))return new Reader$1(i);throw Error("illegal buffer")},create=function u(){return util$2.Buffer?function(e){return(Reader$1.create=function(r){return util$2.Buffer.isBuffer(r)?new BufferReader$1(r):create_array(r)})(e)}:create_array};Reader$1.create=create();Reader$1.prototype._slice=util$2.Array.prototype.subarray||util$2.Array.prototype.slice;Reader$1.prototype.uint32=function u(){var i=4294967295;return function(){if(i=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(i=(i|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(i=(i|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(i=(i|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(i=(i|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return i;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return i}}();Reader$1.prototype.int32=function u(){return this.uint32()|0};Reader$1.prototype.sint32=function u(){var i=this.uint32();return i>>>1^-(i&1)|0};function readLongVarint(){var u=new LongBits(0,0),i=0;if(this.len-this.pos>4){for(;i<4;++i)if(u.lo=(u.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return u;if(u.lo=(u.lo|(this.buf[this.pos]&127)<<28)>>>0,u.hi=(u.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return u;i=0}else{for(;i<3;++i){if(this.pos>=this.len)throw indexOutOfRange(this);if(u.lo=(u.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return u}return u.lo=(u.lo|(this.buf[this.pos++]&127)<>>0,u}if(this.len-this.pos>4){for(;i<5;++i)if(u.hi=(u.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return u}else for(;i<5;++i){if(this.pos>=this.len)throw indexOutOfRange(this);if(u.hi=(u.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return u}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function u(){return this.uint32()!==0};function readFixed32_end(u,i){return(u[i-4]|u[i-3]<<8|u[i-2]<<16|u[i-1]<<24)>>>0}Reader$1.prototype.fixed32=function u(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)};Reader$1.prototype.sfixed32=function u(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function u(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var i=util$2.float.readFloatLE(this.buf,this.pos);return this.pos+=4,i};Reader$1.prototype.double=function u(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var i=util$2.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,i};Reader$1.prototype.bytes=function u(){var i=this.uint32(),e=this.pos,t=this.pos+i;if(t>this.len)throw indexOutOfRange(this,i);if(this.pos+=i,Array.isArray(this.buf))return this.buf.slice(e,t);if(e===t){var r=util$2.Buffer;return r?r.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,t)};Reader$1.prototype.string=function u(){var i=this.bytes();return utf8.read(i,0,i.length)};Reader$1.prototype.skip=function u(i){if(typeof i=="number"){if(this.pos+i>this.len)throw indexOutOfRange(this,i);this.pos+=i}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this};Reader$1.prototype.skipType=function(u){switch(u){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(u=this.uint32()&7)!==4;)this.skipType(u);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+u+" at offset "+this.pos)}return this};Reader$1._configure=function(u){BufferReader$1=u,Reader$1.create=create(),BufferReader$1._configure();var i=util$2.Long?"toLong":"toNumber";util$2.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[i](!1)},uint64:function(){return readLongVarint.call(this)[i](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[i](!1)},fixed64:function(){return readFixed64.call(this)[i](!0)},sfixed64:function(){return readFixed64.call(this)[i](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$1=requireMinimal();function BufferReader(u){Reader.call(this,u)}BufferReader._configure=function(){util$1.Buffer&&(BufferReader.prototype._slice=util$1.Buffer.prototype.slice)};BufferReader.prototype.string=function u(){var i=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+i,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+i,this.len))};BufferReader._configure();var rpc={},service=Service,util=requireMinimal();(Service.prototype=Object.create(util.EventEmitter.prototype)).constructor=Service;function Service(u,i,e){if(typeof u!="function")throw TypeError("rpcImpl must be a function");util.EventEmitter.call(this),this.rpcImpl=u,this.requestDelimited=!!i,this.responseDelimited=!!e}Service.prototype.rpcCall=function u(i,e,t,r,n){if(!r)throw TypeError("request must be specified");var o=this;if(!n)return util.asPromise(u,o,i,e,t,r);if(!o.rpcImpl){setTimeout(function(){n(Error("already ended"))},0);return}try{return o.rpcImpl(i,e[o.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(a,f){if(a)return o.emit("error",a,i),n(a);if(f===null){o.end(!0);return}if(!(f instanceof t))try{f=t[o.responseDelimited?"decodeDelimited":"decode"](f)}catch(d){return o.emit("error",d,i),n(d)}return o.emit("data",f,i),n(null,f)})}catch(l){o.emit("error",l,i),setTimeout(function(){n(l)},0);return}};Service.prototype.end=function u(i){return this.rpcImpl&&(i||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(u){var i=u;i.Service=service})(rpc);var roots={};(function(u){var i=u;i.build="minimal",i.Writer=writer,i.BufferWriter=writer_buffer,i.Reader=reader,i.BufferReader=reader_buffer,i.util=requireMinimal(),i.rpc=rpc,i.roots=roots,i.configure=e;function e(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}e()})(indexMinimal);var minimal=indexMinimal;const $protobuf=getDefaultExportFromCjs(minimal),$Reader=$protobuf.Reader,$Writer=$protobuf.Writer,$util=$protobuf.util,$root=$protobuf.roots.onnx||($protobuf.roots.onnx={});$root.onnx=(()=>{const u={};return u.Version=function(){const i={},e=Object.create(i);return e[i[0]="_START_VERSION"]=0,e[i[1]="IR_VERSION_2017_10_10"]=1,e[i[2]="IR_VERSION_2017_10_30"]=2,e[i[3]="IR_VERSION_2017_11_3"]=3,e[i[4]="IR_VERSION_2019_1_22"]=4,e[i[5]="IR_VERSION_2019_3_18"]=5,e[i[6]="IR_VERSION_2019_9_19"]=6,e[i[7]="IR_VERSION_2020_5_8"]=7,e[i[8]="IR_VERSION_2021_7_30"]=8,e[i[9]="IR_VERSION_2023_5_5"]=9,e[i[10]="IR_VERSION"]=10,e}(),u.AttributeProto=function(){function i(e){if(this.floats=[],this.ints=[],this.strings=[],this.tensors=[],this.graphs=[],this.sparseTensors=[],this.typeProtos=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.name=t.string();break}case 21:{o.refAttrName=t.string();break}case 13:{o.docString=t.string();break}case 20:{o.type=t.int32();break}case 2:{o.f=t.float();break}case 3:{o.i=t.int64();break}case 4:{o.s=t.bytes();break}case 5:{o.t=$root.onnx.TensorProto.decode(t,t.uint32());break}case 6:{o.g=$root.onnx.GraphProto.decode(t,t.uint32());break}case 22:{o.sparseTensor=$root.onnx.SparseTensorProto.decode(t,t.uint32());break}case 14:{o.tp=$root.onnx.TypeProto.decode(t,t.uint32());break}case 7:{if(o.floats&&o.floats.length||(o.floats=[]),(l&7)===2){let a=t.uint32()+t.pos;for(;t.pos>>0,t.i.high>>>0).toNumber())),t.s!=null&&(typeof t.s=="string"?$util.base64.decode(t.s,r.s=$util.newBuffer($util.base64.length(t.s)),0):t.s.length>=0&&(r.s=t.s)),t.t!=null){if(typeof t.t!="object")throw TypeError(".onnx.AttributeProto.t: object expected");r.t=$root.onnx.TensorProto.fromObject(t.t)}if(t.g!=null){if(typeof t.g!="object")throw TypeError(".onnx.AttributeProto.g: object expected");r.g=$root.onnx.GraphProto.fromObject(t.g)}if(t.sparseTensor!=null){if(typeof t.sparseTensor!="object")throw TypeError(".onnx.AttributeProto.sparseTensor: object expected");r.sparseTensor=$root.onnx.SparseTensorProto.fromObject(t.sparseTensor)}if(t.tp!=null){if(typeof t.tp!="object")throw TypeError(".onnx.AttributeProto.tp: object expected");r.tp=$root.onnx.TypeProto.fromObject(t.tp)}if(t.floats){if(!Array.isArray(t.floats))throw TypeError(".onnx.AttributeProto.floats: array expected");r.floats=[];for(let n=0;n>>0,t.ints[n].high>>>0).toNumber())}if(t.strings){if(!Array.isArray(t.strings))throw TypeError(".onnx.AttributeProto.strings: array expected");r.strings=[];for(let n=0;n=0&&(r.strings[n]=t.strings[n])}if(t.tensors){if(!Array.isArray(t.tensors))throw TypeError(".onnx.AttributeProto.tensors: array expected");r.tensors=[];for(let n=0;n>>0,t.i.high>>>0).toNumber():t.i),t.s!=null&&t.hasOwnProperty("s")&&(n.s=r.bytes===String?$util.base64.encode(t.s,0,t.s.length):r.bytes===Array?Array.prototype.slice.call(t.s):t.s),t.t!=null&&t.hasOwnProperty("t")&&(n.t=$root.onnx.TensorProto.toObject(t.t,r)),t.g!=null&&t.hasOwnProperty("g")&&(n.g=$root.onnx.GraphProto.toObject(t.g,r)),t.floats&&t.floats.length){n.floats=[];for(let o=0;o>>0,t.ints[o].high>>>0).toNumber():t.ints[o]}if(t.strings&&t.strings.length){n.strings=[];for(let o=0;o>>3){case 1:{o.name=t.string();break}case 2:{o.type=$root.onnx.TypeProto.decode(t,t.uint32());break}case 3:{o.docString=t.string();break}case 4:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.name!=null&&t.hasOwnProperty("name")&&!$util.isString(t.name))return"name: string expected";if(t.type!=null&&t.hasOwnProperty("type")){let r=$root.onnx.TypeProto.verify(t.type);if(r)return"type."+r}if(t.docString!=null&&t.hasOwnProperty("docString")&&!$util.isString(t.docString))return"docString: string expected";if(t.metadataProps!=null&&t.hasOwnProperty("metadataProps")){if(!Array.isArray(t.metadataProps))return"metadataProps: array expected";for(let r=0;r>>3){case 1:{o.input&&o.input.length||(o.input=[]),o.input.push(t.string());break}case 2:{o.output&&o.output.length||(o.output=[]),o.output.push(t.string());break}case 3:{o.name=t.string();break}case 4:{o.opType=t.string();break}case 7:{o.domain=t.string();break}case 8:{o.overload=t.string();break}case 5:{o.attribute&&o.attribute.length||(o.attribute=[]),o.attribute.push($root.onnx.AttributeProto.decode(t,t.uint32()));break}case 6:{o.docString=t.string();break}case 9:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.input!=null&&t.hasOwnProperty("input")){if(!Array.isArray(t.input))return"input: array expected";for(let r=0;r>>3){case 1:{o.initialization=$root.onnx.GraphProto.decode(t,t.uint32());break}case 2:{o.algorithm=$root.onnx.GraphProto.decode(t,t.uint32());break}case 3:{o.initializationBinding&&o.initializationBinding.length||(o.initializationBinding=[]),o.initializationBinding.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}case 4:{o.updateBinding&&o.updateBinding.length||(o.updateBinding=[]),o.updateBinding.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.initialization!=null&&t.hasOwnProperty("initialization")){let r=$root.onnx.GraphProto.verify(t.initialization);if(r)return"initialization."+r}if(t.algorithm!=null&&t.hasOwnProperty("algorithm")){let r=$root.onnx.GraphProto.verify(t.algorithm);if(r)return"algorithm."+r}if(t.initializationBinding!=null&&t.hasOwnProperty("initializationBinding")){if(!Array.isArray(t.initializationBinding))return"initializationBinding: array expected";for(let r=0;r>>3){case 1:{o.irVersion=t.int64();break}case 8:{o.opsetImport&&o.opsetImport.length||(o.opsetImport=[]),o.opsetImport.push($root.onnx.OperatorSetIdProto.decode(t,t.uint32()));break}case 2:{o.producerName=t.string();break}case 3:{o.producerVersion=t.string();break}case 4:{o.domain=t.string();break}case 5:{o.modelVersion=t.int64();break}case 6:{o.docString=t.string();break}case 7:{o.graph=$root.onnx.GraphProto.decode(t,t.uint32());break}case 14:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}case 20:{o.trainingInfo&&o.trainingInfo.length||(o.trainingInfo=[]),o.trainingInfo.push($root.onnx.TrainingInfoProto.decode(t,t.uint32()));break}case 25:{o.functions&&o.functions.length||(o.functions=[]),o.functions.push($root.onnx.FunctionProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.irVersion!=null&&t.hasOwnProperty("irVersion")&&!$util.isInteger(t.irVersion)&&!(t.irVersion&&$util.isInteger(t.irVersion.low)&&$util.isInteger(t.irVersion.high)))return"irVersion: integer|Long expected";if(t.opsetImport!=null&&t.hasOwnProperty("opsetImport")){if(!Array.isArray(t.opsetImport))return"opsetImport: array expected";for(let r=0;r>>0,t.irVersion.high>>>0).toNumber())),t.opsetImport){if(!Array.isArray(t.opsetImport))throw TypeError(".onnx.ModelProto.opsetImport: array expected");r.opsetImport=[];for(let n=0;n>>0,t.modelVersion.high>>>0).toNumber())),t.docString!=null&&(r.docString=String(t.docString)),t.graph!=null){if(typeof t.graph!="object")throw TypeError(".onnx.ModelProto.graph: object expected");r.graph=$root.onnx.GraphProto.fromObject(t.graph)}if(t.metadataProps){if(!Array.isArray(t.metadataProps))throw TypeError(".onnx.ModelProto.metadataProps: array expected");r.metadataProps=[];for(let n=0;n>>0,t.irVersion.high>>>0).toNumber():t.irVersion),t.producerName!=null&&t.hasOwnProperty("producerName")&&(n.producerName=t.producerName),t.producerVersion!=null&&t.hasOwnProperty("producerVersion")&&(n.producerVersion=t.producerVersion),t.domain!=null&&t.hasOwnProperty("domain")&&(n.domain=t.domain),t.modelVersion!=null&&t.hasOwnProperty("modelVersion")&&(typeof t.modelVersion=="number"?n.modelVersion=r.longs===String?String(t.modelVersion):t.modelVersion:n.modelVersion=r.longs===String?$util.Long.prototype.toString.call(t.modelVersion):r.longs===Number?new $util.LongBits(t.modelVersion.low>>>0,t.modelVersion.high>>>0).toNumber():t.modelVersion),t.docString!=null&&t.hasOwnProperty("docString")&&(n.docString=t.docString),t.graph!=null&&t.hasOwnProperty("graph")&&(n.graph=$root.onnx.GraphProto.toObject(t.graph,r)),t.opsetImport&&t.opsetImport.length){n.opsetImport=[];for(let o=0;o>>3){case 1:{o.key=t.string();break}case 2:{o.value=t.string();break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){return typeof t!="object"||t===null?"object expected":t.key!=null&&t.hasOwnProperty("key")&&!$util.isString(t.key)?"key: string expected":t.value!=null&&t.hasOwnProperty("value")&&!$util.isString(t.value)?"value: string expected":null},i.fromObject=function(t){if(t instanceof $root.onnx.StringStringEntryProto)return t;let r=new $root.onnx.StringStringEntryProto;return t.key!=null&&(r.key=String(t.key)),t.value!=null&&(r.value=String(t.value)),r},i.toObject=function(t,r){r||(r={});let n={};return r.defaults&&(n.key="",n.value=""),t.key!=null&&t.hasOwnProperty("key")&&(n.key=t.key),t.value!=null&&t.hasOwnProperty("value")&&(n.value=t.value),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/onnx.StringStringEntryProto"},i}(),u.TensorAnnotation=function(){function i(e){if(this.quantParameterTensorNames=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.tensorName=t.string();break}case 2:{o.quantParameterTensorNames&&o.quantParameterTensorNames.length||(o.quantParameterTensorNames=[]),o.quantParameterTensorNames.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.tensorName!=null&&t.hasOwnProperty("tensorName")&&!$util.isString(t.tensorName))return"tensorName: string expected";if(t.quantParameterTensorNames!=null&&t.hasOwnProperty("quantParameterTensorNames")){if(!Array.isArray(t.quantParameterTensorNames))return"quantParameterTensorNames: array expected";for(let r=0;r>>3){case 1:{o.node&&o.node.length||(o.node=[]),o.node.push($root.onnx.NodeProto.decode(t,t.uint32()));break}case 2:{o.name=t.string();break}case 5:{o.initializer&&o.initializer.length||(o.initializer=[]),o.initializer.push($root.onnx.TensorProto.decode(t,t.uint32()));break}case 15:{o.sparseInitializer&&o.sparseInitializer.length||(o.sparseInitializer=[]),o.sparseInitializer.push($root.onnx.SparseTensorProto.decode(t,t.uint32()));break}case 10:{o.docString=t.string();break}case 11:{o.input&&o.input.length||(o.input=[]),o.input.push($root.onnx.ValueInfoProto.decode(t,t.uint32()));break}case 12:{o.output&&o.output.length||(o.output=[]),o.output.push($root.onnx.ValueInfoProto.decode(t,t.uint32()));break}case 13:{o.valueInfo&&o.valueInfo.length||(o.valueInfo=[]),o.valueInfo.push($root.onnx.ValueInfoProto.decode(t,t.uint32()));break}case 14:{o.quantizationAnnotation&&o.quantizationAnnotation.length||(o.quantizationAnnotation=[]),o.quantizationAnnotation.push($root.onnx.TensorAnnotation.decode(t,t.uint32()));break}case 16:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.node!=null&&t.hasOwnProperty("node")){if(!Array.isArray(t.node))return"node: array expected";for(let r=0;r>>3){case 1:{if(o.dims&&o.dims.length||(o.dims=[]),(l&7)===2){let a=t.uint32()+t.pos;for(;t.pos>>0,t.dims[n].high>>>0).toNumber())}if(t.dataType!=null&&(r.dataType=t.dataType|0),t.segment!=null){if(typeof t.segment!="object")throw TypeError(".onnx.TensorProto.segment: object expected");r.segment=$root.onnx.TensorProto.Segment.fromObject(t.segment)}if(t.floatData){if(!Array.isArray(t.floatData))throw TypeError(".onnx.TensorProto.floatData: array expected");r.floatData=[];for(let n=0;n=0&&(r.stringData[n]=t.stringData[n])}if(t.int64Data){if(!Array.isArray(t.int64Data))throw TypeError(".onnx.TensorProto.int64Data: array expected");r.int64Data=[];for(let n=0;n>>0,t.int64Data[n].high>>>0).toNumber())}if(t.name!=null&&(r.name=String(t.name)),t.docString!=null&&(r.docString=String(t.docString)),t.rawData!=null&&(typeof t.rawData=="string"?$util.base64.decode(t.rawData,r.rawData=$util.newBuffer($util.base64.length(t.rawData)),0):t.rawData.length>=0&&(r.rawData=t.rawData)),t.externalData){if(!Array.isArray(t.externalData))throw TypeError(".onnx.TensorProto.externalData: array expected");r.externalData=[];for(let n=0;n>>0,t.uint64Data[n].high>>>0).toNumber(!0))}if(t.metadataProps){if(!Array.isArray(t.metadataProps))throw TypeError(".onnx.TensorProto.metadataProps: array expected");r.metadataProps=[];for(let n=0;n>>0,t.dims[o].high>>>0).toNumber():t.dims[o]}if(t.dataType!=null&&t.hasOwnProperty("dataType")&&(n.dataType=t.dataType),t.segment!=null&&t.hasOwnProperty("segment")&&(n.segment=$root.onnx.TensorProto.Segment.toObject(t.segment,r)),t.floatData&&t.floatData.length){n.floatData=[];for(let o=0;o>>0,t.int64Data[o].high>>>0).toNumber():t.int64Data[o]}if(t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.rawData!=null&&t.hasOwnProperty("rawData")&&(n.rawData=r.bytes===String?$util.base64.encode(t.rawData,0,t.rawData.length):r.bytes===Array?Array.prototype.slice.call(t.rawData):t.rawData),t.doubleData&&t.doubleData.length){n.doubleData=[];for(let o=0;o>>0,t.uint64Data[o].high>>>0).toNumber(!0):t.uint64Data[o]}if(t.docString!=null&&t.hasOwnProperty("docString")&&(n.docString=t.docString),t.externalData&&t.externalData.length){n.externalData=[];for(let o=0;o>>3){case 1:{l.begin=r.int64();break}case 2:{l.end=r.int64();break}default:r.skipType(a&7);break}}return l},e.decodeDelimited=function(r){return r instanceof $Reader||(r=new $Reader(r)),this.decode(r,r.uint32())},e.verify=function(r){return typeof r!="object"||r===null?"object expected":r.begin!=null&&r.hasOwnProperty("begin")&&!$util.isInteger(r.begin)&&!(r.begin&&$util.isInteger(r.begin.low)&&$util.isInteger(r.begin.high))?"begin: integer|Long expected":r.end!=null&&r.hasOwnProperty("end")&&!$util.isInteger(r.end)&&!(r.end&&$util.isInteger(r.end.low)&&$util.isInteger(r.end.high))?"end: integer|Long expected":null},e.fromObject=function(r){if(r instanceof $root.onnx.TensorProto.Segment)return r;let n=new $root.onnx.TensorProto.Segment;return r.begin!=null&&($util.Long?(n.begin=$util.Long.fromValue(r.begin)).unsigned=!1:typeof r.begin=="string"?n.begin=parseInt(r.begin,10):typeof r.begin=="number"?n.begin=r.begin:typeof r.begin=="object"&&(n.begin=new $util.LongBits(r.begin.low>>>0,r.begin.high>>>0).toNumber())),r.end!=null&&($util.Long?(n.end=$util.Long.fromValue(r.end)).unsigned=!1:typeof r.end=="string"?n.end=parseInt(r.end,10):typeof r.end=="number"?n.end=r.end:typeof r.end=="object"&&(n.end=new $util.LongBits(r.end.low>>>0,r.end.high>>>0).toNumber())),n},e.toObject=function(r,n){n||(n={});let o={};if(n.defaults){if($util.Long){let l=new $util.Long(0,0,!1);o.begin=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else o.begin=n.longs===String?"0":0;if($util.Long){let l=new $util.Long(0,0,!1);o.end=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else o.end=n.longs===String?"0":0}return r.begin!=null&&r.hasOwnProperty("begin")&&(typeof r.begin=="number"?o.begin=n.longs===String?String(r.begin):r.begin:o.begin=n.longs===String?$util.Long.prototype.toString.call(r.begin):n.longs===Number?new $util.LongBits(r.begin.low>>>0,r.begin.high>>>0).toNumber():r.begin),r.end!=null&&r.hasOwnProperty("end")&&(typeof r.end=="number"?o.end=n.longs===String?String(r.end):r.end:o.end=n.longs===String?$util.Long.prototype.toString.call(r.end):n.longs===Number?new $util.LongBits(r.end.low>>>0,r.end.high>>>0).toNumber():r.end),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},e.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/onnx.TensorProto.Segment"},e}(),i.DataLocation=function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="EXTERNAL"]=1,t}(),i}(),u.SparseTensorProto=function(){function i(e){if(this.dims=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.values=$root.onnx.TensorProto.decode(t,t.uint32());break}case 2:{o.indices=$root.onnx.TensorProto.decode(t,t.uint32());break}case 3:{if(o.dims&&o.dims.length||(o.dims=[]),(l&7)===2){let a=t.uint32()+t.pos;for(;t.pos>>0,t.dims[n].high>>>0).toNumber())}return r},i.toObject=function(t,r){r||(r={});let n={};if((r.arrays||r.defaults)&&(n.dims=[]),r.defaults&&(n.values=null,n.indices=null),t.values!=null&&t.hasOwnProperty("values")&&(n.values=$root.onnx.TensorProto.toObject(t.values,r)),t.indices!=null&&t.hasOwnProperty("indices")&&(n.indices=$root.onnx.TensorProto.toObject(t.indices,r)),t.dims&&t.dims.length){n.dims=[];for(let o=0;o>>0,t.dims[o].high>>>0).toNumber():t.dims[o]}return n},i.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/onnx.SparseTensorProto"},i}(),u.TensorShapeProto=function(){function i(e){if(this.dim=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.dim&&o.dim.length||(o.dim=[]),o.dim.push($root.onnx.TensorShapeProto.Dimension.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dim!=null&&t.hasOwnProperty("dim")){if(!Array.isArray(t.dim))return"dim: array expected";for(let r=0;r>>3){case 1:{a.dimValue=n.int64();break}case 2:{a.dimParam=n.string();break}case 3:{a.denotation=n.string();break}default:n.skipType(f&7);break}}return a},e.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},e.verify=function(n){if(typeof n!="object"||n===null)return"object expected";let o={};if(n.dimValue!=null&&n.hasOwnProperty("dimValue")&&(o.value=1,!$util.isInteger(n.dimValue)&&!(n.dimValue&&$util.isInteger(n.dimValue.low)&&$util.isInteger(n.dimValue.high))))return"dimValue: integer|Long expected";if(n.dimParam!=null&&n.hasOwnProperty("dimParam")){if(o.value===1)return"value: multiple values";if(o.value=1,!$util.isString(n.dimParam))return"dimParam: string expected"}return n.denotation!=null&&n.hasOwnProperty("denotation")&&!$util.isString(n.denotation)?"denotation: string expected":null},e.fromObject=function(n){if(n instanceof $root.onnx.TensorShapeProto.Dimension)return n;let o=new $root.onnx.TensorShapeProto.Dimension;return n.dimValue!=null&&($util.Long?(o.dimValue=$util.Long.fromValue(n.dimValue)).unsigned=!1:typeof n.dimValue=="string"?o.dimValue=parseInt(n.dimValue,10):typeof n.dimValue=="number"?o.dimValue=n.dimValue:typeof n.dimValue=="object"&&(o.dimValue=new $util.LongBits(n.dimValue.low>>>0,n.dimValue.high>>>0).toNumber())),n.dimParam!=null&&(o.dimParam=String(n.dimParam)),n.denotation!=null&&(o.denotation=String(n.denotation)),o},e.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.denotation=""),n.dimValue!=null&&n.hasOwnProperty("dimValue")&&(typeof n.dimValue=="number"?l.dimValue=o.longs===String?String(n.dimValue):n.dimValue:l.dimValue=o.longs===String?$util.Long.prototype.toString.call(n.dimValue):o.longs===Number?new $util.LongBits(n.dimValue.low>>>0,n.dimValue.high>>>0).toNumber():n.dimValue,o.oneofs&&(l.value="dimValue")),n.dimParam!=null&&n.hasOwnProperty("dimParam")&&(l.dimParam=n.dimParam,o.oneofs&&(l.value="dimParam")),n.denotation!=null&&n.hasOwnProperty("denotation")&&(l.denotation=n.denotation),l},e.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},e.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TensorShapeProto.Dimension"},e}(),i}(),u.TypeProto=function(){function i(t){if(t)for(let r=Object.keys(t),n=0;n>>3){case 1:{l.tensorType=$root.onnx.TypeProto.Tensor.decode(r,r.uint32());break}case 4:{l.sequenceType=$root.onnx.TypeProto.Sequence.decode(r,r.uint32());break}case 5:{l.mapType=$root.onnx.TypeProto.Map.decode(r,r.uint32());break}case 9:{l.optionalType=$root.onnx.TypeProto.Optional.decode(r,r.uint32());break}case 8:{l.sparseTensorType=$root.onnx.TypeProto.SparseTensor.decode(r,r.uint32());break}case 6:{l.denotation=r.string();break}default:r.skipType(a&7);break}}return l},i.decodeDelimited=function(r){return r instanceof $Reader||(r=new $Reader(r)),this.decode(r,r.uint32())},i.verify=function(r){if(typeof r!="object"||r===null)return"object expected";let n={};if(r.tensorType!=null&&r.hasOwnProperty("tensorType")){n.value=1;{let o=$root.onnx.TypeProto.Tensor.verify(r.tensorType);if(o)return"tensorType."+o}}if(r.sequenceType!=null&&r.hasOwnProperty("sequenceType")){if(n.value===1)return"value: multiple values";n.value=1;{let o=$root.onnx.TypeProto.Sequence.verify(r.sequenceType);if(o)return"sequenceType."+o}}if(r.mapType!=null&&r.hasOwnProperty("mapType")){if(n.value===1)return"value: multiple values";n.value=1;{let o=$root.onnx.TypeProto.Map.verify(r.mapType);if(o)return"mapType."+o}}if(r.optionalType!=null&&r.hasOwnProperty("optionalType")){if(n.value===1)return"value: multiple values";n.value=1;{let o=$root.onnx.TypeProto.Optional.verify(r.optionalType);if(o)return"optionalType."+o}}if(r.sparseTensorType!=null&&r.hasOwnProperty("sparseTensorType")){if(n.value===1)return"value: multiple values";n.value=1;{let o=$root.onnx.TypeProto.SparseTensor.verify(r.sparseTensorType);if(o)return"sparseTensorType."+o}}return r.denotation!=null&&r.hasOwnProperty("denotation")&&!$util.isString(r.denotation)?"denotation: string expected":null},i.fromObject=function(r){if(r instanceof $root.onnx.TypeProto)return r;let n=new $root.onnx.TypeProto;if(r.tensorType!=null){if(typeof r.tensorType!="object")throw TypeError(".onnx.TypeProto.tensorType: object expected");n.tensorType=$root.onnx.TypeProto.Tensor.fromObject(r.tensorType)}if(r.sequenceType!=null){if(typeof r.sequenceType!="object")throw TypeError(".onnx.TypeProto.sequenceType: object expected");n.sequenceType=$root.onnx.TypeProto.Sequence.fromObject(r.sequenceType)}if(r.mapType!=null){if(typeof r.mapType!="object")throw TypeError(".onnx.TypeProto.mapType: object expected");n.mapType=$root.onnx.TypeProto.Map.fromObject(r.mapType)}if(r.optionalType!=null){if(typeof r.optionalType!="object")throw TypeError(".onnx.TypeProto.optionalType: object expected");n.optionalType=$root.onnx.TypeProto.Optional.fromObject(r.optionalType)}if(r.sparseTensorType!=null){if(typeof r.sparseTensorType!="object")throw TypeError(".onnx.TypeProto.sparseTensorType: object expected");n.sparseTensorType=$root.onnx.TypeProto.SparseTensor.fromObject(r.sparseTensorType)}return r.denotation!=null&&(n.denotation=String(r.denotation)),n},i.toObject=function(r,n){n||(n={});let o={};return n.defaults&&(o.denotation=""),r.tensorType!=null&&r.hasOwnProperty("tensorType")&&(o.tensorType=$root.onnx.TypeProto.Tensor.toObject(r.tensorType,n),n.oneofs&&(o.value="tensorType")),r.sequenceType!=null&&r.hasOwnProperty("sequenceType")&&(o.sequenceType=$root.onnx.TypeProto.Sequence.toObject(r.sequenceType,n),n.oneofs&&(o.value="sequenceType")),r.mapType!=null&&r.hasOwnProperty("mapType")&&(o.mapType=$root.onnx.TypeProto.Map.toObject(r.mapType,n),n.oneofs&&(o.value="mapType")),r.denotation!=null&&r.hasOwnProperty("denotation")&&(o.denotation=r.denotation),r.sparseTensorType!=null&&r.hasOwnProperty("sparseTensorType")&&(o.sparseTensorType=$root.onnx.TypeProto.SparseTensor.toObject(r.sparseTensorType,n),n.oneofs&&(o.value="sparseTensorType")),r.optionalType!=null&&r.hasOwnProperty("optionalType")&&(o.optionalType=$root.onnx.TypeProto.Optional.toObject(r.optionalType,n),n.oneofs&&(o.value="optionalType")),o},i.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},i.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/onnx.TypeProto"},i.Tensor=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.elemType=n.int32();break}case 2:{a.shape=$root.onnx.TensorShapeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.elemType!=null&&n.hasOwnProperty("elemType")&&!$util.isInteger(n.elemType))return"elemType: integer expected";if(n.shape!=null&&n.hasOwnProperty("shape")){let o=$root.onnx.TensorShapeProto.verify(n.shape);if(o)return"shape."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.Tensor)return n;let o=new $root.onnx.TypeProto.Tensor;if(n.elemType!=null&&(o.elemType=n.elemType|0),n.shape!=null){if(typeof n.shape!="object")throw TypeError(".onnx.TypeProto.Tensor.shape: object expected");o.shape=$root.onnx.TensorShapeProto.fromObject(n.shape)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.elemType=0,l.shape=null),n.elemType!=null&&n.hasOwnProperty("elemType")&&(l.elemType=n.elemType),n.shape!=null&&n.hasOwnProperty("shape")&&(l.shape=$root.onnx.TensorShapeProto.toObject(n.shape,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.Tensor"},t}(),i.Sequence=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.elemType=$root.onnx.TypeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.elemType!=null&&n.hasOwnProperty("elemType")){let o=$root.onnx.TypeProto.verify(n.elemType);if(o)return"elemType."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.Sequence)return n;let o=new $root.onnx.TypeProto.Sequence;if(n.elemType!=null){if(typeof n.elemType!="object")throw TypeError(".onnx.TypeProto.Sequence.elemType: object expected");o.elemType=$root.onnx.TypeProto.fromObject(n.elemType)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.elemType=null),n.elemType!=null&&n.hasOwnProperty("elemType")&&(l.elemType=$root.onnx.TypeProto.toObject(n.elemType,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.Sequence"},t}(),i.Map=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.keyType=n.int32();break}case 2:{a.valueType=$root.onnx.TypeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.keyType!=null&&n.hasOwnProperty("keyType")&&!$util.isInteger(n.keyType))return"keyType: integer expected";if(n.valueType!=null&&n.hasOwnProperty("valueType")){let o=$root.onnx.TypeProto.verify(n.valueType);if(o)return"valueType."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.Map)return n;let o=new $root.onnx.TypeProto.Map;if(n.keyType!=null&&(o.keyType=n.keyType|0),n.valueType!=null){if(typeof n.valueType!="object")throw TypeError(".onnx.TypeProto.Map.valueType: object expected");o.valueType=$root.onnx.TypeProto.fromObject(n.valueType)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.keyType=0,l.valueType=null),n.keyType!=null&&n.hasOwnProperty("keyType")&&(l.keyType=n.keyType),n.valueType!=null&&n.hasOwnProperty("valueType")&&(l.valueType=$root.onnx.TypeProto.toObject(n.valueType,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.Map"},t}(),i.Optional=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.elemType=$root.onnx.TypeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.elemType!=null&&n.hasOwnProperty("elemType")){let o=$root.onnx.TypeProto.verify(n.elemType);if(o)return"elemType."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.Optional)return n;let o=new $root.onnx.TypeProto.Optional;if(n.elemType!=null){if(typeof n.elemType!="object")throw TypeError(".onnx.TypeProto.Optional.elemType: object expected");o.elemType=$root.onnx.TypeProto.fromObject(n.elemType)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.elemType=null),n.elemType!=null&&n.hasOwnProperty("elemType")&&(l.elemType=$root.onnx.TypeProto.toObject(n.elemType,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.Optional"},t}(),i.SparseTensor=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.elemType=n.int32();break}case 2:{a.shape=$root.onnx.TensorShapeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.elemType!=null&&n.hasOwnProperty("elemType")&&!$util.isInteger(n.elemType))return"elemType: integer expected";if(n.shape!=null&&n.hasOwnProperty("shape")){let o=$root.onnx.TensorShapeProto.verify(n.shape);if(o)return"shape."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.SparseTensor)return n;let o=new $root.onnx.TypeProto.SparseTensor;if(n.elemType!=null&&(o.elemType=n.elemType|0),n.shape!=null){if(typeof n.shape!="object")throw TypeError(".onnx.TypeProto.SparseTensor.shape: object expected");o.shape=$root.onnx.TensorShapeProto.fromObject(n.shape)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.elemType=0,l.shape=null),n.elemType!=null&&n.hasOwnProperty("elemType")&&(l.elemType=n.elemType),n.shape!=null&&n.hasOwnProperty("shape")&&(l.shape=$root.onnx.TensorShapeProto.toObject(n.shape,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.SparseTensor"},t}(),i}(),u.OperatorSetIdProto=function(){function i(e){if(e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.domain=t.string();break}case 2:{o.version=t.int64();break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){return typeof t!="object"||t===null?"object expected":t.domain!=null&&t.hasOwnProperty("domain")&&!$util.isString(t.domain)?"domain: string expected":t.version!=null&&t.hasOwnProperty("version")&&!$util.isInteger(t.version)&&!(t.version&&$util.isInteger(t.version.low)&&$util.isInteger(t.version.high))?"version: integer|Long expected":null},i.fromObject=function(t){if(t instanceof $root.onnx.OperatorSetIdProto)return t;let r=new $root.onnx.OperatorSetIdProto;return t.domain!=null&&(r.domain=String(t.domain)),t.version!=null&&($util.Long?(r.version=$util.Long.fromValue(t.version)).unsigned=!1:typeof t.version=="string"?r.version=parseInt(t.version,10):typeof t.version=="number"?r.version=t.version:typeof t.version=="object"&&(r.version=new $util.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber())),r},i.toObject=function(t,r){r||(r={});let n={};if(r.defaults)if(n.domain="",$util.Long){let o=new $util.Long(0,0,!1);n.version=r.longs===String?o.toString():r.longs===Number?o.toNumber():o}else n.version=r.longs===String?"0":0;return t.domain!=null&&t.hasOwnProperty("domain")&&(n.domain=t.domain),t.version!=null&&t.hasOwnProperty("version")&&(typeof t.version=="number"?n.version=r.longs===String?String(t.version):t.version:n.version=r.longs===String?$util.Long.prototype.toString.call(t.version):r.longs===Number?new $util.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber():t.version),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/onnx.OperatorSetIdProto"},i}(),u.OperatorStatus=function(){const i={},e=Object.create(i);return e[i[0]="EXPERIMENTAL"]=0,e[i[1]="STABLE"]=1,e}(),u.FunctionProto=function(){function i(e){if(this.input=[],this.output=[],this.attribute=[],this.attributeProto=[],this.node=[],this.opsetImport=[],this.valueInfo=[],this.metadataProps=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.name=t.string();break}case 4:{o.input&&o.input.length||(o.input=[]),o.input.push(t.string());break}case 5:{o.output&&o.output.length||(o.output=[]),o.output.push(t.string());break}case 6:{o.attribute&&o.attribute.length||(o.attribute=[]),o.attribute.push(t.string());break}case 11:{o.attributeProto&&o.attributeProto.length||(o.attributeProto=[]),o.attributeProto.push($root.onnx.AttributeProto.decode(t,t.uint32()));break}case 7:{o.node&&o.node.length||(o.node=[]),o.node.push($root.onnx.NodeProto.decode(t,t.uint32()));break}case 8:{o.docString=t.string();break}case 9:{o.opsetImport&&o.opsetImport.length||(o.opsetImport=[]),o.opsetImport.push($root.onnx.OperatorSetIdProto.decode(t,t.uint32()));break}case 10:{o.domain=t.string();break}case 13:{o.overload=t.string();break}case 12:{o.valueInfo&&o.valueInfo.length||(o.valueInfo=[]),o.valueInfo.push($root.onnx.ValueInfoProto.decode(t,t.uint32()));break}case 14:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.name!=null&&t.hasOwnProperty("name")&&!$util.isString(t.name))return"name: string expected";if(t.input!=null&&t.hasOwnProperty("input")){if(!Array.isArray(t.input))return"input: array expected";for(let r=0;re.toString());return e=>new VStack(new HStack(new Text(`${e||u.name}:`),new HStack(new Text(dataTypeToString(u.dataType)),new Text(`<${i.join("x")}>`)).with({spacing:4})).with({spacing:4,spread:!0})).with({spacing:4})}function toTooltip(u){const i=[new VStack(new Text("Name").with({fontWeight:500}),new Text(u.name||"none")).with({spacing:8})];return u.input&&i.push(new VStack(new Text("Inputs").with({fontWeight:500}),...u.input.map(e=>new Text(e))).with({spacing:8})),u.output&&i.push(new VStack(new Text("Outputs").with({fontWeight:500}),...u.output.map(e=>new Text(e))).with({spacing:8})),new Tooltip(new VStack(...i).with({spacing:8}))}function color(u){const i=colors.foreground;switch(u){case"Conv":return i.blue;case"Gather":case"MaxPool":case"SkipSimplifiedLayerNormalization":return i.green;case"Reshape":return i.orange;case"Sigmoid":case"Relu":return i.purple;default:return"black"}}function convertNode(u,i,e){const t=[];if(e.input){const r=(o,l)=>{const a=u.get(e.input?.[l]);a&&n.push(convertTensor(a)(o))},n=[];if(e.opType==="Conv")r("W",1);else if(e.opType==="Gemm")r("W",1),r("b",2);else if(e.opType==="Reshape")r("data",0),r("shape",1);else if(e.opType==="MatMulNBits")r("B",1),r("scales",2);else if(e.opType==="Gather")r("data",0);else if(e.opType==="SkipSimplifiedLayerNormalization")r("gamma",2);else if(e.opType==="GroupQueryAttention")r("cos_cache",7),r("sin_cache",8);else for(const[o,l]of e.input.entries()){const a=u.get(l);a&&n.push(convertTensor(a)(`${o}-${l}`))}n.length>0&&t.push(new VStack(...n).with({spacing:4}))}return new Node(i,new HStack(new Text(e.opType||"Unknown Op").with({fontWeight:500,foregroundColor:color(e.opType)}),new Text(i).with({foregroundColor:colors.foreground.grayTertiary})).with({spread:!0,spacing:8}),...t).with({tooltip:()=>toTooltip(e)})}function convertValueInfo(u,i,e){const t=e.type?.tensorType?.shape?.dim||[];return new Node(i,new VStack(new Text(u).with({fontWeight:500})).with({spacing:8}),new HStack(new Text(dataTypeToString(e.type?.tensorType?.elemType)),new Text(`<${t.map(r=>r.dimValue||0).join("x")}>`)).with({spacing:4})).with({borderDash:4}).with({tooltip:()=>new Tooltip(new Text(e.name||"none"))})}const MAX_MODULE_DEPTH=2;function createNetworkModel(u,i){const e={virtualGrouping:{threshold:1500,nodesPerModule:300},simplify:{threshold:200},...i},t=$root.onnx.ModelProto.decode(u);if(!t.graph)throw new Error("onnx file does not contain graph information");if(!t.graph.node)throw new Error("onnx file does not contain nodes");e.simplify&&t.graph.node.length>e.simplify.threshold&&console.info(`More than ${t.graph.node.length} nodes; creating a simplified representation.`);const n=new Network,o=new Map,l=new Set,a=new Map,f=new Map;if(!t.graph.initializer)throw new Error("graph does not have initializer information");for(const p of t.graph.initializer){if(!p.name)throw new Error("tensor does not have a name");const c=p.dims?.map(y=>y.toString())||[];a.set(p.name,{id:p.name,dims:c.join("x")});const h=p.name;f.set(h,p)}if(t.graph.node.forEach((p,c)=>{if(!p.opType)throw new Error("node does not have type");if(!p.output)throw new Error("node does not have output");const h=(p.name||"").split("/");h.pop();const y=h.slice(0,MAX_MODULE_DEPTH+1).join("/");y!==""&&l.add(y);const s=c.toString();switch(n.setNode(s,convertNode(f,s,p)),p.opType){case"Reshape":case"Conv":o.set(p.output[0],s);break;default:for(const P of p.output)P!==""&&o.set(P,s);break}}),!t.graph.input)throw new Error("graph does not have inputs");if(!t.graph.output)throw new Error("graph does not have outputs");const d=new Set(t.graph.initializer.map(p=>p.name));for(const p of t.graph.input)if(!d.has(p.name)){const c=`[vnode]${p.name}`,h=convertValueInfo("Input",c,p);n.setNode(c,h),o.set(p.name,c)}t.graph.output.forEach(p=>{const c=`[vnode]${p.name}`,h=convertValueInfo("Output",c,p);n.setNode(c,h);const y=o.get(p.name);y&&n.setEdge(y,c)}),t.graph.node.forEach((p,c)=>{const h=c.toString();if(!p.input)throw new Error("node does not have input");if(p.opType==="Conv"){const y=o.get(p.input[0]);y&&n.setEdge(y,h)}else if(p.opType!=="Reshape")for(const y of p.input){const s=o.get(y);s&&n.setEdge(s,h)}});for(const p of l){const c=p;n.setNode(c,new Node(c,new VStack(new Text("Module").with({fontWeight:500}),new Text(c)).with({spacing:8})).with({backgroundColor:colors.background.gray,badge:{color:"#8e8e8e",text:"+"}})),t.graph.node.forEach((h,y)=>{h.name?.includes(p)&&n.setParent(y.toString(),p)})}for(const p of n.nodes())n.childrenT(p).length===1&&n.removeNode(p);return n}export{createNetworkModel as c}; diff --git a/_app/immutable/chunks/index.C7bWdOrd.js b/_app/immutable/chunks/index.C7bWdOrd.js new file mode 100644 index 0000000..eb539f9 --- /dev/null +++ b/_app/immutable/chunks/index.C7bWdOrd.js @@ -0,0 +1 @@ +import{A as $,n as _,P as y,b as S,f as b,Q as E,R as w,S as C,T as x,U as I,V as O,W as p,X as P,Y as R,Z as U,_ as V,$ as j}from"./scheduler.BZf3Antt.js";const o=new Set;let f;function T(){f={r:0,c:[],p:f}}function W(){f.r||$(f.c),f=f.p}function A(t,e){t&&t.i&&(o.delete(t),t.i(e))}function X(t,e,n,s){if(t&&t.o){if(o.has(t))return;o.add(t),f.c.push(()=>{o.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}function Y(t,e,n){const s=t.$$.props[e];s!==void 0&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function Z(t){t&&t.c()}function z(t,e){t&&t.l(e)}function B(t,e,n){const{fragment:s,after_update:i}=t.$$;s&&s.m(e,n),x(()=>{const d=t.$$.on_mount.map(P).filter(w);t.$$.on_destroy?t.$$.on_destroy.push(...d):$(d),t.$$.on_mount=[]}),i.forEach(x)}function L(t,e){const n=t.$$;n.fragment!==null&&(I(n.after_update),$(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function M(t,e){t.$$.dirty[0]===-1&&(R.push(t),U(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const m=g.length?g[0]:l;return a.ctx&&i(a.ctx[r],a.ctx[r]=m)&&(!a.skip_bound&&a.bound[r]&&a.bound[r](m),h&&M(t,r)),l}):[],a.update(),h=!0,$(a.before_update),a.fragment=s?s(a.ctx):!1,e.target){if(e.hydrate){V();const r=S(e.target);a.fragment&&a.fragment.l(r),r.forEach(b)}else a.fragment&&a.fragment.c();e.intro&&A(t.$$.fragment),B(t,e.target,e.anchor),j(),E()}p(u)}class F{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=_}$on(e,n){if(!w(n))return _;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const i=s.indexOf(n);i!==-1&&s.splice(i,1)}}$set(e){this.$$set&&!C(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const N="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(N);export{F as S,z as a,X as b,Z as c,L as d,W as e,Y as f,T as g,D as i,B as m,A as t}; diff --git a/_app/immutable/chunks/index.Cv9_d-Ac.js b/_app/immutable/chunks/index.Cv9_d-Ac.js new file mode 100644 index 0000000..bc9c841 --- /dev/null +++ b/_app/immutable/chunks/index.Cv9_d-Ac.js @@ -0,0 +1 @@ +import{s as l5,C,D as B,B as Z,E as L,b as H,f as g,F as M,i as V,j as b,n as D,G as S,H as F,I as e5,t as a5,v as t5,w as i5}from"./scheduler.BZf3Antt.js";import{e as k,g as x}from"./spread.CUGnlXHs.js";import{S as o5,i as n5}from"./index.C7bWdOrd.js";function G(n,e,o){const i=n.slice();return i[6]=e[o],i}function O(n,e,o){const i=n.slice();return i[6]=e[o],i}function P(n,e,o){const i=n.slice();return i[6]=e[o],i}function R(n,e,o){const i=n.slice();return i[6]=e[o],i}function J(n,e,o){const i=n.slice();return i[6]=e[o],i}function K(n,e,o){const i=n.slice();return i[6]=e[o],i}function N(n){let e,o;return{c(){e=B("title"),o=a5(n[1])},l(i){e=L(i,"title",{});var t=H(e);o=t5(t,n[1]),t.forEach(g)},m(i,t){V(i,e,t),b(e,o)},p(i,t){t&2&&i5(o,i[1])},d(i){i&&g(e)}}}function Q(n){let e,o=[n[6]],i={};for(let t=0;t{e=C(C({},e),e5(h)),o(3,r=F(e,t)),"src"in h&&o(4,w=h.src),"size"in h&&o(0,p=h.size),"theme"in h&&o(5,d=h.theme),"title"in h&&o(1,A=h.title)},n.$$.update=()=>{n.$$.dirty&48&&o(2,i=w?.[d]??w?.default)},[p,A,i,r,w,d]}class f5 extends o5{constructor(e){super(),n5(this,e,h5,r5,l5,{src:4,size:0,theme:5,title:1})}}const u5={default:{a:{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}]},micro:{a:{viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{d:"M6.5 2.25a.75.75 0 0 0-1.5 0v3a.75.75 0 0 0 1.5 0V4.5h6.75a.75.75 0 0 0 0-1.5H6.5v-.75ZM11 6.5a.75.75 0 0 0-1.5 0v3a.75.75 0 0 0 1.5 0v-.75h2.25a.75.75 0 0 0 0-1.5H11V6.5ZM5.75 10a.75.75 0 0 1 .75.75v.75h6.75a.75.75 0 0 1 0 1.5H6.5v.75a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 .75-.75ZM2.75 7.25H8.5v1.5H2.75a.75.75 0 0 1 0-1.5ZM4 3H2.75a.75.75 0 0 0 0 1.5H4V3ZM2.75 11.5H4V13H2.75a.75.75 0 0 1 0-1.5Z"}]},mini:{a:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{d:"M10 3.75a2 2 0 1 0-4 0 2 2 0 0 0 4 0ZM17.25 4.5a.75.75 0 0 0 0-1.5h-5.5a.75.75 0 0 0 0 1.5h5.5ZM5 3.75a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1 0-1.5h1.5a.75.75 0 0 1 .75.75ZM4.25 17a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5ZM17.25 17a.75.75 0 0 0 0-1.5h-5.5a.75.75 0 0 0 0 1.5h5.5ZM9 10a.75.75 0 0 1-.75.75h-5.5a.75.75 0 0 1 0-1.5h5.5A.75.75 0 0 1 9 10ZM17.25 10.75a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5ZM14 10a2 2 0 1 0-4 0 2 2 0 0 0 4 0ZM10 16.25a2 2 0 1 0-4 0 2 2 0 0 0 4 0Z"}]},solid:{a:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{d:"M18.75 12.75h1.5a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5ZM12 6a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 12 6ZM12 18a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 12 18ZM3.75 6.75h1.5a.75.75 0 1 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5ZM5.25 18.75h-1.5a.75.75 0 0 1 0-1.5h1.5a.75.75 0 0 1 0 1.5ZM3 12a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 3 12ZM9 3.75a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5ZM12.75 12a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0ZM9 15.75a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Z"}]}},v5={default:{a:{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}]},micro:{a:{viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{d:"M6.22 8.72a.75.75 0 0 0 1.06 1.06l5.22-5.22v1.69a.75.75 0 0 0 1.5 0v-3.5a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0 0 1.5h1.69L6.22 8.72Z"},{d:"M3.5 6.75c0-.69.56-1.25 1.25-1.25H7A.75.75 0 0 0 7 4H4.75A2.75 2.75 0 0 0 2 6.75v4.5A2.75 2.75 0 0 0 4.75 14h4.5A2.75 2.75 0 0 0 12 11.25V9a.75.75 0 0 0-1.5 0v2.25c0 .69-.56 1.25-1.25 1.25h-4.5c-.69 0-1.25-.56-1.25-1.25v-4.5Z"}]},mini:{a:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"fill-rule":"evenodd",d:"M4.25 5.5a.75.75 0 0 0-.75.75v8.5c0 .414.336.75.75.75h8.5a.75.75 0 0 0 .75-.75v-4a.75.75 0 0 1 1.5 0v4A2.25 2.25 0 0 1 12.75 17h-8.5A2.25 2.25 0 0 1 2 14.75v-8.5A2.25 2.25 0 0 1 4.25 4h5a.75.75 0 0 1 0 1.5h-5Z","clip-rule":"evenodd"},{"fill-rule":"evenodd",d:"M6.194 12.753a.75.75 0 0 0 1.06.053L16.5 4.44v2.81a.75.75 0 0 0 1.5 0v-4.5a.75.75 0 0 0-.75-.75h-4.5a.75.75 0 0 0 0 1.5h2.553l-9.056 8.194a.75.75 0 0 0-.053 1.06Z","clip-rule":"evenodd"}]},solid:{a:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"fill-rule":"evenodd",d:"M15.75 2.25H21a.75.75 0 0 1 .75.75v5.25a.75.75 0 0 1-1.5 0V4.81L8.03 17.03a.75.75 0 0 1-1.06-1.06L19.19 3.75h-3.44a.75.75 0 0 1 0-1.5Zm-10.5 4.5a1.5 1.5 0 0 0-1.5 1.5v10.5a1.5 1.5 0 0 0 1.5 1.5h10.5a1.5 1.5 0 0 0 1.5-1.5V10.5a.75.75 0 0 1 1.5 0v8.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V8.25a3 3 0 0 1 3-3h8.25a.75.75 0 0 1 0 1.5H5.25Z","clip-rule":"evenodd"}]}},_5={default:{a:{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"stroke-linecap":"round","stroke-linejoin":"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}]},micro:{a:{viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"fill-rule":"evenodd",d:"M9.58 1.077a.75.75 0 0 1 .405.82L9.165 6h4.085a.75.75 0 0 1 .567 1.241l-6.5 7.5a.75.75 0 0 1-1.302-.638L6.835 10H2.75a.75.75 0 0 1-.567-1.241l6.5-7.5a.75.75 0 0 1 .897-.182Z","clip-rule":"evenodd"}]},mini:{a:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{d:"M11.983 1.907a.75.75 0 0 0-1.292-.657l-8.5 9.5A.75.75 0 0 0 2.75 12h6.572l-1.305 6.093a.75.75 0 0 0 1.292.657l8.5-9.5A.75.75 0 0 0 17.25 8h-6.572l1.305-6.093Z"}]},solid:{a:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"fill-rule":"evenodd",d:"M14.615 1.595a.75.75 0 0 1 .359.852L12.982 9.75h7.268a.75.75 0 0 1 .548 1.262l-10.5 11.25a.75.75 0 0 1-1.272-.71l1.992-7.302H3.75a.75.75 0 0 1-.548-1.262l10.5-11.25a.75.75 0 0 1 .913-.143Z","clip-rule":"evenodd"}]}},m5={default:{a:{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 7.5-2.25-1.313M21 7.5v2.25m0-2.25-2.25 1.313M3 7.5l2.25-1.313M3 7.5l2.25 1.313M3 7.5v2.25m9 3 2.25-1.313M12 12.75l-2.25-1.313M12 12.75V15m0 6.75 2.25-1.313M12 21.75V19.5m0 2.25-2.25-1.313m0-16.875L12 2.25l2.25 1.313M21 14.25v2.25l-2.25 1.313m-13.5 0L3 16.5v-2.25"}]},micro:{a:{viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"fill-rule":"evenodd",d:"M7.628 1.349a.75.75 0 0 1 .744 0l1.247.712a.75.75 0 1 1-.744 1.303L8 2.864l-.875.5a.75.75 0 0 1-.744-1.303l1.247-.712ZM4.65 3.914a.75.75 0 0 1-.279 1.023L4.262 5l.11.063a.75.75 0 0 1-.744 1.302l-.13-.073A.75.75 0 0 1 2 6.25V5a.75.75 0 0 1 .378-.651l1.25-.714a.75.75 0 0 1 1.023.279Zm6.698 0a.75.75 0 0 1 1.023-.28l1.25.715A.75.75 0 0 1 14 5v1.25a.75.75 0 0 1-1.499.042l-.129.073a.75.75 0 0 1-.744-1.302l.11-.063-.11-.063a.75.75 0 0 1-.28-1.023ZM6.102 6.915a.75.75 0 0 1 1.023-.279l.875.5.875-.5a.75.75 0 0 1 .744 1.303l-.869.496v.815a.75.75 0 0 1-1.5 0v-.815l-.869-.496a.75.75 0 0 1-.28-1.024ZM2.75 9a.75.75 0 0 1 .75.75v.815l.872.498a.75.75 0 0 1-.744 1.303l-1.25-.715A.75.75 0 0 1 2 11V9.75A.75.75 0 0 1 2.75 9Zm10.5 0a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-.378.651l-1.25.715a.75.75 0 0 1-.744-1.303l.872-.498V9.75a.75.75 0 0 1 .75-.75Zm-4.501 3.708.126-.072a.75.75 0 0 1 .744 1.303l-1.247.712a.75.75 0 0 1-.744 0L6.38 13.94a.75.75 0 0 1 .744-1.303l.126.072a.75.75 0 0 1 1.498 0Z","clip-rule":"evenodd"}]},mini:{a:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"fill-rule":"evenodd",d:"M9.638 1.093a.75.75 0 0 1 .724 0l2 1.104a.75.75 0 1 1-.724 1.313L10 2.607l-1.638.903a.75.75 0 1 1-.724-1.313l2-1.104ZM5.403 4.287a.75.75 0 0 1-.295 1.019l-.805.444.805.444a.75.75 0 0 1-.724 1.314L3.5 7.02v.73a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .388-.657l1.996-1.1a.75.75 0 0 1 1.019.294Zm9.194 0a.75.75 0 0 1 1.02-.295l1.995 1.101A.75.75 0 0 1 18 5.75v2a.75.75 0 0 1-1.5 0v-.73l-.884.488a.75.75 0 1 1-.724-1.314l.806-.444-.806-.444a.75.75 0 0 1-.295-1.02ZM7.343 8.284a.75.75 0 0 1 1.02-.294L10 8.893l1.638-.903a.75.75 0 1 1 .724 1.313l-1.612.89v1.557a.75.75 0 0 1-1.5 0v-1.557l-1.612-.89a.75.75 0 0 1-.295-1.019ZM2.75 11.5a.75.75 0 0 1 .75.75v1.557l1.608.887a.75.75 0 0 1-.724 1.314l-1.996-1.101A.75.75 0 0 1 2 14.25v-2a.75.75 0 0 1 .75-.75Zm14.5 0a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-.388.657l-1.996 1.1a.75.75 0 1 1-.724-1.313l1.608-.887V12.25a.75.75 0 0 1 .75-.75Zm-7.25 4a.75.75 0 0 1 .75.75v.73l.888-.49a.75.75 0 0 1 .724 1.313l-2 1.104a.75.75 0 0 1-.724 0l-2-1.104a.75.75 0 1 1 .724-1.313l.888.49v-.73a.75.75 0 0 1 .75-.75Z","clip-rule":"evenodd"}]},solid:{a:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"fill-rule":"evenodd",d:"M11.622 1.602a.75.75 0 0 1 .756 0l2.25 1.313a.75.75 0 0 1-.756 1.295L12 3.118 10.128 4.21a.75.75 0 1 1-.756-1.295l2.25-1.313ZM5.898 5.81a.75.75 0 0 1-.27 1.025l-1.14.665 1.14.665a.75.75 0 1 1-.756 1.295L3.75 8.806v.944a.75.75 0 0 1-1.5 0V7.5a.75.75 0 0 1 .372-.648l2.25-1.312a.75.75 0 0 1 1.026.27Zm12.204 0a.75.75 0 0 1 1.026-.27l2.25 1.312a.75.75 0 0 1 .372.648v2.25a.75.75 0 0 1-1.5 0v-.944l-1.122.654a.75.75 0 1 1-.756-1.295l1.14-.665-1.14-.665a.75.75 0 0 1-.27-1.025Zm-9 5.25a.75.75 0 0 1 1.026-.27L12 11.882l1.872-1.092a.75.75 0 1 1 .756 1.295l-1.878 1.096V15a.75.75 0 0 1-1.5 0v-1.82l-1.878-1.095a.75.75 0 0 1-.27-1.025ZM3 13.5a.75.75 0 0 1 .75.75v1.82l1.878 1.095a.75.75 0 1 1-.756 1.295l-2.25-1.312a.75.75 0 0 1-.372-.648v-2.25A.75.75 0 0 1 3 13.5Zm18 0a.75.75 0 0 1 .75.75v2.25a.75.75 0 0 1-.372.648l-2.25 1.312a.75.75 0 1 1-.756-1.295l1.878-1.096V14.25a.75.75 0 0 1 .75-.75Zm-9 5.25a.75.75 0 0 1 .75.75v.944l1.122-.654a.75.75 0 1 1 .756 1.295l-2.25 1.313a.75.75 0 0 1-.756 0l-2.25-1.313a.75.75 0 1 1 .756-1.295l1.122.654V19.5a.75.75 0 0 1 .75-.75Z","clip-rule":"evenodd"}]}},g5={default:{a:{fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}]},micro:{a:{viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"fill-rule":"evenodd",d:"M8.914 6.025a.75.75 0 0 1 1.06 0 3.5 3.5 0 0 1 0 4.95l-2 2a3.5 3.5 0 0 1-5.396-4.402.75.75 0 0 1 1.251.827 2 2 0 0 0 3.085 2.514l2-2a2 2 0 0 0 0-2.828.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"},{"fill-rule":"evenodd",d:"M7.086 9.975a.75.75 0 0 1-1.06 0 3.5 3.5 0 0 1 0-4.95l2-2a3.5 3.5 0 0 1 5.396 4.402.75.75 0 0 1-1.251-.827 2 2 0 0 0-3.085-2.514l-2 2a2 2 0 0 0 0 2.828.75.75 0 0 1 0 1.06Z","clip-rule":"evenodd"}]},mini:{a:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{d:"M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z"},{d:"M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z"}]},solid:{a:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},path:[{"fill-rule":"evenodd",d:"M19.902 4.098a3.75 3.75 0 0 0-5.304 0l-4.5 4.5a3.75 3.75 0 0 0 1.035 6.037.75.75 0 0 1-.646 1.353 5.25 5.25 0 0 1-1.449-8.45l4.5-4.5a5.25 5.25 0 1 1 7.424 7.424l-1.757 1.757a.75.75 0 1 1-1.06-1.06l1.757-1.757a3.75 3.75 0 0 0 0-5.304Zm-7.389 4.267a.75.75 0 0 1 1-.353 5.25 5.25 0 0 1 1.449 8.45l-4.5 4.5a5.25 5.25 0 1 1-7.424-7.424l1.757-1.757a.75.75 0 1 1 1.06 1.06l-1.757 1.757a3.75 3.75 0 1 0 5.304 5.304l4.5-4.5a3.75 3.75 0 0 0-1.035-6.037.75.75 0 0 1-.354-1Z","clip-rule":"evenodd"}]}};export{v5 as A,_5 as B,m5 as C,f5 as I,g5 as L,u5 as a}; diff --git a/_app/immutable/chunks/index.DrtbdpeK.js b/_app/immutable/chunks/index.DrtbdpeK.js new file mode 100644 index 0000000..0ebe311 --- /dev/null +++ b/_app/immutable/chunks/index.DrtbdpeK.js @@ -0,0 +1 @@ +import{n as f,s as l}from"./scheduler.BZf3Antt.js";const e=[];function h(n,b=f){let i;const o=new Set;function r(t){if(l(n,t)&&(n=t,i)){const c=!e.length;for(const s of o)s[1](),e.push(s,n);if(c){for(let s=0;s{o.delete(s),o.size===0&&i&&(i(),i=null)}}return{set:r,update:u,subscribe:p}}export{h as w}; diff --git a/_app/immutable/chunks/paths.DMfsdrqg.js b/_app/immutable/chunks/paths.DMfsdrqg.js new file mode 100644 index 0000000..ea704a2 --- /dev/null +++ b/_app/immutable/chunks/paths.DMfsdrqg.js @@ -0,0 +1 @@ +const s=globalThis.__sveltekit_11w8nne?.base??"/ml-mycelium",e=globalThis.__sveltekit_11w8nne?.assets??s;export{e as a,s as b}; diff --git a/_app/immutable/chunks/scheduler.BZf3Antt.js b/_app/immutable/chunks/scheduler.BZf3Antt.js new file mode 100644 index 0000000..5935ad0 --- /dev/null +++ b/_app/immutable/chunks/scheduler.BZf3Antt.js @@ -0,0 +1 @@ +function q(){}const tt=t=>t;function B(t,n){for(const e in n)t[e]=n[e];return t}function O(t){return t()}function nt(){return Object.create(null)}function G(t){t.forEach(O)}function et(t){return typeof t=="function"}function it(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let m;function st(t,n){return t===n?!0:(m||(m=document.createElement("a")),m.href=n,t===m.href)}function ct(t){return Object.keys(t).length===0}function R(t,...n){if(t==null){for(const i of n)i(void 0);return q}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function lt(t,n,e){t.$$.on_destroy.push(R(n,e))}function rt(t,n,e,i){if(t){const s=H(t,n,e,i);return t[0](s)}}function H(t,n,e,i){return t[1]&&i?B(e.ctx.slice(),t[1](i(n))):e.ctx}function ot(t,n,e,i){if(t[2]&&i){const s=t[2](i(e));if(n.dirty===void 0)return s;if(typeof s=="object"){const r=[],c=Math.max(n.dirty.length,s.length);for(let o=0;o32){const n=[],e=t.ctx.length/32;for(let i=0;i>1);e(s)<=i?t=s+1:n=s}return t}function F(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const l=[];for(let a=0;a0&&n[e[s]].claim_order<=a?s+1:z(1,s,D=>n[e[D]].claim_order,a))-1;i[l]=e[u]+1;const w=u+1;e[w]=l,s=Math.max(w,s)}const r=[],c=[];let o=n.length-1;for(let l=e[s]+1;l!=0;l=i[l-1]){for(r.push(n[l-1]);o>=l;o--)c.push(n[o]);o--}for(;o>=0;o--)c.push(n[o]);r.reverse(),c.sort((l,a)=>l.claim_order-a.claim_order);for(let l=0,a=0;l=r[a].claim_order;)a++;const u=at.removeEventListener(n,e,i)}function J(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function Et(t,n){for(const e in n)J(t,e,n[e])}function Tt(t){return t.dataset.svelteH}function vt(t){return Array.from(t.childNodes)}function S(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function C(t,n,e,i,s=!1){S(t);const r=(()=>{for(let c=t.claim_info.last_index;c=0;c--){const o=t[c];if(n(o)){const l=e(o);return l===void 0?t.splice(c,1):t[c]=l,s?l===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,o}}return i()})();return r.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,r}function j(t,n,e,i){return C(t,s=>s.nodeName===n,s=>{const r=[];for(let c=0;cs.removeAttribute(c))},()=>i(n))}function Nt(t,n,e){return j(t,n,e,L)}function wt(t,n,e){return j(t,n,e,M)}function K(t,n){return C(t,e=>e.nodeType===3,e=>{const i=""+n;if(e.data.startsWith(i)){if(e.data.length!==i.length)return e.splitText(i.length)}else e.data=i},()=>N(n),!0)}function At(t){return K(t," ")}function A(t,n,e){for(let i=e;i0&&e.push(s);return e}class V{is_svg=!1;e=void 0;n=void 0;t=void 0;a=void 0;constructor(n=!1){this.is_svg=n,this.e=this.n=null}c(n){this.h(n)}m(n,e,i=null){this.e||(this.is_svg?this.e=M(e.nodeName):this.e=L(e.nodeType===11?"TEMPLATE":e.nodeName),this.t=e.tagName!=="TEMPLATE"?e:e.content,this.c(n)),this.i(i)}h(n){this.e.innerHTML=n,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(n){for(let e=0;e{const s=t.$$.callbacks[n];if(s){const r=Q(n,e,{cancelable:i});return s.slice().forEach(c=>{c.call(t,r)}),!r.defaultPrevented}return!0}}function qt(t,n){return d().$$.context.set(t,n),n}function Bt(t){return d().$$.context.get(t)}function Ot(t,n){const e=t.$$.callbacks[n.type];e&&e.slice().forEach(i=>i.call(this,n))}const h=[],k=[];let _=[];const T=[],P=Promise.resolve();let v=!1;function X(){v||(v=!0,P.then(Z))}function Gt(){return X(),P}function Y(t){_.push(t)}function Rt(t){T.push(t)}const x=new Set;let f=0;function Z(){if(f!==0)return;const t=p;do{try{for(;ft.indexOf(i)===-1?n.push(i):e.push(i)),e.forEach(i=>i()),_=n}export{pt as $,G as A,gt as B,B as C,M as D,wt as E,Et as F,bt as G,_t as H,ft as I,y as J,kt as K,Lt as L,Pt as M,Ct as N,Gt as O,nt as P,Z as Q,et as R,ct as S,Y as T,zt as U,p as V,g as W,O as X,h as Y,X as Z,mt as _,yt as a,st as a0,ht as a1,Bt as a2,Ot as a3,tt as a4,qt as a5,Rt as a6,R as a7,dt as a8,vt as b,Nt as c,At as d,L as e,E as f,Tt as g,J as h,W as i,I as j,rt as k,ut as l,ot as m,q as n,St as o,Dt as p,jt as q,k as r,it as s,N as t,at as u,K as v,Ht as w,lt as x,Mt as y,xt as z}; diff --git a/_app/immutable/chunks/spread.CUGnlXHs.js b/_app/immutable/chunks/spread.CUGnlXHs.js new file mode 100644 index 0000000..3817ec3 --- /dev/null +++ b/_app/immutable/chunks/spread.CUGnlXHs.js @@ -0,0 +1 @@ +import{b as j,t as q}from"./index.C7bWdOrd.js";import{A as v}from"./scheduler.BZf3Antt.js";function C(n){return n?.length!==void 0?n:Array.from(n)}function D(n,u){j(n,1,1,()=>{u.delete(n.key)})}function E(n,u,r,y,h,a,s,d,t,x,p,b){let c=n.length,l=a.length,f=c;const g={};for(;f--;)g[n[f].key]=f;const _=[],m=new Map,k=new Map,A=[];for(f=l;f--;){const e=b(h,a,f),i=r(e);let o=s.get(i);o?A.push(()=>o.p(e,u)):(o=x(i,e),o.c()),m.set(i,_[f]=o),i in g&&k.set(i,Math.abs(f-g[i]))}const S=new Set,$=new Set;function M(e){q(e,1),e.m(d,p),s.set(e.key,e),p=e.first,l--}for(;c&&l;){const e=_[l-1],i=n[c-1],o=e.key,w=i.key;e===i?(p=e.first,c--,l--):m.has(w)?!s.has(o)||S.has(o)?M(e):$.has(w)?c--:k.get(o)>k.get(w)?($.add(o),M(e)):(S.add(w),c--):(t(i,s),c--)}for(;c--;){const e=n[c];m.has(e.key)||t(e,s)}for(;l;)M(_[l-1]);return v(A),_}function F(n,u){const r={},y={},h={$$scope:1};let a=n.length;for(;a--;){const s=n[a],d=u[a];if(d){for(const t in s)t in d||(y[t]=1);for(const t in d)h[t]||(r[t]=d[t],h[t]=1);n[a]=d}else for(const t in s)h[t]=1}for(const s in y)s in r||(r[s]=void 0);return r}export{C as e,F as g,D as o,E as u}; diff --git a/_app/immutable/chunks/stores.BEpXIDt_.js b/_app/immutable/chunks/stores.BEpXIDt_.js new file mode 100644 index 0000000..ded4f62 --- /dev/null +++ b/_app/immutable/chunks/stores.BEpXIDt_.js @@ -0,0 +1 @@ +import{w as a}from"./index.DrtbdpeK.js";const t=a();export{t as v}; diff --git a/_app/immutable/chunks/viewer.BYFc8Cdc.js b/_app/immutable/chunks/viewer.BYFc8Cdc.js new file mode 100644 index 0000000..7367867 --- /dev/null +++ b/_app/immutable/chunks/viewer.BYFc8Cdc.js @@ -0,0 +1,3 @@ +import{S as ae,i as le,t as P,g as ce,e as fe,b as D,c as Z,a as oe,m as Q,d as J,f as Oo}from"./index.C7bWdOrd.js";import{n as Y,s as se,k as Ur,D as V,E as F,b as L,f as E,h as p,i as I,u as Kr,l as Zr,m as Qr,G as Jr,N as Qe,B as G,C as Ie,a as Ce,t as Ae,d as Te,v as Re,j as B,w as _t,z as H,A as Gt,p as nt,a2 as ei,x as ti,a3 as ue,a4 as Po,L as Lo,r as Xe,e as ne,c as re,q as ni,g as rt,a5 as Io,a6 as Ao,a7 as Wn,O as xt,a8 as Zt}from"./scheduler.BZf3Antt.js";import{e as ge,g as Je,u as St,o as Ot}from"./spread.CUGnlXHs.js";import{w as ln}from"./index.DrtbdpeK.js";const ri=typeof window<"u";let Ro=ri?()=>window.performance.now():()=>Date.now(),ii=ri?t=>requestAnimationFrame(t):Y;const Ue=new Set;function oi(t){Ue.forEach(e=>{e.c(t)||(Ue.delete(e),e.f())}),Ue.size!==0&&ii(oi)}function Do(t){let e;return Ue.size===0&&ii(oi),{promise:new Promise(n=>{Ue.add(e={c:t,f:n})}),abort(){Ue.delete(e)}}}const ye={black:"#000000",white:"#ffffff",foreground:{blue:"#0066CC",red:"#E30000",orange:"#BF4800",yellow:"#D08B00",green:"#008009",purple:"#6D56D6",gray:"#1D1D1F",graySecondary:"#6E6E73",graySecondaryAlt:"#515154",grayTertiary:"#86868B"},background:{gray:"rgb(250, 250, 250)",darkGray:"rgb(51,51,51)"}},jt={family:"SF Mono, ui-monospace, monospace",weight:{regular:200,semibold:500,bold:600}};let un=class st{x;y;k;constructor(e,n,r){this.x=e,this.y=n,this.k=r}static identity(){return new st(0,0,1)}translate(e,n){return e===0&&n===0?this:new st(this.x+this.k*e,this.y+this.k*n,this.k)}scale(e){return e===1?this:new st(this.x,this.y,this.k*e)}apply(e,n){return{x:e*this.k+this.x,y:n*this.k+this.y}}inverse(){return st.identity().scale(1/this.k).translate(-this.x,-this.y)}toString(){return`translate(${this.x},${this.y}) scale(${this.k})`}};var Bo={value:()=>{}};function Mn(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Pt.prototype=Mn.prototype={constructor:Pt,on:function(t,e){var n=this._,r=$o(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Gn.hasOwnProperty(e)?{space:Gn[e],local:t}:t}function Fo(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===hn&&e.documentElement.namespaceURI===hn?e.createElement(t):e.createElementNS(n,t)}}function Wo(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function si(t){var e=Yt(t);return(e.local?Wo:Fo)(e)}function zo(){}function Nn(t){return t==null?zo:function(){return this.querySelector(t)}}function Go(t){typeof t!="function"&&(t=Nn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=w&&(w=b+1);!(_=T[w])&&++w=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function ps(t){t||(t=gs);function e(c,f){return c&&f?t(c.__data__,f.__data__):!c-!f}for(var n=this._groups,r=n.length,i=new Array(r),o=0;oe?1:t>=e?0:NaN}function ms(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function ws(){return Array.from(this)}function _s(){for(var t=this._groups,e=0,n=t.length;e1?this.each((e==null?Ss:typeof e=="function"?Ps:Os)(t,e,n??"")):et(this.node(),t)}function et(t,e){return t.style.getPropertyValue(e)||ci(t).getComputedStyle(t,null).getPropertyValue(e)}function Is(t){return function(){delete this[t]}}function As(t,e){return function(){this[t]=e}}function Rs(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ds(t,e){return arguments.length>1?this.each((e==null?Is:typeof e=="function"?Rs:As)(t,e)):this.node()[t]}function fi(t){return t.trim().split(/^|\s+/)}function Cn(t){return t.classList||new di(t)}function di(t){this._node=t,this._names=fi(t.getAttribute("class")||"")}di.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function pi(t,e){for(var n=Cn(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function ha(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n()=>t;function cn(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:h,dispatch:u}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:h,enumerable:!0,configurable:!0},_:{value:u}})}cn.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function xa(t){return!t.ctrlKey&&!t.button}function Ea(){return this.parentNode}function ka(t,e){return e??{x:t.x,y:t.y}}function Ma(){return navigator.maxTouchPoints||"ontouchstart"in this}function Na(){var t=xa,e=Ea,n=ka,r=Ma,i={},o=Mn("start","drag","end"),s=0,a,l,h,u,c=0;function f(m){m.on("mousedown.drag",d).filter(r).on("touchstart.drag",T).on("touchmove.drag",S,ya).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(m,_){if(!(u||!t.call(this,m,_))){var k=w(this,e.call(this,m,_),m,_,"mouse");k&&(ct(m.view).on("mousemove.drag",g,ft).on("mouseup.drag",y,ft),ba(m.view),Qt(m),h=!1,a=m.clientX,l=m.clientY,k("start",m))}}function g(m){if(Ke(m),!h){var _=m.clientX-a,k=m.clientY-l;h=_*_+k*k>c}i.mouse("drag",m)}function y(m){ct(m.view).on("mousemove.drag mouseup.drag",null),va(m.view,h),Ke(m),i.mouse("end",m)}function T(m,_){if(t.call(this,m,_)){var k=m.changedTouches,C=e.call(this,m,_),A=k.length,W,X;for(W=0;W>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?kt(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?kt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Ta.exec(t))?new he(e[1],e[2],e[3],1):(e=Sa.exec(t))?new he(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Oa.exec(t))?kt(e[1],e[2],e[3],e[4]):(e=Pa.exec(t))?kt(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=La.exec(t))?Zn(e[1],e[2]/100,e[3]/100,1):(e=Ia.exec(t))?Zn(e[1],e[2]/100,e[3]/100,e[4]):Yn.hasOwnProperty(t)?Xn(Yn[t]):t==="transparent"?new he(NaN,NaN,NaN,0):null}function Xn(t){return new he(t>>16&255,t>>8&255,t&255,1)}function kt(t,e,n,r){return r<=0&&(t=e=n=NaN),new he(t,e,n,r)}function Da(t){return t instanceof bt||(t=gt(t)),t?(t=t.rgb(),new he(t.r,t.g,t.b,t.opacity)):new he}function fn(t,e,n,r){return arguments.length===1?Da(t):new he(t,e,n,r??1)}function he(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Tn(he,fn,_i(bt,{brighter(t){return t=t==null?Bt:Math.pow(Bt,t),new he(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?dt:Math.pow(dt,t),new he(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new he(Ge(this.r),Ge(this.g),Ge(this.b),$t(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Un,formatHex:Un,formatHex8:Ba,formatRgb:Kn,toString:Kn}));function Un(){return`#${ze(this.r)}${ze(this.g)}${ze(this.b)}`}function Ba(){return`#${ze(this.r)}${ze(this.g)}${ze(this.b)}${ze((isNaN(this.opacity)?1:this.opacity)*255)}`}function Kn(){const t=$t(this.opacity);return`${t===1?"rgb(":"rgba("}${Ge(this.r)}, ${Ge(this.g)}, ${Ge(this.b)}${t===1?")":`, ${t})`}`}function $t(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ge(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ze(t){return t=Ge(t),(t<16?"0":"")+t.toString(16)}function Zn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _e(t,e,n,r)}function yi(t){if(t instanceof _e)return new _e(t.h,t.s,t.l,t.opacity);if(t instanceof bt||(t=gt(t)),!t)return new _e;if(t instanceof _e)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(n-r)/a+(n0&&l<1?0:s,new _e(s,a,l,t.opacity)}function $a(t,e,n,r){return arguments.length===1?yi(t):new _e(t,e,n,r??1)}function _e(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Tn(_e,$a,_i(bt,{brighter(t){return t=t==null?Bt:Math.pow(Bt,t),new _e(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?dt:Math.pow(dt,t),new _e(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new he(Jt(t>=240?t-240:t+120,i,r),Jt(t,i,r),Jt(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new _e(Qn(this.h),Mt(this.s),Mt(this.l),$t(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=$t(this.opacity);return`${t===1?"hsl(":"hsla("}${Qn(this.h)}, ${Mt(this.s)*100}%, ${Mt(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Qn(t){return t=(t||0)%360,t<0?t+360:t}function Mt(t){return Math.max(0,Math.min(1,t||0))}function Jt(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const bi=t=>()=>t;function Va(t,e){return function(n){return t+n*e}}function Fa(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Wa(t){return(t=+t)==1?vi:function(e,n){return n-e?Fa(e,n,t):bi(isNaN(e)?n:e)}}function vi(t,e){var n=e-t;return n?Va(t,n):bi(isNaN(t)?e:t)}const Jn=function t(e){var n=Wa(e);function r(i,o){var s=n((i=fn(i)).r,(o=fn(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),h=vi(i.opacity,o.opacity);return function(u){return i.r=s(u),i.g=a(u),i.b=l(u),i.opacity=h(u),i+""}}return r.gamma=t,r}(1);function Le(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var dn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,en=new RegExp(dn.source,"g");function za(t){return function(){return t}}function Ga(t){return function(e){return t(e)+""}}function ja(t,e){var n=dn.lastIndex=en.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=dn.exec(t))&&(i=en.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Le(r,i)})),n=en.lastIndex;return n180?u+=360:u-h>180&&(h+=360),f.push({i:c.push(i(c)+"rotate(",null,r)-2,x:Le(h,u)})):u&&c.push(i(c)+"rotate("+u+r)}function a(h,u,c,f){h!==u?f.push({i:c.push(i(c)+"skewX(",null,r)-2,x:Le(h,u)}):u&&c.push(i(c)+"skewX("+u+r)}function l(h,u,c,f,d,g){if(h!==c||u!==f){var y=d.push(i(d)+"scale(",null,",",null,")");g.push({i:y-4,x:Le(h,c)},{i:y-2,x:Le(u,f)})}else(c!==1||f!==1)&&d.push(i(d)+"scale("+c+","+f+")")}return function(h,u){var c=[],f=[];return h=t(h),u=t(u),o(h.translateX,h.translateY,u.translateX,u.translateY,c,f),s(h.rotate,u.rotate,c,f),a(h.skewX,u.skewX,c,f),l(h.scaleX,h.scaleY,u.scaleX,u.scaleY,c,f),h=u=null,function(d){for(var g=-1,y=f.length,T;++g=0&&t._call.call(void 0,e),t=t._next;--tt}function tr(){je=(Ft=mt.now())+Ht,tt=at=0;try{Ka()}finally{tt=0,Qa(),je=0}}function Za(){var t=mt.now(),e=t-Ft;e>ki&&(Ht-=e,Ft=t)}function Qa(){for(var t,e=Vt,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Vt=n);lt=t,gn(r)}function gn(t){if(!tt){at&&(at=clearTimeout(at));var e=t-je;e>24?(t<1/0&&(at=setTimeout(tr,t-mt.now()-Ht)),ot&&(ot=clearInterval(ot))):(ot||(Ft=mt.now(),ot=setInterval(Za,ki)),tt=1,Mi(tr))}}function nr(t,e,n){var r=new Wt;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var Ja=Mn("start","end","cancel","interrupt"),el=[],Ci=0,rr=1,mn=2,Lt=3,ir=4,wn=5,It=6;function qt(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;tl(t,n,{name:e,index:r,group:i,on:Ja,tween:el,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ci})}function On(t,e){var n=be(t,e);if(n.state>Ci)throw new Error("too late; already scheduled");return n}function Me(t,e){var n=be(t,e);if(n.state>Lt)throw new Error("too late; already running");return n}function be(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function tl(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Ni(o,0,n.time);function o(h){n.state=rr,n.timer.restart(s,n.delay,n.time),n.delay<=h&&s(h-n.delay)}function s(h){var u,c,f,d;if(n.state!==rr)return l();for(u in r)if(d=r[u],d.name===n.name){if(d.state===Lt)return nr(s);d.state===ir?(d.state=It,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[u]):+umn&&r.state=0&&(e=e.slice(0,n)),!e||e==="start"})}function Ll(t,e,n){var r,i,o=Pl(e)?On:Me;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function Il(t,e){var n=this._id;return arguments.length<2?be(this.node(),n).on.on(t):this.each(Ll(n,t,e))}function Al(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Rl(){return this.on("end.remove",Al(this._id))}function Dl(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Nn(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Pi;const n=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;iWe)if(!(Math.abs(c*l-h*u)>We)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let d=r-s,g=i-a,y=l*l+h*h,T=d*d+g*g,S=Math.sqrt(y),b=Math.sqrt(f),w=o*Math.tan((_n-Math.acos((y+f-T)/(2*S*b)))/2),m=w/b,_=w/S;Math.abs(m-1)>We&&this._append`L${e+m*u},${n+m*c}`,this._append`A${o},${o},0,0,${+(c*d>u*g)},${this._x1=e+_*l},${this._y1=n+_*h}`}}arc(e,n,r,i,o,s){if(e=+e,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),h=e+a,u=n+l,c=1^s,f=s?i-o:o-i;this._x1===null?this._append`M${h},${u}`:(Math.abs(this._x1-h)>We||Math.abs(this._y1-u)>We)&&this._append`L${h},${u}`,r&&(f<0&&(f=f%yn+yn),f>au?this._append`A${r},${r},0,1,${c},${e-a},${n-l}A${r},${r},0,1,${c},${this._x1=h},${this._y1=u}`:f>We&&this._append`A${r},${r},0,${+(f>=_n)},${c},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Ii(){return new Li}Ii.prototype=Li.prototype;function ut(t,e,n){this.k=t,this.x=e,this.y=n}ut.prototype={constructor:ut,scale:function(t){return t===1?this:new ut(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ut(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ut.prototype;class bn{context=Ii();x0=NaN;x1=NaN;y0=NaN;y1=NaN;state=0;constructor(e){for(let n=0;n(n.xMin=Math.min(n.xMin,r.x),n.yMin=Math.min(n.yMin,r.y),n.xMax=Math.max(n.xMax,r.x),n.yMax=Math.max(n.yMax,r.y),n),q.infinity())}static fromUnion(...e){return e.reduce((n,r)=>n.union(r),q.infinity())}get width(){return this.xMax-this.xMin}get height(){return this.yMax-this.yMin}get center(){return{x:this.xMin+this.width/2,y:this.yMin+this.height/2}}padded(e){const{l:n,r,b:i,t:o}=typeof e=="object"?e:{l:e,r:e,t:e,b:e};return new q(this.xMin-n,this.yMin-o,this.xMax+r,this.yMax+i)}union(e){return new q(Math.min(this.xMin,e.xMin),Math.min(this.yMin,e.yMin),Math.max(this.xMax,e.xMax),Math.max(this.yMax,e.yMax))}transformed(e){const n=e.apply(this.xMin,this.yMin),r=e.apply(this.xMax,this.yMax);return new q(n.x,n.y,r.x,r.y)}contains(e,n){return this.xMin<=e&&this.yMin<=n&&e<=this.xMax&&n<=this.yMax}encloses(e){return this.contains(e.xMin,e.yMin)&&this.contains(e.xMax,e.yMax)}intersects(e){return this.xMin<=e.xMin&&e.xMin<=this.xMax||this.xMin<=e.xMax&&e.xMax<=this.xMax||this.yMin<=e.yMin&&e.yMin<=this.yMax||this.yMin<=e.yMax&&e.yMax<=this.yMax}}function*uu(t,e){let n=!0;for(const r of t)n||(yield e),n=!1,yield r}function At(t,e,n){return Math.min(Math.max(n,t),e)}class De{options;constructor(e){this.options=e}with(e){return this.options={...this.options,...e},this}}function or(t,e,n){const r=t.slice();return r[3]=e[n],r}function sr(t){let e,n,r,i;const o=[{self:t[3]}];var s=t[3].drawable();function a(l,h){let u={};for(let c=0;c{J(u,1)}),fe()}s?(n=Qe(s,a(l,h)),Z(n.$$.fragment),P(n.$$.fragment,1),Q(n,r.parentNode,r)):n=null}else if(s){const u=h&1?Je(o,[{self:l[3]}]):{};n.$set(u)}},i(l){i||(n&&P(n.$$.fragment,l),i=!0)},o(l){n&&D(n.$$.fragment,l),i=!1},d(l){l&&(E(e),E(r)),n&&J(n,l)}}}function hu(t){let e,n,r;const i=t[2].default,o=Ur(i,t,t[1],null);let s=ge(t[0].children),a=[];for(let h=0;hD(a[h],1,1,()=>{a[h]=null});return{c(){e=V("g"),o&&o.c();for(let h=0;h{"self"in s&&n(0,o=s.self),"$$scope"in s&&n(1,i=s.$$scope)},[o,i,r]}let Ln=class extends ae{constructor(e){super(),le(this,e,cu,hu,se,{self:0})}};class fu{onClick}class it extends fu{transform;constructor(){super(),this.transform=un.identity()}moveTo(e,n){this.transform.x=e,this.transform.y=n}}class Xt extends it{children;constructor(...e){super(),this.children=e}boundingBox(){return q.fromUnion(...this.children.map(e=>e.boundingBox().transformed(e.transform)))}drawable(){return Ln}}class du extends De{children;constructor(...e){super({spacing:0,spread:!1,minWidth:Number.MIN_VALUE,maxWidth:Number.MAX_VALUE}),this.children=e}build(e={}){const n=this.children.map(o=>o.build(e));let r=0;if(this.options.spread&&e.targetWidth!==void 0){const o=n.length-1,s=n.reduce((l,h)=>l+h.boundingBox().width,this.options.spacing*o),a=e.targetWidth-s;r=Math.max(a/(this.children.length-1),0)}const i={x:0,y:0};for(const o of n)o.moveTo(i.x,i.y),i.x+=o.boundingBox().width+this.options.spacing+r;return new Ai(this.options,...n)}}class pu extends De{children;constructor(...e){super({spacing:0,spread:!1,minWidth:Number.MIN_VALUE,maxWidth:Number.MAX_VALUE}),this.children=e}padded(e){return new vt(this,e)}build(e={}){const n=Math.max(this.options.minWidth,this.children.reduce((o,s)=>Math.max(o,s.build(e).boundingBox().width),-1/0)),r=this.children.map(o=>o.build({...e,targetWidth:n})),i={x:0,y:0};for(const o of r)o.moveTo(i.x,i.y),i.y+=o.boundingBox().height+this.options.spacing;return new Ai(this.options,...r)}}class Ai extends Xt{constructor(e,...n){super(...n),this.options=e,this.options=e}boundingBox(){const e=super.boundingBox();return e.xMax=At(this.options.minWidth,this.options.maxWidth,e.xMax),e}}const Ri={l:8,r:8,t:10,b:10};function gu(t,e,n,r){switch(n){case"topRight":return{x:t.xMax+r,y:t.yMin};case"bottomMiddle":return{x:t.center.x-e.width/2,y:t.yMax+r}}}let Ip=class extends De{content;constructor(e){super({anchor:"topRight"}),this.content=e}build(e={}){return new mu(new wu(new vt(this.content,Ri)).with({radius:6,borderColor:"none",backgroundColor:ye.background.darkGray}).build({defaultOptions:{text:{foregroundColor:"white"}}}),this.options)}};class mu extends it{constructor(e,n){super(),this.content=e,this.options=n}boundingBox(){return this.content.boundingBox().padded(Ri)}drawable(){throw Error("not implemented")}}class wu extends De{constructor(e){super({backgroundColor:ye.white,borderColor:ye.foreground.grayTertiary,borderWidth:1,borderDash:void 0,radius:void 0}),this.inner=e}content(){return this.inner}build(e={}){const n=this.inner.build(e),r=n.boundingBox();return new _u(n,new Bi(r.width,r.height).with(this.options).build(e))}}class _u extends Xt{constructor(e,n){super(n,e)}boundingBox(){return super.boundingBox()}}function yu(t){let e,n;return{c(){e=V("path"),this.h()},l(r){e=F(r,"path",{stroke:!0,"stroke-width":!0,fill:!0,"pointer-events":!0,"marker-end":!0,d:!0}),L(e).forEach(E),this.h()},h(){p(e,"stroke",ye.foreground.grayTertiary),p(e,"stroke-width","1"),p(e,"fill","none"),p(e,"pointer-events","none"),p(e,"marker-end","url(#arrowhead)"),p(e,"d",n=new bn(t[0]).build())},m(r,i){I(r,e,i)},p(r,[i]){i&1&&n!==(n=new bn(r[0]).build())&&p(e,"d",n)},i:Y,o:Y,d(r){r&&E(e)}}}function bu(t,e,n){let r,{self:i}=e;return t.$$set=o=>{"self"in o&&n(1,i=o.self)},t.$$.update=()=>{t.$$.dirty&2&&n(0,r=i.points.map(o=>i.transform.apply(o.x,o.y)))},[r,i]}class vu extends ae{constructor(e){super(),le(this,e,bu,yu,se,{self:1})}}class xu extends it{points;constructor(e){super(),this.points=e}path(){const e=this.points.map(n=>this.transform.apply(n.x,n.y));return new bn(e).build()}boundingBox(){return q.fromPoints(...this.points)}drawable(){return vu}}class Eu extends Xt{}function ku(t){let e,n,r=t[0].text+"",i,o,s;return{c(){e=Ce(),n=V("text"),i=Ae(r),this.h()},l(a){e=Te(a),n=F(a,"text",{x:!0,y:!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,fill:!0,"font-weight":!0});var l=L(n);i=Re(l,r),l.forEach(E),this.h()},h(){p(n,"x",o=t[0].transform.x),p(n,"y",s=t[0].transform.y),p(n,"dominant-baseline","hanging"),p(n,"font-family",t[2]),p(n,"font-size",t[1]),p(n,"fill",t[3]),p(n,"font-weight",t[4])},m(a,l){I(a,e,l),I(a,n,l),B(n,i)},p(a,[l]){l&1&&r!==(r=a[0].text+"")&&_t(i,r),l&1&&o!==(o=a[0].transform.x)&&p(n,"x",o),l&1&&s!==(s=a[0].transform.y)&&p(n,"y",s)},i:Y,o:Y,d(a){a&&(E(e),E(n))}}}function Mu(t,e,n){let{self:r}=e;const{fontSize:i,font:o,foregroundColor:s,fontWeight:a}=r.options;return t.$$set=l=>{"self"in l&&n(0,r=l.self)},[r,i,o,s,a]}let Nu=class extends ae{constructor(e){super(),le(this,e,Mu,ku,se,{self:0})}};class Cu{canvas;ctx;constructor(){this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d")}measureTextWidth(e,n){return this.ctx.font=`${n.fontSize}px ${n.font}`,this.ctx.textBaseline="top",this.ctx.measureText(e).width}}class Tu extends De{text;constructor(e){super({font:jt.family,fontSize:16,fontWeight:200}),this.text=e}padded(e){return new vt(this,e)}build(e){return new Su(this.text,{...e?.defaultOptions?.text,...this.options})}}class Su extends it{text;options;width;height;constructor(e,n){super(),this.text=e,this.options=n,this.width=new Cu().measureTextWidth(this.text,this.options),this.height=n.fontSize}boundingBox(){return new q(0,0,this.width,this.height)}drawable(){return Nu}}const In=Symbol();function Ou(t){let e,n,r;return{c(){e=V("rect"),this.h()},l(i){e=F(i,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-dasharray":!0}),L(e).forEach(E),this.h()},h(){p(e,"x",n=t[0].transform.x),p(e,"y",r=t[0].transform.y),p(e,"width",t[6]),p(e,"height",t[7]),p(e,"rx",t[1]),p(e,"fill",t[4]),p(e,"stroke",t[5]),p(e,"stroke-width",t[3]),p(e,"stroke-dasharray",t[2])},m(i,o){I(i,e,o)},p(i,[o]){o&1&&n!==(n=i[0].transform.x)&&p(e,"x",n),o&1&&r!==(r=i[0].transform.y)&&p(e,"y",r),o&2&&p(e,"rx",i[1]),o&16&&p(e,"fill",i[4]),o&32&&p(e,"stroke",i[5]),o&8&&p(e,"stroke-width",i[3]),o&4&&p(e,"stroke-dasharray",i[2])},i:Y,o:Y,d(i){i&&E(e)}}}function Pu(t,e,n){let r,i,o,s,a,{self:l}=e;const h=l.boundingBox().width,u=l.boundingBox().height;return t.$$set=c=>{"self"in c&&n(0,l=c.self)},t.$$.update=()=>{t.$$.dirty&1&&n(5,{borderColor:r,backgroundColor:i,borderWidth:o,borderDash:s,radius:a}=l.options,r,(n(4,i),n(0,l)),(n(3,o),n(0,l)),(n(2,s),n(0,l)),(n(1,a),n(0,l)))},[l,a,s,o,i,r,h,u]}let Di=class extends ae{constructor(e){super(),le(this,e,Pu,Ou,se,{self:0})}};function ar(t){let e,n,r,i,o=t[2].text&&lr(t);return{c(){e=V("g"),n=V("circle"),o&&o.c(),this.h()},l(s){e=F(s,"g",{class:!0,transform:!0});var a=L(e);n=F(a,"circle",{r:!0,fill:!0,stroke:!0,"stroke-width":!0}),L(n).forEach(E),o&&o.l(a),a.forEach(E),this.h()},h(){p(n,"r","10"),p(n,"fill",r=t[2].color),p(n,"stroke","white"),p(n,"stroke-width","2"),p(e,"class","badge"),p(e,"transform",i=`translate(${t[3].width+t[5].x},${-t[5].y})`)},m(s,a){I(s,e,a),B(e,n),o&&o.m(e,null)},p(s,a){a&4&&r!==(r=s[2].color)&&p(n,"fill",r),s[2].text?o?o.p(s,a):(o=lr(s),o.c(),o.m(e,null)):o&&(o.d(1),o=null),a&8&&i!==(i=`translate(${s[3].width+s[5].x},${-s[5].y})`)&&p(e,"transform",i)},d(s){s&&E(e),o&&o.d()}}}function lr(t){let e,n=t[2].text+"",r;return{c(){e=V("text"),r=Ae(n),this.h()},l(i){e=F(i,"text",{y:!0,"font-family":!0,"font-size":!0,"text-anchor":!0,"dominant-baseline":!0,fill:!0});var o=L(e);r=Re(o,n),o.forEach(E),this.h()},h(){p(e,"y",1),p(e,"font-family",jt.family),p(e,"font-size","10"),p(e,"text-anchor","middle"),p(e,"dominant-baseline","middle"),p(e,"fill","white")},m(i,o){I(i,e,o),B(e,r)},p(i,o){o&4&&n!==(n=i[2].text+"")&&_t(r,n)},d(i){i&&E(e)}}}function Lu(t){let e,n,r,i,o,s,a,l;n=new Di({props:{self:t[1]}});const h=[{self:t[0].content}];var u=t[0].content.drawable();function c(d,g){let y={};for(let T=0;T + `),f&&f.c(),this.h()},l(d){e=F(d,"g",{transform:!0,cursor:!0});var g=L(e);oe(n.$$.fragment,g),r&&oe(r.$$.fragment,g),i=Re(g,` --> + `),f&&f.l(g),g.forEach(E),this.h()},h(){p(e,"transform",o=`translate(${t[3].xMin},${t[3].yMin})`),p(e,"cursor","pointer")},m(d,g){I(d,e,g),Q(n,e,null),r&&Q(r,e,null),B(e,i),f&&f.m(e,null),s=!0,a||(l=[H(e,"click",t[13]),H(e,"dblclick",t[14]),H(e,"mouseenter",t[6]),H(e,"mouseleave",t[7])],a=!0)},p(d,[g]){const y={};if(g&2&&(y.self=d[1]),n.$set(y),g&1&&u!==(u=d[0].content.drawable())){if(r){ce();const T=r;D(T.$$.fragment,1,0,()=>{J(T,1)}),fe()}u?(r=Qe(u,c(d,g)),Z(r.$$.fragment),P(r.$$.fragment,1),Q(r,e,i)):r=null}else if(u){const T=g&1?Je(h,[{self:d[0].content}]):{};r.$set(T)}d[2]?f?f.p(d,g):(f=ar(d),f.c(),f.m(e,null)):f&&(f.d(1),f=null),(!s||g&8&&o!==(o=`translate(${d[3].xMin},${d[3].yMin})`))&&p(e,"transform",o)},i(d){s||(P(n.$$.fragment,d),r&&P(r.$$.fragment,d),s=!0)},o(d){D(n.$$.fragment,d),r&&D(r.$$.fragment,d),s=!1},d(d){d&&E(e),J(n),r&&J(r),f&&f.d(),a=!1,Gt(l)}}}function Iu(t,e,n){let r,i,o,s,a,l;const h=nt();let{self:u}=e,{decoration:c}=e;const{selections:f}=ei(In);ti(t,f,w=>n(12,l=w));const d={x:1,y:1};let g=!1;function y(w){n(9,g=!0),h("nodeEnter",{...w,nodeId:r})}function T(w){n(9,g=!1),h("nodeLeave",{...w,nodeId:r})}function S(w){ue.call(this,t,w)}function b(w){ue.call(this,t,w)}return t.$$set=w=>{"self"in w&&n(0,u=w.self),"decoration"in w&&n(8,c=w.decoration)},t.$$.update=()=>{t.$$.dirty&1&&n(11,r=u.nodeId),t.$$.dirty&6144&&n(10,i=l.has(r)),t.$$.dirty&1&&n(3,o=u.boundingBox()),t.$$.dirty&1&&n(2,s=u.options.badge),t.$$.dirty&1793&&n(1,a=new Bi(u.content.boundingBox().width,u.content.boundingBox().height).with({borderColor:ye.foreground.grayTertiary,borderWidth:1,radius:6,borderDash:u.options.borderDash,backgroundColor:u.options.backgroundColor}).with({...c}).with(g?{borderColor:ye.foreground.blue}:{}).with(i?{borderColor:ye.foreground.blue,borderWidth:3}:{}).build())},[u,a,s,o,f,d,y,T,c,g,i,r,l,S,b]}let An=class extends ae{constructor(e){super(),le(this,e,Iu,Lu,se,{self:0,decoration:8})}};function Au(t){return new du(new Tu(t)).with({minWidth:30})}class $p extends De{constructor(e,...n){super({selectable:!1,borderDash:void 0,badge:void 0,tooltip:void 0,backgroundColor:ye.white,borderColor:ye.foreground.grayTertiary,humanReadable:void 0,padding:{l:8,r:8,t:10,b:10}}),this.nodeId=e,this.contents=n.length>0?n:[Au(this.options.humanReadable||this.nodeId)]}contents;humanReadable(){return this.options.humanReadable}build(e={}){const n=[...uu(this.contents.map(r=>new vt(r,this.options.padding)),new Fu().with({color:this.options.borderColor,dash:this.options.borderDash}))];return new Ru(this.nodeId,new pu(...n).build(e),this.options)}}class Ru extends it{constructor(e,n,r){super(),this.nodeId=e,this.content=n,this.options=r}boundingBox(){return this.content.boundingBox().transformed(this.transform)}drawable(){return An}}class Bi extends De{width;height;constructor(e,n){super({backgroundColor:ye.black,borderColor:"none",borderWidth:0,borderDash:void 0,radius:void 0}),this.width=e,this.height=n}padded(e){return new vt(this,e)}build(e={}){return new $i(this.width,this.height,this.options)}}class $i extends it{constructor(e,n,r){super(),this.width=e,this.height=n,this.options=r}boundingBox(){return new q(0,0,this.width,this.height)}drawable(){return Di}}function Du(t){return t.l!==void 0}class vt{constructor(e,n){this.inner=e,this.inner=e,this.p=Du(n)?n:{l:n,r:n,t:n,b:n}}p;content(){return this.inner}padding(){return this.p}build(e={}){const{l:n,t:r,r:i}=this.p,o=e.targetWidth?this.inner.build({...e,targetWidth:e.targetWidth-n-i}):this.inner.build({...e});return o.moveTo(n,r),new Bu(o,this.p)}}class Bu extends Xt{padding;constructor(e,n){super(e),this.padding=n}boundingBox(){return super.boundingBox().padded(this.padding)}drawable(){return Ln}}const $u=1,Vu=100;class Fu extends De{width;constructor(e){super({color:ye.foreground.grayTertiary,dash:void 0}),this.width=e}build(e={}){const n=this.width||e.targetWidth||Vu;return new $i(n,$u,{backgroundColor:this.options.color,borderColor:"none",borderWidth:0,radius:void 0,borderDash:this.options.dash})}}var Vp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var zu="\0",Fe="\0",ur="";let Gu=class{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>{};_defaultEdgeLabelFn=()=>{};_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(e){e&&(this._isDirected=e.hasOwnProperty("directed")?e.directed:!0,this._isMultigraph=e.hasOwnProperty("multigraph")?e.multigraph:!1,this._isCompound=e.hasOwnProperty("compound")?e.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[Fe]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return this._defaultNodeLabelFn=e,typeof e!="function"&&(this._defaultNodeLabelFn=()=>e),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var e=this;return this.nodes().filter(n=>Object.keys(e._in[n]).length===0)}sinks(){var e=this;return this.nodes().filter(n=>Object.keys(e._out[n]).length===0)}setNodes(e,n){var r=arguments,i=this;return e.forEach(function(o){r.length>1?i.setNode(o,n):i.setNode(o)}),this}setNode(e,n){return this._nodes.hasOwnProperty(e)?(arguments.length>1&&(this._nodes[e]=n),this):(this._nodes[e]=arguments.length>1?n:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=Fe,this._children[e]={},this._children[Fe][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return this._nodes.hasOwnProperty(e)}removeNode(e){var n=this;if(this._nodes.hasOwnProperty(e)){var r=i=>n.removeEdge(n._edgeObjs[i]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(function(i){n.setParent(i)}),delete this._children[e]),Object.keys(this._in[e]).forEach(r),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(n===void 0)n=Fe;else{n+="";for(var r=n;r!==void 0;r=this.parent(r))if(r===e)throw new Error("Setting "+n+" as parent of "+e+" would create a cycle");this.setNode(n)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=n,this._children[n][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var n=this._parent[e];if(n!==Fe)return n}}children(e=Fe){if(this._isCompound){var n=this._children[e];if(n)return Object.keys(n)}else{if(e===Fe)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var n=this._preds[e];if(n)return Object.keys(n)}successors(e){var n=this._sucs[e];if(n)return Object.keys(n)}neighbors(e){var n=this.predecessors(e);if(n){const i=new Set(n);for(var r of this.successors(e))i.add(r);return Array.from(i.values())}}isLeaf(e){var n;return this.isDirected()?n=this.successors(e):n=this.neighbors(e),n.length===0}filterNodes(e){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var r=this;Object.entries(this._nodes).forEach(function([s,a]){e(s)&&n.setNode(s,a)}),Object.values(this._edgeObjs).forEach(function(s){n.hasNode(s.v)&&n.hasNode(s.w)&&n.setEdge(s,r.edge(s))});var i={};function o(s){var a=r.parent(s);return a===void 0||n.hasNode(a)?(i[s]=a,a):a in i?i[a]:o(a)}return this._isCompound&&n.nodes().forEach(s=>n.setParent(s,o(s))),n}setDefaultEdgeLabel(e){return this._defaultEdgeLabelFn=e,typeof e!="function"&&(this._defaultEdgeLabelFn=()=>e),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,n){var r=this,i=arguments;return e.reduce(function(o,s){return i.length>1?r.setEdge(o,s,n):r.setEdge(o,s),s}),this}setEdge(){var e,n,r,i,o=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(e=s.v,n=s.w,r=s.name,arguments.length===2&&(i=arguments[1],o=!0)):(e=s,n=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),e=""+e,n=""+n,r!==void 0&&(r=""+r);var a=ht(this._isDirected,e,n,r);if(this._edgeLabels.hasOwnProperty(a))return o&&(this._edgeLabels[a]=i),this;if(r!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[a]=o?i:this._defaultEdgeLabelFn(e,n,r);var l=ju(this._isDirected,e,n,r);return e=l.v,n=l.w,Object.freeze(l),this._edgeObjs[a]=l,hr(this._preds[n],e),hr(this._sucs[e],n),this._in[n][a]=l,this._out[e][a]=l,this._edgeCount++,this}edge(e,n,r){var i=arguments.length===1?tn(this._isDirected,arguments[0]):ht(this._isDirected,e,n,r);return this._edgeLabels[i]}edgeAsObj(){const e=this.edge(...arguments);return typeof e!="object"?{label:e}:e}hasEdge(e,n,r){var i=arguments.length===1?tn(this._isDirected,arguments[0]):ht(this._isDirected,e,n,r);return this._edgeLabels.hasOwnProperty(i)}removeEdge(e,n,r){var i=arguments.length===1?tn(this._isDirected,arguments[0]):ht(this._isDirected,e,n,r),o=this._edgeObjs[i];return o&&(e=o.v,n=o.w,delete this._edgeLabels[i],delete this._edgeObjs[i],cr(this._preds[n],e),cr(this._sucs[e],n),delete this._in[n][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,n){var r=this._in[e];if(r){var i=Object.values(r);return n?i.filter(o=>o.v===n):i}}outEdges(e,n){var r=this._out[e];if(r){var i=Object.values(r);return n?i.filter(o=>o.w===n):i}}nodeEdges(e,n){var r=this.inEdges(e,n);if(r)return r.concat(this.outEdges(e,n))}};function hr(t,e){t[e]?t[e]++:t[e]=1}function cr(t,e){--t[e]||delete t[e]}function ht(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var s=i;i=o,o=s}return i+ur+o+ur+(r===void 0?zu:r)}function ju(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}function tn(t,e){return ht(t,e.v,e.w,e.name)}var Rn=Gu,Yu="2.2.2",Hu={Graph:Rn,version:Yu},qu=Rn,Xu={write:Uu,read:Qu};function Uu(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:Ku(t),edges:Zu(t)};return t.graph()!==void 0&&(e.value=structuredClone(t.graph())),e}function Ku(t){return t.nodes().map(function(e){var n=t.node(e),r=t.parent(e),i={v:e};return n!==void 0&&(i.value=n),r!==void 0&&(i.parent=r),i})}function Zu(t){return t.edges().map(function(e){var n=t.edge(e),r={v:e.v,w:e.w};return e.name!==void 0&&(r.name=e.name),n!==void 0&&(r.value=n),r})}function Qu(t){var e=new qu(t.options).setGraph(t.value);return t.nodes.forEach(function(n){e.setNode(n.v,n.value),n.parent&&e.setParent(n.v,n.parent)}),t.edges.forEach(function(n){e.setEdge({v:n.v,w:n.w,name:n.name},n.value)}),e}var Ju=eh;function eh(t){var e={},n=[],r;function i(o){e.hasOwnProperty(o)||(e[o]=!0,r.push(o),t.successors(o).forEach(i),t.predecessors(o).forEach(i))}return t.nodes().forEach(function(o){r=[],i(o),r.length&&n.push(r)}),n}let th=class{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(e){return e.key})}has(e){return this._keyIndices.hasOwnProperty(e)}priority(e){var n=this._keyIndices[e];if(n!==void 0)return this._arr[n].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(e,n){var r=this._keyIndices;if(e=String(e),!r.hasOwnProperty(e)){var i=this._arr,o=i.length;return r[e]=o,i.push({key:e,priority:n}),this._decrease(o),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,n){var r=this._keyIndices[e];if(n>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[r].priority+" New: "+n);this._arr[r].priority=n,this._decrease(r)}_heapify(e){var n=this._arr,r=2*e,i=r+1,o=e;r>1,!(n[i].priority1;function ih(t,e,n,r){return oh(t,String(e),n||rh,r||function(i){return t.outEdges(i)})}function oh(t,e,n,r){var i={},o=new nh,s,a,l=function(h){var u=h.v!==s?h.v:h.w,c=i[u],f=n(h),d=a.distance+f;if(f<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+h+" Weight: "+f);d0&&(s=o.removeMin(),a=i[s],a.distance!==Number.POSITIVE_INFINITY);)r(s).forEach(l);return i}var sh=Fi,ah=lh;function lh(t,e,n){return t.nodes().reduce(function(r,i){return r[i]=sh(t,i,e,n),r},{})}var Wi=uh;function uh(t){var e=0,n=[],r={},i=[];function o(s){var a=r[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach(function(u){r.hasOwnProperty(u)?r[u].onStack&&(a.lowlink=Math.min(a.lowlink,r[u].index)):(o(u),a.lowlink=Math.min(a.lowlink,r[u].lowlink))}),a.lowlink===a.index){var l=[],h;do h=n.pop(),r[h].onStack=!1,l.push(h);while(s!==h);i.push(l)}}return t.nodes().forEach(function(s){r.hasOwnProperty(s)||o(s)}),i}var hh=Wi,ch=fh;function fh(t){return hh(t).filter(function(e){return e.length>1||e.length===1&&t.hasEdge(e[0],e[0])})}var dh=gh,ph=()=>1;function gh(t,e,n){return mh(t,e||ph,n||function(r){return t.outEdges(r)})}function mh(t,e,n){var r={},i=t.nodes();return i.forEach(function(o){r[o]={},r[o][o]={distance:0},i.forEach(function(s){o!==s&&(r[o][s]={distance:Number.POSITIVE_INFINITY})}),n(o).forEach(function(s){var a=s.v===o?s.w:s.v,l=e(s);r[o][a]={distance:l,predecessor:o}})}),i.forEach(function(o){var s=r[o];i.forEach(function(a){var l=r[a];i.forEach(function(h){var u=l[o],c=s[h],f=l[h],d=u.distance+c.distance;dt.successors(a):a=>t.neighbors(a),i=n==="post"?bh:vh,o=[],s={};return e.forEach(a=>{if(!t.hasNode(a))throw new Error("Graph does not have node: "+a);i(a,r,s,o)}),o}function bh(t,e,n,r){for(var i=[[t,!1]];i.length>0;){var o=i.pop();o[1]?r.push(o[0]):n.hasOwnProperty(o[0])||(n[o[0]]=!0,i.push([o[0],!0]),Yi(e(o[0]),s=>i.push([s,!1])))}}function vh(t,e,n,r){for(var i=[t];i.length>0;){var o=i.pop();n.hasOwnProperty(o)||(n[o]=!0,r.push(o),Yi(e(o),s=>i.push(s)))}}function Yi(t,e){for(var n=t.length;n--;)e(t[n],n,t);return t}var xh=ji,Eh=kh;function kh(t,e){return xh(t,e,"post")}var Mh=ji,Nh=Ch;function Ch(t,e){return Mh(t,e,"pre")}var Th=Rn,Sh=Vi,Oh=Ph;function Ph(t,e){var n=new Th,r={},i=new Sh,o;function s(l){var h=l.v===o?l.w:l.v,u=i.priority(h);if(u!==void 0){var c=e(l);c0;){if(o=i.removeMin(),r.hasOwnProperty(o))n.setEdge(o,r[o]);else{if(a)throw new Error("Input graph is not connected: "+t);a=!0}t.nodeEdges(o).forEach(s)}return n}var Lh={components:Ju,dijkstra:Fi,dijkstraAll:ah,findCycles:ch,floydWarshall:dh,isAcyclic:wh,postorder:Eh,preorder:Nh,prim:Oh,tarjan:Wi,topsort:Gi},dr=Hu,ve={Graph:dr.Graph,json:Xu,alg:Lh,version:dr.version};let Ih=class{constructor(){let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,n=e._prev;if(n!==e)return pr(n),n}enqueue(e){let n=this._sentinel;e._prev&&e._next&&pr(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){let e=[],n=this._sentinel,r=n._prev;for(;r!==n;)e.push(JSON.stringify(r,Ah)),r=r._prev;return"["+e.join(", ")+"]"}};function pr(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function Ah(t,e){if(t!=="_next"&&t!=="_prev")return e}var Rh=Ih;let Dh=ve.Graph,Bh=Rh;var $h=Fh;let Vh=()=>1;function Fh(t,e){if(t.nodeCount()<=1)return[];let n=zh(t,e||Vh);return Wh(n.graph,n.buckets,n.zeroIdx).flatMap(i=>t.outEdges(i.v,i.w))}function Wh(t,e,n){let r=[],i=e[e.length-1],o=e[0],s;for(;t.nodeCount();){for(;s=o.dequeue();)nn(t,e,n,s);for(;s=i.dequeue();)nn(t,e,n,s);if(t.nodeCount()){for(let a=e.length-2;a>0;--a)if(s=e[a].dequeue(),s){r=r.concat(nn(t,e,n,s,!0));break}}}return r}function nn(t,e,n,r,i){let o=i?[]:void 0;return t.inEdges(r.v).forEach(s=>{let a=t.edge(s),l=t.node(s.v);i&&o.push({v:s.v,w:s.w}),l.out-=a,xn(e,n,l)}),t.outEdges(r.v).forEach(s=>{let a=t.edge(s),l=s.w,h=t.node(l);h.in-=a,xn(e,n,h)}),t.removeNode(r.v),o}function zh(t,e){let n=new Dh,r=0,i=0;t.nodes().forEach(a=>{n.setNode(a,{v:a,in:0,out:0})}),t.edges().forEach(a=>{let l=n.edge(a.v,a.w)||0,h=e(a),u=l+h;n.setEdge(a.v,a.w,u),i=Math.max(i,n.node(a.v).out+=h),r=Math.max(r,n.node(a.w).in+=h)});let o=Gh(i+r+3).map(()=>new Bh),s=r+1;return n.nodes().forEach(a=>{xn(o,s,n.node(a))}),{graph:n,buckets:o,zeroIdx:s}}function xn(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}function Gh(t){const e=[];for(let n=0;ne.setNode(n,t.node(n))),t.edges().forEach(n=>{let 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}function Yh(t){let e=new Hi({multigraph:t.isMultigraph()}).setGraph(t.graph());return t.nodes().forEach(n=>{t.children(n).length||e.setNode(n,t.node(n))}),t.edges().forEach(n=>{e.setEdge(n,t.edge(n))}),e}function Hh(t){let e=t.nodes().map(n=>{let r={};return t.outEdges(n).forEach(i=>{r[i.w]=(r[i.w]||0)+t.edge(i).weight}),r});return Dn(t.nodes(),e)}function qh(t){let e=t.nodes().map(n=>{let r={};return t.inEdges(n).forEach(i=>{r[i.v]=(r[i.v]||0)+t.edge(i).weight}),r});return Dn(t.nodes(),e)}function Xh(t,e){let n=t.x,r=t.y,i=e.x-n,o=e.y-r,s=t.width/2,a=t.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");let l,h;return Math.abs(o)*s>Math.abs(i)*a?(o<0&&(a=-a),l=a*i/o,h=a):(i<0&&(s=-s),l=s,h=s*o/i),{x:n+l,y:r+h}}function Uh(t){let e=Ki(Xi(t)+1).map(()=>[]);return t.nodes().forEach(n=>{let r=t.node(n),i=r.rank;i!==void 0&&(e[i][r.order]=n)}),e}function Kh(t){let e=Math.min(...t.nodes().map(n=>{let r=t.node(n).rank;return r===void 0?Number.MAX_VALUE:r}));t.nodes().forEach(n=>{let r=t.node(n);r.hasOwnProperty("rank")&&(r.rank-=e)})}function Zh(t){let e=Math.min(...t.nodes().map(o=>t.node(o).rank)),n=[];t.nodes().forEach(o=>{let s=t.node(o).rank-e;n[s]||(n[s]=[]),n[s].push(o)});let r=0,i=t.graph().nodeRankFactor;Array.from(n).forEach((o,s)=>{o===void 0&&s%i!==0?--r:o!==void 0&&r&&o.forEach(a=>t.node(a).rank+=r)})}function Qh(t,e,n,r){let i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),qi(t,"border",i,e)}function Xi(t){return Math.max(...t.nodes().map(e=>{let n=t.node(e).rank;return n===void 0?Number.MIN_VALUE:n}))}function Jh(t,e){let n={lhs:[],rhs:[]};return t.forEach(r=>{e(r)?n.lhs.push(r):n.rhs.push(r)}),n}function ec(t,e){let n=Date.now();try{return e()}finally{console.log(t+" time: "+(Date.now()-n)+"ms")}}function tc(t,e){return e()}let nc=0;function Ui(t){var e=++nc;return toString(t)+e}function Ki(t,e,n=1){e==null&&(e=t,t=0);let r=o=>oer[e]),Object.entries(t).reduce((r,[i,o])=>(r[i]=n(o,i),r),{})}function Dn(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}let oc=$h,sc=ee.uniqueId;var ac={run:lc,undo:hc};function lc(t){(t.graph().acyclicer==="greedy"?oc(t,n(t)):uc(t)).forEach(r=>{let i=t.edge(r);t.removeEdge(r),i.forwardName=r.name,i.reversed=!0,t.setEdge(r.w,r.v,i,sc("rev"))});function n(r){return i=>r.edge(i).weight}}function uc(t){let e=[],n={},r={};function i(o){r.hasOwnProperty(o)||(r[o]=!0,n[o]=!0,t.outEdges(o).forEach(s=>{n.hasOwnProperty(s.w)?e.push(s):i(s.w)}),delete n[o])}return t.nodes().forEach(i),e}function hc(t){t.edges().forEach(e=>{let n=t.edge(e);if(n.reversed){t.removeEdge(e);let r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})}let cc=ee;var fc={run:dc,undo:gc};function dc(t){t.graph().dummyChains=[],t.edges().forEach(e=>pc(t,e))}function pc(t,e){let n=e.v,r=t.node(n).rank,i=e.w,o=t.node(i).rank,s=e.name,a=t.edge(e),l=a.labelRank;if(o===r+1)return;t.removeEdge(e);let h,u,c;for(c=0,++r;r{let n=t.node(e),r=n.edgeLabel,i;for(t.setEdge(n.edgeObj,r);n.dummy;)i=t.successors(e)[0],t.removeNode(e),r.points.push({x:n.x,y:n.y}),n.dummy==="edge-label"&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),e=i,n=t.node(e)})}var Ut={longestPath:mc,slack:wc};function mc(t){var e={};function n(r){var i=t.node(r);if(e.hasOwnProperty(r))return i.rank;e[r]=!0;var o=Math.min(...t.outEdges(r).map(s=>s==null?Number.POSITIVE_INFINITY:n(s.w)-t.edge(s).minlen));return o===Number.POSITIVE_INFINITY&&(o=0),i.rank=o}t.sources().forEach(n)}function wc(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}var _c=ve.Graph,zt=Ut.slack,Zi=yc;function yc(t){var e=new _c({directed:!1}),n=t.nodes()[0],r=t.nodeCount();e.setNode(n,{});for(var i,o;bc(e,t){var o=i.v,s=r===o?i.w:o;!t.hasNode(s)&&!zt(e,i)&&(t.setNode(s,{}),t.setEdge(r,s,{}),n(s))})}return t.nodes().forEach(n),t.nodeCount()}function vc(t,e){return e.edges().reduce((r,i)=>{let o=Number.POSITIVE_INFINITY;return t.hasNode(i.v)!==t.hasNode(i.w)&&(o=zt(e,i)),oe.node(r).rank+=n)}var Ec=Zi,gr=Ut.slack,kc=Ut.longestPath,Mc=ve.alg.preorder,Nc=ve.alg.postorder,Cc=ee.simplify,Tc=Ye;Ye.initLowLimValues=$n;Ye.initCutValues=Bn;Ye.calcCutValue=Qi;Ye.leaveEdge=eo;Ye.enterEdge=to;Ye.exchangeEdges=no;function Ye(t){t=Cc(t),kc(t);var e=Ec(t);$n(e),Bn(e,t);for(var n,r;n=eo(e);)r=to(e,t,n),no(e,t,n,r)}function Bn(t,e){var n=Nc(t,t.nodes());n=n.slice(0,n.length-1),n.forEach(r=>Sc(t,e,r))}function Sc(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=Qi(t,e,n)}function Qi(t,e,n){var r=t.node(n),i=r.parent,o=!0,s=e.edge(n,i),a=0;return s||(o=!1,s=e.edge(i,n)),a=s.weight,e.nodeEdges(n).forEach(l=>{var h=l.v===n,u=h?l.w:l.v;if(u!==i){var c=h===o,f=e.edge(l).weight;if(a+=c?f:-f,Pc(t,n,u)){var d=t.edge(n,u).cutvalue;a+=c?-d:d}}}),a}function $n(t,e){arguments.length<2&&(e=t.nodes()[0]),Ji(t,{},1,e)}function Ji(t,e,n,r,i){var o=n,s=t.node(r);return e[r]=!0,t.neighbors(r).forEach(a=>{e.hasOwnProperty(a)||(n=Ji(t,e,n,a,r))}),s.low=o,s.lim=n++,i?s.parent=i:delete s.parent,n}function eo(t){return t.edges().find(e=>t.edge(e).cutvalue<0)}function to(t,e,n){var r=n.v,i=n.w;e.hasEdge(r,i)||(r=n.w,i=n.v);var o=t.node(r),s=t.node(i),a=o,l=!1;o.lim>s.lim&&(a=s,l=!0);var h=e.edges().filter(u=>l===mr(t,t.node(u.v),a)&&l!==mr(t,t.node(u.w),a));return h.reduce((u,c)=>gr(e,c)!e.node(i).parent),r=Mc(t,n);r=r.slice(1),r.forEach(i=>{var o=t.node(i).parent,s=e.edge(i,o),a=!1;s||(s=e.edge(o,i),a=!0),e.node(i).rank=e.node(o).rank+(a?s.minlen:-s.minlen)})}function Pc(t,e,n){return t.hasEdge(e,n)}function mr(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}var Lc=Ut,ro=Lc.longestPath,Ic=Zi,Ac=Tc,Rc=Dc;function Dc(t){switch(t.graph().ranker){case"network-simplex":wr(t);break;case"tight-tree":$c(t);break;case"longest-path":Bc(t);break;default:wr(t)}}var Bc=ro;function $c(t){ro(t),Ic(t)}function wr(t){Ac(t)}var Vc=Fc;function Fc(t){let e=zc(t);t.graph().dummyChains.forEach(n=>{let r=t.node(n),i=r.edgeObj,o=Wc(t,e,i.v,i.w),s=o.path,a=o.lca,l=0,h=s[l],u=!0;for(;n!==i.w;){if(r=t.node(n),u){for(;(h=s[l])!==a&&t.node(h).maxRanks||a>e[l].lim));for(h=l,l=r;(l=t.parent(l))!==h;)o.push(l);return{path:i.concat(o.reverse()),lca:h}}function zc(t){let e={},n=0;function r(i){let o=n;t.children(i).forEach(r),e[i]={low:o,lim:n++}}return t.children().forEach(r),e}let En=ee;var Gc={run:jc,cleanup:qc};function jc(t){let e=En.addDummyNode(t,"root",{},"_root"),n=Yc(t),r=Math.max(...Object.values(n))-1,i=2*r+1;t.graph().nestingRoot=e,t.edges().forEach(s=>t.edge(s).minlen*=i);let o=Hc(t)+1;t.children().forEach(s=>io(t,e,i,o,r,n,s)),t.graph().nodeRankFactor=i}function io(t,e,n,r,i,o,s){let a=t.children(s);if(!a.length){s!==e&&t.setEdge(e,s,{weight:0,minlen:n});return}let l=En.addBorderNode(t,"_bt"),h=En.addBorderNode(t,"_bb"),u=t.node(s);t.setParent(l,s),u.borderTop=l,t.setParent(h,s),u.borderBottom=h,a.forEach(c=>{io(t,e,n,r,i,o,c);let f=t.node(c),d=f.borderTop?f.borderTop:c,g=f.borderBottom?f.borderBottom:c,y=f.borderTop?r:2*r,T=d!==g?1:i-o[s]+1;t.setEdge(l,d,{weight:y,minlen:T,nestingEdge:!0}),t.setEdge(g,h,{weight:y,minlen:T,nestingEdge:!0})}),t.parent(s)||t.setEdge(e,l,{weight:0,minlen:i+o[s]})}function Yc(t){var e={};function n(r,i){var o=t.children(r);o&&o.length&&o.forEach(s=>n(s,i+1)),e[r]=i}return t.children().forEach(r=>n(r,1)),e}function Hc(t){return t.edges().reduce((e,n)=>e+t.edge(n).weight,0)}function qc(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,t.edges().forEach(n=>{var r=t.edge(n);r.nestingEdge&&t.removeEdge(n)})}let Xc=ee;var Uc=Kc;function Kc(t){function e(n){let r=t.children(n),i=t.node(n);if(r.length&&r.forEach(e),i.hasOwnProperty("minRank")){i.borderLeft=[],i.borderRight=[];for(let o=i.minRank,s=i.maxRank+1;oyr(t.node(e))),t.edges().forEach(e=>yr(t.edge(e)))}function yr(t){let e=t.width;t.width=t.height,t.height=e}function ef(t){t.nodes().forEach(e=>rn(t.node(e))),t.edges().forEach(e=>{let n=t.edge(e);n.points.forEach(rn),n.hasOwnProperty("y")&&rn(n)})}function rn(t){t.y=-t.y}function tf(t){t.nodes().forEach(e=>on(t.node(e))),t.edges().forEach(e=>{let n=t.edge(e);n.points.forEach(on),n.hasOwnProperty("x")&&on(n)})}function on(t){let e=t.x;t.x=t.y,t.y=e}let nf=ee;var rf=of;function of(t){let e={},n=t.nodes().filter(a=>!t.children(a).length),r=Math.max(...n.map(a=>t.node(a).rank)),i=nf.range(r+1).map(()=>[]);function o(a){if(e[a])return;e[a]=!0;let l=t.node(a);i[l.rank].push(a),t.successors(a).forEach(o)}return n.sort((a,l)=>t.node(a).rank-t.node(l).rank).forEach(o),i}let sf=ee.zipObject;var af=lf;function lf(t,e){let n=0;for(let r=1;ru)),i=e.flatMap(h=>t.outEdges(h).map(u=>({pos:r[u.w],weight:t.edge(u).weight})).sort((u,c)=>u.pos-c.pos)),o=1;for(;o{let u=h.pos+o;a[u]+=h.weight;let c=0;for(;u>0;)u%2&&(c+=a[u+1]),u=u-1>>1,a[u]+=h.weight;l+=h.weight*c}),l}var hf=cf;function cf(t,e=[]){return e.map(n=>{let r=t.inEdges(n);if(r.length){let i=r.reduce((o,s)=>{let a=t.edge(s),l=t.node(s.v);return{sum:o.sum+a.weight*l.order,weight:o.weight+a.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:n}})}let ff=ee;var df=pf;function pf(t,e){let n={};t.forEach((i,o)=>{let s=n[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};i.barycenter!==void 0&&(s.barycenter=i.barycenter,s.weight=i.weight)}),e.edges().forEach(i=>{let o=n[i.v],s=n[i.w];o!==void 0&&s!==void 0&&(s.indegree++,o.out.push(n[i.w]))});let r=Object.values(n).filter(i=>!i.indegree);return gf(r)}function gf(t){let e=[];function n(i){return o=>{o.merged||(o.barycenter===void 0||i.barycenter===void 0||o.barycenter>=i.barycenter)&&mf(i,o)}}function r(i){return o=>{o.in.push(i),--o.indegree===0&&t.push(o)}}for(;t.length;){let i=t.pop();e.push(i),i.in.reverse().forEach(n(i)),i.out.forEach(r(i))}return e.filter(i=>!i.merged).map(i=>ff.pick(i,["vs","i","barycenter","weight"]))}function mf(t,e){let 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}let wf=ee;var _f=yf;function yf(t,e){let n=wf.partition(t,u=>u.hasOwnProperty("barycenter")),r=n.lhs,i=n.rhs.sort((u,c)=>c.i-u.i),o=[],s=0,a=0,l=0;r.sort(bf(!!e)),l=br(o,i,l),r.forEach(u=>{l+=u.vs.length,o.push(u.vs),s+=u.barycenter*u.weight,a+=u.weight,l=br(o,i,l)});let h={vs:o.flat(!0)};return a&&(h.barycenter=s/a,h.weight=a),h}function br(t,e,n){let r;for(;e.length&&(r=e[e.length-1]).i<=n;)e.pop(),t.push(r.vs),n++;return n}function bf(t){return(e,n)=>e.barycentern.barycenter?1:t?n.i-e.i:e.i-n.i}let vf=hf,xf=df,Ef=_f;var kf=so;function so(t,e,n,r){let i=t.children(e),o=t.node(e),s=o?o.borderLeft:void 0,a=o?o.borderRight:void 0,l={};s&&(i=i.filter(f=>f!==s&&f!==a));let h=vf(t,i);h.forEach(f=>{if(t.children(f.v).length){let d=so(t,f.v,n,r);l[f.v]=d,d.hasOwnProperty("barycenter")&&Nf(f,d)}});let u=xf(h,n);Mf(u,l);let c=Ef(u,r);if(s&&(c.vs=[s,c.vs,a].flat(!0),t.predecessors(s).length)){let f=t.node(t.predecessors(s)[0]),d=t.node(t.predecessors(a)[0]);c.hasOwnProperty("barycenter")||(c.barycenter=0,c.weight=0),c.barycenter=(c.barycenter*c.weight+f.order+d.order)/(c.weight+2),c.weight+=2}return c}function Mf(t,e){t.forEach(n=>{n.vs=n.vs.flatMap(r=>e[r]?e[r].vs:r)})}function Nf(t,e){t.barycenter!==void 0?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight)}let Cf=ve.Graph,Tf=ee;var Sf=Of;function Of(t,e,n){let r=Pf(t),i=new Cf({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(o=>t.node(o));return t.nodes().forEach(o=>{let s=t.node(o),a=t.parent(o);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(i.setNode(o),i.setParent(o,a||r),t[n](o).forEach(l=>{let h=l.v===o?l.w:l.v,u=i.edge(h,o),c=u!==void 0?u.weight:0;i.setEdge(h,o,{weight:t.edge(l).weight+c})}),s.hasOwnProperty("minRank")&&i.setNode(o,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),i}function Pf(t){for(var e;t.hasNode(e=Tf.uniqueId("_root")););return e}var Lf=If;function If(t,e,n){let r={},i;n.forEach(o=>{let s=t.parent(o),a,l;for(;s;){if(a=t.parent(s),a?(l=r[a],r[a]=s):(l=i,i=s),l&&l!==s){e.setEdge(l,s);return}s=a}})}let Af=rf,Rf=af,Df=kf,Bf=Sf,$f=Lf,Vf=ve.Graph,Ct=ee;var Ff=ao;function ao(t,e){if(e&&typeof e.customOrder=="function"){e.customOrder(t,ao);return}let n=Ct.maxRank(t),r=vr(t,Ct.range(1,n+1),"inEdges"),i=vr(t,Ct.range(n-1,-1,-1),"outEdges"),o=Af(t);if(xr(t,o),e&&e.disableOptimalOrderHeuristic)return;let s=Number.POSITIVE_INFINITY,a;for(let l=0,h=0;h<4;++l,++h){Wf(l%2?r:i,l%4>=2),o=Ct.buildLayerMatrix(t);let u=Rf(t,o);ur.node(s).order=a),$f(r,n,o.vs)})}function xr(t,e){Object.values(e).forEach(n=>n.forEach((r,i)=>t.node(r).order=i))}let zf=ve.Graph,wt=ee;var Gf={positionX:Hf,findType1Conflicts:lo,findType2Conflicts:uo,addConflict:Vn,hasConflict:ho,verticalAlignment:co,horizontalCompaction:fo,alignCoordinates:go,findSmallestWidthAlignment:po,balance:mo};function lo(t,e){let n={};function r(i,o){let s=0,a=0,l=i.length,h=o[o.length-1];return o.forEach((u,c)=>{let f=jf(t,u),d=f?t.node(f).order:l;(f||u===h)&&(o.slice(a,c+1).forEach(g=>{t.predecessors(g).forEach(y=>{let T=t.node(y),S=T.order;(S{u=o[c],t.node(u).dummy&&t.predecessors(u).forEach(f=>{let d=t.node(f);d.dummy&&(d.orderh)&&Vn(n,f,u)})})}function i(o,s){let a=-1,l,h=0;return s.forEach((u,c)=>{if(t.node(u).dummy==="border"){let f=t.predecessors(u);f.length&&(l=t.node(f[0]).order,r(s,h,c,a,l),h=c,a=l)}r(s,h,s.length,l,o.length)}),s}return e.length&&e.reduce(i),n}function jf(t,e){if(t.node(e).dummy)return t.predecessors(e).find(n=>t.node(n).dummy)}function Vn(t,e,n){if(e>n){let i=e;e=n,n=i}let r=t[e];r||(t[e]=r={}),r[n]=!0}function ho(t,e,n){if(e>n){let r=e;e=n,n=r}return!!t[e]&&t[e].hasOwnProperty(n)}function co(t,e,n,r){let i={},o={},s={};return e.forEach(a=>{a.forEach((l,h)=>{i[l]=l,o[l]=l,s[l]=h})}),e.forEach(a=>{let l=-1;a.forEach(h=>{let u=r(h);if(u.length){u=u.sort((f,d)=>s[f]-s[d]);let c=(u.length-1)/2;for(let f=Math.floor(c),d=Math.ceil(c);f<=d;++f){let g=u[f];o[h]===h&&lMath.max(f,o[d.v]+s.edge(d)),0)}function u(c){let f=s.outEdges(c).reduce((g,y)=>Math.min(g,o[y.w]-s.edge(y)),Number.POSITIVE_INFINITY),d=t.node(c);f!==Number.POSITIVE_INFINITY&&d.borderType!==a&&(o[c]=Math.max(o[c],f))}return l(h,s.predecessors.bind(s)),l(u,s.successors.bind(s)),Object.keys(r).forEach(c=>o[c]=o[n[c]]),o}function Yf(t,e,n,r){let i=new zf,o=t.graph(),s=qf(o.nodesep,o.edgesep,r);return e.forEach(a=>{let l;a.forEach(h=>{let u=n[h];if(i.setNode(u),l){var c=n[l],f=i.edge(c,u);i.setEdge(c,u,Math.max(s(t,h,l),f||0))}l=h})}),i}function po(t,e){return Object.values(e).reduce((n,r)=>{let i=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;Object.entries(r).forEach(([a,l])=>{let h=Xf(t,a)/2;i=Math.max(l+h,i),o=Math.min(l-h,o)});const s=i-o;return s{["l","r"].forEach(s=>{let a=o+s,l=t[a];if(l===e)return;let h=Object.values(l),u=r-Math.min(...h);s!=="l"&&(u=i-Math.max(...h)),u&&(t[a]=wt.mapValues(l,c=>c+u))})})}function mo(t,e){return wt.mapValues(t.ul,(n,r)=>{if(e)return t[e.toLowerCase()][r];{let i=Object.values(t).map(o=>o[r]).sort((o,s)=>o-s);return(i[1]+i[2])/2}})}function Hf(t){let e=wt.buildLayerMatrix(t),n=Object.assign(lo(t,e),uo(t,e)),r={},i;["u","d"].forEach(s=>{i=s==="u"?e:Object.values(e).reverse(),["l","r"].forEach(a=>{a==="r"&&(i=i.map(c=>Object.values(c).reverse()));let l=(s==="u"?t.predecessors:t.successors).bind(t),h=co(t,i,n,l),u=fo(t,i,h.root,h.align,a==="r");a==="r"&&(u=wt.mapValues(u,c=>-c)),r[s+a]=u})});let o=po(t,r);return go(r,o),mo(r,t.graph().align)}function qf(t,e,n){return(r,i,o)=>{let s=r.node(i),a=r.node(o),l=0,h;if(l+=s.width/2,s.hasOwnProperty("labelpos"))switch(s.labelpos.toLowerCase()){case"l":h=-s.width/2;break;case"r":h=s.width/2;break}if(h&&(l+=n?h:-h),h=0,l+=(s.dummy?e:t)/2,l+=(a.dummy?e:t)/2,l+=a.width/2,a.hasOwnProperty("labelpos"))switch(a.labelpos.toLowerCase()){case"l":h=a.width/2;break;case"r":h=-a.width/2;break}return h&&(l+=n?h:-h),h=0,l}}function Xf(t,e){return t.node(e).width}let wo=ee,Uf=Gf.positionX;var Kf=Zf;function Zf(t){t=wo.asNonCompoundGraph(t),Qf(t),Object.entries(Uf(t)).forEach(([e,n])=>t.node(e).x=n)}function Qf(t){let e=wo.buildLayerMatrix(t),n=t.graph().ranksep,r=0;e.forEach(i=>{const o=i.reduce((s,a)=>{const l=t.node(a).height;return s>l?s:l},0);i.forEach(s=>t.node(s).y=r+o/2),r+=o+n})}let Er=ac,kr=fc,Jf=Rc,ed=ee.normalizeRanks,td=Vc,nd=ee.removeEmptyRanks,Mr=Gc,rd=Uc,Nr=Zc,id=Ff,od=Kf,me=ee,sd=ve.Graph;var ad=ld;function ld(t,e){let n=e&&e.debugTiming?me.time:me.notime;n("layout",()=>{let r=n(" buildLayoutGraph",()=>_d(t));n(" runLayout",()=>ud(r,n)),n(" updateInputGraph",()=>hd(t,r))})}function ud(t,e){e(" makeSpaceForEdgeLabels",()=>yd(t)),e(" removeSelfEdges",()=>Td(t)),e(" acyclic",()=>Er.run(t)),e(" nestingGraph.run",()=>Mr.run(t)),e(" rank",()=>Jf(me.asNonCompoundGraph(t))),e(" injectEdgeLabelProxies",()=>bd(t)),e(" removeEmptyRanks",()=>nd(t)),e(" nestingGraph.cleanup",()=>Mr.cleanup(t)),e(" normalizeRanks",()=>ed(t)),e(" assignRankMinMax",()=>vd(t)),e(" removeEdgeLabelProxies",()=>xd(t)),e(" normalize.run",()=>kr.run(t)),e(" parentDummyChains",()=>td(t)),e(" addBorderSegments",()=>rd(t)),e(" order",()=>id(t)),e(" insertSelfEdges",()=>Sd(t)),e(" adjustCoordinateSystem",()=>Nr.adjust(t)),e(" position",()=>od(t)),e(" positionSelfEdges",()=>Od(t)),e(" removeBorderNodes",()=>Cd(t)),e(" normalize.undo",()=>kr.undo(t)),e(" fixupEdgeLabelCoords",()=>Md(t)),e(" undoCoordinateSystem",()=>Nr.undo(t)),e(" translateGraph",()=>Ed(t)),e(" assignNodeIntersects",()=>kd(t)),e(" reversePoints",()=>Nd(t)),e(" acyclic.undo",()=>Er.undo(t))}function hd(t,e){t.nodes().forEach(n=>{let r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,r.rank=i.rank,e.children(n).length&&(r.width=i.width,r.height=i.height))}),t.edges().forEach(n=>{let r=t.edge(n),i=e.edge(n);r.points=i.points,i.hasOwnProperty("x")&&(r.x=i.x,r.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}let cd=["nodesep","edgesep","ranksep","marginx","marginy"],fd={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},dd=["acyclicer","ranker","rankdir","align"],pd=["width","height"],Cr={width:0,height:0},gd=["minlen","weight","width","height","labeloffset"],md={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},wd=["labelpos"];function _d(t){let e=new sd({multigraph:!0,compound:!0}),n=an(t.graph());return e.setGraph(Object.assign({},fd,sn(n,cd),me.pick(n,dd))),t.nodes().forEach(r=>{let i=an(t.node(r));const o=sn(i,pd);Object.keys(Cr).forEach(s=>{o[s]===void 0&&(o[s]=Cr[s])}),e.setNode(r,o),e.setParent(r,t.parent(r))}),t.edges().forEach(r=>{let i=an(t.edge(r));e.setEdge(r,Object.assign({},md,sn(i,gd),me.pick(i,wd)))}),e}function yd(t){let e=t.graph();e.ranksep/=2,t.edges().forEach(n=>{let r=t.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function bd(t){t.edges().forEach(e=>{let n=t.edge(e);if(n.width&&n.height){let r=t.node(e.v),o={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e};me.addDummyNode(t,"edge-proxy",o,"_ep")}})}function vd(t){let e=0;t.nodes().forEach(n=>{let r=t.node(n);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,e=Math.max(e,r.maxRank))}),t.graph().maxRank=e}function xd(t){t.nodes().forEach(e=>{let n=t.node(e);n.dummy==="edge-proxy"&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}function Ed(t){let e=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,i=0,o=t.graph(),s=o.marginx||0,a=o.marginy||0;function l(h){let u=h.x,c=h.y,f=h.width,d=h.height;e=Math.min(e,u-f/2),n=Math.max(n,u+f/2),r=Math.min(r,c-d/2),i=Math.max(i,c+d/2)}t.nodes().forEach(h=>l(t.node(h))),t.edges().forEach(h=>{let u=t.edge(h);u.hasOwnProperty("x")&&l(u)}),e-=s,r-=a,t.nodes().forEach(h=>{let u=t.node(h);u.x-=e,u.y-=r}),t.edges().forEach(h=>{let u=t.edge(h);u.points.forEach(c=>{c.x-=e,c.y-=r}),u.hasOwnProperty("x")&&(u.x-=e),u.hasOwnProperty("y")&&(u.y-=r)}),o.width=n-e+s,o.height=i-r+a}function kd(t){t.edges().forEach(e=>{let n=t.edge(e),r=t.node(e.v),i=t.node(e.w),o,s;n.points?(o=n.points[0],s=n.points[n.points.length-1]):(n.points=[],o=i,s=r),n.points.unshift(me.intersectRect(r,o)),n.points.push(me.intersectRect(i,s))})}function Md(t){t.edges().forEach(e=>{let n=t.edge(e);if(n.hasOwnProperty("x"))switch((n.labelpos==="l"||n.labelpos==="r")&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}})}function Nd(t){t.edges().forEach(e=>{let n=t.edge(e);n.reversed&&n.points.reverse()})}function Cd(t){t.nodes().forEach(e=>{if(t.children(e).length){let n=t.node(e),r=t.node(n.borderTop),i=t.node(n.borderBottom),o=t.node(n.borderLeft[n.borderLeft.length-1]),s=t.node(n.borderRight[n.borderRight.length-1]);n.width=Math.abs(s.x-o.x),n.height=Math.abs(i.y-r.y),n.x=o.x+n.width/2,n.y=r.y+n.height/2}}),t.nodes().forEach(e=>{t.node(e).dummy==="border"&&t.removeNode(e)})}function Td(t){t.edges().forEach(e=>{if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}function Sd(t){var e=me.buildLayerMatrix(t);e.forEach(n=>{var r=0;n.forEach((i,o)=>{var s=t.node(i);s.order=o+r,(s.selfEdges||[]).forEach(a=>{me.addDummyNode(t,"selfedge",{width:a.label.width,height:a.label.height,rank:s.rank,order:o+ ++r,e:a.e,label:a.label},"_se")}),delete s.selfEdges})})}function Od(t){t.nodes().forEach(e=>{var n=t.node(e);if(n.dummy==="selfedge"){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}})}function sn(t,e){return me.mapValues(me.pick(t,e),Number)}function an(t){var e={};return t&&Object.entries(t).forEach(([n,r])=>{typeof n=="string"&&(n=n.toLowerCase()),e[n]=r}),e}let Pd=ee,Ld=ve.Graph;var Id={debugOrdering:Ad};function Ad(t){let e=Pd.buildLayerMatrix(t),n=new Ld({compound:!0,multigraph:!0}).setGraph({});return t.nodes().forEach(r=>{n.setNode(r,{label:r}),n.setParent(r,"layer"+t.node(r).rank)}),t.edges().forEach(r=>n.setEdge(r.v,r.w,{},r.name)),e.forEach((r,i)=>{let o="layer"+i;n.setNode(o,{rank:"same"}),r.reduce((s,a)=>(n.setEdge(s,a,{style:"invis"}),a))}),n}var Rd="1.1.2",Rt={graphlib:ve,layout:ad,debug:Id,util:{time:ee.time,notime:ee.notime},version:Rd};const Tr=Wu(Rt);class Dd{compute(e,n){const r=new Tr.graphlib.Graph;r.setGraph({}),r.setDefaultEdgeLabel(()=>({})),r.setDefaultNodeLabel(()=>({}));const i=new Map,o=new Map,s=new Map,a=new Map,l=b=>{const w=e.childrenT(b);if(w.length===0){const m=e.node(b).build(),{width:_,height:k}=m.boundingBox();r.setNode(b,{width:_,height:k}),i.set(b,m)}else{if(!n.has(b)&&b!==e.root()){const m=e.node(b);s.set(b,{boundingBox:{},name:m.humanReadable()||b})}for(const m of w)if(n.has(m))for(const _ of e.hierarchyPreorder(m)){const k=e.node(m).build();a.set(_,m);const{width:C,height:A}=k.boundingBox();r.setNode(m,{width:C,height:A}),o.set(m,k)}else l(m)}};l(e.root());for(const{v:b,w}of e.edges()){const m=a.get(b)||b,_=a.get(w)||w;m!==_&&r.setEdge(m,_)}const h=performance.now();Tr.layout(r);const u=performance.now(),{width:c,height:f}=r.graph(),d=new q(0,0,c,f);for(const[b,w]of i.entries()){const{x:m,y:_,width:k,height:C}=r.node(b);w.moveTo(m-k/2,_-C/2)}for(const[b,w]of o.entries()){const{x:m,y:_,width:k,height:C}=r.node(b);w.moveTo(m-k/2,_-C/2)}const g=20;for(const b of e.hierarchyPostorder()){const w=s.get(b);if(w!==void 0){const m=e.childrenT(b).reduce((_,k)=>{const C=i.get(k)?.boundingBox();C!==void 0&&_.push(C);const A=o.get(k)?.boundingBox();A!==void 0&&_.push(A);const W=s.get(k)?.boundingBox;if(W!==void 0&&k!==b){const X=2*-g+10,K=q.fromCenterAndDimension(W.center,W.width+X,W.height+X);_.push(K)}return _},[]);w.boundingBox=q.fromUnion(...m).padded(g)}}const y=r.edges().map(b=>{const{points:w}=r.edge(b);return[{from:b.v,to:b.w},new xu(w)]}).map(([b,w])=>w),T={layoutTimeMs:u-h},S=new Eu(...y);return{nodes:i,collapsed:o,expanded:s,edges:S,boundingBox:d.union(S.boundingBox()),stats:T}}}class _o extends Rt.graphlib.Graph{constructor(e){super({compound:!0}),e!==void 0?Object.assign(this,e):(this.setGraph({}),this.setDefaultEdgeLabel(()=>({})))}setNodeWithParent(e,n,r){this.setNode(e,n),this.setParent(e,r)}parents(e){const n=[];let r=this.parent(e);for(;r!==void 0;)n.push(r),r=this.parent(r);return n}hierarchyPreorder(e){const n=[],r=e!==void 0?e:this.root(),i=o=>{n.push(o);for(const s of this.childrenT(o))i(s)};for(const o of this.childrenT(r))i(o);return n}hierarchyPostorder(e){const n=[],r=e!==void 0?e:this.root(),i=o=>{for(const s of this.childrenT(o))i(s);n.push(o)};for(const o of this.childrenT(r))i(o);return n}childrenT(e){return this.children(e)}parent(e){return super.parent(e)}nodes(){return super.nodes()}modules(){return this.nodes().filter(e=>this.childrenT(e).length>0)}edges(){return super.edges()}root(){return"\0"}toJson(){return Rt.graphlib.json.write(this)}static readJson(e){return new _o(Rt.graphlib.json.read(e))}}function Bd(t,e,n,r){const i=new Set,o=new Set;if(r.expand)for(const a of e)for(const l of t.parents(a))n.has(l)?o.add(l):i.add(l);const s=new Set;if(r.collapseOthers)for(const a of t.modules())!o.has(a)&&!n.has(a)&&!i.has(a)&&s.add(a);return{collapse:s,expand:o}}function $d(t,e){const n=r=>e.has(r)||t.childrenT(r).length===0?1:t.childrenT(r).reduce((i,o)=>i+n(o),0);return t.childrenT(t.root()).reduce((r,i)=>r+n(i),0)}function Vd(t){let e;return{c(){e=V("path"),this.h()},l(n){e=F(n,"path",{d:!0,transform:!0,fill:!0,stroke:!0}),L(e).forEach(E),this.h()},h(){p(e,"d","M20.441,59.9614212 C21.0957895,59.9614212 22.7266842,56.6764211 22.7266842,52.7482369 L22.7266842,38.6593685 L18.182579,38.6593685 L18.182579,52.7482369 C18.182579,56.6764211 19.8134737,59.9614212 20.441,59.9614212 Z M4.26163159,40.7638948 L36.6204211,40.7638948 C38.9460001,40.7638948 40.4145264,39.317579 40.4145264,37.1453685 C40.4145264,29.5821053 31.9740001,21.9558421 20.441,21.9558421 C8.93526317,21.9558421 0.494736843,29.5821053 0.494736843,37.1453685 C0.494736843,39.317579 1.96884211,40.7638948 4.26163159,40.7638948 Z M5.2911579,36.8756316 C4.71700001,36.8756316 4.4541579,36.5583159 4.56310527,35.8480001 C5.1023158,31.2280527 11.0429474,25.7078948 20.441,25.7078948 C29.8718948,25.7078948 35.7796843,31.2280527 36.346158,35.8480001 C36.4551053,36.5583159 36.1650001,36.8756316 35.5908948,36.8756316 L5.2911579,36.8756316 Z M3.74989474,2.76857895 C3.74989474,3.55452632 4.0611579,4.40605264 4.72705264,5.26868422 C6.03868422,7.0183158 9.13778949,9.44489475 12.3810527,11.5798421 L11.4523158,25.1263685 L15.5584737,25.1263685 L16.4983158,9.67205265 C16.5311053,9.30078949 16.4711053,9.17515791 16.2254211,9.04952633 C12.3641579,7.09368422 9.37084212,4.73952632 9.18573686,4.22889474 C8.96778949,3.90094737 9.18626317,3.66589474 9.48189475,3.66589474 L31.4273685,3.66589474 C31.7013158,3.66589474 31.9142106,3.90094737 31.7291053,4.22889474 C31.5112106,4.73952632 28.5451053,7.09368422 24.6621579,9.04952633 C24.4437369,9.17515791 24.3836843,9.30078949 24.4164737,9.67205265 L25.3563685,25.1263685 L29.4569474,25.1263685 L28.501,11.5798421 C31.7497895,9.44489475 34.8488948,7.0183158 36.1605264,5.26868422 C36.8481053,4.40605264 37.1593685,3.55452632 37.1593685,2.76857895 C37.1593685,1.20726316 35.9421053,0.0500000001 34.1512632,0.0500000001 L6.75800001,0.0500000001 C4.93989475,0.0500000001 3.74989474,1.20726316 3.74989474,2.76857895 Z"),p(e,"transform","translate(11.737 2)"),p(e,"fill",t[0]),p(e,"stroke",t[1])},m(n,r){I(n,e,r)},p(n,[r]){r&1&&p(e,"fill",n[0]),r&2&&p(e,"stroke",n[1])},i:Y,o:Y,d(n){n&&E(e)}}}function Fd(t,e,n){let{fill:r="white"}=e,{stroke:i="white"}=e;return t.$$set=o=>{"fill"in o&&n(0,r=o.fill),"stroke"in o&&n(1,i=o.stroke)},[r,i]}class Wd extends ae{constructor(e){super(),le(this,e,Fd,Vd,se,{fill:0,stroke:1})}}function zd(t){let e,n,r,i,o,s,a,l,h,u,c,f,d;const g=[{self:t[0].content}];var y=t[0].content.drawable();function T(S,b){let w={};for(let m=0;m{J(w,1)}),fe()}y?(n=Qe(y,T(S,b)),Z(n.$$.fragment),P(n.$$.fragment,1),Q(n,e,r)):n=null}else if(y){const w=b&1?Je(g,[{self:S[0].content}]):{};n.$set(w)}(!c||b&2&&o!==(o=S[1]==="pinned"?"orange":"rgb(51,51,51)"))&&p(i,"fill",o),(!c||b&4&&u!==(u=`translate(${S[2].width+S[6].x},${-S[6].y})`))&&p(r,"transform",u)},i(S){c||(n&&P(n.$$.fragment,S),P(h.$$.fragment,S),c=!0)},o(S){n&&D(n.$$.fragment,S),D(h.$$.fragment,S),c=!1},d(S){S&&E(e),n&&J(n),J(h),f=!1,Gt(d)}}}function Gd(t,e,n){let r,{nodeId:i}=e,{tooltip:o}=e,{state:s}=e;const a=nt();function l(f){f.stopPropagation(),a("togglePin",{nodeId:i})}function h(f){a("nodeEnter",{...f,nodeId:i})}function u(f){a("nodeLeave",{...f,nodeId:i})}const c={x:1,y:1};return t.$$set=f=>{"nodeId"in f&&n(7,i=f.nodeId),"tooltip"in f&&n(0,o=f.tooltip),"state"in f&&n(1,s=f.state)},t.$$.update=()=>{t.$$.dirty&1&&n(2,r=o.boundingBox())},[o,s,r,l,h,u,c,i]}class jd extends ae{constructor(e){super(),le(this,e,Gd,zd,se,{nodeId:7,tooltip:0,state:1})}}const yo=300;function Yd(t,e,n){function r(){t.update(i=>(i.set(e,{tooltip:n,state:"active"}),i))}return window.setTimeout(r,yo)}function bo(t,e){t.update(n=>{const r=n.get(e);return r!==void 0&&r.state!=="pinned"&&(r.state!=="active"&&window.clearTimeout(r.state),n.set(e,{...r,state:"active"})),n})}function vo(t,e){function n(){t.update(r=>(r.delete(e),r))}t.update(r=>{const i=r.get(e);return i!==void 0&&i.state!=="pinned"&&r.set(e,{...i,state:window.setTimeout(n,yo)}),r})}function Hd(t,e){t.update(n=>{const r=n.get(e);return r!==void 0&&(r.state==="pinned"?n.set(e,{...r,state:"active"}):n.set(e,{...r,state:"pinned"})),n})}function Sr(t,e,n){const r=t.slice();return r[9]=e[n][0],r[10]=e[n][1].position,r[11]=e[n][1].tooltip,r[12]=e[n][1].state,r}function Or(t,e){let n,r,i,o;return r=new jd({props:{nodeId:e[9],tooltip:e[11],state:e[12]}}),r.$on("mouseenter",e[2]),r.$on("mouseleave",e[3]),r.$on("togglePin",e[4]),r.$on("nodeEnter",e[7]),r.$on("nodeLeave",e[8]),{key:t,first:null,c(){n=V("g"),Z(r.$$.fragment),this.h()},l(s){n=F(s,"g",{transform:!0});var a=L(n);oe(r.$$.fragment,a),a.forEach(E),this.h()},h(){p(n,"transform",i=`translate(${e[10].x},${e[10].y})`),this.first=n},m(s,a){I(s,n,a),Q(r,n,null),o=!0},p(s,a){e=s;const l={};a&1&&(l.nodeId=e[9]),a&1&&(l.tooltip=e[11]),a&1&&(l.state=e[12]),r.$set(l),(!o||a&1&&i!==(i=`translate(${e[10].x},${e[10].y})`))&&p(n,"transform",i)},i(s){o||(P(r.$$.fragment,s),o=!0)},o(s){D(r.$$.fragment,s),o=!1},d(s){s&&E(n),J(r)}}}function qd(t){let e=[],n=new Map,r,i,o=ge(t[0]);const s=a=>a[9];for(let a=0;an(6,i=f));let{nodeLayouts:s}=e;function a(f){bo(o,f.detail.nodeId)}function l(f){vo(o,f.detail.nodeId)}function h(f){Hd(o,f.detail.nodeId)}function u(f){ue.call(this,t,f)}function c(f){ue.call(this,t,f)}return t.$$set=f=>{"nodeLayouts"in f&&n(5,s=f.nodeLayouts)},t.$$.update=()=>{t.$$.dirty&96&&n(0,r=[...i.entries()].filter(([f])=>s.has(f)).map(([f,{tooltip:d,state:g}])=>{const y=s.get(f)?.boundingBox(),T=gu(y,d.boundingBox(),d.options.anchor,Xd);return[f,{position:T,tooltip:d,state:g}]}))},[r,o,a,l,h,s,i,u,c]}class Kd extends ae{constructor(e){super(),le(this,e,Ud,qd,se,{nodeLayouts:5})}}function Zd(t){let e,n,r,i,o,s,a,l,h;return{c(){e=V("g"),n=V("rect"),o=V("text"),s=Ae(t[0]),this.h()},l(u){e=F(u,"g",{class:!0,transform:!0});var c=L(e);n=F(c,"rect",{width:!0,height:!0,fill:!0,stroke:!0,"stroke-width":!0,rx:!0,class:!0}),L(n).forEach(E),o=F(c,"text",{y:!0,"font-family":!0,class:!0});var f=L(o);s=Re(f,t[0]),f.forEach(E),c.forEach(E),this.h()},h(){p(n,"width",r=t[1].width),p(n,"height",i=t[1].height),p(n,"fill","rgb(250,250,250)"),p(n,"stroke","rgb(134, 134, 139)"),p(n,"stroke-width","1"),p(n,"rx","6"),p(n,"class","svelte-76qmi8"),p(o,"y","-2"),p(o,"font-family",jt.family),p(o,"class","svelte-76qmi8"),p(e,"class","expand svelte-76qmi8"),p(e,"transform",a=`translate(${t[1].xMin},${t[1].yMin})`)},m(u,c){I(u,e,c),B(e,n),B(e,o),B(o,s),l||(h=[H(e,"click",t[5]),H(e,"dblclick",t[6]),H(e,"mouseenter",t[2]),H(e,"mouseleave",t[3])],l=!0)},p(u,[c]){c&2&&r!==(r=u[1].width)&&p(n,"width",r),c&2&&i!==(i=u[1].height)&&p(n,"height",i),c&1&&_t(s,u[0]),c&2&&a!==(a=`translate(${u[1].xMin},${u[1].yMin})`)&&p(e,"transform",a)},i:Y,o:Y,d(u){u&&E(e),l=!1,Gt(h)}}}function Qd(t,e,n){const r=nt();let{nodeId:i}=e,{name:o}=e,{boundingBox:s}=e;function a(){r("nodeEnter",{nodeId:i})}function l(){r("nodeLeave",{nodeId:i})}function h(c){ue.call(this,t,c)}function u(c){ue.call(this,t,c)}return t.$$set=c=>{"nodeId"in c&&n(4,i=c.nodeId),"name"in c&&n(0,o=c.name),"boundingBox"in c&&n(1,s=c.boundingBox)},[o,s,a,l,i,h,u]}class Jd extends ae{constructor(e){super(),le(this,e,Qd,Zd,se,{nodeId:4,name:0,boundingBox:1})}}class Fn{constructor(e,n,r={x:0,y:0},i=1){this.width=e,this.height=n,this.cameraPos=r,this.cameraScale=i}viewToWorld(){return un.identity().translate(this.cameraPos.x,this.cameraPos.y)}worldToView(){return this.viewToWorld().inverse()}screenToView(){return un.identity().scale(1/this.cameraScale).translate(-this.width/2,-this.height/2)}viewToScreen(){return this.screenToView().inverse()}worldToScreen(){const e=this.worldToView();return this.viewToScreen().scale(e.k).translate(e.x,e.y)}screenToWorld(){return this.worldToScreen().inverse()}screenWidth(){return this.width}screenHeight(){return this.height}moveBy(e,n){this.cameraPos.x+=e,this.cameraPos.y+=n}moveTo(e,n){this.cameraPos.x=e,this.cameraPos.y=n}resize(e,n){this.width=e,this.height=n}center(){return this.cameraPos}scale(){return this.cameraScale}scaleBy(e){this.cameraScale*=e}scaleTo(e){this.cameraScale=e}fit(e){const{x:n,y:r}=e.center;this.moveTo(n,r);const i=Math.min(this.width/e.width,this.height/e.height);this.scaleTo(i||1)}world(){const e=this.screenToWorld().apply(0,0),n=this.screenToWorld().apply(this.width,this.height);return new q(e.x,e.y,n.x,n.y)}viewBox(){const e=this.world();return`${e.xMin} ${e.yMin} ${e.width} ${e.height}`}}class ep{constructor(e){this.viewport=e}scaleMin=Number.MIN_VALUE;scaleMax=Number.MAX_VALUE;boundingBox=q.infinity();setViewport(e){this.viewport=e}setScaleExtent(e){return e.min!==void 0&&(this.scaleMin=e.min),e.max!==void 0&&(this.scaleMax=e.max),this}scaleExtent(){return{min:this.scaleMin,max:this.scaleMax}}setTranslationExtent(e){return e.xMin!==void 0&&(this.boundingBox.xMin=e.xMin),e.yMin!==void 0&&(this.boundingBox.yMin=e.yMin),e.xMax!==void 0&&(this.boundingBox.xMax=e.xMax),e.yMax!==void 0&&(this.boundingBox.yMax=e.yMax),this}translationExtent(){return this.boundingBox}limitScale(e){return At(this.scaleMin,this.scaleMax,e)}limitTranslation(e,n){return e=At(this.boundingBox.xMin,this.boundingBox.xMax,e),n=At(this.boundingBox.yMin,this.boundingBox.yMax,n),{x:e,y:n}}scaleBy(e){const n=this.limitScale(this.viewport.scale()*e);this.viewport.scaleTo(n)}scaleTo(e){const n=this.limitScale(e);this.viewport.scaleTo(n)}moveBy(e,n){const{x:r,y:i}=this.viewport.center(),o=this.limitTranslation(r+e,i+n);this.viewport.moveTo(o.x,o.y)}moveTo(e,n){const r=this.limitTranslation(e,n);this.viewport.moveTo(r.x,r.y)}}function Pr(t){return Object.prototype.toString.call(t)==="[object Date]"}function tp(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function kn(t,e){if(t===e||t!==t)return()=>t;const n=typeof t;if(n!==typeof e||Array.isArray(t)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const r=e.map((i,o)=>kn(t[o],i));return i=>r.map(o=>o(i))}if(n==="object"){if(!t||!e)throw new Error("Object cannot be null");if(Pr(t)&&Pr(e)){t=t.getTime(),e=e.getTime();const o=e-t;return s=>new Date(t+s*o)}const r=Object.keys(e),i={};return r.forEach(o=>{i[o]=kn(t[o],e[o])}),o=>{const s={};return r.forEach(a=>{s[a]=i[a](o)}),s}}if(n==="number"){const r=e-t;return i=>t+i*r}throw new Error(`Cannot interpolate ${n} values`)}function np(t,e={}){const n=ln(t);let r,i=t;function o(s,a){if(t==null)return n.set(t=s),Promise.resolve();i=s;let l=r,h=!1,{delay:u=0,duration:c=400,easing:f=Po,interpolate:d=kn}=Ie(Ie({},e),a);if(c===0)return l&&(l.abort(),l=null),n.set(t=i),Promise.resolve();const g=Ro()+u;let y;return r=Do(T=>{if(Tc?(n.set(t=s),!1):(n.set(t=y(f(S/c))),!0)}),r.promise}return{set:o,update:(s,a)=>o(s(i,t),a),subscribe:n.subscribe}}function rp(t){let e,n,r,i,o;return{c(){e=V("rect"),this.h()},l(s){e=F(s,"rect",{x:!0,y:!0,width:!0,height:!0,fill:!0,opacity:!0}),L(e).forEach(E),this.h()},h(){p(e,"x",n=t[0].xMin),p(e,"y",r=t[0].yMin),p(e,"width",i=t[0].width),p(e,"height",o=t[0].height),p(e,"fill","grey"),p(e,"opacity","0.2")},m(s,a){I(s,e,a)},p(s,[a]){a&1&&n!==(n=s[0].xMin)&&p(e,"x",n),a&1&&r!==(r=s[0].yMin)&&p(e,"y",r),a&1&&i!==(i=s[0].width)&&p(e,"width",i),a&1&&o!==(o=s[0].height)&&p(e,"height",o)},i:Y,o:Y,d(s){s&&E(e)}}}function ip(t,e,n){let r,{start:i}=e,{end:o}=e;return t.$$set=s=>{"start"in s&&n(1,i=s.start),"end"in s&&n(2,o=s.end)},t.$$.update=()=>{t.$$.dirty&6&&n(0,r=q.fromPoints(i,o))},[r,i,o]}class op extends ae{constructor(e){super(),le(this,e,ip,rp,se,{start:1,end:2})}}function sp(t){let e,n,r;return{c(){e=V("defs"),n=V("marker"),r=V("path"),this.h()},l(i){e=F(i,"defs",{});var o=L(e);n=F(o,"marker",{id:!0,viewBox:!0,refX:!0,refY:!0,markerUnits:!0,markerWidth:!0,markerHeight:!0,orient:!0});var s=L(n);r=F(s,"path",{d:!0,fill:!0,style:!0}),L(r).forEach(E),s.forEach(E),o.forEach(E),this.h()},h(){p(r,"d","M 0 0 L 10 5 L 0 10 L 4 5 z"),p(r,"fill","var(--gray-tertiary)"),Lo(r,"stroke-width","1"),p(n,"id","arrowhead"),p(n,"viewBox","0 0 10 10"),p(n,"refX","9"),p(n,"refY","5"),p(n,"markerUnits","strokeWidth"),p(n,"markerWidth","10"),p(n,"markerHeight","12"),p(n,"orient","auto")},m(i,o){I(i,e,o),B(e,n),B(n,r)},p:Y,d(i){i&&E(e)}}}function ap(t){let e;const n=t[1].default,r=Ur(n,t,t[2],null),i=r||sp();return{c(){i&&i.c()},l(o){i&&i.l(o)},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s&4)&&Kr(r,n,o,o[2],e?Qr(n,o[2],s,null):Zr(o[2]),null)},i(o){e||(P(i,o),e=!0)},o(o){D(i,o),e=!1},d(o){i&&i.d(o)}}}function lp(t){let e,n;return e=new Ln({props:{self:t[0],$$slots:{default:[ap]},$$scope:{ctx:t}}}),{c(){Z(e.$$.fragment)},l(r){oe(e.$$.fragment,r)},m(r,i){Q(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.self=r[0]),i&4&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){D(e.$$.fragment,r),n=!1},d(r){J(e,r)}}}function up(t,e,n){let{$$slots:r={},$$scope:i}=e,{self:o}=e;return t.$$set=s=>{"self"in s&&n(0,o=s.self),"$$scope"in s&&n(2,i=s.$$scope)},[o,r,i]}class hp extends ae{constructor(e){super(),le(this,e,up,lp,se,{self:0})}}function Lr(t,e,n){const r=t.slice();return r[34]=e[n][0],r[35]=e[n][1],r}function Ir(t,e,n){const r=t.slice();return r[34]=e[n][0],r[35]=e[n][1],r}function Ar(t,e,n){const r=t.slice();return r[34]=e[n][0],r[40]=e[n][1].name,r[41]=e[n][1].boundingBox,r}function Rr(t,e){let n,r,i;function o(...s){return e[19](e[34],...s)}return r=new Jd({props:{nodeId:e[34],name:e[40],boundingBox:e[41]}}),r.$on("dblclick",o),r.$on("nodeEnter",e[20]),r.$on("nodeLeave",e[21]),{key:t,first:null,c(){n=G(),Z(r.$$.fragment),this.h()},l(s){n=G(),oe(r.$$.fragment,s),this.h()},h(){this.first=n},m(s,a){I(s,n,a),Q(r,s,a),i=!0},p(s,a){e=s;const l={};a[0]&4&&(l.nodeId=e[34]),a[0]&4&&(l.name=e[40]),a[0]&4&&(l.boundingBox=e[41]),r.$set(l)},i(s){i||(P(r.$$.fragment,s),i=!0)},o(s){D(r.$$.fragment,s),i=!1},d(s){s&&E(n),J(r,s)}}}function Dr(t,e){let n,r,i;function o(...s){return e[22](e[34],...s)}return r=new An({props:{self:e[35],decoration:e[1].get(e[34])}}),r.$on("click",o),r.$on("nodeEnter",e[23]),r.$on("nodeLeave",e[24]),{key:t,first:null,c(){n=G(),Z(r.$$.fragment),this.h()},l(s){n=G(),oe(r.$$.fragment,s),this.h()},h(){this.first=n},m(s,a){I(s,n,a),Q(r,s,a),i=!0},p(s,a){e=s;const l={};a[0]&4&&(l.self=e[35]),a[0]&6&&(l.decoration=e[1].get(e[34])),r.$set(l)},i(s){i||(P(r.$$.fragment,s),i=!0)},o(s){D(r.$$.fragment,s),i=!1},d(s){s&&E(n),J(r,s)}}}function Br(t,e){let n,r,i;function o(...s){return e[25](e[34],...s)}return r=new An({props:{self:e[35],decoration:e[1].get(e[34])}}),r.$on("dblclick",o),r.$on("nodeEnter",e[26]),r.$on("nodeLeave",e[27]),{key:t,first:null,c(){n=G(),Z(r.$$.fragment),this.h()},l(s){n=G(),oe(r.$$.fragment,s),this.h()},h(){this.first=n},m(s,a){I(s,n,a),Q(r,s,a),i=!0},p(s,a){e=s;const l={};a[0]&4&&(l.self=e[35]),a[0]&6&&(l.decoration=e[1].get(e[34])),r.$set(l)},i(s){i||(P(r.$$.fragment,s),i=!0)},o(s){D(r.$$.fragment,s),i=!1},d(s){s&&E(n),J(r,s)}}}function $r(t){let e,n;return e=new op({props:{start:t[3].start,end:t[3].end}}),{c(){Z(e.$$.fragment)},l(r){oe(e.$$.fragment,r)},m(r,i){Q(e,r,i),n=!0},p(r,i){const o={};i[0]&8&&(o.start=r[3].start),i[0]&8&&(o.end=r[3].end),e.$set(o)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){D(e.$$.fragment,r),n=!1},d(r){J(e,r)}}}function cp(t){let e,n,r=[],i=new Map,o,s,a=[],l=new Map,h,u=[],c=new Map,f,d,g,y,T,S,b,w,m,_,k=ge([...t[2].expanded.entries()]);const C=N=>N[34];for(let N=0;NN[34];for(let N=0;NN[34];for(let N=0;N{$=null}),fe());const j={};v[0]&4&&(j.nodeLayouts=N[2].nodes),g.$set(j),(!w||v[0]&64&&y!==(y=N[6].toString()))&&p(n,"transform",y),(!w||v[0]&1&&T!==(T=N[0].screenWidth()))&&p(e,"width",T),(!w||v[0]&1&&S!==(S=N[0].screenHeight()))&&p(e,"height",S),(!w||v[0]&32&&b!==(b=`cursor: ${N[5]}`))&&p(e,"style",b)},i(N){if(!w){for(let v=0;vM.encloses(te.boundingBox())).map(([pe,te])=>pe);w("brush",{nodes:R});break}}n(3,d={kind:"initial"})}function T(M){const{x:R,y:pe}=f(M),te=l.screenToWorld().apply(R,pe);switch(d.kind){case"initial":return;case"panning":{const Oe=d.start.x-te.x,Ee=d.start.y-te.y;u.moveBy(Oe,Ee),n(0,l);break}case"brushing":{n(3,d.end=te,d);break}}}function S(M){M.preventDefault();const R=-M.deltaY*(M.deltaMode===1?.05:M.deltaMode?1:.002),pe=l.scale();if(u.scaleBy(Math.pow(2,R)),pe===l.scale())return;const te=l.center(),{x:Oe,y:Ee}=f(M),Be=l.screenToWorld().apply(Oe,Ee);u.moveBy(-(te.x-Be.x)*R,-(te.y-Be.y)*R),n(0,l)}async function b(M,R){const pe=q.fromCenterAndDimension(M.center,Math.max(l.screenWidth(),M.width),Math.max(l.screenHeight(),M.height)),{x:te,y:Oe}=pe.center,Ee=Math.min(l.screenWidth()/M.width,l.screenHeight()/M.height)||1;if(R!==void 0&&R){const Be=np({...l.center(),k:l.scale()},{duration:1e3,easing:tp});Be.subscribe(Pe=>{u.moveTo(Pe.x,Pe.y),u.scaleTo(Pe.k),n(0,l)}),await Be.set({x:te,y:Oe,k:Ee})}else u.moveTo(te,Oe),u.scaleTo(Ee),n(0,l)}const w=nt();function m(M,R){M.stopPropagation(),w("collapse",{nodeId:R})}function _(M,R){M.stopPropagation(),w("expand",{nodeId:R})}function k(M,R){M.stopPropagation(),w("nodeClick",{nodeId:R,original:M})}function C(M){d.kind==="initial"&&M.shiftKey&&h&&n(3,d={kind:"awaitBrushing"})}function A(){d.kind==="awaitBrushing"&&n(3,d={kind:"initial"})}const W=(M,R)=>{m(R,M)};function X(M){ue.call(this,t,M)}function K(M){ue.call(this,t,M)}const $=(M,R)=>{k(R,M)};function N(M){ue.call(this,t,M)}function v(M){ue.call(this,t,M)}const O=(M,R)=>{_(R,M)};function j(M){ue.call(this,t,M)}function He(M){ue.call(this,t,M)}function we(M){ue.call(this,t,M)}function qe(M){ue.call(this,t,M)}function xe(M){Xe[M?"unshift":"push"](()=>{c=M,n(4,c)})}return t.$$set=M=>{"decorations"in M&&n(1,s=M.decorations),"drawable"in M&&n(2,a=M.drawable),"viewport"in M&&n(0,l=M.viewport),"multiSelection"in M&&n(16,h=M.multiSelection)},t.$$.update=()=>{t.$$.dirty[0]&1&&n(18,r=l.world()),t.$$.dirty[0]&262149&&u.setScaleExtent({min:Math.min(l.screenWidth()/a.boundingBox.width,l.screenHeight()/a.boundingBox.height)*.5,max:1}).setTranslationExtent(a.boundingBox.padded({l:r.width*.4,r:r.width*.4,t:r.height*.4,b:r.height*.4})),t.$$.dirty[0]&1&&n(6,i=l.worldToScreen().toString()),t.$$.dirty[0]&8&&n(5,o=fp(d))},[l,s,a,d,c,o,i,g,y,T,S,m,_,k,C,A,h,b,r,W,X,K,$,N,v,O,j,He,we,qe,xe]}class pp extends ae{constructor(e){super(),le(this,e,dp,cp,se,{decorations:1,drawable:2,viewport:0,multiSelection:16,setFocus:17},null,[-1,-1])}get setFocus(){return this.$$.ctx[17]}}function gp(t){let e,n,r,i,o,s,a,l,h,u,c,f,d,g,y,T,S;return{c(){e=ne("div"),n=ne("canvas"),r=Ce(),i=V("svg"),o=V("rect"),c=V("rect"),this.h()},l(b){e=re(b,"DIV",{class:!0});var w=L(e);n=re(w,"CANVAS",{class:!0}),L(n).forEach(E),r=Te(w),i=F(w,"svg",{role:!0,width:!0,height:!0,class:!0});var m=L(i);o=F(m,"rect",{fill:!0,x:!0,y:!0,width:!0,height:!0,opacity:!0,style:!0}),L(o).forEach(E),c=F(m,"rect",{fill:!0,stroke:!0,x:!0,y:!0,width:!0,height:!0}),L(c).forEach(E),m.forEach(E),w.forEach(E),this.h()},h(){p(n,"class","svelte-133ndzu"),p(o,"fill","rgb(0, 122, 255)"),p(o,"x",s=t[6].x),p(o,"y",a=t[6].y),p(o,"width",l=t[6].w),p(o,"height",h=t[6].h),p(o,"opacity","0.1"),p(o,"style",u=t[5]?"cursor: grabbing":"cursor: grab"),p(c,"fill","none"),p(c,"stroke","rgb(0, 122, 255)"),p(c,"x",f=t[6].x),p(c,"y",d=t[6].y),p(c,"width",g=t[6].w),p(c,"height",y=t[6].h),p(i,"role","navigation"),p(i,"width",t[0]),p(i,"height",t[1]),p(i,"class","svelte-133ndzu"),p(e,"class","container svelte-133ndzu")},m(b,w){I(b,e,w),B(e,n),t[11](n),B(e,r),B(e,i),B(i,o),t[12](o),B(i,c),t[13](i),T||(S=H(i,"mousedown",t[7]),T=!0)},p(b,[w]){w&64&&s!==(s=b[6].x)&&p(o,"x",s),w&64&&a!==(a=b[6].y)&&p(o,"y",a),w&64&&l!==(l=b[6].w)&&p(o,"width",l),w&64&&h!==(h=b[6].h)&&p(o,"height",h),w&32&&u!==(u=b[5]?"cursor: grabbing":"cursor: grab")&&p(o,"style",u),w&64&&f!==(f=b[6].x)&&p(c,"x",f),w&64&&d!==(d=b[6].y)&&p(c,"y",d),w&64&&g!==(g=b[6].w)&&p(c,"width",g),w&64&&y!==(y=b[6].h)&&p(c,"height",y),w&1&&p(i,"width",b[0]),w&2&&p(i,"height",b[1])},i:Y,o:Y,d(b){b&&E(e),t[11](null),t[12](null),t[13](null),T=!1,S()}}}function mp(t,e,n){let r,i;const o=nt();function s(_){const k=r.worldToScreen().apply(_.xMin,_.yMin),C=r.worldToScreen().apply(_.xMax,_.yMax);return{x:k.x,y:k.y,w:C.x-k.x,h:C.y-k.y}}let{drawable:a}=e,{width:l}=e,{height:h}=e,{worldExtent:u}=e,c,f;function d(_){let k=f.createSVGPoint();k.x=_.clientX,k.y=_.clientY,k=k.matrixTransform(f.getScreenCTM()?.inverse());const C=r.screenToWorld().apply(k.x,k.y);o("viewportCenterDidChange",{center:C})}let g;function y(_){const k=r.screenToWorld().apply(0,0),C=r.screenToWorld().apply(_.dx,_.dy),A=u.center;A.x+=C.x-k.x,A.y+=C.y-k.y,o("viewportCenterDidChange",{center:A})}let T=!1;const S=Na().on("drag",y).on("start",()=>n(5,T=!0)).on("end",()=>n(5,T=!1));ni(()=>{ct(g).call(S)});function b(_){Xe[_?"unshift":"push"](()=>{c=_,n(2,c),n(0,l),n(1,h),n(8,a)})}function w(_){Xe[_?"unshift":"push"](()=>{g=_,n(4,g)})}function m(_){Xe[_?"unshift":"push"](()=>{f=_,n(3,f)})}return t.$$set=_=>{"drawable"in _&&n(8,a=_.drawable),"width"in _&&n(0,l=_.width),"height"in _&&n(1,h=_.height),"worldExtent"in _&&n(9,u=_.worldExtent)},t.$$.update=()=>{if(t.$$.dirty&3&&n(10,r=new Fn(l,h)),t.$$.dirty&1280&&r.fit(a.boundingBox.padded(2)),t.$$.dirty&512&&n(6,i=s(u)),t.$$.dirty&263&&c){let _=c.getContext("2d");n(2,c.width=l,c),n(2,c.height=h,c),_.fillStyle="white",_.fillRect(0,0,l,h),_.lineWidth=.5;for(const{boundingBox:k}of a.expanded.values()){const C=s(k);_.fillStyle="rgb(250, 250, 250)",_.fillRect(C.x,C.y,C.w,C.h),_.strokeStyle="rgb(134, 134, 139)",_.strokeRect(C.x,C.y,C.w,C.h)}for(const k of a.nodes.values()){const C=s(k.boundingBox());_.fillStyle="rgb(134, 134, 139)",_.fillRect(C.x,C.y,C.w,C.h)}for(const k of a.collapsed.values()){const C=s(k.boundingBox());_.fillStyle="rgb(134, 134, 139)",_.fillRect(C.x,C.y,C.w,C.h)}}},[l,h,c,f,g,T,i,d,a,u,r,b,w,m]}class wp extends ae{constructor(e){super(),le(this,e,mp,gp,se,{drawable:8,width:0,height:1,worldExtent:9})}}function Vr(t,e,n){const r=t.slice();return r[5]=e[n],r[7]=n,r}function _p(t){let e,n;return{c(){e=ne("span"),n=Ae(t[0]),this.h()},l(r){e=re(r,"SPAN",{class:!0});var i=L(e);n=Re(i,t[0]),i.forEach(E),this.h()},h(){p(e,"class","svelte-122vmdc")},m(r,i){I(r,e,i),B(e,n)},p(r,i){i&1&&_t(n,r[0])},d(r){r&&E(e)}}}function yp(t){let e,n,r,i,o=ge(t[3]),s=[];for(let u=0;u{"defaultText"in l&&n(0,i=l.defaultText),"network"in l&&n(4,o=l.network),"drawable"in l&&n(1,s=l.drawable),"currentNode"in l&&n(2,a=l.currentNode)},t.$$.update=()=>{t.$$.dirty&20&&n(3,r=a?[a,...o.parents(a)].reverse().map(l=>o.node(l).humanReadable()||l):[])},[i,s,a,r,o]}class kp extends ae{constructor(e){super(),le(this,e,Ep,xp,se,{defaultText:0,network:4,drawable:1,currentNode:2})}}function zr(t){let e,n,r;function i(s){t[34](s)}let o={decorations:t[8],drawable:t[15],multiSelection:t[7]};return t[13]!==void 0&&(o.viewport=t[13]),e=new pp({props:o}),t[33](e),Xe.push(()=>Oo(e,"viewport",i)),e.$on("expand",t[18]),e.$on("collapse",t[19]),e.$on("nodeEnter",t[20]),e.$on("nodeLeave",t[21]),e.$on("nodeClick",t[22]),e.$on("brush",t[25]),{c(){Z(e.$$.fragment)},l(s){oe(e.$$.fragment,s)},m(s,a){Q(e,s,a),r=!0},p(s,a){const l={};a[0]&256&&(l.decorations=s[8]),a[0]&32768&&(l.drawable=s[15]),a[0]&128&&(l.multiSelection=s[7]),!n&&a[0]&8192&&(n=!0,l.viewport=s[13],Ao(()=>n=!1)),e.$set(l)},i(s){r||(P(e.$$.fragment,s),r=!0)},o(s){D(e.$$.fragment,s),r=!1},d(s){t[33](null),J(e,s)}}}function Gr(t){let e,n,r,i,o,s=t[3]&&jr(t),a=t[17]&&Yr(t),l=t[4]&&Hr(t);return{c(){e=ne("div"),s&&s.c(),n=Ce(),r=ne("div"),a&&a.c(),i=Ce(),l&&l.c(),this.h()},l(h){e=re(h,"DIV",{class:!0});var u=L(e);s&&s.l(u),n=Te(u),r=re(u,"DIV",{class:!0});var c=L(r);a&&a.l(c),i=Te(c),l&&l.l(c),c.forEach(E),u.forEach(E),this.h()},h(){p(r,"class","myc-navigation-controls svelte-15hd81r"),p(e,"class","myc-navigation svelte-15hd81r")},m(h,u){I(h,e,u),s&&s.m(e,null),B(e,n),B(e,r),a&&a.m(r,null),B(r,i),l&&l.m(r,null),o=!0},p(h,u){h[3]?s?(s.p(h,u),u[0]&8&&P(s,1)):(s=jr(h),s.c(),P(s,1),s.m(e,n)):s&&(ce(),D(s,1,1,()=>{s=null}),fe()),h[17]?a?a.p(h,u):(a=Yr(h),a.c(),a.m(r,i)):a&&(a.d(1),a=null),h[4]?l?l.p(h,u):(l=Hr(h),l.c(),l.m(r,null)):l&&(l.d(1),l=null)},i(h){o||(P(s),o=!0)},o(h){D(s),o=!1},d(h){h&&E(e),s&&s.d(),a&&a.d(),l&&l.d()}}}function jr(t){let e,n;return e=new kp({props:{network:t[0],currentNode:t[16],drawable:t[15]}}),{c(){Z(e.$$.fragment)},l(r){oe(e.$$.fragment,r)},m(r,i){Q(e,r,i),n=!0},p(r,i){const o={};i[0]&1&&(o.network=r[0]),i[0]&65536&&(o.currentNode=r[16]),i[0]&32768&&(o.drawable=r[15]),e.$set(o)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){D(e.$$.fragment,r),n=!1},d(r){J(e,r)}}}function Yr(t){let e,n,r="Collapse All",i,o;return{c(){e=ne("div"),n=ne("button"),n.textContent=r,this.h()},l(s){e=re(s,"DIV",{});var a=L(e);n=re(a,"BUTTON",{class:!0,"data-svelte-h":!0}),rt(n)!=="svelte-7o3ux6"&&(n.textContent=r),a.forEach(E),this.h()},h(){p(n,"class","resetView svelte-15hd81r")},m(s,a){I(s,e,a),B(e,n),i||(o=H(n,"click",t[35]),i=!0)},p:Y,d(s){s&&E(e),i=!1,o()}}}function Hr(t){let e,n,r="Show All",i,o;return{c(){e=ne("div"),n=ne("button"),n.textContent=r,this.h()},l(s){e=re(s,"DIV",{});var a=L(e);n=re(a,"BUTTON",{class:!0,"data-svelte-h":!0}),rt(n)!=="svelte-z7thqi"&&(n.textContent=r),a.forEach(E),this.h()},h(){p(n,"class","resetView svelte-15hd81r")},m(s,a){I(s,e,a),B(e,n),i||(o=H(n,"click",t[36]),i=!0)},p:Y,d(s){s&&E(e),i=!1,o()}}}function qr(t){let e,n,r="Mycelium";return{c(){e=Ae("Powered by "),n=ne("a"),n.textContent=r,this.h()},l(i){e=Re(i,"Powered by "),n=re(i,"A",{href:!0,target:!0,class:!0,"data-svelte-h":!0}),rt(n)!=="svelte-j6ykrk"&&(n.textContent=r),this.h()},h(){p(n,"href","https://apple.github.io/ml-mycelium"),p(n,"target","_blank"),p(n,"class","svelte-15hd81r")},m(i,o){I(i,e,o),I(i,n,o)},d(i){i&&(E(e),E(n))}}}function Xr(t){let e,n,r;return n=new wp({props:{width:t[1]*Tt,height:t[2]*Tt,worldExtent:t[13].world(),drawable:t[15]}}),n.$on("viewportCenterDidChange",t[24]),{c(){e=ne("div"),Z(n.$$.fragment),this.h()},l(i){e=re(i,"DIV",{class:!0});var o=L(e);oe(n.$$.fragment,o),o.forEach(E),this.h()},h(){p(e,"class","myc-minimap svelte-15hd81r")},m(i,o){I(i,e,o),Q(n,e,null),r=!0},p(i,o){const s={};o[0]&2&&(s.width=i[1]*Tt),o[0]&4&&(s.height=i[2]*Tt),o[0]&8192&&(s.worldExtent=i[13].world()),o[0]&32768&&(s.drawable=i[15]),n.$set(s)},i(i){r||(P(n.$$.fragment,i),r=!0)},o(i){D(n.$$.fragment,i),r=!1},d(i){i&&E(e),J(n)}}}function Mp(t){let e,n=t[0],r,i,o,s,a,l,h,u=zr(t),c=(t[3]||t[4])&&Gr(t),f=t[5]&&qr(),d=t[6]&&Xr(t);return{c(){e=ne("div"),u.c(),r=Ce(),c&&c.c(),i=Ce(),o=ne("div"),f&&f.c(),s=Ce(),d&&d.c(),this.h()},l(g){e=re(g,"DIV",{class:!0});var y=L(e);u.l(y),r=Te(y),c&&c.l(y),i=Te(y),o=re(y,"DIV",{class:!0});var T=L(o);f&&f.l(T),T.forEach(E),s=Te(y),d&&d.l(y),y.forEach(E),this.h()},h(){p(o,"class","myc-overlay svelte-15hd81r"),p(e,"class","myc-container svelte-15hd81r")},m(g,y){I(g,e,y),u.m(e,null),B(e,r),c&&c.m(e,null),B(e,i),B(e,o),f&&f.m(o,null),B(e,s),d&&d.m(e,null),a=!0,l||(h=H(window,"keydown",t[23]),l=!0)},p(g,y){y[0]&1&&se(n,n=g[0])?(ce(),D(u,1,1,Y),fe(),u=zr(g),u.c(),P(u,1),u.m(e,r)):u.p(g,y),g[3]||g[4]?c?(c.p(g,y),y[0]&24&&P(c,1)):(c=Gr(g),c.c(),P(c,1),c.m(e,i)):c&&(ce(),D(c,1,1,()=>{c=null}),fe()),g[5]?f||(f=qr(),f.c(),f.m(o,null)):f&&(f.d(1),f=null),g[6]?d?(d.p(g,y),y[0]&64&&P(d,1)):(d=Xr(g),d.c(),P(d,1),d.m(e,null)):d&&(ce(),D(d,1,1,()=>{d=null}),fe())},i(g){a||(P(u),P(c),P(d),a=!0)},o(g){D(u),D(c),D(d),a=!1},d(g){g&&E(e),u.d(g),c&&c.d(),f&&f.d(),d&&d.d(),l=!1,h()}}}const Tt=.2;function Np(t,e,n){let r,i,o,s,a=Y,l=()=>(a(),a=Wn(A,x=>n(37,s=x)),A),h,u=Y,c=()=>(u(),u=Wn(W,x=>n(38,h=x)),W);t.$$.on_destroy.push(()=>a()),t.$$.on_destroy.push(()=>u());let{network:f}=e,{width:d}=e,{height:g}=e,{showBreadcrumbs:y}=e,{showResetView:T}=e,{watermark:S}=e,{minimap:b}=e,{autoResize:w}=e,{multiSelection:m}=e,{decorations:_=new Map}=e,{collapsed:k=new Set(f.modules())}=e,{layoutProvider:C}=e;const A=ln(new Map);l();const W=ln(new Map);c(),Io(In,{selections:A,tooltips:W});const X=new Map,K=nt();function $(x,z){N.resize(x,z),n(13,N)}let N=new Fn(d,g);ni(async()=>{await we()});let v=[],O;function j(x){const{yMin:z,yMax:U}=x,ie=20,$e=y?25/(N.screenHeight()||1)*(U-z):0;return x.padded({l:ie,r:ie,t:ie+$e,b:ie})}async function He(x,z){x=Array.isArray(x)?x:[x];let U=q.infinity();for(const ie of x){const $e=i.nodes.get(ie)?.boundingBox();$e&&(U=U.union($e))}U.isEmpty()||await O.setFocus(j(U),z)}async function we(x){await O.setFocus(j(i.boundingBox),x)}async function qe(x,z){!m&&x.length>1&&(console.warn("Received multiple selections but `multiSelection` config was set to `false`."),x=[x[0]]);const U={expand:!0,collapseOthers:{threshold:1e3},...z},{expand:ie,collapse:$e}=Bd(f,x,k,U);let Kt=!1;U.expand&&(ie.size>1&&U.expand==="single"||ie.size>0&&(ie.forEach(Ve=>k.delete(Ve)),Kt=!0)),$e.size>0&&U.collapseOthers!==!1&&(U.collapseOthers===!0||$d(f,k)>U.collapseOthers.threshold)&&($e.forEach(Ve=>k.add(Ve)),Kt=!0),Kt?(n(26,k),await xt(),Zt(A,s=new Map(x.map(Ve=>[Ve,new Set])),s),await we(!0)):Zt(A,s=new Map(x.map(Ve=>[Ve,new Set])),s)}async function xe(x){const z=s;return Zt(A,s=x,s),await xt(),z}async function M(){return await xe(new Map)}async function R(){n(26,k=new Set(f.modules())),await we(!0)}async function pe(x){Ee(x),k.delete(x.detail.nodeId),n(26,k),await xt(),await we(!0)}async function te(x){Ee(x),k.add(x.detail.nodeId),n(26,k),await xt(),await we(!0)}function Oe(x){v[v.length-1]!==x.detail.nodeId&&(v.push(x.detail.nodeId),n(32,v));const z=x.detail.nodeId,U=i.nodes.get(z)?.options.tooltip;if(U){const ie=h.get(z);ie===void 0?X.set(z,Yd(W,z,U().build())):ie.state!=="active"&&ie.state!=="pinned"&&bo(W,z)}}function Ee(x){v.pop(),n(32,v);const z=x.detail.nodeId;clearTimeout(X.get(z)),vo(W,z)}async function Be(x){i.nodes.get(x.detail.nodeId)?.options.selectable&&(m&&x.detail.original.metaKey?Pe(await xe(new Map([...s.entries(),[x.detail.nodeId,new Set]]))):Pe(await xe(new Map([[x.detail.nodeId,new Set]]))))}function Pe(x){const z=([U,ie])=>({primaryNodeId:U,secondaryIds:[...ie.values()]});K("selectionDidChange",{selections:[...s.entries()].map(z),previous:[...x.entries()].map(z)})}async function Eo(x){x.key==="Escape"&&Pe(await M())}function ko(x){const{x:z,y:U}=x.detail.center;N.moveTo(z,U),n(13,N)}async function Mo(x){Pe(await xe(new Map(x.detail.nodes.map(z=>[z,new Set]))))}function No(x){Xe[x?"unshift":"push"](()=>{O=x,n(14,O)})}function Co(x){N=x,n(13,N)}const To=()=>R(),So=async()=>{await we(!0)};return t.$$set=x=>{"network"in x&&n(0,f=x.network),"width"in x&&n(1,d=x.width),"height"in x&&n(2,g=x.height),"showBreadcrumbs"in x&&n(3,y=x.showBreadcrumbs),"showResetView"in x&&n(4,T=x.showResetView),"watermark"in x&&n(5,S=x.watermark),"minimap"in x&&n(6,b=x.minimap),"autoResize"in x&&n(27,w=x.autoResize),"multiSelection"in x&&n(7,m=x.multiSelection),"decorations"in x&&n(8,_=x.decorations),"collapsed"in x&&n(26,k=x.collapsed),"layoutProvider"in x&&n(28,C=x.layoutProvider)},t.$$.update=()=>{t.$$.dirty[0]&67108865&&n(17,r=k.size{o.$set({width:n.clientWidth,height:n.clientHeight})}).observe(n),new xo(o,i)}onSelectionDidChange(e){this.app.$on("selectionDidChange",n=>{e(n.detail)})}async setSelection(e,n){await this.app.setSelections([e],n)}async setSelections(e,n){await this.app.setSelections(e,n)}async collapseAll(){await this.app.collapseAll()}async clearSelections(){await this.app.clearSelections()}async setFocus(e,n){await this.app.setFocus(e,n)}async resetFocus(e){await this.app.resetFocus(e)}setDecoration(e,n){this.decorations.set(e,n),this.app.$set({decorations:this.decorations})}removeDecoration(e){this.decorations.delete(e),this.app.$set({decorations:this.decorations})}clearDecorations(){this.decorations.clear(),this.app.$set({decorations:this.decorations})}setNetwork(e){this.app.$set({network:e,collapsed:new Set(e.modules())})}getOptions(){return this.options}}export{du as H,_o as N,Tu as T,pu as V,$p as a,xo as b,ye as c,Vp as d,Ip as e,Wu as g}; diff --git a/_app/immutable/entry/app.DVDVPUIR.js b/_app/immutable/entry/app.DVDVPUIR.js new file mode 100644 index 0000000..d25a6a0 --- /dev/null +++ b/_app/immutable/entry/app.DVDVPUIR.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CEPhg4Kl.js","../chunks/scheduler.BZf3Antt.js","../chunks/index.C7bWdOrd.js","../nodes/1.Capccvu7.js","../chunks/entry.EQ8aNA8H.js","../chunks/index.DrtbdpeK.js","../chunks/paths.DMfsdrqg.js","../nodes/2.BRv-xxml.js","../chunks/DragDrop.BcO43fWJ.js","../chunks/stores.BEpXIDt_.js","../assets/DragDrop.CUKWqqeK.css","../nodes/3.BvfQdEdE.js","../nodes/4.DiHzs_sq.js","../chunks/index.Cv9_d-Ac.js","../chunks/spread.CUGnlXHs.js","../nodes/5.CYNtbkdG.js","../chunks/dot.Bgkvpxeo.js","../chunks/viewer.BYFc8Cdc.js","../assets/viewer.BlCgbFGn.css","../chunks/Viewer.C5t0eI9O.js","../nodes/6.v-Ra4cbK.js","../chunks/index.BeFZgILa.js","../nodes/7.7oBUziAX.js","../nodes/8.Cr5xcWYm.js","../nodes/9._qEB0pM-.js","../assets/prism-one-light.BRPNifQ8.css","../nodes/10.CT2RlSeh.js","../nodes/11.0B2c2elE.js"])))=>i.map(i=>d[i]); +import{s as j,a as z,B as u,d as F,i as v,f as h,M as G,q as H,e as J,c as K,b as Q,h as I,L as P,t as X,v as Y,w as Z,r as O,N as w,O as x}from"../chunks/scheduler.BZf3Antt.js";import{S as ee,i as te,b as m,e as R,t as p,g as L,c as g,a as D,m as b,d as k}from"../chunks/index.C7bWdOrd.js";const ne="modulepreload",ie=function(f,e){return new URL(f,e).href},T={},$=function(e,n,o){let r=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),s=t?.nonce||t?.getAttribute("nonce");r=Promise.all(n.map(i=>{if(i=ie(i,o),i in T)return;T[i]=!0;const _=i.endsWith(".css"),c=_?'[rel="stylesheet"]':"";if(!!o)for(let N=a.length-1;N>=0;N--){const A=a[N];if(A.href===i&&(!_||A.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${c}`))return;const d=document.createElement("link");if(d.rel=_?"stylesheet":ne,_||(d.as="script"),d.crossOrigin="",d.href=i,s&&d.setAttribute("nonce",s),document.head.appendChild(d),_)return new Promise((N,A)=>{d.addEventListener("load",N),d.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>e()).catch(a=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=a,window.dispatchEvent(t),!t.defaultPrevented)throw a})},we={};function re(f){let e,n,o;var r=f[1][0];function a(t,s){return{props:{data:t[3],form:t[2]}}}return r&&(e=w(r,a(f)),f[18](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][0])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[18](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&8&&(i.data=t[3]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[18](null),e&&k(e,t)}}}function se(f){let e,n,o;var r=f[1][0];function a(t,s){return{props:{data:t[3],$$slots:{default:[ue]},$$scope:{ctx:t}}}}return r&&(e=w(r,a(f)),f[17](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][0])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[17](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&8&&(i.data=t[3]),s&524407&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[17](null),e&&k(e,t)}}}function oe(f){let e,n,o;var r=f[1][1];function a(t,s){return{props:{data:t[4],form:t[2]}}}return r&&(e=w(r,a(f)),f[16](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][1])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[16](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&16&&(i.data=t[4]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[16](null),e&&k(e,t)}}}function fe(f){let e,n,o;var r=f[1][1];function a(t,s){return{props:{data:t[4],$$slots:{default:[ce]},$$scope:{ctx:t}}}}return r&&(e=w(r,a(f)),f[15](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][1])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[15](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&16&&(i.data=t[4]),s&524391&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[15](null),e&&k(e,t)}}}function le(f){let e,n,o;var r=f[1][2];function a(t,s){return{props:{data:t[5],form:t[2]}}}return r&&(e=w(r,a(f)),f[14](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][2])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[14](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&32&&(i.data=t[5]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[14](null),e&&k(e,t)}}}function ae(f){let e,n,o;var r=f[1][2];function a(t,s){return{props:{data:t[5],$$slots:{default:[_e]},$$scope:{ctx:t}}}}return r&&(e=w(r,a(f)),f[13](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][2])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[13](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&32&&(i.data=t[5]),s&524359&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[13](null),e&&k(e,t)}}}function _e(f){let e,n,o;var r=f[1][3];function a(t,s){return{props:{data:t[6],form:t[2]}}}return r&&(e=w(r,a(f)),f[12](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][3])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[12](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&64&&(i.data=t[6]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[12](null),e&&k(e,t)}}}function ce(f){let e,n,o,r;const a=[ae,le],t=[];function s(i,_){return i[1][3]?0:1}return e=s(f),n=t[e]=a[e](f),{c(){n.c(),o=u()},l(i){n.l(i),o=u()},m(i,_){t[e].m(i,_),v(i,o,_),r=!0},p(i,_){let c=e;e=s(i),e===c?t[e].p(i,_):(L(),m(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(i,_):(n=t[e]=a[e](i),n.c()),p(n,1),n.m(o.parentNode,o))},i(i){r||(p(n),r=!0)},o(i){m(n),r=!1},d(i){i&&h(o),t[e].d(i)}}}function ue(f){let e,n,o,r;const a=[fe,oe],t=[];function s(i,_){return i[1][2]?0:1}return e=s(f),n=t[e]=a[e](f),{c(){n.c(),o=u()},l(i){n.l(i),o=u()},m(i,_){t[e].m(i,_),v(i,o,_),r=!0},p(i,_){let c=e;e=s(i),e===c?t[e].p(i,_):(L(),m(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(i,_):(n=t[e]=a[e](i),n.c()),p(n,1),n.m(o.parentNode,o))},i(i){r||(p(n),r=!0)},o(i){m(n),r=!1},d(i){i&&h(o),t[e].d(i)}}}function V(f){let e,n=f[8]&&y(f);return{c(){e=J("div"),n&&n.c(),this.h()},l(o){e=K(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=Q(e);n&&n.l(r),r.forEach(h),this.h()},h(){I(e,"id","svelte-announcer"),I(e,"aria-live","assertive"),I(e,"aria-atomic","true"),P(e,"position","absolute"),P(e,"left","0"),P(e,"top","0"),P(e,"clip","rect(0 0 0 0)"),P(e,"clip-path","inset(50%)"),P(e,"overflow","hidden"),P(e,"white-space","nowrap"),P(e,"width","1px"),P(e,"height","1px")},m(o,r){v(o,e,r),n&&n.m(e,null)},p(o,r){o[8]?n?n.p(o,r):(n=y(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&h(e),n&&n.d()}}}function y(f){let e;return{c(){e=X(f[9])},l(n){e=Y(n,f[9])},m(n,o){v(n,e,o)},p(n,o){o&512&&Z(e,n[9])},d(n){n&&h(e)}}}function me(f){let e,n,o,r,a;const t=[se,re],s=[];function i(c,E){return c[1][1]?0:1}e=i(f),n=s[e]=t[e](f);let _=f[7]&&V(f);return{c(){n.c(),o=z(),_&&_.c(),r=u()},l(c){n.l(c),o=F(c),_&&_.l(c),r=u()},m(c,E){s[e].m(c,E),v(c,o,E),_&&_.m(c,E),v(c,r,E),a=!0},p(c,[E]){let d=e;e=i(c),e===d?s[e].p(c,E):(L(),m(s[d],1,1,()=>{s[d]=null}),R(),n=s[e],n?n.p(c,E):(n=s[e]=t[e](c),n.c()),p(n,1),n.m(o.parentNode,o)),c[7]?_?_.p(c,E):(_=V(c),_.c(),_.m(r.parentNode,r)):_&&(_.d(1),_=null)},i(c){a||(p(n),a=!0)},o(c){m(n),a=!1},d(c){c&&(h(o),h(r)),s[e].d(c),_&&_.d(c)}}}function pe(f,e,n){let{stores:o}=e,{page:r}=e,{constructors:a}=e,{components:t=[]}=e,{form:s}=e,{data_0:i=null}=e,{data_1:_=null}=e,{data_2:c=null}=e,{data_3:E=null}=e;G(o.page.notify);let d=!1,N=!1,A=null;H(()=>{const l=o.page.subscribe(()=>{d&&(n(8,N=!0),x().then(()=>{n(9,A=document.title||"untitled page")}))});return n(7,d=!0),l});function S(l){O[l?"unshift":"push"](()=>{t[3]=l,n(0,t)})}function q(l){O[l?"unshift":"push"](()=>{t[2]=l,n(0,t)})}function B(l){O[l?"unshift":"push"](()=>{t[2]=l,n(0,t)})}function C(l){O[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function M(l){O[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function U(l){O[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}function W(l){O[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}return f.$$set=l=>{"stores"in l&&n(10,o=l.stores),"page"in l&&n(11,r=l.page),"constructors"in l&&n(1,a=l.constructors),"components"in l&&n(0,t=l.components),"form"in l&&n(2,s=l.form),"data_0"in l&&n(3,i=l.data_0),"data_1"in l&&n(4,_=l.data_1),"data_2"in l&&n(5,c=l.data_2),"data_3"in l&&n(6,E=l.data_3)},f.$$.update=()=>{f.$$.dirty&3072&&o.page.set(r)},[t,a,s,i,_,c,E,d,N,A,o,r,S,q,B,C,M,U,W]}class ge extends ee{constructor(e){super(),te(this,e,pe,me,j,{stores:10,page:11,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6})}}const be=[()=>$(()=>import("../nodes/0.CEPhg4Kl.js"),__vite__mapDeps([0,1,2]),import.meta.url),()=>$(()=>import("../nodes/1.Capccvu7.js"),__vite__mapDeps([3,1,2,4,5,6]),import.meta.url),()=>$(()=>import("../nodes/2.BRv-xxml.js"),__vite__mapDeps([7,1,2,8,6,4,5,9,10]),import.meta.url),()=>$(()=>import("../nodes/3.BvfQdEdE.js"),__vite__mapDeps([11,1,2]),import.meta.url),()=>$(()=>import("../nodes/4.DiHzs_sq.js"),__vite__mapDeps([12,1,2,8,6,4,5,9,10,13,14]),import.meta.url),()=>$(()=>import("../nodes/5.CYNtbkdG.js"),__vite__mapDeps([15,6,16,17,2,1,14,5,18,19]),import.meta.url),()=>$(()=>import("../nodes/6.v-Ra4cbK.js"),__vite__mapDeps([20,21,17,2,1,14,5,18,6,19]),import.meta.url),()=>$(()=>import("../nodes/7.7oBUziAX.js"),__vite__mapDeps([22,1,2,19,17,14,5,18]),import.meta.url),()=>$(()=>import("../nodes/8.Cr5xcWYm.js"),__vite__mapDeps([23,9,5,1,2,19,17,14,18,16,21]),import.meta.url),()=>$(()=>import("../nodes/9._qEB0pM-.js"),__vite__mapDeps([24,1,2,6,13,14,17,5,18,25]),import.meta.url),()=>$(()=>import("../nodes/10.CT2RlSeh.js"),__vite__mapDeps([26,1,2,6,13,14]),import.meta.url),()=>$(()=>import("../nodes/11.0B2c2elE.js"),__vite__mapDeps([27,1,2,17,14,5,18,25]),import.meta.url)],ke=[],Ee={"/(landing)":[9,[4]],"/(app)/example/dot":[5,[2,3]],"/(app)/example/lenet":[6,[2,3]],"/(app)/example/simple":[7,[2,3]],"/(landing)/gallery":[10,[4]],"/(landing)/getting-started":[11,[4]],"/(app)/viewer":[8,[2]]},ve={handleError:({error:f})=>{console.error(f)},reroute:()=>{}};export{Ee as dictionary,ve as hooks,we as matchers,be as nodes,ge as root,ke as server_loads}; diff --git a/_app/immutable/entry/start.CkjfUVw7.js b/_app/immutable/entry/start.CkjfUVw7.js new file mode 100644 index 0000000..109c76b --- /dev/null +++ b/_app/immutable/entry/start.CkjfUVw7.js @@ -0,0 +1 @@ +import{a as t}from"../chunks/entry.EQ8aNA8H.js";export{t as start}; diff --git a/_app/immutable/nodes/0.CEPhg4Kl.js b/_app/immutable/nodes/0.CEPhg4Kl.js new file mode 100644 index 0000000..99029bf --- /dev/null +++ b/_app/immutable/nodes/0.CEPhg4Kl.js @@ -0,0 +1 @@ +import{s as l,k as r,u as i,l as u,m as _}from"../chunks/scheduler.BZf3Antt.js";import{S as f,i as c,t as p,b as m}from"../chunks/index.C7bWdOrd.js";const d=!0,$="always",h=Object.freeze(Object.defineProperty({__proto__:null,prerender:d,trailingSlash:$},Symbol.toStringTag,{value:"Module"}));function g(n){let s;const a=n[1].default,e=r(a,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o),s=!0},p(t,[o]){e&&e.p&&(!s||o&1)&&i(e,a,t,t[0],s?_(a,t[0],o,null):u(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){m(e,t),s=!1},d(t){e&&e.d(t)}}}function b(n,s,a){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&a(0,t=o.$$scope)},[t,e]}class v extends f{constructor(s){super(),c(this,s,b,g,l,{})}}export{v as component,h as universal}; diff --git a/_app/immutable/nodes/1.Capccvu7.js b/_app/immutable/nodes/1.Capccvu7.js new file mode 100644 index 0000000..7217723 --- /dev/null +++ b/_app/immutable/nodes/1.Capccvu7.js @@ -0,0 +1 @@ +import{s as c,e as p,t as u,c as m,b,v as l,f as o,i as d,j as g,w as f,n as i,x as _}from"../chunks/scheduler.BZf3Antt.js";import{S as h,i as v}from"../chunks/index.C7bWdOrd.js";import{s as x}from"../chunks/entry.EQ8aNA8H.js";const $=()=>{const e=x;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},E={subscribe(e){return $().page.subscribe(e)}};function S(e){let s,r=e[0].error.message+"",a;return{c(){s=p("h1"),a=u(r)},l(t){s=m(t,"H1",{});var n=b(s);a=l(n,r),n.forEach(o)},m(t,n){d(t,s,n),g(s,a)},p(t,[n]){n&1&&r!==(r=t[0].error.message+"")&&f(a,r)},i,o:i,d(t){t&&o(s)}}}function y(e,s,r){let a;return _(e,E,t=>r(0,a=t)),[a]}let C=class extends h{constructor(s){super(),v(this,s,y,S,c,{})}};export{C as component}; diff --git a/_app/immutable/nodes/10.CT2RlSeh.js b/_app/immutable/nodes/10.CT2RlSeh.js new file mode 100644 index 0000000..0104170 --- /dev/null +++ b/_app/immutable/nodes/10.CT2RlSeh.js @@ -0,0 +1,4 @@ +import{s as ae,e as a,t as K,c as n,b as v,v as Q,f as d,g as P,h as r,i as G,j as s,w as U,n as O,a as k,o as ie,d as A}from"../chunks/scheduler.BZf3Antt.js";import{S as ne,i as oe,c as W,a as Y,m as Z,t as ee,b as te,d as se}from"../chunks/index.C7bWdOrd.js";import{b as le}from"../chunks/paths.DMfsdrqg.js";import{I as re,A as de}from"../chunks/index.Cv9_d-Ac.js";function ce(h){let e,l,c,t,i="/",p,x;return{c(){e=a("div"),l=a("span"),c=K(h[0]),t=a("span"),t.textContent=i,p=a("span"),x=K(h[1]),this.h()},l(o){e=n(o,"DIV",{class:!0});var f=v(e);l=n(f,"SPAN",{class:!0});var I=v(l);c=Q(I,h[0]),I.forEach(d),t=n(f,"SPAN",{class:!0,"data-svelte-h":!0}),P(t)!=="svelte-18mnmw1"&&(t.textContent=i),p=n(f,"SPAN",{});var m=v(p);x=Q(m,h[1]),m.forEach(d),f.forEach(d),this.h()},h(){r(l,"class","text-gray-500"),r(t,"class","text-gray-300"),r(e,"class","flex gap-1")},m(o,f){G(o,e,f),s(e,l),s(l,c),s(e,t),s(e,p),s(p,x)},p(o,[f]){f&1&&U(c,o[0]),f&2&&U(x,o[1])},i:O,o:O,d(o){o&&d(e)}}}function ue(h,e,l){let{org:c}=e,{model:t}=e;return h.$$set=i=>{"org"in i&&l(0,c=i.org),"model"in i&&l(1,t=i.model)},[c,t]}class fe extends ne{constructor(e){super(),oe(this,e,ue,ce,ae,{org:0,model:1})}}function me(h){let e,l,c,t,i,p="Gallery",x,o,f=`The following contains examples of different models that can be visualized with Mycelium. + Please note that some ONNX files can become quite large and need to be downloaded before + they can be visualized.`,I,m,g,q=`
LeNet5
Open
GraphViz
Mycelium also comes with a very basic loader for .dot files. Please note that it only works with graphs that form a DAG.
Open
`,S,b,D,R=`
External
The following external models are larger, which is why we only provide external links. + To visualize them, you can download them and then simply drop them into this page.
`,H,_,y,w,C,V,F="Hugging Face",E,M;return y=new fe({props:{org:"Microsoft",model:"Phi-3-mini-4k-instruct-onnx"}}),E=new re({props:{src:de,theme:"solid",class:"text-blue-600 h-4 w-auto"}}),{c(){e=k(),l=a("div"),c=a("div"),t=a("div"),i=a("h2"),i.textContent=p,x=k(),o=a("p"),o.textContent=f,I=k(),m=a("div"),g=a("div"),g.innerHTML=q,S=k(),b=a("div"),D=a("div"),D.innerHTML=R,H=k(),_=a("div"),W(y.$$.fragment),w=a("a"),C=a("div"),V=a("span"),V.textContent=F,W(E.$$.fragment),this.h()},l(u){ie("svelte-85k870",document.head).forEach(d),e=A(u),l=n(u,"DIV",{class:!0});var X=v(l);c=n(X,"DIV",{class:!0});var B=v(c);t=n(B,"DIV",{class:!0});var $=v(t);i=n($,"H2",{class:!0,"data-svelte-h":!0}),P(i)!=="svelte-197edl1"&&(i.textContent=p),x=A($),o=n($,"P",{class:!0,"data-svelte-h":!0}),P(o)!=="svelte-10y7219"&&(o.textContent=f),I=A($),m=n($,"DIV",{class:!0});var T=v(m);g=n(T,"DIV",{class:!0,"data-svelte-h":!0}),P(g)!=="svelte-mnu2lf"&&(g.innerHTML=q),S=A(T),b=n(T,"DIV",{class:!0});var N=v(b);D=n(N,"DIV",{"data-svelte-h":!0}),P(D)!=="svelte-1663nnm"&&(D.innerHTML=R),H=A(N),_=n(N,"DIV",{class:!0});var j=v(_);Y(y.$$.fragment,j),w=n(j,"A",{href:!0,class:!0});var J=v(w);C=n(J,"DIV",{class:!0});var z=v(C);V=n(z,"SPAN",{"data-svelte-h":!0}),P(V)!=="svelte-e0boru"&&(V.textContent=F),Y(E.$$.fragment,z),z.forEach(d),J.forEach(d),j.forEach(d),N.forEach(d),T.forEach(d),$.forEach(d),B.forEach(d),X.forEach(d),this.h()},h(){document.title="Mycelium • Gallery",r(i,"class","text-2xl font-bold tracking-tight text-gray-900 sm:text-4xl"),r(o,"class","mt-6 text-lg leading-8 text-gray-600"),r(g,"class","flex flex-col py-4 gap-4 w-full"),r(C,"class","flex gap-2 items-center"),r(w,"href","https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-onnx/blob/main/cpu_and_mobile/cpu-int4-rtn-block-32/phi3-mini-4k-instruct-cpu-int4-rtn-block-32.onnx"),r(w,"class","rounded-md border border-blue-600 px-3.5 py-2.5 text-sm font-semibold text-blue-600 shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"),r(_,"class","border rounded-lg p-4 flex justify-between items-center"),r(b,"class","flex flex-col py-4 gap-4 w-full"),r(m,"class","mt-10 grid grid-cols-1 divide-y"),r(t,"class","mx-auto max-w-2xl text-center"),r(c,"class","mx-auto max-w-7xl px-6 lg:px-8"),r(l,"class","py-24 sm:py-32 lg:pb-40")},m(u,L){G(u,e,L),G(u,l,L),s(l,c),s(c,t),s(t,i),s(t,x),s(t,o),s(t,I),s(t,m),s(m,g),s(m,S),s(m,b),s(b,D),s(b,H),s(b,_),Z(y,_,null),s(_,w),s(w,C),s(C,V),Z(E,C,null),M=!0},p:O,i(u){M||(ee(y.$$.fragment,u),ee(E.$$.fragment,u),M=!0)},o(u){te(y.$$.fragment,u),te(E.$$.fragment,u),M=!1},d(u){u&&(d(e),d(l)),se(y),se(E)}}}class be extends ne{constructor(e){super(),oe(this,e,null,me,ae,{})}}export{be as component}; diff --git a/_app/immutable/nodes/11.0B2c2elE.js b/_app/immutable/nodes/11.0B2c2elE.js new file mode 100644 index 0000000..bcbe451 --- /dev/null +++ b/_app/immutable/nodes/11.0B2c2elE.js @@ -0,0 +1,51 @@ +import{s as jn,e,a as l,J as E,c as p,g as h,d as u,b as g,f as s,K as P,h as b,L as ss,i as t,j as Bn,n as bn,q as as,r as ts,o as es}from"../chunks/scheduler.BZf3Antt.js";import{S as Fn,i as On,c as ps,a as os,m as cs,t as ls,b as us,d as is}from"../chunks/index.C7bWdOrd.js";import{N as ks,b as rs,a as An,V as Gn,T as _n}from"../chunks/viewer.BYFc8Cdc.js";/* empty css */function ds(M){let k,w="Getting Started",d,i,v=`The following shows a small hierarchical graph visualized by Mycelium. +In this section we will show you how to recreate that example.`,o,f,m,y,_,x='There are several steps required to embed Mycelium into your application, which we will outline below. You can also find the full source code of this example on GitHub.',T,c,N,Y='npm install @apple/mycelium',K,C,r=`Now we can import the library via the following commands. +It’s important to note that we also have to import the provided CSS stylesheet, otherwise some styles might be missing.`,J,H,U,Kn=`import * as myc from '@apple/mycelium'; +import '@apple/mycelium/dist/style.css';`,Q,I,xn="Creating a Network",X,L,Nn=`Next, we can create a simple network. +Mycelium supports regular nodes, as well as hierarchical modules.`,Z,R,nn,Yn=`// We define a set of nodes. +const [a, b, c, d, e, f] = ['a', 'b', 'c', 'd', 'e', 'f'] as Array<myc.NodeId>; + +// And a set of modules. +const [m, n] = ['m', 'n'] as Array<myc.NodeId>;`,sn,W,Cn=`In Mycelium the contents of a node (and other user interface elements) is defined via a small myc.ui framework. +For this example we create two helper functions to generate nodes and modules respectively.`,an,S,tn,Jn=`function createNode(nodeId: myc.NodeId): myc.ui.Node { + return new myc.ui.Node( + nodeId, + new myc.ui.VStack(new myc.ui.Text('Node').with({ fontWeight: 600 }), new myc.ui.Text(nodeId)), + ).with({ selectable: true, ...(nodeId === b && { badge: { color: 'red', text: 'i' } }) }); +} + +function createModule(nodeId: myc.NodeId): myc.ui.Node { + return new myc.ui.Node( + nodeId, + new myc.ui.VStack(new myc.ui.Text('Module').with({ fontWeight: 600 }), new myc.ui.Text(nodeId)), + ).with({ backgroundColor: myc.ui.Theme.GRAY_BACKGROUND }); +}`,en,V,En="Now we have everything in place to define the structure of the network:",pn,D,on,Un=`const network = new myc.Network(); +network.setNode(n, createModule(n)); +network.setNodeWithParent(m, createModule(m), n); +network.setNode(a, createNode(a)); +network.setNodeWithParent(b, createNode(b), n); +network.setNodeWithParent(c, createNode(c), m); +network.setNodeWithParent(d, createNode(d), m); +network.setNode(e, createNode(e)); +network.setNode(f, createNode(f)); +network.setEdge(a, b); +network.setEdge(b, c); +network.setEdge(b, d); +network.setEdge(c, d); +network.setEdge(d, e); +network.setEdge(d, f);`,cn,q,Pn=`Once we have defined the network, we can create an instance of NetworkViewer and mount it to the DOM. +First, we create a div container that will hold the viewer.`,ln,$,un,Qn='<div style="width: 500; height: 500" id="app" />',kn,z,Mn=`It’s important to note that this container should have a defined size either via explicitly setting its size, or by deriving it via width: 100% and height: 100%. +Note that this requires the size of the parent to be set as well.`,rn,A,Tn="Then, we are ready to create a viewer:",dn,G,fn,Xn=`const app = document.getElementById('app'); +const viewer = myc.NetworkViewer.create(network, app, { + showBreadcrumbs: true, + minimap: false, +});`,mn,j,Hn=`Finally, we can interact with the representation through methods defined on the viewer. +For example, to set a selection we can simply call:`,wn,B,hn,Zn='await viewer.setSelection(d, { shouldExpand: true });',gn,F,In="Or, we can change the color of certain nodes via the setDecoration function.",vn,O,yn,ns=`await viewer.setDecoration(a, { + backgroundColor: 'rgb(237,249,239)', + borderColor: 'rgb(113,201,117)', +}); + +await viewer.setDecoration(f, { + backgroundColor: 'rgb(252,236,235)', + borderColor: 'rgb(239,90,88)', +});`;return{c(){k=e("h2"),k.textContent=w,d=l(),i=e("p"),i.textContent=v,o=l(),f=e("div"),m=e("div"),y=l(),_=e("p"),_.innerHTML=x,T=l(),c=e("pre"),N=new E(!1),K=l(),C=e("p"),C.textContent=r,J=l(),H=e("pre"),U=new E(!1),Q=l(),I=e("h3"),I.textContent=xn,X=l(),L=e("p"),L.textContent=Nn,Z=l(),R=e("pre"),nn=new E(!1),sn=l(),W=e("p"),W.innerHTML=Cn,an=l(),S=e("pre"),tn=new E(!1),en=l(),V=e("p"),V.textContent=En,pn=l(),D=e("pre"),on=new E(!1),cn=l(),q=e("p"),q.innerHTML=Pn,ln=l(),$=e("pre"),un=new E(!1),kn=l(),z=e("p"),z.innerHTML=Mn,rn=l(),A=e("p"),A.innerHTML=Tn,dn=l(),G=e("pre"),fn=new E(!1),mn=l(),j=e("p"),j.innerHTML=Hn,wn=l(),B=e("pre"),hn=new E(!1),gn=l(),F=e("p"),F.innerHTML=In,vn=l(),O=e("pre"),yn=new E(!1),this.h()},l(n){k=p(n,"H2",{"data-svelte-h":!0}),h(k)!=="svelte-1ris1ql"&&(k.textContent=w),d=u(n),i=p(n,"P",{"data-svelte-h":!0}),h(i)!=="svelte-1qotooc"&&(i.textContent=v),o=u(n),f=p(n,"DIV",{class:!0});var a=g(f);m=p(a,"DIV",{id:!0,style:!0}),g(m).forEach(s),a.forEach(s),y=u(n),_=p(n,"P",{"data-svelte-h":!0}),h(_)!=="svelte-102x2n2"&&(_.innerHTML=x),T=u(n),c=p(n,"PRE",{class:!0});var Ln=g(c);N=P(Ln,!1),Ln.forEach(s),K=u(n),C=p(n,"P",{"data-svelte-h":!0}),h(C)!=="svelte-16gejv0"&&(C.textContent=r),J=u(n),H=p(n,"PRE",{class:!0});var Rn=g(H);U=P(Rn,!1),Rn.forEach(s),Q=u(n),I=p(n,"H3",{"data-svelte-h":!0}),h(I)!=="svelte-5c902i"&&(I.textContent=xn),X=u(n),L=p(n,"P",{"data-svelte-h":!0}),h(L)!=="svelte-y3yy0"&&(L.textContent=Nn),Z=u(n),R=p(n,"PRE",{class:!0});var Wn=g(R);nn=P(Wn,!1),Wn.forEach(s),sn=u(n),W=p(n,"P",{"data-svelte-h":!0}),h(W)!=="svelte-1fx98rx"&&(W.innerHTML=Cn),an=u(n),S=p(n,"PRE",{class:!0});var Sn=g(S);tn=P(Sn,!1),Sn.forEach(s),en=u(n),V=p(n,"P",{"data-svelte-h":!0}),h(V)!=="svelte-4ep5mx"&&(V.textContent=En),pn=u(n),D=p(n,"PRE",{class:!0});var Vn=g(D);on=P(Vn,!1),Vn.forEach(s),cn=u(n),q=p(n,"P",{"data-svelte-h":!0}),h(q)!=="svelte-jenzwp"&&(q.innerHTML=Pn),ln=u(n),$=p(n,"PRE",{class:!0});var Dn=g($);un=P(Dn,!1),Dn.forEach(s),kn=u(n),z=p(n,"P",{"data-svelte-h":!0}),h(z)!=="svelte-1re30cl"&&(z.innerHTML=Mn),rn=u(n),A=p(n,"P",{"data-svelte-h":!0}),h(A)!=="svelte-1nyp0ad"&&(A.innerHTML=Tn),dn=u(n),G=p(n,"PRE",{class:!0});var qn=g(G);fn=P(qn,!1),qn.forEach(s),mn=u(n),j=p(n,"P",{"data-svelte-h":!0}),h(j)!=="svelte-o12q39"&&(j.innerHTML=Hn),wn=u(n),B=p(n,"PRE",{class:!0});var $n=g(B);hn=P($n,!1),$n.forEach(s),gn=u(n),F=p(n,"P",{"data-svelte-h":!0}),h(F)!=="svelte-99jzb1"&&(F.innerHTML=In),vn=u(n),O=p(n,"PRE",{class:!0});var zn=g(O);yn=P(zn,!1),zn.forEach(s),this.h()},h(){b(m,"id","app"),ss(m,"height","500px"),b(f,"class","border rounded-md overflow-hidden"),N.a=null,b(c,"class","language-sh"),U.a=null,b(H,"class","language-ts"),nn.a=null,b(R,"class","language-ts"),tn.a=null,b(S,"class","language-ts"),on.a=null,b(D,"class","language-ts"),un.a=null,b($,"class","language-html"),fn.a=null,b(G,"class","language-ts"),hn.a=null,b(B,"class","language-ts"),yn.a=null,b(O,"class","language-ts")},m(n,a){t(n,k,a),t(n,d,a),t(n,i,a),t(n,o,a),t(n,f,a),Bn(f,m),M[2](m),t(n,y,a),t(n,_,a),t(n,T,a),t(n,c,a),N.m(Y,c),t(n,K,a),t(n,C,a),t(n,J,a),t(n,H,a),U.m(Kn,H),t(n,Q,a),t(n,I,a),t(n,X,a),t(n,L,a),t(n,Z,a),t(n,R,a),nn.m(Yn,R),t(n,sn,a),t(n,W,a),t(n,an,a),t(n,S,a),tn.m(Jn,S),t(n,en,a),t(n,V,a),t(n,pn,a),t(n,D,a),on.m(Un,D),t(n,cn,a),t(n,q,a),t(n,ln,a),t(n,$,a),un.m(Qn,$),t(n,kn,a),t(n,z,a),t(n,rn,a),t(n,A,a),t(n,dn,a),t(n,G,a),fn.m(Xn,G),t(n,mn,a),t(n,j,a),t(n,wn,a),t(n,B,a),hn.m(Zn,B),t(n,gn,a),t(n,F,a),t(n,vn,a),t(n,O,a),yn.m(ns,O)},p:bn,i:bn,o:bn,d(n){n&&(s(k),s(d),s(i),s(o),s(f),s(y),s(_),s(T),s(c),s(K),s(C),s(J),s(H),s(Q),s(I),s(X),s(L),s(Z),s(R),s(sn),s(W),s(an),s(S),s(en),s(V),s(pn),s(D),s(cn),s(q),s(ln),s($),s(kn),s(z),s(rn),s(A),s(dn),s(G),s(mn),s(j),s(wn),s(B),s(gn),s(F),s(vn),s(O)),M[2](null)}}}function fs(M,k,w){const[d,i,v,o,f,m]=["a","b","c","d","e","f"],[y,_]=["m","n"];function x(r){return new An(r,new Gn(new _n("Node").with({fontWeight:600}),new _n(r))).with({selectable:!0,...r===i&&{badge:{color:"red",text:"i"}}})}function T(r){return new An(r,new Gn(new _n("Module").with({fontWeight:600}),new _n(r))).with({backgroundColor:void 0})}const c=new ks;c.setNode(_,T(_)),c.setNodeWithParent(y,T(y),_),c.setNode(d,x(d)),c.setNodeWithParent(i,x(i),_),c.setNodeWithParent(v,x(v),y),c.setNodeWithParent(o,x(o),y),c.setNode(f,x(f)),c.setNode(m,x(m)),c.setEdge(d,i),c.setEdge(i,v),c.setEdge(i,o),c.setEdge(v,o),c.setEdge(o,f),c.setEdge(o,m);let N,Y;as(()=>{w(1,Y=rs.create(c,N,{showBreadcrumbs:!0,showResetView:!0,minimap:!1,watermark:!1}))});async function K(r){r!==void 0&&(await r.setSelection(o,{shouldExpand:!0}),r.setDecoration(d,{backgroundColor:"rgb(237,249,239)",borderColor:"rgb(113,201,117)"}),r.setDecoration(m,{backgroundColor:"rgb(252,236,235)",borderColor:"rgb(239,90,88)"}))}function C(r){ts[r?"unshift":"push"](()=>{N=r,w(0,N)})}return M.$$.update=()=>{M.$$.dirty&2&&K(Y)},[N,Y,C]}class ms extends Fn{constructor(k){super(),On(this,k,fs,ds,jn,{})}}function ws(M){let k,w,d,i,v;return i=new ms({}),{c(){k=l(),w=e("div"),d=e("article"),ps(i.$$.fragment),this.h()},l(o){es("svelte-1c3kfvx",document.head).forEach(s),k=u(o),w=p(o,"DIV",{class:!0});var m=g(w);d=p(m,"ARTICLE",{});var y=g(d);os(i.$$.fragment,y),y.forEach(s),m.forEach(s),this.h()},h(){document.title="Mycelium • Getting Started",b(w,"class","mt-10 container prose")},m(o,f){t(o,k,f),t(o,w,f),Bn(w,d),cs(i,d,null),v=!0},p:bn,i(o){v||(ls(i.$$.fragment,o),v=!0)},o(o){us(i.$$.fragment,o),v=!1},d(o){o&&(s(k),s(w)),is(i)}}}class _s extends Fn{constructor(k){super(),On(this,k,null,ws,jn,{})}}export{_s as component}; diff --git a/_app/immutable/nodes/2.BRv-xxml.js b/_app/immutable/nodes/2.BRv-xxml.js new file mode 100644 index 0000000..d67ab7e --- /dev/null +++ b/_app/immutable/nodes/2.BRv-xxml.js @@ -0,0 +1 @@ +import{s as v,e as p,a as x,c as u,b as $,g as b,d as y,f as m,h as f,i as w,j as d,k,u as D,l as M,m as j}from"../chunks/scheduler.BZf3Antt.js";import{S as q,i as H,c as L,a as T,m as C,t as _,b as g,d as N}from"../chunks/index.C7bWdOrd.js";import{D as S}from"../chunks/DragDrop.BcO43fWJ.js";import{b as h}from"../chunks/paths.DMfsdrqg.js";function V(o){let t;const l=o[0].default,a=k(l,o,o[1],null);return{c(){a&&a.c()},l(e){a&&a.l(e)},m(e,s){a&&a.m(e,s),t=!0},p(e,s){a&&a.p&&(!t||s&2)&&D(a,l,e,e[1],t?j(l,e[1],s,null):M(e[1]),null)},i(e){t||(_(a,e),t=!0)},o(e){g(a,e),t=!1},d(e){a&&a.d(e)}}}function z(o){let t,l,a=`
 Mycelium
Drop an .onnx file into the area below to quickly visualize it.
Made with ❤️ for Talaria
`,e,s,i;return s=new S({props:{$$slots:{default:[V]},$$scope:{ctx:o}}}),{c(){t=p("div"),l=p("nav"),l.innerHTML=a,e=x(),L(s.$$.fragment),this.h()},l(n){t=u(n,"DIV",{class:!0});var r=$(t);l=u(r,"NAV",{class:!0,"data-svelte-h":!0}),b(l)!=="svelte-vjaqyl"&&(l.innerHTML=a),e=y(r),T(s.$$.fragment,r),r.forEach(m),this.h()},h(){f(l,"class","bg-white shadow py-2 border-b"),f(t,"class","h-screen flex flex-col")},m(n,r){w(n,t,r),d(t,l),d(t,e),C(s,t,null),i=!0},p(n,[r]){const c={};r&2&&(c.$$scope={dirty:r,ctx:n}),s.$set(c)},i(n){i||(_(s.$$.fragment,n),i=!0)},o(n){g(s.$$.fragment,n),i=!1},d(n){n&&m(t),N(s)}}}function A(o,t,l){let{$$slots:a={},$$scope:e}=t;return o.$$set=s=>{"$$scope"in s&&l(1,e=s.$$scope)},[a,e]}class B extends q{constructor(t){super(),H(this,t,A,z,v,{})}}export{B as component}; diff --git a/_app/immutable/nodes/3.BvfQdEdE.js b/_app/immutable/nodes/3.BvfQdEdE.js new file mode 100644 index 0000000..fcee1c5 --- /dev/null +++ b/_app/immutable/nodes/3.BvfQdEdE.js @@ -0,0 +1 @@ +import{s as r,k as u,e as f,c,b as _,f as i,h as m,i as d,u as h,l as p,m as $}from"../chunks/scheduler.BZf3Antt.js";import{S as v,i as b,t as g,b as y}from"../chunks/index.C7bWdOrd.js";function S(n){let e,a;const o=n[1].default,s=u(o,n,n[0],null);return{c(){e=f("div"),s&&s.c(),this.h()},l(t){e=c(t,"DIV",{class:!0});var l=_(e);s&&s.l(l),l.forEach(i),this.h()},h(){m(e,"class","w-full h-full")},m(t,l){d(t,e,l),s&&s.m(e,null),a=!0},p(t,[l]){s&&s.p&&(!a||l&1)&&h(s,o,t,t[0],a?$(o,t[0],l,null):p(t[0]),null)},i(t){a||(g(s,t),a=!0)},o(t){y(s,t),a=!1},d(t){t&&i(e),s&&s.d(t)}}}function k(n,e,a){let{$$slots:o={},$$scope:s}=e;return n.$$set=t=>{"$$scope"in t&&a(0,s=t.$$scope)},[s,o]}class C extends v{constructor(e){super(),b(this,e,k,S,r,{})}}export{C as component}; diff --git a/_app/immutable/nodes/4.DiHzs_sq.js b/_app/immutable/nodes/4.DiHzs_sq.js new file mode 100644 index 0000000..b2a9143 --- /dev/null +++ b/_app/immutable/nodes/4.DiHzs_sq.js @@ -0,0 +1 @@ +import{s as oe,k as ie,e as n,a as L,c as o,b as u,g as T,d as A,f,h as r,i as ce,j as a,u as de,l as fe,m as me}from"../chunks/scheduler.BZf3Antt.js";import{S as ue,i as pe,c as K,a as Q,m as U,t as z,b as G,d as W}from"../chunks/index.C7bWdOrd.js";import{D as ge}from"../chunks/DragDrop.BcO43fWJ.js";import{b as S}from"../chunks/paths.DMfsdrqg.js";import{I as le,A as ne}from"../chunks/index.Cv9_d-Ac.js";function he(p){let t,i,e,l,g=` Mycelium`,N,$,X=`Viewer Gallery Getting Started Documentation`,P,h,_,b,E,Y="GitHub",y,k,w,D,I,Z="NPM",C,q,d,v,ee='
',R,O,x,te='
',V;y=new le({props:{src:ne,theme:"solid",class:"text-gray-300 h-4 w-auto"}}),C=new le({props:{src:ne,theme:"solid",class:"text-gray-300 h-4 w-auto"}});const B=p[0].default,c=ie(B,p,p[1],null);return{c(){t=n("div"),i=n("header"),e=n("nav"),l=n("div"),l.innerHTML=g,N=L(),$=n("div"),$.innerHTML=X,P=L(),h=n("div"),_=n("a"),b=n("div"),E=n("span"),E.textContent=Y,K(y.$$.fragment),k=L(),w=n("a"),D=n("div"),I=n("span"),I.textContent=Z,K(C.$$.fragment),q=L(),d=n("div"),v=n("div"),v.innerHTML=ee,R=L(),c&&c.c(),O=L(),x=n("div"),x.innerHTML=te,this.h()},l(s){t=o(s,"DIV",{class:!0});var m=u(t);i=o(m,"HEADER",{class:!0});var ae=u(i);e=o(ae,"NAV",{class:!0,"aria-label":!0});var H=u(e);l=o(H,"DIV",{class:!0,"data-svelte-h":!0}),T(l)!=="svelte-him6wi"&&(l.innerHTML=g),N=A(H),$=o(H,"DIV",{class:!0,"data-svelte-h":!0}),T($)!=="svelte-173lg03"&&($.innerHTML=X),P=A(H),h=o(H,"DIV",{class:!0});var j=u(h);_=o(j,"A",{href:!0,class:!0});var se=u(_);b=o(se,"DIV",{class:!0});var F=u(b);E=o(F,"SPAN",{"data-svelte-h":!0}),T(E)!=="svelte-1l01zul"&&(E.textContent=Y),Q(y.$$.fragment,F),F.forEach(f),se.forEach(f),k=A(j),w=o(j,"A",{href:!0,class:!0});var re=u(w);D=o(re,"DIV",{class:!0});var J=u(D);I=o(J,"SPAN",{"data-svelte-h":!0}),T(I)!=="svelte-1do0aoh"&&(I.textContent=Z),Q(C.$$.fragment,J),J.forEach(f),re.forEach(f),j.forEach(f),H.forEach(f),ae.forEach(f),q=A(m),d=o(m,"DIV",{class:!0});var M=u(d);v=o(M,"DIV",{class:!0,"aria-hidden":!0,"data-svelte-h":!0}),T(v)!=="svelte-10d3ifl"&&(v.innerHTML=ee),R=A(M),c&&c.l(M),O=A(M),x=o(M,"DIV",{class:!0,"aria-hidden":!0,"data-svelte-h":!0}),T(x)!=="svelte-2vbjet"&&(x.innerHTML=te),M.forEach(f),m.forEach(f),this.h()},h(){r(l,"class","flex lg:flex-1"),r($,"class","hidden lg:flex lg:gap-x-12"),r(b,"class","flex gap-1 items-center"),r(_,"href","https://github.com/apple/ml-mycelium"),r(_,"class","text-sm font-semibold leading-6 text-gray-900 hover:text-gray-600"),r(D,"class","flex gap-1 items-center"),r(w,"href","https://www.npmjs.com/package/@apple/mycelium"),r(w,"class","text-sm font-semibold leading-6 text-gray-900 hover:text-gray-600"),r(h,"class","hidden lg:flex lg:flex-1 lg:justify-end gap-4"),r(e,"class","flex items-center justify-between p-6 lg:px-8"),r(e,"aria-label","Global"),r(i,"class","absolute inset-x-0 top-0 z-50"),r(v,"class","absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"),r(v,"aria-hidden","true"),r(x,"class","absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"),r(x,"aria-hidden","true"),r(d,"class","relative isolate pt-14"),r(t,"class","bg-white")},m(s,m){ce(s,t,m),a(t,i),a(i,e),a(e,l),a(e,N),a(e,$),a(e,P),a(e,h),a(h,_),a(_,b),a(b,E),U(y,b,null),a(h,k),a(h,w),a(w,D),a(D,I),U(C,D,null),a(t,q),a(t,d),a(d,v),a(d,R),c&&c.m(d,null),a(d,O),a(d,x),V=!0},p(s,m){c&&c.p&&(!V||m&2)&&de(c,B,s,s[1],V?me(B,s[1],m,null):fe(s[1]),null)},i(s){V||(z(y.$$.fragment,s),z(C.$$.fragment,s),z(c,s),V=!0)},o(s){G(y.$$.fragment,s),G(C.$$.fragment,s),G(c,s),V=!1},d(s){s&&f(t),W(y),W(C),c&&c.d(s)}}}function ve(p){let t,i;return t=new ge({props:{$$slots:{default:[he]},$$scope:{ctx:p}}}),{c(){K(t.$$.fragment)},l(e){Q(t.$$.fragment,e)},m(e,l){U(t,e,l),i=!0},p(e,[l]){const g={};l&2&&(g.$$scope={dirty:l,ctx:e}),t.$set(g)},i(e){i||(z(t.$$.fragment,e),i=!0)},o(e){G(t.$$.fragment,e),i=!1},d(e){W(t,e)}}}function xe(p,t,i){let{$$slots:e={},$$scope:l}=t;return p.$$set=g=>{"$$scope"in g&&i(1,l=g.$$scope)},[e,l]}class De extends ue{constructor(t){super(),pe(this,t,xe,ve,oe,{})}}export{De as component}; diff --git a/_app/immutable/nodes/5.CYNtbkdG.js b/_app/immutable/nodes/5.CYNtbkdG.js new file mode 100644 index 0000000..34a9ef0 --- /dev/null +++ b/_app/immutable/nodes/5.CYNtbkdG.js @@ -0,0 +1 @@ +import{b as s}from"../chunks/paths.DMfsdrqg.js";import{c as i}from"../chunks/dot.Bgkvpxeo.js";import{s as c}from"../chunks/scheduler.BZf3Antt.js";import{S as m,i as p,c as f,a as l,m as u,t as _,b as d,d as w}from"../chunks/index.C7bWdOrd.js";import{V as g}from"../chunks/Viewer.C5t0eI9O.js";async function $({fetch:o}){const n=await(await o(`${s}/examples/graphviz.dot`)).text();return{network:i(n)}}const z=Object.freeze(Object.defineProperty({__proto__:null,load:$},Symbol.toStringTag,{value:"Module"}));function k(o){let e,n;return e=new g({props:{title:"Graphviz Dot • Example",network:o[0].network}}),{c(){f(e.$$.fragment)},l(t){l(e.$$.fragment,t)},m(t,r){u(e,t,r),n=!0},p(t,[r]){const a={};r&1&&(a.network=t[0].network),e.$set(a)},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){d(e.$$.fragment,t),n=!1},d(t){w(e,t)}}}function v(o,e,n){let{data:t}=e;return o.$$set=r=>{"data"in r&&n(0,t=r.data)},[t]}class j extends m{constructor(e){super(),p(this,e,v,k,c,{data:0})}}export{j as component,z as universal}; diff --git a/_app/immutable/nodes/6.v-Ra4cbK.js b/_app/immutable/nodes/6.v-Ra4cbK.js new file mode 100644 index 0000000..bfb9899 --- /dev/null +++ b/_app/immutable/nodes/6.v-Ra4cbK.js @@ -0,0 +1 @@ +import{c as s}from"../chunks/index.BeFZgILa.js";import{b as i}from"../chunks/paths.DMfsdrqg.js";import{s as c}from"../chunks/scheduler.BZf3Antt.js";import{S as m,i as l,c as f,a as p,m as u,t as _,b as w,d}from"../chunks/index.C7bWdOrd.js";import{V as g}from"../chunks/Viewer.C5t0eI9O.js";async function $({fetch:r}){const n=await(await r(`${i}/examples/lenet.onnx`)).arrayBuffer(),e=new Uint8Array(n);return{network:s(e)}}const j=Object.freeze(Object.defineProperty({__proto__:null,load:$},Symbol.toStringTag,{value:"Module"}));function b(r){let t,n;return t=new g({props:{title:"LeNet • Example",network:r[0].network}}),{c(){f(t.$$.fragment)},l(e){p(t.$$.fragment,e)},m(e,o){u(t,e,o),n=!0},p(e,[o]){const a={};o&1&&(a.network=e[0].network),t.$set(a)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){w(t.$$.fragment,e),n=!1},d(e){d(t,e)}}}function k(r,t,n){let{data:e}=t;return r.$$set=o=>{"data"in o&&n(0,e=o.data)},[e]}class M extends m{constructor(t){super(),l(this,t,k,b,c,{data:0})}}export{M as component,j as universal}; diff --git a/_app/immutable/nodes/7.7oBUziAX.js b/_app/immutable/nodes/7.7oBUziAX.js new file mode 100644 index 0000000..98c56bf --- /dev/null +++ b/_app/immutable/nodes/7.7oBUziAX.js @@ -0,0 +1 @@ +import{s as b,n as N}from"../chunks/scheduler.BZf3Antt.js";import{S as h,i as $,c as k,a as _,m as C,t as E,b as W,d as P}from"../chunks/index.C7bWdOrd.js";import{V as x}from"../chunks/Viewer.C5t0eI9O.js";import{N as S,a as f,V as w,T as l,c as V}from"../chunks/viewer.BYFc8Cdc.js";function y(i){let e,n;return e=new x({props:{title:"Simple Network • Example",network:i[0]}}),e.$on("created",i[1]),{c(){k(e.$$.fragment)},l(o){_(e.$$.fragment,o)},m(o,a){C(e,o,a),n=!0},p:N,i(o){n||(E(e.$$.fragment,o),n=!0)},o(o){W(e.$$.fragment,o),n=!1},d(o){P(e,o)}}}function D(i){const[e,n,o,a,u,c]=["a","b","c","d","e","f"],[d,m]=["m","n"];function s(r){return new f(r,new w(new l("Node").with({fontWeight:600}),new l(r))).with({selectable:!0,...r===n&&{badge:{color:"red",text:"i"}}})}function g(r){return new f(r,new w(new l("Module").with({fontWeight:600}),new l(r))).with({backgroundColor:V.background.gray})}const t=new S;t.setNode(m,g(m)),t.setNodeWithParent(d,g(d),m),t.setNode(e,s(e)),t.setNodeWithParent(n,s(n),m),t.setNodeWithParent(o,s(o),d),t.setNodeWithParent(a,s(a),d),t.setNode(u,s(u)),t.setNode(c,s(c)),t.setEdge(e,n),t.setEdge(n,o),t.setEdge(n,a),t.setEdge(o,a),t.setEdge(a,u),t.setEdge(a,c);function p({detail:{viewer:r}}){r.setDecoration(e,{backgroundColor:"rgb(237,249,239)",borderColor:"rgb(113,201,117)"}),r.setDecoration(c,{backgroundColor:"rgb(252,236,235)",borderColor:"rgb(239,90,88)"})}return[t,p]}class j extends h{constructor(e){super(),$(this,e,D,y,b,{})}}export{j as component}; diff --git a/_app/immutable/nodes/8.Cr5xcWYm.js b/_app/immutable/nodes/8.Cr5xcWYm.js new file mode 100644 index 0000000..f33ae56 --- /dev/null +++ b/_app/immutable/nodes/8.Cr5xcWYm.js @@ -0,0 +1 @@ +import{v as k}from"../chunks/stores.BEpXIDt_.js";import{s as w,a as $,B as m,o as x,f as u,d as M,i as p,e as V,c as D,g as N,h as S,n as _}from"../chunks/scheduler.BZf3Antt.js";import{S as P,i as T,b as f,e as y,t as d,g,c as j,a as q,m as z,d as B}from"../chunks/index.C7bWdOrd.js";import{V as C}from"../chunks/Viewer.C5t0eI9O.js";import{c as E}from"../chunks/dot.Bgkvpxeo.js";import{c as H}from"../chunks/index.BeFZgILa.js";async function L({url:n,fetch:o}){const t=n.searchParams.get("url");if(t){const e=await o(t);if(e.url.endsWith(".onnx")){const r=await e.arrayBuffer();k.set({kind:"onnx",data:new Uint8Array(r)})}else if(e.url.endsWith(".dot")){const r=await e.text();k.set({kind:"dot",data:r})}else throw new Error(`unsupported file format: ${e.url}`)}}const R=Object.freeze(Object.defineProperty({__proto__:null,load:L},Symbol.toStringTag,{value:"Module"}));function O(n){let o,t='
Drop file here...
';return{c(){o=V("div"),o.innerHTML=t,this.h()},l(e){o=D(e,"DIV",{class:!0,"data-svelte-h":!0}),N(o)!=="svelte-19u92z9"&&(o.innerHTML=t),this.h()},h(){S(o,"class","grid w-full h-full place-items-center bg-gray-quaternary")},m(e,r){p(e,o,r)},p:_,i:_,o:_,d(e){e&&u(o)}}}function U(n){let o=n[0],t,e,r=v(n);return{c(){r.c(),t=m()},l(s){r.l(s),t=m()},m(s,i){r.m(s,i),p(s,t,i),e=!0},p(s,i){i&1&&w(o,o=s[0])?(g(),f(r,1,1,_),y(),r=v(s),r.c(),d(r,1),r.m(t.parentNode,t)):r.p(s,i)},i(s){e||(d(r),e=!0)},o(s){f(r),e=!1},d(s){s&&u(t),r.d(s)}}}function v(n){let o,t;return o=new C({props:{title:"Viewer",network:n[0]}}),{c(){j(o.$$.fragment)},l(e){q(o.$$.fragment,e)},m(e,r){z(o,e,r),t=!0},p(e,r){const s={};r&1&&(s.network=e[0]),o.$set(s)},i(e){t||(d(o.$$.fragment,e),t=!0)},o(e){f(o.$$.fragment,e),t=!1},d(e){B(o,e)}}}function W(n){let o,t,e,r,s;const i=[U,O],l=[];function b(a,c){return a[0]?0:1}return t=b(n),e=l[t]=i[t](n),{c(){o=$(),e.c(),r=m(),this.h()},l(a){x("svelte-1te25ve",document.head).forEach(u),o=M(a),e.l(a),r=m(),this.h()},h(){document.title="Viewer • Mycelium"},m(a,c){p(a,o,c),l[t].m(a,c),p(a,r,c),s=!0},p(a,[c]){let h=t;t=b(a),t===h?l[t].p(a,c):(g(),f(l[h],1,1,()=>{l[h]=null}),y(),e=l[t],e?e.p(a,c):(e=l[t]=i[t](a),e.c()),d(e,1),e.m(r.parentNode,r))},i(a){s||(d(e),s=!0)},o(a){f(e),s=!1},d(a){a&&(u(o),u(r)),l[t].d(a)}}}function A(n,o,t){let e;return k.subscribe(r=>{switch(r?.kind){case void 0:break;case"dot":t(0,e=E(r.data));break;case"onnx":t(0,e=H(r.data));break}}),[e]}class X extends P{constructor(o){super(),T(this,o,A,W,w,{})}}export{X as component,R as universal}; diff --git a/_app/immutable/nodes/9._qEB0pM-.js b/_app/immutable/nodes/9._qEB0pM-.js new file mode 100644 index 0000000..fb9b820 --- /dev/null +++ b/_app/immutable/nodes/9._qEB0pM-.js @@ -0,0 +1,22 @@ +import{s as J,e as b,J as ue,c as v,b as k,K as fe,f,h as _,i as x,n as L,k as Y,a as M,t as H,d as V,v as j,j as $,w as F,u as ee,l as te,m as ne,a0 as ae,a1 as de,o as me,g as G,L as he,q as ge,r as pe}from"../chunks/scheduler.BZf3Antt.js";import{S as O,i as R,c as S,a as T,m as P,t as E,b as N,d as z,g as _e,e as $e}from"../chunks/index.C7bWdOrd.js";import{b as Q}from"../chunks/paths.DMfsdrqg.js";/* empty css */import{I as be,B as ve,C as we,L as xe,a as ye}from"../chunks/index.Cv9_d-Ac.js";import{N as ke,a as le,V as ie,T as X,c as Ce,b as Ee}from"../chunks/viewer.BYFc8Cdc.js";function De(i){let e,n,s=`@inproceedings{Hoh+2024, + title={Talaria: Interactively Optimizing Machine Learning Models for Efficient Inference}, + author={Fred Hohman and Chaoqun Wang and Jinmook Lee and Jochen Görtler and Dominik Moritz and Jeffrey Bigham and Zhile Ren and Cecile Foret and Qi Shan and Xiaoyi Zhang}, + booktitle={Proceedings of the SIGCHI Conference on Human Factors in Computing Systems}, + year={2024}, + organization={ACM}, + doi={10.1145/3613904.3642628} + url = {https://arxiv.org/abs/2404.03085} +}`;return{c(){e=b("pre"),n=new ue(!1),this.h()},l(t){e=v(t,"PRE",{class:!0});var a=k(e);n=fe(a,!1),a.forEach(f),this.h()},h(){n.a=null,_(e,"class","language-bib")},m(t,a){x(t,e,a),n.m(s,e)},p:L,i:L,o:L,d(t){t&&f(e)}}}class Me extends O{constructor(e){super(),R(this,e,null,De,J,{})}}function Ve(i){let e,n,s,t,a,u,l,r,c;t=new be({props:{src:i[1],theme:"solid",class:"text-white h-6 w-auto"}});const h=i[3].default,p=Y(h,i,i[2],null);return{c(){e=b("div"),n=b("dt"),s=b("div"),S(t.$$.fragment),a=M(),u=H(i[0]),l=M(),r=b("dd"),p&&p.c(),this.h()},l(d){e=v(d,"DIV",{class:!0});var o=k(e);n=v(o,"DT",{class:!0});var m=k(n);s=v(m,"DIV",{class:!0});var D=k(s);T(t.$$.fragment,D),D.forEach(f),a=V(m),u=j(m,i[0]),m.forEach(f),l=V(o),r=v(o,"DD",{class:!0});var C=k(r);p&&p.l(C),C.forEach(f),o.forEach(f),this.h()},h(){_(s,"class","absolute left-0 top-0 flex h-10 w-10 items-center justify-center rounded-lg bg-blue-600"),_(n,"class","text-base font-semibold leading-7 text-gray-900"),_(r,"class","mt-2 text-base leading-7 text-gray-600"),_(e,"class","relative pl-16")},m(d,o){x(d,e,o),$(e,n),$(n,s),P(t,s,null),$(n,a),$(n,u),$(e,l),$(e,r),p&&p.m(r,null),c=!0},p(d,[o]){const m={};o&2&&(m.src=d[1]),t.$set(m),(!c||o&1)&&F(u,d[0]),p&&p.p&&(!c||o&4)&&ee(p,h,d,d[2],c?ne(h,d[2],o,null):te(d[2]),null)},i(d){c||(E(t.$$.fragment,d),E(p,d),c=!0)},o(d){N(t.$$.fragment,d),N(p,d),c=!1},d(d){d&&f(e),z(t),p&&p.d(d)}}}function Ne(i,e,n){let{$$slots:s={},$$scope:t}=e,{title:a}=e,{icon:u}=e;return i.$$set=l=>{"title"in l&&n(0,a=l.title),"icon"in l&&n(1,u=l.icon),"$$scope"in l&&n(2,t=l.$$scope)},[a,u,t,s]}class Z extends O{constructor(e){super(),R(this,e,Ne,Ve,J,{title:0,icon:1})}}function Ie(i){let e,n,s;return{c(){e=b("span"),n=b("span"),s=H(i[1]),this.h()},l(t){e=v(t,"SPAN",{class:!0});var a=k(e);n=v(a,"SPAN",{class:!0});var u=k(n);s=j(u,i[1]),u.forEach(f),a.forEach(f),this.h()},h(){_(n,"class","text-xl font-medium leading-none text-white"),_(e,"class","inline-flex h-12 w-12 items-center justify-center rounded-full bg-gray-500")},m(t,a){x(t,e,a),$(e,n),$(n,s)},p(t,a){a&2&&F(s,t[1])},d(t){t&&f(e)}}}function Se(i){let e,n,s;return{c(){e=b("img"),this.h()},l(t){e=v(t,"IMG",{class:!0,src:!0,alt:!0}),this.h()},h(){_(e,"class","inline-block h-12 w-12 rounded-full"),ae(e.src,n=i[1])||_(e,"src",n),_(e,"alt",s=`Picture of ${i[0]}`)},m(t,a){x(t,e,a)},p(t,a){a&2&&!ae(e.src,n=t[1])&&_(e,"src",n),a&1&&s!==(s=`Picture of ${t[0]}`)&&_(e,"alt",s)},d(t){t&&f(e)}}}function Te(i){let e,n,s,t;function a(r,c){return r[1].length>2?Se:Ie}let u=a(i),l=u(i);return{c(){e=b("div"),l.c(),n=M(),s=b("div"),t=H(i[0]),this.h()},l(r){e=v(r,"DIV",{class:!0});var c=k(e);l.l(c),n=V(c),s=v(c,"DIV",{class:!0});var h=k(s);t=j(h,i[0]),h.forEach(f),c.forEach(f),this.h()},h(){_(s,"class","text-gray-900"),_(e,"class","flex flex-col items-center gap-2")},m(r,c){x(r,e,c),l.m(e,null),$(e,n),$(e,s),$(s,t)},p(r,[c]){u===(u=a(r))&&l?l.p(r,c):(l.d(1),l=u(r),l&&(l.c(),l.m(e,n))),c&1&&F(t,r[0])},i:L,o:L,d(r){r&&f(e),l.d()}}}function Pe(i,e,n){let{name:s}=e,{icon:t}=e;return i.$$set=a=>{"name"in a&&n(0,s=a.name),"icon"in a&&n(1,t=a.icon)},[s,t]}class U extends O{constructor(e){super(),R(this,e,Pe,Te,J,{name:0,icon:1})}}const ze=i=>({}),re=i=>({});function oe(i){let e,n;return{c(){e=b("h2"),n=H(i[1]),this.h()},l(s){e=v(s,"H2",{class:!0});var t=k(e);n=j(t,i[1]),t.forEach(f),this.h()},h(){_(e,"class","text-base font-semibold leading-7 text-blue-600")},m(s,t){x(s,e,t),$(e,n)},p(s,t){t&2&&F(n,s[1])},d(s){s&&f(e)}}}function ce(i){let e,n;const s=i[4].subtitle,t=Y(s,i,i[3],re);return{c(){e=b("p"),t&&t.c(),this.h()},l(a){e=v(a,"P",{class:!0});var u=k(e);t&&t.l(u),u.forEach(f),this.h()},h(){_(e,"class","mt-6 text-lg leading-8 text-gray-600")},m(a,u){x(a,e,u),t&&t.m(e,null),n=!0},p(a,u){t&&t.p&&(!n||u&8)&&ee(t,s,a,a[3],n?ne(s,a[3],u,ze):te(a[3]),re)},i(a){n||(E(t,a),n=!0)},o(a){N(t,a),n=!1},d(a){a&&f(e),t&&t.d(a)}}}function He(i){let e,n,s,t,a,u,l,r,c=i[1]&&oe(i),h=i[2].subtitle&&ce(i);const p=i[4].default,d=Y(p,i,i[3],null);return{c(){e=b("div"),c&&c.c(),n=M(),s=b("p"),t=H(i[0]),a=M(),h&&h.c(),u=M(),l=b("div"),d&&d.c(),this.h()},l(o){e=v(o,"DIV",{class:!0});var m=k(e);c&&c.l(m),n=V(m),s=v(m,"P",{class:!0});var D=k(s);t=j(D,i[0]),D.forEach(f),a=V(m),h&&h.l(m),m.forEach(f),u=V(o),l=v(o,"DIV",{class:!0});var C=k(l);d&&d.l(C),C.forEach(f),this.h()},h(){_(s,"class","mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"),_(e,"class","mt-16 sm:mt-24 mx-auto max-w-2xl lg:text-center"),_(l,"class","mx-auto max-w-2xl lg:max-w-4xl")},m(o,m){x(o,e,m),c&&c.m(e,null),$(e,n),$(e,s),$(s,t),$(e,a),h&&h.m(e,null),x(o,u,m),x(o,l,m),d&&d.m(l,null),r=!0},p(o,[m]){o[1]?c?c.p(o,m):(c=oe(o),c.c(),c.m(e,n)):c&&(c.d(1),c=null),(!r||m&1)&&F(t,o[0]),o[2].subtitle?h?(h.p(o,m),m&4&&E(h,1)):(h=ce(o),h.c(),E(h,1),h.m(e,null)):h&&(_e(),N(h,1,1,()=>{h=null}),$e()),d&&d.p&&(!r||m&8)&&ee(d,p,o,o[3],r?ne(p,o[3],m,null):te(o[3]),null)},i(o){r||(E(h),E(d,o),r=!0)},o(o){N(h),N(d,o),r=!1},d(o){o&&(f(e),f(u),f(l)),c&&c.d(),h&&h.d(),d&&d.d(o)}}}function je(i,e,n){let{$$slots:s={},$$scope:t}=e;const a=de(s);let{title:u}=e,{tagline:l=void 0}=e;return i.$$set=r=>{"title"in r&&n(0,u=r.title),"tagline"in r&&n(1,l=r.tagline),"$$scope"in r&&n(3,t=r.$$scope)},[u,l,a,t,s]}class K extends O{constructor(e){super(),R(this,e,je,He,J,{title:0,tagline:1})}}function Ae(i){let e;return{c(){e=H(`Based on SVG but can handle models with thousands of nodes through hierarchical + clustering.`)},l(n){e=j(n,`Based on SVG but can handle models with thousands of nodes through hierarchical + clustering.`)},m(n,s){x(n,e,s)},d(n){n&&f(e)}}}function Le(i){let e;return{c(){e=H(`Comes with ONNX support out of the box. By writing a loader you can use Mycelium with any + graph or model format.`)},l(n){e=j(n,`Comes with ONNX support out of the box. By writing a loader you can use Mycelium with any + graph or model format.`)},m(n,s){x(n,e,s)},d(n){n&&f(e)}}}function Be(i){let e;return{c(){e=H(`The graph viewer—although written in Svelte—is framework agnostic and can be embedded + into any application by mounting it directly to the DOM.`)},l(n){e=j(n,`The graph viewer—although written in Svelte—is framework agnostic and can be embedded + into any application by mounting it directly to the DOM.`)},m(n,s){x(n,e,s)},d(n){n&&f(e)}}}function We(i){let e;return{c(){e=H(`Mycelium leverages SVG together with a tiny UI framework to allow rich contents in nodes + and tooltips.`)},l(n){e=j(n,`Mycelium leverages SVG together with a tiny UI framework to allow rich contents in nodes + and tooltips.`)},m(n,s){x(n,e,s)},d(n){n&&f(e)}}}function Ge(i){let e,n,s,t,a,u;return n=new Z({props:{title:"Performance",icon:ve,$$slots:{default:[Ae]},$$scope:{ctx:i}}}),s=new Z({props:{title:"Model Support",icon:we,$$slots:{default:[Le]},$$scope:{ctx:i}}}),t=new Z({props:{title:"Embeddable",icon:xe,$$slots:{default:[Be]},$$scope:{ctx:i}}}),a=new Z({props:{title:"Customizable",icon:ye,$$slots:{default:[We]},$$scope:{ctx:i}}}),{c(){e=b("dl"),S(n.$$.fragment),S(s.$$.fragment),S(t.$$.fragment),S(a.$$.fragment),this.h()},l(l){e=v(l,"DL",{class:!0});var r=k(e);T(n.$$.fragment,r),T(s.$$.fragment,r),T(t.$$.fragment,r),T(a.$$.fragment,r),r.forEach(f),this.h()},h(){_(e,"class","mt-16 sm:mt-20 lg:mt-24 grid max-w-xl grid-cols-1 gap-x-8 gap-y-10 lg:max-w-none lg:grid-cols-2 lg:gap-y-16")},m(l,r){x(l,e,r),P(n,e,null),P(s,e,null),P(t,e,null),P(a,e,null),u=!0},p(l,r){const c={};r&32768&&(c.$$scope={dirty:r,ctx:l}),n.$set(c);const h={};r&32768&&(h.$$scope={dirty:r,ctx:l}),s.$set(h);const p={};r&32768&&(p.$$scope={dirty:r,ctx:l}),t.$set(p);const d={};r&32768&&(d.$$scope={dirty:r,ctx:l}),a.$set(d)},i(l){u||(E(n.$$.fragment,l),E(s.$$.fragment,l),E(t.$$.fragment,l),E(a.$$.fragment,l),u=!0)},o(l){N(n.$$.fragment,l),N(s.$$.fragment,l),N(t.$$.fragment,l),N(a.$$.fragment,l),u=!1},d(l){l&&f(e),z(n),z(s),z(t),z(a)}}}function qe(i){let e,n=`Mycelium makes it easy to visualize exactly the characteristics of your machine learning + models that your interested in.`;return{c(){e=b("span"),e.textContent=n,this.h()},l(s){e=v(s,"SPAN",{slot:!0,"data-svelte-h":!0}),G(e)!=="svelte-14pewaz"&&(e.textContent=n),this.h()},h(){_(e,"slot","subtitle")},m(s,t){x(s,e,t)},p:L,d(s){s&&f(e)}}}function Je(i){let e,n="The following authors contributed directly to Mycelium.",s,t,a,u,l,r,c,h,p,d="Acknowledgements",o,m,D,C=["Chaoqun Wang","Jinmook Lee","Dominik Moritz","Jeffrey Bigham","Zhile Ren","Cecile Foret"].join(", ")+"",B,w,W;return a=new U({props:{name:"Jochen Görtler",icon:`${Q}/portrait/jg.png`}}),l=new U({props:{name:"Fred Hohman",icon:`${Q}/portrait/fh.jpeg`}}),c=new U({props:{name:"Xiaoyi Zhang",icon:`${Q}/portrait/xz.jpeg`}}),{c(){e=b("p"),e.textContent=n,s=M(),t=b("div"),S(a.$$.fragment),u=M(),S(l.$$.fragment),r=M(),S(c.$$.fragment),h=M(),p=b("p"),p.textContent=d,o=M(),m=b("p"),D=H(`This project is a collaboration across multiple teams at Apple. We would like to extend our + thanks to all authors of Talaria: `),B=H(C),w=H(", and Qi Shan."),this.h()},l(g){e=v(g,"P",{class:!0,"data-svelte-h":!0}),G(e)!=="svelte-5l8s8t"&&(e.textContent=n),s=V(g),t=v(g,"DIV",{class:!0});var y=k(t);T(a.$$.fragment,y),u=V(y),T(l.$$.fragment,y),r=V(y),T(c.$$.fragment,y),y.forEach(f),h=V(g),p=v(g,"P",{class:!0,"data-svelte-h":!0}),G(p)!=="svelte-5h6xep"&&(p.textContent=d),o=V(g),m=v(g,"P",{class:!0});var A=k(m);D=j(A,`This project is a collaboration across multiple teams at Apple. We would like to extend our + thanks to all authors of Talaria: `),B=j(A,C),w=j(A,", and Qi Shan."),A.forEach(f),this.h()},h(){_(e,"class","mt-8 test-gray-900 text-center"),_(t,"class","mt-16 grid grid-cols-3 lg:mx-32"),_(p,"class","mt-16 sm:mt-20 lg:mt-24 text-lg leading-8 text-gray-600 text-center"),_(m,"class","mt-8 test-gray-900 text-center")},m(g,y){x(g,e,y),x(g,s,y),x(g,t,y),P(a,t,null),$(t,u),P(l,t,null),$(t,r),P(c,t,null),x(g,h,y),x(g,p,y),x(g,o,y),x(g,m,y),$(m,D),$(m,B),$(m,w),W=!0},p:L,i(g){W||(E(a.$$.fragment,g),E(l.$$.fragment,g),E(c.$$.fragment,g),W=!0)},o(g){N(a.$$.fragment,g),N(l.$$.fragment,g),N(c.$$.fragment,g),W=!1},d(g){g&&(f(e),f(s),f(t),f(h),f(p),f(o),f(m)),z(a),z(l),z(c)}}}function Fe(i){let e,n="Authors";return{c(){e=b("span"),e.textContent=n,this.h()},l(s){e=v(s,"SPAN",{slot:!0,"data-svelte-h":!0}),G(e)!=="svelte-1gyvhnn"&&(e.textContent=n),this.h()},h(){_(e,"slot","subtitle")},m(s,t){x(s,e,t)},p:L,d(s){s&&f(e)}}}function Oe(i){let e,n,s;return n=new Me({}),{c(){e=b("div"),S(n.$$.fragment),this.h()},l(t){e=v(t,"DIV",{class:!0});var a=k(e);T(n.$$.fragment,a),a.forEach(f),this.h()},h(){_(e,"class","mt-8 container prose !max-w-none")},m(t,a){x(t,e,a),P(n,e,null),s=!0},p:L,i(t){s||(E(n.$$.fragment,t),s=!0)},o(t){N(n.$$.fragment,t),s=!1},d(t){t&&f(e),z(n)}}}function Re(i){let e,n="You can use to following BibTex entry to cite Talaria (and therefore Mycelium).";return{c(){e=b("span"),e.textContent=n,this.h()},l(s){e=v(s,"SPAN",{slot:!0,"data-svelte-h":!0}),G(e)!=="svelte-hntz8g"&&(e.textContent=n),this.h()},h(){_(e,"slot","subtitle")},m(s,t){x(s,e,t)},p:L,d(s){s&&f(e)}}}function Xe(i){let e,n,s,t,a="Drag an .onnx file anywhere on this page to quickly visualize it.",u,l,r=`

Visualize your machine learning model

Mycelium is a library for creating graph visualizations of machine learning models or any + other directed acyclic graphs. It also powers the graph viewer of the Talaria model + visualization and optimization system.

`,c,h,p,d,o,m,D,C,B,w,W;return m=new K({props:{title:"Everything you need to visualize the structure of your machine learning models",tagline:"Batteries included",$$slots:{subtitle:[qe],default:[Ge]},$$scope:{ctx:i}}}),C=new K({props:{title:"Team",$$slots:{subtitle:[Fe],default:[Je]},$$scope:{ctx:i}}}),w=new K({props:{title:"Attribution",tagline:"We would love to hear from you!",$$slots:{subtitle:[Re],default:[Oe]},$$scope:{ctx:i}}}),{c(){e=M(),n=b("div"),s=b("div"),t=b("div"),t.innerHTML=a,u=M(),l=b("div"),l.innerHTML=r,c=M(),h=b("div"),p=b("div"),d=b("div"),o=M(),S(m.$$.fragment),D=M(),S(C.$$.fragment),B=M(),S(w.$$.fragment),this.h()},l(g){me("svelte-30n5dv",document.head).forEach(f),e=V(g),n=v(g,"DIV",{class:!0});var A=k(n);s=v(A,"DIV",{class:!0});var I=k(s);t=v(I,"DIV",{class:!0,"data-svelte-h":!0}),G(t)!=="svelte-gq1mwl"&&(t.innerHTML=a),u=V(I),l=v(I,"DIV",{class:!0,"data-svelte-h":!0}),G(l)!=="svelte-d7wagu"&&(l.innerHTML=r),c=V(I),h=v(I,"DIV",{class:!0});var q=k(h);p=v(q,"DIV",{class:!0});var se=k(p);d=v(se,"DIV",{id:!0,style:!0}),k(d).forEach(f),se.forEach(f),q.forEach(f),o=V(I),T(m.$$.fragment,I),D=V(I),T(C.$$.fragment,I),B=V(I),T(w.$$.fragment,I),I.forEach(f),A.forEach(f),this.h()},h(){document.title="Mycelium • Graph visualization library",_(t,"class","mb-8 mx-auto text-sm border rounded-lg px-2 py-1 max-w-fit text-violet-800 bg-violet-50 border-violet-600"),_(l,"class","mx-auto max-w-2xl text-center"),_(d,"id","app"),he(d,"height","500px"),_(p,"class","border rounded-md overflow-hidden w-1/2"),_(h,"class","mt-16 flex sm:mt-24 justify-center"),_(s,"class","mx-auto max-w-7xl px-6 lg:px-8"),_(n,"class","py-24 sm:py-32 lg:pb-40")},m(g,y){x(g,e,y),x(g,n,y),$(n,s),$(s,t),$(s,u),$(s,l),$(s,c),$(s,h),$(h,p),$(p,d),i[2](d),$(s,o),P(m,s,null),$(s,D),P(C,s,null),$(s,B),P(w,s,null),W=!0},p(g,[y]){const A={};y&32768&&(A.$$scope={dirty:y,ctx:g}),m.$set(A);const I={};y&32768&&(I.$$scope={dirty:y,ctx:g}),C.$set(I);const q={};y&32768&&(q.$$scope={dirty:y,ctx:g}),w.$set(q)},i(g){W||(E(m.$$.fragment,g),E(C.$$.fragment,g),E(w.$$.fragment,g),W=!0)},o(g){N(m.$$.fragment,g),N(C.$$.fragment,g),N(w.$$.fragment,g),W=!1},d(g){g&&(f(e),f(n)),i[2](null),z(m),z(C),z(w)}}}function Ze(i,e,n){const[s,t,a,u,l,r]=["a","b","c","d","e","f"],[c,h]=["m","n"];function p(w){return new le(w,new ie(new X("Node").with({fontWeight:600}),new X(w))).with({selectable:!0,...w===t&&{badge:{color:"red",text:"i"}}})}function d(w){return new le(w,new ie(new X("Module").with({fontWeight:600}),new X(w))).with({backgroundColor:Ce.background.gray})}const o=new ke;o.setNode(h,d(h)),o.setNodeWithParent(c,d(c),h),o.setNode(s,p(s)),o.setNodeWithParent(t,p(t),h),o.setNodeWithParent(a,p(a),c),o.setNodeWithParent(u,p(u),c),o.setNode(l,p(l)),o.setNode(r,p(r)),o.setEdge(s,t),o.setEdge(t,a),o.setEdge(t,u),o.setEdge(a,u),o.setEdge(u,l),o.setEdge(u,r);let m,D;ge(()=>{n(1,D=Ee.create(o,m,{showBreadcrumbs:!0,showResetView:!0,minimap:!1,watermark:!1}))});async function C(w){w!==void 0&&(await w.setSelection(u,{shouldExpand:!0}),w.setDecoration(s,{backgroundColor:"rgb(237,249,239)",borderColor:"rgb(113,201,117)"}),w.setDecoration(r,{backgroundColor:"rgb(252,236,235)",borderColor:"rgb(239,90,88)"}))}function B(w){pe[w?"unshift":"push"](()=>{m=w,n(0,m)})}return i.$$.update=()=>{i.$$.dirty&2&&C(D).catch(w=>{console.error(w)})},[m,D,B]}class nt extends O{constructor(e){super(),R(this,e,Ze,Xe,J,{})}}export{nt as component}; diff --git a/_app/version.json b/_app/version.json new file mode 100644 index 0000000..d52d9a0 --- /dev/null +++ b/_app/version.json @@ -0,0 +1 @@ +{"version":"1725543191050"} \ No newline at end of file diff --git a/docs/assets/highlight.css b/docs/assets/highlight.css new file mode 100644 index 0000000..d6d523b --- /dev/null +++ b/docs/assets/highlight.css @@ -0,0 +1,92 @@ +:root { + --light-hl-0: #0000FF; + --dark-hl-0: #569CD6; + --light-hl-1: #000000; + --dark-hl-1: #D4D4D4; + --light-hl-2: #0070C1; + --dark-hl-2: #4FC1FF; + --light-hl-3: #001080; + --dark-hl-3: #9CDCFE; + --light-hl-4: #795E26; + --dark-hl-4: #DCDCAA; + --light-hl-5: #A31515; + --dark-hl-5: #CE9178; + --light-hl-6: #098658; + --dark-hl-6: #B5CEA8; + --light-hl-7: #AF00DB; + --dark-hl-7: #C586C0; + --light-hl-8: #267F99; + --dark-hl-8: #4EC9B0; + --light-hl-9: #008000; + --dark-hl-9: #6A9955; + --light-code-background: #FFFFFF; + --dark-code-background: #1E1E1E; +} + +@media (prefers-color-scheme: light) { :root { + --hl-0: var(--light-hl-0); + --hl-1: var(--light-hl-1); + --hl-2: var(--light-hl-2); + --hl-3: var(--light-hl-3); + --hl-4: var(--light-hl-4); + --hl-5: var(--light-hl-5); + --hl-6: var(--light-hl-6); + --hl-7: var(--light-hl-7); + --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); + --code-background: var(--light-code-background); +} } + +@media (prefers-color-scheme: dark) { :root { + --hl-0: var(--dark-hl-0); + --hl-1: var(--dark-hl-1); + --hl-2: var(--dark-hl-2); + --hl-3: var(--dark-hl-3); + --hl-4: var(--dark-hl-4); + --hl-5: var(--dark-hl-5); + --hl-6: var(--dark-hl-6); + --hl-7: var(--dark-hl-7); + --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); + --code-background: var(--dark-code-background); +} } + +:root[data-theme='light'] { + --hl-0: var(--light-hl-0); + --hl-1: var(--light-hl-1); + --hl-2: var(--light-hl-2); + --hl-3: var(--light-hl-3); + --hl-4: var(--light-hl-4); + --hl-5: var(--light-hl-5); + --hl-6: var(--light-hl-6); + --hl-7: var(--light-hl-7); + --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); + --code-background: var(--light-code-background); +} + +:root[data-theme='dark'] { + --hl-0: var(--dark-hl-0); + --hl-1: var(--dark-hl-1); + --hl-2: var(--dark-hl-2); + --hl-3: var(--dark-hl-3); + --hl-4: var(--dark-hl-4); + --hl-5: var(--dark-hl-5); + --hl-6: var(--dark-hl-6); + --hl-7: var(--dark-hl-7); + --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); + --code-background: var(--dark-code-background); +} + +.hl-0 { color: var(--hl-0); } +.hl-1 { color: var(--hl-1); } +.hl-2 { color: var(--hl-2); } +.hl-3 { color: var(--hl-3); } +.hl-4 { color: var(--hl-4); } +.hl-5 { color: var(--hl-5); } +.hl-6 { color: var(--hl-6); } +.hl-7 { color: var(--hl-7); } +.hl-8 { color: var(--hl-8); } +.hl-9 { color: var(--hl-9); } +pre, code { background: var(--code-background); } diff --git a/docs/assets/icons.js b/docs/assets/icons.js new file mode 100644 index 0000000..b79c9e8 --- /dev/null +++ b/docs/assets/icons.js @@ -0,0 +1,15 @@ +(function(svg) { + svg.innerHTML = ``; + svg.style.display = 'none'; + if (location.protocol === 'file:') { + if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements); + else updateUseElements() + function updateUseElements() { + document.querySelectorAll('use').forEach(el => { + if (el.getAttribute('href').includes('#icon-')) { + el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#')); + } + }); + } + } +})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg'))) \ No newline at end of file diff --git a/docs/assets/icons.svg b/docs/assets/icons.svg new file mode 100644 index 0000000..7dead61 --- /dev/null +++ b/docs/assets/icons.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/assets/main.js b/docs/assets/main.js new file mode 100644 index 0000000..d6f1388 --- /dev/null +++ b/docs/assets/main.js @@ -0,0 +1,59 @@ +"use strict"; +"use strict";(()=>{var Ce=Object.create;var ne=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Ce(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),y=s.str.charAt(1),p;y in s.node.edges?p=s.node.edges[y]:(p=new t.TokenSet,s.node.edges[y]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(console.log("Show page"),document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){console.log("Scorlling");let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!e.checkVisibility()){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ve(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ne(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ve(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${ce(l.parent,i)}.${d}`);let y=document.createElement("li");y.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,y.append(p),e.appendChild(y)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ne(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var He={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>He[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",fe="mousemove",H="mouseup",J={x:0,y:0},pe=!1,ee=!1,Be=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(Be=!0,F="touchstart",fe="touchmove",H="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(fe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(H,()=>{ee=!1});document.addEventListener("click",t=>{pe&&(t.preventDefault(),t.stopImmediatePropagation(),pe=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(H,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(H,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ye=document.head.appendChild(document.createElement("style"));ye.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ye.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ve(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ve(t.value)})}function ve(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +/*! Bundled license information: + +lunr/lunr.js: + (** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 + * Copyright (C) 2020 Oliver Nightingale + * @license MIT + *) + (*! + * lunr.utils + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Set + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.tokenizer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Pipeline + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Vector + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.stemmer + * Copyright (C) 2020 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + *) + (*! + * lunr.stopWordFilter + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.trimmer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.TokenSet + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Index + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Builder + * Copyright (C) 2020 Oliver Nightingale + *) +*/ diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js new file mode 100644 index 0000000..8f67a40 --- /dev/null +++ b/docs/assets/navigation.js @@ -0,0 +1 @@ +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE42WX2+bMBTFvwt7jbYmTbc1b0v/qJG2rlqqPLTagwcOWAGMjEkaTfvuszGh13C55KkS95xfbd/j67z+DTR/08EiiLnMuFbHYBIUTCfmSyajKuXlp1PlY6Kz1JR3Io+CxXwShIlII8XzYPHaYpayyiORx0v59k4KU1aWkARUPnU6+/pv0sJuKrXny8r8F64IGpRRuGfF8nIrVUawWg0FWj2xyC7/nSNyzdWWhRB1Uvmk2dVnjySNdYxjNX3Kb8BJ2VFWut879/2szq1uFTuwPyn/UXtJ1oe+uGFPr+eXF3O4w0cZ8Z+FFjIvR5i+cghoVTSoUQwBblms+Pda/6TkXqDhaniIlgzG6VgeuT5ItUMb26C7WjImQ8tFsNRqUepaM12egax1dAwr0e9MJc6K33PCM6Svxl1XzmKEMpUKbGXPlLAnDDBO4tMuZ2ALWwnvI0KwAsJfFiz0RgOCaDQ9CjzKuyjm/VgahC1QGbxXLMOddYWyPpgWhzvU60qU2b+XwGoLlNGOSR6hVleizL94qFGrLVDGNS+YYloid9+42yr5ntg/mNsWSKOUqRYF7nU1yr4ZbtNmtE0vw+aXUfPgGwGGhgF1ZOQMQp+HDg5oSJbt+RgLaEhWm4AxYFdIU+0JjxKBiKTZnI3BgIZmudyN4jwZRfyWhwm8XfpYOIYrdKwX11+mV/4E7L2hp6iiD2ZnGDnJRvAD9rp7ZTLw/hgGh7Hqz+HOid7tea7XPDWBM2d1k7A8hmPOY2FS+trAHVBNQ5UjyW/WQWK7Kgq5ND+qo24S6o94CvxHZdWzuq8DCfoPgui+VdMMAAA=" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js new file mode 100644 index 0000000..d4d6b24 --- /dev/null +++ b/docs/assets/search.js @@ -0,0 +1 @@ +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE8VdW3Mjt47+K1vWq+Mjsu95y+3sZmtzzlQmO6nK1FSqLfXYvZHUrlZrbJ9U/vuS7BuABvoiybsvmVgCCJAfCJAf2a0/b8ri+Xjz9cc/b/7ID9ubr/3bm0O6z26+vjnlN7c3p3Jn/ndfbE+77Pi3U373WO135vPNLj0eM6N4c/PX7VD3l8fM/Muouy+YRm5vntIyO1S13b5JT3dtbopdUR67Rr+kZZ7eo2ZrianWa2FgIwwCL+zM/P579fqUzTSz6qTHrTU6wKha63647nfp5o9lJu9anVmG7xo/BfvPj3m1sMt3rc417H8uyuyhLE7mi2VOIMUzPbkcfuBG0/xXeqE/sCdikJyu4Ndd08yZzk0AWWbnI9i7WLfyNh4WZXp4uMY4dg29jZ+v2W5XPF/Bz66ht/HzocyywxXcbNt5Gy+fTuXT7hqodw291Wimr1cZzPT1K/WmXr7PNsVhm5bXche293/g9Te76tqO102+ne+/ZGWVX2/AQXNv4/O9WZ+cVdSR4v9fUe/daAdu8YwCPbnehGf8umuaOdO5CSBNcP/x79fxEzR1NV/BFuFzcRid1vb7N98edEZmbw6c29LSON3nu9Ghp/buOpUZZqc2Bln+8DhvSLt9QatylvVLB7sxv2DGAj9a38XF7cNpl5aXuHPXt7HYrQmojtk+vy92o8l20j3QyLX9u9i36/kFMsbxKd3kh4cxxxqRN88b0M7s1NH6L+0iFhq8m5E2WrVxuF+WWn65wLIO+oH+8X1lisU/n6q8OPRsUX6osvJzuqm9QDIL2Cg84UjoTJlY9QpiP7HzouEyS7dL7Dbyl5nd54df8231ON8w0LjQdPqy1HSvsdy0jjvL/+FkOrtNW9Zo/c2C4AkU5DIPx6o8baqinGh7hUXFzjSOSqwHmQ6CrV6st1Mdt1/lx6+eyqLKNlW2/bfmg/zwmJV55aiaUUf02u/H8zkHKApeNDIDF2ZbhAB+EAH88IYAflgO4IfRcXtKt1vArQmmOqn5VuaGyYcrh8l4d6Uw+XBBmAy7DsLkNzFMfnvDMPlteZj8Nhy3JFJBb/Kbw+YRWLOV0tmqP1/QD1RUfymKXZU/TZRVLHVuYU1xD6ZtrDoNOdeTDvBR0AhxUDVfvU0cwMbnBkLrqzCD7k/5js0XyFYrtcDK3ISB7FwjY0x0WEoZyI+lOYPpPgiXv5cpOOUENt0XbxMqfdNzA6X2Uhg100aVAdJEtNRIzbYyN0yAlWsEyWhnpRABPiwNkEG3QXj8sH1go8N+/jbB0bU8Nzaci9KZSWEyL4tZb6aTmWthXo7qDUwmKNo+KlrZSzVVsXqRc8tVT4h/ZznLuZZWQ72R6gV6IroBpvG07fHZPNfg+/xf2SKjjcLFhn/FxOQc079OEpOScbhCMBJslTGfv9HaoG159sLAurh4G9Gbmd5EEAuzVwSdiassB0a6Ka4FOg8WLwSINZhm/lFss4k0A0TOppuynRkXS6TNNbJCKnLUQ/8F4xVZGE9Z7uUvMnufwhI6ZbSVvsxkUW6z8vv0KJJNQ7tQ5QrGR8uIYH26hMwa7vaUbaELA72L3Hg87dPDz1m6XRTsVOsiF2wOHOF2B8Z7+cVmQXGxElzasp+/TXHpWp5bXJyLwqAdzHc/ssWlN9PJzLWA8jofGayh2eEw1qORYtZbukYxG+u0VMx6D5YWM2oNFrPvy/TZDtlP7s6uNAGw1Lkl7d6mDDNtvi1eFhhaYTV5wpGuSFEL9/AzrDfyZ5hF4/yziYuJRQMQOXuE52V0amlRRoc9Ob+uDV2YWddmmx89QRLMT58hzTY/tqQQrE8uKWYYL9NtfpodYqtOfLFRUMesBJex7OdvU8e6lufWMeeidOkFBQpr5XkqLsbaf8R7V9bA4+RmlViYuc3rLUxv88b6MFIZexPXqIxj3ZQqI8RpWWWkXQZB/U4c0/qbtwls0Pbc0G4cXU74EltTjO+4HbqCFuzMWDgP7aDbHpmRTc2QTN34IHLnVtTNWBFjjaw2kzVs0AnxJqZcQ3jb26kSMmYaRH8nxgHaffk2cwA3P3ca9B4vTfPE3mSun7Q0kiyJrWtkTM6dWWlz0O9luZO3iw+nvy1TcB28Ppt2n818rnCXvhanPnm1DxbWH4+2gZLGfzn591VasfmiaQ6KjUd245YAf/3tL/k++2mRuRVRHLONtKf2dv/Iquei/GPMFyJ6Sfftln+035ytVas13mnaIzlp79KnY8Zemht1A2pexZXs5cmE+xmeAMXrOLJ9OAOWVusqLkzs/0cdmUMCLHTnOJUPWEdarXNdYBLTu7L4kpv933SyaCUXzk+yItw/nSqWAxkxturV5uSlrkv88uL79KHMhM63FappkBFd2Pu5S48Jg7MWInIbc+GY780sPMY98VXie+t+SrBnW0zVXRHBmUhQc4gA58w0Amc2L5GbbIcGsnON9s92ZcU+q8ADe62d9ov5C5Z39p4FN0O7pmqR8ZnQOTR5Z3/CwkrOuUR8+sGEKVPyEwmyKTx28lkOaKEWumz8dvNtrKatdAoitbfAnJyhZpubij9oTiYOZpu7X2Du/jxz8F6H2YQcPxflfpB3uxY6kcVBgvK7ybiHKq9e5xpaAYWJPvadWF7sJOtzityoA0KGmbI7I8NMWps/xmcOLrI2vD0uWZNf2zJqDYVRZQV2KbNQkKxCjUutHzcpcwArWW6lL7WaPj3t5mPaSl9qNT98ycrj/N728hdjXLyvSo5EFSHuFc6JZpAPvzuVX7Jv7eVLZiXetQKlFmfFxZlpYG1ZckJdWnQjdcSD8fupU7bhiH/LbIYHDgChC6vQ4XN+GK1C1NQKqEz0FnZFsP+5LPbfZbawf3PYfp/vs8PRbB0WeCM2cB3f3vGXn8f9eTd+G3qpD/99WD4krc5ZHiyekQMXFk1I3gm8XvgpXzICjfjldl+X2X29lt2Xn9IFs3/ViF+jv4vsvl5gF6eh4w/7p2VZqNM4z3qolT91BiRbHz8LWmZbuAYgG5+4E7DM+sblziVTu1W4HHXheoJse+KuwhLbp4VJ9XRJQh2u2O2Sa1HXsdblXtiD/TRnDiNHk3qrcrn97LDZFcdsiX2gcoWMY6P4mG0WFXekdJ4PkJH64YvRee8u55vg+u7RvkiQPRDiJUdpQ+aZAelaxEjrK6TJ91johnSjusy+5AV/E23MEaB3phv0DPof+JpyfQhdfzifkP1BeDDhR+HhPulRJrNkG29m1YhInR95gK8qJpp2AjMbhtfUyfFxO3/ks2JhLtrXkvznkUnH6IANSPG+Ds/U5i5kyVHv9NqVOb5DtEhW2UD6Na8e39UqoxY58bPs1nLDjIas9UJn2XjMszItN4+v78rM3U4dt8aJX2i3OFaLDAP5syxvHs1+3Yj+MhE3QOwC9OaAd64FfAWDNTB+32Ki/eZga9xCL3SWDXxfgbUwfjlhov2yKCYwaCTOar0qphNdJzPbAr4I2VTAkYuQA6H5laq+fjK/0VWnIBSYgb8Td3f+WT1m5YJerQaKyx3Bj3nW4/8hz56zsdumrOD8gX6WHlOQ253YlvKez7ucPs/+xM50kQPHx+L5W1vzN+Vpf79whFdD7Su59HNmqrWVPsMhqHsFd55TY3if8hf4xqIE6F3BjX1+yPcp+0zwiBO91hVc2E1elxrxZKB8BYfSU1UYtIW3Iow4gxSvAc5pV+VdZluKEVU+06HhnqEWlcpg/e38/cPGTHTmAHTY2qqTHC2tjXeCteLQDcn3+bbeZ86xLehd4InJJkNoRzwg8leyLC7GJNOTS7Nx2209/2a3mwU5Er/E7i5Ly2W9HqpcNuZ/LzanucPdyl5gscyW2ETSl/Xz+2xTlOmCsEYKF/V4X3zJlplndC6Nsr6x+WGGdS4b/wlmhwx+L32B1Yds8Bj0iFUkPcvqp1tT9LbZy83Xf97YexkWqK9v9J13lxitz3m225oWPtbu3Nrbt3vbzqfmuw+Z5YOsRC3yt/XN7cf1bbC+86JPn24/tgruc/eBk1LmL8VIKSSlzV+akdJIyjN/ebdecBetQyTmITHf/OUzjflIKjB/BYxUgKRC81fISIVIKpIci5BYbP6KmMZiJGXQ+BgzUgkeVzvMCTewZPwdABxOCkOg7FgrFiqMgrKjrTi0FMZB2QFX3q0f3OlQYUmMhbKDrjjMFIZD2XFXHGwKI6LsyCsOOYUxUXbwFYeKwrCoRAJZYWT0Wuy2xthohw2HtSbTw2GTsE1icLQ4RzQGR1sENBcXGmOjLQKaiwuNsdGhaBpjoy0Cmp3uGBttEdAeJ4ix0RYBzcWPxth4FgAdcAPpYWw8JSYbjI3ncld466u7OMHGPZK+LAI6YiUxOJ4DhwsMD4PjBXJ/MDqexUBzCcPD6HgumXGB4WF0PIuBxwWGh9Hx3Mzh8PYwOr6FwPNudXjnJbg3PkbHd+j4t553Z/Z6WBLD41sMvICVxPD4bupwKcMn9cWX3cTw+BYDL7r1ItMkaRPD44dyhzA+fiR3CAPkO4C4KPIxQH4idwgjFDiE2EQUYIQCC4PPhVGAAQq03CQGKLAw+IqVxAgFMkIBWQVYGHzNzckAIxTICAUYoUBGKMAIBRYHn0twAUYokBEKMEKhhcH3uUEKMUKhPIdCDFEoz6EQQxQ6iLj6HGKEQhmhECMUOoTYNRhZqoUilCEGKLQo+FzNDzE+ocOHm0EhxidMxAIdYnwihw+XhyMMT2QxCLgJFGF0IgtBwOXhCIMTeeKYRxidyBfzVoTRiQIxiCIMTxSKQRSR1bQFIdDcYEYYn8iiEHDzJ8L4RImYOiKMT2xRCLilRIzxiR0+bOmNMUCxAyhkJTFCsYUhiFhJjFBsYQhiVhIjFLuNDhuaMUYodpudNSuJEYojMZJisuWxOITswMcYojiRe4QhStZizCUYo0SJMZdgjBILRMjGXIIxSiwQocelmQRjlFggQi6UEgxRYnEIuayZYISSUIyPBCOURGLMJRihxCHE5deE7EsTMeATuje1MITspmpNtqdri0PIpdj6Kyiqxairv4OyDqXk1kvuvNgjsmSburZoRGsO0fo7KCuv6OrvoKy8Yqi/g7LymqH+DsrGIz6QTetaXjjU3wFZJS8d1IBVUGJWUZRYcPxBxDILlFpwDELEcguUXHAUQsTlfkXZBUciRCy9QPkFRyMI40UpBsckCDFGWQZHJgixQImGmmngY4FwDcoxChFLiBCyQTlOIWIpEU2pIIcYO38J36AcrRCx85cwDsoRCxHLWRHOQTlqIWZLkSK0g3LsQswTVwQxxy/EbHgR6kE5hiHmySvCPihHMvAlQRECQjmaIWZjkTAQyhENMYst4SCUYxpiNt0rj9J3FpaYBZfQEMqTV+mKMBHK8Q2SCwQyRznwKzxF6AjlWAd+VaIII6Ec8cBXcUVICeW4h5gNXEJLKEc+xGzgEl5COfaB53gUYSaULzNHinATylEQCUvj+pR1tcAk7Hwg9IRyJETCzgfCTyjHQiRsuiUEhXI0RMKGOGEolCMiEjbECUehHBORsOmLkBQqkHkkRWgKFYwARpgKFYwARrgK5RiJhJ1lhKxQjpJI2EgMKE/uAGMjkdAVypESZrnFyhLEHC1h1lusLIHMMRNmvcXKEswcN2HWW6wsAS0cAY0wF8rxE/xWXxHuQjmGQkjOhL1QjqQwaz72fIGg5mgKs+ZjZQlsjqkwaz5Wlp5w1LixkUN4DBXK+zBFqAwV1rixYUbYDFXTGWs2zgifoRxtofgTJkJpKMdcKP6QibAaKqrPo9g4I8SGikZW+4TaUNHIap+QG8pRGGblyfpAcKv5DX5VHtHDKTff+AMvQnEox2Qo/syLsBzKcRlKOPYiuMU1bvzJF8EtrnFjY4eQHSqucWNjh9AdKq6PEtnYIYSHcrSGYg+iFKE8lCM2eNZBEdJDOWpDscdRitAeypEbij2RUoT4UI7eUOyhlCLUh3IEh1nYsrIEN0dxmJUtJ0voD1XzH3x+IASIcjSHWQaz7RLckho3Nh4ICaKSGjc2HggPohzdodjDJ0WoEOUID8WePylChihHeSj2CEoROkQ51kPYehBGRDnew6ya2XbpqbBbRArHwuRc2DEfZoXNHWgSVkQ75sOssFlZcjjsmA/FnnFpworodX16z8WDJqyIXte4sSfZhBXR6xo3Lh40YUX0Wt5ha8KKaMd88HldE1ZEO+ZDsadTmrAi2jEfZu3OntLT83yHm88ebRNWRNf3LdjDH01oEV1fufDZeCC8iK5vXbBnMJoQI7q5d8HGA2FGdH31gj010YQZ0fXtC/bgRBNmRNcXMNgTEU2YEe3YD8Ueimh6C6O+hsGei2h6D6O+iBGwuA2uYjjc2EMHTS9jOAZEsacJmt7HcBSIWcWzsgQ3R4GYVTwrS3DT9ZUZFjd6McORIGYVz8oS3BwJYlbxrCzBzZEgZhXPyta4udtpX7KyyrY/1rfUPn68aX7e/vbPm9+bq2tee13uzxvP/Oev25uo/sfA7/7Vzcema+5fT9l//+rvs9m/rAPtL+WCtpO+cbNNdOpmWyeo1+9U6rXtVqtTtzssQe9UFWVzvR0om/naKdtpyivfQ53EB/b8SFLpfr8E2YuAbjyp2ry3vdcPgH7cjHgidbn5NTKgDTyP15LWzv0Mda8FlMTx2Z2QIeilpFLs0MhoYEYnopJ9mnI4KiGwp5tREYFxbdRvpQdNgDiIVdPEuBvNI099GyFwI5H7XT+cf29fsgR0wQRLGmCVbuaW3S8LrdVvMwcjD/phmWhBrX5nFMBYgykY1FbDsLUuTeX2hRwgvhXoh92qCYrNA6sV0jVryl5XjGp35XgLrxyDJoIYRJGWQsA1Ad8vAFvwYAvSuLdX+1N7tR9qa6gtjlv/Su9eN4a912LvG9WieaQQDh/s+1ocejp5IuCyPewZUUP2YE9FpeaFwKCXYI5YhryOME/2FjwRDyoGAMlvKobvN/82kyZo/g6av8Pm76iZXXFbwNatF+t2uqk28r1GR7VlyTJizf909U9GuX1pCZwfsP+RlGC63z4BMxTkx84JJU3w9mkjWOlgeChxatjXxN23b92DVRZO7EByfGvf7Vw/1vbUPdYG0Iflz5NibZuWpv6luMoj70VFnNQj6LNY3DNSJeGSIJR8bB70Bl2DtnRcA2Q3mIJ+90YZGBxodSCqNo81w6kfwakvdrR7fz9wG85+MWF+Tvc5XnVpsOjSksH6N56BnwnMjs20lELJKtPlmg8aiKTxsYrPzePAoMADhyMpgPofxEa1GcTDpOIgv8J5F0qrgs/uR9yhFginQNayL2YB46thEMYimkatLt0mHLb9iwvhbIfLiFDE1zTU/v46VIY5LpRSu1VuXm0FdeEUCKXh7t9rDiI5hrlFiqqHrOp+4QaYDWE4i8vPQVKCw+23U35E+WiWLQeT3nArcD8hjRbSTnd4WiGwRhowiFc5tY4KkqicZRgntFgRtB4HkzCCW7V1W1yjbuikQO/eqPLUv1EFwgCbTaQh7Bvp3gcDp04C25Ai/vFYkd2RBxKoGHXup2DL7qdgQVYCQRs3wxBLrfSv4QabUQifL2s2PyWwb35KACQ34H/SrcckILqGDu2TdwBcOIJiTchpubVHACBpSfGbZ/YlW92ifdO+sgzGJHQglqIyH1mewIkkEhhNA82vroD+w9Ql7hzyZuS+uKcDuVwE6RDLzErttO/ChdkTphJx7ZLbN+0wluHmJWqXt57sQP9GOggCTMOxOIbtG6qh8zCnBFIqyrvf6wOTAM5/X+z2U/0TFgBvGDC+lLjz0j6BORyuEESLmHTyLmJZqEMItej4MatfOAqHGU6aSAy2Y/uLaIz1CI63mMRzl/EYdQ2A9sTZXmUv3Nj5YK6EItRVUewqAxujDxAPpCBD2SmBszOQhhrt5hM4QL7UxfYH4cDAwpwsblbkNKTgXk+LW/K6gcqs3/YYVzgDtaS9T18GBBYkYMQS0L0+BToMSRMxlIzm0CQA0pMCoXtvF5w6cO0lMnXuPSLH/s0T0Gc498R114Gsy0MAjbhKYIqjPWQGeVHyFxUH7C7c4omrvIP7dSLgLhjeuGM1pHG22jne+oCIiJtNrT3Jl/XxphgmZt3wikrkRs0kb6Ha5ttN854SOAiwNIr8OZMvPEhiN/Su34xH0PwbNp9HjZ9Jy7Ks24GTLZbUVVhZpMLSvlMYuAlA9hs32tWxWrfjt26BiKQwYGpkADyK25aUlJzal/3BCQcrjsiud694hKEPE1IiJaThRhLOUHEb2b+dFVqEmTuWpunTqXzakbUoXAAKamheJlDDl5xsf9McTCxYjkSWyG4Z/udIEpeG5SWRVTcIvxCCsJZwLwk7BJKdqPFw2qVoTOCCXqSU6neXbMG7S+CGFiY7kQt3r335XL/2BSrDIz1xH1K/ShHGNyy64gA1PyQDAgDO9EAKgDqvDXZ/oIZFUm4RzikgAadiKVbNyjEfnLTBYi1b7X5tGaws4PZCLJkGFAlWWHL1iD4DKkRHXNQYVa72Boh3lLtc2QJmf3SYSX8aTthEWuKYNvjVBqQftZImE1Qn/VewC9Kkt6/6u4fvHoS1E3qwFj0wLbh59cW9LBDqQw/EmnZ8Sjek8sCVj9fUVPHA5/hk3UfqADxxMzrYjMcwVD3JWwRxgtg8yZLd0KA5DIZF3IdVjxleRsL6JOkUOP5gh2IphqtiUC48mA7Xoof1VguVX+Bk0F76kOKmKo7N7z7BHT0sjiKLXfU/fAfAgMtlf1KVMkFQW8ys4OfIgGFYJwOpepxyqANmlhRpQ6Yb0b6RVCa/DAlHkERFrgO8aBNOYViYxbXf8OwELqfEtP38mOORBBiIOoMrFGjd3N6DUC0Z1Z7d2kuIUotkfwm88Bt602+aC5p/w+bzqFnnJ81GQK1bu2LCRnc4YInwWt/b3YYSaYqXffqCIwOWdvGY62Wfk6MTGLniSRM+xQOx1B3Gt8OkxDtYr9luV+DqAF2WOvo66ChMg+Kh3OugozBIxPPDfw1nDhggPqV8ur15yp+yXX4wQh8//fXX/wIxigJMnbgAAA=="; \ No newline at end of file diff --git a/docs/assets/style.css b/docs/assets/style.css new file mode 100644 index 0000000..778b949 --- /dev/null +++ b/docs/assets/style.css @@ -0,0 +1,1412 @@ +:root { + /* Light */ + --light-color-background: #f2f4f8; + --light-color-background-secondary: #eff0f1; + --light-color-warning-text: #222; + --light-color-background-warning: #e6e600; + --light-color-icon-background: var(--light-color-background); + --light-color-accent: #c5c7c9; + --light-color-active-menu-item: var(--light-color-accent); + --light-color-text: #222; + --light-color-text-aside: #6e6e6e; + --light-color-link: #1f70c2; + + --light-color-ts-keyword: #056bd6; + --light-color-ts-project: #b111c9; + --light-color-ts-module: var(--light-color-ts-project); + --light-color-ts-namespace: var(--light-color-ts-project); + --light-color-ts-enum: #7e6f15; + --light-color-ts-enum-member: var(--light-color-ts-enum); + --light-color-ts-variable: #4760ec; + --light-color-ts-function: #572be7; + --light-color-ts-class: #1f70c2; + --light-color-ts-interface: #108024; + --light-color-ts-constructor: var(--light-color-ts-class); + --light-color-ts-property: var(--light-color-ts-variable); + --light-color-ts-method: var(--light-color-ts-function); + --light-color-ts-call-signature: var(--light-color-ts-method); + --light-color-ts-index-signature: var(--light-color-ts-property); + --light-color-ts-constructor-signature: var(--light-color-ts-constructor); + --light-color-ts-parameter: var(--light-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --light-color-ts-type-parameter: #a55c0e; + --light-color-ts-accessor: var(--light-color-ts-property); + --light-color-ts-get-signature: var(--light-color-ts-accessor); + --light-color-ts-set-signature: var(--light-color-ts-accessor); + --light-color-ts-type-alias: #d51270; + /* reference not included as links will be colored with the kind that it points to */ + + --light-external-icon: url("data:image/svg+xml;utf8,"); + --light-color-scheme: light; + + /* Dark */ + --dark-color-background: #2b2e33; + --dark-color-background-secondary: #1e2024; + --dark-color-background-warning: #bebe00; + --dark-color-warning-text: #222; + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-accent: #9096a2; + --dark-color-active-menu-item: #5d5d6a; + --dark-color-text: #f5f5f5; + --dark-color-text-aside: #dddddd; + --dark-color-link: #00aff4; + + --dark-color-ts-keyword: #3399ff; + --dark-color-ts-project: #e358ff; + --dark-color-ts-module: var(--dark-color-ts-project); + --dark-color-ts-namespace: var(--dark-color-ts-project); + --dark-color-ts-enum: #f4d93e; + --dark-color-ts-enum-member: var(--dark-color-ts-enum); + --dark-color-ts-variable: #798dff; + --dark-color-ts-function: #a280ff; + --dark-color-ts-class: #8ac4ff; + --dark-color-ts-interface: #6cff87; + --dark-color-ts-constructor: var(--dark-color-ts-class); + --dark-color-ts-property: var(--dark-color-ts-variable); + --dark-color-ts-method: var(--dark-color-ts-function); + --dark-color-ts-call-signature: var(--dark-color-ts-method); + --dark-color-ts-index-signature: var(--dark-color-ts-property); + --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); + --dark-color-ts-parameter: var(--dark-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --dark-color-ts-type-parameter: #e07d13; + --dark-color-ts-accessor: var(--dark-color-ts-property); + --dark-color-ts-get-signature: var(--dark-color-ts-accessor); + --dark-color-ts-set-signature: var(--dark-color-ts-accessor); + --dark-color-ts-type-alias: #ff6492; + /* reference not included as links will be colored with the kind that it points to */ + + --dark-external-icon: url("data:image/svg+xml;utf8,"); + --dark-color-scheme: dark; +} + +@media (prefers-color-scheme: light) { + :root { + --color-background: var(--light-color-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + --color-link: var(--light-color-link); + + --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); + } +} + +@media (prefers-color-scheme: dark) { + :root { + --color-background: var(--dark-color-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + --color-link: var(--dark-color-link); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); + } +} + +html { + color-scheme: var(--color-scheme); +} + +body { + margin: 0; +} + +:root[data-theme="light"] { + --color-background: var(--light-color-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + --color-link: var(--light-color-link); + + --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); +} + +:root[data-theme="dark"] { + --color-background: var(--dark-color-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + --color-link: var(--dark-color-link); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); +} + +.always-visible, +.always-visible .tsd-signatures { + display: inherit !important; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + line-height: 1.2; +} + +h1 > a:not(.link), +h2 > a:not(.link), +h3 > a:not(.link), +h4 > a:not(.link), +h5 > a:not(.link), +h6 > a:not(.link) { + text-decoration: none; + color: var(--color-text); +} + +h1 { + font-size: 1.875rem; + margin: 0.67rem 0; +} + +h2 { + font-size: 1.5rem; + margin: 0.83rem 0; +} + +h3 { + font-size: 1.25rem; + margin: 1rem 0; +} + +h4 { + font-size: 1.05rem; + margin: 1.33rem 0; +} + +h5 { + font-size: 1rem; + margin: 1.5rem 0; +} + +h6 { + font-size: 0.875rem; + margin: 2.33rem 0; +} + +.uppercase { + text-transform: uppercase; +} + +dl, +menu, +ol, +ul { + margin: 1em 0; +} + +dd { + margin: 0 0 0 40px; +} + +.container { + max-width: 1700px; + padding: 0 2rem; +} + +/* Footer */ +footer { + border-top: 1px solid var(--color-accent); + padding-top: 1rem; + padding-bottom: 1rem; + max-height: 3.5rem; +} +.tsd-generator { + margin: 0 1em; +} + +.container-main { + margin: 0 auto; + /* toolbar, footer, margin */ + min-height: calc(100vh - 41px - 56px - 4rem); +} + +@keyframes fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } +} +@keyframes fade-out { + from { + opacity: 1; + visibility: visible; + } + to { + opacity: 0; + } +} +@keyframes fade-in-delayed { + 0% { + opacity: 0; + } + 33% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes fade-out-delayed { + 0% { + opacity: 1; + visibility: visible; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } +} +@keyframes pop-in-from-right { + from { + transform: translate(100%, 0); + } + to { + transform: translate(0, 0); + } +} +@keyframes pop-out-to-right { + from { + transform: translate(0, 0); + visibility: visible; + } + to { + transform: translate(100%, 0); + } +} +body { + background: var(--color-background); + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", + Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; + font-size: 16px; + color: var(--color-text); +} + +a { + color: var(--color-link); + text-decoration: none; +} +a:hover { + text-decoration: underline; +} +a.external[target="_blank"] { + background-image: var(--external-icon); + background-position: top 3px right; + background-repeat: no-repeat; + padding-right: 13px; +} + +code, +pre { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + padding: 0.2em; + margin: 0; + font-size: 0.875rem; + border-radius: 0.8em; +} + +pre { + position: relative; + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; + padding: 10px; + border: 1px solid var(--color-accent); +} +pre code { + padding: 0; + font-size: 100%; +} +pre > button { + position: absolute; + top: 10px; + right: 10px; + opacity: 0; + transition: opacity 0.1s; + box-sizing: border-box; +} +pre:hover > button, +pre > button.visible { + opacity: 1; +} + +blockquote { + margin: 1em 0; + padding-left: 1em; + border-left: 4px solid gray; +} + +.tsd-typography { + line-height: 1.333em; +} +.tsd-typography ul { + list-style: square; + padding: 0 0 0 20px; + margin: 0; +} +.tsd-typography .tsd-index-panel h3, +.tsd-index-panel .tsd-typography h3, +.tsd-typography h4, +.tsd-typography h5, +.tsd-typography h6 { + font-size: 1em; +} +.tsd-typography h5, +.tsd-typography h6 { + font-weight: normal; +} +.tsd-typography p, +.tsd-typography ul, +.tsd-typography ol { + margin: 1em 0; +} +.tsd-typography table { + border-collapse: collapse; + border: none; +} +.tsd-typography td, +.tsd-typography th { + padding: 6px 13px; + border: 1px solid var(--color-accent); +} +.tsd-typography thead, +.tsd-typography tr:nth-child(even) { + background-color: var(--color-background-secondary); +} + +.tsd-breadcrumb { + margin: 0; + padding: 0; + color: var(--color-text-aside); +} +.tsd-breadcrumb a { + color: var(--color-text-aside); + text-decoration: none; +} +.tsd-breadcrumb a:hover { + text-decoration: underline; +} +.tsd-breadcrumb li { + display: inline; +} +.tsd-breadcrumb li:after { + content: " / "; +} + +.tsd-comment-tags { + display: flex; + flex-direction: column; +} +dl.tsd-comment-tag-group { + display: flex; + align-items: center; + overflow: hidden; + margin: 0.5em 0; +} +dl.tsd-comment-tag-group dt { + display: flex; + margin-right: 0.5em; + font-size: 0.875em; + font-weight: normal; +} +dl.tsd-comment-tag-group dd { + margin: 0; +} +code.tsd-tag { + padding: 0.25em 0.4em; + border: 0.1em solid var(--color-accent); + margin-right: 0.25em; + font-size: 70%; +} +h1 code.tsd-tag:first-of-type { + margin-left: 0.25em; +} + +dl.tsd-comment-tag-group dd:before, +dl.tsd-comment-tag-group dd:after { + content: " "; +} +dl.tsd-comment-tag-group dd pre, +dl.tsd-comment-tag-group dd:after { + clear: both; +} +dl.tsd-comment-tag-group p { + margin: 0; +} + +.tsd-panel.tsd-comment .lead { + font-size: 1.1em; + line-height: 1.333em; + margin-bottom: 2em; +} +.tsd-panel.tsd-comment .lead:last-child { + margin-bottom: 0; +} + +.tsd-filter-visibility h4 { + font-size: 1rem; + padding-top: 0.75rem; + padding-bottom: 0.5rem; + margin: 0; +} +.tsd-filter-item:not(:last-child) { + margin-bottom: 0.5rem; +} +.tsd-filter-input { + display: flex; + width: fit-content; + width: -moz-fit-content; + align-items: center; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + cursor: pointer; +} +.tsd-filter-input input[type="checkbox"] { + cursor: pointer; + position: absolute; + width: 1.5em; + height: 1.5em; + opacity: 0; +} +.tsd-filter-input input[type="checkbox"]:disabled { + pointer-events: none; +} +.tsd-filter-input svg { + cursor: pointer; + width: 1.5em; + height: 1.5em; + margin-right: 0.5em; + border-radius: 0.33em; + /* Leaving this at full opacity breaks event listeners on Firefox. + Don't remove unless you know what you're doing. */ + opacity: 0.99; +} +.tsd-filter-input input[type="checkbox"]:focus + svg { + transform: scale(0.95); +} +.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { + transform: scale(1); +} +.tsd-checkbox-background { + fill: var(--color-accent); +} +input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { + stroke: var(--color-text); +} +.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { + fill: var(--color-background); + stroke: var(--color-accent); + stroke-width: 0.25rem; +} +.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { + stroke: var(--color-accent); +} + +.tsd-theme-toggle { + padding-top: 0.75rem; +} +.tsd-theme-toggle > h4 { + display: inline; + vertical-align: middle; + margin-right: 0.75rem; +} + +.tsd-hierarchy { + list-style: square; + margin: 0; +} +.tsd-hierarchy .target { + font-weight: bold; +} + +.tsd-full-hierarchy:not(:last-child) { + margin-bottom: 1em; + padding-bottom: 1em; + border-bottom: 1px solid var(--color-accent); +} +.tsd-full-hierarchy, +.tsd-full-hierarchy ul { + list-style: none; + margin: 0; + padding: 0; +} +.tsd-full-hierarchy ul { + padding-left: 1.5rem; +} +.tsd-full-hierarchy a { + padding: 0.25rem 0 !important; + font-size: 1rem; + display: inline-flex; + align-items: center; + color: var(--color-text); +} + +.tsd-panel-group.tsd-index-group { + margin-bottom: 0; +} +.tsd-index-panel .tsd-index-list { + list-style: none; + line-height: 1.333em; + margin: 0; + padding: 0.25rem 0 0 0; + overflow: hidden; + display: grid; + grid-template-columns: repeat(3, 1fr); + column-gap: 1rem; + grid-template-rows: auto; +} +@media (max-width: 1024px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(2, 1fr); + } +} +@media (max-width: 768px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(1, 1fr); + } +} +.tsd-index-panel .tsd-index-list li { + -webkit-page-break-inside: avoid; + -moz-page-break-inside: avoid; + -ms-page-break-inside: avoid; + -o-page-break-inside: avoid; + page-break-inside: avoid; +} + +.tsd-flag { + display: inline-block; + padding: 0.25em 0.4em; + border-radius: 4px; + color: var(--color-comment-tag-text); + background-color: var(--color-comment-tag); + text-indent: 0; + font-size: 75%; + line-height: 1; + font-weight: normal; +} + +.tsd-anchor { + position: relative; + top: -100px; +} + +.tsd-member { + position: relative; +} +.tsd-member .tsd-anchor + h3 { + display: flex; + align-items: center; + margin-top: 0; + margin-bottom: 0; + border-bottom: none; +} + +.tsd-navigation.settings { + margin: 1rem 0; +} +.tsd-navigation > a, +.tsd-navigation .tsd-accordion-summary { + width: calc(100% - 0.25rem); + display: flex; + align-items: center; +} +.tsd-navigation a, +.tsd-navigation summary > span, +.tsd-page-navigation a { + display: flex; + width: calc(100% - 0.25rem); + align-items: center; + padding: 0.25rem; + color: var(--color-text); + text-decoration: none; + box-sizing: border-box; +} +.tsd-navigation a.current, +.tsd-page-navigation a.current { + background: var(--color-active-menu-item); +} +.tsd-navigation a:hover, +.tsd-page-navigation a:hover { + text-decoration: underline; +} +.tsd-navigation ul, +.tsd-page-navigation ul { + margin-top: 0; + margin-bottom: 0; + padding: 0; + list-style: none; +} +.tsd-navigation li, +.tsd-page-navigation li { + padding: 0; + max-width: 100%; +} +.tsd-nested-navigation { + margin-left: 3rem; +} +.tsd-nested-navigation > li > details { + margin-left: -1.5rem; +} +.tsd-small-nested-navigation { + margin-left: 1.5rem; +} +.tsd-small-nested-navigation > li > details { + margin-left: -1.5rem; +} + +.tsd-page-navigation ul { + padding-left: 1.75rem; +} + +#tsd-sidebar-links a { + margin-top: 0; + margin-bottom: 0.5rem; + line-height: 1.25rem; +} +#tsd-sidebar-links a:last-of-type { + margin-bottom: 0; +} + +a.tsd-index-link { + padding: 0.25rem 0 !important; + font-size: 1rem; + line-height: 1.25rem; + display: inline-flex; + align-items: center; + color: var(--color-text); +} +.tsd-accordion-summary { + list-style-type: none; /* hide marker on non-safari */ + outline: none; /* broken on safari, so just hide it */ +} +.tsd-accordion-summary::-webkit-details-marker { + display: none; /* hide marker on safari */ +} +.tsd-accordion-summary, +.tsd-accordion-summary a { + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + + cursor: pointer; +} +.tsd-accordion-summary a { + width: calc(100% - 1.5rem); +} +.tsd-accordion-summary > * { + margin-top: 0; + margin-bottom: 0; + padding-top: 0; + padding-bottom: 0; +} +.tsd-index-accordion .tsd-accordion-summary > svg { + margin-left: 0.25rem; +} +.tsd-index-content > :not(:first-child) { + margin-top: 0.75rem; +} +.tsd-index-heading { + margin-top: 1.5rem; + margin-bottom: 0.75rem; +} + +.tsd-kind-icon { + margin-right: 0.5rem; + width: 1.25rem; + height: 1.25rem; + min-width: 1.25rem; + min-height: 1.25rem; +} +.tsd-kind-icon path { + transform-origin: center; + transform: scale(1.1); +} +.tsd-signature > .tsd-kind-icon { + margin-right: 0.8rem; +} + +.tsd-panel { + margin-bottom: 2.5rem; +} +.tsd-panel.tsd-member { + margin-bottom: 4rem; +} +.tsd-panel:empty { + display: none; +} +.tsd-panel > h1, +.tsd-panel > h2, +.tsd-panel > h3 { + margin: 1.5rem -1.5rem 0.75rem -1.5rem; + padding: 0 1.5rem 0.75rem 1.5rem; +} +.tsd-panel > h1.tsd-before-signature, +.tsd-panel > h2.tsd-before-signature, +.tsd-panel > h3.tsd-before-signature { + margin-bottom: 0; + border-bottom: none; +} + +.tsd-panel-group { + margin: 4rem 0; +} +.tsd-panel-group.tsd-index-group { + margin: 2rem 0; +} +.tsd-panel-group.tsd-index-group details { + margin: 2rem 0; +} + +#tsd-search { + transition: background-color 0.2s; +} +#tsd-search .title { + position: relative; + z-index: 2; +} +#tsd-search .field { + position: absolute; + left: 0; + top: 0; + right: 2.5rem; + height: 100%; +} +#tsd-search .field input { + box-sizing: border-box; + position: relative; + top: -50px; + z-index: 1; + width: 100%; + padding: 0 10px; + opacity: 0; + outline: 0; + border: 0; + background: transparent; + color: var(--color-text); +} +#tsd-search .field label { + position: absolute; + overflow: hidden; + right: -40px; +} +#tsd-search .field input, +#tsd-search .title, +#tsd-toolbar-links a { + transition: opacity 0.2s; +} +#tsd-search .results { + position: absolute; + visibility: hidden; + top: 40px; + width: 100%; + margin: 0; + padding: 0; + list-style: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); +} +#tsd-search .results li { + background-color: var(--color-background); + line-height: initial; + padding: 4px; +} +#tsd-search .results li:nth-child(even) { + background-color: var(--color-background-secondary); +} +#tsd-search .results li.state { + display: none; +} +#tsd-search .results li.current:not(.no-results), +#tsd-search .results li:hover:not(.no-results) { + background-color: var(--color-accent); +} +#tsd-search .results a { + display: flex; + align-items: center; + padding: 0.25rem; + box-sizing: border-box; +} +#tsd-search .results a:before { + top: 10px; +} +#tsd-search .results span.parent { + color: var(--color-text-aside); + font-weight: normal; +} +#tsd-search.has-focus { + background-color: var(--color-accent); +} +#tsd-search.has-focus .field input { + top: 0; + opacity: 1; +} +#tsd-search.has-focus .title, +#tsd-search.has-focus #tsd-toolbar-links a { + z-index: 0; + opacity: 0; +} +#tsd-search.has-focus .results { + visibility: visible; +} +#tsd-search.loading .results li.state.loading { + display: block; +} +#tsd-search.failure .results li.state.failure { + display: block; +} + +#tsd-toolbar-links { + position: absolute; + top: 0; + right: 2rem; + height: 100%; + display: flex; + align-items: center; + justify-content: flex-end; +} +#tsd-toolbar-links a { + margin-left: 1.5rem; +} +#tsd-toolbar-links a:hover { + text-decoration: underline; +} + +.tsd-signature { + margin: 0 0 1rem 0; + padding: 1rem 0.5rem; + border: 1px solid var(--color-accent); + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 14px; + overflow-x: auto; +} + +.tsd-signature-keyword { + color: var(--color-ts-keyword); + font-weight: normal; +} + +.tsd-signature-symbol { + color: var(--color-text-aside); + font-weight: normal; +} + +.tsd-signature-type { + font-style: italic; + font-weight: normal; +} + +.tsd-signatures { + padding: 0; + margin: 0 0 1em 0; + list-style-type: none; +} +.tsd-signatures .tsd-signature { + margin: 0; + border-color: var(--color-accent); + border-width: 1px 0; + transition: background-color 0.1s; +} +.tsd-description .tsd-signatures .tsd-signature { + border-width: 1px; +} + +ul.tsd-parameter-list, +ul.tsd-type-parameter-list { + list-style: square; + margin: 0; + padding-left: 20px; +} +ul.tsd-parameter-list > li.tsd-parameter-signature, +ul.tsd-type-parameter-list > li.tsd-parameter-signature { + list-style: none; + margin-left: -20px; +} +ul.tsd-parameter-list h5, +ul.tsd-type-parameter-list h5 { + font-size: 16px; + margin: 1em 0 0.5em 0; +} +.tsd-sources { + margin-top: 1rem; + font-size: 0.875em; +} +.tsd-sources a { + color: var(--color-text-aside); + text-decoration: underline; +} +.tsd-sources ul { + list-style: none; + padding: 0; +} + +.tsd-page-toolbar { + position: sticky; + z-index: 1; + top: 0; + left: 0; + width: 100%; + color: var(--color-text); + background: var(--color-background-secondary); + border-bottom: 1px var(--color-accent) solid; + transition: transform 0.3s ease-in-out; +} +.tsd-page-toolbar a { + color: var(--color-text); + text-decoration: none; +} +.tsd-page-toolbar a.title { + font-weight: bold; +} +.tsd-page-toolbar a.title:hover { + text-decoration: underline; +} +.tsd-page-toolbar .tsd-toolbar-contents { + display: flex; + justify-content: space-between; + height: 2.5rem; + margin: 0 auto; +} +.tsd-page-toolbar .table-cell { + position: relative; + white-space: nowrap; + line-height: 40px; +} +.tsd-page-toolbar .table-cell:first-child { + width: 100%; +} +.tsd-page-toolbar .tsd-toolbar-icon { + box-sizing: border-box; + line-height: 0; + padding: 12px 0; +} + +.tsd-widget { + display: inline-block; + overflow: hidden; + opacity: 0.8; + height: 40px; + transition: + opacity 0.1s, + background-color 0.2s; + vertical-align: bottom; + cursor: pointer; +} +.tsd-widget:hover { + opacity: 0.9; +} +.tsd-widget.active { + opacity: 1; + background-color: var(--color-accent); +} +.tsd-widget.no-caption { + width: 40px; +} +.tsd-widget.no-caption:before { + margin: 0; +} + +.tsd-widget.options, +.tsd-widget.menu { + display: none; +} +input[type="checkbox"] + .tsd-widget:before { + background-position: -120px 0; +} +input[type="checkbox"]:checked + .tsd-widget:before { + background-position: -160px 0; +} + +img { + max-width: 100%; +} + +.tsd-anchor-icon { + display: inline-flex; + align-items: center; + margin-left: 0.5rem; + vertical-align: middle; + color: var(--color-text); +} + +.tsd-anchor-icon svg { + width: 1em; + height: 1em; + visibility: hidden; +} + +.tsd-anchor-link:hover > .tsd-anchor-icon svg { + visibility: visible; +} + +.deprecated { + text-decoration: line-through !important; +} + +.warning { + padding: 1rem; + color: var(--color-warning-text); + background: var(--color-background-warning); +} + +.tsd-kind-project { + color: var(--color-ts-project); +} +.tsd-kind-module { + color: var(--color-ts-module); +} +.tsd-kind-namespace { + color: var(--color-ts-namespace); +} +.tsd-kind-enum { + color: var(--color-ts-enum); +} +.tsd-kind-enum-member { + color: var(--color-ts-enum-member); +} +.tsd-kind-variable { + color: var(--color-ts-variable); +} +.tsd-kind-function { + color: var(--color-ts-function); +} +.tsd-kind-class { + color: var(--color-ts-class); +} +.tsd-kind-interface { + color: var(--color-ts-interface); +} +.tsd-kind-constructor { + color: var(--color-ts-constructor); +} +.tsd-kind-property { + color: var(--color-ts-property); +} +.tsd-kind-method { + color: var(--color-ts-method); +} +.tsd-kind-call-signature { + color: var(--color-ts-call-signature); +} +.tsd-kind-index-signature { + color: var(--color-ts-index-signature); +} +.tsd-kind-constructor-signature { + color: var(--color-ts-constructor-signature); +} +.tsd-kind-parameter { + color: var(--color-ts-parameter); +} +.tsd-kind-type-literal { + color: var(--color-ts-type-literal); +} +.tsd-kind-type-parameter { + color: var(--color-ts-type-parameter); +} +.tsd-kind-accessor { + color: var(--color-ts-accessor); +} +.tsd-kind-get-signature { + color: var(--color-ts-get-signature); +} +.tsd-kind-set-signature { + color: var(--color-ts-set-signature); +} +.tsd-kind-type-alias { + color: var(--color-ts-type-alias); +} + +/* if we have a kind icon, don't color the text by kind */ +.tsd-kind-icon ~ span { + color: var(--color-text); +} + +* { + scrollbar-width: thin; + scrollbar-color: var(--color-accent) var(--color-icon-background); +} + +*::-webkit-scrollbar { + width: 0.75rem; +} + +*::-webkit-scrollbar-track { + background: var(--color-icon-background); +} + +*::-webkit-scrollbar-thumb { + background-color: var(--color-accent); + border-radius: 999rem; + border: 0.25rem solid var(--color-icon-background); +} + +/* mobile */ +@media (max-width: 769px) { + .tsd-widget.options, + .tsd-widget.menu { + display: inline-block; + } + + .container-main { + display: flex; + } + html .col-content { + float: none; + max-width: 100%; + width: 100%; + } + html .col-sidebar { + position: fixed !important; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + z-index: 1024; + top: 0 !important; + bottom: 0 !important; + left: auto !important; + right: 0 !important; + padding: 1.5rem 1.5rem 0 0; + width: 75vw; + visibility: hidden; + background-color: var(--color-background); + transform: translate(100%, 0); + } + html .col-sidebar > *:last-child { + padding-bottom: 20px; + } + html .overlay { + content: ""; + display: block; + position: fixed; + z-index: 1023; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.75); + visibility: hidden; + } + + .to-has-menu .overlay { + animation: fade-in 0.4s; + } + + .to-has-menu .col-sidebar { + animation: pop-in-from-right 0.4s; + } + + .from-has-menu .overlay { + animation: fade-out 0.4s; + } + + .from-has-menu .col-sidebar { + animation: pop-out-to-right 0.4s; + } + + .has-menu body { + overflow: hidden; + } + .has-menu .overlay { + visibility: visible; + } + .has-menu .col-sidebar { + visibility: visible; + transform: translate(0, 0); + display: flex; + flex-direction: column; + gap: 1.5rem; + max-height: 100vh; + padding: 1rem 2rem; + } + .has-menu .tsd-navigation { + max-height: 100%; + } +} + +/* one sidebar */ +@media (min-width: 770px) { + .container-main { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); + grid-template-areas: "sidebar content"; + margin: 2rem auto; + } + + .col-sidebar { + grid-area: sidebar; + } + .col-content { + grid-area: content; + padding: 0 1rem; + } +} +@media (min-width: 770px) and (max-width: 1399px) { + .col-sidebar { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + padding-top: 1rem; + } + .site-menu { + margin-top: 1rem; + } +} + +/* two sidebars */ +@media (min-width: 1200px) { + .container-main { + grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem); + grid-template-areas: "sidebar content toc"; + } + + .col-sidebar { + display: contents; + } + + .page-menu { + grid-area: toc; + padding-left: 1rem; + } + .site-menu { + grid-area: sidebar; + } + + .site-menu { + margin-top: 1rem 0; + } + + .page-menu, + .site-menu { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + } +} diff --git a/docs/classes/Network.html b/docs/classes/Network.html new file mode 100644 index 0000000..d43e87a --- /dev/null +++ b/docs/classes/Network.html @@ -0,0 +1,48 @@ +Network | Mycelium

Class Network

Represents a network to be visualized by Mycelium.

+

Inherits from graphlib.

+

Example

The following snippet shows how to create a simple network:

+
const [a, b, c, d, m, n] = ['a', 'b', 'c', 'd', 'm', 'n'] as Array<NodeId>;
const network = new Network();
network.setNode(n, new ui.Node(n));
network.setNodeWithParent(m, new ui.Node(m), n);
network.setNode(a, new ui.Node(a));
network.setNodeWithParent(b, new ui.Node(b), m);
network.setNodeWithParent(c, new ui.Node(c), m);
network.setNodeWithParent(d, new ui.Node(d), n);
network.setEdge(a, b);
network.setEdge(a, c);
network.setEdge(b, d);
network.setEdge(c, d); +
+

The information that is shown for each node can be specified in the constructor of ui.Node.

+

Hierarchy

Constructors

Methods

  • Parameters

    • parentName: string

    Returns undefined | string

  • The types for graphlib seem to be wrong so we provide our own children + method with correct types.

    +

    Parameters

    Returns NodeId[]

  • Parameters

    • edgeObj: Edge

    Returns GraphEdge

  • Parameters

    • outNodeName: string
    • inNodeName: string
    • Optional name: string

    Returns GraphEdge

  • Returns number

  • Parameters

    • callback: ((nodeId) => boolean)
        • (nodeId): boolean
        • Parameters

          • nodeId: string

          Returns boolean

    Returns Graph<Node>

  • Returns GraphLabel

  • Parameters

    • edgeObj: Edge

    Returns boolean

  • Parameters

    • outNodeName: string
    • inNodeName: string
    • Optional name: string

    Returns boolean

  • Parameters

    • name: string

    Returns boolean

  • Parameters

    • inNodeName: string
    • Optional outNodeName: string

    Returns undefined | Edge[]

  • Returns boolean

  • Returns boolean

  • Parameters

    • name: string

    Returns undefined | Node<Node>[]

  • Parameters

    • id: string | Label

    Returns Node<Node>

  • Returns number

  • Parameters

    • outNodeName: string
    • Optional inNodeName: string

    Returns undefined | Edge[]

  • Parameters

    • name: string

    Returns undefined | Node<Node>[]

  • Parameters

    • outNodeName: string
    • inNodeName: string
    • Optional name: string

    Returns Graph<Node>

  • Parameters

    • name: string

    Returns Graph<Node>

  • Parameters

    • callback: string | ((v, w, name?) => string | Label)

    Returns Graph<Node>

  • Parameters

    • callback: string | ((nodeId) => string | Label)

    Returns Graph<Node>

  • Parameters

    • params: Edge
    • Optional value: string | {
          [key: string]: any;
      }

    Returns Graph<Node>

  • Parameters

    • sourceId: string
    • targetId: string
    • Optional value: string | Label
    • Optional name: string

    Returns Graph<Node>

  • Parameters

    • label: GraphLabel

    Returns Graph<Node>

  • Parameters

    • name: string
    • label: string | Label

    Returns Graph<Node>

  • Parameters

    • childName: string
    • parentName: string

    Returns void

  • Returns Node<Node>[]

  • Returns Node<Node>[]

  • Parameters

    • name: string

    Returns undefined | Node<Node>[]

\ No newline at end of file diff --git a/docs/classes/NetworkViewer.html b/docs/classes/NetworkViewer.html new file mode 100644 index 0000000..696479f --- /dev/null +++ b/docs/classes/NetworkViewer.html @@ -0,0 +1,18 @@ +NetworkViewer | Mycelium

Class NetworkViewer

Methods

  • Parameters

    • Optional transition: boolean

    Returns Promise<void>

  • Changes the view so that target is in the center.

    +

    Parameters

    • target: NodeId | NodeId[]

      The NodeId of the node that the viewer will focus on. + If target is undefined, the view will be reset to show the entire graph.

      +
    • Optional transition: boolean

    Returns Promise<void>

\ No newline at end of file diff --git a/docs/classes/geometry.BoundingBox.html b/docs/classes/geometry.BoundingBox.html new file mode 100644 index 0000000..7eca106 --- /dev/null +++ b/docs/classes/geometry.BoundingBox.html @@ -0,0 +1,20 @@ +BoundingBox | Mycelium

Constructors

Properties

xMax: number
xMin: number
yMax: number
yMin: number

Accessors

Methods

\ No newline at end of file diff --git a/docs/classes/geometry.CurveBuilder.html b/docs/classes/geometry.CurveBuilder.html new file mode 100644 index 0000000..936895b --- /dev/null +++ b/docs/classes/geometry.CurveBuilder.html @@ -0,0 +1,3 @@ +CurveBuilder | Mycelium

Constructors

Methods

Constructors

Methods

\ No newline at end of file diff --git a/docs/classes/geometry.Transform.html b/docs/classes/geometry.Transform.html new file mode 100644 index 0000000..9734f88 --- /dev/null +++ b/docs/classes/geometry.Transform.html @@ -0,0 +1,11 @@ +Transform | Mycelium

Constructors

Properties

k +x +y +

Methods

Constructors

Properties

k: number
x: number
y: number

Methods

\ No newline at end of file diff --git a/docs/classes/layout.DagreLayoutProvider.html b/docs/classes/layout.DagreLayoutProvider.html new file mode 100644 index 0000000..024139a --- /dev/null +++ b/docs/classes/layout.DagreLayoutProvider.html @@ -0,0 +1,3 @@ +DagreLayoutProvider | Mycelium

Class DagreLayoutProvider

Implements

Constructors

Methods

Constructors

Methods

\ No newline at end of file diff --git a/docs/classes/ui.Edge.html b/docs/classes/ui.Edge.html new file mode 100644 index 0000000..a474a18 --- /dev/null +++ b/docs/classes/ui.Edge.html @@ -0,0 +1,4 @@ +Edge | Mycelium

Class Edge

Implements

  • IViewBuilder

Constructors

Properties

Methods

Constructors

Properties

points: IPoint[]

Methods

  • Returns DisplayObject

\ No newline at end of file diff --git a/docs/classes/ui.Frame.html b/docs/classes/ui.Frame.html new file mode 100644 index 0000000..0511dd9 --- /dev/null +++ b/docs/classes/ui.Frame.html @@ -0,0 +1,5 @@ +Frame | Mycelium

Class Frame

Hierarchy

Implements

  • IViewBuilder

Constructors

Properties

Methods

Constructors

Properties

options: IRectOptions

Methods

\ No newline at end of file diff --git a/docs/classes/ui.HStack.html b/docs/classes/ui.HStack.html new file mode 100644 index 0000000..ffcba4f --- /dev/null +++ b/docs/classes/ui.HStack.html @@ -0,0 +1,4 @@ +HStack | Mycelium

Class HStack

Hierarchy

Implements

  • IViewBuilder

Constructors

Properties

Methods

Constructors

Properties

options: IStackOptions

Methods

\ No newline at end of file diff --git a/docs/classes/ui.Node.html b/docs/classes/ui.Node.html new file mode 100644 index 0000000..3d38d24 --- /dev/null +++ b/docs/classes/ui.Node.html @@ -0,0 +1,16 @@ +Node | Mycelium

Class Node

A builder that describes a Node in the Network.

+

The visual representation of a node can be specified by using instances of IViewBuilder. +If this parameter is not specified, the node will show only the NodeId, or the INodeOptions.humanReadable option, if specified.

+

Example

const n = new ui.Node(
"42" as NodeId,
new ui.Text('Node 42') // This text will be shown inside the node.
).with({
selectable: true, // If `true`, selection events will be emitted for this node.
humanReadable: 'Node 42', // This will be shown in the breadcrumb bar.
}); +
+

Hierarchy

Implements

  • IViewBuilder

Constructors

Properties

Methods

Constructors

  • Represents a node in the graph.

    +

    Parameters

    • nodeId: NodeId

      A unique identifier for the node.

      +
    • Rest ...contents: IViewBuilder[]

      A collection of IViewBuilder which will be interspersed with ui.Separator elements. +When this collection is empty we resort to the humanReadable description or the node. If humanReadable is also not defined then we show the nodeId.

      +

    Returns Node

Properties

nodeId: NodeId

A unique identifier for the node.

+
options: INodeOptions

Methods

\ No newline at end of file diff --git a/docs/classes/ui.Padded.html b/docs/classes/ui.Padded.html new file mode 100644 index 0000000..232d949 --- /dev/null +++ b/docs/classes/ui.Padded.html @@ -0,0 +1,4 @@ +Padded | Mycelium

Class Padded

Implements

  • IViewBuilder

Constructors

Methods

Constructors

Methods

\ No newline at end of file diff --git a/docs/classes/ui.Rect.html b/docs/classes/ui.Rect.html new file mode 100644 index 0000000..a405b16 --- /dev/null +++ b/docs/classes/ui.Rect.html @@ -0,0 +1,7 @@ +Rect | Mycelium

Class Rect

Hierarchy

Implements

  • IViewBuilder

Constructors

Properties

Methods

Constructors

  • Parameters

    • width: number
    • height: number

    Returns Rect

Properties

height: number
options: IRectOptions
width: number

Methods

\ No newline at end of file diff --git a/docs/classes/ui.Separator.html b/docs/classes/ui.Separator.html new file mode 100644 index 0000000..502000a --- /dev/null +++ b/docs/classes/ui.Separator.html @@ -0,0 +1,5 @@ +Separator | Mycelium

Class Separator

Hierarchy

Implements

  • IViewBuilder

Constructors

Properties

Methods

Constructors

Properties

width: undefined | number

Methods

\ No newline at end of file diff --git a/docs/classes/ui.Text.html b/docs/classes/ui.Text.html new file mode 100644 index 0000000..88da70e --- /dev/null +++ b/docs/classes/ui.Text.html @@ -0,0 +1,5 @@ +Text | Mycelium

Class Text

Hierarchy

Implements

  • IViewBuilder

Constructors

Properties

Methods

Constructors

Properties

options: ITextOptions

Methods

\ No newline at end of file diff --git a/docs/classes/ui.Tooltip.html b/docs/classes/ui.Tooltip.html new file mode 100644 index 0000000..1f88096 --- /dev/null +++ b/docs/classes/ui.Tooltip.html @@ -0,0 +1,5 @@ +Tooltip | Mycelium

Class Tooltip

Hierarchy

Implements

  • IViewBuilder

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Parameters

    • _ctx: Partial<IBuildContext> = {}

    Returns TooltipDisplayObject

\ No newline at end of file diff --git a/docs/classes/ui.VStack.html b/docs/classes/ui.VStack.html new file mode 100644 index 0000000..405069b --- /dev/null +++ b/docs/classes/ui.VStack.html @@ -0,0 +1,5 @@ +VStack | Mycelium

Class VStack

Hierarchy

Implements

  • IViewBuilder

Constructors

Properties

Methods

Constructors

Properties

options: IStackOptions

Methods

\ No newline at end of file diff --git a/docs/classes/ui.ZStack.html b/docs/classes/ui.ZStack.html new file mode 100644 index 0000000..9f5e9c3 --- /dev/null +++ b/docs/classes/ui.ZStack.html @@ -0,0 +1,3 @@ +ZStack | Mycelium

Class ZStack

Centers the children by default.

+

Implements

  • IViewBuilder

Constructors

Constructors

\ No newline at end of file diff --git a/docs/hierarchy.html b/docs/hierarchy.html new file mode 100644 index 0000000..88e3331 --- /dev/null +++ b/docs/hierarchy.html @@ -0,0 +1 @@ +Mycelium

Mycelium

Class Hierarchy

\ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..804e675 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,12 @@ +Mycelium
\ No newline at end of file diff --git a/docs/interfaces/IEdge.html b/docs/interfaces/IEdge.html new file mode 100644 index 0000000..c07bdb3 --- /dev/null +++ b/docs/interfaces/IEdge.html @@ -0,0 +1,3 @@ +IEdge | Mycelium

Interface IEdge

interface IEdge {
    from: NodeId;
    to: NodeId;
}

Properties

from +to +

Properties

from: NodeId
to: NodeId
\ No newline at end of file diff --git a/docs/interfaces/IEventSelectionChanged.html b/docs/interfaces/IEventSelectionChanged.html new file mode 100644 index 0000000..f81ea92 --- /dev/null +++ b/docs/interfaces/IEventSelectionChanged.html @@ -0,0 +1,3 @@ +IEventSelectionChanged | Mycelium

Interface IEventSelectionChanged

interface IEventSelectionChanged {
    previous: ISelection[];
    selections: ISelection[];
}

Properties

Properties

previous: ISelection[]
selections: ISelection[]
\ No newline at end of file diff --git a/docs/interfaces/INetworkViewerOptions.html b/docs/interfaces/INetworkViewerOptions.html new file mode 100644 index 0000000..c514fd3 --- /dev/null +++ b/docs/interfaces/INetworkViewerOptions.html @@ -0,0 +1,12 @@ +INetworkViewerOptions | Mycelium

Interface INetworkViewerOptions

Represents an instance of the Mycelium viewer.

+
interface INetworkViewerOptions {
    autoResize: boolean;
    height: number;
    layoutProvider: ILayoutProvider;
    minimap: boolean;
    multiSelection: boolean;
    showBreadcrumbs: boolean;
    showResetView: boolean;
    watermark: boolean;
    width: number;
}

Properties

autoResize: boolean
height: number
layoutProvider: ILayoutProvider

Allows to customize the layout algorithm. This API is still experimental and might be subject to changes in the future.

+

Type Param: ILayoutProvider

minimap: boolean
multiSelection: boolean
showBreadcrumbs: boolean
showResetView: boolean
watermark: boolean
width: number
\ No newline at end of file diff --git a/docs/interfaces/ISelectionOptions.html b/docs/interfaces/ISelectionOptions.html new file mode 100644 index 0000000..bc26593 --- /dev/null +++ b/docs/interfaces/ISelectionOptions.html @@ -0,0 +1,3 @@ +ISelectionOptions | Mycelium

Interface ISelectionOptions

interface ISelectionOptions {
    collapseOthers: boolean | {
        threshold: number;
    };
    expand: boolean | "single";
}

Properties

Properties

collapseOthers: boolean | {
    threshold: number;
}

Type declaration

  • threshold: number
expand: boolean | "single"
\ No newline at end of file diff --git a/docs/interfaces/geometry.IPadding.html b/docs/interfaces/geometry.IPadding.html new file mode 100644 index 0000000..f7a8503 --- /dev/null +++ b/docs/interfaces/geometry.IPadding.html @@ -0,0 +1,5 @@ +IPadding | Mycelium

Interface IPadding

interface IPadding {
    b: number;
    l: number;
    r: number;
    t: number;
}

Properties

b +l +r +t +

Properties

b: number
l: number
r: number
t: number
\ No newline at end of file diff --git a/docs/interfaces/geometry.IPoint.html b/docs/interfaces/geometry.IPoint.html new file mode 100644 index 0000000..7ce7209 --- /dev/null +++ b/docs/interfaces/geometry.IPoint.html @@ -0,0 +1,4 @@ +IPoint | Mycelium

Interface IPoint

Describes a 2D point.

+
interface IPoint {
    x: number;
    y: number;
}

Properties

x +y +

Properties

x: number
y: number
\ No newline at end of file diff --git a/docs/interfaces/layout.IDrawableNetwork.html b/docs/interfaces/layout.IDrawableNetwork.html new file mode 100644 index 0000000..b02b3dc --- /dev/null +++ b/docs/interfaces/layout.IDrawableNetwork.html @@ -0,0 +1,7 @@ +IDrawableNetwork | Mycelium

Interface IDrawableNetwork

interface IDrawableNetwork {
    boundingBox: BoundingBox;
    collapsed: Map<NodeId, NodeDisplayObject>;
    edges: EdgesDisplayObject;
    expanded: Map<NodeId, IDrawableModule>;
    nodes: Map<NodeId, NodeDisplayObject>;
    stats?: ILayoutStats;
}

Properties

boundingBox: BoundingBox
collapsed: Map<NodeId, NodeDisplayObject>
edges: EdgesDisplayObject
expanded: Map<NodeId, IDrawableModule>
nodes: Map<NodeId, NodeDisplayObject>
stats?: ILayoutStats
\ No newline at end of file diff --git a/docs/interfaces/layout.ILayoutProvider.html b/docs/interfaces/layout.ILayoutProvider.html new file mode 100644 index 0000000..807d6f3 --- /dev/null +++ b/docs/interfaces/layout.ILayoutProvider.html @@ -0,0 +1,2 @@ +ILayoutProvider | Mycelium

Interface ILayoutProvider

interface ILayoutProvider {
    compute(network, collapsed): IDrawableNetwork;
}

Implemented by

Methods

Methods

\ No newline at end of file diff --git a/docs/interfaces/layout.ILayoutStats.html b/docs/interfaces/layout.ILayoutStats.html new file mode 100644 index 0000000..a332bb0 --- /dev/null +++ b/docs/interfaces/layout.ILayoutStats.html @@ -0,0 +1,2 @@ +ILayoutStats | Mycelium

Interface ILayoutStats

interface ILayoutStats {
    layoutTimeMs?: number;
}

Properties

Properties

layoutTimeMs?: number
\ No newline at end of file diff --git a/docs/interfaces/ui.IDrawableModule.html b/docs/interfaces/ui.IDrawableModule.html new file mode 100644 index 0000000..d5bfb0d --- /dev/null +++ b/docs/interfaces/ui.IDrawableModule.html @@ -0,0 +1,3 @@ +IDrawableModule | Mycelium

Interface IDrawableModule

interface IDrawableModule {
    boundingBox: BoundingBox;
    name: string;
}

Properties

Properties

boundingBox: BoundingBox
name: string
\ No newline at end of file diff --git a/docs/interfaces/ui.INodeOptions.html b/docs/interfaces/ui.INodeOptions.html new file mode 100644 index 0000000..b419e13 --- /dev/null +++ b/docs/interfaces/ui.INodeOptions.html @@ -0,0 +1,10 @@ +INodeOptions | Mycelium

Interface INodeOptions

interface INodeOptions {
    backgroundColor: string;
    badge: undefined | {
        color: string;
        text?: string;
    };
    borderColor: string;
    borderDash: undefined | number;
    humanReadable: undefined | string;
    padding: IPadding;
    selectable: boolean;
    tooltip: undefined | (() => Tooltip);
}

Properties

backgroundColor: string
badge: undefined | {
    color: string;
    text?: string;
}

Type declaration

  • color: string
  • Optional text?: string

    Right now we only support strings of length <= 2.

    +
borderColor: string
borderDash: undefined | number
humanReadable: undefined | string
padding: IPadding
selectable: boolean
tooltip: undefined | (() => Tooltip)

Type declaration

\ No newline at end of file diff --git a/docs/interfaces/ui.IRectOptions.html b/docs/interfaces/ui.IRectOptions.html new file mode 100644 index 0000000..2aa3a6e --- /dev/null +++ b/docs/interfaces/ui.IRectOptions.html @@ -0,0 +1,6 @@ +IRectOptions | Mycelium

Interface IRectOptions

interface IRectOptions {
    backgroundColor: string;
    borderColor: string;
    borderDash: undefined | number;
    borderWidth: number;
    radius: undefined | number;
}

Properties

backgroundColor: string
borderColor: string
borderDash: undefined | number
borderWidth: number
radius: undefined | number
\ No newline at end of file diff --git a/docs/interfaces/ui.ISeparatorOptions.html b/docs/interfaces/ui.ISeparatorOptions.html new file mode 100644 index 0000000..24cafaa --- /dev/null +++ b/docs/interfaces/ui.ISeparatorOptions.html @@ -0,0 +1,3 @@ +ISeparatorOptions | Mycelium

Interface ISeparatorOptions

interface ISeparatorOptions {
    color: string;
    dash: undefined | number;
}

Properties

Properties

color: string
dash: undefined | number
\ No newline at end of file diff --git a/docs/interfaces/ui.IStackOptions.html b/docs/interfaces/ui.IStackOptions.html new file mode 100644 index 0000000..2343f6d --- /dev/null +++ b/docs/interfaces/ui.IStackOptions.html @@ -0,0 +1,5 @@ +IStackOptions | Mycelium

Interface IStackOptions

interface IStackOptions {
    maxWidth: number;
    minWidth: number;
    spacing: number;
    spread: boolean;
}

Properties

maxWidth: number
minWidth: number
spacing: number
spread: boolean
\ No newline at end of file diff --git a/docs/interfaces/ui.ITextOptions.html b/docs/interfaces/ui.ITextOptions.html new file mode 100644 index 0000000..5fc7744 --- /dev/null +++ b/docs/interfaces/ui.ITextOptions.html @@ -0,0 +1,5 @@ +ITextOptions | Mycelium

Interface ITextOptions

interface ITextOptions {
    font: string;
    fontSize: number;
    fontWeight: 200 | 500 | 600;
    foregroundColor?: string;
}

Properties

font: string
fontSize: number
fontWeight: 200 | 500 | 600
foregroundColor?: string
\ No newline at end of file diff --git a/docs/interfaces/ui.ITooltipOptions.html b/docs/interfaces/ui.ITooltipOptions.html new file mode 100644 index 0000000..041e080 --- /dev/null +++ b/docs/interfaces/ui.ITooltipOptions.html @@ -0,0 +1,2 @@ +ITooltipOptions | Mycelium

Interface ITooltipOptions

interface ITooltipOptions {
    anchor: Anchor;
}

Properties

Properties

anchor: Anchor
\ No newline at end of file diff --git a/docs/modules/geometry.html b/docs/modules/geometry.html new file mode 100644 index 0000000..cf0fcaf --- /dev/null +++ b/docs/modules/geometry.html @@ -0,0 +1,6 @@ +geometry | Mycelium

Namespace geometry

Index

Classes

Interfaces

\ No newline at end of file diff --git a/docs/modules/layout.html b/docs/modules/layout.html new file mode 100644 index 0000000..4031ac6 --- /dev/null +++ b/docs/modules/layout.html @@ -0,0 +1,8 @@ +layout | Mycelium

Namespace layoutInternal

References

Re-exports IDrawableModule
Re-exports INodeOptions
Re-exports Node
\ No newline at end of file diff --git a/docs/modules/ui.Theme.html b/docs/modules/ui.Theme.html new file mode 100644 index 0000000..984e0d4 --- /dev/null +++ b/docs/modules/ui.Theme.html @@ -0,0 +1,4 @@ +Theme | Mycelium

Namespace Theme

Index

Variables

\ No newline at end of file diff --git a/docs/modules/ui.html b/docs/modules/ui.html new file mode 100644 index 0000000..90283d0 --- /dev/null +++ b/docs/modules/ui.html @@ -0,0 +1,24 @@ +ui | Mycelium

Namespace ui

Provides builders to construct contents of Node and Tooltip.

+

Example

const node = new ui.Node(
nodeId,
new ui.VStack(
new ui.Text('Node').with({ fontWeight: 600 }),
new ui.Text(nodeId),
),
).with({
backgroundColor: ui.Theme.GRAY_BACKGROUND,
tooltip: () => new ui.Text('This is a new'),
}); +
+

Index

Namespaces

Classes

Interfaces

Type Aliases

\ No newline at end of file diff --git a/docs/types/Brand.html b/docs/types/Brand.html new file mode 100644 index 0000000..5234278 --- /dev/null +++ b/docs/types/Brand.html @@ -0,0 +1,3 @@ +Brand | Mycelium

Type alias Brand<K, T>

Brand<K, T>: K & {
    __brand: T;
}

We use branded types to discern type aliases.

+

An example for this is NodeId.

+

Type Parameters

  • K
  • T

Type declaration

  • __brand: T
\ No newline at end of file diff --git a/docs/types/NodeId.html b/docs/types/NodeId.html new file mode 100644 index 0000000..e545603 --- /dev/null +++ b/docs/types/NodeId.html @@ -0,0 +1,6 @@ +NodeId | Mycelium

Type alias NodeId

NodeId: Brand<string, "NodeId">

Uniquely identifies as node in the model graph.

+

The underlying type is a string. Additionally, we use Brand to provide better type support.

+

The following codes creates a NodeId:

+

Example

const nodeId = '42' as NodeId;
+
+
\ No newline at end of file diff --git a/docs/types/ui.Anchor.html b/docs/types/ui.Anchor.html new file mode 100644 index 0000000..7dfc93e --- /dev/null +++ b/docs/types/ui.Anchor.html @@ -0,0 +1 @@ +Anchor | Mycelium

Type alias Anchor

Anchor: "topRight" | "bottomMiddle"
\ No newline at end of file diff --git a/docs/variables/ui.Theme.colors.html b/docs/variables/ui.Theme.colors.html new file mode 100644 index 0000000..d878342 --- /dev/null +++ b/docs/variables/ui.Theme.colors.html @@ -0,0 +1 @@ +colors | Mycelium

Variable colorsConst

colors: {
    background: {
        darkGray: "rgb(51,51,51)";
        gray: "rgb(250, 250, 250)";
    };
    black: "#000000";
    foreground: {
        blue: "#0066CC";
        gray: "#1D1D1F";
        graySecondary: "#6E6E73";
        graySecondaryAlt: "#515154";
        grayTertiary: "#86868B";
        green: "#008009";
        orange: "#BF4800";
        purple: "#6D56D6";
        red: "#E30000";
        yellow: "#D08B00";
    };
    white: "#ffffff";
} = ...

Type declaration

  • Readonly background: {
        darkGray: "rgb(51,51,51)";
        gray: "rgb(250, 250, 250)";
    }
    • Readonly darkGray: "rgb(51,51,51)"
    • Readonly gray: "rgb(250, 250, 250)"
  • Readonly black: "#000000"
  • Readonly foreground: {
        blue: "#0066CC";
        gray: "#1D1D1F";
        graySecondary: "#6E6E73";
        graySecondaryAlt: "#515154";
        grayTertiary: "#86868B";
        green: "#008009";
        orange: "#BF4800";
        purple: "#6D56D6";
        red: "#E30000";
        yellow: "#D08B00";
    }
    • Readonly blue: "#0066CC"
    • Readonly gray: "#1D1D1F"
    • Readonly graySecondary: "#6E6E73"
    • Readonly graySecondaryAlt: "#515154"
    • Readonly grayTertiary: "#86868B"
    • Readonly green: "#008009"
    • Readonly orange: "#BF4800"
    • Readonly purple: "#6D56D6"
    • Readonly red: "#E30000"
    • Readonly yellow: "#D08B00"
  • Readonly white: "#ffffff"
\ No newline at end of file diff --git a/docs/variables/ui.Theme.font.html b/docs/variables/ui.Theme.font.html new file mode 100644 index 0000000..e36234d --- /dev/null +++ b/docs/variables/ui.Theme.font.html @@ -0,0 +1 @@ +font | Mycelium

Variable fontConst

font: {
    family: "SF Mono, ui-monospace, monospace";
    weight: {
        bold: 600;
        regular: 200;
        semibold: 500;
    };
} = ...

Type declaration

  • Readonly family: "SF Mono, ui-monospace, monospace"
  • Readonly weight: {
        bold: 600;
        regular: 200;
        semibold: 500;
    }
    • Readonly bold: 600
    • Readonly regular: 200
    • Readonly semibold: 500
\ No newline at end of file diff --git a/docs/variables/ui.Theme.spacing.html b/docs/variables/ui.Theme.spacing.html new file mode 100644 index 0000000..f83c1c4 --- /dev/null +++ b/docs/variables/ui.Theme.spacing.html @@ -0,0 +1 @@ +spacing | Mycelium

Variable spacingConst

spacing: {
    x: 4;
    y: 8;
} = ...

Type declaration

  • Readonly x: 4
  • Readonly y: 8
\ No newline at end of file diff --git a/example/dot/index.html b/example/dot/index.html new file mode 100644 index 0000000..c97c78a --- /dev/null +++ b/example/dot/index.html @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Graphviz Dot • Example • Mycelium + + +
+ + +
+ + diff --git a/example/lenet/index.html b/example/lenet/index.html new file mode 100644 index 0000000..3edbf8a --- /dev/null +++ b/example/lenet/index.html @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + LeNet • Example • Mycelium + + +
+ + +
+ + diff --git a/example/simple/index.html b/example/simple/index.html new file mode 100644 index 0000000..29c4ac2 --- /dev/null +++ b/example/simple/index.html @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + Simple Network • Example • Mycelium + + +
+ + +
+ + diff --git a/examples/graphviz.dot b/examples/graphviz.dot new file mode 100644 index 0000000..60b5a80 --- /dev/null +++ b/examples/graphviz.dot @@ -0,0 +1,9 @@ +digraph { + a -> b; + subgraph group_1 { + b -> c; + } + c -> d; + a -> m; + m -> d; +} diff --git a/examples/lenet.onnx b/examples/lenet.onnx new file mode 100644 index 0000000..c858b34 Binary files /dev/null and b/examples/lenet.onnx differ diff --git a/favicon.svg b/favicon.svg new file mode 100644 index 0000000..8261b8c --- /dev/null +++ b/favicon.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gallery/index.html b/gallery/index.html new file mode 100644 index 0000000..666be0b --- /dev/null +++ b/gallery/index.html @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + Mycelium • Gallery + + +

Gallery

The following contains examples of different models that can be visualized with Mycelium. + Please note that some ONNX files can become quite large and need to be downloaded before + they can be visualized.

LeNet5
Open
GraphViz
Mycelium also comes with a very basic loader for .dot files. Please note that it only works with graphs that form a DAG.
Open
External
The following external models are larger, which is why we only provide external links. + To visualize them, you can download them and then simply drop them into this page.
Microsoft/Phi-3-mini-4k-instruct-onnx
Hugging Face
+ + +
+ + diff --git a/getting-started/index.html b/getting-started/index.html new file mode 100644 index 0000000..28d2cb3 --- /dev/null +++ b/getting-started/index.html @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + Mycelium • Getting Started + + +

Getting Started

The following shows a small hierarchical graph visualized by Mycelium. +In this section we will show you how to recreate that example.

There are several steps required to embed Mycelium into your application, which we will outline below. You can also find the full source code of this example on GitHub.

npm install @apple/mycelium

Now we can import the library via the following commands. +It’s important to note that we also have to import the provided CSS stylesheet, otherwise some styles might be missing.

import * as myc from '@apple/mycelium';
+import '@apple/mycelium/dist/style.css';

Creating a Network

Next, we can create a simple network. +Mycelium supports regular nodes, as well as hierarchical modules.

// We define a set of nodes.
+const [a, b, c, d, e, f] = ['a', 'b', 'c', 'd', 'e', 'f'] as Array<myc.NodeId>;
+
+// And a set of modules.
+const [m, n] = ['m', 'n'] as Array<myc.NodeId>;

In Mycelium the contents of a node (and other user interface elements) is defined via a small myc.ui framework. +For this example we create two helper functions to generate nodes and modules respectively.

function createNode(nodeId: myc.NodeId): myc.ui.Node {
+  return new myc.ui.Node(
+    nodeId,
+    new myc.ui.VStack(new myc.ui.Text('Node').with({ fontWeight: 600 }), new myc.ui.Text(nodeId)),
+  ).with({ selectable: true, ...(nodeId === b && { badge: { color: 'red', text: 'i' } }) });
+}
+
+function createModule(nodeId: myc.NodeId): myc.ui.Node {
+  return new myc.ui.Node(
+    nodeId,
+    new myc.ui.VStack(new myc.ui.Text('Module').with({ fontWeight: 600 }), new myc.ui.Text(nodeId)),
+  ).with({ backgroundColor: myc.ui.Theme.GRAY_BACKGROUND });
+}

Now we have everything in place to define the structure of the network:

const network = new myc.Network();
+network.setNode(n, createModule(n));
+network.setNodeWithParent(m, createModule(m), n);
+network.setNode(a, createNode(a));
+network.setNodeWithParent(b, createNode(b), n);
+network.setNodeWithParent(c, createNode(c), m);
+network.setNodeWithParent(d, createNode(d), m);
+network.setNode(e, createNode(e));
+network.setNode(f, createNode(f));
+network.setEdge(a, b);
+network.setEdge(b, c);
+network.setEdge(b, d);
+network.setEdge(c, d);
+network.setEdge(d, e);
+network.setEdge(d, f);

Once we have defined the network, we can create an instance of NetworkViewer and mount it to the DOM. +First, we create a div container that will hold the viewer.

<div style="width: 500; height: 500" id="app" />

It’s important to note that this container should have a defined size either via explicitly setting its size, or by deriving it via width: 100% and height: 100%. +Note that this requires the size of the parent to be set as well.

Then, we are ready to create a viewer:

const app = document.getElementById('app');
+const viewer = myc.NetworkViewer.create(network, app, {
+  showBreadcrumbs: true,
+  minimap: false,
+});

Finally, we can interact with the representation through methods defined on the viewer. +For example, to set a selection we can simply call:

await viewer.setSelection(d, { shouldExpand: true });

Or, we can change the color of certain nodes via the setDecoration function.

await viewer.setDecoration(a, {
+  backgroundColor: 'rgb(237,249,239)',
+  borderColor: 'rgb(113,201,117)',
+});
+
+await viewer.setDecoration(f, {
+  backgroundColor: 'rgb(252,236,235)',
+  borderColor: 'rgb(239,90,88)',
+});
+ + +
+ + diff --git a/index.html b/index.html new file mode 100644 index 0000000..d70f0f8 --- /dev/null +++ b/index.html @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + Mycelium • Graph visualization library + + +
Drag an .onnx file anywhere on this page to quickly visualize it.

Visualize your machine learning model

Mycelium is a library for creating graph visualizations of machine learning models or any + other directed acyclic graphs. It also powers the graph viewer of the Talaria model + visualization and optimization system.

Batteries included

Everything you need to visualize the structure of your machine learning models

Mycelium makes it easy to visualize exactly the characteristics of your machine learning + models that your interested in.

Performance
Based on SVG but can handle models with thousands of nodes through hierarchical + clustering.
Model Support
Comes with ONNX support out of the box. By writing a loader you can use Mycelium with any + graph or model format.
Embeddable
The graph viewer—although written in Svelte—is framework agnostic and can be embedded + into any application by mounting it directly to the DOM.
Customizable
Mycelium leverages SVG together with a tiny UI framework to allow rich contents in nodes + and tooltips.

Team

Authors

The following authors contributed directly to Mycelium.

Picture of Jochen Görtler
Jochen Görtler
Picture of Fred Hohman
Fred Hohman
Picture of Xiaoyi Zhang
Xiaoyi Zhang

Acknowledgements

This project is a collaboration across multiple teams at Apple. We would like to extend our + thanks to all authors of Talaria: Chaoqun Wang, Jinmook Lee, Dominik Moritz, Jeffrey Bigham, Zhile Ren, Cecile Foret, and Qi Shan.

We would love to hear from you!

Attribution

You can use to following BibTex entry to cite Talaria (and therefore Mycelium).

@inproceedings{Hoh+2024,
+  title={Talaria: Interactively Optimizing Machine Learning Models for Efficient Inference},
+  author={Fred Hohman and Chaoqun Wang and Jinmook Lee and Jochen Görtler and Dominik Moritz and Jeffrey Bigham and Zhile Ren and Cecile Foret and Qi Shan and Xiaoyi Zhang},
+  booktitle={Proceedings of the SIGCHI Conference on Human Factors in Computing Systems},
+  year={2024},
+  organization={ACM},
+  doi={10.1145/3613904.3642628}
+  url = {https://arxiv.org/abs/2404.03085}
+}
+ + +
+ + diff --git a/portrait/fh.jpeg b/portrait/fh.jpeg new file mode 100644 index 0000000..1c275bb Binary files /dev/null and b/portrait/fh.jpeg differ diff --git a/portrait/jg.png b/portrait/jg.png new file mode 100644 index 0000000..59ee5f8 Binary files /dev/null and b/portrait/jg.png differ diff --git a/portrait/xz.jpeg b/portrait/xz.jpeg new file mode 100644 index 0000000..50426c3 Binary files /dev/null and b/portrait/xz.jpeg differ diff --git a/viewer/index.html b/viewer/index.html new file mode 100644 index 0000000..0d8f47f --- /dev/null +++ b/viewer/index.html @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Viewer • Mycelium + + +
Drop file here...
+ + +
+ +